viewgate-wrapper 1.12.0 → 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.
- package/dist/components/ShadowRootWrapper.d.ts.map +1 -1
- package/dist/components/ViewGateOverlay.d.ts +0 -1
- package/dist/components/ViewGateOverlay.d.ts.map +1 -1
- package/dist/components/ViewGateProvider.d.ts.map +1 -1
- package/dist/viewgate-wrapper.js +4309 -10095
- package/dist/viewgate-wrapper.umd.cjs +54 -11
- package/package.json +3 -2
|
@@ -1,21 +1,64 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode('@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap";@keyframes marching-ants{0%{background-position:0 0,0 100%,0 0,100% 0}to{background-position:20px 0,-20px 100%,0 -20px,100% 20px}}:root{--rc-drag-handle-size: 12px;--rc-drag-handle-mobile-size: 24px;--rc-drag-handle-bg-colour: rgba(0, 0, 0, .2);--rc-drag-bar-size: 6px;--rc-border-color: rgba(255, 255, 255, .7);--rc-focus-color: #0088ff}.ReactCrop{position:relative;display:inline-block;cursor:crosshair;max-width:100%}.ReactCrop *,.ReactCrop *:before,.ReactCrop *:after{box-sizing:border-box}.ReactCrop--disabled,.ReactCrop--locked{cursor:inherit}.ReactCrop__child-wrapper{overflow:hidden;max-height:inherit}.ReactCrop__child-wrapper>img,.ReactCrop__child-wrapper>video{display:block;max-width:100%;max-height:inherit}.ReactCrop:not(.ReactCrop--disabled) .ReactCrop__child-wrapper>img,.ReactCrop:not(.ReactCrop--disabled) .ReactCrop__child-wrapper>video{touch-action:none}.ReactCrop:not(.ReactCrop--disabled) .ReactCrop__crop-selection{touch-action:none}.ReactCrop__crop-mask{position:absolute;inset:0;pointer-events:none;width:calc(100% + .5px);height:calc(100% + .5px)}.ReactCrop__crop-selection{position:absolute;top:0;left:0;transform:translateZ(0);cursor:move}.ReactCrop--disabled .ReactCrop__crop-selection{cursor:inherit}.ReactCrop--circular-crop .ReactCrop__crop-selection{border-radius:50%}.ReactCrop--circular-crop .ReactCrop__crop-selection:after{pointer-events:none;content:"";position:absolute;inset:-1px;border:1px solid var(--rc-border-color);opacity:.3}.ReactCrop--no-animate .ReactCrop__crop-selection{outline:1px dashed white}.ReactCrop__crop-selection:not(.ReactCrop--no-animate .ReactCrop__crop-selection){animation:marching-ants 1s;background-image:linear-gradient(to right,#fff 50%,#444 50%),linear-gradient(to right,#fff 50%,#444 50%),linear-gradient(to bottom,#fff 50%,#444 50%),linear-gradient(to bottom,#fff 50%,#444 50%);background-size:10px 1px,10px 1px,1px 10px,1px 10px;background-position:0 0,0 100%,0 0,100% 0;background-repeat:repeat-x,repeat-x,repeat-y,repeat-y;color:#fff;animation-play-state:running;animation-timing-function:linear;animation-iteration-count:infinite}.ReactCrop__crop-selection:focus{outline:2px solid var(--rc-focus-color);outline-offset:-1px}.ReactCrop--invisible-crop .ReactCrop__crop-mask,.ReactCrop--invisible-crop .ReactCrop__crop-selection{display:none}.ReactCrop__rule-of-thirds-vt:before,.ReactCrop__rule-of-thirds-vt:after,.ReactCrop__rule-of-thirds-hz:before,.ReactCrop__rule-of-thirds-hz:after{content:"";display:block;position:absolute;background-color:#fff6}.ReactCrop__rule-of-thirds-vt:before,.ReactCrop__rule-of-thirds-vt:after{width:1px;height:100%}.ReactCrop__rule-of-thirds-vt:before{left:33.3333333333%}.ReactCrop__rule-of-thirds-vt:after{left:66.6666666667%}.ReactCrop__rule-of-thirds-hz:before,.ReactCrop__rule-of-thirds-hz:after{width:100%;height:1px}.ReactCrop__rule-of-thirds-hz:before{top:33.3333333333%}.ReactCrop__rule-of-thirds-hz:after{top:66.6666666667%}.ReactCrop__drag-handle{position:absolute;width:var(--rc-drag-handle-size);height:var(--rc-drag-handle-size);background-color:var(--rc-drag-handle-bg-colour);border:1px solid var(--rc-border-color)}.ReactCrop__drag-handle:focus{background:var(--rc-focus-color)}.ReactCrop .ord-nw{top:0;left:0;transform:translate(-50%,-50%);cursor:nw-resize}.ReactCrop .ord-n{top:0;left:50%;transform:translate(-50%,-50%);cursor:n-resize}.ReactCrop .ord-ne{top:0;right:0;transform:translate(50%,-50%);cursor:ne-resize}.ReactCrop .ord-e{top:50%;right:0;transform:translate(50%,-50%);cursor:e-resize}.ReactCrop .ord-se{bottom:0;right:0;transform:translate(50%,50%);cursor:se-resize}.ReactCrop .ord-s{bottom:0;left:50%;transform:translate(-50%,50%);cursor:s-resize}.ReactCrop .ord-sw{bottom:0;left:0;transform:translate(-50%,50%);cursor:sw-resize}.ReactCrop .ord-w{top:50%;left:0;transform:translate(-50%,-50%);cursor:w-resize}.ReactCrop__disabled .ReactCrop__drag-handle{cursor:inherit}.ReactCrop__drag-bar{position:absolute}.ReactCrop__drag-bar.ord-n{top:0;left:0;width:100%;height:var(--rc-drag-bar-size);transform:translateY(-50%)}.ReactCrop__drag-bar.ord-e{right:0;top:0;width:var(--rc-drag-bar-size);height:100%;transform:translate(50%)}.ReactCrop__drag-bar.ord-s{bottom:0;left:0;width:100%;height:var(--rc-drag-bar-size);transform:translateY(50%)}.ReactCrop__drag-bar.ord-w{top:0;left:0;width:var(--rc-drag-bar-size);height:100%;transform:translate(-50%)}.ReactCrop--new-crop .ReactCrop__drag-bar,.ReactCrop--new-crop .ReactCrop__drag-handle,.ReactCrop--fixed-aspect .ReactCrop__drag-bar,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-n,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-e,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-s,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-w{display:none}@media(pointer:coarse){.ReactCrop .ord-n,.ReactCrop .ord-e,.ReactCrop .ord-s,.ReactCrop .ord-w{display:none}.ReactCrop__drag-handle{width:var(--rc-drag-handle-mobile-size);height:var(--rc-drag-handle-mobile-size)}}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}}')),document.head.appendChild(r)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
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} />`,$,X,GA,X),te[X+$]=!0)}if(X=null,V!==void 0&&(e(V),X=""+V),o(k)&&(e(k.key),X=""+k.key),"key"in k){V={};for(var Re in k)Re!=="key"&&(V[Re]=k[Re])}else V=k;return X&&a(V,typeof x=="function"?x.displayName||x.name||"Unknown":x),l(x,X,V,s(),J,MA)}function B(x){h(x)?x._store&&(x._store.validated=1):typeof x=="object"&&x!==null&&x.$$typeof===O&&(x._payload.status==="fulfilled"?h(x._payload.value)&&x._payload.value._store&&(x._payload.value._store.validated=1):x._store&&(x._store.validated=1))}function h(x){return typeof x=="object"&&x!==null&&x.$$typeof===m}var u=p,m=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),L=Symbol.for("react.consumer"),K=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),sA=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),vA=Symbol.for("react.activity"),AA=Symbol.for("react.client.reference"),QA=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,N=Object.prototype.hasOwnProperty,yA=Array.isArray,Y=console.createTask?console.createTask:function(){return null};u={react_stack_bottom_frame:function(x){return x()}};var IA,jA={},Ue=u.react_stack_bottom_frame.bind(u,n)(),YA=Y(r(n)),te={};kt.Fragment=y,kt.jsx=function(x,k,V){var $=1e4>QA.recentlyCreatedOwnerStacks++;return g(x,k,V,!1,$?Error("react-stack-top-frame"):Ue,$?Y(r(x)):YA)},kt.jsxs=function(x,k,V){var $=1e4>QA.recentlyCreatedOwnerStacks++;return g(x,k,V,!0,$?Error("react-stack-top-frame"):Ue,$?Y(r(x)):YA)}})()),kt}var Ro;function rl(){return Ro||(Ro=1,process.env.NODE_ENV==="production"?Er.exports=el():Er.exports=tl()),Er.exports}var c=rl(),sl=Object.defineProperty,nl=(t,A,e)=>A in t?sl(t,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[A]=e,lA=(t,A,e)=>nl(t,typeof A!="symbol"?A+"":A,e);const vr={x:0,y:0,width:0,height:0,unit:"px"},at=(t,A,e)=>Math.min(Math.max(t,A),e),ol=(...t)=>t.filter(A=>A&&typeof A=="string").join(" "),ko=(t,A)=>t===A||t.width===A.width&&t.height===A.height&&t.x===A.x&&t.y===A.y&&t.unit===A.unit;function it(t,A,e){return t.unit==="%"?{...vr,...t,unit:"%"}:{unit:"%",x:t.x?t.x/A*100:0,y:t.y?t.y/e*100:0,width:t.width?t.width/A*100:0,height:t.height?t.height/e*100:0}}function ye(t,A,e){return t.unit?t.unit==="px"?{...vr,...t,unit:"px"}:{unit:"px",x:t.x?t.x*A/100:0,y:t.y?t.y*e/100:0,width:t.width?t.width*A/100:0,height:t.height?t.height*e/100:0}:{...vr,...t,unit:"px"}}function Mo(t,A,e,r,s,n=0,o=0,a=r,i=s){const l={...t};let g=Math.min(n,r),B=Math.min(o,s),h=Math.min(a,r),u=Math.min(i,s);A&&(A>1?(g=o?o*A:g,B=g/A,h=a*A):(B=n?n/A:B,g=B*A,u=i/A)),l.y<0&&(l.height=Math.max(l.height+l.y,B),l.y=0),l.x<0&&(l.width=Math.max(l.width+l.x,g),l.x=0);const m=r-(l.x+l.width);m<0&&(l.x=Math.min(l.x,r-g),l.width+=m);const C=s-(l.y+l.height);if(C<0&&(l.y=Math.min(l.y,s-B),l.height+=C),l.width<g&&((e==="sw"||e=="nw")&&(l.x-=g-l.width),l.width=g),l.height<B&&((e==="nw"||e=="ne")&&(l.y-=B-l.height),l.height=B),l.width>h&&((e==="sw"||e=="nw")&&(l.x-=h-l.width),l.width=h),l.height>u&&((e==="nw"||e=="ne")&&(l.y-=u-l.height),l.height=u),A){const y=l.width/l.height;if(y<A){const F=Math.max(l.width/A,B);(e==="nw"||e=="ne")&&(l.y-=F-l.height),l.height=F}else if(y>A){const F=Math.max(l.height*A,g);(e==="sw"||e=="nw")&&(l.x-=F-l.width),l.width=F}}return l}function al(t,A,e,r){const s={...t};return A==="ArrowLeft"?r==="nw"?(s.x-=e,s.y-=e,s.width+=e,s.height+=e):r==="w"?(s.x-=e,s.width+=e):r==="sw"?(s.x-=e,s.width+=e,s.height+=e):r==="ne"?(s.y+=e,s.width-=e,s.height-=e):r==="e"?s.width-=e:r==="se"&&(s.width-=e,s.height-=e):A==="ArrowRight"&&(r==="nw"?(s.x+=e,s.y+=e,s.width-=e,s.height-=e):r==="w"?(s.x+=e,s.width-=e):r==="sw"?(s.x+=e,s.width-=e,s.height-=e):r==="ne"?(s.y-=e,s.width+=e,s.height+=e):r==="e"?s.width+=e:r==="se"&&(s.width+=e,s.height+=e)),A==="ArrowUp"?r==="nw"?(s.x-=e,s.y-=e,s.width+=e,s.height+=e):r==="n"?(s.y-=e,s.height+=e):r==="ne"?(s.y-=e,s.width+=e,s.height+=e):r==="sw"?(s.x+=e,s.width-=e,s.height-=e):r==="s"?s.height-=e:r==="se"&&(s.width-=e,s.height-=e):A==="ArrowDown"&&(r==="nw"?(s.x+=e,s.y+=e,s.width-=e,s.height-=e):r==="n"?(s.y+=e,s.height-=e):r==="ne"?(s.y+=e,s.width-=e,s.height-=e):r==="sw"?(s.x-=e,s.width+=e,s.height+=e):r==="s"?s.height+=e:r==="se"&&(s.width+=e,s.height+=e)),s}const ct={capture:!0,passive:!1};let il=0;const Ne=class ae extends p.PureComponent{constructor(){super(...arguments),lA(this,"docMoveBound",!1),lA(this,"mouseDownOnCrop",!1),lA(this,"dragStarted",!1),lA(this,"evData",{startClientX:0,startClientY:0,startCropX:0,startCropY:0,clientX:0,clientY:0,isResize:!0}),lA(this,"componentRef",p.createRef()),lA(this,"mediaRef",p.createRef()),lA(this,"resizeObserver"),lA(this,"initChangeCalled",!1),lA(this,"instanceId",`rc-${il++}`),lA(this,"state",{cropIsActive:!1,newCropIsBeingDrawn:!1}),lA(this,"onCropPointerDown",A=>{const{crop:e,disabled:r}=this.props,s=this.getBox();if(!e)return;const n=ye(e,s.width,s.height);if(r)return;A.cancelable&&A.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});const o=A.target.dataset.ord,a=!!o;let i=A.clientX,l=A.clientY,g=n.x,B=n.y;if(o){const h=A.clientX-s.x,u=A.clientY-s.y;let m=0,C=0;o==="ne"||o=="e"?(m=h-(n.x+n.width),C=u-n.y,g=n.x,B=n.y+n.height):o==="se"||o==="s"?(m=h-(n.x+n.width),C=u-(n.y+n.height),g=n.x,B=n.y):o==="sw"||o=="w"?(m=h-n.x,C=u-(n.y+n.height),g=n.x+n.width,B=n.y):(o==="nw"||o=="n")&&(m=h-n.x,C=u-n.y,g=n.x+n.width,B=n.y+n.height),i=g+s.x+m,l=B+s.y+C}this.evData={startClientX:i,startClientY:l,startCropX:g,startCropY:B,clientX:A.clientX,clientY:A.clientY,isResize:a,ord:o},this.mouseDownOnCrop=!0,this.setState({cropIsActive:!0})}),lA(this,"onComponentPointerDown",A=>{const{crop:e,disabled:r,locked:s,keepSelection:n,onChange:o}=this.props,a=this.getBox();if(r||s||n&&e)return;A.cancelable&&A.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});const i=A.clientX-a.x,l=A.clientY-a.y,g={unit:"px",x:i,y:l,width:0,height:0};this.evData={startClientX:A.clientX,startClientY:A.clientY,startCropX:i,startCropY:l,clientX:A.clientX,clientY:A.clientY,isResize:!0},this.mouseDownOnCrop=!0,o(ye(g,a.width,a.height),it(g,a.width,a.height)),this.setState({cropIsActive:!0,newCropIsBeingDrawn:!0})}),lA(this,"onDocPointerMove",A=>{const{crop:e,disabled:r,onChange:s,onDragStart:n}=this.props,o=this.getBox();if(r||!e||!this.mouseDownOnCrop)return;A.cancelable&&A.preventDefault(),this.dragStarted||(this.dragStarted=!0,n&&n(A));const{evData:a}=this;a.clientX=A.clientX,a.clientY=A.clientY;let i;a.isResize?i=this.resizeCrop():i=this.dragCrop(),ko(e,i)||s(ye(i,o.width,o.height),it(i,o.width,o.height))}),lA(this,"onComponentKeyDown",A=>{const{crop:e,disabled:r,onChange:s,onComplete:n}=this.props;if(r)return;const o=A.key;let a=!1;if(!e)return;const i=this.getBox(),l=this.makePixelCrop(i),g=(navigator.platform.match("Mac")?A.metaKey:A.ctrlKey)?ae.nudgeStepLarge:A.shiftKey?ae.nudgeStepMedium:ae.nudgeStep;if(o==="ArrowLeft"?(l.x-=g,a=!0):o==="ArrowRight"?(l.x+=g,a=!0):o==="ArrowUp"?(l.y-=g,a=!0):o==="ArrowDown"&&(l.y+=g,a=!0),a){A.cancelable&&A.preventDefault(),l.x=at(l.x,0,i.width-l.width),l.y=at(l.y,0,i.height-l.height);const B=ye(l,i.width,i.height),h=it(l,i.width,i.height);s(B,h),n&&n(B,h)}}),lA(this,"onHandlerKeyDown",(A,e)=>{const{aspect:r=0,crop:s,disabled:n,minWidth:o=0,minHeight:a=0,maxWidth:i,maxHeight:l,onChange:g,onComplete:B}=this.props,h=this.getBox();if(n||!s)return;if(A.key==="ArrowUp"||A.key==="ArrowDown"||A.key==="ArrowLeft"||A.key==="ArrowRight")A.stopPropagation(),A.preventDefault();else return;const u=(navigator.platform.match("Mac")?A.metaKey:A.ctrlKey)?ae.nudgeStepLarge:A.shiftKey?ae.nudgeStepMedium:ae.nudgeStep,m=ye(s,h.width,h.height),C=al(m,A.key,u,e),y=Mo(C,r,e,h.width,h.height,o,a,i,l);if(!ko(s,y)){const F=it(y,h.width,h.height);g(y,F),B&&B(y,F)}}),lA(this,"onDocPointerDone",A=>{const{crop:e,disabled:r,onComplete:s,onDragEnd:n}=this.props,o=this.getBox();this.unbindDocMove(),!(r||!e)&&this.mouseDownOnCrop&&(this.mouseDownOnCrop=!1,this.dragStarted=!1,n&&n(A),s&&s(ye(e,o.width,o.height),it(e,o.width,o.height)),this.setState({cropIsActive:!1,newCropIsBeingDrawn:!1}))}),lA(this,"onDragFocus",()=>{var A;(A=this.componentRef.current)==null||A.scrollTo(0,0)})}get document(){return document}getBox(){const A=this.mediaRef.current;if(!A)return{x:0,y:0,width:0,height:0};const{x:e,y:r,width:s,height:n}=A.getBoundingClientRect();return{x:e,y:r,width:s,height:n}}componentDidUpdate(A){const{crop:e,onComplete:r}=this.props;if(r&&!A.crop&&e){const{width:s,height:n}=this.getBox();s&&n&&r(ye(e,s,n),it(e,s,n))}}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect(),this.unbindDocMove()}bindDocMove(){this.docMoveBound||(this.document.addEventListener("pointermove",this.onDocPointerMove,ct),this.document.addEventListener("pointerup",this.onDocPointerDone,ct),this.document.addEventListener("pointercancel",this.onDocPointerDone,ct),this.docMoveBound=!0)}unbindDocMove(){this.docMoveBound&&(this.document.removeEventListener("pointermove",this.onDocPointerMove,ct),this.document.removeEventListener("pointerup",this.onDocPointerDone,ct),this.document.removeEventListener("pointercancel",this.onDocPointerDone,ct),this.docMoveBound=!1)}getCropStyle(){const{crop:A}=this.props;if(A)return{top:`${A.y}${A.unit}`,left:`${A.x}${A.unit}`,width:`${A.width}${A.unit}`,height:`${A.height}${A.unit}`}}dragCrop(){const{evData:A}=this,e=this.getBox(),r=this.makePixelCrop(e),s=A.clientX-A.startClientX,n=A.clientY-A.startClientY;return r.x=at(A.startCropX+s,0,e.width-r.width),r.y=at(A.startCropY+n,0,e.height-r.height),r}getPointRegion(A,e,r,s){const{evData:n}=this,o=n.clientX-A.x,a=n.clientY-A.y;let i;s&&e?i=e==="nw"||e==="n"||e==="ne":i=a<n.startCropY;let l;return r&&e?l=e==="nw"||e==="w"||e==="sw":l=o<n.startCropX,l?i?"nw":"sw":i?"ne":"se"}resolveMinDimensions(A,e,r=0,s=0){const n=Math.min(r,A.width),o=Math.min(s,A.height);return!e||!n&&!o?[n,o]:e>1?n?[n,n/e]:[o*e,o]:o?[o*e,o]:[n,n/e]}resizeCrop(){const{evData:A}=this,{aspect:e=0,maxWidth:r,maxHeight:s}=this.props,n=this.getBox(),[o,a]=this.resolveMinDimensions(n,e,this.props.minWidth,this.props.minHeight);let i=this.makePixelCrop(n);const l=this.getPointRegion(n,A.ord,o,a),g=A.ord||l;let B=A.clientX-A.startClientX,h=A.clientY-A.startClientY;(o&&g==="nw"||g==="w"||g==="sw")&&(B=Math.min(B,-o)),(a&&g==="nw"||g==="n"||g==="ne")&&(h=Math.min(h,-a));const u={unit:"px",x:0,y:0,width:0,height:0};l==="ne"?(u.x=A.startCropX,u.width=B,e?(u.height=u.width/e,u.y=A.startCropY-u.height):(u.height=Math.abs(h),u.y=A.startCropY-u.height)):l==="se"?(u.x=A.startCropX,u.y=A.startCropY,u.width=B,e?u.height=u.width/e:u.height=h):l==="sw"?(u.x=A.startCropX+B,u.y=A.startCropY,u.width=Math.abs(B),e?u.height=u.width/e:u.height=h):l==="nw"&&(u.x=A.startCropX+B,u.width=Math.abs(B),e?(u.height=u.width/e,u.y=A.startCropY-u.height):(u.height=Math.abs(h),u.y=A.startCropY+h));const m=Mo(u,e,l,n.width,n.height,o,a,r,s);return e||ae.xyOrds.indexOf(g)>-1?i=m:ae.xOrds.indexOf(g)>-1?(i.x=m.x,i.width=m.width):ae.yOrds.indexOf(g)>-1&&(i.y=m.y,i.height=m.height),i.x=at(i.x,0,n.width-i.width),i.y=at(i.y,0,n.height-i.height),i}renderCropSelection(){const{ariaLabels:A=ae.defaultProps.ariaLabels,disabled:e,locked:r,renderSelectionAddon:s,ruleOfThirds:n,crop:o}=this.props,a=this.getCropStyle();if(o)return p.createElement("div",{style:a,className:"ReactCrop__crop-selection",onPointerDown:this.onCropPointerDown,"aria-label":A.cropArea,tabIndex:0,onKeyDown:this.onComponentKeyDown,role:"group"},!e&&!r&&p.createElement("div",{className:"ReactCrop__drag-elements",onFocus:this.onDragFocus},p.createElement("div",{className:"ReactCrop__drag-bar ord-n","data-ord":"n"}),p.createElement("div",{className:"ReactCrop__drag-bar ord-e","data-ord":"e"}),p.createElement("div",{className:"ReactCrop__drag-bar ord-s","data-ord":"s"}),p.createElement("div",{className:"ReactCrop__drag-bar ord-w","data-ord":"w"}),p.createElement("div",{className:"ReactCrop__drag-handle ord-nw","data-ord":"nw",tabIndex:0,"aria-label":A.nwDragHandle,onKeyDown:i=>this.onHandlerKeyDown(i,"nw"),role:"button"}),p.createElement("div",{className:"ReactCrop__drag-handle ord-n","data-ord":"n",tabIndex:0,"aria-label":A.nDragHandle,onKeyDown:i=>this.onHandlerKeyDown(i,"n"),role:"button"}),p.createElement("div",{className:"ReactCrop__drag-handle ord-ne","data-ord":"ne",tabIndex:0,"aria-label":A.neDragHandle,onKeyDown:i=>this.onHandlerKeyDown(i,"ne"),role:"button"}),p.createElement("div",{className:"ReactCrop__drag-handle ord-e","data-ord":"e",tabIndex:0,"aria-label":A.eDragHandle,onKeyDown:i=>this.onHandlerKeyDown(i,"e"),role:"button"}),p.createElement("div",{className:"ReactCrop__drag-handle ord-se","data-ord":"se",tabIndex:0,"aria-label":A.seDragHandle,onKeyDown:i=>this.onHandlerKeyDown(i,"se"),role:"button"}),p.createElement("div",{className:"ReactCrop__drag-handle ord-s","data-ord":"s",tabIndex:0,"aria-label":A.sDragHandle,onKeyDown:i=>this.onHandlerKeyDown(i,"s"),role:"button"}),p.createElement("div",{className:"ReactCrop__drag-handle ord-sw","data-ord":"sw",tabIndex:0,"aria-label":A.swDragHandle,onKeyDown:i=>this.onHandlerKeyDown(i,"sw"),role:"button"}),p.createElement("div",{className:"ReactCrop__drag-handle ord-w","data-ord":"w",tabIndex:0,"aria-label":A.wDragHandle,onKeyDown:i=>this.onHandlerKeyDown(i,"w"),role:"button"})),s&&p.createElement("div",{className:"ReactCrop__selection-addon",onPointerDown:i=>i.stopPropagation()},s(this.state)),n&&p.createElement(p.Fragment,null,p.createElement("div",{className:"ReactCrop__rule-of-thirds-hz"}),p.createElement("div",{className:"ReactCrop__rule-of-thirds-vt"})))}makePixelCrop(A){const e={...vr,...this.props.crop||{}};return ye(e,A.width,A.height)}render(){const{aspect:A,children:e,circularCrop:r,className:s,crop:n,disabled:o,locked:a,style:i,ruleOfThirds:l}=this.props,{cropIsActive:g,newCropIsBeingDrawn:B}=this.state,h=n?this.renderCropSelection():null,u=ol("ReactCrop",s,g&&"ReactCrop--active",o&&"ReactCrop--disabled",a&&"ReactCrop--locked",B&&"ReactCrop--new-crop",n&&A&&"ReactCrop--fixed-aspect",n&&r&&"ReactCrop--circular-crop",n&&l&&"ReactCrop--rule-of-thirds",!this.dragStarted&&n&&!n.width&&!n.height&&"ReactCrop--invisible-crop",r&&"ReactCrop--no-animate");return p.createElement("div",{ref:this.componentRef,className:u,style:i},p.createElement("div",{ref:this.mediaRef,className:"ReactCrop__child-wrapper",onPointerDown:this.onComponentPointerDown},e),n?p.createElement("svg",{className:"ReactCrop__crop-mask",width:"100%",height:"100%"},p.createElement("defs",null,p.createElement("mask",{id:`hole-${this.instanceId}`},p.createElement("rect",{width:"100%",height:"100%",fill:"white"}),r?p.createElement("ellipse",{cx:`${n.x+n.width/2}${n.unit}`,cy:`${n.y+n.height/2}${n.unit}`,rx:`${n.width/2}${n.unit}`,ry:`${n.height/2}${n.unit}`,fill:"black"}):p.createElement("rect",{x:`${n.x}${n.unit}`,y:`${n.y}${n.unit}`,width:`${n.width}${n.unit}`,height:`${n.height}${n.unit}`,fill:"black"}))),p.createElement("rect",{fill:"black",fillOpacity:.5,width:"100%",height:"100%",mask:`url(#hole-${this.instanceId})`})):void 0,h)}};lA(Ne,"xOrds",["e","w"]),lA(Ne,"yOrds",["n","s"]),lA(Ne,"xyOrds",["nw","ne","se","sw"]),lA(Ne,"nudgeStep",1),lA(Ne,"nudgeStepMedium",10),lA(Ne,"nudgeStepLarge",100),lA(Ne,"defaultProps",{ariaLabels:{cropArea:"Use the arrow keys to move the crop selection area",nwDragHandle:"Use the arrow keys to move the north west drag handle to change the crop selection area",nDragHandle:"Use the up and down arrow keys to move the north drag handle to change the crop selection area",neDragHandle:"Use the arrow keys to move the north east drag handle to change the crop selection area",eDragHandle:"Use the up and down arrow keys to move the east drag handle to change the crop selection area",seDragHandle:"Use the arrow keys to move the south east drag handle to change the crop selection area",sDragHandle:"Use the up and down arrow keys to move the south drag handle to change the crop selection area",swDragHandle:"Use the arrow keys to move the south west drag handle to change the crop selection area",wDragHandle:"Use the up and down arrow keys to move the west drag handle to change the crop selection area"}});var Ir={exports:{}},Zs={};var Go;function cl(){if(Go)return Zs;Go=1;var t=p;function A(B,h){return B===h&&(B!==0||1/B===1/h)||B!==B&&h!==h}var e=typeof Object.is=="function"?Object.is:A,r=t.useState,s=t.useEffect,n=t.useLayoutEffect,o=t.useDebugValue;function a(B,h){var u=h(),m=r({inst:{value:u,getSnapshot:h}}),C=m[0].inst,y=m[1];return n(function(){C.value=u,C.getSnapshot=h,i(C)&&y({inst:C})},[B,u,h]),s(function(){return i(C)&&y({inst:C}),B(function(){i(C)&&y({inst:C})})},[B]),o(u),u}function i(B){var h=B.getSnapshot;B=B.value;try{var u=h();return!e(B,u)}catch{return!0}}function l(B,h){return h()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?l:a;return Zs.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:g,Zs}var $s={};var Vo;function ll(){return Vo||(Vo=1,process.env.NODE_ENV!=="production"&&(function(){function t(u,m){return u===m&&(u!==0||1/u===1/m)||u!==u&&m!==m}function A(u,m){g||s.startTransition===void 0||(g=!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=m();if(!B){var y=m();n(C,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),B=!0)}y=o({inst:{value:C,getSnapshot:m}});var F=y[0].inst,Q=y[1];return i(function(){F.value=C,F.getSnapshot=m,e(F)&&Q({inst:F})},[u,C,m]),a(function(){return e(F)&&Q({inst:F}),u(function(){e(F)&&Q({inst:F})})},[u]),l(C),C}function e(u){var m=u.getSnapshot;u=u.value;try{var C=m();return!n(u,C)}catch{return!0}}function r(u,m){return m()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var s=p,n=typeof Object.is=="function"?Object.is:t,o=s.useState,a=s.useEffect,i=s.useLayoutEffect,l=s.useDebugValue,g=!1,B=!1,h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:A;$s.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:h,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),$s}var No;function dl(){return No||(No=1,process.env.NODE_ENV==="production"?Ir.exports=cl():Ir.exports=ll()),Ir.exports}var _o=dl();const Po=0,jo=1,Wo=2,Xo=3;var zo=Object.prototype.hasOwnProperty;function qs(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--&&qs(t[r],A[r]););return r===-1}if(!e||typeof t=="object"){r=0;for(e in t)if(zo.call(t,e)&&++r&&!zo.call(A,e)||!(e in A)||!qs(t[e],A[e]))return!1;return Object.keys(A).length===r}}return t!==t&&A!==A}const he=new WeakMap,pe=()=>{},LA=pe(),An=Object,P=t=>t===LA,ie=t=>typeof t=="function",be=(t,A)=>({...t,...A}),Yo=t=>ie(t.then),en={},Hr={},tn="undefined",Mt=typeof window!=tn,rn=typeof document!=tn,gl=Mt&&"Deno"in window,Bl=()=>Mt&&typeof window.requestAnimationFrame!=tn,Jo=(t,A)=>{const e=he.get(t);return[()=>!P(A)&&t.get(A)||en,r=>{if(!P(A)){const s=t.get(A);A in Hr||(Hr[A]=s),e[5](A,be(s,r),s||en)}},e[6],()=>!P(A)&&A in Hr?Hr[A]:!P(A)&&t.get(A)||en]};let sn=!0;const ul=()=>sn,[nn,on]=Mt&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[pe,pe],fl=()=>{const t=rn&&document.visibilityState;return P(t)||t!=="hidden"},hl=t=>(rn&&document.addEventListener("visibilitychange",t),nn("focus",t),()=>{rn&&document.removeEventListener("visibilitychange",t),on("focus",t)}),pl=t=>{const A=()=>{sn=!0,t()},e=()=>{sn=!1};return nn("online",A),nn("offline",e),()=>{on("online",A),on("offline",e)}},wl={isOnline:ul,isVisible:fl},ml={initFocus:hl,initReconnect:pl},Zo=!p.useId,lt=!Mt||gl,Cl=t=>Bl()?window.requestAnimationFrame(t):setTimeout(t,1),an=lt?p.useEffect:p.useLayoutEffect,cn=typeof navigator<"u"&&navigator.connection,$o=!lt&&cn&&(["slow-2g","2g"].includes(cn.effectiveType)||cn.saveData),Sr=new WeakMap,Ql=t=>An.prototype.toString.call(t),ln=(t,A)=>t===`[object ${A}]`;let xl=0;const dn=t=>{const A=typeof t,e=Ql(t),r=ln(e,"Date"),s=ln(e,"RegExp"),n=ln(e,"Object");let o,a;if(An(t)===t&&!r&&!s){if(o=Sr.get(t),o)return o;if(o=++xl+"~",Sr.set(t,o),Array.isArray(t)){for(o="@",a=0;a<t.length;a++)o+=dn(t[a])+",";Sr.set(t,o)}if(n){o="#";const i=An.keys(t).sort();for(;!P(a=i.pop());)P(t[a])||(o+=a+":"+dn(t[a])+",");Sr.set(t,o)}}else o=r?t.toJSON():A=="symbol"?t.toString():A=="string"?JSON.stringify(t):""+t;return o},gn=t=>{if(ie(t))try{t=t()}catch{t=""}const A=t;return t=typeof t=="string"?t:(Array.isArray(t)?t.length:t)?dn(t):"",[t,A]};let Ul=0;const Bn=()=>++Ul;async function qo(...t){const[A,e,r,s]=t,n=be({populateCache:!0,throwOnError:!0},typeof s=="boolean"?{revalidate:s}:s||{});let o=n.populateCache;const a=n.rollbackOnError;let i=n.optimisticData;const l=h=>typeof a=="function"?a(h):a!==!1,g=n.throwOnError;if(ie(e)){const h=e,u=[],m=A.keys();for(const C of m)!/^\$(inf|sub)\$/.test(C)&&h(A.get(C)._k)&&u.push(C);return Promise.all(u.map(B))}return B(e);async function B(h){const[u]=gn(h);if(!u)return;const[m,C]=Jo(A,u),[y,F,Q,L]=he.get(A),K=()=>{const yA=y[u];return(ie(n.revalidate)?n.revalidate(m().data,h):n.revalidate!==!1)&&(delete Q[u],delete L[u],yA&&yA[0])?yA[0](Wo).then(()=>m().data):m().data};if(t.length<3)return K();let b=r,R,W=!1;const sA=Bn();F[u]=[sA,0];const O=!P(i),vA=m(),AA=vA.data,QA=vA._c,N=P(QA)?AA:QA;if(O&&(i=ie(i)?i(N,AA):i,C({data:i,_c:N})),ie(b))try{b=b(N)}catch(yA){R=yA,W=!0}if(b&&Yo(b))if(b=await b.catch(yA=>{R=yA,W=!0}),sA!==F[u][0]){if(W)throw R;return b}else W&&O&&l(R)&&(o=!0,C({data:N,_c:LA}));if(o&&!W)if(ie(o)){const yA=o(b,N);C({data:yA,error:LA,_c:LA})}else C({data:b,error:LA,_c:LA});if(F[u][1]=Bn(),Promise.resolve(K()).then(()=>{C({_c:LA})}),W){if(g)throw R;return}return b}}const Aa=(t,A)=>{for(const e in t)t[e][0]&&t[e][0](A)},Fl=(t,A)=>{if(!he.has(t)){const e=be(ml,A),r=Object.create(null),s=qo.bind(LA,t);let n=pe;const o=Object.create(null),a=(g,B)=>{const h=o[g]||[];return o[g]=h,h.push(B),()=>h.splice(h.indexOf(B),1)},i=(g,B,h)=>{t.set(g,B);const u=o[g];if(u)for(const m of u)m(B,h)},l=()=>{if(!he.has(t)&&(he.set(t,[r,Object.create(null),Object.create(null),Object.create(null),s,i,a]),!lt)){const g=e.initFocus(setTimeout.bind(LA,Aa.bind(LA,r,Po))),B=e.initReconnect(setTimeout.bind(LA,Aa.bind(LA,r,jo)));n=()=>{g&&g(),B&&B(),he.delete(t)}}};return l(),[t,s,l,n]}return[t,he.get(t)[4]]},yl=(t,A,e,r,s)=>{const n=e.errorRetryCount,o=s.retryCount,a=~~((Math.random()+.5)*(1<<(o<8?o:8)))*e.errorRetryInterval;!P(n)&&o>n||setTimeout(r,a,s)},bl=qs,[ea,El]=Fl(new Map),vl=be({onLoadingSlow:pe,onSuccess:pe,onError:pe,onErrorRetry:yl,onDiscarded:pe,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:$o?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:$o?5e3:3e3,compare:bl,isPaused:()=>!1,cache:ea,mutate:El,fallback:{}},wl),Il=(t,A)=>{const e=be(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=be(s,o))}return e},Hl=p.createContext({}),Sl="$inf$",ta=Mt&&window.__SWR_DEVTOOLS_USE__,Ll=ta?window.__SWR_DEVTOOLS_USE__:[],Tl=()=>{ta&&(window.__SWR_DEVTOOLS_REACT__=p)},Ol=t=>ie(t[1])?[t[0],t[1],t[2]||{}]:[t[0],null,(t[1]===null?t[2]:t[1])||{}],ra=()=>{const t=p.useContext(Hl);return p.useMemo(()=>be(vl,t),[t])},Dl=t=>(A,e,r)=>t(A,e&&((...n)=>{const[o]=gn(A),[,,,a]=he.get(ea);if(o.startsWith(Sl))return e(...n);const i=a[o];return P(i)?e(...n):(delete a[o],i)}),r),Kl=Ll.concat(Dl),Rl=t=>function(...e){const r=ra(),[s,n,o]=Ol(e),a=Il(r,o);let i=t;const{use:l}=a,g=(l||[]).concat(Kl);for(let B=g.length;B--;)i=g[B](i);return i(s,n||a.fetcher||null,a)},kl=(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())}};Tl();const un=p.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}}),fn={dedupe:!0},sa=Promise.resolve(LA),Ml=()=>pe,na=Rl((t,A,e)=>{const{cache:r,compare:s,suspense:n,fallbackData:o,revalidateOnMount:a,revalidateIfStale:i,refreshInterval:l,refreshWhenHidden:g,refreshWhenOffline:B,keepPreviousData:h,strictServerPrefetchWarning:u}=e,[m,C,y,F]=he.get(r),[Q,L]=gn(t),K=p.useRef(!1),b=p.useRef(!1),R=p.useRef(Q),W=p.useRef(A),sA=p.useRef(e),O=()=>sA.current,vA=()=>O().isVisible()&&O().isOnline(),[AA,QA,N,yA]=Jo(r,Q),Y=p.useRef({}).current,IA=P(o)?P(e.fallback)?LA:e.fallback[Q]:o,jA=(eA,pA)=>{for(const nA in Y){const tA=nA;if(tA==="data"){if(!s(eA[tA],pA[tA])&&(!P(eA[tA])||!s(MA,pA[tA])))return!1}else if(pA[tA]!==eA[tA])return!1}return!0},Ue=!K.current,YA=p.useMemo(()=>{const eA=AA(),pA=yA(),nA=z=>{const DA=be(z);return delete DA._k,(()=>{if(!Q||!A||O().isPaused())return!1;if(Ue&&!P(a))return a;const ue=P(IA)?DA.data:IA;return P(ue)||i})()?{isValidating:!0,isLoading:!0,...DA}:DA},tA=nA(eA),uA=eA===pA?tA:nA(pA);let xA=tA;return[()=>{const z=nA(AA());return jA(z,xA)?(xA.data=z.data,xA.isLoading=z.isLoading,xA.isValidating=z.isValidating,xA.error=z.error,xA):(xA=z,z)},()=>uA]},[r,Q]),te=_o.useSyncExternalStore(p.useCallback(eA=>N(Q,(pA,nA)=>{jA(nA,pA)||eA()}),[r,Q]),YA[0],YA[1]),x=m[Q]&&m[Q].length>0,k=te.data,V=P(k)?IA&&Yo(IA)?un(IA):IA:k,$=te.error,J=p.useRef(V),MA=h?P(k)?P(J.current)?V:J.current:k:V,X=Q&&P(V),GA=p.useRef(null);!lt&&_o.useSyncExternalStore(Ml,()=>(GA.current=!1,GA),()=>(GA.current=!0,GA));const Re=GA.current;u&&Re&&!n&&X&&console.warn(`Missing pre-initiated data for serialized key "${Q}" 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 yt=!Q||!A||O().isPaused()||x&&!P($)?!1:Ue&&!P(a)?a:n?P(V)?!1:i:P(V)||i,At=Ue&&yt,Ds=P(te.isValidating)?At:te.isValidating,wr=P(te.isLoading)?At:te.isLoading,et=p.useCallback(async eA=>{const pA=W.current;if(!Q||!pA||b.current||O().isPaused())return!1;let nA,tA,uA=!0;const xA=eA||{},z=!y[Q]||!xA.dedupe,DA=()=>Zo?!b.current&&Q===R.current&&K.current:Q===R.current,EA={isValidating:!1,isLoading:!1},ue=()=>{QA(EA)},ke=()=>{const JA=y[Q];JA&&JA[1]===tA&&delete y[Q]},Ks={isValidating:!0};P(AA().data)&&(Ks.isLoading=!0);try{if(z&&(QA(Ks),e.loadingTimeout&&P(AA().data)&&setTimeout(()=>{uA&&DA()&&O().onLoadingSlow(Q,e)},e.loadingTimeout),y[Q]=[pA(L),Bn()]),[nA,tA]=y[Q],nA=await nA,z&&setTimeout(ke,e.dedupingInterval),!y[Q]||y[Q][1]!==tA)return z&&DA()&&O().onDiscarded(Q),!1;EA.error=LA;const JA=C[Q];if(!P(JA)&&(tA<=JA[0]||tA<=JA[1]||JA[1]===0))return ue(),z&&DA()&&O().onDiscarded(Q),!1;const fe=AA().data;EA.data=s(fe,nA)?fe:nA,z&&DA()&&O().onSuccess(nA,Q,e)}catch(JA){ke();const fe=O(),{shouldRetryOnError:mr}=fe;fe.isPaused()||(EA.error=JA,z&&DA()&&(fe.onError(JA,Q,fe),(mr===!0||ie(mr)&&mr(JA))&&(!O().revalidateOnFocus||!O().revalidateOnReconnect||vA())&&fe.onErrorRetry(JA,Q,fe,Rs=>{const VA=m[Q];VA&&VA[0]&&VA[0](Xo,Rs)},{retryCount:(xA.retryCount||0)+1,dedupe:!0})))}return uA=!1,ue(),!0},[Q,r]),bt=p.useCallback((...eA)=>qo(r,R.current,...eA),[]);if(an(()=>{W.current=A,sA.current=e,P(k)||(J.current=k)}),an(()=>{if(!Q)return;const eA=et.bind(LA,fn);let pA=0;O().revalidateOnFocus&&(pA=Date.now()+O().focusThrottleInterval);const tA=kl(Q,m,(uA,xA={})=>{if(uA==Po){const z=Date.now();O().revalidateOnFocus&&z>pA&&vA()&&(pA=z+O().focusThrottleInterval,eA())}else if(uA==jo)O().revalidateOnReconnect&&vA()&&eA();else{if(uA==Wo)return et();if(uA==Xo)return et(xA)}});return b.current=!1,R.current=Q,K.current=!0,QA({_k:L}),yt&&(y[Q]||(P(V)||lt?eA():Cl(eA))),()=>{b.current=!0,tA()}},[Q]),an(()=>{let eA;function pA(){const tA=ie(l)?l(AA().data):l;tA&&eA!==-1&&(eA=setTimeout(nA,tA))}function nA(){!AA().error&&(g||O().isVisible())&&(B||O().isOnline())?et(fn).then(pA):pA()}return pA(),()=>{eA&&(clearTimeout(eA),eA=-1)}},[l,g,B,Q]),p.useDebugValue(MA),n){if(!Zo&<&&X)throw new Error("Fallback data is required when using Suspense in SSR.");X&&(W.current=A,sA.current=e,b.current=!1);const eA=F[Q],pA=!P(eA)&&X?bt(eA):sa;if(un(pA),!P($)&&X)throw $;const nA=X?et(fn):sa;!P(MA)&&X&&(nA.status="fulfilled",nA.value=!0),un(nA)}return{mutate:bt,get data(){return Y.data=!0,MA},get error(){return Y.error=!0,$},get isValidating(){return Y.isValidating=!0,Ds},get isLoading(){return Y.isLoading=!0,wr}}}),Gl=({children:t})=>{const A=p.useRef(null),[e,r]=p.useState(null);return p.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)}},[]),c.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&&Al.createPortal(t,e)})};const oa=(...t)=>t.filter((A,e,r)=>!!A&&A.trim()!==""&&r.indexOf(A)===e).join(" ").trim();const Vl=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Nl=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(A,e,r)=>r?r.toUpperCase():e.toLowerCase());const aa=t=>{const A=Nl(t);return A.charAt(0).toUpperCase()+A.slice(1)};var _l={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 Pl=t=>{for(const A in t)if(A.startsWith("aria-")||A==="role"||A==="title")return!0;return!1};const jl=p.forwardRef(({color:t="currentColor",size:A=24,strokeWidth:e=2,absoluteStrokeWidth:r,className:s="",children:n,iconNode:o,...a},i)=>p.createElement("svg",{ref:i,..._l,width:A,height:A,stroke:t,strokeWidth:r?Number(e)*24/Number(A):e,className:oa("lucide",s),...!n&&!Pl(a)&&{"aria-hidden":"true"},...a},[...o.map(([l,g])=>p.createElement(l,g)),...Array.isArray(n)?n:[n]]));const dA=(t,A)=>{const e=p.forwardRef(({className:r,...s},n)=>p.createElement(jl,{ref:n,iconNode:A,className:oa(`lucide-${Vl(aa(t))}`,`lucide-${t}`,r),...s}));return e.displayName=aa(t),e};const Gt=dA("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 Wl=dA("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 ia=dA("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const Xl=dA("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 _e=dA("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);const ca=dA("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);const hn=dA("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 zl=dA("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 Ee=dA("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 Yl=dA("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 Jl=dA("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 Lr=dA("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 Tr=dA("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 Or=dA("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);const la=dA("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 Dr=dA("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 Zl=dA("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 Vt=dA("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 $l=dA("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const ql=dA("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);const Ad=dA("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 Kr=dA("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 ed=dA("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 Nt=dA("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),td={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"}},da=p.createContext(void 0),ga=()=>{const t=p.useContext(da);if(!t)throw new Error("useViewGate must be used within a ViewGateProvider");return t},_t="viewgate_enabled",rd=()=>{if(typeof window>"u")return!1;const t=new URLSearchParams(window.location.search);return t.has("viewgate")||t.has("viewgate-backlog")?(sessionStorage.setItem(_t,"true"),!0):sessionStorage.getItem(_t)==="true"},sd=({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]=p.useState(!1),[i,l]=p.useState([]);p.useRef(0);const g=p.useRef(null),B=p.useRef(!1);p.useEffect(()=>{a(rd());const C=F=>{F.key==="Alt"&&!F.repeat&&(F.preventDefault(),B.current=!1,g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{const Q=new URL(window.location.href);Q.searchParams.delete("viewgate"),Q.searchParams.set("viewgate-backlog","true"),window.history.replaceState({},"",Q.toString()),a(!0),sessionStorage.setItem(_t,"true"),window.dispatchEvent(new PopStateEvent("popstate")),u(A==="es"?"Modo Backlog activado":"Backlog Mode activated","success"),B.current=!0,g.current=null},1e3))},y=F=>{if(F.key==="Alt"&&(F.preventDefault(),g.current)){clearTimeout(g.current),g.current=null;const Q=new URL(window.location.href);Q.searchParams.delete("viewgate-backlog"),Q.searchParams.set("viewgate","true"),window.history.replaceState({},"",Q.toString()),a(!0),sessionStorage.setItem(_t,"true"),window.dispatchEvent(new PopStateEvent("popstate")),u(A==="es"?"Modo Normal activado":"Normal Mode activated","success")}};return window.addEventListener("keydown",C),window.addEventListener("keyup",y),()=>{window.removeEventListener("keydown",C),window.removeEventListener("keyup",y)}},[A]);const h=()=>{if(sessionStorage.removeItem(_t),a(!1),typeof window<"u"){const C=new URL(window.location.href);C.searchParams.delete("viewgate"),window.history.replaceState({},"",C.toString())}},u=(C,y)=>{const F=Date.now();l(Q=>[...Q,{id:F,message:C,type:y}]),setTimeout(()=>{l(Q=>Q.filter(L=>L.id!==F))},4e3)},m=td[A];return c.jsxs(da.Provider,{"data-vg-id":"89da3486","data-source-path":"/src/components/ViewGateProvider.tsx:369",value:{addToast:u,language:A,t:m,apiKey:e,baseUrl:r,dashboardUrl:n,disableViewGate:h,hasActiveToasts:i.length>0},children:[t,o&&c.jsx(Gl,{"data-vg-id":"f1499d3a","data-source-path":"/src/components/ViewGateProvider.tsx:381",children:c.jsxs("div",{"data-vg-id":"1bedb79b","data-source-path":"/src/components/ViewGateProvider.tsx:382",className:"vg-container",children:[c.jsx(Tc,{"data-vg-id":"d3f262cb","data-source-path":"/src/components/ViewGateProvider.tsx:383"}),c.jsx("div",{"data-vg-id":"1bedb79d","data-source-path":"/src/components/ViewGateProvider.tsx:384",className:"vg-toasts",style:{zIndex:2147483647},children:i.map(C=>c.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"?c.jsx(_e,{"data-vg-id":"c7ae3b26","data-source-path":"/src/components/ViewGateProvider.tsx:388",size:24,color:"#22c55e"}):C.type==="warning"?c.jsx(ed,{"data-vg-id":"137eb473","data-source-path":"/src/components/ViewGateProvider.tsx:390",size:24,color:"#f59e0b"}):c.jsx(Xl,{"data-vg-id":"e7ad3c7c","data-source-path":"/src/components/ViewGateProvider.tsx:392",size:24,color:"#ef4444"}),c.jsxs("div",{"data-vg-id":"61c93bb7","data-source-path":"/src/components/ViewGateProvider.tsx:394",children:[c.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"?m.successHeader:C.type==="warning"?A==="es"?"Aviso":"Warning":m.errorHeader}),c.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 TA{constructor(A,e,r,s){this.left=A,this.top=e,this.width=r,this.height=s}add(A,e,r,s){return new TA(this.left+A,this.top+e,this.width+r,this.height+s)}static fromClientRect(A,e){return new TA(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 TA(s.left+A.windowBounds.left,s.top+A.windowBounds.top,s.width,s.height):TA.EMPTY}}TA.EMPTY=new TA(0,0,0,0);const Rr=(t,A)=>TA.fromClientRect(t,A.getBoundingClientRect()),nd=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 TA(0,0,r,s)};for(var kr=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},mA=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},Ba="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",od=typeof Uint8Array>"u"?[]:new Uint8Array(256),Mr=0;Mr<Ba.length;Mr++)od[Ba.charCodeAt(Mr)]=Mr;for(var ua="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Pt=typeof Uint8Array>"u"?[]:new Uint8Array(256),Gr=0;Gr<ua.length;Gr++)Pt[ua.charCodeAt(Gr)]=Gr;for(var ad=function(t){var A=t.length*.75,e=t.length,r,s=0,n,o,a,i;t[t.length-1]==="="&&(A--,t[t.length-2]==="="&&A--);var l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),g=Array.isArray(l)?l:new Uint8Array(l);for(r=0;r<e;r+=4)n=Pt[t.charCodeAt(r)],o=Pt[t.charCodeAt(r+1)],a=Pt[t.charCodeAt(r+2)],i=Pt[t.charCodeAt(r+3)],g[s++]=n<<2|o>>4,g[s++]=(o&15)<<4|a>>2,g[s++]=(a&3)<<6|i&63;return l},id=function(t){for(var A=t.length,e=[],r=0;r<A;r+=2)e.push(t[r+1]<<8|t[r]);return e},cd=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},Pe=5,pn=11,wn=2,ld=pn-Pe,fa=65536>>Pe,dd=1<<Pe,mn=dd-1,gd=1024>>Pe,Bd=fa+gd,ud=Bd,fd=32,hd=ud+fd,pd=65536>>pn,wd=1<<ld,md=wd-1,ha=function(t,A,e){return t.slice?t.slice(A,e):new Uint16Array(Array.prototype.slice.call(t,A,e))},Cd=function(t,A,e){return t.slice?t.slice(A,e):new Uint32Array(Array.prototype.slice.call(t,A,e))},Qd=function(t,A){var e=ad(t),r=Array.isArray(e)?cd(e):new Uint32Array(e),s=Array.isArray(e)?id(e):new Uint16Array(e),n=24,o=ha(s,n/2,r[4]/2),a=r[5]===2?ha(s,(n+r[4])/2):Cd(r,Math.ceil((n+r[4])/4));return new xd(r[0],r[1],r[2],r[3],o,a)},xd=(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>>Pe],e=(e<<wn)+(A&mn),this.data[e];if(A<=65535)return e=this.index[fa+(A-55296>>Pe)],e=(e<<wn)+(A&mn),this.data[e];if(A<this.highStart)return e=hd-pd+(A>>pn),e=this.index[e],e+=A>>Pe&md,e=this.index[e],e=(e<<wn)+(A&mn),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t})(),pa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ud=typeof Uint8Array>"u"?[]:new Uint8Array(256),Vr=0;Vr<pa.length;Vr++)Ud[pa.charCodeAt(Vr)]=Vr;var Fd="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==",wa=50,yd=1,ma=2,Ca=3,bd=4,Ed=5,Qa=7,xa=8,Ua=9,ve=10,Cn=11,Fa=12,Qn=13,vd=14,jt=15,xn=16,Nr=17,Wt=18,Id=19,ya=20,Un=21,Xt=22,Fn=23,dt=24,XA=25,zt=26,Yt=27,gt=28,Hd=29,je=30,Sd=31,_r=32,Pr=33,yn=34,bn=35,En=36,Jt=37,vn=38,jr=39,Wr=40,In=41,ba=42,Ld=43,Td=[9001,65288],Ea="!",j="×",Xr="÷",Hn=Qd(Fd),we=[je,En],Sn=[yd,ma,Ca,Ed],va=[ve,xa],Ia=[Yt,zt],Od=Sn.concat(va),Ha=[vn,jr,Wr,yn,bn],Dd=[jt,Qn],Kd=function(t,A){A===void 0&&(A="strict");var e=[],r=[],s=[];return t.forEach(function(n,o){var a=Hn.get(n);if(a>wa?(s.push(!0),a-=wa):s.push(!1),["normal","auto","loose"].indexOf(A)!==-1&&[8208,8211,12316,12448].indexOf(n)!==-1)return r.push(o),e.push(xn);if(a===bd||a===Cn){if(o===0)return r.push(o),e.push(je);var i=e[o-1];return Od.indexOf(i)===-1?(r.push(r[o-1]),e.push(i)):(r.push(o),e.push(je))}if(r.push(o),a===Sd)return e.push(A==="strict"?Un:Jt);if(a===ba||a===Hd)return e.push(je);if(a===Ld)return n>=131072&&n<=196605||n>=196608&&n<=262141?e.push(Jt):e.push(je);e.push(a)}),[r,e,s]},Ln=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!==ve)break}if(s===ve)for(var n=e;n>0;){n--;var a=r[n];if(Array.isArray(t)?t.indexOf(a)!==-1:t===a)for(var i=e;i<=r.length;){i++;var o=r[i];if(o===A)return!0;if(o!==ve)break}if(a!==ve)break}return!1},Sa=function(t,A){for(var e=t;e>=0;){var r=A[e];if(r===ve)e--;else return r}return 0},Rd=function(t,A,e,r,s){if(e[r]===0)return j;var n=r-1;if(Array.isArray(s)&&s[n]===!0)return j;var o=n-1,a=n+1,i=A[n],l=o>=0?A[o]:0,g=A[a];if(i===ma&&g===Ca)return j;if(Sn.indexOf(i)!==-1)return Ea;if(Sn.indexOf(g)!==-1||va.indexOf(g)!==-1)return j;if(Sa(n,A)===xa)return Xr;if(Hn.get(t[n])===Cn||(i===_r||i===Pr)&&Hn.get(t[a])===Cn||i===Qa||g===Qa||i===Ua||[ve,Qn,jt].indexOf(i)===-1&&g===Ua||[Nr,Wt,Id,dt,gt].indexOf(g)!==-1||Sa(n,A)===Xt||Ln(Fn,Xt,n,A)||Ln([Nr,Wt],Un,n,A)||Ln(Fa,Fa,n,A))return j;if(i===ve)return Xr;if(i===Fn||g===Fn)return j;if(g===xn||i===xn)return Xr;if([Qn,jt,Un].indexOf(g)!==-1||i===vd||l===En&&Dd.indexOf(i)!==-1||i===gt&&g===En||g===ya||we.indexOf(g)!==-1&&i===XA||we.indexOf(i)!==-1&&g===XA||i===Yt&&[Jt,_r,Pr].indexOf(g)!==-1||[Jt,_r,Pr].indexOf(i)!==-1&&g===zt||we.indexOf(i)!==-1&&Ia.indexOf(g)!==-1||Ia.indexOf(i)!==-1&&we.indexOf(g)!==-1||[Yt,zt].indexOf(i)!==-1&&(g===XA||[Xt,jt].indexOf(g)!==-1&&A[a+1]===XA)||[Xt,jt].indexOf(i)!==-1&&g===XA||i===XA&&[XA,gt,dt].indexOf(g)!==-1)return j;if([XA,gt,dt,Nr,Wt].indexOf(g)!==-1)for(var B=n;B>=0;){var h=A[B];if(h===XA)return j;if([gt,dt].indexOf(h)!==-1)B--;else break}if([Yt,zt].indexOf(g)!==-1)for(var B=[Nr,Wt].indexOf(i)!==-1?o:n;B>=0;){var h=A[B];if(h===XA)return j;if([gt,dt].indexOf(h)!==-1)B--;else break}if(vn===i&&[vn,jr,yn,bn].indexOf(g)!==-1||[jr,yn].indexOf(i)!==-1&&[jr,Wr].indexOf(g)!==-1||[Wr,bn].indexOf(i)!==-1&&g===Wr||Ha.indexOf(i)!==-1&&[ya,zt].indexOf(g)!==-1||Ha.indexOf(g)!==-1&&i===Yt||we.indexOf(i)!==-1&&we.indexOf(g)!==-1||i===dt&&we.indexOf(g)!==-1||we.concat(XA).indexOf(i)!==-1&&g===Xt&&Td.indexOf(t[a])===-1||we.concat(XA).indexOf(g)!==-1&&i===Wt)return j;if(i===In&&g===In){for(var u=e[n],m=1;u>0&&(u--,A[u]===In);)m++;if(m%2!==0)return j}return i===_r&&g===Pr?j:Xr},kd=function(t,A){A||(A={lineBreak:"normal",wordBreak:"normal"});var e=Kd(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[XA,je,ba].indexOf(a)!==-1?Jt:a}));var o=A.wordBreak==="keep-all"?n.map(function(a,i){return a&&t[i]>=19968&&t[i]<=40959}):void 0;return[r,s,o]},Md=(function(){function t(A,e,r,s){this.codePoints=A,this.required=e===Ea,this.start=r,this.end=s}return t.prototype.slice=function(){return mA.apply(void 0,this.codePoints.slice(this.start,this.end))},t})(),Gd=function(t,A){var e=kr(t),r=kd(e,A),s=r[0],n=r[1],o=r[2],a=e.length,i=0,l=0;return{next:function(){if(l>=a)return{done:!0,value:null};for(var g=j;l<a&&(g=Rd(e,n,s,++l,o))===j;);if(g!==j||l===a){var B=new Md(e,g,i,l);return i=l,{value:B,done:!1}}return{done:!0,value:null}}}};const Vd=1,Nd=2,Bt=4,La=8,zr=10,Ta=47,Zt=92,_d=9,Pd=32,Yr=34,$t=61,jd=35,Wd=36,Xd=37,Jr=39,Zr=40,qt=41,zd=95,NA=45,Yd=33,Jd=60,Zd=62,$d=64,qd=91,Ag=93,eg=61,tg=123,$r=63,rg=125,Oa=124,sg=126,ng=128,Da=65533,Tn=42,We=43,og=44,ag=58,ig=59,Ar=46,cg=0,lg=8,dg=11,gg=14,Bg=31,ug=127,ce=-1,Ka=48,Ra=97,ka=101,fg=102,hg=117,pg=122,Ma=65,Ga=69,Va=70,wg=85,mg=90,OA=t=>t>=Ka&&t<=57,Cg=t=>t>=55296&&t<=57343,ut=t=>OA(t)||t>=Ma&&t<=Va||t>=Ra&&t<=fg,Qg=t=>t>=Ra&&t<=pg,xg=t=>t>=Ma&&t<=mg,Ug=t=>Qg(t)||xg(t),Fg=t=>t>=ng,qr=t=>t===zr||t===_d||t===Pd,As=t=>Ug(t)||Fg(t)||t===zd,Na=t=>As(t)||OA(t)||t===NA,yg=t=>t>=cg&&t<=lg||t===dg||t>=gg&&t<=Bg||t===ug,Ie=(t,A)=>t!==Zt?!1:A!==zr,es=(t,A,e)=>t===NA?As(A)||Ie(A,e):As(t)?!0:!!(t===Zt&&Ie(t,A)),On=(t,A,e)=>t===We||t===NA?OA(A)?!0:A===Ar&&OA(e):OA(t===Ar?A:t),bg=t=>{let A=0,e=1;(t[A]===We||t[A]===NA)&&(t[A]===NA&&(e=-1),A++);const r=[];for(;OA(t[A]);)r.push(t[A++]);const s=r.length?parseInt(mA(...r),10):0;t[A]===Ar&&A++;const n=[];for(;OA(t[A]);)n.push(t[A++]);const o=n.length,a=o?parseInt(mA(...n),10):0;(t[A]===Ga||t[A]===ka)&&A++;let i=1;(t[A]===We||t[A]===NA)&&(t[A]===NA&&(i=-1),A++);const l=[];for(;OA(t[A]);)l.push(t[A++]);const g=l.length?parseInt(mA(...l),10):0;return e*(s+a*Math.pow(10,-o))*Math.pow(10,i*g)},Eg={type:2},vg={type:3},Ig={type:4},Hg={type:13},Sg={type:8},Lg={type:21},Tg={type:9},Og={type:10},Dg={type:11},Kg={type:12},Rg={type:14},ts={type:23},kg={type:1},Mg={type:25},Gg={type:24},Vg={type:26},Ng={type:27},_g={type:28},Pg={type:29},jg={type:31},Dn={type:32};class _a{constructor(){this._value=[]}write(A){this._value=this._value.concat(kr(A))}read(){const A=[];let e=this.consumeToken();for(;e!==Dn;)A.push(e),e=this.consumeToken();return A}consumeToken(){const A=this.consumeCodePoint();switch(A){case Yr:return this.consumeStringToken(Yr);case jd:const e=this.peekCodePoint(0),r=this.peekCodePoint(1),s=this.peekCodePoint(2);if(Na(e)||Ie(r,s)){const u=es(e,r,s)?Nd:Vd;return{type:5,value:this.consumeName(),flags:u}}break;case Wd:if(this.peekCodePoint(0)===$t)return this.consumeCodePoint(),Hg;break;case Jr:return this.consumeStringToken(Jr);case Zr:return Eg;case qt:return vg;case Tn:if(this.peekCodePoint(0)===$t)return this.consumeCodePoint(),Rg;break;case We:if(On(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case og:return Ig;case NA:const n=A,o=this.peekCodePoint(0),a=this.peekCodePoint(1);if(On(n,o,a))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(es(n,o,a))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(o===NA&&a===Zd)return this.consumeCodePoint(),this.consumeCodePoint(),Gg;break;case Ar:if(On(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case Ta:if(this.peekCodePoint(0)===Tn)for(this.consumeCodePoint();;){let u=this.consumeCodePoint();if(u===Tn&&(u=this.consumeCodePoint(),u===Ta))return this.consumeToken();if(u===ce)return this.consumeToken()}break;case ag:return Vg;case ig:return Ng;case Jd:if(this.peekCodePoint(0)===Yd&&this.peekCodePoint(1)===NA&&this.peekCodePoint(2)===NA)return this.consumeCodePoint(),this.consumeCodePoint(),Mg;break;case $d:const i=this.peekCodePoint(0),l=this.peekCodePoint(1),g=this.peekCodePoint(2);if(es(i,l,g))return{type:7,value:this.consumeName()};break;case qd:return _g;case Zt:if(Ie(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case Ag:return Pg;case eg:if(this.peekCodePoint(0)===$t)return this.consumeCodePoint(),Sg;break;case tg:return Dg;case rg:return Kg;case hg:case wg:const B=this.peekCodePoint(0),h=this.peekCodePoint(1);return B===We&&(ut(h)||h===$r)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case Oa:if(this.peekCodePoint(0)===$t)return this.consumeCodePoint(),Tg;if(this.peekCodePoint(0)===Oa)return this.consumeCodePoint(),Lg;break;case sg:if(this.peekCodePoint(0)===$t)return this.consumeCodePoint(),Og;break;case ce:return Dn}return qr(A)?(this.consumeWhiteSpace(),jg):OA(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):As(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:mA(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(;ut(e)&&A.length<6;)A.push(e),e=this.consumeCodePoint();let r=!1;for(;e===$r&&A.length<6;)A.push(e),e=this.consumeCodePoint(),r=!0;if(r){const n=parseInt(mA(...A.map(a=>a===$r?Ka:a)),16),o=parseInt(mA(...A.map(a=>a===$r?Va:a)),16);return{type:30,start:n,end:o}}const s=parseInt(mA(...A),16);if(this.peekCodePoint(0)===NA&&ut(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();const n=[];for(;ut(e)&&n.length<6;)n.push(e),e=this.consumeCodePoint();const o=parseInt(mA(...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)===Zr?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Zr?(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===Jr||e===Yr){const r=this.consumeStringToken(this.consumeCodePoint());return r.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===ce||this.peekCodePoint(0)===qt)?(this.consumeCodePoint(),{type:22,value:r.value}):(this.consumeBadUrlRemnants(),ts)}for(;;){const r=this.consumeCodePoint();if(r===ce||r===qt)return{type:22,value:mA(...A)};if(qr(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===ce||this.peekCodePoint(0)===qt?(this.consumeCodePoint(),{type:22,value:mA(...A)}):(this.consumeBadUrlRemnants(),ts);if(r===Yr||r===Jr||r===Zr||yg(r))return this.consumeBadUrlRemnants(),ts;if(r===Zt)if(Ie(r,this.peekCodePoint(0)))A.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),ts;else A.push(r)}}consumeWhiteSpace(){for(;qr(this.peekCodePoint(0));)this.consumeCodePoint()}consumeBadUrlRemnants(){for(;;){const A=this.consumeCodePoint();if(A===qt||A===ce)return;Ie(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}}consumeStringSlice(A){let r="";for(;A>0;){const s=Math.min(5e4,A);r+=mA(...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===zr)return this._value.splice(0,r),kg;if(s===Zt){const n=this._value[r+1];n!==ce&&n!==void 0&&(n===zr?(e+=this.consumeStringSlice(r),r=-1,this._value.shift()):Ie(s,n)&&(e+=this.consumeStringSlice(r),e+=mA(this.consumeEscapedCodePoint()),r=-1))}r++}while(!0)}consumeNumber(){const A=[];let e=Bt,r=this.peekCodePoint(0);for((r===We||r===NA)&&A.push(this.consumeCodePoint());OA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());r=this.peekCodePoint(0);let s=this.peekCodePoint(1);if(r===Ar&&OA(s))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=La;OA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());r=this.peekCodePoint(0),s=this.peekCodePoint(1);const n=this.peekCodePoint(2);if((r===Ga||r===ka)&&((s===We||s===NA)&&OA(n)||OA(s)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=La;OA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[bg(A),e]}consumeNumericToken(){const[A,e]=this.consumeNumber(),r=this.peekCodePoint(0),s=this.peekCodePoint(1),n=this.peekCodePoint(2);if(es(r,s,n)){const o=this.consumeName();return{type:15,number:A,flags:e,unit:o}}return r===Xd?(this.consumeCodePoint(),{type:16,number:A,flags:e}):{type:17,number:A,flags:e}}consumeEscapedCodePoint(){const A=this.consumeCodePoint();if(ut(A)){let e=mA(A);for(;ut(this.peekCodePoint(0))&&e.length<6;)e+=mA(this.consumeCodePoint());qr(this.peekCodePoint(0))&&this.consumeCodePoint();const r=parseInt(e,16);return r===0||Cg(r)||r>1114111?Da:r}return A===ce?Da:A}consumeName(){let A="";for(;;){const e=this.consumeCodePoint();if(Na(e))A+=mA(e);else if(Ie(e,this.peekCodePoint(0)))A+=mA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(e),A}}}class ft{constructor(A){this._tokens=A}static create(A){const e=new _a;return e.write(A),new ft(e.read())}static parseValue(A){return ft.create(A).parseComponentValue()}static parseValues(A){return ft.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||Xg(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"?Dn:A}reconsumeToken(A){this._tokens.unshift(A)}}const le=t=>t.type===15,UA=t=>t.type===17,G=t=>t.type===20,Wg=t=>t.type===0,er=(t,A)=>G(t)&&t.value===A,rs=t=>t.type!==31,HA=t=>t.type!==31&&t.type!==4,re=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},Xg=(t,A)=>A===11&&t.type===12||A===28&&t.type===29?!0:A===2&&t.type===3,hA=(t,A,e)=>Math.min(Math.max(t,A),e),_A=(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]],He=t=>_A([3.2409699419045226,-1.537383177570094,-.4986107602930034,-.9692436362808796,1.8759675015077202,.04155505740717559,.05563007969699366,-.20397695888897652,1.0569715142428786],t),Kn=t=>_A([.41239079926595934,.357584339383878,.1804807884018343,.21263900587151027,.715168678767756,.07219231536073371,.01933081871559182,.11919477979462598,.9505321522496607],t),Xe=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}),Rn=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}),zg=t=>{const[A,e,r]=Xe(He([t[0],t[1],t[2]]));return[A,e,r,t[3]]},Yg=t=>{const[A,e,r]=He([t[0],t[1],t[2]]);return[hA(Math.round(A*255),0,255),hA(Math.round(e*255),0,255),hA(Math.round(r*255),0,255),t[3]]},Se=t=>t.type===17||t.type===15,q=t=>t.type===16||Se(t),Jg=t=>t.type===18&&t.name==="calc",Zg=(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:Bt}}catch{return null}return null},Pa=t=>t.length>1?[t[0],t[1]]:[t[0]],FA={type:17,number:0,flags:Bt},ze={type:16,number:50,flags:Bt},de={type:16,number:100,flags:Bt},tr=(t,A,e)=>{const[r,s]=t;return[M(r,A),M(typeof s<"u"?s:r,e)]},M=(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},ja="deg",Wa="grad",Xa="rad",za="turn",ht={name:"angle",parse:(t,A)=>{if(A.type===15)switch(A.unit){case ja:return Math.PI*A.number/180;case Wa:return Math.PI/200*A.number;case Xa:return A.number;case za:return Math.PI*2*A.number}throw new Error("Unsupported angle type")}},Ya=t=>t.type===15&&(t.unit===ja||t.unit===Wa||t.unit===Xa||t.unit===za),Ja=t=>{switch(t.filter(G).map(e=>e.value).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[FA,FA];case"to top":case"bottom":return qA(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[FA,de];case"to right":case"left":return qA(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[de,de];case"to bottom":case"top":return qA(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[de,FA];case"to left":case"right":return qA(270)}return 0},qA=t=>Math.PI*t/180,Le=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})`},se=(t,A,e,r)=>(t<<24|A<<16|e<<8|Math.round(r*255)<<0)>>>0,Te=(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",$g=t=>se(hA(Math.round(t[0]*255),0,255),hA(Math.round(t[1]*255),0,255),hA(Math.round(t[2]*255),0,255),hA(t[3],0,1)),kn=([t,A,e,r])=>{const s=Xe([t,A,e]);return se(hA(Math.round(s[0]*255),0,255),hA(Math.round(s[1]*255),0,255),hA(Math.round(s[2]*255),0,255),r)},rr=t=>{const A=He([t[0],t[1],t[2]]);return kn([A[0],A[1],A[2],t[3]])},qg=(t,A)=>{if(Ye(A.filter(HA)))throw new Error("Relative color not supported for lab()");const[e,r,s,n]=ss(A),o=Xe(He(as([e,r,s])));return se(hA(Math.round(o[0]*255),0,255),hA(Math.round(o[1]*255),0,255),hA(Math.round(o[2]*255),0,255),n)},AB=(t,A)=>{if(Ye(A.filter(HA)))throw new Error("Relative color not supported for oklab()");const[e,r,s,n]=ss(A),o=Xe(He(os([e,r,s])));return se(hA(Math.round(o[0]*255),0,255),hA(Math.round(o[1]*255),0,255),hA(Math.round(o[2]*255),0,255),n)},eB=(t,A)=>{if(Ye(A.filter(HA)))throw new Error("Relative color not supported for oklch()");const[e,r,s,n]=Ai(A),o=Xe(He(os(ns([e,r,s]))));return se(hA(Math.round(o[0]*255),0,255),hA(Math.round(o[1]*255),0,255),hA(Math.round(o[2]*255),0,255),n)},tB=(t,A)=>{if(Ye(A.filter(HA)))throw new Error("Relative color not supported for lch()");const[e,r,s,n]=qa(A),o=Xe(He(as(ns([e,r,s]))));return se(hA(Math.round(o[0]*255),0,255),hA(Math.round(o[1]*255),0,255),hA(Math.round(o[2]*255),0,255),n)},Za=(t,A)=>{const e=A.filter(HA),[r,s,n,o]=e,a=(r.type===17?qA(r.number):ht.parse(t,r))/(Math.PI*2),i=q(s)?s.number/100:0,l=q(n)?n.number/100:0,g=typeof o<"u"&&q(o)?M(o,1):1;return[a,i,l,g]},$a=(t,A)=>{if(Ye(A))throw new Error("Relative color not supported for hsl()");const[e,r,s,n]=Za(t,A),o=ti([e,r,s]);return se(o[0]*255,o[1]*255,o[2]*255,r===0?1:n)},qa=t=>{const A=t.filter(HA),e=q(A[0])?A[0].number:0,r=q(A[1])?A[1].number:0,s=UA(A[2])||le(A[2])?A[2].number:0,n=typeof A[4]<"u"&&q(A[4])?M(A[4],1):1;return[e,r,s,n]},ss=t=>{const A=t.filter(HA),e=A[0].type===16?A[0].number/100:UA(A[0])?A[0].number:0,r=A[1].type===16?A[1].number/100:UA(A[1])?A[1].number:0,s=UA(A[2])||le(A[2])?A[2].number:0,n=typeof A[4]<"u"&&q(A[4])?M(A[4],1):1;return[e,r,s,n]},Ai=t=>{const A=t.filter(HA),e=A[0].type===16?A[0].number/100:UA(A[0])?A[0].number:0,r=A[1].type===16?A[1].number/100:UA(A[1])?A[1].number:0,s=UA(A[2])||le(A[2])?A[2].number:0,n=typeof A[4]<"u"&&q(A[4])?M(A[4],1):1;return[e,r,s,n]},ei=t=>_A([1.0479297925449969,.022946870601609652,-.05019226628920524,.02962780877005599,.9904344267538799,-.017073799063418826,-.009243040646204504,.015055191490298152,.7518742814281371],t),Mn=t=>_A([.955473421488075,-.02309845494876471,.06325924320057072,-.0283697093338637,1.0099953980813041,.021041441191917323,.012314014864481998,-.020507649298898964,1.330365926242124],t),Gn=(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),ti=([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=Gn(s,r,t+1/3),o=Gn(s,r,t),a=Gn(s,r,t-1/3);return[n,o,a]},ns=([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)]),os=t=>{const A=_A([1,.3963377773761749,.2158037573099136,1,-.1055613458156586,-.0638541728258133,1,-.0894841775298119,-1.2914855480194092],t),e=A.map(r=>r**3);return _A([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 Mn([o[0],o[1],o[2]])},rB=(t,A)=>{const e=A.filter(HA);if(e.length===3){const[r,s,n]=e.map(Te),o=Rn([r/255,s/255,n/255]),[a,i,l]=Kn([o[0],o[1],o[2]]);return[a,i,l,1]}if(e.length===4){const[r,s,n,o]=e.map(Te),a=Rn([r/255,s/255,n/255]),[i,l,g]=Kn([a[0],a[1],a[2]]);return[i,l,g,o]}return[0,0,0,1]},sB=(t,A)=>{const[e,r,s,n]=Za(t,A),o=Rn(ti([e,r,s])),[a,i,l]=Kn([o[0],o[1],o[2]]);return[a,i,l,n]},nB=(t,A)=>{const[e,r,s,n]=ss(A),[o,a,i]=as([e,r,s]);return[o,a,i,n]},oB=(t,A)=>{const[e,r,s,n]=qa(A),[o,a,i]=as(ns([e,r,s]));return[o,a,i,n]},aB=(t,A)=>{const[e,r,s,n]=Ai(A),[o,a,i]=os(ns([e,r,s]));return[o,a,i,n]},iB=(t,A)=>{const[e,r,s,n]=ss(A),[o,a,i]=os([e,r,s]);return[o,a,i,n]},cB=t=>Mn([t[0],t[1],t[2]]),ri=t=>t,lB=t=>{const[A,e,r]=ei([t[0],t[2],t[3]]);return[A,e,r,t[3]]},si=t=>rr([t[0],t[1],t[2],t[3]]),dB=t=>{const A=cB([t[0],t[1],t[2]]);return rr([A[0],A[1],A[2],t[3]])},gB=t=>_A([.4865709486482162,.26566769316909306,.1982172852343625,.2289745640697488,.6917385218365064,.079286914093745,0,.04511338185890264,1.043944368900976],t),BB=t=>_A([2.493496911941425,-.9313836179191239,-.40271078445071684,-.8294889695615747,1.7626640603183463,.023624685841943577,.03584583024378447,-.07617238926804182,.9568845240076872],t),uB=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}),fB=t=>Xe(t),hB=t=>{const A=uB([t[0],t[1],t[2]]);return gB([A[0],A[1],A[2]])},pB=t=>{const[A,e,r]=fB(BB([t[0],t[1],t[2]]));return[A,e,r,t[3]]},wB=t=>{const A=hB([t[0],t[1],t[2]]);return rr([A[0],A[1],A[2],t[3]])},mB=t=>_A([2.0415879038107465,-.5650069742788596,-.34473135077832956,-.9692436362808795,1.8759675015077202,.04155505740717557,.013444280632031142,-.11836239223101838,1.0151749943912054],t),CB=t=>_A([.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]]},xB=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]]},UB=t=>{const[A,e,r]=xB(mB([t[0],t[1],t[2]]));return[A,e,r,t[3]]},FB=t=>{const A=He(CB(QB([t[0],t[1],t[2]])));return kn([A[0],A[1],A[2],t[3]])},yB=t=>_A([.7977666449006423,.13518129740053308,.0313477341283922,.2880748288194013,.711835234241873,8993693872564e-17,0,0,.8251046025104602],t),bB=t=>_A([1.3457868816471583,-.25557208737979464,-.05110186497554526,-.5446307051249019,1.5082477428451468,.02052744743642139,0,0,1.2119675456389452],t),EB=t=>t.map(A=>A<16/512?A/16:A**1.8),vB=t=>t.map(A=>A>1/512?A**(1/1.8):A*16),IB=t=>{const A=EB([t[0],t[1],t[2]]);return Mn(yB([A[0],A[1],A[2]]))},HB=t=>{const[A,e,r]=vB(bB(ei([t[0],t[1],t[2]])));return[A,e,r,t[3]]},SB=t=>{const A=IB([t[0],t[1],t[2]]);return rr([A[0],A[1],A[2],t[3]])},is=1.09929682680944,ni=.018053968510807,LB=t=>t.map(function(A){return A<ni*4.5?A/4.5:Math.pow((A+is-1)/is,1/.45)}),TB=t=>t.map(function(A){return A>=ni?is*Math.pow(A,.45)-(is-1):4.5*A}),OB=t=>_A([.6369580483012914,.14461690358620832,.1688809751641721,.2627002120112671,.6779980715188708,.05930171646986196,0,.028072693049087428,1.060985057710791],t),DB=t=>_A([1.716651187971268,-.355670783776392,-.25336628137366,-.666684351832489,1.616481236634939,.0157685458139111,.017639857445311,-.042770613257809,.942103121235474],t),KB=t=>{const A=LB([t[0],t[1],t[2]]);return OB([A[0],A[1],A[2]])},RB=t=>{const[A,e,r]=TB(DB([t[0],t[1],t[2]]));return[A,e,r,t[3]]},kB=t=>{const A=KB([t[0],t[1],t[2]]);return rr([A[0],A[1],A[2],t[3]])},Oe={name:"color",parse:(t,A)=>{if(A.type===18){const e=NB[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]=oi(A);return se(e,r,s,n)}if(A.type===20){const e=ge[A.value.toUpperCase()];if(typeof e<"u")return e}return ge.TRANSPARENT}},oi=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]},ai=(t,A)=>{const e=A.filter(HA);if(Ye(e))throw new Error("Relative color not supported for rgb()");if(e.length===3){const[r,s,n]=e.map(Te);return se(r,s,n,1)}if(e.length===4){const[r,s,n,o]=e.map(Te);return se(r,s,n,o)}if(e.length===5&&e[3].type===6&&e[3].value==="/"){const r=Te(e[0],0),s=Te(e[1],1),n=Te(e[2],2),o=Te(e[4],3);return se(r,s,n,o)}return 0},MB=(t,A)=>{const e=A.filter(HA),r=e[0].type===20?e[0].value:"unknown";if(!Ye(e)){const n=r,o=ii[n];if(typeof o>"u")throw new Error(`Attempting to parse an unsupported color space "${n}" for color() function`);const a=UA(e[1])?e[1].number:0,i=UA(e[2])?e[2].number:0,l=UA(e[3])?e[3].number:0,g=e.length>4&&e[4].type===6&&e[4].value==="/"&&UA(e[5])?e[5].number:1;return o([a,i,l,g])}else{const n=(Q,L)=>{if(UA(L))return L.number;const K=R=>R==="r"||R==="x"?0:R==="g"||R==="y"?1:2;if(G(L)){const R=K(L.value);return Q[R]}const b=R=>{const W=R.filter(HA);let sA="(";for(const O of W)sA+=O.type===18&&O.name==="calc"?b(O.values):UA(O)?O.number:O.type===6||G(O)?O.value:"";return sA+=")",sA};if(L.type===18){const R=L.values.filter(HA);if(L.name==="calc"){const W=b(R).replace(/r|x/,Q[0].toString()).replace(/g|y/,Q[1].toString()).replace(/b|z/,Q[2].toString());return new Function("return "+W)()}}return null},o=e[1].type===18?e[1].name:G(e[1])||e[1].type===5?"rgb":"unknown",a=G(e[2])?e[2].value:"unknown";let i=e[1].type===18?e[1].values:G(e[1])?[e[1]]:[];if(G(e[1])){if(typeof ge[e[1].value.toUpperCase()]>"u")throw new Error("Attempting to use unknown color in relative color 'from'");{const L=pt(t,e[1].value),K=255&L,b=255&L>>8,R=255&L>>16;i=[{type:17,number:255&L>>24,flags:1},{type:17,number:R,flags:1},{type:17,number:b,flags:1},{type:17,number:K>1?K/255:K,flags:1}]}}else if(e[1].type===5){const[Q,L,K,b]=oi(e[1]);i=[{type:17,number:Q,flags:1},{type:17,number:L,flags:1},{type:17,number:K,flags:1},{type:17,number:b>1?b/255:b,flags:1}]}if(i.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 l=GB[o],g=VB[a],B=ii[a];if(typeof l>"u")throw new Error(`Attempting to parse an unsupported color space "${o}" for color() function`);if(typeof g>"u")throw new Error(`Attempting to parse an unsupported color space "${a}" for color() function`);const h=l(t,i),u=g(h),m=n(u,e[3]),C=n(u,e[4]),y=n(u,e[5]),F=e.length>6&&e[6].type===6&&e[6].value==="/"&&UA(e[7])?e[7].number:1;if(m===null||C===null||y===null)throw new Error("Invalid relative color in color() function");return B([m,C,y,F])}},ii={srgb:$g,"srgb-linear":kn,"display-p3":wB,"a98-rgb":FB,"prophoto-rgb":SB,xyz:si,"xyz-d50":dB,"xyz-d65":si,rec2020:kB},GB={rgb:rB,hsl:sB,lab:nB,lch:oB,oklab:iB,oklch:aB},VB={srgb:zg,"srgb-linear":Yg,"display-p3":pB,"a98-rgb":UB,"prophoto-rgb":HB,xyz:ri,"xyz-d50":lB,"xyz-d65":ri,rec2020:RB},NB={hsl:$a,hsla:$a,rgb:ai,rgba:ai,lch:tB,oklch:eB,oklab:AB,lab:qg,color:MB},pt=(t,A)=>Oe.parse(t,ft.create(A).parseComponentValue()),ge={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},_B={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:(t,A)=>A.map(e=>{if(G(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})},PB={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},cs=(t,A)=>{const e=Oe.parse(t,A[0]),r=A[1];return r&&q(r)?{color:e,stop:r}:{color:e,stop:null}},ci=(t,A)=>{const e=t[0],r=t[t.length-1];e.stop===null&&(e.stop=FA),r.stop===null&&(r.stop=de);const s=[];let n=0;for(let a=0;a<t.length;a++){const i=t[a].stop;if(i!==null){const l=M(i,A);l>n?s.push(l):s.push(n),n=l}else s.push(null)}let o=null;for(let a=0;a<s.length;a++){const i=s[a];if(i===null)o===null&&(o=a);else if(o!==null){const l=a-o,g=s[o-1],B=(i-g)/(l+1);for(let h=1;h<=l;h++)s[o+h-1]=B*h;o=null}}return t.map(({color:a},i)=>({color:a,stop:Math.max(Math.min(1,s[i]/A),0)}))},jB=(t,A,e)=>{const r=A/2,s=e/2,n=M(t[0],A)-r,o=s-M(t[1],e);return(Math.atan2(o,n)+Math.PI*2)%(Math.PI*2)},WB=(t,A,e)=>{const r=typeof t=="number"?t:jB(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,i=Math.sin(r-Math.PI/2)*a,l=Math.cos(r-Math.PI/2)*a;return[s,n-l,n+l,o-i,o+i]},ne=(t,A)=>Math.sqrt(t*t+A*A),li=(t,A,e,r,s)=>[[0,0],[0,A],[t,0],[t,A]].reduce((o,a)=>{const[i,l]=a,g=ne(e-i,r-l);return(s?g<o.optimumDistance:g>o.optimumDistance)?{optimumCorner:a,optimumDistance:g}:o},{optimumDistance:s?1/0:-1/0,optimumCorner:null}).optimumCorner,XB=(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(ne(A,e),ne(A,e-s),ne(A-r,e),ne(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)),[i,l]=li(r,s,A,e,!0);n=ne(i-A,(l-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(ne(A,e),ne(A,e-s),ne(A-r,e),ne(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)),[i,l]=li(r,s,A,e,!1);n=ne(i-A,(l-e)/a),o=a*n}break}return Array.isArray(t.size)&&(n=M(t.size[0],r),o=t.size.length===2?M(t.size[1],s):n),[n,o]},zB=(t,A)=>{let e=qA(180);const r=[];return re(A).forEach((s,n)=>{if(n===0){const a=s[0];if(a.type===20&&a.value==="to"){e=Ja(s);return}else if(Ya(a)){e=ht.parse(t,a);return}}const o=cs(t,s);r.push(o)}),{angle:e,stops:r,type:1}},ls=(t,A)=>{let e=qA(180);const r=[];return re(A).forEach((s,n)=>{if(n===0){const a=s[0];if(a.type===20&&["top","left","right","bottom"].indexOf(a.value)!==-1){e=Ja(s);return}else if(Ya(a)){e=(ht.parse(t,a)+qA(270))%qA(360);return}}const o=cs(t,s);r.push(o)}),{angle:e,stops:r,type:1}},YB=(t,A)=>{const e=qA(180),r=[];let s=1;const n=0,o=3,a=[];return re(A).forEach((i,l)=>{const g=i[0];if(l===0){if(G(g)&&g.value==="linear"){s=1;return}else if(G(g)&&g.value==="radial"){s=2;return}}if(g.type===18){if(g.name==="from"){const B=Oe.parse(t,g.values[0]);r.push({stop:FA,color:B})}else if(g.name==="to"){const B=Oe.parse(t,g.values[0]);r.push({stop:de,color:B})}else if(g.name==="color-stop"){const B=g.values.filter(HA);if(B.length===2){const h=Oe.parse(t,B[1]),u=B[0];UA(u)&&r.push({stop:{type:16,number:u.number*100,flags:u.flags},color:h})}}}}),s===1?{angle:(e+qA(180))%qA(360),stops:r,type:s}:{size:o,shape:n,stops:r,position:a,type:s}},di="closest-side",gi="farthest-side",Bi="closest-corner",ui="farthest-corner",fi="circle",hi="ellipse",pi="cover",wi="contain",JB=(t,A)=>{let e=0,r=3;const s=[],n=[];return re(A).forEach((o,a)=>{let i=!0;if(a===0){let l=!1;i=o.reduce((g,B)=>{if(l)if(G(B))switch(B.value){case"center":return n.push(ze),g;case"top":case"left":return n.push(FA),g;case"right":case"bottom":return n.push(de),g}else(q(B)||Se(B))&&n.push(B);else if(G(B))switch(B.value){case fi:return e=0,!1;case hi:return e=1,!1;case"at":return l=!0,!1;case di:return r=0,!1;case pi:case gi:return r=1,!1;case wi:case Bi:return r=2,!1;case ui:return r=3,!1}else if(Se(B)||q(B))return Array.isArray(r)||(r=[]),r.push(B),!1;return g},i)}if(i){const l=cs(t,o);s.push(l)}}),{size:r,shape:e,stops:s,position:n,type:2}},ds=(t,A)=>{let e=0,r=3;const s=[],n=[];return re(A).forEach((o,a)=>{let i=!0;if(a===0?i=o.reduce((l,g)=>{if(G(g))switch(g.value){case"center":return n.push(ze),!1;case"top":case"left":return n.push(FA),!1;case"right":case"bottom":return n.push(de),!1}else if(q(g)||Se(g))return n.push(g),!1;return l},i):a===1&&(i=o.reduce((l,g)=>{if(G(g))switch(g.value){case fi:return e=0,!1;case hi:return e=1,!1;case wi:case di:return r=0,!1;case gi:return r=1,!1;case Bi:return r=2,!1;case pi:case ui:return r=3,!1}else if(Se(g)||q(g))return Array.isArray(r)||(r=[]),r.push(g),!1;return l},i)),i){const l=cs(t,o);s.push(l)}}),{size:r,shape:e,stops:s,position:n,type:2}},ZB=t=>t.type===1,$B=t=>t.type===2,Vn={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=mi[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 qB(t){return!(t.type===20&&t.value==="none")&&(t.type!==18||!!mi[t.name])}const mi={"linear-gradient":zB,"-moz-linear-gradient":ls,"-ms-linear-gradient":ls,"-o-linear-gradient":ls,"-webkit-linear-gradient":ls,"radial-gradient":JB,"-moz-radial-gradient":ds,"-ms-radial-gradient":ds,"-o-radial-gradient":ds,"-webkit-radial-gradient":ds,"-webkit-gradient":YB},Au={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=>HA(r)&&qB(r)).map(r=>Vn.parse(t,r))}},eu={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:(t,A)=>A.map(e=>{if(G(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})},tu={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:(t,A)=>re(A).map(e=>e.map(r=>Jg(r)?Zg(r,0):q(r)?r:null).filter(r=>r!==null)).map(Pa)},ru={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:(t,A)=>re(A).map(e=>e.filter(G).map(r=>r.value).join(" ")).map(su)},su=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 wt;(function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"})(wt||(wt={}));const nu={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:(t,A)=>re(A).map(e=>e.filter(ou))},ou=t=>G(t)||q(t),gs=t=>({name:`border-${t}-color`,initialValue:"transparent",prefix:!1,type:3,format:"color"}),au=gs("top"),iu=gs("right"),cu=gs("bottom"),lu=gs("left"),Bs=t=>({name:`border-radius-${t}`,initialValue:"0 0",prefix:!1,type:1,parse:(A,e)=>Pa(e.filter(q))}),du=Bs("top-left"),gu=Bs("top-right"),Bu=Bs("bottom-right"),uu=Bs("bottom-left"),us=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}}),fu=us("top"),hu=us("right"),pu=us("bottom"),wu=us("left"),fs=t=>({name:`border-${t}-width`,initialValue:"0",type:0,prefix:!1,parse:(A,e)=>le(e)?e.number:0}),mu=fs("top"),Cu=fs("right"),Qu=fs("bottom"),xu=fs("left"),Nn={type:0},_n=t=>{const[A]=t;return A?G(A)?A.value==="farthest-side"?"farthest-side":"closest-side":q(A)?A:"closest-side":"closest-side"},Ci=t=>{let A=null,e=null;for(const r of t)if(G(r))switch(r.value){case"left":A=FA;break;case"right":A=de;break;case"top":e=FA;break;case"bottom":e=de;break;case"center":A===null?A=ze:e===null&&(e=ze);break}else q(r)&&(A===null?A=r:e===null&&(e=r));return{cx:A??ze,cy:e??ze}},Uu=t=>{const A=[];for(const o of t)if(o.type!==31){if(G(o)&&o.value==="round")break;q(o)&&A.push(o)}const e=A[0]??FA,r=A[1]??e,s=A[2]??e,n=A[3]??r;return{type:1,top:e,right:r,bottom:s,left:n}},Fu=t=>{const A=t.filter(rs),e=A.findIndex(n=>er(n,"at")),r=e===-1?A:A.slice(0,e),s=e===-1?[]:A.slice(e+1);return{type:2,radius:_n(r),...Ci(s)}},yu=t=>{const A=t.filter(rs),e=A.findIndex(n=>er(n,"at")),r=e===-1?A:A.slice(0,e),s=e===-1?[]:A.slice(e+1);return{type:3,rx:_n(r.slice(0,1)),ry:_n(r.slice(1,2)),...Ci(s)}},bu=t=>{const A=re(t),e=[];for(const r of A){if(r.length===1&&G(r[0]))continue;const s=r.filter(q);s.length>=2&&e.push([s[0],s[1]])}return{type:4,points:e}},Eu=t=>{const A=t.find(e=>e.type===0);return A?{type:5,d:A.value}:Nn},vu={name:"clip-path",initialValue:"none",prefix:!1,type:0,parse:(t,A)=>{if(G(A)&&A.value==="none")return Nn;if(A.type===18)switch(A.name){case"inset":return Uu(A.values);case"circle":return Fu(A.values);case"ellipse":return yu(A.values);case"polygon":return bu(A.values);case"path":return Eu(A.values)}return Nn}},Iu={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Hu={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:(t,A)=>A==="rtl"?1:0},Su={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:(t,A)=>A.filter(G).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},Tu={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}},Ou={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 hs;(function(t){t.NORMAL="normal",t.STRICT="strict"})(hs||(hs={}));const Du={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:(t,A)=>A==="strict"?hs.STRICT:hs.NORMAL},Ku={name:"line-height",initialValue:"normal",prefix:!1,type:4},Qi=(t,A)=>G(t)&&t.value==="normal"?1.2*A:t.type===17?A*t.number:q(t)?M(t,A):A,Ru={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:(t,A)=>A.type===20&&A.value==="none"?null:Vn.parse(t,A)},ku={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:(t,A)=>A==="inside"?0:1},Pn={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}}},ps=t=>({name:`margin-${t}`,initialValue:"0",prefix:!1,type:4}),Mu=ps("top"),Gu=ps("right"),Vu=ps("bottom"),Nu=ps("left"),_u={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:(t,A)=>A.filter(G).map(e=>{switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})},Pu={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:(t,A)=>A==="break-word"?"break-word":"normal"},ws=t=>({name:`padding-${t}`,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}),ju=ws("top"),Wu=ws("right"),Xu=ws("bottom"),zu=ws("left"),Yu={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}}},Ju={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}},Zu={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:(t,A)=>A.length===1&&er(A[0],"none")?[]:re(A).map(e=>{const r={color:ge.TRANSPARENT,offsetX:FA,offsetY:FA,blur:FA};let s=0;for(let n=0;n<e.length;n++){const o=e[n];Se(o)?(s===0?r.offsetX=o:s===1?r.offsetY=o:r.blur=o,s++):r.color=Oe.parse(t,o)}return r})},$u={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}},qu={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=Af[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}},Af={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(l=>l.type===17).map(l=>l.number),[r,s,{},{},n,o,{},{},{},{},{},{},a,i]=e;return e.length===16?[r,s,n,o,a,i]: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=ht.parse(t,e);else return null;const s=Math.cos(r),n=Math.sin(r);return[s,n,-n,s,0,0]}},xi={type:16,number:50,flags:Bt},ef=[xi,xi],tf={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:(t,A)=>{const e=A.filter(q);return e.length!==2?ef:[e[0],e[1]]}},rf={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?ht.parse(t,A)*180/Math.PI:null},sf={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 sr;(function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"})(sr||(sr={}));const nf={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:(t,A)=>{switch(A){case"break-all":return sr.BREAK_ALL;case"keep-all":return sr.KEEP_ALL;default:return sr.NORMAL}}},of={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:(t,A)=>{if(A.type===20)return{auto:!0,order:0};if(UA(A))return{auto:!1,order:A.number};throw new Error("Invalid z-index number parsed")}},Ui={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")}},af={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:(t,A)=>UA(A)?A.number:1},cf={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},lf={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:(t,A)=>A.filter(G).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)},df={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}}},gf={name:"text-decoration-thickness",initialValue:"auto",prefix:!1,type:0,parse:(t,A)=>{if(G(A))switch(A.value){case"auto":return"auto";case"from-font":return"from-font"}return le(A)?A.number:"auto"}},Bf={name:"text-underline-offset",initialValue:"auto",prefix:!1,type:0,parse:(t,A)=>G(A)&&A.value==="auto"?"auto":le(A)?A.number:"auto"},uf={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}'`)}},ff={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},hf={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:(t,A)=>UA(A)?A.number:G(A)&&A.value==="bold"?700:400},pf={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:(t,A)=>A.filter(G).map(e=>e.value)},wf={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"}}},BA=(t,A)=>(t&A)!==0,mf={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}},Cf={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(rs);for(let n=0;n<s.length;n++){const o=s[n],a=s[n+1];if(o.type===20){const i=a&&UA(a)?a.number:1;r.push({counter:o.value,increment:i})}}return r}},Qf={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:(t,A)=>{if(A.length===0)return[];const e=[],r=A.filter(rs);for(let s=0;s<r.length;s++){const n=r[s],o=r[s+1];if(G(n)&&n.value!=="none"){const a=o&&UA(o)?o.number:0;e.push({counter:n.value,reset:a})}}return e}},xf={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:(t,A)=>A.filter(le).map(e=>Ui.parse(t,e))},Uf={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(Wg);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}},Fi=(t,A,e)=>{if(!t)return"";const r=t[Math.min(A,t.length-1)];return r?e?r.open:r.close:""},Ff={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:(t,A)=>A.length===1&&er(A[0],"none")?[]:re(A).map(e=>{const r={color:255,offsetX:FA,offsetY:FA,blur:FA,spread:FA,inset:!1};let s=0;for(let n=0;n<e.length;n++){const o=e[n];er(o,"inset")?r.inset=!0:Se(o)?(s===0?r.offsetX=o:s===1?r.offsetY=o:s===2?r.blur=o:r.spread=o,s++):r.color=Oe.parse(t,o)}return r})},yf={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:(t,A)=>{const e=[0,1,2],r=[];return A.filter(G).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}},bf={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Ef={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:(t,A)=>le(A)?A.number:0},vf={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},If={name:"objectFit",initialValue:"fill",prefix:!1,type:1,parse:(t,A)=>A.filter(G).reduce((e,r)=>e|Hf(r.value),0)},Hf=t=>{switch(t){case"contain":return 2;case"cover":return 4;case"none":return 8;case"scale-down":return 16}return 0},Sf={name:"text-overflow",initialValue:"clip",prefix:!1,type:2,parse:(t,A)=>A==="ellipsis"?1:0};var zA;(function(t){t[t.AUTO=0]="AUTO",t[t.CRISP_EDGES=1]="CRISP_EDGES",t[t.PIXELATED=2]="PIXELATED",t[t.SMOOTH=3]="SMOOTH"})(zA||(zA={}));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 zA.CRISP_EDGES;case"pixelated":case"-webkit-optimize-contrast":return zA.PIXELATED;case"smooth":case"high-quality":return zA.SMOOTH;default:return zA.AUTO}}};class Tf{constructor(A,e){this.animationDuration=E(A,xf,e.animationDuration),this.backgroundClip=E(A,_B,e.backgroundClip),this.backgroundColor=E(A,PB,e.backgroundColor),this.backgroundImage=E(A,Au,e.backgroundImage),this.backgroundOrigin=E(A,eu,e.backgroundOrigin),this.backgroundPosition=E(A,tu,e.backgroundPosition),this.backgroundRepeat=E(A,ru,e.backgroundRepeat),this.backgroundSize=E(A,nu,e.backgroundSize),this.borderTopColor=E(A,au,e.borderTopColor),this.borderRightColor=E(A,iu,e.borderRightColor),this.borderBottomColor=E(A,cu,e.borderBottomColor),this.borderLeftColor=E(A,lu,e.borderLeftColor),this.borderTopLeftRadius=E(A,du,e.borderTopLeftRadius),this.borderTopRightRadius=E(A,gu,e.borderTopRightRadius),this.borderBottomRightRadius=E(A,Bu,e.borderBottomRightRadius),this.borderBottomLeftRadius=E(A,uu,e.borderBottomLeftRadius),this.borderTopStyle=E(A,fu,e.borderTopStyle),this.borderRightStyle=E(A,hu,e.borderRightStyle),this.borderBottomStyle=E(A,pu,e.borderBottomStyle),this.borderLeftStyle=E(A,wu,e.borderLeftStyle),this.borderTopWidth=E(A,mu,e.borderTopWidth),this.borderRightWidth=E(A,Cu,e.borderRightWidth),this.borderBottomWidth=E(A,Qu,e.borderBottomWidth),this.borderLeftWidth=E(A,xu,e.borderLeftWidth),this.boxShadow=E(A,Ff,e.boxShadow),this.clipPath=E(A,vu,e.clipPath),this.color=E(A,Iu,e.color),this.direction=E(A,Hu,e.direction),this.display=E(A,Su,e.display),this.float=E(A,Tu,e.cssFloat),this.fontFamily=E(A,uf,e.fontFamily),this.fontSize=E(A,ff,e.fontSize),this.fontStyle=E(A,wf,e.fontStyle),this.fontVariant=E(A,pf,e.fontVariant),this.fontWeight=E(A,hf,e.fontWeight),this.letterSpacing=E(A,Ou,e.letterSpacing),this.lineBreak=E(A,Du,e.lineBreak),this.lineHeight=E(A,Ku,e.lineHeight),this.listStyleImage=E(A,Ru,e.listStyleImage),this.listStylePosition=E(A,ku,e.listStylePosition),this.listStyleType=E(A,Pn,e.listStyleType),this.marginTop=E(A,Mu,e.marginTop),this.marginRight=E(A,Gu,e.marginRight),this.marginBottom=E(A,Vu,e.marginBottom),this.marginLeft=E(A,Nu,e.marginLeft),this.opacity=E(A,af,e.opacity);const r=E(A,_u,e.overflow);this.overflowX=r[0],this.overflowY=r[r.length>1?1:0],this.overflowWrap=E(A,Pu,e.overflowWrap),this.paddingTop=E(A,ju,e.paddingTop),this.paddingRight=E(A,Wu,e.paddingRight),this.paddingBottom=E(A,Xu,e.paddingBottom),this.paddingLeft=E(A,zu,e.paddingLeft),this.paintOrder=E(A,yf,e.paintOrder),this.position=E(A,Ju,e.position),this.textAlign=E(A,Yu,e.textAlign),this.textDecorationColor=E(A,cf,e.textDecorationColor??e.color),this.textDecorationLine=E(A,lf,e.textDecorationLine??e.textDecoration),this.textDecorationStyle=E(A,df,e.textDecorationStyle),this.textDecorationThickness=E(A,gf,e.textDecorationThickness),this.textUnderlineOffset=E(A,Bf,e.textUnderlineOffset),this.textShadow=E(A,Zu,e.textShadow),this.textTransform=E(A,$u,e.textTransform),this.textOverflow=E(A,Sf,e.textOverflow),this.transform=E(A,qu,e.transform),this.transformOrigin=E(A,tf,e.transformOrigin),this.rotate=E(A,rf,e.rotate),this.visibility=E(A,sf,e.visibility),this.webkitTextStrokeColor=E(A,bf,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=E(A,Ef,e.webkitTextStrokeWidth),this.webkitLineClamp=E(A,vf,e.webkitLineClamp),this.wordBreak=E(A,nf,e.wordBreak),this.zIndex=E(A,of,e.zIndex),this.objectFit=E(A,If,e.objectFit),this.imageRendering=E(A,Lf,e.imageRendering)}isVisible(){return this.display>0&&this.opacity>0&&this.visibility===0}isTransparent(){return Le(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 BA(this.display,4)||BA(this.display,33554432)||BA(this.display,268435456)||BA(this.display,536870912)||BA(this.display,67108864)||BA(this.display,134217728)}}class Of{constructor(A,e){this.content=E(A,mf,e.content),this.quotes=E(A,Uf,e.quotes)}}class yi{constructor(A,e){this.counterIncrement=E(A,Cf,e.counterIncrement),this.counterReset=E(A,Qf,e.counterReset)}}const E=(t,A,e)=>{const r=new _a,s=e!==null&&typeof e<"u"?e.toString():A.initialValue;r.write(s);const n=new ft(r.read());switch(A.type){case 2:const o=n.parseComponentValue();return A.parse(t,G(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 ht.parse(t,n.parseComponentValue());case"color":return Oe.parse(t,n.parseComponentValue());case"image":return Vn.parse(t,n.parseComponentValue());case"length":const a=n.parseComponentValue();return Se(a)?a:FA;case"length-percentage":const i=n.parseComponentValue();return q(i)?i:FA;case"time":return Ui.parse(t,n.parseComponentValue())}break}},me=t=>t.nodeType===Node.ELEMENT_NODE,bi=t=>t.nodeType===Node.TEXT_NODE,mt=t=>typeof t.className=="object",nr=t=>me(t)&&typeof t.style<"u"&&!mt(t),Df=t=>t.tagName==="LI",Kf=t=>t.tagName==="OL",Ei=t=>!mt(t)&&t.tagName.indexOf("-")>0,Rf="data-html2canvas-debug",kf=t=>{if(typeof t.getAttribute!="function")return 0;switch(t.getAttribute(Rf)){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},jn=(t,A)=>{const e=kf(t);return e===1||A===e};class vi{static normalizeElement(A,e){const r={};return nr(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){nr(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 Be{constructor(A,e,r={}){if(this.context=A,this.textNodes=[],this.elements=[],this.flags=0,jn(e,3))debugger;this.styles=new Tf(A,A.config.window.getComputedStyle(e,null)),r.normalizeDom!==!1&&nr(e)&&(this.originalStyles=vi.normalizeElement(e,this.styles),this.originalElement=e),this.bounds=Rr(this.context,e),jn(e,4)&&(this.flags|=16)}restore(){this.originalStyles&&this.originalElement&&(vi.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 Mf="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Ii="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",or=typeof Uint8Array>"u"?[]:new Uint8Array(256),ms=0;ms<Ii.length;ms++)or[Ii.charCodeAt(ms)]=ms;for(var Gf=function(t){var A=t.length*.75,e=t.length,r,s=0,n,o,a,i;t[t.length-1]==="="&&(A--,t[t.length-2]==="="&&A--);var l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),g=Array.isArray(l)?l:new Uint8Array(l);for(r=0;r<e;r+=4)n=or[t.charCodeAt(r)],o=or[t.charCodeAt(r+1)],a=or[t.charCodeAt(r+2)],i=or[t.charCodeAt(r+3)],g[s++]=n<<2|o>>4,g[s++]=(o&15)<<4|a>>2,g[s++]=(a&3)<<6|i&63;return l},Vf=function(t){for(var A=t.length,e=[],r=0;r<A;r+=2)e.push(t[r+1]<<8|t[r]);return e},Nf=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,Wn=11,Xn=2,_f=Wn-Je,Hi=65536>>Je,Pf=1<<Je,zn=Pf-1,jf=1024>>Je,Wf=Hi+jf,Xf=Wf,zf=32,Yf=Xf+zf,Jf=65536>>Wn,Zf=1<<_f,$f=Zf-1,Si=function(t,A,e){return t.slice?t.slice(A,e):new Uint16Array(Array.prototype.slice.call(t,A,e))},qf=function(t,A,e){return t.slice?t.slice(A,e):new Uint32Array(Array.prototype.slice.call(t,A,e))},Ah=function(t,A){var e=Gf(t),r=Array.isArray(e)?Nf(e):new Uint32Array(e),s=Array.isArray(e)?Vf(e):new Uint16Array(e),n=24,o=Si(s,n/2,r[4]/2),a=r[5]===2?Si(s,(n+r[4])/2):qf(r,Math.ceil((n+r[4])/4));return new eh(r[0],r[1],r[2],r[3],o,a)},eh=(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<<Xn)+(A&zn),this.data[e];if(A<=65535)return e=this.index[Hi+(A-55296>>Je)],e=(e<<Xn)+(A&zn),this.data[e];if(A<this.highStart)return e=Yf-Jf+(A>>Wn),e=this.index[e],e+=A>>Je&$f,e=this.index[e],e=(e<<Xn)+(A&zn),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t})(),Li="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",th=typeof Uint8Array>"u"?[]:new Uint8Array(256),Cs=0;Cs<Li.length;Cs++)th[Li.charCodeAt(Cs)]=Cs;var rh=1,Yn=2,Jn=3,Ti=4,Oi=5,sh=7,Di=8,Zn=9,$n=10,Ki=11,Ri=12,ki=13,Mi=14,qn=15,nh=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},oh=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},ah=Ah(Mf),Ae="×",Ao="÷",ih=function(t){return ah.get(t)},ch=function(t,A,e){var r=e-2,s=A[r],n=A[e-1],o=A[e];if(n===Yn&&o===Jn)return Ae;if(n===Yn||n===Jn||n===Ti||o===Yn||o===Jn||o===Ti)return Ao;if(n===Di&&[Di,Zn,Ki,Ri].indexOf(o)!==-1||(n===Ki||n===Zn)&&(o===Zn||o===$n)||(n===Ri||n===$n)&&o===$n||o===ki||o===Oi||o===sh||n===rh)return Ae;if(n===ki&&o===Mi){for(;s===Oi;)s=A[--r];if(s===Mi)return Ae}if(n===qn&&o===qn){for(var a=0;s===qn;)a++,s=A[--r];if(a%2===0)return Ae}return Ao},lh=function(t){var A=nh(t),e=A.length,r=0,s=0,n=A.map(ih);return{next:function(){if(r>=e)return{done:!0,value:null};for(var o=Ae;r<e&&(o=ch(A,n,++r))===Ae;);if(o!==Ae||r===e){var a=oh.apply(null,A.slice(s,r));return s=r,{value:a,done:!1}}return{done:!0,value:null}}}},dh=function(t){for(var A=lh(t),e=[],r;!(r=A.next()).done;)r.value&&e.push(r.value.slice());return e};const gh=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},Bh=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=kr(r.data).map(i=>mA(i));let n=0,o={};const a=s.every((i,l)=>{e.setStart(r,n),e.setEnd(r,n+i.length);const g=e.getBoundingClientRect();n+=i.length;const B=g.x>o.x||g.y>o.y;return o=g,l===0?!0:B});return t.body.removeChild(A),a},uh=()=>typeof new Image().crossOrigin<"u",fh=()=>typeof new XMLHttpRequest().responseType=="string",hh=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},Gi=t=>t[0]===0&&t[1]===255&&t[2]===0&&t[3]===255,ph=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=eo(e,e,0,0,s);return r.fillStyle="red",r.fillRect(0,0,e,e),Vi(o).then(a=>{r.drawImage(a,0,0);const i=r.getImageData(0,0,e,e).data;r.fillStyle="red",r.fillRect(0,0,e,e);const l=t.createElement("div");return l.style.backgroundImage=`url(${n})`,l.style.height=`${e}px`,Gi(i)?Vi(eo(e,e,0,0,l)):Promise.reject(!1)}).then(a=>(r.drawImage(a,0,0),Gi(r.getImageData(0,0,e,e).data))).catch(()=>!1)},eo=(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},Vi=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))}`}),SA={get SUPPORT_RANGE_BOUNDS(){const t=gh(document);return Object.defineProperty(SA,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){const t=SA.SUPPORT_RANGE_BOUNDS&&Bh(document);return Object.defineProperty(SA,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){const t=hh(document);return Object.defineProperty(SA,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){const t=typeof Array.from=="function"&&typeof window.fetch=="function"?ph(document):Promise.resolve(!1);return Object.defineProperty(SA,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){const t=uh();return Object.defineProperty(SA,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){const t=fh();return Object.defineProperty(SA,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){const t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(SA,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){const t=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(SA,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}};class Ze{constructor(A,e){this.text=A,this.bounds=e}}const wh=(t,A,e,r)=>{const s=Qh(A,e),n=[];let o=0;return s.forEach(a=>{if(e.textDecorationLine.length||a.trim().length>0)if(SA.SUPPORT_RANGE_BOUNDS){const i=Ni(r,o,a.length).getClientRects();if(i.length>1){const l=Qs(a);let g=0;l.forEach(B=>{n.push(new Ze(B,TA.fromDOMRectList(t,Ni(r,g+o,B.length).getClientRects()))),g+=B.length})}else n.push(new Ze(a,TA.fromDOMRectList(t,i)))}else{const i=r.splitText(a.length);n.push(new Ze(a,mh(t,r))),r=i}else SA.SUPPORT_RANGE_BOUNDS||(r=r.splitText(a.length));o+=a.length}),n},mh=(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=Rr(t,r);return r.firstChild&&s.replaceChild(r.firstChild,r),n}}return TA.EMPTY},Ni=(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},Qs=t=>{if(SA.SUPPORT_NATIVE_TEXT_SEGMENTATION){const A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(A.segment(t)).map(e=>e.segment)}return dh(t)},Ch=(t,A)=>{if(SA.SUPPORT_NATIVE_TEXT_SEGMENTATION){const e=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(e.segment(t)).map(r=>r.segment)}return Uh(t,A)},Qh=(t,A)=>A.letterSpacing!==0?Qs(t):Ch(t,A),xh=[32,160,4961,65792,65793,4153,4241],Uh=(t,A)=>{const e=Gd(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=kr(n);let a="";o.forEach(i=>{xh.indexOf(i)===-1?a+=mA(i):(a.length&&r.push(a),r.push(mA(i)),a="")}),a.length&&r.push(a)}return r};class Fh{constructor(A,e,r){this.text=yh(e.data,r.textTransform),this.textBounds=wh(A,this.text,r,e)}}const yh=(t,A)=>{switch(A){case 1:return t.toLowerCase();case 3:return t.replace(bh,Eh);case 2:return t.toUpperCase();default:return t}},bh=/(^|\s|:|-|\(|\))([a-z])/g,Eh=(t,A,e)=>t.length>0?A+e.toUpperCase():t;class _i extends Be{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 Pi extends Be{constructor(A,e){super(A,e),this.canvas=e,this.intrinsicWidth=e.width,this.intrinsicHeight=e.height}}class ji extends Be{constructor(A,e){super(A,e);const r=new XMLSerializer,s=Rr(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 Wi extends Be{constructor(A,e){super(A,e),this.value=e.value}}class to extends Be{constructor(A,e){super(A,e),this.start=e.start,this.reversed=typeof e.reversed=="boolean"&&e.reversed===!0}}const vh=[{type:15,flags:0,unit:"px",number:3}],Ih=[{type:16,flags:0,number:50}],Hh=t=>t.width>t.height?new TA(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width<t.height?new TA(t.left,t.top+(t.height-t.width)/2,t.width,t.width):t,Sh=t=>{const A=t.type===Th?new Array(t.value.length+1).join("•"):t.value;return A.length===0?t.placeholder||"":A},Lh=t=>t.value.length===0&&!!t.placeholder,xs="checkbox",Us="radio",Th="password",Xi=707406591,Oh=1970632191;class ar extends Be{constructor(A,e){switch(super(A,e),this.type=e.type.toLowerCase(),this.checked=e.checked,this.value=Sh(e),this.isPlaceholder=Lh(e),(this.type===xs||this.type===Us)&&(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=Hh(this.bounds)),this.type){case xs:this.styles.borderTopRightRadius=this.styles.borderTopLeftRadius=this.styles.borderBottomRightRadius=this.styles.borderBottomLeftRadius=vh;break;case Us:this.styles.borderTopRightRadius=this.styles.borderTopLeftRadius=this.styles.borderBottomRightRadius=this.styles.borderBottomLeftRadius=Ih;break}}}class zi extends Be{constructor(A,e){super(A,e);const r=e.options[e.selectedIndex||0];this.value=r&&r.text||""}}class Yi extends Be{constructor(A,e){super(A,e),this.value=e.value}}class Ji extends Be{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?pt(A,getComputedStyle(e.contentWindow.document.documentElement).backgroundColor):ge.TRANSPARENT,n=e.contentWindow.document.body?pt(A,getComputedStyle(e.contentWindow.document.body).backgroundColor):ge.TRANSPARENT;this.backgroundColor=Le(s)?Le(n)?this.styles.backgroundColor:n:s}}catch{}}}const Dh=["OL","UL","MENU"],Fs=(t,A,e,r)=>{for(let s=A.firstChild,n;s;s=n)if(n=s.nextSibling,bi(s)&&s.data.length>0)e.textNodes.push(new Fh(t,s,e.styles));else if(me(s))if(ir(s)&&s.assignedNodes)s.assignedNodes().forEach(o=>Fs(t,o,e,r));else{const o=Zi(t,s);o.styles.isVisible()&&(Kh(s,o,r)?o.flags|=4:Rh(o.styles)&&(o.flags|=2),Dh.indexOf(s.tagName)!==-1&&(o.flags|=8),e.elements.push(o),s.slot,s.shadowRoot?Fs(t,s.shadowRoot,o,r):!ys(s)&&!qi(s)&&!bs(s)&&Fs(t,s,o,r))}},Zi=(t,A)=>so(A)?new _i(t,A):Ac(A)?new Pi(t,A):qi(A)?new ji(t,A):Df(A)?new Wi(t,A):Kf(A)?new to(t,A):kh(A)?new ar(t,A):bs(A)?new zi(t,A):ys(A)?new Yi(t,A):tc(A)?new Ji(t,A,$i):new Be(t,A),$i=(t,A)=>{const e=Zi(t,A);return e.flags|=4,Fs(t,A,e,e),e},Kh=(t,A,e)=>A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||ro(t)&&e.styles.isTransparent(),Rh=t=>t.isPositioned()||t.isFloating()?!0:BA(t.display,268435456)||BA(t.display,33554432)||BA(t.display,536870912)||BA(t.display,134217728),kh=t=>t.tagName==="INPUT",Mh=t=>t.tagName==="HTML",qi=t=>t.tagName==="svg",ro=t=>t.tagName==="BODY",Ac=t=>t.tagName==="CANVAS",ec=t=>t.tagName==="VIDEO",so=t=>t.tagName==="IMG",tc=t=>t.tagName==="IFRAME",no=t=>t.tagName==="STYLE",rc=t=>t.tagName==="SCRIPT",ys=t=>t.tagName==="TEXTAREA",bs=t=>t.tagName==="SELECT",ir=t=>t.tagName==="SLOT";class Gh{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 sc={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"]},nc={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Vh={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Nh={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Ct=(t,A,e,r,s,n)=>t<A||t>e?lr(t,s,n.length>0):r.integers.reduce((o,a,i)=>{for(;t>=a;)t-=a,o+=r.values[i];return o},"")+n,oc=(t,A,e,r)=>{let s="";do e||t--,s=r(t)+s,t/=A;while(t*A>=A);return s},CA=(t,A,e,r,s)=>{const n=e-A+1;return(t<0?"-":"")+(oc(Math.abs(t),n,r,o=>mA(Math.floor(o%n)+A))+s)},$e=(t,A,e=". ")=>{const r=A.length;return oc(Math.abs(t),r,!1,s=>A[Math.floor(s%r)])+e},Qt=1,De=2,Ke=4,cr=8,Ce=(t,A,e,r,s,n)=>{if(t<-9999||t>9999)return lr(t,4,s.length>0);let o=Math.abs(t),a=s;if(o===0)return A[0]+a;for(let i=0;o>0&&i<=4;i++){const l=o%10;l===0&&BA(n,Qt)&&a!==""?a=A[l]+a:l>1||l===1&&i===0||l===1&&i===1&&BA(n,De)||l===1&&i===1&&BA(n,Ke)&&t>100||l===1&&i>1&&BA(n,cr)?a=A[l]+(i>0?e[i-1]:"")+a:l===1&&i>0&&(a=e[i-1]+a),o=Math.floor(o/10)}return(t<0?r:"")+a},ac="十百千萬",ic="拾佰仟萬",cc="マイナス",oo="마이너스",lr=(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=CA(t,48,57,!0,r);return a.length<4?`0${a}`:a;case 4:return $e(t,"〇一二三四五六七八九",s);case 6:return Ct(t,1,3999,sc,3,r).toLowerCase();case 7:return Ct(t,1,3999,sc,3,r);case 8:return CA(t,945,969,!1,r);case 9:return CA(t,97,122,!1,r);case 10:return CA(t,65,90,!1,r);case 11:return CA(t,1632,1641,!0,r);case 12:case 49:return Ct(t,1,9999,nc,3,r);case 35:return Ct(t,1,9999,nc,3,r).toLowerCase();case 13:return CA(t,2534,2543,!0,r);case 14:case 30:return CA(t,6112,6121,!0,r);case 15:return $e(t,"子丑寅卯辰巳午未申酉戌亥",s);case 16:return $e(t,"甲乙丙丁戊己庚辛壬癸",s);case 17:case 48:return Ce(t,"零一二三四五六七八九",ac,"負",s,De|Ke|cr);case 47:return Ce(t,"零壹貳參肆伍陸柒捌玖",ic,"負",s,Qt|De|Ke|cr);case 42:return Ce(t,"零一二三四五六七八九",ac,"负",s,De|Ke|cr);case 41:return Ce(t,"零壹贰叁肆伍陆柒捌玖",ic,"负",s,Qt|De|Ke|cr);case 26:return Ce(t,"〇一二三四五六七八九","十百千万",cc,s,0);case 25:return Ce(t,"零壱弐参四伍六七八九","拾百千万",cc,s,Qt|De|Ke);case 31:return Ce(t,"영일이삼사오육칠팔구","십백천만",oo,n,Qt|De|Ke);case 33:return Ce(t,"零一二三四五六七八九","十百千萬",oo,n,0);case 32:return Ce(t,"零壹貳參四五六七八九","拾百千",oo,n,Qt|De|Ke);case 18:return CA(t,2406,2415,!0,r);case 20:return Ct(t,1,19999,Nh,3,r);case 21:return CA(t,2790,2799,!0,r);case 22:return CA(t,2662,2671,!0,r);case 52:return Ct(t,1,10999,Vh,3,r);case 23:return $e(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return $e(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return CA(t,3302,3311,!0,r);case 28:return $e(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",s);case 29:return $e(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",s);case 34:return CA(t,3792,3801,!0,r);case 37:return CA(t,6160,6169,!0,r);case 38:return CA(t,4160,4169,!0,r);case 39:return CA(t,2918,2927,!0,r);case 40:return CA(t,1776,1785,!0,r);case 43:return CA(t,3046,3055,!0,r);case 44:return CA(t,3174,3183,!0,r);case 45:return CA(t,3664,3673,!0,r);case 46:return CA(t,3872,3881,!0,r);default:return CA(t,48,57,!0,r)}},ao="data-html2canvas-ignore",_h=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 lc{constructor(A,e,r){if(this.context=A,this.options=r,this.scrolledElements=[],this.referenceElement=e,this.counters=new Gh,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");if(!this.options.iframeContainer){const s=_h(e);s&&(this.options.iframeContainer=s)}this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}toIFrame(A,e){const r=Ph(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,i=Xh(r).then(async()=>{this.scrolledElements.forEach(Zh),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 h=this.options.onclone,u=this.clonedReferenceElement;if(typeof u>"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 Wh(a),typeof h=="function"?Promise.resolve().then(()=>h(a,u)).then(()=>r):r}),l=a.baseURI;a.open();const g=Yh(document.doctype)+"<html></html>";try{const h=this.referenceElement.ownerDocument?.defaultView,u=h&&h.trustedTypes;let m=u?.getPolicy?.("html2canvas-pro");!m&&u&&(m=u.createPolicy("html2canvas-pro",{createHTML:C=>C})),m?a.write(m.createHTML(g)):a.write(g)}catch{a.write(g)}Jh(this.referenceElement.ownerDocument,s,n),a.close();const B=a.adoptNode(this.documentElement);return tp(B,l),a.replaceChild(B,a.documentElement),i}createElementClone(A){if(jn(A,2))debugger;if(Ac(A))return this.createCanvasClone(A);if(ec(A))return this.createVideoClone(A);if(no(A))return this.createStyleClone(A);const e=A.cloneNode(!1);return so(e)&&(so(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),e.loading==="lazy"&&(e.loading="eager")),Ei(e)&&!mt(e)?this.createCustomElementClone(e):e}createCustomElementClone(A){const e=document.createElement("div");if(e.className=A.className,io(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){(!me(e)||!rc(e)&&!e.hasAttribute(ao)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(e)))&&(!this.options.copyStyles||!me(e)||!no(e))&&A.appendChild(this.cloneNode(e,r))}shouldCloneChild(A){return!me(A)||!rc(A)&&!A.hasAttribute(ao)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(A))}shouldCloneStyleElement(A){return!this.options.copyStyles||!me(A)||!no(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(!ir(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)me(s)&&ir(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(!ir(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)me(s)&&ir(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(bi(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);const r=A.ownerDocument.defaultView;if(r&&me(A)&&(nr(A)||mt(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&&nr(s)&&(this.clonedReferenceElement=s),ro(s)&&Ap(s,this.options.cspNonce);const i=this.counters.parse(new yi(this.context,n)),l=this.resolvePseudoContent(A,s,o,dr.BEFORE);Ei(A)&&(e=!0),ec(A)||this.cloneChildNodes(A,s,e),l&&s.insertBefore(l,s.firstChild);const g=this.resolvePseudoContent(A,s,a,dr.AFTER);return g&&s.appendChild(g),this.counters.pop(i),(n&&(this.options.copyStyles||mt(A))&&!tc(A)||e)&&io(n,s),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([s,A.scrollLeft,A.scrollTop]),(ys(A)||bs(A))&&(ys(s)||bs(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 yi(this.context,r));const a=new Of(this.context,r),i=o.createElement("html2canvaspseudoelement");io(r,i),a.content.forEach(g=>{if(g.type===0)i.appendChild(o.createTextNode(g.value));else if(g.type===22){const B=o.createElement("img");B.src=g.value,B.style.opacity="1",i.appendChild(B)}else if(g.type===18){if(g.name==="attr"){const B=g.values.filter(G);B.length&&i.appendChild(o.createTextNode(A.getAttribute(B[0].value)||""))}else if(g.name==="counter"){const[B,h]=g.values.filter(HA);if(B&&G(B)){const u=this.counters.getCounterValue(B.value),m=h&&G(h)?Pn.parse(this.context,h.value):3;i.appendChild(o.createTextNode(lr(u,m,!1)))}}else if(g.name==="counters"){const[B,h,u]=g.values.filter(HA);if(B&&G(B)){const m=this.counters.getCounterValues(B.value),C=u&&G(u)?Pn.parse(this.context,u.value):3,y=h&&h.type===0?h.value:"",F=m.map(Q=>lr(Q,C,!1)).join(y);i.appendChild(o.createTextNode(F))}}}else if(g.type===20)switch(g.value){case"open-quote":i.appendChild(o.createTextNode(Fi(a.quotes,this.quoteDepth++,!0)));break;case"close-quote":i.appendChild(o.createTextNode(Fi(a.quotes,--this.quoteDepth,!1)));break;default:i.appendChild(o.createTextNode(g.value))}}),i.className=`${co} ${lo}`;const l=s===dr.BEFORE?` ${co}`:` ${lo}`;return mt(e)?e.className.baseValue+=l:e.className+=l,i}static destroy(A){return A.parentNode?(A.parentNode.removeChild(A),!0):!1}}var dr;(function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"})(dr||(dr={}));const Ph=(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(ao,"true"),(e||t.body).appendChild(r),r},jh=t=>new Promise(A=>{if(t.complete){A();return}if(!t.src){A();return}t.onload=A,t.onerror=A}),Wh=t=>Promise.all([].slice.call(t.images,0).map(jh)),Xh=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)}}),zh=["all","d","content"],io=(t,A)=>{for(let e=t.length-1;e>=0;e--){const r=t.item(e);zh.indexOf(r)===-1&&!r.startsWith("--")&&A.style.setProperty(r,t.getPropertyValue(r))}return A},Yh=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},Jh=(t,A,e)=>{t&&t.defaultView&&(A!==t.defaultView.pageXOffset||e!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(A,e)},Zh=([t,A,e])=>{t.scrollLeft=A,t.scrollTop=e},$h=":before",qh=":after",co="___html2canvas___pseudoelement_before",lo="___html2canvas___pseudoelement_after",dc=`{
|
|
8
|
-
content: "" !important;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
.${lo}${qh}${dc}`,A)},ep=(t,A,e)=>{const r=t.ownerDocument;if(r){const s=r.createElement("style");s.textContent=A,e&&(s.nonce=e),t.appendChild(s)}},tp=(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 xt=(t,A,e)=>new I(t.x+(A.x-t.x)*e,t.y+(A.y-t.y)*e);class Qe{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=xt(this.start,this.startControl,A),s=xt(this.startControl,this.endControl,A),n=xt(this.endControl,this.end,A),o=xt(r,s,A),a=xt(s,n,A),i=xt(o,a,A);return e?new Qe(this.start,r,o,i):new Qe(i,a,n,this.end)}add(A,e){return new Qe(this.start.add(A,e),this.startControl.add(A,e),this.endControl.add(A,e),this.end.add(A,e))}reverse(){return new Qe(this.end,this.endControl,this.startControl,this.start)}}const PA=t=>t.type===1;class rp{constructor(A){const e=A.styles,r=A.bounds;let[s,n]=tr(e.borderTopLeftRadius,r.width,r.height),[o,a]=tr(e.borderTopRightRadius,r.width,r.height),[i,l]=tr(e.borderBottomRightRadius,r.width,r.height),[g,B]=tr(e.borderBottomLeftRadius,r.width,r.height);const h=[];h.push((s+o)/r.width),h.push((g+i)/r.width),h.push((n+B)/r.height),h.push((a+l)/r.height);const u=Math.max(...h);u>1&&(s/=u,n/=u,o/=u,a/=u,i/=u,l/=u,g/=u,B/=u);const m=r.width-o,C=r.height-l,y=r.width-i,F=r.height-B,Q=e.borderTopWidth,L=e.borderRightWidth,K=e.borderBottomWidth,b=e.borderLeftWidth,R=M(e.paddingTop,A.bounds.width),W=M(e.paddingRight,A.bounds.width),sA=M(e.paddingBottom,A.bounds.width),O=M(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=s>0||n>0?gA(r.left+b/3,r.top+Q/3,s-b/3,n-Q/3,Z.TOP_LEFT):new I(r.left+b/3,r.top+Q/3),this.topRightBorderDoubleOuterBox=s>0||n>0?gA(r.left+m,r.top+Q/3,o-L/3,a-Q/3,Z.TOP_RIGHT):new I(r.left+r.width-L/3,r.top+Q/3),this.bottomRightBorderDoubleOuterBox=i>0||l>0?gA(r.left+y,r.top+C,i-L/3,l-K/3,Z.BOTTOM_RIGHT):new I(r.left+r.width-L/3,r.top+r.height-K/3),this.bottomLeftBorderDoubleOuterBox=g>0||B>0?gA(r.left+b/3,r.top+F,g-b/3,B-K/3,Z.BOTTOM_LEFT):new I(r.left+b/3,r.top+r.height-K/3),this.topLeftBorderDoubleInnerBox=s>0||n>0?gA(r.left+b*2/3,r.top+Q*2/3,s-b*2/3,n-Q*2/3,Z.TOP_LEFT):new I(r.left+b*2/3,r.top+Q*2/3),this.topRightBorderDoubleInnerBox=s>0||n>0?gA(r.left+m,r.top+Q*2/3,o-L*2/3,a-Q*2/3,Z.TOP_RIGHT):new I(r.left+r.width-L*2/3,r.top+Q*2/3),this.bottomRightBorderDoubleInnerBox=i>0||l>0?gA(r.left+y,r.top+C,i-L*2/3,l-K*2/3,Z.BOTTOM_RIGHT):new I(r.left+r.width-L*2/3,r.top+r.height-K*2/3),this.bottomLeftBorderDoubleInnerBox=g>0||B>0?gA(r.left+b*2/3,r.top+F,g-b*2/3,B-K*2/3,Z.BOTTOM_LEFT):new I(r.left+b*2/3,r.top+r.height-K*2/3),this.topLeftBorderStroke=s>0||n>0?gA(r.left+b/2,r.top+Q/2,s-b/2,n-Q/2,Z.TOP_LEFT):new I(r.left+b/2,r.top+Q/2),this.topRightBorderStroke=s>0||n>0?gA(r.left+m,r.top+Q/2,o-L/2,a-Q/2,Z.TOP_RIGHT):new I(r.left+r.width-L/2,r.top+Q/2),this.bottomRightBorderStroke=i>0||l>0?gA(r.left+y,r.top+C,i-L/2,l-K/2,Z.BOTTOM_RIGHT):new I(r.left+r.width-L/2,r.top+r.height-K/2),this.bottomLeftBorderStroke=g>0||B>0?gA(r.left+b/2,r.top+F,g-b/2,B-K/2,Z.BOTTOM_LEFT):new I(r.left+b/2,r.top+r.height-K/2),this.topLeftBorderBox=s>0||n>0?gA(r.left,r.top,s,n,Z.TOP_LEFT):new I(r.left,r.top),this.topRightBorderBox=o>0||a>0?gA(r.left+m,r.top,o,a,Z.TOP_RIGHT):new I(r.left+r.width,r.top),this.bottomRightBorderBox=i>0||l>0?gA(r.left+y,r.top+C,i,l,Z.BOTTOM_RIGHT):new I(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=g>0||B>0?gA(r.left,r.top+F,g,B,Z.BOTTOM_LEFT):new I(r.left,r.top+r.height),this.topLeftPaddingBox=s>0||n>0?gA(r.left+b,r.top+Q,Math.max(0,s-b),Math.max(0,n-Q),Z.TOP_LEFT):new I(r.left+b,r.top+Q),this.topRightPaddingBox=o>0||a>0?gA(r.left+Math.min(m,r.width-L),r.top+Q,m>r.width+L?0:Math.max(0,o-L),Math.max(0,a-Q),Z.TOP_RIGHT):new I(r.left+r.width-L,r.top+Q),this.bottomRightPaddingBox=i>0||l>0?gA(r.left+Math.min(y,r.width-b),r.top+Math.min(C,r.height-K),Math.max(0,i-L),Math.max(0,l-K),Z.BOTTOM_RIGHT):new I(r.left+r.width-L,r.top+r.height-K),this.bottomLeftPaddingBox=g>0||B>0?gA(r.left+b,r.top+Math.min(F,r.height-K),Math.max(0,g-b),Math.max(0,B-K),Z.BOTTOM_LEFT):new I(r.left+b,r.top+r.height-K),this.topLeftContentBox=s>0||n>0?gA(r.left+b+O,r.top+Q+R,Math.max(0,s-(b+O)),Math.max(0,n-(Q+R)),Z.TOP_LEFT):new I(r.left+b+O,r.top+Q+R),this.topRightContentBox=o>0||a>0?gA(r.left+Math.min(m,r.width+b+O),r.top+Q+R,m>r.width+b+O?0:o-b+O,a-(Q+R),Z.TOP_RIGHT):new I(r.left+r.width-(L+W),r.top+Q+R),this.bottomRightContentBox=i>0||l>0?gA(r.left+Math.min(y,r.width-(b+O)),r.top+Math.min(C,r.height+Q+R),Math.max(0,i-(L+W)),l-(K+sA),Z.BOTTOM_RIGHT):new I(r.left+r.width-(L+W),r.top+r.height-(K+sA)),this.bottomLeftContentBox=g>0||B>0?gA(r.left+b+O,r.top+F,Math.max(0,g-(b+O)),B-(K+sA),Z.BOTTOM_LEFT):new I(r.left+b+O,r.top+r.height-(K+sA))}}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 gA=(t,A,e,r,s)=>{const n=4*((Math.sqrt(2)-1)/3),o=e*n,a=r*n,i=t+e,l=A+r;switch(s){case Z.TOP_LEFT:return new Qe(new I(t,l),new I(t,l-a),new I(i-o,A),new I(i,A));case Z.TOP_RIGHT:return new Qe(new I(t,A),new I(t+o,A),new I(i,l-a),new I(i,l));case Z.BOTTOM_RIGHT:return new Qe(new I(i,A),new I(i,A+a),new I(t+o,l),new I(t,l));case Z.BOTTOM_LEFT:default:return new Qe(new I(i,l),new I(i-o,l),new I(t,A+a),new I(t,A))}},Es=t=>[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox],sp=t=>[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox],vs=t=>[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox];class gc{constructor(A,e,r){this.offsetX=A,this.offsetY=e,this.matrix=r,this.type=0,this.target=6}}class Is{constructor(A,e){this.path=A,this.target=e,this.type=1}}class np{constructor(A){this.opacity=A,this.type=2,this.target=6}}class gr{constructor(A){this.applyClip=A,this.type=3,this.target=6}}const op=t=>t.type===0,Bc=t=>t.type===1,ap=t=>t.type===2,ip=t=>t.type===3,uc=(t,A)=>t.length===A.length?t.some((e,r)=>e===A[r]):!1,cp=(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 fc{constructor(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}}class hc{constructor(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new rp(this.container),this.container.styles.opacity<1&&this.effects.push(new np(this.container.styles.opacity)),this.container.styles.rotate!==null){const r=this.container.styles.transformOrigin,s=this.container.bounds.left+M(r[0],this.container.bounds.width),n=this.container.bounds.top+M(r[1],this.container.bounds.height),a=this.container.styles.rotate*Math.PI/180,i=Math.cos(a),l=Math.sin(a),g=[i,l,-l,i,0,0];this.effects.push(new gc(s,n,g))}if(this.container.styles.transform!==null){const r=this.container.styles.transformOrigin,s=this.container.bounds.left+M(r[0],this.container.bounds.width),n=this.container.bounds.top+M(r[1],this.container.bounds.height),o=this.container.styles.transform;this.effects.push(new gc(s,n,o))}if(this.container.styles.overflowX!==0){const r=Es(this.curves),s=vs(this.curves);uc(r,s)?this.effects.push(new Is(r,6)):(this.effects.push(new Is(r,2)),this.effects.push(new Is(s,4)))}if(this.container.styles.clipPath.type!==0){const r=lp(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=>!Bc(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=Es(r.curves),a=vs(r.curves);uc(o,a)||s.unshift(new Is(a,6))}s.unshift(...n)}else s.unshift(...n);r=r.parent}return s.filter(n=>BA(n.target,A))}}const pc=(t,A,e,r,s)=>t==="closest-side"?Math.min(A-e,r-A):t==="farthest-side"?Math.max(A-e,r-A):M(t,s),lp=(t,A)=>{const{left:e,top:r,width:s,height:n}=A;switch(t.type){case 1:{const o=M(t.left,s),a=M(t.top,n),i=e+o,l=r+a,g=Math.max(0,s-o-M(t.right,s)),B=Math.max(0,n-a-M(t.bottom,n));return new gr(h=>{h.beginPath(),h.rect(i,l,g,B),h.clip()})}case 2:{const o=e+M(t.cx,s),a=r+M(t.cy,n);let i;return t.radius==="closest-side"?i=Math.min(o-e,a-r,e+s-o,r+n-a):t.radius==="farthest-side"?i=Math.max(o-e,a-r,e+s-o,r+n-a):i=M(t.radius,Math.sqrt(s*s+n*n)/Math.SQRT2),new gr(l=>{l.beginPath(),l.arc(o,a,Math.max(0,i),0,Math.PI*2),l.clip()})}case 3:{const o=e+M(t.cx,s),a=r+M(t.cy,n),i=pc(t.rx,o,e,e+s,s),l=pc(t.ry,a,r,r+n,n);return new gr(g=>{g.beginPath(),g.ellipse(o,a,Math.max(0,i),Math.max(0,l),0,0,Math.PI*2),g.clip()})}case 4:{const o=t.points.map(([a,i])=>[e+M(a,s),r+M(i,n)]);return new gr(a=>{if(a.beginPath(),o.length>0){a.moveTo(o[0][0],o[0][1]);for(let i=1;i<o.length;i++)a.lineTo(o[i][0],o[i][1]);a.closePath()}a.clip()})}case 5:{const{d:o}=t;return new gr(a=>{try{const i=a.getTransform();a.translate(e,r),a.clip(new Path2D(o)),a.setTransform(i)}catch{}})}case 0:return null;default:return null}},go=(t,A,e,r)=>{t.container.elements.forEach(s=>{const n=BA(s.flags,4),o=BA(s.flags,2),a=new hc(s,t);BA(s.styles.display,2048)&&r.push(a);const i=BA(s.flags,8)?[]:r;if(n||o){const l=n||s.styles.isPositioned()?e:A,g=new fc(a);if(s.styles.isPositioned()||s.styles.opacity<1||s.styles.isTransformed()){const B=s.styles.zIndex.order;if(B<0){let h=0;l.negativeZIndex.some((u,m)=>B>u.element.container.styles.zIndex.order?(h=m,!1):h>0),l.negativeZIndex.splice(h,0,g)}else if(B>0){let h=0;l.positiveZIndex.some((u,m)=>B>=u.element.container.styles.zIndex.order?(h=m+1,!1):h>0),l.positiveZIndex.splice(h,0,g)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(g)}else s.styles.isFloating()?l.nonPositionedFloats.push(g):l.nonPositionedInlineLevel.push(g);go(a,g,n?g:e,i)}else s.styles.isInlineLevel()?A.inlineLevel.push(a):A.nonInlineLevel.push(a),go(a,A,e,i);BA(s.flags,8)&&wc(s,i)})},wc=(t,A)=>{let e=t instanceof to?t.start:1;const r=t instanceof to?t.reversed:!1;for(let s=0;s<A.length;s++){const n=A[s];n.container instanceof Wi&&typeof n.container.value=="number"&&n.container.value!==0&&(e=n.container.value),n.listValue=lr(e,n.container.styles.listStyleType,!0),e+=r?-1:1}},dp=t=>{const A=new hc(t,null),e=new fc(A),r=[];return go(A,e,e,r),wc(A.container,r),e},mc=t=>{const A=t.bounds,e=t.styles;return A.add(e.borderLeftWidth,e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth),-(e.borderTopWidth+e.borderBottomWidth))},Br=t=>{const A=t.styles,e=t.bounds,r=M(A.paddingLeft,e.width),s=M(A.paddingRight,e.width),n=M(A.paddingTop,e.width),o=M(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))},gp=(t,A)=>t===0?A.bounds:t===2?Br(A):mc(A),Bp=(t,A)=>t===0?A.bounds:t===2?Br(A):mc(A),Bo=(t,A,e)=>{const r=gp(Ft(t.styles.backgroundOrigin,A),t),s=Bp(Ft(t.styles.backgroundClip,A),t),n=up(Ft(t.styles.backgroundSize,A),e,r);let[o,a]=n;const i=tr(Ft(t.styles.backgroundPosition,A),r.width-o,r.height-a),l=fp(Ft(t.styles.backgroundRepeat,A),i,n,r,s),g=Math.round(r.left+i[0]),B=Math.round(r.top+i[1]);return o=Math.max(1,o),a=Math.max(1,a),[l,g,B,o,a]},Ut=t=>G(t)&&t.value===wt.AUTO,Hs=t=>typeof t=="number",up=(t,[A,e,r],s)=>{const[n,o]=t;if(!n)return[0,0];if(q(n)&&o&&q(o))return[M(n,s.width),M(o,s.height)];const a=Hs(r);if(G(n)&&(n.value===wt.CONTAIN||n.value===wt.COVER))return Hs(r)?s.width/s.height<r!=(n.value===wt.COVER)?[s.width,s.width/r]:[s.height*r,s.height]:[s.width,s.height];const i=Hs(A),l=Hs(e),g=i||l;if(Ut(n)&&(!o||Ut(o))){if(i&&l)return[A,e];if(!a&&!g)return[s.width,s.height];if(g&&a){const C=i?A:e*r,y=l?e:A/r;return[C,y]}const u=i?A:s.width,m=l?e:s.height;return[u,m]}if(a){let u=0,m=0;return q(n)?u=M(n,s.width):q(o)&&(m=M(o,s.height)),Ut(n)?u=m*r:(!o||Ut(o))&&(m=u/r),[u,m]}let B=null,h=null;if(q(n)?B=M(n,s.width):o&&q(o)&&(h=M(o,s.height)),B!==null&&(!o||Ut(o))&&(h=i&&l?B/A*e:s.height),h!==null&&Ut(n)&&(B=i&&l?h/e*A:s.width),B!==null&&h!==null)return[B,h];throw new Error("Unable to calculate background-size for element")},Ft=(t,A)=>{const e=t[A];return typeof e>"u"?t[0]:e},fp=(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))]}},hp="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Cc="Hidden Text";class pp{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=hp,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(Cc)),r.appendChild(n),r.appendChild(s);const a=s.offsetTop-n.offsetTop+2;r.removeChild(n),r.appendChild(this._document.createTextNode(Cc)),r.style.lineHeight="normal",s.style.verticalAlign="super";const i=s.offsetTop-r.offsetTop+2;return o.removeChild(r),{baseline:a,middle:i}}getMetrics(A,e){const r=`${A} ${e}`;return typeof this._data[r]>"u"&&(this._data[r]=this.parseMetrics(A,e)),this._data[r]}}class Qc{constructor(A,e){this.context=A,this.options=e}}class wp{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):ZB(r)?this.renderLinearGradient(A,r,e):$B(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,[i,l,g,B,h]=Bo(A,r,[o,a,o/a]),u=this.ctx.createPattern(this.resizeImage(s,B,h,A.styles.imageRendering),"repeat");this.renderRepeat(i,u,l,g)}}renderLinearGradient(A,e,r){const[s,n,o,a,i]=Bo(A,r,[null,null,null]),[l,g,B,h,u]=WB(e.angle,a,i),C=(this.canvas.ownerDocument??document).createElement("canvas");C.width=a,C.height=i;const y=C.getContext("2d"),F=y.createLinearGradient(g,h,B,u);if(ci(e.stops,l||1).forEach(Q=>F.addColorStop(Q.stop,rA(Q.color))),y.fillStyle=F,y.fillRect(0,0,a,i),a>0&&i>0){const Q=this.ctx.createPattern(C,"repeat");this.renderRepeat(s,Q,n,o)}}renderRadialGradient(A,e,r){const[s,n,o,a,i]=Bo(A,r,[null,null,null]),l=e.position.length===0?[ze]:e.position,g=M(l[0],a),B=M(l[l.length-1],i);let[h,u]=XB(e,g,B,a,i);if((h===0||u===0)&&(h=Math.max(h,.01),u=Math.max(u,.01)),h>0&&u>0){const m=this.ctx.createRadialGradient(n+g,o+B,0,n+g,o+B,h);if(ci(e.stops,h*2).forEach(C=>m.addColorStop(C.stop,rA(C.color))),this.path(s),this.ctx.fillStyle=m,h!==u){const C=A.bounds.left+.5*A.bounds.width,y=A.bounds.top+.5*A.bounds.height,F=u/h,Q=1/F;this.ctx.save(),this.ctx.translate(C,y),this.ctx.transform(1,0,0,F,0,0),this.ctx.translate(-C,-y),this.ctx.fillRect(n,Q*(o-y)+y,a,i*Q),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===zA.PIXELATED||s===zA.CRISP_EDGES?(this.context.logger.debug("Disabling image smoothing for background image due to CSS image-rendering"),a.imageSmoothingEnabled=!1):s===zA.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=PA(e)?e.start:e;r===0?this.ctx.moveTo(s.x,s.y):this.ctx.lineTo(s.x,s.y),PA(e)&&this.ctx.bezierCurveTo(e.startControl.x,e.startControl.y,e.endControl.x,e.endControl.y,e.end.x,e.end.y)})}}const xc=(t,A)=>{switch(A){case 0:return ee(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return ee(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return ee(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);default:return ee(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},mp=(t,A)=>{switch(A){case 0:return ee(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return ee(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return ee(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);default:return ee(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},Cp=(t,A)=>{switch(A){case 0:return ee(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return ee(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return ee(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);default:return ee(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},Qp=(t,A)=>{switch(A){case 0:return Ss(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return Ss(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return Ss(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);default:return Ss(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},Ss=(t,A)=>{const e=[];return PA(t)?e.push(t.subdivide(.5,!1)):e.push(t),PA(A)?e.push(A.subdivide(.5,!0)):e.push(A),e},ee=(t,A,e,r)=>{const s=[];return PA(t)?s.push(t.subdivide(.5,!1)):s.push(t),PA(e)?s.push(e.subdivide(.5,!0)):s.push(e),PA(r)?s.push(r.subdivide(.5,!0).reverse()):s.push(r),PA(A)?s.push(A.subdivide(.5,!1).reverse()):s.push(A),s};class xp{constructor(A,e){this.ctx=A.ctx,this.pathCallbacks=e}async renderSolidBorder(A,e,r){this.pathCallbacks.path(xc(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=mp(s,r);this.pathCallbacks.path(n),this.ctx.fillStyle=rA(A),this.ctx.fill();const o=Cp(s,r);this.pathCallbacks.path(o),this.ctx.fill()}async renderDashedDottedBorder(A,e,r,s,n){this.ctx.save();const o=Qp(s,r),a=xc(s,r);n===2&&(this.pathCallbacks.path(a),this.ctx.clip());let i,l,g,B;PA(a[0])?(i=a[0].start.x,l=a[0].start.y):(i=a[0].x,l=a[0].y),PA(a[1])?(g=a[1].end.x,B=a[1].end.y):(g=a[1].x,B=a[1].y);let h;r===0||r===2?h=Math.abs(i-g):h=Math.abs(l-B),this.ctx.beginPath(),n===3?this.pathCallbacks.formatPath(o):this.pathCallbacks.formatPath(a.slice(0,2));let u=e<3?e*3:e*2,m=e<3?e*2:e;n===3&&(u=e,m=e);let C=!0;if(h<=u*2)C=!1;else if(h<=u*2+m){const y=h/(2*u+m);u*=y,m*=y}else{const y=Math.floor((h+m)/(u+m)),F=(h-y*u)/(y-1),Q=(h-(y+1)*u)/y;m=Q<=0||Math.abs(m-F)<Math.abs(m-Q)?F:Q}if(C&&(n===3?this.ctx.setLineDash([0,u+m]):this.ctx.setLineDash([u,m])),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(PA(a[0])){const y=a[3],F=a[0];this.ctx.beginPath(),this.pathCallbacks.formatPath([new I(y.end.x,y.end.y),new I(F.start.x,F.start.y)]),this.ctx.stroke()}if(PA(a[1])){const y=a[1],F=a[2];this.ctx.beginPath(),this.pathCallbacks.formatPath([new I(y.end.x,y.end.y),new I(F.start.x,F.start.y)]),this.ctx.stroke()}}this.ctx.restore()}}class Up{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(),ap(A)?this.ctx.globalAlpha=A.opacity:op(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)):Bc(A)?(this.pathCallback.path(A.path),this.ctx.clip()):ip(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 Fp=["-apple-system","system-ui"],yp=/[\u2E80-\u2FFF\u3000-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uAC00-\uD7AF\uF900-\uFAFF\uFF01-\uFFEF]/,bp=t=>yp.test(t),Ep=()=>{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},vp=t=>{const A=Ep();return A!==null&&A>=15&&A<17?t.map(e=>Fp.indexOf(e)!==-1?'-apple-system, "Helvetica Neue", Arial, sans-serif':e):t};class Ip{constructor(A){this.ctx=A.ctx,this.options=A.options}iterateLettersWithLetterSpacing(A,e,r,s){const n=Qs(A.text),o=A.bounds.top+r;let a=A.bounds.left;for(const i of n){if(bp(i)){const l=this.ctx.textBaseline;this.ctx.textBaseline="ideographic",s(i,a,o),this.ctx.textBaseline=l}else s(i,a,o);a+=this.ctx.measureText(i).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,i=s*4;let l=A;for(this.ctx.moveTo(l,e+s/2);l<A+r;){const g=Math.min(l+i/2,A+r);if(this.ctx.quadraticCurveTo(l+i/4,e+s/2-a,g,e+s/2),l=g,l<A+r){const B=Math.min(l+i/2,A+r);this.ctx.quadraticCurveTo(l+i/4,e+s/2+a,B,e+s/2),l=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=Qs(A);if(r===0){const a=g=>this.ctx.measureText(o.slice(0,g).join("")).width+n<=e;let i=0,l=o.length;for(;i<l;){const g=i+l+1>>1;a(g)?i=g:l=g-1}return o.slice(0,i).join("")+"…"}else{let a=n;const i=[];for(const l of o){const g=this.ctx.measureText(l).width;if(a+g>e)break;i.push(l),a+=g+r}return i.join("")+"…"}}createFontStyle(A){const e=A.fontVariant.filter(n=>n==="normal"||n==="small-caps").join(""),r=vp(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 h=[],u=A.textBounds[0].bounds.top;A.textBounds.forEach(C=>{Math.abs(C.bounds.top-u)>=o*.5?(h.length>0&&B.push(h),h=[C],u=C.bounds.top):h.push(C)}),h.length>0&&B.push(h);const m=e.webkitLineClamp;if(B.length>m){for(let y=0;y<m-1;y++)B[y].forEach(F=>{this.renderTextBoundWithPaintOrder(F,e,n)});const C=B[m-1];if(C&&C.length>0&&r){const y=C.map(b=>b.text).join(""),F=C[0],Q=r.width-(F.bounds.left-r.left),L=this.truncateTextWithEllipsis(y,Q,e.letterSpacing),K=new Ze(L,F.bounds);n.forEach(b=>{switch(b){case 0:this.ctx.fillStyle=rA(e.color),e.letterSpacing===0?this.ctx.fillText(L,F.bounds.left,F.bounds.top+e.fontSize.number):this.iterateLettersWithLetterSpacing(K,e.letterSpacing,e.fontSize.number,(R,W,sA)=>this.ctx.fillText(R,W,sA));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,F.bounds.left,F.bounds.top+e.fontSize.number):this.iterateLettersWithLetterSpacing(K,e.letterSpacing,e.fontSize.number,(R,W,sA)=>this.ctx.strokeText(R,W,sA)),this.ctx.strokeStyle="",this.ctx.lineWidth=0,this.ctx.lineJoin="miter");break}})}return}}const i=e.textOverflow===1&&r&&e.overflowX===1&&A.textBounds.length>0;let l=!1,g="";if(i){const B=A.textBounds[0].bounds.top;if(A.textBounds.every(u=>Math.abs(u.bounds.top-B)<o*.5)){let u=A.textBounds.map(y=>y.text).join("");u=u.replace(/\s+/g," ").trim();const m=this.ctx.measureText(u).width,C=r.width;m>C&&(l=!0,g=this.truncateTextWithEllipsis(u,C,e.letterSpacing))}}if(l){const B=A.textBounds[0],h=new Ze(g,B.bounds);n.forEach(u=>{switch(u){case 0:{this.ctx.fillStyle=rA(e.color),e.letterSpacing===0?this.ctx.fillText(g,B.bounds.left,B.bounds.top+e.fontSize.number):this.iterateLettersWithLetterSpacing(h,e.letterSpacing,e.fontSize.number,(C,y,F)=>this.ctx.fillText(C,y,F));const m=e.textShadow;m.length&&g.trim().length&&(m.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(g,B.bounds.left,B.bounds.top+e.fontSize.number):this.iterateLettersWithLetterSpacing(h,e.letterSpacing,e.fontSize.number,(y,F,Q)=>this.ctx.fillText(y,F,Q))}),this.ctx.shadowColor="",this.ctx.shadowOffsetX=0,this.ctx.shadowOffsetY=0,this.ctx.shadowBlur=0);break}case 1:e.webkitTextStrokeWidth&&g.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(g,B.bounds.left,B.bounds.top+e.fontSize.number):this.iterateLettersWithLetterSpacing(h,e.letterSpacing,e.fontSize.number,(m,C,y)=>this.ctx.strokeText(m,C,y)),this.ctx.strokeStyle="",this.ctx.lineWidth=0,this.ctx.lineJoin="miter");break}});return}A.textBounds.forEach(B=>{n.forEach(h=>{switch(h){case 0:{this.ctx.fillStyle=rA(e.color),this.renderTextWithLetterSpacing(B,e.letterSpacing,e.fontSize.number);const u=e.textShadow;u.length&&B.text.trim().length&&(u.slice(0).reverse().forEach(m=>{this.ctx.shadowColor=rA(m.color),this.ctx.shadowOffsetX=m.offsetX.number*this.options.scale,this.ctx.shadowOffsetY=m.offsetY.number*this.options.scale,this.ctx.shadowBlur=m.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 u=e.fontSize.number;e.letterSpacing===0?this.ctx.strokeText(B.text,B.bounds.left,B.bounds.top+u):this.iterateLettersWithLetterSpacing(B,e.letterSpacing,u,(m,C,y)=>this.ctx.strokeText(m,C,y)),this.ctx.strokeStyle="",this.ctx.lineWidth=0,this.ctx.lineJoin="miter"}break}}})})}}const Hp=1e4;class uo extends Qc{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 pp(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 wp({ctx:this.ctx,context:this.context,canvas:this.canvas,options:{width:e.width,height:e.height,scale:e.scale}}),this.borderRenderer=new xp({ctx:this.ctx},{path:r=>this.path(r),formatPath:r=>this.formatPath(r)}),this.effectsRenderer=new Up({ctx:this.ctx},{path:r=>this.path(r)}),this.textRenderer=new Ip({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(BA(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=Br(A),a=vs(e);this.path(a),this.ctx.save(),this.ctx.clip();let i=0,l=0,g=s,B=n,h=o.left,u=o.top,m=o.width,C=o.height;const{objectFit:y}=A.styles,F=m/C,Q=g/B;if(y===2)Q>F?(C=m/Q,u+=(o.height-C)/2):(m=C*Q,h+=(o.width-m)/2);else if(y===4)Q>F?(g=B*F,i+=(s-g)/2):(B=g/F,l+=(n-B)/2);else if(y===8)g>m?(i+=(g-m)/2,g=m):(h+=(m-g)/2,m=g),B>C?(l+=(B-C)/2,B=C):(u+=(C-B)/2,C=B);else if(y===16){const L=Q>F?m:C*Q,K=g>m?g:m;L<K?Q>F?(C=m/Q,u+=(o.height-C)/2):(m=C*Q,h+=(o.width-m)/2):(g>m?(i+=(g-m)/2,g=m):(h+=(m-g)/2,m=g),B>C?(l+=(B-C)/2,B=C):(u+=(C-B)/2,C=B))}this.ctx.drawImage(r,i,l,g,B,h,u,m,C),this.ctx.restore()}}async renderNodeContent(A){this.effectsRenderer.applyEffects(A.getEffects(4));const e=A.container,r=A.curves,s=e.styles,n=Br(e);for(const o of e.textNodes)await this.textRenderer.renderTextNode(o,s,n);if(e instanceof _i)try{const o=await this.context.cache.match(e.src),a=this.ctx.imageSmoothingEnabled;s.imageRendering===zA.PIXELATED||s.imageRendering===zA.CRISP_EDGES?(this.context.logger.debug(`Disabling image smoothing for ${e.src} due to CSS image-rendering: ${s.imageRendering===zA.PIXELATED?"pixelated":"crisp-edges"}`),this.ctx.imageSmoothingEnabled=!1):s.imageRendering===zA.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 Pi&&this.renderReplacedElement(e,r,e.canvas),e instanceof ji)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 Ji&&e.tree){const a=await new uo(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 ar){const o=Math.min(e.bounds.width,e.bounds.height);e.type===xs?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(Xi),this.ctx.fill(),this.ctx.restore()):e.type===Us&&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(Xi),this.ctx.fill(),this.ctx.restore())}if(Sp(e)&&e.value.length){const[o,a,i]=this.textRenderer.createFontStyle(s),{baseline:l}=this.fontMetrics.getMetrics(a,i);this.ctx.font=o;const g=e instanceof ar&&e.isPlaceholder;this.ctx.fillStyle=rA(g?Oh:s.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Tp(e.styles.textAlign);const B=Br(e);let h=0;switch(e.styles.textAlign){case 1:h+=B.width/2;break;case 2:h+=B.width;break}let u=0;if(e instanceof ar){const C=M(s.fontSize,0);u=(B.height-C)/2}const m=B.add(h,u,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 Ze(e.value,m),s.letterSpacing,l),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(BA(e.styles.display,2048)){if(e.styles.listStyleImage!==null){const o=e.styles.listStyleImage;if(o.type===0){let a;const i=o.url;try{a=await this.context.cache.match(i),this.ctx.drawImage(a,e.bounds.left-(a.width+10),e.bounds.top)}catch{this.context.logger.error(`Error loading list-style-image ${i}`)}}}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 TA(e.bounds.left,e.bounds.top+M(e.styles.paddingTop,e.bounds.width),e.bounds.width,Qi(s.lineHeight,s.fontSize.number)/2+1);this.textRenderer.renderTextWithLetterSpacing(new Ze(A.listValue,a),s.letterSpacing,Qi(s.lineHeight,s.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"}}}async renderStackContent(A){if(BA(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=PA(e)?e.start:e;r===0?this.ctx.moveTo(s.x,s.y):this.ctx.lineTo(s.x,s.y),PA(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=!Le(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(Ft(e.backgroundClip,0),A.curves);(r||e.boxShadow.length)&&(this.ctx.save(),this.path(n),this.ctx.clip(),Le(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 i=Es(A.curves),l=a.inset?0:Hp,g=cp(i,-l+(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(i),this.ctx.clip(),this.mask(g)):(this.mask(i),this.ctx.clip(),this.path(g)),this.ctx.shadowOffsetX=a.offsetX.number+l,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&&!Le(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=dp(A);return await this.renderStack(e),this.effectsRenderer.applyEffects([]),this.canvas}}const Sp=t=>t instanceof Yi||t instanceof zi?!0:t instanceof ar&&t.type!==Us&&t.type!==xs,Lp=(t,A)=>{switch(t){case 0:return Es(A);case 2:return sp(A);default:return vs(A)}},Tp=t=>{switch(t){case 1:return"center";case 2:return"right";default:return"left"}};class Op extends Qc{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=eo(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,A),r=await Dp(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 Dp=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 Uc{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))}}Uc.instances={};class Kp{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(ho(A)||Gp(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=i=>e.isSameOrigin(i),s=typeof this._options.customIsSameOrigin=="function"?await this._options.customIsSameOrigin(A,r):r(A),n=!fo(A)&&this._options.useCORS===!0&&SA.SUPPORT_CORS_IMAGES&&!s,o=!fo(A)&&!s&&!ho(A)&&typeof this._options.proxy=="string"&&SA.SUPPORT_CORS_XHR&&!n;if(!s&&this._options.allowTaint===!1&&!fo(A)&&!ho(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((i,l)=>{const g=new Image;g.onload=()=>i(g),g.onerror=l,(Vp(a)||n)&&(g.crossOrigin="anonymous"),g.src=a,g.complete===!0&&setTimeout(()=>i(g),500),this._options.imageTimeout>0&&setTimeout(()=>l(`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=SA.SUPPORT_RESPONSE_TYPE?"blob":"text",a=new XMLHttpRequest;a.onload=()=>{if(a.status===200)if(o==="text")s(a.response);else{const l=new FileReader;l.addEventListener("load",()=>s(l.result),!1),l.addEventListener("error",g=>n(g),!1),l.readAsDataURL(a.response)}else n(`Failed to proxy resource ${r} with status code ${a.status}`)},a.onerror=n;const i=e.indexOf("?")>-1?"&":"?";if(a.open("GET",`${e}${i}url=${encodeURIComponent(A)}&responseType=${o}`),o!=="text"&&a instanceof XMLHttpRequest&&(a.responseType=o),this._options.imageTimeout){const l=this._options.imageTimeout;a.timeout=l,a.ontimeout=()=>n(`Timed out (${l}ms) proxying ${r}`)}a.send()})}}const Rp=/^data:image\/svg\+xml/i,kp=/^data:image\/.*;base64,/i,Mp=/^data:image\/.*/i,Gp=t=>SA.SUPPORT_SVG_DRAWING||!Np(t),fo=t=>Mp.test(t),Vp=t=>kp.test(t),ho=t=>t.substr(0,4)==="blob",Np=t=>t.substr(-3).toLowerCase()==="svg"||Rp.test(t);class _p{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 Ls{constructor(A,e,r){this.windowBounds=e,this.instanceName=`#${Ls.instanceCount++}`,this.config=r,this.logger=new Uc({id:this.instanceName,enabled:A.logging}),this.originChecker=new _p(r.window),this.cache=A.cache??r.cache??new Kp(this,A)}}Ls.instanceCount=1;class ur{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 ur({window:s,...e})}clone(A={}){return new ur({window:A.window||this.window,cspNonce:A.cspNonce??this.cspNonce,cache:A.cache??this.cache})}}function Pp(t){console.warn("[html2canvas-pro] setDefaultConfig is deprecated. Pass configuration to html2canvas directly.")}class jp{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(i=>i.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 Wp(t={}){return new jp({allowDataUrls:!0,maxImageTimeout:3e5,...t})}class Xp{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 po=(t,A={},e)=>{const r=e||ur.fromElement(t,{cspNonce:A.cspNonce,cache:A.cache});return Jp(t,A,r)},zp=t=>{console.warn('[html2canvas-pro] setCspNonce is deprecated. Pass cspNonce in options instead: html2canvas(element, { cspNonce: "..." })'),typeof window<"u"&&Pp(new ur({window,cspNonce:t}))};po.setCspNonce=zp;const Yp=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)}})},Jp=async(t,A,e)=>{if(Yp(A),!A.skipValidation){const N=A.validator||Wp(),yA=N.validateElement(t);if(!yA.valid)throw new Error(yA.error);const Y=N.validateOptions(A);if(!Y.valid)throw new Error(`Invalid options: ${Y.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,i=600,l=0,g=s,B={windowWidth:A.windowWidth??g.innerWidth??a,windowHeight:A.windowHeight??g.innerHeight??i,scrollX:A.scrollX??g.pageXOffset??l,scrollY:A.scrollY??g.pageYOffset??l},h=new TA(B.scrollX,B.scrollY,B.windowWidth,B.windowHeight),u=new Ls(o,h,e),m=A.enablePerformanceMonitoring??A.logging??!1,C=new Xp(u,m);C.start("total",{width:B.windowWidth,height:B.windowHeight});const y=A.foreignObjectRendering??!1,F={allowTaint:A.allowTaint??!1,onclone:A.onclone,ignoreElements:A.ignoreElements,iframeContainer:A.iframeContainer,inlineImages:y,copyStyles:y,cspNonce:A.cspNonce??e.cspNonce};u.logger.debug(`Starting document clone with size ${h.width}x${h.height} scrolled to ${-h.left},${-h.top}`),C.start("clone");const Q=new lc(u,t,F),L=Q.clonedReferenceElement;if(!L)throw new Error("Unable to find element in cloned iframe");const K=await Q.toIFrame(r,h);C.end("clone");const{width:b,height:R,left:W,top:sA}=ro(L)||Mh(L)?nd(L.ownerDocument):Rr(u,L),O=Zp(u,L,A.backgroundColor),vA={canvas:A.canvas,backgroundColor:O,scale:A.scale??s.devicePixelRatio??1,x:(A.x??0)+W,y:(A.y??0)+sA,width:A.width??Math.ceil(b),height:A.height??Math.ceil(R),imageSmoothing:A.imageSmoothing,imageSmoothingQuality:A.imageSmoothingQuality};let AA,QA;try{return y?(u.logger.debug("Document cloned, using foreign object rendering"),C.start("render-foreignobject"),AA=await new Op(u,vA).render(L),C.end("render-foreignobject")):(u.logger.debug(`Document cloned, element located at ${W},${sA} with size ${b}x${R} using computed rendering`),u.logger.debug("Starting DOM parsing"),C.start("parse"),QA=$i(u,L),C.end("parse"),O===QA.styles.backgroundColor&&(QA.styles.backgroundColor=ge.TRANSPARENT),u.logger.debug(`Starting renderer for element at ${vA.x},${vA.y} with size ${vA.width}x${vA.height}`),C.start("render"),AA=await new uo(u,vA).render(QA),C.end("render")),C.start("cleanup"),(A.removeContainer??!0)&&(lc.destroy(K)||u.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),C.end("cleanup"),C.end("total"),u.logger.debug("Finished rendering"),m&&C.logSummary(),AA}finally{QA&&QA.restoreTree()}},Zp=(t,A,e)=>{const r=A.ownerDocument,s=r.documentElement?pt(t,getComputedStyle(r.documentElement).backgroundColor):ge.TRANSPARENT,n=r.body?pt(t,getComputedStyle(r.body).backgroundColor):ge.TRANSPARENT,o=typeof e=="string"?pt(t,e):e===null?ge.TRANSPARENT:4294967295;return A===r.documentElement?Le(s)?Le(n)?o:n:s:o},fr=2147e6,Fc=fr,qe=fr,$p=fr-100,qp=fr-50,Aw=fr-150,oe="data-vg-pin-id",ew=()=>{const t=window.innerWidth;return t<768?"mobile":t<1024?"tablet":"desktop"},yc=(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""}},bc=({url:t,className:A,style:e,tooltipStyle:r,onHover:s})=>{const n=p.useRef(null),o=()=>{if(!n.current||!s)return;const l=n.current.getBoundingClientRect(),g=l.top,B=window.innerHeight-l.bottom,h=g<140&&B>g?"bottom":"top";s({url:t,x:l.left+l.width/2,y:h==="top"?l.top:l.bottom,direction:h})},a=l=>l.toLowerCase().replace(/\/$/g,"").replace(/\/(?:[0-9]+|(?:[0-9a-f]{24}))(?=\/|$)/g,"/:id"),i=()=>{try{const l=a(window.location.pathname),g=new URL(t),B=a(g.pathname);return l===B||l.startsWith(B)||B.startsWith(l)}catch{return!1}};return c.jsxs("div",{ref:n,className:`vg-url-tag ${A||""}`,style:{...e,opacity:i()?1:.6,borderColor:i()?"var(--vg-primary)":"#e2e8f0"},onMouseEnter:o,onMouseMove:o,onMouseLeave:()=>s?.(null),children:[c.jsx(Ee,{"data-vg-id":"353251b6","data-source-path":"/src/components/ViewGateOverlay.tsx:152",size:e?.fontSize?parseInt(e.fontSize)+1:10}),c.jsx("span",{"data-vg-id":"1b724dd0","data-source-path":"/src/components/ViewGateOverlay.tsx:153",style:{maxWidth:e?.maxWidth||"150px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:new URL(t).pathname})]})},hr=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,i=s.previousElementSibling;for(;i;)i.localName.toLowerCase()===o&&a++,i=i.previousElementSibling;const l=o==="body"||o==="head"||o==="html"?o:`${o}:nth-of-type(${a})`;if(r.unshift(l),!n){const g=s.getAttribute("data-testid")||s.getAttribute("data-qa");if(g){const B=s.hasAttribute("data-testid")?"data-testid":"data-qa";e.push(`[${B}="${g}"]`)}s.id&&!s.id.startsWith("vg-")&&!s.id.includes(":")?(A.unshift(`#${s.id}`),n=!0):g?(A.unshift(`[${s.hasAttribute("data-testid")?"data-testid":"data-qa"}="${g}"]`),n=!0):A.unshift(l)}if(s=s.parentElement,o==="html")break}return{selector:A.join(" > "),fallbacks:e,vgPath:r.join(" > ")}},Ec=t=>{const{vgPath:A}=hr(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()}},tw=(()=>{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}})(),rw=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]=tw(n)}),e},sw=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"},Ts=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,i=Math.abs(e.left+e.width/2-window.innerWidth/2)<50,l=t.getAttribute("class")||"",g=l.toLowerCase().includes("modal")||l.toLowerCase().includes("dialog");return!!(o&&n>=100&&(a||i||g))},Os=t=>{let A=t;for(;A&&A!==document.body;){if(Ts(A))return A;A=A.parentElement}return null},xe=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)},vc=(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=vc(t,n);if(o)return o}}return null},Ic=(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},nw=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(!pr(s,t))continue;let n=0;const o=s.getAttribute("placeholder"),a=t.attributes?.placeholder||t.fingerprint?.placeholder;a&&o===a&&(n+=6);const i=s.getAttribute("type"),l=t.attributes?.type||t.fingerprint?.type;if(l&&i===l&&(n+=2),s.innerText?.trim()===t.text.trim()&&(n+=5),t.fingerprint?.vgPath){const{vgPath:g}=hr(s);(g===t.vgPath||t.fingerprint?.vgPath===g)&&(n+=10)}n>r&&n>=7&&(r=n,e=s)}return e},pr=(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)},Hc=(t,A)=>{if(A){const o=Array.from(document.querySelectorAll(`[${oe}="${A}"]`));if(o.length>0){const a=o.filter(i=>pr(i,t));if(a.length===0)o.forEach(i=>i.removeAttribute(oe));else{const i=a.find(g=>{const{vgPath:B}=hr(g);return B===t.vgPath||t.fingerprint?.vgPath===B}),l=i&&xe(i)?i:a.find(g=>!(!xe(g)||t.metadata?.isModal&&!g.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content')));return l?(o.forEach(g=>{g!==l&&g.removeAttribute(oe)}),l):null}}}if(t.vgPath)try{const o=document.querySelector(t.vgPath);if(o&&pr(o,t)&&xe(o)&&(!t.metadata?.isModal||Os(o)))return o}catch{}const r=(t.selector?Array.from(document.querySelectorAll(t.selector)):[]).filter(o=>pr(o,t));let s=r.find(o=>{const{vgPath:a}=hr(o);return a===t.vgPath||t.fingerprint?.vgPath===a})||r[0]||null;if(s&&xe(s))if(t.metadata?.isModal&&!Os(s))s=null;else return s;if(t.fallbackSelectors)for(const o of t.fallbackSelectors){const a=vc(o);if(a&&pr(a,t)&&xe(a)){if(t.metadata?.isModal&&!Os(a))continue;return a}}const n=nw(t);return n&&xe(n)?t.metadata?.isModal&&!Os(n)?null:n:null},wo=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}),Sc=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},ow=t=>{const A=t.parentElement;if(!A)return;const e=Array.from(A.children).filter(o=>o!==t).slice(0,5).map(o=>wo(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:{...wo(t),location:`${n} of ${A.tagName.toLowerCase()}`},parent:wo(A),siblings:e}},Lc=(t,A)=>{const e=t.getAttribute("data-vg-id")||void 0;let r;const n=Object.keys(t).find(F=>F.startsWith("__reactFiber$")||F.startsWith("__reactInternalInstance$"));if(n){let F=t[n];for(;F;){if(F._debugSource){const{fileName:Q,lineNumber:L,columnNumber:K}=F._debugSource;r=`${Q}:${L}${K?":"+K:""}`;break}F=F.return}}const o=Ec(t),a={vgId:e?1:0,fiber:r?.8:0,fingerprint:.5+(o.testId?.3:0)+(o.ariaLabel?.1:0)};let i=t.getAttribute("data-source-path")||r||"unknown:0";const l=sw(t),{selector:g,fallbacks:B,vgPath:h}=hr(t),u={};["placeholder","aria-label","name","type","alt","title","value","role","data-testid"].forEach(F=>{const Q=t.getAttribute(F);Q&&(u[F]=Q)});const m=(()=>{let F=t;for(;F&&F!==document.body;){if(Ts(F))return!0;F=F.parentElement}return!1})();let C;m&&A&&!A.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content')&&(C=Lc(A));const y=`${t.tagName.toLowerCase()}-${(t.innerText||"").slice(0,20).replace(/\s+/g,"_")}-${g.split(" > ").slice(-1)}`;return{tag:t.tagName.toLowerCase(),id:t.id||"",classes:t.className||"",text:(t.innerText||"").slice(0,100).trim(),selector:g,vgPath:h,vgId:e,outerHtml:Sc(t.outerHTML),parentContext:t.parentElement?`<${t.parentElement.tagName.toLowerCase()} ${Array.from(t.parentElement.attributes).map(F=>`${F.name}="${F.value}"`).join(" ").slice(0,500)}>`:"N/A",componentPath:l,signature:y,source:i,attributes:u,confidence:a,fallbackSelectors:[...new Set(B)].slice(0,5),domPath:[],viewportSize:{width:window.innerWidth,height:window.innerHeight},uiContext:ow(t),fingerprint:Ec(t),metadata:{hint:`Edit ${i.split(":")[0]} at line ${i.split(":")[1]||"?"}`,computedStyles:rw(t),viewportBreakpoint:ew(),outerHtml:Sc(t.outerHTML).slice(0,2e3),scrollPosition:{x:window.scrollX,y:window.scrollY},isModal:m,triggerReference:C}}},Tc=()=>{const{mutate:t}=ra(),{addToast:A,language:e,t:r,apiKey:s,baseUrl:n,dashboardUrl:o,disableViewGate:a,hasActiveToasts:i}=ga(),[l,g]=p.useState(typeof window<"u"?window.location.pathname+window.location.search:"/"),B=p.useMemo(()=>typeof window>"u"?!1:window.location.href.includes("viewgate-backlog"),[l]),[h,u]=p.useState(null),[m,C]=p.useState(null),[y,F]=p.useState(),[Q,L]=p.useState();p.useRef(null);const K=p.useCallback(async(d,f)=>{const w=document.createElement("canvas"),U=2;w.width=f.width*U,w.height=f.height*U;const v=w.getContext("2d");return v?(v.drawImage(d,f.x*U,f.y*U,f.width*U,f.height*U,0,0,f.width*U,f.height*U),w.toDataURL("image/webp",.85)):null},[]);p.useEffect(()=>{const d=()=>g(window.location.pathname+window.location.search);window.addEventListener("popstate",d);const f=window.history.pushState,w=window.history.replaceState;return window.history.pushState=function(...U){f.apply(this,U),setTimeout(d,0)},window.history.replaceState=function(...U){w.apply(this,U),setTimeout(d,0)},()=>{window.removeEventListener("popstate",d),window.history.pushState=f,window.history.replaceState=w}},[]);const[b,R]=p.useState(!1),[W,sA]=p.useState("medium"),[O,vA]=p.useState("medium"),[AA,QA]=p.useState("all"),[N,yA]=p.useState(null),[Y,IA]=p.useState(null),[jA,Ue]=p.useState(""),[YA,te]=p.useState(!1),[x,k]=p.useState([]),[V,$]=p.useState([{name:r.figmaPrimaryDesign,link:""}]),[J,MA]=p.useState([]),[X,GA]=p.useState([]),[Re,yt]=p.useState(null),[At,Ds]=p.useState(!1),[wr,et]=p.useState(""),[bt,Et]=p.useState(!1),[eA,pA]=p.useState("down");p.useRef(null);const[nA,tA]=p.useState(!1),[uA,xA]=p.useState(!1),[z,DA]=p.useState([]),[EA,ue]=p.useState(null),[ke,Ks]=p.useState(""),[JA,fe]=p.useState(!1),[mr,Rs]=p.useState({}),[VA,Co]=p.useState(null),[ks,Oc]=p.useState(!1),[Me,Dc]=p.useState(null),[zw,Yw]=p.useState([]),[cA,Qo]=p.useState(()=>typeof window>"u"?null:localStorage.getItem("vg_token")||sessionStorage.getItem("vg_token")),[KA,xo]=p.useState(()=>{if(typeof window>"u")return null;const d=localStorage.getItem("vg_user")||sessionStorage.getItem("vg_user");return d&&d!=="undefined"?JSON.parse(d):null}),[Cr,Uo]=p.useState(()=>typeof window>"u"?null:localStorage.getItem("vg_role")||sessionStorage.getItem("vg_role")),[tt,Kc]=p.useState(""),[Fo,Rc]=p.useState(!1),[Jw,lw]=p.useState(!1),[Qr,kc]=p.useState(!1),[Ms,Mc]=p.useState(!1),[Gs,dw]=p.useState(!1),[Vs,Gc]=p.useState(!0),gw=async d=>{if(d&&d.preventDefault(),!(!tt.trim()||!n)){Rc(!0);try{const f=await fetch(`${n}/api/auth/me`,{headers:{Authorization:`Bearer ${tt.trim()}`,"x-api-key":s||""}});if(!f.ok){const D=await f.json().catch(()=>({}));throw new Error(D.error||D.message||"Invalid token")}const w=await f.json();console.log("[ViewGate] Auth data received:",w);const U=w.user||(w.email?w:null),v=w.role||U?.role||"dev";if(console.log("[ViewGate] Identified as:",U?.email,U?.name,"Role:",v),!U)throw new Error("User not found in token");Qo(tt.trim()),xo(U),Uo(v),localStorage.setItem("vg_token",tt.trim()),U&&localStorage.setItem("vg_user",JSON.stringify(U)),v&&localStorage.setItem("vg_role",v),A(e==="es"?"Sesión iniciada correctamente":r.successHeader,"success"),Kc(""),Mc(!1),kc(!1),lw(!1),yo()}catch(f){let w=f.message||(e==="es"?"Clave inválida o expirada":"Invalid or expired key");w.toLowerCase().includes("invalid or expired token")&&(w=r.invalidToken),A(w,"error")}finally{Rc(!1)}}},xr=p.useCallback(()=>{console.log("[VIEWGATE_WRAPPER] Clearing session"),Qo(null),xo(null),Uo(null),Gc(!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 d=n;t(f=>typeof f=="string"&&d&&f.startsWith(d),void 0,{revalidate:!1}),DA([]),Dc(null),R(!1),IA(null),Ue(""),xA(!1),A(e==="es"?"Sesión finalizada o inválida":"Session ended or invalid","error")},[n,e]);p.useEffect(()=>{const d=f=>{if(f.data?.type?.startsWith("VIEWGATE_")&&console.log("[VIEWGATE_WRAPPER] Received message:",f.data.type,f.data),f.data?.type==="VIEWGATE_AUTH_SUCCESS"||f.data?.type==="VIEWGATE_SILENT_AUTH"){const{token:w,user:U,role:v,error:D}=f.data;if(console.log("[VIEWGATE_WRAPPER] Auth process:",{type:f.data.type,hasToken:!!w,hasUser:!!U}),D==="NO_SESSION")return;const T=sessionStorage.getItem("vg_token");if(w&&w!==T||!w&&T){console.log("[VIEWGATE_WRAPPER] Session sync detected change, clearing caches");const H=n;t(oA=>typeof oA=="string"&&H&&oA.startsWith(H),void 0,{revalidate:!0}),DA([])}w&&(Qo(w),sessionStorage.setItem("vg_token",w),localStorage.setItem("vg_token",w),U&&(xo(U),Uo(v||U.role||"dev"),sessionStorage.setItem("vg_user",JSON.stringify(U)),localStorage.setItem("vg_user",JSON.stringify(U))),f.data.type==="VIEWGATE_AUTH_SUCCESS"&&A(e==="es"?"Sesión iniciada correctamente":"Logged in successfully","success"))}if(f.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}xr()}};return window.addEventListener("message",d),()=>window.removeEventListener("message",d)},[e,xr,n]);const yo=p.useCallback(()=>{if(!s||!n||Ms)return;const d={"x-api-key":s};cA&&(d.Authorization=`Bearer ${cA}`),fetch(`${n}/api/projects/settings-check`,{headers:d}).then(f=>{if(f.status===403)throw xr(),new Error("Unauthorized");return f.json()}).then(f=>{f.projectId&&yt(f.projectId),typeof f.isFigmaConnected=="boolean"&&Ds(f.isFigmaConnected),typeof f.hasEndpoints=="boolean"&&dw(f.hasEndpoints),Mc(!0)}).catch(f=>{f.message!=="Unauthorized"&&console.error("Failed to fetch project settings-check",f)})},[s,n,Ms]),bo=p.useCallback(()=>{if(!s||!n||Qr)return;const d={"x-api-key":s};cA&&(d.Authorization=`Bearer ${cA}`),fetch(`${n}/api/projects/endpoints`,{headers:d}).then(f=>{if(f.status===403)throw xr(),new Error("Unauthorized");return f.json()}).then(f=>{f.endpoints&&Array.isArray(f.endpoints)?GA(f.endpoints):Array.isArray(f)&&GA(f),typeof f.isFigmaConnected=="boolean"&&Ds(f.isFigmaConnected),kc(!0)}).catch(f=>{f.message!=="Unauthorized"&&console.error("Failed to fetch project endpoints",f)})},[s,n,Qr]);p.useEffect(()=>{(b||cA)&&(Ms||yo())},[b,cA,Ms,yo]),p.useEffect(()=>{bt&&!Qr&&bo()},[bt,Qr,bo]),p.useEffect(()=>{if(x.length===0)return;const d=["frontend"];Gs&&d.push("backend"),At&&d.push("ux");const f=x.filter(w=>d.includes(w));f.length!==x.length&&k(f)},[X.length,At,x]);const Vc=p.useCallback(async d=>{const f={"x-api-key":s};cA&&(f.Authorization=`Bearer ${cA}`);const w=await fetch(d,{headers:f});if(!w.ok){w.status===403&&xr();const U=await w.json().catch(()=>({}));let v=U.message||U.error||"Fetch failed";v.toLowerCase().includes("invalid or expired token")&&(v=r.invalidToken);const D=new Error(v);throw D.status=w.status,D}return Gc(!0),w.json()},[s,cA]),Bw=p.useMemo(()=>B?"backlog":"pending,todo,in_progress,review,ready_for_review,bug_fixing",[B]),{data:Ns,isLoading:_s,error:Nc}=na(s?`${n}/api/projects/active-sprint`:null,Vc,{revalidateOnFocus:!0,revalidateOnMount:!0,dedupingInterval:6e4}),{data:Ur,isLoading:rt,mutate:Ps}=na(s&&(Ns||B)?`${n}/api/annotations?status=${Bw}`:null,Vc,{refreshInterval:3e4,revalidateOnFocus:!0,dedupingInterval:5e3}),[st,_c]=p.useState(null),[vt,Zw]=p.useState(null),Pc=p.useRef(z);Pc.current=z;const[RA,js]=p.useState(null),jc=p.useRef(null),[It,uw]=p.useState([]),Wc=p.useMemo(()=>{const d=(wr||"").toLowerCase().trim();return d?X.filter(f=>{const w=f.path&&f.path.toLowerCase().includes(d),U=f.description&&f.description.toLowerCase().includes(d),v=f.method&&f.method.toLowerCase().includes(d);return w||U||v}):X},[X,wr]),Xc=p.useMemo(()=>{const d={},f=e==="es"?"Seleccionados":"Selected";return Wc.forEach(w=>{const U=`${w.method}|${w.path}`;J.includes(U)&&(d[f]||(d[f]={name:f,endpoints:[]}),d[f].endpoints.push(w));const D=(w.path||"").split("/").filter(oA=>oA&&!["api","v1.0","v2","rest"].includes(oA.toLowerCase()));let T=D.length>0?D[0]:"General";T=T.replace(/([a-z])([A-Z])/g,"$1 $2"),T=T.replace(/([A-Z])([A-Z][a-z])/g,"$1 $2"),T=T.charAt(0).toUpperCase()+T.slice(1),d[T]||(d[T]={name:T,endpoints:[]});const H=d[T];H&&H.endpoints.push(w)}),Object.values(d).sort((w,U)=>w.name===f?-1:U.name===f||w.name==="General"?1:U.name==="General"?-1:w.name.localeCompare(U.name))},[Wc,J,e]),Eo=p.useMemo(()=>{let d=Array.isArray(z)?z:[];if(VA){const w=It.find(U=>U.annotations&&Array.isArray(U.annotations)&&U.annotations.some(v=>v._id===VA));w?d=w.annotations:d=d.filter(U=>U._id===VA)}return d=d.filter(w=>w.status!=="completed"&&w.status!=="done"),window.location.href.includes("viewgate-backlog")||(RA==="pending"?d=d.filter(w=>w.status!=="ready_for_review"):RA==="ready"&&(d=d.filter(w=>w.status==="ready_for_review"))),AA!=="all"&&(d=d.filter(w=>(w.priority||"medium")===AA)),d},[VA,z,It,RA,AA]);p.useEffect(()=>{VA&&Eo.length===0&&!rt&&Co(null)},[VA,Eo.length,rt]);const[Ht,fw]=p.useState(()=>{if(typeof window>"u")return{bottom:30,right:30};const d=localStorage.getItem("vg-bar-pos");return d?JSON.parse(d):{bottom:30,right:30}}),[Fr,zc]=p.useState(!1),Fe=p.useRef(null),hw=d=>{d.preventDefault(),d.stopPropagation();const f=d.currentTarget.parentElement?.getBoundingClientRect();f&&(zc(!0),Fe.current={x:d.clientX,y:d.clientY,bottom:Ht.bottom,right:Ht.right,width:f.width,height:f.height})};p.useEffect(()=>{if(!Fr)return;const d=w=>{if(Fr&&Fe.current){const U=w.clientX-Fe.current.x,v=w.clientY-Fe.current.y;let D=Fe.current.bottom-v,T=Fe.current.right-U;const H=10;D=Math.max(H,Math.min(window.innerHeight-Fe.current.height-H,D)),T=Math.max(H,Math.min(window.innerWidth-Fe.current.width-H,T)),fw({bottom:D,right:T})}},f=()=>{Fr&&(zc(!1),localStorage.setItem("vg-bar-pos",JSON.stringify(Ht)),Fe.current=null)};return window.addEventListener("mousemove",d),window.addEventListener("mouseup",f),()=>{window.removeEventListener("mousemove",d),window.removeEventListener("mouseup",f)}},[Fr,Ht]);const[St,Ws]=p.useState(null),[Yc,Jc]=p.useState(""),[Lt,vo]=p.useState([]),[nt,yr]=p.useState([]),[Ge,Xs]=p.useState([]),[zs,Zc]=p.useState(!1);p.useEffect(()=>{St&&Xs(J)},[J,St]);const[$w,qw]=p.useState({}),Io=p.useRef(null),Tt=p.useRef(null),Ho=p.useRef(null),Ys=p.useRef(!1),$c=p.useCallback(()=>{typeof window>"u"||Ys.current||(Tt.current&&cancelAnimationFrame(Tt.current),Tt.current=requestAnimationFrame(()=>{Tt.current=null,Ys.current=!0,Ho.current;const d=Pc.current,f=Array.isArray(d)?d:[],w=new Set(f.map(_=>_._id));document.querySelectorAll(`[${oe}]`).forEach(_=>{const bA=_.getAttribute(oe);bA&&!w.has(bA)&&_.removeAttribute(oe)});const U=Array.from(document.querySelectorAll('[role="dialog"], [aria-modal="true"], [class*="modal" i], [class*="dialog" i], .fixed, .modal-backdrop, .fixed.inset-0')),v=U.find(_=>Ts(_)&&xe(_));let D=!!v;console.log("[ViewGate Debug] Modal Detection:",{potentialModals:U.length,activeModal:v,isAnyModalOpen:D});const T=new Map;f.forEach(_=>{if(!_||!_.reference)return;try{const kA=()=>{const Ot=window.location.pathname.toLowerCase().replace(/\/$/g,"").replace(/\/(?:[0-9]+|(?:[0-9a-f]{24}))(?=\/|$)/g,"/:id"),Ve=new URLSearchParams(window.location.search);Ve.delete("viewgate"),Ve.sort();const Dt=Ve.toString();return Dt?`${Ot}?${Dt}`:Ot},ZA=Ot=>{try{const Ve=new URL(Ot),Dt=Ve.pathname.toLowerCase().replace(/\/$/g,"").replace(/\/(?:[0-9]+|(?:[0-9a-f]{24}))(?=\/|$)/g,"/:id"),Kt=new URLSearchParams(Ve.search);Kt.delete("viewgate"),Kt.sort();const br=Kt.toString();return br?`${Dt}?${br}`:Dt}catch{return""}},$A=kA(),Js=ZA(_.url);if($A!==Js)return}catch{return}const bA=!!_.reference.metadata?.isModal;let aA=Hc(_.reference,_._id);if(console.log(`[ViewGate Debug] Processing Pin [${_._id}]:`,{isModalTarget:bA,targetEl:aA,isVisible:aA?xe(aA):!1}),!aA||!xe(aA))return;let iA=!1;if(bA?(iA=!0,D=!0,console.log(`[ViewGate Debug] Pin [${_._id}] Modal Open Check: isModalTarget=true`)):(iA=!D,console.log(`[ViewGate Debug] Pin [${_._id}] No Modal Check: !isAnyModalOpen=${iA}`)),!iA)return;const fA=aA.getAttribute(oe);fA!==_._id&&(document.querySelectorAll(`[${oe}="${_._id}"]`).forEach(kA=>{kA.removeAttribute(oe)}),fA||aA.setAttribute(oe,_._id));const wA=T;wA.has(aA)||wA.set(aA,{anns:[]}),wA.get(aA).anns.push(_)});const H=[];(_=>{_.forEach((bA,aA)=>{const{anns:iA}=bA,fA=aA.getBoundingClientRect(),wA=fA.left+fA.width/2,kA=fA.top+fA.height/2;if(wA>=0&&wA<=window.innerWidth&&kA>=0&&kA<=window.innerHeight){const ZA=document.elementFromPoint(wA,kA),$A=document.getElementById("viewgate-shadow-host");if(ZA&&!aA.contains(ZA)&&ZA!==$A&&!$A?.contains(ZA))return}H.push({id:iA[0]._id,element:aA,rect:fA,annotations:iA.sort((ZA,$A)=>new Date($A.timestamp||$A.createdAt).getTime()-new Date(ZA.timestamp||ZA.createdAt).getTime()),isModal:!!iA[0].reference?.metadata?.isModal})})})(T),uw(H),Ys.current=!1}))},[Me]);p.useEffect(()=>{if(Ur){const d=Array.isArray(Ur)?Ur:Ur?.data||[];if(Array.isArray(d)){const f=d.reduce((w,U)=>w.find(D=>D._id===U._id)?w:w.concat([U]),[]);DA(f)}}else rt||DA([])},[Ur,rt]),p.useEffect(()=>{Dc(Ns||null)},[Ns]),p.useEffect(()=>{uA&&z.length===0&&!rt&&xA(!1)},[uA,z.length,rt]),p.useEffect(()=>{let d=null;const f=()=>{Ys.current||$c()},w=new MutationObserver(D=>{D.some(H=>H.type!=="attributes"||H.attributeName!==oe&&!H.target.parentElement?.closest("#viewgate-shadow-host"))&&(d&&clearTimeout(d),d=setTimeout(()=>{f(),setTimeout(f,350)},32))});Ho.current=w;const U=new ResizeObserver(()=>f()),v=()=>f();return f(),w.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0}),U.observe(document.documentElement),window.addEventListener("scroll",v,{capture:!0,passive:!0}),()=>{d&&clearTimeout(d),w.disconnect(),U.disconnect(),window.removeEventListener("scroll",v,!0),Tt.current&&cancelAnimationFrame(Tt.current),Ho.current=null}},[b,z,$c,uA,VA,l]);const So=p.useCallback(d=>{let f=d;for(;f&&f!==document.body;){if(Ts(f))return f;f=f.parentElement}return null},[]);p.useEffect(()=>{const d=f=>{const w=f.target;w&&(So(w)||(jc.current=w))};return window.addEventListener("mousedown",d,!0),()=>window.removeEventListener("mousedown",d,!0)},[So]),p.useEffect(()=>{Io.current=document.getElementById("viewgate-shadow-host")},[]);const Lo=p.useCallback(d=>{if(!b||Y)return;const f=Ic(d.clientX,d.clientY);if(!f||Io.current?.contains(f)||f.closest(".vg-no-capture")){yA(null);return}const w=f.getBoundingClientRect();yA({tag:f.tagName.toLowerCase(),source:f.getAttribute("data-source-path")||"unknown:0",rect:w,element:f,previewText:(f.innerText||"").slice(0,100)||(f.getAttribute("placeholder")||"").slice(0,100)||f.tagName.toLowerCase(),semanticReference:{...Lc(f,jc.current),normalizedOffset:{x:(d.clientX-w.left)/w.width,y:(d.clientY-w.top)/w.height}}})},[b,Y]),To=p.useCallback(async d=>{if(!b||Y)return;const f=Ic(d.clientX,d.clientY);if(!(!f||Io.current?.contains(f)||f.closest(".vg-no-capture"))&&N){const w=N;let U=w.element;So(U);let v=w.semanticReference,D=w.tag;d.preventDefault(),d.stopPropagation(),tA(!0);try{await new Promise(wA=>requestAnimationFrame(wA)),await new Promise(wA=>setTimeout(wA,150));const T=U.getBoundingClientRect(),H={...w,element:U,rect:T,semanticReference:v,tag:D};IA(H);const oA=document.documentElement,_=window.scrollX||window.pageXOffset||document.documentElement.scrollLeft,bA=window.scrollY||window.pageYOffset||document.documentElement.scrollTop;await new Promise(wA=>requestAnimationFrame(wA));const aA=await po(oA,{scale:2,useCORS:!0,logging:!1,backgroundColor:null,x:_,y:bA,width:window.innerWidth,height:window.innerHeight,windowWidth:document.documentElement.clientWidth,windowHeight:document.documentElement.clientHeight,scrollX:0,scrollY:0,onclone:wA=>{const kA=wA.getElementById("viewgate-shadow-host");kA&&(kA.style.display="none")}});u(aA);const iA=aA.toDataURL("image/webp",.6);C(iA);const fA={unit:"px",x:T.left,y:T.top,width:T.width,height:T.height};F(fA),L(fA)}catch(T){console.error("[ViewGate] Capture failed:",T)}finally{tA(!1),yA(null)}}},[b,N,Y,n,s,cA]);p.useEffect(()=>{const d=f=>{const U=(()=>{let T=document.activeElement;for(;T&&T.shadowRoot&&T.shadowRoot.activeElement;)T=T.shadowRoot.activeElement;return T})();if(["input","textarea"].includes((U?.tagName||"").toLowerCase())||U?.isContentEditable)return;const D=f.key.toLowerCase();if(!cA){(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(f.key==="Escape"){Y?IA(null):uA?xA(!1):b&&R(!1);return}if(D==="c"&&!f.ctrlKey&&!f.metaKey&&!Y&&!uA){if(!Vs){A(e==="es"?"Acceso denegado a este proyecto":"No project access","error");return}if(Cr==="client"){A(e==="es"?"Acceso de solo lectura (Backlog)":"Read-only access (Backlog)","warning");return}if(_s&&!b){if(Nc?.status===403||!Vs){const oA=Nc?.message||(e==="es"?"Acceso denegado a este proyecto":"No project access");A(oA,"error");return}A(e==="es"?"Verificando información del sprint...":"Checking sprint info...","warning");return}if(!(Me&&Me.status!=="closed")&&!B&&!b){A(e==="es"?"No hay un sprint activo. No se pueden generar comentarios.":"No active sprint found. Cannot generate comments.","error");return}R(H=>!H)}if(D==="v"&&!Y){if(!Vs){A(e==="es"?"Acceso denegado a este proyecto":"No project access","error");return}(z.length>0||uA)&&(xA(T=>!T),uA||R(!1))}};return b&&!Y?document.body.classList.add("vg-cursor-pointer"):document.body.classList.remove("vg-cursor-pointer"),window.addEventListener("keydown",d),window.addEventListener("mousemove",Lo,!0),window.addEventListener("click",To,!0),()=>{document.body.classList.remove("vg-cursor-pointer"),window.removeEventListener("keydown",d),window.removeEventListener("mousemove",Lo,!0),window.removeEventListener("click",To,!0)}},[b,Y,uA,z,Lo,To,cA,Cr]);const pw=async()=>{if(!(!Y||!jA.trim())){if(x.includes("backend")&&J.length===0){A(e==="es"?"Selecciona al menos un endpoint de backend":"Select at least one backend endpoint","error");return}if(x.includes("ux")&&V.some(f=>!f.name.trim()||!f.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(!KA){A(e==="es"?"Selecciona un usuario para comentar":"Please select a user to comment","error");return}te(!0);try{let d=null;if(h&&Q){const H=await K(h,Q);if(H){const oA=await fetch(`${n}/api/screenshots/upload`,{method:"POST",headers:{"Content-Type":"application/json","x-api-key":s,...cA?{Authorization:`Bearer ${cA}`}:{}},body:JSON.stringify({image:H})});if(oA.ok){const{url:_}=await oA.json();d=_}}}const{semanticReference:f}=Y,[w,U]=(f?.source||"").split(":"),D={filePath:w,line:parseInt(U||"0"),url:window.location.href,title:jA.length>50?jA.substring(0,50)+"...":jA,message:jA,status:B?"backlog":"pending",priority:W,type:d&&!B&&Ns?.status==="active"?"bug":"task",screenshot:d,componentName:f?.componentPath||Y.tag,reference:{...f,crop:Q,viewport:{width:window.innerWidth,height:window.innerHeight},timestamp:new Date().toISOString()},focusAreas:x,figmaReference:x.includes("ux")?V:void 0,backendEndpoints:x.includes("backend")?J:[]};KA&&(D.creator={name:KA.name,email:KA.email,avatar:KA.avatar});const T=await fetch(`${n}/api/annotations`,{method:"POST",headers:{"Content-Type":"application/json","x-api-key":s,Authorization:cA?`Bearer ${cA}`:""},body:JSON.stringify(D)});if(!T.ok){const H=await T.json().catch(()=>({}));throw new Error(H.message||H.error||"Backend failed")}A(r.success,"success"),IA(null),Ue(""),k([]),$([{name:r.figmaPrimaryDesign,link:""}]),MA([]),R(!1),u(null),C(null),Ps()}catch(d){console.error("[ViewGate] Submission Error:",d);const f=d.message&&d.message!=="Backend failed"?d.message:r.error;A(f,"error")}finally{te(!1)}}},ww=async d=>{tA(!0);try{const f=Hc(d.reference,d._id);if(!f){A(e==="es"?"No se pudo encontrar el elemento original para la captura":"Could not find the original element for capture","error"),tA(!1);return}f.scrollIntoView({behavior:"smooth",block:"center"}),await new Promise(iA=>setTimeout(iA,600));const w=f.style.outline,U=f.style.transition;f.style.transition="outline 0.3s ease",f.style.outline="4px solid #10b981",f.style.outlineOffset="4px",await new Promise(iA=>setTimeout(iA,400)),f.style.outline=w,f.style.transition=U,await new Promise(iA=>requestAnimationFrame(iA)),await new Promise(iA=>setTimeout(iA,50));const v=f.getBoundingClientRect(),D=document.documentElement,T=window.scrollX||window.pageXOffset,H=window.scrollY||window.pageYOffset,_=(await po(D,{scale:2,useCORS:!0,logging:!1,backgroundColor:null,allowTaint:!0,x:T,y:H,width:window.innerWidth,height:window.innerHeight,windowWidth:window.innerWidth,windowHeight:window.innerHeight,scrollX:0,scrollY:0,onclone:iA=>{const fA=iA.getElementById("viewgate-shadow-host");fA&&(fA.style.display="none")}})).toDataURL("image/webp",.85),bA=await fetch(`${n}/api/screenshots/crop-and-preview`,{method:"POST",headers:{"Content-Type":"application/json","x-api-key":s,...cA?{Authorization:`Bearer ${cA}`}:{}},body:JSON.stringify({fullImage:_,rect:{x:v.left,y:v.top,width:v.width,height:v.height},padding:40,scale:2})});if(!bA.ok)throw new Error("Backend cropping failed");const{url:aA}=await bA.json();if(aA){const iA=await fetch(`${n}/api/tickets/${d._id}`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:cA?`Bearer ${cA}`:""},body:JSON.stringify({status:"completed",resolvedScreenshot:aA})});if(!iA.ok){const fA=await iA.json().catch(()=>({}));throw new Error(fA.message||fA.error||"API failed")}A(e==="es"?"¡Ticket resuelto con éxito!":"Ticket resolved successfully!","success"),Ps()}f.style.outline=w,f.style.transition=U}catch(f){console.error("[ViewGate] Resolve with evidence failed:",f),A(e==="es"?`Error: ${f.message}`:`Error: ${f.message}`,"error")}finally{tA(!1)}};return c.jsx("div",{"data-vg-id":"ef883ffc","data-source-path":"/src/components/ViewGateOverlay.tsx:2155",className:"vg-container",style:{userSelect:"none",WebkitUserSelect:"none"},children:c.jsxs("div",{"data-vg-id":"ef883ffd","data-source-path":"/src/components/ViewGateOverlay.tsx:2156",className:"vg-no-capture",style:{userSelect:"none",WebkitUserSelect:"none"},children:[c.jsxs("div",{style:{position:"fixed",bottom:`${Ht.bottom}px`,right:`${Ht.right}px`,zIndex:Fc,display:"flex",alignItems:"center",gap:"8px",transition:Fr?"none":"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)"},id:"viewgate-ui",children:[c.jsx("div",{onMouseDown:hw,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:b?0:1,visibility:b?"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:d=>{d.currentTarget.style.backgroundColor="white",d.currentTarget.style.color="#000000"},onMouseLeave:d=>{d.currentTarget.style.backgroundColor="rgba(255, 255, 255, 0.85)",d.currentTarget.style.color="#1e293b"},className:"vg-animate-slide-up",children:c.jsx(Yl,{"data-vg-id":"3dbe6a11","data-source-path":"/src/components/ViewGateOverlay.tsx:2203",size:16})}),c.jsxs("div",{"data-vg-id":"ef883fff","data-source-path":"/src/components/ViewGateOverlay.tsx:2206",className:"vg-action-bar vg-animate-slide-up",style:{transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)"},children:[cA?Vs?c.jsxs(c.Fragment,{children:[Cr!=="client"&&c.jsx("button",{onClick:()=>{if(_s&&!b){A(e==="es"?"Sincronizando con el servidor...":"Syncing with server...","warning");return}if(!Me&&!B&&!b){A(e==="es"?"No hay un sprint activo. No se pueden generar comentarios.":"No active sprint found. Cannot generate comments.","error");return}R(!b)},className:"vg-button-primary vg-animate-pop",style:{padding:"12px 24px",background:b?"#ef4444":!Me&&!B?"#94a3b8":void 0,cursor:!Me&&!B&&!b?"not-allowed":"pointer",opacity:!Me&&!B&&!b?.7:1},title:!Me&&!B&&!b?e==="es"?"Requiere sprint activo":"Requires active sprint":"",children:c.jsxs("div",{"data-vg-id":"ef884001","data-source-path":"/src/components/ViewGateOverlay.tsx:2245",style:{display:"flex",alignItems:"center",gap:"10px"},children:[_s&&!b?c.jsx(Or,{"data-vg-id":"edca6150","data-source-path":"/src/components/ViewGateOverlay.tsx:2247",size:20,className:"vg-animate-spin"}):b?c.jsx(Nt,{"data-vg-id":"ff5f5cf","data-source-path":"/src/components/ViewGateOverlay.tsx:2249",size:20,className:"vg-animate-pop"}):c.jsx(Dr,{"data-vg-id":"10c621c4","data-source-path":"/src/components/ViewGateOverlay.tsx:2251",size:20,className:"vg-animate-pop"}),c.jsx("span",{"data-vg-id":"52d76c43","data-source-path":"/src/components/ViewGateOverlay.tsx:2253",children:_s&&!b?e==="es"?"Cargando...":"Loading...":b?r.exitMode:r.enterMode})]})}),z.length>0&&c.jsxs("button",{onClick:()=>{xA(!uA),R(!1),IA(null)},className:"vg-button-ghost vg-animate-pop",style:{animationDelay:"0.1s"},children:[c.jsx(zl,{"data-vg-id":"cd7341f9","data-source-path":"/src/components/ViewGateOverlay.tsx:2271",size:20}),c.jsx("span",{"data-vg-id":"52d76c45","data-source-path":"/src/components/ViewGateOverlay.tsx:2272",children:r.viewComments})]})]}):c.jsx("div",{"data-vg-id":"ef884000","data-source-path":"/src/components/ViewGateOverlay.tsx:2209",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"}):c.jsxs("button",{onClick:()=>{R(!0),IA({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:[c.jsx(la,{"data-vg-id":"422a5ea5","data-source-path":"/src/components/ViewGateOverlay.tsx:2292",size:18}),c.jsx("span",{"data-vg-id":"52d76c47","data-source-path":"/src/components/ViewGateOverlay.tsx:2293",style:{fontWeight:700},children:e==="es"?"Desbloquear con Clave":"Unlock with Key"})]}),c.jsx("button",{onClick:d=>{d.stopPropagation(),ue({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:d=>{d.currentTarget.style.color="#ef4444",d.currentTarget.style.backgroundColor="white",d.currentTarget.style.borderColor="rgba(239, 68, 68, 0.2)",d.currentTarget.style.transform="scale(1.05)"},onMouseLeave:d=>{d.currentTarget.style.color="#64748b",d.currentTarget.style.backgroundColor="rgba(255, 255, 255, 0.8)",d.currentTarget.style.borderColor="rgba(0,0,0,0.05)",d.currentTarget.style.transform="scale(1)"},title:r.close||"Cerrar ViewGate",children:c.jsx(Nt,{"data-vg-id":"ff5f5d6","data-source-path":"/src/components/ViewGateOverlay.tsx:2337",size:20,strokeWidth:2.5})})]})]}),nA&&!Y&&c.jsx("div",{"data-vg-id":"17fbf7e","data-source-path":"/src/components/ViewGateOverlay.tsx:2346",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:Fc+1,cursor:"wait"},children:c.jsxs("div",{"data-vg-id":"17fbf7f","data-source-path":"/src/components/ViewGateOverlay.tsx:2352",className:"vg-glassmorphism",style:{padding:"30px 50px",display:"flex",flexDirection:"column",alignItems:"center",gap:"16px"},children:[c.jsx("div",{"data-vg-id":"17fbf95","data-source-path":"/src/components/ViewGateOverlay.tsx:2353",className:"vg-spinner"}),c.jsx("span",{"data-vg-id":"52d76c61","data-source-path":"/src/components/ViewGateOverlay.tsx:2354",style:{fontWeight:600,fontSize:"14px",color:"#000000"},children:"Capturando..."})]})}),b&&!Y&&c.jsx("div",{className:"vg-backdrop-blur",style:{opacity:1,clipPath:N?`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
|
${N.rect.left}px ${N.rect.top}px,
|
|
15
16
|
${N.rect.right}px ${N.rect.top}px,
|
|
16
17
|
${N.rect.right}px ${N.rect.bottom}px,
|
|
17
18
|
${N.rect.left}px ${N.rect.bottom}px,
|
|
18
19
|
${N.rect.left}px ${N.rect.top}px
|
|
19
|
-
)`:"none",zIndex:$p}}),b&&N&&!Y&&!nA&&c.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:qp},children:c.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:[c.jsx(Zl,{"data-vg-id":"f840c8ce","data-source-path":"/src/components/ViewGateOverlay.tsx:2406",size:16}),c.jsxs("div",{"data-vg-id":"17fbf98","data-source-path":"/src/components/ViewGateOverlay.tsx:2407",style:{display:"flex",flexDirection:"column"},children:[c.jsx("span",{"data-vg-id":"52d76c64","data-source-path":"/src/components/ViewGateOverlay.tsx:2408",style:{fontWeight:700},children:r.selectToComment}),c.jsxs("span",{"data-vg-id":"52d76c65","data-source-path":"/src/components/ViewGateOverlay.tsx:2409",style:{fontSize:"10px",opacity:.8,fontFamily:"monospace"},children:[Math.round(N.rect.width)," × ",Math.round(N.rect.height)]})]})]})}),!cA&&(b||uA||Y)&&c.jsx("div",{"data-vg-id":"17fbf9b","data-source-path":"/src/components/ViewGateOverlay.tsx:2419",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:qe},children:c.jsxs("div",{"data-vg-id":"17fbf9c","data-source-path":"/src/components/ViewGateOverlay.tsx:2424",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:[c.jsxs("div",{"data-vg-id":"17fbf9d","data-source-path":"/src/components/ViewGateOverlay.tsx:2433",style:{textAlign:"center",marginBottom:"32px"},children:[c.jsx("div",{"data-vg-id":"17fbf9e","data-source-path":"/src/components/ViewGateOverlay.tsx:2434",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:c.jsx(la,{"data-vg-id":"422a5ede","data-source-path":"/src/components/ViewGateOverlay.tsx:2440",size:32})}),c.jsx("h2",{"data-vg-id":"efa6bb80","data-source-path":"/src/components/ViewGateOverlay.tsx:2442",style:{margin:"0 0 12px 0",fontSize:"24px",fontWeight:800,color:"#0f172a",letterSpacing:"-0.025em"},children:e==="es"?"ViewGate Protegido":"ViewGate Protected"}),c.jsx("p",{"data-vg-id":"1000def7","data-source-path":"/src/components/ViewGateOverlay.tsx:2445",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."})]}),c.jsxs("form",{"data-vg-id":"a260acc8","data-source-path":"/src/components/ViewGateOverlay.tsx:2452",onSubmit:gw,style:{width:"100%"},children:[c.jsx("div",{"data-vg-id":"17fbfb8","data-source-path":"/src/components/ViewGateOverlay.tsx:2453",style:{position:"relative",marginBottom:"24px"},children:c.jsx("input",{autoFocus:!0,type:"password",value:tt,onChange:d=>Kc(d.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:d=>{d.target.style.borderColor="var(--vg-primary)",d.target.style.boxShadow="0 0 0 4px rgba(99, 102, 241, 0.1)"},onBlur:d=>{d.target.style.borderColor="#e2e8f0",d.target.style.boxShadow="none"}})}),c.jsxs("button",{type:"submit",disabled:Fo||!tt.trim(),className:"vg-button-primary",style:{width:"100%",padding:"16px",display:"flex",alignItems:"center",justifyContent:"center",gap:"12px",fontSize:"16px",fontWeight:700,opacity:Fo||!tt.trim()?.7:1,boxShadow:"0 10px 15px -3px rgba(99, 102, 241, 0.3)"},children:[Fo?c.jsx(Or,{"data-vg-id":"cb81c82b","data-source-path":"/src/components/ViewGateOverlay.tsx:2500",size:20,className:"vg-animate-spin"}):c.jsx(Jl,{"data-vg-id":"d69f974c","data-source-path":"/src/components/ViewGateOverlay.tsx:2502",size:20}),e==="es"?"Desbloquear":"Unlock Now"]})]}),c.jsx("div",{"data-vg-id":"17fbfbb","data-source-path":"/src/components/ViewGateOverlay.tsx:2508",style:{margin:"32px 0 24px",height:"1px",background:"linear-gradient(to right, transparent, #e2e8f0, transparent)"}}),c.jsx("button",{onClick:()=>{IA(null),R(!1),xA(!1)},className:"vg-button-ghost",style:{width:"100%",padding:"12px",fontSize:"14px",color:"#94a3b8"},children:e==="es"?"Cerrar ViewGate":"Close ViewGate"}),c.jsx("div",{"data-vg-id":"17fbfbc","data-source-path":"/src/components/ViewGateOverlay.tsx:2522",style:{marginTop:"24px",textAlign:"center"},children:c.jsx("p",{"data-vg-id":"1000defe","data-source-path":"/src/components/ViewGateOverlay.tsx:2523",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"})})]})}),Y&&KA&&c.jsx("div",{"data-vg-id":"17fbfd3","data-source-path":"/src/components/ViewGateOverlay.tsx:2536",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:qe},children:c.jsxs("div",{"data-vg-id":"17fbfd4","data-source-path":"/src/components/ViewGateOverlay.tsx:2541",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:[c.jsxs("div",{"data-vg-id":"17fbfd5","data-source-path":"/src/components/ViewGateOverlay.tsx:2551",style:{padding:"24px 24px 16px",textAlign:"center",borderBottom:"1px solid rgba(0,0,0,0.05)",flexShrink:0,position:"relative"},children:[KA&&c.jsxs("div",{"data-vg-id":"17fbfd6","data-source-path":"/src/components/ViewGateOverlay.tsx:2553",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:[c.jsx("span",{"data-vg-id":"52d76ca2","data-source-path":"/src/components/ViewGateOverlay.tsx:2570",style:{fontSize:"10px",fontWeight:800,color:"#64748b",textTransform:"uppercase"},children:KA.name.split(" ")[0]}),KA.avatar?c.jsx("img",{"data-vg-id":"a398766","data-source-path":"/src/components/ViewGateOverlay.tsx:2574",src:KA.avatar,style:{width:"24px",height:"24px",borderRadius:"50%"},alt:""}):c.jsx("div",{"data-vg-id":"17fbfd9","data-source-path":"/src/components/ViewGateOverlay.tsx:2576",style:{width:"24px",height:"24px",borderRadius:"50%",background:"#6366f1",color:"white",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"10px",fontWeight:700},children:KA.name?.[0]})]}),c.jsx("div",{"data-vg-id":"17fbfda","data-source-path":"/src/components/ViewGateOverlay.tsx:2582",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:c.jsx(Dr,{"data-vg-id":"10c62228","data-source-path":"/src/components/ViewGateOverlay.tsx:2587",size:20})}),c.jsx("h2",{"data-vg-id":"efa6bba7","data-source-path":"/src/components/ViewGateOverlay.tsx:2589",style:{margin:"0 0 4px 0",fontSize:"20px",fontWeight:800,color:"#0f172a"},children:r.feedbackHeader}),c.jsx("p",{"data-vg-id":"1000df33","data-source-path":"/src/components/ViewGateOverlay.tsx:2590",style:{margin:0,color:"#64748b",fontSize:"14px"},children:r.feedbackSubheader})]}),c.jsxs("div",{"data-vg-id":"17fbff3","data-source-path":"/src/components/ViewGateOverlay.tsx:2594",className:"vg-custom-scrollbar",style:{flex:1,overflowY:"auto",padding:"24px",display:"flex",flexDirection:"column"},children:[c.jsxs("div",{"data-vg-id":"17fc018","data-source-path":"/src/components/ViewGateOverlay.tsx:2666",style:{marginBottom:"24px"},children:[c.jsx("label",{"data-vg-id":"18bd4b56","data-source-path":"/src/components/ViewGateOverlay.tsx:2667",style:{fontSize:"12px",fontWeight:700,color:"#64748b",marginBottom:"8px",display:"block"},children:r.priority}),c.jsx("div",{"data-vg-id":"17fc01a","data-source-path":"/src/components/ViewGateOverlay.tsx:2670",style:{display:"flex",gap:"8px"},children:["low","medium","high","urgent"].map(d=>c.jsx("button",{onClick:()=>sA(d),style:{flex:1,padding:"12px 6px",borderRadius:"8px",fontSize:"13px",fontWeight:700,border:"1px solid",borderColor:W===d?d==="low"?"#10b981":d==="medium"?"#6366f1":d==="high"?"#f59e0b":"#ef4444":"#e2e8f0",backgroundColor:W===d?d==="low"?"#ecfdf5":d==="medium"?"#eef2ff":d==="high"?"#fffbeb":"#fef2f2":"white",color:W===d?d==="low"?"#059669":d==="medium"?"#4338ca":d==="high"?"#b45309":"#b91c1c":"#64748b",cursor:"pointer",transition:"all 0.2s",textTransform:"uppercase"},children:r[d]},d))})]}),c.jsxs("div",{"data-vg-id":"17fc030","data-source-path":"/src/components/ViewGateOverlay.tsx:2697",style:{marginBottom:"24px"},children:[c.jsx("label",{"data-vg-id":"18bd4b6e","data-source-path":"/src/components/ViewGateOverlay.tsx:2698",style:{fontSize:"12px",fontWeight:700,color:"#64748b",marginBottom:"8px",display:"block"},children:r.focusAreas}),c.jsx("div",{"data-vg-id":"17fc032","data-source-path":"/src/components/ViewGateOverlay.tsx:2701",style:{display:"flex",gap:"8px",marginBottom:x.length>0?"12px":"0"},children:[{id:"frontend",label:r.frontend,icon:c.jsx(Lr,{"data-vg-id":"377c1766","data-source-path":"/src/components/ViewGateOverlay.tsx:2703",size:14}),color:"#10b981",bg:"#ecfdf5",border:"#d1fae5"},{id:"backend",label:r.backend,icon:c.jsx(Ee,{"data-vg-id":"7117e5f8","data-source-path":"/src/components/ViewGateOverlay.tsx:2704",size:14}),color:"#6366f1",bg:"#eef2ff",border:"#e0e7ff"},{id:"ux",label:r.ux,icon:c.jsx(Vt,{"data-vg-id":"de4247bd","data-source-path":"/src/components/ViewGateOverlay.tsx:2705",size:14}),color:"#d946ef",bg:"#fdf4ff",border:"#f5d0fe"}].filter(d=>d.id==="backend"?Gs:d.id==="ux"?At:!0).map(d=>{const f=x.includes(d.id);return c.jsxs("button",{onClick:()=>{f?k(x.filter(w=>w!==d.id)):(k([...x,d.id]),d.id==="backend"&&bo())},style:{flex:1,padding:"10px 4px",borderRadius:"8px",fontSize:"12px",fontWeight:700,border:"1px solid",borderColor:f?d.color:"#e2e8f0",backgroundColor:f?d.bg:"white",color:f?d.color:"#64748b",cursor:"pointer",transition:"all 0.2s",display:"flex",alignItems:"center",justifyContent:"center",gap:"6px"},children:[d.icon,d.label]},d.id)})}),x.includes("ux")&&c.jsxs("div",{"data-vg-id":"17fc036","data-source-path":"/src/components/ViewGateOverlay.tsx:2752",className:"vg-animate-slide",style:{marginBottom:"16px"},children:[c.jsxs("div",{"data-vg-id":"17fc037","data-source-path":"/src/components/ViewGateOverlay.tsx:2753",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px"},children:[c.jsxs("div",{"data-vg-id":"17fc038","data-source-path":"/src/components/ViewGateOverlay.tsx:2754",style:{display:"flex",alignItems:"center",gap:"6px"},children:[c.jsx(Tr,{"data-vg-id":"38884e34","data-source-path":"/src/components/ViewGateOverlay.tsx:2755",size:14,style:{color:"#d946ef"}}),c.jsx("span",{"data-vg-id":"52d76d1a","data-source-path":"/src/components/ViewGateOverlay.tsx:2756",style:{fontSize:"11px",fontWeight:800,color:"#64748b",textTransform:"uppercase",letterSpacing:"0.05em"},children:r.figmaLink})]}),c.jsxs("button",{"data-vg-id":"23e21fb3","data-source-path":"/src/components/ViewGateOverlay.tsx:2760",onClick:()=>$([...V,{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:d=>d.currentTarget.style.background="rgba(217, 70, 239, 0.15)",onMouseLeave:d=>d.currentTarget.style.background="rgba(217, 70, 239, 0.1)",children:[c.jsx($l,{"data-vg-id":"11a60cac","data-source-path":"/src/components/ViewGateOverlay.tsx:2779",size:10})," ",r.addLink]})]}),c.jsx("div",{"data-vg-id":"17fc052","data-source-path":"/src/components/ViewGateOverlay.tsx:2783",style:{display:"flex",flexDirection:"column",gap:"8px"},children:V.map((d,f)=>c.jsxs("div",{"data-vg-id":"17fc053","data-source-path":"/src/components/ViewGateOverlay.tsx:2785",style:{display:"flex",gap:"6px",alignItems:"flex-start"},className:"vg-animate-slide",children:[c.jsxs("div",{"data-vg-id":"17fc054","data-source-path":"/src/components/ViewGateOverlay.tsx:2786",style:{flex:1,display:"flex",flexDirection:"column",gap:"4px"},children:[c.jsx("input",{"data-vg-id":"a993bafc","data-source-path":"/src/components/ViewGateOverlay.tsx:2787",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:d.name,onChange:w=>{const U=[...V];U[f]&&(U[f].name=w.target.value,$(U))}}),c.jsx("input",{"data-vg-id":"a993bafd","data-source-path":"/src/components/ViewGateOverlay.tsx:2801",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:d.link,onChange:w=>{const U=[...V];U[f]&&(U[f].link=w.target.value,$(U))}})]}),V.length>1&&c.jsx("button",{"data-vg-id":"23e21fba","data-source-path":"/src/components/ViewGateOverlay.tsx:2817",onClick:()=>$(V.filter((w,U)=>U!==f)),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:w=>w.currentTarget.style.background="rgba(239, 68, 68, 0.1)",onMouseLeave:w=>w.currentTarget.style.background="rgba(239, 68, 68, 0.05)",children:c.jsx(Kr,{"data-vg-id":"e1375dd3","data-source-path":"/src/components/ViewGateOverlay.tsx:2834",size:14})})]},f))})]}),X.length>0&&x.includes("backend")&&c.jsxs("div",{"data-vg-id":"17fc06e","data-source-path":"/src/components/ViewGateOverlay.tsx:2846",className:"vg-animate-slide",style:{marginBottom:"16px"},children:[c.jsxs("div",{"data-vg-id":"17fc06f","data-source-path":"/src/components/ViewGateOverlay.tsx:2847",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px"},children:[c.jsxs("div",{"data-vg-id":"17fc070","data-source-path":"/src/components/ViewGateOverlay.tsx:2848",style:{display:"flex",alignItems:"center",gap:"6px"},children:[c.jsx(Ee,{"data-vg-id":"7117e635","data-source-path":"/src/components/ViewGateOverlay.tsx:2849",size:14,style:{color:"#6366f1"}}),c.jsx("span",{"data-vg-id":"52d76d3d","data-source-path":"/src/components/ViewGateOverlay.tsx:2850",style:{fontSize:"11px",fontWeight:700,color:"#64748b"},children:r.endpoint})]}),J.length>0&&c.jsxs("span",{"data-vg-id":"52d76d3e","data-source-path":"/src/components/ViewGateOverlay.tsx:2853",style:{fontSize:"10px",background:"#eef2ff",color:"#6366f1",padding:"2px 8px",borderRadius:"12px",fontWeight:700},children:[J.length," ",e==="es"?"seleccionados":"selected"]})]}),c.jsxs("button",{"data-vg-id":"23e21fd7","data-source-path":"/src/components/ViewGateOverlay.tsx:2859",onClick:()=>Et(!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:[c.jsx("div",{"data-vg-id":"17fc075","data-source-path":"/src/components/ViewGateOverlay.tsx:2878",style:{display:"flex",gap:"4px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:J.length>0?J.slice(0,2).map(d=>{const f=d.split("|"),w=f.length>1?f[0]:"",U=f.length>1?f[1]:d;return c.jsxs("span",{"data-vg-id":"52d76d41","data-source-path":"/src/components/ViewGateOverlay.tsx:2885",style:{background:"rgba(99, 102, 241, 0.1)",color:"#6366f1",padding:"1px 6px",borderRadius:"4px",fontSize:"11px",fontWeight:600},children:[w&&c.jsx("span",{"data-vg-id":"52d76d42","data-source-path":"/src/components/ViewGateOverlay.tsx:2893",style:{opacity:.6,marginRight:"4px"},children:w}),(U||"").split("/").pop()||U]},d)}).concat(J.length>2?[c.jsxs("span",{"data-vg-id":"8161c0f","data-source-path":"/src/components/ViewGateOverlay.tsx:2897",children:["+",J.length-2]},"more")]:[]):r.selectEndpoint}),c.jsx(ia,{"data-vg-id":"1cd38c47","data-source-path":"/src/components/ViewGateOverlay.tsx:2900",size:14,style:{color:"#64748b"}})]})]})]})]}),c.jsxs("div",{"data-vg-id":"2e782f7c","data-source-path":"/src/components/ViewGateOverlay.tsx:2909",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:[c.jsx("button",{onClick:()=>{YA||(IA(null),R(!1))},className:"vg-button-ghost",disabled:YA,style:{flex:1,padding:"12px"},children:r.cancel}),c.jsx("button",{onClick:pw,className:"vg-button-primary",disabled:YA||!jA.trim()||x.includes("backend")&&J.length===0||x.includes("ux")&&V.some(d=>!d.name.trim()||!d.link.trim()),style:{flex:2,opacity:YA||!jA.trim()||x.includes("backend")&&J.length===0||x.includes("ux")&&V.some(d=>!d.name.trim()||!d.link.trim())?.6:1,cursor:YA||!jA.trim()||x.includes("backend")&&J.length===0||x.includes("ux")&&V.some(d=>!d.name.trim()||!d.link.trim())?"not-allowed":"pointer"},children:c.jsxs("div",{"data-vg-id":"2e782f7d","data-source-path":"/src/components/ViewGateOverlay.tsx:2946",style:{display:"flex",alignItems:"center",gap:"8px"},children:[YA?c.jsx("div",{"data-vg-id":"2e782f7e","data-source-path":"/src/components/ViewGateOverlay.tsx:2947",className:"vg-spinner",style:{width:"16px",height:"16px",borderWidth:"2px"}}):c.jsx(Ad,{"data-vg-id":"dbae0972","data-source-path":"/src/components/ViewGateOverlay.tsx:2947",size:18}),c.jsx("span",{"data-vg-id":"8161c15","data-source-path":"/src/components/ViewGateOverlay.tsx:2948",children:YA?r.submitting:r.sendFeedback||"Send Comment"})]})})]})]})}),uA&&c.jsx("div",{"data-vg-id":"2e782f81","data-source-path":"/src/components/ViewGateOverlay.tsx:2959",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:qe},children:c.jsxs("div",{"data-vg-id":"2e782f82","data-source-path":"/src/components/ViewGateOverlay.tsx:2965",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:[c.jsxs("div",{"data-vg-id":"2e782f83","data-source-path":"/src/components/ViewGateOverlay.tsx:2970",style:{display:"flex",flexDirection:"column",gap:"16px",marginBottom:"24px"},children:[c.jsxs("div",{"data-vg-id":"2e782f99","data-source-path":"/src/components/ViewGateOverlay.tsx:2971",style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[c.jsx("h2",{"data-vg-id":"530ad2f","data-source-path":"/src/components/ViewGateOverlay.tsx:2972",style:{margin:0,fontSize:"20px",fontWeight:800,color:"#0f172a",whiteSpace:"nowrap"},children:VA?r.commentDetails:r.annotations}),c.jsxs("div",{"data-vg-id":"2e782f9b","data-source-path":"/src/components/ViewGateOverlay.tsx:2975",style:{display:"flex",alignItems:"center",gap:"12px"},children:[KA?c.jsxs("div",{"data-vg-id":"2e782f9c","data-source-path":"/src/components/ViewGateOverlay.tsx:2977",style:{display:"flex",alignItems:"center",gap:"8px",padding:"4px 12px",background:"rgba(99, 102, 241, 0.1)",borderRadius:"20px"},children:[KA.avatar?c.jsx("img",{"data-vg-id":"3cf759cf","data-source-path":"/src/components/ViewGateOverlay.tsx:2979",src:KA.avatar,style:{width:"20px",height:"20px",borderRadius:"50%"},alt:""}):c.jsx("div",{"data-vg-id":"2e782f9e","data-source-path":"/src/components/ViewGateOverlay.tsx:2981",style:{width:"20px",height:"20px",borderRadius:"50%",background:"#6366f1",color:"white",fontSize:"10px",display:"flex",alignItems:"center",justifyContent:"center"},children:KA.name?.[0]}),c.jsx("span",{"data-vg-id":"8161c34","data-source-path":"/src/components/ViewGateOverlay.tsx:2985",style:{fontSize:"12px",fontWeight:600,color:"#4338ca"},children:KA.name})]}):c.jsx("div",{"data-vg-id":"2e782fa0","data-source-path":"/src/components/ViewGateOverlay.tsx:2992",style:{fontSize:"12px",color:"#64748b",fontWeight:600},children:e==="es"?"Sin usuario":"No user selected"}),c.jsx("button",{className:"vg-button-ghost",style:{padding:"8px",borderRadius:"50%"},onClick:()=>{xA(!1),Co(null),js(null),QA("all")},children:c.jsx(Nt,{"data-vg-id":"eec8c468","data-source-path":"/src/components/ViewGateOverlay.tsx:3001",size:20})})]})]}),c.jsx("div",{"data-vg-id":"2e782fa2","data-source-path":"/src/components/ViewGateOverlay.tsx:3005",style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center",width:"100%"},children:(()=>{const d=Array.isArray(z)?z:[],f=VA?It.find(H=>H.annotations?.some(oA=>oA._id===VA)):null,U=(f?f.annotations:d).filter(H=>H.status!=="completed"&&H.status!=="done"),v=U.filter(H=>H.status!=="ready_for_review").length,D=U.filter(H=>H.status==="ready_for_review").length,T=U.length;return T<=0?T===0?null:c.jsxs("div",{"data-vg-id":"2e782fb8","data-source-path":"/src/components/ViewGateOverlay.tsx:3019",style:{display:"flex",gap:"8px",opacity:.9},children:[v>0&&c.jsxs("div",{"data-vg-id":"2e782fb9","data-source-path":"/src/components/ViewGateOverlay.tsx:3021",className:"vg-badge",style:{background:"#fff7ed",color:"#c2410c",border:"1px solid #ffedd5",fontSize:"11px",padding:"2px 8px"},children:[v," ",v===1?"pendiente":"pendientes"]}),D>0&&c.jsxs("div",{"data-vg-id":"2e782fba","data-source-path":"/src/components/ViewGateOverlay.tsx:3026",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"]})]}):c.jsxs(c.Fragment,{children:[!B&&c.jsxs("div",{"data-vg-id":"2e782fbb","data-source-path":"/src/components/ViewGateOverlay.tsx:3037",className:"vg-segmented-control",style:{marginBottom:"4px"},children:[c.jsx("div",{className:"vg-segmented-slider",style:{left:RA===null?"4px":RA==="pending"?"calc(4px + (100% - 8px) / 3)":"calc(4px + 2 * (100% - 8px) / 3)",width:"calc((100% - 8px) / 3)",background:RA===null?"var(--vg-primary)":RA==="pending"?"#ea580c":"#a855f7",boxShadow:RA===null?"0 4px 12px rgba(99, 102, 241, 0.3)":RA==="pending"?"0 4px 12px rgba(234, 88, 12, 0.3)":"0 4px 12px rgba(168, 85, 247, 0.3)"}}),c.jsxs("div",{onClick:()=>js(null),className:`vg-segmented-item ${RA===null?"active":""}`,children:[r.viewAll||"Todos"," (",T,")"]}),c.jsxs("div",{onClick:()=>js("pending"),className:`vg-segmented-item ${RA==="pending"?"active":""}`,children:[e==="es"?v===1?"Pendiente":"Pendientes":"Pending"," (",v,")"]}),c.jsxs("div",{onClick:()=>js("ready"),className:`vg-segmented-item ${RA==="ready"?"active":""}`,children:[e==="es"?"Listo para revisión":"Ready for Review"," (",D,")"]})]}),c.jsxs("div",{"data-vg-id":"2e782fbc","data-source-path":"/src/components/ViewGateOverlay.tsx:3068",style:{display:"flex",gap:"6px",justifyContent:"center",flexWrap:"wrap",marginTop:B?"0":"4px"},children:[c.jsxs("button",{onClick:()=>QA("all"),style:{padding:"8px 16px",borderRadius:"20px",fontSize:"12px",fontWeight:700,border:"1px solid",borderColor:AA==="all"?"var(--vg-primary)":"#e2e8f0",backgroundColor:AA==="all"?"var(--vg-primary)":"transparent",color:AA==="all"?"white":"#64748b",cursor:"pointer",transition:"all 0.2s"},children:[r.viewAll||"Todos"," (",U.filter(H=>B?!0:RA==="pending"?H.status!=="ready_for_review":RA==="ready"?H.status==="ready_for_review":!0).length,")"]}),["low","medium","high","urgent"].map(H=>{const oA=U.filter(_=>B?!0:RA==="pending"?_.status!=="ready_for_review":RA==="ready"?_.status==="ready_for_review":!0).filter(_=>(_.priority||"medium")===H).length;return oA===0&&AA!==H?null:c.jsxs("button",{onClick:()=>QA(H),style:{padding:"8px 16px",borderRadius:"20px",fontSize:"12px",fontWeight:700,border:"1px solid",borderColor:AA===H?H==="low"?"#10b981":H==="medium"?"#6366f1":H==="high"?"#f59e0b":"#ef4444":"#e2e8f0",backgroundColor:AA===H?H==="low"?"#ecfdf5":H==="medium"?"#eef2ff":H==="high"?"#fffbeb":"#fef2f2":"transparent",color:AA===H?H==="low"?"#059669":H==="medium"?"#4338ca":H==="high"?"#b45309":"#b91c1c":"#64748b",cursor:"pointer",transition:"all 0.2s",textTransform:"uppercase"},children:[r[H]," (",oA,")"]},H)})]})]})})()})]}),c.jsx("div",{style:{flex:1,overflowY:"auto",paddingRight:"10px",overflowX:"hidden"},className:"vg-custom-scrollbar",children:rt?c.jsx("div",{"data-vg-id":"2e782fbd","data-source-path":"/src/components/ViewGateOverlay.tsx:3134",style:{display:"flex",justifyContent:"center",padding:"40px"},children:c.jsx("div",{"data-vg-id":"2e782fbe","data-source-path":"/src/components/ViewGateOverlay.tsx:3135",className:"vg-spinner"})}):Eo.map((d,f)=>c.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:`${f*.05}s`},children:[c.jsxs("div",{"data-vg-id":"2e782fbf","data-source-path":"/src/components/ViewGateOverlay.tsx:3150",style:{display:"flex",justifyContent:"space-between",marginBottom:"16px",alignItems:"center"},children:[c.jsxs("div",{"data-vg-id":"2e782fc0","data-source-path":"/src/components/ViewGateOverlay.tsx:3151",style:{display:"flex",gap:"12px",alignItems:"center"},children:[c.jsx("span",{"data-vg-id":"8161c56","data-source-path":"/src/components/ViewGateOverlay.tsx:3152",style:{fontSize:"12px",color:"#000000",fontWeight:600},children:yc(d.timestamp||d.createdAt||d.reference?.timestamp,e)}),c.jsx("div",{"data-vg-id":"2e782fd7","data-source-path":"/src/components/ViewGateOverlay.tsx:3155",onClick:w=>{w.stopPropagation();const U=d.key||`VG-${d._id.slice(-6).toUpperCase()}`;navigator.clipboard.writeText(U);const v=w.currentTarget;v.innerText="¡Copiado!",v.style.color="#22c55e",setTimeout(()=>{v.innerText=U,v.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:d.key||`VG-${d._id.slice(-6).toUpperCase()}`}),d.reference?.metadata?.isModal&&c.jsx("span",{"data-vg-id":"8161c6d","data-source-path":"/src/components/ViewGateOverlay.tsx:3184",className:"vg-badge",style:{fontSize:"10px",background:B?"#f1f5f9":d.status==="completed"||d.status==="done"?"#ecfdf5":d.status==="ready_for_review"?"#f3e8ff":"#fef3c7",color:B?"#64748b":d.status==="completed"||d.status==="done"?"#059669":d.status==="ready_for_review"?"#a855f7":"#92400e",border:"none",padding:"2px 6px"},children:"MODAL"}),d.creator&&c.jsx("div",{"data-vg-id":"2e782fd9","data-source-path":"/src/components/ViewGateOverlay.tsx:3193",style:{display:"flex",alignItems:"center",background:"#f8fafc",padding:"2px",borderRadius:"50%",border:"1px solid #e2e8f0",marginLeft:"4px"},children:d.creator.avatar?c.jsx("img",{"data-vg-id":"3cf75a0c","data-source-path":"/src/components/ViewGateOverlay.tsx:3203",src:d.creator.avatar,style:{width:"16px",height:"16px",borderRadius:"50%"},alt:""}):c.jsx("div",{"data-vg-id":"2e782fdb","data-source-path":"/src/components/ViewGateOverlay.tsx:3205",style:{width:"16px",height:"16px",borderRadius:"50%",background:"#6366f1",color:"white",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"8px",fontWeight:700},children:d.creator.name?.[0]})}),d.url&&c.jsx(bc,{url:d.url,onHover:_c,style:{display:"flex",alignItems:"center",gap:"4px",fontSize:"11px",color:"#64748b",background:"#f8fafc",padding:"2px 8px",borderRadius:"6px",border:"1px solid #e2e8f0",maxWidth:"220px"}}),(d.focusAreas?.length>0?d.focusAreas:[...d.backendEndpoints?.length>0?["backend"]:[],...d.figmaReference?.length>0?["ux"]:[]]).map(w=>c.jsxs("span",{"data-vg-id":"8161c71","data-source-path":"/src/components/ViewGateOverlay.tsx:3231",style:{fontSize:"10px",fontWeight:800,textTransform:"uppercase",padding:"4px 10px",borderRadius:"24px",background:w==="frontend"?"linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%)":w==="backend"?"linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%)":"linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%)",color:w==="frontend"?"#059669":w==="backend"?"#4f46e5":"#c026d3",display:"flex",alignItems:"center",gap:"4px",border:`1px solid ${w==="frontend"?"#a7f3d0":w==="backend"?"#c7d2fe":"#fbcfe8"}`,boxShadow:w==="frontend"?"0 2px 4px rgba(5, 150, 105, 0.05)":w==="backend"?"0 2px 4px rgba(79, 70, 229, 0.05)":"0 2px 4px rgba(192, 38, 211, 0.05)",letterSpacing:"0.02em"},children:[w==="frontend"?c.jsx(Lr,{"data-vg-id":"b806bf0a","data-source-path":"/src/components/ViewGateOverlay.tsx:3239",size:11,strokeWidth:2.5}):w==="backend"?c.jsx(Ee,{"data-vg-id":"b1e4c29a","data-source-path":"/src/components/ViewGateOverlay.tsx:3239",size:11,strokeWidth:2.5}):c.jsx(Vt,{"data-vg-id":"ea069957","data-source-path":"/src/components/ViewGateOverlay.tsx:3239",size:11,strokeWidth:2.5}),w==="frontend"?"Frontend":w==="backend"?"Backend":"UX / UI"]},w))]}),d.status==="completed"?c.jsxs("span",{"data-vg-id":"8161c75","data-source-path":"/src/components/ViewGateOverlay.tsx:3245",className:"vg-badge",style:{backgroundColor:"#ecfdf5",color:"#059669",border:"1px solid #d1fae5"},children:[c.jsx(_e,{"data-vg-id":"a75c1a9b","data-source-path":"/src/components/ViewGateOverlay.tsx:3246",size:14})," ",r.completed||(e==="es"?"Listo para revisión":"Ready for Review")]}):d.status==="ready_for_review"?c.jsxs("span",{"data-vg-id":"8161c8c","data-source-path":"/src/components/ViewGateOverlay.tsx:3249",className:"vg-badge",style:{backgroundColor:"#f3e8ff",color:"#a855f7",border:"1px solid #e9d5ff"},children:[c.jsx(_e,{"data-vg-id":"a75c1a9d","data-source-path":"/src/components/ViewGateOverlay.tsx:3250",size:14})," ",r.readyForReview]}):d.status==="bug_fixing"?c.jsxs("span",{"data-vg-id":"8161c8e","data-source-path":"/src/components/ViewGateOverlay.tsx:3253",className:"vg-badge",style:{backgroundColor:"#fff1f2",color:"#e11d48",border:"1px solid #ffe4e6"},children:[c.jsx(Gt,{"data-vg-id":"3b8b183d","data-source-path":"/src/components/ViewGateOverlay.tsx:3254",size:14})," ","Bug Fixing"]}):c.jsxs("span",{"data-vg-id":"8161c90","data-source-path":"/src/components/ViewGateOverlay.tsx:3257",className:"vg-badge",style:{backgroundColor:B||d.status==="backlog"?"#f1f5f9":"#fff7ed",color:B||d.status==="backlog"?"#64748b":"#ea580c",border:B||d.status==="backlog"?"1px solid #e2e8f0":"1px solid #ffedd5"},children:[c.jsx(ca,{"data-vg-id":"62dc6c59","data-source-path":"/src/components/ViewGateOverlay.tsx:3262",size:14}),B||d.status==="backlog"?r.backlog:r.pending]})]}),(d.screenshot||d.reference?.previewUrl)&&c.jsx("div",{"data-vg-id":"2e782ffd","data-source-path":"/src/components/ViewGateOverlay.tsx:3269",style:{margin:"0 0 20px 0",borderRadius:"8px",overflow:"hidden",width:"fit-content",maxWidth:"100%",maxHeight:"280px",alignSelf:"center",display:"flex"},children:c.jsx("img",{"data-vg-id":"3cf75a30","data-source-path":"/src/components/ViewGateOverlay.tsx:3279",src:d.screenshot||d.reference?.previewUrl,alt:"Visual Preview",style:{maxWidth:"100%",maxHeight:"280px",objectFit:"contain",display:"block"}})}),c.jsxs("div",{"data-vg-id":"2e782fff","data-source-path":"/src/components/ViewGateOverlay.tsx:3292",style:{marginBottom:"20px"},children:[c.jsx("div",{"data-vg-id":"2e783015","data-source-path":"/src/components/ViewGateOverlay.tsx:3293",style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"8px"},children:c.jsxs("div",{"data-vg-id":"2e783016","data-source-path":"/src/components/ViewGateOverlay.tsx:3294",style:{fontSize:"10px",fontWeight:800,color:d.priority==="low"?"#059669":d.priority==="urgent"?"#b91c1c":d.priority==="high"?"#b45309":"#4338ca",backgroundColor:d.priority==="low"?"#ecfdf5":d.priority==="urgent"?"#fef2f2":d.priority==="high"?"#fffbeb":"#eef2ff",padding:"4px 10px",borderRadius:"6px",letterSpacing:"0.5px",border:"1px solid",borderColor:d.priority==="low"?"#d1fae5":d.priority==="urgent"?"#fee2e2":d.priority==="high"?"#fef3c7":"#e0e7ff"},children:[r.priority,": ",r[d.priority||"medium"]]})}),c.jsx("p",{"data-vg-id":"f01af8f6","data-source-path":"/src/components/ViewGateOverlay.tsx:3308",className:"vg-text-wrap",style:{margin:"0",fontSize:"16px",color:"#1e293b",lineHeight:1.6},children:d.message}),d.figmaReference?.length>0&&c.jsxs("div",{"data-vg-id":"2e783018","data-source-path":"/src/components/ViewGateOverlay.tsx:3313",style:{marginTop:"16px",display:"flex",flexDirection:"column",gap:"8px",padding:"12px",background:"#faf5ff",borderRadius:"12px",border:"1px solid #fae8ff"},children:[c.jsxs("div",{"data-vg-id":"2e783019","data-source-path":"/src/components/ViewGateOverlay.tsx:3314",style:{display:"flex",alignItems:"center",gap:"6px",marginBottom:"4px"},children:[c.jsx(Vt,{"data-vg-id":"ea069992","data-source-path":"/src/components/ViewGateOverlay.tsx:3315",size:14,style:{color:"#d946ef"}}),c.jsx("span",{"data-vg-id":"8161cb0","data-source-path":"/src/components/ViewGateOverlay.tsx:3316",style:{fontSize:"11px",fontWeight:800,color:"#a21caf",textTransform:"uppercase",letterSpacing:"0.05em"},children:e==="es"?"Diseños Figma":"Figma Designs"})]}),d.figmaReference.map((w,U)=>c.jsxs("a",{"data-vg-id":"ef47986c","data-source-path":"/src/components/ViewGateOverlay.tsx:3319",href:w.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:v=>{v.currentTarget.style.transform="translateY(-2px)",v.currentTarget.style.boxShadow="0 4px 12px rgba(217, 70, 239, 0.15)",v.currentTarget.style.borderColor="#d946ef"},onMouseLeave:v=>{v.currentTarget.style.transform="translateY(0)",v.currentTarget.style.boxShadow="0 2px 4px rgba(217, 70, 239, 0.05)",v.currentTarget.style.borderColor="#f5d0fe"},children:[c.jsxs("div",{"data-vg-id":"2e78301d","data-source-path":"/src/components/ViewGateOverlay.tsx:3327",style:{display:"flex",alignItems:"center",gap:"8px"},children:[c.jsx("div",{"data-vg-id":"2e78301e","data-source-path":"/src/components/ViewGateOverlay.tsx:3328",style:{width:"24px",height:"24px",borderRadius:"6px",background:"rgba(217, 70, 239, 0.1)",display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx(Lr,{"data-vg-id":"b806bf61","data-source-path":"/src/components/ViewGateOverlay.tsx:3329",size:12,strokeWidth:3})}),c.jsx("span",{"data-vg-id":"8161cca","data-source-path":"/src/components/ViewGateOverlay.tsx:3331",style:{fontWeight:700},children:w.name||"Figma Reference"})]}),c.jsx(hn,{"data-vg-id":"5c2be086","data-source-path":"/src/components/ViewGateOverlay.tsx:3333",size:14,style:{opacity:.5}})]},U))]}),d.backendEndpoints?.length>0&&c.jsxs("div",{"data-vg-id":"2e783037","data-source-path":"/src/components/ViewGateOverlay.tsx:3340",style:{marginTop:"16px",display:"flex",flexDirection:"column",gap:"8px",padding:"12px",background:"#f5f8ff",borderRadius:"12px",border:"1px solid #e0e7ff"},children:[c.jsxs("div",{"data-vg-id":"2e783038","data-source-path":"/src/components/ViewGateOverlay.tsx:3341",style:{display:"flex",alignItems:"center",gap:"6px",marginBottom:"4px"},children:[c.jsx(Ee,{"data-vg-id":"b1e4c2f5","data-source-path":"/src/components/ViewGateOverlay.tsx:3342",size:14,style:{color:"#4f46e5"}}),c.jsx("span",{"data-vg-id":"8161ccf","data-source-path":"/src/components/ViewGateOverlay.tsx:3343",style:{fontSize:"11px",fontWeight:800,color:"#3730a3",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Backend Endpoints"})]}),c.jsx("div",{"data-vg-id":"2e78303b","data-source-path":"/src/components/ViewGateOverlay.tsx:3345",style:{display:"flex",flexWrap:"wrap",gap:"8px"},children:d.backendEndpoints.map(w=>{const U=w.split("|"),v=U.length>1?U[0]:"";let D=U.length>1?U[1]||"":w||"",T="#4f46e5",H="#e0e7ff";return v==="GET"?(T="#059669",H="#d1fae5"):v==="POST"?(T="#ea580c",H="#ffedd5"):v==="PUT"?(T="#0284c7",H="#e0f2fe"):v==="DELETE"&&(T="#e11d48",H="#ffe4e6"),c.jsxs("div",{"data-vg-id":"2e78303c","data-source-path":"/src/components/ViewGateOverlay.tsx:3360",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:[v&&c.jsx("span",{"data-vg-id":"8161cd2","data-source-path":"/src/components/ViewGateOverlay.tsx:3366",style:{fontWeight:800,color:T,background:H,padding:"2px 6px",borderRadius:"4px",fontSize:"10px"},children:v}),c.jsx("span",{"data-vg-id":"8161ce8","data-source-path":"/src/components/ViewGateOverlay.tsx:3367",style:{fontWeight:600,fontFamily:"monospace",letterSpacing:"-0.02em",color:"#1e293b"},children:D})]},w)})})]})]}),c.jsxs("div",{"data-vg-id":"2e783054","data-source-path":"/src/components/ViewGateOverlay.tsx:3377",style:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"12px",borderTop:"1px solid #f1f5f9",paddingTop:"16px"},children:[c.jsx("div",{"data-vg-id":"2e783055","data-source-path":"/src/components/ViewGateOverlay.tsx:3379",style:{display:"flex",gap:"6px"},children:Cr!=="client"&&c.jsxs(c.Fragment,{children:[c.jsx("button",{className:"vg-button-ghost vg-animate-pop",style:{padding:"8px",minWidth:"36px"},onClick:()=>{const w=d.backendEndpoints||[],U=d.focusAreas&&d.focusAreas.length>0?d.focusAreas:[...w.length>0?["backend"]:[],...d.figmaReference&&d.figmaReference.length>0?["ux"]:[]];Ws(d._id),Jc(d.message),vA(d.priority||"medium"),vo(U),yr(d.figmaReference&&d.figmaReference.length>0?d.figmaReference:[{name:r.figmaPrimaryDesign,link:""}]),Xs(w),MA(w)},title:r.edit,children:c.jsx(Vt,{"data-vg-id":"ea0699ce","data-source-path":"/src/components/ViewGateOverlay.tsx:3403",size:16})}),c.jsx("button",{className:"vg-button-ghost vg-animate-pop",style:{padding:"8px",minWidth:"36px",color:"#ef4444"},onClick:()=>{ue({title:r.deleteConfirm,message:r.confirmDelete,type:"danger",onConfirm:async()=>{try{(await fetch(`${n}/api/annotations/${d._id}`,{method:"DELETE",headers:{"x-api-key":s}})).ok&&(Ps(),A(r.deleteSuccess,"success"))}catch{A(r.error,"error")}finally{ue(null)}}})},title:e==="es"?"Eliminar":"Delete",children:c.jsx(Kr,{"data-vg-id":"45b4423c","data-source-path":"/src/components/ViewGateOverlay.tsx:3433",size:16})})]})}),c.jsxs("div",{"data-vg-id":"2e783058","data-source-path":"/src/components/ViewGateOverlay.tsx:3439",style:{display:"flex",gap:"8px"},children:[Cr!=="client"&&d.status==="ready_for_review"&&c.jsxs("button",{onClick:()=>ww(d),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:nA,children:[nA?c.jsx(Or,{"data-vg-id":"a4b73627","data-source-path":"/src/components/ViewGateOverlay.tsx:3457",size:14,className:"vg-animate-spin"}):c.jsx(Wl,{"data-vg-id":"41e603ea","data-source-path":"/src/components/ViewGateOverlay.tsx:3457",size:14}),e==="es"?"Resolver con Evidencia":"Resolve & Capture"]}),c.jsxs("a",{href:`${(o||"").replace(/\/$/,"")}/${B||d.status==="backlog"?"backlog":"board"}?search=${d.key||(d._id?"VG-"+d._id.slice(-6).toUpperCase():"TICKET")}${Re?`&projectId=${Re}`:""}`,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:[c.jsx(hn,{"data-vg-id":"5c2be0ab","data-source-path":"/src/components/ViewGateOverlay.tsx:3477",size:14}),e==="es"?"Ver en Dashboard":"View in Dashboard"]})]})]})]},d._id))},VA||"all")]})}),EA&&c.jsx("div",{"data-vg-id":"2e78305c","data-source-path":"/src/components/ViewGateOverlay.tsx:3493",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:qe+100},children:c.jsxs("div",{"data-vg-id":"2e783072","data-source-path":"/src/components/ViewGateOverlay.tsx:3498",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:[c.jsx("div",{"data-vg-id":"2e783073","data-source-path":"/src/components/ViewGateOverlay.tsx:3505",style:{width:"64px",height:"64px",background:EA.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:EA.type==="danger"?"#ef4444":"#6366f1",transform:"rotate(-5deg)"},children:EA.type==="danger"?c.jsx(Kr,{"data-vg-id":"45b44259","data-source-path":"/src/components/ViewGateOverlay.tsx:3514",size:32}):c.jsx(_e,{"data-vg-id":"a75c1b1a","data-source-path":"/src/components/ViewGateOverlay.tsx:3514",size:32})}),c.jsx("h3",{"data-vg-id":"53ec58c","data-source-path":"/src/components/ViewGateOverlay.tsx:3516",style:{margin:"0 0 12px 0",fontSize:"20px",fontWeight:800,color:"#000000",letterSpacing:"-0.02em"},children:EA.title}),c.jsx("p",{"data-vg-id":"f01af956","data-source-path":"/src/components/ViewGateOverlay.tsx:3517",style:{margin:"0 0 24px 0",fontSize:"15px",color:"#000000",lineHeight:1.6},children:EA.message}),EA.showInput&&c.jsx("textarea",{className:"vg-textarea",placeholder:r.reopenPlaceholder,value:ke,onChange:d=>Ks(d.target.value),rows:3,autoFocus:!0,style:{marginBottom:"24px",minHeight:"80px",textAlign:"left"}}),c.jsxs("div",{"data-vg-id":"2e783078","data-source-path":"/src/components/ViewGateOverlay.tsx:3531",style:{display:"flex",gap:"16px"},children:[c.jsx("button",{className:"vg-button-ghost",style:{flex:1,height:"44px"},onClick:()=>!ks&&ue(null),disabled:ks,children:r.no}),c.jsx("button",{className:"vg-button-primary",style:{flex:1,height:"44px",backgroundColor:EA.type==="danger"?"#ef4444":void 0,backgroundImage:EA.type==="danger"?"none":void 0,display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",opacity:EA.showInput&&!ke.trim()?.5:1,cursor:EA.showInput&&!ke.trim()?"not-allowed":"pointer"},disabled:ks||EA.showInput&&!ke.trim(),onClick:async()=>{Oc(!0);try{await EA.onConfirm(ke)}catch(d){console.error("Confirmation error:",d)}finally{Oc(!1)}},children:ks?c.jsx(Or,{"data-vg-id":"a4b73647","data-source-path":"/src/components/ViewGateOverlay.tsx:3567",size:18,className:"vg-animate-spin"}):r.yes})]})]})}),!uA&&!b&&cA&&It.map((d,f)=>{const{rect:w,annotations:U,isModal:v}=d,D=U[0],T=U.length,H=U.some(S=>S.status==="ready_for_review"),oA=U.some(S=>S.status==="completed"||S.status==="done"),_=U.some(S=>S.status!=="ready_for_review"&&S.status!=="completed"&&S.status!=="done"),bA=oA&&!H&&!_,aA=H&&!_&&!oA,iA=(H||oA)&&!_,fA=(H||oA)&&_,wA=U.filter(S=>S.status!=="ready_for_review"&&S.status!=="completed"&&S.status!=="done").length,kA=U.filter(S=>S.status==="ready_for_review").length,ZA=U.filter(S=>S.status==="completed"||S.status==="done").length,$A=U.some(S=>S.status==="bug_fixing"||S.type==="bug"||S.originalStatus==="bug_fixing"),Js=$A&&!aA&&!bA?"#f43f5e":wA>0?B?"#64748b":"#ea580c":kA>0?"#a855f7":"#10b981",Ot=It.some(S=>S.element===d.element&&S.isTriggerPin),Ve=It.some(S=>S.element===d.element&&!S.isTriggerPin),Kt=Ot&&Ve?d.isTriggerPin?-18:18:0,br=w.top===0&&w.left===0&&w.width>window.innerWidth*.9;return c.jsxs("div",{className:"vg-pin-container vg-animate-pop",style:{position:"fixed",top:Math.max(20,Math.min(window.innerHeight-52,w.top-20)),left:br?Math.max(20,w.left+40+Kt):Math.max(20,Math.min(window.innerWidth-52,w.left+w.width/2-16+Kt)),width:"32px",height:"32px",cursor:"pointer",transition:"all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275)",zIndex:Aw},onMouseEnter:S=>{const ot=S.currentTarget.getBoundingClientRect(),qc=window.innerHeight-ot.bottom,mw=ot.top;qc<250&&mw>qc?Rs(Oo=>({...Oo,[d.id]:"vg-top"})):Rs(Oo=>({...Oo,[d.id]:""}))},onWheel:S=>{const ot=S.currentTarget.querySelector(".vg-tooltip-scroll");ot&&ot.scrollBy({top:S.deltaY,behavior:"smooth"})},onClick:()=>{xA(!0),Co(D._id)},children:[c.jsxs("div",{"data-vg-id":"2e78307a","data-source-path":"/src/components/ViewGateOverlay.tsx:3642",className:`vg-pin-tooltip ${mr[d.id]||""} ${br||w.left<160?"vg-tooltip-right":w.left>window.innerWidth-160?"vg-tooltip-left":""}`,style:{padding:"16px"},children:[c.jsxs("div",{"data-vg-id":"2e78307b","data-source-path":"/src/components/ViewGateOverlay.tsx:3643",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"12px"},children:[c.jsxs("div",{"data-vg-id":"2e783091","data-source-path":"/src/components/ViewGateOverlay.tsx:3644",style:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap"},children:[d.isTriggerPin?c.jsx(Tr,{"data-vg-id":"d88161f7","data-source-path":"/src/components/ViewGateOverlay.tsx:3646",size:14,color:Js}):c.jsx(Dr,{"data-vg-id":"7fe17e6","data-source-path":"/src/components/ViewGateOverlay.tsx:3648",size:14,color:Js}),c.jsxs("div",{"data-vg-id":"2e783094","data-source-path":"/src/components/ViewGateOverlay.tsx:3650",style:{display:"flex",gap:"4px"},children:[wA>0&&c.jsxs("span",{"data-vg-id":"8161d2a","data-source-path":"/src/components/ViewGateOverlay.tsx:3652",className:"vg-badge",style:{fontSize:"10px",background:B?"#f1f5f9":"#fff7ed",color:B?"#64748b":"#c2410c"},children:[wA," ",B||D.status==="backlog"?"Backlog":e==="es"?wA===1?r.pending:"Pendientes":"pending"]}),kA>0&&c.jsxs("span",{"data-vg-id":"8161d2b","data-source-path":"/src/components/ViewGateOverlay.tsx:3661",style:{fontSize:"10px",fontWeight:700,color:"#a855f7",background:"#f3e8ff",padding:"2px 6px",borderRadius:"6px"},children:[kA," ",e==="es"?kA===1?"Listo para revisión":"Listos para revisión":"ready for review"]}),ZA>0&&c.jsxs("span",{"data-vg-id":"8161d2c","data-source-path":"/src/components/ViewGateOverlay.tsx:3673",style:{fontSize:"10px",fontWeight:700,color:"#059669",background:"#ecfdf5",padding:"2px 6px",borderRadius:"6px"},children:[ZA," ",e==="es"?ZA===1?"Completado":"Completados":"completed"]}),U.some(S=>S.status==="bug_fixing")&&c.jsx("span",{"data-vg-id":"8161d2d","data-source-path":"/src/components/ViewGateOverlay.tsx:3685",style:{fontSize:"10px",fontWeight:700,color:"#e11d48",background:"#fff1f2",padding:"2px 6px",borderRadius:"6px"},children:"BUG"})]})]}),v&&c.jsx("span",{"data-vg-id":"8161d2e","data-source-path":"/src/components/ViewGateOverlay.tsx:3699",className:"vg-badge",style:{fontSize:"10px",background:B?"#f1f5f9":fA?`linear-gradient(90deg, #ea580c 50%, ${oA?"#10b981":"#a855f7"} 50%)`:wA>0?"#fff7ed":bA?"#ecfdf5":"#f3e8ff",color:B?"#64748b":fA?"#ffffff":wA>0?"#c2410c":bA?"#059669":"#a855f7",border:"none",fontWeight:800,textShadow:fA&&!B?"0 1px 2px rgba(0,0,0,0.2)":"none"},children:"MODAL"})]}),c.jsx("div",{"data-vg-id":"2e78309a","data-source-path":"/src/components/ViewGateOverlay.tsx:3711",className:"vg-tooltip-scroll",style:{maxHeight:"180px",overflowY:"auto"},children:U.map((S,ot)=>c.jsxs("div",{"data-vg-id":"2e78333b","data-source-path":"/src/components/ViewGateOverlay.tsx:3713",style:{padding:"10px 0",borderTop:ot===0?"none":"1px solid #f1f5f9",display:"flex",gap:"12px",alignItems:"flex-start"},children:[c.jsxs("div",{"data-vg-id":"2e78333c","data-source-path":"/src/components/ViewGateOverlay.tsx:3720",style:{flex:1,display:"flex",flexDirection:"column",gap:"4px"},children:[c.jsxs("div",{"data-vg-id":"2e78333d","data-source-path":"/src/components/ViewGateOverlay.tsx:3721",style:{display:"flex",alignItems:"center",gap:"6px"},children:[c.jsx("span",{"data-vg-id":"8161fd3","data-source-path":"/src/components/ViewGateOverlay.tsx:3722",style:{fontSize:"10px",fontWeight:600,color:"#64748b"},children:yc(S.timestamp||S.createdAt,e)}),S.creator&&c.jsx("div",{"data-vg-id":"2e78333f","data-source-path":"/src/components/ViewGateOverlay.tsx:3726",style:{marginLeft:"4px"},children:S.creator.avatar?c.jsx("img",{"data-vg-id":"3cf75d72","data-source-path":"/src/components/ViewGateOverlay.tsx:3728",src:S.creator.avatar,style:{width:"14px",height:"14px",borderRadius:"50%"},alt:""}):c.jsx("div",{"data-vg-id":"2e783341","data-source-path":"/src/components/ViewGateOverlay.tsx:3730",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&&c.jsx(bc,{url:S.url,onHover:_c,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"}}),c.jsx("div",{"data-vg-id":"2e783342","data-source-path":"/src/components/ViewGateOverlay.tsx:3756",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})]}),c.jsxs("div",{"data-vg-id":"2e783343","data-source-path":"/src/components/ViewGateOverlay.tsx:3760",style:{flexShrink:0,marginTop:"2px",display:"flex",flexDirection:"column",gap:"4px",alignItems:"flex-end"},children:[c.jsx("div",{"data-vg-id":"2e783344","data-source-path":"/src/components/ViewGateOverlay.tsx:3761",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"?c.jsxs("span",{"data-vg-id":"8161fef","data-source-path":"/src/components/ViewGateOverlay.tsx:3775",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:[c.jsx(_e,{"data-vg-id":"a75c1e00","data-source-path":"/src/components/ViewGateOverlay.tsx:3788",size:10}),r.completed]}):S.status==="ready_for_review"?c.jsxs("span",{"data-vg-id":"8161ff1","data-source-path":"/src/components/ViewGateOverlay.tsx:3792",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"?c.jsx(Gt,{"data-vg-id":"3b8b1ba0","data-source-path":"/src/components/ViewGateOverlay.tsx:3805",size:10}):c.jsx(_e,{"data-vg-id":"a75c1e03","data-source-path":"/src/components/ViewGateOverlay.tsx:3805",size:10}),r.readyForReview]}):S.status==="bug_fixing"?c.jsxs("span",{"data-vg-id":"8161ff4","data-source-path":"/src/components/ViewGateOverlay.tsx:3809",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:[c.jsx(Gt,{"data-vg-id":"3b8b1ba3","data-source-path":"/src/components/ViewGateOverlay.tsx:3822",size:10}),"Bug Fixing"]}):c.jsxs("span",{"data-vg-id":"8161ff6","data-source-path":"/src/components/ViewGateOverlay.tsx:3826",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:[c.jsx(ca,{"data-vg-id":"62dc6fbf","data-source-path":"/src/components/ViewGateOverlay.tsx:3839",size:10}),B||S.status==="backlog"?r.backlog:r.pending]})]})]},S._id))})]}),c.jsxs("div",{"data-vg-id":"2e783363","data-source-path":"/src/components/ViewGateOverlay.tsx:3849",className:`vg-formal-pin ${bA?"completed":aA||iA?"ready":$A?"bug":fA?"mixed":B?"backlog":""} ${d.isTriggerPin?"modal-variant":""}`,style:{position:"relative",background:$A&&!aA&&!bA?"linear-gradient(135deg, #f43f5e 0%, #e11d48 100%)":aA?"linear-gradient(135deg, #a855f7 0%, #7e22ce 100%)":fA?oA?"linear-gradient(135deg, #10b981 0%, #059669 100%)":"linear-gradient(135deg, #a855f7 0%, #7e22ce 100%)":void 0},children:[aA||bA||iA?$A&&!bA?c.jsx(Gt,{"data-vg-id":"3b8b1bbc","data-source-path":"/src/components/ViewGateOverlay.tsx:3856",size:18}):c.jsx(_e,{"data-vg-id":"a75c1e1f","data-source-path":"/src/components/ViewGateOverlay.tsx:3856",size:18}):$A?c.jsx(Gt,{"data-vg-id":"3b8b1bbe","data-source-path":"/src/components/ViewGateOverlay.tsx:3856",size:18}):d.isTriggerPin?c.jsx(Tr,{"data-vg-id":"d88164e1","data-source-path":"/src/components/ViewGateOverlay.tsx:3856",size:16}):v?c.jsx(hn,{"data-vg-id":"5c2be3cd","data-source-path":"/src/components/ViewGateOverlay.tsx:3856",size:16}):c.jsx(Dr,{"data-vg-id":"7fe1ad1","data-source-path":"/src/components/ViewGateOverlay.tsx:3856",size:16}),T>1&&c.jsx("div",{"data-vg-id":"2e78337f","data-source-path":"/src/components/ViewGateOverlay.tsx:3859",className:"vg-pin-badge vg-animate-pop",children:T})]})]},`group-${d.id}`)}),c.jsx("div",{className:`vg-url-tooltip ${st?"visible":""} ${st?.direction==="bottom"?"vg-bottom":"vg-top"}`,style:{transform:st?`translate(-50%, ${st.direction==="top"?"-110%":"10%"})`:"translate(-50%, 0)",left:st?.x||0,top:st?.y||0},children:st?.url}),bt&&c.jsx("div",{"data-vg-id":"2e783380","data-source-path":"/src/components/ViewGateOverlay.tsx:3884",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:qe+100,animation:"vg-fade-in 0.3s ease-out"},onClick:d=>{d.target===d.currentTarget&&Et(!1)},children:c.jsxs("div",{"data-vg-id":"2e783381","data-source-path":"/src/components/ViewGateOverlay.tsx:3893",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:[c.jsxs("div",{"data-vg-id":"2e783382","data-source-path":"/src/components/ViewGateOverlay.tsx:3906",style:{padding:"32px 40px",borderBottom:"1px solid rgba(0,0,0,0.06)",display:"flex",alignItems:"center",justifyContent:"space-between",background:"white"},children:[c.jsxs("div",{"data-vg-id":"2e783398","data-source-path":"/src/components/ViewGateOverlay.tsx:3907",children:[c.jsx("h3",{"data-vg-id":"53ec8af","data-source-path":"/src/components/ViewGateOverlay.tsx:3908",style:{margin:0,fontSize:"24px",fontWeight:900,letterSpacing:"-0.03em",color:"#0f172a"},children:e==="es"?"Selector de Endpoints":"Endpoint Selector"}),c.jsx("p",{"data-vg-id":"f01afc79","data-source-path":"/src/components/ViewGateOverlay.tsx:3911",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"})]}),c.jsx("button",{"data-vg-id":"5861c098","data-source-path":"/src/components/ViewGateOverlay.tsx:3915",onClick:()=>Et(!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:d=>{d.currentTarget.style.background="#e2e8f0",d.currentTarget.style.color="#0f172a"},onMouseLeave:d=>{d.currentTarget.style.background="#f1f5f9",d.currentTarget.style.color="#64748b"},children:c.jsx(Nt,{"data-vg-id":"eec8c863","data-source-path":"/src/components/ViewGateOverlay.tsx:3922",size:20,strokeWidth:2.5})})]}),c.jsx("div",{"data-vg-id":"2e78339d","data-source-path":"/src/components/ViewGateOverlay.tsx:3926",style:{padding:"24px 40px",borderBottom:"1px solid rgba(0,0,0,0.06)",background:"#fcfcfc"},children:c.jsxs("div",{"data-vg-id":"2e78339e","data-source-path":"/src/components/ViewGateOverlay.tsx:3927",style:{position:"relative"},children:[c.jsx(ql,{"data-vg-id":"8f7bb032","data-source-path":"/src/components/ViewGateOverlay.tsx:3928",size:20,style:{position:"absolute",left:"16px",top:"50%",transform:"translateY(-50%)",color:"#94a3b8"}}),c.jsx("input",{"data-vg-id":"88e38dd9","data-source-path":"/src/components/ViewGateOverlay.tsx:3929",type:"text",placeholder:e==="es"?"Buscar rutas, métodos o descripciones...":"Search routes, methods, or descriptions...",value:wr,onChange:d=>et(d.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})]})}),c.jsx("div",{"data-vg-id":"2e7833a1","data-source-path":"/src/components/ViewGateOverlay.tsx:3949",style:{flex:1,overflowY:"auto",overflowX:"hidden",padding:"24px 40px"},className:"vg-custom-scrollbar",children:Qr?Xc.length>0?c.jsx("div",{"data-vg-id":"2e7833ba","data-source-path":"/src/components/ViewGateOverlay.tsx:3956",style:{display:"flex",flexDirection:"column",gap:"0px"},children:Xc.map(d=>{const f=d.name===(e==="es"?"Seleccionados":"Selected");return c.jsxs("div",{"data-vg-id":"2e7833bb","data-source-path":"/src/components/ViewGateOverlay.tsx:3960",style:{marginBottom:"32px"},children:[c.jsxs("div",{"data-vg-id":"2e7833bc","data-source-path":"/src/components/ViewGateOverlay.tsx:3961",style:{display:"flex",alignItems:"center",gap:"12px",marginBottom:"16px",padding:"0 4px"},children:[c.jsx("span",{"data-vg-id":"8162052","data-source-path":"/src/components/ViewGateOverlay.tsx:3962",style:{fontSize:"11px",fontWeight:900,textTransform:"uppercase",letterSpacing:"0.1em",color:f?"#10b981":"#6366f1",backgroundColor:f?"rgba(10, 185, 129, 0.08)":"rgba(99, 102, 241, 0.08)",padding:"4px 10px",borderRadius:"6px",border:"1px solid",borderColor:f?"rgba(10, 185, 129, 0.1)":"rgba(99, 102, 241, 0.1)"},children:d.name}),c.jsx("div",{"data-vg-id":"2e7833be","data-source-path":"/src/components/ViewGateOverlay.tsx:3976",style:{flex:1,height:"1px",background:`linear-gradient(90deg, ${f?"rgba(16, 185, 129, 0.15)":"rgba(99, 102, 241, 0.15)"} 0%, transparent 100%)`}})]}),c.jsx("div",{"data-vg-id":"2e7833bf","data-source-path":"/src/components/ViewGateOverlay.tsx:3983",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(340px, 1fr))",gap:"12px"},children:d.endpoints.map(w=>{const U=`${w.method}|${w.path}`,v=J.includes(U);return c.jsxs("div",{"data-vg-id":"2e7833c0","data-source-path":"/src/components/ViewGateOverlay.tsx:3992",onClick:()=>{MA(v?J.filter(D=>D!==U):[...J,U])},style:{padding:"16px 20px",borderRadius:"18px",cursor:"pointer",transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)",background:v?"#f5f7ff":"#ffffff",border:"1px solid",borderColor:v?"rgba(99, 102, 241, 0.2)":"#f1f5f9",display:"flex",alignItems:"center",gap:"16px",boxShadow:v?"0 4px 12px rgba(99, 102, 241, 0.08)":"none"},onMouseEnter:D=>{v||(D.currentTarget.style.background="#f8fafc",D.currentTarget.style.borderColor="#e2e8f0")},onMouseLeave:D=>{v||(D.currentTarget.style.background="#ffffff",D.currentTarget.style.borderColor="#f1f5f9")},children:[c.jsx("div",{"data-vg-id":"2e7833d6","data-source-path":"/src/components/ViewGateOverlay.tsx:4024",style:{width:"24px",height:"24px",borderRadius:"8px",border:"2px solid",borderColor:v?"#6366f1":"#cbd5e1",backgroundColor:v?"#6366f1":"white",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s",flexShrink:0},children:v&&c.jsx("div",{"data-vg-id":"2e7833d7","data-source-path":"/src/components/ViewGateOverlay.tsx:4037",style:{color:"white",fontSize:"14px",fontWeight:900},children:"✓"})}),c.jsxs("div",{"data-vg-id":"2e7833d8","data-source-path":"/src/components/ViewGateOverlay.tsx:4039",style:{flex:1,minWidth:0},children:[c.jsxs("div",{"data-vg-id":"2e7833d9","data-source-path":"/src/components/ViewGateOverlay.tsx:4040",style:{display:"flex",alignItems:"center",gap:"10px"},children:[c.jsx("span",{"data-vg-id":"816206f","data-source-path":"/src/components/ViewGateOverlay.tsx:4041",style:{fontSize:"11px",fontWeight:800,padding:"3px 8px",borderRadius:"8px",background:w.method==="GET"?"#dcfce7":"#fee2e2",color:w.method==="GET"?"#166534":"#991b1b",flexShrink:0},children:w.method}),c.jsx("span",{"data-vg-id":"8162070","data-source-path":"/src/components/ViewGateOverlay.tsx:4052",style:{fontWeight:700,color:v?"#4338ca":"#1e293b",fontSize:"14px",wordBreak:"break-all"},children:w.path}),w.contract&&c.jsx("div",{"data-vg-id":"2e7833dc","data-source-path":"/src/components/ViewGateOverlay.tsx:4061",style:{fontSize:"9px",fontWeight:900,color:"#6366f1",background:"rgba(99, 102, 241, 0.1)",padding:"1px 5px",borderRadius:"4px",textTransform:"uppercase"},children:"JSON"})]}),w.description&&c.jsx("div",{"data-vg-id":"2e7833dd","data-source-path":"/src/components/ViewGateOverlay.tsx:4073",style:{fontSize:"12px",color:"#64748b",marginTop:"6px",wordBreak:"break-word",fontWeight:450,lineHeight:1.4},children:w.description})]})]},U)})})]},d.name)})}):c.jsxs("div",{"data-vg-id":"2e7833de","data-source-path":"/src/components/ViewGateOverlay.tsx:4094",style:{padding:"80px 20px",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center"},children:[c.jsx("div",{"data-vg-id":"2e7833df","data-source-path":"/src/components/ViewGateOverlay.tsx:4095",style:{width:"80px",height:"80px",borderRadius:"24px",backgroundColor:"#f1f5f9",display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"24px"},children:c.jsx(Ee,{"data-vg-id":"b1e4c6b1","data-source-path":"/src/components/ViewGateOverlay.tsx:4096",size:40,style:{color:"#94a3b8"}})}),c.jsx("p",{"data-vg-id":"f01afcd5","data-source-path":"/src/components/ViewGateOverlay.tsx:4098",style:{color:"#0f172a",fontSize:"18px",fontWeight:800,margin:"0 0 8px 0"},children:e==="es"?"No encontramos lo que buscas":"No results found"}),c.jsx("p",{"data-vg-id":"f01afcd6","data-source-path":"/src/components/ViewGateOverlay.tsx:4101",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"})]}):c.jsxs("div",{"data-vg-id":"2e7833b7","data-source-path":"/src/components/ViewGateOverlay.tsx:3951",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"100px 0",gap:"20px"},children:[c.jsx("div",{"data-vg-id":"2e7833b8","data-source-path":"/src/components/ViewGateOverlay.tsx:3952",className:"vg-spinner",style:{width:"40px",height:"40px",border:"3px solid rgba(99, 102, 241, 0.1)",borderTopColor:"#6366f1"}}),c.jsx("p",{"data-vg-id":"f01afc98","data-source-path":"/src/components/ViewGateOverlay.tsx:3953",style:{color:"#64748b",fontSize:"15px",fontWeight:600},children:e==="es"?"Cargando endpoints...":"Loading endpoints..."})]})}),c.jsxs("div",{"data-vg-id":"2e7833f8","data-source-path":"/src/components/ViewGateOverlay.tsx:4108",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:[c.jsxs("div",{"data-vg-id":"2e7833f9","data-source-path":"/src/components/ViewGateOverlay.tsx:4109",style:{display:"flex",alignItems:"center",gap:"12px"},children:[c.jsxs("div",{"data-vg-id":"2e7833fa","data-source-path":"/src/components/ViewGateOverlay.tsx:4110",style:{padding:"6px 12px",background:"#f1f5f9",borderRadius:"10px",fontSize:"14px",fontWeight:700,color:"#475569"},children:[J.length," ",e==="es"?"seleccionados":"selected"]}),J.length>0&&c.jsx("button",{"data-vg-id":"5861c0f8","data-source-path":"/src/components/ViewGateOverlay.tsx:4114",onClick:()=>{MA([]),St&&Xs([])},style:{background:"none",border:"none",color:"#6366f1",fontSize:"14px",fontWeight:700,cursor:"pointer",padding:"4px 8px"},children:e==="es"?"Desmarcar todos":"Deselect all"})]}),c.jsx("div",{"data-vg-id":"2e7833fc","data-source-path":"/src/components/ViewGateOverlay.tsx:4125",style:{display:"flex",gap:"12px"},children:c.jsx("button",{"data-vg-id":"5861c0fa","data-source-path":"/src/components/ViewGateOverlay.tsx:4126",onClick:()=>{St&&Xs(J),Et(!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:d=>{d.currentTarget.style.transform="translateY(-2px)",d.currentTarget.style.boxShadow="0 15px 30px -5px rgba(99, 102, 241, 0.6)"},onMouseLeave:d=>{d.currentTarget.style.transform="translateY(0)",d.currentTarget.style.boxShadow="0 10px 25px -5px rgba(99, 102, 241, 0.45)"},children:e==="es"?"Confirmar Selección":"Confirm Selection"})})]})]})}),vt?.contract&&c.jsx("div",{"data-vg-id":"2e7833fe","data-source-path":"/src/components/ViewGateOverlay.tsx:4160",className:"vg-animate-fade",style:{position:"fixed",left:Math.min(vt.x,window.innerWidth-420),top:Math.min(vt.y,window.innerHeight-300),width:"400px",zIndex:qe+500,pointerEvents:"none"},children:c.jsxs("div",{"data-vg-id":"2e783414","data-source-path":"/src/components/ViewGateOverlay.tsx:4168",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:[c.jsxs("div",{"data-vg-id":"2e783415","data-source-path":"/src/components/ViewGateOverlay.tsx:4179",style:{display:"flex",alignItems:"center",gap:"8px"},children:[c.jsx("div",{"data-vg-id":"2e783416","data-source-path":"/src/components/ViewGateOverlay.tsx:4180",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"}),c.jsxs("span",{"data-vg-id":"81620ac","data-source-path":"/src/components/ViewGateOverlay.tsx:4189",style:{color:"rgba(255, 255, 255, 0.5)",fontSize:"12px",fontWeight:600},children:[vt.method," ",vt.path]})]}),c.jsx("div",{"data-vg-id":"2e783418","data-source-path":"/src/components/ViewGateOverlay.tsx:4191",className:"vg-custom-scrollbar",style:{maxHeight:"250px",overflowY:"auto",background:"rgba(0,0,0,0.3)",borderRadius:"12px",padding:"12px"},children:c.jsx("pre",{"data-vg-id":"b7af092b","data-source-path":"/src/components/ViewGateOverlay.tsx:4198",style:{margin:0,fontSize:"11px",color:"#94a3b8",whiteSpace:"pre-wrap",wordBreak:"break-all",lineHeight:1.5,fontFamily:"JetBrains Mono, Fira Code, monospace"},children:vt.contract})})]})}),St&&c.jsx("div",{"data-vg-id":"2e78341a","data-source-path":"/src/components/ViewGateOverlay.tsx:4217",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:qe+50},children:c.jsxs("div",{"data-vg-id":"2e78341b","data-source-path":"/src/components/ViewGateOverlay.tsx:4223",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:[c.jsxs("div",{"data-vg-id":"2e78341c","data-source-path":"/src/components/ViewGateOverlay.tsx:4234",style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[c.jsx("h2",{"data-vg-id":"530b1b2","data-source-path":"/src/components/ViewGateOverlay.tsx:4235",style:{margin:0,fontSize:"20px",fontWeight:800,color:"#1e293b"},children:e==="es"?"Editar Comentario":"Edit Comment"}),c.jsx("button",{"data-vg-id":"5861c130","data-source-path":"/src/components/ViewGateOverlay.tsx:4238",onClick:()=>Ws(null),style:{background:"none",border:"none",cursor:"pointer",color:"#94a3b8"},children:c.jsx(Nt,{"data-vg-id":"eec8c8fb","data-source-path":"/src/components/ViewGateOverlay.tsx:4239",size:24})})]}),c.jsxs("div",{"data-vg-id":"2e783435","data-source-path":"/src/components/ViewGateOverlay.tsx:4243",style:{display:"flex",flexDirection:"column",gap:"16px"},children:[c.jsxs("div",{"data-vg-id":"2e783436","data-source-path":"/src/components/ViewGateOverlay.tsx:4244",children:[c.jsx("label",{"data-vg-id":"feec109a","data-source-path":"/src/components/ViewGateOverlay.tsx:4245",style:{display:"block",fontSize:"12px",fontWeight:700,color:"#64748b",marginBottom:"8px",textTransform:"uppercase",letterSpacing:"0.5px"},children:r.priority}),c.jsx("div",{"data-vg-id":"2e783438","data-source-path":"/src/components/ViewGateOverlay.tsx:4246",style:{display:"flex",gap:"8px"},children:["low","medium","high","urgent"].map(d=>c.jsx("button",{onClick:()=>vA(d),style:{flex:1,padding:"10px 12px",borderRadius:"12px",fontSize:"13px",fontWeight:800,border:"2px solid",borderColor:O===d?d==="low"?"#10b981":d==="medium"?"#6366f1":d==="high"?"#f59e0b":"#ef4444":"#f1f5f9",backgroundColor:O===d?d==="low"?"#ecfdf5":d==="medium"?"#eef2ff":d==="high"?"#fffbeb":"#fef2f2":"white",color:O===d?d==="low"?"#059669":d==="medium"?"#4338ca":d==="high"?"#b45309":"#b91c1c":"#64748b",cursor:"pointer",transition:"all 0.2s",textTransform:"capitalize"},children:r[d]},d))})]}),c.jsxs("div",{"data-vg-id":"2e783439","data-source-path":"/src/components/ViewGateOverlay.tsx:4266",style:{marginBottom:"8px"},children:[c.jsx("label",{"data-vg-id":"feec109d","data-source-path":"/src/components/ViewGateOverlay.tsx:4267",style:{display:"block",fontSize:"12px",fontWeight:700,color:"#64748b",marginBottom:"8px",textTransform:"uppercase",letterSpacing:"0.5px"},children:r.focusAreas}),c.jsx("div",{"data-vg-id":"2e78343b","data-source-path":"/src/components/ViewGateOverlay.tsx:4268",style:{display:"flex",gap:"8px"},children:[{id:"frontend",label:r.frontend,icon:c.jsx(Lr,{"data-vg-id":"b806c369","data-source-path":"/src/components/ViewGateOverlay.tsx:4270",size:14}),color:"#10b981",bg:"#ecfdf5",border:"#d1fae5"},{id:"backend",label:r.backend,icon:c.jsx(Ee,{"data-vg-id":"b1e4c70e","data-source-path":"/src/components/ViewGateOverlay.tsx:4271",size:14}),color:"#6366f1",bg:"#eef2ff",border:"#e0e7ff"},{id:"ux",label:r.ux,icon:c.jsx(Vt,{"data-vg-id":"ea069dcb","data-source-path":"/src/components/ViewGateOverlay.tsx:4272",size:14}),color:"#d946ef",bg:"#fdf4ff",border:"#f5d0fe"}].filter(d=>d.id==="backend"?Gs:d.id==="ux"?At:!0).map(d=>{const f=Lt.includes(d.id);return c.jsxs("button",{onClick:()=>{vo(f?Lt.filter(w=>w!==d.id):[...Lt,d.id])},style:{flex:1,padding:"10px 4px",borderRadius:"12px",fontSize:"12px",fontWeight:700,border:"2px solid",borderColor:f?d.color:"#f1f5f9",backgroundColor:f?d.bg:"white",color:f?d.color:"#64748b",cursor:"pointer",transition:"all 0.2s",display:"flex",alignItems:"center",justifyContent:"center",gap:"6px"},children:[d.icon,d.label]},d.id)})})]}),Lt.includes("ux")&&c.jsxs("div",{"data-vg-id":"2e783454","data-source-path":"/src/components/ViewGateOverlay.tsx:4308",className:"vg-animate-slide",style:{padding:"16px",borderRadius:"16px",background:"#f8fafc",border:"1px solid #e2e8f0"},children:[c.jsxs("div",{"data-vg-id":"2e783455","data-source-path":"/src/components/ViewGateOverlay.tsx:4309",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"12px"},children:[c.jsxs("div",{"data-vg-id":"2e783456","data-source-path":"/src/components/ViewGateOverlay.tsx:4310",style:{display:"flex",alignItems:"center",gap:"6px"},children:[c.jsx(Tr,{"data-vg-id":"d88165bc","data-source-path":"/src/components/ViewGateOverlay.tsx:4311",size:14,style:{color:"#d946ef"}}),c.jsx("span",{"data-vg-id":"81620ed","data-source-path":"/src/components/ViewGateOverlay.tsx:4312",style:{fontSize:"11px",fontWeight:800,color:"#64748b",textTransform:"uppercase"},children:r.figmaLink})]}),c.jsxs("button",{"data-vg-id":"5861c156","data-source-path":"/src/components/ViewGateOverlay.tsx:4314",onClick:()=>yr([...nt,{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]})]}),c.jsx("div",{"data-vg-id":"2e78345a","data-source-path":"/src/components/ViewGateOverlay.tsx:4321",style:{display:"flex",flexDirection:"column",gap:"8px"},children:nt.map((d,f)=>c.jsxs("div",{"data-vg-id":"2e78345b","data-source-path":"/src/components/ViewGateOverlay.tsx:4323",style:{display:"flex",gap:"8px"},children:[c.jsx("input",{"data-vg-id":"88e39135","data-source-path":"/src/components/ViewGateOverlay.tsx:4324",type:"text",className:"vg-textarea",style:{padding:"8px 12px",fontSize:"12px",minHeight:"auto",borderRadius:"10px"},placeholder:r.figmaNamePlaceholder,value:d.name,onChange:w=>{const U=[...nt];U[f]&&(U[f].name=w.target.value,yr(U))}}),c.jsx("input",{"data-vg-id":"88e39136","data-source-path":"/src/components/ViewGateOverlay.tsx:4335",type:"text",className:"vg-textarea",style:{padding:"8px 12px",fontSize:"12px",minHeight:"auto",borderRadius:"10px"},placeholder:r.figmaLinkPlaceholder,value:d.link,onChange:w=>{const U=[...nt];U[f]&&(U[f].link=w.target.value,yr(U))}}),nt.length>1&&c.jsx("button",{"data-vg-id":"5861c3fb","data-source-path":"/src/components/ViewGateOverlay.tsx:4347",onClick:()=>yr(nt.filter((w,U)=>U!==f)),style:{color:"#ef4444",background:"none",border:"none",cursor:"pointer"},children:c.jsx(Kr,{"data-vg-id":"45b448e4","data-source-path":"/src/components/ViewGateOverlay.tsx:4348",size:16})})]},f))})]}),Gs&&Lt.includes("backend")&&c.jsxs("div",{"data-vg-id":"2e783700","data-source-path":"/src/components/ViewGateOverlay.tsx:4359",className:"vg-animate-slide",style:{padding:"16px",borderRadius:"16px",background:"#f8fafc",border:"1px solid #e2e8f0"},children:[c.jsxs("div",{"data-vg-id":"2e783701","data-source-path":"/src/components/ViewGateOverlay.tsx:4360",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px"},children:[c.jsxs("div",{"data-vg-id":"2e783702","data-source-path":"/src/components/ViewGateOverlay.tsx:4361",style:{display:"flex",alignItems:"center",gap:"6px"},children:[c.jsx(Ee,{"data-vg-id":"b1e4c9bf","data-source-path":"/src/components/ViewGateOverlay.tsx:4362",size:14,style:{color:"#6366f1"}}),c.jsx("span",{"data-vg-id":"8162399","data-source-path":"/src/components/ViewGateOverlay.tsx:4363",style:{fontSize:"11px",fontWeight:800,color:"#64748b",textTransform:"uppercase"},children:r.endpoint})]}),Ge.length>0&&c.jsxs("span",{"data-vg-id":"816239a","data-source-path":"/src/components/ViewGateOverlay.tsx:4366",style:{fontSize:"10px",background:"#eef2ff",color:"#6366f1",padding:"2px 8px",borderRadius:"12px",fontWeight:700},children:[Ge.length," ",e==="es"?"seleccionados":"selected"]})]}),c.jsxs("button",{"data-vg-id":"5861c418","data-source-path":"/src/components/ViewGateOverlay.tsx:4371",onClick:()=>Et(!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:Ge.length>0?"#0f172a":"#94a3b8"},children:[c.jsx("div",{"data-vg-id":"2e78371c","data-source-path":"/src/components/ViewGateOverlay.tsx:4375",style:{display:"flex",gap:"4px",overflow:"hidden"},children:Ge.length>0?Ge.slice(0,2).map(d=>c.jsx("span",{"data-vg-id":"81623b2","data-source-path":"/src/components/ViewGateOverlay.tsx:4377",style:{background:"#eef2ff",color:"#6366f1",padding:"1px 6px",borderRadius:"4px",fontSize:"11px",fontWeight:600},children:d.split("|").pop()},d)).concat(Ge.length>2?[c.jsxs("span",{"data-vg-id":"81623b3","data-source-path":"/src/components/ViewGateOverlay.tsx:4377",children:["+",Ge.length-2]},"plus")]:[]):r.selectEndpoint}),c.jsx(ia,{"data-vg-id":"1cd393eb","data-source-path":"/src/components/ViewGateOverlay.tsx:4380",size:14,style:{color:"#64748b"}})]})]}),c.jsxs("div",{"data-vg-id":"2e783720","data-source-path":"/src/components/ViewGateOverlay.tsx:4385",children:[c.jsx("label",{"data-vg-id":"feec1384","data-source-path":"/src/components/ViewGateOverlay.tsx:4386",style:{display:"block",fontSize:"12px",fontWeight:700,color:"#64748b",marginBottom:"8px",textTransform:"uppercase",letterSpacing:"0.5px"},children:e==="es"?"Mensaje":"Message"}),c.jsx("textarea",{className:"vg-textarea",value:Yc,onChange:d=>Jc(d.target.value),rows:5,style:{minHeight:"120px",fontSize:"15px"}})]})]}),c.jsxs("div",{"data-vg-id":"2e783722","data-source-path":"/src/components/ViewGateOverlay.tsx:4397",style:{display:"flex",justifyContent:"flex-end",gap:"12px",marginTop:"16px",paddingTop:"24px",borderTop:"1px solid #f1f5f9"},children:[c.jsx("button",{"data-vg-id":"5861c420","data-source-path":"/src/components/ViewGateOverlay.tsx:4398",className:"vg-button-ghost",style:{padding:"12px 24px",fontSize:"14px",borderRadius:"12px",color:"#64748b",fontWeight:700},onClick:()=>{Ws(null),MA([])},children:r.cancel}),c.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:zs?.7:1,cursor:zs?"not-allowed":"pointer"},disabled:zs,onClick:async()=>{Zc(!0);try{(await fetch(`${n}/api/annotations/${St}`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:cA?`Bearer ${cA}`:"","x-api-key":s||""},body:JSON.stringify({message:Yc,priority:O,focusAreas:Lt,figmaReference:nt,backendEndpoints:Ge})})).ok&&(Ws(null),Ps(),A(r.updateSuccess,"success"))}catch{}finally{Zc(!1)}},children:zs?"...":r.save})]})]})})]})})};function mo(t,A,e){if(!A.endsWith(".tsx")&&!A.endsWith(".jsx")||A.includes("node_modules"))return t;const r=l=>l.replace(/\\/g,"/"),s=r(A).replace(r(e),""),n=l=>{let g=0;for(let B=0;B<l.length;B++)g=Math.imul(31,g)+l.charCodeAt(B)|0;return(g>>>0).toString(16)};let o=0;return t.split(`
|
|
20
|
-
|
|
21
|
-
|
|
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"})}));
|