viewgate-wrapper 1.11.45 → 1.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,21 +1,64 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode('@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap";body{margin:0!important;padding:0!important}:root{--vg-primary: #6366f1;--vg-primary-glow: rgba(99, 102, 241, .5);--vg-primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);--vg-bg-glass: rgba(255, 255, 255, .7);--vg-radius: 16px;--vg-font-main: "Inter", system-ui, sans-serif;--vg-font-alt: "Inter", system-ui, sans-serif;--placeholder-color: #94a3b8;--vg-glass-border: rgba(255, 255, 255, .3);--vg-shadow-premium: 0 20px 50px rgba(0, 0, 0, .1)}.vg-container,.vg-container *{box-sizing:border-box}.vg-container{font-family:var(--vg-font-main);-webkit-font-smoothing:antialiased;user-select:none!important;-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important}.vg-glassmorphism{background:var(--vg-bg-glass);backdrop-filter:blur(16px) saturate(180%);-webkit-backdrop-filter:blur(16px) saturate(180%);border:1px solid var(--vg-glass-border);box-shadow:0 8px 32px #0000001a;border-radius:var(--vg-radius);position:relative}.vg-button-primary{background:var(--vg-primary-gradient);color:#fff;border:none;padding:12px 24px;font-family:var(--vg-font-main);font-size:14px;font-weight:700;cursor:pointer;transition:all .2s ease;border-radius:99px;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 4px 12px #6366f14d}.vg-button-primary:hover{transform:translateY(-2px);box-shadow:0 6px 20px #6366f166}.vg-button-primary:disabled,.vg-button-ghost:disabled{opacity:.5;cursor:not-allowed;filter:grayscale(.4);transform:none!important;box-shadow:none!important;pointer-events:none}.vg-button-ghost{background:#fffc;color:#1e293b;border:1px solid #e2e8f0;padding:10px 24px;font-family:var(--vg-font-main);font-size:14px;font-weight:600;cursor:pointer;transition:all .2s ease;border-radius:99px;display:flex;align-items:center;justify-content:center;gap:8px}.vg-button-ghost:hover{background:#fff;border-color:#cbd5e1;box-shadow:0 4px 12px #0000000d}.vg-badge{background:#f1f5f9;color:#64748b;padding:4px 12px;font-size:11px;border-radius:99px;font-weight:600;display:inline-flex;align-items:center;gap:6px}.vg-textarea{width:100%;box-sizing:border-box;border:1px solid #e2e8f0;border-radius:12px;padding:12px;font-family:var(--vg-font-main);font-size:15px;color:#0f172a;resize:none;outline:none;background:#f8fafc;transition:all .2s ease}.vg-textarea:focus{background:#fff;border-color:var(--vg-primary);box-shadow:0 0 0 4px #6366f11a}@keyframes vg-fade-in{0%{opacity:0}to{opacity:1}}@keyframes vg-slide-in{0%{transform:translateY(30px) scale(.96);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}@keyframes vg-pop-in{0%{transform:scale(.6);opacity:0}70%{transform:scale(1.08);opacity:1}to{transform:scale(1);opacity:1}}@keyframes vg-slide-up-fade{0%{transform:translateY(12px) scale(.95);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}.vg-animate-pop{animation:vg-pop-in .4s cubic-bezier(.34,1.56,.64,1) forwards}.vg-animate-slide-up{animation:vg-slide-up-fade .5s cubic-bezier(.22,1,.36,1) forwards}.vg-button-primary,.vg-button-ghost,.vg-pin-container,.vg-action-bar,.vg-glassmorphism{transition:all .3s cubic-bezier(.4,0,.2,1)}.vg-animate-slide{animation:vg-slide-in .5s cubic-bezier(.22,1,.36,1) forwards}.vg-animate-fade{animation:vg-fade-in .35s cubic-bezier(.22,1,.36,1) forwards}.vg-toasts{position:fixed;top:24px;right:24px;display:flex;flex-direction:column;gap:12px}.vg-toast{padding:12px 20px;display:flex;align-items:center;gap:12px;min-width:300px;border-radius:12px;box-shadow:0 10px 30px #0000001a;background:#fff}.vg-toast.success{border-left:6px solid #22c55e}.vg-toast.error{border-left:6px solid #ef4444}.vg-backdrop-blur{position:fixed;top:0;left:0;width:100%;height:100%;-webkit-backdrop-filter:blur(8px) grayscale(.2);backdrop-filter:blur(8px) grayscale(.2);background:#0000001a;pointer-events:none;transition:opacity .3s ease,clip-path .2s cubic-bezier(.19,1,.22,1)}.vg-selection-pulse{position:fixed;pointer-events:none;border:2px solid var(--vg-primary);border-radius:8px;box-shadow:0 0 0 0 var(--vg-primary-glow);animation:vg-pulse 2s infinite;transition:all .2s cubic-bezier(.19,1,.22,1)}@keyframes vg-pulse{0%{box-shadow:0 0 0 0 var(--vg-primary-glow)}70%{box-shadow:0 0 0 15px #6366f100}to{box-shadow:0 0 #6366f100}}.vg-selection-label{position:absolute;top:-40px;left:0;background:var(--vg-primary-gradient);color:#fff;padding:8px 16px;border-radius:20px;font-size:13px;font-weight:700;white-space:nowrap;box-shadow:0 4px 12px #6366f14d;display:flex;align-items:center;gap:8px}.vg-pin-container{transition:transform .2s ease}.vg-pin-container:hover{transform:scale(1.1);z-index:2147483645!important}.vg-formal-pin{width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,#f97316,#ea580c);border:3px solid white;box-shadow:0 4px 12px #ea580c66;display:flex;align-items:center;justify-content:center;color:#fff;transition:all .2s ease}.vg-formal-pin.modal-variant{background:linear-gradient(135deg,#f59e0b,#d97706);box-shadow:0 4px 12px #f59e0b66;border-style:dashed}.vg-formal-pin.ready{background:linear-gradient(135deg,#a855f7,#7e22ce);box-shadow:0 4px 12px #a855f766}.vg-formal-pin.completed{background:linear-gradient(135deg,#10b981,#059669);box-shadow:0 4px 12px #10b98166}.vg-formal-pin.backlog{background:linear-gradient(135deg,#94a3b8,#64748b);box-shadow:0 4px 12px #64748b66}.vg-formal-pin.bug{background:linear-gradient(135deg,#f43f5e,#e11d48);box-shadow:0 4px 12px #e11d4866}.vg-formal-pin.mixed{border:3px solid #ea580c;box-shadow:0 4px 15px #ea580c66}.vg-pin-tooltip{position:absolute;top:calc(100% + 12px);left:50%;transform:translate(-50%);padding:16px;border-radius:16px;background:#fff;color:#1e293b;width:320px;font-size:13px;box-shadow:0 10px 40px #00000040;opacity:0;visibility:hidden;pointer-events:none;transition:all .3s cubic-bezier(.19,1,.22,1);border:1px solid #e2e8f0;z-index:1000;overflow:hidden}.vg-tooltip-scroll{scrollbar-width:thin;scrollbar-color:rgba(99,102,241,.2) transparent;overflow-y:auto;overflow-x:hidden;padding-right:12px;scroll-behavior:smooth}.vg-tooltip-scroll::-webkit-scrollbar{width:4px}.vg-tooltip-scroll::-webkit-scrollbar-track{background:transparent}.vg-tooltip-scroll::-webkit-scrollbar-thumb{background:#6366f14d;border-radius:10px}.vg-tooltip-scroll::-webkit-scrollbar-thumb:hover{background:#6366f180}.vg-text-wrap{word-break:break-word;overflow-wrap:break-word;word-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;white-space:pre-wrap}.vg-line-clamp-2{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;word-break:break-word;max-height:2.8em}.vg-pin-badge{position:absolute;top:-8px;right:-8px;background:#f43f5e;color:#fff;font-size:10px;font-weight:800;width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:2px solid white;box-shadow:0 4px 12px #f43f5e66;z-index:2}.vg-pin-tooltip.vg-top{top:auto;bottom:calc(100% + 12px)}.vg-pin-tooltip.vg-tooltip-right{left:0;transform:translate(0)}.vg-pin-tooltip.vg-tooltip-left{left:auto;right:0;transform:translate(0)}.vg-pin-container:hover .vg-pin-tooltip.vg-tooltip-right,.vg-pin-container:hover .vg-pin-tooltip.vg-tooltip-left{transform:translate(0) translateY(-5px)}.vg-pin-container:hover .vg-pin-tooltip{opacity:1;visibility:visible;pointer-events:auto;transform:translate(-50%) translateY(-5px)}.vg-action-bar{display:flex;gap:12px;padding:0;background:transparent;border:none;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}.vg-custom-scrollbar::-webkit-scrollbar{width:6px}.vg-custom-scrollbar::-webkit-scrollbar-track{background:transparent}.vg-custom-scrollbar::-webkit-scrollbar-thumb{background:#6366f166;border-radius:10px;transition:all .2s ease}.vg-custom-scrollbar::-webkit-scrollbar-thumb:hover{background:#6366f1b3}.vg-spinner{border:3px solid rgba(99,102,241,.1);border-top:3px solid var(--vg-primary);border-radius:50%;width:32px;height:32px;animation:vg-spin .8s linear infinite}@keyframes vg-spin{to{transform:rotate(360deg)}}.vg-animate-spin{animation:vg-spin .8s linear infinite}.vg-cursor-pointer,.vg-cursor-pointer *{cursor:pointer!important}.vg-url-tag{position:relative;cursor:help;transition:all .2s ease}.vg-url-tag:hover{background:#f1f5f9!important;border-color:var(--vg-primary)!important}.vg-url-tooltip{position:fixed;left:0;top:0;background:#0f172a;color:#fff;padding:8px 14px;border-radius:10px;font-size:11px;font-weight:500;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .2s ease,transform .2s ease;box-shadow:0 10px 25px -5px #0006;z-index:2147483647;border:1px solid rgba(255,255,255,.1)}.vg-url-tooltip.visible{opacity:1}.vg-url-tooltip:after{content:"";position:absolute;left:50%;transform:translate(-50%);border-width:6px;border-style:solid}.vg-url-tooltip.vg-top:after{top:100%;border-color:#0f172a transparent transparent transparent}.vg-url-tooltip.vg-bottom:after{bottom:100%;border-color:transparent transparent #0f172a transparent}.vg-segmented-control{display:flex;background:#f1f5f9;padding:4px;border-radius:99px;position:relative;cursor:pointer;-webkit-user-select:none;user-select:none;border:4px solid #e2e8f0;width:100%;max-width:480px;margin:0 auto}.vg-segmented-slider{position:absolute;top:4px;bottom:4px;border-radius:99px;transition:all .35s cubic-bezier(.4,0,.2,1);z-index:1}.vg-segmented-item{position:relative;flex:1;padding:8px 4px;font-size:11px;font-weight:700;text-align:center;z-index:2;transition:all .35s ease;display:flex;align-items:center;justify-content:center;gap:10px;border-radius:99px;color:#64748b;white-space:nowrap;min-width:0}.vg-segmented-item.active{color:#fff}.vg-glassmorphism.vg-animate-slide:last-child{margin-bottom:0!important}.vg-skeleton{background:#f1f5f9;background-image:linear-gradient(90deg,#f1f5f9,#f8fafc,#f1f5f9);background-size:200% 100%;animation:vg-skeleton-shimmer 1.5s infinite linear;border-radius:12px}@keyframes vg-skeleton-shimmer{0%{background-position:100% 0}to{background-position:-100% 0}}.vg-image-loader{background:#f8fafc;display:flex;align-items:center;justify-content:center;color:#94a3b8;font-size:12px;font-weight:600;flex-direction:column;gap:12px}')),document.head.appendChild(o)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
2
|
-
(function(
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode('@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap";body{margin:0!important;padding:0!important}:root{--vg-primary: #6366f1;--vg-primary-glow: rgba(99, 102, 241, .5);--vg-primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);--vg-bg-glass: rgba(255, 255, 255, .7);--vg-radius: 16px;--vg-font-main: "Inter", system-ui, sans-serif;--vg-font-alt: "Inter", system-ui, sans-serif;--placeholder-color: #94a3b8;--vg-glass-border: rgba(255, 255, 255, .3);--vg-shadow-premium: 0 20px 50px rgba(0, 0, 0, .1)}.vg-container,.vg-container *{box-sizing:border-box}.vg-container{font-family:var(--vg-font-main);-webkit-font-smoothing:antialiased;user-select:none!important;-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important}.vg-glassmorphism{background:var(--vg-bg-glass);backdrop-filter:blur(16px) saturate(180%);-webkit-backdrop-filter:blur(16px) saturate(180%);border:1px solid var(--vg-glass-border);box-shadow:0 8px 32px #0000001a;border-radius:var(--vg-radius);position:relative}.vg-button-primary{background:var(--vg-primary-gradient);color:#fff;border:none;padding:12px 24px;font-family:var(--vg-font-main);font-size:14px;font-weight:700;cursor:pointer;transition:all .2s ease;border-radius:99px;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 4px 12px #6366f14d}.vg-button-primary:hover{transform:translateY(-2px);box-shadow:0 6px 20px #6366f166}.vg-button-primary:disabled,.vg-button-ghost:disabled{opacity:.5;cursor:not-allowed;filter:grayscale(.4);transform:none!important;box-shadow:none!important;pointer-events:none}.vg-button-ghost{background:#fffc;color:#1e293b;border:1px solid #e2e8f0;padding:10px 24px;font-family:var(--vg-font-main);font-size:14px;font-weight:600;cursor:pointer;transition:all .2s ease;border-radius:99px;display:flex;align-items:center;justify-content:center;gap:8px}.vg-button-ghost:hover{background:#fff;border-color:#cbd5e1;box-shadow:0 4px 12px #0000000d}.vg-badge{background:#f1f5f9;color:#64748b;padding:4px 12px;font-size:11px;border-radius:99px;font-weight:600;display:inline-flex;align-items:center;gap:6px}.vg-textarea{width:100%;box-sizing:border-box;border:1px solid #e2e8f0;border-radius:12px;padding:12px;font-family:var(--vg-font-main);font-size:15px;color:#0f172a;resize:none;outline:none;background:#f8fafc;transition:all .2s ease}.vg-textarea:focus{background:#fff;border-color:var(--vg-primary);box-shadow:0 0 0 4px #6366f11a}@keyframes vg-fade-in{0%{opacity:0}to{opacity:1}}@keyframes vg-slide-in{0%{transform:translateY(30px) scale(.96);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}@keyframes vg-pop-in{0%{transform:scale(.6);opacity:0}70%{transform:scale(1.08);opacity:1}to{transform:scale(1);opacity:1}}@keyframes vg-slide-up-fade{0%{transform:translateY(12px) scale(.95);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}.vg-animate-pop{animation:vg-pop-in .4s cubic-bezier(.34,1.56,.64,1) forwards}.vg-animate-slide-up{animation:vg-slide-up-fade .5s cubic-bezier(.22,1,.36,1) forwards}.vg-button-primary,.vg-button-ghost,.vg-pin-container,.vg-action-bar,.vg-glassmorphism{transition:all .3s cubic-bezier(.4,0,.2,1)}.vg-animate-slide{animation:vg-slide-in .5s cubic-bezier(.22,1,.36,1) forwards}.vg-animate-fade{animation:vg-fade-in .35s cubic-bezier(.22,1,.36,1) forwards}.vg-toasts{position:fixed;top:24px;right:24px;display:flex;flex-direction:column;gap:12px}.vg-toast{padding:12px 20px;display:flex;align-items:center;gap:12px;min-width:300px;border-radius:12px;box-shadow:0 10px 30px #0000001a;background:#fff}.vg-toast.success{border-left:6px solid #22c55e}.vg-toast.error{border-left:6px solid #ef4444}.vg-backdrop-blur{position:fixed;top:0;left:0;width:100%;height:100%;-webkit-backdrop-filter:blur(8px) grayscale(.2);backdrop-filter:blur(8px) grayscale(.2);background:#0000001a;pointer-events:none;transition:opacity .3s ease,clip-path .2s cubic-bezier(.19,1,.22,1)}.vg-selection-pulse{position:fixed;pointer-events:none;border:2px solid var(--vg-primary);border-radius:8px;box-shadow:0 0 0 0 var(--vg-primary-glow);animation:vg-pulse 2s infinite;transition:all .2s cubic-bezier(.19,1,.22,1)}@keyframes vg-pulse{0%{box-shadow:0 0 0 0 var(--vg-primary-glow)}70%{box-shadow:0 0 0 15px #6366f100}to{box-shadow:0 0 #6366f100}}.vg-selection-label{position:absolute;top:-40px;left:0;background:var(--vg-primary-gradient);color:#fff;padding:8px 16px;border-radius:20px;font-size:13px;font-weight:700;white-space:nowrap;box-shadow:0 4px 12px #6366f14d;display:flex;align-items:center;gap:8px}.vg-pin-container{transition:transform .2s ease}.vg-pin-container:hover{transform:scale(1.1);z-index:2147483645!important}.vg-formal-pin{width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,#f97316,#ea580c);border:3px solid white;box-shadow:0 4px 12px #ea580c66;display:flex;align-items:center;justify-content:center;color:#fff;transition:all .2s ease}.vg-formal-pin.modal-variant{background:linear-gradient(135deg,#f59e0b,#d97706);box-shadow:0 4px 12px #f59e0b66;border-style:dashed}.vg-formal-pin.ready{background:linear-gradient(135deg,#a855f7,#7e22ce);box-shadow:0 4px 12px #a855f766}.vg-formal-pin.completed{background:linear-gradient(135deg,#10b981,#059669);box-shadow:0 4px 12px #10b98166}.vg-formal-pin.backlog{background:linear-gradient(135deg,#94a3b8,#64748b);box-shadow:0 4px 12px #64748b66}.vg-formal-pin.bug{background:linear-gradient(135deg,#f43f5e,#e11d48);box-shadow:0 4px 12px #e11d4866}.vg-formal-pin.mixed{border:3px solid #ea580c;box-shadow:0 4px 15px #ea580c66}.vg-pin-tooltip{position:absolute;top:calc(100% + 12px);left:50%;transform:translate(-50%);padding:16px;border-radius:16px;background:#fff;color:#1e293b;width:320px;font-size:13px;box-shadow:0 10px 40px #00000040;opacity:0;visibility:hidden;pointer-events:none;transition:all .3s cubic-bezier(.19,1,.22,1);border:1px solid #e2e8f0;z-index:1000;overflow:hidden}.vg-tooltip-scroll{scrollbar-width:thin;scrollbar-color:rgba(99,102,241,.2) transparent;overflow-y:auto;overflow-x:hidden;padding-right:12px;scroll-behavior:smooth}.vg-tooltip-scroll::-webkit-scrollbar{width:4px}.vg-tooltip-scroll::-webkit-scrollbar-track{background:transparent}.vg-tooltip-scroll::-webkit-scrollbar-thumb{background:#6366f14d;border-radius:10px}.vg-tooltip-scroll::-webkit-scrollbar-thumb:hover{background:#6366f180}.vg-text-wrap{word-break:break-word;overflow-wrap:break-word;word-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;white-space:pre-wrap}.vg-line-clamp-2{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;word-break:break-word;max-height:2.8em}.vg-pin-badge{position:absolute;top:-8px;right:-8px;background:#f43f5e;color:#fff;font-size:10px;font-weight:800;width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:2px solid white;box-shadow:0 4px 12px #f43f5e66;z-index:2}.vg-pin-tooltip.vg-top{top:auto;bottom:calc(100% + 12px)}.vg-pin-tooltip.vg-tooltip-right{left:0;transform:translate(0)}.vg-pin-tooltip.vg-tooltip-left{left:auto;right:0;transform:translate(0)}.vg-pin-container:hover .vg-pin-tooltip.vg-tooltip-right,.vg-pin-container:hover .vg-pin-tooltip.vg-tooltip-left{transform:translate(0) translateY(-5px)}.vg-pin-container:hover .vg-pin-tooltip{opacity:1;visibility:visible;pointer-events:auto;transform:translate(-50%) translateY(-5px)}.vg-action-bar{display:flex;gap:12px;padding:0;background:transparent;border:none;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}.vg-custom-scrollbar::-webkit-scrollbar{width:6px}.vg-custom-scrollbar::-webkit-scrollbar-track{background:transparent}.vg-custom-scrollbar::-webkit-scrollbar-thumb{background:#6366f166;border-radius:10px;transition:all .2s ease}.vg-custom-scrollbar::-webkit-scrollbar-thumb:hover{background:#6366f1b3}.vg-spinner{border:3px solid rgba(99,102,241,.1);border-top:3px solid var(--vg-primary);border-radius:50%;width:32px;height:32px;animation:vg-spin .8s linear infinite}@keyframes vg-spin{to{transform:rotate(360deg)}}.vg-animate-spin{animation:vg-spin .8s linear infinite}.vg-cursor-pointer,.vg-cursor-pointer *{cursor:pointer!important}.vg-url-tag{position:relative;cursor:help;transition:all .2s ease}.vg-url-tag:hover{background:#f1f5f9!important;border-color:var(--vg-primary)!important}.vg-url-tooltip{position:fixed;left:0;top:0;background:#0f172a;color:#fff;padding:8px 14px;border-radius:10px;font-size:11px;font-weight:500;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .2s ease,transform .2s ease;box-shadow:0 10px 25px -5px #0006;z-index:2147483647;border:1px solid rgba(255,255,255,.1)}.vg-url-tooltip.visible{opacity:1}.vg-url-tooltip:after{content:"";position:absolute;left:50%;transform:translate(-50%);border-width:6px;border-style:solid}.vg-url-tooltip.vg-top:after{top:100%;border-color:#0f172a transparent transparent transparent}.vg-url-tooltip.vg-bottom:after{bottom:100%;border-color:transparent transparent #0f172a transparent}.vg-segmented-control{display:flex;background:#f1f5f9;padding:4px;border-radius:99px;position:relative;cursor:pointer;-webkit-user-select:none;user-select:none;border:4px solid #e2e8f0;width:100%;max-width:480px;margin:0 auto}.vg-segmented-slider{position:absolute;top:4px;bottom:4px;border-radius:99px;transition:all .35s cubic-bezier(.4,0,.2,1);z-index:1}.vg-segmented-item{position:relative;flex:1;padding:8px 4px;font-size:11px;font-weight:700;text-align:center;z-index:2;transition:all .35s ease;display:flex;align-items:center;justify-content:center;gap:10px;border-radius:99px;color:#64748b;white-space:nowrap;min-width:0}.vg-segmented-item.active{color:#fff}.vg-glassmorphism.vg-animate-slide:last-child{margin-bottom:0!important}.vg-skeleton{background:linear-gradient(90deg,#f1f5f9 25%,#e2e8f0,#f1f5f9 75%);background-size:200% 100%;animation:vg-shimmer 2s infinite linear;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#64748b;font-size:14px;font-weight:500}@keyframes vg-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.vg-crop-container{max-width:100%;border:3px dashed #ef4444;margin-top:16px;border-radius:12px;overflow:hidden;background:#f8fafc;box-shadow:0 4px 12px #0000000d}.vg-crop-header{background:#f1f5f9;padding:10px 16px;font-size:12px;font-weight:700;color:#64748b;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e2e8f0}.vg-image-loader{display:block;min-height:100px}')),document.head.appendChild(o)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
2
|
+
(function(Ce,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],p):(Ce=typeof globalThis<"u"?globalThis:Ce||self,p(Ce.ViewGateWrapper={},Ce.React,Ce.ReactDOM))})(this,(function(Ce,p,Cr){"use strict";var Lt={exports:{}},yt={};var qa;function Or(){if(qa)return yt;qa=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function s(o,n,i){var l=null;if(i!==void 0&&(l=""+i),n.key!==void 0&&(l=""+n.key),"key"in n){i={};for(var u in n)u!=="key"&&(i[u]=n[u])}else i=n;return n=i.ref,{$$typeof:e,type:o,key:l,ref:n!==void 0?n:null,props:i}}return yt.Fragment=t,yt.jsx=s,yt.jsxs=s,yt}var bt={};var es;function Vr(){return es||(es=1,process.env.NODE_ENV!=="production"&&(function(){function e(g){if(g==null)return null;if(typeof g=="function")return g.$$typeof===pe?null:g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case z:return"Fragment";case S:return"Profiler";case V:return"StrictMode";case ye:return"Suspense";case A:return"SuspenseList";case Pe:return"Activity"}if(typeof g=="object")switch(typeof g.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),g.$$typeof){case E:return"Portal";case Ve:return g.displayName||"Context";case de:return(g._context.displayName||"Context")+".Consumer";case te:var T=g.render;return g=g.displayName,g||(g=T.displayName||T.name||"",g=g!==""?"ForwardRef("+g+")":"ForwardRef"),g;case ne:return T=g.displayName||null,T!==null?T:e(g.type)||"Memo";case W:T=g._payload,g=g._init;try{return e(g(T))}catch{}}return null}function t(g){return""+g}function s(g){try{t(g);var T=!1}catch{T=!0}if(T){T=console;var R=T.error,F=typeof Symbol=="function"&&Symbol.toStringTag&&g[Symbol.toStringTag]||g.constructor.name||"Object";return R.call(T,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",F),t(g)}}function o(g){if(g===z)return"<>";if(typeof g=="object"&&g!==null&&g.$$typeof===W)return"<...>";try{var T=e(g);return T?"<"+T+">":"<...>"}catch{return"<...>"}}function n(){var g=Re.A;return g===null?null:g.getOwner()}function i(){return Error("react-stack-top-frame")}function l(g){if(ae.call(g,"key")){var T=Object.getOwnPropertyDescriptor(g,"key").get;if(T&&T.isReactWarning)return!1}return g.key!==void 0}function u(g,T){function R(){be||(be=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",T))}R.isReactWarning=!0,Object.defineProperty(g,"key",{get:R,configurable:!0})}function h(){var g=e(this.type);return K[g]||(K[g]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),g=this.props.ref,g!==void 0?g:null}function y(g,T,R,F,ie,Ee){var _=R.ref;return g={$$typeof:C,type:g,key:T,props:R,_owner:F},(_!==void 0?_:null)!==null?Object.defineProperty(g,"ref",{enumerable:!1,get:h}):Object.defineProperty(g,"ref",{enumerable:!1,value:null}),g._store={},Object.defineProperty(g._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(g,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(g,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ie}),Object.defineProperty(g,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ee}),Object.freeze&&(Object.freeze(g.props),Object.freeze(g)),g}function x(g,T,R,F,ie,Ee){var _=T.children;if(_!==void 0)if(F)if(ue(_)){for(F=0;F<_.length;F++)m(_[F]);Object.freeze&&Object.freeze(_)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else m(_);if(ae.call(T,"key")){_=e(g);var ce=Object.keys(T).filter(function(qe){return qe!=="key"});F=0<ce.length?"{key: someKey, "+ce.join(": ..., ")+": ...}":"{key: someKey}",je[_+F]||(ce=0<ce.length?"{"+ce.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
3
3
|
let props = %s;
|
|
4
4
|
<%s {...props} />
|
|
5
5
|
React keys must be passed directly to JSX without using spread:
|
|
6
6
|
let props = %s;
|
|
7
|
-
<%s key={someKey} {...props} />`,AA,z,zA,z),Ae[z+AA]=!0)}if(z=null,X!==void 0&&(e(X),z=""+X),o(k)&&(e(k.key),z=""+k.key),"key"in k){X={};for(var Ut in k)Ut!=="key"&&(X[Ut]=k[Ut])}else X=k;return z&&a(X,typeof U=="function"?U.displayName||U.name||"Unknown":U),g(U,z,X,s(),ue,ee)}function B(U){u(U)?U._store&&(U._store.validated=1):typeof U=="object"&&U!==null&&U.$$typeof===R&&(U._payload.status==="fulfilled"?u(U._payload.value)&&U._payload.value._store&&(U._payload.value._store.validated=1):U._store&&(U._store.validated=1))}function u(U){return typeof U=="object"&&U!==null&&U.$$typeof===w}var f=Q,w=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),F=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),L=Symbol.for("react.consumer"),H=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),cA=Symbol.for("react.activity"),xA=Symbol.for("react.client.reference"),M=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,QA=Object.prototype.hasOwnProperty,q=Array.isArray,UA=console.createTask?console.createTask:function(){return null};f={react_stack_bottom_frame:function(U){return U()}};var J,$A={},qA=f.react_stack_bottom_frame.bind(f,n)(),Ve=UA(r(n)),Ae={};Tt.Fragment=F,Tt.jsx=function(U,k,X){var AA=1e4>M.recentlyCreatedOwnerStacks++;return d(U,k,X,!1,AA?Error("react-stack-top-frame"):qA,AA?UA(r(U)):Ve)},Tt.jsxs=function(U,k,X){var AA=1e4>M.recentlyCreatedOwnerStacks++;return d(U,k,X,!0,AA?Error("react-stack-top-frame"):qA,AA?UA(r(U)):Ve)}})()),Tt}var Fo;function Vc(){return Fo||(Fo=1,process.env.NODE_ENV==="production"?xr.exports=kc():xr.exports=Gc()),xr.exports}var i=Vc(),Ur={exports:{}},Vs={};var yo;function Mc(){if(yo)return Vs;yo=1;var t=Q;function A(B,u){return B===u&&(B!==0||1/B===1/u)||B!==B&&u!==u}var e=typeof Object.is=="function"?Object.is:A,r=t.useState,s=t.useEffect,n=t.useLayoutEffect,o=t.useDebugValue;function a(B,u){var f=u(),w=r({inst:{value:f,getSnapshot:u}}),C=w[0].inst,F=w[1];return n(function(){C.value=f,C.getSnapshot=u,c(C)&&F({inst:C})},[B,f,u]),s(function(){return c(C)&&F({inst:C}),B(function(){c(C)&&F({inst:C})})},[B]),o(f),f}function c(B){var u=B.getSnapshot;B=B.value;try{var f=u();return!e(B,f)}catch{return!0}}function g(B,u){return u()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:a;return Vs.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:d,Vs}var Ms={};var bo;function Nc(){return bo||(bo=1,process.env.NODE_ENV!=="production"&&(function(){function t(f,w){return f===w&&(f!==0||1/f===1/w)||f!==f&&w!==w}function A(f,w){d||s.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var C=w();if(!B){var F=w();n(C,F)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),B=!0)}F=o({inst:{value:C,getSnapshot:w}});var y=F[0].inst,m=F[1];return c(function(){y.value=C,y.getSnapshot=w,e(y)&&m({inst:y})},[f,C,w]),a(function(){return e(y)&&m({inst:y}),f(function(){e(y)&&m({inst:y})})},[f]),g(C),C}function e(f){var w=f.getSnapshot;f=f.value;try{var C=w();return!n(f,C)}catch{return!0}}function r(f,w){return w()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var s=Q,n=typeof Object.is=="function"?Object.is:t,o=s.useState,a=s.useEffect,c=s.useLayoutEffect,g=s.useDebugValue,d=!1,B=!1,u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:A;Ms.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:u,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Ms}var Eo;function _c(){return Eo||(Eo=1,process.env.NODE_ENV==="production"?Ur.exports=Mc():Ur.exports=Nc()),Ur.exports}var vo=_c();const Io=0,Ho=1,So=2,Lo=3;var To=Object.prototype.hasOwnProperty;function Ns(t,A){var e,r;if(t===A)return!0;if(t&&A&&(e=t.constructor)===A.constructor){if(e===Date)return t.getTime()===A.getTime();if(e===RegExp)return t.toString()===A.toString();if(e===Array){if((r=t.length)===A.length)for(;r--&&Ns(t[r],A[r]););return r===-1}if(!e||typeof t=="object"){r=0;for(e in t)if(To.call(t,e)&&++r&&!To.call(A,e)||!(e in A)||!Ns(t[e],A[e]))return!1;return Object.keys(A).length===r}}return t!==t&&A!==A}const me=new WeakMap,Ce=()=>{},IA=Ce(),_s=Object,_=t=>t===IA,ie=t=>typeof t=="function",Ie=(t,A)=>({...t,...A}),Oo=t=>ie(t.then),Ps={},Fr={},js="undefined",Ot=typeof window!=js,Ws=typeof document!=js,Pc=Ot&&"Deno"in window,jc=()=>Ot&&typeof window.requestAnimationFrame!=js,Ko=(t,A)=>{const e=me.get(t);return[()=>!_(A)&&t.get(A)||Ps,r=>{if(!_(A)){const s=t.get(A);A in Fr||(Fr[A]=s),e[5](A,Ie(s,r),s||Ps)}},e[6],()=>!_(A)&&A in Fr?Fr[A]:!_(A)&&t.get(A)||Ps]};let Xs=!0;const Wc=()=>Xs,[zs,Js]=Ot&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Ce,Ce],Xc=()=>{const t=Ws&&document.visibilityState;return _(t)||t!=="hidden"},zc=t=>(Ws&&document.addEventListener("visibilitychange",t),zs("focus",t),()=>{Ws&&document.removeEventListener("visibilitychange",t),Js("focus",t)}),Jc=t=>{const A=()=>{Xs=!0,t()},e=()=>{Xs=!1};return zs("online",A),zs("offline",e),()=>{Js("online",A),Js("offline",e)}},Yc={isOnline:Wc,isVisible:Xc},Zc={initFocus:zc,initReconnect:Jc},Do=!Q.useId,it=!Ot||Pc,$c=t=>jc()?window.requestAnimationFrame(t):setTimeout(t,1),Ys=it?Q.useEffect:Q.useLayoutEffect,Zs=typeof navigator<"u"&&navigator.connection,Ro=!it&&Zs&&(["slow-2g","2g"].includes(Zs.effectiveType)||Zs.saveData),yr=new WeakMap,qc=t=>_s.prototype.toString.call(t),$s=(t,A)=>t===`[object ${A}]`;let Al=0;const qs=t=>{const A=typeof t,e=qc(t),r=$s(e,"Date"),s=$s(e,"RegExp"),n=$s(e,"Object");let o,a;if(_s(t)===t&&!r&&!s){if(o=yr.get(t),o)return o;if(o=++Al+"~",yr.set(t,o),Array.isArray(t)){for(o="@",a=0;a<t.length;a++)o+=qs(t[a])+",";yr.set(t,o)}if(n){o="#";const c=_s.keys(t).sort();for(;!_(a=c.pop());)_(t[a])||(o+=a+":"+qs(t[a])+",");yr.set(t,o)}}else o=r?t.toJSON():A=="symbol"?t.toString():A=="string"?JSON.stringify(t):""+t;return o},An=t=>{if(ie(t))try{t=t()}catch{t=""}const A=t;return t=typeof t=="string"?t:(Array.isArray(t)?t.length:t)?qs(t):"",[t,A]};let el=0;const en=()=>++el;async function ko(...t){const[A,e,r,s]=t,n=Ie({populateCache:!0,throwOnError:!0},typeof s=="boolean"?{revalidate:s}:s||{});let o=n.populateCache;const a=n.rollbackOnError;let c=n.optimisticData;const g=u=>typeof a=="function"?a(u):a!==!1,d=n.throwOnError;if(ie(e)){const u=e,f=[],w=A.keys();for(const C of w)!/^\$(inf|sub)\$/.test(C)&&u(A.get(C)._k)&&f.push(C);return Promise.all(f.map(B))}return B(e);async function B(u){const[f]=An(u);if(!f)return;const[w,C]=Ko(A,f),[F,y,m,L]=me.get(A),H=()=>{const q=F[f];return(ie(n.revalidate)?n.revalidate(w().data,u):n.revalidate!==!1)&&(delete m[f],delete L[f],q&&q[0])?q[0](So).then(()=>w().data):w().data};if(t.length<3)return H();let v=r,O,N=!1;const W=en();y[f]=[W,0];const R=!_(c),cA=w(),xA=cA.data,M=cA._c,QA=_(M)?xA:M;if(R&&(c=ie(c)?c(QA,xA):c,C({data:c,_c:QA})),ie(v))try{v=v(QA)}catch(q){O=q,N=!0}if(v&&Oo(v))if(v=await v.catch(q=>{O=q,N=!0}),W!==y[f][0]){if(N)throw O;return v}else N&&R&&g(O)&&(o=!0,C({data:QA,_c:IA}));if(o&&!N)if(ie(o)){const q=o(v,QA);C({data:q,error:IA,_c:IA})}else C({data:v,error:IA,_c:IA});if(y[f][1]=en(),Promise.resolve(H()).then(()=>{C({_c:IA})}),N){if(d)throw O;return}return v}}const Go=(t,A)=>{for(const e in t)t[e][0]&&t[e][0](A)},tl=(t,A)=>{if(!me.has(t)){const e=Ie(Zc,A),r=Object.create(null),s=ko.bind(IA,t);let n=Ce;const o=Object.create(null),a=(d,B)=>{const u=o[d]||[];return o[d]=u,u.push(B),()=>u.splice(u.indexOf(B),1)},c=(d,B,u)=>{t.set(d,B);const f=o[d];if(f)for(const w of f)w(B,u)},g=()=>{if(!me.has(t)&&(me.set(t,[r,Object.create(null),Object.create(null),Object.create(null),s,c,a]),!it)){const d=e.initFocus(setTimeout.bind(IA,Go.bind(IA,r,Io))),B=e.initReconnect(setTimeout.bind(IA,Go.bind(IA,r,Ho)));n=()=>{d&&d(),B&&B(),me.delete(t)}}};return g(),[t,s,g,n]}return[t,me.get(t)[4]]},rl=(t,A,e,r,s)=>{const n=e.errorRetryCount,o=s.retryCount,a=~~((Math.random()+.5)*(1<<(o<8?o:8)))*e.errorRetryInterval;!_(n)&&o>n||setTimeout(r,a,s)},sl=Ns,[Vo,nl]=tl(new Map),ol=Ie({onLoadingSlow:Ce,onSuccess:Ce,onError:Ce,onErrorRetry:rl,onDiscarded:Ce,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Ro?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Ro?5e3:3e3,compare:sl,isPaused:()=>!1,cache:Vo,mutate:nl,fallback:{}},Yc),al=(t,A)=>{const e=Ie(t,A);if(A){const{use:r,fallback:s}=t,{use:n,fallback:o}=A;r&&n&&(e.use=r.concat(n)),s&&o&&(e.fallback=Ie(s,o))}return e},il=Q.createContext({}),cl="$inf$",Mo=Ot&&window.__SWR_DEVTOOLS_USE__,ll=Mo?window.__SWR_DEVTOOLS_USE__:[],dl=()=>{Mo&&(window.__SWR_DEVTOOLS_REACT__=Q)},Bl=t=>ie(t[1])?[t[0],t[1],t[2]||{}]:[t[0],null,(t[1]===null?t[2]:t[1])||{}],No=()=>{const t=Q.useContext(il);return Q.useMemo(()=>Ie(ol,t),[t])},gl=t=>(A,e,r)=>t(A,e&&((...n)=>{const[o]=An(A),[,,,a]=me.get(Vo);if(o.startsWith(cl))return e(...n);const c=a[o];return _(c)?e(...n):(delete a[o],c)}),r),ul=ll.concat(gl),fl=t=>function(...e){const r=No(),[s,n,o]=Bl(e),a=al(r,o);let c=t;const{use:g}=a,d=(g||[]).concat(ul);for(let B=d.length;B--;)c=d[B](c);return c(s,n||a.fetcher||null,a)},hl=(t,A,e)=>{const r=A[t]||(A[t]=[]);return r.push(e),()=>{const s=r.indexOf(e);s>=0&&(r[s]=r[r.length-1],r.pop())}};dl();const tn=Q.use||(t=>{switch(t.status){case"pending":throw t;case"fulfilled":return t.value;case"rejected":throw t.reason;default:throw t.status="pending",t.then(A=>{t.status="fulfilled",t.value=A},A=>{t.status="rejected",t.reason=A}),t}}),rn={dedupe:!0},_o=Promise.resolve(IA),pl=()=>Ce,Po=fl((t,A,e)=>{const{cache:r,compare:s,suspense:n,fallbackData:o,revalidateOnMount:a,revalidateIfStale:c,refreshInterval:g,refreshWhenHidden:d,refreshWhenOffline:B,keepPreviousData:u,strictServerPrefetchWarning:f}=e,[w,C,F,y]=me.get(r),[m,L]=An(t),H=Q.useRef(!1),v=Q.useRef(!1),O=Q.useRef(m),N=Q.useRef(A),W=Q.useRef(e),R=()=>W.current,cA=()=>R().isVisible()&&R().isOnline(),[xA,M,QA,q]=Ko(r,m),UA=Q.useRef({}).current,J=_(o)?_(e.fallback)?IA:e.fallback[m]:o,$A=(Y,eA)=>{for(const lA in UA){const uA=lA;if(uA==="data"){if(!s(Y[uA],eA[uA])&&(!_(Y[uA])||!s(ee,eA[uA])))return!1}else if(eA[uA]!==Y[uA])return!1}return!0},qA=!H.current,Ve=Q.useMemo(()=>{const Y=xA(),eA=q(),lA=fA=>{const dA=Ie(fA);return delete dA._k,(()=>{if(!m||!A||R().isPaused())return!1;if(qA&&!_(a))return a;const pe=_(J)?dA.data:J;return _(pe)||c})()?{isValidating:!0,isLoading:!0,...dA}:dA},uA=lA(Y),oe=Y===eA?uA:lA(eA);let PA=uA;return[()=>{const fA=lA(xA());return $A(fA,PA)?(PA.data=fA.data,PA.isLoading=fA.isLoading,PA.isValidating=fA.isValidating,PA.error=fA.error,PA):(PA=fA,fA)},()=>oe]},[r,m]),Ae=vo.useSyncExternalStore(Q.useCallback(Y=>QA(m,(eA,lA)=>{$A(lA,eA)||Y()}),[r,m]),Ve[0],Ve[1]),U=w[m]&&w[m].length>0,k=Ae.data,X=_(k)?J&&Oo(J)?tn(J):J:k,AA=Ae.error,ue=Q.useRef(X),ee=u?_(k)?_(ue.current)?X:ue.current:k:X,z=m&&_(X),zA=Q.useRef(null);!it&&vo.useSyncExternalStore(pl,()=>(zA.current=!1,zA),()=>(zA.current=!0,zA));const Ut=zA.current;f&&Ut&&!n&&z&&console.warn(`Missing pre-initiated data for serialized key "${m}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);const fe=!m||!A||R().isPaused()||U&&!_(AA)?!1:qA&&!_(a)?a:n?_(X)?!1:c:_(X)||c,Me=qA&&fe,NA=_(Ae.isValidating)?Me:Ae.isValidating,he=_(Ae.isLoading)?Me:Ae.isLoading,FA=Q.useCallback(async Y=>{const eA=N.current;if(!m||!eA||v.current||R().isPaused())return!1;let lA,uA,oe=!0;const PA=Y||{},fA=!F[m]||!PA.dedupe,dA=()=>Do?!v.current&&m===O.current&&H.current:m===O.current,be={isValidating:!1,isLoading:!1},pe=()=>{M(be)},ur=()=>{const KA=F[m];KA&&KA[1]===uA&&delete F[m]},ae={isValidating:!0};_(xA().data)&&(ae.isLoading=!0);try{if(fA&&(M(ae),e.loadingTimeout&&_(xA().data)&&setTimeout(()=>{oe&&dA()&&R().onLoadingSlow(m,e)},e.loadingTimeout),F[m]=[eA(L),en()]),[lA,uA]=F[m],lA=await lA,fA&&setTimeout(ur,e.dedupingInterval),!F[m]||F[m][1]!==uA)return fA&&dA()&&R().onDiscarded(m),!1;be.error=IA;const KA=C[m];if(!_(KA)&&(uA<=KA[0]||uA<=KA[1]||KA[1]===0))return pe(),fA&&dA()&&R().onDiscarded(m),!1;const we=xA().data;be.data=s(we,lA)?we:lA,fA&&dA()&&R().onSuccess(lA,m,e)}catch(KA){ur();const we=R(),{shouldRetryOnError:vs}=we;we.isPaused()||(be.error=KA,fA&&dA()&&(we.onError(KA,m,we),(vs===!0||ie(vs)&&vs(KA))&&(!R().revalidateOnFocus||!R().revalidateOnReconnect||cA())&&we.onErrorRetry(KA,m,we,tA=>{const tt=w[m];tt&&tt[0]&&tt[0](Lo,tA)},{retryCount:(PA.retryCount||0)+1,dedupe:!0})))}return oe=!1,pe(),!0},[m,r]),et=Q.useCallback((...Y)=>ko(r,O.current,...Y),[]);if(Ys(()=>{N.current=A,W.current=e,_(k)||(ue.current=k)}),Ys(()=>{if(!m)return;const Y=FA.bind(IA,rn);let eA=0;R().revalidateOnFocus&&(eA=Date.now()+R().focusThrottleInterval);const uA=hl(m,w,(oe,PA={})=>{if(oe==Io){const fA=Date.now();R().revalidateOnFocus&&fA>eA&&cA()&&(eA=fA+R().focusThrottleInterval,Y())}else if(oe==Ho)R().revalidateOnReconnect&&cA()&&Y();else{if(oe==So)return FA();if(oe==Lo)return FA(PA)}});return v.current=!1,O.current=m,H.current=!0,M({_k:L}),fe&&(F[m]||(_(X)||it?Y():$c(Y))),()=>{v.current=!0,uA()}},[m]),Ys(()=>{let Y;function eA(){const uA=ie(g)?g(xA().data):g;uA&&Y!==-1&&(Y=setTimeout(lA,uA))}function lA(){!xA().error&&(d||R().isVisible())&&(B||R().isOnline())?FA(rn).then(eA):eA()}return eA(),()=>{Y&&(clearTimeout(Y),Y=-1)}},[g,d,B,m]),Q.useDebugValue(ee),n){if(!Do&&it&&z)throw new Error("Fallback data is required when using Suspense in SSR.");z&&(N.current=A,W.current=e,v.current=!1);const Y=y[m],eA=!_(Y)&&z?et(Y):_o;if(tn(eA),!_(AA)&&z)throw AA;const lA=z?FA(rn):_o;!_(ee)&&z&&(lA.status="fulfilled",lA.value=!0),tn(lA)}return{mutate:et,get data(){return UA.data=!0,ee},get error(){return UA.error=!0,AA},get isValidating(){return UA.isValidating=!0,NA},get isLoading(){return UA.isLoading=!0,he}}}),wl=({children:t})=>{const A=Q.useRef(null),[e,r]=Q.useState(null);return Q.useEffect(()=>{if(A.current&&!A.current.shadowRoot){const s=A.current.attachShadow({mode:"open"});document.querySelectorAll("style[data-vite-dev-id], style:not([data-vite-dev-id])").forEach(a=>{(a.textContent?.includes(".vg-")||a.textContent?.includes("--vg-"))&&s.appendChild(a.cloneNode(!0))});const o=document.createElement("link");o.rel="stylesheet",o.href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap",s.appendChild(o),r(s)}},[]),i.jsx("div",{"data-vg-id":"49696d6b","data-source-path":"/src/components/ShadowRootWrapper.tsx:38",ref:A,id:"viewgate-shadow-host",style:{position:"relative",zIndex:2147483647},children:e&&Rc.createPortal(t,e)})};const jo=(...t)=>t.filter((A,e,r)=>!!A&&A.trim()!==""&&r.indexOf(A)===e).join(" ").trim();const ml=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Cl=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(A,e,r)=>r?r.toUpperCase():e.toLowerCase());const Wo=t=>{const A=Cl(t);return A.charAt(0).toUpperCase()+A.slice(1)};var Ql={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const xl=t=>{for(const A in t)if(A.startsWith("aria-")||A==="role"||A==="title")return!0;return!1};const Ul=Q.forwardRef(({color:t="currentColor",size:A=24,strokeWidth:e=2,absoluteStrokeWidth:r,className:s="",children:n,iconNode:o,...a},c)=>Q.createElement("svg",{ref:c,...Ql,width:A,height:A,stroke:t,strokeWidth:r?Number(e)*24/Number(A):e,className:jo("lucide",s),...!n&&!xl(a)&&{"aria-hidden":"true"},...a},[...o.map(([g,d])=>Q.createElement(g,d)),...Array.isArray(n)?n:[n]]));const oA=(t,A)=>{const e=Q.forwardRef(({className:r,...s},n)=>Q.createElement(Ul,{ref:n,iconNode:A,className:jo(`lucide-${ml(Wo(t))}`,`lucide-${t}`,r),...s}));return e.displayName=Wo(t),e};const Kt=oA("bug",[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]]);const Fl=oA("camera",[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);const Xo=oA("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const yl=oA("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);const Pe=oA("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);const zo=oA("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);const sn=oA("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);const bl=oA("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);const He=oA("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);const El=oA("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);const vl=oA("key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);const br=oA("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);const Er=oA("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);const Dt=oA("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);const Jo=oA("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);const vr=oA("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);const Il=oA("mouse-pointer-2",[["path",{d:"M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z",key:"edeuup"}]]);const Rt=oA("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);const Hl=oA("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const Sl=oA("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);const Ll=oA("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);const Ir=oA("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);const Tl=oA("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);const kt=oA("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Ol={en:{enterMode:"Enter Feedback Mode",exitMode:"Exit Mode",completed:"Completed",feedbackHeader:"Feedback",selectedElement:"Selected element:",line:"Line",placeholder:"Tell us what you'd like to change...",cancel:"Cancel",send:"Send Feedback",submitting:"Submitting...",success:"Your feedback has been submitted successfully!",error:"Failed to submit feedback. Check backend connection.",successHeader:"Success",errorHeader:"Error",preview:"Preview",viewComments:"View Comments",close:"Close",observe:"Observe",pending:"Pending",readyForReview:"Ready for Review",noComments:"No comments found.",deleteConfirm:"Delete comment",completeConfirm:"Mark as completed?",confirmComplete:"The ticket will be marked as completed and archived.",markReady:"Mark as Ready for Review",reopen:"Reopen",reopenPlaceholder:"Add a new comment before confirming...",review:"Review",confirmDelete:"Are you sure you want to permanently delete this comment? This action cannot be undone.",markReadyConfirm:"Mark as Ready for Review?",confirmMarkReady:"Do you want to mark this comment as ready for review? it will be moved to the review state.",reopenConfirm:"Reopen comment",confirmReopen:"Do you want to set this comment back to pending status?",yes:"Yes, confirm",no:"No, cancel",deleteSuccess:"Comment deleted successfully.",updateSuccess:"Updated successfully.",navigating:"Redirecting to review...",selectToComment:"Click to comment",feedbackSubheader:"What would you like to improve here?",sendFeedback:"Send Comment",edit:"Edit",save:"Save",commentDetails:"Comment Details",annotations:"Comments",viewAll:"View All",exitConfirmTitle:"Close ViewGate?",exitConfirmMessage:"Are you sure you want to close ViewGate? Remember you can reopen it by pressing ALT once (Normal Mode) or holding it for 1 second (Backlog Mode).",backlog:"Backlog",low:"Low",medium:"Medium",high:"High",urgent:"Urgent",priority:"Priority",selectMember:"Select who you are to comment",asMember:"Commenting as",changeMember:"Change",focusAreas:"Focus Areas",frontend:"Frontend",backend:"Backend",ux:"UX/UI",figmaLink:"Figma Reference Link",figmaLinkPlaceholder:"https://www.figma.com/file/...",endpoint:"Related Backend Endpoint",selectEndpoint:"Select endpoint...",figmaNamePlaceholder:"e.g. Main Design, Modal, etc.",addLink:"Add another link",removeLink:"Remove",figmaPrimaryDesign:"Principal Design",invalidToken:"Invalid or expired token"},es:{enterMode:"Activar Modo Comentarios",exitMode:"Salir del Modo",completed:"Completado",feedbackHeader:"Comentarios",selectedElement:"Elemento seleccionado:",line:"Línea",placeholder:"Cuéntanos qué te gustaría cambiar...",cancel:"Cancelar",send:"Enviar Comentarios",submitting:"Enviando...",success:"¡Tus comentarios se han enviado con éxito!",error:"Error al enviar comentarios. Revisa la conexión con el servidor.",successHeader:"Éxito",errorHeader:"Error",preview:"Vista previa",viewComments:"Ver Comentarios",close:"Cerrar",observe:"Observar",pending:"Pendiente",readyForReview:"Listo para revisión",noComments:"No hay comentarios.",deleteConfirm:"Eliminar comentario",completeConfirm:"¿Completar ticket?",confirmComplete:"El ticket se marcará como completado y se archivará.",markReady:"Marcar como Listo para revisión",reopen:"Reabrir",reopenPlaceholder:"Agrega un nuevo comentario antes de confirmar...",review:"Revisar",confirmDelete:"¿Estás seguro de que deseas eliminar permanentemente este comentario? Esta acción no se puede deshacer.",markReadyConfirm:"¿Listo para revisión?",confirmMarkReady:"¿Deseas marcar este comentario como listo para revisión? Pasará al estado de revisión.",reopenConfirm:"Reabrir comentario",confirmReopen:"¿Deseas volver a poner este comentario en estado pendiente?",yes:"Sí, confirmar",no:"No, cancelar",deleteSuccess:"El comentario ha sido eliminado.",updateSuccess:"Actualizado correctamente.",navigating:"Redirigiendo a revisión...",selectToComment:"Haz clic para comentar",feedbackSubheader:"¿Qué te gustaría mejorar aquí?",sendFeedback:"Enviar Comentario",edit:"Editar",save:"Guardar",commentDetails:"Detalles del Comentario",annotations:"Comentarios",viewAll:"Ver Todos",exitConfirmTitle:"¿Cerrar ViewGate?",exitConfirmMessage:"¿Estás seguro de que deseas cerrar ViewGate? Recuerda que puedes volver a activarlo pulsando una vez la tecla ALT (Modo Normal) o manteniéndola pulsada 1 segundo (Modo Backlog).",backlog:"Backlog",low:"Baja",medium:"Media",high:"Alta",urgent:"Urgente",priority:"Prioridad",selectMember:"Selecciona quién eres para comentar",asMember:"Comentando como",changeMember:"Cambiar",focusAreas:"Áreas de Foco",frontend:"Frontend",backend:"Backend",ux:"UX/UI",figmaLink:"Link de Referencia Figma",figmaLinkPlaceholder:"https://www.figma.com/file/...",endpoint:"Endpoint de Backend Relacionado",selectEndpoint:"Seleccionar endpoint...",figmaNamePlaceholder:"ej. Diseño Principal, Modal, etc.",addLink:"Agregar otro link",removeLink:"Eliminar",figmaPrimaryDesign:"Diseño Principal",invalidToken:"Token inválido o expirado"}},Yo=Q.createContext(void 0),Zo=()=>{const t=Q.useContext(Yo);if(!t)throw new Error("useViewGate must be used within a ViewGateProvider");return t},Gt="viewgate_enabled",Kl=()=>{if(typeof window>"u")return!1;const t=new URLSearchParams(window.location.search);return t.has("viewgate")||t.has("viewgate-backlog")?(sessionStorage.setItem(Gt,"true"),!0):sessionStorage.getItem(Gt)==="true"},Dl=({children:t,language:A="es",apiKey:e,baseUrl:r="https://view-gate.vercel.app",dashboardUrl:s})=>{const n=s||(r==="https://view-gate.vercel.app"?"https://view-gate-dashboard.vercel.app":r.includes("localhost:5000")?r.replace("5000","3000"):r),[o,a]=Q.useState(!1),[c,g]=Q.useState([]);Q.useRef(0);const d=Q.useRef(null),B=Q.useRef(!1);Q.useEffect(()=>{a(Kl());const C=y=>{y.key==="Alt"&&!y.repeat&&(y.preventDefault(),B.current=!1,d.current&&clearTimeout(d.current),d.current=setTimeout(()=>{const m=new URL(window.location.href);m.searchParams.delete("viewgate"),m.searchParams.set("viewgate-backlog","true"),window.history.replaceState({},"",m.toString()),a(!0),sessionStorage.setItem(Gt,"true"),window.dispatchEvent(new PopStateEvent("popstate")),f(A==="es"?"Modo Backlog activado":"Backlog Mode activated","success"),B.current=!0,d.current=null},1e3))},F=y=>{if(y.key==="Alt"&&(y.preventDefault(),d.current)){clearTimeout(d.current),d.current=null;const m=new URL(window.location.href);m.searchParams.delete("viewgate-backlog"),m.searchParams.set("viewgate","true"),window.history.replaceState({},"",m.toString()),a(!0),sessionStorage.setItem(Gt,"true"),window.dispatchEvent(new PopStateEvent("popstate")),f(A==="es"?"Modo Normal activado":"Normal Mode activated","success")}};return window.addEventListener("keydown",C),window.addEventListener("keyup",F),()=>{window.removeEventListener("keydown",C),window.removeEventListener("keyup",F)}},[A]);const u=()=>{if(sessionStorage.removeItem(Gt),a(!1),typeof window<"u"){const C=new URL(window.location.href);C.searchParams.delete("viewgate"),window.history.replaceState({},"",C.toString())}},f=(C,F)=>{const y=Date.now();g(m=>[...m,{id:y,message:C,type:F}]),setTimeout(()=>{g(m=>m.filter(L=>L.id!==y))},4e3)},w=Ol[A];return i.jsxs(Yo.Provider,{"data-vg-id":"89da3486","data-source-path":"/src/components/ViewGateProvider.tsx:369",value:{addToast:f,language:A,t:w,apiKey:e,baseUrl:r,dashboardUrl:n,disableViewGate:u,hasActiveToasts:c.length>0},children:[t,o&&i.jsx(wl,{"data-vg-id":"f1499d3a","data-source-path":"/src/components/ViewGateProvider.tsx:381",children:i.jsxs("div",{"data-vg-id":"1bedb79b","data-source-path":"/src/components/ViewGateProvider.tsx:382",className:"vg-container",children:[i.jsx(wc,{"data-vg-id":"d3f262cb","data-source-path":"/src/components/ViewGateProvider.tsx:383"}),i.jsx("div",{"data-vg-id":"1bedb79d","data-source-path":"/src/components/ViewGateProvider.tsx:384",className:"vg-toasts",style:{zIndex:2147483647},children:c.map(C=>i.jsxs("div",{"data-vg-id":"1bedb79e","data-source-path":"/src/components/ViewGateProvider.tsx:386",className:`vg-toast vg-animate-slide ${C.type}`,children:[C.type==="success"?i.jsx(Pe,{"data-vg-id":"c7ae3b26","data-source-path":"/src/components/ViewGateProvider.tsx:388",size:24,color:"#22c55e"}):C.type==="warning"?i.jsx(Tl,{"data-vg-id":"137eb473","data-source-path":"/src/components/ViewGateProvider.tsx:390",size:24,color:"#f59e0b"}):i.jsx(yl,{"data-vg-id":"e7ad3c7c","data-source-path":"/src/components/ViewGateProvider.tsx:392",size:24,color:"#ef4444"}),i.jsxs("div",{"data-vg-id":"61c93bb7","data-source-path":"/src/components/ViewGateProvider.tsx:394",children:[i.jsx("strong",{"data-vg-id":"29b8e974","data-source-path":"/src/components/ViewGateProvider.tsx:395",style:{display:"block",fontSize:"13px",color:"#0f172a",textTransform:"uppercase",marginBottom:"2px"},children:C.type==="success"?w.successHeader:C.type==="warning"?A==="es"?"Aviso":"Warning":w.errorHeader}),i.jsx("span",{"data-vg-id":"fbbd7822","data-source-path":"/src/components/ViewGateProvider.tsx:398",style:{fontSize:"14px",color:"#000000"},children:C.message})]})]},C.id))})]})})]})};class HA{constructor(A,e,r,s){this.left=A,this.top=e,this.width=r,this.height=s}add(A,e,r,s){return new HA(this.left+A,this.top+e,this.width+r,this.height+s)}static fromClientRect(A,e){return new HA(e.left+A.windowBounds.left,e.top+A.windowBounds.top,e.width,e.height)}static fromDOMRectList(A,e){const r=Array.from(e);let s=r.find(n=>n.width!==0);return s||(s=r.find(n=>n.height!==0)),!s&&r.length>0&&(s=r[0]),s?new HA(s.left+A.windowBounds.left,s.top+A.windowBounds.top,s.width,s.height):HA.EMPTY}}HA.EMPTY=new HA(0,0,0,0);const Hr=(t,A)=>HA.fromClientRect(t,A.getBoundingClientRect()),Rl=t=>{const A=t.body,e=t.documentElement;if(!A||!e)throw new Error("Unable to get document size");const r=Math.max(Math.max(A.scrollWidth,e.scrollWidth),Math.max(A.offsetWidth,e.offsetWidth),Math.max(A.clientWidth,e.clientWidth)),s=Math.max(Math.max(A.scrollHeight,e.scrollHeight),Math.max(A.offsetHeight,e.offsetHeight),Math.max(A.clientHeight,e.clientHeight));return new HA(0,0,r,s)};for(var Sr=function(t){for(var A=[],e=0,r=t.length;e<r;){var s=t.charCodeAt(e++);if(s>=55296&&s<=56319&&e<r){var n=t.charCodeAt(e++);(n&64512)===56320?A.push(((s&1023)<<10)+(n&1023)+65536):(A.push(s),e--)}else A.push(s)}return A},pA=function(){for(var t=[],A=0;A<arguments.length;A++)t[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var e=t.length;if(!e)return"";for(var r=[],s=-1,n="";++s<e;){var o=t[s];o<=65535?r.push(o):(o-=65536,r.push((o>>10)+55296,o%1024+56320)),(s+1===e||r.length>16384)&&(n+=String.fromCharCode.apply(String,r),r.length=0)}return n},$o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",kl=typeof Uint8Array>"u"?[]:new Uint8Array(256),Lr=0;Lr<$o.length;Lr++)kl[$o.charCodeAt(Lr)]=Lr;for(var qo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Vt=typeof Uint8Array>"u"?[]:new Uint8Array(256),Tr=0;Tr<qo.length;Tr++)Vt[qo.charCodeAt(Tr)]=Tr;for(var Gl=function(t){var A=t.length*.75,e=t.length,r,s=0,n,o,a,c;t[t.length-1]==="="&&(A--,t[t.length-2]==="="&&A--);var g=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),d=Array.isArray(g)?g:new Uint8Array(g);for(r=0;r<e;r+=4)n=Vt[t.charCodeAt(r)],o=Vt[t.charCodeAt(r+1)],a=Vt[t.charCodeAt(r+2)],c=Vt[t.charCodeAt(r+3)],d[s++]=n<<2|o>>4,d[s++]=(o&15)<<4|a>>2,d[s++]=(a&3)<<6|c&63;return g},Vl=function(t){for(var A=t.length,e=[],r=0;r<A;r+=2)e.push(t[r+1]<<8|t[r]);return e},Ml=function(t){for(var A=t.length,e=[],r=0;r<A;r+=4)e.push(t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]);return e},je=5,nn=11,on=2,Nl=nn-je,Aa=65536>>je,_l=1<<je,an=_l-1,Pl=1024>>je,jl=Aa+Pl,Wl=jl,Xl=32,zl=Wl+Xl,Jl=65536>>nn,Yl=1<<Nl,Zl=Yl-1,ea=function(t,A,e){return t.slice?t.slice(A,e):new Uint16Array(Array.prototype.slice.call(t,A,e))},$l=function(t,A,e){return t.slice?t.slice(A,e):new Uint32Array(Array.prototype.slice.call(t,A,e))},ql=function(t,A){var e=Gl(t),r=Array.isArray(e)?Ml(e):new Uint32Array(e),s=Array.isArray(e)?Vl(e):new Uint16Array(e),n=24,o=ea(s,n/2,r[4]/2),a=r[5]===2?ea(s,(n+r[4])/2):$l(r,Math.ceil((n+r[4])/4));return new Ad(r[0],r[1],r[2],r[3],o,a)},Ad=(function(){function t(A,e,r,s,n,o){this.initialValue=A,this.errorValue=e,this.highStart=r,this.highValueIndex=s,this.index=n,this.data=o}return t.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=this.index[A>>je],e=(e<<on)+(A&an),this.data[e];if(A<=65535)return e=this.index[Aa+(A-55296>>je)],e=(e<<on)+(A&an),this.data[e];if(A<this.highStart)return e=zl-Jl+(A>>nn),e=this.index[e],e+=A>>je&Zl,e=this.index[e],e=(e<<on)+(A&an),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t})(),ta="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ed=typeof Uint8Array>"u"?[]:new Uint8Array(256),Or=0;Or<ta.length;Or++)ed[ta.charCodeAt(Or)]=Or;var td="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",ra=50,rd=1,sa=2,na=3,sd=4,nd=5,oa=7,aa=8,ia=9,Se=10,cn=11,ca=12,ln=13,od=14,Mt=15,dn=16,Kr=17,Nt=18,ad=19,la=20,Bn=21,_t=22,gn=23,ct=24,WA=25,Pt=26,jt=27,lt=28,id=29,We=30,cd=31,Dr=32,Rr=33,un=34,fn=35,hn=36,Wt=37,pn=38,kr=39,Gr=40,wn=41,da=42,ld=43,dd=[9001,65288],Ba="!",P="×",Vr="÷",mn=ql(td),Qe=[We,hn],Cn=[rd,sa,na,nd],ga=[Se,aa],ua=[jt,Pt],Bd=Cn.concat(ga),fa=[pn,kr,Gr,un,fn],gd=[Mt,ln],ud=function(t,A){A===void 0&&(A="strict");var e=[],r=[],s=[];return t.forEach(function(n,o){var a=mn.get(n);if(a>ra?(s.push(!0),a-=ra):s.push(!1),["normal","auto","loose"].indexOf(A)!==-1&&[8208,8211,12316,12448].indexOf(n)!==-1)return r.push(o),e.push(dn);if(a===sd||a===cn){if(o===0)return r.push(o),e.push(We);var c=e[o-1];return Bd.indexOf(c)===-1?(r.push(r[o-1]),e.push(c)):(r.push(o),e.push(We))}if(r.push(o),a===cd)return e.push(A==="strict"?Bn:Wt);if(a===da||a===id)return e.push(We);if(a===ld)return n>=131072&&n<=196605||n>=196608&&n<=262141?e.push(Wt):e.push(We);e.push(a)}),[r,e,s]},Qn=function(t,A,e,r){var s=r[e];if(Array.isArray(t)?t.indexOf(s)!==-1:t===s)for(var n=e;n<=r.length;){n++;var o=r[n];if(o===A)return!0;if(o!==Se)break}if(s===Se)for(var n=e;n>0;){n--;var a=r[n];if(Array.isArray(t)?t.indexOf(a)!==-1:t===a)for(var c=e;c<=r.length;){c++;var o=r[c];if(o===A)return!0;if(o!==Se)break}if(a!==Se)break}return!1},ha=function(t,A){for(var e=t;e>=0;){var r=A[e];if(r===Se)e--;else return r}return 0},fd=function(t,A,e,r,s){if(e[r]===0)return P;var n=r-1;if(Array.isArray(s)&&s[n]===!0)return P;var o=n-1,a=n+1,c=A[n],g=o>=0?A[o]:0,d=A[a];if(c===sa&&d===na)return P;if(Cn.indexOf(c)!==-1)return Ba;if(Cn.indexOf(d)!==-1||ga.indexOf(d)!==-1)return P;if(ha(n,A)===aa)return Vr;if(mn.get(t[n])===cn||(c===Dr||c===Rr)&&mn.get(t[a])===cn||c===oa||d===oa||c===ia||[Se,ln,Mt].indexOf(c)===-1&&d===ia||[Kr,Nt,ad,ct,lt].indexOf(d)!==-1||ha(n,A)===_t||Qn(gn,_t,n,A)||Qn([Kr,Nt],Bn,n,A)||Qn(ca,ca,n,A))return P;if(c===Se)return Vr;if(c===gn||d===gn)return P;if(d===dn||c===dn)return Vr;if([ln,Mt,Bn].indexOf(d)!==-1||c===od||g===hn&&gd.indexOf(c)!==-1||c===lt&&d===hn||d===la||Qe.indexOf(d)!==-1&&c===WA||Qe.indexOf(c)!==-1&&d===WA||c===jt&&[Wt,Dr,Rr].indexOf(d)!==-1||[Wt,Dr,Rr].indexOf(c)!==-1&&d===Pt||Qe.indexOf(c)!==-1&&ua.indexOf(d)!==-1||ua.indexOf(c)!==-1&&Qe.indexOf(d)!==-1||[jt,Pt].indexOf(c)!==-1&&(d===WA||[_t,Mt].indexOf(d)!==-1&&A[a+1]===WA)||[_t,Mt].indexOf(c)!==-1&&d===WA||c===WA&&[WA,lt,ct].indexOf(d)!==-1)return P;if([WA,lt,ct,Kr,Nt].indexOf(d)!==-1)for(var B=n;B>=0;){var u=A[B];if(u===WA)return P;if([lt,ct].indexOf(u)!==-1)B--;else break}if([jt,Pt].indexOf(d)!==-1)for(var B=[Kr,Nt].indexOf(c)!==-1?o:n;B>=0;){var u=A[B];if(u===WA)return P;if([lt,ct].indexOf(u)!==-1)B--;else break}if(pn===c&&[pn,kr,un,fn].indexOf(d)!==-1||[kr,un].indexOf(c)!==-1&&[kr,Gr].indexOf(d)!==-1||[Gr,fn].indexOf(c)!==-1&&d===Gr||fa.indexOf(c)!==-1&&[la,Pt].indexOf(d)!==-1||fa.indexOf(d)!==-1&&c===jt||Qe.indexOf(c)!==-1&&Qe.indexOf(d)!==-1||c===ct&&Qe.indexOf(d)!==-1||Qe.concat(WA).indexOf(c)!==-1&&d===_t&&dd.indexOf(t[a])===-1||Qe.concat(WA).indexOf(d)!==-1&&c===Nt)return P;if(c===wn&&d===wn){for(var f=e[n],w=1;f>0&&(f--,A[f]===wn);)w++;if(w%2!==0)return P}return c===Dr&&d===Rr?P:Vr},hd=function(t,A){A||(A={lineBreak:"normal",wordBreak:"normal"});var e=ud(t,A.lineBreak),r=e[0],s=e[1],n=e[2];(A.wordBreak==="break-all"||A.wordBreak==="break-word")&&(s=s.map(function(a){return[WA,We,da].indexOf(a)!==-1?Wt:a}));var o=A.wordBreak==="keep-all"?n.map(function(a,c){return a&&t[c]>=19968&&t[c]<=40959}):void 0;return[r,s,o]},pd=(function(){function t(A,e,r,s){this.codePoints=A,this.required=e===Ba,this.start=r,this.end=s}return t.prototype.slice=function(){return pA.apply(void 0,this.codePoints.slice(this.start,this.end))},t})(),wd=function(t,A){var e=Sr(t),r=hd(e,A),s=r[0],n=r[1],o=r[2],a=e.length,c=0,g=0;return{next:function(){if(g>=a)return{done:!0,value:null};for(var d=P;g<a&&(d=fd(e,n,s,++g,o))===P;);if(d!==P||g===a){var B=new pd(e,d,c,g);return c=g,{value:B,done:!1}}return{done:!0,value:null}}}};const md=1,Cd=2,dt=4,pa=8,Mr=10,wa=47,Xt=92,Qd=9,xd=32,Nr=34,zt=61,Ud=35,Fd=36,yd=37,_r=39,Pr=40,Jt=41,bd=95,GA=45,Ed=33,vd=60,Id=62,Hd=64,Sd=91,Ld=93,Td=61,Od=123,jr=63,Kd=125,ma=124,Dd=126,Rd=128,Ca=65533,xn=42,Xe=43,kd=44,Gd=58,Vd=59,Yt=46,Md=0,Nd=8,_d=11,Pd=14,jd=31,Wd=127,ce=-1,Qa=48,xa=97,Ua=101,Xd=102,zd=117,Jd=122,Fa=65,ya=69,ba=70,Yd=85,Zd=90,SA=t=>t>=Qa&&t<=57,$d=t=>t>=55296&&t<=57343,Bt=t=>SA(t)||t>=Fa&&t<=ba||t>=xa&&t<=Xd,qd=t=>t>=xa&&t<=Jd,AB=t=>t>=Fa&&t<=Zd,eB=t=>qd(t)||AB(t),tB=t=>t>=Rd,Wr=t=>t===Mr||t===Qd||t===xd,Xr=t=>eB(t)||tB(t)||t===bd,Ea=t=>Xr(t)||SA(t)||t===GA,rB=t=>t>=Md&&t<=Nd||t===_d||t>=Pd&&t<=jd||t===Wd,Le=(t,A)=>t!==Xt?!1:A!==Mr,zr=(t,A,e)=>t===GA?Xr(A)||Le(A,e):Xr(t)?!0:!!(t===Xt&&Le(t,A)),Un=(t,A,e)=>t===Xe||t===GA?SA(A)?!0:A===Yt&&SA(e):SA(t===Yt?A:t),sB=t=>{let A=0,e=1;(t[A]===Xe||t[A]===GA)&&(t[A]===GA&&(e=-1),A++);const r=[];for(;SA(t[A]);)r.push(t[A++]);const s=r.length?parseInt(pA(...r),10):0;t[A]===Yt&&A++;const n=[];for(;SA(t[A]);)n.push(t[A++]);const o=n.length,a=o?parseInt(pA(...n),10):0;(t[A]===ya||t[A]===Ua)&&A++;let c=1;(t[A]===Xe||t[A]===GA)&&(t[A]===GA&&(c=-1),A++);const g=[];for(;SA(t[A]);)g.push(t[A++]);const d=g.length?parseInt(pA(...g),10):0;return e*(s+a*Math.pow(10,-o))*Math.pow(10,c*d)},nB={type:2},oB={type:3},aB={type:4},iB={type:13},cB={type:8},lB={type:21},dB={type:9},BB={type:10},gB={type:11},uB={type:12},fB={type:14},Jr={type:23},hB={type:1},pB={type:25},wB={type:24},mB={type:26},CB={type:27},QB={type:28},xB={type:29},UB={type:31},Fn={type:32};class va{constructor(){this._value=[]}write(A){this._value=this._value.concat(Sr(A))}read(){const A=[];let e=this.consumeToken();for(;e!==Fn;)A.push(e),e=this.consumeToken();return A}consumeToken(){const A=this.consumeCodePoint();switch(A){case Nr:return this.consumeStringToken(Nr);case Ud:const e=this.peekCodePoint(0),r=this.peekCodePoint(1),s=this.peekCodePoint(2);if(Ea(e)||Le(r,s)){const f=zr(e,r,s)?Cd:md;return{type:5,value:this.consumeName(),flags:f}}break;case Fd:if(this.peekCodePoint(0)===zt)return this.consumeCodePoint(),iB;break;case _r:return this.consumeStringToken(_r);case Pr:return nB;case Jt:return oB;case xn:if(this.peekCodePoint(0)===zt)return this.consumeCodePoint(),fB;break;case Xe:if(Un(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case kd:return aB;case GA:const n=A,o=this.peekCodePoint(0),a=this.peekCodePoint(1);if(Un(n,o,a))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(zr(n,o,a))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(o===GA&&a===Id)return this.consumeCodePoint(),this.consumeCodePoint(),wB;break;case Yt:if(Un(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case wa:if(this.peekCodePoint(0)===xn)for(this.consumeCodePoint();;){let f=this.consumeCodePoint();if(f===xn&&(f=this.consumeCodePoint(),f===wa))return this.consumeToken();if(f===ce)return this.consumeToken()}break;case Gd:return mB;case Vd:return CB;case vd:if(this.peekCodePoint(0)===Ed&&this.peekCodePoint(1)===GA&&this.peekCodePoint(2)===GA)return this.consumeCodePoint(),this.consumeCodePoint(),pB;break;case Hd:const c=this.peekCodePoint(0),g=this.peekCodePoint(1),d=this.peekCodePoint(2);if(zr(c,g,d))return{type:7,value:this.consumeName()};break;case Sd:return QB;case Xt:if(Le(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case Ld:return xB;case Td:if(this.peekCodePoint(0)===zt)return this.consumeCodePoint(),cB;break;case Od:return gB;case Kd:return uB;case zd:case Yd:const B=this.peekCodePoint(0),u=this.peekCodePoint(1);return B===Xe&&(Bt(u)||u===jr)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case ma:if(this.peekCodePoint(0)===zt)return this.consumeCodePoint(),dB;if(this.peekCodePoint(0)===ma)return this.consumeCodePoint(),lB;break;case Dd:if(this.peekCodePoint(0)===zt)return this.consumeCodePoint(),BB;break;case ce:return Fn}return Wr(A)?(this.consumeWhiteSpace(),UB):SA(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):Xr(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:pA(A)}}consumeCodePoint(){const A=this._value.shift();return typeof A>"u"?-1:A}reconsumeCodePoint(A){this._value.unshift(A)}peekCodePoint(A){return A>=this._value.length?-1:this._value[A]}consumeUnicodeRangeToken(){const A=[];let e=this.consumeCodePoint();for(;Bt(e)&&A.length<6;)A.push(e),e=this.consumeCodePoint();let r=!1;for(;e===jr&&A.length<6;)A.push(e),e=this.consumeCodePoint(),r=!0;if(r){const n=parseInt(pA(...A.map(a=>a===jr?Qa:a)),16),o=parseInt(pA(...A.map(a=>a===jr?ba:a)),16);return{type:30,start:n,end:o}}const s=parseInt(pA(...A),16);if(this.peekCodePoint(0)===GA&&Bt(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();const n=[];for(;Bt(e)&&n.length<6;)n.push(e),e=this.consumeCodePoint();const o=parseInt(pA(...n),16);return{type:30,start:s,end:o}}else return{type:30,start:s,end:s}}consumeIdentLikeToken(){const A=this.consumeName();return A.toLowerCase()==="url"&&this.peekCodePoint(0)===Pr?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Pr?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}}consumeUrlToken(){const A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===ce)return{type:22,value:""};const e=this.peekCodePoint(0);if(e===_r||e===Nr){const r=this.consumeStringToken(this.consumeCodePoint());return r.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===ce||this.peekCodePoint(0)===Jt)?(this.consumeCodePoint(),{type:22,value:r.value}):(this.consumeBadUrlRemnants(),Jr)}for(;;){const r=this.consumeCodePoint();if(r===ce||r===Jt)return{type:22,value:pA(...A)};if(Wr(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===ce||this.peekCodePoint(0)===Jt?(this.consumeCodePoint(),{type:22,value:pA(...A)}):(this.consumeBadUrlRemnants(),Jr);if(r===Nr||r===_r||r===Pr||rB(r))return this.consumeBadUrlRemnants(),Jr;if(r===Xt)if(Le(r,this.peekCodePoint(0)))A.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Jr;else A.push(r)}}consumeWhiteSpace(){for(;Wr(this.peekCodePoint(0));)this.consumeCodePoint()}consumeBadUrlRemnants(){for(;;){const A=this.consumeCodePoint();if(A===Jt||A===ce)return;Le(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}}consumeStringSlice(A){let r="";for(;A>0;){const s=Math.min(5e4,A);r+=pA(...this._value.splice(0,s)),A-=s}return this._value.shift(),r}consumeStringToken(A){let e="",r=0;do{const s=this._value[r];if(s===ce||s===void 0||s===A)return e+=this.consumeStringSlice(r),{type:0,value:e};if(s===Mr)return this._value.splice(0,r),hB;if(s===Xt){const n=this._value[r+1];n!==ce&&n!==void 0&&(n===Mr?(e+=this.consumeStringSlice(r),r=-1,this._value.shift()):Le(s,n)&&(e+=this.consumeStringSlice(r),e+=pA(this.consumeEscapedCodePoint()),r=-1))}r++}while(!0)}consumeNumber(){const A=[];let e=dt,r=this.peekCodePoint(0);for((r===Xe||r===GA)&&A.push(this.consumeCodePoint());SA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());r=this.peekCodePoint(0);let s=this.peekCodePoint(1);if(r===Yt&&SA(s))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=pa;SA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());r=this.peekCodePoint(0),s=this.peekCodePoint(1);const n=this.peekCodePoint(2);if((r===ya||r===Ua)&&((s===Xe||s===GA)&&SA(n)||SA(s)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=pa;SA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[sB(A),e]}consumeNumericToken(){const[A,e]=this.consumeNumber(),r=this.peekCodePoint(0),s=this.peekCodePoint(1),n=this.peekCodePoint(2);if(zr(r,s,n)){const o=this.consumeName();return{type:15,number:A,flags:e,unit:o}}return r===yd?(this.consumeCodePoint(),{type:16,number:A,flags:e}):{type:17,number:A,flags:e}}consumeEscapedCodePoint(){const A=this.consumeCodePoint();if(Bt(A)){let e=pA(A);for(;Bt(this.peekCodePoint(0))&&e.length<6;)e+=pA(this.consumeCodePoint());Wr(this.peekCodePoint(0))&&this.consumeCodePoint();const r=parseInt(e,16);return r===0||$d(r)||r>1114111?Ca:r}return A===ce?Ca:A}consumeName(){let A="";for(;;){const e=this.consumeCodePoint();if(Ea(e))A+=pA(e);else if(Le(e,this.peekCodePoint(0)))A+=pA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(e),A}}}class gt{constructor(A){this._tokens=A}static create(A){const e=new va;return e.write(A),new gt(e.read())}static parseValue(A){return gt.create(A).parseComponentValue()}static parseValues(A){return gt.create(A).parseComponentValues()}parseComponentValue(){let A=this.consumeToken();for(;A.type===31;)A=this.consumeToken();if(A.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);const e=this.consumeComponentValue();do A=this.consumeToken();while(A.type===31);if(A.type===32)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")}parseComponentValues(){const A=[];for(;;){const e=this.consumeComponentValue();if(e.type===32)return A;A.push(e),A.push()}}consumeComponentValue(){const A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A}consumeSimpleBlock(A){const e={type:A,values:[]};let r=this.consumeToken();for(;;){if(r.type===32||yB(r,A))return e;this.reconsumeToken(r),e.values.push(this.consumeComponentValue()),r=this.consumeToken()}}consumeFunction(A){const e={name:A.value,values:[],type:18};for(;;){const r=this.consumeToken();if(r.type===32||r.type===3)return e;this.reconsumeToken(r),e.values.push(this.consumeComponentValue())}}consumeToken(){const A=this._tokens.shift();return typeof A>"u"?Fn:A}reconsumeToken(A){this._tokens.unshift(A)}}const le=t=>t.type===15,mA=t=>t.type===17,V=t=>t.type===20,FB=t=>t.type===0,Zt=(t,A)=>V(t)&&t.value===A,Yr=t=>t.type!==31,bA=t=>t.type!==31&&t.type!==4,te=t=>{const A=[];let e=[];return t.forEach(r=>{if(r.type===4){if(e.length===0)throw new Error("Error parsing function args, zero tokens for arg");A.push(e),e=[];return}r.type!==31&&e.push(r)}),e.length&&A.push(e),A},yB=(t,A)=>A===11&&t.type===12||A===28&&t.type===29?!0:A===2&&t.type===3,gA=(t,A,e)=>Math.min(Math.max(t,A),e),VA=(t,A)=>[t[0]*A[0]+t[1]*A[1]+t[2]*A[2],t[3]*A[0]+t[4]*A[1]+t[5]*A[2],t[6]*A[0]+t[7]*A[1]+t[8]*A[2]],Te=t=>VA([3.2409699419045226,-1.537383177570094,-.4986107602930034,-.9692436362808796,1.8759675015077202,.04155505740717559,.05563007969699366,-.20397695888897652,1.0569715142428786],t),yn=t=>VA([.41239079926595934,.357584339383878,.1804807884018343,.21263900587151027,.715168678767756,.07219231536073371,.01933081871559182,.11919477979462598,.9505321522496607],t),ze=t=>t.map(A=>{const e=A<0?-1:1,r=Math.abs(A);return r>.0031308?e*(1.055*r**(1/2.4)-.055):12.92*A}),bn=t=>t.map(A=>{const e=A<0?-1:1,r=Math.abs(A);return r<=.04045?A/12.92:e*((r+.055)/1.055)**2.4}),bB=t=>{const[A,e,r]=ze(Te([t[0],t[1],t[2]]));return[A,e,r,t[3]]},EB=t=>{const[A,e,r]=Te([t[0],t[1],t[2]]);return[gA(Math.round(A*255),0,255),gA(Math.round(e*255),0,255),gA(Math.round(r*255),0,255),t[3]]},Oe=t=>t.type===17||t.type===15,$=t=>t.type===16||Oe(t),vB=t=>t.type===18&&t.name==="calc",IB=(t,A=0)=>{const e=r=>{let s="";for(const n of r)if(n.type!==31){if(n.type===18)if(n.name==="calc"){const o=e(n.values);if(o===null)return null;s+=`(${o})`}else return null;else if(n.type===17)s+=n.number.toString();else if(n.type===15)n.unit==="px"?s+=n.number.toString():n.unit==="rem"||n.unit==="em"?s+=(n.number*16).toString():s+=n.number.toString();else if(n.type===16)s+=(n.number/100*A).toString();else if(n.type===6){const o=n.value;o==="+"||o==="-"||o==="*"||o==="/"?s+=` ${o} `:o==="("?s+="(":o===")"&&(s+=")")}}return s};try{const r=e(t.values);if(r===null||r.trim()==="")return null;const s=new Function("return "+r)();if(typeof s=="number"&&!isNaN(s))return{type:17,number:s,flags:dt}}catch{return null}return null},Ia=t=>t.length>1?[t[0],t[1]]:[t[0]],CA={type:17,number:0,flags:dt},Je={type:16,number:50,flags:dt},de={type:16,number:100,flags:dt},$t=(t,A,e)=>{const[r,s]=t;return[G(r,A),G(typeof s<"u"?s:r,e)]},G=(t,A)=>{if(t.type===16)return t.number/100*A;if(le(t))switch(t.unit){case"rem":case"em":return 16*t.number;default:return t.number}return t.number},Ha="deg",Sa="grad",La="rad",Ta="turn",ut={name:"angle",parse:(t,A)=>{if(A.type===15)switch(A.unit){case Ha:return Math.PI*A.number/180;case Sa:return Math.PI/200*A.number;case La:return A.number;case Ta:return Math.PI*2*A.number}throw new Error("Unsupported angle type")}},Oa=t=>t.type===15&&(t.unit===Ha||t.unit===Sa||t.unit===La||t.unit===Ta),Ka=t=>{switch(t.filter(V).map(e=>e.value).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[CA,CA];case"to top":case"bottom":return JA(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[CA,de];case"to right":case"left":return JA(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[de,de];case"to bottom":case"top":return JA(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[de,CA];case"to left":case"right":return JA(270)}return 0},JA=t=>Math.PI*t/180,Ke=t=>(255&t)===0,rA=t=>{const A=255&t,e=255&t>>8,r=255&t>>16,s=255&t>>24;return A<255?`rgba(${s},${r},${e},${A/255})`:`rgb(${s},${r},${e})`},re=(t,A,e,r)=>(t<<24|A<<16|e<<8|Math.round(r*255)<<0)>>>0,De=(t,A)=>{if(t.type===17)return t.number;if(t.type===16){const e=A===3?1:255;return A===3?t.number/100*e:Math.round(t.number/100*e)}return 0},Ye=t=>(t[0].type===20?t[0].value:"unknown")==="from",HB=t=>re(gA(Math.round(t[0]*255),0,255),gA(Math.round(t[1]*255),0,255),gA(Math.round(t[2]*255),0,255),gA(t[3],0,1)),En=([t,A,e,r])=>{const s=ze([t,A,e]);return re(gA(Math.round(s[0]*255),0,255),gA(Math.round(s[1]*255),0,255),gA(Math.round(s[2]*255),0,255),r)},qt=t=>{const A=Te([t[0],t[1],t[2]]);return En([A[0],A[1],A[2],t[3]])},SB=(t,A)=>{if(Ye(A.filter(bA)))throw new Error("Relative color not supported for lab()");const[e,r,s,n]=Zr(A),o=ze(Te(As([e,r,s])));return re(gA(Math.round(o[0]*255),0,255),gA(Math.round(o[1]*255),0,255),gA(Math.round(o[2]*255),0,255),n)},LB=(t,A)=>{if(Ye(A.filter(bA)))throw new Error("Relative color not supported for oklab()");const[e,r,s,n]=Zr(A),o=ze(Te(qr([e,r,s])));return re(gA(Math.round(o[0]*255),0,255),gA(Math.round(o[1]*255),0,255),gA(Math.round(o[2]*255),0,255),n)},TB=(t,A)=>{if(Ye(A.filter(bA)))throw new Error("Relative color not supported for oklch()");const[e,r,s,n]=Ga(A),o=ze(Te(qr($r([e,r,s]))));return re(gA(Math.round(o[0]*255),0,255),gA(Math.round(o[1]*255),0,255),gA(Math.round(o[2]*255),0,255),n)},OB=(t,A)=>{if(Ye(A.filter(bA)))throw new Error("Relative color not supported for lch()");const[e,r,s,n]=ka(A),o=ze(Te(As($r([e,r,s]))));return re(gA(Math.round(o[0]*255),0,255),gA(Math.round(o[1]*255),0,255),gA(Math.round(o[2]*255),0,255),n)},Da=(t,A)=>{const e=A.filter(bA),[r,s,n,o]=e,a=(r.type===17?JA(r.number):ut.parse(t,r))/(Math.PI*2),c=$(s)?s.number/100:0,g=$(n)?n.number/100:0,d=typeof o<"u"&&$(o)?G(o,1):1;return[a,c,g,d]},Ra=(t,A)=>{if(Ye(A))throw new Error("Relative color not supported for hsl()");const[e,r,s,n]=Da(t,A),o=Ma([e,r,s]);return re(o[0]*255,o[1]*255,o[2]*255,r===0?1:n)},ka=t=>{const A=t.filter(bA),e=$(A[0])?A[0].number:0,r=$(A[1])?A[1].number:0,s=mA(A[2])||le(A[2])?A[2].number:0,n=typeof A[4]<"u"&&$(A[4])?G(A[4],1):1;return[e,r,s,n]},Zr=t=>{const A=t.filter(bA),e=A[0].type===16?A[0].number/100:mA(A[0])?A[0].number:0,r=A[1].type===16?A[1].number/100:mA(A[1])?A[1].number:0,s=mA(A[2])||le(A[2])?A[2].number:0,n=typeof A[4]<"u"&&$(A[4])?G(A[4],1):1;return[e,r,s,n]},Ga=t=>{const A=t.filter(bA),e=A[0].type===16?A[0].number/100:mA(A[0])?A[0].number:0,r=A[1].type===16?A[1].number/100:mA(A[1])?A[1].number:0,s=mA(A[2])||le(A[2])?A[2].number:0,n=typeof A[4]<"u"&&$(A[4])?G(A[4],1):1;return[e,r,s,n]},Va=t=>VA([1.0479297925449969,.022946870601609652,-.05019226628920524,.02962780877005599,.9904344267538799,-.017073799063418826,-.009243040646204504,.015055191490298152,.7518742814281371],t),vn=t=>VA([.955473421488075,-.02309845494876471,.06325924320057072,-.0283697093338637,1.0099953980813041,.021041441191917323,.012314014864481998,-.020507649298898964,1.330365926242124],t),In=(t,A,e)=>(e<0&&(e+=1),e>=1&&(e-=1),e<1/6?(A-t)*e*6+t:e<1/2?A:e<2/3?(A-t)*6*(2/3-e)+t:t),Ma=([t,A,e])=>{if(A===0)return[e*255,e*255,e*255];const r=e<=.5?e*(A+1):e+A-e*A,s=e*2-r,n=In(s,r,t+1/3),o=In(s,r,t),a=In(s,r,t-1/3);return[n,o,a]},$r=([t,A,e])=>(A<0&&(A=0),isNaN(e)&&(e=0),[t,A*Math.cos(e*Math.PI/180),A*Math.sin(e*Math.PI/180)]),qr=t=>{const A=VA([1,.3963377773761749,.2158037573099136,1,-.1055613458156586,-.0638541728258133,1,-.0894841775298119,-1.2914855480194092],t),e=A.map(r=>r**3);return VA([1.2268798758459243,-.5578149944602171,.2813910456659647,-.0405757452148008,1.112286803280317,-.0717110580655164,-.0763729366746601,-.4214933324022432,1.5869240198367816],e)},As=t=>{const A=(t[0]+16)/116,e=t[1]/500+A,r=A-t[2]/200,s=24389/27,n=24/116,o=[(e>n?e**3:(116*e-16)/s)*.3457/.3585,t[0]>8?A**3:t[0]/s,(r>n?r**3:(116*r-16)/s)*(1-.3457-.3585)/.3585];return vn([o[0],o[1],o[2]])},KB=(t,A)=>{const e=A.filter(bA);if(e.length===3){const[r,s,n]=e.map(De),o=bn([r/255,s/255,n/255]),[a,c,g]=yn([o[0],o[1],o[2]]);return[a,c,g,1]}if(e.length===4){const[r,s,n,o]=e.map(De),a=bn([r/255,s/255,n/255]),[c,g,d]=yn([a[0],a[1],a[2]]);return[c,g,d,o]}return[0,0,0,1]},DB=(t,A)=>{const[e,r,s,n]=Da(t,A),o=bn(Ma([e,r,s])),[a,c,g]=yn([o[0],o[1],o[2]]);return[a,c,g,n]},RB=(t,A)=>{const[e,r,s,n]=Zr(A),[o,a,c]=As([e,r,s]);return[o,a,c,n]},kB=(t,A)=>{const[e,r,s,n]=ka(A),[o,a,c]=As($r([e,r,s]));return[o,a,c,n]},GB=(t,A)=>{const[e,r,s,n]=Ga(A),[o,a,c]=qr($r([e,r,s]));return[o,a,c,n]},VB=(t,A)=>{const[e,r,s,n]=Zr(A),[o,a,c]=qr([e,r,s]);return[o,a,c,n]},MB=t=>vn([t[0],t[1],t[2]]),Na=t=>t,NB=t=>{const[A,e,r]=Va([t[0],t[2],t[3]]);return[A,e,r,t[3]]},_a=t=>qt([t[0],t[1],t[2],t[3]]),_B=t=>{const A=MB([t[0],t[1],t[2]]);return qt([A[0],A[1],A[2],t[3]])},PB=t=>VA([.4865709486482162,.26566769316909306,.1982172852343625,.2289745640697488,.6917385218365064,.079286914093745,0,.04511338185890264,1.043944368900976],t),jB=t=>VA([2.493496911941425,-.9313836179191239,-.40271078445071684,-.8294889695615747,1.7626640603183463,.023624685841943577,.03584583024378447,-.07617238926804182,.9568845240076872],t),WB=t=>t.map(A=>{const e=A<0?-1:1;return A*e<=.04045?A/12.92:e*((A+.055)/1.055)**2.4||0}),XB=t=>ze(t),zB=t=>{const A=WB([t[0],t[1],t[2]]);return PB([A[0],A[1],A[2]])},JB=t=>{const[A,e,r]=XB(jB([t[0],t[1],t[2]]));return[A,e,r,t[3]]},YB=t=>{const A=zB([t[0],t[1],t[2]]);return qt([A[0],A[1],A[2],t[3]])},ZB=t=>VA([2.0415879038107465,-.5650069742788596,-.34473135077832956,-.9692436362808795,1.8759675015077202,.04155505740717557,.013444280632031142,-.11836239223101838,1.0151749943912054],t),$B=t=>VA([.5766690429101305,.1855582379065463,.1882286462349947,.29734497525053605,.6273635662554661,.0752914584939978,.02703136138641234,.07068885253582723,.9913375368376388],t),qB=t=>{const A=t.map(e=>{const r=e<0?-1:1,s=Math.abs(e);return r*s**2.19921875});return[A[0],A[1],A[2]]},Ag=t=>{const A=t.map(e=>{const r=e<0?-1:1,s=Math.abs(e);return r*s**.4547069271758437});return[A[0],A[1],A[2]]},eg=t=>{const[A,e,r]=Ag(ZB([t[0],t[1],t[2]]));return[A,e,r,t[3]]},tg=t=>{const A=Te($B(qB([t[0],t[1],t[2]])));return En([A[0],A[1],A[2],t[3]])},rg=t=>VA([.7977666449006423,.13518129740053308,.0313477341283922,.2880748288194013,.711835234241873,8993693872564e-17,0,0,.8251046025104602],t),sg=t=>VA([1.3457868816471583,-.25557208737979464,-.05110186497554526,-.5446307051249019,1.5082477428451468,.02052744743642139,0,0,1.2119675456389452],t),ng=t=>t.map(A=>A<16/512?A/16:A**1.8),og=t=>t.map(A=>A>1/512?A**(1/1.8):A*16),ag=t=>{const A=ng([t[0],t[1],t[2]]);return vn(rg([A[0],A[1],A[2]]))},ig=t=>{const[A,e,r]=og(sg(Va([t[0],t[1],t[2]])));return[A,e,r,t[3]]},cg=t=>{const A=ag([t[0],t[1],t[2]]);return qt([A[0],A[1],A[2],t[3]])},es=1.09929682680944,Pa=.018053968510807,lg=t=>t.map(function(A){return A<Pa*4.5?A/4.5:Math.pow((A+es-1)/es,1/.45)}),dg=t=>t.map(function(A){return A>=Pa?es*Math.pow(A,.45)-(es-1):4.5*A}),Bg=t=>VA([.6369580483012914,.14461690358620832,.1688809751641721,.2627002120112671,.6779980715188708,.05930171646986196,0,.028072693049087428,1.060985057710791],t),gg=t=>VA([1.716651187971268,-.355670783776392,-.25336628137366,-.666684351832489,1.616481236634939,.0157685458139111,.017639857445311,-.042770613257809,.942103121235474],t),ug=t=>{const A=lg([t[0],t[1],t[2]]);return Bg([A[0],A[1],A[2]])},fg=t=>{const[A,e,r]=dg(gg([t[0],t[1],t[2]]));return[A,e,r,t[3]]},hg=t=>{const A=ug([t[0],t[1],t[2]]);return qt([A[0],A[1],A[2],t[3]])},Re={name:"color",parse:(t,A)=>{if(A.type===18){const e=Cg[A.name];if(typeof e>"u")throw new Error(`Attempting to parse an unsupported color function "${A.name}"`);return e(t,A.values)}if(A.type===5){const[e,r,s,n]=ja(A);return re(e,r,s,n)}if(A.type===20){const e=Be[A.value.toUpperCase()];if(typeof e<"u")return e}return Be.TRANSPARENT}},ja=t=>{if(t.value.length===3){const A=t.value.substring(0,1),e=t.value.substring(1,2),r=t.value.substring(2,3);return[parseInt(A+A,16),parseInt(e+e,16),parseInt(r+r,16),1]}if(t.value.length===4){const A=t.value.substring(0,1),e=t.value.substring(1,2),r=t.value.substring(2,3),s=t.value.substring(3,4);return[parseInt(A+A,16),parseInt(e+e,16),parseInt(r+r,16),parseInt(s+s,16)/255]}if(t.value.length===6){const A=t.value.substring(0,2),e=t.value.substring(2,4),r=t.value.substring(4,6);return[parseInt(A,16),parseInt(e,16),parseInt(r,16),1]}if(t.value.length===8){const A=t.value.substring(0,2),e=t.value.substring(2,4),r=t.value.substring(4,6),s=t.value.substring(6,8);return[parseInt(A,16),parseInt(e,16),parseInt(r,16),parseInt(s,16)/255]}return[0,0,0,1]},Wa=(t,A)=>{const e=A.filter(bA);if(Ye(e))throw new Error("Relative color not supported for rgb()");if(e.length===3){const[r,s,n]=e.map(De);return re(r,s,n,1)}if(e.length===4){const[r,s,n,o]=e.map(De);return re(r,s,n,o)}if(e.length===5&&e[3].type===6&&e[3].value==="/"){const r=De(e[0],0),s=De(e[1],1),n=De(e[2],2),o=De(e[4],3);return re(r,s,n,o)}return 0},pg=(t,A)=>{const e=A.filter(bA),r=e[0].type===20?e[0].value:"unknown";if(!Ye(e)){const n=r,o=Xa[n];if(typeof o>"u")throw new Error(`Attempting to parse an unsupported color space "${n}" for color() function`);const a=mA(e[1])?e[1].number:0,c=mA(e[2])?e[2].number:0,g=mA(e[3])?e[3].number:0,d=e.length>4&&e[4].type===6&&e[4].value==="/"&&mA(e[5])?e[5].number:1;return o([a,c,g,d])}else{const n=(m,L)=>{if(mA(L))return L.number;const H=O=>O==="r"||O==="x"?0:O==="g"||O==="y"?1:2;if(V(L)){const O=H(L.value);return m[O]}const v=O=>{const N=O.filter(bA);let W="(";for(const R of N)W+=R.type===18&&R.name==="calc"?v(R.values):mA(R)?R.number:R.type===6||V(R)?R.value:"";return W+=")",W};if(L.type===18){const O=L.values.filter(bA);if(L.name==="calc"){const N=v(O).replace(/r|x/,m[0].toString()).replace(/g|y/,m[1].toString()).replace(/b|z/,m[2].toString());return new Function("return "+N)()}}return null},o=e[1].type===18?e[1].name:V(e[1])||e[1].type===5?"rgb":"unknown",a=V(e[2])?e[2].value:"unknown";let c=e[1].type===18?e[1].values:V(e[1])?[e[1]]:[];if(V(e[1])){if(typeof Be[e[1].value.toUpperCase()]>"u")throw new Error("Attempting to use unknown color in relative color 'from'");{const L=ft(t,e[1].value),H=255&L,v=255&L>>8,O=255&L>>16;c=[{type:17,number:255&L>>24,flags:1},{type:17,number:O,flags:1},{type:17,number:v,flags:1},{type:17,number:H>1?H/255:H,flags:1}]}}else if(e[1].type===5){const[m,L,H,v]=ja(e[1]);c=[{type:17,number:m,flags:1},{type:17,number:L,flags:1},{type:17,number:H,flags:1},{type:17,number:v>1?v/255:v,flags:1}]}if(c.length===0)throw new Error("Attempting to use unknown color in relative color 'from'");if(a==="unknown")throw new Error("Attempting to use unknown colorspace in relative color 'to'");const g=wg[o],d=mg[a],B=Xa[a];if(typeof g>"u")throw new Error(`Attempting to parse an unsupported color space "${o}" for color() function`);if(typeof d>"u")throw new Error(`Attempting to parse an unsupported color space "${a}" for color() function`);const u=g(t,c),f=d(u),w=n(f,e[3]),C=n(f,e[4]),F=n(f,e[5]),y=e.length>6&&e[6].type===6&&e[6].value==="/"&&mA(e[7])?e[7].number:1;if(w===null||C===null||F===null)throw new Error("Invalid relative color in color() function");return B([w,C,F,y])}},Xa={srgb:HB,"srgb-linear":En,"display-p3":YB,"a98-rgb":tg,"prophoto-rgb":cg,xyz:_a,"xyz-d50":_B,"xyz-d65":_a,rec2020:hg},wg={rgb:KB,hsl:DB,lab:RB,lch:kB,oklab:VB,oklch:GB},mg={srgb:bB,"srgb-linear":EB,"display-p3":JB,"a98-rgb":eg,"prophoto-rgb":ig,xyz:Na,"xyz-d50":NB,"xyz-d65":Na,rec2020:fg},Cg={hsl:Ra,hsla:Ra,rgb:Wa,rgba:Wa,lch:OB,oklch:TB,oklab:LB,lab:SB,color:pg},ft=(t,A)=>Re.parse(t,gt.create(A).parseComponentValue()),Be={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Qg={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:(t,A)=>A.map(e=>{if(V(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})},xg={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ts=(t,A)=>{const e=Re.parse(t,A[0]),r=A[1];return r&&$(r)?{color:e,stop:r}:{color:e,stop:null}},za=(t,A)=>{const e=t[0],r=t[t.length-1];e.stop===null&&(e.stop=CA),r.stop===null&&(r.stop=de);const s=[];let n=0;for(let a=0;a<t.length;a++){const c=t[a].stop;if(c!==null){const g=G(c,A);g>n?s.push(g):s.push(n),n=g}else s.push(null)}let o=null;for(let a=0;a<s.length;a++){const c=s[a];if(c===null)o===null&&(o=a);else if(o!==null){const g=a-o,d=s[o-1],B=(c-d)/(g+1);for(let u=1;u<=g;u++)s[o+u-1]=B*u;o=null}}return t.map(({color:a},c)=>({color:a,stop:Math.max(Math.min(1,s[c]/A),0)}))},Ug=(t,A,e)=>{const r=A/2,s=e/2,n=G(t[0],A)-r,o=s-G(t[1],e);return(Math.atan2(o,n)+Math.PI*2)%(Math.PI*2)},Fg=(t,A,e)=>{const r=typeof t=="number"?t:Ug(t,A,e),s=Math.abs(A*Math.sin(r))+Math.abs(e*Math.cos(r)),n=A/2,o=e/2,a=s/2,c=Math.sin(r-Math.PI/2)*a,g=Math.cos(r-Math.PI/2)*a;return[s,n-g,n+g,o-c,o+c]},se=(t,A)=>Math.sqrt(t*t+A*A),Ja=(t,A,e,r,s)=>[[0,0],[0,A],[t,0],[t,A]].reduce((o,a)=>{const[c,g]=a,d=se(e-c,r-g);return(s?d<o.optimumDistance:d>o.optimumDistance)?{optimumCorner:a,optimumDistance:d}:o},{optimumDistance:s?1/0:-1/0,optimumCorner:null}).optimumCorner,yg=(t,A,e,r,s)=>{let n=0,o=0;switch(t.size){case 0:t.shape===0?n=o=Math.min(Math.abs(A),Math.abs(A-r),Math.abs(e),Math.abs(e-s)):t.shape===1&&(n=Math.min(Math.abs(A),Math.abs(A-r)),o=Math.min(Math.abs(e),Math.abs(e-s)));break;case 2:if(t.shape===0)n=o=Math.min(se(A,e),se(A,e-s),se(A-r,e),se(A-r,e-s));else if(t.shape===1){const a=Math.min(Math.abs(e),Math.abs(e-s))/Math.min(Math.abs(A),Math.abs(A-r)),[c,g]=Ja(r,s,A,e,!0);n=se(c-A,(g-e)/a),o=a*n}break;case 1:t.shape===0?n=o=Math.max(Math.abs(A),Math.abs(A-r),Math.abs(e),Math.abs(e-s)):t.shape===1&&(n=Math.max(Math.abs(A),Math.abs(A-r)),o=Math.max(Math.abs(e),Math.abs(e-s)));break;case 3:if(t.shape===0)n=o=Math.max(se(A,e),se(A,e-s),se(A-r,e),se(A-r,e-s));else if(t.shape===1){const a=Math.max(Math.abs(e),Math.abs(e-s))/Math.max(Math.abs(A),Math.abs(A-r)),[c,g]=Ja(r,s,A,e,!1);n=se(c-A,(g-e)/a),o=a*n}break}return Array.isArray(t.size)&&(n=G(t.size[0],r),o=t.size.length===2?G(t.size[1],s):n),[n,o]},bg=(t,A)=>{let e=JA(180);const r=[];return te(A).forEach((s,n)=>{if(n===0){const a=s[0];if(a.type===20&&a.value==="to"){e=Ka(s);return}else if(Oa(a)){e=ut.parse(t,a);return}}const o=ts(t,s);r.push(o)}),{angle:e,stops:r,type:1}},rs=(t,A)=>{let e=JA(180);const r=[];return te(A).forEach((s,n)=>{if(n===0){const a=s[0];if(a.type===20&&["top","left","right","bottom"].indexOf(a.value)!==-1){e=Ka(s);return}else if(Oa(a)){e=(ut.parse(t,a)+JA(270))%JA(360);return}}const o=ts(t,s);r.push(o)}),{angle:e,stops:r,type:1}},Eg=(t,A)=>{const e=JA(180),r=[];let s=1;const n=0,o=3,a=[];return te(A).forEach((c,g)=>{const d=c[0];if(g===0){if(V(d)&&d.value==="linear"){s=1;return}else if(V(d)&&d.value==="radial"){s=2;return}}if(d.type===18){if(d.name==="from"){const B=Re.parse(t,d.values[0]);r.push({stop:CA,color:B})}else if(d.name==="to"){const B=Re.parse(t,d.values[0]);r.push({stop:de,color:B})}else if(d.name==="color-stop"){const B=d.values.filter(bA);if(B.length===2){const u=Re.parse(t,B[1]),f=B[0];mA(f)&&r.push({stop:{type:16,number:f.number*100,flags:f.flags},color:u})}}}}),s===1?{angle:(e+JA(180))%JA(360),stops:r,type:s}:{size:o,shape:n,stops:r,position:a,type:s}},Ya="closest-side",Za="farthest-side",$a="closest-corner",qa="farthest-corner",Ai="circle",ei="ellipse",ti="cover",ri="contain",vg=(t,A)=>{let e=0,r=3;const s=[],n=[];return te(A).forEach((o,a)=>{let c=!0;if(a===0){let g=!1;c=o.reduce((d,B)=>{if(g)if(V(B))switch(B.value){case"center":return n.push(Je),d;case"top":case"left":return n.push(CA),d;case"right":case"bottom":return n.push(de),d}else($(B)||Oe(B))&&n.push(B);else if(V(B))switch(B.value){case Ai:return e=0,!1;case ei:return e=1,!1;case"at":return g=!0,!1;case Ya:return r=0,!1;case ti:case Za:return r=1,!1;case ri:case $a:return r=2,!1;case qa:return r=3,!1}else if(Oe(B)||$(B))return Array.isArray(r)||(r=[]),r.push(B),!1;return d},c)}if(c){const g=ts(t,o);s.push(g)}}),{size:r,shape:e,stops:s,position:n,type:2}},ss=(t,A)=>{let e=0,r=3;const s=[],n=[];return te(A).forEach((o,a)=>{let c=!0;if(a===0?c=o.reduce((g,d)=>{if(V(d))switch(d.value){case"center":return n.push(Je),!1;case"top":case"left":return n.push(CA),!1;case"right":case"bottom":return n.push(de),!1}else if($(d)||Oe(d))return n.push(d),!1;return g},c):a===1&&(c=o.reduce((g,d)=>{if(V(d))switch(d.value){case Ai:return e=0,!1;case ei:return e=1,!1;case ri:case Ya:return r=0,!1;case Za:return r=1,!1;case $a:return r=2,!1;case ti:case qa:return r=3,!1}else if(Oe(d)||$(d))return Array.isArray(r)||(r=[]),r.push(d),!1;return g},c)),c){const g=ts(t,o);s.push(g)}}),{size:r,shape:e,stops:s,position:n,type:2}},Ig=t=>t.type===1,Hg=t=>t.type===2,Hn={name:"image",parse:(t,A)=>{if(A.type===22){const e={url:A.value,type:0};return t.cache.addImage(A.value),e}if(A.type===18){const e=si[A.name];if(typeof e>"u")throw new Error(`Attempting to parse an unsupported image function "${A.name}"`);return e(t,A.values)}throw new Error(`Unsupported image type ${A.type}`)}};function Sg(t){return!(t.type===20&&t.value==="none")&&(t.type!==18||!!si[t.name])}const si={"linear-gradient":bg,"-moz-linear-gradient":rs,"-ms-linear-gradient":rs,"-o-linear-gradient":rs,"-webkit-linear-gradient":rs,"radial-gradient":vg,"-moz-radial-gradient":ss,"-ms-radial-gradient":ss,"-o-radial-gradient":ss,"-webkit-radial-gradient":ss,"-webkit-gradient":Eg},Lg={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:(t,A)=>{if(A.length===0)return[];const e=A[0];return e.type===20&&e.value==="none"?[]:A.filter(r=>bA(r)&&Sg(r)).map(r=>Hn.parse(t,r))}},Tg={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:(t,A)=>A.map(e=>{if(V(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})},Og={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:(t,A)=>te(A).map(e=>e.map(r=>vB(r)?IB(r,0):$(r)?r:null).filter(r=>r!==null)).map(Ia)},Kg={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:(t,A)=>te(A).map(e=>e.filter(V).map(r=>r.value).join(" ")).map(Dg)},Dg=t=>{switch(t){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}};var ht;(function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"})(ht||(ht={}));const Rg={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:(t,A)=>te(A).map(e=>e.filter(kg))},kg=t=>V(t)||$(t),ns=t=>({name:`border-${t}-color`,initialValue:"transparent",prefix:!1,type:3,format:"color"}),Gg=ns("top"),Vg=ns("right"),Mg=ns("bottom"),Ng=ns("left"),os=t=>({name:`border-radius-${t}`,initialValue:"0 0",prefix:!1,type:1,parse:(A,e)=>Ia(e.filter($))}),_g=os("top-left"),Pg=os("top-right"),jg=os("bottom-right"),Wg=os("bottom-left"),as=t=>({name:`border-${t}-style`,initialValue:"solid",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}),Xg=as("top"),zg=as("right"),Jg=as("bottom"),Yg=as("left"),is=t=>({name:`border-${t}-width`,initialValue:"0",type:0,prefix:!1,parse:(A,e)=>le(e)?e.number:0}),Zg=is("top"),$g=is("right"),qg=is("bottom"),Au=is("left"),Sn={type:0},Ln=t=>{const[A]=t;return A?V(A)?A.value==="farthest-side"?"farthest-side":"closest-side":$(A)?A:"closest-side":"closest-side"},ni=t=>{let A=null,e=null;for(const r of t)if(V(r))switch(r.value){case"left":A=CA;break;case"right":A=de;break;case"top":e=CA;break;case"bottom":e=de;break;case"center":A===null?A=Je:e===null&&(e=Je);break}else $(r)&&(A===null?A=r:e===null&&(e=r));return{cx:A??Je,cy:e??Je}},eu=t=>{const A=[];for(const o of t)if(o.type!==31){if(V(o)&&o.value==="round")break;$(o)&&A.push(o)}const e=A[0]??CA,r=A[1]??e,s=A[2]??e,n=A[3]??r;return{type:1,top:e,right:r,bottom:s,left:n}},tu=t=>{const A=t.filter(Yr),e=A.findIndex(n=>Zt(n,"at")),r=e===-1?A:A.slice(0,e),s=e===-1?[]:A.slice(e+1);return{type:2,radius:Ln(r),...ni(s)}},ru=t=>{const A=t.filter(Yr),e=A.findIndex(n=>Zt(n,"at")),r=e===-1?A:A.slice(0,e),s=e===-1?[]:A.slice(e+1);return{type:3,rx:Ln(r.slice(0,1)),ry:Ln(r.slice(1,2)),...ni(s)}},su=t=>{const A=te(t),e=[];for(const r of A){if(r.length===1&&V(r[0]))continue;const s=r.filter($);s.length>=2&&e.push([s[0],s[1]])}return{type:4,points:e}},nu=t=>{const A=t.find(e=>e.type===0);return A?{type:5,d:A.value}:Sn},ou={name:"clip-path",initialValue:"none",prefix:!1,type:0,parse:(t,A)=>{if(V(A)&&A.value==="none")return Sn;if(A.type===18)switch(A.name){case"inset":return eu(A.values);case"circle":return tu(A.values);case"ellipse":return ru(A.values);case"polygon":return su(A.values);case"path":return nu(A.values)}return Sn}},au={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},iu={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:(t,A)=>A==="rtl"?1:0},cu={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:(t,A)=>A.filter(V).reduce((e,r)=>e|lu(r.value),0)},lu=t=>{switch(t){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},du={name:"float",initialValue:"none",prefix:!1,type:2,parse:(t,A)=>{switch(A){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Bu={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:(t,A)=>A.type===20&&A.value==="normal"?0:A.type===17||A.type===15?A.number:0};var cs;(function(t){t.NORMAL="normal",t.STRICT="strict"})(cs||(cs={}));const gu={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:(t,A)=>A==="strict"?cs.STRICT:cs.NORMAL},uu={name:"line-height",initialValue:"normal",prefix:!1,type:4},oi=(t,A)=>V(t)&&t.value==="normal"?1.2*A:t.type===17?A*t.number:$(t)?G(t,A):A,fu={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:(t,A)=>A.type===20&&A.value==="none"?null:Hn.parse(t,A)},hu={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:(t,A)=>A==="inside"?0:1},Tn={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:(t,A)=>{switch(A){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 52;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},ls=t=>({name:`margin-${t}`,initialValue:"0",prefix:!1,type:4}),pu=ls("top"),wu=ls("right"),mu=ls("bottom"),Cu=ls("left"),Qu={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:(t,A)=>A.filter(V).map(e=>{switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})},xu={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:(t,A)=>A==="break-word"?"break-word":"normal"},ds=t=>({name:`padding-${t}`,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}),Uu=ds("top"),Fu=ds("right"),yu=ds("bottom"),bu=ds("left"),Eu={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:(t,A)=>{switch(A){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},vu={name:"position",initialValue:"static",prefix:!1,type:2,parse:(t,A)=>{switch(A){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Iu={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:(t,A)=>A.length===1&&Zt(A[0],"none")?[]:te(A).map(e=>{const r={color:Be.TRANSPARENT,offsetX:CA,offsetY:CA,blur:CA};let s=0;for(let n=0;n<e.length;n++){const o=e[n];Oe(o)?(s===0?r.offsetX=o:s===1?r.offsetY=o:r.blur=o,s++):r.color=Re.parse(t,o)}return r})},Hu={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:(t,A)=>{switch(A){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Su={name:"transform",initialValue:"none",prefix:!0,type:0,parse:(t,A)=>{if(A.type===20&&A.value==="none")return null;if(A.type===18){const e=Lu[A.name];if(typeof e>"u")throw new Error(`Attempting to parse an unsupported transform function "${A.name}"`);return e(t,A.values)}return null}},Lu={matrix:(t,A)=>{const e=A.filter(r=>r.type===17).map(r=>r.number);return e.length===6?e:null},matrix3d:(t,A)=>{const e=A.filter(g=>g.type===17).map(g=>g.number),[r,s,{},{},n,o,{},{},{},{},{},{},a,c]=e;return e.length===16?[r,s,n,o,a,c]:null},rotate:(t,A)=>{if(A.length!==1)return null;const e=A[0];let r=0;if(e.type===17&&e.number===0)r=0;else if(e.type===15)r=ut.parse(t,e);else return null;const s=Math.cos(r),n=Math.sin(r);return[s,n,-n,s,0,0]}},ai={type:16,number:50,flags:dt},Tu=[ai,ai],Ou={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:(t,A)=>{const e=A.filter($);return e.length!==2?Tu:[e[0],e[1]]}},Ku={name:"rotate",initialValue:"none",prefix:!1,type:0,parse:(t,A)=>A.type===20&&A.value==="none"?null:A.type===17&&A.number===0?0:A.type===15?ut.parse(t,A)*180/Math.PI:null},Du={name:"visible",initialValue:"none",prefix:!1,type:2,parse:(t,A)=>{switch(A){case"hidden":return 1;case"collapse":return 2;default:return 0}}};var Ar;(function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"})(Ar||(Ar={}));const Ru={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:(t,A)=>{switch(A){case"break-all":return Ar.BREAK_ALL;case"keep-all":return Ar.KEEP_ALL;default:return Ar.NORMAL}}},ku={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:(t,A)=>{if(A.type===20)return{auto:!0,order:0};if(mA(A))return{auto:!1,order:A.number};throw new Error("Invalid z-index number parsed")}},ii={name:"time",parse:(t,A)=>{if(A.type===15)switch(A.unit.toLowerCase()){case"s":return 1e3*A.number;case"ms":return A.number}throw new Error("Unsupported time type")}},Gu={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:(t,A)=>mA(A)?A.number:1},Vu={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Mu={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:(t,A)=>A.filter(V).map(e=>{switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(e=>e!==0)},Nu={name:"text-decoration-style",initialValue:"solid",prefix:!1,type:2,parse:(t,A)=>{switch(A){case"double":return 1;case"dotted":return 2;case"dashed":return 3;case"wavy":return 4;default:return 0}}},_u={name:"text-decoration-thickness",initialValue:"auto",prefix:!1,type:0,parse:(t,A)=>{if(V(A))switch(A.value){case"auto":return"auto";case"from-font":return"from-font"}return le(A)?A.number:"auto"}},Pu={name:"text-underline-offset",initialValue:"auto",prefix:!1,type:0,parse:(t,A)=>V(A)&&A.value==="auto"?"auto":le(A)?A.number:"auto"},ju={name:"font-family",initialValue:"",prefix:!1,type:1,parse:(t,A)=>{const e=[],r=[];return A.forEach(s=>{switch(s.type){case 20:case 0:e.push(s.value);break;case 17:e.push(s.number.toString());break;case 4:r.push(e.join(" ")),e.length=0;break}}),e.length&&r.push(e.join(" ")),r.map(s=>s.indexOf(" ")===-1?s:`'${s}'`)}},Wu={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Xu={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:(t,A)=>mA(A)?A.number:V(A)&&A.value==="bold"?700:400},zu={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:(t,A)=>A.filter(V).map(e=>e.value)},Ju={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:(t,A)=>{switch(A){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},iA=(t,A)=>(t&A)!==0,Yu={name:"content",initialValue:"none",type:1,prefix:!1,parse:(t,A)=>{if(A.length===0)return[];const e=A[0];return e.type===20&&e.value==="none"?[]:A}},Zu={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:(t,A)=>{if(A.length===0)return null;const e=A[0];if(e.type===20&&e.value==="none")return null;const r=[],s=A.filter(Yr);for(let n=0;n<s.length;n++){const o=s[n],a=s[n+1];if(o.type===20){const c=a&&mA(a)?a.number:1;r.push({counter:o.value,increment:c})}}return r}},$u={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:(t,A)=>{if(A.length===0)return[];const e=[],r=A.filter(Yr);for(let s=0;s<r.length;s++){const n=r[s],o=r[s+1];if(V(n)&&n.value!=="none"){const a=o&&mA(o)?o.number:0;e.push({counter:n.value,reset:a})}}return e}},qu={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:(t,A)=>A.filter(le).map(e=>ii.parse(t,e))},Af={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:(t,A)=>{if(A.length===0)return null;const e=A[0];if(e.type===20&&e.value==="none")return null;const r=[],s=A.filter(FB);if(s.length%2!==0)return null;for(let n=0;n<s.length;n+=2){const o=s[n].value,a=s[n+1].value;r.push({open:o,close:a})}return r}},ci=(t,A,e)=>{if(!t)return"";const r=t[Math.min(A,t.length-1)];return r?e?r.open:r.close:""},ef={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:(t,A)=>A.length===1&&Zt(A[0],"none")?[]:te(A).map(e=>{const r={color:255,offsetX:CA,offsetY:CA,blur:CA,spread:CA,inset:!1};let s=0;for(let n=0;n<e.length;n++){const o=e[n];Zt(o,"inset")?r.inset=!0:Oe(o)?(s===0?r.offsetX=o:s===1?r.offsetY=o:s===2?r.blur=o:r.spread=o,s++):r.color=Re.parse(t,o)}return r})},tf={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:(t,A)=>{const e=[0,1,2],r=[];return A.filter(V).forEach(s=>{switch(s.value){case"stroke":r.push(1);break;case"fill":r.push(0);break;case"markers":r.push(2);break}}),e.forEach(s=>{r.indexOf(s)===-1&&r.push(s)}),r}},rf={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},sf={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:(t,A)=>le(A)?A.number:0},nf={name:"-webkit-line-clamp",initialValue:"none",prefix:!0,type:0,parse:(t,A)=>A.type===20&&A.value==="none"?0:A.type===17?Math.max(0,Math.floor(A.number)):0},of={name:"objectFit",initialValue:"fill",prefix:!1,type:1,parse:(t,A)=>A.filter(V).reduce((e,r)=>e|af(r.value),0)},af=t=>{switch(t){case"contain":return 2;case"cover":return 4;case"none":return 8;case"scale-down":return 16}return 0},cf={name:"text-overflow",initialValue:"clip",prefix:!1,type:2,parse:(t,A)=>A==="ellipsis"?1:0};var XA;(function(t){t[t.AUTO=0]="AUTO",t[t.CRISP_EDGES=1]="CRISP_EDGES",t[t.PIXELATED=2]="PIXELATED",t[t.SMOOTH=3]="SMOOTH"})(XA||(XA={}));const lf={name:"image-rendering",initialValue:"auto",prefix:!1,type:2,parse:(t,A)=>{switch(A.toLowerCase()){case"crisp-edges":case"-webkit-crisp-edges":case"-moz-crisp-edges":return XA.CRISP_EDGES;case"pixelated":case"-webkit-optimize-contrast":return XA.PIXELATED;case"smooth":case"high-quality":return XA.SMOOTH;default:return XA.AUTO}}};class df{constructor(A,e){this.animationDuration=b(A,qu,e.animationDuration),this.backgroundClip=b(A,Qg,e.backgroundClip),this.backgroundColor=b(A,xg,e.backgroundColor),this.backgroundImage=b(A,Lg,e.backgroundImage),this.backgroundOrigin=b(A,Tg,e.backgroundOrigin),this.backgroundPosition=b(A,Og,e.backgroundPosition),this.backgroundRepeat=b(A,Kg,e.backgroundRepeat),this.backgroundSize=b(A,Rg,e.backgroundSize),this.borderTopColor=b(A,Gg,e.borderTopColor),this.borderRightColor=b(A,Vg,e.borderRightColor),this.borderBottomColor=b(A,Mg,e.borderBottomColor),this.borderLeftColor=b(A,Ng,e.borderLeftColor),this.borderTopLeftRadius=b(A,_g,e.borderTopLeftRadius),this.borderTopRightRadius=b(A,Pg,e.borderTopRightRadius),this.borderBottomRightRadius=b(A,jg,e.borderBottomRightRadius),this.borderBottomLeftRadius=b(A,Wg,e.borderBottomLeftRadius),this.borderTopStyle=b(A,Xg,e.borderTopStyle),this.borderRightStyle=b(A,zg,e.borderRightStyle),this.borderBottomStyle=b(A,Jg,e.borderBottomStyle),this.borderLeftStyle=b(A,Yg,e.borderLeftStyle),this.borderTopWidth=b(A,Zg,e.borderTopWidth),this.borderRightWidth=b(A,$g,e.borderRightWidth),this.borderBottomWidth=b(A,qg,e.borderBottomWidth),this.borderLeftWidth=b(A,Au,e.borderLeftWidth),this.boxShadow=b(A,ef,e.boxShadow),this.clipPath=b(A,ou,e.clipPath),this.color=b(A,au,e.color),this.direction=b(A,iu,e.direction),this.display=b(A,cu,e.display),this.float=b(A,du,e.cssFloat),this.fontFamily=b(A,ju,e.fontFamily),this.fontSize=b(A,Wu,e.fontSize),this.fontStyle=b(A,Ju,e.fontStyle),this.fontVariant=b(A,zu,e.fontVariant),this.fontWeight=b(A,Xu,e.fontWeight),this.letterSpacing=b(A,Bu,e.letterSpacing),this.lineBreak=b(A,gu,e.lineBreak),this.lineHeight=b(A,uu,e.lineHeight),this.listStyleImage=b(A,fu,e.listStyleImage),this.listStylePosition=b(A,hu,e.listStylePosition),this.listStyleType=b(A,Tn,e.listStyleType),this.marginTop=b(A,pu,e.marginTop),this.marginRight=b(A,wu,e.marginRight),this.marginBottom=b(A,mu,e.marginBottom),this.marginLeft=b(A,Cu,e.marginLeft),this.opacity=b(A,Gu,e.opacity);const r=b(A,Qu,e.overflow);this.overflowX=r[0],this.overflowY=r[r.length>1?1:0],this.overflowWrap=b(A,xu,e.overflowWrap),this.paddingTop=b(A,Uu,e.paddingTop),this.paddingRight=b(A,Fu,e.paddingRight),this.paddingBottom=b(A,yu,e.paddingBottom),this.paddingLeft=b(A,bu,e.paddingLeft),this.paintOrder=b(A,tf,e.paintOrder),this.position=b(A,vu,e.position),this.textAlign=b(A,Eu,e.textAlign),this.textDecorationColor=b(A,Vu,e.textDecorationColor??e.color),this.textDecorationLine=b(A,Mu,e.textDecorationLine??e.textDecoration),this.textDecorationStyle=b(A,Nu,e.textDecorationStyle),this.textDecorationThickness=b(A,_u,e.textDecorationThickness),this.textUnderlineOffset=b(A,Pu,e.textUnderlineOffset),this.textShadow=b(A,Iu,e.textShadow),this.textTransform=b(A,Hu,e.textTransform),this.textOverflow=b(A,cf,e.textOverflow),this.transform=b(A,Su,e.transform),this.transformOrigin=b(A,Ou,e.transformOrigin),this.rotate=b(A,Ku,e.rotate),this.visibility=b(A,Du,e.visibility),this.webkitTextStrokeColor=b(A,rf,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=b(A,sf,e.webkitTextStrokeWidth),this.webkitLineClamp=b(A,nf,e.webkitLineClamp),this.wordBreak=b(A,Ru,e.wordBreak),this.zIndex=b(A,ku,e.zIndex),this.objectFit=b(A,of,e.objectFit),this.imageRendering=b(A,lf,e.imageRendering)}isVisible(){return this.display>0&&this.opacity>0&&this.visibility===0}isTransparent(){return Ke(this.backgroundColor)}isTransformed(){return this.transform!==null||this.rotate!==null}isPositioned(){return this.position!==0}isPositionedWithZIndex(){return this.isPositioned()&&!this.zIndex.auto}isFloating(){return this.float!==0}isInlineLevel(){return iA(this.display,4)||iA(this.display,33554432)||iA(this.display,268435456)||iA(this.display,536870912)||iA(this.display,67108864)||iA(this.display,134217728)}}class Bf{constructor(A,e){this.content=b(A,Yu,e.content),this.quotes=b(A,Af,e.quotes)}}class li{constructor(A,e){this.counterIncrement=b(A,Zu,e.counterIncrement),this.counterReset=b(A,$u,e.counterReset)}}const b=(t,A,e)=>{const r=new va,s=e!==null&&typeof e<"u"?e.toString():A.initialValue;r.write(s);const n=new gt(r.read());switch(A.type){case 2:const o=n.parseComponentValue();return A.parse(t,V(o)?o.value:A.initialValue);case 0:return A.parse(t,n.parseComponentValue());case 1:return A.parse(t,n.parseComponentValues());case 4:return n.parseComponentValue();case 3:switch(A.format){case"angle":return ut.parse(t,n.parseComponentValue());case"color":return Re.parse(t,n.parseComponentValue());case"image":return Hn.parse(t,n.parseComponentValue());case"length":const a=n.parseComponentValue();return Oe(a)?a:CA;case"length-percentage":const c=n.parseComponentValue();return $(c)?c:CA;case"time":return ii.parse(t,n.parseComponentValue())}break}},xe=t=>t.nodeType===Node.ELEMENT_NODE,di=t=>t.nodeType===Node.TEXT_NODE,pt=t=>typeof t.className=="object",er=t=>xe(t)&&typeof t.style<"u"&&!pt(t),gf=t=>t.tagName==="LI",uf=t=>t.tagName==="OL",Bi=t=>!pt(t)&&t.tagName.indexOf("-")>0,ff="data-html2canvas-debug",hf=t=>{if(typeof t.getAttribute!="function")return 0;switch(t.getAttribute(ff)){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},On=(t,A)=>{const e=hf(t);return e===1||A===e};class gi{static normalizeElement(A,e){const r={};return er(A)&&(e.animationDuration.some(s=>s>0)&&(r.animationDuration=A.style.animationDuration,A.style.animationDuration="0s"),e.transform!==null&&(r.transform=A.style.transform,A.style.transform="translate(0, 0)"),e.rotate!==null&&(r.rotate=A.style.rotate,A.style.rotate="0deg",r.transform===void 0&&(r.transform=A.style.transform,A.style.transform="translate(0, 0)"))),r}static restoreElement(A,e){er(A)&&(e.animationDuration!==void 0&&(A.style.animationDuration=e.animationDuration),e.transform!==void 0&&(A.style.transform=e.transform),e.rotate!==void 0&&(A.style.rotate=e.rotate))}}class ge{constructor(A,e,r={}){if(this.context=A,this.textNodes=[],this.elements=[],this.flags=0,On(e,3))debugger;this.styles=new df(A,A.config.window.getComputedStyle(e,null)),r.normalizeDom!==!1&&er(e)&&(this.originalStyles=gi.normalizeElement(e,this.styles),this.originalElement=e),this.bounds=Hr(this.context,e),On(e,4)&&(this.flags|=16)}restore(){this.originalStyles&&this.originalElement&&(gi.restoreElement(this.originalElement,this.originalStyles),this.originalStyles=void 0,this.originalElement=void 0)}restoreTree(){this.restore();for(const A of this.elements)A.restoreTree()}}for(var pf="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",ui="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tr=typeof Uint8Array>"u"?[]:new Uint8Array(256),Bs=0;Bs<ui.length;Bs++)tr[ui.charCodeAt(Bs)]=Bs;for(var wf=function(t){var A=t.length*.75,e=t.length,r,s=0,n,o,a,c;t[t.length-1]==="="&&(A--,t[t.length-2]==="="&&A--);var g=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),d=Array.isArray(g)?g:new Uint8Array(g);for(r=0;r<e;r+=4)n=tr[t.charCodeAt(r)],o=tr[t.charCodeAt(r+1)],a=tr[t.charCodeAt(r+2)],c=tr[t.charCodeAt(r+3)],d[s++]=n<<2|o>>4,d[s++]=(o&15)<<4|a>>2,d[s++]=(a&3)<<6|c&63;return g},mf=function(t){for(var A=t.length,e=[],r=0;r<A;r+=2)e.push(t[r+1]<<8|t[r]);return e},Cf=function(t){for(var A=t.length,e=[],r=0;r<A;r+=4)e.push(t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]);return e},Ze=5,Kn=11,Dn=2,Qf=Kn-Ze,fi=65536>>Ze,xf=1<<Ze,Rn=xf-1,Uf=1024>>Ze,Ff=fi+Uf,yf=Ff,bf=32,Ef=yf+bf,vf=65536>>Kn,If=1<<Qf,Hf=If-1,hi=function(t,A,e){return t.slice?t.slice(A,e):new Uint16Array(Array.prototype.slice.call(t,A,e))},Sf=function(t,A,e){return t.slice?t.slice(A,e):new Uint32Array(Array.prototype.slice.call(t,A,e))},Lf=function(t,A){var e=wf(t),r=Array.isArray(e)?Cf(e):new Uint32Array(e),s=Array.isArray(e)?mf(e):new Uint16Array(e),n=24,o=hi(s,n/2,r[4]/2),a=r[5]===2?hi(s,(n+r[4])/2):Sf(r,Math.ceil((n+r[4])/4));return new Tf(r[0],r[1],r[2],r[3],o,a)},Tf=(function(){function t(A,e,r,s,n,o){this.initialValue=A,this.errorValue=e,this.highStart=r,this.highValueIndex=s,this.index=n,this.data=o}return t.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=this.index[A>>Ze],e=(e<<Dn)+(A&Rn),this.data[e];if(A<=65535)return e=this.index[fi+(A-55296>>Ze)],e=(e<<Dn)+(A&Rn),this.data[e];if(A<this.highStart)return e=Ef-vf+(A>>Kn),e=this.index[e],e+=A>>Ze&Hf,e=this.index[e],e=(e<<Dn)+(A&Rn),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t})(),pi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Of=typeof Uint8Array>"u"?[]:new Uint8Array(256),gs=0;gs<pi.length;gs++)Of[pi.charCodeAt(gs)]=gs;var Kf=1,kn=2,Gn=3,wi=4,mi=5,Df=7,Ci=8,Vn=9,Mn=10,Qi=11,xi=12,Ui=13,Fi=14,Nn=15,Rf=function(t){for(var A=[],e=0,r=t.length;e<r;){var s=t.charCodeAt(e++);if(s>=55296&&s<=56319&&e<r){var n=t.charCodeAt(e++);(n&64512)===56320?A.push(((s&1023)<<10)+(n&1023)+65536):(A.push(s),e--)}else A.push(s)}return A},kf=function(){for(var t=[],A=0;A<arguments.length;A++)t[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var e=t.length;if(!e)return"";for(var r=[],s=-1,n="";++s<e;){var o=t[s];o<=65535?r.push(o):(o-=65536,r.push((o>>10)+55296,o%1024+56320)),(s+1===e||r.length>16384)&&(n+=String.fromCharCode.apply(String,r),r.length=0)}return n},Gf=Lf(pf),YA="×",_n="÷",Vf=function(t){return Gf.get(t)},Mf=function(t,A,e){var r=e-2,s=A[r],n=A[e-1],o=A[e];if(n===kn&&o===Gn)return YA;if(n===kn||n===Gn||n===wi||o===kn||o===Gn||o===wi)return _n;if(n===Ci&&[Ci,Vn,Qi,xi].indexOf(o)!==-1||(n===Qi||n===Vn)&&(o===Vn||o===Mn)||(n===xi||n===Mn)&&o===Mn||o===Ui||o===mi||o===Df||n===Kf)return YA;if(n===Ui&&o===Fi){for(;s===mi;)s=A[--r];if(s===Fi)return YA}if(n===Nn&&o===Nn){for(var a=0;s===Nn;)a++,s=A[--r];if(a%2===0)return YA}return _n},Nf=function(t){var A=Rf(t),e=A.length,r=0,s=0,n=A.map(Vf);return{next:function(){if(r>=e)return{done:!0,value:null};for(var o=YA;r<e&&(o=Mf(A,n,++r))===YA;);if(o!==YA||r===e){var a=kf.apply(null,A.slice(s,r));return s=r,{value:a,done:!1}}return{done:!0,value:null}}}},_f=function(t){for(var A=Nf(t),e=[],r;!(r=A.next()).done;)r.value&&e.push(r.value.slice());return e};const Pf=t=>{if(t.createRange){const e=t.createRange();if(e.getBoundingClientRect){const r=t.createElement("boundtest");r.style.height="123px",r.style.display="block",t.body.appendChild(r),e.selectNode(r);const s=e.getBoundingClientRect(),n=Math.round(s.height);if(t.body.removeChild(r),n===123)return!0}}return!1},jf=t=>{const A=t.createElement("boundtest");A.style.width="50px",A.style.display="block",A.style.fontSize="12px",A.style.letterSpacing="0px",A.style.wordSpacing="0px",t.body.appendChild(A);const e=t.createRange();A.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";const r=A.firstChild,s=Sr(r.data).map(c=>pA(c));let n=0,o={};const a=s.every((c,g)=>{e.setStart(r,n),e.setEnd(r,n+c.length);const d=e.getBoundingClientRect();n+=c.length;const B=d.x>o.x||d.y>o.y;return o=d,g===0?!0:B});return t.body.removeChild(A),a},Wf=()=>typeof new Image().crossOrigin<"u",Xf=()=>typeof new XMLHttpRequest().responseType=="string",zf=t=>{const A=new Image,e=t.createElement("canvas"),r=e.getContext("2d");if(!r)return!1;A.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(A,0,0),e.toDataURL()}catch{return!1}return!0},yi=t=>t[0]===0&&t[1]===255&&t[2]===0&&t[3]===255,Jf=t=>{const A=t.createElement("canvas"),e=100;A.width=e,A.height=e;const r=A.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,e,e);const s=new Image,n=A.toDataURL();s.src=n;const o=Pn(e,e,0,0,s);return r.fillStyle="red",r.fillRect(0,0,e,e),bi(o).then(a=>{r.drawImage(a,0,0);const c=r.getImageData(0,0,e,e).data;r.fillStyle="red",r.fillRect(0,0,e,e);const g=t.createElement("div");return g.style.backgroundImage=`url(${n})`,g.style.height=`${e}px`,yi(c)?bi(Pn(e,e,0,0,g)):Promise.reject(!1)}).then(a=>(r.drawImage(a,0,0),yi(r.getImageData(0,0,e,e).data))).catch(()=>!1)},Pn=(t,A,e,r,s)=>{const n="http://www.w3.org/2000/svg",o=document.createElementNS(n,"svg"),a=document.createElementNS(n,"foreignObject");return o.setAttributeNS(null,"width",t.toString()),o.setAttributeNS(null,"height",A.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",e.toString()),a.setAttributeNS(null,"y",r.toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(a),a.appendChild(s),o},bi=t=>new Promise((A,e)=>{const r=new Image;r.onload=()=>A(r),r.onerror=e,r.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(new XMLSerializer().serializeToString(t))}`}),EA={get SUPPORT_RANGE_BOUNDS(){const t=Pf(document);return Object.defineProperty(EA,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){const t=EA.SUPPORT_RANGE_BOUNDS&&jf(document);return Object.defineProperty(EA,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){const t=zf(document);return Object.defineProperty(EA,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){const t=typeof Array.from=="function"&&typeof window.fetch=="function"?Jf(document):Promise.resolve(!1);return Object.defineProperty(EA,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){const t=Wf();return Object.defineProperty(EA,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){const t=Xf();return Object.defineProperty(EA,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){const t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(EA,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){const t=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(EA,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}};class $e{constructor(A,e){this.text=A,this.bounds=e}}const Yf=(t,A,e,r)=>{const s=qf(A,e),n=[];let o=0;return s.forEach(a=>{if(e.textDecorationLine.length||a.trim().length>0)if(EA.SUPPORT_RANGE_BOUNDS){const c=Ei(r,o,a.length).getClientRects();if(c.length>1){const g=us(a);let d=0;g.forEach(B=>{n.push(new $e(B,HA.fromDOMRectList(t,Ei(r,d+o,B.length).getClientRects()))),d+=B.length})}else n.push(new $e(a,HA.fromDOMRectList(t,c)))}else{const c=r.splitText(a.length);n.push(new $e(a,Zf(t,r))),r=c}else EA.SUPPORT_RANGE_BOUNDS||(r=r.splitText(a.length));o+=a.length}),n},Zf=(t,A)=>{const e=A.ownerDocument;if(e){const r=e.createElement("html2canvaswrapper");r.appendChild(A.cloneNode(!0));const s=A.parentNode;if(s){s.replaceChild(r,A);const n=Hr(t,r);return r.firstChild&&s.replaceChild(r.firstChild,r),n}}return HA.EMPTY},Ei=(t,A,e)=>{const r=t.ownerDocument;if(!r)throw new Error("Node has no owner document");const s=r.createRange();return s.setStart(t,A),s.setEnd(t,A+e),s},us=t=>{if(EA.SUPPORT_NATIVE_TEXT_SEGMENTATION){const A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(A.segment(t)).map(e=>e.segment)}return _f(t)},$f=(t,A)=>{if(EA.SUPPORT_NATIVE_TEXT_SEGMENTATION){const e=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(e.segment(t)).map(r=>r.segment)}return eh(t,A)},qf=(t,A)=>A.letterSpacing!==0?us(t):$f(t,A),Ah=[32,160,4961,65792,65793,4153,4241],eh=(t,A)=>{const e=wd(t,{lineBreak:A.lineBreak,wordBreak:A.overflowWrap==="break-word"?"break-word":A.wordBreak}),r=[];let s;for(;!(s=e.next()).done;)if(s.value){const n=s.value.slice(),o=Sr(n);let a="";o.forEach(c=>{Ah.indexOf(c)===-1?a+=pA(c):(a.length&&r.push(a),r.push(pA(c)),a="")}),a.length&&r.push(a)}return r};class th{constructor(A,e,r){this.text=rh(e.data,r.textTransform),this.textBounds=Yf(A,this.text,r,e)}}const rh=(t,A)=>{switch(A){case 1:return t.toLowerCase();case 3:return t.replace(sh,nh);case 2:return t.toUpperCase();default:return t}},sh=/(^|\s|:|-|\(|\))([a-z])/g,nh=(t,A,e)=>t.length>0?A+e.toUpperCase():t;class vi extends ge{constructor(A,e){super(A,e),this.src=e.currentSrc||e.src,this.intrinsicWidth=e.naturalWidth,this.intrinsicHeight=e.naturalHeight,this.context.cache.addImage(this.src)}}class Ii extends ge{constructor(A,e){super(A,e),this.canvas=e,this.intrinsicWidth=e.width,this.intrinsicHeight=e.height}}class Hi extends ge{constructor(A,e){super(A,e);const r=new XMLSerializer,s=Hr(A,e);e.setAttribute("width",`${s.width}px`),e.setAttribute("height",`${s.height}px`),this.svg=`data:image/svg+xml,${encodeURIComponent(r.serializeToString(e))}`,this.intrinsicWidth=e.width.baseVal.value,this.intrinsicHeight=e.height.baseVal.value,this.context.cache.addImage(this.svg)}}class Si extends ge{constructor(A,e){super(A,e),this.value=e.value}}class jn extends ge{constructor(A,e){super(A,e),this.start=e.start,this.reversed=typeof e.reversed=="boolean"&&e.reversed===!0}}const oh=[{type:15,flags:0,unit:"px",number:3}],ah=[{type:16,flags:0,number:50}],ih=t=>t.width>t.height?new HA(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width<t.height?new HA(t.left,t.top+(t.height-t.width)/2,t.width,t.width):t,ch=t=>{const A=t.type===dh?new Array(t.value.length+1).join("•"):t.value;return A.length===0?t.placeholder||"":A},lh=t=>t.value.length===0&&!!t.placeholder,fs="checkbox",hs="radio",dh="password",Li=707406591,Bh=1970632191;class rr extends ge{constructor(A,e){switch(super(A,e),this.type=e.type.toLowerCase(),this.checked=e.checked,this.value=ch(e),this.isPlaceholder=lh(e),(this.type===fs||this.type===hs)&&(this.styles.backgroundColor=3739148031,this.styles.borderTopColor=this.styles.borderRightColor=this.styles.borderBottomColor=this.styles.borderLeftColor=2779096575,this.styles.borderTopWidth=this.styles.borderRightWidth=this.styles.borderBottomWidth=this.styles.borderLeftWidth=1,this.styles.borderTopStyle=this.styles.borderRightStyle=this.styles.borderBottomStyle=this.styles.borderLeftStyle=1,this.styles.backgroundClip=[0],this.styles.backgroundOrigin=[0],this.bounds=ih(this.bounds)),this.type){case fs:this.styles.borderTopRightRadius=this.styles.borderTopLeftRadius=this.styles.borderBottomRightRadius=this.styles.borderBottomLeftRadius=oh;break;case hs:this.styles.borderTopRightRadius=this.styles.borderTopLeftRadius=this.styles.borderBottomRightRadius=this.styles.borderBottomLeftRadius=ah;break}}}class Ti extends ge{constructor(A,e){super(A,e);const r=e.options[e.selectedIndex||0];this.value=r&&r.text||""}}class Oi extends ge{constructor(A,e){super(A,e),this.value=e.value}}class Ki extends ge{constructor(A,e,r){super(A,e),this.src=e.src,this.width=parseInt(e.width,10)||0,this.height=parseInt(e.height,10)||0,this.backgroundColor=this.styles.backgroundColor,this.parseTreeFn=r;try{if(e.contentWindow&&e.contentWindow.document&&e.contentWindow.document.documentElement&&this.parseTreeFn){this.tree=this.parseTreeFn(A,e.contentWindow.document.documentElement);const s=e.contentWindow.document.documentElement?ft(A,getComputedStyle(e.contentWindow.document.documentElement).backgroundColor):Be.TRANSPARENT,n=e.contentWindow.document.body?ft(A,getComputedStyle(e.contentWindow.document.body).backgroundColor):Be.TRANSPARENT;this.backgroundColor=Ke(s)?Ke(n)?this.styles.backgroundColor:n:s}}catch{}}}const gh=["OL","UL","MENU"],ps=(t,A,e,r)=>{for(let s=A.firstChild,n;s;s=n)if(n=s.nextSibling,di(s)&&s.data.length>0)e.textNodes.push(new th(t,s,e.styles));else if(xe(s))if(sr(s)&&s.assignedNodes)s.assignedNodes().forEach(o=>ps(t,o,e,r));else{const o=Di(t,s);o.styles.isVisible()&&(uh(s,o,r)?o.flags|=4:fh(o.styles)&&(o.flags|=2),gh.indexOf(s.tagName)!==-1&&(o.flags|=8),e.elements.push(o),s.slot,s.shadowRoot?ps(t,s.shadowRoot,o,r):!ws(s)&&!ki(s)&&!ms(s)&&ps(t,s,o,r))}},Di=(t,A)=>Xn(A)?new vi(t,A):Gi(A)?new Ii(t,A):ki(A)?new Hi(t,A):gf(A)?new Si(t,A):uf(A)?new jn(t,A):hh(A)?new rr(t,A):ms(A)?new Ti(t,A):ws(A)?new Oi(t,A):Mi(A)?new Ki(t,A,Ri):new ge(t,A),Ri=(t,A)=>{const e=Di(t,A);return e.flags|=4,ps(t,A,e,e),e},uh=(t,A,e)=>A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||Wn(t)&&e.styles.isTransparent(),fh=t=>t.isPositioned()||t.isFloating()?!0:iA(t.display,268435456)||iA(t.display,33554432)||iA(t.display,536870912)||iA(t.display,134217728),hh=t=>t.tagName==="INPUT",ph=t=>t.tagName==="HTML",ki=t=>t.tagName==="svg",Wn=t=>t.tagName==="BODY",Gi=t=>t.tagName==="CANVAS",Vi=t=>t.tagName==="VIDEO",Xn=t=>t.tagName==="IMG",Mi=t=>t.tagName==="IFRAME",zn=t=>t.tagName==="STYLE",Ni=t=>t.tagName==="SCRIPT",ws=t=>t.tagName==="TEXTAREA",ms=t=>t.tagName==="SELECT",sr=t=>t.tagName==="SLOT";class wh{constructor(){this.counters={}}getCounterValue(A){const e=this.counters[A];return e&&e.length?e[e.length-1]:1}getCounterValues(A){const e=this.counters[A];return e||[]}pop(A){A.forEach(e=>this.counters[e].pop())}parse(A){const e=A.counterIncrement,r=A.counterReset;let s=!0;e!==null&&e.forEach(o=>{const a=this.counters[o.counter];a&&o.increment!==0&&(s=!1,a.length||a.push(1),a[Math.max(0,a.length-1)]+=o.increment)});const n=[];return s&&r.forEach(o=>{let a=this.counters[o.counter];n.push(o.counter),a||(a=this.counters[o.counter]=[]),a.push(o.reset)}),n}}const _i={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Pi={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},mh={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Ch={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},wt=(t,A,e,r,s,n)=>t<A||t>e?or(t,s,n.length>0):r.integers.reduce((o,a,c)=>{for(;t>=a;)t-=a,o+=r.values[c];return o},"")+n,ji=(t,A,e,r)=>{let s="";do e||t--,s=r(t)+s,t/=A;while(t*A>=A);return s},wA=(t,A,e,r,s)=>{const n=e-A+1;return(t<0?"-":"")+(ji(Math.abs(t),n,r,o=>pA(Math.floor(o%n)+A))+s)},qe=(t,A,e=". ")=>{const r=A.length;return ji(Math.abs(t),r,!1,s=>A[Math.floor(s%r)])+e},mt=1,ke=2,Ge=4,nr=8,Ue=(t,A,e,r,s,n)=>{if(t<-9999||t>9999)return or(t,4,s.length>0);let o=Math.abs(t),a=s;if(o===0)return A[0]+a;for(let c=0;o>0&&c<=4;c++){const g=o%10;g===0&&iA(n,mt)&&a!==""?a=A[g]+a:g>1||g===1&&c===0||g===1&&c===1&&iA(n,ke)||g===1&&c===1&&iA(n,Ge)&&t>100||g===1&&c>1&&iA(n,nr)?a=A[g]+(c>0?e[c-1]:"")+a:g===1&&c>0&&(a=e[c-1]+a),o=Math.floor(o/10)}return(t<0?r:"")+a},Wi="十百千萬",Xi="拾佰仟萬",zi="マイナス",Jn="마이너스",or=(t,A,e)=>{const r=e?". ":"",s=e?"、":"",n=e?", ":"",o=e?" ":"";switch(A){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:const a=wA(t,48,57,!0,r);return a.length<4?`0${a}`:a;case 4:return qe(t,"〇一二三四五六七八九",s);case 6:return wt(t,1,3999,_i,3,r).toLowerCase();case 7:return wt(t,1,3999,_i,3,r);case 8:return wA(t,945,969,!1,r);case 9:return wA(t,97,122,!1,r);case 10:return wA(t,65,90,!1,r);case 11:return wA(t,1632,1641,!0,r);case 12:case 49:return wt(t,1,9999,Pi,3,r);case 35:return wt(t,1,9999,Pi,3,r).toLowerCase();case 13:return wA(t,2534,2543,!0,r);case 14:case 30:return wA(t,6112,6121,!0,r);case 15:return qe(t,"子丑寅卯辰巳午未申酉戌亥",s);case 16:return qe(t,"甲乙丙丁戊己庚辛壬癸",s);case 17:case 48:return Ue(t,"零一二三四五六七八九",Wi,"負",s,ke|Ge|nr);case 47:return Ue(t,"零壹貳參肆伍陸柒捌玖",Xi,"負",s,mt|ke|Ge|nr);case 42:return Ue(t,"零一二三四五六七八九",Wi,"负",s,ke|Ge|nr);case 41:return Ue(t,"零壹贰叁肆伍陆柒捌玖",Xi,"负",s,mt|ke|Ge|nr);case 26:return Ue(t,"〇一二三四五六七八九","十百千万",zi,s,0);case 25:return Ue(t,"零壱弐参四伍六七八九","拾百千万",zi,s,mt|ke|Ge);case 31:return Ue(t,"영일이삼사오육칠팔구","십백천만",Jn,n,mt|ke|Ge);case 33:return Ue(t,"零一二三四五六七八九","十百千萬",Jn,n,0);case 32:return Ue(t,"零壹貳參四五六七八九","拾百千",Jn,n,mt|ke|Ge);case 18:return wA(t,2406,2415,!0,r);case 20:return wt(t,1,19999,Ch,3,r);case 21:return wA(t,2790,2799,!0,r);case 22:return wA(t,2662,2671,!0,r);case 52:return wt(t,1,10999,mh,3,r);case 23:return qe(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return qe(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return wA(t,3302,3311,!0,r);case 28:return qe(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",s);case 29:return qe(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",s);case 34:return wA(t,3792,3801,!0,r);case 37:return wA(t,6160,6169,!0,r);case 38:return wA(t,4160,4169,!0,r);case 39:return wA(t,2918,2927,!0,r);case 40:return wA(t,1776,1785,!0,r);case 43:return wA(t,3046,3055,!0,r);case 44:return wA(t,3174,3183,!0,r);case 45:return wA(t,3664,3673,!0,r);case 46:return wA(t,3872,3881,!0,r);default:return wA(t,48,57,!0,r)}},Yn="data-html2canvas-ignore",Qh=t=>{let A=t;for(;A;){if(A.parentNode&&A.parentNode.host)return A.parentNode;const e=A.getRootNode();if(e&&e!==A.ownerDocument&&e.host)return e;A=A.parentNode}return null};class Ji{constructor(A,e,r){if(this.context=A,this.options=r,this.scrolledElements=[],this.referenceElement=e,this.counters=new wh,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");if(!this.options.iframeContainer){const s=Qh(e);s&&(this.options.iframeContainer=s)}this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}toIFrame(A,e){const r=xh(A,e,this.options.iframeContainer);if(!r.contentWindow)throw new Error("Unable to find iframe window");const s=A.defaultView.pageXOffset,n=A.defaultView.pageYOffset,o=r.contentWindow,a=o.document,c=yh(r).then(async()=>{this.scrolledElements.forEach(Ih),o&&(o.scrollTo(e.left,e.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(o.scrollY!==e.top||o.scrollX!==e.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(o.scrollX-e.left,o.scrollY-e.top,0,0)));const u=this.options.onclone,f=this.clonedReferenceElement;if(typeof f>"u")throw new Error(`Error finding the ${this.referenceElement.nodeName} in the cloned document`);return a.fonts&&a.fonts.ready&&await a.fonts.ready,/(AppleWebKit)/g.test(navigator.userAgent)&&await Fh(a),typeof u=="function"?Promise.resolve().then(()=>u(a,f)).then(()=>r):r}),g=a.baseURI;a.open();const d=Eh(document.doctype)+"<html></html>";try{const u=this.referenceElement.ownerDocument?.defaultView,f=u&&u.trustedTypes;let w=f?.getPolicy?.("html2canvas-pro");!w&&f&&(w=f.createPolicy("html2canvas-pro",{createHTML:C=>C})),w?a.write(w.createHTML(d)):a.write(d)}catch{a.write(d)}vh(this.referenceElement.ownerDocument,s,n),a.close();const B=a.adoptNode(this.documentElement);return Oh(B,g),a.replaceChild(B,a.documentElement),c}createElementClone(A){if(On(A,2))debugger;if(Gi(A))return this.createCanvasClone(A);if(Vi(A))return this.createVideoClone(A);if(zn(A))return this.createStyleClone(A);const e=A.cloneNode(!1);return Xn(e)&&(Xn(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),e.loading==="lazy"&&(e.loading="eager")),Bi(e)&&!pt(e)?this.createCustomElementClone(e):e}createCustomElementClone(A){const e=document.createElement("div");if(e.className=A.className,Zn(A.style,e),A.shadowRoot)try{e.attachShadow({mode:"open"})}catch(r){this.context.logger.error("Failed to attach shadow root to custom element clone:",r)}return e}createStyleClone(A){try{const r=A.sheet;if(r&&r.cssRules){const s=[].slice.call(r.cssRules,0).reduce((o,a)=>a&&typeof a.cssText=="string"?o+a.cssText:o,""),n=A.cloneNode(!1);return n.textContent=s,this.options.cspNonce&&(n.nonce=this.options.cspNonce),n}}catch(r){if(this.context.logger.error("Unable to access cssRules property",r),r.name!=="SecurityError")throw r}const e=A.cloneNode(!1);return this.options.cspNonce&&(e.nonce=this.options.cspNonce),e}createCanvasClone(A){if(this.options.inlineImages&&A.ownerDocument){const r=A.ownerDocument.createElement("img");try{return r.src=A.toDataURL(),r}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}const e=A.cloneNode(!1);try{e.width=A.width,e.height=A.height;const r=A.getContext("2d"),s=e.getContext("2d",{willReadFrequently:!0});if(s)if(!this.options.allowTaint&&r)s.putImageData(r.getImageData(0,0,A.width,A.height),0,0);else{const n=A.getContext("webgl2")??A.getContext("webgl");n&&n.getContextAttributes()?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A),s.drawImage(A,0,0)}return e}catch{this.context.logger.info("Unable to clone canvas as it is tainted",A)}return e}createVideoClone(A){const e=A.ownerDocument.createElement("canvas");e.width=A.offsetWidth,e.height=A.offsetHeight;const r=e.getContext("2d");try{return r&&(r.drawImage(A,0,0,e.width,e.height),this.options.allowTaint||r.getImageData(0,0,e.width,e.height)),e}catch{this.context.logger.info("Unable to clone video as it is tainted",A)}const s=A.ownerDocument.createElement("canvas");return s.width=A.offsetWidth,s.height=A.offsetHeight,s}appendChildNode(A,e,r){(!xe(e)||!Ni(e)&&!e.hasAttribute(Yn)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(e)))&&(!this.options.copyStyles||!xe(e)||!zn(e))&&A.appendChild(this.cloneNode(e,r))}shouldCloneChild(A){return!xe(A)||!Ni(A)&&!A.hasAttribute(Yn)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(A))}shouldCloneStyleElement(A){return!this.options.copyStyles||!xe(A)||!zn(A)}safeAppendClonedChild(A,e,r){this.shouldCloneChild(e)&&this.shouldCloneStyleElement(e)&&A.appendChild(this.cloneNode(e,r))}cloneAssignedNodes(A,e,r){A.forEach(s=>{this.safeAppendClonedChild(e,s,r)})}cloneSlotFallbackContent(A,e,r){for(let s=A.firstChild;s;s=s.nextSibling)this.safeAppendClonedChild(e,s,r)}cloneSlotElement(A,e,r){if(!sr(A))return;const s=A;if(typeof s.assignedNodes!="function"){this.context.logger.warn("HTMLSlotElement.assignedNodes is not available",A),this.cloneSlotFallbackContent(A,e,r);return}const n=s.assignedNodes();if(!n||!Array.isArray(n)){this.context.logger.warn("assignedNodes() did not return a valid array",A),this.cloneSlotFallbackContent(A,e,r);return}n.length>0?this.cloneAssignedNodes(n,e,r):this.cloneSlotFallbackContent(A,e,r)}cloneShadowDOMChildren(A,e,r){for(let s=A.firstChild;s;s=s.nextSibling)xe(s)&&sr(s)?this.cloneSlotElement(s,e,r):this.safeAppendClonedChild(e,s,r)}cloneLightDOMChildren(A,e,r){for(let s=A.firstChild;s;s=s.nextSibling)this.appendChildNode(e,s,r)}cloneSlotElementAsLightDOM(A,e,r){if(!sr(A))return;const s=A;if(typeof s.assignedNodes!="function"){for(let o=A.firstChild;o;o=o.nextSibling)this.appendChildNode(e,o,r);return}const n=s.assignedNodes();if(n&&Array.isArray(n)&&n.length>0)n.forEach(o=>this.appendChildNode(e,o,r));else for(let o=A.firstChild;o;o=o.nextSibling)this.appendChildNode(e,o,r)}cloneShadowDOMAsLightDOM(A,e,r){for(let s=A.firstChild;s;s=s.nextSibling)xe(s)&&sr(s)?this.cloneSlotElementAsLightDOM(s,e,r):this.appendChildNode(e,s,r)}cloneChildNodes(A,e,r){A.shadowRoot&&e.shadowRoot?(this.cloneShadowDOMChildren(A.shadowRoot,e.shadowRoot,r),this.cloneLightDOMChildren(A,e,r)):A.shadowRoot&&!e.shadowRoot?this.cloneShadowDOMAsLightDOM(A.shadowRoot,e,r):this.cloneLightDOMChildren(A,e,r)}cloneNode(A,e){if(di(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);const r=A.ownerDocument.defaultView;if(r&&xe(A)&&(er(A)||pt(A))){const s=this.createElementClone(A);s.style.transitionProperty="none";const n=r.getComputedStyle(A),o=r.getComputedStyle(A,":before"),a=r.getComputedStyle(A,":after");this.referenceElement===A&&er(s)&&(this.clonedReferenceElement=s),Wn(s)&&Lh(s,this.options.cspNonce);const c=this.counters.parse(new li(this.context,n)),g=this.resolvePseudoContent(A,s,o,ar.BEFORE);Bi(A)&&(e=!0),Vi(A)||this.cloneChildNodes(A,s,e),g&&s.insertBefore(g,s.firstChild);const d=this.resolvePseudoContent(A,s,a,ar.AFTER);return d&&s.appendChild(d),this.counters.pop(c),(n&&(this.options.copyStyles||pt(A))&&!Mi(A)||e)&&Zn(n,s),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([s,A.scrollLeft,A.scrollTop]),(ws(A)||ms(A))&&(ws(s)||ms(s))&&(s.value=A.value),s}return A.cloneNode(!1)}resolvePseudoContent(A,e,r,s){if(!r)return;const n=r.content,o=e.ownerDocument;if(!o||!n||n==="none"||n==="-moz-alt-content"||r.display==="none")return;this.counters.parse(new li(this.context,r));const a=new Bf(this.context,r),c=o.createElement("html2canvaspseudoelement");Zn(r,c),a.content.forEach(d=>{if(d.type===0)c.appendChild(o.createTextNode(d.value));else if(d.type===22){const B=o.createElement("img");B.src=d.value,B.style.opacity="1",c.appendChild(B)}else if(d.type===18){if(d.name==="attr"){const B=d.values.filter(V);B.length&&c.appendChild(o.createTextNode(A.getAttribute(B[0].value)||""))}else if(d.name==="counter"){const[B,u]=d.values.filter(bA);if(B&&V(B)){const f=this.counters.getCounterValue(B.value),w=u&&V(u)?Tn.parse(this.context,u.value):3;c.appendChild(o.createTextNode(or(f,w,!1)))}}else if(d.name==="counters"){const[B,u,f]=d.values.filter(bA);if(B&&V(B)){const w=this.counters.getCounterValues(B.value),C=f&&V(f)?Tn.parse(this.context,f.value):3,F=u&&u.type===0?u.value:"",y=w.map(m=>or(m,C,!1)).join(F);c.appendChild(o.createTextNode(y))}}}else if(d.type===20)switch(d.value){case"open-quote":c.appendChild(o.createTextNode(ci(a.quotes,this.quoteDepth++,!0)));break;case"close-quote":c.appendChild(o.createTextNode(ci(a.quotes,--this.quoteDepth,!1)));break;default:c.appendChild(o.createTextNode(d.value))}}),c.className=`${$n} ${qn}`;const g=s===ar.BEFORE?` ${$n}`:` ${qn}`;return pt(e)?e.className.baseValue+=g:e.className+=g,c}static destroy(A){return A.parentNode?(A.parentNode.removeChild(A),!0):!1}}var ar;(function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"})(ar||(ar={}));const xh=(t,A,e)=>{const r=t.createElement("iframe");return r.className="html2canvas-container",r.style.visibility="hidden",r.style.position="fixed",r.style.left="-10000px",r.style.top="0px",r.style.border="0",r.width=A.width.toString(),r.height=A.height.toString(),r.scrolling="no",r.setAttribute(Yn,"true"),(e||t.body).appendChild(r),r},Uh=t=>new Promise(A=>{if(t.complete){A();return}if(!t.src){A();return}t.onload=A,t.onerror=A}),Fh=t=>Promise.all([].slice.call(t.images,0).map(Uh)),yh=t=>new Promise((A,e)=>{const r=t.contentWindow;if(!r)return e("No window assigned for iframe");const s=r.document;r.onload=t.onload=()=>{r.onload=t.onload=null;const n=setInterval(()=>{s.body.childNodes.length>0&&s.readyState==="complete"&&(clearInterval(n),A(t))},50)}}),bh=["all","d","content"],Zn=(t,A)=>{for(let e=t.length-1;e>=0;e--){const r=t.item(e);bh.indexOf(r)===-1&&!r.startsWith("--")&&A.style.setProperty(r,t.getPropertyValue(r))}return A},Eh=t=>{let A="";return t&&(A+="<!DOCTYPE ",t.name&&(A+=t.name),t.internalSubset&&(A+=" "+t.internalSubset.replace(/"/g,""").replace(/>/g,">")),t.publicId?(A+=' PUBLIC "'+t.publicId.replace(/"/g,""")+'"',t.systemId&&(A+=' "'+t.systemId.replace(/"/g,""")+'"')):t.systemId&&(A+=' SYSTEM "'+t.systemId.replace(/"/g,""")+'"'),A+=">"),A},vh=(t,A,e)=>{t&&t.defaultView&&(A!==t.defaultView.pageXOffset||e!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(A,e)},Ih=([t,A,e])=>{t.scrollLeft=A,t.scrollTop=e},Hh=":before",Sh=":after",$n="___html2canvas___pseudoelement_before",qn="___html2canvas___pseudoelement_after",Yi=`{
|
|
8
|
-
content: "" !important;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
.${qn}${Sh}${Yi}`,A)},Th=(t,A,e)=>{const r=t.ownerDocument;if(r){const s=r.createElement("style");s.textContent=A,e&&(s.nonce=e),t.appendChild(s)}},Oh=(t,A)=>{const e=t.ownerDocument.createElement("base");e.href=A;const r=t.getElementsByTagName("head").item(0);r?.insertBefore(e,r?.firstChild??null)};class I{constructor(A,e){this.type=0,this.x=A,this.y=e}add(A,e){return new I(this.x+A,this.y+e)}}const Ct=(t,A,e)=>new I(t.x+(A.x-t.x)*e,t.y+(A.y-t.y)*e);class Fe{constructor(A,e,r,s){this.type=1,this.start=A,this.startControl=e,this.endControl=r,this.end=s}subdivide(A,e){const r=Ct(this.start,this.startControl,A),s=Ct(this.startControl,this.endControl,A),n=Ct(this.endControl,this.end,A),o=Ct(r,s,A),a=Ct(s,n,A),c=Ct(o,a,A);return e?new Fe(this.start,r,o,c):new Fe(c,a,n,this.end)}add(A,e){return new Fe(this.start.add(A,e),this.startControl.add(A,e),this.endControl.add(A,e),this.end.add(A,e))}reverse(){return new Fe(this.end,this.endControl,this.startControl,this.start)}}const MA=t=>t.type===1;class Kh{constructor(A){const e=A.styles,r=A.bounds;let[s,n]=$t(e.borderTopLeftRadius,r.width,r.height),[o,a]=$t(e.borderTopRightRadius,r.width,r.height),[c,g]=$t(e.borderBottomRightRadius,r.width,r.height),[d,B]=$t(e.borderBottomLeftRadius,r.width,r.height);const u=[];u.push((s+o)/r.width),u.push((d+c)/r.width),u.push((n+B)/r.height),u.push((a+g)/r.height);const f=Math.max(...u);f>1&&(s/=f,n/=f,o/=f,a/=f,c/=f,g/=f,d/=f,B/=f);const w=r.width-o,C=r.height-g,F=r.width-c,y=r.height-B,m=e.borderTopWidth,L=e.borderRightWidth,H=e.borderBottomWidth,v=e.borderLeftWidth,O=G(e.paddingTop,A.bounds.width),N=G(e.paddingRight,A.bounds.width),W=G(e.paddingBottom,A.bounds.width),R=G(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=s>0||n>0?aA(r.left+v/3,r.top+m/3,s-v/3,n-m/3,Z.TOP_LEFT):new I(r.left+v/3,r.top+m/3),this.topRightBorderDoubleOuterBox=s>0||n>0?aA(r.left+w,r.top+m/3,o-L/3,a-m/3,Z.TOP_RIGHT):new I(r.left+r.width-L/3,r.top+m/3),this.bottomRightBorderDoubleOuterBox=c>0||g>0?aA(r.left+F,r.top+C,c-L/3,g-H/3,Z.BOTTOM_RIGHT):new I(r.left+r.width-L/3,r.top+r.height-H/3),this.bottomLeftBorderDoubleOuterBox=d>0||B>0?aA(r.left+v/3,r.top+y,d-v/3,B-H/3,Z.BOTTOM_LEFT):new I(r.left+v/3,r.top+r.height-H/3),this.topLeftBorderDoubleInnerBox=s>0||n>0?aA(r.left+v*2/3,r.top+m*2/3,s-v*2/3,n-m*2/3,Z.TOP_LEFT):new I(r.left+v*2/3,r.top+m*2/3),this.topRightBorderDoubleInnerBox=s>0||n>0?aA(r.left+w,r.top+m*2/3,o-L*2/3,a-m*2/3,Z.TOP_RIGHT):new I(r.left+r.width-L*2/3,r.top+m*2/3),this.bottomRightBorderDoubleInnerBox=c>0||g>0?aA(r.left+F,r.top+C,c-L*2/3,g-H*2/3,Z.BOTTOM_RIGHT):new I(r.left+r.width-L*2/3,r.top+r.height-H*2/3),this.bottomLeftBorderDoubleInnerBox=d>0||B>0?aA(r.left+v*2/3,r.top+y,d-v*2/3,B-H*2/3,Z.BOTTOM_LEFT):new I(r.left+v*2/3,r.top+r.height-H*2/3),this.topLeftBorderStroke=s>0||n>0?aA(r.left+v/2,r.top+m/2,s-v/2,n-m/2,Z.TOP_LEFT):new I(r.left+v/2,r.top+m/2),this.topRightBorderStroke=s>0||n>0?aA(r.left+w,r.top+m/2,o-L/2,a-m/2,Z.TOP_RIGHT):new I(r.left+r.width-L/2,r.top+m/2),this.bottomRightBorderStroke=c>0||g>0?aA(r.left+F,r.top+C,c-L/2,g-H/2,Z.BOTTOM_RIGHT):new I(r.left+r.width-L/2,r.top+r.height-H/2),this.bottomLeftBorderStroke=d>0||B>0?aA(r.left+v/2,r.top+y,d-v/2,B-H/2,Z.BOTTOM_LEFT):new I(r.left+v/2,r.top+r.height-H/2),this.topLeftBorderBox=s>0||n>0?aA(r.left,r.top,s,n,Z.TOP_LEFT):new I(r.left,r.top),this.topRightBorderBox=o>0||a>0?aA(r.left+w,r.top,o,a,Z.TOP_RIGHT):new I(r.left+r.width,r.top),this.bottomRightBorderBox=c>0||g>0?aA(r.left+F,r.top+C,c,g,Z.BOTTOM_RIGHT):new I(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=d>0||B>0?aA(r.left,r.top+y,d,B,Z.BOTTOM_LEFT):new I(r.left,r.top+r.height),this.topLeftPaddingBox=s>0||n>0?aA(r.left+v,r.top+m,Math.max(0,s-v),Math.max(0,n-m),Z.TOP_LEFT):new I(r.left+v,r.top+m),this.topRightPaddingBox=o>0||a>0?aA(r.left+Math.min(w,r.width-L),r.top+m,w>r.width+L?0:Math.max(0,o-L),Math.max(0,a-m),Z.TOP_RIGHT):new I(r.left+r.width-L,r.top+m),this.bottomRightPaddingBox=c>0||g>0?aA(r.left+Math.min(F,r.width-v),r.top+Math.min(C,r.height-H),Math.max(0,c-L),Math.max(0,g-H),Z.BOTTOM_RIGHT):new I(r.left+r.width-L,r.top+r.height-H),this.bottomLeftPaddingBox=d>0||B>0?aA(r.left+v,r.top+Math.min(y,r.height-H),Math.max(0,d-v),Math.max(0,B-H),Z.BOTTOM_LEFT):new I(r.left+v,r.top+r.height-H),this.topLeftContentBox=s>0||n>0?aA(r.left+v+R,r.top+m+O,Math.max(0,s-(v+R)),Math.max(0,n-(m+O)),Z.TOP_LEFT):new I(r.left+v+R,r.top+m+O),this.topRightContentBox=o>0||a>0?aA(r.left+Math.min(w,r.width+v+R),r.top+m+O,w>r.width+v+R?0:o-v+R,a-(m+O),Z.TOP_RIGHT):new I(r.left+r.width-(L+N),r.top+m+O),this.bottomRightContentBox=c>0||g>0?aA(r.left+Math.min(F,r.width-(v+R)),r.top+Math.min(C,r.height+m+O),Math.max(0,c-(L+N)),g-(H+W),Z.BOTTOM_RIGHT):new I(r.left+r.width-(L+N),r.top+r.height-(H+W)),this.bottomLeftContentBox=d>0||B>0?aA(r.left+v+R,r.top+y,Math.max(0,d-(v+R)),B-(H+W),Z.BOTTOM_LEFT):new I(r.left+v+R,r.top+r.height-(H+W))}}var Z;(function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Z||(Z={}));const aA=(t,A,e,r,s)=>{const n=4*((Math.sqrt(2)-1)/3),o=e*n,a=r*n,c=t+e,g=A+r;switch(s){case Z.TOP_LEFT:return new Fe(new I(t,g),new I(t,g-a),new I(c-o,A),new I(c,A));case Z.TOP_RIGHT:return new Fe(new I(t,A),new I(t+o,A),new I(c,g-a),new I(c,g));case Z.BOTTOM_RIGHT:return new Fe(new I(c,A),new I(c,A+a),new I(t+o,g),new I(t,g));case Z.BOTTOM_LEFT:default:return new Fe(new I(c,g),new I(c-o,g),new I(t,A+a),new I(t,A))}},Cs=t=>[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox],Dh=t=>[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox],Qs=t=>[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox];class Zi{constructor(A,e,r){this.offsetX=A,this.offsetY=e,this.matrix=r,this.type=0,this.target=6}}class xs{constructor(A,e){this.path=A,this.target=e,this.type=1}}class Rh{constructor(A){this.opacity=A,this.type=2,this.target=6}}class ir{constructor(A){this.applyClip=A,this.type=3,this.target=6}}const kh=t=>t.type===0,$i=t=>t.type===1,Gh=t=>t.type===2,Vh=t=>t.type===3,qi=(t,A)=>t.length===A.length?t.some((e,r)=>e===A[r]):!1,Mh=(t,A,e,r,s)=>t.map((n,o)=>{switch(o){case 0:return n.add(A,e);case 1:return n.add(A+r,e);case 2:return n.add(A+r,e+s);case 3:return n.add(A,e+s)}return n});class Ac{constructor(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}}class ec{constructor(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new Kh(this.container),this.container.styles.opacity<1&&this.effects.push(new Rh(this.container.styles.opacity)),this.container.styles.rotate!==null){const r=this.container.styles.transformOrigin,s=this.container.bounds.left+G(r[0],this.container.bounds.width),n=this.container.bounds.top+G(r[1],this.container.bounds.height),a=this.container.styles.rotate*Math.PI/180,c=Math.cos(a),g=Math.sin(a),d=[c,g,-g,c,0,0];this.effects.push(new Zi(s,n,d))}if(this.container.styles.transform!==null){const r=this.container.styles.transformOrigin,s=this.container.bounds.left+G(r[0],this.container.bounds.width),n=this.container.bounds.top+G(r[1],this.container.bounds.height),o=this.container.styles.transform;this.effects.push(new Zi(s,n,o))}if(this.container.styles.overflowX!==0){const r=Cs(this.curves),s=Qs(this.curves);qi(r,s)?this.effects.push(new xs(r,6)):(this.effects.push(new xs(r,2)),this.effects.push(new xs(s,4)))}if(this.container.styles.clipPath.type!==0){const r=Nh(this.container.styles.clipPath,this.container.bounds);r&&this.effects.push(r)}}getEffects(A){let e=[2,3].indexOf(this.container.styles.position)===-1,r=this.parent;const s=this.effects.slice(0);for(;r;){const n=r.effects.filter(o=>!$i(o));if(e||r.container.styles.position!==0||!r.parent){if(e=[2,3].indexOf(r.container.styles.position)===-1,r.container.styles.overflowX!==0){const o=Cs(r.curves),a=Qs(r.curves);qi(o,a)||s.unshift(new xs(a,6))}s.unshift(...n)}else s.unshift(...n);r=r.parent}return s.filter(n=>iA(n.target,A))}}const tc=(t,A,e,r,s)=>t==="closest-side"?Math.min(A-e,r-A):t==="farthest-side"?Math.max(A-e,r-A):G(t,s),Nh=(t,A)=>{const{left:e,top:r,width:s,height:n}=A;switch(t.type){case 1:{const o=G(t.left,s),a=G(t.top,n),c=e+o,g=r+a,d=Math.max(0,s-o-G(t.right,s)),B=Math.max(0,n-a-G(t.bottom,n));return new ir(u=>{u.beginPath(),u.rect(c,g,d,B),u.clip()})}case 2:{const o=e+G(t.cx,s),a=r+G(t.cy,n);let c;return t.radius==="closest-side"?c=Math.min(o-e,a-r,e+s-o,r+n-a):t.radius==="farthest-side"?c=Math.max(o-e,a-r,e+s-o,r+n-a):c=G(t.radius,Math.sqrt(s*s+n*n)/Math.SQRT2),new ir(g=>{g.beginPath(),g.arc(o,a,Math.max(0,c),0,Math.PI*2),g.clip()})}case 3:{const o=e+G(t.cx,s),a=r+G(t.cy,n),c=tc(t.rx,o,e,e+s,s),g=tc(t.ry,a,r,r+n,n);return new ir(d=>{d.beginPath(),d.ellipse(o,a,Math.max(0,c),Math.max(0,g),0,0,Math.PI*2),d.clip()})}case 4:{const o=t.points.map(([a,c])=>[e+G(a,s),r+G(c,n)]);return new ir(a=>{if(a.beginPath(),o.length>0){a.moveTo(o[0][0],o[0][1]);for(let c=1;c<o.length;c++)a.lineTo(o[c][0],o[c][1]);a.closePath()}a.clip()})}case 5:{const{d:o}=t;return new ir(a=>{try{const c=a.getTransform();a.translate(e,r),a.clip(new Path2D(o)),a.setTransform(c)}catch{}})}case 0:return null;default:return null}},Ao=(t,A,e,r)=>{t.container.elements.forEach(s=>{const n=iA(s.flags,4),o=iA(s.flags,2),a=new ec(s,t);iA(s.styles.display,2048)&&r.push(a);const c=iA(s.flags,8)?[]:r;if(n||o){const g=n||s.styles.isPositioned()?e:A,d=new Ac(a);if(s.styles.isPositioned()||s.styles.opacity<1||s.styles.isTransformed()){const B=s.styles.zIndex.order;if(B<0){let u=0;g.negativeZIndex.some((f,w)=>B>f.element.container.styles.zIndex.order?(u=w,!1):u>0),g.negativeZIndex.splice(u,0,d)}else if(B>0){let u=0;g.positiveZIndex.some((f,w)=>B>=f.element.container.styles.zIndex.order?(u=w+1,!1):u>0),g.positiveZIndex.splice(u,0,d)}else g.zeroOrAutoZIndexOrTransformedOrOpacity.push(d)}else s.styles.isFloating()?g.nonPositionedFloats.push(d):g.nonPositionedInlineLevel.push(d);Ao(a,d,n?d:e,c)}else s.styles.isInlineLevel()?A.inlineLevel.push(a):A.nonInlineLevel.push(a),Ao(a,A,e,c);iA(s.flags,8)&&rc(s,c)})},rc=(t,A)=>{let e=t instanceof jn?t.start:1;const r=t instanceof jn?t.reversed:!1;for(let s=0;s<A.length;s++){const n=A[s];n.container instanceof Si&&typeof n.container.value=="number"&&n.container.value!==0&&(e=n.container.value),n.listValue=or(e,n.container.styles.listStyleType,!0),e+=r?-1:1}},_h=t=>{const A=new ec(t,null),e=new Ac(A),r=[];return Ao(A,e,e,r),rc(A.container,r),e},sc=t=>{const A=t.bounds,e=t.styles;return A.add(e.borderLeftWidth,e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth),-(e.borderTopWidth+e.borderBottomWidth))},cr=t=>{const A=t.styles,e=t.bounds,r=G(A.paddingLeft,e.width),s=G(A.paddingRight,e.width),n=G(A.paddingTop,e.width),o=G(A.paddingBottom,e.width);return e.add(r+A.borderLeftWidth,n+A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth+r+s),-(A.borderTopWidth+A.borderBottomWidth+n+o))},Ph=(t,A)=>t===0?A.bounds:t===2?cr(A):sc(A),jh=(t,A)=>t===0?A.bounds:t===2?cr(A):sc(A),eo=(t,A,e)=>{const r=Ph(xt(t.styles.backgroundOrigin,A),t),s=jh(xt(t.styles.backgroundClip,A),t),n=Wh(xt(t.styles.backgroundSize,A),e,r);let[o,a]=n;const c=$t(xt(t.styles.backgroundPosition,A),r.width-o,r.height-a),g=Xh(xt(t.styles.backgroundRepeat,A),c,n,r,s),d=Math.round(r.left+c[0]),B=Math.round(r.top+c[1]);return o=Math.max(1,o),a=Math.max(1,a),[g,d,B,o,a]},Qt=t=>V(t)&&t.value===ht.AUTO,Us=t=>typeof t=="number",Wh=(t,[A,e,r],s)=>{const[n,o]=t;if(!n)return[0,0];if($(n)&&o&&$(o))return[G(n,s.width),G(o,s.height)];const a=Us(r);if(V(n)&&(n.value===ht.CONTAIN||n.value===ht.COVER))return Us(r)?s.width/s.height<r!=(n.value===ht.COVER)?[s.width,s.width/r]:[s.height*r,s.height]:[s.width,s.height];const c=Us(A),g=Us(e),d=c||g;if(Qt(n)&&(!o||Qt(o))){if(c&&g)return[A,e];if(!a&&!d)return[s.width,s.height];if(d&&a){const C=c?A:e*r,F=g?e:A/r;return[C,F]}const f=c?A:s.width,w=g?e:s.height;return[f,w]}if(a){let f=0,w=0;return $(n)?f=G(n,s.width):$(o)&&(w=G(o,s.height)),Qt(n)?f=w*r:(!o||Qt(o))&&(w=f/r),[f,w]}let B=null,u=null;if($(n)?B=G(n,s.width):o&&$(o)&&(u=G(o,s.height)),B!==null&&(!o||Qt(o))&&(u=c&&g?B/A*e:s.height),u!==null&&Qt(n)&&(B=c&&g?u/e*A:s.width),B!==null&&u!==null)return[B,u];throw new Error("Unable to calculate background-size for element")},xt=(t,A)=>{const e=t[A];return typeof e>"u"?t[0]:e},Xh=(t,[A,e],[r,s],n,o)=>{switch(t){case 2:return[new I(Math.round(n.left),Math.round(n.top+e)),new I(Math.round(n.left+n.width),Math.round(n.top+e)),new I(Math.round(n.left+n.width),Math.round(s+n.top+e)),new I(Math.round(n.left),Math.round(s+n.top+e))];case 3:return[new I(Math.round(n.left+A),Math.round(n.top)),new I(Math.round(n.left+A+r),Math.round(n.top)),new I(Math.round(n.left+A+r),Math.round(n.height+n.top)),new I(Math.round(n.left+A),Math.round(n.height+n.top))];case 1:return[new I(Math.round(n.left+A),Math.round(n.top+e)),new I(Math.round(n.left+A+r),Math.round(n.top+e)),new I(Math.round(n.left+A+r),Math.round(n.top+e+s)),new I(Math.round(n.left+A),Math.round(n.top+e+s))];default:return[new I(Math.round(o.left),Math.round(o.top)),new I(Math.round(o.left+o.width),Math.round(o.top)),new I(Math.round(o.left+o.width),Math.round(o.height+o.top)),new I(Math.round(o.left),Math.round(o.height+o.top))]}},zh="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",nc="Hidden Text";class Jh{constructor(A){this._data={},this._document=A}parseMetrics(A,e){const r=this._document.createElement("div"),s=this._document.createElement("img"),n=this._document.createElement("span"),o=this._document.body;r.style.visibility="hidden",r.style.fontFamily=A,r.style.fontSize=e,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",o.appendChild(r),s.src=zh,s.width=1,s.height=1,s.style.margin="0",s.style.padding="0",s.style.verticalAlign="baseline",n.style.fontFamily=A,n.style.fontSize=e,n.style.margin="0",n.style.padding="0",n.appendChild(this._document.createTextNode(nc)),r.appendChild(n),r.appendChild(s);const a=s.offsetTop-n.offsetTop+2;r.removeChild(n),r.appendChild(this._document.createTextNode(nc)),r.style.lineHeight="normal",s.style.verticalAlign="super";const c=s.offsetTop-r.offsetTop+2;return o.removeChild(r),{baseline:a,middle:c}}getMetrics(A,e){const r=`${A} ${e}`;return typeof this._data[r]>"u"&&(this._data[r]=this.parseMetrics(A,e)),this._data[r]}}class oc{constructor(A,e){this.context=A,this.options=e}}class Yh{constructor(A){this.ctx=A.ctx,this.context=A.context,this.canvas=A.canvas}async renderBackgroundImage(A){let e=A.styles.backgroundImage.length-1;for(const r of A.styles.backgroundImage.slice(0).reverse())r.type===0?await this.renderBackgroundURLImage(A,r,e):Ig(r)?this.renderLinearGradient(A,r,e):Hg(r)&&this.renderRadialGradient(A,r,e),e--}async renderBackgroundURLImage(A,e,r){let s;const n=e.url;try{s=await this.context.cache.match(n)}catch{this.context.logger.error(`Error loading background-image ${n}`)}if(s){const o=isNaN(s.width)||s.width===0?1:s.width,a=isNaN(s.height)||s.height===0?1:s.height,[c,g,d,B,u]=eo(A,r,[o,a,o/a]),f=this.ctx.createPattern(this.resizeImage(s,B,u,A.styles.imageRendering),"repeat");this.renderRepeat(c,f,g,d)}}renderLinearGradient(A,e,r){const[s,n,o,a,c]=eo(A,r,[null,null,null]),[g,d,B,u,f]=Fg(e.angle,a,c),C=(this.canvas.ownerDocument??document).createElement("canvas");C.width=a,C.height=c;const F=C.getContext("2d"),y=F.createLinearGradient(d,u,B,f);if(za(e.stops,g||1).forEach(m=>y.addColorStop(m.stop,rA(m.color))),F.fillStyle=y,F.fillRect(0,0,a,c),a>0&&c>0){const m=this.ctx.createPattern(C,"repeat");this.renderRepeat(s,m,n,o)}}renderRadialGradient(A,e,r){const[s,n,o,a,c]=eo(A,r,[null,null,null]),g=e.position.length===0?[Je]:e.position,d=G(g[0],a),B=G(g[g.length-1],c);let[u,f]=yg(e,d,B,a,c);if((u===0||f===0)&&(u=Math.max(u,.01),f=Math.max(f,.01)),u>0&&f>0){const w=this.ctx.createRadialGradient(n+d,o+B,0,n+d,o+B,u);if(za(e.stops,u*2).forEach(C=>w.addColorStop(C.stop,rA(C.color))),this.path(s),this.ctx.fillStyle=w,u!==f){const C=A.bounds.left+.5*A.bounds.width,F=A.bounds.top+.5*A.bounds.height,y=f/u,m=1/y;this.ctx.save(),this.ctx.translate(C,F),this.ctx.transform(1,0,0,y,0,0),this.ctx.translate(-C,-F),this.ctx.fillRect(n,m*(o-F)+F,a,c*m),this.ctx.restore()}else this.ctx.fill()}}renderRepeat(A,e,r,s){this.path(A),this.ctx.fillStyle=e,this.ctx.translate(r,s),this.ctx.fill(),this.ctx.translate(-r,-s)}resizeImage(A,e,r,s){const o=(this.canvas.ownerDocument??document).createElement("canvas");o.width=Math.max(1,e),o.height=Math.max(1,r);const a=o.getContext("2d");return s===XA.PIXELATED||s===XA.CRISP_EDGES?(this.context.logger.debug("Disabling image smoothing for background image due to CSS image-rendering"),a.imageSmoothingEnabled=!1):s===XA.SMOOTH?(this.context.logger.debug("Enabling image smoothing for background image due to CSS image-rendering: smooth"),a.imageSmoothingEnabled=!0):a.imageSmoothingEnabled=this.ctx.imageSmoothingEnabled,this.ctx.imageSmoothingQuality&&(a.imageSmoothingQuality=this.ctx.imageSmoothingQuality),a.drawImage(A,0,0,A.width,A.height,0,0,e,r),o}path(A){this.ctx.beginPath(),this.formatPath(A),this.ctx.closePath()}formatPath(A){A.forEach((e,r)=>{const s=MA(e)?e.start:e;r===0?this.ctx.moveTo(s.x,s.y):this.ctx.lineTo(s.x,s.y),MA(e)&&this.ctx.bezierCurveTo(e.startControl.x,e.startControl.y,e.endControl.x,e.endControl.y,e.end.x,e.end.y)})}}const ac=(t,A)=>{switch(A){case 0:return ZA(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return ZA(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return ZA(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);default:return ZA(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},Zh=(t,A)=>{switch(A){case 0:return ZA(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return ZA(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return ZA(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);default:return ZA(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},$h=(t,A)=>{switch(A){case 0:return ZA(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return ZA(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return ZA(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);default:return ZA(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},qh=(t,A)=>{switch(A){case 0:return Fs(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return Fs(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return Fs(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);default:return Fs(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},Fs=(t,A)=>{const e=[];return MA(t)?e.push(t.subdivide(.5,!1)):e.push(t),MA(A)?e.push(A.subdivide(.5,!0)):e.push(A),e},ZA=(t,A,e,r)=>{const s=[];return MA(t)?s.push(t.subdivide(.5,!1)):s.push(t),MA(e)?s.push(e.subdivide(.5,!0)):s.push(e),MA(r)?s.push(r.subdivide(.5,!0).reverse()):s.push(r),MA(A)?s.push(A.subdivide(.5,!1).reverse()):s.push(A),s};class Ap{constructor(A,e){this.ctx=A.ctx,this.pathCallbacks=e}async renderSolidBorder(A,e,r){this.pathCallbacks.path(ac(r,e)),this.ctx.fillStyle=rA(A),this.ctx.fill()}async renderDoubleBorder(A,e,r,s){if(e<3){await this.renderSolidBorder(A,r,s);return}const n=Zh(s,r);this.pathCallbacks.path(n),this.ctx.fillStyle=rA(A),this.ctx.fill();const o=$h(s,r);this.pathCallbacks.path(o),this.ctx.fill()}async renderDashedDottedBorder(A,e,r,s,n){this.ctx.save();const o=qh(s,r),a=ac(s,r);n===2&&(this.pathCallbacks.path(a),this.ctx.clip());let c,g,d,B;MA(a[0])?(c=a[0].start.x,g=a[0].start.y):(c=a[0].x,g=a[0].y),MA(a[1])?(d=a[1].end.x,B=a[1].end.y):(d=a[1].x,B=a[1].y);let u;r===0||r===2?u=Math.abs(c-d):u=Math.abs(g-B),this.ctx.beginPath(),n===3?this.pathCallbacks.formatPath(o):this.pathCallbacks.formatPath(a.slice(0,2));let f=e<3?e*3:e*2,w=e<3?e*2:e;n===3&&(f=e,w=e);let C=!0;if(u<=f*2)C=!1;else if(u<=f*2+w){const F=u/(2*f+w);f*=F,w*=F}else{const F=Math.floor((u+w)/(f+w)),y=(u-F*f)/(F-1),m=(u-(F+1)*f)/F;w=m<=0||Math.abs(w-y)<Math.abs(w-m)?y:m}if(C&&(n===3?this.ctx.setLineDash([0,f+w]):this.ctx.setLineDash([f,w])),n===3?(this.ctx.lineCap="round",this.ctx.lineWidth=e):this.ctx.lineWidth=e*2+1.1,this.ctx.strokeStyle=rA(A),this.ctx.stroke(),this.ctx.setLineDash([]),n===2){if(MA(a[0])){const F=a[3],y=a[0];this.ctx.beginPath(),this.pathCallbacks.formatPath([new I(F.end.x,F.end.y),new I(y.start.x,y.start.y)]),this.ctx.stroke()}if(MA(a[1])){const F=a[1],y=a[2];this.ctx.beginPath(),this.pathCallbacks.formatPath([new I(F.end.x,F.end.y),new I(y.start.x,y.start.y)]),this.ctx.stroke()}}this.ctx.restore()}}class ep{constructor(A,e){this.activeEffects=[],this.ctx=A.ctx,this.pathCallback=e}applyEffects(A){for(;this.activeEffects.length;)this.popEffect();A.forEach(e=>this.applyEffect(e))}applyEffect(A){this.ctx.save(),Gh(A)?this.ctx.globalAlpha=A.opacity:kh(A)?(this.ctx.translate(A.offsetX,A.offsetY),this.ctx.transform(A.matrix[0],A.matrix[1],A.matrix[2],A.matrix[3],A.matrix[4],A.matrix[5]),this.ctx.translate(-A.offsetX,-A.offsetY)):$i(A)?(this.pathCallback.path(A.path),this.ctx.clip()):Vh(A)&&A.applyClip(this.ctx),this.activeEffects.push(A)}popEffect(){this.activeEffects.pop(),this.ctx.restore()}getActiveEffectCount(){return this.activeEffects.length}hasActiveEffects(){return this.activeEffects.length>0}}const tp=["-apple-system","system-ui"],rp=/[\u2E80-\u2FFF\u3000-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uAC00-\uD7AF\uF900-\uFAFF\uFF01-\uFFEF]/,sp=t=>rp.test(t),np=()=>{if(typeof navigator>"u")return null;const t=navigator.userAgent,A=/iPhone|iPad|iPod/.test(t),e=/Macintosh/.test(t)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>1;if(!A&&!e)return null;const r=[/(?:iPhone|CPU(?:\siPhone)?)\sOS\s(\d+)[\._](\d+)/,/Version\/(\d+)\.(\d+)/];for(const s of r){const n=t.match(s);if(n&&n[1])return parseInt(n[1],10)}return null},op=t=>{const A=np();return A!==null&&A>=15&&A<17?t.map(e=>tp.indexOf(e)!==-1?'-apple-system, "Helvetica Neue", Arial, sans-serif':e):t};class ap{constructor(A){this.ctx=A.ctx,this.options=A.options}iterateLettersWithLetterSpacing(A,e,r,s){const n=us(A.text),o=A.bounds.top+r;let a=A.bounds.left;for(const c of n){if(sp(c)){const g=this.ctx.textBaseline;this.ctx.textBaseline="ideographic",s(c,a,o),this.ctx.textBaseline=g}else s(c,a,o);a+=this.ctx.measureText(c).width+e}}renderTextWithLetterSpacing(A,e,r){e===0?this.ctx.fillText(A.text,A.bounds.left,A.bounds.top+r):this.iterateLettersWithLetterSpacing(A,e,r,(s,n,o)=>{this.ctx.fillText(s,n,o)})}renderTextBoundWithPaintOrder(A,e,r){r.forEach(s=>{switch(s){case 0:this.ctx.fillStyle=rA(e.color),this.renderTextWithLetterSpacing(A,e.letterSpacing,e.fontSize.number);break;case 1:e.webkitTextStrokeWidth&&A.text.trim().length&&(this.ctx.strokeStyle=rA(e.webkitTextStrokeColor),this.ctx.lineWidth=e.webkitTextStrokeWidth,this.ctx.lineJoin=typeof window<"u"&&window.chrome?"miter":"round",e.letterSpacing===0?this.ctx.strokeText(A.text,A.bounds.left,A.bounds.top+e.fontSize.number):this.iterateLettersWithLetterSpacing(A,e.letterSpacing,e.fontSize.number,(n,o,a)=>this.ctx.strokeText(n,o,a)),this.ctx.strokeStyle="",this.ctx.lineWidth=0,this.ctx.lineJoin="miter");break}})}renderTextDecoration(A,e){this.ctx.fillStyle=rA(e.textDecorationColor||e.color);let r=1;typeof e.textDecorationThickness=="number"?r=e.textDecorationThickness:e.textDecorationThickness==="from-font"&&(r=Math.max(1,Math.floor(e.fontSize.number*.05)));let s=0;typeof e.textUnderlineOffset=="number"&&(s=e.textUnderlineOffset);const n=e.textDecorationStyle;e.textDecorationLine.forEach(o=>{let a=0;switch(o){case 1:a=A.top+A.height-r+s;break;case 2:a=A.top;break;case 3:a=A.top+(A.height/2-r/2);break;default:return}this.drawDecorationLine(A.left,a,A.width,r,n)})}drawDecorationLine(A,e,r,s,n){switch(n){case 0:this.ctx.fillRect(A,e,r,s);break;case 1:const o=Math.max(1,s);this.ctx.fillRect(A,e,r,s),this.ctx.fillRect(A,e+s+o,r,s);break;case 2:this.ctx.save(),this.ctx.beginPath(),this.ctx.setLineDash([s,s*2]),this.ctx.lineWidth=s,this.ctx.strokeStyle=this.ctx.fillStyle,this.ctx.moveTo(A,e+s/2),this.ctx.lineTo(A+r,e+s/2),this.ctx.stroke(),this.ctx.restore();break;case 3:this.ctx.save(),this.ctx.beginPath(),this.ctx.setLineDash([s*3,s*2]),this.ctx.lineWidth=s,this.ctx.strokeStyle=this.ctx.fillStyle,this.ctx.moveTo(A,e+s/2),this.ctx.lineTo(A+r,e+s/2),this.ctx.stroke(),this.ctx.restore();break;case 4:this.ctx.save(),this.ctx.beginPath(),this.ctx.lineWidth=s,this.ctx.strokeStyle=this.ctx.fillStyle;const a=s*2,c=s*4;let g=A;for(this.ctx.moveTo(g,e+s/2);g<A+r;){const d=Math.min(g+c/2,A+r);if(this.ctx.quadraticCurveTo(g+c/4,e+s/2-a,d,e+s/2),g=d,g<A+r){const B=Math.min(g+c/2,A+r);this.ctx.quadraticCurveTo(g+c/4,e+s/2+a,B,e+s/2),g=B}}this.ctx.stroke(),this.ctx.restore();break;default:this.ctx.fillRect(A,e,r,s)}}truncateTextWithEllipsis(A,e,r){const n=this.ctx.measureText("…").width,o=us(A);if(r===0){const a=d=>this.ctx.measureText(o.slice(0,d).join("")).width+n<=e;let c=0,g=o.length;for(;c<g;){const d=c+g+1>>1;a(d)?c=d:g=d-1}return o.slice(0,c).join("")+"…"}else{let a=n;const c=[];for(const g of o){const d=this.ctx.measureText(g).width;if(a+d>e)break;c.push(g),a+=d+r}return c.join("")+"…"}}createFontStyle(A){const e=A.fontVariant.filter(n=>n==="normal"||n==="small-caps").join(""),r=op(A.fontFamily).join(", "),s=le(A.fontSize)?`${A.fontSize.number}${A.fontSize.unit}`:`${A.fontSize.number}px`;return[[A.fontStyle,e,A.fontWeight,s,r].join(" "),r,s]}async renderTextNode(A,e,r){const[s]=this.createFontStyle(e);this.ctx.font=s,this.ctx.direction=e.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic";const n=e.paintOrder,o=e.fontSize.number*1.5;if(e.webkitLineClamp>0&&(e.display&2)!==0&&e.overflowY===1&&A.textBounds.length>0){const B=[];let u=[],f=A.textBounds[0].bounds.top;A.textBounds.forEach(C=>{Math.abs(C.bounds.top-f)>=o*.5?(u.length>0&&B.push(u),u=[C],f=C.bounds.top):u.push(C)}),u.length>0&&B.push(u);const w=e.webkitLineClamp;if(B.length>w){for(let F=0;F<w-1;F++)B[F].forEach(y=>{this.renderTextBoundWithPaintOrder(y,e,n)});const C=B[w-1];if(C&&C.length>0&&r){const F=C.map(v=>v.text).join(""),y=C[0],m=r.width-(y.bounds.left-r.left),L=this.truncateTextWithEllipsis(F,m,e.letterSpacing),H=new $e(L,y.bounds);n.forEach(v=>{switch(v){case 0:this.ctx.fillStyle=rA(e.color),e.letterSpacing===0?this.ctx.fillText(L,y.bounds.left,y.bounds.top+e.fontSize.number):this.iterateLettersWithLetterSpacing(H,e.letterSpacing,e.fontSize.number,(O,N,W)=>this.ctx.fillText(O,N,W));break;case 1:e.webkitTextStrokeWidth&&L.trim().length&&(this.ctx.strokeStyle=rA(e.webkitTextStrokeColor),this.ctx.lineWidth=e.webkitTextStrokeWidth,this.ctx.lineJoin=typeof window<"u"&&window.chrome?"miter":"round",e.letterSpacing===0?this.ctx.strokeText(L,y.bounds.left,y.bounds.top+e.fontSize.number):this.iterateLettersWithLetterSpacing(H,e.letterSpacing,e.fontSize.number,(O,N,W)=>this.ctx.strokeText(O,N,W)),this.ctx.strokeStyle="",this.ctx.lineWidth=0,this.ctx.lineJoin="miter");break}})}return}}const c=e.textOverflow===1&&r&&e.overflowX===1&&A.textBounds.length>0;let g=!1,d="";if(c){const B=A.textBounds[0].bounds.top;if(A.textBounds.every(f=>Math.abs(f.bounds.top-B)<o*.5)){let f=A.textBounds.map(F=>F.text).join("");f=f.replace(/\s+/g," ").trim();const w=this.ctx.measureText(f).width,C=r.width;w>C&&(g=!0,d=this.truncateTextWithEllipsis(f,C,e.letterSpacing))}}if(g){const B=A.textBounds[0],u=new $e(d,B.bounds);n.forEach(f=>{switch(f){case 0:{this.ctx.fillStyle=rA(e.color),e.letterSpacing===0?this.ctx.fillText(d,B.bounds.left,B.bounds.top+e.fontSize.number):this.iterateLettersWithLetterSpacing(u,e.letterSpacing,e.fontSize.number,(C,F,y)=>this.ctx.fillText(C,F,y));const w=e.textShadow;w.length&&d.trim().length&&(w.slice(0).reverse().forEach(C=>{this.ctx.shadowColor=rA(C.color),this.ctx.shadowOffsetX=C.offsetX.number*this.options.scale,this.ctx.shadowOffsetY=C.offsetY.number*this.options.scale,this.ctx.shadowBlur=C.blur.number,e.letterSpacing===0?this.ctx.fillText(d,B.bounds.left,B.bounds.top+e.fontSize.number):this.iterateLettersWithLetterSpacing(u,e.letterSpacing,e.fontSize.number,(F,y,m)=>this.ctx.fillText(F,y,m))}),this.ctx.shadowColor="",this.ctx.shadowOffsetX=0,this.ctx.shadowOffsetY=0,this.ctx.shadowBlur=0);break}case 1:e.webkitTextStrokeWidth&&d.trim().length&&(this.ctx.strokeStyle=rA(e.webkitTextStrokeColor),this.ctx.lineWidth=e.webkitTextStrokeWidth,this.ctx.lineJoin=typeof window<"u"&&window.chrome?"miter":"round",e.letterSpacing===0?this.ctx.strokeText(d,B.bounds.left,B.bounds.top+e.fontSize.number):this.iterateLettersWithLetterSpacing(u,e.letterSpacing,e.fontSize.number,(w,C,F)=>this.ctx.strokeText(w,C,F)),this.ctx.strokeStyle="",this.ctx.lineWidth=0,this.ctx.lineJoin="miter");break}});return}A.textBounds.forEach(B=>{n.forEach(u=>{switch(u){case 0:{this.ctx.fillStyle=rA(e.color),this.renderTextWithLetterSpacing(B,e.letterSpacing,e.fontSize.number);const f=e.textShadow;f.length&&B.text.trim().length&&(f.slice(0).reverse().forEach(w=>{this.ctx.shadowColor=rA(w.color),this.ctx.shadowOffsetX=w.offsetX.number*this.options.scale,this.ctx.shadowOffsetY=w.offsetY.number*this.options.scale,this.ctx.shadowBlur=w.blur.number,this.renderTextWithLetterSpacing(B,e.letterSpacing,e.fontSize.number)}),this.ctx.shadowColor="",this.ctx.shadowOffsetX=0,this.ctx.shadowOffsetY=0,this.ctx.shadowBlur=0),e.textDecorationLine.length&&this.renderTextDecoration(B.bounds,e);break}case 1:{if(e.webkitTextStrokeWidth&&B.text.trim().length){this.ctx.strokeStyle=rA(e.webkitTextStrokeColor),this.ctx.lineWidth=e.webkitTextStrokeWidth,this.ctx.lineJoin=typeof window<"u"&&window.chrome?"miter":"round";const f=e.fontSize.number;e.letterSpacing===0?this.ctx.strokeText(B.text,B.bounds.left,B.bounds.top+f):this.iterateLettersWithLetterSpacing(B,e.letterSpacing,f,(w,C,F)=>this.ctx.strokeText(w,C,F)),this.ctx.strokeStyle="",this.ctx.lineWidth=0,this.ctx.lineJoin="miter"}break}}})})}}const ip=1e4;class to extends oc{constructor(A,e){super(A,e),this.canvas=e.canvas?e.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),e.canvas||(this.canvas.width=Math.floor(e.width*e.scale),this.canvas.height=Math.floor(e.height*e.scale),this.canvas.style.width=`${e.width}px`,this.canvas.style.height=`${e.height}px`),this.fontMetrics=new Jh(document),this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-e.x,-e.y),this.ctx.textBaseline="bottom",e.imageSmoothing!==void 0&&(this.ctx.imageSmoothingEnabled=e.imageSmoothing),e.imageSmoothingQuality&&(this.ctx.imageSmoothingQuality=e.imageSmoothingQuality),this.backgroundRenderer=new Yh({ctx:this.ctx,context:this.context,canvas:this.canvas,options:{width:e.width,height:e.height,scale:e.scale}}),this.borderRenderer=new Ap({ctx:this.ctx},{path:r=>this.path(r),formatPath:r=>this.formatPath(r)}),this.effectsRenderer=new ep({ctx:this.ctx},{path:r=>this.path(r)}),this.textRenderer=new ap({ctx:this.ctx,context:this.context,options:{scale:e.scale}}),this.context.logger.debug(`Canvas renderer initialized (${e.width}x${e.height}) with scale ${e.scale}`)}async renderStack(A){A.element.container.styles.isVisible()&&await this.renderStackContent(A)}async renderNode(A){if(iA(A.container.flags,16))debugger;A.container.styles.isVisible()&&(await this.renderNodeBackgroundAndBorders(A),await this.renderNodeContent(A))}renderReplacedElement(A,e,r){const s=r.naturalWidth||A.intrinsicWidth,n=r.naturalHeight||A.intrinsicHeight;if(r&&s>0&&n>0){const o=cr(A),a=Qs(e);this.path(a),this.ctx.save(),this.ctx.clip();let c=0,g=0,d=s,B=n,u=o.left,f=o.top,w=o.width,C=o.height;const{objectFit:F}=A.styles,y=w/C,m=d/B;if(F===2)m>y?(C=w/m,f+=(o.height-C)/2):(w=C*m,u+=(o.width-w)/2);else if(F===4)m>y?(d=B*y,c+=(s-d)/2):(B=d/y,g+=(n-B)/2);else if(F===8)d>w?(c+=(d-w)/2,d=w):(u+=(w-d)/2,w=d),B>C?(g+=(B-C)/2,B=C):(f+=(C-B)/2,C=B);else if(F===16){const L=m>y?w:C*m,H=d>w?d:w;L<H?m>y?(C=w/m,f+=(o.height-C)/2):(w=C*m,u+=(o.width-w)/2):(d>w?(c+=(d-w)/2,d=w):(u+=(w-d)/2,w=d),B>C?(g+=(B-C)/2,B=C):(f+=(C-B)/2,C=B))}this.ctx.drawImage(r,c,g,d,B,u,f,w,C),this.ctx.restore()}}async renderNodeContent(A){this.effectsRenderer.applyEffects(A.getEffects(4));const e=A.container,r=A.curves,s=e.styles,n=cr(e);for(const o of e.textNodes)await this.textRenderer.renderTextNode(o,s,n);if(e instanceof vi)try{const o=await this.context.cache.match(e.src),a=this.ctx.imageSmoothingEnabled;s.imageRendering===XA.PIXELATED||s.imageRendering===XA.CRISP_EDGES?(this.context.logger.debug(`Disabling image smoothing for ${e.src} due to CSS image-rendering: ${s.imageRendering===XA.PIXELATED?"pixelated":"crisp-edges"}`),this.ctx.imageSmoothingEnabled=!1):s.imageRendering===XA.SMOOTH&&(this.context.logger.debug(`Enabling image smoothing for ${e.src} due to CSS image-rendering: smooth`),this.ctx.imageSmoothingEnabled=!0),this.renderReplacedElement(e,r,o),this.ctx.imageSmoothingEnabled=a}catch{this.context.logger.error(`Error loading image ${e.src}`)}if(e instanceof Ii&&this.renderReplacedElement(e,r,e.canvas),e instanceof Hi)try{const o=await this.context.cache.match(e.svg);this.renderReplacedElement(e,r,o)}catch{this.context.logger.error(`Error loading svg ${e.svg.substring(0,255)}`)}if(e instanceof Ki&&e.tree){const a=await new to(this.context,{scale:this.options.scale,backgroundColor:e.backgroundColor,x:0,y:0,width:e.width,height:e.height}).render(e.tree);e.width&&e.height&&this.ctx.drawImage(a,0,0,e.width,e.height,e.bounds.left,e.bounds.top,e.bounds.width,e.bounds.height)}if(e instanceof rr){const o=Math.min(e.bounds.width,e.bounds.height);e.type===fs?e.checked&&(this.ctx.save(),this.path([new I(e.bounds.left+o*.39363,e.bounds.top+o*.79),new I(e.bounds.left+o*.16,e.bounds.top+o*.5549),new I(e.bounds.left+o*.27347,e.bounds.top+o*.44071),new I(e.bounds.left+o*.39694,e.bounds.top+o*.5649),new I(e.bounds.left+o*.72983,e.bounds.top+o*.23),new I(e.bounds.left+o*.84,e.bounds.top+o*.34085),new I(e.bounds.left+o*.39363,e.bounds.top+o*.79)]),this.ctx.fillStyle=rA(Li),this.ctx.fill(),this.ctx.restore()):e.type===hs&&e.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(e.bounds.left+o/2,e.bounds.top+o/2,o/4,0,Math.PI*2,!0),this.ctx.fillStyle=rA(Li),this.ctx.fill(),this.ctx.restore())}if(cp(e)&&e.value.length){const[o,a,c]=this.textRenderer.createFontStyle(s),{baseline:g}=this.fontMetrics.getMetrics(a,c);this.ctx.font=o;const d=e instanceof rr&&e.isPlaceholder;this.ctx.fillStyle=rA(d?Bh:s.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=dp(e.styles.textAlign);const B=cr(e);let u=0;switch(e.styles.textAlign){case 1:u+=B.width/2;break;case 2:u+=B.width;break}let f=0;if(e instanceof rr){const C=G(s.fontSize,0);f=(B.height-C)/2}const w=B.add(u,f,0,0);this.ctx.save(),this.path([new I(B.left,B.top),new I(B.left+B.width,B.top),new I(B.left+B.width,B.top+B.height),new I(B.left,B.top+B.height)]),this.ctx.clip(),this.textRenderer.renderTextWithLetterSpacing(new $e(e.value,w),s.letterSpacing,g),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(iA(e.styles.display,2048)){if(e.styles.listStyleImage!==null){const o=e.styles.listStyleImage;if(o.type===0){let a;const c=o.url;try{a=await this.context.cache.match(c),this.ctx.drawImage(a,e.bounds.left-(a.width+10),e.bounds.top)}catch{this.context.logger.error(`Error loading list-style-image ${c}`)}}}else if(A.listValue&&e.styles.listStyleType!==-1){const[o]=this.textRenderer.createFontStyle(s);this.ctx.font=o,this.ctx.fillStyle=rA(s.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right";const a=new HA(e.bounds.left,e.bounds.top+G(e.styles.paddingTop,e.bounds.width),e.bounds.width,oi(s.lineHeight,s.fontSize.number)/2+1);this.textRenderer.renderTextWithLetterSpacing(new $e(A.listValue,a),s.letterSpacing,oi(s.lineHeight,s.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"}}}async renderStackContent(A){if(iA(A.element.container.flags,16))debugger;await this.renderNodeBackgroundAndBorders(A.element);for(const e of A.negativeZIndex)await this.renderStack(e);await this.renderNodeContent(A.element);for(const e of A.nonInlineLevel)await this.renderNode(e);for(const e of A.nonPositionedFloats)await this.renderStack(e);for(const e of A.nonPositionedInlineLevel)await this.renderStack(e);for(const e of A.inlineLevel)await this.renderNode(e);for(const e of A.zeroOrAutoZIndexOrTransformedOrOpacity)await this.renderStack(e);for(const e of A.positiveZIndex)await this.renderStack(e)}mask(A){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.options.width,0),this.ctx.lineTo(this.options.width,this.options.height),this.ctx.lineTo(0,this.options.height),this.ctx.lineTo(0,0),this.formatPath(A.slice(0).reverse()),this.ctx.closePath()}path(A){this.ctx.beginPath(),this.formatPath(A),this.ctx.closePath()}formatPath(A){A.forEach((e,r)=>{const s=MA(e)?e.start:e;r===0?this.ctx.moveTo(s.x,s.y):this.ctx.lineTo(s.x,s.y),MA(e)&&this.ctx.bezierCurveTo(e.startControl.x,e.startControl.y,e.endControl.x,e.endControl.y,e.end.x,e.end.y)})}async renderNodeBackgroundAndBorders(A){this.effectsRenderer.applyEffects(A.getEffects(2));const e=A.container.styles,r=!Ke(e.backgroundColor)||e.backgroundImage.length,s=[{style:e.borderTopStyle,color:e.borderTopColor,width:e.borderTopWidth},{style:e.borderRightStyle,color:e.borderRightColor,width:e.borderRightWidth},{style:e.borderBottomStyle,color:e.borderBottomColor,width:e.borderBottomWidth},{style:e.borderLeftStyle,color:e.borderLeftColor,width:e.borderLeftWidth}],n=lp(xt(e.backgroundClip,0),A.curves);(r||e.boxShadow.length)&&(this.ctx.save(),this.path(n),this.ctx.clip(),Ke(e.backgroundColor)||(this.ctx.fillStyle=rA(e.backgroundColor),this.ctx.fill()),await this.backgroundRenderer.renderBackgroundImage(A.container),this.ctx.restore(),e.boxShadow.slice(0).reverse().forEach(a=>{this.ctx.save();const c=Cs(A.curves),g=a.inset?0:ip,d=Mh(c,-g+(a.inset?1:-1)*a.spread.number,(a.inset?1:-1)*a.spread.number,a.spread.number*(a.inset?-2:2),a.spread.number*(a.inset?-2:2));a.inset?(this.path(c),this.ctx.clip(),this.mask(d)):(this.mask(c),this.ctx.clip(),this.path(d)),this.ctx.shadowOffsetX=a.offsetX.number+g,this.ctx.shadowOffsetY=a.offsetY.number,this.ctx.shadowColor=rA(a.color),this.ctx.shadowBlur=a.blur.number,this.ctx.fillStyle=a.inset?rA(a.color):"rgba(0,0,0,1)",this.ctx.fill(),this.ctx.restore()}));let o=0;for(const a of s)a.style!==0&&!Ke(a.color)&&a.width>0&&(a.style===2?await this.borderRenderer.renderDashedDottedBorder(a.color,a.width,o,A.curves,2):a.style===3?await this.borderRenderer.renderDashedDottedBorder(a.color,a.width,o,A.curves,3):a.style===4?await this.borderRenderer.renderDoubleBorder(a.color,a.width,o,A.curves):await this.borderRenderer.renderSolidBorder(a.color,o,A.curves)),o++}async render(A){this.options.backgroundColor&&(this.ctx.fillStyle=rA(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height));const e=_h(A);return await this.renderStack(e),this.effectsRenderer.applyEffects([]),this.canvas}}const cp=t=>t instanceof Oi||t instanceof Ti?!0:t instanceof rr&&t.type!==hs&&t.type!==fs,lp=(t,A)=>{switch(t){case 0:return Cs(A);case 2:return Dh(A);default:return Qs(A)}},dp=t=>{switch(t){case 1:return"center";case 2:return"right";default:return"left"}};class Bp extends oc{constructor(A,e){super(A,e),this.canvas=e.canvas?e.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=e,this.canvas.width=Math.floor(e.width*e.scale),this.canvas.height=Math.floor(e.height*e.scale),this.canvas.style.width=`${e.width}px`,this.canvas.style.height=`${e.height}px`,this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-e.x,-e.y),this.context.logger.debug(`EXPERIMENTAL ForeignObject renderer initialized (${e.width}x${e.height} at ${e.x},${e.y}) with scale ${e.scale}`)}async render(A){const e=Pn(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,A),r=await gp(e);return this.options.backgroundColor&&(this.ctx.fillStyle=rA(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(r,-this.options.x*this.options.scale,-this.options.y*this.options.scale),this.canvas}}const gp=t=>new Promise((A,e)=>{const r=new Image;r.onload=()=>{A(r)},r.onerror=e,r.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(new XMLSerializer().serializeToString(t))}`});class ic{constructor({id:A,enabled:e}){this.id=A,this.enabled=e,this.start=Date.now()}debug(...A){this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug(this.id,`${this.getTime()}ms`,...A):this.info(...A))}getTime(){return Date.now()-this.start}info(...A){this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info(this.id,`${this.getTime()}ms`,...A)}warn(...A){this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn(this.id,`${this.getTime()}ms`,...A):this.info(...A))}error(...A){this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error(this.id,`${this.getTime()}ms`,...A):this.info(...A))}}ic.instances={};class up{constructor(A,e){if(this.context=A,this._options=e,this._cache=new Map,this._pendingOperations=new Map,this.maxSize=e.maxCacheSize??100,this.maxSize<1)throw new Error("Cache maxSize must be at least 1");this.maxSize>1e4&&this.context.logger.warn(`Cache maxSize ${this.maxSize} is very large and may cause memory issues. Consider using a smaller value (recommended: 100-1000).`)}addImage(A){const e=this._pendingOperations.get(A);if(e)return e;if(this.has(A)){const r=this._cache.get(A);return r&&(r.lastAccessed=Date.now()),Promise.resolve()}if(so(A)||wp(A)){const r=this._addImageInternal(A);return this._pendingOperations.set(A,r),r.finally(()=>{this._pendingOperations.delete(A)}),r}return Promise.resolve()}async _addImageInternal(A){const e=this._options.imageTimeout??15e3,r=new Promise((n,o)=>{setTimeout(()=>{o(new Error(`Image load timeout after ${e}ms: ${A}`))},e)}),s=Promise.race([this.loadImage(A),r]);s.catch(n=>{this.context.logger.error(`Failed to load image ${A}: ${n instanceof Error?n.message:"Unknown error"}`)}),this.set(A,s)}match(A){const e=this._cache.get(A);if(e)return e.lastAccessed=Date.now(),e.value}set(A,e){if(this._cache.has(A)){const r=this._cache.get(A);r.value=e,r.lastAccessed=Date.now();return}this._cache.size>=this.maxSize&&this.evictLRU(),this._cache.set(A,{value:e,lastAccessed:Date.now()})}evictLRU(){let A=null,e=1/0;for(const[r,s]of this._cache.entries())s.lastAccessed<e&&(e=s.lastAccessed,A=r);A&&(this._cache.delete(A),this.context.logger.debug(`Cache: Evicted LRU entry: ${A}`))}size(){return this._cache.size}getMaxSize(){return this.maxSize}clear(){this._cache.clear()}async loadImage(A){const e=this.context.originChecker,r=c=>e.isSameOrigin(c),s=typeof this._options.customIsSameOrigin=="function"?await this._options.customIsSameOrigin(A,r):r(A),n=!ro(A)&&this._options.useCORS===!0&&EA.SUPPORT_CORS_IMAGES&&!s,o=!ro(A)&&!s&&!so(A)&&typeof this._options.proxy=="string"&&EA.SUPPORT_CORS_XHR&&!n;if(!s&&this._options.allowTaint===!1&&!ro(A)&&!so(A)&&!o&&!n)return;let a=A;return o&&(a=await this.proxy(a)),this.context.logger.debug(`Added image ${A.substring(0,256)}`),await new Promise((c,g)=>{const d=new Image;d.onload=()=>c(d),d.onerror=g,(mp(a)||n)&&(d.crossOrigin="anonymous"),d.src=a,d.complete===!0&&setTimeout(()=>c(d),500),this._options.imageTimeout>0&&setTimeout(()=>g(`Timed out (${this._options.imageTimeout}ms) loading image`),this._options.imageTimeout)})}has(A){return this._cache.has(A)}keys(){return Promise.resolve(Object.keys(this._cache))}proxy(A){const e=this._options.proxy;if(!e)throw new Error("No proxy defined");const r=A.substring(0,256);return new Promise((s,n)=>{const o=EA.SUPPORT_RESPONSE_TYPE?"blob":"text",a=new XMLHttpRequest;a.onload=()=>{if(a.status===200)if(o==="text")s(a.response);else{const g=new FileReader;g.addEventListener("load",()=>s(g.result),!1),g.addEventListener("error",d=>n(d),!1),g.readAsDataURL(a.response)}else n(`Failed to proxy resource ${r} with status code ${a.status}`)},a.onerror=n;const c=e.indexOf("?")>-1?"&":"?";if(a.open("GET",`${e}${c}url=${encodeURIComponent(A)}&responseType=${o}`),o!=="text"&&a instanceof XMLHttpRequest&&(a.responseType=o),this._options.imageTimeout){const g=this._options.imageTimeout;a.timeout=g,a.ontimeout=()=>n(`Timed out (${g}ms) proxying ${r}`)}a.send()})}}const fp=/^data:image\/svg\+xml/i,hp=/^data:image\/.*;base64,/i,pp=/^data:image\/.*/i,wp=t=>EA.SUPPORT_SVG_DRAWING||!Cp(t),ro=t=>pp.test(t),mp=t=>hp.test(t),so=t=>t.substr(0,4)==="blob",Cp=t=>t.substr(-3).toLowerCase()==="svg"||fp.test(t);class Qp{constructor(A){if(!A||!A.document)throw new Error("Valid window object required for OriginChecker");if(!A.location||!A.location.href)throw new Error("Window object must have valid location");this.link=A.document.createElement("a"),this.origin=this.getOrigin(A.location.href)}getOrigin(A){return this.link.href=A,this.link.href=this.link.href,this.link.protocol+this.link.hostname+this.link.port}isSameOrigin(A){return this.getOrigin(A)===this.origin}getContextOrigin(){return this.origin}}class ys{constructor(A,e,r){this.windowBounds=e,this.instanceName=`#${ys.instanceCount++}`,this.config=r,this.logger=new ic({id:this.instanceName,enabled:A.logging}),this.originChecker=new Qp(r.window),this.cache=A.cache??r.cache??new up(this,A)}}ys.instanceCount=1;class lr{constructor(A={}){if(this.window=A.window||(typeof window<"u"?window:null),!this.window)throw new Error("Window object is required but not available");this.cspNonce=A.cspNonce,this.cache=A.cache}static fromElement(A,e={}){const r=A.ownerDocument;if(!r)throw new Error("Element is not attached to a document");const s=r.defaultView;if(!s)throw new Error("Document is not attached to a window");return new lr({window:s,...e})}clone(A={}){return new lr({window:A.window||this.window,cspNonce:A.cspNonce??this.cspNonce,cache:A.cache??this.cache})}}function xp(t){console.warn("[html2canvas-pro] setDefaultConfig is deprecated. Pass configuration to html2canvas directly.")}class Up{constructor(A={}){this.config={maxImageTimeout:3e5,allowDataUrls:!0,...A}}validateUrl(A,e="general"){if(!A||typeof A!="string")return{valid:!1,error:"URL must be a non-empty string"};if(A.startsWith("data:"))return this.config.allowDataUrls?{valid:!0,sanitized:A}:{valid:!1,error:"Data URLs are not allowed"};if(A.startsWith("blob:"))return{valid:!0,sanitized:A};try{const r=new URL(A);if(!["http:","https:"].includes(r.protocol))return{valid:!1,error:`Protocol ${r.protocol} is not allowed. Only http and https are permitted.`};if(e==="proxy"&&this.config.allowedProxyDomains&&this.config.allowedProxyDomains.length>0){const s=r.hostname.toLowerCase();if(!this.config.allowedProxyDomains.some(o=>{const a=o.toLowerCase();return s===a||s.endsWith("."+a)}))return{valid:!1,error:`Proxy domain ${r.hostname} is not in the allowed list`}}if(e==="proxy"){if(!this.config.allowLocalhostProxy){const s=r.hostname.toLowerCase();if(s==="localhost"||s==="127.0.0.1"||s==="::1")return{valid:!1,error:"Localhost is not allowed for proxy URLs"};if(this.isPrivateIP(s))return{valid:!1,error:"Private IP addresses are not allowed for proxy URLs"};if(s.startsWith("169.254.")||s.startsWith("fe80:"))return{valid:!1,error:"Link-local addresses are not allowed for proxy URLs"}}return{valid:!0,sanitized:A,requiresRuntimeCheck:!0}}return{valid:!0,sanitized:A}}catch(r){return{valid:!1,error:`Invalid URL format: ${r instanceof Error?r.message:"Unknown error"}`}}}isPrivateIP(A){return[/^0\./,/^10\./,/^100\.(6[4-9]|[7-9][0-9]|1[0-1][0-9]|12[0-7])\./,/^127\./,/^169\.254\./,/^172\.(1[6-9]|2[0-9]|3[0-1])\./,/^192\.0\.0\./,/^192\.0\.2\./,/^192\.168\./,/^198\.(1[8-9])\./,/^198\.51\.100\./,/^203\.0\.113\./,/^2(2[4-9]|3[0-9])\./,/^24[0-9]\./,/^255\.255\.255\.255$/].some(r=>r.test(A))?!0:A.includes(":")?this.isPrivateIPv6(A):!1}isPrivateIPv6(A){const s=A.toLowerCase().trim().replace(/^\[|\]$/g,"").split("%")[0];if(/^(0:){7}1$/.test(s)||s==="::1"||/^(0:){7}0$/.test(s)||s==="::")return!0;const n=this.expandIPv6(s);if(!n)return this.isPrivateIPv6Prefix(s);const o=parseInt(n.substring(0,2),16);if(o>=252&&o<=253)return!0;if(o===254){const a=parseInt(n.substring(2,4),16);if(a>=128&&a<=191)return!0}return o===255}expandIPv6(A){try{if(A.includes("::")){const e=A.split("::");if(e.length>2)return null;const r=e[0]?e[0].split(":"):[],s=e[1]?e[1].split(":"):[],n=8-r.length-s.length;if(n<0)return null;const o=Array(n).fill("0000");return[...r,...o,...s].map(c=>c.padStart(4,"0")).join(":")}else{const e=A.split(":");return e.length!==8?null:e.map(r=>r.padStart(4,"0")).join(":")}}catch{return null}}isPrivateIPv6Prefix(A){return!!(/^fc[0-9a-f]{0,2}:?/i.test(A)||/^fd[0-9a-f]{0,2}:?/i.test(A)||/^fe[89ab][0-9a-f]:?/i.test(A)||/^ff[0-9a-f]{0,2}:?/i.test(A))}validateCspNonce(A){return!A||typeof A!="string"?{valid:!1,error:"CSP nonce must be a non-empty string"}:A.length<16?{valid:!1,error:"CSP nonce is too short (minimum 16 characters recommended)"}:/^[A-Za-z0-9+/=_-]+$/.test(A)?{valid:!0,sanitized:A}:{valid:!1,error:"CSP nonce contains invalid characters"}}validateImageTimeout(A){return typeof A!="number"||isNaN(A)?{valid:!1,error:"Image timeout must be a number"}:A<0?{valid:!1,error:"Image timeout cannot be negative"}:this.config.maxImageTimeout&&A>this.config.maxImageTimeout?{valid:!1,error:`Image timeout ${A}ms exceeds maximum allowed ${this.config.maxImageTimeout}ms`}:{valid:!0,sanitized:A}}validateDimensions(A,e){if(typeof A!="number"||typeof e!="number")return{valid:!1,error:"Dimensions must be numbers"};if(isNaN(A)||isNaN(e))return{valid:!1,error:"Dimensions cannot be NaN"};if(A<=0||e<=0)return{valid:!1,error:"Dimensions must be positive"};const r=32767;return A>r||e>r?{valid:!1,error:`Dimensions exceed maximum allowed (${r}px)`}:{valid:!0,sanitized:{width:A,height:e}}}validateScale(A){return typeof A!="number"||isNaN(A)?{valid:!1,error:"Scale must be a number"}:A<=0?{valid:!1,error:"Scale must be positive"}:A>10?{valid:!1,error:"Scale factor too large (maximum 10x)"}:{valid:!0,sanitized:A}}validateElement(A){return A?typeof A!="object"?{valid:!1,error:"Element must be an object"}:typeof HTMLElement<"u"&&A instanceof HTMLElement?A.ownerDocument?{valid:!0}:{valid:!1,error:"Element must be attached to a document"}:A.ownerDocument?A.ownerDocument.defaultView?{valid:!0}:{valid:!1,error:"Document must be attached to a window (ownerDocument.defaultView required)"}:{valid:!1,error:"Element must be attached to a document (ownerDocument required)"}:{valid:!1,error:"Element is required"}}validateOptions(A){const e=[],r=A.proxy;if(r!=null&&typeof r=="string"&&r.length>0){const s=this.validateUrl(r,"proxy");s.valid||e.push(`Proxy: ${s.error}`)}if(A.imageTimeout!==void 0){const s=this.validateImageTimeout(A.imageTimeout);s.valid||e.push(`Image timeout: ${s.error}`)}if(A.width!==void 0||A.height!==void 0){const s=A.width??800,n=A.height??600,o=this.validateDimensions(s,n);o.valid||e.push(`Dimensions: ${o.error}`)}if(A.scale!==void 0){const s=this.validateScale(A.scale);s.valid||e.push(`Scale: ${s.error}`)}if(A.cspNonce!==void 0){const s=this.validateCspNonce(A.cspNonce);s.valid||e.push(`CSP nonce: ${s.error}`)}if(this.config.customValidator){const s=this.config.customValidator(A,"options");s.valid||e.push(`Custom validation: ${s.error}`)}return e.length>0?{valid:!1,error:e.join("; ")}:{valid:!0}}}function Fp(t={}){return new Up({allowDataUrls:!0,maxImageTimeout:3e5,...t})}class yp{constructor(A,e=!0){this.context=A,this.activeMetrics=new Map,this.completedMetrics=[],this.enabled=e,this.getTime=typeof performance<"u"&&typeof performance.now=="function"?()=>performance.now():()=>Date.now()}start(A,e){this.enabled&&(this.activeMetrics.has(A)&&this.context?.logger.warn(`Performance metric '${A}' already started. Overwriting.`),this.activeMetrics.set(A,{name:A,startTime:this.getTime(),metadata:e}))}end(A){if(!this.enabled)return;const e=this.activeMetrics.get(A);if(!e){this.context?.logger.warn(`Performance metric '${A}' not found. Was start() called?`);return}return e.endTime=this.getTime(),e.duration=e.endTime-e.startTime,this.completedMetrics.push(e),this.activeMetrics.delete(A),this.context?.logger.debug(`⏱️ ${A}: ${e.duration.toFixed(2)}ms`,e.metadata),e}measure(A,e,r){this.start(A,r);try{const s=e();return this.end(A),s}catch(s){throw this.end(A),s}}async measureAsync(A,e,r){this.start(A,r);try{const s=await e();return this.end(A),s}catch(s){throw this.end(A),s}}getMetrics(){return[...this.completedMetrics]}getMetric(A){return this.completedMetrics.find(e=>e.name===A)}getSummary(){const A=this.completedMetrics.reduce((r,s)=>r+(s.duration||0),0),e=this.completedMetrics.map(r=>({name:r.name,duration:r.duration||0,percentage:A>0?((r.duration||0)/A*100).toFixed(1)+"%":"0%"}));return{totalDuration:A,metrics:this.getMetrics(),breakdown:e}}logSummary(){if(!this.enabled||this.completedMetrics.length===0||!this.context)return;const A=this.getSummary();this.context.logger.info(`
|
|
12
|
-
📊 Performance Summary (Total: ${A.totalDuration.toFixed(2)}ms):`),A.breakdown.sort((e,r)=>r.duration-e.duration).forEach(e=>{this.context.logger.info(` ${e.name.padEnd(20)} ${e.duration.toFixed(2).padStart(8)}ms ${e.percentage.padStart(6)}`)})}clear(){this.activeMetrics.clear(),this.completedMetrics.splice(0)}isEnabled(){return this.enabled}getActiveMetrics(){return Array.from(this.activeMetrics.keys())}}const no=(t,A={},e)=>{const r=e||lr.fromElement(t,{cspNonce:A.cspNonce,cache:A.cache});return vp(t,A,r)},bp=t=>{console.warn('[html2canvas-pro] setCspNonce is deprecated. Pass cspNonce in options instead: html2canvas(element, { cspNonce: "..." })'),typeof window<"u"&&xp(new lr({window,cspNonce:t}))};no.setCspNonce=bp;const Ep=t=>{["scale","width","height","imageTimeout","x","y","windowWidth","windowHeight","scrollX","scrollY"].forEach(e=>{const r=t[e];if(r!=null&&typeof r!="number"){const s=Number(r);Number.isNaN(s)||(t[e]=s)}})},vp=async(t,A,e)=>{if(Ep(A),!A.skipValidation){const QA=A.validator||Fp(),q=QA.validateElement(t);if(!q.valid)throw new Error(q.error);const UA=QA.validateOptions(A);if(!UA.valid)throw new Error(`Invalid options: ${UA.error}`)}if(!t||typeof t!="object")throw new Error("Invalid element provided as first argument");const r=t.ownerDocument;if(!r)throw new Error("Element is not attached to a Document");const s=r.defaultView;if(!s)throw new Error("Document is not attached to a Window");const n={allowTaint:A.allowTaint??!1,imageTimeout:A.imageTimeout??15e3,proxy:A.proxy,useCORS:A.useCORS??!1,customIsSameOrigin:A.customIsSameOrigin},o={logging:A.logging??!0,cache:A.cache??e.cache,...n},a=800,c=600,g=0,d=s,B={windowWidth:A.windowWidth??d.innerWidth??a,windowHeight:A.windowHeight??d.innerHeight??c,scrollX:A.scrollX??d.pageXOffset??g,scrollY:A.scrollY??d.pageYOffset??g},u=new HA(B.scrollX,B.scrollY,B.windowWidth,B.windowHeight),f=new ys(o,u,e),w=A.enablePerformanceMonitoring??A.logging??!1,C=new yp(f,w);C.start("total",{width:B.windowWidth,height:B.windowHeight});const F=A.foreignObjectRendering??!1,y={allowTaint:A.allowTaint??!1,onclone:A.onclone,ignoreElements:A.ignoreElements,iframeContainer:A.iframeContainer,inlineImages:F,copyStyles:F,cspNonce:A.cspNonce??e.cspNonce};f.logger.debug(`Starting document clone with size ${u.width}x${u.height} scrolled to ${-u.left},${-u.top}`),C.start("clone");const m=new Ji(f,t,y),L=m.clonedReferenceElement;if(!L)throw new Error("Unable to find element in cloned iframe");const H=await m.toIFrame(r,u);C.end("clone");const{width:v,height:O,left:N,top:W}=Wn(L)||ph(L)?Rl(L.ownerDocument):Hr(f,L),R=Ip(f,L,A.backgroundColor),cA={canvas:A.canvas,backgroundColor:R,scale:A.scale??s.devicePixelRatio??1,x:(A.x??0)+N,y:(A.y??0)+W,width:A.width??Math.ceil(v),height:A.height??Math.ceil(O),imageSmoothing:A.imageSmoothing,imageSmoothingQuality:A.imageSmoothingQuality};let xA,M;try{return F?(f.logger.debug("Document cloned, using foreign object rendering"),C.start("render-foreignobject"),xA=await new Bp(f,cA).render(L),C.end("render-foreignobject")):(f.logger.debug(`Document cloned, element located at ${N},${W} with size ${v}x${O} using computed rendering`),f.logger.debug("Starting DOM parsing"),C.start("parse"),M=Ri(f,L),C.end("parse"),R===M.styles.backgroundColor&&(M.styles.backgroundColor=Be.TRANSPARENT),f.logger.debug(`Starting renderer for element at ${cA.x},${cA.y} with size ${cA.width}x${cA.height}`),C.start("render"),xA=await new to(f,cA).render(M),C.end("render")),C.start("cleanup"),(A.removeContainer??!0)&&(Ji.destroy(H)||f.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),C.end("cleanup"),C.end("total"),f.logger.debug("Finished rendering"),w&&C.logSummary(),xA}finally{M&&M.restoreTree()}},Ip=(t,A,e)=>{const r=A.ownerDocument,s=r.documentElement?ft(t,getComputedStyle(r.documentElement).backgroundColor):Be.TRANSPARENT,n=r.body?ft(t,getComputedStyle(r.body).backgroundColor):Be.TRANSPARENT,o=typeof e=="string"?ft(t,e):e===null?Be.TRANSPARENT:4294967295;return A===r.documentElement?Ke(s)?Ke(n)?o:n:s:o},dr=2147e6,cc=dr,At=dr,Hp=dr-100,Sp=dr-50,Lp=dr-150,ne="data-vg-pin-id",Tp=()=>{const t=window.innerWidth;return t<768?"mobile":t<1024?"tablet":"desktop"},lc=(t,A)=>{if(!t)return"";try{const e=new Date(t);return isNaN(e.getTime())?"":new Intl.DateTimeFormat(A==="es"?"es-ES":"en-US",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1}).format(e)}catch{return""}},dc=({url:t,className:A,style:e,tooltipStyle:r,onHover:s})=>{const n=Q.useRef(null),o=()=>{if(!n.current||!s)return;const g=n.current.getBoundingClientRect(),d=g.top,B=window.innerHeight-g.bottom,u=d<140&&B>d?"bottom":"top";s({url:t,x:g.left+g.width/2,y:u==="top"?g.top:g.bottom,direction:u})},a=g=>g.toLowerCase().replace(/\/$/g,"").replace(/\/(?:[0-9]+|(?:[0-9a-f]{24}))(?=\/|$)/g,"/:id"),c=()=>{try{const g=a(window.location.pathname),d=new URL(t),B=a(d.pathname);return g===B||g.startsWith(B)||B.startsWith(g)}catch{return!1}};return i.jsxs("div",{ref:n,className:`vg-url-tag ${A||""}`,style:{...e,opacity:c()?1:.6,borderColor:c()?"var(--vg-primary)":"#e2e8f0"},onMouseEnter:o,onMouseMove:o,onMouseLeave:()=>s?.(null),children:[i.jsx(He,{"data-vg-id":"353251b6","data-source-path":"/src/components/ViewGateOverlay.tsx:150",size:e?.fontSize?parseInt(e.fontSize)+1:10}),i.jsx("span",{"data-vg-id":"1b724dd0","data-source-path":"/src/components/ViewGateOverlay.tsx:151",style:{maxWidth:e?.maxWidth||"150px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:new URL(t).pathname})]})},Br=t=>{const A=[],e=[],r=[];let s=t,n=!1;for(;s&&s.nodeType===Node.ELEMENT_NODE;){const o=s.localName.toLowerCase();let a=1,c=s.previousElementSibling;for(;c;)c.localName.toLowerCase()===o&&a++,c=c.previousElementSibling;const g=o==="body"||o==="head"||o==="html"?o:`${o}:nth-of-type(${a})`;if(r.unshift(g),!n){const d=s.getAttribute("data-testid")||s.getAttribute("data-qa");if(d){const B=s.hasAttribute("data-testid")?"data-testid":"data-qa";e.push(`[${B}="${d}"]`)}s.id&&!s.id.startsWith("vg-")&&!s.id.includes(":")?(A.unshift(`#${s.id}`),n=!0):d?(A.unshift(`[${s.hasAttribute("data-testid")?"data-testid":"data-qa"}="${d}"]`),n=!0):A.unshift(g)}if(s=s.parentElement,o==="html")break}return{selector:A.join(" > "),fallbacks:e,vgPath:r.join(" > ")}},Bc=t=>{const{vgPath:A}=Br(t);return{vgPath:A,classHash:t.className,parentTag:t.parentElement?.tagName.toLowerCase(),neighborCount:t.parentElement?.children.length,ariaLabel:t.getAttribute("aria-label")||t.getAttribute("title")||void 0,role:t.getAttribute("role")||void 0,name:t.getAttribute("name")||void 0,type:t.getAttribute("type")||void 0,placeholder:t.getAttribute("placeholder")||void 0,testId:t.getAttribute("data-testid")||t.getAttribute("data-qa")||void 0,textSnippet:(t.innerText||"").slice(0,50).trim()}},Op=t=>{let A=t;for(;A;){const e=window.getComputedStyle(A),r=e.backgroundColor,s=e.backgroundImage;if(r&&r!=="rgba(0, 0, 0, 0)"&&r!=="transparent"||s&&s!=="none")return{backgroundColor:r,backgroundImage:s,background:e.background};A=A.parentElement}return{backgroundColor:"#ffffff",backgroundImage:"none",background:"#ffffff"}},Kp=(()=>{let t=null,A=null;return e=>{if(!e||typeof window>"u"||typeof document>"u")return e;if(e.includes("oklch")||e.includes("oklab")||e.includes("lab(")||e.includes("lch(")||e.includes("color("))try{if(t||(t=document.createElement("canvas"),t.width=1,t.height=1),A||(A=t.getContext("2d",{willReadFrequently:!0})),A){A.fillStyle="#000000",A.fillStyle=e;const n=A.fillStyle;if(n&&!n.includes("oklch")&&!n.includes("oklab"))return n}const r=document.createElement("div");r.style.color=e,document.body.appendChild(r);const s=getComputedStyle(r).color;return document.body.removeChild(r),s&&!s.includes("oklch")?s:"rgb(0,0,0)"}catch{return"rgb(0,0,0)"}return e}})(),Dp=t=>{const A=window.getComputedStyle(t),e={};return["display","position","margin","padding","font-size","color","background-color","width","height","z-index"].forEach(s=>{const n=A.getPropertyValue(s);e[s]=Kp(n)}),e},Rp=t=>{const e=Object.keys(t).find(n=>n.startsWith("__reactFiber$")||n.startsWith("__reactInternalInstance$"));if(!e)return"";const r=[];let s=t[e];for(;s;){const n=s.type;if(typeof n=="function"){const o=n.displayName||n.name;o&&!o.includes("ViewGate")&&!r.includes(o)&&r.unshift(o)}s=s.return}return r.join(" > ")||"Generic Component"},bs=t=>{if(!t||t.id==="viewgate-ui"||t.id==="viewgate-shadow-host"||t.closest("#viewgate-shadow-host"))return!1;if(t.getAttribute("role")==="dialog"||t.getAttribute("aria-modal")==="true"||t.classList.contains("modal")||t.classList.contains("modal-content"))return!0;const A=window.getComputedStyle(t),e=t.getBoundingClientRect(),r=t.getAttribute("role");if(r&&["listbox","menu","combobox","tooltip","option"].includes(r)||e.width<120&&e.height<120)return!1;const n=parseInt(A.zIndex)||0,o=A.position==="fixed"||A.position==="absolute",a=e.width>window.innerWidth*.4&&e.height>window.innerHeight*.4,c=Math.abs(e.left+e.width/2-window.innerWidth/2)<50,g=t.getAttribute("class")||"",d=g.toLowerCase().includes("modal")||g.toLowerCase().includes("dialog");return!!(o&&n>=100&&(a||c||d))},Es=t=>{let A=t;for(;A&&A!==document.body;){if(bs(A))return A;A=A.parentElement}return null},ye=t=>{if(!t.isConnected)return!1;const A=window.getComputedStyle(t);if(A.display==="none"||A.visibility==="hidden"||A.opacity==="0")return t.tagName!=="BODY"&&t.tagName,!1;if(t.offsetWidth===0||t.offsetHeight===0)return!1;let e=t.parentElement;for(;e;){const s=window.getComputedStyle(e);if(s.display==="none"||s.visibility==="hidden"||s.opacity==="0")return!1;e=e.parentElement}const r=t.getBoundingClientRect();return!(r.width===0||r.height===0)},gc=(t,A=document)=>{const e=A.querySelector(t);if(e)return e;const r=A.querySelectorAll("*");for(const s of Array.from(r)){const n=s.shadowRoot;if(n){const o=gc(t,n);if(o)return o}}return null},uc=(t,A)=>{let e=document.elementFromPoint(t,A);for(;e&&e.shadowRoot;){const r=e.shadowRoot.elementFromPoint(t,A);if(!r||r===e)break;e=r}return e},kp=t=>{if(!t.tag)return null;const A=Array.from(document.getElementsByTagName(t.tag));let e=null,r=0;for(const s of A){if(!gr(s,t))continue;let n=0;const o=s.getAttribute("placeholder"),a=t.attributes?.placeholder||t.fingerprint?.placeholder;a&&o===a&&(n+=6);const c=s.getAttribute("type"),g=t.attributes?.type||t.fingerprint?.type;if(g&&c===g&&(n+=2),s.innerText?.trim()===t.text.trim()&&(n+=5),t.fingerprint?.vgPath){const{vgPath:d}=Br(s);(d===t.vgPath||t.fingerprint?.vgPath===d)&&(n+=10)}n>r&&n>=7&&(r=n,e=s)}return e},gr=(t,A)=>{if(t.tagName.toLowerCase()!==A.tag.toLowerCase())return!1;const e=t.getAttribute("placeholder"),r=A.attributes?.placeholder||A.fingerprint?.placeholder;if(r&&e&&r!==e)return!1;const s=t.getAttribute("type"),n=A.attributes?.type||A.fingerprint?.type;return!(n&&s&&n!==s)},fc=(t,A)=>{if(A){const o=Array.from(document.querySelectorAll(`[${ne}="${A}"]`));if(o.length>0){const a=o.filter(c=>gr(c,t));if(a.length===0)o.forEach(c=>c.removeAttribute(ne));else{const c=a.find(d=>{const{vgPath:B}=Br(d);return B===t.vgPath||t.fingerprint?.vgPath===B}),g=c&&ye(c)?c:a.find(d=>!(!ye(d)||t.metadata?.isModal&&!d.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content')));return g?(o.forEach(d=>{d!==g&&d.removeAttribute(ne)}),g):null}}}if(t.vgPath)try{const o=document.querySelector(t.vgPath);if(o&&gr(o,t)&&ye(o)&&(!t.metadata?.isModal||Es(o)))return o}catch{}const r=(t.selector?Array.from(document.querySelectorAll(t.selector)):[]).filter(o=>gr(o,t));let s=r.find(o=>{const{vgPath:a}=Br(o);return a===t.vgPath||t.fingerprint?.vgPath===a})||r[0]||null;if(s&&ye(s))if(t.metadata?.isModal&&!Es(s))s=null;else return s;if(t.fallbackSelectors)for(const o of t.fallbackSelectors){const a=gc(o);if(a&&gr(a,t)&&ye(a)){if(t.metadata?.isModal&&!Es(a))continue;return a}}const n=kp(t);return n&&ye(n)?t.metadata?.isModal&&!Es(n)?null:n:null},oo=t=>({tag:t.tagName.toLowerCase(),text:(t.innerText||t.getAttribute("placeholder")||"").slice(0,50).trim(),role:t.getAttribute("role")||void 0,type:t.getAttribute("type")||void 0}),hc=t=>{if(!t)return"";let A=t.replace(/<path[^>]*d="([^"]{50,})"[^>]*\/?>/gi,(e,r)=>e.replace(r,`${r.substring(0,20)}...[STRIPPED_${r.length}]`));return A=A.replace(/<polygon[^>]*points="([^"]{50,})"[^>]*\/?>/gi,(e,r)=>e.replace(r,`${r.substring(0,20)}...[STRIPPED_${r.length}]`)),A},Gp=t=>{const A=t.parentElement;if(!A)return;const e=Array.from(A.children).filter(o=>o!==t).slice(0,5).map(o=>oo(o)),r=Array.from(A.children),s=r.indexOf(t);let n="middle";return s===0&&(n="start"),s===r.length-1&&(n="end"),{target:{...oo(t),location:`${n} of ${A.tagName.toLowerCase()}`},parent:oo(A),siblings:e}},pc=(t,A)=>{const e=t.getAttribute("data-vg-id")||void 0;let r;const n=Object.keys(t).find(y=>y.startsWith("__reactFiber$")||y.startsWith("__reactInternalInstance$"));if(n){let y=t[n];for(;y;){if(y._debugSource){const{fileName:m,lineNumber:L,columnNumber:H}=y._debugSource;r=`${m}:${L}${H?":"+H:""}`;break}y=y.return}}const o=Bc(t),a={vgId:e?1:0,fiber:r?.8:0,fingerprint:.5+(o.testId?.3:0)+(o.ariaLabel?.1:0)};let c=t.getAttribute("data-source-path")||r||"unknown:0";const g=Rp(t),{selector:d,fallbacks:B,vgPath:u}=Br(t),f={};["placeholder","aria-label","name","type","alt","title","value","role","data-testid"].forEach(y=>{const m=t.getAttribute(y);m&&(f[y]=m)});const w=(()=>{let y=t;for(;y&&y!==document.body;){if(bs(y))return!0;y=y.parentElement}return!1})();let C;w&&A&&!A.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content')&&(C=pc(A));const F=`${t.tagName.toLowerCase()}-${(t.innerText||"").slice(0,20).replace(/\s+/g,"_")}-${d.split(" > ").slice(-1)}`;return{tag:t.tagName.toLowerCase(),id:t.id||"",classes:t.className||"",text:(t.innerText||"").slice(0,100).trim(),selector:d,vgPath:u,vgId:e,outerHtml:hc(t.outerHTML),parentContext:t.parentElement?`<${t.parentElement.tagName.toLowerCase()} ${Array.from(t.parentElement.attributes).map(y=>`${y.name}="${y.value}"`).join(" ").slice(0,500)}>`:"N/A",componentPath:g,signature:F,source:c,attributes:f,confidence:a,fallbackSelectors:[...new Set(B)].slice(0,5),domPath:[],viewportSize:{width:window.innerWidth,height:window.innerHeight},uiContext:Gp(t),fingerprint:Bc(t),metadata:{hint:`Edit ${c.split(":")[0]} at line ${c.split(":")[1]||"?"}`,computedStyles:Dp(t),viewportBreakpoint:Tp(),outerHtml:hc(t.outerHTML).slice(0,2e3),scrollPosition:{x:window.scrollX,y:window.scrollY},isModal:w,triggerReference:C}}},wc=()=>{const{mutate:t}=No(),{addToast:A,language:e,t:r,apiKey:s,baseUrl:n,dashboardUrl:o,disableViewGate:a,hasActiveToasts:c}=Zo(),[g,d]=Q.useState(typeof window<"u"?window.location.pathname+window.location.search:"/"),B=Q.useMemo(()=>typeof window>"u"?!1:window.location.href.includes("viewgate-backlog"),[g]);Q.useEffect(()=>{const l=()=>d(window.location.pathname+window.location.search);window.addEventListener("popstate",l);const h=window.history.pushState,p=window.history.replaceState;return window.history.pushState=function(...x){h.apply(this,x),setTimeout(l,0)},window.history.replaceState=function(...x){p.apply(this,x),setTimeout(l,0)},()=>{window.removeEventListener("popstate",l),window.history.pushState=h,window.history.replaceState=p}},[]);const[u,f]=Q.useState(!1),[w,C]=Q.useState("medium"),[F,y]=Q.useState("medium"),[m,L]=Q.useState("all"),[H,v]=Q.useState(null),[O,N]=Q.useState(null),[W,R]=Q.useState(""),[cA,xA]=Q.useState(!1),[M,QA]=Q.useState([]),[q,UA]=Q.useState([{name:r.figmaPrimaryDesign,link:""}]),[J,$A]=Q.useState([]),[qA,Ve]=Q.useState([]),[Ae,U]=Q.useState(null),[k,X]=Q.useState(!1),[AA,ue]=Q.useState(""),[ee,z]=Q.useState(!1),[zA,Ut]=Q.useState("down");Q.useRef(null);const[fe,Me]=Q.useState(!1),[NA,he]=Q.useState(!1),[FA,et]=Q.useState([]),[_A,Y]=Q.useState(null),[eA,lA]=Q.useState(""),[uA,oe]=Q.useState(!1),[PA,fA]=Q.useState({}),[dA,be]=Q.useState(null),[pe,ur]=Q.useState(!1),[ae,KA]=Q.useState(null),[we,vs]=Q.useState([]),[tA,tt]=Q.useState(()=>typeof window>"u"?null:localStorage.getItem("vg_token")||sessionStorage.getItem("vg_token")),[LA,io]=Q.useState(()=>{if(typeof window>"u")return null;const l=localStorage.getItem("vg_user")||sessionStorage.getItem("vg_user");return l&&l!=="undefined"?JSON.parse(l):null}),[fr,co]=Q.useState(()=>typeof window>"u"?null:localStorage.getItem("vg_role")||sessionStorage.getItem("vg_role")),[rt,mc]=Q.useState(""),[lo,Cc]=Q.useState(!1),[Ew,_p]=Q.useState(!1),[hr,Qc]=Q.useState(!1),[Is,xc]=Q.useState(!1),[Hs,Pp]=Q.useState(!1),[Ss,Uc]=Q.useState(!0),jp=async l=>{if(l&&l.preventDefault(),!(!rt.trim()||!n)){Cc(!0);try{const h=await fetch(`${n}/api/auth/me`,{headers:{Authorization:`Bearer ${rt.trim()}`,"x-api-key":s||""}});if(!h.ok){const D=await h.json().catch(()=>({}));throw new Error(D.error||D.message||"Invalid token")}const p=await h.json();console.log("[ViewGate] Auth data received:",p);const x=p.user||(p.email?p:null),E=p.role||x?.role||"dev";if(console.log("[ViewGate] Identified as:",x?.email,x?.name,"Role:",E),!x)throw new Error("User not found in token");tt(rt.trim()),io(x),co(E),localStorage.setItem("vg_token",rt.trim()),x&&localStorage.setItem("vg_user",JSON.stringify(x)),E&&localStorage.setItem("vg_role",E),A(e==="es"?"Sesión iniciada correctamente":r.successHeader,"success"),mc(""),xc(!1),Qc(!1),_p(!1),Bo()}catch(h){let p=h.message||(e==="es"?"Clave inválida o expirada":"Invalid or expired key");p.toLowerCase().includes("invalid or expired token")&&(p=r.invalidToken),A(p,"error")}finally{Cc(!1)}}},pr=Q.useCallback(()=>{console.log("[VIEWGATE_WRAPPER] Clearing session"),tt(null),io(null),co(null),Uc(!1),sessionStorage.removeItem("vg_token"),sessionStorage.removeItem("vg_user"),sessionStorage.removeItem("vg_role"),localStorage.removeItem("vg_token"),localStorage.removeItem("vg_user"),localStorage.removeItem("vg_role");const l=n;t(h=>typeof h=="string"&&l&&h.startsWith(l),void 0,{revalidate:!1}),et([]),KA(null),f(!1),N(null),R(""),he(!1),A(e==="es"?"Sesión finalizada o inválida":"Session ended or invalid","error")},[n,e]);Q.useEffect(()=>{const l=h=>{if(h.data?.type?.startsWith("VIEWGATE_")&&console.log("[VIEWGATE_WRAPPER] Received message:",h.data.type,h.data),h.data?.type==="VIEWGATE_AUTH_SUCCESS"||h.data?.type==="VIEWGATE_SILENT_AUTH"){const{token:p,user:x,role:E,error:D}=h.data;if(console.log("[VIEWGATE_WRAPPER] Auth process:",{type:h.data.type,hasToken:!!p,hasUser:!!x}),D==="NO_SESSION")return;const K=sessionStorage.getItem("vg_token");if(p&&p!==K||!p&&K){console.log("[VIEWGATE_WRAPPER] Session sync detected change, clearing caches");const T=n;t(BA=>typeof BA=="string"&&T&&BA.startsWith(T),void 0,{revalidate:!0}),et([])}p&&(tt(p),sessionStorage.setItem("vg_token",p),localStorage.setItem("vg_token",p),x&&(io(x),co(E||x.role||"dev"),sessionStorage.setItem("vg_user",JSON.stringify(x)),localStorage.setItem("vg_user",JSON.stringify(x))),h.data.type==="VIEWGATE_AUTH_SUCCESS"&&A(e==="es"?"Sesión iniciada correctamente":"Logged in successfully","success"))}if(h.data?.type==="VIEWGATE_LOGOUT"){if(console.log("[VIEWGATE_WRAPPER] Logout message received"),sessionStorage.getItem("vg_token")){console.log("[VIEWGATE_WRAPPER] Protective logout: Ignoring logout since we have a valid manual session.");return}pr()}};return window.addEventListener("message",l),()=>window.removeEventListener("message",l)},[e,pr,n]);const Bo=Q.useCallback(()=>{if(!s||!n||Is)return;const l={"x-api-key":s};tA&&(l.Authorization=`Bearer ${tA}`),fetch(`${n}/api/projects/settings-check`,{headers:l}).then(h=>{if(h.status===403)throw pr(),new Error("Unauthorized");return h.json()}).then(h=>{h.projectId&&U(h.projectId),typeof h.isFigmaConnected=="boolean"&&X(h.isFigmaConnected),typeof h.hasEndpoints=="boolean"&&Pp(h.hasEndpoints),xc(!0)}).catch(h=>{h.message!=="Unauthorized"&&console.error("Failed to fetch project settings-check",h)})},[s,n,Is]),go=Q.useCallback(()=>{if(!s||!n||hr)return;const l={"x-api-key":s};tA&&(l.Authorization=`Bearer ${tA}`),fetch(`${n}/api/projects/endpoints`,{headers:l}).then(h=>{if(h.status===403)throw pr(),new Error("Unauthorized");return h.json()}).then(h=>{h.endpoints&&Array.isArray(h.endpoints)?Ve(h.endpoints):Array.isArray(h)&&Ve(h),typeof h.isFigmaConnected=="boolean"&&X(h.isFigmaConnected),Qc(!0)}).catch(h=>{h.message!=="Unauthorized"&&console.error("Failed to fetch project endpoints",h)})},[s,n,hr]);Q.useEffect(()=>{(u||tA)&&(Is||Bo())},[u,tA,Is,Bo]),Q.useEffect(()=>{ee&&!hr&&go()},[ee,hr,go]),Q.useEffect(()=>{if(M.length===0)return;const l=["frontend"];Hs&&l.push("backend"),k&&l.push("ux");const h=M.filter(p=>l.includes(p));h.length!==M.length&&QA(h)},[qA.length,k,M]);const Fc=Q.useCallback(async l=>{const h={"x-api-key":s};tA&&(h.Authorization=`Bearer ${tA}`);const p=await fetch(l,{headers:h});if(!p.ok){p.status===403&&pr();const x=await p.json().catch(()=>({}));let E=x.message||x.error||"Fetch failed";E.toLowerCase().includes("invalid or expired token")&&(E=r.invalidToken);const D=new Error(E);throw D.status=p.status,D}return Uc(!0),p.json()},[s,tA]),Wp=Q.useMemo(()=>B?"backlog":"pending,todo,in_progress,review,ready_for_review,bug_fixing",[B]),{data:Ls,isLoading:Ts,error:yc}=Po(s?`${n}/api/projects/active-sprint`:null,Fc,{revalidateOnFocus:!0,revalidateOnMount:!0,dedupingInterval:6e4}),{data:wr,isLoading:st,mutate:Os}=Po(s&&(Ls||B)?`${n}/api/annotations?status=${Wp}`:null,Fc,{refreshInterval:3e4,revalidateOnFocus:!0,dedupingInterval:5e3}),[nt,bc]=Q.useState(null),[Ft,vw]=Q.useState(null),Ec=Q.useRef(FA);Ec.current=FA;const[TA,Ks]=Q.useState(null),vc=Q.useRef(null),[yt,Xp]=Q.useState([]),Ic=Q.useMemo(()=>{const l=(AA||"").toLowerCase().trim();return l?qA.filter(h=>{const p=h.path&&h.path.toLowerCase().includes(l),x=h.description&&h.description.toLowerCase().includes(l),E=h.method&&h.method.toLowerCase().includes(l);return p||x||E}):qA},[qA,AA]),Hc=Q.useMemo(()=>{const l={},h=e==="es"?"Seleccionados":"Selected";return Ic.forEach(p=>{const x=`${p.method}|${p.path}`;J.includes(x)&&(l[h]||(l[h]={name:h,endpoints:[]}),l[h].endpoints.push(p));const D=(p.path||"").split("/").filter(BA=>BA&&!["api","v1.0","v2","rest"].includes(BA.toLowerCase()));let K=D.length>0?D[0]:"General";K=K.replace(/([a-z])([A-Z])/g,"$1 $2"),K=K.replace(/([A-Z])([A-Z][a-z])/g,"$1 $2"),K=K.charAt(0).toUpperCase()+K.slice(1),l[K]||(l[K]={name:K,endpoints:[]});const T=l[K];T&&T.endpoints.push(p)}),Object.values(l).sort((p,x)=>p.name===h?-1:x.name===h||p.name==="General"?1:x.name==="General"?-1:p.name.localeCompare(x.name))},[Ic,J,e]),uo=Q.useMemo(()=>{let l=Array.isArray(FA)?FA:[];if(dA){const p=yt.find(x=>x.annotations&&Array.isArray(x.annotations)&&x.annotations.some(E=>E._id===dA));p?l=p.annotations:l=l.filter(x=>x._id===dA)}return l=l.filter(p=>p.status!=="completed"&&p.status!=="done"),window.location.href.includes("viewgate-backlog")||(TA==="pending"?l=l.filter(p=>p.status!=="ready_for_review"):TA==="ready"&&(l=l.filter(p=>p.status==="ready_for_review"))),m!=="all"&&(l=l.filter(p=>(p.priority||"medium")===m)),l},[dA,FA,yt,TA,m]);Q.useEffect(()=>{dA&&uo.length===0&&!st&&be(null)},[dA,uo.length,st]);const[bt,zp]=Q.useState(()=>{if(typeof window>"u")return{bottom:30,right:30};const l=localStorage.getItem("vg-bar-pos");return l?JSON.parse(l):{bottom:30,right:30}}),[mr,Sc]=Q.useState(!1),Ee=Q.useRef(null),Jp=l=>{l.preventDefault(),l.stopPropagation();const h=l.currentTarget.parentElement?.getBoundingClientRect();h&&(Sc(!0),Ee.current={x:l.clientX,y:l.clientY,bottom:bt.bottom,right:bt.right,width:h.width,height:h.height})};Q.useEffect(()=>{if(!mr)return;const l=p=>{if(mr&&Ee.current){const x=p.clientX-Ee.current.x,E=p.clientY-Ee.current.y;let D=Ee.current.bottom-E,K=Ee.current.right-x;const T=10;D=Math.max(T,Math.min(window.innerHeight-Ee.current.height-T,D)),K=Math.max(T,Math.min(window.innerWidth-Ee.current.width-T,K)),zp({bottom:D,right:K})}},h=()=>{mr&&(Sc(!1),localStorage.setItem("vg-bar-pos",JSON.stringify(bt)),Ee.current=null)};return window.addEventListener("mousemove",l),window.addEventListener("mouseup",h),()=>{window.removeEventListener("mousemove",l),window.removeEventListener("mouseup",h)}},[mr,bt]);const[Et,Ds]=Q.useState(null),[Lc,Tc]=Q.useState(""),[vt,fo]=Q.useState([]),[ot,Cr]=Q.useState([]),[Ne,Rs]=Q.useState([]),[ks,Oc]=Q.useState(!1);Q.useEffect(()=>{Et&&Rs(J)},[J,Et]);const[Iw,Hw]=Q.useState({}),ho=Q.useRef(null),It=Q.useRef(null),po=Q.useRef(null),Gs=Q.useRef(!1),Kc=Q.useCallback(()=>{typeof window>"u"||Gs.current||(It.current&&cancelAnimationFrame(It.current),It.current=requestAnimationFrame(()=>{It.current=null,Gs.current=!0,po.current;const l=Ec.current,h=Array.isArray(l)?l:[],p=new Set(h.map(j=>j._id));document.querySelectorAll(`[${ne}]`).forEach(j=>{const yA=j.getAttribute(ne);yA&&!p.has(yA)&&j.removeAttribute(ne)});const x=Array.from(document.querySelectorAll('[role="dialog"], [aria-modal="true"], [class*="modal" i], [class*="dialog" i], .fixed, .modal-backdrop, .fixed.inset-0')),E=x.find(j=>bs(j)&&ye(j));let D=!!E;console.log("[ViewGate Debug] Modal Detection:",{potentialModals:x.length,activeModal:E,isAnyModalOpen:D});const K=new Map;h.forEach(j=>{if(!j||!j.reference)return;try{const RA=()=>{const ve=window.location.pathname.toLowerCase().replace(/\/$/g,"").replace(/\/(?:[0-9]+|(?:[0-9a-f]{24}))(?=\/|$)/g,"/:id"),_e=new URLSearchParams(window.location.search);_e.delete("viewgate"),_e.sort();const Ht=_e.toString();return Ht?`${ve}?${Ht}`:ve},OA=ve=>{try{const _e=new URL(ve),Ht=_e.pathname.toLowerCase().replace(/\/$/g,"").replace(/\/(?:[0-9]+|(?:[0-9a-f]{24}))(?=\/|$)/g,"/:id"),St=new URLSearchParams(_e.search);St.delete("viewgate"),St.sort();const Qr=St.toString();return Qr?`${Ht}?${Qr}`:Ht}catch{return""}},kA=RA(),vA=OA(j.url);if(kA!==vA)return}catch{return}const yA=!!j.reference.metadata?.isModal;let nA=fc(j.reference,j._id);if(console.log(`[ViewGate Debug] Processing Pin [${j._id}]:`,{isModalTarget:yA,targetEl:nA,isVisible:nA?ye(nA):!1}),!nA||!ye(nA))return;let sA=!1;if(yA?(sA=!0,D=!0,console.log(`[ViewGate Debug] Pin [${j._id}] Modal Open Check: isModalTarget=true`)):(sA=!D,console.log(`[ViewGate Debug] Pin [${j._id}] No Modal Check: !isAnyModalOpen=${sA}`)),!sA)return;const hA=nA.getAttribute(ne);hA!==j._id&&(document.querySelectorAll(`[${ne}="${j._id}"]`).forEach(RA=>{RA.removeAttribute(ne)}),hA||nA.setAttribute(ne,j._id));const DA=K;DA.has(nA)||DA.set(nA,{anns:[]}),DA.get(nA).anns.push(j)});const T=[];(j=>{j.forEach((yA,nA)=>{const{anns:sA}=yA,hA=nA.getBoundingClientRect(),DA=hA.left+hA.width/2,RA=hA.top+hA.height/2;if(DA>=0&&DA<=window.innerWidth&&RA>=0&&RA<=window.innerHeight){const OA=document.elementFromPoint(DA,RA),kA=document.getElementById("viewgate-shadow-host");if(OA&&!nA.contains(OA)&&OA!==kA&&!kA?.contains(OA))return}T.push({id:sA[0]._id,element:nA,rect:hA,annotations:sA.sort((OA,kA)=>new Date(kA.timestamp||kA.createdAt).getTime()-new Date(OA.timestamp||OA.createdAt).getTime()),isModal:!!sA[0].reference?.metadata?.isModal})})})(K),Xp(T),Gs.current=!1}))},[ae]);Q.useEffect(()=>{if(wr){const l=Array.isArray(wr)?wr:wr?.data||[];if(Array.isArray(l)){const h=l.reduce((p,x)=>p.find(D=>D._id===x._id)?p:p.concat([x]),[]);et(h)}}else st||et([])},[wr,st]),Q.useEffect(()=>{KA(Ls||null)},[Ls]),Q.useEffect(()=>{NA&&FA.length===0&&!st&&he(!1)},[NA,FA.length,st]),Q.useEffect(()=>{let l=null;const h=()=>{Gs.current||Kc()},p=new MutationObserver(D=>{D.some(T=>T.type!=="attributes"||T.attributeName!==ne&&!T.target.parentElement?.closest("#viewgate-shadow-host"))&&(l&&clearTimeout(l),l=setTimeout(()=>{h(),setTimeout(h,350)},32))});po.current=p;const x=new ResizeObserver(()=>h()),E=()=>h();return h(),p.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0}),x.observe(document.documentElement),window.addEventListener("scroll",E,{capture:!0,passive:!0}),()=>{l&&clearTimeout(l),p.disconnect(),x.disconnect(),window.removeEventListener("scroll",E,!0),It.current&&cancelAnimationFrame(It.current),po.current=null}},[u,FA,Kc,NA,dA,g]);const wo=Q.useCallback(l=>{let h=l;for(;h&&h!==document.body;){if(bs(h))return h;h=h.parentElement}return null},[]);Q.useEffect(()=>{const l=h=>{const p=h.target;p&&(wo(p)||(vc.current=p))};return window.addEventListener("mousedown",l,!0),()=>window.removeEventListener("mousedown",l,!0)},[wo]),Q.useEffect(()=>{ho.current=document.getElementById("viewgate-shadow-host")},[]);const mo=Q.useCallback(l=>{if(!u||O)return;const h=uc(l.clientX,l.clientY);if(!h||ho.current?.contains(h)||h.closest(".vg-no-capture")){v(null);return}const p=h.getBoundingClientRect();v({tag:h.tagName.toLowerCase(),source:h.getAttribute("data-source-path")||"unknown:0",rect:p,element:h,previewText:(h.innerText||"").slice(0,100)||(h.getAttribute("placeholder")||"").slice(0,100)||h.tagName.toLowerCase(),semanticReference:{...pc(h,vc.current),normalizedOffset:{x:(l.clientX-p.left)/p.width,y:(l.clientY-p.top)/p.height}}})},[u,O]),Co=Q.useCallback(async l=>{if(!u||O)return;const h=uc(l.clientX,l.clientY);if(!(!h||ho.current?.contains(h)||h.closest(".vg-no-capture"))&&H){const p=H;let x=p.element;wo(x);let E=p.semanticReference,D=p.tag;l.preventDefault(),l.stopPropagation(),Me(!0);try{await new Promise(vA=>requestAnimationFrame(vA)),await new Promise(vA=>setTimeout(vA,150));const K=x.getBoundingClientRect(),T=Op(x),BA=document.documentElement,j=window.scrollX||window.pageXOffset,yA=window.scrollY||window.pageYOffset,nA={...p,element:x,rect:K,semanticReference:E,tag:D};N(nA),await new Promise(vA=>requestAnimationFrame(vA)),await new Promise(vA=>setTimeout(vA,50));const sA=window.scrollX||window.pageXOffset||document.documentElement.scrollLeft,hA=window.scrollY||window.pageYOffset||document.documentElement.scrollTop,RA=(await no(BA,{scale:2,useCORS:!0,logging:!1,backgroundColor:null,allowTaint:!0,x:sA,y:hA,width:window.innerWidth,height:window.innerHeight,windowWidth:document.documentElement.clientWidth,windowHeight:document.documentElement.clientHeight,scrollX:0,scrollY:0,onclone:vA=>{const ve=vA.getElementById("viewgate-shadow-host");ve&&(ve.style.display="none")}})).toDataURL("image/webp",.75),OA=await fetch(`${n}/api/screenshots/crop-and-preview`,{method:"POST",headers:{"Content-Type":"application/json","x-api-key":s,...tA?{Authorization:`Bearer ${tA}`}:{}},body:JSON.stringify({fullImage:RA,rect:{x:Math.floor(K.left),y:Math.floor(K.top),width:Math.ceil(K.width),height:Math.ceil(K.height)},padding:40,scale:2})});if(!OA.ok)throw new Error("Backend cropping failed");const{url:kA}=await OA.json();N(vA=>vA?{...vA,visualPreview:kA}:null)}catch(K){console.error("[ViewGate] Capture failed:",K)}finally{Me(!1),v(null)}}},[u,H,O,n,s,tA]);Q.useEffect(()=>{const l=h=>{const x=(()=>{let K=document.activeElement;for(;K&&K.shadowRoot&&K.shadowRoot.activeElement;)K=K.shadowRoot.activeElement;return K})();if(["input","textarea"].includes((x?.tagName||"").toLowerCase())||x?.isContentEditable)return;const D=h.key.toLowerCase();if(!tA){(D==="c"||D==="v")&&A(e==="es"?"Debes iniciar sesión en el Dashboard para usar ViewGate":"Log in to the Dashboard to use ViewGate","warning");return}if(h.key==="Escape"){O?N(null):NA?he(!1):u&&f(!1);return}if(D==="c"&&!h.ctrlKey&&!h.metaKey&&!O&&!NA){if(!Ss){A(e==="es"?"Acceso denegado a este proyecto":"No project access","error");return}if(fr==="client"){A(e==="es"?"Acceso de solo lectura (Backlog)":"Read-only access (Backlog)","warning");return}if(Ts&&!u){if(yc?.status===403||!Ss){const BA=yc?.message||(e==="es"?"Acceso denegado a este proyecto":"No project access");A(BA,"error");return}A(e==="es"?"Verificando información del sprint...":"Checking sprint info...","warning");return}if(!(ae&&ae.status!=="closed")&&!B&&!u){A(e==="es"?"No hay un sprint activo. No se pueden generar comentarios.":"No active sprint found. Cannot generate comments.","error");return}f(T=>!T)}if(D==="v"&&!O){if(!Ss){A(e==="es"?"Acceso denegado a este proyecto":"No project access","error");return}(FA.length>0||NA)&&(he(K=>!K),NA||f(!1))}};return u&&!O?document.body.classList.add("vg-cursor-pointer"):document.body.classList.remove("vg-cursor-pointer"),window.addEventListener("keydown",l),window.addEventListener("mousemove",mo,!0),window.addEventListener("click",Co,!0),()=>{document.body.classList.remove("vg-cursor-pointer"),window.removeEventListener("keydown",l),window.removeEventListener("mousemove",mo,!0),window.removeEventListener("click",Co,!0)}},[u,O,NA,FA,mo,Co,tA,fr]);const Yp=async()=>{if(!O||!W.trim())return;if(M.includes("backend")&&J.length===0){A(e==="es"?"Selecciona al menos un endpoint de backend":"Select at least one backend endpoint","error");return}if(M.includes("ux")&&q.some(K=>!K.name.trim()||!K.link.trim())){A(e==="es"?"Todos los diseños de Figma deben tener nombre y link":"All Figma designs must have a name and link","error");return}if(!LA){A(e==="es"?"Selecciona un usuario para comentar":"Please select a user to comment","error");return}xA(!0);const{semanticReference:l}=O,[h,p]=(l.source||"").split(":"),E={filePath:h,line:parseInt(p||"0"),url:window.location.href,title:W.length>50?W.substring(0,50)+"...":W,message:W,status:B?"backlog":"pending",priority:w,type:O.visualPreview&&!B&&Ls?.status==="active"?"bug":"task",screenshot:O.visualPreview,componentName:l.componentPath||O.tag,reference:{...l,viewport:{width:window.innerWidth,height:window.innerHeight},timestamp:new Date().toISOString()},focusAreas:M,figmaReference:M.includes("ux")?q:void 0,backendEndpoints:M.includes("backend")?J:[]};LA&&(E.creator={name:LA.name,email:LA.email,avatar:LA.avatar});try{const D=await fetch(`${n}/api/annotations`,{method:"POST",headers:{"Content-Type":"application/json","x-api-key":s,Authorization:tA?`Bearer ${tA}`:""},body:JSON.stringify(E)});if(!D.ok){const K=await D.json().catch(()=>({}));throw new Error(K.message||K.error||"Backend failed")}A(r.success,"success"),N(null),R(""),QA([]),UA([{name:r.figmaPrimaryDesign,link:""}]),$A([]),f(!1),Os()}catch(D){console.error(D);const K=D.message&&D.message!=="Backend failed"?D.message:r.error;A(K,"error")}finally{xA(!1)}},Zp=async l=>{Me(!0);try{const h=fc(l.reference,l._id);if(!h){A(e==="es"?"No se pudo encontrar el elemento original para la captura":"Could not find the original element for capture","error"),Me(!1);return}h.scrollIntoView({behavior:"smooth",block:"center"}),await new Promise(sA=>setTimeout(sA,600));const p=h.style.outline,x=h.style.transition;h.style.transition="outline 0.3s ease",h.style.outline="4px solid #10b981",h.style.outlineOffset="4px",await new Promise(sA=>setTimeout(sA,400)),h.style.outline=p,h.style.transition=x,await new Promise(sA=>requestAnimationFrame(sA)),await new Promise(sA=>setTimeout(sA,50));const E=h.getBoundingClientRect(),D=document.documentElement,K=window.scrollX||window.pageXOffset,T=window.scrollY||window.pageYOffset,j=(await no(D,{scale:2,useCORS:!0,logging:!1,backgroundColor:null,allowTaint:!0,x:K,y:T,width:window.innerWidth,height:window.innerHeight,windowWidth:window.innerWidth,windowHeight:window.innerHeight,scrollX:0,scrollY:0,onclone:sA=>{const hA=sA.getElementById("viewgate-shadow-host");hA&&(hA.style.display="none")}})).toDataURL("image/webp",.85),yA=await fetch(`${n}/api/screenshots/crop-and-preview`,{method:"POST",headers:{"Content-Type":"application/json","x-api-key":s,...tA?{Authorization:`Bearer ${tA}`}:{}},body:JSON.stringify({fullImage:j,rect:{x:E.left,y:E.top,width:E.width,height:E.height},padding:40,scale:2})});if(!yA.ok)throw new Error("Backend cropping failed");const{url:nA}=await yA.json();if(nA){const sA=await fetch(`${n}/api/tickets/${l._id}`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:tA?`Bearer ${tA}`:""},body:JSON.stringify({status:"completed",resolvedScreenshot:nA})});if(!sA.ok){const hA=await sA.json().catch(()=>({}));throw new Error(hA.message||hA.error||"API failed")}A(e==="es"?"¡Ticket resuelto con éxito!":"Ticket resolved successfully!","success"),Os()}h.style.outline=p,h.style.transition=x}catch(h){console.error("[ViewGate] Resolve with evidence failed:",h),A(e==="es"?`Error: ${h.message}`:`Error: ${h.message}`,"error")}finally{Me(!1)}};return i.jsx("div",{"data-vg-id":"ef883ffc","data-source-path":"/src/components/ViewGateOverlay.tsx:2126",className:"vg-container",style:{userSelect:"none",WebkitUserSelect:"none"},children:i.jsxs("div",{"data-vg-id":"ef883ffd","data-source-path":"/src/components/ViewGateOverlay.tsx:2127",className:"vg-no-capture",style:{userSelect:"none",WebkitUserSelect:"none"},children:[i.jsxs("div",{style:{position:"fixed",bottom:`${bt.bottom}px`,right:`${bt.right}px`,zIndex:cc,display:"flex",alignItems:"center",gap:"8px",transition:mr?"none":"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)"},id:"viewgate-ui",children:[i.jsx("div",{onMouseDown:Jp,style:{width:"24px",height:"40px",borderRadius:"10px",backgroundColor:"rgba(255, 255, 255, 0.85)",backdropFilter:"blur(4px)",display:"flex",alignItems:"center",justifyContent:"center",cursor:"grab",color:"#1e293b",opacity:u?0:1,visibility:u?"hidden":"visible",transition:"all 0.2s",border:"1px solid rgba(0,0,0,0.1)",boxShadow:"0 2px 8px rgba(0,0,0,0.05)"},onMouseEnter:l=>{l.currentTarget.style.backgroundColor="white",l.currentTarget.style.color="#000000"},onMouseLeave:l=>{l.currentTarget.style.backgroundColor="rgba(255, 255, 255, 0.85)",l.currentTarget.style.color="#1e293b"},className:"vg-animate-slide-up",children:i.jsx(El,{"data-vg-id":"3dbe6a11","data-source-path":"/src/components/ViewGateOverlay.tsx:2174",size:16})}),i.jsxs("div",{"data-vg-id":"ef883fff","data-source-path":"/src/components/ViewGateOverlay.tsx:2177",className:"vg-action-bar vg-animate-slide-up",style:{transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)"},children:[tA?Ss?i.jsxs(i.Fragment,{children:[fr!=="client"&&i.jsx("button",{onClick:()=>{if(Ts&&!u){A(e==="es"?"Sincronizando con el servidor...":"Syncing with server...","warning");return}if(!ae&&!B&&!u){A(e==="es"?"No hay un sprint activo. No se pueden generar comentarios.":"No active sprint found. Cannot generate comments.","error");return}f(!u)},className:"vg-button-primary vg-animate-pop",style:{padding:"12px 24px",background:u?"#ef4444":!ae&&!B?"#94a3b8":void 0,cursor:!ae&&!B&&!u?"not-allowed":"pointer",opacity:!ae&&!B&&!u?.7:1},title:!ae&&!B&&!u?e==="es"?"Requiere sprint activo":"Requires active sprint":"",children:i.jsxs("div",{"data-vg-id":"ef884001","data-source-path":"/src/components/ViewGateOverlay.tsx:2216",style:{display:"flex",alignItems:"center",gap:"10px"},children:[Ts&&!u?i.jsx(Dt,{"data-vg-id":"edca6150","data-source-path":"/src/components/ViewGateOverlay.tsx:2218",size:20,className:"vg-animate-spin"}):u?i.jsx(kt,{"data-vg-id":"ff5f5cf","data-source-path":"/src/components/ViewGateOverlay.tsx:2220",size:20,className:"vg-animate-pop"}):i.jsx(vr,{"data-vg-id":"10c621c4","data-source-path":"/src/components/ViewGateOverlay.tsx:2222",size:20,className:"vg-animate-pop"}),i.jsx("span",{"data-vg-id":"52d76c43","data-source-path":"/src/components/ViewGateOverlay.tsx:2224",children:Ts&&!u?e==="es"?"Cargando...":"Loading...":u?r.exitMode:r.enterMode})]})}),FA.length>0&&i.jsxs("button",{onClick:()=>{he(!NA),f(!1),N(null)},className:"vg-button-ghost vg-animate-pop",style:{animationDelay:"0.1s"},children:[i.jsx(bl,{"data-vg-id":"cd7341f9","data-source-path":"/src/components/ViewGateOverlay.tsx:2242",size:20}),i.jsx("span",{"data-vg-id":"52d76c45","data-source-path":"/src/components/ViewGateOverlay.tsx:2243",children:r.viewComments})]})]}):i.jsx("div",{"data-vg-id":"ef884000","data-source-path":"/src/components/ViewGateOverlay.tsx:2180",style:{padding:"8px 16px",background:"#fee2e2",color:"#b91c1c",borderRadius:"20px",fontSize:"12px",fontWeight:600,border:"1px solid #fecaca",whiteSpace:"nowrap"},children:e==="es"?"Acceso denegado a este proyecto":"No project access"}):i.jsxs("button",{onClick:()=>{f(!0),N({rect:new DOMRect})},className:"vg-button-primary vg-animate-pop",style:{padding:"12px 24px",background:"var(--vg-primary-gradient)",display:"flex",alignItems:"center",gap:"10px"},children:[i.jsx(Jo,{"data-vg-id":"422a5ea5","data-source-path":"/src/components/ViewGateOverlay.tsx:2263",size:18}),i.jsx("span",{"data-vg-id":"52d76c47","data-source-path":"/src/components/ViewGateOverlay.tsx:2264",style:{fontWeight:700},children:e==="es"?"Desbloquear con Clave":"Unlock with Key"})]}),i.jsx("button",{onClick:l=>{l.stopPropagation(),Y({title:r.exitConfirmTitle||"Close ViewGate?",message:r.exitConfirmMessage||"Are you sure you want to close ViewGate?",type:"danger",onConfirm:()=>a()})},className:"vg-button-ghost vg-animate-pop",style:{width:"40px",height:"40px",minWidth:"40px",padding:"0",animationDelay:"0.2s",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"12px",backgroundColor:"rgba(255, 255, 255, 0.8)",color:"#64748b",border:"1px solid rgba(0,0,0,0.05)"},onMouseEnter:l=>{l.currentTarget.style.color="#ef4444",l.currentTarget.style.backgroundColor="white",l.currentTarget.style.borderColor="rgba(239, 68, 68, 0.2)",l.currentTarget.style.transform="scale(1.05)"},onMouseLeave:l=>{l.currentTarget.style.color="#64748b",l.currentTarget.style.backgroundColor="rgba(255, 255, 255, 0.8)",l.currentTarget.style.borderColor="rgba(0,0,0,0.05)",l.currentTarget.style.transform="scale(1)"},title:r.close||"Cerrar ViewGate",children:i.jsx(kt,{"data-vg-id":"ff5f5d6","data-source-path":"/src/components/ViewGateOverlay.tsx:2308",size:20,strokeWidth:2.5})})]})]}),fe&&!O&&i.jsx("div",{"data-vg-id":"17fbf7e","data-source-path":"/src/components/ViewGateOverlay.tsx:2317",style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(255,255,255,0.6)",backdropFilter:"blur(4px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:cc+1,cursor:"wait"},children:i.jsxs("div",{"data-vg-id":"17fbf7f","data-source-path":"/src/components/ViewGateOverlay.tsx:2323",className:"vg-glassmorphism",style:{padding:"30px 50px",display:"flex",flexDirection:"column",alignItems:"center",gap:"16px"},children:[i.jsx("div",{"data-vg-id":"17fbf95","data-source-path":"/src/components/ViewGateOverlay.tsx:2324",className:"vg-spinner"}),i.jsx("span",{"data-vg-id":"52d76c61","data-source-path":"/src/components/ViewGateOverlay.tsx:2325",style:{fontWeight:600,fontSize:"14px",color:"#000000"},children:"Capturando..."})]})}),u&&!O&&i.jsx("div",{className:"vg-backdrop-blur",style:{opacity:1,clipPath:H?`polygon(
|
|
7
|
+
<%s key={someKey} {...props} />`,F,_,ce,_),je[_+F]=!0)}if(_=null,R!==void 0&&(s(R),_=""+R),l(T)&&(s(T.key),_=""+T.key),"key"in T){R={};for(var Ae in T)Ae!=="key"&&(R[Ae]=T[Ae])}else R=T;return _&&u(R,typeof g=="function"?g.displayName||g.name||"Unknown":g),y(g,_,R,n(),ie,Ee)}function m(g){G(g)?g._store&&(g._store.validated=1):typeof g=="object"&&g!==null&&g.$$typeof===W&&(g._payload.status==="fulfilled"?G(g._payload.value)&&g._payload.value._store&&(g._payload.value._store.validated=1):g._store&&(g._store.validated=1))}function G(g){return typeof g=="object"&&g!==null&&g.$$typeof===C}var j=p,C=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),de=Symbol.for("react.consumer"),Ve=Symbol.for("react.context"),te=Symbol.for("react.forward_ref"),ye=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),ne=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),Pe=Symbol.for("react.activity"),pe=Symbol.for("react.client.reference"),Re=j.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae=Object.prototype.hasOwnProperty,ue=Array.isArray,N=console.createTask?console.createTask:function(){return null};j={react_stack_bottom_frame:function(g){return g()}};var be,K={},fe=j.react_stack_bottom_frame.bind(j,i)(),we=N(o(i)),je={};bt.Fragment=z,bt.jsx=function(g,T,R){var F=1e4>Re.recentlyCreatedOwnerStacks++;return x(g,T,R,!1,F?Error("react-stack-top-frame"):fe,F?N(o(g)):we)},bt.jsxs=function(g,T,R){var F=1e4>Re.recentlyCreatedOwnerStacks++;return x(g,T,R,!0,F?Error("react-stack-top-frame"):fe,F?N(o(g)):we)}})()),bt}var ts;function Rr(){return ts||(ts=1,process.env.NODE_ENV==="production"?Lt.exports=Or():Lt.exports=Vr()),Lt.exports}var a=Rr(),Mt={exports:{}},ma={};var as;function _r(){if(as)return ma;as=1;var e=p;function t(m,G){return m===G&&(m!==0||1/m===1/G)||m!==m&&G!==G}var s=typeof Object.is=="function"?Object.is:t,o=e.useState,n=e.useEffect,i=e.useLayoutEffect,l=e.useDebugValue;function u(m,G){var j=G(),C=o({inst:{value:j,getSnapshot:G}}),E=C[0].inst,z=C[1];return i(function(){E.value=j,E.getSnapshot=G,h(E)&&z({inst:E})},[m,j,G]),n(function(){return h(E)&&z({inst:E}),m(function(){h(E)&&z({inst:E})})},[m]),l(j),j}function h(m){var G=m.getSnapshot;m=m.value;try{var j=G();return!s(m,j)}catch{return!0}}function y(m,G){return G()}var x=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?y:u;return ma.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:x,ma}var ha={};var ss;function Gr(){return ss||(ss=1,process.env.NODE_ENV!=="production"&&(function(){function e(j,C){return j===C&&(j!==0||1/j===1/C)||j!==j&&C!==C}function t(j,C){x||n.startTransition===void 0||(x=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var E=C();if(!m){var z=C();i(E,z)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),m=!0)}z=l({inst:{value:E,getSnapshot:C}});var V=z[0].inst,S=z[1];return h(function(){V.value=E,V.getSnapshot=C,s(V)&&S({inst:V})},[j,E,C]),u(function(){return s(V)&&S({inst:V}),j(function(){s(V)&&S({inst:V})})},[j]),y(E),E}function s(j){var C=j.getSnapshot;j=j.value;try{var E=C();return!i(j,E)}catch{return!0}}function o(j,C){return C()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=p,i=typeof Object.is=="function"?Object.is:e,l=n.useState,u=n.useEffect,h=n.useLayoutEffect,y=n.useDebugValue,x=!1,m=!1,G=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?o:t;ha.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:G,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),ha}var rs;function Tr(){return rs||(rs=1,process.env.NODE_ENV==="production"?Mt.exports=_r():Mt.exports=Gr()),Mt.exports}var os=Tr();const ns=0,is=1,cs=2,ls=3;var ds=Object.prototype.hasOwnProperty;function xa(e,t){var s,o;if(e===t)return!0;if(e&&t&&(s=e.constructor)===t.constructor){if(s===Date)return e.getTime()===t.getTime();if(s===RegExp)return e.toString()===t.toString();if(s===Array){if((o=e.length)===t.length)for(;o--&&xa(e[o],t[o]););return o===-1}if(!s||typeof e=="object"){o=0;for(s in e)if(ds.call(e,s)&&++o&&!ds.call(t,s)||!(s in t)||!xa(e[s],t[s]))return!1;return Object.keys(t).length===o}}return e!==e&&t!==t}const ze=new WeakMap,Le=()=>{},ge=Le(),va=Object,P=e=>e===ge,Ie=e=>typeof e=="function",Fe=(e,t)=>({...e,...t}),ps=e=>Ie(e.then),ya={},Dt={},ba="undefined",wt=typeof window!=ba,wa=typeof document!=ba,Ar=wt&&"Deno"in window,Ir=()=>wt&&typeof window.requestAnimationFrame!=ba,us=(e,t)=>{const s=ze.get(e);return[()=>!P(t)&&e.get(t)||ya,o=>{if(!P(t)){const n=e.get(t);t in Dt||(Dt[t]=n),s[5](t,Fe(n,o),n||ya)}},s[6],()=>!P(t)&&t in Dt?Dt[t]:!P(t)&&e.get(t)||ya]};let Sa=!0;const Pr=()=>Sa,[ka,ja]=wt&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Le,Le],Nr=()=>{const e=wa&&document.visibilityState;return P(e)||e!=="hidden"},zr=e=>(wa&&document.addEventListener("visibilitychange",e),ka("focus",e),()=>{wa&&document.removeEventListener("visibilitychange",e),ja("focus",e)}),Lr=e=>{const t=()=>{Sa=!0,e()},s=()=>{Sa=!1};return ka("online",t),ka("offline",s),()=>{ja("online",t),ja("offline",s)}},Mr={isOnline:Pr,isVisible:Nr},Dr={initFocus:zr,initReconnect:Lr},fs=!p.useId,rt=!wt||Ar,Wr=e=>Ir()?window.requestAnimationFrame(e):setTimeout(e,1),Ea=rt?p.useEffect:p.useLayoutEffect,Ca=typeof navigator<"u"&&navigator.connection,gs=!rt&&Ca&&(["slow-2g","2g"].includes(Ca.effectiveType)||Ca.saveData),Wt=new WeakMap,Fr=e=>va.prototype.toString.call(e),Oa=(e,t)=>e===`[object ${t}]`;let Br=0;const Va=e=>{const t=typeof e,s=Fr(e),o=Oa(s,"Date"),n=Oa(s,"RegExp"),i=Oa(s,"Object");let l,u;if(va(e)===e&&!o&&!n){if(l=Wt.get(e),l)return l;if(l=++Br+"~",Wt.set(e,l),Array.isArray(e)){for(l="@",u=0;u<e.length;u++)l+=Va(e[u])+",";Wt.set(e,l)}if(i){l="#";const h=va.keys(e).sort();for(;!P(u=h.pop());)P(e[u])||(l+=u+":"+Va(e[u])+",");Wt.set(e,l)}}else l=o?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return l},Ra=e=>{if(Ie(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Va(e):"",[e,t]};let Hr=0;const _a=()=>++Hr;async function ms(...e){const[t,s,o,n]=e,i=Fe({populateCache:!0,throwOnError:!0},typeof n=="boolean"?{revalidate:n}:n||{});let l=i.populateCache;const u=i.rollbackOnError;let h=i.optimisticData;const y=G=>typeof u=="function"?u(G):u!==!1,x=i.throwOnError;if(Ie(s)){const G=s,j=[],C=t.keys();for(const E of C)!/^\$(inf|sub)\$/.test(E)&&G(t.get(E)._k)&&j.push(E);return Promise.all(j.map(m))}return m(s);async function m(G){const[j]=Ra(G);if(!j)return;const[C,E]=us(t,j),[z,V,S,de]=ze.get(t),Ve=()=>{const ue=z[j];return(Ie(i.revalidate)?i.revalidate(C().data,G):i.revalidate!==!1)&&(delete S[j],delete de[j],ue&&ue[0])?ue[0](cs).then(()=>C().data):C().data};if(e.length<3)return Ve();let te=o,ye,A=!1;const ne=_a();V[j]=[ne,0];const W=!P(h),Pe=C(),pe=Pe.data,Re=Pe._c,ae=P(Re)?pe:Re;if(W&&(h=Ie(h)?h(ae,pe):h,E({data:h,_c:ae})),Ie(te))try{te=te(ae)}catch(ue){ye=ue,A=!0}if(te&&ps(te))if(te=await te.catch(ue=>{ye=ue,A=!0}),ne!==V[j][0]){if(A)throw ye;return te}else A&&W&&y(ye)&&(l=!0,E({data:ae,_c:ge}));if(l&&!A)if(Ie(l)){const ue=l(te,ae);E({data:ue,error:ge,_c:ge})}else E({data:te,error:ge,_c:ge});if(V[j][1]=_a(),Promise.resolve(Ve()).then(()=>{E({_c:ge})}),A){if(x)throw ye;return}return te}}const hs=(e,t)=>{for(const s in e)e[s][0]&&e[s][0](t)},Ur=(e,t)=>{if(!ze.has(e)){const s=Fe(Dr,t),o=Object.create(null),n=ms.bind(ge,e);let i=Le;const l=Object.create(null),u=(x,m)=>{const G=l[x]||[];return l[x]=G,G.push(m),()=>G.splice(G.indexOf(m),1)},h=(x,m,G)=>{e.set(x,m);const j=l[x];if(j)for(const C of j)C(m,G)},y=()=>{if(!ze.has(e)&&(ze.set(e,[o,Object.create(null),Object.create(null),Object.create(null),n,h,u]),!rt)){const x=s.initFocus(setTimeout.bind(ge,hs.bind(ge,o,ns))),m=s.initReconnect(setTimeout.bind(ge,hs.bind(ge,o,is)));i=()=>{x&&x(),m&&m(),ze.delete(e)}}};return y(),[e,n,y,i]}return[e,ze.get(e)[4]]},Yr=(e,t,s,o,n)=>{const i=s.errorRetryCount,l=n.retryCount,u=~~((Math.random()+.5)*(1<<(l<8?l:8)))*s.errorRetryInterval;!P(i)&&l>i||setTimeout(o,u,n)},Xr=xa,[xs,Kr]=Ur(new Map),Jr=Fe({onLoadingSlow:Le,onSuccess:Le,onError:Le,onErrorRetry:Yr,onDiscarded:Le,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:gs?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:gs?5e3:3e3,compare:Xr,isPaused:()=>!1,cache:xs,mutate:Kr,fallback:{}},Mr),Zr=(e,t)=>{const s=Fe(e,t);if(t){const{use:o,fallback:n}=e,{use:i,fallback:l}=t;o&&i&&(s.use=o.concat(i)),n&&l&&(s.fallback=Fe(n,l))}return s},Qr=p.createContext({}),$r="$inf$",vs=wt&&window.__SWR_DEVTOOLS_USE__,qr=vs?window.__SWR_DEVTOOLS_USE__:[],eo=()=>{vs&&(window.__SWR_DEVTOOLS_REACT__=p)},to=e=>Ie(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],ys=()=>{const e=p.useContext(Qr);return p.useMemo(()=>Fe(Jr,e),[e])},ao=e=>(t,s,o)=>e(t,s&&((...i)=>{const[l]=Ra(t),[,,,u]=ze.get(xs);if(l.startsWith($r))return s(...i);const h=u[l];return P(h)?s(...i):(delete u[l],h)}),o),so=qr.concat(ao),ro=e=>function(...s){const o=ys(),[n,i,l]=to(s),u=Zr(o,l);let h=e;const{use:y}=u,x=(y||[]).concat(so);for(let m=x.length;m--;)h=x[m](h);return h(n,i||u.fetcher||null,u)},oo=(e,t,s)=>{const o=t[e]||(t[e]=[]);return o.push(s),()=>{const n=o.indexOf(s);n>=0&&(o[n]=o[o.length-1],o.pop())}};eo();const Ga=p.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),Ta={dedupe:!0},bs=Promise.resolve(ge),no=()=>Le,ws=ro((e,t,s)=>{const{cache:o,compare:n,suspense:i,fallbackData:l,revalidateOnMount:u,revalidateIfStale:h,refreshInterval:y,refreshWhenHidden:x,refreshWhenOffline:m,keepPreviousData:G,strictServerPrefetchWarning:j}=s,[C,E,z,V]=ze.get(o),[S,de]=Ra(e),Ve=p.useRef(!1),te=p.useRef(!1),ye=p.useRef(S),A=p.useRef(t),ne=p.useRef(s),W=()=>ne.current,Pe=()=>W().isVisible()&&W().isOnline(),[pe,Re,ae,ue]=us(o,S),N=p.useRef({}).current,be=P(l)?P(s.fallback)?ge:s.fallback[S]:l,K=(B,Y)=>{for(const Q in N){const $=Q;if($==="data"){if(!n(B[$],Y[$])&&(!P(B[$])||!n(Ee,Y[$])))return!1}else if(Y[$]!==B[$])return!1}return!0},fe=!Ve.current,we=p.useMemo(()=>{const B=pe(),Y=ue(),Q=M=>{const me=Fe(M);return delete me._k,(()=>{if(!S||!t||W().isPaused())return!1;if(fe&&!P(u))return u;const Ge=P(be)?me.data:be;return P(Ge)||h})()?{isValidating:!0,isLoading:!0,...me}:me},$=Q(B),Z=B===Y?$:Q(Y);let q=$;return[()=>{const M=Q(pe());return K(M,q)?(q.data=M.data,q.isLoading=M.isLoading,q.isValidating=M.isValidating,q.error=M.error,q):(q=M,M)},()=>Z]},[o,S]),je=os.useSyncExternalStore(p.useCallback(B=>ae(S,(Y,Q)=>{K(Q,Y)||B()}),[o,S]),we[0],we[1]),g=C[S]&&C[S].length>0,T=je.data,R=P(T)?be&&ps(be)?Ga(be):be:T,F=je.error,ie=p.useRef(R),Ee=G?P(T)?P(ie.current)?R:ie.current:T:R,_=S&&P(R),ce=p.useRef(null);!rt&&os.useSyncExternalStore(no,()=>(ce.current=!1,ce),()=>(ce.current=!0,ce));const Ae=ce.current;j&&Ae&&!i&&_&&console.warn(`Missing pre-initiated data for serialized key "${S}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);const qe=!S||!t||W().isPaused()||g&&!P(F)?!1:fe&&!P(u)?u:i?P(R)?!1:h:P(R)||h,Vt=fe&&qe,Qt=P(je.isValidating)?Vt:je.isValidating,ct=P(je.isLoading)?Vt:je.isLoading,De=p.useCallback(async B=>{const Y=A.current;if(!S||!Y||te.current||W().isPaused())return!1;let Q,$,Z=!0;const q=B||{},M=!z[S]||!q.dedupe,me=()=>fs?!te.current&&S===ye.current&&Ve.current:S===ye.current,le={isValidating:!1,isLoading:!1},Ge=()=>{Re(le)},Ue=()=>{const _e=z[S];_e&&_e[1]===$&&delete z[S]},$t={isValidating:!0};P(pe().data)&&($t.isLoading=!0);try{if(M&&(Re($t),s.loadingTimeout&&P(pe().data)&&setTimeout(()=>{Z&&me()&&W().onLoadingSlow(S,s)},s.loadingTimeout),z[S]=[Y(de),_a()]),[Q,$]=z[S],Q=await Q,M&&setTimeout(Ue,s.dedupingInterval),!z[S]||z[S][1]!==$)return M&&me()&&W().onDiscarded(S),!1;le.error=ge;const _e=E[S];if(!P(_e)&&($<=_e[0]||$<=_e[1]||_e[1]===0))return Ge(),M&&me()&&W().onDiscarded(S),!1;const Ne=pe().data;le.data=n(Ne,Q)?Ne:Q,M&&me()&&W().onSuccess(Q,S,s)}catch(_e){Ue();const Ne=W(),{shouldRetryOnError:Rt}=Ne;Ne.isPaused()||(le.error=_e,M&&me()&&(Ne.onError(_e,S,Ne),(Rt===!0||Ie(Rt)&&Rt(_e))&&(!W().revalidateOnFocus||!W().revalidateOnReconnect||Pe())&&Ne.onErrorRetry(_e,S,Ne,qt=>{const Se=C[S];Se&&Se[0]&&Se[0](ls,qt)},{retryCount:(q.retryCount||0)+1,dedupe:!0})))}return Z=!1,Ge(),!0},[S,o]),lt=p.useCallback((...B)=>ms(o,ye.current,...B),[]);if(Ea(()=>{A.current=t,ne.current=s,P(T)||(ie.current=T)}),Ea(()=>{if(!S)return;const B=De.bind(ge,Ta);let Y=0;W().revalidateOnFocus&&(Y=Date.now()+W().focusThrottleInterval);const $=oo(S,C,(Z,q={})=>{if(Z==ns){const M=Date.now();W().revalidateOnFocus&&M>Y&&Pe()&&(Y=M+W().focusThrottleInterval,B())}else if(Z==is)W().revalidateOnReconnect&&Pe()&&B();else{if(Z==cs)return De();if(Z==ls)return De(q)}});return te.current=!1,ye.current=S,Ve.current=!0,Re({_k:de}),qe&&(z[S]||(P(R)||rt?B():Wr(B))),()=>{te.current=!0,$()}},[S]),Ea(()=>{let B;function Y(){const $=Ie(y)?y(pe().data):y;$&&B!==-1&&(B=setTimeout(Q,$))}function Q(){!pe().error&&(x||W().isVisible())&&(m||W().isOnline())?De(Ta).then(Y):Y()}return Y(),()=>{B&&(clearTimeout(B),B=-1)}},[y,x,m,S]),p.useDebugValue(Ee),i){if(!fs&&rt&&_)throw new Error("Fallback data is required when using Suspense in SSR.");_&&(A.current=t,ne.current=s,te.current=!1);const B=V[S],Y=!P(B)&&_?lt(B):bs;if(Ga(Y),!P(F)&&_)throw F;const Q=_?De(Ta):bs;!P(Ee)&&_&&(Q.status="fulfilled",Q.value=!0),Ga(Q)}return{mutate:lt,get data(){return N.data=!0,Ee},get error(){return N.error=!0,F},get isValidating(){return N.isValidating=!0,Qt},get isLoading(){return N.isLoading=!0,ct}}}),io=({children:e})=>{const t=p.useRef(null),[s,o]=p.useState(null);return p.useEffect(()=>{if(t.current&&!t.current.shadowRoot){const n=t.current.attachShadow({mode:"open"});document.querySelectorAll("style[data-vite-dev-id], style:not([data-vite-dev-id])").forEach(u=>{const h=u.textContent||"";(h.includes(".vg-")||h.includes("--vg-")||h.includes(".ReactCrop"))&&n.appendChild(u.cloneNode(!0))});const l=document.createElement("link");l.rel="stylesheet",l.href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap",n.appendChild(l),o(n)}},[]),a.jsx("div",{"data-vg-id":"49696d6b","data-source-path":"/src/components/ShadowRootWrapper.tsx:39",ref:t,id:"viewgate-shadow-host",style:{position:"relative",zIndex:2147483647},children:s&&Cr.createPortal(e,s)})};const Ss=(...e)=>e.filter((t,s,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===s).join(" ").trim();const co=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const lo=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,s,o)=>o?o.toUpperCase():s.toLowerCase());const ks=e=>{const t=lo(e);return t.charAt(0).toUpperCase()+t.slice(1)};var po={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const uo=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const fo=p.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:s=2,absoluteStrokeWidth:o,className:n="",children:i,iconNode:l,...u},h)=>p.createElement("svg",{ref:h,...po,width:t,height:t,stroke:e,strokeWidth:o?Number(s)*24/Number(t):s,className:Ss("lucide",n),...!i&&!uo(u)&&{"aria-hidden":"true"},...u},[...l.map(([y,x])=>p.createElement(y,x)),...Array.isArray(i)?i:[i]]));const J=(e,t)=>{const s=p.forwardRef(({className:o,...n},i)=>p.createElement(fo,{ref:i,iconNode:t,className:Ss(`lucide-${co(ks(e))}`,`lucide-${e}`,o),...n}));return s.displayName=ks(e),s};const St=J("bug",[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]]);const go=J("camera",[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);const js=J("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const mo=J("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);const Qe=J("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);const Es=J("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);const Aa=J("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);const ho=J("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);const Be=J("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);const xo=J("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);const vo=J("key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);const Ft=J("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);const Bt=J("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);const Ia=J("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);const Cs=J("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);const yo=J("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]);const Ht=J("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);const bo=J("mouse-pointer-2",[["path",{d:"M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z",key:"edeuup"}]]);const kt=J("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);const wo=J("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const So=J("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);const ko=J("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);const Ut=J("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);const jo=J("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);const jt=J("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Eo={en:{enterMode:"Enter Feedback Mode",exitMode:"Exit Mode",completed:"Completed",feedbackHeader:"Feedback",selectedElement:"Selected element:",line:"Line",placeholder:"Tell us what you'd like to change...",cancel:"Cancel",send:"Send Feedback",submitting:"Submitting...",success:"Your feedback has been submitted successfully!",error:"Failed to submit feedback. Check backend connection.",successHeader:"Success",errorHeader:"Error",preview:"Preview",viewComments:"View Comments",close:"Close",observe:"Observe",pending:"Pending",readyForReview:"Ready for Review",noComments:"No comments found.",deleteConfirm:"Delete comment",completeConfirm:"Mark as completed?",confirmComplete:"The ticket will be marked as completed and archived.",markReady:"Mark as Ready for Review",reopen:"Reopen",reopenPlaceholder:"Add a new comment before confirming...",review:"Review",confirmDelete:"Are you sure you want to permanently delete this comment? This action cannot be undone.",markReadyConfirm:"Mark as Ready for Review?",confirmMarkReady:"Do you want to mark this comment as ready for review? it will be moved to the review state.",reopenConfirm:"Reopen comment",confirmReopen:"Do you want to set this comment back to pending status?",yes:"Yes, confirm",no:"No, cancel",deleteSuccess:"Comment deleted successfully.",updateSuccess:"Updated successfully.",navigating:"Redirecting to review...",selectToComment:"Click to comment",feedbackSubheader:"What would you like to improve here?",sendFeedback:"Send Comment",edit:"Edit",save:"Save",commentDetails:"Comment Details",annotations:"Comments",viewAll:"View All",exitConfirmTitle:"Close ViewGate?",exitConfirmMessage:"Are you sure you want to close ViewGate? Remember you can reopen it by pressing ALT once (Normal Mode) or holding it for 1 second (Backlog Mode).",backlog:"Backlog",low:"Low",medium:"Medium",high:"High",urgent:"Urgent",priority:"Priority",selectMember:"Select who you are to comment",asMember:"Commenting as",changeMember:"Change",focusAreas:"Focus Areas",frontend:"Frontend",backend:"Backend",ux:"UX/UI",figmaLink:"Figma Reference Link",figmaLinkPlaceholder:"https://www.figma.com/file/...",endpoint:"Related Backend Endpoint",selectEndpoint:"Select endpoint...",figmaNamePlaceholder:"e.g. Main Design, Modal, etc.",addLink:"Add another link",removeLink:"Remove",figmaPrimaryDesign:"Principal Design",invalidToken:"Invalid or expired token"},es:{enterMode:"Activar Modo Comentarios",exitMode:"Salir del Modo",completed:"Completado",feedbackHeader:"Comentarios",selectedElement:"Elemento seleccionado:",line:"Línea",placeholder:"Cuéntanos qué te gustaría cambiar...",cancel:"Cancelar",send:"Enviar Comentarios",submitting:"Enviando...",success:"¡Tus comentarios se han enviado con éxito!",error:"Error al enviar comentarios. Revisa la conexión con el servidor.",successHeader:"Éxito",errorHeader:"Error",preview:"Vista previa",viewComments:"Ver Comentarios",close:"Cerrar",observe:"Observar",pending:"Pendiente",readyForReview:"Listo para revisión",noComments:"No hay comentarios.",deleteConfirm:"Eliminar comentario",completeConfirm:"¿Completar ticket?",confirmComplete:"El ticket se marcará como completado y se archivará.",markReady:"Marcar como Listo para revisión",reopen:"Reabrir",reopenPlaceholder:"Agrega un nuevo comentario antes de confirmar...",review:"Revisar",confirmDelete:"¿Estás seguro de que deseas eliminar permanentemente este comentario? Esta acción no se puede deshacer.",markReadyConfirm:"¿Listo para revisión?",confirmMarkReady:"¿Deseas marcar este comentario como listo para revisión? Pasará al estado de revisión.",reopenConfirm:"Reabrir comentario",confirmReopen:"¿Deseas volver a poner este comentario en estado pendiente?",yes:"Sí, confirmar",no:"No, cancelar",deleteSuccess:"El comentario ha sido eliminado.",updateSuccess:"Actualizado correctamente.",navigating:"Redirigiendo a revisión...",selectToComment:"Haz clic para comentar",feedbackSubheader:"¿Qué te gustaría mejorar aquí?",sendFeedback:"Enviar Comentario",edit:"Editar",save:"Guardar",commentDetails:"Detalles del Comentario",annotations:"Comentarios",viewAll:"Ver Todos",exitConfirmTitle:"¿Cerrar ViewGate?",exitConfirmMessage:"¿Estás seguro de que deseas cerrar ViewGate? Recuerda que puedes volver a activarlo pulsando una vez la tecla ALT (Modo Normal) o manteniéndola pulsada 1 segundo (Modo Backlog).",backlog:"Backlog",low:"Baja",medium:"Media",high:"Alta",urgent:"Urgente",priority:"Prioridad",selectMember:"Selecciona quién eres para comentar",asMember:"Comentando como",changeMember:"Cambiar",focusAreas:"Áreas de Foco",frontend:"Frontend",backend:"Backend",ux:"UX/UI",figmaLink:"Link de Referencia Figma",figmaLinkPlaceholder:"https://www.figma.com/file/...",endpoint:"Endpoint de Backend Relacionado",selectEndpoint:"Seleccionar endpoint...",figmaNamePlaceholder:"ej. Diseño Principal, Modal, etc.",addLink:"Agregar otro link",removeLink:"Eliminar",figmaPrimaryDesign:"Diseño Principal",invalidToken:"Token inválido o expirado"}},Os=p.createContext(void 0),Vs=()=>{const e=p.useContext(Os);if(!e)throw new Error("useViewGate must be used within a ViewGateProvider");return e},Et="viewgate_enabled",Co=()=>{if(typeof window>"u")return!1;const e=new URLSearchParams(window.location.search);return e.has("viewgate")||e.has("viewgate-backlog")?(sessionStorage.setItem(Et,"true"),!0):sessionStorage.getItem(Et)==="true"},Oo=({children:e,language:t="es",apiKey:s,baseUrl:o="https://view-gate.vercel.app",dashboardUrl:n})=>{const i=n||(o==="https://view-gate.vercel.app"?"https://view-gate-dashboard.vercel.app":o.includes("localhost:5000")?o.replace("5000","3000"):o),[l,u]=p.useState(!1),[h,y]=p.useState([]);p.useRef(0);const x=p.useRef(null),m=p.useRef(!1);p.useEffect(()=>{u(Co());const E=V=>{V.key==="Alt"&&!V.repeat&&(V.preventDefault(),m.current=!1,x.current&&clearTimeout(x.current),x.current=setTimeout(()=>{const S=new URL(window.location.href);S.searchParams.delete("viewgate"),S.searchParams.set("viewgate-backlog","true"),window.history.replaceState({},"",S.toString()),u(!0),sessionStorage.setItem(Et,"true"),window.dispatchEvent(new PopStateEvent("popstate")),j(t==="es"?"Modo Backlog activado":"Backlog Mode activated","success"),m.current=!0,x.current=null},1e3))},z=V=>{if(V.key==="Alt"&&(V.preventDefault(),x.current)){clearTimeout(x.current),x.current=null;const S=new URL(window.location.href);S.searchParams.delete("viewgate-backlog"),S.searchParams.set("viewgate","true"),window.history.replaceState({},"",S.toString()),u(!0),sessionStorage.setItem(Et,"true"),window.dispatchEvent(new PopStateEvent("popstate")),j(t==="es"?"Modo Normal activado":"Normal Mode activated","success")}};return window.addEventListener("keydown",E),window.addEventListener("keyup",z),()=>{window.removeEventListener("keydown",E),window.removeEventListener("keyup",z)}},[t]);const G=()=>{if(sessionStorage.removeItem(Et),u(!1),typeof window<"u"){const E=new URL(window.location.href);E.searchParams.delete("viewgate"),window.history.replaceState({},"",E.toString())}},j=(E,z)=>{const V=Date.now();y([{id:V,message:E,type:z}]),setTimeout(()=>{y(S=>S.filter(de=>de.id!==V))},4e3)},C=Eo[t];return a.jsxs(Os.Provider,{"data-vg-id":"89da3486","data-source-path":"/src/components/ViewGateProvider.tsx:371",value:{addToast:j,language:t,t:C,apiKey:s,baseUrl:o,dashboardUrl:i,disableViewGate:G,hasActiveToasts:h.length>0},children:[e,l&&a.jsx(io,{"data-vg-id":"f1499d3a","data-source-path":"/src/components/ViewGateProvider.tsx:383",children:a.jsxs("div",{"data-vg-id":"1bedb79b","data-source-path":"/src/components/ViewGateProvider.tsx:384",className:"vg-container",children:[a.jsx(tr,{"data-vg-id":"d3f262cb","data-source-path":"/src/components/ViewGateProvider.tsx:385"}),a.jsx("div",{"data-vg-id":"1bedb79d","data-source-path":"/src/components/ViewGateProvider.tsx:386",className:"vg-toasts",style:{zIndex:2147483647},children:h.map(E=>a.jsxs("div",{"data-vg-id":"1bedb79e","data-source-path":"/src/components/ViewGateProvider.tsx:388",className:`vg-toast vg-animate-slide ${E.type}`,children:[E.type==="success"?a.jsx(Qe,{"data-vg-id":"c7ae3b26","data-source-path":"/src/components/ViewGateProvider.tsx:390",size:24,color:"#22c55e"}):E.type==="warning"?a.jsx(jo,{"data-vg-id":"137eb473","data-source-path":"/src/components/ViewGateProvider.tsx:392",size:24,color:"#f59e0b"}):a.jsx(mo,{"data-vg-id":"e7ad3c7c","data-source-path":"/src/components/ViewGateProvider.tsx:394",size:24,color:"#ef4444"}),a.jsxs("div",{"data-vg-id":"61c93bb7","data-source-path":"/src/components/ViewGateProvider.tsx:396",children:[a.jsx("strong",{"data-vg-id":"29b8e974","data-source-path":"/src/components/ViewGateProvider.tsx:397",style:{display:"block",fontSize:"13px",color:"#0f172a",textTransform:"uppercase",marginBottom:"2px"},children:E.type==="success"?C.successHeader:E.type==="warning"?t==="es"?"Aviso":"Warning":C.errorHeader}),a.jsx("span",{"data-vg-id":"fbbd7822","data-source-path":"/src/components/ViewGateProvider.tsx:400",style:{fontSize:"14px",color:"#000000"},children:E.message})]})]},E.id))})]})})]})};function Vo(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const s=document.implementation.createHTMLDocument(),o=s.createElement("base"),n=s.createElement("a");return s.head.appendChild(o),s.body.appendChild(n),t&&(o.href=t),n.href=e,n.href}const Ro=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function He(e){const t=[];for(let s=0,o=e.length;s<o;s++)t.push(e[s]);return t}let ot=null;function Rs(e={}){return ot||(e.includeStyleProperties?(ot=e.includeStyleProperties,ot):(ot=He(window.getComputedStyle(document.documentElement)),ot))}function Yt(e,t){const o=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return o?parseFloat(o.replace("px","")):0}function _o(e){const t=Yt(e,"border-left-width"),s=Yt(e,"border-right-width");return e.clientWidth+t+s}function Go(e){const t=Yt(e,"border-top-width"),s=Yt(e,"border-bottom-width");return e.clientHeight+t+s}function _s(e,t={}){const s=t.width||_o(e),o=t.height||Go(e);return{width:s,height:o}}function To(){let e,t;try{t=process}catch{}const s=t&&t.env?t.env.devicePixelRatio:null;return s&&(e=parseInt(s,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const Oe=16384;function Ao(e){(e.width>Oe||e.height>Oe)&&(e.width>Oe&&e.height>Oe?e.width>e.height?(e.height*=Oe/e.width,e.width=Oe):(e.width*=Oe/e.height,e.height=Oe):e.width>Oe?(e.height*=Oe/e.width,e.width=Oe):(e.width*=Oe/e.height,e.height=Oe))}function Xt(e){return new Promise((t,s)=>{const o=new Image;o.onload=()=>{o.decode().then(()=>{requestAnimationFrame(()=>t(o))})},o.onerror=s,o.crossOrigin="anonymous",o.decoding="async",o.src=e})}async function Io(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function Po(e,t,s){const o="http://www.w3.org/2000/svg",n=document.createElementNS(o,"svg"),i=document.createElementNS(o,"foreignObject");return n.setAttribute("width",`${t}`),n.setAttribute("height",`${s}`),n.setAttribute("viewBox",`0 0 ${t} ${s}`),i.setAttribute("width","100%"),i.setAttribute("height","100%"),i.setAttribute("x","0"),i.setAttribute("y","0"),i.setAttribute("externalResourcesRequired","true"),n.appendChild(i),i.appendChild(e),Io(n)}const ke=(e,t)=>{if(e instanceof t)return!0;const s=Object.getPrototypeOf(e);return s===null?!1:s.constructor.name===t.name||ke(s,t)};function No(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function zo(e,t){return Rs(t).map(s=>{const o=e.getPropertyValue(s),n=e.getPropertyPriority(s);return`${s}: ${o}${n?" !important":""};`}).join(" ")}function Lo(e,t,s,o){const n=`.${e}:${t}`,i=s.cssText?No(s):zo(s,o);return document.createTextNode(`${n}{${i}}`)}function Gs(e,t,s,o){const n=window.getComputedStyle(e,s),i=n.getPropertyValue("content");if(i===""||i==="none")return;const l=Ro();try{t.className=`${t.className} ${l}`}catch{return}const u=document.createElement("style");u.appendChild(Lo(l,s,n,o)),t.appendChild(u)}function Mo(e,t,s){Gs(e,t,":before",s),Gs(e,t,":after",s)}const Ts="application/font-woff",As="image/jpeg",Do={woff:Ts,woff2:Ts,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:As,jpeg:As,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function Wo(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function Pa(e){const t=Wo(e).toLowerCase();return Do[t]||""}function Fo(e){return e.split(/,/)[1]}function Na(e){return e.search(/^(data:)/)!==-1}function Bo(e,t){return`data:${t};base64,${e}`}async function Is(e,t,s){const o=await fetch(e,t);if(o.status===404)throw new Error(`Resource "${o.url}" not found`);const n=await o.blob();return new Promise((i,l)=>{const u=new FileReader;u.onerror=l,u.onloadend=()=>{try{i(s({res:o,result:u.result}))}catch(h){l(h)}},u.readAsDataURL(n)})}const za={};function Ho(e,t,s){let o=e.replace(/\?.*/,"");return s&&(o=e),/ttf|otf|eot|woff2?/i.test(o)&&(o=o.replace(/.*\//,"")),t?`[${t}]${o}`:o}async function La(e,t,s){const o=Ho(e,t,s.includeQueryParams);if(za[o]!=null)return za[o];s.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let n;try{const i=await Is(e,s.fetchRequestInit,({res:l,result:u})=>(t||(t=l.headers.get("Content-Type")||""),Fo(u)));n=Bo(i,t)}catch(i){n=s.imagePlaceholder||"";let l=`Failed to fetch resource: ${e}`;i&&(l=typeof i=="string"?i:i.message),l&&console.warn(l)}return za[o]=n,n}async function Uo(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):Xt(t)}async function Yo(e,t){if(e.currentSrc){const i=document.createElement("canvas"),l=i.getContext("2d");i.width=e.clientWidth,i.height=e.clientHeight,l?.drawImage(e,0,0,i.width,i.height);const u=i.toDataURL();return Xt(u)}const s=e.poster,o=Pa(s),n=await La(s,o,t);return Xt(n)}async function Xo(e,t){var s;try{if(!((s=e?.contentDocument)===null||s===void 0)&&s.body)return await Kt(e.contentDocument.body,t,!0)}catch{}return e.cloneNode(!1)}async function Ko(e,t){return ke(e,HTMLCanvasElement)?Uo(e):ke(e,HTMLVideoElement)?Yo(e,t):ke(e,HTMLIFrameElement)?Xo(e,t):e.cloneNode(Ps(e))}const Jo=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT",Ps=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SVG";async function Zo(e,t,s){var o,n;if(Ps(t))return t;let i=[];return Jo(e)&&e.assignedNodes?i=He(e.assignedNodes()):ke(e,HTMLIFrameElement)&&(!((o=e.contentDocument)===null||o===void 0)&&o.body)?i=He(e.contentDocument.body.childNodes):i=He(((n=e.shadowRoot)!==null&&n!==void 0?n:e).childNodes),i.length===0||ke(e,HTMLVideoElement)||await i.reduce((l,u)=>l.then(()=>Kt(u,s)).then(h=>{h&&t.appendChild(h)}),Promise.resolve()),t}function Qo(e,t,s){const o=t.style;if(!o)return;const n=window.getComputedStyle(e);n.cssText?(o.cssText=n.cssText,o.transformOrigin=n.transformOrigin):Rs(s).forEach(i=>{let l=n.getPropertyValue(i);i==="font-size"&&l.endsWith("px")&&(l=`${Math.floor(parseFloat(l.substring(0,l.length-2)))-.1}px`),ke(e,HTMLIFrameElement)&&i==="display"&&l==="inline"&&(l="block"),i==="d"&&t.getAttribute("d")&&(l=`path(${t.getAttribute("d")})`),o.setProperty(i,l,n.getPropertyPriority(i))})}function $o(e,t){ke(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),ke(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function qo(e,t){if(ke(e,HTMLSelectElement)){const o=Array.from(t.children).find(n=>e.value===n.getAttribute("value"));o&&o.setAttribute("selected","")}}function en(e,t,s){return ke(t,Element)&&(Qo(e,t,s),Mo(e,t,s),$o(e,t),qo(e,t)),t}async function tn(e,t){const s=e.querySelectorAll?e.querySelectorAll("use"):[];if(s.length===0)return e;const o={};for(let i=0;i<s.length;i++){const u=s[i].getAttribute("xlink:href");if(u){const h=e.querySelector(u),y=document.querySelector(u);!h&&y&&!o[u]&&(o[u]=await Kt(y,t,!0))}}const n=Object.values(o);if(n.length){const i="http://www.w3.org/1999/xhtml",l=document.createElementNS(i,"svg");l.setAttribute("xmlns",i),l.style.position="absolute",l.style.width="0",l.style.height="0",l.style.overflow="hidden",l.style.display="none";const u=document.createElementNS(i,"defs");l.appendChild(u);for(let h=0;h<n.length;h++)u.appendChild(n[h]);e.appendChild(l)}return e}async function Kt(e,t,s){return!s&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(o=>Ko(o,t)).then(o=>Zo(e,o,t)).then(o=>en(e,o,t)).then(o=>tn(o,t))}const Ns=/url\((['"]?)([^'"]+?)\1\)/g,an=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,sn=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function rn(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function on(e){const t=[];return e.replace(Ns,(s,o,n)=>(t.push(n),s)),t.filter(s=>!Na(s))}async function nn(e,t,s,o,n){try{const i=s?Vo(t,s):t,l=Pa(t);let u;return n||(u=await La(i,l,o)),e.replace(rn(t),`$1${u}$3`)}catch{}return e}function cn(e,{preferredFontFormat:t}){return t?e.replace(sn,s=>{for(;;){const[o,,n]=an.exec(s)||[];if(!n)return"";if(n===t)return`src: ${o};`}}):e}function zs(e){return e.search(Ns)!==-1}async function Ls(e,t,s){if(!zs(e))return e;const o=cn(e,s);return on(o).reduce((i,l)=>i.then(u=>nn(u,l,t,s)),Promise.resolve(o))}async function nt(e,t,s){var o;const n=(o=t.style)===null||o===void 0?void 0:o.getPropertyValue(e);if(n){const i=await Ls(n,null,s);return t.style.setProperty(e,i,t.style.getPropertyPriority(e)),!0}return!1}async function ln(e,t){await nt("background",e,t)||await nt("background-image",e,t),await nt("mask",e,t)||await nt("-webkit-mask",e,t)||await nt("mask-image",e,t)||await nt("-webkit-mask-image",e,t)}async function dn(e,t){const s=ke(e,HTMLImageElement);if(!(s&&!Na(e.src))&&!(ke(e,SVGImageElement)&&!Na(e.href.baseVal)))return;const o=s?e.src:e.href.baseVal,n=await La(o,Pa(o),t);await new Promise((i,l)=>{e.onload=i,e.onerror=t.onImageErrorHandler?(...h)=>{try{i(t.onImageErrorHandler(...h))}catch(y){l(y)}}:l;const u=e;u.decode&&(u.decode=i),u.loading==="lazy"&&(u.loading="eager"),s?(e.srcset="",e.src=n):e.href.baseVal=n})}async function pn(e,t){const o=He(e.childNodes).map(n=>Ms(n,t));await Promise.all(o).then(()=>e)}async function Ms(e,t){ke(e,Element)&&(await ln(e,t),await dn(e,t),await pn(e,t))}function un(e,t){const{style:s}=e;t.backgroundColor&&(s.backgroundColor=t.backgroundColor),t.width&&(s.width=`${t.width}px`),t.height&&(s.height=`${t.height}px`);const o=t.style;return o!=null&&Object.keys(o).forEach(n=>{s[n]=o[n]}),e}const Ds={};async function Ws(e){let t=Ds[e];if(t!=null)return t;const o=await(await fetch(e)).text();return t={url:e,cssText:o},Ds[e]=t,t}async function Fs(e,t){let s=e.cssText;const o=/url\(["']?([^"')]+)["']?\)/g,i=(s.match(/url\([^)]+\)/g)||[]).map(async l=>{let u=l.replace(o,"$1");return u.startsWith("https://")||(u=new URL(u,e.url).href),Is(u,t.fetchRequestInit,({result:h})=>(s=s.replace(l,`url(${h})`),[l,h]))});return Promise.all(i).then(()=>s)}function Bs(e){if(e==null)return[];const t=[],s=/(\/\*[\s\S]*?\*\/)/gi;let o=e.replace(s,"");const n=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const h=n.exec(o);if(h===null)break;t.push(h[0])}o=o.replace(n,"");const i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,l="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",u=new RegExp(l,"gi");for(;;){let h=i.exec(o);if(h===null){if(h=u.exec(o),h===null)break;i.lastIndex=u.lastIndex}else u.lastIndex=i.lastIndex;t.push(h[0])}return t}async function fn(e,t){const s=[],o=[];return e.forEach(n=>{if("cssRules"in n)try{He(n.cssRules||[]).forEach((i,l)=>{if(i.type===CSSRule.IMPORT_RULE){let u=l+1;const h=i.href,y=Ws(h).then(x=>Fs(x,t)).then(x=>Bs(x).forEach(m=>{try{n.insertRule(m,m.startsWith("@import")?u+=1:n.cssRules.length)}catch(G){console.error("Error inserting rule from remote css",{rule:m,error:G})}})).catch(x=>{console.error("Error loading remote css",x.toString())});o.push(y)}})}catch(i){const l=e.find(u=>u.href==null)||document.styleSheets[0];n.href!=null&&o.push(Ws(n.href).then(u=>Fs(u,t)).then(u=>Bs(u).forEach(h=>{l.insertRule(h,l.cssRules.length)})).catch(u=>{console.error("Error loading remote stylesheet",u)})),console.error("Error inlining remote css file",i)}}),Promise.all(o).then(()=>(e.forEach(n=>{if("cssRules"in n)try{He(n.cssRules||[]).forEach(i=>{s.push(i)})}catch(i){console.error(`Error while reading CSS rules from ${n.href}`,i)}}),s))}function gn(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>zs(t.style.getPropertyValue("src")))}async function mn(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const s=He(e.ownerDocument.styleSheets),o=await fn(s,t);return gn(o)}function Hs(e){return e.trim().replace(/["']/g,"")}function hn(e){const t=new Set;function s(o){(o.style.fontFamily||getComputedStyle(o).fontFamily).split(",").forEach(i=>{t.add(Hs(i))}),Array.from(o.children).forEach(i=>{i instanceof HTMLElement&&s(i)})}return s(e),t}async function xn(e,t){const s=await mn(e,t),o=hn(e);return(await Promise.all(s.filter(i=>o.has(Hs(i.style.fontFamily))).map(i=>{const l=i.parentStyleSheet?i.parentStyleSheet.href:null;return Ls(i.cssText,l,t)}))).join(`
|
|
8
|
+
`)}async function vn(e,t){const s=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await xn(e,t);if(s){const o=document.createElement("style"),n=document.createTextNode(s);o.appendChild(n),e.firstChild?e.insertBefore(o,e.firstChild):e.appendChild(o)}}async function yn(e,t={}){const{width:s,height:o}=_s(e,t),n=await Kt(e,t,!0);return await vn(n,t),await Ms(n,t),un(n,t),await Po(n,s,o)}async function Us(e,t={}){const{width:s,height:o}=_s(e,t),n=await yn(e,t),i=await Xt(n),l=document.createElement("canvas"),u=l.getContext("2d"),h=t.pixelRatio||To(),y=t.canvasWidth||s,x=t.canvasHeight||o;return l.width=y*h,l.height=x*h,t.skipAutoScale||Ao(l),l.style.width=`${y}`,l.style.height=`${x}`,t.backgroundColor&&(u.fillStyle=t.backgroundColor,u.fillRect(0,0,l.width,l.height)),u.drawImage(i,0,0,l.width,l.height),l}const it=2147e6,Ys=it,$e=it,bn=it-100,wn=it-50,Sn=it-150,Te="data-vg-pin-id",kn=()=>{const e=window.innerWidth;return e<768?"mobile":e<1024?"tablet":"desktop"},Xs=(e,t)=>{if(!e)return"";try{const s=new Date(e);return isNaN(s.getTime())?"":new Intl.DateTimeFormat(t==="es"?"es-ES":"en-US",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1}).format(s)}catch{return""}},Ks=({url:e,className:t,style:s,tooltipStyle:o,onHover:n})=>{const i=p.useRef(null),l=()=>{if(!i.current||!n)return;const y=i.current.getBoundingClientRect(),x=y.top,m=window.innerHeight-y.bottom,G=x<140&&m>x?"bottom":"top";n({url:e,x:y.left+y.width/2,y:G==="top"?y.top:y.bottom,direction:G})},u=y=>y.toLowerCase().replace(/\/$/g,"").replace(/\/(?:[0-9]+|(?:[0-9a-f]{24}))(?=\/|$)/g,"/:id"),h=()=>{try{const y=u(window.location.pathname),x=new URL(e),m=u(x.pathname);return y===m||y.startsWith(m)||m.startsWith(y)}catch{return!1}};return a.jsxs("div",{ref:i,className:`vg-url-tag ${t||""}`,style:{...s,opacity:h()?1:.6,borderColor:h()?"var(--vg-primary)":"#e2e8f0"},onMouseEnter:l,onMouseMove:l,onMouseLeave:()=>n?.(null),children:[a.jsx(Be,{"data-vg-id":"353251b6","data-source-path":"/src/components/ViewGateOverlay.tsx:159",size:s?.fontSize?parseInt(s.fontSize)+1:10}),a.jsx("span",{"data-vg-id":"1b724dd0","data-source-path":"/src/components/ViewGateOverlay.tsx:160",style:{maxWidth:s?.maxWidth||"150px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:new URL(e).pathname})]})},Ct=e=>{const t=[],s=[],o=[];let n=e,i=!1;for(;n&&n.nodeType===Node.ELEMENT_NODE;){const l=n.localName.toLowerCase();let u=1,h=n.previousElementSibling;for(;h;)h.localName.toLowerCase()===l&&u++,h=h.previousElementSibling;const y=l==="body"||l==="head"||l==="html"?l:`${l}:nth-of-type(${u})`;if(o.unshift(y),!i){const x=n.getAttribute("data-testid")||n.getAttribute("data-qa");if(x){const m=n.hasAttribute("data-testid")?"data-testid":"data-qa";s.push(`[${m}="${x}"]`)}n.id&&!n.id.startsWith("vg-")&&!n.id.includes(":")?(t.unshift(`#${n.id}`),i=!0):x?(t.unshift(`[${n.hasAttribute("data-testid")?"data-testid":"data-qa"}="${x}"]`),i=!0):t.unshift(y)}if(n=n.parentElement,l==="html")break}return{selector:t.join(" > "),fallbacks:s,vgPath:o.join(" > ")}},Js=e=>{const{vgPath:t}=Ct(e);return{vgPath:t,classHash:e.className,parentTag:e.parentElement?.tagName.toLowerCase(),neighborCount:e.parentElement?.children.length,ariaLabel:e.getAttribute("aria-label")||e.getAttribute("title")||void 0,role:e.getAttribute("role")||void 0,name:e.getAttribute("name")||void 0,type:e.getAttribute("type")||void 0,placeholder:e.getAttribute("placeholder")||void 0,testId:e.getAttribute("data-testid")||e.getAttribute("data-qa")||void 0,textSnippet:(e.innerText||"").slice(0,50).trim()}},jn=(()=>{let e=null,t=null;return s=>{if(!s||typeof window>"u"||typeof document>"u")return s;if(s.includes("oklch")||s.includes("oklab")||s.includes("lab(")||s.includes("lch(")||s.includes("color("))try{if(e||(e=document.createElement("canvas"),e.width=1,e.height=1),t||(t=e.getContext("2d",{willReadFrequently:!0})),t){t.fillStyle="#000000",t.fillStyle=s;const i=t.fillStyle;if(i&&!i.includes("oklch")&&!i.includes("oklab"))return i}const o=document.createElement("div");o.style.color=s,document.body.appendChild(o);const n=getComputedStyle(o).color;return document.body.removeChild(o),n&&!n.includes("oklch")?n:"rgb(0,0,0)"}catch{return"rgb(0,0,0)"}return s}})(),En=e=>{const t=window.getComputedStyle(e),s={};return["display","position","margin","padding","font-size","color","background-color","width","height","z-index"].forEach(n=>{const i=t.getPropertyValue(n);s[n]=jn(i)}),s},Cn=e=>{const s=Object.keys(e).find(i=>i.startsWith("__reactFiber$")||i.startsWith("__reactInternalInstance$"));if(!s)return"";const o=[];let n=e[s];for(;n;){const i=n.type;if(typeof i=="function"){const l=i.displayName||i.name;l&&!l.includes("ViewGate")&&!o.includes(l)&&o.unshift(l)}n=n.return}return o.join(" > ")||"Generic Component"},Jt=e=>{if(!e||e.id==="viewgate-ui"||e.id==="viewgate-shadow-host"||e.closest("#viewgate-shadow-host"))return!1;if(e.getAttribute("role")==="dialog"||e.getAttribute("aria-modal")==="true"||e.classList.contains("modal")||e.classList.contains("modal-content"))return!0;const t=window.getComputedStyle(e),s=e.getBoundingClientRect(),o=e.getAttribute("role");if(o&&["listbox","menu","combobox","tooltip","option"].includes(o)||s.width<120&&s.height<120)return!1;const i=parseInt(t.zIndex)||0,l=t.position==="fixed"||t.position==="absolute",u=s.width>window.innerWidth*.4&&s.height>window.innerHeight*.4,h=Math.abs(s.left+s.width/2-window.innerWidth/2)<50,y=e.getAttribute("class")||"",x=y.toLowerCase().includes("modal")||y.toLowerCase().includes("dialog");return!!(l&&i>=100&&(u||h||x))},Zt=e=>{let t=e;for(;t&&t!==document.body;){if(Jt(t))return t;t=t.parentElement}return null},Me=e=>{if(!e.isConnected)return!1;const t=window.getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden"||t.opacity==="0")return e.tagName!=="BODY"&&e.tagName,!1;if(e.offsetWidth===0||e.offsetHeight===0)return!1;let s=e.parentElement;for(;s;){const n=window.getComputedStyle(s);if(n.display==="none"||n.visibility==="hidden"||n.opacity==="0")return!1;s=s.parentElement}const o=e.getBoundingClientRect();return!(o.width===0||o.height===0)},Zs=(e,t=document)=>{const s=t.querySelector(e);if(s)return s;const o=t.querySelectorAll("*");for(const n of Array.from(o)){const i=n.shadowRoot;if(i){const l=Zs(e,i);if(l)return l}}return null},Qs=(e,t)=>{let s=document.elementFromPoint(e,t);for(;s&&s.shadowRoot;){const o=s.shadowRoot.elementFromPoint(e,t);if(!o||o===s)break;s=o}return s},On=e=>{if(!e.tag)return null;const t=Array.from(document.getElementsByTagName(e.tag));let s=null,o=0;for(const n of t){if(!Ot(n,e))continue;let i=0;const l=n.getAttribute("placeholder"),u=e.attributes?.placeholder||e.fingerprint?.placeholder;u&&l===u&&(i+=6);const h=n.getAttribute("type"),y=e.attributes?.type||e.fingerprint?.type;if(y&&h===y&&(i+=2),n.innerText?.trim()===e.text.trim()&&(i+=5),e.fingerprint?.vgPath){const{vgPath:x}=Ct(n);(x===e.vgPath||e.fingerprint?.vgPath===x)&&(i+=10)}i>o&&i>=7&&(o=i,s=n)}return s},Ot=(e,t)=>{if(e.tagName.toLowerCase()!==t.tag.toLowerCase())return!1;const s=e.getAttribute("placeholder"),o=t.attributes?.placeholder||t.fingerprint?.placeholder;if(o&&s&&o!==s)return!1;const n=e.getAttribute("type"),i=t.attributes?.type||t.fingerprint?.type;return!(i&&n&&i!==n)},$s=(e,t)=>{if(t){const l=Array.from(document.querySelectorAll(`[${Te}="${t}"]`));if(l.length>0){const u=l.filter(h=>Ot(h,e));if(u.length===0)l.forEach(h=>h.removeAttribute(Te));else{const h=u.find(x=>{const{vgPath:m}=Ct(x);return m===e.vgPath||e.fingerprint?.vgPath===m}),y=h&&Me(h)?h:u.find(x=>!(!Me(x)||e.metadata?.isModal&&!x.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content')));return y?(l.forEach(x=>{x!==y&&x.removeAttribute(Te)}),y):null}}}if(e.vgPath)try{const l=document.querySelector(e.vgPath);if(l&&Ot(l,e)&&Me(l)&&(!e.metadata?.isModal||Zt(l)))return l}catch{}const o=(e.selector?Array.from(document.querySelectorAll(e.selector)):[]).filter(l=>Ot(l,e));let n=o.find(l=>{const{vgPath:u}=Ct(l);return u===e.vgPath||e.fingerprint?.vgPath===u})||o[0]||null;if(n&&Me(n))if(e.metadata?.isModal&&!Zt(n))n=null;else return n;if(e.fallbackSelectors)for(const l of e.fallbackSelectors){const u=Zs(l);if(u&&Ot(u,e)&&Me(u)){if(e.metadata?.isModal&&!Zt(u))continue;return u}}const i=On(e);return i&&Me(i)?e.metadata?.isModal&&!Zt(i)?null:i:null},Ma=e=>({tag:e.tagName.toLowerCase(),text:(e.innerText||e.getAttribute("placeholder")||"").slice(0,50).trim(),role:e.getAttribute("role")||void 0,type:e.getAttribute("type")||void 0}),qs=e=>{if(!e)return"";let t=e.replace(/<path[^>]*d="([^"]{50,})"[^>]*\/?>/gi,(s,o)=>s.replace(o,`${o.substring(0,20)}...[STRIPPED_${o.length}]`));return t=t.replace(/<polygon[^>]*points="([^"]{50,})"[^>]*\/?>/gi,(s,o)=>s.replace(o,`${o.substring(0,20)}...[STRIPPED_${o.length}]`)),t},Vn=e=>{const t=e.parentElement;if(!t)return;const s=Array.from(t.children).filter(l=>l!==e).slice(0,5).map(l=>Ma(l)),o=Array.from(t.children),n=o.indexOf(e);let i="middle";return n===0&&(i="start"),n===o.length-1&&(i="end"),{target:{...Ma(e),location:`${i} of ${t.tagName.toLowerCase()}`},parent:Ma(t),siblings:s}},er=(e,t)=>{const s=e.getAttribute("data-vg-id")||void 0;let o;const i=Object.keys(e).find(V=>V.startsWith("__reactFiber$")||V.startsWith("__reactInternalInstance$"));if(i){let V=e[i];for(;V;){if(V._debugSource){const{fileName:S,lineNumber:de,columnNumber:Ve}=V._debugSource;o=`${S}:${de}${Ve?":"+Ve:""}`;break}V=V.return}}const l=Js(e),u={vgId:s?1:0,fiber:o?.8:0,fingerprint:.5+(l.testId?.3:0)+(l.ariaLabel?.1:0)};let h=e.getAttribute("data-source-path")||o||"unknown:0";const y=Cn(e),{selector:x,fallbacks:m,vgPath:G}=Ct(e),j={};["placeholder","aria-label","name","type","alt","title","value","role","data-testid"].forEach(V=>{const S=e.getAttribute(V);S&&(j[V]=S)});const C=(()=>{let V=e;for(;V&&V!==document.body;){if(Jt(V))return!0;V=V.parentElement}return!1})();let E;C&&t&&!t.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content')&&(E=er(t));const z=`${e.tagName.toLowerCase()}-${(e.innerText||"").slice(0,20).replace(/\s+/g,"_")}-${x.split(" > ").slice(-1)}`;return{tag:e.tagName.toLowerCase(),id:e.id||"",classes:e.className||"",text:(e.innerText||"").slice(0,100).trim(),selector:x,vgPath:G,vgId:s,outerHtml:qs(e.outerHTML),parentContext:e.parentElement?`<${e.parentElement.tagName.toLowerCase()} ${Array.from(e.parentElement.attributes).map(V=>`${V.name}="${V.value}"`).join(" ").slice(0,500)}>`:"N/A",componentPath:y,signature:z,source:h,attributes:j,confidence:u,fallbackSelectors:[...new Set(m)].slice(0,5),domPath:[],viewportSize:{width:window.innerWidth,height:window.innerHeight},uiContext:Vn(e),fingerprint:Js(e),metadata:{hint:`Edit ${h.split(":")[0]} at line ${h.split(":")[1]||"?"}`,computedStyles:En(e),viewportBreakpoint:kn(),outerHtml:qs(e.outerHTML).slice(0,2e3),scrollPosition:{x:window.scrollX,y:window.scrollY},isModal:C,triggerReference:E}}},tr=()=>{const{mutate:e}=ys(),{addToast:t,language:s,t:o,apiKey:n,baseUrl:i,dashboardUrl:l,disableViewGate:u,hasActiveToasts:h}=Vs(),[y,x]=p.useState(typeof window<"u"?window.location.pathname+window.location.search:"/"),m=p.useMemo(()=>typeof window>"u"?!1:window.location.href.includes("viewgate-backlog"),[y]),[G,j]=p.useState(null),[C,E]=p.useState(null),[z,V]=p.useState(!1),[S,de]=p.useState(!1),[Ve,te]=p.useState(null);p.useRef(null);const ye=p.useCallback(async(r,c)=>{if(!c||!r)return null;const d=document.createElement("canvas");d.width=c.width,d.height=c.height;const f=d.getContext("2d");return f?(f.drawImage(r,c.x,c.y,c.width,c.height,0,0,c.width,c.height),d.toDataURL("image/webp",.85)):null},[]);p.useEffect(()=>{const r=()=>x(window.location.pathname+window.location.search);window.addEventListener("popstate",r);const c=window.history.pushState,d=window.history.replaceState;return window.history.pushState=function(...f){c.apply(this,f),setTimeout(r,0)},window.history.replaceState=function(...f){d.apply(this,f),setTimeout(r,0)},()=>{window.removeEventListener("popstate",r),window.history.pushState=c,window.history.replaceState=d}},[]);const[A,ne]=p.useState(!1),[W,Pe]=p.useState("medium"),[pe,Re]=p.useState("medium"),[ae,ue]=p.useState("all"),[N,be]=p.useState(null),[K,fe]=p.useState(null),[we,je]=p.useState(""),[g,T]=p.useState(!1),[R,F]=p.useState([]),[ie,Ee]=p.useState([{name:o.figmaPrimaryDesign,link:""}]),[_,ce]=p.useState([]),[Ae,qe]=p.useState([]),[Vt,Qt]=p.useState(null),[ct,De]=p.useState(!1),[lt,ar]=p.useState(""),[B,Y]=p.useState(!1),[Q,$]=p.useState("down");p.useRef(null);const[Z,q]=p.useState(!1),[M,me]=p.useState([]),[le,Ge]=p.useState(null),[Ue,$t]=p.useState(""),[_e,Ne]=p.useState(!1),[Rt,qt]=p.useState({}),[Se,Wa]=p.useState(null),[ea,sr]=p.useState(!1),[Ye,rr]=p.useState(null),[mi,hi]=p.useState([]),[D,ta]=p.useState(()=>typeof window>"u"?null:localStorage.getItem("vg_token")||sessionStorage.getItem("vg_token")),[he,aa]=p.useState(()=>{if(typeof window>"u")return null;const r=localStorage.getItem("vg_user")||sessionStorage.getItem("vg_user");return r&&r!=="undefined"?JSON.parse(r):null}),[_t,sa]=p.useState(()=>typeof window>"u"?null:localStorage.getItem("vg_role")||sessionStorage.getItem("vg_role")),[Xe,or]=p.useState(""),[Fa,nr]=p.useState(!1),[xi,vi]=p.useState("idle"),[Ke,ir]=p.useState(!0),[yi,Tn]=p.useState(!1),[Gt,cr]=p.useState(!1),[ra,lr]=p.useState(!1),[oa,dr]=p.useState(!1),[na,Ba]=p.useState(!0),[An,pr]=p.useState(!1),In=p.useCallback(()=>{Ge({title:s==="es"?"Cerrar Sesión":"Logout",message:s==="es"?"¿Estás seguro de que deseas cerrar tu sesión en ViewGate? Tendrás que volver a ingresar desde el Dashboard.":"Are you sure you want to log out from ViewGate? You will need to re-authenticate from the Dashboard.",type:"danger",onConfirm:async()=>{pr(!0),localStorage.removeItem("vg_token"),sessionStorage.removeItem("vg_token"),localStorage.removeItem("vg_user"),sessionStorage.removeItem("vg_user"),localStorage.removeItem("vg_role"),sessionStorage.removeItem("vg_role"),ta(null),aa(null),sa(null),Ba(!1),ne(!1),q(!1),t(s==="es"?"Sesión cerrada correctamente":"Logged out successfully","success"),pr(!1),Ge(null)}})},[s,t]),Pn=async r=>{if(r&&r.preventDefault(),!(!Xe.trim()||!i||!n)){nr(!0);try{const c=await fetch(`${i}/api/auth/me`,{headers:{Authorization:`Bearer ${Xe.trim()}`,"x-api-key":n}});if(!c.ok){const v=await c.json().catch(()=>({}));throw new Error(v.error||v.message||"Invalid token")}const d=await c.json(),f=d.user||(d.email?d:null),b=d.role||f?.role||"dev";if(!f)throw new Error("User not found in token");const O=await fetch(`${i}/api/projects/settings-check`,{headers:{"x-api-key":n,Authorization:`Bearer ${Xe.trim()}`}});if(!O.ok)throw O.status===403?new Error(s==="es"?"No tienes autorización para este proyecto":"No project access for this token"):new Error("Project validation failed");const k=await O.json();ta(Xe.trim()),aa(f),sa(b),k.projectId&&Qt(k.projectId),typeof k.isFigmaConnected=="boolean"&&De(k.isFigmaConnected),typeof k.hasEndpoints=="boolean"&&dr(k.hasEndpoints),localStorage.setItem("vg_token",Xe.trim()),localStorage.setItem("vg_user",JSON.stringify(f)),localStorage.setItem("vg_role",b),t(s==="es"?"Sesión iniciada correctamente":"Logged in successfully","success"),or(""),lr(!0),cr(!1),Tn(!1),be(null),fe(null)}catch(c){let d=c.message||(s==="es"?"Clave inválida o expirada":"Invalid or expired key");t(d,"error")}finally{nr(!1)}}},Tt=p.useCallback(()=>{console.log("[VIEWGATE_WRAPPER] Clearing session"),ta(null),aa(null),sa(null),Ba(!1),sessionStorage.removeItem("vg_token"),sessionStorage.removeItem("vg_user"),sessionStorage.removeItem("vg_role"),localStorage.removeItem("vg_token"),localStorage.removeItem("vg_user"),localStorage.removeItem("vg_role");const r=i;e(c=>typeof c=="string"&&r&&c.startsWith(r),void 0,{revalidate:!1}),me([]),rr(null),ne(!1),fe(null),je(""),q(!1),t(s==="es"?"Sesión finalizada o inválida":"Session ended or invalid","error")},[i,s]);p.useEffect(()=>{const r=c=>{if(c.data?.type?.startsWith("VIEWGATE_")&&console.log("[VIEWGATE_WRAPPER] Received message:",c.data.type,c.data),c.data?.type==="VIEWGATE_AUTH_SUCCESS"||c.data?.type==="VIEWGATE_SILENT_AUTH"){const{token:d,user:f,role:b,error:O}=c.data;if(console.log("[VIEWGATE_WRAPPER] Auth process:",{type:c.data.type,hasToken:!!d,hasUser:!!f}),O==="NO_SESSION")return;const k=sessionStorage.getItem("vg_token");if(d&&d!==k||!d&&k){console.log("[VIEWGATE_WRAPPER] Session sync detected change, clearing caches");const v=i;e(X=>typeof X=="string"&&v&&X.startsWith(v),void 0,{revalidate:!0}),me([])}d&&(ta(d),sessionStorage.setItem("vg_token",d),localStorage.setItem("vg_token",d),f&&(aa(f),sa(b||f.role||"dev"),sessionStorage.setItem("vg_user",JSON.stringify(f)),localStorage.setItem("vg_user",JSON.stringify(f))),c.data.type==="VIEWGATE_AUTH_SUCCESS"&&t(s==="es"?"Sesión iniciada correctamente":"Logged in successfully","success"))}if(c.data?.type==="VIEWGATE_LOGOUT"){if(console.log("[VIEWGATE_WRAPPER] Logout message received"),sessionStorage.getItem("vg_token")){console.log("[VIEWGATE_WRAPPER] Protective logout: Ignoring logout since we have a valid manual session.");return}Tt()}};return window.addEventListener("message",r),()=>window.removeEventListener("message",r)},[s,Tt,i]);const ur=p.useCallback(()=>{if(!n||!i||ra||!D)return;const r={"x-api-key":n};D&&(r.Authorization=`Bearer ${D}`),fetch(`${i}/api/projects/settings-check`,{headers:r}).then(c=>{if(c.status===403)throw Tt(),new Error("Unauthorized");return c.json()}).then(c=>{c.projectId&&Qt(c.projectId),typeof c.isFigmaConnected=="boolean"&&De(c.isFigmaConnected),typeof c.hasEndpoints=="boolean"&&dr(c.hasEndpoints),lr(!0)}).catch(c=>{c.message!=="Unauthorized"&&console.error("Failed to fetch project settings-check",c)})},[n,i,ra]),Ha=p.useCallback(()=>{if(!n||!i||Gt||!D)return;const r={"x-api-key":n};D&&(r.Authorization=`Bearer ${D}`),fetch(`${i}/api/projects/endpoints`,{headers:r}).then(c=>{if(c.status===403)throw Tt(),new Error("Unauthorized");return c.json()}).then(c=>{c.endpoints&&Array.isArray(c.endpoints)?qe(c.endpoints):Array.isArray(c)&&qe(c),typeof c.isFigmaConnected=="boolean"&&De(c.isFigmaConnected),cr(!0)}).catch(c=>{c.message!=="Unauthorized"&&console.error("Failed to fetch project endpoints",c)})},[n,i,Gt]);p.useEffect(()=>{(A||D)&&(ra||ur())},[A,D,ra,ur]),p.useEffect(()=>{B&&!Gt&&Ha()},[B,Gt,Ha]),p.useEffect(()=>{if(R.length===0)return;const r=["frontend"];oa&&r.push("backend"),ct&&r.push("ux");const c=R.filter(d=>r.includes(d));c.length!==R.length&&F(c)},[Ae.length,ct,R]);const fr=p.useCallback(async r=>{const c={"x-api-key":n};D&&(c.Authorization=`Bearer ${D}`);const d=await fetch(r,{headers:c});if(!d.ok){d.status===403&&Tt();const f=await d.json().catch(()=>({}));let b=f.message||f.error||"Fetch failed";b.toLowerCase().includes("invalid or expired token")&&(b=o.invalidToken);const O=new Error(b);throw O.status=d.status,O}return Ba(!0),d.json()},[n,D]),Nn=p.useMemo(()=>m?"backlog":"pending,todo,in_progress,review,ready_for_review,bug_fixing",[m]),{data:ia,isLoading:ca,error:gr}=ws(D&&i?`${i}/api/projects/active-sprint`:null,fr,{revalidateOnFocus:!1,shouldRetryOnError:!1}),{data:At,isLoading:et,mutate:It}=ws(D&&i&&(ia||m)?`${i}/api/annotations?status=${Nn}`:null,fr,{refreshInterval:15e3,revalidateOnFocus:!0,dedupingInterval:5e3}),[tt,mr]=p.useState(null),[dt,bi]=p.useState(null),hr=p.useRef(M);hr.current=M;const[xe,la]=p.useState(null),xr=p.useRef(null),[pt,zn]=p.useState([]),vr=p.useMemo(()=>{const r=(lt||"").toLowerCase().trim();return r?Ae.filter(c=>{const d=c.path&&c.path.toLowerCase().includes(r),f=c.description&&c.description.toLowerCase().includes(r),b=c.method&&c.method.toLowerCase().includes(r);return d||f||b}):Ae},[Ae,lt]),yr=p.useMemo(()=>{const r={},c=s==="es"?"Seleccionados":"Selected";return vr.forEach(d=>{const f=`${d.method}|${d.path}`;_.includes(f)&&(r[c]||(r[c]={name:c,endpoints:[]}),r[c].endpoints.push(d));const O=(d.path||"").split("/").filter(X=>X&&!["api","v1.0","v2","rest"].includes(X.toLowerCase()));let k=O.length>0?O[0]:"General";k=k.replace(/([a-z])([A-Z])/g,"$1 $2"),k=k.replace(/([A-Z])([A-Z][a-z])/g,"$1 $2"),k=k.charAt(0).toUpperCase()+k.slice(1),r[k]||(r[k]={name:k,endpoints:[]});const v=r[k];v&&v.endpoints.push(d)}),Object.values(r).sort((d,f)=>d.name===c?-1:f.name===c||d.name==="General"?1:f.name==="General"?-1:d.name.localeCompare(f.name))},[vr,_,s]),Ua=p.useMemo(()=>{let r=Array.isArray(M)?M:[];if(Se){const d=pt.find(f=>f.annotations&&Array.isArray(f.annotations)&&f.annotations.some(b=>b._id===Se));d?r=d.annotations:r=r.filter(f=>f._id===Se)}return r=r.filter(d=>d.status!=="completed"&&d.status!=="done"),window.location.href.includes("viewgate-backlog")||(xe==="pending"?r=r.filter(d=>d.status!=="ready_for_review"):xe==="ready"&&(r=r.filter(d=>d.status==="ready_for_review"))),ae!=="all"&&(r=r.filter(d=>(d.priority||"medium")===ae)),r},[Se,M,pt,xe,ae]);p.useEffect(()=>{Se&&Ua.length===0&&!et&&Wa(null)},[Se,Ua.length,et]);const[ut,Ln]=p.useState(()=>{if(typeof window>"u")return{bottom:30,right:30};const r=localStorage.getItem("vg-bar-pos");return r?JSON.parse(r):{bottom:30,right:30}}),[Pt,br]=p.useState(!1),We=p.useRef(null),Mn=r=>{r.preventDefault(),r.stopPropagation();const c=r.currentTarget.parentElement?.getBoundingClientRect();c&&(br(!0),We.current={x:r.clientX,y:r.clientY,bottom:ut.bottom,right:ut.right,width:c.width,height:c.height})};p.useEffect(()=>{if(!Pt)return;const r=d=>{if(Pt&&We.current){const f=d.clientX-We.current.x,b=d.clientY-We.current.y;let O=We.current.bottom-b,k=We.current.right-f;const v=10;O=Math.max(v,Math.min(window.innerHeight-We.current.height-v,O)),k=Math.max(v,Math.min(window.innerWidth-We.current.width-v,k)),Ln({bottom:O,right:k})}},c=()=>{Pt&&(br(!1),localStorage.setItem("vg-bar-pos",JSON.stringify(ut)),We.current=null)};return window.addEventListener("mousemove",r),window.addEventListener("mouseup",c),()=>{window.removeEventListener("mousemove",r),window.removeEventListener("mouseup",c)}},[Pt,ut]);const[ft,da]=p.useState(null),[wr,Sr]=p.useState(""),[gt,Ya]=p.useState([]),[at,Nt]=p.useState([]),[Je,pa]=p.useState([]),[ua,kr]=p.useState(!1);p.useEffect(()=>{ft&&pa(_)},[_,ft]),p.useEffect(()=>{if(C&&K){const r=setTimeout(()=>{const c=document.getElementById("viewgate-shadow-host")?.shadowRoot?.querySelector(".vg-viewfinder-container img");c&&c.scrollIntoView({behavior:"smooth",block:"center"})},100);return()=>clearTimeout(r)}},[C,!!K]);const[wi,Si]=p.useState({}),Xa=p.useRef(null),mt=p.useRef(null),Ka=p.useRef(null),fa=p.useRef(!1),jr=p.useCallback(()=>{typeof window>"u"||fa.current||(mt.current&&cancelAnimationFrame(mt.current),mt.current=requestAnimationFrame(()=>{mt.current=null,fa.current=!0,Ka.current;const r=hr.current,c=Array.isArray(r)?r:[],d=new Set(c.map(I=>I._id));document.querySelectorAll(`[${Te}]`).forEach(I=>{const se=I.getAttribute(Te);se&&!d.has(se)&&I.removeAttribute(Te)});const f=Array.from(document.querySelectorAll('[role="dialog"], [aria-modal="true"], [class*="modal" i], [class*="dialog" i], .fixed, .modal-backdrop, .fixed.inset-0')),b=f.find(I=>Jt(I)&&Me(I));let O=!!b;console.log("[ViewGate Debug] Modal Detection:",{potentialModals:f.length,activeModal:b,isAnyModalOpen:O});const k=new Map;c.forEach(I=>{if(!I||!I.reference)return;try{const oe=()=>{const ht=window.location.pathname.toLowerCase().replace(/\/$/g,"").replace(/\/(?:[0-9]+|(?:[0-9a-f]{24}))(?=\/|$)/g,"/:id"),Ze=new URLSearchParams(window.location.search);Ze.delete("viewgate"),Ze.sort();const xt=Ze.toString();return xt?`${ht}?${xt}`:ht},H=ht=>{try{const Ze=new URL(ht),xt=Ze.pathname.toLowerCase().replace(/\/$/g,"").replace(/\/(?:[0-9]+|(?:[0-9a-f]{24}))(?=\/|$)/g,"/:id"),vt=new URLSearchParams(Ze.search);vt.delete("viewgate"),vt.sort();const zt=vt.toString();return zt?`${xt}?${zt}`:xt}catch{return""}},ve=oe(),ga=H(I.url);if(ve!==ga)return}catch{return}const se=!!I.reference.metadata?.isModal;let U=$s(I.reference,I._id);if(console.log(`[ViewGate Debug] Processing Pin [${I._id}]:`,{isModalTarget:se,targetEl:U,isVisible:U?Me(U):!1}),!U||!Me(U))return;let re=!1;if(se?(re=!0,O=!0,console.log(`[ViewGate Debug] Pin [${I._id}] Modal Open Check: isModalTarget=true`)):(re=!O,console.log(`[ViewGate Debug] Pin [${I._id}] No Modal Check: !isAnyModalOpen=${re}`)),!re)return;const ee=U.getAttribute(Te);ee!==I._id&&(document.querySelectorAll(`[${Te}="${I._id}"]`).forEach(oe=>{oe.removeAttribute(Te)}),ee||U.setAttribute(Te,I._id));const L=k;L.has(U)||L.set(U,{anns:[]}),L.get(U).anns.push(I)});const v=[];(I=>{I.forEach((se,U)=>{const{anns:re}=se,ee=U.getBoundingClientRect(),L=ee.left+ee.width/2,oe=ee.top+ee.height/2;if(L>=0&&L<=window.innerWidth&&oe>=0&&oe<=window.innerHeight){const H=document.elementFromPoint(L,oe),ve=document.getElementById("viewgate-shadow-host");if(H&&!U.contains(H)&&H!==ve&&!ve?.contains(H))return}v.push({id:re[0]._id,element:U,rect:ee,annotations:re.sort((H,ve)=>new Date(ve.timestamp||ve.createdAt).getTime()-new Date(H.timestamp||H.createdAt).getTime()),isModal:!!re[0].reference?.metadata?.isModal})})})(k),zn(v),fa.current=!1}))},[Ye]);p.useEffect(()=>{if(At){const r=Array.isArray(At)?At:At?.data||[];if(Array.isArray(r)){const c=r.reduce((d,f)=>d.find(O=>O._id===f._id)?d:d.concat([f]),[]);me(c)}}else et||me([])},[At,et]),p.useEffect(()=>{rr(ia||null)},[ia]),p.useEffect(()=>{Z&&M.length===0&&!et&&q(!1)},[Z,M.length,et]),p.useEffect(()=>{let r=null;const c=()=>{fa.current||jr()},d=new MutationObserver(O=>{O.some(v=>v.type!=="attributes"||v.attributeName!==Te&&!v.target.parentElement?.closest("#viewgate-shadow-host"))&&(r&&clearTimeout(r),r=setTimeout(()=>{c(),setTimeout(c,350)},32))});Ka.current=d;const f=new ResizeObserver(()=>c()),b=()=>c();return c(),d.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0}),f.observe(document.documentElement),window.addEventListener("scroll",b,{capture:!0,passive:!0}),()=>{r&&clearTimeout(r),d.disconnect(),f.disconnect(),window.removeEventListener("scroll",b,!0),mt.current&&cancelAnimationFrame(mt.current),Ka.current=null}},[A,M,jr,Z,Se,y]);const Ja=p.useCallback(r=>{let c=r;for(;c&&c!==document.body;){if(Jt(c))return c;c=c.parentElement}return null},[]);p.useEffect(()=>{const r=c=>{const d=c.target;d&&(Ja(d)||(xr.current=d))};return window.addEventListener("mousedown",r,!0),()=>window.removeEventListener("mousedown",r,!0)},[Ja]),p.useEffect(()=>{Xa.current=document.getElementById("viewgate-shadow-host")},[]);const Za=p.useCallback(r=>{if(!A||K||!D)return;const c=Qs(r.clientX,r.clientY);if(!c||Xa.current?.contains(c)||c.closest(".vg-no-capture")){be(null);return}const d=c.getBoundingClientRect();be({tag:c.tagName.toLowerCase(),source:c.getAttribute("data-source-path")||"unknown:0",rect:d,element:c,previewText:(c.innerText||"").slice(0,100)||(c.getAttribute("placeholder")||"").slice(0,100)||c.tagName.toLowerCase(),semanticReference:{...er(c,xr.current),normalizedOffset:{x:(r.clientX-d.left)/d.width,y:(r.clientY-d.top)/d.height}}})},[A,K,D]),Qa=p.useCallback(async r=>{if(!A||K||!D)return;const c=Qs(r.clientX,r.clientY);if(!(!c||Xa.current?.contains(c)||c.closest(".vg-no-capture"))&&N){const d=N;let f=d.element;Ja(f);let b=d.semanticReference,O=d.tag;r.preventDefault(),r.stopPropagation(),de(!0),je(""),E(null),ir(!0),F([]),V(!1);try{await new Promise(H=>requestAnimationFrame(H)),await new Promise(H=>setTimeout(H,150));const k=f.getBoundingClientRect(),v={...d,element:f,rect:k,semanticReference:b,tag:O},X=window.innerWidth,I=window.innerHeight,se=window.scrollX||window.pageXOffset||document.documentElement.scrollLeft,U=window.scrollY||window.pageYOffset||document.documentElement.scrollTop;te({scrollX:se,scrollY:U,viewportWidth:X,viewportHeight:I}),console.log("[ViewGate] Attempting html-to-image capture with:",{sX:se,sY:U,vWidth:X,vHeight:I}),await new Promise(H=>requestAnimationFrame(H)),await new Promise(H=>setTimeout(H,200));const re=await Us(document.documentElement,{width:X,height:I,pixelRatio:1,skipFonts:!0,cacheBust:!1,style:{transform:`translate(-${se}px, -${U}px)`,transformOrigin:"top left",width:`${document.documentElement.scrollWidth}px`,height:`${document.documentElement.scrollHeight}px`},filter:H=>!(H.id==="viewgate-shadow-host"||H.tagName==="IFRAME"||H.tagName==="SCRIPT"||H.tagName==="STYLE")});console.log("[ViewGate] Final Canvas Dimensions:",re.width,"x",re.height),j(re);const ee=40,L={unit:"px",x:Math.max(0,k.left-ee),y:Math.max(0,k.top-ee),width:Math.min(re.width,k.width+ee*2),height:Math.min(re.height,k.height+ee*2)},oe=await ye(re,L);if(console.log("[ViewGate] Static snapshot generated:",!!oe),oe){const H=new Image;H.src=oe,await new Promise(ve=>{H.onload=ve,H.onerror=ve}),E(oe),V(!0),fe(v)}de(!1),be(null)}catch(k){console.error("[ViewGate] Capture failed:",k),t(s==="es"?"Fallo al capturar el elemento":"Failed to capture element","error"),E(null),de(!1),be(null),fe(null)}}},[A,N,K,i,n,D,s,ye]);p.useEffect(()=>{const r=c=>{const f=(()=>{let k=document.activeElement;for(;k&&k.shadowRoot&&k.shadowRoot.activeElement;)k=k.shadowRoot.activeElement;return k})();if(["input","textarea"].includes((f?.tagName||"").toLowerCase())||f?.isContentEditable)return;const O=c.key.toLowerCase();if(!D){(O==="c"||O==="v")&&t(s==="es"?"Debes iniciar sesión en el Dashboard para usar ViewGate":"Log in to the Dashboard to use ViewGate","warning");return}if(c.key==="Escape"){K?fe(null):Z?q(!1):A&&ne(!1);return}if(O==="c"&&!c.ctrlKey&&!c.metaKey&&!K&&!Z){if(!na){t(s==="es"?"Acceso denegado a este proyecto":"No project access","error");return}if(_t==="client"){t(s==="es"?"Acceso de solo lectura (Backlog)":"Read-only access (Backlog)","warning");return}if(ca&&!A){if(gr?.status===403||!na){const X=gr?.message||(s==="es"?"Acceso denegado a este proyecto":"No project access");t(X,"error");return}t(s==="es"?"Verificando información del sprint...":"Checking sprint info...","warning");return}if(!(Ye&&Ye.status!=="closed")&&!m&&!A){t(s==="es"?"No hay un sprint activo. No se pueden generar comentarios.":"No active sprint found. Cannot generate comments.","error");return}ne(v=>!v)}if(O==="v"&&!K){if(!na){t(s==="es"?"Acceso denegado a este proyecto":"No project access","error");return}(M.length>0||Z)&&(q(k=>!k),Z||ne(!1))}};return A&&!K?document.body.classList.add("vg-cursor-pointer"):document.body.classList.remove("vg-cursor-pointer"),window.addEventListener("keydown",r),window.addEventListener("mousemove",Za,!0),window.addEventListener("click",Qa,!0),()=>{document.body.classList.remove("vg-cursor-pointer"),window.removeEventListener("keydown",r),window.removeEventListener("mousemove",Za,!0),window.removeEventListener("click",Qa,!0)}},[A,K,Z,M,Za,Qa,D,_t]);const Dn=async()=>{if(!(!K||!we.trim())){if(!he){t(s==="es"?"Selecciona un usuario para comentar":"Please select a user to comment","error");return}T(!0);try{let r=C;const{semanticReference:c}=K,[d,f]=(c?.source||"").split(":"),O={filePath:d,line:parseInt(f||"0"),url:window.location.href,title:we.length>50?we.substring(0,50)+"...":we,message:we,status:m?"backlog":"pending",priority:W,type:Ke&&r&&!m&&ia?.status==="active"?"bug":"task",screenshot:Ke?r:null,skipScreenshot:!Ke,componentName:c?.componentPath||K.tag,reference:{...c,captureMetadata:Ve,timestamp:new Date().toISOString()},focusAreas:R,figmaReference:R.includes("ux")?ie:void 0,backendEndpoints:R.includes("backend")?_:[]};he&&(O.creator={name:he.name,email:he.email,avatar:he.avatar});const k=await fetch(`${i}/api/annotations`,{method:"POST",headers:{"Content-Type":"application/json","x-api-key":n,Authorization:D?`Bearer ${D}`:""},body:JSON.stringify(O)});if(!k.ok){const v=await k.json().catch(()=>({}));throw new Error(v.message||v.error||"Backend failed")}t(o.success,"success"),fe(null),je(""),F([]),Ee([{name:o.figmaPrimaryDesign,link:""}]),ce([]),ne(!1),j(null),E(null),It()}catch(r){console.error("[ViewGate] Submission Error:",r);const c=r.message&&r.message!=="Backend failed"?r.message:o.error;t(c,"error")}finally{T(!1)}}},Wn=async r=>{if(r.skipScreenshot||!r.screenshot){console.log("[ViewGate] Skipping evidence capture as ticket has no initial preview.");try{if(!(await fetch(`${i}/api/tickets/${r._id}`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:D?`Bearer ${D}`:""},body:JSON.stringify({status:"completed"})})).ok)throw new Error("API failed");t(s==="es"?"¡Ticket resuelto!":"Ticket resolved!","success"),It();return}catch(c){console.error("[ViewGate] Quick resolve failed:",c),t(s==="es"?"Error al resolver":"Error resolving","error");return}}de(!0);try{const c=$s(r.reference,r._id);if(!c){t(s==="es"?"No se pudo encontrar el elemento original para la captura":"Could not find the original element for capture","error"),de(!1);return}const d=r.reference?.captureMetadata;d?(console.log("[ViewGate] Restoring original viewport scroll:",d.scrollX,d.scrollY),window.scrollTo({left:d.scrollX,top:d.scrollY,behavior:"instant"}),await new Promise(L=>setTimeout(L,400))):(c.scrollIntoView({behavior:"smooth",block:"center"}),await new Promise(L=>setTimeout(L,600)));const f=c.style.outline,b=c.style.transition;c.style.transition="outline 0.3s ease",c.style.outline="4px solid #10b981",c.style.outlineOffset="4px",await new Promise(L=>setTimeout(L,400)),c.style.outline=f,c.style.transition=b,await new Promise(L=>requestAnimationFrame(L)),await new Promise(L=>setTimeout(L,50));const O=d?.viewportWidth||window.innerWidth,k=d?.viewportHeight||window.innerHeight,v=d?.scrollX??(window.scrollX||window.pageXOffset),X=d?.scrollY??(window.scrollY||window.pageYOffset);console.log("[ViewGate] Capturing resolve evidence at:",{sX:v,sY:X,vWidth:O,vHeight:k});const se=(await Us(document.documentElement,{width:O,height:k,pixelRatio:1,skipFonts:!0,cacheBust:!1,style:{transform:`translate(-${v}px, -${X}px)`,transformOrigin:"top left",width:`${document.documentElement.scrollWidth}px`,height:`${document.documentElement.scrollHeight}px`},filter:L=>!(L.id==="viewgate-shadow-host"||L.tagName==="IFRAME"||L.tagName==="SCRIPT"||L.tagName==="STYLE")})).toDataURL("image/webp",.85),U=c.getBoundingClientRect(),re=await fetch(`${i}/api/screenshots/crop-and-preview`,{method:"POST",headers:{"Content-Type":"application/json","x-api-key":n,...D?{Authorization:`Bearer ${D}`}:{}},body:JSON.stringify({fullImage:se,rect:{x:U.left,y:U.top,width:U.width,height:U.height},padding:40,scale:1})});if(!re.ok)throw new Error("Backend cropping failed");const{url:ee}=await re.json();if(ee){const L=await fetch(`${i}/api/tickets/${r._id}`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:D?`Bearer ${D}`:""},body:JSON.stringify({status:"completed",resolvedScreenshot:ee})});if(!L.ok){const oe=await L.json().catch(()=>({}));throw new Error(oe.message||oe.error||"API failed")}t(s==="es"?"¡Ticket resuelto con éxito!":"Ticket resolved successfully!","success"),It()}c.style.outline=f,c.style.transition=b}catch(c){console.error("[ViewGate] Resolve with evidence failed:",c),t(s==="es"?`Error: ${c.message}`:`Error: ${c.message}`,"error")}finally{de(!1)}};return a.jsxs("div",{"data-vg-id":"ef883ffc","data-source-path":"/src/components/ViewGateOverlay.tsx:2265",className:"vg-container",style:{userSelect:"none",WebkitUserSelect:"none"},children:[S&&!K&&a.jsxs("div",{"data-vg-id":"ef883ffd","data-source-path":"/src/components/ViewGateOverlay.tsx:2268",style:{position:"fixed",top:"24px",left:"50%",transform:"translateX(-50%)",zIndex:it+5e3,padding:"10px 20px",backgroundColor:"#000000",color:"#ffffff",borderRadius:"50px",boxShadow:"0 12px 24px rgba(0, 0, 0, 0.2)",display:"flex",alignItems:"center",gap:"12px",fontSize:"14px",fontWeight:600,letterSpacing:"-0.01em",animation:"vgVercelToastIn 0.3s ease-out"},children:[a.jsx("div",{"data-vg-id":"ef883ffe","data-source-path":"/src/components/ViewGateOverlay.tsx:2287",style:{width:"18px",height:"18px",borderRadius:"50%",border:"2px solid rgba(255, 255, 255, 0.2)",borderTopColor:"#ffffff",animation:"vgSpinner 0.8s linear infinite"}}),a.jsx("span",{"data-vg-id":"1b724dd4","data-source-path":"/src/components/ViewGateOverlay.tsx:2295",children:s==="es"?"Procesando evidencia...":"Processing evidence..."}),a.jsx("style",{"data-vg-id":"5afcbca0","data-source-path":"/src/components/ViewGateOverlay.tsx:2296",children:`
|
|
9
|
+
@keyframes vgVercelToastIn {
|
|
10
|
+
from { transform: translate(-50%, -20px); opacity: 0; }
|
|
11
|
+
to { transform: translate(-50%, 0); opacity: 1; }
|
|
12
|
+
}
|
|
13
|
+
`})]}),a.jsxs("div",{"data-vg-id":"ef884001","data-source-path":"/src/components/ViewGateOverlay.tsx:2305",className:"vg-no-capture",style:{userSelect:"none",WebkitUserSelect:"none"},children:[a.jsxs("div",{style:{position:"fixed",bottom:`${ut.bottom}px`,right:`${ut.right}px`,zIndex:Ys,display:"flex",alignItems:"center",gap:"8px",transition:Pt?"none":"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)"},id:"viewgate-ui",children:[a.jsx("div",{onMouseDown:Mn,style:{width:"24px",height:"40px",borderRadius:"10px",backgroundColor:"rgba(255, 255, 255, 0.85)",backdropFilter:"blur(4px)",display:"flex",alignItems:"center",justifyContent:"center",cursor:"grab",color:"#1e293b",opacity:A?0:1,visibility:A?"hidden":"visible",transition:"all 0.2s",border:"1px solid rgba(0,0,0,0.1)",boxShadow:"0 2px 8px rgba(0,0,0,0.05)"},onMouseEnter:r=>{r.currentTarget.style.backgroundColor="white",r.currentTarget.style.color="#000000"},onMouseLeave:r=>{r.currentTarget.style.backgroundColor="rgba(255, 255, 255, 0.85)",r.currentTarget.style.color="#1e293b"},className:"vg-animate-slide-up",children:a.jsx(xo,{"data-vg-id":"3dbe6a15","data-source-path":"/src/components/ViewGateOverlay.tsx:2352",size:16})}),a.jsxs("div",{"data-vg-id":"17fbf76","data-source-path":"/src/components/ViewGateOverlay.tsx:2355",className:"vg-action-bar vg-animate-slide-up",style:{transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)"},children:[D?na?a.jsxs(a.Fragment,{children:[_t!=="client"&&a.jsx("button",{onClick:()=>{if(ca&&!A){t(s==="es"?"Sincronizando con el servidor...":"Syncing with server...","warning");return}if(!Ye&&!m&&!A){t(s==="es"?"No hay un sprint activo. No se pueden generar comentarios.":"No active sprint found. Cannot generate comments.","error");return}ne(!A)},className:"vg-button-primary vg-animate-pop",style:{padding:"12px 24px",background:A?"#ef4444":!Ye&&!m?"#94a3b8":void 0,cursor:!Ye&&!m&&!A?"not-allowed":"pointer",opacity:!Ye&&!m&&!A?.7:1},title:!Ye&&!m&&!A?s==="es"?"Requiere sprint activo":"Requires active sprint":"",children:a.jsxs("div",{"data-vg-id":"17fbf78","data-source-path":"/src/components/ViewGateOverlay.tsx:2394",style:{display:"flex",alignItems:"center",gap:"10px"},children:[ca&&!A?a.jsx(Ia,{"data-vg-id":"cb81c7eb","data-source-path":"/src/components/ViewGateOverlay.tsx:2396",size:20,className:"vg-animate-spin"}):A?a.jsx(jt,{"data-vg-id":"ff5f5d3","data-source-path":"/src/components/ViewGateOverlay.tsx:2398",size:20,className:"vg-animate-pop"}):a.jsx(Ht,{"data-vg-id":"10c621c8","data-source-path":"/src/components/ViewGateOverlay.tsx:2400",size:20,className:"vg-animate-pop"}),a.jsx("span",{"data-vg-id":"52d76c47","data-source-path":"/src/components/ViewGateOverlay.tsx:2402",children:ca&&!A?s==="es"?"Cargando...":"Loading...":A?o.exitMode:o.enterMode})]})}),M.length>0&&a.jsxs("button",{onClick:()=>{q(!Z),ne(!1),fe(null)},className:"vg-button-ghost vg-animate-pop",style:{animationDelay:"0.1s"},children:[a.jsx(ho,{"data-vg-id":"cd7341fd","data-source-path":"/src/components/ViewGateOverlay.tsx:2420",size:20}),a.jsx("span",{"data-vg-id":"52d76c49","data-source-path":"/src/components/ViewGateOverlay.tsx:2421",children:o.viewComments})]}),a.jsx("button",{onClick:r=>{r.stopPropagation(),In()},className:"vg-button-ghost vg-animate-pop",style:{width:"40px",height:"40px",padding:"0",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"12px",backgroundColor:"rgba(255, 255, 255, 0.8)",color:"#64748b",border:"1px solid rgba(0,0,0,0.05)"},disabled:An,title:s==="es"?"Cerrar Sesión":"Logout",children:a.jsx(yo,{"data-vg-id":"83c7d8a","data-source-path":"/src/components/ViewGateOverlay.tsx:2446",size:20})})]}):a.jsx("div",{"data-vg-id":"17fbf77","data-source-path":"/src/components/ViewGateOverlay.tsx:2358",style:{padding:"8px 16px",background:"#fee2e2",color:"#b91c1c",borderRadius:"20px",fontSize:"12px",fontWeight:600,border:"1px solid #fecaca",whiteSpace:"nowrap"},children:s==="es"?"Acceso denegado a este proyecto":"No project access"}):a.jsxs("button",{onClick:()=>{ne(!0),fe({rect:new DOMRect})},className:"vg-button-primary vg-animate-pop",style:{padding:"12px 24px",background:"var(--vg-primary-gradient)",display:"flex",alignItems:"center",gap:"10px"},children:[a.jsx(Cs,{"data-vg-id":"422a5ebf","data-source-path":"/src/components/ViewGateOverlay.tsx:2465",size:18}),a.jsx("span",{"data-vg-id":"52d76c61","data-source-path":"/src/components/ViewGateOverlay.tsx:2466",style:{fontWeight:700},children:s==="es"?"Desbloquear con Clave":"Unlock with Key"})]}),a.jsx("button",{onClick:r=>{r.stopPropagation(),Ge({title:o.exitConfirmTitle||"Close ViewGate?",message:o.exitConfirmMessage||"Are you sure you want to close ViewGate?",type:"danger",onConfirm:()=>u()})},className:"vg-button-ghost vg-animate-pop",style:{width:"40px",height:"40px",minWidth:"40px",padding:"0",animationDelay:"0.2s",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"12px",backgroundColor:"rgba(255, 255, 255, 0.8)",color:"#64748b",border:"1px solid rgba(0,0,0,0.05)"},onMouseEnter:r=>{r.currentTarget.style.color="#ef4444",r.currentTarget.style.backgroundColor="white",r.currentTarget.style.borderColor="rgba(239, 68, 68, 0.2)",r.currentTarget.style.transform="scale(1.05)"},onMouseLeave:r=>{r.currentTarget.style.color="#64748b",r.currentTarget.style.backgroundColor="rgba(255, 255, 255, 0.8)",r.currentTarget.style.borderColor="rgba(0,0,0,0.05)",r.currentTarget.style.transform="scale(1)"},title:o.close||"Cerrar ViewGate",children:a.jsx(jt,{"data-vg-id":"ff5f5f0","data-source-path":"/src/components/ViewGateOverlay.tsx:2510",size:20,strokeWidth:2.5})})]})]}),S&&!K&&a.jsx("div",{"data-vg-id":"17fbf98","data-source-path":"/src/components/ViewGateOverlay.tsx:2519",style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(255,255,255,0.6)",backdropFilter:"blur(4px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:Ys+1,cursor:"wait"},children:a.jsxs("div",{"data-vg-id":"17fbf99","data-source-path":"/src/components/ViewGateOverlay.tsx:2525",className:"vg-glassmorphism",style:{padding:"30px 50px",display:"flex",flexDirection:"column",alignItems:"center",gap:"16px"},children:[a.jsx("div",{"data-vg-id":"17fbf9a","data-source-path":"/src/components/ViewGateOverlay.tsx:2526",className:"vg-spinner"}),a.jsx("span",{"data-vg-id":"52d76c66","data-source-path":"/src/components/ViewGateOverlay.tsx:2527",style:{fontWeight:600,fontSize:"14px",color:"#000000"},children:"Capturando..."})]})}),A&&!K&&a.jsx("div",{className:"vg-backdrop-blur",style:{opacity:1,clipPath:N?`polygon(
|
|
13
14
|
0% 0%, 0% 100%, 100% 100%, 100% 0%, 0% 0%,
|
|
14
|
-
${
|
|
15
|
-
${
|
|
16
|
-
${
|
|
17
|
-
${
|
|
18
|
-
${
|
|
19
|
-
)`:"none",zIndex:Hp}}),u&&H&&!O&&!fe&&i.jsx("div",{className:"vg-selection-pulse",style:{top:H.rect.top-4,left:H.rect.left-4,width:H.rect.width+8,height:H.rect.height+8,zIndex:Sp},children:i.jsxs("div",{className:"vg-selection-label",style:{...H.rect.top<60?H.rect.bottom>window.innerHeight-60?{top:"8px",bottom:"auto"}:{top:"100%",marginTop:"8px",bottom:"auto"}:{top:"-40px",bottom:"auto"},...H.rect.left+200>window.innerWidth?{left:"auto",right:"0"}:{left:"0",right:"auto"}},children:[i.jsx(Il,{"data-vg-id":"f840c8ce","data-source-path":"/src/components/ViewGateOverlay.tsx:2377",size:16}),i.jsxs("div",{"data-vg-id":"17fbf98","data-source-path":"/src/components/ViewGateOverlay.tsx:2378",style:{display:"flex",flexDirection:"column"},children:[i.jsx("span",{"data-vg-id":"52d76c64","data-source-path":"/src/components/ViewGateOverlay.tsx:2379",style:{fontWeight:700},children:r.selectToComment}),i.jsxs("span",{"data-vg-id":"52d76c65","data-source-path":"/src/components/ViewGateOverlay.tsx:2380",style:{fontSize:"10px",opacity:.8,fontFamily:"monospace"},children:[Math.round(H.rect.width)," × ",Math.round(H.rect.height)]})]})]})}),!tA&&(u||NA||O)&&i.jsx("div",{"data-vg-id":"17fbf9b","data-source-path":"/src/components/ViewGateOverlay.tsx:2390",className:"vg-animate-fade",style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(15, 23, 42, 0.6)",backdropFilter:"blur(12px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:At},children:i.jsxs("div",{"data-vg-id":"17fbf9c","data-source-path":"/src/components/ViewGateOverlay.tsx:2395",className:"vg-glassmorphism vg-animate-slide",style:{width:"90%",maxWidth:"440px",boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.4)",display:"flex",flexDirection:"column",overflow:"hidden",padding:"48px 32px"},children:[i.jsxs("div",{"data-vg-id":"17fbf9d","data-source-path":"/src/components/ViewGateOverlay.tsx:2404",style:{textAlign:"center",marginBottom:"32px"},children:[i.jsx("div",{"data-vg-id":"17fbf9e","data-source-path":"/src/components/ViewGateOverlay.tsx:2405",style:{width:"64px",height:"64px",background:"var(--vg-primary-gradient)",borderRadius:"20px",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 24px",color:"white",boxShadow:"0 8px 20px -4px var(--vg-primary)",animation:"pulse 2s infinite"},children:i.jsx(Jo,{"data-vg-id":"422a5ede","data-source-path":"/src/components/ViewGateOverlay.tsx:2411",size:32})}),i.jsx("h2",{"data-vg-id":"efa6bb80","data-source-path":"/src/components/ViewGateOverlay.tsx:2413",style:{margin:"0 0 12px 0",fontSize:"24px",fontWeight:800,color:"#0f172a",letterSpacing:"-0.025em"},children:e==="es"?"ViewGate Protegido":"ViewGate Protected"}),i.jsx("p",{"data-vg-id":"1000def7","data-source-path":"/src/components/ViewGateOverlay.tsx:2416",style:{margin:0,color:"#64748b",fontSize:"15px",lineHeight:1.6},children:e==="es"?"Ingresa tu Clave de Acceso Semanal para continuar.":"Enter your project Weekly Access Key to continue."})]}),i.jsxs("form",{"data-vg-id":"a260acc8","data-source-path":"/src/components/ViewGateOverlay.tsx:2423",onSubmit:jp,style:{width:"100%"},children:[i.jsx("div",{"data-vg-id":"17fbfb8","data-source-path":"/src/components/ViewGateOverlay.tsx:2424",style:{position:"relative",marginBottom:"24px"},children:i.jsx("input",{autoFocus:!0,type:"password",value:rt,onChange:l=>mc(l.target.value),placeholder:e==="es"?"Pega tu clave aquí...":"Paste your key here...",style:{width:"100%",padding:"16px",borderRadius:"12px",border:"2px solid #e2e8f0",fontSize:"15px",outline:"none",transition:"all 0.2s",backgroundColor:"rgba(255, 255, 255, 0.8)",color:"#1e293b"},onFocus:l=>{l.target.style.borderColor="var(--vg-primary)",l.target.style.boxShadow="0 0 0 4px rgba(99, 102, 241, 0.1)"},onBlur:l=>{l.target.style.borderColor="#e2e8f0",l.target.style.boxShadow="none"}})}),i.jsxs("button",{type:"submit",disabled:lo||!rt.trim(),className:"vg-button-primary",style:{width:"100%",padding:"16px",display:"flex",alignItems:"center",justifyContent:"center",gap:"12px",fontSize:"16px",fontWeight:700,opacity:lo||!rt.trim()?.7:1,boxShadow:"0 10px 15px -3px rgba(99, 102, 241, 0.3)"},children:[lo?i.jsx(Dt,{"data-vg-id":"cb81c82b","data-source-path":"/src/components/ViewGateOverlay.tsx:2471",size:20,className:"vg-animate-spin"}):i.jsx(vl,{"data-vg-id":"d69f974c","data-source-path":"/src/components/ViewGateOverlay.tsx:2473",size:20}),e==="es"?"Desbloquear":"Unlock Now"]})]}),i.jsx("div",{"data-vg-id":"17fbfbb","data-source-path":"/src/components/ViewGateOverlay.tsx:2479",style:{margin:"32px 0 24px",height:"1px",background:"linear-gradient(to right, transparent, #e2e8f0, transparent)"}}),i.jsx("button",{onClick:()=>{N(null),f(!1),he(!1)},className:"vg-button-ghost",style:{width:"100%",padding:"12px",fontSize:"14px",color:"#94a3b8"},children:e==="es"?"Cerrar ViewGate":"Close ViewGate"}),i.jsx("div",{"data-vg-id":"17fbfbc","data-source-path":"/src/components/ViewGateOverlay.tsx:2493",style:{marginTop:"24px",textAlign:"center"},children:i.jsx("p",{"data-vg-id":"1000defe","data-source-path":"/src/components/ViewGateOverlay.tsx:2494",style:{fontSize:"12px",color:"#94a3b8",margin:0,lineHeight:1.5},children:e==="es"?"Encuentra tu clave en Dashboard > Proyectos":"Find your key in Dashboard > Projects"})})]})}),O&&LA&&i.jsx("div",{"data-vg-id":"17fbfd3","data-source-path":"/src/components/ViewGateOverlay.tsx:2507",className:"vg-animate-fade",style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(15, 23, 42, 0.4)",backdropFilter:"blur(8px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:At},children:i.jsxs("div",{"data-vg-id":"17fbfd4","data-source-path":"/src/components/ViewGateOverlay.tsx:2512",className:"vg-glassmorphism vg-animate-slide",style:{width:"90%",maxWidth:"700px",maxHeight:"92vh",boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.25)",display:"flex",flexDirection:"column",overflow:"hidden"},children:[i.jsxs("div",{"data-vg-id":"17fbfd5","data-source-path":"/src/components/ViewGateOverlay.tsx:2522",style:{padding:"24px 24px 16px",textAlign:"center",borderBottom:"1px solid rgba(0,0,0,0.05)",flexShrink:0,position:"relative"},children:[LA&&i.jsxs("div",{"data-vg-id":"17fbfd6","data-source-path":"/src/components/ViewGateOverlay.tsx:2524",className:"vg-profile-info-card",style:{position:"absolute",top:"20px",right:"20px",display:"flex",alignItems:"center",gap:"8px",padding:"4px 8px",borderRadius:"20px",background:"white",border:"1px solid #e2e8f0",boxShadow:"0 2px 6px rgba(0,0,0,0.05)",zIndex:10},children:[i.jsx("span",{"data-vg-id":"52d76ca2","data-source-path":"/src/components/ViewGateOverlay.tsx:2541",style:{fontSize:"10px",fontWeight:800,color:"#64748b",textTransform:"uppercase"},children:LA.name.split(" ")[0]}),LA.avatar?i.jsx("img",{"data-vg-id":"a398766","data-source-path":"/src/components/ViewGateOverlay.tsx:2545",src:LA.avatar,style:{width:"24px",height:"24px",borderRadius:"50%"},alt:""}):i.jsx("div",{"data-vg-id":"17fbfd9","data-source-path":"/src/components/ViewGateOverlay.tsx:2547",style:{width:"24px",height:"24px",borderRadius:"50%",background:"#6366f1",color:"white",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"10px",fontWeight:700},children:LA.name?.[0]})]}),i.jsx("div",{"data-vg-id":"17fbfda","data-source-path":"/src/components/ViewGateOverlay.tsx:2553",style:{width:"40px",height:"40px",background:"var(--vg-primary-gradient)",borderRadius:"10px",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 12px",color:"white",boxShadow:"0 4px 12px rgba(99, 102, 241, 0.2)"},children:i.jsx(vr,{"data-vg-id":"10c62228","data-source-path":"/src/components/ViewGateOverlay.tsx:2558",size:20})}),i.jsx("h2",{"data-vg-id":"efa6bba7","data-source-path":"/src/components/ViewGateOverlay.tsx:2560",style:{margin:"0 0 4px 0",fontSize:"20px",fontWeight:800,color:"#0f172a"},children:r.feedbackHeader}),i.jsx("p",{"data-vg-id":"1000df33","data-source-path":"/src/components/ViewGateOverlay.tsx:2561",style:{margin:0,color:"#64748b",fontSize:"14px"},children:r.feedbackSubheader})]}),i.jsxs("div",{"data-vg-id":"17fbff3","data-source-path":"/src/components/ViewGateOverlay.tsx:2565",className:"vg-custom-scrollbar",style:{flex:1,overflowY:"auto",padding:"24px",display:"flex",flexDirection:"column"},children:[(O.visualPreview||fe)&&i.jsx("div",{"data-vg-id":"17fbff4","data-source-path":"/src/components/ViewGateOverlay.tsx:2574",style:{marginBottom:"24px",borderRadius:"12px",width:"100%",maxWidth:"100%",minHeight:"120px",maxHeight:"45vh",alignSelf:"center",overflow:"hidden",display:"flex",position:"relative"},children:O.visualPreview?i.jsx("img",{src:O.visualPreview,alt:"Preview",className:"vg-animate-fade",style:{width:"100%",maxWidth:"100%",maxHeight:"45vh",objectFit:"contain",display:"block"}}):i.jsxs("div",{"data-vg-id":"17fbff5","data-source-path":"/src/components/ViewGateOverlay.tsx:2600",className:"vg-skeleton vg-image-loader",style:{width:"100%",height:"180px"},children:[i.jsx(Dt,{"data-vg-id":"cb81c868","data-source-path":"/src/components/ViewGateOverlay.tsx:2604",size:24,className:"vg-animate-spin"}),i.jsx("span",{"data-vg-id":"52d76cc2","data-source-path":"/src/components/ViewGateOverlay.tsx:2605",children:e==="es"?"Generando captura...":"Generating preview..."})]})}),i.jsx("textarea",{className:"vg-textarea",value:W,onChange:l=>R(l.target.value),rows:4,placeholder:r.placeholder,autoFocus:!0,style:{fontSize:"15px",padding:"16px",marginBottom:"24px",minHeight:"120px"}}),i.jsxs("div",{"data-vg-id":"17fbff8","data-source-path":"/src/components/ViewGateOverlay.tsx:2622",style:{marginBottom:"24px"},children:[i.jsx("label",{"data-vg-id":"18bd4b36","data-source-path":"/src/components/ViewGateOverlay.tsx:2623",style:{fontSize:"12px",fontWeight:700,color:"#64748b",marginBottom:"8px",display:"block"},children:r.priority}),i.jsx("div",{"data-vg-id":"17fbffa","data-source-path":"/src/components/ViewGateOverlay.tsx:2626",style:{display:"flex",gap:"8px"},children:["low","medium","high","urgent"].map(l=>i.jsx("button",{onClick:()=>C(l),style:{flex:1,padding:"12px 6px",borderRadius:"8px",fontSize:"13px",fontWeight:700,border:"1px solid",borderColor:w===l?l==="low"?"#10b981":l==="medium"?"#6366f1":l==="high"?"#f59e0b":"#ef4444":"#e2e8f0",backgroundColor:w===l?l==="low"?"#ecfdf5":l==="medium"?"#eef2ff":l==="high"?"#fffbeb":"#fef2f2":"white",color:w===l?l==="low"?"#059669":l==="medium"?"#4338ca":l==="high"?"#b45309":"#b91c1c":"#64748b",cursor:"pointer",transition:"all 0.2s",textTransform:"uppercase"},children:r[l]},l))})]}),i.jsxs("div",{"data-vg-id":"17fbffb","data-source-path":"/src/components/ViewGateOverlay.tsx:2653",style:{marginBottom:"24px"},children:[i.jsx("label",{"data-vg-id":"18bd4b4e","data-source-path":"/src/components/ViewGateOverlay.tsx:2654",style:{fontSize:"12px",fontWeight:700,color:"#64748b",marginBottom:"8px",display:"block"},children:r.focusAreas}),i.jsx("div",{"data-vg-id":"17fc012","data-source-path":"/src/components/ViewGateOverlay.tsx:2657",style:{display:"flex",gap:"8px",marginBottom:M.length>0?"12px":"0"},children:[{id:"frontend",label:r.frontend,icon:i.jsx(br,{"data-vg-id":"377c1746","data-source-path":"/src/components/ViewGateOverlay.tsx:2659",size:14}),color:"#10b981",bg:"#ecfdf5",border:"#d1fae5"},{id:"backend",label:r.backend,icon:i.jsx(He,{"data-vg-id":"7117e5d8","data-source-path":"/src/components/ViewGateOverlay.tsx:2660",size:14}),color:"#6366f1",bg:"#eef2ff",border:"#e0e7ff"},{id:"ux",label:r.ux,icon:i.jsx(Rt,{"data-vg-id":"de42479d","data-source-path":"/src/components/ViewGateOverlay.tsx:2661",size:14}),color:"#d946ef",bg:"#fdf4ff",border:"#f5d0fe"}].filter(l=>l.id==="backend"?Hs:l.id==="ux"?k:!0).map(l=>{const h=M.includes(l.id);return i.jsxs("button",{onClick:()=>{h?QA(M.filter(p=>p!==l.id)):(QA([...M,l.id]),l.id==="backend"&&go())},style:{flex:1,padding:"10px 4px",borderRadius:"8px",fontSize:"12px",fontWeight:700,border:"1px solid",borderColor:h?l.color:"#e2e8f0",backgroundColor:h?l.bg:"white",color:h?l.color:"#64748b",cursor:"pointer",transition:"all 0.2s",display:"flex",alignItems:"center",justifyContent:"center",gap:"6px"},children:[l.icon,l.label]},l.id)})}),M.includes("ux")&&i.jsxs("div",{"data-vg-id":"17fc016","data-source-path":"/src/components/ViewGateOverlay.tsx:2708",className:"vg-animate-slide",style:{marginBottom:"16px"},children:[i.jsxs("div",{"data-vg-id":"17fc017","data-source-path":"/src/components/ViewGateOverlay.tsx:2709",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px"},children:[i.jsxs("div",{"data-vg-id":"17fc018","data-source-path":"/src/components/ViewGateOverlay.tsx:2710",style:{display:"flex",alignItems:"center",gap:"6px"},children:[i.jsx(Er,{"data-vg-id":"38884e14","data-source-path":"/src/components/ViewGateOverlay.tsx:2711",size:14,style:{color:"#d946ef"}}),i.jsx("span",{"data-vg-id":"52d76ce5","data-source-path":"/src/components/ViewGateOverlay.tsx:2712",style:{fontSize:"11px",fontWeight:800,color:"#64748b",textTransform:"uppercase",letterSpacing:"0.05em"},children:r.figmaLink})]}),i.jsxs("button",{"data-vg-id":"23e21f93","data-source-path":"/src/components/ViewGateOverlay.tsx:2716",onClick:()=>UA([...q,{name:"",link:""}]),style:{background:"rgba(217, 70, 239, 0.1)",border:"1px solid rgba(217, 70, 239, 0.2)",color:"#d946ef",borderRadius:"6px",padding:"4px 8px",fontSize:"10px",fontWeight:800,display:"flex",alignItems:"center",gap:"4px",cursor:"pointer",transition:"all 0.2s"},onMouseEnter:l=>l.currentTarget.style.background="rgba(217, 70, 239, 0.15)",onMouseLeave:l=>l.currentTarget.style.background="rgba(217, 70, 239, 0.1)",children:[i.jsx(Hl,{"data-vg-id":"11a60c8c","data-source-path":"/src/components/ViewGateOverlay.tsx:2735",size:10})," ",r.addLink]})]}),i.jsx("div",{"data-vg-id":"17fc032","data-source-path":"/src/components/ViewGateOverlay.tsx:2739",style:{display:"flex",flexDirection:"column",gap:"8px"},children:q.map((l,h)=>i.jsxs("div",{"data-vg-id":"17fc033","data-source-path":"/src/components/ViewGateOverlay.tsx:2741",style:{display:"flex",gap:"6px",alignItems:"flex-start"},className:"vg-animate-slide",children:[i.jsxs("div",{"data-vg-id":"17fc034","data-source-path":"/src/components/ViewGateOverlay.tsx:2742",style:{flex:1,display:"flex",flexDirection:"column",gap:"4px"},children:[i.jsx("input",{"data-vg-id":"a993badc","data-source-path":"/src/components/ViewGateOverlay.tsx:2743",type:"text",className:"vg-textarea",style:{padding:"8px 10px",fontSize:"11px",minHeight:"auto",borderRadius:"8px",border:"1px solid rgba(0,0,0,0.05)"},placeholder:r.figmaNamePlaceholder,value:l.name,onChange:p=>{const x=[...q];x[h]&&(x[h].name=p.target.value,UA(x))}}),i.jsx("input",{"data-vg-id":"a993badd","data-source-path":"/src/components/ViewGateOverlay.tsx:2757",type:"text",className:"vg-textarea",style:{padding:"8px 10px",fontSize:"11px",minHeight:"auto",borderRadius:"8px",border:"1px solid rgba(0,0,0,0.05)"},placeholder:r.figmaLinkPlaceholder,value:l.link,onChange:p=>{const x=[...q];x[h]&&(x[h].link=p.target.value,UA(x))}})]}),q.length>1&&i.jsx("button",{"data-vg-id":"23e21f9a","data-source-path":"/src/components/ViewGateOverlay.tsx:2773",onClick:()=>UA(q.filter((p,x)=>x!==h)),style:{background:"rgba(239, 68, 68, 0.05)",border:"1px solid rgba(239, 68, 68, 0.1)",color:"#ef4444",borderRadius:"8px",padding:"10px",cursor:"pointer",transition:"all 0.2s",display:"flex",alignItems:"center",justifyContent:"center"},onMouseEnter:p=>p.currentTarget.style.background="rgba(239, 68, 68, 0.1)",onMouseLeave:p=>p.currentTarget.style.background="rgba(239, 68, 68, 0.05)",children:i.jsx(Ir,{"data-vg-id":"e1375db3","data-source-path":"/src/components/ViewGateOverlay.tsx:2790",size:14})})]},h))})]}),qA.length>0&&M.includes("backend")&&i.jsxs("div",{"data-vg-id":"17fc039","data-source-path":"/src/components/ViewGateOverlay.tsx:2802",className:"vg-animate-slide",style:{marginBottom:"16px"},children:[i.jsxs("div",{"data-vg-id":"17fc04f","data-source-path":"/src/components/ViewGateOverlay.tsx:2803",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px"},children:[i.jsxs("div",{"data-vg-id":"17fc050","data-source-path":"/src/components/ViewGateOverlay.tsx:2804",style:{display:"flex",alignItems:"center",gap:"6px"},children:[i.jsx(He,{"data-vg-id":"7117e615","data-source-path":"/src/components/ViewGateOverlay.tsx:2805",size:14,style:{color:"#6366f1"}}),i.jsx("span",{"data-vg-id":"52d76d1d","data-source-path":"/src/components/ViewGateOverlay.tsx:2806",style:{fontSize:"11px",fontWeight:700,color:"#64748b"},children:r.endpoint})]}),J.length>0&&i.jsxs("span",{"data-vg-id":"52d76d1e","data-source-path":"/src/components/ViewGateOverlay.tsx:2809",style:{fontSize:"10px",background:"#eef2ff",color:"#6366f1",padding:"2px 8px",borderRadius:"12px",fontWeight:700},children:[J.length," ",e==="es"?"seleccionados":"selected"]})]}),i.jsxs("button",{"data-vg-id":"23e21fb7","data-source-path":"/src/components/ViewGateOverlay.tsx:2815",onClick:()=>z(!0),className:"vg-input-like-button",style:{width:"100%",padding:"12px 16px",fontSize:"13px",borderRadius:"12px",background:"#f8fafc",border:"1px solid #e2e8f0",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",transition:"all 0.2s",textAlign:"left",color:J.length>0?"#0f172a":"#94a3b8"},children:[i.jsx("div",{"data-vg-id":"17fc055","data-source-path":"/src/components/ViewGateOverlay.tsx:2834",style:{display:"flex",gap:"4px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:J.length>0?J.slice(0,2).map(l=>{const h=l.split("|"),p=h.length>1?h[0]:"",x=h.length>1?h[1]:l;return i.jsxs("span",{"data-vg-id":"52d76d21","data-source-path":"/src/components/ViewGateOverlay.tsx:2841",style:{background:"rgba(99, 102, 241, 0.1)",color:"#6366f1",padding:"1px 6px",borderRadius:"4px",fontSize:"11px",fontWeight:600},children:[p&&i.jsx("span",{"data-vg-id":"52d76d22","data-source-path":"/src/components/ViewGateOverlay.tsx:2849",style:{opacity:.6,marginRight:"4px"},children:p}),(x||"").split("/").pop()||x]},l)}).concat(J.length>2?[i.jsxs("span",{"data-vg-id":"52d76d23","data-source-path":"/src/components/ViewGateOverlay.tsx:2853",children:["+",J.length-2]},"more")]:[]):r.selectEndpoint}),i.jsx(Xo,{"data-vg-id":"c71f9a22","data-source-path":"/src/components/ViewGateOverlay.tsx:2856",size:14,style:{color:"#64748b"}})]})]})]})]}),i.jsxs("div",{"data-vg-id":"17fc06f","data-source-path":"/src/components/ViewGateOverlay.tsx:2865",style:{padding:"16px 24px 24px",borderTop:"1px solid rgba(0,0,0,0.05)",display:"flex",gap:"12px",flexShrink:0,backgroundColor:"rgba(255,255,255,0.02)",backdropFilter:"blur(2px)"},children:[i.jsx("button",{onClick:()=>{cA||(N(null),f(!1))},className:"vg-button-ghost",disabled:cA,style:{flex:1,padding:"12px"},children:r.cancel}),i.jsx("button",{onClick:Yp,className:"vg-button-primary",disabled:cA||!W.trim()||M.includes("backend")&&J.length===0||M.includes("ux")&&q.some(l=>!l.name.trim()||!l.link.trim()),style:{flex:2,opacity:cA||!W.trim()||M.includes("backend")&&J.length===0||M.includes("ux")&&q.some(l=>!l.name.trim()||!l.link.trim())?.6:1,cursor:cA||!W.trim()||M.includes("backend")&&J.length===0||M.includes("ux")&&q.some(l=>!l.name.trim()||!l.link.trim())?"not-allowed":"pointer"},children:i.jsxs("div",{"data-vg-id":"17fc070","data-source-path":"/src/components/ViewGateOverlay.tsx:2902",style:{display:"flex",alignItems:"center",gap:"8px"},children:[cA?i.jsx("div",{"data-vg-id":"17fc071","data-source-path":"/src/components/ViewGateOverlay.tsx:2903",className:"vg-spinner",style:{width:"16px",height:"16px",borderWidth:"2px"}}):i.jsx(Ll,{"data-vg-id":"a3fd5c1f","data-source-path":"/src/components/ViewGateOverlay.tsx:2903",size:18}),i.jsx("span",{"data-vg-id":"52d76d3e","data-source-path":"/src/components/ViewGateOverlay.tsx:2904",children:cA?r.submitting:r.sendFeedback||"Send Comment"})]})})]})]})}),NA&&i.jsx("div",{"data-vg-id":"17fc074","data-source-path":"/src/components/ViewGateOverlay.tsx:2915",className:"vg-animate-fade",style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(15, 23, 42, 0.6)",backdropFilter:"blur(4px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:At},children:i.jsxs("div",{"data-vg-id":"17fc075","data-source-path":"/src/components/ViewGateOverlay.tsx:2921",className:"vg-glassmorphism vg-animate-slide",style:{padding:"32px",width:"820px",maxHeight:"85vh",display:"flex",flexDirection:"column",transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)"},children:[i.jsxs("div",{"data-vg-id":"17fc076","data-source-path":"/src/components/ViewGateOverlay.tsx:2926",style:{display:"flex",flexDirection:"column",gap:"16px",marginBottom:"24px"},children:[i.jsxs("div",{"data-vg-id":"17fc077","data-source-path":"/src/components/ViewGateOverlay.tsx:2927",style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[i.jsx("h2",{"data-vg-id":"530ad0f","data-source-path":"/src/components/ViewGateOverlay.tsx:2928",style:{margin:0,fontSize:"20px",fontWeight:800,color:"#0f172a",whiteSpace:"nowrap"},children:dA?r.commentDetails:r.annotations}),i.jsxs("div",{"data-vg-id":"2e782f7b","data-source-path":"/src/components/ViewGateOverlay.tsx:2931",style:{display:"flex",alignItems:"center",gap:"12px"},children:[LA?i.jsxs("div",{"data-vg-id":"2e782f7c","data-source-path":"/src/components/ViewGateOverlay.tsx:2933",style:{display:"flex",alignItems:"center",gap:"8px",padding:"4px 12px",background:"rgba(99, 102, 241, 0.1)",borderRadius:"20px"},children:[LA.avatar?i.jsx("img",{"data-vg-id":"3cf759af","data-source-path":"/src/components/ViewGateOverlay.tsx:2935",src:LA.avatar,style:{width:"20px",height:"20px",borderRadius:"50%"},alt:""}):i.jsx("div",{"data-vg-id":"2e782f7e","data-source-path":"/src/components/ViewGateOverlay.tsx:2937",style:{width:"20px",height:"20px",borderRadius:"50%",background:"#6366f1",color:"white",fontSize:"10px",display:"flex",alignItems:"center",justifyContent:"center"},children:LA.name?.[0]}),i.jsx("span",{"data-vg-id":"8161c14","data-source-path":"/src/components/ViewGateOverlay.tsx:2941",style:{fontSize:"12px",fontWeight:600,color:"#4338ca"},children:LA.name})]}):i.jsx("div",{"data-vg-id":"2e782f80","data-source-path":"/src/components/ViewGateOverlay.tsx:2948",style:{fontSize:"12px",color:"#64748b",fontWeight:600},children:e==="es"?"Sin usuario":"No user selected"}),i.jsx("button",{className:"vg-button-ghost",style:{padding:"8px",borderRadius:"50%"},onClick:()=>{he(!1),be(null),Ks(null),L("all")},children:i.jsx(kt,{"data-vg-id":"eec8c448","data-source-path":"/src/components/ViewGateOverlay.tsx:2957",size:20})})]})]}),i.jsx("div",{"data-vg-id":"2e782f82","data-source-path":"/src/components/ViewGateOverlay.tsx:2961",style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center",width:"100%"},children:(()=>{const l=Array.isArray(FA)?FA:[],h=dA?yt.find(T=>T.annotations?.some(BA=>BA._id===dA)):null,x=(h?h.annotations:l).filter(T=>T.status!=="completed"&&T.status!=="done"),E=x.filter(T=>T.status!=="ready_for_review").length,D=x.filter(T=>T.status==="ready_for_review").length,K=x.length;return K<=0?K===0?null:i.jsxs("div",{"data-vg-id":"2e782f83","data-source-path":"/src/components/ViewGateOverlay.tsx:2975",style:{display:"flex",gap:"8px",opacity:.9},children:[E>0&&i.jsxs("div",{"data-vg-id":"2e782f99","data-source-path":"/src/components/ViewGateOverlay.tsx:2977",className:"vg-badge",style:{background:"#fff7ed",color:"#c2410c",border:"1px solid #ffedd5",fontSize:"11px",padding:"2px 8px"},children:[E," ",E===1?"pendiente":"pendientes"]}),D>0&&i.jsxs("div",{"data-vg-id":"2e782f9a","data-source-path":"/src/components/ViewGateOverlay.tsx:2982",className:"vg-badge",style:{background:"#f3e8ff",color:"#a855f7",border:"1px solid #e9d5ff",fontSize:"11px",padding:"2px 8px"},children:[D," ",e==="es"?D===1?"Listo para revisión":"Listos para revisión":"ready for review"]})]}):i.jsxs(i.Fragment,{children:[!B&&i.jsxs("div",{"data-vg-id":"2e782f9b","data-source-path":"/src/components/ViewGateOverlay.tsx:2993",className:"vg-segmented-control",style:{marginBottom:"4px"},children:[i.jsx("div",{className:"vg-segmented-slider",style:{left:TA===null?"4px":TA==="pending"?"calc(4px + (100% - 8px) / 3)":"calc(4px + 2 * (100% - 8px) / 3)",width:"calc((100% - 8px) / 3)",background:TA===null?"var(--vg-primary)":TA==="pending"?"#ea580c":"#a855f7",boxShadow:TA===null?"0 4px 12px rgba(99, 102, 241, 0.3)":TA==="pending"?"0 4px 12px rgba(234, 88, 12, 0.3)":"0 4px 12px rgba(168, 85, 247, 0.3)"}}),i.jsxs("div",{onClick:()=>Ks(null),className:`vg-segmented-item ${TA===null?"active":""}`,children:[r.viewAll||"Todos"," (",K,")"]}),i.jsxs("div",{onClick:()=>Ks("pending"),className:`vg-segmented-item ${TA==="pending"?"active":""}`,children:[e==="es"?E===1?"Pendiente":"Pendientes":"Pending"," (",E,")"]}),i.jsxs("div",{onClick:()=>Ks("ready"),className:`vg-segmented-item ${TA==="ready"?"active":""}`,children:[e==="es"?"Listo para revisión":"Ready for Review"," (",D,")"]})]}),i.jsxs("div",{"data-vg-id":"2e782f9c","data-source-path":"/src/components/ViewGateOverlay.tsx:3024",style:{display:"flex",gap:"6px",justifyContent:"center",flexWrap:"wrap",marginTop:B?"0":"4px"},children:[i.jsxs("button",{onClick:()=>L("all"),style:{padding:"8px 16px",borderRadius:"20px",fontSize:"12px",fontWeight:700,border:"1px solid",borderColor:m==="all"?"var(--vg-primary)":"#e2e8f0",backgroundColor:m==="all"?"var(--vg-primary)":"transparent",color:m==="all"?"white":"#64748b",cursor:"pointer",transition:"all 0.2s"},children:[r.viewAll||"Todos"," (",x.filter(T=>B?!0:TA==="pending"?T.status!=="ready_for_review":TA==="ready"?T.status==="ready_for_review":!0).length,")"]}),["low","medium","high","urgent"].map(T=>{const BA=x.filter(j=>B?!0:TA==="pending"?j.status!=="ready_for_review":TA==="ready"?j.status==="ready_for_review":!0).filter(j=>(j.priority||"medium")===T).length;return BA===0&&m!==T?null:i.jsxs("button",{onClick:()=>L(T),style:{padding:"8px 16px",borderRadius:"20px",fontSize:"12px",fontWeight:700,border:"1px solid",borderColor:m===T?T==="low"?"#10b981":T==="medium"?"#6366f1":T==="high"?"#f59e0b":"#ef4444":"#e2e8f0",backgroundColor:m===T?T==="low"?"#ecfdf5":T==="medium"?"#eef2ff":T==="high"?"#fffbeb":"#fef2f2":"transparent",color:m===T?T==="low"?"#059669":T==="medium"?"#4338ca":T==="high"?"#b45309":"#b91c1c":"#64748b",cursor:"pointer",transition:"all 0.2s",textTransform:"uppercase"},children:[r[T]," (",BA,")"]},T)})]})]})})()})]}),i.jsx("div",{style:{flex:1,overflowY:"auto",paddingRight:"10px",overflowX:"hidden"},className:"vg-custom-scrollbar",children:st?i.jsx("div",{"data-vg-id":"2e782f9d","data-source-path":"/src/components/ViewGateOverlay.tsx:3090",style:{display:"flex",justifyContent:"center",padding:"40px"},children:i.jsx("div",{"data-vg-id":"2e782f9e","data-source-path":"/src/components/ViewGateOverlay.tsx:3091",className:"vg-spinner"})}):uo.map((l,h)=>i.jsxs("div",{className:"vg-glassmorphism vg-animate-slide",style:{padding:"20px",marginBottom:"16px",border:"1px solid rgba(0,0,0,0.05)",background:"rgba(255,255,255,0.5)",animationDelay:`${h*.05}s`},children:[i.jsxs("div",{"data-vg-id":"2e782f9f","data-source-path":"/src/components/ViewGateOverlay.tsx:3106",style:{display:"flex",justifyContent:"space-between",marginBottom:"16px",alignItems:"center"},children:[i.jsxs("div",{"data-vg-id":"2e782fa0","data-source-path":"/src/components/ViewGateOverlay.tsx:3107",style:{display:"flex",gap:"12px",alignItems:"center"},children:[i.jsx("span",{"data-vg-id":"8161c36","data-source-path":"/src/components/ViewGateOverlay.tsx:3108",style:{fontSize:"12px",color:"#000000",fontWeight:600},children:lc(l.timestamp||l.createdAt||l.reference?.timestamp,e)}),i.jsx("div",{"data-vg-id":"2e782fa2","data-source-path":"/src/components/ViewGateOverlay.tsx:3111",onClick:p=>{p.stopPropagation();const x=l.key||`VG-${l._id.slice(-6).toUpperCase()}`;navigator.clipboard.writeText(x);const E=p.currentTarget;E.innerText="¡Copiado!",E.style.color="#22c55e",setTimeout(()=>{E.innerText=x,E.style.color=B?"#64748b":"#6366f1"},1500)},style:{fontSize:"10px",fontFamily:"monospace",color:B?"#64748b":"#6366f1",background:B?"rgba(100, 116, 139, 0.1)":"rgba(99, 102, 241, 0.1)",padding:"2px 6px",borderRadius:"4px",cursor:"pointer",fontWeight:900,transition:"all 0.2s"},title:e==="es"?"Click para copiar":"Click to copy",children:l.key||`VG-${l._id.slice(-6).toUpperCase()}`}),l.reference?.metadata?.isModal&&i.jsx("span",{"data-vg-id":"8161c4d","data-source-path":"/src/components/ViewGateOverlay.tsx:3140",className:"vg-badge",style:{fontSize:"10px",background:B?"#f1f5f9":l.status==="completed"||l.status==="done"?"#ecfdf5":l.status==="ready_for_review"?"#f3e8ff":"#fef3c7",color:B?"#64748b":l.status==="completed"||l.status==="done"?"#059669":l.status==="ready_for_review"?"#a855f7":"#92400e",border:"none",padding:"2px 6px"},children:"MODAL"}),l.creator&&i.jsx("div",{"data-vg-id":"2e782fb9","data-source-path":"/src/components/ViewGateOverlay.tsx:3149",style:{display:"flex",alignItems:"center",background:"#f8fafc",padding:"2px",borderRadius:"50%",border:"1px solid #e2e8f0",marginLeft:"4px"},children:l.creator.avatar?i.jsx("img",{"data-vg-id":"3cf759ec","data-source-path":"/src/components/ViewGateOverlay.tsx:3159",src:l.creator.avatar,style:{width:"16px",height:"16px",borderRadius:"50%"},alt:""}):i.jsx("div",{"data-vg-id":"2e782fbb","data-source-path":"/src/components/ViewGateOverlay.tsx:3161",style:{width:"16px",height:"16px",borderRadius:"50%",background:"#6366f1",color:"white",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"8px",fontWeight:700},children:l.creator.name?.[0]})}),l.url&&i.jsx(dc,{url:l.url,onHover:bc,style:{display:"flex",alignItems:"center",gap:"4px",fontSize:"11px",color:"#64748b",background:"#f8fafc",padding:"2px 8px",borderRadius:"6px",border:"1px solid #e2e8f0",maxWidth:"220px"}}),(l.focusAreas?.length>0?l.focusAreas:[...l.backendEndpoints?.length>0?["backend"]:[],...l.figmaReference?.length>0?["ux"]:[]]).map(p=>i.jsxs("span",{"data-vg-id":"8161c51","data-source-path":"/src/components/ViewGateOverlay.tsx:3187",style:{fontSize:"10px",fontWeight:800,textTransform:"uppercase",padding:"4px 10px",borderRadius:"24px",background:p==="frontend"?"linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%)":p==="backend"?"linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%)":"linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%)",color:p==="frontend"?"#059669":p==="backend"?"#4f46e5":"#c026d3",display:"flex",alignItems:"center",gap:"4px",border:`1px solid ${p==="frontend"?"#a7f3d0":p==="backend"?"#c7d2fe":"#fbcfe8"}`,boxShadow:p==="frontend"?"0 2px 4px rgba(5, 150, 105, 0.05)":p==="backend"?"0 2px 4px rgba(79, 70, 229, 0.05)":"0 2px 4px rgba(192, 38, 211, 0.05)",letterSpacing:"0.02em"},children:[p==="frontend"?i.jsx(br,{"data-vg-id":"b806beea","data-source-path":"/src/components/ViewGateOverlay.tsx:3195",size:11,strokeWidth:2.5}):p==="backend"?i.jsx(He,{"data-vg-id":"b1e4c27a","data-source-path":"/src/components/ViewGateOverlay.tsx:3195",size:11,strokeWidth:2.5}):i.jsx(Rt,{"data-vg-id":"ea069937","data-source-path":"/src/components/ViewGateOverlay.tsx:3195",size:11,strokeWidth:2.5}),p==="frontend"?"Frontend":p==="backend"?"Backend":"UX / UI"]},p))]}),l.status==="completed"?i.jsxs("span",{"data-vg-id":"8161c55","data-source-path":"/src/components/ViewGateOverlay.tsx:3201",className:"vg-badge",style:{backgroundColor:"#ecfdf5",color:"#059669",border:"1px solid #d1fae5"},children:[i.jsx(Pe,{"data-vg-id":"a75c1a66","data-source-path":"/src/components/ViewGateOverlay.tsx:3202",size:14})," ",r.completed||(e==="es"?"Listo para revisión":"Ready for Review")]}):l.status==="ready_for_review"?i.jsxs("span",{"data-vg-id":"8161c6c","data-source-path":"/src/components/ViewGateOverlay.tsx:3205",className:"vg-badge",style:{backgroundColor:"#f3e8ff",color:"#a855f7",border:"1px solid #e9d5ff"},children:[i.jsx(Pe,{"data-vg-id":"a75c1a7d","data-source-path":"/src/components/ViewGateOverlay.tsx:3206",size:14})," ",r.readyForReview]}):l.status==="bug_fixing"?i.jsxs("span",{"data-vg-id":"8161c6e","data-source-path":"/src/components/ViewGateOverlay.tsx:3209",className:"vg-badge",style:{backgroundColor:"#fff1f2",color:"#e11d48",border:"1px solid #ffe4e6"},children:[i.jsx(Kt,{"data-vg-id":"3b8b181d","data-source-path":"/src/components/ViewGateOverlay.tsx:3210",size:14})," ","Bug Fixing"]}):i.jsxs("span",{"data-vg-id":"8161c70","data-source-path":"/src/components/ViewGateOverlay.tsx:3213",className:"vg-badge",style:{backgroundColor:B||l.status==="backlog"?"#f1f5f9":"#fff7ed",color:B||l.status==="backlog"?"#64748b":"#ea580c",border:B||l.status==="backlog"?"1px solid #e2e8f0":"1px solid #ffedd5"},children:[i.jsx(zo,{"data-vg-id":"62dc6c39","data-source-path":"/src/components/ViewGateOverlay.tsx:3218",size:14}),B||l.status==="backlog"?r.backlog:r.pending]})]}),(l.screenshot||l.reference?.previewUrl)&&i.jsx("div",{"data-vg-id":"2e782fdd","data-source-path":"/src/components/ViewGateOverlay.tsx:3225",style:{margin:"0 0 20px 0",borderRadius:"8px",overflow:"hidden",width:"fit-content",maxWidth:"100%",maxHeight:"280px",alignSelf:"center",display:"flex"},children:i.jsx("img",{"data-vg-id":"3cf75a10","data-source-path":"/src/components/ViewGateOverlay.tsx:3235",src:l.screenshot||l.reference?.previewUrl,alt:"Visual Preview",style:{maxWidth:"100%",maxHeight:"280px",objectFit:"contain",display:"block"}})}),i.jsxs("div",{"data-vg-id":"2e782fdf","data-source-path":"/src/components/ViewGateOverlay.tsx:3248",style:{marginBottom:"20px"},children:[i.jsx("div",{"data-vg-id":"2e782fe0","data-source-path":"/src/components/ViewGateOverlay.tsx:3249",style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"8px"},children:i.jsxs("div",{"data-vg-id":"2e782ff6","data-source-path":"/src/components/ViewGateOverlay.tsx:3250",style:{fontSize:"10px",fontWeight:800,color:l.priority==="low"?"#059669":l.priority==="urgent"?"#b91c1c":l.priority==="high"?"#b45309":"#4338ca",backgroundColor:l.priority==="low"?"#ecfdf5":l.priority==="urgent"?"#fef2f2":l.priority==="high"?"#fffbeb":"#eef2ff",padding:"4px 10px",borderRadius:"6px",letterSpacing:"0.5px",border:"1px solid",borderColor:l.priority==="low"?"#d1fae5":l.priority==="urgent"?"#fee2e2":l.priority==="high"?"#fef3c7":"#e0e7ff"},children:[r.priority,": ",r[l.priority||"medium"]]})}),i.jsx("p",{"data-vg-id":"f01af8d6","data-source-path":"/src/components/ViewGateOverlay.tsx:3264",className:"vg-text-wrap",style:{margin:"0",fontSize:"16px",color:"#1e293b",lineHeight:1.6},children:l.message}),l.figmaReference?.length>0&&i.jsxs("div",{"data-vg-id":"2e782ff8","data-source-path":"/src/components/ViewGateOverlay.tsx:3269",style:{marginTop:"16px",display:"flex",flexDirection:"column",gap:"8px",padding:"12px",background:"#faf5ff",borderRadius:"12px",border:"1px solid #fae8ff"},children:[i.jsxs("div",{"data-vg-id":"2e782ff9","data-source-path":"/src/components/ViewGateOverlay.tsx:3270",style:{display:"flex",alignItems:"center",gap:"6px",marginBottom:"4px"},children:[i.jsx(Rt,{"data-vg-id":"ea069972","data-source-path":"/src/components/ViewGateOverlay.tsx:3271",size:14,style:{color:"#d946ef"}}),i.jsx("span",{"data-vg-id":"8161c90","data-source-path":"/src/components/ViewGateOverlay.tsx:3272",style:{fontSize:"11px",fontWeight:800,color:"#a21caf",textTransform:"uppercase",letterSpacing:"0.05em"},children:e==="es"?"Diseños Figma":"Figma Designs"})]}),l.figmaReference.map((p,x)=>i.jsxs("a",{"data-vg-id":"ef47984c","data-source-path":"/src/components/ViewGateOverlay.tsx:3275",href:p.link,target:"_blank",rel:"noreferrer",className:"vg-animate-pop",style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 14px",background:"#ffffff",border:"1px solid #f5d0fe",borderRadius:"10px",fontSize:"13px",color:"#c026d3",textDecoration:"none",transition:"all 0.2s",boxShadow:"0 2px 4px rgba(217, 70, 239, 0.05)"},onMouseEnter:E=>{E.currentTarget.style.transform="translateY(-2px)",E.currentTarget.style.boxShadow="0 4px 12px rgba(217, 70, 239, 0.15)",E.currentTarget.style.borderColor="#d946ef"},onMouseLeave:E=>{E.currentTarget.style.transform="translateY(0)",E.currentTarget.style.boxShadow="0 2px 4px rgba(217, 70, 239, 0.05)",E.currentTarget.style.borderColor="#f5d0fe"},children:[i.jsxs("div",{"data-vg-id":"2e782ffd","data-source-path":"/src/components/ViewGateOverlay.tsx:3283",style:{display:"flex",alignItems:"center",gap:"8px"},children:[i.jsx("div",{"data-vg-id":"2e782ffe","data-source-path":"/src/components/ViewGateOverlay.tsx:3284",style:{width:"24px",height:"24px",borderRadius:"6px",background:"rgba(217, 70, 239, 0.1)",display:"flex",alignItems:"center",justifyContent:"center"},children:i.jsx(br,{"data-vg-id":"b806bf2c","data-source-path":"/src/components/ViewGateOverlay.tsx:3285",size:12,strokeWidth:3})}),i.jsx("span",{"data-vg-id":"8161caa","data-source-path":"/src/components/ViewGateOverlay.tsx:3287",style:{fontWeight:700},children:p.name||"Figma Reference"})]}),i.jsx(sn,{"data-vg-id":"5c2be066","data-source-path":"/src/components/ViewGateOverlay.tsx:3289",size:14,style:{opacity:.5}})]},x))]}),l.backendEndpoints?.length>0&&i.jsxs("div",{"data-vg-id":"2e783017","data-source-path":"/src/components/ViewGateOverlay.tsx:3296",style:{marginTop:"16px",display:"flex",flexDirection:"column",gap:"8px",padding:"12px",background:"#f5f8ff",borderRadius:"12px",border:"1px solid #e0e7ff"},children:[i.jsxs("div",{"data-vg-id":"2e783018","data-source-path":"/src/components/ViewGateOverlay.tsx:3297",style:{display:"flex",alignItems:"center",gap:"6px",marginBottom:"4px"},children:[i.jsx(He,{"data-vg-id":"b1e4c2d5","data-source-path":"/src/components/ViewGateOverlay.tsx:3298",size:14,style:{color:"#4f46e5"}}),i.jsx("span",{"data-vg-id":"8161caf","data-source-path":"/src/components/ViewGateOverlay.tsx:3299",style:{fontSize:"11px",fontWeight:800,color:"#3730a3",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Backend Endpoints"})]}),i.jsx("div",{"data-vg-id":"2e78301b","data-source-path":"/src/components/ViewGateOverlay.tsx:3301",style:{display:"flex",flexWrap:"wrap",gap:"8px"},children:l.backendEndpoints.map(p=>{const x=p.split("|"),E=x.length>1?x[0]:"";let D=x.length>1?x[1]||"":p||"",K="#4f46e5",T="#e0e7ff";return E==="GET"?(K="#059669",T="#d1fae5"):E==="POST"?(K="#ea580c",T="#ffedd5"):E==="PUT"?(K="#0284c7",T="#e0f2fe"):E==="DELETE"&&(K="#e11d48",T="#ffe4e6"),i.jsxs("div",{"data-vg-id":"2e78301c","data-source-path":"/src/components/ViewGateOverlay.tsx:3316",className:"vg-animate-slide",style:{fontSize:"12px",padding:"6px 12px",background:"#ffffff",color:"#4f46e5",borderRadius:"8px",border:"1px solid #c7d2fe",display:"flex",alignItems:"center",gap:"8px",boxShadow:"0 2px 4px rgba(79, 70, 229, 0.05)"},children:[E&&i.jsx("span",{"data-vg-id":"8161cb2","data-source-path":"/src/components/ViewGateOverlay.tsx:3322",style:{fontWeight:800,color:K,background:T,padding:"2px 6px",borderRadius:"4px",fontSize:"10px"},children:E}),i.jsx("span",{"data-vg-id":"8161cb3","data-source-path":"/src/components/ViewGateOverlay.tsx:3323",style:{fontWeight:600,fontFamily:"monospace",letterSpacing:"-0.02em",color:"#1e293b"},children:D})]},p)})})]})]}),i.jsxs("div",{"data-vg-id":"2e783034","data-source-path":"/src/components/ViewGateOverlay.tsx:3333",style:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"12px",borderTop:"1px solid #f1f5f9",paddingTop:"16px"},children:[i.jsx("div",{"data-vg-id":"2e783035","data-source-path":"/src/components/ViewGateOverlay.tsx:3335",style:{display:"flex",gap:"6px"},children:fr!=="client"&&i.jsxs(i.Fragment,{children:[i.jsx("button",{className:"vg-button-ghost vg-animate-pop",style:{padding:"8px",minWidth:"36px"},onClick:()=>{const p=l.backendEndpoints||[],x=l.focusAreas&&l.focusAreas.length>0?l.focusAreas:[...p.length>0?["backend"]:[],...l.figmaReference&&l.figmaReference.length>0?["ux"]:[]];Ds(l._id),Tc(l.message),y(l.priority||"medium"),fo(x),Cr(l.figmaReference&&l.figmaReference.length>0?l.figmaReference:[{name:r.figmaPrimaryDesign,link:""}]),Rs(p),$A(p)},title:r.edit,children:i.jsx(Rt,{"data-vg-id":"ea0699ae","data-source-path":"/src/components/ViewGateOverlay.tsx:3359",size:16})}),i.jsx("button",{className:"vg-button-ghost vg-animate-pop",style:{padding:"8px",minWidth:"36px",color:"#ef4444"},onClick:()=>{Y({title:r.deleteConfirm,message:r.confirmDelete,type:"danger",onConfirm:async()=>{try{(await fetch(`${n}/api/annotations/${l._id}`,{method:"DELETE",headers:{"x-api-key":s}})).ok&&(Os(),A(r.deleteSuccess,"success"))}catch{A(r.error,"error")}finally{Y(null)}}})},title:e==="es"?"Eliminar":"Delete",children:i.jsx(Ir,{"data-vg-id":"45b4421c","data-source-path":"/src/components/ViewGateOverlay.tsx:3389",size:16})})]})}),i.jsxs("div",{"data-vg-id":"2e783038","data-source-path":"/src/components/ViewGateOverlay.tsx:3395",style:{display:"flex",gap:"8px"},children:[fr!=="client"&&l.status==="ready_for_review"&&i.jsxs("button",{onClick:()=>Zp(l),className:"vg-button-primary vg-animate-pop",style:{padding:"8px 16px",fontSize:"13px",whiteSpace:"nowrap",background:"linear-gradient(135deg, #059669 0%, #10b981 100%)",boxShadow:"0 4px 12px rgba(5, 150, 69, 0.2)",display:"flex",alignItems:"center",gap:"8px",fontWeight:700},disabled:fe,children:[fe?i.jsx(Dt,{"data-vg-id":"a4b73607","data-source-path":"/src/components/ViewGateOverlay.tsx:3413",size:14,className:"vg-animate-spin"}):i.jsx(Fl,{"data-vg-id":"41e603ca","data-source-path":"/src/components/ViewGateOverlay.tsx:3413",size:14}),e==="es"?"Resolver con Evidencia":"Resolve & Capture"]}),i.jsxs("a",{href:`${(o||"").replace(/\/$/,"")}/${B||l.status==="backlog"?"backlog":"board"}?search=${l.key||(l._id?"VG-"+l._id.slice(-6).toUpperCase():"TICKET")}${Ae?`&projectId=${Ae}`:""}`,target:"_blank",rel:"noopener noreferrer",className:"vg-button-primary vg-animate-pop",style:{padding:"8px 16px",fontSize:"13px",whiteSpace:"nowrap",textDecoration:"none",display:"flex",alignItems:"center",gap:"8px",cursor:"pointer"},children:[i.jsx(sn,{"data-vg-id":"5c2be08b","data-source-path":"/src/components/ViewGateOverlay.tsx:3433",size:14}),e==="es"?"Ver en Dashboard":"View in Dashboard"]})]})]})]},l._id))},dA||"all")]})}),_A&&i.jsx("div",{"data-vg-id":"2e78303c","data-source-path":"/src/components/ViewGateOverlay.tsx:3449",className:"vg-animate-fade",style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(11, 15, 25, 0.7)",backdropFilter:"blur(8px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:At+100},children:i.jsxs("div",{"data-vg-id":"2e78303d","data-source-path":"/src/components/ViewGateOverlay.tsx:3454",className:"vg-glassmorphism vg-animate-slide",style:{padding:"40px",width:"420px",textAlign:"center",border:"1px solid rgba(255, 255, 255, 0.1)",boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.5)"},children:[i.jsx("div",{"data-vg-id":"2e783053","data-source-path":"/src/components/ViewGateOverlay.tsx:3461",style:{width:"64px",height:"64px",background:_A.type==="danger"?"rgba(239, 68, 68, 0.1)":"rgba(99, 102, 241, 0.1)",borderRadius:"20px",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 24px",color:_A.type==="danger"?"#ef4444":"#6366f1",transform:"rotate(-5deg)"},children:_A.type==="danger"?i.jsx(Ir,{"data-vg-id":"45b44239","data-source-path":"/src/components/ViewGateOverlay.tsx:3470",size:32}):i.jsx(Pe,{"data-vg-id":"a75c1afa","data-source-path":"/src/components/ViewGateOverlay.tsx:3470",size:32})}),i.jsx("h3",{"data-vg-id":"53ec56c","data-source-path":"/src/components/ViewGateOverlay.tsx:3472",style:{margin:"0 0 12px 0",fontSize:"20px",fontWeight:800,color:"#000000",letterSpacing:"-0.02em"},children:_A.title}),i.jsx("p",{"data-vg-id":"f01af936","data-source-path":"/src/components/ViewGateOverlay.tsx:3473",style:{margin:"0 0 24px 0",fontSize:"15px",color:"#000000",lineHeight:1.6},children:_A.message}),_A.showInput&&i.jsx("textarea",{className:"vg-textarea",placeholder:r.reopenPlaceholder,value:eA,onChange:l=>lA(l.target.value),rows:3,autoFocus:!0,style:{marginBottom:"24px",minHeight:"80px",textAlign:"left"}}),i.jsxs("div",{"data-vg-id":"2e783058","data-source-path":"/src/components/ViewGateOverlay.tsx:3487",style:{display:"flex",gap:"16px"},children:[i.jsx("button",{className:"vg-button-ghost",style:{flex:1,height:"44px"},onClick:()=>!pe&&Y(null),disabled:pe,children:r.no}),i.jsx("button",{className:"vg-button-primary",style:{flex:1,height:"44px",backgroundColor:_A.type==="danger"?"#ef4444":void 0,backgroundImage:_A.type==="danger"?"none":void 0,display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",opacity:_A.showInput&&!eA.trim()?.5:1,cursor:_A.showInput&&!eA.trim()?"not-allowed":"pointer"},disabled:pe||_A.showInput&&!eA.trim(),onClick:async()=>{ur(!0);try{await _A.onConfirm(eA)}catch(l){console.error("Confirmation error:",l)}finally{ur(!1)}},children:pe?i.jsx(Dt,{"data-vg-id":"a4b73627","data-source-path":"/src/components/ViewGateOverlay.tsx:3523",size:18,className:"vg-animate-spin"}):r.yes})]})]})}),!NA&&!u&&tA&&yt.map((l,h)=>{const{rect:p,annotations:x,isModal:E}=l,D=x[0],K=x.length,T=x.some(S=>S.status==="ready_for_review"),BA=x.some(S=>S.status==="completed"||S.status==="done"),j=x.some(S=>S.status!=="ready_for_review"&&S.status!=="completed"&&S.status!=="done"),yA=BA&&!T&&!j,nA=T&&!j&&!BA,sA=(T||BA)&&!j,hA=(T||BA)&&j,DA=x.filter(S=>S.status!=="ready_for_review"&&S.status!=="completed"&&S.status!=="done").length,RA=x.filter(S=>S.status==="ready_for_review").length,OA=x.filter(S=>S.status==="completed"||S.status==="done").length,kA=x.some(S=>S.status==="bug_fixing"||S.type==="bug"||S.originalStatus==="bug_fixing"),vA=kA&&!nA&&!yA?"#f43f5e":DA>0?B?"#64748b":"#ea580c":RA>0?"#a855f7":"#10b981",ve=yt.some(S=>S.element===l.element&&S.isTriggerPin),_e=yt.some(S=>S.element===l.element&&!S.isTriggerPin),St=ve&&_e?l.isTriggerPin?-18:18:0,Qr=p.top===0&&p.left===0&&p.width>window.innerWidth*.9;return i.jsxs("div",{className:"vg-pin-container vg-animate-pop",style:{position:"fixed",top:Math.max(20,Math.min(window.innerHeight-52,p.top-20)),left:Qr?Math.max(20,p.left+40+St):Math.max(20,Math.min(window.innerWidth-52,p.left+p.width/2-16+St)),width:"32px",height:"32px",cursor:"pointer",transition:"all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275)",zIndex:Lp},onMouseEnter:S=>{const at=S.currentTarget.getBoundingClientRect(),Dc=window.innerHeight-at.bottom,$p=at.top;Dc<250&&$p>Dc?fA(Qo=>({...Qo,[l.id]:"vg-top"})):fA(Qo=>({...Qo,[l.id]:""}))},onWheel:S=>{const at=S.currentTarget.querySelector(".vg-tooltip-scroll");at&&at.scrollBy({top:S.deltaY,behavior:"smooth"})},onClick:()=>{he(!0),be(D._id)},children:[i.jsxs("div",{"data-vg-id":"2e78305a","data-source-path":"/src/components/ViewGateOverlay.tsx:3598",className:`vg-pin-tooltip ${PA[l.id]||""} ${Qr||p.left<160?"vg-tooltip-right":p.left>window.innerWidth-160?"vg-tooltip-left":""}`,style:{padding:"16px"},children:[i.jsxs("div",{"data-vg-id":"2e78305b","data-source-path":"/src/components/ViewGateOverlay.tsx:3599",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"12px"},children:[i.jsxs("div",{"data-vg-id":"2e78305c","data-source-path":"/src/components/ViewGateOverlay.tsx:3600",style:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap"},children:[l.isTriggerPin?i.jsx(Er,{"data-vg-id":"d88161d7","data-source-path":"/src/components/ViewGateOverlay.tsx:3602",size:14,color:vA}):i.jsx(vr,{"data-vg-id":"7fe17c6","data-source-path":"/src/components/ViewGateOverlay.tsx:3604",size:14,color:vA}),i.jsxs("div",{"data-vg-id":"2e783074","data-source-path":"/src/components/ViewGateOverlay.tsx:3606",style:{display:"flex",gap:"4px"},children:[DA>0&&i.jsxs("span",{"data-vg-id":"8161d0a","data-source-path":"/src/components/ViewGateOverlay.tsx:3608",className:"vg-badge",style:{fontSize:"10px",background:B?"#f1f5f9":"#fff7ed",color:B?"#64748b":"#c2410c"},children:[DA," ",B||D.status==="backlog"?"Backlog":e==="es"?DA===1?r.pending:"Pendientes":"pending"]}),RA>0&&i.jsxs("span",{"data-vg-id":"8161d0b","data-source-path":"/src/components/ViewGateOverlay.tsx:3617",style:{fontSize:"10px",fontWeight:700,color:"#a855f7",background:"#f3e8ff",padding:"2px 6px",borderRadius:"6px"},children:[RA," ",e==="es"?RA===1?"Listo para revisión":"Listos para revisión":"ready for review"]}),OA>0&&i.jsxs("span",{"data-vg-id":"8161d0c","data-source-path":"/src/components/ViewGateOverlay.tsx:3629",style:{fontSize:"10px",fontWeight:700,color:"#059669",background:"#ecfdf5",padding:"2px 6px",borderRadius:"6px"},children:[OA," ",e==="es"?OA===1?"Completado":"Completados":"completed"]}),x.some(S=>S.status==="bug_fixing")&&i.jsx("span",{"data-vg-id":"8161d0d","data-source-path":"/src/components/ViewGateOverlay.tsx:3641",style:{fontSize:"10px",fontWeight:700,color:"#e11d48",background:"#fff1f2",padding:"2px 6px",borderRadius:"6px"},children:"BUG"})]})]}),E&&i.jsx("span",{"data-vg-id":"8161d0e","data-source-path":"/src/components/ViewGateOverlay.tsx:3655",className:"vg-badge",style:{fontSize:"10px",background:B?"#f1f5f9":hA?`linear-gradient(90deg, #ea580c 50%, ${BA?"#10b981":"#a855f7"} 50%)`:DA>0?"#fff7ed":yA?"#ecfdf5":"#f3e8ff",color:B?"#64748b":hA?"#ffffff":DA>0?"#c2410c":yA?"#059669":"#a855f7",border:"none",fontWeight:800,textShadow:hA&&!B?"0 1px 2px rgba(0,0,0,0.2)":"none"},children:"MODAL"})]}),i.jsx("div",{"data-vg-id":"2e78307a","data-source-path":"/src/components/ViewGateOverlay.tsx:3667",className:"vg-tooltip-scroll",style:{maxHeight:"180px",overflowY:"auto"},children:x.map((S,at)=>i.jsxs("div",{"data-vg-id":"2e78307b","data-source-path":"/src/components/ViewGateOverlay.tsx:3669",style:{padding:"10px 0",borderTop:at===0?"none":"1px solid #f1f5f9",display:"flex",gap:"12px",alignItems:"flex-start"},children:[i.jsxs("div",{"data-vg-id":"2e783091","data-source-path":"/src/components/ViewGateOverlay.tsx:3676",style:{flex:1,display:"flex",flexDirection:"column",gap:"4px"},children:[i.jsxs("div",{"data-vg-id":"2e783092","data-source-path":"/src/components/ViewGateOverlay.tsx:3677",style:{display:"flex",alignItems:"center",gap:"6px"},children:[i.jsx("span",{"data-vg-id":"8161d28","data-source-path":"/src/components/ViewGateOverlay.tsx:3678",style:{fontSize:"10px",fontWeight:600,color:"#64748b"},children:lc(S.timestamp||S.createdAt,e)}),S.creator&&i.jsx("div",{"data-vg-id":"2e783094","data-source-path":"/src/components/ViewGateOverlay.tsx:3682",style:{marginLeft:"4px"},children:S.creator.avatar?i.jsx("img",{"data-vg-id":"3cf75ac7","data-source-path":"/src/components/ViewGateOverlay.tsx:3684",src:S.creator.avatar,style:{width:"14px",height:"14px",borderRadius:"50%"},alt:""}):i.jsx("div",{"data-vg-id":"2e783096","data-source-path":"/src/components/ViewGateOverlay.tsx:3686",style:{width:"14px",height:"14px",borderRadius:"50%",background:"#6366f1",color:"white",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"7px",fontWeight:700},children:S.creator.name?.[0]})})]}),S.url&&i.jsx(dc,{url:S.url,onHover:bc,style:{display:"flex",alignItems:"center",gap:"4px",fontSize:"9px",color:"#6366f1",opacity:.8,background:"rgba(99, 102, 241, 0.05)",padding:"2px 6px",borderRadius:"4px",maxWidth:"120px"},tooltipStyle:{fontSize:"9px"}}),i.jsx("div",{"data-vg-id":"2e783097","data-source-path":"/src/components/ViewGateOverlay.tsx:3712",className:"vg-line-clamp-2",style:{fontSize:"13px",color:"#1e293b",lineHeight:1.4,fontWeight:500},children:S.message.length>100?S.message.slice(0,97)+"...":S.message})]}),i.jsxs("div",{"data-vg-id":"2e783098","data-source-path":"/src/components/ViewGateOverlay.tsx:3716",style:{flexShrink:0,marginTop:"2px",display:"flex",flexDirection:"column",gap:"4px",alignItems:"flex-end"},children:[i.jsx("div",{"data-vg-id":"2e783099","data-source-path":"/src/components/ViewGateOverlay.tsx:3717",style:{fontSize:"8px",fontWeight:800,color:S.priority==="low"?"#059669":S.priority==="urgent"?"#b91c1c":S.priority==="high"?"#b45309":"#4338ca",backgroundColor:S.priority==="low"?"#ecfdf5":S.priority==="urgent"?"#fef2f2":S.priority==="high"?"#fffbeb":"#eef2ff",padding:"2px 6px",borderRadius:"4px",textTransform:"uppercase",border:"1px solid",borderColor:S.priority==="low"?"#d1fae5":S.priority==="urgent"?"#fee2e2":S.priority==="high"?"#fef3c7":"#e0e7ff"},children:r[S.priority||"medium"]}),S.status==="completed"||S.status==="done"?i.jsxs("span",{"data-vg-id":"8161d2f","data-source-path":"/src/components/ViewGateOverlay.tsx:3731",style:{display:"flex",alignItems:"center",gap:"4px",fontSize:"8px",fontWeight:800,color:"#059669",background:"#ecfdf5",padding:"2px 6px",borderRadius:"6px",textTransform:"uppercase",border:"1px solid #d1fae5"},children:[i.jsx(Pe,{"data-vg-id":"a75c1de0","data-source-path":"/src/components/ViewGateOverlay.tsx:3744",size:10}),r.completed]}):S.status==="ready_for_review"?i.jsxs("span",{"data-vg-id":"8161fd1","data-source-path":"/src/components/ViewGateOverlay.tsx:3748",style:{display:"flex",alignItems:"center",gap:"4px",fontSize:"8px",fontWeight:800,color:"#a855f7",background:"#f3e8ff",padding:"2px 6px",borderRadius:"6px",textTransform:"uppercase",border:"1px solid #e9d5ff"},children:[S.type==="bug"||S.status==="bug_fixing"||S.originalStatus==="bug_fixing"?i.jsx(Kt,{"data-vg-id":"3b8b1b80","data-source-path":"/src/components/ViewGateOverlay.tsx:3761",size:10}):i.jsx(Pe,{"data-vg-id":"a75c1de3","data-source-path":"/src/components/ViewGateOverlay.tsx:3761",size:10}),r.readyForReview]}):S.status==="bug_fixing"?i.jsxs("span",{"data-vg-id":"8161fd4","data-source-path":"/src/components/ViewGateOverlay.tsx:3765",style:{display:"flex",alignItems:"center",gap:"4px",fontSize:"8px",fontWeight:800,color:"#e11d48",background:"#fff1f2",padding:"2px 6px",borderRadius:"6px",textTransform:"uppercase",border:"1px solid #ffe4e6"},children:[i.jsx(Kt,{"data-vg-id":"3b8b1b83","data-source-path":"/src/components/ViewGateOverlay.tsx:3778",size:10}),"Bug Fixing"]}):i.jsxs("span",{"data-vg-id":"8161fd6","data-source-path":"/src/components/ViewGateOverlay.tsx:3782",style:{display:"flex",alignItems:"center",gap:"4px",fontSize:"8px",fontWeight:800,color:B||S.status==="backlog"?"#64748b":"#ea580c",background:B||S.status==="backlog"?"#f1f5f9":"#fff7ed",padding:"2px 6px",borderRadius:"6px",textTransform:"uppercase",border:B||S.status==="backlog"?"1px solid #e2e8f0":"1px solid #ffedd5"},children:[i.jsx(zo,{"data-vg-id":"62dc6f9f","data-source-path":"/src/components/ViewGateOverlay.tsx:3795",size:10}),B||S.status==="backlog"?r.backlog:r.pending]})]})]},S._id))})]}),i.jsxs("div",{"data-vg-id":"2e783343","data-source-path":"/src/components/ViewGateOverlay.tsx:3805",className:`vg-formal-pin ${yA?"completed":nA||sA?"ready":kA?"bug":hA?"mixed":B?"backlog":""} ${l.isTriggerPin?"modal-variant":""}`,style:{position:"relative",background:kA&&!nA&&!yA?"linear-gradient(135deg, #f43f5e 0%, #e11d48 100%)":nA?"linear-gradient(135deg, #a855f7 0%, #7e22ce 100%)":hA?BA?"linear-gradient(135deg, #10b981 0%, #059669 100%)":"linear-gradient(135deg, #a855f7 0%, #7e22ce 100%)":void 0},children:[nA||yA||sA?kA&&!yA?i.jsx(Kt,{"data-vg-id":"3b8b1b87","data-source-path":"/src/components/ViewGateOverlay.tsx:3812",size:18}):i.jsx(Pe,{"data-vg-id":"a75c1dff","data-source-path":"/src/components/ViewGateOverlay.tsx:3812",size:18}):kA?i.jsx(Kt,{"data-vg-id":"3b8b1b9e","data-source-path":"/src/components/ViewGateOverlay.tsx:3812",size:18}):l.isTriggerPin?i.jsx(Er,{"data-vg-id":"d88164c1","data-source-path":"/src/components/ViewGateOverlay.tsx:3812",size:16}):E?i.jsx(sn,{"data-vg-id":"5c2be3ad","data-source-path":"/src/components/ViewGateOverlay.tsx:3812",size:16}):i.jsx(vr,{"data-vg-id":"7fe1ab1","data-source-path":"/src/components/ViewGateOverlay.tsx:3812",size:16}),K>1&&i.jsx("div",{"data-vg-id":"2e78335f","data-source-path":"/src/components/ViewGateOverlay.tsx:3815",className:"vg-pin-badge vg-animate-pop",children:K})]})]},`group-${l.id}`)}),i.jsx("div",{className:`vg-url-tooltip ${nt?"visible":""} ${nt?.direction==="bottom"?"vg-bottom":"vg-top"}`,style:{transform:nt?`translate(-50%, ${nt.direction==="top"?"-110%":"10%"})`:"translate(-50%, 0)",left:nt?.x||0,top:nt?.y||0},children:nt?.url}),ee&&i.jsx("div",{"data-vg-id":"2e783360","data-source-path":"/src/components/ViewGateOverlay.tsx:3840",style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.75)",backdropFilter:"blur(16px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:At+100,animation:"vg-fade-in 0.3s ease-out"},onClick:l=>{l.target===l.currentTarget&&z(!1)},children:i.jsxs("div",{"data-vg-id":"2e783361","data-source-path":"/src/components/ViewGateOverlay.tsx:3849",className:"vg-glassmorphism vg-animate-pop",style:{width:"95%",maxWidth:"800px",height:"85vh",maxHeight:"850px",display:"flex",flexDirection:"column",overflow:"hidden",boxShadow:"0 50px 100px rgba(0,0,0,0.6)",borderRadius:"32px",border:"1px solid rgba(255, 255, 255, 0.15)",backgroundColor:"rgba(255, 255, 255, 0.98)"},children:[i.jsxs("div",{"data-vg-id":"2e783362","data-source-path":"/src/components/ViewGateOverlay.tsx:3862",style:{padding:"32px 40px",borderBottom:"1px solid rgba(0,0,0,0.06)",display:"flex",alignItems:"center",justifyContent:"space-between",background:"white"},children:[i.jsxs("div",{"data-vg-id":"2e783363","data-source-path":"/src/components/ViewGateOverlay.tsx:3863",children:[i.jsx("h3",{"data-vg-id":"53ec88f","data-source-path":"/src/components/ViewGateOverlay.tsx:3864",style:{margin:0,fontSize:"24px",fontWeight:900,letterSpacing:"-0.03em",color:"#0f172a"},children:e==="es"?"Selector de Endpoints":"Endpoint Selector"}),i.jsx("p",{"data-vg-id":"f01afc59","data-source-path":"/src/components/ViewGateOverlay.tsx:3867",style:{margin:"6px 0 0 0",fontSize:"14px",color:"#64748b",fontWeight:500},children:e==="es"?"Asocia múltiples rutas backend a este ticket para mayor precisión":"Associate multiple backend routes to this ticket for better precision"})]}),i.jsx("button",{"data-vg-id":"5861c078","data-source-path":"/src/components/ViewGateOverlay.tsx:3871",onClick:()=>z(!1),className:"vg-close-pill",style:{width:"40px",height:"40px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"14px",background:"#f1f5f9",color:"#64748b",border:"none",cursor:"pointer",transition:"all 0.2s"},onMouseEnter:l=>{l.currentTarget.style.background="#e2e8f0",l.currentTarget.style.color="#0f172a"},onMouseLeave:l=>{l.currentTarget.style.background="#f1f5f9",l.currentTarget.style.color="#64748b"},children:i.jsx(kt,{"data-vg-id":"eec8c843","data-source-path":"/src/components/ViewGateOverlay.tsx:3878",size:20,strokeWidth:2.5})})]}),i.jsx("div",{"data-vg-id":"2e78337d","data-source-path":"/src/components/ViewGateOverlay.tsx:3882",style:{padding:"24px 40px",borderBottom:"1px solid rgba(0,0,0,0.06)",background:"#fcfcfc"},children:i.jsxs("div",{"data-vg-id":"2e78337e","data-source-path":"/src/components/ViewGateOverlay.tsx:3883",style:{position:"relative"},children:[i.jsx(Sl,{"data-vg-id":"8f7bb012","data-source-path":"/src/components/ViewGateOverlay.tsx:3884",size:20,style:{position:"absolute",left:"16px",top:"50%",transform:"translateY(-50%)",color:"#94a3b8"}}),i.jsx("input",{"data-vg-id":"88e38db9","data-source-path":"/src/components/ViewGateOverlay.tsx:3885",type:"text",placeholder:e==="es"?"Buscar rutas, métodos o descripciones...":"Search routes, methods, or descriptions...",value:AA,onChange:l=>ue(l.target.value),className:"vg-textarea",style:{padding:"14px 16px 14px 50px",fontSize:"16px",minHeight:"auto",borderRadius:"16px",border:"1px solid #e2e8f0",backgroundColor:"white",boxShadow:"0 2px 8px rgba(0,0,0,0.04)"},autoFocus:!0})]})}),i.jsx("div",{"data-vg-id":"2e783381","data-source-path":"/src/components/ViewGateOverlay.tsx:3905",style:{flex:1,overflowY:"auto",overflowX:"hidden",padding:"24px 40px"},className:"vg-custom-scrollbar",children:hr?Hc.length>0?i.jsx("div",{"data-vg-id":"2e78339a","data-source-path":"/src/components/ViewGateOverlay.tsx:3912",style:{display:"flex",flexDirection:"column",gap:"0px"},children:Hc.map(l=>{const h=l.name===(e==="es"?"Seleccionados":"Selected");return i.jsxs("div",{"data-vg-id":"2e78339b","data-source-path":"/src/components/ViewGateOverlay.tsx:3916",style:{marginBottom:"32px"},children:[i.jsxs("div",{"data-vg-id":"2e78339c","data-source-path":"/src/components/ViewGateOverlay.tsx:3917",style:{display:"flex",alignItems:"center",gap:"12px",marginBottom:"16px",padding:"0 4px"},children:[i.jsx("span",{"data-vg-id":"8162032","data-source-path":"/src/components/ViewGateOverlay.tsx:3918",style:{fontSize:"11px",fontWeight:900,textTransform:"uppercase",letterSpacing:"0.1em",color:h?"#10b981":"#6366f1",backgroundColor:h?"rgba(10, 185, 129, 0.08)":"rgba(99, 102, 241, 0.08)",padding:"4px 10px",borderRadius:"6px",border:"1px solid",borderColor:h?"rgba(10, 185, 129, 0.1)":"rgba(99, 102, 241, 0.1)"},children:l.name}),i.jsx("div",{"data-vg-id":"2e78339e","data-source-path":"/src/components/ViewGateOverlay.tsx:3932",style:{flex:1,height:"1px",background:`linear-gradient(90deg, ${h?"rgba(16, 185, 129, 0.15)":"rgba(99, 102, 241, 0.15)"} 0%, transparent 100%)`}})]}),i.jsx("div",{"data-vg-id":"2e78339f","data-source-path":"/src/components/ViewGateOverlay.tsx:3939",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(340px, 1fr))",gap:"12px"},children:l.endpoints.map(p=>{const x=`${p.method}|${p.path}`,E=J.includes(x);return i.jsxs("div",{"data-vg-id":"2e7833a0","data-source-path":"/src/components/ViewGateOverlay.tsx:3948",onClick:()=>{$A(E?J.filter(D=>D!==x):[...J,x])},style:{padding:"16px 20px",borderRadius:"18px",cursor:"pointer",transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)",background:E?"#f5f7ff":"#ffffff",border:"1px solid",borderColor:E?"rgba(99, 102, 241, 0.2)":"#f1f5f9",display:"flex",alignItems:"center",gap:"16px",boxShadow:E?"0 4px 12px rgba(99, 102, 241, 0.08)":"none"},onMouseEnter:D=>{E||(D.currentTarget.style.background="#f8fafc",D.currentTarget.style.borderColor="#e2e8f0")},onMouseLeave:D=>{E||(D.currentTarget.style.background="#ffffff",D.currentTarget.style.borderColor="#f1f5f9")},children:[i.jsx("div",{"data-vg-id":"2e7833a1","data-source-path":"/src/components/ViewGateOverlay.tsx:3980",style:{width:"24px",height:"24px",borderRadius:"8px",border:"2px solid",borderColor:E?"#6366f1":"#cbd5e1",backgroundColor:E?"#6366f1":"white",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s",flexShrink:0},children:E&&i.jsx("div",{"data-vg-id":"2e7833b7","data-source-path":"/src/components/ViewGateOverlay.tsx:3993",style:{color:"white",fontSize:"14px",fontWeight:900},children:"✓"})}),i.jsxs("div",{"data-vg-id":"2e7833b8","data-source-path":"/src/components/ViewGateOverlay.tsx:3995",style:{flex:1,minWidth:0},children:[i.jsxs("div",{"data-vg-id":"2e7833b9","data-source-path":"/src/components/ViewGateOverlay.tsx:3996",style:{display:"flex",alignItems:"center",gap:"10px"},children:[i.jsx("span",{"data-vg-id":"816204f","data-source-path":"/src/components/ViewGateOverlay.tsx:3997",style:{fontSize:"11px",fontWeight:800,padding:"3px 8px",borderRadius:"8px",background:p.method==="GET"?"#dcfce7":"#fee2e2",color:p.method==="GET"?"#166534":"#991b1b",flexShrink:0},children:p.method}),i.jsx("span",{"data-vg-id":"8162050","data-source-path":"/src/components/ViewGateOverlay.tsx:4008",style:{fontWeight:700,color:E?"#4338ca":"#1e293b",fontSize:"14px",wordBreak:"break-all"},children:p.path}),p.contract&&i.jsx("div",{"data-vg-id":"2e7833bc","data-source-path":"/src/components/ViewGateOverlay.tsx:4017",style:{fontSize:"9px",fontWeight:900,color:"#6366f1",background:"rgba(99, 102, 241, 0.1)",padding:"1px 5px",borderRadius:"4px",textTransform:"uppercase"},children:"JSON"})]}),p.description&&i.jsx("div",{"data-vg-id":"2e7833bd","data-source-path":"/src/components/ViewGateOverlay.tsx:4029",style:{fontSize:"12px",color:"#64748b",marginTop:"6px",wordBreak:"break-word",fontWeight:450,lineHeight:1.4},children:p.description})]})]},x)})})]},l.name)})}):i.jsxs("div",{"data-vg-id":"2e7833be","data-source-path":"/src/components/ViewGateOverlay.tsx:4050",style:{padding:"80px 20px",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center"},children:[i.jsx("div",{"data-vg-id":"2e7833bf","data-source-path":"/src/components/ViewGateOverlay.tsx:4051",style:{width:"80px",height:"80px",borderRadius:"24px",backgroundColor:"#f1f5f9",display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"24px"},children:i.jsx(He,{"data-vg-id":"b1e4c67c","data-source-path":"/src/components/ViewGateOverlay.tsx:4052",size:40,style:{color:"#94a3b8"}})}),i.jsx("p",{"data-vg-id":"f01afcb5","data-source-path":"/src/components/ViewGateOverlay.tsx:4054",style:{color:"#0f172a",fontSize:"18px",fontWeight:800,margin:"0 0 8px 0"},children:e==="es"?"No encontramos lo que buscas":"No results found"}),i.jsx("p",{"data-vg-id":"f01afcb6","data-source-path":"/src/components/ViewGateOverlay.tsx:4057",style:{color:"#64748b",fontSize:"15px",margin:0},children:e==="es"?"Intenta buscar con otros términos o revisa la sincronización":"Try searching with different terms or check synchronization"})]}):i.jsxs("div",{"data-vg-id":"2e783382","data-source-path":"/src/components/ViewGateOverlay.tsx:3907",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"100px 0",gap:"20px"},children:[i.jsx("div",{"data-vg-id":"2e783398","data-source-path":"/src/components/ViewGateOverlay.tsx:3908",className:"vg-spinner",style:{width:"40px",height:"40px",border:"3px solid rgba(99, 102, 241, 0.1)",borderTopColor:"#6366f1"}}),i.jsx("p",{"data-vg-id":"f01afc78","data-source-path":"/src/components/ViewGateOverlay.tsx:3909",style:{color:"#64748b",fontSize:"15px",fontWeight:600},children:e==="es"?"Cargando endpoints...":"Loading endpoints..."})]})}),i.jsxs("div",{"data-vg-id":"2e7833d8","data-source-path":"/src/components/ViewGateOverlay.tsx:4064",style:{padding:"24px 40px",borderTop:"1px solid rgba(0,0,0,0.06)",background:"white",display:"flex",alignItems:"center",justifyContent:"space-between",gap:"20px"},children:[i.jsxs("div",{"data-vg-id":"2e7833d9","data-source-path":"/src/components/ViewGateOverlay.tsx:4065",style:{display:"flex",alignItems:"center",gap:"12px"},children:[i.jsxs("div",{"data-vg-id":"2e7833da","data-source-path":"/src/components/ViewGateOverlay.tsx:4066",style:{padding:"6px 12px",background:"#f1f5f9",borderRadius:"10px",fontSize:"14px",fontWeight:700,color:"#475569"},children:[J.length," ",e==="es"?"seleccionados":"selected"]}),J.length>0&&i.jsx("button",{"data-vg-id":"5861c0d8","data-source-path":"/src/components/ViewGateOverlay.tsx:4070",onClick:()=>{$A([]),Et&&Rs([])},style:{background:"none",border:"none",color:"#6366f1",fontSize:"14px",fontWeight:700,cursor:"pointer",padding:"4px 8px"},children:e==="es"?"Desmarcar todos":"Deselect all"})]}),i.jsx("div",{"data-vg-id":"2e7833dc","data-source-path":"/src/components/ViewGateOverlay.tsx:4081",style:{display:"flex",gap:"12px"},children:i.jsx("button",{"data-vg-id":"5861c0da","data-source-path":"/src/components/ViewGateOverlay.tsx:4082",onClick:()=>{Et&&Rs(J),z(!1)},style:{minWidth:"160px",padding:"14px 28px",borderRadius:"16px",fontSize:"15px",fontWeight:850,border:"none",background:"var(--vg-primary-gradient)",color:"white",cursor:"pointer",boxShadow:"0 10px 25px -5px rgba(99, 102, 241, 0.45)",transition:"all 0.2s",display:"flex",alignItems:"center",justifyContent:"center"},onMouseEnter:l=>{l.currentTarget.style.transform="translateY(-2px)",l.currentTarget.style.boxShadow="0 15px 30px -5px rgba(99, 102, 241, 0.6)"},onMouseLeave:l=>{l.currentTarget.style.transform="translateY(0)",l.currentTarget.style.boxShadow="0 10px 25px -5px rgba(99, 102, 241, 0.45)"},children:e==="es"?"Confirmar Selección":"Confirm Selection"})})]})]})}),Ft?.contract&&i.jsx("div",{"data-vg-id":"2e7833de","data-source-path":"/src/components/ViewGateOverlay.tsx:4116",className:"vg-animate-fade",style:{position:"fixed",left:Math.min(Ft.x,window.innerWidth-420),top:Math.min(Ft.y,window.innerHeight-300),width:"400px",zIndex:At+500,pointerEvents:"none"},children:i.jsxs("div",{"data-vg-id":"2e7833df","data-source-path":"/src/components/ViewGateOverlay.tsx:4124",className:"vg-glassmorphism",style:{padding:"20px",background:"rgba(15, 23, 42, 0.95)",backdropFilter:"blur(20px)",border:"1px solid rgba(255, 255, 255, 0.1)",borderRadius:"20px",boxShadow:"0 20px 40px rgba(0,0,0,0.4)",display:"flex",flexDirection:"column",gap:"12px"},children:[i.jsxs("div",{"data-vg-id":"2e7833f5","data-source-path":"/src/components/ViewGateOverlay.tsx:4135",style:{display:"flex",alignItems:"center",gap:"8px"},children:[i.jsx("div",{"data-vg-id":"2e7833f6","data-source-path":"/src/components/ViewGateOverlay.tsx:4136",style:{padding:"4px 10px",background:"rgba(99, 102, 241, 0.2)",borderRadius:"8px",fontSize:"11px",fontWeight:900,color:"#818cf8",textTransform:"uppercase"},children:e==="es"?"CONTRATO":"CONTRACT"}),i.jsxs("span",{"data-vg-id":"816208c","data-source-path":"/src/components/ViewGateOverlay.tsx:4145",style:{color:"rgba(255, 255, 255, 0.5)",fontSize:"12px",fontWeight:600},children:[Ft.method," ",Ft.path]})]}),i.jsx("div",{"data-vg-id":"2e7833f8","data-source-path":"/src/components/ViewGateOverlay.tsx:4147",className:"vg-custom-scrollbar",style:{maxHeight:"250px",overflowY:"auto",background:"rgba(0,0,0,0.3)",borderRadius:"12px",padding:"12px"},children:i.jsx("pre",{"data-vg-id":"b7af090b","data-source-path":"/src/components/ViewGateOverlay.tsx:4154",style:{margin:0,fontSize:"11px",color:"#94a3b8",whiteSpace:"pre-wrap",wordBreak:"break-all",lineHeight:1.5,fontFamily:"JetBrains Mono, Fira Code, monospace"},children:Ft.contract})})]})}),Et&&i.jsx("div",{"data-vg-id":"2e7833fa","data-source-path":"/src/components/ViewGateOverlay.tsx:4173",className:"vg-animate-fade",style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(11, 15, 25, 0.4)",backdropFilter:"blur(8px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:At+50},children:i.jsxs("div",{"data-vg-id":"2e7833fb","data-source-path":"/src/components/ViewGateOverlay.tsx:4179",className:"vg-glassmorphism vg-animate-slide",style:{width:"600px",maxWidth:"90vw",maxHeight:"90vh",overflowY:"auto",background:"#ffffff",borderRadius:"24px",padding:"32px",boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.25)",display:"flex",flexDirection:"column",gap:"24px"},children:[i.jsxs("div",{"data-vg-id":"2e7833fc","data-source-path":"/src/components/ViewGateOverlay.tsx:4190",style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[i.jsx("h2",{"data-vg-id":"530b192","data-source-path":"/src/components/ViewGateOverlay.tsx:4191",style:{margin:0,fontSize:"20px",fontWeight:800,color:"#1e293b"},children:e==="es"?"Editar Comentario":"Edit Comment"}),i.jsx("button",{"data-vg-id":"5861c0fb","data-source-path":"/src/components/ViewGateOverlay.tsx:4194",onClick:()=>Ds(null),style:{background:"none",border:"none",cursor:"pointer",color:"#94a3b8"},children:i.jsx(kt,{"data-vg-id":"eec8c8db","data-source-path":"/src/components/ViewGateOverlay.tsx:4195",size:24})})]}),i.jsxs("div",{"data-vg-id":"2e783415","data-source-path":"/src/components/ViewGateOverlay.tsx:4199",style:{display:"flex",flexDirection:"column",gap:"16px"},children:[i.jsxs("div",{"data-vg-id":"2e783416","data-source-path":"/src/components/ViewGateOverlay.tsx:4200",children:[i.jsx("label",{"data-vg-id":"feec107a","data-source-path":"/src/components/ViewGateOverlay.tsx:4201",style:{display:"block",fontSize:"12px",fontWeight:700,color:"#64748b",marginBottom:"8px",textTransform:"uppercase",letterSpacing:"0.5px"},children:r.priority}),i.jsx("div",{"data-vg-id":"2e783418","data-source-path":"/src/components/ViewGateOverlay.tsx:4202",style:{display:"flex",gap:"8px"},children:["low","medium","high","urgent"].map(l=>i.jsx("button",{onClick:()=>y(l),style:{flex:1,padding:"10px 12px",borderRadius:"12px",fontSize:"13px",fontWeight:800,border:"2px solid",borderColor:F===l?l==="low"?"#10b981":l==="medium"?"#6366f1":l==="high"?"#f59e0b":"#ef4444":"#f1f5f9",backgroundColor:F===l?l==="low"?"#ecfdf5":l==="medium"?"#eef2ff":l==="high"?"#fffbeb":"#fef2f2":"white",color:F===l?l==="low"?"#059669":l==="medium"?"#4338ca":l==="high"?"#b45309":"#b91c1c":"#64748b",cursor:"pointer",transition:"all 0.2s",textTransform:"capitalize"},children:r[l]},l))})]}),i.jsxs("div",{"data-vg-id":"2e783419","data-source-path":"/src/components/ViewGateOverlay.tsx:4222",style:{marginBottom:"8px"},children:[i.jsx("label",{"data-vg-id":"feec107d","data-source-path":"/src/components/ViewGateOverlay.tsx:4223",style:{display:"block",fontSize:"12px",fontWeight:700,color:"#64748b",marginBottom:"8px",textTransform:"uppercase",letterSpacing:"0.5px"},children:r.focusAreas}),i.jsx("div",{"data-vg-id":"2e78341b","data-source-path":"/src/components/ViewGateOverlay.tsx:4224",style:{display:"flex",gap:"8px"},children:[{id:"frontend",label:r.frontend,icon:i.jsx(br,{"data-vg-id":"b806c349","data-source-path":"/src/components/ViewGateOverlay.tsx:4226",size:14}),color:"#10b981",bg:"#ecfdf5",border:"#d1fae5"},{id:"backend",label:r.backend,icon:i.jsx(He,{"data-vg-id":"b1e4c6d9","data-source-path":"/src/components/ViewGateOverlay.tsx:4227",size:14}),color:"#6366f1",bg:"#eef2ff",border:"#e0e7ff"},{id:"ux",label:r.ux,icon:i.jsx(Rt,{"data-vg-id":"ea069dab","data-source-path":"/src/components/ViewGateOverlay.tsx:4228",size:14}),color:"#d946ef",bg:"#fdf4ff",border:"#f5d0fe"}].filter(l=>l.id==="backend"?Hs:l.id==="ux"?k:!0).map(l=>{const h=vt.includes(l.id);return i.jsxs("button",{onClick:()=>{fo(h?vt.filter(p=>p!==l.id):[...vt,l.id])},style:{flex:1,padding:"10px 4px",borderRadius:"12px",fontSize:"12px",fontWeight:700,border:"2px solid",borderColor:h?l.color:"#f1f5f9",backgroundColor:h?l.bg:"white",color:h?l.color:"#64748b",cursor:"pointer",transition:"all 0.2s",display:"flex",alignItems:"center",justifyContent:"center",gap:"6px"},children:[l.icon,l.label]},l.id)})})]}),vt.includes("ux")&&i.jsxs("div",{"data-vg-id":"2e783434","data-source-path":"/src/components/ViewGateOverlay.tsx:4264",className:"vg-animate-slide",style:{padding:"16px",borderRadius:"16px",background:"#f8fafc",border:"1px solid #e2e8f0"},children:[i.jsxs("div",{"data-vg-id":"2e783435","data-source-path":"/src/components/ViewGateOverlay.tsx:4265",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"12px"},children:[i.jsxs("div",{"data-vg-id":"2e783436","data-source-path":"/src/components/ViewGateOverlay.tsx:4266",style:{display:"flex",alignItems:"center",gap:"6px"},children:[i.jsx(Er,{"data-vg-id":"d881659c","data-source-path":"/src/components/ViewGateOverlay.tsx:4267",size:14,style:{color:"#d946ef"}}),i.jsx("span",{"data-vg-id":"81620cd","data-source-path":"/src/components/ViewGateOverlay.tsx:4268",style:{fontSize:"11px",fontWeight:800,color:"#64748b",textTransform:"uppercase"},children:r.figmaLink})]}),i.jsxs("button",{"data-vg-id":"5861c136","data-source-path":"/src/components/ViewGateOverlay.tsx:4270",onClick:()=>Cr([...ot,{name:"",link:""}]),style:{background:"#fdf4ff",border:"1px solid #f5d0fe",color:"#d946ef",borderRadius:"8px",padding:"4px 10px",fontSize:"11px",fontWeight:800,cursor:"pointer"},children:["+ ",r.addLink]})]}),i.jsx("div",{"data-vg-id":"2e78343a","data-source-path":"/src/components/ViewGateOverlay.tsx:4277",style:{display:"flex",flexDirection:"column",gap:"8px"},children:ot.map((l,h)=>i.jsxs("div",{"data-vg-id":"2e78343b","data-source-path":"/src/components/ViewGateOverlay.tsx:4279",style:{display:"flex",gap:"8px"},children:[i.jsx("input",{"data-vg-id":"88e38e75","data-source-path":"/src/components/ViewGateOverlay.tsx:4280",type:"text",className:"vg-textarea",style:{padding:"8px 12px",fontSize:"12px",minHeight:"auto",borderRadius:"10px"},placeholder:r.figmaNamePlaceholder,value:l.name,onChange:p=>{const x=[...ot];x[h]&&(x[h].name=p.target.value,Cr(x))}}),i.jsx("input",{"data-vg-id":"88e38e8b","data-source-path":"/src/components/ViewGateOverlay.tsx:4291",type:"text",className:"vg-textarea",style:{padding:"8px 12px",fontSize:"12px",minHeight:"auto",borderRadius:"10px"},placeholder:r.figmaLinkPlaceholder,value:l.link,onChange:p=>{const x=[...ot];x[h]&&(x[h].link=p.target.value,Cr(x))}}),ot.length>1&&i.jsx("button",{"data-vg-id":"5861c150","data-source-path":"/src/components/ViewGateOverlay.tsx:4303",onClick:()=>Cr(ot.filter((p,x)=>x!==h)),style:{color:"#ef4444",background:"none",border:"none",cursor:"pointer"},children:i.jsx(Ir,{"data-vg-id":"45b44639","data-source-path":"/src/components/ViewGateOverlay.tsx:4304",size:16})})]},h))})]}),Hs&&vt.includes("backend")&&i.jsxs("div",{"data-vg-id":"2e783455","data-source-path":"/src/components/ViewGateOverlay.tsx:4315",className:"vg-animate-slide",style:{padding:"16px",borderRadius:"16px",background:"#f8fafc",border:"1px solid #e2e8f0"},children:[i.jsxs("div",{"data-vg-id":"2e783456","data-source-path":"/src/components/ViewGateOverlay.tsx:4316",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px"},children:[i.jsxs("div",{"data-vg-id":"2e783457","data-source-path":"/src/components/ViewGateOverlay.tsx:4317",style:{display:"flex",alignItems:"center",gap:"6px"},children:[i.jsx(He,{"data-vg-id":"b1e4c714","data-source-path":"/src/components/ViewGateOverlay.tsx:4318",size:14,style:{color:"#6366f1"}}),i.jsx("span",{"data-vg-id":"81620ee","data-source-path":"/src/components/ViewGateOverlay.tsx:4319",style:{fontSize:"11px",fontWeight:800,color:"#64748b",textTransform:"uppercase"},children:r.endpoint})]}),Ne.length>0&&i.jsxs("span",{"data-vg-id":"81620ef","data-source-path":"/src/components/ViewGateOverlay.tsx:4322",style:{fontSize:"10px",background:"#eef2ff",color:"#6366f1",padding:"2px 8px",borderRadius:"12px",fontWeight:700},children:[Ne.length," ",e==="es"?"seleccionados":"selected"]})]}),i.jsxs("button",{"data-vg-id":"5861c158","data-source-path":"/src/components/ViewGateOverlay.tsx:4327",onClick:()=>z(!0),style:{width:"100%",padding:"12px 16px",fontSize:"14px",borderRadius:"12px",background:"white",border:"1px solid #e2e8f0",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",textAlign:"left",color:Ne.length>0?"#0f172a":"#94a3b8"},children:[i.jsx("div",{"data-vg-id":"2e7836fc","data-source-path":"/src/components/ViewGateOverlay.tsx:4331",style:{display:"flex",gap:"4px",overflow:"hidden"},children:Ne.length>0?Ne.slice(0,2).map(l=>i.jsx("span",{"data-vg-id":"8162392","data-source-path":"/src/components/ViewGateOverlay.tsx:4333",style:{background:"#eef2ff",color:"#6366f1",padding:"1px 6px",borderRadius:"4px",fontSize:"11px",fontWeight:600},children:l.split("|").pop()},l)).concat(Ne.length>2?[i.jsxs("span",{"data-vg-id":"8162393","data-source-path":"/src/components/ViewGateOverlay.tsx:4333",children:["+",Ne.length-2]},"plus")]:[]):r.selectEndpoint}),i.jsx(Xo,{"data-vg-id":"1cd393cb","data-source-path":"/src/components/ViewGateOverlay.tsx:4336",size:14,style:{color:"#64748b"}})]})]}),i.jsxs("div",{"data-vg-id":"2e783700","data-source-path":"/src/components/ViewGateOverlay.tsx:4341",children:[i.jsx("label",{"data-vg-id":"feec1364","data-source-path":"/src/components/ViewGateOverlay.tsx:4342",style:{display:"block",fontSize:"12px",fontWeight:700,color:"#64748b",marginBottom:"8px",textTransform:"uppercase",letterSpacing:"0.5px"},children:e==="es"?"Mensaje":"Message"}),i.jsx("textarea",{className:"vg-textarea",value:Lc,onChange:l=>Tc(l.target.value),rows:5,style:{minHeight:"120px",fontSize:"15px"}})]})]}),i.jsxs("div",{"data-vg-id":"2e783702","data-source-path":"/src/components/ViewGateOverlay.tsx:4353",style:{display:"flex",justifyContent:"flex-end",gap:"12px",marginTop:"16px",paddingTop:"24px",borderTop:"1px solid #f1f5f9"},children:[i.jsx("button",{"data-vg-id":"5861c400","data-source-path":"/src/components/ViewGateOverlay.tsx:4354",className:"vg-button-ghost",style:{padding:"12px 24px",fontSize:"14px",borderRadius:"12px",color:"#64748b",fontWeight:700},onClick:()=>{Ds(null),$A([])},children:r.cancel}),i.jsx("button",{className:"vg-button-primary vg-animate-pop",style:{padding:"12px 32px",fontSize:"15px",borderRadius:"12px",background:"var(--vg-primary-gradient)",fontWeight:800,boxShadow:"0 10px 25px -5px rgba(99, 102, 241, 0.45)",opacity:ks?.7:1,cursor:ks?"not-allowed":"pointer"},disabled:ks,onClick:async()=>{Oc(!0);try{(await fetch(`${n}/api/annotations/${Et}`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:tA?`Bearer ${tA}`:"","x-api-key":s||""},body:JSON.stringify({message:Lc,priority:F,focusAreas:vt,figmaReference:ot,backendEndpoints:Ne})})).ok&&(Ds(null),Os(),A(r.updateSuccess,"success"))}catch{}finally{Oc(!1)}},children:ks?"...":r.save})]})]})})]})})};function ao(t,A,e){if(!A.endsWith(".tsx")&&!A.endsWith(".jsx")||A.includes("node_modules"))return t;const r=g=>g.replace(/\\/g,"/"),s=r(A).replace(r(e),""),n=g=>{let d=0;for(let B=0;B<g.length;B++)d=Math.imul(31,d)+g.charCodeAt(B)|0;return(d>>>0).toString(16)};let o=0;return t.split(`
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
${N.rect.left}px ${N.rect.top}px,
|
|
16
|
+
${N.rect.right}px ${N.rect.top}px,
|
|
17
|
+
${N.rect.right}px ${N.rect.bottom}px,
|
|
18
|
+
${N.rect.left}px ${N.rect.bottom}px,
|
|
19
|
+
${N.rect.left}px ${N.rect.top}px
|
|
20
|
+
)`:"none",zIndex:bn}}),A&&N&&!K&&!S&&a.jsx("div",{className:"vg-selection-pulse",style:{top:N.rect.top-4,left:N.rect.left-4,width:N.rect.width+8,height:N.rect.height+8,zIndex:wn},children:a.jsxs("div",{className:"vg-selection-label",style:{...N.rect.top<60?N.rect.bottom>window.innerHeight-60?{top:"8px",bottom:"auto"}:{top:"100%",marginTop:"8px",bottom:"auto"}:{top:"-40px",bottom:"auto"},...N.rect.left+200>window.innerWidth?{left:"auto",right:"0"}:{left:"0",right:"auto"}},children:[a.jsx(bo,{"data-vg-id":"f840c8d3","data-source-path":"/src/components/ViewGateOverlay.tsx:2579",size:16}),a.jsxs("div",{"data-vg-id":"17fbf9d","data-source-path":"/src/components/ViewGateOverlay.tsx:2580",style:{display:"flex",flexDirection:"column"},children:[a.jsx("span",{"data-vg-id":"52d76c69","data-source-path":"/src/components/ViewGateOverlay.tsx:2581",style:{fontWeight:700},children:o.selectToComment}),a.jsxs("span",{"data-vg-id":"52d76c7f","data-source-path":"/src/components/ViewGateOverlay.tsx:2582",style:{fontSize:"10px",opacity:.8,fontFamily:"monospace"},children:[Math.round(N.rect.width)," × ",Math.round(N.rect.height)]})]})]})}),!D&&(A||Z||K)&&a.jsx("div",{"data-vg-id":"17fbfb5","data-source-path":"/src/components/ViewGateOverlay.tsx:2592",className:"vg-animate-fade",style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(15, 23, 42, 0.6)",backdropFilter:"blur(12px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:$e},children:a.jsxs("div",{"data-vg-id":"17fbfb6","data-source-path":"/src/components/ViewGateOverlay.tsx:2597",className:"vg-glassmorphism vg-animate-slide",style:{width:"90%",maxWidth:"440px",boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.4)",display:"flex",flexDirection:"column",overflow:"hidden",padding:"48px 32px"},children:[a.jsxs("div",{"data-vg-id":"17fbfb7","data-source-path":"/src/components/ViewGateOverlay.tsx:2606",style:{textAlign:"center",marginBottom:"32px"},children:[a.jsx("div",{"data-vg-id":"17fbfb8","data-source-path":"/src/components/ViewGateOverlay.tsx:2607",style:{width:"64px",height:"64px",background:"var(--vg-primary-gradient)",borderRadius:"20px",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 24px",color:"white",boxShadow:"0 8px 20px -4px var(--vg-primary)",animation:"pulse 2s infinite"},children:a.jsx(Cs,{"data-vg-id":"422a5ee3","data-source-path":"/src/components/ViewGateOverlay.tsx:2613",size:32})}),a.jsx("h2",{"data-vg-id":"efa6bb85","data-source-path":"/src/components/ViewGateOverlay.tsx:2615",style:{margin:"0 0 12px 0",fontSize:"24px",fontWeight:800,color:"#0f172a",letterSpacing:"-0.025em"},children:s==="es"?"ViewGate Protegido":"ViewGate Protected"}),a.jsx("p",{"data-vg-id":"1000defc","data-source-path":"/src/components/ViewGateOverlay.tsx:2618",style:{margin:0,color:"#64748b",fontSize:"15px",lineHeight:1.6},children:s==="es"?"Ingresa tu Clave de Acceso Semanal para continuar.":"Enter your project Weekly Access Key to continue."})]}),a.jsxs("form",{"data-vg-id":"a260accd","data-source-path":"/src/components/ViewGateOverlay.tsx:2625",onSubmit:Pn,style:{width:"100%"},children:[a.jsx("div",{"data-vg-id":"17fbfbd","data-source-path":"/src/components/ViewGateOverlay.tsx:2626",style:{position:"relative",marginBottom:"24px"},children:a.jsx("input",{autoFocus:!0,type:"password",value:Xe,onChange:r=>or(r.target.value),placeholder:s==="es"?"Pega tu clave aquí...":"Paste your key here...",style:{width:"100%",padding:"16px",borderRadius:"12px",border:"2px solid #e2e8f0",fontSize:"15px",outline:"none",transition:"all 0.2s",backgroundColor:"rgba(255, 255, 255, 0.8)",color:"#1e293b"},onFocus:r=>{r.target.style.borderColor="var(--vg-primary)",r.target.style.boxShadow="0 0 0 4px rgba(99, 102, 241, 0.1)"},onBlur:r=>{r.target.style.borderColor="#e2e8f0",r.target.style.boxShadow="none"}})}),a.jsxs("button",{type:"submit",disabled:Fa||!Xe.trim(),className:"vg-button-primary",style:{width:"100%",padding:"16px",display:"flex",alignItems:"center",justifyContent:"center",gap:"12px",fontSize:"16px",fontWeight:700,opacity:Fa||!Xe.trim()?.7:1,boxShadow:"0 10px 15px -3px rgba(99, 102, 241, 0.3)"},children:[Fa?a.jsx(Ia,{"data-vg-id":"cb81c845","data-source-path":"/src/components/ViewGateOverlay.tsx:2673",size:20,className:"vg-animate-spin"}):a.jsx(vo,{"data-vg-id":"d69f9766","data-source-path":"/src/components/ViewGateOverlay.tsx:2675",size:20}),s==="es"?"Desbloquear":"Unlock Now"]})]}),a.jsx("div",{"data-vg-id":"17fbfd5","data-source-path":"/src/components/ViewGateOverlay.tsx:2681",style:{margin:"32px 0 24px",height:"1px",background:"linear-gradient(to right, transparent, #e2e8f0, transparent)"}}),a.jsx("button",{onClick:()=>{fe(null),ne(!1),q(!1)},className:"vg-button-ghost",style:{width:"100%",padding:"12px",fontSize:"14px",color:"#94a3b8"},children:s==="es"?"Cerrar ViewGate":"Close ViewGate"}),a.jsx("div",{"data-vg-id":"17fbfd6","data-source-path":"/src/components/ViewGateOverlay.tsx:2695",style:{marginTop:"24px",textAlign:"center"},children:a.jsx("p",{"data-vg-id":"1000df18","data-source-path":"/src/components/ViewGateOverlay.tsx:2696",style:{fontSize:"12px",color:"#94a3b8",margin:0,lineHeight:1.5},children:s==="es"?"Encuentra tu clave en Dashboard > Proyectos":"Find your key in Dashboard > Projects"})})]})}),K&&he&&a.jsx("div",{"data-vg-id":"17fbfd8","data-source-path":"/src/components/ViewGateOverlay.tsx:2709",className:"vg-animate-fade",style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(15, 23, 42, 0.4)",backdropFilter:"blur(8px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:$e},children:a.jsxs("div",{"data-vg-id":"17fbfd9","data-source-path":"/src/components/ViewGateOverlay.tsx:2714",className:"vg-glassmorphism vg-animate-slide",style:{width:"90%",maxWidth:"700px",maxHeight:"92vh",boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.25)",display:"flex",flexDirection:"column",overflow:"hidden"},children:[a.jsxs("div",{"data-vg-id":"17fbfda","data-source-path":"/src/components/ViewGateOverlay.tsx:2724",style:{padding:"24px 24px 16px",textAlign:"center",borderBottom:"1px solid rgba(0,0,0,0.05)",flexShrink:0,position:"relative"},children:[he&&a.jsxs("div",{"data-vg-id":"17fbfdb","data-source-path":"/src/components/ViewGateOverlay.tsx:2726",className:"vg-profile-info-card",style:{position:"absolute",top:"20px",right:"20px",display:"flex",alignItems:"center",gap:"8px",padding:"4px 8px",borderRadius:"20px",background:"white",border:"1px solid #e2e8f0",boxShadow:"0 2px 6px rgba(0,0,0,0.05)",zIndex:10},children:[a.jsx("span",{"data-vg-id":"52d76ca7","data-source-path":"/src/components/ViewGateOverlay.tsx:2743",style:{fontSize:"10px",fontWeight:800,color:"#64748b",textTransform:"uppercase"},children:he.name.split(" ")[0]}),he.avatar?a.jsx("img",{"data-vg-id":"a398780","data-source-path":"/src/components/ViewGateOverlay.tsx:2747",src:he.avatar,style:{width:"24px",height:"24px",borderRadius:"50%"},alt:""}):a.jsx("div",{"data-vg-id":"17fbff3","data-source-path":"/src/components/ViewGateOverlay.tsx:2749",style:{width:"24px",height:"24px",borderRadius:"50%",background:"#6366f1",color:"white",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"10px",fontWeight:700},children:he.name?.[0]})]}),a.jsx("div",{"data-vg-id":"17fbff4","data-source-path":"/src/components/ViewGateOverlay.tsx:2755",style:{width:"40px",height:"40px",background:"var(--vg-primary-gradient)",borderRadius:"10px",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 12px",color:"white",boxShadow:"0 4px 12px rgba(99, 102, 241, 0.2)"},children:a.jsx(Ht,{"data-vg-id":"10c62242","data-source-path":"/src/components/ViewGateOverlay.tsx:2760",size:20})}),a.jsx("h2",{"data-vg-id":"efa6bbc1","data-source-path":"/src/components/ViewGateOverlay.tsx:2762",style:{margin:"0 0 4px 0",fontSize:"20px",fontWeight:800,color:"#0f172a"},children:o.feedbackHeader}),a.jsx("p",{"data-vg-id":"1000df38","data-source-path":"/src/components/ViewGateOverlay.tsx:2763",style:{margin:0,color:"#64748b",fontSize:"14px"},children:o.feedbackSubheader})]}),a.jsxs("div",{"data-vg-id":"17fbff8","data-source-path":"/src/components/ViewGateOverlay.tsx:2766",className:"vg-custom-scrollbar",style:{flex:1,overflowY:"auto",padding:"24px",display:"flex",flexDirection:"column"},children:[a.jsx("style",{"data-vg-id":"49ad759","data-source-path":"/src/components/ViewGateOverlay.tsx:2773",children:`
|
|
21
|
+
.vg-crop-container {
|
|
22
|
+
animation: vgScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
|
|
23
|
+
max-width: 100%;
|
|
24
|
+
border: 1px solid rgba(226, 232, 240, 0.8);
|
|
25
|
+
margin-top: 20px;
|
|
26
|
+
border-radius: 16px;
|
|
27
|
+
overflow: hidden;
|
|
28
|
+
background: #ffffff;
|
|
29
|
+
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
|
|
30
|
+
min-height: 200px;
|
|
31
|
+
position: relative;
|
|
32
|
+
}
|
|
33
|
+
@keyframes vgScaleIn {
|
|
34
|
+
from { opacity: 0; transform: scale(0.98); }
|
|
35
|
+
to { opacity: 1; transform: scale(1); }
|
|
36
|
+
}
|
|
37
|
+
`}),a.jsx("div",{"data-vg-id":"17fbffa","data-source-path":"/src/components/ViewGateOverlay.tsx:2792",style:{marginBottom:"24px",display:"flex",justifyContent:"center",width:"100%"},children:a.jsxs("div",{"data-vg-id":"17fbffb","data-source-path":"/src/components/ViewGateOverlay.tsx:2798",className:"vg-viewfinder-container",style:{width:"100%",backgroundColor:"#f8fafc",borderRadius:"16px",overflow:"hidden",position:"relative",border:"1px solid rgba(0,0,0,0.05)",display:"flex",alignItems:"center",justifyContent:"center",minHeight:z?"auto":"260px",maxHeight:"420px",userSelect:"none",boxShadow:"inset 0 2px 4px rgba(0,0,0,0.02)",transition:"all 0.3s ease-in-out"},children:[C&&a.jsx("img",{"data-vg-id":"a39879f","data-source-path":"/src/components/ViewGateOverlay.tsx:2815",src:C,onLoad:()=>V(!0),style:{display:"none"}}),z&&C?a.jsx("img",{"data-vg-id":"a3987a0","data-source-path":"/src/components/ViewGateOverlay.tsx:2823",src:C,alt:"Capture preview",className:"vg-animate-fade",style:{maxWidth:"100%",maxHeight:"420px",height:"auto",objectFit:"contain",display:"block",transition:"all 0.4s ease",filter:Ke?"none":"grayscale(1) opacity(0.4)"}}):a.jsx("div",{"data-vg-id":"17fc013","data-source-path":"/src/components/ViewGateOverlay.tsx:2838",className:"vg-skeleton-vercel",style:{width:"100%",height:"260px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"16px"},children:a.jsx("style",{"data-vg-id":"49ad774","data-source-path":"/src/components/ViewGateOverlay.tsx:2846",children:`
|
|
38
|
+
.vg-skeleton-vercel {
|
|
39
|
+
background: #e2e8f0;
|
|
40
|
+
background-image: linear-gradient(
|
|
41
|
+
to right,
|
|
42
|
+
#e2e8f0 0%,
|
|
43
|
+
#cbd5e1 20%,
|
|
44
|
+
#94a3b8 40%,
|
|
45
|
+
#cbd5e1 60%,
|
|
46
|
+
#e2e8f0 100%
|
|
47
|
+
);
|
|
48
|
+
background-size: 200% 100%;
|
|
49
|
+
animation: vgVercelShimmer 1.8s infinite linear;
|
|
50
|
+
}
|
|
51
|
+
@keyframes vgVercelShimmer {
|
|
52
|
+
0% { background-position: 200% 0; }
|
|
53
|
+
100% { background-position: -200% 0; }
|
|
54
|
+
}
|
|
55
|
+
.vg-animate-fade {
|
|
56
|
+
animation: vgFadeIn 0.5s ease-out forwards;
|
|
57
|
+
}
|
|
58
|
+
@keyframes vgFadeIn {
|
|
59
|
+
from { opacity: 0; transform: scale(0.99); }
|
|
60
|
+
to { opacity: 1; transform: scale(1); }
|
|
61
|
+
}
|
|
62
|
+
`})}),a.jsxs("div",{"data-vg-id":"17fc015","data-source-path":"/src/components/ViewGateOverlay.tsx:2875",style:{position:"absolute",bottom:"12px",right:"12px",display:"flex",alignItems:"center",gap:"8px",zIndex:10,padding:"6px 12px",backgroundColor:"rgba(255, 255, 255, 0.9)",backdropFilter:"blur(8px)",borderRadius:"50px",boxShadow:"0 4px 12px rgba(0,0,0,0.1)",border:"1px solid rgba(0,0,0,0.05)",cursor:"pointer",transition:"all 0.2s ease"},onClick:r=>{r.stopPropagation(),ir(!Ke)},children:[a.jsx("div",{"data-vg-id":"17fc016","data-source-path":"/src/components/ViewGateOverlay.tsx:2895",style:{width:"28px",height:"16px",backgroundColor:Ke?"#6366f1":"#cbd5e1",borderRadius:"10px",position:"relative",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"},children:a.jsx("div",{"data-vg-id":"17fc017","data-source-path":"/src/components/ViewGateOverlay.tsx:2905",style:{width:"12px",height:"12px",backgroundColor:"white",borderRadius:"50%",position:"absolute",top:"2px",left:Ke?"14px":"2px",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",boxShadow:"0 1px 2px rgba(0,0,0,0.1)"}})}),a.jsx("span",{"data-vg-id":"52d76ce3","data-source-path":"/src/components/ViewGateOverlay.tsx:2917",style:{fontSize:"11px",fontWeight:700,color:Ke?"#1e293b":"#64748b",textTransform:"uppercase",letterSpacing:"0.05em"},children:s==="es"?"Captura":"Capture"})]})]})}),a.jsx("textarea",{className:"vg-textarea",value:we,onChange:r=>je(r.target.value),rows:4,placeholder:o.placeholder,autoFocus:!0,style:{fontSize:"15px",padding:"16px",marginBottom:"24px",minHeight:"120px"}}),a.jsxs("div",{"data-vg-id":"17fc019","data-source-path":"/src/components/ViewGateOverlay.tsx:2941",style:{marginBottom:"24px"},children:[a.jsx("label",{"data-vg-id":"18bd4b57","data-source-path":"/src/components/ViewGateOverlay.tsx:2942",style:{fontSize:"12px",fontWeight:700,color:"#64748b",marginBottom:"8px",display:"block"},children:o.priority}),a.jsx("div",{"data-vg-id":"17fc030","data-source-path":"/src/components/ViewGateOverlay.tsx:2945",style:{display:"flex",gap:"8px"},children:["low","medium","high","urgent"].map(r=>a.jsx("button",{onClick:()=>Pe(r),style:{flex:1,padding:"12px 6px",borderRadius:"8px",fontSize:"13px",fontWeight:700,border:"1px solid",borderColor:W===r?r==="low"?"#10b981":r==="medium"?"#6366f1":r==="high"?"#f59e0b":"#ef4444":"#e2e8f0",backgroundColor:W===r?r==="low"?"#ecfdf5":r==="medium"?"#eef2ff":r==="high"?"#fffbeb":"#fef2f2":"white",color:W===r?r==="low"?"#059669":r==="medium"?"#4338ca":r==="high"?"#b45309":"#b91c1c":"#64748b",cursor:"pointer",transition:"all 0.2s",textTransform:"uppercase"},children:o[r]},r))})]}),a.jsxs("div",{"data-vg-id":"17fc031","data-source-path":"/src/components/ViewGateOverlay.tsx:2972",style:{marginBottom:"24px"},children:[a.jsx("label",{"data-vg-id":"18bd4b6f","data-source-path":"/src/components/ViewGateOverlay.tsx:2973",style:{fontSize:"12px",fontWeight:700,color:"#64748b",marginBottom:"8px",display:"block"},children:o.focusAreas}),a.jsx("div",{"data-vg-id":"17fc033","data-source-path":"/src/components/ViewGateOverlay.tsx:2976",style:{display:"flex",gap:"8px",marginBottom:R.length>0?"12px":"0"},children:[{id:"frontend",label:o.frontend,icon:a.jsx(Ft,{"data-vg-id":"377c1767","data-source-path":"/src/components/ViewGateOverlay.tsx:2978",size:14}),color:"#10b981",bg:"#ecfdf5",border:"#d1fae5"},{id:"backend",label:o.backend,icon:a.jsx(Be,{"data-vg-id":"7117e5f9","data-source-path":"/src/components/ViewGateOverlay.tsx:2979",size:14}),color:"#6366f1",bg:"#eef2ff",border:"#e0e7ff"},{id:"ux",label:o.ux,icon:a.jsx(kt,{"data-vg-id":"de4247be","data-source-path":"/src/components/ViewGateOverlay.tsx:2980",size:14}),color:"#d946ef",bg:"#fdf4ff",border:"#f5d0fe"}].filter(r=>r.id==="backend"?oa:r.id==="ux"?ct:!0).map(r=>{const c=R.includes(r.id);return a.jsxs("button",{onClick:()=>{c?F(R.filter(d=>d!==r.id)):(F([...R,r.id]),r.id==="backend"&&Ha())},style:{flex:1,padding:"10px 4px",borderRadius:"8px",fontSize:"12px",fontWeight:700,border:"1px solid",borderColor:c?r.color:"#e2e8f0",backgroundColor:c?r.bg:"white",color:c?r.color:"#64748b",cursor:"pointer",transition:"all 0.2s",display:"flex",alignItems:"center",justifyContent:"center",gap:"6px"},children:[r.icon,r.label]},r.id)})}),R.includes("ux")&&a.jsxs("div",{"data-vg-id":"17fc037","data-source-path":"/src/components/ViewGateOverlay.tsx:3027",className:"vg-animate-slide",style:{marginBottom:"16px"},children:[a.jsxs("div",{"data-vg-id":"17fc038","data-source-path":"/src/components/ViewGateOverlay.tsx:3028",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px"},children:[a.jsxs("div",{"data-vg-id":"17fc039","data-source-path":"/src/components/ViewGateOverlay.tsx:3029",style:{display:"flex",alignItems:"center",gap:"6px"},children:[a.jsx(Bt,{"data-vg-id":"38884e4a","data-source-path":"/src/components/ViewGateOverlay.tsx:3030",size:14,style:{color:"#d946ef"}}),a.jsx("span",{"data-vg-id":"52d76d1b","data-source-path":"/src/components/ViewGateOverlay.tsx:3031",style:{fontSize:"11px",fontWeight:800,color:"#64748b",textTransform:"uppercase",letterSpacing:"0.05em"},children:o.figmaLink})]}),a.jsxs("button",{"data-vg-id":"23e21fb4","data-source-path":"/src/components/ViewGateOverlay.tsx:3035",onClick:()=>Ee([...ie,{name:"",link:""}]),style:{background:"rgba(217, 70, 239, 0.1)",border:"1px solid rgba(217, 70, 239, 0.2)",color:"#d946ef",borderRadius:"6px",padding:"4px 8px",fontSize:"10px",fontWeight:800,display:"flex",alignItems:"center",gap:"4px",cursor:"pointer",transition:"all 0.2s"},onMouseEnter:r=>r.currentTarget.style.background="rgba(217, 70, 239, 0.15)",onMouseLeave:r=>r.currentTarget.style.background="rgba(217, 70, 239, 0.1)",children:[a.jsx(wo,{"data-vg-id":"11a60cad","data-source-path":"/src/components/ViewGateOverlay.tsx:3054",size:10})," ",o.addLink]})]}),a.jsx("div",{"data-vg-id":"17fc053","data-source-path":"/src/components/ViewGateOverlay.tsx:3058",style:{display:"flex",flexDirection:"column",gap:"8px"},children:ie.map((r,c)=>a.jsxs("div",{"data-vg-id":"17fc054","data-source-path":"/src/components/ViewGateOverlay.tsx:3060",style:{display:"flex",gap:"6px",alignItems:"flex-start"},className:"vg-animate-slide",children:[a.jsxs("div",{"data-vg-id":"17fc055","data-source-path":"/src/components/ViewGateOverlay.tsx:3061",style:{flex:1,display:"flex",flexDirection:"column",gap:"4px"},children:[a.jsx("input",{"data-vg-id":"a993bafd","data-source-path":"/src/components/ViewGateOverlay.tsx:3062",type:"text",className:"vg-textarea",style:{padding:"8px 10px",fontSize:"11px",minHeight:"auto",borderRadius:"8px",border:"1px solid rgba(0,0,0,0.05)"},placeholder:o.figmaNamePlaceholder,value:r.name,onChange:d=>{const f=[...ie];f[c]&&(f[c].name=d.target.value,Ee(f))}}),a.jsx("input",{"data-vg-id":"a993bafe","data-source-path":"/src/components/ViewGateOverlay.tsx:3076",type:"text",className:"vg-textarea",style:{padding:"8px 10px",fontSize:"11px",minHeight:"auto",borderRadius:"8px",border:"1px solid rgba(0,0,0,0.05)"},placeholder:o.figmaLinkPlaceholder,value:r.link,onChange:d=>{const f=[...ie];f[c]&&(f[c].link=d.target.value,Ee(f))}})]}),ie.length>1&&a.jsx("button",{"data-vg-id":"23e21fbb","data-source-path":"/src/components/ViewGateOverlay.tsx:3092",onClick:()=>Ee(ie.filter((d,f)=>f!==c)),style:{background:"rgba(239, 68, 68, 0.05)",border:"1px solid rgba(239, 68, 68, 0.1)",color:"#ef4444",borderRadius:"8px",padding:"10px",cursor:"pointer",transition:"all 0.2s",display:"flex",alignItems:"center",justifyContent:"center"},onMouseEnter:d=>d.currentTarget.style.background="rgba(239, 68, 68, 0.1)",onMouseLeave:d=>d.currentTarget.style.background="rgba(239, 68, 68, 0.05)",children:a.jsx(Ut,{"data-vg-id":"e1375de9","data-source-path":"/src/components/ViewGateOverlay.tsx:3109",size:14})})]},c))})]}),Ae.length>0&&R.includes("backend")&&a.jsxs("div",{"data-vg-id":"17fc06f","data-source-path":"/src/components/ViewGateOverlay.tsx:3121",className:"vg-animate-slide",style:{marginBottom:"16px"},children:[a.jsxs("div",{"data-vg-id":"17fc070","data-source-path":"/src/components/ViewGateOverlay.tsx:3122",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px"},children:[a.jsxs("div",{"data-vg-id":"17fc071","data-source-path":"/src/components/ViewGateOverlay.tsx:3123",style:{display:"flex",alignItems:"center",gap:"6px"},children:[a.jsx(Be,{"data-vg-id":"7117e636","data-source-path":"/src/components/ViewGateOverlay.tsx:3124",size:14,style:{color:"#6366f1"}}),a.jsx("span",{"data-vg-id":"52d76d3e","data-source-path":"/src/components/ViewGateOverlay.tsx:3125",style:{fontSize:"11px",fontWeight:700,color:"#64748b"},children:o.endpoint})]}),_.length>0&&a.jsxs("span",{"data-vg-id":"52d76d3f","data-source-path":"/src/components/ViewGateOverlay.tsx:3128",style:{fontSize:"10px",background:"#eef2ff",color:"#6366f1",padding:"2px 8px",borderRadius:"12px",fontWeight:700},children:[_.length," ",s==="es"?"seleccionados":"selected"]})]}),a.jsxs("button",{"data-vg-id":"23e21fd8","data-source-path":"/src/components/ViewGateOverlay.tsx:3134",onClick:()=>Y(!0),className:"vg-input-like-button",style:{width:"100%",padding:"12px 16px",fontSize:"13px",borderRadius:"12px",background:"#f8fafc",border:"1px solid #e2e8f0",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",transition:"all 0.2s",textAlign:"left",color:_.length>0?"#0f172a":"#94a3b8"},children:[a.jsx("div",{"data-vg-id":"17fc076","data-source-path":"/src/components/ViewGateOverlay.tsx:3153",style:{display:"flex",gap:"4px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:_.length>0?_.slice(0,2).map(r=>{const c=r.split("|"),d=c.length>1?c[0]:"",f=c.length>1?c[1]:r;return a.jsxs("span",{"data-vg-id":"52d76d42","data-source-path":"/src/components/ViewGateOverlay.tsx:3160",style:{background:"rgba(99, 102, 241, 0.1)",color:"#6366f1",padding:"1px 6px",borderRadius:"4px",fontSize:"11px",fontWeight:600},children:[d&&a.jsx("span",{"data-vg-id":"8161c0f","data-source-path":"/src/components/ViewGateOverlay.tsx:3168",style:{opacity:.6,marginRight:"4px"},children:d}),(f||"").split("/").pop()||f]},r)}).concat(_.length>2?[a.jsxs("span",{"data-vg-id":"8161c10","data-source-path":"/src/components/ViewGateOverlay.tsx:3172",children:["+",_.length-2]},"more")]:[]):o.selectEndpoint}),a.jsx(js,{"data-vg-id":"1cd38c48","data-source-path":"/src/components/ViewGateOverlay.tsx:3175",size:14,style:{color:"#64748b"}})]})]})]})]}),a.jsxs("div",{"data-vg-id":"2e782f7d","data-source-path":"/src/components/ViewGateOverlay.tsx:3184",style:{padding:"16px 24px 24px",borderTop:"1px solid rgba(0,0,0,0.05)",display:"flex",gap:"12px",flexShrink:0,backgroundColor:"rgba(255,255,255,0.02)",backdropFilter:"blur(2px)"},children:[a.jsx("button",{onClick:()=>{g||(fe(null),ne(!1))},className:"vg-button-ghost",disabled:g,style:{flex:1,padding:"12px"},children:o.cancel}),a.jsx("button",{onClick:Dn,className:"vg-button-primary",disabled:g||!we.trim()||R.includes("backend")&&_.length===0||R.includes("ux")&&ie.some(r=>!r.name.trim()||!r.link.trim()),style:{flex:2,opacity:g||!we.trim()||R.includes("backend")&&_.length===0||R.includes("ux")&&ie.some(r=>!r.name.trim()||!r.link.trim())?.6:1,cursor:g||!we.trim()||R.includes("backend")&&_.length===0||R.includes("ux")&&ie.some(r=>!r.name.trim()||!r.link.trim())?"not-allowed":"pointer"},children:a.jsxs("div",{"data-vg-id":"2e782f7e","data-source-path":"/src/components/ViewGateOverlay.tsx:3221",style:{display:"flex",alignItems:"center",gap:"8px"},children:[g?a.jsx("div",{"data-vg-id":"2e782f7f","data-source-path":"/src/components/ViewGateOverlay.tsx:3222",className:"vg-spinner",style:{width:"16px",height:"16px",borderWidth:"2px"}}):a.jsx(ko,{"data-vg-id":"dbae0973","data-source-path":"/src/components/ViewGateOverlay.tsx:3222",size:18}),a.jsx("span",{"data-vg-id":"8161c16","data-source-path":"/src/components/ViewGateOverlay.tsx:3223",children:g?o.submitting:o.sendFeedback||"Send Comment"})]})})]})]})}),Z&&a.jsx("div",{"data-vg-id":"2e782f82","data-source-path":"/src/components/ViewGateOverlay.tsx:3234",className:"vg-animate-fade",style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(15, 23, 42, 0.6)",backdropFilter:"blur(4px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:$e},children:a.jsxs("div",{"data-vg-id":"2e782f83","data-source-path":"/src/components/ViewGateOverlay.tsx:3240",className:"vg-glassmorphism vg-animate-slide",style:{padding:"32px",width:"820px",maxHeight:"85vh",display:"flex",flexDirection:"column",transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)"},children:[a.jsxs("div",{"data-vg-id":"2e782f99","data-source-path":"/src/components/ViewGateOverlay.tsx:3245",style:{display:"flex",flexDirection:"column",gap:"16px",marginBottom:"24px"},children:[a.jsxs("div",{"data-vg-id":"2e782f9a","data-source-path":"/src/components/ViewGateOverlay.tsx:3246",style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[a.jsx("h2",{"data-vg-id":"530ad30","data-source-path":"/src/components/ViewGateOverlay.tsx:3247",style:{margin:0,fontSize:"20px",fontWeight:800,color:"#0f172a",whiteSpace:"nowrap"},children:Se?o.commentDetails:o.annotations}),a.jsxs("div",{"data-vg-id":"2e782f9c","data-source-path":"/src/components/ViewGateOverlay.tsx:3250",style:{display:"flex",alignItems:"center",gap:"12px"},children:[he?a.jsxs("div",{"data-vg-id":"2e782f9d","data-source-path":"/src/components/ViewGateOverlay.tsx:3252",style:{display:"flex",alignItems:"center",gap:"8px",padding:"4px 12px",background:"rgba(99, 102, 241, 0.1)",borderRadius:"20px"},children:[he.avatar?a.jsx("img",{"data-vg-id":"3cf759d0","data-source-path":"/src/components/ViewGateOverlay.tsx:3254",src:he.avatar,style:{width:"20px",height:"20px",borderRadius:"50%"},alt:""}):a.jsx("div",{"data-vg-id":"2e782f9f","data-source-path":"/src/components/ViewGateOverlay.tsx:3256",style:{width:"20px",height:"20px",borderRadius:"50%",background:"#6366f1",color:"white",fontSize:"10px",display:"flex",alignItems:"center",justifyContent:"center"},children:he.name?.[0]}),a.jsx("span",{"data-vg-id":"8161c35","data-source-path":"/src/components/ViewGateOverlay.tsx:3260",style:{fontSize:"12px",fontWeight:600,color:"#4338ca"},children:he.name})]}):a.jsx("div",{"data-vg-id":"2e782fa1","data-source-path":"/src/components/ViewGateOverlay.tsx:3267",style:{fontSize:"12px",color:"#64748b",fontWeight:600},children:s==="es"?"Sin usuario":"No user selected"}),a.jsx("button",{className:"vg-button-ghost",style:{padding:"8px",borderRadius:"50%"},onClick:()=>{q(!1),Wa(null),la(null),ue("all")},children:a.jsx(jt,{"data-vg-id":"eec8c469","data-source-path":"/src/components/ViewGateOverlay.tsx:3276",size:20})})]})]}),a.jsx("div",{"data-vg-id":"2e782fb8","data-source-path":"/src/components/ViewGateOverlay.tsx:3280",style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center",width:"100%"},children:(()=>{const r=Array.isArray(M)?M:[],c=Se?pt.find(v=>v.annotations?.some(X=>X._id===Se)):null,f=(c?c.annotations:r).filter(v=>v.status!=="completed"&&v.status!=="done"),b=f.filter(v=>v.status!=="ready_for_review").length,O=f.filter(v=>v.status==="ready_for_review").length,k=f.length;return k<=0?k===0?null:a.jsxs("div",{"data-vg-id":"2e782fb9","data-source-path":"/src/components/ViewGateOverlay.tsx:3294",style:{display:"flex",gap:"8px",opacity:.9},children:[b>0&&a.jsxs("div",{"data-vg-id":"2e782fba","data-source-path":"/src/components/ViewGateOverlay.tsx:3296",className:"vg-badge",style:{background:"#fff7ed",color:"#c2410c",border:"1px solid #ffedd5",fontSize:"11px",padding:"2px 8px"},children:[b," ",b===1?"pendiente":"pendientes"]}),O>0&&a.jsxs("div",{"data-vg-id":"2e782fbb","data-source-path":"/src/components/ViewGateOverlay.tsx:3301",className:"vg-badge",style:{background:"#f3e8ff",color:"#a855f7",border:"1px solid #e9d5ff",fontSize:"11px",padding:"2px 8px"},children:[O," ",s==="es"?O===1?"Listo para revisión":"Listos para revisión":"ready for review"]})]}):a.jsxs(a.Fragment,{children:[!m&&a.jsxs("div",{"data-vg-id":"2e782fbc","data-source-path":"/src/components/ViewGateOverlay.tsx:3312",className:"vg-segmented-control",style:{marginBottom:"4px"},children:[a.jsx("div",{className:"vg-segmented-slider",style:{left:xe===null?"4px":xe==="pending"?"calc(4px + (100% - 8px) / 3)":"calc(4px + 2 * (100% - 8px) / 3)",width:"calc((100% - 8px) / 3)",background:xe===null?"var(--vg-primary)":xe==="pending"?"#ea580c":"#a855f7",boxShadow:xe===null?"0 4px 12px rgba(99, 102, 241, 0.3)":xe==="pending"?"0 4px 12px rgba(234, 88, 12, 0.3)":"0 4px 12px rgba(168, 85, 247, 0.3)"}}),a.jsxs("div",{onClick:()=>la(null),className:`vg-segmented-item ${xe===null?"active":""}`,children:[o.viewAll||"Todos"," (",k,")"]}),a.jsxs("div",{onClick:()=>la("pending"),className:`vg-segmented-item ${xe==="pending"?"active":""}`,children:[s==="es"?b===1?"Pendiente":"Pendientes":"Pending"," (",b,")"]}),a.jsxs("div",{onClick:()=>la("ready"),className:`vg-segmented-item ${xe==="ready"?"active":""}`,children:[s==="es"?"Listo para revisión":"Ready for Review"," (",O,")"]})]}),a.jsxs("div",{"data-vg-id":"2e782fbd","data-source-path":"/src/components/ViewGateOverlay.tsx:3343",style:{display:"flex",gap:"6px",justifyContent:"center",flexWrap:"wrap",marginTop:m?"0":"4px"},children:[a.jsxs("button",{onClick:()=>ue("all"),style:{padding:"8px 16px",borderRadius:"20px",fontSize:"12px",fontWeight:700,border:"1px solid",borderColor:ae==="all"?"var(--vg-primary)":"#e2e8f0",backgroundColor:ae==="all"?"var(--vg-primary)":"transparent",color:ae==="all"?"white":"#64748b",cursor:"pointer",transition:"all 0.2s"},children:[o.viewAll||"Todos"," (",f.filter(v=>m?!0:xe==="pending"?v.status!=="ready_for_review":xe==="ready"?v.status==="ready_for_review":!0).length,")"]}),["low","medium","high","urgent"].map(v=>{const X=f.filter(I=>m?!0:xe==="pending"?I.status!=="ready_for_review":xe==="ready"?I.status==="ready_for_review":!0).filter(I=>(I.priority||"medium")===v).length;return X===0&&ae!==v?null:a.jsxs("button",{onClick:()=>ue(v),style:{padding:"8px 16px",borderRadius:"20px",fontSize:"12px",fontWeight:700,border:"1px solid",borderColor:ae===v?v==="low"?"#10b981":v==="medium"?"#6366f1":v==="high"?"#f59e0b":"#ef4444":"#e2e8f0",backgroundColor:ae===v?v==="low"?"#ecfdf5":v==="medium"?"#eef2ff":v==="high"?"#fffbeb":"#fef2f2":"transparent",color:ae===v?v==="low"?"#059669":v==="medium"?"#4338ca":v==="high"?"#b45309":"#b91c1c":"#64748b",cursor:"pointer",transition:"all 0.2s",textTransform:"uppercase"},children:[o[v]," (",X,")"]},v)})]})]})})()})]}),a.jsx("div",{style:{flex:1,overflowY:"auto",paddingRight:"10px",overflowX:"hidden"},className:"vg-custom-scrollbar",children:et?a.jsx("div",{"data-vg-id":"2e782fbe","data-source-path":"/src/components/ViewGateOverlay.tsx:3409",style:{display:"flex",justifyContent:"center",padding:"40px"},children:a.jsx("div",{"data-vg-id":"2e782fbf","data-source-path":"/src/components/ViewGateOverlay.tsx:3410",className:"vg-spinner"})}):Ua.map((r,c)=>a.jsxs("div",{className:"vg-glassmorphism vg-animate-slide",style:{padding:"20px",marginBottom:"16px",border:"1px solid rgba(0,0,0,0.05)",background:"rgba(255,255,255,0.5)",animationDelay:`${c*.05}s`},children:[a.jsxs("div",{"data-vg-id":"2e782fc0","data-source-path":"/src/components/ViewGateOverlay.tsx:3425",style:{display:"flex",justifyContent:"space-between",marginBottom:"16px",alignItems:"center"},children:[a.jsxs("div",{"data-vg-id":"2e782fc1","data-source-path":"/src/components/ViewGateOverlay.tsx:3426",style:{display:"flex",gap:"12px",alignItems:"center"},children:[a.jsx("span",{"data-vg-id":"8161c6c","data-source-path":"/src/components/ViewGateOverlay.tsx:3427",style:{fontSize:"12px",color:"#000000",fontWeight:600},children:Xs(r.timestamp||r.createdAt||r.reference?.timestamp,s)}),a.jsx("div",{"data-vg-id":"2e782fd8","data-source-path":"/src/components/ViewGateOverlay.tsx:3430",onClick:d=>{d.stopPropagation();const f=r.key||`VG-${r._id.slice(-6).toUpperCase()}`;navigator.clipboard.writeText(f);const b=d.currentTarget;b.innerText="¡Copiado!",b.style.color="#22c55e",setTimeout(()=>{b.innerText=f,b.style.color=m?"#64748b":"#6366f1"},1500)},style:{fontSize:"10px",fontFamily:"monospace",color:m?"#64748b":"#6366f1",background:m?"rgba(100, 116, 139, 0.1)":"rgba(99, 102, 241, 0.1)",padding:"2px 6px",borderRadius:"4px",cursor:"pointer",fontWeight:900,transition:"all 0.2s"},title:s==="es"?"Click para copiar":"Click to copy",children:r.key||`VG-${r._id.slice(-6).toUpperCase()}`}),r.reference?.metadata?.isModal&&a.jsx("span",{"data-vg-id":"8161c6e","data-source-path":"/src/components/ViewGateOverlay.tsx:3459",className:"vg-badge",style:{fontSize:"10px",background:m?"#f1f5f9":r.status==="completed"||r.status==="done"?"#ecfdf5":r.status==="ready_for_review"?"#f3e8ff":"#fef3c7",color:m?"#64748b":r.status==="completed"||r.status==="done"?"#059669":r.status==="ready_for_review"?"#a855f7":"#92400e",border:"none",padding:"2px 6px"},children:"MODAL"}),r.creator&&a.jsx("div",{"data-vg-id":"2e782fda","data-source-path":"/src/components/ViewGateOverlay.tsx:3468",style:{display:"flex",alignItems:"center",background:"#f8fafc",padding:"2px",borderRadius:"50%",border:"1px solid #e2e8f0",marginLeft:"4px"},children:r.creator.avatar?a.jsx("img",{"data-vg-id":"3cf75a0d","data-source-path":"/src/components/ViewGateOverlay.tsx:3478",src:r.creator.avatar,style:{width:"16px",height:"16px",borderRadius:"50%"},alt:""}):a.jsx("div",{"data-vg-id":"2e782fdc","data-source-path":"/src/components/ViewGateOverlay.tsx:3480",style:{width:"16px",height:"16px",borderRadius:"50%",background:"#6366f1",color:"white",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"8px",fontWeight:700},children:r.creator.name?.[0]})}),r.url&&a.jsx(Ks,{url:r.url,onHover:mr,style:{display:"flex",alignItems:"center",gap:"4px",fontSize:"11px",color:"#64748b",background:"#f8fafc",padding:"2px 8px",borderRadius:"6px",border:"1px solid #e2e8f0",maxWidth:"220px"}}),(r.focusAreas?.length>0?r.focusAreas:[...r.backendEndpoints?.length>0?["backend"]:[],...r.figmaReference?.length>0?["ux"]:[]]).map(d=>a.jsxs("span",{"data-vg-id":"8161c72","data-source-path":"/src/components/ViewGateOverlay.tsx:3506",style:{fontSize:"10px",fontWeight:800,textTransform:"uppercase",padding:"4px 10px",borderRadius:"24px",background:d==="frontend"?"linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%)":d==="backend"?"linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%)":"linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%)",color:d==="frontend"?"#059669":d==="backend"?"#4f46e5":"#c026d3",display:"flex",alignItems:"center",gap:"4px",border:`1px solid ${d==="frontend"?"#a7f3d0":d==="backend"?"#c7d2fe":"#fbcfe8"}`,boxShadow:d==="frontend"?"0 2px 4px rgba(5, 150, 105, 0.05)":d==="backend"?"0 2px 4px rgba(79, 70, 229, 0.05)":"0 2px 4px rgba(192, 38, 211, 0.05)",letterSpacing:"0.02em"},children:[d==="frontend"?a.jsx(Ft,{"data-vg-id":"b806bf0b","data-source-path":"/src/components/ViewGateOverlay.tsx:3514",size:11,strokeWidth:2.5}):d==="backend"?a.jsx(Be,{"data-vg-id":"b1e4c29b","data-source-path":"/src/components/ViewGateOverlay.tsx:3514",size:11,strokeWidth:2.5}):a.jsx(kt,{"data-vg-id":"ea069958","data-source-path":"/src/components/ViewGateOverlay.tsx:3514",size:11,strokeWidth:2.5}),d==="frontend"?"Frontend":d==="backend"?"Backend":"UX / UI"]},d))]}),r.status==="completed"?a.jsxs("span",{"data-vg-id":"8161c8b","data-source-path":"/src/components/ViewGateOverlay.tsx:3520",className:"vg-badge",style:{backgroundColor:"#ecfdf5",color:"#059669",border:"1px solid #d1fae5"},children:[a.jsx(Qe,{"data-vg-id":"a75c1a9c","data-source-path":"/src/components/ViewGateOverlay.tsx:3521",size:14})," ",o.completed||(s==="es"?"Listo para revisión":"Ready for Review")]}):r.status==="ready_for_review"?a.jsxs("span",{"data-vg-id":"8161c8d","data-source-path":"/src/components/ViewGateOverlay.tsx:3524",className:"vg-badge",style:{backgroundColor:"#f3e8ff",color:"#a855f7",border:"1px solid #e9d5ff"},children:[a.jsx(Qe,{"data-vg-id":"a75c1a9e","data-source-path":"/src/components/ViewGateOverlay.tsx:3525",size:14})," ",o.readyForReview]}):r.status==="bug_fixing"?a.jsxs("span",{"data-vg-id":"8161c8f","data-source-path":"/src/components/ViewGateOverlay.tsx:3528",className:"vg-badge",style:{backgroundColor:"#fff1f2",color:"#e11d48",border:"1px solid #ffe4e6"},children:[a.jsx(St,{"data-vg-id":"3b8b183e","data-source-path":"/src/components/ViewGateOverlay.tsx:3529",size:14})," ","Bug Fixing"]}):a.jsxs("span",{"data-vg-id":"8161c91","data-source-path":"/src/components/ViewGateOverlay.tsx:3532",className:"vg-badge",style:{backgroundColor:m||r.status==="backlog"?"#f1f5f9":"#fff7ed",color:m||r.status==="backlog"?"#64748b":"#ea580c",border:m||r.status==="backlog"?"1px solid #e2e8f0":"1px solid #ffedd5"},children:[a.jsx(Es,{"data-vg-id":"62dc6c5a","data-source-path":"/src/components/ViewGateOverlay.tsx:3537",size:14}),m||r.status==="backlog"?o.backlog:o.pending]})]}),(r.screenshot||r.reference?.previewUrl)&&a.jsx("div",{"data-vg-id":"2e782ffe","data-source-path":"/src/components/ViewGateOverlay.tsx:3544",style:{margin:"0 0 20px 0",borderRadius:"8px",overflow:"hidden",width:"fit-content",maxWidth:"100%",maxHeight:"280px",alignSelf:"center",display:"flex"},children:a.jsx("img",{"data-vg-id":"3cf75a31","data-source-path":"/src/components/ViewGateOverlay.tsx:3554",src:r.screenshot||r.reference?.previewUrl,alt:"Visual Preview",style:{maxWidth:"100%",maxHeight:"280px",objectFit:"contain",display:"block"}})}),a.jsxs("div",{"data-vg-id":"2e783015","data-source-path":"/src/components/ViewGateOverlay.tsx:3567",style:{marginBottom:"20px"},children:[a.jsx("div",{"data-vg-id":"2e783016","data-source-path":"/src/components/ViewGateOverlay.tsx:3568",style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"8px"},children:a.jsxs("div",{"data-vg-id":"2e783017","data-source-path":"/src/components/ViewGateOverlay.tsx:3569",style:{fontSize:"10px",fontWeight:800,color:r.priority==="low"?"#059669":r.priority==="urgent"?"#b91c1c":r.priority==="high"?"#b45309":"#4338ca",backgroundColor:r.priority==="low"?"#ecfdf5":r.priority==="urgent"?"#fef2f2":r.priority==="high"?"#fffbeb":"#eef2ff",padding:"4px 10px",borderRadius:"6px",letterSpacing:"0.5px",border:"1px solid",borderColor:r.priority==="low"?"#d1fae5":r.priority==="urgent"?"#fee2e2":r.priority==="high"?"#fef3c7":"#e0e7ff"},children:[o.priority,": ",o[r.priority||"medium"]]})}),a.jsx("p",{"data-vg-id":"f01af8f7","data-source-path":"/src/components/ViewGateOverlay.tsx:3583",className:"vg-text-wrap",style:{margin:"0",fontSize:"16px",color:"#1e293b",lineHeight:1.6},children:r.message}),r.figmaReference?.length>0&&a.jsxs("div",{"data-vg-id":"2e783019","data-source-path":"/src/components/ViewGateOverlay.tsx:3588",style:{marginTop:"16px",display:"flex",flexDirection:"column",gap:"8px",padding:"12px",background:"#faf5ff",borderRadius:"12px",border:"1px solid #fae8ff"},children:[a.jsxs("div",{"data-vg-id":"2e78301a","data-source-path":"/src/components/ViewGateOverlay.tsx:3589",style:{display:"flex",alignItems:"center",gap:"6px",marginBottom:"4px"},children:[a.jsx(kt,{"data-vg-id":"ea069993","data-source-path":"/src/components/ViewGateOverlay.tsx:3590",size:14,style:{color:"#d946ef"}}),a.jsx("span",{"data-vg-id":"8161cb1","data-source-path":"/src/components/ViewGateOverlay.tsx:3591",style:{fontSize:"11px",fontWeight:800,color:"#a21caf",textTransform:"uppercase",letterSpacing:"0.05em"},children:s==="es"?"Diseños Figma":"Figma Designs"})]}),r.figmaReference.map((d,f)=>a.jsxs("a",{"data-vg-id":"ef47986d","data-source-path":"/src/components/ViewGateOverlay.tsx:3594",href:d.link,target:"_blank",rel:"noreferrer",className:"vg-animate-pop",style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 14px",background:"#ffffff",border:"1px solid #f5d0fe",borderRadius:"10px",fontSize:"13px",color:"#c026d3",textDecoration:"none",transition:"all 0.2s",boxShadow:"0 2px 4px rgba(217, 70, 239, 0.05)"},onMouseEnter:b=>{b.currentTarget.style.transform="translateY(-2px)",b.currentTarget.style.boxShadow="0 4px 12px rgba(217, 70, 239, 0.15)",b.currentTarget.style.borderColor="#d946ef"},onMouseLeave:b=>{b.currentTarget.style.transform="translateY(0)",b.currentTarget.style.boxShadow="0 2px 4px rgba(217, 70, 239, 0.05)",b.currentTarget.style.borderColor="#f5d0fe"},children:[a.jsxs("div",{"data-vg-id":"2e78301e","data-source-path":"/src/components/ViewGateOverlay.tsx:3602",style:{display:"flex",alignItems:"center",gap:"8px"},children:[a.jsx("div",{"data-vg-id":"2e783034","data-source-path":"/src/components/ViewGateOverlay.tsx:3603",style:{width:"24px",height:"24px",borderRadius:"6px",background:"rgba(217, 70, 239, 0.1)",display:"flex",alignItems:"center",justifyContent:"center"},children:a.jsx(Ft,{"data-vg-id":"b806bf62","data-source-path":"/src/components/ViewGateOverlay.tsx:3604",size:12,strokeWidth:3})}),a.jsx("span",{"data-vg-id":"8161ccb","data-source-path":"/src/components/ViewGateOverlay.tsx:3606",style:{fontWeight:700},children:d.name||"Figma Reference"})]}),a.jsx(Aa,{"data-vg-id":"5c2be087","data-source-path":"/src/components/ViewGateOverlay.tsx:3608",size:14,style:{opacity:.5}})]},f))]}),r.backendEndpoints?.length>0&&a.jsxs("div",{"data-vg-id":"2e783038","data-source-path":"/src/components/ViewGateOverlay.tsx:3615",style:{marginTop:"16px",display:"flex",flexDirection:"column",gap:"8px",padding:"12px",background:"#f5f8ff",borderRadius:"12px",border:"1px solid #e0e7ff"},children:[a.jsxs("div",{"data-vg-id":"2e783039","data-source-path":"/src/components/ViewGateOverlay.tsx:3616",style:{display:"flex",alignItems:"center",gap:"6px",marginBottom:"4px"},children:[a.jsx(Be,{"data-vg-id":"b1e4c2f6","data-source-path":"/src/components/ViewGateOverlay.tsx:3617",size:14,style:{color:"#4f46e5"}}),a.jsx("span",{"data-vg-id":"8161cd0","data-source-path":"/src/components/ViewGateOverlay.tsx:3618",style:{fontSize:"11px",fontWeight:800,color:"#3730a3",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Backend Endpoints"})]}),a.jsx("div",{"data-vg-id":"2e78303c","data-source-path":"/src/components/ViewGateOverlay.tsx:3620",style:{display:"flex",flexWrap:"wrap",gap:"8px"},children:r.backendEndpoints.map(d=>{const f=d.split("|"),b=f.length>1?f[0]:"";let O=f.length>1?f[1]||"":d||"",k="#4f46e5",v="#e0e7ff";return b==="GET"?(k="#059669",v="#d1fae5"):b==="POST"?(k="#ea580c",v="#ffedd5"):b==="PUT"?(k="#0284c7",v="#e0f2fe"):b==="DELETE"&&(k="#e11d48",v="#ffe4e6"),a.jsxs("div",{"data-vg-id":"2e78303d","data-source-path":"/src/components/ViewGateOverlay.tsx:3635",className:"vg-animate-slide",style:{fontSize:"12px",padding:"6px 12px",background:"#ffffff",color:"#4f46e5",borderRadius:"8px",border:"1px solid #c7d2fe",display:"flex",alignItems:"center",gap:"8px",boxShadow:"0 2px 4px rgba(79, 70, 229, 0.05)"},children:[b&&a.jsx("span",{"data-vg-id":"8161ce8","data-source-path":"/src/components/ViewGateOverlay.tsx:3641",style:{fontWeight:800,color:k,background:v,padding:"2px 6px",borderRadius:"4px",fontSize:"10px"},children:b}),a.jsx("span",{"data-vg-id":"8161ce9","data-source-path":"/src/components/ViewGateOverlay.tsx:3642",style:{fontWeight:600,fontFamily:"monospace",letterSpacing:"-0.02em",color:"#1e293b"},children:O})]},d)})})]})]}),a.jsxs("div",{"data-vg-id":"2e783055","data-source-path":"/src/components/ViewGateOverlay.tsx:3652",style:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"12px",borderTop:"1px solid #f1f5f9",paddingTop:"16px"},children:[a.jsx("div",{"data-vg-id":"2e783056","data-source-path":"/src/components/ViewGateOverlay.tsx:3654",style:{display:"flex",gap:"6px"},children:_t!=="client"&&a.jsxs(a.Fragment,{children:[a.jsx("button",{className:"vg-button-ghost vg-animate-pop",style:{padding:"8px",minWidth:"36px"},onClick:()=>{const d=r.backendEndpoints||[],f=r.focusAreas&&r.focusAreas.length>0?r.focusAreas:[...d.length>0?["backend"]:[],...r.figmaReference&&r.figmaReference.length>0?["ux"]:[]];da(r._id),Sr(r.message),Re(r.priority||"medium"),Ya(f),Nt(r.figmaReference&&r.figmaReference.length>0?r.figmaReference:[{name:o.figmaPrimaryDesign,link:""}]),pa(d),ce(d)},title:o.edit,children:a.jsx(kt,{"data-vg-id":"ea0699cf","data-source-path":"/src/components/ViewGateOverlay.tsx:3678",size:16})}),a.jsx("button",{className:"vg-button-ghost vg-animate-pop",style:{padding:"8px",minWidth:"36px",color:"#ef4444"},onClick:()=>{Ge({title:o.deleteConfirm,message:o.confirmDelete,type:"danger",onConfirm:async()=>{try{(await fetch(`${i}/api/annotations/${r._id}`,{method:"DELETE",headers:{"x-api-key":n}})).ok&&(It(),t(o.deleteSuccess,"success"))}catch{t(o.error,"error")}finally{Ge(null)}}})},title:s==="es"?"Eliminar":"Delete",children:a.jsx(Ut,{"data-vg-id":"45b4423d","data-source-path":"/src/components/ViewGateOverlay.tsx:3708",size:16})})]})}),a.jsxs("div",{"data-vg-id":"2e783059","data-source-path":"/src/components/ViewGateOverlay.tsx:3714",style:{display:"flex",gap:"8px"},children:[_t!=="client"&&r.status==="ready_for_review"&&a.jsxs("button",{onClick:()=>Wn(r),className:"vg-button-primary vg-animate-pop",style:{padding:"8px 16px",fontSize:"13px",whiteSpace:"nowrap",background:"linear-gradient(135deg, #059669 0%, #10b981 100%)",boxShadow:"0 4px 12px rgba(5, 150, 69, 0.2)",display:"flex",alignItems:"center",gap:"8px",fontWeight:700},disabled:S,children:[a.jsx(go,{"data-vg-id":"41e603ea","data-source-path":"/src/components/ViewGateOverlay.tsx:3732",size:14}),s==="es"?"Resolver con Evidencia":"Resolve & Capture"]}),a.jsxs("a",{href:`${(l||"").replace(/\/$/,"")}/${m||r.status==="backlog"?"backlog":"board"}?search=${r.key||(r._id?"VG-"+r._id.slice(-6).toUpperCase():"TICKET")}${Vt?`&projectId=${Vt}`:""}`,target:"_blank",rel:"noopener noreferrer",className:"vg-button-primary vg-animate-pop",style:{padding:"8px 16px",fontSize:"13px",whiteSpace:"nowrap",textDecoration:"none",display:"flex",alignItems:"center",gap:"8px",cursor:"pointer"},children:[a.jsx(Aa,{"data-vg-id":"5c2be0ab","data-source-path":"/src/components/ViewGateOverlay.tsx:3752",size:14}),s==="es"?"Ver en Dashboard":"View in Dashboard"]})]})]})]},r._id))},Se||"all")]})}),le&&a.jsx("div",{"data-vg-id":"2e78305c","data-source-path":"/src/components/ViewGateOverlay.tsx:3768",className:"vg-animate-fade",style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(11, 15, 25, 0.7)",backdropFilter:"blur(8px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:$e+100},children:a.jsxs("div",{"data-vg-id":"2e783072","data-source-path":"/src/components/ViewGateOverlay.tsx:3773",className:"vg-glassmorphism vg-animate-slide",style:{padding:"40px",width:"420px",textAlign:"center",border:"1px solid rgba(255, 255, 255, 0.1)",boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.5)"},children:[a.jsx("div",{"data-vg-id":"2e783073","data-source-path":"/src/components/ViewGateOverlay.tsx:3780",style:{width:"64px",height:"64px",background:le.type==="danger"?"rgba(239, 68, 68, 0.1)":"rgba(99, 102, 241, 0.1)",borderRadius:"20px",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 24px",color:le.type==="danger"?"#ef4444":"#6366f1",transform:"rotate(-5deg)"},children:le.type==="danger"?a.jsx(Ut,{"data-vg-id":"45b44259","data-source-path":"/src/components/ViewGateOverlay.tsx:3789",size:32}):a.jsx(Qe,{"data-vg-id":"a75c1b1a","data-source-path":"/src/components/ViewGateOverlay.tsx:3789",size:32})}),a.jsx("h3",{"data-vg-id":"53ec58c","data-source-path":"/src/components/ViewGateOverlay.tsx:3791",style:{margin:"0 0 12px 0",fontSize:"20px",fontWeight:800,color:"#000000",letterSpacing:"-0.02em"},children:le.title}),a.jsx("p",{"data-vg-id":"f01af956","data-source-path":"/src/components/ViewGateOverlay.tsx:3792",style:{margin:"0 0 24px 0",fontSize:"15px",color:"#000000",lineHeight:1.6},children:le.message}),le.showInput&&a.jsx("textarea",{className:"vg-textarea",placeholder:o.reopenPlaceholder,value:Ue,onChange:r=>$t(r.target.value),rows:3,autoFocus:!0,style:{marginBottom:"24px",minHeight:"80px",textAlign:"left"}}),a.jsxs("div",{"data-vg-id":"2e783078","data-source-path":"/src/components/ViewGateOverlay.tsx:3806",style:{display:"flex",gap:"16px"},children:[a.jsx("button",{className:"vg-button-ghost",style:{flex:1,height:"44px"},onClick:()=>!ea&&Ge(null),disabled:ea,children:o.no}),a.jsx("button",{className:"vg-button-primary",style:{flex:1,height:"44px",backgroundColor:le.type==="danger"?"#ef4444":void 0,backgroundImage:le.type==="danger"?"none":void 0,display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",opacity:le.showInput&&!Ue.trim()?.5:1,cursor:le.showInput&&!Ue.trim()?"not-allowed":"pointer"},disabled:ea||le.showInput&&!Ue.trim(),onClick:async()=>{sr(!0);try{await le.onConfirm(Ue)}catch(r){console.error("Confirmation error:",r)}finally{sr(!1)}},children:ea?a.jsx(Ia,{"data-vg-id":"a4b73647","data-source-path":"/src/components/ViewGateOverlay.tsx:3842",size:18,className:"vg-animate-spin"}):o.yes})]})]})}),!Z&&!A&&D&&pt.map((r,c)=>{const{rect:d,annotations:f,isModal:b}=r,O=f[0],k=f.length,v=f.some(w=>w.status==="ready_for_review"),X=f.some(w=>w.status==="completed"||w.status==="done"),I=f.some(w=>w.status!=="ready_for_review"&&w.status!=="completed"&&w.status!=="done"),se=X&&!v&&!I,U=v&&!I&&!X,re=(v||X)&&!I,ee=(v||X)&&I,L=f.filter(w=>w.status!=="ready_for_review"&&w.status!=="completed"&&w.status!=="done").length,oe=f.filter(w=>w.status==="ready_for_review").length,H=f.filter(w=>w.status==="completed"||w.status==="done").length,ve=f.some(w=>w.status==="bug_fixing"||w.type==="bug"||w.originalStatus==="bug_fixing"),ga=ve&&!U&&!se?"#f43f5e":L>0?m?"#64748b":"#ea580c":oe>0?"#a855f7":"#10b981",ht=pt.some(w=>w.element===r.element&&w.isTriggerPin),Ze=pt.some(w=>w.element===r.element&&!w.isTriggerPin),vt=ht&&Ze?r.isTriggerPin?-18:18:0,zt=d.top===0&&d.left===0&&d.width>window.innerWidth*.9;return a.jsxs("div",{className:"vg-pin-container vg-animate-pop",style:{position:"fixed",top:Math.max(20,Math.min(window.innerHeight-52,d.top-20)),left:zt?Math.max(20,d.left+40+vt):Math.max(20,Math.min(window.innerWidth-52,d.left+d.width/2-16+vt)),width:"32px",height:"32px",cursor:"pointer",transition:"all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275)",zIndex:Sn},onMouseEnter:w=>{const st=w.currentTarget.getBoundingClientRect(),Er=window.innerHeight-st.bottom,Fn=st.top;Er<250&&Fn>Er?qt($a=>({...$a,[r.id]:"vg-top"})):qt($a=>({...$a,[r.id]:""}))},onWheel:w=>{const st=w.currentTarget.querySelector(".vg-tooltip-scroll");st&&st.scrollBy({top:w.deltaY,behavior:"smooth"})},onClick:()=>{q(!0),Wa(O._id)},children:[a.jsxs("div",{"data-vg-id":"2e78307a","data-source-path":"/src/components/ViewGateOverlay.tsx:3917",className:`vg-pin-tooltip ${Rt[r.id]||""} ${zt||d.left<160?"vg-tooltip-right":d.left>window.innerWidth-160?"vg-tooltip-left":""}`,style:{padding:"16px"},children:[a.jsxs("div",{"data-vg-id":"2e78307b","data-source-path":"/src/components/ViewGateOverlay.tsx:3918",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"12px"},children:[a.jsxs("div",{"data-vg-id":"2e783091","data-source-path":"/src/components/ViewGateOverlay.tsx:3919",style:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap"},children:[r.isTriggerPin?a.jsx(Bt,{"data-vg-id":"d88161f7","data-source-path":"/src/components/ViewGateOverlay.tsx:3921",size:14,color:ga}):a.jsx(Ht,{"data-vg-id":"7fe17e6","data-source-path":"/src/components/ViewGateOverlay.tsx:3923",size:14,color:ga}),a.jsxs("div",{"data-vg-id":"2e783094","data-source-path":"/src/components/ViewGateOverlay.tsx:3925",style:{display:"flex",gap:"4px"},children:[L>0&&a.jsxs("span",{"data-vg-id":"8161d2a","data-source-path":"/src/components/ViewGateOverlay.tsx:3927",className:"vg-badge",style:{fontSize:"10px",background:m?"#f1f5f9":"#fff7ed",color:m?"#64748b":"#c2410c"},children:[L," ",m||O.status==="backlog"?"Backlog":s==="es"?L===1?o.pending:"Pendientes":"pending"]}),oe>0&&a.jsxs("span",{"data-vg-id":"8161d2b","data-source-path":"/src/components/ViewGateOverlay.tsx:3936",style:{fontSize:"10px",fontWeight:700,color:"#a855f7",background:"#f3e8ff",padding:"2px 6px",borderRadius:"6px"},children:[oe," ",s==="es"?oe===1?"Listo para revisión":"Listos para revisión":"ready for review"]}),H>0&&a.jsxs("span",{"data-vg-id":"8161d2c","data-source-path":"/src/components/ViewGateOverlay.tsx:3948",style:{fontSize:"10px",fontWeight:700,color:"#059669",background:"#ecfdf5",padding:"2px 6px",borderRadius:"6px"},children:[H," ",s==="es"?H===1?"Completado":"Completados":"completed"]}),f.some(w=>w.status==="bug_fixing")&&a.jsx("span",{"data-vg-id":"8161d2d","data-source-path":"/src/components/ViewGateOverlay.tsx:3960",style:{fontSize:"10px",fontWeight:700,color:"#e11d48",background:"#fff1f2",padding:"2px 6px",borderRadius:"6px"},children:"BUG"})]})]}),b&&a.jsx("span",{"data-vg-id":"8161d2e","data-source-path":"/src/components/ViewGateOverlay.tsx:3974",className:"vg-badge",style:{fontSize:"10px",background:m?"#f1f5f9":ee?`linear-gradient(90deg, #ea580c 50%, ${X?"#10b981":"#a855f7"} 50%)`:L>0?"#fff7ed":se?"#ecfdf5":"#f3e8ff",color:m?"#64748b":ee?"#ffffff":L>0?"#c2410c":se?"#059669":"#a855f7",border:"none",fontWeight:800,textShadow:ee&&!m?"0 1px 2px rgba(0,0,0,0.2)":"none"},children:"MODAL"})]}),a.jsx("div",{"data-vg-id":"2e78309a","data-source-path":"/src/components/ViewGateOverlay.tsx:3986",className:"vg-tooltip-scroll",style:{maxHeight:"180px",overflowY:"auto"},children:f.map((w,st)=>a.jsxs("div",{"data-vg-id":"2e78333b","data-source-path":"/src/components/ViewGateOverlay.tsx:3988",style:{padding:"10px 0",borderTop:st===0?"none":"1px solid #f1f5f9",display:"flex",gap:"12px",alignItems:"flex-start"},children:[a.jsxs("div",{"data-vg-id":"2e78333c","data-source-path":"/src/components/ViewGateOverlay.tsx:3995",style:{flex:1,display:"flex",flexDirection:"column",gap:"4px"},children:[a.jsxs("div",{"data-vg-id":"2e78333d","data-source-path":"/src/components/ViewGateOverlay.tsx:3996",style:{display:"flex",alignItems:"center",gap:"6px"},children:[a.jsx("span",{"data-vg-id":"8161fd3","data-source-path":"/src/components/ViewGateOverlay.tsx:3997",style:{fontSize:"10px",fontWeight:600,color:"#64748b"},children:Xs(w.timestamp||w.createdAt,s)}),w.creator&&a.jsx("div",{"data-vg-id":"2e78333f","data-source-path":"/src/components/ViewGateOverlay.tsx:4001",style:{marginLeft:"4px"},children:w.creator.avatar?a.jsx("img",{"data-vg-id":"3cf75d72","data-source-path":"/src/components/ViewGateOverlay.tsx:4003",src:w.creator.avatar,style:{width:"14px",height:"14px",borderRadius:"50%"},alt:""}):a.jsx("div",{"data-vg-id":"2e783341","data-source-path":"/src/components/ViewGateOverlay.tsx:4005",style:{width:"14px",height:"14px",borderRadius:"50%",background:"#6366f1",color:"white",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"7px",fontWeight:700},children:w.creator.name?.[0]})})]}),w.url&&a.jsx(Ks,{url:w.url,onHover:mr,style:{display:"flex",alignItems:"center",gap:"4px",fontSize:"9px",color:"#6366f1",opacity:.8,background:"rgba(99, 102, 241, 0.05)",padding:"2px 6px",borderRadius:"4px",maxWidth:"120px"},tooltipStyle:{fontSize:"9px"}}),a.jsx("div",{"data-vg-id":"2e783342","data-source-path":"/src/components/ViewGateOverlay.tsx:4031",className:"vg-line-clamp-2",style:{fontSize:"13px",color:"#1e293b",lineHeight:1.4,fontWeight:500},children:w.message.length>100?w.message.slice(0,97)+"...":w.message})]}),a.jsxs("div",{"data-vg-id":"2e783343","data-source-path":"/src/components/ViewGateOverlay.tsx:4035",style:{flexShrink:0,marginTop:"2px",display:"flex",flexDirection:"column",gap:"4px",alignItems:"flex-end"},children:[a.jsx("div",{"data-vg-id":"2e783344","data-source-path":"/src/components/ViewGateOverlay.tsx:4036",style:{fontSize:"8px",fontWeight:800,color:w.priority==="low"?"#059669":w.priority==="urgent"?"#b91c1c":w.priority==="high"?"#b45309":"#4338ca",backgroundColor:w.priority==="low"?"#ecfdf5":w.priority==="urgent"?"#fef2f2":w.priority==="high"?"#fffbeb":"#eef2ff",padding:"2px 6px",borderRadius:"4px",textTransform:"uppercase",border:"1px solid",borderColor:w.priority==="low"?"#d1fae5":w.priority==="urgent"?"#fee2e2":w.priority==="high"?"#fef3c7":"#e0e7ff"},children:o[w.priority||"medium"]}),w.status==="completed"||w.status==="done"?a.jsxs("span",{"data-vg-id":"8161fef","data-source-path":"/src/components/ViewGateOverlay.tsx:4050",style:{display:"flex",alignItems:"center",gap:"4px",fontSize:"8px",fontWeight:800,color:"#059669",background:"#ecfdf5",padding:"2px 6px",borderRadius:"6px",textTransform:"uppercase",border:"1px solid #d1fae5"},children:[a.jsx(Qe,{"data-vg-id":"a75c1e00","data-source-path":"/src/components/ViewGateOverlay.tsx:4063",size:10}),o.completed]}):w.status==="ready_for_review"?a.jsxs("span",{"data-vg-id":"8161ff1","data-source-path":"/src/components/ViewGateOverlay.tsx:4067",style:{display:"flex",alignItems:"center",gap:"4px",fontSize:"8px",fontWeight:800,color:"#a855f7",background:"#f3e8ff",padding:"2px 6px",borderRadius:"6px",textTransform:"uppercase",border:"1px solid #e9d5ff"},children:[w.type==="bug"||w.status==="bug_fixing"||w.originalStatus==="bug_fixing"?a.jsx(St,{"data-vg-id":"3b8b1ba0","data-source-path":"/src/components/ViewGateOverlay.tsx:4080",size:10}):a.jsx(Qe,{"data-vg-id":"a75c1e03","data-source-path":"/src/components/ViewGateOverlay.tsx:4080",size:10}),o.readyForReview]}):w.status==="bug_fixing"?a.jsxs("span",{"data-vg-id":"8161ff4","data-source-path":"/src/components/ViewGateOverlay.tsx:4084",style:{display:"flex",alignItems:"center",gap:"4px",fontSize:"8px",fontWeight:800,color:"#e11d48",background:"#fff1f2",padding:"2px 6px",borderRadius:"6px",textTransform:"uppercase",border:"1px solid #ffe4e6"},children:[a.jsx(St,{"data-vg-id":"3b8b1ba3","data-source-path":"/src/components/ViewGateOverlay.tsx:4097",size:10}),"Bug Fixing"]}):a.jsxs("span",{"data-vg-id":"8161ff6","data-source-path":"/src/components/ViewGateOverlay.tsx:4101",style:{display:"flex",alignItems:"center",gap:"4px",fontSize:"8px",fontWeight:800,color:m||w.status==="backlog"?"#64748b":"#ea580c",background:m||w.status==="backlog"?"#f1f5f9":"#fff7ed",padding:"2px 6px",borderRadius:"6px",textTransform:"uppercase",border:m||w.status==="backlog"?"1px solid #e2e8f0":"1px solid #ffedd5"},children:[a.jsx(Es,{"data-vg-id":"62dc6fbf","data-source-path":"/src/components/ViewGateOverlay.tsx:4114",size:10}),m||w.status==="backlog"?o.backlog:o.pending]})]})]},w._id))})]}),a.jsxs("div",{"data-vg-id":"2e783363","data-source-path":"/src/components/ViewGateOverlay.tsx:4124",className:`vg-formal-pin ${se?"completed":U||re?"ready":ve?"bug":ee?"mixed":m?"backlog":""} ${r.isTriggerPin?"modal-variant":""}`,style:{position:"relative",background:ve&&!U&&!se?"linear-gradient(135deg, #f43f5e 0%, #e11d48 100%)":U?"linear-gradient(135deg, #a855f7 0%, #7e22ce 100%)":ee?X?"linear-gradient(135deg, #10b981 0%, #059669 100%)":"linear-gradient(135deg, #a855f7 0%, #7e22ce 100%)":void 0},children:[U||se||re?ve&&!se?a.jsx(St,{"data-vg-id":"3b8b1bbc","data-source-path":"/src/components/ViewGateOverlay.tsx:4131",size:18}):a.jsx(Qe,{"data-vg-id":"a75c1e1f","data-source-path":"/src/components/ViewGateOverlay.tsx:4131",size:18}):ve?a.jsx(St,{"data-vg-id":"3b8b1bbe","data-source-path":"/src/components/ViewGateOverlay.tsx:4131",size:18}):r.isTriggerPin?a.jsx(Bt,{"data-vg-id":"d88164e1","data-source-path":"/src/components/ViewGateOverlay.tsx:4131",size:16}):b?a.jsx(Aa,{"data-vg-id":"5c2be3cd","data-source-path":"/src/components/ViewGateOverlay.tsx:4131",size:16}):a.jsx(Ht,{"data-vg-id":"7fe1ad1","data-source-path":"/src/components/ViewGateOverlay.tsx:4131",size:16}),k>1&&a.jsx("div",{"data-vg-id":"2e78337f","data-source-path":"/src/components/ViewGateOverlay.tsx:4134",className:"vg-pin-badge vg-animate-pop",children:k})]})]},`group-${r.id}`)}),a.jsx("div",{className:`vg-url-tooltip ${tt?"visible":""} ${tt?.direction==="bottom"?"vg-bottom":"vg-top"}`,style:{transform:tt?`translate(-50%, ${tt.direction==="top"?"-110%":"10%"})`:"translate(-50%, 0)",left:tt?.x||0,top:tt?.y||0},children:tt?.url}),B&&a.jsx("div",{"data-vg-id":"2e783380","data-source-path":"/src/components/ViewGateOverlay.tsx:4159",style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.75)",backdropFilter:"blur(16px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:$e+100,animation:"vg-fade-in 0.3s ease-out"},onClick:r=>{r.target===r.currentTarget&&Y(!1)},children:a.jsxs("div",{"data-vg-id":"2e783381","data-source-path":"/src/components/ViewGateOverlay.tsx:4168",className:"vg-glassmorphism vg-animate-pop",style:{width:"95%",maxWidth:"800px",height:"85vh",maxHeight:"850px",display:"flex",flexDirection:"column",overflow:"hidden",boxShadow:"0 50px 100px rgba(0,0,0,0.6)",borderRadius:"32px",border:"1px solid rgba(255, 255, 255, 0.15)",backgroundColor:"rgba(255, 255, 255, 0.98)"},children:[a.jsxs("div",{"data-vg-id":"2e783382","data-source-path":"/src/components/ViewGateOverlay.tsx:4181",style:{padding:"32px 40px",borderBottom:"1px solid rgba(0,0,0,0.06)",display:"flex",alignItems:"center",justifyContent:"space-between",background:"white"},children:[a.jsxs("div",{"data-vg-id":"2e783398","data-source-path":"/src/components/ViewGateOverlay.tsx:4182",children:[a.jsx("h3",{"data-vg-id":"53ec8af","data-source-path":"/src/components/ViewGateOverlay.tsx:4183",style:{margin:0,fontSize:"24px",fontWeight:900,letterSpacing:"-0.03em",color:"#0f172a"},children:s==="es"?"Selector de Endpoints":"Endpoint Selector"}),a.jsx("p",{"data-vg-id":"f01afc79","data-source-path":"/src/components/ViewGateOverlay.tsx:4186",style:{margin:"6px 0 0 0",fontSize:"14px",color:"#64748b",fontWeight:500},children:s==="es"?"Asocia múltiples rutas backend a este ticket para mayor precisión":"Associate multiple backend routes to this ticket for better precision"})]}),a.jsx("button",{"data-vg-id":"5861c098","data-source-path":"/src/components/ViewGateOverlay.tsx:4190",onClick:()=>Y(!1),className:"vg-close-pill",style:{width:"40px",height:"40px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"14px",background:"#f1f5f9",color:"#64748b",border:"none",cursor:"pointer",transition:"all 0.2s"},onMouseEnter:r=>{r.currentTarget.style.background="#e2e8f0",r.currentTarget.style.color="#0f172a"},onMouseLeave:r=>{r.currentTarget.style.background="#f1f5f9",r.currentTarget.style.color="#64748b"},children:a.jsx(jt,{"data-vg-id":"eec8c863","data-source-path":"/src/components/ViewGateOverlay.tsx:4197",size:20,strokeWidth:2.5})})]}),a.jsx("div",{"data-vg-id":"2e78339d","data-source-path":"/src/components/ViewGateOverlay.tsx:4201",style:{padding:"24px 40px",borderBottom:"1px solid rgba(0,0,0,0.06)",background:"#fcfcfc"},children:a.jsxs("div",{"data-vg-id":"2e78339e","data-source-path":"/src/components/ViewGateOverlay.tsx:4202",style:{position:"relative"},children:[a.jsx(So,{"data-vg-id":"8f7bb032","data-source-path":"/src/components/ViewGateOverlay.tsx:4203",size:20,style:{position:"absolute",left:"16px",top:"50%",transform:"translateY(-50%)",color:"#94a3b8"}}),a.jsx("input",{"data-vg-id":"88e38dd9","data-source-path":"/src/components/ViewGateOverlay.tsx:4204",type:"text",placeholder:s==="es"?"Buscar rutas, métodos o descripciones...":"Search routes, methods, or descriptions...",value:lt,onChange:r=>ar(r.target.value),className:"vg-textarea",style:{padding:"14px 16px 14px 50px",fontSize:"16px",minHeight:"auto",borderRadius:"16px",border:"1px solid #e2e8f0",backgroundColor:"white",boxShadow:"0 2px 8px rgba(0,0,0,0.04)"},autoFocus:!0})]})}),a.jsx("div",{"data-vg-id":"2e7833a1","data-source-path":"/src/components/ViewGateOverlay.tsx:4224",style:{flex:1,overflowY:"auto",overflowX:"hidden",padding:"24px 40px"},className:"vg-custom-scrollbar",children:Gt?yr.length>0?a.jsx("div",{"data-vg-id":"2e7833ba","data-source-path":"/src/components/ViewGateOverlay.tsx:4231",style:{display:"flex",flexDirection:"column",gap:"0px"},children:yr.map(r=>{const c=r.name===(s==="es"?"Seleccionados":"Selected");return a.jsxs("div",{"data-vg-id":"2e7833bb","data-source-path":"/src/components/ViewGateOverlay.tsx:4235",style:{marginBottom:"32px"},children:[a.jsxs("div",{"data-vg-id":"2e7833bc","data-source-path":"/src/components/ViewGateOverlay.tsx:4236",style:{display:"flex",alignItems:"center",gap:"12px",marginBottom:"16px",padding:"0 4px"},children:[a.jsx("span",{"data-vg-id":"8162052","data-source-path":"/src/components/ViewGateOverlay.tsx:4237",style:{fontSize:"11px",fontWeight:900,textTransform:"uppercase",letterSpacing:"0.1em",color:c?"#10b981":"#6366f1",backgroundColor:c?"rgba(10, 185, 129, 0.08)":"rgba(99, 102, 241, 0.08)",padding:"4px 10px",borderRadius:"6px",border:"1px solid",borderColor:c?"rgba(10, 185, 129, 0.1)":"rgba(99, 102, 241, 0.1)"},children:r.name}),a.jsx("div",{"data-vg-id":"2e7833be","data-source-path":"/src/components/ViewGateOverlay.tsx:4251",style:{flex:1,height:"1px",background:`linear-gradient(90deg, ${c?"rgba(16, 185, 129, 0.15)":"rgba(99, 102, 241, 0.15)"} 0%, transparent 100%)`}})]}),a.jsx("div",{"data-vg-id":"2e7833bf","data-source-path":"/src/components/ViewGateOverlay.tsx:4258",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(340px, 1fr))",gap:"12px"},children:r.endpoints.map(d=>{const f=`${d.method}|${d.path}`,b=_.includes(f);return a.jsxs("div",{"data-vg-id":"2e7833c0","data-source-path":"/src/components/ViewGateOverlay.tsx:4267",onClick:()=>{ce(b?_.filter(O=>O!==f):[..._,f])},style:{padding:"16px 20px",borderRadius:"18px",cursor:"pointer",transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)",background:b?"#f5f7ff":"#ffffff",border:"1px solid",borderColor:b?"rgba(99, 102, 241, 0.2)":"#f1f5f9",display:"flex",alignItems:"center",gap:"16px",boxShadow:b?"0 4px 12px rgba(99, 102, 241, 0.08)":"none"},onMouseEnter:O=>{b||(O.currentTarget.style.background="#f8fafc",O.currentTarget.style.borderColor="#e2e8f0")},onMouseLeave:O=>{b||(O.currentTarget.style.background="#ffffff",O.currentTarget.style.borderColor="#f1f5f9")},children:[a.jsx("div",{"data-vg-id":"2e7833d6","data-source-path":"/src/components/ViewGateOverlay.tsx:4299",style:{width:"24px",height:"24px",borderRadius:"8px",border:"2px solid",borderColor:b?"#6366f1":"#cbd5e1",backgroundColor:b?"#6366f1":"white",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s",flexShrink:0},children:b&&a.jsx("div",{"data-vg-id":"2e7833d7","data-source-path":"/src/components/ViewGateOverlay.tsx:4312",style:{color:"white",fontSize:"14px",fontWeight:900},children:"✓"})}),a.jsxs("div",{"data-vg-id":"2e7833d8","data-source-path":"/src/components/ViewGateOverlay.tsx:4314",style:{flex:1,minWidth:0},children:[a.jsxs("div",{"data-vg-id":"2e7833d9","data-source-path":"/src/components/ViewGateOverlay.tsx:4315",style:{display:"flex",alignItems:"center",gap:"10px"},children:[a.jsx("span",{"data-vg-id":"816206f","data-source-path":"/src/components/ViewGateOverlay.tsx:4316",style:{fontSize:"11px",fontWeight:800,padding:"3px 8px",borderRadius:"8px",background:d.method==="GET"?"#dcfce7":"#fee2e2",color:d.method==="GET"?"#166534":"#991b1b",flexShrink:0},children:d.method}),a.jsx("span",{"data-vg-id":"8162070","data-source-path":"/src/components/ViewGateOverlay.tsx:4327",style:{fontWeight:700,color:b?"#4338ca":"#1e293b",fontSize:"14px",wordBreak:"break-all"},children:d.path}),d.contract&&a.jsx("div",{"data-vg-id":"2e7833dc","data-source-path":"/src/components/ViewGateOverlay.tsx:4336",style:{fontSize:"9px",fontWeight:900,color:"#6366f1",background:"rgba(99, 102, 241, 0.1)",padding:"1px 5px",borderRadius:"4px",textTransform:"uppercase"},children:"JSON"})]}),d.description&&a.jsx("div",{"data-vg-id":"2e7833dd","data-source-path":"/src/components/ViewGateOverlay.tsx:4348",style:{fontSize:"12px",color:"#64748b",marginTop:"6px",wordBreak:"break-word",fontWeight:450,lineHeight:1.4},children:d.description})]})]},f)})})]},r.name)})}):a.jsxs("div",{"data-vg-id":"2e7833de","data-source-path":"/src/components/ViewGateOverlay.tsx:4369",style:{padding:"80px 20px",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center"},children:[a.jsx("div",{"data-vg-id":"2e7833df","data-source-path":"/src/components/ViewGateOverlay.tsx:4370",style:{width:"80px",height:"80px",borderRadius:"24px",backgroundColor:"#f1f5f9",display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"24px"},children:a.jsx(Be,{"data-vg-id":"b1e4c6b1","data-source-path":"/src/components/ViewGateOverlay.tsx:4371",size:40,style:{color:"#94a3b8"}})}),a.jsx("p",{"data-vg-id":"f01afcd5","data-source-path":"/src/components/ViewGateOverlay.tsx:4373",style:{color:"#0f172a",fontSize:"18px",fontWeight:800,margin:"0 0 8px 0"},children:s==="es"?"No encontramos lo que buscas":"No results found"}),a.jsx("p",{"data-vg-id":"f01afcd6","data-source-path":"/src/components/ViewGateOverlay.tsx:4376",style:{color:"#64748b",fontSize:"15px",margin:0},children:s==="es"?"Intenta buscar con otros términos o revisa la sincronización":"Try searching with different terms or check synchronization"})]}):a.jsxs("div",{"data-vg-id":"2e7833b7","data-source-path":"/src/components/ViewGateOverlay.tsx:4226",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"100px 0",gap:"20px"},children:[a.jsx("div",{"data-vg-id":"2e7833b8","data-source-path":"/src/components/ViewGateOverlay.tsx:4227",className:"vg-spinner",style:{width:"40px",height:"40px",border:"3px solid rgba(99, 102, 241, 0.1)",borderTopColor:"#6366f1"}}),a.jsx("p",{"data-vg-id":"f01afc98","data-source-path":"/src/components/ViewGateOverlay.tsx:4228",style:{color:"#64748b",fontSize:"15px",fontWeight:600},children:s==="es"?"Cargando endpoints...":"Loading endpoints..."})]})}),a.jsxs("div",{"data-vg-id":"2e7833f8","data-source-path":"/src/components/ViewGateOverlay.tsx:4383",style:{padding:"24px 40px",borderTop:"1px solid rgba(0,0,0,0.06)",background:"white",display:"flex",alignItems:"center",justifyContent:"space-between",gap:"20px"},children:[a.jsxs("div",{"data-vg-id":"2e7833f9","data-source-path":"/src/components/ViewGateOverlay.tsx:4384",style:{display:"flex",alignItems:"center",gap:"12px"},children:[a.jsxs("div",{"data-vg-id":"2e7833fa","data-source-path":"/src/components/ViewGateOverlay.tsx:4385",style:{padding:"6px 12px",background:"#f1f5f9",borderRadius:"10px",fontSize:"14px",fontWeight:700,color:"#475569"},children:[_.length," ",s==="es"?"seleccionados":"selected"]}),_.length>0&&a.jsx("button",{"data-vg-id":"5861c0f8","data-source-path":"/src/components/ViewGateOverlay.tsx:4389",onClick:()=>{ce([]),ft&&pa([])},style:{background:"none",border:"none",color:"#6366f1",fontSize:"14px",fontWeight:700,cursor:"pointer",padding:"4px 8px"},children:s==="es"?"Desmarcar todos":"Deselect all"})]}),a.jsx("div",{"data-vg-id":"2e7833fc","data-source-path":"/src/components/ViewGateOverlay.tsx:4400",style:{display:"flex",gap:"12px"},children:a.jsx("button",{"data-vg-id":"5861c0fa","data-source-path":"/src/components/ViewGateOverlay.tsx:4401",onClick:()=>{ft&&pa(_),Y(!1)},style:{minWidth:"160px",padding:"14px 28px",borderRadius:"16px",fontSize:"15px",fontWeight:850,border:"none",background:"var(--vg-primary-gradient)",color:"white",cursor:"pointer",boxShadow:"0 10px 25px -5px rgba(99, 102, 241, 0.45)",transition:"all 0.2s",display:"flex",alignItems:"center",justifyContent:"center"},onMouseEnter:r=>{r.currentTarget.style.transform="translateY(-2px)",r.currentTarget.style.boxShadow="0 15px 30px -5px rgba(99, 102, 241, 0.6)"},onMouseLeave:r=>{r.currentTarget.style.transform="translateY(0)",r.currentTarget.style.boxShadow="0 10px 25px -5px rgba(99, 102, 241, 0.45)"},children:s==="es"?"Confirmar Selección":"Confirm Selection"})})]})]})}),dt?.contract&&a.jsx("div",{"data-vg-id":"2e7833fe","data-source-path":"/src/components/ViewGateOverlay.tsx:4435",className:"vg-animate-fade",style:{position:"fixed",left:Math.min(dt.x,window.innerWidth-420),top:Math.min(dt.y,window.innerHeight-300),width:"400px",zIndex:$e+500,pointerEvents:"none"},children:a.jsxs("div",{"data-vg-id":"2e783414","data-source-path":"/src/components/ViewGateOverlay.tsx:4443",className:"vg-glassmorphism",style:{padding:"20px",background:"rgba(15, 23, 42, 0.95)",backdropFilter:"blur(20px)",border:"1px solid rgba(255, 255, 255, 0.1)",borderRadius:"20px",boxShadow:"0 20px 40px rgba(0,0,0,0.4)",display:"flex",flexDirection:"column",gap:"12px"},children:[a.jsxs("div",{"data-vg-id":"2e783415","data-source-path":"/src/components/ViewGateOverlay.tsx:4454",style:{display:"flex",alignItems:"center",gap:"8px"},children:[a.jsx("div",{"data-vg-id":"2e783416","data-source-path":"/src/components/ViewGateOverlay.tsx:4455",style:{padding:"4px 10px",background:"rgba(99, 102, 241, 0.2)",borderRadius:"8px",fontSize:"11px",fontWeight:900,color:"#818cf8",textTransform:"uppercase"},children:s==="es"?"CONTRATO":"CONTRACT"}),a.jsxs("span",{"data-vg-id":"81620ac","data-source-path":"/src/components/ViewGateOverlay.tsx:4464",style:{color:"rgba(255, 255, 255, 0.5)",fontSize:"12px",fontWeight:600},children:[dt.method," ",dt.path]})]}),a.jsx("div",{"data-vg-id":"2e783418","data-source-path":"/src/components/ViewGateOverlay.tsx:4466",className:"vg-custom-scrollbar",style:{maxHeight:"250px",overflowY:"auto",background:"rgba(0,0,0,0.3)",borderRadius:"12px",padding:"12px"},children:a.jsx("pre",{"data-vg-id":"b7af092b","data-source-path":"/src/components/ViewGateOverlay.tsx:4473",style:{margin:0,fontSize:"11px",color:"#94a3b8",whiteSpace:"pre-wrap",wordBreak:"break-all",lineHeight:1.5,fontFamily:"JetBrains Mono, Fira Code, monospace"},children:dt.contract})})]})}),ft&&a.jsx("div",{"data-vg-id":"2e78341a","data-source-path":"/src/components/ViewGateOverlay.tsx:4492",className:"vg-animate-fade",style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(11, 15, 25, 0.4)",backdropFilter:"blur(8px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:$e+50},children:a.jsxs("div",{"data-vg-id":"2e78341b","data-source-path":"/src/components/ViewGateOverlay.tsx:4498",className:"vg-glassmorphism vg-animate-slide",style:{width:"600px",maxWidth:"90vw",maxHeight:"90vh",overflowY:"auto",background:"#ffffff",borderRadius:"24px",padding:"32px",boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.25)",display:"flex",flexDirection:"column",gap:"24px"},children:[a.jsxs("div",{"data-vg-id":"2e78341c","data-source-path":"/src/components/ViewGateOverlay.tsx:4509",style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[a.jsx("h2",{"data-vg-id":"530b1b2","data-source-path":"/src/components/ViewGateOverlay.tsx:4510",style:{margin:0,fontSize:"20px",fontWeight:800,color:"#1e293b"},children:s==="es"?"Editar Comentario":"Edit Comment"}),a.jsx("button",{"data-vg-id":"5861c130","data-source-path":"/src/components/ViewGateOverlay.tsx:4513",onClick:()=>da(null),style:{background:"none",border:"none",cursor:"pointer",color:"#94a3b8"},children:a.jsx(jt,{"data-vg-id":"eec8c8fb","data-source-path":"/src/components/ViewGateOverlay.tsx:4514",size:24})})]}),a.jsxs("div",{"data-vg-id":"2e783435","data-source-path":"/src/components/ViewGateOverlay.tsx:4518",style:{display:"flex",flexDirection:"column",gap:"16px"},children:[a.jsxs("div",{"data-vg-id":"2e783436","data-source-path":"/src/components/ViewGateOverlay.tsx:4519",children:[a.jsx("label",{"data-vg-id":"feec109a","data-source-path":"/src/components/ViewGateOverlay.tsx:4520",style:{display:"block",fontSize:"12px",fontWeight:700,color:"#64748b",marginBottom:"8px",textTransform:"uppercase",letterSpacing:"0.5px"},children:o.priority}),a.jsx("div",{"data-vg-id":"2e783438","data-source-path":"/src/components/ViewGateOverlay.tsx:4521",style:{display:"flex",gap:"8px"},children:["low","medium","high","urgent"].map(r=>a.jsx("button",{onClick:()=>Re(r),style:{flex:1,padding:"10px 12px",borderRadius:"12px",fontSize:"13px",fontWeight:800,border:"2px solid",borderColor:pe===r?r==="low"?"#10b981":r==="medium"?"#6366f1":r==="high"?"#f59e0b":"#ef4444":"#f1f5f9",backgroundColor:pe===r?r==="low"?"#ecfdf5":r==="medium"?"#eef2ff":r==="high"?"#fffbeb":"#fef2f2":"white",color:pe===r?r==="low"?"#059669":r==="medium"?"#4338ca":r==="high"?"#b45309":"#b91c1c":"#64748b",cursor:"pointer",transition:"all 0.2s",textTransform:"capitalize"},children:o[r]},r))})]}),a.jsxs("div",{"data-vg-id":"2e783439","data-source-path":"/src/components/ViewGateOverlay.tsx:4541",style:{marginBottom:"8px"},children:[a.jsx("label",{"data-vg-id":"feec109d","data-source-path":"/src/components/ViewGateOverlay.tsx:4542",style:{display:"block",fontSize:"12px",fontWeight:700,color:"#64748b",marginBottom:"8px",textTransform:"uppercase",letterSpacing:"0.5px"},children:o.focusAreas}),a.jsx("div",{"data-vg-id":"2e78343b","data-source-path":"/src/components/ViewGateOverlay.tsx:4543",style:{display:"flex",gap:"8px"},children:[{id:"frontend",label:o.frontend,icon:a.jsx(Ft,{"data-vg-id":"b806c369","data-source-path":"/src/components/ViewGateOverlay.tsx:4545",size:14}),color:"#10b981",bg:"#ecfdf5",border:"#d1fae5"},{id:"backend",label:o.backend,icon:a.jsx(Be,{"data-vg-id":"b1e4c70e","data-source-path":"/src/components/ViewGateOverlay.tsx:4546",size:14}),color:"#6366f1",bg:"#eef2ff",border:"#e0e7ff"},{id:"ux",label:o.ux,icon:a.jsx(kt,{"data-vg-id":"ea069dcb","data-source-path":"/src/components/ViewGateOverlay.tsx:4547",size:14}),color:"#d946ef",bg:"#fdf4ff",border:"#f5d0fe"}].filter(r=>r.id==="backend"?oa:r.id==="ux"?ct:!0).map(r=>{const c=gt.includes(r.id);return a.jsxs("button",{onClick:()=>{Ya(c?gt.filter(d=>d!==r.id):[...gt,r.id])},style:{flex:1,padding:"10px 4px",borderRadius:"12px",fontSize:"12px",fontWeight:700,border:"2px solid",borderColor:c?r.color:"#f1f5f9",backgroundColor:c?r.bg:"white",color:c?r.color:"#64748b",cursor:"pointer",transition:"all 0.2s",display:"flex",alignItems:"center",justifyContent:"center",gap:"6px"},children:[r.icon,r.label]},r.id)})})]}),gt.includes("ux")&&a.jsxs("div",{"data-vg-id":"2e783454","data-source-path":"/src/components/ViewGateOverlay.tsx:4583",className:"vg-animate-slide",style:{padding:"16px",borderRadius:"16px",background:"#f8fafc",border:"1px solid #e2e8f0"},children:[a.jsxs("div",{"data-vg-id":"2e783455","data-source-path":"/src/components/ViewGateOverlay.tsx:4584",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"12px"},children:[a.jsxs("div",{"data-vg-id":"2e783456","data-source-path":"/src/components/ViewGateOverlay.tsx:4585",style:{display:"flex",alignItems:"center",gap:"6px"},children:[a.jsx(Bt,{"data-vg-id":"d88165bc","data-source-path":"/src/components/ViewGateOverlay.tsx:4586",size:14,style:{color:"#d946ef"}}),a.jsx("span",{"data-vg-id":"81620ed","data-source-path":"/src/components/ViewGateOverlay.tsx:4587",style:{fontSize:"11px",fontWeight:800,color:"#64748b",textTransform:"uppercase"},children:o.figmaLink})]}),a.jsxs("button",{"data-vg-id":"5861c156","data-source-path":"/src/components/ViewGateOverlay.tsx:4589",onClick:()=>Nt([...at,{name:"",link:""}]),style:{background:"#fdf4ff",border:"1px solid #f5d0fe",color:"#d946ef",borderRadius:"8px",padding:"4px 10px",fontSize:"11px",fontWeight:800,cursor:"pointer"},children:["+ ",o.addLink]})]}),a.jsx("div",{"data-vg-id":"2e78345a","data-source-path":"/src/components/ViewGateOverlay.tsx:4596",style:{display:"flex",flexDirection:"column",gap:"8px"},children:at.map((r,c)=>a.jsxs("div",{"data-vg-id":"2e78345b","data-source-path":"/src/components/ViewGateOverlay.tsx:4598",style:{display:"flex",gap:"8px"},children:[a.jsx("input",{"data-vg-id":"88e39135","data-source-path":"/src/components/ViewGateOverlay.tsx:4599",type:"text",className:"vg-textarea",style:{padding:"8px 12px",fontSize:"12px",minHeight:"auto",borderRadius:"10px"},placeholder:o.figmaNamePlaceholder,value:r.name,onChange:d=>{const f=[...at];f[c]&&(f[c].name=d.target.value,Nt(f))}}),a.jsx("input",{"data-vg-id":"88e39136","data-source-path":"/src/components/ViewGateOverlay.tsx:4610",type:"text",className:"vg-textarea",style:{padding:"8px 12px",fontSize:"12px",minHeight:"auto",borderRadius:"10px"},placeholder:o.figmaLinkPlaceholder,value:r.link,onChange:d=>{const f=[...at];f[c]&&(f[c].link=d.target.value,Nt(f))}}),at.length>1&&a.jsx("button",{"data-vg-id":"5861c3fb","data-source-path":"/src/components/ViewGateOverlay.tsx:4622",onClick:()=>Nt(at.filter((d,f)=>f!==c)),style:{color:"#ef4444",background:"none",border:"none",cursor:"pointer"},children:a.jsx(Ut,{"data-vg-id":"45b448e4","data-source-path":"/src/components/ViewGateOverlay.tsx:4623",size:16})})]},c))})]}),oa&>.includes("backend")&&a.jsxs("div",{"data-vg-id":"2e783700","data-source-path":"/src/components/ViewGateOverlay.tsx:4634",className:"vg-animate-slide",style:{padding:"16px",borderRadius:"16px",background:"#f8fafc",border:"1px solid #e2e8f0"},children:[a.jsxs("div",{"data-vg-id":"2e783701","data-source-path":"/src/components/ViewGateOverlay.tsx:4635",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px"},children:[a.jsxs("div",{"data-vg-id":"2e783702","data-source-path":"/src/components/ViewGateOverlay.tsx:4636",style:{display:"flex",alignItems:"center",gap:"6px"},children:[a.jsx(Be,{"data-vg-id":"b1e4c9bf","data-source-path":"/src/components/ViewGateOverlay.tsx:4637",size:14,style:{color:"#6366f1"}}),a.jsx("span",{"data-vg-id":"8162399","data-source-path":"/src/components/ViewGateOverlay.tsx:4638",style:{fontSize:"11px",fontWeight:800,color:"#64748b",textTransform:"uppercase"},children:o.endpoint})]}),Je.length>0&&a.jsxs("span",{"data-vg-id":"816239a","data-source-path":"/src/components/ViewGateOverlay.tsx:4641",style:{fontSize:"10px",background:"#eef2ff",color:"#6366f1",padding:"2px 8px",borderRadius:"12px",fontWeight:700},children:[Je.length," ",s==="es"?"seleccionados":"selected"]})]}),a.jsxs("button",{"data-vg-id":"5861c418","data-source-path":"/src/components/ViewGateOverlay.tsx:4646",onClick:()=>Y(!0),style:{width:"100%",padding:"12px 16px",fontSize:"14px",borderRadius:"12px",background:"white",border:"1px solid #e2e8f0",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",textAlign:"left",color:Je.length>0?"#0f172a":"#94a3b8"},children:[a.jsx("div",{"data-vg-id":"2e78371c","data-source-path":"/src/components/ViewGateOverlay.tsx:4650",style:{display:"flex",gap:"4px",overflow:"hidden"},children:Je.length>0?Je.slice(0,2).map(r=>a.jsx("span",{"data-vg-id":"81623b2","data-source-path":"/src/components/ViewGateOverlay.tsx:4652",style:{background:"#eef2ff",color:"#6366f1",padding:"1px 6px",borderRadius:"4px",fontSize:"11px",fontWeight:600},children:r.split("|").pop()},r)).concat(Je.length>2?[a.jsxs("span",{"data-vg-id":"81623b3","data-source-path":"/src/components/ViewGateOverlay.tsx:4652",children:["+",Je.length-2]},"plus")]:[]):o.selectEndpoint}),a.jsx(js,{"data-vg-id":"1cd393eb","data-source-path":"/src/components/ViewGateOverlay.tsx:4655",size:14,style:{color:"#64748b"}})]})]}),a.jsxs("div",{"data-vg-id":"2e783720","data-source-path":"/src/components/ViewGateOverlay.tsx:4660",children:[a.jsx("label",{"data-vg-id":"feec1384","data-source-path":"/src/components/ViewGateOverlay.tsx:4661",style:{display:"block",fontSize:"12px",fontWeight:700,color:"#64748b",marginBottom:"8px",textTransform:"uppercase",letterSpacing:"0.5px"},children:s==="es"?"Mensaje":"Message"}),a.jsx("textarea",{className:"vg-textarea",value:wr,onChange:r=>Sr(r.target.value),rows:5,style:{minHeight:"120px",fontSize:"15px"}})]})]}),a.jsxs("div",{"data-vg-id":"2e783722","data-source-path":"/src/components/ViewGateOverlay.tsx:4672",style:{display:"flex",justifyContent:"flex-end",gap:"12px",marginTop:"16px",paddingTop:"24px",borderTop:"1px solid #f1f5f9"},children:[a.jsx("button",{"data-vg-id":"5861c420","data-source-path":"/src/components/ViewGateOverlay.tsx:4673",className:"vg-button-ghost",style:{padding:"12px 24px",fontSize:"14px",borderRadius:"12px",color:"#64748b",fontWeight:700},onClick:()=>{da(null),ce([])},children:o.cancel}),a.jsx("button",{className:"vg-button-primary vg-animate-pop",style:{padding:"12px 32px",fontSize:"15px",borderRadius:"12px",background:"var(--vg-primary-gradient)",fontWeight:800,boxShadow:"0 10px 25px -5px rgba(99, 102, 241, 0.45)",opacity:ua?.7:1,cursor:ua?"not-allowed":"pointer"},disabled:ua,onClick:async()=>{kr(!0);try{(await fetch(`${i}/api/annotations/${ft}`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:D?`Bearer ${D}`:"","x-api-key":n||""},body:JSON.stringify({message:wr,priority:pe,focusAreas:gt,figmaReference:at,backendEndpoints:Je})})).ok&&(da(null),It(),t(o.updateSuccess,"success"))}catch{}finally{kr(!1)}},children:ua?"...":o.save})]})]})})]})]})};function Da(e,t,s){if(!t.endsWith(".tsx")&&!t.endsWith(".jsx")||t.includes("node_modules"))return e;const o=y=>y.replace(/\\/g,"/"),n=o(t).replace(o(s),""),i=y=>{let x=0;for(let m=0;m<y.length;m++)x=Math.imul(31,x)+y.charCodeAt(m)|0;return(x>>>0).toString(16)};let l=0;return e.split(`
|
|
63
|
+
`).map((y,x)=>{const m=x+1;return y.replace(/(^|[^a-zA-Z0-9])<([a-zA-Z][a-zA-Z0-9\.]*)(?=[ \t\n\/\>])/g,(G,j,C)=>{if(G.includes("data-source-path")||G.includes("data-vg-id")||C==="Fragment"||C==="React.Fragment")return G;l++;const E=i(`${n}:${C}:${l}`);return`${j}<${C} data-vg-id="${E}" data-source-path="${n}:${m}"`})}).join(`
|
|
64
|
+
`)}function Rn(){return{name:"vite-plugin-viewgate",enforce:"pre",transform(e,t){return{code:Da(e,t,process.cwd()),map:null}}}}function _n(e){const t=this.resourcePath;return t?(this.getOptions&&this.getOptions(),Da(e,t,process.cwd())):e}function Gn(e){return _n.call(this,e)}Ce.ViewGate=Oo,Ce.ViewGateOverlay=tr,Ce.transformSourcePaths=Da,Ce.useViewGate=Vs,Ce.viewgateNextLoader=Gn,Ce.viewgatePlugin=Rn,Object.defineProperty(Ce,Symbol.toStringTag,{value:"Module"})}));
|