Changeset 3744556
- Timestamp:
- 10/13/2026 05:31:48 PM (3 weeks ago)
- Location:
- cookie-notice
- Files:
-
- 14 edited
- 1 copied
-
tags/3.1.16 (copied) (copied from cookie-notice/trunk )
-
tags/3.1.16/assets/react-admin/cn-admin-react.css (modified) (1 diff)
-
tags/3.1.16/assets/react-admin/cn-admin-react.js (modified) (6 diffs)
-
tags/3.1.16/cookie-notice.php (modified) (2 diffs)
-
tags/3.1.16/includes/settings.php (modified) (3 diffs)
-
tags/3.1.16/js/front.js (modified) (2 diffs)
-
tags/3.1.16/js/front.min.js (modified) (1 diff)
-
tags/3.1.16/readme.txt (modified) (2 diffs)
-
trunk/assets/react-admin/cn-admin-react.css (modified) (1 diff)
-
trunk/assets/react-admin/cn-admin-react.js (modified) (6 diffs)
-
trunk/cookie-notice.php (modified) (2 diffs)
-
trunk/includes/settings.php (modified) (3 diffs)
-
trunk/js/front.js (modified) (2 diffs)
-
trunk/js/front.min.js (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cookie-notice/tags/3.1.16/assets/react-admin/cn-admin-react.css
r3734159 r3744556 1 @charset "UTF-8";._container_nva6m_2{display:flex;gap:16px;align-items:flex-start}._grid_nva6m_8{display:grid;grid-template-columns:1fr 1fr;gap:10px;flex:0 0 auto;width:280px}._card_nva6m_16{border:2px solid var(--cn-border, #e2e8f0);border-radius:10px;padding:12px 10px 10px;cursor:pointer;transition:border-color .15s,box-shadow .15s,background .15s;text-align:center;position:relative;background:#fff;-webkit-user-select:none;user-select:none}._card_nva6m_16:hover{border-color:#a0c4c0;box-shadow:0 2px 8px #20c19e1a}._cardSelected_nva6m_32{border-color:var(--cn-primary, #20c19e);background:#20c19e0a;box-shadow:0 0 0 3px #20c19e1f}._geoArt_nva6m_38{width:80px;height:52px;margin:0 auto 8px;display:flex;align-items:center;justify-content:center}._lawName_nva6m_47{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading, #1a1a2e);line-height:1.2}._jurisdiction_nva6m_54{font-size:var(--cn-text-sm);color:var(--cn-muted, #718096);margin-top:2px}._hiddenCheckbox_nva6m_60{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}._checkmark_nva6m_72{position:absolute;top:6px;right:6px;width:16px;height:16px;border-radius:50%;background:var(--cn-primary, #20c19e);display:flex;align-items:center;justify-content:center;font-size:var(--cn-text-xs);color:#fff;font-weight:700}._autoBadge_nva6m_88{position:absolute;top:-8px;left:50%;transform:translate(-50%);background:var(--cn-primary, #20c19e);color:#fff;font-size:var(--cn-text-xs);font-weight:600;padding:2px 6px;border-radius:10px;white-space:nowrap}._detail_nva6m_102{flex:1;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:18px 20px;animation:_slideIn_nva6m_1 .2s ease;min-height:240px}._detailHeader_nva6m_112{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:14px}._detailTitle_nva6m_119{font-size:var(--cn-text-lg);font-weight:700;color:var(--cn-heading, #1a1a2e)}._detailJurisdiction_nva6m_125{font-size:var(--cn-text-sm);color:var(--cn-muted, #718096);margin-top:2px}._detailClose_nva6m_131{background:none;border:none;cursor:pointer;font-size:var(--cn-text-lg);color:#718096;line-height:1;padding:0}._detailClose_nva6m_131:hover{color:#1a1a2e}._detailSection_nva6m_144{margin-bottom:14px}._detailSectionLabel_nva6m_148{font-size:var(--cn-text-sm);font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--cn-primary, #20c19e);margin-bottom:6px}._detailOverview_nva6m_157{font-size:var(--cn-text-sm);color:#4a5568;line-height:1.6}._detailList_nva6m_163{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:4px}._detailListItem_nva6m_172{font-size:var(--cn-text-sm);color:#4a5568;display:flex;gap:6px;align-items:flex-start;line-height:1.4}._detailListItem_nva6m_172:before{content:"✓";color:var(--cn-primary, #20c19e);font-weight:700;flex-shrink:0;margin-top:1px}._detailEnforcement_nva6m_188{font-size:var(--cn-text-sm);color:#a0aec0;border-top:1px solid #e2e8f0;padding-top:10px;margin-top:4px;line-height:1.5}._detailEmpty_nva6m_197{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;min-height:200px;text-align:center;padding:32px}._detailEmptyArrow_nva6m_208{font-size:var(--cn-text-xl);color:#20c19e;opacity:.4;margin-bottom:12px}._detailEmptyText_nva6m_215{font-size:var(--cn-text-md);color:#9ca3af;line-height:1.6;max-width:240px}._detailDnsHelp_nva6m_222{font-size:var(--cn-text-base);color:#6b7280;margin-bottom:8px}._dnsCallout_nva6m_228{display:flex;gap:10px;background:#fffbeb;border:1px solid #f59e0b;border-radius:8px;padding:12px;margin-top:10px}._dnsCalloutIcon_nva6m_238{flex:0 0 auto;font-size:var(--cn-text-lg);line-height:1}._dnsCalloutBody_nva6m_244{flex:1 1 auto;min-width:0}._dnsCalloutTitle_nva6m_249{font-size:var(--cn-text-base);font-weight:700;color:#92400e;margin-bottom:4px}._dnsCalloutHelp_nva6m_256{font-size:var(--cn-text-sm);color:#92400e;margin:0 0 8px;line-height:1.4}._dnsInput_nva6m_263{width:100%;padding:8px 10px;border:1px solid #e0e4e8;border-radius:6px;font-size:var(--cn-text-base);box-sizing:border-box}._dnsInput_nva6m_263:focus{outline:none;border-color:var(--cn-primary, #20c19e);box-shadow:0 0 0 2px #20c19e26}@keyframes _slideIn_nva6m_1{0%{opacity:0;transform:translate(8px)}to{opacity:1;transform:translate(0)}}._panel_t4wb2_1{background:#fff;border:1px solid #dcdcde;border-radius:8px;margin-bottom:20px;overflow:hidden}._panelHeader_t4wb2_9{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #dcdcde;background:#f6f7f7}._panelTitle_t4wb2_18{font-size:var(--cn-text-md);font-weight:600;color:#1d2327;margin:0}._closeBtn_t4wb2_25{background:none;border:none;cursor:pointer;font-size:var(--cn-text-xl);color:#787c82;padding:0 4px;line-height:1}._closeBtn_t4wb2_25:hover{color:#1d2327}._footer_t4wb2_38{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:16px 20px;border-top:1px solid #dcdcde;background:#f6f7f7}._layout_t4wb2_48{display:flex;gap:16px;align-items:flex-start;min-height:380px}._remoteChangedNotice_t4wb2_55{margin-bottom:16px;padding:10px 14px;border:1px solid #f0c33c;border-left-width:4px;border-radius:4px;background:#fcf9e8;color:#1d2327;font-size:var(--cn-text-sm);line-height:1.5}._modeList_t4wb2_67{flex:0 0 220px;width:220px;display:flex;flex-direction:column;gap:12px}._modeSection_t4wb2_75{display:flex;flex-direction:column;gap:6px}._modeSectionLabel_t4wb2_81{font-size:var(--cn-text-sm);font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#787c82;padding:0 2px;margin-bottom:2px}._modeCard_t4wb2_91{width:100%;text-align:left;background:#fff;border:2px solid #e2e8f0;border-radius:10px;padding:12px 14px;cursor:pointer;transition:border-color .15s,box-shadow .15s,background .15s}._modeCard_t4wb2_91:hover{border-color:#a0c4c0;box-shadow:0 2px 8px #20c19e1a}._modeCardActive_t4wb2_106{border-color:#20c19e;background:#20c19e0a;box-shadow:0 0 0 3px #20c19e1f}._modeCardLocked_t4wb2_112{opacity:.7;border-style:dashed;position:relative}._modeCardProOverlay_t4wb2_118{display:flex;align-items:center;gap:4px;margin-top:6px;padding:4px 8px;background:#f59e0b14;border-radius:4px;cursor:pointer;transition:background .15s ease}._modeCardProOverlay_t4wb2_118:hover{background:#f59e0b2e}._lockIconLarge_t4wb2_133{font-size:var(--cn-text-base)}._modeCardProLabel_t4wb2_137{font-size:var(--cn-text-sm);font-weight:600;color:#92400e}._modeCardTop_t4wb2_143{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}._modeCardName_t4wb2_150{font-size:var(--cn-text-base);font-weight:600;color:#1d2327}._modeCardDesc_t4wb2_156{font-size:var(--cn-text-sm);color:#787c82;line-height:1.4}._statusDot_t4wb2_162{display:inline-block;width:8px;height:8px;border-radius:50%;flex-shrink:0}._statusDotOn_t4wb2_170{background:#20c19e}._statusDotOff_t4wb2_174{background:#c3c4c7}._detailCol_t4wb2_178{flex:1;min-width:0}._detail_t4wb2_178{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:18px 20px;animation:_slideIn_t4wb2_1 .18s ease}._detailHeader_t4wb2_191{display:flex;align-items:center;gap:8px;margin-bottom:10px}._detailTitle_t4wb2_198{font-size:var(--cn-text-md);font-weight:700;color:#1d2327}._detailDesc_t4wb2_204{font-size:var(--cn-text-base);color:#4a5568;line-height:1.6;margin:0 0 14px}._detailFooter_t4wb2_211{display:flex;justify-content:flex-end;padding-top:14px;margin-top:14px;border-top:1px solid #e2e8f0}._enableToggle_t4wb2_219{display:inline-flex;align-items:center;gap:10px;cursor:pointer;margin-bottom:16px}._enableToggleInput_t4wb2_227{position:absolute;opacity:0;width:0;height:0}._enableToggleTrack_t4wb2_234{position:relative;display:inline-block;width:36px;height:20px;border-radius:10px;background:#c3c4c7;transition:background .2s;flex-shrink:0}._enableToggleInput_t4wb2_227:checked+._enableToggleTrack_t4wb2_234{background:#20c19e}._enableToggleThumb_t4wb2_248{position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #0003;transition:transform .2s}._enableToggleInput_t4wb2_227:checked~._enableToggleTrack_t4wb2_234 ._enableToggleThumb_t4wb2_248{transform:translate(16px)}._enableToggleLabel_t4wb2_263{font-size:var(--cn-text-base);font-weight:600;color:#1d2327}._signalConfig_t4wb2_269{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:14px 16px;margin-bottom:8px}._signalConfigTitle_t4wb2_277{font-size:var(--cn-text-sm);font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#20c19e;margin-bottom:10px}._groupRow_t4wb2_286{display:flex;align-items:center;justify-content:space-between;padding:6px 0}._groupLabel_t4wb2_293{font-size:var(--cn-text-base);font-weight:500;color:#1d2327}._groupSelect_t4wb2_299{font-size:var(--cn-text-sm);padding:5px 8px;border:1px solid #8c8f94;border-radius:4px;background:#fff;min-width:170px}._groupSelect_t4wb2_299:disabled{opacity:.5;cursor:not-allowed}._groupSelect_t4wb2_299:focus{outline:none;border-color:#20c19e;box-shadow:0 0 0 2px #20c19e26}._groupHint_t4wb2_317{font-size:var(--cn-text-sm);color:#787c82;margin:2px 0 10px;line-height:1.4}._familyTitle_t4wb2_324{font-size:var(--cn-text-sm);font-weight:600;color:#1d2327;margin-top:14px}._familyTitle_t4wb2_324:first-of-type{margin-top:0}._advancedGrid_t4wb2_334{display:flex;flex-direction:column;gap:6px;margin-top:6px;padding-top:8px;border-top:1px solid #f0f0f1}._advancedRow_t4wb2_343{display:flex;align-items:center;justify-content:space-between;padding:4px 0}._advancedLabel_t4wb2_350{font-size:var(--cn-text-sm);color:#4a5568}._subToggles_t4wb2_355{margin-top:10px;padding-top:10px;border-top:1px solid #f0f0f1}._subToggleTitle_t4wb2_361{font-size:var(--cn-text-sm);font-weight:600;color:#787c82;text-transform:uppercase;letter-spacing:.04em;margin-bottom:6px}._subToggleRow_t4wb2_370{display:flex;align-items:center;gap:8px;font-size:var(--cn-text-base);color:#1d2327;cursor:pointer;padding:4px 0}._proGate_t4wb2_380{display:flex;align-items:center;justify-content:space-between;background:#f0faf8;border:1px solid #c3e8e0;border-radius:8px;padding:12px 14px;font-size:var(--cn-text-base);color:#1d2327;gap:12px;margin:8px 0}._proGateLink_t4wb2_394{white-space:nowrap;font-weight:600;color:#20c19e;text-decoration:none}._proGateLink_t4wb2_394:hover{text-decoration:underline}@keyframes _slideIn_t4wb2_1{0%{opacity:0;transform:translate(8px)}to{opacity:1;transform:translate(0)}}._legacyNotice_t4wb2_414{display:flex;flex-direction:column;gap:4px;background:#fdf6e7;border:1px solid #f0d9a0;border-left:3px solid #eab308;border-radius:8px;padding:12px 14px;font-size:var(--cn-text-base);color:#1d2327;margin:8px 0}._legacyNotice_t4wb2_414 strong{font-weight:600}._legacyNotice_t4wb2_414 em{font-style:normal;font-weight:600}._thumb_1g9ys_1{width:160px;height:90px;border-radius:4px;overflow:hidden;border:1px solid var(--cn-color-border);background:#f8f9fa;position:relative;flex-shrink:0}._chrome_1g9ys_12{height:10px;background:#e5e7eb;border-bottom:1px solid #d1d5db;display:flex;align-items:center;padding:0 4px;gap:2px;flex-shrink:0}._dot_1g9ys_23{width:4px;height:4px;border-radius:50%;background:#9ca3af;flex-shrink:0}._urlBar_1g9ys_31{flex:1;height:4px;border-radius:2px;background:#d1d5db;margin-left:3px}._page_1g9ys_39{height:80px;position:relative;overflow:hidden}._lines_1g9ys_45{padding:6px 8px;display:flex;flex-direction:column;gap:3px}._lines_1g9ys_45>div{height:3px;border-radius:2px;background:#d1d5db}._banner_1g9ys_57{position:absolute;display:flex;flex-direction:column;gap:2px;padding:4px 5px 3px;box-shadow:0 -1px 4px #0000001f;animation-fill-mode:both;animation-duration:.45s;animation-timing-function:ease}._bar-bottom_1g9ys_69{bottom:0;left:0;right:0}._bar-top_1g9ys_75{top:0;left:0;right:0}._floating_1g9ys_81{left:8px;right:8px;border-radius:4px}._fixed_1g9ys_87{left:0;right:0}._panel-left_1g9ys_92{left:2px;bottom:2px;width:38%;box-shadow:2px 0 6px #00000026}._panel-right_1g9ys_99{right:2px;bottom:2px;width:38%;box-shadow:-2px 0 6px #00000026}._panelFloating_1g9ys_106{border-radius:4px}._panelFixed_1g9ys_110{top:10px;border-radius:0}._popup_1g9ys_115{top:50%;left:50%;transform:translate(-50%) translateY(-50%);width:68%;border-radius:4px;box-shadow:0 4px 16px #0003}._bannerHeader_1g9ys_124{display:flex;align-items:center;justify-content:space-between;margin-bottom:1px}._toolbarDots_1g9ys_131{display:flex;gap:2px}._toolbarDots_1g9ys_131 span{display:block;width:3px;height:3px;border-radius:50%;background:var(--dot-color, rgba(255, 255, 255, .4))}._pills_1g9ys_143{display:flex;gap:2px;align-items:center;justify-content:center}._pill_1g9ys_143{display:flex;align-items:center;gap:1px;padding:1px 3px;border-radius:20px;border:1px solid currentColor;opacity:.85}._pillDot_1g9ys_160{width:4px;height:4px;border-radius:50%;flex-shrink:0}._saveBtn_1g9ys_167{height:6px;width:38%;margin:1px auto 0;opacity:.9}._footerLinks_1g9ys_174{display:flex;justify-content:space-between;gap:4px;margin-top:1px}._link_1g9ys_181{height:2px;width:35%;border-radius:1px;background:#ffffff59}._anim-slide-bottom_1g9ys_188{animation-name:_huPreviewSlideUp_1g9ys_1}._anim-slide-top_1g9ys_192{animation-name:_huPreviewSlideDown_1g9ys_1}._anim-slide-left_1g9ys_196{animation-name:_huPreviewSlideLeft_1g9ys_1}._anim-slide-right_1g9ys_200{animation-name:_huPreviewSlideRight_1g9ys_1}._anim-slide-center_1g9ys_204{animation-name:_huPreviewScaleIn_1g9ys_1}._anim-fade_1g9ys_208{animation-name:_huPreviewFade_1g9ys_1}@keyframes _huPreviewSlideUp_1g9ys_1{0%{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _huPreviewSlideDown_1g9ys_1{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _huPreviewSlideLeft_1g9ys_1{0%{transform:translate(-100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes _huPreviewSlideRight_1g9ys_1{0%{transform:translate(100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes _huPreviewScaleIn_1g9ys_1{0%{transform:translate(-50%) translateY(-50%) scale(.85);opacity:0}to{transform:translate(-50%) translateY(-50%) scale(1);opacity:1}}@keyframes _huPreviewFade_1g9ys_1{0%{opacity:0}to{opacity:1}}._root_o4a2z_1{position:relative;flex-shrink:0}._scaler_o4a2z_6{width:160px;height:90px;transform-origin:left top}._overlay_o4a2z_12{position:absolute;top:0;right:0;bottom:0;left:0;background:#11182747}._banner_o4a2z_18{position:absolute;display:flex;flex-direction:column;gap:3px;padding:5px 6px;background-color:var(--thumb-bg);box-shadow:0 1px 6px #0000002e}._card_o4a2z_28{left:8px;right:8px;border-radius:6px}._card_o4a2z_28._bottom_o4a2z_33{bottom:4px}._card_o4a2z_28._top_o4a2z_36{top:4px}._edge_o4a2z_40{left:0;right:0;border-radius:0}._edge_o4a2z_40._bottom_o4a2z_33{bottom:0}._edge_o4a2z_40._top_o4a2z_36{top:0}._bar_o4a2z_52{left:0;right:0;flex-direction:row;align-items:center;gap:4px;padding:4px 6px}._bar_o4a2z_52._bottom_o4a2z_33{bottom:0}._bar_o4a2z_52._top_o4a2z_36{top:0}._bar_o4a2z_52 ._heading_o4a2z_66{flex:1;width:auto}._narrow_o4a2z_71{bottom:4px;width:46%;border-radius:6px}._left_o4a2z_77{left:4px}._right_o4a2z_81{right:4px}._modal_o4a2z_85{top:50%;left:50%;width:64%;transform:translate(-50%,-50%);border-radius:6px}._heading_o4a2z_66{display:block;height:4px;width:46%;border-radius:2px;background-color:var(--thumb-ink)}._desc_o4a2z_101{display:block;height:3px;width:92%;border-radius:2px;background-color:var(--thumb-faint)}._descShort_o4a2z_109{width:64%}._row_o4a2z_113{display:flex;flex-wrap:wrap;align-items:center;gap:3px;margin-top:1px}._pill_o4a2z_121{display:block;flex-shrink:0;width:15px;height:7px;border-radius:4px;border:1px solid transparent;border-color:var(--thumb-accent)}._link_o4a2z_131{display:block;flex-shrink:0;width:14px;height:2px;border-radius:1px;background-color:var(--thumb-ink)}.cn-section-label{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.6px}.cn-banner-selector{margin-bottom:28px}.cn-banner-selector__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.cn-banner-selector__portal-link{font-size:var(--cn-text-sm);color:var(--cn-primary);font-weight:600;text-decoration:none}.cn-banner-selector__portal-link:hover{text-decoration:underline}.cn-banner-selector__grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.cn-banner-selector__card{background:var(--cn-surface);border:2px solid var(--cn-border);border-radius:10px;padding:16px 12px 12px;min-height:200px;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.cn-banner-selector__card:hover{transform:translateY(-3px);box-shadow:0 6px 20px #00000017;border-color:#c5ccd4}.cn-banner-selector__card--active{border-color:var(--cn-primary);box-shadow:0 0 0 3px #20c19e26}.cn-banner-selector__card--active:hover{transform:translateY(-3px);box-shadow:0 0 0 3px #20c19e26,0 6px 20px #20c19e1f}.cn-banner-selector__thumb{width:100%;height:90px;background:#e8eaed;border-radius:6px;margin-bottom:10px;position:relative;overflow:hidden}.cn-banner-selector__thumb:before{content:"";position:absolute;top:0;left:0;right:0;height:12px;background:#d0d3d8;border-radius:6px 6px 0 0}.cn-banner-selector__thumb:after{content:"";position:absolute;top:3px;left:8px;width:6px;height:6px;background:#b8bcc4;border-radius:50%}.cn-banner-selector__pos{position:absolute;background:#2c2f35;transition:all .25s ease}.cn-banner-selector__pos.pos-top{top:12px;left:0;right:0;height:16px;width:auto;border-radius:0}.cn-banner-selector__pos.pos-bottom{bottom:0;left:0;right:0;height:18px;width:auto;border-radius:0}.cn-banner-selector__pos.pos-left{top:12px;left:0;bottom:0;width:26%;height:auto;border-radius:0;right:auto}.cn-banner-selector__pos.pos-right{top:12px;right:0;bottom:0;width:26%;height:auto;border-radius:0;left:auto}.cn-banner-selector__pos.pos-popup{top:50%;left:50%;transform:translate(-50%,-40%);width:46%;height:36px;border-radius:4px;bottom:auto;right:auto}.cn-banner-selector__grid--floating .cn-banner-selector__pos.pos-top{top:16px;left:50%;right:auto;transform:translate(-50%);width:56%;height:22px;border-radius:3px}.cn-banner-selector__grid--floating .cn-banner-selector__pos.pos-bottom{bottom:8px;left:50%;right:auto;transform:translate(-50%);width:56%;height:26px;border-radius:3px}.cn-banner-selector__grid--floating .cn-banner-selector__pos.pos-left{top:auto;bottom:6px;left:4px;width:32%;height:44px;border-radius:3px;right:auto}.cn-banner-selector__grid--floating .cn-banner-selector__pos.pos-right{top:auto;bottom:6px;right:4px;width:32%;height:44px;border-radius:3px;left:auto}.cn-banner-selector__grid--floating .cn-banner-selector__pos.pos-popup{top:50%;left:50%;transform:translate(-50%,-40%);width:46%;height:36px;border-radius:4px}.cn-banner-selector__meta{display:flex;align-items:center;justify-content:space-between;margin-bottom:3px}.cn-banner-selector__name{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading)}.cn-banner-selector__active-pill{font-size:var(--cn-text-xs);font-weight:700;padding:2px 7px;border-radius:10px;background:#e8f5e9;color:#2e7d32;text-transform:uppercase;letter-spacing:.3px}.cn-banner-selector__toggle-row{display:flex;align-items:center;gap:14px;margin-top:14px;margin-bottom:6px}.cn-banner-selector__size-label{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading)}.cn-banner-selector__size-opts{display:flex}.cn-banner-selector__size-opt{font-size:var(--cn-text-sm);font-weight:600;padding:5px 16px;cursor:pointer;border:1.5px solid var(--cn-border);background:#fff;color:var(--cn-muted);transition:all .15s;font-family:inherit}.cn-banner-selector__size-opt:first-child{border-radius:16px 0 0 16px}.cn-banner-selector__size-opt:last-child{border-radius:0 16px 16px 0;border-left:none}.cn-banner-selector__size-opt--on{background:var(--cn-primary);color:#fff;border-color:var(--cn-primary)}.cn-banner-selector__size-opt--on+.cn-banner-selector__size-opt{border-left-color:var(--cn-primary)}.cn-banner-selector__size-desc{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-top:4px;line-height:1.4}.cn-banner-design__grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.cn-banner-design__col{display:flex;flex-direction:column;gap:0}.cn-advanced-settings__grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.cn-consent-modes__title{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:10px}.cn-consent-modes__row{display:flex;align-items:center;justify-content:space-between;padding:5px 0;border-bottom:1px solid var(--cn-border);font-size:var(--cn-text-sm)}.cn-consent-modes__row:last-of-type{border-bottom:none}.cn-consent-modes__label{color:var(--cn-muted);display:flex;align-items:center;gap:5px}.cn-consent-modes__value{font-weight:700;color:var(--cn-heading)}.cn-consent-modes__value--off{color:var(--cn-muted);font-weight:400}.cn-consent-modes__note{margin-top:10px;padding-top:8px;border-top:1px solid var(--cn-border);font-size:var(--cn-text-sm)}.cn-consent-modes__note a{color:var(--cn-primary);text-decoration:none}.cn-consent-modes__note a:hover{text-decoration:underline}.cn-banner-summary{margin-bottom:12px}.cn-banner-summary__rows{display:flex;flex-direction:column;gap:4px;margin-top:6px}.cn-banner-summary__row{display:flex;gap:8px;font-size:var(--cn-text-base)}.cn-banner-summary__key{color:var(--cn-muted);font-weight:600;min-width:70px}.cn-banner-summary__key:after{content:":"}.cn-banner-summary__val{color:var(--cn-text)}.cn-banner-summary__note{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-top:8px}.cn-upsell-card{padding:2px 0 4px}.cn-upsell-card__headline{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading);margin:0 0 10px}.cn-upsell-card__features{list-style:none;margin:0 0 14px;padding:0}.cn-upsell-card__features li{font-size:var(--cn-text-sm);color:var(--cn-body);padding:4px 0 4px 18px;position:relative}.cn-upsell-card__features li:before{content:"✓";position:absolute;left:0;color:var(--cn-green, #20c19e);font-weight:700}.cn-upsell-card__cta{display:block;text-align:center;text-decoration:none}.cn-change-badge{display:inline-block;font-size:var(--cn-text-xs);font-weight:700;padding:1px 5px;border-radius:4px;text-transform:uppercase;letter-spacing:.2px;margin-right:4px}.cn-change-badge--banner{background:#20c19e1a;color:var(--cn-primary)}.cn-change-badge--regulation{background:#6179e81a;color:#6179e8}.cn-change-badge--blocking{background:#fff3e0;color:#d35400}.cn-empty-hero{text-align:center;padding:48px 24px;background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;margin-bottom:24px}.cn-empty-hero__icon{display:block;margin:0 auto 20px;width:80px;height:80px}.cn-empty-hero__heading{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);margin-bottom:10px}.cn-empty-hero__sub{font-size:var(--cn-text-md);color:var(--cn-muted);max-width:440px;margin:0 auto 24px;line-height:1.6}.cn-empty-hero__footnote{margin-top:12px;font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-blurred-teaser{position:relative;border-radius:10px;overflow:hidden;margin-bottom:24px}.cn-blurred-teaser__blur{filter:blur(4px);pointer-events:none;-webkit-user-select:none;user-select:none}.cn-blurred-teaser__overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#ffffffbf;gap:10px;padding:24px;text-align:center}.cn-blurred-teaser__overlay-icon{font-size:var(--cn-text-xl);line-height:1}.cn-blurred-teaser__overlay-label{font-size:var(--cn-text-lg);font-weight:700;color:var(--cn-heading)}.cn-blurred-teaser__overlay-sub{font-size:var(--cn-text-base);color:var(--cn-muted);max-width:380px;line-height:1.5}.cn-blurred-teaser__section{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:18px 20px;margin-bottom:16px}.cn-blurred-teaser__section:last-child{margin-bottom:0}.cn-blurred-teaser__section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.cn-blurred-teaser__section-title{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading)}.cn-blurred-teaser__section-meta{font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-blurred-teaser__table{width:100%;border-collapse:collapse;font-size:var(--cn-text-base)}.cn-blurred-teaser__table thead tr{background:#f0f2f5}.cn-blurred-teaser__table th{font-size:var(--cn-text-sm);font-weight:700;text-transform:uppercase;letter-spacing:.4px;color:var(--cn-muted);padding:8px 12px;text-align:left;border-bottom:1px solid var(--cn-border)}.cn-blurred-teaser__table td{padding:8px 12px;border-bottom:1px solid var(--cn-border);color:var(--cn-text)}.cn-blurred-teaser__table td:last-child{border-bottom:none}.cn-blurred-teaser__table tr:last-child td{border-bottom:none}.cn-blurred-teaser__timeline{display:flex;flex-direction:column;gap:12px}.cn-blurred-teaser__tl-row{display:flex;align-items:flex-start;gap:12px}.cn-blurred-teaser__tl-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0;margin-top:3px;background:var(--cn-border)}.cn-blurred-teaser__tl-dot--banner{background:var(--cn-primary)}.cn-blurred-teaser__tl-dot--setting{background:var(--cn-info, #6179e8)}.cn-blurred-teaser__tl-dot--scan{background:var(--cn-yellow, #f5a623)}.cn-blurred-teaser__tl-text{flex:1}.cn-blurred-teaser__tl-what{font-size:var(--cn-text-base);color:var(--cn-heading);display:flex;align-items:center;gap:6px;flex-wrap:wrap}.cn-blurred-teaser__tl-when{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-top:2px}.cn-consent-id{font-family:monospace;font-size:var(--cn-text-sm);color:var(--cn-heading);background:#f0f2f5;padding:2px 6px;border-radius:4px;letter-spacing:.3px}.cn-ip-masked{font-family:monospace;font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-level-pill{display:inline-block;padding:3px 10px;border-radius:12px;font-size:var(--cn-text-sm);font-weight:700;text-transform:capitalize}.cn-level-pill--accept{background:var(--cn-green-bg, #e8faf5);color:var(--cn-green, #20c19e)}.cn-level-pill--custom{background:#6179e81a;color:var(--cn-info, #6179e8)}.cn-level-pill--reject{background:var(--cn-red-bg, #fdecea);color:var(--cn-red, #e74c3c)}.cn-cat-tags{display:flex;flex-wrap:wrap;gap:4px}.cn-cat-tag{display:inline-block;padding:2px 8px;border-radius:10px;font-size:var(--cn-text-xs);font-weight:700;text-transform:uppercase;letter-spacing:.3px}.cn-cat-tag--essential{background:var(--cn-green-bg, #e8faf5);color:var(--cn-green, #20c19e)}.cn-cat-tag--analytics{background:#6179e81a;color:var(--cn-info, #6179e8)}.cn-cat-tag--marketing{background:var(--cn-yellow-bg, #fef7e8);color:var(--cn-yellow, #f5a623)}.cn-cat-tag--functional{background:var(--cn-light-bg, #f0f2f5);color:var(--cn-muted)}.cn-consent-log-table{margin-bottom:28px}.cn-consent-log-table__controls{display:flex;align-items:center;gap:12px;margin-bottom:12px}.cn-consent-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:24px}.cn-consent-stat{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:16px 18px;text-align:center}.cn-consent-stat__value{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);line-height:1.2;margin-bottom:4px}.cn-consent-stat__label{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.4px}.cn-config-timeline{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;overflow:hidden;margin-bottom:24px}.cn-config-timeline__header{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;background:#f0f2f5;border-bottom:1px solid var(--cn-border)}.cn-config-timeline__title{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading)}.cn-config-timeline__period{font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-config-timeline__body{padding:0 18px}.cn-timeline-list{display:flex;flex-direction:column}.cn-timeline-item{display:flex;align-items:flex-start;gap:14px;padding:16px 0;border-bottom:1px solid var(--cn-border)}.cn-timeline-item:last-child{border-bottom:none}.cn-timeline-item__dot-wrap{padding-top:3px;flex-shrink:0}.cn-timeline-item__dot{width:10px;height:10px;border-radius:50%;background:var(--cn-border)}.cn-timeline-item__dot--banner{background:var(--cn-primary)}.cn-timeline-item__dot--setting{background:var(--cn-info, #6179e8)}.cn-timeline-item__dot--scan{background:var(--cn-yellow, #f5a623)}.cn-timeline-item__content{flex:1}.cn-timeline-item__top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:4px}.cn-timeline-item__what{font-size:var(--cn-text-base);font-weight:600;color:var(--cn-heading);display:flex;align-items:center;gap:6px;flex-wrap:wrap}.cn-timeline-item__when{font-size:var(--cn-text-sm);color:var(--cn-muted);white-space:nowrap;flex-shrink:0}.cn-timeline-item__detail{font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.5;margin-bottom:4px}.cn-timeline-item__user{font-size:var(--cn-text-sm);color:var(--cn-muted);font-style:italic}.cn-change-badge{display:inline-block;padding:2px 8px;border-radius:3px;font-size:var(--cn-text-xs);font-weight:700;text-transform:uppercase;letter-spacing:.3px}.cn-change-badge--banner{background:var(--cn-green-bg, #e8faf5);color:var(--cn-green, #20c19e)}.cn-change-badge--setting{background:#6179e81a;color:var(--cn-info, #6179e8)}.cn-change-badge--scan{background:var(--cn-yellow-bg, #fef7e8);color:var(--cn-yellow, #f5a623)}.cn-compliance-evidence{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;overflow:hidden;margin-bottom:24px}.cn-evidence-tabs{display:flex;border-bottom:1px solid var(--cn-border);background:#f0f2f5;padding:0 4px}.cn-evidence-tab{padding:10px 18px;font-size:var(--cn-text-base);font-weight:600;color:var(--cn-muted);background:none;border:none;border-bottom:2px solid transparent;cursor:pointer;font-family:var(--cn-font);display:inline-flex;align-items:center;gap:6px;transition:color .15s,border-color .15s}.cn-evidence-tab:hover{color:var(--cn-heading)}.cn-evidence-tab--active{color:var(--cn-primary);border-bottom-color:var(--cn-primary);background:var(--cn-surface)}.cn-evidence-panel{padding:18px 20px}.cn-evidence-panel--locked{display:flex;align-items:center;justify-content:center;min-height:160px}.cn-evidence-item{display:flex;align-items:flex-start;gap:10px;padding:10px 0;border-bottom:1px solid var(--cn-border);font-size:var(--cn-text-base)}.cn-evidence-item:last-child{border-bottom:none;padding-bottom:0}.cn-evidence-item:first-child{padding-top:0}.cn-evidence-item__icon{width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:var(--cn-text-sm);font-weight:700;flex-shrink:0;margin-top:1px}.cn-evidence-item__icon--pass{background:var(--cn-green-bg, #e8faf5);color:var(--cn-green, #20c19e)}.cn-evidence-item__icon--warn{background:var(--cn-yellow-bg, #fef7e8);color:var(--cn-yellow, #f5a623)}.cn-evidence-item__icon--na{background:#f0f2f5;color:#9ca3af;font-size:var(--cn-text-base);font-weight:400}.cn-evidence-item__text{flex:1;color:var(--cn-text);line-height:1.5}.cn-evidence-lock{text-align:center;padding:20px}.cn-evidence-lock__icon{font-size:var(--cn-text-xl);display:block;margin-bottom:12px}.cn-evidence-lock__msg{font-size:var(--cn-text-base);color:var(--cn-muted);margin:0 0 16px;line-height:1.5;max-width:320px}.cn-export-section{display:flex;flex-direction:column;gap:10px}.cn-export-section--locked{opacity:.7}.cn-export-section__label{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.4px}.cn-retention-info{display:flex;flex-direction:column;gap:2px;padding:10px 0}.cn-retention-info--pro .cn-retention-info__value{color:var(--cn-primary)}.cn-retention-info__value{font-size:var(--cn-text-lg);font-weight:700;color:var(--cn-heading);line-height:1.2}.cn-retention-info__label{font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-retention-info__note{font-size:var(--cn-text-sm);color:var(--cn-muted);margin:6px 0 0;line-height:1.5}.cn-benefit-item__icon{width:18px;height:18px;border-radius:50%;background:var(--cn-green-bg, #e8faf5);color:var(--cn-green, #20c19e);font-size:var(--cn-text-xs);font-weight:900;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px}@media(max-width:960px){.cn-consent-stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:540px){.cn-consent-stats{grid-template-columns:1fr 1fr}.cn-timeline-item__top{flex-direction:column;align-items:flex-start}}.cn-modal__close{top:20px}.cn-step-indicator{padding-right:48px}.cn-wizard-step,.cn-welcome-step{padding:8px 0 4px}.cn-wizard-step__heading,.cn-welcome-step__heading{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);margin:0 0 8px;line-height:1.3}.cn-wizard-step__heading--sm,.cn-welcome-step__heading--sm{font-size:var(--cn-text-lg)}.cn-wizard-step__desc,.cn-welcome-step__body,.cn-welcome-step__sub{font-size:var(--cn-text-md);color:var(--cn-muted);line-height:1.6;margin:0 0 20px}.cn-wizard-step__form-card{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:20px 24px;margin-bottom:24px}.cn-wizard-step__nav{display:flex;align-items:center;padding-top:4px}.cn-wizard-step__nav-spacer{flex:1}.cn-welcome-split{display:grid;grid-template-columns:1fr 280px;gap:24px;align-items:start}.cn-welcome-split__main{display:flex;flex-direction:column;gap:14px}.cn-welcome-step__badge{display:inline-block;background:var(--cn-red-bg, #fdecea);color:var(--cn-red, #c0392b);font-size:var(--cn-text-sm);font-weight:700;padding:4px 10px;border-radius:20px;text-transform:uppercase;letter-spacing:.4px}.cn-risk-sidebar{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:16px 18px}.cn-risk-sidebar__title{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:12px}.cn-risk-item{display:flex;align-items:flex-start;gap:8px;padding:7px 0;border-bottom:1px solid var(--cn-border);font-size:var(--cn-text-sm)}.cn-risk-item:last-child{border-bottom:none}.cn-risk-item--critical .cn-risk-item__icon{color:var(--cn-red, #c0392b);font-weight:900}.cn-risk-item--high .cn-risk-item__icon{color:var(--cn-orange, #d35400);font-weight:900}.cn-risk-item--medium .cn-risk-item__icon{color:var(--cn-yellow, #b7950b);font-weight:900}.cn-risk-item__icon{font-size:var(--cn-text-base);width:16px;text-align:center;flex-shrink:0;margin-top:1px}.cn-risk-item__text{color:var(--cn-heading);line-height:1.4}.cn-auth-or{display:flex;align-items:center;gap:10px;margin:20px 0;color:#9ca3af;font-size:var(--cn-text-base)}.cn-auth-or:before,.cn-auth-or:after{content:"";flex:1;height:1px;background:#e0e4e8}.cn-auth-signin-teaser{border:1px solid #e0e4e8;border-radius:8px;padding:20px 16px;display:flex;flex-direction:column;align-items:center;gap:12px;font-size:var(--cn-text-md);background:#f9fafb;transition:border-color .15s}.cn-auth-signin-teaser:hover{border-color:#20c19e}.cn-auth-signin-teaser__heading{font-weight:600;color:var(--cn-heading);margin:0}.cn-welcome-step--account .cn-form-field__input{padding:11px 14px;font-size:var(--cn-text-md);border-radius:8px}.cn-welcome-step--account .cn-form-field__label{font-size:var(--cn-text-base);font-weight:600;color:var(--cn-heading);text-transform:none;letter-spacing:0}.cn-account-heading{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);text-align:center;margin:0 0 8px;line-height:1.3}.cn-account-subtitle{font-size:var(--cn-text-md);color:#6b7280;text-align:center;margin:0 0 20px}.cn-auth-back-link{background:none;border:none;color:var(--cn-primary);font-size:var(--cn-text-base);font-family:var(--cn-font);cursor:pointer;padding:0;margin-bottom:12px}.cn-auth-back-link:hover{text-decoration:underline}.cn-auth-form{display:flex;flex-direction:column;gap:2px;max-width:440px}.cn-auth-form__terms{display:flex;align-items:flex-start;gap:8px;font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.5;margin:4px 0;cursor:pointer}.cn-auth-form__terms input[type=checkbox]{margin-top:2px;flex-shrink:0;accent-color:var(--cn-primary)}.cn-auth-form__terms a{color:var(--cn-primary);text-decoration:none}.cn-auth-form__terms a:hover{text-decoration:underline}.cn-auth-form__forgot{text-align:right;margin-top:-4px;margin-bottom:4px}.cn-auth-form__forgot a{font-size:var(--cn-text-sm);color:var(--cn-primary);text-decoration:none}.cn-auth-form__forgot a:hover{text-decoration:underline}.cn-auth-form__subtitle{font-size:var(--cn-text-md);color:#6b7280;margin:0 0 24px;text-align:center}.cn-auth-form__actions{display:flex;gap:10px;margin-top:8px}.cn-auth-form__actions .cn-button{width:100%;padding:14px;font-size:var(--cn-text-md)}.cn-auth-form .cn-form-field__label{text-transform:none}.cn-plan-cards{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:24px}.cn-plan-card{background:var(--cn-surface);border:1.5px solid var(--cn-border);border-radius:12px;padding:24px 20px;display:flex;flex-direction:column;gap:16px;position:relative}.cn-plan-card--highlighted{border-color:var(--cn-primary);box-shadow:0 4px 18px #20c19e26}.cn-plan-card__popular-badge{position:absolute;top:-11px;left:50%;transform:translate(-50%);background:var(--cn-primary);color:#fff;font-size:var(--cn-text-xs);font-weight:700;padding:3px 12px;border-radius:20px;white-space:nowrap;text-transform:uppercase;letter-spacing:.4px}.cn-plan-card__name{font-size:var(--cn-text-lg);font-weight:700;color:var(--cn-heading)}.cn-plan-card__price{display:flex;align-items:baseline;gap:4px}.cn-plan-card__price-amount{font-size:var(--cn-text-xl);font-weight:900;color:var(--cn-heading);line-height:1}.cn-plan-card__price-period{font-size:var(--cn-text-base);color:var(--cn-muted)}.cn-plan-card__features{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:7px;flex:1}.cn-plan-card__feature{display:flex;align-items:flex-start;gap:7px;font-size:var(--cn-text-base);color:var(--cn-text);line-height:1.4}.cn-plan-card__feature-icon{color:var(--cn-primary);font-weight:700;font-size:var(--cn-text-sm);flex-shrink:0;margin-top:1px}.cn-plan-card__feature-icon--pro{color:var(--cn-primary)}.cn-welcome-step__back-link{background:none;border:none;color:var(--cn-muted);font-size:var(--cn-text-base);font-family:var(--cn-font);cursor:pointer;padding:0;margin-top:8px}.cn-welcome-step__back-link:hover{color:var(--cn-heading)}.cn-pricing-hero{text-align:center;padding:8px 0 20px}.cn-pricing-hero__heading{font-size:var(--cn-text-xl);font-weight:900;color:var(--cn-heading);margin:0 0 8px}.cn-pricing-hero__sub{font-size:var(--cn-text-md);color:var(--cn-muted);margin:0 auto;max-width:480px;line-height:1.6}.cn-benefit-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:24px}.cn-benefit-card{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:14px 16px;text-align:center}.cn-benefit-card__icon{font-size:var(--cn-text-xl);margin-bottom:6px}.cn-benefit-card__title{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading);margin-bottom:4px}.cn-benefit-card__desc{font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.5}.cn-pricing-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:8px}.cn-pricing-card{background:var(--cn-surface);border:1.5px solid var(--cn-border);border-radius:12px;padding:20px 18px;text-align:center;display:flex;flex-direction:column;gap:12px;position:relative}.cn-pricing-card--popular{border-color:var(--cn-primary);box-shadow:0 4px 18px #20c19e26}.cn-pricing-card__popular-badge{position:absolute;top:-11px;left:50%;transform:translate(-50%);background:var(--cn-primary);color:#fff;font-size:var(--cn-text-xs);font-weight:700;padding:3px 12px;border-radius:20px;white-space:nowrap;text-transform:uppercase;letter-spacing:.4px}.cn-pricing-card__domains{font-size:var(--cn-text-xl);font-weight:900;color:var(--cn-heading);line-height:1}.cn-pricing-card__domains-label{font-size:var(--cn-text-sm);font-weight:600;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.4px;margin-top:-8px}.cn-pricing-card__price{font-size:var(--cn-text-xl);font-weight:900;color:var(--cn-heading);line-height:1.2}.cn-pricing-card__price sup{font-size:var(--cn-text-md);font-weight:700;vertical-align:super}.cn-pricing-card__price sub{font-size:var(--cn-text-sm);font-weight:400;color:var(--cn-muted);vertical-align:baseline}.cn-pricing-card__billed-note{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-top:-6px}.cn-pricing-card__tagline{font-size:11px;color:#64748b;margin-top:2px;text-align:center}.cn-pricing-card .cn-button--outline{border:1.5px solid #d1d5db;background:#fff;color:var(--cn-text)}.cn-pricing-card .cn-button--outline:hover{background:var(--cn-bg-hover, #f8fafc);border-color:#20c19e;color:#20c19e}.cn-pricing-footer__learn-more{text-align:center;margin-top:24px}.cn-pricing-footer__learn-more .cn-link{font-size:13px;color:#6366f1;text-decoration:none;font-weight:500}.cn-pricing-footer__learn-more .cn-link:hover{text-decoration:underline}.cn-pricing-door-label{text-align:center;margin:0 0 12px;font-size:13px;font-weight:600;color:var(--cn-text-muted, #64748b);letter-spacing:.01em}.cn-pricing-portal-door{margin-top:24px;padding:16px 20px;text-align:center;background:var(--cn-bg-subtle, #f8fafc);border:1px solid var(--cn-border, #e2e8f0);border-radius:10px}.cn-pricing-portal-door__title{font-size:14px;font-weight:700;color:var(--cn-text, #1e293b)}.cn-pricing-portal-door__desc{margin:6px auto 12px;max-width:460px;font-size:13px;line-height:1.5;color:var(--cn-text-muted, #64748b)}.cn-pricing-portal-door__link{font-size:13px;font-weight:600;color:#6366f1;text-decoration:none}.cn-pricing-portal-door__link:hover{text-decoration:underline}.cn-pricing-footer__dismiss{text-align:center;margin-top:12px;padding-bottom:8px}.cn-pricing-footer__dismiss .cn-link-btn{background:none;border:none;font-size:13px;color:#94a3b8;cursor:pointer;padding:4px 8px;font-weight:400}.cn-pricing-footer__dismiss .cn-link-btn:hover{color:#64748b;text-decoration:underline}.cn-step-dots{display:flex;align-items:center;justify-content:center;gap:8px;padding:16px;border-top:1px solid var(--cn-border);margin-top:16px}.cn-step-dot{width:8px;height:8px;border-radius:50%;background:var(--cn-border);transition:all .2s}.cn-step-dot--active{background:var(--cn-primary);width:24px;border-radius:4px}.cn-step-dot--done{background:var(--cn-primary)}.cn-choose__heading{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);margin:0 0 24px;text-align:center}.cn-choose__google-notice{margin:-8px 0 20px;padding:12px 14px;border-radius:8px;background:#f5f8ff;border:1px solid #c7d7fe;color:#1e3a8a;font-size:var(--cn-text-sm)}.cn-choose__sub{font-size:var(--cn-text-md);color:var(--cn-muted);text-align:center;margin:0 0 28px}.cn-protection-cards{display:flex;gap:20px;width:100%}.cn-protection-card{flex:1;display:flex;flex-direction:column;border:2px solid var(--cn-border);border-radius:14px;padding:28px 24px;text-align:center;position:relative;transition:all .2s;cursor:default;background:#fff}.cn-protection-card:hover{border-color:#c0c4cc;transform:translateY(-2px);box-shadow:0 6px 20px #0000000f}.cn-protection-card--recommended{border-color:var(--cn-primary);box-shadow:0 4px 16px #20c19e26}.cn-protection-card__risk-tag-row--spacer{visibility:hidden;pointer-events:none;height:36px;margin-bottom:0}.cn-protection-card__risk-tag{display:inline-block;background:var(--cn-red-bg, #fdecea);color:var(--cn-red, #c0392b);font-size:var(--cn-text-xs);font-weight:700;padding:3px 10px;border-radius:10px;margin-bottom:12px;text-transform:uppercase;letter-spacing:.04em}.cn-protection-card__badge{position:absolute;top:-11px;left:50%;transform:translate(-50%);font-size:var(--cn-text-xs);font-weight:700;padding:3px 12px;border-radius:10px;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap}.cn-protection-card__badge--risk{background:#6b7280;color:#fff}.cn-protection-card__badge--rec{background:var(--cn-primary);color:#fff}.cn-protection-card__badge--max{background:#ffc107;color:#1a1a2e}.cn-protection-card__icon{width:56px;height:56px;border-radius:14px;display:flex;align-items:center;justify-content:center;margin:0 auto 16px;font-size:var(--cn-text-xl)}.cn-protection-card__icon--banner{background:#f0f2f5}.cn-protection-card__icon--protect{background:#e6f9f4}.cn-protection-card__icon--comply{background:#fff8e1}.cn-protection-card__title{font-size:var(--cn-text-lg);font-weight:700;color:var(--cn-heading);margin-bottom:6px;line-height:1.3}.cn-protection-card__subtitle{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-bottom:0;line-height:1.5;min-height:40px}.cn-protection-card__price-zone{min-height:88px;margin-top:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%}.cn-protection-card__price-label{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);margin-bottom:4px;margin-top:2px}.cn-protection-card__price{margin-bottom:4px}.cn-protection-card__price-amount{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading)}.cn-protection-card__price-amount sup{font-size:var(--cn-text-md);vertical-align:super}.cn-protection-card__price-period{font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-protection-card__price-note{font-size:var(--cn-text-sm);color:var(--cn-muted);font-weight:600;margin-top:6px;margin-bottom:4px;display:block}.cn-protection-card__price-note--danger{color:var(--cn-red, #c0392b)}.cn-protection-card__price-discount{font-size:var(--cn-text-sm);color:var(--cn-primary);font-weight:600;display:block;margin-top:4px}.cn-protection-card__divider{height:1px;background:var(--cn-border);margin:16px 0}.cn-protection-card__features{list-style:none;padding:0;margin:14px 0 0;text-align:left}.cn-protection-card__feature{padding:5px 0;font-size:var(--cn-text-sm);color:var(--cn-text);display:flex;align-items:flex-start;gap:8px;line-height:1.4}.cn-protection-card__feature--included .cn-protection-card__feature-icon{color:var(--cn-primary)}.cn-protection-card__feature--excluded .cn-protection-card__feature-icon{color:#ccc}.cn-protection-card__feature--excluded{color:var(--cn-muted)}.cn-protection-card__feature--warning .cn-protection-card__feature-icon{color:var(--cn-red, #c0392b)}.cn-protection-card__feature--warning{color:var(--cn-red, #c0392b);font-weight:600}.cn-protection-card__feature-icon{flex-shrink:0;font-size:var(--cn-text-base);margin-top:1px}.cn-protection-card__footer{margin-top:auto;padding-top:20px;display:flex;flex-direction:column;align-items:center;gap:10px;width:100%}.cn-protection-card__btn{width:100%;text-align:center;padding:12px 28px;border-radius:24px;font-family:var(--cn-font);font-size:var(--cn-text-md);font-weight:700;border:none;box-sizing:border-box;cursor:pointer;transition:all .15s}.cn-protection-card__btn--ghost{background:transparent;color:var(--cn-muted);border:2px solid var(--cn-border);padding:10px 26px}.cn-protection-card__btn--ghost:hover{color:var(--cn-heading);border-color:#c0c4cc}.cn-protection-card__btn--primary{background:var(--cn-primary);color:#fff}.cn-protection-card__btn--primary:hover{background:var(--cn-primary-hover)}.cn-protection-card__btn--secondary{background:#ffc107;color:#1a1a2e}.cn-protection-card__btn--secondary:hover{background:#e6ad00}.cn-protection-card__learn-more{background:none;border:none;color:var(--cn-muted);font-size:var(--cn-text-base);font-family:var(--cn-font);cursor:pointer;padding:0;margin-top:10px}.cn-protection-card__learn-more:hover{color:var(--cn-primary)}.cn-warning-modal{background:#fff;border:3px solid var(--cn-red, #c0392b);border-radius:14px;padding:36px 32px;text-align:center;box-shadow:0 8px 40px #c0392b26;max-width:680px;margin:0 auto}.cn-warning-modal__icon{width:72px;height:72px;background:var(--cn-red-bg, #fdecea);border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 20px;font-size:var(--cn-text-xl)}.cn-warning-modal__heading{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-red, #c0392b);margin-bottom:12px}.cn-warning-modal__text{font-size:var(--cn-text-md);color:var(--cn-text);max-width:600px;margin:0 auto 20px;line-height:1.7}.cn-warning-modal__consequences{background:#fdf0ee;border:1px solid #f5cac3;border-radius:10px;padding:20px 24px;margin:0 auto 24px;max-width:600px;text-align:left}.cn-warning-modal__consequences h5{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-red, #c0392b);text-transform:uppercase;letter-spacing:.04em;margin-bottom:10px}.cn-warning-modal__consequences ul{list-style:none;padding:0;margin:0}.cn-warning-modal__consequences li{padding:6px 0;font-size:var(--cn-text-base);color:var(--cn-text);display:flex;align-items:flex-start;gap:10px;border-bottom:1px solid #f5cac3;line-height:1.5}.cn-warning-modal__consequences li:last-child{border-bottom:none}.cn-warning-modal__consequence-icon{color:var(--cn-red, #c0392b);font-size:var(--cn-text-md);flex-shrink:0;margin-top:2px}.cn-warning-modal__checkbox{display:flex;align-items:flex-start;gap:10px;background:#fff;border:2px solid var(--cn-border);border-radius:10px;padding:14px 16px;margin:0 auto 20px;max-width:600px;text-align:left;cursor:pointer;transition:border-color .15s}.cn-warning-modal__checkbox:hover{border-color:var(--cn-red, #c0392b)}.cn-warning-modal__checkbox input[type=checkbox]{width:18px;height:18px;margin-top:2px;flex-shrink:0;accent-color:var(--cn-red, #c0392b)}.cn-warning-modal__checkbox span{font-size:var(--cn-text-base);color:var(--cn-text);line-height:1.5}.cn-warning-modal__checkbox strong{color:var(--cn-red, #c0392b)}.cn-warning-modal__actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.cn-warning-modal__btn{display:inline-block;padding:12px 28px;border-radius:24px;font-family:var(--cn-font);font-size:var(--cn-text-md);font-weight:700;border:none;cursor:pointer;transition:all .15s}.cn-warning-modal__btn--danger{background:var(--cn-red, #c0392b);color:#fff}.cn-warning-modal__btn--danger:hover{background:#a93226}.cn-warning-modal__btn--danger[disabled]{opacity:.4;cursor:not-allowed}.cn-warning-modal__btn--safe{background:var(--cn-primary);color:#fff}.cn-warning-modal__btn--safe:hover{background:var(--cn-primary-hover)}.cn-pro-pricing__hero{text-align:center;margin-bottom:28px}.cn-pro-pricing__heading{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);margin:0 0 8px}.cn-pro-pricing__sub{font-size:var(--cn-text-md);color:var(--cn-muted);margin:0}.cn-pro-pricing__benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:32px}.cn-pro-pricing__benefit{background:#f8fffe;border:1px solid #d4f0e8;border-radius:10px;padding:16px;text-align:center}.cn-pro-pricing__benefit-icon{font-size:var(--cn-text-xl);margin-bottom:8px}.cn-pro-pricing__benefit-title{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading);margin:0 0 4px}.cn-pro-pricing__benefit-desc{font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.4;margin:0}.cn-pro-pricing__cards{display:flex;gap:16px;margin-bottom:16px}.cn-pro-pricing__card{flex:1;border:2px solid var(--cn-border);border-radius:12px;padding:24px 20px;text-align:center;position:relative;transition:all .15s;cursor:pointer;background:#fff}.cn-pro-pricing__card:hover{border-color:#c0c4cc;transform:translateY(-1px);box-shadow:0 4px 12px #0000000f}.cn-pro-pricing__card--popular{border-color:var(--cn-primary);box-shadow:0 4px 16px #20c19e26}.cn-pro-pricing__card-badge{position:absolute;top:-10px;left:50%;transform:translate(-50%);background:var(--cn-primary);color:#fff;font-size:var(--cn-text-xs);font-weight:700;padding:2px 10px;border-radius:10px;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap}.cn-pro-pricing__card-domains{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);line-height:1}.cn-pro-pricing__card-domains-label{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-bottom:12px;display:block}.cn-pro-pricing__card-price{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);margin-bottom:4px}.cn-pro-pricing__card-price sup{font-size:var(--cn-text-md);vertical-align:super}.cn-pro-pricing__card-price sub{font-size:var(--cn-text-sm);font-weight:400;color:var(--cn-muted)}.cn-pro-pricing__card-per-domain{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-bottom:16px;display:block}.cn-pro-pricing__card-btn{width:100%;text-align:center;padding:10px;border-radius:20px;font-family:var(--cn-font);font-size:var(--cn-text-base);font-weight:700;border:2px solid var(--cn-border);background:transparent;color:var(--cn-heading);cursor:pointer;transition:all .15s}.cn-pro-pricing__card-btn:hover{border-color:var(--cn-primary);color:var(--cn-primary)}.cn-pro-pricing__card-btn--primary{background:var(--cn-primary);color:#fff;border-color:var(--cn-primary)}.cn-pro-pricing__card-btn--primary:hover{background:var(--cn-primary-hover);border-color:var(--cn-primary-hover)}.cn-pro-pricing__back{display:inline-flex;align-items:center;gap:6px;font-size:var(--cn-text-base);color:var(--cn-muted);cursor:pointer;margin-top:8px;border:none;background:none;font-family:var(--cn-font)}.cn-pro-pricing__back:hover{color:var(--cn-primary)}.cn-script-blocking{margin:12px 0 8px}.cn-script-blocking__label{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading);margin-bottom:4px}.cn-script-blocking__desc{font-size:var(--cn-text-sm);color:var(--cn-muted);margin:0 0 10px}.cn-script-blocking__tabs{display:flex;gap:0;margin-bottom:8px}.cn-script-blocking__tab{padding:6px 16px;font-size:var(--cn-text-sm);font-weight:600;font-family:var(--cn-font);border:1.5px solid var(--cn-border);background:var(--cn-surface);color:var(--cn-muted);cursor:pointer;transition:all .15s}.cn-script-blocking__tab:first-child{border-radius:6px 0 0 6px}.cn-script-blocking__tab:last-child{border-radius:0 6px 6px 0;border-left:none}.cn-script-blocking__tab--active{background:var(--cn-primary);color:#fff;border-color:var(--cn-primary)}.cn-script-blocking__tab--active+.cn-script-blocking__tab{border-left:none}@media(max-width:760px){.cn-category-grid,.cn-welcome-split,.cn-plan-cards,.cn-benefit-grid,.cn-pricing-cards{grid-template-columns:1fr}.cn-protection-cards{flex-direction:column}.cn-pro-pricing__benefits{grid-template-columns:1fr}.cn-pro-pricing__cards{flex-direction:column}}.cn-payment-step{padding:8px 0 16px}.cn-payment-step__heading{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);margin:0 0 16px;text-align:center}.cn-payment-step__plan-pill{display:inline-block;background:var(--cn-green-bg);color:var(--cn-primary);border:1px solid var(--cn-primary);border-radius:20px;padding:4px 14px;font-size:var(--cn-text-base);font-weight:600;margin:0 auto 20px;text-align:center;width:100%;box-sizing:border-box}.cn-payment-step__error{background:var(--cn-red-bg);color:var(--cn-red);border:1px solid var(--cn-red);border-radius:6px;padding:10px 14px;font-size:var(--cn-text-base);margin-bottom:16px}.cn-payment-step__loading{text-align:center;color:var(--cn-muted);font-size:var(--cn-text-base);padding:32px 0}.cn-payment-step__form{width:100%}.cn-payment-step__field{margin-bottom:14px;flex:1}.cn-payment-step__label{display:block;font-size:var(--cn-text-sm);font-weight:600;color:var(--cn-text);margin-bottom:5px;font-family:var(--cn-font)}.cn-payment-step__input{width:100%;height:40px;padding:0 12px;border:1.5px solid var(--cn-border);border-radius:6px;font-size:var(--cn-text-md);font-family:var(--cn-font);color:var(--cn-text);background:var(--cn-surface);box-sizing:border-box;transition:border-color .15s}.cn-payment-step__input:focus{outline:none;border-color:var(--cn-primary)}.cn-payment-step__hosted-field{height:40px;padding:0 12px;border:1.5px solid var(--cn-border);border-radius:6px;background:var(--cn-surface);box-sizing:border-box;transition:border-color .15s}.cn-payment-step__hosted-field.braintree-hosted-fields-focused{border-color:var(--cn-primary)}.cn-payment-step__hosted-field.braintree-hosted-fields-invalid{border-color:var(--cn-red)}.cn-payment-step__hosted-field.braintree-hosted-fields-valid{border-color:var(--cn-green)}.cn-payment-step__row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.cn-payment-step__braintree-badge{font-size:var(--cn-text-sm);color:var(--cn-muted);text-align:center;margin:8px 0 16px}.cn-payment-step__submit{width:100%;height:44px;font-size:var(--cn-text-md);font-weight:600}.cn-payment-step__back{margin-top:10px;height:44px}.cn-payment-step__back--standalone{margin-top:16px}.cn-auth-form__error{background:var(--cn-red-bg);color:var(--cn-red);border:1px solid var(--cn-red);border-radius:6px;padding:10px 14px;font-size:var(--cn-text-base);margin-bottom:14px}.cn-auth-form__switch-link{background:none;border:none;padding:0;color:var(--cn-red);font-size:var(--cn-text-base);font-weight:600;text-decoration:underline;cursor:pointer;font-family:var(--cn-font)}.cn-auth-form__switch-link:hover{color:var(--cn-primary)}.cn-auth-form__field-hint{margin:-6px 0 10px;font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.4}.cn-auth-form__notice{background:var(--cn-bg-subtle, #f6f7f7);color:var(--cn-text, #1d2327);border:1px solid var(--cn-border, #dcdcde);border-radius:6px;padding:10px 14px;font-size:var(--cn-text-base);margin-bottom:14px}.cn-auth-form__links{display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:16px}.cn-auth-form__switch-link:disabled{color:var(--cn-muted);cursor:default;text-decoration:none}.cn-app-choice{border:0;margin:0 0 12px;padding:0;display:flex;flex-direction:column;gap:8px}.cn-app-choice__option{display:flex;align-items:flex-start;gap:10px;padding:10px 14px;border:1px solid var(--cn-border, #dcdcde);border-radius:6px;cursor:pointer;text-align:left}.cn-app-choice__option--selected{border-color:var(--cn-primary, #2271b1)}.cn-app-choice__option input{margin-top:3px}.cn-app-choice__text{display:flex;flex-direction:column;gap:2px;min-width:0;overflow-wrap:anywhere}.cn-app-choice__name{font-weight:600;color:var(--cn-text, #1d2327)}.cn-app-choice__domain{font-size:var(--cn-text-base);color:var(--cn-muted)}.cn-app-choice__badge{align-self:flex-start;font-size:12px;color:var(--cn-muted);background:var(--cn-bg-subtle, #f6f7f7);border-radius:10px;padding:1px 8px}.cn-app-choice__note{margin:0 0 14px;font-size:var(--cn-text-base);color:var(--cn-muted);text-align:left}.cn-license-select{text-align:center}.cn-license-select__upsell-icon{font-size:var(--cn-text-xl);margin-bottom:12px}.cn-license-select__heading{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);margin:0 0 10px;line-height:1.3;text-align:center}.cn-license-select__sub{font-size:var(--cn-text-md);color:var(--cn-muted);line-height:1.6;max-width:420px;margin:0 auto 20px}.cn-license-select__choose-label{font-size:var(--cn-text-base);color:var(--cn-text);margin:0 0 12px;text-align:left}.cn-license-select__single-card{display:flex;align-items:center;justify-content:space-between;border:1.5px solid var(--cn-primary);border-radius:10px;padding:16px 20px;background:var(--cn-green-bg, #e8faf5);margin-bottom:20px;text-align:left}.cn-license-select__cards{display:flex;flex-direction:column;gap:10px;margin-bottom:20px;text-align:left}.cn-license-select__card{display:flex;align-items:center;gap:12px;border:1.5px solid var(--cn-border);border-radius:10px;padding:14px 16px;cursor:pointer;background:var(--cn-surface);transition:border-color .15s,background .15s}.cn-license-select__card:hover{border-color:var(--cn-primary)}.cn-license-select__card--selected{border-color:var(--cn-primary);background:var(--cn-green-bg, #e8faf5)}.cn-license-select__radio{flex-shrink:0;accent-color:var(--cn-primary);width:16px;height:16px}.cn-license-select__card-body{display:flex;flex-direction:column;gap:2px;flex:1}.cn-license-select__card-name{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading)}.cn-license-select__card-slots{font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-license-select__error{background:var(--cn-red-bg, #fdecea);color:var(--cn-red, #e74c3c);border:1px solid var(--cn-red, #e74c3c);border-radius:6px;padding:10px 14px;font-size:var(--cn-text-base);margin-bottom:14px;text-align:left}.cn-license-select__actions{margin-bottom:12px}.cn-license-select__free-link{background:none;border:none;color:var(--cn-muted);font-size:var(--cn-text-base);font-family:var(--cn-font);cursor:pointer;padding:0;text-decoration:underline}.cn-license-select__free-link:hover{color:var(--cn-text)}.cn-plugin-settings{margin-top:24px}.cn-plugin-settings__actions{display:flex;align-items:center;gap:12px;margin-top:20px;padding-top:16px;border-top:1px solid var(--cn-border, #e2e8f0)}.cn-plugin-settings__saved{color:var(--cn-success, #16a34a);font-size:var(--cn-text-base);font-weight:500}.cn-plugin-settings__actions>.cn-button--secondary:last-child{margin-left:auto}.cn-plugin-settings__reset-confirm{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:12px;padding:12px 16px;border:1px solid var(--cn-warning, #f59e0b);border-radius:6px;background:#fffbeb}.cn-plugin-settings__reset-confirm p{flex-basis:100%;margin:0;font-size:var(--cn-text-base)}.cn-toggle-row{padding:10px 0;border-bottom:1px solid var(--cn-border-light, #f1f5f9)}.cn-toggle-row:last-child{border-bottom:none}.cn-toggle-row__label{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:var(--cn-text-base);font-weight:500;color:var(--cn-text, #1e293b)}.cn-toggle-row__input{width:16px;height:16px;accent-color:var(--cn-primary, #3b82f6);cursor:pointer}.cn-toggle-row__desc{margin-top:4px;padding-left:24px;font-size:var(--cn-text-sm);color:var(--cn-text-muted, #64748b)}.cn-radio-group{padding:8px 0}.cn-radio-group__label{font-size:var(--cn-text-base);font-weight:500;color:var(--cn-text, #1e293b);margin-bottom:6px}.cn-radio-group__options{display:flex;gap:16px;flex-wrap:wrap}.cn-radio-group__option{display:flex;align-items:center;gap:6px;font-size:var(--cn-text-base);color:var(--cn-text, #1e293b);cursor:pointer}.cn-radio-group__option input[type=radio]{accent-color:var(--cn-primary, #3b82f6);cursor:pointer}.cn-opacity-slider{width:100%;height:6px;accent-color:var(--cn-primary, #3b82f6);cursor:pointer}.cn-compliance-behavior__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:16px}@media(max-width:900px){.cn-compliance-behavior__grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:560px){.cn-compliance-behavior__grid{grid-template-columns:1fr}}.cn-compliance-behavior__footer{padding:10px 14px;background:var(--cn-bg-muted, #f8fafc);border-radius:6px;font-size:var(--cn-text-sm);color:var(--cn-text-muted, #64748b);line-height:1.5}.cn-compliance-card__pills{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}.cn-compliance-card__note{font-size:var(--cn-text-sm);color:var(--cn-text-muted, #64748b);margin-top:4px;line-height:1.4}.cn-compliance-empty{padding:24px 20px;border:1px dashed var(--cn-border, #e2e8f0);border-radius:8px;text-align:center}.cn-compliance-empty__icon{font-size:var(--cn-text-xl);margin-bottom:10px}.cn-compliance-empty__title{font-size:var(--cn-text-md);font-weight:600;color:var(--cn-text, #1e293b);margin-bottom:6px}.cn-compliance-empty__body{font-size:var(--cn-text-base);color:var(--cn-text-muted, #64748b);margin-bottom:14px;max-width:320px;margin-left:auto;margin-right:auto}.cn-compliance-empty__link{font-size:var(--cn-text-base);font-weight:600;color:var(--cn-primary, #3b82f6);text-decoration:none}.cn-compliance-empty__link:hover{text-decoration:underline}.cn-rule-builder{margin-top:8px}.cn-rule-builder__empty{padding:10px 14px;background:var(--cn-bg-muted, #f8fafc);border:1px dashed var(--cn-border, #e2e8f0);border-radius:6px;font-size:var(--cn-text-sm);color:var(--cn-text-muted, #64748b);margin:0 0 8px}.cn-rule-builder__add-group{background:none;border:1px dashed var(--cn-border, #e2e8f0);border-radius:6px;padding:8px 14px;cursor:pointer;font-size:var(--cn-text-sm);color:var(--cn-primary, #00a99d);width:100%;margin-top:8px}.cn-rule-builder__add-group:hover{border-color:var(--cn-primary, #00a99d);background:var(--cn-bg-muted, #f8fafc)}.cn-rule-group__or{text-align:center;font-size:11px;font-weight:700;text-transform:uppercase;color:var(--cn-text-muted, #64748b);padding:6px 0;letter-spacing:.05em}.cn-rule-group__and{font-size:11px;font-weight:600;text-transform:uppercase;color:var(--cn-text-muted, #94a3b8);padding:2px 0 2px 4px}.cn-rule-group__card{border:1px solid var(--cn-border, #e2e8f0);border-radius:6px;padding:10px;background:var(--cn-bg-muted, #f8fafc)}.cn-rule-group__add-rule{background:none;border:none;padding:4px 0;cursor:pointer;font-size:var(--cn-text-sm);color:var(--cn-primary, #00a99d)}.cn-rule-group__add-rule:hover{text-decoration:underline}.cn-rule-row{display:flex;gap:6px;align-items:center;margin-bottom:4px}.cn-rule-row select{flex:1;min-width:0;padding:5px 8px;border:1px solid var(--cn-border, #e2e8f0);border-radius:4px;font-size:var(--cn-text-sm);background:#fff}.cn-rule-row__param{flex:1.2}.cn-rule-row__operator{flex:1}.cn-rule-row__value{flex:1.5}.cn-rule-row__remove{background:none;border:none;cursor:pointer;font-size:18px;color:var(--cn-text-muted, #94a3b8);padding:2px 6px;line-height:1;flex-shrink:0}.cn-rule-row__remove:hover{color:#ef4444}.cn-network-managed{opacity:.5;pointer-events:none}.cn-pill-toggle{display:flex;background:var(--cn-light-bg, #f0f2f5);border-radius:24px;padding:4px;width:fit-content}.cn-pill-toggle__btn{flex:1;border:none;background:transparent;border-radius:20px;cursor:pointer;font-size:var(--cn-text-base);font-family:var(--cn-font);font-weight:600;padding:8px 24px;color:var(--cn-muted);transition:all .15s;white-space:nowrap;display:inline-flex;align-items:center;gap:6px}.cn-pill-toggle__btn--active{background:#fff;box-shadow:0 1px 3px #0000001a;color:var(--cn-heading)}.cn-pill-toggle__btn:not(.cn-pill-toggle__btn--active):hover{color:var(--cn-heading)}.cn-pill-toggle__badge{background:linear-gradient(135deg,#f7b731,#f5a623);color:#1a1a1a;font-size:var(--cn-text-xs);font-weight:900;padding:2px 6px;border-radius:3px;text-transform:uppercase;letter-spacing:.3px}.cn-pill-toggle-desc{font-size:var(--cn-text-sm);color:var(--cn-muted);margin:8px 0 6px}.cn-pill-toggle-note{font-size:var(--cn-text-xs);color:var(--cn-text-muted, #64748b);margin-top:12px}.cn-protection-header{margin-bottom:20px}.cn-protection-header__title{font-size:var(--cn-text-xl);font-weight:600;color:#434f58;margin:0 0 4px}.cn-protection-header__subtitle{font-size:var(--cn-text-base);color:#6b7280;margin:0}.cn-first-run{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:24px;margin-bottom:24px;box-shadow:0 1px 4px #0000000f}.cn-first-run__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.cn-first-run__title{font-size:var(--cn-text-lg);font-weight:600;color:#434f58;margin:0}.cn-first-run__dismiss{background:none;border:none;cursor:pointer;font-size:var(--cn-text-xl);color:#6b7280;line-height:1;padding:2px 6px;border-radius:4px}.cn-first-run__dismiss:hover{background:#f3f4f6;color:#434f58}.cn-first-run__progress{display:flex;align-items:center;gap:0;margin-bottom:24px;counter-reset:step}.cn-first-run__step-indicator{display:flex;align-items:center;gap:8px;flex:1;position:relative}.cn-first-run__step-indicator:not(:last-child):after{content:"";display:block;flex:1;height:2px;background:var(--cn-border);margin:0 8px;order:3}.cn-first-run__step-indicator--done .cn-first-run__step-num{background:var(--cn-primary);border-color:var(--cn-primary);color:#fff}.cn-first-run__step-indicator--done .cn-first-run__step-num:before{content:"✓"}.cn-first-run__step-indicator--done:after{background:var(--cn-primary)!important}.cn-first-run__step-indicator--active .cn-first-run__step-num{background:var(--cn-primary);border-color:var(--cn-primary);color:#fff}.cn-first-run__step-indicator--active .cn-first-run__step-label{color:var(--cn-primary);font-weight:600}.cn-first-run__step-num{width:28px;height:28px;border-radius:50%;border:2px solid var(--cn-border);background:#fff;color:#6b7280;font-size:var(--cn-text-sm);font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;order:1;transition:background .2s,border-color .2s}.cn-first-run__step-label{font-size:var(--cn-text-sm);color:#6b7280;order:2;white-space:nowrap}.cn-first-run__body{margin-bottom:20px}.cn-first-run__body h3{font-size:var(--cn-text-md);font-weight:600;color:#434f58;margin:0 0 4px}.cn-first-run__body p{font-size:var(--cn-text-base);color:#6b7280;margin:0 0 16px}.cn-first-run__step-badge{display:inline-block;font-size:var(--cn-text-sm);font-weight:500;color:#6b7280;background:#f1f5f9;padding:2px 8px;border-radius:20px;margin-left:8px;vertical-align:middle}.cn-first-run__nav{display:flex;align-items:center;justify-content:space-between;padding-top:16px;border-top:1px solid var(--cn-border)}.cn-first-run__nav-right{display:flex;align-items:center;gap:8px;margin-left:auto}.cn-inline-panel{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:24px;margin-bottom:24px;box-shadow:0 1px 4px #0000000f}.cn-inline-panel__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.cn-inline-panel__title{font-size:var(--cn-text-lg);font-weight:600;color:#434f58;margin:0}.cn-inline-panel__dismiss{background:none;border:none;cursor:pointer;font-size:var(--cn-text-xl);color:#6b7280;line-height:1;padding:2px 6px;border-radius:4px}.cn-inline-panel__dismiss:hover{background:#f3f4f6;color:#434f58}.cn-inline-panel__body{margin-bottom:20px}.cn-inline-panel__body h3{font-size:var(--cn-text-md);font-weight:600;color:#434f58;margin:0 0 4px}.cn-inline-panel__body p{font-size:var(--cn-text-base);color:#6b7280;margin:0 0 16px}.cn-inline-panel__footer{display:flex;align-items:center;justify-content:space-between;padding-top:16px;border-top:1px solid var(--cn-border)}@media(prefers-reduced-motion:no-preference){@keyframes cn-panel-enter{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.cn-inline-panel{animation:cn-panel-enter .22s cubic-bezier(.16,1,.3,1) both}.cn-inline-panel--closing{animation:none;transition:opacity .16s ease,transform .16s ease;opacity:0;transform:translateY(-6px);pointer-events:none}}.cn-law-selector__grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:16px}@media(max-width:600px){.cn-law-selector__grid{grid-template-columns:1fr}}.cn-law-selector__card{display:flex;align-items:flex-start;gap:10px;border:2px solid var(--cn-border);border-radius:10px;padding:12px 14px;cursor:pointer;background:var(--cn-surface);transition:border-color .15s}.cn-law-selector__card:hover{border-color:var(--cn-primary)}.cn-law-selector__card--active{border-color:var(--cn-primary);background:var(--cn-primary-light, #e6faf5)}.cn-law-selector__checkbox{width:16px;height:16px;margin-top:1px;flex-shrink:0;accent-color:var(--cn-primary)}.cn-law-selector__info{flex:1}.cn-law-selector__name{font-size:var(--cn-text-base);font-weight:600;color:#434f58;margin-bottom:1px}.cn-law-selector__jurisdiction{font-size:var(--cn-text-sm);color:#6b7280;margin-bottom:2px}.cn-law-selector__desc{font-size:var(--cn-text-sm);color:#6b7280;line-height:1.4}.cn-law-selector__dns-url{margin-top:12px;padding:14px;background:#fffbeb;border:1px solid #fde68a;border-radius:10px}.cn-law-selector__dns-label{font-size:var(--cn-text-base);font-weight:600;color:#434f58;margin-bottom:4px;display:block}.cn-law-selector__dns-help{font-size:var(--cn-text-sm);color:#6b7280;margin-bottom:8px;display:block}.cn-law-selector__dns-input{width:100%;padding:8px 10px;border:1px solid var(--cn-border);border-radius:4px;font-size:var(--cn-text-base);box-sizing:border-box}.cn-law-selector__dns-input:focus{outline:none;border-color:var(--cn-primary);box-shadow:0 0 0 2px #20c19e26}.cn-law-selector__dns-required{font-size:var(--cn-text-sm);color:#d63638;margin-top:4px}.cn-compliance-rules__consent-modes{margin-top:16px;border-top:1px solid var(--cn-border);padding-top:16px}.cn-compliance-rules__mode-toggle{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid #f3f4f6}.cn-compliance-rules__mode-toggle:last-child{border-bottom:none}.cn-compliance-rules__mode-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;font-size:var(--cn-text-sm);font-weight:700;margin-right:8px;flex-shrink:0}.cn-compliance-rules__mode-icon--g{background:#ea4335;color:#fff}.cn-compliance-rules__mode-icon--f{background:#1877f2;color:#fff}.cn-compliance-rules__mode-icon--m{background:#00a4ef;color:#fff}.cn-compliance-rules__detected-badge{font-size:var(--cn-text-xs);font-weight:600;color:#0d6efd;background:#e7f1ff;border-radius:20px;padding:2px 7px;margin-left:6px}.cn-compliance-rules__suggestion{background:#f0f9ff;border:1px solid #bae6fd;border-radius:4px;padding:10px 12px;font-size:var(--cn-text-sm);color:#0369a1;margin-bottom:14px}.cn-compliance-rules__portal-link{display:block;font-size:var(--cn-text-sm);color:var(--cn-primary);text-decoration:none;margin-top:14px}.cn-compliance-rules__portal-link:hover{text-decoration:underline}.cn-compliance-rules__actions{margin-top:16px;display:flex;gap:8px;align-items:center}.cn-language-picker__grid{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.cn-language-picker__badge{display:inline-flex;align-items:center;gap:5px;padding:6px 12px;border:1px solid var(--cn-border);border-radius:20px;background:#fff;font-size:var(--cn-text-sm);font-weight:500;color:#434f58;cursor:pointer;transition:border-color .15s,background .15s}.cn-language-picker__badge:hover{border-color:var(--cn-primary)}.cn-language-picker__badge--active{border-color:var(--cn-primary);background:var(--cn-primary-light, #e6faf5);color:#189b7e;font-weight:600}.cn-language-picker__badge--locked{opacity:.45;cursor:pointer;border-color:var(--cn-border);background:#f9fafb;color:#6b7280}.cn-language-picker__badge--locked:hover{border-color:var(--cn-primary);opacity:.65}.cn-language-picker__note{font-size:var(--cn-text-sm);color:#6b7280;margin-bottom:12px;display:block}.cn-language-picker__hint{font-size:var(--cn-text-sm);color:#6b7280;line-height:1.5;margin:0 0 12px;padding:8px 10px;background:#f8fafc;border-left:3px solid var(--cn-border);border-radius:0 4px 4px 0}.cn-language-picker__actions{display:flex;gap:8px;margin-top:12px}.cn-language-picker__error{font-size:var(--cn-text-sm);color:#d63638;margin-top:6px}.cn-dns-url{margin-top:12px}.cn-dns-url label{display:block;font-size:var(--cn-text-base);font-weight:600;color:#434f58;margin-bottom:4px}.cn-dns-url input{width:100%;padding:8px 10px;border:1px solid var(--cn-border);border-radius:4px;font-size:var(--cn-text-base);box-sizing:border-box}.cn-dns-url input:focus{outline:none;border-color:var(--cn-primary);box-shadow:0 0 0 2px #20c19e26}.cn-saved-indicator{font-size:var(--cn-text-sm);color:#166534;font-weight:500}.cn-error-indicator{font-size:var(--cn-text-sm);color:#d63638;font-weight:500}.cn-privacy-source--unavailable .cn-toggle-row__label{opacity:.7}.cn-privacy-source__forms{margin-top:8px}.cn-privacy-source__forms--busy{cursor:wait;opacity:.6}.cn-admin-app input[type=checkbox].cn-privacy-form-toggle{position:relative;width:2.4rem;min-width:2.4rem;height:1.2rem;margin:0;padding:0;border:none;border-radius:9999px;background-color:#64748b60;box-shadow:none;cursor:pointer;-moz-appearance:none;appearance:none;-webkit-appearance:none;transition:background-color .2s ease}.cn-admin-app input[type=checkbox].cn-privacy-form-toggle:before{position:absolute;top:-.05rem;left:-.05rem;width:1.3rem;height:1.3rem;margin:0;border:1px solid rgba(100,116,139,.5);border-radius:9999px;background-color:#fff;box-shadow:0 2px 6px #64748b33;content:"";transition:transform .2s ease}.cn-admin-app input[type=checkbox].cn-privacy-form-toggle:focus{box-shadow:none}.cn-admin-app input[type=checkbox].cn-privacy-form-toggle:checked{background-color:var(--cn-primary)}.cn-admin-app input[type=checkbox].cn-privacy-form-toggle:checked:before{border-color:var(--cn-primary);transform:translate(100%)}.cn-admin-app input[type=checkbox].cn-privacy-form-toggle:disabled{cursor:default;opacity:.4}.cn-privacy-consent__loading,.cn-privacy-consent-logs__desc{font-size:var(--cn-text-sm);color:var(--cn-muted);margin:0 0 12px}.cn-privacy-source__save{margin-top:12px}.cn-banner-panel{display:grid;grid-template-columns:minmax(0,300px) minmax(0,1fr);gap:24px;margin-bottom:24px;padding:20px 22px;background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px}@media(max-width:960px){.cn-banner-panel{grid-template-columns:1fr}}.cn-banner-panel__shot{display:flex;flex-direction:column;gap:12px}.cn-banner-panel__head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}.cn-banner-panel__title{margin:0;font-size:var(--cn-text-lg);font-weight:700;color:var(--cn-heading)}.cn-banner-panel__status{padding:2px 10px;border-radius:10px;font-size:var(--cn-text-sm);font-weight:600}.cn-banner-panel__status--live{background:var(--cn-ok-pill-bg);color:var(--cn-ok-pill-txt)}.cn-banner-panel__status--off{background:var(--cn-off-pill-bg);color:var(--cn-off-pill-txt)}.cn-banner-panel__caption{margin:0;font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.4}.cn-banner-panel__rows{display:flex;flex-direction:column}.cn-banner-panel__managed{margin:0 0 8px;padding:10px 12px;border-radius:6px;background:var(--cn-light-bg);font-size:var(--cn-text-base);color:var(--cn-heading)}.cn-banner-panel__row{display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px;padding:12px 0;border-bottom:1px solid var(--cn-border)}.cn-banner-panel__label{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.04em;padding-top:2px}.cn-banner-panel__value{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0}.cn-banner-panel__chip{padding:2px 10px;border-radius:10px;font-size:var(--cn-text-sm);font-weight:700}.cn-banner-panel__chip--new{background:var(--cn-light-bg);color:var(--cn-info)}.cn-banner-panel__chip--classic{background:var(--cn-off-pill-bg);color:var(--cn-link-neutral)}.cn-banner-panel__note{font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.4}.cn-banner-panel__link{padding:0;border:none;background:none;font-family:var(--cn-font);font-size:var(--cn-text-sm);font-weight:600;color:var(--cn-link-neutral);text-decoration:underline;text-decoration-color:var(--cn-border);text-underline-offset:2px;cursor:pointer}.cn-banner-panel__link:hover{color:var(--cn-heading);text-decoration-color:var(--cn-muted)}.cn-banner-panel__link:disabled{cursor:default;color:var(--cn-muted)}.cn-banner-panel__actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;padding-top:14px}.cn-banner-panel__sync{display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px;font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-banner-panel__sync-failed{flex-basis:100%;color:var(--cn-warn-val)}.cn-banner-panel__preview-help{margin:10px 0 0;font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.4}.cn-style-cards{display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%}.cn-style-cards__group{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px;width:100%}.cn-style-cards__group--readonly .cn-style-cards__card{cursor:default}.cn-style-cards__group--locked{opacity:.55}.cn-style-cards__group--saving{cursor:progress}.cn-style-cards__group--saving .cn-style-cards__card{cursor:progress;opacity:.75}.cn-style-cards__card{display:grid;grid-template-columns:auto 1fr;gap:2px 8px;padding:10px 12px;border:1px solid var(--cn-border);border-radius:8px;background:var(--cn-surface);cursor:pointer}.cn-style-cards__card input[type=radio]{grid-row:span 2;margin:2px 0 0}.cn-style-cards__card--checked{border-color:var(--cn-primary);box-shadow:0 0 0 1px var(--cn-primary)}.cn-style-cards__name{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading)}.cn-style-cards__desc{font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.35}.cn-style-cards__note{font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.4}.cn-style-cards__error{width:100%;box-sizing:border-box;padding:6px 10px;border-radius:6px;background:#fdecea;color:#c0392b;font-size:var(--cn-text-sm);line-height:1.4}.cn-first-run__style{display:flex;flex-direction:column;gap:8px;margin-bottom:20px}.cn-ov-verdict{border:1px solid var(--cn-border);border-radius:10px;padding:16px 18px;margin-bottom:16px}.cn-ov-verdict--ok{background:linear-gradient(180deg,var(--cn-green-bg),var(--cn-surface));border-color:var(--cn-ok-pill-bg)}.cn-ov-verdict--warn{background:linear-gradient(180deg,var(--cn-warn-card-bg),var(--cn-surface));border-color:var(--cn-warn-border)}.cn-ov-verdict--crit{background:linear-gradient(180deg,var(--cn-crit-card-bg),var(--cn-surface));border-color:var(--cn-crit-border)}.cn-ov-verdict--neutral{background:linear-gradient(180deg,#f3f4f6,var(--cn-surface))}.cn-ov-verdict__top{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}.cn-ov-verdict__grade{font-size:var(--cn-text-lg);font-weight:700;color:var(--cn-heading)}.cn-ov-verdict__gap{font-size:var(--cn-text-sm);font-weight:600;padding:2px 8px;border-radius:10px;background:var(--cn-off-pill-bg);color:var(--cn-off-pill-txt)}.cn-ov-verdict--ok .cn-ov-verdict__gap{background:var(--cn-ok-pill-bg);color:var(--cn-ok-pill-txt)}.cn-ov-verdict--warn .cn-ov-verdict__gap{background:var(--cn-warn-pill-bg);color:var(--cn-warn-pill-txt)}.cn-ov-verdict--crit .cn-ov-verdict__gap{background:var(--cn-crit-pill-bg);color:var(--cn-crit-pill-txt)}.cn-ov-verdict__intro{margin:6px 0 0;font-size:var(--cn-text-base);color:var(--cn-text);line-height:1.45}.cn-ov-verdict__count{font-size:var(--cn-text-sm);font-weight:600;padding:2px 8px;border-radius:10px;background:var(--cn-warn-pill-bg);color:var(--cn-warn-pill-txt)}.cn-ov-verdict--crit .cn-ov-verdict__count{background:var(--cn-crit-pill-bg);color:var(--cn-crit-pill-txt)}.cn-ov-verdict__note{margin:6px 0 0;font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.45}.cn-ov-boxes{margin-top:0;margin-bottom:16px}.cn-ov-box__title{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.03em}.cn-card__foot .cn-ov-box__fix{color:var(--cn-primary);text-decoration-color:currentColor}.cn-card__foot .cn-ov-box__fix:hover{color:var(--cn-primary-hover)}.cn-ov-numbers{display:flex;flex-wrap:wrap;gap:12px 32px;align-items:flex-start;background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:14px 18px;margin-bottom:16px}.cn-ov-numbers__foot{flex-basis:100%;display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center;font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-ov-stat{display:flex;flex-direction:column;gap:2px}.cn-ov-stat__v{font-size:var(--cn-text-xl);font-weight:800;color:var(--cn-heading);line-height:1.15}.cn-ov-stat__k{font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-ov-stat__split{display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:4px;font-size:var(--cn-text-sm);color:var(--cn-text)}.cn-ov-steps,.cn-lls{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:14px 18px;margin-bottom:16px}.cn-ov-steps__title,.cn-lls__title{font-size:var(--cn-text-md);font-weight:700;color:var(--cn-heading);margin:0 0 8px}.cn-ov-steps__list{margin:0;padding:0;list-style:none}.cn-ov-steps__item{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 12px;padding:8px 0;border-top:1px solid var(--cn-border);font-size:var(--cn-text-base);color:var(--cn-text)}.cn-ov-steps__item:first-child{border-top:none}.cn-lls__row{display:grid;grid-template-columns:140px 1fr auto;gap:8px 12px;align-items:center;padding:8px 0;border-top:1px solid var(--cn-border)}.cn-lls__row:first-of-type{border-top:none}@media(max-width:782px){.cn-lls__row{grid-template-columns:1fr}}.cn-lls__k{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted)}.cn-lls__v{display:flex;flex-wrap:wrap;gap:5px;font-size:var(--cn-text-base);color:var(--cn-text)}.cn-lls__none{color:var(--cn-muted)}.cn-lls__action{font-size:var(--cn-text-sm);font-weight:600;color:var(--cn-link-neutral);text-decoration:underline;text-decoration-color:var(--cn-border);text-underline-offset:2px;background:none;border:none;padding:0;cursor:pointer;font-family:var(--cn-font);white-space:nowrap}.cn-lls__action:hover{color:var(--cn-heading);text-decoration-color:var(--cn-muted)}@font-face{font-family:Lato;font-style:normal;font-weight:300;font-display:swap;src:url(./lato-300.woff2) format("woff2")}@font-face{font-family:Lato;font-style:normal;font-weight:400;font-display:swap;src:url(./lato-400.woff2) format("woff2")}@font-face{font-family:Lato;font-style:normal;font-weight:700;font-display:swap;src:url(./lato-700.woff2) format("woff2")}@font-face{font-family:Lato;font-style:normal;font-weight:900;font-display:swap;src:url(./lato-900.woff2) format("woff2")}:root{--cn-bg: #f7f8fa;--cn-surface: #ffffff;--cn-primary: #20c19e;--cn-primary-hover: #1baa8a;--cn-heading: #1a1a2e;--cn-text: #434f58;--cn-border: #e0e4e8;--cn-muted: #8a9199;--cn-green: #20c19e;--cn-green-bg: #e8faf5;--cn-yellow: #f5a623;--cn-yellow-bg: #fef7e8;--cn-red: #e74c3c;--cn-red-bg: #fdecea;--cn-orange: #f39c12;--cn-orange-bg: #fef5e7;--cn-secondary: #ffc107;--cn-info: #6179e8;--cn-light-bg: #f0f2f5;--cn-gold: #f5a623;--cn-gold-bg: #fef7e8;--cn-ok-icon: #16a34a;--cn-ok-dot: #16a34a;--cn-ok-pill-bg: #dcfce7;--cn-ok-pill-txt: #15803d;--cn-ok-val: #111827;--cn-warn-icon: #b45309;--cn-warn-dot: #d97706;--cn-warn-pill-bg: #fde68a;--cn-warn-pill-txt:#92400e;--cn-warn-val: #b45309;--cn-crit-icon: #dc2626;--cn-crit-dot: #ef4444;--cn-crit-pill-bg: #fee2e2;--cn-crit-pill-txt:#b91c1c;--cn-crit-val: #dc2626;--cn-crit-card-bg: #fff8f8;--cn-crit-border: #fecaca;--cn-warn-card-bg: #fffbeb;--cn-warn-border: #fde68a;--cn-off-icon: #9ca3af;--cn-off-dot: #d1d5db;--cn-off-pill-bg: #f3f4f6;--cn-off-pill-txt: #6b7280;--cn-off-val: #9ca3af;--cn-link-neutral: #374151;--cn-font: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;--cn-text-xs: 10px;--cn-text-sm: 12px;--cn-text-base: 13px;--cn-text-md: 14px;--cn-text-lg: 18px;--cn-text-xl: 22px}.cn-admin-app{font-family:var(--cn-font);color:var(--cn-text);margin-top:20px}.cn-admin-app *,.cn-admin-app *:before,.cn-admin-app *:after{box-sizing:border-box}.cn-tab-nav{display:flex;background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:6px 6px 0 0;padding:0 16px;margin:0;list-style:none}.cn-tab-nav__item{padding:12px 20px;font-weight:500;font-size:var(--cn-text-md);color:var(--cn-muted);border-bottom:2px solid transparent;background:none;border-top:none;border-left:none;border-right:none;cursor:pointer;transition:color .2s,border-color .2s;font-family:var(--cn-font)}.cn-tab-nav__item:hover{color:var(--cn-heading)}.cn-tab-nav__item--active{color:var(--cn-primary);border-bottom-color:var(--cn-primary)}.cn-tab-content{background:var(--cn-bg);border:1px solid var(--cn-border);border-top:none;border-radius:0 0 6px 6px;padding:24px}.cn-page-layout{display:flex;gap:24px;align-items:flex-start}.cn-page-layout .cn-main{flex:1;min-width:0}.cn-page-layout .cn-sidebar{width:300px;flex-shrink:0;position:sticky;top:32px}.cn-section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.cn-section-header h2{font-size:var(--cn-text-base);font-weight:600;color:var(--cn-muted);margin:0;text-transform:uppercase;letter-spacing:.5px}.cn-section-header a{font-size:var(--cn-text-base);color:var(--cn-primary);text-decoration:none}.cn-section-header a:hover{color:var(--cn-primary-hover);text-decoration:underline}.cn-side-card{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:20px;margin-bottom:16px}.cn-side-card h3{font-size:var(--cn-text-md);font-weight:600;color:var(--cn-heading);margin:0 0 12px}.cn-side-card ul{list-style:none;margin:0;padding:0}.cn-side-card ul li{margin-bottom:8px}.cn-side-card ul li a{color:var(--cn-primary);text-decoration:none;font-size:var(--cn-text-md)}.cn-side-card ul li a:hover{color:var(--cn-primary-hover);text-decoration:underline}.cn-button{display:inline-flex;align-items:center;justify-content:center;padding:6px 14px;border-radius:20px;font-size:var(--cn-text-sm);font-weight:700;font-family:var(--cn-font);cursor:pointer;border:none;transition:background .2s,box-shadow .2s;text-decoration:none}.cn-button--sm{font-size:var(--cn-text-sm);padding:4px 12px}.cn-button--md{font-size:var(--cn-text-sm);padding:6px 14px}.cn-button--lg{font-size:var(--cn-text-md);padding:9px 24px}.cn-button--primary{background:var(--cn-primary);color:#fff}.cn-button--primary:hover{background:var(--cn-primary-hover)}.cn-button--outline{background:transparent;color:var(--cn-muted);border:1.5px solid var(--cn-border)}.cn-button--outline:hover{border-color:var(--cn-muted);color:var(--cn-heading)}.cn-button--upgrade{background:linear-gradient(135deg,#f7b731,#f5a623);color:#1a1a1a}.cn-button--upgrade:hover{filter:brightness(1.05)}.cn-button--warn{background:var(--cn-orange);color:#fff}.cn-button--warn:hover{background:#c0470a}.cn-button--ghost{background:transparent;color:var(--cn-muted);border:1.5px solid var(--cn-border)}.cn-button--ghost:hover{color:var(--cn-heading);border-color:var(--cn-muted)}.cn-button--block{width:100%;display:block;text-align:center}.cn-button--outline-primary{border:1px solid var(--cn-primary);color:var(--cn-primary);background:transparent}.cn-button--outline-primary:hover{background:var(--cn-primary);color:#fff}.cn-pro-badge{display:inline-block;background:linear-gradient(135deg,#f7b731,#f5a623);color:#1a1a1a;font-size:var(--cn-text-xs);font-weight:900;text-transform:uppercase;letter-spacing:.3px;padding:1px 5px;border-radius:3px}.cn-tier-gate{position:relative}.cn-tier-gate__content{filter:blur(2px);pointer-events:none;-webkit-user-select:none;user-select:none}.cn-tier-gate__overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:#ffffffb3}.cn-tier-gate__cta{text-align:center;padding:20px}.cn-tier-gate__cta p{margin:8px 0 16px;color:var(--cn-text);font-size:var(--cn-text-base)}.cn-tier-gate-inline{display:flex;align-items:flex-start;gap:14px;padding:16px 18px;background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;margin-bottom:20px}.cn-tier-gate-inline svg{flex-shrink:0;margin-top:2px}.cn-tier-gate-inline p{margin:4px 0 0;color:var(--cn-muted);font-size:var(--cn-text-sm)}.cn-compliance-hero{text-align:center;padding:48px 24px;background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px}.cn-compliance-hero h3{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);margin:16px 0 8px}.cn-compliance-hero p{color:var(--cn-muted);font-size:var(--cn-text-md);max-width:480px;margin:0 auto 24px;line-height:1.6}.cn-compliance-grade{display:inline-flex;align-items:center;justify-content:center;width:80px;height:80px;border-radius:50%;background:var(--cn-red-bg);border:3px solid var(--cn-red)}.cn-compliance-grade__letter{font-size:var(--cn-text-xl);font-weight:900;color:var(--cn-red)}.cn-conn-error{color:var(--cn-red);margin:8px 0}.cn-inline-notice{margin-bottom:16px;padding:12px 14px;border-radius:8px;border:1px solid var(--cn-border);background:var(--cn-surface);display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.cn-inline-notice--success{border-color:#b7ebc6;background:#f6fff8}.cn-inline-notice--warning{border-color:#fde68a;background:#fffbea}.cn-inline-notice--info{background:#f6f7fb;border-color:var(--cn-border)}.cn-inline-notice__message{font-size:var(--cn-text-md)}.cn-inline-notice--success .cn-inline-notice__message{color:#1e4620}.cn-inline-notice--warning .cn-inline-notice__message{color:#92400e}.cn-inline-notice--info .cn-inline-notice__message{color:#334155;font-size:var(--cn-text-base)}.cn-inline-notice__actions{display:flex;gap:12px;align-items:center}.cn-footer{margin-top:32px;padding-top:16px;border-top:1px solid var(--cn-border);display:flex;align-items:center;justify-content:space-between;font-size:var(--cn-text-base);color:var(--cn-muted)}.cn-footer a{color:var(--cn-primary);text-decoration:none;margin-left:16px}.cn-footer a:hover{color:var(--cn-primary-hover);text-decoration:underline}.cn-footer__sync{margin-left:12px;opacity:.75}.cn-footer__sync--failed{color:var(--cn-warning, #b26b00);opacity:1}.cn-footer__sync-retry{background:none;border:0;padding:0;color:var(--cn-primary);cursor:pointer;font-size:inherit;text-decoration:underline}.cn-footer__sync-retry:hover{color:var(--cn-primary-hover)}.cn-modal-overlay{position:fixed!important;top:0!important;right:0!important;bottom:0!important;left:0!important;background:#0009!important;z-index:100000!important;display:flex!important;align-items:center;justify-content:center;padding:32px}.cn-modal{background:var(--cn-surface);border-radius:12px;width:100%;overflow:visible;box-shadow:0 20px 60px #0000004d;position:relative}.cn-modal__close{position:absolute;top:16px;right:20px;background:none;border:none;font-size:var(--cn-text-xl);color:var(--cn-muted);cursor:pointer;line-height:1;padding:4px 8px;z-index:1}.cn-modal__close:hover{color:var(--cn-heading)}.cn-modal__header{padding:24px 36px 0;font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading)}.cn-modal__content{padding:36px;overflow-y:auto;max-height:calc(100vh - 140px)}.cn-wizard-shell{display:flex;flex-direction:column}.cn-wizard-shell__body{flex:1;overflow-y:auto}.cn-wizard-shell__nav{display:flex;align-items:center;padding-top:16px;border-top:1px solid var(--cn-border);margin-top:16px}.cn-wizard-shell__spacer{flex:1}.cn-accordion{margin-bottom:24px}.cn-accordion__summary{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.6px;cursor:pointer;-webkit-user-select:none;user-select:none;display:flex;align-items:center;justify-content:space-between;padding:10px 14px;background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;list-style:none;transition:border-color .15s,background .15s}.cn-accordion__summary::-webkit-details-marker{display:none}.cn-accordion__summary::marker{display:none}.cn-accordion__summary:hover{border-color:#c5ccd4;background:#f0f2f5}.cn-accordion[open]>.cn-accordion__summary{border-radius:10px 10px 0 0;border-bottom-color:var(--cn-border);background:var(--cn-surface)}.cn-accordion__left{display:flex;align-items:center;gap:8px}.cn-accordion__title{font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.6px;font-size:var(--cn-text-sm)}.cn-accordion__subtitle{color:var(--cn-text);font-weight:400;text-transform:none;letter-spacing:0;font-size:var(--cn-text-base)}.cn-accordion__chevron{font-size:var(--cn-text-xs);color:var(--cn-muted);transition:transform .2s;flex-shrink:0}.cn-accordion[open] .cn-accordion__chevron{transform:rotate(180deg)}.cn-accordion__body{background:var(--cn-surface);border:1px solid var(--cn-border);border-top:none;border-radius:0 0 10px 10px;padding:16px 18px}.cn-form-field{margin-bottom:12px}.cn-form-field:last-child{margin-bottom:0}.cn-form-field__label{display:block;font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.4px;margin-bottom:4px}.cn-form-field__req{color:#ff4848;margin-left:2px}.cn-form-field__input{width:100%;padding:7px 10px;font-size:var(--cn-text-base);font-family:var(--cn-font);border:1.5px solid var(--cn-border);border-radius:6px;color:var(--cn-heading);background:var(--cn-surface);transition:border-color .15s;outline:none}.cn-form-field__input:focus{border-color:var(--cn-primary)}.cn-form-field__input--error{border-color:#ff4848}.cn-form-field__textarea{resize:vertical;min-height:60px}.cn-form-field__select{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;padding-right:32px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a9199' d='M6 8L1 3h10z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}.cn-form-field__error{font-size:var(--cn-text-sm);color:#ff4848;margin-top:5px}.cn-form-field__helper{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-top:5px}.cn- color-picker__row{display:flex;align-items:center;gap:8px}.cn-color-picker__swatch{width:28px;height:28px;border-radius:6px;border:1.5px solid var(--cn-border);cursor:pointer;flex-shrink:0;padding:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.cn-color-picker__swatch::-webkit-color-swatch-wrapper{padding:0}.cn-color-picker__swatch::-webkit-color-swatch{border:none;border-radius:4px}.cn-data-table{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;overflow:hidden}.cn-data-table__table{width:100%;border-collapse:collapse}.cn-data-table__header{background:#f0f2f5}.cn-data-table__th{font-size:var(--cn-text-sm);font-weight:700;text-transform:uppercase;letter-spacing:.4px;color:var(--cn-muted);padding:10px 14px;text-align:left;border-bottom:1px solid var(--cn-border)}.cn-data-table__th--sortable{cursor:pointer;-webkit-user-select:none;user-select:none}.cn-data-table__th--sortable:hover{color:var(--cn-heading)}.cn-data-table__sort{margin-left:4px;font-size:var(--cn-text-xs);color:var(--cn-border)}.cn-data-table__sort--active{color:var(--cn-primary)}.cn-data-table__td{font-size:var(--cn-text-base);padding:10px 14px;border-bottom:1px solid var(--cn-border);color:var(--cn-text)}.cn-data-table__row--expandable{cursor:pointer}.cn-data-table__row--expandable:hover,.cn-data-table__row--expanded{background:#f9fafb}.cn-data-table__expanded{padding:12px 14px;background:#f0f2f5;font-size:var(--cn-text-sm)}.cn-data-table__empty{text-align:center;color:var(--cn-muted);font-style:italic;padding:32px 14px}.cn-data-table__pagination{display:flex;align-items:center;justify-content:center;gap:12px;padding:12px;border-top:1px solid var(--cn-border)}.cn-data-table__page-btn{width:28px;height:28px;border-radius:6px;border:1px solid var(--cn-border);background:var(--cn-surface);cursor:pointer;font-size:var(--cn-text-sm);color:var(--cn-heading);display:flex;align-items:center;justify-content:center}.cn-data-table__page-btn:hover:not(:disabled){border-color:var(--cn-primary);color:var(--cn-primary)}.cn-data-table__page-btn:disabled{opacity:.4;cursor:not-allowed}.cn-data-table__page-info{font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-date-range{display:flex;align-items:center;gap:12px}.cn-date-range__input{width:auto}.cn-date-range__separator{font-size:var(--cn-text-base);color:var(--cn-muted)}.cn-date-range__limit{font-size:var(--cn-text-sm);color:var(--cn-text);font-weight:600;background:#eef2ff;border:1px solid #c7d2fe;border-radius:999px;padding:3px 8px;line-height:1}.cn-progress-bar-wrap{margin-bottom:8px}.cn-progress-bar{height:8px;background:#f0f2f5;border-radius:4px;overflow:hidden}.cn-progress-bar__fill{height:100%;border-radius:4px;transition:width .3s}.cn-progress-bar__fill--primary{background:var(--cn-primary)}.cn-progress-bar__fill--warning{background:linear-gradient(90deg,var(--cn-primary),var(--cn-orange))}.cn-progress-bar__fill--danger{background:var(--cn-red)}.cn-progress-bar__label{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-top:4px}.cn-step-indicator{display:flex;align-items:center;margin-bottom:28px}.cn-step-indicator__item{display:flex;align-items:center;flex:1}.cn-step-indicator__circle{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:var(--cn-text-base);font-weight:700;flex-shrink:0;border:2px solid var(--cn-border);background:var(--cn-surface);color:var(--cn-muted);position:relative;z-index:1;transition:all .2s}.cn-step-indicator__circle--active{background:var(--cn-primary);border-color:var(--cn-primary);color:#fff;box-shadow:0 0 0 4px #20c19e26}.cn-step-indicator__circle--done{background:var(--cn-primary);border-color:var(--cn-primary);color:#fff}.cn-step-indicator__label{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);white-space:nowrap;margin-left:8px;text-transform:uppercase;letter-spacing:.4px}.cn-step-indicator__label--active{color:var(--cn-primary)}.cn-step-indicator__label--done{color:var(--cn-heading)}.cn-step-indicator__connector{flex:1;height:2px;background:var(--cn-border);margin:0 8px}.cn-step-indicator__connector--done{background:var(--cn-primary)}.cn-score-hero{display:flex;align-items:center;gap:16px;background:#fef2f2;border:1px solid #fca5a5;border-radius:10px;padding:16px 20px;margin-bottom:20px}.cn-score-hero__icon{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:56px;height:56px;color:#dc2626}.cn-score-hero__icon svg{width:100%;height:100%;display:block}.cn-score-hero__body{flex:1;min-width:0}.cn-score-hero__title{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:4px;white-space:normal;overflow-wrap:anywhere}.cn-score-hero__summary{font-size:var(--cn-text-lg);font-weight:700;color:#991b1b;margin-bottom:4px;white-space:normal;overflow-wrap:anywhere}.cn-score-hero__sub{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-top:6px;white-space:normal;overflow-wrap:anywhere}.cn-score-hero__actions{flex-shrink:0;margin-left:16px;align-self:center}.cn-score-hero__cta{display:inline-block;max-width:100%;font-family:var(--cn-font);font-size:var(--cn-text-md);font-weight:700;padding:9px 24px;border-radius:20px;cursor:pointer;border:none;background:linear-gradient(135deg,#f7b731,#f5a623);color:#1a1a1a;white-space:nowrap;transition:filter .2s}.cn-score-hero__cta:hover{filter:brightness(1.05)}.cn-alert{display:flex;gap:16px;padding:16px 20px;border-radius:10px;border:1px solid var(--cn-border);background:var(--cn-surface);align-items:center}.cn-alert--warning{border-color:#fcd34d;background:#fffbeb}.cn-alert--warning .cn-alert__icon{color:#d97706}.cn-alert--warning .cn-alert__title{color:#92400e}.cn-alert--warning .cn-alert__desc{color:#b45309}.cn-alert--crit{border-color:#fca5a5;background:#fef2f2}.cn-alert--crit .cn-alert__icon{color:#dc2626}.cn-alert--crit .cn-alert__title{color:#991b1b}.cn-alert--crit .cn-alert__desc{color:#b91c1c}.cn-alert--info{border-color:#99f0dd;background:#f0fdf9}.cn-alert--info .cn-alert__icon{color:var(--cn-primary)}.cn-alert--info .cn-alert__title{color:#065f46}.cn-alert--info .cn-alert__desc{color:#047857}.cn-alert__icon{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:28px;height:28px}.cn-alert__icon svg{width:100%;height:100%}.cn-alert__content{flex:1}.cn-alert__title{margin:0 0 4px;font-size:var(--cn-text-base);font-weight:700;line-height:1.3}.cn-alert__desc{margin:0;font-size:var(--cn-text-sm);line-height:1.5}.cn-alert__actions{flex-shrink:0;margin-left:16px;align-self:center}.cn-alert__dismiss{background:none;border:none;cursor:pointer;color:inherit;opacity:.5;padding:4px;flex-shrink:0}.cn-alert__dismiss:hover{opacity:1}.cn-alert__dismiss svg{display:block}.cn-vuln-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:24px}.cn-vuln-card{background:var(--cn-surface);border-radius:10px;padding:16px 18px;border:1px solid var(--cn-border);border-left:4px solid var(--cn-border)}.cn-vuln-card--ok{border-left-color:var(--cn-primary)}.cn-vuln-card--critical{border-left-color:var(--cn-red, #c0392b);background:#fff8f8}.cn-vuln-card--high{border-left-color:var(--cn-orange, #f39c12);background:#fffaf4}.cn-vuln-card--exposed{border-left-color:var(--cn-red, #c0392b);background:#fff8f8}.cn-vuln-card__top{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}.cn-vuln-card__label{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading)}.cn-vuln-card__value{font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.5}.cn-vuln-card__value b{color:var(--cn-heading)}.cn-vuln-card__sub{margin-top:4px;font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-vuln-card__risk{display:inline-flex;align-items:center;gap:4px;font-size:var(--cn-text-xs);font-weight:700;padding:2px 8px;border-radius:10px;margin-top:6px}.cn-vuln-card__risk--critical{color:var(--cn-red, #c0392b);background:var(--cn-red-bg, #fdecea)}.cn-vuln-card__risk--high{color:#9a3412;background:#fff1e6}.cn-vuln-cta{margin-bottom:24px}.cn-vuln-cta__btn{font-size:var(--cn-text-base);font-weight:600}.cn-layer{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:18px 20px;margin-bottom:14px}.cn-layer--locked{opacity:.85}.cn-layer__hdr{display:flex;align-items:center;gap:10px;margin-bottom:14px}.cn-layer__num{width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:var(--cn-text-sm);font-weight:900;color:#fff;flex-shrink:0}.cn-layer__num--green{background:var(--cn-primary)}.cn-layer__num--orange{background:var(--cn-orange, #d35400)}.cn-layer__num--gray{background:#b0b5ba}.cn-layer__title{font-size:var(--cn-text-md);font-weight:700;color:var(--cn-heading);flex:1}.cn-layer__badge{font-size:var(--cn-text-xs);font-weight:700;padding:2px 8px;border-radius:10px;text-transform:uppercase;letter-spacing:.3px;flex-shrink:0}.cn-layer__badge--enforcing{background:var(--cn-green-bg, #e8f5e9);color:var(--cn-green, #2e7d32)}.cn-layer__badge--warn{background:var(--cn-orange-bg, #fff3e0);color:var(--cn-orange, #d35400)}.cn-layer__badge--locked{background:var(--cn-light-bg, #f0f2f5);color:var(--cn-muted)}.cn-layer__badge--platforms{background:#6179e81a;color:var(--cn-info, #6179e8)}.cn-layer__badge--collecting{background:var(--cn-green-bg, #e8f5e9);color:var(--cn-green, #2e7d32)}.cn-layer__metrics{display:flex;gap:24px;margin-bottom:12px}.cn-layer__metric-val{font-size:var(--cn-text-lg);font-weight:700;color:var(--cn-heading);line-height:1.2}.cn-layer__metric-lbl{font-size:var(--cn-text-xs);color:var(--cn-muted);text-transform:uppercase;letter-spacing:.3px}.cn-layer__warn{font-size:var(--cn-text-sm);color:var(--cn-orange, #d35400);font-weight:600;margin-bottom:10px}.cn-layer__warn-muted{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-bottom:10px}.cn-layer__cta{margin-top:8px}.cn-layer__links{display:flex;gap:14px;margin-top:8px}.cn-layer__links a,.cn-layer__links button.cn-layer__links-btn{font-size:var(--cn-text-sm);color:var(--cn-primary);font-weight:600;text-decoration:none}.cn-layer__links a:hover,.cn-layer__links button.cn-layer__links-btn:hover{text-decoration:underline}.cn-layer__link-btn{background:none;border:none;padding:0;cursor:pointer;font-size:var(--cn-text-sm);color:var(--cn-primary);font-weight:600}.cn-layer__link-btn:hover{text-decoration:underline}.cn-blocking-bar-wrap{margin-bottom:10px}.cn-blocking-bar{display:flex;height:8px;border-radius:4px;overflow:hidden;margin-bottom:4px}.cn-blocking-bar__blocked{background:var(--cn-primary)}.cn-blocking-bar__unblocked{background:var(--cn-orange, #d35400)}.cn-blocking-bar__labels{display:flex;justify-content:space-between;font-size:var(--cn-text-xs)}.cn-blocking-bar__lbl-blocked{color:var(--cn-primary);font-weight:700}.cn-blocking-bar__lbl-unblocked{color:var(--cn-orange, #d35400);font-weight:700}.cn-platform-grid{display:flex;flex-direction:column;gap:6px}.cn-platform-item{display:flex;align-items:center;gap:8px;font-size:var(--cn-text-base);color:var(--cn-heading)}.cn-dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px;vertical-align:middle}.cn-dot--green{background:var(--cn-primary)}.cn-dot--gray{background:var(--cn-border)}.cn-dot--yellow{background:var(--cn-secondary, #ffc107)}.cn-lang-bars{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}.cn-lang-row{display:flex;align-items:center;gap:8px}.cn-lang-row__label{font-size:var(--cn-text-sm);color:var(--cn-muted);width:28px;flex-shrink:0;text-align:right}.cn-lang-row__track{flex:1;height:6px;background:var(--cn-light-bg, #f0f2f5);border-radius:3px;overflow:hidden}.cn-lang-row__fill{height:100%;border-radius:3px;background:var(--cn-primary)}.cn-lang-row__pct{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-heading);width:32px}.cn-dom-credentials{margin-top:12px;padding-top:12px;border-top:1px solid var(--cn-border);display:flex;flex-direction:column;gap:8px}.cn-dom-row{display:flex;justify-content:space-between;padding:5px 0;border-bottom:1px solid var(--cn-border);font-size:var(--cn-text-sm);align-items:baseline}.cn-dom-row:last-child{border-bottom:none}.cn-dom-row__k{color:var(--cn-muted)}.cn-dom-row__v{color:var(--cn-heading);font-weight:700;text-align:right}.cn-dom-row__v--mono{font-size:var(--cn-text-sm);font-family:monospace}.cn-pull-config{margin-top:14px;padding-top:14px;border-top:1px solid var(--cn-border)}.cn-pull-config__row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.cn-pull-config__timestamp{font-size:var(--cn-text-xs, .75rem);color:var(--cn-muted);white-space:nowrap}.cn-pull-config__desc{margin:6px 0 0;font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.45}.cn-pull-config__desc--error{color:var(--cn-red, #c0392b)}.cn-conn-hint{display:block;font-size:var(--cn-text-sm);margin:8px 0}.cn-conn-hint.cn-layer__link-btn{margin-bottom:10px;font-weight:600}.cn-conn-hint--returning{color:var(--cn-muted);margin-top:8px;margin-bottom:14px}.cn-conn-hint--returning a{color:var(--cn-primary);text-decoration:none}.cn-conn-hint--returning a:hover{text-decoration:underline}.cn-dom-link{display:block;margin-top:10px;padding-top:8px;border-top:1px solid var(--cn-border);font-size:var(--cn-text-sm);color:var(--cn-primary);font-weight:600;text-decoration:none}.cn-dom-link:hover{text-decoration:underline}.cn-connect-nudge{font-size:var(--cn-text-sm);color:var(--cn-muted);text-align:center;padding:12px 0 4px;line-height:1.5}.cn-connect-nudge strong{color:var(--cn-heading);display:block;margin-bottom:2px}.cn-benefit-list{list-style:none;display:flex;flex-direction:column;gap:8px;padding:0;margin:0}.cn-benefit-item{display:flex;align-items:flex-start;gap:8px;font-size:var(--cn-text-sm);color:var(--cn-text);line-height:1.4}.cn-benefit-icon{width:16px;height:16px;border-radius:50%;background:var(--cn-green-bg, #e8f5e9);color:var(--cn-green, #2e7d32);font-size:var(--cn-text-xs);font-weight:900;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px}.cn-connect-cta{margin-top:16px}.cn-connect-cta__caption{font-size:var(--cn-text-xs);color:var(--cn-muted);text-align:center;margin-top:8px}.cn-usage-bar-wrap{margin-bottom:8px}.cn-usage-bar{height:8px;background:var(--cn-light-bg, #f0f2f5);border-radius:4px;overflow:hidden}.cn-usage-bar__labels{display:flex;justify-content:space-between;font-size:var(--cn-text-sm);margin-bottom:4px}.cn-usage-bar__used{color:var(--cn-heading);font-weight:700}.cn-usage-bar__total{color:var(--cn-muted)}.cn-usage-bar__fill{height:100%;border-radius:4px;background:linear-gradient(90deg,var(--cn-primary),var(--cn-orange, #d35400))}.cn-unlimited-sessions{font-size:var(--cn-text-md);font-weight:700;color:var(--cn-heading);margin-bottom:4px}.cn-unlimited-note{font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-pro-gate-placeholder{min-height:200px}.cn-placeholder-charts{min-height:180px;background:var(--cn-light-bg, #f0f2f5);border-radius:8px}@media(max-width:960px){.cn-page-layout{flex-direction:column}.cn-page-layout .cn-sidebar{width:100%;position:static}.cn-vuln-grid{grid-template-columns:1fr}.cn-score-hero{flex-direction:column;text-align:center}}.cn-dev-switcher{position:fixed;top:40px;right:16px;z-index:99999;background:#1a1a2e;color:#fff;border-radius:8px;padding:10px 12px;min-width:148px;box-shadow:0 4px 16px #0006;font-family:Lato,sans-serif;font-size:var(--cn-text-sm)}.cn-dev-switcher__header{display:flex;align-items:center;gap:5px;margin-bottom:8px}.cn-dev-switcher__icon{font-size:var(--cn-text-sm)}.cn-dev-switcher__title{font-size:var(--cn-text-xs);font-weight:700;letter-spacing:.08em;color:#20c19e;text-transform:uppercase}.cn-dev-switcher__label{font-size:var(--cn-text-xs);color:#8a9199;text-transform:uppercase;letter-spacing:.06em;margin-bottom:5px}.cn-dev-switcher__buttons{display:flex;gap:4px;margin-bottom:2px}.cn-dev-switcher__btn{flex:1;padding:4px 0;border:1px solid #3a3a5c;border-radius:4px;background:#2a2a48;color:#c0c0d0;font-size:var(--cn-text-sm);font-weight:600;cursor:pointer;transition:background .15s,border-color .15s,color .15s}.cn-dev-switcher__btn:hover{background:#3a3a5c;color:#fff}.cn-dev-switcher__btn--active{background:#20c19e;border-color:#20c19e;color:#fff}.cn-dev-switcher__usage{margin-top:8px;border-top:1px solid #2a2a48;padding-top:7px}.cn-dev-switcher__usage-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}.cn-dev-switcher__usage-label{font-size:var(--cn-text-xs);color:#8a9199;text-transform:uppercase;letter-spacing:.06em}.cn-dev-switcher__usage-val{font-size:var(--cn-text-sm);font-weight:700;color:#20c19e}.cn-dev-switcher__slider{width:100%;accent-color:#20c19e;cursor:pointer}.cn-banner-design__footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:16px;padding-top:12px;border-top:1px solid var(--cn-border, #e2e5ea)}.cn-banner-design__status{font-size:var(--cn-text-base)}.cn-banner-design__status--saved{color:var(--cn-green)}.cn-banner-design__status--error{color:var(--cn-red)}.cn-auth-form__error{margin-bottom:12px;padding:10px 14px;background:var(--cn-red-bg, #fdecea);color:var(--cn-red, #e74c3c);border-radius:6px;font-size:var(--cn-text-base)}.cn-consent-log-table__controls{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:12px}.cn-consent-log-table__count{font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-card-grid{display:grid;gap:14px;margin-top:24px}.cn-card-grid--3{grid-template-columns:repeat(3,1fr)}.cn-card-grid--auto{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}@media(max-width:960px){.cn-card-grid--3{grid-template-columns:1fr}}.cn-card{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:16px 18px;display:flex;flex-direction:column}.cn-card--crit{background:var(--cn-crit-card-bg);border-color:var(--cn-crit-border)}.cn-card--warn{background:var(--cn-warn-card-bg);border-color:var(--cn-warn-border)}.cn-card__top{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:8px}.cn-card__icon svg{display:block}.cn-card__dot{width:9px;height:9px;border-radius:50%;margin-top:2px;flex-shrink:0}.cn-card__dot--ok{background:var(--cn-ok-dot)}.cn-card__dot--warn{background:var(--cn-warn-dot)}.cn-card__dot--crit{background:var(--cn-crit-dot)}.cn-card__dot--off{background:var(--cn-off-dot)}.cn-card__main{font-size:var(--cn-text-xl);font-weight:800;line-height:1.15;margin-bottom:2px}.cn-card__main--ok{color:var(--cn-ok-val)}.cn-card__main--warn{color:var(--cn-warn-val)}.cn-card__main--crit{color:var(--cn-crit-val)}.cn-card__main--off{color:var(--cn-off-val);font-weight:500;font-size:var(--cn-text-lg)}.cn-card__sub{font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.4;margin-bottom:10px}.cn-card__sub--warn{color:var(--cn-warn-val)}.cn-card__pills{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:10px}.cn-card__pill{font-size:var(--cn-text-sm);font-weight:600;padding:2px 8px;border-radius:10px}.cn-card__pill--ok{background:var(--cn-ok-pill-bg);color:var(--cn-ok-pill-txt)}.cn-card__pill--warn{background:var(--cn-warn-pill-bg);color:var(--cn-warn-pill-txt)}.cn-card__pill--crit{background:var(--cn-crit-pill-bg);color:var(--cn-crit-pill-txt)}.cn-card__pill--off{background:var(--cn-off-pill-bg);color:var(--cn-off-pill-txt)}.cn-card__foot{margin-top:auto;padding-top:10px;border-top:1px solid var(--cn-border);min-height:30px;display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center}.cn-card__foot-btn{background:none;border:none;font-size:var(--cn-text-sm);font-weight:600;color:var(--cn-primary);cursor:pointer;padding:0}.cn-card__foot-btn:hover{text-decoration:underline}.cn-card__foot a,.cn-card__foot button{font-size:var(--cn-text-sm);font-weight:600;color:var(--cn-link-neutral);text-decoration:underline;text-decoration-color:var(--cn-border);text-underline-offset:2px;background:none;border:none;padding:0;cursor:pointer;font-family:var(--cn-font);display:inline-block}.cn-card__foot a:hover,.cn-card__foot button:hover{color:var(--cn-heading);text-decoration-color:var(--cn-muted)}.cn-card__help{flex-basis:100%;font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-card__help summary{cursor:pointer;font-weight:600;color:var(--cn-link-neutral)}.cn-card__help p{margin:6px 0 0;line-height:1.4}.cn-card__bar-wrap{height:4px;background:var(--cn-light-bg);border-radius:2px;margin:8px 0 6px}.cn-card__bar-fill{height:4px;border-radius:2px}.cn-card__bar-fill--ok{background:var(--cn-ok-dot)}.cn-card__bar-fill--warn{background:var(--cn-warn-dot)}.cn-card__bar-fill--crit{background:var(--cn-crit-dot)}.cn-card__bar-fill--off{background:var(--cn-off-icon)}.cn-card__row{display:flex;justify-content:space-between;padding:4px 0;border-bottom:1px solid var(--cn-border);font-size:var(--cn-text-sm);align-items:baseline}.cn-card__row--last{border-bottom:none}.cn-card__row-k{color:var(--cn-muted);flex-shrink:0}.cn-card__row-v{color:var(--cn-heading);font-weight:700;text-align:right}.cn-card__row-v--muted{color:var(--cn-muted);font-weight:400}.cn-portal-bridge-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:100000;padding:20px}.cn-portal-bridge{background:var(--cn-surface);border-radius:14px;width:100%;max-width:440px;box-shadow:0 20px 60px #0000002e;overflow:hidden;font-family:var(--cn-font)}.cn-portal-bridge__header{background:var(--cn-ok-icon);padding:18px 22px;display:flex;align-items:flex-start;gap:12px}.cn-portal-bridge__header-title{color:#fff;font-size:var(--cn-text-md);font-weight:700;line-height:1.3}.cn-portal-bridge__header-sub{color:#ffffffb3;font-size:var(--cn-text-sm);margin-top:2px}.cn-portal-bridge__body{padding:20px 22px}.cn-portal-bridge__summary{font-size:var(--cn-text-base);color:var(--cn-text);line-height:1.5;margin-bottom:14px}.cn-portal-bridge__context{background:var(--cn-light-bg);border-radius:8px;padding:10px 12px;display:flex;align-items:flex-start;gap:10px;margin-bottom:16px}.cn-portal-bridge__context-dot{width:8px;height:8px;border-radius:50%;background:var(--cn-ok-dot);margin-top:3px;flex-shrink:0}.cn-portal-bridge__context-text{font-size:var(--cn-text-sm);color:var(--cn-heading);line-height:1.5}.cn-portal-bridge__steps{display:flex;flex-direction:column;gap:12px;margin-bottom:18px}.cn-portal-bridge__step{display:flex;gap:12px;align-items:flex-start}.cn-portal-bridge__step-num{width:22px;height:22px;border-radius:50%;background:var(--cn-ok-pill-bg);border:1.5px solid var(--cn-ok-icon);color:var(--cn-ok-icon);font-size:var(--cn-text-sm);font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px}.cn-portal-bridge__step-title{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading);margin-bottom:2px}.cn-portal-bridge__step-desc{font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.4}.cn-portal-bridge__error{background:var(--cn-red-bg);color:var(--cn-red);border-radius:6px;padding:8px 12px;font-size:var(--cn-text-sm);margin-bottom:12px}.cn-portal-bridge__actions{display:flex;flex-direction:column;gap:8px}.cn-portal-bridge__btn{display:block;width:100%;padding:11px 16px;border-radius:8px;font-size:var(--cn-text-base);font-weight:600;cursor:pointer;text-align:center;text-decoration:none;font-family:var(--cn-font);border:none;line-height:1}.cn-portal-bridge__btn--primary{background:var(--cn-ok-icon);color:#fff}.cn-portal-bridge__btn--primary:hover{background:#15803d}.cn-portal-bridge__btn--secondary{background:none;border:1px solid var(--cn-border);color:var(--cn-heading)}.cn-portal-bridge__btn--secondary:hover{background:var(--cn-light-bg)}.cn-portal-bridge__btn--secondary:disabled{opacity:.6;cursor:default}.cn-portal-bridge__dismiss{text-align:center;padding:12px 22px;border-top:1px solid var(--cn-light-bg)}.cn-portal-bridge__dismiss-btn{background:none;border:none;font-size:var(--cn-text-sm);color:var(--cn-muted);cursor:pointer;font-family:var(--cn-font)}.cn-portal-bridge__dismiss-btn:hover{color:var(--cn-heading)}.cn-error-boundary{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:64px 24px;text-align:center}.cn-error-boundary__message{font-size:15px;color:var(--cn-muted, #6c7781);margin-bottom:16px}1 @charset "UTF-8";._container_nva6m_2{display:flex;gap:16px;align-items:flex-start}._grid_nva6m_8{display:grid;grid-template-columns:1fr 1fr;gap:10px;flex:0 0 auto;width:280px}._card_nva6m_16{border:2px solid var(--cn-border, #e2e8f0);border-radius:10px;padding:12px 10px 10px;cursor:pointer;transition:border-color .15s,box-shadow .15s,background .15s;text-align:center;position:relative;background:#fff;-webkit-user-select:none;user-select:none}._card_nva6m_16:hover{border-color:#a0c4c0;box-shadow:0 2px 8px #20c19e1a}._cardSelected_nva6m_32{border-color:var(--cn-primary, #20c19e);background:#20c19e0a;box-shadow:0 0 0 3px #20c19e1f}._geoArt_nva6m_38{width:80px;height:52px;margin:0 auto 8px;display:flex;align-items:center;justify-content:center}._lawName_nva6m_47{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading, #1a1a2e);line-height:1.2}._jurisdiction_nva6m_54{font-size:var(--cn-text-sm);color:var(--cn-muted, #718096);margin-top:2px}._hiddenCheckbox_nva6m_60{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}._checkmark_nva6m_72{position:absolute;top:6px;right:6px;width:16px;height:16px;border-radius:50%;background:var(--cn-primary, #20c19e);display:flex;align-items:center;justify-content:center;font-size:var(--cn-text-xs);color:#fff;font-weight:700}._autoBadge_nva6m_88{position:absolute;top:-8px;left:50%;transform:translate(-50%);background:var(--cn-primary, #20c19e);color:#fff;font-size:var(--cn-text-xs);font-weight:600;padding:2px 6px;border-radius:10px;white-space:nowrap}._detail_nva6m_102{flex:1;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:18px 20px;animation:_slideIn_nva6m_1 .2s ease;min-height:240px}._detailHeader_nva6m_112{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:14px}._detailTitle_nva6m_119{font-size:var(--cn-text-lg);font-weight:700;color:var(--cn-heading, #1a1a2e)}._detailJurisdiction_nva6m_125{font-size:var(--cn-text-sm);color:var(--cn-muted, #718096);margin-top:2px}._detailClose_nva6m_131{background:none;border:none;cursor:pointer;font-size:var(--cn-text-lg);color:#718096;line-height:1;padding:0}._detailClose_nva6m_131:hover{color:#1a1a2e}._detailSection_nva6m_144{margin-bottom:14px}._detailSectionLabel_nva6m_148{font-size:var(--cn-text-sm);font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--cn-primary, #20c19e);margin-bottom:6px}._detailOverview_nva6m_157{font-size:var(--cn-text-sm);color:#4a5568;line-height:1.6}._detailList_nva6m_163{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:4px}._detailListItem_nva6m_172{font-size:var(--cn-text-sm);color:#4a5568;display:flex;gap:6px;align-items:flex-start;line-height:1.4}._detailListItem_nva6m_172:before{content:"✓";color:var(--cn-primary, #20c19e);font-weight:700;flex-shrink:0;margin-top:1px}._detailEnforcement_nva6m_188{font-size:var(--cn-text-sm);color:#a0aec0;border-top:1px solid #e2e8f0;padding-top:10px;margin-top:4px;line-height:1.5}._detailEmpty_nva6m_197{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;min-height:200px;text-align:center;padding:32px}._detailEmptyArrow_nva6m_208{font-size:var(--cn-text-xl);color:#20c19e;opacity:.4;margin-bottom:12px}._detailEmptyText_nva6m_215{font-size:var(--cn-text-md);color:#9ca3af;line-height:1.6;max-width:240px}._detailDnsHelp_nva6m_222{font-size:var(--cn-text-base);color:#6b7280;margin-bottom:8px}._dnsCallout_nva6m_228{display:flex;gap:10px;background:#fffbeb;border:1px solid #f59e0b;border-radius:8px;padding:12px;margin-top:10px}._dnsCalloutIcon_nva6m_238{flex:0 0 auto;font-size:var(--cn-text-lg);line-height:1}._dnsCalloutBody_nva6m_244{flex:1 1 auto;min-width:0}._dnsCalloutTitle_nva6m_249{font-size:var(--cn-text-base);font-weight:700;color:#92400e;margin-bottom:4px}._dnsCalloutHelp_nva6m_256{font-size:var(--cn-text-sm);color:#92400e;margin:0 0 8px;line-height:1.4}._dnsInput_nva6m_263{width:100%;padding:8px 10px;border:1px solid #e0e4e8;border-radius:6px;font-size:var(--cn-text-base);box-sizing:border-box}._dnsInput_nva6m_263:focus{outline:none;border-color:var(--cn-primary, #20c19e);box-shadow:0 0 0 2px #20c19e26}@keyframes _slideIn_nva6m_1{0%{opacity:0;transform:translate(8px)}to{opacity:1;transform:translate(0)}}._panel_t4wb2_1{background:#fff;border:1px solid #dcdcde;border-radius:8px;margin-bottom:20px;overflow:hidden}._panelHeader_t4wb2_9{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #dcdcde;background:#f6f7f7}._panelTitle_t4wb2_18{font-size:var(--cn-text-md);font-weight:600;color:#1d2327;margin:0}._closeBtn_t4wb2_25{background:none;border:none;cursor:pointer;font-size:var(--cn-text-xl);color:#787c82;padding:0 4px;line-height:1}._closeBtn_t4wb2_25:hover{color:#1d2327}._footer_t4wb2_38{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:16px 20px;border-top:1px solid #dcdcde;background:#f6f7f7}._layout_t4wb2_48{display:flex;gap:16px;align-items:flex-start;min-height:380px}._remoteChangedNotice_t4wb2_55{margin-bottom:16px;padding:10px 14px;border:1px solid #f0c33c;border-left-width:4px;border-radius:4px;background:#fcf9e8;color:#1d2327;font-size:var(--cn-text-sm);line-height:1.5}._modeList_t4wb2_67{flex:0 0 220px;width:220px;display:flex;flex-direction:column;gap:12px}._modeSection_t4wb2_75{display:flex;flex-direction:column;gap:6px}._modeSectionLabel_t4wb2_81{font-size:var(--cn-text-sm);font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#787c82;padding:0 2px;margin-bottom:2px}._modeCard_t4wb2_91{width:100%;text-align:left;background:#fff;border:2px solid #e2e8f0;border-radius:10px;padding:12px 14px;cursor:pointer;transition:border-color .15s,box-shadow .15s,background .15s}._modeCard_t4wb2_91:hover{border-color:#a0c4c0;box-shadow:0 2px 8px #20c19e1a}._modeCardActive_t4wb2_106{border-color:#20c19e;background:#20c19e0a;box-shadow:0 0 0 3px #20c19e1f}._modeCardLocked_t4wb2_112{opacity:.7;border-style:dashed;position:relative}._modeCardProOverlay_t4wb2_118{display:flex;align-items:center;gap:4px;margin-top:6px;padding:4px 8px;background:#f59e0b14;border-radius:4px;cursor:pointer;transition:background .15s ease}._modeCardProOverlay_t4wb2_118:hover{background:#f59e0b2e}._lockIconLarge_t4wb2_133{font-size:var(--cn-text-base)}._modeCardProLabel_t4wb2_137{font-size:var(--cn-text-sm);font-weight:600;color:#92400e}._modeCardTop_t4wb2_143{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}._modeCardName_t4wb2_150{font-size:var(--cn-text-base);font-weight:600;color:#1d2327}._modeCardDesc_t4wb2_156{font-size:var(--cn-text-sm);color:#787c82;line-height:1.4}._statusDot_t4wb2_162{display:inline-block;width:8px;height:8px;border-radius:50%;flex-shrink:0}._statusDotOn_t4wb2_170{background:#20c19e}._statusDotOff_t4wb2_174{background:#c3c4c7}._detailCol_t4wb2_178{flex:1;min-width:0}._detail_t4wb2_178{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:18px 20px;animation:_slideIn_t4wb2_1 .18s ease}._detailHeader_t4wb2_191{display:flex;align-items:center;gap:8px;margin-bottom:10px}._detailTitle_t4wb2_198{font-size:var(--cn-text-md);font-weight:700;color:#1d2327}._detailDesc_t4wb2_204{font-size:var(--cn-text-base);color:#4a5568;line-height:1.6;margin:0 0 14px}._detailFooter_t4wb2_211{display:flex;justify-content:flex-end;padding-top:14px;margin-top:14px;border-top:1px solid #e2e8f0}._enableToggle_t4wb2_219{display:inline-flex;align-items:center;gap:10px;cursor:pointer;margin-bottom:16px}._enableToggleInput_t4wb2_227{position:absolute;opacity:0;width:0;height:0}._enableToggleTrack_t4wb2_234{position:relative;display:inline-block;width:36px;height:20px;border-radius:10px;background:#c3c4c7;transition:background .2s;flex-shrink:0}._enableToggleInput_t4wb2_227:checked+._enableToggleTrack_t4wb2_234{background:#20c19e}._enableToggleThumb_t4wb2_248{position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #0003;transition:transform .2s}._enableToggleInput_t4wb2_227:checked~._enableToggleTrack_t4wb2_234 ._enableToggleThumb_t4wb2_248{transform:translate(16px)}._enableToggleLabel_t4wb2_263{font-size:var(--cn-text-base);font-weight:600;color:#1d2327}._signalConfig_t4wb2_269{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:14px 16px;margin-bottom:8px}._signalConfigTitle_t4wb2_277{font-size:var(--cn-text-sm);font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#20c19e;margin-bottom:10px}._groupRow_t4wb2_286{display:flex;align-items:center;justify-content:space-between;padding:6px 0}._groupLabel_t4wb2_293{font-size:var(--cn-text-base);font-weight:500;color:#1d2327}._groupSelect_t4wb2_299{font-size:var(--cn-text-sm);padding:5px 8px;border:1px solid #8c8f94;border-radius:4px;background:#fff;min-width:170px}._groupSelect_t4wb2_299:disabled{opacity:.5;cursor:not-allowed}._groupSelect_t4wb2_299:focus{outline:none;border-color:#20c19e;box-shadow:0 0 0 2px #20c19e26}._groupHint_t4wb2_317{font-size:var(--cn-text-sm);color:#787c82;margin:2px 0 10px;line-height:1.4}._familyTitle_t4wb2_324{font-size:var(--cn-text-sm);font-weight:600;color:#1d2327;margin-top:14px}._familyTitle_t4wb2_324:first-of-type{margin-top:0}._advancedGrid_t4wb2_334{display:flex;flex-direction:column;gap:6px;margin-top:6px;padding-top:8px;border-top:1px solid #f0f0f1}._advancedRow_t4wb2_343{display:flex;align-items:center;justify-content:space-between;padding:4px 0}._advancedLabel_t4wb2_350{font-size:var(--cn-text-sm);color:#4a5568}._subToggles_t4wb2_355{margin-top:10px;padding-top:10px;border-top:1px solid #f0f0f1}._subToggleTitle_t4wb2_361{font-size:var(--cn-text-sm);font-weight:600;color:#787c82;text-transform:uppercase;letter-spacing:.04em;margin-bottom:6px}._subToggleRow_t4wb2_370{display:flex;align-items:center;gap:8px;font-size:var(--cn-text-base);color:#1d2327;cursor:pointer;padding:4px 0}._proGate_t4wb2_380{display:flex;align-items:center;justify-content:space-between;background:#f0faf8;border:1px solid #c3e8e0;border-radius:8px;padding:12px 14px;font-size:var(--cn-text-base);color:#1d2327;gap:12px;margin:8px 0}._proGateLink_t4wb2_394{white-space:nowrap;font-weight:600;color:#20c19e;text-decoration:none}._proGateLink_t4wb2_394:hover{text-decoration:underline}@keyframes _slideIn_t4wb2_1{0%{opacity:0;transform:translate(8px)}to{opacity:1;transform:translate(0)}}._legacyNotice_t4wb2_414{display:flex;flex-direction:column;gap:4px;background:#fdf6e7;border:1px solid #f0d9a0;border-left:3px solid #eab308;border-radius:8px;padding:12px 14px;font-size:var(--cn-text-base);color:#1d2327;margin:8px 0}._legacyNotice_t4wb2_414 strong{font-weight:600}._legacyNotice_t4wb2_414 em{font-style:normal;font-weight:600}._thumb_1g9ys_1{width:160px;height:90px;border-radius:4px;overflow:hidden;border:1px solid var(--cn-color-border);background:#f8f9fa;position:relative;flex-shrink:0}._chrome_1g9ys_12{height:10px;background:#e5e7eb;border-bottom:1px solid #d1d5db;display:flex;align-items:center;padding:0 4px;gap:2px;flex-shrink:0}._dot_1g9ys_23{width:4px;height:4px;border-radius:50%;background:#9ca3af;flex-shrink:0}._urlBar_1g9ys_31{flex:1;height:4px;border-radius:2px;background:#d1d5db;margin-left:3px}._page_1g9ys_39{height:80px;position:relative;overflow:hidden}._lines_1g9ys_45{padding:6px 8px;display:flex;flex-direction:column;gap:3px}._lines_1g9ys_45>div{height:3px;border-radius:2px;background:#d1d5db}._banner_1g9ys_57{position:absolute;display:flex;flex-direction:column;gap:2px;padding:4px 5px 3px;box-shadow:0 -1px 4px #0000001f;animation-fill-mode:both;animation-duration:.45s;animation-timing-function:ease}._bar-bottom_1g9ys_69{bottom:0;left:0;right:0}._bar-top_1g9ys_75{top:0;left:0;right:0}._floating_1g9ys_81{left:8px;right:8px;border-radius:4px}._fixed_1g9ys_87{left:0;right:0}._panel-left_1g9ys_92{left:2px;bottom:2px;width:38%;box-shadow:2px 0 6px #00000026}._panel-right_1g9ys_99{right:2px;bottom:2px;width:38%;box-shadow:-2px 0 6px #00000026}._panelFloating_1g9ys_106{border-radius:4px}._panelFixed_1g9ys_110{top:10px;border-radius:0}._popup_1g9ys_115{top:50%;left:50%;transform:translate(-50%) translateY(-50%);width:68%;border-radius:4px;box-shadow:0 4px 16px #0003}._bannerHeader_1g9ys_124{display:flex;align-items:center;justify-content:space-between;margin-bottom:1px}._toolbarDots_1g9ys_131{display:flex;gap:2px}._toolbarDots_1g9ys_131 span{display:block;width:3px;height:3px;border-radius:50%;background:var(--dot-color, rgba(255, 255, 255, .4))}._pills_1g9ys_143{display:flex;gap:2px;align-items:center;justify-content:center}._pill_1g9ys_143{display:flex;align-items:center;gap:1px;padding:1px 3px;border-radius:20px;border:1px solid currentColor;opacity:.85}._pillDot_1g9ys_160{width:4px;height:4px;border-radius:50%;flex-shrink:0}._saveBtn_1g9ys_167{height:6px;width:38%;margin:1px auto 0;opacity:.9}._footerLinks_1g9ys_174{display:flex;justify-content:space-between;gap:4px;margin-top:1px}._link_1g9ys_181{height:2px;width:35%;border-radius:1px;background:#ffffff59}._anim-slide-bottom_1g9ys_188{animation-name:_huPreviewSlideUp_1g9ys_1}._anim-slide-top_1g9ys_192{animation-name:_huPreviewSlideDown_1g9ys_1}._anim-slide-left_1g9ys_196{animation-name:_huPreviewSlideLeft_1g9ys_1}._anim-slide-right_1g9ys_200{animation-name:_huPreviewSlideRight_1g9ys_1}._anim-slide-center_1g9ys_204{animation-name:_huPreviewScaleIn_1g9ys_1}._anim-fade_1g9ys_208{animation-name:_huPreviewFade_1g9ys_1}@keyframes _huPreviewSlideUp_1g9ys_1{0%{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _huPreviewSlideDown_1g9ys_1{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _huPreviewSlideLeft_1g9ys_1{0%{transform:translate(-100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes _huPreviewSlideRight_1g9ys_1{0%{transform:translate(100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes _huPreviewScaleIn_1g9ys_1{0%{transform:translate(-50%) translateY(-50%) scale(.85);opacity:0}to{transform:translate(-50%) translateY(-50%) scale(1);opacity:1}}@keyframes _huPreviewFade_1g9ys_1{0%{opacity:0}to{opacity:1}}._root_o4a2z_1{position:relative;flex-shrink:0}._scaler_o4a2z_6{width:160px;height:90px;transform-origin:left top}._overlay_o4a2z_12{position:absolute;top:0;right:0;bottom:0;left:0;background:#11182747}._banner_o4a2z_18{position:absolute;display:flex;flex-direction:column;gap:3px;padding:5px 6px;background-color:var(--thumb-bg);box-shadow:0 1px 6px #0000002e}._card_o4a2z_28{left:8px;right:8px;border-radius:6px}._card_o4a2z_28._bottom_o4a2z_33{bottom:4px}._card_o4a2z_28._top_o4a2z_36{top:4px}._edge_o4a2z_40{left:0;right:0;border-radius:0}._edge_o4a2z_40._bottom_o4a2z_33{bottom:0}._edge_o4a2z_40._top_o4a2z_36{top:0}._bar_o4a2z_52{left:0;right:0;flex-direction:row;align-items:center;gap:4px;padding:4px 6px}._bar_o4a2z_52._bottom_o4a2z_33{bottom:0}._bar_o4a2z_52._top_o4a2z_36{top:0}._bar_o4a2z_52 ._heading_o4a2z_66{flex:1;width:auto}._narrow_o4a2z_71{bottom:4px;width:46%;border-radius:6px}._left_o4a2z_77{left:4px}._right_o4a2z_81{right:4px}._modal_o4a2z_85{top:50%;left:50%;width:64%;transform:translate(-50%,-50%);border-radius:6px}._heading_o4a2z_66{display:block;height:4px;width:46%;border-radius:2px;background-color:var(--thumb-ink)}._desc_o4a2z_101{display:block;height:3px;width:92%;border-radius:2px;background-color:var(--thumb-faint)}._descShort_o4a2z_109{width:64%}._row_o4a2z_113{display:flex;flex-wrap:wrap;align-items:center;gap:3px;margin-top:1px}._pill_o4a2z_121{display:block;flex-shrink:0;width:15px;height:7px;border-radius:4px;border:1px solid transparent;border-color:var(--thumb-accent)}._link_o4a2z_131{display:block;flex-shrink:0;width:14px;height:2px;border-radius:1px;background-color:var(--thumb-ink)}.cn-section-label{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.6px}.cn-banner-selector{margin-bottom:28px}.cn-banner-selector__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.cn-banner-selector__portal-link{font-size:var(--cn-text-sm);color:var(--cn-primary);font-weight:600;text-decoration:none}.cn-banner-selector__portal-link:hover{text-decoration:underline}.cn-banner-selector__grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.cn-banner-selector__card{background:var(--cn-surface);border:2px solid var(--cn-border);border-radius:10px;padding:16px 12px 12px;min-height:200px;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.cn-banner-selector__card:hover{transform:translateY(-3px);box-shadow:0 6px 20px #00000017;border-color:#c5ccd4}.cn-banner-selector__card--active{border-color:var(--cn-primary);box-shadow:0 0 0 3px #20c19e26}.cn-banner-selector__card--active:hover{transform:translateY(-3px);box-shadow:0 0 0 3px #20c19e26,0 6px 20px #20c19e1f}.cn-banner-selector__thumb{width:100%;height:90px;background:#e8eaed;border-radius:6px;margin-bottom:10px;position:relative;overflow:hidden}.cn-banner-selector__thumb:before{content:"";position:absolute;top:0;left:0;right:0;height:12px;background:#d0d3d8;border-radius:6px 6px 0 0}.cn-banner-selector__thumb:after{content:"";position:absolute;top:3px;left:8px;width:6px;height:6px;background:#b8bcc4;border-radius:50%}.cn-banner-selector__pos{position:absolute;background:#2c2f35;transition:all .25s ease}.cn-banner-selector__pos.pos-top{top:12px;left:0;right:0;height:16px;width:auto;border-radius:0}.cn-banner-selector__pos.pos-bottom{bottom:0;left:0;right:0;height:18px;width:auto;border-radius:0}.cn-banner-selector__pos.pos-left{top:12px;left:0;bottom:0;width:26%;height:auto;border-radius:0;right:auto}.cn-banner-selector__pos.pos-right{top:12px;right:0;bottom:0;width:26%;height:auto;border-radius:0;left:auto}.cn-banner-selector__pos.pos-popup{top:50%;left:50%;transform:translate(-50%,-40%);width:46%;height:36px;border-radius:4px;bottom:auto;right:auto}.cn-banner-selector__grid--floating .cn-banner-selector__pos.pos-top{top:16px;left:50%;right:auto;transform:translate(-50%);width:56%;height:22px;border-radius:3px}.cn-banner-selector__grid--floating .cn-banner-selector__pos.pos-bottom{bottom:8px;left:50%;right:auto;transform:translate(-50%);width:56%;height:26px;border-radius:3px}.cn-banner-selector__grid--floating .cn-banner-selector__pos.pos-left{top:auto;bottom:6px;left:4px;width:32%;height:44px;border-radius:3px;right:auto}.cn-banner-selector__grid--floating .cn-banner-selector__pos.pos-right{top:auto;bottom:6px;right:4px;width:32%;height:44px;border-radius:3px;left:auto}.cn-banner-selector__grid--floating .cn-banner-selector__pos.pos-popup{top:50%;left:50%;transform:translate(-50%,-40%);width:46%;height:36px;border-radius:4px}.cn-banner-selector__meta{display:flex;align-items:center;justify-content:space-between;margin-bottom:3px}.cn-banner-selector__name{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading)}.cn-banner-selector__active-pill{font-size:var(--cn-text-xs);font-weight:700;padding:2px 7px;border-radius:10px;background:#e8f5e9;color:#2e7d32;text-transform:uppercase;letter-spacing:.3px}.cn-banner-selector__toggle-row{display:flex;align-items:center;gap:14px;margin-top:14px;margin-bottom:6px}.cn-banner-selector__size-label{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading)}.cn-banner-selector__size-opts{display:flex}.cn-banner-selector__size-opt{font-size:var(--cn-text-sm);font-weight:600;padding:5px 16px;cursor:pointer;border:1.5px solid var(--cn-border);background:#fff;color:var(--cn-muted);transition:all .15s;font-family:inherit}.cn-banner-selector__size-opt:first-child{border-radius:16px 0 0 16px}.cn-banner-selector__size-opt:last-child{border-radius:0 16px 16px 0;border-left:none}.cn-banner-selector__size-opt--on{background:var(--cn-primary);color:#fff;border-color:var(--cn-primary)}.cn-banner-selector__size-opt--on+.cn-banner-selector__size-opt{border-left-color:var(--cn-primary)}.cn-banner-selector__size-desc{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-top:4px;line-height:1.4}.cn-banner-design__grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.cn-banner-design__col{display:flex;flex-direction:column;gap:0}.cn-advanced-settings__grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.cn-consent-modes__title{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:10px}.cn-consent-modes__row{display:flex;align-items:center;justify-content:space-between;padding:5px 0;border-bottom:1px solid var(--cn-border);font-size:var(--cn-text-sm)}.cn-consent-modes__row:last-of-type{border-bottom:none}.cn-consent-modes__label{color:var(--cn-muted);display:flex;align-items:center;gap:5px}.cn-consent-modes__value{font-weight:700;color:var(--cn-heading)}.cn-consent-modes__value--off{color:var(--cn-muted);font-weight:400}.cn-consent-modes__note{margin-top:10px;padding-top:8px;border-top:1px solid var(--cn-border);font-size:var(--cn-text-sm)}.cn-consent-modes__note a{color:var(--cn-primary);text-decoration:none}.cn-consent-modes__note a:hover{text-decoration:underline}.cn-banner-summary{margin-bottom:12px}.cn-banner-summary__rows{display:flex;flex-direction:column;gap:4px;margin-top:6px}.cn-banner-summary__row{display:flex;gap:8px;font-size:var(--cn-text-base)}.cn-banner-summary__key{color:var(--cn-muted);font-weight:600;min-width:70px}.cn-banner-summary__key:after{content:":"}.cn-banner-summary__val{color:var(--cn-text)}.cn-banner-summary__note{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-top:8px}.cn-upsell-card{padding:2px 0 4px}.cn-upsell-card__headline{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading);margin:0 0 10px}.cn-upsell-card__features{list-style:none;margin:0 0 14px;padding:0}.cn-upsell-card__features li{font-size:var(--cn-text-sm);color:var(--cn-body);padding:4px 0 4px 18px;position:relative}.cn-upsell-card__features li:before{content:"✓";position:absolute;left:0;color:var(--cn-green, #20c19e);font-weight:700}.cn-upsell-card__cta{display:block;text-align:center;text-decoration:none}.cn-change-badge{display:inline-block;font-size:var(--cn-text-xs);font-weight:700;padding:1px 5px;border-radius:4px;text-transform:uppercase;letter-spacing:.2px;margin-right:4px}.cn-change-badge--banner{background:#20c19e1a;color:var(--cn-primary)}.cn-change-badge--regulation{background:#6179e81a;color:#6179e8}.cn-change-badge--blocking{background:#fff3e0;color:#d35400}.cn-empty-hero{text-align:center;padding:48px 24px;background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;margin-bottom:24px}.cn-empty-hero__icon{display:block;margin:0 auto 20px;width:80px;height:80px}.cn-empty-hero__heading{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);margin-bottom:10px}.cn-empty-hero__sub{font-size:var(--cn-text-md);color:var(--cn-muted);max-width:440px;margin:0 auto 24px;line-height:1.6}.cn-empty-hero__footnote{margin-top:12px;font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-blurred-teaser{position:relative;border-radius:10px;overflow:hidden;margin-bottom:24px}.cn-blurred-teaser__blur{filter:blur(4px);pointer-events:none;-webkit-user-select:none;user-select:none}.cn-blurred-teaser__overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#ffffffbf;gap:10px;padding:24px;text-align:center}.cn-blurred-teaser__overlay-icon{font-size:var(--cn-text-xl);line-height:1}.cn-blurred-teaser__overlay-label{font-size:var(--cn-text-lg);font-weight:700;color:var(--cn-heading)}.cn-blurred-teaser__overlay-sub{font-size:var(--cn-text-base);color:var(--cn-muted);max-width:380px;line-height:1.5}.cn-blurred-teaser__section{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:18px 20px;margin-bottom:16px}.cn-blurred-teaser__section:last-child{margin-bottom:0}.cn-blurred-teaser__section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.cn-blurred-teaser__section-title{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading)}.cn-blurred-teaser__section-meta{font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-blurred-teaser__table{width:100%;border-collapse:collapse;font-size:var(--cn-text-base)}.cn-blurred-teaser__table thead tr{background:#f0f2f5}.cn-blurred-teaser__table th{font-size:var(--cn-text-sm);font-weight:700;text-transform:uppercase;letter-spacing:.4px;color:var(--cn-muted);padding:8px 12px;text-align:left;border-bottom:1px solid var(--cn-border)}.cn-blurred-teaser__table td{padding:8px 12px;border-bottom:1px solid var(--cn-border);color:var(--cn-text)}.cn-blurred-teaser__table td:last-child{border-bottom:none}.cn-blurred-teaser__table tr:last-child td{border-bottom:none}.cn-blurred-teaser__timeline{display:flex;flex-direction:column;gap:12px}.cn-blurred-teaser__tl-row{display:flex;align-items:flex-start;gap:12px}.cn-blurred-teaser__tl-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0;margin-top:3px;background:var(--cn-border)}.cn-blurred-teaser__tl-dot--banner{background:var(--cn-primary)}.cn-blurred-teaser__tl-dot--setting{background:var(--cn-info, #6179e8)}.cn-blurred-teaser__tl-dot--scan{background:var(--cn-yellow, #f5a623)}.cn-blurred-teaser__tl-text{flex:1}.cn-blurred-teaser__tl-what{font-size:var(--cn-text-base);color:var(--cn-heading);display:flex;align-items:center;gap:6px;flex-wrap:wrap}.cn-blurred-teaser__tl-when{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-top:2px}.cn-consent-id{font-family:monospace;font-size:var(--cn-text-sm);color:var(--cn-heading);background:#f0f2f5;padding:2px 6px;border-radius:4px;letter-spacing:.3px}.cn-ip-masked{font-family:monospace;font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-level-pill{display:inline-block;padding:3px 10px;border-radius:12px;font-size:var(--cn-text-sm);font-weight:700;text-transform:capitalize}.cn-level-pill--accept{background:var(--cn-green-bg, #e8faf5);color:var(--cn-green, #20c19e)}.cn-level-pill--custom{background:#6179e81a;color:var(--cn-info, #6179e8)}.cn-level-pill--reject{background:var(--cn-red-bg, #fdecea);color:var(--cn-red, #e74c3c)}.cn-cat-tags{display:flex;flex-wrap:wrap;gap:4px}.cn-cat-tag{display:inline-block;padding:2px 8px;border-radius:10px;font-size:var(--cn-text-xs);font-weight:700;text-transform:uppercase;letter-spacing:.3px}.cn-cat-tag--essential{background:var(--cn-green-bg, #e8faf5);color:var(--cn-green, #20c19e)}.cn-cat-tag--analytics{background:#6179e81a;color:var(--cn-info, #6179e8)}.cn-cat-tag--marketing{background:var(--cn-yellow-bg, #fef7e8);color:var(--cn-yellow, #f5a623)}.cn-cat-tag--functional{background:var(--cn-light-bg, #f0f2f5);color:var(--cn-muted)}.cn-consent-log-table{margin-bottom:28px}.cn-consent-log-table__controls{display:flex;align-items:center;gap:12px;margin-bottom:12px}.cn-consent-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:24px}.cn-consent-stat{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:16px 18px;text-align:center}.cn-consent-stat__value{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);line-height:1.2;margin-bottom:4px}.cn-consent-stat__label{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.4px}.cn-config-timeline{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;overflow:hidden;margin-bottom:24px}.cn-config-timeline__header{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;background:#f0f2f5;border-bottom:1px solid var(--cn-border)}.cn-config-timeline__title{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading)}.cn-config-timeline__period{font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-config-timeline__body{padding:0 18px}.cn-timeline-list{display:flex;flex-direction:column}.cn-timeline-item{display:flex;align-items:flex-start;gap:14px;padding:16px 0;border-bottom:1px solid var(--cn-border)}.cn-timeline-item:last-child{border-bottom:none}.cn-timeline-item__dot-wrap{padding-top:3px;flex-shrink:0}.cn-timeline-item__dot{width:10px;height:10px;border-radius:50%;background:var(--cn-border)}.cn-timeline-item__dot--banner{background:var(--cn-primary)}.cn-timeline-item__dot--setting{background:var(--cn-info, #6179e8)}.cn-timeline-item__dot--scan{background:var(--cn-yellow, #f5a623)}.cn-timeline-item__content{flex:1}.cn-timeline-item__top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:4px}.cn-timeline-item__what{font-size:var(--cn-text-base);font-weight:600;color:var(--cn-heading);display:flex;align-items:center;gap:6px;flex-wrap:wrap}.cn-timeline-item__when{font-size:var(--cn-text-sm);color:var(--cn-muted);white-space:nowrap;flex-shrink:0}.cn-timeline-item__detail{font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.5;margin-bottom:4px}.cn-timeline-item__user{font-size:var(--cn-text-sm);color:var(--cn-muted);font-style:italic}.cn-change-badge{display:inline-block;padding:2px 8px;border-radius:3px;font-size:var(--cn-text-xs);font-weight:700;text-transform:uppercase;letter-spacing:.3px}.cn-change-badge--banner{background:var(--cn-green-bg, #e8faf5);color:var(--cn-green, #20c19e)}.cn-change-badge--setting{background:#6179e81a;color:var(--cn-info, #6179e8)}.cn-change-badge--scan{background:var(--cn-yellow-bg, #fef7e8);color:var(--cn-yellow, #f5a623)}.cn-compliance-evidence{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;overflow:hidden;margin-bottom:24px}.cn-evidence-tabs{display:flex;border-bottom:1px solid var(--cn-border);background:#f0f2f5;padding:0 4px}.cn-evidence-tab{padding:10px 18px;font-size:var(--cn-text-base);font-weight:600;color:var(--cn-muted);background:none;border:none;border-bottom:2px solid transparent;cursor:pointer;font-family:var(--cn-font);display:inline-flex;align-items:center;gap:6px;transition:color .15s,border-color .15s}.cn-evidence-tab:hover{color:var(--cn-heading)}.cn-evidence-tab--active{color:var(--cn-primary);border-bottom-color:var(--cn-primary);background:var(--cn-surface)}.cn-evidence-panel{padding:18px 20px}.cn-evidence-panel--locked{display:flex;align-items:center;justify-content:center;min-height:160px}.cn-evidence-item{display:flex;align-items:flex-start;gap:10px;padding:10px 0;border-bottom:1px solid var(--cn-border);font-size:var(--cn-text-base)}.cn-evidence-item:last-child{border-bottom:none;padding-bottom:0}.cn-evidence-item:first-child{padding-top:0}.cn-evidence-item__icon{width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:var(--cn-text-sm);font-weight:700;flex-shrink:0;margin-top:1px}.cn-evidence-item__icon--pass{background:var(--cn-green-bg, #e8faf5);color:var(--cn-green, #20c19e)}.cn-evidence-item__icon--warn{background:var(--cn-yellow-bg, #fef7e8);color:var(--cn-yellow, #f5a623)}.cn-evidence-item__icon--na{background:#f0f2f5;color:#9ca3af;font-size:var(--cn-text-base);font-weight:400}.cn-evidence-item__text{flex:1;color:var(--cn-text);line-height:1.5}.cn-evidence-lock{text-align:center;padding:20px}.cn-evidence-lock__icon{font-size:var(--cn-text-xl);display:block;margin-bottom:12px}.cn-evidence-lock__msg{font-size:var(--cn-text-base);color:var(--cn-muted);margin:0 0 16px;line-height:1.5;max-width:320px}.cn-export-section{display:flex;flex-direction:column;gap:10px}.cn-export-section--locked{opacity:.7}.cn-export-section__label{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.4px}.cn-retention-info{display:flex;flex-direction:column;gap:2px;padding:10px 0}.cn-retention-info--pro .cn-retention-info__value{color:var(--cn-primary)}.cn-retention-info__value{font-size:var(--cn-text-lg);font-weight:700;color:var(--cn-heading);line-height:1.2}.cn-retention-info__label{font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-retention-info__note{font-size:var(--cn-text-sm);color:var(--cn-muted);margin:6px 0 0;line-height:1.5}.cn-benefit-item__icon{width:18px;height:18px;border-radius:50%;background:var(--cn-green-bg, #e8faf5);color:var(--cn-green, #20c19e);font-size:var(--cn-text-xs);font-weight:900;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px}@media(max-width:960px){.cn-consent-stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:540px){.cn-consent-stats{grid-template-columns:1fr 1fr}.cn-timeline-item__top{flex-direction:column;align-items:flex-start}}.cn-modal__close{top:20px}.cn-step-indicator{padding-right:48px}.cn-wizard-step,.cn-welcome-step{padding:8px 0 4px}.cn-wizard-step__heading,.cn-welcome-step__heading{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);margin:0 0 8px;line-height:1.3}.cn-wizard-step__heading--sm,.cn-welcome-step__heading--sm{font-size:var(--cn-text-lg)}.cn-wizard-step__desc,.cn-welcome-step__body,.cn-welcome-step__sub{font-size:var(--cn-text-md);color:var(--cn-muted);line-height:1.6;margin:0 0 20px}.cn-wizard-step__form-card{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:20px 24px;margin-bottom:24px}.cn-wizard-step__nav{display:flex;align-items:center;padding-top:4px}.cn-wizard-step__nav-spacer{flex:1}.cn-welcome-split{display:grid;grid-template-columns:1fr 280px;gap:24px;align-items:start}.cn-welcome-split__main{display:flex;flex-direction:column;gap:14px}.cn-welcome-step__badge{display:inline-block;background:var(--cn-red-bg, #fdecea);color:var(--cn-red, #c0392b);font-size:var(--cn-text-sm);font-weight:700;padding:4px 10px;border-radius:20px;text-transform:uppercase;letter-spacing:.4px}.cn-risk-sidebar{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:16px 18px}.cn-risk-sidebar__title{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:12px}.cn-risk-item{display:flex;align-items:flex-start;gap:8px;padding:7px 0;border-bottom:1px solid var(--cn-border);font-size:var(--cn-text-sm)}.cn-risk-item:last-child{border-bottom:none}.cn-risk-item--critical .cn-risk-item__icon{color:var(--cn-red, #c0392b);font-weight:900}.cn-risk-item--high .cn-risk-item__icon{color:var(--cn-orange, #d35400);font-weight:900}.cn-risk-item--medium .cn-risk-item__icon{color:var(--cn-yellow, #b7950b);font-weight:900}.cn-risk-item__icon{font-size:var(--cn-text-base);width:16px;text-align:center;flex-shrink:0;margin-top:1px}.cn-risk-item__text{color:var(--cn-heading);line-height:1.4}.cn-auth-or{display:flex;align-items:center;gap:10px;margin:20px 0;color:#9ca3af;font-size:var(--cn-text-base)}.cn-auth-or:before,.cn-auth-or:after{content:"";flex:1;height:1px;background:#e0e4e8}.cn-auth-signin-teaser{border:1px solid #e0e4e8;border-radius:8px;padding:20px 16px;display:flex;flex-direction:column;align-items:center;gap:12px;font-size:var(--cn-text-md);background:#f9fafb;transition:border-color .15s}.cn-auth-signin-teaser:hover{border-color:#20c19e}.cn-auth-signin-teaser__heading{font-weight:600;color:var(--cn-heading);margin:0}.cn-welcome-step--account .cn-form-field__input{padding:11px 14px;font-size:var(--cn-text-md);border-radius:8px}.cn-welcome-step--account .cn-form-field__label{font-size:var(--cn-text-base);font-weight:600;color:var(--cn-heading);text-transform:none;letter-spacing:0}.cn-account-heading{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);text-align:center;margin:0 0 8px;line-height:1.3}.cn-account-subtitle{font-size:var(--cn-text-md);color:#6b7280;text-align:center;margin:0 0 20px}.cn-auth-back-link{background:none;border:none;color:var(--cn-primary);font-size:var(--cn-text-base);font-family:var(--cn-font);cursor:pointer;padding:0;margin-bottom:12px}.cn-auth-back-link:hover{text-decoration:underline}.cn-auth-form{display:flex;flex-direction:column;gap:2px;max-width:440px}.cn-auth-form__terms{display:flex;align-items:flex-start;gap:8px;font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.5;margin:4px 0;cursor:pointer}.cn-auth-form__terms input[type=checkbox]{margin-top:2px;flex-shrink:0;accent-color:var(--cn-primary)}.cn-auth-form__terms a{color:var(--cn-primary);text-decoration:none}.cn-auth-form__terms a:hover{text-decoration:underline}.cn-auth-form__forgot{text-align:right;margin-top:-4px;margin-bottom:4px}.cn-auth-form__forgot a{font-size:var(--cn-text-sm);color:var(--cn-primary);text-decoration:none}.cn-auth-form__forgot a:hover{text-decoration:underline}.cn-auth-form__subtitle{font-size:var(--cn-text-md);color:#6b7280;margin:0 0 24px;text-align:center}.cn-auth-form__actions{display:flex;gap:10px;margin-top:8px}.cn-auth-form__actions .cn-button{width:100%;padding:14px;font-size:var(--cn-text-md)}.cn-auth-form .cn-form-field__label{text-transform:none}.cn-plan-cards{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:24px}.cn-plan-card{background:var(--cn-surface);border:1.5px solid var(--cn-border);border-radius:12px;padding:24px 20px;display:flex;flex-direction:column;gap:16px;position:relative}.cn-plan-card--highlighted{border-color:var(--cn-primary);box-shadow:0 4px 18px #20c19e26}.cn-plan-card__popular-badge{position:absolute;top:-11px;left:50%;transform:translate(-50%);background:var(--cn-primary);color:#fff;font-size:var(--cn-text-xs);font-weight:700;padding:3px 12px;border-radius:20px;white-space:nowrap;text-transform:uppercase;letter-spacing:.4px}.cn-plan-card__name{font-size:var(--cn-text-lg);font-weight:700;color:var(--cn-heading)}.cn-plan-card__price{display:flex;align-items:baseline;gap:4px}.cn-plan-card__price-amount{font-size:var(--cn-text-xl);font-weight:900;color:var(--cn-heading);line-height:1}.cn-plan-card__price-period{font-size:var(--cn-text-base);color:var(--cn-muted)}.cn-plan-card__features{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:7px;flex:1}.cn-plan-card__feature{display:flex;align-items:flex-start;gap:7px;font-size:var(--cn-text-base);color:var(--cn-text);line-height:1.4}.cn-plan-card__feature-icon{color:var(--cn-primary);font-weight:700;font-size:var(--cn-text-sm);flex-shrink:0;margin-top:1px}.cn-plan-card__feature-icon--pro{color:var(--cn-primary)}.cn-welcome-step__back-link{background:none;border:none;color:var(--cn-muted);font-size:var(--cn-text-base);font-family:var(--cn-font);cursor:pointer;padding:0;margin-top:8px}.cn-welcome-step__back-link:hover{color:var(--cn-heading)}.cn-pricing-hero{text-align:center;padding:8px 0 20px}.cn-pricing-hero__heading{font-size:var(--cn-text-xl);font-weight:900;color:var(--cn-heading);margin:0 0 8px}.cn-pricing-hero__sub{font-size:var(--cn-text-md);color:var(--cn-muted);margin:0 auto;max-width:480px;line-height:1.6}.cn-benefit-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:24px}.cn-benefit-card{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:14px 16px;text-align:center}.cn-benefit-card__icon{font-size:var(--cn-text-xl);margin-bottom:6px}.cn-benefit-card__title{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading);margin-bottom:4px}.cn-benefit-card__desc{font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.5}.cn-pricing-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:8px}.cn-pricing-card{background:var(--cn-surface);border:1.5px solid var(--cn-border);border-radius:12px;padding:20px 18px;text-align:center;display:flex;flex-direction:column;gap:12px;position:relative}.cn-pricing-card--popular{border-color:var(--cn-primary);box-shadow:0 4px 18px #20c19e26}.cn-pricing-card__popular-badge{position:absolute;top:-11px;left:50%;transform:translate(-50%);background:var(--cn-primary);color:#fff;font-size:var(--cn-text-xs);font-weight:700;padding:3px 12px;border-radius:20px;white-space:nowrap;text-transform:uppercase;letter-spacing:.4px}.cn-pricing-card__domains{font-size:var(--cn-text-xl);font-weight:900;color:var(--cn-heading);line-height:1}.cn-pricing-card__domains-label{font-size:var(--cn-text-sm);font-weight:600;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.4px;margin-top:-8px}.cn-pricing-card__price{font-size:var(--cn-text-xl);font-weight:900;color:var(--cn-heading);line-height:1.2}.cn-pricing-card__price sup{font-size:var(--cn-text-md);font-weight:700;vertical-align:super}.cn-pricing-card__price sub{font-size:var(--cn-text-sm);font-weight:400;color:var(--cn-muted);vertical-align:baseline}.cn-pricing-card__billed-note{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-top:-6px}.cn-pricing-card__tagline{font-size:11px;color:#64748b;margin-top:2px;text-align:center}.cn-pricing-card .cn-button--outline{border:1.5px solid #d1d5db;background:#fff;color:var(--cn-text)}.cn-pricing-card .cn-button--outline:hover{background:var(--cn-bg-hover, #f8fafc);border-color:#20c19e;color:#20c19e}.cn-pricing-footer__learn-more{text-align:center;margin-top:24px}.cn-pricing-footer__learn-more .cn-link{font-size:13px;color:#6366f1;text-decoration:none;font-weight:500}.cn-pricing-footer__learn-more .cn-link:hover{text-decoration:underline}.cn-pricing-door-label{text-align:center;margin:0 0 12px;font-size:13px;font-weight:600;color:var(--cn-text-muted, #64748b);letter-spacing:.01em}.cn-pricing-portal-door{margin-top:24px;padding:16px 20px;text-align:center;background:var(--cn-bg-subtle, #f8fafc);border:1px solid var(--cn-border, #e2e8f0);border-radius:10px}.cn-pricing-portal-door__title{font-size:14px;font-weight:700;color:var(--cn-text, #1e293b)}.cn-pricing-portal-door__desc{margin:6px auto 12px;max-width:460px;font-size:13px;line-height:1.5;color:var(--cn-text-muted, #64748b)}.cn-pricing-portal-door__link{font-size:13px;font-weight:600;color:#6366f1;text-decoration:none}.cn-pricing-portal-door__link:hover{text-decoration:underline}.cn-pricing-footer__dismiss{text-align:center;margin-top:12px;padding-bottom:8px}.cn-pricing-footer__dismiss .cn-link-btn{background:none;border:none;font-size:13px;color:#94a3b8;cursor:pointer;padding:4px 8px;font-weight:400}.cn-pricing-footer__dismiss .cn-link-btn:hover{color:#64748b;text-decoration:underline}.cn-step-dots{display:flex;align-items:center;justify-content:center;gap:8px;padding:16px;border-top:1px solid var(--cn-border);margin-top:16px}.cn-step-dot{width:8px;height:8px;border-radius:50%;background:var(--cn-border);transition:all .2s}.cn-step-dot--active{background:var(--cn-primary);width:24px;border-radius:4px}.cn-step-dot--done{background:var(--cn-primary)}.cn-choose__heading{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);margin:0 0 24px;text-align:center}.cn-choose__google-notice{margin:-8px 0 20px;padding:12px 14px;border-radius:8px;background:#f5f8ff;border:1px solid #c7d7fe;color:#1e3a8a;font-size:var(--cn-text-sm)}.cn-choose__sub{font-size:var(--cn-text-md);color:var(--cn-muted);text-align:center;margin:0 0 28px}.cn-protection-cards{display:flex;gap:20px;width:100%}.cn-protection-card{flex:1;display:flex;flex-direction:column;border:2px solid var(--cn-border);border-radius:14px;padding:28px 24px;text-align:center;position:relative;transition:all .2s;cursor:default;background:#fff}.cn-protection-card:hover{border-color:#c0c4cc;transform:translateY(-2px);box-shadow:0 6px 20px #0000000f}.cn-protection-card--recommended{border-color:var(--cn-primary);box-shadow:0 4px 16px #20c19e26}.cn-protection-card__risk-tag-row--spacer{visibility:hidden;pointer-events:none;height:36px;margin-bottom:0}.cn-protection-card__risk-tag{display:inline-block;background:var(--cn-red-bg, #fdecea);color:var(--cn-red, #c0392b);font-size:var(--cn-text-xs);font-weight:700;padding:3px 10px;border-radius:10px;margin-bottom:12px;text-transform:uppercase;letter-spacing:.04em}.cn-protection-card__badge{position:absolute;top:-11px;left:50%;transform:translate(-50%);font-size:var(--cn-text-xs);font-weight:700;padding:3px 12px;border-radius:10px;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap}.cn-protection-card__badge--risk{background:#6b7280;color:#fff}.cn-protection-card__badge--rec{background:var(--cn-primary);color:#fff}.cn-protection-card__badge--max{background:#ffc107;color:#1a1a2e}.cn-protection-card__icon{width:56px;height:56px;border-radius:14px;display:flex;align-items:center;justify-content:center;margin:0 auto 16px;font-size:var(--cn-text-xl)}.cn-protection-card__icon--banner{background:#f0f2f5}.cn-protection-card__icon--protect{background:#e6f9f4}.cn-protection-card__icon--comply{background:#fff8e1}.cn-protection-card__title{font-size:var(--cn-text-lg);font-weight:700;color:var(--cn-heading);margin-bottom:6px;line-height:1.3}.cn-protection-card__subtitle{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-bottom:0;line-height:1.5;min-height:40px}.cn-protection-card__price-zone{min-height:88px;margin-top:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%}.cn-protection-card__price-label{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);margin-bottom:4px;margin-top:2px}.cn-protection-card__price{margin-bottom:4px}.cn-protection-card__price-amount{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading)}.cn-protection-card__price-amount sup{font-size:var(--cn-text-md);vertical-align:super}.cn-protection-card__price-period{font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-protection-card__price-note{font-size:var(--cn-text-sm);color:var(--cn-muted);font-weight:600;margin-top:6px;margin-bottom:4px;display:block}.cn-protection-card__price-note--danger{color:var(--cn-red, #c0392b)}.cn-protection-card__price-discount{font-size:var(--cn-text-sm);color:var(--cn-primary);font-weight:600;display:block;margin-top:4px}.cn-protection-card__divider{height:1px;background:var(--cn-border);margin:16px 0}.cn-protection-card__features{list-style:none;padding:0;margin:14px 0 0;text-align:left}.cn-protection-card__feature{padding:5px 0;font-size:var(--cn-text-sm);color:var(--cn-text);display:flex;align-items:flex-start;gap:8px;line-height:1.4}.cn-protection-card__feature--included .cn-protection-card__feature-icon{color:var(--cn-primary)}.cn-protection-card__feature--excluded .cn-protection-card__feature-icon{color:#ccc}.cn-protection-card__feature--excluded{color:var(--cn-muted)}.cn-protection-card__feature--warning .cn-protection-card__feature-icon{color:var(--cn-red, #c0392b)}.cn-protection-card__feature--warning{color:var(--cn-red, #c0392b);font-weight:600}.cn-protection-card__feature-icon{flex-shrink:0;font-size:var(--cn-text-base);margin-top:1px}.cn-protection-card__footer{margin-top:auto;padding-top:20px;display:flex;flex-direction:column;align-items:center;gap:10px;width:100%}.cn-protection-card__btn{width:100%;text-align:center;padding:12px 28px;border-radius:24px;font-family:var(--cn-font);font-size:var(--cn-text-md);font-weight:700;border:none;box-sizing:border-box;cursor:pointer;transition:all .15s}.cn-protection-card__btn--ghost{background:transparent;color:var(--cn-muted);border:2px solid var(--cn-border);padding:10px 26px}.cn-protection-card__btn--ghost:hover{color:var(--cn-heading);border-color:#c0c4cc}.cn-protection-card__btn--primary{background:var(--cn-primary);color:#fff}.cn-protection-card__btn--primary:hover{background:var(--cn-primary-hover)}.cn-protection-card__btn--secondary{background:#ffc107;color:#1a1a2e}.cn-protection-card__btn--secondary:hover{background:#e6ad00}.cn-protection-card__learn-more{background:none;border:none;color:var(--cn-muted);font-size:var(--cn-text-base);font-family:var(--cn-font);cursor:pointer;padding:0;margin-top:10px}.cn-protection-card__learn-more:hover{color:var(--cn-primary)}.cn-warning-modal{background:#fff;border:3px solid var(--cn-red, #c0392b);border-radius:14px;padding:36px 32px;text-align:center;box-shadow:0 8px 40px #c0392b26;max-width:680px;margin:0 auto}.cn-warning-modal__icon{width:72px;height:72px;background:var(--cn-red-bg, #fdecea);border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 20px;font-size:var(--cn-text-xl)}.cn-warning-modal__heading{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-red, #c0392b);margin-bottom:12px}.cn-warning-modal__text{font-size:var(--cn-text-md);color:var(--cn-text);max-width:600px;margin:0 auto 20px;line-height:1.7}.cn-warning-modal__consequences{background:#fdf0ee;border:1px solid #f5cac3;border-radius:10px;padding:20px 24px;margin:0 auto 24px;max-width:600px;text-align:left}.cn-warning-modal__consequences h5{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-red, #c0392b);text-transform:uppercase;letter-spacing:.04em;margin-bottom:10px}.cn-warning-modal__consequences ul{list-style:none;padding:0;margin:0}.cn-warning-modal__consequences li{padding:6px 0;font-size:var(--cn-text-base);color:var(--cn-text);display:flex;align-items:flex-start;gap:10px;border-bottom:1px solid #f5cac3;line-height:1.5}.cn-warning-modal__consequences li:last-child{border-bottom:none}.cn-warning-modal__consequence-icon{color:var(--cn-red, #c0392b);font-size:var(--cn-text-md);flex-shrink:0;margin-top:2px}.cn-warning-modal__checkbox{display:flex;align-items:flex-start;gap:10px;background:#fff;border:2px solid var(--cn-border);border-radius:10px;padding:14px 16px;margin:0 auto 20px;max-width:600px;text-align:left;cursor:pointer;transition:border-color .15s}.cn-warning-modal__checkbox:hover{border-color:var(--cn-red, #c0392b)}.cn-warning-modal__checkbox input[type=checkbox]{width:18px;height:18px;margin-top:2px;flex-shrink:0;accent-color:var(--cn-red, #c0392b)}.cn-warning-modal__checkbox span{font-size:var(--cn-text-base);color:var(--cn-text);line-height:1.5}.cn-warning-modal__checkbox strong{color:var(--cn-red, #c0392b)}.cn-warning-modal__actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.cn-warning-modal__btn{display:inline-block;padding:12px 28px;border-radius:24px;font-family:var(--cn-font);font-size:var(--cn-text-md);font-weight:700;border:none;cursor:pointer;transition:all .15s}.cn-warning-modal__btn--danger{background:var(--cn-red, #c0392b);color:#fff}.cn-warning-modal__btn--danger:hover{background:#a93226}.cn-warning-modal__btn--danger[disabled]{opacity:.4;cursor:not-allowed}.cn-warning-modal__btn--safe{background:var(--cn-primary);color:#fff}.cn-warning-modal__btn--safe:hover{background:var(--cn-primary-hover)}.cn-pro-pricing__hero{text-align:center;margin-bottom:28px}.cn-pro-pricing__heading{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);margin:0 0 8px}.cn-pro-pricing__sub{font-size:var(--cn-text-md);color:var(--cn-muted);margin:0}.cn-pro-pricing__benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:32px}.cn-pro-pricing__benefit{background:#f8fffe;border:1px solid #d4f0e8;border-radius:10px;padding:16px;text-align:center}.cn-pro-pricing__benefit-icon{font-size:var(--cn-text-xl);margin-bottom:8px}.cn-pro-pricing__benefit-title{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading);margin:0 0 4px}.cn-pro-pricing__benefit-desc{font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.4;margin:0}.cn-pro-pricing__cards{display:flex;gap:16px;margin-bottom:16px}.cn-pro-pricing__card{flex:1;border:2px solid var(--cn-border);border-radius:12px;padding:24px 20px;text-align:center;position:relative;transition:all .15s;cursor:pointer;background:#fff}.cn-pro-pricing__card:hover{border-color:#c0c4cc;transform:translateY(-1px);box-shadow:0 4px 12px #0000000f}.cn-pro-pricing__card--popular{border-color:var(--cn-primary);box-shadow:0 4px 16px #20c19e26}.cn-pro-pricing__card-badge{position:absolute;top:-10px;left:50%;transform:translate(-50%);background:var(--cn-primary);color:#fff;font-size:var(--cn-text-xs);font-weight:700;padding:2px 10px;border-radius:10px;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap}.cn-pro-pricing__card-domains{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);line-height:1}.cn-pro-pricing__card-domains-label{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-bottom:12px;display:block}.cn-pro-pricing__card-price{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);margin-bottom:4px}.cn-pro-pricing__card-price sup{font-size:var(--cn-text-md);vertical-align:super}.cn-pro-pricing__card-price sub{font-size:var(--cn-text-sm);font-weight:400;color:var(--cn-muted)}.cn-pro-pricing__card-per-domain{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-bottom:16px;display:block}.cn-pro-pricing__card-btn{width:100%;text-align:center;padding:10px;border-radius:20px;font-family:var(--cn-font);font-size:var(--cn-text-base);font-weight:700;border:2px solid var(--cn-border);background:transparent;color:var(--cn-heading);cursor:pointer;transition:all .15s}.cn-pro-pricing__card-btn:hover{border-color:var(--cn-primary);color:var(--cn-primary)}.cn-pro-pricing__card-btn--primary{background:var(--cn-primary);color:#fff;border-color:var(--cn-primary)}.cn-pro-pricing__card-btn--primary:hover{background:var(--cn-primary-hover);border-color:var(--cn-primary-hover)}.cn-pro-pricing__back{display:inline-flex;align-items:center;gap:6px;font-size:var(--cn-text-base);color:var(--cn-muted);cursor:pointer;margin-top:8px;border:none;background:none;font-family:var(--cn-font)}.cn-pro-pricing__back:hover{color:var(--cn-primary)}.cn-script-blocking{margin:12px 0 8px}.cn-script-blocking__label{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading);margin-bottom:4px}.cn-script-blocking__desc{font-size:var(--cn-text-sm);color:var(--cn-muted);margin:0 0 10px}.cn-script-blocking__tabs{display:flex;gap:0;margin-bottom:8px}.cn-script-blocking__tab{padding:6px 16px;font-size:var(--cn-text-sm);font-weight:600;font-family:var(--cn-font);border:1.5px solid var(--cn-border);background:var(--cn-surface);color:var(--cn-muted);cursor:pointer;transition:all .15s}.cn-script-blocking__tab:first-child{border-radius:6px 0 0 6px}.cn-script-blocking__tab:last-child{border-radius:0 6px 6px 0;border-left:none}.cn-script-blocking__tab--active{background:var(--cn-primary);color:#fff;border-color:var(--cn-primary)}.cn-script-blocking__tab--active+.cn-script-blocking__tab{border-left:none}@media(max-width:760px){.cn-category-grid,.cn-welcome-split,.cn-plan-cards,.cn-benefit-grid,.cn-pricing-cards{grid-template-columns:1fr}.cn-protection-cards{flex-direction:column}.cn-pro-pricing__benefits{grid-template-columns:1fr}.cn-pro-pricing__cards{flex-direction:column}}.cn-payment-step{padding:8px 0 16px}.cn-payment-step__heading{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);margin:0 0 16px;text-align:center}.cn-payment-step__plan-pill{display:inline-block;background:var(--cn-green-bg);color:var(--cn-primary);border:1px solid var(--cn-primary);border-radius:20px;padding:4px 14px;font-size:var(--cn-text-base);font-weight:600;margin:0 auto 20px;text-align:center;width:100%;box-sizing:border-box}.cn-payment-step__error{background:var(--cn-red-bg);color:var(--cn-red);border:1px solid var(--cn-red);border-radius:6px;padding:10px 14px;font-size:var(--cn-text-base);margin-bottom:16px}.cn-payment-step__loading{text-align:center;color:var(--cn-muted);font-size:var(--cn-text-base);padding:32px 0}.cn-payment-step__form{width:100%}.cn-payment-step__field{margin-bottom:14px;flex:1}.cn-payment-step__label{display:block;font-size:var(--cn-text-sm);font-weight:600;color:var(--cn-text);margin-bottom:5px;font-family:var(--cn-font)}.cn-payment-step__input{width:100%;height:40px;padding:0 12px;border:1.5px solid var(--cn-border);border-radius:6px;font-size:var(--cn-text-md);font-family:var(--cn-font);color:var(--cn-text);background:var(--cn-surface);box-sizing:border-box;transition:border-color .15s}.cn-payment-step__input:focus{outline:none;border-color:var(--cn-primary)}.cn-payment-step__hosted-field{height:40px;padding:0 12px;border:1.5px solid var(--cn-border);border-radius:6px;background:var(--cn-surface);box-sizing:border-box;transition:border-color .15s}.cn-payment-step__hosted-field.braintree-hosted-fields-focused{border-color:var(--cn-primary)}.cn-payment-step__hosted-field.braintree-hosted-fields-invalid{border-color:var(--cn-red)}.cn-payment-step__hosted-field.braintree-hosted-fields-valid{border-color:var(--cn-green)}.cn-payment-step__row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.cn-payment-step__braintree-badge{font-size:var(--cn-text-sm);color:var(--cn-muted);text-align:center;margin:8px 0 16px}.cn-payment-step__submit{width:100%;height:44px;font-size:var(--cn-text-md);font-weight:600}.cn-payment-step__back{margin-top:10px;height:44px}.cn-payment-step__back--standalone{margin-top:16px}.cn-auth-form__error{background:var(--cn-red-bg);color:var(--cn-red);border:1px solid var(--cn-red);border-radius:6px;padding:10px 14px;font-size:var(--cn-text-base);margin-bottom:14px}.cn-auth-form__switch-link{background:none;border:none;padding:0;color:var(--cn-red);font-size:var(--cn-text-base);font-weight:600;text-decoration:underline;cursor:pointer;font-family:var(--cn-font)}.cn-auth-form__switch-link:hover{color:var(--cn-primary)}.cn-auth-form__field-hint{margin:-6px 0 10px;font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.4}.cn-auth-form__notice{background:var(--cn-bg-subtle, #f6f7f7);color:var(--cn-text, #1d2327);border:1px solid var(--cn-border, #dcdcde);border-radius:6px;padding:10px 14px;font-size:var(--cn-text-base);margin-bottom:14px}.cn-auth-form__links{display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:16px}.cn-auth-form__switch-link:disabled{color:var(--cn-muted);cursor:default;text-decoration:none}.cn-app-choice{border:0;margin:0 0 12px;padding:0;display:flex;flex-direction:column;gap:8px}.cn-app-choice__option{display:flex;align-items:flex-start;gap:10px;padding:10px 14px;border:1px solid var(--cn-border, #dcdcde);border-radius:6px;cursor:pointer;text-align:left}.cn-app-choice__option--selected{border-color:var(--cn-primary, #2271b1)}.cn-app-choice__option input{margin-top:3px}.cn-app-choice__text{display:flex;flex-direction:column;gap:2px;min-width:0;overflow-wrap:anywhere}.cn-app-choice__name{font-weight:600;color:var(--cn-text, #1d2327)}.cn-app-choice__domain{font-size:var(--cn-text-base);color:var(--cn-muted)}.cn-app-choice__badge{align-self:flex-start;font-size:12px;color:var(--cn-muted);background:var(--cn-bg-subtle, #f6f7f7);border-radius:10px;padding:1px 8px}.cn-app-choice__note{margin:0 0 14px;font-size:var(--cn-text-base);color:var(--cn-muted);text-align:left}.cn-license-select{text-align:center}.cn-license-select__upsell-icon{font-size:var(--cn-text-xl);margin-bottom:12px}.cn-license-select__heading{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);margin:0 0 10px;line-height:1.3;text-align:center}.cn-license-select__sub{font-size:var(--cn-text-md);color:var(--cn-muted);line-height:1.6;max-width:420px;margin:0 auto 20px}.cn-license-select__choose-label{font-size:var(--cn-text-base);color:var(--cn-text);margin:0 0 12px;text-align:left}.cn-license-select__single-card{display:flex;align-items:center;justify-content:space-between;border:1.5px solid var(--cn-primary);border-radius:10px;padding:16px 20px;background:var(--cn-green-bg, #e8faf5);margin-bottom:20px;text-align:left}.cn-license-select__cards{display:flex;flex-direction:column;gap:10px;margin-bottom:20px;text-align:left}.cn-license-select__card{display:flex;align-items:center;gap:12px;border:1.5px solid var(--cn-border);border-radius:10px;padding:14px 16px;cursor:pointer;background:var(--cn-surface);transition:border-color .15s,background .15s}.cn-license-select__card:hover{border-color:var(--cn-primary)}.cn-license-select__card--selected{border-color:var(--cn-primary);background:var(--cn-green-bg, #e8faf5)}.cn-license-select__radio{flex-shrink:0;accent-color:var(--cn-primary);width:16px;height:16px}.cn-license-select__card-body{display:flex;flex-direction:column;gap:2px;flex:1}.cn-license-select__card-name{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading)}.cn-license-select__card-slots{font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-license-select__error{background:var(--cn-red-bg, #fdecea);color:var(--cn-red, #e74c3c);border:1px solid var(--cn-red, #e74c3c);border-radius:6px;padding:10px 14px;font-size:var(--cn-text-base);margin-bottom:14px;text-align:left}.cn-license-select__actions{margin-bottom:12px}.cn-license-select__free-link{background:none;border:none;color:var(--cn-muted);font-size:var(--cn-text-base);font-family:var(--cn-font);cursor:pointer;padding:0;text-decoration:underline}.cn-license-select__free-link:hover{color:var(--cn-text)}.cn-plugin-settings{margin-top:24px}.cn-plugin-settings__actions{display:flex;align-items:center;gap:12px;margin-top:20px;padding-top:16px;border-top:1px solid var(--cn-border, #e2e8f0)}.cn-plugin-settings__saved{color:var(--cn-success, #16a34a);font-size:var(--cn-text-base);font-weight:500}.cn-plugin-settings__actions>.cn-button--secondary:last-child{margin-left:auto}.cn-plugin-settings__reset-confirm{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:12px;padding:12px 16px;border:1px solid var(--cn-warning, #f59e0b);border-radius:6px;background:#fffbeb}.cn-plugin-settings__reset-confirm p{flex-basis:100%;margin:0;font-size:var(--cn-text-base)}.cn-toggle-row{padding:10px 0;border-bottom:1px solid var(--cn-border-light, #f1f5f9)}.cn-toggle-row:last-child{border-bottom:none}.cn-toggle-row__label{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:var(--cn-text-base);font-weight:500;color:var(--cn-text, #1e293b)}.cn-toggle-row__input{width:16px;height:16px;accent-color:var(--cn-primary, #3b82f6);cursor:pointer}.cn-toggle-row__desc{margin-top:4px;padding-left:24px;font-size:var(--cn-text-sm);color:var(--cn-text-muted, #64748b)}.cn-radio-group{padding:8px 0}.cn-radio-group__label{font-size:var(--cn-text-base);font-weight:500;color:var(--cn-text, #1e293b);margin-bottom:6px}.cn-radio-group__options{display:flex;gap:16px;flex-wrap:wrap}.cn-radio-group__option{display:flex;align-items:center;gap:6px;font-size:var(--cn-text-base);color:var(--cn-text, #1e293b);cursor:pointer}.cn-radio-group__option input[type=radio]{accent-color:var(--cn-primary, #3b82f6);cursor:pointer}.cn-opacity-slider{width:100%;height:6px;accent-color:var(--cn-primary, #3b82f6);cursor:pointer}.cn-compliance-behavior__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:16px}@media(max-width:900px){.cn-compliance-behavior__grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:560px){.cn-compliance-behavior__grid{grid-template-columns:1fr}}.cn-compliance-behavior__footer{padding:10px 14px;background:var(--cn-bg-muted, #f8fafc);border-radius:6px;font-size:var(--cn-text-sm);color:var(--cn-text-muted, #64748b);line-height:1.5}.cn-compliance-card__pills{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}.cn-compliance-card__note{font-size:var(--cn-text-sm);color:var(--cn-text-muted, #64748b);margin-top:4px;line-height:1.4}.cn-compliance-empty{padding:24px 20px;border:1px dashed var(--cn-border, #e2e8f0);border-radius:8px;text-align:center}.cn-compliance-empty__icon{font-size:var(--cn-text-xl);margin-bottom:10px}.cn-compliance-empty__title{font-size:var(--cn-text-md);font-weight:600;color:var(--cn-text, #1e293b);margin-bottom:6px}.cn-compliance-empty__body{font-size:var(--cn-text-base);color:var(--cn-text-muted, #64748b);margin-bottom:14px;max-width:320px;margin-left:auto;margin-right:auto}.cn-compliance-empty__link{font-size:var(--cn-text-base);font-weight:600;color:var(--cn-primary, #3b82f6);text-decoration:none}.cn-compliance-empty__link:hover{text-decoration:underline}.cn-rule-builder{margin-top:8px}.cn-rule-builder__empty{padding:10px 14px;background:var(--cn-bg-muted, #f8fafc);border:1px dashed var(--cn-border, #e2e8f0);border-radius:6px;font-size:var(--cn-text-sm);color:var(--cn-text-muted, #64748b);margin:0 0 8px}.cn-rule-builder__add-group{background:none;border:1px dashed var(--cn-border, #e2e8f0);border-radius:6px;padding:8px 14px;cursor:pointer;font-size:var(--cn-text-sm);color:var(--cn-primary, #00a99d);width:100%;margin-top:8px}.cn-rule-builder__add-group:hover{border-color:var(--cn-primary, #00a99d);background:var(--cn-bg-muted, #f8fafc)}.cn-rule-group__or{text-align:center;font-size:11px;font-weight:700;text-transform:uppercase;color:var(--cn-text-muted, #64748b);padding:6px 0;letter-spacing:.05em}.cn-rule-group__and{font-size:11px;font-weight:600;text-transform:uppercase;color:var(--cn-text-muted, #94a3b8);padding:2px 0 2px 4px}.cn-rule-group__card{border:1px solid var(--cn-border, #e2e8f0);border-radius:6px;padding:10px;background:var(--cn-bg-muted, #f8fafc)}.cn-rule-group__add-rule{background:none;border:none;padding:4px 0;cursor:pointer;font-size:var(--cn-text-sm);color:var(--cn-primary, #00a99d)}.cn-rule-group__add-rule:hover{text-decoration:underline}.cn-rule-row{display:flex;gap:6px;align-items:center;margin-bottom:4px}.cn-rule-row select{flex:1;min-width:0;padding:5px 8px;border:1px solid var(--cn-border, #e2e8f0);border-radius:4px;font-size:var(--cn-text-sm);background:#fff}.cn-rule-row__param{flex:1.2}.cn-rule-row__operator{flex:1}.cn-rule-row__value{flex:1.5}.cn-rule-row__remove{background:none;border:none;cursor:pointer;font-size:18px;color:var(--cn-text-muted, #94a3b8);padding:2px 6px;line-height:1;flex-shrink:0}.cn-rule-row__remove:hover{color:#ef4444}.cn-network-managed{opacity:.5;pointer-events:none}.cn-pill-toggle{display:flex;background:var(--cn-light-bg, #f0f2f5);border-radius:24px;padding:4px;width:fit-content}.cn-pill-toggle__btn{flex:1;border:none;background:transparent;border-radius:20px;cursor:pointer;font-size:var(--cn-text-base);font-family:var(--cn-font);font-weight:600;padding:8px 24px;color:var(--cn-muted);transition:all .15s;white-space:nowrap;display:inline-flex;align-items:center;gap:6px}.cn-pill-toggle__btn--active{background:#fff;box-shadow:0 1px 3px #0000001a;color:var(--cn-heading)}.cn-pill-toggle__btn:not(.cn-pill-toggle__btn--active):hover{color:var(--cn-heading)}.cn-pill-toggle__badge{background:linear-gradient(135deg,#f7b731,#f5a623);color:#1a1a1a;font-size:var(--cn-text-xs);font-weight:900;padding:2px 6px;border-radius:3px;text-transform:uppercase;letter-spacing:.3px}.cn-pill-toggle-desc{font-size:var(--cn-text-sm);color:var(--cn-muted);margin:8px 0 6px}.cn-pill-toggle-note{font-size:var(--cn-text-xs);color:var(--cn-text-muted, #64748b);margin-top:12px}.cn-protection-header{margin-bottom:20px}.cn-protection-header__title{font-size:var(--cn-text-xl);font-weight:600;color:#434f58;margin:0 0 4px}.cn-protection-header__subtitle{font-size:var(--cn-text-base);color:#6b7280;margin:0}.cn-first-run{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:24px;margin-bottom:24px;box-shadow:0 1px 4px #0000000f}.cn-first-run__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.cn-first-run__title{font-size:var(--cn-text-lg);font-weight:600;color:#434f58;margin:0}.cn-first-run__dismiss{background:none;border:none;cursor:pointer;font-size:var(--cn-text-xl);color:#6b7280;line-height:1;padding:2px 6px;border-radius:4px}.cn-first-run__dismiss:hover{background:#f3f4f6;color:#434f58}.cn-first-run__progress{display:flex;align-items:center;gap:0;margin-bottom:24px;counter-reset:step}.cn-first-run__step-indicator{display:flex;align-items:center;gap:8px;flex:1;position:relative}.cn-first-run__step-indicator:not(:last-child):after{content:"";display:block;flex:1;height:2px;background:var(--cn-border);margin:0 8px;order:3}.cn-first-run__step-indicator--done .cn-first-run__step-num{background:var(--cn-primary);border-color:var(--cn-primary);color:#fff}.cn-first-run__step-indicator--done .cn-first-run__step-num:before{content:"✓"}.cn-first-run__step-indicator--done:after{background:var(--cn-primary)!important}.cn-first-run__step-indicator--active .cn-first-run__step-num{background:var(--cn-primary);border-color:var(--cn-primary);color:#fff}.cn-first-run__step-indicator--active .cn-first-run__step-label{color:var(--cn-primary);font-weight:600}.cn-first-run__step-num{width:28px;height:28px;border-radius:50%;border:2px solid var(--cn-border);background:#fff;color:#6b7280;font-size:var(--cn-text-sm);font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;order:1;transition:background .2s,border-color .2s}.cn-first-run__step-label{font-size:var(--cn-text-sm);color:#6b7280;order:2;white-space:nowrap}.cn-first-run__body{margin-bottom:20px}.cn-first-run__body h3{font-size:var(--cn-text-md);font-weight:600;color:#434f58;margin:0 0 4px}.cn-first-run__body p{font-size:var(--cn-text-base);color:#6b7280;margin:0 0 16px}.cn-first-run__step-badge{display:inline-block;font-size:var(--cn-text-sm);font-weight:500;color:#6b7280;background:#f1f5f9;padding:2px 8px;border-radius:20px;margin-left:8px;vertical-align:middle}.cn-first-run__nav{display:flex;align-items:center;justify-content:space-between;padding-top:16px;border-top:1px solid var(--cn-border)}.cn-first-run__nav-right{display:flex;align-items:center;gap:8px;margin-left:auto}.cn-inline-panel{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:24px;margin-bottom:24px;box-shadow:0 1px 4px #0000000f}.cn-inline-panel__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.cn-inline-panel__title{font-size:var(--cn-text-lg);font-weight:600;color:#434f58;margin:0}.cn-inline-panel__dismiss{background:none;border:none;cursor:pointer;font-size:var(--cn-text-xl);color:#6b7280;line-height:1;padding:2px 6px;border-radius:4px}.cn-inline-panel__dismiss:hover{background:#f3f4f6;color:#434f58}.cn-inline-panel__body{margin-bottom:20px}.cn-inline-panel__body h3{font-size:var(--cn-text-md);font-weight:600;color:#434f58;margin:0 0 4px}.cn-inline-panel__body p{font-size:var(--cn-text-base);color:#6b7280;margin:0 0 16px}.cn-inline-panel__footer{display:flex;align-items:center;justify-content:space-between;padding-top:16px;border-top:1px solid var(--cn-border)}@media(prefers-reduced-motion:no-preference){@keyframes cn-panel-enter{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.cn-inline-panel{animation:cn-panel-enter .22s cubic-bezier(.16,1,.3,1) both}.cn-inline-panel--closing{animation:none;transition:opacity .16s ease,transform .16s ease;opacity:0;transform:translateY(-6px);pointer-events:none}}.cn-law-selector__grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:16px}@media(max-width:600px){.cn-law-selector__grid{grid-template-columns:1fr}}.cn-law-selector__card{display:flex;align-items:flex-start;gap:10px;border:2px solid var(--cn-border);border-radius:10px;padding:12px 14px;cursor:pointer;background:var(--cn-surface);transition:border-color .15s}.cn-law-selector__card:hover{border-color:var(--cn-primary)}.cn-law-selector__card--active{border-color:var(--cn-primary);background:var(--cn-primary-light, #e6faf5)}.cn-law-selector__checkbox{width:16px;height:16px;margin-top:1px;flex-shrink:0;accent-color:var(--cn-primary)}.cn-law-selector__info{flex:1}.cn-law-selector__name{font-size:var(--cn-text-base);font-weight:600;color:#434f58;margin-bottom:1px}.cn-law-selector__jurisdiction{font-size:var(--cn-text-sm);color:#6b7280;margin-bottom:2px}.cn-law-selector__desc{font-size:var(--cn-text-sm);color:#6b7280;line-height:1.4}.cn-law-selector__dns-url{margin-top:12px;padding:14px;background:#fffbeb;border:1px solid #fde68a;border-radius:10px}.cn-law-selector__dns-label{font-size:var(--cn-text-base);font-weight:600;color:#434f58;margin-bottom:4px;display:block}.cn-law-selector__dns-help{font-size:var(--cn-text-sm);color:#6b7280;margin-bottom:8px;display:block}.cn-law-selector__dns-input{width:100%;padding:8px 10px;border:1px solid var(--cn-border);border-radius:4px;font-size:var(--cn-text-base);box-sizing:border-box}.cn-law-selector__dns-input:focus{outline:none;border-color:var(--cn-primary);box-shadow:0 0 0 2px #20c19e26}.cn-law-selector__dns-required{font-size:var(--cn-text-sm);color:#d63638;margin-top:4px}.cn-compliance-rules__consent-modes{margin-top:16px;border-top:1px solid var(--cn-border);padding-top:16px}.cn-compliance-rules__mode-toggle{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid #f3f4f6}.cn-compliance-rules__mode-toggle:last-child{border-bottom:none}.cn-compliance-rules__mode-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;font-size:var(--cn-text-sm);font-weight:700;margin-right:8px;flex-shrink:0}.cn-compliance-rules__mode-icon--g{background:#ea4335;color:#fff}.cn-compliance-rules__mode-icon--f{background:#1877f2;color:#fff}.cn-compliance-rules__mode-icon--m{background:#00a4ef;color:#fff}.cn-compliance-rules__detected-badge{font-size:var(--cn-text-xs);font-weight:600;color:#0d6efd;background:#e7f1ff;border-radius:20px;padding:2px 7px;margin-left:6px}.cn-compliance-rules__suggestion{background:#f0f9ff;border:1px solid #bae6fd;border-radius:4px;padding:10px 12px;font-size:var(--cn-text-sm);color:#0369a1;margin-bottom:14px}.cn-compliance-rules__portal-link{display:block;font-size:var(--cn-text-sm);color:var(--cn-primary);text-decoration:none;margin-top:14px}.cn-compliance-rules__portal-link:hover{text-decoration:underline}.cn-compliance-rules__actions{margin-top:16px;display:flex;gap:8px;align-items:center}.cn-language-picker__grid{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.cn-language-picker__badge{display:inline-flex;align-items:center;gap:5px;padding:6px 12px;border:1px solid var(--cn-border);border-radius:20px;background:#fff;font-size:var(--cn-text-sm);font-weight:500;color:#434f58;cursor:pointer;transition:border-color .15s,background .15s}.cn-language-picker__badge:hover{border-color:var(--cn-primary)}.cn-language-picker__badge--active{border-color:var(--cn-primary);background:var(--cn-primary-light, #e6faf5);color:#189b7e;font-weight:600}.cn-language-picker__badge--locked{opacity:.45;cursor:pointer;border-color:var(--cn-border);background:#f9fafb;color:#6b7280}.cn-language-picker__badge--locked:hover{border-color:var(--cn-primary);opacity:.65}.cn-language-picker__note{font-size:var(--cn-text-sm);color:#6b7280;margin-bottom:12px;display:block}.cn-language-picker__hint{font-size:var(--cn-text-sm);color:#6b7280;line-height:1.5;margin:0 0 12px;padding:8px 10px;background:#f8fafc;border-left:3px solid var(--cn-border);border-radius:0 4px 4px 0}.cn-language-picker__actions{display:flex;gap:8px;margin-top:12px}.cn-language-picker__error{font-size:var(--cn-text-sm);color:#d63638;margin-top:6px}.cn-dns-url{margin-top:12px}.cn-dns-url label{display:block;font-size:var(--cn-text-base);font-weight:600;color:#434f58;margin-bottom:4px}.cn-dns-url input{width:100%;padding:8px 10px;border:1px solid var(--cn-border);border-radius:4px;font-size:var(--cn-text-base);box-sizing:border-box}.cn-dns-url input:focus{outline:none;border-color:var(--cn-primary);box-shadow:0 0 0 2px #20c19e26}.cn-saved-indicator{font-size:var(--cn-text-sm);color:#166534;font-weight:500}.cn-error-indicator{font-size:var(--cn-text-sm);color:#d63638;font-weight:500}.cn-privacy-source--unavailable .cn-toggle-row__label{opacity:.7}.cn-privacy-source__forms{margin-top:8px}.cn-privacy-source__forms--busy{cursor:wait;opacity:.6}.cn-admin-app input[type=checkbox].cn-privacy-form-toggle{position:relative;width:2.4rem;min-width:2.4rem;height:1.2rem;margin:0;padding:0;border:none;border-radius:9999px;background-color:#64748b60;box-shadow:none;cursor:pointer;-moz-appearance:none;appearance:none;-webkit-appearance:none;transition:background-color .2s ease}.cn-admin-app input[type=checkbox].cn-privacy-form-toggle:before{position:absolute;top:-.05rem;left:-.05rem;width:1.3rem;height:1.3rem;margin:0;border:1px solid rgba(100,116,139,.5);border-radius:9999px;background-color:#fff;box-shadow:0 2px 6px #64748b33;content:"";transition:transform .2s ease}.cn-admin-app input[type=checkbox].cn-privacy-form-toggle:focus{box-shadow:none}.cn-admin-app input[type=checkbox].cn-privacy-form-toggle:checked{background-color:var(--cn-primary)}.cn-admin-app input[type=checkbox].cn-privacy-form-toggle:checked:before{border-color:var(--cn-primary);transform:translate(100%)}.cn-admin-app input[type=checkbox].cn-privacy-form-toggle:disabled{cursor:default;opacity:.4}.cn-privacy-consent__loading,.cn-privacy-consent-logs__desc{font-size:var(--cn-text-sm);color:var(--cn-muted);margin:0 0 12px}.cn-privacy-source__save{margin-top:12px}.cn-banner-panel{display:grid;grid-template-columns:minmax(0,300px) minmax(0,1fr);gap:24px;margin-bottom:24px;padding:20px 22px;background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px}@media(max-width:960px){.cn-banner-panel{grid-template-columns:1fr}}.cn-banner-panel__shot{display:flex;flex-direction:column;gap:12px}.cn-banner-panel__head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}.cn-banner-panel__title{margin:0;font-size:var(--cn-text-lg);font-weight:700;color:var(--cn-heading)}.cn-banner-panel__status{padding:2px 10px;border-radius:10px;font-size:var(--cn-text-sm);font-weight:600}.cn-banner-panel__status--live{background:var(--cn-ok-pill-bg);color:var(--cn-ok-pill-txt)}.cn-banner-panel__status--off{background:var(--cn-off-pill-bg);color:var(--cn-off-pill-txt)}.cn-banner-panel__caption{margin:0;font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.4}.cn-banner-panel__rows{display:flex;flex-direction:column}.cn-banner-panel__managed{margin:0 0 8px;padding:10px 12px;border-radius:6px;background:var(--cn-light-bg);font-size:var(--cn-text-base);color:var(--cn-heading)}.cn-banner-panel__row{display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px;padding:12px 0;border-bottom:1px solid var(--cn-border)}.cn-banner-panel__label{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.04em;padding-top:2px}.cn-banner-panel__value{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0}.cn-banner-panel__chip{padding:2px 10px;border-radius:10px;font-size:var(--cn-text-sm);font-weight:700}.cn-banner-panel__chip--new{background:var(--cn-light-bg);color:var(--cn-info)}.cn-banner-panel__chip--classic{background:var(--cn-off-pill-bg);color:var(--cn-link-neutral)}.cn-banner-panel__note{font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.4}.cn-banner-panel__link{padding:0;border:none;background:none;font-family:var(--cn-font);font-size:var(--cn-text-sm);font-weight:600;color:var(--cn-link-neutral);text-decoration:underline;text-decoration-color:var(--cn-border);text-underline-offset:2px;cursor:pointer}.cn-banner-panel__link:hover{color:var(--cn-heading);text-decoration-color:var(--cn-muted)}.cn-banner-panel__link:disabled{cursor:default;color:var(--cn-muted)}.cn-banner-panel__actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;padding-top:14px}.cn-banner-panel__sync{display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px;font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-banner-panel__sync-failed{flex-basis:100%;color:var(--cn-warn-val)}.cn-banner-panel__preview-help{margin:10px 0 0;font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.4}.cn-style-cards{display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%}.cn-style-cards__group{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px;width:100%}.cn-style-cards__group--readonly .cn-style-cards__card{cursor:default}.cn-style-cards__group--locked{opacity:.55}.cn-style-cards__group--saving{cursor:progress}.cn-style-cards__group--saving .cn-style-cards__card{cursor:progress;opacity:.75}.cn-style-cards__card{display:grid;grid-template-columns:auto 1fr;gap:2px 8px;padding:10px 12px;border:1px solid var(--cn-border);border-radius:8px;background:var(--cn-surface);cursor:pointer}.cn-style-cards__card input[type=radio]{grid-row:span 2;margin:2px 0 0}.cn-style-cards__card--checked{border-color:var(--cn-primary);box-shadow:0 0 0 1px var(--cn-primary)}.cn-style-cards__name{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading)}.cn-style-cards__desc{font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.35}.cn-style-cards__note{font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.4}.cn-style-cards__error{width:100%;box-sizing:border-box;padding:6px 10px;border-radius:6px;background:#fdecea;color:#c0392b;font-size:var(--cn-text-sm);line-height:1.4}.cn-first-run__style{display:flex;flex-direction:column;gap:8px;margin-bottom:20px}.cn-ov-verdict{border:1px solid var(--cn-border);border-radius:10px;padding:16px 18px;margin-bottom:16px}.cn-ov-verdict--ok{background:linear-gradient(180deg,var(--cn-green-bg),var(--cn-surface));border-color:var(--cn-ok-pill-bg)}.cn-ov-verdict--warn{background:linear-gradient(180deg,var(--cn-warn-card-bg),var(--cn-surface));border-color:var(--cn-warn-border)}.cn-ov-verdict--crit{background:linear-gradient(180deg,var(--cn-crit-card-bg),var(--cn-surface));border-color:var(--cn-crit-border)}.cn-ov-verdict--neutral{background:linear-gradient(180deg,#f3f4f6,var(--cn-surface))}.cn-ov-verdict__top{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}.cn-ov-verdict__grade{font-size:var(--cn-text-lg);font-weight:700;color:var(--cn-heading)}.cn-ov-verdict__gap{font-size:var(--cn-text-sm);font-weight:600;padding:2px 8px;border-radius:10px;background:var(--cn-off-pill-bg);color:var(--cn-off-pill-txt)}.cn-ov-verdict--ok .cn-ov-verdict__gap{background:var(--cn-ok-pill-bg);color:var(--cn-ok-pill-txt)}.cn-ov-verdict--warn .cn-ov-verdict__gap{background:var(--cn-warn-pill-bg);color:var(--cn-warn-pill-txt)}.cn-ov-verdict--crit .cn-ov-verdict__gap{background:var(--cn-crit-pill-bg);color:var(--cn-crit-pill-txt)}.cn-ov-verdict__intro{margin:6px 0 0;font-size:var(--cn-text-base);color:var(--cn-text);line-height:1.45}.cn-ov-verdict__count{font-size:var(--cn-text-sm);font-weight:600;padding:2px 8px;border-radius:10px;background:var(--cn-warn-pill-bg);color:var(--cn-warn-pill-txt)}.cn-ov-verdict--crit .cn-ov-verdict__count{background:var(--cn-crit-pill-bg);color:var(--cn-crit-pill-txt)}.cn-ov-verdict__note{margin:6px 0 0;font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.45}.cn-ov-boxes{margin-top:0;margin-bottom:16px}.cn-ov-box__title{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.03em}.cn-card__foot .cn-ov-box__fix{color:var(--cn-primary);text-decoration-color:currentColor}.cn-card__foot .cn-ov-box__fix:hover{color:var(--cn-primary-hover)}.cn-ov-numbers{display:flex;flex-wrap:wrap;gap:12px 32px;align-items:flex-start;background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:14px 18px;margin-bottom:16px}.cn-ov-numbers__foot{flex-basis:100%;display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center;font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-ov-stat{display:flex;flex-direction:column;gap:2px}.cn-ov-stat__v{font-size:var(--cn-text-xl);font-weight:800;color:var(--cn-heading);line-height:1.15}.cn-ov-stat__k{font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-ov-stat__split{display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:4px;font-size:var(--cn-text-sm);color:var(--cn-text)}.cn-ov-steps,.cn-lls{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:14px 18px;margin-bottom:16px}.cn-ov-steps__title,.cn-lls__title{font-size:var(--cn-text-md);font-weight:700;color:var(--cn-heading);margin:0 0 8px}.cn-ov-steps__list{margin:0;padding:0;list-style:none}.cn-ov-steps__item{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 12px;padding:8px 0;border-top:1px solid var(--cn-border);font-size:var(--cn-text-base);color:var(--cn-text)}.cn-ov-steps__item:first-child{border-top:none}.cn-lls__row{display:grid;grid-template-columns:140px 1fr auto;gap:8px 12px;align-items:center;padding:8px 0;border-top:1px solid var(--cn-border)}.cn-lls__row:first-of-type{border-top:none}@media(max-width:782px){.cn-lls__row{grid-template-columns:1fr}}.cn-lls__k{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted)}.cn-lls__v{display:flex;flex-wrap:wrap;gap:5px;font-size:var(--cn-text-base);color:var(--cn-text)}.cn-lls__none{color:var(--cn-muted)}.cn-lls__action{font-size:var(--cn-text-sm);font-weight:600;color:var(--cn-link-neutral);text-decoration:underline;text-decoration-color:var(--cn-border);text-underline-offset:2px;background:none;border:none;padding:0;cursor:pointer;font-family:var(--cn-font);white-space:nowrap}.cn-lls__action:hover{color:var(--cn-heading);text-decoration-color:var(--cn-muted)}@font-face{font-family:Lato;font-style:normal;font-weight:300;font-display:swap;src:url(./lato-300.woff2) format("woff2")}@font-face{font-family:Lato;font-style:normal;font-weight:400;font-display:swap;src:url(./lato-400.woff2) format("woff2")}@font-face{font-family:Lato;font-style:normal;font-weight:700;font-display:swap;src:url(./lato-700.woff2) format("woff2")}@font-face{font-family:Lato;font-style:normal;font-weight:900;font-display:swap;src:url(./lato-900.woff2) format("woff2")}:root{--cn-bg: #f7f8fa;--cn-surface: #ffffff;--cn-primary: #20c19e;--cn-primary-hover: #1baa8a;--cn-heading: #1a1a2e;--cn-text: #434f58;--cn-border: #e0e4e8;--cn-muted: #8a9199;--cn-green: #20c19e;--cn-green-bg: #e8faf5;--cn-yellow: #f5a623;--cn-yellow-bg: #fef7e8;--cn-red: #e74c3c;--cn-red-bg: #fdecea;--cn-orange: #f39c12;--cn-orange-bg: #fef5e7;--cn-secondary: #ffc107;--cn-info: #6179e8;--cn-light-bg: #f0f2f5;--cn-gold: #f5a623;--cn-gold-bg: #fef7e8;--cn-ok-icon: #16a34a;--cn-ok-dot: #16a34a;--cn-ok-pill-bg: #dcfce7;--cn-ok-pill-txt: #15803d;--cn-ok-val: #111827;--cn-warn-icon: #b45309;--cn-warn-dot: #d97706;--cn-warn-pill-bg: #fde68a;--cn-warn-pill-txt:#92400e;--cn-warn-val: #b45309;--cn-crit-icon: #dc2626;--cn-crit-dot: #ef4444;--cn-crit-pill-bg: #fee2e2;--cn-crit-pill-txt:#b91c1c;--cn-crit-val: #dc2626;--cn-crit-card-bg: #fff8f8;--cn-crit-border: #fecaca;--cn-warn-card-bg: #fffbeb;--cn-warn-border: #fde68a;--cn-off-icon: #9ca3af;--cn-off-dot: #d1d5db;--cn-off-pill-bg: #f3f4f6;--cn-off-pill-txt: #6b7280;--cn-off-val: #9ca3af;--cn-link-neutral: #374151;--cn-font: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;--cn-text-xs: 10px;--cn-text-sm: 12px;--cn-text-base: 13px;--cn-text-md: 14px;--cn-text-lg: 18px;--cn-text-xl: 22px}.cn-admin-app{font-family:var(--cn-font);color:var(--cn-text);margin-top:20px}.cn-admin-app *,.cn-admin-app *:before,.cn-admin-app *:after{box-sizing:border-box}.cn-tab-nav{display:flex;background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:6px 6px 0 0;padding:0 16px;margin:0;list-style:none}.cn-tab-nav__item{padding:12px 20px;font-weight:500;font-size:var(--cn-text-md);color:var(--cn-muted);border-bottom:2px solid transparent;background:none;border-top:none;border-left:none;border-right:none;cursor:pointer;transition:color .2s,border-color .2s;font-family:var(--cn-font)}.cn-tab-nav__item:hover{color:var(--cn-heading)}.cn-tab-nav__item--active{color:var(--cn-primary);border-bottom-color:var(--cn-primary)}.cn-tab-content{background:var(--cn-bg);border:1px solid var(--cn-border);border-top:none;border-radius:0 0 6px 6px;padding:24px}.cn-page-layout{display:flex;gap:24px;align-items:flex-start}.cn-page-layout .cn-main{flex:1;min-width:0}.cn-page-layout .cn-sidebar{width:300px;flex-shrink:0;position:sticky;top:32px}.cn-section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.cn-section-header h2{font-size:var(--cn-text-base);font-weight:600;color:var(--cn-muted);margin:0;text-transform:uppercase;letter-spacing:.5px}.cn-section-header a{font-size:var(--cn-text-base);color:var(--cn-primary);text-decoration:none}.cn-section-header a:hover{color:var(--cn-primary-hover);text-decoration:underline}.cn-side-card{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:20px;margin-bottom:16px}.cn-side-card h3{font-size:var(--cn-text-md);font-weight:600;color:var(--cn-heading);margin:0 0 12px}.cn-side-card ul{list-style:none;margin:0;padding:0}.cn-side-card ul li{margin-bottom:8px}.cn-side-card ul li a{color:var(--cn-primary);text-decoration:none;font-size:var(--cn-text-md)}.cn-side-card ul li a:hover{color:var(--cn-primary-hover);text-decoration:underline}.cn-button{display:inline-flex;align-items:center;justify-content:center;padding:6px 14px;border-radius:20px;font-size:var(--cn-text-sm);font-weight:700;font-family:var(--cn-font);cursor:pointer;border:none;transition:background .2s,box-shadow .2s;text-decoration:none}.cn-button--sm{font-size:var(--cn-text-sm);padding:4px 12px}.cn-button--md{font-size:var(--cn-text-sm);padding:6px 14px}.cn-button--lg{font-size:var(--cn-text-md);padding:9px 24px}.cn-button--primary{background:var(--cn-primary);color:#fff}.cn-button--primary:hover{background:var(--cn-primary-hover)}.cn-button--outline{background:transparent;color:var(--cn-muted);border:1.5px solid var(--cn-border)}.cn-button--outline:hover{border-color:var(--cn-muted);color:var(--cn-heading)}.cn-button--upgrade{background:linear-gradient(135deg,#f7b731,#f5a623);color:#1a1a1a}.cn-button--upgrade:hover{filter:brightness(1.05)}.cn-button--warn{background:var(--cn-orange);color:#fff}.cn-button--warn:hover{background:#c0470a}.cn-button--ghost{background:transparent;color:var(--cn-muted);border:1.5px solid var(--cn-border)}.cn-button--ghost:hover{color:var(--cn-heading);border-color:var(--cn-muted)}.cn-button--block{width:100%;display:block;text-align:center}.cn-button--outline-primary{border:1px solid var(--cn-primary);color:var(--cn-primary);background:transparent}.cn-button--outline-primary:hover{background:var(--cn-primary);color:#fff}.cn-pro-badge{display:inline-block;background:linear-gradient(135deg,#f7b731,#f5a623);color:#1a1a1a;font-size:var(--cn-text-xs);font-weight:900;text-transform:uppercase;letter-spacing:.3px;padding:1px 5px;border-radius:3px}.cn-tier-gate{position:relative}.cn-tier-gate__content{filter:blur(2px);pointer-events:none;-webkit-user-select:none;user-select:none}.cn-tier-gate__overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:#ffffffb3}.cn-tier-gate__cta{text-align:center;padding:20px}.cn-tier-gate__cta p{margin:8px 0 16px;color:var(--cn-text);font-size:var(--cn-text-base)}.cn-tier-gate-inline{display:flex;align-items:flex-start;gap:14px;padding:16px 18px;background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;margin-bottom:20px}.cn-tier-gate-inline svg{flex-shrink:0;margin-top:2px}.cn-tier-gate-inline p{margin:4px 0 0;color:var(--cn-muted);font-size:var(--cn-text-sm)}.cn-compliance-hero{text-align:center;padding:48px 24px;background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px}.cn-compliance-hero h3{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);margin:16px 0 8px}.cn-compliance-hero p{color:var(--cn-muted);font-size:var(--cn-text-md);max-width:480px;margin:0 auto 24px;line-height:1.6}.cn-compliance-grade{display:inline-flex;align-items:center;justify-content:center;width:80px;height:80px;border-radius:50%;background:var(--cn-red-bg);border:3px solid var(--cn-red)}.cn-compliance-grade__letter{font-size:var(--cn-text-xl);font-weight:900;color:var(--cn-red)}.cn-conn-error{color:var(--cn-red);margin:8px 0}.cn-inline-notice{margin-bottom:16px;padding:12px 14px;border-radius:8px;border:1px solid var(--cn-border);background:var(--cn-surface);display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.cn-inline-notice--success{border-color:#b7ebc6;background:#f6fff8}.cn-inline-notice--warning{border-color:#fde68a;background:#fffbea}.cn-inline-notice--info{background:#f6f7fb;border-color:var(--cn-border)}.cn-inline-notice__message{font-size:var(--cn-text-md)}.cn-inline-notice--success .cn-inline-notice__message{color:#1e4620}.cn-inline-notice--warning .cn-inline-notice__message{color:#92400e}.cn-inline-notice--info .cn-inline-notice__message{color:#334155;font-size:var(--cn-text-base)}.cn-inline-notice__actions{display:flex;gap:12px;align-items:center}.cn-footer{margin-top:32px;padding-top:16px;border-top:1px solid var(--cn-border);display:flex;align-items:center;justify-content:space-between;font-size:var(--cn-text-base);color:var(--cn-muted)}.cn-footer a{color:var(--cn-primary);text-decoration:none;margin-left:16px}.cn-footer a:hover{color:var(--cn-primary-hover);text-decoration:underline}.cn-footer__sync{margin-left:12px;opacity:.75}.cn-footer__sync--failed{color:var(--cn-warning, #b26b00);opacity:1}.cn-footer__sync-retry{background:none;border:0;padding:0;color:var(--cn-primary);cursor:pointer;font-size:inherit;text-decoration:underline}.cn-footer__sync-retry:hover{color:var(--cn-primary-hover)}.cn-modal-overlay{position:fixed!important;top:0!important;right:0!important;bottom:0!important;left:0!important;background:#0009!important;z-index:100000!important;display:flex!important;align-items:center;justify-content:center;padding:32px}.cn-modal{background:var(--cn-surface);border-radius:12px;width:100%;overflow:visible;box-shadow:0 20px 60px #0000004d;position:relative}.cn-modal__close{position:absolute;top:16px;right:20px;background:none;border:none;font-size:var(--cn-text-xl);color:var(--cn-muted);cursor:pointer;line-height:1;padding:4px 8px;z-index:1}.cn-modal__close:hover{color:var(--cn-heading)}.cn-modal__header{padding:24px 36px 0;font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading)}.cn-modal__content{padding:36px;overflow-y:auto;max-height:calc(100vh - 140px)}.cn-wizard-shell{display:flex;flex-direction:column}.cn-wizard-shell__body{flex:1;overflow-y:auto}.cn-wizard-shell__nav{display:flex;align-items:center;padding-top:16px;border-top:1px solid var(--cn-border);margin-top:16px}.cn-wizard-shell__spacer{flex:1}.cn-accordion{margin-bottom:24px}.cn-accordion__summary{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.6px;cursor:pointer;-webkit-user-select:none;user-select:none;display:flex;align-items:center;justify-content:space-between;padding:10px 14px;background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;list-style:none;transition:border-color .15s,background .15s}.cn-accordion__summary::-webkit-details-marker{display:none}.cn-accordion__summary::marker{display:none}.cn-accordion__summary:hover{border-color:#c5ccd4;background:#f0f2f5}.cn-accordion[open]>.cn-accordion__summary{border-radius:10px 10px 0 0;border-bottom-color:var(--cn-border);background:var(--cn-surface)}.cn-accordion__left{display:flex;align-items:center;gap:8px}.cn-accordion__title{font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.6px;font-size:var(--cn-text-sm)}.cn-accordion__subtitle{color:var(--cn-text);font-weight:400;text-transform:none;letter-spacing:0;font-size:var(--cn-text-base)}.cn-accordion__chevron{font-size:var(--cn-text-xs);color:var(--cn-muted);transition:transform .2s;flex-shrink:0}.cn-accordion[open] .cn-accordion__chevron{transform:rotate(180deg)}.cn-accordion__body{background:var(--cn-surface);border:1px solid var(--cn-border);border-top:none;border-radius:0 0 10px 10px;padding:16px 18px}.cn-form-field{margin-bottom:12px}.cn-form-field:last-child{margin-bottom:0}.cn-form-field__label{display:block;font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.4px;margin-bottom:4px}.cn-form-field__req{color:#ff4848;margin-left:2px}.cn-form-field__input{width:100%;padding:7px 10px;font-size:var(--cn-text-base);font-family:var(--cn-font);border:1.5px solid var(--cn-border);border-radius:6px;color:var(--cn-heading);background:var(--cn-surface);transition:border-color .15s;outline:none}.cn-form-field__input:focus{border-color:var(--cn-primary)}.cn-form-field__input--error{border-color:#ff4848}.cn-form-field__textarea{resize:vertical;min-height:60px}.cn-form-field__select{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;padding-right:32px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a9199' d='M6 8L1 3h10z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}.cn-form-field__error{font-size:var(--cn-text-sm);color:#ff4848;margin-top:5px}.cn-form-field__helper{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-top:5px}.cn-form-readonly{margin-bottom:12px}.cn-form-readonly:last-child{margin-bottom:0}.cn-form-readonly__label{display:block;font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.4px;margin-bottom:4px}.cn-form-readonly__value{display:block;padding:7px 10px;font-size:var(--cn-text-base);font-family:var(--cn-font);border:1.5px solid var(--cn-border);border-radius:6px;color:var(--cn-heading);background:var(--cn-light-bg)}.cn-form-readonly__value--muted{color:var(--cn-muted)}.cn-form-readonly__link{color:var(--cn-primary);text-decoration:none}.cn-form-readonly__link:hover{color:var(--cn-primary-hover);text-decoration:underline}.cn-form-readonly>.cn-form-readonly__link{display:inline-block;margin-top:6px;font-size:var(--cn-text-sm)}.cn-color-picker__row{display:flex;align-items:center;gap:8px}.cn-color-picker__swatch{width:28px;height:28px;border-radius:6px;border:1.5px solid var(--cn-border);cursor:pointer;flex-shrink:0;padding:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.cn-color-picker__swatch::-webkit-color-swatch-wrapper{padding:0}.cn-color-picker__swatch::-webkit-color-swatch{border:none;border-radius:4px}.cn-data-table{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;overflow:hidden}.cn-data-table__table{width:100%;border-collapse:collapse}.cn-data-table__header{background:#f0f2f5}.cn-data-table__th{font-size:var(--cn-text-sm);font-weight:700;text-transform:uppercase;letter-spacing:.4px;color:var(--cn-muted);padding:10px 14px;text-align:left;border-bottom:1px solid var(--cn-border)}.cn-data-table__th--sortable{cursor:pointer;-webkit-user-select:none;user-select:none}.cn-data-table__th--sortable:hover{color:var(--cn-heading)}.cn-data-table__sort{margin-left:4px;font-size:var(--cn-text-xs);color:var(--cn-border)}.cn-data-table__sort--active{color:var(--cn-primary)}.cn-data-table__td{font-size:var(--cn-text-base);padding:10px 14px;border-bottom:1px solid var(--cn-border);color:var(--cn-text)}.cn-data-table__row--expandable{cursor:pointer}.cn-data-table__row--expandable:hover,.cn-data-table__row--expanded{background:#f9fafb}.cn-data-table__expanded{padding:12px 14px;background:#f0f2f5;font-size:var(--cn-text-sm)}.cn-data-table__empty{text-align:center;color:var(--cn-muted);font-style:italic;padding:32px 14px}.cn-data-table__pagination{display:flex;align-items:center;justify-content:center;gap:12px;padding:12px;border-top:1px solid var(--cn-border)}.cn-data-table__page-btn{width:28px;height:28px;border-radius:6px;border:1px solid var(--cn-border);background:var(--cn-surface);cursor:pointer;font-size:var(--cn-text-sm);color:var(--cn-heading);display:flex;align-items:center;justify-content:center}.cn-data-table__page-btn:hover:not(:disabled){border-color:var(--cn-primary);color:var(--cn-primary)}.cn-data-table__page-btn:disabled{opacity:.4;cursor:not-allowed}.cn-data-table__page-info{font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-date-range{display:flex;align-items:center;gap:12px}.cn-date-range__input{width:auto}.cn-date-range__separator{font-size:var(--cn-text-base);color:var(--cn-muted)}.cn-date-range__limit{font-size:var(--cn-text-sm);color:var(--cn-text);font-weight:600;background:#eef2ff;border:1px solid #c7d2fe;border-radius:999px;padding:3px 8px;line-height:1}.cn-progress-bar-wrap{margin-bottom:8px}.cn-progress-bar{height:8px;background:#f0f2f5;border-radius:4px;overflow:hidden}.cn-progress-bar__fill{height:100%;border-radius:4px;transition:width .3s}.cn-progress-bar__fill--primary{background:var(--cn-primary)}.cn-progress-bar__fill--warning{background:linear-gradient(90deg,var(--cn-primary),var(--cn-orange))}.cn-progress-bar__fill--danger{background:var(--cn-red)}.cn-progress-bar__label{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-top:4px}.cn-step-indicator{display:flex;align-items:center;margin-bottom:28px}.cn-step-indicator__item{display:flex;align-items:center;flex:1}.cn-step-indicator__circle{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:var(--cn-text-base);font-weight:700;flex-shrink:0;border:2px solid var(--cn-border);background:var(--cn-surface);color:var(--cn-muted);position:relative;z-index:1;transition:all .2s}.cn-step-indicator__circle--active{background:var(--cn-primary);border-color:var(--cn-primary);color:#fff;box-shadow:0 0 0 4px #20c19e26}.cn-step-indicator__circle--done{background:var(--cn-primary);border-color:var(--cn-primary);color:#fff}.cn-step-indicator__label{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);white-space:nowrap;margin-left:8px;text-transform:uppercase;letter-spacing:.4px}.cn-step-indicator__label--active{color:var(--cn-primary)}.cn-step-indicator__label--done{color:var(--cn-heading)}.cn-step-indicator__connector{flex:1;height:2px;background:var(--cn-border);margin:0 8px}.cn-step-indicator__connector--done{background:var(--cn-primary)}.cn-score-hero{display:flex;align-items:center;gap:16px;background:#fef2f2;border:1px solid #fca5a5;border-radius:10px;padding:16px 20px;margin-bottom:20px}.cn-score-hero__icon{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:56px;height:56px;color:#dc2626}.cn-score-hero__icon svg{width:100%;height:100%;display:block}.cn-score-hero__body{flex:1;min-width:0}.cn-score-hero__title{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:4px;white-space:normal;overflow-wrap:anywhere}.cn-score-hero__summary{font-size:var(--cn-text-lg);font-weight:700;color:#991b1b;margin-bottom:4px;white-space:normal;overflow-wrap:anywhere}.cn-score-hero__sub{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-top:6px;white-space:normal;overflow-wrap:anywhere}.cn-score-hero__actions{flex-shrink:0;margin-left:16px;align-self:center}.cn-score-hero__cta{display:inline-block;max-width:100%;font-family:var(--cn-font);font-size:var(--cn-text-md);font-weight:700;padding:9px 24px;border-radius:20px;cursor:pointer;border:none;background:linear-gradient(135deg,#f7b731,#f5a623);color:#1a1a1a;white-space:nowrap;transition:filter .2s}.cn-score-hero__cta:hover{filter:brightness(1.05)}.cn-alert{display:flex;gap:16px;padding:16px 20px;border-radius:10px;border:1px solid var(--cn-border);background:var(--cn-surface);align-items:center}.cn-alert--warning{border-color:#fcd34d;background:#fffbeb}.cn-alert--warning .cn-alert__icon{color:#d97706}.cn-alert--warning .cn-alert__title{color:#92400e}.cn-alert--warning .cn-alert__desc{color:#b45309}.cn-alert--crit{border-color:#fca5a5;background:#fef2f2}.cn-alert--crit .cn-alert__icon{color:#dc2626}.cn-alert--crit .cn-alert__title{color:#991b1b}.cn-alert--crit .cn-alert__desc{color:#b91c1c}.cn-alert--info{border-color:#99f0dd;background:#f0fdf9}.cn-alert--info .cn-alert__icon{color:var(--cn-primary)}.cn-alert--info .cn-alert__title{color:#065f46}.cn-alert--info .cn-alert__desc{color:#047857}.cn-alert__icon{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:28px;height:28px}.cn-alert__icon svg{width:100%;height:100%}.cn-alert__content{flex:1}.cn-alert__title{margin:0 0 4px;font-size:var(--cn-text-base);font-weight:700;line-height:1.3}.cn-alert__desc{margin:0;font-size:var(--cn-text-sm);line-height:1.5}.cn-alert__actions{flex-shrink:0;margin-left:16px;align-self:center}.cn-alert__dismiss{background:none;border:none;cursor:pointer;color:inherit;opacity:.5;padding:4px;flex-shrink:0}.cn-alert__dismiss:hover{opacity:1}.cn-alert__dismiss svg{display:block}.cn-vuln-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:24px}.cn-vuln-card{background:var(--cn-surface);border-radius:10px;padding:16px 18px;border:1px solid var(--cn-border);border-left:4px solid var(--cn-border)}.cn-vuln-card--ok{border-left-color:var(--cn-primary)}.cn-vuln-card--critical{border-left-color:var(--cn-red, #c0392b);background:#fff8f8}.cn-vuln-card--high{border-left-color:var(--cn-orange, #f39c12);background:#fffaf4}.cn-vuln-card--exposed{border-left-color:var(--cn-red, #c0392b);background:#fff8f8}.cn-vuln-card__top{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}.cn-vuln-card__label{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading)}.cn-vuln-card__value{font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.5}.cn-vuln-card__value b{color:var(--cn-heading)}.cn-vuln-card__sub{margin-top:4px;font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-vuln-card__risk{display:inline-flex;align-items:center;gap:4px;font-size:var(--cn-text-xs);font-weight:700;padding:2px 8px;border-radius:10px;margin-top:6px}.cn-vuln-card__risk--critical{color:var(--cn-red, #c0392b);background:var(--cn-red-bg, #fdecea)}.cn-vuln-card__risk--high{color:#9a3412;background:#fff1e6}.cn-vuln-cta{margin-bottom:24px}.cn-vuln-cta__btn{font-size:var(--cn-text-base);font-weight:600}.cn-layer{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:18px 20px;margin-bottom:14px}.cn-layer--locked{opacity:.85}.cn-layer__hdr{display:flex;align-items:center;gap:10px;margin-bottom:14px}.cn-layer__num{width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:var(--cn-text-sm);font-weight:900;color:#fff;flex-shrink:0}.cn-layer__num--green{background:var(--cn-primary)}.cn-layer__num--orange{background:var(--cn-orange, #d35400)}.cn-layer__num--gray{background:#b0b5ba}.cn-layer__title{font-size:var(--cn-text-md);font-weight:700;color:var(--cn-heading);flex:1}.cn-layer__badge{font-size:var(--cn-text-xs);font-weight:700;padding:2px 8px;border-radius:10px;text-transform:uppercase;letter-spacing:.3px;flex-shrink:0}.cn-layer__badge--enforcing{background:var(--cn-green-bg, #e8f5e9);color:var(--cn-green, #2e7d32)}.cn-layer__badge--warn{background:var(--cn-orange-bg, #fff3e0);color:var(--cn-orange, #d35400)}.cn-layer__badge--locked{background:var(--cn-light-bg, #f0f2f5);color:var(--cn-muted)}.cn-layer__badge--platforms{background:#6179e81a;color:var(--cn-info, #6179e8)}.cn-layer__badge--collecting{background:var(--cn-green-bg, #e8f5e9);color:var(--cn-green, #2e7d32)}.cn-layer__metrics{display:flex;gap:24px;margin-bottom:12px}.cn-layer__metric-val{font-size:var(--cn-text-lg);font-weight:700;color:var(--cn-heading);line-height:1.2}.cn-layer__metric-lbl{font-size:var(--cn-text-xs);color:var(--cn-muted);text-transform:uppercase;letter-spacing:.3px}.cn-layer__warn{font-size:var(--cn-text-sm);color:var(--cn-orange, #d35400);font-weight:600;margin-bottom:10px}.cn-layer__warn-muted{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-bottom:10px}.cn-layer__cta{margin-top:8px}.cn-layer__links{display:flex;gap:14px;margin-top:8px}.cn-layer__links a,.cn-layer__links button.cn-layer__links-btn{font-size:var(--cn-text-sm);color:var(--cn-primary);font-weight:600;text-decoration:none}.cn-layer__links a:hover,.cn-layer__links button.cn-layer__links-btn:hover{text-decoration:underline}.cn-layer__link-btn{background:none;border:none;padding:0;cursor:pointer;font-size:var(--cn-text-sm);color:var(--cn-primary);font-weight:600}.cn-layer__link-btn:hover{text-decoration:underline}.cn-blocking-bar-wrap{margin-bottom:10px}.cn-blocking-bar{display:flex;height:8px;border-radius:4px;overflow:hidden;margin-bottom:4px}.cn-blocking-bar__blocked{background:var(--cn-primary)}.cn-blocking-bar__unblocked{background:var(--cn-orange, #d35400)}.cn-blocking-bar__labels{display:flex;justify-content:space-between;font-size:var(--cn-text-xs)}.cn-blocking-bar__lbl-blocked{color:var(--cn-primary);font-weight:700}.cn-blocking-bar__lbl-unblocked{color:var(--cn-orange, #d35400);font-weight:700}.cn-platform-grid{display:flex;flex-direction:column;gap:6px}.cn-platform-item{display:flex;align-items:center;gap:8px;font-size:var(--cn-text-base);color:var(--cn-heading)}.cn-dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px;vertical-align:middle}.cn-dot--green{background:var(--cn-primary)}.cn-dot--gray{background:var(--cn-border)}.cn-dot--yellow{background:var(--cn-secondary, #ffc107)}.cn-lang-bars{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}.cn-lang-row{display:flex;align-items:center;gap:8px}.cn-lang-row__label{font-size:var(--cn-text-sm);color:var(--cn-muted);width:28px;flex-shrink:0;text-align:right}.cn-lang-row__track{flex:1;height:6px;background:var(--cn-light-bg, #f0f2f5);border-radius:3px;overflow:hidden}.cn-lang-row__fill{height:100%;border-radius:3px;background:var(--cn-primary)}.cn-lang-row__pct{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-heading);width:32px}.cn-dom-credentials{margin-top:12px;padding-top:12px;border-top:1px solid var(--cn-border);display:flex;flex-direction:column;gap:8px}.cn-dom-row{display:flex;justify-content:space-between;padding:5px 0;border-bottom:1px solid var(--cn-border);font-size:var(--cn-text-sm);align-items:baseline}.cn-dom-row:last-child{border-bottom:none}.cn-dom-row__k{color:var(--cn-muted)}.cn-dom-row__v{color:var(--cn-heading);font-weight:700;text-align:right}.cn-dom-row__v--mono{font-size:var(--cn-text-sm);font-family:monospace}.cn-pull-config{margin-top:14px;padding-top:14px;border-top:1px solid var(--cn-border)}.cn-pull-config__row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.cn-pull-config__timestamp{font-size:var(--cn-text-xs, .75rem);color:var(--cn-muted);white-space:nowrap}.cn-pull-config__desc{margin:6px 0 0;font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.45}.cn-pull-config__desc--error{color:var(--cn-red, #c0392b)}.cn-conn-hint{display:block;font-size:var(--cn-text-sm);margin:8px 0}.cn-conn-hint.cn-layer__link-btn{margin-bottom:10px;font-weight:600}.cn-conn-hint--returning{color:var(--cn-muted);margin-top:8px;margin-bottom:14px}.cn-conn-hint--returning a{color:var(--cn-primary);text-decoration:none}.cn-conn-hint--returning a:hover{text-decoration:underline}.cn-dom-link{display:block;margin-top:10px;padding-top:8px;border-top:1px solid var(--cn-border);font-size:var(--cn-text-sm);color:var(--cn-primary);font-weight:600;text-decoration:none}.cn-dom-link:hover{text-decoration:underline}.cn-connect-nudge{font-size:var(--cn-text-sm);color:var(--cn-muted);text-align:center;padding:12px 0 4px;line-height:1.5}.cn-connect-nudge strong{color:var(--cn-heading);display:block;margin-bottom:2px}.cn-benefit-list{list-style:none;display:flex;flex-direction:column;gap:8px;padding:0;margin:0}.cn-benefit-item{display:flex;align-items:flex-start;gap:8px;font-size:var(--cn-text-sm);color:var(--cn-text);line-height:1.4}.cn-benefit-icon{width:16px;height:16px;border-radius:50%;background:var(--cn-green-bg, #e8f5e9);color:var(--cn-green, #2e7d32);font-size:var(--cn-text-xs);font-weight:900;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px}.cn-connect-cta{margin-top:16px}.cn-connect-cta__caption{font-size:var(--cn-text-xs);color:var(--cn-muted);text-align:center;margin-top:8px}.cn-usage-bar-wrap{margin-bottom:8px}.cn-usage-bar{height:8px;background:var(--cn-light-bg, #f0f2f5);border-radius:4px;overflow:hidden}.cn-usage-bar__labels{display:flex;justify-content:space-between;font-size:var(--cn-text-sm);margin-bottom:4px}.cn-usage-bar__used{color:var(--cn-heading);font-weight:700}.cn-usage-bar__total{color:var(--cn-muted)}.cn-usage-bar__fill{height:100%;border-radius:4px;background:linear-gradient(90deg,var(--cn-primary),var(--cn-orange, #d35400))}.cn-unlimited-sessions{font-size:var(--cn-text-md);font-weight:700;color:var(--cn-heading);margin-bottom:4px}.cn-unlimited-note{font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-pro-gate-placeholder{min-height:200px}.cn-placeholder-charts{min-height:180px;background:var(--cn-light-bg, #f0f2f5);border-radius:8px}@media(max-width:960px){.cn-page-layout{flex-direction:column}.cn-page-layout .cn-sidebar{width:100%;position:static}.cn-vuln-grid{grid-template-columns:1fr}.cn-score-hero{flex-direction:column;text-align:center}}.cn-dev-switcher{position:fixed;top:40px;right:16px;z-index:99999;background:#1a1a2e;color:#fff;border-radius:8px;padding:10px 12px;min-width:148px;box-shadow:0 4px 16px #0006;font-family:Lato,sans-serif;font-size:var(--cn-text-sm)}.cn-dev-switcher__header{display:flex;align-items:center;gap:5px;margin-bottom:8px}.cn-dev-switcher__icon{font-size:var(--cn-text-sm)}.cn-dev-switcher__title{font-size:var(--cn-text-xs);font-weight:700;letter-spacing:.08em;color:#20c19e;text-transform:uppercase}.cn-dev-switcher__label{font-size:var(--cn-text-xs);color:#8a9199;text-transform:uppercase;letter-spacing:.06em;margin-bottom:5px}.cn-dev-switcher__buttons{display:flex;gap:4px;margin-bottom:2px}.cn-dev-switcher__btn{flex:1;padding:4px 0;border:1px solid #3a3a5c;border-radius:4px;background:#2a2a48;color:#c0c0d0;font-size:var(--cn-text-sm);font-weight:600;cursor:pointer;transition:background .15s,border-color .15s,color .15s}.cn-dev-switcher__btn:hover{background:#3a3a5c;color:#fff}.cn-dev-switcher__btn--active{background:#20c19e;border-color:#20c19e;color:#fff}.cn-dev-switcher__usage{margin-top:8px;border-top:1px solid #2a2a48;padding-top:7px}.cn-dev-switcher__usage-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}.cn-dev-switcher__usage-label{font-size:var(--cn-text-xs);color:#8a9199;text-transform:uppercase;letter-spacing:.06em}.cn-dev-switcher__usage-val{font-size:var(--cn-text-sm);font-weight:700;color:#20c19e}.cn-dev-switcher__slider{width:100%;accent-color:#20c19e;cursor:pointer}.cn-banner-design__footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:16px;padding-top:12px;border-top:1px solid var(--cn-border, #e2e5ea)}.cn-banner-design__status{font-size:var(--cn-text-base)}.cn-banner-design__status--saved{color:var(--cn-green)}.cn-banner-design__status--error{color:var(--cn-red)}.cn-auth-form__error{margin-bottom:12px;padding:10px 14px;background:var(--cn-red-bg, #fdecea);color:var(--cn-red, #e74c3c);border-radius:6px;font-size:var(--cn-text-base)}.cn-consent-log-table__controls{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:12px}.cn-consent-log-table__count{font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-card-grid{display:grid;gap:14px;margin-top:24px}.cn-card-grid--3{grid-template-columns:repeat(3,1fr)}.cn-card-grid--auto{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}@media(max-width:960px){.cn-card-grid--3{grid-template-columns:1fr}}.cn-card{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:16px 18px;display:flex;flex-direction:column}.cn-card--crit{background:var(--cn-crit-card-bg);border-color:var(--cn-crit-border)}.cn-card--warn{background:var(--cn-warn-card-bg);border-color:var(--cn-warn-border)}.cn-card__top{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:8px}.cn-card__icon svg{display:block}.cn-card__dot{width:9px;height:9px;border-radius:50%;margin-top:2px;flex-shrink:0}.cn-card__dot--ok{background:var(--cn-ok-dot)}.cn-card__dot--warn{background:var(--cn-warn-dot)}.cn-card__dot--crit{background:var(--cn-crit-dot)}.cn-card__dot--off{background:var(--cn-off-dot)}.cn-card__main{font-size:var(--cn-text-xl);font-weight:800;line-height:1.15;margin-bottom:2px}.cn-card__main--ok{color:var(--cn-ok-val)}.cn-card__main--warn{color:var(--cn-warn-val)}.cn-card__main--crit{color:var(--cn-crit-val)}.cn-card__main--off{color:var(--cn-off-val);font-weight:500;font-size:var(--cn-text-lg)}.cn-card__sub{font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.4;margin-bottom:10px}.cn-card__sub--warn{color:var(--cn-warn-val)}.cn-card__pills{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:10px}.cn-card__pill{font-size:var(--cn-text-sm);font-weight:600;padding:2px 8px;border-radius:10px}.cn-card__pill--ok{background:var(--cn-ok-pill-bg);color:var(--cn-ok-pill-txt)}.cn-card__pill--warn{background:var(--cn-warn-pill-bg);color:var(--cn-warn-pill-txt)}.cn-card__pill--crit{background:var(--cn-crit-pill-bg);color:var(--cn-crit-pill-txt)}.cn-card__pill--off{background:var(--cn-off-pill-bg);color:var(--cn-off-pill-txt)}.cn-card__foot{margin-top:auto;padding-top:10px;border-top:1px solid var(--cn-border);min-height:30px;display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center}.cn-card__foot-btn{background:none;border:none;font-size:var(--cn-text-sm);font-weight:600;color:var(--cn-primary);cursor:pointer;padding:0}.cn-card__foot-btn:hover{text-decoration:underline}.cn-card__foot a,.cn-card__foot button{font-size:var(--cn-text-sm);font-weight:600;color:var(--cn-link-neutral);text-decoration:underline;text-decoration-color:var(--cn-border);text-underline-offset:2px;background:none;border:none;padding:0;cursor:pointer;font-family:var(--cn-font);display:inline-block}.cn-card__foot a:hover,.cn-card__foot button:hover{color:var(--cn-heading);text-decoration-color:var(--cn-muted)}.cn-card__help{flex-basis:100%;font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-card__help summary{cursor:pointer;font-weight:600;color:var(--cn-link-neutral)}.cn-card__help p{margin:6px 0 0;line-height:1.4}.cn-card__bar-wrap{height:4px;background:var(--cn-light-bg);border-radius:2px;margin:8px 0 6px}.cn-card__bar-fill{height:4px;border-radius:2px}.cn-card__bar-fill--ok{background:var(--cn-ok-dot)}.cn-card__bar-fill--warn{background:var(--cn-warn-dot)}.cn-card__bar-fill--crit{background:var(--cn-crit-dot)}.cn-card__bar-fill--off{background:var(--cn-off-icon)}.cn-card__row{display:flex;justify-content:space-between;padding:4px 0;border-bottom:1px solid var(--cn-border);font-size:var(--cn-text-sm);align-items:baseline}.cn-card__row--last{border-bottom:none}.cn-card__row-k{color:var(--cn-muted);flex-shrink:0}.cn-card__row-v{color:var(--cn-heading);font-weight:700;text-align:right}.cn-card__row-v--muted{color:var(--cn-muted);font-weight:400}.cn-portal-bridge-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:100000;padding:20px}.cn-portal-bridge{background:var(--cn-surface);border-radius:14px;width:100%;max-width:440px;box-shadow:0 20px 60px #0000002e;overflow:hidden;font-family:var(--cn-font)}.cn-portal-bridge__header{background:var(--cn-ok-icon);padding:18px 22px;display:flex;align-items:flex-start;gap:12px}.cn-portal-bridge__header-title{color:#fff;font-size:var(--cn-text-md);font-weight:700;line-height:1.3}.cn-portal-bridge__header-sub{color:#ffffffb3;font-size:var(--cn-text-sm);margin-top:2px}.cn-portal-bridge__body{padding:20px 22px}.cn-portal-bridge__summary{font-size:var(--cn-text-base);color:var(--cn-text);line-height:1.5;margin-bottom:14px}.cn-portal-bridge__context{background:var(--cn-light-bg);border-radius:8px;padding:10px 12px;display:flex;align-items:flex-start;gap:10px;margin-bottom:16px}.cn-portal-bridge__context-dot{width:8px;height:8px;border-radius:50%;background:var(--cn-ok-dot);margin-top:3px;flex-shrink:0}.cn-portal-bridge__context-text{font-size:var(--cn-text-sm);color:var(--cn-heading);line-height:1.5}.cn-portal-bridge__steps{display:flex;flex-direction:column;gap:12px;margin-bottom:18px}.cn-portal-bridge__step{display:flex;gap:12px;align-items:flex-start}.cn-portal-bridge__step-num{width:22px;height:22px;border-radius:50%;background:var(--cn-ok-pill-bg);border:1.5px solid var(--cn-ok-icon);color:var(--cn-ok-icon);font-size:var(--cn-text-sm);font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px}.cn-portal-bridge__step-title{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading);margin-bottom:2px}.cn-portal-bridge__step-desc{font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.4}.cn-portal-bridge__error{background:var(--cn-red-bg);color:var(--cn-red);border-radius:6px;padding:8px 12px;font-size:var(--cn-text-sm);margin-bottom:12px}.cn-portal-bridge__actions{display:flex;flex-direction:column;gap:8px}.cn-portal-bridge__btn{display:block;width:100%;padding:11px 16px;border-radius:8px;font-size:var(--cn-text-base);font-weight:600;cursor:pointer;text-align:center;text-decoration:none;font-family:var(--cn-font);border:none;line-height:1}.cn-portal-bridge__btn--primary{background:var(--cn-ok-icon);color:#fff}.cn-portal-bridge__btn--primary:hover{background:#15803d}.cn-portal-bridge__btn--secondary{background:none;border:1px solid var(--cn-border);color:var(--cn-heading)}.cn-portal-bridge__btn--secondary:hover{background:var(--cn-light-bg)}.cn-portal-bridge__btn--secondary:disabled{opacity:.6;cursor:default}.cn-portal-bridge__dismiss{text-align:center;padding:12px 22px;border-top:1px solid var(--cn-light-bg)}.cn-portal-bridge__dismiss-btn{background:none;border:none;font-size:var(--cn-text-sm);color:var(--cn-muted);cursor:pointer;font-family:var(--cn-font)}.cn-portal-bridge__dismiss-btn:hover{color:var(--cn-heading)}.cn-error-boundary{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:64px 24px;text-align:center}.cn-error-boundary__message{font-size:15px;color:var(--cn-muted, #6c7781);margin-bottom:16px} -
cookie-notice/tags/3.1.16/assets/react-admin/cn-admin-react.js
r3734159 r3744556 1 (function(){"use strict";var h1,m1,g1;var Yr={exports:{}},vo={},qr={exports:{}}, we={};/**1 (function(){"use strict";var h1,m1,g1;var Yr={exports:{}},vo={},qr={exports:{}},je={};/** 2 2 * @license React 3 3 * react.production.min.js … … 7 7 * This source code is licensed under the MIT license found in the 8 8 * LICENSE file in the root directory of this source tree. 9 */var Ac;function u2(){if(Ac)return we;Ac=1;var i=Symbol.for("react.element"),c=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),m=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),_=Symbol.iterator;function b(S){return S===null||typeof S!="object"?null:(S=_&&S[_]||S["@@iterator"],typeof S=="function"?S:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function P(S,$,ie){this.props=S,this.context=$,this.refs=D,this.updater=ie||A}P.prototype.isReactComponent={},P.prototype.setState=function(S,$){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,$,"setState")},P.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function E(){}E.prototype=P.prototype;function I(S,$,ie){this.props=S,this.context=$,this.refs=D,this.updater=ie||A}var R=I.prototype=new E;R.constructor=I,C(R,P.prototype),R.isPureReactComponent=!0;var O=Array.isArray,te=Object.prototype.hasOwnProperty,J={current:null},B={key:!0,ref:!0,__self:!0,__source:!0};function X(S,$,ie){var ue,ge={},xe=null,F=null;if($!=null)for(ue in $.ref!==void 0&&(F=$.ref),$.key!==void 0&&(xe=""+$.key),$)te.call($,ue)&&!B.hasOwnProperty(ue)&&(ge[ue]=$[ue]);var H=arguments.length-2;if(H===1)ge.children=ie;else if(1<H){for(var de=Array(H),Ve=0;Ve<H;Ve++)de[Ve]=arguments[Ve+2];ge.children=de}if(S&&S.defaultProps)for(ue in H=S.defaultProps,H)ge[ue]===void 0&&(ge[ue]=H[ue]);return{$$typeof:i,type:S,key:xe,ref:F,props:ge,_owner:J.current}}function q(S,$){return{$$typeof:i,type:S.type,key:$,ref:S.ref,props:S.props,_owner:S._owner}}function W(S){return typeof S=="object"&&S!==null&&S.$$typeof===i}function ne(S){var $={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(ie){return $[ie]})}var le=/\/+/g;function he(S,$){return typeof S=="object"&&S!==null&&S.key!=null?ne(""+S.key):$.toString(36)}function M(S,$,ie,ue,ge){var xe=typeof S;(xe==="undefined"||xe==="boolean")&&(S=null);var F=!1;if(S===null)F=!0;else switch(xe){case"string":case"number":F=!0;break;case"object":switch(S.$$typeof){case i:case c:F=!0}}if(F)return F=S,ge=ge(F),S=ue===""?"."+he(F,0):ue,O(ge)?(ie="",S!=null&&(ie=S.replace(le,"$&/")+"/"),M(ge,$,ie,"",function(Ve){return Ve})):ge!=null&&(W(ge)&&(ge=q(ge,ie+(!ge.key||F&&F.key===ge.key?"":(""+ge.key).replace(le,"$&/")+"/")+S)),$.push(ge)),1;if(F=0,ue=ue===""?".":ue+":",O(S))for(var H=0;H<S.length;H++){xe=S[H];var de=ue+he(xe,H);F+=M(xe,$,ie,de,ge)}else if(de=b(S),typeof de=="function")for(S=de.call(S),H=0;!(xe=S.next()).done;)xe=xe.value,de=ue+he(xe,H++),F+=M(xe,$,ie,de,ge);else if(xe==="object")throw $=String(S),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.");return F}function me(S,$,ie){if(S==null)return S;var ue=[],ge=0;return M(S,ue,"","",function(xe){return $.call(ie,xe,ge++)}),ue}function _e(S){if(S._status===-1){var $=S._result;$=$(),$.then(function(ie){(S._status===0||S._status===-1)&&(S._status=1,S._result=ie)},function(ie){(S._status===0||S._status===-1)&&(S._status=2,S._result=ie)}),S._status===-1&&(S._status=0,S._result=$)}if(S._status===1)return S._result.default;throw S._result}var ke={current:null},U={transition:null},ee={ReactCurrentDispatcher:ke,ReactCurrentBatchConfig:U,ReactCurrentOwner:J};function Q(){throw Error("act(...) is not supported in production builds of React.")}return we.Children={map:me,forEach:function(S,$,ie){me(S,function(){$.apply(this,arguments)},ie)},count:function(S){var $=0;return me(S,function(){$++}),$},toArray:function(S){return me(S,function($){return $})||[]},only:function(S){if(!W(S))throw Error("React.Children.only expected to receive a single React element child.");return S}},we.Component=P,we.Fragment=u,we.Profiler=p,we.PureComponent=I,we.StrictMode=d,we.Suspense=v,we.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ee,we.act=Q,we.cloneElement=function(S,$,ie){if(S==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+S+".");var ue=C({},S.props),ge=S.key,xe=S.ref,F=S._owner;if($!=null){if($.ref!==void 0&&(xe=$.ref,F=J.current),$.key!==void 0&&(ge=""+$.key),S.type&&S.type.defaultProps)var H=S.type.defaultProps;for(de in $)te.call($,de)&&!B.hasOwnProperty(de)&&(ue[de]=$[de]===void 0&&H!==void 0?H[de]:$[de])}var de=arguments.length-2;if(de===1)ue.children=ie;else if(1<de){H=Array(de);for(var Ve=0;Ve<de;Ve++)H[Ve]=arguments[Ve+2];ue.children=H}return{$$typeof:i,type:S.type,key:ge,ref:xe,props:ue,_owner:F}},we.createContext=function(S){return S={$$typeof:m,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},S.Provider={$$typeof:h,_context:S},S.Consumer=S},we.createElement=X,we.createFactory=function(S){var $=X.bind(null,S);return $.type=S,$},we.createRef=function(){return{current:null}},we.forwardRef=function(S){return{$$typeof:x,render:S}},we.isValidElement=W,we.lazy=function(S){return{$$typeof:k,_payload:{_status:-1,_result:S},_init:_e}},we.memo=function(S,$){return{$$typeof:g,type:S,compare:$===void 0?null:$}},we.startTransition=function(S){var $=U.transition;U.transition={};try{S()}finally{U.transition=$}},we.unstable_act=Q,we.useCallback=function(S,$){return ke.current.useCallback(S,$)},we.useContext=function(S){return ke.current.useContext(S)},we.useDebugValue=function(){},we.useDeferredValue=function(S){return ke.current.useDeferredValue(S)},we.useEffect=function(S,$){return ke.current.useEffect(S,$)},we.useId=function(){return ke.current.useId()},we.useImperativeHandle=function(S,$,ie){return ke.current.useImperativeHandle(S,$,ie)},we.useInsertionEffect=function(S,$){return ke.current.useInsertionEffect(S,$)},we.useLayoutEffect=function(S,$){return ke.current.useLayoutEffect(S,$)},we.useMemo=function(S,$){return ke.current.useMemo(S,$)},we.useReducer=function(S,$,ie){return ke.current.useReducer(S,$,ie)},we.useRef=function(S){return ke.current.useRef(S)},we.useState=function(S){return ke.current.useState(S)},we.useSyncExternalStore=function(S,$,ie){return ke.current.useSyncExternalStore(S,$,ie)},we.useTransition=function(){return ke.current.useTransition()},we.version="18.3.1",we}var Rc;function Qr(){return Rc||(Rc=1,qr.exports=u2()),qr.exports}/**9 */var Ac;function u2(){if(Ac)return je;Ac=1;var i=Symbol.for("react.element"),c=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),m=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),_=Symbol.iterator;function b(S){return S===null||typeof S!="object"?null:(S=_&&S[_]||S["@@iterator"],typeof S=="function"?S:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function P(S,$,re){this.props=S,this.context=$,this.refs=D,this.updater=re||A}P.prototype.isReactComponent={},P.prototype.setState=function(S,$){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,$,"setState")},P.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function E(){}E.prototype=P.prototype;function I(S,$,re){this.props=S,this.context=$,this.refs=D,this.updater=re||A}var R=I.prototype=new E;R.constructor=I,C(R,P.prototype),R.isPureReactComponent=!0;var O=Array.isArray,oe=Object.prototype.hasOwnProperty,J={current:null},B={key:!0,ref:!0,__self:!0,__source:!0};function X(S,$,re){var pe,ve={},xe=null,M=null;if($!=null)for(pe in $.ref!==void 0&&(M=$.ref),$.key!==void 0&&(xe=""+$.key),$)oe.call($,pe)&&!B.hasOwnProperty(pe)&&(ve[pe]=$[pe]);var H=arguments.length-2;if(H===1)ve.children=re;else if(1<H){for(var fe=Array(H),Ve=0;Ve<H;Ve++)fe[Ve]=arguments[Ve+2];ve.children=fe}if(S&&S.defaultProps)for(pe in H=S.defaultProps,H)ve[pe]===void 0&&(ve[pe]=H[pe]);return{$$typeof:i,type:S,key:xe,ref:M,props:ve,_owner:J.current}}function q(S,$){return{$$typeof:i,type:S.type,key:$,ref:S.ref,props:S.props,_owner:S._owner}}function W(S){return typeof S=="object"&&S!==null&&S.$$typeof===i}function te(S){var $={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(re){return $[re]})}var ue=/\/+/g;function ge(S,$){return typeof S=="object"&&S!==null&&S.key!=null?te(""+S.key):$.toString(36)}function ne(S,$,re,pe,ve){var xe=typeof S;(xe==="undefined"||xe==="boolean")&&(S=null);var M=!1;if(S===null)M=!0;else switch(xe){case"string":case"number":M=!0;break;case"object":switch(S.$$typeof){case i:case c:M=!0}}if(M)return M=S,ve=ve(M),S=pe===""?"."+ge(M,0):pe,O(ve)?(re="",S!=null&&(re=S.replace(ue,"$&/")+"/"),ne(ve,$,re,"",function(Ve){return Ve})):ve!=null&&(W(ve)&&(ve=q(ve,re+(!ve.key||M&&M.key===ve.key?"":(""+ve.key).replace(ue,"$&/")+"/")+S)),$.push(ve)),1;if(M=0,pe=pe===""?".":pe+":",O(S))for(var H=0;H<S.length;H++){xe=S[H];var fe=pe+ge(xe,H);M+=ne(xe,$,re,fe,ve)}else if(fe=b(S),typeof fe=="function")for(S=fe.call(S),H=0;!(xe=S.next()).done;)xe=xe.value,fe=pe+ge(xe,H++),M+=ne(xe,$,re,fe,ve);else if(xe==="object")throw $=String(S),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.");return M}function de(S,$,re){if(S==null)return S;var pe=[],ve=0;return ne(S,pe,"","",function(xe){return $.call(re,xe,ve++)}),pe}function F(S){if(S._status===-1){var $=S._result;$=$(),$.then(function(re){(S._status===0||S._status===-1)&&(S._status=1,S._result=re)},function(re){(S._status===0||S._status===-1)&&(S._status=2,S._result=re)}),S._status===-1&&(S._status=0,S._result=$)}if(S._status===1)return S._result.default;throw S._result}var ke={current:null},U={transition:null},ee={ReactCurrentDispatcher:ke,ReactCurrentBatchConfig:U,ReactCurrentOwner:J};function Q(){throw Error("act(...) is not supported in production builds of React.")}return je.Children={map:de,forEach:function(S,$,re){de(S,function(){$.apply(this,arguments)},re)},count:function(S){var $=0;return de(S,function(){$++}),$},toArray:function(S){return de(S,function($){return $})||[]},only:function(S){if(!W(S))throw Error("React.Children.only expected to receive a single React element child.");return S}},je.Component=P,je.Fragment=u,je.Profiler=p,je.PureComponent=I,je.StrictMode=d,je.Suspense=v,je.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ee,je.act=Q,je.cloneElement=function(S,$,re){if(S==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+S+".");var pe=C({},S.props),ve=S.key,xe=S.ref,M=S._owner;if($!=null){if($.ref!==void 0&&(xe=$.ref,M=J.current),$.key!==void 0&&(ve=""+$.key),S.type&&S.type.defaultProps)var H=S.type.defaultProps;for(fe in $)oe.call($,fe)&&!B.hasOwnProperty(fe)&&(pe[fe]=$[fe]===void 0&&H!==void 0?H[fe]:$[fe])}var fe=arguments.length-2;if(fe===1)pe.children=re;else if(1<fe){H=Array(fe);for(var Ve=0;Ve<fe;Ve++)H[Ve]=arguments[Ve+2];pe.children=H}return{$$typeof:i,type:S.type,key:ve,ref:xe,props:pe,_owner:M}},je.createContext=function(S){return S={$$typeof:m,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},S.Provider={$$typeof:h,_context:S},S.Consumer=S},je.createElement=X,je.createFactory=function(S){var $=X.bind(null,S);return $.type=S,$},je.createRef=function(){return{current:null}},je.forwardRef=function(S){return{$$typeof:x,render:S}},je.isValidElement=W,je.lazy=function(S){return{$$typeof:k,_payload:{_status:-1,_result:S},_init:F}},je.memo=function(S,$){return{$$typeof:g,type:S,compare:$===void 0?null:$}},je.startTransition=function(S){var $=U.transition;U.transition={};try{S()}finally{U.transition=$}},je.unstable_act=Q,je.useCallback=function(S,$){return ke.current.useCallback(S,$)},je.useContext=function(S){return ke.current.useContext(S)},je.useDebugValue=function(){},je.useDeferredValue=function(S){return ke.current.useDeferredValue(S)},je.useEffect=function(S,$){return ke.current.useEffect(S,$)},je.useId=function(){return ke.current.useId()},je.useImperativeHandle=function(S,$,re){return ke.current.useImperativeHandle(S,$,re)},je.useInsertionEffect=function(S,$){return ke.current.useInsertionEffect(S,$)},je.useLayoutEffect=function(S,$){return ke.current.useLayoutEffect(S,$)},je.useMemo=function(S,$){return ke.current.useMemo(S,$)},je.useReducer=function(S,$,re){return ke.current.useReducer(S,$,re)},je.useRef=function(S){return ke.current.useRef(S)},je.useState=function(S){return ke.current.useState(S)},je.useSyncExternalStore=function(S,$,re){return ke.current.useSyncExternalStore(S,$,re)},je.useTransition=function(){return ke.current.useTransition()},je.version="18.3.1",je}var Rc;function Qr(){return Rc||(Rc=1,qr.exports=u2()),qr.exports}/** 10 10 * @license React 11 11 * react-jsx-runtime.production.min.js … … 15 15 * This source code is licensed under the MIT license found in the 16 16 * LICENSE file in the root directory of this source tree. 17 */var zc;function d2(){if(zc)return vo;zc=1;var i=Qr(),c=Symbol.for("react.element"),u=Symbol.for("react.fragment"),d=Object.prototype.hasOwnProperty,p=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h={key:!0,ref:!0,__self:!0,__source:!0};function m(x,v,g){var k,_={},b=null,A=null;g!==void 0&&(b=""+g),v.key!==void 0&&(b=""+v.key),v.ref!==void 0&&(A=v.ref);for(k in v)d.call(v,k)&&!h.hasOwnProperty(k)&&(_[k]=v[k]);if(x&&x.defaultProps)for(k in v=x.defaultProps,v)_[k]===void 0&&(_[k]=v[k]);return{$$typeof:c,type:x,key:b,ref:A,props:_,_owner:p.current}}return vo.Fragment=u,vo.jsx=m,vo.jsxs=m,vo}var Mc;function p2(){return Mc||(Mc=1,Yr.exports=d2()),Yr.exports}var t=p2(),_i={},Zr={exports:{}}, ln={},Xr={exports:{}},Jr={};/**17 */var zc;function d2(){if(zc)return vo;zc=1;var i=Qr(),c=Symbol.for("react.element"),u=Symbol.for("react.fragment"),d=Object.prototype.hasOwnProperty,p=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h={key:!0,ref:!0,__self:!0,__source:!0};function m(x,v,g){var k,_={},b=null,A=null;g!==void 0&&(b=""+g),v.key!==void 0&&(b=""+v.key),v.ref!==void 0&&(A=v.ref);for(k in v)d.call(v,k)&&!h.hasOwnProperty(k)&&(_[k]=v[k]);if(x&&x.defaultProps)for(k in v=x.defaultProps,v)_[k]===void 0&&(_[k]=v[k]);return{$$typeof:c,type:x,key:b,ref:A,props:_,_owner:p.current}}return vo.Fragment=u,vo.jsx=m,vo.jsxs=m,vo}var Mc;function p2(){return Mc||(Mc=1,Yr.exports=d2()),Yr.exports}var t=p2(),_i={},Zr={exports:{}},un={},Xr={exports:{}},Jr={};/** 18 18 * @license React 19 19 * scheduler.production.min.js … … 23 23 * This source code is licensed under the MIT license found in the 24 24 * LICENSE file in the root directory of this source tree. 25 */var Fc;function f2(){return Fc||(Fc=1,(function(i){function c(U,ee){var Q=U.length;U.push(ee);e:for(;0<Q;){var S=Q-1>>>1,$=U[S];if(0<p($,ee))U[S]=ee,U[Q]=$,Q=S;else break e}}function u(U){return U.length===0?null:U[0]}function d(U){if(U.length===0)return null;var ee=U[0],Q=U.pop();if(Q!==ee){U[0]=Q;e:for(var S=0,$=U.length, ie=$>>>1;S<ie;){var ue=2*(S+1)-1,ge=U[ue],xe=ue+1,F=U[xe];if(0>p(ge,Q))xe<$&&0>p(F,ge)?(U[S]=F,U[xe]=Q,S=xe):(U[S]=ge,U[ue]=Q,S=ue);else if(xe<$&&0>p(F,Q))U[S]=F,U[xe]=Q,S=xe;else break e}}return ee}function p(U,ee){var Q=U.sortIndex-ee.sortIndex;return Q!==0?Q:U.id-ee.id}if(typeof performance=="object"&&typeof performance.now=="function"){var h=performance;i.unstable_now=function(){return h.now()}}else{var m=Date,x=m.now();i.unstable_now=function(){return m.now()-x}}var v=[],g=[],k=1,_=null,b=3,A=!1,C=!1,D=!1,P=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function R(U){for(var ee=u(g);ee!==null;){if(ee.callback===null)d(g);else if(ee.startTime<=U)d(g),ee.sortIndex=ee.expirationTime,c(v,ee);else break;ee=u(g)}}function O(U){if(D=!1,R(U),!C)if(u(v)!==null)C=!0,_e(te);else{var ee=u(g);ee!==null&&ke(O,ee.startTime-U)}}function te(U,ee){C=!1,D&&(D=!1,E(X),X=-1),A=!0;var Q=b;try{for(R(ee),_=u(v);_!==null&&(!(_.expirationTime>ee)||U&&!ne());){var S=_.callback;if(typeof S=="function"){_.callback=null,b=_.priorityLevel;var $=S(_.expirationTime<=ee);ee=i.unstable_now(),typeof $=="function"?_.callback=$:_===u(v)&&d(v),R(ee)}else d(v);_=u(v)}if(_!==null)var ie=!0;else{var ue=u(g);ue!==null&&ke(O,ue.startTime-ee),ie=!1}return ie}finally{_=null,b=Q,A=!1}}var J=!1,B=null,X=-1,q=5,W=-1;function ne(){return!(i.unstable_now()-W<q)}function le(){if(B!==null){var U=i.unstable_now();W=U;var ee=!0;try{ee=B(!0,U)}finally{ee?he():(J=!1,B=null)}}else J=!1}var he;if(typeof I=="function")he=function(){I(le)};else if(typeof MessageChannel<"u"){var M=new MessageChannel,me=M.port2;M.port1.onmessage=le,he=function(){me.postMessage(null)}}else he=function(){P(le,0)};function _e(U){B=U,J||(J=!0,he())}function ke(U,ee){X=P(function(){U(i.unstable_now())},ee)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(U){U.callback=null},i.unstable_continueExecution=function(){C||A||(C=!0,_e(te))},i.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<U?Math.floor(1e3/U):5},i.unstable_getCurrentPriorityLevel=function(){return b},i.unstable_getFirstCallbackNode=function(){return u(v)},i.unstable_next=function(U){switch(b){case 1:case 2:case 3:var ee=3;break;default:ee=b}var Q=b;b=ee;try{return U()}finally{b=Q}},i.unstable_pauseExecution=function(){},i.unstable_requestPaint=function(){},i.unstable_runWithPriority=function(U,ee){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var Q=b;b=U;try{return ee()}finally{b=Q}},i.unstable_scheduleCallback=function(U,ee,Q){var S=i.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?S+Q:S):Q=S,U){case 1:var $=-1;break;case 2:$=250;break;case 5:$=1073741823;break;case 4:$=1e4;break;default:$=5e3}return $=Q+$,U={id:k++,callback:ee,priorityLevel:U,startTime:Q,expirationTime:$,sortIndex:-1},Q>S?(U.sortIndex=Q,c(g,U),u(v)===null&&U===u(g)&&(D?(E(X),X=-1):D=!0,ke(O,Q-S))):(U.sortIndex=$,c(v,U),C||A||(C=!0,_e(te))),U},i.unstable_shouldYield=ne,i.unstable_wrapCallback=function(U){var ee=b;return function(){var Q=b;b=ee;try{return U.apply(this,arguments)}finally{b=Q}}}})(Jr)),Jr}var Ic;function h2(){return Ic||(Ic=1,Xr.exports=f2()),Xr.exports}/**25 */var Fc;function f2(){return Fc||(Fc=1,(function(i){function c(U,ee){var Q=U.length;U.push(ee);e:for(;0<Q;){var S=Q-1>>>1,$=U[S];if(0<p($,ee))U[S]=ee,U[Q]=$,Q=S;else break e}}function u(U){return U.length===0?null:U[0]}function d(U){if(U.length===0)return null;var ee=U[0],Q=U.pop();if(Q!==ee){U[0]=Q;e:for(var S=0,$=U.length,re=$>>>1;S<re;){var pe=2*(S+1)-1,ve=U[pe],xe=pe+1,M=U[xe];if(0>p(ve,Q))xe<$&&0>p(M,ve)?(U[S]=M,U[xe]=Q,S=xe):(U[S]=ve,U[pe]=Q,S=pe);else if(xe<$&&0>p(M,Q))U[S]=M,U[xe]=Q,S=xe;else break e}}return ee}function p(U,ee){var Q=U.sortIndex-ee.sortIndex;return Q!==0?Q:U.id-ee.id}if(typeof performance=="object"&&typeof performance.now=="function"){var h=performance;i.unstable_now=function(){return h.now()}}else{var m=Date,x=m.now();i.unstable_now=function(){return m.now()-x}}var v=[],g=[],k=1,_=null,b=3,A=!1,C=!1,D=!1,P=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function R(U){for(var ee=u(g);ee!==null;){if(ee.callback===null)d(g);else if(ee.startTime<=U)d(g),ee.sortIndex=ee.expirationTime,c(v,ee);else break;ee=u(g)}}function O(U){if(D=!1,R(U),!C)if(u(v)!==null)C=!0,F(oe);else{var ee=u(g);ee!==null&&ke(O,ee.startTime-U)}}function oe(U,ee){C=!1,D&&(D=!1,E(X),X=-1),A=!0;var Q=b;try{for(R(ee),_=u(v);_!==null&&(!(_.expirationTime>ee)||U&&!te());){var S=_.callback;if(typeof S=="function"){_.callback=null,b=_.priorityLevel;var $=S(_.expirationTime<=ee);ee=i.unstable_now(),typeof $=="function"?_.callback=$:_===u(v)&&d(v),R(ee)}else d(v);_=u(v)}if(_!==null)var re=!0;else{var pe=u(g);pe!==null&&ke(O,pe.startTime-ee),re=!1}return re}finally{_=null,b=Q,A=!1}}var J=!1,B=null,X=-1,q=5,W=-1;function te(){return!(i.unstable_now()-W<q)}function ue(){if(B!==null){var U=i.unstable_now();W=U;var ee=!0;try{ee=B(!0,U)}finally{ee?ge():(J=!1,B=null)}}else J=!1}var ge;if(typeof I=="function")ge=function(){I(ue)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,de=ne.port2;ne.port1.onmessage=ue,ge=function(){de.postMessage(null)}}else ge=function(){P(ue,0)};function F(U){B=U,J||(J=!0,ge())}function ke(U,ee){X=P(function(){U(i.unstable_now())},ee)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(U){U.callback=null},i.unstable_continueExecution=function(){C||A||(C=!0,F(oe))},i.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<U?Math.floor(1e3/U):5},i.unstable_getCurrentPriorityLevel=function(){return b},i.unstable_getFirstCallbackNode=function(){return u(v)},i.unstable_next=function(U){switch(b){case 1:case 2:case 3:var ee=3;break;default:ee=b}var Q=b;b=ee;try{return U()}finally{b=Q}},i.unstable_pauseExecution=function(){},i.unstable_requestPaint=function(){},i.unstable_runWithPriority=function(U,ee){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var Q=b;b=U;try{return ee()}finally{b=Q}},i.unstable_scheduleCallback=function(U,ee,Q){var S=i.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?S+Q:S):Q=S,U){case 1:var $=-1;break;case 2:$=250;break;case 5:$=1073741823;break;case 4:$=1e4;break;default:$=5e3}return $=Q+$,U={id:k++,callback:ee,priorityLevel:U,startTime:Q,expirationTime:$,sortIndex:-1},Q>S?(U.sortIndex=Q,c(g,U),u(v)===null&&U===u(g)&&(D?(E(X),X=-1):D=!0,ke(O,Q-S))):(U.sortIndex=$,c(v,U),C||A||(C=!0,F(oe))),U},i.unstable_shouldYield=te,i.unstable_wrapCallback=function(U){var ee=b;return function(){var Q=b;b=ee;try{return U.apply(this,arguments)}finally{b=Q}}}})(Jr)),Jr}var Ic;function h2(){return Ic||(Ic=1,Xr.exports=f2()),Xr.exports}/** 26 26 * @license React 27 27 * react-dom.production.min.js … … 31 31 * This source code is licensed under the MIT license found in the 32 32 * LICENSE file in the root directory of this source tree. 33 */var Oc;function m2(){if(Oc)return ln;Oc=1;var i=Qr(),c=h2();function u(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=1;o<arguments.length;o++)n+="&args[]="+encodeURIComponent(arguments[o]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var d=new Set,p={};function h(e,n){m(e,n),m(e+"Capture",n)}function m(e,n){for(p[e]=n,e=0;e<n.length;e++)d.add(n[e])}var x=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),v=Object.prototype.hasOwnProperty,g=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,k={},_={};function b(e){return v.call(_,e)?!0:v.call(k,e)?!1:g.test(e)?_[e]=!0:(k[e]=!0,!1)}function A(e,n,o,r){if(o!==null&&o.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return r?!1:o!==null?!o.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function C(e,n,o,r){if(n===null||typeof n>"u"||A(e,n,o,r))return!0;if(r)return!1;if(o!==null)switch(o.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function D(e,n,o,r,a,l,f){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=o,this.propertyName=e,this.type=n,this.sanitizeURL=l,this.removeEmptyString=f}var P={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){P[e]=new D(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];P[n]=new D(n,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){P[e]=new D(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){P[e]=new D(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){P[e]=new D(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){P[e]=new D(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){P[e]=new D(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){P[e]=new D(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){P[e]=new D(e,5,!1,e.toLowerCase(),null,!1,!1)});var E=/[\-:]([a-z])/g;function I(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(E,I);P[n]=new D(n,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(E,I);P[n]=new D(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(E,I);P[n]=new D(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){P[e]=new D(e,1,!1,e.toLowerCase(),null,!1,!1)}),P.xlinkHref=new D("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){P[e]=new D(e,1,!1,e.toLowerCase(),null,!0,!0)});function R(e,n,o,r){var a=P.hasOwnProperty(n)?P[n]:null;(a!==null?a.type!==0:r||!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(C(n,o,a,r)&&(o=null),r||a===null?b(n)&&(o===null?e.removeAttribute(n):e.setAttribute(n,""+o)):a.mustUseProperty?e[a.propertyName]=o===null?a.type===3?!1:"":o:(n=a.attributeName,r=a.attributeNamespace,o===null?e.removeAttribute(n):(a=a.type,o=a===3||a===4&&o===!0?"":""+o,r?e.setAttributeNS(r,n,o):e.setAttribute(n,o))))}var O=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,te=Symbol.for("react.element"),J=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),X=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),W=Symbol.for("react.provider"),ne=Symbol.for("react.context"),le=Symbol.for("react.forward_ref"),he=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),me=Symbol.for("react.memo"),_e=Symbol.for("react.lazy"),ke=Symbol.for("react.offscreen"),U=Symbol.iterator;function ee(e){return e===null||typeof e!="object"?null:(e=U&&e[U]||e["@@iterator"],typeof e=="function"?e:null)}var Q=Object.assign,S;function $(e){if(S===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);S=n&&n[1]||""}return`34 `+S+e}var ie=!1;function ue(e,n){if(!e||ie)return"";ie=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(z){var r=z}Reflect.construct(e,[],n)}else{try{n.call()}catch(z){r=z}e.call(n.prototype)}else{try{throw Error()}catch(z){r=z}e()}}catch(z){if(z&&r&&typeof z.stack=="string"){for(var a=z.stack.split(`33 */var Oc;function m2(){if(Oc)return un;Oc=1;var i=Qr(),c=h2();function u(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=1;o<arguments.length;o++)n+="&args[]="+encodeURIComponent(arguments[o]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var d=new Set,p={};function h(e,n){m(e,n),m(e+"Capture",n)}function m(e,n){for(p[e]=n,e=0;e<n.length;e++)d.add(n[e])}var x=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),v=Object.prototype.hasOwnProperty,g=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,k={},_={};function b(e){return v.call(_,e)?!0:v.call(k,e)?!1:g.test(e)?_[e]=!0:(k[e]=!0,!1)}function A(e,n,o,r){if(o!==null&&o.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return r?!1:o!==null?!o.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function C(e,n,o,r){if(n===null||typeof n>"u"||A(e,n,o,r))return!0;if(r)return!1;if(o!==null)switch(o.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function D(e,n,o,r,a,l,f){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=o,this.propertyName=e,this.type=n,this.sanitizeURL=l,this.removeEmptyString=f}var P={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){P[e]=new D(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];P[n]=new D(n,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){P[e]=new D(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){P[e]=new D(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){P[e]=new D(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){P[e]=new D(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){P[e]=new D(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){P[e]=new D(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){P[e]=new D(e,5,!1,e.toLowerCase(),null,!1,!1)});var E=/[\-:]([a-z])/g;function I(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(E,I);P[n]=new D(n,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(E,I);P[n]=new D(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(E,I);P[n]=new D(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){P[e]=new D(e,1,!1,e.toLowerCase(),null,!1,!1)}),P.xlinkHref=new D("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){P[e]=new D(e,1,!1,e.toLowerCase(),null,!0,!0)});function R(e,n,o,r){var a=P.hasOwnProperty(n)?P[n]:null;(a!==null?a.type!==0:r||!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(C(n,o,a,r)&&(o=null),r||a===null?b(n)&&(o===null?e.removeAttribute(n):e.setAttribute(n,""+o)):a.mustUseProperty?e[a.propertyName]=o===null?a.type===3?!1:"":o:(n=a.attributeName,r=a.attributeNamespace,o===null?e.removeAttribute(n):(a=a.type,o=a===3||a===4&&o===!0?"":""+o,r?e.setAttributeNS(r,n,o):e.setAttribute(n,o))))}var O=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,oe=Symbol.for("react.element"),J=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),X=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),W=Symbol.for("react.provider"),te=Symbol.for("react.context"),ue=Symbol.for("react.forward_ref"),ge=Symbol.for("react.suspense"),ne=Symbol.for("react.suspense_list"),de=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),ke=Symbol.for("react.offscreen"),U=Symbol.iterator;function ee(e){return e===null||typeof e!="object"?null:(e=U&&e[U]||e["@@iterator"],typeof e=="function"?e:null)}var Q=Object.assign,S;function $(e){if(S===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);S=n&&n[1]||""}return` 34 `+S+e}var re=!1;function pe(e,n){if(!e||re)return"";re=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(z){var r=z}Reflect.construct(e,[],n)}else{try{n.call()}catch(z){r=z}e.call(n.prototype)}else{try{throw Error()}catch(z){r=z}e()}}catch(z){if(z&&r&&typeof z.stack=="string"){for(var a=z.stack.split(` 35 35 `),l=r.stack.split(` 36 `),f=a.length-1,y=l.length-1;1<=f&&0<=y&&a[f]!==l[y];)y--;for(;1<=f&&0<=y;f--,y--)if(a[f]!==l[y]){if(f!==1||y!==1)do if(f--,y--,0>y||a[f]!==l[y]){var j=`37 `+a[f].replace(" at new "," at ");return e.displayName&& j.includes("<anonymous>")&&(j=j.replace("<anonymous>",e.displayName)),j}while(1<=f&&0<=y);break}}}finally{ie=!1,Error.prepareStackTrace=o}return(e=e?e.displayName||e.name:"")?$(e):""}function ge(e){switch(e.tag){case 5:return $(e.type);case 16:return $("Lazy");case 13:return $("Suspense");case 19:return $("SuspenseList");case 0:case 2:case 15:return e=ue(e.type,!1),e;case 11:return e=ue(e.type.render,!1),e;case 1:return e=ue(e.type,!0),e;default:return""}}function xe(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case B:return"Fragment";case J:return"Portal";case q:return"Profiler";case X:return"StrictMode";case he:return"Suspense";case M:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ne:return(e.displayName||"Context")+".Consumer";case W:return(e._context.displayName||"Context")+".Provider";case le:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case me:return n=e.displayName||null,n!==null?n:xe(e.type)||"Memo";case _e:n=e._payload,e=e._init;try{return xe(e(n))}catch{}}return null}function F(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return xe(n);case 8:return n===X?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function de(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Ve(e){var n=de(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var a=o.get,l=o.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return a.call(this)},set:function(f){r=""+f,l.call(this,f)}}),Object.defineProperty(e,n,{enumerable:o.enumerable}),{getValue:function(){return r},setValue:function(f){r=""+f},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function De(e){e._valueTracker||(e._valueTracker=Ve(e))}function Ao(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var o=n.getValue(),r="";return e&&(r=de(e)?e.checked?"true":"false":e.value),e=r,e!==o?(n.setValue(e),!0):!1}function Oi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Us(e,n){var o=n.checked;return Q({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??e._wrapperState.initialChecked})}function v1(e,n){var o=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;o=H(n.value!=null?n.value:o),e._wrapperState={initialChecked:r,initialValue:o,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function y1(e,n){n=n.checked,n!=null&&R(e,"checked",n,!1)}function Bs(e,n){y1(e,n);var o=H(n.value),r=n.type;if(o!=null)r==="number"?(o===0&&e.value===""||e.value!=o)&&(e.value=""+o):e.value!==""+o&&(e.value=""+o);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?$s(e,n.type,o):n.hasOwnProperty("defaultValue")&&$s(e,n.type,H(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function _1(e,n,o){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!(r!=="submit"&&r!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,o||n===e.value||(e.value=n),e.defaultValue=n}o=e.name,o!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,o!==""&&(e.name=o)}function $s(e,n,o){(n!=="number"||Oi(e.ownerDocument)!==e)&&(o==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+o&&(e.defaultValue=""+o))}var Ro=Array.isArray;function Vt(e,n,o,r){if(e=e.options,n){n={};for(var a=0;a<o.length;a++)n["$"+o[a]]=!0;for(o=0;o<e.length;o++)a=n.hasOwnProperty("$"+e[o].value),e[o].selected!==a&&(e[o].selected=a),a&&r&&(e[o].defaultSelected=!0)}else{for(o=""+H(o),n=null,a=0;a<e.length;a++){if(e[a].value===o){e[a].selected=!0,r&&(e[a].defaultSelected=!0);return}n!==null||e[a].disabled||(n=e[a])}n!==null&&(n.selected=!0)}}function Ws(e,n){if(n.dangerouslySetInnerHTML!=null)throw Error(u(91));return Q({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function k1(e,n){var o=n.value;if(o==null){if(o=n.children,n=n.defaultValue,o!=null){if(n!=null)throw Error(u(92));if(Ro(o)){if(1<o.length)throw Error(u(93));o=o[0]}n=o}n==null&&(n=""),o=n}e._wrapperState={initialValue:H(o)}}function x1(e,n){var o=H(n.value),r=H(n.defaultValue);o!=null&&(o=""+o,o!==e.value&&(e.value=o),n.defaultValue==null&&e.defaultValue!==o&&(e.defaultValue=o)),r!=null&&(e.defaultValue=""+r)}function w1(e){var n=e.textContent;n===e._wrapperState.initialValue&&n!==""&&n!==null&&(e.value=n)}function j1(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Gs(e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?j1(n):e==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ui,b1=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,o,r,a){MSApp.execUnsafeLocalFunction(function(){return e(n,o,r,a)})}:e})(function(e,n){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=n;else{for(Ui=Ui||document.createElement("div"),Ui.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=Ui.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function zo(e,n){if(n){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=n;return}}e.textContent=n}var Mo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},A0=["Webkit","ms","Moz","O"];Object.keys(Mo).forEach(function(e){A0.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),Mo[n]=Mo[e]})});function N1(e,n,o){return n==null||typeof n=="boolean"||n===""?"":o||typeof n!="number"||n===0||Mo.hasOwnProperty(e)&&Mo[e]?(""+n).trim():n+"px"}function S1(e,n){e=e.style;for(var o in n)if(n.hasOwnProperty(o)){var r=o.indexOf("--")===0,a=N1(o,n[o],r);o==="float"&&(o="cssFloat"),r?e.setProperty(o,a):e[o]=a}}var R0=Q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Vs(e,n){if(n){if(R0[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(u(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(u(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(u(61))}if(n.style!=null&&typeof n.style!="object")throw Error(u(62))}}function Hs(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ks=null;function Ys(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var qs=null,Ht=null,Kt=null;function C1(e){if(e=ii(e)){if(typeof qs!="function")throw Error(u(280));var n=e.stateNode;n&&(n=lr(n),qs(e.stateNode,e.type,n))}}function P1(e){Ht?Kt?Kt.push(e):Kt=[e]:Ht=e}function L1(){if(Ht){var e=Ht,n=Kt;if(Kt=Ht=null,C1(e),n)for(e=0;e<n.length;e++)C1(n[e])}}function E1(e,n){return e(n)}function D1(){}var Qs=!1;function T1(e,n,o){if(Qs)return e(n,o);Qs=!0;try{return E1(e,n,o)}finally{Qs=!1,(Ht!==null||Kt!==null)&&(D1(),L1())}}function Fo(e,n){var o=e.stateNode;if(o===null)return null;var r=lr(o);if(r===null)return null;o=r[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(o&&typeof o!="function")throw Error(u(231,n,typeof o));return o}var Zs=!1;if(x)try{var Io={};Object.defineProperty(Io,"passive",{get:function(){Zs=!0}}),window.addEventListener("test",Io,Io),window.removeEventListener("test",Io,Io)}catch{Zs=!1}function z0(e,n,o,r,a,l,f,y,j){var z=Array.prototype.slice.call(arguments,3);try{n.apply(o,z)}catch(V){this.onError(V)}}var Oo=!1,Bi=null,$i=!1,Xs=null,M0={onError:function(e){Oo=!0,Bi=e}};function F0(e,n,o,r,a,l,f,y,j){Oo=!1,Bi=null,z0.apply(M0,arguments)}function I0(e,n,o,r,a,l,f,y,j){if(F0.apply(this,arguments),Oo){if(Oo){var z=Bi;Oo=!1,Bi=null}else throw Error(u(198));$i||($i=!0,Xs=z)}}function Ct(e){var n=e,o=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(o=n.return),e=n.return;while(e)}return n.tag===3?o:null}function A1(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function R1(e){if(Ct(e)!==e)throw Error(u(188))}function O0(e){var n=e.alternate;if(!n){if(n=Ct(e),n===null)throw Error(u(188));return n!==e?null:e}for(var o=e,r=n;;){var a=o.return;if(a===null)break;var l=a.alternate;if(l===null){if(r=a.return,r!==null){o=r;continue}break}if(a.child===l.child){for(l=a.child;l;){if(l===o)return R1(a),e;if(l===r)return R1(a),n;l=l.sibling}throw Error(u(188))}if(o.return!==r.return)o=a,r=l;else{for(var f=!1,y=a.child;y;){if(y===o){f=!0,o=a,r=l;break}if(y===r){f=!0,r=a,o=l;break}y=y.sibling}if(!f){for(y=l.child;y;){if(y===o){f=!0,o=l,r=a;break}if(y===r){f=!0,r=l,o=a;break}y=y.sibling}if(!f)throw Error(u(189))}}if(o.alternate!==r)throw Error(u(190))}if(o.tag!==3)throw Error(u(188));return o.stateNode.current===o?e:n}function z1(e){return e=O0(e),e!==null?M1(e):null}function M1(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var n=M1(e);if(n!==null)return n;e=e.sibling}return null}var F1=c.unstable_scheduleCallback,I1=c.unstable_cancelCallback,U0=c.unstable_shouldYield,B0=c.unstable_requestPaint,Be=c.unstable_now,$0=c.unstable_getCurrentPriorityLevel,Js=c.unstable_ImmediatePriority,O1=c.unstable_UserBlockingPriority,Wi=c.unstable_NormalPriority,W0=c.unstable_LowPriority,U1=c.unstable_IdlePriority,Gi=null,$n=null;function G0(e){if($n&&typeof $n.onCommitFiberRoot=="function")try{$n.onCommitFiberRoot(Gi,e,void 0,(e.current.flags&128)===128)}catch{}}var Ln=Math.clz32?Math.clz32:K0,V0=Math.log,H0=Math.LN2;function K0(e){return e>>>=0,e===0?32:31-(V0(e)/H0|0)|0}var Vi=64,Hi=4194304;function Uo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ki(e,n){var o=e.pendingLanes;if(o===0)return 0;var r=0,a=e.suspendedLanes,l=e.pingedLanes,f=o&268435455;if(f!==0){var y=f&~a;y!==0?r=Uo(y):(l&=f,l!==0&&(r=Uo(l)))}else f=o&~a,f!==0?r=Uo(f):l!==0&&(r=Uo(l));if(r===0)return 0;if(n!==0&&n!==r&&(n&a)===0&&(a=r&-r,l=n&-n,a>=l||a===16&&(l&4194240)!==0))return n;if((r&4)!==0&&(r|=o&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=r;0<n;)o=31-Ln(n),a=1<<o,r|=e[o],n&=~a;return r}function Y0(e,n){switch(e){case 1:case 2:case 4:return n+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function q0(e,n){for(var o=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,l=e.pendingLanes;0<l;){var f=31-Ln(l),y=1<<f,j=a[f];j===-1?((y&o)===0||(y&r)!==0)&&(a[f]=Y0(y,n)):j<=n&&(e.expiredLanes|=y),l&=~y}}function ea(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function B1(){var e=Vi;return Vi<<=1,(Vi&4194240)===0&&(Vi=64),e}function na(e){for(var n=[],o=0;31>o;o++)n.push(e);return n}function Bo(e,n,o){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-Ln(n),e[n]=o}function Q0(e,n){var o=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<o;){var a=31-Ln(o),l=1<<a;n[a]=0,r[a]=-1,e[a]=-1,o&=~l}}function ta(e,n){var o=e.entangledLanes|=n;for(e=e.entanglements;o;){var r=31-Ln(o),a=1<<r;a&n|e[r]&n&&(e[r]|=n),o&=~a}}var Pe=0;function $1(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var W1,oa,G1,V1,H1,ia=!1,Yi=[],ot=null,it=null,rt=null,$o=new Map,Wo=new Map,st=[],Z0="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function K1(e,n){switch(e){case"focusin":case"focusout":ot=null;break;case"dragenter":case"dragleave":it=null;break;case"mouseover":case"mouseout":rt=null;break;case"pointerover":case"pointerout":$o.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wo.delete(n.pointerId)}}function Go(e,n,o,r,a,l){return e===null||e.nativeEvent!==l?(e={blockedOn:n,domEventName:o,eventSystemFlags:r,nativeEvent:l,targetContainers:[a]},n!==null&&(n=ii(n),n!==null&&oa(n)),e):(e.eventSystemFlags|=r,n=e.targetContainers,a!==null&&n.indexOf(a)===-1&&n.push(a),e)}function X0(e,n,o,r,a){switch(n){case"focusin":return ot=Go(ot,e,n,o,r,a),!0;case"dragenter":return it=Go(it,e,n,o,r,a),!0;case"mouseover":return rt=Go(rt,e,n,o,r,a),!0;case"pointerover":var l=a.pointerId;return $o.set(l,Go($o.get(l)||null,e,n,o,r,a)),!0;case"gotpointercapture":return l=a.pointerId,Wo.set(l,Go(Wo.get(l)||null,e,n,o,r,a)),!0}return!1}function Y1(e){var n=Pt(e.target);if(n!==null){var o=Ct(n);if(o!==null){if(n=o.tag,n===13){if(n=A1(o),n!==null){e.blockedOn=n,H1(e.priority,function(){G1(o)});return}}else if(n===3&&o.stateNode.current.memoizedState.isDehydrated){e.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}e.blockedOn=null}function qi(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var o=sa(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(o===null){o=e.nativeEvent;var r=new o.constructor(o.type,o);Ks=r,o.target.dispatchEvent(r),Ks=null}else return n=ii(o),n!==null&&oa(n),e.blockedOn=o,!1;n.shift()}return!0}function q1(e,n,o){qi(e)&&o.delete(n)}function J0(){ia=!1,ot!==null&&qi(ot)&&(ot=null),it!==null&&qi(it)&&(it=null),rt!==null&&qi(rt)&&(rt=null),$o.forEach(q1),Wo.forEach(q1)}function Vo(e,n){e.blockedOn===n&&(e.blockedOn=null,ia||(ia=!0,c.unstable_scheduleCallback(c.unstable_NormalPriority,J0)))}function Ho(e){function n(a){return Vo(a,e)}if(0<Yi.length){Vo(Yi[0],e);for(var o=1;o<Yi.length;o++){var r=Yi[o];r.blockedOn===e&&(r.blockedOn=null)}}for(ot!==null&&Vo(ot,e),it!==null&&Vo(it,e),rt!==null&&Vo(rt,e),$o.forEach(n),Wo.forEach(n),o=0;o<st.length;o++)r=st[o],r.blockedOn===e&&(r.blockedOn=null);for(;0<st.length&&(o=st[0],o.blockedOn===null);)Y1(o),o.blockedOn===null&&st.shift()}var Yt=O.ReactCurrentBatchConfig,Qi=!0;function ef(e,n,o,r){var a=Pe,l=Yt.transition;Yt.transition=null;try{Pe=1,ra(e,n,o,r)}finally{Pe=a,Yt.transition=l}}function nf(e,n,o,r){var a=Pe,l=Yt.transition;Yt.transition=null;try{Pe=4,ra(e,n,o,r)}finally{Pe=a,Yt.transition=l}}function ra(e,n,o,r){if(Qi){var a=sa(e,n,o,r);if(a===null)ja(e,n,r,Zi,o),K1(e,r);else if(X0(a,e,n,o,r))r.stopPropagation();else if(K1(e,r),n&4&&-1<Z0.indexOf(e)){for(;a!==null;){var l=ii(a);if(l!==null&&W1(l),l=sa(e,n,o,r),l===null&&ja(e,n,r,Zi,o),l===a)break;a=l}a!==null&&r.stopPropagation()}else ja(e,n,r,null,o)}}var Zi=null;function sa(e,n,o,r){if(Zi=null,e=Ys(r),e=Pt(e),e!==null)if(n=Ct(e),n===null)e=null;else if(o=n.tag,o===13){if(e=A1(n),e!==null)return e;e=null}else if(o===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null);return Zi=e,null}function Q1(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch($0()){case Js:return 1;case O1:return 4;case Wi:case W0:return 16;case U1:return 536870912;default:return 16}default:return 16}}var at=null,aa=null,Xi=null;function Z1(){if(Xi)return Xi;var e,n=aa,o=n.length,r,a="value"in at?at.value:at.textContent,l=a.length;for(e=0;e<o&&n[e]===a[e];e++);var f=o-e;for(r=1;r<=f&&n[o-r]===a[l-r];r++);return Xi=a.slice(e,1<r?1-r:void 0)}function Ji(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function er(){return!0}function X1(){return!1}function yn(e){function n(o,r,a,l,f){this._reactName=o,this._targetInst=a,this.type=r,this.nativeEvent=l,this.target=f,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(o=e[y],this[y]=o?o(l):l[y]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?er:X1,this.isPropagationStopped=X1,this}return Q(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=er)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=er)},persist:function(){},isPersistent:er}),n}var qt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ca=yn(qt),Ko=Q({},qt,{view:0,detail:0}),tf=yn(Ko),la,ua,Yo,nr=Q({},Ko,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pa,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Yo&&(Yo&&e.type==="mousemove"?(la=e.screenX-Yo.screenX,ua=e.screenY-Yo.screenY):ua=la=0,Yo=e),la)},movementY:function(e){return"movementY"in e?e.movementY:ua}}),J1=yn(nr),of=Q({},nr,{dataTransfer:0}),rf=yn(of),sf=Q({},Ko,{relatedTarget:0}),da=yn(sf),af=Q({},qt,{animationName:0,elapsedTime:0,pseudoElement:0}),cf=yn(af),lf=Q({},qt,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),uf=yn(lf),df=Q({},qt,{data:0}),eu=yn(df),pf={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ff={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},hf={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function mf(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=hf[e])?!!n[e]:!1}function pa(){return mf}var gf=Q({},Ko,{key:function(e){if(e.key){var n=pf[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Ji(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ff[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pa,charCode:function(e){return e.type==="keypress"?Ji(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ji(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),vf=yn(gf),yf=Q({},nr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),nu=yn(yf),_f=Q({},Ko,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pa}),kf=yn(_f),xf=Q({},qt,{propertyName:0,elapsedTime:0,pseudoElement:0}),wf=yn(xf),jf=Q({},nr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),bf=yn(jf),Nf=[9,13,27,32],fa=x&&"CompositionEvent"in window,qo=null;x&&"documentMode"in document&&(qo=document.documentMode);var Sf=x&&"TextEvent"in window&&!qo,tu=x&&(!fa||qo&&8<qo&&11>=qo),ou=" ",iu=!1;function ru(e,n){switch(e){case"keyup":return Nf.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function su(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Qt=!1;function Cf(e,n){switch(e){case"compositionend":return su(n);case"keypress":return n.which!==32?null:(iu=!0,ou);case"textInput":return e=n.data,e===ou&&iu?null:e;default:return null}}function Pf(e,n){if(Qt)return e==="compositionend"||!fa&&ru(e,n)?(e=Z1(),Xi=aa=at=null,Qt=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return tu&&n.locale!=="ko"?null:n.data;default:return null}}var Lf={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function au(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!Lf[e.type]:n==="textarea"}function cu(e,n,o,r){P1(r),n=sr(n,"onChange"),0<n.length&&(o=new ca("onChange","change",null,o,r),e.push({event:o,listeners:n}))}var Qo=null,Zo=null;function Ef(e){Su(e,0)}function tr(e){var n=no(e);if(Ao(n))return e}function Df(e,n){if(e==="change")return n}var lu=!1;if(x){var ha;if(x){var ma="oninput"in document;if(!ma){var uu=document.createElement("div");uu.setAttribute("oninput","return;"),ma=typeof uu.oninput=="function"}ha=ma}else ha=!1;lu=ha&&(!document.documentMode||9<document.documentMode)}function du(){Qo&&(Qo.detachEvent("onpropertychange",pu),Zo=Qo=null)}function pu(e){if(e.propertyName==="value"&&tr(Zo)){var n=[];cu(n,Zo,e,Ys(e)),T1(Ef,n)}}function Tf(e,n,o){e==="focusin"?(du(),Qo=n,Zo=o,Qo.attachEvent("onpropertychange",pu)):e==="focusout"&&du()}function Af(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return tr(Zo)}function Rf(e,n){if(e==="click")return tr(n)}function zf(e,n){if(e==="input"||e==="change")return tr(n)}function Mf(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var En=typeof Object.is=="function"?Object.is:Mf;function Xo(e,n){if(En(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var o=Object.keys(e),r=Object.keys(n);if(o.length!==r.length)return!1;for(r=0;r<o.length;r++){var a=o[r];if(!v.call(n,a)||!En(e[a],n[a]))return!1}return!0}function fu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hu(e,n){var o=fu(e);e=0;for(var r;o;){if(o.nodeType===3){if(r=e+o.textContent.length,e<=n&&r>=n)return{node:o,offset:n-e};e=r}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=fu(o)}}function mu(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?mu(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function gu(){for(var e=window,n=Oi();n instanceof e.HTMLIFrameElement;){try{var o=typeof n.contentWindow.location.href=="string"}catch{o=!1}if(o)e=n.contentWindow;else break;n=Oi(e.document)}return n}function ga(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function Ff(e){var n=gu(),o=e.focusedElem,r=e.selectionRange;if(n!==o&&o&&o.ownerDocument&&mu(o.ownerDocument.documentElement,o)){if(r!==null&&ga(o)){if(n=r.start,e=r.end,e===void 0&&(e=n),"selectionStart"in o)o.selectionStart=n,o.selectionEnd=Math.min(e,o.value.length);else if(e=(n=o.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var a=o.textContent.length,l=Math.min(r.start,a);r=r.end===void 0?l:Math.min(r.end,a),!e.extend&&l>r&&(a=r,r=l,l=a),a=hu(o,l);var f=hu(o,r);a&&f&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==f.node||e.focusOffset!==f.offset)&&(n=n.createRange(),n.setStart(a.node,a.offset),e.removeAllRanges(),l>r?(e.addRange(n),e.extend(f.node,f.offset)):(n.setEnd(f.node,f.offset),e.addRange(n)))}}for(n=[],e=o;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<n.length;o++)e=n[o],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var If=x&&"documentMode"in document&&11>=document.documentMode,Zt=null,va=null,Jo=null,ya=!1;function vu(e,n,o){var r=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;ya||Zt==null||Zt!==Oi(r)||(r=Zt,"selectionStart"in r&&ga(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Jo&&Xo(Jo,r)||(Jo=r,r=sr(va,"onSelect"),0<r.length&&(n=new ca("onSelect","select",null,n,o),e.push({event:n,listeners:r}),n.target=Zt)))}function or(e,n){var o={};return o[e.toLowerCase()]=n.toLowerCase(),o["Webkit"+e]="webkit"+n,o["Moz"+e]="moz"+n,o}var Xt={animationend:or("Animation","AnimationEnd"),animationiteration:or("Animation","AnimationIteration"),animationstart:or("Animation","AnimationStart"),transitionend:or("Transition","TransitionEnd")},_a={},yu={};x&&(yu=document.createElement("div").style,"AnimationEvent"in window||(delete Xt.animationend.animation,delete Xt.animationiteration.animation,delete Xt.animationstart.animation),"TransitionEvent"in window||delete Xt.transitionend.transition);function ir(e){if(_a[e])return _a[e];if(!Xt[e])return e;var n=Xt[e],o;for(o in n)if(n.hasOwnProperty(o)&&o in yu)return _a[e]=n[o];return e}var _u=ir("animationend"),ku=ir("animationiteration"),xu=ir("animationstart"),wu=ir("transitionend"),ju=new Map,bu="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ct(e,n){ju.set(e,n),h(n,[e])}for(var ka=0;ka<bu.length;ka++){var xa=bu[ka],Of=xa.toLowerCase(),Uf=xa[0].toUpperCase()+xa.slice(1);ct(Of,"on"+Uf)}ct(_u,"onAnimationEnd"),ct(ku,"onAnimationIteration"),ct(xu,"onAnimationStart"),ct("dblclick","onDoubleClick"),ct("focusin","onFocus"),ct("focusout","onBlur"),ct(wu,"onTransitionEnd"),m("onMouseEnter",["mouseout","mouseover"]),m("onMouseLeave",["mouseout","mouseover"]),m("onPointerEnter",["pointerout","pointerover"]),m("onPointerLeave",["pointerout","pointerover"]),h("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),h("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),h("onBeforeInput",["compositionend","keypress","textInput","paste"]),h("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),h("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),h("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ei="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Bf=new Set("cancel close invalid load scroll toggle".split(" ").concat(ei));function Nu(e,n,o){var r=e.type||"unknown-event";e.currentTarget=o,I0(r,n,void 0,e),e.currentTarget=null}function Su(e,n){n=(n&4)!==0;for(var o=0;o<e.length;o++){var r=e[o],a=r.event;r=r.listeners;e:{var l=void 0;if(n)for(var f=r.length-1;0<=f;f--){var y=r[f],j=y.instance,z=y.currentTarget;if(y=y.listener,j!==l&&a.isPropagationStopped())break e;Nu(a,y,z),l=j}else for(f=0;f<r.length;f++){if(y=r[f],j=y.instance,z=y.currentTarget,y=y.listener,j!==l&&a.isPropagationStopped())break e;Nu(a,y,z),l=j}}}if($i)throw e=Xs,$i=!1,Xs=null,e}function Te(e,n){var o=n[La];o===void 0&&(o=n[La]=new Set);var r=e+"__bubble";o.has(r)||(Cu(n,e,2,!1),o.add(r))}function wa(e,n,o){var r=0;n&&(r|=4),Cu(o,e,r,n)}var rr="_reactListening"+Math.random().toString(36).slice(2);function ni(e){if(!e[rr]){e[rr]=!0,d.forEach(function(o){o!=="selectionchange"&&(Bf.has(o)||wa(o,!1,e),wa(o,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[rr]||(n[rr]=!0,wa("selectionchange",!1,n))}}function Cu(e,n,o,r){switch(Q1(n)){case 1:var a=ef;break;case 4:a=nf;break;default:a=ra}o=a.bind(null,n,o,e),a=void 0,!Zs||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(a=!0),r?a!==void 0?e.addEventListener(n,o,{capture:!0,passive:a}):e.addEventListener(n,o,!0):a!==void 0?e.addEventListener(n,o,{passive:a}):e.addEventListener(n,o,!1)}function ja(e,n,o,r,a){var l=r;if((n&1)===0&&(n&2)===0&&r!==null)e:for(;;){if(r===null)return;var f=r.tag;if(f===3||f===4){var y=r.stateNode.containerInfo;if(y===a||y.nodeType===8&&y.parentNode===a)break;if(f===4)for(f=r.return;f!==null;){var j=f.tag;if((j===3||j===4)&&(j=f.stateNode.containerInfo,j===a||j.nodeType===8&&j.parentNode===a))return;f=f.return}for(;y!==null;){if(f=Pt(y),f===null)return;if(j=f.tag,j===5||j===6){r=l=f;continue e}y=y.parentNode}}r=r.return}T1(function(){var z=l,V=Ys(o),K=[];e:{var G=ju.get(e);if(G!==void 0){var oe=ca,se=e;switch(e){case"keypress":if(Ji(o)===0)break e;case"keydown":case"keyup":oe=vf;break;case"focusin":se="focus",oe=da;break;case"focusout":se="blur",oe=da;break;case"beforeblur":case"afterblur":oe=da;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":oe=J1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":oe=rf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":oe=kf;break;case _u:case ku:case xu:oe=cf;break;case wu:oe=wf;break;case"scroll":oe=tf;break;case"wheel":oe=bf;break;case"copy":case"cut":case"paste":oe=uf;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":oe=nu}var ae=(n&4)!==0,$e=!ae&&e==="scroll",L=ae?G!==null?G+"Capture":null:G;ae=[];for(var N=z,T;N!==null;){T=N;var Z=T.stateNode;if(T.tag===5&&Z!==null&&(T=Z,L!==null&&(Z=Fo(N,L),Z!=null&&ae.push(ti(N,Z,T)))),$e)break;N=N.return}0<ae.length&&(G=new oe(G,se,null,o,V),K.push({event:G,listeners:ae}))}}if((n&7)===0){e:{if(G=e==="mouseover"||e==="pointerover",oe=e==="mouseout"||e==="pointerout",G&&o!==Ks&&(se=o.relatedTarget||o.fromElement)&&(Pt(se)||se[Yn]))break e;if((oe||G)&&(G=V.window===V?V:(G=V.ownerDocument)?G.defaultView||G.parentWindow:window,oe?(se=o.relatedTarget||o.toElement,oe=z,se=se?Pt(se):null,se!==null&&($e=Ct(se),se!==$e||se.tag!==5&&se.tag!==6)&&(se=null)):(oe=null,se=z),oe!==se)){if(ae=J1,Z="onMouseLeave",L="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(ae=nu,Z="onPointerLeave",L="onPointerEnter",N="pointer"),$e=oe==null?G:no(oe),T=se==null?G:no(se),G=new ae(Z,N+"leave",oe,o,V),G.target=$e,G.relatedTarget=T,Z=null,Pt(V)===z&&(ae=new ae(L,N+"enter",se,o,V),ae.target=T,ae.relatedTarget=$e,Z=ae),$e=Z,oe&&se)n:{for(ae=oe,L=se,N=0,T=ae;T;T=Jt(T))N++;for(T=0,Z=L;Z;Z=Jt(Z))T++;for(;0<N-T;)ae=Jt(ae),N--;for(;0<T-N;)L=Jt(L),T--;for(;N--;){if(ae===L||L!==null&&ae===L.alternate)break n;ae=Jt(ae),L=Jt(L)}ae=null}else ae=null;oe!==null&&Pu(K,G,oe,ae,!1),se!==null&&$e!==null&&Pu(K,$e,se,ae,!0)}}e:{if(G=z?no(z):window,oe=G.nodeName&&G.nodeName.toLowerCase(),oe==="select"||oe==="input"&&G.type==="file")var ce=Df;else if(au(G))if(lu)ce=zf;else{ce=Af;var pe=Tf}else(oe=G.nodeName)&&oe.toLowerCase()==="input"&&(G.type==="checkbox"||G.type==="radio")&&(ce=Rf);if(ce&&(ce=ce(e,z))){cu(K,ce,o,V);break e}pe&&pe(e,G,z),e==="focusout"&&(pe=G._wrapperState)&&pe.controlled&&G.type==="number"&&$s(G,"number",G.value)}switch(pe=z?no(z):window,e){case"focusin":(au(pe)||pe.contentEditable==="true")&&(Zt=pe,va=z,Jo=null);break;case"focusout":Jo=va=Zt=null;break;case"mousedown":ya=!0;break;case"contextmenu":case"mouseup":case"dragend":ya=!1,vu(K,o,V);break;case"selectionchange":if(If)break;case"keydown":case"keyup":vu(K,o,V)}var fe;if(fa)e:{switch(e){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else Qt?ru(e,o)&&(ye="onCompositionEnd"):e==="keydown"&&o.keyCode===229&&(ye="onCompositionStart");ye&&(tu&&o.locale!=="ko"&&(Qt||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&Qt&&(fe=Z1()):(at=V,aa="value"in at?at.value:at.textContent,Qt=!0)),pe=sr(z,ye),0<pe.length&&(ye=new eu(ye,e,null,o,V),K.push({event:ye,listeners:pe}),fe?ye.data=fe:(fe=su(o),fe!==null&&(ye.data=fe)))),(fe=Sf?Cf(e,o):Pf(e,o))&&(z=sr(z,"onBeforeInput"),0<z.length&&(V=new eu("onBeforeInput","beforeinput",null,o,V),K.push({event:V,listeners:z}),V.data=fe))}Su(K,n)})}function ti(e,n,o){return{instance:e,listener:n,currentTarget:o}}function sr(e,n){for(var o=n+"Capture",r=[];e!==null;){var a=e,l=a.stateNode;a.tag===5&&l!==null&&(a=l,l=Fo(e,o),l!=null&&r.unshift(ti(e,l,a)),l=Fo(e,n),l!=null&&r.push(ti(e,l,a))),e=e.return}return r}function Jt(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Pu(e,n,o,r,a){for(var l=n._reactName,f=[];o!==null&&o!==r;){var y=o,j=y.alternate,z=y.stateNode;if(j!==null&&j===r)break;y.tag===5&&z!==null&&(y=z,a?(j=Fo(o,l),j!=null&&f.unshift(ti(o,j,y))):a||(j=Fo(o,l),j!=null&&f.push(ti(o,j,y)))),o=o.return}f.length!==0&&e.push({event:n,listeners:f})}var $f=/\r\n?/g,Wf=/\u0000|\uFFFD/g;function Lu(e){return(typeof e=="string"?e:""+e).replace($f,`38 `).replace( Wf,"")}function ar(e,n,o){if(n=Lu(n),Lu(e)!==n&&o)throw Error(u(425))}function cr(){}var ba=null,Na=null;function Sa(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Ca=typeof setTimeout=="function"?setTimeout:void 0,Gf=typeof clearTimeout=="function"?clearTimeout:void 0,Eu=typeof Promise=="function"?Promise:void 0,Vf=typeof queueMicrotask=="function"?queueMicrotask:typeof Eu<"u"?function(e){return Eu.resolve(null).then(e).catch(Hf)}:Ca;function Hf(e){setTimeout(function(){throw e})}function Pa(e,n){var o=n,r=0;do{var a=o.nextSibling;if(e.removeChild(o),a&&a.nodeType===8)if(o=a.data,o==="/$"){if(r===0){e.removeChild(a),Ho(n);return}r--}else o!=="$"&&o!=="$?"&&o!=="$!"||r++;o=a}while(o);Ho(n)}function lt(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return e}function Du(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var o=e.data;if(o==="$"||o==="$!"||o==="$?"){if(n===0)return e;n--}else o==="/$"&&n++}e=e.previousSibling}return null}var eo=Math.random().toString(36).slice(2),Wn="__reactFiber$"+eo,oi="__reactProps$"+eo,Yn="__reactContainer$"+eo,La="__reactEvents$"+eo,Kf="__reactListeners$"+eo,Yf="__reactHandles$"+eo;function Pt(e){var n=e[Wn];if(n)return n;for(var o=e.parentNode;o;){if(n=o[Yn]||o[Wn]){if(o=n.alternate,n.child!==null||o!==null&&o.child!==null)for(e=Du(e);e!==null;){if(o=e[Wn])return o;e=Du(e)}return n}e=o,o=e.parentNode}return null}function ii(e){return e=e[Wn]||e[Yn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function no(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(u(33))}function lr(e){return e[oi]||null}var Ea=[],to=-1;function ut(e){return{current:e}}function Ae(e){0>to||(e.current=Ea[to],Ea[to]=null,to--)}function Ee(e,n){to++,Ea[to]=e.current,e.current=n}var dt={},nn=ut(dt),dn=ut(!1),Lt=dt;function oo(e,n){var o=e.type.contextTypes;if(!o)return dt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var a={},l;for(l in o)a[l]=n[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=a),a}function pn(e){return e=e.childContextTypes,e!=null}function ur(){Ae(dn),Ae(nn)}function Tu(e,n,o){if(nn.current!==dt)throw Error(u(168));Ee(nn,n),Ee(dn,o)}function Au(e,n,o){var r=e.stateNode;if(n=n.childContextTypes,typeof r.getChildContext!="function")return o;r=r.getChildContext();for(var a in r)if(!(a in n))throw Error(u(108,F(e)||"Unknown",a));return Q({},o,r)}function dr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||dt,Lt=nn.current,Ee(nn,e),Ee(dn,dn.current),!0}function Ru(e,n,o){var r=e.stateNode;if(!r)throw Error(u(169));o?(e=Au(e,n,Lt),r.__reactInternalMemoizedMergedChildContext=e,Ae(dn),Ae(nn),Ee(nn,e)):Ae(dn),Ee(dn,o)}var qn=null,pr=!1,Da=!1;function zu(e){qn===null?qn=[e]:qn.push(e)}function qf(e){pr=!0,zu(e)}function pt(){if(!Da&&qn!==null){Da=!0;var e=0,n=Pe;try{var o=qn;for(Pe=1;e<o.length;e++){var r=o[e];do r=r(!0);while(r!==null)}qn=null,pr=!1}catch(a){throw qn!==null&&(qn=qn.slice(e+1)),F1(Js,pt),a}finally{Pe=n,Da=!1}}return null}var io=[],ro=0,fr=null,hr=0,wn=[],jn=0,Et=null,Qn=1,Zn="";function Dt(e,n){io[ro++]=hr,io[ro++]=fr,fr=e,hr=n}function Mu(e,n,o){wn[jn++]=Qn,wn[jn++]=Zn,wn[jn++]=Et,Et=e;var r=Qn;e=Zn;var a=32-Ln(r)-1;r&=~(1<<a),o+=1;var l=32-Ln(n)+a;if(30<l){var f=a-a%5;l=(r&(1<<f)-1).toString(32),r>>=f,a-=f,Qn=1<<32-Ln(n)+a|o<<a|r,Zn=l+e}else Qn=1<<l|o<<a|r,Zn=e}function Ta(e){e.return!==null&&(Dt(e,1),Mu(e,1,0))}function Aa(e){for(;e===fr;)fr=io[--ro],io[ro]=null,hr=io[--ro],io[ro]=null;for(;e===Et;)Et=wn[--jn],wn[jn]=null,Zn=wn[--jn],wn[jn]=null,Qn=wn[--jn],wn[jn]=null}var _n=null,kn=null,Me=!1,Dn=null;function Fu(e,n){var o=Cn(5,null,null,0);o.elementType="DELETED",o.stateNode=n,o.return=e,n=e.deletions,n===null?(e.deletions=[o],e.flags|=16):n.push(o)}function Iu(e,n){switch(e.tag){case 5:var o=e.type;return n=n.nodeType!==1||o.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(e.stateNode=n,_n=e,kn=lt(n.firstChild),!0):!1;case 6:return n=e.pendingProps===""||n.nodeType!==3?null:n,n!==null?(e.stateNode=n,_n=e,kn=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(o=Et!==null?{id:Qn,overflow:Zn}:null,e.memoizedState={dehydrated:n,treeContext:o,retryLane:1073741824},o=Cn(18,null,null,0),o.stateNode=n,o.return=e,e.child=o,_n=e,kn=null,!0):!1;default:return!1}}function Ra(e){return(e.mode&1)!==0&&(e.flags&128)===0}function za(e){if(Me){var n=kn;if(n){var o=n;if(!Iu(e,n)){if(Ra(e))throw Error(u(418));n=lt(o.nextSibling);var r=_n;n&&Iu(e,n)?Fu(r,o):(e.flags=e.flags&-4097|2,Me=!1,_n=e)}}else{if(Ra(e))throw Error(u(418));e.flags=e.flags&-4097|2,Me=!1,_n=e}}}function Ou(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;_n=e}function mr(e){if(e!==_n)return!1;if(!Me)return Ou(e),Me=!0,!1;var n;if((n=e.tag!==3)&&!(n=e.tag!==5)&&(n=e.type,n=n!=="head"&&n!=="body"&&!Sa(e.type,e.memoizedProps)),n&&(n=kn)){if(Ra(e))throw Uu(),Error(u(418));for(;n;)Fu(e,n),n=lt(n.nextSibling)}if(Ou(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8){var o=e.data;if(o==="/$"){if(n===0){kn=lt(e.nextSibling);break e}n--}else o!=="$"&&o!=="$!"&&o!=="$?"||n++}e=e.nextSibling}kn=null}}else kn=_n?lt(e.stateNode.nextSibling):null;return!0}function Uu(){for(var e=kn;e;)e=lt(e.nextSibling)}function so(){kn=_n=null,Me=!1}function Ma(e){Dn===null?Dn=[e]:Dn.push(e)}var Qf=O.ReactCurrentBatchConfig;function ri(e,n,o){if(e=o.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(u(309));var r=o.stateNode}if(!r)throw Error(u(147,e));var a=r,l=""+e;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===l?n.ref:(n=function(f){var y=a.refs;f===null?delete y[l]:y[l]=f},n._stringRef=l,n)}if(typeof e!="string")throw Error(u(284));if(!o._owner)throw Error(u(290,e))}return e}function gr(e,n){throw e=Object.prototype.toString.call(n),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function Bu(e){var n=e._init;return n(e._payload)}function $u(e){function n(L,N){if(e){var T=L.deletions;T===null?(L.deletions=[N],L.flags|=16):T.push(N)}}function o(L,N){if(!e)return null;for(;N!==null;)n(L,N),N=N.sibling;return null}function r(L,N){for(L=new Map;N!==null;)N.key!==null?L.set(N.key,N):L.set(N.index,N),N=N.sibling;return L}function a(L,N){return L=kt(L,N),L.index=0,L.sibling=null,L}function l(L,N,T){return L.index=T,e?(T=L.alternate,T!==null?(T=T.index,T<N?(L.flags|=2,N):T):(L.flags|=2,N)):(L.flags|=1048576,N)}function f(L){return e&&L.alternate===null&&(L.flags|=2),L}function y(L,N,T,Z){return N===null||N.tag!==6?(N=Cc(T,L.mode,Z),N.return=L,N):(N=a(N,T),N.return=L,N)}function j(L,N,T,Z){var ce=T.type;return ce===B?V(L,N,T.props.children,Z,T.key):N!==null&&(N.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===_e&&Bu(ce)===N.type)?(Z=a(N,T.props),Z.ref=ri(L,N,T),Z.return=L,Z):(Z=Ur(T.type,T.key,T.props,null,L.mode,Z),Z.ref=ri(L,N,T),Z.return=L,Z)}function z(L,N,T,Z){return N===null||N.tag!==4||N.stateNode.containerInfo!==T.containerInfo||N.stateNode.implementation!==T.implementation?(N=Pc(T,L.mode,Z),N.return=L,N):(N=a(N,T.children||[]),N.return=L,N)}function V(L,N,T,Z,ce){return N===null||N.tag!==7?(N=Ot(T,L.mode,Z,ce),N.return=L,N):(N=a(N,T),N.return=L,N)}function K(L,N,T){if(typeof N=="string"&&N!==""||typeof N=="number")return N=Cc(""+N,L.mode,T),N.return=L,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case te:return T=Ur(N.type,N.key,N.props,null,L.mode,T),T.ref=ri(L,null,N),T.return=L,T;case J:return N=Pc(N,L.mode,T),N.return=L,N;case _e:var Z=N._init;return K(L,Z(N._payload),T)}if(Ro(N)||ee(N))return N=Ot(N,L.mode,T,null),N.return=L,N;gr(L,N)}return null}function G(L,N,T,Z){var ce=N!==null?N.key:null;if(typeof T=="string"&&T!==""||typeof T=="number")return ce!==null?null:y(L,N,""+T,Z);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case te:return T.key===ce?j(L,N,T,Z):null;case J:return T.key===ce?z(L,N,T,Z):null;case _e:return ce=T._init,G(L,N,ce(T._payload),Z)}if(Ro(T)||ee(T))return ce!==null?null:V(L,N,T,Z,null);gr(L,T)}return null}function oe(L,N,T,Z,ce){if(typeof Z=="string"&&Z!==""||typeof Z=="number")return L=L.get(T)||null,y(N,L,""+Z,ce);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case te:return L=L.get(Z.key===null?T:Z.key)||null,j(N,L,Z,ce);case J:return L=L.get(Z.key===null?T:Z.key)||null,z(N,L,Z,ce);case _e:var pe=Z._init;return oe(L,N,T,pe(Z._payload),ce)}if(Ro(Z)||ee(Z))return L=L.get(T)||null,V(N,L,Z,ce,null);gr(N,Z)}return null}function se(L,N,T,Z){for(var ce=null,pe=null,fe=N,ye=N=0,Qe=null;fe!==null&&ye<T.length;ye++){fe.index>ye?(Qe=fe,fe=null):Qe=fe.sibling;var Se=G(L,fe,T[ye],Z);if(Se===null){fe===null&&(fe=Qe);break}e&&fe&&Se.alternate===null&&n(L,fe),N=l(Se,N,ye),pe===null?ce=Se:pe.sibling=Se,pe=Se,fe=Qe}if(ye===T.length)return o(L,fe),Me&&Dt(L,ye),ce;if(fe===null){for(;ye<T.length;ye++)fe=K(L,T[ye],Z),fe!==null&&(N=l(fe,N,ye),pe===null?ce=fe:pe.sibling=fe,pe=fe);return Me&&Dt(L,ye),ce}for(fe=r(L,fe);ye<T.length;ye++)Qe=oe(fe,L,ye,T[ye],Z),Qe!==null&&(e&&Qe.alternate!==null&&fe.delete(Qe.key===null?ye:Qe.key),N=l(Qe,N,ye),pe===null?ce=Qe:pe.sibling=Qe,pe=Qe);return e&&fe.forEach(function(xt){return n(L,xt)}),Me&&Dt(L,ye),ce}function ae(L,N,T,Z){var ce=ee(T);if(typeof ce!="function")throw Error(u(150));if(T=ce.call(T),T==null)throw Error(u(151));for(var pe=ce=null,fe=N,ye=N=0,Qe=null,Se=T.next();fe!==null&&!Se.done;ye++,Se=T.next()){fe.index>ye?(Qe=fe,fe=null):Qe=fe.sibling;var xt=G(L,fe,Se.value,Z);if(xt===null){fe===null&&(fe=Qe);break}e&&fe&&xt.alternate===null&&n(L,fe),N=l(xt,N,ye),pe===null?ce=xt:pe.sibling=xt,pe=xt,fe=Qe}if(Se.done)return o(L,fe),Me&&Dt(L,ye),ce;if(fe===null){for(;!Se.done;ye++,Se=T.next())Se=K(L,Se.value,Z),Se!==null&&(N=l(Se,N,ye),pe===null?ce=Se:pe.sibling=Se,pe=Se);return Me&&Dt(L,ye),ce}for(fe=r(L,fe);!Se.done;ye++,Se=T.next())Se=oe(fe,L,ye,Se.value,Z),Se!==null&&(e&&Se.alternate!==null&&fe.delete(Se.key===null?ye:Se.key),N=l(Se,N,ye),pe===null?ce=Se:pe.sibling=Se,pe=Se);return e&&fe.forEach(function(L4){return n(L,L4)}),Me&&Dt(L,ye),ce}function $e(L,N,T,Z){if(typeof T=="object"&&T!==null&&T.type===B&&T.key===null&&(T=T.props.children),typeof T=="object"&&T!==null){switch(T.$$typeof){case te:e:{for(var ce=T.key,pe=N;pe!==null;){if(pe.key===ce){if(ce=T.type,ce===B){if(pe.tag===7){o(L,pe.sibling),N=a(pe,T.props.children),N.return=L,L=N;break e}}else if(pe.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===_e&&Bu(ce)===pe.type){o(L,pe.sibling),N=a(pe,T.props),N.ref=ri(L,pe,T),N.return=L,L=N;break e}o(L,pe);break}else n(L,pe);pe=pe.sibling}T.type===B?(N=Ot(T.props.children,L.mode,Z,T.key),N.return=L,L=N):(Z=Ur(T.type,T.key,T.props,null,L.mode,Z),Z.ref=ri(L,N,T),Z.return=L,L=Z)}return f(L);case J:e:{for(pe=T.key;N!==null;){if(N.key===pe)if(N.tag===4&&N.stateNode.containerInfo===T.containerInfo&&N.stateNode.implementation===T.implementation){o(L,N.sibling),N=a(N,T.children||[]),N.return=L,L=N;break e}else{o(L,N);break}else n(L,N);N=N.sibling}N=Pc(T,L.mode,Z),N.return=L,L=N}return f(L);case _e:return pe=T._init,$e(L,N,pe(T._payload),Z)}if(Ro(T))return se(L,N,T,Z);if(ee(T))return ae(L,N,T,Z);gr(L,T)}return typeof T=="string"&&T!==""||typeof T=="number"?(T=""+T,N!==null&&N.tag===6?(o(L,N.sibling),N=a(N,T),N.return=L,L=N):(o(L,N),N=Cc(T,L.mode,Z),N.return=L,L=N),f(L)):o(L,N)}return $e}var ao=$u(!0),Wu=$u(!1),vr=ut(null),yr=null,co=null,Fa=null;function Ia(){Fa=co=yr=null}function Oa(e){var n=vr.current;Ae(vr),e._currentValue=n}function Ua(e,n,o){for(;e!==null;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,r!==null&&(r.childLanes|=n)):r!==null&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===o)break;e=e.return}}function lo(e,n){yr=e,Fa=co=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&n)!==0&&(fn=!0),e.firstContext=null)}function bn(e){var n=e._currentValue;if(Fa!==e)if(e={context:e,memoizedValue:n,next:null},co===null){if(yr===null)throw Error(u(308));co=e,yr.dependencies={lanes:0,firstContext:e}}else co=co.next=e;return n}var Tt=null;function Ba(e){Tt===null?Tt=[e]:Tt.push(e)}function Gu(e,n,o,r){var a=n.interleaved;return a===null?(o.next=o,Ba(n)):(o.next=a.next,a.next=o),n.interleaved=o,Xn(e,r)}function Xn(e,n){e.lanes|=n;var o=e.alternate;for(o!==null&&(o.lanes|=n),o=e,e=e.return;e!==null;)e.childLanes|=n,o=e.alternate,o!==null&&(o.childLanes|=n),o=e,e=e.return;return o.tag===3?o.stateNode:null}var ft=!1;function $a(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vu(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Jn(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function ht(e,n,o){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(Ne&2)!==0){var a=r.pending;return a===null?n.next=n:(n.next=a.next,a.next=n),r.pending=n,Xn(e,o)}return a=r.interleaved,a===null?(n.next=n,Ba(r)):(n.next=a.next,a.next=n),r.interleaved=n,Xn(e,o)}function _r(e,n,o){if(n=n.updateQueue,n!==null&&(n=n.shared,(o&4194240)!==0)){var r=n.lanes;r&=e.pendingLanes,o|=r,n.lanes=o,ta(e,o)}}function Hu(e,n){var o=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,o===r)){var a=null,l=null;if(o=o.firstBaseUpdate,o!==null){do{var f={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};l===null?a=l=f:l=l.next=f,o=o.next}while(o!==null);l===null?a=l=n:l=l.next=n}else a=l=n;o={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=n:e.next=n,o.lastBaseUpdate=n}function kr(e,n,o,r){var a=e.updateQueue;ft=!1;var l=a.firstBaseUpdate,f=a.lastBaseUpdate,y=a.shared.pending;if(y!==null){a.shared.pending=null;var j=y,z=j.next;j.next=null,f===null?l=z:f.next=z,f=j;var V=e.alternate;V!==null&&(V=V.updateQueue,y=V.lastBaseUpdate,y!==f&&(y===null?V.firstBaseUpdate=z:y.next=z,V.lastBaseUpdate=j))}if(l!==null){var K=a.baseState;f=0,V=z=j=null,y=l;do{var G=y.lane,oe=y.eventTime;if((r&G)===G){V!==null&&(V=V.next={eventTime:oe,lane:0,tag:y.tag,payload:y.payload,callback:y.callback,next:null});e:{var se=e,ae=y;switch(G=n,oe=o,ae.tag){case 1:if(se=ae.payload,typeof se=="function"){K=se.call(oe,K,G);break e}K=se;break e;case 3:se.flags=se.flags&-65537|128;case 0:if(se=ae.payload,G=typeof se=="function"?se.call(oe,K,G):se,G==null)break e;K=Q({},K,G);break e;case 2:ft=!0}}y.callback!==null&&y.lane!==0&&(e.flags|=64,G=a.effects,G===null?a.effects=[y]:G.push(y))}else oe={eventTime:oe,lane:G,tag:y.tag,payload:y.payload,callback:y.callback,next:null},V===null?(z=V=oe,j=K):V=V.next=oe,f|=G;if(y=y.next,y===null){if(y=a.shared.pending,y===null)break;G=y,y=G.next,G.next=null,a.lastBaseUpdate=G,a.shared.pending=null}}while(!0);if(V===null&&(j=K),a.baseState=j,a.firstBaseUpdate=z,a.lastBaseUpdate=V,n=a.shared.interleaved,n!==null){a=n;do f|=a.lane,a=a.next;while(a!==n)}else l===null&&(a.shared.lanes=0);zt|=f,e.lanes=f,e.memoizedState=K}}function Ku(e,n,o){if(e=n.effects,n.effects=null,e!==null)for(n=0;n<e.length;n++){var r=e[n],a=r.callback;if(a!==null){if(r.callback=null,r=o,typeof a!="function")throw Error(u(191,a));a.call(r)}}}var si={},Gn=ut(si),ai=ut(si),ci=ut(si);function At(e){if(e===si)throw Error(u(174));return e}function Wa(e,n){switch(Ee(ci,n),Ee(ai,e),Ee(Gn,si),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:Gs(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=Gs(n,e)}Ae(Gn),Ee(Gn,n)}function uo(){Ae(Gn),Ae(ai),Ae(ci)}function Yu(e){At(ci.current);var n=At(Gn.current),o=Gs(n,e.type);n!==o&&(Ee(ai,e),Ee(Gn,o))}function Ga(e){ai.current===e&&(Ae(Gn),Ae(ai))}var Fe=ut(0);function xr(e){for(var n=e;n!==null;){if(n.tag===13){var o=n.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Va=[];function Ha(){for(var e=0;e<Va.length;e++)Va[e]._workInProgressVersionPrimary=null;Va.length=0}var wr=O.ReactCurrentDispatcher,Ka=O.ReactCurrentBatchConfig,Rt=0,Ie=null,He=null,Ye=null,jr=!1,li=!1,ui=0,Zf=0;function tn(){throw Error(u(321))}function Ya(e,n){if(n===null)return!1;for(var o=0;o<n.length&&o<e.length;o++)if(!En(e[o],n[o]))return!1;return!0}function qa(e,n,o,r,a,l){if(Rt=l,Ie=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,wr.current=e===null||e.memoizedState===null?n4:t4,e=o(r,a),li){l=0;do{if(li=!1,ui=0,25<=l)throw Error(u(301));l+=1,Ye=He=null,n.updateQueue=null,wr.current=o4,e=o(r,a)}while(li)}if(wr.current=Sr,n=He!==null&&He.next!==null,Rt=0,Ye=He=Ie=null,jr=!1,n)throw Error(u(300));return e}function Qa(){var e=ui!==0;return ui=0,e}function Vn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ye===null?Ie.memoizedState=Ye=e:Ye=Ye.next=e,Ye}function Nn(){if(He===null){var e=Ie.alternate;e=e!==null?e.memoizedState:null}else e=He.next;var n=Ye===null?Ie.memoizedState:Ye.next;if(n!==null)Ye=n,He=e;else{if(e===null)throw Error(u(310));He=e,e={memoizedState:He.memoizedState,baseState:He.baseState,baseQueue:He.baseQueue,queue:He.queue,next:null},Ye===null?Ie.memoizedState=Ye=e:Ye=Ye.next=e}return Ye}function di(e,n){return typeof n=="function"?n(e):n}function Za(e){var n=Nn(),o=n.queue;if(o===null)throw Error(u(311));o.lastRenderedReducer=e;var r=He,a=r.baseQueue,l=o.pending;if(l!==null){if(a!==null){var f=a.next;a.next=l.next,l.next=f}r.baseQueue=a=l,o.pending=null}if(a!==null){l=a.next,r=r.baseState;var y=f=null,j=null,z=l;do{var V=z.lane;if((Rt&V)===V)j!==null&&(j=j.next={lane:0,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),r=z.hasEagerState?z.eagerState:e(r,z.action);else{var K={lane:V,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null};j===null?(y=j=K,f=r):j=j.next=K,Ie.lanes|=V,zt|=V}z=z.next}while(z!==null&&z!==l);j===null?f=r:j.next=y,En(r,n.memoizedState)||(fn=!0),n.memoizedState=r,n.baseState=f,n.baseQueue=j,o.lastRenderedState=r}if(e=o.interleaved,e!==null){a=e;do l=a.lane,Ie.lanes|=l,zt|=l,a=a.next;while(a!==e)}else a===null&&(o.lanes=0);return[n.memoizedState,o.dispatch]}function Xa(e){var n=Nn(),o=n.queue;if(o===null)throw Error(u(311));o.lastRenderedReducer=e;var r=o.dispatch,a=o.pending,l=n.memoizedState;if(a!==null){o.pending=null;var f=a=a.next;do l=e(l,f.action),f=f.next;while(f!==a);En(l,n.memoizedState)||(fn=!0),n.memoizedState=l,n.baseQueue===null&&(n.baseState=l),o.lastRenderedState=l}return[l,r]}function qu(){}function Qu(e,n){var o=Ie,r=Nn(),a=n(),l=!En(r.memoizedState,a);if(l&&(r.memoizedState=a,fn=!0),r=r.queue,Ja(Ju.bind(null,o,r,e),[e]),r.getSnapshot!==n||l||Ye!==null&&Ye.memoizedState.tag&1){if(o.flags|=2048,pi(9,Xu.bind(null,o,r,a,n),void 0,null),qe===null)throw Error(u(349));(Rt&30)!==0||Zu(o,n,a)}return a}function Zu(e,n,o){e.flags|=16384,e={getSnapshot:n,value:o},n=Ie.updateQueue,n===null?(n={lastEffect:null,stores:null},Ie.updateQueue=n,n.stores=[e]):(o=n.stores,o===null?n.stores=[e]:o.push(e))}function Xu(e,n,o,r){n.value=o,n.getSnapshot=r,ed(n)&&nd(e)}function Ju(e,n,o){return o(function(){ed(n)&&nd(e)})}function ed(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!En(e,o)}catch{return!0}}function nd(e){var n=Xn(e,1);n!==null&&zn(n,e,1,-1)}function td(e){var n=Vn();return typeof e=="function"&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:di,lastRenderedState:e},n.queue=e,e=e.dispatch=e4.bind(null,Ie,e),[n.memoizedState,e]}function pi(e,n,o,r){return e={tag:e,create:n,destroy:o,deps:r,next:null},n=Ie.updateQueue,n===null?(n={lastEffect:null,stores:null},Ie.updateQueue=n,n.lastEffect=e.next=e):(o=n.lastEffect,o===null?n.lastEffect=e.next=e:(r=o.next,o.next=e,e.next=r,n.lastEffect=e)),e}function od(){return Nn().memoizedState}function br(e,n,o,r){var a=Vn();Ie.flags|=e,a.memoizedState=pi(1|n,o,void 0,r===void 0?null:r)}function Nr(e,n,o,r){var a=Nn();r=r===void 0?null:r;var l=void 0;if(He!==null){var f=He.memoizedState;if(l=f.destroy,r!==null&&Ya(r,f.deps)){a.memoizedState=pi(n,o,l,r);return}}Ie.flags|=e,a.memoizedState=pi(1|n,o,l,r)}function id(e,n){return br(8390656,8,e,n)}function Ja(e,n){return Nr(2048,8,e,n)}function rd(e,n){return Nr(4,2,e,n)}function sd(e,n){return Nr(4,4,e,n)}function ad(e,n){if(typeof n=="function")return e=e(),n(e),function(){n(null)};if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function cd(e,n,o){return o=o!=null?o.concat([e]):null,Nr(4,4,ad.bind(null,n,e),o)}function ec(){}function ld(e,n){var o=Nn();n=n===void 0?null:n;var r=o.memoizedState;return r!==null&&n!==null&&Ya(n,r[1])?r[0]:(o.memoizedState=[e,n],e)}function ud(e,n){var o=Nn();n=n===void 0?null:n;var r=o.memoizedState;return r!==null&&n!==null&&Ya(n,r[1])?r[0]:(e=e(),o.memoizedState=[e,n],e)}function dd(e,n,o){return(Rt&21)===0?(e.baseState&&(e.baseState=!1,fn=!0),e.memoizedState=o):(En(o,n)||(o=B1(),Ie.lanes|=o,zt|=o,e.baseState=!0),n)}function Xf(e,n){var o=Pe;Pe=o!==0&&4>o?o:4,e(!0);var r=Ka.transition;Ka.transition={};try{e(!1),n()}finally{Pe=o,Ka.transition=r}}function pd(){return Nn().memoizedState}function Jf(e,n,o){var r=yt(e);if(o={lane:r,action:o,hasEagerState:!1,eagerState:null,next:null},fd(e))hd(n,o);else if(o=Gu(e,n,o,r),o!==null){var a=cn();zn(o,e,r,a),md(o,n,r)}}function e4(e,n,o){var r=yt(e),a={lane:r,action:o,hasEagerState:!1,eagerState:null,next:null};if(fd(e))hd(n,a);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=n.lastRenderedReducer,l!==null))try{var f=n.lastRenderedState,y=l(f,o);if(a.hasEagerState=!0,a.eagerState=y,En(y,f)){var j=n.interleaved;j===null?(a.next=a,Ba(n)):(a.next=j.next,j.next=a),n.interleaved=a;return}}catch{}finally{}o=Gu(e,n,a,r),o!==null&&(a=cn(),zn(o,e,r,a),md(o,n,r))}}function fd(e){var n=e.alternate;return e===Ie||n!==null&&n===Ie}function hd(e,n){li=jr=!0;var o=e.pending;o===null?n.next=n:(n.next=o.next,o.next=n),e.pending=n}function md(e,n,o){if((o&4194240)!==0){var r=n.lanes;r&=e.pendingLanes,o|=r,n.lanes=o,ta(e,o)}}var Sr={readContext:bn,useCallback:tn,useContext:tn,useEffect:tn,useImperativeHandle:tn,useInsertionEffect:tn,useLayoutEffect:tn,useMemo:tn,useReducer:tn,useRef:tn,useState:tn,useDebugValue:tn,useDeferredValue:tn,useTransition:tn,useMutableSource:tn,useSyncExternalStore:tn,useId:tn,unstable_isNewReconciler:!1},n4={readContext:bn,useCallback:function(e,n){return Vn().memoizedState=[e,n===void 0?null:n],e},useContext:bn,useEffect:id,useImperativeHandle:function(e,n,o){return o=o!=null?o.concat([e]):null,br(4194308,4,ad.bind(null,n,e),o)},useLayoutEffect:function(e,n){return br(4194308,4,e,n)},useInsertionEffect:function(e,n){return br(4,2,e,n)},useMemo:function(e,n){var o=Vn();return n=n===void 0?null:n,e=e(),o.memoizedState=[e,n],e},useReducer:function(e,n,o){var r=Vn();return n=o!==void 0?o(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=Jf.bind(null,Ie,e),[r.memoizedState,e]},useRef:function(e){var n=Vn();return e={current:e},n.memoizedState=e},useState:td,useDebugValue:ec,useDeferredValue:function(e){return Vn().memoizedState=e},useTransition:function(){var e=td(!1),n=e[0];return e=Xf.bind(null,e[1]),Vn().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,o){var r=Ie,a=Vn();if(Me){if(o===void 0)throw Error(u(407));o=o()}else{if(o=n(),qe===null)throw Error(u(349));(Rt&30)!==0||Zu(r,n,o)}a.memoizedState=o;var l={value:o,getSnapshot:n};return a.queue=l,id(Ju.bind(null,r,l,e),[e]),r.flags|=2048,pi(9,Xu.bind(null,r,l,o,n),void 0,null),o},useId:function(){var e=Vn(),n=qe.identifierPrefix;if(Me){var o=Zn,r=Qn;o=(r&~(1<<32-Ln(r)-1)).toString(32)+o,n=":"+n+"R"+o,o=ui++,0<o&&(n+="H"+o.toString(32)),n+=":"}else o=Zf++,n=":"+n+"r"+o.toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},t4={readContext:bn,useCallback:ld,useContext:bn,useEffect:Ja,useImperativeHandle:cd,useInsertionEffect:rd,useLayoutEffect:sd,useMemo:ud,useReducer:Za,useRef:od,useState:function(){return Za(di)},useDebugValue:ec,useDeferredValue:function(e){var n=Nn();return dd(n,He.memoizedState,e)},useTransition:function(){var e=Za(di)[0],n=Nn().memoizedState;return[e,n]},useMutableSource:qu,useSyncExternalStore:Qu,useId:pd,unstable_isNewReconciler:!1},o4={readContext:bn,useCallback:ld,useContext:bn,useEffect:Ja,useImperativeHandle:cd,useInsertionEffect:rd,useLayoutEffect:sd,useMemo:ud,useReducer:Xa,useRef:od,useState:function(){return Xa(di)},useDebugValue:ec,useDeferredValue:function(e){var n=Nn();return He===null?n.memoizedState=e:dd(n,He.memoizedState,e)},useTransition:function(){var e=Xa(di)[0],n=Nn().memoizedState;return[e,n]},useMutableSource:qu,useSyncExternalStore:Qu,useId:pd,unstable_isNewReconciler:!1};function Tn(e,n){if(e&&e.defaultProps){n=Q({},n),e=e.defaultProps;for(var o in e)n[o]===void 0&&(n[o]=e[o]);return n}return n}function nc(e,n,o,r){n=e.memoizedState,o=o(r,n),o=o==null?n:Q({},n,o),e.memoizedState=o,e.lanes===0&&(e.updateQueue.baseState=o)}var Cr={isMounted:function(e){return(e=e._reactInternals)?Ct(e)===e:!1},enqueueSetState:function(e,n,o){e=e._reactInternals;var r=cn(),a=yt(e),l=Jn(r,a);l.payload=n,o!=null&&(l.callback=o),n=ht(e,l,a),n!==null&&(zn(n,e,a,r),_r(n,e,a))},enqueueReplaceState:function(e,n,o){e=e._reactInternals;var r=cn(),a=yt(e),l=Jn(r,a);l.tag=1,l.payload=n,o!=null&&(l.callback=o),n=ht(e,l,a),n!==null&&(zn(n,e,a,r),_r(n,e,a))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var o=cn(),r=yt(e),a=Jn(o,r);a.tag=2,n!=null&&(a.callback=n),n=ht(e,a,r),n!==null&&(zn(n,e,r,o),_r(n,e,r))}};function gd(e,n,o,r,a,l,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,f):n.prototype&&n.prototype.isPureReactComponent?!Xo(o,r)||!Xo(a,l):!0}function vd(e,n,o){var r=!1,a=dt,l=n.contextType;return typeof l=="object"&&l!==null?l=bn(l):(a=pn(n)?Lt:nn.current,r=n.contextTypes,l=(r=r!=null)?oo(e,a):dt),n=new n(o,l),e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=Cr,e.stateNode=n,n._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=l),n}function yd(e,n,o,r){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(o,r),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(o,r),n.state!==e&&Cr.enqueueReplaceState(n,n.state,null)}function tc(e,n,o,r){var a=e.stateNode;a.props=o,a.state=e.memoizedState,a.refs={},$a(e);var l=n.contextType;typeof l=="object"&&l!==null?a.context=bn(l):(l=pn(n)?Lt:nn.current,a.context=oo(e,l)),a.state=e.memoizedState,l=n.getDerivedStateFromProps,typeof l=="function"&&(nc(e,n,l,o),a.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(n=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),n!==a.state&&Cr.enqueueReplaceState(a,a.state,null),kr(e,o,a,r),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}function po(e,n){try{var o="",r=n;do o+=ge(r),r=r.return;while(r);var a=o}catch(l){a=`36 `),f=a.length-1,y=l.length-1;1<=f&&0<=y&&a[f]!==l[y];)y--;for(;1<=f&&0<=y;f--,y--)if(a[f]!==l[y]){if(f!==1||y!==1)do if(f--,y--,0>y||a[f]!==l[y]){var w=` 37 `+a[f].replace(" at new "," at ");return e.displayName&&w.includes("<anonymous>")&&(w=w.replace("<anonymous>",e.displayName)),w}while(1<=f&&0<=y);break}}}finally{re=!1,Error.prepareStackTrace=o}return(e=e?e.displayName||e.name:"")?$(e):""}function ve(e){switch(e.tag){case 5:return $(e.type);case 16:return $("Lazy");case 13:return $("Suspense");case 19:return $("SuspenseList");case 0:case 2:case 15:return e=pe(e.type,!1),e;case 11:return e=pe(e.type.render,!1),e;case 1:return e=pe(e.type,!0),e;default:return""}}function xe(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case B:return"Fragment";case J:return"Portal";case q:return"Profiler";case X:return"StrictMode";case ge:return"Suspense";case ne:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case te:return(e.displayName||"Context")+".Consumer";case W:return(e._context.displayName||"Context")+".Provider";case ue:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case de:return n=e.displayName||null,n!==null?n:xe(e.type)||"Memo";case F:n=e._payload,e=e._init;try{return xe(e(n))}catch{}}return null}function M(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return xe(n);case 8:return n===X?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function fe(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Ve(e){var n=fe(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var a=o.get,l=o.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return a.call(this)},set:function(f){r=""+f,l.call(this,f)}}),Object.defineProperty(e,n,{enumerable:o.enumerable}),{getValue:function(){return r},setValue:function(f){r=""+f},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function De(e){e._valueTracker||(e._valueTracker=Ve(e))}function Ao(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var o=n.getValue(),r="";return e&&(r=fe(e)?e.checked?"true":"false":e.value),e=r,e!==o?(n.setValue(e),!0):!1}function Oi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Us(e,n){var o=n.checked;return Q({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??e._wrapperState.initialChecked})}function v1(e,n){var o=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;o=H(n.value!=null?n.value:o),e._wrapperState={initialChecked:r,initialValue:o,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function y1(e,n){n=n.checked,n!=null&&R(e,"checked",n,!1)}function Bs(e,n){y1(e,n);var o=H(n.value),r=n.type;if(o!=null)r==="number"?(o===0&&e.value===""||e.value!=o)&&(e.value=""+o):e.value!==""+o&&(e.value=""+o);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?$s(e,n.type,o):n.hasOwnProperty("defaultValue")&&$s(e,n.type,H(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function _1(e,n,o){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!(r!=="submit"&&r!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,o||n===e.value||(e.value=n),e.defaultValue=n}o=e.name,o!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,o!==""&&(e.name=o)}function $s(e,n,o){(n!=="number"||Oi(e.ownerDocument)!==e)&&(o==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+o&&(e.defaultValue=""+o))}var Ro=Array.isArray;function Vt(e,n,o,r){if(e=e.options,n){n={};for(var a=0;a<o.length;a++)n["$"+o[a]]=!0;for(o=0;o<e.length;o++)a=n.hasOwnProperty("$"+e[o].value),e[o].selected!==a&&(e[o].selected=a),a&&r&&(e[o].defaultSelected=!0)}else{for(o=""+H(o),n=null,a=0;a<e.length;a++){if(e[a].value===o){e[a].selected=!0,r&&(e[a].defaultSelected=!0);return}n!==null||e[a].disabled||(n=e[a])}n!==null&&(n.selected=!0)}}function Ws(e,n){if(n.dangerouslySetInnerHTML!=null)throw Error(u(91));return Q({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function k1(e,n){var o=n.value;if(o==null){if(o=n.children,n=n.defaultValue,o!=null){if(n!=null)throw Error(u(92));if(Ro(o)){if(1<o.length)throw Error(u(93));o=o[0]}n=o}n==null&&(n=""),o=n}e._wrapperState={initialValue:H(o)}}function x1(e,n){var o=H(n.value),r=H(n.defaultValue);o!=null&&(o=""+o,o!==e.value&&(e.value=o),n.defaultValue==null&&e.defaultValue!==o&&(e.defaultValue=o)),r!=null&&(e.defaultValue=""+r)}function j1(e){var n=e.textContent;n===e._wrapperState.initialValue&&n!==""&&n!==null&&(e.value=n)}function w1(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Gs(e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?w1(n):e==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ui,b1=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,o,r,a){MSApp.execUnsafeLocalFunction(function(){return e(n,o,r,a)})}:e})(function(e,n){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=n;else{for(Ui=Ui||document.createElement("div"),Ui.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=Ui.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function zo(e,n){if(n){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=n;return}}e.textContent=n}var Mo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},R0=["Webkit","ms","Moz","O"];Object.keys(Mo).forEach(function(e){R0.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),Mo[n]=Mo[e]})});function N1(e,n,o){return n==null||typeof n=="boolean"||n===""?"":o||typeof n!="number"||n===0||Mo.hasOwnProperty(e)&&Mo[e]?(""+n).trim():n+"px"}function S1(e,n){e=e.style;for(var o in n)if(n.hasOwnProperty(o)){var r=o.indexOf("--")===0,a=N1(o,n[o],r);o==="float"&&(o="cssFloat"),r?e.setProperty(o,a):e[o]=a}}var z0=Q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Vs(e,n){if(n){if(z0[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(u(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(u(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(u(61))}if(n.style!=null&&typeof n.style!="object")throw Error(u(62))}}function Hs(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ks=null;function Ys(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var qs=null,Ht=null,Kt=null;function C1(e){if(e=ii(e)){if(typeof qs!="function")throw Error(u(280));var n=e.stateNode;n&&(n=lr(n),qs(e.stateNode,e.type,n))}}function P1(e){Ht?Kt?Kt.push(e):Kt=[e]:Ht=e}function L1(){if(Ht){var e=Ht,n=Kt;if(Kt=Ht=null,C1(e),n)for(e=0;e<n.length;e++)C1(n[e])}}function E1(e,n){return e(n)}function D1(){}var Qs=!1;function T1(e,n,o){if(Qs)return e(n,o);Qs=!0;try{return E1(e,n,o)}finally{Qs=!1,(Ht!==null||Kt!==null)&&(D1(),L1())}}function Fo(e,n){var o=e.stateNode;if(o===null)return null;var r=lr(o);if(r===null)return null;o=r[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(o&&typeof o!="function")throw Error(u(231,n,typeof o));return o}var Zs=!1;if(x)try{var Io={};Object.defineProperty(Io,"passive",{get:function(){Zs=!0}}),window.addEventListener("test",Io,Io),window.removeEventListener("test",Io,Io)}catch{Zs=!1}function M0(e,n,o,r,a,l,f,y,w){var z=Array.prototype.slice.call(arguments,3);try{n.apply(o,z)}catch(V){this.onError(V)}}var Oo=!1,Bi=null,$i=!1,Xs=null,F0={onError:function(e){Oo=!0,Bi=e}};function I0(e,n,o,r,a,l,f,y,w){Oo=!1,Bi=null,M0.apply(F0,arguments)}function O0(e,n,o,r,a,l,f,y,w){if(I0.apply(this,arguments),Oo){if(Oo){var z=Bi;Oo=!1,Bi=null}else throw Error(u(198));$i||($i=!0,Xs=z)}}function Ct(e){var n=e,o=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(o=n.return),e=n.return;while(e)}return n.tag===3?o:null}function A1(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function R1(e){if(Ct(e)!==e)throw Error(u(188))}function U0(e){var n=e.alternate;if(!n){if(n=Ct(e),n===null)throw Error(u(188));return n!==e?null:e}for(var o=e,r=n;;){var a=o.return;if(a===null)break;var l=a.alternate;if(l===null){if(r=a.return,r!==null){o=r;continue}break}if(a.child===l.child){for(l=a.child;l;){if(l===o)return R1(a),e;if(l===r)return R1(a),n;l=l.sibling}throw Error(u(188))}if(o.return!==r.return)o=a,r=l;else{for(var f=!1,y=a.child;y;){if(y===o){f=!0,o=a,r=l;break}if(y===r){f=!0,r=a,o=l;break}y=y.sibling}if(!f){for(y=l.child;y;){if(y===o){f=!0,o=l,r=a;break}if(y===r){f=!0,r=l,o=a;break}y=y.sibling}if(!f)throw Error(u(189))}}if(o.alternate!==r)throw Error(u(190))}if(o.tag!==3)throw Error(u(188));return o.stateNode.current===o?e:n}function z1(e){return e=U0(e),e!==null?M1(e):null}function M1(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var n=M1(e);if(n!==null)return n;e=e.sibling}return null}var F1=c.unstable_scheduleCallback,I1=c.unstable_cancelCallback,B0=c.unstable_shouldYield,$0=c.unstable_requestPaint,Be=c.unstable_now,W0=c.unstable_getCurrentPriorityLevel,Js=c.unstable_ImmediatePriority,O1=c.unstable_UserBlockingPriority,Wi=c.unstable_NormalPriority,G0=c.unstable_LowPriority,U1=c.unstable_IdlePriority,Gi=null,$n=null;function V0(e){if($n&&typeof $n.onCommitFiberRoot=="function")try{$n.onCommitFiberRoot(Gi,e,void 0,(e.current.flags&128)===128)}catch{}}var Ln=Math.clz32?Math.clz32:Y0,H0=Math.log,K0=Math.LN2;function Y0(e){return e>>>=0,e===0?32:31-(H0(e)/K0|0)|0}var Vi=64,Hi=4194304;function Uo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ki(e,n){var o=e.pendingLanes;if(o===0)return 0;var r=0,a=e.suspendedLanes,l=e.pingedLanes,f=o&268435455;if(f!==0){var y=f&~a;y!==0?r=Uo(y):(l&=f,l!==0&&(r=Uo(l)))}else f=o&~a,f!==0?r=Uo(f):l!==0&&(r=Uo(l));if(r===0)return 0;if(n!==0&&n!==r&&(n&a)===0&&(a=r&-r,l=n&-n,a>=l||a===16&&(l&4194240)!==0))return n;if((r&4)!==0&&(r|=o&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=r;0<n;)o=31-Ln(n),a=1<<o,r|=e[o],n&=~a;return r}function q0(e,n){switch(e){case 1:case 2:case 4:return n+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Q0(e,n){for(var o=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,l=e.pendingLanes;0<l;){var f=31-Ln(l),y=1<<f,w=a[f];w===-1?((y&o)===0||(y&r)!==0)&&(a[f]=q0(y,n)):w<=n&&(e.expiredLanes|=y),l&=~y}}function ea(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function B1(){var e=Vi;return Vi<<=1,(Vi&4194240)===0&&(Vi=64),e}function na(e){for(var n=[],o=0;31>o;o++)n.push(e);return n}function Bo(e,n,o){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-Ln(n),e[n]=o}function Z0(e,n){var o=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<o;){var a=31-Ln(o),l=1<<a;n[a]=0,r[a]=-1,e[a]=-1,o&=~l}}function ta(e,n){var o=e.entangledLanes|=n;for(e=e.entanglements;o;){var r=31-Ln(o),a=1<<r;a&n|e[r]&n&&(e[r]|=n),o&=~a}}var Pe=0;function $1(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var W1,oa,G1,V1,H1,ia=!1,Yi=[],ot=null,it=null,rt=null,$o=new Map,Wo=new Map,st=[],X0="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function K1(e,n){switch(e){case"focusin":case"focusout":ot=null;break;case"dragenter":case"dragleave":it=null;break;case"mouseover":case"mouseout":rt=null;break;case"pointerover":case"pointerout":$o.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wo.delete(n.pointerId)}}function Go(e,n,o,r,a,l){return e===null||e.nativeEvent!==l?(e={blockedOn:n,domEventName:o,eventSystemFlags:r,nativeEvent:l,targetContainers:[a]},n!==null&&(n=ii(n),n!==null&&oa(n)),e):(e.eventSystemFlags|=r,n=e.targetContainers,a!==null&&n.indexOf(a)===-1&&n.push(a),e)}function J0(e,n,o,r,a){switch(n){case"focusin":return ot=Go(ot,e,n,o,r,a),!0;case"dragenter":return it=Go(it,e,n,o,r,a),!0;case"mouseover":return rt=Go(rt,e,n,o,r,a),!0;case"pointerover":var l=a.pointerId;return $o.set(l,Go($o.get(l)||null,e,n,o,r,a)),!0;case"gotpointercapture":return l=a.pointerId,Wo.set(l,Go(Wo.get(l)||null,e,n,o,r,a)),!0}return!1}function Y1(e){var n=Pt(e.target);if(n!==null){var o=Ct(n);if(o!==null){if(n=o.tag,n===13){if(n=A1(o),n!==null){e.blockedOn=n,H1(e.priority,function(){G1(o)});return}}else if(n===3&&o.stateNode.current.memoizedState.isDehydrated){e.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}e.blockedOn=null}function qi(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var o=sa(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(o===null){o=e.nativeEvent;var r=new o.constructor(o.type,o);Ks=r,o.target.dispatchEvent(r),Ks=null}else return n=ii(o),n!==null&&oa(n),e.blockedOn=o,!1;n.shift()}return!0}function q1(e,n,o){qi(e)&&o.delete(n)}function ef(){ia=!1,ot!==null&&qi(ot)&&(ot=null),it!==null&&qi(it)&&(it=null),rt!==null&&qi(rt)&&(rt=null),$o.forEach(q1),Wo.forEach(q1)}function Vo(e,n){e.blockedOn===n&&(e.blockedOn=null,ia||(ia=!0,c.unstable_scheduleCallback(c.unstable_NormalPriority,ef)))}function Ho(e){function n(a){return Vo(a,e)}if(0<Yi.length){Vo(Yi[0],e);for(var o=1;o<Yi.length;o++){var r=Yi[o];r.blockedOn===e&&(r.blockedOn=null)}}for(ot!==null&&Vo(ot,e),it!==null&&Vo(it,e),rt!==null&&Vo(rt,e),$o.forEach(n),Wo.forEach(n),o=0;o<st.length;o++)r=st[o],r.blockedOn===e&&(r.blockedOn=null);for(;0<st.length&&(o=st[0],o.blockedOn===null);)Y1(o),o.blockedOn===null&&st.shift()}var Yt=O.ReactCurrentBatchConfig,Qi=!0;function nf(e,n,o,r){var a=Pe,l=Yt.transition;Yt.transition=null;try{Pe=1,ra(e,n,o,r)}finally{Pe=a,Yt.transition=l}}function tf(e,n,o,r){var a=Pe,l=Yt.transition;Yt.transition=null;try{Pe=4,ra(e,n,o,r)}finally{Pe=a,Yt.transition=l}}function ra(e,n,o,r){if(Qi){var a=sa(e,n,o,r);if(a===null)wa(e,n,r,Zi,o),K1(e,r);else if(J0(a,e,n,o,r))r.stopPropagation();else if(K1(e,r),n&4&&-1<X0.indexOf(e)){for(;a!==null;){var l=ii(a);if(l!==null&&W1(l),l=sa(e,n,o,r),l===null&&wa(e,n,r,Zi,o),l===a)break;a=l}a!==null&&r.stopPropagation()}else wa(e,n,r,null,o)}}var Zi=null;function sa(e,n,o,r){if(Zi=null,e=Ys(r),e=Pt(e),e!==null)if(n=Ct(e),n===null)e=null;else if(o=n.tag,o===13){if(e=A1(n),e!==null)return e;e=null}else if(o===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null);return Zi=e,null}function Q1(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(W0()){case Js:return 1;case O1:return 4;case Wi:case G0:return 16;case U1:return 536870912;default:return 16}default:return 16}}var at=null,aa=null,Xi=null;function Z1(){if(Xi)return Xi;var e,n=aa,o=n.length,r,a="value"in at?at.value:at.textContent,l=a.length;for(e=0;e<o&&n[e]===a[e];e++);var f=o-e;for(r=1;r<=f&&n[o-r]===a[l-r];r++);return Xi=a.slice(e,1<r?1-r:void 0)}function Ji(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function er(){return!0}function X1(){return!1}function yn(e){function n(o,r,a,l,f){this._reactName=o,this._targetInst=a,this.type=r,this.nativeEvent=l,this.target=f,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(o=e[y],this[y]=o?o(l):l[y]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?er:X1,this.isPropagationStopped=X1,this}return Q(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=er)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=er)},persist:function(){},isPersistent:er}),n}var qt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ca=yn(qt),Ko=Q({},qt,{view:0,detail:0}),of=yn(Ko),la,ua,Yo,nr=Q({},Ko,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pa,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Yo&&(Yo&&e.type==="mousemove"?(la=e.screenX-Yo.screenX,ua=e.screenY-Yo.screenY):ua=la=0,Yo=e),la)},movementY:function(e){return"movementY"in e?e.movementY:ua}}),J1=yn(nr),rf=Q({},nr,{dataTransfer:0}),sf=yn(rf),af=Q({},Ko,{relatedTarget:0}),da=yn(af),cf=Q({},qt,{animationName:0,elapsedTime:0,pseudoElement:0}),lf=yn(cf),uf=Q({},qt,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),df=yn(uf),pf=Q({},qt,{data:0}),eu=yn(pf),ff={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hf={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},mf={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gf(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=mf[e])?!!n[e]:!1}function pa(){return gf}var vf=Q({},Ko,{key:function(e){if(e.key){var n=ff[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Ji(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?hf[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pa,charCode:function(e){return e.type==="keypress"?Ji(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ji(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),yf=yn(vf),_f=Q({},nr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),nu=yn(_f),kf=Q({},Ko,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pa}),xf=yn(kf),jf=Q({},qt,{propertyName:0,elapsedTime:0,pseudoElement:0}),wf=yn(jf),bf=Q({},nr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Nf=yn(bf),Sf=[9,13,27,32],fa=x&&"CompositionEvent"in window,qo=null;x&&"documentMode"in document&&(qo=document.documentMode);var Cf=x&&"TextEvent"in window&&!qo,tu=x&&(!fa||qo&&8<qo&&11>=qo),ou=" ",iu=!1;function ru(e,n){switch(e){case"keyup":return Sf.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function su(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Qt=!1;function Pf(e,n){switch(e){case"compositionend":return su(n);case"keypress":return n.which!==32?null:(iu=!0,ou);case"textInput":return e=n.data,e===ou&&iu?null:e;default:return null}}function Lf(e,n){if(Qt)return e==="compositionend"||!fa&&ru(e,n)?(e=Z1(),Xi=aa=at=null,Qt=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return tu&&n.locale!=="ko"?null:n.data;default:return null}}var Ef={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function au(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!Ef[e.type]:n==="textarea"}function cu(e,n,o,r){P1(r),n=sr(n,"onChange"),0<n.length&&(o=new ca("onChange","change",null,o,r),e.push({event:o,listeners:n}))}var Qo=null,Zo=null;function Df(e){Su(e,0)}function tr(e){var n=no(e);if(Ao(n))return e}function Tf(e,n){if(e==="change")return n}var lu=!1;if(x){var ha;if(x){var ma="oninput"in document;if(!ma){var uu=document.createElement("div");uu.setAttribute("oninput","return;"),ma=typeof uu.oninput=="function"}ha=ma}else ha=!1;lu=ha&&(!document.documentMode||9<document.documentMode)}function du(){Qo&&(Qo.detachEvent("onpropertychange",pu),Zo=Qo=null)}function pu(e){if(e.propertyName==="value"&&tr(Zo)){var n=[];cu(n,Zo,e,Ys(e)),T1(Df,n)}}function Af(e,n,o){e==="focusin"?(du(),Qo=n,Zo=o,Qo.attachEvent("onpropertychange",pu)):e==="focusout"&&du()}function Rf(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return tr(Zo)}function zf(e,n){if(e==="click")return tr(n)}function Mf(e,n){if(e==="input"||e==="change")return tr(n)}function Ff(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var En=typeof Object.is=="function"?Object.is:Ff;function Xo(e,n){if(En(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var o=Object.keys(e),r=Object.keys(n);if(o.length!==r.length)return!1;for(r=0;r<o.length;r++){var a=o[r];if(!v.call(n,a)||!En(e[a],n[a]))return!1}return!0}function fu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hu(e,n){var o=fu(e);e=0;for(var r;o;){if(o.nodeType===3){if(r=e+o.textContent.length,e<=n&&r>=n)return{node:o,offset:n-e};e=r}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=fu(o)}}function mu(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?mu(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function gu(){for(var e=window,n=Oi();n instanceof e.HTMLIFrameElement;){try{var o=typeof n.contentWindow.location.href=="string"}catch{o=!1}if(o)e=n.contentWindow;else break;n=Oi(e.document)}return n}function ga(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function If(e){var n=gu(),o=e.focusedElem,r=e.selectionRange;if(n!==o&&o&&o.ownerDocument&&mu(o.ownerDocument.documentElement,o)){if(r!==null&&ga(o)){if(n=r.start,e=r.end,e===void 0&&(e=n),"selectionStart"in o)o.selectionStart=n,o.selectionEnd=Math.min(e,o.value.length);else if(e=(n=o.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var a=o.textContent.length,l=Math.min(r.start,a);r=r.end===void 0?l:Math.min(r.end,a),!e.extend&&l>r&&(a=r,r=l,l=a),a=hu(o,l);var f=hu(o,r);a&&f&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==f.node||e.focusOffset!==f.offset)&&(n=n.createRange(),n.setStart(a.node,a.offset),e.removeAllRanges(),l>r?(e.addRange(n),e.extend(f.node,f.offset)):(n.setEnd(f.node,f.offset),e.addRange(n)))}}for(n=[],e=o;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<n.length;o++)e=n[o],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Of=x&&"documentMode"in document&&11>=document.documentMode,Zt=null,va=null,Jo=null,ya=!1;function vu(e,n,o){var r=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;ya||Zt==null||Zt!==Oi(r)||(r=Zt,"selectionStart"in r&&ga(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Jo&&Xo(Jo,r)||(Jo=r,r=sr(va,"onSelect"),0<r.length&&(n=new ca("onSelect","select",null,n,o),e.push({event:n,listeners:r}),n.target=Zt)))}function or(e,n){var o={};return o[e.toLowerCase()]=n.toLowerCase(),o["Webkit"+e]="webkit"+n,o["Moz"+e]="moz"+n,o}var Xt={animationend:or("Animation","AnimationEnd"),animationiteration:or("Animation","AnimationIteration"),animationstart:or("Animation","AnimationStart"),transitionend:or("Transition","TransitionEnd")},_a={},yu={};x&&(yu=document.createElement("div").style,"AnimationEvent"in window||(delete Xt.animationend.animation,delete Xt.animationiteration.animation,delete Xt.animationstart.animation),"TransitionEvent"in window||delete Xt.transitionend.transition);function ir(e){if(_a[e])return _a[e];if(!Xt[e])return e;var n=Xt[e],o;for(o in n)if(n.hasOwnProperty(o)&&o in yu)return _a[e]=n[o];return e}var _u=ir("animationend"),ku=ir("animationiteration"),xu=ir("animationstart"),ju=ir("transitionend"),wu=new Map,bu="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ct(e,n){wu.set(e,n),h(n,[e])}for(var ka=0;ka<bu.length;ka++){var xa=bu[ka],Uf=xa.toLowerCase(),Bf=xa[0].toUpperCase()+xa.slice(1);ct(Uf,"on"+Bf)}ct(_u,"onAnimationEnd"),ct(ku,"onAnimationIteration"),ct(xu,"onAnimationStart"),ct("dblclick","onDoubleClick"),ct("focusin","onFocus"),ct("focusout","onBlur"),ct(ju,"onTransitionEnd"),m("onMouseEnter",["mouseout","mouseover"]),m("onMouseLeave",["mouseout","mouseover"]),m("onPointerEnter",["pointerout","pointerover"]),m("onPointerLeave",["pointerout","pointerover"]),h("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),h("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),h("onBeforeInput",["compositionend","keypress","textInput","paste"]),h("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),h("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),h("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ei="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),$f=new Set("cancel close invalid load scroll toggle".split(" ").concat(ei));function Nu(e,n,o){var r=e.type||"unknown-event";e.currentTarget=o,O0(r,n,void 0,e),e.currentTarget=null}function Su(e,n){n=(n&4)!==0;for(var o=0;o<e.length;o++){var r=e[o],a=r.event;r=r.listeners;e:{var l=void 0;if(n)for(var f=r.length-1;0<=f;f--){var y=r[f],w=y.instance,z=y.currentTarget;if(y=y.listener,w!==l&&a.isPropagationStopped())break e;Nu(a,y,z),l=w}else for(f=0;f<r.length;f++){if(y=r[f],w=y.instance,z=y.currentTarget,y=y.listener,w!==l&&a.isPropagationStopped())break e;Nu(a,y,z),l=w}}}if($i)throw e=Xs,$i=!1,Xs=null,e}function Te(e,n){var o=n[La];o===void 0&&(o=n[La]=new Set);var r=e+"__bubble";o.has(r)||(Cu(n,e,2,!1),o.add(r))}function ja(e,n,o){var r=0;n&&(r|=4),Cu(o,e,r,n)}var rr="_reactListening"+Math.random().toString(36).slice(2);function ni(e){if(!e[rr]){e[rr]=!0,d.forEach(function(o){o!=="selectionchange"&&($f.has(o)||ja(o,!1,e),ja(o,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[rr]||(n[rr]=!0,ja("selectionchange",!1,n))}}function Cu(e,n,o,r){switch(Q1(n)){case 1:var a=nf;break;case 4:a=tf;break;default:a=ra}o=a.bind(null,n,o,e),a=void 0,!Zs||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(a=!0),r?a!==void 0?e.addEventListener(n,o,{capture:!0,passive:a}):e.addEventListener(n,o,!0):a!==void 0?e.addEventListener(n,o,{passive:a}):e.addEventListener(n,o,!1)}function wa(e,n,o,r,a){var l=r;if((n&1)===0&&(n&2)===0&&r!==null)e:for(;;){if(r===null)return;var f=r.tag;if(f===3||f===4){var y=r.stateNode.containerInfo;if(y===a||y.nodeType===8&&y.parentNode===a)break;if(f===4)for(f=r.return;f!==null;){var w=f.tag;if((w===3||w===4)&&(w=f.stateNode.containerInfo,w===a||w.nodeType===8&&w.parentNode===a))return;f=f.return}for(;y!==null;){if(f=Pt(y),f===null)return;if(w=f.tag,w===5||w===6){r=l=f;continue e}y=y.parentNode}}r=r.return}T1(function(){var z=l,V=Ys(o),K=[];e:{var G=wu.get(e);if(G!==void 0){var ie=ca,ae=e;switch(e){case"keypress":if(Ji(o)===0)break e;case"keydown":case"keyup":ie=yf;break;case"focusin":ae="focus",ie=da;break;case"focusout":ae="blur",ie=da;break;case"beforeblur":case"afterblur":ie=da;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ie=J1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ie=sf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ie=xf;break;case _u:case ku:case xu:ie=lf;break;case ju:ie=wf;break;case"scroll":ie=of;break;case"wheel":ie=Nf;break;case"copy":case"cut":case"paste":ie=df;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ie=nu}var ce=(n&4)!==0,$e=!ce&&e==="scroll",L=ce?G!==null?G+"Capture":null:G;ce=[];for(var N=z,T;N!==null;){T=N;var Z=T.stateNode;if(T.tag===5&&Z!==null&&(T=Z,L!==null&&(Z=Fo(N,L),Z!=null&&ce.push(ti(N,Z,T)))),$e)break;N=N.return}0<ce.length&&(G=new ie(G,ae,null,o,V),K.push({event:G,listeners:ce}))}}if((n&7)===0){e:{if(G=e==="mouseover"||e==="pointerover",ie=e==="mouseout"||e==="pointerout",G&&o!==Ks&&(ae=o.relatedTarget||o.fromElement)&&(Pt(ae)||ae[Yn]))break e;if((ie||G)&&(G=V.window===V?V:(G=V.ownerDocument)?G.defaultView||G.parentWindow:window,ie?(ae=o.relatedTarget||o.toElement,ie=z,ae=ae?Pt(ae):null,ae!==null&&($e=Ct(ae),ae!==$e||ae.tag!==5&&ae.tag!==6)&&(ae=null)):(ie=null,ae=z),ie!==ae)){if(ce=J1,Z="onMouseLeave",L="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(ce=nu,Z="onPointerLeave",L="onPointerEnter",N="pointer"),$e=ie==null?G:no(ie),T=ae==null?G:no(ae),G=new ce(Z,N+"leave",ie,o,V),G.target=$e,G.relatedTarget=T,Z=null,Pt(V)===z&&(ce=new ce(L,N+"enter",ae,o,V),ce.target=T,ce.relatedTarget=$e,Z=ce),$e=Z,ie&&ae)n:{for(ce=ie,L=ae,N=0,T=ce;T;T=Jt(T))N++;for(T=0,Z=L;Z;Z=Jt(Z))T++;for(;0<N-T;)ce=Jt(ce),N--;for(;0<T-N;)L=Jt(L),T--;for(;N--;){if(ce===L||L!==null&&ce===L.alternate)break n;ce=Jt(ce),L=Jt(L)}ce=null}else ce=null;ie!==null&&Pu(K,G,ie,ce,!1),ae!==null&&$e!==null&&Pu(K,$e,ae,ce,!0)}}e:{if(G=z?no(z):window,ie=G.nodeName&&G.nodeName.toLowerCase(),ie==="select"||ie==="input"&&G.type==="file")var le=Tf;else if(au(G))if(lu)le=Mf;else{le=Rf;var he=Af}else(ie=G.nodeName)&&ie.toLowerCase()==="input"&&(G.type==="checkbox"||G.type==="radio")&&(le=zf);if(le&&(le=le(e,z))){cu(K,le,o,V);break e}he&&he(e,G,z),e==="focusout"&&(he=G._wrapperState)&&he.controlled&&G.type==="number"&&$s(G,"number",G.value)}switch(he=z?no(z):window,e){case"focusin":(au(he)||he.contentEditable==="true")&&(Zt=he,va=z,Jo=null);break;case"focusout":Jo=va=Zt=null;break;case"mousedown":ya=!0;break;case"contextmenu":case"mouseup":case"dragend":ya=!1,vu(K,o,V);break;case"selectionchange":if(Of)break;case"keydown":case"keyup":vu(K,o,V)}var me;if(fa)e:{switch(e){case"compositionstart":var _e="onCompositionStart";break e;case"compositionend":_e="onCompositionEnd";break e;case"compositionupdate":_e="onCompositionUpdate";break e}_e=void 0}else Qt?ru(e,o)&&(_e="onCompositionEnd"):e==="keydown"&&o.keyCode===229&&(_e="onCompositionStart");_e&&(tu&&o.locale!=="ko"&&(Qt||_e!=="onCompositionStart"?_e==="onCompositionEnd"&&Qt&&(me=Z1()):(at=V,aa="value"in at?at.value:at.textContent,Qt=!0)),he=sr(z,_e),0<he.length&&(_e=new eu(_e,e,null,o,V),K.push({event:_e,listeners:he}),me?_e.data=me:(me=su(o),me!==null&&(_e.data=me)))),(me=Cf?Pf(e,o):Lf(e,o))&&(z=sr(z,"onBeforeInput"),0<z.length&&(V=new eu("onBeforeInput","beforeinput",null,o,V),K.push({event:V,listeners:z}),V.data=me))}Su(K,n)})}function ti(e,n,o){return{instance:e,listener:n,currentTarget:o}}function sr(e,n){for(var o=n+"Capture",r=[];e!==null;){var a=e,l=a.stateNode;a.tag===5&&l!==null&&(a=l,l=Fo(e,o),l!=null&&r.unshift(ti(e,l,a)),l=Fo(e,n),l!=null&&r.push(ti(e,l,a))),e=e.return}return r}function Jt(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Pu(e,n,o,r,a){for(var l=n._reactName,f=[];o!==null&&o!==r;){var y=o,w=y.alternate,z=y.stateNode;if(w!==null&&w===r)break;y.tag===5&&z!==null&&(y=z,a?(w=Fo(o,l),w!=null&&f.unshift(ti(o,w,y))):a||(w=Fo(o,l),w!=null&&f.push(ti(o,w,y)))),o=o.return}f.length!==0&&e.push({event:n,listeners:f})}var Wf=/\r\n?/g,Gf=/\u0000|\uFFFD/g;function Lu(e){return(typeof e=="string"?e:""+e).replace(Wf,` 38 `).replace(Gf,"")}function ar(e,n,o){if(n=Lu(n),Lu(e)!==n&&o)throw Error(u(425))}function cr(){}var ba=null,Na=null;function Sa(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Ca=typeof setTimeout=="function"?setTimeout:void 0,Vf=typeof clearTimeout=="function"?clearTimeout:void 0,Eu=typeof Promise=="function"?Promise:void 0,Hf=typeof queueMicrotask=="function"?queueMicrotask:typeof Eu<"u"?function(e){return Eu.resolve(null).then(e).catch(Kf)}:Ca;function Kf(e){setTimeout(function(){throw e})}function Pa(e,n){var o=n,r=0;do{var a=o.nextSibling;if(e.removeChild(o),a&&a.nodeType===8)if(o=a.data,o==="/$"){if(r===0){e.removeChild(a),Ho(n);return}r--}else o!=="$"&&o!=="$?"&&o!=="$!"||r++;o=a}while(o);Ho(n)}function lt(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return e}function Du(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var o=e.data;if(o==="$"||o==="$!"||o==="$?"){if(n===0)return e;n--}else o==="/$"&&n++}e=e.previousSibling}return null}var eo=Math.random().toString(36).slice(2),Wn="__reactFiber$"+eo,oi="__reactProps$"+eo,Yn="__reactContainer$"+eo,La="__reactEvents$"+eo,Yf="__reactListeners$"+eo,qf="__reactHandles$"+eo;function Pt(e){var n=e[Wn];if(n)return n;for(var o=e.parentNode;o;){if(n=o[Yn]||o[Wn]){if(o=n.alternate,n.child!==null||o!==null&&o.child!==null)for(e=Du(e);e!==null;){if(o=e[Wn])return o;e=Du(e)}return n}e=o,o=e.parentNode}return null}function ii(e){return e=e[Wn]||e[Yn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function no(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(u(33))}function lr(e){return e[oi]||null}var Ea=[],to=-1;function ut(e){return{current:e}}function Ae(e){0>to||(e.current=Ea[to],Ea[to]=null,to--)}function Ee(e,n){to++,Ea[to]=e.current,e.current=n}var dt={},tn=ut(dt),dn=ut(!1),Lt=dt;function oo(e,n){var o=e.type.contextTypes;if(!o)return dt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var a={},l;for(l in o)a[l]=n[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=a),a}function pn(e){return e=e.childContextTypes,e!=null}function ur(){Ae(dn),Ae(tn)}function Tu(e,n,o){if(tn.current!==dt)throw Error(u(168));Ee(tn,n),Ee(dn,o)}function Au(e,n,o){var r=e.stateNode;if(n=n.childContextTypes,typeof r.getChildContext!="function")return o;r=r.getChildContext();for(var a in r)if(!(a in n))throw Error(u(108,M(e)||"Unknown",a));return Q({},o,r)}function dr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||dt,Lt=tn.current,Ee(tn,e),Ee(dn,dn.current),!0}function Ru(e,n,o){var r=e.stateNode;if(!r)throw Error(u(169));o?(e=Au(e,n,Lt),r.__reactInternalMemoizedMergedChildContext=e,Ae(dn),Ae(tn),Ee(tn,e)):Ae(dn),Ee(dn,o)}var qn=null,pr=!1,Da=!1;function zu(e){qn===null?qn=[e]:qn.push(e)}function Qf(e){pr=!0,zu(e)}function pt(){if(!Da&&qn!==null){Da=!0;var e=0,n=Pe;try{var o=qn;for(Pe=1;e<o.length;e++){var r=o[e];do r=r(!0);while(r!==null)}qn=null,pr=!1}catch(a){throw qn!==null&&(qn=qn.slice(e+1)),F1(Js,pt),a}finally{Pe=n,Da=!1}}return null}var io=[],ro=0,fr=null,hr=0,jn=[],wn=0,Et=null,Qn=1,Zn="";function Dt(e,n){io[ro++]=hr,io[ro++]=fr,fr=e,hr=n}function Mu(e,n,o){jn[wn++]=Qn,jn[wn++]=Zn,jn[wn++]=Et,Et=e;var r=Qn;e=Zn;var a=32-Ln(r)-1;r&=~(1<<a),o+=1;var l=32-Ln(n)+a;if(30<l){var f=a-a%5;l=(r&(1<<f)-1).toString(32),r>>=f,a-=f,Qn=1<<32-Ln(n)+a|o<<a|r,Zn=l+e}else Qn=1<<l|o<<a|r,Zn=e}function Ta(e){e.return!==null&&(Dt(e,1),Mu(e,1,0))}function Aa(e){for(;e===fr;)fr=io[--ro],io[ro]=null,hr=io[--ro],io[ro]=null;for(;e===Et;)Et=jn[--wn],jn[wn]=null,Zn=jn[--wn],jn[wn]=null,Qn=jn[--wn],jn[wn]=null}var _n=null,kn=null,Me=!1,Dn=null;function Fu(e,n){var o=Cn(5,null,null,0);o.elementType="DELETED",o.stateNode=n,o.return=e,n=e.deletions,n===null?(e.deletions=[o],e.flags|=16):n.push(o)}function Iu(e,n){switch(e.tag){case 5:var o=e.type;return n=n.nodeType!==1||o.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(e.stateNode=n,_n=e,kn=lt(n.firstChild),!0):!1;case 6:return n=e.pendingProps===""||n.nodeType!==3?null:n,n!==null?(e.stateNode=n,_n=e,kn=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(o=Et!==null?{id:Qn,overflow:Zn}:null,e.memoizedState={dehydrated:n,treeContext:o,retryLane:1073741824},o=Cn(18,null,null,0),o.stateNode=n,o.return=e,e.child=o,_n=e,kn=null,!0):!1;default:return!1}}function Ra(e){return(e.mode&1)!==0&&(e.flags&128)===0}function za(e){if(Me){var n=kn;if(n){var o=n;if(!Iu(e,n)){if(Ra(e))throw Error(u(418));n=lt(o.nextSibling);var r=_n;n&&Iu(e,n)?Fu(r,o):(e.flags=e.flags&-4097|2,Me=!1,_n=e)}}else{if(Ra(e))throw Error(u(418));e.flags=e.flags&-4097|2,Me=!1,_n=e}}}function Ou(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;_n=e}function mr(e){if(e!==_n)return!1;if(!Me)return Ou(e),Me=!0,!1;var n;if((n=e.tag!==3)&&!(n=e.tag!==5)&&(n=e.type,n=n!=="head"&&n!=="body"&&!Sa(e.type,e.memoizedProps)),n&&(n=kn)){if(Ra(e))throw Uu(),Error(u(418));for(;n;)Fu(e,n),n=lt(n.nextSibling)}if(Ou(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8){var o=e.data;if(o==="/$"){if(n===0){kn=lt(e.nextSibling);break e}n--}else o!=="$"&&o!=="$!"&&o!=="$?"||n++}e=e.nextSibling}kn=null}}else kn=_n?lt(e.stateNode.nextSibling):null;return!0}function Uu(){for(var e=kn;e;)e=lt(e.nextSibling)}function so(){kn=_n=null,Me=!1}function Ma(e){Dn===null?Dn=[e]:Dn.push(e)}var Zf=O.ReactCurrentBatchConfig;function ri(e,n,o){if(e=o.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(u(309));var r=o.stateNode}if(!r)throw Error(u(147,e));var a=r,l=""+e;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===l?n.ref:(n=function(f){var y=a.refs;f===null?delete y[l]:y[l]=f},n._stringRef=l,n)}if(typeof e!="string")throw Error(u(284));if(!o._owner)throw Error(u(290,e))}return e}function gr(e,n){throw e=Object.prototype.toString.call(n),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function Bu(e){var n=e._init;return n(e._payload)}function $u(e){function n(L,N){if(e){var T=L.deletions;T===null?(L.deletions=[N],L.flags|=16):T.push(N)}}function o(L,N){if(!e)return null;for(;N!==null;)n(L,N),N=N.sibling;return null}function r(L,N){for(L=new Map;N!==null;)N.key!==null?L.set(N.key,N):L.set(N.index,N),N=N.sibling;return L}function a(L,N){return L=kt(L,N),L.index=0,L.sibling=null,L}function l(L,N,T){return L.index=T,e?(T=L.alternate,T!==null?(T=T.index,T<N?(L.flags|=2,N):T):(L.flags|=2,N)):(L.flags|=1048576,N)}function f(L){return e&&L.alternate===null&&(L.flags|=2),L}function y(L,N,T,Z){return N===null||N.tag!==6?(N=Cc(T,L.mode,Z),N.return=L,N):(N=a(N,T),N.return=L,N)}function w(L,N,T,Z){var le=T.type;return le===B?V(L,N,T.props.children,Z,T.key):N!==null&&(N.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===F&&Bu(le)===N.type)?(Z=a(N,T.props),Z.ref=ri(L,N,T),Z.return=L,Z):(Z=Ur(T.type,T.key,T.props,null,L.mode,Z),Z.ref=ri(L,N,T),Z.return=L,Z)}function z(L,N,T,Z){return N===null||N.tag!==4||N.stateNode.containerInfo!==T.containerInfo||N.stateNode.implementation!==T.implementation?(N=Pc(T,L.mode,Z),N.return=L,N):(N=a(N,T.children||[]),N.return=L,N)}function V(L,N,T,Z,le){return N===null||N.tag!==7?(N=Ot(T,L.mode,Z,le),N.return=L,N):(N=a(N,T),N.return=L,N)}function K(L,N,T){if(typeof N=="string"&&N!==""||typeof N=="number")return N=Cc(""+N,L.mode,T),N.return=L,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case oe:return T=Ur(N.type,N.key,N.props,null,L.mode,T),T.ref=ri(L,null,N),T.return=L,T;case J:return N=Pc(N,L.mode,T),N.return=L,N;case F:var Z=N._init;return K(L,Z(N._payload),T)}if(Ro(N)||ee(N))return N=Ot(N,L.mode,T,null),N.return=L,N;gr(L,N)}return null}function G(L,N,T,Z){var le=N!==null?N.key:null;if(typeof T=="string"&&T!==""||typeof T=="number")return le!==null?null:y(L,N,""+T,Z);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case oe:return T.key===le?w(L,N,T,Z):null;case J:return T.key===le?z(L,N,T,Z):null;case F:return le=T._init,G(L,N,le(T._payload),Z)}if(Ro(T)||ee(T))return le!==null?null:V(L,N,T,Z,null);gr(L,T)}return null}function ie(L,N,T,Z,le){if(typeof Z=="string"&&Z!==""||typeof Z=="number")return L=L.get(T)||null,y(N,L,""+Z,le);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case oe:return L=L.get(Z.key===null?T:Z.key)||null,w(N,L,Z,le);case J:return L=L.get(Z.key===null?T:Z.key)||null,z(N,L,Z,le);case F:var he=Z._init;return ie(L,N,T,he(Z._payload),le)}if(Ro(Z)||ee(Z))return L=L.get(T)||null,V(N,L,Z,le,null);gr(N,Z)}return null}function ae(L,N,T,Z){for(var le=null,he=null,me=N,_e=N=0,Qe=null;me!==null&&_e<T.length;_e++){me.index>_e?(Qe=me,me=null):Qe=me.sibling;var Se=G(L,me,T[_e],Z);if(Se===null){me===null&&(me=Qe);break}e&&me&&Se.alternate===null&&n(L,me),N=l(Se,N,_e),he===null?le=Se:he.sibling=Se,he=Se,me=Qe}if(_e===T.length)return o(L,me),Me&&Dt(L,_e),le;if(me===null){for(;_e<T.length;_e++)me=K(L,T[_e],Z),me!==null&&(N=l(me,N,_e),he===null?le=me:he.sibling=me,he=me);return Me&&Dt(L,_e),le}for(me=r(L,me);_e<T.length;_e++)Qe=ie(me,L,_e,T[_e],Z),Qe!==null&&(e&&Qe.alternate!==null&&me.delete(Qe.key===null?_e:Qe.key),N=l(Qe,N,_e),he===null?le=Qe:he.sibling=Qe,he=Qe);return e&&me.forEach(function(xt){return n(L,xt)}),Me&&Dt(L,_e),le}function ce(L,N,T,Z){var le=ee(T);if(typeof le!="function")throw Error(u(150));if(T=le.call(T),T==null)throw Error(u(151));for(var he=le=null,me=N,_e=N=0,Qe=null,Se=T.next();me!==null&&!Se.done;_e++,Se=T.next()){me.index>_e?(Qe=me,me=null):Qe=me.sibling;var xt=G(L,me,Se.value,Z);if(xt===null){me===null&&(me=Qe);break}e&&me&&xt.alternate===null&&n(L,me),N=l(xt,N,_e),he===null?le=xt:he.sibling=xt,he=xt,me=Qe}if(Se.done)return o(L,me),Me&&Dt(L,_e),le;if(me===null){for(;!Se.done;_e++,Se=T.next())Se=K(L,Se.value,Z),Se!==null&&(N=l(Se,N,_e),he===null?le=Se:he.sibling=Se,he=Se);return Me&&Dt(L,_e),le}for(me=r(L,me);!Se.done;_e++,Se=T.next())Se=ie(me,L,_e,Se.value,Z),Se!==null&&(e&&Se.alternate!==null&&me.delete(Se.key===null?_e:Se.key),N=l(Se,N,_e),he===null?le=Se:he.sibling=Se,he=Se);return e&&me.forEach(function(E4){return n(L,E4)}),Me&&Dt(L,_e),le}function $e(L,N,T,Z){if(typeof T=="object"&&T!==null&&T.type===B&&T.key===null&&(T=T.props.children),typeof T=="object"&&T!==null){switch(T.$$typeof){case oe:e:{for(var le=T.key,he=N;he!==null;){if(he.key===le){if(le=T.type,le===B){if(he.tag===7){o(L,he.sibling),N=a(he,T.props.children),N.return=L,L=N;break e}}else if(he.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===F&&Bu(le)===he.type){o(L,he.sibling),N=a(he,T.props),N.ref=ri(L,he,T),N.return=L,L=N;break e}o(L,he);break}else n(L,he);he=he.sibling}T.type===B?(N=Ot(T.props.children,L.mode,Z,T.key),N.return=L,L=N):(Z=Ur(T.type,T.key,T.props,null,L.mode,Z),Z.ref=ri(L,N,T),Z.return=L,L=Z)}return f(L);case J:e:{for(he=T.key;N!==null;){if(N.key===he)if(N.tag===4&&N.stateNode.containerInfo===T.containerInfo&&N.stateNode.implementation===T.implementation){o(L,N.sibling),N=a(N,T.children||[]),N.return=L,L=N;break e}else{o(L,N);break}else n(L,N);N=N.sibling}N=Pc(T,L.mode,Z),N.return=L,L=N}return f(L);case F:return he=T._init,$e(L,N,he(T._payload),Z)}if(Ro(T))return ae(L,N,T,Z);if(ee(T))return ce(L,N,T,Z);gr(L,T)}return typeof T=="string"&&T!==""||typeof T=="number"?(T=""+T,N!==null&&N.tag===6?(o(L,N.sibling),N=a(N,T),N.return=L,L=N):(o(L,N),N=Cc(T,L.mode,Z),N.return=L,L=N),f(L)):o(L,N)}return $e}var ao=$u(!0),Wu=$u(!1),vr=ut(null),yr=null,co=null,Fa=null;function Ia(){Fa=co=yr=null}function Oa(e){var n=vr.current;Ae(vr),e._currentValue=n}function Ua(e,n,o){for(;e!==null;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,r!==null&&(r.childLanes|=n)):r!==null&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===o)break;e=e.return}}function lo(e,n){yr=e,Fa=co=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&n)!==0&&(fn=!0),e.firstContext=null)}function bn(e){var n=e._currentValue;if(Fa!==e)if(e={context:e,memoizedValue:n,next:null},co===null){if(yr===null)throw Error(u(308));co=e,yr.dependencies={lanes:0,firstContext:e}}else co=co.next=e;return n}var Tt=null;function Ba(e){Tt===null?Tt=[e]:Tt.push(e)}function Gu(e,n,o,r){var a=n.interleaved;return a===null?(o.next=o,Ba(n)):(o.next=a.next,a.next=o),n.interleaved=o,Xn(e,r)}function Xn(e,n){e.lanes|=n;var o=e.alternate;for(o!==null&&(o.lanes|=n),o=e,e=e.return;e!==null;)e.childLanes|=n,o=e.alternate,o!==null&&(o.childLanes|=n),o=e,e=e.return;return o.tag===3?o.stateNode:null}var ft=!1;function $a(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vu(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Jn(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function ht(e,n,o){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(Ne&2)!==0){var a=r.pending;return a===null?n.next=n:(n.next=a.next,a.next=n),r.pending=n,Xn(e,o)}return a=r.interleaved,a===null?(n.next=n,Ba(r)):(n.next=a.next,a.next=n),r.interleaved=n,Xn(e,o)}function _r(e,n,o){if(n=n.updateQueue,n!==null&&(n=n.shared,(o&4194240)!==0)){var r=n.lanes;r&=e.pendingLanes,o|=r,n.lanes=o,ta(e,o)}}function Hu(e,n){var o=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,o===r)){var a=null,l=null;if(o=o.firstBaseUpdate,o!==null){do{var f={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};l===null?a=l=f:l=l.next=f,o=o.next}while(o!==null);l===null?a=l=n:l=l.next=n}else a=l=n;o={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=n:e.next=n,o.lastBaseUpdate=n}function kr(e,n,o,r){var a=e.updateQueue;ft=!1;var l=a.firstBaseUpdate,f=a.lastBaseUpdate,y=a.shared.pending;if(y!==null){a.shared.pending=null;var w=y,z=w.next;w.next=null,f===null?l=z:f.next=z,f=w;var V=e.alternate;V!==null&&(V=V.updateQueue,y=V.lastBaseUpdate,y!==f&&(y===null?V.firstBaseUpdate=z:y.next=z,V.lastBaseUpdate=w))}if(l!==null){var K=a.baseState;f=0,V=z=w=null,y=l;do{var G=y.lane,ie=y.eventTime;if((r&G)===G){V!==null&&(V=V.next={eventTime:ie,lane:0,tag:y.tag,payload:y.payload,callback:y.callback,next:null});e:{var ae=e,ce=y;switch(G=n,ie=o,ce.tag){case 1:if(ae=ce.payload,typeof ae=="function"){K=ae.call(ie,K,G);break e}K=ae;break e;case 3:ae.flags=ae.flags&-65537|128;case 0:if(ae=ce.payload,G=typeof ae=="function"?ae.call(ie,K,G):ae,G==null)break e;K=Q({},K,G);break e;case 2:ft=!0}}y.callback!==null&&y.lane!==0&&(e.flags|=64,G=a.effects,G===null?a.effects=[y]:G.push(y))}else ie={eventTime:ie,lane:G,tag:y.tag,payload:y.payload,callback:y.callback,next:null},V===null?(z=V=ie,w=K):V=V.next=ie,f|=G;if(y=y.next,y===null){if(y=a.shared.pending,y===null)break;G=y,y=G.next,G.next=null,a.lastBaseUpdate=G,a.shared.pending=null}}while(!0);if(V===null&&(w=K),a.baseState=w,a.firstBaseUpdate=z,a.lastBaseUpdate=V,n=a.shared.interleaved,n!==null){a=n;do f|=a.lane,a=a.next;while(a!==n)}else l===null&&(a.shared.lanes=0);zt|=f,e.lanes=f,e.memoizedState=K}}function Ku(e,n,o){if(e=n.effects,n.effects=null,e!==null)for(n=0;n<e.length;n++){var r=e[n],a=r.callback;if(a!==null){if(r.callback=null,r=o,typeof a!="function")throw Error(u(191,a));a.call(r)}}}var si={},Gn=ut(si),ai=ut(si),ci=ut(si);function At(e){if(e===si)throw Error(u(174));return e}function Wa(e,n){switch(Ee(ci,n),Ee(ai,e),Ee(Gn,si),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:Gs(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=Gs(n,e)}Ae(Gn),Ee(Gn,n)}function uo(){Ae(Gn),Ae(ai),Ae(ci)}function Yu(e){At(ci.current);var n=At(Gn.current),o=Gs(n,e.type);n!==o&&(Ee(ai,e),Ee(Gn,o))}function Ga(e){ai.current===e&&(Ae(Gn),Ae(ai))}var Fe=ut(0);function xr(e){for(var n=e;n!==null;){if(n.tag===13){var o=n.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Va=[];function Ha(){for(var e=0;e<Va.length;e++)Va[e]._workInProgressVersionPrimary=null;Va.length=0}var jr=O.ReactCurrentDispatcher,Ka=O.ReactCurrentBatchConfig,Rt=0,Ie=null,He=null,Ye=null,wr=!1,li=!1,ui=0,Xf=0;function on(){throw Error(u(321))}function Ya(e,n){if(n===null)return!1;for(var o=0;o<n.length&&o<e.length;o++)if(!En(e[o],n[o]))return!1;return!0}function qa(e,n,o,r,a,l){if(Rt=l,Ie=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,jr.current=e===null||e.memoizedState===null?t4:o4,e=o(r,a),li){l=0;do{if(li=!1,ui=0,25<=l)throw Error(u(301));l+=1,Ye=He=null,n.updateQueue=null,jr.current=i4,e=o(r,a)}while(li)}if(jr.current=Sr,n=He!==null&&He.next!==null,Rt=0,Ye=He=Ie=null,wr=!1,n)throw Error(u(300));return e}function Qa(){var e=ui!==0;return ui=0,e}function Vn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ye===null?Ie.memoizedState=Ye=e:Ye=Ye.next=e,Ye}function Nn(){if(He===null){var e=Ie.alternate;e=e!==null?e.memoizedState:null}else e=He.next;var n=Ye===null?Ie.memoizedState:Ye.next;if(n!==null)Ye=n,He=e;else{if(e===null)throw Error(u(310));He=e,e={memoizedState:He.memoizedState,baseState:He.baseState,baseQueue:He.baseQueue,queue:He.queue,next:null},Ye===null?Ie.memoizedState=Ye=e:Ye=Ye.next=e}return Ye}function di(e,n){return typeof n=="function"?n(e):n}function Za(e){var n=Nn(),o=n.queue;if(o===null)throw Error(u(311));o.lastRenderedReducer=e;var r=He,a=r.baseQueue,l=o.pending;if(l!==null){if(a!==null){var f=a.next;a.next=l.next,l.next=f}r.baseQueue=a=l,o.pending=null}if(a!==null){l=a.next,r=r.baseState;var y=f=null,w=null,z=l;do{var V=z.lane;if((Rt&V)===V)w!==null&&(w=w.next={lane:0,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),r=z.hasEagerState?z.eagerState:e(r,z.action);else{var K={lane:V,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null};w===null?(y=w=K,f=r):w=w.next=K,Ie.lanes|=V,zt|=V}z=z.next}while(z!==null&&z!==l);w===null?f=r:w.next=y,En(r,n.memoizedState)||(fn=!0),n.memoizedState=r,n.baseState=f,n.baseQueue=w,o.lastRenderedState=r}if(e=o.interleaved,e!==null){a=e;do l=a.lane,Ie.lanes|=l,zt|=l,a=a.next;while(a!==e)}else a===null&&(o.lanes=0);return[n.memoizedState,o.dispatch]}function Xa(e){var n=Nn(),o=n.queue;if(o===null)throw Error(u(311));o.lastRenderedReducer=e;var r=o.dispatch,a=o.pending,l=n.memoizedState;if(a!==null){o.pending=null;var f=a=a.next;do l=e(l,f.action),f=f.next;while(f!==a);En(l,n.memoizedState)||(fn=!0),n.memoizedState=l,n.baseQueue===null&&(n.baseState=l),o.lastRenderedState=l}return[l,r]}function qu(){}function Qu(e,n){var o=Ie,r=Nn(),a=n(),l=!En(r.memoizedState,a);if(l&&(r.memoizedState=a,fn=!0),r=r.queue,Ja(Ju.bind(null,o,r,e),[e]),r.getSnapshot!==n||l||Ye!==null&&Ye.memoizedState.tag&1){if(o.flags|=2048,pi(9,Xu.bind(null,o,r,a,n),void 0,null),qe===null)throw Error(u(349));(Rt&30)!==0||Zu(o,n,a)}return a}function Zu(e,n,o){e.flags|=16384,e={getSnapshot:n,value:o},n=Ie.updateQueue,n===null?(n={lastEffect:null,stores:null},Ie.updateQueue=n,n.stores=[e]):(o=n.stores,o===null?n.stores=[e]:o.push(e))}function Xu(e,n,o,r){n.value=o,n.getSnapshot=r,ed(n)&&nd(e)}function Ju(e,n,o){return o(function(){ed(n)&&nd(e)})}function ed(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!En(e,o)}catch{return!0}}function nd(e){var n=Xn(e,1);n!==null&&zn(n,e,1,-1)}function td(e){var n=Vn();return typeof e=="function"&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:di,lastRenderedState:e},n.queue=e,e=e.dispatch=n4.bind(null,Ie,e),[n.memoizedState,e]}function pi(e,n,o,r){return e={tag:e,create:n,destroy:o,deps:r,next:null},n=Ie.updateQueue,n===null?(n={lastEffect:null,stores:null},Ie.updateQueue=n,n.lastEffect=e.next=e):(o=n.lastEffect,o===null?n.lastEffect=e.next=e:(r=o.next,o.next=e,e.next=r,n.lastEffect=e)),e}function od(){return Nn().memoizedState}function br(e,n,o,r){var a=Vn();Ie.flags|=e,a.memoizedState=pi(1|n,o,void 0,r===void 0?null:r)}function Nr(e,n,o,r){var a=Nn();r=r===void 0?null:r;var l=void 0;if(He!==null){var f=He.memoizedState;if(l=f.destroy,r!==null&&Ya(r,f.deps)){a.memoizedState=pi(n,o,l,r);return}}Ie.flags|=e,a.memoizedState=pi(1|n,o,l,r)}function id(e,n){return br(8390656,8,e,n)}function Ja(e,n){return Nr(2048,8,e,n)}function rd(e,n){return Nr(4,2,e,n)}function sd(e,n){return Nr(4,4,e,n)}function ad(e,n){if(typeof n=="function")return e=e(),n(e),function(){n(null)};if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function cd(e,n,o){return o=o!=null?o.concat([e]):null,Nr(4,4,ad.bind(null,n,e),o)}function ec(){}function ld(e,n){var o=Nn();n=n===void 0?null:n;var r=o.memoizedState;return r!==null&&n!==null&&Ya(n,r[1])?r[0]:(o.memoizedState=[e,n],e)}function ud(e,n){var o=Nn();n=n===void 0?null:n;var r=o.memoizedState;return r!==null&&n!==null&&Ya(n,r[1])?r[0]:(e=e(),o.memoizedState=[e,n],e)}function dd(e,n,o){return(Rt&21)===0?(e.baseState&&(e.baseState=!1,fn=!0),e.memoizedState=o):(En(o,n)||(o=B1(),Ie.lanes|=o,zt|=o,e.baseState=!0),n)}function Jf(e,n){var o=Pe;Pe=o!==0&&4>o?o:4,e(!0);var r=Ka.transition;Ka.transition={};try{e(!1),n()}finally{Pe=o,Ka.transition=r}}function pd(){return Nn().memoizedState}function e4(e,n,o){var r=yt(e);if(o={lane:r,action:o,hasEagerState:!1,eagerState:null,next:null},fd(e))hd(n,o);else if(o=Gu(e,n,o,r),o!==null){var a=ln();zn(o,e,r,a),md(o,n,r)}}function n4(e,n,o){var r=yt(e),a={lane:r,action:o,hasEagerState:!1,eagerState:null,next:null};if(fd(e))hd(n,a);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=n.lastRenderedReducer,l!==null))try{var f=n.lastRenderedState,y=l(f,o);if(a.hasEagerState=!0,a.eagerState=y,En(y,f)){var w=n.interleaved;w===null?(a.next=a,Ba(n)):(a.next=w.next,w.next=a),n.interleaved=a;return}}catch{}finally{}o=Gu(e,n,a,r),o!==null&&(a=ln(),zn(o,e,r,a),md(o,n,r))}}function fd(e){var n=e.alternate;return e===Ie||n!==null&&n===Ie}function hd(e,n){li=wr=!0;var o=e.pending;o===null?n.next=n:(n.next=o.next,o.next=n),e.pending=n}function md(e,n,o){if((o&4194240)!==0){var r=n.lanes;r&=e.pendingLanes,o|=r,n.lanes=o,ta(e,o)}}var Sr={readContext:bn,useCallback:on,useContext:on,useEffect:on,useImperativeHandle:on,useInsertionEffect:on,useLayoutEffect:on,useMemo:on,useReducer:on,useRef:on,useState:on,useDebugValue:on,useDeferredValue:on,useTransition:on,useMutableSource:on,useSyncExternalStore:on,useId:on,unstable_isNewReconciler:!1},t4={readContext:bn,useCallback:function(e,n){return Vn().memoizedState=[e,n===void 0?null:n],e},useContext:bn,useEffect:id,useImperativeHandle:function(e,n,o){return o=o!=null?o.concat([e]):null,br(4194308,4,ad.bind(null,n,e),o)},useLayoutEffect:function(e,n){return br(4194308,4,e,n)},useInsertionEffect:function(e,n){return br(4,2,e,n)},useMemo:function(e,n){var o=Vn();return n=n===void 0?null:n,e=e(),o.memoizedState=[e,n],e},useReducer:function(e,n,o){var r=Vn();return n=o!==void 0?o(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=e4.bind(null,Ie,e),[r.memoizedState,e]},useRef:function(e){var n=Vn();return e={current:e},n.memoizedState=e},useState:td,useDebugValue:ec,useDeferredValue:function(e){return Vn().memoizedState=e},useTransition:function(){var e=td(!1),n=e[0];return e=Jf.bind(null,e[1]),Vn().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,o){var r=Ie,a=Vn();if(Me){if(o===void 0)throw Error(u(407));o=o()}else{if(o=n(),qe===null)throw Error(u(349));(Rt&30)!==0||Zu(r,n,o)}a.memoizedState=o;var l={value:o,getSnapshot:n};return a.queue=l,id(Ju.bind(null,r,l,e),[e]),r.flags|=2048,pi(9,Xu.bind(null,r,l,o,n),void 0,null),o},useId:function(){var e=Vn(),n=qe.identifierPrefix;if(Me){var o=Zn,r=Qn;o=(r&~(1<<32-Ln(r)-1)).toString(32)+o,n=":"+n+"R"+o,o=ui++,0<o&&(n+="H"+o.toString(32)),n+=":"}else o=Xf++,n=":"+n+"r"+o.toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},o4={readContext:bn,useCallback:ld,useContext:bn,useEffect:Ja,useImperativeHandle:cd,useInsertionEffect:rd,useLayoutEffect:sd,useMemo:ud,useReducer:Za,useRef:od,useState:function(){return Za(di)},useDebugValue:ec,useDeferredValue:function(e){var n=Nn();return dd(n,He.memoizedState,e)},useTransition:function(){var e=Za(di)[0],n=Nn().memoizedState;return[e,n]},useMutableSource:qu,useSyncExternalStore:Qu,useId:pd,unstable_isNewReconciler:!1},i4={readContext:bn,useCallback:ld,useContext:bn,useEffect:Ja,useImperativeHandle:cd,useInsertionEffect:rd,useLayoutEffect:sd,useMemo:ud,useReducer:Xa,useRef:od,useState:function(){return Xa(di)},useDebugValue:ec,useDeferredValue:function(e){var n=Nn();return He===null?n.memoizedState=e:dd(n,He.memoizedState,e)},useTransition:function(){var e=Xa(di)[0],n=Nn().memoizedState;return[e,n]},useMutableSource:qu,useSyncExternalStore:Qu,useId:pd,unstable_isNewReconciler:!1};function Tn(e,n){if(e&&e.defaultProps){n=Q({},n),e=e.defaultProps;for(var o in e)n[o]===void 0&&(n[o]=e[o]);return n}return n}function nc(e,n,o,r){n=e.memoizedState,o=o(r,n),o=o==null?n:Q({},n,o),e.memoizedState=o,e.lanes===0&&(e.updateQueue.baseState=o)}var Cr={isMounted:function(e){return(e=e._reactInternals)?Ct(e)===e:!1},enqueueSetState:function(e,n,o){e=e._reactInternals;var r=ln(),a=yt(e),l=Jn(r,a);l.payload=n,o!=null&&(l.callback=o),n=ht(e,l,a),n!==null&&(zn(n,e,a,r),_r(n,e,a))},enqueueReplaceState:function(e,n,o){e=e._reactInternals;var r=ln(),a=yt(e),l=Jn(r,a);l.tag=1,l.payload=n,o!=null&&(l.callback=o),n=ht(e,l,a),n!==null&&(zn(n,e,a,r),_r(n,e,a))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var o=ln(),r=yt(e),a=Jn(o,r);a.tag=2,n!=null&&(a.callback=n),n=ht(e,a,r),n!==null&&(zn(n,e,r,o),_r(n,e,r))}};function gd(e,n,o,r,a,l,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,f):n.prototype&&n.prototype.isPureReactComponent?!Xo(o,r)||!Xo(a,l):!0}function vd(e,n,o){var r=!1,a=dt,l=n.contextType;return typeof l=="object"&&l!==null?l=bn(l):(a=pn(n)?Lt:tn.current,r=n.contextTypes,l=(r=r!=null)?oo(e,a):dt),n=new n(o,l),e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=Cr,e.stateNode=n,n._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=l),n}function yd(e,n,o,r){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(o,r),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(o,r),n.state!==e&&Cr.enqueueReplaceState(n,n.state,null)}function tc(e,n,o,r){var a=e.stateNode;a.props=o,a.state=e.memoizedState,a.refs={},$a(e);var l=n.contextType;typeof l=="object"&&l!==null?a.context=bn(l):(l=pn(n)?Lt:tn.current,a.context=oo(e,l)),a.state=e.memoizedState,l=n.getDerivedStateFromProps,typeof l=="function"&&(nc(e,n,l,o),a.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(n=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),n!==a.state&&Cr.enqueueReplaceState(a,a.state,null),kr(e,o,a,r),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}function po(e,n){try{var o="",r=n;do o+=ve(r),r=r.return;while(r);var a=o}catch(l){a=` 39 39 Error generating stack: `+l.message+` 40 `+l.stack}return{value:e,source:n,stack:a,digest:null}}function oc(e,n,o){return{value:e,source:null,stack:o??null,digest:n??null}}function ic(e,n){try{console.error(n.value)}catch(o){setTimeout(function(){throw o})}}var i4=typeof WeakMap=="function"?WeakMap:Map;function _d(e,n,o){o=Jn(-1,o),o.tag=3,o.payload={element:null};var r=n.value;return o.callback=function(){Rr||(Rr=!0,_c=r),ic(e,n)},o}function kd(e,n,o){o=Jn(-1,o),o.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var a=n.value;o.payload=function(){return r(a)},o.callback=function(){ic(e,n)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(o.callback=function(){ic(e,n),typeof r!="function"&&(gt===null?gt=new Set([this]):gt.add(this));var f=n.stack;this.componentDidCatch(n.value,{componentStack:f!==null?f:""})}),o}function xd(e,n,o){var r=e.pingCache;if(r===null){r=e.pingCache=new i4;var a=new Set;r.set(n,a)}else a=r.get(n),a===void 0&&(a=new Set,r.set(n,a));a.has(o)||(a.add(o),e=y4.bind(null,e,n,o),n.then(e,e))}function wd(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function jd(e,n,o,r,a){return(e.mode&1)===0?(e===n?e.flags|=65536:(e.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(n=Jn(-1,1),n.tag=2,ht(o,n,1))),o.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var r4=O.ReactCurrentOwner,fn=!1;function an(e,n,o,r){n.child=e===null?Wu(n,null,o,r):ao(n,e.child,o,r)}function bd(e,n,o,r,a){o=o.render;var l=n.ref;return lo(n,a),r=qa(e,n,o,r,l,a),o=Qa(),e!==null&&!fn?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~a,et(e,n,a)):(Me&&o&&Ta(n),n.flags|=1,an(e,n,r,a),n.child)}function Nd(e,n,o,r,a){if(e===null){var l=o.type;return typeof l=="function"&&!Sc(l)&&l.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(n.tag=15,n.type=l,Sd(e,n,l,r,a)):(e=Ur(o.type,null,r,n,n.mode,a),e.ref=n.ref,e.return=n,n.child=e)}if(l=e.child,(e.lanes&a)===0){var f=l.memoizedProps;if(o=o.compare,o=o!==null?o:Xo,o(f,r)&&e.ref===n.ref)return et(e,n,a)}return n.flags|=1,e=kt(l,r),e.ref=n.ref,e.return=n,n.child=e}function Sd(e,n,o,r,a){if(e!==null){var l=e.memoizedProps;if(Xo(l,r)&&e.ref===n.ref)if(fn=!1,n.pendingProps=r=l,(e.lanes&a)!==0)(e.flags&131072)!==0&&(fn=!0);else return n.lanes=e.lanes,et(e,n,a)}return rc(e,n,o,r,a)}function Cd(e,n,o){var r=n.pendingProps,a=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((n.mode&1)===0)n.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ee(ho,xn),xn|=o;else{if((o&1073741824)===0)return e=l!==null?l.baseLanes|o:o,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,Ee(ho,xn),xn|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:o,Ee(ho,xn),xn|=r}else l!==null?(r=l.baseLanes|o,n.memoizedState=null):r=o,Ee(ho,xn),xn|=r;return an(e,n,a,o),n.child}function Pd(e,n){var o=n.ref;(e===null&&o!==null||e!==null&&e.ref!==o)&&(n.flags|=512,n.flags|=2097152)}function rc(e,n,o,r,a){var l=pn(o)?Lt:nn.current;return l=oo(n,l),lo(n,a),o=qa(e,n,o,r,l,a),r=Qa(),e!==null&&!fn?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~a,et(e,n,a)):(Me&&r&&Ta(n),n.flags|=1,an(e,n,o,a),n.child)}function Ld(e,n,o,r,a){if(pn(o)){var l=!0;dr(n)}else l=!1;if(lo(n,a),n.stateNode===null)Lr(e,n),vd(n,o,r),tc(n,o,r,a),r=!0;else if(e===null){var f=n.stateNode,y=n.memoizedProps;f.props=y;var j=f.context,z=o.contextType;typeof z=="object"&&z!==null?z=bn(z):(z=pn(o)?Lt:nn.current,z=oo(n,z));var V=o.getDerivedStateFromProps,K=typeof V=="function"||typeof f.getSnapshotBeforeUpdate=="function";K||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(y!==r||j!==z)&&yd(n,f,r,z),ft=!1;var G=n.memoizedState;f.state=G,kr(n,r,f,a),j=n.memoizedState,y!==r||G!==j||dn.current||ft?(typeof V=="function"&&(nc(n,o,V,r),j=n.memoizedState),(y=ft||gd(n,o,y,r,G,j,z))?(K||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(n.flags|=4194308)):(typeof f.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=r,n.memoizedState=j),f.props=r,f.state=j,f.context=z,r=y):(typeof f.componentDidMount=="function"&&(n.flags|=4194308),r=!1)}else{f=n.stateNode,Vu(e,n),y=n.memoizedProps,z=n.type===n.elementType?y:Tn(n.type,y),f.props=z,K=n.pendingProps,G=f.context,j=o.contextType,typeof j=="object"&&j!==null?j=bn(j):(j=pn(o)?Lt:nn.current,j=oo(n,j));var oe=o.getDerivedStateFromProps;(V=typeof oe=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(y!==K||G!==j)&&yd(n,f,r,j),ft=!1,G=n.memoizedState,f.state=G,kr(n,r,f,a);var se=n.memoizedState;y!==K||G!==se||dn.current||ft?(typeof oe=="function"&&(nc(n,o,oe,r),se=n.memoizedState),(z=ft||gd(n,o,z,r,G,se,j)||!1)?(V||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(r,se,j),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(r,se,j)),typeof f.componentDidUpdate=="function"&&(n.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof f.componentDidUpdate!="function"||y===e.memoizedProps&&G===e.memoizedState||(n.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&G===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=se),f.props=r,f.state=se,f.context=j,r=z):(typeof f.componentDidUpdate!="function"||y===e.memoizedProps&&G===e.memoizedState||(n.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&G===e.memoizedState||(n.flags|=1024),r=!1)}return sc(e,n,o,r,l,a)}function sc(e,n,o,r,a,l){Pd(e,n);var f=(n.flags&128)!==0;if(!r&&!f)return a&&Ru(n,o,!1),et(e,n,l);r=n.stateNode,r4.current=n;var y=f&&typeof o.getDerivedStateFromError!="function"?null:r.render();return n.flags|=1,e!==null&&f?(n.child=ao(n,e.child,null,l),n.child=ao(n,null,y,l)):an(e,n,y,l),n.memoizedState=r.state,a&&Ru(n,o,!0),n.child}function Ed(e){var n=e.stateNode;n.pendingContext?Tu(e,n.pendingContext,n.pendingContext!==n.context):n.context&&Tu(e,n.context,!1),Wa(e,n.containerInfo)}function Dd(e,n,o,r,a){return so(),Ma(a),n.flags|=256,an(e,n,o,r),n.child}var ac={dehydrated:null,treeContext:null,retryLane:0};function cc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Td(e,n,o){var r=n.pendingProps,a=Fe.current,l=!1,f=(n.flags&128)!==0,y;if((y=f)||(y=e!==null&&e.memoizedState===null?!1:(a&2)!==0),y?(l=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),Ee(Fe,a&1),e===null)return za(n),e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((n.mode&1)===0?n.lanes=1:e.data==="$!"?n.lanes=8:n.lanes=1073741824,null):(f=r.children,e=r.fallback,l?(r=n.mode,l=n.child,f={mode:"hidden",children:f},(r&1)===0&&l!==null?(l.childLanes=0,l.pendingProps=f):l=Br(f,r,0,null),e=Ot(e,r,o,null),l.return=n,e.return=n,l.sibling=e,n.child=l,n.child.memoizedState=cc(o),n.memoizedState=ac,e):lc(n,f));if(a=e.memoizedState,a!==null&&(y=a.dehydrated,y!==null))return s4(e,n,f,r,y,a,o);if(l){l=r.fallback,f=n.mode,a=e.child,y=a.sibling;var j={mode:"hidden",children:r.children};return(f&1)===0&&n.child!==a?(r=n.child,r.childLanes=0,r.pendingProps=j,n.deletions=null):(r=kt(a,j),r.subtreeFlags=a.subtreeFlags&14680064),y!==null?l=kt(y,l):(l=Ot(l,f,o,null),l.flags|=2),l.return=n,r.return=n,r.sibling=l,n.child=r,r=l,l=n.child,f=e.child.memoizedState,f=f===null?cc(o):{baseLanes:f.baseLanes|o,cachePool:null,transitions:f.transitions},l.memoizedState=f,l.childLanes=e.childLanes&~o,n.memoizedState=ac,r}return l=e.child,e=l.sibling,r=kt(l,{mode:"visible",children:r.children}),(n.mode&1)===0&&(r.lanes=o),r.return=n,r.sibling=null,e!==null&&(o=n.deletions,o===null?(n.deletions=[e],n.flags|=16):o.push(e)),n.child=r,n.memoizedState=null,r}function lc(e,n){return n=Br({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function Pr(e,n,o,r){return r!==null&&Ma(r),ao(n,e.child,null,o),e=lc(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function s4(e,n,o,r,a,l,f){if(o)return n.flags&256?(n.flags&=-257,r=oc(Error(u(422))),Pr(e,n,f,r)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(l=r.fallback,a=n.mode,r=Br({mode:"visible",children:r.children},a,0,null),l=Ot(l,a,f,null),l.flags|=2,r.return=n,l.return=n,r.sibling=l,n.child=r,(n.mode&1)!==0&&ao(n,e.child,null,f),n.child.memoizedState=cc(f),n.memoizedState=ac,l);if((n.mode&1)===0)return Pr(e,n,f,null);if(a.data==="$!"){if(r=a.nextSibling&&a.nextSibling.dataset,r)var y=r.dgst;return r=y,l=Error(u(419)),r=oc(l,r,void 0),Pr(e,n,f,r)}if(y=(f&e.childLanes)!==0,fn||y){if(r=qe,r!==null){switch(f&-f){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(r.suspendedLanes|f))!==0?0:a,a!==0&&a!==l.retryLane&&(l.retryLane=a,Xn(e,a),zn(r,e,a,-1))}return Nc(),r=oc(Error(u(421))),Pr(e,n,f,r)}return a.data==="$?"?(n.flags|=128,n.child=e.child,n=_4.bind(null,e),a._reactRetry=n,null):(e=l.treeContext,kn=lt(a.nextSibling),_n=n,Me=!0,Dn=null,e!==null&&(wn[jn++]=Qn,wn[jn++]=Zn,wn[jn++]=Et,Qn=e.id,Zn=e.overflow,Et=n),n=lc(n,r.children),n.flags|=4096,n)}function Ad(e,n,o){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n),Ua(e.return,n,o)}function uc(e,n,o,r,a){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:o,tailMode:a}:(l.isBackwards=n,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=o,l.tailMode=a)}function Rd(e,n,o){var r=n.pendingProps,a=r.revealOrder,l=r.tail;if(an(e,n,r.children,o),r=Fe.current,(r&2)!==0)r=r&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ad(e,o,n);else if(e.tag===19)Ad(e,o,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ee(Fe,r),(n.mode&1)===0)n.memoizedState=null;else switch(a){case"forwards":for(o=n.child,a=null;o!==null;)e=o.alternate,e!==null&&xr(e)===null&&(a=o),o=o.sibling;o=a,o===null?(a=n.child,n.child=null):(a=o.sibling,o.sibling=null),uc(n,!1,a,o,l);break;case"backwards":for(o=null,a=n.child,n.child=null;a!==null;){if(e=a.alternate,e!==null&&xr(e)===null){n.child=a;break}e=a.sibling,a.sibling=o,o=a,a=e}uc(n,!0,o,null,l);break;case"together":uc(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Lr(e,n){(n.mode&1)===0&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function et(e,n,o){if(e!==null&&(n.dependencies=e.dependencies),zt|=n.lanes,(o&n.childLanes)===0)return null;if(e!==null&&n.child!==e.child)throw Error(u(153));if(n.child!==null){for(e=n.child,o=kt(e,e.pendingProps),n.child=o,o.return=n;e.sibling!==null;)e=e.sibling,o=o.sibling=kt(e,e.pendingProps),o.return=n;o.sibling=null}return n.child}function a4(e,n,o){switch(n.tag){case 3:Ed(n),so();break;case 5:Yu(n);break;case 1:pn(n.type)&&dr(n);break;case 4:Wa(n,n.stateNode.containerInfo);break;case 10:var r=n.type._context,a=n.memoizedProps.value;Ee(vr,r._currentValue),r._currentValue=a;break;case 13:if(r=n.memoizedState,r!==null)return r.dehydrated!==null?(Ee(Fe,Fe.current&1),n.flags|=128,null):(o&n.child.childLanes)!==0?Td(e,n,o):(Ee(Fe,Fe.current&1),e=et(e,n,o),e!==null?e.sibling:null);Ee(Fe,Fe.current&1);break;case 19:if(r=(o&n.childLanes)!==0,(e.flags&128)!==0){if(r)return Rd(e,n,o);n.flags|=128}if(a=n.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Ee(Fe,Fe.current),r)break;return null;case 22:case 23:return n.lanes=0,Cd(e,n,o)}return et(e,n,o)}var zd,dc,Md,Fd;zd=function(e,n){for(var o=n.child;o!==null;){if(o.tag===5||o.tag===6)e.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===n)break;for(;o.sibling===null;){if(o.return===null||o.return===n)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},dc=function(){},Md=function(e,n,o,r){var a=e.memoizedProps;if(a!==r){e=n.stateNode,At(Gn.current);var l=null;switch(o){case"input":a=Us(e,a),r=Us(e,r),l=[];break;case"select":a=Q({},a,{value:void 0}),r=Q({},r,{value:void 0}),l=[];break;case"textarea":a=Ws(e,a),r=Ws(e,r),l=[];break;default:typeof a.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=cr)}Vs(o,r);var f;o=null;for(z in a)if(!r.hasOwnProperty(z)&&a.hasOwnProperty(z)&&a[z]!=null)if(z==="style"){var y=a[z];for(f in y)y.hasOwnProperty(f)&&(o||(o={}),o[f]="")}else z!=="dangerouslySetInnerHTML"&&z!=="children"&&z!=="suppressContentEditableWarning"&&z!=="suppressHydrationWarning"&&z!=="autoFocus"&&(p.hasOwnProperty(z)?l||(l=[]):(l=l||[]).push(z,null));for(z in r){var j=r[z];if(y=a!=null?a[z]:void 0,r.hasOwnProperty(z)&&j!==y&&(j!=null||y!=null))if(z==="style")if(y){for(f in y)!y.hasOwnProperty(f)||j&&j.hasOwnProperty(f)||(o||(o={}),o[f]="");for(f in j)j.hasOwnProperty(f)&&y[f]!==j[f]&&(o||(o={}),o[f]=j[f])}else o||(l||(l=[]),l.push(z,o)),o=j;else z==="dangerouslySetInnerHTML"?(j=j?j.__html:void 0,y=y?y.__html:void 0,j!=null&&y!==j&&(l=l||[]).push(z,j)):z==="children"?typeof j!="string"&&typeof j!="number"||(l=l||[]).push(z,""+j):z!=="suppressContentEditableWarning"&&z!=="suppressHydrationWarning"&&(p.hasOwnProperty(z)?(j!=null&&z==="onScroll"&&Te("scroll",e),l||y===j||(l=[])):(l=l||[]).push(z,j))}o&&(l=l||[]).push("style",o);var z=l;(n.updateQueue=z)&&(n.flags|=4)}},Fd=function(e,n,o,r){o!==r&&(n.flags|=4)};function fi(e,n){if(!Me)switch(e.tailMode){case"hidden":n=e.tail;for(var o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?e.tail=null:o.sibling=null;break;case"collapsed":o=e.tail;for(var r=null;o!==null;)o.alternate!==null&&(r=o),o=o.sibling;r===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function on(e){var n=e.alternate!==null&&e.alternate.child===e.child,o=0,r=0;if(n)for(var a=e.child;a!==null;)o|=a.lanes|a.childLanes,r|=a.subtreeFlags&14680064,r|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)o|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=o,n}function c4(e,n,o){var r=n.pendingProps;switch(Aa(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return on(n),null;case 1:return pn(n.type)&&ur(),on(n),null;case 3:return r=n.stateNode,uo(),Ae(dn),Ae(nn),Ha(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(mr(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Dn!==null&&(wc(Dn),Dn=null))),dc(e,n),on(n),null;case 5:Ga(n);var a=At(ci.current);if(o=n.type,e!==null&&n.stateNode!=null)Md(e,n,o,r,a),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!r){if(n.stateNode===null)throw Error(u(166));return on(n),null}if(e=At(Gn.current),mr(n)){r=n.stateNode,o=n.type;var l=n.memoizedProps;switch(r[Wn]=n,r[oi]=l,e=(n.mode&1)!==0,o){case"dialog":Te("cancel",r),Te("close",r);break;case"iframe":case"object":case"embed":Te("load",r);break;case"video":case"audio":for(a=0;a<ei.length;a++)Te(ei[a],r);break;case"source":Te("error",r);break;case"img":case"image":case"link":Te("error",r),Te("load",r);break;case"details":Te("toggle",r);break;case"input":v1(r,l),Te("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},Te("invalid",r);break;case"textarea":k1(r,l),Te("invalid",r)}Vs(o,l),a=null;for(var f in l)if(l.hasOwnProperty(f)){var y=l[f];f==="children"?typeof y=="string"?r.textContent!==y&&(l.suppressHydrationWarning!==!0&&ar(r.textContent,y,e),a=["children",y]):typeof y=="number"&&r.textContent!==""+y&&(l.suppressHydrationWarning!==!0&&ar(r.textContent,y,e),a=["children",""+y]):p.hasOwnProperty(f)&&y!=null&&f==="onScroll"&&Te("scroll",r)}switch(o){case"input":De(r),_1(r,l,!0);break;case"textarea":De(r),w1(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=cr)}r=a,n.updateQueue=r,r!==null&&(n.flags|=4)}else{f=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=j1(o)),e==="http://www.w3.org/1999/xhtml"?o==="script"?(e=f.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=f.createElement(o,{is:r.is}):(e=f.createElement(o),o==="select"&&(f=e,r.multiple?f.multiple=!0:r.size&&(f.size=r.size))):e=f.createElementNS(e,o),e[Wn]=n,e[oi]=r,zd(e,n,!1,!1),n.stateNode=e;e:{switch(f=Hs(o,r),o){case"dialog":Te("cancel",e),Te("close",e),a=r;break;case"iframe":case"object":case"embed":Te("load",e),a=r;break;case"video":case"audio":for(a=0;a<ei.length;a++)Te(ei[a],e);a=r;break;case"source":Te("error",e),a=r;break;case"img":case"image":case"link":Te("error",e),Te("load",e),a=r;break;case"details":Te("toggle",e),a=r;break;case"input":v1(e,r),a=Us(e,r),Te("invalid",e);break;case"option":a=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=Q({},r,{value:void 0}),Te("invalid",e);break;case"textarea":k1(e,r),a=Ws(e,r),Te("invalid",e);break;default:a=r}Vs(o,a),y=a;for(l in y)if(y.hasOwnProperty(l)){var j=y[l];l==="style"?S1(e,j):l==="dangerouslySetInnerHTML"?(j=j?j.__html:void 0,j!=null&&b1(e,j)):l==="children"?typeof j=="string"?(o!=="textarea"||j!=="")&&zo(e,j):typeof j=="number"&&zo(e,""+j):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(p.hasOwnProperty(l)?j!=null&&l==="onScroll"&&Te("scroll",e):j!=null&&R(e,l,j,f))}switch(o){case"input":De(e),_1(e,r,!1);break;case"textarea":De(e),w1(e);break;case"option":r.value!=null&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?Vt(e,!!r.multiple,l,!1):r.defaultValue!=null&&Vt(e,!!r.multiple,r.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=cr)}switch(o){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return on(n),null;case 6:if(e&&n.stateNode!=null)Fd(e,n,e.memoizedProps,r);else{if(typeof r!="string"&&n.stateNode===null)throw Error(u(166));if(o=At(ci.current),At(Gn.current),mr(n)){if(r=n.stateNode,o=n.memoizedProps,r[Wn]=n,(l=r.nodeValue!==o)&&(e=_n,e!==null))switch(e.tag){case 3:ar(r.nodeValue,o,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ar(r.nodeValue,o,(e.mode&1)!==0)}l&&(n.flags|=4)}else r=(o.nodeType===9?o:o.ownerDocument).createTextNode(r),r[Wn]=n,n.stateNode=r}return on(n),null;case 13:if(Ae(Fe),r=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Me&&kn!==null&&(n.mode&1)!==0&&(n.flags&128)===0)Uu(),so(),n.flags|=98560,l=!1;else if(l=mr(n),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(u(318));if(l=n.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(u(317));l[Wn]=n}else so(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;on(n),l=!1}else Dn!==null&&(wc(Dn),Dn=null),l=!0;if(!l)return n.flags&65536?n:null}return(n.flags&128)!==0?(n.lanes=o,n):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(n.child.flags|=8192,(n.mode&1)!==0&&(e===null||(Fe.current&1)!==0?Ke===0&&(Ke=3):Nc())),n.updateQueue!==null&&(n.flags|=4),on(n),null);case 4:return uo(),dc(e,n),e===null&&ni(n.stateNode.containerInfo),on(n),null;case 10:return Oa(n.type._context),on(n),null;case 17:return pn(n.type)&&ur(),on(n),null;case 19:if(Ae(Fe),l=n.memoizedState,l===null)return on(n),null;if(r=(n.flags&128)!==0,f=l.rendering,f===null)if(r)fi(l,!1);else{if(Ke!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(f=xr(e),f!==null){for(n.flags|=128,fi(l,!1),r=f.updateQueue,r!==null&&(n.updateQueue=r,n.flags|=4),n.subtreeFlags=0,r=o,o=n.child;o!==null;)l=o,e=r,l.flags&=14680066,f=l.alternate,f===null?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=f.childLanes,l.lanes=f.lanes,l.child=f.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=f.memoizedProps,l.memoizedState=f.memoizedState,l.updateQueue=f.updateQueue,l.type=f.type,e=f.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),o=o.sibling;return Ee(Fe,Fe.current&1|2),n.child}e=e.sibling}l.tail!==null&&Be()>mo&&(n.flags|=128,r=!0,fi(l,!1),n.lanes=4194304)}else{if(!r)if(e=xr(f),e!==null){if(n.flags|=128,r=!0,o=e.updateQueue,o!==null&&(n.updateQueue=o,n.flags|=4),fi(l,!0),l.tail===null&&l.tailMode==="hidden"&&!f.alternate&&!Me)return on(n),null}else 2*Be()-l.renderingStartTime>mo&&o!==1073741824&&(n.flags|=128,r=!0,fi(l,!1),n.lanes=4194304);l.isBackwards?(f.sibling=n.child,n.child=f):(o=l.last,o!==null?o.sibling=f:n.child=f,l.last=f)}return l.tail!==null?(n=l.tail,l.rendering=n,l.tail=n.sibling,l.renderingStartTime=Be(),n.sibling=null,o=Fe.current,Ee(Fe,r?o&1|2:o&1),n):(on(n),null);case 22:case 23:return bc(),r=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(n.flags|=8192),r&&(n.mode&1)!==0?(xn&1073741824)!==0&&(on(n),n.subtreeFlags&6&&(n.flags|=8192)):on(n),null;case 24:return null;case 25:return null}throw Error(u(156,n.tag))}function l4(e,n){switch(Aa(n),n.tag){case 1:return pn(n.type)&&ur(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return uo(),Ae(dn),Ae(nn),Ha(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 5:return Ga(n),null;case 13:if(Ae(Fe),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(u(340));so()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return Ae(Fe),null;case 4:return uo(),null;case 10:return Oa(n.type._context),null;case 22:case 23:return bc(),null;case 24:return null;default:return null}}var Er=!1,rn=!1,u4=typeof WeakSet=="function"?WeakSet:Set,re=null;function fo(e,n){var o=e.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(r){Oe(e,n,r)}else o.current=null}function pc(e,n,o){try{o()}catch(r){Oe(e,n,r)}}var Id=!1;function d4(e,n){if(ba=Qi,e=gu(),ga(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var r=o.getSelection&&o.getSelection();if(r&&r.rangeCount!==0){o=r.anchorNode;var a=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{o.nodeType,l.nodeType}catch{o=null;break e}var f=0,y=-1,j=-1,z=0,V=0,K=e,G=null;n:for(;;){for(var oe;K!==o||a!==0&&K.nodeType!==3||(y=f+a),K!==l||r!==0&&K.nodeType!==3||(j=f+r),K.nodeType===3&&(f+=K.nodeValue.length),(oe=K.firstChild)!==null;)G=K,K=oe;for(;;){if(K===e)break n;if(G===o&&++z===a&&(y=f),G===l&&++V===r&&(j=f),(oe=K.nextSibling)!==null)break;K=G,G=K.parentNode}K=oe}o=y===-1||j===-1?null:{start:y,end:j}}else o=null}o=o||{start:0,end:0}}else o=null;for(Na={focusedElem:e,selectionRange:o},Qi=!1,re=n;re!==null;)if(n=re,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,re=e;else for(;re!==null;){n=re;try{var se=n.alternate;if((n.flags&1024)!==0)switch(n.tag){case 0:case 11:case 15:break;case 1:if(se!==null){var ae=se.memoizedProps,$e=se.memoizedState,L=n.stateNode,N=L.getSnapshotBeforeUpdate(n.elementType===n.type?ae:Tn(n.type,ae),$e);L.__reactInternalSnapshotBeforeUpdate=N}break;case 3:var T=n.stateNode.containerInfo;T.nodeType===1?T.textContent="":T.nodeType===9&&T.documentElement&&T.removeChild(T.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(u(163))}}catch(Z){Oe(n,n.return,Z)}if(e=n.sibling,e!==null){e.return=n.return,re=e;break}re=n.return}return se=Id,Id=!1,se}function hi(e,n,o){var r=n.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&e)===e){var l=a.destroy;a.destroy=void 0,l!==void 0&&pc(n,o,l)}a=a.next}while(a!==r)}}function Dr(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var r=o.create;o.destroy=r()}o=o.next}while(o!==n)}}function fc(e){var n=e.ref;if(n!==null){var o=e.stateNode;switch(e.tag){case 5:e=o;break;default:e=o}typeof n=="function"?n(e):n.current=e}}function Od(e){var n=e.alternate;n!==null&&(e.alternate=null,Od(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[Wn],delete n[oi],delete n[La],delete n[Kf],delete n[Yf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ud(e){return e.tag===5||e.tag===3||e.tag===4}function Bd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ud(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function hc(e,n,o){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?o.nodeType===8?o.parentNode.insertBefore(e,n):o.insertBefore(e,n):(o.nodeType===8?(n=o.parentNode,n.insertBefore(e,o)):(n=o,n.appendChild(e)),o=o._reactRootContainer,o!=null||n.onclick!==null||(n.onclick=cr));else if(r!==4&&(e=e.child,e!==null))for(hc(e,n,o),e=e.sibling;e!==null;)hc(e,n,o),e=e.sibling}function mc(e,n,o){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?o.insertBefore(e,n):o.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(mc(e,n,o),e=e.sibling;e!==null;)mc(e,n,o),e=e.sibling}var Xe=null,An=!1;function mt(e,n,o){for(o=o.child;o!==null;)$d(e,n,o),o=o.sibling}function $d(e,n,o){if($n&&typeof $n.onCommitFiberUnmount=="function")try{$n.onCommitFiberUnmount(Gi,o)}catch{}switch(o.tag){case 5:rn||fo(o,n);case 6:var r=Xe,a=An;Xe=null,mt(e,n,o),Xe=r,An=a,Xe!==null&&(An?(e=Xe,o=o.stateNode,e.nodeType===8?e.parentNode.removeChild(o):e.removeChild(o)):Xe.removeChild(o.stateNode));break;case 18:Xe!==null&&(An?(e=Xe,o=o.stateNode,e.nodeType===8?Pa(e.parentNode,o):e.nodeType===1&&Pa(e,o),Ho(e)):Pa(Xe,o.stateNode));break;case 4:r=Xe,a=An,Xe=o.stateNode.containerInfo,An=!0,mt(e,n,o),Xe=r,An=a;break;case 0:case 11:case 14:case 15:if(!rn&&(r=o.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var l=a,f=l.destroy;l=l.tag,f!==void 0&&((l&2)!==0||(l&4)!==0)&&pc(o,n,f),a=a.next}while(a!==r)}mt(e,n,o);break;case 1:if(!rn&&(fo(o,n),r=o.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=o.memoizedProps,r.state=o.memoizedState,r.componentWillUnmount()}catch(y){Oe(o,n,y)}mt(e,n,o);break;case 21:mt(e,n,o);break;case 22:o.mode&1?(rn=(r=rn)||o.memoizedState!==null,mt(e,n,o),rn=r):mt(e,n,o);break;default:mt(e,n,o)}}function Wd(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var o=e.stateNode;o===null&&(o=e.stateNode=new u4),n.forEach(function(r){var a=k4.bind(null,e,r);o.has(r)||(o.add(r),r.then(a,a))})}}function Rn(e,n){var o=n.deletions;if(o!==null)for(var r=0;r<o.length;r++){var a=o[r];try{var l=e,f=n,y=f;e:for(;y!==null;){switch(y.tag){case 5:Xe=y.stateNode,An=!1;break e;case 3:Xe=y.stateNode.containerInfo,An=!0;break e;case 4:Xe=y.stateNode.containerInfo,An=!0;break e}y=y.return}if(Xe===null)throw Error(u(160));$d(l,f,a),Xe=null,An=!1;var j=a.alternate;j!==null&&(j.return=null),a.return=null}catch(z){Oe(a,n,z)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)Gd(n,e),n=n.sibling}function Gd(e,n){var o=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Rn(n,e),Hn(e),r&4){try{hi(3,e,e.return),Dr(3,e)}catch(ae){Oe(e,e.return,ae)}try{hi(5,e,e.return)}catch(ae){Oe(e,e.return,ae)}}break;case 1:Rn(n,e),Hn(e),r&512&&o!==null&&fo(o,o.return);break;case 5:if(Rn(n,e),Hn(e),r&512&&o!==null&&fo(o,o.return),e.flags&32){var a=e.stateNode;try{zo(a,"")}catch(ae){Oe(e,e.return,ae)}}if(r&4&&(a=e.stateNode,a!=null)){var l=e.memoizedProps,f=o!==null?o.memoizedProps:l,y=e.type,j=e.updateQueue;if(e.updateQueue=null,j!==null)try{y==="input"&&l.type==="radio"&&l.name!=null&&y1(a,l),Hs(y,f);var z=Hs(y,l);for(f=0;f<j.length;f+=2){var V=j[f],K=j[f+1];V==="style"?S1(a,K):V==="dangerouslySetInnerHTML"?b1(a,K):V==="children"?zo(a,K):R(a,V,K,z)}switch(y){case"input":Bs(a,l);break;case"textarea":x1(a,l);break;case"select":var G=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!l.multiple;var oe=l.value;oe!=null?Vt(a,!!l.multiple,oe,!1):G!==!!l.multiple&&(l.defaultValue!=null?Vt(a,!!l.multiple,l.defaultValue,!0):Vt(a,!!l.multiple,l.multiple?[]:"",!1))}a[oi]=l}catch(ae){Oe(e,e.return,ae)}}break;case 6:if(Rn(n,e),Hn(e),r&4){if(e.stateNode===null)throw Error(u(162));a=e.stateNode,l=e.memoizedProps;try{a.nodeValue=l}catch(ae){Oe(e,e.return,ae)}}break;case 3:if(Rn(n,e),Hn(e),r&4&&o!==null&&o.memoizedState.isDehydrated)try{Ho(n.containerInfo)}catch(ae){Oe(e,e.return,ae)}break;case 4:Rn(n,e),Hn(e);break;case 13:Rn(n,e),Hn(e),a=e.child,a.flags&8192&&(l=a.memoizedState!==null,a.stateNode.isHidden=l,!l||a.alternate!==null&&a.alternate.memoizedState!==null||(yc=Be())),r&4&&Wd(e);break;case 22:if(V=o!==null&&o.memoizedState!==null,e.mode&1?(rn=(z=rn)||V,Rn(n,e),rn=z):Rn(n,e),Hn(e),r&8192){if(z=e.memoizedState!==null,(e.stateNode.isHidden=z)&&!V&&(e.mode&1)!==0)for(re=e,V=e.child;V!==null;){for(K=re=V;re!==null;){switch(G=re,oe=G.child,G.tag){case 0:case 11:case 14:case 15:hi(4,G,G.return);break;case 1:fo(G,G.return);var se=G.stateNode;if(typeof se.componentWillUnmount=="function"){r=G,o=G.return;try{n=r,se.props=n.memoizedProps,se.state=n.memoizedState,se.componentWillUnmount()}catch(ae){Oe(r,o,ae)}}break;case 5:fo(G,G.return);break;case 22:if(G.memoizedState!==null){Kd(K);continue}}oe!==null?(oe.return=G,re=oe):Kd(K)}V=V.sibling}e:for(V=null,K=e;;){if(K.tag===5){if(V===null){V=K;try{a=K.stateNode,z?(l=a.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(y=K.stateNode,j=K.memoizedProps.style,f=j!=null&&j.hasOwnProperty("display")?j.display:null,y.style.display=N1("display",f))}catch(ae){Oe(e,e.return,ae)}}}else if(K.tag===6){if(V===null)try{K.stateNode.nodeValue=z?"":K.memoizedProps}catch(ae){Oe(e,e.return,ae)}}else if((K.tag!==22&&K.tag!==23||K.memoizedState===null||K===e)&&K.child!==null){K.child.return=K,K=K.child;continue}if(K===e)break e;for(;K.sibling===null;){if(K.return===null||K.return===e)break e;V===K&&(V=null),K=K.return}V===K&&(V=null),K.sibling.return=K.return,K=K.sibling}}break;case 19:Rn(n,e),Hn(e),r&4&&Wd(e);break;case 21:break;default:Rn(n,e),Hn(e)}}function Hn(e){var n=e.flags;if(n&2){try{e:{for(var o=e.return;o!==null;){if(Ud(o)){var r=o;break e}o=o.return}throw Error(u(160))}switch(r.tag){case 5:var a=r.stateNode;r.flags&32&&(zo(a,""),r.flags&=-33);var l=Bd(e);mc(e,l,a);break;case 3:case 4:var f=r.stateNode.containerInfo,y=Bd(e);hc(e,y,f);break;default:throw Error(u(161))}}catch(j){Oe(e,e.return,j)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function p4(e,n,o){re=e,Vd(e)}function Vd(e,n,o){for(var r=(e.mode&1)!==0;re!==null;){var a=re,l=a.child;if(a.tag===22&&r){var f=a.memoizedState!==null||Er;if(!f){var y=a.alternate,j=y!==null&&y.memoizedState!==null||rn;y=Er;var z=rn;if(Er=f,(rn=j)&&!z)for(re=a;re!==null;)f=re,j=f.child,f.tag===22&&f.memoizedState!==null?Yd(a):j!==null?(j.return=f,re=j):Yd(a);for(;l!==null;)re=l,Vd(l),l=l.sibling;re=a,Er=y,rn=z}Hd(e)}else(a.subtreeFlags&8772)!==0&&l!==null?(l.return=a,re=l):Hd(e)}}function Hd(e){for(;re!==null;){var n=re;if((n.flags&8772)!==0){var o=n.alternate;try{if((n.flags&8772)!==0)switch(n.tag){case 0:case 11:case 15:rn||Dr(5,n);break;case 1:var r=n.stateNode;if(n.flags&4&&!rn)if(o===null)r.componentDidMount();else{var a=n.elementType===n.type?o.memoizedProps:Tn(n.type,o.memoizedProps);r.componentDidUpdate(a,o.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=n.updateQueue;l!==null&&Ku(n,l,r);break;case 3:var f=n.updateQueue;if(f!==null){if(o=null,n.child!==null)switch(n.child.tag){case 5:o=n.child.stateNode;break;case 1:o=n.child.stateNode}Ku(n,f,o)}break;case 5:var y=n.stateNode;if(o===null&&n.flags&4){o=y;var j=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":j.autoFocus&&o.focus();break;case"img":j.src&&(o.src=j.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var z=n.alternate;if(z!==null){var V=z.memoizedState;if(V!==null){var K=V.dehydrated;K!==null&&Ho(K)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(u(163))}rn||n.flags&512&&fc(n)}catch(G){Oe(n,n.return,G)}}if(n===e){re=null;break}if(o=n.sibling,o!==null){o.return=n.return,re=o;break}re=n.return}}function Kd(e){for(;re!==null;){var n=re;if(n===e){re=null;break}var o=n.sibling;if(o!==null){o.return=n.return,re=o;break}re=n.return}}function Yd(e){for(;re!==null;){var n=re;try{switch(n.tag){case 0:case 11:case 15:var o=n.return;try{Dr(4,n)}catch(j){Oe(n,o,j)}break;case 1:var r=n.stateNode;if(typeof r.componentDidMount=="function"){var a=n.return;try{r.componentDidMount()}catch(j){Oe(n,a,j)}}var l=n.return;try{fc(n)}catch(j){Oe(n,l,j)}break;case 5:var f=n.return;try{fc(n)}catch(j){Oe(n,f,j)}}}catch(j){Oe(n,n.return,j)}if(n===e){re=null;break}var y=n.sibling;if(y!==null){y.return=n.return,re=y;break}re=n.return}}var f4=Math.ceil,Tr=O.ReactCurrentDispatcher,gc=O.ReactCurrentOwner,Sn=O.ReactCurrentBatchConfig,Ne=0,qe=null,We=null,Je=0,xn=0,ho=ut(0),Ke=0,mi=null,zt=0,Ar=0,vc=0,gi=null,hn=null,yc=0,mo=1/0,nt=null,Rr=!1,_c=null,gt=null,zr=!1,vt=null,Mr=0,vi=0,kc=null,Fr=-1,Ir=0;function cn(){return(Ne&6)!==0?Be():Fr!==-1?Fr:Fr=Be()}function yt(e){return(e.mode&1)===0?1:(Ne&2)!==0&&Je!==0?Je&-Je:Qf.transition!==null?(Ir===0&&(Ir=B1()),Ir):(e=Pe,e!==0||(e=window.event,e=e===void 0?16:Q1(e.type)),e)}function zn(e,n,o,r){if(50<vi)throw vi=0,kc=null,Error(u(185));Bo(e,o,r),((Ne&2)===0||e!==qe)&&(e===qe&&((Ne&2)===0&&(Ar|=o),Ke===4&&_t(e,Je)),mn(e,r),o===1&&Ne===0&&(n.mode&1)===0&&(mo=Be()+500,pr&&pt()))}function mn(e,n){var o=e.callbackNode;q0(e,n);var r=Ki(e,e===qe?Je:0);if(r===0)o!==null&&I1(o),e.callbackNode=null,e.callbackPriority=0;else if(n=r&-r,e.callbackPriority!==n){if(o!=null&&I1(o),n===1)e.tag===0?qf(Qd.bind(null,e)):zu(Qd.bind(null,e)),Vf(function(){(Ne&6)===0&&pt()}),o=null;else{switch($1(r)){case 1:o=Js;break;case 4:o=O1;break;case 16:o=Wi;break;case 536870912:o=U1;break;default:o=Wi}o=i2(o,qd.bind(null,e))}e.callbackPriority=n,e.callbackNode=o}}function qd(e,n){if(Fr=-1,Ir=0,(Ne&6)!==0)throw Error(u(327));var o=e.callbackNode;if(go()&&e.callbackNode!==o)return null;var r=Ki(e,e===qe?Je:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||n)n=Or(e,r);else{n=r;var a=Ne;Ne|=2;var l=Xd();(qe!==e||Je!==n)&&(nt=null,mo=Be()+500,Ft(e,n));do try{g4();break}catch(y){Zd(e,y)}while(!0);Ia(),Tr.current=l,Ne=a,We!==null?n=0:(qe=null,Je=0,n=Ke)}if(n!==0){if(n===2&&(a=ea(e),a!==0&&(r=a,n=xc(e,a))),n===1)throw o=mi,Ft(e,0),_t(e,r),mn(e,Be()),o;if(n===6)_t(e,r);else{if(a=e.current.alternate,(r&30)===0&&!h4(a)&&(n=Or(e,r),n===2&&(l=ea(e),l!==0&&(r=l,n=xc(e,l))),n===1))throw o=mi,Ft(e,0),_t(e,r),mn(e,Be()),o;switch(e.finishedWork=a,e.finishedLanes=r,n){case 0:case 1:throw Error(u(345));case 2:It(e,hn,nt);break;case 3:if(_t(e,r),(r&130023424)===r&&(n=yc+500-Be(),10<n)){if(Ki(e,0)!==0)break;if(a=e.suspendedLanes,(a&r)!==r){cn(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Ca(It.bind(null,e,hn,nt),n);break}It(e,hn,nt);break;case 4:if(_t(e,r),(r&4194240)===r)break;for(n=e.eventTimes,a=-1;0<r;){var f=31-Ln(r);l=1<<f,f=n[f],f>a&&(a=f),r&=~l}if(r=a,r=Be()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*f4(r/1960))-r,10<r){e.timeoutHandle=Ca(It.bind(null,e,hn,nt),r);break}It(e,hn,nt);break;case 5:It(e,hn,nt);break;default:throw Error(u(329))}}}return mn(e,Be()),e.callbackNode===o?qd.bind(null,e):null}function xc(e,n){var o=gi;return e.current.memoizedState.isDehydrated&&(Ft(e,n).flags|=256),e=Or(e,n),e!==2&&(n=hn,hn=o,n!==null&&wc(n)),e}function wc(e){hn===null?hn=e:hn.push.apply(hn,e)}function h4(e){for(var n=e;;){if(n.flags&16384){var o=n.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var r=0;r<o.length;r++){var a=o[r],l=a.getSnapshot;a=a.value;try{if(!En(l(),a))return!1}catch{return!1}}}if(o=n.child,n.subtreeFlags&16384&&o!==null)o.return=n,n=o;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function _t(e,n){for(n&=~vc,n&=~Ar,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var o=31-Ln(n),r=1<<o;e[o]=-1,n&=~r}}function Qd(e){if((Ne&6)!==0)throw Error(u(327));go();var n=Ki(e,0);if((n&1)===0)return mn(e,Be()),null;var o=Or(e,n);if(e.tag!==0&&o===2){var r=ea(e);r!==0&&(n=r,o=xc(e,r))}if(o===1)throw o=mi,Ft(e,0),_t(e,n),mn(e,Be()),o;if(o===6)throw Error(u(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,It(e,hn,nt),mn(e,Be()),null}function jc(e,n){var o=Ne;Ne|=1;try{return e(n)}finally{Ne=o,Ne===0&&(mo=Be()+500,pr&&pt())}}function Mt(e){vt!==null&&vt.tag===0&&(Ne&6)===0&&go();var n=Ne;Ne|=1;var o=Sn.transition,r=Pe;try{if(Sn.transition=null,Pe=1,e)return e()}finally{Pe=r,Sn.transition=o,Ne=n,(Ne&6)===0&&pt()}}function bc(){xn=ho.current,Ae(ho)}function Ft(e,n){e.finishedWork=null,e.finishedLanes=0;var o=e.timeoutHandle;if(o!==-1&&(e.timeoutHandle=-1,Gf(o)),We!==null)for(o=We.return;o!==null;){var r=o;switch(Aa(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ur();break;case 3:uo(),Ae(dn),Ae(nn),Ha();break;case 5:Ga(r);break;case 4:uo();break;case 13:Ae(Fe);break;case 19:Ae(Fe);break;case 10:Oa(r.type._context);break;case 22:case 23:bc()}o=o.return}if(qe=e,We=e=kt(e.current,null),Je=xn=n,Ke=0,mi=null,vc=Ar=zt=0,hn=gi=null,Tt!==null){for(n=0;n<Tt.length;n++)if(o=Tt[n],r=o.interleaved,r!==null){o.interleaved=null;var a=r.next,l=o.pending;if(l!==null){var f=l.next;l.next=a,r.next=f}o.pending=r}Tt=null}return e}function Zd(e,n){do{var o=We;try{if(Ia(),wr.current=Sr,jr){for(var r=Ie.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}jr=!1}if(Rt=0,Ye=He=Ie=null,li=!1,ui=0,gc.current=null,o===null||o.return===null){Ke=1,mi=n,We=null;break}e:{var l=e,f=o.return,y=o,j=n;if(n=Je,y.flags|=32768,j!==null&&typeof j=="object"&&typeof j.then=="function"){var z=j,V=y,K=V.tag;if((V.mode&1)===0&&(K===0||K===11||K===15)){var G=V.alternate;G?(V.updateQueue=G.updateQueue,V.memoizedState=G.memoizedState,V.lanes=G.lanes):(V.updateQueue=null,V.memoizedState=null)}var oe=wd(f);if(oe!==null){oe.flags&=-257,jd(oe,f,y,l,n),oe.mode&1&&xd(l,z,n),n=oe,j=z;var se=n.updateQueue;if(se===null){var ae=new Set;ae.add(j),n.updateQueue=ae}else se.add(j);break e}else{if((n&1)===0){xd(l,z,n),Nc();break e}j=Error(u(426))}}else if(Me&&y.mode&1){var $e=wd(f);if($e!==null){($e.flags&65536)===0&&($e.flags|=256),jd($e,f,y,l,n),Ma(po(j,y));break e}}l=j=po(j,y),Ke!==4&&(Ke=2),gi===null?gi=[l]:gi.push(l),l=f;do{switch(l.tag){case 3:l.flags|=65536,n&=-n,l.lanes|=n;var L=_d(l,j,n);Hu(l,L);break e;case 1:y=j;var N=l.type,T=l.stateNode;if((l.flags&128)===0&&(typeof N.getDerivedStateFromError=="function"||T!==null&&typeof T.componentDidCatch=="function"&&(gt===null||!gt.has(T)))){l.flags|=65536,n&=-n,l.lanes|=n;var Z=kd(l,y,n);Hu(l,Z);break e}}l=l.return}while(l!==null)}e2(o)}catch(ce){n=ce,We===o&&o!==null&&(We=o=o.return);continue}break}while(!0)}function Xd(){var e=Tr.current;return Tr.current=Sr,e===null?Sr:e}function Nc(){(Ke===0||Ke===3||Ke===2)&&(Ke=4),qe===null||(zt&268435455)===0&&(Ar&268435455)===0||_t(qe,Je)}function Or(e,n){var o=Ne;Ne|=2;var r=Xd();(qe!==e||Je!==n)&&(nt=null,Ft(e,n));do try{m4();break}catch(a){Zd(e,a)}while(!0);if(Ia(),Ne=o,Tr.current=r,We!==null)throw Error(u(261));return qe=null,Je=0,Ke}function m4(){for(;We!==null;)Jd(We)}function g4(){for(;We!==null&&!U0();)Jd(We)}function Jd(e){var n=o2(e.alternate,e,xn);e.memoizedProps=e.pendingProps,n===null?e2(e):We=n,gc.current=null}function e2(e){var n=e;do{var o=n.alternate;if(e=n.return,(n.flags&32768)===0){if(o=c4(o,n,xn),o!==null){We=o;return}}else{if(o=l4(o,n),o!==null){o.flags&=32767,We=o;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ke=6,We=null;return}}if(n=n.sibling,n!==null){We=n;return}We=n=e}while(n!==null);Ke===0&&(Ke=5)}function It(e,n,o){var r=Pe,a=Sn.transition;try{Sn.transition=null,Pe=1,v4(e,n,o,r)}finally{Sn.transition=a,Pe=r}return null}function v4(e,n,o,r){do go();while(vt!==null);if((Ne&6)!==0)throw Error(u(327));o=e.finishedWork;var a=e.finishedLanes;if(o===null)return null;if(e.finishedWork=null,e.finishedLanes=0,o===e.current)throw Error(u(177));e.callbackNode=null,e.callbackPriority=0;var l=o.lanes|o.childLanes;if(Q0(e,l),e===qe&&(We=qe=null,Je=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||zr||(zr=!0,i2(Wi,function(){return go(),null})),l=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||l){l=Sn.transition,Sn.transition=null;var f=Pe;Pe=1;var y=Ne;Ne|=4,gc.current=null,d4(e,o),Gd(o,e),Ff(Na),Qi=!!ba,Na=ba=null,e.current=o,p4(o),B0(),Ne=y,Pe=f,Sn.transition=l}else e.current=o;if(zr&&(zr=!1,vt=e,Mr=a),l=e.pendingLanes,l===0&&(gt=null),G0(o.stateNode),mn(e,Be()),n!==null)for(r=e.onRecoverableError,o=0;o<n.length;o++)a=n[o],r(a.value,{componentStack:a.stack,digest:a.digest});if(Rr)throw Rr=!1,e=_c,_c=null,e;return(Mr&1)!==0&&e.tag!==0&&go(),l=e.pendingLanes,(l&1)!==0?e===kc?vi++:(vi=0,kc=e):vi=0,pt(),null}function go(){if(vt!==null){var e=$1(Mr),n=Sn.transition,o=Pe;try{if(Sn.transition=null,Pe=16>e?16:e,vt===null)var r=!1;else{if(e=vt,vt=null,Mr=0,(Ne&6)!==0)throw Error(u(331));var a=Ne;for(Ne|=4,re=e.current;re!==null;){var l=re,f=l.child;if((re.flags&16)!==0){var y=l.deletions;if(y!==null){for(var j=0;j<y.length;j++){var z=y[j];for(re=z;re!==null;){var V=re;switch(V.tag){case 0:case 11:case 15:hi(8,V,l)}var K=V.child;if(K!==null)K.return=V,re=K;else for(;re!==null;){V=re;var G=V.sibling,oe=V.return;if(Od(V),V===z){re=null;break}if(G!==null){G.return=oe,re=G;break}re=oe}}}var se=l.alternate;if(se!==null){var ae=se.child;if(ae!==null){se.child=null;do{var $e=ae.sibling;ae.sibling=null,ae=$e}while(ae!==null)}}re=l}}if((l.subtreeFlags&2064)!==0&&f!==null)f.return=l,re=f;else e:for(;re!==null;){if(l=re,(l.flags&2048)!==0)switch(l.tag){case 0:case 11:case 15:hi(9,l,l.return)}var L=l.sibling;if(L!==null){L.return=l.return,re=L;break e}re=l.return}}var N=e.current;for(re=N;re!==null;){f=re;var T=f.child;if((f.subtreeFlags&2064)!==0&&T!==null)T.return=f,re=T;else e:for(f=N;re!==null;){if(y=re,(y.flags&2048)!==0)try{switch(y.tag){case 0:case 11:case 15:Dr(9,y)}}catch(ce){Oe(y,y.return,ce)}if(y===f){re=null;break e}var Z=y.sibling;if(Z!==null){Z.return=y.return,re=Z;break e}re=y.return}}if(Ne=a,pt(),$n&&typeof $n.onPostCommitFiberRoot=="function")try{$n.onPostCommitFiberRoot(Gi,e)}catch{}r=!0}return r}finally{Pe=o,Sn.transition=n}}return!1}function n2(e,n,o){n=po(o,n),n=_d(e,n,1),e=ht(e,n,1),n=cn(),e!==null&&(Bo(e,1,n),mn(e,n))}function Oe(e,n,o){if(e.tag===3)n2(e,e,o);else for(;n!==null;){if(n.tag===3){n2(n,e,o);break}else if(n.tag===1){var r=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(gt===null||!gt.has(r))){e=po(o,e),e=kd(n,e,1),n=ht(n,e,1),e=cn(),n!==null&&(Bo(n,1,e),mn(n,e));break}}n=n.return}}function y4(e,n,o){var r=e.pingCache;r!==null&&r.delete(n),n=cn(),e.pingedLanes|=e.suspendedLanes&o,qe===e&&(Je&o)===o&&(Ke===4||Ke===3&&(Je&130023424)===Je&&500>Be()-yc?Ft(e,0):vc|=o),mn(e,n)}function t2(e,n){n===0&&((e.mode&1)===0?n=1:(n=Hi,Hi<<=1,(Hi&130023424)===0&&(Hi=4194304)));var o=cn();e=Xn(e,n),e!==null&&(Bo(e,n,o),mn(e,o))}function _4(e){var n=e.memoizedState,o=0;n!==null&&(o=n.retryLane),t2(e,o)}function k4(e,n){var o=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(o=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(u(314))}r!==null&&r.delete(n),t2(e,o)}var o2;o2=function(e,n,o){if(e!==null)if(e.memoizedProps!==n.pendingProps||dn.current)fn=!0;else{if((e.lanes&o)===0&&(n.flags&128)===0)return fn=!1,a4(e,n,o);fn=(e.flags&131072)!==0}else fn=!1,Me&&(n.flags&1048576)!==0&&Mu(n,hr,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;Lr(e,n),e=n.pendingProps;var a=oo(n,nn.current);lo(n,o),a=qa(null,n,r,e,a,o);var l=Qa();return n.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,pn(r)?(l=!0,dr(n)):l=!1,n.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,$a(n),a.updater=Cr,n.stateNode=a,a._reactInternals=n,tc(n,r,e,o),n=sc(null,n,r,!0,l,o)):(n.tag=0,Me&&l&&Ta(n),an(null,n,a,o),n=n.child),n;case 16:r=n.elementType;e:{switch(Lr(e,n),e=n.pendingProps,a=r._init,r=a(r._payload),n.type=r,a=n.tag=w4(r),e=Tn(r,e),a){case 0:n=rc(null,n,r,e,o);break e;case 1:n=Ld(null,n,r,e,o);break e;case 11:n=bd(null,n,r,e,o);break e;case 14:n=Nd(null,n,r,Tn(r.type,e),o);break e}throw Error(u(306,r,""))}return n;case 0:return r=n.type,a=n.pendingProps,a=n.elementType===r?a:Tn(r,a),rc(e,n,r,a,o);case 1:return r=n.type,a=n.pendingProps,a=n.elementType===r?a:Tn(r,a),Ld(e,n,r,a,o);case 3:e:{if(Ed(n),e===null)throw Error(u(387));r=n.pendingProps,l=n.memoizedState,a=l.element,Vu(e,n),kr(n,r,null,o);var f=n.memoizedState;if(r=f.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:f.cache,pendingSuspenseBoundaries:f.pendingSuspenseBoundaries,transitions:f.transitions},n.updateQueue.baseState=l,n.memoizedState=l,n.flags&256){a=po(Error(u(423)),n),n=Dd(e,n,r,o,a);break e}else if(r!==a){a=po(Error(u(424)),n),n=Dd(e,n,r,o,a);break e}else for(kn=lt(n.stateNode.containerInfo.firstChild),_n=n,Me=!0,Dn=null,o=Wu(n,null,r,o),n.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(so(),r===a){n=et(e,n,o);break e}an(e,n,r,o)}n=n.child}return n;case 5:return Yu(n),e===null&&za(n),r=n.type,a=n.pendingProps,l=e!==null?e.memoizedProps:null,f=a.children,Sa(r,a)?f=null:l!==null&&Sa(r,l)&&(n.flags|=32),Pd(e,n),an(e,n,f,o),n.child;case 6:return e===null&&za(n),null;case 13:return Td(e,n,o);case 4:return Wa(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=ao(n,null,r,o):an(e,n,r,o),n.child;case 11:return r=n.type,a=n.pendingProps,a=n.elementType===r?a:Tn(r,a),bd(e,n,r,a,o);case 7:return an(e,n,n.pendingProps,o),n.child;case 8:return an(e,n,n.pendingProps.children,o),n.child;case 12:return an(e,n,n.pendingProps.children,o),n.child;case 10:e:{if(r=n.type._context,a=n.pendingProps,l=n.memoizedProps,f=a.value,Ee(vr,r._currentValue),r._currentValue=f,l!==null)if(En(l.value,f)){if(l.children===a.children&&!dn.current){n=et(e,n,o);break e}}else for(l=n.child,l!==null&&(l.return=n);l!==null;){var y=l.dependencies;if(y!==null){f=l.child;for(var j=y.firstContext;j!==null;){if(j.context===r){if(l.tag===1){j=Jn(-1,o&-o),j.tag=2;var z=l.updateQueue;if(z!==null){z=z.shared;var V=z.pending;V===null?j.next=j:(j.next=V.next,V.next=j),z.pending=j}}l.lanes|=o,j=l.alternate,j!==null&&(j.lanes|=o),Ua(l.return,o,n),y.lanes|=o;break}j=j.next}}else if(l.tag===10)f=l.type===n.type?null:l.child;else if(l.tag===18){if(f=l.return,f===null)throw Error(u(341));f.lanes|=o,y=f.alternate,y!==null&&(y.lanes|=o),Ua(f,o,n),f=l.sibling}else f=l.child;if(f!==null)f.return=l;else for(f=l;f!==null;){if(f===n){f=null;break}if(l=f.sibling,l!==null){l.return=f.return,f=l;break}f=f.return}l=f}an(e,n,a.children,o),n=n.child}return n;case 9:return a=n.type,r=n.pendingProps.children,lo(n,o),a=bn(a),r=r(a),n.flags|=1,an(e,n,r,o),n.child;case 14:return r=n.type,a=Tn(r,n.pendingProps),a=Tn(r.type,a),Nd(e,n,r,a,o);case 15:return Sd(e,n,n.type,n.pendingProps,o);case 17:return r=n.type,a=n.pendingProps,a=n.elementType===r?a:Tn(r,a),Lr(e,n),n.tag=1,pn(r)?(e=!0,dr(n)):e=!1,lo(n,o),vd(n,r,a),tc(n,r,a,o),sc(null,n,r,!0,e,o);case 19:return Rd(e,n,o);case 22:return Cd(e,n,o)}throw Error(u(156,n.tag))};function i2(e,n){return F1(e,n)}function x4(e,n,o,r){this.tag=e,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Cn(e,n,o,r){return new x4(e,n,o,r)}function Sc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function w4(e){if(typeof e=="function")return Sc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===le)return 11;if(e===me)return 14}return 2}function kt(e,n){var o=e.alternate;return o===null?(o=Cn(e.tag,n,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=n,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&14680064,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,n=e.dependencies,o.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o}function Ur(e,n,o,r,a,l){var f=2;if(r=e,typeof e=="function")Sc(e)&&(f=1);else if(typeof e=="string")f=5;else e:switch(e){case B:return Ot(o.children,a,l,n);case X:f=8,a|=8;break;case q:return e=Cn(12,o,n,a|2),e.elementType=q,e.lanes=l,e;case he:return e=Cn(13,o,n,a),e.elementType=he,e.lanes=l,e;case M:return e=Cn(19,o,n,a),e.elementType=M,e.lanes=l,e;case ke:return Br(o,a,l,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case W:f=10;break e;case ne:f=9;break e;case le:f=11;break e;case me:f=14;break e;case _e:f=16,r=null;break e}throw Error(u(130,e==null?e:typeof e,""))}return n=Cn(f,o,n,a),n.elementType=e,n.type=r,n.lanes=l,n}function Ot(e,n,o,r){return e=Cn(7,e,r,n),e.lanes=o,e}function Br(e,n,o,r){return e=Cn(22,e,r,n),e.elementType=ke,e.lanes=o,e.stateNode={isHidden:!1},e}function Cc(e,n,o){return e=Cn(6,e,null,n),e.lanes=o,e}function Pc(e,n,o){return n=Cn(4,e.children!==null?e.children:[],e.key,n),n.lanes=o,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function j4(e,n,o,r,a){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=na(0),this.expirationTimes=na(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=na(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Lc(e,n,o,r,a,l,f,y,j){return e=new j4(e,n,o,y,j),n===1?(n=1,l===!0&&(n|=8)):n=0,l=Cn(3,null,null,n),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},$a(l),e}function b4(e,n,o){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:J,key:r==null?null:""+r,children:e,containerInfo:n,implementation:o}}function r2(e){if(!e)return dt;e=e._reactInternals;e:{if(Ct(e)!==e||e.tag!==1)throw Error(u(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(pn(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(u(171))}if(e.tag===1){var o=e.type;if(pn(o))return Au(e,o,n)}return n}function s2(e,n,o,r,a,l,f,y,j){return e=Lc(o,r,!0,e,a,l,f,y,j),e.context=r2(null),o=e.current,r=cn(),a=yt(o),l=Jn(r,a),l.callback=n??null,ht(o,l,a),e.current.lanes=a,Bo(e,a,r),mn(e,r),e}function $r(e,n,o,r){var a=n.current,l=cn(),f=yt(a);return o=r2(o),n.context===null?n.context=o:n.pendingContext=o,n=Jn(l,f),n.payload={element:e},r=r===void 0?null:r,r!==null&&(n.callback=r),e=ht(a,n,f),e!==null&&(zn(e,a,f,l),_r(e,a,f)),f}function Wr(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function a2(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<n?o:n}}function Ec(e,n){a2(e,n),(e=e.alternate)&&a2(e,n)}function N4(){return null}var c2=typeof reportError=="function"?reportError:function(e){console.error(e)};function Dc(e){this._internalRoot=e}Gr.prototype.render=Dc.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(u(409));$r(e,n,null,null)},Gr.prototype.unmount=Dc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Mt(function(){$r(null,e,null,null)}),n[Yn]=null}};function Gr(e){this._internalRoot=e}Gr.prototype.unstable_scheduleHydration=function(e){if(e){var n=V1();e={blockedOn:null,target:e,priority:n};for(var o=0;o<st.length&&n!==0&&n<st[o].priority;o++);st.splice(o,0,e),o===0&&Y1(e)}};function Tc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Vr(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function l2(){}function S4(e,n,o,r,a){if(a){if(typeof r=="function"){var l=r;r=function(){var z=Wr(f);l.call(z)}}var f=s2(n,r,e,0,null,!1,!1,"",l2);return e._reactRootContainer=f,e[Yn]=f.current,ni(e.nodeType===8?e.parentNode:e),Mt(),f}for(;a=e.lastChild;)e.removeChild(a);if(typeof r=="function"){var y=r;r=function(){var z=Wr(j);y.call(z)}}var j=Lc(e,0,!1,null,null,!1,!1,"",l2);return e._reactRootContainer=j,e[Yn]=j.current,ni(e.nodeType===8?e.parentNode:e),Mt(function(){$r(n,j,o,r)}),j}function Hr(e,n,o,r,a){var l=o._reactRootContainer;if(l){var f=l;if(typeof a=="function"){var y=a;a=function(){var j=Wr(f);y.call(j)}}$r(n,f,e,a)}else f=S4(o,n,e,a,r);return Wr(f)}W1=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var o=Uo(n.pendingLanes);o!==0&&(ta(n,o|1),mn(n,Be()),(Ne&6)===0&&(mo=Be()+500,pt()))}break;case 13:Mt(function(){var r=Xn(e,1);if(r!==null){var a=cn();zn(r,e,1,a)}}),Ec(e,1)}},oa=function(e){if(e.tag===13){var n=Xn(e,134217728);if(n!==null){var o=cn();zn(n,e,134217728,o)}Ec(e,134217728)}},G1=function(e){if(e.tag===13){var n=yt(e),o=Xn(e,n);if(o!==null){var r=cn();zn(o,e,n,r)}Ec(e,n)}},V1=function(){return Pe},H1=function(e,n){var o=Pe;try{return Pe=e,n()}finally{Pe=o}},qs=function(e,n,o){switch(n){case"input":if(Bs(e,o),n=o.name,o.type==="radio"&&n!=null){for(o=e;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<o.length;n++){var r=o[n];if(r!==e&&r.form===e.form){var a=lr(r);if(!a)throw Error(u(90));Ao(r),Bs(r,a)}}}break;case"textarea":x1(e,o);break;case"select":n=o.value,n!=null&&Vt(e,!!o.multiple,n,!1)}},E1=jc,D1=Mt;var C4={usingClientEntryPoint:!1,Events:[ii,no,lr,P1,L1,jc]},yi={findFiberByHostInstance:Pt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},P4={bundleType:yi.bundleType,version:yi.version,rendererPackageName:yi.rendererPackageName,rendererConfig:yi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:O.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=z1(e),e===null?null:e.stateNode},findFiberByHostInstance:yi.findFiberByHostInstance||N4,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Kr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Kr.isDisabled&&Kr.supportsFiber)try{Gi=Kr.inject(P4),$n=Kr}catch{}}return ln.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=C4,ln.createPortal=function(e,n){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Tc(n))throw Error(u(200));return b4(e,n,null,o)},ln.createRoot=function(e,n){if(!Tc(e))throw Error(u(299));var o=!1,r="",a=c2;return n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),n=Lc(e,1,!1,null,null,o,!1,r,a),e[Yn]=n.current,ni(e.nodeType===8?e.parentNode:e),new Dc(n)},ln.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=z1(n),e=e===null?null:e.stateNode,e},ln.flushSync=function(e){return Mt(e)},ln.hydrate=function(e,n,o){if(!Vr(n))throw Error(u(200));return Hr(null,e,n,!0,o)},ln.hydrateRoot=function(e,n,o){if(!Tc(e))throw Error(u(405));var r=o!=null&&o.hydratedSources||null,a=!1,l="",f=c2;if(o!=null&&(o.unstable_strictMode===!0&&(a=!0),o.identifierPrefix!==void 0&&(l=o.identifierPrefix),o.onRecoverableError!==void 0&&(f=o.onRecoverableError)),n=s2(n,null,e,1,o??null,a,!1,l,f),e[Yn]=n.current,ni(e),r)for(e=0;e<r.length;e++)o=r[e],a=o._getVersion,a=a(o._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[o,a]:n.mutableSourceEagerHydrationData.push(o,a);return new Gr(n)},ln.render=function(e,n,o){if(!Vr(n))throw Error(u(200));return Hr(null,e,n,!1,o)},ln.unmountComponentAtNode=function(e){if(!Vr(e))throw Error(u(40));return e._reactRootContainer?(Mt(function(){Hr(null,null,e,!1,function(){e._reactRootContainer=null,e[Yn]=null})}),!0):!1},ln.unstable_batchedUpdates=jc,ln.unstable_renderSubtreeIntoContainer=function(e,n,o,r){if(!Vr(o))throw Error(u(200));if(e==null||e._reactInternals===void 0)throw Error(u(38));return Hr(e,n,o,!1,r)},ln.version="18.3.1-next-f1338f8080-20240426",ln}var Uc;function Bc(){if(Uc)return Zr.exports;Uc=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(c){console.error(c)}}return i(),Zr.exports=m2(),Zr.exports}var $c;function g2(){if($c)return _i;$c=1;var i=Bc();return _i.createRoot=i.createRoot,_i.hydrateRoot=i.hydrateRoot,_i}var v2=g2(),w=Qr();function y2({tabs:i,activeTab:c,onTabChange:u}){return t.jsx("div",{className:"cn-tab-nav",children:i.map(d=>t.jsx("button",{"data-tab":d.id,className:`cn-tab-nav__item${c===d.id?" cn-tab-nav__item--active":""}`,onClick:()=>u(d.id),type:"button",children:d.label},d.id))})}const Wc="cookie-notice",es=()=>typeof window<"u"&&window.wp&&window.wp.i18n||null,s=(i,c=Wc)=>{const u=es();return u?u.__(i,c):i},yo=(i,c,u,d=Wc)=>{const p=es();return p?p._n(i,c,u,d):u===1?i:c},je=(i,...c)=>{const u=es();if(u&&typeof u.sprintf=="function")try{return u.sprintf(i,...c)}catch{return i}return i};function Ut({type:i="info",dismissible:c=!1,onDismiss:u,children:d}){const p={success:"notice-success",error:"notice-error",warning:"notice-warning",info:"notice-info"}[i]||"notice-info";return t.jsxs("div",{className:`notice inline ${p}${c?" is-dismissible":""}`,children:[t.jsx("p",{children:d}),c&&u&&t.jsx("button",{type:"button",className:"notice-dismiss",onClick:u,children:t.jsx("span",{className:"screen-reader-text",children:s("Dismiss this notice.","cookie-notice")})})]})}function Ze(){const i=window.cnReactData||{},c=i.app_id||"",u=(i.subscription||"").toLowerCase(),d=!!c;let p="banner_only";return d&&u==="pro"?p="pro":d&&(p="free"),{tier:p,isBannerOnly:p==="banner_only",isFree:p==="free",isPro:p==="pro",isConnected:d,version:i.version||""}}const Gc=w.createContext({config:null,isLoadingConfig:!1,refetchConfig:()=>{},configRefresh:{state:"idle",lastSynced:"",retry:()=>{}}});function wt(){return w.useContext(Gc)}function ns(){return s("Shared settings are off. Each site uses its own settings — manage them from each site's dashboard.","cookie-notice")}function ts(i){return{networkManaged:s("Managed by network","cookie-notice"),perSite:s("Set per site","cookie-notice"),pending:s("Pending","cookie-notice"),inactive:s("Not active","cookie-notice"),checking:s("Checking…","cookie-notice")}[i]||s("Not confirmed","cookie-notice")}function os(i){return{networkManaged:s("Managed by your network administrator","cookie-notice"),perSite:ns(),pending:s("Pending: finish setup in your Cookie Compliance account","cookie-notice"),inactive:s("Not active: visitors see a basic notice only","cookie-notice"),checking:s("Checking whether your banner is live…","cookie-notice")}[i]||s("Not confirmed — reload to see the saved value","cookie-notice")}function Re(){var i;return!!((i=window.cnReactData)!=null&&i.networkOverride)}function is(){return s("Global network settings override is active. Every site will use the same network settings. Please contact super administrator if you want to have more control over the settings.","cookie-notice")}function rs(){return t.jsx(Ut,{type:"info",children:is()})}function ss(){return t.jsx(Ut,{type:"info",children:ns()})}function as({managed:i,perSite:c=!1,children:u}){return!i&&!c?u:t.jsxs(t.Fragment,{children:[i?t.jsx(rs,{}):t.jsx(ss,{}),t.jsx("div",{className:"cn-network-managed",inert:"",children:u})]})}const _2=()=>({banner_only:s("Banner Only (Not Connected)","cookie-notice"),free:s("Free Plan","cookie-notice"),pro:s("Pro Plan","cookie-notice")});function cs(i){if(!i)return"";const c=Date.parse(String(i).trim().replace(" ","T")+"Z");return Number.isNaN(c)?"":new Date(c).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function k2(){const{configRefresh:i}=wt(),{state:c,lastSynced:u,retry:d}=i||{};if(c==="refreshing")return t.jsx("span",{className:"cn-footer__sync",children:s("Refreshing settings…","cookie-notice")});if(c==="failed"){const h=cs(u);return t.jsxs("span",{className:"cn-footer__sync cn-footer__sync--failed",children:[h?je(s("Couldn't reach Hu-manity — showing settings from %s.","cookie-notice"),h):s("Couldn't reach Hu-manity — showing cached settings.","cookie-notice")," ",t.jsx("button",{type:"button",className:"cn-footer__sync-retry",onClick:d,children:s("Retry","cookie-notice")})]})}const p=cs(u);return p?t.jsx("span",{className:"cn-footer__sync",children:je(s("Settings synced %s","cookie-notice"),p)}):null}function x2(){const{tier:i,version:c}=Ze(),u=Re()?s("Managed by network","cookie-notice"):_2()[i]||"";return t.jsxs("div",{className:"cn-footer",children:[t.jsxs("span",{className:"cn-footer__version",children:[je(s("Cookie Compliance v%1$s — %2$s","cookie-notice"),c||"—",u)," ",t.jsx(k2,{})]}),t.jsxs("span",{className:"cn-footer__links",children:[t.jsx("a",{href:"https://cookie-compliance.co/documentation/",target:"_blank",rel:"noopener noreferrer",children:s("Documentation","cookie-notice")})," | ",t.jsx("a",{href:"https://cookie-compliance.co/mcp/",target:"_blank",rel:"noopener noreferrer",children:s("AI assistant","cookie-notice")})," | ",t.jsx("a",{href:"https://cookie-compliance.co/support/",target:"_blank",rel:"noopener noreferrer",children:s("Support","cookie-notice")})," | ",t.jsx("a",{href:"https://cookie-compliance.co/privacy-policy/",target:"_blank",rel:"noopener noreferrer",children:s("Privacy Policy","cookie-notice")})]})]})}const Vc=w.createContext({dashboard:null,refetchDashboard:()=>{},isLoadingDashboard:!1,scorecardStatus:"loading"});function Mn(){return w.useContext(Vc)}const ls=i=>"cn_setup_wizard_complete_"+(i||"default"),us=i=>"cn_has_platform_config_"+(i||""),w2=i=>"cn_setup_just_finished_"+(i||"default"),Hc=w.createContext(null);function j2({onLawSave:i,onConsentClose:c,children:u}){const[d,p]=w.useState(!1),[h,m]=w.useState(0),[x,v]=w.useState(!1),[g,k]=w.useState(!1),[_,b]=w.useState(0),[A,C]=w.useState(!1),D=w.useMemo(()=>{var J;try{const B=((J=window.cnReactData)==null?void 0:J.app_id)||"";return!!B&&localStorage.getItem(us(B))==="1"}catch{return!1}},[]),P=w.useCallback(()=>{p(!1),v(!1),k(!1),C(!1)},[]),E=w.useCallback(()=>{P(),p(!0),m(J=>J+1)},[P]),I=w.useCallback(()=>{P(),k(!0),b(J=>J+1)},[P]),R=w.useCallback(()=>{v(!0),setTimeout(()=>{p(!1),v(!1),i&&i()},160)},[i]),O=w.useCallback(()=>{C(!0),setTimeout(()=>{k(!1),C(!1),c&&c()},160)},[c]),te={showLawWizard:d,lawScrollTrigger:h,lawClosing:x,showConsentPanel:g,consentScrollTrigger:_,consentClosing:A,hasPlatformConfig:D,openLawWizard:E,openConsentPanel:I,closeLawWizard:R,closeConsentPanel:O,closeAllPanels:P};return t.jsx(Hc.Provider,{value:te,children:u})}function ki(){const i=w.useContext(Hc);if(!i)throw new Error("usePanels() must be used inside <PanelProvider>.");return i}const b2={"&":"&","<":"<",">":">",""":'"',"'":"'"};function ds(i){return typeof i=="string"?i.replace(/&(?:amp|lt|gt|quot|#039);/g,c=>b2[c]):Array.isArray(i)?i.map(ds):i&&typeof i=="object"?Object.fromEntries(Object.entries(i).map(([c,u])=>[c,ds(u)])):i}function Kc(i){if(!i||typeof i!="object"||Array.isArray(i))return i;const c={...i};for(const u of["error","message"])u in c&&(c[u]=ds(c[u]));return c}const N2="--CNWAF-B64--",S2=["cn_react_update_design","cn_react_save_banner_style","cn_react_dashboard","cn_react_save_network_options"],Yc="cn_react_dashboard",C2=["register","login","login_code","login_code_resend","login_app","configure","sync_config"],P2=["app_id","app_key"],_o=new Set;function L2(i){return _o.add(i),()=>_o.delete(i)}async function xi(i,c){_o.forEach(d=>d.start());let u=!0;try{const d=await i();u=!1;try{_o.forEach(p=>p.reply&&p.reply(d))}catch{}return d}catch(d){throw u=!(d&&d.answered),d}finally{_o.forEach(d=>d.settle(u,c))}}const wi={options:{timeout:()=>s("The request timed out before the server answered. Your change may not have been saved — reload the page to see the saved value.","cookie-notice"),network:()=>s("The request could not reach the server. Your change may not have been saved — check your connection and reload the page to see the saved value.","cookie-notice"),http:i=>je(s("AJAX error: %d. Your change may not have been saved — reload the page to see the saved value.","cookie-notice"),i),unreadable:()=>s("The server's reply could not be read. Your change may not have been saved — reload the page to see the saved value.","cookie-notice")},read:{timeout:()=>s("Couldn't load — the server took too long to answer. Try again.","cookie-notice"),network:()=>s("Couldn't load — the server could not be reached. Check your connection and try again.","cookie-notice"),http:i=>je(s("Couldn't load (HTTP %d) — try again.","cookie-notice"),i),unreadable:()=>s("Couldn't load — the server's reply could not be read. Try again.","cookie-notice")},request:{timeout:()=>s("The server took too long to answer. Try again.","cookie-notice"),network:()=>s("The server could not be reached. Check your connection and try again.","cookie-notice"),http:i=>je(s("AJAX error: %d","cookie-notice"),i),unreadable:()=>s("The server's reply could not be read. Try again.","cookie-notice")}};function Ge(i,c={},u={}){return S2.includes(i)?xi(()=>ps(i,c,u),i):ps(i,c,u)}async function ps(i,c,{timeout:u=0,kind:d="request"}){var A,C,D;const p=wi[d]||wi.request,h=window.cnReactData||{},m=new FormData;m.append("action",i),m.append("nonce",h.nonce||""),h.network&&m.append("cn_network","1"),Object.entries(c).forEach(([P,E])=>{m.append(P,E)});const x=u?new AbortController:null,v=x?setTimeout(()=>x.abort(),u):null;let g,k;try{g=await fetch(h.ajaxURL||"/wp-admin/admin-ajax.php",{method:"POST",credentials:"same-origin",body:m,signal:x?x.signal:void 0}),k=await g.text()}catch{throw x&&x.signal.aborted?tt(p.timeout(),{timedOut:!0}):tt(p.network(),{network:!0})}finally{clearTimeout(v)}let _=null;try{_=JSON.parse(k)}catch{}const b=_&&typeof _=="object"&&_.success===!1?_:null;if(!g.ok){if(g.status===403){if(b&&typeof((A=b.data)==null?void 0:A.error)=="string"&&b.data.error)throw ji(b.data.error);const P=s("This save was blocked by a security plugin or firewall on your site (HTTP 403). Add an allow-list rule for the Cookie Compliance save action in your firewall (e.g. WordFence → Firewall → Live Traffic), then try again.","cookie-notice");throw b?ji(P):tt(P)}throw b?ji(((C=b.data)==null?void 0:C.error)||wi.request.http(g.status)):tt(p.http(g.status))}if(b)throw ji(((D=b.data)==null?void 0:D.error)||s("Request failed","cookie-notice"));if(!_||typeof _!="object"||_.success!==!0)throw tt(p.unreadable());return _.data}function ji(i){return Object.assign(new Error(i),{refused:!0,answered:!0})}function fs(i){return Object.assign(new Error(i),{answered:!0})}function qc(i){try{return JSON.parse(i)}catch{return}}const Qc=i=>!!i&&typeof i=="object"&&i.success===!1;function tt(i,c={}){return Object.assign(new Error(i),{uncertain:!0},c)}function gn(i,c={},u="",d=""){return C2.includes(i)?xi(()=>Zc(i,c,u,d),i):Zc(i,c,u,d)}async function Zc(i,c,u,d){var k;const p=window.cnReactData||{},h=new FormData;h.append("action","cn_api_request"),h.append("nonce",d||p.welcomeNonce||""),h.append("request",i),h.append("cn_nonce",u),p.network&&h.append("cn_network","1"),Object.entries(c).forEach(([_,b])=>{h.append(_,b)});let m,x;try{m=await fetch(p.ajaxURL||"/wp-admin/admin-ajax.php",{method:"POST",credentials:"same-origin",body:h}),x=await m.text()}catch(_){throw Object.assign(_ instanceof Error?_:new Error(String(_)),{uncertain:!0,network:!0})}const v=qc(x);if(!m.ok){const _=`Request failed: ${m.status}`;throw Qc(v)?fs(((k=v.data)==null?void 0:k.error)||_):tt(_)}if(v===void 0)throw tt(wi.request.unreadable());const g=Kc(v);if(g&&g.error)throw Object.assign(fs(g.error),g.expired?{expired:!0}:{});return g}const E2=()=>{const i=window.cnReactData||{},c={};if(i.devMode){const u=new URLSearchParams(window.location.search),d=u.get("cn_usage"),p=u.get("cn_tier");d!==null&&(c.cn_usage=d),p!==null&&(c.cn_tier=p)}return Ge(Yc,c,{kind:"read"})},D2=()=>Ge("cn_react_config",{},{kind:"read"}),T2=(i={})=>Ge("cn_react_consent_logs",i,{kind:"read"}),A2=(i={})=>Ge("cn_react_export_consent_logs",i,{kind:"read"}),hs=(i={})=>Ge("cn_react_privacy_consent",i,{kind:"read"}),R2=(i={})=>{const c={};return Object.entries(i).forEach(([u,d])=>{d.active!==void 0&&(c[`sources[${u}][active]`]=d.active?"1":"0"),d.activeType!==void 0&&(c[`sources[${u}][active_type]`]=d.activeType)}),Ge("cn_react_save_privacy_consent",c)},z2=(i,c,u)=>Ge("cn_react_privacy_consent_form_status",{source:i,form_id:c,status:u?"1":"0"}),M2=(i={})=>Ge("cn_react_privacy_consent_logs",i,{kind:"read"}),bi=3e4,Xc=(i={})=>{const c=()=>ps("cn_react_save_options",i,{timeout:bi,kind:"options"});return P2.some(u=>u in i)?xi(c,"cn_react_save_options"):c()},F2=()=>Ge("cn_react_reset_options",{},{timeout:bi,kind:"options"}),I2=({global_override:i,global_cookie:c})=>Ge("cn_react_save_network_options",{global_override:i?"1":"",global_cookie:c?"1":""},{timeout:bi,kind:"options"}),O2=()=>Ge("cn_react_plugin_options",{},{timeout:bi,kind:"read"}),U2=()=>Ge("cn_react_dismiss_welcome"),ms=()=>Ge("cn_react_complete_setup_wizard"),B2=i=>Ge("cn_react_save_banner_style",{style:i}),$2=i=>Ge("cn_react_rule_values",{param:i},{kind:"read"}),Jc=(i=[])=>{const c={};return i.forEach((u,d)=>{c[`languages[${d}]`]=u}),Ge("cn_react_apply_languages",c)},gs=(i={},c={},u={})=>{const d={};return Object.entries(i).forEach(([p,h])=>{d[`design[${p}]`]=h}),Object.entries(c).forEach(([p,h])=>{d[`config[${p}]`]=h}),Object.entries(u).forEach(([p,h])=>{d[`consentConfig[${p}]`]=h}),Ge("cn_react_update_design",d)},W2=()=>Ge("cn_react_update_design",{sync_privacy_policy:"1"}),G2=()=>Ge("cn_react_dev_reset"),V2=()=>{const i=window.cnReactData||{},c={};return i.network&&(c.cn_network="1"),gn("sync_config",c,"",i.welcomeNonce||"")},H2=()=>xi(K2,"cn_purge_cache");async function K2(){var p;const i=window.cnReactData||{},c=new FormData;c.append("action","cn_purge_cache"),c.append("nonce",i.purgeNonce||""),i.network&&c.append("cn_network","1");let u,d;try{u=await fetch(i.ajaxURL||"/wp-admin/admin-ajax.php",{method:"POST",credentials:"same-origin",body:c}),d=await u.text()}catch(h){throw Object.assign(h instanceof Error?h:new Error(String(h)),{uncertain:!0,network:!0})}if(!u.ok){const h=`Purge cache failed: ${u.status}`,m=qc(d);throw Qc(m)?fs(((p=m.data)==null?void 0:p.error)||h):tt(h)}}function Y2(i){return i?!!i.app_blocking&&i.app_blocking_engine!==!1:!1}function Ni(i){return!i||typeof i!="object"?null:{engine:i.engine==="new"?"new":"classic",style:i.style==="compact"?"compact":"standard",managed:!!i.managed}}function el(i,c){return!!i&&!!c&&i.engine===c.engine&&i.style===c.style&&i.managed===c.managed}function Si(i){return s(i==="new"?"New engine":"Classic engine","cookie-notice")}function nl(i){return s(i==="compact"?"Compact":"Standard","cookie-notice")}function q2(i){return(i==null?void 0:i.engine)==="new"?je(s("Connected. Your banner: %1$s · %2$s.","cookie-notice"),Si("new"),nl(i.style)):je(s("Connected. Your banner: %s.","cookie-notice"),Si("classic"))}const vs="cn_connected";function Bt(i={}){const c=new URL(window.location.href);c.searchParams.set(vs,"1"),Object.entries(i).forEach(([u,d])=>c.searchParams.set(u,String(d))),c.toString()===window.location.href?window.location.reload():window.location.href=c.toString()}const Q2=300,jt=["app_blocking","app_blocking_engine"],Z2=[...jt,"app_id"],tl=["app_id","app_key"],ol=["conditional_rules","refuse_code","refuse_code_head"];function il(i){return N2+btoa(unescape(encodeURIComponent(i)))}function ko(i){const c={};return Object.entries(i||{}).forEach(([u,d])=>{u==="see_more_opt"&&typeof d=="object"?(c["see_more_opt[text]"]=d.text||"",c["see_more_opt[link_type]"]=d.link_type||"page",c["see_more_opt[id]"]=d.id||0,c["see_more_opt[link]"]=d.link||"",c["see_more_opt[sync]"]=d.sync?"1":""):u==="colors"&&typeof d=="object"?(c.bar_opacity=d.bar_opacity||100,c.color_bar=d.bar||"",c.color_text=d.text||"",c.color_button=d.button||""):u==="conditional_rules"?c[u]=JSON.stringify(d||[]):u==="excluded_handles"?c[u]=Array.isArray(d)?d.join(`41 `):d||"":u==="refuse_code"||u==="refuse_code_head"?c[u]=d||"":typeof d=="boolean"?c[u]=d?"1":"":c[u]=d}),c}function X2(i){return i.startsWith("see_more_opt[")?"see_more_opt":i==="bar_opacity"||i.startsWith("color_")?"colors":i}function rl(i,c,u){const d=m=>m==null?{}:ko({[i]:m}),p=d(c),h=d(u);return Object.keys({...p,...h}).every(m=>String(p[m]??"")===String(h[m]??""))}function J2(i,c){const u={};return c.forEach(d=>{d in i&&(u[d]=i[d])}),u}let ve=null,xo=null,sl=Promise.resolve(),wo=null,Ci=new Set;const Pi=new Map,ys=new Set,jo=new Map;let bo=null,No=0,_s=0,So=!1,Co=!1,ks=0,al=0;const xs=new Set;function Pn(){if(ve)return;const i=window.cnReactData||{},c={...i.options||{}};xo=ko(c),ve={confirmed:c,draft:c,blockingPaused:!!i.blockingPaused,complianceActive:!!i.complianceActive,status:typeof i.status=="string"?i.status:"",networkManaged:!!i.networkOverride,network:!!i.network,manual:0,saving:[],unconfirmed:[],pull:null,statusPull:null,pullSeen:!1,signalsGen:0,banner:Ni(i.banner)||{engine:"classic",style:"standard",managed:!!i.networkOverride},error:null,saved:!1,autoError:null}}function ze(i){const c=ve;ve={...ve,...i},e3(c,ve)&&(ve.signalsGen=c.signalsGen+1),ve.confirmed!==c.confirmed&&window.cnReactData&&(window.cnReactData.options={...ve.confirmed}),ve.blockingPaused!==c.blockingPaused&&window.cnReactData&&(window.cnReactData.blockingPaused=ve.blockingPaused),xs.forEach(u=>u())}function e3(i,c){return i.status!==c.status||i.complianceActive!==c.complianceActive||i.confirmed!==c.confirmed&&Z2.some(u=>!rl(u,i.confirmed[u],c.confirmed[u]))}function bt(){return[...new Set([...Ci,...Pi.keys()])]}function $t(i,c){i.forEach(u=>{const d=(Pi.get(u)||0)+c;d>0?Pi.set(u,d):Pi.delete(u)})}function Li(i){const c=sl.then(i);return sl=c.catch(()=>{}),c}function cl(i){return ze({manual:ve.manual+1}),Li(i).finally(()=>ze({manual:ve.manual-1}))}function Ei(){return{epoch:_s,clean:No===0,sent:++ks}}function ll(i){return!!i&&i.clean&&No===0&&i.epoch===_s}function ul(i,c){if(typeof i!="boolean")return ve.blockingPaused;const u=++ks;return i?(al=u,!0):ve.blockingPaused&&!(c&&c.sent>al)}function Di(i,c,u,d,p,h){i=i&&typeof i=="object"?i:{},xo=p?ko(i):{...xo,...ko(i)};const{draft:m,confirmed:x}=ve,v=p?{}:{...m};Object.keys(p?{...m,...i}:i).forEach(k=>{const _=u===!0||u.includes(k),b=!_&&jo.has(k)&&ys.has(k);rl(k,m[k],_?c[k]:b?jo.get(k):x[k])?k in i?v[k]=i[k]:delete v[k]:v[k]=m[k]}),p?jo.clear():Object.keys(i).forEach(k=>jo.delete(k));const g=Ni(d==null?void 0:d.banner);ze({banner:g&&!el(g,ve.banner)?g:ve.banner,confirmed:p?{...i}:{...x,...i},draft:v,blockingPaused:ul(d==null?void 0:d.blocking_paused,h),complianceActive:typeof(d==null?void 0:d.compliance_active)=="boolean"?d.compliance_active:ve.complianceActive,status:typeof(d==null?void 0:d.status)=="string"?d.status:ve.status,unconfirmed:p?[]:ve.unconfirmed.filter(k=>!(k in i)),pull:ve.pull&&!So&&ll(h)&&jt.every(k=>k in i)?null:ve.pull,statusPull:ve.statusPull&&!Co&&ll(h)&&typeof(d==null?void 0:d.compliance_active)=="boolean"?null:ve.statusPull})}function n3(i){return i.some(c=>tl.includes(c))||tl.some(c=>!ve.confirmed[c]||ve.confirmed[c]==="0")}function dl(i){return So=!0,!i||!n3(i)?{pull:"unknown"}:(Co=!0,{pull:"unknown",statusPull:"unknown"})}function pl(i,c,u){if(!c.length)return{};if(!(i&&i.refused))return c.forEach(h=>jo.set(h,u[h])),ws(),{unconfirmed:[...new Set([...ve.unconfirmed,...c])],...dl(c)};const d=c.filter(h=>ys.has(h)),p={...ve.draft};return d.forEach(h=>{p[h]===u[h]&&(p[h]=ve.confirmed[h])}),{draft:p,autoError:d.length?{keys:d,message:i&&i.message||s("Save failed","cookie-notice")}:ve.autoError}}function ws(){return bo||(bo=Li(async()=>{bo=null;const i=Ei();try{const c=await O2();if(c&&c.options&&typeof c.options=="object")return Di(c.options,ve.draft,[],c,!0,i),!0}catch{}return No===0&&!bo&&(ve.pull&&!So&&ze({pull:"failed"}),ve.statusPull&&!Co&&ze({statusPull:"failed"})),!1})),bo}async function fl(i,c){const u=ve.draft;let d=[];c&&ze({error:null,saved:!1});try{const p=ko(i?J2(u,i):u),h={};if(Object.entries(p).forEach(([x,v])=>{v!==xo[x]&&(h[x]=ol.includes(x)?il(v):v)}),d=[...new Set(Object.keys(h).map(X2))],d.length){$t(d,1),ze({saving:bt()});try{const x=Ei(),v=await Xc(h);Object.keys(h).forEach(g=>{xo[g]=p[g]}),Di(v==null?void 0:v.options,u,d,v,!1,x)}finally{$t(d,-1)}}const m=ve.autoError&&ve.autoError.keys.some(x=>d.includes(x))?null:ve.autoError;return ze({saving:bt(),autoError:m,...c?{saved:!0}:{}}),!0}catch(p){return ze({saving:bt(),...pl(p,d,u),...c?{error:(p==null?void 0:p.message)||s("Save failed","cookie-notice")}:{}}),!1}}function hl(){wo=null;const i=[...Ci];Ci=new Set,$t(i,1),Li(()=>fl(i,!1)).finally(()=>{$t(i,-1),ze({saving:bt()})})}function js(){wo!==null&&(clearTimeout(wo),hl())}function Nt(i){return Pn(),xs.add(i),()=>xs.delete(i)}function Fn(){return Pn(),ve}function t3(i,c){Pn(),ze({draft:{...ve.draft,[i]:c},saved:!1})}function o3(i,c,u){Pn(),ze({draft:{...ve.draft,[i]:{...ve.draft[i]||{},[c]:u}},saved:!1})}function i3(){return Pn(),cl(()=>fl(null,!0))}function r3(i){Pn(),i.forEach(c=>{ys.add(c),Ci.add(c)}),clearTimeout(wo),wo=setTimeout(hl,Q2),ze({saving:bt(),autoError:null})}function s3(){return Pn(),js(),cl(async()=>{ze({error:null,saved:!1});const i=ve.draft;try{const c=Ei(),u=await F2();return Di(u==null?void 0:u.options,i,!0,u,!0,c),ze({autoError:null}),!0}catch(c){return ze({error:(c==null?void 0:c.message)||s("Reset failed","cookie-notice"),...c!=null&&c.refused?{}:dl()}),c!=null&&c.refused||ws(),!1}})}function ml(i){Pn(),js();const c=Object.keys(i);return Li(async()=>{const u=ve.draft,d={};Object.entries(i).forEach(([p,h])=>{d[p]=ol.includes(p)?il(h):h}),$t(c,1),ze({saving:bt()});try{const p=Ei(),h=await Xc(d);return Di(h==null?void 0:h.options,u,c,h,!1,p),h}catch(p){throw ze(pl(p,c,u)),p}finally{$t(c,-1),ze({saving:bt()})}})}function a3(){return Pn(),js(),ws()}async function c3(i,c){Pn();const u={sent:++ks},d=await i(),p=ul(c(d),u);return p!==ve.blockingPaused&&ze({blockingPaused:p}),d}L2({start(){Pn(),No++,_s++,ze({pull:So?"unknown":"checking",statusPull:Co?"unknown":"checking",pullSeen:!0})},reply(i){const c=Ni(i==null?void 0:i.banner);c&&!el(c,ve.banner)&&ze({banner:c})},settle(i,c){No--,i&&(So=Co=!0,ze({pull:"unknown",statusPull:"unknown"})),c!==Yc&&ze({signalsGen:ve.signalsGen+1}),a3()}});function Po(i){return i.network&&!i.confirmed.global_override}function gl(i){return i.networkManaged?"networkManaged":Po(i)?"perSite":i.complianceActive?i.pull||jt.some(c=>i.unconfirmed.includes(c))?"unconfirmed":i.blockingPaused?"paused":jt.some(c=>i.saving.includes(c))?"saving":Y2(i.confirmed)?"active":"off":"inactive"}function l3(i){return i.networkManaged?"networkManaged":Po(i)?"perSite":i.complianceActive?!i.pullSeen||i.statusPull?"unconfirmed":"live":"inactive"}function vl(i,c){const[u,d]=w.useState(null),[p,h]=w.useState(!0),[m,x]=w.useState(null),v=w.useRef(null),g=w.useCallback(async()=>{if(v.current){d(v.current),h(!1);return}h(!0),x(null);try{const _=await i(c);v.current=_,d(_)}catch(_){x(_.message||"An error occurred")}finally{h(!1)}},[i,c]);w.useEffect(()=>{g()},[g]);const k=w.useCallback(()=>{v.current=null,g()},[g]);return{data:u,loading:p,error:m,refetch:k}}const u3=async()=>{const i=Fn().signalsGen,c=await c3(E2,u=>{var d;return(d=u==null?void 0:u.analytics)==null?void 0:d.thresholdExceeded});return c&&typeof c=="object"&&yl.set(c,i),c},yl=new WeakMap;function d3(i){return i&&typeof i=="object"?yl.get(i):void 0}function p3(){return w.useSyncExternalStore(Nt,Fn).signalsGen}function f3(){return vl(u3)}function h3(){return vl(D2)}function m3(){const i=w.useSyncExternalStore(Nt,Fn);return{options:i.draft,confirmed:i.confirmed,update:t3,updateNested:o3,save:i3,scheduleSave:r3,reset:s3,loading:i.manual>0,error:i.error,saved:i.saved,blockingPaused:i.blockingPaused,blockingState:gl(i),networkManaged:i.networkManaged,perSite:Po(i),savingKeys:i.saving,unconfirmedKeys:i.pull?[...new Set([...i.unconfirmed,...jt])]:i.unconfirmed,checkingKeys:i.pull==="checking"?jt:_l,pullUnknownKeys:i.pull==="unknown"?jt:_l,autoSaveError:i.autoError}}const _l=[];function kl(){return w.useSyncExternalStore(Nt,Fn).blockingPaused}function bs(){const i=w.useSyncExternalStore(Nt,Fn),c=gl(i);return c!=="unconfirmed"?c:i.pull==="checking"?"checking":i.pull==="unknown"?"pullUnknown":c}function Lo(){const i=w.useSyncExternalStore(Nt,Fn),c=l3(i);return c==="inactive"?i.status==="pending"?"pending":c:c==="unconfirmed"&&(!i.pullSeen||i.statusPull==="checking")?"checking":c}function Ti(){return w.useSyncExternalStore(Nt,Fn).banner}function Ai(){return Po(w.useSyncExternalStore(Nt,Fn))}function g3(){const[i,c]=w.useState(!1),[u,d]=w.useState(null);return{exportCsv:w.useCallback(async h=>{c(!0),d(null);try{const m=await A2(h);if(m.inactive)return d(s("Consent logs can be exported once Cookie Compliance is active.","cookie-notice")),m;if(m.csv){const x=new Blob([m.csv],{type:"text/csv;charset=utf-8;"}),v=URL.createObjectURL(x),g=document.createElement("a");g.href=v,g.download=`consent-logs-${h.start_date||"export"}.csv`,g.click(),URL.revokeObjectURL(v)}return m}catch(m){throw d(m.message||"Export failed"),m}finally{c(!1)}},[]),loading:i,error:u}}const sn=((h1=window.cnReactData)==null?void 0:h1.appUrl)||"https://app.hu-manity.co",xl={gdpr:"GDPR",ccpa:"CCPA",otherus:"US State Laws",ukpecr:"UK PECR",lgpd:"LGPD",pipeda:"PIPEDA",popia:"POPIA"},wl={GDPR:{flag:"🇪🇺",geo:"EU"},CCPA:{flag:"🇺🇸",geo:"US"},"US State Laws":{flag:"🇺🇸",geo:"US"},"UK PECR":{flag:"🇬🇧",geo:"UK"},LGPD:{flag:"🇧🇷",geo:"Brazil"},PIPEDA:{flag:"🇨🇦",geo:"Canada"},POPIA:{flag:"🇿🇦",geo:"South Africa"}};function jl(i){return i?Object.entries(i).filter(([,c])=>!!c).map(([c])=>c):[]}function In({children:i,sidebar:c}){return t.jsxs("div",{className:"cn-page-layout",children:[t.jsx("div",{className:"cn-main",children:i}),c&&t.jsx("div",{className:"cn-sidebar",children:c})]})}function On({title:i,children:c}){return t.jsxs("div",{className:"cn-side-card",children:[i&&t.jsx("h3",{children:i}),c]})}function Ue({variant:i="primary",size:c="md",children:u,...d}){return t.jsx("button",{className:`cn-button cn-button--${i} cn-button--${c}`,type:"button",...d,children:u})}function Ce({label:i,type:c="text",value:u,onChange:d,placeholder:p,options:h,error:m,helper:x,required:v,children:g,...k}){const _=k.id||`cn-field-${i==null?void 0:i.toLowerCase().replace(/\s+/g,"-")}`,b=()=>c==="textarea"?t.jsx("textarea",{id:_,className:`cn-form-field__input cn-form-field__textarea${m?" cn-form-field__input--error":""}`,value:u,onChange:A=>d==null?void 0:d(A.target.value),placeholder:p,...k}):c==="select"?t.jsx("select",{id:_,className:`cn-form-field__input cn-form-field__select${m?" cn-form-field__input--error":""}`,value:u,onChange:A=>d==null?void 0:d(A.target.value),...k,children:h==null?void 0:h.map(A=>t.jsx("option",{value:A.value,children:A.label},A.value))}):t.jsx("input",{id:_,type:c,className:`cn-form-field__input${m?" cn-form-field__input--error":""}`,value:u,onChange:A=>d==null?void 0:d(A.target.value),placeholder:p,...k});return t.jsxs("div",{className:"cn-form-field",children:[i&&t.jsxs("label",{className:"cn-form-field__label",htmlFor:_,children:[i,v&&t.jsx("span",{className:"cn-form-field__req",children:"*"})]}),g||b(),m&&t.jsx("div",{className:"cn-form-field__error",children:m}),x&&!m&&t.jsx("div",{className:"cn-form-field__helper",children:x})]})}function Ns(){return t.jsx("p",{className:"cn-conn-hint cn-conn-hint--returning",children:s("Signed up with Google? Copy your App ID and App Secret Key from the Admin Portal.","cookie-notice")})}function Un(){return t.jsx("span",{className:"cn-pro-badge",children:"PRO"})}const bl={banner_only:0,free:1,pro:2};function Ss({requiredTier:i="pro",children:c,message:u,onCta:d}){const{tier:p}=Ze();if(bl[p]>=bl[i])return c;const m=i==="free"?"Connect to Cookie Compliance to unlock this feature.":"Upgrade to Cookie Compliance Pro to unlock this feature.",x=i==="free"?"Connect Your Site":"Upgrade Now",v=d?t.jsx("button",{type:"button",onClick:d,className:`cn-button cn-button--${i==="free"?"primary":"upgrade"}`,children:x}):t.jsx("a",{href:i==="free"?"#":"https://cookie-compliance.co/pricing/",className:`cn-button cn-button--${i==="free"?"primary":"upgrade"}`,target:i==="pro"?"_blank":void 0,rel:i==="pro"?"noopener noreferrer":void 0,children:x});return t.jsxs("div",{className:"cn-tier-gate",children:[t.jsx("div",{className:"cn-tier-gate__content",children:c}),t.jsx("div",{className:"cn-tier-gate__overlay",children:t.jsxs("div",{className:"cn-tier-gate__cta",children:[i==="pro"&&t.jsx(Un,{}),t.jsx("p",{children:u||m}),!Re()&&v]})})]})}function Wt({showPortalLink:i=!0,addNotice:c}){var X,q,W,ne,le,he;const{isPro:u,isConnected:d}=Ze(),{dashboard:p}=Mn(),h=((X=window.cnReactData)==null?void 0:X.lastSynced)||"",[m,x]=w.useState(!1),[v,g]=w.useState(null),[k,_]=w.useState(((W=(q=window.cnReactData)==null?void 0:q.options)==null?void 0:W.app_id)||""),[b,A]=w.useState(((le=(ne=window.cnReactData)==null?void 0:ne.options)==null?void 0:le.app_key)||""),[C,D]=w.useState(!1),[P,E]=w.useState(""),I=!!((he=window.cnReactData)!=null&&he.networkOverride),R=Lo(),O=Ai(),te=p!=null&&p.domainUrl?(()=>{try{return new URL(p.domainUrl).hostname}catch{return window.location.hostname}})():window.location.hostname,J=async()=>{x(!0),g(null);try{await V2(),g("success"),c&&c(s("Configuration synced. Reloading…","cookie-notice"),"success"),setTimeout(()=>window.location.reload(),800)}catch(M){g("error"),c&&c(M.message||s("Sync failed. Please try again.","cookie-notice"),"error"),x(!1)}},B=async()=>{D(!0),E("");try{await ml({app_id:k,app_key:b});try{const M=await gn("sync_config");if(M!=null&&M.success){try{await ms()}catch{}try{localStorage.setItem(ls(k),"1"),localStorage.setItem(us(k),"1")}catch{}}}catch{}k?Bt():window.location.reload()}catch(M){E(M.message||s("Save failed","cookie-notice")),D(!1)}};return t.jsxs(On,{title:s("Domain Info","cookie-notice"),children:[t.jsxs("div",{className:"cn-dom-rows",children:[t.jsxs("div",{className:"cn-dom-row",children:[t.jsx("span",{className:"cn-dom-row__k",children:s("Domain","cookie-notice")}),t.jsx("span",{className:"cn-dom-row__v",children:te})]}),t.jsxs("div",{className:"cn-dom-row",children:[t.jsx("span",{className:"cn-dom-row__k",children:s("Protection","cookie-notice")}),t.jsx("span",{className:"cn-dom-row__v",children:I?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"cn-dot cn-dot--gray"})," ",s("Managed by network","cookie-notice")]}):d?R==="live"?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"cn-dot cn-dot--green"})," ",s("Active","cookie-notice")]}):t.jsxs(t.Fragment,{children:[t.jsx("span",{className:`cn-dot cn-dot--${R==="pending"?"yellow":"gray"}`})," ",O?ts(R):os(R)]}):t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"cn-dot cn-dot--gray"})," ",s("Not connected","cookie-notice")]})})]}),t.jsxs("div",{className:"cn-dom-row",children:[t.jsx("span",{className:"cn-dom-row__k",children:s("Plan","cookie-notice")}),t.jsx("span",{className:"cn-dom-row__v",children:u?t.jsxs(t.Fragment,{children:[s("Pro","cookie-notice")," ",t.jsx(Un,{})]}):s("Free Plan","cookie-notice")})]})]}),!I&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"cn-dom-credentials",children:[t.jsx(Ce,{label:s("App ID","cookie-notice"),value:k,onChange:_,placeholder:s("Your application ID","cookie-notice"),autoComplete:"off"}),t.jsx(Ce,{label:s("App Secret Key","cookie-notice"),type:"password",value:b,onChange:A,placeholder:s("Your App Secret Key","cookie-notice"),autoComplete:"new-password"}),t.jsx(Ns,{}),P&&t.jsx("div",{className:"cn-conn-error",children:P}),t.jsx(Ue,{variant:"primary",onClick:B,disabled:C,children:s(C?"Saving…":"Save and Connect","cookie-notice")})]}),t.jsxs("div",{className:"cn-pull-config",children:[t.jsxs("div",{className:`cn-pull-config__row${O?" cn-network-managed":""}`,inert:O?"":void 0,children:[t.jsx(Ue,{variant:"secondary",onClick:J,disabled:m||O,children:s(m?"Syncing…":"Pull latest settings","cookie-notice")}),t.jsx("span",{className:"cn-pull-config__timestamp",children:h?je(s("Last synced (UTC): %s","cookie-notice"),h):s("Not synced yet","cookie-notice")})]}),O&&t.jsx("p",{className:"cn-pull-config__desc",children:ns()}),!O&&v==="error"&&t.jsx("p",{className:"cn-pull-config__desc cn-pull-config__desc--error",children:s("Sync failed. Please try again.","cookie-notice")}),!O&&!v&&t.jsx("p",{className:"cn-pull-config__desc",children:s("Manually pull the latest configuration including autoblocking. Also syncs automatically twice a day.","cookie-notice")})]})]}),i&&u&&!I&&t.jsxs("a",{className:"cn-dom-link",href:`${sn}/#/configuration`,target:"_blank",rel:"noopener noreferrer",children:[s("Open Admin Portal","cookie-notice")," →"]})]})}function v3({onActivate:i}){return t.jsxs("div",{className:"cn-score-hero",children:[t.jsx("div",{className:"cn-score-hero__icon","aria-hidden":"true",children:t.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[t.jsx("circle",{cx:"12",cy:"12",r:"10"}),t.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),t.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})}),t.jsxs("div",{className:"cn-score-hero__body",children:[t.jsx("div",{className:"cn-score-hero__title",children:s("You have a banner. Not compliance.","cookie-notice")}),t.jsx("div",{className:"cn-score-hero__summary",children:s("A banner tells visitors about cookies. Compliance actually enforces the law.","cookie-notice")}),t.jsx("div",{className:"cn-score-hero__sub",children:s("Free · Takes 60 seconds · No credit card","cookie-notice")})]}),t.jsx("div",{className:"cn-score-hero__actions",children:t.jsxs("button",{type:"button",className:"cn-score-hero__cta",onClick:i,children:[s("Connect Your Site","cookie-notice")," →"]})})]})}const y3=["active","off","paused","inactive"];function Nl(i){return!!i&&i.status!=="crit"&&!i.value_cls}function _3(i,c,u=null,d=!0){var E,I;const p=bs(),h=p3(),[m,x]=w.useState(null),[v,g]=w.useState(null),k=y3.includes(p),_=!!i&&(m==null?void 0:m.dashboard)===i,b=d3(i)===h,A=(I=(E=i==null?void 0:i.scorecard)==null?void 0:E.boxes)==null?void 0:I.find(R=>R.key==="blocking"),C=!(i!=null&&i.scorecard)||Nl(A)===(p==="active"),D=k&&_&&m.state===p&&b&&C,P=`${h}:${p}`;return w.useEffect(()=>{if(!(!i||!k)){if(!_){x({dashboard:i,state:p});return}if(D){v!==null&&g(null);return}d&&v!==P&&(g(P),c())}},[i,k,_,D,p,P,v,c,d]),i?k?D?"fresh":!_||v!==P?"updating":"unconfirmed":"pending":u?"failed":"loading"}const k3=["ok","warn","crit","neutral"],x3=i=>({saving:s("Saving…","cookie-notice"),checking:s("Checking…","cookie-notice")})[i]||s("Not confirmed","cookie-notice"),Sl=i=>({saving:s("Saving autoblocking…","cookie-notice"),checking:s("Checking the saved autoblocking setting…","cookie-notice"),pullUnknown:s("Not confirmed — reload the page to see the saved autoblocking setting.","cookie-notice")})[i]||s("Not confirmed — reload to see the saved value","cookie-notice");function w3(i,c){return i==="loading"?s("Loading your status…","cookie-notice"):i==="failed"?s("Your status could not be loaded. Reload the page to try again.","cookie-notice"):i==="pending"?Sl(c):s(i==="updating"?"Updating your status…":"Not confirmed — reload the page to see your current status.","cookie-notice")}function j3(i,{fresh:c,blockingState:u,widgetState:d,banner:p}){let h=i;if(h.key==="banner"&&d!=="live")h={key:h.key,title:h.title,status:"off",value:ts(d),sub:os(d)};else if(h.key==="banner"){const m=p.engine!=="new"?Si(p.engine):p.style==="compact"?s("Compact banner","cookie-notice"):s("Standard banner","cookie-notice");h={...h,sub:m}}else h.key==="blocking"&&!c&&(h={key:h.key,title:h.title,status:"off",value:x3(u),sub:Sl(u),pending:!0});return!c&&h.status==="ok"&&(h={...h,status:"off",value_cls:"off",pill:null,bar:h.bar&&{...h.bar,cls:"off"}}),h}function b3(i,c){if(i.key==="banner")return c.widgetState==="checking"?null:{label:s("Banner settings","cookie-notice"),run:c.actions.banner};if(i.status==="ok"||i.pending)return null;const u=!c.isPro&&c.actions.pricing?{label:s("See plans","cookie-notice"),run:c.actions.pricing}:null,d={label:s("Consent signals","cookie-notice"),run:c.actions.signals},p={label:s("Review autoblocking","cookie-notice"),run:c.actions.autoblocking};switch(i.key){case"blocking":return c.quota||!c.isPro&&Nl(i)?u:p;case"google":return d;case"metams":return c.isPro?d:u;case"gpc":return c.quota?u:{label:s("Review GPC setting","cookie-notice"),run:c.actions.autoblocking};case"visits":return i.status==="warn"||i.status==="crit"?u:null;default:return null}}function N3({b:i,fix:c,previewUrl:u}){const d=i.value_cls||i.status;return t.jsxs("div",{className:`cn-card cn-ov-box${i.status==="crit"?" cn-card--crit":i.status==="warn"?" cn-card--warn":""}`,"data-ov-box":i.key,"data-status":i.status,children:[t.jsxs("div",{className:"cn-card__top",children:[t.jsx("div",{className:"cn-ov-box__title",children:i.title}),t.jsx("div",{className:`cn-card__dot cn-card__dot--${i.status}`})]}),t.jsx("div",{className:`cn-card__main cn-card__main--${d}`,children:i.value}),i.sub&&t.jsx("div",{className:"cn-card__sub",children:i.sub}),i.bar&&t.jsx("div",{className:"cn-card__bar-wrap",children:t.jsx("div",{className:`cn-card__bar-fill cn-card__bar-fill--${i.bar.cls}`,style:{width:`${Math.max(0,Math.min(100,i.bar.pct))}%`}})}),i.pill&&t.jsx("div",{className:"cn-card__pills",children:t.jsx("span",{className:`cn-card__pill cn-card__pill--${i.pill.cls}`,children:i.pill.label})}),(c||u)&&t.jsxs("div",{className:"cn-card__foot",children:[c&&c.run&&t.jsxs("button",{type:"button",className:"cn-ov-box__fix",onClick:()=>c.run(),children:[c.label," →"]}),u&&t.jsxs("a",{href:u,target:"_blank",rel:"noreferrer",children:[s("Preview on my site","cookie-notice")," ↗"]}),u&&t.jsxs("details",{className:"cn-card__help",children:[t.jsx("summary",{children:s("Can't see your banner?","cookie-notice")}),t.jsx("p",{children:s("Can't see your banner on your own site? That's often normal. It stays hidden when your browser sends Global Privacy Control, when your visitor's region doesn't require a banner, or when you've already made a choice. Preview shows it anyway. Nothing is saved.","cookie-notice")})]})]})]})}function S3({scorecard:i,status:c,blockingState:u,widgetState:d,isPro:p,siteUrl:h,actions:m}){const x=Ti(),v=c==="fresh"&&!!i,g=(i==null?void 0:i.hero)||{},k=v&&k3.includes(g.hero_cls)?g.hero_cls:"neutral",_=v&&i.state!=="no_laws"&&Number(i.gaps)||0,b={fresh:v,blockingState:u,widgetState:d,isPro:p,actions:m,banner:x,quota:(i==null?void 0:i.state)==="free_over"||u==="paused"};return t.jsxs(t.Fragment,{children:[t.jsx("section",{className:`cn-ov-verdict cn-ov-verdict--${k}`,"data-verdict":v?k:"pending","data-state":v?i.state:void 0,"aria-live":"polite",children:v?t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"cn-ov-verdict__top",children:[t.jsx("span",{className:"cn-ov-verdict__grade",children:g.grade}),_>0?t.jsx("span",{className:"cn-ov-verdict__count",children:je(yo("%d thing to fix","%d things to fix",_,"cookie-notice"),_)}):g.gap_label&&t.jsx("span",{className:"cn-ov-verdict__gap",children:g.gap_label})]}),g.intro&&t.jsx("p",{className:"cn-ov-verdict__intro",children:g.intro}),g.note&&t.jsx("p",{className:"cn-ov-verdict__note",children:g.note})]}):t.jsx("div",{className:"cn-ov-verdict__top",children:t.jsx("span",{className:"cn-ov-verdict__grade",children:w3(c,u)})})}),i&&Array.isArray(i.boxes)&&t.jsx("div",{className:"cn-card-grid cn-card-grid--3 cn-ov-boxes",children:i.boxes.map(A=>{const C=j3(A,b);return t.jsx(N3,{b:C,fix:b3(C,b),previewUrl:C.key==="banner"&&h?`${h}?cn_preview=1`:""},C.key)})})]})}const Cs=i=>Number(i||0).toLocaleString();function C3({dashboard:i,isFree:c,onOpenConsentLogs:u}){var k;const d=i==null?void 0:i.consents7d;if(!d)return null;const p=((k=i==null?void 0:i.analytics)==null?void 0:k.cycleUsage)||{},h=Number(p.threshold)||0,m=Number(d.total)||0,x=d.levelLabels||{},v=String((i==null?void 0:i.analyticsFetchedAt)||"").trim(),g=[["accept",x.level3,d.acceptRate],["custom",x.level2,d.customRate],["reject",x.level1,d.rejectRate]];return t.jsxs("section",{className:"cn-ov-numbers","aria-label":s("Numbers","cookie-notice"),children:[c&&h>0&&t.jsxs("div",{className:"cn-ov-stat","data-stat":"visits",children:[t.jsxs("span",{className:"cn-ov-stat__v",children:[Cs(p.visits)," / ",Cs(h)]}),t.jsx("span",{className:"cn-ov-stat__k",children:s("visits this cycle","cookie-notice")})]}),t.jsx("div",{className:"cn-ov-stat","data-stat":"consents",children:m>0?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"cn-ov-stat__v",children:Cs(m)}),t.jsx("span",{className:"cn-ov-stat__k",children:yo("consent in the last 7 days","consents in the last 7 days",m,"cookie-notice")}),t.jsx("span",{className:"cn-ov-stat__split",children:g.map(([_,b,A])=>t.jsxs("span",{className:`cn-ov-stat__part cn-ov-stat__part--${_}`,"data-part":_,children:[b," ",t.jsxs("strong",{children:[Number(A)||0,"%"]})]},_))})]}):t.jsx("span",{className:"cn-ov-stat__k",children:s("No consents recorded in the last 7 days","cookie-notice")})}),t.jsxs("div",{className:"cn-ov-numbers__foot",children:[v&&t.jsx("span",{className:"cn-ov-numbers__fetched","data-stat":"fetched",children:je(s("Last fetched %s UTC","cookie-notice"),v.slice(0,16))}),u&&t.jsxs("button",{type:"button",className:"cn-layer__link-btn",onClick:()=>u(),children:[s("View consent logs","cookie-notice")," →"]})]})]})}function Cl(i={}){const c=i.google_consent_default,u=i.facebook_consent_default,d=i.microsoft_consent_default;return{google:!!c&&Object.keys(c).length>0,facebook:!!u&&Object.keys(u).length>0,microsoft:!!d&&Object.keys(d).length>0,gpc:!!i.gpc_support,dnt:!!i.do_not_track}}function P3({noLaws:i,isPro:c,managed:u,onOpenLaws:d,onOpenSignals:p,onOpenPricing:h,onOpenPrivacy:m}){var D;const{config:x}=wt(),[v,g]=w.useState([]);w.useEffect(()=>{if(u)return;let P=!0;return hs().then(E=>{P&&g(((E==null?void 0:E.sources)||[]).filter(I=>I.availability&&!I.active).map(I=>I.name))}).catch(()=>{}),()=>{P=!1}},[u]);const k=((D=window.cnReactData)==null?void 0:D.detectedPlugins)||[],_=Cl((x==null?void 0:x.blocking)||{}),b=h?{action:s("See plans","cookie-notice"),run:h}:null,A={action:s("Review consent signals","cookie-notice"),run:p},C=[];return i&&C.push({key:"laws",text:s("Choose the privacy laws your site follows, so the banner asks the right visitors the right way.","cookie-notice"),action:s("Choose laws","cookie-notice"),run:d}),k.includes("google")&&!_.google&&C.push({key:"google",text:s("Google tools detected. Google Consent Mode is off.","cookie-notice"),...A}),k.includes("facebook")&&!_.facebook&&C.push(c?{key:"facebook",text:s("Facebook Pixel detected. Facebook consent signals are off.","cookie-notice"),...A}:{key:"facebook",text:s("Facebook Pixel detected. Facebook consent signals need the Pro plan.","cookie-notice"),...b}),k.includes("microsoft")&&!_.microsoft&&C.push(c?{key:"microsoft",text:s("Microsoft Clarity detected. Microsoft consent signals are off.","cookie-notice"),...A}:{key:"microsoft",text:s("Microsoft Clarity detected. Microsoft consent signals need the Pro plan.","cookie-notice"),...b}),v.length>0&&C.push({key:"forms",text:je(s("These form plugins are not recording proof of consent yet: %s.","cookie-notice"),v.join(", ")),action:s("Open Privacy Consent","cookie-notice"),run:m}),C.length===0?null:t.jsxs("section",{className:"cn-ov-steps","aria-labelledby":"cn-ov-steps-title",children:[t.jsx("h2",{id:"cn-ov-steps-title",className:"cn-ov-steps__title",children:s("Next steps","cookie-notice")}),t.jsx("ul",{className:"cn-ov-steps__list",children:C.map(P=>t.jsxs("li",{className:"cn-ov-steps__item","data-step":P.key,children:[t.jsx("span",{className:"cn-ov-steps__text",children:P.text}),P.run&&t.jsxs("button",{type:"button",className:"cn-layer__link-btn",onClick:()=>P.run(),children:[P.action," →"]})]},P.key))})]})}const L3=()=>[{key:"standard",desc:s("Heading, description and the full set of consent levels.","cookie-notice")},{key:"compact",desc:s("Leaves out the Balanced level; every category is still under Customize. One slim row when the banner is fixed to the top or bottom of a wide screen.","cookie-notice")}];function Pl({name:i,labelledBy:c}){const u=Ti(),[d,p]=w.useState(null),[h,m]=w.useState(""),[x,v]=w.useState(!1);w.useEffect(()=>{v(!1)},[u.engine,u.style]);const g=u.engine==="new",k=g&&!u.managed,_=d||(g?u.style:null),b=async C=>{var D;if(!(!k||d||C===u.style)){p(C),m(""),v(!1);try{const P=Ni((D=await B2(C))==null?void 0:D.banner);v(!!P&&P.engine==="new"&&P.style!==C)}catch(P){m((P==null?void 0:P.message)||s("The banner style could not be saved. Please try again.","cookie-notice"))}finally{p(null)}}},A=s(d?"Saving…":g?x?"Saved. It will show here after the next sync.":"Both styles offer the same choices, including reject.":"Available once this site is on the New engine.","cookie-notice");return t.jsxs("div",{className:"cn-style-cards",children:[t.jsx("div",{className:`cn-style-cards__group${k?"":" cn-style-cards__group--readonly"}${g?"":" cn-style-cards__group--locked"}${d?" cn-style-cards__group--saving":""}`,role:"radiogroup","aria-labelledby":c,"aria-busy":d?"true":void 0,children:L3().map(C=>t.jsxs("label",{className:`cn-style-cards__card${_===C.key?" cn-style-cards__card--checked":""}`,children:[t.jsx("input",{type:"radio",name:i,value:C.key,checked:_===C.key,disabled:!k,onChange:()=>b(C.key)}),t.jsx("span",{className:"cn-style-cards__name",children:nl(C.key)}),t.jsx("span",{className:"cn-style-cards__desc",children:C.desc})]},C.key))}),t.jsx("span",{className:"cn-style-cards__note","aria-live":"polite",children:A}),h&&t.jsx("div",{className:"cn-style-cards__error",role:"alert",children:h})]})}const be={container:"_container_nva6m_2",grid:"_grid_nva6m_8",card:"_card_nva6m_16",cardSelected:"_cardSelected_nva6m_32",geoArt:"_geoArt_nva6m_38",lawName:"_lawName_nva6m_47",jurisdiction:"_jurisdiction_nva6m_54",hiddenCheckbox:"_hiddenCheckbox_nva6m_60",checkmark:"_checkmark_nva6m_72",autoBadge:"_autoBadge_nva6m_88",detail:"_detail_nva6m_102",detailHeader:"_detailHeader_nva6m_112",detailTitle:"_detailTitle_nva6m_119",detailJurisdiction:"_detailJurisdiction_nva6m_125",detailClose:"_detailClose_nva6m_131",detailSection:"_detailSection_nva6m_144",detailSectionLabel:"_detailSectionLabel_nva6m_148",detailOverview:"_detailOverview_nva6m_157",detailList:"_detailList_nva6m_163",detailListItem:"_detailListItem_nva6m_172",detailEnforcement:"_detailEnforcement_nva6m_188",detailEmpty:"_detailEmpty_nva6m_197",detailEmptyArrow:"_detailEmptyArrow_nva6m_208",detailEmptyText:"_detailEmptyText_nva6m_215",detailDnsHelp:"_detailDnsHelp_nva6m_222",dnsInput:"_dnsInput_nva6m_263"},Ps=()=>[{key:"gdpr",name:s("GDPR","cookie-notice"),jurisdiction:s("European Union","cookie-notice"),description:s("General Data Protection Regulation","cookie-notice"),locales:["de","fr","it","es","nl","pl","pt","sv","el","de_DE","fr_FR","it_IT","es_ES","nl_NL","pl_PL","pt_PT","sv_SE","el_GR","da_DK","fi","ro_RO","bg_BG","cs_CZ","et","hr","hu_HU","lt_LT","lv","sk_SK","sl_SI"],overview:s("The EU’s gold standard for data privacy. Applies to any site with visitors from the 27 EU member states — regardless of where your business is based.","cookie-notice"),requirements:[s("Prior, informed consent before any non-essential cookies","cookie-notice"),s("Clear opt-out that’s as easy as opting in","cookie-notice"),s("Right to erasure (‘be forgotten’) on request","cookie-notice"),s("Data processing records & DPO for large processors","cookie-notice")],product:[s("Consent banner with granular category controls","cookie-notice"),s("Consent proof stored per visitor","cookie-notice"),s("GDPR-mode autoblocking holds scripts until consent","cookie-notice")],enforcement:s("Fines up to €20M or 4% of global annual revenue. Enforced by national DPAs.","cookie-notice")},{key:"ccpa",name:s("CCPA / CPRA","cookie-notice"),jurisdiction:s("California, USA","cookie-notice"),description:s("California Consumer Privacy Act","cookie-notice"),locales:["en_US"],overview:s("California’s comprehensive privacy law, upgraded by CPRA in 2023. If you serve California residents, it applies — even if you’re outside the US.","cookie-notice"),requirements:[s("Opt-out of sale or sharing of personal data","cookie-notice"),s("Honor Global Privacy Control (GPC) signals automatically","cookie-notice"),s("Annual privacy policy updates","cookie-notice"),s("Right to know, delete, and correct personal data","cookie-notice")],product:[s("GPC signal detection and automatic opt-out (Pro plan)","cookie-notice"),s("Do Not Sell link insertion","cookie-notice"),s("Consent-mode compatible analytics opt-out","cookie-notice")],enforcement:s("Fines up to $7,500 per intentional violation. Enforced by the California Privacy Protection Agency.","cookie-notice")},{key:"otherus",name:s("US State Laws","cookie-notice"),jurisdiction:s("United States","cookie-notice"),description:s("Virginia, Colorado, Connecticut, and more","cookie-notice"),locales:["en_US"],overview:s("Virginia, Colorado, Connecticut, Utah, Montana, Texas, Oregon, and more have passed comprehensive privacy laws. The landscape is evolving fast.","cookie-notice"),requirements:[s("Consent for sensitive data processing","cookie-notice"),s("Universal opt-out mechanism support (like GPC)","cookie-notice"),s("Right to access, correct, delete, and opt out of targeted advertising","cookie-notice"),s("Data protection assessments for high-risk processing","cookie-notice")],product:[s("Automatic US-state privacy-law consent banner","cookie-notice"),s("Opt-out of targeted advertising and Do-Not-Sell signaling","cookie-notice"),s("Universal Opt-Out (GPC) honoring on Pro plans","cookie-notice")],enforcement:s("Fines from $7,500–$20,000 per violation depending on state. Enforced by state attorneys general.","cookie-notice")},{key:"ukpecr",name:s("UK PECR","cookie-notice"),jurisdiction:s("United Kingdom","cookie-notice"),description:s("Privacy and Electronic Communications Regulations","cookie-notice"),locales:["en_GB"],overview:s("The UK’s post-Brexit equivalent to GDPR’s cookie rules. Applies to any site with UK visitors. Enforced by the ICO, which has been increasingly active.","cookie-notice"),requirements:[s("Prior consent for analytics and marketing cookies","cookie-notice"),s("Clear information about what cookies do","cookie-notice"),s("Easy withdrawal of consent","cookie-notice"),s("Legitimate interest cannot be used for tracking cookies","cookie-notice")],product:[s("UK-specific consent banner variant","cookie-notice"),s("ICO-compliant consent language","cookie-notice"),s("Consent proof storage","cookie-notice")],enforcement:s("Fines up to £17.5M or 4% of global turnover. Enforced by the ICO.","cookie-notice")},{key:"lgpd",name:s("LGPD","cookie-notice"),jurisdiction:s("Brazil","cookie-notice"),description:s("Lei Geral de Proteção de Dados","cookie-notice"),locales:["pt_BR"],overview:s("Brazil’s General Data Protection Law covers 214 million people. Modeled on GDPR, it requires a lawful basis for processing and strong user rights.","cookie-notice"),requirements:[s("Valid lawful basis for each data processing activity","cookie-notice"),s("Clear, granular consent for non-essential cookies","cookie-notice"),s("Right to access, correct, delete, and revoke consent","cookie-notice"),s("Report breaches within 2 business days","cookie-notice")],product:[s("LGPD-mode consent banner with Portuguese language support","cookie-notice"),s("Consent revocation flow","cookie-notice"),s("Breach-ready consent audit trail","cookie-notice")],enforcement:s("Fines up to 2% of Brazil revenue, capped at R$50M per violation. Enforced by the ANPD.","cookie-notice")},{key:"pipeda",name:s("PIPEDA","cookie-notice"),jurisdiction:s("Canada","cookie-notice"),description:s("Personal Information Protection and Electronic Documents Act","cookie-notice"),locales:["en_CA","fr_CA"],overview:s("Canada’s federal privacy law. Bill C-27 (CPPA) reform is underway and will bring requirements closer to GDPR. Applies to commercial activity across Canada.","cookie-notice"),requirements:[s("Express consent for collection, use, and disclosure of personal data","cookie-notice"),s("Privacy policy clearly explaining data use","cookie-notice"),s("Individual access and correction rights","cookie-notice"),s("Breach reporting to the Privacy Commissioner","cookie-notice")],product:[s("PIPEDA-compliant consent banner","cookie-notice"),s("English + French bilingual support","cookie-notice"),s("Consent records with timestamps","cookie-notice")],enforcement:s("Fines up to CAD $100,000. Enforced by the Office of the Privacy Commissioner of Canada.","cookie-notice")},{key:"popia",name:s("POPIA","cookie-notice"),jurisdiction:s("South Africa","cookie-notice"),description:s("Protection of Personal Information Act","cookie-notice"),locales:["af_ZA"],overview:s("South Africa’s Protection of Personal Information Act took full effect in 2021. Applies to any business processing data about South African residents.","cookie-notice"),requirements:[s("Lawful basis for all personal information processing","cookie-notice"),s("Consent for direct marketing and cookie use","cookie-notice"),s("Data subject rights: access, correction, deletion","cookie-notice"),s("Appoint an Information Officer","cookie-notice")],product:[s("POPIA-compliant consent banner","cookie-notice"),s("Afrikaans language support","cookie-notice"),s("Consent audit trail","cookie-notice")],enforcement:s("Fines up to ZAR 10M or 10 years imprisonment. Enforced by the Information Regulator.","cookie-notice")}];function E3(i){if(!i)return[];const c=i.toLowerCase(),u=c.split("_")[0];return Ps().filter(d=>d.locales.some(p=>p.toLowerCase()===c||p.toLowerCase()===u)).map(d=>d.key)}const D3=["M40.00,4.80L40.75,6.96L43.04,7.01L41.22,8.40L41.88,10.59L40.00,9.28L38.12,10.59L38.78,8.40L36.96,7.01L39.25,6.96Z","M50.60,7.64L50.17,9.89L52.13,11.08L49.86,11.36L49.33,13.59L48.36,11.52L46.08,11.71L47.75,10.15L46.86,8.03L48.87,9.14Z","M58.36,15.40L56.86,17.13L57.97,19.14L55.85,18.25L54.29,19.92L54.48,17.64L52.41,16.67L54.64,16.14L54.92,13.87L56.11,15.83Z","M61.20,26.00L59.04,26.75L58.99,29.04L57.60,27.22L55.41,27.88L56.72,26.00L55.41,24.12L57.60,24.78L58.99,22.96L59.04,25.25Z","M58.36,36.60L56.11,36.17L54.92,38.13L54.64,35.86L52.41,35.33L54.48,34.36L54.29,32.08L55.85,33.75L57.97,32.86L56.86,34.87Z","M50.60,44.36L48.87,42.86L46.86,43.97L47.75,41.85L46.08,40.29L48.36,40.48L49.33,38.41L49.86,40.64L52.13,40.92L50.17,42.11Z","M40.00,47.20L39.25,45.04L36.96,44.99L38.78,43.60L38.12,41.41L40.00,42.72L41.88,41.41L41.22,43.60L43.04,44.99L40.75,45.04Z","M29.40,44.36L29.83,42.11L27.87,40.92L30.14,40.64L30.67,38.41L31.64,40.48L33.92,40.29L32.25,41.85L33.14,43.97L31.13,42.86Z","M21.64,36.60L23.14,34.87L22.03,32.86L24.15,33.75L25.71,32.08L25.52,34.36L27.59,35.33L25.36,35.86L25.08,38.13L23.89,36.17Z","M18.80,26.00L20.96,25.25L21.01,22.96L22.40,24.78L24.59,24.12L23.28,26.00L24.59,27.88L22.40,27.22L21.01,29.04L20.96,26.75Z","M21.64,15.40L23.89,15.83L25.08,13.87L25.36,16.14L27.59,16.67L25.52,17.64L25.71,19.92L24.15,18.25L22.03,19.14L23.14,17.13Z","M29.40,7.64L31.13,9.14L33.14,8.03L32.25,10.15L33.92,11.71L31.64,11.52L30.67,13.59L30.14,11.36L27.87,11.08L29.83,9.89Z"];function T3(){return t.jsx("svg",{viewBox:"0 0 80 52",fill:"none",style:{width:"100%",height:"auto"},children:D3.map((i,c)=>t.jsx("path",{d:i,fill:"#20c19e",opacity:"0.9"},c))})}function A3(){return t.jsx("svg",{viewBox:"0 0 80 52",style:{width:"100%",height:"auto"},children:t.jsx("path",{d:"M37.513,42.904L38.238,43.379L37.825,43.645ZM37.052,44.75L37.717,45.823L37.272,45.618ZM35.977,42.471L35.977,42.471L35.977,42.471ZM35.268,39.936L35.268,39.936L35.268,39.936ZM33.989,42.904L33.989,42.904L33.989,42.904ZM33.676,39.32L34.798,39.964L33.73,39.76ZM32.497,39.347L33.222,39.384L32.807,39.892ZM31.86,39.021L31.86,39.021L31.86,39.021ZM29.205,3L32.401,3.908L38.713,5.758L41.841,6.576L41.84,6.58L38.653,18.933L41.444,23.13L44.007,26.988L48.051,33.092L52.339,39.534L52.222,40.059L52.645,40.847L52.88,42.027L53.42,42.959L52.253,43.484L51.779,44.08L51.723,45.075L51.378,45.722L50.695,46.134L50.495,47.457L51.101,47.842L50.851,48.976L50.148,49L41.666,47.998L41.371,47.343L41.515,45.403L41.115,44.386L39.247,42.072L38.422,41.969L38.28,40.638L37.359,40.575L36.115,39.635L36.034,39.084L35.246,38.245L34.184,37.993L33.352,37.495L32.221,37.309L31.791,36.609L32.419,34.386L31.689,33.643L31.931,33.211L30.973,31.644L30.057,29.011L29.65,28.484L29.661,27.639L30.53,26.451L30.232,25.596L29.675,25.538L28.998,24.284L29.024,22.847L29.328,21.783L29.707,21.754L29.599,22.695L30.309,23.509L30.302,22.525L29.816,21.111L30.434,20.929L30.14,20.407L29.328,21.612L28.616,20.617L28.022,20.414L28.453,19.444L28.184,18.476L27.692,17.819L26.886,15.851L27.158,15.473L27.119,14.107L27.54,13.351L27.621,12.162L26.58,9.935L26.661,9.167L27.876,7.733L28.302,6.532L28.962,5.414L29.033,4.098L28.808,3.838Z",fill:"rgba(32,193,158,0.15)",stroke:"#20c19e",strokeWidth:1.2,strokeLinejoin:"round"})})}function R3(){return t.jsx("div",{style:{width:46,height:46,margin:"0 auto"},children:t.jsx("div",{"data-geo":"us",style:{width:"100%",height:"100%",lineHeight:0},dangerouslySetInnerHTML:{__html:`<svg version="1.0" xmlns="http://www.w3.org/2000/svg"40 `+l.stack}return{value:e,source:n,stack:a,digest:null}}function oc(e,n,o){return{value:e,source:null,stack:o??null,digest:n??null}}function ic(e,n){try{console.error(n.value)}catch(o){setTimeout(function(){throw o})}}var r4=typeof WeakMap=="function"?WeakMap:Map;function _d(e,n,o){o=Jn(-1,o),o.tag=3,o.payload={element:null};var r=n.value;return o.callback=function(){Rr||(Rr=!0,_c=r),ic(e,n)},o}function kd(e,n,o){o=Jn(-1,o),o.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var a=n.value;o.payload=function(){return r(a)},o.callback=function(){ic(e,n)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(o.callback=function(){ic(e,n),typeof r!="function"&&(gt===null?gt=new Set([this]):gt.add(this));var f=n.stack;this.componentDidCatch(n.value,{componentStack:f!==null?f:""})}),o}function xd(e,n,o){var r=e.pingCache;if(r===null){r=e.pingCache=new r4;var a=new Set;r.set(n,a)}else a=r.get(n),a===void 0&&(a=new Set,r.set(n,a));a.has(o)||(a.add(o),e=_4.bind(null,e,n,o),n.then(e,e))}function jd(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function wd(e,n,o,r,a){return(e.mode&1)===0?(e===n?e.flags|=65536:(e.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(n=Jn(-1,1),n.tag=2,ht(o,n,1))),o.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var s4=O.ReactCurrentOwner,fn=!1;function cn(e,n,o,r){n.child=e===null?Wu(n,null,o,r):ao(n,e.child,o,r)}function bd(e,n,o,r,a){o=o.render;var l=n.ref;return lo(n,a),r=qa(e,n,o,r,l,a),o=Qa(),e!==null&&!fn?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~a,et(e,n,a)):(Me&&o&&Ta(n),n.flags|=1,cn(e,n,r,a),n.child)}function Nd(e,n,o,r,a){if(e===null){var l=o.type;return typeof l=="function"&&!Sc(l)&&l.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(n.tag=15,n.type=l,Sd(e,n,l,r,a)):(e=Ur(o.type,null,r,n,n.mode,a),e.ref=n.ref,e.return=n,n.child=e)}if(l=e.child,(e.lanes&a)===0){var f=l.memoizedProps;if(o=o.compare,o=o!==null?o:Xo,o(f,r)&&e.ref===n.ref)return et(e,n,a)}return n.flags|=1,e=kt(l,r),e.ref=n.ref,e.return=n,n.child=e}function Sd(e,n,o,r,a){if(e!==null){var l=e.memoizedProps;if(Xo(l,r)&&e.ref===n.ref)if(fn=!1,n.pendingProps=r=l,(e.lanes&a)!==0)(e.flags&131072)!==0&&(fn=!0);else return n.lanes=e.lanes,et(e,n,a)}return rc(e,n,o,r,a)}function Cd(e,n,o){var r=n.pendingProps,a=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((n.mode&1)===0)n.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ee(ho,xn),xn|=o;else{if((o&1073741824)===0)return e=l!==null?l.baseLanes|o:o,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,Ee(ho,xn),xn|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:o,Ee(ho,xn),xn|=r}else l!==null?(r=l.baseLanes|o,n.memoizedState=null):r=o,Ee(ho,xn),xn|=r;return cn(e,n,a,o),n.child}function Pd(e,n){var o=n.ref;(e===null&&o!==null||e!==null&&e.ref!==o)&&(n.flags|=512,n.flags|=2097152)}function rc(e,n,o,r,a){var l=pn(o)?Lt:tn.current;return l=oo(n,l),lo(n,a),o=qa(e,n,o,r,l,a),r=Qa(),e!==null&&!fn?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~a,et(e,n,a)):(Me&&r&&Ta(n),n.flags|=1,cn(e,n,o,a),n.child)}function Ld(e,n,o,r,a){if(pn(o)){var l=!0;dr(n)}else l=!1;if(lo(n,a),n.stateNode===null)Lr(e,n),vd(n,o,r),tc(n,o,r,a),r=!0;else if(e===null){var f=n.stateNode,y=n.memoizedProps;f.props=y;var w=f.context,z=o.contextType;typeof z=="object"&&z!==null?z=bn(z):(z=pn(o)?Lt:tn.current,z=oo(n,z));var V=o.getDerivedStateFromProps,K=typeof V=="function"||typeof f.getSnapshotBeforeUpdate=="function";K||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(y!==r||w!==z)&&yd(n,f,r,z),ft=!1;var G=n.memoizedState;f.state=G,kr(n,r,f,a),w=n.memoizedState,y!==r||G!==w||dn.current||ft?(typeof V=="function"&&(nc(n,o,V,r),w=n.memoizedState),(y=ft||gd(n,o,y,r,G,w,z))?(K||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(n.flags|=4194308)):(typeof f.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=r,n.memoizedState=w),f.props=r,f.state=w,f.context=z,r=y):(typeof f.componentDidMount=="function"&&(n.flags|=4194308),r=!1)}else{f=n.stateNode,Vu(e,n),y=n.memoizedProps,z=n.type===n.elementType?y:Tn(n.type,y),f.props=z,K=n.pendingProps,G=f.context,w=o.contextType,typeof w=="object"&&w!==null?w=bn(w):(w=pn(o)?Lt:tn.current,w=oo(n,w));var ie=o.getDerivedStateFromProps;(V=typeof ie=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(y!==K||G!==w)&&yd(n,f,r,w),ft=!1,G=n.memoizedState,f.state=G,kr(n,r,f,a);var ae=n.memoizedState;y!==K||G!==ae||dn.current||ft?(typeof ie=="function"&&(nc(n,o,ie,r),ae=n.memoizedState),(z=ft||gd(n,o,z,r,G,ae,w)||!1)?(V||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(r,ae,w),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(r,ae,w)),typeof f.componentDidUpdate=="function"&&(n.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof f.componentDidUpdate!="function"||y===e.memoizedProps&&G===e.memoizedState||(n.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&G===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=ae),f.props=r,f.state=ae,f.context=w,r=z):(typeof f.componentDidUpdate!="function"||y===e.memoizedProps&&G===e.memoizedState||(n.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&G===e.memoizedState||(n.flags|=1024),r=!1)}return sc(e,n,o,r,l,a)}function sc(e,n,o,r,a,l){Pd(e,n);var f=(n.flags&128)!==0;if(!r&&!f)return a&&Ru(n,o,!1),et(e,n,l);r=n.stateNode,s4.current=n;var y=f&&typeof o.getDerivedStateFromError!="function"?null:r.render();return n.flags|=1,e!==null&&f?(n.child=ao(n,e.child,null,l),n.child=ao(n,null,y,l)):cn(e,n,y,l),n.memoizedState=r.state,a&&Ru(n,o,!0),n.child}function Ed(e){var n=e.stateNode;n.pendingContext?Tu(e,n.pendingContext,n.pendingContext!==n.context):n.context&&Tu(e,n.context,!1),Wa(e,n.containerInfo)}function Dd(e,n,o,r,a){return so(),Ma(a),n.flags|=256,cn(e,n,o,r),n.child}var ac={dehydrated:null,treeContext:null,retryLane:0};function cc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Td(e,n,o){var r=n.pendingProps,a=Fe.current,l=!1,f=(n.flags&128)!==0,y;if((y=f)||(y=e!==null&&e.memoizedState===null?!1:(a&2)!==0),y?(l=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),Ee(Fe,a&1),e===null)return za(n),e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((n.mode&1)===0?n.lanes=1:e.data==="$!"?n.lanes=8:n.lanes=1073741824,null):(f=r.children,e=r.fallback,l?(r=n.mode,l=n.child,f={mode:"hidden",children:f},(r&1)===0&&l!==null?(l.childLanes=0,l.pendingProps=f):l=Br(f,r,0,null),e=Ot(e,r,o,null),l.return=n,e.return=n,l.sibling=e,n.child=l,n.child.memoizedState=cc(o),n.memoizedState=ac,e):lc(n,f));if(a=e.memoizedState,a!==null&&(y=a.dehydrated,y!==null))return a4(e,n,f,r,y,a,o);if(l){l=r.fallback,f=n.mode,a=e.child,y=a.sibling;var w={mode:"hidden",children:r.children};return(f&1)===0&&n.child!==a?(r=n.child,r.childLanes=0,r.pendingProps=w,n.deletions=null):(r=kt(a,w),r.subtreeFlags=a.subtreeFlags&14680064),y!==null?l=kt(y,l):(l=Ot(l,f,o,null),l.flags|=2),l.return=n,r.return=n,r.sibling=l,n.child=r,r=l,l=n.child,f=e.child.memoizedState,f=f===null?cc(o):{baseLanes:f.baseLanes|o,cachePool:null,transitions:f.transitions},l.memoizedState=f,l.childLanes=e.childLanes&~o,n.memoizedState=ac,r}return l=e.child,e=l.sibling,r=kt(l,{mode:"visible",children:r.children}),(n.mode&1)===0&&(r.lanes=o),r.return=n,r.sibling=null,e!==null&&(o=n.deletions,o===null?(n.deletions=[e],n.flags|=16):o.push(e)),n.child=r,n.memoizedState=null,r}function lc(e,n){return n=Br({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function Pr(e,n,o,r){return r!==null&&Ma(r),ao(n,e.child,null,o),e=lc(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function a4(e,n,o,r,a,l,f){if(o)return n.flags&256?(n.flags&=-257,r=oc(Error(u(422))),Pr(e,n,f,r)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(l=r.fallback,a=n.mode,r=Br({mode:"visible",children:r.children},a,0,null),l=Ot(l,a,f,null),l.flags|=2,r.return=n,l.return=n,r.sibling=l,n.child=r,(n.mode&1)!==0&&ao(n,e.child,null,f),n.child.memoizedState=cc(f),n.memoizedState=ac,l);if((n.mode&1)===0)return Pr(e,n,f,null);if(a.data==="$!"){if(r=a.nextSibling&&a.nextSibling.dataset,r)var y=r.dgst;return r=y,l=Error(u(419)),r=oc(l,r,void 0),Pr(e,n,f,r)}if(y=(f&e.childLanes)!==0,fn||y){if(r=qe,r!==null){switch(f&-f){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(r.suspendedLanes|f))!==0?0:a,a!==0&&a!==l.retryLane&&(l.retryLane=a,Xn(e,a),zn(r,e,a,-1))}return Nc(),r=oc(Error(u(421))),Pr(e,n,f,r)}return a.data==="$?"?(n.flags|=128,n.child=e.child,n=k4.bind(null,e),a._reactRetry=n,null):(e=l.treeContext,kn=lt(a.nextSibling),_n=n,Me=!0,Dn=null,e!==null&&(jn[wn++]=Qn,jn[wn++]=Zn,jn[wn++]=Et,Qn=e.id,Zn=e.overflow,Et=n),n=lc(n,r.children),n.flags|=4096,n)}function Ad(e,n,o){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n),Ua(e.return,n,o)}function uc(e,n,o,r,a){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:o,tailMode:a}:(l.isBackwards=n,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=o,l.tailMode=a)}function Rd(e,n,o){var r=n.pendingProps,a=r.revealOrder,l=r.tail;if(cn(e,n,r.children,o),r=Fe.current,(r&2)!==0)r=r&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ad(e,o,n);else if(e.tag===19)Ad(e,o,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ee(Fe,r),(n.mode&1)===0)n.memoizedState=null;else switch(a){case"forwards":for(o=n.child,a=null;o!==null;)e=o.alternate,e!==null&&xr(e)===null&&(a=o),o=o.sibling;o=a,o===null?(a=n.child,n.child=null):(a=o.sibling,o.sibling=null),uc(n,!1,a,o,l);break;case"backwards":for(o=null,a=n.child,n.child=null;a!==null;){if(e=a.alternate,e!==null&&xr(e)===null){n.child=a;break}e=a.sibling,a.sibling=o,o=a,a=e}uc(n,!0,o,null,l);break;case"together":uc(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Lr(e,n){(n.mode&1)===0&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function et(e,n,o){if(e!==null&&(n.dependencies=e.dependencies),zt|=n.lanes,(o&n.childLanes)===0)return null;if(e!==null&&n.child!==e.child)throw Error(u(153));if(n.child!==null){for(e=n.child,o=kt(e,e.pendingProps),n.child=o,o.return=n;e.sibling!==null;)e=e.sibling,o=o.sibling=kt(e,e.pendingProps),o.return=n;o.sibling=null}return n.child}function c4(e,n,o){switch(n.tag){case 3:Ed(n),so();break;case 5:Yu(n);break;case 1:pn(n.type)&&dr(n);break;case 4:Wa(n,n.stateNode.containerInfo);break;case 10:var r=n.type._context,a=n.memoizedProps.value;Ee(vr,r._currentValue),r._currentValue=a;break;case 13:if(r=n.memoizedState,r!==null)return r.dehydrated!==null?(Ee(Fe,Fe.current&1),n.flags|=128,null):(o&n.child.childLanes)!==0?Td(e,n,o):(Ee(Fe,Fe.current&1),e=et(e,n,o),e!==null?e.sibling:null);Ee(Fe,Fe.current&1);break;case 19:if(r=(o&n.childLanes)!==0,(e.flags&128)!==0){if(r)return Rd(e,n,o);n.flags|=128}if(a=n.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Ee(Fe,Fe.current),r)break;return null;case 22:case 23:return n.lanes=0,Cd(e,n,o)}return et(e,n,o)}var zd,dc,Md,Fd;zd=function(e,n){for(var o=n.child;o!==null;){if(o.tag===5||o.tag===6)e.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===n)break;for(;o.sibling===null;){if(o.return===null||o.return===n)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},dc=function(){},Md=function(e,n,o,r){var a=e.memoizedProps;if(a!==r){e=n.stateNode,At(Gn.current);var l=null;switch(o){case"input":a=Us(e,a),r=Us(e,r),l=[];break;case"select":a=Q({},a,{value:void 0}),r=Q({},r,{value:void 0}),l=[];break;case"textarea":a=Ws(e,a),r=Ws(e,r),l=[];break;default:typeof a.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=cr)}Vs(o,r);var f;o=null;for(z in a)if(!r.hasOwnProperty(z)&&a.hasOwnProperty(z)&&a[z]!=null)if(z==="style"){var y=a[z];for(f in y)y.hasOwnProperty(f)&&(o||(o={}),o[f]="")}else z!=="dangerouslySetInnerHTML"&&z!=="children"&&z!=="suppressContentEditableWarning"&&z!=="suppressHydrationWarning"&&z!=="autoFocus"&&(p.hasOwnProperty(z)?l||(l=[]):(l=l||[]).push(z,null));for(z in r){var w=r[z];if(y=a!=null?a[z]:void 0,r.hasOwnProperty(z)&&w!==y&&(w!=null||y!=null))if(z==="style")if(y){for(f in y)!y.hasOwnProperty(f)||w&&w.hasOwnProperty(f)||(o||(o={}),o[f]="");for(f in w)w.hasOwnProperty(f)&&y[f]!==w[f]&&(o||(o={}),o[f]=w[f])}else o||(l||(l=[]),l.push(z,o)),o=w;else z==="dangerouslySetInnerHTML"?(w=w?w.__html:void 0,y=y?y.__html:void 0,w!=null&&y!==w&&(l=l||[]).push(z,w)):z==="children"?typeof w!="string"&&typeof w!="number"||(l=l||[]).push(z,""+w):z!=="suppressContentEditableWarning"&&z!=="suppressHydrationWarning"&&(p.hasOwnProperty(z)?(w!=null&&z==="onScroll"&&Te("scroll",e),l||y===w||(l=[])):(l=l||[]).push(z,w))}o&&(l=l||[]).push("style",o);var z=l;(n.updateQueue=z)&&(n.flags|=4)}},Fd=function(e,n,o,r){o!==r&&(n.flags|=4)};function fi(e,n){if(!Me)switch(e.tailMode){case"hidden":n=e.tail;for(var o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?e.tail=null:o.sibling=null;break;case"collapsed":o=e.tail;for(var r=null;o!==null;)o.alternate!==null&&(r=o),o=o.sibling;r===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function rn(e){var n=e.alternate!==null&&e.alternate.child===e.child,o=0,r=0;if(n)for(var a=e.child;a!==null;)o|=a.lanes|a.childLanes,r|=a.subtreeFlags&14680064,r|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)o|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=o,n}function l4(e,n,o){var r=n.pendingProps;switch(Aa(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return rn(n),null;case 1:return pn(n.type)&&ur(),rn(n),null;case 3:return r=n.stateNode,uo(),Ae(dn),Ae(tn),Ha(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(mr(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Dn!==null&&(jc(Dn),Dn=null))),dc(e,n),rn(n),null;case 5:Ga(n);var a=At(ci.current);if(o=n.type,e!==null&&n.stateNode!=null)Md(e,n,o,r,a),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!r){if(n.stateNode===null)throw Error(u(166));return rn(n),null}if(e=At(Gn.current),mr(n)){r=n.stateNode,o=n.type;var l=n.memoizedProps;switch(r[Wn]=n,r[oi]=l,e=(n.mode&1)!==0,o){case"dialog":Te("cancel",r),Te("close",r);break;case"iframe":case"object":case"embed":Te("load",r);break;case"video":case"audio":for(a=0;a<ei.length;a++)Te(ei[a],r);break;case"source":Te("error",r);break;case"img":case"image":case"link":Te("error",r),Te("load",r);break;case"details":Te("toggle",r);break;case"input":v1(r,l),Te("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},Te("invalid",r);break;case"textarea":k1(r,l),Te("invalid",r)}Vs(o,l),a=null;for(var f in l)if(l.hasOwnProperty(f)){var y=l[f];f==="children"?typeof y=="string"?r.textContent!==y&&(l.suppressHydrationWarning!==!0&&ar(r.textContent,y,e),a=["children",y]):typeof y=="number"&&r.textContent!==""+y&&(l.suppressHydrationWarning!==!0&&ar(r.textContent,y,e),a=["children",""+y]):p.hasOwnProperty(f)&&y!=null&&f==="onScroll"&&Te("scroll",r)}switch(o){case"input":De(r),_1(r,l,!0);break;case"textarea":De(r),j1(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=cr)}r=a,n.updateQueue=r,r!==null&&(n.flags|=4)}else{f=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=w1(o)),e==="http://www.w3.org/1999/xhtml"?o==="script"?(e=f.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=f.createElement(o,{is:r.is}):(e=f.createElement(o),o==="select"&&(f=e,r.multiple?f.multiple=!0:r.size&&(f.size=r.size))):e=f.createElementNS(e,o),e[Wn]=n,e[oi]=r,zd(e,n,!1,!1),n.stateNode=e;e:{switch(f=Hs(o,r),o){case"dialog":Te("cancel",e),Te("close",e),a=r;break;case"iframe":case"object":case"embed":Te("load",e),a=r;break;case"video":case"audio":for(a=0;a<ei.length;a++)Te(ei[a],e);a=r;break;case"source":Te("error",e),a=r;break;case"img":case"image":case"link":Te("error",e),Te("load",e),a=r;break;case"details":Te("toggle",e),a=r;break;case"input":v1(e,r),a=Us(e,r),Te("invalid",e);break;case"option":a=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=Q({},r,{value:void 0}),Te("invalid",e);break;case"textarea":k1(e,r),a=Ws(e,r),Te("invalid",e);break;default:a=r}Vs(o,a),y=a;for(l in y)if(y.hasOwnProperty(l)){var w=y[l];l==="style"?S1(e,w):l==="dangerouslySetInnerHTML"?(w=w?w.__html:void 0,w!=null&&b1(e,w)):l==="children"?typeof w=="string"?(o!=="textarea"||w!=="")&&zo(e,w):typeof w=="number"&&zo(e,""+w):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(p.hasOwnProperty(l)?w!=null&&l==="onScroll"&&Te("scroll",e):w!=null&&R(e,l,w,f))}switch(o){case"input":De(e),_1(e,r,!1);break;case"textarea":De(e),j1(e);break;case"option":r.value!=null&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?Vt(e,!!r.multiple,l,!1):r.defaultValue!=null&&Vt(e,!!r.multiple,r.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=cr)}switch(o){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return rn(n),null;case 6:if(e&&n.stateNode!=null)Fd(e,n,e.memoizedProps,r);else{if(typeof r!="string"&&n.stateNode===null)throw Error(u(166));if(o=At(ci.current),At(Gn.current),mr(n)){if(r=n.stateNode,o=n.memoizedProps,r[Wn]=n,(l=r.nodeValue!==o)&&(e=_n,e!==null))switch(e.tag){case 3:ar(r.nodeValue,o,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ar(r.nodeValue,o,(e.mode&1)!==0)}l&&(n.flags|=4)}else r=(o.nodeType===9?o:o.ownerDocument).createTextNode(r),r[Wn]=n,n.stateNode=r}return rn(n),null;case 13:if(Ae(Fe),r=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Me&&kn!==null&&(n.mode&1)!==0&&(n.flags&128)===0)Uu(),so(),n.flags|=98560,l=!1;else if(l=mr(n),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(u(318));if(l=n.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(u(317));l[Wn]=n}else so(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;rn(n),l=!1}else Dn!==null&&(jc(Dn),Dn=null),l=!0;if(!l)return n.flags&65536?n:null}return(n.flags&128)!==0?(n.lanes=o,n):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(n.child.flags|=8192,(n.mode&1)!==0&&(e===null||(Fe.current&1)!==0?Ke===0&&(Ke=3):Nc())),n.updateQueue!==null&&(n.flags|=4),rn(n),null);case 4:return uo(),dc(e,n),e===null&&ni(n.stateNode.containerInfo),rn(n),null;case 10:return Oa(n.type._context),rn(n),null;case 17:return pn(n.type)&&ur(),rn(n),null;case 19:if(Ae(Fe),l=n.memoizedState,l===null)return rn(n),null;if(r=(n.flags&128)!==0,f=l.rendering,f===null)if(r)fi(l,!1);else{if(Ke!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(f=xr(e),f!==null){for(n.flags|=128,fi(l,!1),r=f.updateQueue,r!==null&&(n.updateQueue=r,n.flags|=4),n.subtreeFlags=0,r=o,o=n.child;o!==null;)l=o,e=r,l.flags&=14680066,f=l.alternate,f===null?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=f.childLanes,l.lanes=f.lanes,l.child=f.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=f.memoizedProps,l.memoizedState=f.memoizedState,l.updateQueue=f.updateQueue,l.type=f.type,e=f.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),o=o.sibling;return Ee(Fe,Fe.current&1|2),n.child}e=e.sibling}l.tail!==null&&Be()>mo&&(n.flags|=128,r=!0,fi(l,!1),n.lanes=4194304)}else{if(!r)if(e=xr(f),e!==null){if(n.flags|=128,r=!0,o=e.updateQueue,o!==null&&(n.updateQueue=o,n.flags|=4),fi(l,!0),l.tail===null&&l.tailMode==="hidden"&&!f.alternate&&!Me)return rn(n),null}else 2*Be()-l.renderingStartTime>mo&&o!==1073741824&&(n.flags|=128,r=!0,fi(l,!1),n.lanes=4194304);l.isBackwards?(f.sibling=n.child,n.child=f):(o=l.last,o!==null?o.sibling=f:n.child=f,l.last=f)}return l.tail!==null?(n=l.tail,l.rendering=n,l.tail=n.sibling,l.renderingStartTime=Be(),n.sibling=null,o=Fe.current,Ee(Fe,r?o&1|2:o&1),n):(rn(n),null);case 22:case 23:return bc(),r=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(n.flags|=8192),r&&(n.mode&1)!==0?(xn&1073741824)!==0&&(rn(n),n.subtreeFlags&6&&(n.flags|=8192)):rn(n),null;case 24:return null;case 25:return null}throw Error(u(156,n.tag))}function u4(e,n){switch(Aa(n),n.tag){case 1:return pn(n.type)&&ur(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return uo(),Ae(dn),Ae(tn),Ha(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 5:return Ga(n),null;case 13:if(Ae(Fe),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(u(340));so()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return Ae(Fe),null;case 4:return uo(),null;case 10:return Oa(n.type._context),null;case 22:case 23:return bc(),null;case 24:return null;default:return null}}var Er=!1,sn=!1,d4=typeof WeakSet=="function"?WeakSet:Set,se=null;function fo(e,n){var o=e.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(r){Oe(e,n,r)}else o.current=null}function pc(e,n,o){try{o()}catch(r){Oe(e,n,r)}}var Id=!1;function p4(e,n){if(ba=Qi,e=gu(),ga(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var r=o.getSelection&&o.getSelection();if(r&&r.rangeCount!==0){o=r.anchorNode;var a=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{o.nodeType,l.nodeType}catch{o=null;break e}var f=0,y=-1,w=-1,z=0,V=0,K=e,G=null;n:for(;;){for(var ie;K!==o||a!==0&&K.nodeType!==3||(y=f+a),K!==l||r!==0&&K.nodeType!==3||(w=f+r),K.nodeType===3&&(f+=K.nodeValue.length),(ie=K.firstChild)!==null;)G=K,K=ie;for(;;){if(K===e)break n;if(G===o&&++z===a&&(y=f),G===l&&++V===r&&(w=f),(ie=K.nextSibling)!==null)break;K=G,G=K.parentNode}K=ie}o=y===-1||w===-1?null:{start:y,end:w}}else o=null}o=o||{start:0,end:0}}else o=null;for(Na={focusedElem:e,selectionRange:o},Qi=!1,se=n;se!==null;)if(n=se,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,se=e;else for(;se!==null;){n=se;try{var ae=n.alternate;if((n.flags&1024)!==0)switch(n.tag){case 0:case 11:case 15:break;case 1:if(ae!==null){var ce=ae.memoizedProps,$e=ae.memoizedState,L=n.stateNode,N=L.getSnapshotBeforeUpdate(n.elementType===n.type?ce:Tn(n.type,ce),$e);L.__reactInternalSnapshotBeforeUpdate=N}break;case 3:var T=n.stateNode.containerInfo;T.nodeType===1?T.textContent="":T.nodeType===9&&T.documentElement&&T.removeChild(T.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(u(163))}}catch(Z){Oe(n,n.return,Z)}if(e=n.sibling,e!==null){e.return=n.return,se=e;break}se=n.return}return ae=Id,Id=!1,ae}function hi(e,n,o){var r=n.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&e)===e){var l=a.destroy;a.destroy=void 0,l!==void 0&&pc(n,o,l)}a=a.next}while(a!==r)}}function Dr(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var r=o.create;o.destroy=r()}o=o.next}while(o!==n)}}function fc(e){var n=e.ref;if(n!==null){var o=e.stateNode;switch(e.tag){case 5:e=o;break;default:e=o}typeof n=="function"?n(e):n.current=e}}function Od(e){var n=e.alternate;n!==null&&(e.alternate=null,Od(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[Wn],delete n[oi],delete n[La],delete n[Yf],delete n[qf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ud(e){return e.tag===5||e.tag===3||e.tag===4}function Bd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ud(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function hc(e,n,o){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?o.nodeType===8?o.parentNode.insertBefore(e,n):o.insertBefore(e,n):(o.nodeType===8?(n=o.parentNode,n.insertBefore(e,o)):(n=o,n.appendChild(e)),o=o._reactRootContainer,o!=null||n.onclick!==null||(n.onclick=cr));else if(r!==4&&(e=e.child,e!==null))for(hc(e,n,o),e=e.sibling;e!==null;)hc(e,n,o),e=e.sibling}function mc(e,n,o){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?o.insertBefore(e,n):o.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(mc(e,n,o),e=e.sibling;e!==null;)mc(e,n,o),e=e.sibling}var Xe=null,An=!1;function mt(e,n,o){for(o=o.child;o!==null;)$d(e,n,o),o=o.sibling}function $d(e,n,o){if($n&&typeof $n.onCommitFiberUnmount=="function")try{$n.onCommitFiberUnmount(Gi,o)}catch{}switch(o.tag){case 5:sn||fo(o,n);case 6:var r=Xe,a=An;Xe=null,mt(e,n,o),Xe=r,An=a,Xe!==null&&(An?(e=Xe,o=o.stateNode,e.nodeType===8?e.parentNode.removeChild(o):e.removeChild(o)):Xe.removeChild(o.stateNode));break;case 18:Xe!==null&&(An?(e=Xe,o=o.stateNode,e.nodeType===8?Pa(e.parentNode,o):e.nodeType===1&&Pa(e,o),Ho(e)):Pa(Xe,o.stateNode));break;case 4:r=Xe,a=An,Xe=o.stateNode.containerInfo,An=!0,mt(e,n,o),Xe=r,An=a;break;case 0:case 11:case 14:case 15:if(!sn&&(r=o.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var l=a,f=l.destroy;l=l.tag,f!==void 0&&((l&2)!==0||(l&4)!==0)&&pc(o,n,f),a=a.next}while(a!==r)}mt(e,n,o);break;case 1:if(!sn&&(fo(o,n),r=o.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=o.memoizedProps,r.state=o.memoizedState,r.componentWillUnmount()}catch(y){Oe(o,n,y)}mt(e,n,o);break;case 21:mt(e,n,o);break;case 22:o.mode&1?(sn=(r=sn)||o.memoizedState!==null,mt(e,n,o),sn=r):mt(e,n,o);break;default:mt(e,n,o)}}function Wd(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var o=e.stateNode;o===null&&(o=e.stateNode=new d4),n.forEach(function(r){var a=x4.bind(null,e,r);o.has(r)||(o.add(r),r.then(a,a))})}}function Rn(e,n){var o=n.deletions;if(o!==null)for(var r=0;r<o.length;r++){var a=o[r];try{var l=e,f=n,y=f;e:for(;y!==null;){switch(y.tag){case 5:Xe=y.stateNode,An=!1;break e;case 3:Xe=y.stateNode.containerInfo,An=!0;break e;case 4:Xe=y.stateNode.containerInfo,An=!0;break e}y=y.return}if(Xe===null)throw Error(u(160));$d(l,f,a),Xe=null,An=!1;var w=a.alternate;w!==null&&(w.return=null),a.return=null}catch(z){Oe(a,n,z)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)Gd(n,e),n=n.sibling}function Gd(e,n){var o=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Rn(n,e),Hn(e),r&4){try{hi(3,e,e.return),Dr(3,e)}catch(ce){Oe(e,e.return,ce)}try{hi(5,e,e.return)}catch(ce){Oe(e,e.return,ce)}}break;case 1:Rn(n,e),Hn(e),r&512&&o!==null&&fo(o,o.return);break;case 5:if(Rn(n,e),Hn(e),r&512&&o!==null&&fo(o,o.return),e.flags&32){var a=e.stateNode;try{zo(a,"")}catch(ce){Oe(e,e.return,ce)}}if(r&4&&(a=e.stateNode,a!=null)){var l=e.memoizedProps,f=o!==null?o.memoizedProps:l,y=e.type,w=e.updateQueue;if(e.updateQueue=null,w!==null)try{y==="input"&&l.type==="radio"&&l.name!=null&&y1(a,l),Hs(y,f);var z=Hs(y,l);for(f=0;f<w.length;f+=2){var V=w[f],K=w[f+1];V==="style"?S1(a,K):V==="dangerouslySetInnerHTML"?b1(a,K):V==="children"?zo(a,K):R(a,V,K,z)}switch(y){case"input":Bs(a,l);break;case"textarea":x1(a,l);break;case"select":var G=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!l.multiple;var ie=l.value;ie!=null?Vt(a,!!l.multiple,ie,!1):G!==!!l.multiple&&(l.defaultValue!=null?Vt(a,!!l.multiple,l.defaultValue,!0):Vt(a,!!l.multiple,l.multiple?[]:"",!1))}a[oi]=l}catch(ce){Oe(e,e.return,ce)}}break;case 6:if(Rn(n,e),Hn(e),r&4){if(e.stateNode===null)throw Error(u(162));a=e.stateNode,l=e.memoizedProps;try{a.nodeValue=l}catch(ce){Oe(e,e.return,ce)}}break;case 3:if(Rn(n,e),Hn(e),r&4&&o!==null&&o.memoizedState.isDehydrated)try{Ho(n.containerInfo)}catch(ce){Oe(e,e.return,ce)}break;case 4:Rn(n,e),Hn(e);break;case 13:Rn(n,e),Hn(e),a=e.child,a.flags&8192&&(l=a.memoizedState!==null,a.stateNode.isHidden=l,!l||a.alternate!==null&&a.alternate.memoizedState!==null||(yc=Be())),r&4&&Wd(e);break;case 22:if(V=o!==null&&o.memoizedState!==null,e.mode&1?(sn=(z=sn)||V,Rn(n,e),sn=z):Rn(n,e),Hn(e),r&8192){if(z=e.memoizedState!==null,(e.stateNode.isHidden=z)&&!V&&(e.mode&1)!==0)for(se=e,V=e.child;V!==null;){for(K=se=V;se!==null;){switch(G=se,ie=G.child,G.tag){case 0:case 11:case 14:case 15:hi(4,G,G.return);break;case 1:fo(G,G.return);var ae=G.stateNode;if(typeof ae.componentWillUnmount=="function"){r=G,o=G.return;try{n=r,ae.props=n.memoizedProps,ae.state=n.memoizedState,ae.componentWillUnmount()}catch(ce){Oe(r,o,ce)}}break;case 5:fo(G,G.return);break;case 22:if(G.memoizedState!==null){Kd(K);continue}}ie!==null?(ie.return=G,se=ie):Kd(K)}V=V.sibling}e:for(V=null,K=e;;){if(K.tag===5){if(V===null){V=K;try{a=K.stateNode,z?(l=a.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(y=K.stateNode,w=K.memoizedProps.style,f=w!=null&&w.hasOwnProperty("display")?w.display:null,y.style.display=N1("display",f))}catch(ce){Oe(e,e.return,ce)}}}else if(K.tag===6){if(V===null)try{K.stateNode.nodeValue=z?"":K.memoizedProps}catch(ce){Oe(e,e.return,ce)}}else if((K.tag!==22&&K.tag!==23||K.memoizedState===null||K===e)&&K.child!==null){K.child.return=K,K=K.child;continue}if(K===e)break e;for(;K.sibling===null;){if(K.return===null||K.return===e)break e;V===K&&(V=null),K=K.return}V===K&&(V=null),K.sibling.return=K.return,K=K.sibling}}break;case 19:Rn(n,e),Hn(e),r&4&&Wd(e);break;case 21:break;default:Rn(n,e),Hn(e)}}function Hn(e){var n=e.flags;if(n&2){try{e:{for(var o=e.return;o!==null;){if(Ud(o)){var r=o;break e}o=o.return}throw Error(u(160))}switch(r.tag){case 5:var a=r.stateNode;r.flags&32&&(zo(a,""),r.flags&=-33);var l=Bd(e);mc(e,l,a);break;case 3:case 4:var f=r.stateNode.containerInfo,y=Bd(e);hc(e,y,f);break;default:throw Error(u(161))}}catch(w){Oe(e,e.return,w)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function f4(e,n,o){se=e,Vd(e)}function Vd(e,n,o){for(var r=(e.mode&1)!==0;se!==null;){var a=se,l=a.child;if(a.tag===22&&r){var f=a.memoizedState!==null||Er;if(!f){var y=a.alternate,w=y!==null&&y.memoizedState!==null||sn;y=Er;var z=sn;if(Er=f,(sn=w)&&!z)for(se=a;se!==null;)f=se,w=f.child,f.tag===22&&f.memoizedState!==null?Yd(a):w!==null?(w.return=f,se=w):Yd(a);for(;l!==null;)se=l,Vd(l),l=l.sibling;se=a,Er=y,sn=z}Hd(e)}else(a.subtreeFlags&8772)!==0&&l!==null?(l.return=a,se=l):Hd(e)}}function Hd(e){for(;se!==null;){var n=se;if((n.flags&8772)!==0){var o=n.alternate;try{if((n.flags&8772)!==0)switch(n.tag){case 0:case 11:case 15:sn||Dr(5,n);break;case 1:var r=n.stateNode;if(n.flags&4&&!sn)if(o===null)r.componentDidMount();else{var a=n.elementType===n.type?o.memoizedProps:Tn(n.type,o.memoizedProps);r.componentDidUpdate(a,o.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=n.updateQueue;l!==null&&Ku(n,l,r);break;case 3:var f=n.updateQueue;if(f!==null){if(o=null,n.child!==null)switch(n.child.tag){case 5:o=n.child.stateNode;break;case 1:o=n.child.stateNode}Ku(n,f,o)}break;case 5:var y=n.stateNode;if(o===null&&n.flags&4){o=y;var w=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":w.autoFocus&&o.focus();break;case"img":w.src&&(o.src=w.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var z=n.alternate;if(z!==null){var V=z.memoizedState;if(V!==null){var K=V.dehydrated;K!==null&&Ho(K)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(u(163))}sn||n.flags&512&&fc(n)}catch(G){Oe(n,n.return,G)}}if(n===e){se=null;break}if(o=n.sibling,o!==null){o.return=n.return,se=o;break}se=n.return}}function Kd(e){for(;se!==null;){var n=se;if(n===e){se=null;break}var o=n.sibling;if(o!==null){o.return=n.return,se=o;break}se=n.return}}function Yd(e){for(;se!==null;){var n=se;try{switch(n.tag){case 0:case 11:case 15:var o=n.return;try{Dr(4,n)}catch(w){Oe(n,o,w)}break;case 1:var r=n.stateNode;if(typeof r.componentDidMount=="function"){var a=n.return;try{r.componentDidMount()}catch(w){Oe(n,a,w)}}var l=n.return;try{fc(n)}catch(w){Oe(n,l,w)}break;case 5:var f=n.return;try{fc(n)}catch(w){Oe(n,f,w)}}}catch(w){Oe(n,n.return,w)}if(n===e){se=null;break}var y=n.sibling;if(y!==null){y.return=n.return,se=y;break}se=n.return}}var h4=Math.ceil,Tr=O.ReactCurrentDispatcher,gc=O.ReactCurrentOwner,Sn=O.ReactCurrentBatchConfig,Ne=0,qe=null,We=null,Je=0,xn=0,ho=ut(0),Ke=0,mi=null,zt=0,Ar=0,vc=0,gi=null,hn=null,yc=0,mo=1/0,nt=null,Rr=!1,_c=null,gt=null,zr=!1,vt=null,Mr=0,vi=0,kc=null,Fr=-1,Ir=0;function ln(){return(Ne&6)!==0?Be():Fr!==-1?Fr:Fr=Be()}function yt(e){return(e.mode&1)===0?1:(Ne&2)!==0&&Je!==0?Je&-Je:Zf.transition!==null?(Ir===0&&(Ir=B1()),Ir):(e=Pe,e!==0||(e=window.event,e=e===void 0?16:Q1(e.type)),e)}function zn(e,n,o,r){if(50<vi)throw vi=0,kc=null,Error(u(185));Bo(e,o,r),((Ne&2)===0||e!==qe)&&(e===qe&&((Ne&2)===0&&(Ar|=o),Ke===4&&_t(e,Je)),mn(e,r),o===1&&Ne===0&&(n.mode&1)===0&&(mo=Be()+500,pr&&pt()))}function mn(e,n){var o=e.callbackNode;Q0(e,n);var r=Ki(e,e===qe?Je:0);if(r===0)o!==null&&I1(o),e.callbackNode=null,e.callbackPriority=0;else if(n=r&-r,e.callbackPriority!==n){if(o!=null&&I1(o),n===1)e.tag===0?Qf(Qd.bind(null,e)):zu(Qd.bind(null,e)),Hf(function(){(Ne&6)===0&&pt()}),o=null;else{switch($1(r)){case 1:o=Js;break;case 4:o=O1;break;case 16:o=Wi;break;case 536870912:o=U1;break;default:o=Wi}o=i2(o,qd.bind(null,e))}e.callbackPriority=n,e.callbackNode=o}}function qd(e,n){if(Fr=-1,Ir=0,(Ne&6)!==0)throw Error(u(327));var o=e.callbackNode;if(go()&&e.callbackNode!==o)return null;var r=Ki(e,e===qe?Je:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||n)n=Or(e,r);else{n=r;var a=Ne;Ne|=2;var l=Xd();(qe!==e||Je!==n)&&(nt=null,mo=Be()+500,Ft(e,n));do try{v4();break}catch(y){Zd(e,y)}while(!0);Ia(),Tr.current=l,Ne=a,We!==null?n=0:(qe=null,Je=0,n=Ke)}if(n!==0){if(n===2&&(a=ea(e),a!==0&&(r=a,n=xc(e,a))),n===1)throw o=mi,Ft(e,0),_t(e,r),mn(e,Be()),o;if(n===6)_t(e,r);else{if(a=e.current.alternate,(r&30)===0&&!m4(a)&&(n=Or(e,r),n===2&&(l=ea(e),l!==0&&(r=l,n=xc(e,l))),n===1))throw o=mi,Ft(e,0),_t(e,r),mn(e,Be()),o;switch(e.finishedWork=a,e.finishedLanes=r,n){case 0:case 1:throw Error(u(345));case 2:It(e,hn,nt);break;case 3:if(_t(e,r),(r&130023424)===r&&(n=yc+500-Be(),10<n)){if(Ki(e,0)!==0)break;if(a=e.suspendedLanes,(a&r)!==r){ln(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Ca(It.bind(null,e,hn,nt),n);break}It(e,hn,nt);break;case 4:if(_t(e,r),(r&4194240)===r)break;for(n=e.eventTimes,a=-1;0<r;){var f=31-Ln(r);l=1<<f,f=n[f],f>a&&(a=f),r&=~l}if(r=a,r=Be()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*h4(r/1960))-r,10<r){e.timeoutHandle=Ca(It.bind(null,e,hn,nt),r);break}It(e,hn,nt);break;case 5:It(e,hn,nt);break;default:throw Error(u(329))}}}return mn(e,Be()),e.callbackNode===o?qd.bind(null,e):null}function xc(e,n){var o=gi;return e.current.memoizedState.isDehydrated&&(Ft(e,n).flags|=256),e=Or(e,n),e!==2&&(n=hn,hn=o,n!==null&&jc(n)),e}function jc(e){hn===null?hn=e:hn.push.apply(hn,e)}function m4(e){for(var n=e;;){if(n.flags&16384){var o=n.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var r=0;r<o.length;r++){var a=o[r],l=a.getSnapshot;a=a.value;try{if(!En(l(),a))return!1}catch{return!1}}}if(o=n.child,n.subtreeFlags&16384&&o!==null)o.return=n,n=o;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function _t(e,n){for(n&=~vc,n&=~Ar,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var o=31-Ln(n),r=1<<o;e[o]=-1,n&=~r}}function Qd(e){if((Ne&6)!==0)throw Error(u(327));go();var n=Ki(e,0);if((n&1)===0)return mn(e,Be()),null;var o=Or(e,n);if(e.tag!==0&&o===2){var r=ea(e);r!==0&&(n=r,o=xc(e,r))}if(o===1)throw o=mi,Ft(e,0),_t(e,n),mn(e,Be()),o;if(o===6)throw Error(u(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,It(e,hn,nt),mn(e,Be()),null}function wc(e,n){var o=Ne;Ne|=1;try{return e(n)}finally{Ne=o,Ne===0&&(mo=Be()+500,pr&&pt())}}function Mt(e){vt!==null&&vt.tag===0&&(Ne&6)===0&&go();var n=Ne;Ne|=1;var o=Sn.transition,r=Pe;try{if(Sn.transition=null,Pe=1,e)return e()}finally{Pe=r,Sn.transition=o,Ne=n,(Ne&6)===0&&pt()}}function bc(){xn=ho.current,Ae(ho)}function Ft(e,n){e.finishedWork=null,e.finishedLanes=0;var o=e.timeoutHandle;if(o!==-1&&(e.timeoutHandle=-1,Vf(o)),We!==null)for(o=We.return;o!==null;){var r=o;switch(Aa(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ur();break;case 3:uo(),Ae(dn),Ae(tn),Ha();break;case 5:Ga(r);break;case 4:uo();break;case 13:Ae(Fe);break;case 19:Ae(Fe);break;case 10:Oa(r.type._context);break;case 22:case 23:bc()}o=o.return}if(qe=e,We=e=kt(e.current,null),Je=xn=n,Ke=0,mi=null,vc=Ar=zt=0,hn=gi=null,Tt!==null){for(n=0;n<Tt.length;n++)if(o=Tt[n],r=o.interleaved,r!==null){o.interleaved=null;var a=r.next,l=o.pending;if(l!==null){var f=l.next;l.next=a,r.next=f}o.pending=r}Tt=null}return e}function Zd(e,n){do{var o=We;try{if(Ia(),jr.current=Sr,wr){for(var r=Ie.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}wr=!1}if(Rt=0,Ye=He=Ie=null,li=!1,ui=0,gc.current=null,o===null||o.return===null){Ke=1,mi=n,We=null;break}e:{var l=e,f=o.return,y=o,w=n;if(n=Je,y.flags|=32768,w!==null&&typeof w=="object"&&typeof w.then=="function"){var z=w,V=y,K=V.tag;if((V.mode&1)===0&&(K===0||K===11||K===15)){var G=V.alternate;G?(V.updateQueue=G.updateQueue,V.memoizedState=G.memoizedState,V.lanes=G.lanes):(V.updateQueue=null,V.memoizedState=null)}var ie=jd(f);if(ie!==null){ie.flags&=-257,wd(ie,f,y,l,n),ie.mode&1&&xd(l,z,n),n=ie,w=z;var ae=n.updateQueue;if(ae===null){var ce=new Set;ce.add(w),n.updateQueue=ce}else ae.add(w);break e}else{if((n&1)===0){xd(l,z,n),Nc();break e}w=Error(u(426))}}else if(Me&&y.mode&1){var $e=jd(f);if($e!==null){($e.flags&65536)===0&&($e.flags|=256),wd($e,f,y,l,n),Ma(po(w,y));break e}}l=w=po(w,y),Ke!==4&&(Ke=2),gi===null?gi=[l]:gi.push(l),l=f;do{switch(l.tag){case 3:l.flags|=65536,n&=-n,l.lanes|=n;var L=_d(l,w,n);Hu(l,L);break e;case 1:y=w;var N=l.type,T=l.stateNode;if((l.flags&128)===0&&(typeof N.getDerivedStateFromError=="function"||T!==null&&typeof T.componentDidCatch=="function"&&(gt===null||!gt.has(T)))){l.flags|=65536,n&=-n,l.lanes|=n;var Z=kd(l,y,n);Hu(l,Z);break e}}l=l.return}while(l!==null)}e2(o)}catch(le){n=le,We===o&&o!==null&&(We=o=o.return);continue}break}while(!0)}function Xd(){var e=Tr.current;return Tr.current=Sr,e===null?Sr:e}function Nc(){(Ke===0||Ke===3||Ke===2)&&(Ke=4),qe===null||(zt&268435455)===0&&(Ar&268435455)===0||_t(qe,Je)}function Or(e,n){var o=Ne;Ne|=2;var r=Xd();(qe!==e||Je!==n)&&(nt=null,Ft(e,n));do try{g4();break}catch(a){Zd(e,a)}while(!0);if(Ia(),Ne=o,Tr.current=r,We!==null)throw Error(u(261));return qe=null,Je=0,Ke}function g4(){for(;We!==null;)Jd(We)}function v4(){for(;We!==null&&!B0();)Jd(We)}function Jd(e){var n=o2(e.alternate,e,xn);e.memoizedProps=e.pendingProps,n===null?e2(e):We=n,gc.current=null}function e2(e){var n=e;do{var o=n.alternate;if(e=n.return,(n.flags&32768)===0){if(o=l4(o,n,xn),o!==null){We=o;return}}else{if(o=u4(o,n),o!==null){o.flags&=32767,We=o;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ke=6,We=null;return}}if(n=n.sibling,n!==null){We=n;return}We=n=e}while(n!==null);Ke===0&&(Ke=5)}function It(e,n,o){var r=Pe,a=Sn.transition;try{Sn.transition=null,Pe=1,y4(e,n,o,r)}finally{Sn.transition=a,Pe=r}return null}function y4(e,n,o,r){do go();while(vt!==null);if((Ne&6)!==0)throw Error(u(327));o=e.finishedWork;var a=e.finishedLanes;if(o===null)return null;if(e.finishedWork=null,e.finishedLanes=0,o===e.current)throw Error(u(177));e.callbackNode=null,e.callbackPriority=0;var l=o.lanes|o.childLanes;if(Z0(e,l),e===qe&&(We=qe=null,Je=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||zr||(zr=!0,i2(Wi,function(){return go(),null})),l=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||l){l=Sn.transition,Sn.transition=null;var f=Pe;Pe=1;var y=Ne;Ne|=4,gc.current=null,p4(e,o),Gd(o,e),If(Na),Qi=!!ba,Na=ba=null,e.current=o,f4(o),$0(),Ne=y,Pe=f,Sn.transition=l}else e.current=o;if(zr&&(zr=!1,vt=e,Mr=a),l=e.pendingLanes,l===0&&(gt=null),V0(o.stateNode),mn(e,Be()),n!==null)for(r=e.onRecoverableError,o=0;o<n.length;o++)a=n[o],r(a.value,{componentStack:a.stack,digest:a.digest});if(Rr)throw Rr=!1,e=_c,_c=null,e;return(Mr&1)!==0&&e.tag!==0&&go(),l=e.pendingLanes,(l&1)!==0?e===kc?vi++:(vi=0,kc=e):vi=0,pt(),null}function go(){if(vt!==null){var e=$1(Mr),n=Sn.transition,o=Pe;try{if(Sn.transition=null,Pe=16>e?16:e,vt===null)var r=!1;else{if(e=vt,vt=null,Mr=0,(Ne&6)!==0)throw Error(u(331));var a=Ne;for(Ne|=4,se=e.current;se!==null;){var l=se,f=l.child;if((se.flags&16)!==0){var y=l.deletions;if(y!==null){for(var w=0;w<y.length;w++){var z=y[w];for(se=z;se!==null;){var V=se;switch(V.tag){case 0:case 11:case 15:hi(8,V,l)}var K=V.child;if(K!==null)K.return=V,se=K;else for(;se!==null;){V=se;var G=V.sibling,ie=V.return;if(Od(V),V===z){se=null;break}if(G!==null){G.return=ie,se=G;break}se=ie}}}var ae=l.alternate;if(ae!==null){var ce=ae.child;if(ce!==null){ae.child=null;do{var $e=ce.sibling;ce.sibling=null,ce=$e}while(ce!==null)}}se=l}}if((l.subtreeFlags&2064)!==0&&f!==null)f.return=l,se=f;else e:for(;se!==null;){if(l=se,(l.flags&2048)!==0)switch(l.tag){case 0:case 11:case 15:hi(9,l,l.return)}var L=l.sibling;if(L!==null){L.return=l.return,se=L;break e}se=l.return}}var N=e.current;for(se=N;se!==null;){f=se;var T=f.child;if((f.subtreeFlags&2064)!==0&&T!==null)T.return=f,se=T;else e:for(f=N;se!==null;){if(y=se,(y.flags&2048)!==0)try{switch(y.tag){case 0:case 11:case 15:Dr(9,y)}}catch(le){Oe(y,y.return,le)}if(y===f){se=null;break e}var Z=y.sibling;if(Z!==null){Z.return=y.return,se=Z;break e}se=y.return}}if(Ne=a,pt(),$n&&typeof $n.onPostCommitFiberRoot=="function")try{$n.onPostCommitFiberRoot(Gi,e)}catch{}r=!0}return r}finally{Pe=o,Sn.transition=n}}return!1}function n2(e,n,o){n=po(o,n),n=_d(e,n,1),e=ht(e,n,1),n=ln(),e!==null&&(Bo(e,1,n),mn(e,n))}function Oe(e,n,o){if(e.tag===3)n2(e,e,o);else for(;n!==null;){if(n.tag===3){n2(n,e,o);break}else if(n.tag===1){var r=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(gt===null||!gt.has(r))){e=po(o,e),e=kd(n,e,1),n=ht(n,e,1),e=ln(),n!==null&&(Bo(n,1,e),mn(n,e));break}}n=n.return}}function _4(e,n,o){var r=e.pingCache;r!==null&&r.delete(n),n=ln(),e.pingedLanes|=e.suspendedLanes&o,qe===e&&(Je&o)===o&&(Ke===4||Ke===3&&(Je&130023424)===Je&&500>Be()-yc?Ft(e,0):vc|=o),mn(e,n)}function t2(e,n){n===0&&((e.mode&1)===0?n=1:(n=Hi,Hi<<=1,(Hi&130023424)===0&&(Hi=4194304)));var o=ln();e=Xn(e,n),e!==null&&(Bo(e,n,o),mn(e,o))}function k4(e){var n=e.memoizedState,o=0;n!==null&&(o=n.retryLane),t2(e,o)}function x4(e,n){var o=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(o=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(u(314))}r!==null&&r.delete(n),t2(e,o)}var o2;o2=function(e,n,o){if(e!==null)if(e.memoizedProps!==n.pendingProps||dn.current)fn=!0;else{if((e.lanes&o)===0&&(n.flags&128)===0)return fn=!1,c4(e,n,o);fn=(e.flags&131072)!==0}else fn=!1,Me&&(n.flags&1048576)!==0&&Mu(n,hr,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;Lr(e,n),e=n.pendingProps;var a=oo(n,tn.current);lo(n,o),a=qa(null,n,r,e,a,o);var l=Qa();return n.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,pn(r)?(l=!0,dr(n)):l=!1,n.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,$a(n),a.updater=Cr,n.stateNode=a,a._reactInternals=n,tc(n,r,e,o),n=sc(null,n,r,!0,l,o)):(n.tag=0,Me&&l&&Ta(n),cn(null,n,a,o),n=n.child),n;case 16:r=n.elementType;e:{switch(Lr(e,n),e=n.pendingProps,a=r._init,r=a(r._payload),n.type=r,a=n.tag=w4(r),e=Tn(r,e),a){case 0:n=rc(null,n,r,e,o);break e;case 1:n=Ld(null,n,r,e,o);break e;case 11:n=bd(null,n,r,e,o);break e;case 14:n=Nd(null,n,r,Tn(r.type,e),o);break e}throw Error(u(306,r,""))}return n;case 0:return r=n.type,a=n.pendingProps,a=n.elementType===r?a:Tn(r,a),rc(e,n,r,a,o);case 1:return r=n.type,a=n.pendingProps,a=n.elementType===r?a:Tn(r,a),Ld(e,n,r,a,o);case 3:e:{if(Ed(n),e===null)throw Error(u(387));r=n.pendingProps,l=n.memoizedState,a=l.element,Vu(e,n),kr(n,r,null,o);var f=n.memoizedState;if(r=f.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:f.cache,pendingSuspenseBoundaries:f.pendingSuspenseBoundaries,transitions:f.transitions},n.updateQueue.baseState=l,n.memoizedState=l,n.flags&256){a=po(Error(u(423)),n),n=Dd(e,n,r,o,a);break e}else if(r!==a){a=po(Error(u(424)),n),n=Dd(e,n,r,o,a);break e}else for(kn=lt(n.stateNode.containerInfo.firstChild),_n=n,Me=!0,Dn=null,o=Wu(n,null,r,o),n.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(so(),r===a){n=et(e,n,o);break e}cn(e,n,r,o)}n=n.child}return n;case 5:return Yu(n),e===null&&za(n),r=n.type,a=n.pendingProps,l=e!==null?e.memoizedProps:null,f=a.children,Sa(r,a)?f=null:l!==null&&Sa(r,l)&&(n.flags|=32),Pd(e,n),cn(e,n,f,o),n.child;case 6:return e===null&&za(n),null;case 13:return Td(e,n,o);case 4:return Wa(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=ao(n,null,r,o):cn(e,n,r,o),n.child;case 11:return r=n.type,a=n.pendingProps,a=n.elementType===r?a:Tn(r,a),bd(e,n,r,a,o);case 7:return cn(e,n,n.pendingProps,o),n.child;case 8:return cn(e,n,n.pendingProps.children,o),n.child;case 12:return cn(e,n,n.pendingProps.children,o),n.child;case 10:e:{if(r=n.type._context,a=n.pendingProps,l=n.memoizedProps,f=a.value,Ee(vr,r._currentValue),r._currentValue=f,l!==null)if(En(l.value,f)){if(l.children===a.children&&!dn.current){n=et(e,n,o);break e}}else for(l=n.child,l!==null&&(l.return=n);l!==null;){var y=l.dependencies;if(y!==null){f=l.child;for(var w=y.firstContext;w!==null;){if(w.context===r){if(l.tag===1){w=Jn(-1,o&-o),w.tag=2;var z=l.updateQueue;if(z!==null){z=z.shared;var V=z.pending;V===null?w.next=w:(w.next=V.next,V.next=w),z.pending=w}}l.lanes|=o,w=l.alternate,w!==null&&(w.lanes|=o),Ua(l.return,o,n),y.lanes|=o;break}w=w.next}}else if(l.tag===10)f=l.type===n.type?null:l.child;else if(l.tag===18){if(f=l.return,f===null)throw Error(u(341));f.lanes|=o,y=f.alternate,y!==null&&(y.lanes|=o),Ua(f,o,n),f=l.sibling}else f=l.child;if(f!==null)f.return=l;else for(f=l;f!==null;){if(f===n){f=null;break}if(l=f.sibling,l!==null){l.return=f.return,f=l;break}f=f.return}l=f}cn(e,n,a.children,o),n=n.child}return n;case 9:return a=n.type,r=n.pendingProps.children,lo(n,o),a=bn(a),r=r(a),n.flags|=1,cn(e,n,r,o),n.child;case 14:return r=n.type,a=Tn(r,n.pendingProps),a=Tn(r.type,a),Nd(e,n,r,a,o);case 15:return Sd(e,n,n.type,n.pendingProps,o);case 17:return r=n.type,a=n.pendingProps,a=n.elementType===r?a:Tn(r,a),Lr(e,n),n.tag=1,pn(r)?(e=!0,dr(n)):e=!1,lo(n,o),vd(n,r,a),tc(n,r,a,o),sc(null,n,r,!0,e,o);case 19:return Rd(e,n,o);case 22:return Cd(e,n,o)}throw Error(u(156,n.tag))};function i2(e,n){return F1(e,n)}function j4(e,n,o,r){this.tag=e,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Cn(e,n,o,r){return new j4(e,n,o,r)}function Sc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function w4(e){if(typeof e=="function")return Sc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ue)return 11;if(e===de)return 14}return 2}function kt(e,n){var o=e.alternate;return o===null?(o=Cn(e.tag,n,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=n,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&14680064,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,n=e.dependencies,o.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o}function Ur(e,n,o,r,a,l){var f=2;if(r=e,typeof e=="function")Sc(e)&&(f=1);else if(typeof e=="string")f=5;else e:switch(e){case B:return Ot(o.children,a,l,n);case X:f=8,a|=8;break;case q:return e=Cn(12,o,n,a|2),e.elementType=q,e.lanes=l,e;case ge:return e=Cn(13,o,n,a),e.elementType=ge,e.lanes=l,e;case ne:return e=Cn(19,o,n,a),e.elementType=ne,e.lanes=l,e;case ke:return Br(o,a,l,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case W:f=10;break e;case te:f=9;break e;case ue:f=11;break e;case de:f=14;break e;case F:f=16,r=null;break e}throw Error(u(130,e==null?e:typeof e,""))}return n=Cn(f,o,n,a),n.elementType=e,n.type=r,n.lanes=l,n}function Ot(e,n,o,r){return e=Cn(7,e,r,n),e.lanes=o,e}function Br(e,n,o,r){return e=Cn(22,e,r,n),e.elementType=ke,e.lanes=o,e.stateNode={isHidden:!1},e}function Cc(e,n,o){return e=Cn(6,e,null,n),e.lanes=o,e}function Pc(e,n,o){return n=Cn(4,e.children!==null?e.children:[],e.key,n),n.lanes=o,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function b4(e,n,o,r,a){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=na(0),this.expirationTimes=na(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=na(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Lc(e,n,o,r,a,l,f,y,w){return e=new b4(e,n,o,y,w),n===1?(n=1,l===!0&&(n|=8)):n=0,l=Cn(3,null,null,n),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},$a(l),e}function N4(e,n,o){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:J,key:r==null?null:""+r,children:e,containerInfo:n,implementation:o}}function r2(e){if(!e)return dt;e=e._reactInternals;e:{if(Ct(e)!==e||e.tag!==1)throw Error(u(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(pn(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(u(171))}if(e.tag===1){var o=e.type;if(pn(o))return Au(e,o,n)}return n}function s2(e,n,o,r,a,l,f,y,w){return e=Lc(o,r,!0,e,a,l,f,y,w),e.context=r2(null),o=e.current,r=ln(),a=yt(o),l=Jn(r,a),l.callback=n??null,ht(o,l,a),e.current.lanes=a,Bo(e,a,r),mn(e,r),e}function $r(e,n,o,r){var a=n.current,l=ln(),f=yt(a);return o=r2(o),n.context===null?n.context=o:n.pendingContext=o,n=Jn(l,f),n.payload={element:e},r=r===void 0?null:r,r!==null&&(n.callback=r),e=ht(a,n,f),e!==null&&(zn(e,a,f,l),_r(e,a,f)),f}function Wr(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function a2(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<n?o:n}}function Ec(e,n){a2(e,n),(e=e.alternate)&&a2(e,n)}function S4(){return null}var c2=typeof reportError=="function"?reportError:function(e){console.error(e)};function Dc(e){this._internalRoot=e}Gr.prototype.render=Dc.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(u(409));$r(e,n,null,null)},Gr.prototype.unmount=Dc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Mt(function(){$r(null,e,null,null)}),n[Yn]=null}};function Gr(e){this._internalRoot=e}Gr.prototype.unstable_scheduleHydration=function(e){if(e){var n=V1();e={blockedOn:null,target:e,priority:n};for(var o=0;o<st.length&&n!==0&&n<st[o].priority;o++);st.splice(o,0,e),o===0&&Y1(e)}};function Tc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Vr(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function l2(){}function C4(e,n,o,r,a){if(a){if(typeof r=="function"){var l=r;r=function(){var z=Wr(f);l.call(z)}}var f=s2(n,r,e,0,null,!1,!1,"",l2);return e._reactRootContainer=f,e[Yn]=f.current,ni(e.nodeType===8?e.parentNode:e),Mt(),f}for(;a=e.lastChild;)e.removeChild(a);if(typeof r=="function"){var y=r;r=function(){var z=Wr(w);y.call(z)}}var w=Lc(e,0,!1,null,null,!1,!1,"",l2);return e._reactRootContainer=w,e[Yn]=w.current,ni(e.nodeType===8?e.parentNode:e),Mt(function(){$r(n,w,o,r)}),w}function Hr(e,n,o,r,a){var l=o._reactRootContainer;if(l){var f=l;if(typeof a=="function"){var y=a;a=function(){var w=Wr(f);y.call(w)}}$r(n,f,e,a)}else f=C4(o,n,e,a,r);return Wr(f)}W1=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var o=Uo(n.pendingLanes);o!==0&&(ta(n,o|1),mn(n,Be()),(Ne&6)===0&&(mo=Be()+500,pt()))}break;case 13:Mt(function(){var r=Xn(e,1);if(r!==null){var a=ln();zn(r,e,1,a)}}),Ec(e,1)}},oa=function(e){if(e.tag===13){var n=Xn(e,134217728);if(n!==null){var o=ln();zn(n,e,134217728,o)}Ec(e,134217728)}},G1=function(e){if(e.tag===13){var n=yt(e),o=Xn(e,n);if(o!==null){var r=ln();zn(o,e,n,r)}Ec(e,n)}},V1=function(){return Pe},H1=function(e,n){var o=Pe;try{return Pe=e,n()}finally{Pe=o}},qs=function(e,n,o){switch(n){case"input":if(Bs(e,o),n=o.name,o.type==="radio"&&n!=null){for(o=e;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<o.length;n++){var r=o[n];if(r!==e&&r.form===e.form){var a=lr(r);if(!a)throw Error(u(90));Ao(r),Bs(r,a)}}}break;case"textarea":x1(e,o);break;case"select":n=o.value,n!=null&&Vt(e,!!o.multiple,n,!1)}},E1=wc,D1=Mt;var P4={usingClientEntryPoint:!1,Events:[ii,no,lr,P1,L1,wc]},yi={findFiberByHostInstance:Pt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},L4={bundleType:yi.bundleType,version:yi.version,rendererPackageName:yi.rendererPackageName,rendererConfig:yi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:O.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=z1(e),e===null?null:e.stateNode},findFiberByHostInstance:yi.findFiberByHostInstance||S4,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Kr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Kr.isDisabled&&Kr.supportsFiber)try{Gi=Kr.inject(L4),$n=Kr}catch{}}return un.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P4,un.createPortal=function(e,n){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Tc(n))throw Error(u(200));return N4(e,n,null,o)},un.createRoot=function(e,n){if(!Tc(e))throw Error(u(299));var o=!1,r="",a=c2;return n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),n=Lc(e,1,!1,null,null,o,!1,r,a),e[Yn]=n.current,ni(e.nodeType===8?e.parentNode:e),new Dc(n)},un.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=z1(n),e=e===null?null:e.stateNode,e},un.flushSync=function(e){return Mt(e)},un.hydrate=function(e,n,o){if(!Vr(n))throw Error(u(200));return Hr(null,e,n,!0,o)},un.hydrateRoot=function(e,n,o){if(!Tc(e))throw Error(u(405));var r=o!=null&&o.hydratedSources||null,a=!1,l="",f=c2;if(o!=null&&(o.unstable_strictMode===!0&&(a=!0),o.identifierPrefix!==void 0&&(l=o.identifierPrefix),o.onRecoverableError!==void 0&&(f=o.onRecoverableError)),n=s2(n,null,e,1,o??null,a,!1,l,f),e[Yn]=n.current,ni(e),r)for(e=0;e<r.length;e++)o=r[e],a=o._getVersion,a=a(o._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[o,a]:n.mutableSourceEagerHydrationData.push(o,a);return new Gr(n)},un.render=function(e,n,o){if(!Vr(n))throw Error(u(200));return Hr(null,e,n,!1,o)},un.unmountComponentAtNode=function(e){if(!Vr(e))throw Error(u(40));return e._reactRootContainer?(Mt(function(){Hr(null,null,e,!1,function(){e._reactRootContainer=null,e[Yn]=null})}),!0):!1},un.unstable_batchedUpdates=wc,un.unstable_renderSubtreeIntoContainer=function(e,n,o,r){if(!Vr(o))throw Error(u(200));if(e==null||e._reactInternals===void 0)throw Error(u(38));return Hr(e,n,o,!1,r)},un.version="18.3.1-next-f1338f8080-20240426",un}var Uc;function Bc(){if(Uc)return Zr.exports;Uc=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(c){console.error(c)}}return i(),Zr.exports=m2(),Zr.exports}var $c;function g2(){if($c)return _i;$c=1;var i=Bc();return _i.createRoot=i.createRoot,_i.hydrateRoot=i.hydrateRoot,_i}var v2=g2(),j=Qr();function y2({tabs:i,activeTab:c,onTabChange:u}){return t.jsx("div",{className:"cn-tab-nav",children:i.map(d=>t.jsx("button",{"data-tab":d.id,className:`cn-tab-nav__item${c===d.id?" cn-tab-nav__item--active":""}`,onClick:()=>u(d.id),type:"button",children:d.label},d.id))})}const Wc="cookie-notice",es=()=>typeof window<"u"&&window.wp&&window.wp.i18n||null,s=(i,c=Wc)=>{const u=es();return u?u.__(i,c):i},yo=(i,c,u,d=Wc)=>{const p=es();return p?p._n(i,c,u,d):u===1?i:c},we=(i,...c)=>{const u=es();if(u&&typeof u.sprintf=="function")try{return u.sprintf(i,...c)}catch{return i}return i};function Ut({type:i="info",dismissible:c=!1,onDismiss:u,children:d}){const p={success:"notice-success",error:"notice-error",warning:"notice-warning",info:"notice-info"}[i]||"notice-info";return t.jsxs("div",{className:`notice inline ${p}${c?" is-dismissible":""}`,children:[t.jsx("p",{children:d}),c&&u&&t.jsx("button",{type:"button",className:"notice-dismiss",onClick:u,children:t.jsx("span",{className:"screen-reader-text",children:s("Dismiss this notice.","cookie-notice")})})]})}function Ze(){const i=window.cnReactData||{},c=i.app_id||"",u=(i.subscription||"").toLowerCase(),d=!!c;let p="banner_only";return d&&u==="pro"?p="pro":d&&(p="free"),{tier:p,isBannerOnly:p==="banner_only",isFree:p==="free",isPro:p==="pro",isConnected:d,version:i.version||""}}const Gc=j.createContext({config:null,isLoadingConfig:!1,refetchConfig:()=>{},configRefresh:{state:"idle",lastSynced:"",retry:()=>{}}});function jt(){return j.useContext(Gc)}function ns(){return s("Shared settings are off. Each site uses its own settings — manage them from each site's dashboard.","cookie-notice")}function ts(i){return{networkManaged:s("Managed by network","cookie-notice"),perSite:s("Set per site","cookie-notice"),pending:s("Pending","cookie-notice"),inactive:s("Not active","cookie-notice"),checking:s("Checking…","cookie-notice")}[i]||s("Not confirmed","cookie-notice")}function os(i){return{networkManaged:s("Managed by your network administrator","cookie-notice"),perSite:ns(),pending:s("Pending: finish setup in your Cookie Compliance account","cookie-notice"),inactive:s("Not active: visitors see a basic notice only","cookie-notice"),checking:s("Checking whether your banner is live…","cookie-notice")}[i]||s("Not confirmed — reload to see the saved value","cookie-notice")}function Re(){var i;return!!((i=window.cnReactData)!=null&&i.networkOverride)}function is(){return s("Global network settings override is active. Every site will use the same network settings. Please contact super administrator if you want to have more control over the settings.","cookie-notice")}function rs(){return t.jsx(Ut,{type:"info",children:is()})}function ss(){return t.jsx(Ut,{type:"info",children:ns()})}function as({managed:i,perSite:c=!1,children:u}){return!i&&!c?u:t.jsxs(t.Fragment,{children:[i?t.jsx(rs,{}):t.jsx(ss,{}),t.jsx("div",{className:"cn-network-managed",inert:"",children:u})]})}const _2=()=>({banner_only:s("Banner Only (Not Connected)","cookie-notice"),free:s("Free Plan","cookie-notice"),pro:s("Pro Plan","cookie-notice")});function cs(i){if(!i)return"";const c=Date.parse(String(i).trim().replace(" ","T")+"Z");return Number.isNaN(c)?"":new Date(c).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function k2(){const{configRefresh:i}=jt(),{state:c,lastSynced:u,retry:d}=i||{};if(c==="refreshing")return t.jsx("span",{className:"cn-footer__sync",children:s("Refreshing settings…","cookie-notice")});if(c==="failed"){const h=cs(u);return t.jsxs("span",{className:"cn-footer__sync cn-footer__sync--failed",children:[h?we(s("Couldn't reach Hu-manity — showing settings from %s.","cookie-notice"),h):s("Couldn't reach Hu-manity — showing cached settings.","cookie-notice")," ",t.jsx("button",{type:"button",className:"cn-footer__sync-retry",onClick:d,children:s("Retry","cookie-notice")})]})}const p=cs(u);return p?t.jsx("span",{className:"cn-footer__sync",children:we(s("Settings synced %s","cookie-notice"),p)}):null}function x2(){const{tier:i,version:c}=Ze(),u=Re()?s("Managed by network","cookie-notice"):_2()[i]||"";return t.jsxs("div",{className:"cn-footer",children:[t.jsxs("span",{className:"cn-footer__version",children:[we(s("Cookie Compliance v%1$s — %2$s","cookie-notice"),c||"—",u)," ",t.jsx(k2,{})]}),t.jsxs("span",{className:"cn-footer__links",children:[t.jsx("a",{href:"https://cookie-compliance.co/documentation/",target:"_blank",rel:"noopener noreferrer",children:s("Documentation","cookie-notice")})," | ",t.jsx("a",{href:"https://cookie-compliance.co/mcp/",target:"_blank",rel:"noopener noreferrer",children:s("AI assistant","cookie-notice")})," | ",t.jsx("a",{href:"https://cookie-compliance.co/support/",target:"_blank",rel:"noopener noreferrer",children:s("Support","cookie-notice")})," | ",t.jsx("a",{href:"https://cookie-compliance.co/privacy-policy/",target:"_blank",rel:"noopener noreferrer",children:s("Privacy Policy","cookie-notice")})]})]})}const Vc=j.createContext({dashboard:null,refetchDashboard:()=>{},isLoadingDashboard:!1,scorecardStatus:"loading"});function Mn(){return j.useContext(Vc)}const ls=i=>"cn_setup_wizard_complete_"+(i||"default"),us=i=>"cn_has_platform_config_"+(i||""),j2=i=>"cn_setup_just_finished_"+(i||"default"),Hc=j.createContext(null);function w2({onLawSave:i,onConsentClose:c,children:u}){const[d,p]=j.useState(!1),[h,m]=j.useState(0),[x,v]=j.useState(!1),[g,k]=j.useState(!1),[_,b]=j.useState(0),[A,C]=j.useState(!1),D=j.useMemo(()=>{var J;try{const B=((J=window.cnReactData)==null?void 0:J.app_id)||"";return!!B&&localStorage.getItem(us(B))==="1"}catch{return!1}},[]),P=j.useCallback(()=>{p(!1),v(!1),k(!1),C(!1)},[]),E=j.useCallback(()=>{P(),p(!0),m(J=>J+1)},[P]),I=j.useCallback(()=>{P(),k(!0),b(J=>J+1)},[P]),R=j.useCallback(()=>{v(!0),setTimeout(()=>{p(!1),v(!1),i&&i()},160)},[i]),O=j.useCallback(()=>{C(!0),setTimeout(()=>{k(!1),C(!1),c&&c()},160)},[c]),oe={showLawWizard:d,lawScrollTrigger:h,lawClosing:x,showConsentPanel:g,consentScrollTrigger:_,consentClosing:A,hasPlatformConfig:D,openLawWizard:E,openConsentPanel:I,closeLawWizard:R,closeConsentPanel:O,closeAllPanels:P};return t.jsx(Hc.Provider,{value:oe,children:u})}function ki(){const i=j.useContext(Hc);if(!i)throw new Error("usePanels() must be used inside <PanelProvider>.");return i}const b2={"&":"&","<":"<",">":">",""":'"',"'":"'"};function ds(i){return typeof i=="string"?i.replace(/&(?:amp|lt|gt|quot|#039);/g,c=>b2[c]):Array.isArray(i)?i.map(ds):i&&typeof i=="object"?Object.fromEntries(Object.entries(i).map(([c,u])=>[c,ds(u)])):i}function Kc(i){if(!i||typeof i!="object"||Array.isArray(i))return i;const c={...i};for(const u of["error","message"])u in c&&(c[u]=ds(c[u]));return c}const N2="--CNWAF-B64--",S2=["cn_react_update_design","cn_react_save_banner_style","cn_react_dashboard","cn_react_save_network_options"],Yc="cn_react_dashboard",C2=["register","login","login_code","login_code_resend","login_app","configure","sync_config"],P2=["app_id","app_key"],_o=new Set;function L2(i){return _o.add(i),()=>_o.delete(i)}async function xi(i,c){_o.forEach(d=>d.start());let u=!0;try{const d=await i();u=!1;try{_o.forEach(p=>p.reply&&p.reply(d))}catch{}return d}catch(d){throw u=!(d&&d.answered),d}finally{_o.forEach(d=>d.settle(u,c))}}const ji={options:{timeout:()=>s("The request timed out before the server answered. Your change may not have been saved — reload the page to see the saved value.","cookie-notice"),network:()=>s("The request could not reach the server. Your change may not have been saved — check your connection and reload the page to see the saved value.","cookie-notice"),http:i=>we(s("AJAX error: %d. Your change may not have been saved — reload the page to see the saved value.","cookie-notice"),i),unreadable:()=>s("The server's reply could not be read. Your change may not have been saved — reload the page to see the saved value.","cookie-notice")},read:{timeout:()=>s("Couldn't load — the server took too long to answer. Try again.","cookie-notice"),network:()=>s("Couldn't load — the server could not be reached. Check your connection and try again.","cookie-notice"),http:i=>we(s("Couldn't load (HTTP %d) — try again.","cookie-notice"),i),unreadable:()=>s("Couldn't load — the server's reply could not be read. Try again.","cookie-notice")},request:{timeout:()=>s("The server took too long to answer. Try again.","cookie-notice"),network:()=>s("The server could not be reached. Check your connection and try again.","cookie-notice"),http:i=>we(s("AJAX error: %d","cookie-notice"),i),unreadable:()=>s("The server's reply could not be read. Try again.","cookie-notice")}};function Ge(i,c={},u={}){return S2.includes(i)?xi(()=>ps(i,c,u),i):ps(i,c,u)}async function ps(i,c,{timeout:u=0,kind:d="request"}){var A,C,D;const p=ji[d]||ji.request,h=window.cnReactData||{},m=new FormData;m.append("action",i),m.append("nonce",h.nonce||""),h.network&&m.append("cn_network","1"),Object.entries(c).forEach(([P,E])=>{m.append(P,E)});const x=u?new AbortController:null,v=x?setTimeout(()=>x.abort(),u):null;let g,k;try{g=await fetch(h.ajaxURL||"/wp-admin/admin-ajax.php",{method:"POST",credentials:"same-origin",body:m,signal:x?x.signal:void 0}),k=await g.text()}catch{throw x&&x.signal.aborted?tt(p.timeout(),{timedOut:!0}):tt(p.network(),{network:!0})}finally{clearTimeout(v)}let _=null;try{_=JSON.parse(k)}catch{}const b=_&&typeof _=="object"&&_.success===!1?_:null;if(!g.ok){if(g.status===403){if(b&&typeof((A=b.data)==null?void 0:A.error)=="string"&&b.data.error)throw wi(b.data.error);const P=s("This save was blocked by a security plugin or firewall on your site (HTTP 403). Add an allow-list rule for the Cookie Compliance save action in your firewall (e.g. WordFence → Firewall → Live Traffic), then try again.","cookie-notice");throw b?wi(P):tt(P)}throw b?wi(((C=b.data)==null?void 0:C.error)||ji.request.http(g.status)):tt(p.http(g.status))}if(b)throw wi(((D=b.data)==null?void 0:D.error)||s("Request failed","cookie-notice"));if(!_||typeof _!="object"||_.success!==!0)throw tt(p.unreadable());return _.data}function wi(i){return Object.assign(new Error(i),{refused:!0,answered:!0})}function fs(i){return Object.assign(new Error(i),{answered:!0})}function qc(i){try{return JSON.parse(i)}catch{return}}const Qc=i=>!!i&&typeof i=="object"&&i.success===!1;function tt(i,c={}){return Object.assign(new Error(i),{uncertain:!0},c)}function gn(i,c={},u="",d=""){return C2.includes(i)?xi(()=>Zc(i,c,u,d),i):Zc(i,c,u,d)}async function Zc(i,c,u,d){var k;const p=window.cnReactData||{},h=new FormData;h.append("action","cn_api_request"),h.append("nonce",d||p.welcomeNonce||""),h.append("request",i),h.append("cn_nonce",u),p.network&&h.append("cn_network","1"),Object.entries(c).forEach(([_,b])=>{h.append(_,b)});let m,x;try{m=await fetch(p.ajaxURL||"/wp-admin/admin-ajax.php",{method:"POST",credentials:"same-origin",body:h}),x=await m.text()}catch(_){throw Object.assign(_ instanceof Error?_:new Error(String(_)),{uncertain:!0,network:!0})}const v=qc(x);if(!m.ok){const _=`Request failed: ${m.status}`;throw Qc(v)?fs(((k=v.data)==null?void 0:k.error)||_):tt(_)}if(v===void 0)throw tt(ji.request.unreadable());const g=Kc(v);if(g&&g.error)throw Object.assign(fs(g.error),g.expired?{expired:!0}:{});return g}const E2=()=>{const i=window.cnReactData||{},c={};if(i.devMode){const u=new URLSearchParams(window.location.search),d=u.get("cn_usage"),p=u.get("cn_tier");d!==null&&(c.cn_usage=d),p!==null&&(c.cn_tier=p)}return Ge(Yc,c,{kind:"read"})},D2=()=>Ge("cn_react_config",{},{kind:"read"}),T2=(i={})=>Ge("cn_react_consent_logs",i,{kind:"read"}),A2=(i={})=>Ge("cn_react_export_consent_logs",i,{kind:"read"}),hs=(i={})=>Ge("cn_react_privacy_consent",i,{kind:"read"}),R2=(i={})=>{const c={};return Object.entries(i).forEach(([u,d])=>{d.active!==void 0&&(c[`sources[${u}][active]`]=d.active?"1":"0"),d.activeType!==void 0&&(c[`sources[${u}][active_type]`]=d.activeType)}),Ge("cn_react_save_privacy_consent",c)},z2=(i,c,u)=>Ge("cn_react_privacy_consent_form_status",{source:i,form_id:c,status:u?"1":"0"}),M2=(i={})=>Ge("cn_react_privacy_consent_logs",i,{kind:"read"}),bi=3e4,Xc=(i={})=>{const c=()=>ps("cn_react_save_options",i,{timeout:bi,kind:"options"});return P2.some(u=>u in i)?xi(c,"cn_react_save_options"):c()},F2=()=>Ge("cn_react_reset_options",{},{timeout:bi,kind:"options"}),I2=({global_override:i,global_cookie:c})=>Ge("cn_react_save_network_options",{global_override:i?"1":"",global_cookie:c?"1":""},{timeout:bi,kind:"options"}),O2=()=>Ge("cn_react_plugin_options",{},{timeout:bi,kind:"read"}),U2=()=>Ge("cn_react_dismiss_welcome"),ms=()=>Ge("cn_react_complete_setup_wizard"),B2=i=>Ge("cn_react_save_banner_style",{style:i}),$2=i=>Ge("cn_react_rule_values",{param:i},{kind:"read"}),Jc=(i=[])=>{const c={};return i.forEach((u,d)=>{c[`languages[${d}]`]=u}),Ge("cn_react_apply_languages",c)},gs=(i={},c={},u={})=>{const d={};return Object.entries(i).forEach(([p,h])=>{d[`design[${p}]`]=h}),Object.entries(c).forEach(([p,h])=>{d[`config[${p}]`]=h}),Object.entries(u).forEach(([p,h])=>{d[`consentConfig[${p}]`]=h}),Ge("cn_react_update_design",d)},W2=()=>Ge("cn_react_update_design",{sync_privacy_policy:"1"}),G2=()=>Ge("cn_react_dev_reset"),V2=()=>{const i=window.cnReactData||{},c={};return i.network&&(c.cn_network="1"),gn("sync_config",c,"",i.welcomeNonce||"")},H2=()=>xi(K2,"cn_purge_cache");async function K2(){var p;const i=window.cnReactData||{},c=new FormData;c.append("action","cn_purge_cache"),c.append("nonce",i.purgeNonce||""),i.network&&c.append("cn_network","1");let u,d;try{u=await fetch(i.ajaxURL||"/wp-admin/admin-ajax.php",{method:"POST",credentials:"same-origin",body:c}),d=await u.text()}catch(h){throw Object.assign(h instanceof Error?h:new Error(String(h)),{uncertain:!0,network:!0})}if(!u.ok){const h=`Purge cache failed: ${u.status}`,m=qc(d);throw Qc(m)?fs(((p=m.data)==null?void 0:p.error)||h):tt(h)}}function Y2(i){return i?!!i.app_blocking&&i.app_blocking_engine!==!1:!1}function Ni(i){return!i||typeof i!="object"?null:{engine:i.engine==="new"?"new":"classic",style:i.style==="compact"?"compact":"standard",managed:!!i.managed}}function el(i,c){return!!i&&!!c&&i.engine===c.engine&&i.style===c.style&&i.managed===c.managed}function Si(i){return s(i==="new"?"New engine":"Classic engine","cookie-notice")}function nl(i){return s(i==="compact"?"Compact":"Standard","cookie-notice")}function q2(i){return(i==null?void 0:i.engine)==="new"?we(s("Connected. Your banner: %1$s · %2$s.","cookie-notice"),Si("new"),nl(i.style)):we(s("Connected. Your banner: %s.","cookie-notice"),Si("classic"))}const vs="cn_connected";function Bt(i={}){const c=new URL(window.location.href);c.searchParams.set(vs,"1"),Object.entries(i).forEach(([u,d])=>c.searchParams.set(u,String(d))),c.toString()===window.location.href?window.location.reload():window.location.href=c.toString()}const Q2=300,wt=["app_blocking","app_blocking_engine"],Z2=[...wt,"app_id"],tl=["app_id","app_key"],ol=["conditional_rules","refuse_code","refuse_code_head"];function il(i){return N2+btoa(unescape(encodeURIComponent(i)))}function ko(i){const c={};return Object.entries(i||{}).forEach(([u,d])=>{u==="see_more_opt"&&typeof d=="object"?(c["see_more_opt[text]"]=d.text||"",c["see_more_opt[link_type]"]=d.link_type||"page",c["see_more_opt[id]"]=d.id||0,c["see_more_opt[link]"]=d.link||"",c["see_more_opt[sync]"]=d.sync?"1":""):u==="colors"&&typeof d=="object"?(c.bar_opacity=d.bar_opacity||100,c.color_bar=d.bar||"",c.color_text=d.text||"",c.color_button=d.button||""):u==="conditional_rules"?c[u]=JSON.stringify(d||[]):u==="excluded_handles"?c[u]=Array.isArray(d)?d.join(` 41 `):d||"":u==="refuse_code"||u==="refuse_code_head"?c[u]=d||"":typeof d=="boolean"?c[u]=d?"1":"":c[u]=d}),c}function X2(i){return i.startsWith("see_more_opt[")?"see_more_opt":i==="bar_opacity"||i.startsWith("color_")?"colors":i}function rl(i,c,u){const d=m=>m==null?{}:ko({[i]:m}),p=d(c),h=d(u);return Object.keys({...p,...h}).every(m=>String(p[m]??"")===String(h[m]??""))}function J2(i,c){const u={};return c.forEach(d=>{d in i&&(u[d]=i[d])}),u}let ye=null,xo=null,sl=Promise.resolve(),jo=null,Ci=new Set;const Pi=new Map,ys=new Set,wo=new Map;let bo=null,No=0,_s=0,So=!1,Co=!1,ks=0,al=0;const xs=new Set;function Pn(){if(ye)return;const i=window.cnReactData||{},c={...i.options||{}};xo=ko(c),ye={confirmed:c,draft:c,blockingPaused:!!i.blockingPaused,complianceActive:!!i.complianceActive,status:typeof i.status=="string"?i.status:"",networkManaged:!!i.networkOverride,network:!!i.network,manual:0,saving:[],unconfirmed:[],pull:null,statusPull:null,pullSeen:!1,signalsGen:0,banner:Ni(i.banner)||{engine:"classic",style:"standard",managed:!!i.networkOverride},error:null,saved:!1,autoError:null}}function ze(i){const c=ye;ye={...ye,...i},e3(c,ye)&&(ye.signalsGen=c.signalsGen+1),ye.confirmed!==c.confirmed&&window.cnReactData&&(window.cnReactData.options={...ye.confirmed}),ye.blockingPaused!==c.blockingPaused&&window.cnReactData&&(window.cnReactData.blockingPaused=ye.blockingPaused),xs.forEach(u=>u())}function e3(i,c){return i.status!==c.status||i.complianceActive!==c.complianceActive||i.confirmed!==c.confirmed&&Z2.some(u=>!rl(u,i.confirmed[u],c.confirmed[u]))}function bt(){return[...new Set([...Ci,...Pi.keys()])]}function $t(i,c){i.forEach(u=>{const d=(Pi.get(u)||0)+c;d>0?Pi.set(u,d):Pi.delete(u)})}function Li(i){const c=sl.then(i);return sl=c.catch(()=>{}),c}function cl(i){return ze({manual:ye.manual+1}),Li(i).finally(()=>ze({manual:ye.manual-1}))}function Ei(){return{epoch:_s,clean:No===0,sent:++ks}}function ll(i){return!!i&&i.clean&&No===0&&i.epoch===_s}function ul(i,c){if(typeof i!="boolean")return ye.blockingPaused;const u=++ks;return i?(al=u,!0):ye.blockingPaused&&!(c&&c.sent>al)}function Di(i,c,u,d,p,h){i=i&&typeof i=="object"?i:{},xo=p?ko(i):{...xo,...ko(i)};const{draft:m,confirmed:x}=ye,v=p?{}:{...m};Object.keys(p?{...m,...i}:i).forEach(k=>{const _=u===!0||u.includes(k),b=!_&&wo.has(k)&&ys.has(k);rl(k,m[k],_?c[k]:b?wo.get(k):x[k])?k in i?v[k]=i[k]:delete v[k]:v[k]=m[k]}),p?wo.clear():Object.keys(i).forEach(k=>wo.delete(k));const g=Ni(d==null?void 0:d.banner);ze({banner:g&&!el(g,ye.banner)?g:ye.banner,confirmed:p?{...i}:{...x,...i},draft:v,blockingPaused:ul(d==null?void 0:d.blocking_paused,h),complianceActive:typeof(d==null?void 0:d.compliance_active)=="boolean"?d.compliance_active:ye.complianceActive,status:typeof(d==null?void 0:d.status)=="string"?d.status:ye.status,unconfirmed:p?[]:ye.unconfirmed.filter(k=>!(k in i)),pull:ye.pull&&!So&&ll(h)&&wt.every(k=>k in i)?null:ye.pull,statusPull:ye.statusPull&&!Co&&ll(h)&&typeof(d==null?void 0:d.compliance_active)=="boolean"?null:ye.statusPull})}function n3(i){return i.some(c=>tl.includes(c))||tl.some(c=>!ye.confirmed[c]||ye.confirmed[c]==="0")}function dl(i){return So=!0,!i||!n3(i)?{pull:"unknown"}:(Co=!0,{pull:"unknown",statusPull:"unknown"})}function pl(i,c,u){if(!c.length)return{};if(!(i&&i.refused))return c.forEach(h=>wo.set(h,u[h])),js(),{unconfirmed:[...new Set([...ye.unconfirmed,...c])],...dl(c)};const d=c.filter(h=>ys.has(h)),p={...ye.draft};return d.forEach(h=>{p[h]===u[h]&&(p[h]=ye.confirmed[h])}),{draft:p,autoError:d.length?{keys:d,message:i&&i.message||s("Save failed","cookie-notice")}:ye.autoError}}function js(){return bo||(bo=Li(async()=>{bo=null;const i=Ei();try{const c=await O2();if(c&&c.options&&typeof c.options=="object")return Di(c.options,ye.draft,[],c,!0,i),!0}catch{}return No===0&&!bo&&(ye.pull&&!So&&ze({pull:"failed"}),ye.statusPull&&!Co&&ze({statusPull:"failed"})),!1})),bo}async function fl(i,c){const u=ye.draft;let d=[];c&&ze({error:null,saved:!1});try{const p=ko(i?J2(u,i):u),h={};if(Object.entries(p).forEach(([x,v])=>{v!==xo[x]&&(h[x]=ol.includes(x)?il(v):v)}),d=[...new Set(Object.keys(h).map(X2))],d.length){$t(d,1),ze({saving:bt()});try{const x=Ei(),v=await Xc(h);Object.keys(h).forEach(g=>{xo[g]=p[g]}),Di(v==null?void 0:v.options,u,d,v,!1,x)}finally{$t(d,-1)}}const m=ye.autoError&&ye.autoError.keys.some(x=>d.includes(x))?null:ye.autoError;return ze({saving:bt(),autoError:m,...c?{saved:!0}:{}}),!0}catch(p){return ze({saving:bt(),...pl(p,d,u),...c?{error:(p==null?void 0:p.message)||s("Save failed","cookie-notice")}:{}}),!1}}function hl(){jo=null;const i=[...Ci];Ci=new Set,$t(i,1),Li(()=>fl(i,!1)).finally(()=>{$t(i,-1),ze({saving:bt()})})}function ws(){jo!==null&&(clearTimeout(jo),hl())}function Nt(i){return Pn(),xs.add(i),()=>xs.delete(i)}function Fn(){return Pn(),ye}function t3(i,c){Pn(),ze({draft:{...ye.draft,[i]:c},saved:!1})}function o3(i,c,u){Pn(),ze({draft:{...ye.draft,[i]:{...ye.draft[i]||{},[c]:u}},saved:!1})}function i3(){return Pn(),cl(()=>fl(null,!0))}function r3(i){Pn(),i.forEach(c=>{ys.add(c),Ci.add(c)}),clearTimeout(jo),jo=setTimeout(hl,Q2),ze({saving:bt(),autoError:null})}function s3(){return Pn(),ws(),cl(async()=>{ze({error:null,saved:!1});const i=ye.draft;try{const c=Ei(),u=await F2();return Di(u==null?void 0:u.options,i,!0,u,!0,c),ze({autoError:null}),!0}catch(c){return ze({error:(c==null?void 0:c.message)||s("Reset failed","cookie-notice"),...c!=null&&c.refused?{}:dl()}),c!=null&&c.refused||js(),!1}})}function ml(i){Pn(),ws();const c=Object.keys(i);return Li(async()=>{const u=ye.draft,d={};Object.entries(i).forEach(([p,h])=>{d[p]=ol.includes(p)?il(h):h}),$t(c,1),ze({saving:bt()});try{const p=Ei(),h=await Xc(d);return Di(h==null?void 0:h.options,u,c,h,!1,p),h}catch(p){throw ze(pl(p,c,u)),p}finally{$t(c,-1),ze({saving:bt()})}})}function a3(){return Pn(),ws(),js()}async function c3(i,c){Pn();const u={sent:++ks},d=await i(),p=ul(c(d),u);return p!==ye.blockingPaused&&ze({blockingPaused:p}),d}L2({start(){Pn(),No++,_s++,ze({pull:So?"unknown":"checking",statusPull:Co?"unknown":"checking",pullSeen:!0})},reply(i){const c=Ni(i==null?void 0:i.banner);c&&!el(c,ye.banner)&&ze({banner:c})},settle(i,c){No--,i&&(So=Co=!0,ze({pull:"unknown",statusPull:"unknown"})),c!==Yc&&ze({signalsGen:ye.signalsGen+1}),a3()}});function Po(i){return i.network&&!i.confirmed.global_override}function gl(i){return i.networkManaged?"networkManaged":Po(i)?"perSite":i.complianceActive?i.pull||wt.some(c=>i.unconfirmed.includes(c))?"unconfirmed":i.blockingPaused?"paused":wt.some(c=>i.saving.includes(c))?"saving":Y2(i.confirmed)?"active":"off":"inactive"}function l3(i){return i.networkManaged?"networkManaged":Po(i)?"perSite":i.complianceActive?!i.pullSeen||i.statusPull?"unconfirmed":"live":"inactive"}function vl(i,c){const[u,d]=j.useState(null),[p,h]=j.useState(!0),[m,x]=j.useState(null),v=j.useRef(null),g=j.useCallback(async()=>{if(v.current){d(v.current),h(!1);return}h(!0),x(null);try{const _=await i(c);v.current=_,d(_)}catch(_){x(_.message||"An error occurred")}finally{h(!1)}},[i,c]);j.useEffect(()=>{g()},[g]);const k=j.useCallback(()=>{v.current=null,g()},[g]);return{data:u,loading:p,error:m,refetch:k}}const u3=async()=>{const i=Fn().signalsGen,c=await c3(E2,u=>{var d;return(d=u==null?void 0:u.analytics)==null?void 0:d.thresholdExceeded});return c&&typeof c=="object"&&yl.set(c,i),c},yl=new WeakMap;function d3(i){return i&&typeof i=="object"?yl.get(i):void 0}function p3(){return j.useSyncExternalStore(Nt,Fn).signalsGen}function f3(){return vl(u3)}function h3(){return vl(D2)}function m3(){const i=j.useSyncExternalStore(Nt,Fn);return{options:i.draft,confirmed:i.confirmed,update:t3,updateNested:o3,save:i3,scheduleSave:r3,reset:s3,loading:i.manual>0,error:i.error,saved:i.saved,blockingPaused:i.blockingPaused,blockingState:gl(i),networkManaged:i.networkManaged,perSite:Po(i),savingKeys:i.saving,unconfirmedKeys:i.pull?[...new Set([...i.unconfirmed,...wt])]:i.unconfirmed,checkingKeys:i.pull==="checking"?wt:_l,pullUnknownKeys:i.pull==="unknown"?wt:_l,autoSaveError:i.autoError}}const _l=[];function kl(){return j.useSyncExternalStore(Nt,Fn).blockingPaused}function bs(){const i=j.useSyncExternalStore(Nt,Fn),c=gl(i);return c!=="unconfirmed"?c:i.pull==="checking"?"checking":i.pull==="unknown"?"pullUnknown":c}function Lo(){const i=j.useSyncExternalStore(Nt,Fn),c=l3(i);return c==="inactive"?i.status==="pending"?"pending":c:c==="unconfirmed"&&(!i.pullSeen||i.statusPull==="checking")?"checking":c}function Ti(){return j.useSyncExternalStore(Nt,Fn).banner}function Ai(){return Po(j.useSyncExternalStore(Nt,Fn))}function g3(){const[i,c]=j.useState(!1),[u,d]=j.useState(null);return{exportCsv:j.useCallback(async h=>{c(!0),d(null);try{const m=await A2(h);if(m.inactive)return d(s("Consent logs can be exported once Cookie Compliance is active.","cookie-notice")),m;if(m.csv){const x=new Blob([m.csv],{type:"text/csv;charset=utf-8;"}),v=URL.createObjectURL(x),g=document.createElement("a");g.href=v,g.download=`consent-logs-${h.start_date||"export"}.csv`,g.click(),URL.revokeObjectURL(v)}return m}catch(m){throw d(m.message||"Export failed"),m}finally{c(!1)}},[]),loading:i,error:u}}const en=((h1=window.cnReactData)==null?void 0:h1.appUrl)||"https://app.hu-manity.co",xl={gdpr:"GDPR",ccpa:"CCPA",otherus:"US State Laws",ukpecr:"UK PECR",lgpd:"LGPD",pipeda:"PIPEDA",popia:"POPIA"},jl={GDPR:{flag:"🇪🇺",geo:"EU"},CCPA:{flag:"🇺🇸",geo:"US"},"US State Laws":{flag:"🇺🇸",geo:"US"},"UK PECR":{flag:"🇬🇧",geo:"UK"},LGPD:{flag:"🇧🇷",geo:"Brazil"},PIPEDA:{flag:"🇨🇦",geo:"Canada"},POPIA:{flag:"🇿🇦",geo:"South Africa"}};function wl(i){return i?Object.entries(i).filter(([,c])=>!!c).map(([c])=>c):[]}function In({children:i,sidebar:c}){return t.jsxs("div",{className:"cn-page-layout",children:[t.jsx("div",{className:"cn-main",children:i}),c&&t.jsx("div",{className:"cn-sidebar",children:c})]})}function On({title:i,children:c}){return t.jsxs("div",{className:"cn-side-card",children:[i&&t.jsx("h3",{children:i}),c]})}function Ue({variant:i="primary",size:c="md",children:u,...d}){return t.jsx("button",{className:`cn-button cn-button--${i} cn-button--${c}`,type:"button",...d,children:u})}function Ce({label:i,type:c="text",value:u,onChange:d,placeholder:p,options:h,error:m,helper:x,required:v,children:g,...k}){const _=k.id||`cn-field-${i==null?void 0:i.toLowerCase().replace(/\s+/g,"-")}`,b=()=>c==="textarea"?t.jsx("textarea",{id:_,className:`cn-form-field__input cn-form-field__textarea${m?" cn-form-field__input--error":""}`,value:u,onChange:A=>d==null?void 0:d(A.target.value),placeholder:p,...k}):c==="select"?t.jsx("select",{id:_,className:`cn-form-field__input cn-form-field__select${m?" cn-form-field__input--error":""}`,value:u,onChange:A=>d==null?void 0:d(A.target.value),...k,children:h==null?void 0:h.map(A=>t.jsx("option",{value:A.value,children:A.label},A.value))}):t.jsx("input",{id:_,type:c,className:`cn-form-field__input${m?" cn-form-field__input--error":""}`,value:u,onChange:A=>d==null?void 0:d(A.target.value),placeholder:p,...k});return t.jsxs("div",{className:"cn-form-field",children:[i&&t.jsxs("label",{className:"cn-form-field__label",htmlFor:_,children:[i,v&&t.jsx("span",{className:"cn-form-field__req",children:"*"})]}),g||b(),m&&t.jsx("div",{className:"cn-form-field__error",children:m}),x&&!m&&t.jsx("div",{className:"cn-form-field__helper",children:x})]})}function Ns(){return t.jsx("p",{className:"cn-conn-hint cn-conn-hint--returning",children:s("Signed up with Google? Copy your App ID and App Secret Key from the Admin Portal.","cookie-notice")})}function Un(){return t.jsx("span",{className:"cn-pro-badge",children:"PRO"})}const bl={banner_only:0,free:1,pro:2};function Ss({requiredTier:i="pro",children:c,message:u,onCta:d}){const{tier:p}=Ze();if(bl[p]>=bl[i])return c;const m=i==="free"?"Connect to Cookie Compliance to unlock this feature.":"Upgrade to Cookie Compliance Pro to unlock this feature.",x=i==="free"?"Connect Your Site":"Upgrade Now",v=d?t.jsx("button",{type:"button",onClick:d,className:`cn-button cn-button--${i==="free"?"primary":"upgrade"}`,children:x}):t.jsx("a",{href:i==="free"?"#":"https://cookie-compliance.co/pricing/",className:`cn-button cn-button--${i==="free"?"primary":"upgrade"}`,target:i==="pro"?"_blank":void 0,rel:i==="pro"?"noopener noreferrer":void 0,children:x});return t.jsxs("div",{className:"cn-tier-gate",children:[t.jsx("div",{className:"cn-tier-gate__content",children:c}),t.jsx("div",{className:"cn-tier-gate__overlay",children:t.jsxs("div",{className:"cn-tier-gate__cta",children:[i==="pro"&&t.jsx(Un,{}),t.jsx("p",{children:u||m}),!Re()&&v]})})]})}function Wt({showPortalLink:i=!0,addNotice:c}){var X,q,W,te,ue,ge;const{isPro:u,isConnected:d}=Ze(),{dashboard:p}=Mn(),h=((X=window.cnReactData)==null?void 0:X.lastSynced)||"",[m,x]=j.useState(!1),[v,g]=j.useState(null),[k,_]=j.useState(((W=(q=window.cnReactData)==null?void 0:q.options)==null?void 0:W.app_id)||""),[b,A]=j.useState(((ue=(te=window.cnReactData)==null?void 0:te.options)==null?void 0:ue.app_key)||""),[C,D]=j.useState(!1),[P,E]=j.useState(""),I=!!((ge=window.cnReactData)!=null&&ge.networkOverride),R=Lo(),O=Ai(),oe=p!=null&&p.domainUrl?(()=>{try{return new URL(p.domainUrl).hostname}catch{return window.location.hostname}})():window.location.hostname,J=async()=>{x(!0),g(null);try{await V2(),g("success"),c&&c(s("Configuration synced. Reloading…","cookie-notice"),"success"),setTimeout(()=>window.location.reload(),800)}catch(ne){g("error"),c&&c(ne.message||s("Sync failed. Please try again.","cookie-notice"),"error"),x(!1)}},B=async()=>{D(!0),E("");try{await ml({app_id:k,app_key:b});try{const ne=await gn("sync_config");if(ne!=null&&ne.success){try{await ms()}catch{}try{localStorage.setItem(ls(k),"1"),localStorage.setItem(us(k),"1")}catch{}}}catch{}k?Bt():window.location.reload()}catch(ne){E(ne.message||s("Save failed","cookie-notice")),D(!1)}};return t.jsxs(On,{title:s("Domain Info","cookie-notice"),children:[t.jsxs("div",{className:"cn-dom-rows",children:[t.jsxs("div",{className:"cn-dom-row",children:[t.jsx("span",{className:"cn-dom-row__k",children:s("Domain","cookie-notice")}),t.jsx("span",{className:"cn-dom-row__v",children:oe})]}),t.jsxs("div",{className:"cn-dom-row",children:[t.jsx("span",{className:"cn-dom-row__k",children:s("Protection","cookie-notice")}),t.jsx("span",{className:"cn-dom-row__v",children:I?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"cn-dot cn-dot--gray"})," ",s("Managed by network","cookie-notice")]}):d?R==="live"?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"cn-dot cn-dot--green"})," ",s("Active","cookie-notice")]}):t.jsxs(t.Fragment,{children:[t.jsx("span",{className:`cn-dot cn-dot--${R==="pending"?"yellow":"gray"}`})," ",O?ts(R):os(R)]}):t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"cn-dot cn-dot--gray"})," ",s("Not connected","cookie-notice")]})})]}),t.jsxs("div",{className:"cn-dom-row",children:[t.jsx("span",{className:"cn-dom-row__k",children:s("Plan","cookie-notice")}),t.jsx("span",{className:"cn-dom-row__v",children:u?t.jsxs(t.Fragment,{children:[s("Pro","cookie-notice")," ",t.jsx(Un,{})]}):s("Free Plan","cookie-notice")})]})]}),!I&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"cn-dom-credentials",children:[t.jsx(Ce,{label:s("App ID","cookie-notice"),value:k,onChange:_,placeholder:s("Your application ID","cookie-notice"),autoComplete:"off"}),t.jsx(Ce,{label:s("App Secret Key","cookie-notice"),type:"password",value:b,onChange:A,placeholder:s("Your App Secret Key","cookie-notice"),autoComplete:"new-password"}),t.jsx(Ns,{}),P&&t.jsx("div",{className:"cn-conn-error",children:P}),t.jsx(Ue,{variant:"primary",onClick:B,disabled:C,children:s(C?"Saving…":"Save and Connect","cookie-notice")})]}),t.jsxs("div",{className:"cn-pull-config",children:[t.jsxs("div",{className:`cn-pull-config__row${O?" cn-network-managed":""}`,inert:O?"":void 0,children:[t.jsx(Ue,{variant:"secondary",onClick:J,disabled:m||O,children:s(m?"Syncing…":"Pull latest settings","cookie-notice")}),t.jsx("span",{className:"cn-pull-config__timestamp",children:h?we(s("Last synced (UTC): %s","cookie-notice"),h):s("Not synced yet","cookie-notice")})]}),O&&t.jsx("p",{className:"cn-pull-config__desc",children:ns()}),!O&&v==="error"&&t.jsx("p",{className:"cn-pull-config__desc cn-pull-config__desc--error",children:s("Sync failed. Please try again.","cookie-notice")}),!O&&!v&&t.jsx("p",{className:"cn-pull-config__desc",children:s("Manually pull the latest configuration including autoblocking. Also syncs automatically twice a day.","cookie-notice")})]})]}),i&&u&&!I&&t.jsxs("a",{className:"cn-dom-link",href:`${en}/#/configuration`,target:"_blank",rel:"noopener noreferrer",children:[s("Open Admin Portal","cookie-notice")," →"]})]})}function v3({onActivate:i}){return t.jsxs("div",{className:"cn-score-hero",children:[t.jsx("div",{className:"cn-score-hero__icon","aria-hidden":"true",children:t.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[t.jsx("circle",{cx:"12",cy:"12",r:"10"}),t.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),t.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})}),t.jsxs("div",{className:"cn-score-hero__body",children:[t.jsx("div",{className:"cn-score-hero__title",children:s("You have a banner. Not compliance.","cookie-notice")}),t.jsx("div",{className:"cn-score-hero__summary",children:s("A banner tells visitors about cookies. Compliance actually enforces the law.","cookie-notice")}),t.jsx("div",{className:"cn-score-hero__sub",children:s("Free · Takes 60 seconds · No credit card","cookie-notice")})]}),t.jsx("div",{className:"cn-score-hero__actions",children:t.jsxs("button",{type:"button",className:"cn-score-hero__cta",onClick:i,children:[s("Connect Your Site","cookie-notice")," →"]})})]})}const y3=["active","off","paused","inactive"];function Nl(i){return!!i&&i.status!=="crit"&&!i.value_cls}function _3(i,c,u=null,d=!0){var E,I;const p=bs(),h=p3(),[m,x]=j.useState(null),[v,g]=j.useState(null),k=y3.includes(p),_=!!i&&(m==null?void 0:m.dashboard)===i,b=d3(i)===h,A=(I=(E=i==null?void 0:i.scorecard)==null?void 0:E.boxes)==null?void 0:I.find(R=>R.key==="blocking"),C=!(i!=null&&i.scorecard)||Nl(A)===(p==="active"),D=k&&_&&m.state===p&&b&&C,P=`${h}:${p}`;return j.useEffect(()=>{if(!(!i||!k)){if(!_){x({dashboard:i,state:p});return}if(D){v!==null&&g(null);return}d&&v!==P&&(g(P),c())}},[i,k,_,D,p,P,v,c,d]),i?k?D?"fresh":!_||v!==P?"updating":"unconfirmed":"pending":u?"failed":"loading"}const k3=["ok","warn","crit","neutral"],x3=i=>({saving:s("Saving…","cookie-notice"),checking:s("Checking…","cookie-notice")})[i]||s("Not confirmed","cookie-notice"),Sl=i=>({saving:s("Saving autoblocking…","cookie-notice"),checking:s("Checking the saved autoblocking setting…","cookie-notice"),pullUnknown:s("Not confirmed — reload the page to see the saved autoblocking setting.","cookie-notice")})[i]||s("Not confirmed — reload to see the saved value","cookie-notice");function j3(i,c){return i==="loading"?s("Loading your status…","cookie-notice"):i==="failed"?s("Your status could not be loaded. Reload the page to try again.","cookie-notice"):i==="pending"?Sl(c):s(i==="updating"?"Updating your status…":"Not confirmed — reload the page to see your current status.","cookie-notice")}function w3(i,{fresh:c,blockingState:u,widgetState:d,banner:p}){let h=i;if(h.key==="banner"&&d!=="live")h={key:h.key,title:h.title,status:"off",value:ts(d),sub:os(d)};else if(h.key==="banner"){const m=p.engine!=="new"?Si(p.engine):p.style==="compact"?s("Compact banner","cookie-notice"):s("Standard banner","cookie-notice");h={...h,sub:m}}else h.key==="blocking"&&!c&&(h={key:h.key,title:h.title,status:"off",value:x3(u),sub:Sl(u),pending:!0});return!c&&h.status==="ok"&&(h={...h,status:"off",value_cls:"off",pill:null,bar:h.bar&&{...h.bar,cls:"off"}}),h}function b3(i,c){if(i.key==="banner")return c.widgetState==="checking"?null:{label:s("Banner settings","cookie-notice"),run:c.actions.banner};if(i.status==="ok"||i.pending)return null;const u=!c.isPro&&c.actions.pricing?{label:s("See plans","cookie-notice"),run:c.actions.pricing}:null,d={label:s("Consent signals","cookie-notice"),run:c.actions.signals},p={label:s("Review autoblocking","cookie-notice"),run:c.actions.autoblocking};switch(i.key){case"blocking":return c.quota||!c.isPro&&Nl(i)?u:p;case"google":return d;case"metams":return c.isPro?d:u;case"gpc":return c.quota?u:{label:s("Review GPC setting","cookie-notice"),run:c.actions.autoblocking};case"visits":return i.status==="warn"||i.status==="crit"?u:null;default:return null}}function N3({b:i,fix:c,previewUrl:u}){const d=i.value_cls||i.status;return t.jsxs("div",{className:`cn-card cn-ov-box${i.status==="crit"?" cn-card--crit":i.status==="warn"?" cn-card--warn":""}`,"data-ov-box":i.key,"data-status":i.status,children:[t.jsxs("div",{className:"cn-card__top",children:[t.jsx("div",{className:"cn-ov-box__title",children:i.title}),t.jsx("div",{className:`cn-card__dot cn-card__dot--${i.status}`})]}),t.jsx("div",{className:`cn-card__main cn-card__main--${d}`,children:i.value}),i.sub&&t.jsx("div",{className:"cn-card__sub",children:i.sub}),i.bar&&t.jsx("div",{className:"cn-card__bar-wrap",children:t.jsx("div",{className:`cn-card__bar-fill cn-card__bar-fill--${i.bar.cls}`,style:{width:`${Math.max(0,Math.min(100,i.bar.pct))}%`}})}),i.pill&&t.jsx("div",{className:"cn-card__pills",children:t.jsx("span",{className:`cn-card__pill cn-card__pill--${i.pill.cls}`,children:i.pill.label})}),(c||u)&&t.jsxs("div",{className:"cn-card__foot",children:[c&&c.run&&t.jsxs("button",{type:"button",className:"cn-ov-box__fix",onClick:()=>c.run(),children:[c.label," →"]}),u&&t.jsxs("a",{href:u,target:"_blank",rel:"noreferrer",children:[s("Preview on my site","cookie-notice")," ↗"]}),u&&t.jsxs("details",{className:"cn-card__help",children:[t.jsx("summary",{children:s("Can't see your banner?","cookie-notice")}),t.jsx("p",{children:s("Can't see your banner on your own site? That's often normal. It stays hidden when your browser sends Global Privacy Control, when your visitor's region doesn't require a banner, or when you've already made a choice. Preview shows it anyway. Nothing is saved.","cookie-notice")})]})]})]})}function S3({scorecard:i,status:c,blockingState:u,widgetState:d,isPro:p,siteUrl:h,actions:m}){const x=Ti(),v=c==="fresh"&&!!i,g=(i==null?void 0:i.hero)||{},k=v&&k3.includes(g.hero_cls)?g.hero_cls:"neutral",_=v&&i.state!=="no_laws"&&Number(i.gaps)||0,b={fresh:v,blockingState:u,widgetState:d,isPro:p,actions:m,banner:x,quota:(i==null?void 0:i.state)==="free_over"||u==="paused"};return t.jsxs(t.Fragment,{children:[t.jsx("section",{className:`cn-ov-verdict cn-ov-verdict--${k}`,"data-verdict":v?k:"pending","data-state":v?i.state:void 0,"aria-live":"polite",children:v?t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"cn-ov-verdict__top",children:[t.jsx("span",{className:"cn-ov-verdict__grade",children:g.grade}),_>0?t.jsx("span",{className:"cn-ov-verdict__count",children:we(yo("%d thing to fix","%d things to fix",_,"cookie-notice"),_)}):g.gap_label&&t.jsx("span",{className:"cn-ov-verdict__gap",children:g.gap_label})]}),g.intro&&t.jsx("p",{className:"cn-ov-verdict__intro",children:g.intro}),g.note&&t.jsx("p",{className:"cn-ov-verdict__note",children:g.note})]}):t.jsx("div",{className:"cn-ov-verdict__top",children:t.jsx("span",{className:"cn-ov-verdict__grade",children:j3(c,u)})})}),i&&Array.isArray(i.boxes)&&t.jsx("div",{className:"cn-card-grid cn-card-grid--3 cn-ov-boxes",children:i.boxes.map(A=>{const C=w3(A,b);return t.jsx(N3,{b:C,fix:b3(C,b),previewUrl:C.key==="banner"&&h?`${h}?cn_preview=1`:""},C.key)})})]})}const Cs=i=>Number(i||0).toLocaleString();function C3({dashboard:i,isFree:c,onOpenConsentLogs:u}){var k;const d=i==null?void 0:i.consents7d;if(!d)return null;const p=((k=i==null?void 0:i.analytics)==null?void 0:k.cycleUsage)||{},h=Number(p.threshold)||0,m=Number(d.total)||0,x=d.levelLabels||{},v=String((i==null?void 0:i.analyticsFetchedAt)||"").trim(),g=[["accept",x.level3,d.acceptRate],["custom",x.level2,d.customRate],["reject",x.level1,d.rejectRate]];return t.jsxs("section",{className:"cn-ov-numbers","aria-label":s("Numbers","cookie-notice"),children:[c&&h>0&&t.jsxs("div",{className:"cn-ov-stat","data-stat":"visits",children:[t.jsxs("span",{className:"cn-ov-stat__v",children:[Cs(p.visits)," / ",Cs(h)]}),t.jsx("span",{className:"cn-ov-stat__k",children:s("visits this cycle","cookie-notice")})]}),t.jsx("div",{className:"cn-ov-stat","data-stat":"consents",children:m>0?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"cn-ov-stat__v",children:Cs(m)}),t.jsx("span",{className:"cn-ov-stat__k",children:yo("consent in the last 7 days","consents in the last 7 days",m,"cookie-notice")}),t.jsx("span",{className:"cn-ov-stat__split",children:g.map(([_,b,A])=>t.jsxs("span",{className:`cn-ov-stat__part cn-ov-stat__part--${_}`,"data-part":_,children:[b," ",t.jsxs("strong",{children:[Number(A)||0,"%"]})]},_))})]}):t.jsx("span",{className:"cn-ov-stat__k",children:s("No consents recorded in the last 7 days","cookie-notice")})}),t.jsxs("div",{className:"cn-ov-numbers__foot",children:[v&&t.jsx("span",{className:"cn-ov-numbers__fetched","data-stat":"fetched",children:we(s("Last fetched %s UTC","cookie-notice"),v.slice(0,16))}),u&&t.jsxs("button",{type:"button",className:"cn-layer__link-btn",onClick:()=>u(),children:[s("View consent logs","cookie-notice")," →"]})]})]})}function Cl(i={}){const c=i.google_consent_default,u=i.facebook_consent_default,d=i.microsoft_consent_default;return{google:!!c&&Object.keys(c).length>0,facebook:!!u&&Object.keys(u).length>0,microsoft:!!d&&Object.keys(d).length>0,gpc:!!i.gpc_support,dnt:!!i.do_not_track}}function P3({noLaws:i,isPro:c,managed:u,onOpenLaws:d,onOpenSignals:p,onOpenPricing:h,onOpenPrivacy:m}){var D;const{config:x}=jt(),[v,g]=j.useState([]);j.useEffect(()=>{if(u)return;let P=!0;return hs().then(E=>{P&&g(((E==null?void 0:E.sources)||[]).filter(I=>I.availability&&!I.active).map(I=>I.name))}).catch(()=>{}),()=>{P=!1}},[u]);const k=((D=window.cnReactData)==null?void 0:D.detectedPlugins)||[],_=Cl((x==null?void 0:x.blocking)||{}),b=h?{action:s("See plans","cookie-notice"),run:h}:null,A={action:s("Review consent signals","cookie-notice"),run:p},C=[];return i&&C.push({key:"laws",text:s("Choose the privacy laws your site follows, so the banner asks the right visitors the right way.","cookie-notice"),action:s("Choose laws","cookie-notice"),run:d}),k.includes("google")&&!_.google&&C.push({key:"google",text:s("Google tools detected. Google Consent Mode is off.","cookie-notice"),...A}),k.includes("facebook")&&!_.facebook&&C.push(c?{key:"facebook",text:s("Facebook Pixel detected. Facebook consent signals are off.","cookie-notice"),...A}:{key:"facebook",text:s("Facebook Pixel detected. Facebook consent signals need the Pro plan.","cookie-notice"),...b}),k.includes("microsoft")&&!_.microsoft&&C.push(c?{key:"microsoft",text:s("Microsoft Clarity detected. Microsoft consent signals are off.","cookie-notice"),...A}:{key:"microsoft",text:s("Microsoft Clarity detected. Microsoft consent signals need the Pro plan.","cookie-notice"),...b}),v.length>0&&C.push({key:"forms",text:we(s("These form plugins are not recording proof of consent yet: %s.","cookie-notice"),v.join(", ")),action:s("Open Privacy Consent","cookie-notice"),run:m}),C.length===0?null:t.jsxs("section",{className:"cn-ov-steps","aria-labelledby":"cn-ov-steps-title",children:[t.jsx("h2",{id:"cn-ov-steps-title",className:"cn-ov-steps__title",children:s("Next steps","cookie-notice")}),t.jsx("ul",{className:"cn-ov-steps__list",children:C.map(P=>t.jsxs("li",{className:"cn-ov-steps__item","data-step":P.key,children:[t.jsx("span",{className:"cn-ov-steps__text",children:P.text}),P.run&&t.jsxs("button",{type:"button",className:"cn-layer__link-btn",onClick:()=>P.run(),children:[P.action," →"]})]},P.key))})]})}const L3=()=>[{key:"standard",desc:s("Heading, description and the full set of consent levels.","cookie-notice")},{key:"compact",desc:s("Leaves out the Balanced level; every category is still under Customize. One slim row when the banner is fixed to the top or bottom of a wide screen.","cookie-notice")}];function Pl({name:i,labelledBy:c}){const u=Ti(),[d,p]=j.useState(null),[h,m]=j.useState(""),[x,v]=j.useState(!1);j.useEffect(()=>{v(!1)},[u.engine,u.style]);const g=u.engine==="new",k=g&&!u.managed,_=d||(g?u.style:null),b=async C=>{var D;if(!(!k||d||C===u.style)){p(C),m(""),v(!1);try{const P=Ni((D=await B2(C))==null?void 0:D.banner);v(!!P&&P.engine==="new"&&P.style!==C)}catch(P){m((P==null?void 0:P.message)||s("The banner style could not be saved. Please try again.","cookie-notice"))}finally{p(null)}}},A=s(d?"Saving…":g?x?"Saved. It will show here after the next sync.":"Both styles offer the same choices, including reject.":"Available once this site is on the New engine.","cookie-notice");return t.jsxs("div",{className:"cn-style-cards",children:[t.jsx("div",{className:`cn-style-cards__group${k?"":" cn-style-cards__group--readonly"}${g?"":" cn-style-cards__group--locked"}${d?" cn-style-cards__group--saving":""}`,role:"radiogroup","aria-labelledby":c,"aria-busy":d?"true":void 0,children:L3().map(C=>t.jsxs("label",{className:`cn-style-cards__card${_===C.key?" cn-style-cards__card--checked":""}`,children:[t.jsx("input",{type:"radio",name:i,value:C.key,checked:_===C.key,disabled:!k,onChange:()=>b(C.key)}),t.jsx("span",{className:"cn-style-cards__name",children:nl(C.key)}),t.jsx("span",{className:"cn-style-cards__desc",children:C.desc})]},C.key))}),t.jsx("span",{className:"cn-style-cards__note","aria-live":"polite",children:A}),h&&t.jsx("div",{className:"cn-style-cards__error",role:"alert",children:h})]})}const be={container:"_container_nva6m_2",grid:"_grid_nva6m_8",card:"_card_nva6m_16",cardSelected:"_cardSelected_nva6m_32",geoArt:"_geoArt_nva6m_38",lawName:"_lawName_nva6m_47",jurisdiction:"_jurisdiction_nva6m_54",hiddenCheckbox:"_hiddenCheckbox_nva6m_60",checkmark:"_checkmark_nva6m_72",autoBadge:"_autoBadge_nva6m_88",detail:"_detail_nva6m_102",detailHeader:"_detailHeader_nva6m_112",detailTitle:"_detailTitle_nva6m_119",detailJurisdiction:"_detailJurisdiction_nva6m_125",detailClose:"_detailClose_nva6m_131",detailSection:"_detailSection_nva6m_144",detailSectionLabel:"_detailSectionLabel_nva6m_148",detailOverview:"_detailOverview_nva6m_157",detailList:"_detailList_nva6m_163",detailListItem:"_detailListItem_nva6m_172",detailEnforcement:"_detailEnforcement_nva6m_188",detailEmpty:"_detailEmpty_nva6m_197",detailEmptyArrow:"_detailEmptyArrow_nva6m_208",detailEmptyText:"_detailEmptyText_nva6m_215",detailDnsHelp:"_detailDnsHelp_nva6m_222",dnsInput:"_dnsInput_nva6m_263"},Ps=()=>[{key:"gdpr",name:s("GDPR","cookie-notice"),jurisdiction:s("European Union","cookie-notice"),description:s("General Data Protection Regulation","cookie-notice"),locales:["de","fr","it","es","nl","pl","pt","sv","el","de_DE","fr_FR","it_IT","es_ES","nl_NL","pl_PL","pt_PT","sv_SE","el_GR","da_DK","fi","ro_RO","bg_BG","cs_CZ","et","hr","hu_HU","lt_LT","lv","sk_SK","sl_SI"],overview:s("The EU’s gold standard for data privacy. Applies to any site with visitors from the 27 EU member states — regardless of where your business is based.","cookie-notice"),requirements:[s("Prior, informed consent before any non-essential cookies","cookie-notice"),s("Clear opt-out that’s as easy as opting in","cookie-notice"),s("Right to erasure (‘be forgotten’) on request","cookie-notice"),s("Data processing records & DPO for large processors","cookie-notice")],product:[s("Consent banner with granular category controls","cookie-notice"),s("Consent proof stored per visitor","cookie-notice"),s("GDPR-mode autoblocking holds scripts until consent","cookie-notice")],enforcement:s("Fines up to €20M or 4% of global annual revenue. Enforced by national DPAs.","cookie-notice")},{key:"ccpa",name:s("CCPA / CPRA","cookie-notice"),jurisdiction:s("California, USA","cookie-notice"),description:s("California Consumer Privacy Act","cookie-notice"),locales:["en_US"],overview:s("California’s comprehensive privacy law, upgraded by CPRA in 2023. If you serve California residents, it applies — even if you’re outside the US.","cookie-notice"),requirements:[s("Opt-out of sale or sharing of personal data","cookie-notice"),s("Honor Global Privacy Control (GPC) signals automatically","cookie-notice"),s("Annual privacy policy updates","cookie-notice"),s("Right to know, delete, and correct personal data","cookie-notice")],product:[s("GPC signal detection and automatic opt-out (Pro plan)","cookie-notice"),s("Do Not Sell link insertion","cookie-notice"),s("Consent-mode compatible analytics opt-out","cookie-notice")],enforcement:s("Fines up to $7,500 per intentional violation. Enforced by the California Privacy Protection Agency.","cookie-notice")},{key:"otherus",name:s("US State Laws","cookie-notice"),jurisdiction:s("United States","cookie-notice"),description:s("Virginia, Colorado, Connecticut, and more","cookie-notice"),locales:["en_US"],overview:s("Virginia, Colorado, Connecticut, Utah, Montana, Texas, Oregon, and more have passed comprehensive privacy laws. The landscape is evolving fast.","cookie-notice"),requirements:[s("Consent for sensitive data processing","cookie-notice"),s("Universal opt-out mechanism support (like GPC)","cookie-notice"),s("Right to access, correct, delete, and opt out of targeted advertising","cookie-notice"),s("Data protection assessments for high-risk processing","cookie-notice")],product:[s("Automatic US-state privacy-law consent banner","cookie-notice"),s("Opt-out of targeted advertising and Do-Not-Sell signaling","cookie-notice"),s("Universal Opt-Out (GPC) honoring on Pro plans","cookie-notice")],enforcement:s("Fines from $7,500–$20,000 per violation depending on state. Enforced by state attorneys general.","cookie-notice")},{key:"ukpecr",name:s("UK PECR","cookie-notice"),jurisdiction:s("United Kingdom","cookie-notice"),description:s("Privacy and Electronic Communications Regulations","cookie-notice"),locales:["en_GB"],overview:s("The UK’s post-Brexit equivalent to GDPR’s cookie rules. Applies to any site with UK visitors. Enforced by the ICO, which has been increasingly active.","cookie-notice"),requirements:[s("Prior consent for analytics and marketing cookies","cookie-notice"),s("Clear information about what cookies do","cookie-notice"),s("Easy withdrawal of consent","cookie-notice"),s("Legitimate interest cannot be used for tracking cookies","cookie-notice")],product:[s("UK-specific consent banner variant","cookie-notice"),s("ICO-compliant consent language","cookie-notice"),s("Consent proof storage","cookie-notice")],enforcement:s("Fines up to £17.5M or 4% of global turnover. Enforced by the ICO.","cookie-notice")},{key:"lgpd",name:s("LGPD","cookie-notice"),jurisdiction:s("Brazil","cookie-notice"),description:s("Lei Geral de Proteção de Dados","cookie-notice"),locales:["pt_BR"],overview:s("Brazil’s General Data Protection Law covers 214 million people. Modeled on GDPR, it requires a lawful basis for processing and strong user rights.","cookie-notice"),requirements:[s("Valid lawful basis for each data processing activity","cookie-notice"),s("Clear, granular consent for non-essential cookies","cookie-notice"),s("Right to access, correct, delete, and revoke consent","cookie-notice"),s("Report breaches within 2 business days","cookie-notice")],product:[s("LGPD-mode consent banner with Portuguese language support","cookie-notice"),s("Consent revocation flow","cookie-notice"),s("Breach-ready consent audit trail","cookie-notice")],enforcement:s("Fines up to 2% of Brazil revenue, capped at R$50M per violation. Enforced by the ANPD.","cookie-notice")},{key:"pipeda",name:s("PIPEDA","cookie-notice"),jurisdiction:s("Canada","cookie-notice"),description:s("Personal Information Protection and Electronic Documents Act","cookie-notice"),locales:["en_CA","fr_CA"],overview:s("Canada’s federal privacy law. Bill C-27 (CPPA) reform is underway and will bring requirements closer to GDPR. Applies to commercial activity across Canada.","cookie-notice"),requirements:[s("Express consent for collection, use, and disclosure of personal data","cookie-notice"),s("Privacy policy clearly explaining data use","cookie-notice"),s("Individual access and correction rights","cookie-notice"),s("Breach reporting to the Privacy Commissioner","cookie-notice")],product:[s("PIPEDA-compliant consent banner","cookie-notice"),s("English + French bilingual support","cookie-notice"),s("Consent records with timestamps","cookie-notice")],enforcement:s("Fines up to CAD $100,000. Enforced by the Office of the Privacy Commissioner of Canada.","cookie-notice")},{key:"popia",name:s("POPIA","cookie-notice"),jurisdiction:s("South Africa","cookie-notice"),description:s("Protection of Personal Information Act","cookie-notice"),locales:["af_ZA"],overview:s("South Africa’s Protection of Personal Information Act took full effect in 2021. Applies to any business processing data about South African residents.","cookie-notice"),requirements:[s("Lawful basis for all personal information processing","cookie-notice"),s("Consent for direct marketing and cookie use","cookie-notice"),s("Data subject rights: access, correction, deletion","cookie-notice"),s("Appoint an Information Officer","cookie-notice")],product:[s("POPIA-compliant consent banner","cookie-notice"),s("Afrikaans language support","cookie-notice"),s("Consent audit trail","cookie-notice")],enforcement:s("Fines up to ZAR 10M or 10 years imprisonment. Enforced by the Information Regulator.","cookie-notice")}];function E3(i){if(!i)return[];const c=i.toLowerCase(),u=c.split("_")[0];return Ps().filter(d=>d.locales.some(p=>p.toLowerCase()===c||p.toLowerCase()===u)).map(d=>d.key)}const D3=["M40.00,4.80L40.75,6.96L43.04,7.01L41.22,8.40L41.88,10.59L40.00,9.28L38.12,10.59L38.78,8.40L36.96,7.01L39.25,6.96Z","M50.60,7.64L50.17,9.89L52.13,11.08L49.86,11.36L49.33,13.59L48.36,11.52L46.08,11.71L47.75,10.15L46.86,8.03L48.87,9.14Z","M58.36,15.40L56.86,17.13L57.97,19.14L55.85,18.25L54.29,19.92L54.48,17.64L52.41,16.67L54.64,16.14L54.92,13.87L56.11,15.83Z","M61.20,26.00L59.04,26.75L58.99,29.04L57.60,27.22L55.41,27.88L56.72,26.00L55.41,24.12L57.60,24.78L58.99,22.96L59.04,25.25Z","M58.36,36.60L56.11,36.17L54.92,38.13L54.64,35.86L52.41,35.33L54.48,34.36L54.29,32.08L55.85,33.75L57.97,32.86L56.86,34.87Z","M50.60,44.36L48.87,42.86L46.86,43.97L47.75,41.85L46.08,40.29L48.36,40.48L49.33,38.41L49.86,40.64L52.13,40.92L50.17,42.11Z","M40.00,47.20L39.25,45.04L36.96,44.99L38.78,43.60L38.12,41.41L40.00,42.72L41.88,41.41L41.22,43.60L43.04,44.99L40.75,45.04Z","M29.40,44.36L29.83,42.11L27.87,40.92L30.14,40.64L30.67,38.41L31.64,40.48L33.92,40.29L32.25,41.85L33.14,43.97L31.13,42.86Z","M21.64,36.60L23.14,34.87L22.03,32.86L24.15,33.75L25.71,32.08L25.52,34.36L27.59,35.33L25.36,35.86L25.08,38.13L23.89,36.17Z","M18.80,26.00L20.96,25.25L21.01,22.96L22.40,24.78L24.59,24.12L23.28,26.00L24.59,27.88L22.40,27.22L21.01,29.04L20.96,26.75Z","M21.64,15.40L23.89,15.83L25.08,13.87L25.36,16.14L27.59,16.67L25.52,17.64L25.71,19.92L24.15,18.25L22.03,19.14L23.14,17.13Z","M29.40,7.64L31.13,9.14L33.14,8.03L32.25,10.15L33.92,11.71L31.64,11.52L30.67,13.59L30.14,11.36L27.87,11.08L29.83,9.89Z"];function T3(){return t.jsx("svg",{viewBox:"0 0 80 52",fill:"none",style:{width:"100%",height:"auto"},children:D3.map((i,c)=>t.jsx("path",{d:i,fill:"#20c19e",opacity:"0.9"},c))})}function A3(){return t.jsx("svg",{viewBox:"0 0 80 52",style:{width:"100%",height:"auto"},children:t.jsx("path",{d:"M37.513,42.904L38.238,43.379L37.825,43.645ZM37.052,44.75L37.717,45.823L37.272,45.618ZM35.977,42.471L35.977,42.471L35.977,42.471ZM35.268,39.936L35.268,39.936L35.268,39.936ZM33.989,42.904L33.989,42.904L33.989,42.904ZM33.676,39.32L34.798,39.964L33.73,39.76ZM32.497,39.347L33.222,39.384L32.807,39.892ZM31.86,39.021L31.86,39.021L31.86,39.021ZM29.205,3L32.401,3.908L38.713,5.758L41.841,6.576L41.84,6.58L38.653,18.933L41.444,23.13L44.007,26.988L48.051,33.092L52.339,39.534L52.222,40.059L52.645,40.847L52.88,42.027L53.42,42.959L52.253,43.484L51.779,44.08L51.723,45.075L51.378,45.722L50.695,46.134L50.495,47.457L51.101,47.842L50.851,48.976L50.148,49L41.666,47.998L41.371,47.343L41.515,45.403L41.115,44.386L39.247,42.072L38.422,41.969L38.28,40.638L37.359,40.575L36.115,39.635L36.034,39.084L35.246,38.245L34.184,37.993L33.352,37.495L32.221,37.309L31.791,36.609L32.419,34.386L31.689,33.643L31.931,33.211L30.973,31.644L30.057,29.011L29.65,28.484L29.661,27.639L30.53,26.451L30.232,25.596L29.675,25.538L28.998,24.284L29.024,22.847L29.328,21.783L29.707,21.754L29.599,22.695L30.309,23.509L30.302,22.525L29.816,21.111L30.434,20.929L30.14,20.407L29.328,21.612L28.616,20.617L28.022,20.414L28.453,19.444L28.184,18.476L27.692,17.819L26.886,15.851L27.158,15.473L27.119,14.107L27.54,13.351L27.621,12.162L26.58,9.935L26.661,9.167L27.876,7.733L28.302,6.532L28.962,5.414L29.033,4.098L28.808,3.838Z",fill:"rgba(32,193,158,0.15)",stroke:"#20c19e",strokeWidth:1.2,strokeLinejoin:"round"})})}function R3(){return t.jsx("div",{style:{width:46,height:46,margin:"0 auto"},children:t.jsx("div",{"data-geo":"us",style:{width:"100%",height:"100%",lineHeight:0},dangerouslySetInnerHTML:{__html:`<svg version="1.0" xmlns="http://www.w3.org/2000/svg" 42 42 width="100%" height="100%" viewBox="0 0 1024.000000 1024.000000" 43 43 preserveAspectRatio="xMidYMid meet"> … … 1058 1058 -273 23 -148 78 -332 143 -397 141 -16 -1 -112 -13 -212 -28z"/> 1059 1059 </g> 1060 </svg>`}})})}const O3={gdpr:T3,ccpa:A3,otherus:R3,ukpecr:z3,lgpd:M3,pipeda:F3,popia:I3};function Ll({selected:i,onChange:c,dnsUrl:u,onDnsUrlChange:d}){const h=(window.cnReactData||{}).siteLocale||"",[m,x]= w.useState([]),[v,g]=w.useState(null),[k,_]=w.useState(null),b=i,A=k??b;w.useEffect(()=>{const R=E3(h);x(R),i.length===0&&R.length>0&&c(R),R.length>0&&g(R[0])},[]);const C=R=>{g(R);const O=k??b,te=O.includes(R)?O.filter(J=>J!==R):[...O,R];_(te),c&&c(te)},D=(R,O)=>{R.stopPropagation();const te=k??b,J=te.includes(O)?te.filter(B=>B!==O):[...te,O];_(J),c&&c(J)},P=()=>{g(null)},E=v?Ps().find(R=>R.key===v):null,I=E&&(E.key==="ccpa"||E.key==="otherus");return t.jsxs("div",{className:be.container,children:[t.jsx("div",{children:t.jsx("div",{className:be.grid,children:Ps().map(R=>{const O=A.includes(R.key),te=m.includes(R.key),J=O3[R.key];return t.jsxs("div",{className:be.card+(O?" "+be.cardSelected:""),onClick:()=>C(R.key),role:"button",tabIndex:0,onKeyDown:B=>{(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),C(R.key))},children:[te&&t.jsx("span",{className:be.autoBadge,children:s("Auto-detected","cookie-notice")}),O&&t.jsx("span",{className:be.checkmark,children:"✓"}),t.jsx("input",{type:"checkbox",className:be.hiddenCheckbox,checked:O,onChange:B=>D(B,R.key),onClick:B=>B.stopPropagation(),tabIndex:-1,"aria-label":je(s("Select %s","cookie-notice"),R.name)}),t.jsx("div",{className:be.geoArt,children:J&&t.jsx(J,{})}),t.jsx("div",{className:be.lawName,children:R.name}),t.jsx("div",{className:be.jurisdiction,children:R.jurisdiction})]},R.key)})})}),E?t.jsxs("div",{className:be.detail,children:[t.jsxs("div",{className:be.detailHeader,children:[t.jsxs("div",{children:[t.jsx("div",{className:be.detailTitle,children:E.name}),t.jsx("div",{className:be.detailJurisdiction,children:E.jurisdiction})]}),t.jsx("button",{className:be.detailClose,onClick:P,type:"button","aria-label":s("Close detail panel","cookie-notice"),children:"×"})]}),t.jsxs("div",{className:be.detailSection,children:[t.jsx("div",{className:be.detailSectionLabel,children:s("What it covers","cookie-notice")}),t.jsx("div",{className:be.detailOverview,children:E.overview})]}),t.jsxs("div",{className:be.detailSection,children:[t.jsx("div",{className:be.detailSectionLabel,children:s("Key requirements","cookie-notice")}),t.jsx("ul",{className:be.detailList,children:E.requirements.map((R,O)=>t.jsx("li",{className:be.detailListItem,children:R},O))})]}),t.jsxs("div",{className:be.detailSection,children:[t.jsx("div",{className:be.detailSectionLabel,children:s("What Cookie Compliance does","cookie-notice")}),t.jsx("ul",{className:be.detailList,children:E.product.map((R,O)=>t.jsx("li",{className:be.detailListItem,children:R},O))})]}),t.jsx("div",{className:be.detailEnforcement,children:E.enforcement}),I&&t.jsxs("div",{className:be.detailSection,style:{marginTop:14},children:[t.jsx("div",{className:be.detailSectionLabel,children:s("Do Not Sell URL","cookie-notice")}),t.jsx("p",{className:be.detailDnsHelp,children:"Required if you advertise to California residents. This is a page on your site where visitors can request you stop selling or sharing their personal data."}),t.jsx("input",{id:"cn-dns-url",type:"url",className:be.dnsInput,value:u||"",onChange:R=>d&&d(R.target.value),placeholder:s("https://example.com/do-not-sell","cookie-notice"),"aria-describedby":"cn-dns-url-hint"}),t.jsx("p",{id:"cn-dns-url-hint",className:be.detailDnsHelp,style:{marginTop:6},children:s("Sets the link for your banner's default language. Other languages: Admin Portal → Languages.","cookie-notice")}),t.jsx("a",{href:"https://oag.ca.gov/privacy/ccpa",target:"_blank",rel:"noreferrer",style:{fontSize:12,color:"#0073aa",display:"inline-block",marginTop:4},children:"What is this? →"})]})]},E.key):t.jsxs("div",{className:be.detailEmpty,children:[t.jsx("div",{className:be.detailEmptyArrow,children:"←"}),t.jsx("div",{className:be.detailEmptyText,children:"Select a law to see what it covers and what compliance looks like for your site."})]})]})}const El=()=>[{code:"fr",name:s("French","cookie-notice")},{code:"es",name:s("Spanish","cookie-notice")},{code:"de",name:s("German","cookie-notice")},{code:"it",name:s("Italian","cookie-notice")},{code:"el",name:s("Greek","cookie-notice")},{code:"nl",name:s("Dutch","cookie-notice")},{code:"pt",name:s("Portuguese","cookie-notice")},{code:"pl",name:s("Polish","cookie-notice")},{code:"sv",name:s("Swedish","cookie-notice")}];function U3({onComplete:i,onOpenPricingModal:c,onSelectionChange:u}){const p=(window.cnReactData||{}).siteLocale||"",{isFree:h}=Ze(),[m,x]=w.useState([]),[v,g]=w.useState(!1),[k,_]=w.useState(""),[b,A]=w.useState(!1),[C,D]=w.useState(!1);w.useEffect(()=>{u&&u(m,C)},[m,C]),w.useEffect(()=>{var R;const I=(R=p.split("_")[0])==null?void 0:R.toLowerCase();I&&I!=="en"&&El().some(O=>O.code===I)&&x([I])},[]);const P=I=>{D(!0),x(R=>R.includes(I)?(A(!1),R.filter(O=>O!==I)):h?(R.length>=1&&A(!0),[I]):[...R,I])},E=async()=>{if(!v){g(!0),_("");try{await Jc(m),i&&i(m)}catch(I){_(I.message||"Failed to apply languages.")}finally{g(!1)}}};return t.jsxs("div",{className:"cn-language-picker",children:[h?t.jsxs("div",{style:{background:"#fff8f0",border:"1px solid #fed7aa",color:"#92400e",padding:"10px 14px",borderRadius:"6px",marginBottom:"12px",display:"flex",alignItems:"center",justifyContent:"space-between",fontSize:"14px"},children:[t.jsx("span",{children:s("Free plan: your default language plus 1 additional language","cookie-notice")}),t.jsxs("button",{type:"button",onClick:()=>c&&c(),style:{background:"none",border:"none",color:"#20c19e",fontWeight:600,cursor:"pointer",textDecoration:"underline",padding:0},children:[s("Upgrade to Pro to add more languages","cookie-notice")," →"]})]}):t.jsxs("div",{style:{background:"#f0fdf4",border:"1px solid #a7f3d0",color:"#065f46",padding:"10px 14px",borderRadius:"6px",marginBottom:"12px",fontSize:"14px"},children:[s("Pro plan — no limit on languages","cookie-notice")," ✓"]}),t.jsx("p",{className:"cn-language-picker__hint",children:s("Without a configured language, non-English visitors see browser-automated translations — unreviewed and potentially inaccurate. Selecting a language gives you full control over what they read.","cookie-notice")}),t.jsx("div",{className:"cn-language-picker__grid",children:El().map(I=>{const R=m.includes(I.code),O=h&&!R&&m.length>=1;return t.jsxs("button",{type:"button",className:"cn-language-picker__badge"+(R?" cn-language-picker__badge--active":"")+(O?" cn-language-picker__badge--locked":""),onClick:()=>{O?c&&c():P(I.code)},"aria-label":O?`${I.name} — upgrade to Pro to unlock`:I.name,children:[I.name,O?" 🔒":""]},I.code)})}),b&&h&&t.jsx("div",{style:{color:"#92400e",fontSize:"13px",marginTop:"8px"},children:t.jsxs("button",{type:"button",onClick:()=>c&&c(),style:{background:"none",border:"none",color:"#20c19e",fontWeight:600,cursor:"pointer",textDecoration:"underline",padding:0},children:[s("Upgrade to Pro to add more languages","cookie-notice")," →"]})}),k&&t.jsx("div",{className:"cn-language-picker__error",children:k}),t.jsx("div",{className:"cn-language-picker__actions",children:t.jsx("button",{className:"cn-button cn-button--primary",onClick:E,disabled:v,type:"button",children:v?"Applying…":"Apply Languages"})})]})}function Dl(){var m,x;const{dashboard:i}=Mn(),c=((m=i==null?void 0:i.appConfig)==null?void 0:m.design)||((x=window.cnReactData)==null?void 0:x.bannerDesign)||{},u=typeof c.dontSellUrl=="string"?c.dontSellUrl:"",[d,p]=w.useState(null);return{value:d??u,onChange:p,field:(v=[])=>{const g=(d??"").trim(),k=v.includes("ccpa")||v.includes("otherus");return d!==null&&g!==""&&g!==u&&k?{cn_dont_sell_url:g}:{}}}}const B3=i=>[...i?[{key:"style",label:s("Banner style","cookie-notice")}]:[],{key:"laws",label:s("Laws","cookie-notice")},{key:"languages",label:s("Languages","cookie-notice")}];function $3({initialLaws:i=[],onOpenPricingModal:c}){var ke;const u=window.cnReactData||{},[d,p]=w.useState(null),h=ls((ke=u.options)==null?void 0:ke.app_id),[m,x]=w.useState(!!u.setupWizardComplete||localStorage.getItem(h)==="1"),[v,g]=w.useState(i),k=Dl(),[_,b]=w.useState(!1),[A,C]=w.useState(!1),[D,P]=w.useState(""),[E,I]=w.useState([]),[R,O]=w.useState(""),{dashboard:te}=Mn(),J=Ti();if(m||Re())return null;const B=B3(J.engine==="new"),X=Math.max(0,B.findIndex(U=>U.key===d)),q=B[X].key,W=U=>p(B[Math.min(Math.max(U,0),B.length-1)].key),ne=()=>{W(X+1)},le=async()=>{if(q==="laws"&&v.length>0){C(!0),P("");try{const U={};v.forEach((ee,Q)=>{U[`cn_laws[${Q}]`]=ee}),await gn("configure",{...U,...k.field(v),cn_revoke_consent:"1"},u.configureNonce||"")}catch(U){P(U!=null&&U.answered&&U.message?U.message:s("Failed to save laws. Please try again.","cookie-notice")),C(!1);return}C(!1)}W(X+1)},he=()=>{W(X-1)},M=async()=>{b(!0);try{await ms()}catch{}window.cnReactData&&(window.cnReactData.setupWizardComplete=!0);try{localStorage.setItem(h,"1"),localStorage.setItem("cn_setup_just_finished_"+(u.app_id||"default"),"1")}catch{}window.location.reload()},me=async()=>{var ee;const U=((ee=te==null?void 0:te.appConfig)==null?void 0:ee.language)||[];if(E.some(Q=>!U.includes(Q))){b(!0),O("");try{await Jc(E)}catch(Q){O((Q==null?void 0:Q.message)||s("Failed to apply languages. Please try again.","cookie-notice")),b(!1);return}}M()},_e=X===B.length-1;return t.jsxs(t.Fragment,{children:[X===0&&t.jsxs("div",{className:"cn-first-run__connected-notice",children:[t.jsx("span",{className:"cn-first-run__connected-check",children:"✓"}),t.jsxs("div",{children:[t.jsx("strong",{children:s("Your account is connected.","cookie-notice")})," ",s(q==="style"?"Choose your banner style, laws, and languages to finalize your setup.":"Choose your laws and languages to finalize your setup.","cookie-notice"),t.jsxs("span",{className:"cn-first-run__connected-hint",children:[" ",s("When done, you will be guided to select your consent signals.","cookie-notice")]})]})]}),t.jsxs("div",{className:"cn-first-run",children:[t.jsxs("div",{className:"cn-first-run__header",children:[t.jsx("h2",{className:"cn-first-run__title",children:s("Complete Your Setup","cookie-notice")}),t.jsx("button",{className:"cn-first-run__dismiss",onClick:M,type:"button",children:"×"})]}),t.jsx("div",{className:"cn-first-run__progress",children:B.map((U,ee)=>t.jsxs("div",{className:"cn-first-run__step-indicator"+(ee===X?" cn-first-run__step-indicator--active":"")+(ee<X?" cn-first-run__step-indicator--done":""),children:[t.jsx("span",{className:"cn-first-run__step-num",children:ee+1}),t.jsx("span",{className:"cn-first-run__step-label",children:U.label})]},U.key))}),t.jsxs("div",{className:"cn-first-run__body",children:[q==="style"&&t.jsxs("div",{className:"cn-first-run__step",children:[t.jsx("h3",{children:s("Choose how your banner looks","cookie-notice")}),t.jsx("p",{children:s("You can change this any time, here or in the Admin Portal.","cookie-notice")}),t.jsxs("div",{className:"cn-first-run__style",children:[t.jsx("span",{className:"cn-section-label",id:"cn-first-run-style-label",children:s("Style","cookie-notice")}),t.jsx(Pl,{name:"cn-first-run-style",labelledBy:"cn-first-run-style-label"})]})]}),q==="laws"&&t.jsxs("div",{className:"cn-first-run__step",children:[t.jsx("h3",{children:s("Select Your Laws","cookie-notice")}),t.jsx("p",{children:s("Choose which privacy regulations apply to your site.","cookie-notice")}),t.jsx(Ll,{selected:v,onChange:U=>{g(U),P("")},dnsUrl:k.value,onDnsUrlChange:k.onChange}),D&&t.jsx("p",{style:{color:"var(--cn-red)",fontSize:13,marginTop:8},children:D})]}),q==="languages"&&t.jsxs("div",{className:"cn-first-run__step",children:[t.jsx("h3",{children:s("Add Languages","cookie-notice")}),t.jsx("p",{children:s("Select additional languages for your consent banner.","cookie-notice")}),t.jsx(U3,{onComplete:M,onOpenPricingModal:c,onSelectionChange:(U,ee)=>{I(ee?U:[]),O("")}}),R&&t.jsx("p",{role:"alert",style:{color:"var(--cn-red)",fontSize:13,marginTop:8},children:R})]})]}),t.jsxs("div",{className:"cn-first-run__nav",children:[X>0&&t.jsx("button",{className:"cn-button cn-button--outline",onClick:he,type:"button",children:"← Back"}),t.jsxs("div",{className:"cn-first-run__nav-right",children:[!_e&&t.jsx("button",{className:"cn-button cn-button--ghost",onClick:ne,type:"button",children:"Skip"}),!_e&&t.jsx("button",{className:"cn-button cn-button--primary",onClick:le,disabled:A,type:"button",children:A?"Saving…":"Next →"}),_e&&t.jsx("button",{className:"cn-button cn-button--primary",onClick:me,disabled:_,type:"button",children:s(_?"Finishing…":"Apply & Finish","cookie-notice")})]})]})]})]})}function Ls({title:i,onClose:c,children:u,footer:d,scrollTrigger:p,isClosing:h,onExitComplete:m}){const x=w.useRef(null);return w.useEffect(()=>{var v;h||(v=x.current)==null||v.scrollIntoView({behavior:"smooth",block:"start"})},[p,h]),t.jsxs("div",{className:`cn-inline-panel${h?" cn-inline-panel--closing":""}`,ref:x,onTransitionEnd:h?m:void 0,children:[t.jsxs("div",{className:"cn-inline-panel__header",children:[t.jsx("h3",{className:"cn-inline-panel__title",children:i}),t.jsx("button",{className:"cn-inline-panel__dismiss",onClick:c,"aria-label":s("Close","cookie-notice"),children:"×"})]}),t.jsx("div",{className:"cn-inline-panel__body",children:u}),d&&t.jsx("div",{className:"cn-inline-panel__footer",children:d})]})}function W3(){const[i,c]=w.useState(()=>{var p;const d=((p=window.cnReactData)==null?void 0:p.selectedLaws)||[];return Array.isArray(d)?d:Object.values(d)});return[i,d=>{c(d),window.cnReactData&&(window.cnReactData.selectedLaws=d)}]}function Tl({onClose:i,onSave:c,scrollTrigger:u,isClosing:d}){const[p,h]=W3(),m=Dl(),[x,v]=w.useState(!1),[g,k]=w.useState(""),[_,b]=w.useState(!1),A=async()=>{var P;v(!0),k("");try{const E={};p.forEach((I,R)=>{E["cn_laws["+R+"]"]=I}),await gn("configure",{...E,...m.field(p),cn_revoke_consent:"1"},((P=window.cnReactData)==null?void 0:P.configureNonce)||""),h(p),b(!0)}catch(E){k(E.message||"Failed to save laws.")}finally{v(!1)}},C=()=>{c&&c(p),i()};if(_)return t.jsx(Ls,{title:s("Privacy Laws","cookie-notice"),onClose:C,scrollTrigger:u,isClosing:d,children:t.jsxs("div",{className:"cn-wizard-success",children:[t.jsx("div",{className:"cn-wizard-success__icon",children:"✓"}),t.jsx("h3",{className:"cn-wizard-success__heading",children:s("Laws updated","cookie-notice")}),t.jsx("button",{className:"cn-button cn-button--primary",onClick:C,children:s("Done","cookie-notice")})]})});const D=t.jsxs(t.Fragment,{children:[t.jsx("a",{href:`${sn}/#/configuration`,target:"_blank",rel:"noreferrer",className:"cn-layer__link-btn",children:"Manage regulations in Admin Portal →"}),t.jsxs("div",{style:{display:"flex",gap:8},children:[t.jsx(Ue,{variant:"secondary",onClick:i,children:s("Cancel","cookie-notice")}),t.jsx(Ue,{variant:"primary",onClick:A,disabled:x,children:x?"Saving…":"Save laws"})]})]});return t.jsxs(Ls,{title:s("Privacy Laws","cookie-notice"),onClose:i,scrollTrigger:u,isClosing:d,footer:D,children:[t.jsx(Ll,{selected:p,onChange:h,dnsUrl:m.value,onDnsUrlChange:m.onChange}),t.jsx("p",{style:{fontSize:13,color:"var(--cn-text-muted, #666)",marginTop:12},children:s("Selecting laws here sets your baseline. To see how the banner behaves for visitors in each region — and to review the full per-region rules — open the Admin Portal.","cookie-notice")}),g&&t.jsx("p",{style:{color:"var(--cn-red)",fontSize:13,marginTop:8},children:g})]})}const Y={layout:"_layout_t4wb2_48",remoteChangedNotice:"_remoteChangedNotice_t4wb2_55",modeList:"_modeList_t4wb2_67",modeSection:"_modeSection_t4wb2_75",modeSectionLabel:"_modeSectionLabel_t4wb2_81",modeCard:"_modeCard_t4wb2_91",modeCardActive:"_modeCardActive_t4wb2_106",modeCardLocked:"_modeCardLocked_t4wb2_112",modeCardProOverlay:"_modeCardProOverlay_t4wb2_118",lockIconLarge:"_lockIconLarge_t4wb2_133",modeCardProLabel:"_modeCardProLabel_t4wb2_137",modeCardTop:"_modeCardTop_t4wb2_143",modeCardName:"_modeCardName_t4wb2_150",modeCardDesc:"_modeCardDesc_t4wb2_156",statusDot:"_statusDot_t4wb2_162",statusDotOn:"_statusDotOn_t4wb2_170",statusDotOff:"_statusDotOff_t4wb2_174",detailCol:"_detailCol_t4wb2_178",detail:"_detail_t4wb2_178",detailHeader:"_detailHeader_t4wb2_191",detailTitle:"_detailTitle_t4wb2_198",detailDesc:"_detailDesc_t4wb2_204",detailFooter:"_detailFooter_t4wb2_211",enableToggle:"_enableToggle_t4wb2_219",enableToggleInput:"_enableToggleInput_t4wb2_227",enableToggleTrack:"_enableToggleTrack_t4wb2_234",enableToggleThumb:"_enableToggleThumb_t4wb2_248",enableToggleLabel:"_enableToggleLabel_t4wb2_263",signalConfig:"_signalConfig_t4wb2_269",signalConfigTitle:"_signalConfigTitle_t4wb2_277",groupRow:"_groupRow_t4wb2_286",groupLabel:"_groupLabel_t4wb2_293",groupSelect:"_groupSelect_t4wb2_299",groupHint:"_groupHint_t4wb2_317",familyTitle:"_familyTitle_t4wb2_324",advancedGrid:"_advancedGrid_t4wb2_334",advancedRow:"_advancedRow_t4wb2_343",advancedLabel:"_advancedLabel_t4wb2_350",subToggles:"_subToggles_t4wb2_355",subToggleTitle:"_subToggleTitle_t4wb2_361",subToggleRow:"_subToggleRow_t4wb2_370",proGate:"_proGate_t4wb2_380",proGateLink:"_proGateLink_t4wb2_394",legacyNotice:"_legacyNotice_t4wb2_414"},St=()=>[{key:"google",name:s("Google Consent Mode v2","cookie-notice"),shortName:"Google",group:"platform",pro:!1,description:s("Required for GDPR compliance if you use Google Analytics, Google Ads, or Tag Manager","cookie-notice")},{key:"facebook",name:s("Facebook","cookie-notice"),shortName:s("Facebook","cookie-notice"),group:"platform",pro:!0,description:s("Required if you run Facebook Ads — stops Meta Pixel from firing before visitors agree","cookie-notice")},{key:"microsoft",name:s("Microsoft","cookie-notice"),shortName:s("Microsoft","cookie-notice"),group:"platform",pro:!0,description:s("Required if you use Microsoft Ads or Clarity — keeps Bing and analytics trackers compliant","cookie-notice")},{key:"gpc",name:s("Global Privacy Control","cookie-notice"),shortName:"GPC",group:"browser",pro:!0,description:s("Honors visitors who’ve told their browser they don’t want to be tracked — required in California","cookie-notice")},{key:"dnt",name:s("Do Not Track","cookie-notice"),shortName:"DNT",group:"browser",pro:!1,description:s("Honors the legacy ‘Do Not Track’ browser setting — good practice, not legally required","cookie-notice")}],G3=()=>[{value:"passive",label:s("Show passive notice","cookie-notice"),help:s("Brief auto-dismiss confirmation that GPC was honored.","cookie-notice")},{value:"hidden",label:s("Silent","cookie-notice"),help:s("No on-screen indication. GPC is honored without notifying the visitor.","cookie-notice")},{value:"banner",label:s("Show full banner","cookie-notice"),help:s("The standard consent banner is still shown, even when GPC fires.","cookie-notice")}],Es=1,V3=()=>({value:Es,label:s("Always — not applied (change this)","cookie-notice")}),Ds=()=>[{value:2,label:s("Content Personalization","cookie-notice")},{value:3,label:s("Site Optimization","cookie-notice")},{value:4,label:s("Ad Personalization","cookie-notice")}];function Ri(i,c){return Number(c)===Es?[V3(),...Ds()]:Ds()}const H3=()=>[{value:1,label:s("Basic Operations","cookie-notice")},...Ds()],K3=()=>({google:[["googleAdStorage",s("Ad Storage","cookie-notice")],["googleAdPersonalization",s("Ad Personalization","cookie-notice")],["googleAdUserData",s("Ad User Data","cookie-notice")],["googleAnalyticsStorage",s("Analytics Storage","cookie-notice")],["googleFunctionalityStorage",s("Functionality Storage","cookie-notice")],["googlePersonalizationStorage",s("Personalization Storage","cookie-notice")]],facebook:[["facebookConsent",s("Meta Pixel consent","cookie-notice")]],microsoft:[["microsoftAdStorage",s("Ad Storage","cookie-notice")],["microsoftAnalyticsStorage",s("Analytics Storage","cookie-notice")]]});function Ts(i,c){return(K3()[c]||[]).filter(([u])=>Number(i[u])===Es).map(([,u])=>u)}function Y3(i,c={}){const u=i.google_consent_default||{},d=i.facebook_consent_default||{},p=i.microsoft_consent_default||{},h=Object.keys(u).length>0,m=Object.keys(d).length>0,x=Object.keys(p).length>0;return{googleEnabled:h,googleAdStorage:u.ad_storage??4,googleAdPersonalization:u.ad_personalization??4,googleAdUserData:u.ad_user_data??4,googleAnalyticsStorage:u.analytics_storage??3,googleFunctionalityStorage:u.functionality_storage??2,googlePersonalizationStorage:u.personalization_storage??2,googleSecurityStorage:u.security_storage??2,facebookEnabled:m,facebookConsent:d.consent??4,microsoftEnabled:x,microsoftAdStorage:p.ad_storage??4,microsoftAnalyticsStorage:p.analytics_storage??3,microsoftPixie:!!p.pixie,microsoftClarity:!!p.clarity,gpcEnabled:!!(i.gpc_support??0),gpcBannerMode:c.gpcBannerMode||"passive",doNotTrack:!!(i.do_not_track??0)}}function Al(i){return{googleConsentMapAdStorage:i.googleEnabled?i.googleAdStorage:"",googleConsentMapAdPersonalization:i.googleEnabled?i.googleAdPersonalization:"",googleConsentMapAdUserData:i.googleEnabled?i.googleAdUserData:"",googleConsentMapAnalytics:i.googleEnabled?i.googleAnalyticsStorage:"",googleConsentMapFunctionality:i.googleEnabled?i.googleFunctionalityStorage:"",googleConsentMapPersonalization:i.googleEnabled?i.googlePersonalizationStorage:"",...i.googleEnabled?{googleConsentMapSecurity:i.googleSecurityStorage}:{},facebookConsentMapConsent:i.facebookEnabled?i.facebookConsent:"",microsoftConsentMapAdStorage:i.microsoftEnabled?i.microsoftAdStorage:"",microsoftConsentMapAnalyticsStorage:i.microsoftEnabled?i.microsoftAnalyticsStorage:"",microsoftConsentModePixie:i.microsoftPixie?1:0,microsoftConsentModeClarity:i.microsoftClarity?1:0,gpcSupport:i.gpcEnabled?1:0,gpcBannerMode:i.gpcEnabled?i.gpcBannerMode||"passive":"",doNotTrack:i.doNotTrack?1:0}}function Rl(i){return{googleConsentMode:i.googleEnabled?"1":"0",facebookConsentMode:i.facebookEnabled?"1":"0",microsoftConsentMode:i.microsoftEnabled?"1":"0"}}function zl(i,c){return c?Object.fromEntries(Object.entries(i).filter(([u,d])=>JSON.stringify(c[u])!==JSON.stringify(d))):i}function q3({value:i,onChange:c,consentChoices:u}){return t.jsxs("div",{className:Y.advancedRow,children:[t.jsx("span",{className:Y.advancedLabel,children:s("Security Storage","cookie-notice")}),t.jsx("select",{className:Y.groupSelect,value:i,onChange:d=>c(Number(d.target.value)),children:H3().map(d=>t.jsx("option",{value:d.value,children:d.label},d.value))})]})}function Ml({enabled:i}){return t.jsx("span",{className:`${Y.statusDot} ${i?Y.statusDotOn:Y.statusDotOff}`})}function As({signals:i}){if(!i||!i.length)return null;const c=i.join(", ");return t.jsxs("div",{className:Y.legacyNotice,role:"alert",children:[t.jsx("strong",{children:je(yo("%s is set to “Always” and is not being applied.","%s are set to “Always” and are not being applied.",i.length,"cookie-notice"),c)}),t.jsx("span",{children:yo("Signals set this way are sent as denied for every visitor, whatever they choose on your banner — so this tool receives no consent. Choose when it should be granted below, then select Apply.","Signals set this way are sent as denied for every visitor, whatever they choose on your banner — so this tool receives no consent. Choose when they should be granted below, then select Apply.",i.length,"cookie-notice")})]})}function Eo({label:i,checked:c,onChange:u}){return t.jsxs("label",{className:Y.enableToggle,children:[t.jsx("input",{type:"checkbox",checked:c,onChange:d=>u(d.target.checked),className:Y.enableToggleInput}),t.jsx("span",{className:Y.enableToggleTrack,children:t.jsx("span",{className:Y.enableToggleThumb})}),t.jsx("span",{className:Y.enableToggleLabel,children:i})]})}function zi({locked:i,platformName:c,onUpgrade:u}){return t.jsxs("div",{className:Y.proGate,children:[t.jsx("span",{children:je(s(i==="pro"?"Upgrade to Pro to enable %s Consent Mode.":"Visit limit reached — %s Consent Mode is paused until your 30-day visit cycle resets. Upgrade for unlimited visits.","cookie-notice"),c)}),!Re()&&t.jsxs("button",{type:"button",className:Y.proGateLink,onClick:u,children:[s("Upgrade","cookie-notice")," →"]})]})}function Mi({onApply:i,hasChanges:c,saving:u,savedFlash:d,locked:p}){return t.jsx("div",{className:Y.detailFooter,children:t.jsx(Ue,{variant:"primary",size:"sm",onClick:i,disabled:!c||u||p,children:s(u?"Applying…":d?"Saved ✓":"Apply","cookie-notice")})})}function Q3({staged:i,set:c,consentChoices:u,proLocked:d,saving:p,hasChanges:h,savedFlash:m,onApply:x,onUpgrade:v}){const g=d,k=[{title:s("Advertising","cookie-notice"),hint:s("ad_storage, ad_personalization, ad_user_data — default: Ad Personalization. Most conservative: granted only when the visitor allows advertising.","cookie-notice"),signals:[[s("Ad Storage","cookie-notice"),"googleAdStorage"],[s("Ad Personalization","cookie-notice"),"googleAdPersonalization"],[s("Ad User Data","cookie-notice"),"googleAdUserData"]]},{title:s("Analytics","cookie-notice"),hint:s("analytics_storage — default: Site Optimization, so it is granted when the visitor allows measurement.","cookie-notice"),signals:[[s("Analytics Storage","cookie-notice"),"googleAnalyticsStorage"]]},{title:s("Functional","cookie-notice"),hint:s("functionality_storage, personalization_storage — default: Content Personalization.","cookie-notice"),signals:[[s("Functionality Storage","cookie-notice"),"googleFunctionalityStorage"],[s("Personalization Storage","cookie-notice"),"googlePersonalizationStorage"]]}];return t.jsxs("div",{className:Y.detail,children:[t.jsxs("div",{className:Y.detailHeader,children:[t.jsx("div",{className:Y.detailTitle,children:s("Google Consent Mode v2","cookie-notice")}),g==="pro"&&t.jsx(Un,{})]}),!g&&t.jsx(As,{signals:Ts(i,"google")}),t.jsx("p",{className:Y.detailDesc,children:s("If you use Google Analytics, Google Ads, or Tag Manager, this tells Google how to handle your visitors’ data based on whether they consented. Required for GDPR compliance with Google tools.","cookie-notice")}),g?t.jsx(zi,{locked:g,platformName:s("Google","cookie-notice"),onUpgrade:v}):t.jsxs(t.Fragment,{children:[t.jsx(Eo,{label:i.googleEnabled?s("Enabled","cookie-notice"):s("Disabled","cookie-notice"),checked:i.googleEnabled,onChange:_=>c("googleEnabled",_)}),i.googleEnabled&&t.jsxs("div",{className:Y.signalConfig,children:[t.jsx("div",{className:Y.signalConfigTitle,children:s("Signal mapping","cookie-notice")}),k.map(_=>t.jsxs("div",{children:[t.jsx("div",{className:Y.familyTitle,children:_.title}),t.jsx("p",{className:Y.groupHint,children:_.hint}),t.jsx("div",{className:Y.advancedGrid,children:_.signals.map(([b,A])=>t.jsxs("div",{className:Y.advancedRow,children:[t.jsx("span",{className:Y.advancedLabel,children:b}),t.jsx("select",{className:Y.groupSelect,value:i[A],onChange:C=>c(A,Number(C.target.value)),children:Ri(u,i[A]).map(C=>t.jsx("option",{value:C.value,children:C.label},C.value))})]},A))})]},_.title)),t.jsx("div",{className:Y.familyTitle,children:s("Security","cookie-notice")}),t.jsx("p",{className:Y.groupHint,children:s("security_storage — default: Content Personalization. Choose Basic Operations only if this storage really is strictly necessary on your site (for example authentication or fraud prevention): it is then granted for every visitor without consent, including visitors who refuse or send Global Privacy Control.","cookie-notice")}),t.jsx("div",{className:Y.advancedGrid,children:t.jsx(q3,{value:i.googleSecurityStorage,onChange:_=>c("googleSecurityStorage",_),consentChoices:u})})]})]}),t.jsx(Mi,{onApply:x,hasChanges:h,saving:p,savedFlash:m,locked:g})]})}function Z3({staged:i,set:c,consentChoices:u,proLocked:d,saving:p,hasChanges:h,savedFlash:m,onApply:x,onUpgrade:v}){return t.jsxs("div",{className:Y.detail,children:[t.jsxs("div",{className:Y.detailHeader,children:[t.jsx("div",{className:Y.detailTitle,children:s("Facebook","cookie-notice")}),d==="pro"&&t.jsx(Un,{})]}),!d&&t.jsx(As,{signals:Ts(i,"facebook")}),t.jsx("p",{className:Y.detailDesc,children:s("Stops the Meta Pixel from tracking your visitors until they agree. Without this, Facebook can receive data about visitors who never consented — a GDPR violation if you serve EU visitors.","cookie-notice")}),d?t.jsx(zi,{locked:d,platformName:s("Facebook","cookie-notice"),onUpgrade:v}):t.jsxs(t.Fragment,{children:[t.jsx(Eo,{label:i.facebookEnabled?s("Enabled","cookie-notice"):s("Disabled","cookie-notice"),checked:i.facebookEnabled,onChange:g=>c("facebookEnabled",g)}),i.facebookEnabled&&t.jsxs("div",{className:Y.signalConfig,children:[t.jsx("div",{className:Y.signalConfigTitle,children:s("Signal mapping","cookie-notice")}),t.jsxs("div",{className:Y.groupRow,children:[t.jsx("span",{className:Y.groupLabel,children:s("Grant Pixel at","cookie-notice")}),t.jsx("select",{className:Y.groupSelect,value:i.facebookConsent,onChange:g=>c("facebookConsent",Number(g.target.value)),children:Ri(u,i.facebookConsent).map(g=>t.jsx("option",{value:g.value,children:g.label},g.value))})]}),t.jsx("p",{className:Y.groupHint,children:s("Default: Ad Personalization.","cookie-notice")})]})]}),t.jsx(Mi,{onApply:x,hasChanges:h,saving:p,savedFlash:m,locked:d})]})}function X3({staged:i,set:c,consentChoices:u,proLocked:d,saving:p,hasChanges:h,savedFlash:m,onApply:x,onUpgrade:v}){return t.jsxs("div",{className:Y.detail,children:[t.jsxs("div",{className:Y.detailHeader,children:[t.jsx("div",{className:Y.detailTitle,children:s("Microsoft","cookie-notice")}),d==="pro"&&t.jsx(Un,{})]}),!d&&t.jsx(As,{signals:Ts(i,"microsoft")}),t.jsx("p",{className:Y.detailDesc,children:s("Keeps Microsoft Advertising (Bing) and Clarity analytics compliant with consent rules. Trackers only fire after visitors agree.","cookie-notice")}),d?t.jsx(zi,{locked:d,platformName:s("Microsoft","cookie-notice"),onUpgrade:v}):t.jsxs(t.Fragment,{children:[t.jsx(Eo,{label:i.microsoftEnabled?s("Enabled","cookie-notice"):s("Disabled","cookie-notice"),checked:i.microsoftEnabled,onChange:g=>c("microsoftEnabled",g)}),i.microsoftEnabled&&t.jsxs("div",{className:Y.signalConfig,children:[t.jsx("div",{className:Y.signalConfigTitle,children:s("Signal mapping","cookie-notice")}),t.jsxs("div",{className:Y.groupRow,children:[t.jsx("span",{className:Y.groupLabel,children:s("Advertising (UET)","cookie-notice")}),t.jsx("select",{className:Y.groupSelect,value:i.microsoftAdStorage,onChange:g=>c("microsoftAdStorage",Number(g.target.value)),children:Ri(u,i.microsoftAdStorage).map(g=>t.jsx("option",{value:g.value,children:g.label},g.value))})]}),t.jsxs("div",{className:Y.groupRow,style:{marginTop:8},children:[t.jsx("span",{className:Y.groupLabel,children:s("Analytics","cookie-notice")}),t.jsx("select",{className:Y.groupSelect,value:i.microsoftAnalyticsStorage,onChange:g=>c("microsoftAnalyticsStorage",Number(g.target.value)),children:Ri(u,i.microsoftAnalyticsStorage).map(g=>t.jsx("option",{value:g.value,children:g.label},g.value))})]}),t.jsxs("div",{className:Y.subToggles,children:[t.jsx("div",{className:Y.subToggleTitle,children:s("Sub-products","cookie-notice")}),t.jsxs("label",{className:Y.subToggleRow,children:[t.jsx("input",{type:"checkbox",checked:i.microsoftPixie,onChange:g=>c("microsoftPixie",g.target.checked)}),t.jsx("span",{children:s("Pixie","cookie-notice")})]}),t.jsxs("label",{className:Y.subToggleRow,children:[t.jsx("input",{type:"checkbox",checked:i.microsoftClarity,onChange:g=>c("microsoftClarity",g.target.checked)}),t.jsx("span",{children:s("Clarity","cookie-notice")})]})]})]})]}),t.jsx(Mi,{onApply:x,hasChanges:h,saving:p,savedFlash:m,locked:d})]})}function J3({staged:i,set:c,saving:u,hasChanges:d,savedFlash:p,onApply:h,proLocked:m,onUpgrade:x,grandfathered:v}){const g=i.gpcBannerMode||"passive";return t.jsxs("div",{className:Y.detail,children:[t.jsxs("div",{className:Y.detailHeader,children:[t.jsx("div",{className:Y.detailTitle,children:s("Global Privacy Control (GPC)","cookie-notice")}),m==="pro"&&t.jsx(Un,{})]}),m?t.jsxs(t.Fragment,{children:[t.jsx("p",{className:Y.detailDesc,children:"Honors visitors who’ve told their browser they don’t want to be tracked. Required for CCPA / CPRA compliance."}),t.jsx(zi,{locked:m,platformName:"Global Privacy Control",onUpgrade:x}),t.jsx(Mi,{onApply:h,hasChanges:d,saving:u,savedFlash:p,locked:m})]}):t.jsxs(t.Fragment,{children:[t.jsx(Eo,{label:i.gpcEnabled?s("Enabled","cookie-notice"):s("Disabled","cookie-notice"),checked:i.gpcEnabled,onChange:k=>c("gpcEnabled",k)}),v&&t.jsx("p",{className:Y.detailDesc,style:{marginTop:8,fontStyle:"italic"},children:s("GPC is now a Pro feature. Your site keeps it because it was already enabled. If you turn it off, you’ll need Pro to re-enable it.","cookie-notice")}),i.gpcEnabled&&t.jsxs("fieldset",{style:{marginTop:16,padding:0,border:0},children:[t.jsx("legend",{className:Y.detailDesc,style:{padding:0,marginBottom:8,fontWeight:600},children:s("When GPC fires, what should visitors see?","cookie-notice")}),G3().map(k=>t.jsxs("label",{style:{display:"flex",alignItems:"flex-start",gap:8,padding:"6px 0",cursor:"pointer"},children:[t.jsx("input",{type:"radio",name:"gpcBannerMode",value:k.value,checked:g===k.value,onChange:()=>c("gpcBannerMode",k.value),style:{marginTop:3}}),t.jsxs("span",{children:[t.jsx("span",{style:{fontWeight:500},children:k.label}),t.jsx("span",{className:Y.detailDesc,style:{display:"block",marginTop:2},children:k.help})]})]},k.value))]}),t.jsx("p",{className:Y.detailDesc,style:{marginTop:16},children:s("Some visitors set their browser to automatically opt out of tracking. This setting respects that choice — and it’s legally required in California (CPRA). When a visitor sends this signal, tracking is blocked automatically.","cookie-notice")}),t.jsx("div",{className:Y.detailFooter,children:t.jsx(Ue,{variant:"primary",size:"sm",onClick:h,disabled:!d||u,children:s(u?"Applying…":p?"Saved ✓":"Apply","cookie-notice")})})]})]})}function ep({staged:i,set:c,saving:u,hasChanges:d,savedFlash:p,onApply:h}){return t.jsxs("div",{className:Y.detail,children:[t.jsx("div",{className:Y.detailHeader,children:t.jsx("div",{className:Y.detailTitle,children:s("Do Not Track (DNT)","cookie-notice")})}),t.jsx("p",{className:Y.detailDesc,style:{color:"#b56e00",marginBottom:12},children:s("Do Not Track is an older browser setting that most sites ignore. Enabling this is a good-faith gesture but isn’t required by any law. When a visitor has DNT enabled, tracking is blocked automatically.","cookie-notice")}),t.jsx(Eo,{label:i.doNotTrack?s("Enabled","cookie-notice"):s("Disabled","cookie-notice"),checked:i.doNotTrack,onChange:m=>c("doNotTrack",m)}),t.jsx("p",{className:Y.detailDesc,style:{marginTop:12},children:s("When enabled, visitors with DNT set receive Private (level 1) consent automatically.","cookie-notice")}),t.jsx("div",{className:Y.detailFooter,children:t.jsx(Ue,{variant:"primary",size:"sm",onClick:h,disabled:!d||u,children:s(u?"Applying…":p?"Saved ✓":"Apply","cookie-notice")})})]})}function Fl({isOpen:i,onClose:c,isWizard:u=!1,addNotice:d,onOpenPricingModal:p,onApplied:h,scrollTrigger:m}){var xe;const{config:x,refetchConfig:v}=wt(),{dashboard:g}=Mn(),{tier:k}=Ze(),_=(x==null?void 0:x.blocking)||{},b=(x==null?void 0:x.config)||{},A=((xe=g==null?void 0:g.appConfig)==null?void 0:xe.consentChoices)??3,[C,D]=w.useState({}),[P,E]=w.useState("google"),[I,R]=w.useState(!1),[O,te]=w.useState(null),[J,B]=w.useState(!1),X=w.useRef(null),q={flags:Rl(C),config:Al(C)},W=!!O&&JSON.stringify(q)!==JSON.stringify(O),ne=w.useRef(!1),le=w.useRef(!1),[he,M]=w.useState(!1);if(w.useEffect(()=>{if(!(u?x:i)){ne.current=!1,M(!1);return}if(ne.current&&le.current){M(!0);return}const F=Y3(_,b);D(F),te({flags:Rl(F),config:Al(F)}),E("google"),ne.current=!0,M(!1)},[u?x:i,x]),w.useEffect(()=>{le.current=W}),!u&&!i)return null;const me=(F,H)=>D(de=>({...de,[F]:H})),_e=async()=>{R(!0),B(!1);try{await gs(zl(q.flags,O==null?void 0:O.flags),{},zl(q.config,O==null?void 0:O.config)),te(q),h&&h({google:C.googleEnabled,facebook:C.facebookEnabled,microsoft:C.microsoftEnabled,gpc:C.gpcEnabled,dnt:C.doNotTrack}),B(!0),clearTimeout(X.current),X.current=setTimeout(()=>B(!1),2e3),v()}catch(F){d&&d((F==null?void 0:F.message)||s("Could not save — please try again.","cookie-notice"))}finally{R(!1)}},ke=kl(),U=k==="pro",ee=!!b.gpcSupportMode,Q=F=>F.key==="gpc"&&F.pro&&!U&&!ee||F.pro&&!U&&F.key!=="gpc"?"pro":F.key==="google"&&ke?"threshold":!1,S={google:C.googleEnabled,facebook:C.facebookEnabled,microsoft:C.microsoftEnabled,gpc:C.gpcEnabled,dnt:C.doNotTrack},$=t.jsxs(t.Fragment,{children:[he&&t.jsx("div",{className:Y.remoteChangedNotice,role:"status",children:s("These settings were updated elsewhere while this panel was open — in the Admin Portal, or by another user. Your unsaved edits have been kept. Reload the page to see the newer values.","cookie-notice")}),t.jsxs("div",{className:Y.layout,children:[t.jsxs("div",{className:Y.modeList,children:[t.jsxs("div",{className:Y.modeSection,children:[t.jsx("div",{className:Y.modeSectionLabel,children:s("Ad Platforms","cookie-notice")}),St().filter(F=>F.group==="platform").map(F=>{const H=Q(F);return t.jsxs("button",{className:Y.modeCard+(P===F.key?" "+Y.modeCardActive:"")+(H?" "+Y.modeCardLocked:""),onClick:()=>E(F.key),type:"button",children:[t.jsxs("div",{className:Y.modeCardTop,children:[t.jsx("span",{className:Y.modeCardName,children:F.name}),H==="pro"?t.jsx(Un,{}):t.jsx(Ml,{enabled:S[F.key]})]}),t.jsx("div",{className:Y.modeCardDesc,children:F.description}),H&&!Re()&&t.jsxs("div",{className:Y.modeCardProOverlay,role:"button",tabIndex:0,onClick:de=>{de.stopPropagation(),p&&p()},onKeyDown:de=>{(de.key==="Enter"||de.key===" ")&&(de.stopPropagation(),p&&p())},"aria-label":H==="pro"?`${F.name} requires Pro.`:`${F.name} paused — visit limit reached. Upgrade for unlimited visits.`,children:[t.jsx("span",{className:Y.lockIconLarge,children:"🔒"}),t.jsx("span",{className:Y.modeCardProLabel,children:H==="pro"?"Upgrade to Pro →":"Visit limit reached →"})]})]},F.key)})]}),t.jsxs("div",{className:Y.modeSection,children:[t.jsx("div",{className:Y.modeSectionLabel,children:s("Browser Signals","cookie-notice")}),St().filter(F=>F.group==="browser").map(F=>t.jsxs("button",{className:Y.modeCard+(P===F.key?" "+Y.modeCardActive:""),onClick:()=>E(F.key),type:"button",children:[t.jsxs("div",{className:Y.modeCardTop,children:[t.jsx("span",{className:Y.modeCardName,children:F.name}),t.jsx(Ml,{enabled:S[F.key]})]}),t.jsx("div",{className:Y.modeCardDesc,children:F.description})]},F.key))]})]}),t.jsxs("div",{className:Y.detailCol,children:[P==="google"&&t.jsx(Q3,{staged:C,set:me,consentChoices:A,proLocked:Q(St().find(F=>F.key==="google")),saving:I,hasChanges:W,savedFlash:J,onApply:_e,onUpgrade:()=>p&&p()}),P==="facebook"&&t.jsx(Z3,{staged:C,set:me,consentChoices:A,proLocked:Q(St().find(F=>F.key==="facebook")),saving:I,hasChanges:W,savedFlash:J,onApply:_e,onUpgrade:()=>p&&p()}),P==="microsoft"&&t.jsx(X3,{staged:C,set:me,consentChoices:A,proLocked:Q(St().find(F=>F.key==="microsoft")),saving:I,hasChanges:W,savedFlash:J,onApply:_e,onUpgrade:()=>p&&p()}),P==="gpc"&&t.jsx(J3,{staged:C,set:me,proLocked:Q(St().find(F=>F.key==="gpc")),grandfathered:ee,saving:I,hasChanges:W,savedFlash:J,onApply:_e,onUpgrade:()=>p&&p()}),P==="dnt"&&t.jsx(ep,{staged:C,set:me,saving:I,hasChanges:W,savedFlash:J,onApply:_e})]})]})]}),ie=St().filter(F=>S[F.key]).map(F=>F.shortName),ue=ie.length>0?je(s("%1$d enabled: %2$s","cookie-notice"),ie.length,ie.join(", ")):s("No consent signals enabled","cookie-notice"),ge=t.jsxs(t.Fragment,{children:[t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[t.jsx("a",{href:`${sn}/#/configuration`,target:"_blank",rel:"noreferrer",className:"cn-layer__link-btn",children:"Advanced settings in Admin Portal →"}),t.jsxs("span",{style:{fontSize:"var(--cn-text-sm)",color:ie.length>0?"var(--cn-ok-icon)":"var(--cn-off-val)"},children:[ie.length>0?"✓ ":"",ue]})]}),t.jsx(Ue,{variant:"primary",onClick:c,children:s("Done","cookie-notice")})]});return u?$:t.jsx(Ls,{title:s("Consent Signals","cookie-notice"),onClose:c,scrollTrigger:m,footer:ge,children:$})}let Gt;function np(i){if(Gt===void 0)try{Gt=localStorage.getItem(i)==="1",Gt&&localStorage.removeItem(i)}catch{Gt=!1}return Gt}function tp({addNotice:i,onOpenWelcomeModal:c,onOpenPricingModal:u,onTabChange:d}){var ge,xe,F,H,de,Ve;const{tier:p,isPro:h}=Ze(),{dashboard:m,scorecardStatus:x}=Mn(),{showLawWizard:v,lawScrollTrigger:g,lawClosing:k,closeLawWizard:_,openLawWizard:b,showConsentPanel:A,consentScrollTrigger:C,consentClosing:D,closeConsentPanel:P,openConsentPanel:E}=ki(),[I,R]=w.useState(((xe=(ge=window.cnReactData)==null?void 0:ge.options)==null?void 0:xe.app_id)||""),[O,te]=w.useState(((H=(F=window.cnReactData)==null?void 0:F.options)==null?void 0:H.app_key)||""),[J,B]=w.useState(!1),[X,q]=w.useState(""),W=async()=>{B(!0),q("");try{await ml({app_id:I,app_key:O});try{const De=await gn("sync_config");if(De!=null&&De.success){try{await ms()}catch{}try{localStorage.setItem(ls(I),"1"),localStorage.setItem(us(I),"1")}catch{}}}catch{}I?Bt():window.location.reload()}catch(De){q(De.message||s("Save failed","cookie-notice")),B(!1)}},ne=(m==null?void 0:m.appConfig)||{},le=bs(),he=Lo(),M=Ai(),me=w2((de=window.cnReactData)==null?void 0:de.app_id),[_e,ke]=w.useState(()=>p!=="banner_only"&&np(me));if(M)return t.jsxs(In,{sidebar:t.jsx(Wt,{addNotice:i}),children:[t.jsx("div",{className:"cn-protection-header",children:t.jsx("h1",{className:"cn-protection-header__title",children:s("Overview","cookie-notice")})}),t.jsx(ss,{})]});if(p==="banner_only"){const De=Re();return t.jsxs(In,{sidebar:t.jsxs(t.Fragment,{children:[t.jsxs(On,{title:s("Domain Info","cookie-notice"),children:[t.jsxs("div",{className:"cn-dom-rows",children:[t.jsxs("div",{className:"cn-dom-row",children:[t.jsx("span",{className:"cn-dom-row__k",children:s("Domain","cookie-notice")}),t.jsx("span",{className:"cn-dom-row__v",children:window.location.hostname})]}),t.jsxs("div",{className:"cn-dom-row",children:[t.jsx("span",{className:"cn-dom-row__k",children:s("Status","cookie-notice")}),t.jsxs("span",{className:"cn-dom-row__v",children:[t.jsx("span",{className:"cn-dot cn-dot--gray"})," ",s(De?"Managed by network":"Not connected","cookie-notice")]})]})]}),!De&&t.jsxs(t.Fragment,{children:[t.jsx(Ce,{label:s("App ID","cookie-notice"),value:I,onChange:R,placeholder:s("Your application ID","cookie-notice"),autoComplete:"off"}),t.jsx(Ce,{label:s("App Secret Key","cookie-notice"),type:"password",value:O,onChange:te,placeholder:s("Your App Secret Key","cookie-notice"),autoComplete:"new-password"}),t.jsx(Ns,{}),t.jsxs("p",{className:"cn-conn-hint cn-conn-hint--returning",children:[s("Already have an account?","cookie-notice")," ",t.jsx("a",{href:sn,target:"_blank",rel:"noopener noreferrer",children:s("Find your App ID and App Secret Key at app.hu-manity.co","cookie-notice")})]}),X&&t.jsx("div",{className:"cn-conn-error",children:X}),t.jsx(Ue,{variant:"primary",onClick:W,disabled:J,children:s(J?"Saving…":"Connect Your Site","cookie-notice")})]})]}),!De&&t.jsxs(On,{title:s("What you get with compliance","cookie-notice"),children:[t.jsxs("ul",{className:"cn-benefit-list",children:[t.jsxs("li",{className:"cn-benefit-item",children:[t.jsx("span",{className:"cn-benefit-icon",children:"✓"}),t.jsx("span",{children:s("Stop tracking scripts from firing before visitors agree","cookie-notice")})]}),t.jsxs("li",{className:"cn-benefit-item",children:[t.jsx("span",{className:"cn-benefit-icon",children:"✓"}),t.jsx("span",{children:s("Build a legal evidence trail regulators can verify","cookie-notice")})]}),t.jsxs("li",{className:"cn-benefit-item",children:[t.jsx("span",{className:"cn-benefit-icon",children:"✓"}),t.jsx("span",{children:s("Cover GDPR, CCPA, and 40+ global regulations automatically","cookie-notice")})]}),t.jsxs("li",{className:"cn-benefit-item",children:[t.jsx("span",{className:"cn-benefit-icon",children:"✓"}),t.jsx("span",{children:s("Real compliance in under 60 seconds — free to start","cookie-notice")})]})]}),t.jsxs("div",{className:"cn-connect-cta",children:[t.jsxs("button",{type:"button",className:"cn-button cn-button--primary cn-button--block",onClick:()=>c&&c(),children:[s("Connect Your Site","cookie-notice")," →"]}),t.jsx("div",{className:"cn-connect-cta__caption",children:s("No credit card required","cookie-notice")})]})]})]}),children:[De?t.jsx(rs,{}):t.jsx(v3,{onActivate:()=>c&&c()}),t.jsx(Ss,{requiredTier:"free",message:s("Script blocking, consent records, regulatory alerts & more","cookie-notice"),onCta:c,children:t.jsx("div",{className:"cn-pro-gate-placeholder",children:t.jsx("div",{className:"cn-placeholder-charts"})})})]})}const U=Re(),ee=U?null:(m==null?void 0:m.scorecard)||null,Q=((Ve=window.cnReactData)==null?void 0:Ve.siteUrl)||"",S=Q?`${Q}?cn_preview=1`:"",$=jl(ne.regulations),ie=!!m&&((ee==null?void 0:ee.state)==="no_laws"||$.length===0),ue=De=>{d&&(d("settings"),setTimeout(()=>{const Ao=document.getElementById(De);Ao&&Ao.scrollIntoView({behavior:"smooth",block:"start"})},80))};return t.jsxs(In,{sidebar:t.jsx(Wt,{addNotice:i}),children:[t.jsx("div",{className:"cn-protection-header",children:t.jsx("h1",{className:"cn-protection-header__title",children:s("Overview","cookie-notice")})}),t.jsxs(as,{managed:U,children:[_e&&he==="live"&&t.jsxs("div",{className:"cn-inline-notice cn-inline-notice--success",children:[t.jsxs("div",{className:"cn-inline-notice__message",children:[t.jsxs("strong",{children:["✓"," ",s("Your banner is live.","cookie-notice")]})," ",s("Visitors now see your banner, and your chosen laws and languages are active.","cookie-notice")]}),t.jsxs("div",{className:"cn-inline-notice__actions",children:[S&&t.jsxs("a",{className:"cn-layer__link-btn",href:S,target:"_blank",rel:"noreferrer",children:[s("Preview your live banner","cookie-notice")," →"]}),t.jsx("button",{type:"button",className:"cn-layer__link-btn",onClick:()=>{Gt=!1,ke(!1)},children:s("Dismiss","cookie-notice")})]})]}),t.jsx($3,{initialLaws:$,onOpenPricingModal:u}),!U&&t.jsx(S3,{scorecard:ee,status:x,blockingState:le,widgetState:he,isPro:h,siteUrl:Q,actions:{banner:()=>ue("cn-banner-panel-title"),autoblocking:()=>ue("cn-compliance-behavior"),signals:()=>E(),pricing:u}}),!U&&t.jsx(C3,{dashboard:m,isFree:p==="free",onOpenConsentLogs:d?()=>d("audit-trail"):null}),t.jsx(P3,{noLaws:ie,isPro:h,managed:U,onOpenLaws:()=>b(),onOpenSignals:()=>E(),onOpenPricing:u,onOpenPrivacy:d?()=>d("privacy-consent"):null}),A&&t.jsx(Fl,{isOpen:!0,onClose:P,addNotice:i,onOpenPricingModal:u,onApplied:()=>{},scrollTrigger:C,isClosing:D}),v&&t.jsx(Tl,{onClose:_,scrollTrigger:g,isClosing:k})]})]})}function Il(){var E,I;const{tier:i}=Ze(),{dashboard:c}=Mn(),[u,d]=w.useState(()=>new Set),p=w.useCallback(R=>{d(O=>new Set([...O,R]))},[]),h=((E=window.cnReactData)==null?void 0:E.notificationRules)||[],m=c===null,x=(I=c==null?void 0:c.analytics)==null?void 0:I.cycleUsage,v=(x==null?void 0:x.visits)||0,g=(x==null?void 0:x.threshold)||0,k=g>0?v/g*100:0,_=g>0?g:i==="free"?1e3:0,b=kl(),A=i==="free"&&g>0&&v>=g*.7&&v<g,C=w.useMemo(()=>{var O,te,J;if(m)return{};const R={};for(const B of h){if((O=B.condition)!=null&&O.tier&&B.condition.tier!==i)continue;if((te=B.condition)!=null&&te.usagePercent){const[q,W]=B.condition.usagePercent;if(q!==null&&k<q||W!==null&&k>=W)continue}if(((J=B.condition)==null?void 0:J.thresholdExceeded)!==void 0&&B.condition.thresholdExceeded!==b||u.has(B.id))continue;const X=R[B.slot];(!X||B.priority>X.priority)&&(R[B.slot]=B)}return R},[m,h,i,k,b,u]);function D(R){return R&&R.replace(/\{sessionTotal\}/g,_.toLocaleString()).replace(/\{sessionUsed\}/g,v.toLocaleString()).replace(/\{usagePercent\}/g,String(Math.round(k)))}function P(R){return R?{...R,title:D(R.title),description:D(R.description),headline:D(R.headline)}:null}return{topBar:P(C.topBar||null),sidebar:P(C.sidebar||null),dismiss:p,thresholdLocked:b,isNearLimit:A}}function op({onOpenPricingModal:i}){const{sidebar:c}=Il();return!c||Re()?null:t.jsx(On,{title:s("Upgrade to Pro","cookie-notice"),children:t.jsxs("div",{className:"cn-upsell-card",children:[t.jsx("p",{className:"cn-upsell-card__headline",children:c.headline}),t.jsx("ul",{className:"cn-upsell-card__features",children:c.features.map(u=>t.jsx("li",{children:u},u))}),t.jsx("button",{type:"button",className:"cn-button cn-button--upgrade cn-button--sm cn-upsell-card__cta",onClick:()=>i&&i(),children:c.cta.label})]})})}const ip=()=>[{key:"top",label:s("Top","cookie-notice"),posClass:"pos-top"},{key:"bottom",label:s("Bottom","cookie-notice"),posClass:"pos-bottom"}],rp=()=>[{key:"top",label:s("Top","cookie-notice"),posClass:"pos-top"},{key:"bottom",label:s("Bottom","cookie-notice"),posClass:"pos-bottom"},{key:"left",label:s("Left","cookie-notice"),posClass:"pos-left"},{key:"right",label:s("Right","cookie-notice"),posClass:"pos-right"},{key:"center",label:s("Popup","cookie-notice"),posClass:"pos-center",proOnly:!0}];function sp({options:i,update:c,save:u,loading:d,saved:p,error:h}){const{isBannerOnly:m,isPro:x}=Ze(),v=m?ip():rp(),[g,k]=w.useState(!1),[_,b]=w.useState(!1),[A,C]=w.useState(""),[D,P]=w.useState(!1),[E,I]=w.useState(i.displayType||"fixed"),R=q=>{const W=i.position||"bottom";q!==W&&(m?(c("position",q),k(!0)):(b(!0),C(""),P(!1),gs({position:q,displayType:E}).then(()=>{P(!0),c("position",q)}).catch(ne=>C(ne.message||"Save failed.")).finally(()=>b(!1))))},O=q=>{q!==E&&(I(q),m?(c("displayType",q),k(!0)):(b(!0),C(""),P(!1),gs({position:i.position||"bottom",displayType:q}).then(()=>{P(!0),c("displayType",q)}).catch(W=>C(W.message||"Save failed.")).finally(()=>b(!1))))};w.useEffect(()=>{g&&m&&(k(!1),u())},[i.position,i.displayType,g,u,m]);const te=i.position||"bottom",J=m?d:_,B=m?p:D,X=m?h:A;return t.jsxs("div",{className:"cn-banner-selector",children:[t.jsxs("div",{className:"cn-banner-selector__header",children:[t.jsx("span",{className:"cn-section-label",children:s("Banner Position","cookie-notice")}),B&&t.jsx("span",{className:"cn-saved-indicator",children:"✓ Saved"}),X&&t.jsx("span",{className:"cn-error-indicator",children:X})]}),!m&&t.jsx(t.Fragment,{children:t.jsxs("div",{className:"cn-banner-selector__toggle-row",children:[t.jsx("span",{className:"cn-banner-selector__size-label",children:s("Banner Size","cookie-notice")}),t.jsxs("div",{className:"cn-banner-selector__size-opts",children:[t.jsx("button",{className:`cn-banner-selector__size-opt${E==="floating"?" cn-banner-selector__size-opt--on":""}`,onClick:()=>O("floating"),children:s("Floating","cookie-notice")}),t.jsx("button",{className:`cn-banner-selector__size-opt${E==="fixed"?" cn-banner-selector__size-opt--on":""}`,onClick:()=>O("fixed"),children:s("Fixed","cookie-notice")})]}),t.jsx("span",{className:"cn-banner-selector__size-desc",children:E==="floating"?"Fills only as much space as necessary.":"Expands to fill all available space."})]})}),t.jsx("div",{className:`cn-banner-selector__grid${!m&&E==="floating"?" cn-banner-selector__grid--floating":""}`,children:v.map(q=>{const W=q.proOnly&&!x;return t.jsxs("div",{className:"cn-banner-selector__card"+(te===q.key?" cn-banner-selector__card--active":"")+(J&&!W?" cn-banner-selector__card--saving":"")+(W?" cn-banner-selector__card--locked":""),onClick:()=>!W&&R(q.key),title:W?"Upgrade to Pro to use the Popup position":void 0,children:[W&&t.jsx("span",{className:"cn-banner-selector__pro-badge",children:t.jsx(Un,{})}),t.jsx("div",{className:"cn-banner-selector__thumb",children:t.jsx("div",{className:`cn-banner-selector__pos ${q.posClass}${W?" cn-banner-selector__pos--locked":""}`})}),t.jsxs("div",{className:"cn-banner-selector__meta",children:[t.jsx("span",{className:"cn-banner-selector__name",children:q.label}),te===q.key&&!W&&t.jsx("span",{className:"cn-banner-selector__active-pill",children:s("Active","cookie-notice")}),W&&t.jsx("span",{className:"cn-banner-selector__locked-label",children:s("Pro only","cookie-notice")})]})]},q.key)})}),!m&&t.jsx("div",{className:"cn-banner-selector__portal-link",children:t.jsx("a",{href:`${sn}/#/configuration`,target:"_blank",rel:"noopener noreferrer",children:"Customize in Admin Portal →"})})]})}const Rs={size:24,color:"currentColor"};function vn({size:i,color:c,className:u,style:d}={},p){return{xmlns:"http://www.w3.org/2000/svg",width:i||Rs.size,height:i||Rs.size,viewBox:"0 0 24 24",fill:"none",stroke:c||Rs.color,strokeWidth:1.75,strokeLinecap:"round",strokeLinejoin:"round",className:u||"",style:d,...p}}function ap(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("path",{d:"M12 2L3 6v5.5c0 4.5 3.8 8.7 9 10 5.2-1.3 9-5.5 9-10V6l-9-4z"}),t.jsx("polyline",{points:"8.5 12 11 14.5 15.5 9.5"})]})}function cp(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("circle",{cx:"12",cy:"12",r:"10"}),t.jsx("ellipse",{cx:"12",cy:"12",rx:"4",ry:"10"}),t.jsx("line",{x1:"2",y1:"12",x2:"22",y2:"12"})]})}function lp(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("rect",{x:"4",y:"14",width:"4",height:"7",rx:"1"}),t.jsx("rect",{x:"10",y:"9",width:"4",height:"12",rx:"1"}),t.jsx("rect",{x:"16",y:"4",width:"4",height:"17",rx:"1"})]})}function Ol(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("rect",{x:"5",y:"2",width:"14",height:"20",rx:"2"}),t.jsx("line",{x1:"9",y1:"8",x2:"15",y2:"8"}),t.jsx("line",{x1:"9",y1:"12",x2:"15",y2:"12"}),t.jsx("line",{x1:"9",y1:"16",x2:"13",y2:"16"})]})}function zs(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("rect",{x:"5",y:"11",width:"14",height:"10",rx:"2"}),t.jsx("path",{d:"M8 11V7a4 4 0 0 1 8 0v4"})]})}function Ul(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("circle",{cx:"12",cy:"12",r:"10"}),t.jsx("path",{d:"M9 12l2 2 4-4"})]})}function Bl(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}),t.jsx("line",{x1:"12",y1:"9",x2:"12",y2:"13"}),t.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]})}function up(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("circle",{cx:"12",cy:"12",r:"3"}),t.jsx("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09a1.65 1.65 0 0 0-1.08-1.51 1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09a1.65 1.65 0 0 0 1.51-1.08 1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1.08z"})]})}function dp(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("line",{x1:"12",y1:"3",x2:"12",y2:"21"}),t.jsx("line",{x1:"9",y1:"21",x2:"15",y2:"21"}),t.jsx("line",{x1:"3.5",y1:"8",x2:"20.5",y2:"8"}),t.jsx("line",{x1:"3.5",y1:"8",x2:"3.5",y2:"13"}),t.jsx("path",{d:"M1.5 13Q3.5 16.5 5.5 13"}),t.jsx("line",{x1:"20.5",y1:"8",x2:"20.5",y2:"13"}),t.jsx("path",{d:"M18.5 13Q20.5 16.5 22.5 13"})]})}function pp(i){return t.jsx("svg",{...vn(i),children:t.jsx("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"})})}function fp(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("rect",{x:"2",y:"2",width:"20",height:"16",rx:"2.5"}),t.jsx("line",{x1:"2",y1:"13",x2:"22",y2:"13"}),t.jsx("line",{x1:"6",y1:"7",x2:"11",y2:"7"}),t.jsx("line",{x1:"6",y1:"10",x2:"9",y2:"10"}),t.jsx("rect",{x:"14",y:"14.5",width:"5",height:"2",rx:"1",fill:"currentColor",stroke:"none"}),t.jsx("line",{x1:"4",y1:"15.5",x2:"10",y2:"15.5"})]})}function hp(i){return t.jsx("svg",{...vn(i),children:t.jsx("polyline",{points:"6 9 12 15 18 9"})})}function mp(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("path",{d:"M7 15l5 5 5-5"}),t.jsx("path",{d:"M7 9l5-5 5 5"})]})}function Kn({title:i,subtitle:c,defaultOpen:u=!1,children:d}){return t.jsxs("details",{className:"cn-accordion",open:u||void 0,children:[t.jsxs("summary",{className:"cn-accordion__summary",children:[t.jsxs("div",{className:"cn-accordion__left",children:[t.jsx("span",{className:"cn-accordion__title",children:i}),c&&t.jsx("span",{className:"cn-accordion__subtitle",children:c})]}),t.jsx("span",{className:"cn-accordion__chevron",children:t.jsx(hp,{size:16})})]}),t.jsx("div",{className:"cn-accordion__body",children:d})]})}function Ms({label:i,value:c,onChange:u}){const d=`cn-color-${i==null?void 0:i.toLowerCase().replace(/\s+/g,"-")}`;return t.jsxs("div",{className:"cn-form-field",children:[i&&t.jsx("label",{className:"cn-form-field__label",htmlFor:d,children:i}),t.jsxs("div",{className:"cn-color-picker__row",children:[t.jsx("input",{type:"color",className:"cn-color-picker__swatch",value:c||"#000000",onChange:p=>u==null?void 0:u(p.target.value)}),t.jsx("input",{id:d,type:"text",className:"cn-form-field__input",value:c||"",onChange:p=>u==null?void 0:u(p.target.value),placeholder:"#000000",style:{flex:1}})]})]})}const gp=()=>[{value:"bottom",label:s("Bottom","cookie-notice")},{value:"top",label:s("Top","cookie-notice")}],vp=()=>[{value:"fade",label:s("Fade","cookie-notice")},{value:"slide",label:s("Slide","cookie-notice")},{value:"none",label:s("None","cookie-notice")}];function Fi({label:i,value:c}){return t.jsxs("div",{className:"cn-form-readonly",children:[t.jsx("label",{className:"cn-form-readonly__label",children:i}),t.jsx("span",{className:"cn-form-readonly__value",children:c||s("(default)","cookie-notice")}),t.jsxs("a",{href:`${sn}/#/configuration`,target:"_blank",rel:"noreferrer",className:"cn-form-readonly__link",children:[s("Edit text in Admin Portal","cookie-notice")," →"]})]})}function yp({options:i,update:c,updateNested:u}){const d=i.colors||{};i.see_more_opt;const{isConnected:p,isBannerOnly:h}=Ze();return t.jsx(Kn,{title:s("Banner Design","cookie-notice"),subtitle:s("Texts, colors, position, and animation","cookie-notice"),defaultOpen:!0,children:t.jsxs("div",{className:"cn-banner-design__grid",children:[t.jsxs("div",{className:"cn-banner-design__col",children:[p?t.jsx(Fi,{label:s("Banner Message","cookie-notice"),value:i.message_text}):t.jsx(Ce,{label:s("Banner Message","cookie-notice"),type:"textarea",value:i.message_text||"",onChange:m=>c("message_text",m)}),p?t.jsx(Fi,{label:s("Accept Button","cookie-notice"),value:i.accept_text}):t.jsx(Ce,{label:s("Accept Button","cookie-notice"),value:i.accept_text||"",onChange:m=>c("accept_text",m),placeholder:s("Accept All","cookie-notice")}),p?t.jsx(Fi,{label:s("Reject Button","cookie-notice"),value:i.refuse_text}):t.jsx(Ce,{label:s("Reject Button","cookie-notice"),value:i.refuse_text||"",onChange:m=>c("refuse_text",m),placeholder:s("Reject All","cookie-notice")}),!h&&(p?t.jsx(Fi,{label:s("Update consent button","cookie-notice"),value:i.revoke_text}):t.jsx(Ce,{label:s("Update consent button","cookie-notice"),value:i.revoke_text||"",onChange:m=>c("revoke_text",m),placeholder:s("Update consent","cookie-notice")})),t.jsx(Ce,{label:s("Banner Position","cookie-notice"),type:"select",value:i.position||"bottom",onChange:m=>c("position",m),options:gp()}),t.jsx(Ce,{label:s("Dismiss Animation","cookie-notice"),type:"select",value:i.hide_effect||"fade",onChange:m=>c("hide_effect",m),options:vp()})]}),t.jsxs("div",{className:"cn-banner-design__col",children:[t.jsx(Ms,{label:s("Background Color","cookie-notice"),value:d.bar||"#32323a",onChange:m=>u("colors","bar",m)}),t.jsx(Ms,{label:s("Text Color","cookie-notice"),value:d.text||"#ffffff",onChange:m=>u("colors","text",m)}),t.jsx(Ms,{label:s("Button Color","cookie-notice"),value:d.button||"#00a99d",onChange:m=>u("colors","button",m)})]})]})})}function _p({onConnect:i}){return t.jsxs("div",{className:"cn-tier-gate-inline",children:[t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{opacity:.5},children:[t.jsx("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),t.jsx("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]}),t.jsxs("div",{children:[t.jsx("strong",{children:s("Advanced features require a connection","cookie-notice")}),t.jsx("p",{style:{margin:"4px 0 0",color:"var(--cn-muted)",fontSize:"var(--cn-text-sm)"},children:s("Connect your site to unlock Autoblocking, Cookie Categories, Consent Records, and Analytics.","cookie-notice")})]}),t.jsx("button",{type:"button",className:"cn-button cn-button--primary",onClick:i,children:s("Connect Your Site — It’s Free","cookie-notice")})]})}const kp=()=>({gpcSupportMode:{title:s("GPC support","cookie-notice"),summary:s("GPC (Global Privacy Control) tells browsers to signal opt-out of data sale automatically. Required for CCPA compliance.","cookie-notice"),navPath:[s("Compliance","cookie-notice"),s("Privacy Settings","cookie-notice"),s("GPC Support","cookie-notice")],action:s("Toggle GPC Support on, then save.","cookie-notice"),deepLink:"/#/configuration"},onClose:{title:s("Accept on close","cookie-notice"),summary:s("Accepting consent when users dismiss the banner is not allowed under GDPR and UK PECR.","cookie-notice"),navPath:[s("Compliance","cookie-notice"),s("Consent Settings","cookie-notice"),s("Accept on Close","cookie-notice")],action:s("Ensure Accept on Close is set to Off.","cookie-notice"),deepLink:"/#/configuration"},uiBlocking:{title:s("Cookie wall (UI blocking)","cookie-notice"),summary:s('Blocking site access until consent is given (a "cookie wall") violates GDPR — consent must be freely given.',"cookie-notice"),navPath:[s("Compliance","cookie-notice"),s("Blocking Settings","cookie-notice"),s("Cookie Wall","cookie-notice")],action:s("Ensure Cookie Wall is set to Off.","cookie-notice"),deepLink:"/#/configuration"}}),xp=()=>t.jsxs("svg",{viewBox:"0 0 28 28",fill:"none",width:"28",height:"28","aria-hidden":"true",children:[t.jsx("path",{d:"M14 3L4 7v7c0 6.627 4.477 12.5 10 14.5C19.523 26.5 24 20.627 24 14V7L14 3z",stroke:"rgba(255,255,255,.75)",strokeWidth:"1.5",strokeLinejoin:"round"}),t.jsx("path",{d:"M9 14l3.5 3.5L19 11",stroke:"#fff",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});function wp({settingKey:i,accountEmail:c,onClose:u,onSynced:d}){const[p,h]=w.useState(!1),[m,x]=w.useState(""),v=kp()[i];if(!v||Re())return null;const g=v.deepLink?sn+v.deepLink:sn,k=async()=>{h(!0),x("");try{await gn("sync_config"),d==null||d(),u==null||u()}catch{x("Sync failed. Please try again or refresh the page.")}finally{h(!1)}};return t.jsx("div",{className:"cn-portal-bridge-overlay",role:"dialog","aria-modal":"true","aria-label":je(s("Configure %s in Admin Portal","cookie-notice"),v.title),children:t.jsxs("div",{className:"cn-portal-bridge",children:[t.jsxs("div",{className:"cn-portal-bridge__header",children:[t.jsx("div",{className:"cn-portal-bridge__header-icon",children:t.jsx(xp,{})}),t.jsxs("div",{children:[t.jsxs("div",{className:"cn-portal-bridge__header-title",children:[v.title," is configured in the Admin Portal"]}),t.jsx("div",{className:"cn-portal-bridge__header-sub",children:s("Takes about 60 seconds","cookie-notice")})]})]}),t.jsxs("div",{className:"cn-portal-bridge__body",children:[t.jsx("p",{className:"cn-portal-bridge__summary",children:v.summary}),c&&t.jsxs("div",{className:"cn-portal-bridge__context",children:[t.jsx("div",{className:"cn-portal-bridge__context-dot"}),t.jsxs("div",{className:"cn-portal-bridge__context-text",children:["Sign in with ",t.jsx("strong",{children:c})," to access this setting."]})]}),t.jsxs("div",{className:"cn-portal-bridge__steps",children:[t.jsxs("div",{className:"cn-portal-bridge__step",children:[t.jsx("div",{className:"cn-portal-bridge__step-num",children:"1"}),t.jsxs("div",{className:"cn-portal-bridge__step-body",children:[t.jsx("div",{className:"cn-portal-bridge__step-title",children:s("Open the Admin Portal","cookie-notice")}),t.jsx("div",{className:"cn-portal-bridge__step-desc",children:s("Opens in a new tab.","cookie-notice")})]})]}),t.jsxs("div",{className:"cn-portal-bridge__step",children:[t.jsx("div",{className:"cn-portal-bridge__step-num",children:"2"}),t.jsxs("div",{className:"cn-portal-bridge__step-body",children:[t.jsx("div",{className:"cn-portal-bridge__step-title",children:s("Navigate to the setting","cookie-notice")}),t.jsx("div",{className:"cn-portal-bridge__step-desc",children:v.navPath.join(" → ")})]})]}),t.jsxs("div",{className:"cn-portal-bridge__step",children:[t.jsx("div",{className:"cn-portal-bridge__step-num",children:"3"}),t.jsxs("div",{className:"cn-portal-bridge__step-body",children:[t.jsx("div",{className:"cn-portal-bridge__step-title",children:s("Make the change","cookie-notice")}),t.jsx("div",{className:"cn-portal-bridge__step-desc",children:v.action})]})]})]}),m&&t.jsx("div",{className:"cn-portal-bridge__error",children:m}),t.jsxs("div",{className:"cn-portal-bridge__actions",children:[t.jsx("a",{href:g,target:"_blank",rel:"noopener noreferrer",className:"cn-portal-bridge__btn cn-portal-bridge__btn--primary",children:"Open Admin Portal →"}),t.jsx("button",{type:"button",className:"cn-portal-bridge__btn cn-portal-bridge__btn--secondary",onClick:k,disabled:p,children:p?"Checking…":"I've made the change"})]})]}),t.jsx("div",{className:"cn-portal-bridge__dismiss",children:t.jsx("button",{type:"button",onClick:u,className:"cn-portal-bridge__dismiss-btn",children:s("Not now","cookie-notice")})})]})})}const $l={banner:"Banner shown",hidden:"Silent",passive:"Passive notice"},jp=()=>[{key:"app_blocking_engine",wpKey:"app_blocking_engine",label:s("Script blocking engine","cookie-notice"),desc:s("The master switch. Turn this off and Cookie Compliance never touches your scripts — nothing is blocked for any visitor, in any region, regardless of privacy signals. Leave it on unless you handle script blocking yourself.","cookie-notice"),valueType:"toggle",requiredFor:[],activeLaws:[],activeValue:!0},{key:"app_blocking",wpKey:"app_blocking",label:s("Autoblocking","cookie-notice"),desc:s("Block before consent. Holds third-party scripts until the visitor makes a choice. With this off, scripts load immediately; once the visitor chooses, their choice is enforced either way.","cookie-notice"),valueType:"toggle",requiredFor:[],activeLaws:[],activeValue:!0},{key:"onScroll",label:s("Accept on scroll","cookie-notice"),desc:s("Consent granted automatically if visitor scrolls","cookie-notice"),valueType:"bool-inverted",requiredFor:["gdpr","ukpecr","lgpd","popia"],activeLaws:["gdpr","ukpecr","lgpd","popia"],activeValue:!1},{key:"onClick",label:s("Accept on click","cookie-notice"),desc:s("Consent granted automatically on any page click","cookie-notice"),valueType:"bool-inverted",requiredFor:["gdpr","ukpecr","lgpd","popia"],activeLaws:["gdpr","ukpecr","lgpd","popia"],activeValue:!1},{key:"onClose",label:s("Accept on close","cookie-notice"),desc:s("Consent granted automatically if banner is closed","cookie-notice"),valueType:"bool-inverted",requiredFor:["gdpr","ukpecr","popia"],activeLaws:["gdpr","ukpecr","popia"],activeValue:!1,portalOnly:!0},{key:"refuse_opt",wpKey:"refuse_opt",label:s("Refuse button","cookie-notice"),desc:s("Display a button allowing visitors to decline tracking","cookie-notice"),valueType:"bool",requiredFor:["gdpr","ukpecr","lgpd","pipeda","popia"],activeLaws:["gdpr","ukpecr","lgpd","pipeda","popia"],activeValue:!0},{key:"revokeConsent",label:s("Update consent","cookie-notice"),desc:s("Floating control so visitors can reopen the banner and update their consent","cookie-notice"),valueType:"bool",requiredFor:[],activeLaws:["gdpr","ccpa","otherus","ukpecr","lgpd","pipeda","popia"],activeValue:!0},{key:"gpcSupportMode",label:s("GPC support","cookie-notice"),desc:s("Honor browser-level opt-out signals automatically","cookie-notice"),valueType:"bool",requiredFor:[],activeLaws:["ccpa","otherus"],activeValue:!0,portalOnly:!0,pro:!0,globalNote:s("Required for all connected sites (CCPA/CPRA mandate)","cookie-notice")},{key:"consentExpiry",label:s("Consent expiry","cookie-notice"),desc:s("How long before visitors are prompted again","cookie-notice"),valueType:"expiry-array",requiredFor:["gdpr","ukpecr"],activeLaws:["gdpr","ukpecr"]},{key:"uiBlocking",label:s("Cookie wall","cookie-notice"),desc:s("Block access to site content until consent is given","cookie-notice"),valueType:"bool-inverted",requiredFor:["gdpr"],activeLaws:["gdpr"],activeValue:!1,portalOnly:!0}],Bn={shield:({color:i})=>t.jsxs("svg",{viewBox:"0 0 22 22",fill:"none",width:"22",height:"22","aria-hidden":"true",children:[t.jsx("path",{d:"M11 3L4 6v5c0 4 3.5 7 7 8 3.5-1 7-4 7-8V6L11 3z",stroke:i,strokeWidth:"1.5",strokeLinejoin:"round"}),t.jsx("polyline",{points:"8,11 10,13 14,9",stroke:i,strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})]}),scroll:({color:i})=>t.jsxs("svg",{viewBox:"0 0 22 22",fill:"none",width:"22",height:"22","aria-hidden":"true",children:[t.jsx("rect",{x:"4",y:"3",width:"14",height:"16",rx:"3",stroke:i,strokeWidth:"1.5"}),t.jsx("polyline",{points:"9,13 11,16 13,13",stroke:i,strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("line",{x1:"11",y1:"9",x2:"11",y2:"16",stroke:i,strokeWidth:"1.2",strokeLinecap:"round"})]}),click:({color:i})=>t.jsxs("svg",{viewBox:"0 0 22 22",fill:"none",width:"22",height:"22","aria-hidden":"true",children:[t.jsx("path",{d:"M8.5 10.5V5.5a1.5 1.5 0 013 0v5",stroke:i,strokeWidth:"1.5",strokeLinecap:"round"}),t.jsx("path",{d:"M11.5 8.5V5a1.5 1.5 0 013 0V10",stroke:i,strokeWidth:"1.5",strokeLinecap:"round"}),t.jsx("path",{d:"M14.5 8a1.5 1.5 0 013 0v4c0 3.314-2.686 6-6 6h-1a5 5 0 01-5-5v-2.5a1.5 1.5 0 013 0",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),close:({color:i})=>t.jsxs("svg",{viewBox:"0 0 22 22",fill:"none",width:"22",height:"22","aria-hidden":"true",children:[t.jsx("rect",{x:"3",y:"3",width:"16",height:"16",rx:"3",stroke:i,strokeWidth:"1.5"}),t.jsx("line",{x1:"8",y1:"8",x2:"14",y2:"14",stroke:i,strokeWidth:"1.4",strokeLinecap:"round"}),t.jsx("line",{x1:"14",y1:"8",x2:"8",y2:"14",stroke:i,strokeWidth:"1.4",strokeLinecap:"round"})]}),refuse:({color:i})=>t.jsxs("svg",{viewBox:"0 0 22 22",fill:"none",width:"22",height:"22","aria-hidden":"true",children:[t.jsx("rect",{x:"3",y:"7",width:"16",height:"8",rx:"3",stroke:i,strokeWidth:"1.5"}),t.jsx("line",{x1:"7",y1:"11",x2:"15",y2:"11",stroke:i,strokeWidth:"1.3",strokeLinecap:"round"})]}),revoke:({color:i})=>t.jsxs("svg",{viewBox:"0 0 22 22",fill:"none",width:"22",height:"22","aria-hidden":"true",children:[t.jsx("path",{d:"M4 8h7a6 6 0 110 12H6",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("polyline",{points:"4,4 4,8 8,8",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),gpc:({color:i})=>t.jsxs("svg",{viewBox:"0 0 22 22",fill:"none",width:"22",height:"22","aria-hidden":"true",children:[t.jsx("path",{d:"M8 10V5a1.5 1.5 0 013 0v5",stroke:i,strokeWidth:"1.5",strokeLinecap:"round"}),t.jsx("path",{d:"M11 8V4.5a1.5 1.5 0 013 0V9",stroke:i,strokeWidth:"1.5",strokeLinecap:"round"}),t.jsx("path",{d:"M14 7.5a1.5 1.5 0 013 0V12c0 3.314-2.686 6-6 6h-1a5 5 0 01-5-5v-2a1.5 1.5 0 013 0",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),clock:({color:i})=>t.jsxs("svg",{viewBox:"0 0 22 22",fill:"none",width:"22",height:"22","aria-hidden":"true",children:[t.jsx("circle",{cx:"11",cy:"11",r:"9",stroke:i,strokeWidth:"1.5"}),t.jsx("polyline",{points:"11,6 11,11 14,14",stroke:i,strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})]}),power:({color:i})=>t.jsxs("svg",{viewBox:"0 0 22 22",fill:"none",width:"22",height:"22","aria-hidden":"true",children:[t.jsx("circle",{cx:"11",cy:"12",r:"7.5",stroke:i,strokeWidth:"1.5"}),t.jsx("line",{x1:"11",y1:"3",x2:"11",y2:"11",stroke:i,strokeWidth:"1.6",strokeLinecap:"round"})]}),wall:({color:i})=>t.jsxs("svg",{viewBox:"0 0 22 22",fill:"none",width:"22",height:"22","aria-hidden":"true",children:[t.jsx("rect",{x:"2",y:"5",width:"18",height:"12",rx:"2",stroke:i,strokeWidth:"1.5"}),t.jsx("line",{x1:"2",y1:"9",x2:"20",y2:"9",stroke:i,strokeWidth:"1.2"}),t.jsx("line",{x1:"11",y1:"9",x2:"11",y2:"17",stroke:i,strokeWidth:"1.2"})]})},bp={app_blocking_engine:Bn.power,app_blocking:Bn.shield,onScroll:Bn.scroll,onClick:Bn.click,onClose:Bn.close,refuse_opt:Bn.refuse,revokeConsent:Bn.revoke,gpcSupportMode:Bn.gpc,consentExpiry:Bn.clock,uiBlocking:Bn.wall};function Np(i,c,u,d){if(i.key==="gpcSupportMode"&&!u&&d.some(h=>h==="ccpa"||h==="otherus")||i.key==="uiBlocking"&&!u&&d.includes("gdpr"))return"crit";if((i.key==="onScroll"||i.key==="onClick"||i.key==="onClose")&&!u){const h=["gdpr","ukpecr","popia"].some(x=>d.includes(x)),m=(i.key==="onScroll"||i.key==="onClick")&&d.includes("lgpd");if(h||m)return"crit"}return u?"ok":"warn"}function Sp({setting:i,activeLawKeys:c,wpOptions:u,confirmedOptions:d,configData:p,onOpenPortal:h,onToggle:m,saving:x,unconfirmed:v,checking:g,pullUnknown:k,saveError:_,blockingPaused:b,blockingState:A,onUpgrade:C,isPro:D}){const{key:P,label:E,desc:I,valueType:R,activeLaws:O,portalOnly:te,wpKey:J}=i,B=i.key==="gpcSupportMode"&&!!p.gpcSupportMode,X=!!i.pro&&!D&&!B,q=O.filter(ie=>c.includes(ie)),W=J||P,ne=J?u:p;let le,he;const M=i.key==="app_blocking"||i.key==="app_blocking_engine",me=M&&A==="networkManaged",_e=M&&(A==="inactive"||me),ke=i.key==="app_blocking"&&!!b,U=ke&&!_e,ee=i.key==="app_blocking"&&(d==null?void 0:d.app_blocking_engine)===!1;if(R==="bool"){const ie=ne[W],ue=W==="app_blocking"&&ie===void 0?!0:!!ie;if(he=ue===i.activeValue,i.key==="gpcSupportMode"&&ue){const ge=ne.gpcBannerMode||"passive",xe=$l[ge]||$l.passive;le=t.jsxs(t.Fragment,{children:["On",t.jsx("div",{style:{fontSize:"var(--cn-text-sm)",fontWeight:"normal",color:"var(--cn-muted)",marginTop:2},children:xe})]})}else le=s(ue?"On":"Off","cookie-notice")}else if(R==="bool-inverted"){const ie=!!ne[W];le=s(ie?"On":"Off","cookie-notice"),he=ie===i.activeValue}else if(R==="toggle"){const ie=ne[W]??!0,ue=(d==null?void 0:d[W])??!0;le=t.jsxs("label",{className:"cn-toggle-row__label",style:{cursor:ke?"default":"pointer",margin:0,justifyContent:"flex-start"},children:[t.jsx("input",{type:"checkbox",className:"cn-toggle-row__input",checked:ie,disabled:ke,onChange:ge=>m&&m(W,ge.target.checked),style:{marginRight:"6px"}}),ie?"On":"Off",U&&t.jsx("span",{className:"cn-card__paused",style:{marginLeft:8,color:"var(--cn-warn-icon)",fontWeight:500},children:s("Paused","cookie-notice")}),_e&&i.key==="app_blocking"&&t.jsx("span",{className:"cn-card__inactive",style:{marginLeft:8,color:"var(--cn-warn-icon)",fontWeight:500},children:s(me?"Managed by network":"Not active","cookie-notice")}),x&&t.jsx("span",{className:"cn-card__saving",style:{marginLeft:8,fontSize:"var(--cn-text-sm)",fontWeight:"normal",color:"var(--cn-muted)"},children:s("Saving…","cookie-notice")})]}),he=i.key==="app_blocking"?A==="active":_e||x||v?!1:ue===i.activeValue}else if(R==="expiry-array"){const ie=Array.isArray(ne[W])?ne[W]:[30,182,365],ue=Math.max(...ie);le=ie.map(ge=>ge>=365?`${Math.round(ge/365)}y`:ge>=30?`${Math.round(ge/30)}mo`:`${ge}d`).join(" / "),he=ue<=365}const Q=Np(i,le,he,c),S=`var(--cn-${Q}-icon)`,$=bp[P]||null;return t.jsxs("div",{className:`cn-card${Q==="crit"?" cn-card--crit":""}`,children:[t.jsxs("div",{className:"cn-card__top",children:[t.jsx("div",{className:"cn-card__icon",children:$&&t.jsx($,{color:S})}),t.jsx("div",{className:`cn-card__dot cn-card__dot--${Q}`})]}),t.jsx("div",{className:`cn-card__main cn-card__main--${Q}`,children:le}),t.jsx("div",{className:"cn-card__sub",children:E}),I&&t.jsx("div",{className:"cn-card__desc",style:{marginTop:4,fontSize:"var(--cn-text-sm)",color:"var(--cn-muted)"},children:I}),t.jsx("div",{className:"cn-card__pills",children:q.map(ie=>t.jsx("span",{className:`cn-card__pill cn-card__pill--${Q}`,children:xl[ie]||ie.toUpperCase()},ie))}),t.jsx("div",{className:"cn-card__foot",children:X?t.jsxs(t.Fragment,{children:[t.jsx(Un,{}),t.jsx("button",{type:"button",onClick:C,children:"Upgrade to Pro →"})]}):te&&t.jsx("button",{type:"button",onClick:()=>h==null?void 0:h(i.key),children:"Manage in Admin Portal →"})}),U&&t.jsxs("div",{className:"cn-card__threshold-banner",style:{marginTop:8,padding:"8px 10px",background:"var(--cn-warn-bg, #fef3cd)",borderRadius:6,fontSize:"var(--cn-text-sm)"},children:[s("Visit limit reached — autoblocking is paused until your 30-day visit cycle resets.","cookie-notice")," ",t.jsx("button",{type:"button",className:"cn-card__threshold-upgrade",style:{background:"none",border:"none",color:"var(--cn-link)",cursor:"pointer",padding:0,font:"inherit",textDecoration:"underline"},onClick:C,children:"Upgrade →"})]}),v&&!x&&t.jsx("div",{className:"cn-card__unconfirmed",role:"status",style:{marginTop:8,padding:"8px 10px",background:"var(--cn-warn-bg, #fef3cd)",borderRadius:6,fontSize:"var(--cn-text-sm)"},children:s(k?"Not confirmed — reload the page to see the saved autoblocking setting.":g?"Checking the saved value…":"Not confirmed — reload to see the saved value","cookie-notice")}),_&&t.jsxs("div",{className:"cn-card__save-error",role:"alert",style:{marginTop:8,padding:"8px 10px",background:"var(--cn-crit-bg, #fdecea)",borderRadius:6,fontSize:"var(--cn-text-sm)"},children:[s("Not saved:","cookie-notice")," ",_]}),ee&&!U&&t.jsx("div",{className:"cn-card__engine-note",style:{marginTop:8,padding:"8px 10px",background:"var(--cn-warn-bg, #fef3cd)",borderRadius:6,fontSize:"var(--cn-text-sm)"},children:s("No effect while the script blocking engine is off.","cookie-notice")})]})}function Cp({wpOptions:i,confirmedOptions:c,update:u,scheduleSave:d,blockingPaused:p,blockingState:h,savingKeys:m=[],unconfirmedKeys:x=[],checkingKeys:v=[],pullUnknownKeys:g=[],autoSaveError:k=null,onOpenPricingModal:_}){var W;const{dashboard:b,refetchDashboard:A}=Mn(),{config:C,refetchConfig:D}=wt(),{isPro:P}=Ze(),E=(ne,le)=>{u(ne,le),d([ne])},I=((W=b==null?void 0:b.appConfig)==null?void 0:W.regulations)||{},R=Object.entries(I).filter(([,ne])=>ne).map(([ne])=>ne),O=(b==null?void 0:b.accountEmail)||"",te=(C==null?void 0:C.config)||{},[J,B]=w.useState(null),X=R.length>0,q=jp().filter(ne=>ne.requiredFor.length===0?!0:ne.requiredFor.some(le=>R.includes(le)));return t.jsxs(t.Fragment,{children:[t.jsxs("div",{id:"cn-compliance-behavior",className:"cn-compliance-behavior",children:[t.jsx("div",{className:"cn-card-grid cn-card-grid--auto",children:q.map(ne=>t.jsx(Sp,{setting:ne,activeLawKeys:R,wpOptions:i,confirmedOptions:c,configData:te,onOpenPortal:B,onToggle:E,saving:m.includes(ne.wpKey||ne.key),unconfirmed:x.includes(ne.wpKey||ne.key),checking:v.includes(ne.wpKey||ne.key),pullUnknown:g.includes(ne.wpKey||ne.key),saveError:k!=null&&k.keys.includes(ne.wpKey||ne.key)?k.message:null,blockingPaused:p,blockingState:h,onUpgrade:_,isPro:P},ne.key))}),t.jsxs("div",{className:"cn-compliance-behavior__footer",children:[X?"These settings were automatically configured based on your selected laws. ":"Select laws to see recommendations tied to your jurisdictions. ",t.jsx("a",{href:`${sn}/#/configuration`,target:"_blank",rel:"noreferrer",className:"cn-form-readonly__link",children:X?"Configure in Admin Portal →":"Select laws in Admin Portal →"})]})]}),J&&t.jsx(wp,{settingKey:J,accountEmail:O,onClose:()=>B(null),onSynced:()=>{A(),D(),B(null)}})]})}const Le={thumb:"_thumb_1g9ys_1",chrome:"_chrome_1g9ys_12",dot:"_dot_1g9ys_23",urlBar:"_urlBar_1g9ys_31",page:"_page_1g9ys_39",lines:"_lines_1g9ys_45",banner:"_banner_1g9ys_57","bar-bottom":"_bar-bottom_1g9ys_69","bar-top":"_bar-top_1g9ys_75",floating:"_floating_1g9ys_81",fixed:"_fixed_1g9ys_87","panel-left":"_panel-left_1g9ys_92","panel-right":"_panel-right_1g9ys_99",panelFloating:"_panelFloating_1g9ys_106",panelFixed:"_panelFixed_1g9ys_110",popup:"_popup_1g9ys_115",bannerHeader:"_bannerHeader_1g9ys_124",toolbarDots:"_toolbarDots_1g9ys_131",pills:"_pills_1g9ys_143",pill:"_pill_1g9ys_143",pillDot:"_pillDot_1g9ys_160",saveBtn:"_saveBtn_1g9ys_167",footerLinks:"_footerLinks_1g9ys_174",link:"_link_1g9ys_181","anim-slide-bottom":"_anim-slide-bottom_1g9ys_188",huPreviewSlideUp:"_huPreviewSlideUp_1g9ys_1","anim-slide-top":"_anim-slide-top_1g9ys_192",huPreviewSlideDown:"_huPreviewSlideDown_1g9ys_1","anim-slide-left":"_anim-slide-left_1g9ys_196",huPreviewSlideLeft:"_huPreviewSlideLeft_1g9ys_1","anim-slide-right":"_anim-slide-right_1g9ys_200",huPreviewSlideRight:"_huPreviewSlideRight_1g9ys_1","anim-slide-center":"_anim-slide-center_1g9ys_204",huPreviewScaleIn:"_huPreviewScaleIn_1g9ys_1","anim-fade":"_anim-fade_1g9ys_208",huPreviewFade:"_huPreviewFade_1g9ys_1"},Pp=["#c4c4c4","#d5b565","#9891b1"];function Lp(i){const c=i.replace("#",""),u=parseInt(c.slice(0,2),16),d=parseInt(c.slice(2,4),16),p=parseInt(c.slice(4,6),16);return(u*299+d*587+p*114)/1e3>155}function Ep({preset:i,isActive:c}){const{position:u="bottom",displayType:d="floating",bannerColor:p="#4d4d4d",primaryColor:h="#20c19e",btnBorderRadius:m="25px",animation:x="fade"}=i,v=Lp(p),g=v?"rgba(0,0,0,.25)":"rgba(255,255,255,.4)",k=v?"rgba(0,0,0,.18)":"rgba(255,255,255,.35)",_=u==="left"||u==="right",b=u==="center",A=d==="floating",C=Math.max(2,Math.round(parseInt(m)*.18))+"px",D=x==="slide"?Le[`anim-slide-${u}`]:Le["anim-fade"],P=[Le.banner,_?Le[`panel-${u}`]:null,_&&A?Le.panelFloating:null,_&&!A?Le.panelFixed:null,b?Le.popup:null,!_&&!b?Le[`bar-${u}`]:null,!_&&!b&&A?Le.floating:null,!_&&!b&&!A?Le.fixed:null,Le[D]||D].filter(Boolean).join(" ");return t.jsx(Wl,{children:t.jsxs("div",{className:P,style:{backgroundColor:p},children:[t.jsx("div",{className:Le.bannerHeader,children:t.jsxs("div",{className:Le.toolbarDots,style:{"--dot-color":g},children:[t.jsx("span",{}),t.jsx("span",{}),t.jsx("span",{})]})}),t.jsx("div",{className:Le.pills,children:Pp.map((E,I)=>t.jsx("div",{className:Le.pill,style:{borderColor:E},children:t.jsx("span",{className:Le.pillDot,style:{backgroundColor:E}})},I))}),t.jsx("div",{className:Le.saveBtn,style:{backgroundColor:h,borderRadius:C}}),t.jsxs("div",{className:Le.footerLinks,children:[t.jsx("div",{className:Le.link,style:{background:k}}),t.jsx("div",{className:Le.link,style:{background:k}})]})]})})}function Wl({children:i}){return t.jsxs("div",{className:Le.thumb,children:[t.jsxs("div",{className:Le.chrome,children:[t.jsx("span",{className:Le.dot}),t.jsx("span",{className:Le.dot}),t.jsx("span",{className:Le.dot}),t.jsx("div",{className:Le.urlBar})]}),t.jsxs("div",{className:Le.page,children:[t.jsxs("div",{className:Le.lines,children:[t.jsx("div",{style:{width:"75%"}}),t.jsx("div",{style:{width:"55%"}}),t.jsx("div",{style:{width:"65%"}}),t.jsx("div",{style:{width:"45%"}})]}),i]})]})}const en={root:"_root_o4a2z_1",scaler:"_scaler_o4a2z_6",overlay:"_overlay_o4a2z_12",banner:"_banner_o4a2z_18",card:"_card_o4a2z_28",bottom:"_bottom_o4a2z_33",top:"_top_o4a2z_36",edge:"_edge_o4a2z_40",bar:"_bar_o4a2z_52",heading:"_heading_o4a2z_66",narrow:"_narrow_o4a2z_71",left:"_left_o4a2z_77",right:"_right_o4a2z_81",modal:"_modal_o4a2z_85",desc:"_desc_o4a2z_101",descShort:"_descShort_o4a2z_109",row:"_row_o4a2z_113",pill:"_pill_o4a2z_121",link:"_link_o4a2z_131"},Dp=["bottom","top","left","right","center"];function Tp(i){let c=String(i||"").replace("#","");if(c.length===3&&(c=c.split("").map(h=>h+h).join("")),!/^[0-9a-f]{6}$/i.test(c))return!1;const[u,d,p]=[0,2,4].map(h=>parseInt(c.slice(h,h+2),16));return(u*299+d*587+p*114)/1e3>155}function Ap(i,c,u,d){return i!=="new"?"classic":u==="left"||u==="right"?"narrow":u==="center"?"modal":c==="compact"&&d==="fixed"?"bar":"card"}function Rp({shape:i,compact:c,position:u,displayType:d,bannerColor:p,primaryColor:h}){const m=Tp(p),x={"--thumb-bg":p,"--thumb-accent":h,"--thumb-ink":m?"rgba(0,0,0,.5)":"rgba(255,255,255,.75)","--thumb-faint":m?"rgba(0,0,0,.22)":"rgba(255,255,255,.35)"},v=[en.banner,en[i],i==="card"||i==="bar"?en[u==="top"?"top":"bottom"]:null,i==="narrow"?en[u]:null,i==="card"&&d==="fixed"?en.edge:null].filter(Boolean).join(" "),g=(c?[0,1]:[0,1,2]).map(_=>t.jsx("span",{className:en.pill},_)),k=t.jsx("span",{className:en.link});return t.jsxs(t.Fragment,{children:[i==="modal"&&t.jsx("div",{className:en.overlay}),t.jsx("div",{className:v,style:x,children:i==="bar"?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:en.heading}),g,k]}):t.jsxs(t.Fragment,{children:[t.jsx("span",{className:en.heading}),!c&&t.jsx("span",{className:en.desc}),!c&&t.jsx("span",{className:`${en.desc} ${en.descShort}`}),t.jsxs("span",{className:en.row,children:[g,k]})]})})]})}function zp({engine:i="classic",style:c="standard",position:u,displayType:d,bannerColor:p,primaryColor:h,scale:m=1}){const x=u==="popup"?"center":Dp.includes(u)?u:"bottom",v=d==="fixed"?"fixed":"floating",g=p||"#4d4d4d",k=h||"#20c19e",_=Ap(i,c,x,v),b=m!==1?{width:160*m,height:90*m}:void 0;return t.jsx("div",{className:`cn-banner-thumb ${en.root}`,"data-engine":i,"data-style":c,"data-shape":_,style:b,"aria-hidden":"true",children:t.jsx("div",{className:en.scaler,style:m!==1?{transform:`scale(${m})`}:void 0,children:_==="classic"?t.jsx(Ep,{preset:{position:x,displayType:v,bannerColor:g,primaryColor:k}}):t.jsx(Wl,{children:t.jsx(Rp,{shape:_,compact:c==="compact",position:x,displayType:v,bannerColor:g,primaryColor:k})})})})}function Gl(){var k,_,b;const i=Ti(),c=Lo(),{dashboard:u}=Mn(),{configRefresh:d}=wt(),p=i.engine==="new",h=i.managed,m=c==="live",x=((k=u==null?void 0:u.appConfig)==null?void 0:k.design)||((_=window.cnReactData)==null?void 0:_.bannerDesign)||{},v=((b=window.cnReactData)==null?void 0:b.siteUrl)||"",g=cs(d==null?void 0:d.lastSynced);return t.jsxs("section",{className:"cn-banner-panel","aria-labelledby":"cn-banner-panel-title","data-engine":i.engine,"data-style":p?i.style:void 0,children:[t.jsxs("div",{className:"cn-banner-panel__shot",children:[t.jsxs("div",{className:"cn-banner-panel__head",children:[t.jsx("h2",{id:"cn-banner-panel-title",className:"cn-banner-panel__title",children:s("Your banner","cookie-notice")}),t.jsx("span",{className:`cn-banner-panel__status cn-banner-panel__status--${m?"live":"off"}`,children:m?s("Live on your site","cookie-notice"):ts(c)})]}),t.jsx(zp,{engine:i.engine,style:i.style,position:x.position,displayType:x.displayType,bannerColor:x.bannerColor,primaryColor:x.primaryColor,scale:1.75}),t.jsx("p",{className:"cn-banner-panel__caption",children:s("A drawing based on your engine, style and colours. Use Preview to see the real banner.","cookie-notice")})]}),t.jsxs("div",{className:"cn-banner-panel__rows",children:[h&&t.jsx("p",{className:"cn-banner-panel__managed",children:s("Managed by your network administrator — this site uses the network's banner.","cookie-notice")}),t.jsxs("div",{className:"cn-banner-panel__row",children:[t.jsx("span",{className:"cn-banner-panel__label",children:s("Engine","cookie-notice")}),t.jsxs("div",{className:"cn-banner-panel__value",children:[t.jsx("span",{className:`cn-banner-panel__chip cn-banner-panel__chip--${i.engine}`,children:Si(i.engine)}),t.jsx("span",{className:"cn-banner-panel__note",children:s(p?"One click records any choice, including reject. Also holds tracking scripts added after the page loads, and adds the Compact style. You can switch back at any time.":"The original banner.","cookie-notice")}),!h&&t.jsxs("a",{className:"cn-banner-panel__link",href:`${sn}/#/configuration`,target:"_blank",rel:"noopener noreferrer",children:[s("Change engine in Admin Portal","cookie-notice")," ↗"]})]})]}),t.jsxs("div",{className:"cn-banner-panel__row",children:[t.jsx("span",{className:"cn-banner-panel__label",id:"cn-banner-panel-style",children:s("Style","cookie-notice")}),t.jsx("div",{className:"cn-banner-panel__value",children:t.jsx(Pl,{name:"cn-banner-style",labelledBy:"cn-banner-panel-style"})})]}),!h&&t.jsxs("div",{className:"cn-banner-panel__actions",children:[v&&t.jsxs("a",{className:"cn-button cn-button--primary",href:`${v}?cn_preview=1`,target:"_blank",rel:"noreferrer",children:[s("Preview on my site","cookie-notice")," ↗"]}),t.jsxs("a",{className:"cn-button cn-button--outline",href:`${sn}/#/configuration`,target:"_blank",rel:"noopener noreferrer",children:[s("Edit colours & text in Admin Portal","cookie-notice")," ↗"]}),t.jsxs("span",{className:"cn-banner-panel__sync",children:[g?je(s("Synced %s","cookie-notice"),g):s("Not synced yet","cookie-notice"),(d==null?void 0:d.state)==="failed"&&t.jsx("span",{className:"cn-banner-panel__sync-failed",children:s("Couldn't reach Hu-manity — showing cached settings.","cookie-notice")})]})]}),!h&&v&&t.jsx("p",{className:"cn-banner-panel__preview-help",children:s("Can't see your banner on your own site? That's often normal. It stays hidden when your browser sends Global Privacy Control, when your visitor's region doesn't require a banner, or when you've already made a choice. Preview shows it anyway. Nothing is saved.","cookie-notice")})]})]})}function Mp(i){return{google:s("Google","cookie-notice"),facebook:s("Facebook","cookie-notice"),microsoft:s("Microsoft","cookie-notice"),gpc:s("GPC","cookie-notice"),dnt:s("DNT","cookie-notice")}[i]||i}const Fp=["google","facebook","microsoft","gpc","dnt"];function Ip(){var k,_;const{dashboard:i}=Mn(),{config:c}=wt(),{openLawWizard:u,openConsentPanel:d}=ki(),p=`cn-card__pill cn-card__pill--${Lo()==="live"?"ok":"off"}`,h=jl((k=i==null?void 0:i.appConfig)==null?void 0:k.regulations).map(b=>xl[b]||b.toUpperCase()),m=(_=i==null?void 0:i.appConfig)==null?void 0:_.language,x=m&&Array.isArray(m)?m.length:1,v=Cl((c==null?void 0:c.blocking)||{}),g=Fp.filter(b=>v[b]);return t.jsxs("section",{className:"cn-lls","aria-labelledby":"cn-lls-title",children:[t.jsx("h2",{id:"cn-lls-title",className:"cn-lls__title",children:s("Laws, languages & signals","cookie-notice")}),t.jsxs("div",{className:"cn-lls__row","data-lls":"laws",children:[t.jsx("span",{className:"cn-lls__k",children:s("Laws","cookie-notice")}),t.jsx("div",{className:"cn-lls__v",children:h.length>0?h.map(b=>t.jsxs("span",{className:p,children:[wl[b]?`${wl[b].flag} `:"",b]},b)):t.jsx("span",{className:"cn-lls__none",children:s("No laws selected","cookie-notice")})}),t.jsxs("button",{type:"button",className:"cn-lls__action",onClick:()=>u(),children:[h.length>0?s("Edit laws","cookie-notice"):s("Add laws","cookie-notice")," →"]})]}),t.jsxs("div",{className:"cn-lls__row","data-lls":"languages",children:[t.jsx("span",{className:"cn-lls__k",children:s("Languages","cookie-notice")}),t.jsx("div",{className:"cn-lls__v",children:je(yo("%d language","%d languages",x,"cookie-notice"),x)}),t.jsxs("a",{className:"cn-lls__action",href:`${sn}/#/languages`,target:"_blank",rel:"noopener noreferrer",children:[s("Manage languages","cookie-notice")," ↗"]})]}),t.jsxs("div",{className:"cn-lls__row","data-lls":"signals",children:[t.jsx("span",{className:"cn-lls__k",children:s("Consent signals","cookie-notice")}),t.jsx("div",{className:"cn-lls__v",children:g.length>0?g.map(b=>t.jsx("span",{className:p,children:Mp(b)},b)):t.jsx("span",{className:"cn-lls__none",children:s("None switched on","cookie-notice")})}),t.jsxs("button",{type:"button",className:"cn-lls__action",onClick:()=>d(),children:[s("Consent signals","cookie-notice")," →"]})]})]})}const Op=((m1=window.cnReactData)==null?void 0:m1.ruleParams)||[],Up=((g1=window.cnReactData)==null?void 0:g1.ruleOperators)||[];function Bp({rule:i,onChange:c,onRemove:u}){const[d,p]=w.useState([]),[h,m]=w.useState(!1),[x,v]=w.useState(!1),g=w.useCallback(async _=>{if(!_){p([]);return}m(!0);try{const b=await $2(_),A=(b==null?void 0:b.values)||[];A.length>0&&A[0].group?v(!0):v(!1),p(A)}catch{p([])}finally{m(!1)}},[]);w.useEffect(()=>{g(i.param)},[i.param,g]);const k=_=>{c({...i,param:_,value:""})};return t.jsxs("div",{className:"cn-rule-row",children:[t.jsxs("select",{className:"cn-rule-row__param",value:i.param,onChange:_=>k(_.target.value),children:[t.jsx("option",{value:"",children:"-- Select --"}),Op.map(_=>t.jsx("option",{value:_.value,children:_.label},_.value))]}),t.jsx("select",{className:"cn-rule-row__operator",value:i.operator,onChange:_=>c({...i,operator:_.target.value}),children:Up.map(_=>t.jsx("option",{value:_.value,children:_.label},_.value))}),t.jsxs("select",{className:"cn-rule-row__value",value:i.value,onChange:_=>c({...i,value:_.target.value}),disabled:h,children:[t.jsx("option",{value:"",children:h?"Loading…":"-- Select --"}),x?d.map(_=>t.jsx("optgroup",{label:_.group,children:_.items.map(b=>t.jsx("option",{value:b.value,children:b.label},b.value))},_.group)):d.map(_=>t.jsx("option",{value:_.value,children:_.label},_.value))]}),t.jsx("button",{type:"button",className:"cn-rule-row__remove",onClick:u,title:s("Remove rule","cookie-notice"),children:"×"})]})}function $p({group:i,groupIndex:c,onChange:u,onRemove:d}){const p=(x,v)=>{const g=[...i];g[x]=v,u(g)},h=x=>{if(i.length===1){d();return}u(i.filter((v,g)=>g!==x))},m=()=>{u([...i,{param:"",operator:"equal",value:""}])};return t.jsxs("div",{className:"cn-rule-group",children:[c>0&&t.jsx("div",{className:"cn-rule-group__or",children:"OR"}),t.jsxs("div",{className:"cn-rule-group__card",children:[i.map((x,v)=>t.jsxs("div",{children:[v>0&&t.jsx("div",{className:"cn-rule-group__and",children:s("AND","cookie-notice")}),t.jsx(Bp,{rule:x,onChange:g=>p(v,g),onRemove:()=>h(v)})]},v)),t.jsx("button",{type:"button",className:"cn-rule-group__add-rule",onClick:m,children:"+ Add rule"})]})]})}function Wp({rules:i,onChange:c}){const u=!i||Array.isArray(i)&&i.length===0?[]:Array.isArray(i)?i.map(g=>Array.isArray(g)?g.map(k=>({param:k.param||"",operator:k.operator||"equal",value:k.value||""})):Object.values(g).map(k=>({param:k.param||"",operator:k.operator||"equal",value:k.value||""}))):Object.values(i).map(g=>Object.values(g).map(k=>({param:k.param||"",operator:k.operator||"equal",value:k.value||""}))),[d,p]=w.useState(u),h=g=>{p(g),c(g)},m=(g,k)=>{const _=[...d];_[g]=k,h(_)},x=g=>{h(d.filter((k,_)=>_!==g))},v=()=>{h([...d,[{param:"",operator:"equal",value:""}]])};return t.jsxs("div",{className:"cn-rule-builder",children:[d.length===0&&t.jsx("p",{className:"cn-rule-builder__empty",children:s("No rules configured. Add a rule group to control where the banner appears.","cookie-notice")}),d.map((g,k)=>t.jsx($p,{group:g,groupIndex:k,onChange:_=>m(k,_),onRemove:()=>x(k)},k)),t.jsx("button",{type:"button",className:"cn-rule-builder__add-group",onClick:v,children:"+ Add rule group"})]})}const Vl=()=>{var i;return((i=window.cnReactData)==null?void 0:i.expiryOptions)||[]};function un({label:i,checked:c,onChange:u,description:d}){const p=w.useId();return t.jsxs("div",{className:"cn-toggle-row",children:[t.jsxs("label",{className:"cn-toggle-row__label",htmlFor:p,children:[t.jsx("input",{id:p,type:"checkbox",className:"cn-toggle-row__input",checked:c,onChange:h=>u(h.target.checked)}),t.jsx("span",{className:"cn-toggle-row__text",children:i})]}),d&&t.jsx("div",{className:"cn-toggle-row__desc",children:d})]})}function Do({label:i,name:c,value:u,options:d,onChange:p}){return t.jsxs("div",{className:"cn-radio-group",children:[i&&t.jsx("div",{className:"cn-radio-group__label",children:i}),t.jsx("div",{className:"cn-radio-group__options",children:d.map(h=>t.jsxs("label",{className:"cn-radio-group__option",children:[t.jsx("input",{type:"radio",name:c,value:h.value,checked:u===h.value,onChange:()=>p(h.value)}),t.jsx("span",{children:h.label})]},h.value))})]})}function Hl({addNotice:i,options:c,update:u,updateNested:d,save:p,reset:h,loading:m,saved:x,error:v,onOpenConsentPanel:g}){var O,te,J,B,X,q,W,ne,le,he;const k=((O=window.cnReactData)==null?void 0:O.wpPages)||[],{isConnected:_}=Ze(),[b,A]=w.useState(!1),[C,D]=w.useState("head"),[P,E]=w.useState(!1),I=async()=>{E(!1),await h()&&i&&i(s("Settings restored to defaults.","cookie-notice"),"success")},R=async()=>{if(await p()){if(_){try{await W2()}catch{i&&i(s("Settings saved. The privacy policy link on your banner could not be updated. Please try again.","cookie-notice"),"warning");return}i&&i(s("Settings saved.","cookie-notice"),"success");return}i&&i(s("Settings saved successfully.","cookie-notice"),"success")}};return t.jsxs("div",{className:"cn-plugin-settings",children:[!_&&t.jsxs(t.Fragment,{children:[t.jsxs(Kn,{title:s("Consent Behavior","cookie-notice"),defaultOpen:!0,children:[t.jsx(un,{label:s("Enable refuse button","cookie-notice"),checked:!!c.refuse_opt,onChange:M=>u("refuse_opt",M),description:s("Allow visitors to refuse cookie consent","cookie-notice")}),c.refuse_opt&&t.jsx(Ce,{label:s("Refuse button text","cookie-notice"),value:c.refuse_text||"",onChange:M=>u("refuse_text",M),placeholder:s("No","cookie-notice")}),t.jsx(un,{label:s("Enable Update consent","cookie-notice"),checked:!!c.revoke_cookies,onChange:M=>u("revoke_cookies",M),description:s("Show a control so visitors can reopen the banner and update their consent","cookie-notice")}),c.revoke_cookies&&t.jsxs(t.Fragment,{children:[t.jsx(Do,{label:s("Update consent method","cookie-notice"),name:"revoke_cookies_opt",value:c.revoke_cookies_opt||"automatic",options:[{value:"automatic",label:s("Automatic","cookie-notice")},{value:"manual",label:s("Manual","cookie-notice")}],onChange:M=>u("revoke_cookies_opt",M)}),t.jsx(Ce,{label:s("Update consent button text","cookie-notice"),value:c.revoke_text||"",onChange:M=>u("revoke_text",M),placeholder:s("Update consent","cookie-notice")}),t.jsx(Ce,{label:s("Update consent message","cookie-notice"),type:"textarea",value:c.revoke_message_text||"",onChange:M=>u("revoke_message_text",M)})]}),t.jsx(un,{label:s("Accept on scroll","cookie-notice"),checked:!!c.on_scroll,onChange:M=>u("on_scroll",M),description:s("Automatically accept consent when the user scrolls","cookie-notice")}),c.on_scroll&&t.jsx(Ce,{label:s("Scroll distance (px)","cookie-notice"),type:"number",value:c.on_scroll_offset||100,onChange:M=>u("on_scroll_offset",parseInt(M,10)||0)}),t.jsx(un,{label:s("Accept on click","cookie-notice"),checked:!!c.on_click,onChange:M=>u("on_click",M),description:s("Automatically accept consent on any page click","cookie-notice")}),t.jsx(un,{label:s("Reload page on accept","cookie-notice"),checked:!!c.redirection,onChange:M=>u("redirection",M),description:s("Reload the page after the visitor accepts consent","cookie-notice")})]}),t.jsxs(Kn,{title:s("Cookie Expiry","cookie-notice"),defaultOpen:!0,children:[t.jsx(Ce,{label:s("Accepted expiry","cookie-notice"),type:"select",value:c.time||"month",onChange:M=>u("time",M),options:Vl()}),t.jsx(Ce,{label:s("Rejected expiry","cookie-notice"),type:"select",value:c.time_rejected||"month",onChange:M=>u("time_rejected",M),options:Vl()})]})]}),t.jsxs(Kn,{title:s("Privacy Policy","cookie-notice"),defaultOpen:!0,children:[t.jsx(un,{label:s("Enable privacy policy link","cookie-notice"),checked:!!c.see_more,onChange:M=>u("see_more",M)}),c.see_more&&t.jsxs(t.Fragment,{children:[t.jsx(Ce,{label:s("Link text","cookie-notice"),value:((te=c.see_more_opt)==null?void 0:te.text)||"",onChange:M=>d("see_more_opt","text",M),placeholder:s("Privacy policy","cookie-notice")}),t.jsx(Do,{label:s("Link type","cookie-notice"),name:"see_more_link_type",value:((J=c.see_more_opt)==null?void 0:J.link_type)||"page",options:[{value:"page",label:s("Page link","cookie-notice")},{value:"custom",label:s("Custom link","cookie-notice")}],onChange:M=>d("see_more_opt","link_type",M)}),((B=c.see_more_opt)==null?void 0:B.link_type)==="page"&&k.length>0&&t.jsx(Ce,{label:s("Select page","cookie-notice"),type:"select",value:((X=c.see_more_opt)==null?void 0:X.id)||"",onChange:M=>d("see_more_opt","id",parseInt(M,10)||0),options:[{value:"",label:s("— Select a page —","cookie-notice")},...k.map(M=>({value:String(M.id),label:M.title}))]}),((q=c.see_more_opt)==null?void 0:q.link_type)==="custom"&&t.jsx(Ce,{label:s("Custom URL","cookie-notice"),value:((W=c.see_more_opt)==null?void 0:W.link)||"",onChange:M=>d("see_more_opt","link",M),placeholder:"https://"}),t.jsx(un,{label:s("Sync with WordPress Privacy Page","cookie-notice"),checked:!!((ne=c.see_more_opt)!=null&&ne.sync),onChange:M=>d("see_more_opt","sync",M)}),t.jsx(Do,{label:s("Open link in","cookie-notice"),name:"link_target",value:c.link_target||"_blank",options:[{value:"_blank",label:s("New tab","cookie-notice")},{value:"_self",label:s("Same tab","cookie-notice")}],onChange:M=>u("link_target",M)}),t.jsx(Do,{label:s("Link position","cookie-notice"),name:"link_position",value:c.link_position||"banner",options:[{value:"banner",label:s("Banner","cookie-notice")},{value:"message",label:s("Message","cookie-notice")}],onChange:M=>u("link_position",M)})]})]}),t.jsxs(Kn,{title:s("Custom Scripts","cookie-notice"),defaultOpen:!0,children:[t.jsxs("div",{className:"cn-pill-toggle",children:[t.jsx("button",{type:"button",className:`cn-pill-toggle__btn${C==="head"?" cn-pill-toggle__btn--active":""}`,onClick:()=>D("head"),children:s("Head","cookie-notice")}),t.jsx("button",{type:"button",className:`cn-pill-toggle__btn${C==="body"?" cn-pill-toggle__btn--active":""}`,onClick:()=>D("body"),children:s("Body","cookie-notice")})]}),C==="head"?t.jsxs(t.Fragment,{children:[t.jsx("p",{className:"cn-pill-toggle-desc",children:s("Code to be added in your site header, before the closing head tag.","cookie-notice")}),t.jsx(Ce,{type:"textarea",value:c.refuse_code_head||"",onChange:M=>u("refuse_code_head",M),placeholder:s("<!-- e.g. Google Analytics -->","cookie-notice"),rows:6})]}):t.jsxs(t.Fragment,{children:[t.jsx("p",{className:"cn-pill-toggle-desc",children:s("Code to be added in your site footer, before the closing body tag.","cookie-notice")}),t.jsx(Ce,{type:"textarea",value:c.refuse_code||"",onChange:M=>u("refuse_code",M),placeholder:s("<!-- e.g. tracking scripts -->","cookie-notice"),rows:6})]}),t.jsx("p",{className:"cn-pill-toggle-note",children:s("Enter non-functional cookies JavaScript code (e.g. Google Analytics) to be used after the visitor consent is given.","cookie-notice")})]}),t.jsxs(Kn,{title:s("Display & Animation","cookie-notice"),defaultOpen:!0,children:[!_&&t.jsxs("div",{className:"cn-form-field",children:[t.jsx("label",{className:"cn-form-field__label",htmlFor:"cn-bar-opacity",children:je(s("Bar opacity: %d%%","cookie-notice"),((le=c.colors)==null?void 0:le.bar_opacity)??100)}),t.jsx("input",{id:"cn-bar-opacity",type:"range",className:"cn-opacity-slider",min:50,max:100,value:((he=c.colors)==null?void 0:he.bar_opacity)??100,onChange:M=>d("colors","bar_opacity",parseInt(M.target.value,10))})]}),t.jsx(Ce,{label:s("Custom button CSS class","cookie-notice"),value:c.css_class||"",onChange:M=>u("css_class",M),placeholder:s("e.g. my-custom-btn","cookie-notice"),helper:s(_?"Adds CSS classes to the [cookies_revoke] and [cookies_policy_link] shortcode buttons.":"Add custom CSS classes to the accept button","cookie-notice")})]}),t.jsxs(Kn,{title:s("Technical Settings","cookie-notice"),defaultOpen:!0,children:[_&&t.jsxs(t.Fragment,{children:[t.jsx(un,{label:s("Bot detection","cookie-notice"),checked:!!(c.bot_detection??!0),onChange:M=>u("bot_detection",M),description:s("Automatically detect and handle bots/crawlers","cookie-notice")}),t.jsx(un,{label:s("AMP support","cookie-notice"),checked:!!c.amp_support,onChange:M=>u("amp_support",M),description:s("Enable AMP-compatible consent notice","cookie-notice")}),t.jsx(un,{label:s("WP Consent API","cookie-notice"),checked:!!(c.wp_consent_api??!0),onChange:M=>u("wp_consent_api",M),description:s("Register as the active CMP for cooperative plugins (WooCommerce, Site Kit, Burst Statistics, etc.). Requires the WP Consent API plugin to be active.","cookie-notice")}),t.jsx(un,{label:s("Caching compatibility","cookie-notice"),checked:!!(c.caching_compatibility??!0),onChange:M=>u("caching_compatibility",M),description:s("Improve compatibility with caching plugins","cookie-notice")}),t.jsx(un,{label:s("Debug mode","cookie-notice"),checked:!!c.debug_mode,onChange:M=>u("debug_mode",M),description:s("Enable debug logging for troubleshooting","cookie-notice")}),t.jsx(Ce,{label:s("Excluded script handles","cookie-notice"),type:"textarea",value:Array.isArray(c.excluded_handles)?c.excluded_handles.join(`1061 `):c.excluded_handles||"",onChange: M=>u("excluded_handles",M),placeholder:`elementor-frontend1062 my-analytics-init`,rows:4,helper:s("Enter WordPress script handles to exclude from autoblocking, one per line. These scripts will be marked as Essential (Category 1) and never blocked.","cookie-notice")})]}),!_&&t.jsx(Do,{label:s("Script placement","cookie-notice"),name:"script_placement",value:c.script_placement||"header",options:[{value:"header",label:s("Header","cookie-notice")},{value:"footer",label:s("Footer","cookie-notice")}],onChange: M=>u("script_placement",M)}),t.jsx(un,{label:s("Conditional display","cookie-notice"),checked:!!c.conditional_active,onChange:M=>u("conditional_active",M),description:s("Show or hide the banner on specific pages","cookie-notice")}),c.conditional_active&&t.jsxs(t.Fragment,{children:[t.jsx(Ce,{label:s("Display rule","cookie-notice"),type:"select",value:c.conditional_display||"hide",onChange:M=>u("conditional_display",M),options:[{value:"hide",label:s("Hide the banner","cookie-notice")},{value:"show",label:s("Show the banner","cookie-notice")}]}),t.jsx(Wp,{rules:c.conditional_rules||[],onChange:M=>u("conditional_rules",M)})]}),t.jsx(un,{label:s("Delete data on deactivation","cookie-notice"),checked:!!c.deactivation_delete,onChange:M=>u("deactivation_delete",M),description:s("Remove all plugin data when the plugin is deactivated","cookie-notice")}),_&&t.jsxs("div",{className:"cn-purge-cache",children:[t.jsx(Ue,{variant:"secondary",onClick:async()=>{A(!0);try{await H2(),i&&i(s("Cache purged successfully.","cookie-notice"),"success")}catch(M){i&&i(M.message||s("Purge failed. Please try again.","cookie-notice"),"error")}finally{A(!1)}},disabled:b,children:s(b?"Purging…":"Purge Cache","cookie-notice")}),t.jsx("p",{className:"cn-purge-cache__desc",children:s("Click to refresh the app configuration cache.","cookie-notice")})]})]}),t.jsxs("div",{className:"cn-plugin-settings__actions",children:[t.jsx(Ue,{variant:"primary",onClick:R,disabled:m,children:s(m?"Saving…":_?"Save WordPress Settings":"Save Settings","cookie-notice")}),x&&t.jsxs("span",{className:"cn-plugin-settings__saved",children:["✓"," ",s("Saved","cookie-notice")]}),v&&t.jsx("span",{className:"cn-plugin-settings__error",children:v}),h&&!P&&t.jsx(Ue,{variant:"secondary",onClick:()=>E(!0),disabled:m,children:s("Reset to defaults","cookie-notice")})]}),P&&t.jsxs("div",{className:"cn-plugin-settings__reset-confirm",role:"alertdialog","aria-labelledby":"cn-reset-confirm-text",children:[t.jsx("p",{id:"cn-reset-confirm-text",children:s("Restore the banner and plugin settings on this screen to their defaults? Your connection, the new admin interface and your protection switches are kept.","cookie-notice")}),t.jsx(Ue,{variant:"primary",onClick:I,disabled:m,children:s("Yes, reset settings","cookie-notice")}),t.jsx(Ue,{variant:"secondary",onClick:()=>E(!1),children:s("Cancel","cookie-notice")})]})]})}function Kl({addNotice:i}){const c=window.cnReactData||{},u=!!c.globalCookieAvailable,[d,p]=w.useState(()=>{var A,C;return{global_override:!!((A=c.options)!=null&&A.global_override),global_cookie:!!((C=c.options)!=null&&C.global_cookie)}}),[h,m]=w.useState(!1),[x,v]=w.useState(!1),g=w.useId(),k=w.useId(),_=(A,C)=>{p({...d,[A]:C}),v(!1)},b=async()=>{var A,C;m(!0),v(!1);try{const D=await I2(d);p({global_override:!!((A=D==null?void 0:D.options)!=null&&A.global_override),global_cookie:!!((C=D==null?void 0:D.options)!=null&&C.global_cookie)}),v(!0)}catch(D){i&&i(D.message||s("Request failed","cookie-notice"),"error")}finally{m(!1)}};return t.jsxs(Kn,{title:s("Network Settings","cookie-notice"),defaultOpen:!0,children:[t.jsxs("div",{className:"cn-toggle-row",children:[t.jsx("div",{className:"cn-radio-group__label",children:s("Global Settings Override","cookie-notice")}),t.jsxs("label",{className:"cn-toggle-row__label",htmlFor:g,children:[t.jsx("input",{id:g,type:"checkbox",className:"cn-toggle-row__input",checked:d.global_override,onChange:A=>_("global_override",A.target.checked)}),t.jsx("span",{className:"cn-toggle-row__text",children:s("Enable global network settings override.","cookie-notice")})]}),t.jsx("div",{className:"cn-toggle-row__desc",children:s("Every site in the network will use the same settings. Site administrators will not be able to change them.","cookie-notice")})]}),t.jsxs("div",{className:"cn-toggle-row",children:[t.jsx("div",{className:"cn-radio-group__label",children:s("Global Cookie","cookie-notice")}),t.jsxs("label",{className:"cn-toggle-row__label",htmlFor:k,children:[t.jsx("input",{id:k,type:"checkbox",className:"cn-toggle-row__input",checked:d.global_cookie,disabled:!u,onChange:A=>_("global_cookie",A.target.checked)}),t.jsx("span",{className:"cn-toggle-row__text",children:s("Enable global network cookie consent.","cookie-notice")})]}),t.jsxs("div",{className:"cn-toggle-row__desc",children:[s("Cookie consent in one of the network sites results in a consent in all of the sites on the network.","cookie-notice"),!u&&t.jsxs(t.Fragment,{children:[" ",s("This option works only for domain-based networks.","cookie-notice")]})]})]}),t.jsxs("div",{className:"cn-plugin-settings__actions",children:[t.jsx(Ue,{variant:"primary",onClick:b,disabled:h,children:s(h?"Saving…":"Save network settings","cookie-notice")}),x&&t.jsxs("span",{className:"cn-plugin-settings__saved",children:["✓"," ",s("Saved","cookie-notice")]})]})]})}function Gp({onConnect:i}){const c=Re();return t.jsxs(t.Fragment,{children:[t.jsx(On,{title:s("Domain Info","cookie-notice"),children:t.jsxs("div",{className:"cn-dom-rows",children:[t.jsxs("div",{className:"cn-dom-row",children:[t.jsx("span",{className:"cn-dom-row__k",children:s("Domain","cookie-notice")}),t.jsx("span",{className:"cn-dom-row__v",children:window.location.hostname})]}),t.jsxs("div",{className:"cn-dom-row",children:[t.jsx("span",{className:"cn-dom-row__k",children:s("Status","cookie-notice")}),t.jsxs("span",{className:"cn-dom-row__v",children:[t.jsx("span",{className:"cn-dot cn-dot--gray"})," ",s(c?"Managed by network":"Not connected","cookie-notice")]})]})]})}),!c&&t.jsxs(On,{title:s("Why Connect?","cookie-notice"),children:[t.jsxs("ul",{className:"cn-benefit-list",children:[t.jsxs("li",{className:"cn-benefit-item",children:[t.jsx("span",{className:"cn-benefit-icon",children:"✓"}),t.jsx("span",{children:s("Automated script blocking before visitor consent","cookie-notice")})]}),t.jsxs("li",{className:"cn-benefit-item",children:[t.jsx("span",{className:"cn-benefit-icon",children:"✓"}),t.jsx("span",{children:s("Cookie categorization across your entire site","cookie-notice")})]}),t.jsxs("li",{className:"cn-benefit-item",children:[t.jsx("span",{className:"cn-benefit-icon",children:"✓"}),t.jsx("span",{children:s("Consent proof collection for legal audit trails","cookie-notice")})]}),t.jsxs("li",{className:"cn-benefit-item",children:[t.jsx("span",{className:"cn-benefit-icon",children:"✓"}),t.jsx("span",{children:s("Visitor analytics and consent rate reporting","cookie-notice")})]}),t.jsxs("li",{className:"cn-benefit-item",children:[t.jsx("span",{className:"cn-benefit-icon",children:"✓"}),t.jsx("span",{children:s("Google Consent Mode v2 (Facebook & Microsoft on Pro)","cookie-notice")})]})]}),t.jsx("div",{className:"cn-connect-cta",children:t.jsxs("button",{className:"cn-button cn-button--primary cn-connect-cta__btn",onClick:i,type:"button",children:[s("Connect Your Site","cookie-notice")," →"]})})]})]})}function Vp({addNotice:i,onOpenPricingModal:c}){return t.jsxs(t.Fragment,{children:[t.jsx(Wt,{addNotice:i}),t.jsx(op,{onOpenPricingModal:c})]})}function Hp({addNotice:i,onOpenWelcomeModal:c,onOpenPricingModal:u}){var C;const{isBannerOnly:d}=Ze(),p=m3(),h=!!((C=window.cnReactData)!=null&&C.network),{showLawWizard:m,lawClosing:x,lawScrollTrigger:v,closeLawWizard:g,showConsentPanel:k,consentClosing:_,consentScrollTrigger:b,closeConsentPanel:A}=ki();if(d){const D=p.networkManaged;return t.jsxs(In,{sidebar:t.jsx(Gp,{onConnect:c}),children:[t.jsxs("div",{className:"cn-protection-header",children:[t.jsx("h1",{className:"cn-protection-header__title",children:s("Cookie Consent","cookie-notice")}),t.jsx("p",{className:"cn-protection-header__subtitle",children:s(D?"Managed by your network administrator — this site uses the network settings.":"Connect your site to enable consent management features.","cookie-notice")})]}),h&&t.jsx(Kl,{addNotice:i}),t.jsxs(as,{managed:D,perSite:p.perSite,children:[D&&t.jsx(Gl,{}),t.jsx(sp,{options:p.options,update:p.update,save:p.save,loading:p.loading,saved:p.saved,error:p.error}),t.jsx(yp,{options:p.options,update:p.update,updateNested:p.updateNested}),!D&&t.jsx(_p,{onConnect:c}),t.jsx(Hl,{addNotice:i,options:p.options,update:p.update,updateNested:p.updateNested,save:p.save,reset:p.reset,loading:p.loading,saved:p.saved,error:p.error})]})]})}return t.jsxs(In,{sidebar:t.jsx(Vp,{addNotice:i,onOpenPricingModal:u}),children:[t.jsxs("div",{className:"cn-protection-header",children:[t.jsx("h1",{className:"cn-protection-header__title",children:s("Cookie Consent","cookie-notice")}),t.jsx("p",{className:"cn-protection-header__subtitle",children:s("Manage your banner, laws, consent signals, and languages.","cookie-notice")})]}),h&&t.jsx(Kl,{addNotice:i}),t.jsxs(as,{managed:p.networkManaged,perSite:p.perSite,children:[!p.perSite&&t.jsx(Gl,{}),t.jsx(Ip,{}),m&&t.jsx(Tl,{onClose:g,onSave:g,scrollTrigger:v,isClosing:x}),k&&t.jsx(Fl,{isOpen:!0,onClose:A,addNotice:i,onOpenPricingModal:u,onApplied:()=>{},scrollTrigger:b,isClosing:_}),t.jsx(Cp,{wpOptions:p.options,confirmedOptions:p.confirmed,update:p.update,scheduleSave:p.scheduleSave,blockingPaused:p.blockingPaused,blockingState:p.blockingState,savingKeys:p.savingKeys,unconfirmedKeys:p.unconfirmedKeys,checkingKeys:p.checkingKeys,pullUnknownKeys:p.pullUnknownKeys,autoSaveError:p.autoSaveError,onOpenPricingModal:u}),t.jsx(Hl,{addNotice:i,options:p.options,update:p.update,updateNested:p.updateNested,save:p.save,reset:p.reset,loading:p.loading,saved:p.saved,error:p.error})]})]})}function Ii({title:i,action:c,onAction:u}){return t.jsxs("div",{className:"cn-section-header",children:[t.jsx("h2",{children:i}),c&&t.jsx("button",{type:"button",className:"cn-section-header__action",onClick:u,children:c})]})}function Kp({onActivate:i}){return t.jsxs("div",{className:"cn-empty-hero",children:[t.jsxs("svg",{className:"cn-empty-hero__icon",viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("circle",{cx:"40",cy:"40",r:"40",fill:"#f0faf7"}),t.jsx("rect",{x:"22",y:"16",width:"36",height:"46",rx:"4",fill:"#fff",stroke:"#e0e4e8",strokeWidth:"1.5"}),t.jsx("rect",{x:"29",y:"26",width:"22",height:"2.5",rx:"1.25",fill:"#e0e4e8"}),t.jsx("rect",{x:"29",y:"33",width:"18",height:"2.5",rx:"1.25",fill:"#e0e4e8"}),t.jsx("rect",{x:"29",y:"40",width:"20",height:"2.5",rx:"1.25",fill:"#e0e4e8"}),t.jsx("circle",{cx:"54",cy:"56",r:"14",fill:"#20c19e"}),t.jsx("path",{d:"M54 44.5l-7 3.5v5.25c0 4.594 2.975 8.881 7 9.931 4.025-1.05 7-5.337 7-9.931V48l-7-3.5z",fill:"white",fillOpacity:"0.9"}),t.jsx("path",{d:"M52.1 56.45l-2.1-2.1.96-.96 1.14 1.14 3.06-3.06.96.96-4.02 4.02z",fill:"#20c19e"})]}),t.jsx("div",{className:"cn-empty-hero__heading",children:s("No Compliance Records","cookie-notice")}),t.jsx("div",{className:"cn-empty-hero__sub",children:s("Connect to Cookie Compliance to start collecting consent proofs, audit logs, and compliance evidence.","cookie-notice")}),t.jsx(Ue,{variant:"primary",onClick:i,children:s("Connect Your Site","cookie-notice")}),t.jsx("div",{className:"cn-empty-hero__footnote",children:s("Connect your site · Free · Takes 60 seconds","cookie-notice")})]})}function Yl({breakdown:i,loading:c}){const u=i&&i.total>0,d=(i==null?void 0:i.levelLabels)||{},p=d.level3||s("Accept","cookie-notice"),h=d.level2||s("Custom","cookie-notice"),m=d.level1||s("Reject","cookie-notice"),x=u?[{value:i.total.toLocaleString(),label:s("Total Consents","cookie-notice")},{value:`${i.acceptRate}%`,label:p},{value:`${i.customRate}%`,label:h},{value:`${i.rejectRate}%`,label:m}]:[{value:c?"…":"—",label:s("Total Consents","cookie-notice")},{value:c?"…":"—",label:p},{value:c?"…":"—",label:h},{value:c?"…":"—",label:m}];return t.jsx("div",{className:"cn-consent-stats",children:x.map(v=>t.jsxs("div",{className:"cn-consent-stat",children:[t.jsx("div",{className:"cn-consent-stat__value",children:v.value}),t.jsx("div",{className:"cn-consent-stat__label",children:v.label})]},v.label))})}function Fs({columns:i,rows:c,expandable:u=!1,renderExpanded:d,pageSize:p=20,currentPage:h=1,totalPages:m=1,onPageChange:x,onSort:v,sortColumn:g,sortDirection:k="asc",emptyMessage:_=s("No data available","cookie-notice")}){const[b,A]=w.useState(new Set),C=E=>{u&&A(I=>{const R=new Set(I);return R.has(E)?R.delete(E):R.add(E),R})},D=E=>{if(!E.sortable||!v)return;const I=g===E.key&&k==="asc"?"desc":"asc";v(E.key,I)},P=E=>E.sortable?g!==E.key?t.jsx("span",{className:"cn-data-table__sort",children:t.jsx(mp,{size:14})}):t.jsx("span",{className:"cn-data-table__sort cn-data-table__sort--active",children:k==="asc"?"↑":"↓"}):null;return t.jsxs("div",{className:"cn-data-table",children:[t.jsxs("table",{className:"cn-data-table__table",children:[t.jsx("thead",{children:t.jsx("tr",{className:"cn-data-table__header",children:i.map(E=>t.jsxs("th",{className:`cn-data-table__th${E.sortable?" cn-data-table__th--sortable":""}`,onClick:()=>D(E),children:[E.label,P(E)]},E.key))})}),t.jsxs("tbody",{children:[(!c||c.length===0)&&t.jsx("tr",{children:t.jsx("td",{className:"cn-data-table__td cn-data-table__empty",colSpan:i.length,children:_})}),c==null?void 0:c.map((E,I)=>t.jsxs(t.Fragment,{children:[t.jsx("tr",{className:`cn-data-table__row${u?" cn-data-table__row--expandable":""}${b.has(I)?" cn-data-table__row--expanded":""}`,onClick:()=>C(I),children:i.map(R=>t.jsx("td",{className:"cn-data-table__td",children:E[R.key]??"—"},R.key))},I),u&&b.has(I)&&d&&t.jsx("tr",{className:"cn-data-table__expanded-row",children:t.jsx("td",{colSpan:i.length,className:"cn-data-table__expanded",children:d(E,I)})},`${I}-expanded`)]}))]})]}),m>1&&t.jsxs("div",{className:"cn-data-table__pagination",children:[t.jsx("button",{type:"button",className:"cn-data-table__page-btn",disabled:h<=1,onClick:()=>x==null?void 0:x(h-1),"aria-label":s("Previous page","cookie-notice"),children:"«"}),t.jsxs("span",{className:"cn-data-table__page-info",children:["Page ",h," of ",m]}),t.jsx("button",{type:"button",className:"cn-data-table__page-btn",disabled:h>=m,onClick:()=>x==null?void 0:x(h+1),"aria-label":s("Next page","cookie-notice"),children:"»"})]})]})}function ql({startDate:i,endDate:c,onChange:u,maxRange:d,disabled:p}){const h=v=>{const g=v.target.value;let k=c;if(d&&k){const _=new Date(g),b=new Date(k);if(Math.ceil((b-_)/(1e3*60*60*24))>d){const C=new Date(_);C.setDate(C.getDate()+d),k=C.toISOString().split("T")[0]}}u==null||u({startDate:g,endDate:k})},m=v=>{const g=v.target.value;let k=i;if(d&&k){const _=new Date(k),b=new Date(g);if(Math.ceil((b-_)/(1e3*60*60*24))>d){const C=new Date(b);C.setDate(C.getDate()-d),k=C.toISOString().split("T")[0]}}u==null||u({startDate:k,endDate:g})},x=new Date().toISOString().split("T")[0];return t.jsxs("div",{className:"cn-date-range",children:[t.jsx("input",{type:"date",className:"cn-form-field__input cn-date-range__input",value:i||"",onChange:h,max:c||x,disabled:p}),t.jsx("span",{className:"cn-date-range__separator",children:"to"}),t.jsx("input",{type:"date",className:"cn-form-field__input cn-date-range__input",value:c||"",onChange:m,min:i||void 0,max:x,disabled:p}),d&&t.jsxs("span",{className:"cn-date-range__limit",children:[d,"-day max"]})]})}const Yp={3:"accept",2:"custom",1:"reject"},qp={Essential:"essential",Analytics:"analytics",Marketing:"marketing",Functional:"functional"},Qp=()=>[{key:"id",label:s("Consent ID","cookie-notice"),sortable:!0},{key:"level",label:s("Consent Level","cookie-notice"),sortable:!0},{key:"categories",label:s("Categories","cookie-notice"),sortable:!1},{key:"date",label:s("Date / Time","cookie-notice"),sortable:!0},{key:"ip",label:s("IP Address","cookie-notice"),sortable:!1}];function Zp(i){return{id:t.jsx("span",{className:"cn-consent-id",children:i.id}),level:t.jsx("span",{className:`cn-level-pill cn-level-pill--${Yp[i.levelNum]||"custom"}`,children:i.level}),categories:t.jsx("div",{className:"cn-cat-tags",children:(i.categories||[]).map(c=>t.jsx("span",{className:`cn-cat-tag cn-cat-tag--${qp[c]||"essential"}`,children:c},c))}),date:i.date,ip:t.jsxs("span",{className:"cn-ip-masked",children:[i.ip," ",t.jsx(zs,{size:14,style:{verticalAlign:"middle"}})]})}}function Ql({maxRange:i,onStatsUpdate:c}){const u=new Date().toISOString().split("T")[0],d=new Date(Date.now()-10080*60*1e3).toISOString().split("T")[0],[p,h]=w.useState({startDate:d,endDate:u}),[m,x]=w.useState(1),[v,g]=w.useState("date"),[k,_]=w.useState("desc"),[b,A]=w.useState([]),[C,D]=w.useState(0),[P,E]=w.useState(0),[I,R]=w.useState(!0),[O,te]=w.useState(null),[J,B]=w.useState(!1),X=w.useRef(""),q=w.useCallback(async()=>{R(!0),te(null);const le=`${p.startDate}|${p.endDate}`;try{const he=await T2({page:m,start_date:p.startDate,end_date:p.endDate,sort:v,order:k});A((he.logs||[]).map(Zp)),D(he.totalPages||0),E(he.total||0),B(!!he.inactive),c&&le!==X.current&&(X.current=le,c(he.consentBreakdown||null))}catch(he){te(he.message||s("Failed to load consent logs.","cookie-notice")),c&&le!==X.current&&(X.current=le,c(null))}finally{R(!1)}},[m,p,v,k]);w.useEffect(()=>{q()},[q]);const W=le=>{h(le),x(1)},ne=(le,he)=>{g(le),_(he),x(1)};return t.jsxs("div",{className:"cn-consent-log-table",children:[t.jsxs("div",{className:"cn-consent-log-table__controls",children:[t.jsx(ql,{startDate:p.startDate,endDate:p.endDate,onChange:W,maxRange:i}),P>0&&t.jsxs("span",{className:"cn-consent-log-table__count",children:[P.toLocaleString()," record",P!==1?"s":""]})]}),O&&t.jsx("div",{className:"cn-notice cn-notice--error",children:O}),t.jsx(Fs,{columns:Qp(),rows:b,pageSize:10,currentPage:m,totalPages:C,onPageChange:x,onSort:ne,sortColumn:v,sortDirection:k,loading:I,emptyMessage:s(J?"Consent records appear here once Cookie Compliance is active.":"No consent records found for selected date range.","cookie-notice")})]})}const Xp=()=>[{key:"subject",label:s("Subject","cookie-notice"),sortable:!1},{key:"preferences",label:s("Preferences","cookie-notice"),sortable:!1},{key:"source",label:s("Source","cookie-notice"),sortable:!1},{key:"form",label:s("Form","cookie-notice"),sortable:!1},{key:"date",label:s("Date","cookie-notice"),sortable:!1},{key:"ip",label:s("IP address","cookie-notice"),sortable:!1}],Jp=i=>{var c;return{subject:i.subject||"—",preferences:(c=i.preferences)!=null&&c.length?i.preferences.join(", "):"—",source:i.source||"—",form:i.form||"—",date:i.date||"—",ip:i.ip||"—"}};function Zl({isFree:i}){const[c,u]=w.useState(1),[d,p]=w.useState([]),[h,m]=w.useState(0),[x,v]=w.useState(!1),[g,k]=w.useState(!0),[_,b]=w.useState(null);return w.useEffect(()=>{let A=!1;return k(!0),b(null),M2({page:c}).then(C=>{A||(p((C.logs||[]).map(Jp)),m(C.totalPages||0),v(!!C.inactive))}).catch(C=>{A||(p([]),b(C.message||s("Failed to load consent logs.","cookie-notice")))}).finally(()=>!A&&k(!1)),()=>{A=!0}},[c]),t.jsxs("div",{className:"cn-consent-log-table cn-privacy-consent-logs",children:[t.jsxs("p",{className:"cn-privacy-consent-logs__desc",children:[s("The table below shows the latest privacy consent records collected from the forms on your website.","cookie-notice"),i&&t.jsxs(t.Fragment,{children:[" ",s("Note: sites on the Cookie Compliance Free Plan can collect up to 100 records.","cookie-notice")]})]}),_&&t.jsx("div",{className:"cn-notice cn-notice--error",children:_}),t.jsx(Fs,{columns:Xp(),rows:d,currentPage:c,totalPages:h,onPageChange:u,emptyMessage:s(g?"Loading…":x?"Privacy consent records appear here once Cookie Compliance is active.":"No privacy consent logs found.","cookie-notice")})]})}const Xl={pass:{icon:t.jsx(Ul,{size:16}),cls:"pass"},warn:{icon:t.jsx(Bl,{size:16}),cls:"warn"},na:{icon:"–",cls:"na"}};function e0({items:i}){return t.jsx("div",{className:"cn-evidence-panel",children:i.map((c,u)=>{const d=Xl[c.status]||Xl.na;return t.jsxs("div",{className:"cn-evidence-item",children:[t.jsx("span",{className:`cn-evidence-item__icon cn-evidence-item__icon--${d.cls}`,children:d.icon}),t.jsx("span",{className:"cn-evidence-item__text",children:c.text})]},u)})})}function Jl({proLocked:i=!1,onOpenPricingModal:c}){const[u,d]=w.useState("gdpr"),{dashboard:p}=Mn(),{config:h}=wt(),x=!!((h==null?void 0:h.blocking)||{}).gpc_support,v=(p==null?void 0:p.consentCount)??0,g=Lo(),k=g==="live",_=os(g),b=k?"pass":g==="inactive"||g==="pending"?"warn":"na",A=bs(),C=[{status:b,text:k?s("Consent banner active on all pages","cookie-notice"):je(s("Consent banner on all pages — %s","cookie-notice"),_)},{status:b,text:k?s("Cookie categories clearly defined","cookie-notice"):je(s("Cookie categories — %s","cookie-notice"),_)},{status:"na",text:s("Data retention policy — verify in Admin Portal","cookie-notice")},{status:"na",text:s("DPO contact details — verify in Admin Portal","cookie-notice")}],D=[{status:x?b:"warn",text:x?k?s("Do Not Sell / Share signal honored (GPC active)","cookie-notice"):je(s("Do Not Sell / Share signal — %s","cookie-notice"),_):s("Do Not Sell / Share signal — enable GPC in Consent Signals","cookie-notice")},{status:b,text:k?s("Opt-out mechanism functional","cookie-notice"):je(s("Opt-out mechanism — %s","cookie-notice"),_)},{status:"na",text:s("Privacy policy link in banner — verify in Admin Portal","cookie-notice")},{status:"na",text:s("Consumer rights request handling — verify in Admin Portal","cookie-notice")}];function P(){const O=te=>je(s("Prior consent — %s","cookie-notice"),te);return k?A==="active"?{status:"pass",text:s("Prior consent — known trackers held until visitors agree","cookie-notice")}:A==="off"?{status:"warn",text:O(s("Autoblocking off — trackers may fire unblocked","cookie-notice"))}:A==="paused"?{status:"warn",text:O(s("Autoblocking paused — visit limit reached","cookie-notice"))}:A==="saving"?{status:"na",text:O(s("Saving autoblocking…","cookie-notice"))}:{status:"na",text:O(s("Not confirmed — reload to see the saved value","cookie-notice"))}:{status:b,text:O(_)}}const E=[P(),Re()?{status:"na",text:s("Consent withdrawal — verify in the network admin","cookie-notice")}:k?{status:v>0?"pass":"warn",text:v>0?s("Consent withdrawal mechanism available and in use","cookie-notice"):s("Consent withdrawal — no consent records yet; verify banner is live","cookie-notice")}:{status:b,text:je(s("Consent withdrawal — %s","cookie-notice"),_)},{status:"na",text:s("Cookie lifetime disclosure — verify in Admin Portal","cookie-notice")},{status:"na",text:s("Legitimate interest assessment — verify in Admin Portal","cookie-notice")}],I=[{key:"gdpr",label:s("GDPR","cookie-notice"),items:C,locked:!1},{key:"ccpa",label:s("CCPA","cookie-notice"),items:D,locked:!1},{key:"eprivacy",label:s("ePrivacy","cookie-notice"),items:E,locked:i}],R=I.find(O=>O.key===u);return t.jsxs("div",{className:"cn-compliance-evidence",children:[t.jsx("nav",{className:"cn-evidence-tabs",children:I.map(O=>t.jsxs("button",{type:"button",className:`cn-evidence-tab${u===O.key?" cn-evidence-tab--active":""}`,onClick:()=>d(O.key),children:[O.label,O.locked&&t.jsx(Un,{})]},O.key))}),R!=null&&R.locked?t.jsx("div",{className:"cn-evidence-panel cn-evidence-panel--locked",children:t.jsxs("div",{className:"cn-evidence-lock",children:[t.jsx("span",{className:"cn-evidence-lock__icon",children:t.jsx(zs,{size:24})}),t.jsxs("p",{className:"cn-evidence-lock__msg",children:["ePrivacy compliance evidence is available on Pro.",Re()?"":" Upgrade to unlock."]}),Re()?t.jsx("p",{className:"cn-evidence-lock__msg",children:is()}):t.jsx("button",{type:"button",className:"cn-button cn-button--upgrade",onClick:()=>c&&c(),children:"Upgrade to Pro"})]})}):t.jsx(e0,{items:(R==null?void 0:R.items)||[]})]})}function n0({isPro:i=!1,onOpenPricingModal:c}){const u=new Date().toISOString().split("T")[0],d=new Date(Date.now()-720*60*60*1e3).toISOString().split("T")[0],[p,h]=w.useState({startDate:d,endDate:u}),{exportCsv:m,loading:x,error:v}=g3(),g=()=>{m==null||m({start_date:p.startDate,end_date:p.endDate})};return i?t.jsxs("div",{className:"cn-export-section",children:[t.jsx("div",{className:"cn-export-section__label",children:s("Export Consent Log","cookie-notice")}),t.jsx(ql,{startDate:p.startDate,endDate:p.endDate,onChange:h}),t.jsx(Ue,{variant:"primary",onClick:g,disabled:x,children:x?"Exporting…":"Export CSV"}),v&&t.jsx("div",{className:"cn-export-section__error",children:v})]}):t.jsx(Ss,{requiredTier:"pro",message:s("Upgrade to Pro to export consent logs as CSV.","cookie-notice"),onCta:c,children:t.jsxs("div",{className:"cn-export-section cn-export-section--locked",children:[t.jsx("div",{className:"cn-export-section__label",children:s("Export Consent Log","cookie-notice")}),t.jsx(Ue,{variant:"outline",disabled:!0,children:s("Export CSV","cookie-notice")})]})})}function t0(){const i=[{id:"CID-7F2A9C",level:s("Personalized","cookie-notice"),levelNum:3,date:"2026-02-26 14:37",ip:"192.168.x.x"},{id:"CID-4B1E3D",level:s("Balanced","cookie-notice"),levelNum:2,date:"2026-02-26 13:58",ip:"10.0.x.x"},{id:"CID-9A0F12",level:s("Private","cookie-notice"),levelNum:1,date:"2026-02-26 13:21",ip:"172.16.x.x"},{id:"CID-C3D8E5",level:s("Personalized","cookie-notice"),levelNum:3,date:"2026-02-26 12:04",ip:"192.168.x.x"},{id:"CID-2E6B7A",level:s("Balanced","cookie-notice"),levelNum:2,date:"2026-02-25 22:49",ip:"10.0.x.x"}],c=[{type:"banner",what:s("Position changed to Bottom","cookie-notice"),when:"Feb 25, 14:03"},{type:"setting",what:s("GDPR regulation enabled","cookie-notice"),when:"Feb 23, 09:41"},{type:"scan",what:s("3 new scripts detected & categorized","cookie-notice"),when:"Feb 22, 16:18"},{type:"setting",what:s("Google Consent Mode v2 activated","cookie-notice"),when:"Feb 20, 11:05"}],u={3:"accept",2:"custom",1:"reject"},d={banner:s("Banner","cookie-notice"),setting:s("Setting","cookie-notice"),scan:s("Scan","cookie-notice")};return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"cn-blurred-teaser__section",children:[t.jsxs("div",{className:"cn-blurred-teaser__section-header",children:[t.jsx("span",{className:"cn-blurred-teaser__section-title",children:s("Cookie Consent Log","cookie-notice")}),t.jsx("span",{className:"cn-blurred-teaser__section-meta",children:s("3,241 total records — showing 1–5","cookie-notice")})]}),t.jsxs("table",{className:"cn-blurred-teaser__table",children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:s("Consent ID","cookie-notice")}),t.jsx("th",{children:s("Consent Level","cookie-notice")}),t.jsx("th",{children:s("Date / Time","cookie-notice")}),t.jsx("th",{children:s("IP Address","cookie-notice")})]})}),t.jsx("tbody",{children:i.map(p=>t.jsxs("tr",{children:[t.jsx("td",{children:t.jsx("span",{className:"cn-consent-id",children:p.id})}),t.jsx("td",{children:t.jsx("span",{className:`cn-level-pill cn-level-pill--${u[p.levelNum]}`,children:p.level})}),t.jsx("td",{children:p.date}),t.jsx("td",{children:t.jsx("span",{className:"cn-ip-masked",children:p.ip})})]},p.id))})]})]}),t.jsxs("div",{className:"cn-blurred-teaser__section",children:[t.jsxs("div",{className:"cn-blurred-teaser__section-header",children:[t.jsx("span",{className:"cn-blurred-teaser__section-title",children:s("Config Change History","cookie-notice")}),t.jsx("span",{className:"cn-blurred-teaser__section-meta",children:s("Last 30 days","cookie-notice")})]}),t.jsx("div",{className:"cn-blurred-teaser__timeline",children:c.map((p,h)=>t.jsxs("div",{className:"cn-blurred-teaser__tl-row",children:[t.jsx("div",{className:`cn-blurred-teaser__tl-dot cn-blurred-teaser__tl-dot--${p.type}`}),t.jsxs("div",{className:"cn-blurred-teaser__tl-text",children:[t.jsxs("div",{className:"cn-blurred-teaser__tl-what",children:[t.jsx("span",{className:`cn-change-badge cn-change-badge--${p.type}`,children:d[p.type]}),p.what]}),t.jsx("div",{className:"cn-blurred-teaser__tl-when",children:p.when})]})]},h))})]})]})}function o0(){return t.jsxs(t.Fragment,{children:[t.jsx(Wt,{showPortalLink:!1}),!Re()&&t.jsx(On,{title:s("Why Connect?","cookie-notice"),children:t.jsx("ul",{className:"cn-benefit-list",children:[s("Timestamped consent proofs for every visitor interaction","cookie-notice"),s("Searchable audit log for GDPR and CCPA regulators","cookie-notice"),s("Config change history — who changed what and when","cookie-notice"),s("Exportable compliance evidence in one click","cookie-notice"),s("Prove compliance if you ever face a regulatory inquiry","cookie-notice")].map((i,c)=>t.jsxs("li",{className:"cn-benefit-item",children:[t.jsx("span",{className:"cn-benefit-item__icon",children:t.jsx(Ul,{size:16})}),t.jsx("span",{children:i})]},c))})})]})}function e1({isPro:i,onOpenPricingModal:c,addNotice:u}){return t.jsxs(t.Fragment,{children:[t.jsx(Wt,{addNotice:u}),t.jsxs(On,{title:s("Consent history","cookie-notice"),children:[t.jsxs("div",{className:`cn-retention-info${i?" cn-retention-info--pro":""}`,children:[t.jsx("span",{className:"cn-retention-info__value",children:s(i?"No 7-day limit":"7-day history","cookie-notice")}),t.jsx("span",{className:"cn-retention-info__label",children:s(i?"Pro plan":"Free plan","cookie-notice")})]}),!i&&t.jsx("p",{className:"cn-retention-info__note",children:s("Upgrade to Pro to remove the 7-day limit.","cookie-notice")})]}),t.jsx(On,{title:s("Export","cookie-notice"),children:t.jsx(n0,{isPro:i,onOpenPricingModal:c??void 0})})]})}function i0({addNotice:i,onOpenWelcomeModal:c,onOpenPricingModal:u}){const{isBannerOnly:d,isFree:p}=Ze(),h=Ai(),[m,x]=w.useState(null),[v,g]=w.useState(!0),k=_=>{x(_),g(!1)};if(h)return t.jsxs(In,{sidebar:t.jsx(Wt,{addNotice:i}),children:[t.jsx("div",{className:"cn-protection-header",children:t.jsx("h1",{className:"cn-protection-header__title",children:s("Consent Logs","cookie-notice")})}),t.jsx(ss,{})]});if(d){const _=Re();return t.jsxs(In,{sidebar:t.jsx(o0,{}),children:[t.jsxs("div",{className:"cn-protection-header",children:[t.jsx("h1",{className:"cn-protection-header__title",children:s("Consent Logs","cookie-notice")}),t.jsx("p",{className:"cn-protection-header__subtitle",children:s("Consent logs, compliance evidence, and configuration history.","cookie-notice")})]}),_?t.jsx(rs,{}):t.jsx(Kp,{onActivate:()=>c&&c()}),t.jsxs("div",{className:"cn-blurred-teaser",children:[t.jsx("div",{className:"cn-blurred-teaser__blur",children:t.jsx(t0,{})}),t.jsxs("div",{className:"cn-blurred-teaser__overlay",children:[t.jsx("span",{className:"cn-blurred-teaser__overlay-icon",children:t.jsx(Ol,{size:24})}),t.jsx("div",{className:"cn-blurred-teaser__overlay-label",children:s("Full Compliance Audit Trail","cookie-notice")}),t.jsx("div",{className:"cn-blurred-teaser__overlay-sub",children:s("Consent logs, config timeline, compliance evidence & more","cookie-notice")}),!_&&t.jsx(Ue,{variant:"primary",onClick:()=>c&&c(),children:s("Connect Your Site","cookie-notice")})]})]})]})}return p?t.jsxs(In,{sidebar:t.jsx(e1,{isPro:!1,onOpenPricingModal:u,addNotice:i}),children:[t.jsxs("div",{className:"cn-protection-header",children:[t.jsx("h1",{className:"cn-protection-header__title",children:s("Consent Logs","cookie-notice")}),t.jsx("p",{className:"cn-protection-header__subtitle",children:s("Consent logs and compliance evidence for your site.","cookie-notice")})]}),t.jsx(Yl,{breakdown:m,loading:v}),t.jsx(Ql,{maxRange:7,onStatsUpdate:k}),t.jsx(Ii,{title:s("Form Consent","cookie-notice")}),t.jsx(Zl,{isFree:!0}),t.jsx(Ii,{title:s("Compliance Evidence","cookie-notice")}),t.jsx(Jl,{proLocked:!0,onOpenPricingModal:u})]}):t.jsxs(In,{sidebar:t.jsx(e1,{isPro:!0,onOpenPricingModal:u,addNotice:i}),children:[t.jsxs("div",{className:"cn-protection-header",children:[t.jsx("h1",{className:"cn-protection-header__title",children:s("Consent Logs","cookie-notice")}),t.jsx("p",{className:"cn-protection-header__subtitle",children:s("Full consent log history, compliance evidence, and configuration timeline.","cookie-notice")})]}),t.jsx(Yl,{breakdown:m,loading:v}),t.jsx(Ql,{onStatsUpdate:k}),t.jsx(Ii,{title:s("Form Consent","cookie-notice")}),t.jsx(Zl,{isFree:!1}),t.jsx(Ii,{title:s("Compliance Evidence","cookie-notice")}),t.jsx(Jl,{proLocked:!1,onOpenPricingModal:u})]})}const r0=i=>[{key:"title",label:s("Form Title","cookie-notice"),sortable:i},{key:"id",label:s("Form ID","cookie-notice"),sortable:!1},{key:"fields",label:s("Fields","cookie-notice"),sortable:!1},{key:"date",label:s("Date","cookie-notice"),sortable:!1},{key:"status",label:s("Status","cookie-notice"),sortable:!1}];function s0({source:i,disabled:c,busy:u,onSave:d,onToggleForm:p,onLoadForms:h}){const m=w.useId(),x=c||!i.availability,[v,g]=w.useState({active:!!i.active,activeType:i.activeType});w.useEffect(()=>{g({active:!!i.active,activeType:i.activeType})},[i.active,i.activeType,i.rev]);const k={};v.active!==!!i.active&&(k.active=v.active),v.activeType!==i.activeType&&(k.activeType=v.activeType);const _=Object.keys(k).length>0,b=v.activeType==="all",A=i.type==="dynamic",C=i.forms||{items:[],page:1,maxPages:0},D=i.availability?i.active?s("On","cookie-notice"):s("Off","cookie-notice"):s("Plugin not active","cookie-notice"),P=(C.items||[]).map(E=>({title:t.jsx("strong",{children:E.title}),id:String(E.id),fields:String(E.fieldCount),date:E.date||"—",status:t.jsx("input",{type:"checkbox",className:"cn-privacy-form-toggle","aria-label":je(s("Privacy consent for %s","cookie-notice"),E.title),checked:b||!!E.status,disabled:x||u||b,onChange:I=>p(E.id,I.target.checked)})}));return t.jsx("div",{className:`cn-privacy-source${i.availability?"":" cn-privacy-source--unavailable"}`,"data-source":i.id,children:t.jsxs(Kn,{title:i.name,subtitle:D,defaultOpen:i.active,children:[t.jsxs("div",{className:"cn-toggle-row",children:[t.jsxs("label",{className:"cn-toggle-row__label",htmlFor:m,children:[t.jsx("input",{id:m,type:"checkbox",className:"cn-toggle-row__input cn-privacy-source__status",checked:i.availability&&v.active,disabled:x||u,onChange:E=>g(I=>({...I,active:E.target.checked}))}),t.jsx("span",{className:"cn-toggle-row__text",children:je(s("Enable to apply privacy consent support for %s forms.","cookie-notice"),i.name)})]}),!i.availability&&t.jsx("div",{className:"cn-toggle-row__desc",children:je(s("Install and activate %s to record consent from its forms.","cookie-notice"),i.name)})]}),i.availability&&v.active&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"cn-radio-group",children:t.jsx("div",{className:"cn-radio-group__options",children:[{value:"all",label:s("Apply to all forms","cookie-notice")},{value:"selected",label:s("Apply to selected forms","cookie-notice")}].map(E=>t.jsxs("label",{className:"cn-radio-group__option",children:[t.jsx("input",{type:"radio",name:`cn-privacy-${i.id}-type`,value:E.value,checked:v.activeType===E.value,disabled:x||u,onChange:()=>g(I=>({...I,activeType:E.value}))}),t.jsx("span",{children:E.label})]},E.value))})}),t.jsx("div",{className:`cn-privacy-source__forms${u?" cn-privacy-source__forms--busy":""}`,children:t.jsx(Fs,{columns:r0(A),rows:P,currentPage:C.page||1,totalPages:A?C.maxPages||0:1,onPageChange:E=>h(E,i.order||"asc"),onSort:(E,I)=>h(1,I),sortColumn:A?"title":void 0,sortDirection:i.order||"asc",emptyMessage:s("No forms found.","cookie-notice")})})]}),i.availability&&t.jsx("div",{className:"cn-privacy-source__save",children:t.jsx(Ue,{variant:"primary",disabled:x||u||!_,onClick:()=>d(k),children:s("Save Changes","cookie-notice")})})]})})}function a0({status:i,onOpenWelcomeModal:c}){var x;const u=((x=window.cnReactData)==null?void 0:x.app_id)||"",d=i==="active"||i==="pending"?i:u?"unconfirmed":"inactive",p={active:s("Connected","cookie-notice"),pending:s("Pending","cookie-notice"),unconfirmed:s("Not confirmed","cookie-notice"),inactive:s("Not connected","cookie-notice")}[d],h={active:"green",pending:"yellow",unconfirmed:"gray",inactive:"gray"}[d],m=`${sn}/#/dashboard${u?`?app-id=${encodeURIComponent(u)}`:""}`;return t.jsxs(On,{title:s("Compliance Status","cookie-notice"),children:[t.jsx("div",{className:"cn-dom-rows",children:t.jsxs("div",{className:"cn-dom-row",children:[t.jsx("span",{className:"cn-dom-row__k",children:s("Connection","cookie-notice")}),t.jsxs("span",{className:"cn-dom-row__v",children:[t.jsx("span",{className:`cn-dot cn-dot--${h}`})," ",p]})]})}),Re()?t.jsx("p",{className:"cn-conn-hint",children:is()}):d==="inactive"?t.jsx("div",{className:"cn-connect-cta",children:t.jsx("button",{type:"button",className:"cn-button cn-button--primary cn-connect-cta__btn",onClick:c,children:s("Connect Your Site","cookie-notice")})}):t.jsx("div",{className:"cn-connect-cta",children:t.jsx("a",{className:"cn-button cn-button--outline cn-connect-cta__btn",href:m,target:"_blank",rel:"noreferrer",children:s("Open Admin Portal","cookie-notice")})})]})}function c0({addNotice:i,onOpenWelcomeModal:c}){var J;const{isBannerOnly:u}=Ze(),[d,p]=w.useState(null),[h,m]=w.useState(null),[x,v]=w.useState({}),[g,k]=w.useState(0),_=w.useRef(Promise.resolve());w.useEffect(()=>{hs().then(p).catch(B=>m(B.message||s("Failed to load privacy consent settings.","cookie-notice")))},[]);const b=w.useCallback((B,X)=>{p(q=>q&&{...q,sources:q.sources.map(W=>W.id===B?{...W,...typeof X=="function"?X(W):X}:W)})},[]),A=w.useCallback(B=>{k(q=>q+1);const X=_.current.then(B).finally(()=>k(q=>q-1));return _.current=X.catch(()=>{}),X},[]),C=w.useCallback(async(B,X=1,q="asc")=>{v(W=>({...W,[B]:!0}));try{const ne=((await hs({source:B,page:X,order:q})).sources||[]).find(le=>le.id===B);ne&&b(B,{forms:ne.forms,order:q})}catch(W){i==null||i(W.message||s("Failed to load forms.","cookie-notice"),"error")}finally{v(W=>({...W,[B]:!1}))}},[i,b]),D=(B,X,q)=>b(B,W=>({forms:{...W.forms,items:W.forms.items.map(ne=>String(ne.id)===String(X)?{...ne,status:q}:ne)}})),P=(B,X)=>A(async()=>{try{((await R2({[B]:X})).sources||[]).forEach(W=>b(W.id,ne=>({active:W.active,activeType:W.activeType,...W.id===B?{rev:(ne.rev||0)+1}:{}}))),i==null||i(s("Settings saved.","cookie-notice"),"success")}catch(q){i==null||i(q.message||s("Settings could not be saved.","cookie-notice"),"error")}}),E=(B,X,q)=>(D(B,X,q),A(async()=>{try{const W=await z2(B,X,q);b(B,{active:W.source.active,activeType:W.source.activeType}),D(B,X,W.status)}catch(W){D(B,X,!q),i==null||i(W.message||s("Settings could not be saved.","cookie-notice"),"error")}})),I=(d==null?void 0:d.status)??((J=window.cnReactData)==null?void 0:J.status)??"",R=I==="active",O=!!(d!=null&&d.readOnly),te=t.jsx("div",{className:"cn-privacy-consent",children:((d==null?void 0:d.sources)||[]).map(B=>t.jsx(s0,{source:B,disabled:!R||O,busy:g>0||!!x[B.id],onSave:X=>P(B.id,X),onToggleForm:(X,q)=>E(B.id,X,q),onLoadForms:(X,q)=>C(B.id,X,q)},B.id))});return t.jsxs(In,{sidebar:t.jsx(a0,{status:I,onOpenWelcomeModal:c}),children:[t.jsxs("div",{className:"cn-protection-header",children:[t.jsx("h1",{className:"cn-protection-header__title",children:s("Privacy Consent","cookie-notice")}),t.jsx("p",{className:"cn-protection-header__subtitle",children:s("Record proof of consent from the forms on your website.","cookie-notice")})]}),O&&t.jsx(Ut,{type:"info",children:s("Privacy Consent settings are managed on each site of the network.","cookie-notice")}),!O&&d&&!R&&!u&&t.jsx(Ut,{type:"warning",children:s("Privacy Consent requires an active Cookie Compliance connection.","cookie-notice")}),h&&t.jsx(Ut,{type:"error",children:h}),!d&&!h&&t.jsx("p",{className:"cn-privacy-consent__loading",children:s("Loading…","cookie-notice")}),d&&(u?t.jsx(Ss,{requiredTier:"free",onCta:c,message:s("Sign up to Cookie Compliance and enable Privacy Consent support.","cookie-notice"),children:te}):te)]})}var l0=Bc();const n1={sm:480,md:720,lg:960},t1='a[href],button:not([disabled]),textarea:not([disabled]),input:not([disabled]),select:not([disabled]),[tabindex]:not([tabindex="-1"])';function o1({isOpen:i,onClose:c,size:u="md",title:d,children:p}){const h=w.useRef(null),m=w.useRef(null),x=w.useCallback(_=>{if(_.key==="Escape"&&c){c();return}if(_.key==="Tab"&&h.current){const b=h.current.querySelectorAll(t1);if(b.length===0){_.preventDefault();return}const A=b[0],C=b[b.length-1];_.shiftKey&&document.activeElement===A?(_.preventDefault(),C.focus()):!_.shiftKey&&document.activeElement===C&&(_.preventDefault(),A.focus())}},[c]);if(w.useEffect(()=>{let _;return i&&(m.current=document.activeElement,document.addEventListener("keydown",x),document.body.style.overflow="hidden",_=setTimeout(()=>{if(h.current){const b=h.current.querySelector(t1);b?b.focus():h.current.focus()}},50)),()=>{clearTimeout(_),document.removeEventListener("keydown",x),document.body.style.overflow="",m.current&&typeof m.current.focus=="function"&&(m.current.focus(),m.current=null)}},[i,x]),!i)return null;const v=_=>{_.target===_.currentTarget&&c&&c()},g={position:"fixed",top:0,right:0,bottom:0,left:0,background:"rgba(0,0,0,0.6)",zIndex:1e5,display:"flex",alignItems:"center",justifyContent:"center",padding:"32px"},k=d?"cn-modal-title":void 0;return l0.createPortal(t.jsx("div",{className:"cn-modal-overlay",style:g,onClick:v,children:t.jsxs("div",{ref:h,className:`cn-modal cn-modal--${u}`,style:{maxWidth:n1[u]||n1.md},role:"dialog","aria-modal":"true","aria-labelledby":k,tabIndex:-1,children:[t.jsx("button",{className:"cn-modal__close",onClick:c,type:"button","aria-label":s("Close","cookie-notice"),children:"×"}),d&&t.jsx("div",{className:"cn-modal__header",id:k,children:d}),t.jsx("div",{className:"cn-modal__content",children:p})]})}),document.body)}function u0({steps:i,currentStep:c=0,onStepClick:u}){return t.jsx("div",{className:"cn-step-dots",role:"group","aria-label":s("Progress","cookie-notice"),children:i.map((d,p)=>{const h=p<c,m=p===c,x=typeof d=="string"?d:`Step ${p+1}`;let v="cn-step-dot";return h&&(v+=" cn-step-dot--done"),m&&(v+=" cn-step-dot--active"),t.jsx("div",{className:v,role:"tab","aria-selected":m,"aria-label":h?je(s("%s (completed)","cookie-notice"),x):x,"aria-current":m?"step":void 0,onClick:h&&u?()=>u(p):void 0,style:h&&u?{cursor:"pointer"}:void 0,tabIndex:h&&u?0:-1},p)})})}function d0({onBannerOnly:i,onProtect:c,onComply:u,onLearnMore:d}){var m;const h=(((m=window.cnReactData)==null?void 0:m.detectedPlugins)||[]).includes("google");return t.jsxs("div",{className:"cn-welcome-step cn-welcome-step--choose",children:[t.jsx("h1",{className:"cn-choose__heading",children:s("Choose your protection level","cookie-notice")}),h&&t.jsxs("div",{className:"cn-choose__google-notice",children:[t.jsx("strong",{children:s("Google tools detected.","cookie-notice")})," ",s("Make sure Google Consent Mode is configured during setup.","cookie-notice")]}),t.jsxs("div",{className:"cn-protection-cards",children:[t.jsxs("div",{className:"cn-protection-card",children:[t.jsx("span",{className:"cn-protection-card__badge cn-protection-card__badge--risk",children:s("Banner Only","cookie-notice")}),t.jsx("div",{className:"cn-protection-card__icon cn-protection-card__icon--banner",children:t.jsx(fp,{size:32})}),t.jsx("h4",{className:"cn-protection-card__title",children:s("I just want a banner","cookie-notice")}),t.jsx("p",{className:"cn-protection-card__subtitle",children:s("Display-only notice, no compliance features","cookie-notice")}),t.jsx("div",{className:"cn-protection-card__divider"}),t.jsx("div",{className:"cn-protection-card__price-label",children:s("Banner Only","cookie-notice")}),t.jsx("span",{className:"cn-protection-card__price-note cn-protection-card__price-note--danger",children:s("Does not meet GDPR requirements","cookie-notice")}),t.jsxs("ul",{className:"cn-protection-card__features",children:[t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Cookie notice banner","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Accept / Reject buttons","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Custom colors & text","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--excluded",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✗"}),s("No consent records","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--excluded",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✗"}),s("No script blocking","cookie-notice")]})]}),t.jsx("div",{className:"cn-protection-card__footer",children:t.jsx("button",{type:"button",className:"cn-protection-card__btn cn-protection-card__btn--ghost",onClick:i,children:s("Just the Banner","cookie-notice")})})]}),t.jsxs("div",{className:"cn-protection-card cn-protection-card--recommended",children:[t.jsx("span",{className:"cn-protection-card__badge cn-protection-card__badge--rec",children:s("Recommended","cookie-notice")}),t.jsx("div",{className:"cn-protection-card__icon cn-protection-card__icon--protect",children:t.jsx(ap,{size:32})}),t.jsx("h4",{className:"cn-protection-card__title",children:s("For small sites","cookie-notice")}),t.jsx("p",{className:"cn-protection-card__subtitle",children:s("Essential compliance, no credit card required","cookie-notice")}),t.jsx("div",{className:"cn-protection-card__divider"}),t.jsx("div",{className:"cn-protection-card__price-label",children:s("Sign Up Free","cookie-notice")}),t.jsx("span",{className:"cn-protection-card__price-note",children:s("Up to 1,000 visits per 30-day cycle","cookie-notice")}),t.jsxs("ul",{className:"cn-protection-card__features",children:[t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Best for sites without ads","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),"Google Consent Mode v2"]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Tracker blocking","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Standard Support","cookie-notice")]})]}),t.jsx("div",{className:"cn-protection-card__footer",children:t.jsx("button",{type:"button",className:"cn-protection-card__btn cn-protection-card__btn--primary",onClick:c,children:s("Protect My Business","cookie-notice")})})]}),t.jsxs("div",{className:"cn-protection-card",children:[t.jsx("span",{className:"cn-protection-card__badge cn-protection-card__badge--max",children:s("Full Compliance","cookie-notice")}),t.jsx("div",{className:"cn-protection-card__icon cn-protection-card__icon--comply",children:t.jsx(dp,{size:32})}),t.jsx("h4",{className:"cn-protection-card__title",children:s("Ensure full compliance","cookie-notice")}),t.jsx("p",{className:"cn-protection-card__subtitle",children:s("Full coverage for EU, US & growing businesses","cookie-notice")}),t.jsx("div",{className:"cn-protection-card__divider"}),t.jsx("div",{className:"cn-protection-card__price-label",children:"$14.95/mo"}),t.jsx("span",{className:"cn-protection-card__price-note",children:s("Unlimited visitors protected","cookie-notice")}),t.jsxs("ul",{className:"cn-protection-card__features",children:[t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Best for sites with analytics","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Facebook & Microsoft Consent Modes","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Global Privacy Control","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Geolocation rules — show right banner by country","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Full consent history & export","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Advanced autoblocking + script categorization","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Priority Support","cookie-notice")]})]}),t.jsx("div",{className:"cn-protection-card__footer",children:t.jsx("button",{type:"button",className:"cn-protection-card__btn cn-protection-card__btn--secondary",onClick:u,children:s("Ensure Full Compliance","cookie-notice")})})]})]})]})}const p0=[{domains:1,monthly:14.95,yearly:149.5,perDomain:null,popular:!0},{domains:5,monthly:29.95,yearly:299.5,perDomain:5.99},{domains:10,monthly:49.95,yearly:499.5,perDomain:4.99}];function f0({onSelectPlan:i,onBack:c}){const[u,d]=w.useState("monthly");return t.jsxs("div",{className:"cn-welcome-step cn-welcome-step--pro-pricing",children:[t.jsx("button",{type:"button",className:"cn-pro-pricing__back cn-pro-pricing__back--top",onClick:c,children:"← Back to protection options"}),t.jsxs("div",{className:"cn-pro-pricing__hero",children:[t.jsx("h1",{className:"cn-pro-pricing__heading",children:s("Cookie Compliance — Professional","cookie-notice")}),t.jsx("p",{className:"cn-pro-pricing__sub",children:"Everything you need to protect your business from privacy regulations worldwide."})]}),t.jsxs("div",{className:"cn-pro-pricing__features-band",children:[t.jsx("span",{className:"cn-pro-pricing__features-label",children:s("Everything in Free, plus:","cookie-notice")}),t.jsxs("ul",{className:"cn-pro-pricing__features-list",children:[t.jsx("li",{children:"🌍 Geolocation rules — show the right banner by country"}),t.jsx("li",{children:"📊 Facebook & Microsoft Consent Modes"}),t.jsx("li",{children:"🛡️ Global Privacy Control"}),t.jsx("li",{children:"♾️ Unlimited visits & consent history beyond 7 days"}),t.jsx("li",{children:"🔒 Advanced autoblocking & script categorization"})]})]}),t.jsxs("div",{className:"cn-pill-toggle",style:{margin:"0 auto 24px"},children:[t.jsx("button",{type:"button",className:`cn-pill-toggle__btn${u==="monthly"?" cn-pill-toggle__btn--active":""}`,onClick:()=>d("monthly"),children:"Monthly"}),t.jsxs("button",{type:"button",className:`cn-pill-toggle__btn${u==="yearly"?" cn-pill-toggle__btn--active":""}`,onClick:()=>d("yearly"),children:[s("Yearly","cookie-notice")," ",t.jsx("span",{className:"cn-pill-toggle__badge",children:s("Save 17%","cookie-notice")})]})]}),t.jsx("div",{className:"cn-pro-pricing__cards",children:p0.map(p=>t.jsxs("div",{className:`cn-pro-pricing__card${p.popular?" cn-pro-pricing__card--popular":""}`,children:[p.popular&&t.jsx("span",{className:"cn-pro-pricing__card-badge",children:s("Recommended","cookie-notice")}),t.jsx("div",{className:"cn-pro-pricing__card-domains",children:p.domains}),t.jsx("span",{className:"cn-pro-pricing__card-domains-label",children:p.domains===1?"Domain":"Domains"}),t.jsxs("div",{className:"cn-pro-pricing__card-price",children:[t.jsx("sup",{children:"$"}),u==="monthly"?p.monthly.toFixed(2):p.yearly.toFixed(2),t.jsxs("sub",{children:["/ ",u==="monthly"?"mo":"yr"]})]}),p.perDomain&&t.jsx("span",{className:"cn-pro-pricing__card-per-domain",children:je(s("%s per domain","cookie-notice"),"$"+p.perDomain.toFixed(2))}),t.jsx("button",{type:"button",className:`cn-pro-pricing__card-btn${p.popular?" cn-pro-pricing__card-btn--primary":""}`,onClick:()=>i(p.domains,u,p[u]),children:s("Select Plan","cookie-notice")})]},p.domains))}),t.jsxs("p",{className:"cn-pro-pricing__guarantee",children:["✓"," ",s("Refund on your first payment within 14 days","cookie-notice")]}),u==="yearly"&&t.jsx("p",{className:"cn-pro-pricing__billing-note",children:s("Billed annually. Cancel anytime.","cookie-notice")}),t.jsxs("div",{className:"cn-pro-pricing__legal",children:[t.jsx("a",{href:"https://hu-manity.co/terms",target:"_blank",rel:"noreferrer",children:s("Terms of Service","cookie-notice")})," · ",t.jsx("a",{href:"https://hu-manity.co/privacy",target:"_blank",rel:"noreferrer",children:s("Privacy Policy","cookie-notice")})]}),t.jsx("div",{className:"cn-pro-pricing__maybe-later",children:t.jsx("button",{type:"button",className:"cn-pro-pricing__maybe-later-btn",onClick:c,children:s("Maybe later — stay on free","cookie-notice")})})]})}const h0=()=>[{text:s("Consent records — no proof if a regulator asks","cookie-notice")},{text:s("Cookie autoblocking — scripts fire before consent","cookie-notice")},{text:s("Audit trail — no evidence if investigated","cookie-notice")},{text:s("Google Consent Mode — EU ads may be flagged","cookie-notice")}];function m0({onDismissToSettings:i,onBackToChoose:c}){const[u,d]=w.useState(!1);return t.jsx("div",{className:"cn-welcome-step cn-welcome-step--warning",children:t.jsxs("div",{className:"cn-warning-modal",children:[t.jsx("div",{className:"cn-warning-modal__icon",children:t.jsx(Bl,{size:32})}),t.jsx("h3",{className:"cn-warning-modal__heading",children:s("Are you sure?","cookie-notice")}),t.jsx("p",{className:"cn-warning-modal__text",children:s("Without Cookie Compliance, all liability falls on you.","cookie-notice")}),t.jsxs("div",{className:"cn-warning-modal__consequences",children:[t.jsx("h5",{children:s("You won’t have:","cookie-notice")}),t.jsx("ul",{children:h0().map((p,h)=>t.jsxs("li",{children:[t.jsx("span",{className:"cn-warning-modal__consequence-icon",children:"❌"}),t.jsx("span",{children:p.text})]},h))})]}),t.jsxs("label",{className:"cn-warning-modal__checkbox",children:[t.jsx("input",{type:"checkbox",checked:u,onChange:p=>d(p.target.checked)}),t.jsx("span",{children:s("I understand all liability falls on me and my business.","cookie-notice")})]}),t.jsxs("div",{className:"cn-warning-modal__actions",children:[t.jsx("button",{type:"button",className:"cn-warning-modal__btn cn-warning-modal__btn--danger",disabled:!u,onClick:i,children:s("Don’t protect my business","cookie-notice")}),t.jsxs("button",{type:"button",className:"cn-warning-modal__btn cn-warning-modal__btn--safe",onClick:c,children:[s("Protect my business","cookie-notice")," →"]})]})]})})}const i1=/^(?=.*[A-Z])(?=.*\d)[\w !"#$%&'()*+,\-./:;<=>?@[\]^\x60{|}~\\]{8,}$/,To="__new__",r1={email:{switchLabel:()=>s("Email me a code","cookie-notice")},totp:{switchLabel:()=>s("Use your authenticator app","cookie-notice")},backup:{switchLabel:()=>s("Use a backup code","cookie-notice")}};function g0({onComplete:i,onCompleteWithSubscriptions:c}){const[u,d]=w.useState("register"),[p,h]=w.useState(""),[m,x]=w.useState(""),[v,g]=w.useState(""),[k,_]=w.useState(!1),[b,A]=w.useState(!1),[C,D]=w.useState(null),[P,E]=w.useState(null),[I,R]=w.useState("email"),[O,te]=w.useState(""),[J,B]=w.useState(null),[X,q]=w.useState(0),[W,ne]=w.useState(null),[le,he]=w.useState(""),M=window.cnReactData||{},me=F=>{d(F),D(null)};w.useEffect(()=>{if(X<=0)return;const F=setTimeout(()=>q(X-1),1e3);return()=>clearTimeout(F)},[X]);const _e=()=>{if(!p)return s("Email is required.","cookie-notice");if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(p))return s("Please enter a valid email address.","cookie-notice");if(u==="register"){if(!m)return s("Password is required.","cookie-notice");if(!i1.test(m))return"Password must be 8+ characters with at least 1 capital letter and 1 number.";if(m!==v)return s("Passwords do not match.","cookie-notice");if(!k)return s("Please accept the Terms of Service to continue.","cookie-notice")}else if(!m)return s("Password is required.","cookie-notice");return null},ke=async F=>{F.preventDefault(),D(null);const H=_e();if(H){D(H);return}A(!0);try{const de=u==="register"?M.registerNonce||"":M.loginNonce||"",De=await gn(u,u==="register"?{email:p,pass:m,pass2:v,terms:"1",language:"en"}:{email:p,pass:m},de);if(De&&De.needs_code){$(De);return}if(De&&De.choose_app){ee(De);return}U(De)}catch(de){D(de.message||s("Something went wrong. Please try again.","cookie-notice"))}finally{A(!1)}},U=F=>{if(F===!0||F===1)i();else if(F&&F.error)D(F.error);else if(F!=null&&F.app_has_subscription)i();else{const H=Array.isArray(F==null?void 0:F.subscriptions)?F.subscriptions.filter(de=>parseInt(de.availablelicense,10)>0).sort((de,Ve)=>parseInt(Ve.availablelicense,10)-parseInt(de.availablelicense,10)):[];H.length>0&&c?c(H,F.fresh_nonce||""):i()}},ee=F=>{x(""),E(null),te(""),B(null),q(0),D(null),he(""),ne({apps:Array.isArray(F.apps)?F.apps:[],siteDomain:F.site_domain||"",currentAppId:F.current_app_id||""})},Q=(F=null)=>{ne(null),he(""),D(F)},S=async F=>{if(F.preventDefault(),D(null),!le){D(s("Choose one of your apps, or create a new app for this site.","cookie-notice"));return}A(!0);try{const H=await gn("login_app",{app_id:le},M.loginAppNonce||"");if(H&&H.choose_app){ee(H);return}ne(null),U(H)}catch(H){Q(H.message||s("Something went wrong. Please try again.","cookie-notice"))}finally{A(!1)}},$=F=>{const H=Array.isArray(F.methods)?F.methods:[];x(""),te(""),B(null),q(0),R(H[0]||"email"),E({email:F.email||p,methods:H,emailSent:!!F.code_sent}),H[0]==="email"&&!F.code_sent&&ue(F.email||p)},ie=(F=null)=>{E(null),te(""),B(null),q(0),D(F)},ue=async F=>{D(null),B(null);try{const H=await gn("login_code_resend");if(H&&H.code_sent)return q(H.retry_after||60),B(je(s("We sent a code to %s.","cookie-notice"),F)),E(de=>de&&{...de,emailSent:!0}),!0}catch(H){H.expired?ie(H.message):D(H.message||s("Something went wrong. Please try again.","cookie-notice"))}return!1},ge=F=>{R(F),te(""),D(null),B(null),F==="email"&&!P.emailSent&&ue(P.email)},xe=async F=>{if(F.preventDefault(),D(null),!O.trim()){D(s("Enter the verification code.","cookie-notice"));return}A(!0);try{const H=await gn("login_code",{method:I,code:O},M.loginCodeNonce||"");if(H&&H.needs_code){$(H);return}if(H&&H.choose_app){ee(H);return}U(H)}catch(H){H.expired?ie(H.message):D(H.message||s("Something went wrong. Please try again.","cookie-notice"))}finally{A(!1)}};if(W){const F=W.apps.map(H=>({id:H.id,name:H.name||H.domain||H.id,domain:H.domain&&H.domain!==H.name?H.domain:"",current:H.id===W.currentAppId}));return t.jsxs("div",{className:"cn-welcome-step cn-welcome-step--account",children:[t.jsx("h2",{className:"cn-account-heading",children:s("Choose an app","cookie-notice")}),t.jsx("p",{className:"cn-account-subtitle",children:je(s("None of your apps is for %s. Choose the app this site should use.","cookie-notice"),W.siteDomain)}),C?t.jsx("div",{className:"cn-auth-form__error",children:C}):null,t.jsxs("form",{className:"cn-auth-form",onSubmit:S,children:[t.jsxs("fieldset",{className:"cn-app-choice",children:[t.jsx("legend",{className:"screen-reader-text",children:s("Apps on your account","cookie-notice")}),F.map(H=>t.jsxs("label",{className:"cn-app-choice__option"+(le===H.id?" cn-app-choice__option--selected":""),children:[t.jsx("input",{type:"radio",name:"cn-app",value:H.id,checked:le===H.id,onChange:()=>he(H.id),disabled:b}),t.jsxs("span",{className:"cn-app-choice__text",children:[t.jsx("span",{className:"cn-app-choice__name",children:H.name}),H.domain?t.jsx("span",{className:"cn-app-choice__domain",children:H.domain}):null,H.current?t.jsx("span",{className:"cn-app-choice__badge",children:s("Connected now","cookie-notice")}):null]})]},H.id)),t.jsxs("label",{className:"cn-app-choice__option"+(le===To?" cn-app-choice__option--selected":""),children:[t.jsx("input",{type:"radio",name:"cn-app",value:To,checked:le===To,onChange:()=>he(To),disabled:b}),t.jsx("span",{className:"cn-app-choice__text",children:t.jsx("span",{className:"cn-app-choice__name",children:s("Create a new app for this site","cookie-notice")})})]})]}),le!==To&&t.jsx("p",{className:"cn-app-choice__note",children:s("This site will use that app's banner settings.","cookie-notice")}),t.jsx("div",{className:"cn-auth-form__actions",children:t.jsx("button",{type:"submit",className:"cn-button cn-button--primary cn-button--block",disabled:b||!le,children:s(b?"Connecting…":"Continue","cookie-notice")})})]}),t.jsx("div",{className:"cn-auth-form__links",children:t.jsx("button",{type:"button",className:"cn-auth-form__switch-link",onClick:()=>Q(),disabled:b,children:s("Back","cookie-notice")})})]})}if(P){const F={email:je(s("Enter the code we emailed to %s.","cookie-notice"),P.email),totp:s("Enter the code from your authenticator app.","cookie-notice"),backup:s("Enter one of your backup codes.","cookie-notice")},H=P.methods.filter(de=>de!==I&&r1[de]);return t.jsxs("div",{className:"cn-welcome-step cn-welcome-step--account",children:[t.jsx("h2",{className:"cn-account-heading",children:s("Enter the code","cookie-notice")}),t.jsx("p",{className:"cn-account-subtitle",children:F[I]}),C?t.jsx("div",{className:"cn-auth-form__error",children:C}):null,J&&!C?t.jsx("div",{className:"cn-auth-form__notice",role:"status",children:J}):null,t.jsxs("form",{className:"cn-auth-form",onSubmit:xe,autoComplete:"off",children:[t.jsx(Ce,{label:s("Verification code","cookie-notice"),type:"text",name:"cn-account-code",value:O,onChange:te,inputMode:I==="backup"?"text":"numeric",autoComplete:"one-time-code",autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,maxLength:32}),t.jsx("div",{className:"cn-auth-form__actions",children:t.jsx("button",{type:"submit",className:"cn-button cn-button--primary cn-button--block",disabled:b,children:s(b?"Signing in…":"Sign in","cookie-notice")})})]}),t.jsxs("div",{className:"cn-auth-form__links",children:[I==="email"&&t.jsx("button",{type:"button",className:"cn-auth-form__switch-link",onClick:()=>ue(P.email),disabled:b||X>0,children:X>0?`${s("Resend code","cookie-notice")} (${X})`:s("Resend code","cookie-notice")}),H.map(de=>t.jsx("button",{type:"button",className:"cn-auth-form__switch-link",onClick:()=>ge(de),disabled:b,children:r1[de].switchLabel()},de)),t.jsx("button",{type:"button",className:"cn-auth-form__switch-link",onClick:()=>ie(),disabled:b,children:s("Back","cookie-notice")})]})]})}return t.jsxs("div",{className:"cn-welcome-step cn-welcome-step--account",children:[t.jsx("h2",{className:"cn-account-heading",children:s(u==="register"?"Create your account":"Welcome back","cookie-notice")}),t.jsx("p",{className:"cn-account-subtitle",children:s(u==="register"?"Takes 30 seconds. No credit card required.":"Sign in to connect your existing Cookie Compliance account.","cookie-notice")}),t.jsxs("div",{className:"cn-pill-toggle",style:{minWidth:280,alignSelf:"center",marginBottom:24},children:[t.jsx("button",{type:"button",className:"cn-pill-toggle__btn"+(u==="register"?" cn-pill-toggle__btn--active":""),onClick:()=>me("register"),children:"Create Account"}),t.jsx("button",{type:"button",className:"cn-pill-toggle__btn"+(u==="login"?" cn-pill-toggle__btn--active":""),onClick:()=>me("login"),children:"Sign In"})]}),C==="email_exists"&&u==="register"?t.jsxs("div",{className:"cn-auth-form__error",children:[s("An account with this email already exists.","cookie-notice")," ",t.jsxs("button",{type:"button",className:"cn-auth-form__switch-link",onClick:()=>{const F=p;me("login"),h(F)},children:[s("Sign in instead","cookie-notice")," →"]})]}):C?t.jsx("div",{className:"cn-auth-form__error",children:C}):null,u==="register"?t.jsxs(t.Fragment,{children:[t.jsxs("form",{className:"cn-auth-form",onSubmit:ke,children:[t.jsx(Ce,{label:s("Email address","cookie-notice"),type:"email",value:p,onChange:h,placeholder:s("you@company.com","cookie-notice"),autoComplete:"email"}),t.jsx(Ce,{label:s("Password","cookie-notice"),type:"password",value:m,onChange:x,placeholder:s("Min. 8 characters, 1 capital, 1 number","cookie-notice"),autoComplete:"new-password"}),m&&!i1.test(m)&&t.jsx("p",{className:"cn-auth-form__field-hint",children:"Min. 8 characters, at least 1 capital letter and 1 number"}),t.jsx(Ce,{label:s("Confirm Password","cookie-notice"),type:"password",value:v,onChange:g,placeholder:s("Confirm password","cookie-notice"),autoComplete:"new-password"}),t.jsxs("label",{className:"cn-auth-form__terms",children:[t.jsx("input",{type:"checkbox",checked:k,onChange:F=>_(F.target.checked),required:!0})," ","I have read and agree to the"," ",t.jsx("a",{href:"https://hu-manity.co/terms",target:"_blank",rel:"noreferrer",children:"Terms of Service"})]}),t.jsx("div",{className:"cn-auth-form__actions",children:t.jsx("button",{type:"submit",className:"cn-button cn-button--primary cn-button--block",disabled:b||!k,children:s(b?"Creating account…":"Create Account","cookie-notice")})})]}),t.jsx("div",{className:"cn-auth-or",children:t.jsx("span",{children:s("OR","cookie-notice")})}),t.jsxs("div",{className:"cn-auth-signin-teaser",children:[t.jsx("p",{className:"cn-auth-signin-teaser__heading",children:s("Already have an account?","cookie-notice")}),t.jsx("button",{type:"button",className:"cn-button cn-button--outline-primary",onClick:()=>me("login"),children:s("Sign In","cookie-notice")})]})]}):t.jsxs("form",{className:"cn-auth-form",onSubmit:ke,autoComplete:"off",children:[t.jsxs("div",{"aria-hidden":"true",style:{position:"absolute",left:"-9999px",width:"1px",height:"1px",overflow:"hidden"},children:[t.jsx("input",{type:"text",name:"username",autoComplete:"username",tabIndex:-1,defaultValue:""}),t.jsx("input",{type:"password",name:"password",autoComplete:"current-password",tabIndex:-1,defaultValue:""})]}),t.jsx(Ce,{label:s("Email address","cookie-notice"),type:"email",name:"cn-account-email",value:p,onChange:h,placeholder:s("you@company.com","cookie-notice"),autoComplete:"username",autoCapitalize:"none",autoCorrect:"off",spellCheck:!1}),t.jsx(Ce,{label:s("Password","cookie-notice"),type:"password",name:"cn-account-password",value:m,onChange:x,placeholder:s("Your password","cookie-notice"),autoComplete:"new-password"}),t.jsx("div",{className:"cn-auth-form__forgot",children:t.jsx("a",{href:`${sn}/forgot`,target:"_blank",rel:"noreferrer",children:s("Forgot password?","cookie-notice")})}),t.jsx(Ns,{}),t.jsx("div",{className:"cn-auth-form__actions",children:t.jsx("button",{type:"submit",className:"cn-button cn-button--primary cn-button--block",disabled:b,children:s(b?"Signing in…":"Sign In","cookie-notice")})})]})]})}async function v0({plan:i,paymentNonce:c,method:u,identifier:d}){const p=window.cnReactData||{},h=new FormData;h.append("action","cn_api_request"),h.append("nonce",p.welcomeNonce||""),h.append("request","payment"),h.append("cn_payment_nonce",p.paymentNonce||""),h.append("plan",i),h.append("payment_nonce",c),h.append("method",u),h.append("cn_payment_identifier",d||""),p.network&&h.append("cn_network","1");const m=await fetch(p.ajaxURL||"/wp-admin/admin-ajax.php",{method:"POST",credentials:"same-origin",body:h});if(!m.ok)throw new Error(`Payment request failed: ${m.status}`);return Kc(await m.json())}const s1="https://js.braintreegateway.com/web/3.71.0/js";function a1(i){return new Promise((c,u)=>{if(document.querySelector(`script[src="${i}"]`)){c();return}const d=document.createElement("script");d.src=i,d.async=!0,d.onload=c,d.onerror=()=>u(new Error(`Failed to load: ${i}`)),document.head.appendChild(d)})}function c1({plan:i,onComplete:c,onBack:u=null,backLabel:d="Back",onSessionExpired:p=null}){const[h,m]=w.useState("loading"),[x,v]=w.useState(null),[g,k]=w.useState(""),[_,b]=w.useState(!1),A=w.useRef(null);w.useEffect(()=>{let E=!1;async function I(){var J,B,X,q;const R=["localhost","127.0.0.1"].includes(window.location.hostname);if(window.location.protocol!=="https:"&&!R){v(s("Secure payment requires HTTPS. Please contact your host.","cookie-notice")),m("error");return}try{await a1(`${s1}/client.min.js`),await a1(`${s1}/hosted-fields.min.js`)}catch{E||(v(s("Payment currently unavailable. Please try again later.","cookie-notice")),m("error"));return}if(typeof((B=(J=window.braintree)==null?void 0:J.client)==null?void 0:B.create)!="function"||typeof((q=(X=window.braintree)==null?void 0:X.hostedFields)==null?void 0:q.create)!="function"){E||(v(s("Payment currently unavailable. Please try again later.","cookie-notice")),m("error"));return}let O;try{const W=await gn("get_bt_init_token");if((W==null?void 0:W.status)==="session_expired"){if(!E&&p){p();return}O=null}else O=W==null?void 0:W.token}catch{O=null}if(!O){E||(v(s("Unable to initialize payment. Please refresh and try again.","cookie-notice")),m("error"));return}let te;try{te=await window.braintree.client.create({authorization:O})}catch{E||(v(s("Unable to initialize payment. Please refresh and try again.","cookie-notice")),m("error"));return}try{const W=await window.braintree.hostedFields.create({client:te,styles:{input:{"font-size":"14px","font-family":"Lato, sans-serif",color:"#434f58"},"input.invalid":{color:"#e74c3c"},"input.valid":{color:"#434f58"}},fields:{number:{container:"#cn_card_number",placeholder:"•••• •••• •••• ••••"},expirationDate:{container:"#cn_expiration_date",placeholder:"MM / YY"},cvv:{container:"#cn_cvv",placeholder:"CVV"}}});if(E){W.teardown();return}A.current=W,W.on("validityChange",()=>{const ne=W.getState(),le=Object.values(ne.fields).every(he=>he.isValid);b(le)}),m("ready")}catch{E||(v(s("Unable to initialize payment. Please refresh and try again.","cookie-notice")),m("error"))}}return I(),()=>{E=!0,A.current&&(A.current.teardown(),A.current=null)}},[]);const C=async E=>{var I;if(E.preventDefault(),!(!A.current||h==="submitting")){m("submitting"),v(null);try{const R=await A.current.tokenize(),O=R.nonce,te=((I=R.details)==null?void 0:I.lastFour)||"",J=await v0({plan:i.planKey,paymentNonce:O,method:"credit_card",identifier:te});if(J&&typeof J=="string"&&J.length>0)c();else{const B=(J==null?void 0:J.error)||(J==null?void 0:J.message)||s("Payment failed. Please try again.","cookie-notice");v(B),m("ready")}}catch(R){v(R.message||s("Card error. Please check your details and try again.","cookie-notice")),m("ready")}}},D=(i==null?void 0:i.billing)==="yearly"?"Yearly":"Monthly",P=i?`${i.domains} Domain${i.domains>1?"s":""} — $${i.price.toFixed(2)} / ${D}`:"";return t.jsxs("div",{className:"cn-welcome-step cn-payment-step",children:[t.jsx("h2",{className:"cn-payment-step__heading",children:s("Complete Your Order","cookie-notice")}),i&&t.jsx("div",{className:"cn-payment-step__plan-pill",children:P}),x&&t.jsx("div",{className:"cn-payment-step__error",role:"alert",children:x}),h==="loading"&&!x&&t.jsx("p",{className:"cn-payment-step__loading",children:s("Initializing secure payment form…","cookie-notice")}),t.jsxs("form",{className:"cn-payment-step__form",onSubmit:C,style:{display:h==="loading"||h==="error"?"none":"block"},children:[t.jsxs("div",{className:"cn-payment-step__field",children:[t.jsx("label",{className:"cn-payment-step__label",htmlFor:"cn_card_name",children:"Cardholder Name"}),t.jsx("input",{id:"cn_card_name",type:"text",className:"cn-payment-step__input",value:g,onChange:E=>k(E.target.value),placeholder:s("Name on card","cookie-notice"),autoComplete:"cc-name"})]}),t.jsxs("div",{className:"cn-payment-step__field",children:[t.jsx("label",{className:"cn-payment-step__label",children:s("Card Number","cookie-notice")}),t.jsx("div",{id:"cn_card_number",className:"cn-payment-step__hosted-field"})]}),t.jsxs("div",{className:"cn-payment-step__row",children:[t.jsxs("div",{className:"cn-payment-step__field",children:[t.jsx("label",{className:"cn-payment-step__label",children:s("Expiry","cookie-notice")}),t.jsx("div",{id:"cn_expiration_date",className:"cn-payment-step__hosted-field"})]}),t.jsxs("div",{className:"cn-payment-step__field",children:[t.jsx("label",{className:"cn-payment-step__label",children:"CVV"}),t.jsx("div",{id:"cn_cvv",className:"cn-payment-step__hosted-field"})]})]}),t.jsx("div",{className:"cn-payment-step__braintree-badge",children:"🔒 Secured by Braintree"}),t.jsx("button",{type:"submit",className:"cn-button cn-button--primary cn-button--block cn-payment-step__submit",disabled:h==="submitting"||!_||!g.trim(),children:s(h==="submitting"?"Processing…":"Complete Purchase","cookie-notice")}),u&&t.jsx("button",{type:"button",className:"cn-button cn-button--outline-primary cn-button--block cn-payment-step__back",onClick:u,children:d}),t.jsx("p",{className:"cn-payment-step__guarantee",children:"🛡️ Refund on your first payment within 14 days"}),t.jsxs("p",{className:"cn-payment-step__legal",children:["By completing your purchase you agree to our",t.jsx("a",{href:"https://hu-manity.co/terms",target:"_blank",rel:"noopener noreferrer",className:"cn-link",children:"Terms of Service"}),"and",t.jsx("a",{href:"https://cookie-compliance.co/privacy-policy/",target:"_blank",rel:"noopener noreferrer",className:"cn-link",children:"Privacy Policy"}),"."]})]}),u&&(h==="loading"||h==="error")&&t.jsx("button",{type:"button",className:"cn-button cn-button--outline-primary cn-button--block cn-payment-step__back cn-payment-step__back--standalone",onClick:u,children:d})]})}function y0({subscriptions:i,selectedPlan:c,nonce:u,onSuccess:d,onPayInstead:p,onFreeInstead:h}){var D;const[m,x]=w.useState(((D=i[0])==null?void 0:D.subscriptionid)??null),[v,g]=w.useState(!1),[k,_]=w.useState(!1),[b,A]=w.useState(null);i.reduce((P,E)=>P+parseInt(E.availablelicense,10),0);const C=async()=>{if(!(!m||v||k)){g(!0),A(null);try{const P=await gn("use_license",{subscriptionID:m},"",u);if(P&&P.error)A(P.error),g(!1);else{_(!0);const E=i.find(R=>R.subscriptionid===m),I=E?Math.max(0,parseInt(E.availablelicense,10)-1):null;d(I)}}catch(P){A(P.message||"Something went wrong. Please try again."),g(!1)}}};return c?t.jsxs("div",{className:"cn-welcome-step cn-license-select",children:[t.jsx("h2",{className:"cn-license-select__heading",children:s("You have unused Pro licenses — do you want to use one for this domain?","cookie-notice")}),t.jsx("p",{className:"cn-license-select__sub",children:s("Your existing plan covers this site. We’ll connect it now — no payment needed.","cookie-notice")}),i.length===1?t.jsxs("div",{className:"cn-license-select__single-card",children:[t.jsx("span",{className:"cn-license-select__card-name",children:s("Compliance Pro","cookie-notice")}),t.jsxs("span",{className:"cn-license-select__card-slots",children:[parseInt(i[0].availablelicense,10)," ","domain",parseInt(i[0].availablelicense,10)!==1?"s":""," remaining"]})]}):t.jsxs(t.Fragment,{children:[t.jsx("p",{className:"cn-license-select__choose-label",children:s("You have multiple plans with available sites. Choose one to connect this site to:","cookie-notice")}),t.jsx("div",{className:"cn-license-select__cards",role:"radiogroup",children:i.map(P=>{const E=parseInt(P.availablelicense,10);return t.jsxs("label",{className:"cn-license-select__card"+(m===P.subscriptionid?" cn-license-select__card--selected":""),children:[t.jsx("input",{type:"radio",name:"cn_subscription",value:P.subscriptionid,checked:m===P.subscriptionid,onChange:()=>x(P.subscriptionid),className:"cn-license-select__radio"}),t.jsxs("div",{className:"cn-license-select__card-body",children:[t.jsx("span",{className:"cn-license-select__card-name",children:s("Compliance Pro","cookie-notice")}),t.jsxs("span",{className:"cn-license-select__card-slots",children:[E," domain",E!==1?"s":""," remaining"]})]})]},P.subscriptionid)})})]}),b&&t.jsx("div",{className:"cn-license-select__error",role:"alert",children:b}),t.jsx("div",{className:"cn-license-select__actions",children:t.jsx("button",{type:"button",className:"cn-button cn-button--primary cn-button--block",onClick:C,disabled:v||k||!m,children:v?"Connecting…":i.length>1?"Connect This Site to Selected Plan":"Connect This Site"})}),p&&t.jsx("button",{type:"button",className:"cn-license-select__free-link",onClick:p,children:s("Need a different plan? Purchase a new subscription instead","cookie-notice")})]}):t.jsxs("div",{className:"cn-welcome-step cn-license-select cn-license-select--upsell",children:[t.jsx("div",{className:"cn-license-select__upsell-icon",children:"✅"}),t.jsx("h2",{className:"cn-license-select__heading",children:s("Good news — your account already has a Pro plan with available slots. Activate it here, free.","cookie-notice")}),t.jsx("p",{className:"cn-license-select__sub",children:s("You have unused Pro license slots available. Connect this site to your existing plan at no extra cost — or continue with the free version.","cookie-notice")}),i.length>1&&t.jsx("div",{className:"cn-license-select__cards",role:"radiogroup",children:i.map(P=>{const E=parseInt(P.availablelicense,10);return t.jsxs("label",{className:"cn-license-select__card"+(m===P.subscriptionid?" cn-license-select__card--selected":""),children:[t.jsx("input",{type:"radio",name:"cn_subscription",value:P.subscriptionid,checked:m===P.subscriptionid,onChange:()=>x(P.subscriptionid),className:"cn-license-select__radio"}),t.jsxs("div",{className:"cn-license-select__card-body",children:[t.jsx("span",{className:"cn-license-select__card-name",children:s("Compliance Pro","cookie-notice")}),t.jsxs("span",{className:"cn-license-select__card-slots",children:[E," domain",E!==1?"s":""," remaining"]})]})]},P.subscriptionid)})}),b&&t.jsx("div",{className:"cn-license-select__error",role:"alert",children:b}),t.jsx("div",{className:"cn-license-select__actions",children:t.jsx("button",{type:"button",className:"cn-button cn-button--primary cn-button--block",onClick:C,disabled:v||k||!m,children:v?"Activating…":"Upgrade to Pro — No Extra Charge"})}),t.jsx("button",{type:"button",className:"cn-license-select__free-link",onClick:h,children:s("Continue with free version instead","cookie-notice")})]})}const _0=()=>[{label:s("Choose Protection","cookie-notice")},{label:s("Confirm","cookie-notice")},{label:s("Create Account","cookie-notice")}];function l1(i){return i==="choose"||i==="pro-pricing"?0:i==="warning"?1:2}const k0=(i,c)=>"compliance_"+c+"_"+(i===1?"notrial":String(i));function x0({isOpen:i,onClose:c,onDismissToSettings:u}){const[d,p]=w.useState("choose"),[h,m]=w.useState(null),[x,v]=w.useState([]),[g,k]=w.useState(""),_=()=>{p("choose"),m(null),v([]),k(""),u?u():c&&c()},b=()=>{h?p("payment"):Bt()},A=(P,E)=>{v(P),k(E),p("license-select")},C=P=>{const E=l1(d);P<E&&P===0&&p("choose")},D=()=>{switch(d){case"choose":return t.jsx(d0,{onBannerOnly:()=>p("warning"),onProtect:()=>p("account"),onComply:()=>p("pro-pricing"),onLearnMore:()=>p("pro-pricing")});case"pro-pricing":return t.jsx(f0,{onSelectPlan:(P,E,I)=>{m({planKey:k0(P,E),domains:P,billing:E,price:I}),p("account")},onBack:()=>{m(null),p("choose")}});case"warning":return t.jsx(m0,{onDismissToSettings:_,onBackToChoose:()=>p("choose")});case"account":return t.jsx(g0,{onComplete:b,onCompleteWithSubscriptions:A});case"license-select":return t.jsx(y0,{subscriptions:x,selectedPlan:h,nonce:g,onSuccess:P=>{Bt({license_assigned:"1",...P!=null?{slots_remaining:P}:{}})},onPayInstead:h?()=>p("payment"):null,onFreeInstead:()=>Bt()});case"payment":return t.jsx(c1,{plan:h,onComplete:()=>Bt(),onBack:()=>p("account"),backLabel:"Back",onSessionExpired:()=>p("account")});default:return null}};return t.jsxs(o1,{isOpen:i&&!Re(),onClose:_,size:"lg",children:[D(),t.jsx(u0,{steps:_0(),currentStep:l1(d),onStepClick:C})]})}const w0=[{icon:t.jsx(zs,{size:24}),title:s("Autoblocking","cookie-notice"),desc:s("Scripts wait for visitor consent before firing.","cookie-notice")},{icon:t.jsx(cp,{size:24}),title:s("Geographic Enforcement","cookie-notice"),desc:s("Apply different rules by visitor location.","cookie-notice")},{icon:t.jsx(Ol,{size:24}),title:s("Consent Proofs","cookie-notice"),desc:s("Exportable audit trail for every consent event.","cookie-notice")},{icon:t.jsx(pp,{size:24}),title:s("Priority Support","cookie-notice"),desc:s("Fast, expert help when you need it.","cookie-notice")},{icon:t.jsx(lp,{size:24}),title:s("Advanced Analytics","cookie-notice"),desc:s("Consent rates, geography, and trend data.","cookie-notice")},{icon:t.jsx(up,{size:24}),title:s("Script Wizard","cookie-notice"),desc:s("Register and manage third-party scripts easily.","cookie-notice")}],j0=[{domains:1,monthly:14.95,yearly:149.5,perDomain:null,popular:!0},{domains:5,monthly:29.95,yearly:299.5,perDomain:5.99,tagline:s("Best for dev + staging + production","cookie-notice")},{domains:10,monthly:49.95,yearly:499.5,perDomain:4.99,tagline:s("For agencies & multi-site networks","cookie-notice")}],u1=(i,c)=>"compliance_"+c+"_"+(i===1?"notrial":String(i)),b0=1,N0=i=>{var d,p;const c=((d=window.cnReactData)==null?void 0:d.app_id)||((p=window.cnReactData)==null?void 0:p.appId)||"",u=new URLSearchParams({"open-modal":"payment",plan:i});return c&&u.set("app-id",c),`${sn}/#/dashboard?${u.toString()}`},d1=()=>{var i;window.location.href=((i=window.cnReactData)==null?void 0:i.welcomeUrl)||"?page=cookie-notice&cn_react_welcome=1"};function S0({isOpen:i,onClose:c}){const[u,d]=w.useState("monthly"),[p,h]=w.useState(null),{isFree:m}=Ze(),x=(p==null?void 0:p.planKey)||u1(b0,u),v=()=>{h(null),c()};return t.jsx(o1,{isOpen:i&&!Re(),onClose:v,size:"lg",children:p?t.jsx("div",{className:"cn-welcome-step",children:t.jsx(c1,{plan:p,onComplete:()=>window.location.reload(),onBack:()=>h(null),backLabel:"Back to plans",onSessionExpired:d1})}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"cn-pricing-hero",children:[t.jsx("h2",{className:"cn-pricing-hero__heading",children:"Cookie Compliance — Professional"}),t.jsx("p",{className:"cn-pricing-hero__sub",children:"Everything you need to stay compliant, protect your visitors, and prove it."})]}),t.jsx("div",{className:"cn-benefit-grid",children:w0.map((g,k)=>t.jsxs("div",{className:"cn-benefit-card",children:[t.jsx("div",{className:"cn-benefit-card__icon",children:g.icon}),t.jsx("div",{className:"cn-benefit-card__title",children:g.title}),t.jsx("div",{className:"cn-benefit-card__desc",children:g.desc})]},k))}),t.jsxs("div",{className:"cn-pill-toggle",style:{margin:"0 auto 20px"},children:[t.jsx("button",{className:`cn-pill-toggle__btn${u==="monthly"?" cn-pill-toggle__btn--active":""}`,type:"button",onClick:()=>d("monthly"),children:"Monthly"}),t.jsxs("button",{className:`cn-pill-toggle__btn${u==="yearly"?" cn-pill-toggle__btn--active":""}`,type:"button",onClick:()=>d("yearly"),children:["Yearly",t.jsx("span",{className:"cn-pill-toggle__badge",children:s("Save 17%","cookie-notice")})]})]}),t.jsx("p",{className:"cn-pricing-door-label",children:"Quick checkout — pay securely right here"}),t.jsx("div",{className:"cn-pricing-cards",children:j0.map(g=>t.jsxs("div",{className:`cn-pricing-card${g.popular?" cn-pricing-card--popular":""}`,children:[g.popular&&t.jsx("div",{className:"cn-pricing-card__popular-badge",children:s("Recommended","cookie-notice")}),t.jsx("div",{className:"cn-pricing-card__domains",children:g.domains}),t.jsx("div",{className:"cn-pricing-card__domains-label",children:g.domains===1?"domain":"domains"}),g.tagline&&t.jsx("div",{className:"cn-pricing-card__tagline",children:g.tagline}),t.jsxs("div",{className:"cn-pricing-card__price",children:[t.jsx("sup",{children:"$"}),u==="monthly"?g.monthly.toFixed(2):(g.yearly/12).toFixed(2),t.jsx("sub",{children:" / mo"})]}),t.jsxs("div",{className:"cn-pricing-card__billed-note",style:u==="monthly"?{visibility:"hidden"}:void 0,children:["$",g.yearly.toFixed(2)," billed annually"]}),t.jsx(Ue,{variant:g.popular?"primary":"outline",size:"md",style:{width:"100%"},onClick:()=>{m?h({planKey:u1(g.domains,u),domains:g.domains,billing:u,price:u==="monthly"?g.monthly:g.yearly}):d1()},children:s(m?"Select Plan":"Get Started","cookie-notice")})]},g.domains))}),t.jsxs("div",{className:"cn-pricing-portal-door",children:[t.jsx("div",{className:"cn-pricing-portal-door__title",children:s("Prefer more options?","cookie-notice")}),t.jsx("p",{className:"cn-pricing-portal-door__desc",children:"Manage your subscription in your Hu‑manity account — multi‑domain plans, invoices & VAT, and more payment methods."}),t.jsx("a",{href:N0(x),target:"_blank",rel:"noopener noreferrer",className:"cn-pricing-portal-door__link",children:"Manage in Admin Portal →"})]}),t.jsx("p",{className:"cn-pricing-footer__dismiss",children:t.jsx("button",{type:"button",className:"cn-link-btn",onClick:v,children:"Maybe later — stay on Free"})})]})})}function C0(){const i=!!(window.cnReactData||{}).devMode,{tier:c}=Ze(),u=new URLSearchParams(window.location.search),d=u.get("cn_tier")||c,p=parseInt(u.get("cn_usage")||"0",10),h=(window.cnReactData||{}).uiMode||"legacy",[m,x]=w.useState(p),[v,g]=w.useState(!1);if(!i)return null;function k(){window.confirm(`⚠️ Reset plugin to fresh-activation state?1060 </svg>`}})})}const O3={gdpr:T3,ccpa:A3,otherus:R3,ukpecr:z3,lgpd:M3,pipeda:F3,popia:I3};function Ll({selected:i,onChange:c,dnsUrl:u,onDnsUrlChange:d}){const h=(window.cnReactData||{}).siteLocale||"",[m,x]=j.useState([]),[v,g]=j.useState(null),[k,_]=j.useState(null),b=i,A=k??b;j.useEffect(()=>{const R=E3(h);x(R),i.length===0&&R.length>0&&c(R),R.length>0&&g(R[0])},[]);const C=R=>{g(R);const O=k??b,oe=O.includes(R)?O.filter(J=>J!==R):[...O,R];_(oe),c&&c(oe)},D=(R,O)=>{R.stopPropagation();const oe=k??b,J=oe.includes(O)?oe.filter(B=>B!==O):[...oe,O];_(J),c&&c(J)},P=()=>{g(null)},E=v?Ps().find(R=>R.key===v):null,I=E&&(E.key==="ccpa"||E.key==="otherus");return t.jsxs("div",{className:be.container,children:[t.jsx("div",{children:t.jsx("div",{className:be.grid,children:Ps().map(R=>{const O=A.includes(R.key),oe=m.includes(R.key),J=O3[R.key];return t.jsxs("div",{className:be.card+(O?" "+be.cardSelected:""),onClick:()=>C(R.key),role:"button",tabIndex:0,onKeyDown:B=>{(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),C(R.key))},children:[oe&&t.jsx("span",{className:be.autoBadge,children:s("Auto-detected","cookie-notice")}),O&&t.jsx("span",{className:be.checkmark,children:"✓"}),t.jsx("input",{type:"checkbox",className:be.hiddenCheckbox,checked:O,onChange:B=>D(B,R.key),onClick:B=>B.stopPropagation(),tabIndex:-1,"aria-label":we(s("Select %s","cookie-notice"),R.name)}),t.jsx("div",{className:be.geoArt,children:J&&t.jsx(J,{})}),t.jsx("div",{className:be.lawName,children:R.name}),t.jsx("div",{className:be.jurisdiction,children:R.jurisdiction})]},R.key)})})}),E?t.jsxs("div",{className:be.detail,children:[t.jsxs("div",{className:be.detailHeader,children:[t.jsxs("div",{children:[t.jsx("div",{className:be.detailTitle,children:E.name}),t.jsx("div",{className:be.detailJurisdiction,children:E.jurisdiction})]}),t.jsx("button",{className:be.detailClose,onClick:P,type:"button","aria-label":s("Close detail panel","cookie-notice"),children:"×"})]}),t.jsxs("div",{className:be.detailSection,children:[t.jsx("div",{className:be.detailSectionLabel,children:s("What it covers","cookie-notice")}),t.jsx("div",{className:be.detailOverview,children:E.overview})]}),t.jsxs("div",{className:be.detailSection,children:[t.jsx("div",{className:be.detailSectionLabel,children:s("Key requirements","cookie-notice")}),t.jsx("ul",{className:be.detailList,children:E.requirements.map((R,O)=>t.jsx("li",{className:be.detailListItem,children:R},O))})]}),t.jsxs("div",{className:be.detailSection,children:[t.jsx("div",{className:be.detailSectionLabel,children:s("What Cookie Compliance does","cookie-notice")}),t.jsx("ul",{className:be.detailList,children:E.product.map((R,O)=>t.jsx("li",{className:be.detailListItem,children:R},O))})]}),t.jsx("div",{className:be.detailEnforcement,children:E.enforcement}),I&&t.jsxs("div",{className:be.detailSection,style:{marginTop:14},children:[t.jsx("div",{className:be.detailSectionLabel,children:s("Do Not Sell URL","cookie-notice")}),t.jsx("p",{className:be.detailDnsHelp,children:"Required if you advertise to California residents. This is a page on your site where visitors can request you stop selling or sharing their personal data."}),t.jsx("input",{id:"cn-dns-url",type:"url",className:be.dnsInput,value:u||"",onChange:R=>d&&d(R.target.value),placeholder:s("https://example.com/do-not-sell","cookie-notice"),"aria-describedby":"cn-dns-url-hint"}),t.jsx("p",{id:"cn-dns-url-hint",className:be.detailDnsHelp,style:{marginTop:6},children:s("Sets the link for your banner's default language. Other languages: Admin Portal → Languages.","cookie-notice")}),t.jsx("a",{href:"https://oag.ca.gov/privacy/ccpa",target:"_blank",rel:"noreferrer",style:{fontSize:12,color:"#0073aa",display:"inline-block",marginTop:4},children:"What is this? →"})]})]},E.key):t.jsxs("div",{className:be.detailEmpty,children:[t.jsx("div",{className:be.detailEmptyArrow,children:"←"}),t.jsx("div",{className:be.detailEmptyText,children:"Select a law to see what it covers and what compliance looks like for your site."})]})]})}const El=()=>[{code:"fr",name:s("French","cookie-notice")},{code:"es",name:s("Spanish","cookie-notice")},{code:"de",name:s("German","cookie-notice")},{code:"it",name:s("Italian","cookie-notice")},{code:"el",name:s("Greek","cookie-notice")},{code:"nl",name:s("Dutch","cookie-notice")},{code:"pt",name:s("Portuguese","cookie-notice")},{code:"pl",name:s("Polish","cookie-notice")},{code:"sv",name:s("Swedish","cookie-notice")}];function U3({onComplete:i,onOpenPricingModal:c,onSelectionChange:u}){const p=(window.cnReactData||{}).siteLocale||"",{isFree:h}=Ze(),[m,x]=j.useState([]),[v,g]=j.useState(!1),[k,_]=j.useState(""),[b,A]=j.useState(!1),[C,D]=j.useState(!1);j.useEffect(()=>{u&&u(m,C)},[m,C]),j.useEffect(()=>{var R;const I=(R=p.split("_")[0])==null?void 0:R.toLowerCase();I&&I!=="en"&&El().some(O=>O.code===I)&&x([I])},[]);const P=I=>{D(!0),x(R=>R.includes(I)?(A(!1),R.filter(O=>O!==I)):h?(R.length>=1&&A(!0),[I]):[...R,I])},E=async()=>{if(!v){g(!0),_("");try{await Jc(m),i&&i(m)}catch(I){_(I.message||"Failed to apply languages.")}finally{g(!1)}}};return t.jsxs("div",{className:"cn-language-picker",children:[h?t.jsxs("div",{style:{background:"#fff8f0",border:"1px solid #fed7aa",color:"#92400e",padding:"10px 14px",borderRadius:"6px",marginBottom:"12px",display:"flex",alignItems:"center",justifyContent:"space-between",fontSize:"14px"},children:[t.jsx("span",{children:s("Free plan: your default language plus 1 additional language","cookie-notice")}),t.jsxs("button",{type:"button",onClick:()=>c&&c(),style:{background:"none",border:"none",color:"#20c19e",fontWeight:600,cursor:"pointer",textDecoration:"underline",padding:0},children:[s("Upgrade to Pro to add more languages","cookie-notice")," →"]})]}):t.jsxs("div",{style:{background:"#f0fdf4",border:"1px solid #a7f3d0",color:"#065f46",padding:"10px 14px",borderRadius:"6px",marginBottom:"12px",fontSize:"14px"},children:[s("Pro plan — no limit on languages","cookie-notice")," ✓"]}),t.jsx("p",{className:"cn-language-picker__hint",children:s("Without a configured language, non-English visitors see browser-automated translations — unreviewed and potentially inaccurate. Selecting a language gives you full control over what they read.","cookie-notice")}),t.jsx("div",{className:"cn-language-picker__grid",children:El().map(I=>{const R=m.includes(I.code),O=h&&!R&&m.length>=1;return t.jsxs("button",{type:"button",className:"cn-language-picker__badge"+(R?" cn-language-picker__badge--active":"")+(O?" cn-language-picker__badge--locked":""),onClick:()=>{O?c&&c():P(I.code)},"aria-label":O?`${I.name} — upgrade to Pro to unlock`:I.name,children:[I.name,O?" 🔒":""]},I.code)})}),b&&h&&t.jsx("div",{style:{color:"#92400e",fontSize:"13px",marginTop:"8px"},children:t.jsxs("button",{type:"button",onClick:()=>c&&c(),style:{background:"none",border:"none",color:"#20c19e",fontWeight:600,cursor:"pointer",textDecoration:"underline",padding:0},children:[s("Upgrade to Pro to add more languages","cookie-notice")," →"]})}),k&&t.jsx("div",{className:"cn-language-picker__error",children:k}),t.jsx("div",{className:"cn-language-picker__actions",children:t.jsx("button",{className:"cn-button cn-button--primary",onClick:E,disabled:v,type:"button",children:v?"Applying…":"Apply Languages"})})]})}function Dl(){var m,x;const{dashboard:i}=Mn(),c=((m=i==null?void 0:i.appConfig)==null?void 0:m.design)||((x=window.cnReactData)==null?void 0:x.bannerDesign)||{},u=typeof c.dontSellUrl=="string"?c.dontSellUrl:"",[d,p]=j.useState(null);return{value:d??u,onChange:p,field:(v=[])=>{const g=(d??"").trim(),k=v.includes("ccpa")||v.includes("otherus");return d!==null&&g!==""&&g!==u&&k?{cn_dont_sell_url:g}:{}}}}const B3=i=>[...i?[{key:"style",label:s("Banner style","cookie-notice")}]:[],{key:"laws",label:s("Laws","cookie-notice")},{key:"languages",label:s("Languages","cookie-notice")}];function $3({initialLaws:i=[],onOpenPricingModal:c}){var ke;const u=window.cnReactData||{},[d,p]=j.useState(null),h=ls((ke=u.options)==null?void 0:ke.app_id),[m,x]=j.useState(!!u.setupWizardComplete||localStorage.getItem(h)==="1"),[v,g]=j.useState(i),k=Dl(),[_,b]=j.useState(!1),[A,C]=j.useState(!1),[D,P]=j.useState(""),[E,I]=j.useState([]),[R,O]=j.useState(""),{dashboard:oe}=Mn(),J=Ti();if(m||Re())return null;const B=B3(J.engine==="new"),X=Math.max(0,B.findIndex(U=>U.key===d)),q=B[X].key,W=U=>p(B[Math.min(Math.max(U,0),B.length-1)].key),te=()=>{W(X+1)},ue=async()=>{if(q==="laws"&&v.length>0){C(!0),P("");try{const U={};v.forEach((ee,Q)=>{U[`cn_laws[${Q}]`]=ee}),await gn("configure",{...U,...k.field(v),cn_revoke_consent:"1"},u.configureNonce||"")}catch(U){P(U!=null&&U.answered&&U.message?U.message:s("Failed to save laws. Please try again.","cookie-notice")),C(!1);return}C(!1)}W(X+1)},ge=()=>{W(X-1)},ne=async()=>{b(!0);try{await ms()}catch{}window.cnReactData&&(window.cnReactData.setupWizardComplete=!0);try{localStorage.setItem(h,"1"),localStorage.setItem("cn_setup_just_finished_"+(u.app_id||"default"),"1")}catch{}window.location.reload()},de=async()=>{var ee;const U=((ee=oe==null?void 0:oe.appConfig)==null?void 0:ee.language)||[];if(E.some(Q=>!U.includes(Q))){b(!0),O("");try{await Jc(E)}catch(Q){O((Q==null?void 0:Q.message)||s("Failed to apply languages. Please try again.","cookie-notice")),b(!1);return}}ne()},F=X===B.length-1;return t.jsxs(t.Fragment,{children:[X===0&&t.jsxs("div",{className:"cn-first-run__connected-notice",children:[t.jsx("span",{className:"cn-first-run__connected-check",children:"✓"}),t.jsxs("div",{children:[t.jsx("strong",{children:s("Your account is connected.","cookie-notice")})," ",s(q==="style"?"Choose your banner style, laws, and languages to finalize your setup.":"Choose your laws and languages to finalize your setup.","cookie-notice"),t.jsxs("span",{className:"cn-first-run__connected-hint",children:[" ",s("When done, you will be guided to select your consent signals.","cookie-notice")]})]})]}),t.jsxs("div",{className:"cn-first-run",children:[t.jsxs("div",{className:"cn-first-run__header",children:[t.jsx("h2",{className:"cn-first-run__title",children:s("Complete Your Setup","cookie-notice")}),t.jsx("button",{className:"cn-first-run__dismiss",onClick:ne,type:"button",children:"×"})]}),t.jsx("div",{className:"cn-first-run__progress",children:B.map((U,ee)=>t.jsxs("div",{className:"cn-first-run__step-indicator"+(ee===X?" cn-first-run__step-indicator--active":"")+(ee<X?" cn-first-run__step-indicator--done":""),children:[t.jsx("span",{className:"cn-first-run__step-num",children:ee+1}),t.jsx("span",{className:"cn-first-run__step-label",children:U.label})]},U.key))}),t.jsxs("div",{className:"cn-first-run__body",children:[q==="style"&&t.jsxs("div",{className:"cn-first-run__step",children:[t.jsx("h3",{children:s("Choose how your banner looks","cookie-notice")}),t.jsx("p",{children:s("You can change this any time, here or in the Admin Portal.","cookie-notice")}),t.jsxs("div",{className:"cn-first-run__style",children:[t.jsx("span",{className:"cn-section-label",id:"cn-first-run-style-label",children:s("Style","cookie-notice")}),t.jsx(Pl,{name:"cn-first-run-style",labelledBy:"cn-first-run-style-label"})]})]}),q==="laws"&&t.jsxs("div",{className:"cn-first-run__step",children:[t.jsx("h3",{children:s("Select Your Laws","cookie-notice")}),t.jsx("p",{children:s("Choose which privacy regulations apply to your site.","cookie-notice")}),t.jsx(Ll,{selected:v,onChange:U=>{g(U),P("")},dnsUrl:k.value,onDnsUrlChange:k.onChange}),D&&t.jsx("p",{style:{color:"var(--cn-red)",fontSize:13,marginTop:8},children:D})]}),q==="languages"&&t.jsxs("div",{className:"cn-first-run__step",children:[t.jsx("h3",{children:s("Add Languages","cookie-notice")}),t.jsx("p",{children:s("Select additional languages for your consent banner.","cookie-notice")}),t.jsx(U3,{onComplete:ne,onOpenPricingModal:c,onSelectionChange:(U,ee)=>{I(ee?U:[]),O("")}}),R&&t.jsx("p",{role:"alert",style:{color:"var(--cn-red)",fontSize:13,marginTop:8},children:R})]})]}),t.jsxs("div",{className:"cn-first-run__nav",children:[X>0&&t.jsx("button",{className:"cn-button cn-button--outline",onClick:ge,type:"button",children:"← Back"}),t.jsxs("div",{className:"cn-first-run__nav-right",children:[!F&&t.jsx("button",{className:"cn-button cn-button--ghost",onClick:te,type:"button",children:"Skip"}),!F&&t.jsx("button",{className:"cn-button cn-button--primary",onClick:ue,disabled:A,type:"button",children:A?"Saving…":"Next →"}),F&&t.jsx("button",{className:"cn-button cn-button--primary",onClick:de,disabled:_,type:"button",children:s(_?"Finishing…":"Apply & Finish","cookie-notice")})]})]})]})]})}function Ls({title:i,onClose:c,children:u,footer:d,scrollTrigger:p,isClosing:h,onExitComplete:m}){const x=j.useRef(null);return j.useEffect(()=>{var v;h||(v=x.current)==null||v.scrollIntoView({behavior:"smooth",block:"start"})},[p,h]),t.jsxs("div",{className:`cn-inline-panel${h?" cn-inline-panel--closing":""}`,ref:x,onTransitionEnd:h?m:void 0,children:[t.jsxs("div",{className:"cn-inline-panel__header",children:[t.jsx("h3",{className:"cn-inline-panel__title",children:i}),t.jsx("button",{className:"cn-inline-panel__dismiss",onClick:c,"aria-label":s("Close","cookie-notice"),children:"×"})]}),t.jsx("div",{className:"cn-inline-panel__body",children:u}),d&&t.jsx("div",{className:"cn-inline-panel__footer",children:d})]})}function W3(){const[i,c]=j.useState(()=>{var p;const d=((p=window.cnReactData)==null?void 0:p.selectedLaws)||[];return Array.isArray(d)?d:Object.values(d)});return[i,d=>{c(d),window.cnReactData&&(window.cnReactData.selectedLaws=d)}]}function Tl({onClose:i,onSave:c,scrollTrigger:u,isClosing:d}){const[p,h]=W3(),m=Dl(),[x,v]=j.useState(!1),[g,k]=j.useState(""),[_,b]=j.useState(!1),A=async()=>{var P;v(!0),k("");try{const E={};p.forEach((I,R)=>{E["cn_laws["+R+"]"]=I}),await gn("configure",{...E,...m.field(p),cn_revoke_consent:"1"},((P=window.cnReactData)==null?void 0:P.configureNonce)||""),h(p),b(!0)}catch(E){k(E.message||"Failed to save laws.")}finally{v(!1)}},C=()=>{c&&c(p),i()};if(_)return t.jsx(Ls,{title:s("Privacy Laws","cookie-notice"),onClose:C,scrollTrigger:u,isClosing:d,children:t.jsxs("div",{className:"cn-wizard-success",children:[t.jsx("div",{className:"cn-wizard-success__icon",children:"✓"}),t.jsx("h3",{className:"cn-wizard-success__heading",children:s("Laws updated","cookie-notice")}),t.jsx("button",{className:"cn-button cn-button--primary",onClick:C,children:s("Done","cookie-notice")})]})});const D=t.jsxs(t.Fragment,{children:[t.jsx("a",{href:`${en}/#/configuration`,target:"_blank",rel:"noreferrer",className:"cn-layer__link-btn",children:"Manage regulations in Admin Portal →"}),t.jsxs("div",{style:{display:"flex",gap:8},children:[t.jsx(Ue,{variant:"secondary",onClick:i,children:s("Cancel","cookie-notice")}),t.jsx(Ue,{variant:"primary",onClick:A,disabled:x,children:x?"Saving…":"Save laws"})]})]});return t.jsxs(Ls,{title:s("Privacy Laws","cookie-notice"),onClose:i,scrollTrigger:u,isClosing:d,footer:D,children:[t.jsx(Ll,{selected:p,onChange:h,dnsUrl:m.value,onDnsUrlChange:m.onChange}),t.jsx("p",{style:{fontSize:13,color:"var(--cn-text-muted, #666)",marginTop:12},children:s("Selecting laws here sets your baseline. To see how the banner behaves for visitors in each region — and to review the full per-region rules — open the Admin Portal.","cookie-notice")}),g&&t.jsx("p",{style:{color:"var(--cn-red)",fontSize:13,marginTop:8},children:g})]})}const Y={layout:"_layout_t4wb2_48",remoteChangedNotice:"_remoteChangedNotice_t4wb2_55",modeList:"_modeList_t4wb2_67",modeSection:"_modeSection_t4wb2_75",modeSectionLabel:"_modeSectionLabel_t4wb2_81",modeCard:"_modeCard_t4wb2_91",modeCardActive:"_modeCardActive_t4wb2_106",modeCardLocked:"_modeCardLocked_t4wb2_112",modeCardProOverlay:"_modeCardProOverlay_t4wb2_118",lockIconLarge:"_lockIconLarge_t4wb2_133",modeCardProLabel:"_modeCardProLabel_t4wb2_137",modeCardTop:"_modeCardTop_t4wb2_143",modeCardName:"_modeCardName_t4wb2_150",modeCardDesc:"_modeCardDesc_t4wb2_156",statusDot:"_statusDot_t4wb2_162",statusDotOn:"_statusDotOn_t4wb2_170",statusDotOff:"_statusDotOff_t4wb2_174",detailCol:"_detailCol_t4wb2_178",detail:"_detail_t4wb2_178",detailHeader:"_detailHeader_t4wb2_191",detailTitle:"_detailTitle_t4wb2_198",detailDesc:"_detailDesc_t4wb2_204",detailFooter:"_detailFooter_t4wb2_211",enableToggle:"_enableToggle_t4wb2_219",enableToggleInput:"_enableToggleInput_t4wb2_227",enableToggleTrack:"_enableToggleTrack_t4wb2_234",enableToggleThumb:"_enableToggleThumb_t4wb2_248",enableToggleLabel:"_enableToggleLabel_t4wb2_263",signalConfig:"_signalConfig_t4wb2_269",signalConfigTitle:"_signalConfigTitle_t4wb2_277",groupRow:"_groupRow_t4wb2_286",groupLabel:"_groupLabel_t4wb2_293",groupSelect:"_groupSelect_t4wb2_299",groupHint:"_groupHint_t4wb2_317",familyTitle:"_familyTitle_t4wb2_324",advancedGrid:"_advancedGrid_t4wb2_334",advancedRow:"_advancedRow_t4wb2_343",advancedLabel:"_advancedLabel_t4wb2_350",subToggles:"_subToggles_t4wb2_355",subToggleTitle:"_subToggleTitle_t4wb2_361",subToggleRow:"_subToggleRow_t4wb2_370",proGate:"_proGate_t4wb2_380",proGateLink:"_proGateLink_t4wb2_394",legacyNotice:"_legacyNotice_t4wb2_414"},St=()=>[{key:"google",name:s("Google Consent Mode v2","cookie-notice"),shortName:"Google",group:"platform",pro:!1,description:s("Required for GDPR compliance if you use Google Analytics, Google Ads, or Tag Manager","cookie-notice")},{key:"facebook",name:s("Facebook","cookie-notice"),shortName:s("Facebook","cookie-notice"),group:"platform",pro:!0,description:s("Required if you run Facebook Ads — stops Meta Pixel from firing before visitors agree","cookie-notice")},{key:"microsoft",name:s("Microsoft","cookie-notice"),shortName:s("Microsoft","cookie-notice"),group:"platform",pro:!0,description:s("Required if you use Microsoft Ads or Clarity — keeps Bing and analytics trackers compliant","cookie-notice")},{key:"gpc",name:s("Global Privacy Control","cookie-notice"),shortName:"GPC",group:"browser",pro:!0,description:s("Honors visitors who’ve told their browser they don’t want to be tracked — required in California","cookie-notice")},{key:"dnt",name:s("Do Not Track","cookie-notice"),shortName:"DNT",group:"browser",pro:!1,description:s("Honors the legacy ‘Do Not Track’ browser setting — good practice, not legally required","cookie-notice")}],G3=()=>[{value:"passive",label:s("Show passive notice","cookie-notice"),help:s("Brief auto-dismiss confirmation that GPC was honored.","cookie-notice")},{value:"hidden",label:s("Silent","cookie-notice"),help:s("No on-screen indication. GPC is honored without notifying the visitor.","cookie-notice")},{value:"banner",label:s("Show full banner","cookie-notice"),help:s("The standard consent banner is still shown, even when GPC fires.","cookie-notice")}],Es=1,V3=()=>({value:Es,label:s("Always — not applied (change this)","cookie-notice")}),Ds=()=>[{value:2,label:s("Content Personalization","cookie-notice")},{value:3,label:s("Site Optimization","cookie-notice")},{value:4,label:s("Ad Personalization","cookie-notice")}];function Ri(i,c){return Number(c)===Es?[V3(),...Ds()]:Ds()}const H3=()=>[{value:1,label:s("Basic Operations","cookie-notice")},...Ds()],K3=()=>({google:[["googleAdStorage",s("Ad Storage","cookie-notice")],["googleAdPersonalization",s("Ad Personalization","cookie-notice")],["googleAdUserData",s("Ad User Data","cookie-notice")],["googleAnalyticsStorage",s("Analytics Storage","cookie-notice")],["googleFunctionalityStorage",s("Functionality Storage","cookie-notice")],["googlePersonalizationStorage",s("Personalization Storage","cookie-notice")]],facebook:[["facebookConsent",s("Meta Pixel consent","cookie-notice")]],microsoft:[["microsoftAdStorage",s("Ad Storage","cookie-notice")],["microsoftAnalyticsStorage",s("Analytics Storage","cookie-notice")]]});function Ts(i,c){return(K3()[c]||[]).filter(([u])=>Number(i[u])===Es).map(([,u])=>u)}function Y3(i,c={}){const u=i.google_consent_default||{},d=i.facebook_consent_default||{},p=i.microsoft_consent_default||{},h=Object.keys(u).length>0,m=Object.keys(d).length>0,x=Object.keys(p).length>0;return{googleEnabled:h,googleAdStorage:u.ad_storage??4,googleAdPersonalization:u.ad_personalization??4,googleAdUserData:u.ad_user_data??4,googleAnalyticsStorage:u.analytics_storage??3,googleFunctionalityStorage:u.functionality_storage??2,googlePersonalizationStorage:u.personalization_storage??2,googleSecurityStorage:u.security_storage??2,facebookEnabled:m,facebookConsent:d.consent??4,microsoftEnabled:x,microsoftAdStorage:p.ad_storage??4,microsoftAnalyticsStorage:p.analytics_storage??3,microsoftPixie:!!p.pixie,microsoftClarity:!!p.clarity,gpcEnabled:!!(i.gpc_support??0),gpcBannerMode:c.gpcBannerMode||"passive",doNotTrack:!!(i.do_not_track??0)}}function Al(i){return{googleConsentMapAdStorage:i.googleEnabled?i.googleAdStorage:"",googleConsentMapAdPersonalization:i.googleEnabled?i.googleAdPersonalization:"",googleConsentMapAdUserData:i.googleEnabled?i.googleAdUserData:"",googleConsentMapAnalytics:i.googleEnabled?i.googleAnalyticsStorage:"",googleConsentMapFunctionality:i.googleEnabled?i.googleFunctionalityStorage:"",googleConsentMapPersonalization:i.googleEnabled?i.googlePersonalizationStorage:"",...i.googleEnabled?{googleConsentMapSecurity:i.googleSecurityStorage}:{},facebookConsentMapConsent:i.facebookEnabled?i.facebookConsent:"",microsoftConsentMapAdStorage:i.microsoftEnabled?i.microsoftAdStorage:"",microsoftConsentMapAnalyticsStorage:i.microsoftEnabled?i.microsoftAnalyticsStorage:"",microsoftConsentModePixie:i.microsoftPixie?1:0,microsoftConsentModeClarity:i.microsoftClarity?1:0,gpcSupport:i.gpcEnabled?1:0,gpcBannerMode:i.gpcEnabled?i.gpcBannerMode||"passive":"",doNotTrack:i.doNotTrack?1:0}}function Rl(i){return{googleConsentMode:i.googleEnabled?"1":"0",facebookConsentMode:i.facebookEnabled?"1":"0",microsoftConsentMode:i.microsoftEnabled?"1":"0"}}function zl(i,c){return c?Object.fromEntries(Object.entries(i).filter(([u,d])=>JSON.stringify(c[u])!==JSON.stringify(d))):i}function q3({value:i,onChange:c,consentChoices:u}){return t.jsxs("div",{className:Y.advancedRow,children:[t.jsx("span",{className:Y.advancedLabel,children:s("Security Storage","cookie-notice")}),t.jsx("select",{className:Y.groupSelect,value:i,onChange:d=>c(Number(d.target.value)),children:H3().map(d=>t.jsx("option",{value:d.value,children:d.label},d.value))})]})}function Ml({enabled:i}){return t.jsx("span",{className:`${Y.statusDot} ${i?Y.statusDotOn:Y.statusDotOff}`})}function As({signals:i}){if(!i||!i.length)return null;const c=i.join(", ");return t.jsxs("div",{className:Y.legacyNotice,role:"alert",children:[t.jsx("strong",{children:we(yo("%s is set to “Always” and is not being applied.","%s are set to “Always” and are not being applied.",i.length,"cookie-notice"),c)}),t.jsx("span",{children:yo("Signals set this way are sent as denied for every visitor, whatever they choose on your banner — so this tool receives no consent. Choose when it should be granted below, then select Apply.","Signals set this way are sent as denied for every visitor, whatever they choose on your banner — so this tool receives no consent. Choose when they should be granted below, then select Apply.",i.length,"cookie-notice")})]})}function Eo({label:i,checked:c,onChange:u}){return t.jsxs("label",{className:Y.enableToggle,children:[t.jsx("input",{type:"checkbox",checked:c,onChange:d=>u(d.target.checked),className:Y.enableToggleInput}),t.jsx("span",{className:Y.enableToggleTrack,children:t.jsx("span",{className:Y.enableToggleThumb})}),t.jsx("span",{className:Y.enableToggleLabel,children:i})]})}function zi({locked:i,platformName:c,onUpgrade:u}){return t.jsxs("div",{className:Y.proGate,children:[t.jsx("span",{children:we(s(i==="pro"?"Upgrade to Pro to enable %s Consent Mode.":"Visit limit reached — %s Consent Mode is paused until your 30-day visit cycle resets. Upgrade for unlimited visits.","cookie-notice"),c)}),!Re()&&t.jsxs("button",{type:"button",className:Y.proGateLink,onClick:u,children:[s("Upgrade","cookie-notice")," →"]})]})}function Mi({onApply:i,hasChanges:c,saving:u,savedFlash:d,locked:p}){return t.jsx("div",{className:Y.detailFooter,children:t.jsx(Ue,{variant:"primary",size:"sm",onClick:i,disabled:!c||u||p,children:s(u?"Applying…":d?"Saved ✓":"Apply","cookie-notice")})})}function Q3({staged:i,set:c,consentChoices:u,proLocked:d,saving:p,hasChanges:h,savedFlash:m,onApply:x,onUpgrade:v}){const g=d,k=[{title:s("Advertising","cookie-notice"),hint:s("ad_storage, ad_personalization, ad_user_data — default: Ad Personalization. Most conservative: granted only when the visitor allows advertising.","cookie-notice"),signals:[[s("Ad Storage","cookie-notice"),"googleAdStorage"],[s("Ad Personalization","cookie-notice"),"googleAdPersonalization"],[s("Ad User Data","cookie-notice"),"googleAdUserData"]]},{title:s("Analytics","cookie-notice"),hint:s("analytics_storage — default: Site Optimization, so it is granted when the visitor allows measurement.","cookie-notice"),signals:[[s("Analytics Storage","cookie-notice"),"googleAnalyticsStorage"]]},{title:s("Functional","cookie-notice"),hint:s("functionality_storage, personalization_storage — default: Content Personalization.","cookie-notice"),signals:[[s("Functionality Storage","cookie-notice"),"googleFunctionalityStorage"],[s("Personalization Storage","cookie-notice"),"googlePersonalizationStorage"]]}];return t.jsxs("div",{className:Y.detail,children:[t.jsxs("div",{className:Y.detailHeader,children:[t.jsx("div",{className:Y.detailTitle,children:s("Google Consent Mode v2","cookie-notice")}),g==="pro"&&t.jsx(Un,{})]}),!g&&t.jsx(As,{signals:Ts(i,"google")}),t.jsx("p",{className:Y.detailDesc,children:s("If you use Google Analytics, Google Ads, or Tag Manager, this tells Google how to handle your visitors’ data based on whether they consented. Required for GDPR compliance with Google tools.","cookie-notice")}),g?t.jsx(zi,{locked:g,platformName:s("Google","cookie-notice"),onUpgrade:v}):t.jsxs(t.Fragment,{children:[t.jsx(Eo,{label:i.googleEnabled?s("Enabled","cookie-notice"):s("Disabled","cookie-notice"),checked:i.googleEnabled,onChange:_=>c("googleEnabled",_)}),i.googleEnabled&&t.jsxs("div",{className:Y.signalConfig,children:[t.jsx("div",{className:Y.signalConfigTitle,children:s("Signal mapping","cookie-notice")}),k.map(_=>t.jsxs("div",{children:[t.jsx("div",{className:Y.familyTitle,children:_.title}),t.jsx("p",{className:Y.groupHint,children:_.hint}),t.jsx("div",{className:Y.advancedGrid,children:_.signals.map(([b,A])=>t.jsxs("div",{className:Y.advancedRow,children:[t.jsx("span",{className:Y.advancedLabel,children:b}),t.jsx("select",{className:Y.groupSelect,value:i[A],onChange:C=>c(A,Number(C.target.value)),children:Ri(u,i[A]).map(C=>t.jsx("option",{value:C.value,children:C.label},C.value))})]},A))})]},_.title)),t.jsx("div",{className:Y.familyTitle,children:s("Security","cookie-notice")}),t.jsx("p",{className:Y.groupHint,children:s("security_storage — default: Content Personalization. Choose Basic Operations only if this storage really is strictly necessary on your site (for example authentication or fraud prevention): it is then granted for every visitor without consent, including visitors who refuse or send Global Privacy Control.","cookie-notice")}),t.jsx("div",{className:Y.advancedGrid,children:t.jsx(q3,{value:i.googleSecurityStorage,onChange:_=>c("googleSecurityStorage",_),consentChoices:u})})]})]}),t.jsx(Mi,{onApply:x,hasChanges:h,saving:p,savedFlash:m,locked:g})]})}function Z3({staged:i,set:c,consentChoices:u,proLocked:d,saving:p,hasChanges:h,savedFlash:m,onApply:x,onUpgrade:v}){return t.jsxs("div",{className:Y.detail,children:[t.jsxs("div",{className:Y.detailHeader,children:[t.jsx("div",{className:Y.detailTitle,children:s("Facebook","cookie-notice")}),d==="pro"&&t.jsx(Un,{})]}),!d&&t.jsx(As,{signals:Ts(i,"facebook")}),t.jsx("p",{className:Y.detailDesc,children:s("Stops the Meta Pixel from tracking your visitors until they agree. Without this, Facebook can receive data about visitors who never consented — a GDPR violation if you serve EU visitors.","cookie-notice")}),d?t.jsx(zi,{locked:d,platformName:s("Facebook","cookie-notice"),onUpgrade:v}):t.jsxs(t.Fragment,{children:[t.jsx(Eo,{label:i.facebookEnabled?s("Enabled","cookie-notice"):s("Disabled","cookie-notice"),checked:i.facebookEnabled,onChange:g=>c("facebookEnabled",g)}),i.facebookEnabled&&t.jsxs("div",{className:Y.signalConfig,children:[t.jsx("div",{className:Y.signalConfigTitle,children:s("Signal mapping","cookie-notice")}),t.jsxs("div",{className:Y.groupRow,children:[t.jsx("span",{className:Y.groupLabel,children:s("Grant Pixel at","cookie-notice")}),t.jsx("select",{className:Y.groupSelect,value:i.facebookConsent,onChange:g=>c("facebookConsent",Number(g.target.value)),children:Ri(u,i.facebookConsent).map(g=>t.jsx("option",{value:g.value,children:g.label},g.value))})]}),t.jsx("p",{className:Y.groupHint,children:s("Default: Ad Personalization.","cookie-notice")})]})]}),t.jsx(Mi,{onApply:x,hasChanges:h,saving:p,savedFlash:m,locked:d})]})}function X3({staged:i,set:c,consentChoices:u,proLocked:d,saving:p,hasChanges:h,savedFlash:m,onApply:x,onUpgrade:v}){return t.jsxs("div",{className:Y.detail,children:[t.jsxs("div",{className:Y.detailHeader,children:[t.jsx("div",{className:Y.detailTitle,children:s("Microsoft","cookie-notice")}),d==="pro"&&t.jsx(Un,{})]}),!d&&t.jsx(As,{signals:Ts(i,"microsoft")}),t.jsx("p",{className:Y.detailDesc,children:s("Keeps Microsoft Advertising (Bing) and Clarity analytics compliant with consent rules. Trackers only fire after visitors agree.","cookie-notice")}),d?t.jsx(zi,{locked:d,platformName:s("Microsoft","cookie-notice"),onUpgrade:v}):t.jsxs(t.Fragment,{children:[t.jsx(Eo,{label:i.microsoftEnabled?s("Enabled","cookie-notice"):s("Disabled","cookie-notice"),checked:i.microsoftEnabled,onChange:g=>c("microsoftEnabled",g)}),i.microsoftEnabled&&t.jsxs("div",{className:Y.signalConfig,children:[t.jsx("div",{className:Y.signalConfigTitle,children:s("Signal mapping","cookie-notice")}),t.jsxs("div",{className:Y.groupRow,children:[t.jsx("span",{className:Y.groupLabel,children:s("Advertising (UET)","cookie-notice")}),t.jsx("select",{className:Y.groupSelect,value:i.microsoftAdStorage,onChange:g=>c("microsoftAdStorage",Number(g.target.value)),children:Ri(u,i.microsoftAdStorage).map(g=>t.jsx("option",{value:g.value,children:g.label},g.value))})]}),t.jsxs("div",{className:Y.groupRow,style:{marginTop:8},children:[t.jsx("span",{className:Y.groupLabel,children:s("Analytics","cookie-notice")}),t.jsx("select",{className:Y.groupSelect,value:i.microsoftAnalyticsStorage,onChange:g=>c("microsoftAnalyticsStorage",Number(g.target.value)),children:Ri(u,i.microsoftAnalyticsStorage).map(g=>t.jsx("option",{value:g.value,children:g.label},g.value))})]}),t.jsxs("div",{className:Y.subToggles,children:[t.jsx("div",{className:Y.subToggleTitle,children:s("Sub-products","cookie-notice")}),t.jsxs("label",{className:Y.subToggleRow,children:[t.jsx("input",{type:"checkbox",checked:i.microsoftPixie,onChange:g=>c("microsoftPixie",g.target.checked)}),t.jsx("span",{children:s("Pixie","cookie-notice")})]}),t.jsxs("label",{className:Y.subToggleRow,children:[t.jsx("input",{type:"checkbox",checked:i.microsoftClarity,onChange:g=>c("microsoftClarity",g.target.checked)}),t.jsx("span",{children:s("Clarity","cookie-notice")})]})]})]})]}),t.jsx(Mi,{onApply:x,hasChanges:h,saving:p,savedFlash:m,locked:d})]})}function J3({staged:i,set:c,saving:u,hasChanges:d,savedFlash:p,onApply:h,proLocked:m,onUpgrade:x,grandfathered:v}){const g=i.gpcBannerMode||"passive";return t.jsxs("div",{className:Y.detail,children:[t.jsxs("div",{className:Y.detailHeader,children:[t.jsx("div",{className:Y.detailTitle,children:s("Global Privacy Control (GPC)","cookie-notice")}),m==="pro"&&t.jsx(Un,{})]}),m?t.jsxs(t.Fragment,{children:[t.jsx("p",{className:Y.detailDesc,children:"Honors visitors who’ve told their browser they don’t want to be tracked. Required for CCPA / CPRA compliance."}),t.jsx(zi,{locked:m,platformName:"Global Privacy Control",onUpgrade:x}),t.jsx(Mi,{onApply:h,hasChanges:d,saving:u,savedFlash:p,locked:m})]}):t.jsxs(t.Fragment,{children:[t.jsx(Eo,{label:i.gpcEnabled?s("Enabled","cookie-notice"):s("Disabled","cookie-notice"),checked:i.gpcEnabled,onChange:k=>c("gpcEnabled",k)}),v&&t.jsx("p",{className:Y.detailDesc,style:{marginTop:8,fontStyle:"italic"},children:s("GPC is now a Pro feature. Your site keeps it because it was already enabled. If you turn it off, you’ll need Pro to re-enable it.","cookie-notice")}),i.gpcEnabled&&t.jsxs("fieldset",{style:{marginTop:16,padding:0,border:0},children:[t.jsx("legend",{className:Y.detailDesc,style:{padding:0,marginBottom:8,fontWeight:600},children:s("When GPC fires, what should visitors see?","cookie-notice")}),G3().map(k=>t.jsxs("label",{style:{display:"flex",alignItems:"flex-start",gap:8,padding:"6px 0",cursor:"pointer"},children:[t.jsx("input",{type:"radio",name:"gpcBannerMode",value:k.value,checked:g===k.value,onChange:()=>c("gpcBannerMode",k.value),style:{marginTop:3}}),t.jsxs("span",{children:[t.jsx("span",{style:{fontWeight:500},children:k.label}),t.jsx("span",{className:Y.detailDesc,style:{display:"block",marginTop:2},children:k.help})]})]},k.value))]}),t.jsx("p",{className:Y.detailDesc,style:{marginTop:16},children:s("Some visitors set their browser to automatically opt out of tracking. This setting respects that choice — and it’s legally required in California (CPRA). When a visitor sends this signal, tracking is blocked automatically.","cookie-notice")}),t.jsx("div",{className:Y.detailFooter,children:t.jsx(Ue,{variant:"primary",size:"sm",onClick:h,disabled:!d||u,children:s(u?"Applying…":p?"Saved ✓":"Apply","cookie-notice")})})]})]})}function ep({staged:i,set:c,saving:u,hasChanges:d,savedFlash:p,onApply:h}){return t.jsxs("div",{className:Y.detail,children:[t.jsx("div",{className:Y.detailHeader,children:t.jsx("div",{className:Y.detailTitle,children:s("Do Not Track (DNT)","cookie-notice")})}),t.jsx("p",{className:Y.detailDesc,style:{color:"#b56e00",marginBottom:12},children:s("Do Not Track is an older browser setting that most sites ignore. Enabling this is a good-faith gesture but isn’t required by any law. When a visitor has DNT enabled, tracking is blocked automatically.","cookie-notice")}),t.jsx(Eo,{label:i.doNotTrack?s("Enabled","cookie-notice"):s("Disabled","cookie-notice"),checked:i.doNotTrack,onChange:m=>c("doNotTrack",m)}),t.jsx("p",{className:Y.detailDesc,style:{marginTop:12},children:s("When enabled, visitors with DNT set receive Private (level 1) consent automatically.","cookie-notice")}),t.jsx("div",{className:Y.detailFooter,children:t.jsx(Ue,{variant:"primary",size:"sm",onClick:h,disabled:!d||u,children:s(u?"Applying…":p?"Saved ✓":"Apply","cookie-notice")})})]})}function Fl({isOpen:i,onClose:c,isWizard:u=!1,addNotice:d,onOpenPricingModal:p,onApplied:h,scrollTrigger:m}){var xe;const{config:x,refetchConfig:v}=jt(),{dashboard:g}=Mn(),{tier:k}=Ze(),_=(x==null?void 0:x.blocking)||{},b=(x==null?void 0:x.config)||{},A=((xe=g==null?void 0:g.appConfig)==null?void 0:xe.consentChoices)??3,[C,D]=j.useState({}),[P,E]=j.useState("google"),[I,R]=j.useState(!1),[O,oe]=j.useState(null),[J,B]=j.useState(!1),X=j.useRef(null),q={flags:Rl(C),config:Al(C)},W=!!O&&JSON.stringify(q)!==JSON.stringify(O),te=j.useRef(!1),ue=j.useRef(!1),[ge,ne]=j.useState(!1);if(j.useEffect(()=>{if(!(u?x:i)){te.current=!1,ne(!1);return}if(te.current&&ue.current){ne(!0);return}const M=Y3(_,b);D(M),oe({flags:Rl(M),config:Al(M)}),E("google"),te.current=!0,ne(!1)},[u?x:i,x]),j.useEffect(()=>{ue.current=W}),!u&&!i)return null;const de=(M,H)=>D(fe=>({...fe,[M]:H})),F=async()=>{R(!0),B(!1);try{await gs(zl(q.flags,O==null?void 0:O.flags),{},zl(q.config,O==null?void 0:O.config)),oe(q),h&&h({google:C.googleEnabled,facebook:C.facebookEnabled,microsoft:C.microsoftEnabled,gpc:C.gpcEnabled,dnt:C.doNotTrack}),B(!0),clearTimeout(X.current),X.current=setTimeout(()=>B(!1),2e3),v()}catch(M){d&&d((M==null?void 0:M.message)||s("Could not save — please try again.","cookie-notice"))}finally{R(!1)}},ke=kl(),U=k==="pro",ee=!!b.gpcSupportMode,Q=M=>M.key==="gpc"&&M.pro&&!U&&!ee||M.pro&&!U&&M.key!=="gpc"?"pro":M.key==="google"&&ke?"threshold":!1,S={google:C.googleEnabled,facebook:C.facebookEnabled,microsoft:C.microsoftEnabled,gpc:C.gpcEnabled,dnt:C.doNotTrack},$=t.jsxs(t.Fragment,{children:[ge&&t.jsx("div",{className:Y.remoteChangedNotice,role:"status",children:s("These settings were updated elsewhere while this panel was open — in the Admin Portal, or by another user. Your unsaved edits have been kept. Reload the page to see the newer values.","cookie-notice")}),t.jsxs("div",{className:Y.layout,children:[t.jsxs("div",{className:Y.modeList,children:[t.jsxs("div",{className:Y.modeSection,children:[t.jsx("div",{className:Y.modeSectionLabel,children:s("Ad Platforms","cookie-notice")}),St().filter(M=>M.group==="platform").map(M=>{const H=Q(M);return t.jsxs("button",{className:Y.modeCard+(P===M.key?" "+Y.modeCardActive:"")+(H?" "+Y.modeCardLocked:""),onClick:()=>E(M.key),type:"button",children:[t.jsxs("div",{className:Y.modeCardTop,children:[t.jsx("span",{className:Y.modeCardName,children:M.name}),H==="pro"?t.jsx(Un,{}):t.jsx(Ml,{enabled:S[M.key]})]}),t.jsx("div",{className:Y.modeCardDesc,children:M.description}),H&&!Re()&&t.jsxs("div",{className:Y.modeCardProOverlay,role:"button",tabIndex:0,onClick:fe=>{fe.stopPropagation(),p&&p()},onKeyDown:fe=>{(fe.key==="Enter"||fe.key===" ")&&(fe.stopPropagation(),p&&p())},"aria-label":H==="pro"?`${M.name} requires Pro.`:`${M.name} paused — visit limit reached. Upgrade for unlimited visits.`,children:[t.jsx("span",{className:Y.lockIconLarge,children:"🔒"}),t.jsx("span",{className:Y.modeCardProLabel,children:H==="pro"?"Upgrade to Pro →":"Visit limit reached →"})]})]},M.key)})]}),t.jsxs("div",{className:Y.modeSection,children:[t.jsx("div",{className:Y.modeSectionLabel,children:s("Browser Signals","cookie-notice")}),St().filter(M=>M.group==="browser").map(M=>t.jsxs("button",{className:Y.modeCard+(P===M.key?" "+Y.modeCardActive:""),onClick:()=>E(M.key),type:"button",children:[t.jsxs("div",{className:Y.modeCardTop,children:[t.jsx("span",{className:Y.modeCardName,children:M.name}),t.jsx(Ml,{enabled:S[M.key]})]}),t.jsx("div",{className:Y.modeCardDesc,children:M.description})]},M.key))]})]}),t.jsxs("div",{className:Y.detailCol,children:[P==="google"&&t.jsx(Q3,{staged:C,set:de,consentChoices:A,proLocked:Q(St().find(M=>M.key==="google")),saving:I,hasChanges:W,savedFlash:J,onApply:F,onUpgrade:()=>p&&p()}),P==="facebook"&&t.jsx(Z3,{staged:C,set:de,consentChoices:A,proLocked:Q(St().find(M=>M.key==="facebook")),saving:I,hasChanges:W,savedFlash:J,onApply:F,onUpgrade:()=>p&&p()}),P==="microsoft"&&t.jsx(X3,{staged:C,set:de,consentChoices:A,proLocked:Q(St().find(M=>M.key==="microsoft")),saving:I,hasChanges:W,savedFlash:J,onApply:F,onUpgrade:()=>p&&p()}),P==="gpc"&&t.jsx(J3,{staged:C,set:de,proLocked:Q(St().find(M=>M.key==="gpc")),grandfathered:ee,saving:I,hasChanges:W,savedFlash:J,onApply:F,onUpgrade:()=>p&&p()}),P==="dnt"&&t.jsx(ep,{staged:C,set:de,saving:I,hasChanges:W,savedFlash:J,onApply:F})]})]})]}),re=St().filter(M=>S[M.key]).map(M=>M.shortName),pe=re.length>0?we(s("%1$d enabled: %2$s","cookie-notice"),re.length,re.join(", ")):s("No consent signals enabled","cookie-notice"),ve=t.jsxs(t.Fragment,{children:[t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[t.jsx("a",{href:`${en}/#/configuration`,target:"_blank",rel:"noreferrer",className:"cn-layer__link-btn",children:"Advanced settings in Admin Portal →"}),t.jsxs("span",{style:{fontSize:"var(--cn-text-sm)",color:re.length>0?"var(--cn-ok-icon)":"var(--cn-off-val)"},children:[re.length>0?"✓ ":"",pe]})]}),t.jsx(Ue,{variant:"primary",onClick:c,children:s("Done","cookie-notice")})]});return u?$:t.jsx(Ls,{title:s("Consent Signals","cookie-notice"),onClose:c,scrollTrigger:m,footer:ve,children:$})}let Gt;function np(i){if(Gt===void 0)try{Gt=localStorage.getItem(i)==="1",Gt&&localStorage.removeItem(i)}catch{Gt=!1}return Gt}function tp({addNotice:i,onOpenWelcomeModal:c,onOpenPricingModal:u,onTabChange:d}){var ve,xe,M,H,fe,Ve;const{tier:p,isPro:h}=Ze(),{dashboard:m,scorecardStatus:x}=Mn(),{showLawWizard:v,lawScrollTrigger:g,lawClosing:k,closeLawWizard:_,openLawWizard:b,showConsentPanel:A,consentScrollTrigger:C,consentClosing:D,closeConsentPanel:P,openConsentPanel:E}=ki(),[I,R]=j.useState(((xe=(ve=window.cnReactData)==null?void 0:ve.options)==null?void 0:xe.app_id)||""),[O,oe]=j.useState(((H=(M=window.cnReactData)==null?void 0:M.options)==null?void 0:H.app_key)||""),[J,B]=j.useState(!1),[X,q]=j.useState(""),W=async()=>{B(!0),q("");try{await ml({app_id:I,app_key:O});try{const De=await gn("sync_config");if(De!=null&&De.success){try{await ms()}catch{}try{localStorage.setItem(ls(I),"1"),localStorage.setItem(us(I),"1")}catch{}}}catch{}I?Bt():window.location.reload()}catch(De){q(De.message||s("Save failed","cookie-notice")),B(!1)}},te=(m==null?void 0:m.appConfig)||{},ue=bs(),ge=Lo(),ne=Ai(),de=j2((fe=window.cnReactData)==null?void 0:fe.app_id),[F,ke]=j.useState(()=>p!=="banner_only"&&np(de));if(ne)return t.jsxs(In,{sidebar:t.jsx(Wt,{addNotice:i}),children:[t.jsx("div",{className:"cn-protection-header",children:t.jsx("h1",{className:"cn-protection-header__title",children:s("Overview","cookie-notice")})}),t.jsx(ss,{})]});if(p==="banner_only"){const De=Re();return t.jsxs(In,{sidebar:t.jsxs(t.Fragment,{children:[t.jsxs(On,{title:s("Domain Info","cookie-notice"),children:[t.jsxs("div",{className:"cn-dom-rows",children:[t.jsxs("div",{className:"cn-dom-row",children:[t.jsx("span",{className:"cn-dom-row__k",children:s("Domain","cookie-notice")}),t.jsx("span",{className:"cn-dom-row__v",children:window.location.hostname})]}),t.jsxs("div",{className:"cn-dom-row",children:[t.jsx("span",{className:"cn-dom-row__k",children:s("Status","cookie-notice")}),t.jsxs("span",{className:"cn-dom-row__v",children:[t.jsx("span",{className:"cn-dot cn-dot--gray"})," ",s(De?"Managed by network":"Not connected","cookie-notice")]})]})]}),!De&&t.jsxs(t.Fragment,{children:[t.jsx(Ce,{label:s("App ID","cookie-notice"),value:I,onChange:R,placeholder:s("Your application ID","cookie-notice"),autoComplete:"off"}),t.jsx(Ce,{label:s("App Secret Key","cookie-notice"),type:"password",value:O,onChange:oe,placeholder:s("Your App Secret Key","cookie-notice"),autoComplete:"new-password"}),t.jsx(Ns,{}),t.jsxs("p",{className:"cn-conn-hint cn-conn-hint--returning",children:[s("Already have an account?","cookie-notice")," ",t.jsx("a",{href:en,target:"_blank",rel:"noopener noreferrer",children:s("Find your App ID and App Secret Key at app.hu-manity.co","cookie-notice")})]}),X&&t.jsx("div",{className:"cn-conn-error",children:X}),t.jsx(Ue,{variant:"primary",onClick:W,disabled:J,children:s(J?"Saving…":"Connect Your Site","cookie-notice")})]})]}),!De&&t.jsxs(On,{title:s("What you get with compliance","cookie-notice"),children:[t.jsxs("ul",{className:"cn-benefit-list",children:[t.jsxs("li",{className:"cn-benefit-item",children:[t.jsx("span",{className:"cn-benefit-icon",children:"✓"}),t.jsx("span",{children:s("Stop tracking scripts from firing before visitors agree","cookie-notice")})]}),t.jsxs("li",{className:"cn-benefit-item",children:[t.jsx("span",{className:"cn-benefit-icon",children:"✓"}),t.jsx("span",{children:s("Build a legal evidence trail regulators can verify","cookie-notice")})]}),t.jsxs("li",{className:"cn-benefit-item",children:[t.jsx("span",{className:"cn-benefit-icon",children:"✓"}),t.jsx("span",{children:s("Cover GDPR, CCPA, and 40+ global regulations automatically","cookie-notice")})]}),t.jsxs("li",{className:"cn-benefit-item",children:[t.jsx("span",{className:"cn-benefit-icon",children:"✓"}),t.jsx("span",{children:s("Real compliance in under 60 seconds — free to start","cookie-notice")})]})]}),t.jsxs("div",{className:"cn-connect-cta",children:[t.jsxs("button",{type:"button",className:"cn-button cn-button--primary cn-button--block",onClick:()=>c&&c(),children:[s("Connect Your Site","cookie-notice")," →"]}),t.jsx("div",{className:"cn-connect-cta__caption",children:s("No credit card required","cookie-notice")})]})]})]}),children:[De?t.jsx(rs,{}):t.jsx(v3,{onActivate:()=>c&&c()}),t.jsx(Ss,{requiredTier:"free",message:s("Script blocking, consent records, regulatory alerts & more","cookie-notice"),onCta:c,children:t.jsx("div",{className:"cn-pro-gate-placeholder",children:t.jsx("div",{className:"cn-placeholder-charts"})})})]})}const U=Re(),ee=U?null:(m==null?void 0:m.scorecard)||null,Q=((Ve=window.cnReactData)==null?void 0:Ve.siteUrl)||"",S=Q?`${Q}?cn_preview=1`:"",$=wl(te.regulations),re=!!m&&((ee==null?void 0:ee.state)==="no_laws"||$.length===0),pe=De=>{d&&(d("settings"),setTimeout(()=>{const Ao=document.getElementById(De);Ao&&Ao.scrollIntoView({behavior:"smooth",block:"start"})},80))};return t.jsxs(In,{sidebar:t.jsx(Wt,{addNotice:i}),children:[t.jsx("div",{className:"cn-protection-header",children:t.jsx("h1",{className:"cn-protection-header__title",children:s("Overview","cookie-notice")})}),t.jsxs(as,{managed:U,children:[F&&ge==="live"&&t.jsxs("div",{className:"cn-inline-notice cn-inline-notice--success",children:[t.jsxs("div",{className:"cn-inline-notice__message",children:[t.jsxs("strong",{children:["✓"," ",s("Your banner is live.","cookie-notice")]})," ",s("Visitors now see your banner, and your chosen laws and languages are active.","cookie-notice")]}),t.jsxs("div",{className:"cn-inline-notice__actions",children:[S&&t.jsxs("a",{className:"cn-layer__link-btn",href:S,target:"_blank",rel:"noreferrer",children:[s("Preview your live banner","cookie-notice")," →"]}),t.jsx("button",{type:"button",className:"cn-layer__link-btn",onClick:()=>{Gt=!1,ke(!1)},children:s("Dismiss","cookie-notice")})]})]}),t.jsx($3,{initialLaws:$,onOpenPricingModal:u}),!U&&t.jsx(S3,{scorecard:ee,status:x,blockingState:ue,widgetState:ge,isPro:h,siteUrl:Q,actions:{banner:()=>pe("cn-banner-panel-title"),autoblocking:()=>pe("cn-compliance-behavior"),signals:()=>E(),pricing:u}}),!U&&t.jsx(C3,{dashboard:m,isFree:p==="free",onOpenConsentLogs:d?()=>d("audit-trail"):null}),t.jsx(P3,{noLaws:re,isPro:h,managed:U,onOpenLaws:()=>b(),onOpenSignals:()=>E(),onOpenPricing:u,onOpenPrivacy:d?()=>d("privacy-consent"):null}),A&&t.jsx(Fl,{isOpen:!0,onClose:P,addNotice:i,onOpenPricingModal:u,onApplied:()=>{},scrollTrigger:C,isClosing:D}),v&&t.jsx(Tl,{onClose:_,scrollTrigger:g,isClosing:k})]})]})}function Il(){var E,I;const{tier:i}=Ze(),{dashboard:c}=Mn(),[u,d]=j.useState(()=>new Set),p=j.useCallback(R=>{d(O=>new Set([...O,R]))},[]),h=((E=window.cnReactData)==null?void 0:E.notificationRules)||[],m=c===null,x=(I=c==null?void 0:c.analytics)==null?void 0:I.cycleUsage,v=(x==null?void 0:x.visits)||0,g=(x==null?void 0:x.threshold)||0,k=g>0?v/g*100:0,_=g>0?g:i==="free"?1e3:0,b=kl(),A=i==="free"&&g>0&&v>=g*.7&&v<g,C=j.useMemo(()=>{var O,oe,J;if(m)return{};const R={};for(const B of h){if((O=B.condition)!=null&&O.tier&&B.condition.tier!==i)continue;if((oe=B.condition)!=null&&oe.usagePercent){const[q,W]=B.condition.usagePercent;if(q!==null&&k<q||W!==null&&k>=W)continue}if(((J=B.condition)==null?void 0:J.thresholdExceeded)!==void 0&&B.condition.thresholdExceeded!==b||u.has(B.id))continue;const X=R[B.slot];(!X||B.priority>X.priority)&&(R[B.slot]=B)}return R},[m,h,i,k,b,u]);function D(R){return R&&R.replace(/\{sessionTotal\}/g,_.toLocaleString()).replace(/\{sessionUsed\}/g,v.toLocaleString()).replace(/\{usagePercent\}/g,String(Math.round(k)))}function P(R){return R?{...R,title:D(R.title),description:D(R.description),headline:D(R.headline)}:null}return{topBar:P(C.topBar||null),sidebar:P(C.sidebar||null),dismiss:p,thresholdLocked:b,isNearLimit:A}}function op({onOpenPricingModal:i}){const{sidebar:c}=Il();return!c||Re()?null:t.jsx(On,{title:s("Upgrade to Pro","cookie-notice"),children:t.jsxs("div",{className:"cn-upsell-card",children:[t.jsx("p",{className:"cn-upsell-card__headline",children:c.headline}),t.jsx("ul",{className:"cn-upsell-card__features",children:c.features.map(u=>t.jsx("li",{children:u},u))}),t.jsx("button",{type:"button",className:"cn-button cn-button--upgrade cn-button--sm cn-upsell-card__cta",onClick:()=>i&&i(),children:c.cta.label})]})})}const ip=()=>[{key:"top",label:s("Top","cookie-notice"),posClass:"pos-top"},{key:"bottom",label:s("Bottom","cookie-notice"),posClass:"pos-bottom"}],rp=()=>[{key:"top",label:s("Top","cookie-notice"),posClass:"pos-top"},{key:"bottom",label:s("Bottom","cookie-notice"),posClass:"pos-bottom"},{key:"left",label:s("Left","cookie-notice"),posClass:"pos-left"},{key:"right",label:s("Right","cookie-notice"),posClass:"pos-right"},{key:"center",label:s("Popup","cookie-notice"),posClass:"pos-center",proOnly:!0}];function sp({options:i,update:c,save:u,loading:d,saved:p,error:h}){const{isBannerOnly:m,isPro:x}=Ze(),v=m?ip():rp(),[g,k]=j.useState(!1),[_,b]=j.useState(!1),[A,C]=j.useState(""),[D,P]=j.useState(!1),[E,I]=j.useState(i.displayType||"fixed"),R=q=>{const W=i.position||"bottom";q!==W&&(m?(c("position",q),k(!0)):(b(!0),C(""),P(!1),gs({position:q,displayType:E}).then(()=>{P(!0),c("position",q)}).catch(te=>C(te.message||"Save failed.")).finally(()=>b(!1))))},O=q=>{q!==E&&(I(q),m?(c("displayType",q),k(!0)):(b(!0),C(""),P(!1),gs({position:i.position||"bottom",displayType:q}).then(()=>{P(!0),c("displayType",q)}).catch(W=>C(W.message||"Save failed.")).finally(()=>b(!1))))};j.useEffect(()=>{g&&m&&(k(!1),u())},[i.position,i.displayType,g,u,m]);const oe=i.position||"bottom",J=m?d:_,B=m?p:D,X=m?h:A;return t.jsxs("div",{className:"cn-banner-selector",children:[t.jsxs("div",{className:"cn-banner-selector__header",children:[t.jsx("span",{className:"cn-section-label",children:s("Banner Position","cookie-notice")}),B&&t.jsx("span",{className:"cn-saved-indicator",children:"✓ Saved"}),X&&t.jsx("span",{className:"cn-error-indicator",children:X})]}),!m&&t.jsx(t.Fragment,{children:t.jsxs("div",{className:"cn-banner-selector__toggle-row",children:[t.jsx("span",{className:"cn-banner-selector__size-label",children:s("Banner Size","cookie-notice")}),t.jsxs("div",{className:"cn-banner-selector__size-opts",children:[t.jsx("button",{className:`cn-banner-selector__size-opt${E==="floating"?" cn-banner-selector__size-opt--on":""}`,onClick:()=>O("floating"),children:s("Floating","cookie-notice")}),t.jsx("button",{className:`cn-banner-selector__size-opt${E==="fixed"?" cn-banner-selector__size-opt--on":""}`,onClick:()=>O("fixed"),children:s("Fixed","cookie-notice")})]}),t.jsx("span",{className:"cn-banner-selector__size-desc",children:E==="floating"?"Fills only as much space as necessary.":"Expands to fill all available space."})]})}),t.jsx("div",{className:`cn-banner-selector__grid${!m&&E==="floating"?" cn-banner-selector__grid--floating":""}`,children:v.map(q=>{const W=q.proOnly&&!x;return t.jsxs("div",{className:"cn-banner-selector__card"+(oe===q.key?" cn-banner-selector__card--active":"")+(J&&!W?" cn-banner-selector__card--saving":"")+(W?" cn-banner-selector__card--locked":""),onClick:()=>!W&&R(q.key),title:W?"Upgrade to Pro to use the Popup position":void 0,children:[W&&t.jsx("span",{className:"cn-banner-selector__pro-badge",children:t.jsx(Un,{})}),t.jsx("div",{className:"cn-banner-selector__thumb",children:t.jsx("div",{className:`cn-banner-selector__pos ${q.posClass}${W?" cn-banner-selector__pos--locked":""}`})}),t.jsxs("div",{className:"cn-banner-selector__meta",children:[t.jsx("span",{className:"cn-banner-selector__name",children:q.label}),oe===q.key&&!W&&t.jsx("span",{className:"cn-banner-selector__active-pill",children:s("Active","cookie-notice")}),W&&t.jsx("span",{className:"cn-banner-selector__locked-label",children:s("Pro only","cookie-notice")})]})]},q.key)})}),!m&&t.jsx("div",{className:"cn-banner-selector__portal-link",children:t.jsx("a",{href:`${en}/#/configuration`,target:"_blank",rel:"noopener noreferrer",children:"Customize in Admin Portal →"})})]})}const Rs={size:24,color:"currentColor"};function vn({size:i,color:c,className:u,style:d}={},p){return{xmlns:"http://www.w3.org/2000/svg",width:i||Rs.size,height:i||Rs.size,viewBox:"0 0 24 24",fill:"none",stroke:c||Rs.color,strokeWidth:1.75,strokeLinecap:"round",strokeLinejoin:"round",className:u||"",style:d,...p}}function ap(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("path",{d:"M12 2L3 6v5.5c0 4.5 3.8 8.7 9 10 5.2-1.3 9-5.5 9-10V6l-9-4z"}),t.jsx("polyline",{points:"8.5 12 11 14.5 15.5 9.5"})]})}function cp(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("circle",{cx:"12",cy:"12",r:"10"}),t.jsx("ellipse",{cx:"12",cy:"12",rx:"4",ry:"10"}),t.jsx("line",{x1:"2",y1:"12",x2:"22",y2:"12"})]})}function lp(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("rect",{x:"4",y:"14",width:"4",height:"7",rx:"1"}),t.jsx("rect",{x:"10",y:"9",width:"4",height:"12",rx:"1"}),t.jsx("rect",{x:"16",y:"4",width:"4",height:"17",rx:"1"})]})}function Ol(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("rect",{x:"5",y:"2",width:"14",height:"20",rx:"2"}),t.jsx("line",{x1:"9",y1:"8",x2:"15",y2:"8"}),t.jsx("line",{x1:"9",y1:"12",x2:"15",y2:"12"}),t.jsx("line",{x1:"9",y1:"16",x2:"13",y2:"16"})]})}function zs(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("rect",{x:"5",y:"11",width:"14",height:"10",rx:"2"}),t.jsx("path",{d:"M8 11V7a4 4 0 0 1 8 0v4"})]})}function Ul(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("circle",{cx:"12",cy:"12",r:"10"}),t.jsx("path",{d:"M9 12l2 2 4-4"})]})}function Bl(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}),t.jsx("line",{x1:"12",y1:"9",x2:"12",y2:"13"}),t.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]})}function up(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("circle",{cx:"12",cy:"12",r:"3"}),t.jsx("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09a1.65 1.65 0 0 0-1.08-1.51 1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09a1.65 1.65 0 0 0 1.51-1.08 1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1.08z"})]})}function dp(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("line",{x1:"12",y1:"3",x2:"12",y2:"21"}),t.jsx("line",{x1:"9",y1:"21",x2:"15",y2:"21"}),t.jsx("line",{x1:"3.5",y1:"8",x2:"20.5",y2:"8"}),t.jsx("line",{x1:"3.5",y1:"8",x2:"3.5",y2:"13"}),t.jsx("path",{d:"M1.5 13Q3.5 16.5 5.5 13"}),t.jsx("line",{x1:"20.5",y1:"8",x2:"20.5",y2:"13"}),t.jsx("path",{d:"M18.5 13Q20.5 16.5 22.5 13"})]})}function pp(i){return t.jsx("svg",{...vn(i),children:t.jsx("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"})})}function fp(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("rect",{x:"2",y:"2",width:"20",height:"16",rx:"2.5"}),t.jsx("line",{x1:"2",y1:"13",x2:"22",y2:"13"}),t.jsx("line",{x1:"6",y1:"7",x2:"11",y2:"7"}),t.jsx("line",{x1:"6",y1:"10",x2:"9",y2:"10"}),t.jsx("rect",{x:"14",y:"14.5",width:"5",height:"2",rx:"1",fill:"currentColor",stroke:"none"}),t.jsx("line",{x1:"4",y1:"15.5",x2:"10",y2:"15.5"})]})}function hp(i){return t.jsx("svg",{...vn(i),children:t.jsx("polyline",{points:"6 9 12 15 18 9"})})}function mp(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("path",{d:"M7 15l5 5 5-5"}),t.jsx("path",{d:"M7 9l5-5 5 5"})]})}function Kn({title:i,subtitle:c,defaultOpen:u=!1,children:d}){return t.jsxs("details",{className:"cn-accordion",open:u||void 0,children:[t.jsxs("summary",{className:"cn-accordion__summary",children:[t.jsxs("div",{className:"cn-accordion__left",children:[t.jsx("span",{className:"cn-accordion__title",children:i}),c&&t.jsx("span",{className:"cn-accordion__subtitle",children:c})]}),t.jsx("span",{className:"cn-accordion__chevron",children:t.jsx(hp,{size:16})})]}),t.jsx("div",{className:"cn-accordion__body",children:d})]})}function Ms({label:i,value:c,onChange:u}){const d=`cn-color-${i==null?void 0:i.toLowerCase().replace(/\s+/g,"-")}`;return t.jsxs("div",{className:"cn-form-field",children:[i&&t.jsx("label",{className:"cn-form-field__label",htmlFor:d,children:i}),t.jsxs("div",{className:"cn-color-picker__row",children:[t.jsx("input",{type:"color",className:"cn-color-picker__swatch",value:c||"#000000",onChange:p=>u==null?void 0:u(p.target.value)}),t.jsx("input",{id:d,type:"text",className:"cn-form-field__input",value:c||"",onChange:p=>u==null?void 0:u(p.target.value),placeholder:"#000000",style:{flex:1}})]})]})}const gp=()=>[{value:"bottom",label:s("Bottom","cookie-notice")},{value:"top",label:s("Top","cookie-notice")}],vp=()=>[{value:"fade",label:s("Fade","cookie-notice")},{value:"slide",label:s("Slide","cookie-notice")},{value:"none",label:s("None","cookie-notice")}];function Fi({label:i,value:c}){return t.jsxs("div",{className:"cn-form-readonly",children:[t.jsx("label",{className:"cn-form-readonly__label",children:i}),t.jsx("span",{className:"cn-form-readonly__value",children:c||s("(default)","cookie-notice")}),t.jsxs("a",{href:`${en}/#/configuration`,target:"_blank",rel:"noreferrer",className:"cn-form-readonly__link",children:[s("Edit text in Admin Portal","cookie-notice")," →"]})]})}function yp({options:i,update:c,updateNested:u}){const d=i.colors||{};i.see_more_opt;const{isConnected:p,isBannerOnly:h}=Ze();return t.jsx(Kn,{title:s("Banner Design","cookie-notice"),subtitle:s("Texts, colors, position, and animation","cookie-notice"),defaultOpen:!0,children:t.jsxs("div",{className:"cn-banner-design__grid",children:[t.jsxs("div",{className:"cn-banner-design__col",children:[p?t.jsx(Fi,{label:s("Banner Message","cookie-notice"),value:i.message_text}):t.jsx(Ce,{label:s("Banner Message","cookie-notice"),type:"textarea",value:i.message_text||"",onChange:m=>c("message_text",m)}),p?t.jsx(Fi,{label:s("Accept Button","cookie-notice"),value:i.accept_text}):t.jsx(Ce,{label:s("Accept Button","cookie-notice"),value:i.accept_text||"",onChange:m=>c("accept_text",m),placeholder:s("Accept All","cookie-notice")}),p?t.jsx(Fi,{label:s("Reject Button","cookie-notice"),value:i.refuse_text}):t.jsx(Ce,{label:s("Reject Button","cookie-notice"),value:i.refuse_text||"",onChange:m=>c("refuse_text",m),placeholder:s("Reject All","cookie-notice")}),!h&&(p?t.jsx(Fi,{label:s("Update consent button","cookie-notice"),value:i.revoke_text}):t.jsx(Ce,{label:s("Update consent button","cookie-notice"),value:i.revoke_text||"",onChange:m=>c("revoke_text",m),placeholder:s("Update consent","cookie-notice")})),t.jsx(Ce,{label:s("Banner Position","cookie-notice"),type:"select",value:i.position||"bottom",onChange:m=>c("position",m),options:gp()}),t.jsx(Ce,{label:s("Dismiss Animation","cookie-notice"),type:"select",value:i.hide_effect||"fade",onChange:m=>c("hide_effect",m),options:vp()})]}),t.jsxs("div",{className:"cn-banner-design__col",children:[t.jsx(Ms,{label:s("Background Color","cookie-notice"),value:d.bar||"#32323a",onChange:m=>u("colors","bar",m)}),t.jsx(Ms,{label:s("Text Color","cookie-notice"),value:d.text||"#ffffff",onChange:m=>u("colors","text",m)}),t.jsx(Ms,{label:s("Button Color","cookie-notice"),value:d.button||"#00a99d",onChange:m=>u("colors","button",m)})]})]})})}function _p({onConnect:i}){return t.jsxs("div",{className:"cn-tier-gate-inline",children:[t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{opacity:.5},children:[t.jsx("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),t.jsx("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]}),t.jsxs("div",{children:[t.jsx("strong",{children:s("Advanced features require a connection","cookie-notice")}),t.jsx("p",{style:{margin:"4px 0 0",color:"var(--cn-muted)",fontSize:"var(--cn-text-sm)"},children:s("Connect your site to unlock Autoblocking, Cookie Categories, Consent Records, and Analytics.","cookie-notice")})]}),t.jsx("button",{type:"button",className:"cn-button cn-button--primary",onClick:i,children:s("Connect Your Site — It’s Free","cookie-notice")})]})}const kp=()=>({gpcSupportMode:{title:s("GPC support","cookie-notice"),summary:s("GPC (Global Privacy Control) tells browsers to signal opt-out of data sale automatically. Required for CCPA compliance.","cookie-notice"),navPath:[s("Compliance","cookie-notice"),s("Privacy Settings","cookie-notice"),s("GPC Support","cookie-notice")],action:s("Toggle GPC Support on, then save.","cookie-notice"),deepLink:"/#/configuration"},onClose:{title:s("Accept on close","cookie-notice"),summary:s("Accepting consent when users dismiss the banner is not allowed under GDPR and UK PECR.","cookie-notice"),navPath:[s("Compliance","cookie-notice"),s("Consent Settings","cookie-notice"),s("Accept on Close","cookie-notice")],action:s("Ensure Accept on Close is set to Off.","cookie-notice"),deepLink:"/#/configuration"},uiBlocking:{title:s("Cookie wall (UI blocking)","cookie-notice"),summary:s('Blocking site access until consent is given (a "cookie wall") violates GDPR — consent must be freely given.',"cookie-notice"),navPath:[s("Compliance","cookie-notice"),s("Blocking Settings","cookie-notice"),s("Cookie Wall","cookie-notice")],action:s("Ensure Cookie Wall is set to Off.","cookie-notice"),deepLink:"/#/configuration"}}),xp=()=>t.jsxs("svg",{viewBox:"0 0 28 28",fill:"none",width:"28",height:"28","aria-hidden":"true",children:[t.jsx("path",{d:"M14 3L4 7v7c0 6.627 4.477 12.5 10 14.5C19.523 26.5 24 20.627 24 14V7L14 3z",stroke:"rgba(255,255,255,.75)",strokeWidth:"1.5",strokeLinejoin:"round"}),t.jsx("path",{d:"M9 14l3.5 3.5L19 11",stroke:"#fff",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});function jp({settingKey:i,accountEmail:c,onClose:u,onSynced:d}){const[p,h]=j.useState(!1),[m,x]=j.useState(""),v=kp()[i];if(!v||Re())return null;const g=v.deepLink?en+v.deepLink:en,k=async()=>{h(!0),x("");try{await gn("sync_config"),d==null||d(),u==null||u()}catch{x("Sync failed. Please try again or refresh the page.")}finally{h(!1)}};return t.jsx("div",{className:"cn-portal-bridge-overlay",role:"dialog","aria-modal":"true","aria-label":we(s("Configure %s in Admin Portal","cookie-notice"),v.title),children:t.jsxs("div",{className:"cn-portal-bridge",children:[t.jsxs("div",{className:"cn-portal-bridge__header",children:[t.jsx("div",{className:"cn-portal-bridge__header-icon",children:t.jsx(xp,{})}),t.jsxs("div",{children:[t.jsxs("div",{className:"cn-portal-bridge__header-title",children:[v.title," is configured in the Admin Portal"]}),t.jsx("div",{className:"cn-portal-bridge__header-sub",children:s("Takes about 60 seconds","cookie-notice")})]})]}),t.jsxs("div",{className:"cn-portal-bridge__body",children:[t.jsx("p",{className:"cn-portal-bridge__summary",children:v.summary}),c&&t.jsxs("div",{className:"cn-portal-bridge__context",children:[t.jsx("div",{className:"cn-portal-bridge__context-dot"}),t.jsxs("div",{className:"cn-portal-bridge__context-text",children:["Sign in with ",t.jsx("strong",{children:c})," to access this setting."]})]}),t.jsxs("div",{className:"cn-portal-bridge__steps",children:[t.jsxs("div",{className:"cn-portal-bridge__step",children:[t.jsx("div",{className:"cn-portal-bridge__step-num",children:"1"}),t.jsxs("div",{className:"cn-portal-bridge__step-body",children:[t.jsx("div",{className:"cn-portal-bridge__step-title",children:s("Open the Admin Portal","cookie-notice")}),t.jsx("div",{className:"cn-portal-bridge__step-desc",children:s("Opens in a new tab.","cookie-notice")})]})]}),t.jsxs("div",{className:"cn-portal-bridge__step",children:[t.jsx("div",{className:"cn-portal-bridge__step-num",children:"2"}),t.jsxs("div",{className:"cn-portal-bridge__step-body",children:[t.jsx("div",{className:"cn-portal-bridge__step-title",children:s("Navigate to the setting","cookie-notice")}),t.jsx("div",{className:"cn-portal-bridge__step-desc",children:v.navPath.join(" → ")})]})]}),t.jsxs("div",{className:"cn-portal-bridge__step",children:[t.jsx("div",{className:"cn-portal-bridge__step-num",children:"3"}),t.jsxs("div",{className:"cn-portal-bridge__step-body",children:[t.jsx("div",{className:"cn-portal-bridge__step-title",children:s("Make the change","cookie-notice")}),t.jsx("div",{className:"cn-portal-bridge__step-desc",children:v.action})]})]})]}),m&&t.jsx("div",{className:"cn-portal-bridge__error",children:m}),t.jsxs("div",{className:"cn-portal-bridge__actions",children:[t.jsx("a",{href:g,target:"_blank",rel:"noopener noreferrer",className:"cn-portal-bridge__btn cn-portal-bridge__btn--primary",children:"Open Admin Portal →"}),t.jsx("button",{type:"button",className:"cn-portal-bridge__btn cn-portal-bridge__btn--secondary",onClick:k,disabled:p,children:p?"Checking…":"I've made the change"})]})]}),t.jsx("div",{className:"cn-portal-bridge__dismiss",children:t.jsx("button",{type:"button",onClick:u,className:"cn-portal-bridge__dismiss-btn",children:s("Not now","cookie-notice")})})]})})}const $l={banner:"Banner shown",hidden:"Silent",passive:"Passive notice"},wp=()=>[{key:"app_blocking_engine",wpKey:"app_blocking_engine",label:s("Script blocking engine","cookie-notice"),desc:s("The master switch. Turn this off and Cookie Compliance never touches your scripts — nothing is blocked for any visitor, in any region, regardless of privacy signals. Leave it on unless you handle script blocking yourself.","cookie-notice"),valueType:"toggle",requiredFor:[],activeLaws:[],activeValue:!0},{key:"app_blocking",wpKey:"app_blocking",label:s("Autoblocking","cookie-notice"),desc:s("Block before consent. Holds third-party scripts until the visitor makes a choice. With this off, scripts load immediately; once the visitor chooses, their choice is enforced either way.","cookie-notice"),valueType:"toggle",requiredFor:[],activeLaws:[],activeValue:!0},{key:"onScroll",label:s("Accept on scroll","cookie-notice"),desc:s("Consent granted automatically if visitor scrolls","cookie-notice"),valueType:"bool-inverted",requiredFor:["gdpr","ukpecr","lgpd","popia"],activeLaws:["gdpr","ukpecr","lgpd","popia"],activeValue:!1},{key:"onClick",label:s("Accept on click","cookie-notice"),desc:s("Consent granted automatically on any page click","cookie-notice"),valueType:"bool-inverted",requiredFor:["gdpr","ukpecr","lgpd","popia"],activeLaws:["gdpr","ukpecr","lgpd","popia"],activeValue:!1},{key:"onClose",label:s("Accept on close","cookie-notice"),desc:s("Consent granted automatically if banner is closed","cookie-notice"),valueType:"bool-inverted",requiredFor:["gdpr","ukpecr","popia"],activeLaws:["gdpr","ukpecr","popia"],activeValue:!1,portalOnly:!0},{key:"refuse_opt",wpKey:"refuse_opt",label:s("Refuse button","cookie-notice"),desc:s("Display a button allowing visitors to decline tracking","cookie-notice"),valueType:"bool",requiredFor:["gdpr","ukpecr","lgpd","pipeda","popia"],activeLaws:["gdpr","ukpecr","lgpd","pipeda","popia"],activeValue:!0},{key:"revokeConsent",label:s("Update consent","cookie-notice"),desc:s("Floating control so visitors can reopen the banner and update their consent","cookie-notice"),valueType:"bool",requiredFor:[],activeLaws:["gdpr","ccpa","otherus","ukpecr","lgpd","pipeda","popia"],activeValue:!0},{key:"gpcSupportMode",label:s("GPC support","cookie-notice"),desc:s("Honor browser-level opt-out signals automatically","cookie-notice"),valueType:"bool",requiredFor:[],activeLaws:["ccpa","otherus"],activeValue:!0,portalOnly:!0,pro:!0,globalNote:s("Required for all connected sites (CCPA/CPRA mandate)","cookie-notice")},{key:"consentExpiry",label:s("Consent expiry","cookie-notice"),desc:s("How long before visitors are prompted again","cookie-notice"),valueType:"expiry-array",requiredFor:["gdpr","ukpecr"],activeLaws:["gdpr","ukpecr"]},{key:"uiBlocking",label:s("Cookie wall","cookie-notice"),desc:s("Block access to site content until consent is given","cookie-notice"),valueType:"bool-inverted",requiredFor:["gdpr"],activeLaws:["gdpr"],activeValue:!1,portalOnly:!0}],Bn={shield:({color:i})=>t.jsxs("svg",{viewBox:"0 0 22 22",fill:"none",width:"22",height:"22","aria-hidden":"true",children:[t.jsx("path",{d:"M11 3L4 6v5c0 4 3.5 7 7 8 3.5-1 7-4 7-8V6L11 3z",stroke:i,strokeWidth:"1.5",strokeLinejoin:"round"}),t.jsx("polyline",{points:"8,11 10,13 14,9",stroke:i,strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})]}),scroll:({color:i})=>t.jsxs("svg",{viewBox:"0 0 22 22",fill:"none",width:"22",height:"22","aria-hidden":"true",children:[t.jsx("rect",{x:"4",y:"3",width:"14",height:"16",rx:"3",stroke:i,strokeWidth:"1.5"}),t.jsx("polyline",{points:"9,13 11,16 13,13",stroke:i,strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("line",{x1:"11",y1:"9",x2:"11",y2:"16",stroke:i,strokeWidth:"1.2",strokeLinecap:"round"})]}),click:({color:i})=>t.jsxs("svg",{viewBox:"0 0 22 22",fill:"none",width:"22",height:"22","aria-hidden":"true",children:[t.jsx("path",{d:"M8.5 10.5V5.5a1.5 1.5 0 013 0v5",stroke:i,strokeWidth:"1.5",strokeLinecap:"round"}),t.jsx("path",{d:"M11.5 8.5V5a1.5 1.5 0 013 0V10",stroke:i,strokeWidth:"1.5",strokeLinecap:"round"}),t.jsx("path",{d:"M14.5 8a1.5 1.5 0 013 0v4c0 3.314-2.686 6-6 6h-1a5 5 0 01-5-5v-2.5a1.5 1.5 0 013 0",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),close:({color:i})=>t.jsxs("svg",{viewBox:"0 0 22 22",fill:"none",width:"22",height:"22","aria-hidden":"true",children:[t.jsx("rect",{x:"3",y:"3",width:"16",height:"16",rx:"3",stroke:i,strokeWidth:"1.5"}),t.jsx("line",{x1:"8",y1:"8",x2:"14",y2:"14",stroke:i,strokeWidth:"1.4",strokeLinecap:"round"}),t.jsx("line",{x1:"14",y1:"8",x2:"8",y2:"14",stroke:i,strokeWidth:"1.4",strokeLinecap:"round"})]}),refuse:({color:i})=>t.jsxs("svg",{viewBox:"0 0 22 22",fill:"none",width:"22",height:"22","aria-hidden":"true",children:[t.jsx("rect",{x:"3",y:"7",width:"16",height:"8",rx:"3",stroke:i,strokeWidth:"1.5"}),t.jsx("line",{x1:"7",y1:"11",x2:"15",y2:"11",stroke:i,strokeWidth:"1.3",strokeLinecap:"round"})]}),revoke:({color:i})=>t.jsxs("svg",{viewBox:"0 0 22 22",fill:"none",width:"22",height:"22","aria-hidden":"true",children:[t.jsx("path",{d:"M4 8h7a6 6 0 110 12H6",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("polyline",{points:"4,4 4,8 8,8",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),gpc:({color:i})=>t.jsxs("svg",{viewBox:"0 0 22 22",fill:"none",width:"22",height:"22","aria-hidden":"true",children:[t.jsx("path",{d:"M8 10V5a1.5 1.5 0 013 0v5",stroke:i,strokeWidth:"1.5",strokeLinecap:"round"}),t.jsx("path",{d:"M11 8V4.5a1.5 1.5 0 013 0V9",stroke:i,strokeWidth:"1.5",strokeLinecap:"round"}),t.jsx("path",{d:"M14 7.5a1.5 1.5 0 013 0V12c0 3.314-2.686 6-6 6h-1a5 5 0 01-5-5v-2a1.5 1.5 0 013 0",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),clock:({color:i})=>t.jsxs("svg",{viewBox:"0 0 22 22",fill:"none",width:"22",height:"22","aria-hidden":"true",children:[t.jsx("circle",{cx:"11",cy:"11",r:"9",stroke:i,strokeWidth:"1.5"}),t.jsx("polyline",{points:"11,6 11,11 14,14",stroke:i,strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})]}),power:({color:i})=>t.jsxs("svg",{viewBox:"0 0 22 22",fill:"none",width:"22",height:"22","aria-hidden":"true",children:[t.jsx("circle",{cx:"11",cy:"12",r:"7.5",stroke:i,strokeWidth:"1.5"}),t.jsx("line",{x1:"11",y1:"3",x2:"11",y2:"11",stroke:i,strokeWidth:"1.6",strokeLinecap:"round"})]}),wall:({color:i})=>t.jsxs("svg",{viewBox:"0 0 22 22",fill:"none",width:"22",height:"22","aria-hidden":"true",children:[t.jsx("rect",{x:"2",y:"5",width:"18",height:"12",rx:"2",stroke:i,strokeWidth:"1.5"}),t.jsx("line",{x1:"2",y1:"9",x2:"20",y2:"9",stroke:i,strokeWidth:"1.2"}),t.jsx("line",{x1:"11",y1:"9",x2:"11",y2:"17",stroke:i,strokeWidth:"1.2"})]})},bp={app_blocking_engine:Bn.power,app_blocking:Bn.shield,onScroll:Bn.scroll,onClick:Bn.click,onClose:Bn.close,refuse_opt:Bn.refuse,revokeConsent:Bn.revoke,gpcSupportMode:Bn.gpc,consentExpiry:Bn.clock,uiBlocking:Bn.wall};function Np(i,c,u,d){if(i.key==="gpcSupportMode"&&!u&&d.some(h=>h==="ccpa"||h==="otherus")||i.key==="uiBlocking"&&!u&&d.includes("gdpr"))return"crit";if((i.key==="onScroll"||i.key==="onClick"||i.key==="onClose")&&!u){const h=["gdpr","ukpecr","popia"].some(x=>d.includes(x)),m=(i.key==="onScroll"||i.key==="onClick")&&d.includes("lgpd");if(h||m)return"crit"}return u?"ok":"warn"}function Sp({setting:i,activeLawKeys:c,wpOptions:u,confirmedOptions:d,configData:p,onOpenPortal:h,onToggle:m,saving:x,unconfirmed:v,checking:g,pullUnknown:k,saveError:_,blockingPaused:b,blockingState:A,onUpgrade:C,isPro:D}){const{key:P,label:E,desc:I,valueType:R,activeLaws:O,portalOnly:oe,wpKey:J}=i,B=i.key==="gpcSupportMode"&&!!p.gpcSupportMode,X=!!i.pro&&!D&&!B,q=O.filter(re=>c.includes(re)),W=J||P,te=J?u:p;let ue,ge;const ne=i.key==="app_blocking"||i.key==="app_blocking_engine",de=ne&&A==="networkManaged",F=ne&&(A==="inactive"||de),ke=i.key==="app_blocking"&&!!b,U=ke&&!F,ee=i.key==="app_blocking"&&(d==null?void 0:d.app_blocking_engine)===!1;if(R==="bool"){const re=te[W],pe=W==="app_blocking"&&re===void 0?!0:!!re;if(ge=pe===i.activeValue,i.key==="gpcSupportMode"&&pe){const ve=te.gpcBannerMode||"passive",xe=$l[ve]||$l.passive;ue=t.jsxs(t.Fragment,{children:["On",t.jsx("div",{style:{fontSize:"var(--cn-text-sm)",fontWeight:"normal",color:"var(--cn-muted)",marginTop:2},children:xe})]})}else ue=s(pe?"On":"Off","cookie-notice")}else if(R==="bool-inverted"){const re=!!te[W];ue=s(re?"On":"Off","cookie-notice"),ge=re===i.activeValue}else if(R==="toggle"){const re=te[W]??!0,pe=(d==null?void 0:d[W])??!0;ue=t.jsxs("label",{className:"cn-toggle-row__label",style:{cursor:ke?"default":"pointer",margin:0,justifyContent:"flex-start"},children:[t.jsx("input",{type:"checkbox",className:"cn-toggle-row__input",checked:re,disabled:ke,onChange:ve=>m&&m(W,ve.target.checked),style:{marginRight:"6px"}}),re?"On":"Off",U&&t.jsx("span",{className:"cn-card__paused",style:{marginLeft:8,color:"var(--cn-warn-icon)",fontWeight:500},children:s("Paused","cookie-notice")}),F&&i.key==="app_blocking"&&t.jsx("span",{className:"cn-card__inactive",style:{marginLeft:8,color:"var(--cn-warn-icon)",fontWeight:500},children:s(de?"Managed by network":"Not active","cookie-notice")}),x&&t.jsx("span",{className:"cn-card__saving",style:{marginLeft:8,fontSize:"var(--cn-text-sm)",fontWeight:"normal",color:"var(--cn-muted)"},children:s("Saving…","cookie-notice")})]}),ge=i.key==="app_blocking"?A==="active":F||x||v?!1:pe===i.activeValue}else if(R==="expiry-array"){const re=Array.isArray(te[W])?te[W]:[30,182,365],pe=Math.max(...re);ue=re.map(ve=>ve>=365?`${Math.round(ve/365)}y`:ve>=30?`${Math.round(ve/30)}mo`:`${ve}d`).join(" / "),ge=pe<=365}const Q=Np(i,ue,ge,c),S=`var(--cn-${Q}-icon)`,$=bp[P]||null;return t.jsxs("div",{className:`cn-card${Q==="crit"?" cn-card--crit":""}`,children:[t.jsxs("div",{className:"cn-card__top",children:[t.jsx("div",{className:"cn-card__icon",children:$&&t.jsx($,{color:S})}),t.jsx("div",{className:`cn-card__dot cn-card__dot--${Q}`})]}),t.jsx("div",{className:`cn-card__main cn-card__main--${Q}`,children:ue}),t.jsx("div",{className:"cn-card__sub",children:E}),I&&t.jsx("div",{className:"cn-card__desc",style:{marginTop:4,fontSize:"var(--cn-text-sm)",color:"var(--cn-muted)"},children:I}),t.jsx("div",{className:"cn-card__pills",children:q.map(re=>t.jsx("span",{className:`cn-card__pill cn-card__pill--${Q}`,children:xl[re]||re.toUpperCase()},re))}),t.jsx("div",{className:"cn-card__foot",children:X?t.jsxs(t.Fragment,{children:[t.jsx(Un,{}),t.jsx("button",{type:"button",onClick:C,children:"Upgrade to Pro →"})]}):oe&&t.jsx("button",{type:"button",onClick:()=>h==null?void 0:h(i.key),children:"Manage in Admin Portal →"})}),U&&t.jsxs("div",{className:"cn-card__threshold-banner",style:{marginTop:8,padding:"8px 10px",background:"var(--cn-warn-bg, #fef3cd)",borderRadius:6,fontSize:"var(--cn-text-sm)"},children:[s("Visit limit reached — autoblocking is paused until your 30-day visit cycle resets.","cookie-notice")," ",t.jsx("button",{type:"button",className:"cn-card__threshold-upgrade",style:{background:"none",border:"none",color:"var(--cn-link)",cursor:"pointer",padding:0,font:"inherit",textDecoration:"underline"},onClick:C,children:"Upgrade →"})]}),v&&!x&&t.jsx("div",{className:"cn-card__unconfirmed",role:"status",style:{marginTop:8,padding:"8px 10px",background:"var(--cn-warn-bg, #fef3cd)",borderRadius:6,fontSize:"var(--cn-text-sm)"},children:s(k?"Not confirmed — reload the page to see the saved autoblocking setting.":g?"Checking the saved value…":"Not confirmed — reload to see the saved value","cookie-notice")}),_&&t.jsxs("div",{className:"cn-card__save-error",role:"alert",style:{marginTop:8,padding:"8px 10px",background:"var(--cn-crit-bg, #fdecea)",borderRadius:6,fontSize:"var(--cn-text-sm)"},children:[s("Not saved:","cookie-notice")," ",_]}),ee&&!U&&t.jsx("div",{className:"cn-card__engine-note",style:{marginTop:8,padding:"8px 10px",background:"var(--cn-warn-bg, #fef3cd)",borderRadius:6,fontSize:"var(--cn-text-sm)"},children:s("No effect while the script blocking engine is off.","cookie-notice")})]})}function Cp({wpOptions:i,confirmedOptions:c,update:u,scheduleSave:d,blockingPaused:p,blockingState:h,savingKeys:m=[],unconfirmedKeys:x=[],checkingKeys:v=[],pullUnknownKeys:g=[],autoSaveError:k=null,onOpenPricingModal:_}){var W;const{dashboard:b,refetchDashboard:A}=Mn(),{config:C,refetchConfig:D}=jt(),{isPro:P}=Ze(),E=(te,ue)=>{u(te,ue),d([te])},I=((W=b==null?void 0:b.appConfig)==null?void 0:W.regulations)||{},R=Object.entries(I).filter(([,te])=>te).map(([te])=>te),O=(b==null?void 0:b.accountEmail)||"",oe=(C==null?void 0:C.config)||{},[J,B]=j.useState(null),X=R.length>0,q=wp().filter(te=>te.requiredFor.length===0?!0:te.requiredFor.some(ue=>R.includes(ue)));return t.jsxs(t.Fragment,{children:[t.jsxs("div",{id:"cn-compliance-behavior",className:"cn-compliance-behavior",children:[t.jsx("div",{className:"cn-card-grid cn-card-grid--auto",children:q.map(te=>t.jsx(Sp,{setting:te,activeLawKeys:R,wpOptions:i,confirmedOptions:c,configData:oe,onOpenPortal:B,onToggle:E,saving:m.includes(te.wpKey||te.key),unconfirmed:x.includes(te.wpKey||te.key),checking:v.includes(te.wpKey||te.key),pullUnknown:g.includes(te.wpKey||te.key),saveError:k!=null&&k.keys.includes(te.wpKey||te.key)?k.message:null,blockingPaused:p,blockingState:h,onUpgrade:_,isPro:P},te.key))}),t.jsxs("div",{className:"cn-compliance-behavior__footer",children:[X?"These settings were automatically configured based on your selected laws. ":"Select laws to see recommendations tied to your jurisdictions. ",t.jsx("a",{href:`${en}/#/configuration`,target:"_blank",rel:"noreferrer",className:"cn-form-readonly__link",children:X?"Configure in Admin Portal →":"Select laws in Admin Portal →"})]})]}),J&&t.jsx(jp,{settingKey:J,accountEmail:O,onClose:()=>B(null),onSynced:()=>{A(),D(),B(null)}})]})}const Le={thumb:"_thumb_1g9ys_1",chrome:"_chrome_1g9ys_12",dot:"_dot_1g9ys_23",urlBar:"_urlBar_1g9ys_31",page:"_page_1g9ys_39",lines:"_lines_1g9ys_45",banner:"_banner_1g9ys_57","bar-bottom":"_bar-bottom_1g9ys_69","bar-top":"_bar-top_1g9ys_75",floating:"_floating_1g9ys_81",fixed:"_fixed_1g9ys_87","panel-left":"_panel-left_1g9ys_92","panel-right":"_panel-right_1g9ys_99",panelFloating:"_panelFloating_1g9ys_106",panelFixed:"_panelFixed_1g9ys_110",popup:"_popup_1g9ys_115",bannerHeader:"_bannerHeader_1g9ys_124",toolbarDots:"_toolbarDots_1g9ys_131",pills:"_pills_1g9ys_143",pill:"_pill_1g9ys_143",pillDot:"_pillDot_1g9ys_160",saveBtn:"_saveBtn_1g9ys_167",footerLinks:"_footerLinks_1g9ys_174",link:"_link_1g9ys_181","anim-slide-bottom":"_anim-slide-bottom_1g9ys_188",huPreviewSlideUp:"_huPreviewSlideUp_1g9ys_1","anim-slide-top":"_anim-slide-top_1g9ys_192",huPreviewSlideDown:"_huPreviewSlideDown_1g9ys_1","anim-slide-left":"_anim-slide-left_1g9ys_196",huPreviewSlideLeft:"_huPreviewSlideLeft_1g9ys_1","anim-slide-right":"_anim-slide-right_1g9ys_200",huPreviewSlideRight:"_huPreviewSlideRight_1g9ys_1","anim-slide-center":"_anim-slide-center_1g9ys_204",huPreviewScaleIn:"_huPreviewScaleIn_1g9ys_1","anim-fade":"_anim-fade_1g9ys_208",huPreviewFade:"_huPreviewFade_1g9ys_1"},Pp=["#c4c4c4","#d5b565","#9891b1"];function Lp(i){const c=i.replace("#",""),u=parseInt(c.slice(0,2),16),d=parseInt(c.slice(2,4),16),p=parseInt(c.slice(4,6),16);return(u*299+d*587+p*114)/1e3>155}function Ep({preset:i,isActive:c}){const{position:u="bottom",displayType:d="floating",bannerColor:p="#4d4d4d",primaryColor:h="#20c19e",btnBorderRadius:m="25px",animation:x="fade"}=i,v=Lp(p),g=v?"rgba(0,0,0,.25)":"rgba(255,255,255,.4)",k=v?"rgba(0,0,0,.18)":"rgba(255,255,255,.35)",_=u==="left"||u==="right",b=u==="center",A=d==="floating",C=Math.max(2,Math.round(parseInt(m)*.18))+"px",D=x==="slide"?Le[`anim-slide-${u}`]:Le["anim-fade"],P=[Le.banner,_?Le[`panel-${u}`]:null,_&&A?Le.panelFloating:null,_&&!A?Le.panelFixed:null,b?Le.popup:null,!_&&!b?Le[`bar-${u}`]:null,!_&&!b&&A?Le.floating:null,!_&&!b&&!A?Le.fixed:null,Le[D]||D].filter(Boolean).join(" ");return t.jsx(Wl,{children:t.jsxs("div",{className:P,style:{backgroundColor:p},children:[t.jsx("div",{className:Le.bannerHeader,children:t.jsxs("div",{className:Le.toolbarDots,style:{"--dot-color":g},children:[t.jsx("span",{}),t.jsx("span",{}),t.jsx("span",{})]})}),t.jsx("div",{className:Le.pills,children:Pp.map((E,I)=>t.jsx("div",{className:Le.pill,style:{borderColor:E},children:t.jsx("span",{className:Le.pillDot,style:{backgroundColor:E}})},I))}),t.jsx("div",{className:Le.saveBtn,style:{backgroundColor:h,borderRadius:C}}),t.jsxs("div",{className:Le.footerLinks,children:[t.jsx("div",{className:Le.link,style:{background:k}}),t.jsx("div",{className:Le.link,style:{background:k}})]})]})})}function Wl({children:i}){return t.jsxs("div",{className:Le.thumb,children:[t.jsxs("div",{className:Le.chrome,children:[t.jsx("span",{className:Le.dot}),t.jsx("span",{className:Le.dot}),t.jsx("span",{className:Le.dot}),t.jsx("div",{className:Le.urlBar})]}),t.jsxs("div",{className:Le.page,children:[t.jsxs("div",{className:Le.lines,children:[t.jsx("div",{style:{width:"75%"}}),t.jsx("div",{style:{width:"55%"}}),t.jsx("div",{style:{width:"65%"}}),t.jsx("div",{style:{width:"45%"}})]}),i]})]})}const nn={root:"_root_o4a2z_1",scaler:"_scaler_o4a2z_6",overlay:"_overlay_o4a2z_12",banner:"_banner_o4a2z_18",card:"_card_o4a2z_28",bottom:"_bottom_o4a2z_33",top:"_top_o4a2z_36",edge:"_edge_o4a2z_40",bar:"_bar_o4a2z_52",heading:"_heading_o4a2z_66",narrow:"_narrow_o4a2z_71",left:"_left_o4a2z_77",right:"_right_o4a2z_81",modal:"_modal_o4a2z_85",desc:"_desc_o4a2z_101",descShort:"_descShort_o4a2z_109",row:"_row_o4a2z_113",pill:"_pill_o4a2z_121",link:"_link_o4a2z_131"},Dp=["bottom","top","left","right","center"];function Tp(i){let c=String(i||"").replace("#","");if(c.length===3&&(c=c.split("").map(h=>h+h).join("")),!/^[0-9a-f]{6}$/i.test(c))return!1;const[u,d,p]=[0,2,4].map(h=>parseInt(c.slice(h,h+2),16));return(u*299+d*587+p*114)/1e3>155}function Ap(i,c,u,d){return i!=="new"?"classic":u==="left"||u==="right"?"narrow":u==="center"?"modal":c==="compact"&&d==="fixed"?"bar":"card"}function Rp({shape:i,compact:c,position:u,displayType:d,bannerColor:p,primaryColor:h}){const m=Tp(p),x={"--thumb-bg":p,"--thumb-accent":h,"--thumb-ink":m?"rgba(0,0,0,.5)":"rgba(255,255,255,.75)","--thumb-faint":m?"rgba(0,0,0,.22)":"rgba(255,255,255,.35)"},v=[nn.banner,nn[i],i==="card"||i==="bar"?nn[u==="top"?"top":"bottom"]:null,i==="narrow"?nn[u]:null,i==="card"&&d==="fixed"?nn.edge:null].filter(Boolean).join(" "),g=(c?[0,1]:[0,1,2]).map(_=>t.jsx("span",{className:nn.pill},_)),k=t.jsx("span",{className:nn.link});return t.jsxs(t.Fragment,{children:[i==="modal"&&t.jsx("div",{className:nn.overlay}),t.jsx("div",{className:v,style:x,children:i==="bar"?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:nn.heading}),g,k]}):t.jsxs(t.Fragment,{children:[t.jsx("span",{className:nn.heading}),!c&&t.jsx("span",{className:nn.desc}),!c&&t.jsx("span",{className:`${nn.desc} ${nn.descShort}`}),t.jsxs("span",{className:nn.row,children:[g,k]})]})})]})}function zp({engine:i="classic",style:c="standard",position:u,displayType:d,bannerColor:p,primaryColor:h,scale:m=1}){const x=u==="popup"?"center":Dp.includes(u)?u:"bottom",v=d==="fixed"?"fixed":"floating",g=p||"#4d4d4d",k=h||"#20c19e",_=Ap(i,c,x,v),b=m!==1?{width:160*m,height:90*m}:void 0;return t.jsx("div",{className:`cn-banner-thumb ${nn.root}`,"data-engine":i,"data-style":c,"data-shape":_,style:b,"aria-hidden":"true",children:t.jsx("div",{className:nn.scaler,style:m!==1?{transform:`scale(${m})`}:void 0,children:_==="classic"?t.jsx(Ep,{preset:{position:x,displayType:v,bannerColor:g,primaryColor:k}}):t.jsx(Wl,{children:t.jsx(Rp,{shape:_,compact:c==="compact",position:x,displayType:v,bannerColor:g,primaryColor:k})})})})}function Gl(){var k,_,b;const i=Ti(),c=Lo(),{dashboard:u}=Mn(),{configRefresh:d}=jt(),p=i.engine==="new",h=i.managed,m=c==="live",x=((k=u==null?void 0:u.appConfig)==null?void 0:k.design)||((_=window.cnReactData)==null?void 0:_.bannerDesign)||{},v=((b=window.cnReactData)==null?void 0:b.siteUrl)||"",g=cs(d==null?void 0:d.lastSynced);return t.jsxs("section",{className:"cn-banner-panel","aria-labelledby":"cn-banner-panel-title","data-engine":i.engine,"data-style":p?i.style:void 0,children:[t.jsxs("div",{className:"cn-banner-panel__shot",children:[t.jsxs("div",{className:"cn-banner-panel__head",children:[t.jsx("h2",{id:"cn-banner-panel-title",className:"cn-banner-panel__title",children:s("Your banner","cookie-notice")}),t.jsx("span",{className:`cn-banner-panel__status cn-banner-panel__status--${m?"live":"off"}`,children:m?s("Live on your site","cookie-notice"):ts(c)})]}),t.jsx(zp,{engine:i.engine,style:i.style,position:x.position,displayType:x.displayType,bannerColor:x.bannerColor,primaryColor:x.primaryColor,scale:1.75}),t.jsx("p",{className:"cn-banner-panel__caption",children:s("A drawing based on your engine, style and colours. Use Preview to see the real banner.","cookie-notice")})]}),t.jsxs("div",{className:"cn-banner-panel__rows",children:[h&&t.jsx("p",{className:"cn-banner-panel__managed",children:s("Managed by your network administrator — this site uses the network's banner.","cookie-notice")}),t.jsxs("div",{className:"cn-banner-panel__row",children:[t.jsx("span",{className:"cn-banner-panel__label",children:s("Engine","cookie-notice")}),t.jsxs("div",{className:"cn-banner-panel__value",children:[t.jsx("span",{className:`cn-banner-panel__chip cn-banner-panel__chip--${i.engine}`,children:Si(i.engine)}),t.jsx("span",{className:"cn-banner-panel__note",children:s(p?"One click records any choice, including reject. Also holds tracking scripts added after the page loads, and adds the Compact style. You can switch back at any time.":"The original banner.","cookie-notice")}),!h&&t.jsxs("a",{className:"cn-banner-panel__link",href:`${en}/#/configuration`,target:"_blank",rel:"noopener noreferrer",children:[s("Change engine in Admin Portal","cookie-notice")," ↗"]})]})]}),t.jsxs("div",{className:"cn-banner-panel__row",children:[t.jsx("span",{className:"cn-banner-panel__label",id:"cn-banner-panel-style",children:s("Style","cookie-notice")}),t.jsx("div",{className:"cn-banner-panel__value",children:t.jsx(Pl,{name:"cn-banner-style",labelledBy:"cn-banner-panel-style"})})]}),!h&&t.jsxs("div",{className:"cn-banner-panel__actions",children:[v&&t.jsxs("a",{className:"cn-button cn-button--primary",href:`${v}?cn_preview=1`,target:"_blank",rel:"noreferrer",children:[s("Preview on my site","cookie-notice")," ↗"]}),t.jsxs("a",{className:"cn-button cn-button--outline",href:`${en}/#/configuration`,target:"_blank",rel:"noopener noreferrer",children:[s("Edit colours & text in Admin Portal","cookie-notice")," ↗"]}),t.jsxs("span",{className:"cn-banner-panel__sync",children:[g?we(s("Synced %s","cookie-notice"),g):s("Not synced yet","cookie-notice"),(d==null?void 0:d.state)==="failed"&&t.jsx("span",{className:"cn-banner-panel__sync-failed",children:s("Couldn't reach Hu-manity — showing cached settings.","cookie-notice")})]})]}),!h&&v&&t.jsx("p",{className:"cn-banner-panel__preview-help",children:s("Can't see your banner on your own site? That's often normal. It stays hidden when your browser sends Global Privacy Control, when your visitor's region doesn't require a banner, or when you've already made a choice. Preview shows it anyway. Nothing is saved.","cookie-notice")})]})]})}function Mp(i){return{google:s("Google","cookie-notice"),facebook:s("Facebook","cookie-notice"),microsoft:s("Microsoft","cookie-notice"),gpc:s("GPC","cookie-notice"),dnt:s("DNT","cookie-notice")}[i]||i}const Fp=["google","facebook","microsoft","gpc","dnt"];function Ip(){var k,_;const{dashboard:i}=Mn(),{config:c}=jt(),{openLawWizard:u,openConsentPanel:d}=ki(),p=`cn-card__pill cn-card__pill--${Lo()==="live"?"ok":"off"}`,h=wl((k=i==null?void 0:i.appConfig)==null?void 0:k.regulations).map(b=>xl[b]||b.toUpperCase()),m=(_=i==null?void 0:i.appConfig)==null?void 0:_.language,x=m&&Array.isArray(m)?m.length:1,v=Cl((c==null?void 0:c.blocking)||{}),g=Fp.filter(b=>v[b]);return t.jsxs("section",{className:"cn-lls","aria-labelledby":"cn-lls-title",children:[t.jsx("h2",{id:"cn-lls-title",className:"cn-lls__title",children:s("Laws, languages & signals","cookie-notice")}),t.jsxs("div",{className:"cn-lls__row","data-lls":"laws",children:[t.jsx("span",{className:"cn-lls__k",children:s("Laws","cookie-notice")}),t.jsx("div",{className:"cn-lls__v",children:h.length>0?h.map(b=>t.jsxs("span",{className:p,children:[jl[b]?`${jl[b].flag} `:"",b]},b)):t.jsx("span",{className:"cn-lls__none",children:s("No laws selected","cookie-notice")})}),t.jsxs("button",{type:"button",className:"cn-lls__action",onClick:()=>u(),children:[h.length>0?s("Edit laws","cookie-notice"):s("Add laws","cookie-notice")," →"]})]}),t.jsxs("div",{className:"cn-lls__row","data-lls":"languages",children:[t.jsx("span",{className:"cn-lls__k",children:s("Languages","cookie-notice")}),t.jsx("div",{className:"cn-lls__v",children:we(yo("%d language","%d languages",x,"cookie-notice"),x)}),t.jsxs("a",{className:"cn-lls__action",href:`${en}/#/languages`,target:"_blank",rel:"noopener noreferrer",children:[s("Manage languages","cookie-notice")," ↗"]})]}),t.jsxs("div",{className:"cn-lls__row","data-lls":"signals",children:[t.jsx("span",{className:"cn-lls__k",children:s("Consent signals","cookie-notice")}),t.jsx("div",{className:"cn-lls__v",children:g.length>0?g.map(b=>t.jsx("span",{className:p,children:Mp(b)},b)):t.jsx("span",{className:"cn-lls__none",children:s("None switched on","cookie-notice")})}),t.jsxs("button",{type:"button",className:"cn-lls__action",onClick:()=>d(),children:[s("Consent signals","cookie-notice")," →"]})]})]})}const Op=((m1=window.cnReactData)==null?void 0:m1.ruleParams)||[],Up=((g1=window.cnReactData)==null?void 0:g1.ruleOperators)||[];function Bp({rule:i,onChange:c,onRemove:u}){const[d,p]=j.useState([]),[h,m]=j.useState(!1),[x,v]=j.useState(!1),g=j.useCallback(async _=>{if(!_){p([]);return}m(!0);try{const b=await $2(_),A=(b==null?void 0:b.values)||[];A.length>0&&A[0].group?v(!0):v(!1),p(A)}catch{p([])}finally{m(!1)}},[]);j.useEffect(()=>{g(i.param)},[i.param,g]);const k=_=>{c({...i,param:_,value:""})};return t.jsxs("div",{className:"cn-rule-row",children:[t.jsxs("select",{className:"cn-rule-row__param",value:i.param,onChange:_=>k(_.target.value),children:[t.jsx("option",{value:"",children:"-- Select --"}),Op.map(_=>t.jsx("option",{value:_.value,children:_.label},_.value))]}),t.jsx("select",{className:"cn-rule-row__operator",value:i.operator,onChange:_=>c({...i,operator:_.target.value}),children:Up.map(_=>t.jsx("option",{value:_.value,children:_.label},_.value))}),t.jsxs("select",{className:"cn-rule-row__value",value:i.value,onChange:_=>c({...i,value:_.target.value}),disabled:h,children:[t.jsx("option",{value:"",children:h?"Loading…":"-- Select --"}),x?d.map(_=>t.jsx("optgroup",{label:_.group,children:_.items.map(b=>t.jsx("option",{value:b.value,children:b.label},b.value))},_.group)):d.map(_=>t.jsx("option",{value:_.value,children:_.label},_.value))]}),t.jsx("button",{type:"button",className:"cn-rule-row__remove",onClick:u,title:s("Remove rule","cookie-notice"),children:"×"})]})}function $p({group:i,groupIndex:c,onChange:u,onRemove:d}){const p=(x,v)=>{const g=[...i];g[x]=v,u(g)},h=x=>{if(i.length===1){d();return}u(i.filter((v,g)=>g!==x))},m=()=>{u([...i,{param:"",operator:"equal",value:""}])};return t.jsxs("div",{className:"cn-rule-group",children:[c>0&&t.jsx("div",{className:"cn-rule-group__or",children:"OR"}),t.jsxs("div",{className:"cn-rule-group__card",children:[i.map((x,v)=>t.jsxs("div",{children:[v>0&&t.jsx("div",{className:"cn-rule-group__and",children:s("AND","cookie-notice")}),t.jsx(Bp,{rule:x,onChange:g=>p(v,g),onRemove:()=>h(v)})]},v)),t.jsx("button",{type:"button",className:"cn-rule-group__add-rule",onClick:m,children:"+ Add rule"})]})]})}function Wp({rules:i,onChange:c}){const u=!i||Array.isArray(i)&&i.length===0?[]:Array.isArray(i)?i.map(g=>Array.isArray(g)?g.map(k=>({param:k.param||"",operator:k.operator||"equal",value:k.value||""})):Object.values(g).map(k=>({param:k.param||"",operator:k.operator||"equal",value:k.value||""}))):Object.values(i).map(g=>Object.values(g).map(k=>({param:k.param||"",operator:k.operator||"equal",value:k.value||""}))),[d,p]=j.useState(u),h=g=>{p(g),c(g)},m=(g,k)=>{const _=[...d];_[g]=k,h(_)},x=g=>{h(d.filter((k,_)=>_!==g))},v=()=>{h([...d,[{param:"",operator:"equal",value:""}]])};return t.jsxs("div",{className:"cn-rule-builder",children:[d.length===0&&t.jsx("p",{className:"cn-rule-builder__empty",children:s("No rules configured. Add a rule group to control where the banner appears.","cookie-notice")}),d.map((g,k)=>t.jsx($p,{group:g,groupIndex:k,onChange:_=>m(k,_),onRemove:()=>x(k)},k)),t.jsx("button",{type:"button",className:"cn-rule-builder__add-group",onClick:v,children:"+ Add rule group"})]})}const Vl=()=>{var i;return((i=window.cnReactData)==null?void 0:i.expiryOptions)||[]};function an({label:i,checked:c,onChange:u,description:d}){const p=j.useId();return t.jsxs("div",{className:"cn-toggle-row",children:[t.jsxs("label",{className:"cn-toggle-row__label",htmlFor:p,children:[t.jsx("input",{id:p,type:"checkbox",className:"cn-toggle-row__input",checked:c,onChange:h=>u(h.target.checked)}),t.jsx("span",{className:"cn-toggle-row__text",children:i})]}),d&&t.jsx("div",{className:"cn-toggle-row__desc",children:d})]})}function Do({label:i,name:c,value:u,options:d,onChange:p}){return t.jsxs("div",{className:"cn-radio-group",children:[i&&t.jsx("div",{className:"cn-radio-group__label",children:i}),t.jsx("div",{className:"cn-radio-group__options",children:d.map(h=>t.jsxs("label",{className:"cn-radio-group__option",children:[t.jsx("input",{type:"radio",name:c,value:h.value,checked:u===h.value,onChange:()=>p(h.value)}),t.jsx("span",{children:h.label})]},h.value))})]})}function Gp({label:i}){return t.jsxs("div",{className:"cn-form-readonly",children:[t.jsx("label",{className:"cn-form-readonly__label",children:i}),t.jsx("span",{className:"cn-form-readonly__value cn-form-readonly__value--muted",children:s("Managed in Admin Portal","cookie-notice")}),t.jsxs("a",{href:`${en}/#/configuration`,target:"_blank",rel:"noreferrer",className:"cn-form-readonly__link",children:[s("Edit in Admin Portal","cookie-notice")," →"]})]})}function Hl({addNotice:i,options:c,update:u,updateNested:d,save:p,reset:h,loading:m,saved:x,error:v,onOpenConsentPanel:g}){var O,oe,J,B,X,q,W,te,ue,ge,ne,de;const k=((O=window.cnReactData)==null?void 0:O.wpPages)||[],{isConnected:_}=Ze(),[b,A]=j.useState(!1),[C,D]=j.useState("head"),[P,E]=j.useState(!1),I=async()=>{E(!1),await h()&&i&&i(s("Settings restored to defaults.","cookie-notice"),"success")},R=async()=>{if(await p()){if(_){try{await W2()}catch{i&&i(s("Settings saved. The privacy policy link on your banner could not be updated. Please try again.","cookie-notice"),"warning");return}i&&i(s("Settings saved.","cookie-notice"),"success");return}i&&i(s("Settings saved successfully.","cookie-notice"),"success")}};return t.jsxs("div",{className:"cn-plugin-settings",children:[!_&&t.jsxs(t.Fragment,{children:[t.jsxs(Kn,{title:s("Consent Behavior","cookie-notice"),defaultOpen:!0,children:[t.jsx(an,{label:s("Enable refuse button","cookie-notice"),checked:!!c.refuse_opt,onChange:F=>u("refuse_opt",F),description:s("Allow visitors to refuse cookie consent","cookie-notice")}),c.refuse_opt&&t.jsx(Ce,{label:s("Refuse button text","cookie-notice"),value:c.refuse_text||"",onChange:F=>u("refuse_text",F),placeholder:s("No","cookie-notice")}),t.jsx(an,{label:s("Enable Update consent","cookie-notice"),checked:!!c.revoke_cookies,onChange:F=>u("revoke_cookies",F),description:s("Show a control so visitors can reopen the banner and update their consent","cookie-notice")}),c.revoke_cookies&&t.jsxs(t.Fragment,{children:[t.jsx(Do,{label:s("Update consent method","cookie-notice"),name:"revoke_cookies_opt",value:c.revoke_cookies_opt||"automatic",options:[{value:"automatic",label:s("Automatic","cookie-notice")},{value:"manual",label:s("Manual","cookie-notice")}],onChange:F=>u("revoke_cookies_opt",F)}),t.jsx(Ce,{label:s("Update consent button text","cookie-notice"),value:c.revoke_text||"",onChange:F=>u("revoke_text",F),placeholder:s("Update consent","cookie-notice")}),t.jsx(Ce,{label:s("Update consent message","cookie-notice"),type:"textarea",value:c.revoke_message_text||"",onChange:F=>u("revoke_message_text",F)})]}),t.jsx(an,{label:s("Accept on scroll","cookie-notice"),checked:!!c.on_scroll,onChange:F=>u("on_scroll",F),description:s("Automatically accept consent when the user scrolls","cookie-notice")}),c.on_scroll&&t.jsx(Ce,{label:s("Scroll distance (px)","cookie-notice"),type:"number",value:c.on_scroll_offset||100,onChange:F=>u("on_scroll_offset",parseInt(F,10)||0)}),t.jsx(an,{label:s("Accept on click","cookie-notice"),checked:!!c.on_click,onChange:F=>u("on_click",F),description:s("Automatically accept consent on any page click","cookie-notice")}),t.jsx(an,{label:s("Reload page on accept","cookie-notice"),checked:!!c.redirection,onChange:F=>u("redirection",F),description:s("Reload the page after the visitor accepts consent","cookie-notice")})]}),t.jsxs(Kn,{title:s("Cookie Expiry","cookie-notice"),defaultOpen:!0,children:[t.jsx(Ce,{label:s("Accepted expiry","cookie-notice"),type:"select",value:c.time||"month",onChange:F=>u("time",F),options:Vl()}),t.jsx(Ce,{label:s("Rejected expiry","cookie-notice"),type:"select",value:c.time_rejected||"month",onChange:F=>u("time_rejected",F),options:Vl()})]})]}),t.jsxs(Kn,{title:s("Privacy Policy","cookie-notice"),defaultOpen:!0,children:[t.jsx(an,{label:s("Enable privacy policy link","cookie-notice"),checked:!!c.see_more,onChange:F=>u("see_more",F)}),c.see_more&&(_?t.jsxs(t.Fragment,{children:[k.length>0&&t.jsx(Ce,{label:s("Select page","cookie-notice"),type:"select",value:((oe=c.see_more_opt)==null?void 0:oe.id)||"",onChange:F=>{d("see_more_opt","link_type","page"),d("see_more_opt","id",parseInt(F,10)||0)},options:[{value:"",label:s("— Select a page —","cookie-notice")},...k.map(F=>({value:String(F.id),label:F.title}))]}),t.jsx(an,{label:s("Sync with WordPress Privacy Page","cookie-notice"),checked:!!((J=c.see_more_opt)!=null&&J.sync),onChange:F=>{F&&d("see_more_opt","link_type","page"),d("see_more_opt","sync",F)}}),t.jsx(Gp,{label:s("Link text and appearance","cookie-notice")})]}):t.jsxs(t.Fragment,{children:[t.jsx(Ce,{label:s("Link text","cookie-notice"),value:((B=c.see_more_opt)==null?void 0:B.text)||"",onChange:F=>d("see_more_opt","text",F),placeholder:s("Privacy policy","cookie-notice")}),t.jsx(Do,{label:s("Link type","cookie-notice"),name:"see_more_link_type",value:((X=c.see_more_opt)==null?void 0:X.link_type)||"page",options:[{value:"page",label:s("Page link","cookie-notice")},{value:"custom",label:s("Custom link","cookie-notice")}],onChange:F=>d("see_more_opt","link_type",F)}),((q=c.see_more_opt)==null?void 0:q.link_type)==="page"&&k.length>0&&t.jsx(Ce,{label:s("Select page","cookie-notice"),type:"select",value:((W=c.see_more_opt)==null?void 0:W.id)||"",onChange:F=>d("see_more_opt","id",parseInt(F,10)||0),options:[{value:"",label:s("— Select a page —","cookie-notice")},...k.map(F=>({value:String(F.id),label:F.title}))]}),((te=c.see_more_opt)==null?void 0:te.link_type)==="custom"&&t.jsx(Ce,{label:s("Custom URL","cookie-notice"),value:((ue=c.see_more_opt)==null?void 0:ue.link)||"",onChange:F=>d("see_more_opt","link",F),placeholder:"https://"}),t.jsx(an,{label:s("Sync with WordPress Privacy Page","cookie-notice"),checked:!!((ge=c.see_more_opt)!=null&&ge.sync),onChange:F=>d("see_more_opt","sync",F)}),t.jsx(Do,{label:s("Open link in","cookie-notice"),name:"link_target",value:c.link_target||"_blank",options:[{value:"_blank",label:s("New tab","cookie-notice")},{value:"_self",label:s("Same tab","cookie-notice")}],onChange:F=>u("link_target",F)}),t.jsx(Do,{label:s("Link position","cookie-notice"),name:"link_position",value:c.link_position||"banner",options:[{value:"banner",label:s("Banner","cookie-notice")},{value:"message",label:s("Message","cookie-notice")}],onChange:F=>u("link_position",F)})]}))]}),t.jsxs(Kn,{title:s("Custom Scripts","cookie-notice"),defaultOpen:!0,children:[t.jsxs("div",{className:"cn-pill-toggle",children:[t.jsx("button",{type:"button",className:`cn-pill-toggle__btn${C==="head"?" cn-pill-toggle__btn--active":""}`,onClick:()=>D("head"),children:s("Head","cookie-notice")}),t.jsx("button",{type:"button",className:`cn-pill-toggle__btn${C==="body"?" cn-pill-toggle__btn--active":""}`,onClick:()=>D("body"),children:s("Body","cookie-notice")})]}),C==="head"?t.jsxs(t.Fragment,{children:[t.jsx("p",{className:"cn-pill-toggle-desc",children:s("Code to be added in your site header, before the closing head tag.","cookie-notice")}),t.jsx(Ce,{type:"textarea",value:c.refuse_code_head||"",onChange:F=>u("refuse_code_head",F),placeholder:s("<!-- e.g. Google Analytics -->","cookie-notice"),rows:6})]}):t.jsxs(t.Fragment,{children:[t.jsx("p",{className:"cn-pill-toggle-desc",children:s("Code to be added in your site footer, before the closing body tag.","cookie-notice")}),t.jsx(Ce,{type:"textarea",value:c.refuse_code||"",onChange:F=>u("refuse_code",F),placeholder:s("<!-- e.g. tracking scripts -->","cookie-notice"),rows:6})]}),t.jsx("p",{className:"cn-pill-toggle-note",children:s("Enter non-functional cookies JavaScript code (e.g. Google Analytics) to be used after the visitor consent is given.","cookie-notice")})]}),t.jsxs(Kn,{title:s("Display & Animation","cookie-notice"),defaultOpen:!0,children:[!_&&t.jsxs("div",{className:"cn-form-field",children:[t.jsx("label",{className:"cn-form-field__label",htmlFor:"cn-bar-opacity",children:we(s("Bar opacity: %d%%","cookie-notice"),((ne=c.colors)==null?void 0:ne.bar_opacity)??100)}),t.jsx("input",{id:"cn-bar-opacity",type:"range",className:"cn-opacity-slider",min:50,max:100,value:((de=c.colors)==null?void 0:de.bar_opacity)??100,onChange:F=>d("colors","bar_opacity",parseInt(F.target.value,10))})]}),t.jsx(Ce,{label:s("Custom button CSS class","cookie-notice"),value:c.css_class||"",onChange:F=>u("css_class",F),placeholder:s("e.g. my-custom-btn","cookie-notice"),helper:s(_?"Adds CSS classes to the [cookies_revoke] and [cookies_policy_link] shortcode buttons.":"Add custom CSS classes to the accept button","cookie-notice")})]}),t.jsxs(Kn,{title:s("Technical Settings","cookie-notice"),defaultOpen:!0,children:[_&&t.jsxs(t.Fragment,{children:[t.jsx(an,{label:s("Bot detection","cookie-notice"),checked:!!(c.bot_detection??!0),onChange:F=>u("bot_detection",F),description:s("Automatically detect and handle bots/crawlers","cookie-notice")}),t.jsx(an,{label:s("AMP support","cookie-notice"),checked:!!c.amp_support,onChange:F=>u("amp_support",F),description:s("Enable AMP-compatible consent notice","cookie-notice")}),t.jsx(an,{label:s("WP Consent API","cookie-notice"),checked:!!(c.wp_consent_api??!0),onChange:F=>u("wp_consent_api",F),description:s("Register as the active CMP for cooperative plugins (WooCommerce, Site Kit, Burst Statistics, etc.). Requires the WP Consent API plugin to be active.","cookie-notice")}),t.jsx(an,{label:s("Caching compatibility","cookie-notice"),checked:!!(c.caching_compatibility??!0),onChange:F=>u("caching_compatibility",F),description:s("Improve compatibility with caching plugins","cookie-notice")}),t.jsx(an,{label:s("Debug mode","cookie-notice"),checked:!!c.debug_mode,onChange:F=>u("debug_mode",F),description:s("Enable debug logging for troubleshooting","cookie-notice")}),t.jsx(Ce,{label:s("Excluded script handles","cookie-notice"),type:"textarea",value:Array.isArray(c.excluded_handles)?c.excluded_handles.join(` 1061 `):c.excluded_handles||"",onChange:F=>u("excluded_handles",F),placeholder:`elementor-frontend 1062 my-analytics-init`,rows:4,helper:s("Enter WordPress script handles to exclude from autoblocking, one per line. These scripts will be marked as Essential (Category 1) and never blocked.","cookie-notice")})]}),!_&&t.jsx(Do,{label:s("Script placement","cookie-notice"),name:"script_placement",value:c.script_placement||"header",options:[{value:"header",label:s("Header","cookie-notice")},{value:"footer",label:s("Footer","cookie-notice")}],onChange:F=>u("script_placement",F)}),t.jsx(an,{label:s("Conditional display","cookie-notice"),checked:!!c.conditional_active,onChange:F=>u("conditional_active",F),description:s("Show or hide the banner on specific pages","cookie-notice")}),c.conditional_active&&t.jsxs(t.Fragment,{children:[t.jsx(Ce,{label:s("Display rule","cookie-notice"),type:"select",value:c.conditional_display||"hide",onChange:F=>u("conditional_display",F),options:[{value:"hide",label:s("Hide the banner","cookie-notice")},{value:"show",label:s("Show the banner","cookie-notice")}]}),t.jsx(Wp,{rules:c.conditional_rules||[],onChange:F=>u("conditional_rules",F)})]}),t.jsx(an,{label:s("Delete data on deactivation","cookie-notice"),checked:!!c.deactivation_delete,onChange:F=>u("deactivation_delete",F),description:s("Remove all plugin data when the plugin is deactivated","cookie-notice")}),_&&t.jsxs("div",{className:"cn-purge-cache",children:[t.jsx(Ue,{variant:"secondary",onClick:async()=>{A(!0);try{await H2(),i&&i(s("Cache purged successfully.","cookie-notice"),"success")}catch(F){i&&i(F.message||s("Purge failed. Please try again.","cookie-notice"),"error")}finally{A(!1)}},disabled:b,children:s(b?"Purging…":"Purge Cache","cookie-notice")}),t.jsx("p",{className:"cn-purge-cache__desc",children:s("Click to refresh the app configuration cache.","cookie-notice")})]})]}),t.jsxs("div",{className:"cn-plugin-settings__actions",children:[t.jsx(Ue,{variant:"primary",onClick:R,disabled:m,children:s(m?"Saving…":_?"Save WordPress Settings":"Save Settings","cookie-notice")}),x&&t.jsxs("span",{className:"cn-plugin-settings__saved",children:["✓"," ",s("Saved","cookie-notice")]}),v&&t.jsx("span",{className:"cn-plugin-settings__error",children:v}),h&&!P&&t.jsx(Ue,{variant:"secondary",onClick:()=>E(!0),disabled:m,children:s("Reset to defaults","cookie-notice")})]}),P&&t.jsxs("div",{className:"cn-plugin-settings__reset-confirm",role:"alertdialog","aria-labelledby":"cn-reset-confirm-text",children:[t.jsx("p",{id:"cn-reset-confirm-text",children:s("Restore the banner and plugin settings on this screen to their defaults? Your connection, the new admin interface and your protection switches are kept.","cookie-notice")}),t.jsx(Ue,{variant:"primary",onClick:I,disabled:m,children:s("Yes, reset settings","cookie-notice")}),t.jsx(Ue,{variant:"secondary",onClick:()=>E(!1),children:s("Cancel","cookie-notice")})]})]})}function Kl({addNotice:i}){const c=window.cnReactData||{},u=!!c.globalCookieAvailable,[d,p]=j.useState(()=>{var A,C;return{global_override:!!((A=c.options)!=null&&A.global_override),global_cookie:!!((C=c.options)!=null&&C.global_cookie)}}),[h,m]=j.useState(!1),[x,v]=j.useState(!1),g=j.useId(),k=j.useId(),_=(A,C)=>{p({...d,[A]:C}),v(!1)},b=async()=>{var A,C;m(!0),v(!1);try{const D=await I2(d);p({global_override:!!((A=D==null?void 0:D.options)!=null&&A.global_override),global_cookie:!!((C=D==null?void 0:D.options)!=null&&C.global_cookie)}),v(!0)}catch(D){i&&i(D.message||s("Request failed","cookie-notice"),"error")}finally{m(!1)}};return t.jsxs(Kn,{title:s("Network Settings","cookie-notice"),defaultOpen:!0,children:[t.jsxs("div",{className:"cn-toggle-row",children:[t.jsx("div",{className:"cn-radio-group__label",children:s("Global Settings Override","cookie-notice")}),t.jsxs("label",{className:"cn-toggle-row__label",htmlFor:g,children:[t.jsx("input",{id:g,type:"checkbox",className:"cn-toggle-row__input",checked:d.global_override,onChange:A=>_("global_override",A.target.checked)}),t.jsx("span",{className:"cn-toggle-row__text",children:s("Enable global network settings override.","cookie-notice")})]}),t.jsx("div",{className:"cn-toggle-row__desc",children:s("Every site in the network will use the same settings. Site administrators will not be able to change them.","cookie-notice")})]}),t.jsxs("div",{className:"cn-toggle-row",children:[t.jsx("div",{className:"cn-radio-group__label",children:s("Global Cookie","cookie-notice")}),t.jsxs("label",{className:"cn-toggle-row__label",htmlFor:k,children:[t.jsx("input",{id:k,type:"checkbox",className:"cn-toggle-row__input",checked:d.global_cookie,disabled:!u,onChange:A=>_("global_cookie",A.target.checked)}),t.jsx("span",{className:"cn-toggle-row__text",children:s("Enable global network cookie consent.","cookie-notice")})]}),t.jsxs("div",{className:"cn-toggle-row__desc",children:[s("Cookie consent in one of the network sites results in a consent in all of the sites on the network.","cookie-notice"),!u&&t.jsxs(t.Fragment,{children:[" ",s("This option works only for domain-based networks.","cookie-notice")]})]})]}),t.jsxs("div",{className:"cn-plugin-settings__actions",children:[t.jsx(Ue,{variant:"primary",onClick:b,disabled:h,children:s(h?"Saving…":"Save network settings","cookie-notice")}),x&&t.jsxs("span",{className:"cn-plugin-settings__saved",children:["✓"," ",s("Saved","cookie-notice")]})]})]})}function Vp({onConnect:i}){const c=Re();return t.jsxs(t.Fragment,{children:[t.jsx(On,{title:s("Domain Info","cookie-notice"),children:t.jsxs("div",{className:"cn-dom-rows",children:[t.jsxs("div",{className:"cn-dom-row",children:[t.jsx("span",{className:"cn-dom-row__k",children:s("Domain","cookie-notice")}),t.jsx("span",{className:"cn-dom-row__v",children:window.location.hostname})]}),t.jsxs("div",{className:"cn-dom-row",children:[t.jsx("span",{className:"cn-dom-row__k",children:s("Status","cookie-notice")}),t.jsxs("span",{className:"cn-dom-row__v",children:[t.jsx("span",{className:"cn-dot cn-dot--gray"})," ",s(c?"Managed by network":"Not connected","cookie-notice")]})]})]})}),!c&&t.jsxs(On,{title:s("Why Connect?","cookie-notice"),children:[t.jsxs("ul",{className:"cn-benefit-list",children:[t.jsxs("li",{className:"cn-benefit-item",children:[t.jsx("span",{className:"cn-benefit-icon",children:"✓"}),t.jsx("span",{children:s("Automated script blocking before visitor consent","cookie-notice")})]}),t.jsxs("li",{className:"cn-benefit-item",children:[t.jsx("span",{className:"cn-benefit-icon",children:"✓"}),t.jsx("span",{children:s("Cookie categorization across your entire site","cookie-notice")})]}),t.jsxs("li",{className:"cn-benefit-item",children:[t.jsx("span",{className:"cn-benefit-icon",children:"✓"}),t.jsx("span",{children:s("Consent proof collection for legal audit trails","cookie-notice")})]}),t.jsxs("li",{className:"cn-benefit-item",children:[t.jsx("span",{className:"cn-benefit-icon",children:"✓"}),t.jsx("span",{children:s("Visitor analytics and consent rate reporting","cookie-notice")})]}),t.jsxs("li",{className:"cn-benefit-item",children:[t.jsx("span",{className:"cn-benefit-icon",children:"✓"}),t.jsx("span",{children:s("Google Consent Mode v2 (Facebook & Microsoft on Pro)","cookie-notice")})]})]}),t.jsx("div",{className:"cn-connect-cta",children:t.jsxs("button",{className:"cn-button cn-button--primary cn-connect-cta__btn",onClick:i,type:"button",children:[s("Connect Your Site","cookie-notice")," →"]})})]})]})}function Hp({addNotice:i,onOpenPricingModal:c}){return t.jsxs(t.Fragment,{children:[t.jsx(Wt,{addNotice:i}),t.jsx(op,{onOpenPricingModal:c})]})}function Kp({addNotice:i,onOpenWelcomeModal:c,onOpenPricingModal:u}){var C;const{isBannerOnly:d}=Ze(),p=m3(),h=!!((C=window.cnReactData)!=null&&C.network),{showLawWizard:m,lawClosing:x,lawScrollTrigger:v,closeLawWizard:g,showConsentPanel:k,consentClosing:_,consentScrollTrigger:b,closeConsentPanel:A}=ki();if(d){const D=p.networkManaged;return t.jsxs(In,{sidebar:t.jsx(Vp,{onConnect:c}),children:[t.jsxs("div",{className:"cn-protection-header",children:[t.jsx("h1",{className:"cn-protection-header__title",children:s("Cookie Consent","cookie-notice")}),t.jsx("p",{className:"cn-protection-header__subtitle",children:s(D?"Managed by your network administrator — this site uses the network settings.":"Connect your site to enable consent management features.","cookie-notice")})]}),h&&t.jsx(Kl,{addNotice:i}),t.jsxs(as,{managed:D,perSite:p.perSite,children:[D&&t.jsx(Gl,{}),t.jsx(sp,{options:p.options,update:p.update,save:p.save,loading:p.loading,saved:p.saved,error:p.error}),t.jsx(yp,{options:p.options,update:p.update,updateNested:p.updateNested}),!D&&t.jsx(_p,{onConnect:c}),t.jsx(Hl,{addNotice:i,options:p.options,update:p.update,updateNested:p.updateNested,save:p.save,reset:p.reset,loading:p.loading,saved:p.saved,error:p.error})]})]})}return t.jsxs(In,{sidebar:t.jsx(Hp,{addNotice:i,onOpenPricingModal:u}),children:[t.jsxs("div",{className:"cn-protection-header",children:[t.jsx("h1",{className:"cn-protection-header__title",children:s("Cookie Consent","cookie-notice")}),t.jsx("p",{className:"cn-protection-header__subtitle",children:s("Manage your banner, laws, consent signals, and languages.","cookie-notice")})]}),h&&t.jsx(Kl,{addNotice:i}),t.jsxs(as,{managed:p.networkManaged,perSite:p.perSite,children:[!p.perSite&&t.jsx(Gl,{}),t.jsx(Ip,{}),m&&t.jsx(Tl,{onClose:g,onSave:g,scrollTrigger:v,isClosing:x}),k&&t.jsx(Fl,{isOpen:!0,onClose:A,addNotice:i,onOpenPricingModal:u,onApplied:()=>{},scrollTrigger:b,isClosing:_}),t.jsx(Cp,{wpOptions:p.options,confirmedOptions:p.confirmed,update:p.update,scheduleSave:p.scheduleSave,blockingPaused:p.blockingPaused,blockingState:p.blockingState,savingKeys:p.savingKeys,unconfirmedKeys:p.unconfirmedKeys,checkingKeys:p.checkingKeys,pullUnknownKeys:p.pullUnknownKeys,autoSaveError:p.autoSaveError,onOpenPricingModal:u}),t.jsx(Hl,{addNotice:i,options:p.options,update:p.update,updateNested:p.updateNested,save:p.save,reset:p.reset,loading:p.loading,saved:p.saved,error:p.error})]})]})}function Ii({title:i,action:c,onAction:u}){return t.jsxs("div",{className:"cn-section-header",children:[t.jsx("h2",{children:i}),c&&t.jsx("button",{type:"button",className:"cn-section-header__action",onClick:u,children:c})]})}function Yp({onActivate:i}){return t.jsxs("div",{className:"cn-empty-hero",children:[t.jsxs("svg",{className:"cn-empty-hero__icon",viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("circle",{cx:"40",cy:"40",r:"40",fill:"#f0faf7"}),t.jsx("rect",{x:"22",y:"16",width:"36",height:"46",rx:"4",fill:"#fff",stroke:"#e0e4e8",strokeWidth:"1.5"}),t.jsx("rect",{x:"29",y:"26",width:"22",height:"2.5",rx:"1.25",fill:"#e0e4e8"}),t.jsx("rect",{x:"29",y:"33",width:"18",height:"2.5",rx:"1.25",fill:"#e0e4e8"}),t.jsx("rect",{x:"29",y:"40",width:"20",height:"2.5",rx:"1.25",fill:"#e0e4e8"}),t.jsx("circle",{cx:"54",cy:"56",r:"14",fill:"#20c19e"}),t.jsx("path",{d:"M54 44.5l-7 3.5v5.25c0 4.594 2.975 8.881 7 9.931 4.025-1.05 7-5.337 7-9.931V48l-7-3.5z",fill:"white",fillOpacity:"0.9"}),t.jsx("path",{d:"M52.1 56.45l-2.1-2.1.96-.96 1.14 1.14 3.06-3.06.96.96-4.02 4.02z",fill:"#20c19e"})]}),t.jsx("div",{className:"cn-empty-hero__heading",children:s("No Compliance Records","cookie-notice")}),t.jsx("div",{className:"cn-empty-hero__sub",children:s("Connect to Cookie Compliance to start collecting consent proofs, audit logs, and compliance evidence.","cookie-notice")}),t.jsx(Ue,{variant:"primary",onClick:i,children:s("Connect Your Site","cookie-notice")}),t.jsx("div",{className:"cn-empty-hero__footnote",children:s("Connect your site · Free · Takes 60 seconds","cookie-notice")})]})}function Yl({breakdown:i,loading:c}){const u=i&&i.total>0,d=(i==null?void 0:i.levelLabels)||{},p=d.level3||s("Accept","cookie-notice"),h=d.level2||s("Custom","cookie-notice"),m=d.level1||s("Reject","cookie-notice"),x=u?[{value:i.total.toLocaleString(),label:s("Total Consents","cookie-notice")},{value:`${i.acceptRate}%`,label:p},{value:`${i.customRate}%`,label:h},{value:`${i.rejectRate}%`,label:m}]:[{value:c?"…":"—",label:s("Total Consents","cookie-notice")},{value:c?"…":"—",label:p},{value:c?"…":"—",label:h},{value:c?"…":"—",label:m}];return t.jsx("div",{className:"cn-consent-stats",children:x.map(v=>t.jsxs("div",{className:"cn-consent-stat",children:[t.jsx("div",{className:"cn-consent-stat__value",children:v.value}),t.jsx("div",{className:"cn-consent-stat__label",children:v.label})]},v.label))})}function Fs({columns:i,rows:c,expandable:u=!1,renderExpanded:d,pageSize:p=20,currentPage:h=1,totalPages:m=1,onPageChange:x,onSort:v,sortColumn:g,sortDirection:k="asc",emptyMessage:_=s("No data available","cookie-notice")}){const[b,A]=j.useState(new Set),C=E=>{u&&A(I=>{const R=new Set(I);return R.has(E)?R.delete(E):R.add(E),R})},D=E=>{if(!E.sortable||!v)return;const I=g===E.key&&k==="asc"?"desc":"asc";v(E.key,I)},P=E=>E.sortable?g!==E.key?t.jsx("span",{className:"cn-data-table__sort",children:t.jsx(mp,{size:14})}):t.jsx("span",{className:"cn-data-table__sort cn-data-table__sort--active",children:k==="asc"?"↑":"↓"}):null;return t.jsxs("div",{className:"cn-data-table",children:[t.jsxs("table",{className:"cn-data-table__table",children:[t.jsx("thead",{children:t.jsx("tr",{className:"cn-data-table__header",children:i.map(E=>t.jsxs("th",{className:`cn-data-table__th${E.sortable?" cn-data-table__th--sortable":""}`,onClick:()=>D(E),children:[E.label,P(E)]},E.key))})}),t.jsxs("tbody",{children:[(!c||c.length===0)&&t.jsx("tr",{children:t.jsx("td",{className:"cn-data-table__td cn-data-table__empty",colSpan:i.length,children:_})}),c==null?void 0:c.map((E,I)=>t.jsxs(t.Fragment,{children:[t.jsx("tr",{className:`cn-data-table__row${u?" cn-data-table__row--expandable":""}${b.has(I)?" cn-data-table__row--expanded":""}`,onClick:()=>C(I),children:i.map(R=>t.jsx("td",{className:"cn-data-table__td",children:E[R.key]??"—"},R.key))},I),u&&b.has(I)&&d&&t.jsx("tr",{className:"cn-data-table__expanded-row",children:t.jsx("td",{colSpan:i.length,className:"cn-data-table__expanded",children:d(E,I)})},`${I}-expanded`)]}))]})]}),m>1&&t.jsxs("div",{className:"cn-data-table__pagination",children:[t.jsx("button",{type:"button",className:"cn-data-table__page-btn",disabled:h<=1,onClick:()=>x==null?void 0:x(h-1),"aria-label":s("Previous page","cookie-notice"),children:"«"}),t.jsxs("span",{className:"cn-data-table__page-info",children:["Page ",h," of ",m]}),t.jsx("button",{type:"button",className:"cn-data-table__page-btn",disabled:h>=m,onClick:()=>x==null?void 0:x(h+1),"aria-label":s("Next page","cookie-notice"),children:"»"})]})]})}function ql({startDate:i,endDate:c,onChange:u,maxRange:d,disabled:p}){const h=v=>{const g=v.target.value;let k=c;if(d&&k){const _=new Date(g),b=new Date(k);if(Math.ceil((b-_)/(1e3*60*60*24))>d){const C=new Date(_);C.setDate(C.getDate()+d),k=C.toISOString().split("T")[0]}}u==null||u({startDate:g,endDate:k})},m=v=>{const g=v.target.value;let k=i;if(d&&k){const _=new Date(k),b=new Date(g);if(Math.ceil((b-_)/(1e3*60*60*24))>d){const C=new Date(b);C.setDate(C.getDate()-d),k=C.toISOString().split("T")[0]}}u==null||u({startDate:k,endDate:g})},x=new Date().toISOString().split("T")[0];return t.jsxs("div",{className:"cn-date-range",children:[t.jsx("input",{type:"date",className:"cn-form-field__input cn-date-range__input",value:i||"",onChange:h,max:c||x,disabled:p}),t.jsx("span",{className:"cn-date-range__separator",children:"to"}),t.jsx("input",{type:"date",className:"cn-form-field__input cn-date-range__input",value:c||"",onChange:m,min:i||void 0,max:x,disabled:p}),d&&t.jsxs("span",{className:"cn-date-range__limit",children:[d,"-day max"]})]})}const qp={3:"accept",2:"custom",1:"reject"},Qp={Essential:"essential",Analytics:"analytics",Marketing:"marketing",Functional:"functional"},Zp=()=>[{key:"id",label:s("Consent ID","cookie-notice"),sortable:!0},{key:"level",label:s("Consent Level","cookie-notice"),sortable:!0},{key:"categories",label:s("Categories","cookie-notice"),sortable:!1},{key:"date",label:s("Date / Time","cookie-notice"),sortable:!0},{key:"ip",label:s("IP Address","cookie-notice"),sortable:!1}];function Xp(i){return{id:t.jsx("span",{className:"cn-consent-id",children:i.id}),level:t.jsx("span",{className:`cn-level-pill cn-level-pill--${qp[i.levelNum]||"custom"}`,children:i.level}),categories:t.jsx("div",{className:"cn-cat-tags",children:(i.categories||[]).map(c=>t.jsx("span",{className:`cn-cat-tag cn-cat-tag--${Qp[c]||"essential"}`,children:c},c))}),date:i.date,ip:t.jsxs("span",{className:"cn-ip-masked",children:[i.ip," ",t.jsx(zs,{size:14,style:{verticalAlign:"middle"}})]})}}function Ql({maxRange:i,onStatsUpdate:c}){const u=new Date().toISOString().split("T")[0],d=new Date(Date.now()-10080*60*1e3).toISOString().split("T")[0],[p,h]=j.useState({startDate:d,endDate:u}),[m,x]=j.useState(1),[v,g]=j.useState("date"),[k,_]=j.useState("desc"),[b,A]=j.useState([]),[C,D]=j.useState(0),[P,E]=j.useState(0),[I,R]=j.useState(!0),[O,oe]=j.useState(null),[J,B]=j.useState(!1),X=j.useRef(""),q=j.useCallback(async()=>{R(!0),oe(null);const ue=`${p.startDate}|${p.endDate}`;try{const ge=await T2({page:m,start_date:p.startDate,end_date:p.endDate,sort:v,order:k});A((ge.logs||[]).map(Xp)),D(ge.totalPages||0),E(ge.total||0),B(!!ge.inactive),c&&ue!==X.current&&(X.current=ue,c(ge.consentBreakdown||null))}catch(ge){oe(ge.message||s("Failed to load consent logs.","cookie-notice")),c&&ue!==X.current&&(X.current=ue,c(null))}finally{R(!1)}},[m,p,v,k]);j.useEffect(()=>{q()},[q]);const W=ue=>{h(ue),x(1)},te=(ue,ge)=>{g(ue),_(ge),x(1)};return t.jsxs("div",{className:"cn-consent-log-table",children:[t.jsxs("div",{className:"cn-consent-log-table__controls",children:[t.jsx(ql,{startDate:p.startDate,endDate:p.endDate,onChange:W,maxRange:i}),P>0&&t.jsxs("span",{className:"cn-consent-log-table__count",children:[P.toLocaleString()," record",P!==1?"s":""]})]}),O&&t.jsx("div",{className:"cn-notice cn-notice--error",children:O}),t.jsx(Fs,{columns:Zp(),rows:b,pageSize:10,currentPage:m,totalPages:C,onPageChange:x,onSort:te,sortColumn:v,sortDirection:k,loading:I,emptyMessage:s(J?"Consent records appear here once Cookie Compliance is active.":"No consent records found for selected date range.","cookie-notice")})]})}const Jp=()=>[{key:"subject",label:s("Subject","cookie-notice"),sortable:!1},{key:"preferences",label:s("Preferences","cookie-notice"),sortable:!1},{key:"source",label:s("Source","cookie-notice"),sortable:!1},{key:"form",label:s("Form","cookie-notice"),sortable:!1},{key:"date",label:s("Date","cookie-notice"),sortable:!1},{key:"ip",label:s("IP address","cookie-notice"),sortable:!1}],e0=i=>{var c;return{subject:i.subject||"—",preferences:(c=i.preferences)!=null&&c.length?i.preferences.join(", "):"—",source:i.source||"—",form:i.form||"—",date:i.date||"—",ip:i.ip||"—"}};function Zl({isFree:i}){const[c,u]=j.useState(1),[d,p]=j.useState([]),[h,m]=j.useState(0),[x,v]=j.useState(!1),[g,k]=j.useState(!0),[_,b]=j.useState(null);return j.useEffect(()=>{let A=!1;return k(!0),b(null),M2({page:c}).then(C=>{A||(p((C.logs||[]).map(e0)),m(C.totalPages||0),v(!!C.inactive))}).catch(C=>{A||(p([]),b(C.message||s("Failed to load consent logs.","cookie-notice")))}).finally(()=>!A&&k(!1)),()=>{A=!0}},[c]),t.jsxs("div",{className:"cn-consent-log-table cn-privacy-consent-logs",children:[t.jsxs("p",{className:"cn-privacy-consent-logs__desc",children:[s("The table below shows the latest privacy consent records collected from the forms on your website.","cookie-notice"),i&&t.jsxs(t.Fragment,{children:[" ",s("Note: sites on the Cookie Compliance Free Plan can collect up to 100 records.","cookie-notice")]})]}),_&&t.jsx("div",{className:"cn-notice cn-notice--error",children:_}),t.jsx(Fs,{columns:Jp(),rows:d,currentPage:c,totalPages:h,onPageChange:u,emptyMessage:s(g?"Loading…":x?"Privacy consent records appear here once Cookie Compliance is active.":"No privacy consent logs found.","cookie-notice")})]})}const Xl={pass:{icon:t.jsx(Ul,{size:16}),cls:"pass"},warn:{icon:t.jsx(Bl,{size:16}),cls:"warn"},na:{icon:"–",cls:"na"}};function n0({items:i}){return t.jsx("div",{className:"cn-evidence-panel",children:i.map((c,u)=>{const d=Xl[c.status]||Xl.na;return t.jsxs("div",{className:"cn-evidence-item",children:[t.jsx("span",{className:`cn-evidence-item__icon cn-evidence-item__icon--${d.cls}`,children:d.icon}),t.jsx("span",{className:"cn-evidence-item__text",children:c.text})]},u)})})}function Jl({proLocked:i=!1,onOpenPricingModal:c}){const[u,d]=j.useState("gdpr"),{dashboard:p}=Mn(),{config:h}=jt(),x=!!((h==null?void 0:h.blocking)||{}).gpc_support,v=(p==null?void 0:p.consentCount)??0,g=Lo(),k=g==="live",_=os(g),b=k?"pass":g==="inactive"||g==="pending"?"warn":"na",A=bs(),C=[{status:b,text:k?s("Consent banner active on all pages","cookie-notice"):we(s("Consent banner on all pages — %s","cookie-notice"),_)},{status:b,text:k?s("Cookie categories clearly defined","cookie-notice"):we(s("Cookie categories — %s","cookie-notice"),_)},{status:"na",text:s("Data retention policy — verify in Admin Portal","cookie-notice")},{status:"na",text:s("DPO contact details — verify in Admin Portal","cookie-notice")}],D=[{status:x?b:"warn",text:x?k?s("Do Not Sell / Share signal honored (GPC active)","cookie-notice"):we(s("Do Not Sell / Share signal — %s","cookie-notice"),_):s("Do Not Sell / Share signal — enable GPC in Consent Signals","cookie-notice")},{status:b,text:k?s("Opt-out mechanism functional","cookie-notice"):we(s("Opt-out mechanism — %s","cookie-notice"),_)},{status:"na",text:s("Privacy policy link in banner — verify in Admin Portal","cookie-notice")},{status:"na",text:s("Consumer rights request handling — verify in Admin Portal","cookie-notice")}];function P(){const O=oe=>we(s("Prior consent — %s","cookie-notice"),oe);return k?A==="active"?{status:"pass",text:s("Prior consent — known trackers held until visitors agree","cookie-notice")}:A==="off"?{status:"warn",text:O(s("Autoblocking off — trackers may fire unblocked","cookie-notice"))}:A==="paused"?{status:"warn",text:O(s("Autoblocking paused — visit limit reached","cookie-notice"))}:A==="saving"?{status:"na",text:O(s("Saving autoblocking…","cookie-notice"))}:{status:"na",text:O(s("Not confirmed — reload to see the saved value","cookie-notice"))}:{status:b,text:O(_)}}const E=[P(),Re()?{status:"na",text:s("Consent withdrawal — verify in the network admin","cookie-notice")}:k?{status:v>0?"pass":"warn",text:v>0?s("Consent withdrawal mechanism available and in use","cookie-notice"):s("Consent withdrawal — no consent records yet; verify banner is live","cookie-notice")}:{status:b,text:we(s("Consent withdrawal — %s","cookie-notice"),_)},{status:"na",text:s("Cookie lifetime disclosure — verify in Admin Portal","cookie-notice")},{status:"na",text:s("Legitimate interest assessment — verify in Admin Portal","cookie-notice")}],I=[{key:"gdpr",label:s("GDPR","cookie-notice"),items:C,locked:!1},{key:"ccpa",label:s("CCPA","cookie-notice"),items:D,locked:!1},{key:"eprivacy",label:s("ePrivacy","cookie-notice"),items:E,locked:i}],R=I.find(O=>O.key===u);return t.jsxs("div",{className:"cn-compliance-evidence",children:[t.jsx("nav",{className:"cn-evidence-tabs",children:I.map(O=>t.jsxs("button",{type:"button",className:`cn-evidence-tab${u===O.key?" cn-evidence-tab--active":""}`,onClick:()=>d(O.key),children:[O.label,O.locked&&t.jsx(Un,{})]},O.key))}),R!=null&&R.locked?t.jsx("div",{className:"cn-evidence-panel cn-evidence-panel--locked",children:t.jsxs("div",{className:"cn-evidence-lock",children:[t.jsx("span",{className:"cn-evidence-lock__icon",children:t.jsx(zs,{size:24})}),t.jsxs("p",{className:"cn-evidence-lock__msg",children:["ePrivacy compliance evidence is available on Pro.",Re()?"":" Upgrade to unlock."]}),Re()?t.jsx("p",{className:"cn-evidence-lock__msg",children:is()}):t.jsx("button",{type:"button",className:"cn-button cn-button--upgrade",onClick:()=>c&&c(),children:"Upgrade to Pro"})]})}):t.jsx(n0,{items:(R==null?void 0:R.items)||[]})]})}function t0({isPro:i=!1,onOpenPricingModal:c}){const u=new Date().toISOString().split("T")[0],d=new Date(Date.now()-720*60*60*1e3).toISOString().split("T")[0],[p,h]=j.useState({startDate:d,endDate:u}),{exportCsv:m,loading:x,error:v}=g3(),g=()=>{m==null||m({start_date:p.startDate,end_date:p.endDate})};return i?t.jsxs("div",{className:"cn-export-section",children:[t.jsx("div",{className:"cn-export-section__label",children:s("Export Consent Log","cookie-notice")}),t.jsx(ql,{startDate:p.startDate,endDate:p.endDate,onChange:h}),t.jsx(Ue,{variant:"primary",onClick:g,disabled:x,children:x?"Exporting…":"Export CSV"}),v&&t.jsx("div",{className:"cn-export-section__error",children:v})]}):t.jsx(Ss,{requiredTier:"pro",message:s("Upgrade to Pro to export consent logs as CSV.","cookie-notice"),onCta:c,children:t.jsxs("div",{className:"cn-export-section cn-export-section--locked",children:[t.jsx("div",{className:"cn-export-section__label",children:s("Export Consent Log","cookie-notice")}),t.jsx(Ue,{variant:"outline",disabled:!0,children:s("Export CSV","cookie-notice")})]})})}function o0(){const i=[{id:"CID-7F2A9C",level:s("Personalized","cookie-notice"),levelNum:3,date:"2026-02-26 14:37",ip:"192.168.x.x"},{id:"CID-4B1E3D",level:s("Balanced","cookie-notice"),levelNum:2,date:"2026-02-26 13:58",ip:"10.0.x.x"},{id:"CID-9A0F12",level:s("Private","cookie-notice"),levelNum:1,date:"2026-02-26 13:21",ip:"172.16.x.x"},{id:"CID-C3D8E5",level:s("Personalized","cookie-notice"),levelNum:3,date:"2026-02-26 12:04",ip:"192.168.x.x"},{id:"CID-2E6B7A",level:s("Balanced","cookie-notice"),levelNum:2,date:"2026-02-25 22:49",ip:"10.0.x.x"}],c=[{type:"banner",what:s("Position changed to Bottom","cookie-notice"),when:"Feb 25, 14:03"},{type:"setting",what:s("GDPR regulation enabled","cookie-notice"),when:"Feb 23, 09:41"},{type:"scan",what:s("3 new scripts detected & categorized","cookie-notice"),when:"Feb 22, 16:18"},{type:"setting",what:s("Google Consent Mode v2 activated","cookie-notice"),when:"Feb 20, 11:05"}],u={3:"accept",2:"custom",1:"reject"},d={banner:s("Banner","cookie-notice"),setting:s("Setting","cookie-notice"),scan:s("Scan","cookie-notice")};return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"cn-blurred-teaser__section",children:[t.jsxs("div",{className:"cn-blurred-teaser__section-header",children:[t.jsx("span",{className:"cn-blurred-teaser__section-title",children:s("Cookie Consent Log","cookie-notice")}),t.jsx("span",{className:"cn-blurred-teaser__section-meta",children:s("3,241 total records — showing 1–5","cookie-notice")})]}),t.jsxs("table",{className:"cn-blurred-teaser__table",children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:s("Consent ID","cookie-notice")}),t.jsx("th",{children:s("Consent Level","cookie-notice")}),t.jsx("th",{children:s("Date / Time","cookie-notice")}),t.jsx("th",{children:s("IP Address","cookie-notice")})]})}),t.jsx("tbody",{children:i.map(p=>t.jsxs("tr",{children:[t.jsx("td",{children:t.jsx("span",{className:"cn-consent-id",children:p.id})}),t.jsx("td",{children:t.jsx("span",{className:`cn-level-pill cn-level-pill--${u[p.levelNum]}`,children:p.level})}),t.jsx("td",{children:p.date}),t.jsx("td",{children:t.jsx("span",{className:"cn-ip-masked",children:p.ip})})]},p.id))})]})]}),t.jsxs("div",{className:"cn-blurred-teaser__section",children:[t.jsxs("div",{className:"cn-blurred-teaser__section-header",children:[t.jsx("span",{className:"cn-blurred-teaser__section-title",children:s("Config Change History","cookie-notice")}),t.jsx("span",{className:"cn-blurred-teaser__section-meta",children:s("Last 30 days","cookie-notice")})]}),t.jsx("div",{className:"cn-blurred-teaser__timeline",children:c.map((p,h)=>t.jsxs("div",{className:"cn-blurred-teaser__tl-row",children:[t.jsx("div",{className:`cn-blurred-teaser__tl-dot cn-blurred-teaser__tl-dot--${p.type}`}),t.jsxs("div",{className:"cn-blurred-teaser__tl-text",children:[t.jsxs("div",{className:"cn-blurred-teaser__tl-what",children:[t.jsx("span",{className:`cn-change-badge cn-change-badge--${p.type}`,children:d[p.type]}),p.what]}),t.jsx("div",{className:"cn-blurred-teaser__tl-when",children:p.when})]})]},h))})]})]})}function i0(){return t.jsxs(t.Fragment,{children:[t.jsx(Wt,{showPortalLink:!1}),!Re()&&t.jsx(On,{title:s("Why Connect?","cookie-notice"),children:t.jsx("ul",{className:"cn-benefit-list",children:[s("Timestamped consent proofs for every visitor interaction","cookie-notice"),s("Searchable audit log for GDPR and CCPA regulators","cookie-notice"),s("Config change history — who changed what and when","cookie-notice"),s("Exportable compliance evidence in one click","cookie-notice"),s("Prove compliance if you ever face a regulatory inquiry","cookie-notice")].map((i,c)=>t.jsxs("li",{className:"cn-benefit-item",children:[t.jsx("span",{className:"cn-benefit-item__icon",children:t.jsx(Ul,{size:16})}),t.jsx("span",{children:i})]},c))})})]})}function e1({isPro:i,onOpenPricingModal:c,addNotice:u}){return t.jsxs(t.Fragment,{children:[t.jsx(Wt,{addNotice:u}),t.jsxs(On,{title:s("Consent history","cookie-notice"),children:[t.jsxs("div",{className:`cn-retention-info${i?" cn-retention-info--pro":""}`,children:[t.jsx("span",{className:"cn-retention-info__value",children:s(i?"No 7-day limit":"7-day history","cookie-notice")}),t.jsx("span",{className:"cn-retention-info__label",children:s(i?"Pro plan":"Free plan","cookie-notice")})]}),!i&&t.jsx("p",{className:"cn-retention-info__note",children:s("Upgrade to Pro to remove the 7-day limit.","cookie-notice")})]}),t.jsx(On,{title:s("Export","cookie-notice"),children:t.jsx(t0,{isPro:i,onOpenPricingModal:c??void 0})})]})}function r0({addNotice:i,onOpenWelcomeModal:c,onOpenPricingModal:u}){const{isBannerOnly:d,isFree:p}=Ze(),h=Ai(),[m,x]=j.useState(null),[v,g]=j.useState(!0),k=_=>{x(_),g(!1)};if(h)return t.jsxs(In,{sidebar:t.jsx(Wt,{addNotice:i}),children:[t.jsx("div",{className:"cn-protection-header",children:t.jsx("h1",{className:"cn-protection-header__title",children:s("Consent Logs","cookie-notice")})}),t.jsx(ss,{})]});if(d){const _=Re();return t.jsxs(In,{sidebar:t.jsx(i0,{}),children:[t.jsxs("div",{className:"cn-protection-header",children:[t.jsx("h1",{className:"cn-protection-header__title",children:s("Consent Logs","cookie-notice")}),t.jsx("p",{className:"cn-protection-header__subtitle",children:s("Consent logs, compliance evidence, and configuration history.","cookie-notice")})]}),_?t.jsx(rs,{}):t.jsx(Yp,{onActivate:()=>c&&c()}),t.jsxs("div",{className:"cn-blurred-teaser",children:[t.jsx("div",{className:"cn-blurred-teaser__blur",children:t.jsx(o0,{})}),t.jsxs("div",{className:"cn-blurred-teaser__overlay",children:[t.jsx("span",{className:"cn-blurred-teaser__overlay-icon",children:t.jsx(Ol,{size:24})}),t.jsx("div",{className:"cn-blurred-teaser__overlay-label",children:s("Full Compliance Audit Trail","cookie-notice")}),t.jsx("div",{className:"cn-blurred-teaser__overlay-sub",children:s("Consent logs, config timeline, compliance evidence & more","cookie-notice")}),!_&&t.jsx(Ue,{variant:"primary",onClick:()=>c&&c(),children:s("Connect Your Site","cookie-notice")})]})]})]})}return p?t.jsxs(In,{sidebar:t.jsx(e1,{isPro:!1,onOpenPricingModal:u,addNotice:i}),children:[t.jsxs("div",{className:"cn-protection-header",children:[t.jsx("h1",{className:"cn-protection-header__title",children:s("Consent Logs","cookie-notice")}),t.jsx("p",{className:"cn-protection-header__subtitle",children:s("Consent logs and compliance evidence for your site.","cookie-notice")})]}),t.jsx(Yl,{breakdown:m,loading:v}),t.jsx(Ql,{maxRange:7,onStatsUpdate:k}),t.jsx(Ii,{title:s("Form Consent","cookie-notice")}),t.jsx(Zl,{isFree:!0}),t.jsx(Ii,{title:s("Compliance Evidence","cookie-notice")}),t.jsx(Jl,{proLocked:!0,onOpenPricingModal:u})]}):t.jsxs(In,{sidebar:t.jsx(e1,{isPro:!0,onOpenPricingModal:u,addNotice:i}),children:[t.jsxs("div",{className:"cn-protection-header",children:[t.jsx("h1",{className:"cn-protection-header__title",children:s("Consent Logs","cookie-notice")}),t.jsx("p",{className:"cn-protection-header__subtitle",children:s("Full consent log history, compliance evidence, and configuration timeline.","cookie-notice")})]}),t.jsx(Yl,{breakdown:m,loading:v}),t.jsx(Ql,{onStatsUpdate:k}),t.jsx(Ii,{title:s("Form Consent","cookie-notice")}),t.jsx(Zl,{isFree:!1}),t.jsx(Ii,{title:s("Compliance Evidence","cookie-notice")}),t.jsx(Jl,{proLocked:!1,onOpenPricingModal:u})]})}const s0=i=>[{key:"title",label:s("Form Title","cookie-notice"),sortable:i},{key:"id",label:s("Form ID","cookie-notice"),sortable:!1},{key:"fields",label:s("Fields","cookie-notice"),sortable:!1},{key:"date",label:s("Date","cookie-notice"),sortable:!1},{key:"status",label:s("Status","cookie-notice"),sortable:!1}];function a0({source:i,disabled:c,busy:u,onSave:d,onToggleForm:p,onLoadForms:h}){const m=j.useId(),x=c||!i.availability,[v,g]=j.useState({active:!!i.active,activeType:i.activeType});j.useEffect(()=>{g({active:!!i.active,activeType:i.activeType})},[i.active,i.activeType,i.rev]);const k={};v.active!==!!i.active&&(k.active=v.active),v.activeType!==i.activeType&&(k.activeType=v.activeType);const _=Object.keys(k).length>0,b=v.activeType==="all",A=i.type==="dynamic",C=i.forms||{items:[],page:1,maxPages:0},D=i.availability?i.active?s("On","cookie-notice"):s("Off","cookie-notice"):s("Plugin not active","cookie-notice"),P=(C.items||[]).map(E=>({title:t.jsx("strong",{children:E.title}),id:String(E.id),fields:String(E.fieldCount),date:E.date||"—",status:t.jsx("input",{type:"checkbox",className:"cn-privacy-form-toggle","aria-label":we(s("Privacy consent for %s","cookie-notice"),E.title),checked:b||!!E.status,disabled:x||u||b,onChange:I=>p(E.id,I.target.checked)})}));return t.jsx("div",{className:`cn-privacy-source${i.availability?"":" cn-privacy-source--unavailable"}`,"data-source":i.id,children:t.jsxs(Kn,{title:i.name,subtitle:D,defaultOpen:i.active,children:[t.jsxs("div",{className:"cn-toggle-row",children:[t.jsxs("label",{className:"cn-toggle-row__label",htmlFor:m,children:[t.jsx("input",{id:m,type:"checkbox",className:"cn-toggle-row__input cn-privacy-source__status",checked:i.availability&&v.active,disabled:x||u,onChange:E=>g(I=>({...I,active:E.target.checked}))}),t.jsx("span",{className:"cn-toggle-row__text",children:we(s("Enable to apply privacy consent support for %s forms.","cookie-notice"),i.name)})]}),!i.availability&&t.jsx("div",{className:"cn-toggle-row__desc",children:we(s("Install and activate %s to record consent from its forms.","cookie-notice"),i.name)})]}),i.availability&&v.active&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"cn-radio-group",children:t.jsx("div",{className:"cn-radio-group__options",children:[{value:"all",label:s("Apply to all forms","cookie-notice")},{value:"selected",label:s("Apply to selected forms","cookie-notice")}].map(E=>t.jsxs("label",{className:"cn-radio-group__option",children:[t.jsx("input",{type:"radio",name:`cn-privacy-${i.id}-type`,value:E.value,checked:v.activeType===E.value,disabled:x||u,onChange:()=>g(I=>({...I,activeType:E.value}))}),t.jsx("span",{children:E.label})]},E.value))})}),t.jsx("div",{className:`cn-privacy-source__forms${u?" cn-privacy-source__forms--busy":""}`,children:t.jsx(Fs,{columns:s0(A),rows:P,currentPage:C.page||1,totalPages:A?C.maxPages||0:1,onPageChange:E=>h(E,i.order||"asc"),onSort:(E,I)=>h(1,I),sortColumn:A?"title":void 0,sortDirection:i.order||"asc",emptyMessage:s("No forms found.","cookie-notice")})})]}),i.availability&&t.jsx("div",{className:"cn-privacy-source__save",children:t.jsx(Ue,{variant:"primary",disabled:x||u||!_,onClick:()=>d(k),children:s("Save Changes","cookie-notice")})})]})})}function c0({status:i,onOpenWelcomeModal:c}){var x;const u=((x=window.cnReactData)==null?void 0:x.app_id)||"",d=i==="active"||i==="pending"?i:u?"unconfirmed":"inactive",p={active:s("Connected","cookie-notice"),pending:s("Pending","cookie-notice"),unconfirmed:s("Not confirmed","cookie-notice"),inactive:s("Not connected","cookie-notice")}[d],h={active:"green",pending:"yellow",unconfirmed:"gray",inactive:"gray"}[d],m=`${en}/#/dashboard${u?`?app-id=${encodeURIComponent(u)}`:""}`;return t.jsxs(On,{title:s("Compliance Status","cookie-notice"),children:[t.jsx("div",{className:"cn-dom-rows",children:t.jsxs("div",{className:"cn-dom-row",children:[t.jsx("span",{className:"cn-dom-row__k",children:s("Connection","cookie-notice")}),t.jsxs("span",{className:"cn-dom-row__v",children:[t.jsx("span",{className:`cn-dot cn-dot--${h}`})," ",p]})]})}),Re()?t.jsx("p",{className:"cn-conn-hint",children:is()}):d==="inactive"?t.jsx("div",{className:"cn-connect-cta",children:t.jsx("button",{type:"button",className:"cn-button cn-button--primary cn-connect-cta__btn",onClick:c,children:s("Connect Your Site","cookie-notice")})}):t.jsx("div",{className:"cn-connect-cta",children:t.jsx("a",{className:"cn-button cn-button--outline cn-connect-cta__btn",href:m,target:"_blank",rel:"noreferrer",children:s("Open Admin Portal","cookie-notice")})})]})}function l0({addNotice:i,onOpenWelcomeModal:c}){var J;const{isBannerOnly:u}=Ze(),[d,p]=j.useState(null),[h,m]=j.useState(null),[x,v]=j.useState({}),[g,k]=j.useState(0),_=j.useRef(Promise.resolve());j.useEffect(()=>{hs().then(p).catch(B=>m(B.message||s("Failed to load privacy consent settings.","cookie-notice")))},[]);const b=j.useCallback((B,X)=>{p(q=>q&&{...q,sources:q.sources.map(W=>W.id===B?{...W,...typeof X=="function"?X(W):X}:W)})},[]),A=j.useCallback(B=>{k(q=>q+1);const X=_.current.then(B).finally(()=>k(q=>q-1));return _.current=X.catch(()=>{}),X},[]),C=j.useCallback(async(B,X=1,q="asc")=>{v(W=>({...W,[B]:!0}));try{const te=((await hs({source:B,page:X,order:q})).sources||[]).find(ue=>ue.id===B);te&&b(B,{forms:te.forms,order:q})}catch(W){i==null||i(W.message||s("Failed to load forms.","cookie-notice"),"error")}finally{v(W=>({...W,[B]:!1}))}},[i,b]),D=(B,X,q)=>b(B,W=>({forms:{...W.forms,items:W.forms.items.map(te=>String(te.id)===String(X)?{...te,status:q}:te)}})),P=(B,X)=>A(async()=>{try{((await R2({[B]:X})).sources||[]).forEach(W=>b(W.id,te=>({active:W.active,activeType:W.activeType,...W.id===B?{rev:(te.rev||0)+1}:{}}))),i==null||i(s("Settings saved.","cookie-notice"),"success")}catch(q){i==null||i(q.message||s("Settings could not be saved.","cookie-notice"),"error")}}),E=(B,X,q)=>(D(B,X,q),A(async()=>{try{const W=await z2(B,X,q);b(B,{active:W.source.active,activeType:W.source.activeType}),D(B,X,W.status)}catch(W){D(B,X,!q),i==null||i(W.message||s("Settings could not be saved.","cookie-notice"),"error")}})),I=(d==null?void 0:d.status)??((J=window.cnReactData)==null?void 0:J.status)??"",R=I==="active",O=!!(d!=null&&d.readOnly),oe=t.jsx("div",{className:"cn-privacy-consent",children:((d==null?void 0:d.sources)||[]).map(B=>t.jsx(a0,{source:B,disabled:!R||O,busy:g>0||!!x[B.id],onSave:X=>P(B.id,X),onToggleForm:(X,q)=>E(B.id,X,q),onLoadForms:(X,q)=>C(B.id,X,q)},B.id))});return t.jsxs(In,{sidebar:t.jsx(c0,{status:I,onOpenWelcomeModal:c}),children:[t.jsxs("div",{className:"cn-protection-header",children:[t.jsx("h1",{className:"cn-protection-header__title",children:s("Privacy Consent","cookie-notice")}),t.jsx("p",{className:"cn-protection-header__subtitle",children:s("Record proof of consent from the forms on your website.","cookie-notice")})]}),O&&t.jsx(Ut,{type:"info",children:s("Privacy Consent settings are managed on each site of the network.","cookie-notice")}),!O&&d&&!R&&!u&&t.jsx(Ut,{type:"warning",children:s("Privacy Consent requires an active Cookie Compliance connection.","cookie-notice")}),h&&t.jsx(Ut,{type:"error",children:h}),!d&&!h&&t.jsx("p",{className:"cn-privacy-consent__loading",children:s("Loading…","cookie-notice")}),d&&(u?t.jsx(Ss,{requiredTier:"free",onCta:c,message:s("Sign up to Cookie Compliance and enable Privacy Consent support.","cookie-notice"),children:oe}):oe)]})}var u0=Bc();const n1={sm:480,md:720,lg:960},t1='a[href],button:not([disabled]),textarea:not([disabled]),input:not([disabled]),select:not([disabled]),[tabindex]:not([tabindex="-1"])';function o1({isOpen:i,onClose:c,size:u="md",title:d,children:p}){const h=j.useRef(null),m=j.useRef(null),x=j.useCallback(_=>{if(_.key==="Escape"&&c){c();return}if(_.key==="Tab"&&h.current){const b=h.current.querySelectorAll(t1);if(b.length===0){_.preventDefault();return}const A=b[0],C=b[b.length-1];_.shiftKey&&document.activeElement===A?(_.preventDefault(),C.focus()):!_.shiftKey&&document.activeElement===C&&(_.preventDefault(),A.focus())}},[c]);if(j.useEffect(()=>{let _;return i&&(m.current=document.activeElement,document.addEventListener("keydown",x),document.body.style.overflow="hidden",_=setTimeout(()=>{if(h.current){const b=h.current.querySelector(t1);b?b.focus():h.current.focus()}},50)),()=>{clearTimeout(_),document.removeEventListener("keydown",x),document.body.style.overflow="",m.current&&typeof m.current.focus=="function"&&(m.current.focus(),m.current=null)}},[i,x]),!i)return null;const v=_=>{_.target===_.currentTarget&&c&&c()},g={position:"fixed",top:0,right:0,bottom:0,left:0,background:"rgba(0,0,0,0.6)",zIndex:1e5,display:"flex",alignItems:"center",justifyContent:"center",padding:"32px"},k=d?"cn-modal-title":void 0;return u0.createPortal(t.jsx("div",{className:"cn-modal-overlay",style:g,onClick:v,children:t.jsxs("div",{ref:h,className:`cn-modal cn-modal--${u}`,style:{maxWidth:n1[u]||n1.md},role:"dialog","aria-modal":"true","aria-labelledby":k,tabIndex:-1,children:[t.jsx("button",{className:"cn-modal__close",onClick:c,type:"button","aria-label":s("Close","cookie-notice"),children:"×"}),d&&t.jsx("div",{className:"cn-modal__header",id:k,children:d}),t.jsx("div",{className:"cn-modal__content",children:p})]})}),document.body)}function d0({steps:i,currentStep:c=0,onStepClick:u}){return t.jsx("div",{className:"cn-step-dots",role:"group","aria-label":s("Progress","cookie-notice"),children:i.map((d,p)=>{const h=p<c,m=p===c,x=typeof d=="string"?d:`Step ${p+1}`;let v="cn-step-dot";return h&&(v+=" cn-step-dot--done"),m&&(v+=" cn-step-dot--active"),t.jsx("div",{className:v,role:"tab","aria-selected":m,"aria-label":h?we(s("%s (completed)","cookie-notice"),x):x,"aria-current":m?"step":void 0,onClick:h&&u?()=>u(p):void 0,style:h&&u?{cursor:"pointer"}:void 0,tabIndex:h&&u?0:-1},p)})})}function p0({onBannerOnly:i,onProtect:c,onComply:u,onLearnMore:d}){var m;const h=(((m=window.cnReactData)==null?void 0:m.detectedPlugins)||[]).includes("google");return t.jsxs("div",{className:"cn-welcome-step cn-welcome-step--choose",children:[t.jsx("h1",{className:"cn-choose__heading",children:s("Choose your protection level","cookie-notice")}),h&&t.jsxs("div",{className:"cn-choose__google-notice",children:[t.jsx("strong",{children:s("Google tools detected.","cookie-notice")})," ",s("Make sure Google Consent Mode is configured during setup.","cookie-notice")]}),t.jsxs("div",{className:"cn-protection-cards",children:[t.jsxs("div",{className:"cn-protection-card",children:[t.jsx("span",{className:"cn-protection-card__badge cn-protection-card__badge--risk",children:s("Banner Only","cookie-notice")}),t.jsx("div",{className:"cn-protection-card__icon cn-protection-card__icon--banner",children:t.jsx(fp,{size:32})}),t.jsx("h4",{className:"cn-protection-card__title",children:s("I just want a banner","cookie-notice")}),t.jsx("p",{className:"cn-protection-card__subtitle",children:s("Display-only notice, no compliance features","cookie-notice")}),t.jsx("div",{className:"cn-protection-card__divider"}),t.jsx("div",{className:"cn-protection-card__price-label",children:s("Banner Only","cookie-notice")}),t.jsx("span",{className:"cn-protection-card__price-note cn-protection-card__price-note--danger",children:s("Does not meet GDPR requirements","cookie-notice")}),t.jsxs("ul",{className:"cn-protection-card__features",children:[t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Cookie notice banner","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Accept / Reject buttons","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Custom colors & text","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--excluded",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✗"}),s("No consent records","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--excluded",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✗"}),s("No script blocking","cookie-notice")]})]}),t.jsx("div",{className:"cn-protection-card__footer",children:t.jsx("button",{type:"button",className:"cn-protection-card__btn cn-protection-card__btn--ghost",onClick:i,children:s("Just the Banner","cookie-notice")})})]}),t.jsxs("div",{className:"cn-protection-card cn-protection-card--recommended",children:[t.jsx("span",{className:"cn-protection-card__badge cn-protection-card__badge--rec",children:s("Recommended","cookie-notice")}),t.jsx("div",{className:"cn-protection-card__icon cn-protection-card__icon--protect",children:t.jsx(ap,{size:32})}),t.jsx("h4",{className:"cn-protection-card__title",children:s("For small sites","cookie-notice")}),t.jsx("p",{className:"cn-protection-card__subtitle",children:s("Essential compliance, no credit card required","cookie-notice")}),t.jsx("div",{className:"cn-protection-card__divider"}),t.jsx("div",{className:"cn-protection-card__price-label",children:s("Sign Up Free","cookie-notice")}),t.jsx("span",{className:"cn-protection-card__price-note",children:s("Up to 1,000 visits per 30-day cycle","cookie-notice")}),t.jsxs("ul",{className:"cn-protection-card__features",children:[t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Best for sites without ads","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),"Google Consent Mode v2"]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Tracker blocking","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Standard Support","cookie-notice")]})]}),t.jsx("div",{className:"cn-protection-card__footer",children:t.jsx("button",{type:"button",className:"cn-protection-card__btn cn-protection-card__btn--primary",onClick:c,children:s("Protect My Business","cookie-notice")})})]}),t.jsxs("div",{className:"cn-protection-card",children:[t.jsx("span",{className:"cn-protection-card__badge cn-protection-card__badge--max",children:s("Full Compliance","cookie-notice")}),t.jsx("div",{className:"cn-protection-card__icon cn-protection-card__icon--comply",children:t.jsx(dp,{size:32})}),t.jsx("h4",{className:"cn-protection-card__title",children:s("Ensure full compliance","cookie-notice")}),t.jsx("p",{className:"cn-protection-card__subtitle",children:s("Full coverage for EU, US & growing businesses","cookie-notice")}),t.jsx("div",{className:"cn-protection-card__divider"}),t.jsx("div",{className:"cn-protection-card__price-label",children:"$14.95/mo"}),t.jsx("span",{className:"cn-protection-card__price-note",children:s("Unlimited visitors protected","cookie-notice")}),t.jsxs("ul",{className:"cn-protection-card__features",children:[t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Best for sites with analytics","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Facebook & Microsoft Consent Modes","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Global Privacy Control","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Geolocation rules — show right banner by country","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Full consent history & export","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Advanced autoblocking + script categorization","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Priority Support","cookie-notice")]})]}),t.jsx("div",{className:"cn-protection-card__footer",children:t.jsx("button",{type:"button",className:"cn-protection-card__btn cn-protection-card__btn--secondary",onClick:u,children:s("Ensure Full Compliance","cookie-notice")})})]})]})]})}const f0=[{domains:1,monthly:14.95,yearly:149.5,perDomain:null,popular:!0},{domains:5,monthly:29.95,yearly:299.5,perDomain:5.99},{domains:10,monthly:49.95,yearly:499.5,perDomain:4.99}];function h0({onSelectPlan:i,onBack:c}){const[u,d]=j.useState("monthly");return t.jsxs("div",{className:"cn-welcome-step cn-welcome-step--pro-pricing",children:[t.jsx("button",{type:"button",className:"cn-pro-pricing__back cn-pro-pricing__back--top",onClick:c,children:"← Back to protection options"}),t.jsxs("div",{className:"cn-pro-pricing__hero",children:[t.jsx("h1",{className:"cn-pro-pricing__heading",children:s("Cookie Compliance — Professional","cookie-notice")}),t.jsx("p",{className:"cn-pro-pricing__sub",children:"Everything you need to protect your business from privacy regulations worldwide."})]}),t.jsxs("div",{className:"cn-pro-pricing__features-band",children:[t.jsx("span",{className:"cn-pro-pricing__features-label",children:s("Everything in Free, plus:","cookie-notice")}),t.jsxs("ul",{className:"cn-pro-pricing__features-list",children:[t.jsx("li",{children:"🌍 Geolocation rules — show the right banner by country"}),t.jsx("li",{children:"📊 Facebook & Microsoft Consent Modes"}),t.jsx("li",{children:"🛡️ Global Privacy Control"}),t.jsx("li",{children:"♾️ Unlimited visits & consent history beyond 7 days"}),t.jsx("li",{children:"🔒 Advanced autoblocking & script categorization"})]})]}),t.jsxs("div",{className:"cn-pill-toggle",style:{margin:"0 auto 24px"},children:[t.jsx("button",{type:"button",className:`cn-pill-toggle__btn${u==="monthly"?" cn-pill-toggle__btn--active":""}`,onClick:()=>d("monthly"),children:"Monthly"}),t.jsxs("button",{type:"button",className:`cn-pill-toggle__btn${u==="yearly"?" cn-pill-toggle__btn--active":""}`,onClick:()=>d("yearly"),children:[s("Yearly","cookie-notice")," ",t.jsx("span",{className:"cn-pill-toggle__badge",children:s("Save 17%","cookie-notice")})]})]}),t.jsx("div",{className:"cn-pro-pricing__cards",children:f0.map(p=>t.jsxs("div",{className:`cn-pro-pricing__card${p.popular?" cn-pro-pricing__card--popular":""}`,children:[p.popular&&t.jsx("span",{className:"cn-pro-pricing__card-badge",children:s("Recommended","cookie-notice")}),t.jsx("div",{className:"cn-pro-pricing__card-domains",children:p.domains}),t.jsx("span",{className:"cn-pro-pricing__card-domains-label",children:p.domains===1?"Domain":"Domains"}),t.jsxs("div",{className:"cn-pro-pricing__card-price",children:[t.jsx("sup",{children:"$"}),u==="monthly"?p.monthly.toFixed(2):p.yearly.toFixed(2),t.jsxs("sub",{children:["/ ",u==="monthly"?"mo":"yr"]})]}),p.perDomain&&t.jsx("span",{className:"cn-pro-pricing__card-per-domain",children:we(s("%s per domain","cookie-notice"),"$"+p.perDomain.toFixed(2))}),t.jsx("button",{type:"button",className:`cn-pro-pricing__card-btn${p.popular?" cn-pro-pricing__card-btn--primary":""}`,onClick:()=>i(p.domains,u,p[u]),children:s("Select Plan","cookie-notice")})]},p.domains))}),t.jsxs("p",{className:"cn-pro-pricing__guarantee",children:["✓"," ",s("Refund on your first payment within 14 days","cookie-notice")]}),u==="yearly"&&t.jsx("p",{className:"cn-pro-pricing__billing-note",children:s("Billed annually. Cancel anytime.","cookie-notice")}),t.jsxs("div",{className:"cn-pro-pricing__legal",children:[t.jsx("a",{href:"https://hu-manity.co/terms",target:"_blank",rel:"noreferrer",children:s("Terms of Service","cookie-notice")})," · ",t.jsx("a",{href:"https://hu-manity.co/privacy",target:"_blank",rel:"noreferrer",children:s("Privacy Policy","cookie-notice")})]}),t.jsx("div",{className:"cn-pro-pricing__maybe-later",children:t.jsx("button",{type:"button",className:"cn-pro-pricing__maybe-later-btn",onClick:c,children:s("Maybe later — stay on free","cookie-notice")})})]})}const m0=()=>[{text:s("Consent records — no proof if a regulator asks","cookie-notice")},{text:s("Cookie autoblocking — scripts fire before consent","cookie-notice")},{text:s("Audit trail — no evidence if investigated","cookie-notice")},{text:s("Google Consent Mode — EU ads may be flagged","cookie-notice")}];function g0({onDismissToSettings:i,onBackToChoose:c}){const[u,d]=j.useState(!1);return t.jsx("div",{className:"cn-welcome-step cn-welcome-step--warning",children:t.jsxs("div",{className:"cn-warning-modal",children:[t.jsx("div",{className:"cn-warning-modal__icon",children:t.jsx(Bl,{size:32})}),t.jsx("h3",{className:"cn-warning-modal__heading",children:s("Are you sure?","cookie-notice")}),t.jsx("p",{className:"cn-warning-modal__text",children:s("Without Cookie Compliance, all liability falls on you.","cookie-notice")}),t.jsxs("div",{className:"cn-warning-modal__consequences",children:[t.jsx("h5",{children:s("You won’t have:","cookie-notice")}),t.jsx("ul",{children:m0().map((p,h)=>t.jsxs("li",{children:[t.jsx("span",{className:"cn-warning-modal__consequence-icon",children:"❌"}),t.jsx("span",{children:p.text})]},h))})]}),t.jsxs("label",{className:"cn-warning-modal__checkbox",children:[t.jsx("input",{type:"checkbox",checked:u,onChange:p=>d(p.target.checked)}),t.jsx("span",{children:s("I understand all liability falls on me and my business.","cookie-notice")})]}),t.jsxs("div",{className:"cn-warning-modal__actions",children:[t.jsx("button",{type:"button",className:"cn-warning-modal__btn cn-warning-modal__btn--danger",disabled:!u,onClick:i,children:s("Don’t protect my business","cookie-notice")}),t.jsxs("button",{type:"button",className:"cn-warning-modal__btn cn-warning-modal__btn--safe",onClick:c,children:[s("Protect my business","cookie-notice")," →"]})]})]})})}const i1=/^(?=.*[A-Z])(?=.*\d)[\w !"#$%&'()*+,\-./:;<=>?@[\]^\x60{|}~\\]{8,}$/,To="__new__",r1={email:{switchLabel:()=>s("Email me a code","cookie-notice")},totp:{switchLabel:()=>s("Use your authenticator app","cookie-notice")},backup:{switchLabel:()=>s("Use a backup code","cookie-notice")}};function v0({onComplete:i,onCompleteWithSubscriptions:c}){const[u,d]=j.useState("register"),[p,h]=j.useState(""),[m,x]=j.useState(""),[v,g]=j.useState(""),[k,_]=j.useState(!1),[b,A]=j.useState(!1),[C,D]=j.useState(null),[P,E]=j.useState(null),[I,R]=j.useState("email"),[O,oe]=j.useState(""),[J,B]=j.useState(null),[X,q]=j.useState(0),[W,te]=j.useState(null),[ue,ge]=j.useState(""),ne=window.cnReactData||{},de=M=>{d(M),D(null)};j.useEffect(()=>{if(X<=0)return;const M=setTimeout(()=>q(X-1),1e3);return()=>clearTimeout(M)},[X]);const F=()=>{if(!p)return s("Email is required.","cookie-notice");if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(p))return s("Please enter a valid email address.","cookie-notice");if(u==="register"){if(!m)return s("Password is required.","cookie-notice");if(!i1.test(m))return"Password must be 8+ characters with at least 1 capital letter and 1 number.";if(m!==v)return s("Passwords do not match.","cookie-notice");if(!k)return s("Please accept the Terms of Service to continue.","cookie-notice")}else if(!m)return s("Password is required.","cookie-notice");return null},ke=async M=>{M.preventDefault(),D(null);const H=F();if(H){D(H);return}A(!0);try{const fe=u==="register"?ne.registerNonce||"":ne.loginNonce||"",De=await gn(u,u==="register"?{email:p,pass:m,pass2:v,terms:"1",language:"en"}:{email:p,pass:m},fe);if(De&&De.needs_code){$(De);return}if(De&&De.choose_app){ee(De);return}U(De)}catch(fe){D(fe.message||s("Something went wrong. Please try again.","cookie-notice"))}finally{A(!1)}},U=M=>{if(M===!0||M===1)i();else if(M&&M.error)D(M.error);else if(M!=null&&M.app_has_subscription)i();else{const H=Array.isArray(M==null?void 0:M.subscriptions)?M.subscriptions.filter(fe=>parseInt(fe.availablelicense,10)>0).sort((fe,Ve)=>parseInt(Ve.availablelicense,10)-parseInt(fe.availablelicense,10)):[];H.length>0&&c?c(H,M.fresh_nonce||""):i()}},ee=M=>{x(""),E(null),oe(""),B(null),q(0),D(null),ge(""),te({apps:Array.isArray(M.apps)?M.apps:[],siteDomain:M.site_domain||"",currentAppId:M.current_app_id||""})},Q=(M=null)=>{te(null),ge(""),D(M)},S=async M=>{if(M.preventDefault(),D(null),!ue){D(s("Choose one of your apps, or create a new app for this site.","cookie-notice"));return}A(!0);try{const H=await gn("login_app",{app_id:ue},ne.loginAppNonce||"");if(H&&H.choose_app){ee(H);return}te(null),U(H)}catch(H){Q(H.message||s("Something went wrong. Please try again.","cookie-notice"))}finally{A(!1)}},$=M=>{const H=Array.isArray(M.methods)?M.methods:[];x(""),oe(""),B(null),q(0),R(H[0]||"email"),E({email:M.email||p,methods:H,emailSent:!!M.code_sent}),H[0]==="email"&&!M.code_sent&&pe(M.email||p)},re=(M=null)=>{E(null),oe(""),B(null),q(0),D(M)},pe=async M=>{D(null),B(null);try{const H=await gn("login_code_resend");if(H&&H.code_sent)return q(H.retry_after||60),B(we(s("We sent a code to %s.","cookie-notice"),M)),E(fe=>fe&&{...fe,emailSent:!0}),!0}catch(H){H.expired?re(H.message):D(H.message||s("Something went wrong. Please try again.","cookie-notice"))}return!1},ve=M=>{R(M),oe(""),D(null),B(null),M==="email"&&!P.emailSent&&pe(P.email)},xe=async M=>{if(M.preventDefault(),D(null),!O.trim()){D(s("Enter the verification code.","cookie-notice"));return}A(!0);try{const H=await gn("login_code",{method:I,code:O},ne.loginCodeNonce||"");if(H&&H.needs_code){$(H);return}if(H&&H.choose_app){ee(H);return}U(H)}catch(H){H.expired?re(H.message):D(H.message||s("Something went wrong. Please try again.","cookie-notice"))}finally{A(!1)}};if(W){const M=W.apps.map(H=>({id:H.id,name:H.name||H.domain||H.id,domain:H.domain&&H.domain!==H.name?H.domain:"",current:H.id===W.currentAppId}));return t.jsxs("div",{className:"cn-welcome-step cn-welcome-step--account",children:[t.jsx("h2",{className:"cn-account-heading",children:s("Choose an app","cookie-notice")}),t.jsx("p",{className:"cn-account-subtitle",children:we(s("None of your apps is for %s. Choose the app this site should use.","cookie-notice"),W.siteDomain)}),C?t.jsx("div",{className:"cn-auth-form__error",children:C}):null,t.jsxs("form",{className:"cn-auth-form",onSubmit:S,children:[t.jsxs("fieldset",{className:"cn-app-choice",children:[t.jsx("legend",{className:"screen-reader-text",children:s("Apps on your account","cookie-notice")}),M.map(H=>t.jsxs("label",{className:"cn-app-choice__option"+(ue===H.id?" cn-app-choice__option--selected":""),children:[t.jsx("input",{type:"radio",name:"cn-app",value:H.id,checked:ue===H.id,onChange:()=>ge(H.id),disabled:b}),t.jsxs("span",{className:"cn-app-choice__text",children:[t.jsx("span",{className:"cn-app-choice__name",children:H.name}),H.domain?t.jsx("span",{className:"cn-app-choice__domain",children:H.domain}):null,H.current?t.jsx("span",{className:"cn-app-choice__badge",children:s("Connected now","cookie-notice")}):null]})]},H.id)),t.jsxs("label",{className:"cn-app-choice__option"+(ue===To?" cn-app-choice__option--selected":""),children:[t.jsx("input",{type:"radio",name:"cn-app",value:To,checked:ue===To,onChange:()=>ge(To),disabled:b}),t.jsx("span",{className:"cn-app-choice__text",children:t.jsx("span",{className:"cn-app-choice__name",children:s("Create a new app for this site","cookie-notice")})})]})]}),ue!==To&&t.jsx("p",{className:"cn-app-choice__note",children:s("This site will use that app's banner settings.","cookie-notice")}),t.jsx("div",{className:"cn-auth-form__actions",children:t.jsx("button",{type:"submit",className:"cn-button cn-button--primary cn-button--block",disabled:b||!ue,children:s(b?"Connecting…":"Continue","cookie-notice")})})]}),t.jsx("div",{className:"cn-auth-form__links",children:t.jsx("button",{type:"button",className:"cn-auth-form__switch-link",onClick:()=>Q(),disabled:b,children:s("Back","cookie-notice")})})]})}if(P){const M={email:we(s("Enter the code we emailed to %s.","cookie-notice"),P.email),totp:s("Enter the code from your authenticator app.","cookie-notice"),backup:s("Enter one of your backup codes.","cookie-notice")},H=P.methods.filter(fe=>fe!==I&&r1[fe]);return t.jsxs("div",{className:"cn-welcome-step cn-welcome-step--account",children:[t.jsx("h2",{className:"cn-account-heading",children:s("Enter the code","cookie-notice")}),t.jsx("p",{className:"cn-account-subtitle",children:M[I]}),C?t.jsx("div",{className:"cn-auth-form__error",children:C}):null,J&&!C?t.jsx("div",{className:"cn-auth-form__notice",role:"status",children:J}):null,t.jsxs("form",{className:"cn-auth-form",onSubmit:xe,autoComplete:"off",children:[t.jsx(Ce,{label:s("Verification code","cookie-notice"),type:"text",name:"cn-account-code",value:O,onChange:oe,inputMode:I==="backup"?"text":"numeric",autoComplete:"one-time-code",autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,maxLength:32}),t.jsx("div",{className:"cn-auth-form__actions",children:t.jsx("button",{type:"submit",className:"cn-button cn-button--primary cn-button--block",disabled:b,children:s(b?"Signing in…":"Sign in","cookie-notice")})})]}),t.jsxs("div",{className:"cn-auth-form__links",children:[I==="email"&&t.jsx("button",{type:"button",className:"cn-auth-form__switch-link",onClick:()=>pe(P.email),disabled:b||X>0,children:X>0?`${s("Resend code","cookie-notice")} (${X})`:s("Resend code","cookie-notice")}),H.map(fe=>t.jsx("button",{type:"button",className:"cn-auth-form__switch-link",onClick:()=>ve(fe),disabled:b,children:r1[fe].switchLabel()},fe)),t.jsx("button",{type:"button",className:"cn-auth-form__switch-link",onClick:()=>re(),disabled:b,children:s("Back","cookie-notice")})]})]})}return t.jsxs("div",{className:"cn-welcome-step cn-welcome-step--account",children:[t.jsx("h2",{className:"cn-account-heading",children:s(u==="register"?"Create your account":"Welcome back","cookie-notice")}),t.jsx("p",{className:"cn-account-subtitle",children:s(u==="register"?"Takes 30 seconds. No credit card required.":"Sign in to connect your existing Cookie Compliance account.","cookie-notice")}),t.jsxs("div",{className:"cn-pill-toggle",style:{minWidth:280,alignSelf:"center",marginBottom:24},children:[t.jsx("button",{type:"button",className:"cn-pill-toggle__btn"+(u==="register"?" cn-pill-toggle__btn--active":""),onClick:()=>de("register"),children:"Create Account"}),t.jsx("button",{type:"button",className:"cn-pill-toggle__btn"+(u==="login"?" cn-pill-toggle__btn--active":""),onClick:()=>de("login"),children:"Sign In"})]}),C==="email_exists"&&u==="register"?t.jsxs("div",{className:"cn-auth-form__error",children:[s("An account with this email already exists.","cookie-notice")," ",t.jsxs("button",{type:"button",className:"cn-auth-form__switch-link",onClick:()=>{const M=p;de("login"),h(M)},children:[s("Sign in instead","cookie-notice")," →"]})]}):C?t.jsx("div",{className:"cn-auth-form__error",children:C}):null,u==="register"?t.jsxs(t.Fragment,{children:[t.jsxs("form",{className:"cn-auth-form",onSubmit:ke,children:[t.jsx(Ce,{label:s("Email address","cookie-notice"),type:"email",value:p,onChange:h,placeholder:s("you@company.com","cookie-notice"),autoComplete:"email"}),t.jsx(Ce,{label:s("Password","cookie-notice"),type:"password",value:m,onChange:x,placeholder:s("Min. 8 characters, 1 capital, 1 number","cookie-notice"),autoComplete:"new-password"}),m&&!i1.test(m)&&t.jsx("p",{className:"cn-auth-form__field-hint",children:"Min. 8 characters, at least 1 capital letter and 1 number"}),t.jsx(Ce,{label:s("Confirm Password","cookie-notice"),type:"password",value:v,onChange:g,placeholder:s("Confirm password","cookie-notice"),autoComplete:"new-password"}),t.jsxs("label",{className:"cn-auth-form__terms",children:[t.jsx("input",{type:"checkbox",checked:k,onChange:M=>_(M.target.checked),required:!0})," ","I have read and agree to the"," ",t.jsx("a",{href:"https://hu-manity.co/terms",target:"_blank",rel:"noreferrer",children:"Terms of Service"})]}),t.jsx("div",{className:"cn-auth-form__actions",children:t.jsx("button",{type:"submit",className:"cn-button cn-button--primary cn-button--block",disabled:b||!k,children:s(b?"Creating account…":"Create Account","cookie-notice")})})]}),t.jsx("div",{className:"cn-auth-or",children:t.jsx("span",{children:s("OR","cookie-notice")})}),t.jsxs("div",{className:"cn-auth-signin-teaser",children:[t.jsx("p",{className:"cn-auth-signin-teaser__heading",children:s("Already have an account?","cookie-notice")}),t.jsx("button",{type:"button",className:"cn-button cn-button--outline-primary",onClick:()=>de("login"),children:s("Sign In","cookie-notice")})]})]}):t.jsxs("form",{className:"cn-auth-form",onSubmit:ke,autoComplete:"off",children:[t.jsxs("div",{"aria-hidden":"true",style:{position:"absolute",left:"-9999px",width:"1px",height:"1px",overflow:"hidden"},children:[t.jsx("input",{type:"text",name:"username",autoComplete:"username",tabIndex:-1,defaultValue:""}),t.jsx("input",{type:"password",name:"password",autoComplete:"current-password",tabIndex:-1,defaultValue:""})]}),t.jsx(Ce,{label:s("Email address","cookie-notice"),type:"email",name:"cn-account-email",value:p,onChange:h,placeholder:s("you@company.com","cookie-notice"),autoComplete:"username",autoCapitalize:"none",autoCorrect:"off",spellCheck:!1}),t.jsx(Ce,{label:s("Password","cookie-notice"),type:"password",name:"cn-account-password",value:m,onChange:x,placeholder:s("Your password","cookie-notice"),autoComplete:"new-password"}),t.jsx("div",{className:"cn-auth-form__forgot",children:t.jsx("a",{href:`${en}/forgot`,target:"_blank",rel:"noreferrer",children:s("Forgot password?","cookie-notice")})}),t.jsx(Ns,{}),t.jsx("div",{className:"cn-auth-form__actions",children:t.jsx("button",{type:"submit",className:"cn-button cn-button--primary cn-button--block",disabled:b,children:s(b?"Signing in…":"Sign In","cookie-notice")})})]})]})}async function y0({plan:i,paymentNonce:c,method:u,identifier:d}){const p=window.cnReactData||{},h=new FormData;h.append("action","cn_api_request"),h.append("nonce",p.welcomeNonce||""),h.append("request","payment"),h.append("cn_payment_nonce",p.paymentNonce||""),h.append("plan",i),h.append("payment_nonce",c),h.append("method",u),h.append("cn_payment_identifier",d||""),p.network&&h.append("cn_network","1");const m=await fetch(p.ajaxURL||"/wp-admin/admin-ajax.php",{method:"POST",credentials:"same-origin",body:h});if(!m.ok)throw new Error(`Payment request failed: ${m.status}`);return Kc(await m.json())}const s1="https://js.braintreegateway.com/web/3.71.0/js";function a1(i){return new Promise((c,u)=>{if(document.querySelector(`script[src="${i}"]`)){c();return}const d=document.createElement("script");d.src=i,d.async=!0,d.onload=c,d.onerror=()=>u(new Error(`Failed to load: ${i}`)),document.head.appendChild(d)})}function c1({plan:i,onComplete:c,onBack:u=null,backLabel:d="Back",onSessionExpired:p=null}){const[h,m]=j.useState("loading"),[x,v]=j.useState(null),[g,k]=j.useState(""),[_,b]=j.useState(!1),A=j.useRef(null);j.useEffect(()=>{let E=!1;async function I(){var J,B,X,q;const R=["localhost","127.0.0.1"].includes(window.location.hostname);if(window.location.protocol!=="https:"&&!R){v(s("Secure payment requires HTTPS. Please contact your host.","cookie-notice")),m("error");return}try{await a1(`${s1}/client.min.js`),await a1(`${s1}/hosted-fields.min.js`)}catch{E||(v(s("Payment currently unavailable. Please try again later.","cookie-notice")),m("error"));return}if(typeof((B=(J=window.braintree)==null?void 0:J.client)==null?void 0:B.create)!="function"||typeof((q=(X=window.braintree)==null?void 0:X.hostedFields)==null?void 0:q.create)!="function"){E||(v(s("Payment currently unavailable. Please try again later.","cookie-notice")),m("error"));return}let O;try{const W=await gn("get_bt_init_token");if((W==null?void 0:W.status)==="session_expired"){if(!E&&p){p();return}O=null}else O=W==null?void 0:W.token}catch{O=null}if(!O){E||(v(s("Unable to initialize payment. Please refresh and try again.","cookie-notice")),m("error"));return}let oe;try{oe=await window.braintree.client.create({authorization:O})}catch{E||(v(s("Unable to initialize payment. Please refresh and try again.","cookie-notice")),m("error"));return}try{const W=await window.braintree.hostedFields.create({client:oe,styles:{input:{"font-size":"14px","font-family":"Lato, sans-serif",color:"#434f58"},"input.invalid":{color:"#e74c3c"},"input.valid":{color:"#434f58"}},fields:{number:{container:"#cn_card_number",placeholder:"•••• •••• •••• ••••"},expirationDate:{container:"#cn_expiration_date",placeholder:"MM / YY"},cvv:{container:"#cn_cvv",placeholder:"CVV"}}});if(E){W.teardown();return}A.current=W,W.on("validityChange",()=>{const te=W.getState(),ue=Object.values(te.fields).every(ge=>ge.isValid);b(ue)}),m("ready")}catch{E||(v(s("Unable to initialize payment. Please refresh and try again.","cookie-notice")),m("error"))}}return I(),()=>{E=!0,A.current&&(A.current.teardown(),A.current=null)}},[]);const C=async E=>{var I;if(E.preventDefault(),!(!A.current||h==="submitting")){m("submitting"),v(null);try{const R=await A.current.tokenize(),O=R.nonce,oe=((I=R.details)==null?void 0:I.lastFour)||"",J=await y0({plan:i.planKey,paymentNonce:O,method:"credit_card",identifier:oe});if(J&&typeof J=="string"&&J.length>0)c();else{const B=(J==null?void 0:J.error)||(J==null?void 0:J.message)||s("Payment failed. Please try again.","cookie-notice");v(B),m("ready")}}catch(R){v(R.message||s("Card error. Please check your details and try again.","cookie-notice")),m("ready")}}},D=(i==null?void 0:i.billing)==="yearly"?"Yearly":"Monthly",P=i?`${i.domains} Domain${i.domains>1?"s":""} — $${i.price.toFixed(2)} / ${D}`:"";return t.jsxs("div",{className:"cn-welcome-step cn-payment-step",children:[t.jsx("h2",{className:"cn-payment-step__heading",children:s("Complete Your Order","cookie-notice")}),i&&t.jsx("div",{className:"cn-payment-step__plan-pill",children:P}),x&&t.jsx("div",{className:"cn-payment-step__error",role:"alert",children:x}),h==="loading"&&!x&&t.jsx("p",{className:"cn-payment-step__loading",children:s("Initializing secure payment form…","cookie-notice")}),t.jsxs("form",{className:"cn-payment-step__form",onSubmit:C,style:{display:h==="loading"||h==="error"?"none":"block"},children:[t.jsxs("div",{className:"cn-payment-step__field",children:[t.jsx("label",{className:"cn-payment-step__label",htmlFor:"cn_card_name",children:"Cardholder Name"}),t.jsx("input",{id:"cn_card_name",type:"text",className:"cn-payment-step__input",value:g,onChange:E=>k(E.target.value),placeholder:s("Name on card","cookie-notice"),autoComplete:"cc-name"})]}),t.jsxs("div",{className:"cn-payment-step__field",children:[t.jsx("label",{className:"cn-payment-step__label",children:s("Card Number","cookie-notice")}),t.jsx("div",{id:"cn_card_number",className:"cn-payment-step__hosted-field"})]}),t.jsxs("div",{className:"cn-payment-step__row",children:[t.jsxs("div",{className:"cn-payment-step__field",children:[t.jsx("label",{className:"cn-payment-step__label",children:s("Expiry","cookie-notice")}),t.jsx("div",{id:"cn_expiration_date",className:"cn-payment-step__hosted-field"})]}),t.jsxs("div",{className:"cn-payment-step__field",children:[t.jsx("label",{className:"cn-payment-step__label",children:"CVV"}),t.jsx("div",{id:"cn_cvv",className:"cn-payment-step__hosted-field"})]})]}),t.jsx("div",{className:"cn-payment-step__braintree-badge",children:"🔒 Secured by Braintree"}),t.jsx("button",{type:"submit",className:"cn-button cn-button--primary cn-button--block cn-payment-step__submit",disabled:h==="submitting"||!_||!g.trim(),children:s(h==="submitting"?"Processing…":"Complete Purchase","cookie-notice")}),u&&t.jsx("button",{type:"button",className:"cn-button cn-button--outline-primary cn-button--block cn-payment-step__back",onClick:u,children:d}),t.jsx("p",{className:"cn-payment-step__guarantee",children:"🛡️ Refund on your first payment within 14 days"}),t.jsxs("p",{className:"cn-payment-step__legal",children:["By completing your purchase you agree to our",t.jsx("a",{href:"https://hu-manity.co/terms",target:"_blank",rel:"noopener noreferrer",className:"cn-link",children:"Terms of Service"}),"and",t.jsx("a",{href:"https://cookie-compliance.co/privacy-policy/",target:"_blank",rel:"noopener noreferrer",className:"cn-link",children:"Privacy Policy"}),"."]})]}),u&&(h==="loading"||h==="error")&&t.jsx("button",{type:"button",className:"cn-button cn-button--outline-primary cn-button--block cn-payment-step__back cn-payment-step__back--standalone",onClick:u,children:d})]})}function _0({subscriptions:i,selectedPlan:c,nonce:u,onSuccess:d,onPayInstead:p,onFreeInstead:h}){var D;const[m,x]=j.useState(((D=i[0])==null?void 0:D.subscriptionid)??null),[v,g]=j.useState(!1),[k,_]=j.useState(!1),[b,A]=j.useState(null);i.reduce((P,E)=>P+parseInt(E.availablelicense,10),0);const C=async()=>{if(!(!m||v||k)){g(!0),A(null);try{const P=await gn("use_license",{subscriptionID:m},"",u);if(P&&P.error)A(P.error),g(!1);else{_(!0);const E=i.find(R=>R.subscriptionid===m),I=E?Math.max(0,parseInt(E.availablelicense,10)-1):null;d(I)}}catch(P){A(P.message||"Something went wrong. Please try again."),g(!1)}}};return c?t.jsxs("div",{className:"cn-welcome-step cn-license-select",children:[t.jsx("h2",{className:"cn-license-select__heading",children:s("You have unused Pro licenses — do you want to use one for this domain?","cookie-notice")}),t.jsx("p",{className:"cn-license-select__sub",children:s("Your existing plan covers this site. We’ll connect it now — no payment needed.","cookie-notice")}),i.length===1?t.jsxs("div",{className:"cn-license-select__single-card",children:[t.jsx("span",{className:"cn-license-select__card-name",children:s("Compliance Pro","cookie-notice")}),t.jsxs("span",{className:"cn-license-select__card-slots",children:[parseInt(i[0].availablelicense,10)," ","domain",parseInt(i[0].availablelicense,10)!==1?"s":""," remaining"]})]}):t.jsxs(t.Fragment,{children:[t.jsx("p",{className:"cn-license-select__choose-label",children:s("You have multiple plans with available sites. Choose one to connect this site to:","cookie-notice")}),t.jsx("div",{className:"cn-license-select__cards",role:"radiogroup",children:i.map(P=>{const E=parseInt(P.availablelicense,10);return t.jsxs("label",{className:"cn-license-select__card"+(m===P.subscriptionid?" cn-license-select__card--selected":""),children:[t.jsx("input",{type:"radio",name:"cn_subscription",value:P.subscriptionid,checked:m===P.subscriptionid,onChange:()=>x(P.subscriptionid),className:"cn-license-select__radio"}),t.jsxs("div",{className:"cn-license-select__card-body",children:[t.jsx("span",{className:"cn-license-select__card-name",children:s("Compliance Pro","cookie-notice")}),t.jsxs("span",{className:"cn-license-select__card-slots",children:[E," domain",E!==1?"s":""," remaining"]})]})]},P.subscriptionid)})})]}),b&&t.jsx("div",{className:"cn-license-select__error",role:"alert",children:b}),t.jsx("div",{className:"cn-license-select__actions",children:t.jsx("button",{type:"button",className:"cn-button cn-button--primary cn-button--block",onClick:C,disabled:v||k||!m,children:v?"Connecting…":i.length>1?"Connect This Site to Selected Plan":"Connect This Site"})}),p&&t.jsx("button",{type:"button",className:"cn-license-select__free-link",onClick:p,children:s("Need a different plan? Purchase a new subscription instead","cookie-notice")})]}):t.jsxs("div",{className:"cn-welcome-step cn-license-select cn-license-select--upsell",children:[t.jsx("div",{className:"cn-license-select__upsell-icon",children:"✅"}),t.jsx("h2",{className:"cn-license-select__heading",children:s("Good news — your account already has a Pro plan with available slots. Activate it here, free.","cookie-notice")}),t.jsx("p",{className:"cn-license-select__sub",children:s("You have unused Pro license slots available. Connect this site to your existing plan at no extra cost — or continue with the free version.","cookie-notice")}),i.length>1&&t.jsx("div",{className:"cn-license-select__cards",role:"radiogroup",children:i.map(P=>{const E=parseInt(P.availablelicense,10);return t.jsxs("label",{className:"cn-license-select__card"+(m===P.subscriptionid?" cn-license-select__card--selected":""),children:[t.jsx("input",{type:"radio",name:"cn_subscription",value:P.subscriptionid,checked:m===P.subscriptionid,onChange:()=>x(P.subscriptionid),className:"cn-license-select__radio"}),t.jsxs("div",{className:"cn-license-select__card-body",children:[t.jsx("span",{className:"cn-license-select__card-name",children:s("Compliance Pro","cookie-notice")}),t.jsxs("span",{className:"cn-license-select__card-slots",children:[E," domain",E!==1?"s":""," remaining"]})]})]},P.subscriptionid)})}),b&&t.jsx("div",{className:"cn-license-select__error",role:"alert",children:b}),t.jsx("div",{className:"cn-license-select__actions",children:t.jsx("button",{type:"button",className:"cn-button cn-button--primary cn-button--block",onClick:C,disabled:v||k||!m,children:v?"Activating…":"Upgrade to Pro — No Extra Charge"})}),t.jsx("button",{type:"button",className:"cn-license-select__free-link",onClick:h,children:s("Continue with free version instead","cookie-notice")})]})}const k0=()=>[{label:s("Choose Protection","cookie-notice")},{label:s("Confirm","cookie-notice")},{label:s("Create Account","cookie-notice")}];function l1(i){return i==="choose"||i==="pro-pricing"?0:i==="warning"?1:2}const x0=(i,c)=>"compliance_"+c+"_"+(i===1?"notrial":String(i));function j0({isOpen:i,onClose:c,onDismissToSettings:u}){const[d,p]=j.useState("choose"),[h,m]=j.useState(null),[x,v]=j.useState([]),[g,k]=j.useState(""),_=()=>{p("choose"),m(null),v([]),k(""),u?u():c&&c()},b=()=>{h?p("payment"):Bt()},A=(P,E)=>{v(P),k(E),p("license-select")},C=P=>{const E=l1(d);P<E&&P===0&&p("choose")},D=()=>{switch(d){case"choose":return t.jsx(p0,{onBannerOnly:()=>p("warning"),onProtect:()=>p("account"),onComply:()=>p("pro-pricing"),onLearnMore:()=>p("pro-pricing")});case"pro-pricing":return t.jsx(h0,{onSelectPlan:(P,E,I)=>{m({planKey:x0(P,E),domains:P,billing:E,price:I}),p("account")},onBack:()=>{m(null),p("choose")}});case"warning":return t.jsx(g0,{onDismissToSettings:_,onBackToChoose:()=>p("choose")});case"account":return t.jsx(v0,{onComplete:b,onCompleteWithSubscriptions:A});case"license-select":return t.jsx(_0,{subscriptions:x,selectedPlan:h,nonce:g,onSuccess:P=>{Bt({license_assigned:"1",...P!=null?{slots_remaining:P}:{}})},onPayInstead:h?()=>p("payment"):null,onFreeInstead:()=>Bt()});case"payment":return t.jsx(c1,{plan:h,onComplete:()=>Bt(),onBack:()=>p("account"),backLabel:"Back",onSessionExpired:()=>p("account")});default:return null}};return t.jsxs(o1,{isOpen:i&&!Re(),onClose:_,size:"lg",children:[D(),t.jsx(d0,{steps:k0(),currentStep:l1(d),onStepClick:C})]})}const w0=[{icon:t.jsx(zs,{size:24}),title:s("Autoblocking","cookie-notice"),desc:s("Scripts wait for visitor consent before firing.","cookie-notice")},{icon:t.jsx(cp,{size:24}),title:s("Geographic Enforcement","cookie-notice"),desc:s("Apply different rules by visitor location.","cookie-notice")},{icon:t.jsx(Ol,{size:24}),title:s("Consent Proofs","cookie-notice"),desc:s("Exportable audit trail for every consent event.","cookie-notice")},{icon:t.jsx(pp,{size:24}),title:s("Priority Support","cookie-notice"),desc:s("Fast, expert help when you need it.","cookie-notice")},{icon:t.jsx(lp,{size:24}),title:s("Advanced Analytics","cookie-notice"),desc:s("Consent rates, geography, and trend data.","cookie-notice")},{icon:t.jsx(up,{size:24}),title:s("Script Wizard","cookie-notice"),desc:s("Register and manage third-party scripts easily.","cookie-notice")}],b0=[{domains:1,monthly:14.95,yearly:149.5,perDomain:null,popular:!0},{domains:5,monthly:29.95,yearly:299.5,perDomain:5.99,tagline:s("Best for dev + staging + production","cookie-notice")},{domains:10,monthly:49.95,yearly:499.5,perDomain:4.99,tagline:s("For agencies & multi-site networks","cookie-notice")}],u1=(i,c)=>"compliance_"+c+"_"+(i===1?"notrial":String(i)),N0=1,S0=i=>{var d,p;const c=((d=window.cnReactData)==null?void 0:d.app_id)||((p=window.cnReactData)==null?void 0:p.appId)||"",u=new URLSearchParams({"open-modal":"payment",plan:i});return c&&u.set("app-id",c),`${en}/#/dashboard?${u.toString()}`},d1=()=>{var i;window.location.href=((i=window.cnReactData)==null?void 0:i.welcomeUrl)||"?page=cookie-notice&cn_react_welcome=1"};function C0({isOpen:i,onClose:c}){const[u,d]=j.useState("monthly"),[p,h]=j.useState(null),{isFree:m}=Ze(),x=(p==null?void 0:p.planKey)||u1(N0,u),v=()=>{h(null),c()};return t.jsx(o1,{isOpen:i&&!Re(),onClose:v,size:"lg",children:p?t.jsx("div",{className:"cn-welcome-step",children:t.jsx(c1,{plan:p,onComplete:()=>window.location.reload(),onBack:()=>h(null),backLabel:"Back to plans",onSessionExpired:d1})}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"cn-pricing-hero",children:[t.jsx("h2",{className:"cn-pricing-hero__heading",children:"Cookie Compliance — Professional"}),t.jsx("p",{className:"cn-pricing-hero__sub",children:"Everything you need to stay compliant, protect your visitors, and prove it."})]}),t.jsx("div",{className:"cn-benefit-grid",children:w0.map((g,k)=>t.jsxs("div",{className:"cn-benefit-card",children:[t.jsx("div",{className:"cn-benefit-card__icon",children:g.icon}),t.jsx("div",{className:"cn-benefit-card__title",children:g.title}),t.jsx("div",{className:"cn-benefit-card__desc",children:g.desc})]},k))}),t.jsxs("div",{className:"cn-pill-toggle",style:{margin:"0 auto 20px"},children:[t.jsx("button",{className:`cn-pill-toggle__btn${u==="monthly"?" cn-pill-toggle__btn--active":""}`,type:"button",onClick:()=>d("monthly"),children:"Monthly"}),t.jsxs("button",{className:`cn-pill-toggle__btn${u==="yearly"?" cn-pill-toggle__btn--active":""}`,type:"button",onClick:()=>d("yearly"),children:["Yearly",t.jsx("span",{className:"cn-pill-toggle__badge",children:s("Save 17%","cookie-notice")})]})]}),t.jsx("p",{className:"cn-pricing-door-label",children:"Quick checkout — pay securely right here"}),t.jsx("div",{className:"cn-pricing-cards",children:b0.map(g=>t.jsxs("div",{className:`cn-pricing-card${g.popular?" cn-pricing-card--popular":""}`,children:[g.popular&&t.jsx("div",{className:"cn-pricing-card__popular-badge",children:s("Recommended","cookie-notice")}),t.jsx("div",{className:"cn-pricing-card__domains",children:g.domains}),t.jsx("div",{className:"cn-pricing-card__domains-label",children:g.domains===1?"domain":"domains"}),g.tagline&&t.jsx("div",{className:"cn-pricing-card__tagline",children:g.tagline}),t.jsxs("div",{className:"cn-pricing-card__price",children:[t.jsx("sup",{children:"$"}),u==="monthly"?g.monthly.toFixed(2):(g.yearly/12).toFixed(2),t.jsx("sub",{children:" / mo"})]}),t.jsxs("div",{className:"cn-pricing-card__billed-note",style:u==="monthly"?{visibility:"hidden"}:void 0,children:["$",g.yearly.toFixed(2)," billed annually"]}),t.jsx(Ue,{variant:g.popular?"primary":"outline",size:"md",style:{width:"100%"},onClick:()=>{m?h({planKey:u1(g.domains,u),domains:g.domains,billing:u,price:u==="monthly"?g.monthly:g.yearly}):d1()},children:s(m?"Select Plan":"Get Started","cookie-notice")})]},g.domains))}),t.jsxs("div",{className:"cn-pricing-portal-door",children:[t.jsx("div",{className:"cn-pricing-portal-door__title",children:s("Prefer more options?","cookie-notice")}),t.jsx("p",{className:"cn-pricing-portal-door__desc",children:"Manage your subscription in your Hu‑manity account — multi‑domain plans, invoices & VAT, and more payment methods."}),t.jsx("a",{href:S0(x),target:"_blank",rel:"noopener noreferrer",className:"cn-pricing-portal-door__link",children:"Manage in Admin Portal →"})]}),t.jsx("p",{className:"cn-pricing-footer__dismiss",children:t.jsx("button",{type:"button",className:"cn-link-btn",onClick:v,children:"Maybe later — stay on Free"})})]})})}function P0(){const i=!!(window.cnReactData||{}).devMode,{tier:c}=Ze(),u=new URLSearchParams(window.location.search),d=u.get("cn_tier")||c,p=parseInt(u.get("cn_usage")||"0",10),h=(window.cnReactData||{}).uiMode||"legacy",[m,x]=j.useState(p),[v,g]=j.useState(!1);if(!i)return null;function k(){window.confirm(`⚠️ Reset plugin to fresh-activation state? 1063 1063 1064 This clears: welcome flag, setup wizard flag, app_id, app_key, and subscription status.`)&&(g(!0),G2().then(()=>{const D=new URL(window.location.href);D.searchParams.delete("cn_tier"),D.searchParams.delete("cn_usage"),window.location.href=D.toString()}).catch(D=>{alert("Reset failed: "+(D.message||"Unknown error")),g(!1)}))}function _(D,P=null){const E=new URLSearchParams(window.location.search);E.set("cn_tier",D),D==="free"&&P!==null?E.set("cn_usage",P):E.delete("cn_usage"),window.location.search=E.toString()}function b(D){const P=new URLSearchParams(window.location.search);P.set("ui_mode",D),D==="legacy"&&(P.delete("cn_tier"),P.delete("cn_usage")),window.location.search=P.toString()}const A=[{id:"banner_only",label:"Banner Only"},{id:"free",label:"Free"},{id:"pro",label:"Pro"}],C=[{id:"react",label:"React"},{id:"legacy",label:"Legacy"}];return t.jsxs("div",{className:"cn-dev-switcher",children:[t.jsxs("div",{className:"cn-dev-switcher__header",children:[t.jsx("span",{className:"cn-dev-switcher__icon",children:"🛠"}),t.jsx("span",{className:"cn-dev-switcher__title",children:"DEV MODE"})]}),t.jsx("div",{className:"cn-dev-switcher__label",children:"Account type"}),t.jsx("div",{className:"cn-dev-switcher__buttons",children:A.map(D=>t.jsx("button",{className:"cn-dev-switcher__btn"+(d===D.id?" cn-dev-switcher__btn--active":""),onClick:()=>_(D.id,D.id==="free"?m:null),children:D.label},D.id))}),t.jsx("div",{className:"cn-dev-switcher__label",children:"Admin UI"}),t.jsx("div",{className:"cn-dev-switcher__buttons",children:C.map(D=>t.jsx("button",{className:"cn-dev-switcher__btn"+(h===D.id?" cn-dev-switcher__btn--active":""),onClick:()=>b(D.id),children:D.label},D.id))}),d==="free"&&t.jsxs("div",{className:"cn-dev-switcher__usage",children:[t.jsxs("div",{className:"cn-dev-switcher__usage-row",children:[t.jsx("span",{className:"cn-dev-switcher__usage-label",children:"Usage"}),t.jsxs("span",{className:"cn-dev-switcher__usage-val",children:[m,"%"]})]}),t.jsx("input",{type:"range",min:"0",max:"100",value:m,className:"cn-dev-switcher__slider",onChange:D=>x(Number(D.target.value)),onMouseUp:D=>{D.stopPropagation(),_("free",m)},onTouchEnd:D=>{D.stopPropagation(),_("free",m)}})]}),t.jsx("div",{className:"cn-dev-switcher__divider"}),t.jsx("button",{className:"cn-dev-switcher__reset-btn",onClick:k,disabled:v,title:"Clears welcome flag, setup wizard, app connection & subscription status",children:v?"↺ Resetting…":"↺ Reset Plugin"})]})}class p1 extends w.Component{constructor(c){super(c),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(c,u){console.error("ErrorBoundary caught:",c,u)}render(){return this.state.hasError?t.jsxs("div",{className:"cn-error-boundary",children:[t.jsx("p",{className:"cn-error-boundary__message",children:"Something went wrong while loading this section."}),t.jsx("button",{type:"button",className:"button button-primary",onClick:()=>window.location.reload(),children:"Reload page"})]}):this.props.children}}function P0({onOpenPricingModal:i}){const{topBar:c,dismiss:u}=Il();if(c===null||Re())return null;const p={critical:"crit",warning:"warning",info:"info"}[c.type]||"info";let h=null;return c.icon==="error"?h=t.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",width:"24",height:"24",children:[t.jsx("circle",{cx:"12",cy:"12",r:"10"}),t.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),t.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]}):c.icon==="warning"?h=t.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",width:"24",height:"24",children:[t.jsx("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}),t.jsx("line",{x1:"12",y1:"9",x2:"12",y2:"13"}),t.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]}):c.icon==="info"&&(h=t.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",width:"24",height:"24",children:[t.jsx("circle",{cx:"12",cy:"12",r:"10"}),t.jsx("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),t.jsx("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"})]})),t.jsxs("div",{className:`cn-alert cn-alert--${p}`,style:{marginBottom:24},children:[t.jsx("div",{className:"cn-alert__icon",children:h}),t.jsxs("div",{className:"cn-alert__content",children:[t.jsx("h3",{className:"cn-alert__title",children:c.title}),t.jsx("p",{className:"cn-alert__desc",children:c.description})]}),t.jsx("div",{className:"cn-alert__actions",children:t.jsx("button",{type:"button",className:"cn-button cn-button--upgrade",onClick:i,children:c.cta.label})}),c.dismissible&&t.jsx("button",{type:"button",className:"cn-alert__dismiss",onClick:()=>u(c.id),"aria-label":s("Dismiss","cookie-notice"),children:t.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",width:"18",height:"18",children:[t.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),t.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]})}const Is=()=>[{id:"protection",label:s("Overview","cookie-notice")},{id:"settings",label:s("Cookie Consent","cookie-notice")},{id:"privacy-consent",label:s("Privacy Consent","cookie-notice")},{id:"audit-trail",label:s("Consent Logs","cookie-notice")}],L0=3e4;function E0(i){return i?Date.parse(String(i).trim().replace(" ","T")+"Z"):NaN}function D0({dashboard:i,refetchDashboard:c,refetchConfig:u,notices:d,removeNotice:p,addNotice:h,activeTab:m,setActiveTab:x,showWelcomeModal:v,setShowWelcomeModal:g,showPricingModal:k,setShowPricingModal:_}){const{closeAllPanels:b}=ki(),A=Re(),C=A?void 0:()=>g(!0),D=A?void 0:()=>_(!0),P=w.useCallback(R=>{b(),x(R);const O=new URLSearchParams(window.location.search);O.delete("tab");const te=window.location.pathname+(O.toString()?"?"+O.toString():"")+"#"+R;window.history.replaceState({},"",te)},[b,x]),E=()=>{switch(m){case"protection":return t.jsx(tp,{addNotice:h,onOpenWelcomeModal:C,onOpenPricingModal:D,onTabChange:P});case"settings":return t.jsx(Hp,{addNotice:h,onOpenWelcomeModal:C,onOpenPricingModal:D});case"privacy-consent":return t.jsx(c0,{addNotice:h,onOpenWelcomeModal:C});case"audit-trail":return t.jsx(i0,{addNotice:h,onOpenWelcomeModal:C,onOpenPricingModal:D});default:return null}},I=w.useCallback(()=>{g(!1),P("settings"),U2().catch(()=>{})},[P,g]);return t.jsxs("div",{className:"cn-admin-app",children:[t.jsx(C0,{}),d.map(R=>t.jsx(Ut,{type:R.type,dismissible:!0,onDismiss:()=>p(R.id),children:R.message},R.id)),t.jsx(y2,{tabs:Is(),activeTab:m,onTabChange:P}),t.jsxs("div",{className:"cn-tab-content",children:[t.jsx(P0,{onOpenPricingModal:D}),t.jsx(p1,{children:E()},m)]}),t.jsx(x2,{}),t.jsx(x0,{isOpen:v,onClose:()=>g(!1),onDismissToSettings:I}),t.jsx(S0,{isOpen:k,onClose:()=>_(!1)})]})}function T0(){const{data:i,error:c,refetch:u}=f3(),{data:d,loading:p,refetch:h}=h3(),[m,x]=w.useState("idle"),[v,g]=w.useState(()=>{var M;return((M=window.cnReactData)==null?void 0:M.lastSynced)||""}),k=w.useRef(!1),_=w.useCallback(async()=>{var M;if(!(!((M=window.cnReactData)!=null&&M.app_id)||Re())&&!Po(Fn())&&!k.current){k.current=!0,x("refreshing");try{const me=await gn("sync_config");me!=null&&me.timestamp&&g(me.timestamp),h(),u(),x("ok")}catch{x("failed")}finally{k.current=!1}}},[h,u]);w.useEffect(()=>{var me;const M=E0((me=window.cnReactData)==null?void 0:me.lastSynced);!Number.isNaN(M)&&Date.now()-M<L0||_()},[]);const A={state:Ai()?"idle":m,lastSynced:v,retry:_},[C,D]=w.useState([]),[P,E]=w.useState(()=>{var ke;const M=new URLSearchParams(window.location.search).get("tab");if(M==="consent-logs")return"audit-trail";if(Is().find(U=>U.id===M))return M;const me=window.location.hash.replace("#","");return Is().find(U=>U.id===me)?me:!((ke=window.cnReactData)!=null&&ke.app_id)?"settings":"protection"}),I=_3(i,u,c,P==="protection"),{isBannerOnly:R}=Ze(),O=w.useRef(Date.now()),te=w.useRef(null);w.useEffect(()=>{const M=()=>{document.visibilityState==="visible"&&(Date.now()-O.current<1e4||(clearTimeout(te.current),te.current=setTimeout(()=>{u()},2e3)))};return document.addEventListener("visibilitychange",M),()=>{document.removeEventListener("visibilitychange",M),clearTimeout(te.current)}},[u]);const[J,B]=w.useState(()=>{const M=new URLSearchParams(window.location.search),me=M.get("cn_react_welcome")==="1";if(me){M.delete("cn_react_welcome");const _e=window.location.pathname+(M.toString()?"?"+M.toString():"")+window.location.hash;window.history.replaceState({},"",_e)}return me&&!Re()}),[X,q]=w.useState(!1);w.useEffect(()=>{var _e;if(Re()||!R)return;const M=(_e=window.cnReactData)==null?void 0:_e.welcomeDismissedAt;if(!M){B(!0);return}const me=Date.now()-720*60*60*1e3;new Date(M).getTime()<me&&B(!0)},[R]);const W=w.useCallback((M,me="success")=>{const _e=Date.now();D(ke=>[...ke,{id:_e,message:M,type:me}]),setTimeout(()=>D(ke=>ke.filter(U=>U.id!==_e)),5e3)},[]),ne=w.useCallback(M=>{D(me=>me.filter(_e=>_e.id!==M))},[]);w.useEffect(()=>{var me,_e;const M=new URLSearchParams(window.location.search);M.get(vs)==="1"&&(M.delete(vs),window.history.replaceState({},"",window.location.pathname+(M.toString()?"?"+M.toString():"")+window.location.hash),(me=window.cnReactData)!=null&&me.app_id&&((_e=window.cnReactData)==null?void 0:_e.status)==="active"&&!Re()&&W(q2(Fn().banner),"success"))},[]);const le=w.useCallback(()=>{u()},[u]),he=w.useCallback(()=>{u(),h()},[u,h]);return t.jsx(Vc.Provider,{value:{dashboard:i,refetchDashboard:u,isLoadingDashboard:!i,scorecardStatus:I},children:t.jsx(Gc.Provider,{value:{config:d,isLoadingConfig:p,refetchConfig:h,configRefresh:A},children:t.jsx(j2,{onLawSave:le,onConsentClose:he,children:t.jsx(D0,{dashboard:i,refetchDashboard:u,refetchConfig:h,notices:C,removeNotice:ne,addNotice:W,activeTab:P,setActiveTab:E,showWelcomeModal:J,setShowWelcomeModal:B,showPricingModal:X,setShowPricingModal:q})})})})}const Os=document.getElementById("cn-react-root"),f1=typeof window.cnReactData=="object"&&window.cnReactData!==null&&typeof window.cnReactData.ajaxURL=="string"&&typeof window.cnReactData.nonce=="string";Os&&f1?v2.createRoot(Os).render(t.jsx(p1,{children:t.jsx(T0,{})})):Os&&!f1&&console.error("[Compliance] cnReactData missing or malformed — admin UI will not mount.",{cnReactData:window.cnReactData})})();1064 This clears: welcome flag, setup wizard flag, app_id, app_key, and subscription status.`)&&(g(!0),G2().then(()=>{const D=new URL(window.location.href);D.searchParams.delete("cn_tier"),D.searchParams.delete("cn_usage"),window.location.href=D.toString()}).catch(D=>{alert("Reset failed: "+(D.message||"Unknown error")),g(!1)}))}function _(D,P=null){const E=new URLSearchParams(window.location.search);E.set("cn_tier",D),D==="free"&&P!==null?E.set("cn_usage",P):E.delete("cn_usage"),window.location.search=E.toString()}function b(D){const P=new URLSearchParams(window.location.search);P.set("ui_mode",D),D==="legacy"&&(P.delete("cn_tier"),P.delete("cn_usage")),window.location.search=P.toString()}const A=[{id:"banner_only",label:"Banner Only"},{id:"free",label:"Free"},{id:"pro",label:"Pro"}],C=[{id:"react",label:"React"},{id:"legacy",label:"Legacy"}];return t.jsxs("div",{className:"cn-dev-switcher",children:[t.jsxs("div",{className:"cn-dev-switcher__header",children:[t.jsx("span",{className:"cn-dev-switcher__icon",children:"🛠"}),t.jsx("span",{className:"cn-dev-switcher__title",children:"DEV MODE"})]}),t.jsx("div",{className:"cn-dev-switcher__label",children:"Account type"}),t.jsx("div",{className:"cn-dev-switcher__buttons",children:A.map(D=>t.jsx("button",{className:"cn-dev-switcher__btn"+(d===D.id?" cn-dev-switcher__btn--active":""),onClick:()=>_(D.id,D.id==="free"?m:null),children:D.label},D.id))}),t.jsx("div",{className:"cn-dev-switcher__label",children:"Admin UI"}),t.jsx("div",{className:"cn-dev-switcher__buttons",children:C.map(D=>t.jsx("button",{className:"cn-dev-switcher__btn"+(h===D.id?" cn-dev-switcher__btn--active":""),onClick:()=>b(D.id),children:D.label},D.id))}),d==="free"&&t.jsxs("div",{className:"cn-dev-switcher__usage",children:[t.jsxs("div",{className:"cn-dev-switcher__usage-row",children:[t.jsx("span",{className:"cn-dev-switcher__usage-label",children:"Usage"}),t.jsxs("span",{className:"cn-dev-switcher__usage-val",children:[m,"%"]})]}),t.jsx("input",{type:"range",min:"0",max:"100",value:m,className:"cn-dev-switcher__slider",onChange:D=>x(Number(D.target.value)),onMouseUp:D=>{D.stopPropagation(),_("free",m)},onTouchEnd:D=>{D.stopPropagation(),_("free",m)}})]}),t.jsx("div",{className:"cn-dev-switcher__divider"}),t.jsx("button",{className:"cn-dev-switcher__reset-btn",onClick:k,disabled:v,title:"Clears welcome flag, setup wizard, app connection & subscription status",children:v?"↺ Resetting…":"↺ Reset Plugin"})]})}class p1 extends j.Component{constructor(c){super(c),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(c,u){console.error("ErrorBoundary caught:",c,u)}render(){return this.state.hasError?t.jsxs("div",{className:"cn-error-boundary",children:[t.jsx("p",{className:"cn-error-boundary__message",children:"Something went wrong while loading this section."}),t.jsx("button",{type:"button",className:"button button-primary",onClick:()=>window.location.reload(),children:"Reload page"})]}):this.props.children}}function L0({onOpenPricingModal:i}){const{topBar:c,dismiss:u}=Il();if(c===null||Re())return null;const p={critical:"crit",warning:"warning",info:"info"}[c.type]||"info";let h=null;return c.icon==="error"?h=t.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",width:"24",height:"24",children:[t.jsx("circle",{cx:"12",cy:"12",r:"10"}),t.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),t.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]}):c.icon==="warning"?h=t.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",width:"24",height:"24",children:[t.jsx("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}),t.jsx("line",{x1:"12",y1:"9",x2:"12",y2:"13"}),t.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]}):c.icon==="info"&&(h=t.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",width:"24",height:"24",children:[t.jsx("circle",{cx:"12",cy:"12",r:"10"}),t.jsx("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),t.jsx("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"})]})),t.jsxs("div",{className:`cn-alert cn-alert--${p}`,style:{marginBottom:24},children:[t.jsx("div",{className:"cn-alert__icon",children:h}),t.jsxs("div",{className:"cn-alert__content",children:[t.jsx("h3",{className:"cn-alert__title",children:c.title}),t.jsx("p",{className:"cn-alert__desc",children:c.description})]}),t.jsx("div",{className:"cn-alert__actions",children:t.jsx("button",{type:"button",className:"cn-button cn-button--upgrade",onClick:i,children:c.cta.label})}),c.dismissible&&t.jsx("button",{type:"button",className:"cn-alert__dismiss",onClick:()=>u(c.id),"aria-label":s("Dismiss","cookie-notice"),children:t.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",width:"18",height:"18",children:[t.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),t.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]})}const Is=()=>[{id:"protection",label:s("Overview","cookie-notice")},{id:"settings",label:s("Cookie Consent","cookie-notice")},{id:"privacy-consent",label:s("Privacy Consent","cookie-notice")},{id:"audit-trail",label:s("Consent Logs","cookie-notice")}],E0=3e4;function D0(i){return i?Date.parse(String(i).trim().replace(" ","T")+"Z"):NaN}function T0({dashboard:i,refetchDashboard:c,refetchConfig:u,notices:d,removeNotice:p,addNotice:h,activeTab:m,setActiveTab:x,showWelcomeModal:v,setShowWelcomeModal:g,showPricingModal:k,setShowPricingModal:_}){const{closeAllPanels:b}=ki(),A=Re(),C=A?void 0:()=>g(!0),D=A?void 0:()=>_(!0),P=j.useCallback(R=>{b(),x(R);const O=new URLSearchParams(window.location.search);O.delete("tab");const oe=window.location.pathname+(O.toString()?"?"+O.toString():"")+"#"+R;window.history.replaceState({},"",oe)},[b,x]),E=()=>{switch(m){case"protection":return t.jsx(tp,{addNotice:h,onOpenWelcomeModal:C,onOpenPricingModal:D,onTabChange:P});case"settings":return t.jsx(Kp,{addNotice:h,onOpenWelcomeModal:C,onOpenPricingModal:D});case"privacy-consent":return t.jsx(l0,{addNotice:h,onOpenWelcomeModal:C});case"audit-trail":return t.jsx(r0,{addNotice:h,onOpenWelcomeModal:C,onOpenPricingModal:D});default:return null}},I=j.useCallback(()=>{g(!1),P("settings"),U2().catch(()=>{})},[P,g]);return t.jsxs("div",{className:"cn-admin-app",children:[t.jsx(P0,{}),d.map(R=>t.jsx(Ut,{type:R.type,dismissible:!0,onDismiss:()=>p(R.id),children:R.message},R.id)),t.jsx(y2,{tabs:Is(),activeTab:m,onTabChange:P}),t.jsxs("div",{className:"cn-tab-content",children:[t.jsx(L0,{onOpenPricingModal:D}),t.jsx(p1,{children:E()},m)]}),t.jsx(x2,{}),t.jsx(j0,{isOpen:v,onClose:()=>g(!1),onDismissToSettings:I}),t.jsx(C0,{isOpen:k,onClose:()=>_(!1)})]})}function A0(){const{data:i,error:c,refetch:u}=f3(),{data:d,loading:p,refetch:h}=h3(),[m,x]=j.useState("idle"),[v,g]=j.useState(()=>{var ne;return((ne=window.cnReactData)==null?void 0:ne.lastSynced)||""}),k=j.useRef(!1),_=j.useCallback(async()=>{var ne;if(!(!((ne=window.cnReactData)!=null&&ne.app_id)||Re())&&!Po(Fn())&&!k.current){k.current=!0,x("refreshing");try{const de=await gn("sync_config");de!=null&&de.timestamp&&g(de.timestamp),h(),u(),x("ok")}catch{x("failed")}finally{k.current=!1}}},[h,u]);j.useEffect(()=>{var de;const ne=D0((de=window.cnReactData)==null?void 0:de.lastSynced);!Number.isNaN(ne)&&Date.now()-ne<E0||_()},[]);const A={state:Ai()?"idle":m,lastSynced:v,retry:_},[C,D]=j.useState([]),[P,E]=j.useState(()=>{var ke;const ne=new URLSearchParams(window.location.search).get("tab");if(ne==="consent-logs")return"audit-trail";if(Is().find(U=>U.id===ne))return ne;const de=window.location.hash.replace("#","");return Is().find(U=>U.id===de)?de:!((ke=window.cnReactData)!=null&&ke.app_id)?"settings":"protection"}),I=_3(i,u,c,P==="protection"),{isBannerOnly:R}=Ze(),O=j.useRef(Date.now()),oe=j.useRef(null);j.useEffect(()=>{const ne=()=>{document.visibilityState==="visible"&&(Date.now()-O.current<1e4||(clearTimeout(oe.current),oe.current=setTimeout(()=>{u()},2e3)))};return document.addEventListener("visibilitychange",ne),()=>{document.removeEventListener("visibilitychange",ne),clearTimeout(oe.current)}},[u]);const[J,B]=j.useState(()=>{const ne=new URLSearchParams(window.location.search),de=ne.get("cn_react_welcome")==="1";if(de){ne.delete("cn_react_welcome");const F=window.location.pathname+(ne.toString()?"?"+ne.toString():"")+window.location.hash;window.history.replaceState({},"",F)}return de&&!Re()}),[X,q]=j.useState(!1);j.useEffect(()=>{var F;if(Re()||!R)return;const ne=(F=window.cnReactData)==null?void 0:F.welcomeDismissedAt;if(!ne){B(!0);return}const de=Date.now()-720*60*60*1e3;new Date(ne).getTime()<de&&B(!0)},[R]);const W=j.useCallback((ne,de="success")=>{const F=Date.now();D(ke=>[...ke,{id:F,message:ne,type:de}]),setTimeout(()=>D(ke=>ke.filter(U=>U.id!==F)),5e3)},[]),te=j.useCallback(ne=>{D(de=>de.filter(F=>F.id!==ne))},[]);j.useEffect(()=>{var de,F;const ne=new URLSearchParams(window.location.search);ne.get(vs)==="1"&&(ne.delete(vs),window.history.replaceState({},"",window.location.pathname+(ne.toString()?"?"+ne.toString():"")+window.location.hash),(de=window.cnReactData)!=null&&de.app_id&&((F=window.cnReactData)==null?void 0:F.status)==="active"&&!Re()&&W(q2(Fn().banner),"success"))},[]);const ue=j.useCallback(()=>{u()},[u]),ge=j.useCallback(()=>{u(),h()},[u,h]);return t.jsx(Vc.Provider,{value:{dashboard:i,refetchDashboard:u,isLoadingDashboard:!i,scorecardStatus:I},children:t.jsx(Gc.Provider,{value:{config:d,isLoadingConfig:p,refetchConfig:h,configRefresh:A},children:t.jsx(w2,{onLawSave:ue,onConsentClose:ge,children:t.jsx(T0,{dashboard:i,refetchDashboard:u,refetchConfig:h,notices:C,removeNotice:te,addNotice:W,activeTab:P,setActiveTab:E,showWelcomeModal:J,setShowWelcomeModal:B,showPricingModal:X,setShowPricingModal:q})})})})}const Os=document.getElementById("cn-react-root"),f1=typeof window.cnReactData=="object"&&window.cnReactData!==null&&typeof window.cnReactData.ajaxURL=="string"&&typeof window.cnReactData.nonce=="string";Os&&f1?v2.createRoot(Os).render(t.jsx(p1,{children:t.jsx(A0,{})})):Os&&!f1&&console.error("[Compliance] cnReactData missing or malformed — admin UI will not mount.",{cnReactData:window.cnReactData})})(); -
cookie-notice/tags/3.1.16/cookie-notice.php
r3736417 r3744556 3 3 Plugin Name: Cookie Compliance for WordPress – Cookie Consent, GDPR & CCPA 4 4 Description: Cookie Compliance for WordPress (formerly "Compliance by Hu-manity.co" / "Cookie Notice") — the WordPress component of Cookie Compliance, the consent management platform by Hu-manity.co. Cookie consent banner, pre-consent script blocking, Google Consent Mode v2, WP Consent API integration, and consent records for GDPR, CCPA and global data privacy laws. 5 Version: 3.1.1 55 Version: 3.1.16 6 6 Author: Hu-manity.co 7 7 Author URI: https://hu-manity.co/ … … 245 245 'activation_datetime' => 0 246 246 ], 247 'version' => '3.1.1 5'247 'version' => '3.1.16' 248 248 ]; 249 249 -
cookie-notice/tags/3.1.16/includes/settings.php
r3731548 r3744556 2453 2453 /** 2454 2454 * Point the WordPress privacy policy page at the banner's policy page, when synced. 2455 * With no page chosen (id 0) the site's existing privacy page is kept, never cleared. 2455 2456 * 2456 2457 * @param array $options Full (merged) options … … 2458 2459 */ 2459 2460 public function sync_privacy_policy_page( $options ) { 2460 if ( $options['see_more_opt']['link_type'] === 'page' && $options['see_more_opt']['sync'] )2461 if ( $options['see_more_opt']['link_type'] === 'page' && $options['see_more_opt']['sync'] && (int) $options['see_more_opt']['id'] > 0 ) 2461 2462 update_option( 'wp_page_for_privacy_policy', $options['see_more_opt']['id'] ); 2462 2463 } … … 2471 2472 if ( $options['see_more'] && $options['link_position'] === 'message' && strpos( $options['message_text'], '[cookies_policy_link' ) === false ) 2472 2473 $options['message_text'] .= ' [cookies_policy_link]'; 2474 // Link position "banner": drop a bare trailing [cookies_policy_link] (left from "message" position; one the admin typed there is dropped too). Mid-message shortcodes and ones with attributes stay. 2475 elseif ( $options['see_more'] && $options['link_position'] === 'banner' ) 2476 $options['message_text'] = rtrim( preg_replace( '/ \[cookies_policy_link\]\s*$/', '', $options['message_text'] ) ); 2473 2477 2474 2478 return $options; -
cookie-notice/tags/3.1.16/js/front.js
r3404286 r3744556 409 409 var cookieButtons = document.getElementsByClassName( 'cn-set-cookie' ), 410 410 revokeButtons = document.getElementsByClassName( 'cn-revoke-cookie' ), 411 linkButton = document.getElementById( 'cn-more-info' ),411 linkButtons = this.noticeContainer.querySelectorAll( '.cn-more-info, .cn-privacy-policy-link' ), 412 412 closeButton = document.getElementById( 'cn-close-notice' ); 413 413 … … 456 456 } 457 457 458 // handle link button 459 if ( linkButton !== null ) { 460 linkButton.addEventListener( 'click', function ( e ) { 461 var linkUrl = this.dataset.linkUrl || this.getAttribute( 'href' ); 462 var linkTarget = this.dataset.linkTarget || this.getAttribute( 'target' ) || '_self'; 463 464 // only intercept when we have a destination 465 if ( ! linkUrl ) 466 return; 467 468 e.preventDefault(); 469 // Chrome double click event fix 470 e.stopPropagation(); 471 472 window.open( linkUrl, linkTarget ); 473 } ); 474 } 458 // handle link button 459 // the message shortcode link and the banner button can both be present 460 for ( var j = 0; j < linkButtons.length; j++ ) { 461 linkButtons[j].addEventListener( 'click', function ( e ) { 462 var linkUrl = this.dataset.linkUrl || this.getAttribute( 'href' ); 463 var linkTarget = this.dataset.linkTarget || this.getAttribute( 'target' ) || '_self'; 464 465 // only intercept when we have a destination 466 if ( ! linkUrl ) 467 return; 468 469 e.preventDefault(); 470 // Chrome double click event fix 471 e.stopPropagation(); 472 473 window.open( linkUrl, linkTarget ); 474 } ); 475 } 475 476 476 477 // handle close button -
cookie-notice/tags/3.1.16/js/front.min.js
r3458232 r3744556 1 !function(){if("function"==typeof window.CustomEvent)return!1;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}e.prototype=window.Event.prototype,window.CustomEvent=e}(),function(){var e=function(e){return new RegExp("(^| )"+e+"( |$)")},t=function(e,t,n){for(var i=0;i<e.length;i++)t.call(n,e[i])};function n(e){this.element=e}n.prototype={add:function(){t(arguments,function(e){this.contains(e)||(this.element.className+=this.element.className.length>0?" "+e:e)},this)},remove:function(){t(arguments,function(t){this.element.className=this.element.className.replace(e(t),"")},this)},toggle:function(e){return this.contains(e)?(this.remove(e),!1):(this.add(e),!0)},contains:function(t){return e(t).test(this.element.className)},replace:function(e,t){this.remove(e),this.add(t)}},"classList"in Element.prototype||Object.defineProperty(Element.prototype,"classList",{get:function(){return new n(this)}}),window.DOMTokenList&&null==DOMTokenList.prototype.replace&&(DOMTokenList.prototype.replace=n.prototype.replace)}(),function(e,t){var n=new function(){this.cookiesAccepted=null,this.noticeContainer=null,this.setStatus=function(n){var i=this,o="",s="",c=new Date,a=new Date;cnArgs.onScroll&&e.removeEventListener("scroll",this.handleScroll),"accept"===n?(n="true",a.setTime(parseInt(c.getTime())+1e3*parseInt(cnArgs.cookieTime))):(n="false",a.setTime(parseInt(c.getTime())+1e3*parseInt(cnArgs.cookieTimeRejected))),cnArgs.globalCookie&&(o=this.getDomain(t.location.hostname)),"localhost"===t.location.hostname&&(s=t.location.pathname.split("/")[1]);var r="";"https:"===t.location.protocol&&(r=";secure"),t.cookie=cnArgs.cookieName+"="+n+";expires="+a.toUTCString()+";path=/"+s+";domain="+o+r,this.cookiesAccepted="true"===n;var d=new CustomEvent("setCookieNotice",{detail:{value:n,time:c,expires:a,data:cnArgs}});if(t.dispatchEvent(d),this.setBodyClass(["cookies-set","true"===n?"cookies-accepted":"cookies-refused"]),this.hideCookieNotice(),"automatic"===cnArgs.revokeCookiesOpt&&(this.noticeContainer.addEventListener("animationend",function e(){i.noticeContainer.removeEventListener("animationend",e),i.showRevokeNotice()}),this.noticeContainer.addEventListener("webkitAnimationEnd",function e(){i.noticeContainer.removeEventListener("webkitAnimationEnd",e),i.showRevokeNotice()})),cnArgs.redirection&&("true"===n&&null===this.cookiesAccepted||n!==this.cookiesAccepted&&null!==this.cookiesAccepted)){var l=e.location.protocol+"//",h=e.location.host+"/"+e.location.pathname;cnArgs.cache?(l=l+h.replace("//","/")+(""===e.location.search?"?":e.location.search+"&")+"cn-reloaded=1"+e.location.hash,e.location.href=l):(l=l+h.replace("//","/")+e.location.search+e.location.hash,e.location.reload(!0))}else;},this.getDomain=function(e){new RegExp(/https?:\/\//).test(e)||(e="http://"+e);var t=new URL(e).hostname.split(".");return t.slice(0).slice(-(4===t.length?3:2)).join(".")},this.getStatus=function(e){var n=("; "+t.cookie).split("; cookie_notice_accepted=");if(2===n.length){var i=n.pop().split(";").shift();return e?"true"===i:i}return null},this.showCookieNotice=function(){var e=this,n=new CustomEvent("showCookieNotice",{detail:{data:cnArgs}});t.dispatchEvent(n),this.noticeContainer.classList.remove("cookie-notice-hidden"),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.add("cookie-notice-visible"),this.noticeContainer.addEventListener("animationend",function t(){e.noticeContainer.removeEventListener("animationend",t),e.noticeContainer.classList.remove("cn-animated")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function t(){e.noticeContainer.removeEventListener("webkitAnimationEnd",t),e.noticeContainer.classList.remove("cn-animated")})},this.hideCookieNotice=function(){var e=this,n=new CustomEvent("hideCookieNotice",{detail:{data:cnArgs}});t.dispatchEvent(n),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.remove("cookie-notice-visible"),this.noticeContainer.addEventListener("animationend",function t(){e.noticeContainer.removeEventListener("animationend",t),e.noticeContainer.classList.remove("cn-animated"),e.noticeContainer.classList.add("cookie-notice-hidden")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function t(){e.noticeContainer.removeEventListener("webkitAnimationEnd",t),e.noticeContainer.classList.remove("cn-animated"),e.noticeContainer.classList.add("cookie-notice-hidden")})},this.showRevokeNotice=function(){var e=this,n=new CustomEvent("showRevokeNotice",{detail:{data:cnArgs}});t.dispatchEvent(n),this.noticeContainer.classList.remove("cookie-revoke-hidden"),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.add("cookie-revoke-visible"),this.noticeContainer.addEventListener("animationend",function t(){e.noticeContainer.removeEventListener("animationend",t),e.noticeContainer.classList.remove("cn-animated")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function t(){e.noticeContainer.removeEventListener("webkitAnimationEnd",t),e.noticeContainer.classList.remove("cn-animated")})},this.hideRevokeNotice=function(){var e=this,n=new CustomEvent("hideRevokeNotice",{detail:{data:cnArgs}});t.dispatchEvent(n),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.remove("cookie-revoke-visible"),this.noticeContainer.addEventListener("animationend",function t(){e.noticeContainer.removeEventListener("animationend",t),e.noticeContainer.classList.remove("cn-animated"),e.noticeContainer.classList.add("cookie-revoke-hidden")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function t(){e.noticeContainer.removeEventListener("webkitAnimationEnd",t),e.noticeContainer.classList.remove("cn-animated"),e.noticeContainer.classList.add("cookie-revoke-hidden")})},this.setBodyClass=function(e){t.body.classList.remove("cookies-revoke"),t.body.classList.remove("cookies-accepted"),t.body.classList.remove("cookies-refused"),t.body.classList.remove("cookies-set"),t.body.classList.remove("cookies-not-set");for(var n=0;n<e.length;n++)t.body.classList.add(e[n])},this.handleScroll=function(){(e.pageYOffset||(t.documentElement||t.body.parentNode||t.body).scrollTop)>parseInt(cnArgs.onScrollOffset)&&this.setStatus("accept")},this.getClosest=function(e,n){for(Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1});e&&e!==t;e=e.parentNode)if(e.matches(n))return e;return null},this.inIframe=function(){try{return e.self!==e.top}catch(e){return!0}},this.init=function(){var n=this;if(!0!==this.inIframe()&&(this.cookiesAccepted=this.getStatus(!0),this.noticeContainer=t.getElementById("cookie-notice"),this.noticeContainer)){var i=t.getElementsByClassName("cn-set-cookie"),o=t.getElementsByClassName("cn-revoke-cookie"),s=t.getElementById("cn-more-info"),c=t.getElementById("cn-close-notice");this.noticeContainer.classList.add("cn-effect-"+cnArgs.hideEffect),null===this.cookiesAccepted?(cnArgs.onScroll&&e.addEventListener("scroll",function(e){n.handleScroll()}),cnArgs.onClick&&e.addEventListener("click",function(e){null===n.getClosest(e.target,"#cookie-notice")&&n.setStatus("accept")},!0),this.setBodyClass(["cookies-not-set"]),this.showCookieNotice()):(this.setBodyClass(["cookies-set",!0===this.cookiesAccepted?"cookies-accepted":"cookies-refused"]),cnArgs.revokeCookies&&"automatic"===cnArgs.revokeCookiesOpt&&this.showRevokeNotice());for(var a=0;a<i.length;a++)i[a].addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),n.setStatus(this.dataset.cookieSet)});null!==s&&s.addEventListener("click",function(t){var n=this.dataset.linkUrl||this.getAttribute("href"),i=this.dataset.linkTarget||this.getAttribute("target")||"_self";n&&(t.preventDefault(),t.stopPropagation(),e.open(n,i))}),null!==c&&(c.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key&&"Spacebar"!==e.key&&13!==e.keyCode&&32!==e.keyCode||(e.preventDefault(),e.stopPropagation(),n.setStatus("reject"))}),c.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),n.setStatus("reject")}));for(a=0;a<o.length;a++)o[a].addEventListener("click",function(e){e.preventDefault(),n.noticeContainer.classList.contains("cookie-revoke-visible")?(n.hideRevokeNotice(),n.noticeContainer.addEventListener("animationend",function e(){n.noticeContainer.removeEventListener("animationend",e),n.showCookieNotice()}),n.noticeContainer.addEventListener("webkitAnimationEnd",function e(){n.noticeContainer.removeEventListener("webkitAnimationEnd",e),n.showCookieNotice()})):n.noticeContainer.classList.contains("cookie-notice-hidden")&&n.noticeContainer.classList.contains("cookie-revoke-hidden")&&n.showCookieNotice()})}}};e.addEventListener("load",function(){n.init()},!1)}(window,document);1 !function(){if("function"==typeof window.CustomEvent)return!1;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}e.prototype=window.Event.prototype,window.CustomEvent=e}(),function(){var e=function(e){return new RegExp("(^| )"+e+"( |$)")},t=function(e,t,n){for(var i=0;i<e.length;i++)t.call(n,e[i])};function n(e){this.element=e}n.prototype={add:function(){t(arguments,function(e){this.contains(e)||(this.element.className+=this.element.className.length>0?" "+e:e)},this)},remove:function(){t(arguments,function(t){this.element.className=this.element.className.replace(e(t),"")},this)},toggle:function(e){return this.contains(e)?(this.remove(e),!1):(this.add(e),!0)},contains:function(t){return e(t).test(this.element.className)},replace:function(e,t){this.remove(e),this.add(t)}},"classList"in Element.prototype||Object.defineProperty(Element.prototype,"classList",{get:function(){return new n(this)}}),window.DOMTokenList&&null==DOMTokenList.prototype.replace&&(DOMTokenList.prototype.replace=n.prototype.replace)}(),function(e,t){var n=new function(){this.cookiesAccepted=null,this.noticeContainer=null,this.setStatus=function(n){var i=this,o="",s="",c=new Date,a=new Date;cnArgs.onScroll&&e.removeEventListener("scroll",this.handleScroll),"accept"===n?(n="true",a.setTime(parseInt(c.getTime())+1e3*parseInt(cnArgs.cookieTime))):(n="false",a.setTime(parseInt(c.getTime())+1e3*parseInt(cnArgs.cookieTimeRejected))),cnArgs.globalCookie&&(o=this.getDomain(t.location.hostname)),"localhost"===t.location.hostname&&(s=t.location.pathname.split("/")[1]);var r="";"https:"===t.location.protocol&&(r=";secure"),t.cookie=cnArgs.cookieName+"="+n+";expires="+a.toUTCString()+";path=/"+s+";domain="+o+r,this.cookiesAccepted="true"===n;var l=new CustomEvent("setCookieNotice",{detail:{value:n,time:c,expires:a,data:cnArgs}});if(t.dispatchEvent(l),this.setBodyClass(["cookies-set","true"===n?"cookies-accepted":"cookies-refused"]),this.hideCookieNotice(),"automatic"===cnArgs.revokeCookiesOpt&&(this.noticeContainer.addEventListener("animationend",function e(){i.noticeContainer.removeEventListener("animationend",e),i.showRevokeNotice()}),this.noticeContainer.addEventListener("webkitAnimationEnd",function e(){i.noticeContainer.removeEventListener("webkitAnimationEnd",e),i.showRevokeNotice()})),cnArgs.redirection&&("true"===n&&null===this.cookiesAccepted||n!==this.cookiesAccepted&&null!==this.cookiesAccepted)){var d=e.location.protocol+"//",h=e.location.host+"/"+e.location.pathname;cnArgs.cache?(d=d+h.replace("//","/")+(""===e.location.search?"?":e.location.search+"&")+"cn-reloaded=1"+e.location.hash,e.location.href=d):(d=d+h.replace("//","/")+e.location.search+e.location.hash,e.location.reload(!0))}else;},this.getDomain=function(e){new RegExp(/https?:\/\//).test(e)||(e="http://"+e);var t=new URL(e).hostname.split(".");return t.slice(0).slice(-(4===t.length?3:2)).join(".")},this.getStatus=function(e){var n=("; "+t.cookie).split("; cookie_notice_accepted=");if(2===n.length){var i=n.pop().split(";").shift();return e?"true"===i:i}return null},this.showCookieNotice=function(){var e=this,n=new CustomEvent("showCookieNotice",{detail:{data:cnArgs}});t.dispatchEvent(n),this.noticeContainer.classList.remove("cookie-notice-hidden"),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.add("cookie-notice-visible"),this.noticeContainer.addEventListener("animationend",function t(){e.noticeContainer.removeEventListener("animationend",t),e.noticeContainer.classList.remove("cn-animated")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function t(){e.noticeContainer.removeEventListener("webkitAnimationEnd",t),e.noticeContainer.classList.remove("cn-animated")})},this.hideCookieNotice=function(){var e=this,n=new CustomEvent("hideCookieNotice",{detail:{data:cnArgs}});t.dispatchEvent(n),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.remove("cookie-notice-visible"),this.noticeContainer.addEventListener("animationend",function t(){e.noticeContainer.removeEventListener("animationend",t),e.noticeContainer.classList.remove("cn-animated"),e.noticeContainer.classList.add("cookie-notice-hidden")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function t(){e.noticeContainer.removeEventListener("webkitAnimationEnd",t),e.noticeContainer.classList.remove("cn-animated"),e.noticeContainer.classList.add("cookie-notice-hidden")})},this.showRevokeNotice=function(){var e=this,n=new CustomEvent("showRevokeNotice",{detail:{data:cnArgs}});t.dispatchEvent(n),this.noticeContainer.classList.remove("cookie-revoke-hidden"),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.add("cookie-revoke-visible"),this.noticeContainer.addEventListener("animationend",function t(){e.noticeContainer.removeEventListener("animationend",t),e.noticeContainer.classList.remove("cn-animated")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function t(){e.noticeContainer.removeEventListener("webkitAnimationEnd",t),e.noticeContainer.classList.remove("cn-animated")})},this.hideRevokeNotice=function(){var e=this,n=new CustomEvent("hideRevokeNotice",{detail:{data:cnArgs}});t.dispatchEvent(n),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.remove("cookie-revoke-visible"),this.noticeContainer.addEventListener("animationend",function t(){e.noticeContainer.removeEventListener("animationend",t),e.noticeContainer.classList.remove("cn-animated"),e.noticeContainer.classList.add("cookie-revoke-hidden")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function t(){e.noticeContainer.removeEventListener("webkitAnimationEnd",t),e.noticeContainer.classList.remove("cn-animated"),e.noticeContainer.classList.add("cookie-revoke-hidden")})},this.setBodyClass=function(e){t.body.classList.remove("cookies-revoke"),t.body.classList.remove("cookies-accepted"),t.body.classList.remove("cookies-refused"),t.body.classList.remove("cookies-set"),t.body.classList.remove("cookies-not-set");for(var n=0;n<e.length;n++)t.body.classList.add(e[n])},this.handleScroll=function(){(e.pageYOffset||(t.documentElement||t.body.parentNode||t.body).scrollTop)>parseInt(cnArgs.onScrollOffset)&&this.setStatus("accept")},this.getClosest=function(e,n){for(Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1});e&&e!==t;e=e.parentNode)if(e.matches(n))return e;return null},this.inIframe=function(){try{return e.self!==e.top}catch(e){return!0}},this.init=function(){var n=this;if(!0!==this.inIframe()&&(this.cookiesAccepted=this.getStatus(!0),this.noticeContainer=t.getElementById("cookie-notice"),this.noticeContainer)){var i=t.getElementsByClassName("cn-set-cookie"),o=t.getElementsByClassName("cn-revoke-cookie"),s=this.noticeContainer.querySelectorAll(".cn-more-info, .cn-privacy-policy-link"),c=t.getElementById("cn-close-notice");this.noticeContainer.classList.add("cn-effect-"+cnArgs.hideEffect),null===this.cookiesAccepted?(cnArgs.onScroll&&e.addEventListener("scroll",function(e){n.handleScroll()}),cnArgs.onClick&&e.addEventListener("click",function(e){null===n.getClosest(e.target,"#cookie-notice")&&n.setStatus("accept")},!0),this.setBodyClass(["cookies-not-set"]),this.showCookieNotice()):(this.setBodyClass(["cookies-set",!0===this.cookiesAccepted?"cookies-accepted":"cookies-refused"]),cnArgs.revokeCookies&&"automatic"===cnArgs.revokeCookiesOpt&&this.showRevokeNotice());for(var a=0;a<i.length;a++)i[a].addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),n.setStatus(this.dataset.cookieSet)});for(var r=0;r<s.length;r++)s[r].addEventListener("click",function(t){var n=this.dataset.linkUrl||this.getAttribute("href"),i=this.dataset.linkTarget||this.getAttribute("target")||"_self";n&&(t.preventDefault(),t.stopPropagation(),e.open(n,i))});null!==c&&(c.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key&&"Spacebar"!==e.key&&13!==e.keyCode&&32!==e.keyCode||(e.preventDefault(),e.stopPropagation(),n.setStatus("reject"))}),c.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),n.setStatus("reject")}));for(a=0;a<o.length;a++)o[a].addEventListener("click",function(e){e.preventDefault(),n.noticeContainer.classList.contains("cookie-revoke-visible")?(n.hideRevokeNotice(),n.noticeContainer.addEventListener("animationend",function e(){n.noticeContainer.removeEventListener("animationend",e),n.showCookieNotice()}),n.noticeContainer.addEventListener("webkitAnimationEnd",function e(){n.noticeContainer.removeEventListener("webkitAnimationEnd",e),n.showCookieNotice()})):n.noticeContainer.classList.contains("cookie-notice-hidden")&&n.noticeContainer.classList.contains("cookie-revoke-hidden")&&n.showCookieNotice()})}}};e.addEventListener("load",function(){n.init()},!1)}(window,document); -
cookie-notice/tags/3.1.16/readme.txt
r3736417 r3744556 4 4 Requires at least: 4.9.6 5 5 Requires PHP: 7.4 6 Tested up to: 7. 07 Stable tag: 3.1.1 56 Tested up to: 7.1 7 Stable tag: 3.1.16 8 8 License: MIT License 9 9 License URI: http://opensource.org/licenses/MIT … … 170 170 171 171 == Changelog == 172 173 = 3.1.16 = 174 * Improvement: Simpler, more reliable privacy policy link. On connected sites, choose your policy page and turn on Sync to use it on your banner; set the link text in the Admin Portal. In Banner Only mode, the policy button always opens your policy. 175 * Tested up to WordPress 7.1. 172 176 173 177 = 3.1.15 = -
cookie-notice/trunk/assets/react-admin/cn-admin-react.css
r3734159 r3744556 1 @charset "UTF-8";._container_nva6m_2{display:flex;gap:16px;align-items:flex-start}._grid_nva6m_8{display:grid;grid-template-columns:1fr 1fr;gap:10px;flex:0 0 auto;width:280px}._card_nva6m_16{border:2px solid var(--cn-border, #e2e8f0);border-radius:10px;padding:12px 10px 10px;cursor:pointer;transition:border-color .15s,box-shadow .15s,background .15s;text-align:center;position:relative;background:#fff;-webkit-user-select:none;user-select:none}._card_nva6m_16:hover{border-color:#a0c4c0;box-shadow:0 2px 8px #20c19e1a}._cardSelected_nva6m_32{border-color:var(--cn-primary, #20c19e);background:#20c19e0a;box-shadow:0 0 0 3px #20c19e1f}._geoArt_nva6m_38{width:80px;height:52px;margin:0 auto 8px;display:flex;align-items:center;justify-content:center}._lawName_nva6m_47{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading, #1a1a2e);line-height:1.2}._jurisdiction_nva6m_54{font-size:var(--cn-text-sm);color:var(--cn-muted, #718096);margin-top:2px}._hiddenCheckbox_nva6m_60{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}._checkmark_nva6m_72{position:absolute;top:6px;right:6px;width:16px;height:16px;border-radius:50%;background:var(--cn-primary, #20c19e);display:flex;align-items:center;justify-content:center;font-size:var(--cn-text-xs);color:#fff;font-weight:700}._autoBadge_nva6m_88{position:absolute;top:-8px;left:50%;transform:translate(-50%);background:var(--cn-primary, #20c19e);color:#fff;font-size:var(--cn-text-xs);font-weight:600;padding:2px 6px;border-radius:10px;white-space:nowrap}._detail_nva6m_102{flex:1;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:18px 20px;animation:_slideIn_nva6m_1 .2s ease;min-height:240px}._detailHeader_nva6m_112{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:14px}._detailTitle_nva6m_119{font-size:var(--cn-text-lg);font-weight:700;color:var(--cn-heading, #1a1a2e)}._detailJurisdiction_nva6m_125{font-size:var(--cn-text-sm);color:var(--cn-muted, #718096);margin-top:2px}._detailClose_nva6m_131{background:none;border:none;cursor:pointer;font-size:var(--cn-text-lg);color:#718096;line-height:1;padding:0}._detailClose_nva6m_131:hover{color:#1a1a2e}._detailSection_nva6m_144{margin-bottom:14px}._detailSectionLabel_nva6m_148{font-size:var(--cn-text-sm);font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--cn-primary, #20c19e);margin-bottom:6px}._detailOverview_nva6m_157{font-size:var(--cn-text-sm);color:#4a5568;line-height:1.6}._detailList_nva6m_163{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:4px}._detailListItem_nva6m_172{font-size:var(--cn-text-sm);color:#4a5568;display:flex;gap:6px;align-items:flex-start;line-height:1.4}._detailListItem_nva6m_172:before{content:"✓";color:var(--cn-primary, #20c19e);font-weight:700;flex-shrink:0;margin-top:1px}._detailEnforcement_nva6m_188{font-size:var(--cn-text-sm);color:#a0aec0;border-top:1px solid #e2e8f0;padding-top:10px;margin-top:4px;line-height:1.5}._detailEmpty_nva6m_197{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;min-height:200px;text-align:center;padding:32px}._detailEmptyArrow_nva6m_208{font-size:var(--cn-text-xl);color:#20c19e;opacity:.4;margin-bottom:12px}._detailEmptyText_nva6m_215{font-size:var(--cn-text-md);color:#9ca3af;line-height:1.6;max-width:240px}._detailDnsHelp_nva6m_222{font-size:var(--cn-text-base);color:#6b7280;margin-bottom:8px}._dnsCallout_nva6m_228{display:flex;gap:10px;background:#fffbeb;border:1px solid #f59e0b;border-radius:8px;padding:12px;margin-top:10px}._dnsCalloutIcon_nva6m_238{flex:0 0 auto;font-size:var(--cn-text-lg);line-height:1}._dnsCalloutBody_nva6m_244{flex:1 1 auto;min-width:0}._dnsCalloutTitle_nva6m_249{font-size:var(--cn-text-base);font-weight:700;color:#92400e;margin-bottom:4px}._dnsCalloutHelp_nva6m_256{font-size:var(--cn-text-sm);color:#92400e;margin:0 0 8px;line-height:1.4}._dnsInput_nva6m_263{width:100%;padding:8px 10px;border:1px solid #e0e4e8;border-radius:6px;font-size:var(--cn-text-base);box-sizing:border-box}._dnsInput_nva6m_263:focus{outline:none;border-color:var(--cn-primary, #20c19e);box-shadow:0 0 0 2px #20c19e26}@keyframes _slideIn_nva6m_1{0%{opacity:0;transform:translate(8px)}to{opacity:1;transform:translate(0)}}._panel_t4wb2_1{background:#fff;border:1px solid #dcdcde;border-radius:8px;margin-bottom:20px;overflow:hidden}._panelHeader_t4wb2_9{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #dcdcde;background:#f6f7f7}._panelTitle_t4wb2_18{font-size:var(--cn-text-md);font-weight:600;color:#1d2327;margin:0}._closeBtn_t4wb2_25{background:none;border:none;cursor:pointer;font-size:var(--cn-text-xl);color:#787c82;padding:0 4px;line-height:1}._closeBtn_t4wb2_25:hover{color:#1d2327}._footer_t4wb2_38{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:16px 20px;border-top:1px solid #dcdcde;background:#f6f7f7}._layout_t4wb2_48{display:flex;gap:16px;align-items:flex-start;min-height:380px}._remoteChangedNotice_t4wb2_55{margin-bottom:16px;padding:10px 14px;border:1px solid #f0c33c;border-left-width:4px;border-radius:4px;background:#fcf9e8;color:#1d2327;font-size:var(--cn-text-sm);line-height:1.5}._modeList_t4wb2_67{flex:0 0 220px;width:220px;display:flex;flex-direction:column;gap:12px}._modeSection_t4wb2_75{display:flex;flex-direction:column;gap:6px}._modeSectionLabel_t4wb2_81{font-size:var(--cn-text-sm);font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#787c82;padding:0 2px;margin-bottom:2px}._modeCard_t4wb2_91{width:100%;text-align:left;background:#fff;border:2px solid #e2e8f0;border-radius:10px;padding:12px 14px;cursor:pointer;transition:border-color .15s,box-shadow .15s,background .15s}._modeCard_t4wb2_91:hover{border-color:#a0c4c0;box-shadow:0 2px 8px #20c19e1a}._modeCardActive_t4wb2_106{border-color:#20c19e;background:#20c19e0a;box-shadow:0 0 0 3px #20c19e1f}._modeCardLocked_t4wb2_112{opacity:.7;border-style:dashed;position:relative}._modeCardProOverlay_t4wb2_118{display:flex;align-items:center;gap:4px;margin-top:6px;padding:4px 8px;background:#f59e0b14;border-radius:4px;cursor:pointer;transition:background .15s ease}._modeCardProOverlay_t4wb2_118:hover{background:#f59e0b2e}._lockIconLarge_t4wb2_133{font-size:var(--cn-text-base)}._modeCardProLabel_t4wb2_137{font-size:var(--cn-text-sm);font-weight:600;color:#92400e}._modeCardTop_t4wb2_143{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}._modeCardName_t4wb2_150{font-size:var(--cn-text-base);font-weight:600;color:#1d2327}._modeCardDesc_t4wb2_156{font-size:var(--cn-text-sm);color:#787c82;line-height:1.4}._statusDot_t4wb2_162{display:inline-block;width:8px;height:8px;border-radius:50%;flex-shrink:0}._statusDotOn_t4wb2_170{background:#20c19e}._statusDotOff_t4wb2_174{background:#c3c4c7}._detailCol_t4wb2_178{flex:1;min-width:0}._detail_t4wb2_178{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:18px 20px;animation:_slideIn_t4wb2_1 .18s ease}._detailHeader_t4wb2_191{display:flex;align-items:center;gap:8px;margin-bottom:10px}._detailTitle_t4wb2_198{font-size:var(--cn-text-md);font-weight:700;color:#1d2327}._detailDesc_t4wb2_204{font-size:var(--cn-text-base);color:#4a5568;line-height:1.6;margin:0 0 14px}._detailFooter_t4wb2_211{display:flex;justify-content:flex-end;padding-top:14px;margin-top:14px;border-top:1px solid #e2e8f0}._enableToggle_t4wb2_219{display:inline-flex;align-items:center;gap:10px;cursor:pointer;margin-bottom:16px}._enableToggleInput_t4wb2_227{position:absolute;opacity:0;width:0;height:0}._enableToggleTrack_t4wb2_234{position:relative;display:inline-block;width:36px;height:20px;border-radius:10px;background:#c3c4c7;transition:background .2s;flex-shrink:0}._enableToggleInput_t4wb2_227:checked+._enableToggleTrack_t4wb2_234{background:#20c19e}._enableToggleThumb_t4wb2_248{position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #0003;transition:transform .2s}._enableToggleInput_t4wb2_227:checked~._enableToggleTrack_t4wb2_234 ._enableToggleThumb_t4wb2_248{transform:translate(16px)}._enableToggleLabel_t4wb2_263{font-size:var(--cn-text-base);font-weight:600;color:#1d2327}._signalConfig_t4wb2_269{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:14px 16px;margin-bottom:8px}._signalConfigTitle_t4wb2_277{font-size:var(--cn-text-sm);font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#20c19e;margin-bottom:10px}._groupRow_t4wb2_286{display:flex;align-items:center;justify-content:space-between;padding:6px 0}._groupLabel_t4wb2_293{font-size:var(--cn-text-base);font-weight:500;color:#1d2327}._groupSelect_t4wb2_299{font-size:var(--cn-text-sm);padding:5px 8px;border:1px solid #8c8f94;border-radius:4px;background:#fff;min-width:170px}._groupSelect_t4wb2_299:disabled{opacity:.5;cursor:not-allowed}._groupSelect_t4wb2_299:focus{outline:none;border-color:#20c19e;box-shadow:0 0 0 2px #20c19e26}._groupHint_t4wb2_317{font-size:var(--cn-text-sm);color:#787c82;margin:2px 0 10px;line-height:1.4}._familyTitle_t4wb2_324{font-size:var(--cn-text-sm);font-weight:600;color:#1d2327;margin-top:14px}._familyTitle_t4wb2_324:first-of-type{margin-top:0}._advancedGrid_t4wb2_334{display:flex;flex-direction:column;gap:6px;margin-top:6px;padding-top:8px;border-top:1px solid #f0f0f1}._advancedRow_t4wb2_343{display:flex;align-items:center;justify-content:space-between;padding:4px 0}._advancedLabel_t4wb2_350{font-size:var(--cn-text-sm);color:#4a5568}._subToggles_t4wb2_355{margin-top:10px;padding-top:10px;border-top:1px solid #f0f0f1}._subToggleTitle_t4wb2_361{font-size:var(--cn-text-sm);font-weight:600;color:#787c82;text-transform:uppercase;letter-spacing:.04em;margin-bottom:6px}._subToggleRow_t4wb2_370{display:flex;align-items:center;gap:8px;font-size:var(--cn-text-base);color:#1d2327;cursor:pointer;padding:4px 0}._proGate_t4wb2_380{display:flex;align-items:center;justify-content:space-between;background:#f0faf8;border:1px solid #c3e8e0;border-radius:8px;padding:12px 14px;font-size:var(--cn-text-base);color:#1d2327;gap:12px;margin:8px 0}._proGateLink_t4wb2_394{white-space:nowrap;font-weight:600;color:#20c19e;text-decoration:none}._proGateLink_t4wb2_394:hover{text-decoration:underline}@keyframes _slideIn_t4wb2_1{0%{opacity:0;transform:translate(8px)}to{opacity:1;transform:translate(0)}}._legacyNotice_t4wb2_414{display:flex;flex-direction:column;gap:4px;background:#fdf6e7;border:1px solid #f0d9a0;border-left:3px solid #eab308;border-radius:8px;padding:12px 14px;font-size:var(--cn-text-base);color:#1d2327;margin:8px 0}._legacyNotice_t4wb2_414 strong{font-weight:600}._legacyNotice_t4wb2_414 em{font-style:normal;font-weight:600}._thumb_1g9ys_1{width:160px;height:90px;border-radius:4px;overflow:hidden;border:1px solid var(--cn-color-border);background:#f8f9fa;position:relative;flex-shrink:0}._chrome_1g9ys_12{height:10px;background:#e5e7eb;border-bottom:1px solid #d1d5db;display:flex;align-items:center;padding:0 4px;gap:2px;flex-shrink:0}._dot_1g9ys_23{width:4px;height:4px;border-radius:50%;background:#9ca3af;flex-shrink:0}._urlBar_1g9ys_31{flex:1;height:4px;border-radius:2px;background:#d1d5db;margin-left:3px}._page_1g9ys_39{height:80px;position:relative;overflow:hidden}._lines_1g9ys_45{padding:6px 8px;display:flex;flex-direction:column;gap:3px}._lines_1g9ys_45>div{height:3px;border-radius:2px;background:#d1d5db}._banner_1g9ys_57{position:absolute;display:flex;flex-direction:column;gap:2px;padding:4px 5px 3px;box-shadow:0 -1px 4px #0000001f;animation-fill-mode:both;animation-duration:.45s;animation-timing-function:ease}._bar-bottom_1g9ys_69{bottom:0;left:0;right:0}._bar-top_1g9ys_75{top:0;left:0;right:0}._floating_1g9ys_81{left:8px;right:8px;border-radius:4px}._fixed_1g9ys_87{left:0;right:0}._panel-left_1g9ys_92{left:2px;bottom:2px;width:38%;box-shadow:2px 0 6px #00000026}._panel-right_1g9ys_99{right:2px;bottom:2px;width:38%;box-shadow:-2px 0 6px #00000026}._panelFloating_1g9ys_106{border-radius:4px}._panelFixed_1g9ys_110{top:10px;border-radius:0}._popup_1g9ys_115{top:50%;left:50%;transform:translate(-50%) translateY(-50%);width:68%;border-radius:4px;box-shadow:0 4px 16px #0003}._bannerHeader_1g9ys_124{display:flex;align-items:center;justify-content:space-between;margin-bottom:1px}._toolbarDots_1g9ys_131{display:flex;gap:2px}._toolbarDots_1g9ys_131 span{display:block;width:3px;height:3px;border-radius:50%;background:var(--dot-color, rgba(255, 255, 255, .4))}._pills_1g9ys_143{display:flex;gap:2px;align-items:center;justify-content:center}._pill_1g9ys_143{display:flex;align-items:center;gap:1px;padding:1px 3px;border-radius:20px;border:1px solid currentColor;opacity:.85}._pillDot_1g9ys_160{width:4px;height:4px;border-radius:50%;flex-shrink:0}._saveBtn_1g9ys_167{height:6px;width:38%;margin:1px auto 0;opacity:.9}._footerLinks_1g9ys_174{display:flex;justify-content:space-between;gap:4px;margin-top:1px}._link_1g9ys_181{height:2px;width:35%;border-radius:1px;background:#ffffff59}._anim-slide-bottom_1g9ys_188{animation-name:_huPreviewSlideUp_1g9ys_1}._anim-slide-top_1g9ys_192{animation-name:_huPreviewSlideDown_1g9ys_1}._anim-slide-left_1g9ys_196{animation-name:_huPreviewSlideLeft_1g9ys_1}._anim-slide-right_1g9ys_200{animation-name:_huPreviewSlideRight_1g9ys_1}._anim-slide-center_1g9ys_204{animation-name:_huPreviewScaleIn_1g9ys_1}._anim-fade_1g9ys_208{animation-name:_huPreviewFade_1g9ys_1}@keyframes _huPreviewSlideUp_1g9ys_1{0%{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _huPreviewSlideDown_1g9ys_1{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _huPreviewSlideLeft_1g9ys_1{0%{transform:translate(-100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes _huPreviewSlideRight_1g9ys_1{0%{transform:translate(100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes _huPreviewScaleIn_1g9ys_1{0%{transform:translate(-50%) translateY(-50%) scale(.85);opacity:0}to{transform:translate(-50%) translateY(-50%) scale(1);opacity:1}}@keyframes _huPreviewFade_1g9ys_1{0%{opacity:0}to{opacity:1}}._root_o4a2z_1{position:relative;flex-shrink:0}._scaler_o4a2z_6{width:160px;height:90px;transform-origin:left top}._overlay_o4a2z_12{position:absolute;top:0;right:0;bottom:0;left:0;background:#11182747}._banner_o4a2z_18{position:absolute;display:flex;flex-direction:column;gap:3px;padding:5px 6px;background-color:var(--thumb-bg);box-shadow:0 1px 6px #0000002e}._card_o4a2z_28{left:8px;right:8px;border-radius:6px}._card_o4a2z_28._bottom_o4a2z_33{bottom:4px}._card_o4a2z_28._top_o4a2z_36{top:4px}._edge_o4a2z_40{left:0;right:0;border-radius:0}._edge_o4a2z_40._bottom_o4a2z_33{bottom:0}._edge_o4a2z_40._top_o4a2z_36{top:0}._bar_o4a2z_52{left:0;right:0;flex-direction:row;align-items:center;gap:4px;padding:4px 6px}._bar_o4a2z_52._bottom_o4a2z_33{bottom:0}._bar_o4a2z_52._top_o4a2z_36{top:0}._bar_o4a2z_52 ._heading_o4a2z_66{flex:1;width:auto}._narrow_o4a2z_71{bottom:4px;width:46%;border-radius:6px}._left_o4a2z_77{left:4px}._right_o4a2z_81{right:4px}._modal_o4a2z_85{top:50%;left:50%;width:64%;transform:translate(-50%,-50%);border-radius:6px}._heading_o4a2z_66{display:block;height:4px;width:46%;border-radius:2px;background-color:var(--thumb-ink)}._desc_o4a2z_101{display:block;height:3px;width:92%;border-radius:2px;background-color:var(--thumb-faint)}._descShort_o4a2z_109{width:64%}._row_o4a2z_113{display:flex;flex-wrap:wrap;align-items:center;gap:3px;margin-top:1px}._pill_o4a2z_121{display:block;flex-shrink:0;width:15px;height:7px;border-radius:4px;border:1px solid transparent;border-color:var(--thumb-accent)}._link_o4a2z_131{display:block;flex-shrink:0;width:14px;height:2px;border-radius:1px;background-color:var(--thumb-ink)}.cn-section-label{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.6px}.cn-banner-selector{margin-bottom:28px}.cn-banner-selector__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.cn-banner-selector__portal-link{font-size:var(--cn-text-sm);color:var(--cn-primary);font-weight:600;text-decoration:none}.cn-banner-selector__portal-link:hover{text-decoration:underline}.cn-banner-selector__grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.cn-banner-selector__card{background:var(--cn-surface);border:2px solid var(--cn-border);border-radius:10px;padding:16px 12px 12px;min-height:200px;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.cn-banner-selector__card:hover{transform:translateY(-3px);box-shadow:0 6px 20px #00000017;border-color:#c5ccd4}.cn-banner-selector__card--active{border-color:var(--cn-primary);box-shadow:0 0 0 3px #20c19e26}.cn-banner-selector__card--active:hover{transform:translateY(-3px);box-shadow:0 0 0 3px #20c19e26,0 6px 20px #20c19e1f}.cn-banner-selector__thumb{width:100%;height:90px;background:#e8eaed;border-radius:6px;margin-bottom:10px;position:relative;overflow:hidden}.cn-banner-selector__thumb:before{content:"";position:absolute;top:0;left:0;right:0;height:12px;background:#d0d3d8;border-radius:6px 6px 0 0}.cn-banner-selector__thumb:after{content:"";position:absolute;top:3px;left:8px;width:6px;height:6px;background:#b8bcc4;border-radius:50%}.cn-banner-selector__pos{position:absolute;background:#2c2f35;transition:all .25s ease}.cn-banner-selector__pos.pos-top{top:12px;left:0;right:0;height:16px;width:auto;border-radius:0}.cn-banner-selector__pos.pos-bottom{bottom:0;left:0;right:0;height:18px;width:auto;border-radius:0}.cn-banner-selector__pos.pos-left{top:12px;left:0;bottom:0;width:26%;height:auto;border-radius:0;right:auto}.cn-banner-selector__pos.pos-right{top:12px;right:0;bottom:0;width:26%;height:auto;border-radius:0;left:auto}.cn-banner-selector__pos.pos-popup{top:50%;left:50%;transform:translate(-50%,-40%);width:46%;height:36px;border-radius:4px;bottom:auto;right:auto}.cn-banner-selector__grid--floating .cn-banner-selector__pos.pos-top{top:16px;left:50%;right:auto;transform:translate(-50%);width:56%;height:22px;border-radius:3px}.cn-banner-selector__grid--floating .cn-banner-selector__pos.pos-bottom{bottom:8px;left:50%;right:auto;transform:translate(-50%);width:56%;height:26px;border-radius:3px}.cn-banner-selector__grid--floating .cn-banner-selector__pos.pos-left{top:auto;bottom:6px;left:4px;width:32%;height:44px;border-radius:3px;right:auto}.cn-banner-selector__grid--floating .cn-banner-selector__pos.pos-right{top:auto;bottom:6px;right:4px;width:32%;height:44px;border-radius:3px;left:auto}.cn-banner-selector__grid--floating .cn-banner-selector__pos.pos-popup{top:50%;left:50%;transform:translate(-50%,-40%);width:46%;height:36px;border-radius:4px}.cn-banner-selector__meta{display:flex;align-items:center;justify-content:space-between;margin-bottom:3px}.cn-banner-selector__name{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading)}.cn-banner-selector__active-pill{font-size:var(--cn-text-xs);font-weight:700;padding:2px 7px;border-radius:10px;background:#e8f5e9;color:#2e7d32;text-transform:uppercase;letter-spacing:.3px}.cn-banner-selector__toggle-row{display:flex;align-items:center;gap:14px;margin-top:14px;margin-bottom:6px}.cn-banner-selector__size-label{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading)}.cn-banner-selector__size-opts{display:flex}.cn-banner-selector__size-opt{font-size:var(--cn-text-sm);font-weight:600;padding:5px 16px;cursor:pointer;border:1.5px solid var(--cn-border);background:#fff;color:var(--cn-muted);transition:all .15s;font-family:inherit}.cn-banner-selector__size-opt:first-child{border-radius:16px 0 0 16px}.cn-banner-selector__size-opt:last-child{border-radius:0 16px 16px 0;border-left:none}.cn-banner-selector__size-opt--on{background:var(--cn-primary);color:#fff;border-color:var(--cn-primary)}.cn-banner-selector__size-opt--on+.cn-banner-selector__size-opt{border-left-color:var(--cn-primary)}.cn-banner-selector__size-desc{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-top:4px;line-height:1.4}.cn-banner-design__grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.cn-banner-design__col{display:flex;flex-direction:column;gap:0}.cn-advanced-settings__grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.cn-consent-modes__title{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:10px}.cn-consent-modes__row{display:flex;align-items:center;justify-content:space-between;padding:5px 0;border-bottom:1px solid var(--cn-border);font-size:var(--cn-text-sm)}.cn-consent-modes__row:last-of-type{border-bottom:none}.cn-consent-modes__label{color:var(--cn-muted);display:flex;align-items:center;gap:5px}.cn-consent-modes__value{font-weight:700;color:var(--cn-heading)}.cn-consent-modes__value--off{color:var(--cn-muted);font-weight:400}.cn-consent-modes__note{margin-top:10px;padding-top:8px;border-top:1px solid var(--cn-border);font-size:var(--cn-text-sm)}.cn-consent-modes__note a{color:var(--cn-primary);text-decoration:none}.cn-consent-modes__note a:hover{text-decoration:underline}.cn-banner-summary{margin-bottom:12px}.cn-banner-summary__rows{display:flex;flex-direction:column;gap:4px;margin-top:6px}.cn-banner-summary__row{display:flex;gap:8px;font-size:var(--cn-text-base)}.cn-banner-summary__key{color:var(--cn-muted);font-weight:600;min-width:70px}.cn-banner-summary__key:after{content:":"}.cn-banner-summary__val{color:var(--cn-text)}.cn-banner-summary__note{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-top:8px}.cn-upsell-card{padding:2px 0 4px}.cn-upsell-card__headline{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading);margin:0 0 10px}.cn-upsell-card__features{list-style:none;margin:0 0 14px;padding:0}.cn-upsell-card__features li{font-size:var(--cn-text-sm);color:var(--cn-body);padding:4px 0 4px 18px;position:relative}.cn-upsell-card__features li:before{content:"✓";position:absolute;left:0;color:var(--cn-green, #20c19e);font-weight:700}.cn-upsell-card__cta{display:block;text-align:center;text-decoration:none}.cn-change-badge{display:inline-block;font-size:var(--cn-text-xs);font-weight:700;padding:1px 5px;border-radius:4px;text-transform:uppercase;letter-spacing:.2px;margin-right:4px}.cn-change-badge--banner{background:#20c19e1a;color:var(--cn-primary)}.cn-change-badge--regulation{background:#6179e81a;color:#6179e8}.cn-change-badge--blocking{background:#fff3e0;color:#d35400}.cn-empty-hero{text-align:center;padding:48px 24px;background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;margin-bottom:24px}.cn-empty-hero__icon{display:block;margin:0 auto 20px;width:80px;height:80px}.cn-empty-hero__heading{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);margin-bottom:10px}.cn-empty-hero__sub{font-size:var(--cn-text-md);color:var(--cn-muted);max-width:440px;margin:0 auto 24px;line-height:1.6}.cn-empty-hero__footnote{margin-top:12px;font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-blurred-teaser{position:relative;border-radius:10px;overflow:hidden;margin-bottom:24px}.cn-blurred-teaser__blur{filter:blur(4px);pointer-events:none;-webkit-user-select:none;user-select:none}.cn-blurred-teaser__overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#ffffffbf;gap:10px;padding:24px;text-align:center}.cn-blurred-teaser__overlay-icon{font-size:var(--cn-text-xl);line-height:1}.cn-blurred-teaser__overlay-label{font-size:var(--cn-text-lg);font-weight:700;color:var(--cn-heading)}.cn-blurred-teaser__overlay-sub{font-size:var(--cn-text-base);color:var(--cn-muted);max-width:380px;line-height:1.5}.cn-blurred-teaser__section{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:18px 20px;margin-bottom:16px}.cn-blurred-teaser__section:last-child{margin-bottom:0}.cn-blurred-teaser__section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.cn-blurred-teaser__section-title{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading)}.cn-blurred-teaser__section-meta{font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-blurred-teaser__table{width:100%;border-collapse:collapse;font-size:var(--cn-text-base)}.cn-blurred-teaser__table thead tr{background:#f0f2f5}.cn-blurred-teaser__table th{font-size:var(--cn-text-sm);font-weight:700;text-transform:uppercase;letter-spacing:.4px;color:var(--cn-muted);padding:8px 12px;text-align:left;border-bottom:1px solid var(--cn-border)}.cn-blurred-teaser__table td{padding:8px 12px;border-bottom:1px solid var(--cn-border);color:var(--cn-text)}.cn-blurred-teaser__table td:last-child{border-bottom:none}.cn-blurred-teaser__table tr:last-child td{border-bottom:none}.cn-blurred-teaser__timeline{display:flex;flex-direction:column;gap:12px}.cn-blurred-teaser__tl-row{display:flex;align-items:flex-start;gap:12px}.cn-blurred-teaser__tl-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0;margin-top:3px;background:var(--cn-border)}.cn-blurred-teaser__tl-dot--banner{background:var(--cn-primary)}.cn-blurred-teaser__tl-dot--setting{background:var(--cn-info, #6179e8)}.cn-blurred-teaser__tl-dot--scan{background:var(--cn-yellow, #f5a623)}.cn-blurred-teaser__tl-text{flex:1}.cn-blurred-teaser__tl-what{font-size:var(--cn-text-base);color:var(--cn-heading);display:flex;align-items:center;gap:6px;flex-wrap:wrap}.cn-blurred-teaser__tl-when{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-top:2px}.cn-consent-id{font-family:monospace;font-size:var(--cn-text-sm);color:var(--cn-heading);background:#f0f2f5;padding:2px 6px;border-radius:4px;letter-spacing:.3px}.cn-ip-masked{font-family:monospace;font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-level-pill{display:inline-block;padding:3px 10px;border-radius:12px;font-size:var(--cn-text-sm);font-weight:700;text-transform:capitalize}.cn-level-pill--accept{background:var(--cn-green-bg, #e8faf5);color:var(--cn-green, #20c19e)}.cn-level-pill--custom{background:#6179e81a;color:var(--cn-info, #6179e8)}.cn-level-pill--reject{background:var(--cn-red-bg, #fdecea);color:var(--cn-red, #e74c3c)}.cn-cat-tags{display:flex;flex-wrap:wrap;gap:4px}.cn-cat-tag{display:inline-block;padding:2px 8px;border-radius:10px;font-size:var(--cn-text-xs);font-weight:700;text-transform:uppercase;letter-spacing:.3px}.cn-cat-tag--essential{background:var(--cn-green-bg, #e8faf5);color:var(--cn-green, #20c19e)}.cn-cat-tag--analytics{background:#6179e81a;color:var(--cn-info, #6179e8)}.cn-cat-tag--marketing{background:var(--cn-yellow-bg, #fef7e8);color:var(--cn-yellow, #f5a623)}.cn-cat-tag--functional{background:var(--cn-light-bg, #f0f2f5);color:var(--cn-muted)}.cn-consent-log-table{margin-bottom:28px}.cn-consent-log-table__controls{display:flex;align-items:center;gap:12px;margin-bottom:12px}.cn-consent-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:24px}.cn-consent-stat{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:16px 18px;text-align:center}.cn-consent-stat__value{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);line-height:1.2;margin-bottom:4px}.cn-consent-stat__label{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.4px}.cn-config-timeline{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;overflow:hidden;margin-bottom:24px}.cn-config-timeline__header{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;background:#f0f2f5;border-bottom:1px solid var(--cn-border)}.cn-config-timeline__title{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading)}.cn-config-timeline__period{font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-config-timeline__body{padding:0 18px}.cn-timeline-list{display:flex;flex-direction:column}.cn-timeline-item{display:flex;align-items:flex-start;gap:14px;padding:16px 0;border-bottom:1px solid var(--cn-border)}.cn-timeline-item:last-child{border-bottom:none}.cn-timeline-item__dot-wrap{padding-top:3px;flex-shrink:0}.cn-timeline-item__dot{width:10px;height:10px;border-radius:50%;background:var(--cn-border)}.cn-timeline-item__dot--banner{background:var(--cn-primary)}.cn-timeline-item__dot--setting{background:var(--cn-info, #6179e8)}.cn-timeline-item__dot--scan{background:var(--cn-yellow, #f5a623)}.cn-timeline-item__content{flex:1}.cn-timeline-item__top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:4px}.cn-timeline-item__what{font-size:var(--cn-text-base);font-weight:600;color:var(--cn-heading);display:flex;align-items:center;gap:6px;flex-wrap:wrap}.cn-timeline-item__when{font-size:var(--cn-text-sm);color:var(--cn-muted);white-space:nowrap;flex-shrink:0}.cn-timeline-item__detail{font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.5;margin-bottom:4px}.cn-timeline-item__user{font-size:var(--cn-text-sm);color:var(--cn-muted);font-style:italic}.cn-change-badge{display:inline-block;padding:2px 8px;border-radius:3px;font-size:var(--cn-text-xs);font-weight:700;text-transform:uppercase;letter-spacing:.3px}.cn-change-badge--banner{background:var(--cn-green-bg, #e8faf5);color:var(--cn-green, #20c19e)}.cn-change-badge--setting{background:#6179e81a;color:var(--cn-info, #6179e8)}.cn-change-badge--scan{background:var(--cn-yellow-bg, #fef7e8);color:var(--cn-yellow, #f5a623)}.cn-compliance-evidence{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;overflow:hidden;margin-bottom:24px}.cn-evidence-tabs{display:flex;border-bottom:1px solid var(--cn-border);background:#f0f2f5;padding:0 4px}.cn-evidence-tab{padding:10px 18px;font-size:var(--cn-text-base);font-weight:600;color:var(--cn-muted);background:none;border:none;border-bottom:2px solid transparent;cursor:pointer;font-family:var(--cn-font);display:inline-flex;align-items:center;gap:6px;transition:color .15s,border-color .15s}.cn-evidence-tab:hover{color:var(--cn-heading)}.cn-evidence-tab--active{color:var(--cn-primary);border-bottom-color:var(--cn-primary);background:var(--cn-surface)}.cn-evidence-panel{padding:18px 20px}.cn-evidence-panel--locked{display:flex;align-items:center;justify-content:center;min-height:160px}.cn-evidence-item{display:flex;align-items:flex-start;gap:10px;padding:10px 0;border-bottom:1px solid var(--cn-border);font-size:var(--cn-text-base)}.cn-evidence-item:last-child{border-bottom:none;padding-bottom:0}.cn-evidence-item:first-child{padding-top:0}.cn-evidence-item__icon{width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:var(--cn-text-sm);font-weight:700;flex-shrink:0;margin-top:1px}.cn-evidence-item__icon--pass{background:var(--cn-green-bg, #e8faf5);color:var(--cn-green, #20c19e)}.cn-evidence-item__icon--warn{background:var(--cn-yellow-bg, #fef7e8);color:var(--cn-yellow, #f5a623)}.cn-evidence-item__icon--na{background:#f0f2f5;color:#9ca3af;font-size:var(--cn-text-base);font-weight:400}.cn-evidence-item__text{flex:1;color:var(--cn-text);line-height:1.5}.cn-evidence-lock{text-align:center;padding:20px}.cn-evidence-lock__icon{font-size:var(--cn-text-xl);display:block;margin-bottom:12px}.cn-evidence-lock__msg{font-size:var(--cn-text-base);color:var(--cn-muted);margin:0 0 16px;line-height:1.5;max-width:320px}.cn-export-section{display:flex;flex-direction:column;gap:10px}.cn-export-section--locked{opacity:.7}.cn-export-section__label{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.4px}.cn-retention-info{display:flex;flex-direction:column;gap:2px;padding:10px 0}.cn-retention-info--pro .cn-retention-info__value{color:var(--cn-primary)}.cn-retention-info__value{font-size:var(--cn-text-lg);font-weight:700;color:var(--cn-heading);line-height:1.2}.cn-retention-info__label{font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-retention-info__note{font-size:var(--cn-text-sm);color:var(--cn-muted);margin:6px 0 0;line-height:1.5}.cn-benefit-item__icon{width:18px;height:18px;border-radius:50%;background:var(--cn-green-bg, #e8faf5);color:var(--cn-green, #20c19e);font-size:var(--cn-text-xs);font-weight:900;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px}@media(max-width:960px){.cn-consent-stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:540px){.cn-consent-stats{grid-template-columns:1fr 1fr}.cn-timeline-item__top{flex-direction:column;align-items:flex-start}}.cn-modal__close{top:20px}.cn-step-indicator{padding-right:48px}.cn-wizard-step,.cn-welcome-step{padding:8px 0 4px}.cn-wizard-step__heading,.cn-welcome-step__heading{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);margin:0 0 8px;line-height:1.3}.cn-wizard-step__heading--sm,.cn-welcome-step__heading--sm{font-size:var(--cn-text-lg)}.cn-wizard-step__desc,.cn-welcome-step__body,.cn-welcome-step__sub{font-size:var(--cn-text-md);color:var(--cn-muted);line-height:1.6;margin:0 0 20px}.cn-wizard-step__form-card{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:20px 24px;margin-bottom:24px}.cn-wizard-step__nav{display:flex;align-items:center;padding-top:4px}.cn-wizard-step__nav-spacer{flex:1}.cn-welcome-split{display:grid;grid-template-columns:1fr 280px;gap:24px;align-items:start}.cn-welcome-split__main{display:flex;flex-direction:column;gap:14px}.cn-welcome-step__badge{display:inline-block;background:var(--cn-red-bg, #fdecea);color:var(--cn-red, #c0392b);font-size:var(--cn-text-sm);font-weight:700;padding:4px 10px;border-radius:20px;text-transform:uppercase;letter-spacing:.4px}.cn-risk-sidebar{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:16px 18px}.cn-risk-sidebar__title{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:12px}.cn-risk-item{display:flex;align-items:flex-start;gap:8px;padding:7px 0;border-bottom:1px solid var(--cn-border);font-size:var(--cn-text-sm)}.cn-risk-item:last-child{border-bottom:none}.cn-risk-item--critical .cn-risk-item__icon{color:var(--cn-red, #c0392b);font-weight:900}.cn-risk-item--high .cn-risk-item__icon{color:var(--cn-orange, #d35400);font-weight:900}.cn-risk-item--medium .cn-risk-item__icon{color:var(--cn-yellow, #b7950b);font-weight:900}.cn-risk-item__icon{font-size:var(--cn-text-base);width:16px;text-align:center;flex-shrink:0;margin-top:1px}.cn-risk-item__text{color:var(--cn-heading);line-height:1.4}.cn-auth-or{display:flex;align-items:center;gap:10px;margin:20px 0;color:#9ca3af;font-size:var(--cn-text-base)}.cn-auth-or:before,.cn-auth-or:after{content:"";flex:1;height:1px;background:#e0e4e8}.cn-auth-signin-teaser{border:1px solid #e0e4e8;border-radius:8px;padding:20px 16px;display:flex;flex-direction:column;align-items:center;gap:12px;font-size:var(--cn-text-md);background:#f9fafb;transition:border-color .15s}.cn-auth-signin-teaser:hover{border-color:#20c19e}.cn-auth-signin-teaser__heading{font-weight:600;color:var(--cn-heading);margin:0}.cn-welcome-step--account .cn-form-field__input{padding:11px 14px;font-size:var(--cn-text-md);border-radius:8px}.cn-welcome-step--account .cn-form-field__label{font-size:var(--cn-text-base);font-weight:600;color:var(--cn-heading);text-transform:none;letter-spacing:0}.cn-account-heading{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);text-align:center;margin:0 0 8px;line-height:1.3}.cn-account-subtitle{font-size:var(--cn-text-md);color:#6b7280;text-align:center;margin:0 0 20px}.cn-auth-back-link{background:none;border:none;color:var(--cn-primary);font-size:var(--cn-text-base);font-family:var(--cn-font);cursor:pointer;padding:0;margin-bottom:12px}.cn-auth-back-link:hover{text-decoration:underline}.cn-auth-form{display:flex;flex-direction:column;gap:2px;max-width:440px}.cn-auth-form__terms{display:flex;align-items:flex-start;gap:8px;font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.5;margin:4px 0;cursor:pointer}.cn-auth-form__terms input[type=checkbox]{margin-top:2px;flex-shrink:0;accent-color:var(--cn-primary)}.cn-auth-form__terms a{color:var(--cn-primary);text-decoration:none}.cn-auth-form__terms a:hover{text-decoration:underline}.cn-auth-form__forgot{text-align:right;margin-top:-4px;margin-bottom:4px}.cn-auth-form__forgot a{font-size:var(--cn-text-sm);color:var(--cn-primary);text-decoration:none}.cn-auth-form__forgot a:hover{text-decoration:underline}.cn-auth-form__subtitle{font-size:var(--cn-text-md);color:#6b7280;margin:0 0 24px;text-align:center}.cn-auth-form__actions{display:flex;gap:10px;margin-top:8px}.cn-auth-form__actions .cn-button{width:100%;padding:14px;font-size:var(--cn-text-md)}.cn-auth-form .cn-form-field__label{text-transform:none}.cn-plan-cards{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:24px}.cn-plan-card{background:var(--cn-surface);border:1.5px solid var(--cn-border);border-radius:12px;padding:24px 20px;display:flex;flex-direction:column;gap:16px;position:relative}.cn-plan-card--highlighted{border-color:var(--cn-primary);box-shadow:0 4px 18px #20c19e26}.cn-plan-card__popular-badge{position:absolute;top:-11px;left:50%;transform:translate(-50%);background:var(--cn-primary);color:#fff;font-size:var(--cn-text-xs);font-weight:700;padding:3px 12px;border-radius:20px;white-space:nowrap;text-transform:uppercase;letter-spacing:.4px}.cn-plan-card__name{font-size:var(--cn-text-lg);font-weight:700;color:var(--cn-heading)}.cn-plan-card__price{display:flex;align-items:baseline;gap:4px}.cn-plan-card__price-amount{font-size:var(--cn-text-xl);font-weight:900;color:var(--cn-heading);line-height:1}.cn-plan-card__price-period{font-size:var(--cn-text-base);color:var(--cn-muted)}.cn-plan-card__features{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:7px;flex:1}.cn-plan-card__feature{display:flex;align-items:flex-start;gap:7px;font-size:var(--cn-text-base);color:var(--cn-text);line-height:1.4}.cn-plan-card__feature-icon{color:var(--cn-primary);font-weight:700;font-size:var(--cn-text-sm);flex-shrink:0;margin-top:1px}.cn-plan-card__feature-icon--pro{color:var(--cn-primary)}.cn-welcome-step__back-link{background:none;border:none;color:var(--cn-muted);font-size:var(--cn-text-base);font-family:var(--cn-font);cursor:pointer;padding:0;margin-top:8px}.cn-welcome-step__back-link:hover{color:var(--cn-heading)}.cn-pricing-hero{text-align:center;padding:8px 0 20px}.cn-pricing-hero__heading{font-size:var(--cn-text-xl);font-weight:900;color:var(--cn-heading);margin:0 0 8px}.cn-pricing-hero__sub{font-size:var(--cn-text-md);color:var(--cn-muted);margin:0 auto;max-width:480px;line-height:1.6}.cn-benefit-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:24px}.cn-benefit-card{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:14px 16px;text-align:center}.cn-benefit-card__icon{font-size:var(--cn-text-xl);margin-bottom:6px}.cn-benefit-card__title{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading);margin-bottom:4px}.cn-benefit-card__desc{font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.5}.cn-pricing-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:8px}.cn-pricing-card{background:var(--cn-surface);border:1.5px solid var(--cn-border);border-radius:12px;padding:20px 18px;text-align:center;display:flex;flex-direction:column;gap:12px;position:relative}.cn-pricing-card--popular{border-color:var(--cn-primary);box-shadow:0 4px 18px #20c19e26}.cn-pricing-card__popular-badge{position:absolute;top:-11px;left:50%;transform:translate(-50%);background:var(--cn-primary);color:#fff;font-size:var(--cn-text-xs);font-weight:700;padding:3px 12px;border-radius:20px;white-space:nowrap;text-transform:uppercase;letter-spacing:.4px}.cn-pricing-card__domains{font-size:var(--cn-text-xl);font-weight:900;color:var(--cn-heading);line-height:1}.cn-pricing-card__domains-label{font-size:var(--cn-text-sm);font-weight:600;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.4px;margin-top:-8px}.cn-pricing-card__price{font-size:var(--cn-text-xl);font-weight:900;color:var(--cn-heading);line-height:1.2}.cn-pricing-card__price sup{font-size:var(--cn-text-md);font-weight:700;vertical-align:super}.cn-pricing-card__price sub{font-size:var(--cn-text-sm);font-weight:400;color:var(--cn-muted);vertical-align:baseline}.cn-pricing-card__billed-note{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-top:-6px}.cn-pricing-card__tagline{font-size:11px;color:#64748b;margin-top:2px;text-align:center}.cn-pricing-card .cn-button--outline{border:1.5px solid #d1d5db;background:#fff;color:var(--cn-text)}.cn-pricing-card .cn-button--outline:hover{background:var(--cn-bg-hover, #f8fafc);border-color:#20c19e;color:#20c19e}.cn-pricing-footer__learn-more{text-align:center;margin-top:24px}.cn-pricing-footer__learn-more .cn-link{font-size:13px;color:#6366f1;text-decoration:none;font-weight:500}.cn-pricing-footer__learn-more .cn-link:hover{text-decoration:underline}.cn-pricing-door-label{text-align:center;margin:0 0 12px;font-size:13px;font-weight:600;color:var(--cn-text-muted, #64748b);letter-spacing:.01em}.cn-pricing-portal-door{margin-top:24px;padding:16px 20px;text-align:center;background:var(--cn-bg-subtle, #f8fafc);border:1px solid var(--cn-border, #e2e8f0);border-radius:10px}.cn-pricing-portal-door__title{font-size:14px;font-weight:700;color:var(--cn-text, #1e293b)}.cn-pricing-portal-door__desc{margin:6px auto 12px;max-width:460px;font-size:13px;line-height:1.5;color:var(--cn-text-muted, #64748b)}.cn-pricing-portal-door__link{font-size:13px;font-weight:600;color:#6366f1;text-decoration:none}.cn-pricing-portal-door__link:hover{text-decoration:underline}.cn-pricing-footer__dismiss{text-align:center;margin-top:12px;padding-bottom:8px}.cn-pricing-footer__dismiss .cn-link-btn{background:none;border:none;font-size:13px;color:#94a3b8;cursor:pointer;padding:4px 8px;font-weight:400}.cn-pricing-footer__dismiss .cn-link-btn:hover{color:#64748b;text-decoration:underline}.cn-step-dots{display:flex;align-items:center;justify-content:center;gap:8px;padding:16px;border-top:1px solid var(--cn-border);margin-top:16px}.cn-step-dot{width:8px;height:8px;border-radius:50%;background:var(--cn-border);transition:all .2s}.cn-step-dot--active{background:var(--cn-primary);width:24px;border-radius:4px}.cn-step-dot--done{background:var(--cn-primary)}.cn-choose__heading{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);margin:0 0 24px;text-align:center}.cn-choose__google-notice{margin:-8px 0 20px;padding:12px 14px;border-radius:8px;background:#f5f8ff;border:1px solid #c7d7fe;color:#1e3a8a;font-size:var(--cn-text-sm)}.cn-choose__sub{font-size:var(--cn-text-md);color:var(--cn-muted);text-align:center;margin:0 0 28px}.cn-protection-cards{display:flex;gap:20px;width:100%}.cn-protection-card{flex:1;display:flex;flex-direction:column;border:2px solid var(--cn-border);border-radius:14px;padding:28px 24px;text-align:center;position:relative;transition:all .2s;cursor:default;background:#fff}.cn-protection-card:hover{border-color:#c0c4cc;transform:translateY(-2px);box-shadow:0 6px 20px #0000000f}.cn-protection-card--recommended{border-color:var(--cn-primary);box-shadow:0 4px 16px #20c19e26}.cn-protection-card__risk-tag-row--spacer{visibility:hidden;pointer-events:none;height:36px;margin-bottom:0}.cn-protection-card__risk-tag{display:inline-block;background:var(--cn-red-bg, #fdecea);color:var(--cn-red, #c0392b);font-size:var(--cn-text-xs);font-weight:700;padding:3px 10px;border-radius:10px;margin-bottom:12px;text-transform:uppercase;letter-spacing:.04em}.cn-protection-card__badge{position:absolute;top:-11px;left:50%;transform:translate(-50%);font-size:var(--cn-text-xs);font-weight:700;padding:3px 12px;border-radius:10px;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap}.cn-protection-card__badge--risk{background:#6b7280;color:#fff}.cn-protection-card__badge--rec{background:var(--cn-primary);color:#fff}.cn-protection-card__badge--max{background:#ffc107;color:#1a1a2e}.cn-protection-card__icon{width:56px;height:56px;border-radius:14px;display:flex;align-items:center;justify-content:center;margin:0 auto 16px;font-size:var(--cn-text-xl)}.cn-protection-card__icon--banner{background:#f0f2f5}.cn-protection-card__icon--protect{background:#e6f9f4}.cn-protection-card__icon--comply{background:#fff8e1}.cn-protection-card__title{font-size:var(--cn-text-lg);font-weight:700;color:var(--cn-heading);margin-bottom:6px;line-height:1.3}.cn-protection-card__subtitle{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-bottom:0;line-height:1.5;min-height:40px}.cn-protection-card__price-zone{min-height:88px;margin-top:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%}.cn-protection-card__price-label{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);margin-bottom:4px;margin-top:2px}.cn-protection-card__price{margin-bottom:4px}.cn-protection-card__price-amount{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading)}.cn-protection-card__price-amount sup{font-size:var(--cn-text-md);vertical-align:super}.cn-protection-card__price-period{font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-protection-card__price-note{font-size:var(--cn-text-sm);color:var(--cn-muted);font-weight:600;margin-top:6px;margin-bottom:4px;display:block}.cn-protection-card__price-note--danger{color:var(--cn-red, #c0392b)}.cn-protection-card__price-discount{font-size:var(--cn-text-sm);color:var(--cn-primary);font-weight:600;display:block;margin-top:4px}.cn-protection-card__divider{height:1px;background:var(--cn-border);margin:16px 0}.cn-protection-card__features{list-style:none;padding:0;margin:14px 0 0;text-align:left}.cn-protection-card__feature{padding:5px 0;font-size:var(--cn-text-sm);color:var(--cn-text);display:flex;align-items:flex-start;gap:8px;line-height:1.4}.cn-protection-card__feature--included .cn-protection-card__feature-icon{color:var(--cn-primary)}.cn-protection-card__feature--excluded .cn-protection-card__feature-icon{color:#ccc}.cn-protection-card__feature--excluded{color:var(--cn-muted)}.cn-protection-card__feature--warning .cn-protection-card__feature-icon{color:var(--cn-red, #c0392b)}.cn-protection-card__feature--warning{color:var(--cn-red, #c0392b);font-weight:600}.cn-protection-card__feature-icon{flex-shrink:0;font-size:var(--cn-text-base);margin-top:1px}.cn-protection-card__footer{margin-top:auto;padding-top:20px;display:flex;flex-direction:column;align-items:center;gap:10px;width:100%}.cn-protection-card__btn{width:100%;text-align:center;padding:12px 28px;border-radius:24px;font-family:var(--cn-font);font-size:var(--cn-text-md);font-weight:700;border:none;box-sizing:border-box;cursor:pointer;transition:all .15s}.cn-protection-card__btn--ghost{background:transparent;color:var(--cn-muted);border:2px solid var(--cn-border);padding:10px 26px}.cn-protection-card__btn--ghost:hover{color:var(--cn-heading);border-color:#c0c4cc}.cn-protection-card__btn--primary{background:var(--cn-primary);color:#fff}.cn-protection-card__btn--primary:hover{background:var(--cn-primary-hover)}.cn-protection-card__btn--secondary{background:#ffc107;color:#1a1a2e}.cn-protection-card__btn--secondary:hover{background:#e6ad00}.cn-protection-card__learn-more{background:none;border:none;color:var(--cn-muted);font-size:var(--cn-text-base);font-family:var(--cn-font);cursor:pointer;padding:0;margin-top:10px}.cn-protection-card__learn-more:hover{color:var(--cn-primary)}.cn-warning-modal{background:#fff;border:3px solid var(--cn-red, #c0392b);border-radius:14px;padding:36px 32px;text-align:center;box-shadow:0 8px 40px #c0392b26;max-width:680px;margin:0 auto}.cn-warning-modal__icon{width:72px;height:72px;background:var(--cn-red-bg, #fdecea);border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 20px;font-size:var(--cn-text-xl)}.cn-warning-modal__heading{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-red, #c0392b);margin-bottom:12px}.cn-warning-modal__text{font-size:var(--cn-text-md);color:var(--cn-text);max-width:600px;margin:0 auto 20px;line-height:1.7}.cn-warning-modal__consequences{background:#fdf0ee;border:1px solid #f5cac3;border-radius:10px;padding:20px 24px;margin:0 auto 24px;max-width:600px;text-align:left}.cn-warning-modal__consequences h5{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-red, #c0392b);text-transform:uppercase;letter-spacing:.04em;margin-bottom:10px}.cn-warning-modal__consequences ul{list-style:none;padding:0;margin:0}.cn-warning-modal__consequences li{padding:6px 0;font-size:var(--cn-text-base);color:var(--cn-text);display:flex;align-items:flex-start;gap:10px;border-bottom:1px solid #f5cac3;line-height:1.5}.cn-warning-modal__consequences li:last-child{border-bottom:none}.cn-warning-modal__consequence-icon{color:var(--cn-red, #c0392b);font-size:var(--cn-text-md);flex-shrink:0;margin-top:2px}.cn-warning-modal__checkbox{display:flex;align-items:flex-start;gap:10px;background:#fff;border:2px solid var(--cn-border);border-radius:10px;padding:14px 16px;margin:0 auto 20px;max-width:600px;text-align:left;cursor:pointer;transition:border-color .15s}.cn-warning-modal__checkbox:hover{border-color:var(--cn-red, #c0392b)}.cn-warning-modal__checkbox input[type=checkbox]{width:18px;height:18px;margin-top:2px;flex-shrink:0;accent-color:var(--cn-red, #c0392b)}.cn-warning-modal__checkbox span{font-size:var(--cn-text-base);color:var(--cn-text);line-height:1.5}.cn-warning-modal__checkbox strong{color:var(--cn-red, #c0392b)}.cn-warning-modal__actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.cn-warning-modal__btn{display:inline-block;padding:12px 28px;border-radius:24px;font-family:var(--cn-font);font-size:var(--cn-text-md);font-weight:700;border:none;cursor:pointer;transition:all .15s}.cn-warning-modal__btn--danger{background:var(--cn-red, #c0392b);color:#fff}.cn-warning-modal__btn--danger:hover{background:#a93226}.cn-warning-modal__btn--danger[disabled]{opacity:.4;cursor:not-allowed}.cn-warning-modal__btn--safe{background:var(--cn-primary);color:#fff}.cn-warning-modal__btn--safe:hover{background:var(--cn-primary-hover)}.cn-pro-pricing__hero{text-align:center;margin-bottom:28px}.cn-pro-pricing__heading{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);margin:0 0 8px}.cn-pro-pricing__sub{font-size:var(--cn-text-md);color:var(--cn-muted);margin:0}.cn-pro-pricing__benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:32px}.cn-pro-pricing__benefit{background:#f8fffe;border:1px solid #d4f0e8;border-radius:10px;padding:16px;text-align:center}.cn-pro-pricing__benefit-icon{font-size:var(--cn-text-xl);margin-bottom:8px}.cn-pro-pricing__benefit-title{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading);margin:0 0 4px}.cn-pro-pricing__benefit-desc{font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.4;margin:0}.cn-pro-pricing__cards{display:flex;gap:16px;margin-bottom:16px}.cn-pro-pricing__card{flex:1;border:2px solid var(--cn-border);border-radius:12px;padding:24px 20px;text-align:center;position:relative;transition:all .15s;cursor:pointer;background:#fff}.cn-pro-pricing__card:hover{border-color:#c0c4cc;transform:translateY(-1px);box-shadow:0 4px 12px #0000000f}.cn-pro-pricing__card--popular{border-color:var(--cn-primary);box-shadow:0 4px 16px #20c19e26}.cn-pro-pricing__card-badge{position:absolute;top:-10px;left:50%;transform:translate(-50%);background:var(--cn-primary);color:#fff;font-size:var(--cn-text-xs);font-weight:700;padding:2px 10px;border-radius:10px;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap}.cn-pro-pricing__card-domains{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);line-height:1}.cn-pro-pricing__card-domains-label{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-bottom:12px;display:block}.cn-pro-pricing__card-price{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);margin-bottom:4px}.cn-pro-pricing__card-price sup{font-size:var(--cn-text-md);vertical-align:super}.cn-pro-pricing__card-price sub{font-size:var(--cn-text-sm);font-weight:400;color:var(--cn-muted)}.cn-pro-pricing__card-per-domain{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-bottom:16px;display:block}.cn-pro-pricing__card-btn{width:100%;text-align:center;padding:10px;border-radius:20px;font-family:var(--cn-font);font-size:var(--cn-text-base);font-weight:700;border:2px solid var(--cn-border);background:transparent;color:var(--cn-heading);cursor:pointer;transition:all .15s}.cn-pro-pricing__card-btn:hover{border-color:var(--cn-primary);color:var(--cn-primary)}.cn-pro-pricing__card-btn--primary{background:var(--cn-primary);color:#fff;border-color:var(--cn-primary)}.cn-pro-pricing__card-btn--primary:hover{background:var(--cn-primary-hover);border-color:var(--cn-primary-hover)}.cn-pro-pricing__back{display:inline-flex;align-items:center;gap:6px;font-size:var(--cn-text-base);color:var(--cn-muted);cursor:pointer;margin-top:8px;border:none;background:none;font-family:var(--cn-font)}.cn-pro-pricing__back:hover{color:var(--cn-primary)}.cn-script-blocking{margin:12px 0 8px}.cn-script-blocking__label{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading);margin-bottom:4px}.cn-script-blocking__desc{font-size:var(--cn-text-sm);color:var(--cn-muted);margin:0 0 10px}.cn-script-blocking__tabs{display:flex;gap:0;margin-bottom:8px}.cn-script-blocking__tab{padding:6px 16px;font-size:var(--cn-text-sm);font-weight:600;font-family:var(--cn-font);border:1.5px solid var(--cn-border);background:var(--cn-surface);color:var(--cn-muted);cursor:pointer;transition:all .15s}.cn-script-blocking__tab:first-child{border-radius:6px 0 0 6px}.cn-script-blocking__tab:last-child{border-radius:0 6px 6px 0;border-left:none}.cn-script-blocking__tab--active{background:var(--cn-primary);color:#fff;border-color:var(--cn-primary)}.cn-script-blocking__tab--active+.cn-script-blocking__tab{border-left:none}@media(max-width:760px){.cn-category-grid,.cn-welcome-split,.cn-plan-cards,.cn-benefit-grid,.cn-pricing-cards{grid-template-columns:1fr}.cn-protection-cards{flex-direction:column}.cn-pro-pricing__benefits{grid-template-columns:1fr}.cn-pro-pricing__cards{flex-direction:column}}.cn-payment-step{padding:8px 0 16px}.cn-payment-step__heading{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);margin:0 0 16px;text-align:center}.cn-payment-step__plan-pill{display:inline-block;background:var(--cn-green-bg);color:var(--cn-primary);border:1px solid var(--cn-primary);border-radius:20px;padding:4px 14px;font-size:var(--cn-text-base);font-weight:600;margin:0 auto 20px;text-align:center;width:100%;box-sizing:border-box}.cn-payment-step__error{background:var(--cn-red-bg);color:var(--cn-red);border:1px solid var(--cn-red);border-radius:6px;padding:10px 14px;font-size:var(--cn-text-base);margin-bottom:16px}.cn-payment-step__loading{text-align:center;color:var(--cn-muted);font-size:var(--cn-text-base);padding:32px 0}.cn-payment-step__form{width:100%}.cn-payment-step__field{margin-bottom:14px;flex:1}.cn-payment-step__label{display:block;font-size:var(--cn-text-sm);font-weight:600;color:var(--cn-text);margin-bottom:5px;font-family:var(--cn-font)}.cn-payment-step__input{width:100%;height:40px;padding:0 12px;border:1.5px solid var(--cn-border);border-radius:6px;font-size:var(--cn-text-md);font-family:var(--cn-font);color:var(--cn-text);background:var(--cn-surface);box-sizing:border-box;transition:border-color .15s}.cn-payment-step__input:focus{outline:none;border-color:var(--cn-primary)}.cn-payment-step__hosted-field{height:40px;padding:0 12px;border:1.5px solid var(--cn-border);border-radius:6px;background:var(--cn-surface);box-sizing:border-box;transition:border-color .15s}.cn-payment-step__hosted-field.braintree-hosted-fields-focused{border-color:var(--cn-primary)}.cn-payment-step__hosted-field.braintree-hosted-fields-invalid{border-color:var(--cn-red)}.cn-payment-step__hosted-field.braintree-hosted-fields-valid{border-color:var(--cn-green)}.cn-payment-step__row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.cn-payment-step__braintree-badge{font-size:var(--cn-text-sm);color:var(--cn-muted);text-align:center;margin:8px 0 16px}.cn-payment-step__submit{width:100%;height:44px;font-size:var(--cn-text-md);font-weight:600}.cn-payment-step__back{margin-top:10px;height:44px}.cn-payment-step__back--standalone{margin-top:16px}.cn-auth-form__error{background:var(--cn-red-bg);color:var(--cn-red);border:1px solid var(--cn-red);border-radius:6px;padding:10px 14px;font-size:var(--cn-text-base);margin-bottom:14px}.cn-auth-form__switch-link{background:none;border:none;padding:0;color:var(--cn-red);font-size:var(--cn-text-base);font-weight:600;text-decoration:underline;cursor:pointer;font-family:var(--cn-font)}.cn-auth-form__switch-link:hover{color:var(--cn-primary)}.cn-auth-form__field-hint{margin:-6px 0 10px;font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.4}.cn-auth-form__notice{background:var(--cn-bg-subtle, #f6f7f7);color:var(--cn-text, #1d2327);border:1px solid var(--cn-border, #dcdcde);border-radius:6px;padding:10px 14px;font-size:var(--cn-text-base);margin-bottom:14px}.cn-auth-form__links{display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:16px}.cn-auth-form__switch-link:disabled{color:var(--cn-muted);cursor:default;text-decoration:none}.cn-app-choice{border:0;margin:0 0 12px;padding:0;display:flex;flex-direction:column;gap:8px}.cn-app-choice__option{display:flex;align-items:flex-start;gap:10px;padding:10px 14px;border:1px solid var(--cn-border, #dcdcde);border-radius:6px;cursor:pointer;text-align:left}.cn-app-choice__option--selected{border-color:var(--cn-primary, #2271b1)}.cn-app-choice__option input{margin-top:3px}.cn-app-choice__text{display:flex;flex-direction:column;gap:2px;min-width:0;overflow-wrap:anywhere}.cn-app-choice__name{font-weight:600;color:var(--cn-text, #1d2327)}.cn-app-choice__domain{font-size:var(--cn-text-base);color:var(--cn-muted)}.cn-app-choice__badge{align-self:flex-start;font-size:12px;color:var(--cn-muted);background:var(--cn-bg-subtle, #f6f7f7);border-radius:10px;padding:1px 8px}.cn-app-choice__note{margin:0 0 14px;font-size:var(--cn-text-base);color:var(--cn-muted);text-align:left}.cn-license-select{text-align:center}.cn-license-select__upsell-icon{font-size:var(--cn-text-xl);margin-bottom:12px}.cn-license-select__heading{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);margin:0 0 10px;line-height:1.3;text-align:center}.cn-license-select__sub{font-size:var(--cn-text-md);color:var(--cn-muted);line-height:1.6;max-width:420px;margin:0 auto 20px}.cn-license-select__choose-label{font-size:var(--cn-text-base);color:var(--cn-text);margin:0 0 12px;text-align:left}.cn-license-select__single-card{display:flex;align-items:center;justify-content:space-between;border:1.5px solid var(--cn-primary);border-radius:10px;padding:16px 20px;background:var(--cn-green-bg, #e8faf5);margin-bottom:20px;text-align:left}.cn-license-select__cards{display:flex;flex-direction:column;gap:10px;margin-bottom:20px;text-align:left}.cn-license-select__card{display:flex;align-items:center;gap:12px;border:1.5px solid var(--cn-border);border-radius:10px;padding:14px 16px;cursor:pointer;background:var(--cn-surface);transition:border-color .15s,background .15s}.cn-license-select__card:hover{border-color:var(--cn-primary)}.cn-license-select__card--selected{border-color:var(--cn-primary);background:var(--cn-green-bg, #e8faf5)}.cn-license-select__radio{flex-shrink:0;accent-color:var(--cn-primary);width:16px;height:16px}.cn-license-select__card-body{display:flex;flex-direction:column;gap:2px;flex:1}.cn-license-select__card-name{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading)}.cn-license-select__card-slots{font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-license-select__error{background:var(--cn-red-bg, #fdecea);color:var(--cn-red, #e74c3c);border:1px solid var(--cn-red, #e74c3c);border-radius:6px;padding:10px 14px;font-size:var(--cn-text-base);margin-bottom:14px;text-align:left}.cn-license-select__actions{margin-bottom:12px}.cn-license-select__free-link{background:none;border:none;color:var(--cn-muted);font-size:var(--cn-text-base);font-family:var(--cn-font);cursor:pointer;padding:0;text-decoration:underline}.cn-license-select__free-link:hover{color:var(--cn-text)}.cn-plugin-settings{margin-top:24px}.cn-plugin-settings__actions{display:flex;align-items:center;gap:12px;margin-top:20px;padding-top:16px;border-top:1px solid var(--cn-border, #e2e8f0)}.cn-plugin-settings__saved{color:var(--cn-success, #16a34a);font-size:var(--cn-text-base);font-weight:500}.cn-plugin-settings__actions>.cn-button--secondary:last-child{margin-left:auto}.cn-plugin-settings__reset-confirm{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:12px;padding:12px 16px;border:1px solid var(--cn-warning, #f59e0b);border-radius:6px;background:#fffbeb}.cn-plugin-settings__reset-confirm p{flex-basis:100%;margin:0;font-size:var(--cn-text-base)}.cn-toggle-row{padding:10px 0;border-bottom:1px solid var(--cn-border-light, #f1f5f9)}.cn-toggle-row:last-child{border-bottom:none}.cn-toggle-row__label{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:var(--cn-text-base);font-weight:500;color:var(--cn-text, #1e293b)}.cn-toggle-row__input{width:16px;height:16px;accent-color:var(--cn-primary, #3b82f6);cursor:pointer}.cn-toggle-row__desc{margin-top:4px;padding-left:24px;font-size:var(--cn-text-sm);color:var(--cn-text-muted, #64748b)}.cn-radio-group{padding:8px 0}.cn-radio-group__label{font-size:var(--cn-text-base);font-weight:500;color:var(--cn-text, #1e293b);margin-bottom:6px}.cn-radio-group__options{display:flex;gap:16px;flex-wrap:wrap}.cn-radio-group__option{display:flex;align-items:center;gap:6px;font-size:var(--cn-text-base);color:var(--cn-text, #1e293b);cursor:pointer}.cn-radio-group__option input[type=radio]{accent-color:var(--cn-primary, #3b82f6);cursor:pointer}.cn-opacity-slider{width:100%;height:6px;accent-color:var(--cn-primary, #3b82f6);cursor:pointer}.cn-compliance-behavior__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:16px}@media(max-width:900px){.cn-compliance-behavior__grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:560px){.cn-compliance-behavior__grid{grid-template-columns:1fr}}.cn-compliance-behavior__footer{padding:10px 14px;background:var(--cn-bg-muted, #f8fafc);border-radius:6px;font-size:var(--cn-text-sm);color:var(--cn-text-muted, #64748b);line-height:1.5}.cn-compliance-card__pills{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}.cn-compliance-card__note{font-size:var(--cn-text-sm);color:var(--cn-text-muted, #64748b);margin-top:4px;line-height:1.4}.cn-compliance-empty{padding:24px 20px;border:1px dashed var(--cn-border, #e2e8f0);border-radius:8px;text-align:center}.cn-compliance-empty__icon{font-size:var(--cn-text-xl);margin-bottom:10px}.cn-compliance-empty__title{font-size:var(--cn-text-md);font-weight:600;color:var(--cn-text, #1e293b);margin-bottom:6px}.cn-compliance-empty__body{font-size:var(--cn-text-base);color:var(--cn-text-muted, #64748b);margin-bottom:14px;max-width:320px;margin-left:auto;margin-right:auto}.cn-compliance-empty__link{font-size:var(--cn-text-base);font-weight:600;color:var(--cn-primary, #3b82f6);text-decoration:none}.cn-compliance-empty__link:hover{text-decoration:underline}.cn-rule-builder{margin-top:8px}.cn-rule-builder__empty{padding:10px 14px;background:var(--cn-bg-muted, #f8fafc);border:1px dashed var(--cn-border, #e2e8f0);border-radius:6px;font-size:var(--cn-text-sm);color:var(--cn-text-muted, #64748b);margin:0 0 8px}.cn-rule-builder__add-group{background:none;border:1px dashed var(--cn-border, #e2e8f0);border-radius:6px;padding:8px 14px;cursor:pointer;font-size:var(--cn-text-sm);color:var(--cn-primary, #00a99d);width:100%;margin-top:8px}.cn-rule-builder__add-group:hover{border-color:var(--cn-primary, #00a99d);background:var(--cn-bg-muted, #f8fafc)}.cn-rule-group__or{text-align:center;font-size:11px;font-weight:700;text-transform:uppercase;color:var(--cn-text-muted, #64748b);padding:6px 0;letter-spacing:.05em}.cn-rule-group__and{font-size:11px;font-weight:600;text-transform:uppercase;color:var(--cn-text-muted, #94a3b8);padding:2px 0 2px 4px}.cn-rule-group__card{border:1px solid var(--cn-border, #e2e8f0);border-radius:6px;padding:10px;background:var(--cn-bg-muted, #f8fafc)}.cn-rule-group__add-rule{background:none;border:none;padding:4px 0;cursor:pointer;font-size:var(--cn-text-sm);color:var(--cn-primary, #00a99d)}.cn-rule-group__add-rule:hover{text-decoration:underline}.cn-rule-row{display:flex;gap:6px;align-items:center;margin-bottom:4px}.cn-rule-row select{flex:1;min-width:0;padding:5px 8px;border:1px solid var(--cn-border, #e2e8f0);border-radius:4px;font-size:var(--cn-text-sm);background:#fff}.cn-rule-row__param{flex:1.2}.cn-rule-row__operator{flex:1}.cn-rule-row__value{flex:1.5}.cn-rule-row__remove{background:none;border:none;cursor:pointer;font-size:18px;color:var(--cn-text-muted, #94a3b8);padding:2px 6px;line-height:1;flex-shrink:0}.cn-rule-row__remove:hover{color:#ef4444}.cn-network-managed{opacity:.5;pointer-events:none}.cn-pill-toggle{display:flex;background:var(--cn-light-bg, #f0f2f5);border-radius:24px;padding:4px;width:fit-content}.cn-pill-toggle__btn{flex:1;border:none;background:transparent;border-radius:20px;cursor:pointer;font-size:var(--cn-text-base);font-family:var(--cn-font);font-weight:600;padding:8px 24px;color:var(--cn-muted);transition:all .15s;white-space:nowrap;display:inline-flex;align-items:center;gap:6px}.cn-pill-toggle__btn--active{background:#fff;box-shadow:0 1px 3px #0000001a;color:var(--cn-heading)}.cn-pill-toggle__btn:not(.cn-pill-toggle__btn--active):hover{color:var(--cn-heading)}.cn-pill-toggle__badge{background:linear-gradient(135deg,#f7b731,#f5a623);color:#1a1a1a;font-size:var(--cn-text-xs);font-weight:900;padding:2px 6px;border-radius:3px;text-transform:uppercase;letter-spacing:.3px}.cn-pill-toggle-desc{font-size:var(--cn-text-sm);color:var(--cn-muted);margin:8px 0 6px}.cn-pill-toggle-note{font-size:var(--cn-text-xs);color:var(--cn-text-muted, #64748b);margin-top:12px}.cn-protection-header{margin-bottom:20px}.cn-protection-header__title{font-size:var(--cn-text-xl);font-weight:600;color:#434f58;margin:0 0 4px}.cn-protection-header__subtitle{font-size:var(--cn-text-base);color:#6b7280;margin:0}.cn-first-run{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:24px;margin-bottom:24px;box-shadow:0 1px 4px #0000000f}.cn-first-run__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.cn-first-run__title{font-size:var(--cn-text-lg);font-weight:600;color:#434f58;margin:0}.cn-first-run__dismiss{background:none;border:none;cursor:pointer;font-size:var(--cn-text-xl);color:#6b7280;line-height:1;padding:2px 6px;border-radius:4px}.cn-first-run__dismiss:hover{background:#f3f4f6;color:#434f58}.cn-first-run__progress{display:flex;align-items:center;gap:0;margin-bottom:24px;counter-reset:step}.cn-first-run__step-indicator{display:flex;align-items:center;gap:8px;flex:1;position:relative}.cn-first-run__step-indicator:not(:last-child):after{content:"";display:block;flex:1;height:2px;background:var(--cn-border);margin:0 8px;order:3}.cn-first-run__step-indicator--done .cn-first-run__step-num{background:var(--cn-primary);border-color:var(--cn-primary);color:#fff}.cn-first-run__step-indicator--done .cn-first-run__step-num:before{content:"✓"}.cn-first-run__step-indicator--done:after{background:var(--cn-primary)!important}.cn-first-run__step-indicator--active .cn-first-run__step-num{background:var(--cn-primary);border-color:var(--cn-primary);color:#fff}.cn-first-run__step-indicator--active .cn-first-run__step-label{color:var(--cn-primary);font-weight:600}.cn-first-run__step-num{width:28px;height:28px;border-radius:50%;border:2px solid var(--cn-border);background:#fff;color:#6b7280;font-size:var(--cn-text-sm);font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;order:1;transition:background .2s,border-color .2s}.cn-first-run__step-label{font-size:var(--cn-text-sm);color:#6b7280;order:2;white-space:nowrap}.cn-first-run__body{margin-bottom:20px}.cn-first-run__body h3{font-size:var(--cn-text-md);font-weight:600;color:#434f58;margin:0 0 4px}.cn-first-run__body p{font-size:var(--cn-text-base);color:#6b7280;margin:0 0 16px}.cn-first-run__step-badge{display:inline-block;font-size:var(--cn-text-sm);font-weight:500;color:#6b7280;background:#f1f5f9;padding:2px 8px;border-radius:20px;margin-left:8px;vertical-align:middle}.cn-first-run__nav{display:flex;align-items:center;justify-content:space-between;padding-top:16px;border-top:1px solid var(--cn-border)}.cn-first-run__nav-right{display:flex;align-items:center;gap:8px;margin-left:auto}.cn-inline-panel{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:24px;margin-bottom:24px;box-shadow:0 1px 4px #0000000f}.cn-inline-panel__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.cn-inline-panel__title{font-size:var(--cn-text-lg);font-weight:600;color:#434f58;margin:0}.cn-inline-panel__dismiss{background:none;border:none;cursor:pointer;font-size:var(--cn-text-xl);color:#6b7280;line-height:1;padding:2px 6px;border-radius:4px}.cn-inline-panel__dismiss:hover{background:#f3f4f6;color:#434f58}.cn-inline-panel__body{margin-bottom:20px}.cn-inline-panel__body h3{font-size:var(--cn-text-md);font-weight:600;color:#434f58;margin:0 0 4px}.cn-inline-panel__body p{font-size:var(--cn-text-base);color:#6b7280;margin:0 0 16px}.cn-inline-panel__footer{display:flex;align-items:center;justify-content:space-between;padding-top:16px;border-top:1px solid var(--cn-border)}@media(prefers-reduced-motion:no-preference){@keyframes cn-panel-enter{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.cn-inline-panel{animation:cn-panel-enter .22s cubic-bezier(.16,1,.3,1) both}.cn-inline-panel--closing{animation:none;transition:opacity .16s ease,transform .16s ease;opacity:0;transform:translateY(-6px);pointer-events:none}}.cn-law-selector__grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:16px}@media(max-width:600px){.cn-law-selector__grid{grid-template-columns:1fr}}.cn-law-selector__card{display:flex;align-items:flex-start;gap:10px;border:2px solid var(--cn-border);border-radius:10px;padding:12px 14px;cursor:pointer;background:var(--cn-surface);transition:border-color .15s}.cn-law-selector__card:hover{border-color:var(--cn-primary)}.cn-law-selector__card--active{border-color:var(--cn-primary);background:var(--cn-primary-light, #e6faf5)}.cn-law-selector__checkbox{width:16px;height:16px;margin-top:1px;flex-shrink:0;accent-color:var(--cn-primary)}.cn-law-selector__info{flex:1}.cn-law-selector__name{font-size:var(--cn-text-base);font-weight:600;color:#434f58;margin-bottom:1px}.cn-law-selector__jurisdiction{font-size:var(--cn-text-sm);color:#6b7280;margin-bottom:2px}.cn-law-selector__desc{font-size:var(--cn-text-sm);color:#6b7280;line-height:1.4}.cn-law-selector__dns-url{margin-top:12px;padding:14px;background:#fffbeb;border:1px solid #fde68a;border-radius:10px}.cn-law-selector__dns-label{font-size:var(--cn-text-base);font-weight:600;color:#434f58;margin-bottom:4px;display:block}.cn-law-selector__dns-help{font-size:var(--cn-text-sm);color:#6b7280;margin-bottom:8px;display:block}.cn-law-selector__dns-input{width:100%;padding:8px 10px;border:1px solid var(--cn-border);border-radius:4px;font-size:var(--cn-text-base);box-sizing:border-box}.cn-law-selector__dns-input:focus{outline:none;border-color:var(--cn-primary);box-shadow:0 0 0 2px #20c19e26}.cn-law-selector__dns-required{font-size:var(--cn-text-sm);color:#d63638;margin-top:4px}.cn-compliance-rules__consent-modes{margin-top:16px;border-top:1px solid var(--cn-border);padding-top:16px}.cn-compliance-rules__mode-toggle{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid #f3f4f6}.cn-compliance-rules__mode-toggle:last-child{border-bottom:none}.cn-compliance-rules__mode-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;font-size:var(--cn-text-sm);font-weight:700;margin-right:8px;flex-shrink:0}.cn-compliance-rules__mode-icon--g{background:#ea4335;color:#fff}.cn-compliance-rules__mode-icon--f{background:#1877f2;color:#fff}.cn-compliance-rules__mode-icon--m{background:#00a4ef;color:#fff}.cn-compliance-rules__detected-badge{font-size:var(--cn-text-xs);font-weight:600;color:#0d6efd;background:#e7f1ff;border-radius:20px;padding:2px 7px;margin-left:6px}.cn-compliance-rules__suggestion{background:#f0f9ff;border:1px solid #bae6fd;border-radius:4px;padding:10px 12px;font-size:var(--cn-text-sm);color:#0369a1;margin-bottom:14px}.cn-compliance-rules__portal-link{display:block;font-size:var(--cn-text-sm);color:var(--cn-primary);text-decoration:none;margin-top:14px}.cn-compliance-rules__portal-link:hover{text-decoration:underline}.cn-compliance-rules__actions{margin-top:16px;display:flex;gap:8px;align-items:center}.cn-language-picker__grid{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.cn-language-picker__badge{display:inline-flex;align-items:center;gap:5px;padding:6px 12px;border:1px solid var(--cn-border);border-radius:20px;background:#fff;font-size:var(--cn-text-sm);font-weight:500;color:#434f58;cursor:pointer;transition:border-color .15s,background .15s}.cn-language-picker__badge:hover{border-color:var(--cn-primary)}.cn-language-picker__badge--active{border-color:var(--cn-primary);background:var(--cn-primary-light, #e6faf5);color:#189b7e;font-weight:600}.cn-language-picker__badge--locked{opacity:.45;cursor:pointer;border-color:var(--cn-border);background:#f9fafb;color:#6b7280}.cn-language-picker__badge--locked:hover{border-color:var(--cn-primary);opacity:.65}.cn-language-picker__note{font-size:var(--cn-text-sm);color:#6b7280;margin-bottom:12px;display:block}.cn-language-picker__hint{font-size:var(--cn-text-sm);color:#6b7280;line-height:1.5;margin:0 0 12px;padding:8px 10px;background:#f8fafc;border-left:3px solid var(--cn-border);border-radius:0 4px 4px 0}.cn-language-picker__actions{display:flex;gap:8px;margin-top:12px}.cn-language-picker__error{font-size:var(--cn-text-sm);color:#d63638;margin-top:6px}.cn-dns-url{margin-top:12px}.cn-dns-url label{display:block;font-size:var(--cn-text-base);font-weight:600;color:#434f58;margin-bottom:4px}.cn-dns-url input{width:100%;padding:8px 10px;border:1px solid var(--cn-border);border-radius:4px;font-size:var(--cn-text-base);box-sizing:border-box}.cn-dns-url input:focus{outline:none;border-color:var(--cn-primary);box-shadow:0 0 0 2px #20c19e26}.cn-saved-indicator{font-size:var(--cn-text-sm);color:#166534;font-weight:500}.cn-error-indicator{font-size:var(--cn-text-sm);color:#d63638;font-weight:500}.cn-privacy-source--unavailable .cn-toggle-row__label{opacity:.7}.cn-privacy-source__forms{margin-top:8px}.cn-privacy-source__forms--busy{cursor:wait;opacity:.6}.cn-admin-app input[type=checkbox].cn-privacy-form-toggle{position:relative;width:2.4rem;min-width:2.4rem;height:1.2rem;margin:0;padding:0;border:none;border-radius:9999px;background-color:#64748b60;box-shadow:none;cursor:pointer;-moz-appearance:none;appearance:none;-webkit-appearance:none;transition:background-color .2s ease}.cn-admin-app input[type=checkbox].cn-privacy-form-toggle:before{position:absolute;top:-.05rem;left:-.05rem;width:1.3rem;height:1.3rem;margin:0;border:1px solid rgba(100,116,139,.5);border-radius:9999px;background-color:#fff;box-shadow:0 2px 6px #64748b33;content:"";transition:transform .2s ease}.cn-admin-app input[type=checkbox].cn-privacy-form-toggle:focus{box-shadow:none}.cn-admin-app input[type=checkbox].cn-privacy-form-toggle:checked{background-color:var(--cn-primary)}.cn-admin-app input[type=checkbox].cn-privacy-form-toggle:checked:before{border-color:var(--cn-primary);transform:translate(100%)}.cn-admin-app input[type=checkbox].cn-privacy-form-toggle:disabled{cursor:default;opacity:.4}.cn-privacy-consent__loading,.cn-privacy-consent-logs__desc{font-size:var(--cn-text-sm);color:var(--cn-muted);margin:0 0 12px}.cn-privacy-source__save{margin-top:12px}.cn-banner-panel{display:grid;grid-template-columns:minmax(0,300px) minmax(0,1fr);gap:24px;margin-bottom:24px;padding:20px 22px;background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px}@media(max-width:960px){.cn-banner-panel{grid-template-columns:1fr}}.cn-banner-panel__shot{display:flex;flex-direction:column;gap:12px}.cn-banner-panel__head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}.cn-banner-panel__title{margin:0;font-size:var(--cn-text-lg);font-weight:700;color:var(--cn-heading)}.cn-banner-panel__status{padding:2px 10px;border-radius:10px;font-size:var(--cn-text-sm);font-weight:600}.cn-banner-panel__status--live{background:var(--cn-ok-pill-bg);color:var(--cn-ok-pill-txt)}.cn-banner-panel__status--off{background:var(--cn-off-pill-bg);color:var(--cn-off-pill-txt)}.cn-banner-panel__caption{margin:0;font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.4}.cn-banner-panel__rows{display:flex;flex-direction:column}.cn-banner-panel__managed{margin:0 0 8px;padding:10px 12px;border-radius:6px;background:var(--cn-light-bg);font-size:var(--cn-text-base);color:var(--cn-heading)}.cn-banner-panel__row{display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px;padding:12px 0;border-bottom:1px solid var(--cn-border)}.cn-banner-panel__label{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.04em;padding-top:2px}.cn-banner-panel__value{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0}.cn-banner-panel__chip{padding:2px 10px;border-radius:10px;font-size:var(--cn-text-sm);font-weight:700}.cn-banner-panel__chip--new{background:var(--cn-light-bg);color:var(--cn-info)}.cn-banner-panel__chip--classic{background:var(--cn-off-pill-bg);color:var(--cn-link-neutral)}.cn-banner-panel__note{font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.4}.cn-banner-panel__link{padding:0;border:none;background:none;font-family:var(--cn-font);font-size:var(--cn-text-sm);font-weight:600;color:var(--cn-link-neutral);text-decoration:underline;text-decoration-color:var(--cn-border);text-underline-offset:2px;cursor:pointer}.cn-banner-panel__link:hover{color:var(--cn-heading);text-decoration-color:var(--cn-muted)}.cn-banner-panel__link:disabled{cursor:default;color:var(--cn-muted)}.cn-banner-panel__actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;padding-top:14px}.cn-banner-panel__sync{display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px;font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-banner-panel__sync-failed{flex-basis:100%;color:var(--cn-warn-val)}.cn-banner-panel__preview-help{margin:10px 0 0;font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.4}.cn-style-cards{display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%}.cn-style-cards__group{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px;width:100%}.cn-style-cards__group--readonly .cn-style-cards__card{cursor:default}.cn-style-cards__group--locked{opacity:.55}.cn-style-cards__group--saving{cursor:progress}.cn-style-cards__group--saving .cn-style-cards__card{cursor:progress;opacity:.75}.cn-style-cards__card{display:grid;grid-template-columns:auto 1fr;gap:2px 8px;padding:10px 12px;border:1px solid var(--cn-border);border-radius:8px;background:var(--cn-surface);cursor:pointer}.cn-style-cards__card input[type=radio]{grid-row:span 2;margin:2px 0 0}.cn-style-cards__card--checked{border-color:var(--cn-primary);box-shadow:0 0 0 1px var(--cn-primary)}.cn-style-cards__name{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading)}.cn-style-cards__desc{font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.35}.cn-style-cards__note{font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.4}.cn-style-cards__error{width:100%;box-sizing:border-box;padding:6px 10px;border-radius:6px;background:#fdecea;color:#c0392b;font-size:var(--cn-text-sm);line-height:1.4}.cn-first-run__style{display:flex;flex-direction:column;gap:8px;margin-bottom:20px}.cn-ov-verdict{border:1px solid var(--cn-border);border-radius:10px;padding:16px 18px;margin-bottom:16px}.cn-ov-verdict--ok{background:linear-gradient(180deg,var(--cn-green-bg),var(--cn-surface));border-color:var(--cn-ok-pill-bg)}.cn-ov-verdict--warn{background:linear-gradient(180deg,var(--cn-warn-card-bg),var(--cn-surface));border-color:var(--cn-warn-border)}.cn-ov-verdict--crit{background:linear-gradient(180deg,var(--cn-crit-card-bg),var(--cn-surface));border-color:var(--cn-crit-border)}.cn-ov-verdict--neutral{background:linear-gradient(180deg,#f3f4f6,var(--cn-surface))}.cn-ov-verdict__top{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}.cn-ov-verdict__grade{font-size:var(--cn-text-lg);font-weight:700;color:var(--cn-heading)}.cn-ov-verdict__gap{font-size:var(--cn-text-sm);font-weight:600;padding:2px 8px;border-radius:10px;background:var(--cn-off-pill-bg);color:var(--cn-off-pill-txt)}.cn-ov-verdict--ok .cn-ov-verdict__gap{background:var(--cn-ok-pill-bg);color:var(--cn-ok-pill-txt)}.cn-ov-verdict--warn .cn-ov-verdict__gap{background:var(--cn-warn-pill-bg);color:var(--cn-warn-pill-txt)}.cn-ov-verdict--crit .cn-ov-verdict__gap{background:var(--cn-crit-pill-bg);color:var(--cn-crit-pill-txt)}.cn-ov-verdict__intro{margin:6px 0 0;font-size:var(--cn-text-base);color:var(--cn-text);line-height:1.45}.cn-ov-verdict__count{font-size:var(--cn-text-sm);font-weight:600;padding:2px 8px;border-radius:10px;background:var(--cn-warn-pill-bg);color:var(--cn-warn-pill-txt)}.cn-ov-verdict--crit .cn-ov-verdict__count{background:var(--cn-crit-pill-bg);color:var(--cn-crit-pill-txt)}.cn-ov-verdict__note{margin:6px 0 0;font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.45}.cn-ov-boxes{margin-top:0;margin-bottom:16px}.cn-ov-box__title{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.03em}.cn-card__foot .cn-ov-box__fix{color:var(--cn-primary);text-decoration-color:currentColor}.cn-card__foot .cn-ov-box__fix:hover{color:var(--cn-primary-hover)}.cn-ov-numbers{display:flex;flex-wrap:wrap;gap:12px 32px;align-items:flex-start;background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:14px 18px;margin-bottom:16px}.cn-ov-numbers__foot{flex-basis:100%;display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center;font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-ov-stat{display:flex;flex-direction:column;gap:2px}.cn-ov-stat__v{font-size:var(--cn-text-xl);font-weight:800;color:var(--cn-heading);line-height:1.15}.cn-ov-stat__k{font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-ov-stat__split{display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:4px;font-size:var(--cn-text-sm);color:var(--cn-text)}.cn-ov-steps,.cn-lls{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:14px 18px;margin-bottom:16px}.cn-ov-steps__title,.cn-lls__title{font-size:var(--cn-text-md);font-weight:700;color:var(--cn-heading);margin:0 0 8px}.cn-ov-steps__list{margin:0;padding:0;list-style:none}.cn-ov-steps__item{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 12px;padding:8px 0;border-top:1px solid var(--cn-border);font-size:var(--cn-text-base);color:var(--cn-text)}.cn-ov-steps__item:first-child{border-top:none}.cn-lls__row{display:grid;grid-template-columns:140px 1fr auto;gap:8px 12px;align-items:center;padding:8px 0;border-top:1px solid var(--cn-border)}.cn-lls__row:first-of-type{border-top:none}@media(max-width:782px){.cn-lls__row{grid-template-columns:1fr}}.cn-lls__k{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted)}.cn-lls__v{display:flex;flex-wrap:wrap;gap:5px;font-size:var(--cn-text-base);color:var(--cn-text)}.cn-lls__none{color:var(--cn-muted)}.cn-lls__action{font-size:var(--cn-text-sm);font-weight:600;color:var(--cn-link-neutral);text-decoration:underline;text-decoration-color:var(--cn-border);text-underline-offset:2px;background:none;border:none;padding:0;cursor:pointer;font-family:var(--cn-font);white-space:nowrap}.cn-lls__action:hover{color:var(--cn-heading);text-decoration-color:var(--cn-muted)}@font-face{font-family:Lato;font-style:normal;font-weight:300;font-display:swap;src:url(./lato-300.woff2) format("woff2")}@font-face{font-family:Lato;font-style:normal;font-weight:400;font-display:swap;src:url(./lato-400.woff2) format("woff2")}@font-face{font-family:Lato;font-style:normal;font-weight:700;font-display:swap;src:url(./lato-700.woff2) format("woff2")}@font-face{font-family:Lato;font-style:normal;font-weight:900;font-display:swap;src:url(./lato-900.woff2) format("woff2")}:root{--cn-bg: #f7f8fa;--cn-surface: #ffffff;--cn-primary: #20c19e;--cn-primary-hover: #1baa8a;--cn-heading: #1a1a2e;--cn-text: #434f58;--cn-border: #e0e4e8;--cn-muted: #8a9199;--cn-green: #20c19e;--cn-green-bg: #e8faf5;--cn-yellow: #f5a623;--cn-yellow-bg: #fef7e8;--cn-red: #e74c3c;--cn-red-bg: #fdecea;--cn-orange: #f39c12;--cn-orange-bg: #fef5e7;--cn-secondary: #ffc107;--cn-info: #6179e8;--cn-light-bg: #f0f2f5;--cn-gold: #f5a623;--cn-gold-bg: #fef7e8;--cn-ok-icon: #16a34a;--cn-ok-dot: #16a34a;--cn-ok-pill-bg: #dcfce7;--cn-ok-pill-txt: #15803d;--cn-ok-val: #111827;--cn-warn-icon: #b45309;--cn-warn-dot: #d97706;--cn-warn-pill-bg: #fde68a;--cn-warn-pill-txt:#92400e;--cn-warn-val: #b45309;--cn-crit-icon: #dc2626;--cn-crit-dot: #ef4444;--cn-crit-pill-bg: #fee2e2;--cn-crit-pill-txt:#b91c1c;--cn-crit-val: #dc2626;--cn-crit-card-bg: #fff8f8;--cn-crit-border: #fecaca;--cn-warn-card-bg: #fffbeb;--cn-warn-border: #fde68a;--cn-off-icon: #9ca3af;--cn-off-dot: #d1d5db;--cn-off-pill-bg: #f3f4f6;--cn-off-pill-txt: #6b7280;--cn-off-val: #9ca3af;--cn-link-neutral: #374151;--cn-font: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;--cn-text-xs: 10px;--cn-text-sm: 12px;--cn-text-base: 13px;--cn-text-md: 14px;--cn-text-lg: 18px;--cn-text-xl: 22px}.cn-admin-app{font-family:var(--cn-font);color:var(--cn-text);margin-top:20px}.cn-admin-app *,.cn-admin-app *:before,.cn-admin-app *:after{box-sizing:border-box}.cn-tab-nav{display:flex;background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:6px 6px 0 0;padding:0 16px;margin:0;list-style:none}.cn-tab-nav__item{padding:12px 20px;font-weight:500;font-size:var(--cn-text-md);color:var(--cn-muted);border-bottom:2px solid transparent;background:none;border-top:none;border-left:none;border-right:none;cursor:pointer;transition:color .2s,border-color .2s;font-family:var(--cn-font)}.cn-tab-nav__item:hover{color:var(--cn-heading)}.cn-tab-nav__item--active{color:var(--cn-primary);border-bottom-color:var(--cn-primary)}.cn-tab-content{background:var(--cn-bg);border:1px solid var(--cn-border);border-top:none;border-radius:0 0 6px 6px;padding:24px}.cn-page-layout{display:flex;gap:24px;align-items:flex-start}.cn-page-layout .cn-main{flex:1;min-width:0}.cn-page-layout .cn-sidebar{width:300px;flex-shrink:0;position:sticky;top:32px}.cn-section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.cn-section-header h2{font-size:var(--cn-text-base);font-weight:600;color:var(--cn-muted);margin:0;text-transform:uppercase;letter-spacing:.5px}.cn-section-header a{font-size:var(--cn-text-base);color:var(--cn-primary);text-decoration:none}.cn-section-header a:hover{color:var(--cn-primary-hover);text-decoration:underline}.cn-side-card{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:20px;margin-bottom:16px}.cn-side-card h3{font-size:var(--cn-text-md);font-weight:600;color:var(--cn-heading);margin:0 0 12px}.cn-side-card ul{list-style:none;margin:0;padding:0}.cn-side-card ul li{margin-bottom:8px}.cn-side-card ul li a{color:var(--cn-primary);text-decoration:none;font-size:var(--cn-text-md)}.cn-side-card ul li a:hover{color:var(--cn-primary-hover);text-decoration:underline}.cn-button{display:inline-flex;align-items:center;justify-content:center;padding:6px 14px;border-radius:20px;font-size:var(--cn-text-sm);font-weight:700;font-family:var(--cn-font);cursor:pointer;border:none;transition:background .2s,box-shadow .2s;text-decoration:none}.cn-button--sm{font-size:var(--cn-text-sm);padding:4px 12px}.cn-button--md{font-size:var(--cn-text-sm);padding:6px 14px}.cn-button--lg{font-size:var(--cn-text-md);padding:9px 24px}.cn-button--primary{background:var(--cn-primary);color:#fff}.cn-button--primary:hover{background:var(--cn-primary-hover)}.cn-button--outline{background:transparent;color:var(--cn-muted);border:1.5px solid var(--cn-border)}.cn-button--outline:hover{border-color:var(--cn-muted);color:var(--cn-heading)}.cn-button--upgrade{background:linear-gradient(135deg,#f7b731,#f5a623);color:#1a1a1a}.cn-button--upgrade:hover{filter:brightness(1.05)}.cn-button--warn{background:var(--cn-orange);color:#fff}.cn-button--warn:hover{background:#c0470a}.cn-button--ghost{background:transparent;color:var(--cn-muted);border:1.5px solid var(--cn-border)}.cn-button--ghost:hover{color:var(--cn-heading);border-color:var(--cn-muted)}.cn-button--block{width:100%;display:block;text-align:center}.cn-button--outline-primary{border:1px solid var(--cn-primary);color:var(--cn-primary);background:transparent}.cn-button--outline-primary:hover{background:var(--cn-primary);color:#fff}.cn-pro-badge{display:inline-block;background:linear-gradient(135deg,#f7b731,#f5a623);color:#1a1a1a;font-size:var(--cn-text-xs);font-weight:900;text-transform:uppercase;letter-spacing:.3px;padding:1px 5px;border-radius:3px}.cn-tier-gate{position:relative}.cn-tier-gate__content{filter:blur(2px);pointer-events:none;-webkit-user-select:none;user-select:none}.cn-tier-gate__overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:#ffffffb3}.cn-tier-gate__cta{text-align:center;padding:20px}.cn-tier-gate__cta p{margin:8px 0 16px;color:var(--cn-text);font-size:var(--cn-text-base)}.cn-tier-gate-inline{display:flex;align-items:flex-start;gap:14px;padding:16px 18px;background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;margin-bottom:20px}.cn-tier-gate-inline svg{flex-shrink:0;margin-top:2px}.cn-tier-gate-inline p{margin:4px 0 0;color:var(--cn-muted);font-size:var(--cn-text-sm)}.cn-compliance-hero{text-align:center;padding:48px 24px;background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px}.cn-compliance-hero h3{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);margin:16px 0 8px}.cn-compliance-hero p{color:var(--cn-muted);font-size:var(--cn-text-md);max-width:480px;margin:0 auto 24px;line-height:1.6}.cn-compliance-grade{display:inline-flex;align-items:center;justify-content:center;width:80px;height:80px;border-radius:50%;background:var(--cn-red-bg);border:3px solid var(--cn-red)}.cn-compliance-grade__letter{font-size:var(--cn-text-xl);font-weight:900;color:var(--cn-red)}.cn-conn-error{color:var(--cn-red);margin:8px 0}.cn-inline-notice{margin-bottom:16px;padding:12px 14px;border-radius:8px;border:1px solid var(--cn-border);background:var(--cn-surface);display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.cn-inline-notice--success{border-color:#b7ebc6;background:#f6fff8}.cn-inline-notice--warning{border-color:#fde68a;background:#fffbea}.cn-inline-notice--info{background:#f6f7fb;border-color:var(--cn-border)}.cn-inline-notice__message{font-size:var(--cn-text-md)}.cn-inline-notice--success .cn-inline-notice__message{color:#1e4620}.cn-inline-notice--warning .cn-inline-notice__message{color:#92400e}.cn-inline-notice--info .cn-inline-notice__message{color:#334155;font-size:var(--cn-text-base)}.cn-inline-notice__actions{display:flex;gap:12px;align-items:center}.cn-footer{margin-top:32px;padding-top:16px;border-top:1px solid var(--cn-border);display:flex;align-items:center;justify-content:space-between;font-size:var(--cn-text-base);color:var(--cn-muted)}.cn-footer a{color:var(--cn-primary);text-decoration:none;margin-left:16px}.cn-footer a:hover{color:var(--cn-primary-hover);text-decoration:underline}.cn-footer__sync{margin-left:12px;opacity:.75}.cn-footer__sync--failed{color:var(--cn-warning, #b26b00);opacity:1}.cn-footer__sync-retry{background:none;border:0;padding:0;color:var(--cn-primary);cursor:pointer;font-size:inherit;text-decoration:underline}.cn-footer__sync-retry:hover{color:var(--cn-primary-hover)}.cn-modal-overlay{position:fixed!important;top:0!important;right:0!important;bottom:0!important;left:0!important;background:#0009!important;z-index:100000!important;display:flex!important;align-items:center;justify-content:center;padding:32px}.cn-modal{background:var(--cn-surface);border-radius:12px;width:100%;overflow:visible;box-shadow:0 20px 60px #0000004d;position:relative}.cn-modal__close{position:absolute;top:16px;right:20px;background:none;border:none;font-size:var(--cn-text-xl);color:var(--cn-muted);cursor:pointer;line-height:1;padding:4px 8px;z-index:1}.cn-modal__close:hover{color:var(--cn-heading)}.cn-modal__header{padding:24px 36px 0;font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading)}.cn-modal__content{padding:36px;overflow-y:auto;max-height:calc(100vh - 140px)}.cn-wizard-shell{display:flex;flex-direction:column}.cn-wizard-shell__body{flex:1;overflow-y:auto}.cn-wizard-shell__nav{display:flex;align-items:center;padding-top:16px;border-top:1px solid var(--cn-border);margin-top:16px}.cn-wizard-shell__spacer{flex:1}.cn-accordion{margin-bottom:24px}.cn-accordion__summary{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.6px;cursor:pointer;-webkit-user-select:none;user-select:none;display:flex;align-items:center;justify-content:space-between;padding:10px 14px;background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;list-style:none;transition:border-color .15s,background .15s}.cn-accordion__summary::-webkit-details-marker{display:none}.cn-accordion__summary::marker{display:none}.cn-accordion__summary:hover{border-color:#c5ccd4;background:#f0f2f5}.cn-accordion[open]>.cn-accordion__summary{border-radius:10px 10px 0 0;border-bottom-color:var(--cn-border);background:var(--cn-surface)}.cn-accordion__left{display:flex;align-items:center;gap:8px}.cn-accordion__title{font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.6px;font-size:var(--cn-text-sm)}.cn-accordion__subtitle{color:var(--cn-text);font-weight:400;text-transform:none;letter-spacing:0;font-size:var(--cn-text-base)}.cn-accordion__chevron{font-size:var(--cn-text-xs);color:var(--cn-muted);transition:transform .2s;flex-shrink:0}.cn-accordion[open] .cn-accordion__chevron{transform:rotate(180deg)}.cn-accordion__body{background:var(--cn-surface);border:1px solid var(--cn-border);border-top:none;border-radius:0 0 10px 10px;padding:16px 18px}.cn-form-field{margin-bottom:12px}.cn-form-field:last-child{margin-bottom:0}.cn-form-field__label{display:block;font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.4px;margin-bottom:4px}.cn-form-field__req{color:#ff4848;margin-left:2px}.cn-form-field__input{width:100%;padding:7px 10px;font-size:var(--cn-text-base);font-family:var(--cn-font);border:1.5px solid var(--cn-border);border-radius:6px;color:var(--cn-heading);background:var(--cn-surface);transition:border-color .15s;outline:none}.cn-form-field__input:focus{border-color:var(--cn-primary)}.cn-form-field__input--error{border-color:#ff4848}.cn-form-field__textarea{resize:vertical;min-height:60px}.cn-form-field__select{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;padding-right:32px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a9199' d='M6 8L1 3h10z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}.cn-form-field__error{font-size:var(--cn-text-sm);color:#ff4848;margin-top:5px}.cn-form-field__helper{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-top:5px}.cn- color-picker__row{display:flex;align-items:center;gap:8px}.cn-color-picker__swatch{width:28px;height:28px;border-radius:6px;border:1.5px solid var(--cn-border);cursor:pointer;flex-shrink:0;padding:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.cn-color-picker__swatch::-webkit-color-swatch-wrapper{padding:0}.cn-color-picker__swatch::-webkit-color-swatch{border:none;border-radius:4px}.cn-data-table{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;overflow:hidden}.cn-data-table__table{width:100%;border-collapse:collapse}.cn-data-table__header{background:#f0f2f5}.cn-data-table__th{font-size:var(--cn-text-sm);font-weight:700;text-transform:uppercase;letter-spacing:.4px;color:var(--cn-muted);padding:10px 14px;text-align:left;border-bottom:1px solid var(--cn-border)}.cn-data-table__th--sortable{cursor:pointer;-webkit-user-select:none;user-select:none}.cn-data-table__th--sortable:hover{color:var(--cn-heading)}.cn-data-table__sort{margin-left:4px;font-size:var(--cn-text-xs);color:var(--cn-border)}.cn-data-table__sort--active{color:var(--cn-primary)}.cn-data-table__td{font-size:var(--cn-text-base);padding:10px 14px;border-bottom:1px solid var(--cn-border);color:var(--cn-text)}.cn-data-table__row--expandable{cursor:pointer}.cn-data-table__row--expandable:hover,.cn-data-table__row--expanded{background:#f9fafb}.cn-data-table__expanded{padding:12px 14px;background:#f0f2f5;font-size:var(--cn-text-sm)}.cn-data-table__empty{text-align:center;color:var(--cn-muted);font-style:italic;padding:32px 14px}.cn-data-table__pagination{display:flex;align-items:center;justify-content:center;gap:12px;padding:12px;border-top:1px solid var(--cn-border)}.cn-data-table__page-btn{width:28px;height:28px;border-radius:6px;border:1px solid var(--cn-border);background:var(--cn-surface);cursor:pointer;font-size:var(--cn-text-sm);color:var(--cn-heading);display:flex;align-items:center;justify-content:center}.cn-data-table__page-btn:hover:not(:disabled){border-color:var(--cn-primary);color:var(--cn-primary)}.cn-data-table__page-btn:disabled{opacity:.4;cursor:not-allowed}.cn-data-table__page-info{font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-date-range{display:flex;align-items:center;gap:12px}.cn-date-range__input{width:auto}.cn-date-range__separator{font-size:var(--cn-text-base);color:var(--cn-muted)}.cn-date-range__limit{font-size:var(--cn-text-sm);color:var(--cn-text);font-weight:600;background:#eef2ff;border:1px solid #c7d2fe;border-radius:999px;padding:3px 8px;line-height:1}.cn-progress-bar-wrap{margin-bottom:8px}.cn-progress-bar{height:8px;background:#f0f2f5;border-radius:4px;overflow:hidden}.cn-progress-bar__fill{height:100%;border-radius:4px;transition:width .3s}.cn-progress-bar__fill--primary{background:var(--cn-primary)}.cn-progress-bar__fill--warning{background:linear-gradient(90deg,var(--cn-primary),var(--cn-orange))}.cn-progress-bar__fill--danger{background:var(--cn-red)}.cn-progress-bar__label{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-top:4px}.cn-step-indicator{display:flex;align-items:center;margin-bottom:28px}.cn-step-indicator__item{display:flex;align-items:center;flex:1}.cn-step-indicator__circle{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:var(--cn-text-base);font-weight:700;flex-shrink:0;border:2px solid var(--cn-border);background:var(--cn-surface);color:var(--cn-muted);position:relative;z-index:1;transition:all .2s}.cn-step-indicator__circle--active{background:var(--cn-primary);border-color:var(--cn-primary);color:#fff;box-shadow:0 0 0 4px #20c19e26}.cn-step-indicator__circle--done{background:var(--cn-primary);border-color:var(--cn-primary);color:#fff}.cn-step-indicator__label{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);white-space:nowrap;margin-left:8px;text-transform:uppercase;letter-spacing:.4px}.cn-step-indicator__label--active{color:var(--cn-primary)}.cn-step-indicator__label--done{color:var(--cn-heading)}.cn-step-indicator__connector{flex:1;height:2px;background:var(--cn-border);margin:0 8px}.cn-step-indicator__connector--done{background:var(--cn-primary)}.cn-score-hero{display:flex;align-items:center;gap:16px;background:#fef2f2;border:1px solid #fca5a5;border-radius:10px;padding:16px 20px;margin-bottom:20px}.cn-score-hero__icon{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:56px;height:56px;color:#dc2626}.cn-score-hero__icon svg{width:100%;height:100%;display:block}.cn-score-hero__body{flex:1;min-width:0}.cn-score-hero__title{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:4px;white-space:normal;overflow-wrap:anywhere}.cn-score-hero__summary{font-size:var(--cn-text-lg);font-weight:700;color:#991b1b;margin-bottom:4px;white-space:normal;overflow-wrap:anywhere}.cn-score-hero__sub{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-top:6px;white-space:normal;overflow-wrap:anywhere}.cn-score-hero__actions{flex-shrink:0;margin-left:16px;align-self:center}.cn-score-hero__cta{display:inline-block;max-width:100%;font-family:var(--cn-font);font-size:var(--cn-text-md);font-weight:700;padding:9px 24px;border-radius:20px;cursor:pointer;border:none;background:linear-gradient(135deg,#f7b731,#f5a623);color:#1a1a1a;white-space:nowrap;transition:filter .2s}.cn-score-hero__cta:hover{filter:brightness(1.05)}.cn-alert{display:flex;gap:16px;padding:16px 20px;border-radius:10px;border:1px solid var(--cn-border);background:var(--cn-surface);align-items:center}.cn-alert--warning{border-color:#fcd34d;background:#fffbeb}.cn-alert--warning .cn-alert__icon{color:#d97706}.cn-alert--warning .cn-alert__title{color:#92400e}.cn-alert--warning .cn-alert__desc{color:#b45309}.cn-alert--crit{border-color:#fca5a5;background:#fef2f2}.cn-alert--crit .cn-alert__icon{color:#dc2626}.cn-alert--crit .cn-alert__title{color:#991b1b}.cn-alert--crit .cn-alert__desc{color:#b91c1c}.cn-alert--info{border-color:#99f0dd;background:#f0fdf9}.cn-alert--info .cn-alert__icon{color:var(--cn-primary)}.cn-alert--info .cn-alert__title{color:#065f46}.cn-alert--info .cn-alert__desc{color:#047857}.cn-alert__icon{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:28px;height:28px}.cn-alert__icon svg{width:100%;height:100%}.cn-alert__content{flex:1}.cn-alert__title{margin:0 0 4px;font-size:var(--cn-text-base);font-weight:700;line-height:1.3}.cn-alert__desc{margin:0;font-size:var(--cn-text-sm);line-height:1.5}.cn-alert__actions{flex-shrink:0;margin-left:16px;align-self:center}.cn-alert__dismiss{background:none;border:none;cursor:pointer;color:inherit;opacity:.5;padding:4px;flex-shrink:0}.cn-alert__dismiss:hover{opacity:1}.cn-alert__dismiss svg{display:block}.cn-vuln-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:24px}.cn-vuln-card{background:var(--cn-surface);border-radius:10px;padding:16px 18px;border:1px solid var(--cn-border);border-left:4px solid var(--cn-border)}.cn-vuln-card--ok{border-left-color:var(--cn-primary)}.cn-vuln-card--critical{border-left-color:var(--cn-red, #c0392b);background:#fff8f8}.cn-vuln-card--high{border-left-color:var(--cn-orange, #f39c12);background:#fffaf4}.cn-vuln-card--exposed{border-left-color:var(--cn-red, #c0392b);background:#fff8f8}.cn-vuln-card__top{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}.cn-vuln-card__label{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading)}.cn-vuln-card__value{font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.5}.cn-vuln-card__value b{color:var(--cn-heading)}.cn-vuln-card__sub{margin-top:4px;font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-vuln-card__risk{display:inline-flex;align-items:center;gap:4px;font-size:var(--cn-text-xs);font-weight:700;padding:2px 8px;border-radius:10px;margin-top:6px}.cn-vuln-card__risk--critical{color:var(--cn-red, #c0392b);background:var(--cn-red-bg, #fdecea)}.cn-vuln-card__risk--high{color:#9a3412;background:#fff1e6}.cn-vuln-cta{margin-bottom:24px}.cn-vuln-cta__btn{font-size:var(--cn-text-base);font-weight:600}.cn-layer{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:18px 20px;margin-bottom:14px}.cn-layer--locked{opacity:.85}.cn-layer__hdr{display:flex;align-items:center;gap:10px;margin-bottom:14px}.cn-layer__num{width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:var(--cn-text-sm);font-weight:900;color:#fff;flex-shrink:0}.cn-layer__num--green{background:var(--cn-primary)}.cn-layer__num--orange{background:var(--cn-orange, #d35400)}.cn-layer__num--gray{background:#b0b5ba}.cn-layer__title{font-size:var(--cn-text-md);font-weight:700;color:var(--cn-heading);flex:1}.cn-layer__badge{font-size:var(--cn-text-xs);font-weight:700;padding:2px 8px;border-radius:10px;text-transform:uppercase;letter-spacing:.3px;flex-shrink:0}.cn-layer__badge--enforcing{background:var(--cn-green-bg, #e8f5e9);color:var(--cn-green, #2e7d32)}.cn-layer__badge--warn{background:var(--cn-orange-bg, #fff3e0);color:var(--cn-orange, #d35400)}.cn-layer__badge--locked{background:var(--cn-light-bg, #f0f2f5);color:var(--cn-muted)}.cn-layer__badge--platforms{background:#6179e81a;color:var(--cn-info, #6179e8)}.cn-layer__badge--collecting{background:var(--cn-green-bg, #e8f5e9);color:var(--cn-green, #2e7d32)}.cn-layer__metrics{display:flex;gap:24px;margin-bottom:12px}.cn-layer__metric-val{font-size:var(--cn-text-lg);font-weight:700;color:var(--cn-heading);line-height:1.2}.cn-layer__metric-lbl{font-size:var(--cn-text-xs);color:var(--cn-muted);text-transform:uppercase;letter-spacing:.3px}.cn-layer__warn{font-size:var(--cn-text-sm);color:var(--cn-orange, #d35400);font-weight:600;margin-bottom:10px}.cn-layer__warn-muted{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-bottom:10px}.cn-layer__cta{margin-top:8px}.cn-layer__links{display:flex;gap:14px;margin-top:8px}.cn-layer__links a,.cn-layer__links button.cn-layer__links-btn{font-size:var(--cn-text-sm);color:var(--cn-primary);font-weight:600;text-decoration:none}.cn-layer__links a:hover,.cn-layer__links button.cn-layer__links-btn:hover{text-decoration:underline}.cn-layer__link-btn{background:none;border:none;padding:0;cursor:pointer;font-size:var(--cn-text-sm);color:var(--cn-primary);font-weight:600}.cn-layer__link-btn:hover{text-decoration:underline}.cn-blocking-bar-wrap{margin-bottom:10px}.cn-blocking-bar{display:flex;height:8px;border-radius:4px;overflow:hidden;margin-bottom:4px}.cn-blocking-bar__blocked{background:var(--cn-primary)}.cn-blocking-bar__unblocked{background:var(--cn-orange, #d35400)}.cn-blocking-bar__labels{display:flex;justify-content:space-between;font-size:var(--cn-text-xs)}.cn-blocking-bar__lbl-blocked{color:var(--cn-primary);font-weight:700}.cn-blocking-bar__lbl-unblocked{color:var(--cn-orange, #d35400);font-weight:700}.cn-platform-grid{display:flex;flex-direction:column;gap:6px}.cn-platform-item{display:flex;align-items:center;gap:8px;font-size:var(--cn-text-base);color:var(--cn-heading)}.cn-dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px;vertical-align:middle}.cn-dot--green{background:var(--cn-primary)}.cn-dot--gray{background:var(--cn-border)}.cn-dot--yellow{background:var(--cn-secondary, #ffc107)}.cn-lang-bars{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}.cn-lang-row{display:flex;align-items:center;gap:8px}.cn-lang-row__label{font-size:var(--cn-text-sm);color:var(--cn-muted);width:28px;flex-shrink:0;text-align:right}.cn-lang-row__track{flex:1;height:6px;background:var(--cn-light-bg, #f0f2f5);border-radius:3px;overflow:hidden}.cn-lang-row__fill{height:100%;border-radius:3px;background:var(--cn-primary)}.cn-lang-row__pct{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-heading);width:32px}.cn-dom-credentials{margin-top:12px;padding-top:12px;border-top:1px solid var(--cn-border);display:flex;flex-direction:column;gap:8px}.cn-dom-row{display:flex;justify-content:space-between;padding:5px 0;border-bottom:1px solid var(--cn-border);font-size:var(--cn-text-sm);align-items:baseline}.cn-dom-row:last-child{border-bottom:none}.cn-dom-row__k{color:var(--cn-muted)}.cn-dom-row__v{color:var(--cn-heading);font-weight:700;text-align:right}.cn-dom-row__v--mono{font-size:var(--cn-text-sm);font-family:monospace}.cn-pull-config{margin-top:14px;padding-top:14px;border-top:1px solid var(--cn-border)}.cn-pull-config__row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.cn-pull-config__timestamp{font-size:var(--cn-text-xs, .75rem);color:var(--cn-muted);white-space:nowrap}.cn-pull-config__desc{margin:6px 0 0;font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.45}.cn-pull-config__desc--error{color:var(--cn-red, #c0392b)}.cn-conn-hint{display:block;font-size:var(--cn-text-sm);margin:8px 0}.cn-conn-hint.cn-layer__link-btn{margin-bottom:10px;font-weight:600}.cn-conn-hint--returning{color:var(--cn-muted);margin-top:8px;margin-bottom:14px}.cn-conn-hint--returning a{color:var(--cn-primary);text-decoration:none}.cn-conn-hint--returning a:hover{text-decoration:underline}.cn-dom-link{display:block;margin-top:10px;padding-top:8px;border-top:1px solid var(--cn-border);font-size:var(--cn-text-sm);color:var(--cn-primary);font-weight:600;text-decoration:none}.cn-dom-link:hover{text-decoration:underline}.cn-connect-nudge{font-size:var(--cn-text-sm);color:var(--cn-muted);text-align:center;padding:12px 0 4px;line-height:1.5}.cn-connect-nudge strong{color:var(--cn-heading);display:block;margin-bottom:2px}.cn-benefit-list{list-style:none;display:flex;flex-direction:column;gap:8px;padding:0;margin:0}.cn-benefit-item{display:flex;align-items:flex-start;gap:8px;font-size:var(--cn-text-sm);color:var(--cn-text);line-height:1.4}.cn-benefit-icon{width:16px;height:16px;border-radius:50%;background:var(--cn-green-bg, #e8f5e9);color:var(--cn-green, #2e7d32);font-size:var(--cn-text-xs);font-weight:900;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px}.cn-connect-cta{margin-top:16px}.cn-connect-cta__caption{font-size:var(--cn-text-xs);color:var(--cn-muted);text-align:center;margin-top:8px}.cn-usage-bar-wrap{margin-bottom:8px}.cn-usage-bar{height:8px;background:var(--cn-light-bg, #f0f2f5);border-radius:4px;overflow:hidden}.cn-usage-bar__labels{display:flex;justify-content:space-between;font-size:var(--cn-text-sm);margin-bottom:4px}.cn-usage-bar__used{color:var(--cn-heading);font-weight:700}.cn-usage-bar__total{color:var(--cn-muted)}.cn-usage-bar__fill{height:100%;border-radius:4px;background:linear-gradient(90deg,var(--cn-primary),var(--cn-orange, #d35400))}.cn-unlimited-sessions{font-size:var(--cn-text-md);font-weight:700;color:var(--cn-heading);margin-bottom:4px}.cn-unlimited-note{font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-pro-gate-placeholder{min-height:200px}.cn-placeholder-charts{min-height:180px;background:var(--cn-light-bg, #f0f2f5);border-radius:8px}@media(max-width:960px){.cn-page-layout{flex-direction:column}.cn-page-layout .cn-sidebar{width:100%;position:static}.cn-vuln-grid{grid-template-columns:1fr}.cn-score-hero{flex-direction:column;text-align:center}}.cn-dev-switcher{position:fixed;top:40px;right:16px;z-index:99999;background:#1a1a2e;color:#fff;border-radius:8px;padding:10px 12px;min-width:148px;box-shadow:0 4px 16px #0006;font-family:Lato,sans-serif;font-size:var(--cn-text-sm)}.cn-dev-switcher__header{display:flex;align-items:center;gap:5px;margin-bottom:8px}.cn-dev-switcher__icon{font-size:var(--cn-text-sm)}.cn-dev-switcher__title{font-size:var(--cn-text-xs);font-weight:700;letter-spacing:.08em;color:#20c19e;text-transform:uppercase}.cn-dev-switcher__label{font-size:var(--cn-text-xs);color:#8a9199;text-transform:uppercase;letter-spacing:.06em;margin-bottom:5px}.cn-dev-switcher__buttons{display:flex;gap:4px;margin-bottom:2px}.cn-dev-switcher__btn{flex:1;padding:4px 0;border:1px solid #3a3a5c;border-radius:4px;background:#2a2a48;color:#c0c0d0;font-size:var(--cn-text-sm);font-weight:600;cursor:pointer;transition:background .15s,border-color .15s,color .15s}.cn-dev-switcher__btn:hover{background:#3a3a5c;color:#fff}.cn-dev-switcher__btn--active{background:#20c19e;border-color:#20c19e;color:#fff}.cn-dev-switcher__usage{margin-top:8px;border-top:1px solid #2a2a48;padding-top:7px}.cn-dev-switcher__usage-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}.cn-dev-switcher__usage-label{font-size:var(--cn-text-xs);color:#8a9199;text-transform:uppercase;letter-spacing:.06em}.cn-dev-switcher__usage-val{font-size:var(--cn-text-sm);font-weight:700;color:#20c19e}.cn-dev-switcher__slider{width:100%;accent-color:#20c19e;cursor:pointer}.cn-banner-design__footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:16px;padding-top:12px;border-top:1px solid var(--cn-border, #e2e5ea)}.cn-banner-design__status{font-size:var(--cn-text-base)}.cn-banner-design__status--saved{color:var(--cn-green)}.cn-banner-design__status--error{color:var(--cn-red)}.cn-auth-form__error{margin-bottom:12px;padding:10px 14px;background:var(--cn-red-bg, #fdecea);color:var(--cn-red, #e74c3c);border-radius:6px;font-size:var(--cn-text-base)}.cn-consent-log-table__controls{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:12px}.cn-consent-log-table__count{font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-card-grid{display:grid;gap:14px;margin-top:24px}.cn-card-grid--3{grid-template-columns:repeat(3,1fr)}.cn-card-grid--auto{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}@media(max-width:960px){.cn-card-grid--3{grid-template-columns:1fr}}.cn-card{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:16px 18px;display:flex;flex-direction:column}.cn-card--crit{background:var(--cn-crit-card-bg);border-color:var(--cn-crit-border)}.cn-card--warn{background:var(--cn-warn-card-bg);border-color:var(--cn-warn-border)}.cn-card__top{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:8px}.cn-card__icon svg{display:block}.cn-card__dot{width:9px;height:9px;border-radius:50%;margin-top:2px;flex-shrink:0}.cn-card__dot--ok{background:var(--cn-ok-dot)}.cn-card__dot--warn{background:var(--cn-warn-dot)}.cn-card__dot--crit{background:var(--cn-crit-dot)}.cn-card__dot--off{background:var(--cn-off-dot)}.cn-card__main{font-size:var(--cn-text-xl);font-weight:800;line-height:1.15;margin-bottom:2px}.cn-card__main--ok{color:var(--cn-ok-val)}.cn-card__main--warn{color:var(--cn-warn-val)}.cn-card__main--crit{color:var(--cn-crit-val)}.cn-card__main--off{color:var(--cn-off-val);font-weight:500;font-size:var(--cn-text-lg)}.cn-card__sub{font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.4;margin-bottom:10px}.cn-card__sub--warn{color:var(--cn-warn-val)}.cn-card__pills{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:10px}.cn-card__pill{font-size:var(--cn-text-sm);font-weight:600;padding:2px 8px;border-radius:10px}.cn-card__pill--ok{background:var(--cn-ok-pill-bg);color:var(--cn-ok-pill-txt)}.cn-card__pill--warn{background:var(--cn-warn-pill-bg);color:var(--cn-warn-pill-txt)}.cn-card__pill--crit{background:var(--cn-crit-pill-bg);color:var(--cn-crit-pill-txt)}.cn-card__pill--off{background:var(--cn-off-pill-bg);color:var(--cn-off-pill-txt)}.cn-card__foot{margin-top:auto;padding-top:10px;border-top:1px solid var(--cn-border);min-height:30px;display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center}.cn-card__foot-btn{background:none;border:none;font-size:var(--cn-text-sm);font-weight:600;color:var(--cn-primary);cursor:pointer;padding:0}.cn-card__foot-btn:hover{text-decoration:underline}.cn-card__foot a,.cn-card__foot button{font-size:var(--cn-text-sm);font-weight:600;color:var(--cn-link-neutral);text-decoration:underline;text-decoration-color:var(--cn-border);text-underline-offset:2px;background:none;border:none;padding:0;cursor:pointer;font-family:var(--cn-font);display:inline-block}.cn-card__foot a:hover,.cn-card__foot button:hover{color:var(--cn-heading);text-decoration-color:var(--cn-muted)}.cn-card__help{flex-basis:100%;font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-card__help summary{cursor:pointer;font-weight:600;color:var(--cn-link-neutral)}.cn-card__help p{margin:6px 0 0;line-height:1.4}.cn-card__bar-wrap{height:4px;background:var(--cn-light-bg);border-radius:2px;margin:8px 0 6px}.cn-card__bar-fill{height:4px;border-radius:2px}.cn-card__bar-fill--ok{background:var(--cn-ok-dot)}.cn-card__bar-fill--warn{background:var(--cn-warn-dot)}.cn-card__bar-fill--crit{background:var(--cn-crit-dot)}.cn-card__bar-fill--off{background:var(--cn-off-icon)}.cn-card__row{display:flex;justify-content:space-between;padding:4px 0;border-bottom:1px solid var(--cn-border);font-size:var(--cn-text-sm);align-items:baseline}.cn-card__row--last{border-bottom:none}.cn-card__row-k{color:var(--cn-muted);flex-shrink:0}.cn-card__row-v{color:var(--cn-heading);font-weight:700;text-align:right}.cn-card__row-v--muted{color:var(--cn-muted);font-weight:400}.cn-portal-bridge-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:100000;padding:20px}.cn-portal-bridge{background:var(--cn-surface);border-radius:14px;width:100%;max-width:440px;box-shadow:0 20px 60px #0000002e;overflow:hidden;font-family:var(--cn-font)}.cn-portal-bridge__header{background:var(--cn-ok-icon);padding:18px 22px;display:flex;align-items:flex-start;gap:12px}.cn-portal-bridge__header-title{color:#fff;font-size:var(--cn-text-md);font-weight:700;line-height:1.3}.cn-portal-bridge__header-sub{color:#ffffffb3;font-size:var(--cn-text-sm);margin-top:2px}.cn-portal-bridge__body{padding:20px 22px}.cn-portal-bridge__summary{font-size:var(--cn-text-base);color:var(--cn-text);line-height:1.5;margin-bottom:14px}.cn-portal-bridge__context{background:var(--cn-light-bg);border-radius:8px;padding:10px 12px;display:flex;align-items:flex-start;gap:10px;margin-bottom:16px}.cn-portal-bridge__context-dot{width:8px;height:8px;border-radius:50%;background:var(--cn-ok-dot);margin-top:3px;flex-shrink:0}.cn-portal-bridge__context-text{font-size:var(--cn-text-sm);color:var(--cn-heading);line-height:1.5}.cn-portal-bridge__steps{display:flex;flex-direction:column;gap:12px;margin-bottom:18px}.cn-portal-bridge__step{display:flex;gap:12px;align-items:flex-start}.cn-portal-bridge__step-num{width:22px;height:22px;border-radius:50%;background:var(--cn-ok-pill-bg);border:1.5px solid var(--cn-ok-icon);color:var(--cn-ok-icon);font-size:var(--cn-text-sm);font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px}.cn-portal-bridge__step-title{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading);margin-bottom:2px}.cn-portal-bridge__step-desc{font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.4}.cn-portal-bridge__error{background:var(--cn-red-bg);color:var(--cn-red);border-radius:6px;padding:8px 12px;font-size:var(--cn-text-sm);margin-bottom:12px}.cn-portal-bridge__actions{display:flex;flex-direction:column;gap:8px}.cn-portal-bridge__btn{display:block;width:100%;padding:11px 16px;border-radius:8px;font-size:var(--cn-text-base);font-weight:600;cursor:pointer;text-align:center;text-decoration:none;font-family:var(--cn-font);border:none;line-height:1}.cn-portal-bridge__btn--primary{background:var(--cn-ok-icon);color:#fff}.cn-portal-bridge__btn--primary:hover{background:#15803d}.cn-portal-bridge__btn--secondary{background:none;border:1px solid var(--cn-border);color:var(--cn-heading)}.cn-portal-bridge__btn--secondary:hover{background:var(--cn-light-bg)}.cn-portal-bridge__btn--secondary:disabled{opacity:.6;cursor:default}.cn-portal-bridge__dismiss{text-align:center;padding:12px 22px;border-top:1px solid var(--cn-light-bg)}.cn-portal-bridge__dismiss-btn{background:none;border:none;font-size:var(--cn-text-sm);color:var(--cn-muted);cursor:pointer;font-family:var(--cn-font)}.cn-portal-bridge__dismiss-btn:hover{color:var(--cn-heading)}.cn-error-boundary{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:64px 24px;text-align:center}.cn-error-boundary__message{font-size:15px;color:var(--cn-muted, #6c7781);margin-bottom:16px}1 @charset "UTF-8";._container_nva6m_2{display:flex;gap:16px;align-items:flex-start}._grid_nva6m_8{display:grid;grid-template-columns:1fr 1fr;gap:10px;flex:0 0 auto;width:280px}._card_nva6m_16{border:2px solid var(--cn-border, #e2e8f0);border-radius:10px;padding:12px 10px 10px;cursor:pointer;transition:border-color .15s,box-shadow .15s,background .15s;text-align:center;position:relative;background:#fff;-webkit-user-select:none;user-select:none}._card_nva6m_16:hover{border-color:#a0c4c0;box-shadow:0 2px 8px #20c19e1a}._cardSelected_nva6m_32{border-color:var(--cn-primary, #20c19e);background:#20c19e0a;box-shadow:0 0 0 3px #20c19e1f}._geoArt_nva6m_38{width:80px;height:52px;margin:0 auto 8px;display:flex;align-items:center;justify-content:center}._lawName_nva6m_47{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading, #1a1a2e);line-height:1.2}._jurisdiction_nva6m_54{font-size:var(--cn-text-sm);color:var(--cn-muted, #718096);margin-top:2px}._hiddenCheckbox_nva6m_60{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}._checkmark_nva6m_72{position:absolute;top:6px;right:6px;width:16px;height:16px;border-radius:50%;background:var(--cn-primary, #20c19e);display:flex;align-items:center;justify-content:center;font-size:var(--cn-text-xs);color:#fff;font-weight:700}._autoBadge_nva6m_88{position:absolute;top:-8px;left:50%;transform:translate(-50%);background:var(--cn-primary, #20c19e);color:#fff;font-size:var(--cn-text-xs);font-weight:600;padding:2px 6px;border-radius:10px;white-space:nowrap}._detail_nva6m_102{flex:1;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:18px 20px;animation:_slideIn_nva6m_1 .2s ease;min-height:240px}._detailHeader_nva6m_112{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:14px}._detailTitle_nva6m_119{font-size:var(--cn-text-lg);font-weight:700;color:var(--cn-heading, #1a1a2e)}._detailJurisdiction_nva6m_125{font-size:var(--cn-text-sm);color:var(--cn-muted, #718096);margin-top:2px}._detailClose_nva6m_131{background:none;border:none;cursor:pointer;font-size:var(--cn-text-lg);color:#718096;line-height:1;padding:0}._detailClose_nva6m_131:hover{color:#1a1a2e}._detailSection_nva6m_144{margin-bottom:14px}._detailSectionLabel_nva6m_148{font-size:var(--cn-text-sm);font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--cn-primary, #20c19e);margin-bottom:6px}._detailOverview_nva6m_157{font-size:var(--cn-text-sm);color:#4a5568;line-height:1.6}._detailList_nva6m_163{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:4px}._detailListItem_nva6m_172{font-size:var(--cn-text-sm);color:#4a5568;display:flex;gap:6px;align-items:flex-start;line-height:1.4}._detailListItem_nva6m_172:before{content:"✓";color:var(--cn-primary, #20c19e);font-weight:700;flex-shrink:0;margin-top:1px}._detailEnforcement_nva6m_188{font-size:var(--cn-text-sm);color:#a0aec0;border-top:1px solid #e2e8f0;padding-top:10px;margin-top:4px;line-height:1.5}._detailEmpty_nva6m_197{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;min-height:200px;text-align:center;padding:32px}._detailEmptyArrow_nva6m_208{font-size:var(--cn-text-xl);color:#20c19e;opacity:.4;margin-bottom:12px}._detailEmptyText_nva6m_215{font-size:var(--cn-text-md);color:#9ca3af;line-height:1.6;max-width:240px}._detailDnsHelp_nva6m_222{font-size:var(--cn-text-base);color:#6b7280;margin-bottom:8px}._dnsCallout_nva6m_228{display:flex;gap:10px;background:#fffbeb;border:1px solid #f59e0b;border-radius:8px;padding:12px;margin-top:10px}._dnsCalloutIcon_nva6m_238{flex:0 0 auto;font-size:var(--cn-text-lg);line-height:1}._dnsCalloutBody_nva6m_244{flex:1 1 auto;min-width:0}._dnsCalloutTitle_nva6m_249{font-size:var(--cn-text-base);font-weight:700;color:#92400e;margin-bottom:4px}._dnsCalloutHelp_nva6m_256{font-size:var(--cn-text-sm);color:#92400e;margin:0 0 8px;line-height:1.4}._dnsInput_nva6m_263{width:100%;padding:8px 10px;border:1px solid #e0e4e8;border-radius:6px;font-size:var(--cn-text-base);box-sizing:border-box}._dnsInput_nva6m_263:focus{outline:none;border-color:var(--cn-primary, #20c19e);box-shadow:0 0 0 2px #20c19e26}@keyframes _slideIn_nva6m_1{0%{opacity:0;transform:translate(8px)}to{opacity:1;transform:translate(0)}}._panel_t4wb2_1{background:#fff;border:1px solid #dcdcde;border-radius:8px;margin-bottom:20px;overflow:hidden}._panelHeader_t4wb2_9{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #dcdcde;background:#f6f7f7}._panelTitle_t4wb2_18{font-size:var(--cn-text-md);font-weight:600;color:#1d2327;margin:0}._closeBtn_t4wb2_25{background:none;border:none;cursor:pointer;font-size:var(--cn-text-xl);color:#787c82;padding:0 4px;line-height:1}._closeBtn_t4wb2_25:hover{color:#1d2327}._footer_t4wb2_38{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:16px 20px;border-top:1px solid #dcdcde;background:#f6f7f7}._layout_t4wb2_48{display:flex;gap:16px;align-items:flex-start;min-height:380px}._remoteChangedNotice_t4wb2_55{margin-bottom:16px;padding:10px 14px;border:1px solid #f0c33c;border-left-width:4px;border-radius:4px;background:#fcf9e8;color:#1d2327;font-size:var(--cn-text-sm);line-height:1.5}._modeList_t4wb2_67{flex:0 0 220px;width:220px;display:flex;flex-direction:column;gap:12px}._modeSection_t4wb2_75{display:flex;flex-direction:column;gap:6px}._modeSectionLabel_t4wb2_81{font-size:var(--cn-text-sm);font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#787c82;padding:0 2px;margin-bottom:2px}._modeCard_t4wb2_91{width:100%;text-align:left;background:#fff;border:2px solid #e2e8f0;border-radius:10px;padding:12px 14px;cursor:pointer;transition:border-color .15s,box-shadow .15s,background .15s}._modeCard_t4wb2_91:hover{border-color:#a0c4c0;box-shadow:0 2px 8px #20c19e1a}._modeCardActive_t4wb2_106{border-color:#20c19e;background:#20c19e0a;box-shadow:0 0 0 3px #20c19e1f}._modeCardLocked_t4wb2_112{opacity:.7;border-style:dashed;position:relative}._modeCardProOverlay_t4wb2_118{display:flex;align-items:center;gap:4px;margin-top:6px;padding:4px 8px;background:#f59e0b14;border-radius:4px;cursor:pointer;transition:background .15s ease}._modeCardProOverlay_t4wb2_118:hover{background:#f59e0b2e}._lockIconLarge_t4wb2_133{font-size:var(--cn-text-base)}._modeCardProLabel_t4wb2_137{font-size:var(--cn-text-sm);font-weight:600;color:#92400e}._modeCardTop_t4wb2_143{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}._modeCardName_t4wb2_150{font-size:var(--cn-text-base);font-weight:600;color:#1d2327}._modeCardDesc_t4wb2_156{font-size:var(--cn-text-sm);color:#787c82;line-height:1.4}._statusDot_t4wb2_162{display:inline-block;width:8px;height:8px;border-radius:50%;flex-shrink:0}._statusDotOn_t4wb2_170{background:#20c19e}._statusDotOff_t4wb2_174{background:#c3c4c7}._detailCol_t4wb2_178{flex:1;min-width:0}._detail_t4wb2_178{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:18px 20px;animation:_slideIn_t4wb2_1 .18s ease}._detailHeader_t4wb2_191{display:flex;align-items:center;gap:8px;margin-bottom:10px}._detailTitle_t4wb2_198{font-size:var(--cn-text-md);font-weight:700;color:#1d2327}._detailDesc_t4wb2_204{font-size:var(--cn-text-base);color:#4a5568;line-height:1.6;margin:0 0 14px}._detailFooter_t4wb2_211{display:flex;justify-content:flex-end;padding-top:14px;margin-top:14px;border-top:1px solid #e2e8f0}._enableToggle_t4wb2_219{display:inline-flex;align-items:center;gap:10px;cursor:pointer;margin-bottom:16px}._enableToggleInput_t4wb2_227{position:absolute;opacity:0;width:0;height:0}._enableToggleTrack_t4wb2_234{position:relative;display:inline-block;width:36px;height:20px;border-radius:10px;background:#c3c4c7;transition:background .2s;flex-shrink:0}._enableToggleInput_t4wb2_227:checked+._enableToggleTrack_t4wb2_234{background:#20c19e}._enableToggleThumb_t4wb2_248{position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #0003;transition:transform .2s}._enableToggleInput_t4wb2_227:checked~._enableToggleTrack_t4wb2_234 ._enableToggleThumb_t4wb2_248{transform:translate(16px)}._enableToggleLabel_t4wb2_263{font-size:var(--cn-text-base);font-weight:600;color:#1d2327}._signalConfig_t4wb2_269{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:14px 16px;margin-bottom:8px}._signalConfigTitle_t4wb2_277{font-size:var(--cn-text-sm);font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#20c19e;margin-bottom:10px}._groupRow_t4wb2_286{display:flex;align-items:center;justify-content:space-between;padding:6px 0}._groupLabel_t4wb2_293{font-size:var(--cn-text-base);font-weight:500;color:#1d2327}._groupSelect_t4wb2_299{font-size:var(--cn-text-sm);padding:5px 8px;border:1px solid #8c8f94;border-radius:4px;background:#fff;min-width:170px}._groupSelect_t4wb2_299:disabled{opacity:.5;cursor:not-allowed}._groupSelect_t4wb2_299:focus{outline:none;border-color:#20c19e;box-shadow:0 0 0 2px #20c19e26}._groupHint_t4wb2_317{font-size:var(--cn-text-sm);color:#787c82;margin:2px 0 10px;line-height:1.4}._familyTitle_t4wb2_324{font-size:var(--cn-text-sm);font-weight:600;color:#1d2327;margin-top:14px}._familyTitle_t4wb2_324:first-of-type{margin-top:0}._advancedGrid_t4wb2_334{display:flex;flex-direction:column;gap:6px;margin-top:6px;padding-top:8px;border-top:1px solid #f0f0f1}._advancedRow_t4wb2_343{display:flex;align-items:center;justify-content:space-between;padding:4px 0}._advancedLabel_t4wb2_350{font-size:var(--cn-text-sm);color:#4a5568}._subToggles_t4wb2_355{margin-top:10px;padding-top:10px;border-top:1px solid #f0f0f1}._subToggleTitle_t4wb2_361{font-size:var(--cn-text-sm);font-weight:600;color:#787c82;text-transform:uppercase;letter-spacing:.04em;margin-bottom:6px}._subToggleRow_t4wb2_370{display:flex;align-items:center;gap:8px;font-size:var(--cn-text-base);color:#1d2327;cursor:pointer;padding:4px 0}._proGate_t4wb2_380{display:flex;align-items:center;justify-content:space-between;background:#f0faf8;border:1px solid #c3e8e0;border-radius:8px;padding:12px 14px;font-size:var(--cn-text-base);color:#1d2327;gap:12px;margin:8px 0}._proGateLink_t4wb2_394{white-space:nowrap;font-weight:600;color:#20c19e;text-decoration:none}._proGateLink_t4wb2_394:hover{text-decoration:underline}@keyframes _slideIn_t4wb2_1{0%{opacity:0;transform:translate(8px)}to{opacity:1;transform:translate(0)}}._legacyNotice_t4wb2_414{display:flex;flex-direction:column;gap:4px;background:#fdf6e7;border:1px solid #f0d9a0;border-left:3px solid #eab308;border-radius:8px;padding:12px 14px;font-size:var(--cn-text-base);color:#1d2327;margin:8px 0}._legacyNotice_t4wb2_414 strong{font-weight:600}._legacyNotice_t4wb2_414 em{font-style:normal;font-weight:600}._thumb_1g9ys_1{width:160px;height:90px;border-radius:4px;overflow:hidden;border:1px solid var(--cn-color-border);background:#f8f9fa;position:relative;flex-shrink:0}._chrome_1g9ys_12{height:10px;background:#e5e7eb;border-bottom:1px solid #d1d5db;display:flex;align-items:center;padding:0 4px;gap:2px;flex-shrink:0}._dot_1g9ys_23{width:4px;height:4px;border-radius:50%;background:#9ca3af;flex-shrink:0}._urlBar_1g9ys_31{flex:1;height:4px;border-radius:2px;background:#d1d5db;margin-left:3px}._page_1g9ys_39{height:80px;position:relative;overflow:hidden}._lines_1g9ys_45{padding:6px 8px;display:flex;flex-direction:column;gap:3px}._lines_1g9ys_45>div{height:3px;border-radius:2px;background:#d1d5db}._banner_1g9ys_57{position:absolute;display:flex;flex-direction:column;gap:2px;padding:4px 5px 3px;box-shadow:0 -1px 4px #0000001f;animation-fill-mode:both;animation-duration:.45s;animation-timing-function:ease}._bar-bottom_1g9ys_69{bottom:0;left:0;right:0}._bar-top_1g9ys_75{top:0;left:0;right:0}._floating_1g9ys_81{left:8px;right:8px;border-radius:4px}._fixed_1g9ys_87{left:0;right:0}._panel-left_1g9ys_92{left:2px;bottom:2px;width:38%;box-shadow:2px 0 6px #00000026}._panel-right_1g9ys_99{right:2px;bottom:2px;width:38%;box-shadow:-2px 0 6px #00000026}._panelFloating_1g9ys_106{border-radius:4px}._panelFixed_1g9ys_110{top:10px;border-radius:0}._popup_1g9ys_115{top:50%;left:50%;transform:translate(-50%) translateY(-50%);width:68%;border-radius:4px;box-shadow:0 4px 16px #0003}._bannerHeader_1g9ys_124{display:flex;align-items:center;justify-content:space-between;margin-bottom:1px}._toolbarDots_1g9ys_131{display:flex;gap:2px}._toolbarDots_1g9ys_131 span{display:block;width:3px;height:3px;border-radius:50%;background:var(--dot-color, rgba(255, 255, 255, .4))}._pills_1g9ys_143{display:flex;gap:2px;align-items:center;justify-content:center}._pill_1g9ys_143{display:flex;align-items:center;gap:1px;padding:1px 3px;border-radius:20px;border:1px solid currentColor;opacity:.85}._pillDot_1g9ys_160{width:4px;height:4px;border-radius:50%;flex-shrink:0}._saveBtn_1g9ys_167{height:6px;width:38%;margin:1px auto 0;opacity:.9}._footerLinks_1g9ys_174{display:flex;justify-content:space-between;gap:4px;margin-top:1px}._link_1g9ys_181{height:2px;width:35%;border-radius:1px;background:#ffffff59}._anim-slide-bottom_1g9ys_188{animation-name:_huPreviewSlideUp_1g9ys_1}._anim-slide-top_1g9ys_192{animation-name:_huPreviewSlideDown_1g9ys_1}._anim-slide-left_1g9ys_196{animation-name:_huPreviewSlideLeft_1g9ys_1}._anim-slide-right_1g9ys_200{animation-name:_huPreviewSlideRight_1g9ys_1}._anim-slide-center_1g9ys_204{animation-name:_huPreviewScaleIn_1g9ys_1}._anim-fade_1g9ys_208{animation-name:_huPreviewFade_1g9ys_1}@keyframes _huPreviewSlideUp_1g9ys_1{0%{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _huPreviewSlideDown_1g9ys_1{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _huPreviewSlideLeft_1g9ys_1{0%{transform:translate(-100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes _huPreviewSlideRight_1g9ys_1{0%{transform:translate(100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes _huPreviewScaleIn_1g9ys_1{0%{transform:translate(-50%) translateY(-50%) scale(.85);opacity:0}to{transform:translate(-50%) translateY(-50%) scale(1);opacity:1}}@keyframes _huPreviewFade_1g9ys_1{0%{opacity:0}to{opacity:1}}._root_o4a2z_1{position:relative;flex-shrink:0}._scaler_o4a2z_6{width:160px;height:90px;transform-origin:left top}._overlay_o4a2z_12{position:absolute;top:0;right:0;bottom:0;left:0;background:#11182747}._banner_o4a2z_18{position:absolute;display:flex;flex-direction:column;gap:3px;padding:5px 6px;background-color:var(--thumb-bg);box-shadow:0 1px 6px #0000002e}._card_o4a2z_28{left:8px;right:8px;border-radius:6px}._card_o4a2z_28._bottom_o4a2z_33{bottom:4px}._card_o4a2z_28._top_o4a2z_36{top:4px}._edge_o4a2z_40{left:0;right:0;border-radius:0}._edge_o4a2z_40._bottom_o4a2z_33{bottom:0}._edge_o4a2z_40._top_o4a2z_36{top:0}._bar_o4a2z_52{left:0;right:0;flex-direction:row;align-items:center;gap:4px;padding:4px 6px}._bar_o4a2z_52._bottom_o4a2z_33{bottom:0}._bar_o4a2z_52._top_o4a2z_36{top:0}._bar_o4a2z_52 ._heading_o4a2z_66{flex:1;width:auto}._narrow_o4a2z_71{bottom:4px;width:46%;border-radius:6px}._left_o4a2z_77{left:4px}._right_o4a2z_81{right:4px}._modal_o4a2z_85{top:50%;left:50%;width:64%;transform:translate(-50%,-50%);border-radius:6px}._heading_o4a2z_66{display:block;height:4px;width:46%;border-radius:2px;background-color:var(--thumb-ink)}._desc_o4a2z_101{display:block;height:3px;width:92%;border-radius:2px;background-color:var(--thumb-faint)}._descShort_o4a2z_109{width:64%}._row_o4a2z_113{display:flex;flex-wrap:wrap;align-items:center;gap:3px;margin-top:1px}._pill_o4a2z_121{display:block;flex-shrink:0;width:15px;height:7px;border-radius:4px;border:1px solid transparent;border-color:var(--thumb-accent)}._link_o4a2z_131{display:block;flex-shrink:0;width:14px;height:2px;border-radius:1px;background-color:var(--thumb-ink)}.cn-section-label{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.6px}.cn-banner-selector{margin-bottom:28px}.cn-banner-selector__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.cn-banner-selector__portal-link{font-size:var(--cn-text-sm);color:var(--cn-primary);font-weight:600;text-decoration:none}.cn-banner-selector__portal-link:hover{text-decoration:underline}.cn-banner-selector__grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.cn-banner-selector__card{background:var(--cn-surface);border:2px solid var(--cn-border);border-radius:10px;padding:16px 12px 12px;min-height:200px;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.cn-banner-selector__card:hover{transform:translateY(-3px);box-shadow:0 6px 20px #00000017;border-color:#c5ccd4}.cn-banner-selector__card--active{border-color:var(--cn-primary);box-shadow:0 0 0 3px #20c19e26}.cn-banner-selector__card--active:hover{transform:translateY(-3px);box-shadow:0 0 0 3px #20c19e26,0 6px 20px #20c19e1f}.cn-banner-selector__thumb{width:100%;height:90px;background:#e8eaed;border-radius:6px;margin-bottom:10px;position:relative;overflow:hidden}.cn-banner-selector__thumb:before{content:"";position:absolute;top:0;left:0;right:0;height:12px;background:#d0d3d8;border-radius:6px 6px 0 0}.cn-banner-selector__thumb:after{content:"";position:absolute;top:3px;left:8px;width:6px;height:6px;background:#b8bcc4;border-radius:50%}.cn-banner-selector__pos{position:absolute;background:#2c2f35;transition:all .25s ease}.cn-banner-selector__pos.pos-top{top:12px;left:0;right:0;height:16px;width:auto;border-radius:0}.cn-banner-selector__pos.pos-bottom{bottom:0;left:0;right:0;height:18px;width:auto;border-radius:0}.cn-banner-selector__pos.pos-left{top:12px;left:0;bottom:0;width:26%;height:auto;border-radius:0;right:auto}.cn-banner-selector__pos.pos-right{top:12px;right:0;bottom:0;width:26%;height:auto;border-radius:0;left:auto}.cn-banner-selector__pos.pos-popup{top:50%;left:50%;transform:translate(-50%,-40%);width:46%;height:36px;border-radius:4px;bottom:auto;right:auto}.cn-banner-selector__grid--floating .cn-banner-selector__pos.pos-top{top:16px;left:50%;right:auto;transform:translate(-50%);width:56%;height:22px;border-radius:3px}.cn-banner-selector__grid--floating .cn-banner-selector__pos.pos-bottom{bottom:8px;left:50%;right:auto;transform:translate(-50%);width:56%;height:26px;border-radius:3px}.cn-banner-selector__grid--floating .cn-banner-selector__pos.pos-left{top:auto;bottom:6px;left:4px;width:32%;height:44px;border-radius:3px;right:auto}.cn-banner-selector__grid--floating .cn-banner-selector__pos.pos-right{top:auto;bottom:6px;right:4px;width:32%;height:44px;border-radius:3px;left:auto}.cn-banner-selector__grid--floating .cn-banner-selector__pos.pos-popup{top:50%;left:50%;transform:translate(-50%,-40%);width:46%;height:36px;border-radius:4px}.cn-banner-selector__meta{display:flex;align-items:center;justify-content:space-between;margin-bottom:3px}.cn-banner-selector__name{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading)}.cn-banner-selector__active-pill{font-size:var(--cn-text-xs);font-weight:700;padding:2px 7px;border-radius:10px;background:#e8f5e9;color:#2e7d32;text-transform:uppercase;letter-spacing:.3px}.cn-banner-selector__toggle-row{display:flex;align-items:center;gap:14px;margin-top:14px;margin-bottom:6px}.cn-banner-selector__size-label{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading)}.cn-banner-selector__size-opts{display:flex}.cn-banner-selector__size-opt{font-size:var(--cn-text-sm);font-weight:600;padding:5px 16px;cursor:pointer;border:1.5px solid var(--cn-border);background:#fff;color:var(--cn-muted);transition:all .15s;font-family:inherit}.cn-banner-selector__size-opt:first-child{border-radius:16px 0 0 16px}.cn-banner-selector__size-opt:last-child{border-radius:0 16px 16px 0;border-left:none}.cn-banner-selector__size-opt--on{background:var(--cn-primary);color:#fff;border-color:var(--cn-primary)}.cn-banner-selector__size-opt--on+.cn-banner-selector__size-opt{border-left-color:var(--cn-primary)}.cn-banner-selector__size-desc{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-top:4px;line-height:1.4}.cn-banner-design__grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.cn-banner-design__col{display:flex;flex-direction:column;gap:0}.cn-advanced-settings__grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.cn-consent-modes__title{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:10px}.cn-consent-modes__row{display:flex;align-items:center;justify-content:space-between;padding:5px 0;border-bottom:1px solid var(--cn-border);font-size:var(--cn-text-sm)}.cn-consent-modes__row:last-of-type{border-bottom:none}.cn-consent-modes__label{color:var(--cn-muted);display:flex;align-items:center;gap:5px}.cn-consent-modes__value{font-weight:700;color:var(--cn-heading)}.cn-consent-modes__value--off{color:var(--cn-muted);font-weight:400}.cn-consent-modes__note{margin-top:10px;padding-top:8px;border-top:1px solid var(--cn-border);font-size:var(--cn-text-sm)}.cn-consent-modes__note a{color:var(--cn-primary);text-decoration:none}.cn-consent-modes__note a:hover{text-decoration:underline}.cn-banner-summary{margin-bottom:12px}.cn-banner-summary__rows{display:flex;flex-direction:column;gap:4px;margin-top:6px}.cn-banner-summary__row{display:flex;gap:8px;font-size:var(--cn-text-base)}.cn-banner-summary__key{color:var(--cn-muted);font-weight:600;min-width:70px}.cn-banner-summary__key:after{content:":"}.cn-banner-summary__val{color:var(--cn-text)}.cn-banner-summary__note{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-top:8px}.cn-upsell-card{padding:2px 0 4px}.cn-upsell-card__headline{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading);margin:0 0 10px}.cn-upsell-card__features{list-style:none;margin:0 0 14px;padding:0}.cn-upsell-card__features li{font-size:var(--cn-text-sm);color:var(--cn-body);padding:4px 0 4px 18px;position:relative}.cn-upsell-card__features li:before{content:"✓";position:absolute;left:0;color:var(--cn-green, #20c19e);font-weight:700}.cn-upsell-card__cta{display:block;text-align:center;text-decoration:none}.cn-change-badge{display:inline-block;font-size:var(--cn-text-xs);font-weight:700;padding:1px 5px;border-radius:4px;text-transform:uppercase;letter-spacing:.2px;margin-right:4px}.cn-change-badge--banner{background:#20c19e1a;color:var(--cn-primary)}.cn-change-badge--regulation{background:#6179e81a;color:#6179e8}.cn-change-badge--blocking{background:#fff3e0;color:#d35400}.cn-empty-hero{text-align:center;padding:48px 24px;background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;margin-bottom:24px}.cn-empty-hero__icon{display:block;margin:0 auto 20px;width:80px;height:80px}.cn-empty-hero__heading{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);margin-bottom:10px}.cn-empty-hero__sub{font-size:var(--cn-text-md);color:var(--cn-muted);max-width:440px;margin:0 auto 24px;line-height:1.6}.cn-empty-hero__footnote{margin-top:12px;font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-blurred-teaser{position:relative;border-radius:10px;overflow:hidden;margin-bottom:24px}.cn-blurred-teaser__blur{filter:blur(4px);pointer-events:none;-webkit-user-select:none;user-select:none}.cn-blurred-teaser__overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#ffffffbf;gap:10px;padding:24px;text-align:center}.cn-blurred-teaser__overlay-icon{font-size:var(--cn-text-xl);line-height:1}.cn-blurred-teaser__overlay-label{font-size:var(--cn-text-lg);font-weight:700;color:var(--cn-heading)}.cn-blurred-teaser__overlay-sub{font-size:var(--cn-text-base);color:var(--cn-muted);max-width:380px;line-height:1.5}.cn-blurred-teaser__section{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:18px 20px;margin-bottom:16px}.cn-blurred-teaser__section:last-child{margin-bottom:0}.cn-blurred-teaser__section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.cn-blurred-teaser__section-title{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading)}.cn-blurred-teaser__section-meta{font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-blurred-teaser__table{width:100%;border-collapse:collapse;font-size:var(--cn-text-base)}.cn-blurred-teaser__table thead tr{background:#f0f2f5}.cn-blurred-teaser__table th{font-size:var(--cn-text-sm);font-weight:700;text-transform:uppercase;letter-spacing:.4px;color:var(--cn-muted);padding:8px 12px;text-align:left;border-bottom:1px solid var(--cn-border)}.cn-blurred-teaser__table td{padding:8px 12px;border-bottom:1px solid var(--cn-border);color:var(--cn-text)}.cn-blurred-teaser__table td:last-child{border-bottom:none}.cn-blurred-teaser__table tr:last-child td{border-bottom:none}.cn-blurred-teaser__timeline{display:flex;flex-direction:column;gap:12px}.cn-blurred-teaser__tl-row{display:flex;align-items:flex-start;gap:12px}.cn-blurred-teaser__tl-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0;margin-top:3px;background:var(--cn-border)}.cn-blurred-teaser__tl-dot--banner{background:var(--cn-primary)}.cn-blurred-teaser__tl-dot--setting{background:var(--cn-info, #6179e8)}.cn-blurred-teaser__tl-dot--scan{background:var(--cn-yellow, #f5a623)}.cn-blurred-teaser__tl-text{flex:1}.cn-blurred-teaser__tl-what{font-size:var(--cn-text-base);color:var(--cn-heading);display:flex;align-items:center;gap:6px;flex-wrap:wrap}.cn-blurred-teaser__tl-when{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-top:2px}.cn-consent-id{font-family:monospace;font-size:var(--cn-text-sm);color:var(--cn-heading);background:#f0f2f5;padding:2px 6px;border-radius:4px;letter-spacing:.3px}.cn-ip-masked{font-family:monospace;font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-level-pill{display:inline-block;padding:3px 10px;border-radius:12px;font-size:var(--cn-text-sm);font-weight:700;text-transform:capitalize}.cn-level-pill--accept{background:var(--cn-green-bg, #e8faf5);color:var(--cn-green, #20c19e)}.cn-level-pill--custom{background:#6179e81a;color:var(--cn-info, #6179e8)}.cn-level-pill--reject{background:var(--cn-red-bg, #fdecea);color:var(--cn-red, #e74c3c)}.cn-cat-tags{display:flex;flex-wrap:wrap;gap:4px}.cn-cat-tag{display:inline-block;padding:2px 8px;border-radius:10px;font-size:var(--cn-text-xs);font-weight:700;text-transform:uppercase;letter-spacing:.3px}.cn-cat-tag--essential{background:var(--cn-green-bg, #e8faf5);color:var(--cn-green, #20c19e)}.cn-cat-tag--analytics{background:#6179e81a;color:var(--cn-info, #6179e8)}.cn-cat-tag--marketing{background:var(--cn-yellow-bg, #fef7e8);color:var(--cn-yellow, #f5a623)}.cn-cat-tag--functional{background:var(--cn-light-bg, #f0f2f5);color:var(--cn-muted)}.cn-consent-log-table{margin-bottom:28px}.cn-consent-log-table__controls{display:flex;align-items:center;gap:12px;margin-bottom:12px}.cn-consent-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:24px}.cn-consent-stat{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:16px 18px;text-align:center}.cn-consent-stat__value{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);line-height:1.2;margin-bottom:4px}.cn-consent-stat__label{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.4px}.cn-config-timeline{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;overflow:hidden;margin-bottom:24px}.cn-config-timeline__header{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;background:#f0f2f5;border-bottom:1px solid var(--cn-border)}.cn-config-timeline__title{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading)}.cn-config-timeline__period{font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-config-timeline__body{padding:0 18px}.cn-timeline-list{display:flex;flex-direction:column}.cn-timeline-item{display:flex;align-items:flex-start;gap:14px;padding:16px 0;border-bottom:1px solid var(--cn-border)}.cn-timeline-item:last-child{border-bottom:none}.cn-timeline-item__dot-wrap{padding-top:3px;flex-shrink:0}.cn-timeline-item__dot{width:10px;height:10px;border-radius:50%;background:var(--cn-border)}.cn-timeline-item__dot--banner{background:var(--cn-primary)}.cn-timeline-item__dot--setting{background:var(--cn-info, #6179e8)}.cn-timeline-item__dot--scan{background:var(--cn-yellow, #f5a623)}.cn-timeline-item__content{flex:1}.cn-timeline-item__top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:4px}.cn-timeline-item__what{font-size:var(--cn-text-base);font-weight:600;color:var(--cn-heading);display:flex;align-items:center;gap:6px;flex-wrap:wrap}.cn-timeline-item__when{font-size:var(--cn-text-sm);color:var(--cn-muted);white-space:nowrap;flex-shrink:0}.cn-timeline-item__detail{font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.5;margin-bottom:4px}.cn-timeline-item__user{font-size:var(--cn-text-sm);color:var(--cn-muted);font-style:italic}.cn-change-badge{display:inline-block;padding:2px 8px;border-radius:3px;font-size:var(--cn-text-xs);font-weight:700;text-transform:uppercase;letter-spacing:.3px}.cn-change-badge--banner{background:var(--cn-green-bg, #e8faf5);color:var(--cn-green, #20c19e)}.cn-change-badge--setting{background:#6179e81a;color:var(--cn-info, #6179e8)}.cn-change-badge--scan{background:var(--cn-yellow-bg, #fef7e8);color:var(--cn-yellow, #f5a623)}.cn-compliance-evidence{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;overflow:hidden;margin-bottom:24px}.cn-evidence-tabs{display:flex;border-bottom:1px solid var(--cn-border);background:#f0f2f5;padding:0 4px}.cn-evidence-tab{padding:10px 18px;font-size:var(--cn-text-base);font-weight:600;color:var(--cn-muted);background:none;border:none;border-bottom:2px solid transparent;cursor:pointer;font-family:var(--cn-font);display:inline-flex;align-items:center;gap:6px;transition:color .15s,border-color .15s}.cn-evidence-tab:hover{color:var(--cn-heading)}.cn-evidence-tab--active{color:var(--cn-primary);border-bottom-color:var(--cn-primary);background:var(--cn-surface)}.cn-evidence-panel{padding:18px 20px}.cn-evidence-panel--locked{display:flex;align-items:center;justify-content:center;min-height:160px}.cn-evidence-item{display:flex;align-items:flex-start;gap:10px;padding:10px 0;border-bottom:1px solid var(--cn-border);font-size:var(--cn-text-base)}.cn-evidence-item:last-child{border-bottom:none;padding-bottom:0}.cn-evidence-item:first-child{padding-top:0}.cn-evidence-item__icon{width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:var(--cn-text-sm);font-weight:700;flex-shrink:0;margin-top:1px}.cn-evidence-item__icon--pass{background:var(--cn-green-bg, #e8faf5);color:var(--cn-green, #20c19e)}.cn-evidence-item__icon--warn{background:var(--cn-yellow-bg, #fef7e8);color:var(--cn-yellow, #f5a623)}.cn-evidence-item__icon--na{background:#f0f2f5;color:#9ca3af;font-size:var(--cn-text-base);font-weight:400}.cn-evidence-item__text{flex:1;color:var(--cn-text);line-height:1.5}.cn-evidence-lock{text-align:center;padding:20px}.cn-evidence-lock__icon{font-size:var(--cn-text-xl);display:block;margin-bottom:12px}.cn-evidence-lock__msg{font-size:var(--cn-text-base);color:var(--cn-muted);margin:0 0 16px;line-height:1.5;max-width:320px}.cn-export-section{display:flex;flex-direction:column;gap:10px}.cn-export-section--locked{opacity:.7}.cn-export-section__label{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.4px}.cn-retention-info{display:flex;flex-direction:column;gap:2px;padding:10px 0}.cn-retention-info--pro .cn-retention-info__value{color:var(--cn-primary)}.cn-retention-info__value{font-size:var(--cn-text-lg);font-weight:700;color:var(--cn-heading);line-height:1.2}.cn-retention-info__label{font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-retention-info__note{font-size:var(--cn-text-sm);color:var(--cn-muted);margin:6px 0 0;line-height:1.5}.cn-benefit-item__icon{width:18px;height:18px;border-radius:50%;background:var(--cn-green-bg, #e8faf5);color:var(--cn-green, #20c19e);font-size:var(--cn-text-xs);font-weight:900;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px}@media(max-width:960px){.cn-consent-stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:540px){.cn-consent-stats{grid-template-columns:1fr 1fr}.cn-timeline-item__top{flex-direction:column;align-items:flex-start}}.cn-modal__close{top:20px}.cn-step-indicator{padding-right:48px}.cn-wizard-step,.cn-welcome-step{padding:8px 0 4px}.cn-wizard-step__heading,.cn-welcome-step__heading{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);margin:0 0 8px;line-height:1.3}.cn-wizard-step__heading--sm,.cn-welcome-step__heading--sm{font-size:var(--cn-text-lg)}.cn-wizard-step__desc,.cn-welcome-step__body,.cn-welcome-step__sub{font-size:var(--cn-text-md);color:var(--cn-muted);line-height:1.6;margin:0 0 20px}.cn-wizard-step__form-card{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:20px 24px;margin-bottom:24px}.cn-wizard-step__nav{display:flex;align-items:center;padding-top:4px}.cn-wizard-step__nav-spacer{flex:1}.cn-welcome-split{display:grid;grid-template-columns:1fr 280px;gap:24px;align-items:start}.cn-welcome-split__main{display:flex;flex-direction:column;gap:14px}.cn-welcome-step__badge{display:inline-block;background:var(--cn-red-bg, #fdecea);color:var(--cn-red, #c0392b);font-size:var(--cn-text-sm);font-weight:700;padding:4px 10px;border-radius:20px;text-transform:uppercase;letter-spacing:.4px}.cn-risk-sidebar{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:16px 18px}.cn-risk-sidebar__title{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:12px}.cn-risk-item{display:flex;align-items:flex-start;gap:8px;padding:7px 0;border-bottom:1px solid var(--cn-border);font-size:var(--cn-text-sm)}.cn-risk-item:last-child{border-bottom:none}.cn-risk-item--critical .cn-risk-item__icon{color:var(--cn-red, #c0392b);font-weight:900}.cn-risk-item--high .cn-risk-item__icon{color:var(--cn-orange, #d35400);font-weight:900}.cn-risk-item--medium .cn-risk-item__icon{color:var(--cn-yellow, #b7950b);font-weight:900}.cn-risk-item__icon{font-size:var(--cn-text-base);width:16px;text-align:center;flex-shrink:0;margin-top:1px}.cn-risk-item__text{color:var(--cn-heading);line-height:1.4}.cn-auth-or{display:flex;align-items:center;gap:10px;margin:20px 0;color:#9ca3af;font-size:var(--cn-text-base)}.cn-auth-or:before,.cn-auth-or:after{content:"";flex:1;height:1px;background:#e0e4e8}.cn-auth-signin-teaser{border:1px solid #e0e4e8;border-radius:8px;padding:20px 16px;display:flex;flex-direction:column;align-items:center;gap:12px;font-size:var(--cn-text-md);background:#f9fafb;transition:border-color .15s}.cn-auth-signin-teaser:hover{border-color:#20c19e}.cn-auth-signin-teaser__heading{font-weight:600;color:var(--cn-heading);margin:0}.cn-welcome-step--account .cn-form-field__input{padding:11px 14px;font-size:var(--cn-text-md);border-radius:8px}.cn-welcome-step--account .cn-form-field__label{font-size:var(--cn-text-base);font-weight:600;color:var(--cn-heading);text-transform:none;letter-spacing:0}.cn-account-heading{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);text-align:center;margin:0 0 8px;line-height:1.3}.cn-account-subtitle{font-size:var(--cn-text-md);color:#6b7280;text-align:center;margin:0 0 20px}.cn-auth-back-link{background:none;border:none;color:var(--cn-primary);font-size:var(--cn-text-base);font-family:var(--cn-font);cursor:pointer;padding:0;margin-bottom:12px}.cn-auth-back-link:hover{text-decoration:underline}.cn-auth-form{display:flex;flex-direction:column;gap:2px;max-width:440px}.cn-auth-form__terms{display:flex;align-items:flex-start;gap:8px;font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.5;margin:4px 0;cursor:pointer}.cn-auth-form__terms input[type=checkbox]{margin-top:2px;flex-shrink:0;accent-color:var(--cn-primary)}.cn-auth-form__terms a{color:var(--cn-primary);text-decoration:none}.cn-auth-form__terms a:hover{text-decoration:underline}.cn-auth-form__forgot{text-align:right;margin-top:-4px;margin-bottom:4px}.cn-auth-form__forgot a{font-size:var(--cn-text-sm);color:var(--cn-primary);text-decoration:none}.cn-auth-form__forgot a:hover{text-decoration:underline}.cn-auth-form__subtitle{font-size:var(--cn-text-md);color:#6b7280;margin:0 0 24px;text-align:center}.cn-auth-form__actions{display:flex;gap:10px;margin-top:8px}.cn-auth-form__actions .cn-button{width:100%;padding:14px;font-size:var(--cn-text-md)}.cn-auth-form .cn-form-field__label{text-transform:none}.cn-plan-cards{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:24px}.cn-plan-card{background:var(--cn-surface);border:1.5px solid var(--cn-border);border-radius:12px;padding:24px 20px;display:flex;flex-direction:column;gap:16px;position:relative}.cn-plan-card--highlighted{border-color:var(--cn-primary);box-shadow:0 4px 18px #20c19e26}.cn-plan-card__popular-badge{position:absolute;top:-11px;left:50%;transform:translate(-50%);background:var(--cn-primary);color:#fff;font-size:var(--cn-text-xs);font-weight:700;padding:3px 12px;border-radius:20px;white-space:nowrap;text-transform:uppercase;letter-spacing:.4px}.cn-plan-card__name{font-size:var(--cn-text-lg);font-weight:700;color:var(--cn-heading)}.cn-plan-card__price{display:flex;align-items:baseline;gap:4px}.cn-plan-card__price-amount{font-size:var(--cn-text-xl);font-weight:900;color:var(--cn-heading);line-height:1}.cn-plan-card__price-period{font-size:var(--cn-text-base);color:var(--cn-muted)}.cn-plan-card__features{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:7px;flex:1}.cn-plan-card__feature{display:flex;align-items:flex-start;gap:7px;font-size:var(--cn-text-base);color:var(--cn-text);line-height:1.4}.cn-plan-card__feature-icon{color:var(--cn-primary);font-weight:700;font-size:var(--cn-text-sm);flex-shrink:0;margin-top:1px}.cn-plan-card__feature-icon--pro{color:var(--cn-primary)}.cn-welcome-step__back-link{background:none;border:none;color:var(--cn-muted);font-size:var(--cn-text-base);font-family:var(--cn-font);cursor:pointer;padding:0;margin-top:8px}.cn-welcome-step__back-link:hover{color:var(--cn-heading)}.cn-pricing-hero{text-align:center;padding:8px 0 20px}.cn-pricing-hero__heading{font-size:var(--cn-text-xl);font-weight:900;color:var(--cn-heading);margin:0 0 8px}.cn-pricing-hero__sub{font-size:var(--cn-text-md);color:var(--cn-muted);margin:0 auto;max-width:480px;line-height:1.6}.cn-benefit-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:24px}.cn-benefit-card{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:14px 16px;text-align:center}.cn-benefit-card__icon{font-size:var(--cn-text-xl);margin-bottom:6px}.cn-benefit-card__title{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading);margin-bottom:4px}.cn-benefit-card__desc{font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.5}.cn-pricing-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:8px}.cn-pricing-card{background:var(--cn-surface);border:1.5px solid var(--cn-border);border-radius:12px;padding:20px 18px;text-align:center;display:flex;flex-direction:column;gap:12px;position:relative}.cn-pricing-card--popular{border-color:var(--cn-primary);box-shadow:0 4px 18px #20c19e26}.cn-pricing-card__popular-badge{position:absolute;top:-11px;left:50%;transform:translate(-50%);background:var(--cn-primary);color:#fff;font-size:var(--cn-text-xs);font-weight:700;padding:3px 12px;border-radius:20px;white-space:nowrap;text-transform:uppercase;letter-spacing:.4px}.cn-pricing-card__domains{font-size:var(--cn-text-xl);font-weight:900;color:var(--cn-heading);line-height:1}.cn-pricing-card__domains-label{font-size:var(--cn-text-sm);font-weight:600;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.4px;margin-top:-8px}.cn-pricing-card__price{font-size:var(--cn-text-xl);font-weight:900;color:var(--cn-heading);line-height:1.2}.cn-pricing-card__price sup{font-size:var(--cn-text-md);font-weight:700;vertical-align:super}.cn-pricing-card__price sub{font-size:var(--cn-text-sm);font-weight:400;color:var(--cn-muted);vertical-align:baseline}.cn-pricing-card__billed-note{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-top:-6px}.cn-pricing-card__tagline{font-size:11px;color:#64748b;margin-top:2px;text-align:center}.cn-pricing-card .cn-button--outline{border:1.5px solid #d1d5db;background:#fff;color:var(--cn-text)}.cn-pricing-card .cn-button--outline:hover{background:var(--cn-bg-hover, #f8fafc);border-color:#20c19e;color:#20c19e}.cn-pricing-footer__learn-more{text-align:center;margin-top:24px}.cn-pricing-footer__learn-more .cn-link{font-size:13px;color:#6366f1;text-decoration:none;font-weight:500}.cn-pricing-footer__learn-more .cn-link:hover{text-decoration:underline}.cn-pricing-door-label{text-align:center;margin:0 0 12px;font-size:13px;font-weight:600;color:var(--cn-text-muted, #64748b);letter-spacing:.01em}.cn-pricing-portal-door{margin-top:24px;padding:16px 20px;text-align:center;background:var(--cn-bg-subtle, #f8fafc);border:1px solid var(--cn-border, #e2e8f0);border-radius:10px}.cn-pricing-portal-door__title{font-size:14px;font-weight:700;color:var(--cn-text, #1e293b)}.cn-pricing-portal-door__desc{margin:6px auto 12px;max-width:460px;font-size:13px;line-height:1.5;color:var(--cn-text-muted, #64748b)}.cn-pricing-portal-door__link{font-size:13px;font-weight:600;color:#6366f1;text-decoration:none}.cn-pricing-portal-door__link:hover{text-decoration:underline}.cn-pricing-footer__dismiss{text-align:center;margin-top:12px;padding-bottom:8px}.cn-pricing-footer__dismiss .cn-link-btn{background:none;border:none;font-size:13px;color:#94a3b8;cursor:pointer;padding:4px 8px;font-weight:400}.cn-pricing-footer__dismiss .cn-link-btn:hover{color:#64748b;text-decoration:underline}.cn-step-dots{display:flex;align-items:center;justify-content:center;gap:8px;padding:16px;border-top:1px solid var(--cn-border);margin-top:16px}.cn-step-dot{width:8px;height:8px;border-radius:50%;background:var(--cn-border);transition:all .2s}.cn-step-dot--active{background:var(--cn-primary);width:24px;border-radius:4px}.cn-step-dot--done{background:var(--cn-primary)}.cn-choose__heading{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);margin:0 0 24px;text-align:center}.cn-choose__google-notice{margin:-8px 0 20px;padding:12px 14px;border-radius:8px;background:#f5f8ff;border:1px solid #c7d7fe;color:#1e3a8a;font-size:var(--cn-text-sm)}.cn-choose__sub{font-size:var(--cn-text-md);color:var(--cn-muted);text-align:center;margin:0 0 28px}.cn-protection-cards{display:flex;gap:20px;width:100%}.cn-protection-card{flex:1;display:flex;flex-direction:column;border:2px solid var(--cn-border);border-radius:14px;padding:28px 24px;text-align:center;position:relative;transition:all .2s;cursor:default;background:#fff}.cn-protection-card:hover{border-color:#c0c4cc;transform:translateY(-2px);box-shadow:0 6px 20px #0000000f}.cn-protection-card--recommended{border-color:var(--cn-primary);box-shadow:0 4px 16px #20c19e26}.cn-protection-card__risk-tag-row--spacer{visibility:hidden;pointer-events:none;height:36px;margin-bottom:0}.cn-protection-card__risk-tag{display:inline-block;background:var(--cn-red-bg, #fdecea);color:var(--cn-red, #c0392b);font-size:var(--cn-text-xs);font-weight:700;padding:3px 10px;border-radius:10px;margin-bottom:12px;text-transform:uppercase;letter-spacing:.04em}.cn-protection-card__badge{position:absolute;top:-11px;left:50%;transform:translate(-50%);font-size:var(--cn-text-xs);font-weight:700;padding:3px 12px;border-radius:10px;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap}.cn-protection-card__badge--risk{background:#6b7280;color:#fff}.cn-protection-card__badge--rec{background:var(--cn-primary);color:#fff}.cn-protection-card__badge--max{background:#ffc107;color:#1a1a2e}.cn-protection-card__icon{width:56px;height:56px;border-radius:14px;display:flex;align-items:center;justify-content:center;margin:0 auto 16px;font-size:var(--cn-text-xl)}.cn-protection-card__icon--banner{background:#f0f2f5}.cn-protection-card__icon--protect{background:#e6f9f4}.cn-protection-card__icon--comply{background:#fff8e1}.cn-protection-card__title{font-size:var(--cn-text-lg);font-weight:700;color:var(--cn-heading);margin-bottom:6px;line-height:1.3}.cn-protection-card__subtitle{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-bottom:0;line-height:1.5;min-height:40px}.cn-protection-card__price-zone{min-height:88px;margin-top:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%}.cn-protection-card__price-label{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);margin-bottom:4px;margin-top:2px}.cn-protection-card__price{margin-bottom:4px}.cn-protection-card__price-amount{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading)}.cn-protection-card__price-amount sup{font-size:var(--cn-text-md);vertical-align:super}.cn-protection-card__price-period{font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-protection-card__price-note{font-size:var(--cn-text-sm);color:var(--cn-muted);font-weight:600;margin-top:6px;margin-bottom:4px;display:block}.cn-protection-card__price-note--danger{color:var(--cn-red, #c0392b)}.cn-protection-card__price-discount{font-size:var(--cn-text-sm);color:var(--cn-primary);font-weight:600;display:block;margin-top:4px}.cn-protection-card__divider{height:1px;background:var(--cn-border);margin:16px 0}.cn-protection-card__features{list-style:none;padding:0;margin:14px 0 0;text-align:left}.cn-protection-card__feature{padding:5px 0;font-size:var(--cn-text-sm);color:var(--cn-text);display:flex;align-items:flex-start;gap:8px;line-height:1.4}.cn-protection-card__feature--included .cn-protection-card__feature-icon{color:var(--cn-primary)}.cn-protection-card__feature--excluded .cn-protection-card__feature-icon{color:#ccc}.cn-protection-card__feature--excluded{color:var(--cn-muted)}.cn-protection-card__feature--warning .cn-protection-card__feature-icon{color:var(--cn-red, #c0392b)}.cn-protection-card__feature--warning{color:var(--cn-red, #c0392b);font-weight:600}.cn-protection-card__feature-icon{flex-shrink:0;font-size:var(--cn-text-base);margin-top:1px}.cn-protection-card__footer{margin-top:auto;padding-top:20px;display:flex;flex-direction:column;align-items:center;gap:10px;width:100%}.cn-protection-card__btn{width:100%;text-align:center;padding:12px 28px;border-radius:24px;font-family:var(--cn-font);font-size:var(--cn-text-md);font-weight:700;border:none;box-sizing:border-box;cursor:pointer;transition:all .15s}.cn-protection-card__btn--ghost{background:transparent;color:var(--cn-muted);border:2px solid var(--cn-border);padding:10px 26px}.cn-protection-card__btn--ghost:hover{color:var(--cn-heading);border-color:#c0c4cc}.cn-protection-card__btn--primary{background:var(--cn-primary);color:#fff}.cn-protection-card__btn--primary:hover{background:var(--cn-primary-hover)}.cn-protection-card__btn--secondary{background:#ffc107;color:#1a1a2e}.cn-protection-card__btn--secondary:hover{background:#e6ad00}.cn-protection-card__learn-more{background:none;border:none;color:var(--cn-muted);font-size:var(--cn-text-base);font-family:var(--cn-font);cursor:pointer;padding:0;margin-top:10px}.cn-protection-card__learn-more:hover{color:var(--cn-primary)}.cn-warning-modal{background:#fff;border:3px solid var(--cn-red, #c0392b);border-radius:14px;padding:36px 32px;text-align:center;box-shadow:0 8px 40px #c0392b26;max-width:680px;margin:0 auto}.cn-warning-modal__icon{width:72px;height:72px;background:var(--cn-red-bg, #fdecea);border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 20px;font-size:var(--cn-text-xl)}.cn-warning-modal__heading{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-red, #c0392b);margin-bottom:12px}.cn-warning-modal__text{font-size:var(--cn-text-md);color:var(--cn-text);max-width:600px;margin:0 auto 20px;line-height:1.7}.cn-warning-modal__consequences{background:#fdf0ee;border:1px solid #f5cac3;border-radius:10px;padding:20px 24px;margin:0 auto 24px;max-width:600px;text-align:left}.cn-warning-modal__consequences h5{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-red, #c0392b);text-transform:uppercase;letter-spacing:.04em;margin-bottom:10px}.cn-warning-modal__consequences ul{list-style:none;padding:0;margin:0}.cn-warning-modal__consequences li{padding:6px 0;font-size:var(--cn-text-base);color:var(--cn-text);display:flex;align-items:flex-start;gap:10px;border-bottom:1px solid #f5cac3;line-height:1.5}.cn-warning-modal__consequences li:last-child{border-bottom:none}.cn-warning-modal__consequence-icon{color:var(--cn-red, #c0392b);font-size:var(--cn-text-md);flex-shrink:0;margin-top:2px}.cn-warning-modal__checkbox{display:flex;align-items:flex-start;gap:10px;background:#fff;border:2px solid var(--cn-border);border-radius:10px;padding:14px 16px;margin:0 auto 20px;max-width:600px;text-align:left;cursor:pointer;transition:border-color .15s}.cn-warning-modal__checkbox:hover{border-color:var(--cn-red, #c0392b)}.cn-warning-modal__checkbox input[type=checkbox]{width:18px;height:18px;margin-top:2px;flex-shrink:0;accent-color:var(--cn-red, #c0392b)}.cn-warning-modal__checkbox span{font-size:var(--cn-text-base);color:var(--cn-text);line-height:1.5}.cn-warning-modal__checkbox strong{color:var(--cn-red, #c0392b)}.cn-warning-modal__actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.cn-warning-modal__btn{display:inline-block;padding:12px 28px;border-radius:24px;font-family:var(--cn-font);font-size:var(--cn-text-md);font-weight:700;border:none;cursor:pointer;transition:all .15s}.cn-warning-modal__btn--danger{background:var(--cn-red, #c0392b);color:#fff}.cn-warning-modal__btn--danger:hover{background:#a93226}.cn-warning-modal__btn--danger[disabled]{opacity:.4;cursor:not-allowed}.cn-warning-modal__btn--safe{background:var(--cn-primary);color:#fff}.cn-warning-modal__btn--safe:hover{background:var(--cn-primary-hover)}.cn-pro-pricing__hero{text-align:center;margin-bottom:28px}.cn-pro-pricing__heading{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);margin:0 0 8px}.cn-pro-pricing__sub{font-size:var(--cn-text-md);color:var(--cn-muted);margin:0}.cn-pro-pricing__benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:32px}.cn-pro-pricing__benefit{background:#f8fffe;border:1px solid #d4f0e8;border-radius:10px;padding:16px;text-align:center}.cn-pro-pricing__benefit-icon{font-size:var(--cn-text-xl);margin-bottom:8px}.cn-pro-pricing__benefit-title{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading);margin:0 0 4px}.cn-pro-pricing__benefit-desc{font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.4;margin:0}.cn-pro-pricing__cards{display:flex;gap:16px;margin-bottom:16px}.cn-pro-pricing__card{flex:1;border:2px solid var(--cn-border);border-radius:12px;padding:24px 20px;text-align:center;position:relative;transition:all .15s;cursor:pointer;background:#fff}.cn-pro-pricing__card:hover{border-color:#c0c4cc;transform:translateY(-1px);box-shadow:0 4px 12px #0000000f}.cn-pro-pricing__card--popular{border-color:var(--cn-primary);box-shadow:0 4px 16px #20c19e26}.cn-pro-pricing__card-badge{position:absolute;top:-10px;left:50%;transform:translate(-50%);background:var(--cn-primary);color:#fff;font-size:var(--cn-text-xs);font-weight:700;padding:2px 10px;border-radius:10px;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap}.cn-pro-pricing__card-domains{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);line-height:1}.cn-pro-pricing__card-domains-label{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-bottom:12px;display:block}.cn-pro-pricing__card-price{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);margin-bottom:4px}.cn-pro-pricing__card-price sup{font-size:var(--cn-text-md);vertical-align:super}.cn-pro-pricing__card-price sub{font-size:var(--cn-text-sm);font-weight:400;color:var(--cn-muted)}.cn-pro-pricing__card-per-domain{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-bottom:16px;display:block}.cn-pro-pricing__card-btn{width:100%;text-align:center;padding:10px;border-radius:20px;font-family:var(--cn-font);font-size:var(--cn-text-base);font-weight:700;border:2px solid var(--cn-border);background:transparent;color:var(--cn-heading);cursor:pointer;transition:all .15s}.cn-pro-pricing__card-btn:hover{border-color:var(--cn-primary);color:var(--cn-primary)}.cn-pro-pricing__card-btn--primary{background:var(--cn-primary);color:#fff;border-color:var(--cn-primary)}.cn-pro-pricing__card-btn--primary:hover{background:var(--cn-primary-hover);border-color:var(--cn-primary-hover)}.cn-pro-pricing__back{display:inline-flex;align-items:center;gap:6px;font-size:var(--cn-text-base);color:var(--cn-muted);cursor:pointer;margin-top:8px;border:none;background:none;font-family:var(--cn-font)}.cn-pro-pricing__back:hover{color:var(--cn-primary)}.cn-script-blocking{margin:12px 0 8px}.cn-script-blocking__label{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading);margin-bottom:4px}.cn-script-blocking__desc{font-size:var(--cn-text-sm);color:var(--cn-muted);margin:0 0 10px}.cn-script-blocking__tabs{display:flex;gap:0;margin-bottom:8px}.cn-script-blocking__tab{padding:6px 16px;font-size:var(--cn-text-sm);font-weight:600;font-family:var(--cn-font);border:1.5px solid var(--cn-border);background:var(--cn-surface);color:var(--cn-muted);cursor:pointer;transition:all .15s}.cn-script-blocking__tab:first-child{border-radius:6px 0 0 6px}.cn-script-blocking__tab:last-child{border-radius:0 6px 6px 0;border-left:none}.cn-script-blocking__tab--active{background:var(--cn-primary);color:#fff;border-color:var(--cn-primary)}.cn-script-blocking__tab--active+.cn-script-blocking__tab{border-left:none}@media(max-width:760px){.cn-category-grid,.cn-welcome-split,.cn-plan-cards,.cn-benefit-grid,.cn-pricing-cards{grid-template-columns:1fr}.cn-protection-cards{flex-direction:column}.cn-pro-pricing__benefits{grid-template-columns:1fr}.cn-pro-pricing__cards{flex-direction:column}}.cn-payment-step{padding:8px 0 16px}.cn-payment-step__heading{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);margin:0 0 16px;text-align:center}.cn-payment-step__plan-pill{display:inline-block;background:var(--cn-green-bg);color:var(--cn-primary);border:1px solid var(--cn-primary);border-radius:20px;padding:4px 14px;font-size:var(--cn-text-base);font-weight:600;margin:0 auto 20px;text-align:center;width:100%;box-sizing:border-box}.cn-payment-step__error{background:var(--cn-red-bg);color:var(--cn-red);border:1px solid var(--cn-red);border-radius:6px;padding:10px 14px;font-size:var(--cn-text-base);margin-bottom:16px}.cn-payment-step__loading{text-align:center;color:var(--cn-muted);font-size:var(--cn-text-base);padding:32px 0}.cn-payment-step__form{width:100%}.cn-payment-step__field{margin-bottom:14px;flex:1}.cn-payment-step__label{display:block;font-size:var(--cn-text-sm);font-weight:600;color:var(--cn-text);margin-bottom:5px;font-family:var(--cn-font)}.cn-payment-step__input{width:100%;height:40px;padding:0 12px;border:1.5px solid var(--cn-border);border-radius:6px;font-size:var(--cn-text-md);font-family:var(--cn-font);color:var(--cn-text);background:var(--cn-surface);box-sizing:border-box;transition:border-color .15s}.cn-payment-step__input:focus{outline:none;border-color:var(--cn-primary)}.cn-payment-step__hosted-field{height:40px;padding:0 12px;border:1.5px solid var(--cn-border);border-radius:6px;background:var(--cn-surface);box-sizing:border-box;transition:border-color .15s}.cn-payment-step__hosted-field.braintree-hosted-fields-focused{border-color:var(--cn-primary)}.cn-payment-step__hosted-field.braintree-hosted-fields-invalid{border-color:var(--cn-red)}.cn-payment-step__hosted-field.braintree-hosted-fields-valid{border-color:var(--cn-green)}.cn-payment-step__row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.cn-payment-step__braintree-badge{font-size:var(--cn-text-sm);color:var(--cn-muted);text-align:center;margin:8px 0 16px}.cn-payment-step__submit{width:100%;height:44px;font-size:var(--cn-text-md);font-weight:600}.cn-payment-step__back{margin-top:10px;height:44px}.cn-payment-step__back--standalone{margin-top:16px}.cn-auth-form__error{background:var(--cn-red-bg);color:var(--cn-red);border:1px solid var(--cn-red);border-radius:6px;padding:10px 14px;font-size:var(--cn-text-base);margin-bottom:14px}.cn-auth-form__switch-link{background:none;border:none;padding:0;color:var(--cn-red);font-size:var(--cn-text-base);font-weight:600;text-decoration:underline;cursor:pointer;font-family:var(--cn-font)}.cn-auth-form__switch-link:hover{color:var(--cn-primary)}.cn-auth-form__field-hint{margin:-6px 0 10px;font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.4}.cn-auth-form__notice{background:var(--cn-bg-subtle, #f6f7f7);color:var(--cn-text, #1d2327);border:1px solid var(--cn-border, #dcdcde);border-radius:6px;padding:10px 14px;font-size:var(--cn-text-base);margin-bottom:14px}.cn-auth-form__links{display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:16px}.cn-auth-form__switch-link:disabled{color:var(--cn-muted);cursor:default;text-decoration:none}.cn-app-choice{border:0;margin:0 0 12px;padding:0;display:flex;flex-direction:column;gap:8px}.cn-app-choice__option{display:flex;align-items:flex-start;gap:10px;padding:10px 14px;border:1px solid var(--cn-border, #dcdcde);border-radius:6px;cursor:pointer;text-align:left}.cn-app-choice__option--selected{border-color:var(--cn-primary, #2271b1)}.cn-app-choice__option input{margin-top:3px}.cn-app-choice__text{display:flex;flex-direction:column;gap:2px;min-width:0;overflow-wrap:anywhere}.cn-app-choice__name{font-weight:600;color:var(--cn-text, #1d2327)}.cn-app-choice__domain{font-size:var(--cn-text-base);color:var(--cn-muted)}.cn-app-choice__badge{align-self:flex-start;font-size:12px;color:var(--cn-muted);background:var(--cn-bg-subtle, #f6f7f7);border-radius:10px;padding:1px 8px}.cn-app-choice__note{margin:0 0 14px;font-size:var(--cn-text-base);color:var(--cn-muted);text-align:left}.cn-license-select{text-align:center}.cn-license-select__upsell-icon{font-size:var(--cn-text-xl);margin-bottom:12px}.cn-license-select__heading{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);margin:0 0 10px;line-height:1.3;text-align:center}.cn-license-select__sub{font-size:var(--cn-text-md);color:var(--cn-muted);line-height:1.6;max-width:420px;margin:0 auto 20px}.cn-license-select__choose-label{font-size:var(--cn-text-base);color:var(--cn-text);margin:0 0 12px;text-align:left}.cn-license-select__single-card{display:flex;align-items:center;justify-content:space-between;border:1.5px solid var(--cn-primary);border-radius:10px;padding:16px 20px;background:var(--cn-green-bg, #e8faf5);margin-bottom:20px;text-align:left}.cn-license-select__cards{display:flex;flex-direction:column;gap:10px;margin-bottom:20px;text-align:left}.cn-license-select__card{display:flex;align-items:center;gap:12px;border:1.5px solid var(--cn-border);border-radius:10px;padding:14px 16px;cursor:pointer;background:var(--cn-surface);transition:border-color .15s,background .15s}.cn-license-select__card:hover{border-color:var(--cn-primary)}.cn-license-select__card--selected{border-color:var(--cn-primary);background:var(--cn-green-bg, #e8faf5)}.cn-license-select__radio{flex-shrink:0;accent-color:var(--cn-primary);width:16px;height:16px}.cn-license-select__card-body{display:flex;flex-direction:column;gap:2px;flex:1}.cn-license-select__card-name{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading)}.cn-license-select__card-slots{font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-license-select__error{background:var(--cn-red-bg, #fdecea);color:var(--cn-red, #e74c3c);border:1px solid var(--cn-red, #e74c3c);border-radius:6px;padding:10px 14px;font-size:var(--cn-text-base);margin-bottom:14px;text-align:left}.cn-license-select__actions{margin-bottom:12px}.cn-license-select__free-link{background:none;border:none;color:var(--cn-muted);font-size:var(--cn-text-base);font-family:var(--cn-font);cursor:pointer;padding:0;text-decoration:underline}.cn-license-select__free-link:hover{color:var(--cn-text)}.cn-plugin-settings{margin-top:24px}.cn-plugin-settings__actions{display:flex;align-items:center;gap:12px;margin-top:20px;padding-top:16px;border-top:1px solid var(--cn-border, #e2e8f0)}.cn-plugin-settings__saved{color:var(--cn-success, #16a34a);font-size:var(--cn-text-base);font-weight:500}.cn-plugin-settings__actions>.cn-button--secondary:last-child{margin-left:auto}.cn-plugin-settings__reset-confirm{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:12px;padding:12px 16px;border:1px solid var(--cn-warning, #f59e0b);border-radius:6px;background:#fffbeb}.cn-plugin-settings__reset-confirm p{flex-basis:100%;margin:0;font-size:var(--cn-text-base)}.cn-toggle-row{padding:10px 0;border-bottom:1px solid var(--cn-border-light, #f1f5f9)}.cn-toggle-row:last-child{border-bottom:none}.cn-toggle-row__label{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:var(--cn-text-base);font-weight:500;color:var(--cn-text, #1e293b)}.cn-toggle-row__input{width:16px;height:16px;accent-color:var(--cn-primary, #3b82f6);cursor:pointer}.cn-toggle-row__desc{margin-top:4px;padding-left:24px;font-size:var(--cn-text-sm);color:var(--cn-text-muted, #64748b)}.cn-radio-group{padding:8px 0}.cn-radio-group__label{font-size:var(--cn-text-base);font-weight:500;color:var(--cn-text, #1e293b);margin-bottom:6px}.cn-radio-group__options{display:flex;gap:16px;flex-wrap:wrap}.cn-radio-group__option{display:flex;align-items:center;gap:6px;font-size:var(--cn-text-base);color:var(--cn-text, #1e293b);cursor:pointer}.cn-radio-group__option input[type=radio]{accent-color:var(--cn-primary, #3b82f6);cursor:pointer}.cn-opacity-slider{width:100%;height:6px;accent-color:var(--cn-primary, #3b82f6);cursor:pointer}.cn-compliance-behavior__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:16px}@media(max-width:900px){.cn-compliance-behavior__grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:560px){.cn-compliance-behavior__grid{grid-template-columns:1fr}}.cn-compliance-behavior__footer{padding:10px 14px;background:var(--cn-bg-muted, #f8fafc);border-radius:6px;font-size:var(--cn-text-sm);color:var(--cn-text-muted, #64748b);line-height:1.5}.cn-compliance-card__pills{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}.cn-compliance-card__note{font-size:var(--cn-text-sm);color:var(--cn-text-muted, #64748b);margin-top:4px;line-height:1.4}.cn-compliance-empty{padding:24px 20px;border:1px dashed var(--cn-border, #e2e8f0);border-radius:8px;text-align:center}.cn-compliance-empty__icon{font-size:var(--cn-text-xl);margin-bottom:10px}.cn-compliance-empty__title{font-size:var(--cn-text-md);font-weight:600;color:var(--cn-text, #1e293b);margin-bottom:6px}.cn-compliance-empty__body{font-size:var(--cn-text-base);color:var(--cn-text-muted, #64748b);margin-bottom:14px;max-width:320px;margin-left:auto;margin-right:auto}.cn-compliance-empty__link{font-size:var(--cn-text-base);font-weight:600;color:var(--cn-primary, #3b82f6);text-decoration:none}.cn-compliance-empty__link:hover{text-decoration:underline}.cn-rule-builder{margin-top:8px}.cn-rule-builder__empty{padding:10px 14px;background:var(--cn-bg-muted, #f8fafc);border:1px dashed var(--cn-border, #e2e8f0);border-radius:6px;font-size:var(--cn-text-sm);color:var(--cn-text-muted, #64748b);margin:0 0 8px}.cn-rule-builder__add-group{background:none;border:1px dashed var(--cn-border, #e2e8f0);border-radius:6px;padding:8px 14px;cursor:pointer;font-size:var(--cn-text-sm);color:var(--cn-primary, #00a99d);width:100%;margin-top:8px}.cn-rule-builder__add-group:hover{border-color:var(--cn-primary, #00a99d);background:var(--cn-bg-muted, #f8fafc)}.cn-rule-group__or{text-align:center;font-size:11px;font-weight:700;text-transform:uppercase;color:var(--cn-text-muted, #64748b);padding:6px 0;letter-spacing:.05em}.cn-rule-group__and{font-size:11px;font-weight:600;text-transform:uppercase;color:var(--cn-text-muted, #94a3b8);padding:2px 0 2px 4px}.cn-rule-group__card{border:1px solid var(--cn-border, #e2e8f0);border-radius:6px;padding:10px;background:var(--cn-bg-muted, #f8fafc)}.cn-rule-group__add-rule{background:none;border:none;padding:4px 0;cursor:pointer;font-size:var(--cn-text-sm);color:var(--cn-primary, #00a99d)}.cn-rule-group__add-rule:hover{text-decoration:underline}.cn-rule-row{display:flex;gap:6px;align-items:center;margin-bottom:4px}.cn-rule-row select{flex:1;min-width:0;padding:5px 8px;border:1px solid var(--cn-border, #e2e8f0);border-radius:4px;font-size:var(--cn-text-sm);background:#fff}.cn-rule-row__param{flex:1.2}.cn-rule-row__operator{flex:1}.cn-rule-row__value{flex:1.5}.cn-rule-row__remove{background:none;border:none;cursor:pointer;font-size:18px;color:var(--cn-text-muted, #94a3b8);padding:2px 6px;line-height:1;flex-shrink:0}.cn-rule-row__remove:hover{color:#ef4444}.cn-network-managed{opacity:.5;pointer-events:none}.cn-pill-toggle{display:flex;background:var(--cn-light-bg, #f0f2f5);border-radius:24px;padding:4px;width:fit-content}.cn-pill-toggle__btn{flex:1;border:none;background:transparent;border-radius:20px;cursor:pointer;font-size:var(--cn-text-base);font-family:var(--cn-font);font-weight:600;padding:8px 24px;color:var(--cn-muted);transition:all .15s;white-space:nowrap;display:inline-flex;align-items:center;gap:6px}.cn-pill-toggle__btn--active{background:#fff;box-shadow:0 1px 3px #0000001a;color:var(--cn-heading)}.cn-pill-toggle__btn:not(.cn-pill-toggle__btn--active):hover{color:var(--cn-heading)}.cn-pill-toggle__badge{background:linear-gradient(135deg,#f7b731,#f5a623);color:#1a1a1a;font-size:var(--cn-text-xs);font-weight:900;padding:2px 6px;border-radius:3px;text-transform:uppercase;letter-spacing:.3px}.cn-pill-toggle-desc{font-size:var(--cn-text-sm);color:var(--cn-muted);margin:8px 0 6px}.cn-pill-toggle-note{font-size:var(--cn-text-xs);color:var(--cn-text-muted, #64748b);margin-top:12px}.cn-protection-header{margin-bottom:20px}.cn-protection-header__title{font-size:var(--cn-text-xl);font-weight:600;color:#434f58;margin:0 0 4px}.cn-protection-header__subtitle{font-size:var(--cn-text-base);color:#6b7280;margin:0}.cn-first-run{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:24px;margin-bottom:24px;box-shadow:0 1px 4px #0000000f}.cn-first-run__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.cn-first-run__title{font-size:var(--cn-text-lg);font-weight:600;color:#434f58;margin:0}.cn-first-run__dismiss{background:none;border:none;cursor:pointer;font-size:var(--cn-text-xl);color:#6b7280;line-height:1;padding:2px 6px;border-radius:4px}.cn-first-run__dismiss:hover{background:#f3f4f6;color:#434f58}.cn-first-run__progress{display:flex;align-items:center;gap:0;margin-bottom:24px;counter-reset:step}.cn-first-run__step-indicator{display:flex;align-items:center;gap:8px;flex:1;position:relative}.cn-first-run__step-indicator:not(:last-child):after{content:"";display:block;flex:1;height:2px;background:var(--cn-border);margin:0 8px;order:3}.cn-first-run__step-indicator--done .cn-first-run__step-num{background:var(--cn-primary);border-color:var(--cn-primary);color:#fff}.cn-first-run__step-indicator--done .cn-first-run__step-num:before{content:"✓"}.cn-first-run__step-indicator--done:after{background:var(--cn-primary)!important}.cn-first-run__step-indicator--active .cn-first-run__step-num{background:var(--cn-primary);border-color:var(--cn-primary);color:#fff}.cn-first-run__step-indicator--active .cn-first-run__step-label{color:var(--cn-primary);font-weight:600}.cn-first-run__step-num{width:28px;height:28px;border-radius:50%;border:2px solid var(--cn-border);background:#fff;color:#6b7280;font-size:var(--cn-text-sm);font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;order:1;transition:background .2s,border-color .2s}.cn-first-run__step-label{font-size:var(--cn-text-sm);color:#6b7280;order:2;white-space:nowrap}.cn-first-run__body{margin-bottom:20px}.cn-first-run__body h3{font-size:var(--cn-text-md);font-weight:600;color:#434f58;margin:0 0 4px}.cn-first-run__body p{font-size:var(--cn-text-base);color:#6b7280;margin:0 0 16px}.cn-first-run__step-badge{display:inline-block;font-size:var(--cn-text-sm);font-weight:500;color:#6b7280;background:#f1f5f9;padding:2px 8px;border-radius:20px;margin-left:8px;vertical-align:middle}.cn-first-run__nav{display:flex;align-items:center;justify-content:space-between;padding-top:16px;border-top:1px solid var(--cn-border)}.cn-first-run__nav-right{display:flex;align-items:center;gap:8px;margin-left:auto}.cn-inline-panel{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:24px;margin-bottom:24px;box-shadow:0 1px 4px #0000000f}.cn-inline-panel__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.cn-inline-panel__title{font-size:var(--cn-text-lg);font-weight:600;color:#434f58;margin:0}.cn-inline-panel__dismiss{background:none;border:none;cursor:pointer;font-size:var(--cn-text-xl);color:#6b7280;line-height:1;padding:2px 6px;border-radius:4px}.cn-inline-panel__dismiss:hover{background:#f3f4f6;color:#434f58}.cn-inline-panel__body{margin-bottom:20px}.cn-inline-panel__body h3{font-size:var(--cn-text-md);font-weight:600;color:#434f58;margin:0 0 4px}.cn-inline-panel__body p{font-size:var(--cn-text-base);color:#6b7280;margin:0 0 16px}.cn-inline-panel__footer{display:flex;align-items:center;justify-content:space-between;padding-top:16px;border-top:1px solid var(--cn-border)}@media(prefers-reduced-motion:no-preference){@keyframes cn-panel-enter{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.cn-inline-panel{animation:cn-panel-enter .22s cubic-bezier(.16,1,.3,1) both}.cn-inline-panel--closing{animation:none;transition:opacity .16s ease,transform .16s ease;opacity:0;transform:translateY(-6px);pointer-events:none}}.cn-law-selector__grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:16px}@media(max-width:600px){.cn-law-selector__grid{grid-template-columns:1fr}}.cn-law-selector__card{display:flex;align-items:flex-start;gap:10px;border:2px solid var(--cn-border);border-radius:10px;padding:12px 14px;cursor:pointer;background:var(--cn-surface);transition:border-color .15s}.cn-law-selector__card:hover{border-color:var(--cn-primary)}.cn-law-selector__card--active{border-color:var(--cn-primary);background:var(--cn-primary-light, #e6faf5)}.cn-law-selector__checkbox{width:16px;height:16px;margin-top:1px;flex-shrink:0;accent-color:var(--cn-primary)}.cn-law-selector__info{flex:1}.cn-law-selector__name{font-size:var(--cn-text-base);font-weight:600;color:#434f58;margin-bottom:1px}.cn-law-selector__jurisdiction{font-size:var(--cn-text-sm);color:#6b7280;margin-bottom:2px}.cn-law-selector__desc{font-size:var(--cn-text-sm);color:#6b7280;line-height:1.4}.cn-law-selector__dns-url{margin-top:12px;padding:14px;background:#fffbeb;border:1px solid #fde68a;border-radius:10px}.cn-law-selector__dns-label{font-size:var(--cn-text-base);font-weight:600;color:#434f58;margin-bottom:4px;display:block}.cn-law-selector__dns-help{font-size:var(--cn-text-sm);color:#6b7280;margin-bottom:8px;display:block}.cn-law-selector__dns-input{width:100%;padding:8px 10px;border:1px solid var(--cn-border);border-radius:4px;font-size:var(--cn-text-base);box-sizing:border-box}.cn-law-selector__dns-input:focus{outline:none;border-color:var(--cn-primary);box-shadow:0 0 0 2px #20c19e26}.cn-law-selector__dns-required{font-size:var(--cn-text-sm);color:#d63638;margin-top:4px}.cn-compliance-rules__consent-modes{margin-top:16px;border-top:1px solid var(--cn-border);padding-top:16px}.cn-compliance-rules__mode-toggle{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid #f3f4f6}.cn-compliance-rules__mode-toggle:last-child{border-bottom:none}.cn-compliance-rules__mode-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;font-size:var(--cn-text-sm);font-weight:700;margin-right:8px;flex-shrink:0}.cn-compliance-rules__mode-icon--g{background:#ea4335;color:#fff}.cn-compliance-rules__mode-icon--f{background:#1877f2;color:#fff}.cn-compliance-rules__mode-icon--m{background:#00a4ef;color:#fff}.cn-compliance-rules__detected-badge{font-size:var(--cn-text-xs);font-weight:600;color:#0d6efd;background:#e7f1ff;border-radius:20px;padding:2px 7px;margin-left:6px}.cn-compliance-rules__suggestion{background:#f0f9ff;border:1px solid #bae6fd;border-radius:4px;padding:10px 12px;font-size:var(--cn-text-sm);color:#0369a1;margin-bottom:14px}.cn-compliance-rules__portal-link{display:block;font-size:var(--cn-text-sm);color:var(--cn-primary);text-decoration:none;margin-top:14px}.cn-compliance-rules__portal-link:hover{text-decoration:underline}.cn-compliance-rules__actions{margin-top:16px;display:flex;gap:8px;align-items:center}.cn-language-picker__grid{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.cn-language-picker__badge{display:inline-flex;align-items:center;gap:5px;padding:6px 12px;border:1px solid var(--cn-border);border-radius:20px;background:#fff;font-size:var(--cn-text-sm);font-weight:500;color:#434f58;cursor:pointer;transition:border-color .15s,background .15s}.cn-language-picker__badge:hover{border-color:var(--cn-primary)}.cn-language-picker__badge--active{border-color:var(--cn-primary);background:var(--cn-primary-light, #e6faf5);color:#189b7e;font-weight:600}.cn-language-picker__badge--locked{opacity:.45;cursor:pointer;border-color:var(--cn-border);background:#f9fafb;color:#6b7280}.cn-language-picker__badge--locked:hover{border-color:var(--cn-primary);opacity:.65}.cn-language-picker__note{font-size:var(--cn-text-sm);color:#6b7280;margin-bottom:12px;display:block}.cn-language-picker__hint{font-size:var(--cn-text-sm);color:#6b7280;line-height:1.5;margin:0 0 12px;padding:8px 10px;background:#f8fafc;border-left:3px solid var(--cn-border);border-radius:0 4px 4px 0}.cn-language-picker__actions{display:flex;gap:8px;margin-top:12px}.cn-language-picker__error{font-size:var(--cn-text-sm);color:#d63638;margin-top:6px}.cn-dns-url{margin-top:12px}.cn-dns-url label{display:block;font-size:var(--cn-text-base);font-weight:600;color:#434f58;margin-bottom:4px}.cn-dns-url input{width:100%;padding:8px 10px;border:1px solid var(--cn-border);border-radius:4px;font-size:var(--cn-text-base);box-sizing:border-box}.cn-dns-url input:focus{outline:none;border-color:var(--cn-primary);box-shadow:0 0 0 2px #20c19e26}.cn-saved-indicator{font-size:var(--cn-text-sm);color:#166534;font-weight:500}.cn-error-indicator{font-size:var(--cn-text-sm);color:#d63638;font-weight:500}.cn-privacy-source--unavailable .cn-toggle-row__label{opacity:.7}.cn-privacy-source__forms{margin-top:8px}.cn-privacy-source__forms--busy{cursor:wait;opacity:.6}.cn-admin-app input[type=checkbox].cn-privacy-form-toggle{position:relative;width:2.4rem;min-width:2.4rem;height:1.2rem;margin:0;padding:0;border:none;border-radius:9999px;background-color:#64748b60;box-shadow:none;cursor:pointer;-moz-appearance:none;appearance:none;-webkit-appearance:none;transition:background-color .2s ease}.cn-admin-app input[type=checkbox].cn-privacy-form-toggle:before{position:absolute;top:-.05rem;left:-.05rem;width:1.3rem;height:1.3rem;margin:0;border:1px solid rgba(100,116,139,.5);border-radius:9999px;background-color:#fff;box-shadow:0 2px 6px #64748b33;content:"";transition:transform .2s ease}.cn-admin-app input[type=checkbox].cn-privacy-form-toggle:focus{box-shadow:none}.cn-admin-app input[type=checkbox].cn-privacy-form-toggle:checked{background-color:var(--cn-primary)}.cn-admin-app input[type=checkbox].cn-privacy-form-toggle:checked:before{border-color:var(--cn-primary);transform:translate(100%)}.cn-admin-app input[type=checkbox].cn-privacy-form-toggle:disabled{cursor:default;opacity:.4}.cn-privacy-consent__loading,.cn-privacy-consent-logs__desc{font-size:var(--cn-text-sm);color:var(--cn-muted);margin:0 0 12px}.cn-privacy-source__save{margin-top:12px}.cn-banner-panel{display:grid;grid-template-columns:minmax(0,300px) minmax(0,1fr);gap:24px;margin-bottom:24px;padding:20px 22px;background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px}@media(max-width:960px){.cn-banner-panel{grid-template-columns:1fr}}.cn-banner-panel__shot{display:flex;flex-direction:column;gap:12px}.cn-banner-panel__head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}.cn-banner-panel__title{margin:0;font-size:var(--cn-text-lg);font-weight:700;color:var(--cn-heading)}.cn-banner-panel__status{padding:2px 10px;border-radius:10px;font-size:var(--cn-text-sm);font-weight:600}.cn-banner-panel__status--live{background:var(--cn-ok-pill-bg);color:var(--cn-ok-pill-txt)}.cn-banner-panel__status--off{background:var(--cn-off-pill-bg);color:var(--cn-off-pill-txt)}.cn-banner-panel__caption{margin:0;font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.4}.cn-banner-panel__rows{display:flex;flex-direction:column}.cn-banner-panel__managed{margin:0 0 8px;padding:10px 12px;border-radius:6px;background:var(--cn-light-bg);font-size:var(--cn-text-base);color:var(--cn-heading)}.cn-banner-panel__row{display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px;padding:12px 0;border-bottom:1px solid var(--cn-border)}.cn-banner-panel__label{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.04em;padding-top:2px}.cn-banner-panel__value{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0}.cn-banner-panel__chip{padding:2px 10px;border-radius:10px;font-size:var(--cn-text-sm);font-weight:700}.cn-banner-panel__chip--new{background:var(--cn-light-bg);color:var(--cn-info)}.cn-banner-panel__chip--classic{background:var(--cn-off-pill-bg);color:var(--cn-link-neutral)}.cn-banner-panel__note{font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.4}.cn-banner-panel__link{padding:0;border:none;background:none;font-family:var(--cn-font);font-size:var(--cn-text-sm);font-weight:600;color:var(--cn-link-neutral);text-decoration:underline;text-decoration-color:var(--cn-border);text-underline-offset:2px;cursor:pointer}.cn-banner-panel__link:hover{color:var(--cn-heading);text-decoration-color:var(--cn-muted)}.cn-banner-panel__link:disabled{cursor:default;color:var(--cn-muted)}.cn-banner-panel__actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;padding-top:14px}.cn-banner-panel__sync{display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px;font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-banner-panel__sync-failed{flex-basis:100%;color:var(--cn-warn-val)}.cn-banner-panel__preview-help{margin:10px 0 0;font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.4}.cn-style-cards{display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%}.cn-style-cards__group{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px;width:100%}.cn-style-cards__group--readonly .cn-style-cards__card{cursor:default}.cn-style-cards__group--locked{opacity:.55}.cn-style-cards__group--saving{cursor:progress}.cn-style-cards__group--saving .cn-style-cards__card{cursor:progress;opacity:.75}.cn-style-cards__card{display:grid;grid-template-columns:auto 1fr;gap:2px 8px;padding:10px 12px;border:1px solid var(--cn-border);border-radius:8px;background:var(--cn-surface);cursor:pointer}.cn-style-cards__card input[type=radio]{grid-row:span 2;margin:2px 0 0}.cn-style-cards__card--checked{border-color:var(--cn-primary);box-shadow:0 0 0 1px var(--cn-primary)}.cn-style-cards__name{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading)}.cn-style-cards__desc{font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.35}.cn-style-cards__note{font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.4}.cn-style-cards__error{width:100%;box-sizing:border-box;padding:6px 10px;border-radius:6px;background:#fdecea;color:#c0392b;font-size:var(--cn-text-sm);line-height:1.4}.cn-first-run__style{display:flex;flex-direction:column;gap:8px;margin-bottom:20px}.cn-ov-verdict{border:1px solid var(--cn-border);border-radius:10px;padding:16px 18px;margin-bottom:16px}.cn-ov-verdict--ok{background:linear-gradient(180deg,var(--cn-green-bg),var(--cn-surface));border-color:var(--cn-ok-pill-bg)}.cn-ov-verdict--warn{background:linear-gradient(180deg,var(--cn-warn-card-bg),var(--cn-surface));border-color:var(--cn-warn-border)}.cn-ov-verdict--crit{background:linear-gradient(180deg,var(--cn-crit-card-bg),var(--cn-surface));border-color:var(--cn-crit-border)}.cn-ov-verdict--neutral{background:linear-gradient(180deg,#f3f4f6,var(--cn-surface))}.cn-ov-verdict__top{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}.cn-ov-verdict__grade{font-size:var(--cn-text-lg);font-weight:700;color:var(--cn-heading)}.cn-ov-verdict__gap{font-size:var(--cn-text-sm);font-weight:600;padding:2px 8px;border-radius:10px;background:var(--cn-off-pill-bg);color:var(--cn-off-pill-txt)}.cn-ov-verdict--ok .cn-ov-verdict__gap{background:var(--cn-ok-pill-bg);color:var(--cn-ok-pill-txt)}.cn-ov-verdict--warn .cn-ov-verdict__gap{background:var(--cn-warn-pill-bg);color:var(--cn-warn-pill-txt)}.cn-ov-verdict--crit .cn-ov-verdict__gap{background:var(--cn-crit-pill-bg);color:var(--cn-crit-pill-txt)}.cn-ov-verdict__intro{margin:6px 0 0;font-size:var(--cn-text-base);color:var(--cn-text);line-height:1.45}.cn-ov-verdict__count{font-size:var(--cn-text-sm);font-weight:600;padding:2px 8px;border-radius:10px;background:var(--cn-warn-pill-bg);color:var(--cn-warn-pill-txt)}.cn-ov-verdict--crit .cn-ov-verdict__count{background:var(--cn-crit-pill-bg);color:var(--cn-crit-pill-txt)}.cn-ov-verdict__note{margin:6px 0 0;font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.45}.cn-ov-boxes{margin-top:0;margin-bottom:16px}.cn-ov-box__title{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.03em}.cn-card__foot .cn-ov-box__fix{color:var(--cn-primary);text-decoration-color:currentColor}.cn-card__foot .cn-ov-box__fix:hover{color:var(--cn-primary-hover)}.cn-ov-numbers{display:flex;flex-wrap:wrap;gap:12px 32px;align-items:flex-start;background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:14px 18px;margin-bottom:16px}.cn-ov-numbers__foot{flex-basis:100%;display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center;font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-ov-stat{display:flex;flex-direction:column;gap:2px}.cn-ov-stat__v{font-size:var(--cn-text-xl);font-weight:800;color:var(--cn-heading);line-height:1.15}.cn-ov-stat__k{font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-ov-stat__split{display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:4px;font-size:var(--cn-text-sm);color:var(--cn-text)}.cn-ov-steps,.cn-lls{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:14px 18px;margin-bottom:16px}.cn-ov-steps__title,.cn-lls__title{font-size:var(--cn-text-md);font-weight:700;color:var(--cn-heading);margin:0 0 8px}.cn-ov-steps__list{margin:0;padding:0;list-style:none}.cn-ov-steps__item{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 12px;padding:8px 0;border-top:1px solid var(--cn-border);font-size:var(--cn-text-base);color:var(--cn-text)}.cn-ov-steps__item:first-child{border-top:none}.cn-lls__row{display:grid;grid-template-columns:140px 1fr auto;gap:8px 12px;align-items:center;padding:8px 0;border-top:1px solid var(--cn-border)}.cn-lls__row:first-of-type{border-top:none}@media(max-width:782px){.cn-lls__row{grid-template-columns:1fr}}.cn-lls__k{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted)}.cn-lls__v{display:flex;flex-wrap:wrap;gap:5px;font-size:var(--cn-text-base);color:var(--cn-text)}.cn-lls__none{color:var(--cn-muted)}.cn-lls__action{font-size:var(--cn-text-sm);font-weight:600;color:var(--cn-link-neutral);text-decoration:underline;text-decoration-color:var(--cn-border);text-underline-offset:2px;background:none;border:none;padding:0;cursor:pointer;font-family:var(--cn-font);white-space:nowrap}.cn-lls__action:hover{color:var(--cn-heading);text-decoration-color:var(--cn-muted)}@font-face{font-family:Lato;font-style:normal;font-weight:300;font-display:swap;src:url(./lato-300.woff2) format("woff2")}@font-face{font-family:Lato;font-style:normal;font-weight:400;font-display:swap;src:url(./lato-400.woff2) format("woff2")}@font-face{font-family:Lato;font-style:normal;font-weight:700;font-display:swap;src:url(./lato-700.woff2) format("woff2")}@font-face{font-family:Lato;font-style:normal;font-weight:900;font-display:swap;src:url(./lato-900.woff2) format("woff2")}:root{--cn-bg: #f7f8fa;--cn-surface: #ffffff;--cn-primary: #20c19e;--cn-primary-hover: #1baa8a;--cn-heading: #1a1a2e;--cn-text: #434f58;--cn-border: #e0e4e8;--cn-muted: #8a9199;--cn-green: #20c19e;--cn-green-bg: #e8faf5;--cn-yellow: #f5a623;--cn-yellow-bg: #fef7e8;--cn-red: #e74c3c;--cn-red-bg: #fdecea;--cn-orange: #f39c12;--cn-orange-bg: #fef5e7;--cn-secondary: #ffc107;--cn-info: #6179e8;--cn-light-bg: #f0f2f5;--cn-gold: #f5a623;--cn-gold-bg: #fef7e8;--cn-ok-icon: #16a34a;--cn-ok-dot: #16a34a;--cn-ok-pill-bg: #dcfce7;--cn-ok-pill-txt: #15803d;--cn-ok-val: #111827;--cn-warn-icon: #b45309;--cn-warn-dot: #d97706;--cn-warn-pill-bg: #fde68a;--cn-warn-pill-txt:#92400e;--cn-warn-val: #b45309;--cn-crit-icon: #dc2626;--cn-crit-dot: #ef4444;--cn-crit-pill-bg: #fee2e2;--cn-crit-pill-txt:#b91c1c;--cn-crit-val: #dc2626;--cn-crit-card-bg: #fff8f8;--cn-crit-border: #fecaca;--cn-warn-card-bg: #fffbeb;--cn-warn-border: #fde68a;--cn-off-icon: #9ca3af;--cn-off-dot: #d1d5db;--cn-off-pill-bg: #f3f4f6;--cn-off-pill-txt: #6b7280;--cn-off-val: #9ca3af;--cn-link-neutral: #374151;--cn-font: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;--cn-text-xs: 10px;--cn-text-sm: 12px;--cn-text-base: 13px;--cn-text-md: 14px;--cn-text-lg: 18px;--cn-text-xl: 22px}.cn-admin-app{font-family:var(--cn-font);color:var(--cn-text);margin-top:20px}.cn-admin-app *,.cn-admin-app *:before,.cn-admin-app *:after{box-sizing:border-box}.cn-tab-nav{display:flex;background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:6px 6px 0 0;padding:0 16px;margin:0;list-style:none}.cn-tab-nav__item{padding:12px 20px;font-weight:500;font-size:var(--cn-text-md);color:var(--cn-muted);border-bottom:2px solid transparent;background:none;border-top:none;border-left:none;border-right:none;cursor:pointer;transition:color .2s,border-color .2s;font-family:var(--cn-font)}.cn-tab-nav__item:hover{color:var(--cn-heading)}.cn-tab-nav__item--active{color:var(--cn-primary);border-bottom-color:var(--cn-primary)}.cn-tab-content{background:var(--cn-bg);border:1px solid var(--cn-border);border-top:none;border-radius:0 0 6px 6px;padding:24px}.cn-page-layout{display:flex;gap:24px;align-items:flex-start}.cn-page-layout .cn-main{flex:1;min-width:0}.cn-page-layout .cn-sidebar{width:300px;flex-shrink:0;position:sticky;top:32px}.cn-section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.cn-section-header h2{font-size:var(--cn-text-base);font-weight:600;color:var(--cn-muted);margin:0;text-transform:uppercase;letter-spacing:.5px}.cn-section-header a{font-size:var(--cn-text-base);color:var(--cn-primary);text-decoration:none}.cn-section-header a:hover{color:var(--cn-primary-hover);text-decoration:underline}.cn-side-card{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:20px;margin-bottom:16px}.cn-side-card h3{font-size:var(--cn-text-md);font-weight:600;color:var(--cn-heading);margin:0 0 12px}.cn-side-card ul{list-style:none;margin:0;padding:0}.cn-side-card ul li{margin-bottom:8px}.cn-side-card ul li a{color:var(--cn-primary);text-decoration:none;font-size:var(--cn-text-md)}.cn-side-card ul li a:hover{color:var(--cn-primary-hover);text-decoration:underline}.cn-button{display:inline-flex;align-items:center;justify-content:center;padding:6px 14px;border-radius:20px;font-size:var(--cn-text-sm);font-weight:700;font-family:var(--cn-font);cursor:pointer;border:none;transition:background .2s,box-shadow .2s;text-decoration:none}.cn-button--sm{font-size:var(--cn-text-sm);padding:4px 12px}.cn-button--md{font-size:var(--cn-text-sm);padding:6px 14px}.cn-button--lg{font-size:var(--cn-text-md);padding:9px 24px}.cn-button--primary{background:var(--cn-primary);color:#fff}.cn-button--primary:hover{background:var(--cn-primary-hover)}.cn-button--outline{background:transparent;color:var(--cn-muted);border:1.5px solid var(--cn-border)}.cn-button--outline:hover{border-color:var(--cn-muted);color:var(--cn-heading)}.cn-button--upgrade{background:linear-gradient(135deg,#f7b731,#f5a623);color:#1a1a1a}.cn-button--upgrade:hover{filter:brightness(1.05)}.cn-button--warn{background:var(--cn-orange);color:#fff}.cn-button--warn:hover{background:#c0470a}.cn-button--ghost{background:transparent;color:var(--cn-muted);border:1.5px solid var(--cn-border)}.cn-button--ghost:hover{color:var(--cn-heading);border-color:var(--cn-muted)}.cn-button--block{width:100%;display:block;text-align:center}.cn-button--outline-primary{border:1px solid var(--cn-primary);color:var(--cn-primary);background:transparent}.cn-button--outline-primary:hover{background:var(--cn-primary);color:#fff}.cn-pro-badge{display:inline-block;background:linear-gradient(135deg,#f7b731,#f5a623);color:#1a1a1a;font-size:var(--cn-text-xs);font-weight:900;text-transform:uppercase;letter-spacing:.3px;padding:1px 5px;border-radius:3px}.cn-tier-gate{position:relative}.cn-tier-gate__content{filter:blur(2px);pointer-events:none;-webkit-user-select:none;user-select:none}.cn-tier-gate__overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:#ffffffb3}.cn-tier-gate__cta{text-align:center;padding:20px}.cn-tier-gate__cta p{margin:8px 0 16px;color:var(--cn-text);font-size:var(--cn-text-base)}.cn-tier-gate-inline{display:flex;align-items:flex-start;gap:14px;padding:16px 18px;background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;margin-bottom:20px}.cn-tier-gate-inline svg{flex-shrink:0;margin-top:2px}.cn-tier-gate-inline p{margin:4px 0 0;color:var(--cn-muted);font-size:var(--cn-text-sm)}.cn-compliance-hero{text-align:center;padding:48px 24px;background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px}.cn-compliance-hero h3{font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading);margin:16px 0 8px}.cn-compliance-hero p{color:var(--cn-muted);font-size:var(--cn-text-md);max-width:480px;margin:0 auto 24px;line-height:1.6}.cn-compliance-grade{display:inline-flex;align-items:center;justify-content:center;width:80px;height:80px;border-radius:50%;background:var(--cn-red-bg);border:3px solid var(--cn-red)}.cn-compliance-grade__letter{font-size:var(--cn-text-xl);font-weight:900;color:var(--cn-red)}.cn-conn-error{color:var(--cn-red);margin:8px 0}.cn-inline-notice{margin-bottom:16px;padding:12px 14px;border-radius:8px;border:1px solid var(--cn-border);background:var(--cn-surface);display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.cn-inline-notice--success{border-color:#b7ebc6;background:#f6fff8}.cn-inline-notice--warning{border-color:#fde68a;background:#fffbea}.cn-inline-notice--info{background:#f6f7fb;border-color:var(--cn-border)}.cn-inline-notice__message{font-size:var(--cn-text-md)}.cn-inline-notice--success .cn-inline-notice__message{color:#1e4620}.cn-inline-notice--warning .cn-inline-notice__message{color:#92400e}.cn-inline-notice--info .cn-inline-notice__message{color:#334155;font-size:var(--cn-text-base)}.cn-inline-notice__actions{display:flex;gap:12px;align-items:center}.cn-footer{margin-top:32px;padding-top:16px;border-top:1px solid var(--cn-border);display:flex;align-items:center;justify-content:space-between;font-size:var(--cn-text-base);color:var(--cn-muted)}.cn-footer a{color:var(--cn-primary);text-decoration:none;margin-left:16px}.cn-footer a:hover{color:var(--cn-primary-hover);text-decoration:underline}.cn-footer__sync{margin-left:12px;opacity:.75}.cn-footer__sync--failed{color:var(--cn-warning, #b26b00);opacity:1}.cn-footer__sync-retry{background:none;border:0;padding:0;color:var(--cn-primary);cursor:pointer;font-size:inherit;text-decoration:underline}.cn-footer__sync-retry:hover{color:var(--cn-primary-hover)}.cn-modal-overlay{position:fixed!important;top:0!important;right:0!important;bottom:0!important;left:0!important;background:#0009!important;z-index:100000!important;display:flex!important;align-items:center;justify-content:center;padding:32px}.cn-modal{background:var(--cn-surface);border-radius:12px;width:100%;overflow:visible;box-shadow:0 20px 60px #0000004d;position:relative}.cn-modal__close{position:absolute;top:16px;right:20px;background:none;border:none;font-size:var(--cn-text-xl);color:var(--cn-muted);cursor:pointer;line-height:1;padding:4px 8px;z-index:1}.cn-modal__close:hover{color:var(--cn-heading)}.cn-modal__header{padding:24px 36px 0;font-size:var(--cn-text-xl);font-weight:700;color:var(--cn-heading)}.cn-modal__content{padding:36px;overflow-y:auto;max-height:calc(100vh - 140px)}.cn-wizard-shell{display:flex;flex-direction:column}.cn-wizard-shell__body{flex:1;overflow-y:auto}.cn-wizard-shell__nav{display:flex;align-items:center;padding-top:16px;border-top:1px solid var(--cn-border);margin-top:16px}.cn-wizard-shell__spacer{flex:1}.cn-accordion{margin-bottom:24px}.cn-accordion__summary{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.6px;cursor:pointer;-webkit-user-select:none;user-select:none;display:flex;align-items:center;justify-content:space-between;padding:10px 14px;background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;list-style:none;transition:border-color .15s,background .15s}.cn-accordion__summary::-webkit-details-marker{display:none}.cn-accordion__summary::marker{display:none}.cn-accordion__summary:hover{border-color:#c5ccd4;background:#f0f2f5}.cn-accordion[open]>.cn-accordion__summary{border-radius:10px 10px 0 0;border-bottom-color:var(--cn-border);background:var(--cn-surface)}.cn-accordion__left{display:flex;align-items:center;gap:8px}.cn-accordion__title{font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.6px;font-size:var(--cn-text-sm)}.cn-accordion__subtitle{color:var(--cn-text);font-weight:400;text-transform:none;letter-spacing:0;font-size:var(--cn-text-base)}.cn-accordion__chevron{font-size:var(--cn-text-xs);color:var(--cn-muted);transition:transform .2s;flex-shrink:0}.cn-accordion[open] .cn-accordion__chevron{transform:rotate(180deg)}.cn-accordion__body{background:var(--cn-surface);border:1px solid var(--cn-border);border-top:none;border-radius:0 0 10px 10px;padding:16px 18px}.cn-form-field{margin-bottom:12px}.cn-form-field:last-child{margin-bottom:0}.cn-form-field__label{display:block;font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.4px;margin-bottom:4px}.cn-form-field__req{color:#ff4848;margin-left:2px}.cn-form-field__input{width:100%;padding:7px 10px;font-size:var(--cn-text-base);font-family:var(--cn-font);border:1.5px solid var(--cn-border);border-radius:6px;color:var(--cn-heading);background:var(--cn-surface);transition:border-color .15s;outline:none}.cn-form-field__input:focus{border-color:var(--cn-primary)}.cn-form-field__input--error{border-color:#ff4848}.cn-form-field__textarea{resize:vertical;min-height:60px}.cn-form-field__select{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;padding-right:32px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a9199' d='M6 8L1 3h10z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}.cn-form-field__error{font-size:var(--cn-text-sm);color:#ff4848;margin-top:5px}.cn-form-field__helper{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-top:5px}.cn-form-readonly{margin-bottom:12px}.cn-form-readonly:last-child{margin-bottom:0}.cn-form-readonly__label{display:block;font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.4px;margin-bottom:4px}.cn-form-readonly__value{display:block;padding:7px 10px;font-size:var(--cn-text-base);font-family:var(--cn-font);border:1.5px solid var(--cn-border);border-radius:6px;color:var(--cn-heading);background:var(--cn-light-bg)}.cn-form-readonly__value--muted{color:var(--cn-muted)}.cn-form-readonly__link{color:var(--cn-primary);text-decoration:none}.cn-form-readonly__link:hover{color:var(--cn-primary-hover);text-decoration:underline}.cn-form-readonly>.cn-form-readonly__link{display:inline-block;margin-top:6px;font-size:var(--cn-text-sm)}.cn-color-picker__row{display:flex;align-items:center;gap:8px}.cn-color-picker__swatch{width:28px;height:28px;border-radius:6px;border:1.5px solid var(--cn-border);cursor:pointer;flex-shrink:0;padding:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.cn-color-picker__swatch::-webkit-color-swatch-wrapper{padding:0}.cn-color-picker__swatch::-webkit-color-swatch{border:none;border-radius:4px}.cn-data-table{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;overflow:hidden}.cn-data-table__table{width:100%;border-collapse:collapse}.cn-data-table__header{background:#f0f2f5}.cn-data-table__th{font-size:var(--cn-text-sm);font-weight:700;text-transform:uppercase;letter-spacing:.4px;color:var(--cn-muted);padding:10px 14px;text-align:left;border-bottom:1px solid var(--cn-border)}.cn-data-table__th--sortable{cursor:pointer;-webkit-user-select:none;user-select:none}.cn-data-table__th--sortable:hover{color:var(--cn-heading)}.cn-data-table__sort{margin-left:4px;font-size:var(--cn-text-xs);color:var(--cn-border)}.cn-data-table__sort--active{color:var(--cn-primary)}.cn-data-table__td{font-size:var(--cn-text-base);padding:10px 14px;border-bottom:1px solid var(--cn-border);color:var(--cn-text)}.cn-data-table__row--expandable{cursor:pointer}.cn-data-table__row--expandable:hover,.cn-data-table__row--expanded{background:#f9fafb}.cn-data-table__expanded{padding:12px 14px;background:#f0f2f5;font-size:var(--cn-text-sm)}.cn-data-table__empty{text-align:center;color:var(--cn-muted);font-style:italic;padding:32px 14px}.cn-data-table__pagination{display:flex;align-items:center;justify-content:center;gap:12px;padding:12px;border-top:1px solid var(--cn-border)}.cn-data-table__page-btn{width:28px;height:28px;border-radius:6px;border:1px solid var(--cn-border);background:var(--cn-surface);cursor:pointer;font-size:var(--cn-text-sm);color:var(--cn-heading);display:flex;align-items:center;justify-content:center}.cn-data-table__page-btn:hover:not(:disabled){border-color:var(--cn-primary);color:var(--cn-primary)}.cn-data-table__page-btn:disabled{opacity:.4;cursor:not-allowed}.cn-data-table__page-info{font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-date-range{display:flex;align-items:center;gap:12px}.cn-date-range__input{width:auto}.cn-date-range__separator{font-size:var(--cn-text-base);color:var(--cn-muted)}.cn-date-range__limit{font-size:var(--cn-text-sm);color:var(--cn-text);font-weight:600;background:#eef2ff;border:1px solid #c7d2fe;border-radius:999px;padding:3px 8px;line-height:1}.cn-progress-bar-wrap{margin-bottom:8px}.cn-progress-bar{height:8px;background:#f0f2f5;border-radius:4px;overflow:hidden}.cn-progress-bar__fill{height:100%;border-radius:4px;transition:width .3s}.cn-progress-bar__fill--primary{background:var(--cn-primary)}.cn-progress-bar__fill--warning{background:linear-gradient(90deg,var(--cn-primary),var(--cn-orange))}.cn-progress-bar__fill--danger{background:var(--cn-red)}.cn-progress-bar__label{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-top:4px}.cn-step-indicator{display:flex;align-items:center;margin-bottom:28px}.cn-step-indicator__item{display:flex;align-items:center;flex:1}.cn-step-indicator__circle{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:var(--cn-text-base);font-weight:700;flex-shrink:0;border:2px solid var(--cn-border);background:var(--cn-surface);color:var(--cn-muted);position:relative;z-index:1;transition:all .2s}.cn-step-indicator__circle--active{background:var(--cn-primary);border-color:var(--cn-primary);color:#fff;box-shadow:0 0 0 4px #20c19e26}.cn-step-indicator__circle--done{background:var(--cn-primary);border-color:var(--cn-primary);color:#fff}.cn-step-indicator__label{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);white-space:nowrap;margin-left:8px;text-transform:uppercase;letter-spacing:.4px}.cn-step-indicator__label--active{color:var(--cn-primary)}.cn-step-indicator__label--done{color:var(--cn-heading)}.cn-step-indicator__connector{flex:1;height:2px;background:var(--cn-border);margin:0 8px}.cn-step-indicator__connector--done{background:var(--cn-primary)}.cn-score-hero{display:flex;align-items:center;gap:16px;background:#fef2f2;border:1px solid #fca5a5;border-radius:10px;padding:16px 20px;margin-bottom:20px}.cn-score-hero__icon{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:56px;height:56px;color:#dc2626}.cn-score-hero__icon svg{width:100%;height:100%;display:block}.cn-score-hero__body{flex:1;min-width:0}.cn-score-hero__title{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:4px;white-space:normal;overflow-wrap:anywhere}.cn-score-hero__summary{font-size:var(--cn-text-lg);font-weight:700;color:#991b1b;margin-bottom:4px;white-space:normal;overflow-wrap:anywhere}.cn-score-hero__sub{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-top:6px;white-space:normal;overflow-wrap:anywhere}.cn-score-hero__actions{flex-shrink:0;margin-left:16px;align-self:center}.cn-score-hero__cta{display:inline-block;max-width:100%;font-family:var(--cn-font);font-size:var(--cn-text-md);font-weight:700;padding:9px 24px;border-radius:20px;cursor:pointer;border:none;background:linear-gradient(135deg,#f7b731,#f5a623);color:#1a1a1a;white-space:nowrap;transition:filter .2s}.cn-score-hero__cta:hover{filter:brightness(1.05)}.cn-alert{display:flex;gap:16px;padding:16px 20px;border-radius:10px;border:1px solid var(--cn-border);background:var(--cn-surface);align-items:center}.cn-alert--warning{border-color:#fcd34d;background:#fffbeb}.cn-alert--warning .cn-alert__icon{color:#d97706}.cn-alert--warning .cn-alert__title{color:#92400e}.cn-alert--warning .cn-alert__desc{color:#b45309}.cn-alert--crit{border-color:#fca5a5;background:#fef2f2}.cn-alert--crit .cn-alert__icon{color:#dc2626}.cn-alert--crit .cn-alert__title{color:#991b1b}.cn-alert--crit .cn-alert__desc{color:#b91c1c}.cn-alert--info{border-color:#99f0dd;background:#f0fdf9}.cn-alert--info .cn-alert__icon{color:var(--cn-primary)}.cn-alert--info .cn-alert__title{color:#065f46}.cn-alert--info .cn-alert__desc{color:#047857}.cn-alert__icon{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:28px;height:28px}.cn-alert__icon svg{width:100%;height:100%}.cn-alert__content{flex:1}.cn-alert__title{margin:0 0 4px;font-size:var(--cn-text-base);font-weight:700;line-height:1.3}.cn-alert__desc{margin:0;font-size:var(--cn-text-sm);line-height:1.5}.cn-alert__actions{flex-shrink:0;margin-left:16px;align-self:center}.cn-alert__dismiss{background:none;border:none;cursor:pointer;color:inherit;opacity:.5;padding:4px;flex-shrink:0}.cn-alert__dismiss:hover{opacity:1}.cn-alert__dismiss svg{display:block}.cn-vuln-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:24px}.cn-vuln-card{background:var(--cn-surface);border-radius:10px;padding:16px 18px;border:1px solid var(--cn-border);border-left:4px solid var(--cn-border)}.cn-vuln-card--ok{border-left-color:var(--cn-primary)}.cn-vuln-card--critical{border-left-color:var(--cn-red, #c0392b);background:#fff8f8}.cn-vuln-card--high{border-left-color:var(--cn-orange, #f39c12);background:#fffaf4}.cn-vuln-card--exposed{border-left-color:var(--cn-red, #c0392b);background:#fff8f8}.cn-vuln-card__top{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}.cn-vuln-card__label{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading)}.cn-vuln-card__value{font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.5}.cn-vuln-card__value b{color:var(--cn-heading)}.cn-vuln-card__sub{margin-top:4px;font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-vuln-card__risk{display:inline-flex;align-items:center;gap:4px;font-size:var(--cn-text-xs);font-weight:700;padding:2px 8px;border-radius:10px;margin-top:6px}.cn-vuln-card__risk--critical{color:var(--cn-red, #c0392b);background:var(--cn-red-bg, #fdecea)}.cn-vuln-card__risk--high{color:#9a3412;background:#fff1e6}.cn-vuln-cta{margin-bottom:24px}.cn-vuln-cta__btn{font-size:var(--cn-text-base);font-weight:600}.cn-layer{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:18px 20px;margin-bottom:14px}.cn-layer--locked{opacity:.85}.cn-layer__hdr{display:flex;align-items:center;gap:10px;margin-bottom:14px}.cn-layer__num{width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:var(--cn-text-sm);font-weight:900;color:#fff;flex-shrink:0}.cn-layer__num--green{background:var(--cn-primary)}.cn-layer__num--orange{background:var(--cn-orange, #d35400)}.cn-layer__num--gray{background:#b0b5ba}.cn-layer__title{font-size:var(--cn-text-md);font-weight:700;color:var(--cn-heading);flex:1}.cn-layer__badge{font-size:var(--cn-text-xs);font-weight:700;padding:2px 8px;border-radius:10px;text-transform:uppercase;letter-spacing:.3px;flex-shrink:0}.cn-layer__badge--enforcing{background:var(--cn-green-bg, #e8f5e9);color:var(--cn-green, #2e7d32)}.cn-layer__badge--warn{background:var(--cn-orange-bg, #fff3e0);color:var(--cn-orange, #d35400)}.cn-layer__badge--locked{background:var(--cn-light-bg, #f0f2f5);color:var(--cn-muted)}.cn-layer__badge--platforms{background:#6179e81a;color:var(--cn-info, #6179e8)}.cn-layer__badge--collecting{background:var(--cn-green-bg, #e8f5e9);color:var(--cn-green, #2e7d32)}.cn-layer__metrics{display:flex;gap:24px;margin-bottom:12px}.cn-layer__metric-val{font-size:var(--cn-text-lg);font-weight:700;color:var(--cn-heading);line-height:1.2}.cn-layer__metric-lbl{font-size:var(--cn-text-xs);color:var(--cn-muted);text-transform:uppercase;letter-spacing:.3px}.cn-layer__warn{font-size:var(--cn-text-sm);color:var(--cn-orange, #d35400);font-weight:600;margin-bottom:10px}.cn-layer__warn-muted{font-size:var(--cn-text-sm);color:var(--cn-muted);margin-bottom:10px}.cn-layer__cta{margin-top:8px}.cn-layer__links{display:flex;gap:14px;margin-top:8px}.cn-layer__links a,.cn-layer__links button.cn-layer__links-btn{font-size:var(--cn-text-sm);color:var(--cn-primary);font-weight:600;text-decoration:none}.cn-layer__links a:hover,.cn-layer__links button.cn-layer__links-btn:hover{text-decoration:underline}.cn-layer__link-btn{background:none;border:none;padding:0;cursor:pointer;font-size:var(--cn-text-sm);color:var(--cn-primary);font-weight:600}.cn-layer__link-btn:hover{text-decoration:underline}.cn-blocking-bar-wrap{margin-bottom:10px}.cn-blocking-bar{display:flex;height:8px;border-radius:4px;overflow:hidden;margin-bottom:4px}.cn-blocking-bar__blocked{background:var(--cn-primary)}.cn-blocking-bar__unblocked{background:var(--cn-orange, #d35400)}.cn-blocking-bar__labels{display:flex;justify-content:space-between;font-size:var(--cn-text-xs)}.cn-blocking-bar__lbl-blocked{color:var(--cn-primary);font-weight:700}.cn-blocking-bar__lbl-unblocked{color:var(--cn-orange, #d35400);font-weight:700}.cn-platform-grid{display:flex;flex-direction:column;gap:6px}.cn-platform-item{display:flex;align-items:center;gap:8px;font-size:var(--cn-text-base);color:var(--cn-heading)}.cn-dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px;vertical-align:middle}.cn-dot--green{background:var(--cn-primary)}.cn-dot--gray{background:var(--cn-border)}.cn-dot--yellow{background:var(--cn-secondary, #ffc107)}.cn-lang-bars{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}.cn-lang-row{display:flex;align-items:center;gap:8px}.cn-lang-row__label{font-size:var(--cn-text-sm);color:var(--cn-muted);width:28px;flex-shrink:0;text-align:right}.cn-lang-row__track{flex:1;height:6px;background:var(--cn-light-bg, #f0f2f5);border-radius:3px;overflow:hidden}.cn-lang-row__fill{height:100%;border-radius:3px;background:var(--cn-primary)}.cn-lang-row__pct{font-size:var(--cn-text-sm);font-weight:700;color:var(--cn-heading);width:32px}.cn-dom-credentials{margin-top:12px;padding-top:12px;border-top:1px solid var(--cn-border);display:flex;flex-direction:column;gap:8px}.cn-dom-row{display:flex;justify-content:space-between;padding:5px 0;border-bottom:1px solid var(--cn-border);font-size:var(--cn-text-sm);align-items:baseline}.cn-dom-row:last-child{border-bottom:none}.cn-dom-row__k{color:var(--cn-muted)}.cn-dom-row__v{color:var(--cn-heading);font-weight:700;text-align:right}.cn-dom-row__v--mono{font-size:var(--cn-text-sm);font-family:monospace}.cn-pull-config{margin-top:14px;padding-top:14px;border-top:1px solid var(--cn-border)}.cn-pull-config__row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.cn-pull-config__timestamp{font-size:var(--cn-text-xs, .75rem);color:var(--cn-muted);white-space:nowrap}.cn-pull-config__desc{margin:6px 0 0;font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.45}.cn-pull-config__desc--error{color:var(--cn-red, #c0392b)}.cn-conn-hint{display:block;font-size:var(--cn-text-sm);margin:8px 0}.cn-conn-hint.cn-layer__link-btn{margin-bottom:10px;font-weight:600}.cn-conn-hint--returning{color:var(--cn-muted);margin-top:8px;margin-bottom:14px}.cn-conn-hint--returning a{color:var(--cn-primary);text-decoration:none}.cn-conn-hint--returning a:hover{text-decoration:underline}.cn-dom-link{display:block;margin-top:10px;padding-top:8px;border-top:1px solid var(--cn-border);font-size:var(--cn-text-sm);color:var(--cn-primary);font-weight:600;text-decoration:none}.cn-dom-link:hover{text-decoration:underline}.cn-connect-nudge{font-size:var(--cn-text-sm);color:var(--cn-muted);text-align:center;padding:12px 0 4px;line-height:1.5}.cn-connect-nudge strong{color:var(--cn-heading);display:block;margin-bottom:2px}.cn-benefit-list{list-style:none;display:flex;flex-direction:column;gap:8px;padding:0;margin:0}.cn-benefit-item{display:flex;align-items:flex-start;gap:8px;font-size:var(--cn-text-sm);color:var(--cn-text);line-height:1.4}.cn-benefit-icon{width:16px;height:16px;border-radius:50%;background:var(--cn-green-bg, #e8f5e9);color:var(--cn-green, #2e7d32);font-size:var(--cn-text-xs);font-weight:900;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px}.cn-connect-cta{margin-top:16px}.cn-connect-cta__caption{font-size:var(--cn-text-xs);color:var(--cn-muted);text-align:center;margin-top:8px}.cn-usage-bar-wrap{margin-bottom:8px}.cn-usage-bar{height:8px;background:var(--cn-light-bg, #f0f2f5);border-radius:4px;overflow:hidden}.cn-usage-bar__labels{display:flex;justify-content:space-between;font-size:var(--cn-text-sm);margin-bottom:4px}.cn-usage-bar__used{color:var(--cn-heading);font-weight:700}.cn-usage-bar__total{color:var(--cn-muted)}.cn-usage-bar__fill{height:100%;border-radius:4px;background:linear-gradient(90deg,var(--cn-primary),var(--cn-orange, #d35400))}.cn-unlimited-sessions{font-size:var(--cn-text-md);font-weight:700;color:var(--cn-heading);margin-bottom:4px}.cn-unlimited-note{font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-pro-gate-placeholder{min-height:200px}.cn-placeholder-charts{min-height:180px;background:var(--cn-light-bg, #f0f2f5);border-radius:8px}@media(max-width:960px){.cn-page-layout{flex-direction:column}.cn-page-layout .cn-sidebar{width:100%;position:static}.cn-vuln-grid{grid-template-columns:1fr}.cn-score-hero{flex-direction:column;text-align:center}}.cn-dev-switcher{position:fixed;top:40px;right:16px;z-index:99999;background:#1a1a2e;color:#fff;border-radius:8px;padding:10px 12px;min-width:148px;box-shadow:0 4px 16px #0006;font-family:Lato,sans-serif;font-size:var(--cn-text-sm)}.cn-dev-switcher__header{display:flex;align-items:center;gap:5px;margin-bottom:8px}.cn-dev-switcher__icon{font-size:var(--cn-text-sm)}.cn-dev-switcher__title{font-size:var(--cn-text-xs);font-weight:700;letter-spacing:.08em;color:#20c19e;text-transform:uppercase}.cn-dev-switcher__label{font-size:var(--cn-text-xs);color:#8a9199;text-transform:uppercase;letter-spacing:.06em;margin-bottom:5px}.cn-dev-switcher__buttons{display:flex;gap:4px;margin-bottom:2px}.cn-dev-switcher__btn{flex:1;padding:4px 0;border:1px solid #3a3a5c;border-radius:4px;background:#2a2a48;color:#c0c0d0;font-size:var(--cn-text-sm);font-weight:600;cursor:pointer;transition:background .15s,border-color .15s,color .15s}.cn-dev-switcher__btn:hover{background:#3a3a5c;color:#fff}.cn-dev-switcher__btn--active{background:#20c19e;border-color:#20c19e;color:#fff}.cn-dev-switcher__usage{margin-top:8px;border-top:1px solid #2a2a48;padding-top:7px}.cn-dev-switcher__usage-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}.cn-dev-switcher__usage-label{font-size:var(--cn-text-xs);color:#8a9199;text-transform:uppercase;letter-spacing:.06em}.cn-dev-switcher__usage-val{font-size:var(--cn-text-sm);font-weight:700;color:#20c19e}.cn-dev-switcher__slider{width:100%;accent-color:#20c19e;cursor:pointer}.cn-banner-design__footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:16px;padding-top:12px;border-top:1px solid var(--cn-border, #e2e5ea)}.cn-banner-design__status{font-size:var(--cn-text-base)}.cn-banner-design__status--saved{color:var(--cn-green)}.cn-banner-design__status--error{color:var(--cn-red)}.cn-auth-form__error{margin-bottom:12px;padding:10px 14px;background:var(--cn-red-bg, #fdecea);color:var(--cn-red, #e74c3c);border-radius:6px;font-size:var(--cn-text-base)}.cn-consent-log-table__controls{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:12px}.cn-consent-log-table__count{font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-card-grid{display:grid;gap:14px;margin-top:24px}.cn-card-grid--3{grid-template-columns:repeat(3,1fr)}.cn-card-grid--auto{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}@media(max-width:960px){.cn-card-grid--3{grid-template-columns:1fr}}.cn-card{background:var(--cn-surface);border:1px solid var(--cn-border);border-radius:10px;padding:16px 18px;display:flex;flex-direction:column}.cn-card--crit{background:var(--cn-crit-card-bg);border-color:var(--cn-crit-border)}.cn-card--warn{background:var(--cn-warn-card-bg);border-color:var(--cn-warn-border)}.cn-card__top{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:8px}.cn-card__icon svg{display:block}.cn-card__dot{width:9px;height:9px;border-radius:50%;margin-top:2px;flex-shrink:0}.cn-card__dot--ok{background:var(--cn-ok-dot)}.cn-card__dot--warn{background:var(--cn-warn-dot)}.cn-card__dot--crit{background:var(--cn-crit-dot)}.cn-card__dot--off{background:var(--cn-off-dot)}.cn-card__main{font-size:var(--cn-text-xl);font-weight:800;line-height:1.15;margin-bottom:2px}.cn-card__main--ok{color:var(--cn-ok-val)}.cn-card__main--warn{color:var(--cn-warn-val)}.cn-card__main--crit{color:var(--cn-crit-val)}.cn-card__main--off{color:var(--cn-off-val);font-weight:500;font-size:var(--cn-text-lg)}.cn-card__sub{font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.4;margin-bottom:10px}.cn-card__sub--warn{color:var(--cn-warn-val)}.cn-card__pills{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:10px}.cn-card__pill{font-size:var(--cn-text-sm);font-weight:600;padding:2px 8px;border-radius:10px}.cn-card__pill--ok{background:var(--cn-ok-pill-bg);color:var(--cn-ok-pill-txt)}.cn-card__pill--warn{background:var(--cn-warn-pill-bg);color:var(--cn-warn-pill-txt)}.cn-card__pill--crit{background:var(--cn-crit-pill-bg);color:var(--cn-crit-pill-txt)}.cn-card__pill--off{background:var(--cn-off-pill-bg);color:var(--cn-off-pill-txt)}.cn-card__foot{margin-top:auto;padding-top:10px;border-top:1px solid var(--cn-border);min-height:30px;display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center}.cn-card__foot-btn{background:none;border:none;font-size:var(--cn-text-sm);font-weight:600;color:var(--cn-primary);cursor:pointer;padding:0}.cn-card__foot-btn:hover{text-decoration:underline}.cn-card__foot a,.cn-card__foot button{font-size:var(--cn-text-sm);font-weight:600;color:var(--cn-link-neutral);text-decoration:underline;text-decoration-color:var(--cn-border);text-underline-offset:2px;background:none;border:none;padding:0;cursor:pointer;font-family:var(--cn-font);display:inline-block}.cn-card__foot a:hover,.cn-card__foot button:hover{color:var(--cn-heading);text-decoration-color:var(--cn-muted)}.cn-card__help{flex-basis:100%;font-size:var(--cn-text-sm);color:var(--cn-muted)}.cn-card__help summary{cursor:pointer;font-weight:600;color:var(--cn-link-neutral)}.cn-card__help p{margin:6px 0 0;line-height:1.4}.cn-card__bar-wrap{height:4px;background:var(--cn-light-bg);border-radius:2px;margin:8px 0 6px}.cn-card__bar-fill{height:4px;border-radius:2px}.cn-card__bar-fill--ok{background:var(--cn-ok-dot)}.cn-card__bar-fill--warn{background:var(--cn-warn-dot)}.cn-card__bar-fill--crit{background:var(--cn-crit-dot)}.cn-card__bar-fill--off{background:var(--cn-off-icon)}.cn-card__row{display:flex;justify-content:space-between;padding:4px 0;border-bottom:1px solid var(--cn-border);font-size:var(--cn-text-sm);align-items:baseline}.cn-card__row--last{border-bottom:none}.cn-card__row-k{color:var(--cn-muted);flex-shrink:0}.cn-card__row-v{color:var(--cn-heading);font-weight:700;text-align:right}.cn-card__row-v--muted{color:var(--cn-muted);font-weight:400}.cn-portal-bridge-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:100000;padding:20px}.cn-portal-bridge{background:var(--cn-surface);border-radius:14px;width:100%;max-width:440px;box-shadow:0 20px 60px #0000002e;overflow:hidden;font-family:var(--cn-font)}.cn-portal-bridge__header{background:var(--cn-ok-icon);padding:18px 22px;display:flex;align-items:flex-start;gap:12px}.cn-portal-bridge__header-title{color:#fff;font-size:var(--cn-text-md);font-weight:700;line-height:1.3}.cn-portal-bridge__header-sub{color:#ffffffb3;font-size:var(--cn-text-sm);margin-top:2px}.cn-portal-bridge__body{padding:20px 22px}.cn-portal-bridge__summary{font-size:var(--cn-text-base);color:var(--cn-text);line-height:1.5;margin-bottom:14px}.cn-portal-bridge__context{background:var(--cn-light-bg);border-radius:8px;padding:10px 12px;display:flex;align-items:flex-start;gap:10px;margin-bottom:16px}.cn-portal-bridge__context-dot{width:8px;height:8px;border-radius:50%;background:var(--cn-ok-dot);margin-top:3px;flex-shrink:0}.cn-portal-bridge__context-text{font-size:var(--cn-text-sm);color:var(--cn-heading);line-height:1.5}.cn-portal-bridge__steps{display:flex;flex-direction:column;gap:12px;margin-bottom:18px}.cn-portal-bridge__step{display:flex;gap:12px;align-items:flex-start}.cn-portal-bridge__step-num{width:22px;height:22px;border-radius:50%;background:var(--cn-ok-pill-bg);border:1.5px solid var(--cn-ok-icon);color:var(--cn-ok-icon);font-size:var(--cn-text-sm);font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px}.cn-portal-bridge__step-title{font-size:var(--cn-text-base);font-weight:700;color:var(--cn-heading);margin-bottom:2px}.cn-portal-bridge__step-desc{font-size:var(--cn-text-sm);color:var(--cn-muted);line-height:1.4}.cn-portal-bridge__error{background:var(--cn-red-bg);color:var(--cn-red);border-radius:6px;padding:8px 12px;font-size:var(--cn-text-sm);margin-bottom:12px}.cn-portal-bridge__actions{display:flex;flex-direction:column;gap:8px}.cn-portal-bridge__btn{display:block;width:100%;padding:11px 16px;border-radius:8px;font-size:var(--cn-text-base);font-weight:600;cursor:pointer;text-align:center;text-decoration:none;font-family:var(--cn-font);border:none;line-height:1}.cn-portal-bridge__btn--primary{background:var(--cn-ok-icon);color:#fff}.cn-portal-bridge__btn--primary:hover{background:#15803d}.cn-portal-bridge__btn--secondary{background:none;border:1px solid var(--cn-border);color:var(--cn-heading)}.cn-portal-bridge__btn--secondary:hover{background:var(--cn-light-bg)}.cn-portal-bridge__btn--secondary:disabled{opacity:.6;cursor:default}.cn-portal-bridge__dismiss{text-align:center;padding:12px 22px;border-top:1px solid var(--cn-light-bg)}.cn-portal-bridge__dismiss-btn{background:none;border:none;font-size:var(--cn-text-sm);color:var(--cn-muted);cursor:pointer;font-family:var(--cn-font)}.cn-portal-bridge__dismiss-btn:hover{color:var(--cn-heading)}.cn-error-boundary{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:64px 24px;text-align:center}.cn-error-boundary__message{font-size:15px;color:var(--cn-muted, #6c7781);margin-bottom:16px} -
cookie-notice/trunk/assets/react-admin/cn-admin-react.js
r3734159 r3744556 1 (function(){"use strict";var h1,m1,g1;var Yr={exports:{}},vo={},qr={exports:{}}, we={};/**1 (function(){"use strict";var h1,m1,g1;var Yr={exports:{}},vo={},qr={exports:{}},je={};/** 2 2 * @license React 3 3 * react.production.min.js … … 7 7 * This source code is licensed under the MIT license found in the 8 8 * LICENSE file in the root directory of this source tree. 9 */var Ac;function u2(){if(Ac)return we;Ac=1;var i=Symbol.for("react.element"),c=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),m=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),_=Symbol.iterator;function b(S){return S===null||typeof S!="object"?null:(S=_&&S[_]||S["@@iterator"],typeof S=="function"?S:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function P(S,$,ie){this.props=S,this.context=$,this.refs=D,this.updater=ie||A}P.prototype.isReactComponent={},P.prototype.setState=function(S,$){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,$,"setState")},P.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function E(){}E.prototype=P.prototype;function I(S,$,ie){this.props=S,this.context=$,this.refs=D,this.updater=ie||A}var R=I.prototype=new E;R.constructor=I,C(R,P.prototype),R.isPureReactComponent=!0;var O=Array.isArray,te=Object.prototype.hasOwnProperty,J={current:null},B={key:!0,ref:!0,__self:!0,__source:!0};function X(S,$,ie){var ue,ge={},xe=null,F=null;if($!=null)for(ue in $.ref!==void 0&&(F=$.ref),$.key!==void 0&&(xe=""+$.key),$)te.call($,ue)&&!B.hasOwnProperty(ue)&&(ge[ue]=$[ue]);var H=arguments.length-2;if(H===1)ge.children=ie;else if(1<H){for(var de=Array(H),Ve=0;Ve<H;Ve++)de[Ve]=arguments[Ve+2];ge.children=de}if(S&&S.defaultProps)for(ue in H=S.defaultProps,H)ge[ue]===void 0&&(ge[ue]=H[ue]);return{$$typeof:i,type:S,key:xe,ref:F,props:ge,_owner:J.current}}function q(S,$){return{$$typeof:i,type:S.type,key:$,ref:S.ref,props:S.props,_owner:S._owner}}function W(S){return typeof S=="object"&&S!==null&&S.$$typeof===i}function ne(S){var $={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(ie){return $[ie]})}var le=/\/+/g;function he(S,$){return typeof S=="object"&&S!==null&&S.key!=null?ne(""+S.key):$.toString(36)}function M(S,$,ie,ue,ge){var xe=typeof S;(xe==="undefined"||xe==="boolean")&&(S=null);var F=!1;if(S===null)F=!0;else switch(xe){case"string":case"number":F=!0;break;case"object":switch(S.$$typeof){case i:case c:F=!0}}if(F)return F=S,ge=ge(F),S=ue===""?"."+he(F,0):ue,O(ge)?(ie="",S!=null&&(ie=S.replace(le,"$&/")+"/"),M(ge,$,ie,"",function(Ve){return Ve})):ge!=null&&(W(ge)&&(ge=q(ge,ie+(!ge.key||F&&F.key===ge.key?"":(""+ge.key).replace(le,"$&/")+"/")+S)),$.push(ge)),1;if(F=0,ue=ue===""?".":ue+":",O(S))for(var H=0;H<S.length;H++){xe=S[H];var de=ue+he(xe,H);F+=M(xe,$,ie,de,ge)}else if(de=b(S),typeof de=="function")for(S=de.call(S),H=0;!(xe=S.next()).done;)xe=xe.value,de=ue+he(xe,H++),F+=M(xe,$,ie,de,ge);else if(xe==="object")throw $=String(S),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.");return F}function me(S,$,ie){if(S==null)return S;var ue=[],ge=0;return M(S,ue,"","",function(xe){return $.call(ie,xe,ge++)}),ue}function _e(S){if(S._status===-1){var $=S._result;$=$(),$.then(function(ie){(S._status===0||S._status===-1)&&(S._status=1,S._result=ie)},function(ie){(S._status===0||S._status===-1)&&(S._status=2,S._result=ie)}),S._status===-1&&(S._status=0,S._result=$)}if(S._status===1)return S._result.default;throw S._result}var ke={current:null},U={transition:null},ee={ReactCurrentDispatcher:ke,ReactCurrentBatchConfig:U,ReactCurrentOwner:J};function Q(){throw Error("act(...) is not supported in production builds of React.")}return we.Children={map:me,forEach:function(S,$,ie){me(S,function(){$.apply(this,arguments)},ie)},count:function(S){var $=0;return me(S,function(){$++}),$},toArray:function(S){return me(S,function($){return $})||[]},only:function(S){if(!W(S))throw Error("React.Children.only expected to receive a single React element child.");return S}},we.Component=P,we.Fragment=u,we.Profiler=p,we.PureComponent=I,we.StrictMode=d,we.Suspense=v,we.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ee,we.act=Q,we.cloneElement=function(S,$,ie){if(S==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+S+".");var ue=C({},S.props),ge=S.key,xe=S.ref,F=S._owner;if($!=null){if($.ref!==void 0&&(xe=$.ref,F=J.current),$.key!==void 0&&(ge=""+$.key),S.type&&S.type.defaultProps)var H=S.type.defaultProps;for(de in $)te.call($,de)&&!B.hasOwnProperty(de)&&(ue[de]=$[de]===void 0&&H!==void 0?H[de]:$[de])}var de=arguments.length-2;if(de===1)ue.children=ie;else if(1<de){H=Array(de);for(var Ve=0;Ve<de;Ve++)H[Ve]=arguments[Ve+2];ue.children=H}return{$$typeof:i,type:S.type,key:ge,ref:xe,props:ue,_owner:F}},we.createContext=function(S){return S={$$typeof:m,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},S.Provider={$$typeof:h,_context:S},S.Consumer=S},we.createElement=X,we.createFactory=function(S){var $=X.bind(null,S);return $.type=S,$},we.createRef=function(){return{current:null}},we.forwardRef=function(S){return{$$typeof:x,render:S}},we.isValidElement=W,we.lazy=function(S){return{$$typeof:k,_payload:{_status:-1,_result:S},_init:_e}},we.memo=function(S,$){return{$$typeof:g,type:S,compare:$===void 0?null:$}},we.startTransition=function(S){var $=U.transition;U.transition={};try{S()}finally{U.transition=$}},we.unstable_act=Q,we.useCallback=function(S,$){return ke.current.useCallback(S,$)},we.useContext=function(S){return ke.current.useContext(S)},we.useDebugValue=function(){},we.useDeferredValue=function(S){return ke.current.useDeferredValue(S)},we.useEffect=function(S,$){return ke.current.useEffect(S,$)},we.useId=function(){return ke.current.useId()},we.useImperativeHandle=function(S,$,ie){return ke.current.useImperativeHandle(S,$,ie)},we.useInsertionEffect=function(S,$){return ke.current.useInsertionEffect(S,$)},we.useLayoutEffect=function(S,$){return ke.current.useLayoutEffect(S,$)},we.useMemo=function(S,$){return ke.current.useMemo(S,$)},we.useReducer=function(S,$,ie){return ke.current.useReducer(S,$,ie)},we.useRef=function(S){return ke.current.useRef(S)},we.useState=function(S){return ke.current.useState(S)},we.useSyncExternalStore=function(S,$,ie){return ke.current.useSyncExternalStore(S,$,ie)},we.useTransition=function(){return ke.current.useTransition()},we.version="18.3.1",we}var Rc;function Qr(){return Rc||(Rc=1,qr.exports=u2()),qr.exports}/**9 */var Ac;function u2(){if(Ac)return je;Ac=1;var i=Symbol.for("react.element"),c=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),m=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),_=Symbol.iterator;function b(S){return S===null||typeof S!="object"?null:(S=_&&S[_]||S["@@iterator"],typeof S=="function"?S:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function P(S,$,re){this.props=S,this.context=$,this.refs=D,this.updater=re||A}P.prototype.isReactComponent={},P.prototype.setState=function(S,$){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,$,"setState")},P.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function E(){}E.prototype=P.prototype;function I(S,$,re){this.props=S,this.context=$,this.refs=D,this.updater=re||A}var R=I.prototype=new E;R.constructor=I,C(R,P.prototype),R.isPureReactComponent=!0;var O=Array.isArray,oe=Object.prototype.hasOwnProperty,J={current:null},B={key:!0,ref:!0,__self:!0,__source:!0};function X(S,$,re){var pe,ve={},xe=null,M=null;if($!=null)for(pe in $.ref!==void 0&&(M=$.ref),$.key!==void 0&&(xe=""+$.key),$)oe.call($,pe)&&!B.hasOwnProperty(pe)&&(ve[pe]=$[pe]);var H=arguments.length-2;if(H===1)ve.children=re;else if(1<H){for(var fe=Array(H),Ve=0;Ve<H;Ve++)fe[Ve]=arguments[Ve+2];ve.children=fe}if(S&&S.defaultProps)for(pe in H=S.defaultProps,H)ve[pe]===void 0&&(ve[pe]=H[pe]);return{$$typeof:i,type:S,key:xe,ref:M,props:ve,_owner:J.current}}function q(S,$){return{$$typeof:i,type:S.type,key:$,ref:S.ref,props:S.props,_owner:S._owner}}function W(S){return typeof S=="object"&&S!==null&&S.$$typeof===i}function te(S){var $={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(re){return $[re]})}var ue=/\/+/g;function ge(S,$){return typeof S=="object"&&S!==null&&S.key!=null?te(""+S.key):$.toString(36)}function ne(S,$,re,pe,ve){var xe=typeof S;(xe==="undefined"||xe==="boolean")&&(S=null);var M=!1;if(S===null)M=!0;else switch(xe){case"string":case"number":M=!0;break;case"object":switch(S.$$typeof){case i:case c:M=!0}}if(M)return M=S,ve=ve(M),S=pe===""?"."+ge(M,0):pe,O(ve)?(re="",S!=null&&(re=S.replace(ue,"$&/")+"/"),ne(ve,$,re,"",function(Ve){return Ve})):ve!=null&&(W(ve)&&(ve=q(ve,re+(!ve.key||M&&M.key===ve.key?"":(""+ve.key).replace(ue,"$&/")+"/")+S)),$.push(ve)),1;if(M=0,pe=pe===""?".":pe+":",O(S))for(var H=0;H<S.length;H++){xe=S[H];var fe=pe+ge(xe,H);M+=ne(xe,$,re,fe,ve)}else if(fe=b(S),typeof fe=="function")for(S=fe.call(S),H=0;!(xe=S.next()).done;)xe=xe.value,fe=pe+ge(xe,H++),M+=ne(xe,$,re,fe,ve);else if(xe==="object")throw $=String(S),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.");return M}function de(S,$,re){if(S==null)return S;var pe=[],ve=0;return ne(S,pe,"","",function(xe){return $.call(re,xe,ve++)}),pe}function F(S){if(S._status===-1){var $=S._result;$=$(),$.then(function(re){(S._status===0||S._status===-1)&&(S._status=1,S._result=re)},function(re){(S._status===0||S._status===-1)&&(S._status=2,S._result=re)}),S._status===-1&&(S._status=0,S._result=$)}if(S._status===1)return S._result.default;throw S._result}var ke={current:null},U={transition:null},ee={ReactCurrentDispatcher:ke,ReactCurrentBatchConfig:U,ReactCurrentOwner:J};function Q(){throw Error("act(...) is not supported in production builds of React.")}return je.Children={map:de,forEach:function(S,$,re){de(S,function(){$.apply(this,arguments)},re)},count:function(S){var $=0;return de(S,function(){$++}),$},toArray:function(S){return de(S,function($){return $})||[]},only:function(S){if(!W(S))throw Error("React.Children.only expected to receive a single React element child.");return S}},je.Component=P,je.Fragment=u,je.Profiler=p,je.PureComponent=I,je.StrictMode=d,je.Suspense=v,je.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ee,je.act=Q,je.cloneElement=function(S,$,re){if(S==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+S+".");var pe=C({},S.props),ve=S.key,xe=S.ref,M=S._owner;if($!=null){if($.ref!==void 0&&(xe=$.ref,M=J.current),$.key!==void 0&&(ve=""+$.key),S.type&&S.type.defaultProps)var H=S.type.defaultProps;for(fe in $)oe.call($,fe)&&!B.hasOwnProperty(fe)&&(pe[fe]=$[fe]===void 0&&H!==void 0?H[fe]:$[fe])}var fe=arguments.length-2;if(fe===1)pe.children=re;else if(1<fe){H=Array(fe);for(var Ve=0;Ve<fe;Ve++)H[Ve]=arguments[Ve+2];pe.children=H}return{$$typeof:i,type:S.type,key:ve,ref:xe,props:pe,_owner:M}},je.createContext=function(S){return S={$$typeof:m,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},S.Provider={$$typeof:h,_context:S},S.Consumer=S},je.createElement=X,je.createFactory=function(S){var $=X.bind(null,S);return $.type=S,$},je.createRef=function(){return{current:null}},je.forwardRef=function(S){return{$$typeof:x,render:S}},je.isValidElement=W,je.lazy=function(S){return{$$typeof:k,_payload:{_status:-1,_result:S},_init:F}},je.memo=function(S,$){return{$$typeof:g,type:S,compare:$===void 0?null:$}},je.startTransition=function(S){var $=U.transition;U.transition={};try{S()}finally{U.transition=$}},je.unstable_act=Q,je.useCallback=function(S,$){return ke.current.useCallback(S,$)},je.useContext=function(S){return ke.current.useContext(S)},je.useDebugValue=function(){},je.useDeferredValue=function(S){return ke.current.useDeferredValue(S)},je.useEffect=function(S,$){return ke.current.useEffect(S,$)},je.useId=function(){return ke.current.useId()},je.useImperativeHandle=function(S,$,re){return ke.current.useImperativeHandle(S,$,re)},je.useInsertionEffect=function(S,$){return ke.current.useInsertionEffect(S,$)},je.useLayoutEffect=function(S,$){return ke.current.useLayoutEffect(S,$)},je.useMemo=function(S,$){return ke.current.useMemo(S,$)},je.useReducer=function(S,$,re){return ke.current.useReducer(S,$,re)},je.useRef=function(S){return ke.current.useRef(S)},je.useState=function(S){return ke.current.useState(S)},je.useSyncExternalStore=function(S,$,re){return ke.current.useSyncExternalStore(S,$,re)},je.useTransition=function(){return ke.current.useTransition()},je.version="18.3.1",je}var Rc;function Qr(){return Rc||(Rc=1,qr.exports=u2()),qr.exports}/** 10 10 * @license React 11 11 * react-jsx-runtime.production.min.js … … 15 15 * This source code is licensed under the MIT license found in the 16 16 * LICENSE file in the root directory of this source tree. 17 */var zc;function d2(){if(zc)return vo;zc=1;var i=Qr(),c=Symbol.for("react.element"),u=Symbol.for("react.fragment"),d=Object.prototype.hasOwnProperty,p=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h={key:!0,ref:!0,__self:!0,__source:!0};function m(x,v,g){var k,_={},b=null,A=null;g!==void 0&&(b=""+g),v.key!==void 0&&(b=""+v.key),v.ref!==void 0&&(A=v.ref);for(k in v)d.call(v,k)&&!h.hasOwnProperty(k)&&(_[k]=v[k]);if(x&&x.defaultProps)for(k in v=x.defaultProps,v)_[k]===void 0&&(_[k]=v[k]);return{$$typeof:c,type:x,key:b,ref:A,props:_,_owner:p.current}}return vo.Fragment=u,vo.jsx=m,vo.jsxs=m,vo}var Mc;function p2(){return Mc||(Mc=1,Yr.exports=d2()),Yr.exports}var t=p2(),_i={},Zr={exports:{}}, ln={},Xr={exports:{}},Jr={};/**17 */var zc;function d2(){if(zc)return vo;zc=1;var i=Qr(),c=Symbol.for("react.element"),u=Symbol.for("react.fragment"),d=Object.prototype.hasOwnProperty,p=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h={key:!0,ref:!0,__self:!0,__source:!0};function m(x,v,g){var k,_={},b=null,A=null;g!==void 0&&(b=""+g),v.key!==void 0&&(b=""+v.key),v.ref!==void 0&&(A=v.ref);for(k in v)d.call(v,k)&&!h.hasOwnProperty(k)&&(_[k]=v[k]);if(x&&x.defaultProps)for(k in v=x.defaultProps,v)_[k]===void 0&&(_[k]=v[k]);return{$$typeof:c,type:x,key:b,ref:A,props:_,_owner:p.current}}return vo.Fragment=u,vo.jsx=m,vo.jsxs=m,vo}var Mc;function p2(){return Mc||(Mc=1,Yr.exports=d2()),Yr.exports}var t=p2(),_i={},Zr={exports:{}},un={},Xr={exports:{}},Jr={};/** 18 18 * @license React 19 19 * scheduler.production.min.js … … 23 23 * This source code is licensed under the MIT license found in the 24 24 * LICENSE file in the root directory of this source tree. 25 */var Fc;function f2(){return Fc||(Fc=1,(function(i){function c(U,ee){var Q=U.length;U.push(ee);e:for(;0<Q;){var S=Q-1>>>1,$=U[S];if(0<p($,ee))U[S]=ee,U[Q]=$,Q=S;else break e}}function u(U){return U.length===0?null:U[0]}function d(U){if(U.length===0)return null;var ee=U[0],Q=U.pop();if(Q!==ee){U[0]=Q;e:for(var S=0,$=U.length, ie=$>>>1;S<ie;){var ue=2*(S+1)-1,ge=U[ue],xe=ue+1,F=U[xe];if(0>p(ge,Q))xe<$&&0>p(F,ge)?(U[S]=F,U[xe]=Q,S=xe):(U[S]=ge,U[ue]=Q,S=ue);else if(xe<$&&0>p(F,Q))U[S]=F,U[xe]=Q,S=xe;else break e}}return ee}function p(U,ee){var Q=U.sortIndex-ee.sortIndex;return Q!==0?Q:U.id-ee.id}if(typeof performance=="object"&&typeof performance.now=="function"){var h=performance;i.unstable_now=function(){return h.now()}}else{var m=Date,x=m.now();i.unstable_now=function(){return m.now()-x}}var v=[],g=[],k=1,_=null,b=3,A=!1,C=!1,D=!1,P=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function R(U){for(var ee=u(g);ee!==null;){if(ee.callback===null)d(g);else if(ee.startTime<=U)d(g),ee.sortIndex=ee.expirationTime,c(v,ee);else break;ee=u(g)}}function O(U){if(D=!1,R(U),!C)if(u(v)!==null)C=!0,_e(te);else{var ee=u(g);ee!==null&&ke(O,ee.startTime-U)}}function te(U,ee){C=!1,D&&(D=!1,E(X),X=-1),A=!0;var Q=b;try{for(R(ee),_=u(v);_!==null&&(!(_.expirationTime>ee)||U&&!ne());){var S=_.callback;if(typeof S=="function"){_.callback=null,b=_.priorityLevel;var $=S(_.expirationTime<=ee);ee=i.unstable_now(),typeof $=="function"?_.callback=$:_===u(v)&&d(v),R(ee)}else d(v);_=u(v)}if(_!==null)var ie=!0;else{var ue=u(g);ue!==null&&ke(O,ue.startTime-ee),ie=!1}return ie}finally{_=null,b=Q,A=!1}}var J=!1,B=null,X=-1,q=5,W=-1;function ne(){return!(i.unstable_now()-W<q)}function le(){if(B!==null){var U=i.unstable_now();W=U;var ee=!0;try{ee=B(!0,U)}finally{ee?he():(J=!1,B=null)}}else J=!1}var he;if(typeof I=="function")he=function(){I(le)};else if(typeof MessageChannel<"u"){var M=new MessageChannel,me=M.port2;M.port1.onmessage=le,he=function(){me.postMessage(null)}}else he=function(){P(le,0)};function _e(U){B=U,J||(J=!0,he())}function ke(U,ee){X=P(function(){U(i.unstable_now())},ee)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(U){U.callback=null},i.unstable_continueExecution=function(){C||A||(C=!0,_e(te))},i.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<U?Math.floor(1e3/U):5},i.unstable_getCurrentPriorityLevel=function(){return b},i.unstable_getFirstCallbackNode=function(){return u(v)},i.unstable_next=function(U){switch(b){case 1:case 2:case 3:var ee=3;break;default:ee=b}var Q=b;b=ee;try{return U()}finally{b=Q}},i.unstable_pauseExecution=function(){},i.unstable_requestPaint=function(){},i.unstable_runWithPriority=function(U,ee){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var Q=b;b=U;try{return ee()}finally{b=Q}},i.unstable_scheduleCallback=function(U,ee,Q){var S=i.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?S+Q:S):Q=S,U){case 1:var $=-1;break;case 2:$=250;break;case 5:$=1073741823;break;case 4:$=1e4;break;default:$=5e3}return $=Q+$,U={id:k++,callback:ee,priorityLevel:U,startTime:Q,expirationTime:$,sortIndex:-1},Q>S?(U.sortIndex=Q,c(g,U),u(v)===null&&U===u(g)&&(D?(E(X),X=-1):D=!0,ke(O,Q-S))):(U.sortIndex=$,c(v,U),C||A||(C=!0,_e(te))),U},i.unstable_shouldYield=ne,i.unstable_wrapCallback=function(U){var ee=b;return function(){var Q=b;b=ee;try{return U.apply(this,arguments)}finally{b=Q}}}})(Jr)),Jr}var Ic;function h2(){return Ic||(Ic=1,Xr.exports=f2()),Xr.exports}/**25 */var Fc;function f2(){return Fc||(Fc=1,(function(i){function c(U,ee){var Q=U.length;U.push(ee);e:for(;0<Q;){var S=Q-1>>>1,$=U[S];if(0<p($,ee))U[S]=ee,U[Q]=$,Q=S;else break e}}function u(U){return U.length===0?null:U[0]}function d(U){if(U.length===0)return null;var ee=U[0],Q=U.pop();if(Q!==ee){U[0]=Q;e:for(var S=0,$=U.length,re=$>>>1;S<re;){var pe=2*(S+1)-1,ve=U[pe],xe=pe+1,M=U[xe];if(0>p(ve,Q))xe<$&&0>p(M,ve)?(U[S]=M,U[xe]=Q,S=xe):(U[S]=ve,U[pe]=Q,S=pe);else if(xe<$&&0>p(M,Q))U[S]=M,U[xe]=Q,S=xe;else break e}}return ee}function p(U,ee){var Q=U.sortIndex-ee.sortIndex;return Q!==0?Q:U.id-ee.id}if(typeof performance=="object"&&typeof performance.now=="function"){var h=performance;i.unstable_now=function(){return h.now()}}else{var m=Date,x=m.now();i.unstable_now=function(){return m.now()-x}}var v=[],g=[],k=1,_=null,b=3,A=!1,C=!1,D=!1,P=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function R(U){for(var ee=u(g);ee!==null;){if(ee.callback===null)d(g);else if(ee.startTime<=U)d(g),ee.sortIndex=ee.expirationTime,c(v,ee);else break;ee=u(g)}}function O(U){if(D=!1,R(U),!C)if(u(v)!==null)C=!0,F(oe);else{var ee=u(g);ee!==null&&ke(O,ee.startTime-U)}}function oe(U,ee){C=!1,D&&(D=!1,E(X),X=-1),A=!0;var Q=b;try{for(R(ee),_=u(v);_!==null&&(!(_.expirationTime>ee)||U&&!te());){var S=_.callback;if(typeof S=="function"){_.callback=null,b=_.priorityLevel;var $=S(_.expirationTime<=ee);ee=i.unstable_now(),typeof $=="function"?_.callback=$:_===u(v)&&d(v),R(ee)}else d(v);_=u(v)}if(_!==null)var re=!0;else{var pe=u(g);pe!==null&&ke(O,pe.startTime-ee),re=!1}return re}finally{_=null,b=Q,A=!1}}var J=!1,B=null,X=-1,q=5,W=-1;function te(){return!(i.unstable_now()-W<q)}function ue(){if(B!==null){var U=i.unstable_now();W=U;var ee=!0;try{ee=B(!0,U)}finally{ee?ge():(J=!1,B=null)}}else J=!1}var ge;if(typeof I=="function")ge=function(){I(ue)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,de=ne.port2;ne.port1.onmessage=ue,ge=function(){de.postMessage(null)}}else ge=function(){P(ue,0)};function F(U){B=U,J||(J=!0,ge())}function ke(U,ee){X=P(function(){U(i.unstable_now())},ee)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(U){U.callback=null},i.unstable_continueExecution=function(){C||A||(C=!0,F(oe))},i.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<U?Math.floor(1e3/U):5},i.unstable_getCurrentPriorityLevel=function(){return b},i.unstable_getFirstCallbackNode=function(){return u(v)},i.unstable_next=function(U){switch(b){case 1:case 2:case 3:var ee=3;break;default:ee=b}var Q=b;b=ee;try{return U()}finally{b=Q}},i.unstable_pauseExecution=function(){},i.unstable_requestPaint=function(){},i.unstable_runWithPriority=function(U,ee){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var Q=b;b=U;try{return ee()}finally{b=Q}},i.unstable_scheduleCallback=function(U,ee,Q){var S=i.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?S+Q:S):Q=S,U){case 1:var $=-1;break;case 2:$=250;break;case 5:$=1073741823;break;case 4:$=1e4;break;default:$=5e3}return $=Q+$,U={id:k++,callback:ee,priorityLevel:U,startTime:Q,expirationTime:$,sortIndex:-1},Q>S?(U.sortIndex=Q,c(g,U),u(v)===null&&U===u(g)&&(D?(E(X),X=-1):D=!0,ke(O,Q-S))):(U.sortIndex=$,c(v,U),C||A||(C=!0,F(oe))),U},i.unstable_shouldYield=te,i.unstable_wrapCallback=function(U){var ee=b;return function(){var Q=b;b=ee;try{return U.apply(this,arguments)}finally{b=Q}}}})(Jr)),Jr}var Ic;function h2(){return Ic||(Ic=1,Xr.exports=f2()),Xr.exports}/** 26 26 * @license React 27 27 * react-dom.production.min.js … … 31 31 * This source code is licensed under the MIT license found in the 32 32 * LICENSE file in the root directory of this source tree. 33 */var Oc;function m2(){if(Oc)return ln;Oc=1;var i=Qr(),c=h2();function u(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=1;o<arguments.length;o++)n+="&args[]="+encodeURIComponent(arguments[o]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var d=new Set,p={};function h(e,n){m(e,n),m(e+"Capture",n)}function m(e,n){for(p[e]=n,e=0;e<n.length;e++)d.add(n[e])}var x=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),v=Object.prototype.hasOwnProperty,g=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,k={},_={};function b(e){return v.call(_,e)?!0:v.call(k,e)?!1:g.test(e)?_[e]=!0:(k[e]=!0,!1)}function A(e,n,o,r){if(o!==null&&o.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return r?!1:o!==null?!o.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function C(e,n,o,r){if(n===null||typeof n>"u"||A(e,n,o,r))return!0;if(r)return!1;if(o!==null)switch(o.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function D(e,n,o,r,a,l,f){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=o,this.propertyName=e,this.type=n,this.sanitizeURL=l,this.removeEmptyString=f}var P={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){P[e]=new D(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];P[n]=new D(n,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){P[e]=new D(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){P[e]=new D(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){P[e]=new D(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){P[e]=new D(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){P[e]=new D(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){P[e]=new D(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){P[e]=new D(e,5,!1,e.toLowerCase(),null,!1,!1)});var E=/[\-:]([a-z])/g;function I(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(E,I);P[n]=new D(n,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(E,I);P[n]=new D(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(E,I);P[n]=new D(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){P[e]=new D(e,1,!1,e.toLowerCase(),null,!1,!1)}),P.xlinkHref=new D("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){P[e]=new D(e,1,!1,e.toLowerCase(),null,!0,!0)});function R(e,n,o,r){var a=P.hasOwnProperty(n)?P[n]:null;(a!==null?a.type!==0:r||!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(C(n,o,a,r)&&(o=null),r||a===null?b(n)&&(o===null?e.removeAttribute(n):e.setAttribute(n,""+o)):a.mustUseProperty?e[a.propertyName]=o===null?a.type===3?!1:"":o:(n=a.attributeName,r=a.attributeNamespace,o===null?e.removeAttribute(n):(a=a.type,o=a===3||a===4&&o===!0?"":""+o,r?e.setAttributeNS(r,n,o):e.setAttribute(n,o))))}var O=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,te=Symbol.for("react.element"),J=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),X=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),W=Symbol.for("react.provider"),ne=Symbol.for("react.context"),le=Symbol.for("react.forward_ref"),he=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),me=Symbol.for("react.memo"),_e=Symbol.for("react.lazy"),ke=Symbol.for("react.offscreen"),U=Symbol.iterator;function ee(e){return e===null||typeof e!="object"?null:(e=U&&e[U]||e["@@iterator"],typeof e=="function"?e:null)}var Q=Object.assign,S;function $(e){if(S===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);S=n&&n[1]||""}return`34 `+S+e}var ie=!1;function ue(e,n){if(!e||ie)return"";ie=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(z){var r=z}Reflect.construct(e,[],n)}else{try{n.call()}catch(z){r=z}e.call(n.prototype)}else{try{throw Error()}catch(z){r=z}e()}}catch(z){if(z&&r&&typeof z.stack=="string"){for(var a=z.stack.split(`33 */var Oc;function m2(){if(Oc)return un;Oc=1;var i=Qr(),c=h2();function u(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=1;o<arguments.length;o++)n+="&args[]="+encodeURIComponent(arguments[o]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var d=new Set,p={};function h(e,n){m(e,n),m(e+"Capture",n)}function m(e,n){for(p[e]=n,e=0;e<n.length;e++)d.add(n[e])}var x=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),v=Object.prototype.hasOwnProperty,g=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,k={},_={};function b(e){return v.call(_,e)?!0:v.call(k,e)?!1:g.test(e)?_[e]=!0:(k[e]=!0,!1)}function A(e,n,o,r){if(o!==null&&o.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return r?!1:o!==null?!o.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function C(e,n,o,r){if(n===null||typeof n>"u"||A(e,n,o,r))return!0;if(r)return!1;if(o!==null)switch(o.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function D(e,n,o,r,a,l,f){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=o,this.propertyName=e,this.type=n,this.sanitizeURL=l,this.removeEmptyString=f}var P={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){P[e]=new D(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];P[n]=new D(n,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){P[e]=new D(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){P[e]=new D(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){P[e]=new D(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){P[e]=new D(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){P[e]=new D(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){P[e]=new D(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){P[e]=new D(e,5,!1,e.toLowerCase(),null,!1,!1)});var E=/[\-:]([a-z])/g;function I(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(E,I);P[n]=new D(n,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(E,I);P[n]=new D(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(E,I);P[n]=new D(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){P[e]=new D(e,1,!1,e.toLowerCase(),null,!1,!1)}),P.xlinkHref=new D("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){P[e]=new D(e,1,!1,e.toLowerCase(),null,!0,!0)});function R(e,n,o,r){var a=P.hasOwnProperty(n)?P[n]:null;(a!==null?a.type!==0:r||!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(C(n,o,a,r)&&(o=null),r||a===null?b(n)&&(o===null?e.removeAttribute(n):e.setAttribute(n,""+o)):a.mustUseProperty?e[a.propertyName]=o===null?a.type===3?!1:"":o:(n=a.attributeName,r=a.attributeNamespace,o===null?e.removeAttribute(n):(a=a.type,o=a===3||a===4&&o===!0?"":""+o,r?e.setAttributeNS(r,n,o):e.setAttribute(n,o))))}var O=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,oe=Symbol.for("react.element"),J=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),X=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),W=Symbol.for("react.provider"),te=Symbol.for("react.context"),ue=Symbol.for("react.forward_ref"),ge=Symbol.for("react.suspense"),ne=Symbol.for("react.suspense_list"),de=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),ke=Symbol.for("react.offscreen"),U=Symbol.iterator;function ee(e){return e===null||typeof e!="object"?null:(e=U&&e[U]||e["@@iterator"],typeof e=="function"?e:null)}var Q=Object.assign,S;function $(e){if(S===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);S=n&&n[1]||""}return` 34 `+S+e}var re=!1;function pe(e,n){if(!e||re)return"";re=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(z){var r=z}Reflect.construct(e,[],n)}else{try{n.call()}catch(z){r=z}e.call(n.prototype)}else{try{throw Error()}catch(z){r=z}e()}}catch(z){if(z&&r&&typeof z.stack=="string"){for(var a=z.stack.split(` 35 35 `),l=r.stack.split(` 36 `),f=a.length-1,y=l.length-1;1<=f&&0<=y&&a[f]!==l[y];)y--;for(;1<=f&&0<=y;f--,y--)if(a[f]!==l[y]){if(f!==1||y!==1)do if(f--,y--,0>y||a[f]!==l[y]){var j=`37 `+a[f].replace(" at new "," at ");return e.displayName&& j.includes("<anonymous>")&&(j=j.replace("<anonymous>",e.displayName)),j}while(1<=f&&0<=y);break}}}finally{ie=!1,Error.prepareStackTrace=o}return(e=e?e.displayName||e.name:"")?$(e):""}function ge(e){switch(e.tag){case 5:return $(e.type);case 16:return $("Lazy");case 13:return $("Suspense");case 19:return $("SuspenseList");case 0:case 2:case 15:return e=ue(e.type,!1),e;case 11:return e=ue(e.type.render,!1),e;case 1:return e=ue(e.type,!0),e;default:return""}}function xe(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case B:return"Fragment";case J:return"Portal";case q:return"Profiler";case X:return"StrictMode";case he:return"Suspense";case M:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ne:return(e.displayName||"Context")+".Consumer";case W:return(e._context.displayName||"Context")+".Provider";case le:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case me:return n=e.displayName||null,n!==null?n:xe(e.type)||"Memo";case _e:n=e._payload,e=e._init;try{return xe(e(n))}catch{}}return null}function F(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return xe(n);case 8:return n===X?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function de(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Ve(e){var n=de(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var a=o.get,l=o.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return a.call(this)},set:function(f){r=""+f,l.call(this,f)}}),Object.defineProperty(e,n,{enumerable:o.enumerable}),{getValue:function(){return r},setValue:function(f){r=""+f},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function De(e){e._valueTracker||(e._valueTracker=Ve(e))}function Ao(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var o=n.getValue(),r="";return e&&(r=de(e)?e.checked?"true":"false":e.value),e=r,e!==o?(n.setValue(e),!0):!1}function Oi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Us(e,n){var o=n.checked;return Q({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??e._wrapperState.initialChecked})}function v1(e,n){var o=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;o=H(n.value!=null?n.value:o),e._wrapperState={initialChecked:r,initialValue:o,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function y1(e,n){n=n.checked,n!=null&&R(e,"checked",n,!1)}function Bs(e,n){y1(e,n);var o=H(n.value),r=n.type;if(o!=null)r==="number"?(o===0&&e.value===""||e.value!=o)&&(e.value=""+o):e.value!==""+o&&(e.value=""+o);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?$s(e,n.type,o):n.hasOwnProperty("defaultValue")&&$s(e,n.type,H(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function _1(e,n,o){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!(r!=="submit"&&r!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,o||n===e.value||(e.value=n),e.defaultValue=n}o=e.name,o!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,o!==""&&(e.name=o)}function $s(e,n,o){(n!=="number"||Oi(e.ownerDocument)!==e)&&(o==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+o&&(e.defaultValue=""+o))}var Ro=Array.isArray;function Vt(e,n,o,r){if(e=e.options,n){n={};for(var a=0;a<o.length;a++)n["$"+o[a]]=!0;for(o=0;o<e.length;o++)a=n.hasOwnProperty("$"+e[o].value),e[o].selected!==a&&(e[o].selected=a),a&&r&&(e[o].defaultSelected=!0)}else{for(o=""+H(o),n=null,a=0;a<e.length;a++){if(e[a].value===o){e[a].selected=!0,r&&(e[a].defaultSelected=!0);return}n!==null||e[a].disabled||(n=e[a])}n!==null&&(n.selected=!0)}}function Ws(e,n){if(n.dangerouslySetInnerHTML!=null)throw Error(u(91));return Q({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function k1(e,n){var o=n.value;if(o==null){if(o=n.children,n=n.defaultValue,o!=null){if(n!=null)throw Error(u(92));if(Ro(o)){if(1<o.length)throw Error(u(93));o=o[0]}n=o}n==null&&(n=""),o=n}e._wrapperState={initialValue:H(o)}}function x1(e,n){var o=H(n.value),r=H(n.defaultValue);o!=null&&(o=""+o,o!==e.value&&(e.value=o),n.defaultValue==null&&e.defaultValue!==o&&(e.defaultValue=o)),r!=null&&(e.defaultValue=""+r)}function w1(e){var n=e.textContent;n===e._wrapperState.initialValue&&n!==""&&n!==null&&(e.value=n)}function j1(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Gs(e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?j1(n):e==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ui,b1=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,o,r,a){MSApp.execUnsafeLocalFunction(function(){return e(n,o,r,a)})}:e})(function(e,n){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=n;else{for(Ui=Ui||document.createElement("div"),Ui.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=Ui.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function zo(e,n){if(n){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=n;return}}e.textContent=n}var Mo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},A0=["Webkit","ms","Moz","O"];Object.keys(Mo).forEach(function(e){A0.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),Mo[n]=Mo[e]})});function N1(e,n,o){return n==null||typeof n=="boolean"||n===""?"":o||typeof n!="number"||n===0||Mo.hasOwnProperty(e)&&Mo[e]?(""+n).trim():n+"px"}function S1(e,n){e=e.style;for(var o in n)if(n.hasOwnProperty(o)){var r=o.indexOf("--")===0,a=N1(o,n[o],r);o==="float"&&(o="cssFloat"),r?e.setProperty(o,a):e[o]=a}}var R0=Q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Vs(e,n){if(n){if(R0[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(u(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(u(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(u(61))}if(n.style!=null&&typeof n.style!="object")throw Error(u(62))}}function Hs(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ks=null;function Ys(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var qs=null,Ht=null,Kt=null;function C1(e){if(e=ii(e)){if(typeof qs!="function")throw Error(u(280));var n=e.stateNode;n&&(n=lr(n),qs(e.stateNode,e.type,n))}}function P1(e){Ht?Kt?Kt.push(e):Kt=[e]:Ht=e}function L1(){if(Ht){var e=Ht,n=Kt;if(Kt=Ht=null,C1(e),n)for(e=0;e<n.length;e++)C1(n[e])}}function E1(e,n){return e(n)}function D1(){}var Qs=!1;function T1(e,n,o){if(Qs)return e(n,o);Qs=!0;try{return E1(e,n,o)}finally{Qs=!1,(Ht!==null||Kt!==null)&&(D1(),L1())}}function Fo(e,n){var o=e.stateNode;if(o===null)return null;var r=lr(o);if(r===null)return null;o=r[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(o&&typeof o!="function")throw Error(u(231,n,typeof o));return o}var Zs=!1;if(x)try{var Io={};Object.defineProperty(Io,"passive",{get:function(){Zs=!0}}),window.addEventListener("test",Io,Io),window.removeEventListener("test",Io,Io)}catch{Zs=!1}function z0(e,n,o,r,a,l,f,y,j){var z=Array.prototype.slice.call(arguments,3);try{n.apply(o,z)}catch(V){this.onError(V)}}var Oo=!1,Bi=null,$i=!1,Xs=null,M0={onError:function(e){Oo=!0,Bi=e}};function F0(e,n,o,r,a,l,f,y,j){Oo=!1,Bi=null,z0.apply(M0,arguments)}function I0(e,n,o,r,a,l,f,y,j){if(F0.apply(this,arguments),Oo){if(Oo){var z=Bi;Oo=!1,Bi=null}else throw Error(u(198));$i||($i=!0,Xs=z)}}function Ct(e){var n=e,o=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(o=n.return),e=n.return;while(e)}return n.tag===3?o:null}function A1(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function R1(e){if(Ct(e)!==e)throw Error(u(188))}function O0(e){var n=e.alternate;if(!n){if(n=Ct(e),n===null)throw Error(u(188));return n!==e?null:e}for(var o=e,r=n;;){var a=o.return;if(a===null)break;var l=a.alternate;if(l===null){if(r=a.return,r!==null){o=r;continue}break}if(a.child===l.child){for(l=a.child;l;){if(l===o)return R1(a),e;if(l===r)return R1(a),n;l=l.sibling}throw Error(u(188))}if(o.return!==r.return)o=a,r=l;else{for(var f=!1,y=a.child;y;){if(y===o){f=!0,o=a,r=l;break}if(y===r){f=!0,r=a,o=l;break}y=y.sibling}if(!f){for(y=l.child;y;){if(y===o){f=!0,o=l,r=a;break}if(y===r){f=!0,r=l,o=a;break}y=y.sibling}if(!f)throw Error(u(189))}}if(o.alternate!==r)throw Error(u(190))}if(o.tag!==3)throw Error(u(188));return o.stateNode.current===o?e:n}function z1(e){return e=O0(e),e!==null?M1(e):null}function M1(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var n=M1(e);if(n!==null)return n;e=e.sibling}return null}var F1=c.unstable_scheduleCallback,I1=c.unstable_cancelCallback,U0=c.unstable_shouldYield,B0=c.unstable_requestPaint,Be=c.unstable_now,$0=c.unstable_getCurrentPriorityLevel,Js=c.unstable_ImmediatePriority,O1=c.unstable_UserBlockingPriority,Wi=c.unstable_NormalPriority,W0=c.unstable_LowPriority,U1=c.unstable_IdlePriority,Gi=null,$n=null;function G0(e){if($n&&typeof $n.onCommitFiberRoot=="function")try{$n.onCommitFiberRoot(Gi,e,void 0,(e.current.flags&128)===128)}catch{}}var Ln=Math.clz32?Math.clz32:K0,V0=Math.log,H0=Math.LN2;function K0(e){return e>>>=0,e===0?32:31-(V0(e)/H0|0)|0}var Vi=64,Hi=4194304;function Uo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ki(e,n){var o=e.pendingLanes;if(o===0)return 0;var r=0,a=e.suspendedLanes,l=e.pingedLanes,f=o&268435455;if(f!==0){var y=f&~a;y!==0?r=Uo(y):(l&=f,l!==0&&(r=Uo(l)))}else f=o&~a,f!==0?r=Uo(f):l!==0&&(r=Uo(l));if(r===0)return 0;if(n!==0&&n!==r&&(n&a)===0&&(a=r&-r,l=n&-n,a>=l||a===16&&(l&4194240)!==0))return n;if((r&4)!==0&&(r|=o&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=r;0<n;)o=31-Ln(n),a=1<<o,r|=e[o],n&=~a;return r}function Y0(e,n){switch(e){case 1:case 2:case 4:return n+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function q0(e,n){for(var o=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,l=e.pendingLanes;0<l;){var f=31-Ln(l),y=1<<f,j=a[f];j===-1?((y&o)===0||(y&r)!==0)&&(a[f]=Y0(y,n)):j<=n&&(e.expiredLanes|=y),l&=~y}}function ea(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function B1(){var e=Vi;return Vi<<=1,(Vi&4194240)===0&&(Vi=64),e}function na(e){for(var n=[],o=0;31>o;o++)n.push(e);return n}function Bo(e,n,o){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-Ln(n),e[n]=o}function Q0(e,n){var o=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<o;){var a=31-Ln(o),l=1<<a;n[a]=0,r[a]=-1,e[a]=-1,o&=~l}}function ta(e,n){var o=e.entangledLanes|=n;for(e=e.entanglements;o;){var r=31-Ln(o),a=1<<r;a&n|e[r]&n&&(e[r]|=n),o&=~a}}var Pe=0;function $1(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var W1,oa,G1,V1,H1,ia=!1,Yi=[],ot=null,it=null,rt=null,$o=new Map,Wo=new Map,st=[],Z0="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function K1(e,n){switch(e){case"focusin":case"focusout":ot=null;break;case"dragenter":case"dragleave":it=null;break;case"mouseover":case"mouseout":rt=null;break;case"pointerover":case"pointerout":$o.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wo.delete(n.pointerId)}}function Go(e,n,o,r,a,l){return e===null||e.nativeEvent!==l?(e={blockedOn:n,domEventName:o,eventSystemFlags:r,nativeEvent:l,targetContainers:[a]},n!==null&&(n=ii(n),n!==null&&oa(n)),e):(e.eventSystemFlags|=r,n=e.targetContainers,a!==null&&n.indexOf(a)===-1&&n.push(a),e)}function X0(e,n,o,r,a){switch(n){case"focusin":return ot=Go(ot,e,n,o,r,a),!0;case"dragenter":return it=Go(it,e,n,o,r,a),!0;case"mouseover":return rt=Go(rt,e,n,o,r,a),!0;case"pointerover":var l=a.pointerId;return $o.set(l,Go($o.get(l)||null,e,n,o,r,a)),!0;case"gotpointercapture":return l=a.pointerId,Wo.set(l,Go(Wo.get(l)||null,e,n,o,r,a)),!0}return!1}function Y1(e){var n=Pt(e.target);if(n!==null){var o=Ct(n);if(o!==null){if(n=o.tag,n===13){if(n=A1(o),n!==null){e.blockedOn=n,H1(e.priority,function(){G1(o)});return}}else if(n===3&&o.stateNode.current.memoizedState.isDehydrated){e.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}e.blockedOn=null}function qi(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var o=sa(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(o===null){o=e.nativeEvent;var r=new o.constructor(o.type,o);Ks=r,o.target.dispatchEvent(r),Ks=null}else return n=ii(o),n!==null&&oa(n),e.blockedOn=o,!1;n.shift()}return!0}function q1(e,n,o){qi(e)&&o.delete(n)}function J0(){ia=!1,ot!==null&&qi(ot)&&(ot=null),it!==null&&qi(it)&&(it=null),rt!==null&&qi(rt)&&(rt=null),$o.forEach(q1),Wo.forEach(q1)}function Vo(e,n){e.blockedOn===n&&(e.blockedOn=null,ia||(ia=!0,c.unstable_scheduleCallback(c.unstable_NormalPriority,J0)))}function Ho(e){function n(a){return Vo(a,e)}if(0<Yi.length){Vo(Yi[0],e);for(var o=1;o<Yi.length;o++){var r=Yi[o];r.blockedOn===e&&(r.blockedOn=null)}}for(ot!==null&&Vo(ot,e),it!==null&&Vo(it,e),rt!==null&&Vo(rt,e),$o.forEach(n),Wo.forEach(n),o=0;o<st.length;o++)r=st[o],r.blockedOn===e&&(r.blockedOn=null);for(;0<st.length&&(o=st[0],o.blockedOn===null);)Y1(o),o.blockedOn===null&&st.shift()}var Yt=O.ReactCurrentBatchConfig,Qi=!0;function ef(e,n,o,r){var a=Pe,l=Yt.transition;Yt.transition=null;try{Pe=1,ra(e,n,o,r)}finally{Pe=a,Yt.transition=l}}function nf(e,n,o,r){var a=Pe,l=Yt.transition;Yt.transition=null;try{Pe=4,ra(e,n,o,r)}finally{Pe=a,Yt.transition=l}}function ra(e,n,o,r){if(Qi){var a=sa(e,n,o,r);if(a===null)ja(e,n,r,Zi,o),K1(e,r);else if(X0(a,e,n,o,r))r.stopPropagation();else if(K1(e,r),n&4&&-1<Z0.indexOf(e)){for(;a!==null;){var l=ii(a);if(l!==null&&W1(l),l=sa(e,n,o,r),l===null&&ja(e,n,r,Zi,o),l===a)break;a=l}a!==null&&r.stopPropagation()}else ja(e,n,r,null,o)}}var Zi=null;function sa(e,n,o,r){if(Zi=null,e=Ys(r),e=Pt(e),e!==null)if(n=Ct(e),n===null)e=null;else if(o=n.tag,o===13){if(e=A1(n),e!==null)return e;e=null}else if(o===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null);return Zi=e,null}function Q1(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch($0()){case Js:return 1;case O1:return 4;case Wi:case W0:return 16;case U1:return 536870912;default:return 16}default:return 16}}var at=null,aa=null,Xi=null;function Z1(){if(Xi)return Xi;var e,n=aa,o=n.length,r,a="value"in at?at.value:at.textContent,l=a.length;for(e=0;e<o&&n[e]===a[e];e++);var f=o-e;for(r=1;r<=f&&n[o-r]===a[l-r];r++);return Xi=a.slice(e,1<r?1-r:void 0)}function Ji(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function er(){return!0}function X1(){return!1}function yn(e){function n(o,r,a,l,f){this._reactName=o,this._targetInst=a,this.type=r,this.nativeEvent=l,this.target=f,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(o=e[y],this[y]=o?o(l):l[y]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?er:X1,this.isPropagationStopped=X1,this}return Q(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=er)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=er)},persist:function(){},isPersistent:er}),n}var qt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ca=yn(qt),Ko=Q({},qt,{view:0,detail:0}),tf=yn(Ko),la,ua,Yo,nr=Q({},Ko,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pa,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Yo&&(Yo&&e.type==="mousemove"?(la=e.screenX-Yo.screenX,ua=e.screenY-Yo.screenY):ua=la=0,Yo=e),la)},movementY:function(e){return"movementY"in e?e.movementY:ua}}),J1=yn(nr),of=Q({},nr,{dataTransfer:0}),rf=yn(of),sf=Q({},Ko,{relatedTarget:0}),da=yn(sf),af=Q({},qt,{animationName:0,elapsedTime:0,pseudoElement:0}),cf=yn(af),lf=Q({},qt,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),uf=yn(lf),df=Q({},qt,{data:0}),eu=yn(df),pf={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ff={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},hf={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function mf(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=hf[e])?!!n[e]:!1}function pa(){return mf}var gf=Q({},Ko,{key:function(e){if(e.key){var n=pf[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Ji(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ff[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pa,charCode:function(e){return e.type==="keypress"?Ji(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ji(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),vf=yn(gf),yf=Q({},nr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),nu=yn(yf),_f=Q({},Ko,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pa}),kf=yn(_f),xf=Q({},qt,{propertyName:0,elapsedTime:0,pseudoElement:0}),wf=yn(xf),jf=Q({},nr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),bf=yn(jf),Nf=[9,13,27,32],fa=x&&"CompositionEvent"in window,qo=null;x&&"documentMode"in document&&(qo=document.documentMode);var Sf=x&&"TextEvent"in window&&!qo,tu=x&&(!fa||qo&&8<qo&&11>=qo),ou=" ",iu=!1;function ru(e,n){switch(e){case"keyup":return Nf.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function su(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Qt=!1;function Cf(e,n){switch(e){case"compositionend":return su(n);case"keypress":return n.which!==32?null:(iu=!0,ou);case"textInput":return e=n.data,e===ou&&iu?null:e;default:return null}}function Pf(e,n){if(Qt)return e==="compositionend"||!fa&&ru(e,n)?(e=Z1(),Xi=aa=at=null,Qt=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return tu&&n.locale!=="ko"?null:n.data;default:return null}}var Lf={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function au(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!Lf[e.type]:n==="textarea"}function cu(e,n,o,r){P1(r),n=sr(n,"onChange"),0<n.length&&(o=new ca("onChange","change",null,o,r),e.push({event:o,listeners:n}))}var Qo=null,Zo=null;function Ef(e){Su(e,0)}function tr(e){var n=no(e);if(Ao(n))return e}function Df(e,n){if(e==="change")return n}var lu=!1;if(x){var ha;if(x){var ma="oninput"in document;if(!ma){var uu=document.createElement("div");uu.setAttribute("oninput","return;"),ma=typeof uu.oninput=="function"}ha=ma}else ha=!1;lu=ha&&(!document.documentMode||9<document.documentMode)}function du(){Qo&&(Qo.detachEvent("onpropertychange",pu),Zo=Qo=null)}function pu(e){if(e.propertyName==="value"&&tr(Zo)){var n=[];cu(n,Zo,e,Ys(e)),T1(Ef,n)}}function Tf(e,n,o){e==="focusin"?(du(),Qo=n,Zo=o,Qo.attachEvent("onpropertychange",pu)):e==="focusout"&&du()}function Af(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return tr(Zo)}function Rf(e,n){if(e==="click")return tr(n)}function zf(e,n){if(e==="input"||e==="change")return tr(n)}function Mf(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var En=typeof Object.is=="function"?Object.is:Mf;function Xo(e,n){if(En(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var o=Object.keys(e),r=Object.keys(n);if(o.length!==r.length)return!1;for(r=0;r<o.length;r++){var a=o[r];if(!v.call(n,a)||!En(e[a],n[a]))return!1}return!0}function fu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hu(e,n){var o=fu(e);e=0;for(var r;o;){if(o.nodeType===3){if(r=e+o.textContent.length,e<=n&&r>=n)return{node:o,offset:n-e};e=r}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=fu(o)}}function mu(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?mu(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function gu(){for(var e=window,n=Oi();n instanceof e.HTMLIFrameElement;){try{var o=typeof n.contentWindow.location.href=="string"}catch{o=!1}if(o)e=n.contentWindow;else break;n=Oi(e.document)}return n}function ga(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function Ff(e){var n=gu(),o=e.focusedElem,r=e.selectionRange;if(n!==o&&o&&o.ownerDocument&&mu(o.ownerDocument.documentElement,o)){if(r!==null&&ga(o)){if(n=r.start,e=r.end,e===void 0&&(e=n),"selectionStart"in o)o.selectionStart=n,o.selectionEnd=Math.min(e,o.value.length);else if(e=(n=o.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var a=o.textContent.length,l=Math.min(r.start,a);r=r.end===void 0?l:Math.min(r.end,a),!e.extend&&l>r&&(a=r,r=l,l=a),a=hu(o,l);var f=hu(o,r);a&&f&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==f.node||e.focusOffset!==f.offset)&&(n=n.createRange(),n.setStart(a.node,a.offset),e.removeAllRanges(),l>r?(e.addRange(n),e.extend(f.node,f.offset)):(n.setEnd(f.node,f.offset),e.addRange(n)))}}for(n=[],e=o;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<n.length;o++)e=n[o],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var If=x&&"documentMode"in document&&11>=document.documentMode,Zt=null,va=null,Jo=null,ya=!1;function vu(e,n,o){var r=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;ya||Zt==null||Zt!==Oi(r)||(r=Zt,"selectionStart"in r&&ga(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Jo&&Xo(Jo,r)||(Jo=r,r=sr(va,"onSelect"),0<r.length&&(n=new ca("onSelect","select",null,n,o),e.push({event:n,listeners:r}),n.target=Zt)))}function or(e,n){var o={};return o[e.toLowerCase()]=n.toLowerCase(),o["Webkit"+e]="webkit"+n,o["Moz"+e]="moz"+n,o}var Xt={animationend:or("Animation","AnimationEnd"),animationiteration:or("Animation","AnimationIteration"),animationstart:or("Animation","AnimationStart"),transitionend:or("Transition","TransitionEnd")},_a={},yu={};x&&(yu=document.createElement("div").style,"AnimationEvent"in window||(delete Xt.animationend.animation,delete Xt.animationiteration.animation,delete Xt.animationstart.animation),"TransitionEvent"in window||delete Xt.transitionend.transition);function ir(e){if(_a[e])return _a[e];if(!Xt[e])return e;var n=Xt[e],o;for(o in n)if(n.hasOwnProperty(o)&&o in yu)return _a[e]=n[o];return e}var _u=ir("animationend"),ku=ir("animationiteration"),xu=ir("animationstart"),wu=ir("transitionend"),ju=new Map,bu="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ct(e,n){ju.set(e,n),h(n,[e])}for(var ka=0;ka<bu.length;ka++){var xa=bu[ka],Of=xa.toLowerCase(),Uf=xa[0].toUpperCase()+xa.slice(1);ct(Of,"on"+Uf)}ct(_u,"onAnimationEnd"),ct(ku,"onAnimationIteration"),ct(xu,"onAnimationStart"),ct("dblclick","onDoubleClick"),ct("focusin","onFocus"),ct("focusout","onBlur"),ct(wu,"onTransitionEnd"),m("onMouseEnter",["mouseout","mouseover"]),m("onMouseLeave",["mouseout","mouseover"]),m("onPointerEnter",["pointerout","pointerover"]),m("onPointerLeave",["pointerout","pointerover"]),h("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),h("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),h("onBeforeInput",["compositionend","keypress","textInput","paste"]),h("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),h("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),h("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ei="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Bf=new Set("cancel close invalid load scroll toggle".split(" ").concat(ei));function Nu(e,n,o){var r=e.type||"unknown-event";e.currentTarget=o,I0(r,n,void 0,e),e.currentTarget=null}function Su(e,n){n=(n&4)!==0;for(var o=0;o<e.length;o++){var r=e[o],a=r.event;r=r.listeners;e:{var l=void 0;if(n)for(var f=r.length-1;0<=f;f--){var y=r[f],j=y.instance,z=y.currentTarget;if(y=y.listener,j!==l&&a.isPropagationStopped())break e;Nu(a,y,z),l=j}else for(f=0;f<r.length;f++){if(y=r[f],j=y.instance,z=y.currentTarget,y=y.listener,j!==l&&a.isPropagationStopped())break e;Nu(a,y,z),l=j}}}if($i)throw e=Xs,$i=!1,Xs=null,e}function Te(e,n){var o=n[La];o===void 0&&(o=n[La]=new Set);var r=e+"__bubble";o.has(r)||(Cu(n,e,2,!1),o.add(r))}function wa(e,n,o){var r=0;n&&(r|=4),Cu(o,e,r,n)}var rr="_reactListening"+Math.random().toString(36).slice(2);function ni(e){if(!e[rr]){e[rr]=!0,d.forEach(function(o){o!=="selectionchange"&&(Bf.has(o)||wa(o,!1,e),wa(o,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[rr]||(n[rr]=!0,wa("selectionchange",!1,n))}}function Cu(e,n,o,r){switch(Q1(n)){case 1:var a=ef;break;case 4:a=nf;break;default:a=ra}o=a.bind(null,n,o,e),a=void 0,!Zs||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(a=!0),r?a!==void 0?e.addEventListener(n,o,{capture:!0,passive:a}):e.addEventListener(n,o,!0):a!==void 0?e.addEventListener(n,o,{passive:a}):e.addEventListener(n,o,!1)}function ja(e,n,o,r,a){var l=r;if((n&1)===0&&(n&2)===0&&r!==null)e:for(;;){if(r===null)return;var f=r.tag;if(f===3||f===4){var y=r.stateNode.containerInfo;if(y===a||y.nodeType===8&&y.parentNode===a)break;if(f===4)for(f=r.return;f!==null;){var j=f.tag;if((j===3||j===4)&&(j=f.stateNode.containerInfo,j===a||j.nodeType===8&&j.parentNode===a))return;f=f.return}for(;y!==null;){if(f=Pt(y),f===null)return;if(j=f.tag,j===5||j===6){r=l=f;continue e}y=y.parentNode}}r=r.return}T1(function(){var z=l,V=Ys(o),K=[];e:{var G=ju.get(e);if(G!==void 0){var oe=ca,se=e;switch(e){case"keypress":if(Ji(o)===0)break e;case"keydown":case"keyup":oe=vf;break;case"focusin":se="focus",oe=da;break;case"focusout":se="blur",oe=da;break;case"beforeblur":case"afterblur":oe=da;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":oe=J1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":oe=rf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":oe=kf;break;case _u:case ku:case xu:oe=cf;break;case wu:oe=wf;break;case"scroll":oe=tf;break;case"wheel":oe=bf;break;case"copy":case"cut":case"paste":oe=uf;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":oe=nu}var ae=(n&4)!==0,$e=!ae&&e==="scroll",L=ae?G!==null?G+"Capture":null:G;ae=[];for(var N=z,T;N!==null;){T=N;var Z=T.stateNode;if(T.tag===5&&Z!==null&&(T=Z,L!==null&&(Z=Fo(N,L),Z!=null&&ae.push(ti(N,Z,T)))),$e)break;N=N.return}0<ae.length&&(G=new oe(G,se,null,o,V),K.push({event:G,listeners:ae}))}}if((n&7)===0){e:{if(G=e==="mouseover"||e==="pointerover",oe=e==="mouseout"||e==="pointerout",G&&o!==Ks&&(se=o.relatedTarget||o.fromElement)&&(Pt(se)||se[Yn]))break e;if((oe||G)&&(G=V.window===V?V:(G=V.ownerDocument)?G.defaultView||G.parentWindow:window,oe?(se=o.relatedTarget||o.toElement,oe=z,se=se?Pt(se):null,se!==null&&($e=Ct(se),se!==$e||se.tag!==5&&se.tag!==6)&&(se=null)):(oe=null,se=z),oe!==se)){if(ae=J1,Z="onMouseLeave",L="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(ae=nu,Z="onPointerLeave",L="onPointerEnter",N="pointer"),$e=oe==null?G:no(oe),T=se==null?G:no(se),G=new ae(Z,N+"leave",oe,o,V),G.target=$e,G.relatedTarget=T,Z=null,Pt(V)===z&&(ae=new ae(L,N+"enter",se,o,V),ae.target=T,ae.relatedTarget=$e,Z=ae),$e=Z,oe&&se)n:{for(ae=oe,L=se,N=0,T=ae;T;T=Jt(T))N++;for(T=0,Z=L;Z;Z=Jt(Z))T++;for(;0<N-T;)ae=Jt(ae),N--;for(;0<T-N;)L=Jt(L),T--;for(;N--;){if(ae===L||L!==null&&ae===L.alternate)break n;ae=Jt(ae),L=Jt(L)}ae=null}else ae=null;oe!==null&&Pu(K,G,oe,ae,!1),se!==null&&$e!==null&&Pu(K,$e,se,ae,!0)}}e:{if(G=z?no(z):window,oe=G.nodeName&&G.nodeName.toLowerCase(),oe==="select"||oe==="input"&&G.type==="file")var ce=Df;else if(au(G))if(lu)ce=zf;else{ce=Af;var pe=Tf}else(oe=G.nodeName)&&oe.toLowerCase()==="input"&&(G.type==="checkbox"||G.type==="radio")&&(ce=Rf);if(ce&&(ce=ce(e,z))){cu(K,ce,o,V);break e}pe&&pe(e,G,z),e==="focusout"&&(pe=G._wrapperState)&&pe.controlled&&G.type==="number"&&$s(G,"number",G.value)}switch(pe=z?no(z):window,e){case"focusin":(au(pe)||pe.contentEditable==="true")&&(Zt=pe,va=z,Jo=null);break;case"focusout":Jo=va=Zt=null;break;case"mousedown":ya=!0;break;case"contextmenu":case"mouseup":case"dragend":ya=!1,vu(K,o,V);break;case"selectionchange":if(If)break;case"keydown":case"keyup":vu(K,o,V)}var fe;if(fa)e:{switch(e){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else Qt?ru(e,o)&&(ye="onCompositionEnd"):e==="keydown"&&o.keyCode===229&&(ye="onCompositionStart");ye&&(tu&&o.locale!=="ko"&&(Qt||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&Qt&&(fe=Z1()):(at=V,aa="value"in at?at.value:at.textContent,Qt=!0)),pe=sr(z,ye),0<pe.length&&(ye=new eu(ye,e,null,o,V),K.push({event:ye,listeners:pe}),fe?ye.data=fe:(fe=su(o),fe!==null&&(ye.data=fe)))),(fe=Sf?Cf(e,o):Pf(e,o))&&(z=sr(z,"onBeforeInput"),0<z.length&&(V=new eu("onBeforeInput","beforeinput",null,o,V),K.push({event:V,listeners:z}),V.data=fe))}Su(K,n)})}function ti(e,n,o){return{instance:e,listener:n,currentTarget:o}}function sr(e,n){for(var o=n+"Capture",r=[];e!==null;){var a=e,l=a.stateNode;a.tag===5&&l!==null&&(a=l,l=Fo(e,o),l!=null&&r.unshift(ti(e,l,a)),l=Fo(e,n),l!=null&&r.push(ti(e,l,a))),e=e.return}return r}function Jt(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Pu(e,n,o,r,a){for(var l=n._reactName,f=[];o!==null&&o!==r;){var y=o,j=y.alternate,z=y.stateNode;if(j!==null&&j===r)break;y.tag===5&&z!==null&&(y=z,a?(j=Fo(o,l),j!=null&&f.unshift(ti(o,j,y))):a||(j=Fo(o,l),j!=null&&f.push(ti(o,j,y)))),o=o.return}f.length!==0&&e.push({event:n,listeners:f})}var $f=/\r\n?/g,Wf=/\u0000|\uFFFD/g;function Lu(e){return(typeof e=="string"?e:""+e).replace($f,`38 `).replace( Wf,"")}function ar(e,n,o){if(n=Lu(n),Lu(e)!==n&&o)throw Error(u(425))}function cr(){}var ba=null,Na=null;function Sa(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Ca=typeof setTimeout=="function"?setTimeout:void 0,Gf=typeof clearTimeout=="function"?clearTimeout:void 0,Eu=typeof Promise=="function"?Promise:void 0,Vf=typeof queueMicrotask=="function"?queueMicrotask:typeof Eu<"u"?function(e){return Eu.resolve(null).then(e).catch(Hf)}:Ca;function Hf(e){setTimeout(function(){throw e})}function Pa(e,n){var o=n,r=0;do{var a=o.nextSibling;if(e.removeChild(o),a&&a.nodeType===8)if(o=a.data,o==="/$"){if(r===0){e.removeChild(a),Ho(n);return}r--}else o!=="$"&&o!=="$?"&&o!=="$!"||r++;o=a}while(o);Ho(n)}function lt(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return e}function Du(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var o=e.data;if(o==="$"||o==="$!"||o==="$?"){if(n===0)return e;n--}else o==="/$"&&n++}e=e.previousSibling}return null}var eo=Math.random().toString(36).slice(2),Wn="__reactFiber$"+eo,oi="__reactProps$"+eo,Yn="__reactContainer$"+eo,La="__reactEvents$"+eo,Kf="__reactListeners$"+eo,Yf="__reactHandles$"+eo;function Pt(e){var n=e[Wn];if(n)return n;for(var o=e.parentNode;o;){if(n=o[Yn]||o[Wn]){if(o=n.alternate,n.child!==null||o!==null&&o.child!==null)for(e=Du(e);e!==null;){if(o=e[Wn])return o;e=Du(e)}return n}e=o,o=e.parentNode}return null}function ii(e){return e=e[Wn]||e[Yn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function no(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(u(33))}function lr(e){return e[oi]||null}var Ea=[],to=-1;function ut(e){return{current:e}}function Ae(e){0>to||(e.current=Ea[to],Ea[to]=null,to--)}function Ee(e,n){to++,Ea[to]=e.current,e.current=n}var dt={},nn=ut(dt),dn=ut(!1),Lt=dt;function oo(e,n){var o=e.type.contextTypes;if(!o)return dt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var a={},l;for(l in o)a[l]=n[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=a),a}function pn(e){return e=e.childContextTypes,e!=null}function ur(){Ae(dn),Ae(nn)}function Tu(e,n,o){if(nn.current!==dt)throw Error(u(168));Ee(nn,n),Ee(dn,o)}function Au(e,n,o){var r=e.stateNode;if(n=n.childContextTypes,typeof r.getChildContext!="function")return o;r=r.getChildContext();for(var a in r)if(!(a in n))throw Error(u(108,F(e)||"Unknown",a));return Q({},o,r)}function dr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||dt,Lt=nn.current,Ee(nn,e),Ee(dn,dn.current),!0}function Ru(e,n,o){var r=e.stateNode;if(!r)throw Error(u(169));o?(e=Au(e,n,Lt),r.__reactInternalMemoizedMergedChildContext=e,Ae(dn),Ae(nn),Ee(nn,e)):Ae(dn),Ee(dn,o)}var qn=null,pr=!1,Da=!1;function zu(e){qn===null?qn=[e]:qn.push(e)}function qf(e){pr=!0,zu(e)}function pt(){if(!Da&&qn!==null){Da=!0;var e=0,n=Pe;try{var o=qn;for(Pe=1;e<o.length;e++){var r=o[e];do r=r(!0);while(r!==null)}qn=null,pr=!1}catch(a){throw qn!==null&&(qn=qn.slice(e+1)),F1(Js,pt),a}finally{Pe=n,Da=!1}}return null}var io=[],ro=0,fr=null,hr=0,wn=[],jn=0,Et=null,Qn=1,Zn="";function Dt(e,n){io[ro++]=hr,io[ro++]=fr,fr=e,hr=n}function Mu(e,n,o){wn[jn++]=Qn,wn[jn++]=Zn,wn[jn++]=Et,Et=e;var r=Qn;e=Zn;var a=32-Ln(r)-1;r&=~(1<<a),o+=1;var l=32-Ln(n)+a;if(30<l){var f=a-a%5;l=(r&(1<<f)-1).toString(32),r>>=f,a-=f,Qn=1<<32-Ln(n)+a|o<<a|r,Zn=l+e}else Qn=1<<l|o<<a|r,Zn=e}function Ta(e){e.return!==null&&(Dt(e,1),Mu(e,1,0))}function Aa(e){for(;e===fr;)fr=io[--ro],io[ro]=null,hr=io[--ro],io[ro]=null;for(;e===Et;)Et=wn[--jn],wn[jn]=null,Zn=wn[--jn],wn[jn]=null,Qn=wn[--jn],wn[jn]=null}var _n=null,kn=null,Me=!1,Dn=null;function Fu(e,n){var o=Cn(5,null,null,0);o.elementType="DELETED",o.stateNode=n,o.return=e,n=e.deletions,n===null?(e.deletions=[o],e.flags|=16):n.push(o)}function Iu(e,n){switch(e.tag){case 5:var o=e.type;return n=n.nodeType!==1||o.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(e.stateNode=n,_n=e,kn=lt(n.firstChild),!0):!1;case 6:return n=e.pendingProps===""||n.nodeType!==3?null:n,n!==null?(e.stateNode=n,_n=e,kn=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(o=Et!==null?{id:Qn,overflow:Zn}:null,e.memoizedState={dehydrated:n,treeContext:o,retryLane:1073741824},o=Cn(18,null,null,0),o.stateNode=n,o.return=e,e.child=o,_n=e,kn=null,!0):!1;default:return!1}}function Ra(e){return(e.mode&1)!==0&&(e.flags&128)===0}function za(e){if(Me){var n=kn;if(n){var o=n;if(!Iu(e,n)){if(Ra(e))throw Error(u(418));n=lt(o.nextSibling);var r=_n;n&&Iu(e,n)?Fu(r,o):(e.flags=e.flags&-4097|2,Me=!1,_n=e)}}else{if(Ra(e))throw Error(u(418));e.flags=e.flags&-4097|2,Me=!1,_n=e}}}function Ou(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;_n=e}function mr(e){if(e!==_n)return!1;if(!Me)return Ou(e),Me=!0,!1;var n;if((n=e.tag!==3)&&!(n=e.tag!==5)&&(n=e.type,n=n!=="head"&&n!=="body"&&!Sa(e.type,e.memoizedProps)),n&&(n=kn)){if(Ra(e))throw Uu(),Error(u(418));for(;n;)Fu(e,n),n=lt(n.nextSibling)}if(Ou(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8){var o=e.data;if(o==="/$"){if(n===0){kn=lt(e.nextSibling);break e}n--}else o!=="$"&&o!=="$!"&&o!=="$?"||n++}e=e.nextSibling}kn=null}}else kn=_n?lt(e.stateNode.nextSibling):null;return!0}function Uu(){for(var e=kn;e;)e=lt(e.nextSibling)}function so(){kn=_n=null,Me=!1}function Ma(e){Dn===null?Dn=[e]:Dn.push(e)}var Qf=O.ReactCurrentBatchConfig;function ri(e,n,o){if(e=o.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(u(309));var r=o.stateNode}if(!r)throw Error(u(147,e));var a=r,l=""+e;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===l?n.ref:(n=function(f){var y=a.refs;f===null?delete y[l]:y[l]=f},n._stringRef=l,n)}if(typeof e!="string")throw Error(u(284));if(!o._owner)throw Error(u(290,e))}return e}function gr(e,n){throw e=Object.prototype.toString.call(n),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function Bu(e){var n=e._init;return n(e._payload)}function $u(e){function n(L,N){if(e){var T=L.deletions;T===null?(L.deletions=[N],L.flags|=16):T.push(N)}}function o(L,N){if(!e)return null;for(;N!==null;)n(L,N),N=N.sibling;return null}function r(L,N){for(L=new Map;N!==null;)N.key!==null?L.set(N.key,N):L.set(N.index,N),N=N.sibling;return L}function a(L,N){return L=kt(L,N),L.index=0,L.sibling=null,L}function l(L,N,T){return L.index=T,e?(T=L.alternate,T!==null?(T=T.index,T<N?(L.flags|=2,N):T):(L.flags|=2,N)):(L.flags|=1048576,N)}function f(L){return e&&L.alternate===null&&(L.flags|=2),L}function y(L,N,T,Z){return N===null||N.tag!==6?(N=Cc(T,L.mode,Z),N.return=L,N):(N=a(N,T),N.return=L,N)}function j(L,N,T,Z){var ce=T.type;return ce===B?V(L,N,T.props.children,Z,T.key):N!==null&&(N.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===_e&&Bu(ce)===N.type)?(Z=a(N,T.props),Z.ref=ri(L,N,T),Z.return=L,Z):(Z=Ur(T.type,T.key,T.props,null,L.mode,Z),Z.ref=ri(L,N,T),Z.return=L,Z)}function z(L,N,T,Z){return N===null||N.tag!==4||N.stateNode.containerInfo!==T.containerInfo||N.stateNode.implementation!==T.implementation?(N=Pc(T,L.mode,Z),N.return=L,N):(N=a(N,T.children||[]),N.return=L,N)}function V(L,N,T,Z,ce){return N===null||N.tag!==7?(N=Ot(T,L.mode,Z,ce),N.return=L,N):(N=a(N,T),N.return=L,N)}function K(L,N,T){if(typeof N=="string"&&N!==""||typeof N=="number")return N=Cc(""+N,L.mode,T),N.return=L,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case te:return T=Ur(N.type,N.key,N.props,null,L.mode,T),T.ref=ri(L,null,N),T.return=L,T;case J:return N=Pc(N,L.mode,T),N.return=L,N;case _e:var Z=N._init;return K(L,Z(N._payload),T)}if(Ro(N)||ee(N))return N=Ot(N,L.mode,T,null),N.return=L,N;gr(L,N)}return null}function G(L,N,T,Z){var ce=N!==null?N.key:null;if(typeof T=="string"&&T!==""||typeof T=="number")return ce!==null?null:y(L,N,""+T,Z);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case te:return T.key===ce?j(L,N,T,Z):null;case J:return T.key===ce?z(L,N,T,Z):null;case _e:return ce=T._init,G(L,N,ce(T._payload),Z)}if(Ro(T)||ee(T))return ce!==null?null:V(L,N,T,Z,null);gr(L,T)}return null}function oe(L,N,T,Z,ce){if(typeof Z=="string"&&Z!==""||typeof Z=="number")return L=L.get(T)||null,y(N,L,""+Z,ce);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case te:return L=L.get(Z.key===null?T:Z.key)||null,j(N,L,Z,ce);case J:return L=L.get(Z.key===null?T:Z.key)||null,z(N,L,Z,ce);case _e:var pe=Z._init;return oe(L,N,T,pe(Z._payload),ce)}if(Ro(Z)||ee(Z))return L=L.get(T)||null,V(N,L,Z,ce,null);gr(N,Z)}return null}function se(L,N,T,Z){for(var ce=null,pe=null,fe=N,ye=N=0,Qe=null;fe!==null&&ye<T.length;ye++){fe.index>ye?(Qe=fe,fe=null):Qe=fe.sibling;var Se=G(L,fe,T[ye],Z);if(Se===null){fe===null&&(fe=Qe);break}e&&fe&&Se.alternate===null&&n(L,fe),N=l(Se,N,ye),pe===null?ce=Se:pe.sibling=Se,pe=Se,fe=Qe}if(ye===T.length)return o(L,fe),Me&&Dt(L,ye),ce;if(fe===null){for(;ye<T.length;ye++)fe=K(L,T[ye],Z),fe!==null&&(N=l(fe,N,ye),pe===null?ce=fe:pe.sibling=fe,pe=fe);return Me&&Dt(L,ye),ce}for(fe=r(L,fe);ye<T.length;ye++)Qe=oe(fe,L,ye,T[ye],Z),Qe!==null&&(e&&Qe.alternate!==null&&fe.delete(Qe.key===null?ye:Qe.key),N=l(Qe,N,ye),pe===null?ce=Qe:pe.sibling=Qe,pe=Qe);return e&&fe.forEach(function(xt){return n(L,xt)}),Me&&Dt(L,ye),ce}function ae(L,N,T,Z){var ce=ee(T);if(typeof ce!="function")throw Error(u(150));if(T=ce.call(T),T==null)throw Error(u(151));for(var pe=ce=null,fe=N,ye=N=0,Qe=null,Se=T.next();fe!==null&&!Se.done;ye++,Se=T.next()){fe.index>ye?(Qe=fe,fe=null):Qe=fe.sibling;var xt=G(L,fe,Se.value,Z);if(xt===null){fe===null&&(fe=Qe);break}e&&fe&&xt.alternate===null&&n(L,fe),N=l(xt,N,ye),pe===null?ce=xt:pe.sibling=xt,pe=xt,fe=Qe}if(Se.done)return o(L,fe),Me&&Dt(L,ye),ce;if(fe===null){for(;!Se.done;ye++,Se=T.next())Se=K(L,Se.value,Z),Se!==null&&(N=l(Se,N,ye),pe===null?ce=Se:pe.sibling=Se,pe=Se);return Me&&Dt(L,ye),ce}for(fe=r(L,fe);!Se.done;ye++,Se=T.next())Se=oe(fe,L,ye,Se.value,Z),Se!==null&&(e&&Se.alternate!==null&&fe.delete(Se.key===null?ye:Se.key),N=l(Se,N,ye),pe===null?ce=Se:pe.sibling=Se,pe=Se);return e&&fe.forEach(function(L4){return n(L,L4)}),Me&&Dt(L,ye),ce}function $e(L,N,T,Z){if(typeof T=="object"&&T!==null&&T.type===B&&T.key===null&&(T=T.props.children),typeof T=="object"&&T!==null){switch(T.$$typeof){case te:e:{for(var ce=T.key,pe=N;pe!==null;){if(pe.key===ce){if(ce=T.type,ce===B){if(pe.tag===7){o(L,pe.sibling),N=a(pe,T.props.children),N.return=L,L=N;break e}}else if(pe.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===_e&&Bu(ce)===pe.type){o(L,pe.sibling),N=a(pe,T.props),N.ref=ri(L,pe,T),N.return=L,L=N;break e}o(L,pe);break}else n(L,pe);pe=pe.sibling}T.type===B?(N=Ot(T.props.children,L.mode,Z,T.key),N.return=L,L=N):(Z=Ur(T.type,T.key,T.props,null,L.mode,Z),Z.ref=ri(L,N,T),Z.return=L,L=Z)}return f(L);case J:e:{for(pe=T.key;N!==null;){if(N.key===pe)if(N.tag===4&&N.stateNode.containerInfo===T.containerInfo&&N.stateNode.implementation===T.implementation){o(L,N.sibling),N=a(N,T.children||[]),N.return=L,L=N;break e}else{o(L,N);break}else n(L,N);N=N.sibling}N=Pc(T,L.mode,Z),N.return=L,L=N}return f(L);case _e:return pe=T._init,$e(L,N,pe(T._payload),Z)}if(Ro(T))return se(L,N,T,Z);if(ee(T))return ae(L,N,T,Z);gr(L,T)}return typeof T=="string"&&T!==""||typeof T=="number"?(T=""+T,N!==null&&N.tag===6?(o(L,N.sibling),N=a(N,T),N.return=L,L=N):(o(L,N),N=Cc(T,L.mode,Z),N.return=L,L=N),f(L)):o(L,N)}return $e}var ao=$u(!0),Wu=$u(!1),vr=ut(null),yr=null,co=null,Fa=null;function Ia(){Fa=co=yr=null}function Oa(e){var n=vr.current;Ae(vr),e._currentValue=n}function Ua(e,n,o){for(;e!==null;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,r!==null&&(r.childLanes|=n)):r!==null&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===o)break;e=e.return}}function lo(e,n){yr=e,Fa=co=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&n)!==0&&(fn=!0),e.firstContext=null)}function bn(e){var n=e._currentValue;if(Fa!==e)if(e={context:e,memoizedValue:n,next:null},co===null){if(yr===null)throw Error(u(308));co=e,yr.dependencies={lanes:0,firstContext:e}}else co=co.next=e;return n}var Tt=null;function Ba(e){Tt===null?Tt=[e]:Tt.push(e)}function Gu(e,n,o,r){var a=n.interleaved;return a===null?(o.next=o,Ba(n)):(o.next=a.next,a.next=o),n.interleaved=o,Xn(e,r)}function Xn(e,n){e.lanes|=n;var o=e.alternate;for(o!==null&&(o.lanes|=n),o=e,e=e.return;e!==null;)e.childLanes|=n,o=e.alternate,o!==null&&(o.childLanes|=n),o=e,e=e.return;return o.tag===3?o.stateNode:null}var ft=!1;function $a(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vu(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Jn(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function ht(e,n,o){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(Ne&2)!==0){var a=r.pending;return a===null?n.next=n:(n.next=a.next,a.next=n),r.pending=n,Xn(e,o)}return a=r.interleaved,a===null?(n.next=n,Ba(r)):(n.next=a.next,a.next=n),r.interleaved=n,Xn(e,o)}function _r(e,n,o){if(n=n.updateQueue,n!==null&&(n=n.shared,(o&4194240)!==0)){var r=n.lanes;r&=e.pendingLanes,o|=r,n.lanes=o,ta(e,o)}}function Hu(e,n){var o=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,o===r)){var a=null,l=null;if(o=o.firstBaseUpdate,o!==null){do{var f={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};l===null?a=l=f:l=l.next=f,o=o.next}while(o!==null);l===null?a=l=n:l=l.next=n}else a=l=n;o={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=n:e.next=n,o.lastBaseUpdate=n}function kr(e,n,o,r){var a=e.updateQueue;ft=!1;var l=a.firstBaseUpdate,f=a.lastBaseUpdate,y=a.shared.pending;if(y!==null){a.shared.pending=null;var j=y,z=j.next;j.next=null,f===null?l=z:f.next=z,f=j;var V=e.alternate;V!==null&&(V=V.updateQueue,y=V.lastBaseUpdate,y!==f&&(y===null?V.firstBaseUpdate=z:y.next=z,V.lastBaseUpdate=j))}if(l!==null){var K=a.baseState;f=0,V=z=j=null,y=l;do{var G=y.lane,oe=y.eventTime;if((r&G)===G){V!==null&&(V=V.next={eventTime:oe,lane:0,tag:y.tag,payload:y.payload,callback:y.callback,next:null});e:{var se=e,ae=y;switch(G=n,oe=o,ae.tag){case 1:if(se=ae.payload,typeof se=="function"){K=se.call(oe,K,G);break e}K=se;break e;case 3:se.flags=se.flags&-65537|128;case 0:if(se=ae.payload,G=typeof se=="function"?se.call(oe,K,G):se,G==null)break e;K=Q({},K,G);break e;case 2:ft=!0}}y.callback!==null&&y.lane!==0&&(e.flags|=64,G=a.effects,G===null?a.effects=[y]:G.push(y))}else oe={eventTime:oe,lane:G,tag:y.tag,payload:y.payload,callback:y.callback,next:null},V===null?(z=V=oe,j=K):V=V.next=oe,f|=G;if(y=y.next,y===null){if(y=a.shared.pending,y===null)break;G=y,y=G.next,G.next=null,a.lastBaseUpdate=G,a.shared.pending=null}}while(!0);if(V===null&&(j=K),a.baseState=j,a.firstBaseUpdate=z,a.lastBaseUpdate=V,n=a.shared.interleaved,n!==null){a=n;do f|=a.lane,a=a.next;while(a!==n)}else l===null&&(a.shared.lanes=0);zt|=f,e.lanes=f,e.memoizedState=K}}function Ku(e,n,o){if(e=n.effects,n.effects=null,e!==null)for(n=0;n<e.length;n++){var r=e[n],a=r.callback;if(a!==null){if(r.callback=null,r=o,typeof a!="function")throw Error(u(191,a));a.call(r)}}}var si={},Gn=ut(si),ai=ut(si),ci=ut(si);function At(e){if(e===si)throw Error(u(174));return e}function Wa(e,n){switch(Ee(ci,n),Ee(ai,e),Ee(Gn,si),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:Gs(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=Gs(n,e)}Ae(Gn),Ee(Gn,n)}function uo(){Ae(Gn),Ae(ai),Ae(ci)}function Yu(e){At(ci.current);var n=At(Gn.current),o=Gs(n,e.type);n!==o&&(Ee(ai,e),Ee(Gn,o))}function Ga(e){ai.current===e&&(Ae(Gn),Ae(ai))}var Fe=ut(0);function xr(e){for(var n=e;n!==null;){if(n.tag===13){var o=n.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Va=[];function Ha(){for(var e=0;e<Va.length;e++)Va[e]._workInProgressVersionPrimary=null;Va.length=0}var wr=O.ReactCurrentDispatcher,Ka=O.ReactCurrentBatchConfig,Rt=0,Ie=null,He=null,Ye=null,jr=!1,li=!1,ui=0,Zf=0;function tn(){throw Error(u(321))}function Ya(e,n){if(n===null)return!1;for(var o=0;o<n.length&&o<e.length;o++)if(!En(e[o],n[o]))return!1;return!0}function qa(e,n,o,r,a,l){if(Rt=l,Ie=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,wr.current=e===null||e.memoizedState===null?n4:t4,e=o(r,a),li){l=0;do{if(li=!1,ui=0,25<=l)throw Error(u(301));l+=1,Ye=He=null,n.updateQueue=null,wr.current=o4,e=o(r,a)}while(li)}if(wr.current=Sr,n=He!==null&&He.next!==null,Rt=0,Ye=He=Ie=null,jr=!1,n)throw Error(u(300));return e}function Qa(){var e=ui!==0;return ui=0,e}function Vn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ye===null?Ie.memoizedState=Ye=e:Ye=Ye.next=e,Ye}function Nn(){if(He===null){var e=Ie.alternate;e=e!==null?e.memoizedState:null}else e=He.next;var n=Ye===null?Ie.memoizedState:Ye.next;if(n!==null)Ye=n,He=e;else{if(e===null)throw Error(u(310));He=e,e={memoizedState:He.memoizedState,baseState:He.baseState,baseQueue:He.baseQueue,queue:He.queue,next:null},Ye===null?Ie.memoizedState=Ye=e:Ye=Ye.next=e}return Ye}function di(e,n){return typeof n=="function"?n(e):n}function Za(e){var n=Nn(),o=n.queue;if(o===null)throw Error(u(311));o.lastRenderedReducer=e;var r=He,a=r.baseQueue,l=o.pending;if(l!==null){if(a!==null){var f=a.next;a.next=l.next,l.next=f}r.baseQueue=a=l,o.pending=null}if(a!==null){l=a.next,r=r.baseState;var y=f=null,j=null,z=l;do{var V=z.lane;if((Rt&V)===V)j!==null&&(j=j.next={lane:0,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),r=z.hasEagerState?z.eagerState:e(r,z.action);else{var K={lane:V,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null};j===null?(y=j=K,f=r):j=j.next=K,Ie.lanes|=V,zt|=V}z=z.next}while(z!==null&&z!==l);j===null?f=r:j.next=y,En(r,n.memoizedState)||(fn=!0),n.memoizedState=r,n.baseState=f,n.baseQueue=j,o.lastRenderedState=r}if(e=o.interleaved,e!==null){a=e;do l=a.lane,Ie.lanes|=l,zt|=l,a=a.next;while(a!==e)}else a===null&&(o.lanes=0);return[n.memoizedState,o.dispatch]}function Xa(e){var n=Nn(),o=n.queue;if(o===null)throw Error(u(311));o.lastRenderedReducer=e;var r=o.dispatch,a=o.pending,l=n.memoizedState;if(a!==null){o.pending=null;var f=a=a.next;do l=e(l,f.action),f=f.next;while(f!==a);En(l,n.memoizedState)||(fn=!0),n.memoizedState=l,n.baseQueue===null&&(n.baseState=l),o.lastRenderedState=l}return[l,r]}function qu(){}function Qu(e,n){var o=Ie,r=Nn(),a=n(),l=!En(r.memoizedState,a);if(l&&(r.memoizedState=a,fn=!0),r=r.queue,Ja(Ju.bind(null,o,r,e),[e]),r.getSnapshot!==n||l||Ye!==null&&Ye.memoizedState.tag&1){if(o.flags|=2048,pi(9,Xu.bind(null,o,r,a,n),void 0,null),qe===null)throw Error(u(349));(Rt&30)!==0||Zu(o,n,a)}return a}function Zu(e,n,o){e.flags|=16384,e={getSnapshot:n,value:o},n=Ie.updateQueue,n===null?(n={lastEffect:null,stores:null},Ie.updateQueue=n,n.stores=[e]):(o=n.stores,o===null?n.stores=[e]:o.push(e))}function Xu(e,n,o,r){n.value=o,n.getSnapshot=r,ed(n)&&nd(e)}function Ju(e,n,o){return o(function(){ed(n)&&nd(e)})}function ed(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!En(e,o)}catch{return!0}}function nd(e){var n=Xn(e,1);n!==null&&zn(n,e,1,-1)}function td(e){var n=Vn();return typeof e=="function"&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:di,lastRenderedState:e},n.queue=e,e=e.dispatch=e4.bind(null,Ie,e),[n.memoizedState,e]}function pi(e,n,o,r){return e={tag:e,create:n,destroy:o,deps:r,next:null},n=Ie.updateQueue,n===null?(n={lastEffect:null,stores:null},Ie.updateQueue=n,n.lastEffect=e.next=e):(o=n.lastEffect,o===null?n.lastEffect=e.next=e:(r=o.next,o.next=e,e.next=r,n.lastEffect=e)),e}function od(){return Nn().memoizedState}function br(e,n,o,r){var a=Vn();Ie.flags|=e,a.memoizedState=pi(1|n,o,void 0,r===void 0?null:r)}function Nr(e,n,o,r){var a=Nn();r=r===void 0?null:r;var l=void 0;if(He!==null){var f=He.memoizedState;if(l=f.destroy,r!==null&&Ya(r,f.deps)){a.memoizedState=pi(n,o,l,r);return}}Ie.flags|=e,a.memoizedState=pi(1|n,o,l,r)}function id(e,n){return br(8390656,8,e,n)}function Ja(e,n){return Nr(2048,8,e,n)}function rd(e,n){return Nr(4,2,e,n)}function sd(e,n){return Nr(4,4,e,n)}function ad(e,n){if(typeof n=="function")return e=e(),n(e),function(){n(null)};if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function cd(e,n,o){return o=o!=null?o.concat([e]):null,Nr(4,4,ad.bind(null,n,e),o)}function ec(){}function ld(e,n){var o=Nn();n=n===void 0?null:n;var r=o.memoizedState;return r!==null&&n!==null&&Ya(n,r[1])?r[0]:(o.memoizedState=[e,n],e)}function ud(e,n){var o=Nn();n=n===void 0?null:n;var r=o.memoizedState;return r!==null&&n!==null&&Ya(n,r[1])?r[0]:(e=e(),o.memoizedState=[e,n],e)}function dd(e,n,o){return(Rt&21)===0?(e.baseState&&(e.baseState=!1,fn=!0),e.memoizedState=o):(En(o,n)||(o=B1(),Ie.lanes|=o,zt|=o,e.baseState=!0),n)}function Xf(e,n){var o=Pe;Pe=o!==0&&4>o?o:4,e(!0);var r=Ka.transition;Ka.transition={};try{e(!1),n()}finally{Pe=o,Ka.transition=r}}function pd(){return Nn().memoizedState}function Jf(e,n,o){var r=yt(e);if(o={lane:r,action:o,hasEagerState:!1,eagerState:null,next:null},fd(e))hd(n,o);else if(o=Gu(e,n,o,r),o!==null){var a=cn();zn(o,e,r,a),md(o,n,r)}}function e4(e,n,o){var r=yt(e),a={lane:r,action:o,hasEagerState:!1,eagerState:null,next:null};if(fd(e))hd(n,a);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=n.lastRenderedReducer,l!==null))try{var f=n.lastRenderedState,y=l(f,o);if(a.hasEagerState=!0,a.eagerState=y,En(y,f)){var j=n.interleaved;j===null?(a.next=a,Ba(n)):(a.next=j.next,j.next=a),n.interleaved=a;return}}catch{}finally{}o=Gu(e,n,a,r),o!==null&&(a=cn(),zn(o,e,r,a),md(o,n,r))}}function fd(e){var n=e.alternate;return e===Ie||n!==null&&n===Ie}function hd(e,n){li=jr=!0;var o=e.pending;o===null?n.next=n:(n.next=o.next,o.next=n),e.pending=n}function md(e,n,o){if((o&4194240)!==0){var r=n.lanes;r&=e.pendingLanes,o|=r,n.lanes=o,ta(e,o)}}var Sr={readContext:bn,useCallback:tn,useContext:tn,useEffect:tn,useImperativeHandle:tn,useInsertionEffect:tn,useLayoutEffect:tn,useMemo:tn,useReducer:tn,useRef:tn,useState:tn,useDebugValue:tn,useDeferredValue:tn,useTransition:tn,useMutableSource:tn,useSyncExternalStore:tn,useId:tn,unstable_isNewReconciler:!1},n4={readContext:bn,useCallback:function(e,n){return Vn().memoizedState=[e,n===void 0?null:n],e},useContext:bn,useEffect:id,useImperativeHandle:function(e,n,o){return o=o!=null?o.concat([e]):null,br(4194308,4,ad.bind(null,n,e),o)},useLayoutEffect:function(e,n){return br(4194308,4,e,n)},useInsertionEffect:function(e,n){return br(4,2,e,n)},useMemo:function(e,n){var o=Vn();return n=n===void 0?null:n,e=e(),o.memoizedState=[e,n],e},useReducer:function(e,n,o){var r=Vn();return n=o!==void 0?o(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=Jf.bind(null,Ie,e),[r.memoizedState,e]},useRef:function(e){var n=Vn();return e={current:e},n.memoizedState=e},useState:td,useDebugValue:ec,useDeferredValue:function(e){return Vn().memoizedState=e},useTransition:function(){var e=td(!1),n=e[0];return e=Xf.bind(null,e[1]),Vn().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,o){var r=Ie,a=Vn();if(Me){if(o===void 0)throw Error(u(407));o=o()}else{if(o=n(),qe===null)throw Error(u(349));(Rt&30)!==0||Zu(r,n,o)}a.memoizedState=o;var l={value:o,getSnapshot:n};return a.queue=l,id(Ju.bind(null,r,l,e),[e]),r.flags|=2048,pi(9,Xu.bind(null,r,l,o,n),void 0,null),o},useId:function(){var e=Vn(),n=qe.identifierPrefix;if(Me){var o=Zn,r=Qn;o=(r&~(1<<32-Ln(r)-1)).toString(32)+o,n=":"+n+"R"+o,o=ui++,0<o&&(n+="H"+o.toString(32)),n+=":"}else o=Zf++,n=":"+n+"r"+o.toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},t4={readContext:bn,useCallback:ld,useContext:bn,useEffect:Ja,useImperativeHandle:cd,useInsertionEffect:rd,useLayoutEffect:sd,useMemo:ud,useReducer:Za,useRef:od,useState:function(){return Za(di)},useDebugValue:ec,useDeferredValue:function(e){var n=Nn();return dd(n,He.memoizedState,e)},useTransition:function(){var e=Za(di)[0],n=Nn().memoizedState;return[e,n]},useMutableSource:qu,useSyncExternalStore:Qu,useId:pd,unstable_isNewReconciler:!1},o4={readContext:bn,useCallback:ld,useContext:bn,useEffect:Ja,useImperativeHandle:cd,useInsertionEffect:rd,useLayoutEffect:sd,useMemo:ud,useReducer:Xa,useRef:od,useState:function(){return Xa(di)},useDebugValue:ec,useDeferredValue:function(e){var n=Nn();return He===null?n.memoizedState=e:dd(n,He.memoizedState,e)},useTransition:function(){var e=Xa(di)[0],n=Nn().memoizedState;return[e,n]},useMutableSource:qu,useSyncExternalStore:Qu,useId:pd,unstable_isNewReconciler:!1};function Tn(e,n){if(e&&e.defaultProps){n=Q({},n),e=e.defaultProps;for(var o in e)n[o]===void 0&&(n[o]=e[o]);return n}return n}function nc(e,n,o,r){n=e.memoizedState,o=o(r,n),o=o==null?n:Q({},n,o),e.memoizedState=o,e.lanes===0&&(e.updateQueue.baseState=o)}var Cr={isMounted:function(e){return(e=e._reactInternals)?Ct(e)===e:!1},enqueueSetState:function(e,n,o){e=e._reactInternals;var r=cn(),a=yt(e),l=Jn(r,a);l.payload=n,o!=null&&(l.callback=o),n=ht(e,l,a),n!==null&&(zn(n,e,a,r),_r(n,e,a))},enqueueReplaceState:function(e,n,o){e=e._reactInternals;var r=cn(),a=yt(e),l=Jn(r,a);l.tag=1,l.payload=n,o!=null&&(l.callback=o),n=ht(e,l,a),n!==null&&(zn(n,e,a,r),_r(n,e,a))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var o=cn(),r=yt(e),a=Jn(o,r);a.tag=2,n!=null&&(a.callback=n),n=ht(e,a,r),n!==null&&(zn(n,e,r,o),_r(n,e,r))}};function gd(e,n,o,r,a,l,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,f):n.prototype&&n.prototype.isPureReactComponent?!Xo(o,r)||!Xo(a,l):!0}function vd(e,n,o){var r=!1,a=dt,l=n.contextType;return typeof l=="object"&&l!==null?l=bn(l):(a=pn(n)?Lt:nn.current,r=n.contextTypes,l=(r=r!=null)?oo(e,a):dt),n=new n(o,l),e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=Cr,e.stateNode=n,n._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=l),n}function yd(e,n,o,r){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(o,r),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(o,r),n.state!==e&&Cr.enqueueReplaceState(n,n.state,null)}function tc(e,n,o,r){var a=e.stateNode;a.props=o,a.state=e.memoizedState,a.refs={},$a(e);var l=n.contextType;typeof l=="object"&&l!==null?a.context=bn(l):(l=pn(n)?Lt:nn.current,a.context=oo(e,l)),a.state=e.memoizedState,l=n.getDerivedStateFromProps,typeof l=="function"&&(nc(e,n,l,o),a.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(n=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),n!==a.state&&Cr.enqueueReplaceState(a,a.state,null),kr(e,o,a,r),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}function po(e,n){try{var o="",r=n;do o+=ge(r),r=r.return;while(r);var a=o}catch(l){a=`36 `),f=a.length-1,y=l.length-1;1<=f&&0<=y&&a[f]!==l[y];)y--;for(;1<=f&&0<=y;f--,y--)if(a[f]!==l[y]){if(f!==1||y!==1)do if(f--,y--,0>y||a[f]!==l[y]){var w=` 37 `+a[f].replace(" at new "," at ");return e.displayName&&w.includes("<anonymous>")&&(w=w.replace("<anonymous>",e.displayName)),w}while(1<=f&&0<=y);break}}}finally{re=!1,Error.prepareStackTrace=o}return(e=e?e.displayName||e.name:"")?$(e):""}function ve(e){switch(e.tag){case 5:return $(e.type);case 16:return $("Lazy");case 13:return $("Suspense");case 19:return $("SuspenseList");case 0:case 2:case 15:return e=pe(e.type,!1),e;case 11:return e=pe(e.type.render,!1),e;case 1:return e=pe(e.type,!0),e;default:return""}}function xe(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case B:return"Fragment";case J:return"Portal";case q:return"Profiler";case X:return"StrictMode";case ge:return"Suspense";case ne:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case te:return(e.displayName||"Context")+".Consumer";case W:return(e._context.displayName||"Context")+".Provider";case ue:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case de:return n=e.displayName||null,n!==null?n:xe(e.type)||"Memo";case F:n=e._payload,e=e._init;try{return xe(e(n))}catch{}}return null}function M(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return xe(n);case 8:return n===X?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function fe(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Ve(e){var n=fe(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var a=o.get,l=o.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return a.call(this)},set:function(f){r=""+f,l.call(this,f)}}),Object.defineProperty(e,n,{enumerable:o.enumerable}),{getValue:function(){return r},setValue:function(f){r=""+f},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function De(e){e._valueTracker||(e._valueTracker=Ve(e))}function Ao(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var o=n.getValue(),r="";return e&&(r=fe(e)?e.checked?"true":"false":e.value),e=r,e!==o?(n.setValue(e),!0):!1}function Oi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Us(e,n){var o=n.checked;return Q({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??e._wrapperState.initialChecked})}function v1(e,n){var o=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;o=H(n.value!=null?n.value:o),e._wrapperState={initialChecked:r,initialValue:o,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function y1(e,n){n=n.checked,n!=null&&R(e,"checked",n,!1)}function Bs(e,n){y1(e,n);var o=H(n.value),r=n.type;if(o!=null)r==="number"?(o===0&&e.value===""||e.value!=o)&&(e.value=""+o):e.value!==""+o&&(e.value=""+o);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?$s(e,n.type,o):n.hasOwnProperty("defaultValue")&&$s(e,n.type,H(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function _1(e,n,o){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!(r!=="submit"&&r!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,o||n===e.value||(e.value=n),e.defaultValue=n}o=e.name,o!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,o!==""&&(e.name=o)}function $s(e,n,o){(n!=="number"||Oi(e.ownerDocument)!==e)&&(o==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+o&&(e.defaultValue=""+o))}var Ro=Array.isArray;function Vt(e,n,o,r){if(e=e.options,n){n={};for(var a=0;a<o.length;a++)n["$"+o[a]]=!0;for(o=0;o<e.length;o++)a=n.hasOwnProperty("$"+e[o].value),e[o].selected!==a&&(e[o].selected=a),a&&r&&(e[o].defaultSelected=!0)}else{for(o=""+H(o),n=null,a=0;a<e.length;a++){if(e[a].value===o){e[a].selected=!0,r&&(e[a].defaultSelected=!0);return}n!==null||e[a].disabled||(n=e[a])}n!==null&&(n.selected=!0)}}function Ws(e,n){if(n.dangerouslySetInnerHTML!=null)throw Error(u(91));return Q({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function k1(e,n){var o=n.value;if(o==null){if(o=n.children,n=n.defaultValue,o!=null){if(n!=null)throw Error(u(92));if(Ro(o)){if(1<o.length)throw Error(u(93));o=o[0]}n=o}n==null&&(n=""),o=n}e._wrapperState={initialValue:H(o)}}function x1(e,n){var o=H(n.value),r=H(n.defaultValue);o!=null&&(o=""+o,o!==e.value&&(e.value=o),n.defaultValue==null&&e.defaultValue!==o&&(e.defaultValue=o)),r!=null&&(e.defaultValue=""+r)}function j1(e){var n=e.textContent;n===e._wrapperState.initialValue&&n!==""&&n!==null&&(e.value=n)}function w1(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Gs(e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?w1(n):e==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ui,b1=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,o,r,a){MSApp.execUnsafeLocalFunction(function(){return e(n,o,r,a)})}:e})(function(e,n){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=n;else{for(Ui=Ui||document.createElement("div"),Ui.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=Ui.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function zo(e,n){if(n){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=n;return}}e.textContent=n}var Mo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},R0=["Webkit","ms","Moz","O"];Object.keys(Mo).forEach(function(e){R0.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),Mo[n]=Mo[e]})});function N1(e,n,o){return n==null||typeof n=="boolean"||n===""?"":o||typeof n!="number"||n===0||Mo.hasOwnProperty(e)&&Mo[e]?(""+n).trim():n+"px"}function S1(e,n){e=e.style;for(var o in n)if(n.hasOwnProperty(o)){var r=o.indexOf("--")===0,a=N1(o,n[o],r);o==="float"&&(o="cssFloat"),r?e.setProperty(o,a):e[o]=a}}var z0=Q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Vs(e,n){if(n){if(z0[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(u(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(u(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(u(61))}if(n.style!=null&&typeof n.style!="object")throw Error(u(62))}}function Hs(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ks=null;function Ys(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var qs=null,Ht=null,Kt=null;function C1(e){if(e=ii(e)){if(typeof qs!="function")throw Error(u(280));var n=e.stateNode;n&&(n=lr(n),qs(e.stateNode,e.type,n))}}function P1(e){Ht?Kt?Kt.push(e):Kt=[e]:Ht=e}function L1(){if(Ht){var e=Ht,n=Kt;if(Kt=Ht=null,C1(e),n)for(e=0;e<n.length;e++)C1(n[e])}}function E1(e,n){return e(n)}function D1(){}var Qs=!1;function T1(e,n,o){if(Qs)return e(n,o);Qs=!0;try{return E1(e,n,o)}finally{Qs=!1,(Ht!==null||Kt!==null)&&(D1(),L1())}}function Fo(e,n){var o=e.stateNode;if(o===null)return null;var r=lr(o);if(r===null)return null;o=r[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(o&&typeof o!="function")throw Error(u(231,n,typeof o));return o}var Zs=!1;if(x)try{var Io={};Object.defineProperty(Io,"passive",{get:function(){Zs=!0}}),window.addEventListener("test",Io,Io),window.removeEventListener("test",Io,Io)}catch{Zs=!1}function M0(e,n,o,r,a,l,f,y,w){var z=Array.prototype.slice.call(arguments,3);try{n.apply(o,z)}catch(V){this.onError(V)}}var Oo=!1,Bi=null,$i=!1,Xs=null,F0={onError:function(e){Oo=!0,Bi=e}};function I0(e,n,o,r,a,l,f,y,w){Oo=!1,Bi=null,M0.apply(F0,arguments)}function O0(e,n,o,r,a,l,f,y,w){if(I0.apply(this,arguments),Oo){if(Oo){var z=Bi;Oo=!1,Bi=null}else throw Error(u(198));$i||($i=!0,Xs=z)}}function Ct(e){var n=e,o=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(o=n.return),e=n.return;while(e)}return n.tag===3?o:null}function A1(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function R1(e){if(Ct(e)!==e)throw Error(u(188))}function U0(e){var n=e.alternate;if(!n){if(n=Ct(e),n===null)throw Error(u(188));return n!==e?null:e}for(var o=e,r=n;;){var a=o.return;if(a===null)break;var l=a.alternate;if(l===null){if(r=a.return,r!==null){o=r;continue}break}if(a.child===l.child){for(l=a.child;l;){if(l===o)return R1(a),e;if(l===r)return R1(a),n;l=l.sibling}throw Error(u(188))}if(o.return!==r.return)o=a,r=l;else{for(var f=!1,y=a.child;y;){if(y===o){f=!0,o=a,r=l;break}if(y===r){f=!0,r=a,o=l;break}y=y.sibling}if(!f){for(y=l.child;y;){if(y===o){f=!0,o=l,r=a;break}if(y===r){f=!0,r=l,o=a;break}y=y.sibling}if(!f)throw Error(u(189))}}if(o.alternate!==r)throw Error(u(190))}if(o.tag!==3)throw Error(u(188));return o.stateNode.current===o?e:n}function z1(e){return e=U0(e),e!==null?M1(e):null}function M1(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var n=M1(e);if(n!==null)return n;e=e.sibling}return null}var F1=c.unstable_scheduleCallback,I1=c.unstable_cancelCallback,B0=c.unstable_shouldYield,$0=c.unstable_requestPaint,Be=c.unstable_now,W0=c.unstable_getCurrentPriorityLevel,Js=c.unstable_ImmediatePriority,O1=c.unstable_UserBlockingPriority,Wi=c.unstable_NormalPriority,G0=c.unstable_LowPriority,U1=c.unstable_IdlePriority,Gi=null,$n=null;function V0(e){if($n&&typeof $n.onCommitFiberRoot=="function")try{$n.onCommitFiberRoot(Gi,e,void 0,(e.current.flags&128)===128)}catch{}}var Ln=Math.clz32?Math.clz32:Y0,H0=Math.log,K0=Math.LN2;function Y0(e){return e>>>=0,e===0?32:31-(H0(e)/K0|0)|0}var Vi=64,Hi=4194304;function Uo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ki(e,n){var o=e.pendingLanes;if(o===0)return 0;var r=0,a=e.suspendedLanes,l=e.pingedLanes,f=o&268435455;if(f!==0){var y=f&~a;y!==0?r=Uo(y):(l&=f,l!==0&&(r=Uo(l)))}else f=o&~a,f!==0?r=Uo(f):l!==0&&(r=Uo(l));if(r===0)return 0;if(n!==0&&n!==r&&(n&a)===0&&(a=r&-r,l=n&-n,a>=l||a===16&&(l&4194240)!==0))return n;if((r&4)!==0&&(r|=o&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=r;0<n;)o=31-Ln(n),a=1<<o,r|=e[o],n&=~a;return r}function q0(e,n){switch(e){case 1:case 2:case 4:return n+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Q0(e,n){for(var o=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,l=e.pendingLanes;0<l;){var f=31-Ln(l),y=1<<f,w=a[f];w===-1?((y&o)===0||(y&r)!==0)&&(a[f]=q0(y,n)):w<=n&&(e.expiredLanes|=y),l&=~y}}function ea(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function B1(){var e=Vi;return Vi<<=1,(Vi&4194240)===0&&(Vi=64),e}function na(e){for(var n=[],o=0;31>o;o++)n.push(e);return n}function Bo(e,n,o){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-Ln(n),e[n]=o}function Z0(e,n){var o=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<o;){var a=31-Ln(o),l=1<<a;n[a]=0,r[a]=-1,e[a]=-1,o&=~l}}function ta(e,n){var o=e.entangledLanes|=n;for(e=e.entanglements;o;){var r=31-Ln(o),a=1<<r;a&n|e[r]&n&&(e[r]|=n),o&=~a}}var Pe=0;function $1(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var W1,oa,G1,V1,H1,ia=!1,Yi=[],ot=null,it=null,rt=null,$o=new Map,Wo=new Map,st=[],X0="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function K1(e,n){switch(e){case"focusin":case"focusout":ot=null;break;case"dragenter":case"dragleave":it=null;break;case"mouseover":case"mouseout":rt=null;break;case"pointerover":case"pointerout":$o.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wo.delete(n.pointerId)}}function Go(e,n,o,r,a,l){return e===null||e.nativeEvent!==l?(e={blockedOn:n,domEventName:o,eventSystemFlags:r,nativeEvent:l,targetContainers:[a]},n!==null&&(n=ii(n),n!==null&&oa(n)),e):(e.eventSystemFlags|=r,n=e.targetContainers,a!==null&&n.indexOf(a)===-1&&n.push(a),e)}function J0(e,n,o,r,a){switch(n){case"focusin":return ot=Go(ot,e,n,o,r,a),!0;case"dragenter":return it=Go(it,e,n,o,r,a),!0;case"mouseover":return rt=Go(rt,e,n,o,r,a),!0;case"pointerover":var l=a.pointerId;return $o.set(l,Go($o.get(l)||null,e,n,o,r,a)),!0;case"gotpointercapture":return l=a.pointerId,Wo.set(l,Go(Wo.get(l)||null,e,n,o,r,a)),!0}return!1}function Y1(e){var n=Pt(e.target);if(n!==null){var o=Ct(n);if(o!==null){if(n=o.tag,n===13){if(n=A1(o),n!==null){e.blockedOn=n,H1(e.priority,function(){G1(o)});return}}else if(n===3&&o.stateNode.current.memoizedState.isDehydrated){e.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}e.blockedOn=null}function qi(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var o=sa(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(o===null){o=e.nativeEvent;var r=new o.constructor(o.type,o);Ks=r,o.target.dispatchEvent(r),Ks=null}else return n=ii(o),n!==null&&oa(n),e.blockedOn=o,!1;n.shift()}return!0}function q1(e,n,o){qi(e)&&o.delete(n)}function ef(){ia=!1,ot!==null&&qi(ot)&&(ot=null),it!==null&&qi(it)&&(it=null),rt!==null&&qi(rt)&&(rt=null),$o.forEach(q1),Wo.forEach(q1)}function Vo(e,n){e.blockedOn===n&&(e.blockedOn=null,ia||(ia=!0,c.unstable_scheduleCallback(c.unstable_NormalPriority,ef)))}function Ho(e){function n(a){return Vo(a,e)}if(0<Yi.length){Vo(Yi[0],e);for(var o=1;o<Yi.length;o++){var r=Yi[o];r.blockedOn===e&&(r.blockedOn=null)}}for(ot!==null&&Vo(ot,e),it!==null&&Vo(it,e),rt!==null&&Vo(rt,e),$o.forEach(n),Wo.forEach(n),o=0;o<st.length;o++)r=st[o],r.blockedOn===e&&(r.blockedOn=null);for(;0<st.length&&(o=st[0],o.blockedOn===null);)Y1(o),o.blockedOn===null&&st.shift()}var Yt=O.ReactCurrentBatchConfig,Qi=!0;function nf(e,n,o,r){var a=Pe,l=Yt.transition;Yt.transition=null;try{Pe=1,ra(e,n,o,r)}finally{Pe=a,Yt.transition=l}}function tf(e,n,o,r){var a=Pe,l=Yt.transition;Yt.transition=null;try{Pe=4,ra(e,n,o,r)}finally{Pe=a,Yt.transition=l}}function ra(e,n,o,r){if(Qi){var a=sa(e,n,o,r);if(a===null)wa(e,n,r,Zi,o),K1(e,r);else if(J0(a,e,n,o,r))r.stopPropagation();else if(K1(e,r),n&4&&-1<X0.indexOf(e)){for(;a!==null;){var l=ii(a);if(l!==null&&W1(l),l=sa(e,n,o,r),l===null&&wa(e,n,r,Zi,o),l===a)break;a=l}a!==null&&r.stopPropagation()}else wa(e,n,r,null,o)}}var Zi=null;function sa(e,n,o,r){if(Zi=null,e=Ys(r),e=Pt(e),e!==null)if(n=Ct(e),n===null)e=null;else if(o=n.tag,o===13){if(e=A1(n),e!==null)return e;e=null}else if(o===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null);return Zi=e,null}function Q1(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(W0()){case Js:return 1;case O1:return 4;case Wi:case G0:return 16;case U1:return 536870912;default:return 16}default:return 16}}var at=null,aa=null,Xi=null;function Z1(){if(Xi)return Xi;var e,n=aa,o=n.length,r,a="value"in at?at.value:at.textContent,l=a.length;for(e=0;e<o&&n[e]===a[e];e++);var f=o-e;for(r=1;r<=f&&n[o-r]===a[l-r];r++);return Xi=a.slice(e,1<r?1-r:void 0)}function Ji(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function er(){return!0}function X1(){return!1}function yn(e){function n(o,r,a,l,f){this._reactName=o,this._targetInst=a,this.type=r,this.nativeEvent=l,this.target=f,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(o=e[y],this[y]=o?o(l):l[y]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?er:X1,this.isPropagationStopped=X1,this}return Q(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=er)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=er)},persist:function(){},isPersistent:er}),n}var qt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ca=yn(qt),Ko=Q({},qt,{view:0,detail:0}),of=yn(Ko),la,ua,Yo,nr=Q({},Ko,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pa,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Yo&&(Yo&&e.type==="mousemove"?(la=e.screenX-Yo.screenX,ua=e.screenY-Yo.screenY):ua=la=0,Yo=e),la)},movementY:function(e){return"movementY"in e?e.movementY:ua}}),J1=yn(nr),rf=Q({},nr,{dataTransfer:0}),sf=yn(rf),af=Q({},Ko,{relatedTarget:0}),da=yn(af),cf=Q({},qt,{animationName:0,elapsedTime:0,pseudoElement:0}),lf=yn(cf),uf=Q({},qt,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),df=yn(uf),pf=Q({},qt,{data:0}),eu=yn(pf),ff={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hf={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},mf={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gf(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=mf[e])?!!n[e]:!1}function pa(){return gf}var vf=Q({},Ko,{key:function(e){if(e.key){var n=ff[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Ji(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?hf[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pa,charCode:function(e){return e.type==="keypress"?Ji(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ji(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),yf=yn(vf),_f=Q({},nr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),nu=yn(_f),kf=Q({},Ko,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pa}),xf=yn(kf),jf=Q({},qt,{propertyName:0,elapsedTime:0,pseudoElement:0}),wf=yn(jf),bf=Q({},nr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Nf=yn(bf),Sf=[9,13,27,32],fa=x&&"CompositionEvent"in window,qo=null;x&&"documentMode"in document&&(qo=document.documentMode);var Cf=x&&"TextEvent"in window&&!qo,tu=x&&(!fa||qo&&8<qo&&11>=qo),ou=" ",iu=!1;function ru(e,n){switch(e){case"keyup":return Sf.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function su(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Qt=!1;function Pf(e,n){switch(e){case"compositionend":return su(n);case"keypress":return n.which!==32?null:(iu=!0,ou);case"textInput":return e=n.data,e===ou&&iu?null:e;default:return null}}function Lf(e,n){if(Qt)return e==="compositionend"||!fa&&ru(e,n)?(e=Z1(),Xi=aa=at=null,Qt=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return tu&&n.locale!=="ko"?null:n.data;default:return null}}var Ef={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function au(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!Ef[e.type]:n==="textarea"}function cu(e,n,o,r){P1(r),n=sr(n,"onChange"),0<n.length&&(o=new ca("onChange","change",null,o,r),e.push({event:o,listeners:n}))}var Qo=null,Zo=null;function Df(e){Su(e,0)}function tr(e){var n=no(e);if(Ao(n))return e}function Tf(e,n){if(e==="change")return n}var lu=!1;if(x){var ha;if(x){var ma="oninput"in document;if(!ma){var uu=document.createElement("div");uu.setAttribute("oninput","return;"),ma=typeof uu.oninput=="function"}ha=ma}else ha=!1;lu=ha&&(!document.documentMode||9<document.documentMode)}function du(){Qo&&(Qo.detachEvent("onpropertychange",pu),Zo=Qo=null)}function pu(e){if(e.propertyName==="value"&&tr(Zo)){var n=[];cu(n,Zo,e,Ys(e)),T1(Df,n)}}function Af(e,n,o){e==="focusin"?(du(),Qo=n,Zo=o,Qo.attachEvent("onpropertychange",pu)):e==="focusout"&&du()}function Rf(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return tr(Zo)}function zf(e,n){if(e==="click")return tr(n)}function Mf(e,n){if(e==="input"||e==="change")return tr(n)}function Ff(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var En=typeof Object.is=="function"?Object.is:Ff;function Xo(e,n){if(En(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var o=Object.keys(e),r=Object.keys(n);if(o.length!==r.length)return!1;for(r=0;r<o.length;r++){var a=o[r];if(!v.call(n,a)||!En(e[a],n[a]))return!1}return!0}function fu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hu(e,n){var o=fu(e);e=0;for(var r;o;){if(o.nodeType===3){if(r=e+o.textContent.length,e<=n&&r>=n)return{node:o,offset:n-e};e=r}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=fu(o)}}function mu(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?mu(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function gu(){for(var e=window,n=Oi();n instanceof e.HTMLIFrameElement;){try{var o=typeof n.contentWindow.location.href=="string"}catch{o=!1}if(o)e=n.contentWindow;else break;n=Oi(e.document)}return n}function ga(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function If(e){var n=gu(),o=e.focusedElem,r=e.selectionRange;if(n!==o&&o&&o.ownerDocument&&mu(o.ownerDocument.documentElement,o)){if(r!==null&&ga(o)){if(n=r.start,e=r.end,e===void 0&&(e=n),"selectionStart"in o)o.selectionStart=n,o.selectionEnd=Math.min(e,o.value.length);else if(e=(n=o.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var a=o.textContent.length,l=Math.min(r.start,a);r=r.end===void 0?l:Math.min(r.end,a),!e.extend&&l>r&&(a=r,r=l,l=a),a=hu(o,l);var f=hu(o,r);a&&f&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==f.node||e.focusOffset!==f.offset)&&(n=n.createRange(),n.setStart(a.node,a.offset),e.removeAllRanges(),l>r?(e.addRange(n),e.extend(f.node,f.offset)):(n.setEnd(f.node,f.offset),e.addRange(n)))}}for(n=[],e=o;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<n.length;o++)e=n[o],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Of=x&&"documentMode"in document&&11>=document.documentMode,Zt=null,va=null,Jo=null,ya=!1;function vu(e,n,o){var r=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;ya||Zt==null||Zt!==Oi(r)||(r=Zt,"selectionStart"in r&&ga(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Jo&&Xo(Jo,r)||(Jo=r,r=sr(va,"onSelect"),0<r.length&&(n=new ca("onSelect","select",null,n,o),e.push({event:n,listeners:r}),n.target=Zt)))}function or(e,n){var o={};return o[e.toLowerCase()]=n.toLowerCase(),o["Webkit"+e]="webkit"+n,o["Moz"+e]="moz"+n,o}var Xt={animationend:or("Animation","AnimationEnd"),animationiteration:or("Animation","AnimationIteration"),animationstart:or("Animation","AnimationStart"),transitionend:or("Transition","TransitionEnd")},_a={},yu={};x&&(yu=document.createElement("div").style,"AnimationEvent"in window||(delete Xt.animationend.animation,delete Xt.animationiteration.animation,delete Xt.animationstart.animation),"TransitionEvent"in window||delete Xt.transitionend.transition);function ir(e){if(_a[e])return _a[e];if(!Xt[e])return e;var n=Xt[e],o;for(o in n)if(n.hasOwnProperty(o)&&o in yu)return _a[e]=n[o];return e}var _u=ir("animationend"),ku=ir("animationiteration"),xu=ir("animationstart"),ju=ir("transitionend"),wu=new Map,bu="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ct(e,n){wu.set(e,n),h(n,[e])}for(var ka=0;ka<bu.length;ka++){var xa=bu[ka],Uf=xa.toLowerCase(),Bf=xa[0].toUpperCase()+xa.slice(1);ct(Uf,"on"+Bf)}ct(_u,"onAnimationEnd"),ct(ku,"onAnimationIteration"),ct(xu,"onAnimationStart"),ct("dblclick","onDoubleClick"),ct("focusin","onFocus"),ct("focusout","onBlur"),ct(ju,"onTransitionEnd"),m("onMouseEnter",["mouseout","mouseover"]),m("onMouseLeave",["mouseout","mouseover"]),m("onPointerEnter",["pointerout","pointerover"]),m("onPointerLeave",["pointerout","pointerover"]),h("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),h("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),h("onBeforeInput",["compositionend","keypress","textInput","paste"]),h("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),h("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),h("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ei="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),$f=new Set("cancel close invalid load scroll toggle".split(" ").concat(ei));function Nu(e,n,o){var r=e.type||"unknown-event";e.currentTarget=o,O0(r,n,void 0,e),e.currentTarget=null}function Su(e,n){n=(n&4)!==0;for(var o=0;o<e.length;o++){var r=e[o],a=r.event;r=r.listeners;e:{var l=void 0;if(n)for(var f=r.length-1;0<=f;f--){var y=r[f],w=y.instance,z=y.currentTarget;if(y=y.listener,w!==l&&a.isPropagationStopped())break e;Nu(a,y,z),l=w}else for(f=0;f<r.length;f++){if(y=r[f],w=y.instance,z=y.currentTarget,y=y.listener,w!==l&&a.isPropagationStopped())break e;Nu(a,y,z),l=w}}}if($i)throw e=Xs,$i=!1,Xs=null,e}function Te(e,n){var o=n[La];o===void 0&&(o=n[La]=new Set);var r=e+"__bubble";o.has(r)||(Cu(n,e,2,!1),o.add(r))}function ja(e,n,o){var r=0;n&&(r|=4),Cu(o,e,r,n)}var rr="_reactListening"+Math.random().toString(36).slice(2);function ni(e){if(!e[rr]){e[rr]=!0,d.forEach(function(o){o!=="selectionchange"&&($f.has(o)||ja(o,!1,e),ja(o,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[rr]||(n[rr]=!0,ja("selectionchange",!1,n))}}function Cu(e,n,o,r){switch(Q1(n)){case 1:var a=nf;break;case 4:a=tf;break;default:a=ra}o=a.bind(null,n,o,e),a=void 0,!Zs||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(a=!0),r?a!==void 0?e.addEventListener(n,o,{capture:!0,passive:a}):e.addEventListener(n,o,!0):a!==void 0?e.addEventListener(n,o,{passive:a}):e.addEventListener(n,o,!1)}function wa(e,n,o,r,a){var l=r;if((n&1)===0&&(n&2)===0&&r!==null)e:for(;;){if(r===null)return;var f=r.tag;if(f===3||f===4){var y=r.stateNode.containerInfo;if(y===a||y.nodeType===8&&y.parentNode===a)break;if(f===4)for(f=r.return;f!==null;){var w=f.tag;if((w===3||w===4)&&(w=f.stateNode.containerInfo,w===a||w.nodeType===8&&w.parentNode===a))return;f=f.return}for(;y!==null;){if(f=Pt(y),f===null)return;if(w=f.tag,w===5||w===6){r=l=f;continue e}y=y.parentNode}}r=r.return}T1(function(){var z=l,V=Ys(o),K=[];e:{var G=wu.get(e);if(G!==void 0){var ie=ca,ae=e;switch(e){case"keypress":if(Ji(o)===0)break e;case"keydown":case"keyup":ie=yf;break;case"focusin":ae="focus",ie=da;break;case"focusout":ae="blur",ie=da;break;case"beforeblur":case"afterblur":ie=da;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ie=J1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ie=sf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ie=xf;break;case _u:case ku:case xu:ie=lf;break;case ju:ie=wf;break;case"scroll":ie=of;break;case"wheel":ie=Nf;break;case"copy":case"cut":case"paste":ie=df;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ie=nu}var ce=(n&4)!==0,$e=!ce&&e==="scroll",L=ce?G!==null?G+"Capture":null:G;ce=[];for(var N=z,T;N!==null;){T=N;var Z=T.stateNode;if(T.tag===5&&Z!==null&&(T=Z,L!==null&&(Z=Fo(N,L),Z!=null&&ce.push(ti(N,Z,T)))),$e)break;N=N.return}0<ce.length&&(G=new ie(G,ae,null,o,V),K.push({event:G,listeners:ce}))}}if((n&7)===0){e:{if(G=e==="mouseover"||e==="pointerover",ie=e==="mouseout"||e==="pointerout",G&&o!==Ks&&(ae=o.relatedTarget||o.fromElement)&&(Pt(ae)||ae[Yn]))break e;if((ie||G)&&(G=V.window===V?V:(G=V.ownerDocument)?G.defaultView||G.parentWindow:window,ie?(ae=o.relatedTarget||o.toElement,ie=z,ae=ae?Pt(ae):null,ae!==null&&($e=Ct(ae),ae!==$e||ae.tag!==5&&ae.tag!==6)&&(ae=null)):(ie=null,ae=z),ie!==ae)){if(ce=J1,Z="onMouseLeave",L="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(ce=nu,Z="onPointerLeave",L="onPointerEnter",N="pointer"),$e=ie==null?G:no(ie),T=ae==null?G:no(ae),G=new ce(Z,N+"leave",ie,o,V),G.target=$e,G.relatedTarget=T,Z=null,Pt(V)===z&&(ce=new ce(L,N+"enter",ae,o,V),ce.target=T,ce.relatedTarget=$e,Z=ce),$e=Z,ie&&ae)n:{for(ce=ie,L=ae,N=0,T=ce;T;T=Jt(T))N++;for(T=0,Z=L;Z;Z=Jt(Z))T++;for(;0<N-T;)ce=Jt(ce),N--;for(;0<T-N;)L=Jt(L),T--;for(;N--;){if(ce===L||L!==null&&ce===L.alternate)break n;ce=Jt(ce),L=Jt(L)}ce=null}else ce=null;ie!==null&&Pu(K,G,ie,ce,!1),ae!==null&&$e!==null&&Pu(K,$e,ae,ce,!0)}}e:{if(G=z?no(z):window,ie=G.nodeName&&G.nodeName.toLowerCase(),ie==="select"||ie==="input"&&G.type==="file")var le=Tf;else if(au(G))if(lu)le=Mf;else{le=Rf;var he=Af}else(ie=G.nodeName)&&ie.toLowerCase()==="input"&&(G.type==="checkbox"||G.type==="radio")&&(le=zf);if(le&&(le=le(e,z))){cu(K,le,o,V);break e}he&&he(e,G,z),e==="focusout"&&(he=G._wrapperState)&&he.controlled&&G.type==="number"&&$s(G,"number",G.value)}switch(he=z?no(z):window,e){case"focusin":(au(he)||he.contentEditable==="true")&&(Zt=he,va=z,Jo=null);break;case"focusout":Jo=va=Zt=null;break;case"mousedown":ya=!0;break;case"contextmenu":case"mouseup":case"dragend":ya=!1,vu(K,o,V);break;case"selectionchange":if(Of)break;case"keydown":case"keyup":vu(K,o,V)}var me;if(fa)e:{switch(e){case"compositionstart":var _e="onCompositionStart";break e;case"compositionend":_e="onCompositionEnd";break e;case"compositionupdate":_e="onCompositionUpdate";break e}_e=void 0}else Qt?ru(e,o)&&(_e="onCompositionEnd"):e==="keydown"&&o.keyCode===229&&(_e="onCompositionStart");_e&&(tu&&o.locale!=="ko"&&(Qt||_e!=="onCompositionStart"?_e==="onCompositionEnd"&&Qt&&(me=Z1()):(at=V,aa="value"in at?at.value:at.textContent,Qt=!0)),he=sr(z,_e),0<he.length&&(_e=new eu(_e,e,null,o,V),K.push({event:_e,listeners:he}),me?_e.data=me:(me=su(o),me!==null&&(_e.data=me)))),(me=Cf?Pf(e,o):Lf(e,o))&&(z=sr(z,"onBeforeInput"),0<z.length&&(V=new eu("onBeforeInput","beforeinput",null,o,V),K.push({event:V,listeners:z}),V.data=me))}Su(K,n)})}function ti(e,n,o){return{instance:e,listener:n,currentTarget:o}}function sr(e,n){for(var o=n+"Capture",r=[];e!==null;){var a=e,l=a.stateNode;a.tag===5&&l!==null&&(a=l,l=Fo(e,o),l!=null&&r.unshift(ti(e,l,a)),l=Fo(e,n),l!=null&&r.push(ti(e,l,a))),e=e.return}return r}function Jt(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Pu(e,n,o,r,a){for(var l=n._reactName,f=[];o!==null&&o!==r;){var y=o,w=y.alternate,z=y.stateNode;if(w!==null&&w===r)break;y.tag===5&&z!==null&&(y=z,a?(w=Fo(o,l),w!=null&&f.unshift(ti(o,w,y))):a||(w=Fo(o,l),w!=null&&f.push(ti(o,w,y)))),o=o.return}f.length!==0&&e.push({event:n,listeners:f})}var Wf=/\r\n?/g,Gf=/\u0000|\uFFFD/g;function Lu(e){return(typeof e=="string"?e:""+e).replace(Wf,` 38 `).replace(Gf,"")}function ar(e,n,o){if(n=Lu(n),Lu(e)!==n&&o)throw Error(u(425))}function cr(){}var ba=null,Na=null;function Sa(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Ca=typeof setTimeout=="function"?setTimeout:void 0,Vf=typeof clearTimeout=="function"?clearTimeout:void 0,Eu=typeof Promise=="function"?Promise:void 0,Hf=typeof queueMicrotask=="function"?queueMicrotask:typeof Eu<"u"?function(e){return Eu.resolve(null).then(e).catch(Kf)}:Ca;function Kf(e){setTimeout(function(){throw e})}function Pa(e,n){var o=n,r=0;do{var a=o.nextSibling;if(e.removeChild(o),a&&a.nodeType===8)if(o=a.data,o==="/$"){if(r===0){e.removeChild(a),Ho(n);return}r--}else o!=="$"&&o!=="$?"&&o!=="$!"||r++;o=a}while(o);Ho(n)}function lt(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return e}function Du(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var o=e.data;if(o==="$"||o==="$!"||o==="$?"){if(n===0)return e;n--}else o==="/$"&&n++}e=e.previousSibling}return null}var eo=Math.random().toString(36).slice(2),Wn="__reactFiber$"+eo,oi="__reactProps$"+eo,Yn="__reactContainer$"+eo,La="__reactEvents$"+eo,Yf="__reactListeners$"+eo,qf="__reactHandles$"+eo;function Pt(e){var n=e[Wn];if(n)return n;for(var o=e.parentNode;o;){if(n=o[Yn]||o[Wn]){if(o=n.alternate,n.child!==null||o!==null&&o.child!==null)for(e=Du(e);e!==null;){if(o=e[Wn])return o;e=Du(e)}return n}e=o,o=e.parentNode}return null}function ii(e){return e=e[Wn]||e[Yn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function no(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(u(33))}function lr(e){return e[oi]||null}var Ea=[],to=-1;function ut(e){return{current:e}}function Ae(e){0>to||(e.current=Ea[to],Ea[to]=null,to--)}function Ee(e,n){to++,Ea[to]=e.current,e.current=n}var dt={},tn=ut(dt),dn=ut(!1),Lt=dt;function oo(e,n){var o=e.type.contextTypes;if(!o)return dt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var a={},l;for(l in o)a[l]=n[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=a),a}function pn(e){return e=e.childContextTypes,e!=null}function ur(){Ae(dn),Ae(tn)}function Tu(e,n,o){if(tn.current!==dt)throw Error(u(168));Ee(tn,n),Ee(dn,o)}function Au(e,n,o){var r=e.stateNode;if(n=n.childContextTypes,typeof r.getChildContext!="function")return o;r=r.getChildContext();for(var a in r)if(!(a in n))throw Error(u(108,M(e)||"Unknown",a));return Q({},o,r)}function dr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||dt,Lt=tn.current,Ee(tn,e),Ee(dn,dn.current),!0}function Ru(e,n,o){var r=e.stateNode;if(!r)throw Error(u(169));o?(e=Au(e,n,Lt),r.__reactInternalMemoizedMergedChildContext=e,Ae(dn),Ae(tn),Ee(tn,e)):Ae(dn),Ee(dn,o)}var qn=null,pr=!1,Da=!1;function zu(e){qn===null?qn=[e]:qn.push(e)}function Qf(e){pr=!0,zu(e)}function pt(){if(!Da&&qn!==null){Da=!0;var e=0,n=Pe;try{var o=qn;for(Pe=1;e<o.length;e++){var r=o[e];do r=r(!0);while(r!==null)}qn=null,pr=!1}catch(a){throw qn!==null&&(qn=qn.slice(e+1)),F1(Js,pt),a}finally{Pe=n,Da=!1}}return null}var io=[],ro=0,fr=null,hr=0,jn=[],wn=0,Et=null,Qn=1,Zn="";function Dt(e,n){io[ro++]=hr,io[ro++]=fr,fr=e,hr=n}function Mu(e,n,o){jn[wn++]=Qn,jn[wn++]=Zn,jn[wn++]=Et,Et=e;var r=Qn;e=Zn;var a=32-Ln(r)-1;r&=~(1<<a),o+=1;var l=32-Ln(n)+a;if(30<l){var f=a-a%5;l=(r&(1<<f)-1).toString(32),r>>=f,a-=f,Qn=1<<32-Ln(n)+a|o<<a|r,Zn=l+e}else Qn=1<<l|o<<a|r,Zn=e}function Ta(e){e.return!==null&&(Dt(e,1),Mu(e,1,0))}function Aa(e){for(;e===fr;)fr=io[--ro],io[ro]=null,hr=io[--ro],io[ro]=null;for(;e===Et;)Et=jn[--wn],jn[wn]=null,Zn=jn[--wn],jn[wn]=null,Qn=jn[--wn],jn[wn]=null}var _n=null,kn=null,Me=!1,Dn=null;function Fu(e,n){var o=Cn(5,null,null,0);o.elementType="DELETED",o.stateNode=n,o.return=e,n=e.deletions,n===null?(e.deletions=[o],e.flags|=16):n.push(o)}function Iu(e,n){switch(e.tag){case 5:var o=e.type;return n=n.nodeType!==1||o.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(e.stateNode=n,_n=e,kn=lt(n.firstChild),!0):!1;case 6:return n=e.pendingProps===""||n.nodeType!==3?null:n,n!==null?(e.stateNode=n,_n=e,kn=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(o=Et!==null?{id:Qn,overflow:Zn}:null,e.memoizedState={dehydrated:n,treeContext:o,retryLane:1073741824},o=Cn(18,null,null,0),o.stateNode=n,o.return=e,e.child=o,_n=e,kn=null,!0):!1;default:return!1}}function Ra(e){return(e.mode&1)!==0&&(e.flags&128)===0}function za(e){if(Me){var n=kn;if(n){var o=n;if(!Iu(e,n)){if(Ra(e))throw Error(u(418));n=lt(o.nextSibling);var r=_n;n&&Iu(e,n)?Fu(r,o):(e.flags=e.flags&-4097|2,Me=!1,_n=e)}}else{if(Ra(e))throw Error(u(418));e.flags=e.flags&-4097|2,Me=!1,_n=e}}}function Ou(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;_n=e}function mr(e){if(e!==_n)return!1;if(!Me)return Ou(e),Me=!0,!1;var n;if((n=e.tag!==3)&&!(n=e.tag!==5)&&(n=e.type,n=n!=="head"&&n!=="body"&&!Sa(e.type,e.memoizedProps)),n&&(n=kn)){if(Ra(e))throw Uu(),Error(u(418));for(;n;)Fu(e,n),n=lt(n.nextSibling)}if(Ou(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8){var o=e.data;if(o==="/$"){if(n===0){kn=lt(e.nextSibling);break e}n--}else o!=="$"&&o!=="$!"&&o!=="$?"||n++}e=e.nextSibling}kn=null}}else kn=_n?lt(e.stateNode.nextSibling):null;return!0}function Uu(){for(var e=kn;e;)e=lt(e.nextSibling)}function so(){kn=_n=null,Me=!1}function Ma(e){Dn===null?Dn=[e]:Dn.push(e)}var Zf=O.ReactCurrentBatchConfig;function ri(e,n,o){if(e=o.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(u(309));var r=o.stateNode}if(!r)throw Error(u(147,e));var a=r,l=""+e;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===l?n.ref:(n=function(f){var y=a.refs;f===null?delete y[l]:y[l]=f},n._stringRef=l,n)}if(typeof e!="string")throw Error(u(284));if(!o._owner)throw Error(u(290,e))}return e}function gr(e,n){throw e=Object.prototype.toString.call(n),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function Bu(e){var n=e._init;return n(e._payload)}function $u(e){function n(L,N){if(e){var T=L.deletions;T===null?(L.deletions=[N],L.flags|=16):T.push(N)}}function o(L,N){if(!e)return null;for(;N!==null;)n(L,N),N=N.sibling;return null}function r(L,N){for(L=new Map;N!==null;)N.key!==null?L.set(N.key,N):L.set(N.index,N),N=N.sibling;return L}function a(L,N){return L=kt(L,N),L.index=0,L.sibling=null,L}function l(L,N,T){return L.index=T,e?(T=L.alternate,T!==null?(T=T.index,T<N?(L.flags|=2,N):T):(L.flags|=2,N)):(L.flags|=1048576,N)}function f(L){return e&&L.alternate===null&&(L.flags|=2),L}function y(L,N,T,Z){return N===null||N.tag!==6?(N=Cc(T,L.mode,Z),N.return=L,N):(N=a(N,T),N.return=L,N)}function w(L,N,T,Z){var le=T.type;return le===B?V(L,N,T.props.children,Z,T.key):N!==null&&(N.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===F&&Bu(le)===N.type)?(Z=a(N,T.props),Z.ref=ri(L,N,T),Z.return=L,Z):(Z=Ur(T.type,T.key,T.props,null,L.mode,Z),Z.ref=ri(L,N,T),Z.return=L,Z)}function z(L,N,T,Z){return N===null||N.tag!==4||N.stateNode.containerInfo!==T.containerInfo||N.stateNode.implementation!==T.implementation?(N=Pc(T,L.mode,Z),N.return=L,N):(N=a(N,T.children||[]),N.return=L,N)}function V(L,N,T,Z,le){return N===null||N.tag!==7?(N=Ot(T,L.mode,Z,le),N.return=L,N):(N=a(N,T),N.return=L,N)}function K(L,N,T){if(typeof N=="string"&&N!==""||typeof N=="number")return N=Cc(""+N,L.mode,T),N.return=L,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case oe:return T=Ur(N.type,N.key,N.props,null,L.mode,T),T.ref=ri(L,null,N),T.return=L,T;case J:return N=Pc(N,L.mode,T),N.return=L,N;case F:var Z=N._init;return K(L,Z(N._payload),T)}if(Ro(N)||ee(N))return N=Ot(N,L.mode,T,null),N.return=L,N;gr(L,N)}return null}function G(L,N,T,Z){var le=N!==null?N.key:null;if(typeof T=="string"&&T!==""||typeof T=="number")return le!==null?null:y(L,N,""+T,Z);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case oe:return T.key===le?w(L,N,T,Z):null;case J:return T.key===le?z(L,N,T,Z):null;case F:return le=T._init,G(L,N,le(T._payload),Z)}if(Ro(T)||ee(T))return le!==null?null:V(L,N,T,Z,null);gr(L,T)}return null}function ie(L,N,T,Z,le){if(typeof Z=="string"&&Z!==""||typeof Z=="number")return L=L.get(T)||null,y(N,L,""+Z,le);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case oe:return L=L.get(Z.key===null?T:Z.key)||null,w(N,L,Z,le);case J:return L=L.get(Z.key===null?T:Z.key)||null,z(N,L,Z,le);case F:var he=Z._init;return ie(L,N,T,he(Z._payload),le)}if(Ro(Z)||ee(Z))return L=L.get(T)||null,V(N,L,Z,le,null);gr(N,Z)}return null}function ae(L,N,T,Z){for(var le=null,he=null,me=N,_e=N=0,Qe=null;me!==null&&_e<T.length;_e++){me.index>_e?(Qe=me,me=null):Qe=me.sibling;var Se=G(L,me,T[_e],Z);if(Se===null){me===null&&(me=Qe);break}e&&me&&Se.alternate===null&&n(L,me),N=l(Se,N,_e),he===null?le=Se:he.sibling=Se,he=Se,me=Qe}if(_e===T.length)return o(L,me),Me&&Dt(L,_e),le;if(me===null){for(;_e<T.length;_e++)me=K(L,T[_e],Z),me!==null&&(N=l(me,N,_e),he===null?le=me:he.sibling=me,he=me);return Me&&Dt(L,_e),le}for(me=r(L,me);_e<T.length;_e++)Qe=ie(me,L,_e,T[_e],Z),Qe!==null&&(e&&Qe.alternate!==null&&me.delete(Qe.key===null?_e:Qe.key),N=l(Qe,N,_e),he===null?le=Qe:he.sibling=Qe,he=Qe);return e&&me.forEach(function(xt){return n(L,xt)}),Me&&Dt(L,_e),le}function ce(L,N,T,Z){var le=ee(T);if(typeof le!="function")throw Error(u(150));if(T=le.call(T),T==null)throw Error(u(151));for(var he=le=null,me=N,_e=N=0,Qe=null,Se=T.next();me!==null&&!Se.done;_e++,Se=T.next()){me.index>_e?(Qe=me,me=null):Qe=me.sibling;var xt=G(L,me,Se.value,Z);if(xt===null){me===null&&(me=Qe);break}e&&me&&xt.alternate===null&&n(L,me),N=l(xt,N,_e),he===null?le=xt:he.sibling=xt,he=xt,me=Qe}if(Se.done)return o(L,me),Me&&Dt(L,_e),le;if(me===null){for(;!Se.done;_e++,Se=T.next())Se=K(L,Se.value,Z),Se!==null&&(N=l(Se,N,_e),he===null?le=Se:he.sibling=Se,he=Se);return Me&&Dt(L,_e),le}for(me=r(L,me);!Se.done;_e++,Se=T.next())Se=ie(me,L,_e,Se.value,Z),Se!==null&&(e&&Se.alternate!==null&&me.delete(Se.key===null?_e:Se.key),N=l(Se,N,_e),he===null?le=Se:he.sibling=Se,he=Se);return e&&me.forEach(function(E4){return n(L,E4)}),Me&&Dt(L,_e),le}function $e(L,N,T,Z){if(typeof T=="object"&&T!==null&&T.type===B&&T.key===null&&(T=T.props.children),typeof T=="object"&&T!==null){switch(T.$$typeof){case oe:e:{for(var le=T.key,he=N;he!==null;){if(he.key===le){if(le=T.type,le===B){if(he.tag===7){o(L,he.sibling),N=a(he,T.props.children),N.return=L,L=N;break e}}else if(he.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===F&&Bu(le)===he.type){o(L,he.sibling),N=a(he,T.props),N.ref=ri(L,he,T),N.return=L,L=N;break e}o(L,he);break}else n(L,he);he=he.sibling}T.type===B?(N=Ot(T.props.children,L.mode,Z,T.key),N.return=L,L=N):(Z=Ur(T.type,T.key,T.props,null,L.mode,Z),Z.ref=ri(L,N,T),Z.return=L,L=Z)}return f(L);case J:e:{for(he=T.key;N!==null;){if(N.key===he)if(N.tag===4&&N.stateNode.containerInfo===T.containerInfo&&N.stateNode.implementation===T.implementation){o(L,N.sibling),N=a(N,T.children||[]),N.return=L,L=N;break e}else{o(L,N);break}else n(L,N);N=N.sibling}N=Pc(T,L.mode,Z),N.return=L,L=N}return f(L);case F:return he=T._init,$e(L,N,he(T._payload),Z)}if(Ro(T))return ae(L,N,T,Z);if(ee(T))return ce(L,N,T,Z);gr(L,T)}return typeof T=="string"&&T!==""||typeof T=="number"?(T=""+T,N!==null&&N.tag===6?(o(L,N.sibling),N=a(N,T),N.return=L,L=N):(o(L,N),N=Cc(T,L.mode,Z),N.return=L,L=N),f(L)):o(L,N)}return $e}var ao=$u(!0),Wu=$u(!1),vr=ut(null),yr=null,co=null,Fa=null;function Ia(){Fa=co=yr=null}function Oa(e){var n=vr.current;Ae(vr),e._currentValue=n}function Ua(e,n,o){for(;e!==null;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,r!==null&&(r.childLanes|=n)):r!==null&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===o)break;e=e.return}}function lo(e,n){yr=e,Fa=co=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&n)!==0&&(fn=!0),e.firstContext=null)}function bn(e){var n=e._currentValue;if(Fa!==e)if(e={context:e,memoizedValue:n,next:null},co===null){if(yr===null)throw Error(u(308));co=e,yr.dependencies={lanes:0,firstContext:e}}else co=co.next=e;return n}var Tt=null;function Ba(e){Tt===null?Tt=[e]:Tt.push(e)}function Gu(e,n,o,r){var a=n.interleaved;return a===null?(o.next=o,Ba(n)):(o.next=a.next,a.next=o),n.interleaved=o,Xn(e,r)}function Xn(e,n){e.lanes|=n;var o=e.alternate;for(o!==null&&(o.lanes|=n),o=e,e=e.return;e!==null;)e.childLanes|=n,o=e.alternate,o!==null&&(o.childLanes|=n),o=e,e=e.return;return o.tag===3?o.stateNode:null}var ft=!1;function $a(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vu(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Jn(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function ht(e,n,o){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(Ne&2)!==0){var a=r.pending;return a===null?n.next=n:(n.next=a.next,a.next=n),r.pending=n,Xn(e,o)}return a=r.interleaved,a===null?(n.next=n,Ba(r)):(n.next=a.next,a.next=n),r.interleaved=n,Xn(e,o)}function _r(e,n,o){if(n=n.updateQueue,n!==null&&(n=n.shared,(o&4194240)!==0)){var r=n.lanes;r&=e.pendingLanes,o|=r,n.lanes=o,ta(e,o)}}function Hu(e,n){var o=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,o===r)){var a=null,l=null;if(o=o.firstBaseUpdate,o!==null){do{var f={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};l===null?a=l=f:l=l.next=f,o=o.next}while(o!==null);l===null?a=l=n:l=l.next=n}else a=l=n;o={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=n:e.next=n,o.lastBaseUpdate=n}function kr(e,n,o,r){var a=e.updateQueue;ft=!1;var l=a.firstBaseUpdate,f=a.lastBaseUpdate,y=a.shared.pending;if(y!==null){a.shared.pending=null;var w=y,z=w.next;w.next=null,f===null?l=z:f.next=z,f=w;var V=e.alternate;V!==null&&(V=V.updateQueue,y=V.lastBaseUpdate,y!==f&&(y===null?V.firstBaseUpdate=z:y.next=z,V.lastBaseUpdate=w))}if(l!==null){var K=a.baseState;f=0,V=z=w=null,y=l;do{var G=y.lane,ie=y.eventTime;if((r&G)===G){V!==null&&(V=V.next={eventTime:ie,lane:0,tag:y.tag,payload:y.payload,callback:y.callback,next:null});e:{var ae=e,ce=y;switch(G=n,ie=o,ce.tag){case 1:if(ae=ce.payload,typeof ae=="function"){K=ae.call(ie,K,G);break e}K=ae;break e;case 3:ae.flags=ae.flags&-65537|128;case 0:if(ae=ce.payload,G=typeof ae=="function"?ae.call(ie,K,G):ae,G==null)break e;K=Q({},K,G);break e;case 2:ft=!0}}y.callback!==null&&y.lane!==0&&(e.flags|=64,G=a.effects,G===null?a.effects=[y]:G.push(y))}else ie={eventTime:ie,lane:G,tag:y.tag,payload:y.payload,callback:y.callback,next:null},V===null?(z=V=ie,w=K):V=V.next=ie,f|=G;if(y=y.next,y===null){if(y=a.shared.pending,y===null)break;G=y,y=G.next,G.next=null,a.lastBaseUpdate=G,a.shared.pending=null}}while(!0);if(V===null&&(w=K),a.baseState=w,a.firstBaseUpdate=z,a.lastBaseUpdate=V,n=a.shared.interleaved,n!==null){a=n;do f|=a.lane,a=a.next;while(a!==n)}else l===null&&(a.shared.lanes=0);zt|=f,e.lanes=f,e.memoizedState=K}}function Ku(e,n,o){if(e=n.effects,n.effects=null,e!==null)for(n=0;n<e.length;n++){var r=e[n],a=r.callback;if(a!==null){if(r.callback=null,r=o,typeof a!="function")throw Error(u(191,a));a.call(r)}}}var si={},Gn=ut(si),ai=ut(si),ci=ut(si);function At(e){if(e===si)throw Error(u(174));return e}function Wa(e,n){switch(Ee(ci,n),Ee(ai,e),Ee(Gn,si),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:Gs(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=Gs(n,e)}Ae(Gn),Ee(Gn,n)}function uo(){Ae(Gn),Ae(ai),Ae(ci)}function Yu(e){At(ci.current);var n=At(Gn.current),o=Gs(n,e.type);n!==o&&(Ee(ai,e),Ee(Gn,o))}function Ga(e){ai.current===e&&(Ae(Gn),Ae(ai))}var Fe=ut(0);function xr(e){for(var n=e;n!==null;){if(n.tag===13){var o=n.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Va=[];function Ha(){for(var e=0;e<Va.length;e++)Va[e]._workInProgressVersionPrimary=null;Va.length=0}var jr=O.ReactCurrentDispatcher,Ka=O.ReactCurrentBatchConfig,Rt=0,Ie=null,He=null,Ye=null,wr=!1,li=!1,ui=0,Xf=0;function on(){throw Error(u(321))}function Ya(e,n){if(n===null)return!1;for(var o=0;o<n.length&&o<e.length;o++)if(!En(e[o],n[o]))return!1;return!0}function qa(e,n,o,r,a,l){if(Rt=l,Ie=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,jr.current=e===null||e.memoizedState===null?t4:o4,e=o(r,a),li){l=0;do{if(li=!1,ui=0,25<=l)throw Error(u(301));l+=1,Ye=He=null,n.updateQueue=null,jr.current=i4,e=o(r,a)}while(li)}if(jr.current=Sr,n=He!==null&&He.next!==null,Rt=0,Ye=He=Ie=null,wr=!1,n)throw Error(u(300));return e}function Qa(){var e=ui!==0;return ui=0,e}function Vn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ye===null?Ie.memoizedState=Ye=e:Ye=Ye.next=e,Ye}function Nn(){if(He===null){var e=Ie.alternate;e=e!==null?e.memoizedState:null}else e=He.next;var n=Ye===null?Ie.memoizedState:Ye.next;if(n!==null)Ye=n,He=e;else{if(e===null)throw Error(u(310));He=e,e={memoizedState:He.memoizedState,baseState:He.baseState,baseQueue:He.baseQueue,queue:He.queue,next:null},Ye===null?Ie.memoizedState=Ye=e:Ye=Ye.next=e}return Ye}function di(e,n){return typeof n=="function"?n(e):n}function Za(e){var n=Nn(),o=n.queue;if(o===null)throw Error(u(311));o.lastRenderedReducer=e;var r=He,a=r.baseQueue,l=o.pending;if(l!==null){if(a!==null){var f=a.next;a.next=l.next,l.next=f}r.baseQueue=a=l,o.pending=null}if(a!==null){l=a.next,r=r.baseState;var y=f=null,w=null,z=l;do{var V=z.lane;if((Rt&V)===V)w!==null&&(w=w.next={lane:0,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),r=z.hasEagerState?z.eagerState:e(r,z.action);else{var K={lane:V,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null};w===null?(y=w=K,f=r):w=w.next=K,Ie.lanes|=V,zt|=V}z=z.next}while(z!==null&&z!==l);w===null?f=r:w.next=y,En(r,n.memoizedState)||(fn=!0),n.memoizedState=r,n.baseState=f,n.baseQueue=w,o.lastRenderedState=r}if(e=o.interleaved,e!==null){a=e;do l=a.lane,Ie.lanes|=l,zt|=l,a=a.next;while(a!==e)}else a===null&&(o.lanes=0);return[n.memoizedState,o.dispatch]}function Xa(e){var n=Nn(),o=n.queue;if(o===null)throw Error(u(311));o.lastRenderedReducer=e;var r=o.dispatch,a=o.pending,l=n.memoizedState;if(a!==null){o.pending=null;var f=a=a.next;do l=e(l,f.action),f=f.next;while(f!==a);En(l,n.memoizedState)||(fn=!0),n.memoizedState=l,n.baseQueue===null&&(n.baseState=l),o.lastRenderedState=l}return[l,r]}function qu(){}function Qu(e,n){var o=Ie,r=Nn(),a=n(),l=!En(r.memoizedState,a);if(l&&(r.memoizedState=a,fn=!0),r=r.queue,Ja(Ju.bind(null,o,r,e),[e]),r.getSnapshot!==n||l||Ye!==null&&Ye.memoizedState.tag&1){if(o.flags|=2048,pi(9,Xu.bind(null,o,r,a,n),void 0,null),qe===null)throw Error(u(349));(Rt&30)!==0||Zu(o,n,a)}return a}function Zu(e,n,o){e.flags|=16384,e={getSnapshot:n,value:o},n=Ie.updateQueue,n===null?(n={lastEffect:null,stores:null},Ie.updateQueue=n,n.stores=[e]):(o=n.stores,o===null?n.stores=[e]:o.push(e))}function Xu(e,n,o,r){n.value=o,n.getSnapshot=r,ed(n)&&nd(e)}function Ju(e,n,o){return o(function(){ed(n)&&nd(e)})}function ed(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!En(e,o)}catch{return!0}}function nd(e){var n=Xn(e,1);n!==null&&zn(n,e,1,-1)}function td(e){var n=Vn();return typeof e=="function"&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:di,lastRenderedState:e},n.queue=e,e=e.dispatch=n4.bind(null,Ie,e),[n.memoizedState,e]}function pi(e,n,o,r){return e={tag:e,create:n,destroy:o,deps:r,next:null},n=Ie.updateQueue,n===null?(n={lastEffect:null,stores:null},Ie.updateQueue=n,n.lastEffect=e.next=e):(o=n.lastEffect,o===null?n.lastEffect=e.next=e:(r=o.next,o.next=e,e.next=r,n.lastEffect=e)),e}function od(){return Nn().memoizedState}function br(e,n,o,r){var a=Vn();Ie.flags|=e,a.memoizedState=pi(1|n,o,void 0,r===void 0?null:r)}function Nr(e,n,o,r){var a=Nn();r=r===void 0?null:r;var l=void 0;if(He!==null){var f=He.memoizedState;if(l=f.destroy,r!==null&&Ya(r,f.deps)){a.memoizedState=pi(n,o,l,r);return}}Ie.flags|=e,a.memoizedState=pi(1|n,o,l,r)}function id(e,n){return br(8390656,8,e,n)}function Ja(e,n){return Nr(2048,8,e,n)}function rd(e,n){return Nr(4,2,e,n)}function sd(e,n){return Nr(4,4,e,n)}function ad(e,n){if(typeof n=="function")return e=e(),n(e),function(){n(null)};if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function cd(e,n,o){return o=o!=null?o.concat([e]):null,Nr(4,4,ad.bind(null,n,e),o)}function ec(){}function ld(e,n){var o=Nn();n=n===void 0?null:n;var r=o.memoizedState;return r!==null&&n!==null&&Ya(n,r[1])?r[0]:(o.memoizedState=[e,n],e)}function ud(e,n){var o=Nn();n=n===void 0?null:n;var r=o.memoizedState;return r!==null&&n!==null&&Ya(n,r[1])?r[0]:(e=e(),o.memoizedState=[e,n],e)}function dd(e,n,o){return(Rt&21)===0?(e.baseState&&(e.baseState=!1,fn=!0),e.memoizedState=o):(En(o,n)||(o=B1(),Ie.lanes|=o,zt|=o,e.baseState=!0),n)}function Jf(e,n){var o=Pe;Pe=o!==0&&4>o?o:4,e(!0);var r=Ka.transition;Ka.transition={};try{e(!1),n()}finally{Pe=o,Ka.transition=r}}function pd(){return Nn().memoizedState}function e4(e,n,o){var r=yt(e);if(o={lane:r,action:o,hasEagerState:!1,eagerState:null,next:null},fd(e))hd(n,o);else if(o=Gu(e,n,o,r),o!==null){var a=ln();zn(o,e,r,a),md(o,n,r)}}function n4(e,n,o){var r=yt(e),a={lane:r,action:o,hasEagerState:!1,eagerState:null,next:null};if(fd(e))hd(n,a);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=n.lastRenderedReducer,l!==null))try{var f=n.lastRenderedState,y=l(f,o);if(a.hasEagerState=!0,a.eagerState=y,En(y,f)){var w=n.interleaved;w===null?(a.next=a,Ba(n)):(a.next=w.next,w.next=a),n.interleaved=a;return}}catch{}finally{}o=Gu(e,n,a,r),o!==null&&(a=ln(),zn(o,e,r,a),md(o,n,r))}}function fd(e){var n=e.alternate;return e===Ie||n!==null&&n===Ie}function hd(e,n){li=wr=!0;var o=e.pending;o===null?n.next=n:(n.next=o.next,o.next=n),e.pending=n}function md(e,n,o){if((o&4194240)!==0){var r=n.lanes;r&=e.pendingLanes,o|=r,n.lanes=o,ta(e,o)}}var Sr={readContext:bn,useCallback:on,useContext:on,useEffect:on,useImperativeHandle:on,useInsertionEffect:on,useLayoutEffect:on,useMemo:on,useReducer:on,useRef:on,useState:on,useDebugValue:on,useDeferredValue:on,useTransition:on,useMutableSource:on,useSyncExternalStore:on,useId:on,unstable_isNewReconciler:!1},t4={readContext:bn,useCallback:function(e,n){return Vn().memoizedState=[e,n===void 0?null:n],e},useContext:bn,useEffect:id,useImperativeHandle:function(e,n,o){return o=o!=null?o.concat([e]):null,br(4194308,4,ad.bind(null,n,e),o)},useLayoutEffect:function(e,n){return br(4194308,4,e,n)},useInsertionEffect:function(e,n){return br(4,2,e,n)},useMemo:function(e,n){var o=Vn();return n=n===void 0?null:n,e=e(),o.memoizedState=[e,n],e},useReducer:function(e,n,o){var r=Vn();return n=o!==void 0?o(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=e4.bind(null,Ie,e),[r.memoizedState,e]},useRef:function(e){var n=Vn();return e={current:e},n.memoizedState=e},useState:td,useDebugValue:ec,useDeferredValue:function(e){return Vn().memoizedState=e},useTransition:function(){var e=td(!1),n=e[0];return e=Jf.bind(null,e[1]),Vn().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,o){var r=Ie,a=Vn();if(Me){if(o===void 0)throw Error(u(407));o=o()}else{if(o=n(),qe===null)throw Error(u(349));(Rt&30)!==0||Zu(r,n,o)}a.memoizedState=o;var l={value:o,getSnapshot:n};return a.queue=l,id(Ju.bind(null,r,l,e),[e]),r.flags|=2048,pi(9,Xu.bind(null,r,l,o,n),void 0,null),o},useId:function(){var e=Vn(),n=qe.identifierPrefix;if(Me){var o=Zn,r=Qn;o=(r&~(1<<32-Ln(r)-1)).toString(32)+o,n=":"+n+"R"+o,o=ui++,0<o&&(n+="H"+o.toString(32)),n+=":"}else o=Xf++,n=":"+n+"r"+o.toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},o4={readContext:bn,useCallback:ld,useContext:bn,useEffect:Ja,useImperativeHandle:cd,useInsertionEffect:rd,useLayoutEffect:sd,useMemo:ud,useReducer:Za,useRef:od,useState:function(){return Za(di)},useDebugValue:ec,useDeferredValue:function(e){var n=Nn();return dd(n,He.memoizedState,e)},useTransition:function(){var e=Za(di)[0],n=Nn().memoizedState;return[e,n]},useMutableSource:qu,useSyncExternalStore:Qu,useId:pd,unstable_isNewReconciler:!1},i4={readContext:bn,useCallback:ld,useContext:bn,useEffect:Ja,useImperativeHandle:cd,useInsertionEffect:rd,useLayoutEffect:sd,useMemo:ud,useReducer:Xa,useRef:od,useState:function(){return Xa(di)},useDebugValue:ec,useDeferredValue:function(e){var n=Nn();return He===null?n.memoizedState=e:dd(n,He.memoizedState,e)},useTransition:function(){var e=Xa(di)[0],n=Nn().memoizedState;return[e,n]},useMutableSource:qu,useSyncExternalStore:Qu,useId:pd,unstable_isNewReconciler:!1};function Tn(e,n){if(e&&e.defaultProps){n=Q({},n),e=e.defaultProps;for(var o in e)n[o]===void 0&&(n[o]=e[o]);return n}return n}function nc(e,n,o,r){n=e.memoizedState,o=o(r,n),o=o==null?n:Q({},n,o),e.memoizedState=o,e.lanes===0&&(e.updateQueue.baseState=o)}var Cr={isMounted:function(e){return(e=e._reactInternals)?Ct(e)===e:!1},enqueueSetState:function(e,n,o){e=e._reactInternals;var r=ln(),a=yt(e),l=Jn(r,a);l.payload=n,o!=null&&(l.callback=o),n=ht(e,l,a),n!==null&&(zn(n,e,a,r),_r(n,e,a))},enqueueReplaceState:function(e,n,o){e=e._reactInternals;var r=ln(),a=yt(e),l=Jn(r,a);l.tag=1,l.payload=n,o!=null&&(l.callback=o),n=ht(e,l,a),n!==null&&(zn(n,e,a,r),_r(n,e,a))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var o=ln(),r=yt(e),a=Jn(o,r);a.tag=2,n!=null&&(a.callback=n),n=ht(e,a,r),n!==null&&(zn(n,e,r,o),_r(n,e,r))}};function gd(e,n,o,r,a,l,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,f):n.prototype&&n.prototype.isPureReactComponent?!Xo(o,r)||!Xo(a,l):!0}function vd(e,n,o){var r=!1,a=dt,l=n.contextType;return typeof l=="object"&&l!==null?l=bn(l):(a=pn(n)?Lt:tn.current,r=n.contextTypes,l=(r=r!=null)?oo(e,a):dt),n=new n(o,l),e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=Cr,e.stateNode=n,n._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=l),n}function yd(e,n,o,r){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(o,r),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(o,r),n.state!==e&&Cr.enqueueReplaceState(n,n.state,null)}function tc(e,n,o,r){var a=e.stateNode;a.props=o,a.state=e.memoizedState,a.refs={},$a(e);var l=n.contextType;typeof l=="object"&&l!==null?a.context=bn(l):(l=pn(n)?Lt:tn.current,a.context=oo(e,l)),a.state=e.memoizedState,l=n.getDerivedStateFromProps,typeof l=="function"&&(nc(e,n,l,o),a.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(n=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),n!==a.state&&Cr.enqueueReplaceState(a,a.state,null),kr(e,o,a,r),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}function po(e,n){try{var o="",r=n;do o+=ve(r),r=r.return;while(r);var a=o}catch(l){a=` 39 39 Error generating stack: `+l.message+` 40 `+l.stack}return{value:e,source:n,stack:a,digest:null}}function oc(e,n,o){return{value:e,source:null,stack:o??null,digest:n??null}}function ic(e,n){try{console.error(n.value)}catch(o){setTimeout(function(){throw o})}}var i4=typeof WeakMap=="function"?WeakMap:Map;function _d(e,n,o){o=Jn(-1,o),o.tag=3,o.payload={element:null};var r=n.value;return o.callback=function(){Rr||(Rr=!0,_c=r),ic(e,n)},o}function kd(e,n,o){o=Jn(-1,o),o.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var a=n.value;o.payload=function(){return r(a)},o.callback=function(){ic(e,n)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(o.callback=function(){ic(e,n),typeof r!="function"&&(gt===null?gt=new Set([this]):gt.add(this));var f=n.stack;this.componentDidCatch(n.value,{componentStack:f!==null?f:""})}),o}function xd(e,n,o){var r=e.pingCache;if(r===null){r=e.pingCache=new i4;var a=new Set;r.set(n,a)}else a=r.get(n),a===void 0&&(a=new Set,r.set(n,a));a.has(o)||(a.add(o),e=y4.bind(null,e,n,o),n.then(e,e))}function wd(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function jd(e,n,o,r,a){return(e.mode&1)===0?(e===n?e.flags|=65536:(e.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(n=Jn(-1,1),n.tag=2,ht(o,n,1))),o.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var r4=O.ReactCurrentOwner,fn=!1;function an(e,n,o,r){n.child=e===null?Wu(n,null,o,r):ao(n,e.child,o,r)}function bd(e,n,o,r,a){o=o.render;var l=n.ref;return lo(n,a),r=qa(e,n,o,r,l,a),o=Qa(),e!==null&&!fn?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~a,et(e,n,a)):(Me&&o&&Ta(n),n.flags|=1,an(e,n,r,a),n.child)}function Nd(e,n,o,r,a){if(e===null){var l=o.type;return typeof l=="function"&&!Sc(l)&&l.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(n.tag=15,n.type=l,Sd(e,n,l,r,a)):(e=Ur(o.type,null,r,n,n.mode,a),e.ref=n.ref,e.return=n,n.child=e)}if(l=e.child,(e.lanes&a)===0){var f=l.memoizedProps;if(o=o.compare,o=o!==null?o:Xo,o(f,r)&&e.ref===n.ref)return et(e,n,a)}return n.flags|=1,e=kt(l,r),e.ref=n.ref,e.return=n,n.child=e}function Sd(e,n,o,r,a){if(e!==null){var l=e.memoizedProps;if(Xo(l,r)&&e.ref===n.ref)if(fn=!1,n.pendingProps=r=l,(e.lanes&a)!==0)(e.flags&131072)!==0&&(fn=!0);else return n.lanes=e.lanes,et(e,n,a)}return rc(e,n,o,r,a)}function Cd(e,n,o){var r=n.pendingProps,a=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((n.mode&1)===0)n.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ee(ho,xn),xn|=o;else{if((o&1073741824)===0)return e=l!==null?l.baseLanes|o:o,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,Ee(ho,xn),xn|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:o,Ee(ho,xn),xn|=r}else l!==null?(r=l.baseLanes|o,n.memoizedState=null):r=o,Ee(ho,xn),xn|=r;return an(e,n,a,o),n.child}function Pd(e,n){var o=n.ref;(e===null&&o!==null||e!==null&&e.ref!==o)&&(n.flags|=512,n.flags|=2097152)}function rc(e,n,o,r,a){var l=pn(o)?Lt:nn.current;return l=oo(n,l),lo(n,a),o=qa(e,n,o,r,l,a),r=Qa(),e!==null&&!fn?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~a,et(e,n,a)):(Me&&r&&Ta(n),n.flags|=1,an(e,n,o,a),n.child)}function Ld(e,n,o,r,a){if(pn(o)){var l=!0;dr(n)}else l=!1;if(lo(n,a),n.stateNode===null)Lr(e,n),vd(n,o,r),tc(n,o,r,a),r=!0;else if(e===null){var f=n.stateNode,y=n.memoizedProps;f.props=y;var j=f.context,z=o.contextType;typeof z=="object"&&z!==null?z=bn(z):(z=pn(o)?Lt:nn.current,z=oo(n,z));var V=o.getDerivedStateFromProps,K=typeof V=="function"||typeof f.getSnapshotBeforeUpdate=="function";K||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(y!==r||j!==z)&&yd(n,f,r,z),ft=!1;var G=n.memoizedState;f.state=G,kr(n,r,f,a),j=n.memoizedState,y!==r||G!==j||dn.current||ft?(typeof V=="function"&&(nc(n,o,V,r),j=n.memoizedState),(y=ft||gd(n,o,y,r,G,j,z))?(K||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(n.flags|=4194308)):(typeof f.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=r,n.memoizedState=j),f.props=r,f.state=j,f.context=z,r=y):(typeof f.componentDidMount=="function"&&(n.flags|=4194308),r=!1)}else{f=n.stateNode,Vu(e,n),y=n.memoizedProps,z=n.type===n.elementType?y:Tn(n.type,y),f.props=z,K=n.pendingProps,G=f.context,j=o.contextType,typeof j=="object"&&j!==null?j=bn(j):(j=pn(o)?Lt:nn.current,j=oo(n,j));var oe=o.getDerivedStateFromProps;(V=typeof oe=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(y!==K||G!==j)&&yd(n,f,r,j),ft=!1,G=n.memoizedState,f.state=G,kr(n,r,f,a);var se=n.memoizedState;y!==K||G!==se||dn.current||ft?(typeof oe=="function"&&(nc(n,o,oe,r),se=n.memoizedState),(z=ft||gd(n,o,z,r,G,se,j)||!1)?(V||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(r,se,j),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(r,se,j)),typeof f.componentDidUpdate=="function"&&(n.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof f.componentDidUpdate!="function"||y===e.memoizedProps&&G===e.memoizedState||(n.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&G===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=se),f.props=r,f.state=se,f.context=j,r=z):(typeof f.componentDidUpdate!="function"||y===e.memoizedProps&&G===e.memoizedState||(n.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&G===e.memoizedState||(n.flags|=1024),r=!1)}return sc(e,n,o,r,l,a)}function sc(e,n,o,r,a,l){Pd(e,n);var f=(n.flags&128)!==0;if(!r&&!f)return a&&Ru(n,o,!1),et(e,n,l);r=n.stateNode,r4.current=n;var y=f&&typeof o.getDerivedStateFromError!="function"?null:r.render();return n.flags|=1,e!==null&&f?(n.child=ao(n,e.child,null,l),n.child=ao(n,null,y,l)):an(e,n,y,l),n.memoizedState=r.state,a&&Ru(n,o,!0),n.child}function Ed(e){var n=e.stateNode;n.pendingContext?Tu(e,n.pendingContext,n.pendingContext!==n.context):n.context&&Tu(e,n.context,!1),Wa(e,n.containerInfo)}function Dd(e,n,o,r,a){return so(),Ma(a),n.flags|=256,an(e,n,o,r),n.child}var ac={dehydrated:null,treeContext:null,retryLane:0};function cc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Td(e,n,o){var r=n.pendingProps,a=Fe.current,l=!1,f=(n.flags&128)!==0,y;if((y=f)||(y=e!==null&&e.memoizedState===null?!1:(a&2)!==0),y?(l=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),Ee(Fe,a&1),e===null)return za(n),e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((n.mode&1)===0?n.lanes=1:e.data==="$!"?n.lanes=8:n.lanes=1073741824,null):(f=r.children,e=r.fallback,l?(r=n.mode,l=n.child,f={mode:"hidden",children:f},(r&1)===0&&l!==null?(l.childLanes=0,l.pendingProps=f):l=Br(f,r,0,null),e=Ot(e,r,o,null),l.return=n,e.return=n,l.sibling=e,n.child=l,n.child.memoizedState=cc(o),n.memoizedState=ac,e):lc(n,f));if(a=e.memoizedState,a!==null&&(y=a.dehydrated,y!==null))return s4(e,n,f,r,y,a,o);if(l){l=r.fallback,f=n.mode,a=e.child,y=a.sibling;var j={mode:"hidden",children:r.children};return(f&1)===0&&n.child!==a?(r=n.child,r.childLanes=0,r.pendingProps=j,n.deletions=null):(r=kt(a,j),r.subtreeFlags=a.subtreeFlags&14680064),y!==null?l=kt(y,l):(l=Ot(l,f,o,null),l.flags|=2),l.return=n,r.return=n,r.sibling=l,n.child=r,r=l,l=n.child,f=e.child.memoizedState,f=f===null?cc(o):{baseLanes:f.baseLanes|o,cachePool:null,transitions:f.transitions},l.memoizedState=f,l.childLanes=e.childLanes&~o,n.memoizedState=ac,r}return l=e.child,e=l.sibling,r=kt(l,{mode:"visible",children:r.children}),(n.mode&1)===0&&(r.lanes=o),r.return=n,r.sibling=null,e!==null&&(o=n.deletions,o===null?(n.deletions=[e],n.flags|=16):o.push(e)),n.child=r,n.memoizedState=null,r}function lc(e,n){return n=Br({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function Pr(e,n,o,r){return r!==null&&Ma(r),ao(n,e.child,null,o),e=lc(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function s4(e,n,o,r,a,l,f){if(o)return n.flags&256?(n.flags&=-257,r=oc(Error(u(422))),Pr(e,n,f,r)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(l=r.fallback,a=n.mode,r=Br({mode:"visible",children:r.children},a,0,null),l=Ot(l,a,f,null),l.flags|=2,r.return=n,l.return=n,r.sibling=l,n.child=r,(n.mode&1)!==0&&ao(n,e.child,null,f),n.child.memoizedState=cc(f),n.memoizedState=ac,l);if((n.mode&1)===0)return Pr(e,n,f,null);if(a.data==="$!"){if(r=a.nextSibling&&a.nextSibling.dataset,r)var y=r.dgst;return r=y,l=Error(u(419)),r=oc(l,r,void 0),Pr(e,n,f,r)}if(y=(f&e.childLanes)!==0,fn||y){if(r=qe,r!==null){switch(f&-f){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(r.suspendedLanes|f))!==0?0:a,a!==0&&a!==l.retryLane&&(l.retryLane=a,Xn(e,a),zn(r,e,a,-1))}return Nc(),r=oc(Error(u(421))),Pr(e,n,f,r)}return a.data==="$?"?(n.flags|=128,n.child=e.child,n=_4.bind(null,e),a._reactRetry=n,null):(e=l.treeContext,kn=lt(a.nextSibling),_n=n,Me=!0,Dn=null,e!==null&&(wn[jn++]=Qn,wn[jn++]=Zn,wn[jn++]=Et,Qn=e.id,Zn=e.overflow,Et=n),n=lc(n,r.children),n.flags|=4096,n)}function Ad(e,n,o){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n),Ua(e.return,n,o)}function uc(e,n,o,r,a){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:o,tailMode:a}:(l.isBackwards=n,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=o,l.tailMode=a)}function Rd(e,n,o){var r=n.pendingProps,a=r.revealOrder,l=r.tail;if(an(e,n,r.children,o),r=Fe.current,(r&2)!==0)r=r&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ad(e,o,n);else if(e.tag===19)Ad(e,o,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ee(Fe,r),(n.mode&1)===0)n.memoizedState=null;else switch(a){case"forwards":for(o=n.child,a=null;o!==null;)e=o.alternate,e!==null&&xr(e)===null&&(a=o),o=o.sibling;o=a,o===null?(a=n.child,n.child=null):(a=o.sibling,o.sibling=null),uc(n,!1,a,o,l);break;case"backwards":for(o=null,a=n.child,n.child=null;a!==null;){if(e=a.alternate,e!==null&&xr(e)===null){n.child=a;break}e=a.sibling,a.sibling=o,o=a,a=e}uc(n,!0,o,null,l);break;case"together":uc(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Lr(e,n){(n.mode&1)===0&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function et(e,n,o){if(e!==null&&(n.dependencies=e.dependencies),zt|=n.lanes,(o&n.childLanes)===0)return null;if(e!==null&&n.child!==e.child)throw Error(u(153));if(n.child!==null){for(e=n.child,o=kt(e,e.pendingProps),n.child=o,o.return=n;e.sibling!==null;)e=e.sibling,o=o.sibling=kt(e,e.pendingProps),o.return=n;o.sibling=null}return n.child}function a4(e,n,o){switch(n.tag){case 3:Ed(n),so();break;case 5:Yu(n);break;case 1:pn(n.type)&&dr(n);break;case 4:Wa(n,n.stateNode.containerInfo);break;case 10:var r=n.type._context,a=n.memoizedProps.value;Ee(vr,r._currentValue),r._currentValue=a;break;case 13:if(r=n.memoizedState,r!==null)return r.dehydrated!==null?(Ee(Fe,Fe.current&1),n.flags|=128,null):(o&n.child.childLanes)!==0?Td(e,n,o):(Ee(Fe,Fe.current&1),e=et(e,n,o),e!==null?e.sibling:null);Ee(Fe,Fe.current&1);break;case 19:if(r=(o&n.childLanes)!==0,(e.flags&128)!==0){if(r)return Rd(e,n,o);n.flags|=128}if(a=n.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Ee(Fe,Fe.current),r)break;return null;case 22:case 23:return n.lanes=0,Cd(e,n,o)}return et(e,n,o)}var zd,dc,Md,Fd;zd=function(e,n){for(var o=n.child;o!==null;){if(o.tag===5||o.tag===6)e.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===n)break;for(;o.sibling===null;){if(o.return===null||o.return===n)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},dc=function(){},Md=function(e,n,o,r){var a=e.memoizedProps;if(a!==r){e=n.stateNode,At(Gn.current);var l=null;switch(o){case"input":a=Us(e,a),r=Us(e,r),l=[];break;case"select":a=Q({},a,{value:void 0}),r=Q({},r,{value:void 0}),l=[];break;case"textarea":a=Ws(e,a),r=Ws(e,r),l=[];break;default:typeof a.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=cr)}Vs(o,r);var f;o=null;for(z in a)if(!r.hasOwnProperty(z)&&a.hasOwnProperty(z)&&a[z]!=null)if(z==="style"){var y=a[z];for(f in y)y.hasOwnProperty(f)&&(o||(o={}),o[f]="")}else z!=="dangerouslySetInnerHTML"&&z!=="children"&&z!=="suppressContentEditableWarning"&&z!=="suppressHydrationWarning"&&z!=="autoFocus"&&(p.hasOwnProperty(z)?l||(l=[]):(l=l||[]).push(z,null));for(z in r){var j=r[z];if(y=a!=null?a[z]:void 0,r.hasOwnProperty(z)&&j!==y&&(j!=null||y!=null))if(z==="style")if(y){for(f in y)!y.hasOwnProperty(f)||j&&j.hasOwnProperty(f)||(o||(o={}),o[f]="");for(f in j)j.hasOwnProperty(f)&&y[f]!==j[f]&&(o||(o={}),o[f]=j[f])}else o||(l||(l=[]),l.push(z,o)),o=j;else z==="dangerouslySetInnerHTML"?(j=j?j.__html:void 0,y=y?y.__html:void 0,j!=null&&y!==j&&(l=l||[]).push(z,j)):z==="children"?typeof j!="string"&&typeof j!="number"||(l=l||[]).push(z,""+j):z!=="suppressContentEditableWarning"&&z!=="suppressHydrationWarning"&&(p.hasOwnProperty(z)?(j!=null&&z==="onScroll"&&Te("scroll",e),l||y===j||(l=[])):(l=l||[]).push(z,j))}o&&(l=l||[]).push("style",o);var z=l;(n.updateQueue=z)&&(n.flags|=4)}},Fd=function(e,n,o,r){o!==r&&(n.flags|=4)};function fi(e,n){if(!Me)switch(e.tailMode){case"hidden":n=e.tail;for(var o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?e.tail=null:o.sibling=null;break;case"collapsed":o=e.tail;for(var r=null;o!==null;)o.alternate!==null&&(r=o),o=o.sibling;r===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function on(e){var n=e.alternate!==null&&e.alternate.child===e.child,o=0,r=0;if(n)for(var a=e.child;a!==null;)o|=a.lanes|a.childLanes,r|=a.subtreeFlags&14680064,r|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)o|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=o,n}function c4(e,n,o){var r=n.pendingProps;switch(Aa(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return on(n),null;case 1:return pn(n.type)&&ur(),on(n),null;case 3:return r=n.stateNode,uo(),Ae(dn),Ae(nn),Ha(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(mr(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Dn!==null&&(wc(Dn),Dn=null))),dc(e,n),on(n),null;case 5:Ga(n);var a=At(ci.current);if(o=n.type,e!==null&&n.stateNode!=null)Md(e,n,o,r,a),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!r){if(n.stateNode===null)throw Error(u(166));return on(n),null}if(e=At(Gn.current),mr(n)){r=n.stateNode,o=n.type;var l=n.memoizedProps;switch(r[Wn]=n,r[oi]=l,e=(n.mode&1)!==0,o){case"dialog":Te("cancel",r),Te("close",r);break;case"iframe":case"object":case"embed":Te("load",r);break;case"video":case"audio":for(a=0;a<ei.length;a++)Te(ei[a],r);break;case"source":Te("error",r);break;case"img":case"image":case"link":Te("error",r),Te("load",r);break;case"details":Te("toggle",r);break;case"input":v1(r,l),Te("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},Te("invalid",r);break;case"textarea":k1(r,l),Te("invalid",r)}Vs(o,l),a=null;for(var f in l)if(l.hasOwnProperty(f)){var y=l[f];f==="children"?typeof y=="string"?r.textContent!==y&&(l.suppressHydrationWarning!==!0&&ar(r.textContent,y,e),a=["children",y]):typeof y=="number"&&r.textContent!==""+y&&(l.suppressHydrationWarning!==!0&&ar(r.textContent,y,e),a=["children",""+y]):p.hasOwnProperty(f)&&y!=null&&f==="onScroll"&&Te("scroll",r)}switch(o){case"input":De(r),_1(r,l,!0);break;case"textarea":De(r),w1(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=cr)}r=a,n.updateQueue=r,r!==null&&(n.flags|=4)}else{f=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=j1(o)),e==="http://www.w3.org/1999/xhtml"?o==="script"?(e=f.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=f.createElement(o,{is:r.is}):(e=f.createElement(o),o==="select"&&(f=e,r.multiple?f.multiple=!0:r.size&&(f.size=r.size))):e=f.createElementNS(e,o),e[Wn]=n,e[oi]=r,zd(e,n,!1,!1),n.stateNode=e;e:{switch(f=Hs(o,r),o){case"dialog":Te("cancel",e),Te("close",e),a=r;break;case"iframe":case"object":case"embed":Te("load",e),a=r;break;case"video":case"audio":for(a=0;a<ei.length;a++)Te(ei[a],e);a=r;break;case"source":Te("error",e),a=r;break;case"img":case"image":case"link":Te("error",e),Te("load",e),a=r;break;case"details":Te("toggle",e),a=r;break;case"input":v1(e,r),a=Us(e,r),Te("invalid",e);break;case"option":a=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=Q({},r,{value:void 0}),Te("invalid",e);break;case"textarea":k1(e,r),a=Ws(e,r),Te("invalid",e);break;default:a=r}Vs(o,a),y=a;for(l in y)if(y.hasOwnProperty(l)){var j=y[l];l==="style"?S1(e,j):l==="dangerouslySetInnerHTML"?(j=j?j.__html:void 0,j!=null&&b1(e,j)):l==="children"?typeof j=="string"?(o!=="textarea"||j!=="")&&zo(e,j):typeof j=="number"&&zo(e,""+j):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(p.hasOwnProperty(l)?j!=null&&l==="onScroll"&&Te("scroll",e):j!=null&&R(e,l,j,f))}switch(o){case"input":De(e),_1(e,r,!1);break;case"textarea":De(e),w1(e);break;case"option":r.value!=null&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?Vt(e,!!r.multiple,l,!1):r.defaultValue!=null&&Vt(e,!!r.multiple,r.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=cr)}switch(o){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return on(n),null;case 6:if(e&&n.stateNode!=null)Fd(e,n,e.memoizedProps,r);else{if(typeof r!="string"&&n.stateNode===null)throw Error(u(166));if(o=At(ci.current),At(Gn.current),mr(n)){if(r=n.stateNode,o=n.memoizedProps,r[Wn]=n,(l=r.nodeValue!==o)&&(e=_n,e!==null))switch(e.tag){case 3:ar(r.nodeValue,o,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ar(r.nodeValue,o,(e.mode&1)!==0)}l&&(n.flags|=4)}else r=(o.nodeType===9?o:o.ownerDocument).createTextNode(r),r[Wn]=n,n.stateNode=r}return on(n),null;case 13:if(Ae(Fe),r=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Me&&kn!==null&&(n.mode&1)!==0&&(n.flags&128)===0)Uu(),so(),n.flags|=98560,l=!1;else if(l=mr(n),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(u(318));if(l=n.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(u(317));l[Wn]=n}else so(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;on(n),l=!1}else Dn!==null&&(wc(Dn),Dn=null),l=!0;if(!l)return n.flags&65536?n:null}return(n.flags&128)!==0?(n.lanes=o,n):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(n.child.flags|=8192,(n.mode&1)!==0&&(e===null||(Fe.current&1)!==0?Ke===0&&(Ke=3):Nc())),n.updateQueue!==null&&(n.flags|=4),on(n),null);case 4:return uo(),dc(e,n),e===null&&ni(n.stateNode.containerInfo),on(n),null;case 10:return Oa(n.type._context),on(n),null;case 17:return pn(n.type)&&ur(),on(n),null;case 19:if(Ae(Fe),l=n.memoizedState,l===null)return on(n),null;if(r=(n.flags&128)!==0,f=l.rendering,f===null)if(r)fi(l,!1);else{if(Ke!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(f=xr(e),f!==null){for(n.flags|=128,fi(l,!1),r=f.updateQueue,r!==null&&(n.updateQueue=r,n.flags|=4),n.subtreeFlags=0,r=o,o=n.child;o!==null;)l=o,e=r,l.flags&=14680066,f=l.alternate,f===null?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=f.childLanes,l.lanes=f.lanes,l.child=f.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=f.memoizedProps,l.memoizedState=f.memoizedState,l.updateQueue=f.updateQueue,l.type=f.type,e=f.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),o=o.sibling;return Ee(Fe,Fe.current&1|2),n.child}e=e.sibling}l.tail!==null&&Be()>mo&&(n.flags|=128,r=!0,fi(l,!1),n.lanes=4194304)}else{if(!r)if(e=xr(f),e!==null){if(n.flags|=128,r=!0,o=e.updateQueue,o!==null&&(n.updateQueue=o,n.flags|=4),fi(l,!0),l.tail===null&&l.tailMode==="hidden"&&!f.alternate&&!Me)return on(n),null}else 2*Be()-l.renderingStartTime>mo&&o!==1073741824&&(n.flags|=128,r=!0,fi(l,!1),n.lanes=4194304);l.isBackwards?(f.sibling=n.child,n.child=f):(o=l.last,o!==null?o.sibling=f:n.child=f,l.last=f)}return l.tail!==null?(n=l.tail,l.rendering=n,l.tail=n.sibling,l.renderingStartTime=Be(),n.sibling=null,o=Fe.current,Ee(Fe,r?o&1|2:o&1),n):(on(n),null);case 22:case 23:return bc(),r=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(n.flags|=8192),r&&(n.mode&1)!==0?(xn&1073741824)!==0&&(on(n),n.subtreeFlags&6&&(n.flags|=8192)):on(n),null;case 24:return null;case 25:return null}throw Error(u(156,n.tag))}function l4(e,n){switch(Aa(n),n.tag){case 1:return pn(n.type)&&ur(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return uo(),Ae(dn),Ae(nn),Ha(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 5:return Ga(n),null;case 13:if(Ae(Fe),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(u(340));so()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return Ae(Fe),null;case 4:return uo(),null;case 10:return Oa(n.type._context),null;case 22:case 23:return bc(),null;case 24:return null;default:return null}}var Er=!1,rn=!1,u4=typeof WeakSet=="function"?WeakSet:Set,re=null;function fo(e,n){var o=e.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(r){Oe(e,n,r)}else o.current=null}function pc(e,n,o){try{o()}catch(r){Oe(e,n,r)}}var Id=!1;function d4(e,n){if(ba=Qi,e=gu(),ga(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var r=o.getSelection&&o.getSelection();if(r&&r.rangeCount!==0){o=r.anchorNode;var a=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{o.nodeType,l.nodeType}catch{o=null;break e}var f=0,y=-1,j=-1,z=0,V=0,K=e,G=null;n:for(;;){for(var oe;K!==o||a!==0&&K.nodeType!==3||(y=f+a),K!==l||r!==0&&K.nodeType!==3||(j=f+r),K.nodeType===3&&(f+=K.nodeValue.length),(oe=K.firstChild)!==null;)G=K,K=oe;for(;;){if(K===e)break n;if(G===o&&++z===a&&(y=f),G===l&&++V===r&&(j=f),(oe=K.nextSibling)!==null)break;K=G,G=K.parentNode}K=oe}o=y===-1||j===-1?null:{start:y,end:j}}else o=null}o=o||{start:0,end:0}}else o=null;for(Na={focusedElem:e,selectionRange:o},Qi=!1,re=n;re!==null;)if(n=re,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,re=e;else for(;re!==null;){n=re;try{var se=n.alternate;if((n.flags&1024)!==0)switch(n.tag){case 0:case 11:case 15:break;case 1:if(se!==null){var ae=se.memoizedProps,$e=se.memoizedState,L=n.stateNode,N=L.getSnapshotBeforeUpdate(n.elementType===n.type?ae:Tn(n.type,ae),$e);L.__reactInternalSnapshotBeforeUpdate=N}break;case 3:var T=n.stateNode.containerInfo;T.nodeType===1?T.textContent="":T.nodeType===9&&T.documentElement&&T.removeChild(T.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(u(163))}}catch(Z){Oe(n,n.return,Z)}if(e=n.sibling,e!==null){e.return=n.return,re=e;break}re=n.return}return se=Id,Id=!1,se}function hi(e,n,o){var r=n.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&e)===e){var l=a.destroy;a.destroy=void 0,l!==void 0&&pc(n,o,l)}a=a.next}while(a!==r)}}function Dr(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var r=o.create;o.destroy=r()}o=o.next}while(o!==n)}}function fc(e){var n=e.ref;if(n!==null){var o=e.stateNode;switch(e.tag){case 5:e=o;break;default:e=o}typeof n=="function"?n(e):n.current=e}}function Od(e){var n=e.alternate;n!==null&&(e.alternate=null,Od(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[Wn],delete n[oi],delete n[La],delete n[Kf],delete n[Yf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ud(e){return e.tag===5||e.tag===3||e.tag===4}function Bd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ud(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function hc(e,n,o){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?o.nodeType===8?o.parentNode.insertBefore(e,n):o.insertBefore(e,n):(o.nodeType===8?(n=o.parentNode,n.insertBefore(e,o)):(n=o,n.appendChild(e)),o=o._reactRootContainer,o!=null||n.onclick!==null||(n.onclick=cr));else if(r!==4&&(e=e.child,e!==null))for(hc(e,n,o),e=e.sibling;e!==null;)hc(e,n,o),e=e.sibling}function mc(e,n,o){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?o.insertBefore(e,n):o.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(mc(e,n,o),e=e.sibling;e!==null;)mc(e,n,o),e=e.sibling}var Xe=null,An=!1;function mt(e,n,o){for(o=o.child;o!==null;)$d(e,n,o),o=o.sibling}function $d(e,n,o){if($n&&typeof $n.onCommitFiberUnmount=="function")try{$n.onCommitFiberUnmount(Gi,o)}catch{}switch(o.tag){case 5:rn||fo(o,n);case 6:var r=Xe,a=An;Xe=null,mt(e,n,o),Xe=r,An=a,Xe!==null&&(An?(e=Xe,o=o.stateNode,e.nodeType===8?e.parentNode.removeChild(o):e.removeChild(o)):Xe.removeChild(o.stateNode));break;case 18:Xe!==null&&(An?(e=Xe,o=o.stateNode,e.nodeType===8?Pa(e.parentNode,o):e.nodeType===1&&Pa(e,o),Ho(e)):Pa(Xe,o.stateNode));break;case 4:r=Xe,a=An,Xe=o.stateNode.containerInfo,An=!0,mt(e,n,o),Xe=r,An=a;break;case 0:case 11:case 14:case 15:if(!rn&&(r=o.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var l=a,f=l.destroy;l=l.tag,f!==void 0&&((l&2)!==0||(l&4)!==0)&&pc(o,n,f),a=a.next}while(a!==r)}mt(e,n,o);break;case 1:if(!rn&&(fo(o,n),r=o.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=o.memoizedProps,r.state=o.memoizedState,r.componentWillUnmount()}catch(y){Oe(o,n,y)}mt(e,n,o);break;case 21:mt(e,n,o);break;case 22:o.mode&1?(rn=(r=rn)||o.memoizedState!==null,mt(e,n,o),rn=r):mt(e,n,o);break;default:mt(e,n,o)}}function Wd(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var o=e.stateNode;o===null&&(o=e.stateNode=new u4),n.forEach(function(r){var a=k4.bind(null,e,r);o.has(r)||(o.add(r),r.then(a,a))})}}function Rn(e,n){var o=n.deletions;if(o!==null)for(var r=0;r<o.length;r++){var a=o[r];try{var l=e,f=n,y=f;e:for(;y!==null;){switch(y.tag){case 5:Xe=y.stateNode,An=!1;break e;case 3:Xe=y.stateNode.containerInfo,An=!0;break e;case 4:Xe=y.stateNode.containerInfo,An=!0;break e}y=y.return}if(Xe===null)throw Error(u(160));$d(l,f,a),Xe=null,An=!1;var j=a.alternate;j!==null&&(j.return=null),a.return=null}catch(z){Oe(a,n,z)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)Gd(n,e),n=n.sibling}function Gd(e,n){var o=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Rn(n,e),Hn(e),r&4){try{hi(3,e,e.return),Dr(3,e)}catch(ae){Oe(e,e.return,ae)}try{hi(5,e,e.return)}catch(ae){Oe(e,e.return,ae)}}break;case 1:Rn(n,e),Hn(e),r&512&&o!==null&&fo(o,o.return);break;case 5:if(Rn(n,e),Hn(e),r&512&&o!==null&&fo(o,o.return),e.flags&32){var a=e.stateNode;try{zo(a,"")}catch(ae){Oe(e,e.return,ae)}}if(r&4&&(a=e.stateNode,a!=null)){var l=e.memoizedProps,f=o!==null?o.memoizedProps:l,y=e.type,j=e.updateQueue;if(e.updateQueue=null,j!==null)try{y==="input"&&l.type==="radio"&&l.name!=null&&y1(a,l),Hs(y,f);var z=Hs(y,l);for(f=0;f<j.length;f+=2){var V=j[f],K=j[f+1];V==="style"?S1(a,K):V==="dangerouslySetInnerHTML"?b1(a,K):V==="children"?zo(a,K):R(a,V,K,z)}switch(y){case"input":Bs(a,l);break;case"textarea":x1(a,l);break;case"select":var G=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!l.multiple;var oe=l.value;oe!=null?Vt(a,!!l.multiple,oe,!1):G!==!!l.multiple&&(l.defaultValue!=null?Vt(a,!!l.multiple,l.defaultValue,!0):Vt(a,!!l.multiple,l.multiple?[]:"",!1))}a[oi]=l}catch(ae){Oe(e,e.return,ae)}}break;case 6:if(Rn(n,e),Hn(e),r&4){if(e.stateNode===null)throw Error(u(162));a=e.stateNode,l=e.memoizedProps;try{a.nodeValue=l}catch(ae){Oe(e,e.return,ae)}}break;case 3:if(Rn(n,e),Hn(e),r&4&&o!==null&&o.memoizedState.isDehydrated)try{Ho(n.containerInfo)}catch(ae){Oe(e,e.return,ae)}break;case 4:Rn(n,e),Hn(e);break;case 13:Rn(n,e),Hn(e),a=e.child,a.flags&8192&&(l=a.memoizedState!==null,a.stateNode.isHidden=l,!l||a.alternate!==null&&a.alternate.memoizedState!==null||(yc=Be())),r&4&&Wd(e);break;case 22:if(V=o!==null&&o.memoizedState!==null,e.mode&1?(rn=(z=rn)||V,Rn(n,e),rn=z):Rn(n,e),Hn(e),r&8192){if(z=e.memoizedState!==null,(e.stateNode.isHidden=z)&&!V&&(e.mode&1)!==0)for(re=e,V=e.child;V!==null;){for(K=re=V;re!==null;){switch(G=re,oe=G.child,G.tag){case 0:case 11:case 14:case 15:hi(4,G,G.return);break;case 1:fo(G,G.return);var se=G.stateNode;if(typeof se.componentWillUnmount=="function"){r=G,o=G.return;try{n=r,se.props=n.memoizedProps,se.state=n.memoizedState,se.componentWillUnmount()}catch(ae){Oe(r,o,ae)}}break;case 5:fo(G,G.return);break;case 22:if(G.memoizedState!==null){Kd(K);continue}}oe!==null?(oe.return=G,re=oe):Kd(K)}V=V.sibling}e:for(V=null,K=e;;){if(K.tag===5){if(V===null){V=K;try{a=K.stateNode,z?(l=a.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(y=K.stateNode,j=K.memoizedProps.style,f=j!=null&&j.hasOwnProperty("display")?j.display:null,y.style.display=N1("display",f))}catch(ae){Oe(e,e.return,ae)}}}else if(K.tag===6){if(V===null)try{K.stateNode.nodeValue=z?"":K.memoizedProps}catch(ae){Oe(e,e.return,ae)}}else if((K.tag!==22&&K.tag!==23||K.memoizedState===null||K===e)&&K.child!==null){K.child.return=K,K=K.child;continue}if(K===e)break e;for(;K.sibling===null;){if(K.return===null||K.return===e)break e;V===K&&(V=null),K=K.return}V===K&&(V=null),K.sibling.return=K.return,K=K.sibling}}break;case 19:Rn(n,e),Hn(e),r&4&&Wd(e);break;case 21:break;default:Rn(n,e),Hn(e)}}function Hn(e){var n=e.flags;if(n&2){try{e:{for(var o=e.return;o!==null;){if(Ud(o)){var r=o;break e}o=o.return}throw Error(u(160))}switch(r.tag){case 5:var a=r.stateNode;r.flags&32&&(zo(a,""),r.flags&=-33);var l=Bd(e);mc(e,l,a);break;case 3:case 4:var f=r.stateNode.containerInfo,y=Bd(e);hc(e,y,f);break;default:throw Error(u(161))}}catch(j){Oe(e,e.return,j)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function p4(e,n,o){re=e,Vd(e)}function Vd(e,n,o){for(var r=(e.mode&1)!==0;re!==null;){var a=re,l=a.child;if(a.tag===22&&r){var f=a.memoizedState!==null||Er;if(!f){var y=a.alternate,j=y!==null&&y.memoizedState!==null||rn;y=Er;var z=rn;if(Er=f,(rn=j)&&!z)for(re=a;re!==null;)f=re,j=f.child,f.tag===22&&f.memoizedState!==null?Yd(a):j!==null?(j.return=f,re=j):Yd(a);for(;l!==null;)re=l,Vd(l),l=l.sibling;re=a,Er=y,rn=z}Hd(e)}else(a.subtreeFlags&8772)!==0&&l!==null?(l.return=a,re=l):Hd(e)}}function Hd(e){for(;re!==null;){var n=re;if((n.flags&8772)!==0){var o=n.alternate;try{if((n.flags&8772)!==0)switch(n.tag){case 0:case 11:case 15:rn||Dr(5,n);break;case 1:var r=n.stateNode;if(n.flags&4&&!rn)if(o===null)r.componentDidMount();else{var a=n.elementType===n.type?o.memoizedProps:Tn(n.type,o.memoizedProps);r.componentDidUpdate(a,o.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=n.updateQueue;l!==null&&Ku(n,l,r);break;case 3:var f=n.updateQueue;if(f!==null){if(o=null,n.child!==null)switch(n.child.tag){case 5:o=n.child.stateNode;break;case 1:o=n.child.stateNode}Ku(n,f,o)}break;case 5:var y=n.stateNode;if(o===null&&n.flags&4){o=y;var j=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":j.autoFocus&&o.focus();break;case"img":j.src&&(o.src=j.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var z=n.alternate;if(z!==null){var V=z.memoizedState;if(V!==null){var K=V.dehydrated;K!==null&&Ho(K)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(u(163))}rn||n.flags&512&&fc(n)}catch(G){Oe(n,n.return,G)}}if(n===e){re=null;break}if(o=n.sibling,o!==null){o.return=n.return,re=o;break}re=n.return}}function Kd(e){for(;re!==null;){var n=re;if(n===e){re=null;break}var o=n.sibling;if(o!==null){o.return=n.return,re=o;break}re=n.return}}function Yd(e){for(;re!==null;){var n=re;try{switch(n.tag){case 0:case 11:case 15:var o=n.return;try{Dr(4,n)}catch(j){Oe(n,o,j)}break;case 1:var r=n.stateNode;if(typeof r.componentDidMount=="function"){var a=n.return;try{r.componentDidMount()}catch(j){Oe(n,a,j)}}var l=n.return;try{fc(n)}catch(j){Oe(n,l,j)}break;case 5:var f=n.return;try{fc(n)}catch(j){Oe(n,f,j)}}}catch(j){Oe(n,n.return,j)}if(n===e){re=null;break}var y=n.sibling;if(y!==null){y.return=n.return,re=y;break}re=n.return}}var f4=Math.ceil,Tr=O.ReactCurrentDispatcher,gc=O.ReactCurrentOwner,Sn=O.ReactCurrentBatchConfig,Ne=0,qe=null,We=null,Je=0,xn=0,ho=ut(0),Ke=0,mi=null,zt=0,Ar=0,vc=0,gi=null,hn=null,yc=0,mo=1/0,nt=null,Rr=!1,_c=null,gt=null,zr=!1,vt=null,Mr=0,vi=0,kc=null,Fr=-1,Ir=0;function cn(){return(Ne&6)!==0?Be():Fr!==-1?Fr:Fr=Be()}function yt(e){return(e.mode&1)===0?1:(Ne&2)!==0&&Je!==0?Je&-Je:Qf.transition!==null?(Ir===0&&(Ir=B1()),Ir):(e=Pe,e!==0||(e=window.event,e=e===void 0?16:Q1(e.type)),e)}function zn(e,n,o,r){if(50<vi)throw vi=0,kc=null,Error(u(185));Bo(e,o,r),((Ne&2)===0||e!==qe)&&(e===qe&&((Ne&2)===0&&(Ar|=o),Ke===4&&_t(e,Je)),mn(e,r),o===1&&Ne===0&&(n.mode&1)===0&&(mo=Be()+500,pr&&pt()))}function mn(e,n){var o=e.callbackNode;q0(e,n);var r=Ki(e,e===qe?Je:0);if(r===0)o!==null&&I1(o),e.callbackNode=null,e.callbackPriority=0;else if(n=r&-r,e.callbackPriority!==n){if(o!=null&&I1(o),n===1)e.tag===0?qf(Qd.bind(null,e)):zu(Qd.bind(null,e)),Vf(function(){(Ne&6)===0&&pt()}),o=null;else{switch($1(r)){case 1:o=Js;break;case 4:o=O1;break;case 16:o=Wi;break;case 536870912:o=U1;break;default:o=Wi}o=i2(o,qd.bind(null,e))}e.callbackPriority=n,e.callbackNode=o}}function qd(e,n){if(Fr=-1,Ir=0,(Ne&6)!==0)throw Error(u(327));var o=e.callbackNode;if(go()&&e.callbackNode!==o)return null;var r=Ki(e,e===qe?Je:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||n)n=Or(e,r);else{n=r;var a=Ne;Ne|=2;var l=Xd();(qe!==e||Je!==n)&&(nt=null,mo=Be()+500,Ft(e,n));do try{g4();break}catch(y){Zd(e,y)}while(!0);Ia(),Tr.current=l,Ne=a,We!==null?n=0:(qe=null,Je=0,n=Ke)}if(n!==0){if(n===2&&(a=ea(e),a!==0&&(r=a,n=xc(e,a))),n===1)throw o=mi,Ft(e,0),_t(e,r),mn(e,Be()),o;if(n===6)_t(e,r);else{if(a=e.current.alternate,(r&30)===0&&!h4(a)&&(n=Or(e,r),n===2&&(l=ea(e),l!==0&&(r=l,n=xc(e,l))),n===1))throw o=mi,Ft(e,0),_t(e,r),mn(e,Be()),o;switch(e.finishedWork=a,e.finishedLanes=r,n){case 0:case 1:throw Error(u(345));case 2:It(e,hn,nt);break;case 3:if(_t(e,r),(r&130023424)===r&&(n=yc+500-Be(),10<n)){if(Ki(e,0)!==0)break;if(a=e.suspendedLanes,(a&r)!==r){cn(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Ca(It.bind(null,e,hn,nt),n);break}It(e,hn,nt);break;case 4:if(_t(e,r),(r&4194240)===r)break;for(n=e.eventTimes,a=-1;0<r;){var f=31-Ln(r);l=1<<f,f=n[f],f>a&&(a=f),r&=~l}if(r=a,r=Be()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*f4(r/1960))-r,10<r){e.timeoutHandle=Ca(It.bind(null,e,hn,nt),r);break}It(e,hn,nt);break;case 5:It(e,hn,nt);break;default:throw Error(u(329))}}}return mn(e,Be()),e.callbackNode===o?qd.bind(null,e):null}function xc(e,n){var o=gi;return e.current.memoizedState.isDehydrated&&(Ft(e,n).flags|=256),e=Or(e,n),e!==2&&(n=hn,hn=o,n!==null&&wc(n)),e}function wc(e){hn===null?hn=e:hn.push.apply(hn,e)}function h4(e){for(var n=e;;){if(n.flags&16384){var o=n.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var r=0;r<o.length;r++){var a=o[r],l=a.getSnapshot;a=a.value;try{if(!En(l(),a))return!1}catch{return!1}}}if(o=n.child,n.subtreeFlags&16384&&o!==null)o.return=n,n=o;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function _t(e,n){for(n&=~vc,n&=~Ar,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var o=31-Ln(n),r=1<<o;e[o]=-1,n&=~r}}function Qd(e){if((Ne&6)!==0)throw Error(u(327));go();var n=Ki(e,0);if((n&1)===0)return mn(e,Be()),null;var o=Or(e,n);if(e.tag!==0&&o===2){var r=ea(e);r!==0&&(n=r,o=xc(e,r))}if(o===1)throw o=mi,Ft(e,0),_t(e,n),mn(e,Be()),o;if(o===6)throw Error(u(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,It(e,hn,nt),mn(e,Be()),null}function jc(e,n){var o=Ne;Ne|=1;try{return e(n)}finally{Ne=o,Ne===0&&(mo=Be()+500,pr&&pt())}}function Mt(e){vt!==null&&vt.tag===0&&(Ne&6)===0&&go();var n=Ne;Ne|=1;var o=Sn.transition,r=Pe;try{if(Sn.transition=null,Pe=1,e)return e()}finally{Pe=r,Sn.transition=o,Ne=n,(Ne&6)===0&&pt()}}function bc(){xn=ho.current,Ae(ho)}function Ft(e,n){e.finishedWork=null,e.finishedLanes=0;var o=e.timeoutHandle;if(o!==-1&&(e.timeoutHandle=-1,Gf(o)),We!==null)for(o=We.return;o!==null;){var r=o;switch(Aa(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ur();break;case 3:uo(),Ae(dn),Ae(nn),Ha();break;case 5:Ga(r);break;case 4:uo();break;case 13:Ae(Fe);break;case 19:Ae(Fe);break;case 10:Oa(r.type._context);break;case 22:case 23:bc()}o=o.return}if(qe=e,We=e=kt(e.current,null),Je=xn=n,Ke=0,mi=null,vc=Ar=zt=0,hn=gi=null,Tt!==null){for(n=0;n<Tt.length;n++)if(o=Tt[n],r=o.interleaved,r!==null){o.interleaved=null;var a=r.next,l=o.pending;if(l!==null){var f=l.next;l.next=a,r.next=f}o.pending=r}Tt=null}return e}function Zd(e,n){do{var o=We;try{if(Ia(),wr.current=Sr,jr){for(var r=Ie.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}jr=!1}if(Rt=0,Ye=He=Ie=null,li=!1,ui=0,gc.current=null,o===null||o.return===null){Ke=1,mi=n,We=null;break}e:{var l=e,f=o.return,y=o,j=n;if(n=Je,y.flags|=32768,j!==null&&typeof j=="object"&&typeof j.then=="function"){var z=j,V=y,K=V.tag;if((V.mode&1)===0&&(K===0||K===11||K===15)){var G=V.alternate;G?(V.updateQueue=G.updateQueue,V.memoizedState=G.memoizedState,V.lanes=G.lanes):(V.updateQueue=null,V.memoizedState=null)}var oe=wd(f);if(oe!==null){oe.flags&=-257,jd(oe,f,y,l,n),oe.mode&1&&xd(l,z,n),n=oe,j=z;var se=n.updateQueue;if(se===null){var ae=new Set;ae.add(j),n.updateQueue=ae}else se.add(j);break e}else{if((n&1)===0){xd(l,z,n),Nc();break e}j=Error(u(426))}}else if(Me&&y.mode&1){var $e=wd(f);if($e!==null){($e.flags&65536)===0&&($e.flags|=256),jd($e,f,y,l,n),Ma(po(j,y));break e}}l=j=po(j,y),Ke!==4&&(Ke=2),gi===null?gi=[l]:gi.push(l),l=f;do{switch(l.tag){case 3:l.flags|=65536,n&=-n,l.lanes|=n;var L=_d(l,j,n);Hu(l,L);break e;case 1:y=j;var N=l.type,T=l.stateNode;if((l.flags&128)===0&&(typeof N.getDerivedStateFromError=="function"||T!==null&&typeof T.componentDidCatch=="function"&&(gt===null||!gt.has(T)))){l.flags|=65536,n&=-n,l.lanes|=n;var Z=kd(l,y,n);Hu(l,Z);break e}}l=l.return}while(l!==null)}e2(o)}catch(ce){n=ce,We===o&&o!==null&&(We=o=o.return);continue}break}while(!0)}function Xd(){var e=Tr.current;return Tr.current=Sr,e===null?Sr:e}function Nc(){(Ke===0||Ke===3||Ke===2)&&(Ke=4),qe===null||(zt&268435455)===0&&(Ar&268435455)===0||_t(qe,Je)}function Or(e,n){var o=Ne;Ne|=2;var r=Xd();(qe!==e||Je!==n)&&(nt=null,Ft(e,n));do try{m4();break}catch(a){Zd(e,a)}while(!0);if(Ia(),Ne=o,Tr.current=r,We!==null)throw Error(u(261));return qe=null,Je=0,Ke}function m4(){for(;We!==null;)Jd(We)}function g4(){for(;We!==null&&!U0();)Jd(We)}function Jd(e){var n=o2(e.alternate,e,xn);e.memoizedProps=e.pendingProps,n===null?e2(e):We=n,gc.current=null}function e2(e){var n=e;do{var o=n.alternate;if(e=n.return,(n.flags&32768)===0){if(o=c4(o,n,xn),o!==null){We=o;return}}else{if(o=l4(o,n),o!==null){o.flags&=32767,We=o;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ke=6,We=null;return}}if(n=n.sibling,n!==null){We=n;return}We=n=e}while(n!==null);Ke===0&&(Ke=5)}function It(e,n,o){var r=Pe,a=Sn.transition;try{Sn.transition=null,Pe=1,v4(e,n,o,r)}finally{Sn.transition=a,Pe=r}return null}function v4(e,n,o,r){do go();while(vt!==null);if((Ne&6)!==0)throw Error(u(327));o=e.finishedWork;var a=e.finishedLanes;if(o===null)return null;if(e.finishedWork=null,e.finishedLanes=0,o===e.current)throw Error(u(177));e.callbackNode=null,e.callbackPriority=0;var l=o.lanes|o.childLanes;if(Q0(e,l),e===qe&&(We=qe=null,Je=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||zr||(zr=!0,i2(Wi,function(){return go(),null})),l=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||l){l=Sn.transition,Sn.transition=null;var f=Pe;Pe=1;var y=Ne;Ne|=4,gc.current=null,d4(e,o),Gd(o,e),Ff(Na),Qi=!!ba,Na=ba=null,e.current=o,p4(o),B0(),Ne=y,Pe=f,Sn.transition=l}else e.current=o;if(zr&&(zr=!1,vt=e,Mr=a),l=e.pendingLanes,l===0&&(gt=null),G0(o.stateNode),mn(e,Be()),n!==null)for(r=e.onRecoverableError,o=0;o<n.length;o++)a=n[o],r(a.value,{componentStack:a.stack,digest:a.digest});if(Rr)throw Rr=!1,e=_c,_c=null,e;return(Mr&1)!==0&&e.tag!==0&&go(),l=e.pendingLanes,(l&1)!==0?e===kc?vi++:(vi=0,kc=e):vi=0,pt(),null}function go(){if(vt!==null){var e=$1(Mr),n=Sn.transition,o=Pe;try{if(Sn.transition=null,Pe=16>e?16:e,vt===null)var r=!1;else{if(e=vt,vt=null,Mr=0,(Ne&6)!==0)throw Error(u(331));var a=Ne;for(Ne|=4,re=e.current;re!==null;){var l=re,f=l.child;if((re.flags&16)!==0){var y=l.deletions;if(y!==null){for(var j=0;j<y.length;j++){var z=y[j];for(re=z;re!==null;){var V=re;switch(V.tag){case 0:case 11:case 15:hi(8,V,l)}var K=V.child;if(K!==null)K.return=V,re=K;else for(;re!==null;){V=re;var G=V.sibling,oe=V.return;if(Od(V),V===z){re=null;break}if(G!==null){G.return=oe,re=G;break}re=oe}}}var se=l.alternate;if(se!==null){var ae=se.child;if(ae!==null){se.child=null;do{var $e=ae.sibling;ae.sibling=null,ae=$e}while(ae!==null)}}re=l}}if((l.subtreeFlags&2064)!==0&&f!==null)f.return=l,re=f;else e:for(;re!==null;){if(l=re,(l.flags&2048)!==0)switch(l.tag){case 0:case 11:case 15:hi(9,l,l.return)}var L=l.sibling;if(L!==null){L.return=l.return,re=L;break e}re=l.return}}var N=e.current;for(re=N;re!==null;){f=re;var T=f.child;if((f.subtreeFlags&2064)!==0&&T!==null)T.return=f,re=T;else e:for(f=N;re!==null;){if(y=re,(y.flags&2048)!==0)try{switch(y.tag){case 0:case 11:case 15:Dr(9,y)}}catch(ce){Oe(y,y.return,ce)}if(y===f){re=null;break e}var Z=y.sibling;if(Z!==null){Z.return=y.return,re=Z;break e}re=y.return}}if(Ne=a,pt(),$n&&typeof $n.onPostCommitFiberRoot=="function")try{$n.onPostCommitFiberRoot(Gi,e)}catch{}r=!0}return r}finally{Pe=o,Sn.transition=n}}return!1}function n2(e,n,o){n=po(o,n),n=_d(e,n,1),e=ht(e,n,1),n=cn(),e!==null&&(Bo(e,1,n),mn(e,n))}function Oe(e,n,o){if(e.tag===3)n2(e,e,o);else for(;n!==null;){if(n.tag===3){n2(n,e,o);break}else if(n.tag===1){var r=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(gt===null||!gt.has(r))){e=po(o,e),e=kd(n,e,1),n=ht(n,e,1),e=cn(),n!==null&&(Bo(n,1,e),mn(n,e));break}}n=n.return}}function y4(e,n,o){var r=e.pingCache;r!==null&&r.delete(n),n=cn(),e.pingedLanes|=e.suspendedLanes&o,qe===e&&(Je&o)===o&&(Ke===4||Ke===3&&(Je&130023424)===Je&&500>Be()-yc?Ft(e,0):vc|=o),mn(e,n)}function t2(e,n){n===0&&((e.mode&1)===0?n=1:(n=Hi,Hi<<=1,(Hi&130023424)===0&&(Hi=4194304)));var o=cn();e=Xn(e,n),e!==null&&(Bo(e,n,o),mn(e,o))}function _4(e){var n=e.memoizedState,o=0;n!==null&&(o=n.retryLane),t2(e,o)}function k4(e,n){var o=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(o=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(u(314))}r!==null&&r.delete(n),t2(e,o)}var o2;o2=function(e,n,o){if(e!==null)if(e.memoizedProps!==n.pendingProps||dn.current)fn=!0;else{if((e.lanes&o)===0&&(n.flags&128)===0)return fn=!1,a4(e,n,o);fn=(e.flags&131072)!==0}else fn=!1,Me&&(n.flags&1048576)!==0&&Mu(n,hr,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;Lr(e,n),e=n.pendingProps;var a=oo(n,nn.current);lo(n,o),a=qa(null,n,r,e,a,o);var l=Qa();return n.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,pn(r)?(l=!0,dr(n)):l=!1,n.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,$a(n),a.updater=Cr,n.stateNode=a,a._reactInternals=n,tc(n,r,e,o),n=sc(null,n,r,!0,l,o)):(n.tag=0,Me&&l&&Ta(n),an(null,n,a,o),n=n.child),n;case 16:r=n.elementType;e:{switch(Lr(e,n),e=n.pendingProps,a=r._init,r=a(r._payload),n.type=r,a=n.tag=w4(r),e=Tn(r,e),a){case 0:n=rc(null,n,r,e,o);break e;case 1:n=Ld(null,n,r,e,o);break e;case 11:n=bd(null,n,r,e,o);break e;case 14:n=Nd(null,n,r,Tn(r.type,e),o);break e}throw Error(u(306,r,""))}return n;case 0:return r=n.type,a=n.pendingProps,a=n.elementType===r?a:Tn(r,a),rc(e,n,r,a,o);case 1:return r=n.type,a=n.pendingProps,a=n.elementType===r?a:Tn(r,a),Ld(e,n,r,a,o);case 3:e:{if(Ed(n),e===null)throw Error(u(387));r=n.pendingProps,l=n.memoizedState,a=l.element,Vu(e,n),kr(n,r,null,o);var f=n.memoizedState;if(r=f.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:f.cache,pendingSuspenseBoundaries:f.pendingSuspenseBoundaries,transitions:f.transitions},n.updateQueue.baseState=l,n.memoizedState=l,n.flags&256){a=po(Error(u(423)),n),n=Dd(e,n,r,o,a);break e}else if(r!==a){a=po(Error(u(424)),n),n=Dd(e,n,r,o,a);break e}else for(kn=lt(n.stateNode.containerInfo.firstChild),_n=n,Me=!0,Dn=null,o=Wu(n,null,r,o),n.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(so(),r===a){n=et(e,n,o);break e}an(e,n,r,o)}n=n.child}return n;case 5:return Yu(n),e===null&&za(n),r=n.type,a=n.pendingProps,l=e!==null?e.memoizedProps:null,f=a.children,Sa(r,a)?f=null:l!==null&&Sa(r,l)&&(n.flags|=32),Pd(e,n),an(e,n,f,o),n.child;case 6:return e===null&&za(n),null;case 13:return Td(e,n,o);case 4:return Wa(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=ao(n,null,r,o):an(e,n,r,o),n.child;case 11:return r=n.type,a=n.pendingProps,a=n.elementType===r?a:Tn(r,a),bd(e,n,r,a,o);case 7:return an(e,n,n.pendingProps,o),n.child;case 8:return an(e,n,n.pendingProps.children,o),n.child;case 12:return an(e,n,n.pendingProps.children,o),n.child;case 10:e:{if(r=n.type._context,a=n.pendingProps,l=n.memoizedProps,f=a.value,Ee(vr,r._currentValue),r._currentValue=f,l!==null)if(En(l.value,f)){if(l.children===a.children&&!dn.current){n=et(e,n,o);break e}}else for(l=n.child,l!==null&&(l.return=n);l!==null;){var y=l.dependencies;if(y!==null){f=l.child;for(var j=y.firstContext;j!==null;){if(j.context===r){if(l.tag===1){j=Jn(-1,o&-o),j.tag=2;var z=l.updateQueue;if(z!==null){z=z.shared;var V=z.pending;V===null?j.next=j:(j.next=V.next,V.next=j),z.pending=j}}l.lanes|=o,j=l.alternate,j!==null&&(j.lanes|=o),Ua(l.return,o,n),y.lanes|=o;break}j=j.next}}else if(l.tag===10)f=l.type===n.type?null:l.child;else if(l.tag===18){if(f=l.return,f===null)throw Error(u(341));f.lanes|=o,y=f.alternate,y!==null&&(y.lanes|=o),Ua(f,o,n),f=l.sibling}else f=l.child;if(f!==null)f.return=l;else for(f=l;f!==null;){if(f===n){f=null;break}if(l=f.sibling,l!==null){l.return=f.return,f=l;break}f=f.return}l=f}an(e,n,a.children,o),n=n.child}return n;case 9:return a=n.type,r=n.pendingProps.children,lo(n,o),a=bn(a),r=r(a),n.flags|=1,an(e,n,r,o),n.child;case 14:return r=n.type,a=Tn(r,n.pendingProps),a=Tn(r.type,a),Nd(e,n,r,a,o);case 15:return Sd(e,n,n.type,n.pendingProps,o);case 17:return r=n.type,a=n.pendingProps,a=n.elementType===r?a:Tn(r,a),Lr(e,n),n.tag=1,pn(r)?(e=!0,dr(n)):e=!1,lo(n,o),vd(n,r,a),tc(n,r,a,o),sc(null,n,r,!0,e,o);case 19:return Rd(e,n,o);case 22:return Cd(e,n,o)}throw Error(u(156,n.tag))};function i2(e,n){return F1(e,n)}function x4(e,n,o,r){this.tag=e,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Cn(e,n,o,r){return new x4(e,n,o,r)}function Sc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function w4(e){if(typeof e=="function")return Sc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===le)return 11;if(e===me)return 14}return 2}function kt(e,n){var o=e.alternate;return o===null?(o=Cn(e.tag,n,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=n,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&14680064,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,n=e.dependencies,o.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o}function Ur(e,n,o,r,a,l){var f=2;if(r=e,typeof e=="function")Sc(e)&&(f=1);else if(typeof e=="string")f=5;else e:switch(e){case B:return Ot(o.children,a,l,n);case X:f=8,a|=8;break;case q:return e=Cn(12,o,n,a|2),e.elementType=q,e.lanes=l,e;case he:return e=Cn(13,o,n,a),e.elementType=he,e.lanes=l,e;case M:return e=Cn(19,o,n,a),e.elementType=M,e.lanes=l,e;case ke:return Br(o,a,l,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case W:f=10;break e;case ne:f=9;break e;case le:f=11;break e;case me:f=14;break e;case _e:f=16,r=null;break e}throw Error(u(130,e==null?e:typeof e,""))}return n=Cn(f,o,n,a),n.elementType=e,n.type=r,n.lanes=l,n}function Ot(e,n,o,r){return e=Cn(7,e,r,n),e.lanes=o,e}function Br(e,n,o,r){return e=Cn(22,e,r,n),e.elementType=ke,e.lanes=o,e.stateNode={isHidden:!1},e}function Cc(e,n,o){return e=Cn(6,e,null,n),e.lanes=o,e}function Pc(e,n,o){return n=Cn(4,e.children!==null?e.children:[],e.key,n),n.lanes=o,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function j4(e,n,o,r,a){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=na(0),this.expirationTimes=na(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=na(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Lc(e,n,o,r,a,l,f,y,j){return e=new j4(e,n,o,y,j),n===1?(n=1,l===!0&&(n|=8)):n=0,l=Cn(3,null,null,n),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},$a(l),e}function b4(e,n,o){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:J,key:r==null?null:""+r,children:e,containerInfo:n,implementation:o}}function r2(e){if(!e)return dt;e=e._reactInternals;e:{if(Ct(e)!==e||e.tag!==1)throw Error(u(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(pn(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(u(171))}if(e.tag===1){var o=e.type;if(pn(o))return Au(e,o,n)}return n}function s2(e,n,o,r,a,l,f,y,j){return e=Lc(o,r,!0,e,a,l,f,y,j),e.context=r2(null),o=e.current,r=cn(),a=yt(o),l=Jn(r,a),l.callback=n??null,ht(o,l,a),e.current.lanes=a,Bo(e,a,r),mn(e,r),e}function $r(e,n,o,r){var a=n.current,l=cn(),f=yt(a);return o=r2(o),n.context===null?n.context=o:n.pendingContext=o,n=Jn(l,f),n.payload={element:e},r=r===void 0?null:r,r!==null&&(n.callback=r),e=ht(a,n,f),e!==null&&(zn(e,a,f,l),_r(e,a,f)),f}function Wr(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function a2(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<n?o:n}}function Ec(e,n){a2(e,n),(e=e.alternate)&&a2(e,n)}function N4(){return null}var c2=typeof reportError=="function"?reportError:function(e){console.error(e)};function Dc(e){this._internalRoot=e}Gr.prototype.render=Dc.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(u(409));$r(e,n,null,null)},Gr.prototype.unmount=Dc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Mt(function(){$r(null,e,null,null)}),n[Yn]=null}};function Gr(e){this._internalRoot=e}Gr.prototype.unstable_scheduleHydration=function(e){if(e){var n=V1();e={blockedOn:null,target:e,priority:n};for(var o=0;o<st.length&&n!==0&&n<st[o].priority;o++);st.splice(o,0,e),o===0&&Y1(e)}};function Tc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Vr(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function l2(){}function S4(e,n,o,r,a){if(a){if(typeof r=="function"){var l=r;r=function(){var z=Wr(f);l.call(z)}}var f=s2(n,r,e,0,null,!1,!1,"",l2);return e._reactRootContainer=f,e[Yn]=f.current,ni(e.nodeType===8?e.parentNode:e),Mt(),f}for(;a=e.lastChild;)e.removeChild(a);if(typeof r=="function"){var y=r;r=function(){var z=Wr(j);y.call(z)}}var j=Lc(e,0,!1,null,null,!1,!1,"",l2);return e._reactRootContainer=j,e[Yn]=j.current,ni(e.nodeType===8?e.parentNode:e),Mt(function(){$r(n,j,o,r)}),j}function Hr(e,n,o,r,a){var l=o._reactRootContainer;if(l){var f=l;if(typeof a=="function"){var y=a;a=function(){var j=Wr(f);y.call(j)}}$r(n,f,e,a)}else f=S4(o,n,e,a,r);return Wr(f)}W1=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var o=Uo(n.pendingLanes);o!==0&&(ta(n,o|1),mn(n,Be()),(Ne&6)===0&&(mo=Be()+500,pt()))}break;case 13:Mt(function(){var r=Xn(e,1);if(r!==null){var a=cn();zn(r,e,1,a)}}),Ec(e,1)}},oa=function(e){if(e.tag===13){var n=Xn(e,134217728);if(n!==null){var o=cn();zn(n,e,134217728,o)}Ec(e,134217728)}},G1=function(e){if(e.tag===13){var n=yt(e),o=Xn(e,n);if(o!==null){var r=cn();zn(o,e,n,r)}Ec(e,n)}},V1=function(){return Pe},H1=function(e,n){var o=Pe;try{return Pe=e,n()}finally{Pe=o}},qs=function(e,n,o){switch(n){case"input":if(Bs(e,o),n=o.name,o.type==="radio"&&n!=null){for(o=e;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<o.length;n++){var r=o[n];if(r!==e&&r.form===e.form){var a=lr(r);if(!a)throw Error(u(90));Ao(r),Bs(r,a)}}}break;case"textarea":x1(e,o);break;case"select":n=o.value,n!=null&&Vt(e,!!o.multiple,n,!1)}},E1=jc,D1=Mt;var C4={usingClientEntryPoint:!1,Events:[ii,no,lr,P1,L1,jc]},yi={findFiberByHostInstance:Pt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},P4={bundleType:yi.bundleType,version:yi.version,rendererPackageName:yi.rendererPackageName,rendererConfig:yi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:O.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=z1(e),e===null?null:e.stateNode},findFiberByHostInstance:yi.findFiberByHostInstance||N4,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Kr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Kr.isDisabled&&Kr.supportsFiber)try{Gi=Kr.inject(P4),$n=Kr}catch{}}return ln.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=C4,ln.createPortal=function(e,n){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Tc(n))throw Error(u(200));return b4(e,n,null,o)},ln.createRoot=function(e,n){if(!Tc(e))throw Error(u(299));var o=!1,r="",a=c2;return n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),n=Lc(e,1,!1,null,null,o,!1,r,a),e[Yn]=n.current,ni(e.nodeType===8?e.parentNode:e),new Dc(n)},ln.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=z1(n),e=e===null?null:e.stateNode,e},ln.flushSync=function(e){return Mt(e)},ln.hydrate=function(e,n,o){if(!Vr(n))throw Error(u(200));return Hr(null,e,n,!0,o)},ln.hydrateRoot=function(e,n,o){if(!Tc(e))throw Error(u(405));var r=o!=null&&o.hydratedSources||null,a=!1,l="",f=c2;if(o!=null&&(o.unstable_strictMode===!0&&(a=!0),o.identifierPrefix!==void 0&&(l=o.identifierPrefix),o.onRecoverableError!==void 0&&(f=o.onRecoverableError)),n=s2(n,null,e,1,o??null,a,!1,l,f),e[Yn]=n.current,ni(e),r)for(e=0;e<r.length;e++)o=r[e],a=o._getVersion,a=a(o._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[o,a]:n.mutableSourceEagerHydrationData.push(o,a);return new Gr(n)},ln.render=function(e,n,o){if(!Vr(n))throw Error(u(200));return Hr(null,e,n,!1,o)},ln.unmountComponentAtNode=function(e){if(!Vr(e))throw Error(u(40));return e._reactRootContainer?(Mt(function(){Hr(null,null,e,!1,function(){e._reactRootContainer=null,e[Yn]=null})}),!0):!1},ln.unstable_batchedUpdates=jc,ln.unstable_renderSubtreeIntoContainer=function(e,n,o,r){if(!Vr(o))throw Error(u(200));if(e==null||e._reactInternals===void 0)throw Error(u(38));return Hr(e,n,o,!1,r)},ln.version="18.3.1-next-f1338f8080-20240426",ln}var Uc;function Bc(){if(Uc)return Zr.exports;Uc=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(c){console.error(c)}}return i(),Zr.exports=m2(),Zr.exports}var $c;function g2(){if($c)return _i;$c=1;var i=Bc();return _i.createRoot=i.createRoot,_i.hydrateRoot=i.hydrateRoot,_i}var v2=g2(),w=Qr();function y2({tabs:i,activeTab:c,onTabChange:u}){return t.jsx("div",{className:"cn-tab-nav",children:i.map(d=>t.jsx("button",{"data-tab":d.id,className:`cn-tab-nav__item${c===d.id?" cn-tab-nav__item--active":""}`,onClick:()=>u(d.id),type:"button",children:d.label},d.id))})}const Wc="cookie-notice",es=()=>typeof window<"u"&&window.wp&&window.wp.i18n||null,s=(i,c=Wc)=>{const u=es();return u?u.__(i,c):i},yo=(i,c,u,d=Wc)=>{const p=es();return p?p._n(i,c,u,d):u===1?i:c},je=(i,...c)=>{const u=es();if(u&&typeof u.sprintf=="function")try{return u.sprintf(i,...c)}catch{return i}return i};function Ut({type:i="info",dismissible:c=!1,onDismiss:u,children:d}){const p={success:"notice-success",error:"notice-error",warning:"notice-warning",info:"notice-info"}[i]||"notice-info";return t.jsxs("div",{className:`notice inline ${p}${c?" is-dismissible":""}`,children:[t.jsx("p",{children:d}),c&&u&&t.jsx("button",{type:"button",className:"notice-dismiss",onClick:u,children:t.jsx("span",{className:"screen-reader-text",children:s("Dismiss this notice.","cookie-notice")})})]})}function Ze(){const i=window.cnReactData||{},c=i.app_id||"",u=(i.subscription||"").toLowerCase(),d=!!c;let p="banner_only";return d&&u==="pro"?p="pro":d&&(p="free"),{tier:p,isBannerOnly:p==="banner_only",isFree:p==="free",isPro:p==="pro",isConnected:d,version:i.version||""}}const Gc=w.createContext({config:null,isLoadingConfig:!1,refetchConfig:()=>{},configRefresh:{state:"idle",lastSynced:"",retry:()=>{}}});function wt(){return w.useContext(Gc)}function ns(){return s("Shared settings are off. Each site uses its own settings — manage them from each site's dashboard.","cookie-notice")}function ts(i){return{networkManaged:s("Managed by network","cookie-notice"),perSite:s("Set per site","cookie-notice"),pending:s("Pending","cookie-notice"),inactive:s("Not active","cookie-notice"),checking:s("Checking…","cookie-notice")}[i]||s("Not confirmed","cookie-notice")}function os(i){return{networkManaged:s("Managed by your network administrator","cookie-notice"),perSite:ns(),pending:s("Pending: finish setup in your Cookie Compliance account","cookie-notice"),inactive:s("Not active: visitors see a basic notice only","cookie-notice"),checking:s("Checking whether your banner is live…","cookie-notice")}[i]||s("Not confirmed — reload to see the saved value","cookie-notice")}function Re(){var i;return!!((i=window.cnReactData)!=null&&i.networkOverride)}function is(){return s("Global network settings override is active. Every site will use the same network settings. Please contact super administrator if you want to have more control over the settings.","cookie-notice")}function rs(){return t.jsx(Ut,{type:"info",children:is()})}function ss(){return t.jsx(Ut,{type:"info",children:ns()})}function as({managed:i,perSite:c=!1,children:u}){return!i&&!c?u:t.jsxs(t.Fragment,{children:[i?t.jsx(rs,{}):t.jsx(ss,{}),t.jsx("div",{className:"cn-network-managed",inert:"",children:u})]})}const _2=()=>({banner_only:s("Banner Only (Not Connected)","cookie-notice"),free:s("Free Plan","cookie-notice"),pro:s("Pro Plan","cookie-notice")});function cs(i){if(!i)return"";const c=Date.parse(String(i).trim().replace(" ","T")+"Z");return Number.isNaN(c)?"":new Date(c).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function k2(){const{configRefresh:i}=wt(),{state:c,lastSynced:u,retry:d}=i||{};if(c==="refreshing")return t.jsx("span",{className:"cn-footer__sync",children:s("Refreshing settings…","cookie-notice")});if(c==="failed"){const h=cs(u);return t.jsxs("span",{className:"cn-footer__sync cn-footer__sync--failed",children:[h?je(s("Couldn't reach Hu-manity — showing settings from %s.","cookie-notice"),h):s("Couldn't reach Hu-manity — showing cached settings.","cookie-notice")," ",t.jsx("button",{type:"button",className:"cn-footer__sync-retry",onClick:d,children:s("Retry","cookie-notice")})]})}const p=cs(u);return p?t.jsx("span",{className:"cn-footer__sync",children:je(s("Settings synced %s","cookie-notice"),p)}):null}function x2(){const{tier:i,version:c}=Ze(),u=Re()?s("Managed by network","cookie-notice"):_2()[i]||"";return t.jsxs("div",{className:"cn-footer",children:[t.jsxs("span",{className:"cn-footer__version",children:[je(s("Cookie Compliance v%1$s — %2$s","cookie-notice"),c||"—",u)," ",t.jsx(k2,{})]}),t.jsxs("span",{className:"cn-footer__links",children:[t.jsx("a",{href:"https://cookie-compliance.co/documentation/",target:"_blank",rel:"noopener noreferrer",children:s("Documentation","cookie-notice")})," | ",t.jsx("a",{href:"https://cookie-compliance.co/mcp/",target:"_blank",rel:"noopener noreferrer",children:s("AI assistant","cookie-notice")})," | ",t.jsx("a",{href:"https://cookie-compliance.co/support/",target:"_blank",rel:"noopener noreferrer",children:s("Support","cookie-notice")})," | ",t.jsx("a",{href:"https://cookie-compliance.co/privacy-policy/",target:"_blank",rel:"noopener noreferrer",children:s("Privacy Policy","cookie-notice")})]})]})}const Vc=w.createContext({dashboard:null,refetchDashboard:()=>{},isLoadingDashboard:!1,scorecardStatus:"loading"});function Mn(){return w.useContext(Vc)}const ls=i=>"cn_setup_wizard_complete_"+(i||"default"),us=i=>"cn_has_platform_config_"+(i||""),w2=i=>"cn_setup_just_finished_"+(i||"default"),Hc=w.createContext(null);function j2({onLawSave:i,onConsentClose:c,children:u}){const[d,p]=w.useState(!1),[h,m]=w.useState(0),[x,v]=w.useState(!1),[g,k]=w.useState(!1),[_,b]=w.useState(0),[A,C]=w.useState(!1),D=w.useMemo(()=>{var J;try{const B=((J=window.cnReactData)==null?void 0:J.app_id)||"";return!!B&&localStorage.getItem(us(B))==="1"}catch{return!1}},[]),P=w.useCallback(()=>{p(!1),v(!1),k(!1),C(!1)},[]),E=w.useCallback(()=>{P(),p(!0),m(J=>J+1)},[P]),I=w.useCallback(()=>{P(),k(!0),b(J=>J+1)},[P]),R=w.useCallback(()=>{v(!0),setTimeout(()=>{p(!1),v(!1),i&&i()},160)},[i]),O=w.useCallback(()=>{C(!0),setTimeout(()=>{k(!1),C(!1),c&&c()},160)},[c]),te={showLawWizard:d,lawScrollTrigger:h,lawClosing:x,showConsentPanel:g,consentScrollTrigger:_,consentClosing:A,hasPlatformConfig:D,openLawWizard:E,openConsentPanel:I,closeLawWizard:R,closeConsentPanel:O,closeAllPanels:P};return t.jsx(Hc.Provider,{value:te,children:u})}function ki(){const i=w.useContext(Hc);if(!i)throw new Error("usePanels() must be used inside <PanelProvider>.");return i}const b2={"&":"&","<":"<",">":">",""":'"',"'":"'"};function ds(i){return typeof i=="string"?i.replace(/&(?:amp|lt|gt|quot|#039);/g,c=>b2[c]):Array.isArray(i)?i.map(ds):i&&typeof i=="object"?Object.fromEntries(Object.entries(i).map(([c,u])=>[c,ds(u)])):i}function Kc(i){if(!i||typeof i!="object"||Array.isArray(i))return i;const c={...i};for(const u of["error","message"])u in c&&(c[u]=ds(c[u]));return c}const N2="--CNWAF-B64--",S2=["cn_react_update_design","cn_react_save_banner_style","cn_react_dashboard","cn_react_save_network_options"],Yc="cn_react_dashboard",C2=["register","login","login_code","login_code_resend","login_app","configure","sync_config"],P2=["app_id","app_key"],_o=new Set;function L2(i){return _o.add(i),()=>_o.delete(i)}async function xi(i,c){_o.forEach(d=>d.start());let u=!0;try{const d=await i();u=!1;try{_o.forEach(p=>p.reply&&p.reply(d))}catch{}return d}catch(d){throw u=!(d&&d.answered),d}finally{_o.forEach(d=>d.settle(u,c))}}const wi={options:{timeout:()=>s("The request timed out before the server answered. Your change may not have been saved — reload the page to see the saved value.","cookie-notice"),network:()=>s("The request could not reach the server. Your change may not have been saved — check your connection and reload the page to see the saved value.","cookie-notice"),http:i=>je(s("AJAX error: %d. Your change may not have been saved — reload the page to see the saved value.","cookie-notice"),i),unreadable:()=>s("The server's reply could not be read. Your change may not have been saved — reload the page to see the saved value.","cookie-notice")},read:{timeout:()=>s("Couldn't load — the server took too long to answer. Try again.","cookie-notice"),network:()=>s("Couldn't load — the server could not be reached. Check your connection and try again.","cookie-notice"),http:i=>je(s("Couldn't load (HTTP %d) — try again.","cookie-notice"),i),unreadable:()=>s("Couldn't load — the server's reply could not be read. Try again.","cookie-notice")},request:{timeout:()=>s("The server took too long to answer. Try again.","cookie-notice"),network:()=>s("The server could not be reached. Check your connection and try again.","cookie-notice"),http:i=>je(s("AJAX error: %d","cookie-notice"),i),unreadable:()=>s("The server's reply could not be read. Try again.","cookie-notice")}};function Ge(i,c={},u={}){return S2.includes(i)?xi(()=>ps(i,c,u),i):ps(i,c,u)}async function ps(i,c,{timeout:u=0,kind:d="request"}){var A,C,D;const p=wi[d]||wi.request,h=window.cnReactData||{},m=new FormData;m.append("action",i),m.append("nonce",h.nonce||""),h.network&&m.append("cn_network","1"),Object.entries(c).forEach(([P,E])=>{m.append(P,E)});const x=u?new AbortController:null,v=x?setTimeout(()=>x.abort(),u):null;let g,k;try{g=await fetch(h.ajaxURL||"/wp-admin/admin-ajax.php",{method:"POST",credentials:"same-origin",body:m,signal:x?x.signal:void 0}),k=await g.text()}catch{throw x&&x.signal.aborted?tt(p.timeout(),{timedOut:!0}):tt(p.network(),{network:!0})}finally{clearTimeout(v)}let _=null;try{_=JSON.parse(k)}catch{}const b=_&&typeof _=="object"&&_.success===!1?_:null;if(!g.ok){if(g.status===403){if(b&&typeof((A=b.data)==null?void 0:A.error)=="string"&&b.data.error)throw ji(b.data.error);const P=s("This save was blocked by a security plugin or firewall on your site (HTTP 403). Add an allow-list rule for the Cookie Compliance save action in your firewall (e.g. WordFence → Firewall → Live Traffic), then try again.","cookie-notice");throw b?ji(P):tt(P)}throw b?ji(((C=b.data)==null?void 0:C.error)||wi.request.http(g.status)):tt(p.http(g.status))}if(b)throw ji(((D=b.data)==null?void 0:D.error)||s("Request failed","cookie-notice"));if(!_||typeof _!="object"||_.success!==!0)throw tt(p.unreadable());return _.data}function ji(i){return Object.assign(new Error(i),{refused:!0,answered:!0})}function fs(i){return Object.assign(new Error(i),{answered:!0})}function qc(i){try{return JSON.parse(i)}catch{return}}const Qc=i=>!!i&&typeof i=="object"&&i.success===!1;function tt(i,c={}){return Object.assign(new Error(i),{uncertain:!0},c)}function gn(i,c={},u="",d=""){return C2.includes(i)?xi(()=>Zc(i,c,u,d),i):Zc(i,c,u,d)}async function Zc(i,c,u,d){var k;const p=window.cnReactData||{},h=new FormData;h.append("action","cn_api_request"),h.append("nonce",d||p.welcomeNonce||""),h.append("request",i),h.append("cn_nonce",u),p.network&&h.append("cn_network","1"),Object.entries(c).forEach(([_,b])=>{h.append(_,b)});let m,x;try{m=await fetch(p.ajaxURL||"/wp-admin/admin-ajax.php",{method:"POST",credentials:"same-origin",body:h}),x=await m.text()}catch(_){throw Object.assign(_ instanceof Error?_:new Error(String(_)),{uncertain:!0,network:!0})}const v=qc(x);if(!m.ok){const _=`Request failed: ${m.status}`;throw Qc(v)?fs(((k=v.data)==null?void 0:k.error)||_):tt(_)}if(v===void 0)throw tt(wi.request.unreadable());const g=Kc(v);if(g&&g.error)throw Object.assign(fs(g.error),g.expired?{expired:!0}:{});return g}const E2=()=>{const i=window.cnReactData||{},c={};if(i.devMode){const u=new URLSearchParams(window.location.search),d=u.get("cn_usage"),p=u.get("cn_tier");d!==null&&(c.cn_usage=d),p!==null&&(c.cn_tier=p)}return Ge(Yc,c,{kind:"read"})},D2=()=>Ge("cn_react_config",{},{kind:"read"}),T2=(i={})=>Ge("cn_react_consent_logs",i,{kind:"read"}),A2=(i={})=>Ge("cn_react_export_consent_logs",i,{kind:"read"}),hs=(i={})=>Ge("cn_react_privacy_consent",i,{kind:"read"}),R2=(i={})=>{const c={};return Object.entries(i).forEach(([u,d])=>{d.active!==void 0&&(c[`sources[${u}][active]`]=d.active?"1":"0"),d.activeType!==void 0&&(c[`sources[${u}][active_type]`]=d.activeType)}),Ge("cn_react_save_privacy_consent",c)},z2=(i,c,u)=>Ge("cn_react_privacy_consent_form_status",{source:i,form_id:c,status:u?"1":"0"}),M2=(i={})=>Ge("cn_react_privacy_consent_logs",i,{kind:"read"}),bi=3e4,Xc=(i={})=>{const c=()=>ps("cn_react_save_options",i,{timeout:bi,kind:"options"});return P2.some(u=>u in i)?xi(c,"cn_react_save_options"):c()},F2=()=>Ge("cn_react_reset_options",{},{timeout:bi,kind:"options"}),I2=({global_override:i,global_cookie:c})=>Ge("cn_react_save_network_options",{global_override:i?"1":"",global_cookie:c?"1":""},{timeout:bi,kind:"options"}),O2=()=>Ge("cn_react_plugin_options",{},{timeout:bi,kind:"read"}),U2=()=>Ge("cn_react_dismiss_welcome"),ms=()=>Ge("cn_react_complete_setup_wizard"),B2=i=>Ge("cn_react_save_banner_style",{style:i}),$2=i=>Ge("cn_react_rule_values",{param:i},{kind:"read"}),Jc=(i=[])=>{const c={};return i.forEach((u,d)=>{c[`languages[${d}]`]=u}),Ge("cn_react_apply_languages",c)},gs=(i={},c={},u={})=>{const d={};return Object.entries(i).forEach(([p,h])=>{d[`design[${p}]`]=h}),Object.entries(c).forEach(([p,h])=>{d[`config[${p}]`]=h}),Object.entries(u).forEach(([p,h])=>{d[`consentConfig[${p}]`]=h}),Ge("cn_react_update_design",d)},W2=()=>Ge("cn_react_update_design",{sync_privacy_policy:"1"}),G2=()=>Ge("cn_react_dev_reset"),V2=()=>{const i=window.cnReactData||{},c={};return i.network&&(c.cn_network="1"),gn("sync_config",c,"",i.welcomeNonce||"")},H2=()=>xi(K2,"cn_purge_cache");async function K2(){var p;const i=window.cnReactData||{},c=new FormData;c.append("action","cn_purge_cache"),c.append("nonce",i.purgeNonce||""),i.network&&c.append("cn_network","1");let u,d;try{u=await fetch(i.ajaxURL||"/wp-admin/admin-ajax.php",{method:"POST",credentials:"same-origin",body:c}),d=await u.text()}catch(h){throw Object.assign(h instanceof Error?h:new Error(String(h)),{uncertain:!0,network:!0})}if(!u.ok){const h=`Purge cache failed: ${u.status}`,m=qc(d);throw Qc(m)?fs(((p=m.data)==null?void 0:p.error)||h):tt(h)}}function Y2(i){return i?!!i.app_blocking&&i.app_blocking_engine!==!1:!1}function Ni(i){return!i||typeof i!="object"?null:{engine:i.engine==="new"?"new":"classic",style:i.style==="compact"?"compact":"standard",managed:!!i.managed}}function el(i,c){return!!i&&!!c&&i.engine===c.engine&&i.style===c.style&&i.managed===c.managed}function Si(i){return s(i==="new"?"New engine":"Classic engine","cookie-notice")}function nl(i){return s(i==="compact"?"Compact":"Standard","cookie-notice")}function q2(i){return(i==null?void 0:i.engine)==="new"?je(s("Connected. Your banner: %1$s · %2$s.","cookie-notice"),Si("new"),nl(i.style)):je(s("Connected. Your banner: %s.","cookie-notice"),Si("classic"))}const vs="cn_connected";function Bt(i={}){const c=new URL(window.location.href);c.searchParams.set(vs,"1"),Object.entries(i).forEach(([u,d])=>c.searchParams.set(u,String(d))),c.toString()===window.location.href?window.location.reload():window.location.href=c.toString()}const Q2=300,jt=["app_blocking","app_blocking_engine"],Z2=[...jt,"app_id"],tl=["app_id","app_key"],ol=["conditional_rules","refuse_code","refuse_code_head"];function il(i){return N2+btoa(unescape(encodeURIComponent(i)))}function ko(i){const c={};return Object.entries(i||{}).forEach(([u,d])=>{u==="see_more_opt"&&typeof d=="object"?(c["see_more_opt[text]"]=d.text||"",c["see_more_opt[link_type]"]=d.link_type||"page",c["see_more_opt[id]"]=d.id||0,c["see_more_opt[link]"]=d.link||"",c["see_more_opt[sync]"]=d.sync?"1":""):u==="colors"&&typeof d=="object"?(c.bar_opacity=d.bar_opacity||100,c.color_bar=d.bar||"",c.color_text=d.text||"",c.color_button=d.button||""):u==="conditional_rules"?c[u]=JSON.stringify(d||[]):u==="excluded_handles"?c[u]=Array.isArray(d)?d.join(`41 `):d||"":u==="refuse_code"||u==="refuse_code_head"?c[u]=d||"":typeof d=="boolean"?c[u]=d?"1":"":c[u]=d}),c}function X2(i){return i.startsWith("see_more_opt[")?"see_more_opt":i==="bar_opacity"||i.startsWith("color_")?"colors":i}function rl(i,c,u){const d=m=>m==null?{}:ko({[i]:m}),p=d(c),h=d(u);return Object.keys({...p,...h}).every(m=>String(p[m]??"")===String(h[m]??""))}function J2(i,c){const u={};return c.forEach(d=>{d in i&&(u[d]=i[d])}),u}let ve=null,xo=null,sl=Promise.resolve(),wo=null,Ci=new Set;const Pi=new Map,ys=new Set,jo=new Map;let bo=null,No=0,_s=0,So=!1,Co=!1,ks=0,al=0;const xs=new Set;function Pn(){if(ve)return;const i=window.cnReactData||{},c={...i.options||{}};xo=ko(c),ve={confirmed:c,draft:c,blockingPaused:!!i.blockingPaused,complianceActive:!!i.complianceActive,status:typeof i.status=="string"?i.status:"",networkManaged:!!i.networkOverride,network:!!i.network,manual:0,saving:[],unconfirmed:[],pull:null,statusPull:null,pullSeen:!1,signalsGen:0,banner:Ni(i.banner)||{engine:"classic",style:"standard",managed:!!i.networkOverride},error:null,saved:!1,autoError:null}}function ze(i){const c=ve;ve={...ve,...i},e3(c,ve)&&(ve.signalsGen=c.signalsGen+1),ve.confirmed!==c.confirmed&&window.cnReactData&&(window.cnReactData.options={...ve.confirmed}),ve.blockingPaused!==c.blockingPaused&&window.cnReactData&&(window.cnReactData.blockingPaused=ve.blockingPaused),xs.forEach(u=>u())}function e3(i,c){return i.status!==c.status||i.complianceActive!==c.complianceActive||i.confirmed!==c.confirmed&&Z2.some(u=>!rl(u,i.confirmed[u],c.confirmed[u]))}function bt(){return[...new Set([...Ci,...Pi.keys()])]}function $t(i,c){i.forEach(u=>{const d=(Pi.get(u)||0)+c;d>0?Pi.set(u,d):Pi.delete(u)})}function Li(i){const c=sl.then(i);return sl=c.catch(()=>{}),c}function cl(i){return ze({manual:ve.manual+1}),Li(i).finally(()=>ze({manual:ve.manual-1}))}function Ei(){return{epoch:_s,clean:No===0,sent:++ks}}function ll(i){return!!i&&i.clean&&No===0&&i.epoch===_s}function ul(i,c){if(typeof i!="boolean")return ve.blockingPaused;const u=++ks;return i?(al=u,!0):ve.blockingPaused&&!(c&&c.sent>al)}function Di(i,c,u,d,p,h){i=i&&typeof i=="object"?i:{},xo=p?ko(i):{...xo,...ko(i)};const{draft:m,confirmed:x}=ve,v=p?{}:{...m};Object.keys(p?{...m,...i}:i).forEach(k=>{const _=u===!0||u.includes(k),b=!_&&jo.has(k)&&ys.has(k);rl(k,m[k],_?c[k]:b?jo.get(k):x[k])?k in i?v[k]=i[k]:delete v[k]:v[k]=m[k]}),p?jo.clear():Object.keys(i).forEach(k=>jo.delete(k));const g=Ni(d==null?void 0:d.banner);ze({banner:g&&!el(g,ve.banner)?g:ve.banner,confirmed:p?{...i}:{...x,...i},draft:v,blockingPaused:ul(d==null?void 0:d.blocking_paused,h),complianceActive:typeof(d==null?void 0:d.compliance_active)=="boolean"?d.compliance_active:ve.complianceActive,status:typeof(d==null?void 0:d.status)=="string"?d.status:ve.status,unconfirmed:p?[]:ve.unconfirmed.filter(k=>!(k in i)),pull:ve.pull&&!So&&ll(h)&&jt.every(k=>k in i)?null:ve.pull,statusPull:ve.statusPull&&!Co&&ll(h)&&typeof(d==null?void 0:d.compliance_active)=="boolean"?null:ve.statusPull})}function n3(i){return i.some(c=>tl.includes(c))||tl.some(c=>!ve.confirmed[c]||ve.confirmed[c]==="0")}function dl(i){return So=!0,!i||!n3(i)?{pull:"unknown"}:(Co=!0,{pull:"unknown",statusPull:"unknown"})}function pl(i,c,u){if(!c.length)return{};if(!(i&&i.refused))return c.forEach(h=>jo.set(h,u[h])),ws(),{unconfirmed:[...new Set([...ve.unconfirmed,...c])],...dl(c)};const d=c.filter(h=>ys.has(h)),p={...ve.draft};return d.forEach(h=>{p[h]===u[h]&&(p[h]=ve.confirmed[h])}),{draft:p,autoError:d.length?{keys:d,message:i&&i.message||s("Save failed","cookie-notice")}:ve.autoError}}function ws(){return bo||(bo=Li(async()=>{bo=null;const i=Ei();try{const c=await O2();if(c&&c.options&&typeof c.options=="object")return Di(c.options,ve.draft,[],c,!0,i),!0}catch{}return No===0&&!bo&&(ve.pull&&!So&&ze({pull:"failed"}),ve.statusPull&&!Co&&ze({statusPull:"failed"})),!1})),bo}async function fl(i,c){const u=ve.draft;let d=[];c&&ze({error:null,saved:!1});try{const p=ko(i?J2(u,i):u),h={};if(Object.entries(p).forEach(([x,v])=>{v!==xo[x]&&(h[x]=ol.includes(x)?il(v):v)}),d=[...new Set(Object.keys(h).map(X2))],d.length){$t(d,1),ze({saving:bt()});try{const x=Ei(),v=await Xc(h);Object.keys(h).forEach(g=>{xo[g]=p[g]}),Di(v==null?void 0:v.options,u,d,v,!1,x)}finally{$t(d,-1)}}const m=ve.autoError&&ve.autoError.keys.some(x=>d.includes(x))?null:ve.autoError;return ze({saving:bt(),autoError:m,...c?{saved:!0}:{}}),!0}catch(p){return ze({saving:bt(),...pl(p,d,u),...c?{error:(p==null?void 0:p.message)||s("Save failed","cookie-notice")}:{}}),!1}}function hl(){wo=null;const i=[...Ci];Ci=new Set,$t(i,1),Li(()=>fl(i,!1)).finally(()=>{$t(i,-1),ze({saving:bt()})})}function js(){wo!==null&&(clearTimeout(wo),hl())}function Nt(i){return Pn(),xs.add(i),()=>xs.delete(i)}function Fn(){return Pn(),ve}function t3(i,c){Pn(),ze({draft:{...ve.draft,[i]:c},saved:!1})}function o3(i,c,u){Pn(),ze({draft:{...ve.draft,[i]:{...ve.draft[i]||{},[c]:u}},saved:!1})}function i3(){return Pn(),cl(()=>fl(null,!0))}function r3(i){Pn(),i.forEach(c=>{ys.add(c),Ci.add(c)}),clearTimeout(wo),wo=setTimeout(hl,Q2),ze({saving:bt(),autoError:null})}function s3(){return Pn(),js(),cl(async()=>{ze({error:null,saved:!1});const i=ve.draft;try{const c=Ei(),u=await F2();return Di(u==null?void 0:u.options,i,!0,u,!0,c),ze({autoError:null}),!0}catch(c){return ze({error:(c==null?void 0:c.message)||s("Reset failed","cookie-notice"),...c!=null&&c.refused?{}:dl()}),c!=null&&c.refused||ws(),!1}})}function ml(i){Pn(),js();const c=Object.keys(i);return Li(async()=>{const u=ve.draft,d={};Object.entries(i).forEach(([p,h])=>{d[p]=ol.includes(p)?il(h):h}),$t(c,1),ze({saving:bt()});try{const p=Ei(),h=await Xc(d);return Di(h==null?void 0:h.options,u,c,h,!1,p),h}catch(p){throw ze(pl(p,c,u)),p}finally{$t(c,-1),ze({saving:bt()})}})}function a3(){return Pn(),js(),ws()}async function c3(i,c){Pn();const u={sent:++ks},d=await i(),p=ul(c(d),u);return p!==ve.blockingPaused&&ze({blockingPaused:p}),d}L2({start(){Pn(),No++,_s++,ze({pull:So?"unknown":"checking",statusPull:Co?"unknown":"checking",pullSeen:!0})},reply(i){const c=Ni(i==null?void 0:i.banner);c&&!el(c,ve.banner)&&ze({banner:c})},settle(i,c){No--,i&&(So=Co=!0,ze({pull:"unknown",statusPull:"unknown"})),c!==Yc&&ze({signalsGen:ve.signalsGen+1}),a3()}});function Po(i){return i.network&&!i.confirmed.global_override}function gl(i){return i.networkManaged?"networkManaged":Po(i)?"perSite":i.complianceActive?i.pull||jt.some(c=>i.unconfirmed.includes(c))?"unconfirmed":i.blockingPaused?"paused":jt.some(c=>i.saving.includes(c))?"saving":Y2(i.confirmed)?"active":"off":"inactive"}function l3(i){return i.networkManaged?"networkManaged":Po(i)?"perSite":i.complianceActive?!i.pullSeen||i.statusPull?"unconfirmed":"live":"inactive"}function vl(i,c){const[u,d]=w.useState(null),[p,h]=w.useState(!0),[m,x]=w.useState(null),v=w.useRef(null),g=w.useCallback(async()=>{if(v.current){d(v.current),h(!1);return}h(!0),x(null);try{const _=await i(c);v.current=_,d(_)}catch(_){x(_.message||"An error occurred")}finally{h(!1)}},[i,c]);w.useEffect(()=>{g()},[g]);const k=w.useCallback(()=>{v.current=null,g()},[g]);return{data:u,loading:p,error:m,refetch:k}}const u3=async()=>{const i=Fn().signalsGen,c=await c3(E2,u=>{var d;return(d=u==null?void 0:u.analytics)==null?void 0:d.thresholdExceeded});return c&&typeof c=="object"&&yl.set(c,i),c},yl=new WeakMap;function d3(i){return i&&typeof i=="object"?yl.get(i):void 0}function p3(){return w.useSyncExternalStore(Nt,Fn).signalsGen}function f3(){return vl(u3)}function h3(){return vl(D2)}function m3(){const i=w.useSyncExternalStore(Nt,Fn);return{options:i.draft,confirmed:i.confirmed,update:t3,updateNested:o3,save:i3,scheduleSave:r3,reset:s3,loading:i.manual>0,error:i.error,saved:i.saved,blockingPaused:i.blockingPaused,blockingState:gl(i),networkManaged:i.networkManaged,perSite:Po(i),savingKeys:i.saving,unconfirmedKeys:i.pull?[...new Set([...i.unconfirmed,...jt])]:i.unconfirmed,checkingKeys:i.pull==="checking"?jt:_l,pullUnknownKeys:i.pull==="unknown"?jt:_l,autoSaveError:i.autoError}}const _l=[];function kl(){return w.useSyncExternalStore(Nt,Fn).blockingPaused}function bs(){const i=w.useSyncExternalStore(Nt,Fn),c=gl(i);return c!=="unconfirmed"?c:i.pull==="checking"?"checking":i.pull==="unknown"?"pullUnknown":c}function Lo(){const i=w.useSyncExternalStore(Nt,Fn),c=l3(i);return c==="inactive"?i.status==="pending"?"pending":c:c==="unconfirmed"&&(!i.pullSeen||i.statusPull==="checking")?"checking":c}function Ti(){return w.useSyncExternalStore(Nt,Fn).banner}function Ai(){return Po(w.useSyncExternalStore(Nt,Fn))}function g3(){const[i,c]=w.useState(!1),[u,d]=w.useState(null);return{exportCsv:w.useCallback(async h=>{c(!0),d(null);try{const m=await A2(h);if(m.inactive)return d(s("Consent logs can be exported once Cookie Compliance is active.","cookie-notice")),m;if(m.csv){const x=new Blob([m.csv],{type:"text/csv;charset=utf-8;"}),v=URL.createObjectURL(x),g=document.createElement("a");g.href=v,g.download=`consent-logs-${h.start_date||"export"}.csv`,g.click(),URL.revokeObjectURL(v)}return m}catch(m){throw d(m.message||"Export failed"),m}finally{c(!1)}},[]),loading:i,error:u}}const sn=((h1=window.cnReactData)==null?void 0:h1.appUrl)||"https://app.hu-manity.co",xl={gdpr:"GDPR",ccpa:"CCPA",otherus:"US State Laws",ukpecr:"UK PECR",lgpd:"LGPD",pipeda:"PIPEDA",popia:"POPIA"},wl={GDPR:{flag:"🇪🇺",geo:"EU"},CCPA:{flag:"🇺🇸",geo:"US"},"US State Laws":{flag:"🇺🇸",geo:"US"},"UK PECR":{flag:"🇬🇧",geo:"UK"},LGPD:{flag:"🇧🇷",geo:"Brazil"},PIPEDA:{flag:"🇨🇦",geo:"Canada"},POPIA:{flag:"🇿🇦",geo:"South Africa"}};function jl(i){return i?Object.entries(i).filter(([,c])=>!!c).map(([c])=>c):[]}function In({children:i,sidebar:c}){return t.jsxs("div",{className:"cn-page-layout",children:[t.jsx("div",{className:"cn-main",children:i}),c&&t.jsx("div",{className:"cn-sidebar",children:c})]})}function On({title:i,children:c}){return t.jsxs("div",{className:"cn-side-card",children:[i&&t.jsx("h3",{children:i}),c]})}function Ue({variant:i="primary",size:c="md",children:u,...d}){return t.jsx("button",{className:`cn-button cn-button--${i} cn-button--${c}`,type:"button",...d,children:u})}function Ce({label:i,type:c="text",value:u,onChange:d,placeholder:p,options:h,error:m,helper:x,required:v,children:g,...k}){const _=k.id||`cn-field-${i==null?void 0:i.toLowerCase().replace(/\s+/g,"-")}`,b=()=>c==="textarea"?t.jsx("textarea",{id:_,className:`cn-form-field__input cn-form-field__textarea${m?" cn-form-field__input--error":""}`,value:u,onChange:A=>d==null?void 0:d(A.target.value),placeholder:p,...k}):c==="select"?t.jsx("select",{id:_,className:`cn-form-field__input cn-form-field__select${m?" cn-form-field__input--error":""}`,value:u,onChange:A=>d==null?void 0:d(A.target.value),...k,children:h==null?void 0:h.map(A=>t.jsx("option",{value:A.value,children:A.label},A.value))}):t.jsx("input",{id:_,type:c,className:`cn-form-field__input${m?" cn-form-field__input--error":""}`,value:u,onChange:A=>d==null?void 0:d(A.target.value),placeholder:p,...k});return t.jsxs("div",{className:"cn-form-field",children:[i&&t.jsxs("label",{className:"cn-form-field__label",htmlFor:_,children:[i,v&&t.jsx("span",{className:"cn-form-field__req",children:"*"})]}),g||b(),m&&t.jsx("div",{className:"cn-form-field__error",children:m}),x&&!m&&t.jsx("div",{className:"cn-form-field__helper",children:x})]})}function Ns(){return t.jsx("p",{className:"cn-conn-hint cn-conn-hint--returning",children:s("Signed up with Google? Copy your App ID and App Secret Key from the Admin Portal.","cookie-notice")})}function Un(){return t.jsx("span",{className:"cn-pro-badge",children:"PRO"})}const bl={banner_only:0,free:1,pro:2};function Ss({requiredTier:i="pro",children:c,message:u,onCta:d}){const{tier:p}=Ze();if(bl[p]>=bl[i])return c;const m=i==="free"?"Connect to Cookie Compliance to unlock this feature.":"Upgrade to Cookie Compliance Pro to unlock this feature.",x=i==="free"?"Connect Your Site":"Upgrade Now",v=d?t.jsx("button",{type:"button",onClick:d,className:`cn-button cn-button--${i==="free"?"primary":"upgrade"}`,children:x}):t.jsx("a",{href:i==="free"?"#":"https://cookie-compliance.co/pricing/",className:`cn-button cn-button--${i==="free"?"primary":"upgrade"}`,target:i==="pro"?"_blank":void 0,rel:i==="pro"?"noopener noreferrer":void 0,children:x});return t.jsxs("div",{className:"cn-tier-gate",children:[t.jsx("div",{className:"cn-tier-gate__content",children:c}),t.jsx("div",{className:"cn-tier-gate__overlay",children:t.jsxs("div",{className:"cn-tier-gate__cta",children:[i==="pro"&&t.jsx(Un,{}),t.jsx("p",{children:u||m}),!Re()&&v]})})]})}function Wt({showPortalLink:i=!0,addNotice:c}){var X,q,W,ne,le,he;const{isPro:u,isConnected:d}=Ze(),{dashboard:p}=Mn(),h=((X=window.cnReactData)==null?void 0:X.lastSynced)||"",[m,x]=w.useState(!1),[v,g]=w.useState(null),[k,_]=w.useState(((W=(q=window.cnReactData)==null?void 0:q.options)==null?void 0:W.app_id)||""),[b,A]=w.useState(((le=(ne=window.cnReactData)==null?void 0:ne.options)==null?void 0:le.app_key)||""),[C,D]=w.useState(!1),[P,E]=w.useState(""),I=!!((he=window.cnReactData)!=null&&he.networkOverride),R=Lo(),O=Ai(),te=p!=null&&p.domainUrl?(()=>{try{return new URL(p.domainUrl).hostname}catch{return window.location.hostname}})():window.location.hostname,J=async()=>{x(!0),g(null);try{await V2(),g("success"),c&&c(s("Configuration synced. Reloading…","cookie-notice"),"success"),setTimeout(()=>window.location.reload(),800)}catch(M){g("error"),c&&c(M.message||s("Sync failed. Please try again.","cookie-notice"),"error"),x(!1)}},B=async()=>{D(!0),E("");try{await ml({app_id:k,app_key:b});try{const M=await gn("sync_config");if(M!=null&&M.success){try{await ms()}catch{}try{localStorage.setItem(ls(k),"1"),localStorage.setItem(us(k),"1")}catch{}}}catch{}k?Bt():window.location.reload()}catch(M){E(M.message||s("Save failed","cookie-notice")),D(!1)}};return t.jsxs(On,{title:s("Domain Info","cookie-notice"),children:[t.jsxs("div",{className:"cn-dom-rows",children:[t.jsxs("div",{className:"cn-dom-row",children:[t.jsx("span",{className:"cn-dom-row__k",children:s("Domain","cookie-notice")}),t.jsx("span",{className:"cn-dom-row__v",children:te})]}),t.jsxs("div",{className:"cn-dom-row",children:[t.jsx("span",{className:"cn-dom-row__k",children:s("Protection","cookie-notice")}),t.jsx("span",{className:"cn-dom-row__v",children:I?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"cn-dot cn-dot--gray"})," ",s("Managed by network","cookie-notice")]}):d?R==="live"?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"cn-dot cn-dot--green"})," ",s("Active","cookie-notice")]}):t.jsxs(t.Fragment,{children:[t.jsx("span",{className:`cn-dot cn-dot--${R==="pending"?"yellow":"gray"}`})," ",O?ts(R):os(R)]}):t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"cn-dot cn-dot--gray"})," ",s("Not connected","cookie-notice")]})})]}),t.jsxs("div",{className:"cn-dom-row",children:[t.jsx("span",{className:"cn-dom-row__k",children:s("Plan","cookie-notice")}),t.jsx("span",{className:"cn-dom-row__v",children:u?t.jsxs(t.Fragment,{children:[s("Pro","cookie-notice")," ",t.jsx(Un,{})]}):s("Free Plan","cookie-notice")})]})]}),!I&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"cn-dom-credentials",children:[t.jsx(Ce,{label:s("App ID","cookie-notice"),value:k,onChange:_,placeholder:s("Your application ID","cookie-notice"),autoComplete:"off"}),t.jsx(Ce,{label:s("App Secret Key","cookie-notice"),type:"password",value:b,onChange:A,placeholder:s("Your App Secret Key","cookie-notice"),autoComplete:"new-password"}),t.jsx(Ns,{}),P&&t.jsx("div",{className:"cn-conn-error",children:P}),t.jsx(Ue,{variant:"primary",onClick:B,disabled:C,children:s(C?"Saving…":"Save and Connect","cookie-notice")})]}),t.jsxs("div",{className:"cn-pull-config",children:[t.jsxs("div",{className:`cn-pull-config__row${O?" cn-network-managed":""}`,inert:O?"":void 0,children:[t.jsx(Ue,{variant:"secondary",onClick:J,disabled:m||O,children:s(m?"Syncing…":"Pull latest settings","cookie-notice")}),t.jsx("span",{className:"cn-pull-config__timestamp",children:h?je(s("Last synced (UTC): %s","cookie-notice"),h):s("Not synced yet","cookie-notice")})]}),O&&t.jsx("p",{className:"cn-pull-config__desc",children:ns()}),!O&&v==="error"&&t.jsx("p",{className:"cn-pull-config__desc cn-pull-config__desc--error",children:s("Sync failed. Please try again.","cookie-notice")}),!O&&!v&&t.jsx("p",{className:"cn-pull-config__desc",children:s("Manually pull the latest configuration including autoblocking. Also syncs automatically twice a day.","cookie-notice")})]})]}),i&&u&&!I&&t.jsxs("a",{className:"cn-dom-link",href:`${sn}/#/configuration`,target:"_blank",rel:"noopener noreferrer",children:[s("Open Admin Portal","cookie-notice")," →"]})]})}function v3({onActivate:i}){return t.jsxs("div",{className:"cn-score-hero",children:[t.jsx("div",{className:"cn-score-hero__icon","aria-hidden":"true",children:t.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[t.jsx("circle",{cx:"12",cy:"12",r:"10"}),t.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),t.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})}),t.jsxs("div",{className:"cn-score-hero__body",children:[t.jsx("div",{className:"cn-score-hero__title",children:s("You have a banner. Not compliance.","cookie-notice")}),t.jsx("div",{className:"cn-score-hero__summary",children:s("A banner tells visitors about cookies. Compliance actually enforces the law.","cookie-notice")}),t.jsx("div",{className:"cn-score-hero__sub",children:s("Free · Takes 60 seconds · No credit card","cookie-notice")})]}),t.jsx("div",{className:"cn-score-hero__actions",children:t.jsxs("button",{type:"button",className:"cn-score-hero__cta",onClick:i,children:[s("Connect Your Site","cookie-notice")," →"]})})]})}const y3=["active","off","paused","inactive"];function Nl(i){return!!i&&i.status!=="crit"&&!i.value_cls}function _3(i,c,u=null,d=!0){var E,I;const p=bs(),h=p3(),[m,x]=w.useState(null),[v,g]=w.useState(null),k=y3.includes(p),_=!!i&&(m==null?void 0:m.dashboard)===i,b=d3(i)===h,A=(I=(E=i==null?void 0:i.scorecard)==null?void 0:E.boxes)==null?void 0:I.find(R=>R.key==="blocking"),C=!(i!=null&&i.scorecard)||Nl(A)===(p==="active"),D=k&&_&&m.state===p&&b&&C,P=`${h}:${p}`;return w.useEffect(()=>{if(!(!i||!k)){if(!_){x({dashboard:i,state:p});return}if(D){v!==null&&g(null);return}d&&v!==P&&(g(P),c())}},[i,k,_,D,p,P,v,c,d]),i?k?D?"fresh":!_||v!==P?"updating":"unconfirmed":"pending":u?"failed":"loading"}const k3=["ok","warn","crit","neutral"],x3=i=>({saving:s("Saving…","cookie-notice"),checking:s("Checking…","cookie-notice")})[i]||s("Not confirmed","cookie-notice"),Sl=i=>({saving:s("Saving autoblocking…","cookie-notice"),checking:s("Checking the saved autoblocking setting…","cookie-notice"),pullUnknown:s("Not confirmed — reload the page to see the saved autoblocking setting.","cookie-notice")})[i]||s("Not confirmed — reload to see the saved value","cookie-notice");function w3(i,c){return i==="loading"?s("Loading your status…","cookie-notice"):i==="failed"?s("Your status could not be loaded. Reload the page to try again.","cookie-notice"):i==="pending"?Sl(c):s(i==="updating"?"Updating your status…":"Not confirmed — reload the page to see your current status.","cookie-notice")}function j3(i,{fresh:c,blockingState:u,widgetState:d,banner:p}){let h=i;if(h.key==="banner"&&d!=="live")h={key:h.key,title:h.title,status:"off",value:ts(d),sub:os(d)};else if(h.key==="banner"){const m=p.engine!=="new"?Si(p.engine):p.style==="compact"?s("Compact banner","cookie-notice"):s("Standard banner","cookie-notice");h={...h,sub:m}}else h.key==="blocking"&&!c&&(h={key:h.key,title:h.title,status:"off",value:x3(u),sub:Sl(u),pending:!0});return!c&&h.status==="ok"&&(h={...h,status:"off",value_cls:"off",pill:null,bar:h.bar&&{...h.bar,cls:"off"}}),h}function b3(i,c){if(i.key==="banner")return c.widgetState==="checking"?null:{label:s("Banner settings","cookie-notice"),run:c.actions.banner};if(i.status==="ok"||i.pending)return null;const u=!c.isPro&&c.actions.pricing?{label:s("See plans","cookie-notice"),run:c.actions.pricing}:null,d={label:s("Consent signals","cookie-notice"),run:c.actions.signals},p={label:s("Review autoblocking","cookie-notice"),run:c.actions.autoblocking};switch(i.key){case"blocking":return c.quota||!c.isPro&&Nl(i)?u:p;case"google":return d;case"metams":return c.isPro?d:u;case"gpc":return c.quota?u:{label:s("Review GPC setting","cookie-notice"),run:c.actions.autoblocking};case"visits":return i.status==="warn"||i.status==="crit"?u:null;default:return null}}function N3({b:i,fix:c,previewUrl:u}){const d=i.value_cls||i.status;return t.jsxs("div",{className:`cn-card cn-ov-box${i.status==="crit"?" cn-card--crit":i.status==="warn"?" cn-card--warn":""}`,"data-ov-box":i.key,"data-status":i.status,children:[t.jsxs("div",{className:"cn-card__top",children:[t.jsx("div",{className:"cn-ov-box__title",children:i.title}),t.jsx("div",{className:`cn-card__dot cn-card__dot--${i.status}`})]}),t.jsx("div",{className:`cn-card__main cn-card__main--${d}`,children:i.value}),i.sub&&t.jsx("div",{className:"cn-card__sub",children:i.sub}),i.bar&&t.jsx("div",{className:"cn-card__bar-wrap",children:t.jsx("div",{className:`cn-card__bar-fill cn-card__bar-fill--${i.bar.cls}`,style:{width:`${Math.max(0,Math.min(100,i.bar.pct))}%`}})}),i.pill&&t.jsx("div",{className:"cn-card__pills",children:t.jsx("span",{className:`cn-card__pill cn-card__pill--${i.pill.cls}`,children:i.pill.label})}),(c||u)&&t.jsxs("div",{className:"cn-card__foot",children:[c&&c.run&&t.jsxs("button",{type:"button",className:"cn-ov-box__fix",onClick:()=>c.run(),children:[c.label," →"]}),u&&t.jsxs("a",{href:u,target:"_blank",rel:"noreferrer",children:[s("Preview on my site","cookie-notice")," ↗"]}),u&&t.jsxs("details",{className:"cn-card__help",children:[t.jsx("summary",{children:s("Can't see your banner?","cookie-notice")}),t.jsx("p",{children:s("Can't see your banner on your own site? That's often normal. It stays hidden when your browser sends Global Privacy Control, when your visitor's region doesn't require a banner, or when you've already made a choice. Preview shows it anyway. Nothing is saved.","cookie-notice")})]})]})]})}function S3({scorecard:i,status:c,blockingState:u,widgetState:d,isPro:p,siteUrl:h,actions:m}){const x=Ti(),v=c==="fresh"&&!!i,g=(i==null?void 0:i.hero)||{},k=v&&k3.includes(g.hero_cls)?g.hero_cls:"neutral",_=v&&i.state!=="no_laws"&&Number(i.gaps)||0,b={fresh:v,blockingState:u,widgetState:d,isPro:p,actions:m,banner:x,quota:(i==null?void 0:i.state)==="free_over"||u==="paused"};return t.jsxs(t.Fragment,{children:[t.jsx("section",{className:`cn-ov-verdict cn-ov-verdict--${k}`,"data-verdict":v?k:"pending","data-state":v?i.state:void 0,"aria-live":"polite",children:v?t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"cn-ov-verdict__top",children:[t.jsx("span",{className:"cn-ov-verdict__grade",children:g.grade}),_>0?t.jsx("span",{className:"cn-ov-verdict__count",children:je(yo("%d thing to fix","%d things to fix",_,"cookie-notice"),_)}):g.gap_label&&t.jsx("span",{className:"cn-ov-verdict__gap",children:g.gap_label})]}),g.intro&&t.jsx("p",{className:"cn-ov-verdict__intro",children:g.intro}),g.note&&t.jsx("p",{className:"cn-ov-verdict__note",children:g.note})]}):t.jsx("div",{className:"cn-ov-verdict__top",children:t.jsx("span",{className:"cn-ov-verdict__grade",children:w3(c,u)})})}),i&&Array.isArray(i.boxes)&&t.jsx("div",{className:"cn-card-grid cn-card-grid--3 cn-ov-boxes",children:i.boxes.map(A=>{const C=j3(A,b);return t.jsx(N3,{b:C,fix:b3(C,b),previewUrl:C.key==="banner"&&h?`${h}?cn_preview=1`:""},C.key)})})]})}const Cs=i=>Number(i||0).toLocaleString();function C3({dashboard:i,isFree:c,onOpenConsentLogs:u}){var k;const d=i==null?void 0:i.consents7d;if(!d)return null;const p=((k=i==null?void 0:i.analytics)==null?void 0:k.cycleUsage)||{},h=Number(p.threshold)||0,m=Number(d.total)||0,x=d.levelLabels||{},v=String((i==null?void 0:i.analyticsFetchedAt)||"").trim(),g=[["accept",x.level3,d.acceptRate],["custom",x.level2,d.customRate],["reject",x.level1,d.rejectRate]];return t.jsxs("section",{className:"cn-ov-numbers","aria-label":s("Numbers","cookie-notice"),children:[c&&h>0&&t.jsxs("div",{className:"cn-ov-stat","data-stat":"visits",children:[t.jsxs("span",{className:"cn-ov-stat__v",children:[Cs(p.visits)," / ",Cs(h)]}),t.jsx("span",{className:"cn-ov-stat__k",children:s("visits this cycle","cookie-notice")})]}),t.jsx("div",{className:"cn-ov-stat","data-stat":"consents",children:m>0?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"cn-ov-stat__v",children:Cs(m)}),t.jsx("span",{className:"cn-ov-stat__k",children:yo("consent in the last 7 days","consents in the last 7 days",m,"cookie-notice")}),t.jsx("span",{className:"cn-ov-stat__split",children:g.map(([_,b,A])=>t.jsxs("span",{className:`cn-ov-stat__part cn-ov-stat__part--${_}`,"data-part":_,children:[b," ",t.jsxs("strong",{children:[Number(A)||0,"%"]})]},_))})]}):t.jsx("span",{className:"cn-ov-stat__k",children:s("No consents recorded in the last 7 days","cookie-notice")})}),t.jsxs("div",{className:"cn-ov-numbers__foot",children:[v&&t.jsx("span",{className:"cn-ov-numbers__fetched","data-stat":"fetched",children:je(s("Last fetched %s UTC","cookie-notice"),v.slice(0,16))}),u&&t.jsxs("button",{type:"button",className:"cn-layer__link-btn",onClick:()=>u(),children:[s("View consent logs","cookie-notice")," →"]})]})]})}function Cl(i={}){const c=i.google_consent_default,u=i.facebook_consent_default,d=i.microsoft_consent_default;return{google:!!c&&Object.keys(c).length>0,facebook:!!u&&Object.keys(u).length>0,microsoft:!!d&&Object.keys(d).length>0,gpc:!!i.gpc_support,dnt:!!i.do_not_track}}function P3({noLaws:i,isPro:c,managed:u,onOpenLaws:d,onOpenSignals:p,onOpenPricing:h,onOpenPrivacy:m}){var D;const{config:x}=wt(),[v,g]=w.useState([]);w.useEffect(()=>{if(u)return;let P=!0;return hs().then(E=>{P&&g(((E==null?void 0:E.sources)||[]).filter(I=>I.availability&&!I.active).map(I=>I.name))}).catch(()=>{}),()=>{P=!1}},[u]);const k=((D=window.cnReactData)==null?void 0:D.detectedPlugins)||[],_=Cl((x==null?void 0:x.blocking)||{}),b=h?{action:s("See plans","cookie-notice"),run:h}:null,A={action:s("Review consent signals","cookie-notice"),run:p},C=[];return i&&C.push({key:"laws",text:s("Choose the privacy laws your site follows, so the banner asks the right visitors the right way.","cookie-notice"),action:s("Choose laws","cookie-notice"),run:d}),k.includes("google")&&!_.google&&C.push({key:"google",text:s("Google tools detected. Google Consent Mode is off.","cookie-notice"),...A}),k.includes("facebook")&&!_.facebook&&C.push(c?{key:"facebook",text:s("Facebook Pixel detected. Facebook consent signals are off.","cookie-notice"),...A}:{key:"facebook",text:s("Facebook Pixel detected. Facebook consent signals need the Pro plan.","cookie-notice"),...b}),k.includes("microsoft")&&!_.microsoft&&C.push(c?{key:"microsoft",text:s("Microsoft Clarity detected. Microsoft consent signals are off.","cookie-notice"),...A}:{key:"microsoft",text:s("Microsoft Clarity detected. Microsoft consent signals need the Pro plan.","cookie-notice"),...b}),v.length>0&&C.push({key:"forms",text:je(s("These form plugins are not recording proof of consent yet: %s.","cookie-notice"),v.join(", ")),action:s("Open Privacy Consent","cookie-notice"),run:m}),C.length===0?null:t.jsxs("section",{className:"cn-ov-steps","aria-labelledby":"cn-ov-steps-title",children:[t.jsx("h2",{id:"cn-ov-steps-title",className:"cn-ov-steps__title",children:s("Next steps","cookie-notice")}),t.jsx("ul",{className:"cn-ov-steps__list",children:C.map(P=>t.jsxs("li",{className:"cn-ov-steps__item","data-step":P.key,children:[t.jsx("span",{className:"cn-ov-steps__text",children:P.text}),P.run&&t.jsxs("button",{type:"button",className:"cn-layer__link-btn",onClick:()=>P.run(),children:[P.action," →"]})]},P.key))})]})}const L3=()=>[{key:"standard",desc:s("Heading, description and the full set of consent levels.","cookie-notice")},{key:"compact",desc:s("Leaves out the Balanced level; every category is still under Customize. One slim row when the banner is fixed to the top or bottom of a wide screen.","cookie-notice")}];function Pl({name:i,labelledBy:c}){const u=Ti(),[d,p]=w.useState(null),[h,m]=w.useState(""),[x,v]=w.useState(!1);w.useEffect(()=>{v(!1)},[u.engine,u.style]);const g=u.engine==="new",k=g&&!u.managed,_=d||(g?u.style:null),b=async C=>{var D;if(!(!k||d||C===u.style)){p(C),m(""),v(!1);try{const P=Ni((D=await B2(C))==null?void 0:D.banner);v(!!P&&P.engine==="new"&&P.style!==C)}catch(P){m((P==null?void 0:P.message)||s("The banner style could not be saved. Please try again.","cookie-notice"))}finally{p(null)}}},A=s(d?"Saving…":g?x?"Saved. It will show here after the next sync.":"Both styles offer the same choices, including reject.":"Available once this site is on the New engine.","cookie-notice");return t.jsxs("div",{className:"cn-style-cards",children:[t.jsx("div",{className:`cn-style-cards__group${k?"":" cn-style-cards__group--readonly"}${g?"":" cn-style-cards__group--locked"}${d?" cn-style-cards__group--saving":""}`,role:"radiogroup","aria-labelledby":c,"aria-busy":d?"true":void 0,children:L3().map(C=>t.jsxs("label",{className:`cn-style-cards__card${_===C.key?" cn-style-cards__card--checked":""}`,children:[t.jsx("input",{type:"radio",name:i,value:C.key,checked:_===C.key,disabled:!k,onChange:()=>b(C.key)}),t.jsx("span",{className:"cn-style-cards__name",children:nl(C.key)}),t.jsx("span",{className:"cn-style-cards__desc",children:C.desc})]},C.key))}),t.jsx("span",{className:"cn-style-cards__note","aria-live":"polite",children:A}),h&&t.jsx("div",{className:"cn-style-cards__error",role:"alert",children:h})]})}const be={container:"_container_nva6m_2",grid:"_grid_nva6m_8",card:"_card_nva6m_16",cardSelected:"_cardSelected_nva6m_32",geoArt:"_geoArt_nva6m_38",lawName:"_lawName_nva6m_47",jurisdiction:"_jurisdiction_nva6m_54",hiddenCheckbox:"_hiddenCheckbox_nva6m_60",checkmark:"_checkmark_nva6m_72",autoBadge:"_autoBadge_nva6m_88",detail:"_detail_nva6m_102",detailHeader:"_detailHeader_nva6m_112",detailTitle:"_detailTitle_nva6m_119",detailJurisdiction:"_detailJurisdiction_nva6m_125",detailClose:"_detailClose_nva6m_131",detailSection:"_detailSection_nva6m_144",detailSectionLabel:"_detailSectionLabel_nva6m_148",detailOverview:"_detailOverview_nva6m_157",detailList:"_detailList_nva6m_163",detailListItem:"_detailListItem_nva6m_172",detailEnforcement:"_detailEnforcement_nva6m_188",detailEmpty:"_detailEmpty_nva6m_197",detailEmptyArrow:"_detailEmptyArrow_nva6m_208",detailEmptyText:"_detailEmptyText_nva6m_215",detailDnsHelp:"_detailDnsHelp_nva6m_222",dnsInput:"_dnsInput_nva6m_263"},Ps=()=>[{key:"gdpr",name:s("GDPR","cookie-notice"),jurisdiction:s("European Union","cookie-notice"),description:s("General Data Protection Regulation","cookie-notice"),locales:["de","fr","it","es","nl","pl","pt","sv","el","de_DE","fr_FR","it_IT","es_ES","nl_NL","pl_PL","pt_PT","sv_SE","el_GR","da_DK","fi","ro_RO","bg_BG","cs_CZ","et","hr","hu_HU","lt_LT","lv","sk_SK","sl_SI"],overview:s("The EU’s gold standard for data privacy. Applies to any site with visitors from the 27 EU member states — regardless of where your business is based.","cookie-notice"),requirements:[s("Prior, informed consent before any non-essential cookies","cookie-notice"),s("Clear opt-out that’s as easy as opting in","cookie-notice"),s("Right to erasure (‘be forgotten’) on request","cookie-notice"),s("Data processing records & DPO for large processors","cookie-notice")],product:[s("Consent banner with granular category controls","cookie-notice"),s("Consent proof stored per visitor","cookie-notice"),s("GDPR-mode autoblocking holds scripts until consent","cookie-notice")],enforcement:s("Fines up to €20M or 4% of global annual revenue. Enforced by national DPAs.","cookie-notice")},{key:"ccpa",name:s("CCPA / CPRA","cookie-notice"),jurisdiction:s("California, USA","cookie-notice"),description:s("California Consumer Privacy Act","cookie-notice"),locales:["en_US"],overview:s("California’s comprehensive privacy law, upgraded by CPRA in 2023. If you serve California residents, it applies — even if you’re outside the US.","cookie-notice"),requirements:[s("Opt-out of sale or sharing of personal data","cookie-notice"),s("Honor Global Privacy Control (GPC) signals automatically","cookie-notice"),s("Annual privacy policy updates","cookie-notice"),s("Right to know, delete, and correct personal data","cookie-notice")],product:[s("GPC signal detection and automatic opt-out (Pro plan)","cookie-notice"),s("Do Not Sell link insertion","cookie-notice"),s("Consent-mode compatible analytics opt-out","cookie-notice")],enforcement:s("Fines up to $7,500 per intentional violation. Enforced by the California Privacy Protection Agency.","cookie-notice")},{key:"otherus",name:s("US State Laws","cookie-notice"),jurisdiction:s("United States","cookie-notice"),description:s("Virginia, Colorado, Connecticut, and more","cookie-notice"),locales:["en_US"],overview:s("Virginia, Colorado, Connecticut, Utah, Montana, Texas, Oregon, and more have passed comprehensive privacy laws. The landscape is evolving fast.","cookie-notice"),requirements:[s("Consent for sensitive data processing","cookie-notice"),s("Universal opt-out mechanism support (like GPC)","cookie-notice"),s("Right to access, correct, delete, and opt out of targeted advertising","cookie-notice"),s("Data protection assessments for high-risk processing","cookie-notice")],product:[s("Automatic US-state privacy-law consent banner","cookie-notice"),s("Opt-out of targeted advertising and Do-Not-Sell signaling","cookie-notice"),s("Universal Opt-Out (GPC) honoring on Pro plans","cookie-notice")],enforcement:s("Fines from $7,500–$20,000 per violation depending on state. Enforced by state attorneys general.","cookie-notice")},{key:"ukpecr",name:s("UK PECR","cookie-notice"),jurisdiction:s("United Kingdom","cookie-notice"),description:s("Privacy and Electronic Communications Regulations","cookie-notice"),locales:["en_GB"],overview:s("The UK’s post-Brexit equivalent to GDPR’s cookie rules. Applies to any site with UK visitors. Enforced by the ICO, which has been increasingly active.","cookie-notice"),requirements:[s("Prior consent for analytics and marketing cookies","cookie-notice"),s("Clear information about what cookies do","cookie-notice"),s("Easy withdrawal of consent","cookie-notice"),s("Legitimate interest cannot be used for tracking cookies","cookie-notice")],product:[s("UK-specific consent banner variant","cookie-notice"),s("ICO-compliant consent language","cookie-notice"),s("Consent proof storage","cookie-notice")],enforcement:s("Fines up to £17.5M or 4% of global turnover. Enforced by the ICO.","cookie-notice")},{key:"lgpd",name:s("LGPD","cookie-notice"),jurisdiction:s("Brazil","cookie-notice"),description:s("Lei Geral de Proteção de Dados","cookie-notice"),locales:["pt_BR"],overview:s("Brazil’s General Data Protection Law covers 214 million people. Modeled on GDPR, it requires a lawful basis for processing and strong user rights.","cookie-notice"),requirements:[s("Valid lawful basis for each data processing activity","cookie-notice"),s("Clear, granular consent for non-essential cookies","cookie-notice"),s("Right to access, correct, delete, and revoke consent","cookie-notice"),s("Report breaches within 2 business days","cookie-notice")],product:[s("LGPD-mode consent banner with Portuguese language support","cookie-notice"),s("Consent revocation flow","cookie-notice"),s("Breach-ready consent audit trail","cookie-notice")],enforcement:s("Fines up to 2% of Brazil revenue, capped at R$50M per violation. Enforced by the ANPD.","cookie-notice")},{key:"pipeda",name:s("PIPEDA","cookie-notice"),jurisdiction:s("Canada","cookie-notice"),description:s("Personal Information Protection and Electronic Documents Act","cookie-notice"),locales:["en_CA","fr_CA"],overview:s("Canada’s federal privacy law. Bill C-27 (CPPA) reform is underway and will bring requirements closer to GDPR. Applies to commercial activity across Canada.","cookie-notice"),requirements:[s("Express consent for collection, use, and disclosure of personal data","cookie-notice"),s("Privacy policy clearly explaining data use","cookie-notice"),s("Individual access and correction rights","cookie-notice"),s("Breach reporting to the Privacy Commissioner","cookie-notice")],product:[s("PIPEDA-compliant consent banner","cookie-notice"),s("English + French bilingual support","cookie-notice"),s("Consent records with timestamps","cookie-notice")],enforcement:s("Fines up to CAD $100,000. Enforced by the Office of the Privacy Commissioner of Canada.","cookie-notice")},{key:"popia",name:s("POPIA","cookie-notice"),jurisdiction:s("South Africa","cookie-notice"),description:s("Protection of Personal Information Act","cookie-notice"),locales:["af_ZA"],overview:s("South Africa’s Protection of Personal Information Act took full effect in 2021. Applies to any business processing data about South African residents.","cookie-notice"),requirements:[s("Lawful basis for all personal information processing","cookie-notice"),s("Consent for direct marketing and cookie use","cookie-notice"),s("Data subject rights: access, correction, deletion","cookie-notice"),s("Appoint an Information Officer","cookie-notice")],product:[s("POPIA-compliant consent banner","cookie-notice"),s("Afrikaans language support","cookie-notice"),s("Consent audit trail","cookie-notice")],enforcement:s("Fines up to ZAR 10M or 10 years imprisonment. Enforced by the Information Regulator.","cookie-notice")}];function E3(i){if(!i)return[];const c=i.toLowerCase(),u=c.split("_")[0];return Ps().filter(d=>d.locales.some(p=>p.toLowerCase()===c||p.toLowerCase()===u)).map(d=>d.key)}const D3=["M40.00,4.80L40.75,6.96L43.04,7.01L41.22,8.40L41.88,10.59L40.00,9.28L38.12,10.59L38.78,8.40L36.96,7.01L39.25,6.96Z","M50.60,7.64L50.17,9.89L52.13,11.08L49.86,11.36L49.33,13.59L48.36,11.52L46.08,11.71L47.75,10.15L46.86,8.03L48.87,9.14Z","M58.36,15.40L56.86,17.13L57.97,19.14L55.85,18.25L54.29,19.92L54.48,17.64L52.41,16.67L54.64,16.14L54.92,13.87L56.11,15.83Z","M61.20,26.00L59.04,26.75L58.99,29.04L57.60,27.22L55.41,27.88L56.72,26.00L55.41,24.12L57.60,24.78L58.99,22.96L59.04,25.25Z","M58.36,36.60L56.11,36.17L54.92,38.13L54.64,35.86L52.41,35.33L54.48,34.36L54.29,32.08L55.85,33.75L57.97,32.86L56.86,34.87Z","M50.60,44.36L48.87,42.86L46.86,43.97L47.75,41.85L46.08,40.29L48.36,40.48L49.33,38.41L49.86,40.64L52.13,40.92L50.17,42.11Z","M40.00,47.20L39.25,45.04L36.96,44.99L38.78,43.60L38.12,41.41L40.00,42.72L41.88,41.41L41.22,43.60L43.04,44.99L40.75,45.04Z","M29.40,44.36L29.83,42.11L27.87,40.92L30.14,40.64L30.67,38.41L31.64,40.48L33.92,40.29L32.25,41.85L33.14,43.97L31.13,42.86Z","M21.64,36.60L23.14,34.87L22.03,32.86L24.15,33.75L25.71,32.08L25.52,34.36L27.59,35.33L25.36,35.86L25.08,38.13L23.89,36.17Z","M18.80,26.00L20.96,25.25L21.01,22.96L22.40,24.78L24.59,24.12L23.28,26.00L24.59,27.88L22.40,27.22L21.01,29.04L20.96,26.75Z","M21.64,15.40L23.89,15.83L25.08,13.87L25.36,16.14L27.59,16.67L25.52,17.64L25.71,19.92L24.15,18.25L22.03,19.14L23.14,17.13Z","M29.40,7.64L31.13,9.14L33.14,8.03L32.25,10.15L33.92,11.71L31.64,11.52L30.67,13.59L30.14,11.36L27.87,11.08L29.83,9.89Z"];function T3(){return t.jsx("svg",{viewBox:"0 0 80 52",fill:"none",style:{width:"100%",height:"auto"},children:D3.map((i,c)=>t.jsx("path",{d:i,fill:"#20c19e",opacity:"0.9"},c))})}function A3(){return t.jsx("svg",{viewBox:"0 0 80 52",style:{width:"100%",height:"auto"},children:t.jsx("path",{d:"M37.513,42.904L38.238,43.379L37.825,43.645ZM37.052,44.75L37.717,45.823L37.272,45.618ZM35.977,42.471L35.977,42.471L35.977,42.471ZM35.268,39.936L35.268,39.936L35.268,39.936ZM33.989,42.904L33.989,42.904L33.989,42.904ZM33.676,39.32L34.798,39.964L33.73,39.76ZM32.497,39.347L33.222,39.384L32.807,39.892ZM31.86,39.021L31.86,39.021L31.86,39.021ZM29.205,3L32.401,3.908L38.713,5.758L41.841,6.576L41.84,6.58L38.653,18.933L41.444,23.13L44.007,26.988L48.051,33.092L52.339,39.534L52.222,40.059L52.645,40.847L52.88,42.027L53.42,42.959L52.253,43.484L51.779,44.08L51.723,45.075L51.378,45.722L50.695,46.134L50.495,47.457L51.101,47.842L50.851,48.976L50.148,49L41.666,47.998L41.371,47.343L41.515,45.403L41.115,44.386L39.247,42.072L38.422,41.969L38.28,40.638L37.359,40.575L36.115,39.635L36.034,39.084L35.246,38.245L34.184,37.993L33.352,37.495L32.221,37.309L31.791,36.609L32.419,34.386L31.689,33.643L31.931,33.211L30.973,31.644L30.057,29.011L29.65,28.484L29.661,27.639L30.53,26.451L30.232,25.596L29.675,25.538L28.998,24.284L29.024,22.847L29.328,21.783L29.707,21.754L29.599,22.695L30.309,23.509L30.302,22.525L29.816,21.111L30.434,20.929L30.14,20.407L29.328,21.612L28.616,20.617L28.022,20.414L28.453,19.444L28.184,18.476L27.692,17.819L26.886,15.851L27.158,15.473L27.119,14.107L27.54,13.351L27.621,12.162L26.58,9.935L26.661,9.167L27.876,7.733L28.302,6.532L28.962,5.414L29.033,4.098L28.808,3.838Z",fill:"rgba(32,193,158,0.15)",stroke:"#20c19e",strokeWidth:1.2,strokeLinejoin:"round"})})}function R3(){return t.jsx("div",{style:{width:46,height:46,margin:"0 auto"},children:t.jsx("div",{"data-geo":"us",style:{width:"100%",height:"100%",lineHeight:0},dangerouslySetInnerHTML:{__html:`<svg version="1.0" xmlns="http://www.w3.org/2000/svg"40 `+l.stack}return{value:e,source:n,stack:a,digest:null}}function oc(e,n,o){return{value:e,source:null,stack:o??null,digest:n??null}}function ic(e,n){try{console.error(n.value)}catch(o){setTimeout(function(){throw o})}}var r4=typeof WeakMap=="function"?WeakMap:Map;function _d(e,n,o){o=Jn(-1,o),o.tag=3,o.payload={element:null};var r=n.value;return o.callback=function(){Rr||(Rr=!0,_c=r),ic(e,n)},o}function kd(e,n,o){o=Jn(-1,o),o.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var a=n.value;o.payload=function(){return r(a)},o.callback=function(){ic(e,n)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(o.callback=function(){ic(e,n),typeof r!="function"&&(gt===null?gt=new Set([this]):gt.add(this));var f=n.stack;this.componentDidCatch(n.value,{componentStack:f!==null?f:""})}),o}function xd(e,n,o){var r=e.pingCache;if(r===null){r=e.pingCache=new r4;var a=new Set;r.set(n,a)}else a=r.get(n),a===void 0&&(a=new Set,r.set(n,a));a.has(o)||(a.add(o),e=_4.bind(null,e,n,o),n.then(e,e))}function jd(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function wd(e,n,o,r,a){return(e.mode&1)===0?(e===n?e.flags|=65536:(e.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(n=Jn(-1,1),n.tag=2,ht(o,n,1))),o.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var s4=O.ReactCurrentOwner,fn=!1;function cn(e,n,o,r){n.child=e===null?Wu(n,null,o,r):ao(n,e.child,o,r)}function bd(e,n,o,r,a){o=o.render;var l=n.ref;return lo(n,a),r=qa(e,n,o,r,l,a),o=Qa(),e!==null&&!fn?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~a,et(e,n,a)):(Me&&o&&Ta(n),n.flags|=1,cn(e,n,r,a),n.child)}function Nd(e,n,o,r,a){if(e===null){var l=o.type;return typeof l=="function"&&!Sc(l)&&l.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(n.tag=15,n.type=l,Sd(e,n,l,r,a)):(e=Ur(o.type,null,r,n,n.mode,a),e.ref=n.ref,e.return=n,n.child=e)}if(l=e.child,(e.lanes&a)===0){var f=l.memoizedProps;if(o=o.compare,o=o!==null?o:Xo,o(f,r)&&e.ref===n.ref)return et(e,n,a)}return n.flags|=1,e=kt(l,r),e.ref=n.ref,e.return=n,n.child=e}function Sd(e,n,o,r,a){if(e!==null){var l=e.memoizedProps;if(Xo(l,r)&&e.ref===n.ref)if(fn=!1,n.pendingProps=r=l,(e.lanes&a)!==0)(e.flags&131072)!==0&&(fn=!0);else return n.lanes=e.lanes,et(e,n,a)}return rc(e,n,o,r,a)}function Cd(e,n,o){var r=n.pendingProps,a=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((n.mode&1)===0)n.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ee(ho,xn),xn|=o;else{if((o&1073741824)===0)return e=l!==null?l.baseLanes|o:o,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,Ee(ho,xn),xn|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:o,Ee(ho,xn),xn|=r}else l!==null?(r=l.baseLanes|o,n.memoizedState=null):r=o,Ee(ho,xn),xn|=r;return cn(e,n,a,o),n.child}function Pd(e,n){var o=n.ref;(e===null&&o!==null||e!==null&&e.ref!==o)&&(n.flags|=512,n.flags|=2097152)}function rc(e,n,o,r,a){var l=pn(o)?Lt:tn.current;return l=oo(n,l),lo(n,a),o=qa(e,n,o,r,l,a),r=Qa(),e!==null&&!fn?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~a,et(e,n,a)):(Me&&r&&Ta(n),n.flags|=1,cn(e,n,o,a),n.child)}function Ld(e,n,o,r,a){if(pn(o)){var l=!0;dr(n)}else l=!1;if(lo(n,a),n.stateNode===null)Lr(e,n),vd(n,o,r),tc(n,o,r,a),r=!0;else if(e===null){var f=n.stateNode,y=n.memoizedProps;f.props=y;var w=f.context,z=o.contextType;typeof z=="object"&&z!==null?z=bn(z):(z=pn(o)?Lt:tn.current,z=oo(n,z));var V=o.getDerivedStateFromProps,K=typeof V=="function"||typeof f.getSnapshotBeforeUpdate=="function";K||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(y!==r||w!==z)&&yd(n,f,r,z),ft=!1;var G=n.memoizedState;f.state=G,kr(n,r,f,a),w=n.memoizedState,y!==r||G!==w||dn.current||ft?(typeof V=="function"&&(nc(n,o,V,r),w=n.memoizedState),(y=ft||gd(n,o,y,r,G,w,z))?(K||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(n.flags|=4194308)):(typeof f.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=r,n.memoizedState=w),f.props=r,f.state=w,f.context=z,r=y):(typeof f.componentDidMount=="function"&&(n.flags|=4194308),r=!1)}else{f=n.stateNode,Vu(e,n),y=n.memoizedProps,z=n.type===n.elementType?y:Tn(n.type,y),f.props=z,K=n.pendingProps,G=f.context,w=o.contextType,typeof w=="object"&&w!==null?w=bn(w):(w=pn(o)?Lt:tn.current,w=oo(n,w));var ie=o.getDerivedStateFromProps;(V=typeof ie=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(y!==K||G!==w)&&yd(n,f,r,w),ft=!1,G=n.memoizedState,f.state=G,kr(n,r,f,a);var ae=n.memoizedState;y!==K||G!==ae||dn.current||ft?(typeof ie=="function"&&(nc(n,o,ie,r),ae=n.memoizedState),(z=ft||gd(n,o,z,r,G,ae,w)||!1)?(V||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(r,ae,w),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(r,ae,w)),typeof f.componentDidUpdate=="function"&&(n.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof f.componentDidUpdate!="function"||y===e.memoizedProps&&G===e.memoizedState||(n.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&G===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=ae),f.props=r,f.state=ae,f.context=w,r=z):(typeof f.componentDidUpdate!="function"||y===e.memoizedProps&&G===e.memoizedState||(n.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&G===e.memoizedState||(n.flags|=1024),r=!1)}return sc(e,n,o,r,l,a)}function sc(e,n,o,r,a,l){Pd(e,n);var f=(n.flags&128)!==0;if(!r&&!f)return a&&Ru(n,o,!1),et(e,n,l);r=n.stateNode,s4.current=n;var y=f&&typeof o.getDerivedStateFromError!="function"?null:r.render();return n.flags|=1,e!==null&&f?(n.child=ao(n,e.child,null,l),n.child=ao(n,null,y,l)):cn(e,n,y,l),n.memoizedState=r.state,a&&Ru(n,o,!0),n.child}function Ed(e){var n=e.stateNode;n.pendingContext?Tu(e,n.pendingContext,n.pendingContext!==n.context):n.context&&Tu(e,n.context,!1),Wa(e,n.containerInfo)}function Dd(e,n,o,r,a){return so(),Ma(a),n.flags|=256,cn(e,n,o,r),n.child}var ac={dehydrated:null,treeContext:null,retryLane:0};function cc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Td(e,n,o){var r=n.pendingProps,a=Fe.current,l=!1,f=(n.flags&128)!==0,y;if((y=f)||(y=e!==null&&e.memoizedState===null?!1:(a&2)!==0),y?(l=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),Ee(Fe,a&1),e===null)return za(n),e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((n.mode&1)===0?n.lanes=1:e.data==="$!"?n.lanes=8:n.lanes=1073741824,null):(f=r.children,e=r.fallback,l?(r=n.mode,l=n.child,f={mode:"hidden",children:f},(r&1)===0&&l!==null?(l.childLanes=0,l.pendingProps=f):l=Br(f,r,0,null),e=Ot(e,r,o,null),l.return=n,e.return=n,l.sibling=e,n.child=l,n.child.memoizedState=cc(o),n.memoizedState=ac,e):lc(n,f));if(a=e.memoizedState,a!==null&&(y=a.dehydrated,y!==null))return a4(e,n,f,r,y,a,o);if(l){l=r.fallback,f=n.mode,a=e.child,y=a.sibling;var w={mode:"hidden",children:r.children};return(f&1)===0&&n.child!==a?(r=n.child,r.childLanes=0,r.pendingProps=w,n.deletions=null):(r=kt(a,w),r.subtreeFlags=a.subtreeFlags&14680064),y!==null?l=kt(y,l):(l=Ot(l,f,o,null),l.flags|=2),l.return=n,r.return=n,r.sibling=l,n.child=r,r=l,l=n.child,f=e.child.memoizedState,f=f===null?cc(o):{baseLanes:f.baseLanes|o,cachePool:null,transitions:f.transitions},l.memoizedState=f,l.childLanes=e.childLanes&~o,n.memoizedState=ac,r}return l=e.child,e=l.sibling,r=kt(l,{mode:"visible",children:r.children}),(n.mode&1)===0&&(r.lanes=o),r.return=n,r.sibling=null,e!==null&&(o=n.deletions,o===null?(n.deletions=[e],n.flags|=16):o.push(e)),n.child=r,n.memoizedState=null,r}function lc(e,n){return n=Br({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function Pr(e,n,o,r){return r!==null&&Ma(r),ao(n,e.child,null,o),e=lc(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function a4(e,n,o,r,a,l,f){if(o)return n.flags&256?(n.flags&=-257,r=oc(Error(u(422))),Pr(e,n,f,r)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(l=r.fallback,a=n.mode,r=Br({mode:"visible",children:r.children},a,0,null),l=Ot(l,a,f,null),l.flags|=2,r.return=n,l.return=n,r.sibling=l,n.child=r,(n.mode&1)!==0&&ao(n,e.child,null,f),n.child.memoizedState=cc(f),n.memoizedState=ac,l);if((n.mode&1)===0)return Pr(e,n,f,null);if(a.data==="$!"){if(r=a.nextSibling&&a.nextSibling.dataset,r)var y=r.dgst;return r=y,l=Error(u(419)),r=oc(l,r,void 0),Pr(e,n,f,r)}if(y=(f&e.childLanes)!==0,fn||y){if(r=qe,r!==null){switch(f&-f){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(r.suspendedLanes|f))!==0?0:a,a!==0&&a!==l.retryLane&&(l.retryLane=a,Xn(e,a),zn(r,e,a,-1))}return Nc(),r=oc(Error(u(421))),Pr(e,n,f,r)}return a.data==="$?"?(n.flags|=128,n.child=e.child,n=k4.bind(null,e),a._reactRetry=n,null):(e=l.treeContext,kn=lt(a.nextSibling),_n=n,Me=!0,Dn=null,e!==null&&(jn[wn++]=Qn,jn[wn++]=Zn,jn[wn++]=Et,Qn=e.id,Zn=e.overflow,Et=n),n=lc(n,r.children),n.flags|=4096,n)}function Ad(e,n,o){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n),Ua(e.return,n,o)}function uc(e,n,o,r,a){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:o,tailMode:a}:(l.isBackwards=n,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=o,l.tailMode=a)}function Rd(e,n,o){var r=n.pendingProps,a=r.revealOrder,l=r.tail;if(cn(e,n,r.children,o),r=Fe.current,(r&2)!==0)r=r&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ad(e,o,n);else if(e.tag===19)Ad(e,o,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ee(Fe,r),(n.mode&1)===0)n.memoizedState=null;else switch(a){case"forwards":for(o=n.child,a=null;o!==null;)e=o.alternate,e!==null&&xr(e)===null&&(a=o),o=o.sibling;o=a,o===null?(a=n.child,n.child=null):(a=o.sibling,o.sibling=null),uc(n,!1,a,o,l);break;case"backwards":for(o=null,a=n.child,n.child=null;a!==null;){if(e=a.alternate,e!==null&&xr(e)===null){n.child=a;break}e=a.sibling,a.sibling=o,o=a,a=e}uc(n,!0,o,null,l);break;case"together":uc(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Lr(e,n){(n.mode&1)===0&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function et(e,n,o){if(e!==null&&(n.dependencies=e.dependencies),zt|=n.lanes,(o&n.childLanes)===0)return null;if(e!==null&&n.child!==e.child)throw Error(u(153));if(n.child!==null){for(e=n.child,o=kt(e,e.pendingProps),n.child=o,o.return=n;e.sibling!==null;)e=e.sibling,o=o.sibling=kt(e,e.pendingProps),o.return=n;o.sibling=null}return n.child}function c4(e,n,o){switch(n.tag){case 3:Ed(n),so();break;case 5:Yu(n);break;case 1:pn(n.type)&&dr(n);break;case 4:Wa(n,n.stateNode.containerInfo);break;case 10:var r=n.type._context,a=n.memoizedProps.value;Ee(vr,r._currentValue),r._currentValue=a;break;case 13:if(r=n.memoizedState,r!==null)return r.dehydrated!==null?(Ee(Fe,Fe.current&1),n.flags|=128,null):(o&n.child.childLanes)!==0?Td(e,n,o):(Ee(Fe,Fe.current&1),e=et(e,n,o),e!==null?e.sibling:null);Ee(Fe,Fe.current&1);break;case 19:if(r=(o&n.childLanes)!==0,(e.flags&128)!==0){if(r)return Rd(e,n,o);n.flags|=128}if(a=n.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Ee(Fe,Fe.current),r)break;return null;case 22:case 23:return n.lanes=0,Cd(e,n,o)}return et(e,n,o)}var zd,dc,Md,Fd;zd=function(e,n){for(var o=n.child;o!==null;){if(o.tag===5||o.tag===6)e.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===n)break;for(;o.sibling===null;){if(o.return===null||o.return===n)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},dc=function(){},Md=function(e,n,o,r){var a=e.memoizedProps;if(a!==r){e=n.stateNode,At(Gn.current);var l=null;switch(o){case"input":a=Us(e,a),r=Us(e,r),l=[];break;case"select":a=Q({},a,{value:void 0}),r=Q({},r,{value:void 0}),l=[];break;case"textarea":a=Ws(e,a),r=Ws(e,r),l=[];break;default:typeof a.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=cr)}Vs(o,r);var f;o=null;for(z in a)if(!r.hasOwnProperty(z)&&a.hasOwnProperty(z)&&a[z]!=null)if(z==="style"){var y=a[z];for(f in y)y.hasOwnProperty(f)&&(o||(o={}),o[f]="")}else z!=="dangerouslySetInnerHTML"&&z!=="children"&&z!=="suppressContentEditableWarning"&&z!=="suppressHydrationWarning"&&z!=="autoFocus"&&(p.hasOwnProperty(z)?l||(l=[]):(l=l||[]).push(z,null));for(z in r){var w=r[z];if(y=a!=null?a[z]:void 0,r.hasOwnProperty(z)&&w!==y&&(w!=null||y!=null))if(z==="style")if(y){for(f in y)!y.hasOwnProperty(f)||w&&w.hasOwnProperty(f)||(o||(o={}),o[f]="");for(f in w)w.hasOwnProperty(f)&&y[f]!==w[f]&&(o||(o={}),o[f]=w[f])}else o||(l||(l=[]),l.push(z,o)),o=w;else z==="dangerouslySetInnerHTML"?(w=w?w.__html:void 0,y=y?y.__html:void 0,w!=null&&y!==w&&(l=l||[]).push(z,w)):z==="children"?typeof w!="string"&&typeof w!="number"||(l=l||[]).push(z,""+w):z!=="suppressContentEditableWarning"&&z!=="suppressHydrationWarning"&&(p.hasOwnProperty(z)?(w!=null&&z==="onScroll"&&Te("scroll",e),l||y===w||(l=[])):(l=l||[]).push(z,w))}o&&(l=l||[]).push("style",o);var z=l;(n.updateQueue=z)&&(n.flags|=4)}},Fd=function(e,n,o,r){o!==r&&(n.flags|=4)};function fi(e,n){if(!Me)switch(e.tailMode){case"hidden":n=e.tail;for(var o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?e.tail=null:o.sibling=null;break;case"collapsed":o=e.tail;for(var r=null;o!==null;)o.alternate!==null&&(r=o),o=o.sibling;r===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function rn(e){var n=e.alternate!==null&&e.alternate.child===e.child,o=0,r=0;if(n)for(var a=e.child;a!==null;)o|=a.lanes|a.childLanes,r|=a.subtreeFlags&14680064,r|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)o|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=o,n}function l4(e,n,o){var r=n.pendingProps;switch(Aa(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return rn(n),null;case 1:return pn(n.type)&&ur(),rn(n),null;case 3:return r=n.stateNode,uo(),Ae(dn),Ae(tn),Ha(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(mr(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Dn!==null&&(jc(Dn),Dn=null))),dc(e,n),rn(n),null;case 5:Ga(n);var a=At(ci.current);if(o=n.type,e!==null&&n.stateNode!=null)Md(e,n,o,r,a),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!r){if(n.stateNode===null)throw Error(u(166));return rn(n),null}if(e=At(Gn.current),mr(n)){r=n.stateNode,o=n.type;var l=n.memoizedProps;switch(r[Wn]=n,r[oi]=l,e=(n.mode&1)!==0,o){case"dialog":Te("cancel",r),Te("close",r);break;case"iframe":case"object":case"embed":Te("load",r);break;case"video":case"audio":for(a=0;a<ei.length;a++)Te(ei[a],r);break;case"source":Te("error",r);break;case"img":case"image":case"link":Te("error",r),Te("load",r);break;case"details":Te("toggle",r);break;case"input":v1(r,l),Te("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},Te("invalid",r);break;case"textarea":k1(r,l),Te("invalid",r)}Vs(o,l),a=null;for(var f in l)if(l.hasOwnProperty(f)){var y=l[f];f==="children"?typeof y=="string"?r.textContent!==y&&(l.suppressHydrationWarning!==!0&&ar(r.textContent,y,e),a=["children",y]):typeof y=="number"&&r.textContent!==""+y&&(l.suppressHydrationWarning!==!0&&ar(r.textContent,y,e),a=["children",""+y]):p.hasOwnProperty(f)&&y!=null&&f==="onScroll"&&Te("scroll",r)}switch(o){case"input":De(r),_1(r,l,!0);break;case"textarea":De(r),j1(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=cr)}r=a,n.updateQueue=r,r!==null&&(n.flags|=4)}else{f=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=w1(o)),e==="http://www.w3.org/1999/xhtml"?o==="script"?(e=f.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=f.createElement(o,{is:r.is}):(e=f.createElement(o),o==="select"&&(f=e,r.multiple?f.multiple=!0:r.size&&(f.size=r.size))):e=f.createElementNS(e,o),e[Wn]=n,e[oi]=r,zd(e,n,!1,!1),n.stateNode=e;e:{switch(f=Hs(o,r),o){case"dialog":Te("cancel",e),Te("close",e),a=r;break;case"iframe":case"object":case"embed":Te("load",e),a=r;break;case"video":case"audio":for(a=0;a<ei.length;a++)Te(ei[a],e);a=r;break;case"source":Te("error",e),a=r;break;case"img":case"image":case"link":Te("error",e),Te("load",e),a=r;break;case"details":Te("toggle",e),a=r;break;case"input":v1(e,r),a=Us(e,r),Te("invalid",e);break;case"option":a=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=Q({},r,{value:void 0}),Te("invalid",e);break;case"textarea":k1(e,r),a=Ws(e,r),Te("invalid",e);break;default:a=r}Vs(o,a),y=a;for(l in y)if(y.hasOwnProperty(l)){var w=y[l];l==="style"?S1(e,w):l==="dangerouslySetInnerHTML"?(w=w?w.__html:void 0,w!=null&&b1(e,w)):l==="children"?typeof w=="string"?(o!=="textarea"||w!=="")&&zo(e,w):typeof w=="number"&&zo(e,""+w):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(p.hasOwnProperty(l)?w!=null&&l==="onScroll"&&Te("scroll",e):w!=null&&R(e,l,w,f))}switch(o){case"input":De(e),_1(e,r,!1);break;case"textarea":De(e),j1(e);break;case"option":r.value!=null&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?Vt(e,!!r.multiple,l,!1):r.defaultValue!=null&&Vt(e,!!r.multiple,r.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=cr)}switch(o){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return rn(n),null;case 6:if(e&&n.stateNode!=null)Fd(e,n,e.memoizedProps,r);else{if(typeof r!="string"&&n.stateNode===null)throw Error(u(166));if(o=At(ci.current),At(Gn.current),mr(n)){if(r=n.stateNode,o=n.memoizedProps,r[Wn]=n,(l=r.nodeValue!==o)&&(e=_n,e!==null))switch(e.tag){case 3:ar(r.nodeValue,o,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ar(r.nodeValue,o,(e.mode&1)!==0)}l&&(n.flags|=4)}else r=(o.nodeType===9?o:o.ownerDocument).createTextNode(r),r[Wn]=n,n.stateNode=r}return rn(n),null;case 13:if(Ae(Fe),r=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Me&&kn!==null&&(n.mode&1)!==0&&(n.flags&128)===0)Uu(),so(),n.flags|=98560,l=!1;else if(l=mr(n),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(u(318));if(l=n.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(u(317));l[Wn]=n}else so(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;rn(n),l=!1}else Dn!==null&&(jc(Dn),Dn=null),l=!0;if(!l)return n.flags&65536?n:null}return(n.flags&128)!==0?(n.lanes=o,n):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(n.child.flags|=8192,(n.mode&1)!==0&&(e===null||(Fe.current&1)!==0?Ke===0&&(Ke=3):Nc())),n.updateQueue!==null&&(n.flags|=4),rn(n),null);case 4:return uo(),dc(e,n),e===null&&ni(n.stateNode.containerInfo),rn(n),null;case 10:return Oa(n.type._context),rn(n),null;case 17:return pn(n.type)&&ur(),rn(n),null;case 19:if(Ae(Fe),l=n.memoizedState,l===null)return rn(n),null;if(r=(n.flags&128)!==0,f=l.rendering,f===null)if(r)fi(l,!1);else{if(Ke!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(f=xr(e),f!==null){for(n.flags|=128,fi(l,!1),r=f.updateQueue,r!==null&&(n.updateQueue=r,n.flags|=4),n.subtreeFlags=0,r=o,o=n.child;o!==null;)l=o,e=r,l.flags&=14680066,f=l.alternate,f===null?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=f.childLanes,l.lanes=f.lanes,l.child=f.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=f.memoizedProps,l.memoizedState=f.memoizedState,l.updateQueue=f.updateQueue,l.type=f.type,e=f.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),o=o.sibling;return Ee(Fe,Fe.current&1|2),n.child}e=e.sibling}l.tail!==null&&Be()>mo&&(n.flags|=128,r=!0,fi(l,!1),n.lanes=4194304)}else{if(!r)if(e=xr(f),e!==null){if(n.flags|=128,r=!0,o=e.updateQueue,o!==null&&(n.updateQueue=o,n.flags|=4),fi(l,!0),l.tail===null&&l.tailMode==="hidden"&&!f.alternate&&!Me)return rn(n),null}else 2*Be()-l.renderingStartTime>mo&&o!==1073741824&&(n.flags|=128,r=!0,fi(l,!1),n.lanes=4194304);l.isBackwards?(f.sibling=n.child,n.child=f):(o=l.last,o!==null?o.sibling=f:n.child=f,l.last=f)}return l.tail!==null?(n=l.tail,l.rendering=n,l.tail=n.sibling,l.renderingStartTime=Be(),n.sibling=null,o=Fe.current,Ee(Fe,r?o&1|2:o&1),n):(rn(n),null);case 22:case 23:return bc(),r=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(n.flags|=8192),r&&(n.mode&1)!==0?(xn&1073741824)!==0&&(rn(n),n.subtreeFlags&6&&(n.flags|=8192)):rn(n),null;case 24:return null;case 25:return null}throw Error(u(156,n.tag))}function u4(e,n){switch(Aa(n),n.tag){case 1:return pn(n.type)&&ur(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return uo(),Ae(dn),Ae(tn),Ha(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 5:return Ga(n),null;case 13:if(Ae(Fe),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(u(340));so()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return Ae(Fe),null;case 4:return uo(),null;case 10:return Oa(n.type._context),null;case 22:case 23:return bc(),null;case 24:return null;default:return null}}var Er=!1,sn=!1,d4=typeof WeakSet=="function"?WeakSet:Set,se=null;function fo(e,n){var o=e.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(r){Oe(e,n,r)}else o.current=null}function pc(e,n,o){try{o()}catch(r){Oe(e,n,r)}}var Id=!1;function p4(e,n){if(ba=Qi,e=gu(),ga(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var r=o.getSelection&&o.getSelection();if(r&&r.rangeCount!==0){o=r.anchorNode;var a=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{o.nodeType,l.nodeType}catch{o=null;break e}var f=0,y=-1,w=-1,z=0,V=0,K=e,G=null;n:for(;;){for(var ie;K!==o||a!==0&&K.nodeType!==3||(y=f+a),K!==l||r!==0&&K.nodeType!==3||(w=f+r),K.nodeType===3&&(f+=K.nodeValue.length),(ie=K.firstChild)!==null;)G=K,K=ie;for(;;){if(K===e)break n;if(G===o&&++z===a&&(y=f),G===l&&++V===r&&(w=f),(ie=K.nextSibling)!==null)break;K=G,G=K.parentNode}K=ie}o=y===-1||w===-1?null:{start:y,end:w}}else o=null}o=o||{start:0,end:0}}else o=null;for(Na={focusedElem:e,selectionRange:o},Qi=!1,se=n;se!==null;)if(n=se,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,se=e;else for(;se!==null;){n=se;try{var ae=n.alternate;if((n.flags&1024)!==0)switch(n.tag){case 0:case 11:case 15:break;case 1:if(ae!==null){var ce=ae.memoizedProps,$e=ae.memoizedState,L=n.stateNode,N=L.getSnapshotBeforeUpdate(n.elementType===n.type?ce:Tn(n.type,ce),$e);L.__reactInternalSnapshotBeforeUpdate=N}break;case 3:var T=n.stateNode.containerInfo;T.nodeType===1?T.textContent="":T.nodeType===9&&T.documentElement&&T.removeChild(T.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(u(163))}}catch(Z){Oe(n,n.return,Z)}if(e=n.sibling,e!==null){e.return=n.return,se=e;break}se=n.return}return ae=Id,Id=!1,ae}function hi(e,n,o){var r=n.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&e)===e){var l=a.destroy;a.destroy=void 0,l!==void 0&&pc(n,o,l)}a=a.next}while(a!==r)}}function Dr(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var r=o.create;o.destroy=r()}o=o.next}while(o!==n)}}function fc(e){var n=e.ref;if(n!==null){var o=e.stateNode;switch(e.tag){case 5:e=o;break;default:e=o}typeof n=="function"?n(e):n.current=e}}function Od(e){var n=e.alternate;n!==null&&(e.alternate=null,Od(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[Wn],delete n[oi],delete n[La],delete n[Yf],delete n[qf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ud(e){return e.tag===5||e.tag===3||e.tag===4}function Bd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ud(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function hc(e,n,o){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?o.nodeType===8?o.parentNode.insertBefore(e,n):o.insertBefore(e,n):(o.nodeType===8?(n=o.parentNode,n.insertBefore(e,o)):(n=o,n.appendChild(e)),o=o._reactRootContainer,o!=null||n.onclick!==null||(n.onclick=cr));else if(r!==4&&(e=e.child,e!==null))for(hc(e,n,o),e=e.sibling;e!==null;)hc(e,n,o),e=e.sibling}function mc(e,n,o){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?o.insertBefore(e,n):o.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(mc(e,n,o),e=e.sibling;e!==null;)mc(e,n,o),e=e.sibling}var Xe=null,An=!1;function mt(e,n,o){for(o=o.child;o!==null;)$d(e,n,o),o=o.sibling}function $d(e,n,o){if($n&&typeof $n.onCommitFiberUnmount=="function")try{$n.onCommitFiberUnmount(Gi,o)}catch{}switch(o.tag){case 5:sn||fo(o,n);case 6:var r=Xe,a=An;Xe=null,mt(e,n,o),Xe=r,An=a,Xe!==null&&(An?(e=Xe,o=o.stateNode,e.nodeType===8?e.parentNode.removeChild(o):e.removeChild(o)):Xe.removeChild(o.stateNode));break;case 18:Xe!==null&&(An?(e=Xe,o=o.stateNode,e.nodeType===8?Pa(e.parentNode,o):e.nodeType===1&&Pa(e,o),Ho(e)):Pa(Xe,o.stateNode));break;case 4:r=Xe,a=An,Xe=o.stateNode.containerInfo,An=!0,mt(e,n,o),Xe=r,An=a;break;case 0:case 11:case 14:case 15:if(!sn&&(r=o.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var l=a,f=l.destroy;l=l.tag,f!==void 0&&((l&2)!==0||(l&4)!==0)&&pc(o,n,f),a=a.next}while(a!==r)}mt(e,n,o);break;case 1:if(!sn&&(fo(o,n),r=o.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=o.memoizedProps,r.state=o.memoizedState,r.componentWillUnmount()}catch(y){Oe(o,n,y)}mt(e,n,o);break;case 21:mt(e,n,o);break;case 22:o.mode&1?(sn=(r=sn)||o.memoizedState!==null,mt(e,n,o),sn=r):mt(e,n,o);break;default:mt(e,n,o)}}function Wd(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var o=e.stateNode;o===null&&(o=e.stateNode=new d4),n.forEach(function(r){var a=x4.bind(null,e,r);o.has(r)||(o.add(r),r.then(a,a))})}}function Rn(e,n){var o=n.deletions;if(o!==null)for(var r=0;r<o.length;r++){var a=o[r];try{var l=e,f=n,y=f;e:for(;y!==null;){switch(y.tag){case 5:Xe=y.stateNode,An=!1;break e;case 3:Xe=y.stateNode.containerInfo,An=!0;break e;case 4:Xe=y.stateNode.containerInfo,An=!0;break e}y=y.return}if(Xe===null)throw Error(u(160));$d(l,f,a),Xe=null,An=!1;var w=a.alternate;w!==null&&(w.return=null),a.return=null}catch(z){Oe(a,n,z)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)Gd(n,e),n=n.sibling}function Gd(e,n){var o=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Rn(n,e),Hn(e),r&4){try{hi(3,e,e.return),Dr(3,e)}catch(ce){Oe(e,e.return,ce)}try{hi(5,e,e.return)}catch(ce){Oe(e,e.return,ce)}}break;case 1:Rn(n,e),Hn(e),r&512&&o!==null&&fo(o,o.return);break;case 5:if(Rn(n,e),Hn(e),r&512&&o!==null&&fo(o,o.return),e.flags&32){var a=e.stateNode;try{zo(a,"")}catch(ce){Oe(e,e.return,ce)}}if(r&4&&(a=e.stateNode,a!=null)){var l=e.memoizedProps,f=o!==null?o.memoizedProps:l,y=e.type,w=e.updateQueue;if(e.updateQueue=null,w!==null)try{y==="input"&&l.type==="radio"&&l.name!=null&&y1(a,l),Hs(y,f);var z=Hs(y,l);for(f=0;f<w.length;f+=2){var V=w[f],K=w[f+1];V==="style"?S1(a,K):V==="dangerouslySetInnerHTML"?b1(a,K):V==="children"?zo(a,K):R(a,V,K,z)}switch(y){case"input":Bs(a,l);break;case"textarea":x1(a,l);break;case"select":var G=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!l.multiple;var ie=l.value;ie!=null?Vt(a,!!l.multiple,ie,!1):G!==!!l.multiple&&(l.defaultValue!=null?Vt(a,!!l.multiple,l.defaultValue,!0):Vt(a,!!l.multiple,l.multiple?[]:"",!1))}a[oi]=l}catch(ce){Oe(e,e.return,ce)}}break;case 6:if(Rn(n,e),Hn(e),r&4){if(e.stateNode===null)throw Error(u(162));a=e.stateNode,l=e.memoizedProps;try{a.nodeValue=l}catch(ce){Oe(e,e.return,ce)}}break;case 3:if(Rn(n,e),Hn(e),r&4&&o!==null&&o.memoizedState.isDehydrated)try{Ho(n.containerInfo)}catch(ce){Oe(e,e.return,ce)}break;case 4:Rn(n,e),Hn(e);break;case 13:Rn(n,e),Hn(e),a=e.child,a.flags&8192&&(l=a.memoizedState!==null,a.stateNode.isHidden=l,!l||a.alternate!==null&&a.alternate.memoizedState!==null||(yc=Be())),r&4&&Wd(e);break;case 22:if(V=o!==null&&o.memoizedState!==null,e.mode&1?(sn=(z=sn)||V,Rn(n,e),sn=z):Rn(n,e),Hn(e),r&8192){if(z=e.memoizedState!==null,(e.stateNode.isHidden=z)&&!V&&(e.mode&1)!==0)for(se=e,V=e.child;V!==null;){for(K=se=V;se!==null;){switch(G=se,ie=G.child,G.tag){case 0:case 11:case 14:case 15:hi(4,G,G.return);break;case 1:fo(G,G.return);var ae=G.stateNode;if(typeof ae.componentWillUnmount=="function"){r=G,o=G.return;try{n=r,ae.props=n.memoizedProps,ae.state=n.memoizedState,ae.componentWillUnmount()}catch(ce){Oe(r,o,ce)}}break;case 5:fo(G,G.return);break;case 22:if(G.memoizedState!==null){Kd(K);continue}}ie!==null?(ie.return=G,se=ie):Kd(K)}V=V.sibling}e:for(V=null,K=e;;){if(K.tag===5){if(V===null){V=K;try{a=K.stateNode,z?(l=a.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(y=K.stateNode,w=K.memoizedProps.style,f=w!=null&&w.hasOwnProperty("display")?w.display:null,y.style.display=N1("display",f))}catch(ce){Oe(e,e.return,ce)}}}else if(K.tag===6){if(V===null)try{K.stateNode.nodeValue=z?"":K.memoizedProps}catch(ce){Oe(e,e.return,ce)}}else if((K.tag!==22&&K.tag!==23||K.memoizedState===null||K===e)&&K.child!==null){K.child.return=K,K=K.child;continue}if(K===e)break e;for(;K.sibling===null;){if(K.return===null||K.return===e)break e;V===K&&(V=null),K=K.return}V===K&&(V=null),K.sibling.return=K.return,K=K.sibling}}break;case 19:Rn(n,e),Hn(e),r&4&&Wd(e);break;case 21:break;default:Rn(n,e),Hn(e)}}function Hn(e){var n=e.flags;if(n&2){try{e:{for(var o=e.return;o!==null;){if(Ud(o)){var r=o;break e}o=o.return}throw Error(u(160))}switch(r.tag){case 5:var a=r.stateNode;r.flags&32&&(zo(a,""),r.flags&=-33);var l=Bd(e);mc(e,l,a);break;case 3:case 4:var f=r.stateNode.containerInfo,y=Bd(e);hc(e,y,f);break;default:throw Error(u(161))}}catch(w){Oe(e,e.return,w)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function f4(e,n,o){se=e,Vd(e)}function Vd(e,n,o){for(var r=(e.mode&1)!==0;se!==null;){var a=se,l=a.child;if(a.tag===22&&r){var f=a.memoizedState!==null||Er;if(!f){var y=a.alternate,w=y!==null&&y.memoizedState!==null||sn;y=Er;var z=sn;if(Er=f,(sn=w)&&!z)for(se=a;se!==null;)f=se,w=f.child,f.tag===22&&f.memoizedState!==null?Yd(a):w!==null?(w.return=f,se=w):Yd(a);for(;l!==null;)se=l,Vd(l),l=l.sibling;se=a,Er=y,sn=z}Hd(e)}else(a.subtreeFlags&8772)!==0&&l!==null?(l.return=a,se=l):Hd(e)}}function Hd(e){for(;se!==null;){var n=se;if((n.flags&8772)!==0){var o=n.alternate;try{if((n.flags&8772)!==0)switch(n.tag){case 0:case 11:case 15:sn||Dr(5,n);break;case 1:var r=n.stateNode;if(n.flags&4&&!sn)if(o===null)r.componentDidMount();else{var a=n.elementType===n.type?o.memoizedProps:Tn(n.type,o.memoizedProps);r.componentDidUpdate(a,o.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=n.updateQueue;l!==null&&Ku(n,l,r);break;case 3:var f=n.updateQueue;if(f!==null){if(o=null,n.child!==null)switch(n.child.tag){case 5:o=n.child.stateNode;break;case 1:o=n.child.stateNode}Ku(n,f,o)}break;case 5:var y=n.stateNode;if(o===null&&n.flags&4){o=y;var w=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":w.autoFocus&&o.focus();break;case"img":w.src&&(o.src=w.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var z=n.alternate;if(z!==null){var V=z.memoizedState;if(V!==null){var K=V.dehydrated;K!==null&&Ho(K)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(u(163))}sn||n.flags&512&&fc(n)}catch(G){Oe(n,n.return,G)}}if(n===e){se=null;break}if(o=n.sibling,o!==null){o.return=n.return,se=o;break}se=n.return}}function Kd(e){for(;se!==null;){var n=se;if(n===e){se=null;break}var o=n.sibling;if(o!==null){o.return=n.return,se=o;break}se=n.return}}function Yd(e){for(;se!==null;){var n=se;try{switch(n.tag){case 0:case 11:case 15:var o=n.return;try{Dr(4,n)}catch(w){Oe(n,o,w)}break;case 1:var r=n.stateNode;if(typeof r.componentDidMount=="function"){var a=n.return;try{r.componentDidMount()}catch(w){Oe(n,a,w)}}var l=n.return;try{fc(n)}catch(w){Oe(n,l,w)}break;case 5:var f=n.return;try{fc(n)}catch(w){Oe(n,f,w)}}}catch(w){Oe(n,n.return,w)}if(n===e){se=null;break}var y=n.sibling;if(y!==null){y.return=n.return,se=y;break}se=n.return}}var h4=Math.ceil,Tr=O.ReactCurrentDispatcher,gc=O.ReactCurrentOwner,Sn=O.ReactCurrentBatchConfig,Ne=0,qe=null,We=null,Je=0,xn=0,ho=ut(0),Ke=0,mi=null,zt=0,Ar=0,vc=0,gi=null,hn=null,yc=0,mo=1/0,nt=null,Rr=!1,_c=null,gt=null,zr=!1,vt=null,Mr=0,vi=0,kc=null,Fr=-1,Ir=0;function ln(){return(Ne&6)!==0?Be():Fr!==-1?Fr:Fr=Be()}function yt(e){return(e.mode&1)===0?1:(Ne&2)!==0&&Je!==0?Je&-Je:Zf.transition!==null?(Ir===0&&(Ir=B1()),Ir):(e=Pe,e!==0||(e=window.event,e=e===void 0?16:Q1(e.type)),e)}function zn(e,n,o,r){if(50<vi)throw vi=0,kc=null,Error(u(185));Bo(e,o,r),((Ne&2)===0||e!==qe)&&(e===qe&&((Ne&2)===0&&(Ar|=o),Ke===4&&_t(e,Je)),mn(e,r),o===1&&Ne===0&&(n.mode&1)===0&&(mo=Be()+500,pr&&pt()))}function mn(e,n){var o=e.callbackNode;Q0(e,n);var r=Ki(e,e===qe?Je:0);if(r===0)o!==null&&I1(o),e.callbackNode=null,e.callbackPriority=0;else if(n=r&-r,e.callbackPriority!==n){if(o!=null&&I1(o),n===1)e.tag===0?Qf(Qd.bind(null,e)):zu(Qd.bind(null,e)),Hf(function(){(Ne&6)===0&&pt()}),o=null;else{switch($1(r)){case 1:o=Js;break;case 4:o=O1;break;case 16:o=Wi;break;case 536870912:o=U1;break;default:o=Wi}o=i2(o,qd.bind(null,e))}e.callbackPriority=n,e.callbackNode=o}}function qd(e,n){if(Fr=-1,Ir=0,(Ne&6)!==0)throw Error(u(327));var o=e.callbackNode;if(go()&&e.callbackNode!==o)return null;var r=Ki(e,e===qe?Je:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||n)n=Or(e,r);else{n=r;var a=Ne;Ne|=2;var l=Xd();(qe!==e||Je!==n)&&(nt=null,mo=Be()+500,Ft(e,n));do try{v4();break}catch(y){Zd(e,y)}while(!0);Ia(),Tr.current=l,Ne=a,We!==null?n=0:(qe=null,Je=0,n=Ke)}if(n!==0){if(n===2&&(a=ea(e),a!==0&&(r=a,n=xc(e,a))),n===1)throw o=mi,Ft(e,0),_t(e,r),mn(e,Be()),o;if(n===6)_t(e,r);else{if(a=e.current.alternate,(r&30)===0&&!m4(a)&&(n=Or(e,r),n===2&&(l=ea(e),l!==0&&(r=l,n=xc(e,l))),n===1))throw o=mi,Ft(e,0),_t(e,r),mn(e,Be()),o;switch(e.finishedWork=a,e.finishedLanes=r,n){case 0:case 1:throw Error(u(345));case 2:It(e,hn,nt);break;case 3:if(_t(e,r),(r&130023424)===r&&(n=yc+500-Be(),10<n)){if(Ki(e,0)!==0)break;if(a=e.suspendedLanes,(a&r)!==r){ln(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Ca(It.bind(null,e,hn,nt),n);break}It(e,hn,nt);break;case 4:if(_t(e,r),(r&4194240)===r)break;for(n=e.eventTimes,a=-1;0<r;){var f=31-Ln(r);l=1<<f,f=n[f],f>a&&(a=f),r&=~l}if(r=a,r=Be()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*h4(r/1960))-r,10<r){e.timeoutHandle=Ca(It.bind(null,e,hn,nt),r);break}It(e,hn,nt);break;case 5:It(e,hn,nt);break;default:throw Error(u(329))}}}return mn(e,Be()),e.callbackNode===o?qd.bind(null,e):null}function xc(e,n){var o=gi;return e.current.memoizedState.isDehydrated&&(Ft(e,n).flags|=256),e=Or(e,n),e!==2&&(n=hn,hn=o,n!==null&&jc(n)),e}function jc(e){hn===null?hn=e:hn.push.apply(hn,e)}function m4(e){for(var n=e;;){if(n.flags&16384){var o=n.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var r=0;r<o.length;r++){var a=o[r],l=a.getSnapshot;a=a.value;try{if(!En(l(),a))return!1}catch{return!1}}}if(o=n.child,n.subtreeFlags&16384&&o!==null)o.return=n,n=o;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function _t(e,n){for(n&=~vc,n&=~Ar,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var o=31-Ln(n),r=1<<o;e[o]=-1,n&=~r}}function Qd(e){if((Ne&6)!==0)throw Error(u(327));go();var n=Ki(e,0);if((n&1)===0)return mn(e,Be()),null;var o=Or(e,n);if(e.tag!==0&&o===2){var r=ea(e);r!==0&&(n=r,o=xc(e,r))}if(o===1)throw o=mi,Ft(e,0),_t(e,n),mn(e,Be()),o;if(o===6)throw Error(u(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,It(e,hn,nt),mn(e,Be()),null}function wc(e,n){var o=Ne;Ne|=1;try{return e(n)}finally{Ne=o,Ne===0&&(mo=Be()+500,pr&&pt())}}function Mt(e){vt!==null&&vt.tag===0&&(Ne&6)===0&&go();var n=Ne;Ne|=1;var o=Sn.transition,r=Pe;try{if(Sn.transition=null,Pe=1,e)return e()}finally{Pe=r,Sn.transition=o,Ne=n,(Ne&6)===0&&pt()}}function bc(){xn=ho.current,Ae(ho)}function Ft(e,n){e.finishedWork=null,e.finishedLanes=0;var o=e.timeoutHandle;if(o!==-1&&(e.timeoutHandle=-1,Vf(o)),We!==null)for(o=We.return;o!==null;){var r=o;switch(Aa(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ur();break;case 3:uo(),Ae(dn),Ae(tn),Ha();break;case 5:Ga(r);break;case 4:uo();break;case 13:Ae(Fe);break;case 19:Ae(Fe);break;case 10:Oa(r.type._context);break;case 22:case 23:bc()}o=o.return}if(qe=e,We=e=kt(e.current,null),Je=xn=n,Ke=0,mi=null,vc=Ar=zt=0,hn=gi=null,Tt!==null){for(n=0;n<Tt.length;n++)if(o=Tt[n],r=o.interleaved,r!==null){o.interleaved=null;var a=r.next,l=o.pending;if(l!==null){var f=l.next;l.next=a,r.next=f}o.pending=r}Tt=null}return e}function Zd(e,n){do{var o=We;try{if(Ia(),jr.current=Sr,wr){for(var r=Ie.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}wr=!1}if(Rt=0,Ye=He=Ie=null,li=!1,ui=0,gc.current=null,o===null||o.return===null){Ke=1,mi=n,We=null;break}e:{var l=e,f=o.return,y=o,w=n;if(n=Je,y.flags|=32768,w!==null&&typeof w=="object"&&typeof w.then=="function"){var z=w,V=y,K=V.tag;if((V.mode&1)===0&&(K===0||K===11||K===15)){var G=V.alternate;G?(V.updateQueue=G.updateQueue,V.memoizedState=G.memoizedState,V.lanes=G.lanes):(V.updateQueue=null,V.memoizedState=null)}var ie=jd(f);if(ie!==null){ie.flags&=-257,wd(ie,f,y,l,n),ie.mode&1&&xd(l,z,n),n=ie,w=z;var ae=n.updateQueue;if(ae===null){var ce=new Set;ce.add(w),n.updateQueue=ce}else ae.add(w);break e}else{if((n&1)===0){xd(l,z,n),Nc();break e}w=Error(u(426))}}else if(Me&&y.mode&1){var $e=jd(f);if($e!==null){($e.flags&65536)===0&&($e.flags|=256),wd($e,f,y,l,n),Ma(po(w,y));break e}}l=w=po(w,y),Ke!==4&&(Ke=2),gi===null?gi=[l]:gi.push(l),l=f;do{switch(l.tag){case 3:l.flags|=65536,n&=-n,l.lanes|=n;var L=_d(l,w,n);Hu(l,L);break e;case 1:y=w;var N=l.type,T=l.stateNode;if((l.flags&128)===0&&(typeof N.getDerivedStateFromError=="function"||T!==null&&typeof T.componentDidCatch=="function"&&(gt===null||!gt.has(T)))){l.flags|=65536,n&=-n,l.lanes|=n;var Z=kd(l,y,n);Hu(l,Z);break e}}l=l.return}while(l!==null)}e2(o)}catch(le){n=le,We===o&&o!==null&&(We=o=o.return);continue}break}while(!0)}function Xd(){var e=Tr.current;return Tr.current=Sr,e===null?Sr:e}function Nc(){(Ke===0||Ke===3||Ke===2)&&(Ke=4),qe===null||(zt&268435455)===0&&(Ar&268435455)===0||_t(qe,Je)}function Or(e,n){var o=Ne;Ne|=2;var r=Xd();(qe!==e||Je!==n)&&(nt=null,Ft(e,n));do try{g4();break}catch(a){Zd(e,a)}while(!0);if(Ia(),Ne=o,Tr.current=r,We!==null)throw Error(u(261));return qe=null,Je=0,Ke}function g4(){for(;We!==null;)Jd(We)}function v4(){for(;We!==null&&!B0();)Jd(We)}function Jd(e){var n=o2(e.alternate,e,xn);e.memoizedProps=e.pendingProps,n===null?e2(e):We=n,gc.current=null}function e2(e){var n=e;do{var o=n.alternate;if(e=n.return,(n.flags&32768)===0){if(o=l4(o,n,xn),o!==null){We=o;return}}else{if(o=u4(o,n),o!==null){o.flags&=32767,We=o;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ke=6,We=null;return}}if(n=n.sibling,n!==null){We=n;return}We=n=e}while(n!==null);Ke===0&&(Ke=5)}function It(e,n,o){var r=Pe,a=Sn.transition;try{Sn.transition=null,Pe=1,y4(e,n,o,r)}finally{Sn.transition=a,Pe=r}return null}function y4(e,n,o,r){do go();while(vt!==null);if((Ne&6)!==0)throw Error(u(327));o=e.finishedWork;var a=e.finishedLanes;if(o===null)return null;if(e.finishedWork=null,e.finishedLanes=0,o===e.current)throw Error(u(177));e.callbackNode=null,e.callbackPriority=0;var l=o.lanes|o.childLanes;if(Z0(e,l),e===qe&&(We=qe=null,Je=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||zr||(zr=!0,i2(Wi,function(){return go(),null})),l=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||l){l=Sn.transition,Sn.transition=null;var f=Pe;Pe=1;var y=Ne;Ne|=4,gc.current=null,p4(e,o),Gd(o,e),If(Na),Qi=!!ba,Na=ba=null,e.current=o,f4(o),$0(),Ne=y,Pe=f,Sn.transition=l}else e.current=o;if(zr&&(zr=!1,vt=e,Mr=a),l=e.pendingLanes,l===0&&(gt=null),V0(o.stateNode),mn(e,Be()),n!==null)for(r=e.onRecoverableError,o=0;o<n.length;o++)a=n[o],r(a.value,{componentStack:a.stack,digest:a.digest});if(Rr)throw Rr=!1,e=_c,_c=null,e;return(Mr&1)!==0&&e.tag!==0&&go(),l=e.pendingLanes,(l&1)!==0?e===kc?vi++:(vi=0,kc=e):vi=0,pt(),null}function go(){if(vt!==null){var e=$1(Mr),n=Sn.transition,o=Pe;try{if(Sn.transition=null,Pe=16>e?16:e,vt===null)var r=!1;else{if(e=vt,vt=null,Mr=0,(Ne&6)!==0)throw Error(u(331));var a=Ne;for(Ne|=4,se=e.current;se!==null;){var l=se,f=l.child;if((se.flags&16)!==0){var y=l.deletions;if(y!==null){for(var w=0;w<y.length;w++){var z=y[w];for(se=z;se!==null;){var V=se;switch(V.tag){case 0:case 11:case 15:hi(8,V,l)}var K=V.child;if(K!==null)K.return=V,se=K;else for(;se!==null;){V=se;var G=V.sibling,ie=V.return;if(Od(V),V===z){se=null;break}if(G!==null){G.return=ie,se=G;break}se=ie}}}var ae=l.alternate;if(ae!==null){var ce=ae.child;if(ce!==null){ae.child=null;do{var $e=ce.sibling;ce.sibling=null,ce=$e}while(ce!==null)}}se=l}}if((l.subtreeFlags&2064)!==0&&f!==null)f.return=l,se=f;else e:for(;se!==null;){if(l=se,(l.flags&2048)!==0)switch(l.tag){case 0:case 11:case 15:hi(9,l,l.return)}var L=l.sibling;if(L!==null){L.return=l.return,se=L;break e}se=l.return}}var N=e.current;for(se=N;se!==null;){f=se;var T=f.child;if((f.subtreeFlags&2064)!==0&&T!==null)T.return=f,se=T;else e:for(f=N;se!==null;){if(y=se,(y.flags&2048)!==0)try{switch(y.tag){case 0:case 11:case 15:Dr(9,y)}}catch(le){Oe(y,y.return,le)}if(y===f){se=null;break e}var Z=y.sibling;if(Z!==null){Z.return=y.return,se=Z;break e}se=y.return}}if(Ne=a,pt(),$n&&typeof $n.onPostCommitFiberRoot=="function")try{$n.onPostCommitFiberRoot(Gi,e)}catch{}r=!0}return r}finally{Pe=o,Sn.transition=n}}return!1}function n2(e,n,o){n=po(o,n),n=_d(e,n,1),e=ht(e,n,1),n=ln(),e!==null&&(Bo(e,1,n),mn(e,n))}function Oe(e,n,o){if(e.tag===3)n2(e,e,o);else for(;n!==null;){if(n.tag===3){n2(n,e,o);break}else if(n.tag===1){var r=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(gt===null||!gt.has(r))){e=po(o,e),e=kd(n,e,1),n=ht(n,e,1),e=ln(),n!==null&&(Bo(n,1,e),mn(n,e));break}}n=n.return}}function _4(e,n,o){var r=e.pingCache;r!==null&&r.delete(n),n=ln(),e.pingedLanes|=e.suspendedLanes&o,qe===e&&(Je&o)===o&&(Ke===4||Ke===3&&(Je&130023424)===Je&&500>Be()-yc?Ft(e,0):vc|=o),mn(e,n)}function t2(e,n){n===0&&((e.mode&1)===0?n=1:(n=Hi,Hi<<=1,(Hi&130023424)===0&&(Hi=4194304)));var o=ln();e=Xn(e,n),e!==null&&(Bo(e,n,o),mn(e,o))}function k4(e){var n=e.memoizedState,o=0;n!==null&&(o=n.retryLane),t2(e,o)}function x4(e,n){var o=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(o=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(u(314))}r!==null&&r.delete(n),t2(e,o)}var o2;o2=function(e,n,o){if(e!==null)if(e.memoizedProps!==n.pendingProps||dn.current)fn=!0;else{if((e.lanes&o)===0&&(n.flags&128)===0)return fn=!1,c4(e,n,o);fn=(e.flags&131072)!==0}else fn=!1,Me&&(n.flags&1048576)!==0&&Mu(n,hr,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;Lr(e,n),e=n.pendingProps;var a=oo(n,tn.current);lo(n,o),a=qa(null,n,r,e,a,o);var l=Qa();return n.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,pn(r)?(l=!0,dr(n)):l=!1,n.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,$a(n),a.updater=Cr,n.stateNode=a,a._reactInternals=n,tc(n,r,e,o),n=sc(null,n,r,!0,l,o)):(n.tag=0,Me&&l&&Ta(n),cn(null,n,a,o),n=n.child),n;case 16:r=n.elementType;e:{switch(Lr(e,n),e=n.pendingProps,a=r._init,r=a(r._payload),n.type=r,a=n.tag=w4(r),e=Tn(r,e),a){case 0:n=rc(null,n,r,e,o);break e;case 1:n=Ld(null,n,r,e,o);break e;case 11:n=bd(null,n,r,e,o);break e;case 14:n=Nd(null,n,r,Tn(r.type,e),o);break e}throw Error(u(306,r,""))}return n;case 0:return r=n.type,a=n.pendingProps,a=n.elementType===r?a:Tn(r,a),rc(e,n,r,a,o);case 1:return r=n.type,a=n.pendingProps,a=n.elementType===r?a:Tn(r,a),Ld(e,n,r,a,o);case 3:e:{if(Ed(n),e===null)throw Error(u(387));r=n.pendingProps,l=n.memoizedState,a=l.element,Vu(e,n),kr(n,r,null,o);var f=n.memoizedState;if(r=f.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:f.cache,pendingSuspenseBoundaries:f.pendingSuspenseBoundaries,transitions:f.transitions},n.updateQueue.baseState=l,n.memoizedState=l,n.flags&256){a=po(Error(u(423)),n),n=Dd(e,n,r,o,a);break e}else if(r!==a){a=po(Error(u(424)),n),n=Dd(e,n,r,o,a);break e}else for(kn=lt(n.stateNode.containerInfo.firstChild),_n=n,Me=!0,Dn=null,o=Wu(n,null,r,o),n.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(so(),r===a){n=et(e,n,o);break e}cn(e,n,r,o)}n=n.child}return n;case 5:return Yu(n),e===null&&za(n),r=n.type,a=n.pendingProps,l=e!==null?e.memoizedProps:null,f=a.children,Sa(r,a)?f=null:l!==null&&Sa(r,l)&&(n.flags|=32),Pd(e,n),cn(e,n,f,o),n.child;case 6:return e===null&&za(n),null;case 13:return Td(e,n,o);case 4:return Wa(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=ao(n,null,r,o):cn(e,n,r,o),n.child;case 11:return r=n.type,a=n.pendingProps,a=n.elementType===r?a:Tn(r,a),bd(e,n,r,a,o);case 7:return cn(e,n,n.pendingProps,o),n.child;case 8:return cn(e,n,n.pendingProps.children,o),n.child;case 12:return cn(e,n,n.pendingProps.children,o),n.child;case 10:e:{if(r=n.type._context,a=n.pendingProps,l=n.memoizedProps,f=a.value,Ee(vr,r._currentValue),r._currentValue=f,l!==null)if(En(l.value,f)){if(l.children===a.children&&!dn.current){n=et(e,n,o);break e}}else for(l=n.child,l!==null&&(l.return=n);l!==null;){var y=l.dependencies;if(y!==null){f=l.child;for(var w=y.firstContext;w!==null;){if(w.context===r){if(l.tag===1){w=Jn(-1,o&-o),w.tag=2;var z=l.updateQueue;if(z!==null){z=z.shared;var V=z.pending;V===null?w.next=w:(w.next=V.next,V.next=w),z.pending=w}}l.lanes|=o,w=l.alternate,w!==null&&(w.lanes|=o),Ua(l.return,o,n),y.lanes|=o;break}w=w.next}}else if(l.tag===10)f=l.type===n.type?null:l.child;else if(l.tag===18){if(f=l.return,f===null)throw Error(u(341));f.lanes|=o,y=f.alternate,y!==null&&(y.lanes|=o),Ua(f,o,n),f=l.sibling}else f=l.child;if(f!==null)f.return=l;else for(f=l;f!==null;){if(f===n){f=null;break}if(l=f.sibling,l!==null){l.return=f.return,f=l;break}f=f.return}l=f}cn(e,n,a.children,o),n=n.child}return n;case 9:return a=n.type,r=n.pendingProps.children,lo(n,o),a=bn(a),r=r(a),n.flags|=1,cn(e,n,r,o),n.child;case 14:return r=n.type,a=Tn(r,n.pendingProps),a=Tn(r.type,a),Nd(e,n,r,a,o);case 15:return Sd(e,n,n.type,n.pendingProps,o);case 17:return r=n.type,a=n.pendingProps,a=n.elementType===r?a:Tn(r,a),Lr(e,n),n.tag=1,pn(r)?(e=!0,dr(n)):e=!1,lo(n,o),vd(n,r,a),tc(n,r,a,o),sc(null,n,r,!0,e,o);case 19:return Rd(e,n,o);case 22:return Cd(e,n,o)}throw Error(u(156,n.tag))};function i2(e,n){return F1(e,n)}function j4(e,n,o,r){this.tag=e,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Cn(e,n,o,r){return new j4(e,n,o,r)}function Sc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function w4(e){if(typeof e=="function")return Sc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ue)return 11;if(e===de)return 14}return 2}function kt(e,n){var o=e.alternate;return o===null?(o=Cn(e.tag,n,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=n,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&14680064,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,n=e.dependencies,o.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o}function Ur(e,n,o,r,a,l){var f=2;if(r=e,typeof e=="function")Sc(e)&&(f=1);else if(typeof e=="string")f=5;else e:switch(e){case B:return Ot(o.children,a,l,n);case X:f=8,a|=8;break;case q:return e=Cn(12,o,n,a|2),e.elementType=q,e.lanes=l,e;case ge:return e=Cn(13,o,n,a),e.elementType=ge,e.lanes=l,e;case ne:return e=Cn(19,o,n,a),e.elementType=ne,e.lanes=l,e;case ke:return Br(o,a,l,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case W:f=10;break e;case te:f=9;break e;case ue:f=11;break e;case de:f=14;break e;case F:f=16,r=null;break e}throw Error(u(130,e==null?e:typeof e,""))}return n=Cn(f,o,n,a),n.elementType=e,n.type=r,n.lanes=l,n}function Ot(e,n,o,r){return e=Cn(7,e,r,n),e.lanes=o,e}function Br(e,n,o,r){return e=Cn(22,e,r,n),e.elementType=ke,e.lanes=o,e.stateNode={isHidden:!1},e}function Cc(e,n,o){return e=Cn(6,e,null,n),e.lanes=o,e}function Pc(e,n,o){return n=Cn(4,e.children!==null?e.children:[],e.key,n),n.lanes=o,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function b4(e,n,o,r,a){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=na(0),this.expirationTimes=na(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=na(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Lc(e,n,o,r,a,l,f,y,w){return e=new b4(e,n,o,y,w),n===1?(n=1,l===!0&&(n|=8)):n=0,l=Cn(3,null,null,n),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},$a(l),e}function N4(e,n,o){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:J,key:r==null?null:""+r,children:e,containerInfo:n,implementation:o}}function r2(e){if(!e)return dt;e=e._reactInternals;e:{if(Ct(e)!==e||e.tag!==1)throw Error(u(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(pn(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(u(171))}if(e.tag===1){var o=e.type;if(pn(o))return Au(e,o,n)}return n}function s2(e,n,o,r,a,l,f,y,w){return e=Lc(o,r,!0,e,a,l,f,y,w),e.context=r2(null),o=e.current,r=ln(),a=yt(o),l=Jn(r,a),l.callback=n??null,ht(o,l,a),e.current.lanes=a,Bo(e,a,r),mn(e,r),e}function $r(e,n,o,r){var a=n.current,l=ln(),f=yt(a);return o=r2(o),n.context===null?n.context=o:n.pendingContext=o,n=Jn(l,f),n.payload={element:e},r=r===void 0?null:r,r!==null&&(n.callback=r),e=ht(a,n,f),e!==null&&(zn(e,a,f,l),_r(e,a,f)),f}function Wr(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function a2(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<n?o:n}}function Ec(e,n){a2(e,n),(e=e.alternate)&&a2(e,n)}function S4(){return null}var c2=typeof reportError=="function"?reportError:function(e){console.error(e)};function Dc(e){this._internalRoot=e}Gr.prototype.render=Dc.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(u(409));$r(e,n,null,null)},Gr.prototype.unmount=Dc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Mt(function(){$r(null,e,null,null)}),n[Yn]=null}};function Gr(e){this._internalRoot=e}Gr.prototype.unstable_scheduleHydration=function(e){if(e){var n=V1();e={blockedOn:null,target:e,priority:n};for(var o=0;o<st.length&&n!==0&&n<st[o].priority;o++);st.splice(o,0,e),o===0&&Y1(e)}};function Tc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Vr(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function l2(){}function C4(e,n,o,r,a){if(a){if(typeof r=="function"){var l=r;r=function(){var z=Wr(f);l.call(z)}}var f=s2(n,r,e,0,null,!1,!1,"",l2);return e._reactRootContainer=f,e[Yn]=f.current,ni(e.nodeType===8?e.parentNode:e),Mt(),f}for(;a=e.lastChild;)e.removeChild(a);if(typeof r=="function"){var y=r;r=function(){var z=Wr(w);y.call(z)}}var w=Lc(e,0,!1,null,null,!1,!1,"",l2);return e._reactRootContainer=w,e[Yn]=w.current,ni(e.nodeType===8?e.parentNode:e),Mt(function(){$r(n,w,o,r)}),w}function Hr(e,n,o,r,a){var l=o._reactRootContainer;if(l){var f=l;if(typeof a=="function"){var y=a;a=function(){var w=Wr(f);y.call(w)}}$r(n,f,e,a)}else f=C4(o,n,e,a,r);return Wr(f)}W1=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var o=Uo(n.pendingLanes);o!==0&&(ta(n,o|1),mn(n,Be()),(Ne&6)===0&&(mo=Be()+500,pt()))}break;case 13:Mt(function(){var r=Xn(e,1);if(r!==null){var a=ln();zn(r,e,1,a)}}),Ec(e,1)}},oa=function(e){if(e.tag===13){var n=Xn(e,134217728);if(n!==null){var o=ln();zn(n,e,134217728,o)}Ec(e,134217728)}},G1=function(e){if(e.tag===13){var n=yt(e),o=Xn(e,n);if(o!==null){var r=ln();zn(o,e,n,r)}Ec(e,n)}},V1=function(){return Pe},H1=function(e,n){var o=Pe;try{return Pe=e,n()}finally{Pe=o}},qs=function(e,n,o){switch(n){case"input":if(Bs(e,o),n=o.name,o.type==="radio"&&n!=null){for(o=e;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<o.length;n++){var r=o[n];if(r!==e&&r.form===e.form){var a=lr(r);if(!a)throw Error(u(90));Ao(r),Bs(r,a)}}}break;case"textarea":x1(e,o);break;case"select":n=o.value,n!=null&&Vt(e,!!o.multiple,n,!1)}},E1=wc,D1=Mt;var P4={usingClientEntryPoint:!1,Events:[ii,no,lr,P1,L1,wc]},yi={findFiberByHostInstance:Pt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},L4={bundleType:yi.bundleType,version:yi.version,rendererPackageName:yi.rendererPackageName,rendererConfig:yi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:O.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=z1(e),e===null?null:e.stateNode},findFiberByHostInstance:yi.findFiberByHostInstance||S4,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Kr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Kr.isDisabled&&Kr.supportsFiber)try{Gi=Kr.inject(L4),$n=Kr}catch{}}return un.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P4,un.createPortal=function(e,n){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Tc(n))throw Error(u(200));return N4(e,n,null,o)},un.createRoot=function(e,n){if(!Tc(e))throw Error(u(299));var o=!1,r="",a=c2;return n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),n=Lc(e,1,!1,null,null,o,!1,r,a),e[Yn]=n.current,ni(e.nodeType===8?e.parentNode:e),new Dc(n)},un.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=z1(n),e=e===null?null:e.stateNode,e},un.flushSync=function(e){return Mt(e)},un.hydrate=function(e,n,o){if(!Vr(n))throw Error(u(200));return Hr(null,e,n,!0,o)},un.hydrateRoot=function(e,n,o){if(!Tc(e))throw Error(u(405));var r=o!=null&&o.hydratedSources||null,a=!1,l="",f=c2;if(o!=null&&(o.unstable_strictMode===!0&&(a=!0),o.identifierPrefix!==void 0&&(l=o.identifierPrefix),o.onRecoverableError!==void 0&&(f=o.onRecoverableError)),n=s2(n,null,e,1,o??null,a,!1,l,f),e[Yn]=n.current,ni(e),r)for(e=0;e<r.length;e++)o=r[e],a=o._getVersion,a=a(o._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[o,a]:n.mutableSourceEagerHydrationData.push(o,a);return new Gr(n)},un.render=function(e,n,o){if(!Vr(n))throw Error(u(200));return Hr(null,e,n,!1,o)},un.unmountComponentAtNode=function(e){if(!Vr(e))throw Error(u(40));return e._reactRootContainer?(Mt(function(){Hr(null,null,e,!1,function(){e._reactRootContainer=null,e[Yn]=null})}),!0):!1},un.unstable_batchedUpdates=wc,un.unstable_renderSubtreeIntoContainer=function(e,n,o,r){if(!Vr(o))throw Error(u(200));if(e==null||e._reactInternals===void 0)throw Error(u(38));return Hr(e,n,o,!1,r)},un.version="18.3.1-next-f1338f8080-20240426",un}var Uc;function Bc(){if(Uc)return Zr.exports;Uc=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(c){console.error(c)}}return i(),Zr.exports=m2(),Zr.exports}var $c;function g2(){if($c)return _i;$c=1;var i=Bc();return _i.createRoot=i.createRoot,_i.hydrateRoot=i.hydrateRoot,_i}var v2=g2(),j=Qr();function y2({tabs:i,activeTab:c,onTabChange:u}){return t.jsx("div",{className:"cn-tab-nav",children:i.map(d=>t.jsx("button",{"data-tab":d.id,className:`cn-tab-nav__item${c===d.id?" cn-tab-nav__item--active":""}`,onClick:()=>u(d.id),type:"button",children:d.label},d.id))})}const Wc="cookie-notice",es=()=>typeof window<"u"&&window.wp&&window.wp.i18n||null,s=(i,c=Wc)=>{const u=es();return u?u.__(i,c):i},yo=(i,c,u,d=Wc)=>{const p=es();return p?p._n(i,c,u,d):u===1?i:c},we=(i,...c)=>{const u=es();if(u&&typeof u.sprintf=="function")try{return u.sprintf(i,...c)}catch{return i}return i};function Ut({type:i="info",dismissible:c=!1,onDismiss:u,children:d}){const p={success:"notice-success",error:"notice-error",warning:"notice-warning",info:"notice-info"}[i]||"notice-info";return t.jsxs("div",{className:`notice inline ${p}${c?" is-dismissible":""}`,children:[t.jsx("p",{children:d}),c&&u&&t.jsx("button",{type:"button",className:"notice-dismiss",onClick:u,children:t.jsx("span",{className:"screen-reader-text",children:s("Dismiss this notice.","cookie-notice")})})]})}function Ze(){const i=window.cnReactData||{},c=i.app_id||"",u=(i.subscription||"").toLowerCase(),d=!!c;let p="banner_only";return d&&u==="pro"?p="pro":d&&(p="free"),{tier:p,isBannerOnly:p==="banner_only",isFree:p==="free",isPro:p==="pro",isConnected:d,version:i.version||""}}const Gc=j.createContext({config:null,isLoadingConfig:!1,refetchConfig:()=>{},configRefresh:{state:"idle",lastSynced:"",retry:()=>{}}});function jt(){return j.useContext(Gc)}function ns(){return s("Shared settings are off. Each site uses its own settings — manage them from each site's dashboard.","cookie-notice")}function ts(i){return{networkManaged:s("Managed by network","cookie-notice"),perSite:s("Set per site","cookie-notice"),pending:s("Pending","cookie-notice"),inactive:s("Not active","cookie-notice"),checking:s("Checking…","cookie-notice")}[i]||s("Not confirmed","cookie-notice")}function os(i){return{networkManaged:s("Managed by your network administrator","cookie-notice"),perSite:ns(),pending:s("Pending: finish setup in your Cookie Compliance account","cookie-notice"),inactive:s("Not active: visitors see a basic notice only","cookie-notice"),checking:s("Checking whether your banner is live…","cookie-notice")}[i]||s("Not confirmed — reload to see the saved value","cookie-notice")}function Re(){var i;return!!((i=window.cnReactData)!=null&&i.networkOverride)}function is(){return s("Global network settings override is active. Every site will use the same network settings. Please contact super administrator if you want to have more control over the settings.","cookie-notice")}function rs(){return t.jsx(Ut,{type:"info",children:is()})}function ss(){return t.jsx(Ut,{type:"info",children:ns()})}function as({managed:i,perSite:c=!1,children:u}){return!i&&!c?u:t.jsxs(t.Fragment,{children:[i?t.jsx(rs,{}):t.jsx(ss,{}),t.jsx("div",{className:"cn-network-managed",inert:"",children:u})]})}const _2=()=>({banner_only:s("Banner Only (Not Connected)","cookie-notice"),free:s("Free Plan","cookie-notice"),pro:s("Pro Plan","cookie-notice")});function cs(i){if(!i)return"";const c=Date.parse(String(i).trim().replace(" ","T")+"Z");return Number.isNaN(c)?"":new Date(c).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function k2(){const{configRefresh:i}=jt(),{state:c,lastSynced:u,retry:d}=i||{};if(c==="refreshing")return t.jsx("span",{className:"cn-footer__sync",children:s("Refreshing settings…","cookie-notice")});if(c==="failed"){const h=cs(u);return t.jsxs("span",{className:"cn-footer__sync cn-footer__sync--failed",children:[h?we(s("Couldn't reach Hu-manity — showing settings from %s.","cookie-notice"),h):s("Couldn't reach Hu-manity — showing cached settings.","cookie-notice")," ",t.jsx("button",{type:"button",className:"cn-footer__sync-retry",onClick:d,children:s("Retry","cookie-notice")})]})}const p=cs(u);return p?t.jsx("span",{className:"cn-footer__sync",children:we(s("Settings synced %s","cookie-notice"),p)}):null}function x2(){const{tier:i,version:c}=Ze(),u=Re()?s("Managed by network","cookie-notice"):_2()[i]||"";return t.jsxs("div",{className:"cn-footer",children:[t.jsxs("span",{className:"cn-footer__version",children:[we(s("Cookie Compliance v%1$s — %2$s","cookie-notice"),c||"—",u)," ",t.jsx(k2,{})]}),t.jsxs("span",{className:"cn-footer__links",children:[t.jsx("a",{href:"https://cookie-compliance.co/documentation/",target:"_blank",rel:"noopener noreferrer",children:s("Documentation","cookie-notice")})," | ",t.jsx("a",{href:"https://cookie-compliance.co/mcp/",target:"_blank",rel:"noopener noreferrer",children:s("AI assistant","cookie-notice")})," | ",t.jsx("a",{href:"https://cookie-compliance.co/support/",target:"_blank",rel:"noopener noreferrer",children:s("Support","cookie-notice")})," | ",t.jsx("a",{href:"https://cookie-compliance.co/privacy-policy/",target:"_blank",rel:"noopener noreferrer",children:s("Privacy Policy","cookie-notice")})]})]})}const Vc=j.createContext({dashboard:null,refetchDashboard:()=>{},isLoadingDashboard:!1,scorecardStatus:"loading"});function Mn(){return j.useContext(Vc)}const ls=i=>"cn_setup_wizard_complete_"+(i||"default"),us=i=>"cn_has_platform_config_"+(i||""),j2=i=>"cn_setup_just_finished_"+(i||"default"),Hc=j.createContext(null);function w2({onLawSave:i,onConsentClose:c,children:u}){const[d,p]=j.useState(!1),[h,m]=j.useState(0),[x,v]=j.useState(!1),[g,k]=j.useState(!1),[_,b]=j.useState(0),[A,C]=j.useState(!1),D=j.useMemo(()=>{var J;try{const B=((J=window.cnReactData)==null?void 0:J.app_id)||"";return!!B&&localStorage.getItem(us(B))==="1"}catch{return!1}},[]),P=j.useCallback(()=>{p(!1),v(!1),k(!1),C(!1)},[]),E=j.useCallback(()=>{P(),p(!0),m(J=>J+1)},[P]),I=j.useCallback(()=>{P(),k(!0),b(J=>J+1)},[P]),R=j.useCallback(()=>{v(!0),setTimeout(()=>{p(!1),v(!1),i&&i()},160)},[i]),O=j.useCallback(()=>{C(!0),setTimeout(()=>{k(!1),C(!1),c&&c()},160)},[c]),oe={showLawWizard:d,lawScrollTrigger:h,lawClosing:x,showConsentPanel:g,consentScrollTrigger:_,consentClosing:A,hasPlatformConfig:D,openLawWizard:E,openConsentPanel:I,closeLawWizard:R,closeConsentPanel:O,closeAllPanels:P};return t.jsx(Hc.Provider,{value:oe,children:u})}function ki(){const i=j.useContext(Hc);if(!i)throw new Error("usePanels() must be used inside <PanelProvider>.");return i}const b2={"&":"&","<":"<",">":">",""":'"',"'":"'"};function ds(i){return typeof i=="string"?i.replace(/&(?:amp|lt|gt|quot|#039);/g,c=>b2[c]):Array.isArray(i)?i.map(ds):i&&typeof i=="object"?Object.fromEntries(Object.entries(i).map(([c,u])=>[c,ds(u)])):i}function Kc(i){if(!i||typeof i!="object"||Array.isArray(i))return i;const c={...i};for(const u of["error","message"])u in c&&(c[u]=ds(c[u]));return c}const N2="--CNWAF-B64--",S2=["cn_react_update_design","cn_react_save_banner_style","cn_react_dashboard","cn_react_save_network_options"],Yc="cn_react_dashboard",C2=["register","login","login_code","login_code_resend","login_app","configure","sync_config"],P2=["app_id","app_key"],_o=new Set;function L2(i){return _o.add(i),()=>_o.delete(i)}async function xi(i,c){_o.forEach(d=>d.start());let u=!0;try{const d=await i();u=!1;try{_o.forEach(p=>p.reply&&p.reply(d))}catch{}return d}catch(d){throw u=!(d&&d.answered),d}finally{_o.forEach(d=>d.settle(u,c))}}const ji={options:{timeout:()=>s("The request timed out before the server answered. Your change may not have been saved — reload the page to see the saved value.","cookie-notice"),network:()=>s("The request could not reach the server. Your change may not have been saved — check your connection and reload the page to see the saved value.","cookie-notice"),http:i=>we(s("AJAX error: %d. Your change may not have been saved — reload the page to see the saved value.","cookie-notice"),i),unreadable:()=>s("The server's reply could not be read. Your change may not have been saved — reload the page to see the saved value.","cookie-notice")},read:{timeout:()=>s("Couldn't load — the server took too long to answer. Try again.","cookie-notice"),network:()=>s("Couldn't load — the server could not be reached. Check your connection and try again.","cookie-notice"),http:i=>we(s("Couldn't load (HTTP %d) — try again.","cookie-notice"),i),unreadable:()=>s("Couldn't load — the server's reply could not be read. Try again.","cookie-notice")},request:{timeout:()=>s("The server took too long to answer. Try again.","cookie-notice"),network:()=>s("The server could not be reached. Check your connection and try again.","cookie-notice"),http:i=>we(s("AJAX error: %d","cookie-notice"),i),unreadable:()=>s("The server's reply could not be read. Try again.","cookie-notice")}};function Ge(i,c={},u={}){return S2.includes(i)?xi(()=>ps(i,c,u),i):ps(i,c,u)}async function ps(i,c,{timeout:u=0,kind:d="request"}){var A,C,D;const p=ji[d]||ji.request,h=window.cnReactData||{},m=new FormData;m.append("action",i),m.append("nonce",h.nonce||""),h.network&&m.append("cn_network","1"),Object.entries(c).forEach(([P,E])=>{m.append(P,E)});const x=u?new AbortController:null,v=x?setTimeout(()=>x.abort(),u):null;let g,k;try{g=await fetch(h.ajaxURL||"/wp-admin/admin-ajax.php",{method:"POST",credentials:"same-origin",body:m,signal:x?x.signal:void 0}),k=await g.text()}catch{throw x&&x.signal.aborted?tt(p.timeout(),{timedOut:!0}):tt(p.network(),{network:!0})}finally{clearTimeout(v)}let _=null;try{_=JSON.parse(k)}catch{}const b=_&&typeof _=="object"&&_.success===!1?_:null;if(!g.ok){if(g.status===403){if(b&&typeof((A=b.data)==null?void 0:A.error)=="string"&&b.data.error)throw wi(b.data.error);const P=s("This save was blocked by a security plugin or firewall on your site (HTTP 403). Add an allow-list rule for the Cookie Compliance save action in your firewall (e.g. WordFence → Firewall → Live Traffic), then try again.","cookie-notice");throw b?wi(P):tt(P)}throw b?wi(((C=b.data)==null?void 0:C.error)||ji.request.http(g.status)):tt(p.http(g.status))}if(b)throw wi(((D=b.data)==null?void 0:D.error)||s("Request failed","cookie-notice"));if(!_||typeof _!="object"||_.success!==!0)throw tt(p.unreadable());return _.data}function wi(i){return Object.assign(new Error(i),{refused:!0,answered:!0})}function fs(i){return Object.assign(new Error(i),{answered:!0})}function qc(i){try{return JSON.parse(i)}catch{return}}const Qc=i=>!!i&&typeof i=="object"&&i.success===!1;function tt(i,c={}){return Object.assign(new Error(i),{uncertain:!0},c)}function gn(i,c={},u="",d=""){return C2.includes(i)?xi(()=>Zc(i,c,u,d),i):Zc(i,c,u,d)}async function Zc(i,c,u,d){var k;const p=window.cnReactData||{},h=new FormData;h.append("action","cn_api_request"),h.append("nonce",d||p.welcomeNonce||""),h.append("request",i),h.append("cn_nonce",u),p.network&&h.append("cn_network","1"),Object.entries(c).forEach(([_,b])=>{h.append(_,b)});let m,x;try{m=await fetch(p.ajaxURL||"/wp-admin/admin-ajax.php",{method:"POST",credentials:"same-origin",body:h}),x=await m.text()}catch(_){throw Object.assign(_ instanceof Error?_:new Error(String(_)),{uncertain:!0,network:!0})}const v=qc(x);if(!m.ok){const _=`Request failed: ${m.status}`;throw Qc(v)?fs(((k=v.data)==null?void 0:k.error)||_):tt(_)}if(v===void 0)throw tt(ji.request.unreadable());const g=Kc(v);if(g&&g.error)throw Object.assign(fs(g.error),g.expired?{expired:!0}:{});return g}const E2=()=>{const i=window.cnReactData||{},c={};if(i.devMode){const u=new URLSearchParams(window.location.search),d=u.get("cn_usage"),p=u.get("cn_tier");d!==null&&(c.cn_usage=d),p!==null&&(c.cn_tier=p)}return Ge(Yc,c,{kind:"read"})},D2=()=>Ge("cn_react_config",{},{kind:"read"}),T2=(i={})=>Ge("cn_react_consent_logs",i,{kind:"read"}),A2=(i={})=>Ge("cn_react_export_consent_logs",i,{kind:"read"}),hs=(i={})=>Ge("cn_react_privacy_consent",i,{kind:"read"}),R2=(i={})=>{const c={};return Object.entries(i).forEach(([u,d])=>{d.active!==void 0&&(c[`sources[${u}][active]`]=d.active?"1":"0"),d.activeType!==void 0&&(c[`sources[${u}][active_type]`]=d.activeType)}),Ge("cn_react_save_privacy_consent",c)},z2=(i,c,u)=>Ge("cn_react_privacy_consent_form_status",{source:i,form_id:c,status:u?"1":"0"}),M2=(i={})=>Ge("cn_react_privacy_consent_logs",i,{kind:"read"}),bi=3e4,Xc=(i={})=>{const c=()=>ps("cn_react_save_options",i,{timeout:bi,kind:"options"});return P2.some(u=>u in i)?xi(c,"cn_react_save_options"):c()},F2=()=>Ge("cn_react_reset_options",{},{timeout:bi,kind:"options"}),I2=({global_override:i,global_cookie:c})=>Ge("cn_react_save_network_options",{global_override:i?"1":"",global_cookie:c?"1":""},{timeout:bi,kind:"options"}),O2=()=>Ge("cn_react_plugin_options",{},{timeout:bi,kind:"read"}),U2=()=>Ge("cn_react_dismiss_welcome"),ms=()=>Ge("cn_react_complete_setup_wizard"),B2=i=>Ge("cn_react_save_banner_style",{style:i}),$2=i=>Ge("cn_react_rule_values",{param:i},{kind:"read"}),Jc=(i=[])=>{const c={};return i.forEach((u,d)=>{c[`languages[${d}]`]=u}),Ge("cn_react_apply_languages",c)},gs=(i={},c={},u={})=>{const d={};return Object.entries(i).forEach(([p,h])=>{d[`design[${p}]`]=h}),Object.entries(c).forEach(([p,h])=>{d[`config[${p}]`]=h}),Object.entries(u).forEach(([p,h])=>{d[`consentConfig[${p}]`]=h}),Ge("cn_react_update_design",d)},W2=()=>Ge("cn_react_update_design",{sync_privacy_policy:"1"}),G2=()=>Ge("cn_react_dev_reset"),V2=()=>{const i=window.cnReactData||{},c={};return i.network&&(c.cn_network="1"),gn("sync_config",c,"",i.welcomeNonce||"")},H2=()=>xi(K2,"cn_purge_cache");async function K2(){var p;const i=window.cnReactData||{},c=new FormData;c.append("action","cn_purge_cache"),c.append("nonce",i.purgeNonce||""),i.network&&c.append("cn_network","1");let u,d;try{u=await fetch(i.ajaxURL||"/wp-admin/admin-ajax.php",{method:"POST",credentials:"same-origin",body:c}),d=await u.text()}catch(h){throw Object.assign(h instanceof Error?h:new Error(String(h)),{uncertain:!0,network:!0})}if(!u.ok){const h=`Purge cache failed: ${u.status}`,m=qc(d);throw Qc(m)?fs(((p=m.data)==null?void 0:p.error)||h):tt(h)}}function Y2(i){return i?!!i.app_blocking&&i.app_blocking_engine!==!1:!1}function Ni(i){return!i||typeof i!="object"?null:{engine:i.engine==="new"?"new":"classic",style:i.style==="compact"?"compact":"standard",managed:!!i.managed}}function el(i,c){return!!i&&!!c&&i.engine===c.engine&&i.style===c.style&&i.managed===c.managed}function Si(i){return s(i==="new"?"New engine":"Classic engine","cookie-notice")}function nl(i){return s(i==="compact"?"Compact":"Standard","cookie-notice")}function q2(i){return(i==null?void 0:i.engine)==="new"?we(s("Connected. Your banner: %1$s · %2$s.","cookie-notice"),Si("new"),nl(i.style)):we(s("Connected. Your banner: %s.","cookie-notice"),Si("classic"))}const vs="cn_connected";function Bt(i={}){const c=new URL(window.location.href);c.searchParams.set(vs,"1"),Object.entries(i).forEach(([u,d])=>c.searchParams.set(u,String(d))),c.toString()===window.location.href?window.location.reload():window.location.href=c.toString()}const Q2=300,wt=["app_blocking","app_blocking_engine"],Z2=[...wt,"app_id"],tl=["app_id","app_key"],ol=["conditional_rules","refuse_code","refuse_code_head"];function il(i){return N2+btoa(unescape(encodeURIComponent(i)))}function ko(i){const c={};return Object.entries(i||{}).forEach(([u,d])=>{u==="see_more_opt"&&typeof d=="object"?(c["see_more_opt[text]"]=d.text||"",c["see_more_opt[link_type]"]=d.link_type||"page",c["see_more_opt[id]"]=d.id||0,c["see_more_opt[link]"]=d.link||"",c["see_more_opt[sync]"]=d.sync?"1":""):u==="colors"&&typeof d=="object"?(c.bar_opacity=d.bar_opacity||100,c.color_bar=d.bar||"",c.color_text=d.text||"",c.color_button=d.button||""):u==="conditional_rules"?c[u]=JSON.stringify(d||[]):u==="excluded_handles"?c[u]=Array.isArray(d)?d.join(` 41 `):d||"":u==="refuse_code"||u==="refuse_code_head"?c[u]=d||"":typeof d=="boolean"?c[u]=d?"1":"":c[u]=d}),c}function X2(i){return i.startsWith("see_more_opt[")?"see_more_opt":i==="bar_opacity"||i.startsWith("color_")?"colors":i}function rl(i,c,u){const d=m=>m==null?{}:ko({[i]:m}),p=d(c),h=d(u);return Object.keys({...p,...h}).every(m=>String(p[m]??"")===String(h[m]??""))}function J2(i,c){const u={};return c.forEach(d=>{d in i&&(u[d]=i[d])}),u}let ye=null,xo=null,sl=Promise.resolve(),jo=null,Ci=new Set;const Pi=new Map,ys=new Set,wo=new Map;let bo=null,No=0,_s=0,So=!1,Co=!1,ks=0,al=0;const xs=new Set;function Pn(){if(ye)return;const i=window.cnReactData||{},c={...i.options||{}};xo=ko(c),ye={confirmed:c,draft:c,blockingPaused:!!i.blockingPaused,complianceActive:!!i.complianceActive,status:typeof i.status=="string"?i.status:"",networkManaged:!!i.networkOverride,network:!!i.network,manual:0,saving:[],unconfirmed:[],pull:null,statusPull:null,pullSeen:!1,signalsGen:0,banner:Ni(i.banner)||{engine:"classic",style:"standard",managed:!!i.networkOverride},error:null,saved:!1,autoError:null}}function ze(i){const c=ye;ye={...ye,...i},e3(c,ye)&&(ye.signalsGen=c.signalsGen+1),ye.confirmed!==c.confirmed&&window.cnReactData&&(window.cnReactData.options={...ye.confirmed}),ye.blockingPaused!==c.blockingPaused&&window.cnReactData&&(window.cnReactData.blockingPaused=ye.blockingPaused),xs.forEach(u=>u())}function e3(i,c){return i.status!==c.status||i.complianceActive!==c.complianceActive||i.confirmed!==c.confirmed&&Z2.some(u=>!rl(u,i.confirmed[u],c.confirmed[u]))}function bt(){return[...new Set([...Ci,...Pi.keys()])]}function $t(i,c){i.forEach(u=>{const d=(Pi.get(u)||0)+c;d>0?Pi.set(u,d):Pi.delete(u)})}function Li(i){const c=sl.then(i);return sl=c.catch(()=>{}),c}function cl(i){return ze({manual:ye.manual+1}),Li(i).finally(()=>ze({manual:ye.manual-1}))}function Ei(){return{epoch:_s,clean:No===0,sent:++ks}}function ll(i){return!!i&&i.clean&&No===0&&i.epoch===_s}function ul(i,c){if(typeof i!="boolean")return ye.blockingPaused;const u=++ks;return i?(al=u,!0):ye.blockingPaused&&!(c&&c.sent>al)}function Di(i,c,u,d,p,h){i=i&&typeof i=="object"?i:{},xo=p?ko(i):{...xo,...ko(i)};const{draft:m,confirmed:x}=ye,v=p?{}:{...m};Object.keys(p?{...m,...i}:i).forEach(k=>{const _=u===!0||u.includes(k),b=!_&&wo.has(k)&&ys.has(k);rl(k,m[k],_?c[k]:b?wo.get(k):x[k])?k in i?v[k]=i[k]:delete v[k]:v[k]=m[k]}),p?wo.clear():Object.keys(i).forEach(k=>wo.delete(k));const g=Ni(d==null?void 0:d.banner);ze({banner:g&&!el(g,ye.banner)?g:ye.banner,confirmed:p?{...i}:{...x,...i},draft:v,blockingPaused:ul(d==null?void 0:d.blocking_paused,h),complianceActive:typeof(d==null?void 0:d.compliance_active)=="boolean"?d.compliance_active:ye.complianceActive,status:typeof(d==null?void 0:d.status)=="string"?d.status:ye.status,unconfirmed:p?[]:ye.unconfirmed.filter(k=>!(k in i)),pull:ye.pull&&!So&&ll(h)&&wt.every(k=>k in i)?null:ye.pull,statusPull:ye.statusPull&&!Co&&ll(h)&&typeof(d==null?void 0:d.compliance_active)=="boolean"?null:ye.statusPull})}function n3(i){return i.some(c=>tl.includes(c))||tl.some(c=>!ye.confirmed[c]||ye.confirmed[c]==="0")}function dl(i){return So=!0,!i||!n3(i)?{pull:"unknown"}:(Co=!0,{pull:"unknown",statusPull:"unknown"})}function pl(i,c,u){if(!c.length)return{};if(!(i&&i.refused))return c.forEach(h=>wo.set(h,u[h])),js(),{unconfirmed:[...new Set([...ye.unconfirmed,...c])],...dl(c)};const d=c.filter(h=>ys.has(h)),p={...ye.draft};return d.forEach(h=>{p[h]===u[h]&&(p[h]=ye.confirmed[h])}),{draft:p,autoError:d.length?{keys:d,message:i&&i.message||s("Save failed","cookie-notice")}:ye.autoError}}function js(){return bo||(bo=Li(async()=>{bo=null;const i=Ei();try{const c=await O2();if(c&&c.options&&typeof c.options=="object")return Di(c.options,ye.draft,[],c,!0,i),!0}catch{}return No===0&&!bo&&(ye.pull&&!So&&ze({pull:"failed"}),ye.statusPull&&!Co&&ze({statusPull:"failed"})),!1})),bo}async function fl(i,c){const u=ye.draft;let d=[];c&&ze({error:null,saved:!1});try{const p=ko(i?J2(u,i):u),h={};if(Object.entries(p).forEach(([x,v])=>{v!==xo[x]&&(h[x]=ol.includes(x)?il(v):v)}),d=[...new Set(Object.keys(h).map(X2))],d.length){$t(d,1),ze({saving:bt()});try{const x=Ei(),v=await Xc(h);Object.keys(h).forEach(g=>{xo[g]=p[g]}),Di(v==null?void 0:v.options,u,d,v,!1,x)}finally{$t(d,-1)}}const m=ye.autoError&&ye.autoError.keys.some(x=>d.includes(x))?null:ye.autoError;return ze({saving:bt(),autoError:m,...c?{saved:!0}:{}}),!0}catch(p){return ze({saving:bt(),...pl(p,d,u),...c?{error:(p==null?void 0:p.message)||s("Save failed","cookie-notice")}:{}}),!1}}function hl(){jo=null;const i=[...Ci];Ci=new Set,$t(i,1),Li(()=>fl(i,!1)).finally(()=>{$t(i,-1),ze({saving:bt()})})}function ws(){jo!==null&&(clearTimeout(jo),hl())}function Nt(i){return Pn(),xs.add(i),()=>xs.delete(i)}function Fn(){return Pn(),ye}function t3(i,c){Pn(),ze({draft:{...ye.draft,[i]:c},saved:!1})}function o3(i,c,u){Pn(),ze({draft:{...ye.draft,[i]:{...ye.draft[i]||{},[c]:u}},saved:!1})}function i3(){return Pn(),cl(()=>fl(null,!0))}function r3(i){Pn(),i.forEach(c=>{ys.add(c),Ci.add(c)}),clearTimeout(jo),jo=setTimeout(hl,Q2),ze({saving:bt(),autoError:null})}function s3(){return Pn(),ws(),cl(async()=>{ze({error:null,saved:!1});const i=ye.draft;try{const c=Ei(),u=await F2();return Di(u==null?void 0:u.options,i,!0,u,!0,c),ze({autoError:null}),!0}catch(c){return ze({error:(c==null?void 0:c.message)||s("Reset failed","cookie-notice"),...c!=null&&c.refused?{}:dl()}),c!=null&&c.refused||js(),!1}})}function ml(i){Pn(),ws();const c=Object.keys(i);return Li(async()=>{const u=ye.draft,d={};Object.entries(i).forEach(([p,h])=>{d[p]=ol.includes(p)?il(h):h}),$t(c,1),ze({saving:bt()});try{const p=Ei(),h=await Xc(d);return Di(h==null?void 0:h.options,u,c,h,!1,p),h}catch(p){throw ze(pl(p,c,u)),p}finally{$t(c,-1),ze({saving:bt()})}})}function a3(){return Pn(),ws(),js()}async function c3(i,c){Pn();const u={sent:++ks},d=await i(),p=ul(c(d),u);return p!==ye.blockingPaused&&ze({blockingPaused:p}),d}L2({start(){Pn(),No++,_s++,ze({pull:So?"unknown":"checking",statusPull:Co?"unknown":"checking",pullSeen:!0})},reply(i){const c=Ni(i==null?void 0:i.banner);c&&!el(c,ye.banner)&&ze({banner:c})},settle(i,c){No--,i&&(So=Co=!0,ze({pull:"unknown",statusPull:"unknown"})),c!==Yc&&ze({signalsGen:ye.signalsGen+1}),a3()}});function Po(i){return i.network&&!i.confirmed.global_override}function gl(i){return i.networkManaged?"networkManaged":Po(i)?"perSite":i.complianceActive?i.pull||wt.some(c=>i.unconfirmed.includes(c))?"unconfirmed":i.blockingPaused?"paused":wt.some(c=>i.saving.includes(c))?"saving":Y2(i.confirmed)?"active":"off":"inactive"}function l3(i){return i.networkManaged?"networkManaged":Po(i)?"perSite":i.complianceActive?!i.pullSeen||i.statusPull?"unconfirmed":"live":"inactive"}function vl(i,c){const[u,d]=j.useState(null),[p,h]=j.useState(!0),[m,x]=j.useState(null),v=j.useRef(null),g=j.useCallback(async()=>{if(v.current){d(v.current),h(!1);return}h(!0),x(null);try{const _=await i(c);v.current=_,d(_)}catch(_){x(_.message||"An error occurred")}finally{h(!1)}},[i,c]);j.useEffect(()=>{g()},[g]);const k=j.useCallback(()=>{v.current=null,g()},[g]);return{data:u,loading:p,error:m,refetch:k}}const u3=async()=>{const i=Fn().signalsGen,c=await c3(E2,u=>{var d;return(d=u==null?void 0:u.analytics)==null?void 0:d.thresholdExceeded});return c&&typeof c=="object"&&yl.set(c,i),c},yl=new WeakMap;function d3(i){return i&&typeof i=="object"?yl.get(i):void 0}function p3(){return j.useSyncExternalStore(Nt,Fn).signalsGen}function f3(){return vl(u3)}function h3(){return vl(D2)}function m3(){const i=j.useSyncExternalStore(Nt,Fn);return{options:i.draft,confirmed:i.confirmed,update:t3,updateNested:o3,save:i3,scheduleSave:r3,reset:s3,loading:i.manual>0,error:i.error,saved:i.saved,blockingPaused:i.blockingPaused,blockingState:gl(i),networkManaged:i.networkManaged,perSite:Po(i),savingKeys:i.saving,unconfirmedKeys:i.pull?[...new Set([...i.unconfirmed,...wt])]:i.unconfirmed,checkingKeys:i.pull==="checking"?wt:_l,pullUnknownKeys:i.pull==="unknown"?wt:_l,autoSaveError:i.autoError}}const _l=[];function kl(){return j.useSyncExternalStore(Nt,Fn).blockingPaused}function bs(){const i=j.useSyncExternalStore(Nt,Fn),c=gl(i);return c!=="unconfirmed"?c:i.pull==="checking"?"checking":i.pull==="unknown"?"pullUnknown":c}function Lo(){const i=j.useSyncExternalStore(Nt,Fn),c=l3(i);return c==="inactive"?i.status==="pending"?"pending":c:c==="unconfirmed"&&(!i.pullSeen||i.statusPull==="checking")?"checking":c}function Ti(){return j.useSyncExternalStore(Nt,Fn).banner}function Ai(){return Po(j.useSyncExternalStore(Nt,Fn))}function g3(){const[i,c]=j.useState(!1),[u,d]=j.useState(null);return{exportCsv:j.useCallback(async h=>{c(!0),d(null);try{const m=await A2(h);if(m.inactive)return d(s("Consent logs can be exported once Cookie Compliance is active.","cookie-notice")),m;if(m.csv){const x=new Blob([m.csv],{type:"text/csv;charset=utf-8;"}),v=URL.createObjectURL(x),g=document.createElement("a");g.href=v,g.download=`consent-logs-${h.start_date||"export"}.csv`,g.click(),URL.revokeObjectURL(v)}return m}catch(m){throw d(m.message||"Export failed"),m}finally{c(!1)}},[]),loading:i,error:u}}const en=((h1=window.cnReactData)==null?void 0:h1.appUrl)||"https://app.hu-manity.co",xl={gdpr:"GDPR",ccpa:"CCPA",otherus:"US State Laws",ukpecr:"UK PECR",lgpd:"LGPD",pipeda:"PIPEDA",popia:"POPIA"},jl={GDPR:{flag:"🇪🇺",geo:"EU"},CCPA:{flag:"🇺🇸",geo:"US"},"US State Laws":{flag:"🇺🇸",geo:"US"},"UK PECR":{flag:"🇬🇧",geo:"UK"},LGPD:{flag:"🇧🇷",geo:"Brazil"},PIPEDA:{flag:"🇨🇦",geo:"Canada"},POPIA:{flag:"🇿🇦",geo:"South Africa"}};function wl(i){return i?Object.entries(i).filter(([,c])=>!!c).map(([c])=>c):[]}function In({children:i,sidebar:c}){return t.jsxs("div",{className:"cn-page-layout",children:[t.jsx("div",{className:"cn-main",children:i}),c&&t.jsx("div",{className:"cn-sidebar",children:c})]})}function On({title:i,children:c}){return t.jsxs("div",{className:"cn-side-card",children:[i&&t.jsx("h3",{children:i}),c]})}function Ue({variant:i="primary",size:c="md",children:u,...d}){return t.jsx("button",{className:`cn-button cn-button--${i} cn-button--${c}`,type:"button",...d,children:u})}function Ce({label:i,type:c="text",value:u,onChange:d,placeholder:p,options:h,error:m,helper:x,required:v,children:g,...k}){const _=k.id||`cn-field-${i==null?void 0:i.toLowerCase().replace(/\s+/g,"-")}`,b=()=>c==="textarea"?t.jsx("textarea",{id:_,className:`cn-form-field__input cn-form-field__textarea${m?" cn-form-field__input--error":""}`,value:u,onChange:A=>d==null?void 0:d(A.target.value),placeholder:p,...k}):c==="select"?t.jsx("select",{id:_,className:`cn-form-field__input cn-form-field__select${m?" cn-form-field__input--error":""}`,value:u,onChange:A=>d==null?void 0:d(A.target.value),...k,children:h==null?void 0:h.map(A=>t.jsx("option",{value:A.value,children:A.label},A.value))}):t.jsx("input",{id:_,type:c,className:`cn-form-field__input${m?" cn-form-field__input--error":""}`,value:u,onChange:A=>d==null?void 0:d(A.target.value),placeholder:p,...k});return t.jsxs("div",{className:"cn-form-field",children:[i&&t.jsxs("label",{className:"cn-form-field__label",htmlFor:_,children:[i,v&&t.jsx("span",{className:"cn-form-field__req",children:"*"})]}),g||b(),m&&t.jsx("div",{className:"cn-form-field__error",children:m}),x&&!m&&t.jsx("div",{className:"cn-form-field__helper",children:x})]})}function Ns(){return t.jsx("p",{className:"cn-conn-hint cn-conn-hint--returning",children:s("Signed up with Google? Copy your App ID and App Secret Key from the Admin Portal.","cookie-notice")})}function Un(){return t.jsx("span",{className:"cn-pro-badge",children:"PRO"})}const bl={banner_only:0,free:1,pro:2};function Ss({requiredTier:i="pro",children:c,message:u,onCta:d}){const{tier:p}=Ze();if(bl[p]>=bl[i])return c;const m=i==="free"?"Connect to Cookie Compliance to unlock this feature.":"Upgrade to Cookie Compliance Pro to unlock this feature.",x=i==="free"?"Connect Your Site":"Upgrade Now",v=d?t.jsx("button",{type:"button",onClick:d,className:`cn-button cn-button--${i==="free"?"primary":"upgrade"}`,children:x}):t.jsx("a",{href:i==="free"?"#":"https://cookie-compliance.co/pricing/",className:`cn-button cn-button--${i==="free"?"primary":"upgrade"}`,target:i==="pro"?"_blank":void 0,rel:i==="pro"?"noopener noreferrer":void 0,children:x});return t.jsxs("div",{className:"cn-tier-gate",children:[t.jsx("div",{className:"cn-tier-gate__content",children:c}),t.jsx("div",{className:"cn-tier-gate__overlay",children:t.jsxs("div",{className:"cn-tier-gate__cta",children:[i==="pro"&&t.jsx(Un,{}),t.jsx("p",{children:u||m}),!Re()&&v]})})]})}function Wt({showPortalLink:i=!0,addNotice:c}){var X,q,W,te,ue,ge;const{isPro:u,isConnected:d}=Ze(),{dashboard:p}=Mn(),h=((X=window.cnReactData)==null?void 0:X.lastSynced)||"",[m,x]=j.useState(!1),[v,g]=j.useState(null),[k,_]=j.useState(((W=(q=window.cnReactData)==null?void 0:q.options)==null?void 0:W.app_id)||""),[b,A]=j.useState(((ue=(te=window.cnReactData)==null?void 0:te.options)==null?void 0:ue.app_key)||""),[C,D]=j.useState(!1),[P,E]=j.useState(""),I=!!((ge=window.cnReactData)!=null&&ge.networkOverride),R=Lo(),O=Ai(),oe=p!=null&&p.domainUrl?(()=>{try{return new URL(p.domainUrl).hostname}catch{return window.location.hostname}})():window.location.hostname,J=async()=>{x(!0),g(null);try{await V2(),g("success"),c&&c(s("Configuration synced. Reloading…","cookie-notice"),"success"),setTimeout(()=>window.location.reload(),800)}catch(ne){g("error"),c&&c(ne.message||s("Sync failed. Please try again.","cookie-notice"),"error"),x(!1)}},B=async()=>{D(!0),E("");try{await ml({app_id:k,app_key:b});try{const ne=await gn("sync_config");if(ne!=null&&ne.success){try{await ms()}catch{}try{localStorage.setItem(ls(k),"1"),localStorage.setItem(us(k),"1")}catch{}}}catch{}k?Bt():window.location.reload()}catch(ne){E(ne.message||s("Save failed","cookie-notice")),D(!1)}};return t.jsxs(On,{title:s("Domain Info","cookie-notice"),children:[t.jsxs("div",{className:"cn-dom-rows",children:[t.jsxs("div",{className:"cn-dom-row",children:[t.jsx("span",{className:"cn-dom-row__k",children:s("Domain","cookie-notice")}),t.jsx("span",{className:"cn-dom-row__v",children:oe})]}),t.jsxs("div",{className:"cn-dom-row",children:[t.jsx("span",{className:"cn-dom-row__k",children:s("Protection","cookie-notice")}),t.jsx("span",{className:"cn-dom-row__v",children:I?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"cn-dot cn-dot--gray"})," ",s("Managed by network","cookie-notice")]}):d?R==="live"?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"cn-dot cn-dot--green"})," ",s("Active","cookie-notice")]}):t.jsxs(t.Fragment,{children:[t.jsx("span",{className:`cn-dot cn-dot--${R==="pending"?"yellow":"gray"}`})," ",O?ts(R):os(R)]}):t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"cn-dot cn-dot--gray"})," ",s("Not connected","cookie-notice")]})})]}),t.jsxs("div",{className:"cn-dom-row",children:[t.jsx("span",{className:"cn-dom-row__k",children:s("Plan","cookie-notice")}),t.jsx("span",{className:"cn-dom-row__v",children:u?t.jsxs(t.Fragment,{children:[s("Pro","cookie-notice")," ",t.jsx(Un,{})]}):s("Free Plan","cookie-notice")})]})]}),!I&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"cn-dom-credentials",children:[t.jsx(Ce,{label:s("App ID","cookie-notice"),value:k,onChange:_,placeholder:s("Your application ID","cookie-notice"),autoComplete:"off"}),t.jsx(Ce,{label:s("App Secret Key","cookie-notice"),type:"password",value:b,onChange:A,placeholder:s("Your App Secret Key","cookie-notice"),autoComplete:"new-password"}),t.jsx(Ns,{}),P&&t.jsx("div",{className:"cn-conn-error",children:P}),t.jsx(Ue,{variant:"primary",onClick:B,disabled:C,children:s(C?"Saving…":"Save and Connect","cookie-notice")})]}),t.jsxs("div",{className:"cn-pull-config",children:[t.jsxs("div",{className:`cn-pull-config__row${O?" cn-network-managed":""}`,inert:O?"":void 0,children:[t.jsx(Ue,{variant:"secondary",onClick:J,disabled:m||O,children:s(m?"Syncing…":"Pull latest settings","cookie-notice")}),t.jsx("span",{className:"cn-pull-config__timestamp",children:h?we(s("Last synced (UTC): %s","cookie-notice"),h):s("Not synced yet","cookie-notice")})]}),O&&t.jsx("p",{className:"cn-pull-config__desc",children:ns()}),!O&&v==="error"&&t.jsx("p",{className:"cn-pull-config__desc cn-pull-config__desc--error",children:s("Sync failed. Please try again.","cookie-notice")}),!O&&!v&&t.jsx("p",{className:"cn-pull-config__desc",children:s("Manually pull the latest configuration including autoblocking. Also syncs automatically twice a day.","cookie-notice")})]})]}),i&&u&&!I&&t.jsxs("a",{className:"cn-dom-link",href:`${en}/#/configuration`,target:"_blank",rel:"noopener noreferrer",children:[s("Open Admin Portal","cookie-notice")," →"]})]})}function v3({onActivate:i}){return t.jsxs("div",{className:"cn-score-hero",children:[t.jsx("div",{className:"cn-score-hero__icon","aria-hidden":"true",children:t.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[t.jsx("circle",{cx:"12",cy:"12",r:"10"}),t.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),t.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})}),t.jsxs("div",{className:"cn-score-hero__body",children:[t.jsx("div",{className:"cn-score-hero__title",children:s("You have a banner. Not compliance.","cookie-notice")}),t.jsx("div",{className:"cn-score-hero__summary",children:s("A banner tells visitors about cookies. Compliance actually enforces the law.","cookie-notice")}),t.jsx("div",{className:"cn-score-hero__sub",children:s("Free · Takes 60 seconds · No credit card","cookie-notice")})]}),t.jsx("div",{className:"cn-score-hero__actions",children:t.jsxs("button",{type:"button",className:"cn-score-hero__cta",onClick:i,children:[s("Connect Your Site","cookie-notice")," →"]})})]})}const y3=["active","off","paused","inactive"];function Nl(i){return!!i&&i.status!=="crit"&&!i.value_cls}function _3(i,c,u=null,d=!0){var E,I;const p=bs(),h=p3(),[m,x]=j.useState(null),[v,g]=j.useState(null),k=y3.includes(p),_=!!i&&(m==null?void 0:m.dashboard)===i,b=d3(i)===h,A=(I=(E=i==null?void 0:i.scorecard)==null?void 0:E.boxes)==null?void 0:I.find(R=>R.key==="blocking"),C=!(i!=null&&i.scorecard)||Nl(A)===(p==="active"),D=k&&_&&m.state===p&&b&&C,P=`${h}:${p}`;return j.useEffect(()=>{if(!(!i||!k)){if(!_){x({dashboard:i,state:p});return}if(D){v!==null&&g(null);return}d&&v!==P&&(g(P),c())}},[i,k,_,D,p,P,v,c,d]),i?k?D?"fresh":!_||v!==P?"updating":"unconfirmed":"pending":u?"failed":"loading"}const k3=["ok","warn","crit","neutral"],x3=i=>({saving:s("Saving…","cookie-notice"),checking:s("Checking…","cookie-notice")})[i]||s("Not confirmed","cookie-notice"),Sl=i=>({saving:s("Saving autoblocking…","cookie-notice"),checking:s("Checking the saved autoblocking setting…","cookie-notice"),pullUnknown:s("Not confirmed — reload the page to see the saved autoblocking setting.","cookie-notice")})[i]||s("Not confirmed — reload to see the saved value","cookie-notice");function j3(i,c){return i==="loading"?s("Loading your status…","cookie-notice"):i==="failed"?s("Your status could not be loaded. Reload the page to try again.","cookie-notice"):i==="pending"?Sl(c):s(i==="updating"?"Updating your status…":"Not confirmed — reload the page to see your current status.","cookie-notice")}function w3(i,{fresh:c,blockingState:u,widgetState:d,banner:p}){let h=i;if(h.key==="banner"&&d!=="live")h={key:h.key,title:h.title,status:"off",value:ts(d),sub:os(d)};else if(h.key==="banner"){const m=p.engine!=="new"?Si(p.engine):p.style==="compact"?s("Compact banner","cookie-notice"):s("Standard banner","cookie-notice");h={...h,sub:m}}else h.key==="blocking"&&!c&&(h={key:h.key,title:h.title,status:"off",value:x3(u),sub:Sl(u),pending:!0});return!c&&h.status==="ok"&&(h={...h,status:"off",value_cls:"off",pill:null,bar:h.bar&&{...h.bar,cls:"off"}}),h}function b3(i,c){if(i.key==="banner")return c.widgetState==="checking"?null:{label:s("Banner settings","cookie-notice"),run:c.actions.banner};if(i.status==="ok"||i.pending)return null;const u=!c.isPro&&c.actions.pricing?{label:s("See plans","cookie-notice"),run:c.actions.pricing}:null,d={label:s("Consent signals","cookie-notice"),run:c.actions.signals},p={label:s("Review autoblocking","cookie-notice"),run:c.actions.autoblocking};switch(i.key){case"blocking":return c.quota||!c.isPro&&Nl(i)?u:p;case"google":return d;case"metams":return c.isPro?d:u;case"gpc":return c.quota?u:{label:s("Review GPC setting","cookie-notice"),run:c.actions.autoblocking};case"visits":return i.status==="warn"||i.status==="crit"?u:null;default:return null}}function N3({b:i,fix:c,previewUrl:u}){const d=i.value_cls||i.status;return t.jsxs("div",{className:`cn-card cn-ov-box${i.status==="crit"?" cn-card--crit":i.status==="warn"?" cn-card--warn":""}`,"data-ov-box":i.key,"data-status":i.status,children:[t.jsxs("div",{className:"cn-card__top",children:[t.jsx("div",{className:"cn-ov-box__title",children:i.title}),t.jsx("div",{className:`cn-card__dot cn-card__dot--${i.status}`})]}),t.jsx("div",{className:`cn-card__main cn-card__main--${d}`,children:i.value}),i.sub&&t.jsx("div",{className:"cn-card__sub",children:i.sub}),i.bar&&t.jsx("div",{className:"cn-card__bar-wrap",children:t.jsx("div",{className:`cn-card__bar-fill cn-card__bar-fill--${i.bar.cls}`,style:{width:`${Math.max(0,Math.min(100,i.bar.pct))}%`}})}),i.pill&&t.jsx("div",{className:"cn-card__pills",children:t.jsx("span",{className:`cn-card__pill cn-card__pill--${i.pill.cls}`,children:i.pill.label})}),(c||u)&&t.jsxs("div",{className:"cn-card__foot",children:[c&&c.run&&t.jsxs("button",{type:"button",className:"cn-ov-box__fix",onClick:()=>c.run(),children:[c.label," →"]}),u&&t.jsxs("a",{href:u,target:"_blank",rel:"noreferrer",children:[s("Preview on my site","cookie-notice")," ↗"]}),u&&t.jsxs("details",{className:"cn-card__help",children:[t.jsx("summary",{children:s("Can't see your banner?","cookie-notice")}),t.jsx("p",{children:s("Can't see your banner on your own site? That's often normal. It stays hidden when your browser sends Global Privacy Control, when your visitor's region doesn't require a banner, or when you've already made a choice. Preview shows it anyway. Nothing is saved.","cookie-notice")})]})]})]})}function S3({scorecard:i,status:c,blockingState:u,widgetState:d,isPro:p,siteUrl:h,actions:m}){const x=Ti(),v=c==="fresh"&&!!i,g=(i==null?void 0:i.hero)||{},k=v&&k3.includes(g.hero_cls)?g.hero_cls:"neutral",_=v&&i.state!=="no_laws"&&Number(i.gaps)||0,b={fresh:v,blockingState:u,widgetState:d,isPro:p,actions:m,banner:x,quota:(i==null?void 0:i.state)==="free_over"||u==="paused"};return t.jsxs(t.Fragment,{children:[t.jsx("section",{className:`cn-ov-verdict cn-ov-verdict--${k}`,"data-verdict":v?k:"pending","data-state":v?i.state:void 0,"aria-live":"polite",children:v?t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"cn-ov-verdict__top",children:[t.jsx("span",{className:"cn-ov-verdict__grade",children:g.grade}),_>0?t.jsx("span",{className:"cn-ov-verdict__count",children:we(yo("%d thing to fix","%d things to fix",_,"cookie-notice"),_)}):g.gap_label&&t.jsx("span",{className:"cn-ov-verdict__gap",children:g.gap_label})]}),g.intro&&t.jsx("p",{className:"cn-ov-verdict__intro",children:g.intro}),g.note&&t.jsx("p",{className:"cn-ov-verdict__note",children:g.note})]}):t.jsx("div",{className:"cn-ov-verdict__top",children:t.jsx("span",{className:"cn-ov-verdict__grade",children:j3(c,u)})})}),i&&Array.isArray(i.boxes)&&t.jsx("div",{className:"cn-card-grid cn-card-grid--3 cn-ov-boxes",children:i.boxes.map(A=>{const C=w3(A,b);return t.jsx(N3,{b:C,fix:b3(C,b),previewUrl:C.key==="banner"&&h?`${h}?cn_preview=1`:""},C.key)})})]})}const Cs=i=>Number(i||0).toLocaleString();function C3({dashboard:i,isFree:c,onOpenConsentLogs:u}){var k;const d=i==null?void 0:i.consents7d;if(!d)return null;const p=((k=i==null?void 0:i.analytics)==null?void 0:k.cycleUsage)||{},h=Number(p.threshold)||0,m=Number(d.total)||0,x=d.levelLabels||{},v=String((i==null?void 0:i.analyticsFetchedAt)||"").trim(),g=[["accept",x.level3,d.acceptRate],["custom",x.level2,d.customRate],["reject",x.level1,d.rejectRate]];return t.jsxs("section",{className:"cn-ov-numbers","aria-label":s("Numbers","cookie-notice"),children:[c&&h>0&&t.jsxs("div",{className:"cn-ov-stat","data-stat":"visits",children:[t.jsxs("span",{className:"cn-ov-stat__v",children:[Cs(p.visits)," / ",Cs(h)]}),t.jsx("span",{className:"cn-ov-stat__k",children:s("visits this cycle","cookie-notice")})]}),t.jsx("div",{className:"cn-ov-stat","data-stat":"consents",children:m>0?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"cn-ov-stat__v",children:Cs(m)}),t.jsx("span",{className:"cn-ov-stat__k",children:yo("consent in the last 7 days","consents in the last 7 days",m,"cookie-notice")}),t.jsx("span",{className:"cn-ov-stat__split",children:g.map(([_,b,A])=>t.jsxs("span",{className:`cn-ov-stat__part cn-ov-stat__part--${_}`,"data-part":_,children:[b," ",t.jsxs("strong",{children:[Number(A)||0,"%"]})]},_))})]}):t.jsx("span",{className:"cn-ov-stat__k",children:s("No consents recorded in the last 7 days","cookie-notice")})}),t.jsxs("div",{className:"cn-ov-numbers__foot",children:[v&&t.jsx("span",{className:"cn-ov-numbers__fetched","data-stat":"fetched",children:we(s("Last fetched %s UTC","cookie-notice"),v.slice(0,16))}),u&&t.jsxs("button",{type:"button",className:"cn-layer__link-btn",onClick:()=>u(),children:[s("View consent logs","cookie-notice")," →"]})]})]})}function Cl(i={}){const c=i.google_consent_default,u=i.facebook_consent_default,d=i.microsoft_consent_default;return{google:!!c&&Object.keys(c).length>0,facebook:!!u&&Object.keys(u).length>0,microsoft:!!d&&Object.keys(d).length>0,gpc:!!i.gpc_support,dnt:!!i.do_not_track}}function P3({noLaws:i,isPro:c,managed:u,onOpenLaws:d,onOpenSignals:p,onOpenPricing:h,onOpenPrivacy:m}){var D;const{config:x}=jt(),[v,g]=j.useState([]);j.useEffect(()=>{if(u)return;let P=!0;return hs().then(E=>{P&&g(((E==null?void 0:E.sources)||[]).filter(I=>I.availability&&!I.active).map(I=>I.name))}).catch(()=>{}),()=>{P=!1}},[u]);const k=((D=window.cnReactData)==null?void 0:D.detectedPlugins)||[],_=Cl((x==null?void 0:x.blocking)||{}),b=h?{action:s("See plans","cookie-notice"),run:h}:null,A={action:s("Review consent signals","cookie-notice"),run:p},C=[];return i&&C.push({key:"laws",text:s("Choose the privacy laws your site follows, so the banner asks the right visitors the right way.","cookie-notice"),action:s("Choose laws","cookie-notice"),run:d}),k.includes("google")&&!_.google&&C.push({key:"google",text:s("Google tools detected. Google Consent Mode is off.","cookie-notice"),...A}),k.includes("facebook")&&!_.facebook&&C.push(c?{key:"facebook",text:s("Facebook Pixel detected. Facebook consent signals are off.","cookie-notice"),...A}:{key:"facebook",text:s("Facebook Pixel detected. Facebook consent signals need the Pro plan.","cookie-notice"),...b}),k.includes("microsoft")&&!_.microsoft&&C.push(c?{key:"microsoft",text:s("Microsoft Clarity detected. Microsoft consent signals are off.","cookie-notice"),...A}:{key:"microsoft",text:s("Microsoft Clarity detected. Microsoft consent signals need the Pro plan.","cookie-notice"),...b}),v.length>0&&C.push({key:"forms",text:we(s("These form plugins are not recording proof of consent yet: %s.","cookie-notice"),v.join(", ")),action:s("Open Privacy Consent","cookie-notice"),run:m}),C.length===0?null:t.jsxs("section",{className:"cn-ov-steps","aria-labelledby":"cn-ov-steps-title",children:[t.jsx("h2",{id:"cn-ov-steps-title",className:"cn-ov-steps__title",children:s("Next steps","cookie-notice")}),t.jsx("ul",{className:"cn-ov-steps__list",children:C.map(P=>t.jsxs("li",{className:"cn-ov-steps__item","data-step":P.key,children:[t.jsx("span",{className:"cn-ov-steps__text",children:P.text}),P.run&&t.jsxs("button",{type:"button",className:"cn-layer__link-btn",onClick:()=>P.run(),children:[P.action," →"]})]},P.key))})]})}const L3=()=>[{key:"standard",desc:s("Heading, description and the full set of consent levels.","cookie-notice")},{key:"compact",desc:s("Leaves out the Balanced level; every category is still under Customize. One slim row when the banner is fixed to the top or bottom of a wide screen.","cookie-notice")}];function Pl({name:i,labelledBy:c}){const u=Ti(),[d,p]=j.useState(null),[h,m]=j.useState(""),[x,v]=j.useState(!1);j.useEffect(()=>{v(!1)},[u.engine,u.style]);const g=u.engine==="new",k=g&&!u.managed,_=d||(g?u.style:null),b=async C=>{var D;if(!(!k||d||C===u.style)){p(C),m(""),v(!1);try{const P=Ni((D=await B2(C))==null?void 0:D.banner);v(!!P&&P.engine==="new"&&P.style!==C)}catch(P){m((P==null?void 0:P.message)||s("The banner style could not be saved. Please try again.","cookie-notice"))}finally{p(null)}}},A=s(d?"Saving…":g?x?"Saved. It will show here after the next sync.":"Both styles offer the same choices, including reject.":"Available once this site is on the New engine.","cookie-notice");return t.jsxs("div",{className:"cn-style-cards",children:[t.jsx("div",{className:`cn-style-cards__group${k?"":" cn-style-cards__group--readonly"}${g?"":" cn-style-cards__group--locked"}${d?" cn-style-cards__group--saving":""}`,role:"radiogroup","aria-labelledby":c,"aria-busy":d?"true":void 0,children:L3().map(C=>t.jsxs("label",{className:`cn-style-cards__card${_===C.key?" cn-style-cards__card--checked":""}`,children:[t.jsx("input",{type:"radio",name:i,value:C.key,checked:_===C.key,disabled:!k,onChange:()=>b(C.key)}),t.jsx("span",{className:"cn-style-cards__name",children:nl(C.key)}),t.jsx("span",{className:"cn-style-cards__desc",children:C.desc})]},C.key))}),t.jsx("span",{className:"cn-style-cards__note","aria-live":"polite",children:A}),h&&t.jsx("div",{className:"cn-style-cards__error",role:"alert",children:h})]})}const be={container:"_container_nva6m_2",grid:"_grid_nva6m_8",card:"_card_nva6m_16",cardSelected:"_cardSelected_nva6m_32",geoArt:"_geoArt_nva6m_38",lawName:"_lawName_nva6m_47",jurisdiction:"_jurisdiction_nva6m_54",hiddenCheckbox:"_hiddenCheckbox_nva6m_60",checkmark:"_checkmark_nva6m_72",autoBadge:"_autoBadge_nva6m_88",detail:"_detail_nva6m_102",detailHeader:"_detailHeader_nva6m_112",detailTitle:"_detailTitle_nva6m_119",detailJurisdiction:"_detailJurisdiction_nva6m_125",detailClose:"_detailClose_nva6m_131",detailSection:"_detailSection_nva6m_144",detailSectionLabel:"_detailSectionLabel_nva6m_148",detailOverview:"_detailOverview_nva6m_157",detailList:"_detailList_nva6m_163",detailListItem:"_detailListItem_nva6m_172",detailEnforcement:"_detailEnforcement_nva6m_188",detailEmpty:"_detailEmpty_nva6m_197",detailEmptyArrow:"_detailEmptyArrow_nva6m_208",detailEmptyText:"_detailEmptyText_nva6m_215",detailDnsHelp:"_detailDnsHelp_nva6m_222",dnsInput:"_dnsInput_nva6m_263"},Ps=()=>[{key:"gdpr",name:s("GDPR","cookie-notice"),jurisdiction:s("European Union","cookie-notice"),description:s("General Data Protection Regulation","cookie-notice"),locales:["de","fr","it","es","nl","pl","pt","sv","el","de_DE","fr_FR","it_IT","es_ES","nl_NL","pl_PL","pt_PT","sv_SE","el_GR","da_DK","fi","ro_RO","bg_BG","cs_CZ","et","hr","hu_HU","lt_LT","lv","sk_SK","sl_SI"],overview:s("The EU’s gold standard for data privacy. Applies to any site with visitors from the 27 EU member states — regardless of where your business is based.","cookie-notice"),requirements:[s("Prior, informed consent before any non-essential cookies","cookie-notice"),s("Clear opt-out that’s as easy as opting in","cookie-notice"),s("Right to erasure (‘be forgotten’) on request","cookie-notice"),s("Data processing records & DPO for large processors","cookie-notice")],product:[s("Consent banner with granular category controls","cookie-notice"),s("Consent proof stored per visitor","cookie-notice"),s("GDPR-mode autoblocking holds scripts until consent","cookie-notice")],enforcement:s("Fines up to €20M or 4% of global annual revenue. Enforced by national DPAs.","cookie-notice")},{key:"ccpa",name:s("CCPA / CPRA","cookie-notice"),jurisdiction:s("California, USA","cookie-notice"),description:s("California Consumer Privacy Act","cookie-notice"),locales:["en_US"],overview:s("California’s comprehensive privacy law, upgraded by CPRA in 2023. If you serve California residents, it applies — even if you’re outside the US.","cookie-notice"),requirements:[s("Opt-out of sale or sharing of personal data","cookie-notice"),s("Honor Global Privacy Control (GPC) signals automatically","cookie-notice"),s("Annual privacy policy updates","cookie-notice"),s("Right to know, delete, and correct personal data","cookie-notice")],product:[s("GPC signal detection and automatic opt-out (Pro plan)","cookie-notice"),s("Do Not Sell link insertion","cookie-notice"),s("Consent-mode compatible analytics opt-out","cookie-notice")],enforcement:s("Fines up to $7,500 per intentional violation. Enforced by the California Privacy Protection Agency.","cookie-notice")},{key:"otherus",name:s("US State Laws","cookie-notice"),jurisdiction:s("United States","cookie-notice"),description:s("Virginia, Colorado, Connecticut, and more","cookie-notice"),locales:["en_US"],overview:s("Virginia, Colorado, Connecticut, Utah, Montana, Texas, Oregon, and more have passed comprehensive privacy laws. The landscape is evolving fast.","cookie-notice"),requirements:[s("Consent for sensitive data processing","cookie-notice"),s("Universal opt-out mechanism support (like GPC)","cookie-notice"),s("Right to access, correct, delete, and opt out of targeted advertising","cookie-notice"),s("Data protection assessments for high-risk processing","cookie-notice")],product:[s("Automatic US-state privacy-law consent banner","cookie-notice"),s("Opt-out of targeted advertising and Do-Not-Sell signaling","cookie-notice"),s("Universal Opt-Out (GPC) honoring on Pro plans","cookie-notice")],enforcement:s("Fines from $7,500–$20,000 per violation depending on state. Enforced by state attorneys general.","cookie-notice")},{key:"ukpecr",name:s("UK PECR","cookie-notice"),jurisdiction:s("United Kingdom","cookie-notice"),description:s("Privacy and Electronic Communications Regulations","cookie-notice"),locales:["en_GB"],overview:s("The UK’s post-Brexit equivalent to GDPR’s cookie rules. Applies to any site with UK visitors. Enforced by the ICO, which has been increasingly active.","cookie-notice"),requirements:[s("Prior consent for analytics and marketing cookies","cookie-notice"),s("Clear information about what cookies do","cookie-notice"),s("Easy withdrawal of consent","cookie-notice"),s("Legitimate interest cannot be used for tracking cookies","cookie-notice")],product:[s("UK-specific consent banner variant","cookie-notice"),s("ICO-compliant consent language","cookie-notice"),s("Consent proof storage","cookie-notice")],enforcement:s("Fines up to £17.5M or 4% of global turnover. Enforced by the ICO.","cookie-notice")},{key:"lgpd",name:s("LGPD","cookie-notice"),jurisdiction:s("Brazil","cookie-notice"),description:s("Lei Geral de Proteção de Dados","cookie-notice"),locales:["pt_BR"],overview:s("Brazil’s General Data Protection Law covers 214 million people. Modeled on GDPR, it requires a lawful basis for processing and strong user rights.","cookie-notice"),requirements:[s("Valid lawful basis for each data processing activity","cookie-notice"),s("Clear, granular consent for non-essential cookies","cookie-notice"),s("Right to access, correct, delete, and revoke consent","cookie-notice"),s("Report breaches within 2 business days","cookie-notice")],product:[s("LGPD-mode consent banner with Portuguese language support","cookie-notice"),s("Consent revocation flow","cookie-notice"),s("Breach-ready consent audit trail","cookie-notice")],enforcement:s("Fines up to 2% of Brazil revenue, capped at R$50M per violation. Enforced by the ANPD.","cookie-notice")},{key:"pipeda",name:s("PIPEDA","cookie-notice"),jurisdiction:s("Canada","cookie-notice"),description:s("Personal Information Protection and Electronic Documents Act","cookie-notice"),locales:["en_CA","fr_CA"],overview:s("Canada’s federal privacy law. Bill C-27 (CPPA) reform is underway and will bring requirements closer to GDPR. Applies to commercial activity across Canada.","cookie-notice"),requirements:[s("Express consent for collection, use, and disclosure of personal data","cookie-notice"),s("Privacy policy clearly explaining data use","cookie-notice"),s("Individual access and correction rights","cookie-notice"),s("Breach reporting to the Privacy Commissioner","cookie-notice")],product:[s("PIPEDA-compliant consent banner","cookie-notice"),s("English + French bilingual support","cookie-notice"),s("Consent records with timestamps","cookie-notice")],enforcement:s("Fines up to CAD $100,000. Enforced by the Office of the Privacy Commissioner of Canada.","cookie-notice")},{key:"popia",name:s("POPIA","cookie-notice"),jurisdiction:s("South Africa","cookie-notice"),description:s("Protection of Personal Information Act","cookie-notice"),locales:["af_ZA"],overview:s("South Africa’s Protection of Personal Information Act took full effect in 2021. Applies to any business processing data about South African residents.","cookie-notice"),requirements:[s("Lawful basis for all personal information processing","cookie-notice"),s("Consent for direct marketing and cookie use","cookie-notice"),s("Data subject rights: access, correction, deletion","cookie-notice"),s("Appoint an Information Officer","cookie-notice")],product:[s("POPIA-compliant consent banner","cookie-notice"),s("Afrikaans language support","cookie-notice"),s("Consent audit trail","cookie-notice")],enforcement:s("Fines up to ZAR 10M or 10 years imprisonment. Enforced by the Information Regulator.","cookie-notice")}];function E3(i){if(!i)return[];const c=i.toLowerCase(),u=c.split("_")[0];return Ps().filter(d=>d.locales.some(p=>p.toLowerCase()===c||p.toLowerCase()===u)).map(d=>d.key)}const D3=["M40.00,4.80L40.75,6.96L43.04,7.01L41.22,8.40L41.88,10.59L40.00,9.28L38.12,10.59L38.78,8.40L36.96,7.01L39.25,6.96Z","M50.60,7.64L50.17,9.89L52.13,11.08L49.86,11.36L49.33,13.59L48.36,11.52L46.08,11.71L47.75,10.15L46.86,8.03L48.87,9.14Z","M58.36,15.40L56.86,17.13L57.97,19.14L55.85,18.25L54.29,19.92L54.48,17.64L52.41,16.67L54.64,16.14L54.92,13.87L56.11,15.83Z","M61.20,26.00L59.04,26.75L58.99,29.04L57.60,27.22L55.41,27.88L56.72,26.00L55.41,24.12L57.60,24.78L58.99,22.96L59.04,25.25Z","M58.36,36.60L56.11,36.17L54.92,38.13L54.64,35.86L52.41,35.33L54.48,34.36L54.29,32.08L55.85,33.75L57.97,32.86L56.86,34.87Z","M50.60,44.36L48.87,42.86L46.86,43.97L47.75,41.85L46.08,40.29L48.36,40.48L49.33,38.41L49.86,40.64L52.13,40.92L50.17,42.11Z","M40.00,47.20L39.25,45.04L36.96,44.99L38.78,43.60L38.12,41.41L40.00,42.72L41.88,41.41L41.22,43.60L43.04,44.99L40.75,45.04Z","M29.40,44.36L29.83,42.11L27.87,40.92L30.14,40.64L30.67,38.41L31.64,40.48L33.92,40.29L32.25,41.85L33.14,43.97L31.13,42.86Z","M21.64,36.60L23.14,34.87L22.03,32.86L24.15,33.75L25.71,32.08L25.52,34.36L27.59,35.33L25.36,35.86L25.08,38.13L23.89,36.17Z","M18.80,26.00L20.96,25.25L21.01,22.96L22.40,24.78L24.59,24.12L23.28,26.00L24.59,27.88L22.40,27.22L21.01,29.04L20.96,26.75Z","M21.64,15.40L23.89,15.83L25.08,13.87L25.36,16.14L27.59,16.67L25.52,17.64L25.71,19.92L24.15,18.25L22.03,19.14L23.14,17.13Z","M29.40,7.64L31.13,9.14L33.14,8.03L32.25,10.15L33.92,11.71L31.64,11.52L30.67,13.59L30.14,11.36L27.87,11.08L29.83,9.89Z"];function T3(){return t.jsx("svg",{viewBox:"0 0 80 52",fill:"none",style:{width:"100%",height:"auto"},children:D3.map((i,c)=>t.jsx("path",{d:i,fill:"#20c19e",opacity:"0.9"},c))})}function A3(){return t.jsx("svg",{viewBox:"0 0 80 52",style:{width:"100%",height:"auto"},children:t.jsx("path",{d:"M37.513,42.904L38.238,43.379L37.825,43.645ZM37.052,44.75L37.717,45.823L37.272,45.618ZM35.977,42.471L35.977,42.471L35.977,42.471ZM35.268,39.936L35.268,39.936L35.268,39.936ZM33.989,42.904L33.989,42.904L33.989,42.904ZM33.676,39.32L34.798,39.964L33.73,39.76ZM32.497,39.347L33.222,39.384L32.807,39.892ZM31.86,39.021L31.86,39.021L31.86,39.021ZM29.205,3L32.401,3.908L38.713,5.758L41.841,6.576L41.84,6.58L38.653,18.933L41.444,23.13L44.007,26.988L48.051,33.092L52.339,39.534L52.222,40.059L52.645,40.847L52.88,42.027L53.42,42.959L52.253,43.484L51.779,44.08L51.723,45.075L51.378,45.722L50.695,46.134L50.495,47.457L51.101,47.842L50.851,48.976L50.148,49L41.666,47.998L41.371,47.343L41.515,45.403L41.115,44.386L39.247,42.072L38.422,41.969L38.28,40.638L37.359,40.575L36.115,39.635L36.034,39.084L35.246,38.245L34.184,37.993L33.352,37.495L32.221,37.309L31.791,36.609L32.419,34.386L31.689,33.643L31.931,33.211L30.973,31.644L30.057,29.011L29.65,28.484L29.661,27.639L30.53,26.451L30.232,25.596L29.675,25.538L28.998,24.284L29.024,22.847L29.328,21.783L29.707,21.754L29.599,22.695L30.309,23.509L30.302,22.525L29.816,21.111L30.434,20.929L30.14,20.407L29.328,21.612L28.616,20.617L28.022,20.414L28.453,19.444L28.184,18.476L27.692,17.819L26.886,15.851L27.158,15.473L27.119,14.107L27.54,13.351L27.621,12.162L26.58,9.935L26.661,9.167L27.876,7.733L28.302,6.532L28.962,5.414L29.033,4.098L28.808,3.838Z",fill:"rgba(32,193,158,0.15)",stroke:"#20c19e",strokeWidth:1.2,strokeLinejoin:"round"})})}function R3(){return t.jsx("div",{style:{width:46,height:46,margin:"0 auto"},children:t.jsx("div",{"data-geo":"us",style:{width:"100%",height:"100%",lineHeight:0},dangerouslySetInnerHTML:{__html:`<svg version="1.0" xmlns="http://www.w3.org/2000/svg" 42 42 width="100%" height="100%" viewBox="0 0 1024.000000 1024.000000" 43 43 preserveAspectRatio="xMidYMid meet"> … … 1058 1058 -273 23 -148 78 -332 143 -397 141 -16 -1 -112 -13 -212 -28z"/> 1059 1059 </g> 1060 </svg>`}})})}const O3={gdpr:T3,ccpa:A3,otherus:R3,ukpecr:z3,lgpd:M3,pipeda:F3,popia:I3};function Ll({selected:i,onChange:c,dnsUrl:u,onDnsUrlChange:d}){const h=(window.cnReactData||{}).siteLocale||"",[m,x]= w.useState([]),[v,g]=w.useState(null),[k,_]=w.useState(null),b=i,A=k??b;w.useEffect(()=>{const R=E3(h);x(R),i.length===0&&R.length>0&&c(R),R.length>0&&g(R[0])},[]);const C=R=>{g(R);const O=k??b,te=O.includes(R)?O.filter(J=>J!==R):[...O,R];_(te),c&&c(te)},D=(R,O)=>{R.stopPropagation();const te=k??b,J=te.includes(O)?te.filter(B=>B!==O):[...te,O];_(J),c&&c(J)},P=()=>{g(null)},E=v?Ps().find(R=>R.key===v):null,I=E&&(E.key==="ccpa"||E.key==="otherus");return t.jsxs("div",{className:be.container,children:[t.jsx("div",{children:t.jsx("div",{className:be.grid,children:Ps().map(R=>{const O=A.includes(R.key),te=m.includes(R.key),J=O3[R.key];return t.jsxs("div",{className:be.card+(O?" "+be.cardSelected:""),onClick:()=>C(R.key),role:"button",tabIndex:0,onKeyDown:B=>{(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),C(R.key))},children:[te&&t.jsx("span",{className:be.autoBadge,children:s("Auto-detected","cookie-notice")}),O&&t.jsx("span",{className:be.checkmark,children:"✓"}),t.jsx("input",{type:"checkbox",className:be.hiddenCheckbox,checked:O,onChange:B=>D(B,R.key),onClick:B=>B.stopPropagation(),tabIndex:-1,"aria-label":je(s("Select %s","cookie-notice"),R.name)}),t.jsx("div",{className:be.geoArt,children:J&&t.jsx(J,{})}),t.jsx("div",{className:be.lawName,children:R.name}),t.jsx("div",{className:be.jurisdiction,children:R.jurisdiction})]},R.key)})})}),E?t.jsxs("div",{className:be.detail,children:[t.jsxs("div",{className:be.detailHeader,children:[t.jsxs("div",{children:[t.jsx("div",{className:be.detailTitle,children:E.name}),t.jsx("div",{className:be.detailJurisdiction,children:E.jurisdiction})]}),t.jsx("button",{className:be.detailClose,onClick:P,type:"button","aria-label":s("Close detail panel","cookie-notice"),children:"×"})]}),t.jsxs("div",{className:be.detailSection,children:[t.jsx("div",{className:be.detailSectionLabel,children:s("What it covers","cookie-notice")}),t.jsx("div",{className:be.detailOverview,children:E.overview})]}),t.jsxs("div",{className:be.detailSection,children:[t.jsx("div",{className:be.detailSectionLabel,children:s("Key requirements","cookie-notice")}),t.jsx("ul",{className:be.detailList,children:E.requirements.map((R,O)=>t.jsx("li",{className:be.detailListItem,children:R},O))})]}),t.jsxs("div",{className:be.detailSection,children:[t.jsx("div",{className:be.detailSectionLabel,children:s("What Cookie Compliance does","cookie-notice")}),t.jsx("ul",{className:be.detailList,children:E.product.map((R,O)=>t.jsx("li",{className:be.detailListItem,children:R},O))})]}),t.jsx("div",{className:be.detailEnforcement,children:E.enforcement}),I&&t.jsxs("div",{className:be.detailSection,style:{marginTop:14},children:[t.jsx("div",{className:be.detailSectionLabel,children:s("Do Not Sell URL","cookie-notice")}),t.jsx("p",{className:be.detailDnsHelp,children:"Required if you advertise to California residents. This is a page on your site where visitors can request you stop selling or sharing their personal data."}),t.jsx("input",{id:"cn-dns-url",type:"url",className:be.dnsInput,value:u||"",onChange:R=>d&&d(R.target.value),placeholder:s("https://example.com/do-not-sell","cookie-notice"),"aria-describedby":"cn-dns-url-hint"}),t.jsx("p",{id:"cn-dns-url-hint",className:be.detailDnsHelp,style:{marginTop:6},children:s("Sets the link for your banner's default language. Other languages: Admin Portal → Languages.","cookie-notice")}),t.jsx("a",{href:"https://oag.ca.gov/privacy/ccpa",target:"_blank",rel:"noreferrer",style:{fontSize:12,color:"#0073aa",display:"inline-block",marginTop:4},children:"What is this? →"})]})]},E.key):t.jsxs("div",{className:be.detailEmpty,children:[t.jsx("div",{className:be.detailEmptyArrow,children:"←"}),t.jsx("div",{className:be.detailEmptyText,children:"Select a law to see what it covers and what compliance looks like for your site."})]})]})}const El=()=>[{code:"fr",name:s("French","cookie-notice")},{code:"es",name:s("Spanish","cookie-notice")},{code:"de",name:s("German","cookie-notice")},{code:"it",name:s("Italian","cookie-notice")},{code:"el",name:s("Greek","cookie-notice")},{code:"nl",name:s("Dutch","cookie-notice")},{code:"pt",name:s("Portuguese","cookie-notice")},{code:"pl",name:s("Polish","cookie-notice")},{code:"sv",name:s("Swedish","cookie-notice")}];function U3({onComplete:i,onOpenPricingModal:c,onSelectionChange:u}){const p=(window.cnReactData||{}).siteLocale||"",{isFree:h}=Ze(),[m,x]=w.useState([]),[v,g]=w.useState(!1),[k,_]=w.useState(""),[b,A]=w.useState(!1),[C,D]=w.useState(!1);w.useEffect(()=>{u&&u(m,C)},[m,C]),w.useEffect(()=>{var R;const I=(R=p.split("_")[0])==null?void 0:R.toLowerCase();I&&I!=="en"&&El().some(O=>O.code===I)&&x([I])},[]);const P=I=>{D(!0),x(R=>R.includes(I)?(A(!1),R.filter(O=>O!==I)):h?(R.length>=1&&A(!0),[I]):[...R,I])},E=async()=>{if(!v){g(!0),_("");try{await Jc(m),i&&i(m)}catch(I){_(I.message||"Failed to apply languages.")}finally{g(!1)}}};return t.jsxs("div",{className:"cn-language-picker",children:[h?t.jsxs("div",{style:{background:"#fff8f0",border:"1px solid #fed7aa",color:"#92400e",padding:"10px 14px",borderRadius:"6px",marginBottom:"12px",display:"flex",alignItems:"center",justifyContent:"space-between",fontSize:"14px"},children:[t.jsx("span",{children:s("Free plan: your default language plus 1 additional language","cookie-notice")}),t.jsxs("button",{type:"button",onClick:()=>c&&c(),style:{background:"none",border:"none",color:"#20c19e",fontWeight:600,cursor:"pointer",textDecoration:"underline",padding:0},children:[s("Upgrade to Pro to add more languages","cookie-notice")," →"]})]}):t.jsxs("div",{style:{background:"#f0fdf4",border:"1px solid #a7f3d0",color:"#065f46",padding:"10px 14px",borderRadius:"6px",marginBottom:"12px",fontSize:"14px"},children:[s("Pro plan — no limit on languages","cookie-notice")," ✓"]}),t.jsx("p",{className:"cn-language-picker__hint",children:s("Without a configured language, non-English visitors see browser-automated translations — unreviewed and potentially inaccurate. Selecting a language gives you full control over what they read.","cookie-notice")}),t.jsx("div",{className:"cn-language-picker__grid",children:El().map(I=>{const R=m.includes(I.code),O=h&&!R&&m.length>=1;return t.jsxs("button",{type:"button",className:"cn-language-picker__badge"+(R?" cn-language-picker__badge--active":"")+(O?" cn-language-picker__badge--locked":""),onClick:()=>{O?c&&c():P(I.code)},"aria-label":O?`${I.name} — upgrade to Pro to unlock`:I.name,children:[I.name,O?" 🔒":""]},I.code)})}),b&&h&&t.jsx("div",{style:{color:"#92400e",fontSize:"13px",marginTop:"8px"},children:t.jsxs("button",{type:"button",onClick:()=>c&&c(),style:{background:"none",border:"none",color:"#20c19e",fontWeight:600,cursor:"pointer",textDecoration:"underline",padding:0},children:[s("Upgrade to Pro to add more languages","cookie-notice")," →"]})}),k&&t.jsx("div",{className:"cn-language-picker__error",children:k}),t.jsx("div",{className:"cn-language-picker__actions",children:t.jsx("button",{className:"cn-button cn-button--primary",onClick:E,disabled:v,type:"button",children:v?"Applying…":"Apply Languages"})})]})}function Dl(){var m,x;const{dashboard:i}=Mn(),c=((m=i==null?void 0:i.appConfig)==null?void 0:m.design)||((x=window.cnReactData)==null?void 0:x.bannerDesign)||{},u=typeof c.dontSellUrl=="string"?c.dontSellUrl:"",[d,p]=w.useState(null);return{value:d??u,onChange:p,field:(v=[])=>{const g=(d??"").trim(),k=v.includes("ccpa")||v.includes("otherus");return d!==null&&g!==""&&g!==u&&k?{cn_dont_sell_url:g}:{}}}}const B3=i=>[...i?[{key:"style",label:s("Banner style","cookie-notice")}]:[],{key:"laws",label:s("Laws","cookie-notice")},{key:"languages",label:s("Languages","cookie-notice")}];function $3({initialLaws:i=[],onOpenPricingModal:c}){var ke;const u=window.cnReactData||{},[d,p]=w.useState(null),h=ls((ke=u.options)==null?void 0:ke.app_id),[m,x]=w.useState(!!u.setupWizardComplete||localStorage.getItem(h)==="1"),[v,g]=w.useState(i),k=Dl(),[_,b]=w.useState(!1),[A,C]=w.useState(!1),[D,P]=w.useState(""),[E,I]=w.useState([]),[R,O]=w.useState(""),{dashboard:te}=Mn(),J=Ti();if(m||Re())return null;const B=B3(J.engine==="new"),X=Math.max(0,B.findIndex(U=>U.key===d)),q=B[X].key,W=U=>p(B[Math.min(Math.max(U,0),B.length-1)].key),ne=()=>{W(X+1)},le=async()=>{if(q==="laws"&&v.length>0){C(!0),P("");try{const U={};v.forEach((ee,Q)=>{U[`cn_laws[${Q}]`]=ee}),await gn("configure",{...U,...k.field(v),cn_revoke_consent:"1"},u.configureNonce||"")}catch(U){P(U!=null&&U.answered&&U.message?U.message:s("Failed to save laws. Please try again.","cookie-notice")),C(!1);return}C(!1)}W(X+1)},he=()=>{W(X-1)},M=async()=>{b(!0);try{await ms()}catch{}window.cnReactData&&(window.cnReactData.setupWizardComplete=!0);try{localStorage.setItem(h,"1"),localStorage.setItem("cn_setup_just_finished_"+(u.app_id||"default"),"1")}catch{}window.location.reload()},me=async()=>{var ee;const U=((ee=te==null?void 0:te.appConfig)==null?void 0:ee.language)||[];if(E.some(Q=>!U.includes(Q))){b(!0),O("");try{await Jc(E)}catch(Q){O((Q==null?void 0:Q.message)||s("Failed to apply languages. Please try again.","cookie-notice")),b(!1);return}}M()},_e=X===B.length-1;return t.jsxs(t.Fragment,{children:[X===0&&t.jsxs("div",{className:"cn-first-run__connected-notice",children:[t.jsx("span",{className:"cn-first-run__connected-check",children:"✓"}),t.jsxs("div",{children:[t.jsx("strong",{children:s("Your account is connected.","cookie-notice")})," ",s(q==="style"?"Choose your banner style, laws, and languages to finalize your setup.":"Choose your laws and languages to finalize your setup.","cookie-notice"),t.jsxs("span",{className:"cn-first-run__connected-hint",children:[" ",s("When done, you will be guided to select your consent signals.","cookie-notice")]})]})]}),t.jsxs("div",{className:"cn-first-run",children:[t.jsxs("div",{className:"cn-first-run__header",children:[t.jsx("h2",{className:"cn-first-run__title",children:s("Complete Your Setup","cookie-notice")}),t.jsx("button",{className:"cn-first-run__dismiss",onClick:M,type:"button",children:"×"})]}),t.jsx("div",{className:"cn-first-run__progress",children:B.map((U,ee)=>t.jsxs("div",{className:"cn-first-run__step-indicator"+(ee===X?" cn-first-run__step-indicator--active":"")+(ee<X?" cn-first-run__step-indicator--done":""),children:[t.jsx("span",{className:"cn-first-run__step-num",children:ee+1}),t.jsx("span",{className:"cn-first-run__step-label",children:U.label})]},U.key))}),t.jsxs("div",{className:"cn-first-run__body",children:[q==="style"&&t.jsxs("div",{className:"cn-first-run__step",children:[t.jsx("h3",{children:s("Choose how your banner looks","cookie-notice")}),t.jsx("p",{children:s("You can change this any time, here or in the Admin Portal.","cookie-notice")}),t.jsxs("div",{className:"cn-first-run__style",children:[t.jsx("span",{className:"cn-section-label",id:"cn-first-run-style-label",children:s("Style","cookie-notice")}),t.jsx(Pl,{name:"cn-first-run-style",labelledBy:"cn-first-run-style-label"})]})]}),q==="laws"&&t.jsxs("div",{className:"cn-first-run__step",children:[t.jsx("h3",{children:s("Select Your Laws","cookie-notice")}),t.jsx("p",{children:s("Choose which privacy regulations apply to your site.","cookie-notice")}),t.jsx(Ll,{selected:v,onChange:U=>{g(U),P("")},dnsUrl:k.value,onDnsUrlChange:k.onChange}),D&&t.jsx("p",{style:{color:"var(--cn-red)",fontSize:13,marginTop:8},children:D})]}),q==="languages"&&t.jsxs("div",{className:"cn-first-run__step",children:[t.jsx("h3",{children:s("Add Languages","cookie-notice")}),t.jsx("p",{children:s("Select additional languages for your consent banner.","cookie-notice")}),t.jsx(U3,{onComplete:M,onOpenPricingModal:c,onSelectionChange:(U,ee)=>{I(ee?U:[]),O("")}}),R&&t.jsx("p",{role:"alert",style:{color:"var(--cn-red)",fontSize:13,marginTop:8},children:R})]})]}),t.jsxs("div",{className:"cn-first-run__nav",children:[X>0&&t.jsx("button",{className:"cn-button cn-button--outline",onClick:he,type:"button",children:"← Back"}),t.jsxs("div",{className:"cn-first-run__nav-right",children:[!_e&&t.jsx("button",{className:"cn-button cn-button--ghost",onClick:ne,type:"button",children:"Skip"}),!_e&&t.jsx("button",{className:"cn-button cn-button--primary",onClick:le,disabled:A,type:"button",children:A?"Saving…":"Next →"}),_e&&t.jsx("button",{className:"cn-button cn-button--primary",onClick:me,disabled:_,type:"button",children:s(_?"Finishing…":"Apply & Finish","cookie-notice")})]})]})]})]})}function Ls({title:i,onClose:c,children:u,footer:d,scrollTrigger:p,isClosing:h,onExitComplete:m}){const x=w.useRef(null);return w.useEffect(()=>{var v;h||(v=x.current)==null||v.scrollIntoView({behavior:"smooth",block:"start"})},[p,h]),t.jsxs("div",{className:`cn-inline-panel${h?" cn-inline-panel--closing":""}`,ref:x,onTransitionEnd:h?m:void 0,children:[t.jsxs("div",{className:"cn-inline-panel__header",children:[t.jsx("h3",{className:"cn-inline-panel__title",children:i}),t.jsx("button",{className:"cn-inline-panel__dismiss",onClick:c,"aria-label":s("Close","cookie-notice"),children:"×"})]}),t.jsx("div",{className:"cn-inline-panel__body",children:u}),d&&t.jsx("div",{className:"cn-inline-panel__footer",children:d})]})}function W3(){const[i,c]=w.useState(()=>{var p;const d=((p=window.cnReactData)==null?void 0:p.selectedLaws)||[];return Array.isArray(d)?d:Object.values(d)});return[i,d=>{c(d),window.cnReactData&&(window.cnReactData.selectedLaws=d)}]}function Tl({onClose:i,onSave:c,scrollTrigger:u,isClosing:d}){const[p,h]=W3(),m=Dl(),[x,v]=w.useState(!1),[g,k]=w.useState(""),[_,b]=w.useState(!1),A=async()=>{var P;v(!0),k("");try{const E={};p.forEach((I,R)=>{E["cn_laws["+R+"]"]=I}),await gn("configure",{...E,...m.field(p),cn_revoke_consent:"1"},((P=window.cnReactData)==null?void 0:P.configureNonce)||""),h(p),b(!0)}catch(E){k(E.message||"Failed to save laws.")}finally{v(!1)}},C=()=>{c&&c(p),i()};if(_)return t.jsx(Ls,{title:s("Privacy Laws","cookie-notice"),onClose:C,scrollTrigger:u,isClosing:d,children:t.jsxs("div",{className:"cn-wizard-success",children:[t.jsx("div",{className:"cn-wizard-success__icon",children:"✓"}),t.jsx("h3",{className:"cn-wizard-success__heading",children:s("Laws updated","cookie-notice")}),t.jsx("button",{className:"cn-button cn-button--primary",onClick:C,children:s("Done","cookie-notice")})]})});const D=t.jsxs(t.Fragment,{children:[t.jsx("a",{href:`${sn}/#/configuration`,target:"_blank",rel:"noreferrer",className:"cn-layer__link-btn",children:"Manage regulations in Admin Portal →"}),t.jsxs("div",{style:{display:"flex",gap:8},children:[t.jsx(Ue,{variant:"secondary",onClick:i,children:s("Cancel","cookie-notice")}),t.jsx(Ue,{variant:"primary",onClick:A,disabled:x,children:x?"Saving…":"Save laws"})]})]});return t.jsxs(Ls,{title:s("Privacy Laws","cookie-notice"),onClose:i,scrollTrigger:u,isClosing:d,footer:D,children:[t.jsx(Ll,{selected:p,onChange:h,dnsUrl:m.value,onDnsUrlChange:m.onChange}),t.jsx("p",{style:{fontSize:13,color:"var(--cn-text-muted, #666)",marginTop:12},children:s("Selecting laws here sets your baseline. To see how the banner behaves for visitors in each region — and to review the full per-region rules — open the Admin Portal.","cookie-notice")}),g&&t.jsx("p",{style:{color:"var(--cn-red)",fontSize:13,marginTop:8},children:g})]})}const Y={layout:"_layout_t4wb2_48",remoteChangedNotice:"_remoteChangedNotice_t4wb2_55",modeList:"_modeList_t4wb2_67",modeSection:"_modeSection_t4wb2_75",modeSectionLabel:"_modeSectionLabel_t4wb2_81",modeCard:"_modeCard_t4wb2_91",modeCardActive:"_modeCardActive_t4wb2_106",modeCardLocked:"_modeCardLocked_t4wb2_112",modeCardProOverlay:"_modeCardProOverlay_t4wb2_118",lockIconLarge:"_lockIconLarge_t4wb2_133",modeCardProLabel:"_modeCardProLabel_t4wb2_137",modeCardTop:"_modeCardTop_t4wb2_143",modeCardName:"_modeCardName_t4wb2_150",modeCardDesc:"_modeCardDesc_t4wb2_156",statusDot:"_statusDot_t4wb2_162",statusDotOn:"_statusDotOn_t4wb2_170",statusDotOff:"_statusDotOff_t4wb2_174",detailCol:"_detailCol_t4wb2_178",detail:"_detail_t4wb2_178",detailHeader:"_detailHeader_t4wb2_191",detailTitle:"_detailTitle_t4wb2_198",detailDesc:"_detailDesc_t4wb2_204",detailFooter:"_detailFooter_t4wb2_211",enableToggle:"_enableToggle_t4wb2_219",enableToggleInput:"_enableToggleInput_t4wb2_227",enableToggleTrack:"_enableToggleTrack_t4wb2_234",enableToggleThumb:"_enableToggleThumb_t4wb2_248",enableToggleLabel:"_enableToggleLabel_t4wb2_263",signalConfig:"_signalConfig_t4wb2_269",signalConfigTitle:"_signalConfigTitle_t4wb2_277",groupRow:"_groupRow_t4wb2_286",groupLabel:"_groupLabel_t4wb2_293",groupSelect:"_groupSelect_t4wb2_299",groupHint:"_groupHint_t4wb2_317",familyTitle:"_familyTitle_t4wb2_324",advancedGrid:"_advancedGrid_t4wb2_334",advancedRow:"_advancedRow_t4wb2_343",advancedLabel:"_advancedLabel_t4wb2_350",subToggles:"_subToggles_t4wb2_355",subToggleTitle:"_subToggleTitle_t4wb2_361",subToggleRow:"_subToggleRow_t4wb2_370",proGate:"_proGate_t4wb2_380",proGateLink:"_proGateLink_t4wb2_394",legacyNotice:"_legacyNotice_t4wb2_414"},St=()=>[{key:"google",name:s("Google Consent Mode v2","cookie-notice"),shortName:"Google",group:"platform",pro:!1,description:s("Required for GDPR compliance if you use Google Analytics, Google Ads, or Tag Manager","cookie-notice")},{key:"facebook",name:s("Facebook","cookie-notice"),shortName:s("Facebook","cookie-notice"),group:"platform",pro:!0,description:s("Required if you run Facebook Ads — stops Meta Pixel from firing before visitors agree","cookie-notice")},{key:"microsoft",name:s("Microsoft","cookie-notice"),shortName:s("Microsoft","cookie-notice"),group:"platform",pro:!0,description:s("Required if you use Microsoft Ads or Clarity — keeps Bing and analytics trackers compliant","cookie-notice")},{key:"gpc",name:s("Global Privacy Control","cookie-notice"),shortName:"GPC",group:"browser",pro:!0,description:s("Honors visitors who’ve told their browser they don’t want to be tracked — required in California","cookie-notice")},{key:"dnt",name:s("Do Not Track","cookie-notice"),shortName:"DNT",group:"browser",pro:!1,description:s("Honors the legacy ‘Do Not Track’ browser setting — good practice, not legally required","cookie-notice")}],G3=()=>[{value:"passive",label:s("Show passive notice","cookie-notice"),help:s("Brief auto-dismiss confirmation that GPC was honored.","cookie-notice")},{value:"hidden",label:s("Silent","cookie-notice"),help:s("No on-screen indication. GPC is honored without notifying the visitor.","cookie-notice")},{value:"banner",label:s("Show full banner","cookie-notice"),help:s("The standard consent banner is still shown, even when GPC fires.","cookie-notice")}],Es=1,V3=()=>({value:Es,label:s("Always — not applied (change this)","cookie-notice")}),Ds=()=>[{value:2,label:s("Content Personalization","cookie-notice")},{value:3,label:s("Site Optimization","cookie-notice")},{value:4,label:s("Ad Personalization","cookie-notice")}];function Ri(i,c){return Number(c)===Es?[V3(),...Ds()]:Ds()}const H3=()=>[{value:1,label:s("Basic Operations","cookie-notice")},...Ds()],K3=()=>({google:[["googleAdStorage",s("Ad Storage","cookie-notice")],["googleAdPersonalization",s("Ad Personalization","cookie-notice")],["googleAdUserData",s("Ad User Data","cookie-notice")],["googleAnalyticsStorage",s("Analytics Storage","cookie-notice")],["googleFunctionalityStorage",s("Functionality Storage","cookie-notice")],["googlePersonalizationStorage",s("Personalization Storage","cookie-notice")]],facebook:[["facebookConsent",s("Meta Pixel consent","cookie-notice")]],microsoft:[["microsoftAdStorage",s("Ad Storage","cookie-notice")],["microsoftAnalyticsStorage",s("Analytics Storage","cookie-notice")]]});function Ts(i,c){return(K3()[c]||[]).filter(([u])=>Number(i[u])===Es).map(([,u])=>u)}function Y3(i,c={}){const u=i.google_consent_default||{},d=i.facebook_consent_default||{},p=i.microsoft_consent_default||{},h=Object.keys(u).length>0,m=Object.keys(d).length>0,x=Object.keys(p).length>0;return{googleEnabled:h,googleAdStorage:u.ad_storage??4,googleAdPersonalization:u.ad_personalization??4,googleAdUserData:u.ad_user_data??4,googleAnalyticsStorage:u.analytics_storage??3,googleFunctionalityStorage:u.functionality_storage??2,googlePersonalizationStorage:u.personalization_storage??2,googleSecurityStorage:u.security_storage??2,facebookEnabled:m,facebookConsent:d.consent??4,microsoftEnabled:x,microsoftAdStorage:p.ad_storage??4,microsoftAnalyticsStorage:p.analytics_storage??3,microsoftPixie:!!p.pixie,microsoftClarity:!!p.clarity,gpcEnabled:!!(i.gpc_support??0),gpcBannerMode:c.gpcBannerMode||"passive",doNotTrack:!!(i.do_not_track??0)}}function Al(i){return{googleConsentMapAdStorage:i.googleEnabled?i.googleAdStorage:"",googleConsentMapAdPersonalization:i.googleEnabled?i.googleAdPersonalization:"",googleConsentMapAdUserData:i.googleEnabled?i.googleAdUserData:"",googleConsentMapAnalytics:i.googleEnabled?i.googleAnalyticsStorage:"",googleConsentMapFunctionality:i.googleEnabled?i.googleFunctionalityStorage:"",googleConsentMapPersonalization:i.googleEnabled?i.googlePersonalizationStorage:"",...i.googleEnabled?{googleConsentMapSecurity:i.googleSecurityStorage}:{},facebookConsentMapConsent:i.facebookEnabled?i.facebookConsent:"",microsoftConsentMapAdStorage:i.microsoftEnabled?i.microsoftAdStorage:"",microsoftConsentMapAnalyticsStorage:i.microsoftEnabled?i.microsoftAnalyticsStorage:"",microsoftConsentModePixie:i.microsoftPixie?1:0,microsoftConsentModeClarity:i.microsoftClarity?1:0,gpcSupport:i.gpcEnabled?1:0,gpcBannerMode:i.gpcEnabled?i.gpcBannerMode||"passive":"",doNotTrack:i.doNotTrack?1:0}}function Rl(i){return{googleConsentMode:i.googleEnabled?"1":"0",facebookConsentMode:i.facebookEnabled?"1":"0",microsoftConsentMode:i.microsoftEnabled?"1":"0"}}function zl(i,c){return c?Object.fromEntries(Object.entries(i).filter(([u,d])=>JSON.stringify(c[u])!==JSON.stringify(d))):i}function q3({value:i,onChange:c,consentChoices:u}){return t.jsxs("div",{className:Y.advancedRow,children:[t.jsx("span",{className:Y.advancedLabel,children:s("Security Storage","cookie-notice")}),t.jsx("select",{className:Y.groupSelect,value:i,onChange:d=>c(Number(d.target.value)),children:H3().map(d=>t.jsx("option",{value:d.value,children:d.label},d.value))})]})}function Ml({enabled:i}){return t.jsx("span",{className:`${Y.statusDot} ${i?Y.statusDotOn:Y.statusDotOff}`})}function As({signals:i}){if(!i||!i.length)return null;const c=i.join(", ");return t.jsxs("div",{className:Y.legacyNotice,role:"alert",children:[t.jsx("strong",{children:je(yo("%s is set to “Always” and is not being applied.","%s are set to “Always” and are not being applied.",i.length,"cookie-notice"),c)}),t.jsx("span",{children:yo("Signals set this way are sent as denied for every visitor, whatever they choose on your banner — so this tool receives no consent. Choose when it should be granted below, then select Apply.","Signals set this way are sent as denied for every visitor, whatever they choose on your banner — so this tool receives no consent. Choose when they should be granted below, then select Apply.",i.length,"cookie-notice")})]})}function Eo({label:i,checked:c,onChange:u}){return t.jsxs("label",{className:Y.enableToggle,children:[t.jsx("input",{type:"checkbox",checked:c,onChange:d=>u(d.target.checked),className:Y.enableToggleInput}),t.jsx("span",{className:Y.enableToggleTrack,children:t.jsx("span",{className:Y.enableToggleThumb})}),t.jsx("span",{className:Y.enableToggleLabel,children:i})]})}function zi({locked:i,platformName:c,onUpgrade:u}){return t.jsxs("div",{className:Y.proGate,children:[t.jsx("span",{children:je(s(i==="pro"?"Upgrade to Pro to enable %s Consent Mode.":"Visit limit reached — %s Consent Mode is paused until your 30-day visit cycle resets. Upgrade for unlimited visits.","cookie-notice"),c)}),!Re()&&t.jsxs("button",{type:"button",className:Y.proGateLink,onClick:u,children:[s("Upgrade","cookie-notice")," →"]})]})}function Mi({onApply:i,hasChanges:c,saving:u,savedFlash:d,locked:p}){return t.jsx("div",{className:Y.detailFooter,children:t.jsx(Ue,{variant:"primary",size:"sm",onClick:i,disabled:!c||u||p,children:s(u?"Applying…":d?"Saved ✓":"Apply","cookie-notice")})})}function Q3({staged:i,set:c,consentChoices:u,proLocked:d,saving:p,hasChanges:h,savedFlash:m,onApply:x,onUpgrade:v}){const g=d,k=[{title:s("Advertising","cookie-notice"),hint:s("ad_storage, ad_personalization, ad_user_data — default: Ad Personalization. Most conservative: granted only when the visitor allows advertising.","cookie-notice"),signals:[[s("Ad Storage","cookie-notice"),"googleAdStorage"],[s("Ad Personalization","cookie-notice"),"googleAdPersonalization"],[s("Ad User Data","cookie-notice"),"googleAdUserData"]]},{title:s("Analytics","cookie-notice"),hint:s("analytics_storage — default: Site Optimization, so it is granted when the visitor allows measurement.","cookie-notice"),signals:[[s("Analytics Storage","cookie-notice"),"googleAnalyticsStorage"]]},{title:s("Functional","cookie-notice"),hint:s("functionality_storage, personalization_storage — default: Content Personalization.","cookie-notice"),signals:[[s("Functionality Storage","cookie-notice"),"googleFunctionalityStorage"],[s("Personalization Storage","cookie-notice"),"googlePersonalizationStorage"]]}];return t.jsxs("div",{className:Y.detail,children:[t.jsxs("div",{className:Y.detailHeader,children:[t.jsx("div",{className:Y.detailTitle,children:s("Google Consent Mode v2","cookie-notice")}),g==="pro"&&t.jsx(Un,{})]}),!g&&t.jsx(As,{signals:Ts(i,"google")}),t.jsx("p",{className:Y.detailDesc,children:s("If you use Google Analytics, Google Ads, or Tag Manager, this tells Google how to handle your visitors’ data based on whether they consented. Required for GDPR compliance with Google tools.","cookie-notice")}),g?t.jsx(zi,{locked:g,platformName:s("Google","cookie-notice"),onUpgrade:v}):t.jsxs(t.Fragment,{children:[t.jsx(Eo,{label:i.googleEnabled?s("Enabled","cookie-notice"):s("Disabled","cookie-notice"),checked:i.googleEnabled,onChange:_=>c("googleEnabled",_)}),i.googleEnabled&&t.jsxs("div",{className:Y.signalConfig,children:[t.jsx("div",{className:Y.signalConfigTitle,children:s("Signal mapping","cookie-notice")}),k.map(_=>t.jsxs("div",{children:[t.jsx("div",{className:Y.familyTitle,children:_.title}),t.jsx("p",{className:Y.groupHint,children:_.hint}),t.jsx("div",{className:Y.advancedGrid,children:_.signals.map(([b,A])=>t.jsxs("div",{className:Y.advancedRow,children:[t.jsx("span",{className:Y.advancedLabel,children:b}),t.jsx("select",{className:Y.groupSelect,value:i[A],onChange:C=>c(A,Number(C.target.value)),children:Ri(u,i[A]).map(C=>t.jsx("option",{value:C.value,children:C.label},C.value))})]},A))})]},_.title)),t.jsx("div",{className:Y.familyTitle,children:s("Security","cookie-notice")}),t.jsx("p",{className:Y.groupHint,children:s("security_storage — default: Content Personalization. Choose Basic Operations only if this storage really is strictly necessary on your site (for example authentication or fraud prevention): it is then granted for every visitor without consent, including visitors who refuse or send Global Privacy Control.","cookie-notice")}),t.jsx("div",{className:Y.advancedGrid,children:t.jsx(q3,{value:i.googleSecurityStorage,onChange:_=>c("googleSecurityStorage",_),consentChoices:u})})]})]}),t.jsx(Mi,{onApply:x,hasChanges:h,saving:p,savedFlash:m,locked:g})]})}function Z3({staged:i,set:c,consentChoices:u,proLocked:d,saving:p,hasChanges:h,savedFlash:m,onApply:x,onUpgrade:v}){return t.jsxs("div",{className:Y.detail,children:[t.jsxs("div",{className:Y.detailHeader,children:[t.jsx("div",{className:Y.detailTitle,children:s("Facebook","cookie-notice")}),d==="pro"&&t.jsx(Un,{})]}),!d&&t.jsx(As,{signals:Ts(i,"facebook")}),t.jsx("p",{className:Y.detailDesc,children:s("Stops the Meta Pixel from tracking your visitors until they agree. Without this, Facebook can receive data about visitors who never consented — a GDPR violation if you serve EU visitors.","cookie-notice")}),d?t.jsx(zi,{locked:d,platformName:s("Facebook","cookie-notice"),onUpgrade:v}):t.jsxs(t.Fragment,{children:[t.jsx(Eo,{label:i.facebookEnabled?s("Enabled","cookie-notice"):s("Disabled","cookie-notice"),checked:i.facebookEnabled,onChange:g=>c("facebookEnabled",g)}),i.facebookEnabled&&t.jsxs("div",{className:Y.signalConfig,children:[t.jsx("div",{className:Y.signalConfigTitle,children:s("Signal mapping","cookie-notice")}),t.jsxs("div",{className:Y.groupRow,children:[t.jsx("span",{className:Y.groupLabel,children:s("Grant Pixel at","cookie-notice")}),t.jsx("select",{className:Y.groupSelect,value:i.facebookConsent,onChange:g=>c("facebookConsent",Number(g.target.value)),children:Ri(u,i.facebookConsent).map(g=>t.jsx("option",{value:g.value,children:g.label},g.value))})]}),t.jsx("p",{className:Y.groupHint,children:s("Default: Ad Personalization.","cookie-notice")})]})]}),t.jsx(Mi,{onApply:x,hasChanges:h,saving:p,savedFlash:m,locked:d})]})}function X3({staged:i,set:c,consentChoices:u,proLocked:d,saving:p,hasChanges:h,savedFlash:m,onApply:x,onUpgrade:v}){return t.jsxs("div",{className:Y.detail,children:[t.jsxs("div",{className:Y.detailHeader,children:[t.jsx("div",{className:Y.detailTitle,children:s("Microsoft","cookie-notice")}),d==="pro"&&t.jsx(Un,{})]}),!d&&t.jsx(As,{signals:Ts(i,"microsoft")}),t.jsx("p",{className:Y.detailDesc,children:s("Keeps Microsoft Advertising (Bing) and Clarity analytics compliant with consent rules. Trackers only fire after visitors agree.","cookie-notice")}),d?t.jsx(zi,{locked:d,platformName:s("Microsoft","cookie-notice"),onUpgrade:v}):t.jsxs(t.Fragment,{children:[t.jsx(Eo,{label:i.microsoftEnabled?s("Enabled","cookie-notice"):s("Disabled","cookie-notice"),checked:i.microsoftEnabled,onChange:g=>c("microsoftEnabled",g)}),i.microsoftEnabled&&t.jsxs("div",{className:Y.signalConfig,children:[t.jsx("div",{className:Y.signalConfigTitle,children:s("Signal mapping","cookie-notice")}),t.jsxs("div",{className:Y.groupRow,children:[t.jsx("span",{className:Y.groupLabel,children:s("Advertising (UET)","cookie-notice")}),t.jsx("select",{className:Y.groupSelect,value:i.microsoftAdStorage,onChange:g=>c("microsoftAdStorage",Number(g.target.value)),children:Ri(u,i.microsoftAdStorage).map(g=>t.jsx("option",{value:g.value,children:g.label},g.value))})]}),t.jsxs("div",{className:Y.groupRow,style:{marginTop:8},children:[t.jsx("span",{className:Y.groupLabel,children:s("Analytics","cookie-notice")}),t.jsx("select",{className:Y.groupSelect,value:i.microsoftAnalyticsStorage,onChange:g=>c("microsoftAnalyticsStorage",Number(g.target.value)),children:Ri(u,i.microsoftAnalyticsStorage).map(g=>t.jsx("option",{value:g.value,children:g.label},g.value))})]}),t.jsxs("div",{className:Y.subToggles,children:[t.jsx("div",{className:Y.subToggleTitle,children:s("Sub-products","cookie-notice")}),t.jsxs("label",{className:Y.subToggleRow,children:[t.jsx("input",{type:"checkbox",checked:i.microsoftPixie,onChange:g=>c("microsoftPixie",g.target.checked)}),t.jsx("span",{children:s("Pixie","cookie-notice")})]}),t.jsxs("label",{className:Y.subToggleRow,children:[t.jsx("input",{type:"checkbox",checked:i.microsoftClarity,onChange:g=>c("microsoftClarity",g.target.checked)}),t.jsx("span",{children:s("Clarity","cookie-notice")})]})]})]})]}),t.jsx(Mi,{onApply:x,hasChanges:h,saving:p,savedFlash:m,locked:d})]})}function J3({staged:i,set:c,saving:u,hasChanges:d,savedFlash:p,onApply:h,proLocked:m,onUpgrade:x,grandfathered:v}){const g=i.gpcBannerMode||"passive";return t.jsxs("div",{className:Y.detail,children:[t.jsxs("div",{className:Y.detailHeader,children:[t.jsx("div",{className:Y.detailTitle,children:s("Global Privacy Control (GPC)","cookie-notice")}),m==="pro"&&t.jsx(Un,{})]}),m?t.jsxs(t.Fragment,{children:[t.jsx("p",{className:Y.detailDesc,children:"Honors visitors who’ve told their browser they don’t want to be tracked. Required for CCPA / CPRA compliance."}),t.jsx(zi,{locked:m,platformName:"Global Privacy Control",onUpgrade:x}),t.jsx(Mi,{onApply:h,hasChanges:d,saving:u,savedFlash:p,locked:m})]}):t.jsxs(t.Fragment,{children:[t.jsx(Eo,{label:i.gpcEnabled?s("Enabled","cookie-notice"):s("Disabled","cookie-notice"),checked:i.gpcEnabled,onChange:k=>c("gpcEnabled",k)}),v&&t.jsx("p",{className:Y.detailDesc,style:{marginTop:8,fontStyle:"italic"},children:s("GPC is now a Pro feature. Your site keeps it because it was already enabled. If you turn it off, you’ll need Pro to re-enable it.","cookie-notice")}),i.gpcEnabled&&t.jsxs("fieldset",{style:{marginTop:16,padding:0,border:0},children:[t.jsx("legend",{className:Y.detailDesc,style:{padding:0,marginBottom:8,fontWeight:600},children:s("When GPC fires, what should visitors see?","cookie-notice")}),G3().map(k=>t.jsxs("label",{style:{display:"flex",alignItems:"flex-start",gap:8,padding:"6px 0",cursor:"pointer"},children:[t.jsx("input",{type:"radio",name:"gpcBannerMode",value:k.value,checked:g===k.value,onChange:()=>c("gpcBannerMode",k.value),style:{marginTop:3}}),t.jsxs("span",{children:[t.jsx("span",{style:{fontWeight:500},children:k.label}),t.jsx("span",{className:Y.detailDesc,style:{display:"block",marginTop:2},children:k.help})]})]},k.value))]}),t.jsx("p",{className:Y.detailDesc,style:{marginTop:16},children:s("Some visitors set their browser to automatically opt out of tracking. This setting respects that choice — and it’s legally required in California (CPRA). When a visitor sends this signal, tracking is blocked automatically.","cookie-notice")}),t.jsx("div",{className:Y.detailFooter,children:t.jsx(Ue,{variant:"primary",size:"sm",onClick:h,disabled:!d||u,children:s(u?"Applying…":p?"Saved ✓":"Apply","cookie-notice")})})]})]})}function ep({staged:i,set:c,saving:u,hasChanges:d,savedFlash:p,onApply:h}){return t.jsxs("div",{className:Y.detail,children:[t.jsx("div",{className:Y.detailHeader,children:t.jsx("div",{className:Y.detailTitle,children:s("Do Not Track (DNT)","cookie-notice")})}),t.jsx("p",{className:Y.detailDesc,style:{color:"#b56e00",marginBottom:12},children:s("Do Not Track is an older browser setting that most sites ignore. Enabling this is a good-faith gesture but isn’t required by any law. When a visitor has DNT enabled, tracking is blocked automatically.","cookie-notice")}),t.jsx(Eo,{label:i.doNotTrack?s("Enabled","cookie-notice"):s("Disabled","cookie-notice"),checked:i.doNotTrack,onChange:m=>c("doNotTrack",m)}),t.jsx("p",{className:Y.detailDesc,style:{marginTop:12},children:s("When enabled, visitors with DNT set receive Private (level 1) consent automatically.","cookie-notice")}),t.jsx("div",{className:Y.detailFooter,children:t.jsx(Ue,{variant:"primary",size:"sm",onClick:h,disabled:!d||u,children:s(u?"Applying…":p?"Saved ✓":"Apply","cookie-notice")})})]})}function Fl({isOpen:i,onClose:c,isWizard:u=!1,addNotice:d,onOpenPricingModal:p,onApplied:h,scrollTrigger:m}){var xe;const{config:x,refetchConfig:v}=wt(),{dashboard:g}=Mn(),{tier:k}=Ze(),_=(x==null?void 0:x.blocking)||{},b=(x==null?void 0:x.config)||{},A=((xe=g==null?void 0:g.appConfig)==null?void 0:xe.consentChoices)??3,[C,D]=w.useState({}),[P,E]=w.useState("google"),[I,R]=w.useState(!1),[O,te]=w.useState(null),[J,B]=w.useState(!1),X=w.useRef(null),q={flags:Rl(C),config:Al(C)},W=!!O&&JSON.stringify(q)!==JSON.stringify(O),ne=w.useRef(!1),le=w.useRef(!1),[he,M]=w.useState(!1);if(w.useEffect(()=>{if(!(u?x:i)){ne.current=!1,M(!1);return}if(ne.current&&le.current){M(!0);return}const F=Y3(_,b);D(F),te({flags:Rl(F),config:Al(F)}),E("google"),ne.current=!0,M(!1)},[u?x:i,x]),w.useEffect(()=>{le.current=W}),!u&&!i)return null;const me=(F,H)=>D(de=>({...de,[F]:H})),_e=async()=>{R(!0),B(!1);try{await gs(zl(q.flags,O==null?void 0:O.flags),{},zl(q.config,O==null?void 0:O.config)),te(q),h&&h({google:C.googleEnabled,facebook:C.facebookEnabled,microsoft:C.microsoftEnabled,gpc:C.gpcEnabled,dnt:C.doNotTrack}),B(!0),clearTimeout(X.current),X.current=setTimeout(()=>B(!1),2e3),v()}catch(F){d&&d((F==null?void 0:F.message)||s("Could not save — please try again.","cookie-notice"))}finally{R(!1)}},ke=kl(),U=k==="pro",ee=!!b.gpcSupportMode,Q=F=>F.key==="gpc"&&F.pro&&!U&&!ee||F.pro&&!U&&F.key!=="gpc"?"pro":F.key==="google"&&ke?"threshold":!1,S={google:C.googleEnabled,facebook:C.facebookEnabled,microsoft:C.microsoftEnabled,gpc:C.gpcEnabled,dnt:C.doNotTrack},$=t.jsxs(t.Fragment,{children:[he&&t.jsx("div",{className:Y.remoteChangedNotice,role:"status",children:s("These settings were updated elsewhere while this panel was open — in the Admin Portal, or by another user. Your unsaved edits have been kept. Reload the page to see the newer values.","cookie-notice")}),t.jsxs("div",{className:Y.layout,children:[t.jsxs("div",{className:Y.modeList,children:[t.jsxs("div",{className:Y.modeSection,children:[t.jsx("div",{className:Y.modeSectionLabel,children:s("Ad Platforms","cookie-notice")}),St().filter(F=>F.group==="platform").map(F=>{const H=Q(F);return t.jsxs("button",{className:Y.modeCard+(P===F.key?" "+Y.modeCardActive:"")+(H?" "+Y.modeCardLocked:""),onClick:()=>E(F.key),type:"button",children:[t.jsxs("div",{className:Y.modeCardTop,children:[t.jsx("span",{className:Y.modeCardName,children:F.name}),H==="pro"?t.jsx(Un,{}):t.jsx(Ml,{enabled:S[F.key]})]}),t.jsx("div",{className:Y.modeCardDesc,children:F.description}),H&&!Re()&&t.jsxs("div",{className:Y.modeCardProOverlay,role:"button",tabIndex:0,onClick:de=>{de.stopPropagation(),p&&p()},onKeyDown:de=>{(de.key==="Enter"||de.key===" ")&&(de.stopPropagation(),p&&p())},"aria-label":H==="pro"?`${F.name} requires Pro.`:`${F.name} paused — visit limit reached. Upgrade for unlimited visits.`,children:[t.jsx("span",{className:Y.lockIconLarge,children:"🔒"}),t.jsx("span",{className:Y.modeCardProLabel,children:H==="pro"?"Upgrade to Pro →":"Visit limit reached →"})]})]},F.key)})]}),t.jsxs("div",{className:Y.modeSection,children:[t.jsx("div",{className:Y.modeSectionLabel,children:s("Browser Signals","cookie-notice")}),St().filter(F=>F.group==="browser").map(F=>t.jsxs("button",{className:Y.modeCard+(P===F.key?" "+Y.modeCardActive:""),onClick:()=>E(F.key),type:"button",children:[t.jsxs("div",{className:Y.modeCardTop,children:[t.jsx("span",{className:Y.modeCardName,children:F.name}),t.jsx(Ml,{enabled:S[F.key]})]}),t.jsx("div",{className:Y.modeCardDesc,children:F.description})]},F.key))]})]}),t.jsxs("div",{className:Y.detailCol,children:[P==="google"&&t.jsx(Q3,{staged:C,set:me,consentChoices:A,proLocked:Q(St().find(F=>F.key==="google")),saving:I,hasChanges:W,savedFlash:J,onApply:_e,onUpgrade:()=>p&&p()}),P==="facebook"&&t.jsx(Z3,{staged:C,set:me,consentChoices:A,proLocked:Q(St().find(F=>F.key==="facebook")),saving:I,hasChanges:W,savedFlash:J,onApply:_e,onUpgrade:()=>p&&p()}),P==="microsoft"&&t.jsx(X3,{staged:C,set:me,consentChoices:A,proLocked:Q(St().find(F=>F.key==="microsoft")),saving:I,hasChanges:W,savedFlash:J,onApply:_e,onUpgrade:()=>p&&p()}),P==="gpc"&&t.jsx(J3,{staged:C,set:me,proLocked:Q(St().find(F=>F.key==="gpc")),grandfathered:ee,saving:I,hasChanges:W,savedFlash:J,onApply:_e,onUpgrade:()=>p&&p()}),P==="dnt"&&t.jsx(ep,{staged:C,set:me,saving:I,hasChanges:W,savedFlash:J,onApply:_e})]})]})]}),ie=St().filter(F=>S[F.key]).map(F=>F.shortName),ue=ie.length>0?je(s("%1$d enabled: %2$s","cookie-notice"),ie.length,ie.join(", ")):s("No consent signals enabled","cookie-notice"),ge=t.jsxs(t.Fragment,{children:[t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[t.jsx("a",{href:`${sn}/#/configuration`,target:"_blank",rel:"noreferrer",className:"cn-layer__link-btn",children:"Advanced settings in Admin Portal →"}),t.jsxs("span",{style:{fontSize:"var(--cn-text-sm)",color:ie.length>0?"var(--cn-ok-icon)":"var(--cn-off-val)"},children:[ie.length>0?"✓ ":"",ue]})]}),t.jsx(Ue,{variant:"primary",onClick:c,children:s("Done","cookie-notice")})]});return u?$:t.jsx(Ls,{title:s("Consent Signals","cookie-notice"),onClose:c,scrollTrigger:m,footer:ge,children:$})}let Gt;function np(i){if(Gt===void 0)try{Gt=localStorage.getItem(i)==="1",Gt&&localStorage.removeItem(i)}catch{Gt=!1}return Gt}function tp({addNotice:i,onOpenWelcomeModal:c,onOpenPricingModal:u,onTabChange:d}){var ge,xe,F,H,de,Ve;const{tier:p,isPro:h}=Ze(),{dashboard:m,scorecardStatus:x}=Mn(),{showLawWizard:v,lawScrollTrigger:g,lawClosing:k,closeLawWizard:_,openLawWizard:b,showConsentPanel:A,consentScrollTrigger:C,consentClosing:D,closeConsentPanel:P,openConsentPanel:E}=ki(),[I,R]=w.useState(((xe=(ge=window.cnReactData)==null?void 0:ge.options)==null?void 0:xe.app_id)||""),[O,te]=w.useState(((H=(F=window.cnReactData)==null?void 0:F.options)==null?void 0:H.app_key)||""),[J,B]=w.useState(!1),[X,q]=w.useState(""),W=async()=>{B(!0),q("");try{await ml({app_id:I,app_key:O});try{const De=await gn("sync_config");if(De!=null&&De.success){try{await ms()}catch{}try{localStorage.setItem(ls(I),"1"),localStorage.setItem(us(I),"1")}catch{}}}catch{}I?Bt():window.location.reload()}catch(De){q(De.message||s("Save failed","cookie-notice")),B(!1)}},ne=(m==null?void 0:m.appConfig)||{},le=bs(),he=Lo(),M=Ai(),me=w2((de=window.cnReactData)==null?void 0:de.app_id),[_e,ke]=w.useState(()=>p!=="banner_only"&&np(me));if(M)return t.jsxs(In,{sidebar:t.jsx(Wt,{addNotice:i}),children:[t.jsx("div",{className:"cn-protection-header",children:t.jsx("h1",{className:"cn-protection-header__title",children:s("Overview","cookie-notice")})}),t.jsx(ss,{})]});if(p==="banner_only"){const De=Re();return t.jsxs(In,{sidebar:t.jsxs(t.Fragment,{children:[t.jsxs(On,{title:s("Domain Info","cookie-notice"),children:[t.jsxs("div",{className:"cn-dom-rows",children:[t.jsxs("div",{className:"cn-dom-row",children:[t.jsx("span",{className:"cn-dom-row__k",children:s("Domain","cookie-notice")}),t.jsx("span",{className:"cn-dom-row__v",children:window.location.hostname})]}),t.jsxs("div",{className:"cn-dom-row",children:[t.jsx("span",{className:"cn-dom-row__k",children:s("Status","cookie-notice")}),t.jsxs("span",{className:"cn-dom-row__v",children:[t.jsx("span",{className:"cn-dot cn-dot--gray"})," ",s(De?"Managed by network":"Not connected","cookie-notice")]})]})]}),!De&&t.jsxs(t.Fragment,{children:[t.jsx(Ce,{label:s("App ID","cookie-notice"),value:I,onChange:R,placeholder:s("Your application ID","cookie-notice"),autoComplete:"off"}),t.jsx(Ce,{label:s("App Secret Key","cookie-notice"),type:"password",value:O,onChange:te,placeholder:s("Your App Secret Key","cookie-notice"),autoComplete:"new-password"}),t.jsx(Ns,{}),t.jsxs("p",{className:"cn-conn-hint cn-conn-hint--returning",children:[s("Already have an account?","cookie-notice")," ",t.jsx("a",{href:sn,target:"_blank",rel:"noopener noreferrer",children:s("Find your App ID and App Secret Key at app.hu-manity.co","cookie-notice")})]}),X&&t.jsx("div",{className:"cn-conn-error",children:X}),t.jsx(Ue,{variant:"primary",onClick:W,disabled:J,children:s(J?"Saving…":"Connect Your Site","cookie-notice")})]})]}),!De&&t.jsxs(On,{title:s("What you get with compliance","cookie-notice"),children:[t.jsxs("ul",{className:"cn-benefit-list",children:[t.jsxs("li",{className:"cn-benefit-item",children:[t.jsx("span",{className:"cn-benefit-icon",children:"✓"}),t.jsx("span",{children:s("Stop tracking scripts from firing before visitors agree","cookie-notice")})]}),t.jsxs("li",{className:"cn-benefit-item",children:[t.jsx("span",{className:"cn-benefit-icon",children:"✓"}),t.jsx("span",{children:s("Build a legal evidence trail regulators can verify","cookie-notice")})]}),t.jsxs("li",{className:"cn-benefit-item",children:[t.jsx("span",{className:"cn-benefit-icon",children:"✓"}),t.jsx("span",{children:s("Cover GDPR, CCPA, and 40+ global regulations automatically","cookie-notice")})]}),t.jsxs("li",{className:"cn-benefit-item",children:[t.jsx("span",{className:"cn-benefit-icon",children:"✓"}),t.jsx("span",{children:s("Real compliance in under 60 seconds — free to start","cookie-notice")})]})]}),t.jsxs("div",{className:"cn-connect-cta",children:[t.jsxs("button",{type:"button",className:"cn-button cn-button--primary cn-button--block",onClick:()=>c&&c(),children:[s("Connect Your Site","cookie-notice")," →"]}),t.jsx("div",{className:"cn-connect-cta__caption",children:s("No credit card required","cookie-notice")})]})]})]}),children:[De?t.jsx(rs,{}):t.jsx(v3,{onActivate:()=>c&&c()}),t.jsx(Ss,{requiredTier:"free",message:s("Script blocking, consent records, regulatory alerts & more","cookie-notice"),onCta:c,children:t.jsx("div",{className:"cn-pro-gate-placeholder",children:t.jsx("div",{className:"cn-placeholder-charts"})})})]})}const U=Re(),ee=U?null:(m==null?void 0:m.scorecard)||null,Q=((Ve=window.cnReactData)==null?void 0:Ve.siteUrl)||"",S=Q?`${Q}?cn_preview=1`:"",$=jl(ne.regulations),ie=!!m&&((ee==null?void 0:ee.state)==="no_laws"||$.length===0),ue=De=>{d&&(d("settings"),setTimeout(()=>{const Ao=document.getElementById(De);Ao&&Ao.scrollIntoView({behavior:"smooth",block:"start"})},80))};return t.jsxs(In,{sidebar:t.jsx(Wt,{addNotice:i}),children:[t.jsx("div",{className:"cn-protection-header",children:t.jsx("h1",{className:"cn-protection-header__title",children:s("Overview","cookie-notice")})}),t.jsxs(as,{managed:U,children:[_e&&he==="live"&&t.jsxs("div",{className:"cn-inline-notice cn-inline-notice--success",children:[t.jsxs("div",{className:"cn-inline-notice__message",children:[t.jsxs("strong",{children:["✓"," ",s("Your banner is live.","cookie-notice")]})," ",s("Visitors now see your banner, and your chosen laws and languages are active.","cookie-notice")]}),t.jsxs("div",{className:"cn-inline-notice__actions",children:[S&&t.jsxs("a",{className:"cn-layer__link-btn",href:S,target:"_blank",rel:"noreferrer",children:[s("Preview your live banner","cookie-notice")," →"]}),t.jsx("button",{type:"button",className:"cn-layer__link-btn",onClick:()=>{Gt=!1,ke(!1)},children:s("Dismiss","cookie-notice")})]})]}),t.jsx($3,{initialLaws:$,onOpenPricingModal:u}),!U&&t.jsx(S3,{scorecard:ee,status:x,blockingState:le,widgetState:he,isPro:h,siteUrl:Q,actions:{banner:()=>ue("cn-banner-panel-title"),autoblocking:()=>ue("cn-compliance-behavior"),signals:()=>E(),pricing:u}}),!U&&t.jsx(C3,{dashboard:m,isFree:p==="free",onOpenConsentLogs:d?()=>d("audit-trail"):null}),t.jsx(P3,{noLaws:ie,isPro:h,managed:U,onOpenLaws:()=>b(),onOpenSignals:()=>E(),onOpenPricing:u,onOpenPrivacy:d?()=>d("privacy-consent"):null}),A&&t.jsx(Fl,{isOpen:!0,onClose:P,addNotice:i,onOpenPricingModal:u,onApplied:()=>{},scrollTrigger:C,isClosing:D}),v&&t.jsx(Tl,{onClose:_,scrollTrigger:g,isClosing:k})]})]})}function Il(){var E,I;const{tier:i}=Ze(),{dashboard:c}=Mn(),[u,d]=w.useState(()=>new Set),p=w.useCallback(R=>{d(O=>new Set([...O,R]))},[]),h=((E=window.cnReactData)==null?void 0:E.notificationRules)||[],m=c===null,x=(I=c==null?void 0:c.analytics)==null?void 0:I.cycleUsage,v=(x==null?void 0:x.visits)||0,g=(x==null?void 0:x.threshold)||0,k=g>0?v/g*100:0,_=g>0?g:i==="free"?1e3:0,b=kl(),A=i==="free"&&g>0&&v>=g*.7&&v<g,C=w.useMemo(()=>{var O,te,J;if(m)return{};const R={};for(const B of h){if((O=B.condition)!=null&&O.tier&&B.condition.tier!==i)continue;if((te=B.condition)!=null&&te.usagePercent){const[q,W]=B.condition.usagePercent;if(q!==null&&k<q||W!==null&&k>=W)continue}if(((J=B.condition)==null?void 0:J.thresholdExceeded)!==void 0&&B.condition.thresholdExceeded!==b||u.has(B.id))continue;const X=R[B.slot];(!X||B.priority>X.priority)&&(R[B.slot]=B)}return R},[m,h,i,k,b,u]);function D(R){return R&&R.replace(/\{sessionTotal\}/g,_.toLocaleString()).replace(/\{sessionUsed\}/g,v.toLocaleString()).replace(/\{usagePercent\}/g,String(Math.round(k)))}function P(R){return R?{...R,title:D(R.title),description:D(R.description),headline:D(R.headline)}:null}return{topBar:P(C.topBar||null),sidebar:P(C.sidebar||null),dismiss:p,thresholdLocked:b,isNearLimit:A}}function op({onOpenPricingModal:i}){const{sidebar:c}=Il();return!c||Re()?null:t.jsx(On,{title:s("Upgrade to Pro","cookie-notice"),children:t.jsxs("div",{className:"cn-upsell-card",children:[t.jsx("p",{className:"cn-upsell-card__headline",children:c.headline}),t.jsx("ul",{className:"cn-upsell-card__features",children:c.features.map(u=>t.jsx("li",{children:u},u))}),t.jsx("button",{type:"button",className:"cn-button cn-button--upgrade cn-button--sm cn-upsell-card__cta",onClick:()=>i&&i(),children:c.cta.label})]})})}const ip=()=>[{key:"top",label:s("Top","cookie-notice"),posClass:"pos-top"},{key:"bottom",label:s("Bottom","cookie-notice"),posClass:"pos-bottom"}],rp=()=>[{key:"top",label:s("Top","cookie-notice"),posClass:"pos-top"},{key:"bottom",label:s("Bottom","cookie-notice"),posClass:"pos-bottom"},{key:"left",label:s("Left","cookie-notice"),posClass:"pos-left"},{key:"right",label:s("Right","cookie-notice"),posClass:"pos-right"},{key:"center",label:s("Popup","cookie-notice"),posClass:"pos-center",proOnly:!0}];function sp({options:i,update:c,save:u,loading:d,saved:p,error:h}){const{isBannerOnly:m,isPro:x}=Ze(),v=m?ip():rp(),[g,k]=w.useState(!1),[_,b]=w.useState(!1),[A,C]=w.useState(""),[D,P]=w.useState(!1),[E,I]=w.useState(i.displayType||"fixed"),R=q=>{const W=i.position||"bottom";q!==W&&(m?(c("position",q),k(!0)):(b(!0),C(""),P(!1),gs({position:q,displayType:E}).then(()=>{P(!0),c("position",q)}).catch(ne=>C(ne.message||"Save failed.")).finally(()=>b(!1))))},O=q=>{q!==E&&(I(q),m?(c("displayType",q),k(!0)):(b(!0),C(""),P(!1),gs({position:i.position||"bottom",displayType:q}).then(()=>{P(!0),c("displayType",q)}).catch(W=>C(W.message||"Save failed.")).finally(()=>b(!1))))};w.useEffect(()=>{g&&m&&(k(!1),u())},[i.position,i.displayType,g,u,m]);const te=i.position||"bottom",J=m?d:_,B=m?p:D,X=m?h:A;return t.jsxs("div",{className:"cn-banner-selector",children:[t.jsxs("div",{className:"cn-banner-selector__header",children:[t.jsx("span",{className:"cn-section-label",children:s("Banner Position","cookie-notice")}),B&&t.jsx("span",{className:"cn-saved-indicator",children:"✓ Saved"}),X&&t.jsx("span",{className:"cn-error-indicator",children:X})]}),!m&&t.jsx(t.Fragment,{children:t.jsxs("div",{className:"cn-banner-selector__toggle-row",children:[t.jsx("span",{className:"cn-banner-selector__size-label",children:s("Banner Size","cookie-notice")}),t.jsxs("div",{className:"cn-banner-selector__size-opts",children:[t.jsx("button",{className:`cn-banner-selector__size-opt${E==="floating"?" cn-banner-selector__size-opt--on":""}`,onClick:()=>O("floating"),children:s("Floating","cookie-notice")}),t.jsx("button",{className:`cn-banner-selector__size-opt${E==="fixed"?" cn-banner-selector__size-opt--on":""}`,onClick:()=>O("fixed"),children:s("Fixed","cookie-notice")})]}),t.jsx("span",{className:"cn-banner-selector__size-desc",children:E==="floating"?"Fills only as much space as necessary.":"Expands to fill all available space."})]})}),t.jsx("div",{className:`cn-banner-selector__grid${!m&&E==="floating"?" cn-banner-selector__grid--floating":""}`,children:v.map(q=>{const W=q.proOnly&&!x;return t.jsxs("div",{className:"cn-banner-selector__card"+(te===q.key?" cn-banner-selector__card--active":"")+(J&&!W?" cn-banner-selector__card--saving":"")+(W?" cn-banner-selector__card--locked":""),onClick:()=>!W&&R(q.key),title:W?"Upgrade to Pro to use the Popup position":void 0,children:[W&&t.jsx("span",{className:"cn-banner-selector__pro-badge",children:t.jsx(Un,{})}),t.jsx("div",{className:"cn-banner-selector__thumb",children:t.jsx("div",{className:`cn-banner-selector__pos ${q.posClass}${W?" cn-banner-selector__pos--locked":""}`})}),t.jsxs("div",{className:"cn-banner-selector__meta",children:[t.jsx("span",{className:"cn-banner-selector__name",children:q.label}),te===q.key&&!W&&t.jsx("span",{className:"cn-banner-selector__active-pill",children:s("Active","cookie-notice")}),W&&t.jsx("span",{className:"cn-banner-selector__locked-label",children:s("Pro only","cookie-notice")})]})]},q.key)})}),!m&&t.jsx("div",{className:"cn-banner-selector__portal-link",children:t.jsx("a",{href:`${sn}/#/configuration`,target:"_blank",rel:"noopener noreferrer",children:"Customize in Admin Portal →"})})]})}const Rs={size:24,color:"currentColor"};function vn({size:i,color:c,className:u,style:d}={},p){return{xmlns:"http://www.w3.org/2000/svg",width:i||Rs.size,height:i||Rs.size,viewBox:"0 0 24 24",fill:"none",stroke:c||Rs.color,strokeWidth:1.75,strokeLinecap:"round",strokeLinejoin:"round",className:u||"",style:d,...p}}function ap(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("path",{d:"M12 2L3 6v5.5c0 4.5 3.8 8.7 9 10 5.2-1.3 9-5.5 9-10V6l-9-4z"}),t.jsx("polyline",{points:"8.5 12 11 14.5 15.5 9.5"})]})}function cp(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("circle",{cx:"12",cy:"12",r:"10"}),t.jsx("ellipse",{cx:"12",cy:"12",rx:"4",ry:"10"}),t.jsx("line",{x1:"2",y1:"12",x2:"22",y2:"12"})]})}function lp(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("rect",{x:"4",y:"14",width:"4",height:"7",rx:"1"}),t.jsx("rect",{x:"10",y:"9",width:"4",height:"12",rx:"1"}),t.jsx("rect",{x:"16",y:"4",width:"4",height:"17",rx:"1"})]})}function Ol(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("rect",{x:"5",y:"2",width:"14",height:"20",rx:"2"}),t.jsx("line",{x1:"9",y1:"8",x2:"15",y2:"8"}),t.jsx("line",{x1:"9",y1:"12",x2:"15",y2:"12"}),t.jsx("line",{x1:"9",y1:"16",x2:"13",y2:"16"})]})}function zs(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("rect",{x:"5",y:"11",width:"14",height:"10",rx:"2"}),t.jsx("path",{d:"M8 11V7a4 4 0 0 1 8 0v4"})]})}function Ul(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("circle",{cx:"12",cy:"12",r:"10"}),t.jsx("path",{d:"M9 12l2 2 4-4"})]})}function Bl(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}),t.jsx("line",{x1:"12",y1:"9",x2:"12",y2:"13"}),t.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]})}function up(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("circle",{cx:"12",cy:"12",r:"3"}),t.jsx("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09a1.65 1.65 0 0 0-1.08-1.51 1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09a1.65 1.65 0 0 0 1.51-1.08 1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1.08z"})]})}function dp(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("line",{x1:"12",y1:"3",x2:"12",y2:"21"}),t.jsx("line",{x1:"9",y1:"21",x2:"15",y2:"21"}),t.jsx("line",{x1:"3.5",y1:"8",x2:"20.5",y2:"8"}),t.jsx("line",{x1:"3.5",y1:"8",x2:"3.5",y2:"13"}),t.jsx("path",{d:"M1.5 13Q3.5 16.5 5.5 13"}),t.jsx("line",{x1:"20.5",y1:"8",x2:"20.5",y2:"13"}),t.jsx("path",{d:"M18.5 13Q20.5 16.5 22.5 13"})]})}function pp(i){return t.jsx("svg",{...vn(i),children:t.jsx("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"})})}function fp(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("rect",{x:"2",y:"2",width:"20",height:"16",rx:"2.5"}),t.jsx("line",{x1:"2",y1:"13",x2:"22",y2:"13"}),t.jsx("line",{x1:"6",y1:"7",x2:"11",y2:"7"}),t.jsx("line",{x1:"6",y1:"10",x2:"9",y2:"10"}),t.jsx("rect",{x:"14",y:"14.5",width:"5",height:"2",rx:"1",fill:"currentColor",stroke:"none"}),t.jsx("line",{x1:"4",y1:"15.5",x2:"10",y2:"15.5"})]})}function hp(i){return t.jsx("svg",{...vn(i),children:t.jsx("polyline",{points:"6 9 12 15 18 9"})})}function mp(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("path",{d:"M7 15l5 5 5-5"}),t.jsx("path",{d:"M7 9l5-5 5 5"})]})}function Kn({title:i,subtitle:c,defaultOpen:u=!1,children:d}){return t.jsxs("details",{className:"cn-accordion",open:u||void 0,children:[t.jsxs("summary",{className:"cn-accordion__summary",children:[t.jsxs("div",{className:"cn-accordion__left",children:[t.jsx("span",{className:"cn-accordion__title",children:i}),c&&t.jsx("span",{className:"cn-accordion__subtitle",children:c})]}),t.jsx("span",{className:"cn-accordion__chevron",children:t.jsx(hp,{size:16})})]}),t.jsx("div",{className:"cn-accordion__body",children:d})]})}function Ms({label:i,value:c,onChange:u}){const d=`cn-color-${i==null?void 0:i.toLowerCase().replace(/\s+/g,"-")}`;return t.jsxs("div",{className:"cn-form-field",children:[i&&t.jsx("label",{className:"cn-form-field__label",htmlFor:d,children:i}),t.jsxs("div",{className:"cn-color-picker__row",children:[t.jsx("input",{type:"color",className:"cn-color-picker__swatch",value:c||"#000000",onChange:p=>u==null?void 0:u(p.target.value)}),t.jsx("input",{id:d,type:"text",className:"cn-form-field__input",value:c||"",onChange:p=>u==null?void 0:u(p.target.value),placeholder:"#000000",style:{flex:1}})]})]})}const gp=()=>[{value:"bottom",label:s("Bottom","cookie-notice")},{value:"top",label:s("Top","cookie-notice")}],vp=()=>[{value:"fade",label:s("Fade","cookie-notice")},{value:"slide",label:s("Slide","cookie-notice")},{value:"none",label:s("None","cookie-notice")}];function Fi({label:i,value:c}){return t.jsxs("div",{className:"cn-form-readonly",children:[t.jsx("label",{className:"cn-form-readonly__label",children:i}),t.jsx("span",{className:"cn-form-readonly__value",children:c||s("(default)","cookie-notice")}),t.jsxs("a",{href:`${sn}/#/configuration`,target:"_blank",rel:"noreferrer",className:"cn-form-readonly__link",children:[s("Edit text in Admin Portal","cookie-notice")," →"]})]})}function yp({options:i,update:c,updateNested:u}){const d=i.colors||{};i.see_more_opt;const{isConnected:p,isBannerOnly:h}=Ze();return t.jsx(Kn,{title:s("Banner Design","cookie-notice"),subtitle:s("Texts, colors, position, and animation","cookie-notice"),defaultOpen:!0,children:t.jsxs("div",{className:"cn-banner-design__grid",children:[t.jsxs("div",{className:"cn-banner-design__col",children:[p?t.jsx(Fi,{label:s("Banner Message","cookie-notice"),value:i.message_text}):t.jsx(Ce,{label:s("Banner Message","cookie-notice"),type:"textarea",value:i.message_text||"",onChange:m=>c("message_text",m)}),p?t.jsx(Fi,{label:s("Accept Button","cookie-notice"),value:i.accept_text}):t.jsx(Ce,{label:s("Accept Button","cookie-notice"),value:i.accept_text||"",onChange:m=>c("accept_text",m),placeholder:s("Accept All","cookie-notice")}),p?t.jsx(Fi,{label:s("Reject Button","cookie-notice"),value:i.refuse_text}):t.jsx(Ce,{label:s("Reject Button","cookie-notice"),value:i.refuse_text||"",onChange:m=>c("refuse_text",m),placeholder:s("Reject All","cookie-notice")}),!h&&(p?t.jsx(Fi,{label:s("Update consent button","cookie-notice"),value:i.revoke_text}):t.jsx(Ce,{label:s("Update consent button","cookie-notice"),value:i.revoke_text||"",onChange:m=>c("revoke_text",m),placeholder:s("Update consent","cookie-notice")})),t.jsx(Ce,{label:s("Banner Position","cookie-notice"),type:"select",value:i.position||"bottom",onChange:m=>c("position",m),options:gp()}),t.jsx(Ce,{label:s("Dismiss Animation","cookie-notice"),type:"select",value:i.hide_effect||"fade",onChange:m=>c("hide_effect",m),options:vp()})]}),t.jsxs("div",{className:"cn-banner-design__col",children:[t.jsx(Ms,{label:s("Background Color","cookie-notice"),value:d.bar||"#32323a",onChange:m=>u("colors","bar",m)}),t.jsx(Ms,{label:s("Text Color","cookie-notice"),value:d.text||"#ffffff",onChange:m=>u("colors","text",m)}),t.jsx(Ms,{label:s("Button Color","cookie-notice"),value:d.button||"#00a99d",onChange:m=>u("colors","button",m)})]})]})})}function _p({onConnect:i}){return t.jsxs("div",{className:"cn-tier-gate-inline",children:[t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{opacity:.5},children:[t.jsx("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),t.jsx("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]}),t.jsxs("div",{children:[t.jsx("strong",{children:s("Advanced features require a connection","cookie-notice")}),t.jsx("p",{style:{margin:"4px 0 0",color:"var(--cn-muted)",fontSize:"var(--cn-text-sm)"},children:s("Connect your site to unlock Autoblocking, Cookie Categories, Consent Records, and Analytics.","cookie-notice")})]}),t.jsx("button",{type:"button",className:"cn-button cn-button--primary",onClick:i,children:s("Connect Your Site — It’s Free","cookie-notice")})]})}const kp=()=>({gpcSupportMode:{title:s("GPC support","cookie-notice"),summary:s("GPC (Global Privacy Control) tells browsers to signal opt-out of data sale automatically. Required for CCPA compliance.","cookie-notice"),navPath:[s("Compliance","cookie-notice"),s("Privacy Settings","cookie-notice"),s("GPC Support","cookie-notice")],action:s("Toggle GPC Support on, then save.","cookie-notice"),deepLink:"/#/configuration"},onClose:{title:s("Accept on close","cookie-notice"),summary:s("Accepting consent when users dismiss the banner is not allowed under GDPR and UK PECR.","cookie-notice"),navPath:[s("Compliance","cookie-notice"),s("Consent Settings","cookie-notice"),s("Accept on Close","cookie-notice")],action:s("Ensure Accept on Close is set to Off.","cookie-notice"),deepLink:"/#/configuration"},uiBlocking:{title:s("Cookie wall (UI blocking)","cookie-notice"),summary:s('Blocking site access until consent is given (a "cookie wall") violates GDPR — consent must be freely given.',"cookie-notice"),navPath:[s("Compliance","cookie-notice"),s("Blocking Settings","cookie-notice"),s("Cookie Wall","cookie-notice")],action:s("Ensure Cookie Wall is set to Off.","cookie-notice"),deepLink:"/#/configuration"}}),xp=()=>t.jsxs("svg",{viewBox:"0 0 28 28",fill:"none",width:"28",height:"28","aria-hidden":"true",children:[t.jsx("path",{d:"M14 3L4 7v7c0 6.627 4.477 12.5 10 14.5C19.523 26.5 24 20.627 24 14V7L14 3z",stroke:"rgba(255,255,255,.75)",strokeWidth:"1.5",strokeLinejoin:"round"}),t.jsx("path",{d:"M9 14l3.5 3.5L19 11",stroke:"#fff",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});function wp({settingKey:i,accountEmail:c,onClose:u,onSynced:d}){const[p,h]=w.useState(!1),[m,x]=w.useState(""),v=kp()[i];if(!v||Re())return null;const g=v.deepLink?sn+v.deepLink:sn,k=async()=>{h(!0),x("");try{await gn("sync_config"),d==null||d(),u==null||u()}catch{x("Sync failed. Please try again or refresh the page.")}finally{h(!1)}};return t.jsx("div",{className:"cn-portal-bridge-overlay",role:"dialog","aria-modal":"true","aria-label":je(s("Configure %s in Admin Portal","cookie-notice"),v.title),children:t.jsxs("div",{className:"cn-portal-bridge",children:[t.jsxs("div",{className:"cn-portal-bridge__header",children:[t.jsx("div",{className:"cn-portal-bridge__header-icon",children:t.jsx(xp,{})}),t.jsxs("div",{children:[t.jsxs("div",{className:"cn-portal-bridge__header-title",children:[v.title," is configured in the Admin Portal"]}),t.jsx("div",{className:"cn-portal-bridge__header-sub",children:s("Takes about 60 seconds","cookie-notice")})]})]}),t.jsxs("div",{className:"cn-portal-bridge__body",children:[t.jsx("p",{className:"cn-portal-bridge__summary",children:v.summary}),c&&t.jsxs("div",{className:"cn-portal-bridge__context",children:[t.jsx("div",{className:"cn-portal-bridge__context-dot"}),t.jsxs("div",{className:"cn-portal-bridge__context-text",children:["Sign in with ",t.jsx("strong",{children:c})," to access this setting."]})]}),t.jsxs("div",{className:"cn-portal-bridge__steps",children:[t.jsxs("div",{className:"cn-portal-bridge__step",children:[t.jsx("div",{className:"cn-portal-bridge__step-num",children:"1"}),t.jsxs("div",{className:"cn-portal-bridge__step-body",children:[t.jsx("div",{className:"cn-portal-bridge__step-title",children:s("Open the Admin Portal","cookie-notice")}),t.jsx("div",{className:"cn-portal-bridge__step-desc",children:s("Opens in a new tab.","cookie-notice")})]})]}),t.jsxs("div",{className:"cn-portal-bridge__step",children:[t.jsx("div",{className:"cn-portal-bridge__step-num",children:"2"}),t.jsxs("div",{className:"cn-portal-bridge__step-body",children:[t.jsx("div",{className:"cn-portal-bridge__step-title",children:s("Navigate to the setting","cookie-notice")}),t.jsx("div",{className:"cn-portal-bridge__step-desc",children:v.navPath.join(" → ")})]})]}),t.jsxs("div",{className:"cn-portal-bridge__step",children:[t.jsx("div",{className:"cn-portal-bridge__step-num",children:"3"}),t.jsxs("div",{className:"cn-portal-bridge__step-body",children:[t.jsx("div",{className:"cn-portal-bridge__step-title",children:s("Make the change","cookie-notice")}),t.jsx("div",{className:"cn-portal-bridge__step-desc",children:v.action})]})]})]}),m&&t.jsx("div",{className:"cn-portal-bridge__error",children:m}),t.jsxs("div",{className:"cn-portal-bridge__actions",children:[t.jsx("a",{href:g,target:"_blank",rel:"noopener noreferrer",className:"cn-portal-bridge__btn cn-portal-bridge__btn--primary",children:"Open Admin Portal →"}),t.jsx("button",{type:"button",className:"cn-portal-bridge__btn cn-portal-bridge__btn--secondary",onClick:k,disabled:p,children:p?"Checking…":"I've made the change"})]})]}),t.jsx("div",{className:"cn-portal-bridge__dismiss",children:t.jsx("button",{type:"button",onClick:u,className:"cn-portal-bridge__dismiss-btn",children:s("Not now","cookie-notice")})})]})})}const $l={banner:"Banner shown",hidden:"Silent",passive:"Passive notice"},jp=()=>[{key:"app_blocking_engine",wpKey:"app_blocking_engine",label:s("Script blocking engine","cookie-notice"),desc:s("The master switch. Turn this off and Cookie Compliance never touches your scripts — nothing is blocked for any visitor, in any region, regardless of privacy signals. Leave it on unless you handle script blocking yourself.","cookie-notice"),valueType:"toggle",requiredFor:[],activeLaws:[],activeValue:!0},{key:"app_blocking",wpKey:"app_blocking",label:s("Autoblocking","cookie-notice"),desc:s("Block before consent. Holds third-party scripts until the visitor makes a choice. With this off, scripts load immediately; once the visitor chooses, their choice is enforced either way.","cookie-notice"),valueType:"toggle",requiredFor:[],activeLaws:[],activeValue:!0},{key:"onScroll",label:s("Accept on scroll","cookie-notice"),desc:s("Consent granted automatically if visitor scrolls","cookie-notice"),valueType:"bool-inverted",requiredFor:["gdpr","ukpecr","lgpd","popia"],activeLaws:["gdpr","ukpecr","lgpd","popia"],activeValue:!1},{key:"onClick",label:s("Accept on click","cookie-notice"),desc:s("Consent granted automatically on any page click","cookie-notice"),valueType:"bool-inverted",requiredFor:["gdpr","ukpecr","lgpd","popia"],activeLaws:["gdpr","ukpecr","lgpd","popia"],activeValue:!1},{key:"onClose",label:s("Accept on close","cookie-notice"),desc:s("Consent granted automatically if banner is closed","cookie-notice"),valueType:"bool-inverted",requiredFor:["gdpr","ukpecr","popia"],activeLaws:["gdpr","ukpecr","popia"],activeValue:!1,portalOnly:!0},{key:"refuse_opt",wpKey:"refuse_opt",label:s("Refuse button","cookie-notice"),desc:s("Display a button allowing visitors to decline tracking","cookie-notice"),valueType:"bool",requiredFor:["gdpr","ukpecr","lgpd","pipeda","popia"],activeLaws:["gdpr","ukpecr","lgpd","pipeda","popia"],activeValue:!0},{key:"revokeConsent",label:s("Update consent","cookie-notice"),desc:s("Floating control so visitors can reopen the banner and update their consent","cookie-notice"),valueType:"bool",requiredFor:[],activeLaws:["gdpr","ccpa","otherus","ukpecr","lgpd","pipeda","popia"],activeValue:!0},{key:"gpcSupportMode",label:s("GPC support","cookie-notice"),desc:s("Honor browser-level opt-out signals automatically","cookie-notice"),valueType:"bool",requiredFor:[],activeLaws:["ccpa","otherus"],activeValue:!0,portalOnly:!0,pro:!0,globalNote:s("Required for all connected sites (CCPA/CPRA mandate)","cookie-notice")},{key:"consentExpiry",label:s("Consent expiry","cookie-notice"),desc:s("How long before visitors are prompted again","cookie-notice"),valueType:"expiry-array",requiredFor:["gdpr","ukpecr"],activeLaws:["gdpr","ukpecr"]},{key:"uiBlocking",label:s("Cookie wall","cookie-notice"),desc:s("Block access to site content until consent is given","cookie-notice"),valueType:"bool-inverted",requiredFor:["gdpr"],activeLaws:["gdpr"],activeValue:!1,portalOnly:!0}],Bn={shield:({color:i})=>t.jsxs("svg",{viewBox:"0 0 22 22",fill:"none",width:"22",height:"22","aria-hidden":"true",children:[t.jsx("path",{d:"M11 3L4 6v5c0 4 3.5 7 7 8 3.5-1 7-4 7-8V6L11 3z",stroke:i,strokeWidth:"1.5",strokeLinejoin:"round"}),t.jsx("polyline",{points:"8,11 10,13 14,9",stroke:i,strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})]}),scroll:({color:i})=>t.jsxs("svg",{viewBox:"0 0 22 22",fill:"none",width:"22",height:"22","aria-hidden":"true",children:[t.jsx("rect",{x:"4",y:"3",width:"14",height:"16",rx:"3",stroke:i,strokeWidth:"1.5"}),t.jsx("polyline",{points:"9,13 11,16 13,13",stroke:i,strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("line",{x1:"11",y1:"9",x2:"11",y2:"16",stroke:i,strokeWidth:"1.2",strokeLinecap:"round"})]}),click:({color:i})=>t.jsxs("svg",{viewBox:"0 0 22 22",fill:"none",width:"22",height:"22","aria-hidden":"true",children:[t.jsx("path",{d:"M8.5 10.5V5.5a1.5 1.5 0 013 0v5",stroke:i,strokeWidth:"1.5",strokeLinecap:"round"}),t.jsx("path",{d:"M11.5 8.5V5a1.5 1.5 0 013 0V10",stroke:i,strokeWidth:"1.5",strokeLinecap:"round"}),t.jsx("path",{d:"M14.5 8a1.5 1.5 0 013 0v4c0 3.314-2.686 6-6 6h-1a5 5 0 01-5-5v-2.5a1.5 1.5 0 013 0",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),close:({color:i})=>t.jsxs("svg",{viewBox:"0 0 22 22",fill:"none",width:"22",height:"22","aria-hidden":"true",children:[t.jsx("rect",{x:"3",y:"3",width:"16",height:"16",rx:"3",stroke:i,strokeWidth:"1.5"}),t.jsx("line",{x1:"8",y1:"8",x2:"14",y2:"14",stroke:i,strokeWidth:"1.4",strokeLinecap:"round"}),t.jsx("line",{x1:"14",y1:"8",x2:"8",y2:"14",stroke:i,strokeWidth:"1.4",strokeLinecap:"round"})]}),refuse:({color:i})=>t.jsxs("svg",{viewBox:"0 0 22 22",fill:"none",width:"22",height:"22","aria-hidden":"true",children:[t.jsx("rect",{x:"3",y:"7",width:"16",height:"8",rx:"3",stroke:i,strokeWidth:"1.5"}),t.jsx("line",{x1:"7",y1:"11",x2:"15",y2:"11",stroke:i,strokeWidth:"1.3",strokeLinecap:"round"})]}),revoke:({color:i})=>t.jsxs("svg",{viewBox:"0 0 22 22",fill:"none",width:"22",height:"22","aria-hidden":"true",children:[t.jsx("path",{d:"M4 8h7a6 6 0 110 12H6",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("polyline",{points:"4,4 4,8 8,8",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),gpc:({color:i})=>t.jsxs("svg",{viewBox:"0 0 22 22",fill:"none",width:"22",height:"22","aria-hidden":"true",children:[t.jsx("path",{d:"M8 10V5a1.5 1.5 0 013 0v5",stroke:i,strokeWidth:"1.5",strokeLinecap:"round"}),t.jsx("path",{d:"M11 8V4.5a1.5 1.5 0 013 0V9",stroke:i,strokeWidth:"1.5",strokeLinecap:"round"}),t.jsx("path",{d:"M14 7.5a1.5 1.5 0 013 0V12c0 3.314-2.686 6-6 6h-1a5 5 0 01-5-5v-2a1.5 1.5 0 013 0",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),clock:({color:i})=>t.jsxs("svg",{viewBox:"0 0 22 22",fill:"none",width:"22",height:"22","aria-hidden":"true",children:[t.jsx("circle",{cx:"11",cy:"11",r:"9",stroke:i,strokeWidth:"1.5"}),t.jsx("polyline",{points:"11,6 11,11 14,14",stroke:i,strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})]}),power:({color:i})=>t.jsxs("svg",{viewBox:"0 0 22 22",fill:"none",width:"22",height:"22","aria-hidden":"true",children:[t.jsx("circle",{cx:"11",cy:"12",r:"7.5",stroke:i,strokeWidth:"1.5"}),t.jsx("line",{x1:"11",y1:"3",x2:"11",y2:"11",stroke:i,strokeWidth:"1.6",strokeLinecap:"round"})]}),wall:({color:i})=>t.jsxs("svg",{viewBox:"0 0 22 22",fill:"none",width:"22",height:"22","aria-hidden":"true",children:[t.jsx("rect",{x:"2",y:"5",width:"18",height:"12",rx:"2",stroke:i,strokeWidth:"1.5"}),t.jsx("line",{x1:"2",y1:"9",x2:"20",y2:"9",stroke:i,strokeWidth:"1.2"}),t.jsx("line",{x1:"11",y1:"9",x2:"11",y2:"17",stroke:i,strokeWidth:"1.2"})]})},bp={app_blocking_engine:Bn.power,app_blocking:Bn.shield,onScroll:Bn.scroll,onClick:Bn.click,onClose:Bn.close,refuse_opt:Bn.refuse,revokeConsent:Bn.revoke,gpcSupportMode:Bn.gpc,consentExpiry:Bn.clock,uiBlocking:Bn.wall};function Np(i,c,u,d){if(i.key==="gpcSupportMode"&&!u&&d.some(h=>h==="ccpa"||h==="otherus")||i.key==="uiBlocking"&&!u&&d.includes("gdpr"))return"crit";if((i.key==="onScroll"||i.key==="onClick"||i.key==="onClose")&&!u){const h=["gdpr","ukpecr","popia"].some(x=>d.includes(x)),m=(i.key==="onScroll"||i.key==="onClick")&&d.includes("lgpd");if(h||m)return"crit"}return u?"ok":"warn"}function Sp({setting:i,activeLawKeys:c,wpOptions:u,confirmedOptions:d,configData:p,onOpenPortal:h,onToggle:m,saving:x,unconfirmed:v,checking:g,pullUnknown:k,saveError:_,blockingPaused:b,blockingState:A,onUpgrade:C,isPro:D}){const{key:P,label:E,desc:I,valueType:R,activeLaws:O,portalOnly:te,wpKey:J}=i,B=i.key==="gpcSupportMode"&&!!p.gpcSupportMode,X=!!i.pro&&!D&&!B,q=O.filter(ie=>c.includes(ie)),W=J||P,ne=J?u:p;let le,he;const M=i.key==="app_blocking"||i.key==="app_blocking_engine",me=M&&A==="networkManaged",_e=M&&(A==="inactive"||me),ke=i.key==="app_blocking"&&!!b,U=ke&&!_e,ee=i.key==="app_blocking"&&(d==null?void 0:d.app_blocking_engine)===!1;if(R==="bool"){const ie=ne[W],ue=W==="app_blocking"&&ie===void 0?!0:!!ie;if(he=ue===i.activeValue,i.key==="gpcSupportMode"&&ue){const ge=ne.gpcBannerMode||"passive",xe=$l[ge]||$l.passive;le=t.jsxs(t.Fragment,{children:["On",t.jsx("div",{style:{fontSize:"var(--cn-text-sm)",fontWeight:"normal",color:"var(--cn-muted)",marginTop:2},children:xe})]})}else le=s(ue?"On":"Off","cookie-notice")}else if(R==="bool-inverted"){const ie=!!ne[W];le=s(ie?"On":"Off","cookie-notice"),he=ie===i.activeValue}else if(R==="toggle"){const ie=ne[W]??!0,ue=(d==null?void 0:d[W])??!0;le=t.jsxs("label",{className:"cn-toggle-row__label",style:{cursor:ke?"default":"pointer",margin:0,justifyContent:"flex-start"},children:[t.jsx("input",{type:"checkbox",className:"cn-toggle-row__input",checked:ie,disabled:ke,onChange:ge=>m&&m(W,ge.target.checked),style:{marginRight:"6px"}}),ie?"On":"Off",U&&t.jsx("span",{className:"cn-card__paused",style:{marginLeft:8,color:"var(--cn-warn-icon)",fontWeight:500},children:s("Paused","cookie-notice")}),_e&&i.key==="app_blocking"&&t.jsx("span",{className:"cn-card__inactive",style:{marginLeft:8,color:"var(--cn-warn-icon)",fontWeight:500},children:s(me?"Managed by network":"Not active","cookie-notice")}),x&&t.jsx("span",{className:"cn-card__saving",style:{marginLeft:8,fontSize:"var(--cn-text-sm)",fontWeight:"normal",color:"var(--cn-muted)"},children:s("Saving…","cookie-notice")})]}),he=i.key==="app_blocking"?A==="active":_e||x||v?!1:ue===i.activeValue}else if(R==="expiry-array"){const ie=Array.isArray(ne[W])?ne[W]:[30,182,365],ue=Math.max(...ie);le=ie.map(ge=>ge>=365?`${Math.round(ge/365)}y`:ge>=30?`${Math.round(ge/30)}mo`:`${ge}d`).join(" / "),he=ue<=365}const Q=Np(i,le,he,c),S=`var(--cn-${Q}-icon)`,$=bp[P]||null;return t.jsxs("div",{className:`cn-card${Q==="crit"?" cn-card--crit":""}`,children:[t.jsxs("div",{className:"cn-card__top",children:[t.jsx("div",{className:"cn-card__icon",children:$&&t.jsx($,{color:S})}),t.jsx("div",{className:`cn-card__dot cn-card__dot--${Q}`})]}),t.jsx("div",{className:`cn-card__main cn-card__main--${Q}`,children:le}),t.jsx("div",{className:"cn-card__sub",children:E}),I&&t.jsx("div",{className:"cn-card__desc",style:{marginTop:4,fontSize:"var(--cn-text-sm)",color:"var(--cn-muted)"},children:I}),t.jsx("div",{className:"cn-card__pills",children:q.map(ie=>t.jsx("span",{className:`cn-card__pill cn-card__pill--${Q}`,children:xl[ie]||ie.toUpperCase()},ie))}),t.jsx("div",{className:"cn-card__foot",children:X?t.jsxs(t.Fragment,{children:[t.jsx(Un,{}),t.jsx("button",{type:"button",onClick:C,children:"Upgrade to Pro →"})]}):te&&t.jsx("button",{type:"button",onClick:()=>h==null?void 0:h(i.key),children:"Manage in Admin Portal →"})}),U&&t.jsxs("div",{className:"cn-card__threshold-banner",style:{marginTop:8,padding:"8px 10px",background:"var(--cn-warn-bg, #fef3cd)",borderRadius:6,fontSize:"var(--cn-text-sm)"},children:[s("Visit limit reached — autoblocking is paused until your 30-day visit cycle resets.","cookie-notice")," ",t.jsx("button",{type:"button",className:"cn-card__threshold-upgrade",style:{background:"none",border:"none",color:"var(--cn-link)",cursor:"pointer",padding:0,font:"inherit",textDecoration:"underline"},onClick:C,children:"Upgrade →"})]}),v&&!x&&t.jsx("div",{className:"cn-card__unconfirmed",role:"status",style:{marginTop:8,padding:"8px 10px",background:"var(--cn-warn-bg, #fef3cd)",borderRadius:6,fontSize:"var(--cn-text-sm)"},children:s(k?"Not confirmed — reload the page to see the saved autoblocking setting.":g?"Checking the saved value…":"Not confirmed — reload to see the saved value","cookie-notice")}),_&&t.jsxs("div",{className:"cn-card__save-error",role:"alert",style:{marginTop:8,padding:"8px 10px",background:"var(--cn-crit-bg, #fdecea)",borderRadius:6,fontSize:"var(--cn-text-sm)"},children:[s("Not saved:","cookie-notice")," ",_]}),ee&&!U&&t.jsx("div",{className:"cn-card__engine-note",style:{marginTop:8,padding:"8px 10px",background:"var(--cn-warn-bg, #fef3cd)",borderRadius:6,fontSize:"var(--cn-text-sm)"},children:s("No effect while the script blocking engine is off.","cookie-notice")})]})}function Cp({wpOptions:i,confirmedOptions:c,update:u,scheduleSave:d,blockingPaused:p,blockingState:h,savingKeys:m=[],unconfirmedKeys:x=[],checkingKeys:v=[],pullUnknownKeys:g=[],autoSaveError:k=null,onOpenPricingModal:_}){var W;const{dashboard:b,refetchDashboard:A}=Mn(),{config:C,refetchConfig:D}=wt(),{isPro:P}=Ze(),E=(ne,le)=>{u(ne,le),d([ne])},I=((W=b==null?void 0:b.appConfig)==null?void 0:W.regulations)||{},R=Object.entries(I).filter(([,ne])=>ne).map(([ne])=>ne),O=(b==null?void 0:b.accountEmail)||"",te=(C==null?void 0:C.config)||{},[J,B]=w.useState(null),X=R.length>0,q=jp().filter(ne=>ne.requiredFor.length===0?!0:ne.requiredFor.some(le=>R.includes(le)));return t.jsxs(t.Fragment,{children:[t.jsxs("div",{id:"cn-compliance-behavior",className:"cn-compliance-behavior",children:[t.jsx("div",{className:"cn-card-grid cn-card-grid--auto",children:q.map(ne=>t.jsx(Sp,{setting:ne,activeLawKeys:R,wpOptions:i,confirmedOptions:c,configData:te,onOpenPortal:B,onToggle:E,saving:m.includes(ne.wpKey||ne.key),unconfirmed:x.includes(ne.wpKey||ne.key),checking:v.includes(ne.wpKey||ne.key),pullUnknown:g.includes(ne.wpKey||ne.key),saveError:k!=null&&k.keys.includes(ne.wpKey||ne.key)?k.message:null,blockingPaused:p,blockingState:h,onUpgrade:_,isPro:P},ne.key))}),t.jsxs("div",{className:"cn-compliance-behavior__footer",children:[X?"These settings were automatically configured based on your selected laws. ":"Select laws to see recommendations tied to your jurisdictions. ",t.jsx("a",{href:`${sn}/#/configuration`,target:"_blank",rel:"noreferrer",className:"cn-form-readonly__link",children:X?"Configure in Admin Portal →":"Select laws in Admin Portal →"})]})]}),J&&t.jsx(wp,{settingKey:J,accountEmail:O,onClose:()=>B(null),onSynced:()=>{A(),D(),B(null)}})]})}const Le={thumb:"_thumb_1g9ys_1",chrome:"_chrome_1g9ys_12",dot:"_dot_1g9ys_23",urlBar:"_urlBar_1g9ys_31",page:"_page_1g9ys_39",lines:"_lines_1g9ys_45",banner:"_banner_1g9ys_57","bar-bottom":"_bar-bottom_1g9ys_69","bar-top":"_bar-top_1g9ys_75",floating:"_floating_1g9ys_81",fixed:"_fixed_1g9ys_87","panel-left":"_panel-left_1g9ys_92","panel-right":"_panel-right_1g9ys_99",panelFloating:"_panelFloating_1g9ys_106",panelFixed:"_panelFixed_1g9ys_110",popup:"_popup_1g9ys_115",bannerHeader:"_bannerHeader_1g9ys_124",toolbarDots:"_toolbarDots_1g9ys_131",pills:"_pills_1g9ys_143",pill:"_pill_1g9ys_143",pillDot:"_pillDot_1g9ys_160",saveBtn:"_saveBtn_1g9ys_167",footerLinks:"_footerLinks_1g9ys_174",link:"_link_1g9ys_181","anim-slide-bottom":"_anim-slide-bottom_1g9ys_188",huPreviewSlideUp:"_huPreviewSlideUp_1g9ys_1","anim-slide-top":"_anim-slide-top_1g9ys_192",huPreviewSlideDown:"_huPreviewSlideDown_1g9ys_1","anim-slide-left":"_anim-slide-left_1g9ys_196",huPreviewSlideLeft:"_huPreviewSlideLeft_1g9ys_1","anim-slide-right":"_anim-slide-right_1g9ys_200",huPreviewSlideRight:"_huPreviewSlideRight_1g9ys_1","anim-slide-center":"_anim-slide-center_1g9ys_204",huPreviewScaleIn:"_huPreviewScaleIn_1g9ys_1","anim-fade":"_anim-fade_1g9ys_208",huPreviewFade:"_huPreviewFade_1g9ys_1"},Pp=["#c4c4c4","#d5b565","#9891b1"];function Lp(i){const c=i.replace("#",""),u=parseInt(c.slice(0,2),16),d=parseInt(c.slice(2,4),16),p=parseInt(c.slice(4,6),16);return(u*299+d*587+p*114)/1e3>155}function Ep({preset:i,isActive:c}){const{position:u="bottom",displayType:d="floating",bannerColor:p="#4d4d4d",primaryColor:h="#20c19e",btnBorderRadius:m="25px",animation:x="fade"}=i,v=Lp(p),g=v?"rgba(0,0,0,.25)":"rgba(255,255,255,.4)",k=v?"rgba(0,0,0,.18)":"rgba(255,255,255,.35)",_=u==="left"||u==="right",b=u==="center",A=d==="floating",C=Math.max(2,Math.round(parseInt(m)*.18))+"px",D=x==="slide"?Le[`anim-slide-${u}`]:Le["anim-fade"],P=[Le.banner,_?Le[`panel-${u}`]:null,_&&A?Le.panelFloating:null,_&&!A?Le.panelFixed:null,b?Le.popup:null,!_&&!b?Le[`bar-${u}`]:null,!_&&!b&&A?Le.floating:null,!_&&!b&&!A?Le.fixed:null,Le[D]||D].filter(Boolean).join(" ");return t.jsx(Wl,{children:t.jsxs("div",{className:P,style:{backgroundColor:p},children:[t.jsx("div",{className:Le.bannerHeader,children:t.jsxs("div",{className:Le.toolbarDots,style:{"--dot-color":g},children:[t.jsx("span",{}),t.jsx("span",{}),t.jsx("span",{})]})}),t.jsx("div",{className:Le.pills,children:Pp.map((E,I)=>t.jsx("div",{className:Le.pill,style:{borderColor:E},children:t.jsx("span",{className:Le.pillDot,style:{backgroundColor:E}})},I))}),t.jsx("div",{className:Le.saveBtn,style:{backgroundColor:h,borderRadius:C}}),t.jsxs("div",{className:Le.footerLinks,children:[t.jsx("div",{className:Le.link,style:{background:k}}),t.jsx("div",{className:Le.link,style:{background:k}})]})]})})}function Wl({children:i}){return t.jsxs("div",{className:Le.thumb,children:[t.jsxs("div",{className:Le.chrome,children:[t.jsx("span",{className:Le.dot}),t.jsx("span",{className:Le.dot}),t.jsx("span",{className:Le.dot}),t.jsx("div",{className:Le.urlBar})]}),t.jsxs("div",{className:Le.page,children:[t.jsxs("div",{className:Le.lines,children:[t.jsx("div",{style:{width:"75%"}}),t.jsx("div",{style:{width:"55%"}}),t.jsx("div",{style:{width:"65%"}}),t.jsx("div",{style:{width:"45%"}})]}),i]})]})}const en={root:"_root_o4a2z_1",scaler:"_scaler_o4a2z_6",overlay:"_overlay_o4a2z_12",banner:"_banner_o4a2z_18",card:"_card_o4a2z_28",bottom:"_bottom_o4a2z_33",top:"_top_o4a2z_36",edge:"_edge_o4a2z_40",bar:"_bar_o4a2z_52",heading:"_heading_o4a2z_66",narrow:"_narrow_o4a2z_71",left:"_left_o4a2z_77",right:"_right_o4a2z_81",modal:"_modal_o4a2z_85",desc:"_desc_o4a2z_101",descShort:"_descShort_o4a2z_109",row:"_row_o4a2z_113",pill:"_pill_o4a2z_121",link:"_link_o4a2z_131"},Dp=["bottom","top","left","right","center"];function Tp(i){let c=String(i||"").replace("#","");if(c.length===3&&(c=c.split("").map(h=>h+h).join("")),!/^[0-9a-f]{6}$/i.test(c))return!1;const[u,d,p]=[0,2,4].map(h=>parseInt(c.slice(h,h+2),16));return(u*299+d*587+p*114)/1e3>155}function Ap(i,c,u,d){return i!=="new"?"classic":u==="left"||u==="right"?"narrow":u==="center"?"modal":c==="compact"&&d==="fixed"?"bar":"card"}function Rp({shape:i,compact:c,position:u,displayType:d,bannerColor:p,primaryColor:h}){const m=Tp(p),x={"--thumb-bg":p,"--thumb-accent":h,"--thumb-ink":m?"rgba(0,0,0,.5)":"rgba(255,255,255,.75)","--thumb-faint":m?"rgba(0,0,0,.22)":"rgba(255,255,255,.35)"},v=[en.banner,en[i],i==="card"||i==="bar"?en[u==="top"?"top":"bottom"]:null,i==="narrow"?en[u]:null,i==="card"&&d==="fixed"?en.edge:null].filter(Boolean).join(" "),g=(c?[0,1]:[0,1,2]).map(_=>t.jsx("span",{className:en.pill},_)),k=t.jsx("span",{className:en.link});return t.jsxs(t.Fragment,{children:[i==="modal"&&t.jsx("div",{className:en.overlay}),t.jsx("div",{className:v,style:x,children:i==="bar"?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:en.heading}),g,k]}):t.jsxs(t.Fragment,{children:[t.jsx("span",{className:en.heading}),!c&&t.jsx("span",{className:en.desc}),!c&&t.jsx("span",{className:`${en.desc} ${en.descShort}`}),t.jsxs("span",{className:en.row,children:[g,k]})]})})]})}function zp({engine:i="classic",style:c="standard",position:u,displayType:d,bannerColor:p,primaryColor:h,scale:m=1}){const x=u==="popup"?"center":Dp.includes(u)?u:"bottom",v=d==="fixed"?"fixed":"floating",g=p||"#4d4d4d",k=h||"#20c19e",_=Ap(i,c,x,v),b=m!==1?{width:160*m,height:90*m}:void 0;return t.jsx("div",{className:`cn-banner-thumb ${en.root}`,"data-engine":i,"data-style":c,"data-shape":_,style:b,"aria-hidden":"true",children:t.jsx("div",{className:en.scaler,style:m!==1?{transform:`scale(${m})`}:void 0,children:_==="classic"?t.jsx(Ep,{preset:{position:x,displayType:v,bannerColor:g,primaryColor:k}}):t.jsx(Wl,{children:t.jsx(Rp,{shape:_,compact:c==="compact",position:x,displayType:v,bannerColor:g,primaryColor:k})})})})}function Gl(){var k,_,b;const i=Ti(),c=Lo(),{dashboard:u}=Mn(),{configRefresh:d}=wt(),p=i.engine==="new",h=i.managed,m=c==="live",x=((k=u==null?void 0:u.appConfig)==null?void 0:k.design)||((_=window.cnReactData)==null?void 0:_.bannerDesign)||{},v=((b=window.cnReactData)==null?void 0:b.siteUrl)||"",g=cs(d==null?void 0:d.lastSynced);return t.jsxs("section",{className:"cn-banner-panel","aria-labelledby":"cn-banner-panel-title","data-engine":i.engine,"data-style":p?i.style:void 0,children:[t.jsxs("div",{className:"cn-banner-panel__shot",children:[t.jsxs("div",{className:"cn-banner-panel__head",children:[t.jsx("h2",{id:"cn-banner-panel-title",className:"cn-banner-panel__title",children:s("Your banner","cookie-notice")}),t.jsx("span",{className:`cn-banner-panel__status cn-banner-panel__status--${m?"live":"off"}`,children:m?s("Live on your site","cookie-notice"):ts(c)})]}),t.jsx(zp,{engine:i.engine,style:i.style,position:x.position,displayType:x.displayType,bannerColor:x.bannerColor,primaryColor:x.primaryColor,scale:1.75}),t.jsx("p",{className:"cn-banner-panel__caption",children:s("A drawing based on your engine, style and colours. Use Preview to see the real banner.","cookie-notice")})]}),t.jsxs("div",{className:"cn-banner-panel__rows",children:[h&&t.jsx("p",{className:"cn-banner-panel__managed",children:s("Managed by your network administrator — this site uses the network's banner.","cookie-notice")}),t.jsxs("div",{className:"cn-banner-panel__row",children:[t.jsx("span",{className:"cn-banner-panel__label",children:s("Engine","cookie-notice")}),t.jsxs("div",{className:"cn-banner-panel__value",children:[t.jsx("span",{className:`cn-banner-panel__chip cn-banner-panel__chip--${i.engine}`,children:Si(i.engine)}),t.jsx("span",{className:"cn-banner-panel__note",children:s(p?"One click records any choice, including reject. Also holds tracking scripts added after the page loads, and adds the Compact style. You can switch back at any time.":"The original banner.","cookie-notice")}),!h&&t.jsxs("a",{className:"cn-banner-panel__link",href:`${sn}/#/configuration`,target:"_blank",rel:"noopener noreferrer",children:[s("Change engine in Admin Portal","cookie-notice")," ↗"]})]})]}),t.jsxs("div",{className:"cn-banner-panel__row",children:[t.jsx("span",{className:"cn-banner-panel__label",id:"cn-banner-panel-style",children:s("Style","cookie-notice")}),t.jsx("div",{className:"cn-banner-panel__value",children:t.jsx(Pl,{name:"cn-banner-style",labelledBy:"cn-banner-panel-style"})})]}),!h&&t.jsxs("div",{className:"cn-banner-panel__actions",children:[v&&t.jsxs("a",{className:"cn-button cn-button--primary",href:`${v}?cn_preview=1`,target:"_blank",rel:"noreferrer",children:[s("Preview on my site","cookie-notice")," ↗"]}),t.jsxs("a",{className:"cn-button cn-button--outline",href:`${sn}/#/configuration`,target:"_blank",rel:"noopener noreferrer",children:[s("Edit colours & text in Admin Portal","cookie-notice")," ↗"]}),t.jsxs("span",{className:"cn-banner-panel__sync",children:[g?je(s("Synced %s","cookie-notice"),g):s("Not synced yet","cookie-notice"),(d==null?void 0:d.state)==="failed"&&t.jsx("span",{className:"cn-banner-panel__sync-failed",children:s("Couldn't reach Hu-manity — showing cached settings.","cookie-notice")})]})]}),!h&&v&&t.jsx("p",{className:"cn-banner-panel__preview-help",children:s("Can't see your banner on your own site? That's often normal. It stays hidden when your browser sends Global Privacy Control, when your visitor's region doesn't require a banner, or when you've already made a choice. Preview shows it anyway. Nothing is saved.","cookie-notice")})]})]})}function Mp(i){return{google:s("Google","cookie-notice"),facebook:s("Facebook","cookie-notice"),microsoft:s("Microsoft","cookie-notice"),gpc:s("GPC","cookie-notice"),dnt:s("DNT","cookie-notice")}[i]||i}const Fp=["google","facebook","microsoft","gpc","dnt"];function Ip(){var k,_;const{dashboard:i}=Mn(),{config:c}=wt(),{openLawWizard:u,openConsentPanel:d}=ki(),p=`cn-card__pill cn-card__pill--${Lo()==="live"?"ok":"off"}`,h=jl((k=i==null?void 0:i.appConfig)==null?void 0:k.regulations).map(b=>xl[b]||b.toUpperCase()),m=(_=i==null?void 0:i.appConfig)==null?void 0:_.language,x=m&&Array.isArray(m)?m.length:1,v=Cl((c==null?void 0:c.blocking)||{}),g=Fp.filter(b=>v[b]);return t.jsxs("section",{className:"cn-lls","aria-labelledby":"cn-lls-title",children:[t.jsx("h2",{id:"cn-lls-title",className:"cn-lls__title",children:s("Laws, languages & signals","cookie-notice")}),t.jsxs("div",{className:"cn-lls__row","data-lls":"laws",children:[t.jsx("span",{className:"cn-lls__k",children:s("Laws","cookie-notice")}),t.jsx("div",{className:"cn-lls__v",children:h.length>0?h.map(b=>t.jsxs("span",{className:p,children:[wl[b]?`${wl[b].flag} `:"",b]},b)):t.jsx("span",{className:"cn-lls__none",children:s("No laws selected","cookie-notice")})}),t.jsxs("button",{type:"button",className:"cn-lls__action",onClick:()=>u(),children:[h.length>0?s("Edit laws","cookie-notice"):s("Add laws","cookie-notice")," →"]})]}),t.jsxs("div",{className:"cn-lls__row","data-lls":"languages",children:[t.jsx("span",{className:"cn-lls__k",children:s("Languages","cookie-notice")}),t.jsx("div",{className:"cn-lls__v",children:je(yo("%d language","%d languages",x,"cookie-notice"),x)}),t.jsxs("a",{className:"cn-lls__action",href:`${sn}/#/languages`,target:"_blank",rel:"noopener noreferrer",children:[s("Manage languages","cookie-notice")," ↗"]})]}),t.jsxs("div",{className:"cn-lls__row","data-lls":"signals",children:[t.jsx("span",{className:"cn-lls__k",children:s("Consent signals","cookie-notice")}),t.jsx("div",{className:"cn-lls__v",children:g.length>0?g.map(b=>t.jsx("span",{className:p,children:Mp(b)},b)):t.jsx("span",{className:"cn-lls__none",children:s("None switched on","cookie-notice")})}),t.jsxs("button",{type:"button",className:"cn-lls__action",onClick:()=>d(),children:[s("Consent signals","cookie-notice")," →"]})]})]})}const Op=((m1=window.cnReactData)==null?void 0:m1.ruleParams)||[],Up=((g1=window.cnReactData)==null?void 0:g1.ruleOperators)||[];function Bp({rule:i,onChange:c,onRemove:u}){const[d,p]=w.useState([]),[h,m]=w.useState(!1),[x,v]=w.useState(!1),g=w.useCallback(async _=>{if(!_){p([]);return}m(!0);try{const b=await $2(_),A=(b==null?void 0:b.values)||[];A.length>0&&A[0].group?v(!0):v(!1),p(A)}catch{p([])}finally{m(!1)}},[]);w.useEffect(()=>{g(i.param)},[i.param,g]);const k=_=>{c({...i,param:_,value:""})};return t.jsxs("div",{className:"cn-rule-row",children:[t.jsxs("select",{className:"cn-rule-row__param",value:i.param,onChange:_=>k(_.target.value),children:[t.jsx("option",{value:"",children:"-- Select --"}),Op.map(_=>t.jsx("option",{value:_.value,children:_.label},_.value))]}),t.jsx("select",{className:"cn-rule-row__operator",value:i.operator,onChange:_=>c({...i,operator:_.target.value}),children:Up.map(_=>t.jsx("option",{value:_.value,children:_.label},_.value))}),t.jsxs("select",{className:"cn-rule-row__value",value:i.value,onChange:_=>c({...i,value:_.target.value}),disabled:h,children:[t.jsx("option",{value:"",children:h?"Loading…":"-- Select --"}),x?d.map(_=>t.jsx("optgroup",{label:_.group,children:_.items.map(b=>t.jsx("option",{value:b.value,children:b.label},b.value))},_.group)):d.map(_=>t.jsx("option",{value:_.value,children:_.label},_.value))]}),t.jsx("button",{type:"button",className:"cn-rule-row__remove",onClick:u,title:s("Remove rule","cookie-notice"),children:"×"})]})}function $p({group:i,groupIndex:c,onChange:u,onRemove:d}){const p=(x,v)=>{const g=[...i];g[x]=v,u(g)},h=x=>{if(i.length===1){d();return}u(i.filter((v,g)=>g!==x))},m=()=>{u([...i,{param:"",operator:"equal",value:""}])};return t.jsxs("div",{className:"cn-rule-group",children:[c>0&&t.jsx("div",{className:"cn-rule-group__or",children:"OR"}),t.jsxs("div",{className:"cn-rule-group__card",children:[i.map((x,v)=>t.jsxs("div",{children:[v>0&&t.jsx("div",{className:"cn-rule-group__and",children:s("AND","cookie-notice")}),t.jsx(Bp,{rule:x,onChange:g=>p(v,g),onRemove:()=>h(v)})]},v)),t.jsx("button",{type:"button",className:"cn-rule-group__add-rule",onClick:m,children:"+ Add rule"})]})]})}function Wp({rules:i,onChange:c}){const u=!i||Array.isArray(i)&&i.length===0?[]:Array.isArray(i)?i.map(g=>Array.isArray(g)?g.map(k=>({param:k.param||"",operator:k.operator||"equal",value:k.value||""})):Object.values(g).map(k=>({param:k.param||"",operator:k.operator||"equal",value:k.value||""}))):Object.values(i).map(g=>Object.values(g).map(k=>({param:k.param||"",operator:k.operator||"equal",value:k.value||""}))),[d,p]=w.useState(u),h=g=>{p(g),c(g)},m=(g,k)=>{const _=[...d];_[g]=k,h(_)},x=g=>{h(d.filter((k,_)=>_!==g))},v=()=>{h([...d,[{param:"",operator:"equal",value:""}]])};return t.jsxs("div",{className:"cn-rule-builder",children:[d.length===0&&t.jsx("p",{className:"cn-rule-builder__empty",children:s("No rules configured. Add a rule group to control where the banner appears.","cookie-notice")}),d.map((g,k)=>t.jsx($p,{group:g,groupIndex:k,onChange:_=>m(k,_),onRemove:()=>x(k)},k)),t.jsx("button",{type:"button",className:"cn-rule-builder__add-group",onClick:v,children:"+ Add rule group"})]})}const Vl=()=>{var i;return((i=window.cnReactData)==null?void 0:i.expiryOptions)||[]};function un({label:i,checked:c,onChange:u,description:d}){const p=w.useId();return t.jsxs("div",{className:"cn-toggle-row",children:[t.jsxs("label",{className:"cn-toggle-row__label",htmlFor:p,children:[t.jsx("input",{id:p,type:"checkbox",className:"cn-toggle-row__input",checked:c,onChange:h=>u(h.target.checked)}),t.jsx("span",{className:"cn-toggle-row__text",children:i})]}),d&&t.jsx("div",{className:"cn-toggle-row__desc",children:d})]})}function Do({label:i,name:c,value:u,options:d,onChange:p}){return t.jsxs("div",{className:"cn-radio-group",children:[i&&t.jsx("div",{className:"cn-radio-group__label",children:i}),t.jsx("div",{className:"cn-radio-group__options",children:d.map(h=>t.jsxs("label",{className:"cn-radio-group__option",children:[t.jsx("input",{type:"radio",name:c,value:h.value,checked:u===h.value,onChange:()=>p(h.value)}),t.jsx("span",{children:h.label})]},h.value))})]})}function Hl({addNotice:i,options:c,update:u,updateNested:d,save:p,reset:h,loading:m,saved:x,error:v,onOpenConsentPanel:g}){var O,te,J,B,X,q,W,ne,le,he;const k=((O=window.cnReactData)==null?void 0:O.wpPages)||[],{isConnected:_}=Ze(),[b,A]=w.useState(!1),[C,D]=w.useState("head"),[P,E]=w.useState(!1),I=async()=>{E(!1),await h()&&i&&i(s("Settings restored to defaults.","cookie-notice"),"success")},R=async()=>{if(await p()){if(_){try{await W2()}catch{i&&i(s("Settings saved. The privacy policy link on your banner could not be updated. Please try again.","cookie-notice"),"warning");return}i&&i(s("Settings saved.","cookie-notice"),"success");return}i&&i(s("Settings saved successfully.","cookie-notice"),"success")}};return t.jsxs("div",{className:"cn-plugin-settings",children:[!_&&t.jsxs(t.Fragment,{children:[t.jsxs(Kn,{title:s("Consent Behavior","cookie-notice"),defaultOpen:!0,children:[t.jsx(un,{label:s("Enable refuse button","cookie-notice"),checked:!!c.refuse_opt,onChange:M=>u("refuse_opt",M),description:s("Allow visitors to refuse cookie consent","cookie-notice")}),c.refuse_opt&&t.jsx(Ce,{label:s("Refuse button text","cookie-notice"),value:c.refuse_text||"",onChange:M=>u("refuse_text",M),placeholder:s("No","cookie-notice")}),t.jsx(un,{label:s("Enable Update consent","cookie-notice"),checked:!!c.revoke_cookies,onChange:M=>u("revoke_cookies",M),description:s("Show a control so visitors can reopen the banner and update their consent","cookie-notice")}),c.revoke_cookies&&t.jsxs(t.Fragment,{children:[t.jsx(Do,{label:s("Update consent method","cookie-notice"),name:"revoke_cookies_opt",value:c.revoke_cookies_opt||"automatic",options:[{value:"automatic",label:s("Automatic","cookie-notice")},{value:"manual",label:s("Manual","cookie-notice")}],onChange:M=>u("revoke_cookies_opt",M)}),t.jsx(Ce,{label:s("Update consent button text","cookie-notice"),value:c.revoke_text||"",onChange:M=>u("revoke_text",M),placeholder:s("Update consent","cookie-notice")}),t.jsx(Ce,{label:s("Update consent message","cookie-notice"),type:"textarea",value:c.revoke_message_text||"",onChange:M=>u("revoke_message_text",M)})]}),t.jsx(un,{label:s("Accept on scroll","cookie-notice"),checked:!!c.on_scroll,onChange:M=>u("on_scroll",M),description:s("Automatically accept consent when the user scrolls","cookie-notice")}),c.on_scroll&&t.jsx(Ce,{label:s("Scroll distance (px)","cookie-notice"),type:"number",value:c.on_scroll_offset||100,onChange:M=>u("on_scroll_offset",parseInt(M,10)||0)}),t.jsx(un,{label:s("Accept on click","cookie-notice"),checked:!!c.on_click,onChange:M=>u("on_click",M),description:s("Automatically accept consent on any page click","cookie-notice")}),t.jsx(un,{label:s("Reload page on accept","cookie-notice"),checked:!!c.redirection,onChange:M=>u("redirection",M),description:s("Reload the page after the visitor accepts consent","cookie-notice")})]}),t.jsxs(Kn,{title:s("Cookie Expiry","cookie-notice"),defaultOpen:!0,children:[t.jsx(Ce,{label:s("Accepted expiry","cookie-notice"),type:"select",value:c.time||"month",onChange:M=>u("time",M),options:Vl()}),t.jsx(Ce,{label:s("Rejected expiry","cookie-notice"),type:"select",value:c.time_rejected||"month",onChange:M=>u("time_rejected",M),options:Vl()})]})]}),t.jsxs(Kn,{title:s("Privacy Policy","cookie-notice"),defaultOpen:!0,children:[t.jsx(un,{label:s("Enable privacy policy link","cookie-notice"),checked:!!c.see_more,onChange:M=>u("see_more",M)}),c.see_more&&t.jsxs(t.Fragment,{children:[t.jsx(Ce,{label:s("Link text","cookie-notice"),value:((te=c.see_more_opt)==null?void 0:te.text)||"",onChange:M=>d("see_more_opt","text",M),placeholder:s("Privacy policy","cookie-notice")}),t.jsx(Do,{label:s("Link type","cookie-notice"),name:"see_more_link_type",value:((J=c.see_more_opt)==null?void 0:J.link_type)||"page",options:[{value:"page",label:s("Page link","cookie-notice")},{value:"custom",label:s("Custom link","cookie-notice")}],onChange:M=>d("see_more_opt","link_type",M)}),((B=c.see_more_opt)==null?void 0:B.link_type)==="page"&&k.length>0&&t.jsx(Ce,{label:s("Select page","cookie-notice"),type:"select",value:((X=c.see_more_opt)==null?void 0:X.id)||"",onChange:M=>d("see_more_opt","id",parseInt(M,10)||0),options:[{value:"",label:s("— Select a page —","cookie-notice")},...k.map(M=>({value:String(M.id),label:M.title}))]}),((q=c.see_more_opt)==null?void 0:q.link_type)==="custom"&&t.jsx(Ce,{label:s("Custom URL","cookie-notice"),value:((W=c.see_more_opt)==null?void 0:W.link)||"",onChange:M=>d("see_more_opt","link",M),placeholder:"https://"}),t.jsx(un,{label:s("Sync with WordPress Privacy Page","cookie-notice"),checked:!!((ne=c.see_more_opt)!=null&&ne.sync),onChange:M=>d("see_more_opt","sync",M)}),t.jsx(Do,{label:s("Open link in","cookie-notice"),name:"link_target",value:c.link_target||"_blank",options:[{value:"_blank",label:s("New tab","cookie-notice")},{value:"_self",label:s("Same tab","cookie-notice")}],onChange:M=>u("link_target",M)}),t.jsx(Do,{label:s("Link position","cookie-notice"),name:"link_position",value:c.link_position||"banner",options:[{value:"banner",label:s("Banner","cookie-notice")},{value:"message",label:s("Message","cookie-notice")}],onChange:M=>u("link_position",M)})]})]}),t.jsxs(Kn,{title:s("Custom Scripts","cookie-notice"),defaultOpen:!0,children:[t.jsxs("div",{className:"cn-pill-toggle",children:[t.jsx("button",{type:"button",className:`cn-pill-toggle__btn${C==="head"?" cn-pill-toggle__btn--active":""}`,onClick:()=>D("head"),children:s("Head","cookie-notice")}),t.jsx("button",{type:"button",className:`cn-pill-toggle__btn${C==="body"?" cn-pill-toggle__btn--active":""}`,onClick:()=>D("body"),children:s("Body","cookie-notice")})]}),C==="head"?t.jsxs(t.Fragment,{children:[t.jsx("p",{className:"cn-pill-toggle-desc",children:s("Code to be added in your site header, before the closing head tag.","cookie-notice")}),t.jsx(Ce,{type:"textarea",value:c.refuse_code_head||"",onChange:M=>u("refuse_code_head",M),placeholder:s("<!-- e.g. Google Analytics -->","cookie-notice"),rows:6})]}):t.jsxs(t.Fragment,{children:[t.jsx("p",{className:"cn-pill-toggle-desc",children:s("Code to be added in your site footer, before the closing body tag.","cookie-notice")}),t.jsx(Ce,{type:"textarea",value:c.refuse_code||"",onChange:M=>u("refuse_code",M),placeholder:s("<!-- e.g. tracking scripts -->","cookie-notice"),rows:6})]}),t.jsx("p",{className:"cn-pill-toggle-note",children:s("Enter non-functional cookies JavaScript code (e.g. Google Analytics) to be used after the visitor consent is given.","cookie-notice")})]}),t.jsxs(Kn,{title:s("Display & Animation","cookie-notice"),defaultOpen:!0,children:[!_&&t.jsxs("div",{className:"cn-form-field",children:[t.jsx("label",{className:"cn-form-field__label",htmlFor:"cn-bar-opacity",children:je(s("Bar opacity: %d%%","cookie-notice"),((le=c.colors)==null?void 0:le.bar_opacity)??100)}),t.jsx("input",{id:"cn-bar-opacity",type:"range",className:"cn-opacity-slider",min:50,max:100,value:((he=c.colors)==null?void 0:he.bar_opacity)??100,onChange:M=>d("colors","bar_opacity",parseInt(M.target.value,10))})]}),t.jsx(Ce,{label:s("Custom button CSS class","cookie-notice"),value:c.css_class||"",onChange:M=>u("css_class",M),placeholder:s("e.g. my-custom-btn","cookie-notice"),helper:s(_?"Adds CSS classes to the [cookies_revoke] and [cookies_policy_link] shortcode buttons.":"Add custom CSS classes to the accept button","cookie-notice")})]}),t.jsxs(Kn,{title:s("Technical Settings","cookie-notice"),defaultOpen:!0,children:[_&&t.jsxs(t.Fragment,{children:[t.jsx(un,{label:s("Bot detection","cookie-notice"),checked:!!(c.bot_detection??!0),onChange:M=>u("bot_detection",M),description:s("Automatically detect and handle bots/crawlers","cookie-notice")}),t.jsx(un,{label:s("AMP support","cookie-notice"),checked:!!c.amp_support,onChange:M=>u("amp_support",M),description:s("Enable AMP-compatible consent notice","cookie-notice")}),t.jsx(un,{label:s("WP Consent API","cookie-notice"),checked:!!(c.wp_consent_api??!0),onChange:M=>u("wp_consent_api",M),description:s("Register as the active CMP for cooperative plugins (WooCommerce, Site Kit, Burst Statistics, etc.). Requires the WP Consent API plugin to be active.","cookie-notice")}),t.jsx(un,{label:s("Caching compatibility","cookie-notice"),checked:!!(c.caching_compatibility??!0),onChange:M=>u("caching_compatibility",M),description:s("Improve compatibility with caching plugins","cookie-notice")}),t.jsx(un,{label:s("Debug mode","cookie-notice"),checked:!!c.debug_mode,onChange:M=>u("debug_mode",M),description:s("Enable debug logging for troubleshooting","cookie-notice")}),t.jsx(Ce,{label:s("Excluded script handles","cookie-notice"),type:"textarea",value:Array.isArray(c.excluded_handles)?c.excluded_handles.join(`1061 `):c.excluded_handles||"",onChange: M=>u("excluded_handles",M),placeholder:`elementor-frontend1062 my-analytics-init`,rows:4,helper:s("Enter WordPress script handles to exclude from autoblocking, one per line. These scripts will be marked as Essential (Category 1) and never blocked.","cookie-notice")})]}),!_&&t.jsx(Do,{label:s("Script placement","cookie-notice"),name:"script_placement",value:c.script_placement||"header",options:[{value:"header",label:s("Header","cookie-notice")},{value:"footer",label:s("Footer","cookie-notice")}],onChange: M=>u("script_placement",M)}),t.jsx(un,{label:s("Conditional display","cookie-notice"),checked:!!c.conditional_active,onChange:M=>u("conditional_active",M),description:s("Show or hide the banner on specific pages","cookie-notice")}),c.conditional_active&&t.jsxs(t.Fragment,{children:[t.jsx(Ce,{label:s("Display rule","cookie-notice"),type:"select",value:c.conditional_display||"hide",onChange:M=>u("conditional_display",M),options:[{value:"hide",label:s("Hide the banner","cookie-notice")},{value:"show",label:s("Show the banner","cookie-notice")}]}),t.jsx(Wp,{rules:c.conditional_rules||[],onChange:M=>u("conditional_rules",M)})]}),t.jsx(un,{label:s("Delete data on deactivation","cookie-notice"),checked:!!c.deactivation_delete,onChange:M=>u("deactivation_delete",M),description:s("Remove all plugin data when the plugin is deactivated","cookie-notice")}),_&&t.jsxs("div",{className:"cn-purge-cache",children:[t.jsx(Ue,{variant:"secondary",onClick:async()=>{A(!0);try{await H2(),i&&i(s("Cache purged successfully.","cookie-notice"),"success")}catch(M){i&&i(M.message||s("Purge failed. Please try again.","cookie-notice"),"error")}finally{A(!1)}},disabled:b,children:s(b?"Purging…":"Purge Cache","cookie-notice")}),t.jsx("p",{className:"cn-purge-cache__desc",children:s("Click to refresh the app configuration cache.","cookie-notice")})]})]}),t.jsxs("div",{className:"cn-plugin-settings__actions",children:[t.jsx(Ue,{variant:"primary",onClick:R,disabled:m,children:s(m?"Saving…":_?"Save WordPress Settings":"Save Settings","cookie-notice")}),x&&t.jsxs("span",{className:"cn-plugin-settings__saved",children:["✓"," ",s("Saved","cookie-notice")]}),v&&t.jsx("span",{className:"cn-plugin-settings__error",children:v}),h&&!P&&t.jsx(Ue,{variant:"secondary",onClick:()=>E(!0),disabled:m,children:s("Reset to defaults","cookie-notice")})]}),P&&t.jsxs("div",{className:"cn-plugin-settings__reset-confirm",role:"alertdialog","aria-labelledby":"cn-reset-confirm-text",children:[t.jsx("p",{id:"cn-reset-confirm-text",children:s("Restore the banner and plugin settings on this screen to their defaults? Your connection, the new admin interface and your protection switches are kept.","cookie-notice")}),t.jsx(Ue,{variant:"primary",onClick:I,disabled:m,children:s("Yes, reset settings","cookie-notice")}),t.jsx(Ue,{variant:"secondary",onClick:()=>E(!1),children:s("Cancel","cookie-notice")})]})]})}function Kl({addNotice:i}){const c=window.cnReactData||{},u=!!c.globalCookieAvailable,[d,p]=w.useState(()=>{var A,C;return{global_override:!!((A=c.options)!=null&&A.global_override),global_cookie:!!((C=c.options)!=null&&C.global_cookie)}}),[h,m]=w.useState(!1),[x,v]=w.useState(!1),g=w.useId(),k=w.useId(),_=(A,C)=>{p({...d,[A]:C}),v(!1)},b=async()=>{var A,C;m(!0),v(!1);try{const D=await I2(d);p({global_override:!!((A=D==null?void 0:D.options)!=null&&A.global_override),global_cookie:!!((C=D==null?void 0:D.options)!=null&&C.global_cookie)}),v(!0)}catch(D){i&&i(D.message||s("Request failed","cookie-notice"),"error")}finally{m(!1)}};return t.jsxs(Kn,{title:s("Network Settings","cookie-notice"),defaultOpen:!0,children:[t.jsxs("div",{className:"cn-toggle-row",children:[t.jsx("div",{className:"cn-radio-group__label",children:s("Global Settings Override","cookie-notice")}),t.jsxs("label",{className:"cn-toggle-row__label",htmlFor:g,children:[t.jsx("input",{id:g,type:"checkbox",className:"cn-toggle-row__input",checked:d.global_override,onChange:A=>_("global_override",A.target.checked)}),t.jsx("span",{className:"cn-toggle-row__text",children:s("Enable global network settings override.","cookie-notice")})]}),t.jsx("div",{className:"cn-toggle-row__desc",children:s("Every site in the network will use the same settings. Site administrators will not be able to change them.","cookie-notice")})]}),t.jsxs("div",{className:"cn-toggle-row",children:[t.jsx("div",{className:"cn-radio-group__label",children:s("Global Cookie","cookie-notice")}),t.jsxs("label",{className:"cn-toggle-row__label",htmlFor:k,children:[t.jsx("input",{id:k,type:"checkbox",className:"cn-toggle-row__input",checked:d.global_cookie,disabled:!u,onChange:A=>_("global_cookie",A.target.checked)}),t.jsx("span",{className:"cn-toggle-row__text",children:s("Enable global network cookie consent.","cookie-notice")})]}),t.jsxs("div",{className:"cn-toggle-row__desc",children:[s("Cookie consent in one of the network sites results in a consent in all of the sites on the network.","cookie-notice"),!u&&t.jsxs(t.Fragment,{children:[" ",s("This option works only for domain-based networks.","cookie-notice")]})]})]}),t.jsxs("div",{className:"cn-plugin-settings__actions",children:[t.jsx(Ue,{variant:"primary",onClick:b,disabled:h,children:s(h?"Saving…":"Save network settings","cookie-notice")}),x&&t.jsxs("span",{className:"cn-plugin-settings__saved",children:["✓"," ",s("Saved","cookie-notice")]})]})]})}function Gp({onConnect:i}){const c=Re();return t.jsxs(t.Fragment,{children:[t.jsx(On,{title:s("Domain Info","cookie-notice"),children:t.jsxs("div",{className:"cn-dom-rows",children:[t.jsxs("div",{className:"cn-dom-row",children:[t.jsx("span",{className:"cn-dom-row__k",children:s("Domain","cookie-notice")}),t.jsx("span",{className:"cn-dom-row__v",children:window.location.hostname})]}),t.jsxs("div",{className:"cn-dom-row",children:[t.jsx("span",{className:"cn-dom-row__k",children:s("Status","cookie-notice")}),t.jsxs("span",{className:"cn-dom-row__v",children:[t.jsx("span",{className:"cn-dot cn-dot--gray"})," ",s(c?"Managed by network":"Not connected","cookie-notice")]})]})]})}),!c&&t.jsxs(On,{title:s("Why Connect?","cookie-notice"),children:[t.jsxs("ul",{className:"cn-benefit-list",children:[t.jsxs("li",{className:"cn-benefit-item",children:[t.jsx("span",{className:"cn-benefit-icon",children:"✓"}),t.jsx("span",{children:s("Automated script blocking before visitor consent","cookie-notice")})]}),t.jsxs("li",{className:"cn-benefit-item",children:[t.jsx("span",{className:"cn-benefit-icon",children:"✓"}),t.jsx("span",{children:s("Cookie categorization across your entire site","cookie-notice")})]}),t.jsxs("li",{className:"cn-benefit-item",children:[t.jsx("span",{className:"cn-benefit-icon",children:"✓"}),t.jsx("span",{children:s("Consent proof collection for legal audit trails","cookie-notice")})]}),t.jsxs("li",{className:"cn-benefit-item",children:[t.jsx("span",{className:"cn-benefit-icon",children:"✓"}),t.jsx("span",{children:s("Visitor analytics and consent rate reporting","cookie-notice")})]}),t.jsxs("li",{className:"cn-benefit-item",children:[t.jsx("span",{className:"cn-benefit-icon",children:"✓"}),t.jsx("span",{children:s("Google Consent Mode v2 (Facebook & Microsoft on Pro)","cookie-notice")})]})]}),t.jsx("div",{className:"cn-connect-cta",children:t.jsxs("button",{className:"cn-button cn-button--primary cn-connect-cta__btn",onClick:i,type:"button",children:[s("Connect Your Site","cookie-notice")," →"]})})]})]})}function Vp({addNotice:i,onOpenPricingModal:c}){return t.jsxs(t.Fragment,{children:[t.jsx(Wt,{addNotice:i}),t.jsx(op,{onOpenPricingModal:c})]})}function Hp({addNotice:i,onOpenWelcomeModal:c,onOpenPricingModal:u}){var C;const{isBannerOnly:d}=Ze(),p=m3(),h=!!((C=window.cnReactData)!=null&&C.network),{showLawWizard:m,lawClosing:x,lawScrollTrigger:v,closeLawWizard:g,showConsentPanel:k,consentClosing:_,consentScrollTrigger:b,closeConsentPanel:A}=ki();if(d){const D=p.networkManaged;return t.jsxs(In,{sidebar:t.jsx(Gp,{onConnect:c}),children:[t.jsxs("div",{className:"cn-protection-header",children:[t.jsx("h1",{className:"cn-protection-header__title",children:s("Cookie Consent","cookie-notice")}),t.jsx("p",{className:"cn-protection-header__subtitle",children:s(D?"Managed by your network administrator — this site uses the network settings.":"Connect your site to enable consent management features.","cookie-notice")})]}),h&&t.jsx(Kl,{addNotice:i}),t.jsxs(as,{managed:D,perSite:p.perSite,children:[D&&t.jsx(Gl,{}),t.jsx(sp,{options:p.options,update:p.update,save:p.save,loading:p.loading,saved:p.saved,error:p.error}),t.jsx(yp,{options:p.options,update:p.update,updateNested:p.updateNested}),!D&&t.jsx(_p,{onConnect:c}),t.jsx(Hl,{addNotice:i,options:p.options,update:p.update,updateNested:p.updateNested,save:p.save,reset:p.reset,loading:p.loading,saved:p.saved,error:p.error})]})]})}return t.jsxs(In,{sidebar:t.jsx(Vp,{addNotice:i,onOpenPricingModal:u}),children:[t.jsxs("div",{className:"cn-protection-header",children:[t.jsx("h1",{className:"cn-protection-header__title",children:s("Cookie Consent","cookie-notice")}),t.jsx("p",{className:"cn-protection-header__subtitle",children:s("Manage your banner, laws, consent signals, and languages.","cookie-notice")})]}),h&&t.jsx(Kl,{addNotice:i}),t.jsxs(as,{managed:p.networkManaged,perSite:p.perSite,children:[!p.perSite&&t.jsx(Gl,{}),t.jsx(Ip,{}),m&&t.jsx(Tl,{onClose:g,onSave:g,scrollTrigger:v,isClosing:x}),k&&t.jsx(Fl,{isOpen:!0,onClose:A,addNotice:i,onOpenPricingModal:u,onApplied:()=>{},scrollTrigger:b,isClosing:_}),t.jsx(Cp,{wpOptions:p.options,confirmedOptions:p.confirmed,update:p.update,scheduleSave:p.scheduleSave,blockingPaused:p.blockingPaused,blockingState:p.blockingState,savingKeys:p.savingKeys,unconfirmedKeys:p.unconfirmedKeys,checkingKeys:p.checkingKeys,pullUnknownKeys:p.pullUnknownKeys,autoSaveError:p.autoSaveError,onOpenPricingModal:u}),t.jsx(Hl,{addNotice:i,options:p.options,update:p.update,updateNested:p.updateNested,save:p.save,reset:p.reset,loading:p.loading,saved:p.saved,error:p.error})]})]})}function Ii({title:i,action:c,onAction:u}){return t.jsxs("div",{className:"cn-section-header",children:[t.jsx("h2",{children:i}),c&&t.jsx("button",{type:"button",className:"cn-section-header__action",onClick:u,children:c})]})}function Kp({onActivate:i}){return t.jsxs("div",{className:"cn-empty-hero",children:[t.jsxs("svg",{className:"cn-empty-hero__icon",viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("circle",{cx:"40",cy:"40",r:"40",fill:"#f0faf7"}),t.jsx("rect",{x:"22",y:"16",width:"36",height:"46",rx:"4",fill:"#fff",stroke:"#e0e4e8",strokeWidth:"1.5"}),t.jsx("rect",{x:"29",y:"26",width:"22",height:"2.5",rx:"1.25",fill:"#e0e4e8"}),t.jsx("rect",{x:"29",y:"33",width:"18",height:"2.5",rx:"1.25",fill:"#e0e4e8"}),t.jsx("rect",{x:"29",y:"40",width:"20",height:"2.5",rx:"1.25",fill:"#e0e4e8"}),t.jsx("circle",{cx:"54",cy:"56",r:"14",fill:"#20c19e"}),t.jsx("path",{d:"M54 44.5l-7 3.5v5.25c0 4.594 2.975 8.881 7 9.931 4.025-1.05 7-5.337 7-9.931V48l-7-3.5z",fill:"white",fillOpacity:"0.9"}),t.jsx("path",{d:"M52.1 56.45l-2.1-2.1.96-.96 1.14 1.14 3.06-3.06.96.96-4.02 4.02z",fill:"#20c19e"})]}),t.jsx("div",{className:"cn-empty-hero__heading",children:s("No Compliance Records","cookie-notice")}),t.jsx("div",{className:"cn-empty-hero__sub",children:s("Connect to Cookie Compliance to start collecting consent proofs, audit logs, and compliance evidence.","cookie-notice")}),t.jsx(Ue,{variant:"primary",onClick:i,children:s("Connect Your Site","cookie-notice")}),t.jsx("div",{className:"cn-empty-hero__footnote",children:s("Connect your site · Free · Takes 60 seconds","cookie-notice")})]})}function Yl({breakdown:i,loading:c}){const u=i&&i.total>0,d=(i==null?void 0:i.levelLabels)||{},p=d.level3||s("Accept","cookie-notice"),h=d.level2||s("Custom","cookie-notice"),m=d.level1||s("Reject","cookie-notice"),x=u?[{value:i.total.toLocaleString(),label:s("Total Consents","cookie-notice")},{value:`${i.acceptRate}%`,label:p},{value:`${i.customRate}%`,label:h},{value:`${i.rejectRate}%`,label:m}]:[{value:c?"…":"—",label:s("Total Consents","cookie-notice")},{value:c?"…":"—",label:p},{value:c?"…":"—",label:h},{value:c?"…":"—",label:m}];return t.jsx("div",{className:"cn-consent-stats",children:x.map(v=>t.jsxs("div",{className:"cn-consent-stat",children:[t.jsx("div",{className:"cn-consent-stat__value",children:v.value}),t.jsx("div",{className:"cn-consent-stat__label",children:v.label})]},v.label))})}function Fs({columns:i,rows:c,expandable:u=!1,renderExpanded:d,pageSize:p=20,currentPage:h=1,totalPages:m=1,onPageChange:x,onSort:v,sortColumn:g,sortDirection:k="asc",emptyMessage:_=s("No data available","cookie-notice")}){const[b,A]=w.useState(new Set),C=E=>{u&&A(I=>{const R=new Set(I);return R.has(E)?R.delete(E):R.add(E),R})},D=E=>{if(!E.sortable||!v)return;const I=g===E.key&&k==="asc"?"desc":"asc";v(E.key,I)},P=E=>E.sortable?g!==E.key?t.jsx("span",{className:"cn-data-table__sort",children:t.jsx(mp,{size:14})}):t.jsx("span",{className:"cn-data-table__sort cn-data-table__sort--active",children:k==="asc"?"↑":"↓"}):null;return t.jsxs("div",{className:"cn-data-table",children:[t.jsxs("table",{className:"cn-data-table__table",children:[t.jsx("thead",{children:t.jsx("tr",{className:"cn-data-table__header",children:i.map(E=>t.jsxs("th",{className:`cn-data-table__th${E.sortable?" cn-data-table__th--sortable":""}`,onClick:()=>D(E),children:[E.label,P(E)]},E.key))})}),t.jsxs("tbody",{children:[(!c||c.length===0)&&t.jsx("tr",{children:t.jsx("td",{className:"cn-data-table__td cn-data-table__empty",colSpan:i.length,children:_})}),c==null?void 0:c.map((E,I)=>t.jsxs(t.Fragment,{children:[t.jsx("tr",{className:`cn-data-table__row${u?" cn-data-table__row--expandable":""}${b.has(I)?" cn-data-table__row--expanded":""}`,onClick:()=>C(I),children:i.map(R=>t.jsx("td",{className:"cn-data-table__td",children:E[R.key]??"—"},R.key))},I),u&&b.has(I)&&d&&t.jsx("tr",{className:"cn-data-table__expanded-row",children:t.jsx("td",{colSpan:i.length,className:"cn-data-table__expanded",children:d(E,I)})},`${I}-expanded`)]}))]})]}),m>1&&t.jsxs("div",{className:"cn-data-table__pagination",children:[t.jsx("button",{type:"button",className:"cn-data-table__page-btn",disabled:h<=1,onClick:()=>x==null?void 0:x(h-1),"aria-label":s("Previous page","cookie-notice"),children:"«"}),t.jsxs("span",{className:"cn-data-table__page-info",children:["Page ",h," of ",m]}),t.jsx("button",{type:"button",className:"cn-data-table__page-btn",disabled:h>=m,onClick:()=>x==null?void 0:x(h+1),"aria-label":s("Next page","cookie-notice"),children:"»"})]})]})}function ql({startDate:i,endDate:c,onChange:u,maxRange:d,disabled:p}){const h=v=>{const g=v.target.value;let k=c;if(d&&k){const _=new Date(g),b=new Date(k);if(Math.ceil((b-_)/(1e3*60*60*24))>d){const C=new Date(_);C.setDate(C.getDate()+d),k=C.toISOString().split("T")[0]}}u==null||u({startDate:g,endDate:k})},m=v=>{const g=v.target.value;let k=i;if(d&&k){const _=new Date(k),b=new Date(g);if(Math.ceil((b-_)/(1e3*60*60*24))>d){const C=new Date(b);C.setDate(C.getDate()-d),k=C.toISOString().split("T")[0]}}u==null||u({startDate:k,endDate:g})},x=new Date().toISOString().split("T")[0];return t.jsxs("div",{className:"cn-date-range",children:[t.jsx("input",{type:"date",className:"cn-form-field__input cn-date-range__input",value:i||"",onChange:h,max:c||x,disabled:p}),t.jsx("span",{className:"cn-date-range__separator",children:"to"}),t.jsx("input",{type:"date",className:"cn-form-field__input cn-date-range__input",value:c||"",onChange:m,min:i||void 0,max:x,disabled:p}),d&&t.jsxs("span",{className:"cn-date-range__limit",children:[d,"-day max"]})]})}const Yp={3:"accept",2:"custom",1:"reject"},qp={Essential:"essential",Analytics:"analytics",Marketing:"marketing",Functional:"functional"},Qp=()=>[{key:"id",label:s("Consent ID","cookie-notice"),sortable:!0},{key:"level",label:s("Consent Level","cookie-notice"),sortable:!0},{key:"categories",label:s("Categories","cookie-notice"),sortable:!1},{key:"date",label:s("Date / Time","cookie-notice"),sortable:!0},{key:"ip",label:s("IP Address","cookie-notice"),sortable:!1}];function Zp(i){return{id:t.jsx("span",{className:"cn-consent-id",children:i.id}),level:t.jsx("span",{className:`cn-level-pill cn-level-pill--${Yp[i.levelNum]||"custom"}`,children:i.level}),categories:t.jsx("div",{className:"cn-cat-tags",children:(i.categories||[]).map(c=>t.jsx("span",{className:`cn-cat-tag cn-cat-tag--${qp[c]||"essential"}`,children:c},c))}),date:i.date,ip:t.jsxs("span",{className:"cn-ip-masked",children:[i.ip," ",t.jsx(zs,{size:14,style:{verticalAlign:"middle"}})]})}}function Ql({maxRange:i,onStatsUpdate:c}){const u=new Date().toISOString().split("T")[0],d=new Date(Date.now()-10080*60*1e3).toISOString().split("T")[0],[p,h]=w.useState({startDate:d,endDate:u}),[m,x]=w.useState(1),[v,g]=w.useState("date"),[k,_]=w.useState("desc"),[b,A]=w.useState([]),[C,D]=w.useState(0),[P,E]=w.useState(0),[I,R]=w.useState(!0),[O,te]=w.useState(null),[J,B]=w.useState(!1),X=w.useRef(""),q=w.useCallback(async()=>{R(!0),te(null);const le=`${p.startDate}|${p.endDate}`;try{const he=await T2({page:m,start_date:p.startDate,end_date:p.endDate,sort:v,order:k});A((he.logs||[]).map(Zp)),D(he.totalPages||0),E(he.total||0),B(!!he.inactive),c&&le!==X.current&&(X.current=le,c(he.consentBreakdown||null))}catch(he){te(he.message||s("Failed to load consent logs.","cookie-notice")),c&&le!==X.current&&(X.current=le,c(null))}finally{R(!1)}},[m,p,v,k]);w.useEffect(()=>{q()},[q]);const W=le=>{h(le),x(1)},ne=(le,he)=>{g(le),_(he),x(1)};return t.jsxs("div",{className:"cn-consent-log-table",children:[t.jsxs("div",{className:"cn-consent-log-table__controls",children:[t.jsx(ql,{startDate:p.startDate,endDate:p.endDate,onChange:W,maxRange:i}),P>0&&t.jsxs("span",{className:"cn-consent-log-table__count",children:[P.toLocaleString()," record",P!==1?"s":""]})]}),O&&t.jsx("div",{className:"cn-notice cn-notice--error",children:O}),t.jsx(Fs,{columns:Qp(),rows:b,pageSize:10,currentPage:m,totalPages:C,onPageChange:x,onSort:ne,sortColumn:v,sortDirection:k,loading:I,emptyMessage:s(J?"Consent records appear here once Cookie Compliance is active.":"No consent records found for selected date range.","cookie-notice")})]})}const Xp=()=>[{key:"subject",label:s("Subject","cookie-notice"),sortable:!1},{key:"preferences",label:s("Preferences","cookie-notice"),sortable:!1},{key:"source",label:s("Source","cookie-notice"),sortable:!1},{key:"form",label:s("Form","cookie-notice"),sortable:!1},{key:"date",label:s("Date","cookie-notice"),sortable:!1},{key:"ip",label:s("IP address","cookie-notice"),sortable:!1}],Jp=i=>{var c;return{subject:i.subject||"—",preferences:(c=i.preferences)!=null&&c.length?i.preferences.join(", "):"—",source:i.source||"—",form:i.form||"—",date:i.date||"—",ip:i.ip||"—"}};function Zl({isFree:i}){const[c,u]=w.useState(1),[d,p]=w.useState([]),[h,m]=w.useState(0),[x,v]=w.useState(!1),[g,k]=w.useState(!0),[_,b]=w.useState(null);return w.useEffect(()=>{let A=!1;return k(!0),b(null),M2({page:c}).then(C=>{A||(p((C.logs||[]).map(Jp)),m(C.totalPages||0),v(!!C.inactive))}).catch(C=>{A||(p([]),b(C.message||s("Failed to load consent logs.","cookie-notice")))}).finally(()=>!A&&k(!1)),()=>{A=!0}},[c]),t.jsxs("div",{className:"cn-consent-log-table cn-privacy-consent-logs",children:[t.jsxs("p",{className:"cn-privacy-consent-logs__desc",children:[s("The table below shows the latest privacy consent records collected from the forms on your website.","cookie-notice"),i&&t.jsxs(t.Fragment,{children:[" ",s("Note: sites on the Cookie Compliance Free Plan can collect up to 100 records.","cookie-notice")]})]}),_&&t.jsx("div",{className:"cn-notice cn-notice--error",children:_}),t.jsx(Fs,{columns:Xp(),rows:d,currentPage:c,totalPages:h,onPageChange:u,emptyMessage:s(g?"Loading…":x?"Privacy consent records appear here once Cookie Compliance is active.":"No privacy consent logs found.","cookie-notice")})]})}const Xl={pass:{icon:t.jsx(Ul,{size:16}),cls:"pass"},warn:{icon:t.jsx(Bl,{size:16}),cls:"warn"},na:{icon:"–",cls:"na"}};function e0({items:i}){return t.jsx("div",{className:"cn-evidence-panel",children:i.map((c,u)=>{const d=Xl[c.status]||Xl.na;return t.jsxs("div",{className:"cn-evidence-item",children:[t.jsx("span",{className:`cn-evidence-item__icon cn-evidence-item__icon--${d.cls}`,children:d.icon}),t.jsx("span",{className:"cn-evidence-item__text",children:c.text})]},u)})})}function Jl({proLocked:i=!1,onOpenPricingModal:c}){const[u,d]=w.useState("gdpr"),{dashboard:p}=Mn(),{config:h}=wt(),x=!!((h==null?void 0:h.blocking)||{}).gpc_support,v=(p==null?void 0:p.consentCount)??0,g=Lo(),k=g==="live",_=os(g),b=k?"pass":g==="inactive"||g==="pending"?"warn":"na",A=bs(),C=[{status:b,text:k?s("Consent banner active on all pages","cookie-notice"):je(s("Consent banner on all pages — %s","cookie-notice"),_)},{status:b,text:k?s("Cookie categories clearly defined","cookie-notice"):je(s("Cookie categories — %s","cookie-notice"),_)},{status:"na",text:s("Data retention policy — verify in Admin Portal","cookie-notice")},{status:"na",text:s("DPO contact details — verify in Admin Portal","cookie-notice")}],D=[{status:x?b:"warn",text:x?k?s("Do Not Sell / Share signal honored (GPC active)","cookie-notice"):je(s("Do Not Sell / Share signal — %s","cookie-notice"),_):s("Do Not Sell / Share signal — enable GPC in Consent Signals","cookie-notice")},{status:b,text:k?s("Opt-out mechanism functional","cookie-notice"):je(s("Opt-out mechanism — %s","cookie-notice"),_)},{status:"na",text:s("Privacy policy link in banner — verify in Admin Portal","cookie-notice")},{status:"na",text:s("Consumer rights request handling — verify in Admin Portal","cookie-notice")}];function P(){const O=te=>je(s("Prior consent — %s","cookie-notice"),te);return k?A==="active"?{status:"pass",text:s("Prior consent — known trackers held until visitors agree","cookie-notice")}:A==="off"?{status:"warn",text:O(s("Autoblocking off — trackers may fire unblocked","cookie-notice"))}:A==="paused"?{status:"warn",text:O(s("Autoblocking paused — visit limit reached","cookie-notice"))}:A==="saving"?{status:"na",text:O(s("Saving autoblocking…","cookie-notice"))}:{status:"na",text:O(s("Not confirmed — reload to see the saved value","cookie-notice"))}:{status:b,text:O(_)}}const E=[P(),Re()?{status:"na",text:s("Consent withdrawal — verify in the network admin","cookie-notice")}:k?{status:v>0?"pass":"warn",text:v>0?s("Consent withdrawal mechanism available and in use","cookie-notice"):s("Consent withdrawal — no consent records yet; verify banner is live","cookie-notice")}:{status:b,text:je(s("Consent withdrawal — %s","cookie-notice"),_)},{status:"na",text:s("Cookie lifetime disclosure — verify in Admin Portal","cookie-notice")},{status:"na",text:s("Legitimate interest assessment — verify in Admin Portal","cookie-notice")}],I=[{key:"gdpr",label:s("GDPR","cookie-notice"),items:C,locked:!1},{key:"ccpa",label:s("CCPA","cookie-notice"),items:D,locked:!1},{key:"eprivacy",label:s("ePrivacy","cookie-notice"),items:E,locked:i}],R=I.find(O=>O.key===u);return t.jsxs("div",{className:"cn-compliance-evidence",children:[t.jsx("nav",{className:"cn-evidence-tabs",children:I.map(O=>t.jsxs("button",{type:"button",className:`cn-evidence-tab${u===O.key?" cn-evidence-tab--active":""}`,onClick:()=>d(O.key),children:[O.label,O.locked&&t.jsx(Un,{})]},O.key))}),R!=null&&R.locked?t.jsx("div",{className:"cn-evidence-panel cn-evidence-panel--locked",children:t.jsxs("div",{className:"cn-evidence-lock",children:[t.jsx("span",{className:"cn-evidence-lock__icon",children:t.jsx(zs,{size:24})}),t.jsxs("p",{className:"cn-evidence-lock__msg",children:["ePrivacy compliance evidence is available on Pro.",Re()?"":" Upgrade to unlock."]}),Re()?t.jsx("p",{className:"cn-evidence-lock__msg",children:is()}):t.jsx("button",{type:"button",className:"cn-button cn-button--upgrade",onClick:()=>c&&c(),children:"Upgrade to Pro"})]})}):t.jsx(e0,{items:(R==null?void 0:R.items)||[]})]})}function n0({isPro:i=!1,onOpenPricingModal:c}){const u=new Date().toISOString().split("T")[0],d=new Date(Date.now()-720*60*60*1e3).toISOString().split("T")[0],[p,h]=w.useState({startDate:d,endDate:u}),{exportCsv:m,loading:x,error:v}=g3(),g=()=>{m==null||m({start_date:p.startDate,end_date:p.endDate})};return i?t.jsxs("div",{className:"cn-export-section",children:[t.jsx("div",{className:"cn-export-section__label",children:s("Export Consent Log","cookie-notice")}),t.jsx(ql,{startDate:p.startDate,endDate:p.endDate,onChange:h}),t.jsx(Ue,{variant:"primary",onClick:g,disabled:x,children:x?"Exporting…":"Export CSV"}),v&&t.jsx("div",{className:"cn-export-section__error",children:v})]}):t.jsx(Ss,{requiredTier:"pro",message:s("Upgrade to Pro to export consent logs as CSV.","cookie-notice"),onCta:c,children:t.jsxs("div",{className:"cn-export-section cn-export-section--locked",children:[t.jsx("div",{className:"cn-export-section__label",children:s("Export Consent Log","cookie-notice")}),t.jsx(Ue,{variant:"outline",disabled:!0,children:s("Export CSV","cookie-notice")})]})})}function t0(){const i=[{id:"CID-7F2A9C",level:s("Personalized","cookie-notice"),levelNum:3,date:"2026-02-26 14:37",ip:"192.168.x.x"},{id:"CID-4B1E3D",level:s("Balanced","cookie-notice"),levelNum:2,date:"2026-02-26 13:58",ip:"10.0.x.x"},{id:"CID-9A0F12",level:s("Private","cookie-notice"),levelNum:1,date:"2026-02-26 13:21",ip:"172.16.x.x"},{id:"CID-C3D8E5",level:s("Personalized","cookie-notice"),levelNum:3,date:"2026-02-26 12:04",ip:"192.168.x.x"},{id:"CID-2E6B7A",level:s("Balanced","cookie-notice"),levelNum:2,date:"2026-02-25 22:49",ip:"10.0.x.x"}],c=[{type:"banner",what:s("Position changed to Bottom","cookie-notice"),when:"Feb 25, 14:03"},{type:"setting",what:s("GDPR regulation enabled","cookie-notice"),when:"Feb 23, 09:41"},{type:"scan",what:s("3 new scripts detected & categorized","cookie-notice"),when:"Feb 22, 16:18"},{type:"setting",what:s("Google Consent Mode v2 activated","cookie-notice"),when:"Feb 20, 11:05"}],u={3:"accept",2:"custom",1:"reject"},d={banner:s("Banner","cookie-notice"),setting:s("Setting","cookie-notice"),scan:s("Scan","cookie-notice")};return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"cn-blurred-teaser__section",children:[t.jsxs("div",{className:"cn-blurred-teaser__section-header",children:[t.jsx("span",{className:"cn-blurred-teaser__section-title",children:s("Cookie Consent Log","cookie-notice")}),t.jsx("span",{className:"cn-blurred-teaser__section-meta",children:s("3,241 total records — showing 1–5","cookie-notice")})]}),t.jsxs("table",{className:"cn-blurred-teaser__table",children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:s("Consent ID","cookie-notice")}),t.jsx("th",{children:s("Consent Level","cookie-notice")}),t.jsx("th",{children:s("Date / Time","cookie-notice")}),t.jsx("th",{children:s("IP Address","cookie-notice")})]})}),t.jsx("tbody",{children:i.map(p=>t.jsxs("tr",{children:[t.jsx("td",{children:t.jsx("span",{className:"cn-consent-id",children:p.id})}),t.jsx("td",{children:t.jsx("span",{className:`cn-level-pill cn-level-pill--${u[p.levelNum]}`,children:p.level})}),t.jsx("td",{children:p.date}),t.jsx("td",{children:t.jsx("span",{className:"cn-ip-masked",children:p.ip})})]},p.id))})]})]}),t.jsxs("div",{className:"cn-blurred-teaser__section",children:[t.jsxs("div",{className:"cn-blurred-teaser__section-header",children:[t.jsx("span",{className:"cn-blurred-teaser__section-title",children:s("Config Change History","cookie-notice")}),t.jsx("span",{className:"cn-blurred-teaser__section-meta",children:s("Last 30 days","cookie-notice")})]}),t.jsx("div",{className:"cn-blurred-teaser__timeline",children:c.map((p,h)=>t.jsxs("div",{className:"cn-blurred-teaser__tl-row",children:[t.jsx("div",{className:`cn-blurred-teaser__tl-dot cn-blurred-teaser__tl-dot--${p.type}`}),t.jsxs("div",{className:"cn-blurred-teaser__tl-text",children:[t.jsxs("div",{className:"cn-blurred-teaser__tl-what",children:[t.jsx("span",{className:`cn-change-badge cn-change-badge--${p.type}`,children:d[p.type]}),p.what]}),t.jsx("div",{className:"cn-blurred-teaser__tl-when",children:p.when})]})]},h))})]})]})}function o0(){return t.jsxs(t.Fragment,{children:[t.jsx(Wt,{showPortalLink:!1}),!Re()&&t.jsx(On,{title:s("Why Connect?","cookie-notice"),children:t.jsx("ul",{className:"cn-benefit-list",children:[s("Timestamped consent proofs for every visitor interaction","cookie-notice"),s("Searchable audit log for GDPR and CCPA regulators","cookie-notice"),s("Config change history — who changed what and when","cookie-notice"),s("Exportable compliance evidence in one click","cookie-notice"),s("Prove compliance if you ever face a regulatory inquiry","cookie-notice")].map((i,c)=>t.jsxs("li",{className:"cn-benefit-item",children:[t.jsx("span",{className:"cn-benefit-item__icon",children:t.jsx(Ul,{size:16})}),t.jsx("span",{children:i})]},c))})})]})}function e1({isPro:i,onOpenPricingModal:c,addNotice:u}){return t.jsxs(t.Fragment,{children:[t.jsx(Wt,{addNotice:u}),t.jsxs(On,{title:s("Consent history","cookie-notice"),children:[t.jsxs("div",{className:`cn-retention-info${i?" cn-retention-info--pro":""}`,children:[t.jsx("span",{className:"cn-retention-info__value",children:s(i?"No 7-day limit":"7-day history","cookie-notice")}),t.jsx("span",{className:"cn-retention-info__label",children:s(i?"Pro plan":"Free plan","cookie-notice")})]}),!i&&t.jsx("p",{className:"cn-retention-info__note",children:s("Upgrade to Pro to remove the 7-day limit.","cookie-notice")})]}),t.jsx(On,{title:s("Export","cookie-notice"),children:t.jsx(n0,{isPro:i,onOpenPricingModal:c??void 0})})]})}function i0({addNotice:i,onOpenWelcomeModal:c,onOpenPricingModal:u}){const{isBannerOnly:d,isFree:p}=Ze(),h=Ai(),[m,x]=w.useState(null),[v,g]=w.useState(!0),k=_=>{x(_),g(!1)};if(h)return t.jsxs(In,{sidebar:t.jsx(Wt,{addNotice:i}),children:[t.jsx("div",{className:"cn-protection-header",children:t.jsx("h1",{className:"cn-protection-header__title",children:s("Consent Logs","cookie-notice")})}),t.jsx(ss,{})]});if(d){const _=Re();return t.jsxs(In,{sidebar:t.jsx(o0,{}),children:[t.jsxs("div",{className:"cn-protection-header",children:[t.jsx("h1",{className:"cn-protection-header__title",children:s("Consent Logs","cookie-notice")}),t.jsx("p",{className:"cn-protection-header__subtitle",children:s("Consent logs, compliance evidence, and configuration history.","cookie-notice")})]}),_?t.jsx(rs,{}):t.jsx(Kp,{onActivate:()=>c&&c()}),t.jsxs("div",{className:"cn-blurred-teaser",children:[t.jsx("div",{className:"cn-blurred-teaser__blur",children:t.jsx(t0,{})}),t.jsxs("div",{className:"cn-blurred-teaser__overlay",children:[t.jsx("span",{className:"cn-blurred-teaser__overlay-icon",children:t.jsx(Ol,{size:24})}),t.jsx("div",{className:"cn-blurred-teaser__overlay-label",children:s("Full Compliance Audit Trail","cookie-notice")}),t.jsx("div",{className:"cn-blurred-teaser__overlay-sub",children:s("Consent logs, config timeline, compliance evidence & more","cookie-notice")}),!_&&t.jsx(Ue,{variant:"primary",onClick:()=>c&&c(),children:s("Connect Your Site","cookie-notice")})]})]})]})}return p?t.jsxs(In,{sidebar:t.jsx(e1,{isPro:!1,onOpenPricingModal:u,addNotice:i}),children:[t.jsxs("div",{className:"cn-protection-header",children:[t.jsx("h1",{className:"cn-protection-header__title",children:s("Consent Logs","cookie-notice")}),t.jsx("p",{className:"cn-protection-header__subtitle",children:s("Consent logs and compliance evidence for your site.","cookie-notice")})]}),t.jsx(Yl,{breakdown:m,loading:v}),t.jsx(Ql,{maxRange:7,onStatsUpdate:k}),t.jsx(Ii,{title:s("Form Consent","cookie-notice")}),t.jsx(Zl,{isFree:!0}),t.jsx(Ii,{title:s("Compliance Evidence","cookie-notice")}),t.jsx(Jl,{proLocked:!0,onOpenPricingModal:u})]}):t.jsxs(In,{sidebar:t.jsx(e1,{isPro:!0,onOpenPricingModal:u,addNotice:i}),children:[t.jsxs("div",{className:"cn-protection-header",children:[t.jsx("h1",{className:"cn-protection-header__title",children:s("Consent Logs","cookie-notice")}),t.jsx("p",{className:"cn-protection-header__subtitle",children:s("Full consent log history, compliance evidence, and configuration timeline.","cookie-notice")})]}),t.jsx(Yl,{breakdown:m,loading:v}),t.jsx(Ql,{onStatsUpdate:k}),t.jsx(Ii,{title:s("Form Consent","cookie-notice")}),t.jsx(Zl,{isFree:!1}),t.jsx(Ii,{title:s("Compliance Evidence","cookie-notice")}),t.jsx(Jl,{proLocked:!1,onOpenPricingModal:u})]})}const r0=i=>[{key:"title",label:s("Form Title","cookie-notice"),sortable:i},{key:"id",label:s("Form ID","cookie-notice"),sortable:!1},{key:"fields",label:s("Fields","cookie-notice"),sortable:!1},{key:"date",label:s("Date","cookie-notice"),sortable:!1},{key:"status",label:s("Status","cookie-notice"),sortable:!1}];function s0({source:i,disabled:c,busy:u,onSave:d,onToggleForm:p,onLoadForms:h}){const m=w.useId(),x=c||!i.availability,[v,g]=w.useState({active:!!i.active,activeType:i.activeType});w.useEffect(()=>{g({active:!!i.active,activeType:i.activeType})},[i.active,i.activeType,i.rev]);const k={};v.active!==!!i.active&&(k.active=v.active),v.activeType!==i.activeType&&(k.activeType=v.activeType);const _=Object.keys(k).length>0,b=v.activeType==="all",A=i.type==="dynamic",C=i.forms||{items:[],page:1,maxPages:0},D=i.availability?i.active?s("On","cookie-notice"):s("Off","cookie-notice"):s("Plugin not active","cookie-notice"),P=(C.items||[]).map(E=>({title:t.jsx("strong",{children:E.title}),id:String(E.id),fields:String(E.fieldCount),date:E.date||"—",status:t.jsx("input",{type:"checkbox",className:"cn-privacy-form-toggle","aria-label":je(s("Privacy consent for %s","cookie-notice"),E.title),checked:b||!!E.status,disabled:x||u||b,onChange:I=>p(E.id,I.target.checked)})}));return t.jsx("div",{className:`cn-privacy-source${i.availability?"":" cn-privacy-source--unavailable"}`,"data-source":i.id,children:t.jsxs(Kn,{title:i.name,subtitle:D,defaultOpen:i.active,children:[t.jsxs("div",{className:"cn-toggle-row",children:[t.jsxs("label",{className:"cn-toggle-row__label",htmlFor:m,children:[t.jsx("input",{id:m,type:"checkbox",className:"cn-toggle-row__input cn-privacy-source__status",checked:i.availability&&v.active,disabled:x||u,onChange:E=>g(I=>({...I,active:E.target.checked}))}),t.jsx("span",{className:"cn-toggle-row__text",children:je(s("Enable to apply privacy consent support for %s forms.","cookie-notice"),i.name)})]}),!i.availability&&t.jsx("div",{className:"cn-toggle-row__desc",children:je(s("Install and activate %s to record consent from its forms.","cookie-notice"),i.name)})]}),i.availability&&v.active&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"cn-radio-group",children:t.jsx("div",{className:"cn-radio-group__options",children:[{value:"all",label:s("Apply to all forms","cookie-notice")},{value:"selected",label:s("Apply to selected forms","cookie-notice")}].map(E=>t.jsxs("label",{className:"cn-radio-group__option",children:[t.jsx("input",{type:"radio",name:`cn-privacy-${i.id}-type`,value:E.value,checked:v.activeType===E.value,disabled:x||u,onChange:()=>g(I=>({...I,activeType:E.value}))}),t.jsx("span",{children:E.label})]},E.value))})}),t.jsx("div",{className:`cn-privacy-source__forms${u?" cn-privacy-source__forms--busy":""}`,children:t.jsx(Fs,{columns:r0(A),rows:P,currentPage:C.page||1,totalPages:A?C.maxPages||0:1,onPageChange:E=>h(E,i.order||"asc"),onSort:(E,I)=>h(1,I),sortColumn:A?"title":void 0,sortDirection:i.order||"asc",emptyMessage:s("No forms found.","cookie-notice")})})]}),i.availability&&t.jsx("div",{className:"cn-privacy-source__save",children:t.jsx(Ue,{variant:"primary",disabled:x||u||!_,onClick:()=>d(k),children:s("Save Changes","cookie-notice")})})]})})}function a0({status:i,onOpenWelcomeModal:c}){var x;const u=((x=window.cnReactData)==null?void 0:x.app_id)||"",d=i==="active"||i==="pending"?i:u?"unconfirmed":"inactive",p={active:s("Connected","cookie-notice"),pending:s("Pending","cookie-notice"),unconfirmed:s("Not confirmed","cookie-notice"),inactive:s("Not connected","cookie-notice")}[d],h={active:"green",pending:"yellow",unconfirmed:"gray",inactive:"gray"}[d],m=`${sn}/#/dashboard${u?`?app-id=${encodeURIComponent(u)}`:""}`;return t.jsxs(On,{title:s("Compliance Status","cookie-notice"),children:[t.jsx("div",{className:"cn-dom-rows",children:t.jsxs("div",{className:"cn-dom-row",children:[t.jsx("span",{className:"cn-dom-row__k",children:s("Connection","cookie-notice")}),t.jsxs("span",{className:"cn-dom-row__v",children:[t.jsx("span",{className:`cn-dot cn-dot--${h}`})," ",p]})]})}),Re()?t.jsx("p",{className:"cn-conn-hint",children:is()}):d==="inactive"?t.jsx("div",{className:"cn-connect-cta",children:t.jsx("button",{type:"button",className:"cn-button cn-button--primary cn-connect-cta__btn",onClick:c,children:s("Connect Your Site","cookie-notice")})}):t.jsx("div",{className:"cn-connect-cta",children:t.jsx("a",{className:"cn-button cn-button--outline cn-connect-cta__btn",href:m,target:"_blank",rel:"noreferrer",children:s("Open Admin Portal","cookie-notice")})})]})}function c0({addNotice:i,onOpenWelcomeModal:c}){var J;const{isBannerOnly:u}=Ze(),[d,p]=w.useState(null),[h,m]=w.useState(null),[x,v]=w.useState({}),[g,k]=w.useState(0),_=w.useRef(Promise.resolve());w.useEffect(()=>{hs().then(p).catch(B=>m(B.message||s("Failed to load privacy consent settings.","cookie-notice")))},[]);const b=w.useCallback((B,X)=>{p(q=>q&&{...q,sources:q.sources.map(W=>W.id===B?{...W,...typeof X=="function"?X(W):X}:W)})},[]),A=w.useCallback(B=>{k(q=>q+1);const X=_.current.then(B).finally(()=>k(q=>q-1));return _.current=X.catch(()=>{}),X},[]),C=w.useCallback(async(B,X=1,q="asc")=>{v(W=>({...W,[B]:!0}));try{const ne=((await hs({source:B,page:X,order:q})).sources||[]).find(le=>le.id===B);ne&&b(B,{forms:ne.forms,order:q})}catch(W){i==null||i(W.message||s("Failed to load forms.","cookie-notice"),"error")}finally{v(W=>({...W,[B]:!1}))}},[i,b]),D=(B,X,q)=>b(B,W=>({forms:{...W.forms,items:W.forms.items.map(ne=>String(ne.id)===String(X)?{...ne,status:q}:ne)}})),P=(B,X)=>A(async()=>{try{((await R2({[B]:X})).sources||[]).forEach(W=>b(W.id,ne=>({active:W.active,activeType:W.activeType,...W.id===B?{rev:(ne.rev||0)+1}:{}}))),i==null||i(s("Settings saved.","cookie-notice"),"success")}catch(q){i==null||i(q.message||s("Settings could not be saved.","cookie-notice"),"error")}}),E=(B,X,q)=>(D(B,X,q),A(async()=>{try{const W=await z2(B,X,q);b(B,{active:W.source.active,activeType:W.source.activeType}),D(B,X,W.status)}catch(W){D(B,X,!q),i==null||i(W.message||s("Settings could not be saved.","cookie-notice"),"error")}})),I=(d==null?void 0:d.status)??((J=window.cnReactData)==null?void 0:J.status)??"",R=I==="active",O=!!(d!=null&&d.readOnly),te=t.jsx("div",{className:"cn-privacy-consent",children:((d==null?void 0:d.sources)||[]).map(B=>t.jsx(s0,{source:B,disabled:!R||O,busy:g>0||!!x[B.id],onSave:X=>P(B.id,X),onToggleForm:(X,q)=>E(B.id,X,q),onLoadForms:(X,q)=>C(B.id,X,q)},B.id))});return t.jsxs(In,{sidebar:t.jsx(a0,{status:I,onOpenWelcomeModal:c}),children:[t.jsxs("div",{className:"cn-protection-header",children:[t.jsx("h1",{className:"cn-protection-header__title",children:s("Privacy Consent","cookie-notice")}),t.jsx("p",{className:"cn-protection-header__subtitle",children:s("Record proof of consent from the forms on your website.","cookie-notice")})]}),O&&t.jsx(Ut,{type:"info",children:s("Privacy Consent settings are managed on each site of the network.","cookie-notice")}),!O&&d&&!R&&!u&&t.jsx(Ut,{type:"warning",children:s("Privacy Consent requires an active Cookie Compliance connection.","cookie-notice")}),h&&t.jsx(Ut,{type:"error",children:h}),!d&&!h&&t.jsx("p",{className:"cn-privacy-consent__loading",children:s("Loading…","cookie-notice")}),d&&(u?t.jsx(Ss,{requiredTier:"free",onCta:c,message:s("Sign up to Cookie Compliance and enable Privacy Consent support.","cookie-notice"),children:te}):te)]})}var l0=Bc();const n1={sm:480,md:720,lg:960},t1='a[href],button:not([disabled]),textarea:not([disabled]),input:not([disabled]),select:not([disabled]),[tabindex]:not([tabindex="-1"])';function o1({isOpen:i,onClose:c,size:u="md",title:d,children:p}){const h=w.useRef(null),m=w.useRef(null),x=w.useCallback(_=>{if(_.key==="Escape"&&c){c();return}if(_.key==="Tab"&&h.current){const b=h.current.querySelectorAll(t1);if(b.length===0){_.preventDefault();return}const A=b[0],C=b[b.length-1];_.shiftKey&&document.activeElement===A?(_.preventDefault(),C.focus()):!_.shiftKey&&document.activeElement===C&&(_.preventDefault(),A.focus())}},[c]);if(w.useEffect(()=>{let _;return i&&(m.current=document.activeElement,document.addEventListener("keydown",x),document.body.style.overflow="hidden",_=setTimeout(()=>{if(h.current){const b=h.current.querySelector(t1);b?b.focus():h.current.focus()}},50)),()=>{clearTimeout(_),document.removeEventListener("keydown",x),document.body.style.overflow="",m.current&&typeof m.current.focus=="function"&&(m.current.focus(),m.current=null)}},[i,x]),!i)return null;const v=_=>{_.target===_.currentTarget&&c&&c()},g={position:"fixed",top:0,right:0,bottom:0,left:0,background:"rgba(0,0,0,0.6)",zIndex:1e5,display:"flex",alignItems:"center",justifyContent:"center",padding:"32px"},k=d?"cn-modal-title":void 0;return l0.createPortal(t.jsx("div",{className:"cn-modal-overlay",style:g,onClick:v,children:t.jsxs("div",{ref:h,className:`cn-modal cn-modal--${u}`,style:{maxWidth:n1[u]||n1.md},role:"dialog","aria-modal":"true","aria-labelledby":k,tabIndex:-1,children:[t.jsx("button",{className:"cn-modal__close",onClick:c,type:"button","aria-label":s("Close","cookie-notice"),children:"×"}),d&&t.jsx("div",{className:"cn-modal__header",id:k,children:d}),t.jsx("div",{className:"cn-modal__content",children:p})]})}),document.body)}function u0({steps:i,currentStep:c=0,onStepClick:u}){return t.jsx("div",{className:"cn-step-dots",role:"group","aria-label":s("Progress","cookie-notice"),children:i.map((d,p)=>{const h=p<c,m=p===c,x=typeof d=="string"?d:`Step ${p+1}`;let v="cn-step-dot";return h&&(v+=" cn-step-dot--done"),m&&(v+=" cn-step-dot--active"),t.jsx("div",{className:v,role:"tab","aria-selected":m,"aria-label":h?je(s("%s (completed)","cookie-notice"),x):x,"aria-current":m?"step":void 0,onClick:h&&u?()=>u(p):void 0,style:h&&u?{cursor:"pointer"}:void 0,tabIndex:h&&u?0:-1},p)})})}function d0({onBannerOnly:i,onProtect:c,onComply:u,onLearnMore:d}){var m;const h=(((m=window.cnReactData)==null?void 0:m.detectedPlugins)||[]).includes("google");return t.jsxs("div",{className:"cn-welcome-step cn-welcome-step--choose",children:[t.jsx("h1",{className:"cn-choose__heading",children:s("Choose your protection level","cookie-notice")}),h&&t.jsxs("div",{className:"cn-choose__google-notice",children:[t.jsx("strong",{children:s("Google tools detected.","cookie-notice")})," ",s("Make sure Google Consent Mode is configured during setup.","cookie-notice")]}),t.jsxs("div",{className:"cn-protection-cards",children:[t.jsxs("div",{className:"cn-protection-card",children:[t.jsx("span",{className:"cn-protection-card__badge cn-protection-card__badge--risk",children:s("Banner Only","cookie-notice")}),t.jsx("div",{className:"cn-protection-card__icon cn-protection-card__icon--banner",children:t.jsx(fp,{size:32})}),t.jsx("h4",{className:"cn-protection-card__title",children:s("I just want a banner","cookie-notice")}),t.jsx("p",{className:"cn-protection-card__subtitle",children:s("Display-only notice, no compliance features","cookie-notice")}),t.jsx("div",{className:"cn-protection-card__divider"}),t.jsx("div",{className:"cn-protection-card__price-label",children:s("Banner Only","cookie-notice")}),t.jsx("span",{className:"cn-protection-card__price-note cn-protection-card__price-note--danger",children:s("Does not meet GDPR requirements","cookie-notice")}),t.jsxs("ul",{className:"cn-protection-card__features",children:[t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Cookie notice banner","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Accept / Reject buttons","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Custom colors & text","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--excluded",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✗"}),s("No consent records","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--excluded",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✗"}),s("No script blocking","cookie-notice")]})]}),t.jsx("div",{className:"cn-protection-card__footer",children:t.jsx("button",{type:"button",className:"cn-protection-card__btn cn-protection-card__btn--ghost",onClick:i,children:s("Just the Banner","cookie-notice")})})]}),t.jsxs("div",{className:"cn-protection-card cn-protection-card--recommended",children:[t.jsx("span",{className:"cn-protection-card__badge cn-protection-card__badge--rec",children:s("Recommended","cookie-notice")}),t.jsx("div",{className:"cn-protection-card__icon cn-protection-card__icon--protect",children:t.jsx(ap,{size:32})}),t.jsx("h4",{className:"cn-protection-card__title",children:s("For small sites","cookie-notice")}),t.jsx("p",{className:"cn-protection-card__subtitle",children:s("Essential compliance, no credit card required","cookie-notice")}),t.jsx("div",{className:"cn-protection-card__divider"}),t.jsx("div",{className:"cn-protection-card__price-label",children:s("Sign Up Free","cookie-notice")}),t.jsx("span",{className:"cn-protection-card__price-note",children:s("Up to 1,000 visits per 30-day cycle","cookie-notice")}),t.jsxs("ul",{className:"cn-protection-card__features",children:[t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Best for sites without ads","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),"Google Consent Mode v2"]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Tracker blocking","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Standard Support","cookie-notice")]})]}),t.jsx("div",{className:"cn-protection-card__footer",children:t.jsx("button",{type:"button",className:"cn-protection-card__btn cn-protection-card__btn--primary",onClick:c,children:s("Protect My Business","cookie-notice")})})]}),t.jsxs("div",{className:"cn-protection-card",children:[t.jsx("span",{className:"cn-protection-card__badge cn-protection-card__badge--max",children:s("Full Compliance","cookie-notice")}),t.jsx("div",{className:"cn-protection-card__icon cn-protection-card__icon--comply",children:t.jsx(dp,{size:32})}),t.jsx("h4",{className:"cn-protection-card__title",children:s("Ensure full compliance","cookie-notice")}),t.jsx("p",{className:"cn-protection-card__subtitle",children:s("Full coverage for EU, US & growing businesses","cookie-notice")}),t.jsx("div",{className:"cn-protection-card__divider"}),t.jsx("div",{className:"cn-protection-card__price-label",children:"$14.95/mo"}),t.jsx("span",{className:"cn-protection-card__price-note",children:s("Unlimited visitors protected","cookie-notice")}),t.jsxs("ul",{className:"cn-protection-card__features",children:[t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Best for sites with analytics","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Facebook & Microsoft Consent Modes","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Global Privacy Control","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Geolocation rules — show right banner by country","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Full consent history & export","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Advanced autoblocking + script categorization","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Priority Support","cookie-notice")]})]}),t.jsx("div",{className:"cn-protection-card__footer",children:t.jsx("button",{type:"button",className:"cn-protection-card__btn cn-protection-card__btn--secondary",onClick:u,children:s("Ensure Full Compliance","cookie-notice")})})]})]})]})}const p0=[{domains:1,monthly:14.95,yearly:149.5,perDomain:null,popular:!0},{domains:5,monthly:29.95,yearly:299.5,perDomain:5.99},{domains:10,monthly:49.95,yearly:499.5,perDomain:4.99}];function f0({onSelectPlan:i,onBack:c}){const[u,d]=w.useState("monthly");return t.jsxs("div",{className:"cn-welcome-step cn-welcome-step--pro-pricing",children:[t.jsx("button",{type:"button",className:"cn-pro-pricing__back cn-pro-pricing__back--top",onClick:c,children:"← Back to protection options"}),t.jsxs("div",{className:"cn-pro-pricing__hero",children:[t.jsx("h1",{className:"cn-pro-pricing__heading",children:s("Cookie Compliance — Professional","cookie-notice")}),t.jsx("p",{className:"cn-pro-pricing__sub",children:"Everything you need to protect your business from privacy regulations worldwide."})]}),t.jsxs("div",{className:"cn-pro-pricing__features-band",children:[t.jsx("span",{className:"cn-pro-pricing__features-label",children:s("Everything in Free, plus:","cookie-notice")}),t.jsxs("ul",{className:"cn-pro-pricing__features-list",children:[t.jsx("li",{children:"🌍 Geolocation rules — show the right banner by country"}),t.jsx("li",{children:"📊 Facebook & Microsoft Consent Modes"}),t.jsx("li",{children:"🛡️ Global Privacy Control"}),t.jsx("li",{children:"♾️ Unlimited visits & consent history beyond 7 days"}),t.jsx("li",{children:"🔒 Advanced autoblocking & script categorization"})]})]}),t.jsxs("div",{className:"cn-pill-toggle",style:{margin:"0 auto 24px"},children:[t.jsx("button",{type:"button",className:`cn-pill-toggle__btn${u==="monthly"?" cn-pill-toggle__btn--active":""}`,onClick:()=>d("monthly"),children:"Monthly"}),t.jsxs("button",{type:"button",className:`cn-pill-toggle__btn${u==="yearly"?" cn-pill-toggle__btn--active":""}`,onClick:()=>d("yearly"),children:[s("Yearly","cookie-notice")," ",t.jsx("span",{className:"cn-pill-toggle__badge",children:s("Save 17%","cookie-notice")})]})]}),t.jsx("div",{className:"cn-pro-pricing__cards",children:p0.map(p=>t.jsxs("div",{className:`cn-pro-pricing__card${p.popular?" cn-pro-pricing__card--popular":""}`,children:[p.popular&&t.jsx("span",{className:"cn-pro-pricing__card-badge",children:s("Recommended","cookie-notice")}),t.jsx("div",{className:"cn-pro-pricing__card-domains",children:p.domains}),t.jsx("span",{className:"cn-pro-pricing__card-domains-label",children:p.domains===1?"Domain":"Domains"}),t.jsxs("div",{className:"cn-pro-pricing__card-price",children:[t.jsx("sup",{children:"$"}),u==="monthly"?p.monthly.toFixed(2):p.yearly.toFixed(2),t.jsxs("sub",{children:["/ ",u==="monthly"?"mo":"yr"]})]}),p.perDomain&&t.jsx("span",{className:"cn-pro-pricing__card-per-domain",children:je(s("%s per domain","cookie-notice"),"$"+p.perDomain.toFixed(2))}),t.jsx("button",{type:"button",className:`cn-pro-pricing__card-btn${p.popular?" cn-pro-pricing__card-btn--primary":""}`,onClick:()=>i(p.domains,u,p[u]),children:s("Select Plan","cookie-notice")})]},p.domains))}),t.jsxs("p",{className:"cn-pro-pricing__guarantee",children:["✓"," ",s("Refund on your first payment within 14 days","cookie-notice")]}),u==="yearly"&&t.jsx("p",{className:"cn-pro-pricing__billing-note",children:s("Billed annually. Cancel anytime.","cookie-notice")}),t.jsxs("div",{className:"cn-pro-pricing__legal",children:[t.jsx("a",{href:"https://hu-manity.co/terms",target:"_blank",rel:"noreferrer",children:s("Terms of Service","cookie-notice")})," · ",t.jsx("a",{href:"https://hu-manity.co/privacy",target:"_blank",rel:"noreferrer",children:s("Privacy Policy","cookie-notice")})]}),t.jsx("div",{className:"cn-pro-pricing__maybe-later",children:t.jsx("button",{type:"button",className:"cn-pro-pricing__maybe-later-btn",onClick:c,children:s("Maybe later — stay on free","cookie-notice")})})]})}const h0=()=>[{text:s("Consent records — no proof if a regulator asks","cookie-notice")},{text:s("Cookie autoblocking — scripts fire before consent","cookie-notice")},{text:s("Audit trail — no evidence if investigated","cookie-notice")},{text:s("Google Consent Mode — EU ads may be flagged","cookie-notice")}];function m0({onDismissToSettings:i,onBackToChoose:c}){const[u,d]=w.useState(!1);return t.jsx("div",{className:"cn-welcome-step cn-welcome-step--warning",children:t.jsxs("div",{className:"cn-warning-modal",children:[t.jsx("div",{className:"cn-warning-modal__icon",children:t.jsx(Bl,{size:32})}),t.jsx("h3",{className:"cn-warning-modal__heading",children:s("Are you sure?","cookie-notice")}),t.jsx("p",{className:"cn-warning-modal__text",children:s("Without Cookie Compliance, all liability falls on you.","cookie-notice")}),t.jsxs("div",{className:"cn-warning-modal__consequences",children:[t.jsx("h5",{children:s("You won’t have:","cookie-notice")}),t.jsx("ul",{children:h0().map((p,h)=>t.jsxs("li",{children:[t.jsx("span",{className:"cn-warning-modal__consequence-icon",children:"❌"}),t.jsx("span",{children:p.text})]},h))})]}),t.jsxs("label",{className:"cn-warning-modal__checkbox",children:[t.jsx("input",{type:"checkbox",checked:u,onChange:p=>d(p.target.checked)}),t.jsx("span",{children:s("I understand all liability falls on me and my business.","cookie-notice")})]}),t.jsxs("div",{className:"cn-warning-modal__actions",children:[t.jsx("button",{type:"button",className:"cn-warning-modal__btn cn-warning-modal__btn--danger",disabled:!u,onClick:i,children:s("Don’t protect my business","cookie-notice")}),t.jsxs("button",{type:"button",className:"cn-warning-modal__btn cn-warning-modal__btn--safe",onClick:c,children:[s("Protect my business","cookie-notice")," →"]})]})]})})}const i1=/^(?=.*[A-Z])(?=.*\d)[\w !"#$%&'()*+,\-./:;<=>?@[\]^\x60{|}~\\]{8,}$/,To="__new__",r1={email:{switchLabel:()=>s("Email me a code","cookie-notice")},totp:{switchLabel:()=>s("Use your authenticator app","cookie-notice")},backup:{switchLabel:()=>s("Use a backup code","cookie-notice")}};function g0({onComplete:i,onCompleteWithSubscriptions:c}){const[u,d]=w.useState("register"),[p,h]=w.useState(""),[m,x]=w.useState(""),[v,g]=w.useState(""),[k,_]=w.useState(!1),[b,A]=w.useState(!1),[C,D]=w.useState(null),[P,E]=w.useState(null),[I,R]=w.useState("email"),[O,te]=w.useState(""),[J,B]=w.useState(null),[X,q]=w.useState(0),[W,ne]=w.useState(null),[le,he]=w.useState(""),M=window.cnReactData||{},me=F=>{d(F),D(null)};w.useEffect(()=>{if(X<=0)return;const F=setTimeout(()=>q(X-1),1e3);return()=>clearTimeout(F)},[X]);const _e=()=>{if(!p)return s("Email is required.","cookie-notice");if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(p))return s("Please enter a valid email address.","cookie-notice");if(u==="register"){if(!m)return s("Password is required.","cookie-notice");if(!i1.test(m))return"Password must be 8+ characters with at least 1 capital letter and 1 number.";if(m!==v)return s("Passwords do not match.","cookie-notice");if(!k)return s("Please accept the Terms of Service to continue.","cookie-notice")}else if(!m)return s("Password is required.","cookie-notice");return null},ke=async F=>{F.preventDefault(),D(null);const H=_e();if(H){D(H);return}A(!0);try{const de=u==="register"?M.registerNonce||"":M.loginNonce||"",De=await gn(u,u==="register"?{email:p,pass:m,pass2:v,terms:"1",language:"en"}:{email:p,pass:m},de);if(De&&De.needs_code){$(De);return}if(De&&De.choose_app){ee(De);return}U(De)}catch(de){D(de.message||s("Something went wrong. Please try again.","cookie-notice"))}finally{A(!1)}},U=F=>{if(F===!0||F===1)i();else if(F&&F.error)D(F.error);else if(F!=null&&F.app_has_subscription)i();else{const H=Array.isArray(F==null?void 0:F.subscriptions)?F.subscriptions.filter(de=>parseInt(de.availablelicense,10)>0).sort((de,Ve)=>parseInt(Ve.availablelicense,10)-parseInt(de.availablelicense,10)):[];H.length>0&&c?c(H,F.fresh_nonce||""):i()}},ee=F=>{x(""),E(null),te(""),B(null),q(0),D(null),he(""),ne({apps:Array.isArray(F.apps)?F.apps:[],siteDomain:F.site_domain||"",currentAppId:F.current_app_id||""})},Q=(F=null)=>{ne(null),he(""),D(F)},S=async F=>{if(F.preventDefault(),D(null),!le){D(s("Choose one of your apps, or create a new app for this site.","cookie-notice"));return}A(!0);try{const H=await gn("login_app",{app_id:le},M.loginAppNonce||"");if(H&&H.choose_app){ee(H);return}ne(null),U(H)}catch(H){Q(H.message||s("Something went wrong. Please try again.","cookie-notice"))}finally{A(!1)}},$=F=>{const H=Array.isArray(F.methods)?F.methods:[];x(""),te(""),B(null),q(0),R(H[0]||"email"),E({email:F.email||p,methods:H,emailSent:!!F.code_sent}),H[0]==="email"&&!F.code_sent&&ue(F.email||p)},ie=(F=null)=>{E(null),te(""),B(null),q(0),D(F)},ue=async F=>{D(null),B(null);try{const H=await gn("login_code_resend");if(H&&H.code_sent)return q(H.retry_after||60),B(je(s("We sent a code to %s.","cookie-notice"),F)),E(de=>de&&{...de,emailSent:!0}),!0}catch(H){H.expired?ie(H.message):D(H.message||s("Something went wrong. Please try again.","cookie-notice"))}return!1},ge=F=>{R(F),te(""),D(null),B(null),F==="email"&&!P.emailSent&&ue(P.email)},xe=async F=>{if(F.preventDefault(),D(null),!O.trim()){D(s("Enter the verification code.","cookie-notice"));return}A(!0);try{const H=await gn("login_code",{method:I,code:O},M.loginCodeNonce||"");if(H&&H.needs_code){$(H);return}if(H&&H.choose_app){ee(H);return}U(H)}catch(H){H.expired?ie(H.message):D(H.message||s("Something went wrong. Please try again.","cookie-notice"))}finally{A(!1)}};if(W){const F=W.apps.map(H=>({id:H.id,name:H.name||H.domain||H.id,domain:H.domain&&H.domain!==H.name?H.domain:"",current:H.id===W.currentAppId}));return t.jsxs("div",{className:"cn-welcome-step cn-welcome-step--account",children:[t.jsx("h2",{className:"cn-account-heading",children:s("Choose an app","cookie-notice")}),t.jsx("p",{className:"cn-account-subtitle",children:je(s("None of your apps is for %s. Choose the app this site should use.","cookie-notice"),W.siteDomain)}),C?t.jsx("div",{className:"cn-auth-form__error",children:C}):null,t.jsxs("form",{className:"cn-auth-form",onSubmit:S,children:[t.jsxs("fieldset",{className:"cn-app-choice",children:[t.jsx("legend",{className:"screen-reader-text",children:s("Apps on your account","cookie-notice")}),F.map(H=>t.jsxs("label",{className:"cn-app-choice__option"+(le===H.id?" cn-app-choice__option--selected":""),children:[t.jsx("input",{type:"radio",name:"cn-app",value:H.id,checked:le===H.id,onChange:()=>he(H.id),disabled:b}),t.jsxs("span",{className:"cn-app-choice__text",children:[t.jsx("span",{className:"cn-app-choice__name",children:H.name}),H.domain?t.jsx("span",{className:"cn-app-choice__domain",children:H.domain}):null,H.current?t.jsx("span",{className:"cn-app-choice__badge",children:s("Connected now","cookie-notice")}):null]})]},H.id)),t.jsxs("label",{className:"cn-app-choice__option"+(le===To?" cn-app-choice__option--selected":""),children:[t.jsx("input",{type:"radio",name:"cn-app",value:To,checked:le===To,onChange:()=>he(To),disabled:b}),t.jsx("span",{className:"cn-app-choice__text",children:t.jsx("span",{className:"cn-app-choice__name",children:s("Create a new app for this site","cookie-notice")})})]})]}),le!==To&&t.jsx("p",{className:"cn-app-choice__note",children:s("This site will use that app's banner settings.","cookie-notice")}),t.jsx("div",{className:"cn-auth-form__actions",children:t.jsx("button",{type:"submit",className:"cn-button cn-button--primary cn-button--block",disabled:b||!le,children:s(b?"Connecting…":"Continue","cookie-notice")})})]}),t.jsx("div",{className:"cn-auth-form__links",children:t.jsx("button",{type:"button",className:"cn-auth-form__switch-link",onClick:()=>Q(),disabled:b,children:s("Back","cookie-notice")})})]})}if(P){const F={email:je(s("Enter the code we emailed to %s.","cookie-notice"),P.email),totp:s("Enter the code from your authenticator app.","cookie-notice"),backup:s("Enter one of your backup codes.","cookie-notice")},H=P.methods.filter(de=>de!==I&&r1[de]);return t.jsxs("div",{className:"cn-welcome-step cn-welcome-step--account",children:[t.jsx("h2",{className:"cn-account-heading",children:s("Enter the code","cookie-notice")}),t.jsx("p",{className:"cn-account-subtitle",children:F[I]}),C?t.jsx("div",{className:"cn-auth-form__error",children:C}):null,J&&!C?t.jsx("div",{className:"cn-auth-form__notice",role:"status",children:J}):null,t.jsxs("form",{className:"cn-auth-form",onSubmit:xe,autoComplete:"off",children:[t.jsx(Ce,{label:s("Verification code","cookie-notice"),type:"text",name:"cn-account-code",value:O,onChange:te,inputMode:I==="backup"?"text":"numeric",autoComplete:"one-time-code",autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,maxLength:32}),t.jsx("div",{className:"cn-auth-form__actions",children:t.jsx("button",{type:"submit",className:"cn-button cn-button--primary cn-button--block",disabled:b,children:s(b?"Signing in…":"Sign in","cookie-notice")})})]}),t.jsxs("div",{className:"cn-auth-form__links",children:[I==="email"&&t.jsx("button",{type:"button",className:"cn-auth-form__switch-link",onClick:()=>ue(P.email),disabled:b||X>0,children:X>0?`${s("Resend code","cookie-notice")} (${X})`:s("Resend code","cookie-notice")}),H.map(de=>t.jsx("button",{type:"button",className:"cn-auth-form__switch-link",onClick:()=>ge(de),disabled:b,children:r1[de].switchLabel()},de)),t.jsx("button",{type:"button",className:"cn-auth-form__switch-link",onClick:()=>ie(),disabled:b,children:s("Back","cookie-notice")})]})]})}return t.jsxs("div",{className:"cn-welcome-step cn-welcome-step--account",children:[t.jsx("h2",{className:"cn-account-heading",children:s(u==="register"?"Create your account":"Welcome back","cookie-notice")}),t.jsx("p",{className:"cn-account-subtitle",children:s(u==="register"?"Takes 30 seconds. No credit card required.":"Sign in to connect your existing Cookie Compliance account.","cookie-notice")}),t.jsxs("div",{className:"cn-pill-toggle",style:{minWidth:280,alignSelf:"center",marginBottom:24},children:[t.jsx("button",{type:"button",className:"cn-pill-toggle__btn"+(u==="register"?" cn-pill-toggle__btn--active":""),onClick:()=>me("register"),children:"Create Account"}),t.jsx("button",{type:"button",className:"cn-pill-toggle__btn"+(u==="login"?" cn-pill-toggle__btn--active":""),onClick:()=>me("login"),children:"Sign In"})]}),C==="email_exists"&&u==="register"?t.jsxs("div",{className:"cn-auth-form__error",children:[s("An account with this email already exists.","cookie-notice")," ",t.jsxs("button",{type:"button",className:"cn-auth-form__switch-link",onClick:()=>{const F=p;me("login"),h(F)},children:[s("Sign in instead","cookie-notice")," →"]})]}):C?t.jsx("div",{className:"cn-auth-form__error",children:C}):null,u==="register"?t.jsxs(t.Fragment,{children:[t.jsxs("form",{className:"cn-auth-form",onSubmit:ke,children:[t.jsx(Ce,{label:s("Email address","cookie-notice"),type:"email",value:p,onChange:h,placeholder:s("you@company.com","cookie-notice"),autoComplete:"email"}),t.jsx(Ce,{label:s("Password","cookie-notice"),type:"password",value:m,onChange:x,placeholder:s("Min. 8 characters, 1 capital, 1 number","cookie-notice"),autoComplete:"new-password"}),m&&!i1.test(m)&&t.jsx("p",{className:"cn-auth-form__field-hint",children:"Min. 8 characters, at least 1 capital letter and 1 number"}),t.jsx(Ce,{label:s("Confirm Password","cookie-notice"),type:"password",value:v,onChange:g,placeholder:s("Confirm password","cookie-notice"),autoComplete:"new-password"}),t.jsxs("label",{className:"cn-auth-form__terms",children:[t.jsx("input",{type:"checkbox",checked:k,onChange:F=>_(F.target.checked),required:!0})," ","I have read and agree to the"," ",t.jsx("a",{href:"https://hu-manity.co/terms",target:"_blank",rel:"noreferrer",children:"Terms of Service"})]}),t.jsx("div",{className:"cn-auth-form__actions",children:t.jsx("button",{type:"submit",className:"cn-button cn-button--primary cn-button--block",disabled:b||!k,children:s(b?"Creating account…":"Create Account","cookie-notice")})})]}),t.jsx("div",{className:"cn-auth-or",children:t.jsx("span",{children:s("OR","cookie-notice")})}),t.jsxs("div",{className:"cn-auth-signin-teaser",children:[t.jsx("p",{className:"cn-auth-signin-teaser__heading",children:s("Already have an account?","cookie-notice")}),t.jsx("button",{type:"button",className:"cn-button cn-button--outline-primary",onClick:()=>me("login"),children:s("Sign In","cookie-notice")})]})]}):t.jsxs("form",{className:"cn-auth-form",onSubmit:ke,autoComplete:"off",children:[t.jsxs("div",{"aria-hidden":"true",style:{position:"absolute",left:"-9999px",width:"1px",height:"1px",overflow:"hidden"},children:[t.jsx("input",{type:"text",name:"username",autoComplete:"username",tabIndex:-1,defaultValue:""}),t.jsx("input",{type:"password",name:"password",autoComplete:"current-password",tabIndex:-1,defaultValue:""})]}),t.jsx(Ce,{label:s("Email address","cookie-notice"),type:"email",name:"cn-account-email",value:p,onChange:h,placeholder:s("you@company.com","cookie-notice"),autoComplete:"username",autoCapitalize:"none",autoCorrect:"off",spellCheck:!1}),t.jsx(Ce,{label:s("Password","cookie-notice"),type:"password",name:"cn-account-password",value:m,onChange:x,placeholder:s("Your password","cookie-notice"),autoComplete:"new-password"}),t.jsx("div",{className:"cn-auth-form__forgot",children:t.jsx("a",{href:`${sn}/forgot`,target:"_blank",rel:"noreferrer",children:s("Forgot password?","cookie-notice")})}),t.jsx(Ns,{}),t.jsx("div",{className:"cn-auth-form__actions",children:t.jsx("button",{type:"submit",className:"cn-button cn-button--primary cn-button--block",disabled:b,children:s(b?"Signing in…":"Sign In","cookie-notice")})})]})]})}async function v0({plan:i,paymentNonce:c,method:u,identifier:d}){const p=window.cnReactData||{},h=new FormData;h.append("action","cn_api_request"),h.append("nonce",p.welcomeNonce||""),h.append("request","payment"),h.append("cn_payment_nonce",p.paymentNonce||""),h.append("plan",i),h.append("payment_nonce",c),h.append("method",u),h.append("cn_payment_identifier",d||""),p.network&&h.append("cn_network","1");const m=await fetch(p.ajaxURL||"/wp-admin/admin-ajax.php",{method:"POST",credentials:"same-origin",body:h});if(!m.ok)throw new Error(`Payment request failed: ${m.status}`);return Kc(await m.json())}const s1="https://js.braintreegateway.com/web/3.71.0/js";function a1(i){return new Promise((c,u)=>{if(document.querySelector(`script[src="${i}"]`)){c();return}const d=document.createElement("script");d.src=i,d.async=!0,d.onload=c,d.onerror=()=>u(new Error(`Failed to load: ${i}`)),document.head.appendChild(d)})}function c1({plan:i,onComplete:c,onBack:u=null,backLabel:d="Back",onSessionExpired:p=null}){const[h,m]=w.useState("loading"),[x,v]=w.useState(null),[g,k]=w.useState(""),[_,b]=w.useState(!1),A=w.useRef(null);w.useEffect(()=>{let E=!1;async function I(){var J,B,X,q;const R=["localhost","127.0.0.1"].includes(window.location.hostname);if(window.location.protocol!=="https:"&&!R){v(s("Secure payment requires HTTPS. Please contact your host.","cookie-notice")),m("error");return}try{await a1(`${s1}/client.min.js`),await a1(`${s1}/hosted-fields.min.js`)}catch{E||(v(s("Payment currently unavailable. Please try again later.","cookie-notice")),m("error"));return}if(typeof((B=(J=window.braintree)==null?void 0:J.client)==null?void 0:B.create)!="function"||typeof((q=(X=window.braintree)==null?void 0:X.hostedFields)==null?void 0:q.create)!="function"){E||(v(s("Payment currently unavailable. Please try again later.","cookie-notice")),m("error"));return}let O;try{const W=await gn("get_bt_init_token");if((W==null?void 0:W.status)==="session_expired"){if(!E&&p){p();return}O=null}else O=W==null?void 0:W.token}catch{O=null}if(!O){E||(v(s("Unable to initialize payment. Please refresh and try again.","cookie-notice")),m("error"));return}let te;try{te=await window.braintree.client.create({authorization:O})}catch{E||(v(s("Unable to initialize payment. Please refresh and try again.","cookie-notice")),m("error"));return}try{const W=await window.braintree.hostedFields.create({client:te,styles:{input:{"font-size":"14px","font-family":"Lato, sans-serif",color:"#434f58"},"input.invalid":{color:"#e74c3c"},"input.valid":{color:"#434f58"}},fields:{number:{container:"#cn_card_number",placeholder:"•••• •••• •••• ••••"},expirationDate:{container:"#cn_expiration_date",placeholder:"MM / YY"},cvv:{container:"#cn_cvv",placeholder:"CVV"}}});if(E){W.teardown();return}A.current=W,W.on("validityChange",()=>{const ne=W.getState(),le=Object.values(ne.fields).every(he=>he.isValid);b(le)}),m("ready")}catch{E||(v(s("Unable to initialize payment. Please refresh and try again.","cookie-notice")),m("error"))}}return I(),()=>{E=!0,A.current&&(A.current.teardown(),A.current=null)}},[]);const C=async E=>{var I;if(E.preventDefault(),!(!A.current||h==="submitting")){m("submitting"),v(null);try{const R=await A.current.tokenize(),O=R.nonce,te=((I=R.details)==null?void 0:I.lastFour)||"",J=await v0({plan:i.planKey,paymentNonce:O,method:"credit_card",identifier:te});if(J&&typeof J=="string"&&J.length>0)c();else{const B=(J==null?void 0:J.error)||(J==null?void 0:J.message)||s("Payment failed. Please try again.","cookie-notice");v(B),m("ready")}}catch(R){v(R.message||s("Card error. Please check your details and try again.","cookie-notice")),m("ready")}}},D=(i==null?void 0:i.billing)==="yearly"?"Yearly":"Monthly",P=i?`${i.domains} Domain${i.domains>1?"s":""} — $${i.price.toFixed(2)} / ${D}`:"";return t.jsxs("div",{className:"cn-welcome-step cn-payment-step",children:[t.jsx("h2",{className:"cn-payment-step__heading",children:s("Complete Your Order","cookie-notice")}),i&&t.jsx("div",{className:"cn-payment-step__plan-pill",children:P}),x&&t.jsx("div",{className:"cn-payment-step__error",role:"alert",children:x}),h==="loading"&&!x&&t.jsx("p",{className:"cn-payment-step__loading",children:s("Initializing secure payment form…","cookie-notice")}),t.jsxs("form",{className:"cn-payment-step__form",onSubmit:C,style:{display:h==="loading"||h==="error"?"none":"block"},children:[t.jsxs("div",{className:"cn-payment-step__field",children:[t.jsx("label",{className:"cn-payment-step__label",htmlFor:"cn_card_name",children:"Cardholder Name"}),t.jsx("input",{id:"cn_card_name",type:"text",className:"cn-payment-step__input",value:g,onChange:E=>k(E.target.value),placeholder:s("Name on card","cookie-notice"),autoComplete:"cc-name"})]}),t.jsxs("div",{className:"cn-payment-step__field",children:[t.jsx("label",{className:"cn-payment-step__label",children:s("Card Number","cookie-notice")}),t.jsx("div",{id:"cn_card_number",className:"cn-payment-step__hosted-field"})]}),t.jsxs("div",{className:"cn-payment-step__row",children:[t.jsxs("div",{className:"cn-payment-step__field",children:[t.jsx("label",{className:"cn-payment-step__label",children:s("Expiry","cookie-notice")}),t.jsx("div",{id:"cn_expiration_date",className:"cn-payment-step__hosted-field"})]}),t.jsxs("div",{className:"cn-payment-step__field",children:[t.jsx("label",{className:"cn-payment-step__label",children:"CVV"}),t.jsx("div",{id:"cn_cvv",className:"cn-payment-step__hosted-field"})]})]}),t.jsx("div",{className:"cn-payment-step__braintree-badge",children:"🔒 Secured by Braintree"}),t.jsx("button",{type:"submit",className:"cn-button cn-button--primary cn-button--block cn-payment-step__submit",disabled:h==="submitting"||!_||!g.trim(),children:s(h==="submitting"?"Processing…":"Complete Purchase","cookie-notice")}),u&&t.jsx("button",{type:"button",className:"cn-button cn-button--outline-primary cn-button--block cn-payment-step__back",onClick:u,children:d}),t.jsx("p",{className:"cn-payment-step__guarantee",children:"🛡️ Refund on your first payment within 14 days"}),t.jsxs("p",{className:"cn-payment-step__legal",children:["By completing your purchase you agree to our",t.jsx("a",{href:"https://hu-manity.co/terms",target:"_blank",rel:"noopener noreferrer",className:"cn-link",children:"Terms of Service"}),"and",t.jsx("a",{href:"https://cookie-compliance.co/privacy-policy/",target:"_blank",rel:"noopener noreferrer",className:"cn-link",children:"Privacy Policy"}),"."]})]}),u&&(h==="loading"||h==="error")&&t.jsx("button",{type:"button",className:"cn-button cn-button--outline-primary cn-button--block cn-payment-step__back cn-payment-step__back--standalone",onClick:u,children:d})]})}function y0({subscriptions:i,selectedPlan:c,nonce:u,onSuccess:d,onPayInstead:p,onFreeInstead:h}){var D;const[m,x]=w.useState(((D=i[0])==null?void 0:D.subscriptionid)??null),[v,g]=w.useState(!1),[k,_]=w.useState(!1),[b,A]=w.useState(null);i.reduce((P,E)=>P+parseInt(E.availablelicense,10),0);const C=async()=>{if(!(!m||v||k)){g(!0),A(null);try{const P=await gn("use_license",{subscriptionID:m},"",u);if(P&&P.error)A(P.error),g(!1);else{_(!0);const E=i.find(R=>R.subscriptionid===m),I=E?Math.max(0,parseInt(E.availablelicense,10)-1):null;d(I)}}catch(P){A(P.message||"Something went wrong. Please try again."),g(!1)}}};return c?t.jsxs("div",{className:"cn-welcome-step cn-license-select",children:[t.jsx("h2",{className:"cn-license-select__heading",children:s("You have unused Pro licenses — do you want to use one for this domain?","cookie-notice")}),t.jsx("p",{className:"cn-license-select__sub",children:s("Your existing plan covers this site. We’ll connect it now — no payment needed.","cookie-notice")}),i.length===1?t.jsxs("div",{className:"cn-license-select__single-card",children:[t.jsx("span",{className:"cn-license-select__card-name",children:s("Compliance Pro","cookie-notice")}),t.jsxs("span",{className:"cn-license-select__card-slots",children:[parseInt(i[0].availablelicense,10)," ","domain",parseInt(i[0].availablelicense,10)!==1?"s":""," remaining"]})]}):t.jsxs(t.Fragment,{children:[t.jsx("p",{className:"cn-license-select__choose-label",children:s("You have multiple plans with available sites. Choose one to connect this site to:","cookie-notice")}),t.jsx("div",{className:"cn-license-select__cards",role:"radiogroup",children:i.map(P=>{const E=parseInt(P.availablelicense,10);return t.jsxs("label",{className:"cn-license-select__card"+(m===P.subscriptionid?" cn-license-select__card--selected":""),children:[t.jsx("input",{type:"radio",name:"cn_subscription",value:P.subscriptionid,checked:m===P.subscriptionid,onChange:()=>x(P.subscriptionid),className:"cn-license-select__radio"}),t.jsxs("div",{className:"cn-license-select__card-body",children:[t.jsx("span",{className:"cn-license-select__card-name",children:s("Compliance Pro","cookie-notice")}),t.jsxs("span",{className:"cn-license-select__card-slots",children:[E," domain",E!==1?"s":""," remaining"]})]})]},P.subscriptionid)})})]}),b&&t.jsx("div",{className:"cn-license-select__error",role:"alert",children:b}),t.jsx("div",{className:"cn-license-select__actions",children:t.jsx("button",{type:"button",className:"cn-button cn-button--primary cn-button--block",onClick:C,disabled:v||k||!m,children:v?"Connecting…":i.length>1?"Connect This Site to Selected Plan":"Connect This Site"})}),p&&t.jsx("button",{type:"button",className:"cn-license-select__free-link",onClick:p,children:s("Need a different plan? Purchase a new subscription instead","cookie-notice")})]}):t.jsxs("div",{className:"cn-welcome-step cn-license-select cn-license-select--upsell",children:[t.jsx("div",{className:"cn-license-select__upsell-icon",children:"✅"}),t.jsx("h2",{className:"cn-license-select__heading",children:s("Good news — your account already has a Pro plan with available slots. Activate it here, free.","cookie-notice")}),t.jsx("p",{className:"cn-license-select__sub",children:s("You have unused Pro license slots available. Connect this site to your existing plan at no extra cost — or continue with the free version.","cookie-notice")}),i.length>1&&t.jsx("div",{className:"cn-license-select__cards",role:"radiogroup",children:i.map(P=>{const E=parseInt(P.availablelicense,10);return t.jsxs("label",{className:"cn-license-select__card"+(m===P.subscriptionid?" cn-license-select__card--selected":""),children:[t.jsx("input",{type:"radio",name:"cn_subscription",value:P.subscriptionid,checked:m===P.subscriptionid,onChange:()=>x(P.subscriptionid),className:"cn-license-select__radio"}),t.jsxs("div",{className:"cn-license-select__card-body",children:[t.jsx("span",{className:"cn-license-select__card-name",children:s("Compliance Pro","cookie-notice")}),t.jsxs("span",{className:"cn-license-select__card-slots",children:[E," domain",E!==1?"s":""," remaining"]})]})]},P.subscriptionid)})}),b&&t.jsx("div",{className:"cn-license-select__error",role:"alert",children:b}),t.jsx("div",{className:"cn-license-select__actions",children:t.jsx("button",{type:"button",className:"cn-button cn-button--primary cn-button--block",onClick:C,disabled:v||k||!m,children:v?"Activating…":"Upgrade to Pro — No Extra Charge"})}),t.jsx("button",{type:"button",className:"cn-license-select__free-link",onClick:h,children:s("Continue with free version instead","cookie-notice")})]})}const _0=()=>[{label:s("Choose Protection","cookie-notice")},{label:s("Confirm","cookie-notice")},{label:s("Create Account","cookie-notice")}];function l1(i){return i==="choose"||i==="pro-pricing"?0:i==="warning"?1:2}const k0=(i,c)=>"compliance_"+c+"_"+(i===1?"notrial":String(i));function x0({isOpen:i,onClose:c,onDismissToSettings:u}){const[d,p]=w.useState("choose"),[h,m]=w.useState(null),[x,v]=w.useState([]),[g,k]=w.useState(""),_=()=>{p("choose"),m(null),v([]),k(""),u?u():c&&c()},b=()=>{h?p("payment"):Bt()},A=(P,E)=>{v(P),k(E),p("license-select")},C=P=>{const E=l1(d);P<E&&P===0&&p("choose")},D=()=>{switch(d){case"choose":return t.jsx(d0,{onBannerOnly:()=>p("warning"),onProtect:()=>p("account"),onComply:()=>p("pro-pricing"),onLearnMore:()=>p("pro-pricing")});case"pro-pricing":return t.jsx(f0,{onSelectPlan:(P,E,I)=>{m({planKey:k0(P,E),domains:P,billing:E,price:I}),p("account")},onBack:()=>{m(null),p("choose")}});case"warning":return t.jsx(m0,{onDismissToSettings:_,onBackToChoose:()=>p("choose")});case"account":return t.jsx(g0,{onComplete:b,onCompleteWithSubscriptions:A});case"license-select":return t.jsx(y0,{subscriptions:x,selectedPlan:h,nonce:g,onSuccess:P=>{Bt({license_assigned:"1",...P!=null?{slots_remaining:P}:{}})},onPayInstead:h?()=>p("payment"):null,onFreeInstead:()=>Bt()});case"payment":return t.jsx(c1,{plan:h,onComplete:()=>Bt(),onBack:()=>p("account"),backLabel:"Back",onSessionExpired:()=>p("account")});default:return null}};return t.jsxs(o1,{isOpen:i&&!Re(),onClose:_,size:"lg",children:[D(),t.jsx(u0,{steps:_0(),currentStep:l1(d),onStepClick:C})]})}const w0=[{icon:t.jsx(zs,{size:24}),title:s("Autoblocking","cookie-notice"),desc:s("Scripts wait for visitor consent before firing.","cookie-notice")},{icon:t.jsx(cp,{size:24}),title:s("Geographic Enforcement","cookie-notice"),desc:s("Apply different rules by visitor location.","cookie-notice")},{icon:t.jsx(Ol,{size:24}),title:s("Consent Proofs","cookie-notice"),desc:s("Exportable audit trail for every consent event.","cookie-notice")},{icon:t.jsx(pp,{size:24}),title:s("Priority Support","cookie-notice"),desc:s("Fast, expert help when you need it.","cookie-notice")},{icon:t.jsx(lp,{size:24}),title:s("Advanced Analytics","cookie-notice"),desc:s("Consent rates, geography, and trend data.","cookie-notice")},{icon:t.jsx(up,{size:24}),title:s("Script Wizard","cookie-notice"),desc:s("Register and manage third-party scripts easily.","cookie-notice")}],j0=[{domains:1,monthly:14.95,yearly:149.5,perDomain:null,popular:!0},{domains:5,monthly:29.95,yearly:299.5,perDomain:5.99,tagline:s("Best for dev + staging + production","cookie-notice")},{domains:10,monthly:49.95,yearly:499.5,perDomain:4.99,tagline:s("For agencies & multi-site networks","cookie-notice")}],u1=(i,c)=>"compliance_"+c+"_"+(i===1?"notrial":String(i)),b0=1,N0=i=>{var d,p;const c=((d=window.cnReactData)==null?void 0:d.app_id)||((p=window.cnReactData)==null?void 0:p.appId)||"",u=new URLSearchParams({"open-modal":"payment",plan:i});return c&&u.set("app-id",c),`${sn}/#/dashboard?${u.toString()}`},d1=()=>{var i;window.location.href=((i=window.cnReactData)==null?void 0:i.welcomeUrl)||"?page=cookie-notice&cn_react_welcome=1"};function S0({isOpen:i,onClose:c}){const[u,d]=w.useState("monthly"),[p,h]=w.useState(null),{isFree:m}=Ze(),x=(p==null?void 0:p.planKey)||u1(b0,u),v=()=>{h(null),c()};return t.jsx(o1,{isOpen:i&&!Re(),onClose:v,size:"lg",children:p?t.jsx("div",{className:"cn-welcome-step",children:t.jsx(c1,{plan:p,onComplete:()=>window.location.reload(),onBack:()=>h(null),backLabel:"Back to plans",onSessionExpired:d1})}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"cn-pricing-hero",children:[t.jsx("h2",{className:"cn-pricing-hero__heading",children:"Cookie Compliance — Professional"}),t.jsx("p",{className:"cn-pricing-hero__sub",children:"Everything you need to stay compliant, protect your visitors, and prove it."})]}),t.jsx("div",{className:"cn-benefit-grid",children:w0.map((g,k)=>t.jsxs("div",{className:"cn-benefit-card",children:[t.jsx("div",{className:"cn-benefit-card__icon",children:g.icon}),t.jsx("div",{className:"cn-benefit-card__title",children:g.title}),t.jsx("div",{className:"cn-benefit-card__desc",children:g.desc})]},k))}),t.jsxs("div",{className:"cn-pill-toggle",style:{margin:"0 auto 20px"},children:[t.jsx("button",{className:`cn-pill-toggle__btn${u==="monthly"?" cn-pill-toggle__btn--active":""}`,type:"button",onClick:()=>d("monthly"),children:"Monthly"}),t.jsxs("button",{className:`cn-pill-toggle__btn${u==="yearly"?" cn-pill-toggle__btn--active":""}`,type:"button",onClick:()=>d("yearly"),children:["Yearly",t.jsx("span",{className:"cn-pill-toggle__badge",children:s("Save 17%","cookie-notice")})]})]}),t.jsx("p",{className:"cn-pricing-door-label",children:"Quick checkout — pay securely right here"}),t.jsx("div",{className:"cn-pricing-cards",children:j0.map(g=>t.jsxs("div",{className:`cn-pricing-card${g.popular?" cn-pricing-card--popular":""}`,children:[g.popular&&t.jsx("div",{className:"cn-pricing-card__popular-badge",children:s("Recommended","cookie-notice")}),t.jsx("div",{className:"cn-pricing-card__domains",children:g.domains}),t.jsx("div",{className:"cn-pricing-card__domains-label",children:g.domains===1?"domain":"domains"}),g.tagline&&t.jsx("div",{className:"cn-pricing-card__tagline",children:g.tagline}),t.jsxs("div",{className:"cn-pricing-card__price",children:[t.jsx("sup",{children:"$"}),u==="monthly"?g.monthly.toFixed(2):(g.yearly/12).toFixed(2),t.jsx("sub",{children:" / mo"})]}),t.jsxs("div",{className:"cn-pricing-card__billed-note",style:u==="monthly"?{visibility:"hidden"}:void 0,children:["$",g.yearly.toFixed(2)," billed annually"]}),t.jsx(Ue,{variant:g.popular?"primary":"outline",size:"md",style:{width:"100%"},onClick:()=>{m?h({planKey:u1(g.domains,u),domains:g.domains,billing:u,price:u==="monthly"?g.monthly:g.yearly}):d1()},children:s(m?"Select Plan":"Get Started","cookie-notice")})]},g.domains))}),t.jsxs("div",{className:"cn-pricing-portal-door",children:[t.jsx("div",{className:"cn-pricing-portal-door__title",children:s("Prefer more options?","cookie-notice")}),t.jsx("p",{className:"cn-pricing-portal-door__desc",children:"Manage your subscription in your Hu‑manity account — multi‑domain plans, invoices & VAT, and more payment methods."}),t.jsx("a",{href:N0(x),target:"_blank",rel:"noopener noreferrer",className:"cn-pricing-portal-door__link",children:"Manage in Admin Portal →"})]}),t.jsx("p",{className:"cn-pricing-footer__dismiss",children:t.jsx("button",{type:"button",className:"cn-link-btn",onClick:v,children:"Maybe later — stay on Free"})})]})})}function C0(){const i=!!(window.cnReactData||{}).devMode,{tier:c}=Ze(),u=new URLSearchParams(window.location.search),d=u.get("cn_tier")||c,p=parseInt(u.get("cn_usage")||"0",10),h=(window.cnReactData||{}).uiMode||"legacy",[m,x]=w.useState(p),[v,g]=w.useState(!1);if(!i)return null;function k(){window.confirm(`⚠️ Reset plugin to fresh-activation state?1060 </svg>`}})})}const O3={gdpr:T3,ccpa:A3,otherus:R3,ukpecr:z3,lgpd:M3,pipeda:F3,popia:I3};function Ll({selected:i,onChange:c,dnsUrl:u,onDnsUrlChange:d}){const h=(window.cnReactData||{}).siteLocale||"",[m,x]=j.useState([]),[v,g]=j.useState(null),[k,_]=j.useState(null),b=i,A=k??b;j.useEffect(()=>{const R=E3(h);x(R),i.length===0&&R.length>0&&c(R),R.length>0&&g(R[0])},[]);const C=R=>{g(R);const O=k??b,oe=O.includes(R)?O.filter(J=>J!==R):[...O,R];_(oe),c&&c(oe)},D=(R,O)=>{R.stopPropagation();const oe=k??b,J=oe.includes(O)?oe.filter(B=>B!==O):[...oe,O];_(J),c&&c(J)},P=()=>{g(null)},E=v?Ps().find(R=>R.key===v):null,I=E&&(E.key==="ccpa"||E.key==="otherus");return t.jsxs("div",{className:be.container,children:[t.jsx("div",{children:t.jsx("div",{className:be.grid,children:Ps().map(R=>{const O=A.includes(R.key),oe=m.includes(R.key),J=O3[R.key];return t.jsxs("div",{className:be.card+(O?" "+be.cardSelected:""),onClick:()=>C(R.key),role:"button",tabIndex:0,onKeyDown:B=>{(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),C(R.key))},children:[oe&&t.jsx("span",{className:be.autoBadge,children:s("Auto-detected","cookie-notice")}),O&&t.jsx("span",{className:be.checkmark,children:"✓"}),t.jsx("input",{type:"checkbox",className:be.hiddenCheckbox,checked:O,onChange:B=>D(B,R.key),onClick:B=>B.stopPropagation(),tabIndex:-1,"aria-label":we(s("Select %s","cookie-notice"),R.name)}),t.jsx("div",{className:be.geoArt,children:J&&t.jsx(J,{})}),t.jsx("div",{className:be.lawName,children:R.name}),t.jsx("div",{className:be.jurisdiction,children:R.jurisdiction})]},R.key)})})}),E?t.jsxs("div",{className:be.detail,children:[t.jsxs("div",{className:be.detailHeader,children:[t.jsxs("div",{children:[t.jsx("div",{className:be.detailTitle,children:E.name}),t.jsx("div",{className:be.detailJurisdiction,children:E.jurisdiction})]}),t.jsx("button",{className:be.detailClose,onClick:P,type:"button","aria-label":s("Close detail panel","cookie-notice"),children:"×"})]}),t.jsxs("div",{className:be.detailSection,children:[t.jsx("div",{className:be.detailSectionLabel,children:s("What it covers","cookie-notice")}),t.jsx("div",{className:be.detailOverview,children:E.overview})]}),t.jsxs("div",{className:be.detailSection,children:[t.jsx("div",{className:be.detailSectionLabel,children:s("Key requirements","cookie-notice")}),t.jsx("ul",{className:be.detailList,children:E.requirements.map((R,O)=>t.jsx("li",{className:be.detailListItem,children:R},O))})]}),t.jsxs("div",{className:be.detailSection,children:[t.jsx("div",{className:be.detailSectionLabel,children:s("What Cookie Compliance does","cookie-notice")}),t.jsx("ul",{className:be.detailList,children:E.product.map((R,O)=>t.jsx("li",{className:be.detailListItem,children:R},O))})]}),t.jsx("div",{className:be.detailEnforcement,children:E.enforcement}),I&&t.jsxs("div",{className:be.detailSection,style:{marginTop:14},children:[t.jsx("div",{className:be.detailSectionLabel,children:s("Do Not Sell URL","cookie-notice")}),t.jsx("p",{className:be.detailDnsHelp,children:"Required if you advertise to California residents. This is a page on your site where visitors can request you stop selling or sharing their personal data."}),t.jsx("input",{id:"cn-dns-url",type:"url",className:be.dnsInput,value:u||"",onChange:R=>d&&d(R.target.value),placeholder:s("https://example.com/do-not-sell","cookie-notice"),"aria-describedby":"cn-dns-url-hint"}),t.jsx("p",{id:"cn-dns-url-hint",className:be.detailDnsHelp,style:{marginTop:6},children:s("Sets the link for your banner's default language. Other languages: Admin Portal → Languages.","cookie-notice")}),t.jsx("a",{href:"https://oag.ca.gov/privacy/ccpa",target:"_blank",rel:"noreferrer",style:{fontSize:12,color:"#0073aa",display:"inline-block",marginTop:4},children:"What is this? →"})]})]},E.key):t.jsxs("div",{className:be.detailEmpty,children:[t.jsx("div",{className:be.detailEmptyArrow,children:"←"}),t.jsx("div",{className:be.detailEmptyText,children:"Select a law to see what it covers and what compliance looks like for your site."})]})]})}const El=()=>[{code:"fr",name:s("French","cookie-notice")},{code:"es",name:s("Spanish","cookie-notice")},{code:"de",name:s("German","cookie-notice")},{code:"it",name:s("Italian","cookie-notice")},{code:"el",name:s("Greek","cookie-notice")},{code:"nl",name:s("Dutch","cookie-notice")},{code:"pt",name:s("Portuguese","cookie-notice")},{code:"pl",name:s("Polish","cookie-notice")},{code:"sv",name:s("Swedish","cookie-notice")}];function U3({onComplete:i,onOpenPricingModal:c,onSelectionChange:u}){const p=(window.cnReactData||{}).siteLocale||"",{isFree:h}=Ze(),[m,x]=j.useState([]),[v,g]=j.useState(!1),[k,_]=j.useState(""),[b,A]=j.useState(!1),[C,D]=j.useState(!1);j.useEffect(()=>{u&&u(m,C)},[m,C]),j.useEffect(()=>{var R;const I=(R=p.split("_")[0])==null?void 0:R.toLowerCase();I&&I!=="en"&&El().some(O=>O.code===I)&&x([I])},[]);const P=I=>{D(!0),x(R=>R.includes(I)?(A(!1),R.filter(O=>O!==I)):h?(R.length>=1&&A(!0),[I]):[...R,I])},E=async()=>{if(!v){g(!0),_("");try{await Jc(m),i&&i(m)}catch(I){_(I.message||"Failed to apply languages.")}finally{g(!1)}}};return t.jsxs("div",{className:"cn-language-picker",children:[h?t.jsxs("div",{style:{background:"#fff8f0",border:"1px solid #fed7aa",color:"#92400e",padding:"10px 14px",borderRadius:"6px",marginBottom:"12px",display:"flex",alignItems:"center",justifyContent:"space-between",fontSize:"14px"},children:[t.jsx("span",{children:s("Free plan: your default language plus 1 additional language","cookie-notice")}),t.jsxs("button",{type:"button",onClick:()=>c&&c(),style:{background:"none",border:"none",color:"#20c19e",fontWeight:600,cursor:"pointer",textDecoration:"underline",padding:0},children:[s("Upgrade to Pro to add more languages","cookie-notice")," →"]})]}):t.jsxs("div",{style:{background:"#f0fdf4",border:"1px solid #a7f3d0",color:"#065f46",padding:"10px 14px",borderRadius:"6px",marginBottom:"12px",fontSize:"14px"},children:[s("Pro plan — no limit on languages","cookie-notice")," ✓"]}),t.jsx("p",{className:"cn-language-picker__hint",children:s("Without a configured language, non-English visitors see browser-automated translations — unreviewed and potentially inaccurate. Selecting a language gives you full control over what they read.","cookie-notice")}),t.jsx("div",{className:"cn-language-picker__grid",children:El().map(I=>{const R=m.includes(I.code),O=h&&!R&&m.length>=1;return t.jsxs("button",{type:"button",className:"cn-language-picker__badge"+(R?" cn-language-picker__badge--active":"")+(O?" cn-language-picker__badge--locked":""),onClick:()=>{O?c&&c():P(I.code)},"aria-label":O?`${I.name} — upgrade to Pro to unlock`:I.name,children:[I.name,O?" 🔒":""]},I.code)})}),b&&h&&t.jsx("div",{style:{color:"#92400e",fontSize:"13px",marginTop:"8px"},children:t.jsxs("button",{type:"button",onClick:()=>c&&c(),style:{background:"none",border:"none",color:"#20c19e",fontWeight:600,cursor:"pointer",textDecoration:"underline",padding:0},children:[s("Upgrade to Pro to add more languages","cookie-notice")," →"]})}),k&&t.jsx("div",{className:"cn-language-picker__error",children:k}),t.jsx("div",{className:"cn-language-picker__actions",children:t.jsx("button",{className:"cn-button cn-button--primary",onClick:E,disabled:v,type:"button",children:v?"Applying…":"Apply Languages"})})]})}function Dl(){var m,x;const{dashboard:i}=Mn(),c=((m=i==null?void 0:i.appConfig)==null?void 0:m.design)||((x=window.cnReactData)==null?void 0:x.bannerDesign)||{},u=typeof c.dontSellUrl=="string"?c.dontSellUrl:"",[d,p]=j.useState(null);return{value:d??u,onChange:p,field:(v=[])=>{const g=(d??"").trim(),k=v.includes("ccpa")||v.includes("otherus");return d!==null&&g!==""&&g!==u&&k?{cn_dont_sell_url:g}:{}}}}const B3=i=>[...i?[{key:"style",label:s("Banner style","cookie-notice")}]:[],{key:"laws",label:s("Laws","cookie-notice")},{key:"languages",label:s("Languages","cookie-notice")}];function $3({initialLaws:i=[],onOpenPricingModal:c}){var ke;const u=window.cnReactData||{},[d,p]=j.useState(null),h=ls((ke=u.options)==null?void 0:ke.app_id),[m,x]=j.useState(!!u.setupWizardComplete||localStorage.getItem(h)==="1"),[v,g]=j.useState(i),k=Dl(),[_,b]=j.useState(!1),[A,C]=j.useState(!1),[D,P]=j.useState(""),[E,I]=j.useState([]),[R,O]=j.useState(""),{dashboard:oe}=Mn(),J=Ti();if(m||Re())return null;const B=B3(J.engine==="new"),X=Math.max(0,B.findIndex(U=>U.key===d)),q=B[X].key,W=U=>p(B[Math.min(Math.max(U,0),B.length-1)].key),te=()=>{W(X+1)},ue=async()=>{if(q==="laws"&&v.length>0){C(!0),P("");try{const U={};v.forEach((ee,Q)=>{U[`cn_laws[${Q}]`]=ee}),await gn("configure",{...U,...k.field(v),cn_revoke_consent:"1"},u.configureNonce||"")}catch(U){P(U!=null&&U.answered&&U.message?U.message:s("Failed to save laws. Please try again.","cookie-notice")),C(!1);return}C(!1)}W(X+1)},ge=()=>{W(X-1)},ne=async()=>{b(!0);try{await ms()}catch{}window.cnReactData&&(window.cnReactData.setupWizardComplete=!0);try{localStorage.setItem(h,"1"),localStorage.setItem("cn_setup_just_finished_"+(u.app_id||"default"),"1")}catch{}window.location.reload()},de=async()=>{var ee;const U=((ee=oe==null?void 0:oe.appConfig)==null?void 0:ee.language)||[];if(E.some(Q=>!U.includes(Q))){b(!0),O("");try{await Jc(E)}catch(Q){O((Q==null?void 0:Q.message)||s("Failed to apply languages. Please try again.","cookie-notice")),b(!1);return}}ne()},F=X===B.length-1;return t.jsxs(t.Fragment,{children:[X===0&&t.jsxs("div",{className:"cn-first-run__connected-notice",children:[t.jsx("span",{className:"cn-first-run__connected-check",children:"✓"}),t.jsxs("div",{children:[t.jsx("strong",{children:s("Your account is connected.","cookie-notice")})," ",s(q==="style"?"Choose your banner style, laws, and languages to finalize your setup.":"Choose your laws and languages to finalize your setup.","cookie-notice"),t.jsxs("span",{className:"cn-first-run__connected-hint",children:[" ",s("When done, you will be guided to select your consent signals.","cookie-notice")]})]})]}),t.jsxs("div",{className:"cn-first-run",children:[t.jsxs("div",{className:"cn-first-run__header",children:[t.jsx("h2",{className:"cn-first-run__title",children:s("Complete Your Setup","cookie-notice")}),t.jsx("button",{className:"cn-first-run__dismiss",onClick:ne,type:"button",children:"×"})]}),t.jsx("div",{className:"cn-first-run__progress",children:B.map((U,ee)=>t.jsxs("div",{className:"cn-first-run__step-indicator"+(ee===X?" cn-first-run__step-indicator--active":"")+(ee<X?" cn-first-run__step-indicator--done":""),children:[t.jsx("span",{className:"cn-first-run__step-num",children:ee+1}),t.jsx("span",{className:"cn-first-run__step-label",children:U.label})]},U.key))}),t.jsxs("div",{className:"cn-first-run__body",children:[q==="style"&&t.jsxs("div",{className:"cn-first-run__step",children:[t.jsx("h3",{children:s("Choose how your banner looks","cookie-notice")}),t.jsx("p",{children:s("You can change this any time, here or in the Admin Portal.","cookie-notice")}),t.jsxs("div",{className:"cn-first-run__style",children:[t.jsx("span",{className:"cn-section-label",id:"cn-first-run-style-label",children:s("Style","cookie-notice")}),t.jsx(Pl,{name:"cn-first-run-style",labelledBy:"cn-first-run-style-label"})]})]}),q==="laws"&&t.jsxs("div",{className:"cn-first-run__step",children:[t.jsx("h3",{children:s("Select Your Laws","cookie-notice")}),t.jsx("p",{children:s("Choose which privacy regulations apply to your site.","cookie-notice")}),t.jsx(Ll,{selected:v,onChange:U=>{g(U),P("")},dnsUrl:k.value,onDnsUrlChange:k.onChange}),D&&t.jsx("p",{style:{color:"var(--cn-red)",fontSize:13,marginTop:8},children:D})]}),q==="languages"&&t.jsxs("div",{className:"cn-first-run__step",children:[t.jsx("h3",{children:s("Add Languages","cookie-notice")}),t.jsx("p",{children:s("Select additional languages for your consent banner.","cookie-notice")}),t.jsx(U3,{onComplete:ne,onOpenPricingModal:c,onSelectionChange:(U,ee)=>{I(ee?U:[]),O("")}}),R&&t.jsx("p",{role:"alert",style:{color:"var(--cn-red)",fontSize:13,marginTop:8},children:R})]})]}),t.jsxs("div",{className:"cn-first-run__nav",children:[X>0&&t.jsx("button",{className:"cn-button cn-button--outline",onClick:ge,type:"button",children:"← Back"}),t.jsxs("div",{className:"cn-first-run__nav-right",children:[!F&&t.jsx("button",{className:"cn-button cn-button--ghost",onClick:te,type:"button",children:"Skip"}),!F&&t.jsx("button",{className:"cn-button cn-button--primary",onClick:ue,disabled:A,type:"button",children:A?"Saving…":"Next →"}),F&&t.jsx("button",{className:"cn-button cn-button--primary",onClick:de,disabled:_,type:"button",children:s(_?"Finishing…":"Apply & Finish","cookie-notice")})]})]})]})]})}function Ls({title:i,onClose:c,children:u,footer:d,scrollTrigger:p,isClosing:h,onExitComplete:m}){const x=j.useRef(null);return j.useEffect(()=>{var v;h||(v=x.current)==null||v.scrollIntoView({behavior:"smooth",block:"start"})},[p,h]),t.jsxs("div",{className:`cn-inline-panel${h?" cn-inline-panel--closing":""}`,ref:x,onTransitionEnd:h?m:void 0,children:[t.jsxs("div",{className:"cn-inline-panel__header",children:[t.jsx("h3",{className:"cn-inline-panel__title",children:i}),t.jsx("button",{className:"cn-inline-panel__dismiss",onClick:c,"aria-label":s("Close","cookie-notice"),children:"×"})]}),t.jsx("div",{className:"cn-inline-panel__body",children:u}),d&&t.jsx("div",{className:"cn-inline-panel__footer",children:d})]})}function W3(){const[i,c]=j.useState(()=>{var p;const d=((p=window.cnReactData)==null?void 0:p.selectedLaws)||[];return Array.isArray(d)?d:Object.values(d)});return[i,d=>{c(d),window.cnReactData&&(window.cnReactData.selectedLaws=d)}]}function Tl({onClose:i,onSave:c,scrollTrigger:u,isClosing:d}){const[p,h]=W3(),m=Dl(),[x,v]=j.useState(!1),[g,k]=j.useState(""),[_,b]=j.useState(!1),A=async()=>{var P;v(!0),k("");try{const E={};p.forEach((I,R)=>{E["cn_laws["+R+"]"]=I}),await gn("configure",{...E,...m.field(p),cn_revoke_consent:"1"},((P=window.cnReactData)==null?void 0:P.configureNonce)||""),h(p),b(!0)}catch(E){k(E.message||"Failed to save laws.")}finally{v(!1)}},C=()=>{c&&c(p),i()};if(_)return t.jsx(Ls,{title:s("Privacy Laws","cookie-notice"),onClose:C,scrollTrigger:u,isClosing:d,children:t.jsxs("div",{className:"cn-wizard-success",children:[t.jsx("div",{className:"cn-wizard-success__icon",children:"✓"}),t.jsx("h3",{className:"cn-wizard-success__heading",children:s("Laws updated","cookie-notice")}),t.jsx("button",{className:"cn-button cn-button--primary",onClick:C,children:s("Done","cookie-notice")})]})});const D=t.jsxs(t.Fragment,{children:[t.jsx("a",{href:`${en}/#/configuration`,target:"_blank",rel:"noreferrer",className:"cn-layer__link-btn",children:"Manage regulations in Admin Portal →"}),t.jsxs("div",{style:{display:"flex",gap:8},children:[t.jsx(Ue,{variant:"secondary",onClick:i,children:s("Cancel","cookie-notice")}),t.jsx(Ue,{variant:"primary",onClick:A,disabled:x,children:x?"Saving…":"Save laws"})]})]});return t.jsxs(Ls,{title:s("Privacy Laws","cookie-notice"),onClose:i,scrollTrigger:u,isClosing:d,footer:D,children:[t.jsx(Ll,{selected:p,onChange:h,dnsUrl:m.value,onDnsUrlChange:m.onChange}),t.jsx("p",{style:{fontSize:13,color:"var(--cn-text-muted, #666)",marginTop:12},children:s("Selecting laws here sets your baseline. To see how the banner behaves for visitors in each region — and to review the full per-region rules — open the Admin Portal.","cookie-notice")}),g&&t.jsx("p",{style:{color:"var(--cn-red)",fontSize:13,marginTop:8},children:g})]})}const Y={layout:"_layout_t4wb2_48",remoteChangedNotice:"_remoteChangedNotice_t4wb2_55",modeList:"_modeList_t4wb2_67",modeSection:"_modeSection_t4wb2_75",modeSectionLabel:"_modeSectionLabel_t4wb2_81",modeCard:"_modeCard_t4wb2_91",modeCardActive:"_modeCardActive_t4wb2_106",modeCardLocked:"_modeCardLocked_t4wb2_112",modeCardProOverlay:"_modeCardProOverlay_t4wb2_118",lockIconLarge:"_lockIconLarge_t4wb2_133",modeCardProLabel:"_modeCardProLabel_t4wb2_137",modeCardTop:"_modeCardTop_t4wb2_143",modeCardName:"_modeCardName_t4wb2_150",modeCardDesc:"_modeCardDesc_t4wb2_156",statusDot:"_statusDot_t4wb2_162",statusDotOn:"_statusDotOn_t4wb2_170",statusDotOff:"_statusDotOff_t4wb2_174",detailCol:"_detailCol_t4wb2_178",detail:"_detail_t4wb2_178",detailHeader:"_detailHeader_t4wb2_191",detailTitle:"_detailTitle_t4wb2_198",detailDesc:"_detailDesc_t4wb2_204",detailFooter:"_detailFooter_t4wb2_211",enableToggle:"_enableToggle_t4wb2_219",enableToggleInput:"_enableToggleInput_t4wb2_227",enableToggleTrack:"_enableToggleTrack_t4wb2_234",enableToggleThumb:"_enableToggleThumb_t4wb2_248",enableToggleLabel:"_enableToggleLabel_t4wb2_263",signalConfig:"_signalConfig_t4wb2_269",signalConfigTitle:"_signalConfigTitle_t4wb2_277",groupRow:"_groupRow_t4wb2_286",groupLabel:"_groupLabel_t4wb2_293",groupSelect:"_groupSelect_t4wb2_299",groupHint:"_groupHint_t4wb2_317",familyTitle:"_familyTitle_t4wb2_324",advancedGrid:"_advancedGrid_t4wb2_334",advancedRow:"_advancedRow_t4wb2_343",advancedLabel:"_advancedLabel_t4wb2_350",subToggles:"_subToggles_t4wb2_355",subToggleTitle:"_subToggleTitle_t4wb2_361",subToggleRow:"_subToggleRow_t4wb2_370",proGate:"_proGate_t4wb2_380",proGateLink:"_proGateLink_t4wb2_394",legacyNotice:"_legacyNotice_t4wb2_414"},St=()=>[{key:"google",name:s("Google Consent Mode v2","cookie-notice"),shortName:"Google",group:"platform",pro:!1,description:s("Required for GDPR compliance if you use Google Analytics, Google Ads, or Tag Manager","cookie-notice")},{key:"facebook",name:s("Facebook","cookie-notice"),shortName:s("Facebook","cookie-notice"),group:"platform",pro:!0,description:s("Required if you run Facebook Ads — stops Meta Pixel from firing before visitors agree","cookie-notice")},{key:"microsoft",name:s("Microsoft","cookie-notice"),shortName:s("Microsoft","cookie-notice"),group:"platform",pro:!0,description:s("Required if you use Microsoft Ads or Clarity — keeps Bing and analytics trackers compliant","cookie-notice")},{key:"gpc",name:s("Global Privacy Control","cookie-notice"),shortName:"GPC",group:"browser",pro:!0,description:s("Honors visitors who’ve told their browser they don’t want to be tracked — required in California","cookie-notice")},{key:"dnt",name:s("Do Not Track","cookie-notice"),shortName:"DNT",group:"browser",pro:!1,description:s("Honors the legacy ‘Do Not Track’ browser setting — good practice, not legally required","cookie-notice")}],G3=()=>[{value:"passive",label:s("Show passive notice","cookie-notice"),help:s("Brief auto-dismiss confirmation that GPC was honored.","cookie-notice")},{value:"hidden",label:s("Silent","cookie-notice"),help:s("No on-screen indication. GPC is honored without notifying the visitor.","cookie-notice")},{value:"banner",label:s("Show full banner","cookie-notice"),help:s("The standard consent banner is still shown, even when GPC fires.","cookie-notice")}],Es=1,V3=()=>({value:Es,label:s("Always — not applied (change this)","cookie-notice")}),Ds=()=>[{value:2,label:s("Content Personalization","cookie-notice")},{value:3,label:s("Site Optimization","cookie-notice")},{value:4,label:s("Ad Personalization","cookie-notice")}];function Ri(i,c){return Number(c)===Es?[V3(),...Ds()]:Ds()}const H3=()=>[{value:1,label:s("Basic Operations","cookie-notice")},...Ds()],K3=()=>({google:[["googleAdStorage",s("Ad Storage","cookie-notice")],["googleAdPersonalization",s("Ad Personalization","cookie-notice")],["googleAdUserData",s("Ad User Data","cookie-notice")],["googleAnalyticsStorage",s("Analytics Storage","cookie-notice")],["googleFunctionalityStorage",s("Functionality Storage","cookie-notice")],["googlePersonalizationStorage",s("Personalization Storage","cookie-notice")]],facebook:[["facebookConsent",s("Meta Pixel consent","cookie-notice")]],microsoft:[["microsoftAdStorage",s("Ad Storage","cookie-notice")],["microsoftAnalyticsStorage",s("Analytics Storage","cookie-notice")]]});function Ts(i,c){return(K3()[c]||[]).filter(([u])=>Number(i[u])===Es).map(([,u])=>u)}function Y3(i,c={}){const u=i.google_consent_default||{},d=i.facebook_consent_default||{},p=i.microsoft_consent_default||{},h=Object.keys(u).length>0,m=Object.keys(d).length>0,x=Object.keys(p).length>0;return{googleEnabled:h,googleAdStorage:u.ad_storage??4,googleAdPersonalization:u.ad_personalization??4,googleAdUserData:u.ad_user_data??4,googleAnalyticsStorage:u.analytics_storage??3,googleFunctionalityStorage:u.functionality_storage??2,googlePersonalizationStorage:u.personalization_storage??2,googleSecurityStorage:u.security_storage??2,facebookEnabled:m,facebookConsent:d.consent??4,microsoftEnabled:x,microsoftAdStorage:p.ad_storage??4,microsoftAnalyticsStorage:p.analytics_storage??3,microsoftPixie:!!p.pixie,microsoftClarity:!!p.clarity,gpcEnabled:!!(i.gpc_support??0),gpcBannerMode:c.gpcBannerMode||"passive",doNotTrack:!!(i.do_not_track??0)}}function Al(i){return{googleConsentMapAdStorage:i.googleEnabled?i.googleAdStorage:"",googleConsentMapAdPersonalization:i.googleEnabled?i.googleAdPersonalization:"",googleConsentMapAdUserData:i.googleEnabled?i.googleAdUserData:"",googleConsentMapAnalytics:i.googleEnabled?i.googleAnalyticsStorage:"",googleConsentMapFunctionality:i.googleEnabled?i.googleFunctionalityStorage:"",googleConsentMapPersonalization:i.googleEnabled?i.googlePersonalizationStorage:"",...i.googleEnabled?{googleConsentMapSecurity:i.googleSecurityStorage}:{},facebookConsentMapConsent:i.facebookEnabled?i.facebookConsent:"",microsoftConsentMapAdStorage:i.microsoftEnabled?i.microsoftAdStorage:"",microsoftConsentMapAnalyticsStorage:i.microsoftEnabled?i.microsoftAnalyticsStorage:"",microsoftConsentModePixie:i.microsoftPixie?1:0,microsoftConsentModeClarity:i.microsoftClarity?1:0,gpcSupport:i.gpcEnabled?1:0,gpcBannerMode:i.gpcEnabled?i.gpcBannerMode||"passive":"",doNotTrack:i.doNotTrack?1:0}}function Rl(i){return{googleConsentMode:i.googleEnabled?"1":"0",facebookConsentMode:i.facebookEnabled?"1":"0",microsoftConsentMode:i.microsoftEnabled?"1":"0"}}function zl(i,c){return c?Object.fromEntries(Object.entries(i).filter(([u,d])=>JSON.stringify(c[u])!==JSON.stringify(d))):i}function q3({value:i,onChange:c,consentChoices:u}){return t.jsxs("div",{className:Y.advancedRow,children:[t.jsx("span",{className:Y.advancedLabel,children:s("Security Storage","cookie-notice")}),t.jsx("select",{className:Y.groupSelect,value:i,onChange:d=>c(Number(d.target.value)),children:H3().map(d=>t.jsx("option",{value:d.value,children:d.label},d.value))})]})}function Ml({enabled:i}){return t.jsx("span",{className:`${Y.statusDot} ${i?Y.statusDotOn:Y.statusDotOff}`})}function As({signals:i}){if(!i||!i.length)return null;const c=i.join(", ");return t.jsxs("div",{className:Y.legacyNotice,role:"alert",children:[t.jsx("strong",{children:we(yo("%s is set to “Always” and is not being applied.","%s are set to “Always” and are not being applied.",i.length,"cookie-notice"),c)}),t.jsx("span",{children:yo("Signals set this way are sent as denied for every visitor, whatever they choose on your banner — so this tool receives no consent. Choose when it should be granted below, then select Apply.","Signals set this way are sent as denied for every visitor, whatever they choose on your banner — so this tool receives no consent. Choose when they should be granted below, then select Apply.",i.length,"cookie-notice")})]})}function Eo({label:i,checked:c,onChange:u}){return t.jsxs("label",{className:Y.enableToggle,children:[t.jsx("input",{type:"checkbox",checked:c,onChange:d=>u(d.target.checked),className:Y.enableToggleInput}),t.jsx("span",{className:Y.enableToggleTrack,children:t.jsx("span",{className:Y.enableToggleThumb})}),t.jsx("span",{className:Y.enableToggleLabel,children:i})]})}function zi({locked:i,platformName:c,onUpgrade:u}){return t.jsxs("div",{className:Y.proGate,children:[t.jsx("span",{children:we(s(i==="pro"?"Upgrade to Pro to enable %s Consent Mode.":"Visit limit reached — %s Consent Mode is paused until your 30-day visit cycle resets. Upgrade for unlimited visits.","cookie-notice"),c)}),!Re()&&t.jsxs("button",{type:"button",className:Y.proGateLink,onClick:u,children:[s("Upgrade","cookie-notice")," →"]})]})}function Mi({onApply:i,hasChanges:c,saving:u,savedFlash:d,locked:p}){return t.jsx("div",{className:Y.detailFooter,children:t.jsx(Ue,{variant:"primary",size:"sm",onClick:i,disabled:!c||u||p,children:s(u?"Applying…":d?"Saved ✓":"Apply","cookie-notice")})})}function Q3({staged:i,set:c,consentChoices:u,proLocked:d,saving:p,hasChanges:h,savedFlash:m,onApply:x,onUpgrade:v}){const g=d,k=[{title:s("Advertising","cookie-notice"),hint:s("ad_storage, ad_personalization, ad_user_data — default: Ad Personalization. Most conservative: granted only when the visitor allows advertising.","cookie-notice"),signals:[[s("Ad Storage","cookie-notice"),"googleAdStorage"],[s("Ad Personalization","cookie-notice"),"googleAdPersonalization"],[s("Ad User Data","cookie-notice"),"googleAdUserData"]]},{title:s("Analytics","cookie-notice"),hint:s("analytics_storage — default: Site Optimization, so it is granted when the visitor allows measurement.","cookie-notice"),signals:[[s("Analytics Storage","cookie-notice"),"googleAnalyticsStorage"]]},{title:s("Functional","cookie-notice"),hint:s("functionality_storage, personalization_storage — default: Content Personalization.","cookie-notice"),signals:[[s("Functionality Storage","cookie-notice"),"googleFunctionalityStorage"],[s("Personalization Storage","cookie-notice"),"googlePersonalizationStorage"]]}];return t.jsxs("div",{className:Y.detail,children:[t.jsxs("div",{className:Y.detailHeader,children:[t.jsx("div",{className:Y.detailTitle,children:s("Google Consent Mode v2","cookie-notice")}),g==="pro"&&t.jsx(Un,{})]}),!g&&t.jsx(As,{signals:Ts(i,"google")}),t.jsx("p",{className:Y.detailDesc,children:s("If you use Google Analytics, Google Ads, or Tag Manager, this tells Google how to handle your visitors’ data based on whether they consented. Required for GDPR compliance with Google tools.","cookie-notice")}),g?t.jsx(zi,{locked:g,platformName:s("Google","cookie-notice"),onUpgrade:v}):t.jsxs(t.Fragment,{children:[t.jsx(Eo,{label:i.googleEnabled?s("Enabled","cookie-notice"):s("Disabled","cookie-notice"),checked:i.googleEnabled,onChange:_=>c("googleEnabled",_)}),i.googleEnabled&&t.jsxs("div",{className:Y.signalConfig,children:[t.jsx("div",{className:Y.signalConfigTitle,children:s("Signal mapping","cookie-notice")}),k.map(_=>t.jsxs("div",{children:[t.jsx("div",{className:Y.familyTitle,children:_.title}),t.jsx("p",{className:Y.groupHint,children:_.hint}),t.jsx("div",{className:Y.advancedGrid,children:_.signals.map(([b,A])=>t.jsxs("div",{className:Y.advancedRow,children:[t.jsx("span",{className:Y.advancedLabel,children:b}),t.jsx("select",{className:Y.groupSelect,value:i[A],onChange:C=>c(A,Number(C.target.value)),children:Ri(u,i[A]).map(C=>t.jsx("option",{value:C.value,children:C.label},C.value))})]},A))})]},_.title)),t.jsx("div",{className:Y.familyTitle,children:s("Security","cookie-notice")}),t.jsx("p",{className:Y.groupHint,children:s("security_storage — default: Content Personalization. Choose Basic Operations only if this storage really is strictly necessary on your site (for example authentication or fraud prevention): it is then granted for every visitor without consent, including visitors who refuse or send Global Privacy Control.","cookie-notice")}),t.jsx("div",{className:Y.advancedGrid,children:t.jsx(q3,{value:i.googleSecurityStorage,onChange:_=>c("googleSecurityStorage",_),consentChoices:u})})]})]}),t.jsx(Mi,{onApply:x,hasChanges:h,saving:p,savedFlash:m,locked:g})]})}function Z3({staged:i,set:c,consentChoices:u,proLocked:d,saving:p,hasChanges:h,savedFlash:m,onApply:x,onUpgrade:v}){return t.jsxs("div",{className:Y.detail,children:[t.jsxs("div",{className:Y.detailHeader,children:[t.jsx("div",{className:Y.detailTitle,children:s("Facebook","cookie-notice")}),d==="pro"&&t.jsx(Un,{})]}),!d&&t.jsx(As,{signals:Ts(i,"facebook")}),t.jsx("p",{className:Y.detailDesc,children:s("Stops the Meta Pixel from tracking your visitors until they agree. Without this, Facebook can receive data about visitors who never consented — a GDPR violation if you serve EU visitors.","cookie-notice")}),d?t.jsx(zi,{locked:d,platformName:s("Facebook","cookie-notice"),onUpgrade:v}):t.jsxs(t.Fragment,{children:[t.jsx(Eo,{label:i.facebookEnabled?s("Enabled","cookie-notice"):s("Disabled","cookie-notice"),checked:i.facebookEnabled,onChange:g=>c("facebookEnabled",g)}),i.facebookEnabled&&t.jsxs("div",{className:Y.signalConfig,children:[t.jsx("div",{className:Y.signalConfigTitle,children:s("Signal mapping","cookie-notice")}),t.jsxs("div",{className:Y.groupRow,children:[t.jsx("span",{className:Y.groupLabel,children:s("Grant Pixel at","cookie-notice")}),t.jsx("select",{className:Y.groupSelect,value:i.facebookConsent,onChange:g=>c("facebookConsent",Number(g.target.value)),children:Ri(u,i.facebookConsent).map(g=>t.jsx("option",{value:g.value,children:g.label},g.value))})]}),t.jsx("p",{className:Y.groupHint,children:s("Default: Ad Personalization.","cookie-notice")})]})]}),t.jsx(Mi,{onApply:x,hasChanges:h,saving:p,savedFlash:m,locked:d})]})}function X3({staged:i,set:c,consentChoices:u,proLocked:d,saving:p,hasChanges:h,savedFlash:m,onApply:x,onUpgrade:v}){return t.jsxs("div",{className:Y.detail,children:[t.jsxs("div",{className:Y.detailHeader,children:[t.jsx("div",{className:Y.detailTitle,children:s("Microsoft","cookie-notice")}),d==="pro"&&t.jsx(Un,{})]}),!d&&t.jsx(As,{signals:Ts(i,"microsoft")}),t.jsx("p",{className:Y.detailDesc,children:s("Keeps Microsoft Advertising (Bing) and Clarity analytics compliant with consent rules. Trackers only fire after visitors agree.","cookie-notice")}),d?t.jsx(zi,{locked:d,platformName:s("Microsoft","cookie-notice"),onUpgrade:v}):t.jsxs(t.Fragment,{children:[t.jsx(Eo,{label:i.microsoftEnabled?s("Enabled","cookie-notice"):s("Disabled","cookie-notice"),checked:i.microsoftEnabled,onChange:g=>c("microsoftEnabled",g)}),i.microsoftEnabled&&t.jsxs("div",{className:Y.signalConfig,children:[t.jsx("div",{className:Y.signalConfigTitle,children:s("Signal mapping","cookie-notice")}),t.jsxs("div",{className:Y.groupRow,children:[t.jsx("span",{className:Y.groupLabel,children:s("Advertising (UET)","cookie-notice")}),t.jsx("select",{className:Y.groupSelect,value:i.microsoftAdStorage,onChange:g=>c("microsoftAdStorage",Number(g.target.value)),children:Ri(u,i.microsoftAdStorage).map(g=>t.jsx("option",{value:g.value,children:g.label},g.value))})]}),t.jsxs("div",{className:Y.groupRow,style:{marginTop:8},children:[t.jsx("span",{className:Y.groupLabel,children:s("Analytics","cookie-notice")}),t.jsx("select",{className:Y.groupSelect,value:i.microsoftAnalyticsStorage,onChange:g=>c("microsoftAnalyticsStorage",Number(g.target.value)),children:Ri(u,i.microsoftAnalyticsStorage).map(g=>t.jsx("option",{value:g.value,children:g.label},g.value))})]}),t.jsxs("div",{className:Y.subToggles,children:[t.jsx("div",{className:Y.subToggleTitle,children:s("Sub-products","cookie-notice")}),t.jsxs("label",{className:Y.subToggleRow,children:[t.jsx("input",{type:"checkbox",checked:i.microsoftPixie,onChange:g=>c("microsoftPixie",g.target.checked)}),t.jsx("span",{children:s("Pixie","cookie-notice")})]}),t.jsxs("label",{className:Y.subToggleRow,children:[t.jsx("input",{type:"checkbox",checked:i.microsoftClarity,onChange:g=>c("microsoftClarity",g.target.checked)}),t.jsx("span",{children:s("Clarity","cookie-notice")})]})]})]})]}),t.jsx(Mi,{onApply:x,hasChanges:h,saving:p,savedFlash:m,locked:d})]})}function J3({staged:i,set:c,saving:u,hasChanges:d,savedFlash:p,onApply:h,proLocked:m,onUpgrade:x,grandfathered:v}){const g=i.gpcBannerMode||"passive";return t.jsxs("div",{className:Y.detail,children:[t.jsxs("div",{className:Y.detailHeader,children:[t.jsx("div",{className:Y.detailTitle,children:s("Global Privacy Control (GPC)","cookie-notice")}),m==="pro"&&t.jsx(Un,{})]}),m?t.jsxs(t.Fragment,{children:[t.jsx("p",{className:Y.detailDesc,children:"Honors visitors who’ve told their browser they don’t want to be tracked. Required for CCPA / CPRA compliance."}),t.jsx(zi,{locked:m,platformName:"Global Privacy Control",onUpgrade:x}),t.jsx(Mi,{onApply:h,hasChanges:d,saving:u,savedFlash:p,locked:m})]}):t.jsxs(t.Fragment,{children:[t.jsx(Eo,{label:i.gpcEnabled?s("Enabled","cookie-notice"):s("Disabled","cookie-notice"),checked:i.gpcEnabled,onChange:k=>c("gpcEnabled",k)}),v&&t.jsx("p",{className:Y.detailDesc,style:{marginTop:8,fontStyle:"italic"},children:s("GPC is now a Pro feature. Your site keeps it because it was already enabled. If you turn it off, you’ll need Pro to re-enable it.","cookie-notice")}),i.gpcEnabled&&t.jsxs("fieldset",{style:{marginTop:16,padding:0,border:0},children:[t.jsx("legend",{className:Y.detailDesc,style:{padding:0,marginBottom:8,fontWeight:600},children:s("When GPC fires, what should visitors see?","cookie-notice")}),G3().map(k=>t.jsxs("label",{style:{display:"flex",alignItems:"flex-start",gap:8,padding:"6px 0",cursor:"pointer"},children:[t.jsx("input",{type:"radio",name:"gpcBannerMode",value:k.value,checked:g===k.value,onChange:()=>c("gpcBannerMode",k.value),style:{marginTop:3}}),t.jsxs("span",{children:[t.jsx("span",{style:{fontWeight:500},children:k.label}),t.jsx("span",{className:Y.detailDesc,style:{display:"block",marginTop:2},children:k.help})]})]},k.value))]}),t.jsx("p",{className:Y.detailDesc,style:{marginTop:16},children:s("Some visitors set their browser to automatically opt out of tracking. This setting respects that choice — and it’s legally required in California (CPRA). When a visitor sends this signal, tracking is blocked automatically.","cookie-notice")}),t.jsx("div",{className:Y.detailFooter,children:t.jsx(Ue,{variant:"primary",size:"sm",onClick:h,disabled:!d||u,children:s(u?"Applying…":p?"Saved ✓":"Apply","cookie-notice")})})]})]})}function ep({staged:i,set:c,saving:u,hasChanges:d,savedFlash:p,onApply:h}){return t.jsxs("div",{className:Y.detail,children:[t.jsx("div",{className:Y.detailHeader,children:t.jsx("div",{className:Y.detailTitle,children:s("Do Not Track (DNT)","cookie-notice")})}),t.jsx("p",{className:Y.detailDesc,style:{color:"#b56e00",marginBottom:12},children:s("Do Not Track is an older browser setting that most sites ignore. Enabling this is a good-faith gesture but isn’t required by any law. When a visitor has DNT enabled, tracking is blocked automatically.","cookie-notice")}),t.jsx(Eo,{label:i.doNotTrack?s("Enabled","cookie-notice"):s("Disabled","cookie-notice"),checked:i.doNotTrack,onChange:m=>c("doNotTrack",m)}),t.jsx("p",{className:Y.detailDesc,style:{marginTop:12},children:s("When enabled, visitors with DNT set receive Private (level 1) consent automatically.","cookie-notice")}),t.jsx("div",{className:Y.detailFooter,children:t.jsx(Ue,{variant:"primary",size:"sm",onClick:h,disabled:!d||u,children:s(u?"Applying…":p?"Saved ✓":"Apply","cookie-notice")})})]})}function Fl({isOpen:i,onClose:c,isWizard:u=!1,addNotice:d,onOpenPricingModal:p,onApplied:h,scrollTrigger:m}){var xe;const{config:x,refetchConfig:v}=jt(),{dashboard:g}=Mn(),{tier:k}=Ze(),_=(x==null?void 0:x.blocking)||{},b=(x==null?void 0:x.config)||{},A=((xe=g==null?void 0:g.appConfig)==null?void 0:xe.consentChoices)??3,[C,D]=j.useState({}),[P,E]=j.useState("google"),[I,R]=j.useState(!1),[O,oe]=j.useState(null),[J,B]=j.useState(!1),X=j.useRef(null),q={flags:Rl(C),config:Al(C)},W=!!O&&JSON.stringify(q)!==JSON.stringify(O),te=j.useRef(!1),ue=j.useRef(!1),[ge,ne]=j.useState(!1);if(j.useEffect(()=>{if(!(u?x:i)){te.current=!1,ne(!1);return}if(te.current&&ue.current){ne(!0);return}const M=Y3(_,b);D(M),oe({flags:Rl(M),config:Al(M)}),E("google"),te.current=!0,ne(!1)},[u?x:i,x]),j.useEffect(()=>{ue.current=W}),!u&&!i)return null;const de=(M,H)=>D(fe=>({...fe,[M]:H})),F=async()=>{R(!0),B(!1);try{await gs(zl(q.flags,O==null?void 0:O.flags),{},zl(q.config,O==null?void 0:O.config)),oe(q),h&&h({google:C.googleEnabled,facebook:C.facebookEnabled,microsoft:C.microsoftEnabled,gpc:C.gpcEnabled,dnt:C.doNotTrack}),B(!0),clearTimeout(X.current),X.current=setTimeout(()=>B(!1),2e3),v()}catch(M){d&&d((M==null?void 0:M.message)||s("Could not save — please try again.","cookie-notice"))}finally{R(!1)}},ke=kl(),U=k==="pro",ee=!!b.gpcSupportMode,Q=M=>M.key==="gpc"&&M.pro&&!U&&!ee||M.pro&&!U&&M.key!=="gpc"?"pro":M.key==="google"&&ke?"threshold":!1,S={google:C.googleEnabled,facebook:C.facebookEnabled,microsoft:C.microsoftEnabled,gpc:C.gpcEnabled,dnt:C.doNotTrack},$=t.jsxs(t.Fragment,{children:[ge&&t.jsx("div",{className:Y.remoteChangedNotice,role:"status",children:s("These settings were updated elsewhere while this panel was open — in the Admin Portal, or by another user. Your unsaved edits have been kept. Reload the page to see the newer values.","cookie-notice")}),t.jsxs("div",{className:Y.layout,children:[t.jsxs("div",{className:Y.modeList,children:[t.jsxs("div",{className:Y.modeSection,children:[t.jsx("div",{className:Y.modeSectionLabel,children:s("Ad Platforms","cookie-notice")}),St().filter(M=>M.group==="platform").map(M=>{const H=Q(M);return t.jsxs("button",{className:Y.modeCard+(P===M.key?" "+Y.modeCardActive:"")+(H?" "+Y.modeCardLocked:""),onClick:()=>E(M.key),type:"button",children:[t.jsxs("div",{className:Y.modeCardTop,children:[t.jsx("span",{className:Y.modeCardName,children:M.name}),H==="pro"?t.jsx(Un,{}):t.jsx(Ml,{enabled:S[M.key]})]}),t.jsx("div",{className:Y.modeCardDesc,children:M.description}),H&&!Re()&&t.jsxs("div",{className:Y.modeCardProOverlay,role:"button",tabIndex:0,onClick:fe=>{fe.stopPropagation(),p&&p()},onKeyDown:fe=>{(fe.key==="Enter"||fe.key===" ")&&(fe.stopPropagation(),p&&p())},"aria-label":H==="pro"?`${M.name} requires Pro.`:`${M.name} paused — visit limit reached. Upgrade for unlimited visits.`,children:[t.jsx("span",{className:Y.lockIconLarge,children:"🔒"}),t.jsx("span",{className:Y.modeCardProLabel,children:H==="pro"?"Upgrade to Pro →":"Visit limit reached →"})]})]},M.key)})]}),t.jsxs("div",{className:Y.modeSection,children:[t.jsx("div",{className:Y.modeSectionLabel,children:s("Browser Signals","cookie-notice")}),St().filter(M=>M.group==="browser").map(M=>t.jsxs("button",{className:Y.modeCard+(P===M.key?" "+Y.modeCardActive:""),onClick:()=>E(M.key),type:"button",children:[t.jsxs("div",{className:Y.modeCardTop,children:[t.jsx("span",{className:Y.modeCardName,children:M.name}),t.jsx(Ml,{enabled:S[M.key]})]}),t.jsx("div",{className:Y.modeCardDesc,children:M.description})]},M.key))]})]}),t.jsxs("div",{className:Y.detailCol,children:[P==="google"&&t.jsx(Q3,{staged:C,set:de,consentChoices:A,proLocked:Q(St().find(M=>M.key==="google")),saving:I,hasChanges:W,savedFlash:J,onApply:F,onUpgrade:()=>p&&p()}),P==="facebook"&&t.jsx(Z3,{staged:C,set:de,consentChoices:A,proLocked:Q(St().find(M=>M.key==="facebook")),saving:I,hasChanges:W,savedFlash:J,onApply:F,onUpgrade:()=>p&&p()}),P==="microsoft"&&t.jsx(X3,{staged:C,set:de,consentChoices:A,proLocked:Q(St().find(M=>M.key==="microsoft")),saving:I,hasChanges:W,savedFlash:J,onApply:F,onUpgrade:()=>p&&p()}),P==="gpc"&&t.jsx(J3,{staged:C,set:de,proLocked:Q(St().find(M=>M.key==="gpc")),grandfathered:ee,saving:I,hasChanges:W,savedFlash:J,onApply:F,onUpgrade:()=>p&&p()}),P==="dnt"&&t.jsx(ep,{staged:C,set:de,saving:I,hasChanges:W,savedFlash:J,onApply:F})]})]})]}),re=St().filter(M=>S[M.key]).map(M=>M.shortName),pe=re.length>0?we(s("%1$d enabled: %2$s","cookie-notice"),re.length,re.join(", ")):s("No consent signals enabled","cookie-notice"),ve=t.jsxs(t.Fragment,{children:[t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[t.jsx("a",{href:`${en}/#/configuration`,target:"_blank",rel:"noreferrer",className:"cn-layer__link-btn",children:"Advanced settings in Admin Portal →"}),t.jsxs("span",{style:{fontSize:"var(--cn-text-sm)",color:re.length>0?"var(--cn-ok-icon)":"var(--cn-off-val)"},children:[re.length>0?"✓ ":"",pe]})]}),t.jsx(Ue,{variant:"primary",onClick:c,children:s("Done","cookie-notice")})]});return u?$:t.jsx(Ls,{title:s("Consent Signals","cookie-notice"),onClose:c,scrollTrigger:m,footer:ve,children:$})}let Gt;function np(i){if(Gt===void 0)try{Gt=localStorage.getItem(i)==="1",Gt&&localStorage.removeItem(i)}catch{Gt=!1}return Gt}function tp({addNotice:i,onOpenWelcomeModal:c,onOpenPricingModal:u,onTabChange:d}){var ve,xe,M,H,fe,Ve;const{tier:p,isPro:h}=Ze(),{dashboard:m,scorecardStatus:x}=Mn(),{showLawWizard:v,lawScrollTrigger:g,lawClosing:k,closeLawWizard:_,openLawWizard:b,showConsentPanel:A,consentScrollTrigger:C,consentClosing:D,closeConsentPanel:P,openConsentPanel:E}=ki(),[I,R]=j.useState(((xe=(ve=window.cnReactData)==null?void 0:ve.options)==null?void 0:xe.app_id)||""),[O,oe]=j.useState(((H=(M=window.cnReactData)==null?void 0:M.options)==null?void 0:H.app_key)||""),[J,B]=j.useState(!1),[X,q]=j.useState(""),W=async()=>{B(!0),q("");try{await ml({app_id:I,app_key:O});try{const De=await gn("sync_config");if(De!=null&&De.success){try{await ms()}catch{}try{localStorage.setItem(ls(I),"1"),localStorage.setItem(us(I),"1")}catch{}}}catch{}I?Bt():window.location.reload()}catch(De){q(De.message||s("Save failed","cookie-notice")),B(!1)}},te=(m==null?void 0:m.appConfig)||{},ue=bs(),ge=Lo(),ne=Ai(),de=j2((fe=window.cnReactData)==null?void 0:fe.app_id),[F,ke]=j.useState(()=>p!=="banner_only"&&np(de));if(ne)return t.jsxs(In,{sidebar:t.jsx(Wt,{addNotice:i}),children:[t.jsx("div",{className:"cn-protection-header",children:t.jsx("h1",{className:"cn-protection-header__title",children:s("Overview","cookie-notice")})}),t.jsx(ss,{})]});if(p==="banner_only"){const De=Re();return t.jsxs(In,{sidebar:t.jsxs(t.Fragment,{children:[t.jsxs(On,{title:s("Domain Info","cookie-notice"),children:[t.jsxs("div",{className:"cn-dom-rows",children:[t.jsxs("div",{className:"cn-dom-row",children:[t.jsx("span",{className:"cn-dom-row__k",children:s("Domain","cookie-notice")}),t.jsx("span",{className:"cn-dom-row__v",children:window.location.hostname})]}),t.jsxs("div",{className:"cn-dom-row",children:[t.jsx("span",{className:"cn-dom-row__k",children:s("Status","cookie-notice")}),t.jsxs("span",{className:"cn-dom-row__v",children:[t.jsx("span",{className:"cn-dot cn-dot--gray"})," ",s(De?"Managed by network":"Not connected","cookie-notice")]})]})]}),!De&&t.jsxs(t.Fragment,{children:[t.jsx(Ce,{label:s("App ID","cookie-notice"),value:I,onChange:R,placeholder:s("Your application ID","cookie-notice"),autoComplete:"off"}),t.jsx(Ce,{label:s("App Secret Key","cookie-notice"),type:"password",value:O,onChange:oe,placeholder:s("Your App Secret Key","cookie-notice"),autoComplete:"new-password"}),t.jsx(Ns,{}),t.jsxs("p",{className:"cn-conn-hint cn-conn-hint--returning",children:[s("Already have an account?","cookie-notice")," ",t.jsx("a",{href:en,target:"_blank",rel:"noopener noreferrer",children:s("Find your App ID and App Secret Key at app.hu-manity.co","cookie-notice")})]}),X&&t.jsx("div",{className:"cn-conn-error",children:X}),t.jsx(Ue,{variant:"primary",onClick:W,disabled:J,children:s(J?"Saving…":"Connect Your Site","cookie-notice")})]})]}),!De&&t.jsxs(On,{title:s("What you get with compliance","cookie-notice"),children:[t.jsxs("ul",{className:"cn-benefit-list",children:[t.jsxs("li",{className:"cn-benefit-item",children:[t.jsx("span",{className:"cn-benefit-icon",children:"✓"}),t.jsx("span",{children:s("Stop tracking scripts from firing before visitors agree","cookie-notice")})]}),t.jsxs("li",{className:"cn-benefit-item",children:[t.jsx("span",{className:"cn-benefit-icon",children:"✓"}),t.jsx("span",{children:s("Build a legal evidence trail regulators can verify","cookie-notice")})]}),t.jsxs("li",{className:"cn-benefit-item",children:[t.jsx("span",{className:"cn-benefit-icon",children:"✓"}),t.jsx("span",{children:s("Cover GDPR, CCPA, and 40+ global regulations automatically","cookie-notice")})]}),t.jsxs("li",{className:"cn-benefit-item",children:[t.jsx("span",{className:"cn-benefit-icon",children:"✓"}),t.jsx("span",{children:s("Real compliance in under 60 seconds — free to start","cookie-notice")})]})]}),t.jsxs("div",{className:"cn-connect-cta",children:[t.jsxs("button",{type:"button",className:"cn-button cn-button--primary cn-button--block",onClick:()=>c&&c(),children:[s("Connect Your Site","cookie-notice")," →"]}),t.jsx("div",{className:"cn-connect-cta__caption",children:s("No credit card required","cookie-notice")})]})]})]}),children:[De?t.jsx(rs,{}):t.jsx(v3,{onActivate:()=>c&&c()}),t.jsx(Ss,{requiredTier:"free",message:s("Script blocking, consent records, regulatory alerts & more","cookie-notice"),onCta:c,children:t.jsx("div",{className:"cn-pro-gate-placeholder",children:t.jsx("div",{className:"cn-placeholder-charts"})})})]})}const U=Re(),ee=U?null:(m==null?void 0:m.scorecard)||null,Q=((Ve=window.cnReactData)==null?void 0:Ve.siteUrl)||"",S=Q?`${Q}?cn_preview=1`:"",$=wl(te.regulations),re=!!m&&((ee==null?void 0:ee.state)==="no_laws"||$.length===0),pe=De=>{d&&(d("settings"),setTimeout(()=>{const Ao=document.getElementById(De);Ao&&Ao.scrollIntoView({behavior:"smooth",block:"start"})},80))};return t.jsxs(In,{sidebar:t.jsx(Wt,{addNotice:i}),children:[t.jsx("div",{className:"cn-protection-header",children:t.jsx("h1",{className:"cn-protection-header__title",children:s("Overview","cookie-notice")})}),t.jsxs(as,{managed:U,children:[F&&ge==="live"&&t.jsxs("div",{className:"cn-inline-notice cn-inline-notice--success",children:[t.jsxs("div",{className:"cn-inline-notice__message",children:[t.jsxs("strong",{children:["✓"," ",s("Your banner is live.","cookie-notice")]})," ",s("Visitors now see your banner, and your chosen laws and languages are active.","cookie-notice")]}),t.jsxs("div",{className:"cn-inline-notice__actions",children:[S&&t.jsxs("a",{className:"cn-layer__link-btn",href:S,target:"_blank",rel:"noreferrer",children:[s("Preview your live banner","cookie-notice")," →"]}),t.jsx("button",{type:"button",className:"cn-layer__link-btn",onClick:()=>{Gt=!1,ke(!1)},children:s("Dismiss","cookie-notice")})]})]}),t.jsx($3,{initialLaws:$,onOpenPricingModal:u}),!U&&t.jsx(S3,{scorecard:ee,status:x,blockingState:ue,widgetState:ge,isPro:h,siteUrl:Q,actions:{banner:()=>pe("cn-banner-panel-title"),autoblocking:()=>pe("cn-compliance-behavior"),signals:()=>E(),pricing:u}}),!U&&t.jsx(C3,{dashboard:m,isFree:p==="free",onOpenConsentLogs:d?()=>d("audit-trail"):null}),t.jsx(P3,{noLaws:re,isPro:h,managed:U,onOpenLaws:()=>b(),onOpenSignals:()=>E(),onOpenPricing:u,onOpenPrivacy:d?()=>d("privacy-consent"):null}),A&&t.jsx(Fl,{isOpen:!0,onClose:P,addNotice:i,onOpenPricingModal:u,onApplied:()=>{},scrollTrigger:C,isClosing:D}),v&&t.jsx(Tl,{onClose:_,scrollTrigger:g,isClosing:k})]})]})}function Il(){var E,I;const{tier:i}=Ze(),{dashboard:c}=Mn(),[u,d]=j.useState(()=>new Set),p=j.useCallback(R=>{d(O=>new Set([...O,R]))},[]),h=((E=window.cnReactData)==null?void 0:E.notificationRules)||[],m=c===null,x=(I=c==null?void 0:c.analytics)==null?void 0:I.cycleUsage,v=(x==null?void 0:x.visits)||0,g=(x==null?void 0:x.threshold)||0,k=g>0?v/g*100:0,_=g>0?g:i==="free"?1e3:0,b=kl(),A=i==="free"&&g>0&&v>=g*.7&&v<g,C=j.useMemo(()=>{var O,oe,J;if(m)return{};const R={};for(const B of h){if((O=B.condition)!=null&&O.tier&&B.condition.tier!==i)continue;if((oe=B.condition)!=null&&oe.usagePercent){const[q,W]=B.condition.usagePercent;if(q!==null&&k<q||W!==null&&k>=W)continue}if(((J=B.condition)==null?void 0:J.thresholdExceeded)!==void 0&&B.condition.thresholdExceeded!==b||u.has(B.id))continue;const X=R[B.slot];(!X||B.priority>X.priority)&&(R[B.slot]=B)}return R},[m,h,i,k,b,u]);function D(R){return R&&R.replace(/\{sessionTotal\}/g,_.toLocaleString()).replace(/\{sessionUsed\}/g,v.toLocaleString()).replace(/\{usagePercent\}/g,String(Math.round(k)))}function P(R){return R?{...R,title:D(R.title),description:D(R.description),headline:D(R.headline)}:null}return{topBar:P(C.topBar||null),sidebar:P(C.sidebar||null),dismiss:p,thresholdLocked:b,isNearLimit:A}}function op({onOpenPricingModal:i}){const{sidebar:c}=Il();return!c||Re()?null:t.jsx(On,{title:s("Upgrade to Pro","cookie-notice"),children:t.jsxs("div",{className:"cn-upsell-card",children:[t.jsx("p",{className:"cn-upsell-card__headline",children:c.headline}),t.jsx("ul",{className:"cn-upsell-card__features",children:c.features.map(u=>t.jsx("li",{children:u},u))}),t.jsx("button",{type:"button",className:"cn-button cn-button--upgrade cn-button--sm cn-upsell-card__cta",onClick:()=>i&&i(),children:c.cta.label})]})})}const ip=()=>[{key:"top",label:s("Top","cookie-notice"),posClass:"pos-top"},{key:"bottom",label:s("Bottom","cookie-notice"),posClass:"pos-bottom"}],rp=()=>[{key:"top",label:s("Top","cookie-notice"),posClass:"pos-top"},{key:"bottom",label:s("Bottom","cookie-notice"),posClass:"pos-bottom"},{key:"left",label:s("Left","cookie-notice"),posClass:"pos-left"},{key:"right",label:s("Right","cookie-notice"),posClass:"pos-right"},{key:"center",label:s("Popup","cookie-notice"),posClass:"pos-center",proOnly:!0}];function sp({options:i,update:c,save:u,loading:d,saved:p,error:h}){const{isBannerOnly:m,isPro:x}=Ze(),v=m?ip():rp(),[g,k]=j.useState(!1),[_,b]=j.useState(!1),[A,C]=j.useState(""),[D,P]=j.useState(!1),[E,I]=j.useState(i.displayType||"fixed"),R=q=>{const W=i.position||"bottom";q!==W&&(m?(c("position",q),k(!0)):(b(!0),C(""),P(!1),gs({position:q,displayType:E}).then(()=>{P(!0),c("position",q)}).catch(te=>C(te.message||"Save failed.")).finally(()=>b(!1))))},O=q=>{q!==E&&(I(q),m?(c("displayType",q),k(!0)):(b(!0),C(""),P(!1),gs({position:i.position||"bottom",displayType:q}).then(()=>{P(!0),c("displayType",q)}).catch(W=>C(W.message||"Save failed.")).finally(()=>b(!1))))};j.useEffect(()=>{g&&m&&(k(!1),u())},[i.position,i.displayType,g,u,m]);const oe=i.position||"bottom",J=m?d:_,B=m?p:D,X=m?h:A;return t.jsxs("div",{className:"cn-banner-selector",children:[t.jsxs("div",{className:"cn-banner-selector__header",children:[t.jsx("span",{className:"cn-section-label",children:s("Banner Position","cookie-notice")}),B&&t.jsx("span",{className:"cn-saved-indicator",children:"✓ Saved"}),X&&t.jsx("span",{className:"cn-error-indicator",children:X})]}),!m&&t.jsx(t.Fragment,{children:t.jsxs("div",{className:"cn-banner-selector__toggle-row",children:[t.jsx("span",{className:"cn-banner-selector__size-label",children:s("Banner Size","cookie-notice")}),t.jsxs("div",{className:"cn-banner-selector__size-opts",children:[t.jsx("button",{className:`cn-banner-selector__size-opt${E==="floating"?" cn-banner-selector__size-opt--on":""}`,onClick:()=>O("floating"),children:s("Floating","cookie-notice")}),t.jsx("button",{className:`cn-banner-selector__size-opt${E==="fixed"?" cn-banner-selector__size-opt--on":""}`,onClick:()=>O("fixed"),children:s("Fixed","cookie-notice")})]}),t.jsx("span",{className:"cn-banner-selector__size-desc",children:E==="floating"?"Fills only as much space as necessary.":"Expands to fill all available space."})]})}),t.jsx("div",{className:`cn-banner-selector__grid${!m&&E==="floating"?" cn-banner-selector__grid--floating":""}`,children:v.map(q=>{const W=q.proOnly&&!x;return t.jsxs("div",{className:"cn-banner-selector__card"+(oe===q.key?" cn-banner-selector__card--active":"")+(J&&!W?" cn-banner-selector__card--saving":"")+(W?" cn-banner-selector__card--locked":""),onClick:()=>!W&&R(q.key),title:W?"Upgrade to Pro to use the Popup position":void 0,children:[W&&t.jsx("span",{className:"cn-banner-selector__pro-badge",children:t.jsx(Un,{})}),t.jsx("div",{className:"cn-banner-selector__thumb",children:t.jsx("div",{className:`cn-banner-selector__pos ${q.posClass}${W?" cn-banner-selector__pos--locked":""}`})}),t.jsxs("div",{className:"cn-banner-selector__meta",children:[t.jsx("span",{className:"cn-banner-selector__name",children:q.label}),oe===q.key&&!W&&t.jsx("span",{className:"cn-banner-selector__active-pill",children:s("Active","cookie-notice")}),W&&t.jsx("span",{className:"cn-banner-selector__locked-label",children:s("Pro only","cookie-notice")})]})]},q.key)})}),!m&&t.jsx("div",{className:"cn-banner-selector__portal-link",children:t.jsx("a",{href:`${en}/#/configuration`,target:"_blank",rel:"noopener noreferrer",children:"Customize in Admin Portal →"})})]})}const Rs={size:24,color:"currentColor"};function vn({size:i,color:c,className:u,style:d}={},p){return{xmlns:"http://www.w3.org/2000/svg",width:i||Rs.size,height:i||Rs.size,viewBox:"0 0 24 24",fill:"none",stroke:c||Rs.color,strokeWidth:1.75,strokeLinecap:"round",strokeLinejoin:"round",className:u||"",style:d,...p}}function ap(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("path",{d:"M12 2L3 6v5.5c0 4.5 3.8 8.7 9 10 5.2-1.3 9-5.5 9-10V6l-9-4z"}),t.jsx("polyline",{points:"8.5 12 11 14.5 15.5 9.5"})]})}function cp(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("circle",{cx:"12",cy:"12",r:"10"}),t.jsx("ellipse",{cx:"12",cy:"12",rx:"4",ry:"10"}),t.jsx("line",{x1:"2",y1:"12",x2:"22",y2:"12"})]})}function lp(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("rect",{x:"4",y:"14",width:"4",height:"7",rx:"1"}),t.jsx("rect",{x:"10",y:"9",width:"4",height:"12",rx:"1"}),t.jsx("rect",{x:"16",y:"4",width:"4",height:"17",rx:"1"})]})}function Ol(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("rect",{x:"5",y:"2",width:"14",height:"20",rx:"2"}),t.jsx("line",{x1:"9",y1:"8",x2:"15",y2:"8"}),t.jsx("line",{x1:"9",y1:"12",x2:"15",y2:"12"}),t.jsx("line",{x1:"9",y1:"16",x2:"13",y2:"16"})]})}function zs(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("rect",{x:"5",y:"11",width:"14",height:"10",rx:"2"}),t.jsx("path",{d:"M8 11V7a4 4 0 0 1 8 0v4"})]})}function Ul(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("circle",{cx:"12",cy:"12",r:"10"}),t.jsx("path",{d:"M9 12l2 2 4-4"})]})}function Bl(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}),t.jsx("line",{x1:"12",y1:"9",x2:"12",y2:"13"}),t.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]})}function up(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("circle",{cx:"12",cy:"12",r:"3"}),t.jsx("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09a1.65 1.65 0 0 0-1.08-1.51 1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09a1.65 1.65 0 0 0 1.51-1.08 1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1.08z"})]})}function dp(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("line",{x1:"12",y1:"3",x2:"12",y2:"21"}),t.jsx("line",{x1:"9",y1:"21",x2:"15",y2:"21"}),t.jsx("line",{x1:"3.5",y1:"8",x2:"20.5",y2:"8"}),t.jsx("line",{x1:"3.5",y1:"8",x2:"3.5",y2:"13"}),t.jsx("path",{d:"M1.5 13Q3.5 16.5 5.5 13"}),t.jsx("line",{x1:"20.5",y1:"8",x2:"20.5",y2:"13"}),t.jsx("path",{d:"M18.5 13Q20.5 16.5 22.5 13"})]})}function pp(i){return t.jsx("svg",{...vn(i),children:t.jsx("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"})})}function fp(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("rect",{x:"2",y:"2",width:"20",height:"16",rx:"2.5"}),t.jsx("line",{x1:"2",y1:"13",x2:"22",y2:"13"}),t.jsx("line",{x1:"6",y1:"7",x2:"11",y2:"7"}),t.jsx("line",{x1:"6",y1:"10",x2:"9",y2:"10"}),t.jsx("rect",{x:"14",y:"14.5",width:"5",height:"2",rx:"1",fill:"currentColor",stroke:"none"}),t.jsx("line",{x1:"4",y1:"15.5",x2:"10",y2:"15.5"})]})}function hp(i){return t.jsx("svg",{...vn(i),children:t.jsx("polyline",{points:"6 9 12 15 18 9"})})}function mp(i){return t.jsxs("svg",{...vn(i),children:[t.jsx("path",{d:"M7 15l5 5 5-5"}),t.jsx("path",{d:"M7 9l5-5 5 5"})]})}function Kn({title:i,subtitle:c,defaultOpen:u=!1,children:d}){return t.jsxs("details",{className:"cn-accordion",open:u||void 0,children:[t.jsxs("summary",{className:"cn-accordion__summary",children:[t.jsxs("div",{className:"cn-accordion__left",children:[t.jsx("span",{className:"cn-accordion__title",children:i}),c&&t.jsx("span",{className:"cn-accordion__subtitle",children:c})]}),t.jsx("span",{className:"cn-accordion__chevron",children:t.jsx(hp,{size:16})})]}),t.jsx("div",{className:"cn-accordion__body",children:d})]})}function Ms({label:i,value:c,onChange:u}){const d=`cn-color-${i==null?void 0:i.toLowerCase().replace(/\s+/g,"-")}`;return t.jsxs("div",{className:"cn-form-field",children:[i&&t.jsx("label",{className:"cn-form-field__label",htmlFor:d,children:i}),t.jsxs("div",{className:"cn-color-picker__row",children:[t.jsx("input",{type:"color",className:"cn-color-picker__swatch",value:c||"#000000",onChange:p=>u==null?void 0:u(p.target.value)}),t.jsx("input",{id:d,type:"text",className:"cn-form-field__input",value:c||"",onChange:p=>u==null?void 0:u(p.target.value),placeholder:"#000000",style:{flex:1}})]})]})}const gp=()=>[{value:"bottom",label:s("Bottom","cookie-notice")},{value:"top",label:s("Top","cookie-notice")}],vp=()=>[{value:"fade",label:s("Fade","cookie-notice")},{value:"slide",label:s("Slide","cookie-notice")},{value:"none",label:s("None","cookie-notice")}];function Fi({label:i,value:c}){return t.jsxs("div",{className:"cn-form-readonly",children:[t.jsx("label",{className:"cn-form-readonly__label",children:i}),t.jsx("span",{className:"cn-form-readonly__value",children:c||s("(default)","cookie-notice")}),t.jsxs("a",{href:`${en}/#/configuration`,target:"_blank",rel:"noreferrer",className:"cn-form-readonly__link",children:[s("Edit text in Admin Portal","cookie-notice")," →"]})]})}function yp({options:i,update:c,updateNested:u}){const d=i.colors||{};i.see_more_opt;const{isConnected:p,isBannerOnly:h}=Ze();return t.jsx(Kn,{title:s("Banner Design","cookie-notice"),subtitle:s("Texts, colors, position, and animation","cookie-notice"),defaultOpen:!0,children:t.jsxs("div",{className:"cn-banner-design__grid",children:[t.jsxs("div",{className:"cn-banner-design__col",children:[p?t.jsx(Fi,{label:s("Banner Message","cookie-notice"),value:i.message_text}):t.jsx(Ce,{label:s("Banner Message","cookie-notice"),type:"textarea",value:i.message_text||"",onChange:m=>c("message_text",m)}),p?t.jsx(Fi,{label:s("Accept Button","cookie-notice"),value:i.accept_text}):t.jsx(Ce,{label:s("Accept Button","cookie-notice"),value:i.accept_text||"",onChange:m=>c("accept_text",m),placeholder:s("Accept All","cookie-notice")}),p?t.jsx(Fi,{label:s("Reject Button","cookie-notice"),value:i.refuse_text}):t.jsx(Ce,{label:s("Reject Button","cookie-notice"),value:i.refuse_text||"",onChange:m=>c("refuse_text",m),placeholder:s("Reject All","cookie-notice")}),!h&&(p?t.jsx(Fi,{label:s("Update consent button","cookie-notice"),value:i.revoke_text}):t.jsx(Ce,{label:s("Update consent button","cookie-notice"),value:i.revoke_text||"",onChange:m=>c("revoke_text",m),placeholder:s("Update consent","cookie-notice")})),t.jsx(Ce,{label:s("Banner Position","cookie-notice"),type:"select",value:i.position||"bottom",onChange:m=>c("position",m),options:gp()}),t.jsx(Ce,{label:s("Dismiss Animation","cookie-notice"),type:"select",value:i.hide_effect||"fade",onChange:m=>c("hide_effect",m),options:vp()})]}),t.jsxs("div",{className:"cn-banner-design__col",children:[t.jsx(Ms,{label:s("Background Color","cookie-notice"),value:d.bar||"#32323a",onChange:m=>u("colors","bar",m)}),t.jsx(Ms,{label:s("Text Color","cookie-notice"),value:d.text||"#ffffff",onChange:m=>u("colors","text",m)}),t.jsx(Ms,{label:s("Button Color","cookie-notice"),value:d.button||"#00a99d",onChange:m=>u("colors","button",m)})]})]})})}function _p({onConnect:i}){return t.jsxs("div",{className:"cn-tier-gate-inline",children:[t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{opacity:.5},children:[t.jsx("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),t.jsx("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]}),t.jsxs("div",{children:[t.jsx("strong",{children:s("Advanced features require a connection","cookie-notice")}),t.jsx("p",{style:{margin:"4px 0 0",color:"var(--cn-muted)",fontSize:"var(--cn-text-sm)"},children:s("Connect your site to unlock Autoblocking, Cookie Categories, Consent Records, and Analytics.","cookie-notice")})]}),t.jsx("button",{type:"button",className:"cn-button cn-button--primary",onClick:i,children:s("Connect Your Site — It’s Free","cookie-notice")})]})}const kp=()=>({gpcSupportMode:{title:s("GPC support","cookie-notice"),summary:s("GPC (Global Privacy Control) tells browsers to signal opt-out of data sale automatically. Required for CCPA compliance.","cookie-notice"),navPath:[s("Compliance","cookie-notice"),s("Privacy Settings","cookie-notice"),s("GPC Support","cookie-notice")],action:s("Toggle GPC Support on, then save.","cookie-notice"),deepLink:"/#/configuration"},onClose:{title:s("Accept on close","cookie-notice"),summary:s("Accepting consent when users dismiss the banner is not allowed under GDPR and UK PECR.","cookie-notice"),navPath:[s("Compliance","cookie-notice"),s("Consent Settings","cookie-notice"),s("Accept on Close","cookie-notice")],action:s("Ensure Accept on Close is set to Off.","cookie-notice"),deepLink:"/#/configuration"},uiBlocking:{title:s("Cookie wall (UI blocking)","cookie-notice"),summary:s('Blocking site access until consent is given (a "cookie wall") violates GDPR — consent must be freely given.',"cookie-notice"),navPath:[s("Compliance","cookie-notice"),s("Blocking Settings","cookie-notice"),s("Cookie Wall","cookie-notice")],action:s("Ensure Cookie Wall is set to Off.","cookie-notice"),deepLink:"/#/configuration"}}),xp=()=>t.jsxs("svg",{viewBox:"0 0 28 28",fill:"none",width:"28",height:"28","aria-hidden":"true",children:[t.jsx("path",{d:"M14 3L4 7v7c0 6.627 4.477 12.5 10 14.5C19.523 26.5 24 20.627 24 14V7L14 3z",stroke:"rgba(255,255,255,.75)",strokeWidth:"1.5",strokeLinejoin:"round"}),t.jsx("path",{d:"M9 14l3.5 3.5L19 11",stroke:"#fff",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});function jp({settingKey:i,accountEmail:c,onClose:u,onSynced:d}){const[p,h]=j.useState(!1),[m,x]=j.useState(""),v=kp()[i];if(!v||Re())return null;const g=v.deepLink?en+v.deepLink:en,k=async()=>{h(!0),x("");try{await gn("sync_config"),d==null||d(),u==null||u()}catch{x("Sync failed. Please try again or refresh the page.")}finally{h(!1)}};return t.jsx("div",{className:"cn-portal-bridge-overlay",role:"dialog","aria-modal":"true","aria-label":we(s("Configure %s in Admin Portal","cookie-notice"),v.title),children:t.jsxs("div",{className:"cn-portal-bridge",children:[t.jsxs("div",{className:"cn-portal-bridge__header",children:[t.jsx("div",{className:"cn-portal-bridge__header-icon",children:t.jsx(xp,{})}),t.jsxs("div",{children:[t.jsxs("div",{className:"cn-portal-bridge__header-title",children:[v.title," is configured in the Admin Portal"]}),t.jsx("div",{className:"cn-portal-bridge__header-sub",children:s("Takes about 60 seconds","cookie-notice")})]})]}),t.jsxs("div",{className:"cn-portal-bridge__body",children:[t.jsx("p",{className:"cn-portal-bridge__summary",children:v.summary}),c&&t.jsxs("div",{className:"cn-portal-bridge__context",children:[t.jsx("div",{className:"cn-portal-bridge__context-dot"}),t.jsxs("div",{className:"cn-portal-bridge__context-text",children:["Sign in with ",t.jsx("strong",{children:c})," to access this setting."]})]}),t.jsxs("div",{className:"cn-portal-bridge__steps",children:[t.jsxs("div",{className:"cn-portal-bridge__step",children:[t.jsx("div",{className:"cn-portal-bridge__step-num",children:"1"}),t.jsxs("div",{className:"cn-portal-bridge__step-body",children:[t.jsx("div",{className:"cn-portal-bridge__step-title",children:s("Open the Admin Portal","cookie-notice")}),t.jsx("div",{className:"cn-portal-bridge__step-desc",children:s("Opens in a new tab.","cookie-notice")})]})]}),t.jsxs("div",{className:"cn-portal-bridge__step",children:[t.jsx("div",{className:"cn-portal-bridge__step-num",children:"2"}),t.jsxs("div",{className:"cn-portal-bridge__step-body",children:[t.jsx("div",{className:"cn-portal-bridge__step-title",children:s("Navigate to the setting","cookie-notice")}),t.jsx("div",{className:"cn-portal-bridge__step-desc",children:v.navPath.join(" → ")})]})]}),t.jsxs("div",{className:"cn-portal-bridge__step",children:[t.jsx("div",{className:"cn-portal-bridge__step-num",children:"3"}),t.jsxs("div",{className:"cn-portal-bridge__step-body",children:[t.jsx("div",{className:"cn-portal-bridge__step-title",children:s("Make the change","cookie-notice")}),t.jsx("div",{className:"cn-portal-bridge__step-desc",children:v.action})]})]})]}),m&&t.jsx("div",{className:"cn-portal-bridge__error",children:m}),t.jsxs("div",{className:"cn-portal-bridge__actions",children:[t.jsx("a",{href:g,target:"_blank",rel:"noopener noreferrer",className:"cn-portal-bridge__btn cn-portal-bridge__btn--primary",children:"Open Admin Portal →"}),t.jsx("button",{type:"button",className:"cn-portal-bridge__btn cn-portal-bridge__btn--secondary",onClick:k,disabled:p,children:p?"Checking…":"I've made the change"})]})]}),t.jsx("div",{className:"cn-portal-bridge__dismiss",children:t.jsx("button",{type:"button",onClick:u,className:"cn-portal-bridge__dismiss-btn",children:s("Not now","cookie-notice")})})]})})}const $l={banner:"Banner shown",hidden:"Silent",passive:"Passive notice"},wp=()=>[{key:"app_blocking_engine",wpKey:"app_blocking_engine",label:s("Script blocking engine","cookie-notice"),desc:s("The master switch. Turn this off and Cookie Compliance never touches your scripts — nothing is blocked for any visitor, in any region, regardless of privacy signals. Leave it on unless you handle script blocking yourself.","cookie-notice"),valueType:"toggle",requiredFor:[],activeLaws:[],activeValue:!0},{key:"app_blocking",wpKey:"app_blocking",label:s("Autoblocking","cookie-notice"),desc:s("Block before consent. Holds third-party scripts until the visitor makes a choice. With this off, scripts load immediately; once the visitor chooses, their choice is enforced either way.","cookie-notice"),valueType:"toggle",requiredFor:[],activeLaws:[],activeValue:!0},{key:"onScroll",label:s("Accept on scroll","cookie-notice"),desc:s("Consent granted automatically if visitor scrolls","cookie-notice"),valueType:"bool-inverted",requiredFor:["gdpr","ukpecr","lgpd","popia"],activeLaws:["gdpr","ukpecr","lgpd","popia"],activeValue:!1},{key:"onClick",label:s("Accept on click","cookie-notice"),desc:s("Consent granted automatically on any page click","cookie-notice"),valueType:"bool-inverted",requiredFor:["gdpr","ukpecr","lgpd","popia"],activeLaws:["gdpr","ukpecr","lgpd","popia"],activeValue:!1},{key:"onClose",label:s("Accept on close","cookie-notice"),desc:s("Consent granted automatically if banner is closed","cookie-notice"),valueType:"bool-inverted",requiredFor:["gdpr","ukpecr","popia"],activeLaws:["gdpr","ukpecr","popia"],activeValue:!1,portalOnly:!0},{key:"refuse_opt",wpKey:"refuse_opt",label:s("Refuse button","cookie-notice"),desc:s("Display a button allowing visitors to decline tracking","cookie-notice"),valueType:"bool",requiredFor:["gdpr","ukpecr","lgpd","pipeda","popia"],activeLaws:["gdpr","ukpecr","lgpd","pipeda","popia"],activeValue:!0},{key:"revokeConsent",label:s("Update consent","cookie-notice"),desc:s("Floating control so visitors can reopen the banner and update their consent","cookie-notice"),valueType:"bool",requiredFor:[],activeLaws:["gdpr","ccpa","otherus","ukpecr","lgpd","pipeda","popia"],activeValue:!0},{key:"gpcSupportMode",label:s("GPC support","cookie-notice"),desc:s("Honor browser-level opt-out signals automatically","cookie-notice"),valueType:"bool",requiredFor:[],activeLaws:["ccpa","otherus"],activeValue:!0,portalOnly:!0,pro:!0,globalNote:s("Required for all connected sites (CCPA/CPRA mandate)","cookie-notice")},{key:"consentExpiry",label:s("Consent expiry","cookie-notice"),desc:s("How long before visitors are prompted again","cookie-notice"),valueType:"expiry-array",requiredFor:["gdpr","ukpecr"],activeLaws:["gdpr","ukpecr"]},{key:"uiBlocking",label:s("Cookie wall","cookie-notice"),desc:s("Block access to site content until consent is given","cookie-notice"),valueType:"bool-inverted",requiredFor:["gdpr"],activeLaws:["gdpr"],activeValue:!1,portalOnly:!0}],Bn={shield:({color:i})=>t.jsxs("svg",{viewBox:"0 0 22 22",fill:"none",width:"22",height:"22","aria-hidden":"true",children:[t.jsx("path",{d:"M11 3L4 6v5c0 4 3.5 7 7 8 3.5-1 7-4 7-8V6L11 3z",stroke:i,strokeWidth:"1.5",strokeLinejoin:"round"}),t.jsx("polyline",{points:"8,11 10,13 14,9",stroke:i,strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})]}),scroll:({color:i})=>t.jsxs("svg",{viewBox:"0 0 22 22",fill:"none",width:"22",height:"22","aria-hidden":"true",children:[t.jsx("rect",{x:"4",y:"3",width:"14",height:"16",rx:"3",stroke:i,strokeWidth:"1.5"}),t.jsx("polyline",{points:"9,13 11,16 13,13",stroke:i,strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("line",{x1:"11",y1:"9",x2:"11",y2:"16",stroke:i,strokeWidth:"1.2",strokeLinecap:"round"})]}),click:({color:i})=>t.jsxs("svg",{viewBox:"0 0 22 22",fill:"none",width:"22",height:"22","aria-hidden":"true",children:[t.jsx("path",{d:"M8.5 10.5V5.5a1.5 1.5 0 013 0v5",stroke:i,strokeWidth:"1.5",strokeLinecap:"round"}),t.jsx("path",{d:"M11.5 8.5V5a1.5 1.5 0 013 0V10",stroke:i,strokeWidth:"1.5",strokeLinecap:"round"}),t.jsx("path",{d:"M14.5 8a1.5 1.5 0 013 0v4c0 3.314-2.686 6-6 6h-1a5 5 0 01-5-5v-2.5a1.5 1.5 0 013 0",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),close:({color:i})=>t.jsxs("svg",{viewBox:"0 0 22 22",fill:"none",width:"22",height:"22","aria-hidden":"true",children:[t.jsx("rect",{x:"3",y:"3",width:"16",height:"16",rx:"3",stroke:i,strokeWidth:"1.5"}),t.jsx("line",{x1:"8",y1:"8",x2:"14",y2:"14",stroke:i,strokeWidth:"1.4",strokeLinecap:"round"}),t.jsx("line",{x1:"14",y1:"8",x2:"8",y2:"14",stroke:i,strokeWidth:"1.4",strokeLinecap:"round"})]}),refuse:({color:i})=>t.jsxs("svg",{viewBox:"0 0 22 22",fill:"none",width:"22",height:"22","aria-hidden":"true",children:[t.jsx("rect",{x:"3",y:"7",width:"16",height:"8",rx:"3",stroke:i,strokeWidth:"1.5"}),t.jsx("line",{x1:"7",y1:"11",x2:"15",y2:"11",stroke:i,strokeWidth:"1.3",strokeLinecap:"round"})]}),revoke:({color:i})=>t.jsxs("svg",{viewBox:"0 0 22 22",fill:"none",width:"22",height:"22","aria-hidden":"true",children:[t.jsx("path",{d:"M4 8h7a6 6 0 110 12H6",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("polyline",{points:"4,4 4,8 8,8",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),gpc:({color:i})=>t.jsxs("svg",{viewBox:"0 0 22 22",fill:"none",width:"22",height:"22","aria-hidden":"true",children:[t.jsx("path",{d:"M8 10V5a1.5 1.5 0 013 0v5",stroke:i,strokeWidth:"1.5",strokeLinecap:"round"}),t.jsx("path",{d:"M11 8V4.5a1.5 1.5 0 013 0V9",stroke:i,strokeWidth:"1.5",strokeLinecap:"round"}),t.jsx("path",{d:"M14 7.5a1.5 1.5 0 013 0V12c0 3.314-2.686 6-6 6h-1a5 5 0 01-5-5v-2a1.5 1.5 0 013 0",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),clock:({color:i})=>t.jsxs("svg",{viewBox:"0 0 22 22",fill:"none",width:"22",height:"22","aria-hidden":"true",children:[t.jsx("circle",{cx:"11",cy:"11",r:"9",stroke:i,strokeWidth:"1.5"}),t.jsx("polyline",{points:"11,6 11,11 14,14",stroke:i,strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})]}),power:({color:i})=>t.jsxs("svg",{viewBox:"0 0 22 22",fill:"none",width:"22",height:"22","aria-hidden":"true",children:[t.jsx("circle",{cx:"11",cy:"12",r:"7.5",stroke:i,strokeWidth:"1.5"}),t.jsx("line",{x1:"11",y1:"3",x2:"11",y2:"11",stroke:i,strokeWidth:"1.6",strokeLinecap:"round"})]}),wall:({color:i})=>t.jsxs("svg",{viewBox:"0 0 22 22",fill:"none",width:"22",height:"22","aria-hidden":"true",children:[t.jsx("rect",{x:"2",y:"5",width:"18",height:"12",rx:"2",stroke:i,strokeWidth:"1.5"}),t.jsx("line",{x1:"2",y1:"9",x2:"20",y2:"9",stroke:i,strokeWidth:"1.2"}),t.jsx("line",{x1:"11",y1:"9",x2:"11",y2:"17",stroke:i,strokeWidth:"1.2"})]})},bp={app_blocking_engine:Bn.power,app_blocking:Bn.shield,onScroll:Bn.scroll,onClick:Bn.click,onClose:Bn.close,refuse_opt:Bn.refuse,revokeConsent:Bn.revoke,gpcSupportMode:Bn.gpc,consentExpiry:Bn.clock,uiBlocking:Bn.wall};function Np(i,c,u,d){if(i.key==="gpcSupportMode"&&!u&&d.some(h=>h==="ccpa"||h==="otherus")||i.key==="uiBlocking"&&!u&&d.includes("gdpr"))return"crit";if((i.key==="onScroll"||i.key==="onClick"||i.key==="onClose")&&!u){const h=["gdpr","ukpecr","popia"].some(x=>d.includes(x)),m=(i.key==="onScroll"||i.key==="onClick")&&d.includes("lgpd");if(h||m)return"crit"}return u?"ok":"warn"}function Sp({setting:i,activeLawKeys:c,wpOptions:u,confirmedOptions:d,configData:p,onOpenPortal:h,onToggle:m,saving:x,unconfirmed:v,checking:g,pullUnknown:k,saveError:_,blockingPaused:b,blockingState:A,onUpgrade:C,isPro:D}){const{key:P,label:E,desc:I,valueType:R,activeLaws:O,portalOnly:oe,wpKey:J}=i,B=i.key==="gpcSupportMode"&&!!p.gpcSupportMode,X=!!i.pro&&!D&&!B,q=O.filter(re=>c.includes(re)),W=J||P,te=J?u:p;let ue,ge;const ne=i.key==="app_blocking"||i.key==="app_blocking_engine",de=ne&&A==="networkManaged",F=ne&&(A==="inactive"||de),ke=i.key==="app_blocking"&&!!b,U=ke&&!F,ee=i.key==="app_blocking"&&(d==null?void 0:d.app_blocking_engine)===!1;if(R==="bool"){const re=te[W],pe=W==="app_blocking"&&re===void 0?!0:!!re;if(ge=pe===i.activeValue,i.key==="gpcSupportMode"&&pe){const ve=te.gpcBannerMode||"passive",xe=$l[ve]||$l.passive;ue=t.jsxs(t.Fragment,{children:["On",t.jsx("div",{style:{fontSize:"var(--cn-text-sm)",fontWeight:"normal",color:"var(--cn-muted)",marginTop:2},children:xe})]})}else ue=s(pe?"On":"Off","cookie-notice")}else if(R==="bool-inverted"){const re=!!te[W];ue=s(re?"On":"Off","cookie-notice"),ge=re===i.activeValue}else if(R==="toggle"){const re=te[W]??!0,pe=(d==null?void 0:d[W])??!0;ue=t.jsxs("label",{className:"cn-toggle-row__label",style:{cursor:ke?"default":"pointer",margin:0,justifyContent:"flex-start"},children:[t.jsx("input",{type:"checkbox",className:"cn-toggle-row__input",checked:re,disabled:ke,onChange:ve=>m&&m(W,ve.target.checked),style:{marginRight:"6px"}}),re?"On":"Off",U&&t.jsx("span",{className:"cn-card__paused",style:{marginLeft:8,color:"var(--cn-warn-icon)",fontWeight:500},children:s("Paused","cookie-notice")}),F&&i.key==="app_blocking"&&t.jsx("span",{className:"cn-card__inactive",style:{marginLeft:8,color:"var(--cn-warn-icon)",fontWeight:500},children:s(de?"Managed by network":"Not active","cookie-notice")}),x&&t.jsx("span",{className:"cn-card__saving",style:{marginLeft:8,fontSize:"var(--cn-text-sm)",fontWeight:"normal",color:"var(--cn-muted)"},children:s("Saving…","cookie-notice")})]}),ge=i.key==="app_blocking"?A==="active":F||x||v?!1:pe===i.activeValue}else if(R==="expiry-array"){const re=Array.isArray(te[W])?te[W]:[30,182,365],pe=Math.max(...re);ue=re.map(ve=>ve>=365?`${Math.round(ve/365)}y`:ve>=30?`${Math.round(ve/30)}mo`:`${ve}d`).join(" / "),ge=pe<=365}const Q=Np(i,ue,ge,c),S=`var(--cn-${Q}-icon)`,$=bp[P]||null;return t.jsxs("div",{className:`cn-card${Q==="crit"?" cn-card--crit":""}`,children:[t.jsxs("div",{className:"cn-card__top",children:[t.jsx("div",{className:"cn-card__icon",children:$&&t.jsx($,{color:S})}),t.jsx("div",{className:`cn-card__dot cn-card__dot--${Q}`})]}),t.jsx("div",{className:`cn-card__main cn-card__main--${Q}`,children:ue}),t.jsx("div",{className:"cn-card__sub",children:E}),I&&t.jsx("div",{className:"cn-card__desc",style:{marginTop:4,fontSize:"var(--cn-text-sm)",color:"var(--cn-muted)"},children:I}),t.jsx("div",{className:"cn-card__pills",children:q.map(re=>t.jsx("span",{className:`cn-card__pill cn-card__pill--${Q}`,children:xl[re]||re.toUpperCase()},re))}),t.jsx("div",{className:"cn-card__foot",children:X?t.jsxs(t.Fragment,{children:[t.jsx(Un,{}),t.jsx("button",{type:"button",onClick:C,children:"Upgrade to Pro →"})]}):oe&&t.jsx("button",{type:"button",onClick:()=>h==null?void 0:h(i.key),children:"Manage in Admin Portal →"})}),U&&t.jsxs("div",{className:"cn-card__threshold-banner",style:{marginTop:8,padding:"8px 10px",background:"var(--cn-warn-bg, #fef3cd)",borderRadius:6,fontSize:"var(--cn-text-sm)"},children:[s("Visit limit reached — autoblocking is paused until your 30-day visit cycle resets.","cookie-notice")," ",t.jsx("button",{type:"button",className:"cn-card__threshold-upgrade",style:{background:"none",border:"none",color:"var(--cn-link)",cursor:"pointer",padding:0,font:"inherit",textDecoration:"underline"},onClick:C,children:"Upgrade →"})]}),v&&!x&&t.jsx("div",{className:"cn-card__unconfirmed",role:"status",style:{marginTop:8,padding:"8px 10px",background:"var(--cn-warn-bg, #fef3cd)",borderRadius:6,fontSize:"var(--cn-text-sm)"},children:s(k?"Not confirmed — reload the page to see the saved autoblocking setting.":g?"Checking the saved value…":"Not confirmed — reload to see the saved value","cookie-notice")}),_&&t.jsxs("div",{className:"cn-card__save-error",role:"alert",style:{marginTop:8,padding:"8px 10px",background:"var(--cn-crit-bg, #fdecea)",borderRadius:6,fontSize:"var(--cn-text-sm)"},children:[s("Not saved:","cookie-notice")," ",_]}),ee&&!U&&t.jsx("div",{className:"cn-card__engine-note",style:{marginTop:8,padding:"8px 10px",background:"var(--cn-warn-bg, #fef3cd)",borderRadius:6,fontSize:"var(--cn-text-sm)"},children:s("No effect while the script blocking engine is off.","cookie-notice")})]})}function Cp({wpOptions:i,confirmedOptions:c,update:u,scheduleSave:d,blockingPaused:p,blockingState:h,savingKeys:m=[],unconfirmedKeys:x=[],checkingKeys:v=[],pullUnknownKeys:g=[],autoSaveError:k=null,onOpenPricingModal:_}){var W;const{dashboard:b,refetchDashboard:A}=Mn(),{config:C,refetchConfig:D}=jt(),{isPro:P}=Ze(),E=(te,ue)=>{u(te,ue),d([te])},I=((W=b==null?void 0:b.appConfig)==null?void 0:W.regulations)||{},R=Object.entries(I).filter(([,te])=>te).map(([te])=>te),O=(b==null?void 0:b.accountEmail)||"",oe=(C==null?void 0:C.config)||{},[J,B]=j.useState(null),X=R.length>0,q=wp().filter(te=>te.requiredFor.length===0?!0:te.requiredFor.some(ue=>R.includes(ue)));return t.jsxs(t.Fragment,{children:[t.jsxs("div",{id:"cn-compliance-behavior",className:"cn-compliance-behavior",children:[t.jsx("div",{className:"cn-card-grid cn-card-grid--auto",children:q.map(te=>t.jsx(Sp,{setting:te,activeLawKeys:R,wpOptions:i,confirmedOptions:c,configData:oe,onOpenPortal:B,onToggle:E,saving:m.includes(te.wpKey||te.key),unconfirmed:x.includes(te.wpKey||te.key),checking:v.includes(te.wpKey||te.key),pullUnknown:g.includes(te.wpKey||te.key),saveError:k!=null&&k.keys.includes(te.wpKey||te.key)?k.message:null,blockingPaused:p,blockingState:h,onUpgrade:_,isPro:P},te.key))}),t.jsxs("div",{className:"cn-compliance-behavior__footer",children:[X?"These settings were automatically configured based on your selected laws. ":"Select laws to see recommendations tied to your jurisdictions. ",t.jsx("a",{href:`${en}/#/configuration`,target:"_blank",rel:"noreferrer",className:"cn-form-readonly__link",children:X?"Configure in Admin Portal →":"Select laws in Admin Portal →"})]})]}),J&&t.jsx(jp,{settingKey:J,accountEmail:O,onClose:()=>B(null),onSynced:()=>{A(),D(),B(null)}})]})}const Le={thumb:"_thumb_1g9ys_1",chrome:"_chrome_1g9ys_12",dot:"_dot_1g9ys_23",urlBar:"_urlBar_1g9ys_31",page:"_page_1g9ys_39",lines:"_lines_1g9ys_45",banner:"_banner_1g9ys_57","bar-bottom":"_bar-bottom_1g9ys_69","bar-top":"_bar-top_1g9ys_75",floating:"_floating_1g9ys_81",fixed:"_fixed_1g9ys_87","panel-left":"_panel-left_1g9ys_92","panel-right":"_panel-right_1g9ys_99",panelFloating:"_panelFloating_1g9ys_106",panelFixed:"_panelFixed_1g9ys_110",popup:"_popup_1g9ys_115",bannerHeader:"_bannerHeader_1g9ys_124",toolbarDots:"_toolbarDots_1g9ys_131",pills:"_pills_1g9ys_143",pill:"_pill_1g9ys_143",pillDot:"_pillDot_1g9ys_160",saveBtn:"_saveBtn_1g9ys_167",footerLinks:"_footerLinks_1g9ys_174",link:"_link_1g9ys_181","anim-slide-bottom":"_anim-slide-bottom_1g9ys_188",huPreviewSlideUp:"_huPreviewSlideUp_1g9ys_1","anim-slide-top":"_anim-slide-top_1g9ys_192",huPreviewSlideDown:"_huPreviewSlideDown_1g9ys_1","anim-slide-left":"_anim-slide-left_1g9ys_196",huPreviewSlideLeft:"_huPreviewSlideLeft_1g9ys_1","anim-slide-right":"_anim-slide-right_1g9ys_200",huPreviewSlideRight:"_huPreviewSlideRight_1g9ys_1","anim-slide-center":"_anim-slide-center_1g9ys_204",huPreviewScaleIn:"_huPreviewScaleIn_1g9ys_1","anim-fade":"_anim-fade_1g9ys_208",huPreviewFade:"_huPreviewFade_1g9ys_1"},Pp=["#c4c4c4","#d5b565","#9891b1"];function Lp(i){const c=i.replace("#",""),u=parseInt(c.slice(0,2),16),d=parseInt(c.slice(2,4),16),p=parseInt(c.slice(4,6),16);return(u*299+d*587+p*114)/1e3>155}function Ep({preset:i,isActive:c}){const{position:u="bottom",displayType:d="floating",bannerColor:p="#4d4d4d",primaryColor:h="#20c19e",btnBorderRadius:m="25px",animation:x="fade"}=i,v=Lp(p),g=v?"rgba(0,0,0,.25)":"rgba(255,255,255,.4)",k=v?"rgba(0,0,0,.18)":"rgba(255,255,255,.35)",_=u==="left"||u==="right",b=u==="center",A=d==="floating",C=Math.max(2,Math.round(parseInt(m)*.18))+"px",D=x==="slide"?Le[`anim-slide-${u}`]:Le["anim-fade"],P=[Le.banner,_?Le[`panel-${u}`]:null,_&&A?Le.panelFloating:null,_&&!A?Le.panelFixed:null,b?Le.popup:null,!_&&!b?Le[`bar-${u}`]:null,!_&&!b&&A?Le.floating:null,!_&&!b&&!A?Le.fixed:null,Le[D]||D].filter(Boolean).join(" ");return t.jsx(Wl,{children:t.jsxs("div",{className:P,style:{backgroundColor:p},children:[t.jsx("div",{className:Le.bannerHeader,children:t.jsxs("div",{className:Le.toolbarDots,style:{"--dot-color":g},children:[t.jsx("span",{}),t.jsx("span",{}),t.jsx("span",{})]})}),t.jsx("div",{className:Le.pills,children:Pp.map((E,I)=>t.jsx("div",{className:Le.pill,style:{borderColor:E},children:t.jsx("span",{className:Le.pillDot,style:{backgroundColor:E}})},I))}),t.jsx("div",{className:Le.saveBtn,style:{backgroundColor:h,borderRadius:C}}),t.jsxs("div",{className:Le.footerLinks,children:[t.jsx("div",{className:Le.link,style:{background:k}}),t.jsx("div",{className:Le.link,style:{background:k}})]})]})})}function Wl({children:i}){return t.jsxs("div",{className:Le.thumb,children:[t.jsxs("div",{className:Le.chrome,children:[t.jsx("span",{className:Le.dot}),t.jsx("span",{className:Le.dot}),t.jsx("span",{className:Le.dot}),t.jsx("div",{className:Le.urlBar})]}),t.jsxs("div",{className:Le.page,children:[t.jsxs("div",{className:Le.lines,children:[t.jsx("div",{style:{width:"75%"}}),t.jsx("div",{style:{width:"55%"}}),t.jsx("div",{style:{width:"65%"}}),t.jsx("div",{style:{width:"45%"}})]}),i]})]})}const nn={root:"_root_o4a2z_1",scaler:"_scaler_o4a2z_6",overlay:"_overlay_o4a2z_12",banner:"_banner_o4a2z_18",card:"_card_o4a2z_28",bottom:"_bottom_o4a2z_33",top:"_top_o4a2z_36",edge:"_edge_o4a2z_40",bar:"_bar_o4a2z_52",heading:"_heading_o4a2z_66",narrow:"_narrow_o4a2z_71",left:"_left_o4a2z_77",right:"_right_o4a2z_81",modal:"_modal_o4a2z_85",desc:"_desc_o4a2z_101",descShort:"_descShort_o4a2z_109",row:"_row_o4a2z_113",pill:"_pill_o4a2z_121",link:"_link_o4a2z_131"},Dp=["bottom","top","left","right","center"];function Tp(i){let c=String(i||"").replace("#","");if(c.length===3&&(c=c.split("").map(h=>h+h).join("")),!/^[0-9a-f]{6}$/i.test(c))return!1;const[u,d,p]=[0,2,4].map(h=>parseInt(c.slice(h,h+2),16));return(u*299+d*587+p*114)/1e3>155}function Ap(i,c,u,d){return i!=="new"?"classic":u==="left"||u==="right"?"narrow":u==="center"?"modal":c==="compact"&&d==="fixed"?"bar":"card"}function Rp({shape:i,compact:c,position:u,displayType:d,bannerColor:p,primaryColor:h}){const m=Tp(p),x={"--thumb-bg":p,"--thumb-accent":h,"--thumb-ink":m?"rgba(0,0,0,.5)":"rgba(255,255,255,.75)","--thumb-faint":m?"rgba(0,0,0,.22)":"rgba(255,255,255,.35)"},v=[nn.banner,nn[i],i==="card"||i==="bar"?nn[u==="top"?"top":"bottom"]:null,i==="narrow"?nn[u]:null,i==="card"&&d==="fixed"?nn.edge:null].filter(Boolean).join(" "),g=(c?[0,1]:[0,1,2]).map(_=>t.jsx("span",{className:nn.pill},_)),k=t.jsx("span",{className:nn.link});return t.jsxs(t.Fragment,{children:[i==="modal"&&t.jsx("div",{className:nn.overlay}),t.jsx("div",{className:v,style:x,children:i==="bar"?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:nn.heading}),g,k]}):t.jsxs(t.Fragment,{children:[t.jsx("span",{className:nn.heading}),!c&&t.jsx("span",{className:nn.desc}),!c&&t.jsx("span",{className:`${nn.desc} ${nn.descShort}`}),t.jsxs("span",{className:nn.row,children:[g,k]})]})})]})}function zp({engine:i="classic",style:c="standard",position:u,displayType:d,bannerColor:p,primaryColor:h,scale:m=1}){const x=u==="popup"?"center":Dp.includes(u)?u:"bottom",v=d==="fixed"?"fixed":"floating",g=p||"#4d4d4d",k=h||"#20c19e",_=Ap(i,c,x,v),b=m!==1?{width:160*m,height:90*m}:void 0;return t.jsx("div",{className:`cn-banner-thumb ${nn.root}`,"data-engine":i,"data-style":c,"data-shape":_,style:b,"aria-hidden":"true",children:t.jsx("div",{className:nn.scaler,style:m!==1?{transform:`scale(${m})`}:void 0,children:_==="classic"?t.jsx(Ep,{preset:{position:x,displayType:v,bannerColor:g,primaryColor:k}}):t.jsx(Wl,{children:t.jsx(Rp,{shape:_,compact:c==="compact",position:x,displayType:v,bannerColor:g,primaryColor:k})})})})}function Gl(){var k,_,b;const i=Ti(),c=Lo(),{dashboard:u}=Mn(),{configRefresh:d}=jt(),p=i.engine==="new",h=i.managed,m=c==="live",x=((k=u==null?void 0:u.appConfig)==null?void 0:k.design)||((_=window.cnReactData)==null?void 0:_.bannerDesign)||{},v=((b=window.cnReactData)==null?void 0:b.siteUrl)||"",g=cs(d==null?void 0:d.lastSynced);return t.jsxs("section",{className:"cn-banner-panel","aria-labelledby":"cn-banner-panel-title","data-engine":i.engine,"data-style":p?i.style:void 0,children:[t.jsxs("div",{className:"cn-banner-panel__shot",children:[t.jsxs("div",{className:"cn-banner-panel__head",children:[t.jsx("h2",{id:"cn-banner-panel-title",className:"cn-banner-panel__title",children:s("Your banner","cookie-notice")}),t.jsx("span",{className:`cn-banner-panel__status cn-banner-panel__status--${m?"live":"off"}`,children:m?s("Live on your site","cookie-notice"):ts(c)})]}),t.jsx(zp,{engine:i.engine,style:i.style,position:x.position,displayType:x.displayType,bannerColor:x.bannerColor,primaryColor:x.primaryColor,scale:1.75}),t.jsx("p",{className:"cn-banner-panel__caption",children:s("A drawing based on your engine, style and colours. Use Preview to see the real banner.","cookie-notice")})]}),t.jsxs("div",{className:"cn-banner-panel__rows",children:[h&&t.jsx("p",{className:"cn-banner-panel__managed",children:s("Managed by your network administrator — this site uses the network's banner.","cookie-notice")}),t.jsxs("div",{className:"cn-banner-panel__row",children:[t.jsx("span",{className:"cn-banner-panel__label",children:s("Engine","cookie-notice")}),t.jsxs("div",{className:"cn-banner-panel__value",children:[t.jsx("span",{className:`cn-banner-panel__chip cn-banner-panel__chip--${i.engine}`,children:Si(i.engine)}),t.jsx("span",{className:"cn-banner-panel__note",children:s(p?"One click records any choice, including reject. Also holds tracking scripts added after the page loads, and adds the Compact style. You can switch back at any time.":"The original banner.","cookie-notice")}),!h&&t.jsxs("a",{className:"cn-banner-panel__link",href:`${en}/#/configuration`,target:"_blank",rel:"noopener noreferrer",children:[s("Change engine in Admin Portal","cookie-notice")," ↗"]})]})]}),t.jsxs("div",{className:"cn-banner-panel__row",children:[t.jsx("span",{className:"cn-banner-panel__label",id:"cn-banner-panel-style",children:s("Style","cookie-notice")}),t.jsx("div",{className:"cn-banner-panel__value",children:t.jsx(Pl,{name:"cn-banner-style",labelledBy:"cn-banner-panel-style"})})]}),!h&&t.jsxs("div",{className:"cn-banner-panel__actions",children:[v&&t.jsxs("a",{className:"cn-button cn-button--primary",href:`${v}?cn_preview=1`,target:"_blank",rel:"noreferrer",children:[s("Preview on my site","cookie-notice")," ↗"]}),t.jsxs("a",{className:"cn-button cn-button--outline",href:`${en}/#/configuration`,target:"_blank",rel:"noopener noreferrer",children:[s("Edit colours & text in Admin Portal","cookie-notice")," ↗"]}),t.jsxs("span",{className:"cn-banner-panel__sync",children:[g?we(s("Synced %s","cookie-notice"),g):s("Not synced yet","cookie-notice"),(d==null?void 0:d.state)==="failed"&&t.jsx("span",{className:"cn-banner-panel__sync-failed",children:s("Couldn't reach Hu-manity — showing cached settings.","cookie-notice")})]})]}),!h&&v&&t.jsx("p",{className:"cn-banner-panel__preview-help",children:s("Can't see your banner on your own site? That's often normal. It stays hidden when your browser sends Global Privacy Control, when your visitor's region doesn't require a banner, or when you've already made a choice. Preview shows it anyway. Nothing is saved.","cookie-notice")})]})]})}function Mp(i){return{google:s("Google","cookie-notice"),facebook:s("Facebook","cookie-notice"),microsoft:s("Microsoft","cookie-notice"),gpc:s("GPC","cookie-notice"),dnt:s("DNT","cookie-notice")}[i]||i}const Fp=["google","facebook","microsoft","gpc","dnt"];function Ip(){var k,_;const{dashboard:i}=Mn(),{config:c}=jt(),{openLawWizard:u,openConsentPanel:d}=ki(),p=`cn-card__pill cn-card__pill--${Lo()==="live"?"ok":"off"}`,h=wl((k=i==null?void 0:i.appConfig)==null?void 0:k.regulations).map(b=>xl[b]||b.toUpperCase()),m=(_=i==null?void 0:i.appConfig)==null?void 0:_.language,x=m&&Array.isArray(m)?m.length:1,v=Cl((c==null?void 0:c.blocking)||{}),g=Fp.filter(b=>v[b]);return t.jsxs("section",{className:"cn-lls","aria-labelledby":"cn-lls-title",children:[t.jsx("h2",{id:"cn-lls-title",className:"cn-lls__title",children:s("Laws, languages & signals","cookie-notice")}),t.jsxs("div",{className:"cn-lls__row","data-lls":"laws",children:[t.jsx("span",{className:"cn-lls__k",children:s("Laws","cookie-notice")}),t.jsx("div",{className:"cn-lls__v",children:h.length>0?h.map(b=>t.jsxs("span",{className:p,children:[jl[b]?`${jl[b].flag} `:"",b]},b)):t.jsx("span",{className:"cn-lls__none",children:s("No laws selected","cookie-notice")})}),t.jsxs("button",{type:"button",className:"cn-lls__action",onClick:()=>u(),children:[h.length>0?s("Edit laws","cookie-notice"):s("Add laws","cookie-notice")," →"]})]}),t.jsxs("div",{className:"cn-lls__row","data-lls":"languages",children:[t.jsx("span",{className:"cn-lls__k",children:s("Languages","cookie-notice")}),t.jsx("div",{className:"cn-lls__v",children:we(yo("%d language","%d languages",x,"cookie-notice"),x)}),t.jsxs("a",{className:"cn-lls__action",href:`${en}/#/languages`,target:"_blank",rel:"noopener noreferrer",children:[s("Manage languages","cookie-notice")," ↗"]})]}),t.jsxs("div",{className:"cn-lls__row","data-lls":"signals",children:[t.jsx("span",{className:"cn-lls__k",children:s("Consent signals","cookie-notice")}),t.jsx("div",{className:"cn-lls__v",children:g.length>0?g.map(b=>t.jsx("span",{className:p,children:Mp(b)},b)):t.jsx("span",{className:"cn-lls__none",children:s("None switched on","cookie-notice")})}),t.jsxs("button",{type:"button",className:"cn-lls__action",onClick:()=>d(),children:[s("Consent signals","cookie-notice")," →"]})]})]})}const Op=((m1=window.cnReactData)==null?void 0:m1.ruleParams)||[],Up=((g1=window.cnReactData)==null?void 0:g1.ruleOperators)||[];function Bp({rule:i,onChange:c,onRemove:u}){const[d,p]=j.useState([]),[h,m]=j.useState(!1),[x,v]=j.useState(!1),g=j.useCallback(async _=>{if(!_){p([]);return}m(!0);try{const b=await $2(_),A=(b==null?void 0:b.values)||[];A.length>0&&A[0].group?v(!0):v(!1),p(A)}catch{p([])}finally{m(!1)}},[]);j.useEffect(()=>{g(i.param)},[i.param,g]);const k=_=>{c({...i,param:_,value:""})};return t.jsxs("div",{className:"cn-rule-row",children:[t.jsxs("select",{className:"cn-rule-row__param",value:i.param,onChange:_=>k(_.target.value),children:[t.jsx("option",{value:"",children:"-- Select --"}),Op.map(_=>t.jsx("option",{value:_.value,children:_.label},_.value))]}),t.jsx("select",{className:"cn-rule-row__operator",value:i.operator,onChange:_=>c({...i,operator:_.target.value}),children:Up.map(_=>t.jsx("option",{value:_.value,children:_.label},_.value))}),t.jsxs("select",{className:"cn-rule-row__value",value:i.value,onChange:_=>c({...i,value:_.target.value}),disabled:h,children:[t.jsx("option",{value:"",children:h?"Loading…":"-- Select --"}),x?d.map(_=>t.jsx("optgroup",{label:_.group,children:_.items.map(b=>t.jsx("option",{value:b.value,children:b.label},b.value))},_.group)):d.map(_=>t.jsx("option",{value:_.value,children:_.label},_.value))]}),t.jsx("button",{type:"button",className:"cn-rule-row__remove",onClick:u,title:s("Remove rule","cookie-notice"),children:"×"})]})}function $p({group:i,groupIndex:c,onChange:u,onRemove:d}){const p=(x,v)=>{const g=[...i];g[x]=v,u(g)},h=x=>{if(i.length===1){d();return}u(i.filter((v,g)=>g!==x))},m=()=>{u([...i,{param:"",operator:"equal",value:""}])};return t.jsxs("div",{className:"cn-rule-group",children:[c>0&&t.jsx("div",{className:"cn-rule-group__or",children:"OR"}),t.jsxs("div",{className:"cn-rule-group__card",children:[i.map((x,v)=>t.jsxs("div",{children:[v>0&&t.jsx("div",{className:"cn-rule-group__and",children:s("AND","cookie-notice")}),t.jsx(Bp,{rule:x,onChange:g=>p(v,g),onRemove:()=>h(v)})]},v)),t.jsx("button",{type:"button",className:"cn-rule-group__add-rule",onClick:m,children:"+ Add rule"})]})]})}function Wp({rules:i,onChange:c}){const u=!i||Array.isArray(i)&&i.length===0?[]:Array.isArray(i)?i.map(g=>Array.isArray(g)?g.map(k=>({param:k.param||"",operator:k.operator||"equal",value:k.value||""})):Object.values(g).map(k=>({param:k.param||"",operator:k.operator||"equal",value:k.value||""}))):Object.values(i).map(g=>Object.values(g).map(k=>({param:k.param||"",operator:k.operator||"equal",value:k.value||""}))),[d,p]=j.useState(u),h=g=>{p(g),c(g)},m=(g,k)=>{const _=[...d];_[g]=k,h(_)},x=g=>{h(d.filter((k,_)=>_!==g))},v=()=>{h([...d,[{param:"",operator:"equal",value:""}]])};return t.jsxs("div",{className:"cn-rule-builder",children:[d.length===0&&t.jsx("p",{className:"cn-rule-builder__empty",children:s("No rules configured. Add a rule group to control where the banner appears.","cookie-notice")}),d.map((g,k)=>t.jsx($p,{group:g,groupIndex:k,onChange:_=>m(k,_),onRemove:()=>x(k)},k)),t.jsx("button",{type:"button",className:"cn-rule-builder__add-group",onClick:v,children:"+ Add rule group"})]})}const Vl=()=>{var i;return((i=window.cnReactData)==null?void 0:i.expiryOptions)||[]};function an({label:i,checked:c,onChange:u,description:d}){const p=j.useId();return t.jsxs("div",{className:"cn-toggle-row",children:[t.jsxs("label",{className:"cn-toggle-row__label",htmlFor:p,children:[t.jsx("input",{id:p,type:"checkbox",className:"cn-toggle-row__input",checked:c,onChange:h=>u(h.target.checked)}),t.jsx("span",{className:"cn-toggle-row__text",children:i})]}),d&&t.jsx("div",{className:"cn-toggle-row__desc",children:d})]})}function Do({label:i,name:c,value:u,options:d,onChange:p}){return t.jsxs("div",{className:"cn-radio-group",children:[i&&t.jsx("div",{className:"cn-radio-group__label",children:i}),t.jsx("div",{className:"cn-radio-group__options",children:d.map(h=>t.jsxs("label",{className:"cn-radio-group__option",children:[t.jsx("input",{type:"radio",name:c,value:h.value,checked:u===h.value,onChange:()=>p(h.value)}),t.jsx("span",{children:h.label})]},h.value))})]})}function Gp({label:i}){return t.jsxs("div",{className:"cn-form-readonly",children:[t.jsx("label",{className:"cn-form-readonly__label",children:i}),t.jsx("span",{className:"cn-form-readonly__value cn-form-readonly__value--muted",children:s("Managed in Admin Portal","cookie-notice")}),t.jsxs("a",{href:`${en}/#/configuration`,target:"_blank",rel:"noreferrer",className:"cn-form-readonly__link",children:[s("Edit in Admin Portal","cookie-notice")," →"]})]})}function Hl({addNotice:i,options:c,update:u,updateNested:d,save:p,reset:h,loading:m,saved:x,error:v,onOpenConsentPanel:g}){var O,oe,J,B,X,q,W,te,ue,ge,ne,de;const k=((O=window.cnReactData)==null?void 0:O.wpPages)||[],{isConnected:_}=Ze(),[b,A]=j.useState(!1),[C,D]=j.useState("head"),[P,E]=j.useState(!1),I=async()=>{E(!1),await h()&&i&&i(s("Settings restored to defaults.","cookie-notice"),"success")},R=async()=>{if(await p()){if(_){try{await W2()}catch{i&&i(s("Settings saved. The privacy policy link on your banner could not be updated. Please try again.","cookie-notice"),"warning");return}i&&i(s("Settings saved.","cookie-notice"),"success");return}i&&i(s("Settings saved successfully.","cookie-notice"),"success")}};return t.jsxs("div",{className:"cn-plugin-settings",children:[!_&&t.jsxs(t.Fragment,{children:[t.jsxs(Kn,{title:s("Consent Behavior","cookie-notice"),defaultOpen:!0,children:[t.jsx(an,{label:s("Enable refuse button","cookie-notice"),checked:!!c.refuse_opt,onChange:F=>u("refuse_opt",F),description:s("Allow visitors to refuse cookie consent","cookie-notice")}),c.refuse_opt&&t.jsx(Ce,{label:s("Refuse button text","cookie-notice"),value:c.refuse_text||"",onChange:F=>u("refuse_text",F),placeholder:s("No","cookie-notice")}),t.jsx(an,{label:s("Enable Update consent","cookie-notice"),checked:!!c.revoke_cookies,onChange:F=>u("revoke_cookies",F),description:s("Show a control so visitors can reopen the banner and update their consent","cookie-notice")}),c.revoke_cookies&&t.jsxs(t.Fragment,{children:[t.jsx(Do,{label:s("Update consent method","cookie-notice"),name:"revoke_cookies_opt",value:c.revoke_cookies_opt||"automatic",options:[{value:"automatic",label:s("Automatic","cookie-notice")},{value:"manual",label:s("Manual","cookie-notice")}],onChange:F=>u("revoke_cookies_opt",F)}),t.jsx(Ce,{label:s("Update consent button text","cookie-notice"),value:c.revoke_text||"",onChange:F=>u("revoke_text",F),placeholder:s("Update consent","cookie-notice")}),t.jsx(Ce,{label:s("Update consent message","cookie-notice"),type:"textarea",value:c.revoke_message_text||"",onChange:F=>u("revoke_message_text",F)})]}),t.jsx(an,{label:s("Accept on scroll","cookie-notice"),checked:!!c.on_scroll,onChange:F=>u("on_scroll",F),description:s("Automatically accept consent when the user scrolls","cookie-notice")}),c.on_scroll&&t.jsx(Ce,{label:s("Scroll distance (px)","cookie-notice"),type:"number",value:c.on_scroll_offset||100,onChange:F=>u("on_scroll_offset",parseInt(F,10)||0)}),t.jsx(an,{label:s("Accept on click","cookie-notice"),checked:!!c.on_click,onChange:F=>u("on_click",F),description:s("Automatically accept consent on any page click","cookie-notice")}),t.jsx(an,{label:s("Reload page on accept","cookie-notice"),checked:!!c.redirection,onChange:F=>u("redirection",F),description:s("Reload the page after the visitor accepts consent","cookie-notice")})]}),t.jsxs(Kn,{title:s("Cookie Expiry","cookie-notice"),defaultOpen:!0,children:[t.jsx(Ce,{label:s("Accepted expiry","cookie-notice"),type:"select",value:c.time||"month",onChange:F=>u("time",F),options:Vl()}),t.jsx(Ce,{label:s("Rejected expiry","cookie-notice"),type:"select",value:c.time_rejected||"month",onChange:F=>u("time_rejected",F),options:Vl()})]})]}),t.jsxs(Kn,{title:s("Privacy Policy","cookie-notice"),defaultOpen:!0,children:[t.jsx(an,{label:s("Enable privacy policy link","cookie-notice"),checked:!!c.see_more,onChange:F=>u("see_more",F)}),c.see_more&&(_?t.jsxs(t.Fragment,{children:[k.length>0&&t.jsx(Ce,{label:s("Select page","cookie-notice"),type:"select",value:((oe=c.see_more_opt)==null?void 0:oe.id)||"",onChange:F=>{d("see_more_opt","link_type","page"),d("see_more_opt","id",parseInt(F,10)||0)},options:[{value:"",label:s("— Select a page —","cookie-notice")},...k.map(F=>({value:String(F.id),label:F.title}))]}),t.jsx(an,{label:s("Sync with WordPress Privacy Page","cookie-notice"),checked:!!((J=c.see_more_opt)!=null&&J.sync),onChange:F=>{F&&d("see_more_opt","link_type","page"),d("see_more_opt","sync",F)}}),t.jsx(Gp,{label:s("Link text and appearance","cookie-notice")})]}):t.jsxs(t.Fragment,{children:[t.jsx(Ce,{label:s("Link text","cookie-notice"),value:((B=c.see_more_opt)==null?void 0:B.text)||"",onChange:F=>d("see_more_opt","text",F),placeholder:s("Privacy policy","cookie-notice")}),t.jsx(Do,{label:s("Link type","cookie-notice"),name:"see_more_link_type",value:((X=c.see_more_opt)==null?void 0:X.link_type)||"page",options:[{value:"page",label:s("Page link","cookie-notice")},{value:"custom",label:s("Custom link","cookie-notice")}],onChange:F=>d("see_more_opt","link_type",F)}),((q=c.see_more_opt)==null?void 0:q.link_type)==="page"&&k.length>0&&t.jsx(Ce,{label:s("Select page","cookie-notice"),type:"select",value:((W=c.see_more_opt)==null?void 0:W.id)||"",onChange:F=>d("see_more_opt","id",parseInt(F,10)||0),options:[{value:"",label:s("— Select a page —","cookie-notice")},...k.map(F=>({value:String(F.id),label:F.title}))]}),((te=c.see_more_opt)==null?void 0:te.link_type)==="custom"&&t.jsx(Ce,{label:s("Custom URL","cookie-notice"),value:((ue=c.see_more_opt)==null?void 0:ue.link)||"",onChange:F=>d("see_more_opt","link",F),placeholder:"https://"}),t.jsx(an,{label:s("Sync with WordPress Privacy Page","cookie-notice"),checked:!!((ge=c.see_more_opt)!=null&&ge.sync),onChange:F=>d("see_more_opt","sync",F)}),t.jsx(Do,{label:s("Open link in","cookie-notice"),name:"link_target",value:c.link_target||"_blank",options:[{value:"_blank",label:s("New tab","cookie-notice")},{value:"_self",label:s("Same tab","cookie-notice")}],onChange:F=>u("link_target",F)}),t.jsx(Do,{label:s("Link position","cookie-notice"),name:"link_position",value:c.link_position||"banner",options:[{value:"banner",label:s("Banner","cookie-notice")},{value:"message",label:s("Message","cookie-notice")}],onChange:F=>u("link_position",F)})]}))]}),t.jsxs(Kn,{title:s("Custom Scripts","cookie-notice"),defaultOpen:!0,children:[t.jsxs("div",{className:"cn-pill-toggle",children:[t.jsx("button",{type:"button",className:`cn-pill-toggle__btn${C==="head"?" cn-pill-toggle__btn--active":""}`,onClick:()=>D("head"),children:s("Head","cookie-notice")}),t.jsx("button",{type:"button",className:`cn-pill-toggle__btn${C==="body"?" cn-pill-toggle__btn--active":""}`,onClick:()=>D("body"),children:s("Body","cookie-notice")})]}),C==="head"?t.jsxs(t.Fragment,{children:[t.jsx("p",{className:"cn-pill-toggle-desc",children:s("Code to be added in your site header, before the closing head tag.","cookie-notice")}),t.jsx(Ce,{type:"textarea",value:c.refuse_code_head||"",onChange:F=>u("refuse_code_head",F),placeholder:s("<!-- e.g. Google Analytics -->","cookie-notice"),rows:6})]}):t.jsxs(t.Fragment,{children:[t.jsx("p",{className:"cn-pill-toggle-desc",children:s("Code to be added in your site footer, before the closing body tag.","cookie-notice")}),t.jsx(Ce,{type:"textarea",value:c.refuse_code||"",onChange:F=>u("refuse_code",F),placeholder:s("<!-- e.g. tracking scripts -->","cookie-notice"),rows:6})]}),t.jsx("p",{className:"cn-pill-toggle-note",children:s("Enter non-functional cookies JavaScript code (e.g. Google Analytics) to be used after the visitor consent is given.","cookie-notice")})]}),t.jsxs(Kn,{title:s("Display & Animation","cookie-notice"),defaultOpen:!0,children:[!_&&t.jsxs("div",{className:"cn-form-field",children:[t.jsx("label",{className:"cn-form-field__label",htmlFor:"cn-bar-opacity",children:we(s("Bar opacity: %d%%","cookie-notice"),((ne=c.colors)==null?void 0:ne.bar_opacity)??100)}),t.jsx("input",{id:"cn-bar-opacity",type:"range",className:"cn-opacity-slider",min:50,max:100,value:((de=c.colors)==null?void 0:de.bar_opacity)??100,onChange:F=>d("colors","bar_opacity",parseInt(F.target.value,10))})]}),t.jsx(Ce,{label:s("Custom button CSS class","cookie-notice"),value:c.css_class||"",onChange:F=>u("css_class",F),placeholder:s("e.g. my-custom-btn","cookie-notice"),helper:s(_?"Adds CSS classes to the [cookies_revoke] and [cookies_policy_link] shortcode buttons.":"Add custom CSS classes to the accept button","cookie-notice")})]}),t.jsxs(Kn,{title:s("Technical Settings","cookie-notice"),defaultOpen:!0,children:[_&&t.jsxs(t.Fragment,{children:[t.jsx(an,{label:s("Bot detection","cookie-notice"),checked:!!(c.bot_detection??!0),onChange:F=>u("bot_detection",F),description:s("Automatically detect and handle bots/crawlers","cookie-notice")}),t.jsx(an,{label:s("AMP support","cookie-notice"),checked:!!c.amp_support,onChange:F=>u("amp_support",F),description:s("Enable AMP-compatible consent notice","cookie-notice")}),t.jsx(an,{label:s("WP Consent API","cookie-notice"),checked:!!(c.wp_consent_api??!0),onChange:F=>u("wp_consent_api",F),description:s("Register as the active CMP for cooperative plugins (WooCommerce, Site Kit, Burst Statistics, etc.). Requires the WP Consent API plugin to be active.","cookie-notice")}),t.jsx(an,{label:s("Caching compatibility","cookie-notice"),checked:!!(c.caching_compatibility??!0),onChange:F=>u("caching_compatibility",F),description:s("Improve compatibility with caching plugins","cookie-notice")}),t.jsx(an,{label:s("Debug mode","cookie-notice"),checked:!!c.debug_mode,onChange:F=>u("debug_mode",F),description:s("Enable debug logging for troubleshooting","cookie-notice")}),t.jsx(Ce,{label:s("Excluded script handles","cookie-notice"),type:"textarea",value:Array.isArray(c.excluded_handles)?c.excluded_handles.join(` 1061 `):c.excluded_handles||"",onChange:F=>u("excluded_handles",F),placeholder:`elementor-frontend 1062 my-analytics-init`,rows:4,helper:s("Enter WordPress script handles to exclude from autoblocking, one per line. These scripts will be marked as Essential (Category 1) and never blocked.","cookie-notice")})]}),!_&&t.jsx(Do,{label:s("Script placement","cookie-notice"),name:"script_placement",value:c.script_placement||"header",options:[{value:"header",label:s("Header","cookie-notice")},{value:"footer",label:s("Footer","cookie-notice")}],onChange:F=>u("script_placement",F)}),t.jsx(an,{label:s("Conditional display","cookie-notice"),checked:!!c.conditional_active,onChange:F=>u("conditional_active",F),description:s("Show or hide the banner on specific pages","cookie-notice")}),c.conditional_active&&t.jsxs(t.Fragment,{children:[t.jsx(Ce,{label:s("Display rule","cookie-notice"),type:"select",value:c.conditional_display||"hide",onChange:F=>u("conditional_display",F),options:[{value:"hide",label:s("Hide the banner","cookie-notice")},{value:"show",label:s("Show the banner","cookie-notice")}]}),t.jsx(Wp,{rules:c.conditional_rules||[],onChange:F=>u("conditional_rules",F)})]}),t.jsx(an,{label:s("Delete data on deactivation","cookie-notice"),checked:!!c.deactivation_delete,onChange:F=>u("deactivation_delete",F),description:s("Remove all plugin data when the plugin is deactivated","cookie-notice")}),_&&t.jsxs("div",{className:"cn-purge-cache",children:[t.jsx(Ue,{variant:"secondary",onClick:async()=>{A(!0);try{await H2(),i&&i(s("Cache purged successfully.","cookie-notice"),"success")}catch(F){i&&i(F.message||s("Purge failed. Please try again.","cookie-notice"),"error")}finally{A(!1)}},disabled:b,children:s(b?"Purging…":"Purge Cache","cookie-notice")}),t.jsx("p",{className:"cn-purge-cache__desc",children:s("Click to refresh the app configuration cache.","cookie-notice")})]})]}),t.jsxs("div",{className:"cn-plugin-settings__actions",children:[t.jsx(Ue,{variant:"primary",onClick:R,disabled:m,children:s(m?"Saving…":_?"Save WordPress Settings":"Save Settings","cookie-notice")}),x&&t.jsxs("span",{className:"cn-plugin-settings__saved",children:["✓"," ",s("Saved","cookie-notice")]}),v&&t.jsx("span",{className:"cn-plugin-settings__error",children:v}),h&&!P&&t.jsx(Ue,{variant:"secondary",onClick:()=>E(!0),disabled:m,children:s("Reset to defaults","cookie-notice")})]}),P&&t.jsxs("div",{className:"cn-plugin-settings__reset-confirm",role:"alertdialog","aria-labelledby":"cn-reset-confirm-text",children:[t.jsx("p",{id:"cn-reset-confirm-text",children:s("Restore the banner and plugin settings on this screen to their defaults? Your connection, the new admin interface and your protection switches are kept.","cookie-notice")}),t.jsx(Ue,{variant:"primary",onClick:I,disabled:m,children:s("Yes, reset settings","cookie-notice")}),t.jsx(Ue,{variant:"secondary",onClick:()=>E(!1),children:s("Cancel","cookie-notice")})]})]})}function Kl({addNotice:i}){const c=window.cnReactData||{},u=!!c.globalCookieAvailable,[d,p]=j.useState(()=>{var A,C;return{global_override:!!((A=c.options)!=null&&A.global_override),global_cookie:!!((C=c.options)!=null&&C.global_cookie)}}),[h,m]=j.useState(!1),[x,v]=j.useState(!1),g=j.useId(),k=j.useId(),_=(A,C)=>{p({...d,[A]:C}),v(!1)},b=async()=>{var A,C;m(!0),v(!1);try{const D=await I2(d);p({global_override:!!((A=D==null?void 0:D.options)!=null&&A.global_override),global_cookie:!!((C=D==null?void 0:D.options)!=null&&C.global_cookie)}),v(!0)}catch(D){i&&i(D.message||s("Request failed","cookie-notice"),"error")}finally{m(!1)}};return t.jsxs(Kn,{title:s("Network Settings","cookie-notice"),defaultOpen:!0,children:[t.jsxs("div",{className:"cn-toggle-row",children:[t.jsx("div",{className:"cn-radio-group__label",children:s("Global Settings Override","cookie-notice")}),t.jsxs("label",{className:"cn-toggle-row__label",htmlFor:g,children:[t.jsx("input",{id:g,type:"checkbox",className:"cn-toggle-row__input",checked:d.global_override,onChange:A=>_("global_override",A.target.checked)}),t.jsx("span",{className:"cn-toggle-row__text",children:s("Enable global network settings override.","cookie-notice")})]}),t.jsx("div",{className:"cn-toggle-row__desc",children:s("Every site in the network will use the same settings. Site administrators will not be able to change them.","cookie-notice")})]}),t.jsxs("div",{className:"cn-toggle-row",children:[t.jsx("div",{className:"cn-radio-group__label",children:s("Global Cookie","cookie-notice")}),t.jsxs("label",{className:"cn-toggle-row__label",htmlFor:k,children:[t.jsx("input",{id:k,type:"checkbox",className:"cn-toggle-row__input",checked:d.global_cookie,disabled:!u,onChange:A=>_("global_cookie",A.target.checked)}),t.jsx("span",{className:"cn-toggle-row__text",children:s("Enable global network cookie consent.","cookie-notice")})]}),t.jsxs("div",{className:"cn-toggle-row__desc",children:[s("Cookie consent in one of the network sites results in a consent in all of the sites on the network.","cookie-notice"),!u&&t.jsxs(t.Fragment,{children:[" ",s("This option works only for domain-based networks.","cookie-notice")]})]})]}),t.jsxs("div",{className:"cn-plugin-settings__actions",children:[t.jsx(Ue,{variant:"primary",onClick:b,disabled:h,children:s(h?"Saving…":"Save network settings","cookie-notice")}),x&&t.jsxs("span",{className:"cn-plugin-settings__saved",children:["✓"," ",s("Saved","cookie-notice")]})]})]})}function Vp({onConnect:i}){const c=Re();return t.jsxs(t.Fragment,{children:[t.jsx(On,{title:s("Domain Info","cookie-notice"),children:t.jsxs("div",{className:"cn-dom-rows",children:[t.jsxs("div",{className:"cn-dom-row",children:[t.jsx("span",{className:"cn-dom-row__k",children:s("Domain","cookie-notice")}),t.jsx("span",{className:"cn-dom-row__v",children:window.location.hostname})]}),t.jsxs("div",{className:"cn-dom-row",children:[t.jsx("span",{className:"cn-dom-row__k",children:s("Status","cookie-notice")}),t.jsxs("span",{className:"cn-dom-row__v",children:[t.jsx("span",{className:"cn-dot cn-dot--gray"})," ",s(c?"Managed by network":"Not connected","cookie-notice")]})]})]})}),!c&&t.jsxs(On,{title:s("Why Connect?","cookie-notice"),children:[t.jsxs("ul",{className:"cn-benefit-list",children:[t.jsxs("li",{className:"cn-benefit-item",children:[t.jsx("span",{className:"cn-benefit-icon",children:"✓"}),t.jsx("span",{children:s("Automated script blocking before visitor consent","cookie-notice")})]}),t.jsxs("li",{className:"cn-benefit-item",children:[t.jsx("span",{className:"cn-benefit-icon",children:"✓"}),t.jsx("span",{children:s("Cookie categorization across your entire site","cookie-notice")})]}),t.jsxs("li",{className:"cn-benefit-item",children:[t.jsx("span",{className:"cn-benefit-icon",children:"✓"}),t.jsx("span",{children:s("Consent proof collection for legal audit trails","cookie-notice")})]}),t.jsxs("li",{className:"cn-benefit-item",children:[t.jsx("span",{className:"cn-benefit-icon",children:"✓"}),t.jsx("span",{children:s("Visitor analytics and consent rate reporting","cookie-notice")})]}),t.jsxs("li",{className:"cn-benefit-item",children:[t.jsx("span",{className:"cn-benefit-icon",children:"✓"}),t.jsx("span",{children:s("Google Consent Mode v2 (Facebook & Microsoft on Pro)","cookie-notice")})]})]}),t.jsx("div",{className:"cn-connect-cta",children:t.jsxs("button",{className:"cn-button cn-button--primary cn-connect-cta__btn",onClick:i,type:"button",children:[s("Connect Your Site","cookie-notice")," →"]})})]})]})}function Hp({addNotice:i,onOpenPricingModal:c}){return t.jsxs(t.Fragment,{children:[t.jsx(Wt,{addNotice:i}),t.jsx(op,{onOpenPricingModal:c})]})}function Kp({addNotice:i,onOpenWelcomeModal:c,onOpenPricingModal:u}){var C;const{isBannerOnly:d}=Ze(),p=m3(),h=!!((C=window.cnReactData)!=null&&C.network),{showLawWizard:m,lawClosing:x,lawScrollTrigger:v,closeLawWizard:g,showConsentPanel:k,consentClosing:_,consentScrollTrigger:b,closeConsentPanel:A}=ki();if(d){const D=p.networkManaged;return t.jsxs(In,{sidebar:t.jsx(Vp,{onConnect:c}),children:[t.jsxs("div",{className:"cn-protection-header",children:[t.jsx("h1",{className:"cn-protection-header__title",children:s("Cookie Consent","cookie-notice")}),t.jsx("p",{className:"cn-protection-header__subtitle",children:s(D?"Managed by your network administrator — this site uses the network settings.":"Connect your site to enable consent management features.","cookie-notice")})]}),h&&t.jsx(Kl,{addNotice:i}),t.jsxs(as,{managed:D,perSite:p.perSite,children:[D&&t.jsx(Gl,{}),t.jsx(sp,{options:p.options,update:p.update,save:p.save,loading:p.loading,saved:p.saved,error:p.error}),t.jsx(yp,{options:p.options,update:p.update,updateNested:p.updateNested}),!D&&t.jsx(_p,{onConnect:c}),t.jsx(Hl,{addNotice:i,options:p.options,update:p.update,updateNested:p.updateNested,save:p.save,reset:p.reset,loading:p.loading,saved:p.saved,error:p.error})]})]})}return t.jsxs(In,{sidebar:t.jsx(Hp,{addNotice:i,onOpenPricingModal:u}),children:[t.jsxs("div",{className:"cn-protection-header",children:[t.jsx("h1",{className:"cn-protection-header__title",children:s("Cookie Consent","cookie-notice")}),t.jsx("p",{className:"cn-protection-header__subtitle",children:s("Manage your banner, laws, consent signals, and languages.","cookie-notice")})]}),h&&t.jsx(Kl,{addNotice:i}),t.jsxs(as,{managed:p.networkManaged,perSite:p.perSite,children:[!p.perSite&&t.jsx(Gl,{}),t.jsx(Ip,{}),m&&t.jsx(Tl,{onClose:g,onSave:g,scrollTrigger:v,isClosing:x}),k&&t.jsx(Fl,{isOpen:!0,onClose:A,addNotice:i,onOpenPricingModal:u,onApplied:()=>{},scrollTrigger:b,isClosing:_}),t.jsx(Cp,{wpOptions:p.options,confirmedOptions:p.confirmed,update:p.update,scheduleSave:p.scheduleSave,blockingPaused:p.blockingPaused,blockingState:p.blockingState,savingKeys:p.savingKeys,unconfirmedKeys:p.unconfirmedKeys,checkingKeys:p.checkingKeys,pullUnknownKeys:p.pullUnknownKeys,autoSaveError:p.autoSaveError,onOpenPricingModal:u}),t.jsx(Hl,{addNotice:i,options:p.options,update:p.update,updateNested:p.updateNested,save:p.save,reset:p.reset,loading:p.loading,saved:p.saved,error:p.error})]})]})}function Ii({title:i,action:c,onAction:u}){return t.jsxs("div",{className:"cn-section-header",children:[t.jsx("h2",{children:i}),c&&t.jsx("button",{type:"button",className:"cn-section-header__action",onClick:u,children:c})]})}function Yp({onActivate:i}){return t.jsxs("div",{className:"cn-empty-hero",children:[t.jsxs("svg",{className:"cn-empty-hero__icon",viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("circle",{cx:"40",cy:"40",r:"40",fill:"#f0faf7"}),t.jsx("rect",{x:"22",y:"16",width:"36",height:"46",rx:"4",fill:"#fff",stroke:"#e0e4e8",strokeWidth:"1.5"}),t.jsx("rect",{x:"29",y:"26",width:"22",height:"2.5",rx:"1.25",fill:"#e0e4e8"}),t.jsx("rect",{x:"29",y:"33",width:"18",height:"2.5",rx:"1.25",fill:"#e0e4e8"}),t.jsx("rect",{x:"29",y:"40",width:"20",height:"2.5",rx:"1.25",fill:"#e0e4e8"}),t.jsx("circle",{cx:"54",cy:"56",r:"14",fill:"#20c19e"}),t.jsx("path",{d:"M54 44.5l-7 3.5v5.25c0 4.594 2.975 8.881 7 9.931 4.025-1.05 7-5.337 7-9.931V48l-7-3.5z",fill:"white",fillOpacity:"0.9"}),t.jsx("path",{d:"M52.1 56.45l-2.1-2.1.96-.96 1.14 1.14 3.06-3.06.96.96-4.02 4.02z",fill:"#20c19e"})]}),t.jsx("div",{className:"cn-empty-hero__heading",children:s("No Compliance Records","cookie-notice")}),t.jsx("div",{className:"cn-empty-hero__sub",children:s("Connect to Cookie Compliance to start collecting consent proofs, audit logs, and compliance evidence.","cookie-notice")}),t.jsx(Ue,{variant:"primary",onClick:i,children:s("Connect Your Site","cookie-notice")}),t.jsx("div",{className:"cn-empty-hero__footnote",children:s("Connect your site · Free · Takes 60 seconds","cookie-notice")})]})}function Yl({breakdown:i,loading:c}){const u=i&&i.total>0,d=(i==null?void 0:i.levelLabels)||{},p=d.level3||s("Accept","cookie-notice"),h=d.level2||s("Custom","cookie-notice"),m=d.level1||s("Reject","cookie-notice"),x=u?[{value:i.total.toLocaleString(),label:s("Total Consents","cookie-notice")},{value:`${i.acceptRate}%`,label:p},{value:`${i.customRate}%`,label:h},{value:`${i.rejectRate}%`,label:m}]:[{value:c?"…":"—",label:s("Total Consents","cookie-notice")},{value:c?"…":"—",label:p},{value:c?"…":"—",label:h},{value:c?"…":"—",label:m}];return t.jsx("div",{className:"cn-consent-stats",children:x.map(v=>t.jsxs("div",{className:"cn-consent-stat",children:[t.jsx("div",{className:"cn-consent-stat__value",children:v.value}),t.jsx("div",{className:"cn-consent-stat__label",children:v.label})]},v.label))})}function Fs({columns:i,rows:c,expandable:u=!1,renderExpanded:d,pageSize:p=20,currentPage:h=1,totalPages:m=1,onPageChange:x,onSort:v,sortColumn:g,sortDirection:k="asc",emptyMessage:_=s("No data available","cookie-notice")}){const[b,A]=j.useState(new Set),C=E=>{u&&A(I=>{const R=new Set(I);return R.has(E)?R.delete(E):R.add(E),R})},D=E=>{if(!E.sortable||!v)return;const I=g===E.key&&k==="asc"?"desc":"asc";v(E.key,I)},P=E=>E.sortable?g!==E.key?t.jsx("span",{className:"cn-data-table__sort",children:t.jsx(mp,{size:14})}):t.jsx("span",{className:"cn-data-table__sort cn-data-table__sort--active",children:k==="asc"?"↑":"↓"}):null;return t.jsxs("div",{className:"cn-data-table",children:[t.jsxs("table",{className:"cn-data-table__table",children:[t.jsx("thead",{children:t.jsx("tr",{className:"cn-data-table__header",children:i.map(E=>t.jsxs("th",{className:`cn-data-table__th${E.sortable?" cn-data-table__th--sortable":""}`,onClick:()=>D(E),children:[E.label,P(E)]},E.key))})}),t.jsxs("tbody",{children:[(!c||c.length===0)&&t.jsx("tr",{children:t.jsx("td",{className:"cn-data-table__td cn-data-table__empty",colSpan:i.length,children:_})}),c==null?void 0:c.map((E,I)=>t.jsxs(t.Fragment,{children:[t.jsx("tr",{className:`cn-data-table__row${u?" cn-data-table__row--expandable":""}${b.has(I)?" cn-data-table__row--expanded":""}`,onClick:()=>C(I),children:i.map(R=>t.jsx("td",{className:"cn-data-table__td",children:E[R.key]??"—"},R.key))},I),u&&b.has(I)&&d&&t.jsx("tr",{className:"cn-data-table__expanded-row",children:t.jsx("td",{colSpan:i.length,className:"cn-data-table__expanded",children:d(E,I)})},`${I}-expanded`)]}))]})]}),m>1&&t.jsxs("div",{className:"cn-data-table__pagination",children:[t.jsx("button",{type:"button",className:"cn-data-table__page-btn",disabled:h<=1,onClick:()=>x==null?void 0:x(h-1),"aria-label":s("Previous page","cookie-notice"),children:"«"}),t.jsxs("span",{className:"cn-data-table__page-info",children:["Page ",h," of ",m]}),t.jsx("button",{type:"button",className:"cn-data-table__page-btn",disabled:h>=m,onClick:()=>x==null?void 0:x(h+1),"aria-label":s("Next page","cookie-notice"),children:"»"})]})]})}function ql({startDate:i,endDate:c,onChange:u,maxRange:d,disabled:p}){const h=v=>{const g=v.target.value;let k=c;if(d&&k){const _=new Date(g),b=new Date(k);if(Math.ceil((b-_)/(1e3*60*60*24))>d){const C=new Date(_);C.setDate(C.getDate()+d),k=C.toISOString().split("T")[0]}}u==null||u({startDate:g,endDate:k})},m=v=>{const g=v.target.value;let k=i;if(d&&k){const _=new Date(k),b=new Date(g);if(Math.ceil((b-_)/(1e3*60*60*24))>d){const C=new Date(b);C.setDate(C.getDate()-d),k=C.toISOString().split("T")[0]}}u==null||u({startDate:k,endDate:g})},x=new Date().toISOString().split("T")[0];return t.jsxs("div",{className:"cn-date-range",children:[t.jsx("input",{type:"date",className:"cn-form-field__input cn-date-range__input",value:i||"",onChange:h,max:c||x,disabled:p}),t.jsx("span",{className:"cn-date-range__separator",children:"to"}),t.jsx("input",{type:"date",className:"cn-form-field__input cn-date-range__input",value:c||"",onChange:m,min:i||void 0,max:x,disabled:p}),d&&t.jsxs("span",{className:"cn-date-range__limit",children:[d,"-day max"]})]})}const qp={3:"accept",2:"custom",1:"reject"},Qp={Essential:"essential",Analytics:"analytics",Marketing:"marketing",Functional:"functional"},Zp=()=>[{key:"id",label:s("Consent ID","cookie-notice"),sortable:!0},{key:"level",label:s("Consent Level","cookie-notice"),sortable:!0},{key:"categories",label:s("Categories","cookie-notice"),sortable:!1},{key:"date",label:s("Date / Time","cookie-notice"),sortable:!0},{key:"ip",label:s("IP Address","cookie-notice"),sortable:!1}];function Xp(i){return{id:t.jsx("span",{className:"cn-consent-id",children:i.id}),level:t.jsx("span",{className:`cn-level-pill cn-level-pill--${qp[i.levelNum]||"custom"}`,children:i.level}),categories:t.jsx("div",{className:"cn-cat-tags",children:(i.categories||[]).map(c=>t.jsx("span",{className:`cn-cat-tag cn-cat-tag--${Qp[c]||"essential"}`,children:c},c))}),date:i.date,ip:t.jsxs("span",{className:"cn-ip-masked",children:[i.ip," ",t.jsx(zs,{size:14,style:{verticalAlign:"middle"}})]})}}function Ql({maxRange:i,onStatsUpdate:c}){const u=new Date().toISOString().split("T")[0],d=new Date(Date.now()-10080*60*1e3).toISOString().split("T")[0],[p,h]=j.useState({startDate:d,endDate:u}),[m,x]=j.useState(1),[v,g]=j.useState("date"),[k,_]=j.useState("desc"),[b,A]=j.useState([]),[C,D]=j.useState(0),[P,E]=j.useState(0),[I,R]=j.useState(!0),[O,oe]=j.useState(null),[J,B]=j.useState(!1),X=j.useRef(""),q=j.useCallback(async()=>{R(!0),oe(null);const ue=`${p.startDate}|${p.endDate}`;try{const ge=await T2({page:m,start_date:p.startDate,end_date:p.endDate,sort:v,order:k});A((ge.logs||[]).map(Xp)),D(ge.totalPages||0),E(ge.total||0),B(!!ge.inactive),c&&ue!==X.current&&(X.current=ue,c(ge.consentBreakdown||null))}catch(ge){oe(ge.message||s("Failed to load consent logs.","cookie-notice")),c&&ue!==X.current&&(X.current=ue,c(null))}finally{R(!1)}},[m,p,v,k]);j.useEffect(()=>{q()},[q]);const W=ue=>{h(ue),x(1)},te=(ue,ge)=>{g(ue),_(ge),x(1)};return t.jsxs("div",{className:"cn-consent-log-table",children:[t.jsxs("div",{className:"cn-consent-log-table__controls",children:[t.jsx(ql,{startDate:p.startDate,endDate:p.endDate,onChange:W,maxRange:i}),P>0&&t.jsxs("span",{className:"cn-consent-log-table__count",children:[P.toLocaleString()," record",P!==1?"s":""]})]}),O&&t.jsx("div",{className:"cn-notice cn-notice--error",children:O}),t.jsx(Fs,{columns:Zp(),rows:b,pageSize:10,currentPage:m,totalPages:C,onPageChange:x,onSort:te,sortColumn:v,sortDirection:k,loading:I,emptyMessage:s(J?"Consent records appear here once Cookie Compliance is active.":"No consent records found for selected date range.","cookie-notice")})]})}const Jp=()=>[{key:"subject",label:s("Subject","cookie-notice"),sortable:!1},{key:"preferences",label:s("Preferences","cookie-notice"),sortable:!1},{key:"source",label:s("Source","cookie-notice"),sortable:!1},{key:"form",label:s("Form","cookie-notice"),sortable:!1},{key:"date",label:s("Date","cookie-notice"),sortable:!1},{key:"ip",label:s("IP address","cookie-notice"),sortable:!1}],e0=i=>{var c;return{subject:i.subject||"—",preferences:(c=i.preferences)!=null&&c.length?i.preferences.join(", "):"—",source:i.source||"—",form:i.form||"—",date:i.date||"—",ip:i.ip||"—"}};function Zl({isFree:i}){const[c,u]=j.useState(1),[d,p]=j.useState([]),[h,m]=j.useState(0),[x,v]=j.useState(!1),[g,k]=j.useState(!0),[_,b]=j.useState(null);return j.useEffect(()=>{let A=!1;return k(!0),b(null),M2({page:c}).then(C=>{A||(p((C.logs||[]).map(e0)),m(C.totalPages||0),v(!!C.inactive))}).catch(C=>{A||(p([]),b(C.message||s("Failed to load consent logs.","cookie-notice")))}).finally(()=>!A&&k(!1)),()=>{A=!0}},[c]),t.jsxs("div",{className:"cn-consent-log-table cn-privacy-consent-logs",children:[t.jsxs("p",{className:"cn-privacy-consent-logs__desc",children:[s("The table below shows the latest privacy consent records collected from the forms on your website.","cookie-notice"),i&&t.jsxs(t.Fragment,{children:[" ",s("Note: sites on the Cookie Compliance Free Plan can collect up to 100 records.","cookie-notice")]})]}),_&&t.jsx("div",{className:"cn-notice cn-notice--error",children:_}),t.jsx(Fs,{columns:Jp(),rows:d,currentPage:c,totalPages:h,onPageChange:u,emptyMessage:s(g?"Loading…":x?"Privacy consent records appear here once Cookie Compliance is active.":"No privacy consent logs found.","cookie-notice")})]})}const Xl={pass:{icon:t.jsx(Ul,{size:16}),cls:"pass"},warn:{icon:t.jsx(Bl,{size:16}),cls:"warn"},na:{icon:"–",cls:"na"}};function n0({items:i}){return t.jsx("div",{className:"cn-evidence-panel",children:i.map((c,u)=>{const d=Xl[c.status]||Xl.na;return t.jsxs("div",{className:"cn-evidence-item",children:[t.jsx("span",{className:`cn-evidence-item__icon cn-evidence-item__icon--${d.cls}`,children:d.icon}),t.jsx("span",{className:"cn-evidence-item__text",children:c.text})]},u)})})}function Jl({proLocked:i=!1,onOpenPricingModal:c}){const[u,d]=j.useState("gdpr"),{dashboard:p}=Mn(),{config:h}=jt(),x=!!((h==null?void 0:h.blocking)||{}).gpc_support,v=(p==null?void 0:p.consentCount)??0,g=Lo(),k=g==="live",_=os(g),b=k?"pass":g==="inactive"||g==="pending"?"warn":"na",A=bs(),C=[{status:b,text:k?s("Consent banner active on all pages","cookie-notice"):we(s("Consent banner on all pages — %s","cookie-notice"),_)},{status:b,text:k?s("Cookie categories clearly defined","cookie-notice"):we(s("Cookie categories — %s","cookie-notice"),_)},{status:"na",text:s("Data retention policy — verify in Admin Portal","cookie-notice")},{status:"na",text:s("DPO contact details — verify in Admin Portal","cookie-notice")}],D=[{status:x?b:"warn",text:x?k?s("Do Not Sell / Share signal honored (GPC active)","cookie-notice"):we(s("Do Not Sell / Share signal — %s","cookie-notice"),_):s("Do Not Sell / Share signal — enable GPC in Consent Signals","cookie-notice")},{status:b,text:k?s("Opt-out mechanism functional","cookie-notice"):we(s("Opt-out mechanism — %s","cookie-notice"),_)},{status:"na",text:s("Privacy policy link in banner — verify in Admin Portal","cookie-notice")},{status:"na",text:s("Consumer rights request handling — verify in Admin Portal","cookie-notice")}];function P(){const O=oe=>we(s("Prior consent — %s","cookie-notice"),oe);return k?A==="active"?{status:"pass",text:s("Prior consent — known trackers held until visitors agree","cookie-notice")}:A==="off"?{status:"warn",text:O(s("Autoblocking off — trackers may fire unblocked","cookie-notice"))}:A==="paused"?{status:"warn",text:O(s("Autoblocking paused — visit limit reached","cookie-notice"))}:A==="saving"?{status:"na",text:O(s("Saving autoblocking…","cookie-notice"))}:{status:"na",text:O(s("Not confirmed — reload to see the saved value","cookie-notice"))}:{status:b,text:O(_)}}const E=[P(),Re()?{status:"na",text:s("Consent withdrawal — verify in the network admin","cookie-notice")}:k?{status:v>0?"pass":"warn",text:v>0?s("Consent withdrawal mechanism available and in use","cookie-notice"):s("Consent withdrawal — no consent records yet; verify banner is live","cookie-notice")}:{status:b,text:we(s("Consent withdrawal — %s","cookie-notice"),_)},{status:"na",text:s("Cookie lifetime disclosure — verify in Admin Portal","cookie-notice")},{status:"na",text:s("Legitimate interest assessment — verify in Admin Portal","cookie-notice")}],I=[{key:"gdpr",label:s("GDPR","cookie-notice"),items:C,locked:!1},{key:"ccpa",label:s("CCPA","cookie-notice"),items:D,locked:!1},{key:"eprivacy",label:s("ePrivacy","cookie-notice"),items:E,locked:i}],R=I.find(O=>O.key===u);return t.jsxs("div",{className:"cn-compliance-evidence",children:[t.jsx("nav",{className:"cn-evidence-tabs",children:I.map(O=>t.jsxs("button",{type:"button",className:`cn-evidence-tab${u===O.key?" cn-evidence-tab--active":""}`,onClick:()=>d(O.key),children:[O.label,O.locked&&t.jsx(Un,{})]},O.key))}),R!=null&&R.locked?t.jsx("div",{className:"cn-evidence-panel cn-evidence-panel--locked",children:t.jsxs("div",{className:"cn-evidence-lock",children:[t.jsx("span",{className:"cn-evidence-lock__icon",children:t.jsx(zs,{size:24})}),t.jsxs("p",{className:"cn-evidence-lock__msg",children:["ePrivacy compliance evidence is available on Pro.",Re()?"":" Upgrade to unlock."]}),Re()?t.jsx("p",{className:"cn-evidence-lock__msg",children:is()}):t.jsx("button",{type:"button",className:"cn-button cn-button--upgrade",onClick:()=>c&&c(),children:"Upgrade to Pro"})]})}):t.jsx(n0,{items:(R==null?void 0:R.items)||[]})]})}function t0({isPro:i=!1,onOpenPricingModal:c}){const u=new Date().toISOString().split("T")[0],d=new Date(Date.now()-720*60*60*1e3).toISOString().split("T")[0],[p,h]=j.useState({startDate:d,endDate:u}),{exportCsv:m,loading:x,error:v}=g3(),g=()=>{m==null||m({start_date:p.startDate,end_date:p.endDate})};return i?t.jsxs("div",{className:"cn-export-section",children:[t.jsx("div",{className:"cn-export-section__label",children:s("Export Consent Log","cookie-notice")}),t.jsx(ql,{startDate:p.startDate,endDate:p.endDate,onChange:h}),t.jsx(Ue,{variant:"primary",onClick:g,disabled:x,children:x?"Exporting…":"Export CSV"}),v&&t.jsx("div",{className:"cn-export-section__error",children:v})]}):t.jsx(Ss,{requiredTier:"pro",message:s("Upgrade to Pro to export consent logs as CSV.","cookie-notice"),onCta:c,children:t.jsxs("div",{className:"cn-export-section cn-export-section--locked",children:[t.jsx("div",{className:"cn-export-section__label",children:s("Export Consent Log","cookie-notice")}),t.jsx(Ue,{variant:"outline",disabled:!0,children:s("Export CSV","cookie-notice")})]})})}function o0(){const i=[{id:"CID-7F2A9C",level:s("Personalized","cookie-notice"),levelNum:3,date:"2026-02-26 14:37",ip:"192.168.x.x"},{id:"CID-4B1E3D",level:s("Balanced","cookie-notice"),levelNum:2,date:"2026-02-26 13:58",ip:"10.0.x.x"},{id:"CID-9A0F12",level:s("Private","cookie-notice"),levelNum:1,date:"2026-02-26 13:21",ip:"172.16.x.x"},{id:"CID-C3D8E5",level:s("Personalized","cookie-notice"),levelNum:3,date:"2026-02-26 12:04",ip:"192.168.x.x"},{id:"CID-2E6B7A",level:s("Balanced","cookie-notice"),levelNum:2,date:"2026-02-25 22:49",ip:"10.0.x.x"}],c=[{type:"banner",what:s("Position changed to Bottom","cookie-notice"),when:"Feb 25, 14:03"},{type:"setting",what:s("GDPR regulation enabled","cookie-notice"),when:"Feb 23, 09:41"},{type:"scan",what:s("3 new scripts detected & categorized","cookie-notice"),when:"Feb 22, 16:18"},{type:"setting",what:s("Google Consent Mode v2 activated","cookie-notice"),when:"Feb 20, 11:05"}],u={3:"accept",2:"custom",1:"reject"},d={banner:s("Banner","cookie-notice"),setting:s("Setting","cookie-notice"),scan:s("Scan","cookie-notice")};return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"cn-blurred-teaser__section",children:[t.jsxs("div",{className:"cn-blurred-teaser__section-header",children:[t.jsx("span",{className:"cn-blurred-teaser__section-title",children:s("Cookie Consent Log","cookie-notice")}),t.jsx("span",{className:"cn-blurred-teaser__section-meta",children:s("3,241 total records — showing 1–5","cookie-notice")})]}),t.jsxs("table",{className:"cn-blurred-teaser__table",children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:s("Consent ID","cookie-notice")}),t.jsx("th",{children:s("Consent Level","cookie-notice")}),t.jsx("th",{children:s("Date / Time","cookie-notice")}),t.jsx("th",{children:s("IP Address","cookie-notice")})]})}),t.jsx("tbody",{children:i.map(p=>t.jsxs("tr",{children:[t.jsx("td",{children:t.jsx("span",{className:"cn-consent-id",children:p.id})}),t.jsx("td",{children:t.jsx("span",{className:`cn-level-pill cn-level-pill--${u[p.levelNum]}`,children:p.level})}),t.jsx("td",{children:p.date}),t.jsx("td",{children:t.jsx("span",{className:"cn-ip-masked",children:p.ip})})]},p.id))})]})]}),t.jsxs("div",{className:"cn-blurred-teaser__section",children:[t.jsxs("div",{className:"cn-blurred-teaser__section-header",children:[t.jsx("span",{className:"cn-blurred-teaser__section-title",children:s("Config Change History","cookie-notice")}),t.jsx("span",{className:"cn-blurred-teaser__section-meta",children:s("Last 30 days","cookie-notice")})]}),t.jsx("div",{className:"cn-blurred-teaser__timeline",children:c.map((p,h)=>t.jsxs("div",{className:"cn-blurred-teaser__tl-row",children:[t.jsx("div",{className:`cn-blurred-teaser__tl-dot cn-blurred-teaser__tl-dot--${p.type}`}),t.jsxs("div",{className:"cn-blurred-teaser__tl-text",children:[t.jsxs("div",{className:"cn-blurred-teaser__tl-what",children:[t.jsx("span",{className:`cn-change-badge cn-change-badge--${p.type}`,children:d[p.type]}),p.what]}),t.jsx("div",{className:"cn-blurred-teaser__tl-when",children:p.when})]})]},h))})]})]})}function i0(){return t.jsxs(t.Fragment,{children:[t.jsx(Wt,{showPortalLink:!1}),!Re()&&t.jsx(On,{title:s("Why Connect?","cookie-notice"),children:t.jsx("ul",{className:"cn-benefit-list",children:[s("Timestamped consent proofs for every visitor interaction","cookie-notice"),s("Searchable audit log for GDPR and CCPA regulators","cookie-notice"),s("Config change history — who changed what and when","cookie-notice"),s("Exportable compliance evidence in one click","cookie-notice"),s("Prove compliance if you ever face a regulatory inquiry","cookie-notice")].map((i,c)=>t.jsxs("li",{className:"cn-benefit-item",children:[t.jsx("span",{className:"cn-benefit-item__icon",children:t.jsx(Ul,{size:16})}),t.jsx("span",{children:i})]},c))})})]})}function e1({isPro:i,onOpenPricingModal:c,addNotice:u}){return t.jsxs(t.Fragment,{children:[t.jsx(Wt,{addNotice:u}),t.jsxs(On,{title:s("Consent history","cookie-notice"),children:[t.jsxs("div",{className:`cn-retention-info${i?" cn-retention-info--pro":""}`,children:[t.jsx("span",{className:"cn-retention-info__value",children:s(i?"No 7-day limit":"7-day history","cookie-notice")}),t.jsx("span",{className:"cn-retention-info__label",children:s(i?"Pro plan":"Free plan","cookie-notice")})]}),!i&&t.jsx("p",{className:"cn-retention-info__note",children:s("Upgrade to Pro to remove the 7-day limit.","cookie-notice")})]}),t.jsx(On,{title:s("Export","cookie-notice"),children:t.jsx(t0,{isPro:i,onOpenPricingModal:c??void 0})})]})}function r0({addNotice:i,onOpenWelcomeModal:c,onOpenPricingModal:u}){const{isBannerOnly:d,isFree:p}=Ze(),h=Ai(),[m,x]=j.useState(null),[v,g]=j.useState(!0),k=_=>{x(_),g(!1)};if(h)return t.jsxs(In,{sidebar:t.jsx(Wt,{addNotice:i}),children:[t.jsx("div",{className:"cn-protection-header",children:t.jsx("h1",{className:"cn-protection-header__title",children:s("Consent Logs","cookie-notice")})}),t.jsx(ss,{})]});if(d){const _=Re();return t.jsxs(In,{sidebar:t.jsx(i0,{}),children:[t.jsxs("div",{className:"cn-protection-header",children:[t.jsx("h1",{className:"cn-protection-header__title",children:s("Consent Logs","cookie-notice")}),t.jsx("p",{className:"cn-protection-header__subtitle",children:s("Consent logs, compliance evidence, and configuration history.","cookie-notice")})]}),_?t.jsx(rs,{}):t.jsx(Yp,{onActivate:()=>c&&c()}),t.jsxs("div",{className:"cn-blurred-teaser",children:[t.jsx("div",{className:"cn-blurred-teaser__blur",children:t.jsx(o0,{})}),t.jsxs("div",{className:"cn-blurred-teaser__overlay",children:[t.jsx("span",{className:"cn-blurred-teaser__overlay-icon",children:t.jsx(Ol,{size:24})}),t.jsx("div",{className:"cn-blurred-teaser__overlay-label",children:s("Full Compliance Audit Trail","cookie-notice")}),t.jsx("div",{className:"cn-blurred-teaser__overlay-sub",children:s("Consent logs, config timeline, compliance evidence & more","cookie-notice")}),!_&&t.jsx(Ue,{variant:"primary",onClick:()=>c&&c(),children:s("Connect Your Site","cookie-notice")})]})]})]})}return p?t.jsxs(In,{sidebar:t.jsx(e1,{isPro:!1,onOpenPricingModal:u,addNotice:i}),children:[t.jsxs("div",{className:"cn-protection-header",children:[t.jsx("h1",{className:"cn-protection-header__title",children:s("Consent Logs","cookie-notice")}),t.jsx("p",{className:"cn-protection-header__subtitle",children:s("Consent logs and compliance evidence for your site.","cookie-notice")})]}),t.jsx(Yl,{breakdown:m,loading:v}),t.jsx(Ql,{maxRange:7,onStatsUpdate:k}),t.jsx(Ii,{title:s("Form Consent","cookie-notice")}),t.jsx(Zl,{isFree:!0}),t.jsx(Ii,{title:s("Compliance Evidence","cookie-notice")}),t.jsx(Jl,{proLocked:!0,onOpenPricingModal:u})]}):t.jsxs(In,{sidebar:t.jsx(e1,{isPro:!0,onOpenPricingModal:u,addNotice:i}),children:[t.jsxs("div",{className:"cn-protection-header",children:[t.jsx("h1",{className:"cn-protection-header__title",children:s("Consent Logs","cookie-notice")}),t.jsx("p",{className:"cn-protection-header__subtitle",children:s("Full consent log history, compliance evidence, and configuration timeline.","cookie-notice")})]}),t.jsx(Yl,{breakdown:m,loading:v}),t.jsx(Ql,{onStatsUpdate:k}),t.jsx(Ii,{title:s("Form Consent","cookie-notice")}),t.jsx(Zl,{isFree:!1}),t.jsx(Ii,{title:s("Compliance Evidence","cookie-notice")}),t.jsx(Jl,{proLocked:!1,onOpenPricingModal:u})]})}const s0=i=>[{key:"title",label:s("Form Title","cookie-notice"),sortable:i},{key:"id",label:s("Form ID","cookie-notice"),sortable:!1},{key:"fields",label:s("Fields","cookie-notice"),sortable:!1},{key:"date",label:s("Date","cookie-notice"),sortable:!1},{key:"status",label:s("Status","cookie-notice"),sortable:!1}];function a0({source:i,disabled:c,busy:u,onSave:d,onToggleForm:p,onLoadForms:h}){const m=j.useId(),x=c||!i.availability,[v,g]=j.useState({active:!!i.active,activeType:i.activeType});j.useEffect(()=>{g({active:!!i.active,activeType:i.activeType})},[i.active,i.activeType,i.rev]);const k={};v.active!==!!i.active&&(k.active=v.active),v.activeType!==i.activeType&&(k.activeType=v.activeType);const _=Object.keys(k).length>0,b=v.activeType==="all",A=i.type==="dynamic",C=i.forms||{items:[],page:1,maxPages:0},D=i.availability?i.active?s("On","cookie-notice"):s("Off","cookie-notice"):s("Plugin not active","cookie-notice"),P=(C.items||[]).map(E=>({title:t.jsx("strong",{children:E.title}),id:String(E.id),fields:String(E.fieldCount),date:E.date||"—",status:t.jsx("input",{type:"checkbox",className:"cn-privacy-form-toggle","aria-label":we(s("Privacy consent for %s","cookie-notice"),E.title),checked:b||!!E.status,disabled:x||u||b,onChange:I=>p(E.id,I.target.checked)})}));return t.jsx("div",{className:`cn-privacy-source${i.availability?"":" cn-privacy-source--unavailable"}`,"data-source":i.id,children:t.jsxs(Kn,{title:i.name,subtitle:D,defaultOpen:i.active,children:[t.jsxs("div",{className:"cn-toggle-row",children:[t.jsxs("label",{className:"cn-toggle-row__label",htmlFor:m,children:[t.jsx("input",{id:m,type:"checkbox",className:"cn-toggle-row__input cn-privacy-source__status",checked:i.availability&&v.active,disabled:x||u,onChange:E=>g(I=>({...I,active:E.target.checked}))}),t.jsx("span",{className:"cn-toggle-row__text",children:we(s("Enable to apply privacy consent support for %s forms.","cookie-notice"),i.name)})]}),!i.availability&&t.jsx("div",{className:"cn-toggle-row__desc",children:we(s("Install and activate %s to record consent from its forms.","cookie-notice"),i.name)})]}),i.availability&&v.active&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"cn-radio-group",children:t.jsx("div",{className:"cn-radio-group__options",children:[{value:"all",label:s("Apply to all forms","cookie-notice")},{value:"selected",label:s("Apply to selected forms","cookie-notice")}].map(E=>t.jsxs("label",{className:"cn-radio-group__option",children:[t.jsx("input",{type:"radio",name:`cn-privacy-${i.id}-type`,value:E.value,checked:v.activeType===E.value,disabled:x||u,onChange:()=>g(I=>({...I,activeType:E.value}))}),t.jsx("span",{children:E.label})]},E.value))})}),t.jsx("div",{className:`cn-privacy-source__forms${u?" cn-privacy-source__forms--busy":""}`,children:t.jsx(Fs,{columns:s0(A),rows:P,currentPage:C.page||1,totalPages:A?C.maxPages||0:1,onPageChange:E=>h(E,i.order||"asc"),onSort:(E,I)=>h(1,I),sortColumn:A?"title":void 0,sortDirection:i.order||"asc",emptyMessage:s("No forms found.","cookie-notice")})})]}),i.availability&&t.jsx("div",{className:"cn-privacy-source__save",children:t.jsx(Ue,{variant:"primary",disabled:x||u||!_,onClick:()=>d(k),children:s("Save Changes","cookie-notice")})})]})})}function c0({status:i,onOpenWelcomeModal:c}){var x;const u=((x=window.cnReactData)==null?void 0:x.app_id)||"",d=i==="active"||i==="pending"?i:u?"unconfirmed":"inactive",p={active:s("Connected","cookie-notice"),pending:s("Pending","cookie-notice"),unconfirmed:s("Not confirmed","cookie-notice"),inactive:s("Not connected","cookie-notice")}[d],h={active:"green",pending:"yellow",unconfirmed:"gray",inactive:"gray"}[d],m=`${en}/#/dashboard${u?`?app-id=${encodeURIComponent(u)}`:""}`;return t.jsxs(On,{title:s("Compliance Status","cookie-notice"),children:[t.jsx("div",{className:"cn-dom-rows",children:t.jsxs("div",{className:"cn-dom-row",children:[t.jsx("span",{className:"cn-dom-row__k",children:s("Connection","cookie-notice")}),t.jsxs("span",{className:"cn-dom-row__v",children:[t.jsx("span",{className:`cn-dot cn-dot--${h}`})," ",p]})]})}),Re()?t.jsx("p",{className:"cn-conn-hint",children:is()}):d==="inactive"?t.jsx("div",{className:"cn-connect-cta",children:t.jsx("button",{type:"button",className:"cn-button cn-button--primary cn-connect-cta__btn",onClick:c,children:s("Connect Your Site","cookie-notice")})}):t.jsx("div",{className:"cn-connect-cta",children:t.jsx("a",{className:"cn-button cn-button--outline cn-connect-cta__btn",href:m,target:"_blank",rel:"noreferrer",children:s("Open Admin Portal","cookie-notice")})})]})}function l0({addNotice:i,onOpenWelcomeModal:c}){var J;const{isBannerOnly:u}=Ze(),[d,p]=j.useState(null),[h,m]=j.useState(null),[x,v]=j.useState({}),[g,k]=j.useState(0),_=j.useRef(Promise.resolve());j.useEffect(()=>{hs().then(p).catch(B=>m(B.message||s("Failed to load privacy consent settings.","cookie-notice")))},[]);const b=j.useCallback((B,X)=>{p(q=>q&&{...q,sources:q.sources.map(W=>W.id===B?{...W,...typeof X=="function"?X(W):X}:W)})},[]),A=j.useCallback(B=>{k(q=>q+1);const X=_.current.then(B).finally(()=>k(q=>q-1));return _.current=X.catch(()=>{}),X},[]),C=j.useCallback(async(B,X=1,q="asc")=>{v(W=>({...W,[B]:!0}));try{const te=((await hs({source:B,page:X,order:q})).sources||[]).find(ue=>ue.id===B);te&&b(B,{forms:te.forms,order:q})}catch(W){i==null||i(W.message||s("Failed to load forms.","cookie-notice"),"error")}finally{v(W=>({...W,[B]:!1}))}},[i,b]),D=(B,X,q)=>b(B,W=>({forms:{...W.forms,items:W.forms.items.map(te=>String(te.id)===String(X)?{...te,status:q}:te)}})),P=(B,X)=>A(async()=>{try{((await R2({[B]:X})).sources||[]).forEach(W=>b(W.id,te=>({active:W.active,activeType:W.activeType,...W.id===B?{rev:(te.rev||0)+1}:{}}))),i==null||i(s("Settings saved.","cookie-notice"),"success")}catch(q){i==null||i(q.message||s("Settings could not be saved.","cookie-notice"),"error")}}),E=(B,X,q)=>(D(B,X,q),A(async()=>{try{const W=await z2(B,X,q);b(B,{active:W.source.active,activeType:W.source.activeType}),D(B,X,W.status)}catch(W){D(B,X,!q),i==null||i(W.message||s("Settings could not be saved.","cookie-notice"),"error")}})),I=(d==null?void 0:d.status)??((J=window.cnReactData)==null?void 0:J.status)??"",R=I==="active",O=!!(d!=null&&d.readOnly),oe=t.jsx("div",{className:"cn-privacy-consent",children:((d==null?void 0:d.sources)||[]).map(B=>t.jsx(a0,{source:B,disabled:!R||O,busy:g>0||!!x[B.id],onSave:X=>P(B.id,X),onToggleForm:(X,q)=>E(B.id,X,q),onLoadForms:(X,q)=>C(B.id,X,q)},B.id))});return t.jsxs(In,{sidebar:t.jsx(c0,{status:I,onOpenWelcomeModal:c}),children:[t.jsxs("div",{className:"cn-protection-header",children:[t.jsx("h1",{className:"cn-protection-header__title",children:s("Privacy Consent","cookie-notice")}),t.jsx("p",{className:"cn-protection-header__subtitle",children:s("Record proof of consent from the forms on your website.","cookie-notice")})]}),O&&t.jsx(Ut,{type:"info",children:s("Privacy Consent settings are managed on each site of the network.","cookie-notice")}),!O&&d&&!R&&!u&&t.jsx(Ut,{type:"warning",children:s("Privacy Consent requires an active Cookie Compliance connection.","cookie-notice")}),h&&t.jsx(Ut,{type:"error",children:h}),!d&&!h&&t.jsx("p",{className:"cn-privacy-consent__loading",children:s("Loading…","cookie-notice")}),d&&(u?t.jsx(Ss,{requiredTier:"free",onCta:c,message:s("Sign up to Cookie Compliance and enable Privacy Consent support.","cookie-notice"),children:oe}):oe)]})}var u0=Bc();const n1={sm:480,md:720,lg:960},t1='a[href],button:not([disabled]),textarea:not([disabled]),input:not([disabled]),select:not([disabled]),[tabindex]:not([tabindex="-1"])';function o1({isOpen:i,onClose:c,size:u="md",title:d,children:p}){const h=j.useRef(null),m=j.useRef(null),x=j.useCallback(_=>{if(_.key==="Escape"&&c){c();return}if(_.key==="Tab"&&h.current){const b=h.current.querySelectorAll(t1);if(b.length===0){_.preventDefault();return}const A=b[0],C=b[b.length-1];_.shiftKey&&document.activeElement===A?(_.preventDefault(),C.focus()):!_.shiftKey&&document.activeElement===C&&(_.preventDefault(),A.focus())}},[c]);if(j.useEffect(()=>{let _;return i&&(m.current=document.activeElement,document.addEventListener("keydown",x),document.body.style.overflow="hidden",_=setTimeout(()=>{if(h.current){const b=h.current.querySelector(t1);b?b.focus():h.current.focus()}},50)),()=>{clearTimeout(_),document.removeEventListener("keydown",x),document.body.style.overflow="",m.current&&typeof m.current.focus=="function"&&(m.current.focus(),m.current=null)}},[i,x]),!i)return null;const v=_=>{_.target===_.currentTarget&&c&&c()},g={position:"fixed",top:0,right:0,bottom:0,left:0,background:"rgba(0,0,0,0.6)",zIndex:1e5,display:"flex",alignItems:"center",justifyContent:"center",padding:"32px"},k=d?"cn-modal-title":void 0;return u0.createPortal(t.jsx("div",{className:"cn-modal-overlay",style:g,onClick:v,children:t.jsxs("div",{ref:h,className:`cn-modal cn-modal--${u}`,style:{maxWidth:n1[u]||n1.md},role:"dialog","aria-modal":"true","aria-labelledby":k,tabIndex:-1,children:[t.jsx("button",{className:"cn-modal__close",onClick:c,type:"button","aria-label":s("Close","cookie-notice"),children:"×"}),d&&t.jsx("div",{className:"cn-modal__header",id:k,children:d}),t.jsx("div",{className:"cn-modal__content",children:p})]})}),document.body)}function d0({steps:i,currentStep:c=0,onStepClick:u}){return t.jsx("div",{className:"cn-step-dots",role:"group","aria-label":s("Progress","cookie-notice"),children:i.map((d,p)=>{const h=p<c,m=p===c,x=typeof d=="string"?d:`Step ${p+1}`;let v="cn-step-dot";return h&&(v+=" cn-step-dot--done"),m&&(v+=" cn-step-dot--active"),t.jsx("div",{className:v,role:"tab","aria-selected":m,"aria-label":h?we(s("%s (completed)","cookie-notice"),x):x,"aria-current":m?"step":void 0,onClick:h&&u?()=>u(p):void 0,style:h&&u?{cursor:"pointer"}:void 0,tabIndex:h&&u?0:-1},p)})})}function p0({onBannerOnly:i,onProtect:c,onComply:u,onLearnMore:d}){var m;const h=(((m=window.cnReactData)==null?void 0:m.detectedPlugins)||[]).includes("google");return t.jsxs("div",{className:"cn-welcome-step cn-welcome-step--choose",children:[t.jsx("h1",{className:"cn-choose__heading",children:s("Choose your protection level","cookie-notice")}),h&&t.jsxs("div",{className:"cn-choose__google-notice",children:[t.jsx("strong",{children:s("Google tools detected.","cookie-notice")})," ",s("Make sure Google Consent Mode is configured during setup.","cookie-notice")]}),t.jsxs("div",{className:"cn-protection-cards",children:[t.jsxs("div",{className:"cn-protection-card",children:[t.jsx("span",{className:"cn-protection-card__badge cn-protection-card__badge--risk",children:s("Banner Only","cookie-notice")}),t.jsx("div",{className:"cn-protection-card__icon cn-protection-card__icon--banner",children:t.jsx(fp,{size:32})}),t.jsx("h4",{className:"cn-protection-card__title",children:s("I just want a banner","cookie-notice")}),t.jsx("p",{className:"cn-protection-card__subtitle",children:s("Display-only notice, no compliance features","cookie-notice")}),t.jsx("div",{className:"cn-protection-card__divider"}),t.jsx("div",{className:"cn-protection-card__price-label",children:s("Banner Only","cookie-notice")}),t.jsx("span",{className:"cn-protection-card__price-note cn-protection-card__price-note--danger",children:s("Does not meet GDPR requirements","cookie-notice")}),t.jsxs("ul",{className:"cn-protection-card__features",children:[t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Cookie notice banner","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Accept / Reject buttons","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Custom colors & text","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--excluded",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✗"}),s("No consent records","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--excluded",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✗"}),s("No script blocking","cookie-notice")]})]}),t.jsx("div",{className:"cn-protection-card__footer",children:t.jsx("button",{type:"button",className:"cn-protection-card__btn cn-protection-card__btn--ghost",onClick:i,children:s("Just the Banner","cookie-notice")})})]}),t.jsxs("div",{className:"cn-protection-card cn-protection-card--recommended",children:[t.jsx("span",{className:"cn-protection-card__badge cn-protection-card__badge--rec",children:s("Recommended","cookie-notice")}),t.jsx("div",{className:"cn-protection-card__icon cn-protection-card__icon--protect",children:t.jsx(ap,{size:32})}),t.jsx("h4",{className:"cn-protection-card__title",children:s("For small sites","cookie-notice")}),t.jsx("p",{className:"cn-protection-card__subtitle",children:s("Essential compliance, no credit card required","cookie-notice")}),t.jsx("div",{className:"cn-protection-card__divider"}),t.jsx("div",{className:"cn-protection-card__price-label",children:s("Sign Up Free","cookie-notice")}),t.jsx("span",{className:"cn-protection-card__price-note",children:s("Up to 1,000 visits per 30-day cycle","cookie-notice")}),t.jsxs("ul",{className:"cn-protection-card__features",children:[t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Best for sites without ads","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),"Google Consent Mode v2"]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Tracker blocking","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Standard Support","cookie-notice")]})]}),t.jsx("div",{className:"cn-protection-card__footer",children:t.jsx("button",{type:"button",className:"cn-protection-card__btn cn-protection-card__btn--primary",onClick:c,children:s("Protect My Business","cookie-notice")})})]}),t.jsxs("div",{className:"cn-protection-card",children:[t.jsx("span",{className:"cn-protection-card__badge cn-protection-card__badge--max",children:s("Full Compliance","cookie-notice")}),t.jsx("div",{className:"cn-protection-card__icon cn-protection-card__icon--comply",children:t.jsx(dp,{size:32})}),t.jsx("h4",{className:"cn-protection-card__title",children:s("Ensure full compliance","cookie-notice")}),t.jsx("p",{className:"cn-protection-card__subtitle",children:s("Full coverage for EU, US & growing businesses","cookie-notice")}),t.jsx("div",{className:"cn-protection-card__divider"}),t.jsx("div",{className:"cn-protection-card__price-label",children:"$14.95/mo"}),t.jsx("span",{className:"cn-protection-card__price-note",children:s("Unlimited visitors protected","cookie-notice")}),t.jsxs("ul",{className:"cn-protection-card__features",children:[t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Best for sites with analytics","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Facebook & Microsoft Consent Modes","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Global Privacy Control","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Geolocation rules — show right banner by country","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Full consent history & export","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Advanced autoblocking + script categorization","cookie-notice")]}),t.jsxs("li",{className:"cn-protection-card__feature cn-protection-card__feature--included",children:[t.jsx("span",{className:"cn-protection-card__feature-icon",children:"✓"}),s("Priority Support","cookie-notice")]})]}),t.jsx("div",{className:"cn-protection-card__footer",children:t.jsx("button",{type:"button",className:"cn-protection-card__btn cn-protection-card__btn--secondary",onClick:u,children:s("Ensure Full Compliance","cookie-notice")})})]})]})]})}const f0=[{domains:1,monthly:14.95,yearly:149.5,perDomain:null,popular:!0},{domains:5,monthly:29.95,yearly:299.5,perDomain:5.99},{domains:10,monthly:49.95,yearly:499.5,perDomain:4.99}];function h0({onSelectPlan:i,onBack:c}){const[u,d]=j.useState("monthly");return t.jsxs("div",{className:"cn-welcome-step cn-welcome-step--pro-pricing",children:[t.jsx("button",{type:"button",className:"cn-pro-pricing__back cn-pro-pricing__back--top",onClick:c,children:"← Back to protection options"}),t.jsxs("div",{className:"cn-pro-pricing__hero",children:[t.jsx("h1",{className:"cn-pro-pricing__heading",children:s("Cookie Compliance — Professional","cookie-notice")}),t.jsx("p",{className:"cn-pro-pricing__sub",children:"Everything you need to protect your business from privacy regulations worldwide."})]}),t.jsxs("div",{className:"cn-pro-pricing__features-band",children:[t.jsx("span",{className:"cn-pro-pricing__features-label",children:s("Everything in Free, plus:","cookie-notice")}),t.jsxs("ul",{className:"cn-pro-pricing__features-list",children:[t.jsx("li",{children:"🌍 Geolocation rules — show the right banner by country"}),t.jsx("li",{children:"📊 Facebook & Microsoft Consent Modes"}),t.jsx("li",{children:"🛡️ Global Privacy Control"}),t.jsx("li",{children:"♾️ Unlimited visits & consent history beyond 7 days"}),t.jsx("li",{children:"🔒 Advanced autoblocking & script categorization"})]})]}),t.jsxs("div",{className:"cn-pill-toggle",style:{margin:"0 auto 24px"},children:[t.jsx("button",{type:"button",className:`cn-pill-toggle__btn${u==="monthly"?" cn-pill-toggle__btn--active":""}`,onClick:()=>d("monthly"),children:"Monthly"}),t.jsxs("button",{type:"button",className:`cn-pill-toggle__btn${u==="yearly"?" cn-pill-toggle__btn--active":""}`,onClick:()=>d("yearly"),children:[s("Yearly","cookie-notice")," ",t.jsx("span",{className:"cn-pill-toggle__badge",children:s("Save 17%","cookie-notice")})]})]}),t.jsx("div",{className:"cn-pro-pricing__cards",children:f0.map(p=>t.jsxs("div",{className:`cn-pro-pricing__card${p.popular?" cn-pro-pricing__card--popular":""}`,children:[p.popular&&t.jsx("span",{className:"cn-pro-pricing__card-badge",children:s("Recommended","cookie-notice")}),t.jsx("div",{className:"cn-pro-pricing__card-domains",children:p.domains}),t.jsx("span",{className:"cn-pro-pricing__card-domains-label",children:p.domains===1?"Domain":"Domains"}),t.jsxs("div",{className:"cn-pro-pricing__card-price",children:[t.jsx("sup",{children:"$"}),u==="monthly"?p.monthly.toFixed(2):p.yearly.toFixed(2),t.jsxs("sub",{children:["/ ",u==="monthly"?"mo":"yr"]})]}),p.perDomain&&t.jsx("span",{className:"cn-pro-pricing__card-per-domain",children:we(s("%s per domain","cookie-notice"),"$"+p.perDomain.toFixed(2))}),t.jsx("button",{type:"button",className:`cn-pro-pricing__card-btn${p.popular?" cn-pro-pricing__card-btn--primary":""}`,onClick:()=>i(p.domains,u,p[u]),children:s("Select Plan","cookie-notice")})]},p.domains))}),t.jsxs("p",{className:"cn-pro-pricing__guarantee",children:["✓"," ",s("Refund on your first payment within 14 days","cookie-notice")]}),u==="yearly"&&t.jsx("p",{className:"cn-pro-pricing__billing-note",children:s("Billed annually. Cancel anytime.","cookie-notice")}),t.jsxs("div",{className:"cn-pro-pricing__legal",children:[t.jsx("a",{href:"https://hu-manity.co/terms",target:"_blank",rel:"noreferrer",children:s("Terms of Service","cookie-notice")})," · ",t.jsx("a",{href:"https://hu-manity.co/privacy",target:"_blank",rel:"noreferrer",children:s("Privacy Policy","cookie-notice")})]}),t.jsx("div",{className:"cn-pro-pricing__maybe-later",children:t.jsx("button",{type:"button",className:"cn-pro-pricing__maybe-later-btn",onClick:c,children:s("Maybe later — stay on free","cookie-notice")})})]})}const m0=()=>[{text:s("Consent records — no proof if a regulator asks","cookie-notice")},{text:s("Cookie autoblocking — scripts fire before consent","cookie-notice")},{text:s("Audit trail — no evidence if investigated","cookie-notice")},{text:s("Google Consent Mode — EU ads may be flagged","cookie-notice")}];function g0({onDismissToSettings:i,onBackToChoose:c}){const[u,d]=j.useState(!1);return t.jsx("div",{className:"cn-welcome-step cn-welcome-step--warning",children:t.jsxs("div",{className:"cn-warning-modal",children:[t.jsx("div",{className:"cn-warning-modal__icon",children:t.jsx(Bl,{size:32})}),t.jsx("h3",{className:"cn-warning-modal__heading",children:s("Are you sure?","cookie-notice")}),t.jsx("p",{className:"cn-warning-modal__text",children:s("Without Cookie Compliance, all liability falls on you.","cookie-notice")}),t.jsxs("div",{className:"cn-warning-modal__consequences",children:[t.jsx("h5",{children:s("You won’t have:","cookie-notice")}),t.jsx("ul",{children:m0().map((p,h)=>t.jsxs("li",{children:[t.jsx("span",{className:"cn-warning-modal__consequence-icon",children:"❌"}),t.jsx("span",{children:p.text})]},h))})]}),t.jsxs("label",{className:"cn-warning-modal__checkbox",children:[t.jsx("input",{type:"checkbox",checked:u,onChange:p=>d(p.target.checked)}),t.jsx("span",{children:s("I understand all liability falls on me and my business.","cookie-notice")})]}),t.jsxs("div",{className:"cn-warning-modal__actions",children:[t.jsx("button",{type:"button",className:"cn-warning-modal__btn cn-warning-modal__btn--danger",disabled:!u,onClick:i,children:s("Don’t protect my business","cookie-notice")}),t.jsxs("button",{type:"button",className:"cn-warning-modal__btn cn-warning-modal__btn--safe",onClick:c,children:[s("Protect my business","cookie-notice")," →"]})]})]})})}const i1=/^(?=.*[A-Z])(?=.*\d)[\w !"#$%&'()*+,\-./:;<=>?@[\]^\x60{|}~\\]{8,}$/,To="__new__",r1={email:{switchLabel:()=>s("Email me a code","cookie-notice")},totp:{switchLabel:()=>s("Use your authenticator app","cookie-notice")},backup:{switchLabel:()=>s("Use a backup code","cookie-notice")}};function v0({onComplete:i,onCompleteWithSubscriptions:c}){const[u,d]=j.useState("register"),[p,h]=j.useState(""),[m,x]=j.useState(""),[v,g]=j.useState(""),[k,_]=j.useState(!1),[b,A]=j.useState(!1),[C,D]=j.useState(null),[P,E]=j.useState(null),[I,R]=j.useState("email"),[O,oe]=j.useState(""),[J,B]=j.useState(null),[X,q]=j.useState(0),[W,te]=j.useState(null),[ue,ge]=j.useState(""),ne=window.cnReactData||{},de=M=>{d(M),D(null)};j.useEffect(()=>{if(X<=0)return;const M=setTimeout(()=>q(X-1),1e3);return()=>clearTimeout(M)},[X]);const F=()=>{if(!p)return s("Email is required.","cookie-notice");if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(p))return s("Please enter a valid email address.","cookie-notice");if(u==="register"){if(!m)return s("Password is required.","cookie-notice");if(!i1.test(m))return"Password must be 8+ characters with at least 1 capital letter and 1 number.";if(m!==v)return s("Passwords do not match.","cookie-notice");if(!k)return s("Please accept the Terms of Service to continue.","cookie-notice")}else if(!m)return s("Password is required.","cookie-notice");return null},ke=async M=>{M.preventDefault(),D(null);const H=F();if(H){D(H);return}A(!0);try{const fe=u==="register"?ne.registerNonce||"":ne.loginNonce||"",De=await gn(u,u==="register"?{email:p,pass:m,pass2:v,terms:"1",language:"en"}:{email:p,pass:m},fe);if(De&&De.needs_code){$(De);return}if(De&&De.choose_app){ee(De);return}U(De)}catch(fe){D(fe.message||s("Something went wrong. Please try again.","cookie-notice"))}finally{A(!1)}},U=M=>{if(M===!0||M===1)i();else if(M&&M.error)D(M.error);else if(M!=null&&M.app_has_subscription)i();else{const H=Array.isArray(M==null?void 0:M.subscriptions)?M.subscriptions.filter(fe=>parseInt(fe.availablelicense,10)>0).sort((fe,Ve)=>parseInt(Ve.availablelicense,10)-parseInt(fe.availablelicense,10)):[];H.length>0&&c?c(H,M.fresh_nonce||""):i()}},ee=M=>{x(""),E(null),oe(""),B(null),q(0),D(null),ge(""),te({apps:Array.isArray(M.apps)?M.apps:[],siteDomain:M.site_domain||"",currentAppId:M.current_app_id||""})},Q=(M=null)=>{te(null),ge(""),D(M)},S=async M=>{if(M.preventDefault(),D(null),!ue){D(s("Choose one of your apps, or create a new app for this site.","cookie-notice"));return}A(!0);try{const H=await gn("login_app",{app_id:ue},ne.loginAppNonce||"");if(H&&H.choose_app){ee(H);return}te(null),U(H)}catch(H){Q(H.message||s("Something went wrong. Please try again.","cookie-notice"))}finally{A(!1)}},$=M=>{const H=Array.isArray(M.methods)?M.methods:[];x(""),oe(""),B(null),q(0),R(H[0]||"email"),E({email:M.email||p,methods:H,emailSent:!!M.code_sent}),H[0]==="email"&&!M.code_sent&&pe(M.email||p)},re=(M=null)=>{E(null),oe(""),B(null),q(0),D(M)},pe=async M=>{D(null),B(null);try{const H=await gn("login_code_resend");if(H&&H.code_sent)return q(H.retry_after||60),B(we(s("We sent a code to %s.","cookie-notice"),M)),E(fe=>fe&&{...fe,emailSent:!0}),!0}catch(H){H.expired?re(H.message):D(H.message||s("Something went wrong. Please try again.","cookie-notice"))}return!1},ve=M=>{R(M),oe(""),D(null),B(null),M==="email"&&!P.emailSent&&pe(P.email)},xe=async M=>{if(M.preventDefault(),D(null),!O.trim()){D(s("Enter the verification code.","cookie-notice"));return}A(!0);try{const H=await gn("login_code",{method:I,code:O},ne.loginCodeNonce||"");if(H&&H.needs_code){$(H);return}if(H&&H.choose_app){ee(H);return}U(H)}catch(H){H.expired?re(H.message):D(H.message||s("Something went wrong. Please try again.","cookie-notice"))}finally{A(!1)}};if(W){const M=W.apps.map(H=>({id:H.id,name:H.name||H.domain||H.id,domain:H.domain&&H.domain!==H.name?H.domain:"",current:H.id===W.currentAppId}));return t.jsxs("div",{className:"cn-welcome-step cn-welcome-step--account",children:[t.jsx("h2",{className:"cn-account-heading",children:s("Choose an app","cookie-notice")}),t.jsx("p",{className:"cn-account-subtitle",children:we(s("None of your apps is for %s. Choose the app this site should use.","cookie-notice"),W.siteDomain)}),C?t.jsx("div",{className:"cn-auth-form__error",children:C}):null,t.jsxs("form",{className:"cn-auth-form",onSubmit:S,children:[t.jsxs("fieldset",{className:"cn-app-choice",children:[t.jsx("legend",{className:"screen-reader-text",children:s("Apps on your account","cookie-notice")}),M.map(H=>t.jsxs("label",{className:"cn-app-choice__option"+(ue===H.id?" cn-app-choice__option--selected":""),children:[t.jsx("input",{type:"radio",name:"cn-app",value:H.id,checked:ue===H.id,onChange:()=>ge(H.id),disabled:b}),t.jsxs("span",{className:"cn-app-choice__text",children:[t.jsx("span",{className:"cn-app-choice__name",children:H.name}),H.domain?t.jsx("span",{className:"cn-app-choice__domain",children:H.domain}):null,H.current?t.jsx("span",{className:"cn-app-choice__badge",children:s("Connected now","cookie-notice")}):null]})]},H.id)),t.jsxs("label",{className:"cn-app-choice__option"+(ue===To?" cn-app-choice__option--selected":""),children:[t.jsx("input",{type:"radio",name:"cn-app",value:To,checked:ue===To,onChange:()=>ge(To),disabled:b}),t.jsx("span",{className:"cn-app-choice__text",children:t.jsx("span",{className:"cn-app-choice__name",children:s("Create a new app for this site","cookie-notice")})})]})]}),ue!==To&&t.jsx("p",{className:"cn-app-choice__note",children:s("This site will use that app's banner settings.","cookie-notice")}),t.jsx("div",{className:"cn-auth-form__actions",children:t.jsx("button",{type:"submit",className:"cn-button cn-button--primary cn-button--block",disabled:b||!ue,children:s(b?"Connecting…":"Continue","cookie-notice")})})]}),t.jsx("div",{className:"cn-auth-form__links",children:t.jsx("button",{type:"button",className:"cn-auth-form__switch-link",onClick:()=>Q(),disabled:b,children:s("Back","cookie-notice")})})]})}if(P){const M={email:we(s("Enter the code we emailed to %s.","cookie-notice"),P.email),totp:s("Enter the code from your authenticator app.","cookie-notice"),backup:s("Enter one of your backup codes.","cookie-notice")},H=P.methods.filter(fe=>fe!==I&&r1[fe]);return t.jsxs("div",{className:"cn-welcome-step cn-welcome-step--account",children:[t.jsx("h2",{className:"cn-account-heading",children:s("Enter the code","cookie-notice")}),t.jsx("p",{className:"cn-account-subtitle",children:M[I]}),C?t.jsx("div",{className:"cn-auth-form__error",children:C}):null,J&&!C?t.jsx("div",{className:"cn-auth-form__notice",role:"status",children:J}):null,t.jsxs("form",{className:"cn-auth-form",onSubmit:xe,autoComplete:"off",children:[t.jsx(Ce,{label:s("Verification code","cookie-notice"),type:"text",name:"cn-account-code",value:O,onChange:oe,inputMode:I==="backup"?"text":"numeric",autoComplete:"one-time-code",autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,maxLength:32}),t.jsx("div",{className:"cn-auth-form__actions",children:t.jsx("button",{type:"submit",className:"cn-button cn-button--primary cn-button--block",disabled:b,children:s(b?"Signing in…":"Sign in","cookie-notice")})})]}),t.jsxs("div",{className:"cn-auth-form__links",children:[I==="email"&&t.jsx("button",{type:"button",className:"cn-auth-form__switch-link",onClick:()=>pe(P.email),disabled:b||X>0,children:X>0?`${s("Resend code","cookie-notice")} (${X})`:s("Resend code","cookie-notice")}),H.map(fe=>t.jsx("button",{type:"button",className:"cn-auth-form__switch-link",onClick:()=>ve(fe),disabled:b,children:r1[fe].switchLabel()},fe)),t.jsx("button",{type:"button",className:"cn-auth-form__switch-link",onClick:()=>re(),disabled:b,children:s("Back","cookie-notice")})]})]})}return t.jsxs("div",{className:"cn-welcome-step cn-welcome-step--account",children:[t.jsx("h2",{className:"cn-account-heading",children:s(u==="register"?"Create your account":"Welcome back","cookie-notice")}),t.jsx("p",{className:"cn-account-subtitle",children:s(u==="register"?"Takes 30 seconds. No credit card required.":"Sign in to connect your existing Cookie Compliance account.","cookie-notice")}),t.jsxs("div",{className:"cn-pill-toggle",style:{minWidth:280,alignSelf:"center",marginBottom:24},children:[t.jsx("button",{type:"button",className:"cn-pill-toggle__btn"+(u==="register"?" cn-pill-toggle__btn--active":""),onClick:()=>de("register"),children:"Create Account"}),t.jsx("button",{type:"button",className:"cn-pill-toggle__btn"+(u==="login"?" cn-pill-toggle__btn--active":""),onClick:()=>de("login"),children:"Sign In"})]}),C==="email_exists"&&u==="register"?t.jsxs("div",{className:"cn-auth-form__error",children:[s("An account with this email already exists.","cookie-notice")," ",t.jsxs("button",{type:"button",className:"cn-auth-form__switch-link",onClick:()=>{const M=p;de("login"),h(M)},children:[s("Sign in instead","cookie-notice")," →"]})]}):C?t.jsx("div",{className:"cn-auth-form__error",children:C}):null,u==="register"?t.jsxs(t.Fragment,{children:[t.jsxs("form",{className:"cn-auth-form",onSubmit:ke,children:[t.jsx(Ce,{label:s("Email address","cookie-notice"),type:"email",value:p,onChange:h,placeholder:s("you@company.com","cookie-notice"),autoComplete:"email"}),t.jsx(Ce,{label:s("Password","cookie-notice"),type:"password",value:m,onChange:x,placeholder:s("Min. 8 characters, 1 capital, 1 number","cookie-notice"),autoComplete:"new-password"}),m&&!i1.test(m)&&t.jsx("p",{className:"cn-auth-form__field-hint",children:"Min. 8 characters, at least 1 capital letter and 1 number"}),t.jsx(Ce,{label:s("Confirm Password","cookie-notice"),type:"password",value:v,onChange:g,placeholder:s("Confirm password","cookie-notice"),autoComplete:"new-password"}),t.jsxs("label",{className:"cn-auth-form__terms",children:[t.jsx("input",{type:"checkbox",checked:k,onChange:M=>_(M.target.checked),required:!0})," ","I have read and agree to the"," ",t.jsx("a",{href:"https://hu-manity.co/terms",target:"_blank",rel:"noreferrer",children:"Terms of Service"})]}),t.jsx("div",{className:"cn-auth-form__actions",children:t.jsx("button",{type:"submit",className:"cn-button cn-button--primary cn-button--block",disabled:b||!k,children:s(b?"Creating account…":"Create Account","cookie-notice")})})]}),t.jsx("div",{className:"cn-auth-or",children:t.jsx("span",{children:s("OR","cookie-notice")})}),t.jsxs("div",{className:"cn-auth-signin-teaser",children:[t.jsx("p",{className:"cn-auth-signin-teaser__heading",children:s("Already have an account?","cookie-notice")}),t.jsx("button",{type:"button",className:"cn-button cn-button--outline-primary",onClick:()=>de("login"),children:s("Sign In","cookie-notice")})]})]}):t.jsxs("form",{className:"cn-auth-form",onSubmit:ke,autoComplete:"off",children:[t.jsxs("div",{"aria-hidden":"true",style:{position:"absolute",left:"-9999px",width:"1px",height:"1px",overflow:"hidden"},children:[t.jsx("input",{type:"text",name:"username",autoComplete:"username",tabIndex:-1,defaultValue:""}),t.jsx("input",{type:"password",name:"password",autoComplete:"current-password",tabIndex:-1,defaultValue:""})]}),t.jsx(Ce,{label:s("Email address","cookie-notice"),type:"email",name:"cn-account-email",value:p,onChange:h,placeholder:s("you@company.com","cookie-notice"),autoComplete:"username",autoCapitalize:"none",autoCorrect:"off",spellCheck:!1}),t.jsx(Ce,{label:s("Password","cookie-notice"),type:"password",name:"cn-account-password",value:m,onChange:x,placeholder:s("Your password","cookie-notice"),autoComplete:"new-password"}),t.jsx("div",{className:"cn-auth-form__forgot",children:t.jsx("a",{href:`${en}/forgot`,target:"_blank",rel:"noreferrer",children:s("Forgot password?","cookie-notice")})}),t.jsx(Ns,{}),t.jsx("div",{className:"cn-auth-form__actions",children:t.jsx("button",{type:"submit",className:"cn-button cn-button--primary cn-button--block",disabled:b,children:s(b?"Signing in…":"Sign In","cookie-notice")})})]})]})}async function y0({plan:i,paymentNonce:c,method:u,identifier:d}){const p=window.cnReactData||{},h=new FormData;h.append("action","cn_api_request"),h.append("nonce",p.welcomeNonce||""),h.append("request","payment"),h.append("cn_payment_nonce",p.paymentNonce||""),h.append("plan",i),h.append("payment_nonce",c),h.append("method",u),h.append("cn_payment_identifier",d||""),p.network&&h.append("cn_network","1");const m=await fetch(p.ajaxURL||"/wp-admin/admin-ajax.php",{method:"POST",credentials:"same-origin",body:h});if(!m.ok)throw new Error(`Payment request failed: ${m.status}`);return Kc(await m.json())}const s1="https://js.braintreegateway.com/web/3.71.0/js";function a1(i){return new Promise((c,u)=>{if(document.querySelector(`script[src="${i}"]`)){c();return}const d=document.createElement("script");d.src=i,d.async=!0,d.onload=c,d.onerror=()=>u(new Error(`Failed to load: ${i}`)),document.head.appendChild(d)})}function c1({plan:i,onComplete:c,onBack:u=null,backLabel:d="Back",onSessionExpired:p=null}){const[h,m]=j.useState("loading"),[x,v]=j.useState(null),[g,k]=j.useState(""),[_,b]=j.useState(!1),A=j.useRef(null);j.useEffect(()=>{let E=!1;async function I(){var J,B,X,q;const R=["localhost","127.0.0.1"].includes(window.location.hostname);if(window.location.protocol!=="https:"&&!R){v(s("Secure payment requires HTTPS. Please contact your host.","cookie-notice")),m("error");return}try{await a1(`${s1}/client.min.js`),await a1(`${s1}/hosted-fields.min.js`)}catch{E||(v(s("Payment currently unavailable. Please try again later.","cookie-notice")),m("error"));return}if(typeof((B=(J=window.braintree)==null?void 0:J.client)==null?void 0:B.create)!="function"||typeof((q=(X=window.braintree)==null?void 0:X.hostedFields)==null?void 0:q.create)!="function"){E||(v(s("Payment currently unavailable. Please try again later.","cookie-notice")),m("error"));return}let O;try{const W=await gn("get_bt_init_token");if((W==null?void 0:W.status)==="session_expired"){if(!E&&p){p();return}O=null}else O=W==null?void 0:W.token}catch{O=null}if(!O){E||(v(s("Unable to initialize payment. Please refresh and try again.","cookie-notice")),m("error"));return}let oe;try{oe=await window.braintree.client.create({authorization:O})}catch{E||(v(s("Unable to initialize payment. Please refresh and try again.","cookie-notice")),m("error"));return}try{const W=await window.braintree.hostedFields.create({client:oe,styles:{input:{"font-size":"14px","font-family":"Lato, sans-serif",color:"#434f58"},"input.invalid":{color:"#e74c3c"},"input.valid":{color:"#434f58"}},fields:{number:{container:"#cn_card_number",placeholder:"•••• •••• •••• ••••"},expirationDate:{container:"#cn_expiration_date",placeholder:"MM / YY"},cvv:{container:"#cn_cvv",placeholder:"CVV"}}});if(E){W.teardown();return}A.current=W,W.on("validityChange",()=>{const te=W.getState(),ue=Object.values(te.fields).every(ge=>ge.isValid);b(ue)}),m("ready")}catch{E||(v(s("Unable to initialize payment. Please refresh and try again.","cookie-notice")),m("error"))}}return I(),()=>{E=!0,A.current&&(A.current.teardown(),A.current=null)}},[]);const C=async E=>{var I;if(E.preventDefault(),!(!A.current||h==="submitting")){m("submitting"),v(null);try{const R=await A.current.tokenize(),O=R.nonce,oe=((I=R.details)==null?void 0:I.lastFour)||"",J=await y0({plan:i.planKey,paymentNonce:O,method:"credit_card",identifier:oe});if(J&&typeof J=="string"&&J.length>0)c();else{const B=(J==null?void 0:J.error)||(J==null?void 0:J.message)||s("Payment failed. Please try again.","cookie-notice");v(B),m("ready")}}catch(R){v(R.message||s("Card error. Please check your details and try again.","cookie-notice")),m("ready")}}},D=(i==null?void 0:i.billing)==="yearly"?"Yearly":"Monthly",P=i?`${i.domains} Domain${i.domains>1?"s":""} — $${i.price.toFixed(2)} / ${D}`:"";return t.jsxs("div",{className:"cn-welcome-step cn-payment-step",children:[t.jsx("h2",{className:"cn-payment-step__heading",children:s("Complete Your Order","cookie-notice")}),i&&t.jsx("div",{className:"cn-payment-step__plan-pill",children:P}),x&&t.jsx("div",{className:"cn-payment-step__error",role:"alert",children:x}),h==="loading"&&!x&&t.jsx("p",{className:"cn-payment-step__loading",children:s("Initializing secure payment form…","cookie-notice")}),t.jsxs("form",{className:"cn-payment-step__form",onSubmit:C,style:{display:h==="loading"||h==="error"?"none":"block"},children:[t.jsxs("div",{className:"cn-payment-step__field",children:[t.jsx("label",{className:"cn-payment-step__label",htmlFor:"cn_card_name",children:"Cardholder Name"}),t.jsx("input",{id:"cn_card_name",type:"text",className:"cn-payment-step__input",value:g,onChange:E=>k(E.target.value),placeholder:s("Name on card","cookie-notice"),autoComplete:"cc-name"})]}),t.jsxs("div",{className:"cn-payment-step__field",children:[t.jsx("label",{className:"cn-payment-step__label",children:s("Card Number","cookie-notice")}),t.jsx("div",{id:"cn_card_number",className:"cn-payment-step__hosted-field"})]}),t.jsxs("div",{className:"cn-payment-step__row",children:[t.jsxs("div",{className:"cn-payment-step__field",children:[t.jsx("label",{className:"cn-payment-step__label",children:s("Expiry","cookie-notice")}),t.jsx("div",{id:"cn_expiration_date",className:"cn-payment-step__hosted-field"})]}),t.jsxs("div",{className:"cn-payment-step__field",children:[t.jsx("label",{className:"cn-payment-step__label",children:"CVV"}),t.jsx("div",{id:"cn_cvv",className:"cn-payment-step__hosted-field"})]})]}),t.jsx("div",{className:"cn-payment-step__braintree-badge",children:"🔒 Secured by Braintree"}),t.jsx("button",{type:"submit",className:"cn-button cn-button--primary cn-button--block cn-payment-step__submit",disabled:h==="submitting"||!_||!g.trim(),children:s(h==="submitting"?"Processing…":"Complete Purchase","cookie-notice")}),u&&t.jsx("button",{type:"button",className:"cn-button cn-button--outline-primary cn-button--block cn-payment-step__back",onClick:u,children:d}),t.jsx("p",{className:"cn-payment-step__guarantee",children:"🛡️ Refund on your first payment within 14 days"}),t.jsxs("p",{className:"cn-payment-step__legal",children:["By completing your purchase you agree to our",t.jsx("a",{href:"https://hu-manity.co/terms",target:"_blank",rel:"noopener noreferrer",className:"cn-link",children:"Terms of Service"}),"and",t.jsx("a",{href:"https://cookie-compliance.co/privacy-policy/",target:"_blank",rel:"noopener noreferrer",className:"cn-link",children:"Privacy Policy"}),"."]})]}),u&&(h==="loading"||h==="error")&&t.jsx("button",{type:"button",className:"cn-button cn-button--outline-primary cn-button--block cn-payment-step__back cn-payment-step__back--standalone",onClick:u,children:d})]})}function _0({subscriptions:i,selectedPlan:c,nonce:u,onSuccess:d,onPayInstead:p,onFreeInstead:h}){var D;const[m,x]=j.useState(((D=i[0])==null?void 0:D.subscriptionid)??null),[v,g]=j.useState(!1),[k,_]=j.useState(!1),[b,A]=j.useState(null);i.reduce((P,E)=>P+parseInt(E.availablelicense,10),0);const C=async()=>{if(!(!m||v||k)){g(!0),A(null);try{const P=await gn("use_license",{subscriptionID:m},"",u);if(P&&P.error)A(P.error),g(!1);else{_(!0);const E=i.find(R=>R.subscriptionid===m),I=E?Math.max(0,parseInt(E.availablelicense,10)-1):null;d(I)}}catch(P){A(P.message||"Something went wrong. Please try again."),g(!1)}}};return c?t.jsxs("div",{className:"cn-welcome-step cn-license-select",children:[t.jsx("h2",{className:"cn-license-select__heading",children:s("You have unused Pro licenses — do you want to use one for this domain?","cookie-notice")}),t.jsx("p",{className:"cn-license-select__sub",children:s("Your existing plan covers this site. We’ll connect it now — no payment needed.","cookie-notice")}),i.length===1?t.jsxs("div",{className:"cn-license-select__single-card",children:[t.jsx("span",{className:"cn-license-select__card-name",children:s("Compliance Pro","cookie-notice")}),t.jsxs("span",{className:"cn-license-select__card-slots",children:[parseInt(i[0].availablelicense,10)," ","domain",parseInt(i[0].availablelicense,10)!==1?"s":""," remaining"]})]}):t.jsxs(t.Fragment,{children:[t.jsx("p",{className:"cn-license-select__choose-label",children:s("You have multiple plans with available sites. Choose one to connect this site to:","cookie-notice")}),t.jsx("div",{className:"cn-license-select__cards",role:"radiogroup",children:i.map(P=>{const E=parseInt(P.availablelicense,10);return t.jsxs("label",{className:"cn-license-select__card"+(m===P.subscriptionid?" cn-license-select__card--selected":""),children:[t.jsx("input",{type:"radio",name:"cn_subscription",value:P.subscriptionid,checked:m===P.subscriptionid,onChange:()=>x(P.subscriptionid),className:"cn-license-select__radio"}),t.jsxs("div",{className:"cn-license-select__card-body",children:[t.jsx("span",{className:"cn-license-select__card-name",children:s("Compliance Pro","cookie-notice")}),t.jsxs("span",{className:"cn-license-select__card-slots",children:[E," domain",E!==1?"s":""," remaining"]})]})]},P.subscriptionid)})})]}),b&&t.jsx("div",{className:"cn-license-select__error",role:"alert",children:b}),t.jsx("div",{className:"cn-license-select__actions",children:t.jsx("button",{type:"button",className:"cn-button cn-button--primary cn-button--block",onClick:C,disabled:v||k||!m,children:v?"Connecting…":i.length>1?"Connect This Site to Selected Plan":"Connect This Site"})}),p&&t.jsx("button",{type:"button",className:"cn-license-select__free-link",onClick:p,children:s("Need a different plan? Purchase a new subscription instead","cookie-notice")})]}):t.jsxs("div",{className:"cn-welcome-step cn-license-select cn-license-select--upsell",children:[t.jsx("div",{className:"cn-license-select__upsell-icon",children:"✅"}),t.jsx("h2",{className:"cn-license-select__heading",children:s("Good news — your account already has a Pro plan with available slots. Activate it here, free.","cookie-notice")}),t.jsx("p",{className:"cn-license-select__sub",children:s("You have unused Pro license slots available. Connect this site to your existing plan at no extra cost — or continue with the free version.","cookie-notice")}),i.length>1&&t.jsx("div",{className:"cn-license-select__cards",role:"radiogroup",children:i.map(P=>{const E=parseInt(P.availablelicense,10);return t.jsxs("label",{className:"cn-license-select__card"+(m===P.subscriptionid?" cn-license-select__card--selected":""),children:[t.jsx("input",{type:"radio",name:"cn_subscription",value:P.subscriptionid,checked:m===P.subscriptionid,onChange:()=>x(P.subscriptionid),className:"cn-license-select__radio"}),t.jsxs("div",{className:"cn-license-select__card-body",children:[t.jsx("span",{className:"cn-license-select__card-name",children:s("Compliance Pro","cookie-notice")}),t.jsxs("span",{className:"cn-license-select__card-slots",children:[E," domain",E!==1?"s":""," remaining"]})]})]},P.subscriptionid)})}),b&&t.jsx("div",{className:"cn-license-select__error",role:"alert",children:b}),t.jsx("div",{className:"cn-license-select__actions",children:t.jsx("button",{type:"button",className:"cn-button cn-button--primary cn-button--block",onClick:C,disabled:v||k||!m,children:v?"Activating…":"Upgrade to Pro — No Extra Charge"})}),t.jsx("button",{type:"button",className:"cn-license-select__free-link",onClick:h,children:s("Continue with free version instead","cookie-notice")})]})}const k0=()=>[{label:s("Choose Protection","cookie-notice")},{label:s("Confirm","cookie-notice")},{label:s("Create Account","cookie-notice")}];function l1(i){return i==="choose"||i==="pro-pricing"?0:i==="warning"?1:2}const x0=(i,c)=>"compliance_"+c+"_"+(i===1?"notrial":String(i));function j0({isOpen:i,onClose:c,onDismissToSettings:u}){const[d,p]=j.useState("choose"),[h,m]=j.useState(null),[x,v]=j.useState([]),[g,k]=j.useState(""),_=()=>{p("choose"),m(null),v([]),k(""),u?u():c&&c()},b=()=>{h?p("payment"):Bt()},A=(P,E)=>{v(P),k(E),p("license-select")},C=P=>{const E=l1(d);P<E&&P===0&&p("choose")},D=()=>{switch(d){case"choose":return t.jsx(p0,{onBannerOnly:()=>p("warning"),onProtect:()=>p("account"),onComply:()=>p("pro-pricing"),onLearnMore:()=>p("pro-pricing")});case"pro-pricing":return t.jsx(h0,{onSelectPlan:(P,E,I)=>{m({planKey:x0(P,E),domains:P,billing:E,price:I}),p("account")},onBack:()=>{m(null),p("choose")}});case"warning":return t.jsx(g0,{onDismissToSettings:_,onBackToChoose:()=>p("choose")});case"account":return t.jsx(v0,{onComplete:b,onCompleteWithSubscriptions:A});case"license-select":return t.jsx(_0,{subscriptions:x,selectedPlan:h,nonce:g,onSuccess:P=>{Bt({license_assigned:"1",...P!=null?{slots_remaining:P}:{}})},onPayInstead:h?()=>p("payment"):null,onFreeInstead:()=>Bt()});case"payment":return t.jsx(c1,{plan:h,onComplete:()=>Bt(),onBack:()=>p("account"),backLabel:"Back",onSessionExpired:()=>p("account")});default:return null}};return t.jsxs(o1,{isOpen:i&&!Re(),onClose:_,size:"lg",children:[D(),t.jsx(d0,{steps:k0(),currentStep:l1(d),onStepClick:C})]})}const w0=[{icon:t.jsx(zs,{size:24}),title:s("Autoblocking","cookie-notice"),desc:s("Scripts wait for visitor consent before firing.","cookie-notice")},{icon:t.jsx(cp,{size:24}),title:s("Geographic Enforcement","cookie-notice"),desc:s("Apply different rules by visitor location.","cookie-notice")},{icon:t.jsx(Ol,{size:24}),title:s("Consent Proofs","cookie-notice"),desc:s("Exportable audit trail for every consent event.","cookie-notice")},{icon:t.jsx(pp,{size:24}),title:s("Priority Support","cookie-notice"),desc:s("Fast, expert help when you need it.","cookie-notice")},{icon:t.jsx(lp,{size:24}),title:s("Advanced Analytics","cookie-notice"),desc:s("Consent rates, geography, and trend data.","cookie-notice")},{icon:t.jsx(up,{size:24}),title:s("Script Wizard","cookie-notice"),desc:s("Register and manage third-party scripts easily.","cookie-notice")}],b0=[{domains:1,monthly:14.95,yearly:149.5,perDomain:null,popular:!0},{domains:5,monthly:29.95,yearly:299.5,perDomain:5.99,tagline:s("Best for dev + staging + production","cookie-notice")},{domains:10,monthly:49.95,yearly:499.5,perDomain:4.99,tagline:s("For agencies & multi-site networks","cookie-notice")}],u1=(i,c)=>"compliance_"+c+"_"+(i===1?"notrial":String(i)),N0=1,S0=i=>{var d,p;const c=((d=window.cnReactData)==null?void 0:d.app_id)||((p=window.cnReactData)==null?void 0:p.appId)||"",u=new URLSearchParams({"open-modal":"payment",plan:i});return c&&u.set("app-id",c),`${en}/#/dashboard?${u.toString()}`},d1=()=>{var i;window.location.href=((i=window.cnReactData)==null?void 0:i.welcomeUrl)||"?page=cookie-notice&cn_react_welcome=1"};function C0({isOpen:i,onClose:c}){const[u,d]=j.useState("monthly"),[p,h]=j.useState(null),{isFree:m}=Ze(),x=(p==null?void 0:p.planKey)||u1(N0,u),v=()=>{h(null),c()};return t.jsx(o1,{isOpen:i&&!Re(),onClose:v,size:"lg",children:p?t.jsx("div",{className:"cn-welcome-step",children:t.jsx(c1,{plan:p,onComplete:()=>window.location.reload(),onBack:()=>h(null),backLabel:"Back to plans",onSessionExpired:d1})}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"cn-pricing-hero",children:[t.jsx("h2",{className:"cn-pricing-hero__heading",children:"Cookie Compliance — Professional"}),t.jsx("p",{className:"cn-pricing-hero__sub",children:"Everything you need to stay compliant, protect your visitors, and prove it."})]}),t.jsx("div",{className:"cn-benefit-grid",children:w0.map((g,k)=>t.jsxs("div",{className:"cn-benefit-card",children:[t.jsx("div",{className:"cn-benefit-card__icon",children:g.icon}),t.jsx("div",{className:"cn-benefit-card__title",children:g.title}),t.jsx("div",{className:"cn-benefit-card__desc",children:g.desc})]},k))}),t.jsxs("div",{className:"cn-pill-toggle",style:{margin:"0 auto 20px"},children:[t.jsx("button",{className:`cn-pill-toggle__btn${u==="monthly"?" cn-pill-toggle__btn--active":""}`,type:"button",onClick:()=>d("monthly"),children:"Monthly"}),t.jsxs("button",{className:`cn-pill-toggle__btn${u==="yearly"?" cn-pill-toggle__btn--active":""}`,type:"button",onClick:()=>d("yearly"),children:["Yearly",t.jsx("span",{className:"cn-pill-toggle__badge",children:s("Save 17%","cookie-notice")})]})]}),t.jsx("p",{className:"cn-pricing-door-label",children:"Quick checkout — pay securely right here"}),t.jsx("div",{className:"cn-pricing-cards",children:b0.map(g=>t.jsxs("div",{className:`cn-pricing-card${g.popular?" cn-pricing-card--popular":""}`,children:[g.popular&&t.jsx("div",{className:"cn-pricing-card__popular-badge",children:s("Recommended","cookie-notice")}),t.jsx("div",{className:"cn-pricing-card__domains",children:g.domains}),t.jsx("div",{className:"cn-pricing-card__domains-label",children:g.domains===1?"domain":"domains"}),g.tagline&&t.jsx("div",{className:"cn-pricing-card__tagline",children:g.tagline}),t.jsxs("div",{className:"cn-pricing-card__price",children:[t.jsx("sup",{children:"$"}),u==="monthly"?g.monthly.toFixed(2):(g.yearly/12).toFixed(2),t.jsx("sub",{children:" / mo"})]}),t.jsxs("div",{className:"cn-pricing-card__billed-note",style:u==="monthly"?{visibility:"hidden"}:void 0,children:["$",g.yearly.toFixed(2)," billed annually"]}),t.jsx(Ue,{variant:g.popular?"primary":"outline",size:"md",style:{width:"100%"},onClick:()=>{m?h({planKey:u1(g.domains,u),domains:g.domains,billing:u,price:u==="monthly"?g.monthly:g.yearly}):d1()},children:s(m?"Select Plan":"Get Started","cookie-notice")})]},g.domains))}),t.jsxs("div",{className:"cn-pricing-portal-door",children:[t.jsx("div",{className:"cn-pricing-portal-door__title",children:s("Prefer more options?","cookie-notice")}),t.jsx("p",{className:"cn-pricing-portal-door__desc",children:"Manage your subscription in your Hu‑manity account — multi‑domain plans, invoices & VAT, and more payment methods."}),t.jsx("a",{href:S0(x),target:"_blank",rel:"noopener noreferrer",className:"cn-pricing-portal-door__link",children:"Manage in Admin Portal →"})]}),t.jsx("p",{className:"cn-pricing-footer__dismiss",children:t.jsx("button",{type:"button",className:"cn-link-btn",onClick:v,children:"Maybe later — stay on Free"})})]})})}function P0(){const i=!!(window.cnReactData||{}).devMode,{tier:c}=Ze(),u=new URLSearchParams(window.location.search),d=u.get("cn_tier")||c,p=parseInt(u.get("cn_usage")||"0",10),h=(window.cnReactData||{}).uiMode||"legacy",[m,x]=j.useState(p),[v,g]=j.useState(!1);if(!i)return null;function k(){window.confirm(`⚠️ Reset plugin to fresh-activation state? 1063 1063 1064 This clears: welcome flag, setup wizard flag, app_id, app_key, and subscription status.`)&&(g(!0),G2().then(()=>{const D=new URL(window.location.href);D.searchParams.delete("cn_tier"),D.searchParams.delete("cn_usage"),window.location.href=D.toString()}).catch(D=>{alert("Reset failed: "+(D.message||"Unknown error")),g(!1)}))}function _(D,P=null){const E=new URLSearchParams(window.location.search);E.set("cn_tier",D),D==="free"&&P!==null?E.set("cn_usage",P):E.delete("cn_usage"),window.location.search=E.toString()}function b(D){const P=new URLSearchParams(window.location.search);P.set("ui_mode",D),D==="legacy"&&(P.delete("cn_tier"),P.delete("cn_usage")),window.location.search=P.toString()}const A=[{id:"banner_only",label:"Banner Only"},{id:"free",label:"Free"},{id:"pro",label:"Pro"}],C=[{id:"react",label:"React"},{id:"legacy",label:"Legacy"}];return t.jsxs("div",{className:"cn-dev-switcher",children:[t.jsxs("div",{className:"cn-dev-switcher__header",children:[t.jsx("span",{className:"cn-dev-switcher__icon",children:"🛠"}),t.jsx("span",{className:"cn-dev-switcher__title",children:"DEV MODE"})]}),t.jsx("div",{className:"cn-dev-switcher__label",children:"Account type"}),t.jsx("div",{className:"cn-dev-switcher__buttons",children:A.map(D=>t.jsx("button",{className:"cn-dev-switcher__btn"+(d===D.id?" cn-dev-switcher__btn--active":""),onClick:()=>_(D.id,D.id==="free"?m:null),children:D.label},D.id))}),t.jsx("div",{className:"cn-dev-switcher__label",children:"Admin UI"}),t.jsx("div",{className:"cn-dev-switcher__buttons",children:C.map(D=>t.jsx("button",{className:"cn-dev-switcher__btn"+(h===D.id?" cn-dev-switcher__btn--active":""),onClick:()=>b(D.id),children:D.label},D.id))}),d==="free"&&t.jsxs("div",{className:"cn-dev-switcher__usage",children:[t.jsxs("div",{className:"cn-dev-switcher__usage-row",children:[t.jsx("span",{className:"cn-dev-switcher__usage-label",children:"Usage"}),t.jsxs("span",{className:"cn-dev-switcher__usage-val",children:[m,"%"]})]}),t.jsx("input",{type:"range",min:"0",max:"100",value:m,className:"cn-dev-switcher__slider",onChange:D=>x(Number(D.target.value)),onMouseUp:D=>{D.stopPropagation(),_("free",m)},onTouchEnd:D=>{D.stopPropagation(),_("free",m)}})]}),t.jsx("div",{className:"cn-dev-switcher__divider"}),t.jsx("button",{className:"cn-dev-switcher__reset-btn",onClick:k,disabled:v,title:"Clears welcome flag, setup wizard, app connection & subscription status",children:v?"↺ Resetting…":"↺ Reset Plugin"})]})}class p1 extends w.Component{constructor(c){super(c),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(c,u){console.error("ErrorBoundary caught:",c,u)}render(){return this.state.hasError?t.jsxs("div",{className:"cn-error-boundary",children:[t.jsx("p",{className:"cn-error-boundary__message",children:"Something went wrong while loading this section."}),t.jsx("button",{type:"button",className:"button button-primary",onClick:()=>window.location.reload(),children:"Reload page"})]}):this.props.children}}function P0({onOpenPricingModal:i}){const{topBar:c,dismiss:u}=Il();if(c===null||Re())return null;const p={critical:"crit",warning:"warning",info:"info"}[c.type]||"info";let h=null;return c.icon==="error"?h=t.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",width:"24",height:"24",children:[t.jsx("circle",{cx:"12",cy:"12",r:"10"}),t.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),t.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]}):c.icon==="warning"?h=t.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",width:"24",height:"24",children:[t.jsx("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}),t.jsx("line",{x1:"12",y1:"9",x2:"12",y2:"13"}),t.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]}):c.icon==="info"&&(h=t.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",width:"24",height:"24",children:[t.jsx("circle",{cx:"12",cy:"12",r:"10"}),t.jsx("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),t.jsx("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"})]})),t.jsxs("div",{className:`cn-alert cn-alert--${p}`,style:{marginBottom:24},children:[t.jsx("div",{className:"cn-alert__icon",children:h}),t.jsxs("div",{className:"cn-alert__content",children:[t.jsx("h3",{className:"cn-alert__title",children:c.title}),t.jsx("p",{className:"cn-alert__desc",children:c.description})]}),t.jsx("div",{className:"cn-alert__actions",children:t.jsx("button",{type:"button",className:"cn-button cn-button--upgrade",onClick:i,children:c.cta.label})}),c.dismissible&&t.jsx("button",{type:"button",className:"cn-alert__dismiss",onClick:()=>u(c.id),"aria-label":s("Dismiss","cookie-notice"),children:t.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",width:"18",height:"18",children:[t.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),t.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]})}const Is=()=>[{id:"protection",label:s("Overview","cookie-notice")},{id:"settings",label:s("Cookie Consent","cookie-notice")},{id:"privacy-consent",label:s("Privacy Consent","cookie-notice")},{id:"audit-trail",label:s("Consent Logs","cookie-notice")}],L0=3e4;function E0(i){return i?Date.parse(String(i).trim().replace(" ","T")+"Z"):NaN}function D0({dashboard:i,refetchDashboard:c,refetchConfig:u,notices:d,removeNotice:p,addNotice:h,activeTab:m,setActiveTab:x,showWelcomeModal:v,setShowWelcomeModal:g,showPricingModal:k,setShowPricingModal:_}){const{closeAllPanels:b}=ki(),A=Re(),C=A?void 0:()=>g(!0),D=A?void 0:()=>_(!0),P=w.useCallback(R=>{b(),x(R);const O=new URLSearchParams(window.location.search);O.delete("tab");const te=window.location.pathname+(O.toString()?"?"+O.toString():"")+"#"+R;window.history.replaceState({},"",te)},[b,x]),E=()=>{switch(m){case"protection":return t.jsx(tp,{addNotice:h,onOpenWelcomeModal:C,onOpenPricingModal:D,onTabChange:P});case"settings":return t.jsx(Hp,{addNotice:h,onOpenWelcomeModal:C,onOpenPricingModal:D});case"privacy-consent":return t.jsx(c0,{addNotice:h,onOpenWelcomeModal:C});case"audit-trail":return t.jsx(i0,{addNotice:h,onOpenWelcomeModal:C,onOpenPricingModal:D});default:return null}},I=w.useCallback(()=>{g(!1),P("settings"),U2().catch(()=>{})},[P,g]);return t.jsxs("div",{className:"cn-admin-app",children:[t.jsx(C0,{}),d.map(R=>t.jsx(Ut,{type:R.type,dismissible:!0,onDismiss:()=>p(R.id),children:R.message},R.id)),t.jsx(y2,{tabs:Is(),activeTab:m,onTabChange:P}),t.jsxs("div",{className:"cn-tab-content",children:[t.jsx(P0,{onOpenPricingModal:D}),t.jsx(p1,{children:E()},m)]}),t.jsx(x2,{}),t.jsx(x0,{isOpen:v,onClose:()=>g(!1),onDismissToSettings:I}),t.jsx(S0,{isOpen:k,onClose:()=>_(!1)})]})}function T0(){const{data:i,error:c,refetch:u}=f3(),{data:d,loading:p,refetch:h}=h3(),[m,x]=w.useState("idle"),[v,g]=w.useState(()=>{var M;return((M=window.cnReactData)==null?void 0:M.lastSynced)||""}),k=w.useRef(!1),_=w.useCallback(async()=>{var M;if(!(!((M=window.cnReactData)!=null&&M.app_id)||Re())&&!Po(Fn())&&!k.current){k.current=!0,x("refreshing");try{const me=await gn("sync_config");me!=null&&me.timestamp&&g(me.timestamp),h(),u(),x("ok")}catch{x("failed")}finally{k.current=!1}}},[h,u]);w.useEffect(()=>{var me;const M=E0((me=window.cnReactData)==null?void 0:me.lastSynced);!Number.isNaN(M)&&Date.now()-M<L0||_()},[]);const A={state:Ai()?"idle":m,lastSynced:v,retry:_},[C,D]=w.useState([]),[P,E]=w.useState(()=>{var ke;const M=new URLSearchParams(window.location.search).get("tab");if(M==="consent-logs")return"audit-trail";if(Is().find(U=>U.id===M))return M;const me=window.location.hash.replace("#","");return Is().find(U=>U.id===me)?me:!((ke=window.cnReactData)!=null&&ke.app_id)?"settings":"protection"}),I=_3(i,u,c,P==="protection"),{isBannerOnly:R}=Ze(),O=w.useRef(Date.now()),te=w.useRef(null);w.useEffect(()=>{const M=()=>{document.visibilityState==="visible"&&(Date.now()-O.current<1e4||(clearTimeout(te.current),te.current=setTimeout(()=>{u()},2e3)))};return document.addEventListener("visibilitychange",M),()=>{document.removeEventListener("visibilitychange",M),clearTimeout(te.current)}},[u]);const[J,B]=w.useState(()=>{const M=new URLSearchParams(window.location.search),me=M.get("cn_react_welcome")==="1";if(me){M.delete("cn_react_welcome");const _e=window.location.pathname+(M.toString()?"?"+M.toString():"")+window.location.hash;window.history.replaceState({},"",_e)}return me&&!Re()}),[X,q]=w.useState(!1);w.useEffect(()=>{var _e;if(Re()||!R)return;const M=(_e=window.cnReactData)==null?void 0:_e.welcomeDismissedAt;if(!M){B(!0);return}const me=Date.now()-720*60*60*1e3;new Date(M).getTime()<me&&B(!0)},[R]);const W=w.useCallback((M,me="success")=>{const _e=Date.now();D(ke=>[...ke,{id:_e,message:M,type:me}]),setTimeout(()=>D(ke=>ke.filter(U=>U.id!==_e)),5e3)},[]),ne=w.useCallback(M=>{D(me=>me.filter(_e=>_e.id!==M))},[]);w.useEffect(()=>{var me,_e;const M=new URLSearchParams(window.location.search);M.get(vs)==="1"&&(M.delete(vs),window.history.replaceState({},"",window.location.pathname+(M.toString()?"?"+M.toString():"")+window.location.hash),(me=window.cnReactData)!=null&&me.app_id&&((_e=window.cnReactData)==null?void 0:_e.status)==="active"&&!Re()&&W(q2(Fn().banner),"success"))},[]);const le=w.useCallback(()=>{u()},[u]),he=w.useCallback(()=>{u(),h()},[u,h]);return t.jsx(Vc.Provider,{value:{dashboard:i,refetchDashboard:u,isLoadingDashboard:!i,scorecardStatus:I},children:t.jsx(Gc.Provider,{value:{config:d,isLoadingConfig:p,refetchConfig:h,configRefresh:A},children:t.jsx(j2,{onLawSave:le,onConsentClose:he,children:t.jsx(D0,{dashboard:i,refetchDashboard:u,refetchConfig:h,notices:C,removeNotice:ne,addNotice:W,activeTab:P,setActiveTab:E,showWelcomeModal:J,setShowWelcomeModal:B,showPricingModal:X,setShowPricingModal:q})})})})}const Os=document.getElementById("cn-react-root"),f1=typeof window.cnReactData=="object"&&window.cnReactData!==null&&typeof window.cnReactData.ajaxURL=="string"&&typeof window.cnReactData.nonce=="string";Os&&f1?v2.createRoot(Os).render(t.jsx(p1,{children:t.jsx(T0,{})})):Os&&!f1&&console.error("[Compliance] cnReactData missing or malformed — admin UI will not mount.",{cnReactData:window.cnReactData})})();1064 This clears: welcome flag, setup wizard flag, app_id, app_key, and subscription status.`)&&(g(!0),G2().then(()=>{const D=new URL(window.location.href);D.searchParams.delete("cn_tier"),D.searchParams.delete("cn_usage"),window.location.href=D.toString()}).catch(D=>{alert("Reset failed: "+(D.message||"Unknown error")),g(!1)}))}function _(D,P=null){const E=new URLSearchParams(window.location.search);E.set("cn_tier",D),D==="free"&&P!==null?E.set("cn_usage",P):E.delete("cn_usage"),window.location.search=E.toString()}function b(D){const P=new URLSearchParams(window.location.search);P.set("ui_mode",D),D==="legacy"&&(P.delete("cn_tier"),P.delete("cn_usage")),window.location.search=P.toString()}const A=[{id:"banner_only",label:"Banner Only"},{id:"free",label:"Free"},{id:"pro",label:"Pro"}],C=[{id:"react",label:"React"},{id:"legacy",label:"Legacy"}];return t.jsxs("div",{className:"cn-dev-switcher",children:[t.jsxs("div",{className:"cn-dev-switcher__header",children:[t.jsx("span",{className:"cn-dev-switcher__icon",children:"🛠"}),t.jsx("span",{className:"cn-dev-switcher__title",children:"DEV MODE"})]}),t.jsx("div",{className:"cn-dev-switcher__label",children:"Account type"}),t.jsx("div",{className:"cn-dev-switcher__buttons",children:A.map(D=>t.jsx("button",{className:"cn-dev-switcher__btn"+(d===D.id?" cn-dev-switcher__btn--active":""),onClick:()=>_(D.id,D.id==="free"?m:null),children:D.label},D.id))}),t.jsx("div",{className:"cn-dev-switcher__label",children:"Admin UI"}),t.jsx("div",{className:"cn-dev-switcher__buttons",children:C.map(D=>t.jsx("button",{className:"cn-dev-switcher__btn"+(h===D.id?" cn-dev-switcher__btn--active":""),onClick:()=>b(D.id),children:D.label},D.id))}),d==="free"&&t.jsxs("div",{className:"cn-dev-switcher__usage",children:[t.jsxs("div",{className:"cn-dev-switcher__usage-row",children:[t.jsx("span",{className:"cn-dev-switcher__usage-label",children:"Usage"}),t.jsxs("span",{className:"cn-dev-switcher__usage-val",children:[m,"%"]})]}),t.jsx("input",{type:"range",min:"0",max:"100",value:m,className:"cn-dev-switcher__slider",onChange:D=>x(Number(D.target.value)),onMouseUp:D=>{D.stopPropagation(),_("free",m)},onTouchEnd:D=>{D.stopPropagation(),_("free",m)}})]}),t.jsx("div",{className:"cn-dev-switcher__divider"}),t.jsx("button",{className:"cn-dev-switcher__reset-btn",onClick:k,disabled:v,title:"Clears welcome flag, setup wizard, app connection & subscription status",children:v?"↺ Resetting…":"↺ Reset Plugin"})]})}class p1 extends j.Component{constructor(c){super(c),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(c,u){console.error("ErrorBoundary caught:",c,u)}render(){return this.state.hasError?t.jsxs("div",{className:"cn-error-boundary",children:[t.jsx("p",{className:"cn-error-boundary__message",children:"Something went wrong while loading this section."}),t.jsx("button",{type:"button",className:"button button-primary",onClick:()=>window.location.reload(),children:"Reload page"})]}):this.props.children}}function L0({onOpenPricingModal:i}){const{topBar:c,dismiss:u}=Il();if(c===null||Re())return null;const p={critical:"crit",warning:"warning",info:"info"}[c.type]||"info";let h=null;return c.icon==="error"?h=t.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",width:"24",height:"24",children:[t.jsx("circle",{cx:"12",cy:"12",r:"10"}),t.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),t.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]}):c.icon==="warning"?h=t.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",width:"24",height:"24",children:[t.jsx("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}),t.jsx("line",{x1:"12",y1:"9",x2:"12",y2:"13"}),t.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]}):c.icon==="info"&&(h=t.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",width:"24",height:"24",children:[t.jsx("circle",{cx:"12",cy:"12",r:"10"}),t.jsx("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),t.jsx("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"})]})),t.jsxs("div",{className:`cn-alert cn-alert--${p}`,style:{marginBottom:24},children:[t.jsx("div",{className:"cn-alert__icon",children:h}),t.jsxs("div",{className:"cn-alert__content",children:[t.jsx("h3",{className:"cn-alert__title",children:c.title}),t.jsx("p",{className:"cn-alert__desc",children:c.description})]}),t.jsx("div",{className:"cn-alert__actions",children:t.jsx("button",{type:"button",className:"cn-button cn-button--upgrade",onClick:i,children:c.cta.label})}),c.dismissible&&t.jsx("button",{type:"button",className:"cn-alert__dismiss",onClick:()=>u(c.id),"aria-label":s("Dismiss","cookie-notice"),children:t.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",width:"18",height:"18",children:[t.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),t.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]})}const Is=()=>[{id:"protection",label:s("Overview","cookie-notice")},{id:"settings",label:s("Cookie Consent","cookie-notice")},{id:"privacy-consent",label:s("Privacy Consent","cookie-notice")},{id:"audit-trail",label:s("Consent Logs","cookie-notice")}],E0=3e4;function D0(i){return i?Date.parse(String(i).trim().replace(" ","T")+"Z"):NaN}function T0({dashboard:i,refetchDashboard:c,refetchConfig:u,notices:d,removeNotice:p,addNotice:h,activeTab:m,setActiveTab:x,showWelcomeModal:v,setShowWelcomeModal:g,showPricingModal:k,setShowPricingModal:_}){const{closeAllPanels:b}=ki(),A=Re(),C=A?void 0:()=>g(!0),D=A?void 0:()=>_(!0),P=j.useCallback(R=>{b(),x(R);const O=new URLSearchParams(window.location.search);O.delete("tab");const oe=window.location.pathname+(O.toString()?"?"+O.toString():"")+"#"+R;window.history.replaceState({},"",oe)},[b,x]),E=()=>{switch(m){case"protection":return t.jsx(tp,{addNotice:h,onOpenWelcomeModal:C,onOpenPricingModal:D,onTabChange:P});case"settings":return t.jsx(Kp,{addNotice:h,onOpenWelcomeModal:C,onOpenPricingModal:D});case"privacy-consent":return t.jsx(l0,{addNotice:h,onOpenWelcomeModal:C});case"audit-trail":return t.jsx(r0,{addNotice:h,onOpenWelcomeModal:C,onOpenPricingModal:D});default:return null}},I=j.useCallback(()=>{g(!1),P("settings"),U2().catch(()=>{})},[P,g]);return t.jsxs("div",{className:"cn-admin-app",children:[t.jsx(P0,{}),d.map(R=>t.jsx(Ut,{type:R.type,dismissible:!0,onDismiss:()=>p(R.id),children:R.message},R.id)),t.jsx(y2,{tabs:Is(),activeTab:m,onTabChange:P}),t.jsxs("div",{className:"cn-tab-content",children:[t.jsx(L0,{onOpenPricingModal:D}),t.jsx(p1,{children:E()},m)]}),t.jsx(x2,{}),t.jsx(j0,{isOpen:v,onClose:()=>g(!1),onDismissToSettings:I}),t.jsx(C0,{isOpen:k,onClose:()=>_(!1)})]})}function A0(){const{data:i,error:c,refetch:u}=f3(),{data:d,loading:p,refetch:h}=h3(),[m,x]=j.useState("idle"),[v,g]=j.useState(()=>{var ne;return((ne=window.cnReactData)==null?void 0:ne.lastSynced)||""}),k=j.useRef(!1),_=j.useCallback(async()=>{var ne;if(!(!((ne=window.cnReactData)!=null&&ne.app_id)||Re())&&!Po(Fn())&&!k.current){k.current=!0,x("refreshing");try{const de=await gn("sync_config");de!=null&&de.timestamp&&g(de.timestamp),h(),u(),x("ok")}catch{x("failed")}finally{k.current=!1}}},[h,u]);j.useEffect(()=>{var de;const ne=D0((de=window.cnReactData)==null?void 0:de.lastSynced);!Number.isNaN(ne)&&Date.now()-ne<E0||_()},[]);const A={state:Ai()?"idle":m,lastSynced:v,retry:_},[C,D]=j.useState([]),[P,E]=j.useState(()=>{var ke;const ne=new URLSearchParams(window.location.search).get("tab");if(ne==="consent-logs")return"audit-trail";if(Is().find(U=>U.id===ne))return ne;const de=window.location.hash.replace("#","");return Is().find(U=>U.id===de)?de:!((ke=window.cnReactData)!=null&&ke.app_id)?"settings":"protection"}),I=_3(i,u,c,P==="protection"),{isBannerOnly:R}=Ze(),O=j.useRef(Date.now()),oe=j.useRef(null);j.useEffect(()=>{const ne=()=>{document.visibilityState==="visible"&&(Date.now()-O.current<1e4||(clearTimeout(oe.current),oe.current=setTimeout(()=>{u()},2e3)))};return document.addEventListener("visibilitychange",ne),()=>{document.removeEventListener("visibilitychange",ne),clearTimeout(oe.current)}},[u]);const[J,B]=j.useState(()=>{const ne=new URLSearchParams(window.location.search),de=ne.get("cn_react_welcome")==="1";if(de){ne.delete("cn_react_welcome");const F=window.location.pathname+(ne.toString()?"?"+ne.toString():"")+window.location.hash;window.history.replaceState({},"",F)}return de&&!Re()}),[X,q]=j.useState(!1);j.useEffect(()=>{var F;if(Re()||!R)return;const ne=(F=window.cnReactData)==null?void 0:F.welcomeDismissedAt;if(!ne){B(!0);return}const de=Date.now()-720*60*60*1e3;new Date(ne).getTime()<de&&B(!0)},[R]);const W=j.useCallback((ne,de="success")=>{const F=Date.now();D(ke=>[...ke,{id:F,message:ne,type:de}]),setTimeout(()=>D(ke=>ke.filter(U=>U.id!==F)),5e3)},[]),te=j.useCallback(ne=>{D(de=>de.filter(F=>F.id!==ne))},[]);j.useEffect(()=>{var de,F;const ne=new URLSearchParams(window.location.search);ne.get(vs)==="1"&&(ne.delete(vs),window.history.replaceState({},"",window.location.pathname+(ne.toString()?"?"+ne.toString():"")+window.location.hash),(de=window.cnReactData)!=null&&de.app_id&&((F=window.cnReactData)==null?void 0:F.status)==="active"&&!Re()&&W(q2(Fn().banner),"success"))},[]);const ue=j.useCallback(()=>{u()},[u]),ge=j.useCallback(()=>{u(),h()},[u,h]);return t.jsx(Vc.Provider,{value:{dashboard:i,refetchDashboard:u,isLoadingDashboard:!i,scorecardStatus:I},children:t.jsx(Gc.Provider,{value:{config:d,isLoadingConfig:p,refetchConfig:h,configRefresh:A},children:t.jsx(w2,{onLawSave:ue,onConsentClose:ge,children:t.jsx(T0,{dashboard:i,refetchDashboard:u,refetchConfig:h,notices:C,removeNotice:te,addNotice:W,activeTab:P,setActiveTab:E,showWelcomeModal:J,setShowWelcomeModal:B,showPricingModal:X,setShowPricingModal:q})})})})}const Os=document.getElementById("cn-react-root"),f1=typeof window.cnReactData=="object"&&window.cnReactData!==null&&typeof window.cnReactData.ajaxURL=="string"&&typeof window.cnReactData.nonce=="string";Os&&f1?v2.createRoot(Os).render(t.jsx(p1,{children:t.jsx(A0,{})})):Os&&!f1&&console.error("[Compliance] cnReactData missing or malformed — admin UI will not mount.",{cnReactData:window.cnReactData})})(); -
cookie-notice/trunk/cookie-notice.php
r3736417 r3744556 3 3 Plugin Name: Cookie Compliance for WordPress – Cookie Consent, GDPR & CCPA 4 4 Description: Cookie Compliance for WordPress (formerly "Compliance by Hu-manity.co" / "Cookie Notice") — the WordPress component of Cookie Compliance, the consent management platform by Hu-manity.co. Cookie consent banner, pre-consent script blocking, Google Consent Mode v2, WP Consent API integration, and consent records for GDPR, CCPA and global data privacy laws. 5 Version: 3.1.1 55 Version: 3.1.16 6 6 Author: Hu-manity.co 7 7 Author URI: https://hu-manity.co/ … … 245 245 'activation_datetime' => 0 246 246 ], 247 'version' => '3.1.1 5'247 'version' => '3.1.16' 248 248 ]; 249 249 -
cookie-notice/trunk/includes/settings.php
r3731548 r3744556 2453 2453 /** 2454 2454 * Point the WordPress privacy policy page at the banner's policy page, when synced. 2455 * With no page chosen (id 0) the site's existing privacy page is kept, never cleared. 2455 2456 * 2456 2457 * @param array $options Full (merged) options … … 2458 2459 */ 2459 2460 public function sync_privacy_policy_page( $options ) { 2460 if ( $options['see_more_opt']['link_type'] === 'page' && $options['see_more_opt']['sync'] )2461 if ( $options['see_more_opt']['link_type'] === 'page' && $options['see_more_opt']['sync'] && (int) $options['see_more_opt']['id'] > 0 ) 2461 2462 update_option( 'wp_page_for_privacy_policy', $options['see_more_opt']['id'] ); 2462 2463 } … … 2471 2472 if ( $options['see_more'] && $options['link_position'] === 'message' && strpos( $options['message_text'], '[cookies_policy_link' ) === false ) 2472 2473 $options['message_text'] .= ' [cookies_policy_link]'; 2474 // Link position "banner": drop a bare trailing [cookies_policy_link] (left from "message" position; one the admin typed there is dropped too). Mid-message shortcodes and ones with attributes stay. 2475 elseif ( $options['see_more'] && $options['link_position'] === 'banner' ) 2476 $options['message_text'] = rtrim( preg_replace( '/ \[cookies_policy_link\]\s*$/', '', $options['message_text'] ) ); 2473 2477 2474 2478 return $options; -
cookie-notice/trunk/js/front.js
r3404286 r3744556 409 409 var cookieButtons = document.getElementsByClassName( 'cn-set-cookie' ), 410 410 revokeButtons = document.getElementsByClassName( 'cn-revoke-cookie' ), 411 linkButton = document.getElementById( 'cn-more-info' ),411 linkButtons = this.noticeContainer.querySelectorAll( '.cn-more-info, .cn-privacy-policy-link' ), 412 412 closeButton = document.getElementById( 'cn-close-notice' ); 413 413 … … 456 456 } 457 457 458 // handle link button 459 if ( linkButton !== null ) { 460 linkButton.addEventListener( 'click', function ( e ) { 461 var linkUrl = this.dataset.linkUrl || this.getAttribute( 'href' ); 462 var linkTarget = this.dataset.linkTarget || this.getAttribute( 'target' ) || '_self'; 463 464 // only intercept when we have a destination 465 if ( ! linkUrl ) 466 return; 467 468 e.preventDefault(); 469 // Chrome double click event fix 470 e.stopPropagation(); 471 472 window.open( linkUrl, linkTarget ); 473 } ); 474 } 458 // handle link button 459 // the message shortcode link and the banner button can both be present 460 for ( var j = 0; j < linkButtons.length; j++ ) { 461 linkButtons[j].addEventListener( 'click', function ( e ) { 462 var linkUrl = this.dataset.linkUrl || this.getAttribute( 'href' ); 463 var linkTarget = this.dataset.linkTarget || this.getAttribute( 'target' ) || '_self'; 464 465 // only intercept when we have a destination 466 if ( ! linkUrl ) 467 return; 468 469 e.preventDefault(); 470 // Chrome double click event fix 471 e.stopPropagation(); 472 473 window.open( linkUrl, linkTarget ); 474 } ); 475 } 475 476 476 477 // handle close button -
cookie-notice/trunk/js/front.min.js
r3458232 r3744556 1 !function(){if("function"==typeof window.CustomEvent)return!1;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}e.prototype=window.Event.prototype,window.CustomEvent=e}(),function(){var e=function(e){return new RegExp("(^| )"+e+"( |$)")},t=function(e,t,n){for(var i=0;i<e.length;i++)t.call(n,e[i])};function n(e){this.element=e}n.prototype={add:function(){t(arguments,function(e){this.contains(e)||(this.element.className+=this.element.className.length>0?" "+e:e)},this)},remove:function(){t(arguments,function(t){this.element.className=this.element.className.replace(e(t),"")},this)},toggle:function(e){return this.contains(e)?(this.remove(e),!1):(this.add(e),!0)},contains:function(t){return e(t).test(this.element.className)},replace:function(e,t){this.remove(e),this.add(t)}},"classList"in Element.prototype||Object.defineProperty(Element.prototype,"classList",{get:function(){return new n(this)}}),window.DOMTokenList&&null==DOMTokenList.prototype.replace&&(DOMTokenList.prototype.replace=n.prototype.replace)}(),function(e,t){var n=new function(){this.cookiesAccepted=null,this.noticeContainer=null,this.setStatus=function(n){var i=this,o="",s="",c=new Date,a=new Date;cnArgs.onScroll&&e.removeEventListener("scroll",this.handleScroll),"accept"===n?(n="true",a.setTime(parseInt(c.getTime())+1e3*parseInt(cnArgs.cookieTime))):(n="false",a.setTime(parseInt(c.getTime())+1e3*parseInt(cnArgs.cookieTimeRejected))),cnArgs.globalCookie&&(o=this.getDomain(t.location.hostname)),"localhost"===t.location.hostname&&(s=t.location.pathname.split("/")[1]);var r="";"https:"===t.location.protocol&&(r=";secure"),t.cookie=cnArgs.cookieName+"="+n+";expires="+a.toUTCString()+";path=/"+s+";domain="+o+r,this.cookiesAccepted="true"===n;var d=new CustomEvent("setCookieNotice",{detail:{value:n,time:c,expires:a,data:cnArgs}});if(t.dispatchEvent(d),this.setBodyClass(["cookies-set","true"===n?"cookies-accepted":"cookies-refused"]),this.hideCookieNotice(),"automatic"===cnArgs.revokeCookiesOpt&&(this.noticeContainer.addEventListener("animationend",function e(){i.noticeContainer.removeEventListener("animationend",e),i.showRevokeNotice()}),this.noticeContainer.addEventListener("webkitAnimationEnd",function e(){i.noticeContainer.removeEventListener("webkitAnimationEnd",e),i.showRevokeNotice()})),cnArgs.redirection&&("true"===n&&null===this.cookiesAccepted||n!==this.cookiesAccepted&&null!==this.cookiesAccepted)){var l=e.location.protocol+"//",h=e.location.host+"/"+e.location.pathname;cnArgs.cache?(l=l+h.replace("//","/")+(""===e.location.search?"?":e.location.search+"&")+"cn-reloaded=1"+e.location.hash,e.location.href=l):(l=l+h.replace("//","/")+e.location.search+e.location.hash,e.location.reload(!0))}else;},this.getDomain=function(e){new RegExp(/https?:\/\//).test(e)||(e="http://"+e);var t=new URL(e).hostname.split(".");return t.slice(0).slice(-(4===t.length?3:2)).join(".")},this.getStatus=function(e){var n=("; "+t.cookie).split("; cookie_notice_accepted=");if(2===n.length){var i=n.pop().split(";").shift();return e?"true"===i:i}return null},this.showCookieNotice=function(){var e=this,n=new CustomEvent("showCookieNotice",{detail:{data:cnArgs}});t.dispatchEvent(n),this.noticeContainer.classList.remove("cookie-notice-hidden"),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.add("cookie-notice-visible"),this.noticeContainer.addEventListener("animationend",function t(){e.noticeContainer.removeEventListener("animationend",t),e.noticeContainer.classList.remove("cn-animated")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function t(){e.noticeContainer.removeEventListener("webkitAnimationEnd",t),e.noticeContainer.classList.remove("cn-animated")})},this.hideCookieNotice=function(){var e=this,n=new CustomEvent("hideCookieNotice",{detail:{data:cnArgs}});t.dispatchEvent(n),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.remove("cookie-notice-visible"),this.noticeContainer.addEventListener("animationend",function t(){e.noticeContainer.removeEventListener("animationend",t),e.noticeContainer.classList.remove("cn-animated"),e.noticeContainer.classList.add("cookie-notice-hidden")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function t(){e.noticeContainer.removeEventListener("webkitAnimationEnd",t),e.noticeContainer.classList.remove("cn-animated"),e.noticeContainer.classList.add("cookie-notice-hidden")})},this.showRevokeNotice=function(){var e=this,n=new CustomEvent("showRevokeNotice",{detail:{data:cnArgs}});t.dispatchEvent(n),this.noticeContainer.classList.remove("cookie-revoke-hidden"),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.add("cookie-revoke-visible"),this.noticeContainer.addEventListener("animationend",function t(){e.noticeContainer.removeEventListener("animationend",t),e.noticeContainer.classList.remove("cn-animated")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function t(){e.noticeContainer.removeEventListener("webkitAnimationEnd",t),e.noticeContainer.classList.remove("cn-animated")})},this.hideRevokeNotice=function(){var e=this,n=new CustomEvent("hideRevokeNotice",{detail:{data:cnArgs}});t.dispatchEvent(n),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.remove("cookie-revoke-visible"),this.noticeContainer.addEventListener("animationend",function t(){e.noticeContainer.removeEventListener("animationend",t),e.noticeContainer.classList.remove("cn-animated"),e.noticeContainer.classList.add("cookie-revoke-hidden")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function t(){e.noticeContainer.removeEventListener("webkitAnimationEnd",t),e.noticeContainer.classList.remove("cn-animated"),e.noticeContainer.classList.add("cookie-revoke-hidden")})},this.setBodyClass=function(e){t.body.classList.remove("cookies-revoke"),t.body.classList.remove("cookies-accepted"),t.body.classList.remove("cookies-refused"),t.body.classList.remove("cookies-set"),t.body.classList.remove("cookies-not-set");for(var n=0;n<e.length;n++)t.body.classList.add(e[n])},this.handleScroll=function(){(e.pageYOffset||(t.documentElement||t.body.parentNode||t.body).scrollTop)>parseInt(cnArgs.onScrollOffset)&&this.setStatus("accept")},this.getClosest=function(e,n){for(Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1});e&&e!==t;e=e.parentNode)if(e.matches(n))return e;return null},this.inIframe=function(){try{return e.self!==e.top}catch(e){return!0}},this.init=function(){var n=this;if(!0!==this.inIframe()&&(this.cookiesAccepted=this.getStatus(!0),this.noticeContainer=t.getElementById("cookie-notice"),this.noticeContainer)){var i=t.getElementsByClassName("cn-set-cookie"),o=t.getElementsByClassName("cn-revoke-cookie"),s=t.getElementById("cn-more-info"),c=t.getElementById("cn-close-notice");this.noticeContainer.classList.add("cn-effect-"+cnArgs.hideEffect),null===this.cookiesAccepted?(cnArgs.onScroll&&e.addEventListener("scroll",function(e){n.handleScroll()}),cnArgs.onClick&&e.addEventListener("click",function(e){null===n.getClosest(e.target,"#cookie-notice")&&n.setStatus("accept")},!0),this.setBodyClass(["cookies-not-set"]),this.showCookieNotice()):(this.setBodyClass(["cookies-set",!0===this.cookiesAccepted?"cookies-accepted":"cookies-refused"]),cnArgs.revokeCookies&&"automatic"===cnArgs.revokeCookiesOpt&&this.showRevokeNotice());for(var a=0;a<i.length;a++)i[a].addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),n.setStatus(this.dataset.cookieSet)});null!==s&&s.addEventListener("click",function(t){var n=this.dataset.linkUrl||this.getAttribute("href"),i=this.dataset.linkTarget||this.getAttribute("target")||"_self";n&&(t.preventDefault(),t.stopPropagation(),e.open(n,i))}),null!==c&&(c.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key&&"Spacebar"!==e.key&&13!==e.keyCode&&32!==e.keyCode||(e.preventDefault(),e.stopPropagation(),n.setStatus("reject"))}),c.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),n.setStatus("reject")}));for(a=0;a<o.length;a++)o[a].addEventListener("click",function(e){e.preventDefault(),n.noticeContainer.classList.contains("cookie-revoke-visible")?(n.hideRevokeNotice(),n.noticeContainer.addEventListener("animationend",function e(){n.noticeContainer.removeEventListener("animationend",e),n.showCookieNotice()}),n.noticeContainer.addEventListener("webkitAnimationEnd",function e(){n.noticeContainer.removeEventListener("webkitAnimationEnd",e),n.showCookieNotice()})):n.noticeContainer.classList.contains("cookie-notice-hidden")&&n.noticeContainer.classList.contains("cookie-revoke-hidden")&&n.showCookieNotice()})}}};e.addEventListener("load",function(){n.init()},!1)}(window,document);1 !function(){if("function"==typeof window.CustomEvent)return!1;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}e.prototype=window.Event.prototype,window.CustomEvent=e}(),function(){var e=function(e){return new RegExp("(^| )"+e+"( |$)")},t=function(e,t,n){for(var i=0;i<e.length;i++)t.call(n,e[i])};function n(e){this.element=e}n.prototype={add:function(){t(arguments,function(e){this.contains(e)||(this.element.className+=this.element.className.length>0?" "+e:e)},this)},remove:function(){t(arguments,function(t){this.element.className=this.element.className.replace(e(t),"")},this)},toggle:function(e){return this.contains(e)?(this.remove(e),!1):(this.add(e),!0)},contains:function(t){return e(t).test(this.element.className)},replace:function(e,t){this.remove(e),this.add(t)}},"classList"in Element.prototype||Object.defineProperty(Element.prototype,"classList",{get:function(){return new n(this)}}),window.DOMTokenList&&null==DOMTokenList.prototype.replace&&(DOMTokenList.prototype.replace=n.prototype.replace)}(),function(e,t){var n=new function(){this.cookiesAccepted=null,this.noticeContainer=null,this.setStatus=function(n){var i=this,o="",s="",c=new Date,a=new Date;cnArgs.onScroll&&e.removeEventListener("scroll",this.handleScroll),"accept"===n?(n="true",a.setTime(parseInt(c.getTime())+1e3*parseInt(cnArgs.cookieTime))):(n="false",a.setTime(parseInt(c.getTime())+1e3*parseInt(cnArgs.cookieTimeRejected))),cnArgs.globalCookie&&(o=this.getDomain(t.location.hostname)),"localhost"===t.location.hostname&&(s=t.location.pathname.split("/")[1]);var r="";"https:"===t.location.protocol&&(r=";secure"),t.cookie=cnArgs.cookieName+"="+n+";expires="+a.toUTCString()+";path=/"+s+";domain="+o+r,this.cookiesAccepted="true"===n;var l=new CustomEvent("setCookieNotice",{detail:{value:n,time:c,expires:a,data:cnArgs}});if(t.dispatchEvent(l),this.setBodyClass(["cookies-set","true"===n?"cookies-accepted":"cookies-refused"]),this.hideCookieNotice(),"automatic"===cnArgs.revokeCookiesOpt&&(this.noticeContainer.addEventListener("animationend",function e(){i.noticeContainer.removeEventListener("animationend",e),i.showRevokeNotice()}),this.noticeContainer.addEventListener("webkitAnimationEnd",function e(){i.noticeContainer.removeEventListener("webkitAnimationEnd",e),i.showRevokeNotice()})),cnArgs.redirection&&("true"===n&&null===this.cookiesAccepted||n!==this.cookiesAccepted&&null!==this.cookiesAccepted)){var d=e.location.protocol+"//",h=e.location.host+"/"+e.location.pathname;cnArgs.cache?(d=d+h.replace("//","/")+(""===e.location.search?"?":e.location.search+"&")+"cn-reloaded=1"+e.location.hash,e.location.href=d):(d=d+h.replace("//","/")+e.location.search+e.location.hash,e.location.reload(!0))}else;},this.getDomain=function(e){new RegExp(/https?:\/\//).test(e)||(e="http://"+e);var t=new URL(e).hostname.split(".");return t.slice(0).slice(-(4===t.length?3:2)).join(".")},this.getStatus=function(e){var n=("; "+t.cookie).split("; cookie_notice_accepted=");if(2===n.length){var i=n.pop().split(";").shift();return e?"true"===i:i}return null},this.showCookieNotice=function(){var e=this,n=new CustomEvent("showCookieNotice",{detail:{data:cnArgs}});t.dispatchEvent(n),this.noticeContainer.classList.remove("cookie-notice-hidden"),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.add("cookie-notice-visible"),this.noticeContainer.addEventListener("animationend",function t(){e.noticeContainer.removeEventListener("animationend",t),e.noticeContainer.classList.remove("cn-animated")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function t(){e.noticeContainer.removeEventListener("webkitAnimationEnd",t),e.noticeContainer.classList.remove("cn-animated")})},this.hideCookieNotice=function(){var e=this,n=new CustomEvent("hideCookieNotice",{detail:{data:cnArgs}});t.dispatchEvent(n),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.remove("cookie-notice-visible"),this.noticeContainer.addEventListener("animationend",function t(){e.noticeContainer.removeEventListener("animationend",t),e.noticeContainer.classList.remove("cn-animated"),e.noticeContainer.classList.add("cookie-notice-hidden")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function t(){e.noticeContainer.removeEventListener("webkitAnimationEnd",t),e.noticeContainer.classList.remove("cn-animated"),e.noticeContainer.classList.add("cookie-notice-hidden")})},this.showRevokeNotice=function(){var e=this,n=new CustomEvent("showRevokeNotice",{detail:{data:cnArgs}});t.dispatchEvent(n),this.noticeContainer.classList.remove("cookie-revoke-hidden"),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.add("cookie-revoke-visible"),this.noticeContainer.addEventListener("animationend",function t(){e.noticeContainer.removeEventListener("animationend",t),e.noticeContainer.classList.remove("cn-animated")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function t(){e.noticeContainer.removeEventListener("webkitAnimationEnd",t),e.noticeContainer.classList.remove("cn-animated")})},this.hideRevokeNotice=function(){var e=this,n=new CustomEvent("hideRevokeNotice",{detail:{data:cnArgs}});t.dispatchEvent(n),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.remove("cookie-revoke-visible"),this.noticeContainer.addEventListener("animationend",function t(){e.noticeContainer.removeEventListener("animationend",t),e.noticeContainer.classList.remove("cn-animated"),e.noticeContainer.classList.add("cookie-revoke-hidden")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function t(){e.noticeContainer.removeEventListener("webkitAnimationEnd",t),e.noticeContainer.classList.remove("cn-animated"),e.noticeContainer.classList.add("cookie-revoke-hidden")})},this.setBodyClass=function(e){t.body.classList.remove("cookies-revoke"),t.body.classList.remove("cookies-accepted"),t.body.classList.remove("cookies-refused"),t.body.classList.remove("cookies-set"),t.body.classList.remove("cookies-not-set");for(var n=0;n<e.length;n++)t.body.classList.add(e[n])},this.handleScroll=function(){(e.pageYOffset||(t.documentElement||t.body.parentNode||t.body).scrollTop)>parseInt(cnArgs.onScrollOffset)&&this.setStatus("accept")},this.getClosest=function(e,n){for(Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1});e&&e!==t;e=e.parentNode)if(e.matches(n))return e;return null},this.inIframe=function(){try{return e.self!==e.top}catch(e){return!0}},this.init=function(){var n=this;if(!0!==this.inIframe()&&(this.cookiesAccepted=this.getStatus(!0),this.noticeContainer=t.getElementById("cookie-notice"),this.noticeContainer)){var i=t.getElementsByClassName("cn-set-cookie"),o=t.getElementsByClassName("cn-revoke-cookie"),s=this.noticeContainer.querySelectorAll(".cn-more-info, .cn-privacy-policy-link"),c=t.getElementById("cn-close-notice");this.noticeContainer.classList.add("cn-effect-"+cnArgs.hideEffect),null===this.cookiesAccepted?(cnArgs.onScroll&&e.addEventListener("scroll",function(e){n.handleScroll()}),cnArgs.onClick&&e.addEventListener("click",function(e){null===n.getClosest(e.target,"#cookie-notice")&&n.setStatus("accept")},!0),this.setBodyClass(["cookies-not-set"]),this.showCookieNotice()):(this.setBodyClass(["cookies-set",!0===this.cookiesAccepted?"cookies-accepted":"cookies-refused"]),cnArgs.revokeCookies&&"automatic"===cnArgs.revokeCookiesOpt&&this.showRevokeNotice());for(var a=0;a<i.length;a++)i[a].addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),n.setStatus(this.dataset.cookieSet)});for(var r=0;r<s.length;r++)s[r].addEventListener("click",function(t){var n=this.dataset.linkUrl||this.getAttribute("href"),i=this.dataset.linkTarget||this.getAttribute("target")||"_self";n&&(t.preventDefault(),t.stopPropagation(),e.open(n,i))});null!==c&&(c.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key&&"Spacebar"!==e.key&&13!==e.keyCode&&32!==e.keyCode||(e.preventDefault(),e.stopPropagation(),n.setStatus("reject"))}),c.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),n.setStatus("reject")}));for(a=0;a<o.length;a++)o[a].addEventListener("click",function(e){e.preventDefault(),n.noticeContainer.classList.contains("cookie-revoke-visible")?(n.hideRevokeNotice(),n.noticeContainer.addEventListener("animationend",function e(){n.noticeContainer.removeEventListener("animationend",e),n.showCookieNotice()}),n.noticeContainer.addEventListener("webkitAnimationEnd",function e(){n.noticeContainer.removeEventListener("webkitAnimationEnd",e),n.showCookieNotice()})):n.noticeContainer.classList.contains("cookie-notice-hidden")&&n.noticeContainer.classList.contains("cookie-revoke-hidden")&&n.showCookieNotice()})}}};e.addEventListener("load",function(){n.init()},!1)}(window,document); -
cookie-notice/trunk/readme.txt
r3736417 r3744556 4 4 Requires at least: 4.9.6 5 5 Requires PHP: 7.4 6 Tested up to: 7. 07 Stable tag: 3.1.1 56 Tested up to: 7.1 7 Stable tag: 3.1.16 8 8 License: MIT License 9 9 License URI: http://opensource.org/licenses/MIT … … 170 170 171 171 == Changelog == 172 173 = 3.1.16 = 174 * Improvement: Simpler, more reliable privacy policy link. On connected sites, choose your policy page and turn on Sync to use it on your banner; set the link text in the Admin Portal. In Banner Only mode, the policy button always opens your policy. 175 * Tested up to WordPress 7.1. 172 176 173 177 = 3.1.15 =
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)