viewgate-wrapper 1.11.39 → 1.11.41
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/ViewGateOverlay.d.ts.map +1 -1
- package/dist/utils/VGCap.d.ts +12 -0
- package/dist/utils/VGCap.d.ts.map +1 -0
- package/dist/viewgate-wrapper.js +2403 -8537
- package/dist/viewgate-wrapper.umd.cjs +10 -15
- package/package.json +1 -3
- package/dist/cli.js +0 -123
- package/dist/plugin/babel-plugin-viewgate.js +0 -27
- package/dist/plugin/config-injectors.js +0 -205
- package/dist/plugin/next-loader.js +0 -4
- package/dist/plugin/transform-logic.js +0 -30
- package/dist/plugin/vite-plugin-viewgate.js +0 -14
- package/dist/plugin/webpack-loader.js +0 -9
|
@@ -1,21 +1,16 @@
|
|
|
1
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}')),document.head.appendChild(o)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
2
|
-
(function(
|
|
2
|
+
(function(ve,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):(ve=typeof globalThis<"u"?globalThis:ve||self,p(ve.ViewGateWrapper={},ve.React,ve.ReactDOM))})(this,(function(ve,p,Fs){"use strict";var Tt={exports:{}},gt={};var za;function Bs(){if(za)return gt;za=1;var e=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function s(r,c,d){var l=null;if(d!==void 0&&(l=""+d),c.key!==void 0&&(l=""+c.key),"key"in c){d={};for(var f in c)f!=="key"&&(d[f]=c[f])}else d=c;return c=d.ref,{$$typeof:e,type:r,key:l,ref:c!==void 0?c:null,props:d}}return gt.Fragment=o,gt.jsx=s,gt.jsxs=s,gt}var mt={};var Pa;function Hs(){return Pa||(Pa=1,process.env.NODE_ENV!=="production"&&(function(){function e(g){if(g==null)return null;if(typeof g=="function")return g.$$typeof===ce?null:g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case A:return"Fragment";case v:return"Profiler";case _:return"StrictMode";case I:return"Suspense";case J:return"SuspenseList";case oe: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 C:return"Portal";case N:return g.displayName||"Context";case ue:return(g._context.displayName||"Context")+".Consumer";case Y:var R=g.render;return g=g.displayName,g||(g=R.displayName||R.name||"",g=g!==""?"ForwardRef("+g+")":"ForwardRef"),g;case ae:return R=g.displayName||null,R!==null?R:e(g.type)||"Memo";case D:R=g._payload,g=g._init;try{return e(g(R))}catch{}}return null}function o(g){return""+g}function s(g){try{o(g);var R=!1}catch{R=!0}if(R){R=console;var z=R.error,F=typeof Symbol=="function"&&Symbol.toStringTag&&g[Symbol.toStringTag]||g.constructor.name||"Object";return z.call(R,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",F),o(g)}}function r(g){if(g===A)return"<>";if(typeof g=="object"&&g!==null&&g.$$typeof===D)return"<...>";try{var R=e(g);return R?"<"+R+">":"<...>"}catch{return"<...>"}}function c(){var g=M.A;return g===null?null:g.getOwner()}function d(){return Error("react-stack-top-frame")}function l(g){if(de.call(g,"key")){var R=Object.getOwnPropertyDescriptor(g,"key").get;if(R&&R.isReactWarning)return!1}return g.key!==void 0}function f(g,R){function z(){L||(L=!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)",R))}z.isReactWarning=!0,Object.defineProperty(g,"key",{get:z,configurable:!0})}function h(){var g=e(this.type);return Se[g]||(Se[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 S(g,R,z,F,Te,Ee){var P=z.ref;return g={$$typeof:V,type:g,key:R,props:z,_owner:F},(P!==void 0?P: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:Te}),Object.defineProperty(g,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ee}),Object.freeze&&(Object.freeze(g.props),Object.freeze(g)),g}function b(g,R,z,F,Te,Ee){var P=R.children;if(P!==void 0)if(F)if(H(P)){for(F=0;F<P.length;F++)m(P[F]);Object.freeze&&Object.freeze(P)}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(P);if(de.call(R,"key")){P=e(g);var ye=Object.keys(R).filter(function(Le){return Le!=="key"});F=0<ye.length?"{key: someKey, "+ye.join(": ..., ")+": ...}":"{key: someKey}",Oe[P+F]||(ye=0<ye.length?"{"+ye.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} />`,eA,z,qA,z),ne[z+eA]=!0)}if(z=null,X!==void 0&&(e(X),z=""+X),o(k)&&(e(k.key),z=""+k.key),"key"in k){X={};for(var Et in k)Et!=="key"&&(X[Et]=k[Et])}else X=k;return z&&a(X,typeof U=="function"?U.displayName||U.name||"Unknown":U),g(U,z,X,s(),me,oe)}function B(U){u(U)?U._store&&(U._store.validated=1):typeof U=="object"&&U!==null&&U.$$typeof===R&&(U._payload.status==="fulfilled"?u(U._payload.value)&&U._payload.value._store&&(U._payload.value._store.validated=1):U._store&&(U._store.validated=1))}function u(U){return typeof U=="object"&&U!==null&&U.$$typeof===w}var f=Q,w=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),F=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),I=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),lA=Symbol.for("react.activity"),vA=Symbol.for("react.client.reference"),_=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,yA=Object.prototype.hasOwnProperty,AA=Array.isArray,IA=console.createTask?console.createTask:function(){return null};f={react_stack_bottom_frame:function(U){return U()}};var J,re={},se=f.react_stack_bottom_frame.bind(f,n)(),je=IA(r(n)),ne={};Ot.Fragment=F,Ot.jsx=function(U,k,X){var eA=1e4>_.recentlyCreatedOwnerStacks++;return d(U,k,X,!1,eA?Error("react-stack-top-frame"):se,eA?IA(r(U)):je)},Ot.jsxs=function(U,k,X){var eA=1e4>_.recentlyCreatedOwnerStacks++;return d(U,k,X,!0,eA?Error("react-stack-top-frame"):se,eA?IA(r(U)):je)}})()),Ot}var yo;function Vc(){return yo||(yo=1,process.env.NODE_ENV==="production"?Qr.exports=kc():Qr.exports=Gc()),Qr.exports}var i=Vc(),xr={exports:{}},Ms={};var Eo;function Mc(){if(Eo)return Ms;Eo=1;var t=Q;function A(B,u){return B===u&&(B!==0||1/B===1/u)||B!==B&&u!==u}var e=typeof Object.is=="function"?Object.is:A,r=t.useState,s=t.useEffect,n=t.useLayoutEffect,o=t.useDebugValue;function a(B,u){var f=u(),w=r({inst:{value:f,getSnapshot:u}}),C=w[0].inst,F=w[1];return n(function(){C.value=f,C.getSnapshot=u,c(C)&&F({inst:C})},[B,f,u]),s(function(){return c(C)&&F({inst:C}),B(function(){c(C)&&F({inst:C})})},[B]),o(f),f}function c(B){var u=B.getSnapshot;B=B.value;try{var f=u();return!e(B,f)}catch{return!0}}function g(B,u){return u()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:a;return Ms.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:d,Ms}var Ns={};var bo;function Nc(){return bo||(bo=1,process.env.NODE_ENV!=="production"&&(function(){function t(f,w){return f===w&&(f!==0||1/f===1/w)||f!==f&&w!==w}function A(f,w){d||s.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var C=w();if(!B){var F=w();n(C,F)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),B=!0)}F=o({inst:{value:C,getSnapshot:w}});var y=F[0].inst,m=F[1];return c(function(){y.value=C,y.getSnapshot=w,e(y)&&m({inst:y})},[f,C,w]),a(function(){return e(y)&&m({inst:y}),f(function(){e(y)&&m({inst:y})})},[f]),g(C),C}function e(f){var w=f.getSnapshot;f=f.value;try{var C=w();return!n(f,C)}catch{return!0}}function r(f,w){return w()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var s=Q,n=typeof Object.is=="function"?Object.is:t,o=s.useState,a=s.useEffect,c=s.useLayoutEffect,g=s.useDebugValue,d=!1,B=!1,u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:A;Ns.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:u,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Ns}var vo;function _c(){return vo||(vo=1,process.env.NODE_ENV==="production"?xr.exports=Mc():xr.exports=Nc()),xr.exports}var Io=_c();const Ho=0,So=1,Lo=2,To=3;var Oo=Object.prototype.hasOwnProperty;function _s(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--&&_s(t[r],A[r]););return r===-1}if(!e||typeof t=="object"){r=0;for(e in t)if(Oo.call(t,e)&&++r&&!Oo.call(A,e)||!(e in A)||!_s(t[e],A[e]))return!1;return Object.keys(A).length===r}}return t!==t&&A!==A}const Ue=new WeakMap,Fe=()=>{},KA=Fe(),Ps=Object,P=t=>t===KA,ge=t=>typeof t=="function",Oe=(t,A)=>({...t,...A}),Ko=t=>ge(t.then),js={},Ur={},Ws="undefined",Kt=typeof window!=Ws,Xs=typeof document!=Ws,Pc=Kt&&"Deno"in window,jc=()=>Kt&&typeof window.requestAnimationFrame!=Ws,Do=(t,A)=>{const e=Ue.get(t);return[()=>!P(A)&&t.get(A)||js,r=>{if(!P(A)){const s=t.get(A);A in Ur||(Ur[A]=s),e[5](A,Oe(s,r),s||js)}},e[6],()=>!P(A)&&A in Ur?Ur[A]:!P(A)&&t.get(A)||js]};let zs=!0;const Wc=()=>zs,[Js,Ys]=Kt&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Fe,Fe],Xc=()=>{const t=Xs&&document.visibilityState;return P(t)||t!=="hidden"},zc=t=>(Xs&&document.addEventListener("visibilitychange",t),Js("focus",t),()=>{Xs&&document.removeEventListener("visibilitychange",t),Ys("focus",t)}),Jc=t=>{const A=()=>{zs=!0,t()},e=()=>{zs=!1};return Js("online",A),Js("offline",e),()=>{Ys("online",A),Ys("offline",e)}},Yc={isOnline:Wc,isVisible:Xc},Zc={initFocus:zc,initReconnect:Jc},Ro=!Q.useId,dt=!Kt||Pc,$c=t=>jc()?window.requestAnimationFrame(t):setTimeout(t,1),Zs=dt?Q.useEffect:Q.useLayoutEffect,$s=typeof navigator<"u"&&navigator.connection,ko=!dt&&$s&&(["slow-2g","2g"].includes($s.effectiveType)||$s.saveData),Fr=new WeakMap,qc=t=>Ps.prototype.toString.call(t),qs=(t,A)=>t===`[object ${A}]`;let Al=0;const An=t=>{const A=typeof t,e=qc(t),r=qs(e,"Date"),s=qs(e,"RegExp"),n=qs(e,"Object");let o,a;if(Ps(t)===t&&!r&&!s){if(o=Fr.get(t),o)return o;if(o=++Al+"~",Fr.set(t,o),Array.isArray(t)){for(o="@",a=0;a<t.length;a++)o+=An(t[a])+",";Fr.set(t,o)}if(n){o="#";const c=Ps.keys(t).sort();for(;!P(a=c.pop());)P(t[a])||(o+=a+":"+An(t[a])+",");Fr.set(t,o)}}else o=r?t.toJSON():A=="symbol"?t.toString():A=="string"?JSON.stringify(t):""+t;return o},en=t=>{if(ge(t))try{t=t()}catch{t=""}const A=t;return t=typeof t=="string"?t:(Array.isArray(t)?t.length:t)?An(t):"",[t,A]};let el=0;const tn=()=>++el;async function Go(...t){const[A,e,r,s]=t,n=Oe({populateCache:!0,throwOnError:!0},typeof s=="boolean"?{revalidate:s}:s||{});let o=n.populateCache;const a=n.rollbackOnError;let c=n.optimisticData;const g=u=>typeof a=="function"?a(u):a!==!1,d=n.throwOnError;if(ge(e)){const u=e,f=[],w=A.keys();for(const C of w)!/^\$(inf|sub)\$/.test(C)&&u(A.get(C)._k)&&f.push(C);return Promise.all(f.map(B))}return B(e);async function B(u){const[f]=en(u);if(!f)return;const[w,C]=Do(A,f),[F,y,m,T]=Ue.get(A),I=()=>{const AA=F[f];return(ge(n.revalidate)?n.revalidate(w().data,u):n.revalidate!==!1)&&(delete m[f],delete T[f],AA&&AA[0])?AA[0](Lo).then(()=>w().data):w().data};if(t.length<3)return I();let H=r,K,N=!1;const W=tn();y[f]=[W,0];const R=!P(c),lA=w(),vA=lA.data,_=lA._c,yA=P(_)?vA:_;if(R&&(c=ge(c)?c(yA,vA):c,C({data:c,_c:yA})),ge(H))try{H=H(yA)}catch(AA){K=AA,N=!0}if(H&&Ko(H))if(H=await H.catch(AA=>{K=AA,N=!0}),W!==y[f][0]){if(N)throw K;return H}else N&&R&&g(K)&&(o=!0,C({data:yA,_c:KA}));if(o&&!N)if(ge(o)){const AA=o(H,yA);C({data:AA,error:KA,_c:KA})}else C({data:H,error:KA,_c:KA});if(y[f][1]=tn(),Promise.resolve(I()).then(()=>{C({_c:KA})}),N){if(d)throw K;return}return H}}const Vo=(t,A)=>{for(const e in t)t[e][0]&&t[e][0](A)},tl=(t,A)=>{if(!Ue.has(t)){const e=Oe(Zc,A),r=Object.create(null),s=Go.bind(KA,t);let n=Fe;const o=Object.create(null),a=(d,B)=>{const u=o[d]||[];return o[d]=u,u.push(B),()=>u.splice(u.indexOf(B),1)},c=(d,B,u)=>{t.set(d,B);const f=o[d];if(f)for(const w of f)w(B,u)},g=()=>{if(!Ue.has(t)&&(Ue.set(t,[r,Object.create(null),Object.create(null),Object.create(null),s,c,a]),!dt)){const d=e.initFocus(setTimeout.bind(KA,Vo.bind(KA,r,Ho))),B=e.initReconnect(setTimeout.bind(KA,Vo.bind(KA,r,So)));n=()=>{d&&d(),B&&B(),Ue.delete(t)}}};return g(),[t,s,g,n]}return[t,Ue.get(t)[4]]},rl=(t,A,e,r,s)=>{const n=e.errorRetryCount,o=s.retryCount,a=~~((Math.random()+.5)*(1<<(o<8?o:8)))*e.errorRetryInterval;!P(n)&&o>n||setTimeout(r,a,s)},sl=_s,[Mo,nl]=tl(new Map),ol=Oe({onLoadingSlow:Fe,onSuccess:Fe,onError:Fe,onErrorRetry:rl,onDiscarded:Fe,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:ko?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:ko?5e3:3e3,compare:sl,isPaused:()=>!1,cache:Mo,mutate:nl,fallback:{}},Yc),al=(t,A)=>{const e=Oe(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=Oe(s,o))}return e},il=Q.createContext({}),cl="$inf$",No=Kt&&window.__SWR_DEVTOOLS_USE__,ll=No?window.__SWR_DEVTOOLS_USE__:[],dl=()=>{No&&(window.__SWR_DEVTOOLS_REACT__=Q)},Bl=t=>ge(t[1])?[t[0],t[1],t[2]||{}]:[t[0],null,(t[1]===null?t[2]:t[1])||{}],_o=()=>{const t=Q.useContext(il);return Q.useMemo(()=>Oe(ol,t),[t])},gl=t=>(A,e,r)=>t(A,e&&((...n)=>{const[o]=en(A),[,,,a]=Ue.get(Mo);if(o.startsWith(cl))return e(...n);const c=a[o];return P(c)?e(...n):(delete a[o],c)}),r),ul=ll.concat(gl),fl=t=>function(...e){const r=_o(),[s,n,o]=Bl(e),a=al(r,o);let c=t;const{use:g}=a,d=(g||[]).concat(ul);for(let B=d.length;B--;)c=d[B](c);return c(s,n||a.fetcher||null,a)},hl=(t,A,e)=>{const r=A[t]||(A[t]=[]);return r.push(e),()=>{const s=r.indexOf(e);s>=0&&(r[s]=r[r.length-1],r.pop())}};dl();const rn=Q.use||(t=>{switch(t.status){case"pending":throw t;case"fulfilled":return t.value;case"rejected":throw t.reason;default:throw t.status="pending",t.then(A=>{t.status="fulfilled",t.value=A},A=>{t.status="rejected",t.reason=A}),t}}),sn={dedupe:!0},Po=Promise.resolve(KA),pl=()=>Fe,jo=fl((t,A,e)=>{const{cache:r,compare:s,suspense:n,fallbackData:o,revalidateOnMount:a,revalidateIfStale:c,refreshInterval:g,refreshWhenHidden:d,refreshWhenOffline:B,keepPreviousData:u,strictServerPrefetchWarning:f}=e,[w,C,F,y]=Ue.get(r),[m,T]=en(t),I=Q.useRef(!1),H=Q.useRef(!1),K=Q.useRef(m),N=Q.useRef(A),W=Q.useRef(e),R=()=>W.current,lA=()=>R().isVisible()&&R().isOnline(),[vA,_,yA,AA]=Do(r,m),IA=Q.useRef({}).current,J=P(o)?P(e.fallback)?KA:e.fallback[m]:o,re=(Y,tA)=>{for(const dA in IA){const uA=dA;if(uA==="data"){if(!s(Y[uA],tA[uA])&&(!P(Y[uA])||!s(oe,tA[uA])))return!1}else if(tA[uA]!==Y[uA])return!1}return!0},se=!I.current,je=Q.useMemo(()=>{const Y=vA(),tA=AA(),dA=fA=>{const BA=Oe(fA);return delete BA._k,(()=>{if(!m||!A||R().isPaused())return!1;if(se&&!P(a))return a;const Qe=P(J)?BA.data:J;return P(Qe)||c})()?{isValidating:!0,isLoading:!0,...BA}:BA},uA=dA(Y),de=Y===tA?uA:dA(tA);let zA=uA;return[()=>{const fA=dA(vA());return re(fA,zA)?(zA.data=fA.data,zA.isLoading=fA.isLoading,zA.isValidating=fA.isValidating,zA.error=fA.error,zA):(zA=fA,fA)},()=>de]},[r,m]),ne=Io.useSyncExternalStore(Q.useCallback(Y=>yA(m,(tA,dA)=>{re(dA,tA)||Y()}),[r,m]),je[0],je[1]),U=w[m]&&w[m].length>0,k=ne.data,X=P(k)?J&&Ko(J)?rn(J):J:k,eA=ne.error,me=Q.useRef(X),oe=u?P(k)?P(me.current)?X:me.current:k:X,z=m&&P(X),qA=Q.useRef(null);!dt&&Io.useSyncExternalStore(pl,()=>(qA.current=!1,qA),()=>(qA.current=!0,qA));const Et=qA.current;f&&Et&&!n&&z&&console.warn(`Missing pre-initiated data for serialized key "${m}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);const He=!m||!A||R().isPaused()||U&&!P(eA)?!1:se&&!P(a)?a:n?P(X)?!1:c:P(X)||c,We=se&&He,WA=P(ne.isValidating)?We:ne.isValidating,Ce=P(ne.isLoading)?We:ne.isLoading,HA=Q.useCallback(async Y=>{const tA=N.current;if(!m||!tA||H.current||R().isPaused())return!1;let dA,uA,de=!0;const zA=Y||{},fA=!F[m]||!zA.dedupe,BA=()=>Ro?!H.current&&m===K.current&&I.current:m===K.current,Se={isValidating:!1,isLoading:!1},Qe=()=>{_(Se)},ur=()=>{const MA=F[m];MA&&MA[1]===uA&&delete F[m]},Be={isValidating:!0};P(vA().data)&&(Be.isLoading=!0);try{if(fA&&(_(Be),e.loadingTimeout&&P(vA().data)&&setTimeout(()=>{de&&BA()&&R().onLoadingSlow(m,e)},e.loadingTimeout),F[m]=[tA(T),tn()]),[dA,uA]=F[m],dA=await dA,fA&&setTimeout(ur,e.dedupingInterval),!F[m]||F[m][1]!==uA)return fA&&BA()&&R().onDiscarded(m),!1;Se.error=KA;const MA=C[m];if(!P(MA)&&(uA<=MA[0]||uA<=MA[1]||MA[1]===0))return Qe(),fA&&BA()&&R().onDiscarded(m),!1;const xe=vA().data;Se.data=s(xe,dA)?xe:dA,fA&&BA()&&R().onSuccess(dA,m,e)}catch(MA){ur();const xe=R(),{shouldRetryOnError:vs}=xe;xe.isPaused()||(Se.error=MA,fA&&BA()&&(xe.onError(MA,m,xe),(vs===!0||ge(vs)&&vs(MA))&&(!R().revalidateOnFocus||!R().revalidateOnReconnect||lA())&&xe.onErrorRetry(MA,m,xe,hA=>{const ot=w[m];ot&&ot[0]&&ot[0](To,hA)},{retryCount:(zA.retryCount||0)+1,dedupe:!0})))}return de=!1,Qe(),!0},[m,r]),nt=Q.useCallback((...Y)=>Go(r,K.current,...Y),[]);if(Zs(()=>{N.current=A,W.current=e,P(k)||(me.current=k)}),Zs(()=>{if(!m)return;const Y=HA.bind(KA,sn);let tA=0;R().revalidateOnFocus&&(tA=Date.now()+R().focusThrottleInterval);const uA=hl(m,w,(de,zA={})=>{if(de==Ho){const fA=Date.now();R().revalidateOnFocus&&fA>tA&&lA()&&(tA=fA+R().focusThrottleInterval,Y())}else if(de==So)R().revalidateOnReconnect&&lA()&&Y();else{if(de==Lo)return HA();if(de==To)return HA(zA)}});return H.current=!1,K.current=m,I.current=!0,_({_k:T}),He&&(F[m]||(P(X)||dt?Y():$c(Y))),()=>{H.current=!0,uA()}},[m]),Zs(()=>{let Y;function tA(){const uA=ge(g)?g(vA().data):g;uA&&Y!==-1&&(Y=setTimeout(dA,uA))}function dA(){!vA().error&&(d||R().isVisible())&&(B||R().isOnline())?HA(sn).then(tA):tA()}return tA(),()=>{Y&&(clearTimeout(Y),Y=-1)}},[g,d,B,m]),Q.useDebugValue(oe),n){if(!Ro&&dt&&z)throw new Error("Fallback data is required when using Suspense in SSR.");z&&(N.current=A,W.current=e,H.current=!1);const Y=y[m],tA=!P(Y)&&z?nt(Y):Po;if(rn(tA),!P(eA)&&z)throw eA;const dA=z?HA(sn):Po;!P(oe)&&z&&(dA.status="fulfilled",dA.value=!0),rn(dA)}return{mutate:nt,get data(){return IA.data=!0,oe},get error(){return IA.error=!0,eA},get isValidating(){return IA.isValidating=!0,WA},get isLoading(){return IA.isLoading=!0,Ce}}}),wl=({children:t})=>{const A=Q.useRef(null),[e,r]=Q.useState(null);return Q.useEffect(()=>{if(A.current&&!A.current.shadowRoot){const s=A.current.attachShadow({mode:"open"});document.querySelectorAll("style[data-vite-dev-id], style:not([data-vite-dev-id])").forEach(a=>{(a.textContent?.includes(".vg-")||a.textContent?.includes("--vg-"))&&s.appendChild(a.cloneNode(!0))});const o=document.createElement("link");o.rel="stylesheet",o.href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap",s.appendChild(o),r(s)}},[]),i.jsx("div",{"data-vg-id":"49696d6b","data-source-path":"/src/components/ShadowRootWrapper.tsx:38",ref:A,id:"viewgate-shadow-host",style:{position:"relative",zIndex:2147483647},children:e&&Rc.createPortal(t,e)})};const Wo=(...t)=>t.filter((A,e,r)=>!!A&&A.trim()!==""&&r.indexOf(A)===e).join(" ").trim();const ml=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Cl=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(A,e,r)=>r?r.toUpperCase():e.toLowerCase());const Xo=t=>{const A=Cl(t);return A.charAt(0).toUpperCase()+A.slice(1)};var Ql={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const xl=t=>{for(const A in t)if(A.startsWith("aria-")||A==="role"||A==="title")return!0;return!1};const Ul=Q.forwardRef(({color:t="currentColor",size:A=24,strokeWidth:e=2,absoluteStrokeWidth:r,className:s="",children:n,iconNode:o,...a},c)=>Q.createElement("svg",{ref:c,...Ql,width:A,height:A,stroke:t,strokeWidth:r?Number(e)*24/Number(A):e,className:Wo("lucide",s),...!n&&!xl(a)&&{"aria-hidden":"true"},...a},[...o.map(([g,d])=>Q.createElement(g,d)),...Array.isArray(n)?n:[n]]));const aA=(t,A)=>{const e=Q.forwardRef(({className:r,...s},n)=>Q.createElement(Ul,{ref:n,iconNode:A,className:Wo(`lucide-${ml(Xo(t))}`,`lucide-${t}`,r),...s}));return e.displayName=Xo(t),e};const Dt=aA("bug",[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]]);const Fl=aA("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 zo=aA("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const yl=aA("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 ze=aA("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);const Jo=aA("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);const nn=aA("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 El=aA("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 Ke=aA("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 bl=aA("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);const vl=aA("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 yr=aA("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);const Er=aA("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 br=aA("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);const Yo=aA("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);const vr=aA("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);const Il=aA("mouse-pointer-2",[["path",{d:"M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z",key:"edeuup"}]]);const Rt=aA("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);const Hl=aA("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const Sl=aA("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);const Ll=aA("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);const Ir=aA("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);const Tl=aA("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);const kt=aA("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Ol={en:{enterMode:"Enter Feedback Mode",exitMode:"Exit Mode",completed:"Completed",feedbackHeader:"Feedback",selectedElement:"Selected element:",line:"Line",placeholder:"Tell us what you'd like to change...",cancel:"Cancel",send:"Send Feedback",submitting:"Submitting...",success:"Your feedback has been submitted successfully!",error:"Failed to submit feedback. Check backend connection.",successHeader:"Success",errorHeader:"Error",preview:"Preview",viewComments:"View Comments",close:"Close",observe:"Observe",pending:"Pending",readyForReview:"Ready for Review",noComments:"No comments found.",deleteConfirm:"Delete comment",completeConfirm:"Mark as completed?",confirmComplete:"The ticket will be marked as completed and archived.",markReady:"Mark as Ready for Review",reopen:"Reopen",reopenPlaceholder:"Add a new comment before confirming...",review:"Review",confirmDelete:"Are you sure you want to permanently delete this comment? This action cannot be undone.",markReadyConfirm:"Mark as Ready for Review?",confirmMarkReady:"Do you want to mark this comment as ready for review? it will be moved to the review state.",reopenConfirm:"Reopen comment",confirmReopen:"Do you want to set this comment back to pending status?",yes:"Yes, confirm",no:"No, cancel",deleteSuccess:"Comment deleted successfully.",updateSuccess:"Updated successfully.",navigating:"Redirecting to review...",selectToComment:"Click to comment",feedbackSubheader:"What would you like to improve here?",sendFeedback:"Send Comment",edit:"Edit",save:"Save",commentDetails:"Comment Details",annotations:"Comments",viewAll:"View All",exitConfirmTitle:"Close ViewGate?",exitConfirmMessage:"Are you sure you want to close ViewGate? Remember you can reopen it by pressing ALT once (Normal Mode) or holding it for 1 second (Backlog Mode).",backlog:"Backlog",low:"Low",medium:"Medium",high:"High",urgent:"Urgent",priority:"Priority",selectMember:"Select who you are to comment",asMember:"Commenting as",changeMember:"Change",focusAreas:"Focus Areas",frontend:"Frontend",backend:"Backend",ux:"UX/UI",figmaLink:"Figma Reference Link",figmaLinkPlaceholder:"https://www.figma.com/file/...",endpoint:"Related Backend Endpoint",selectEndpoint:"Select endpoint...",figmaNamePlaceholder:"e.g. Main Design, Modal, etc.",addLink:"Add another link",removeLink:"Remove",figmaPrimaryDesign:"Principal Design",invalidToken:"Invalid or expired token"},es:{enterMode:"Activar Modo Comentarios",exitMode:"Salir del Modo",completed:"Completado",feedbackHeader:"Comentarios",selectedElement:"Elemento seleccionado:",line:"Línea",placeholder:"Cuéntanos qué te gustaría cambiar...",cancel:"Cancelar",send:"Enviar Comentarios",submitting:"Enviando...",success:"¡Tus comentarios se han enviado con éxito!",error:"Error al enviar comentarios. Revisa la conexión con el servidor.",successHeader:"Éxito",errorHeader:"Error",preview:"Vista previa",viewComments:"Ver Comentarios",close:"Cerrar",observe:"Observar",pending:"Pendiente",readyForReview:"Listo para revisión",noComments:"No hay comentarios.",deleteConfirm:"Eliminar comentario",completeConfirm:"¿Completar ticket?",confirmComplete:"El ticket se marcará como completado y se archivará.",markReady:"Marcar como Listo para revisión",reopen:"Reabrir",reopenPlaceholder:"Agrega un nuevo comentario antes de confirmar...",review:"Revisar",confirmDelete:"¿Estás seguro de que deseas eliminar permanentemente este comentario? Esta acción no se puede deshacer.",markReadyConfirm:"¿Listo para revisión?",confirmMarkReady:"¿Deseas marcar este comentario como listo para revisión? Pasará al estado de revisión.",reopenConfirm:"Reabrir comentario",confirmReopen:"¿Deseas volver a poner este comentario en estado pendiente?",yes:"Sí, confirmar",no:"No, cancelar",deleteSuccess:"El comentario ha sido eliminado.",updateSuccess:"Actualizado correctamente.",navigating:"Redirigiendo a revisión...",selectToComment:"Haz clic para comentar",feedbackSubheader:"¿Qué te gustaría mejorar aquí?",sendFeedback:"Enviar Comentario",edit:"Editar",save:"Guardar",commentDetails:"Detalles del Comentario",annotations:"Comentarios",viewAll:"Ver Todos",exitConfirmTitle:"¿Cerrar ViewGate?",exitConfirmMessage:"¿Estás seguro de que deseas cerrar ViewGate? Recuerda que puedes volver a activarlo pulsando una vez la tecla ALT (Modo Normal) o manteniéndola pulsada 1 segundo (Modo Backlog).",backlog:"Backlog",low:"Baja",medium:"Media",high:"Alta",urgent:"Urgente",priority:"Prioridad",selectMember:"Selecciona quién eres para comentar",asMember:"Comentando como",changeMember:"Cambiar",focusAreas:"Áreas de Foco",frontend:"Frontend",backend:"Backend",ux:"UX/UI",figmaLink:"Link de Referencia Figma",figmaLinkPlaceholder:"https://www.figma.com/file/...",endpoint:"Endpoint de Backend Relacionado",selectEndpoint:"Seleccionar endpoint...",figmaNamePlaceholder:"ej. Diseño Principal, Modal, etc.",addLink:"Agregar otro link",removeLink:"Eliminar",figmaPrimaryDesign:"Diseño Principal",invalidToken:"Token inválido o expirado"}},Zo=Q.createContext(void 0),$o=()=>{const t=Q.useContext(Zo);if(!t)throw new Error("useViewGate must be used within a ViewGateProvider");return t},Gt="viewgate_enabled",Kl=()=>{if(typeof window>"u")return!1;const t=new URLSearchParams(window.location.search);return t.has("viewgate")||t.has("viewgate-backlog")?(sessionStorage.setItem(Gt,"true"),!0):sessionStorage.getItem(Gt)==="true"},Dl=({children:t,language:A="es",apiKey:e,baseUrl:r="https://view-gate.vercel.app",dashboardUrl:s})=>{const n=s||(r==="https://view-gate.vercel.app"?"https://view-gate-dashboard.vercel.app":r.includes("localhost:5000")?r.replace("5000","3000"):r),[o,a]=Q.useState(!1),[c,g]=Q.useState([]);Q.useRef(0);const d=Q.useRef(null),B=Q.useRef(!1);Q.useEffect(()=>{a(Kl());const C=y=>{y.key==="Alt"&&!y.repeat&&(y.preventDefault(),B.current=!1,d.current&&clearTimeout(d.current),d.current=setTimeout(()=>{const m=new URL(window.location.href);m.searchParams.delete("viewgate"),m.searchParams.set("viewgate-backlog","true"),window.history.replaceState({},"",m.toString()),a(!0),sessionStorage.setItem(Gt,"true"),window.dispatchEvent(new PopStateEvent("popstate")),f(A==="es"?"Modo Backlog activado":"Backlog Mode activated","success"),B.current=!0,d.current=null},1e3))},F=y=>{if(y.key==="Alt"&&(y.preventDefault(),d.current)){clearTimeout(d.current),d.current=null;const m=new URL(window.location.href);m.searchParams.delete("viewgate-backlog"),m.searchParams.set("viewgate","true"),window.history.replaceState({},"",m.toString()),a(!0),sessionStorage.setItem(Gt,"true"),window.dispatchEvent(new PopStateEvent("popstate")),f(A==="es"?"Modo Normal activado":"Normal Mode activated","success")}};return window.addEventListener("keydown",C),window.addEventListener("keyup",F),()=>{window.removeEventListener("keydown",C),window.removeEventListener("keyup",F)}},[A]);const u=()=>{if(sessionStorage.removeItem(Gt),a(!1),typeof window<"u"){const C=new URL(window.location.href);C.searchParams.delete("viewgate"),window.history.replaceState({},"",C.toString())}},f=(C,F)=>{const y=Date.now();g(m=>[...m,{id:y,message:C,type:F}]),setTimeout(()=>{g(m=>m.filter(T=>T.id!==y))},4e3)},w=Ol[A];return i.jsxs(Zo.Provider,{"data-vg-id":"89da3486","data-source-path":"/src/components/ViewGateProvider.tsx:369",value:{addToast:f,language:A,t:w,apiKey:e,baseUrl:r,dashboardUrl:n,disableViewGate:u,hasActiveToasts:c.length>0},children:[t,o&&i.jsx(wl,{"data-vg-id":"f1499d3a","data-source-path":"/src/components/ViewGateProvider.tsx:381",children:i.jsxs("div",{"data-vg-id":"1bedb79b","data-source-path":"/src/components/ViewGateProvider.tsx:382",className:"vg-container",children:[i.jsx(mc,{"data-vg-id":"d3f262cb","data-source-path":"/src/components/ViewGateProvider.tsx:383"}),i.jsx("div",{"data-vg-id":"1bedb79d","data-source-path":"/src/components/ViewGateProvider.tsx:384",className:"vg-toasts",style:{zIndex:2147483647},children:c.map(C=>i.jsxs("div",{"data-vg-id":"1bedb79e","data-source-path":"/src/components/ViewGateProvider.tsx:386",className:`vg-toast vg-animate-slide ${C.type}`,children:[C.type==="success"?i.jsx(ze,{"data-vg-id":"c7ae3b26","data-source-path":"/src/components/ViewGateProvider.tsx:388",size:24,color:"#22c55e"}):C.type==="warning"?i.jsx(Tl,{"data-vg-id":"137eb473","data-source-path":"/src/components/ViewGateProvider.tsx:390",size:24,color:"#f59e0b"}):i.jsx(yl,{"data-vg-id":"e7ad3c7c","data-source-path":"/src/components/ViewGateProvider.tsx:392",size:24,color:"#ef4444"}),i.jsxs("div",{"data-vg-id":"61c93bb7","data-source-path":"/src/components/ViewGateProvider.tsx:394",children:[i.jsx("strong",{"data-vg-id":"29b8e974","data-source-path":"/src/components/ViewGateProvider.tsx:395",style:{display:"block",fontSize:"13px",color:"#0f172a",textTransform:"uppercase",marginBottom:"2px"},children:C.type==="success"?w.successHeader:C.type==="warning"?A==="es"?"Aviso":"Warning":w.errorHeader}),i.jsx("span",{"data-vg-id":"fbbd7822","data-source-path":"/src/components/ViewGateProvider.tsx:398",style:{fontSize:"14px",color:"#000000"},children:C.message})]})]},C.id))})]})})]})};class DA{constructor(A,e,r,s){this.left=A,this.top=e,this.width=r,this.height=s}add(A,e,r,s){return new DA(this.left+A,this.top+e,this.width+r,this.height+s)}static fromClientRect(A,e){return new DA(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 DA(s.left+A.windowBounds.left,s.top+A.windowBounds.top,s.width,s.height):DA.EMPTY}}DA.EMPTY=new DA(0,0,0,0);const Hr=(t,A)=>DA.fromClientRect(t,A.getBoundingClientRect()),Rl=t=>{const A=t.body,e=t.documentElement;if(!A||!e)throw new Error("Unable to get document size");const r=Math.max(Math.max(A.scrollWidth,e.scrollWidth),Math.max(A.offsetWidth,e.offsetWidth),Math.max(A.clientWidth,e.clientWidth)),s=Math.max(Math.max(A.scrollHeight,e.scrollHeight),Math.max(A.offsetHeight,e.offsetHeight),Math.max(A.clientHeight,e.clientHeight));return new DA(0,0,r,s)};for(var Sr=function(t){for(var A=[],e=0,r=t.length;e<r;){var s=t.charCodeAt(e++);if(s>=55296&&s<=56319&&e<r){var n=t.charCodeAt(e++);(n&64512)===56320?A.push(((s&1023)<<10)+(n&1023)+65536):(A.push(s),e--)}else A.push(s)}return A},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},qo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",kl=typeof Uint8Array>"u"?[]:new Uint8Array(256),Lr=0;Lr<qo.length;Lr++)kl[qo.charCodeAt(Lr)]=Lr;for(var Aa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Vt=typeof Uint8Array>"u"?[]:new Uint8Array(256),Tr=0;Tr<Aa.length;Tr++)Vt[Aa.charCodeAt(Tr)]=Tr;for(var Gl=function(t){var A=t.length*.75,e=t.length,r,s=0,n,o,a,c;t[t.length-1]==="="&&(A--,t[t.length-2]==="="&&A--);var g=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),d=Array.isArray(g)?g:new Uint8Array(g);for(r=0;r<e;r+=4)n=Vt[t.charCodeAt(r)],o=Vt[t.charCodeAt(r+1)],a=Vt[t.charCodeAt(r+2)],c=Vt[t.charCodeAt(r+3)],d[s++]=n<<2|o>>4,d[s++]=(o&15)<<4|a>>2,d[s++]=(a&3)<<6|c&63;return g},Vl=function(t){for(var A=t.length,e=[],r=0;r<A;r+=2)e.push(t[r+1]<<8|t[r]);return e},Ml=function(t){for(var A=t.length,e=[],r=0;r<A;r+=4)e.push(t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]);return e},Je=5,on=11,an=2,Nl=on-Je,ea=65536>>Je,_l=1<<Je,cn=_l-1,Pl=1024>>Je,jl=ea+Pl,Wl=jl,Xl=32,zl=Wl+Xl,Jl=65536>>on,Yl=1<<Nl,Zl=Yl-1,ta=function(t,A,e){return t.slice?t.slice(A,e):new Uint16Array(Array.prototype.slice.call(t,A,e))},$l=function(t,A,e){return t.slice?t.slice(A,e):new Uint32Array(Array.prototype.slice.call(t,A,e))},ql=function(t,A){var e=Gl(t),r=Array.isArray(e)?Ml(e):new Uint32Array(e),s=Array.isArray(e)?Vl(e):new Uint16Array(e),n=24,o=ta(s,n/2,r[4]/2),a=r[5]===2?ta(s,(n+r[4])/2):$l(r,Math.ceil((n+r[4])/4));return new Ad(r[0],r[1],r[2],r[3],o,a)},Ad=(function(){function t(A,e,r,s,n,o){this.initialValue=A,this.errorValue=e,this.highStart=r,this.highValueIndex=s,this.index=n,this.data=o}return t.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=this.index[A>>Je],e=(e<<an)+(A&cn),this.data[e];if(A<=65535)return e=this.index[ea+(A-55296>>Je)],e=(e<<an)+(A&cn),this.data[e];if(A<this.highStart)return e=zl-Jl+(A>>on),e=this.index[e],e+=A>>Je&Zl,e=this.index[e],e=(e<<an)+(A&cn),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t})(),ra="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ed=typeof Uint8Array>"u"?[]:new Uint8Array(256),Or=0;Or<ra.length;Or++)ed[ra.charCodeAt(Or)]=Or;var td="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsByw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AMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwA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VAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAU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4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXAB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ACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcA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AFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAF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ABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQA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sASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAe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FcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",sa=50,rd=1,na=2,oa=3,sd=4,nd=5,aa=7,ia=8,ca=9,De=10,ln=11,la=12,dn=13,od=14,Mt=15,Bn=16,Kr=17,Nt=18,ad=19,da=20,gn=21,_t=22,un=23,Bt=24,ZA=25,Pt=26,jt=27,gt=28,id=29,Ye=30,cd=31,Dr=32,Rr=33,fn=34,hn=35,pn=36,Wt=37,wn=38,kr=39,Gr=40,mn=41,Ba=42,ld=43,dd=[9001,65288],ga="!",j="×",Vr="÷",Cn=ql(td),ye=[Ye,pn],Qn=[rd,na,oa,nd],ua=[De,ia],fa=[jt,Pt],Bd=Qn.concat(ua),ha=[wn,kr,Gr,fn,hn],gd=[Mt,dn],ud=function(t,A){A===void 0&&(A="strict");var e=[],r=[],s=[];return t.forEach(function(n,o){var a=Cn.get(n);if(a>sa?(s.push(!0),a-=sa):s.push(!1),["normal","auto","loose"].indexOf(A)!==-1&&[8208,8211,12316,12448].indexOf(n)!==-1)return r.push(o),e.push(Bn);if(a===sd||a===ln){if(o===0)return r.push(o),e.push(Ye);var c=e[o-1];return Bd.indexOf(c)===-1?(r.push(r[o-1]),e.push(c)):(r.push(o),e.push(Ye))}if(r.push(o),a===cd)return e.push(A==="strict"?gn:Wt);if(a===Ba||a===id)return e.push(Ye);if(a===ld)return n>=131072&&n<=196605||n>=196608&&n<=262141?e.push(Wt):e.push(Ye);e.push(a)}),[r,e,s]},xn=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!==De)break}if(s===De)for(var n=e;n>0;){n--;var a=r[n];if(Array.isArray(t)?t.indexOf(a)!==-1:t===a)for(var c=e;c<=r.length;){c++;var o=r[c];if(o===A)return!0;if(o!==De)break}if(a!==De)break}return!1},pa=function(t,A){for(var e=t;e>=0;){var r=A[e];if(r===De)e--;else return r}return 0},fd=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,c=A[n],g=o>=0?A[o]:0,d=A[a];if(c===na&&d===oa)return j;if(Qn.indexOf(c)!==-1)return ga;if(Qn.indexOf(d)!==-1||ua.indexOf(d)!==-1)return j;if(pa(n,A)===ia)return Vr;if(Cn.get(t[n])===ln||(c===Dr||c===Rr)&&Cn.get(t[a])===ln||c===aa||d===aa||c===ca||[De,dn,Mt].indexOf(c)===-1&&d===ca||[Kr,Nt,ad,Bt,gt].indexOf(d)!==-1||pa(n,A)===_t||xn(un,_t,n,A)||xn([Kr,Nt],gn,n,A)||xn(la,la,n,A))return j;if(c===De)return Vr;if(c===un||d===un)return j;if(d===Bn||c===Bn)return Vr;if([dn,Mt,gn].indexOf(d)!==-1||c===od||g===pn&&gd.indexOf(c)!==-1||c===gt&&d===pn||d===da||ye.indexOf(d)!==-1&&c===ZA||ye.indexOf(c)!==-1&&d===ZA||c===jt&&[Wt,Dr,Rr].indexOf(d)!==-1||[Wt,Dr,Rr].indexOf(c)!==-1&&d===Pt||ye.indexOf(c)!==-1&&fa.indexOf(d)!==-1||fa.indexOf(c)!==-1&&ye.indexOf(d)!==-1||[jt,Pt].indexOf(c)!==-1&&(d===ZA||[_t,Mt].indexOf(d)!==-1&&A[a+1]===ZA)||[_t,Mt].indexOf(c)!==-1&&d===ZA||c===ZA&&[ZA,gt,Bt].indexOf(d)!==-1)return j;if([ZA,gt,Bt,Kr,Nt].indexOf(d)!==-1)for(var B=n;B>=0;){var u=A[B];if(u===ZA)return j;if([gt,Bt].indexOf(u)!==-1)B--;else break}if([jt,Pt].indexOf(d)!==-1)for(var B=[Kr,Nt].indexOf(c)!==-1?o:n;B>=0;){var u=A[B];if(u===ZA)return j;if([gt,Bt].indexOf(u)!==-1)B--;else break}if(wn===c&&[wn,kr,fn,hn].indexOf(d)!==-1||[kr,fn].indexOf(c)!==-1&&[kr,Gr].indexOf(d)!==-1||[Gr,hn].indexOf(c)!==-1&&d===Gr||ha.indexOf(c)!==-1&&[da,Pt].indexOf(d)!==-1||ha.indexOf(d)!==-1&&c===jt||ye.indexOf(c)!==-1&&ye.indexOf(d)!==-1||c===Bt&&ye.indexOf(d)!==-1||ye.concat(ZA).indexOf(c)!==-1&&d===_t&&dd.indexOf(t[a])===-1||ye.concat(ZA).indexOf(d)!==-1&&c===Nt)return j;if(c===mn&&d===mn){for(var f=e[n],w=1;f>0&&(f--,A[f]===mn);)w++;if(w%2!==0)return j}return c===Dr&&d===Rr?j:Vr},hd=function(t,A){A||(A={lineBreak:"normal",wordBreak:"normal"});var e=ud(t,A.lineBreak),r=e[0],s=e[1],n=e[2];(A.wordBreak==="break-all"||A.wordBreak==="break-word")&&(s=s.map(function(a){return[ZA,Ye,Ba].indexOf(a)!==-1?Wt:a}));var o=A.wordBreak==="keep-all"?n.map(function(a,c){return a&&t[c]>=19968&&t[c]<=40959}):void 0;return[r,s,o]},pd=(function(){function t(A,e,r,s){this.codePoints=A,this.required=e===ga,this.start=r,this.end=s}return t.prototype.slice=function(){return mA.apply(void 0,this.codePoints.slice(this.start,this.end))},t})(),wd=function(t,A){var e=Sr(t),r=hd(e,A),s=r[0],n=r[1],o=r[2],a=e.length,c=0,g=0;return{next:function(){if(g>=a)return{done:!0,value:null};for(var d=j;g<a&&(d=fd(e,n,s,++g,o))===j;);if(d!==j||g===a){var B=new pd(e,d,c,g);return c=g,{value:B,done:!1}}return{done:!0,value:null}}}};const md=1,Cd=2,ut=4,wa=8,Mr=10,ma=47,Xt=92,Qd=9,xd=32,Nr=34,zt=61,Ud=35,Fd=36,yd=37,_r=39,Pr=40,Jt=41,Ed=95,_A=45,bd=33,vd=60,Id=62,Hd=64,Sd=91,Ld=93,Td=61,Od=123,jr=63,Kd=125,Ca=124,Dd=126,Rd=128,Qa=65533,Un=42,Ze=43,kd=44,Gd=58,Vd=59,Yt=46,Md=0,Nd=8,_d=11,Pd=14,jd=31,Wd=127,ue=-1,xa=48,Ua=97,Fa=101,Xd=102,zd=117,Jd=122,ya=65,Ea=69,ba=70,Yd=85,Zd=90,RA=t=>t>=xa&&t<=57,$d=t=>t>=55296&&t<=57343,ft=t=>RA(t)||t>=ya&&t<=ba||t>=Ua&&t<=Xd,qd=t=>t>=Ua&&t<=Jd,AB=t=>t>=ya&&t<=Zd,eB=t=>qd(t)||AB(t),tB=t=>t>=Rd,Wr=t=>t===Mr||t===Qd||t===xd,Xr=t=>eB(t)||tB(t)||t===Ed,va=t=>Xr(t)||RA(t)||t===_A,rB=t=>t>=Md&&t<=Nd||t===_d||t>=Pd&&t<=jd||t===Wd,Re=(t,A)=>t!==Xt?!1:A!==Mr,zr=(t,A,e)=>t===_A?Xr(A)||Re(A,e):Xr(t)?!0:!!(t===Xt&&Re(t,A)),Fn=(t,A,e)=>t===Ze||t===_A?RA(A)?!0:A===Yt&&RA(e):RA(t===Yt?A:t),sB=t=>{let A=0,e=1;(t[A]===Ze||t[A]===_A)&&(t[A]===_A&&(e=-1),A++);const r=[];for(;RA(t[A]);)r.push(t[A++]);const s=r.length?parseInt(mA(...r),10):0;t[A]===Yt&&A++;const n=[];for(;RA(t[A]);)n.push(t[A++]);const o=n.length,a=o?parseInt(mA(...n),10):0;(t[A]===Ea||t[A]===Fa)&&A++;let c=1;(t[A]===Ze||t[A]===_A)&&(t[A]===_A&&(c=-1),A++);const g=[];for(;RA(t[A]);)g.push(t[A++]);const d=g.length?parseInt(mA(...g),10):0;return e*(s+a*Math.pow(10,-o))*Math.pow(10,c*d)},nB={type:2},oB={type:3},aB={type:4},iB={type:13},cB={type:8},lB={type:21},dB={type:9},BB={type:10},gB={type:11},uB={type:12},fB={type:14},Jr={type:23},hB={type:1},pB={type:25},wB={type:24},mB={type:26},CB={type:27},QB={type:28},xB={type:29},UB={type:31},yn={type:32};class Ia{constructor(){this._value=[]}write(A){this._value=this._value.concat(Sr(A))}read(){const A=[];let e=this.consumeToken();for(;e!==yn;)A.push(e),e=this.consumeToken();return A}consumeToken(){const A=this.consumeCodePoint();switch(A){case Nr:return this.consumeStringToken(Nr);case Ud:const e=this.peekCodePoint(0),r=this.peekCodePoint(1),s=this.peekCodePoint(2);if(va(e)||Re(r,s)){const f=zr(e,r,s)?Cd:md;return{type:5,value:this.consumeName(),flags:f}}break;case Fd:if(this.peekCodePoint(0)===zt)return this.consumeCodePoint(),iB;break;case _r:return this.consumeStringToken(_r);case Pr:return nB;case Jt:return oB;case Un:if(this.peekCodePoint(0)===zt)return this.consumeCodePoint(),fB;break;case Ze:if(Fn(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case kd:return aB;case _A:const n=A,o=this.peekCodePoint(0),a=this.peekCodePoint(1);if(Fn(n,o,a))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(zr(n,o,a))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(o===_A&&a===Id)return this.consumeCodePoint(),this.consumeCodePoint(),wB;break;case Yt:if(Fn(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case ma:if(this.peekCodePoint(0)===Un)for(this.consumeCodePoint();;){let f=this.consumeCodePoint();if(f===Un&&(f=this.consumeCodePoint(),f===ma))return this.consumeToken();if(f===ue)return this.consumeToken()}break;case Gd:return mB;case Vd:return CB;case vd:if(this.peekCodePoint(0)===bd&&this.peekCodePoint(1)===_A&&this.peekCodePoint(2)===_A)return this.consumeCodePoint(),this.consumeCodePoint(),pB;break;case Hd:const c=this.peekCodePoint(0),g=this.peekCodePoint(1),d=this.peekCodePoint(2);if(zr(c,g,d))return{type:7,value:this.consumeName()};break;case Sd:return QB;case Xt:if(Re(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case Ld:return xB;case Td:if(this.peekCodePoint(0)===zt)return this.consumeCodePoint(),cB;break;case Od:return gB;case Kd:return uB;case zd:case Yd:const B=this.peekCodePoint(0),u=this.peekCodePoint(1);return B===Ze&&(ft(u)||u===jr)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case Ca:if(this.peekCodePoint(0)===zt)return this.consumeCodePoint(),dB;if(this.peekCodePoint(0)===Ca)return this.consumeCodePoint(),lB;break;case Dd:if(this.peekCodePoint(0)===zt)return this.consumeCodePoint(),BB;break;case ue:return yn}return Wr(A)?(this.consumeWhiteSpace(),UB):RA(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):Xr(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(;ft(e)&&A.length<6;)A.push(e),e=this.consumeCodePoint();let r=!1;for(;e===jr&&A.length<6;)A.push(e),e=this.consumeCodePoint(),r=!0;if(r){const n=parseInt(mA(...A.map(a=>a===jr?xa:a)),16),o=parseInt(mA(...A.map(a=>a===jr?ba:a)),16);return{type:30,start:n,end:o}}const s=parseInt(mA(...A),16);if(this.peekCodePoint(0)===_A&&ft(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();const n=[];for(;ft(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)===Pr?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Pr?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}}consumeUrlToken(){const A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===ue)return{type:22,value:""};const e=this.peekCodePoint(0);if(e===_r||e===Nr){const r=this.consumeStringToken(this.consumeCodePoint());return r.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===ue||this.peekCodePoint(0)===Jt)?(this.consumeCodePoint(),{type:22,value:r.value}):(this.consumeBadUrlRemnants(),Jr)}for(;;){const r=this.consumeCodePoint();if(r===ue||r===Jt)return{type:22,value:mA(...A)};if(Wr(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===ue||this.peekCodePoint(0)===Jt?(this.consumeCodePoint(),{type:22,value:mA(...A)}):(this.consumeBadUrlRemnants(),Jr);if(r===Nr||r===_r||r===Pr||rB(r))return this.consumeBadUrlRemnants(),Jr;if(r===Xt)if(Re(r,this.peekCodePoint(0)))A.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Jr;else A.push(r)}}consumeWhiteSpace(){for(;Wr(this.peekCodePoint(0));)this.consumeCodePoint()}consumeBadUrlRemnants(){for(;;){const A=this.consumeCodePoint();if(A===Jt||A===ue)return;Re(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===ue||s===void 0||s===A)return e+=this.consumeStringSlice(r),{type:0,value:e};if(s===Mr)return this._value.splice(0,r),hB;if(s===Xt){const n=this._value[r+1];n!==ue&&n!==void 0&&(n===Mr?(e+=this.consumeStringSlice(r),r=-1,this._value.shift()):Re(s,n)&&(e+=this.consumeStringSlice(r),e+=mA(this.consumeEscapedCodePoint()),r=-1))}r++}while(!0)}consumeNumber(){const A=[];let e=ut,r=this.peekCodePoint(0);for((r===Ze||r===_A)&&A.push(this.consumeCodePoint());RA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());r=this.peekCodePoint(0);let s=this.peekCodePoint(1);if(r===Yt&&RA(s))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=wa;RA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());r=this.peekCodePoint(0),s=this.peekCodePoint(1);const n=this.peekCodePoint(2);if((r===Ea||r===Fa)&&((s===Ze||s===_A)&&RA(n)||RA(s)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=wa;RA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[sB(A),e]}consumeNumericToken(){const[A,e]=this.consumeNumber(),r=this.peekCodePoint(0),s=this.peekCodePoint(1),n=this.peekCodePoint(2);if(zr(r,s,n)){const o=this.consumeName();return{type:15,number:A,flags:e,unit:o}}return r===yd?(this.consumeCodePoint(),{type:16,number:A,flags:e}):{type:17,number:A,flags:e}}consumeEscapedCodePoint(){const A=this.consumeCodePoint();if(ft(A)){let e=mA(A);for(;ft(this.peekCodePoint(0))&&e.length<6;)e+=mA(this.consumeCodePoint());Wr(this.peekCodePoint(0))&&this.consumeCodePoint();const r=parseInt(e,16);return r===0||$d(r)||r>1114111?Qa:r}return A===ue?Qa:A}consumeName(){let A="";for(;;){const e=this.consumeCodePoint();if(va(e))A+=mA(e);else if(Re(e,this.peekCodePoint(0)))A+=mA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(e),A}}}class ht{constructor(A){this._tokens=A}static create(A){const e=new Ia;return e.write(A),new ht(e.read())}static parseValue(A){return ht.create(A).parseComponentValue()}static parseValues(A){return ht.create(A).parseComponentValues()}parseComponentValue(){let A=this.consumeToken();for(;A.type===31;)A=this.consumeToken();if(A.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);const e=this.consumeComponentValue();do A=this.consumeToken();while(A.type===31);if(A.type===32)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")}parseComponentValues(){const A=[];for(;;){const e=this.consumeComponentValue();if(e.type===32)return A;A.push(e),A.push()}}consumeComponentValue(){const A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A}consumeSimpleBlock(A){const e={type:A,values:[]};let r=this.consumeToken();for(;;){if(r.type===32||yB(r,A))return e;this.reconsumeToken(r),e.values.push(this.consumeComponentValue()),r=this.consumeToken()}}consumeFunction(A){const e={name:A.value,values:[],type:18};for(;;){const r=this.consumeToken();if(r.type===32||r.type===3)return e;this.reconsumeToken(r),e.values.push(this.consumeComponentValue())}}consumeToken(){const A=this._tokens.shift();return typeof A>"u"?yn:A}reconsumeToken(A){this._tokens.unshift(A)}}const fe=t=>t.type===15,UA=t=>t.type===17,M=t=>t.type===20,FB=t=>t.type===0,Zt=(t,A)=>M(t)&&t.value===A,Yr=t=>t.type!==31,TA=t=>t.type!==31&&t.type!==4,ae=t=>{const A=[];let e=[];return t.forEach(r=>{if(r.type===4){if(e.length===0)throw new Error("Error parsing function args, zero tokens for arg");A.push(e),e=[];return}r.type!==31&&e.push(r)}),e.length&&A.push(e),A},yB=(t,A)=>A===11&&t.type===12||A===28&&t.type===29?!0:A===2&&t.type===3,gA=(t,A,e)=>Math.min(Math.max(t,A),e),PA=(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]],ke=t=>PA([3.2409699419045226,-1.537383177570094,-.4986107602930034,-.9692436362808796,1.8759675015077202,.04155505740717559,.05563007969699366,-.20397695888897652,1.0569715142428786],t),En=t=>PA([.41239079926595934,.357584339383878,.1804807884018343,.21263900587151027,.715168678767756,.07219231536073371,.01933081871559182,.11919477979462598,.9505321522496607],t),$e=t=>t.map(A=>{const e=A<0?-1:1,r=Math.abs(A);return r>.0031308?e*(1.055*r**(1/2.4)-.055):12.92*A}),bn=t=>t.map(A=>{const e=A<0?-1:1,r=Math.abs(A);return r<=.04045?A/12.92:e*((r+.055)/1.055)**2.4}),EB=t=>{const[A,e,r]=$e(ke([t[0],t[1],t[2]]));return[A,e,r,t[3]]},bB=t=>{const[A,e,r]=ke([t[0],t[1],t[2]]);return[gA(Math.round(A*255),0,255),gA(Math.round(e*255),0,255),gA(Math.round(r*255),0,255),t[3]]},Ge=t=>t.type===17||t.type===15,q=t=>t.type===16||Ge(t),vB=t=>t.type===18&&t.name==="calc",IB=(t,A=0)=>{const e=r=>{let s="";for(const n of r)if(n.type!==31){if(n.type===18)if(n.name==="calc"){const o=e(n.values);if(o===null)return null;s+=`(${o})`}else return null;else if(n.type===17)s+=n.number.toString();else if(n.type===15)n.unit==="px"?s+=n.number.toString():n.unit==="rem"||n.unit==="em"?s+=(n.number*16).toString():s+=n.number.toString();else if(n.type===16)s+=(n.number/100*A).toString();else if(n.type===6){const o=n.value;o==="+"||o==="-"||o==="*"||o==="/"?s+=` ${o} `:o==="("?s+="(":o===")"&&(s+=")")}}return s};try{const r=e(t.values);if(r===null||r.trim()==="")return null;const s=new Function("return "+r)();if(typeof s=="number"&&!isNaN(s))return{type:17,number:s,flags:ut}}catch{return null}return null},Ha=t=>t.length>1?[t[0],t[1]]:[t[0]],FA={type:17,number:0,flags:ut},qe={type:16,number:50,flags:ut},he={type:16,number:100,flags:ut},$t=(t,A,e)=>{const[r,s]=t;return[G(r,A),G(typeof s<"u"?s:r,e)]},G=(t,A)=>{if(t.type===16)return t.number/100*A;if(fe(t))switch(t.unit){case"rem":case"em":return 16*t.number;default:return t.number}return t.number},Sa="deg",La="grad",Ta="rad",Oa="turn",pt={name:"angle",parse:(t,A)=>{if(A.type===15)switch(A.unit){case Sa:return Math.PI*A.number/180;case La:return Math.PI/200*A.number;case Ta:return A.number;case Oa:return Math.PI*2*A.number}throw new Error("Unsupported angle type")}},Ka=t=>t.type===15&&(t.unit===Sa||t.unit===La||t.unit===Ta||t.unit===Oa),Da=t=>{switch(t.filter(M).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 Ae(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[FA,he];case"to right":case"left":return Ae(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[he,he];case"to bottom":case"top":return Ae(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[he,FA];case"to left":case"right":return Ae(270)}return 0},Ae=t=>Math.PI*t/180,Ve=t=>(255&t)===0,sA=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})`},ie=(t,A,e,r)=>(t<<24|A<<16|e<<8|Math.round(r*255)<<0)>>>0,Me=(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},At=t=>(t[0].type===20?t[0].value:"unknown")==="from",HB=t=>ie(gA(Math.round(t[0]*255),0,255),gA(Math.round(t[1]*255),0,255),gA(Math.round(t[2]*255),0,255),gA(t[3],0,1)),vn=([t,A,e,r])=>{const s=$e([t,A,e]);return ie(gA(Math.round(s[0]*255),0,255),gA(Math.round(s[1]*255),0,255),gA(Math.round(s[2]*255),0,255),r)},qt=t=>{const A=ke([t[0],t[1],t[2]]);return vn([A[0],A[1],A[2],t[3]])},SB=(t,A)=>{if(At(A.filter(TA)))throw new Error("Relative color not supported for lab()");const[e,r,s,n]=Zr(A),o=$e(ke(As([e,r,s])));return ie(gA(Math.round(o[0]*255),0,255),gA(Math.round(o[1]*255),0,255),gA(Math.round(o[2]*255),0,255),n)},LB=(t,A)=>{if(At(A.filter(TA)))throw new Error("Relative color not supported for oklab()");const[e,r,s,n]=Zr(A),o=$e(ke(qr([e,r,s])));return ie(gA(Math.round(o[0]*255),0,255),gA(Math.round(o[1]*255),0,255),gA(Math.round(o[2]*255),0,255),n)},TB=(t,A)=>{if(At(A.filter(TA)))throw new Error("Relative color not supported for oklch()");const[e,r,s,n]=Va(A),o=$e(ke(qr($r([e,r,s]))));return ie(gA(Math.round(o[0]*255),0,255),gA(Math.round(o[1]*255),0,255),gA(Math.round(o[2]*255),0,255),n)},OB=(t,A)=>{if(At(A.filter(TA)))throw new Error("Relative color not supported for lch()");const[e,r,s,n]=Ga(A),o=$e(ke(As($r([e,r,s]))));return ie(gA(Math.round(o[0]*255),0,255),gA(Math.round(o[1]*255),0,255),gA(Math.round(o[2]*255),0,255),n)},Ra=(t,A)=>{const e=A.filter(TA),[r,s,n,o]=e,a=(r.type===17?Ae(r.number):pt.parse(t,r))/(Math.PI*2),c=q(s)?s.number/100:0,g=q(n)?n.number/100:0,d=typeof o<"u"&&q(o)?G(o,1):1;return[a,c,g,d]},ka=(t,A)=>{if(At(A))throw new Error("Relative color not supported for hsl()");const[e,r,s,n]=Ra(t,A),o=Na([e,r,s]);return ie(o[0]*255,o[1]*255,o[2]*255,r===0?1:n)},Ga=t=>{const A=t.filter(TA),e=q(A[0])?A[0].number:0,r=q(A[1])?A[1].number:0,s=UA(A[2])||fe(A[2])?A[2].number:0,n=typeof A[4]<"u"&&q(A[4])?G(A[4],1):1;return[e,r,s,n]},Zr=t=>{const A=t.filter(TA),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])||fe(A[2])?A[2].number:0,n=typeof A[4]<"u"&&q(A[4])?G(A[4],1):1;return[e,r,s,n]},Va=t=>{const A=t.filter(TA),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])||fe(A[2])?A[2].number:0,n=typeof A[4]<"u"&&q(A[4])?G(A[4],1):1;return[e,r,s,n]},Ma=t=>PA([1.0479297925449969,.022946870601609652,-.05019226628920524,.02962780877005599,.9904344267538799,-.017073799063418826,-.009243040646204504,.015055191490298152,.7518742814281371],t),In=t=>PA([.955473421488075,-.02309845494876471,.06325924320057072,-.0283697093338637,1.0099953980813041,.021041441191917323,.012314014864481998,-.020507649298898964,1.330365926242124],t),Hn=(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),Na=([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=Hn(s,r,t+1/3),o=Hn(s,r,t),a=Hn(s,r,t-1/3);return[n,o,a]},$r=([t,A,e])=>(A<0&&(A=0),isNaN(e)&&(e=0),[t,A*Math.cos(e*Math.PI/180),A*Math.sin(e*Math.PI/180)]),qr=t=>{const A=PA([1,.3963377773761749,.2158037573099136,1,-.1055613458156586,-.0638541728258133,1,-.0894841775298119,-1.2914855480194092],t),e=A.map(r=>r**3);return PA([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 In([o[0],o[1],o[2]])},KB=(t,A)=>{const e=A.filter(TA);if(e.length===3){const[r,s,n]=e.map(Me),o=bn([r/255,s/255,n/255]),[a,c,g]=En([o[0],o[1],o[2]]);return[a,c,g,1]}if(e.length===4){const[r,s,n,o]=e.map(Me),a=bn([r/255,s/255,n/255]),[c,g,d]=En([a[0],a[1],a[2]]);return[c,g,d,o]}return[0,0,0,1]},DB=(t,A)=>{const[e,r,s,n]=Ra(t,A),o=bn(Na([e,r,s])),[a,c,g]=En([o[0],o[1],o[2]]);return[a,c,g,n]},RB=(t,A)=>{const[e,r,s,n]=Zr(A),[o,a,c]=As([e,r,s]);return[o,a,c,n]},kB=(t,A)=>{const[e,r,s,n]=Ga(A),[o,a,c]=As($r([e,r,s]));return[o,a,c,n]},GB=(t,A)=>{const[e,r,s,n]=Va(A),[o,a,c]=qr($r([e,r,s]));return[o,a,c,n]},VB=(t,A)=>{const[e,r,s,n]=Zr(A),[o,a,c]=qr([e,r,s]);return[o,a,c,n]},MB=t=>In([t[0],t[1],t[2]]),_a=t=>t,NB=t=>{const[A,e,r]=Ma([t[0],t[2],t[3]]);return[A,e,r,t[3]]},Pa=t=>qt([t[0],t[1],t[2],t[3]]),_B=t=>{const A=MB([t[0],t[1],t[2]]);return qt([A[0],A[1],A[2],t[3]])},PB=t=>PA([.4865709486482162,.26566769316909306,.1982172852343625,.2289745640697488,.6917385218365064,.079286914093745,0,.04511338185890264,1.043944368900976],t),jB=t=>PA([2.493496911941425,-.9313836179191239,-.40271078445071684,-.8294889695615747,1.7626640603183463,.023624685841943577,.03584583024378447,-.07617238926804182,.9568845240076872],t),WB=t=>t.map(A=>{const e=A<0?-1:1;return A*e<=.04045?A/12.92:e*((A+.055)/1.055)**2.4||0}),XB=t=>$e(t),zB=t=>{const A=WB([t[0],t[1],t[2]]);return PB([A[0],A[1],A[2]])},JB=t=>{const[A,e,r]=XB(jB([t[0],t[1],t[2]]));return[A,e,r,t[3]]},YB=t=>{const A=zB([t[0],t[1],t[2]]);return qt([A[0],A[1],A[2],t[3]])},ZB=t=>PA([2.0415879038107465,-.5650069742788596,-.34473135077832956,-.9692436362808795,1.8759675015077202,.04155505740717557,.013444280632031142,-.11836239223101838,1.0151749943912054],t),$B=t=>PA([.5766690429101305,.1855582379065463,.1882286462349947,.29734497525053605,.6273635662554661,.0752914584939978,.02703136138641234,.07068885253582723,.9913375368376388],t),qB=t=>{const A=t.map(e=>{const r=e<0?-1:1,s=Math.abs(e);return r*s**2.19921875});return[A[0],A[1],A[2]]},Ag=t=>{const A=t.map(e=>{const r=e<0?-1:1,s=Math.abs(e);return r*s**.4547069271758437});return[A[0],A[1],A[2]]},eg=t=>{const[A,e,r]=Ag(ZB([t[0],t[1],t[2]]));return[A,e,r,t[3]]},tg=t=>{const A=ke($B(qB([t[0],t[1],t[2]])));return vn([A[0],A[1],A[2],t[3]])},rg=t=>PA([.7977666449006423,.13518129740053308,.0313477341283922,.2880748288194013,.711835234241873,8993693872564e-17,0,0,.8251046025104602],t),sg=t=>PA([1.3457868816471583,-.25557208737979464,-.05110186497554526,-.5446307051249019,1.5082477428451468,.02052744743642139,0,0,1.2119675456389452],t),ng=t=>t.map(A=>A<16/512?A/16:A**1.8),og=t=>t.map(A=>A>1/512?A**(1/1.8):A*16),ag=t=>{const A=ng([t[0],t[1],t[2]]);return In(rg([A[0],A[1],A[2]]))},ig=t=>{const[A,e,r]=og(sg(Ma([t[0],t[1],t[2]])));return[A,e,r,t[3]]},cg=t=>{const A=ag([t[0],t[1],t[2]]);return qt([A[0],A[1],A[2],t[3]])},es=1.09929682680944,ja=.018053968510807,lg=t=>t.map(function(A){return A<ja*4.5?A/4.5:Math.pow((A+es-1)/es,1/.45)}),dg=t=>t.map(function(A){return A>=ja?es*Math.pow(A,.45)-(es-1):4.5*A}),Bg=t=>PA([.6369580483012914,.14461690358620832,.1688809751641721,.2627002120112671,.6779980715188708,.05930171646986196,0,.028072693049087428,1.060985057710791],t),gg=t=>PA([1.716651187971268,-.355670783776392,-.25336628137366,-.666684351832489,1.616481236634939,.0157685458139111,.017639857445311,-.042770613257809,.942103121235474],t),ug=t=>{const A=lg([t[0],t[1],t[2]]);return Bg([A[0],A[1],A[2]])},fg=t=>{const[A,e,r]=dg(gg([t[0],t[1],t[2]]));return[A,e,r,t[3]]},hg=t=>{const A=ug([t[0],t[1],t[2]]);return qt([A[0],A[1],A[2],t[3]])},Ne={name:"color",parse:(t,A)=>{if(A.type===18){const e=Cg[A.name];if(typeof e>"u")throw new Error(`Attempting to parse an unsupported color function "${A.name}"`);return e(t,A.values)}if(A.type===5){const[e,r,s,n]=Wa(A);return ie(e,r,s,n)}if(A.type===20){const e=pe[A.value.toUpperCase()];if(typeof e<"u")return e}return pe.TRANSPARENT}},Wa=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]},Xa=(t,A)=>{const e=A.filter(TA);if(At(e))throw new Error("Relative color not supported for rgb()");if(e.length===3){const[r,s,n]=e.map(Me);return ie(r,s,n,1)}if(e.length===4){const[r,s,n,o]=e.map(Me);return ie(r,s,n,o)}if(e.length===5&&e[3].type===6&&e[3].value==="/"){const r=Me(e[0],0),s=Me(e[1],1),n=Me(e[2],2),o=Me(e[4],3);return ie(r,s,n,o)}return 0},pg=(t,A)=>{const e=A.filter(TA),r=e[0].type===20?e[0].value:"unknown";if(!At(e)){const n=r,o=za[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,c=UA(e[2])?e[2].number:0,g=UA(e[3])?e[3].number:0,d=e.length>4&&e[4].type===6&&e[4].value==="/"&&UA(e[5])?e[5].number:1;return o([a,c,g,d])}else{const n=(m,T)=>{if(UA(T))return T.number;const I=K=>K==="r"||K==="x"?0:K==="g"||K==="y"?1:2;if(M(T)){const K=I(T.value);return m[K]}const H=K=>{const N=K.filter(TA);let W="(";for(const R of N)W+=R.type===18&&R.name==="calc"?H(R.values):UA(R)?R.number:R.type===6||M(R)?R.value:"";return W+=")",W};if(T.type===18){const K=T.values.filter(TA);if(T.name==="calc"){const N=H(K).replace(/r|x/,m[0].toString()).replace(/g|y/,m[1].toString()).replace(/b|z/,m[2].toString());return new Function("return "+N)()}}return null},o=e[1].type===18?e[1].name:M(e[1])||e[1].type===5?"rgb":"unknown",a=M(e[2])?e[2].value:"unknown";let c=e[1].type===18?e[1].values:M(e[1])?[e[1]]:[];if(M(e[1])){if(typeof pe[e[1].value.toUpperCase()]>"u")throw new Error("Attempting to use unknown color in relative color 'from'");{const T=wt(t,e[1].value),I=255&T,H=255&T>>8,K=255&T>>16;c=[{type:17,number:255&T>>24,flags:1},{type:17,number:K,flags:1},{type:17,number:H,flags:1},{type:17,number:I>1?I/255:I,flags:1}]}}else if(e[1].type===5){const[m,T,I,H]=Wa(e[1]);c=[{type:17,number:m,flags:1},{type:17,number:T,flags:1},{type:17,number:I,flags:1},{type:17,number:H>1?H/255:H,flags:1}]}if(c.length===0)throw new Error("Attempting to use unknown color in relative color 'from'");if(a==="unknown")throw new Error("Attempting to use unknown colorspace in relative color 'to'");const g=wg[o],d=mg[a],B=za[a];if(typeof g>"u")throw new Error(`Attempting to parse an unsupported color space "${o}" for color() function`);if(typeof d>"u")throw new Error(`Attempting to parse an unsupported color space "${a}" for color() function`);const u=g(t,c),f=d(u),w=n(f,e[3]),C=n(f,e[4]),F=n(f,e[5]),y=e.length>6&&e[6].type===6&&e[6].value==="/"&&UA(e[7])?e[7].number:1;if(w===null||C===null||F===null)throw new Error("Invalid relative color in color() function");return B([w,C,F,y])}},za={srgb:HB,"srgb-linear":vn,"display-p3":YB,"a98-rgb":tg,"prophoto-rgb":cg,xyz:Pa,"xyz-d50":_B,"xyz-d65":Pa,rec2020:hg},wg={rgb:KB,hsl:DB,lab:RB,lch:kB,oklab:VB,oklch:GB},mg={srgb:EB,"srgb-linear":bB,"display-p3":JB,"a98-rgb":eg,"prophoto-rgb":ig,xyz:_a,"xyz-d50":NB,"xyz-d65":_a,rec2020:fg},Cg={hsl:ka,hsla:ka,rgb:Xa,rgba:Xa,lch:OB,oklch:TB,oklab:LB,lab:SB,color:pg},wt=(t,A)=>Ne.parse(t,ht.create(A).parseComponentValue()),pe={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Qg={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:(t,A)=>A.map(e=>{if(M(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})},xg={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ts=(t,A)=>{const e=Ne.parse(t,A[0]),r=A[1];return r&&q(r)?{color:e,stop:r}:{color:e,stop:null}},Ja=(t,A)=>{const e=t[0],r=t[t.length-1];e.stop===null&&(e.stop=FA),r.stop===null&&(r.stop=he);const s=[];let n=0;for(let a=0;a<t.length;a++){const c=t[a].stop;if(c!==null){const g=G(c,A);g>n?s.push(g):s.push(n),n=g}else s.push(null)}let o=null;for(let a=0;a<s.length;a++){const c=s[a];if(c===null)o===null&&(o=a);else if(o!==null){const g=a-o,d=s[o-1],B=(c-d)/(g+1);for(let u=1;u<=g;u++)s[o+u-1]=B*u;o=null}}return t.map(({color:a},c)=>({color:a,stop:Math.max(Math.min(1,s[c]/A),0)}))},Ug=(t,A,e)=>{const r=A/2,s=e/2,n=G(t[0],A)-r,o=s-G(t[1],e);return(Math.atan2(o,n)+Math.PI*2)%(Math.PI*2)},Fg=(t,A,e)=>{const r=typeof t=="number"?t:Ug(t,A,e),s=Math.abs(A*Math.sin(r))+Math.abs(e*Math.cos(r)),n=A/2,o=e/2,a=s/2,c=Math.sin(r-Math.PI/2)*a,g=Math.cos(r-Math.PI/2)*a;return[s,n-g,n+g,o-c,o+c]},ce=(t,A)=>Math.sqrt(t*t+A*A),Ya=(t,A,e,r,s)=>[[0,0],[0,A],[t,0],[t,A]].reduce((o,a)=>{const[c,g]=a,d=ce(e-c,r-g);return(s?d<o.optimumDistance:d>o.optimumDistance)?{optimumCorner:a,optimumDistance:d}:o},{optimumDistance:s?1/0:-1/0,optimumCorner:null}).optimumCorner,yg=(t,A,e,r,s)=>{let n=0,o=0;switch(t.size){case 0:t.shape===0?n=o=Math.min(Math.abs(A),Math.abs(A-r),Math.abs(e),Math.abs(e-s)):t.shape===1&&(n=Math.min(Math.abs(A),Math.abs(A-r)),o=Math.min(Math.abs(e),Math.abs(e-s)));break;case 2:if(t.shape===0)n=o=Math.min(ce(A,e),ce(A,e-s),ce(A-r,e),ce(A-r,e-s));else if(t.shape===1){const a=Math.min(Math.abs(e),Math.abs(e-s))/Math.min(Math.abs(A),Math.abs(A-r)),[c,g]=Ya(r,s,A,e,!0);n=ce(c-A,(g-e)/a),o=a*n}break;case 1:t.shape===0?n=o=Math.max(Math.abs(A),Math.abs(A-r),Math.abs(e),Math.abs(e-s)):t.shape===1&&(n=Math.max(Math.abs(A),Math.abs(A-r)),o=Math.max(Math.abs(e),Math.abs(e-s)));break;case 3:if(t.shape===0)n=o=Math.max(ce(A,e),ce(A,e-s),ce(A-r,e),ce(A-r,e-s));else if(t.shape===1){const a=Math.max(Math.abs(e),Math.abs(e-s))/Math.max(Math.abs(A),Math.abs(A-r)),[c,g]=Ya(r,s,A,e,!1);n=ce(c-A,(g-e)/a),o=a*n}break}return Array.isArray(t.size)&&(n=G(t.size[0],r),o=t.size.length===2?G(t.size[1],s):n),[n,o]},Eg=(t,A)=>{let e=Ae(180);const r=[];return ae(A).forEach((s,n)=>{if(n===0){const a=s[0];if(a.type===20&&a.value==="to"){e=Da(s);return}else if(Ka(a)){e=pt.parse(t,a);return}}const o=ts(t,s);r.push(o)}),{angle:e,stops:r,type:1}},rs=(t,A)=>{let e=Ae(180);const r=[];return ae(A).forEach((s,n)=>{if(n===0){const a=s[0];if(a.type===20&&["top","left","right","bottom"].indexOf(a.value)!==-1){e=Da(s);return}else if(Ka(a)){e=(pt.parse(t,a)+Ae(270))%Ae(360);return}}const o=ts(t,s);r.push(o)}),{angle:e,stops:r,type:1}},bg=(t,A)=>{const e=Ae(180),r=[];let s=1;const n=0,o=3,a=[];return ae(A).forEach((c,g)=>{const d=c[0];if(g===0){if(M(d)&&d.value==="linear"){s=1;return}else if(M(d)&&d.value==="radial"){s=2;return}}if(d.type===18){if(d.name==="from"){const B=Ne.parse(t,d.values[0]);r.push({stop:FA,color:B})}else if(d.name==="to"){const B=Ne.parse(t,d.values[0]);r.push({stop:he,color:B})}else if(d.name==="color-stop"){const B=d.values.filter(TA);if(B.length===2){const u=Ne.parse(t,B[1]),f=B[0];UA(f)&&r.push({stop:{type:16,number:f.number*100,flags:f.flags},color:u})}}}}),s===1?{angle:(e+Ae(180))%Ae(360),stops:r,type:s}:{size:o,shape:n,stops:r,position:a,type:s}},Za="closest-side",$a="farthest-side",qa="closest-corner",Ai="farthest-corner",ei="circle",ti="ellipse",ri="cover",si="contain",vg=(t,A)=>{let e=0,r=3;const s=[],n=[];return ae(A).forEach((o,a)=>{let c=!0;if(a===0){let g=!1;c=o.reduce((d,B)=>{if(g)if(M(B))switch(B.value){case"center":return n.push(qe),d;case"top":case"left":return n.push(FA),d;case"right":case"bottom":return n.push(he),d}else(q(B)||Ge(B))&&n.push(B);else if(M(B))switch(B.value){case ei:return e=0,!1;case ti:return e=1,!1;case"at":return g=!0,!1;case Za:return r=0,!1;case ri:case $a:return r=1,!1;case si:case qa:return r=2,!1;case Ai:return r=3,!1}else if(Ge(B)||q(B))return Array.isArray(r)||(r=[]),r.push(B),!1;return d},c)}if(c){const g=ts(t,o);s.push(g)}}),{size:r,shape:e,stops:s,position:n,type:2}},ss=(t,A)=>{let e=0,r=3;const s=[],n=[];return ae(A).forEach((o,a)=>{let c=!0;if(a===0?c=o.reduce((g,d)=>{if(M(d))switch(d.value){case"center":return n.push(qe),!1;case"top":case"left":return n.push(FA),!1;case"right":case"bottom":return n.push(he),!1}else if(q(d)||Ge(d))return n.push(d),!1;return g},c):a===1&&(c=o.reduce((g,d)=>{if(M(d))switch(d.value){case ei:return e=0,!1;case ti:return e=1,!1;case si:case Za:return r=0,!1;case $a:return r=1,!1;case qa:return r=2,!1;case ri:case Ai:return r=3,!1}else if(Ge(d)||q(d))return Array.isArray(r)||(r=[]),r.push(d),!1;return g},c)),c){const g=ts(t,o);s.push(g)}}),{size:r,shape:e,stops:s,position:n,type:2}},Ig=t=>t.type===1,Hg=t=>t.type===2,Sn={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=ni[A.name];if(typeof e>"u")throw new Error(`Attempting to parse an unsupported image function "${A.name}"`);return e(t,A.values)}throw new Error(`Unsupported image type ${A.type}`)}};function Sg(t){return!(t.type===20&&t.value==="none")&&(t.type!==18||!!ni[t.name])}const ni={"linear-gradient":Eg,"-moz-linear-gradient":rs,"-ms-linear-gradient":rs,"-o-linear-gradient":rs,"-webkit-linear-gradient":rs,"radial-gradient":vg,"-moz-radial-gradient":ss,"-ms-radial-gradient":ss,"-o-radial-gradient":ss,"-webkit-radial-gradient":ss,"-webkit-gradient":bg},Lg={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:(t,A)=>{if(A.length===0)return[];const e=A[0];return e.type===20&&e.value==="none"?[]:A.filter(r=>TA(r)&&Sg(r)).map(r=>Sn.parse(t,r))}},Tg={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:(t,A)=>A.map(e=>{if(M(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})},Og={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:(t,A)=>ae(A).map(e=>e.map(r=>vB(r)?IB(r,0):q(r)?r:null).filter(r=>r!==null)).map(Ha)},Kg={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:(t,A)=>ae(A).map(e=>e.filter(M).map(r=>r.value).join(" ")).map(Dg)},Dg=t=>{switch(t){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}};var mt;(function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"})(mt||(mt={}));const Rg={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:(t,A)=>ae(A).map(e=>e.filter(kg))},kg=t=>M(t)||q(t),ns=t=>({name:`border-${t}-color`,initialValue:"transparent",prefix:!1,type:3,format:"color"}),Gg=ns("top"),Vg=ns("right"),Mg=ns("bottom"),Ng=ns("left"),os=t=>({name:`border-radius-${t}`,initialValue:"0 0",prefix:!1,type:1,parse:(A,e)=>Ha(e.filter(q))}),_g=os("top-left"),Pg=os("top-right"),jg=os("bottom-right"),Wg=os("bottom-left"),as=t=>({name:`border-${t}-style`,initialValue:"solid",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}),Xg=as("top"),zg=as("right"),Jg=as("bottom"),Yg=as("left"),is=t=>({name:`border-${t}-width`,initialValue:"0",type:0,prefix:!1,parse:(A,e)=>fe(e)?e.number:0}),Zg=is("top"),$g=is("right"),qg=is("bottom"),Au=is("left"),Ln={type:0},Tn=t=>{const[A]=t;return A?M(A)?A.value==="farthest-side"?"farthest-side":"closest-side":q(A)?A:"closest-side":"closest-side"},oi=t=>{let A=null,e=null;for(const r of t)if(M(r))switch(r.value){case"left":A=FA;break;case"right":A=he;break;case"top":e=FA;break;case"bottom":e=he;break;case"center":A===null?A=qe:e===null&&(e=qe);break}else q(r)&&(A===null?A=r:e===null&&(e=r));return{cx:A??qe,cy:e??qe}},eu=t=>{const A=[];for(const o of t)if(o.type!==31){if(M(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}},tu=t=>{const A=t.filter(Yr),e=A.findIndex(n=>Zt(n,"at")),r=e===-1?A:A.slice(0,e),s=e===-1?[]:A.slice(e+1);return{type:2,radius:Tn(r),...oi(s)}},ru=t=>{const A=t.filter(Yr),e=A.findIndex(n=>Zt(n,"at")),r=e===-1?A:A.slice(0,e),s=e===-1?[]:A.slice(e+1);return{type:3,rx:Tn(r.slice(0,1)),ry:Tn(r.slice(1,2)),...oi(s)}},su=t=>{const A=ae(t),e=[];for(const r of A){if(r.length===1&&M(r[0]))continue;const s=r.filter(q);s.length>=2&&e.push([s[0],s[1]])}return{type:4,points:e}},nu=t=>{const A=t.find(e=>e.type===0);return A?{type:5,d:A.value}:Ln},ou={name:"clip-path",initialValue:"none",prefix:!1,type:0,parse:(t,A)=>{if(M(A)&&A.value==="none")return Ln;if(A.type===18)switch(A.name){case"inset":return eu(A.values);case"circle":return tu(A.values);case"ellipse":return ru(A.values);case"polygon":return su(A.values);case"path":return nu(A.values)}return Ln}},au={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},iu={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:(t,A)=>A==="rtl"?1:0},cu={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:(t,A)=>A.filter(M).reduce((e,r)=>e|lu(r.value),0)},lu=t=>{switch(t){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},du={name:"float",initialValue:"none",prefix:!1,type:2,parse:(t,A)=>{switch(A){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Bu={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:(t,A)=>A.type===20&&A.value==="normal"?0:A.type===17||A.type===15?A.number:0};var cs;(function(t){t.NORMAL="normal",t.STRICT="strict"})(cs||(cs={}));const gu={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:(t,A)=>A==="strict"?cs.STRICT:cs.NORMAL},uu={name:"line-height",initialValue:"normal",prefix:!1,type:4},ai=(t,A)=>M(t)&&t.value==="normal"?1.2*A:t.type===17?A*t.number:q(t)?G(t,A):A,fu={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:(t,A)=>A.type===20&&A.value==="none"?null:Sn.parse(t,A)},hu={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:(t,A)=>A==="inside"?0:1},On={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:(t,A)=>{switch(A){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 52;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},ls=t=>({name:`margin-${t}`,initialValue:"0",prefix:!1,type:4}),pu=ls("top"),wu=ls("right"),mu=ls("bottom"),Cu=ls("left"),Qu={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:(t,A)=>A.filter(M).map(e=>{switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})},xu={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:(t,A)=>A==="break-word"?"break-word":"normal"},ds=t=>({name:`padding-${t}`,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}),Uu=ds("top"),Fu=ds("right"),yu=ds("bottom"),Eu=ds("left"),bu={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:(t,A)=>{switch(A){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},vu={name:"position",initialValue:"static",prefix:!1,type:2,parse:(t,A)=>{switch(A){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Iu={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:(t,A)=>A.length===1&&Zt(A[0],"none")?[]:ae(A).map(e=>{const r={color:pe.TRANSPARENT,offsetX:FA,offsetY:FA,blur:FA};let s=0;for(let n=0;n<e.length;n++){const o=e[n];Ge(o)?(s===0?r.offsetX=o:s===1?r.offsetY=o:r.blur=o,s++):r.color=Ne.parse(t,o)}return r})},Hu={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:(t,A)=>{switch(A){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Su={name:"transform",initialValue:"none",prefix:!0,type:0,parse:(t,A)=>{if(A.type===20&&A.value==="none")return null;if(A.type===18){const e=Lu[A.name];if(typeof e>"u")throw new Error(`Attempting to parse an unsupported transform function "${A.name}"`);return e(t,A.values)}return null}},Lu={matrix:(t,A)=>{const e=A.filter(r=>r.type===17).map(r=>r.number);return e.length===6?e:null},matrix3d:(t,A)=>{const e=A.filter(g=>g.type===17).map(g=>g.number),[r,s,{},{},n,o,{},{},{},{},{},{},a,c]=e;return e.length===16?[r,s,n,o,a,c]:null},rotate:(t,A)=>{if(A.length!==1)return null;const e=A[0];let r=0;if(e.type===17&&e.number===0)r=0;else if(e.type===15)r=pt.parse(t,e);else return null;const s=Math.cos(r),n=Math.sin(r);return[s,n,-n,s,0,0]}},ii={type:16,number:50,flags:ut},Tu=[ii,ii],Ou={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:(t,A)=>{const e=A.filter(q);return e.length!==2?Tu:[e[0],e[1]]}},Ku={name:"rotate",initialValue:"none",prefix:!1,type:0,parse:(t,A)=>A.type===20&&A.value==="none"?null:A.type===17&&A.number===0?0:A.type===15?pt.parse(t,A)*180/Math.PI:null},Du={name:"visible",initialValue:"none",prefix:!1,type:2,parse:(t,A)=>{switch(A){case"hidden":return 1;case"collapse":return 2;default:return 0}}};var Ar;(function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"})(Ar||(Ar={}));const Ru={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:(t,A)=>{switch(A){case"break-all":return Ar.BREAK_ALL;case"keep-all":return Ar.KEEP_ALL;default:return Ar.NORMAL}}},ku={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:(t,A)=>{if(A.type===20)return{auto:!0,order:0};if(UA(A))return{auto:!1,order:A.number};throw new Error("Invalid z-index number parsed")}},ci={name:"time",parse:(t,A)=>{if(A.type===15)switch(A.unit.toLowerCase()){case"s":return 1e3*A.number;case"ms":return A.number}throw new Error("Unsupported time type")}},Gu={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:(t,A)=>UA(A)?A.number:1},Vu={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Mu={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:(t,A)=>A.filter(M).map(e=>{switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(e=>e!==0)},Nu={name:"text-decoration-style",initialValue:"solid",prefix:!1,type:2,parse:(t,A)=>{switch(A){case"double":return 1;case"dotted":return 2;case"dashed":return 3;case"wavy":return 4;default:return 0}}},_u={name:"text-decoration-thickness",initialValue:"auto",prefix:!1,type:0,parse:(t,A)=>{if(M(A))switch(A.value){case"auto":return"auto";case"from-font":return"from-font"}return fe(A)?A.number:"auto"}},Pu={name:"text-underline-offset",initialValue:"auto",prefix:!1,type:0,parse:(t,A)=>M(A)&&A.value==="auto"?"auto":fe(A)?A.number:"auto"},ju={name:"font-family",initialValue:"",prefix:!1,type:1,parse:(t,A)=>{const e=[],r=[];return A.forEach(s=>{switch(s.type){case 20:case 0:e.push(s.value);break;case 17:e.push(s.number.toString());break;case 4:r.push(e.join(" ")),e.length=0;break}}),e.length&&r.push(e.join(" ")),r.map(s=>s.indexOf(" ")===-1?s:`'${s}'`)}},Wu={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Xu={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:(t,A)=>UA(A)?A.number:M(A)&&A.value==="bold"?700:400},zu={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:(t,A)=>A.filter(M).map(e=>e.value)},Ju={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:(t,A)=>{switch(A){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},cA=(t,A)=>(t&A)!==0,Yu={name:"content",initialValue:"none",type:1,prefix:!1,parse:(t,A)=>{if(A.length===0)return[];const e=A[0];return e.type===20&&e.value==="none"?[]:A}},Zu={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:(t,A)=>{if(A.length===0)return null;const e=A[0];if(e.type===20&&e.value==="none")return null;const r=[],s=A.filter(Yr);for(let n=0;n<s.length;n++){const o=s[n],a=s[n+1];if(o.type===20){const c=a&&UA(a)?a.number:1;r.push({counter:o.value,increment:c})}}return r}},$u={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:(t,A)=>{if(A.length===0)return[];const e=[],r=A.filter(Yr);for(let s=0;s<r.length;s++){const n=r[s],o=r[s+1];if(M(n)&&n.value!=="none"){const a=o&&UA(o)?o.number:0;e.push({counter:n.value,reset:a})}}return e}},qu={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:(t,A)=>A.filter(fe).map(e=>ci.parse(t,e))},Af={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:(t,A)=>{if(A.length===0)return null;const e=A[0];if(e.type===20&&e.value==="none")return null;const r=[],s=A.filter(FB);if(s.length%2!==0)return null;for(let n=0;n<s.length;n+=2){const o=s[n].value,a=s[n+1].value;r.push({open:o,close:a})}return r}},li=(t,A,e)=>{if(!t)return"";const r=t[Math.min(A,t.length-1)];return r?e?r.open:r.close:""},ef={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:(t,A)=>A.length===1&&Zt(A[0],"none")?[]:ae(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];Zt(o,"inset")?r.inset=!0:Ge(o)?(s===0?r.offsetX=o:s===1?r.offsetY=o:s===2?r.blur=o:r.spread=o,s++):r.color=Ne.parse(t,o)}return r})},tf={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:(t,A)=>{const e=[0,1,2],r=[];return A.filter(M).forEach(s=>{switch(s.value){case"stroke":r.push(1);break;case"fill":r.push(0);break;case"markers":r.push(2);break}}),e.forEach(s=>{r.indexOf(s)===-1&&r.push(s)}),r}},rf={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},sf={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:(t,A)=>fe(A)?A.number:0},nf={name:"-webkit-line-clamp",initialValue:"none",prefix:!0,type:0,parse:(t,A)=>A.type===20&&A.value==="none"?0:A.type===17?Math.max(0,Math.floor(A.number)):0},of={name:"objectFit",initialValue:"fill",prefix:!1,type:1,parse:(t,A)=>A.filter(M).reduce((e,r)=>e|af(r.value),0)},af=t=>{switch(t){case"contain":return 2;case"cover":return 4;case"none":return 8;case"scale-down":return 16}return 0},cf={name:"text-overflow",initialValue:"clip",prefix:!1,type:2,parse:(t,A)=>A==="ellipsis"?1:0};var $A;(function(t){t[t.AUTO=0]="AUTO",t[t.CRISP_EDGES=1]="CRISP_EDGES",t[t.PIXELATED=2]="PIXELATED",t[t.SMOOTH=3]="SMOOTH"})($A||($A={}));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 $A.CRISP_EDGES;case"pixelated":case"-webkit-optimize-contrast":return $A.PIXELATED;case"smooth":case"high-quality":return $A.SMOOTH;default:return $A.AUTO}}};class df{constructor(A,e){this.animationDuration=E(A,qu,e.animationDuration),this.backgroundClip=E(A,Qg,e.backgroundClip),this.backgroundColor=E(A,xg,e.backgroundColor),this.backgroundImage=E(A,Lg,e.backgroundImage),this.backgroundOrigin=E(A,Tg,e.backgroundOrigin),this.backgroundPosition=E(A,Og,e.backgroundPosition),this.backgroundRepeat=E(A,Kg,e.backgroundRepeat),this.backgroundSize=E(A,Rg,e.backgroundSize),this.borderTopColor=E(A,Gg,e.borderTopColor),this.borderRightColor=E(A,Vg,e.borderRightColor),this.borderBottomColor=E(A,Mg,e.borderBottomColor),this.borderLeftColor=E(A,Ng,e.borderLeftColor),this.borderTopLeftRadius=E(A,_g,e.borderTopLeftRadius),this.borderTopRightRadius=E(A,Pg,e.borderTopRightRadius),this.borderBottomRightRadius=E(A,jg,e.borderBottomRightRadius),this.borderBottomLeftRadius=E(A,Wg,e.borderBottomLeftRadius),this.borderTopStyle=E(A,Xg,e.borderTopStyle),this.borderRightStyle=E(A,zg,e.borderRightStyle),this.borderBottomStyle=E(A,Jg,e.borderBottomStyle),this.borderLeftStyle=E(A,Yg,e.borderLeftStyle),this.borderTopWidth=E(A,Zg,e.borderTopWidth),this.borderRightWidth=E(A,$g,e.borderRightWidth),this.borderBottomWidth=E(A,qg,e.borderBottomWidth),this.borderLeftWidth=E(A,Au,e.borderLeftWidth),this.boxShadow=E(A,ef,e.boxShadow),this.clipPath=E(A,ou,e.clipPath),this.color=E(A,au,e.color),this.direction=E(A,iu,e.direction),this.display=E(A,cu,e.display),this.float=E(A,du,e.cssFloat),this.fontFamily=E(A,ju,e.fontFamily),this.fontSize=E(A,Wu,e.fontSize),this.fontStyle=E(A,Ju,e.fontStyle),this.fontVariant=E(A,zu,e.fontVariant),this.fontWeight=E(A,Xu,e.fontWeight),this.letterSpacing=E(A,Bu,e.letterSpacing),this.lineBreak=E(A,gu,e.lineBreak),this.lineHeight=E(A,uu,e.lineHeight),this.listStyleImage=E(A,fu,e.listStyleImage),this.listStylePosition=E(A,hu,e.listStylePosition),this.listStyleType=E(A,On,e.listStyleType),this.marginTop=E(A,pu,e.marginTop),this.marginRight=E(A,wu,e.marginRight),this.marginBottom=E(A,mu,e.marginBottom),this.marginLeft=E(A,Cu,e.marginLeft),this.opacity=E(A,Gu,e.opacity);const r=E(A,Qu,e.overflow);this.overflowX=r[0],this.overflowY=r[r.length>1?1:0],this.overflowWrap=E(A,xu,e.overflowWrap),this.paddingTop=E(A,Uu,e.paddingTop),this.paddingRight=E(A,Fu,e.paddingRight),this.paddingBottom=E(A,yu,e.paddingBottom),this.paddingLeft=E(A,Eu,e.paddingLeft),this.paintOrder=E(A,tf,e.paintOrder),this.position=E(A,vu,e.position),this.textAlign=E(A,bu,e.textAlign),this.textDecorationColor=E(A,Vu,e.textDecorationColor??e.color),this.textDecorationLine=E(A,Mu,e.textDecorationLine??e.textDecoration),this.textDecorationStyle=E(A,Nu,e.textDecorationStyle),this.textDecorationThickness=E(A,_u,e.textDecorationThickness),this.textUnderlineOffset=E(A,Pu,e.textUnderlineOffset),this.textShadow=E(A,Iu,e.textShadow),this.textTransform=E(A,Hu,e.textTransform),this.textOverflow=E(A,cf,e.textOverflow),this.transform=E(A,Su,e.transform),this.transformOrigin=E(A,Ou,e.transformOrigin),this.rotate=E(A,Ku,e.rotate),this.visibility=E(A,Du,e.visibility),this.webkitTextStrokeColor=E(A,rf,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=E(A,sf,e.webkitTextStrokeWidth),this.webkitLineClamp=E(A,nf,e.webkitLineClamp),this.wordBreak=E(A,Ru,e.wordBreak),this.zIndex=E(A,ku,e.zIndex),this.objectFit=E(A,of,e.objectFit),this.imageRendering=E(A,lf,e.imageRendering)}isVisible(){return this.display>0&&this.opacity>0&&this.visibility===0}isTransparent(){return Ve(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 cA(this.display,4)||cA(this.display,33554432)||cA(this.display,268435456)||cA(this.display,536870912)||cA(this.display,67108864)||cA(this.display,134217728)}}class Bf{constructor(A,e){this.content=E(A,Yu,e.content),this.quotes=E(A,Af,e.quotes)}}class di{constructor(A,e){this.counterIncrement=E(A,Zu,e.counterIncrement),this.counterReset=E(A,$u,e.counterReset)}}const E=(t,A,e)=>{const r=new Ia,s=e!==null&&typeof e<"u"?e.toString():A.initialValue;r.write(s);const n=new ht(r.read());switch(A.type){case 2:const o=n.parseComponentValue();return A.parse(t,M(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 pt.parse(t,n.parseComponentValue());case"color":return Ne.parse(t,n.parseComponentValue());case"image":return Sn.parse(t,n.parseComponentValue());case"length":const a=n.parseComponentValue();return Ge(a)?a:FA;case"length-percentage":const c=n.parseComponentValue();return q(c)?c:FA;case"time":return ci.parse(t,n.parseComponentValue())}break}},Ee=t=>t.nodeType===Node.ELEMENT_NODE,Bi=t=>t.nodeType===Node.TEXT_NODE,Ct=t=>typeof t.className=="object",er=t=>Ee(t)&&typeof t.style<"u"&&!Ct(t),gf=t=>t.tagName==="LI",uf=t=>t.tagName==="OL",gi=t=>!Ct(t)&&t.tagName.indexOf("-")>0,ff="data-html2canvas-debug",hf=t=>{if(typeof t.getAttribute!="function")return 0;switch(t.getAttribute(ff)){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Kn=(t,A)=>{const e=hf(t);return e===1||A===e};class ui{static normalizeElement(A,e){const r={};return er(A)&&(e.animationDuration.some(s=>s>0)&&(r.animationDuration=A.style.animationDuration,A.style.animationDuration="0s"),e.transform!==null&&(r.transform=A.style.transform,A.style.transform="translate(0, 0)"),e.rotate!==null&&(r.rotate=A.style.rotate,A.style.rotate="0deg",r.transform===void 0&&(r.transform=A.style.transform,A.style.transform="translate(0, 0)"))),r}static restoreElement(A,e){er(A)&&(e.animationDuration!==void 0&&(A.style.animationDuration=e.animationDuration),e.transform!==void 0&&(A.style.transform=e.transform),e.rotate!==void 0&&(A.style.rotate=e.rotate))}}class we{constructor(A,e,r={}){if(this.context=A,this.textNodes=[],this.elements=[],this.flags=0,Kn(e,3))debugger;this.styles=new df(A,A.config.window.getComputedStyle(e,null)),r.normalizeDom!==!1&&er(e)&&(this.originalStyles=ui.normalizeElement(e,this.styles),this.originalElement=e),this.bounds=Hr(this.context,e),Kn(e,4)&&(this.flags|=16)}restore(){this.originalStyles&&this.originalElement&&(ui.restoreElement(this.originalElement,this.originalStyles),this.originalStyles=void 0,this.originalElement=void 0)}restoreTree(){this.restore();for(const A of this.elements)A.restoreTree()}}for(var pf="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFN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AIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVA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gACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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o,a,c;t[t.length-1]==="="&&(A--,t[t.length-2]==="="&&A--);var g=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),d=Array.isArray(g)?g:new Uint8Array(g);for(r=0;r<e;r+=4)n=tr[t.charCodeAt(r)],o=tr[t.charCodeAt(r+1)],a=tr[t.charCodeAt(r+2)],c=tr[t.charCodeAt(r+3)],d[s++]=n<<2|o>>4,d[s++]=(o&15)<<4|a>>2,d[s++]=(a&3)<<6|c&63;return g},mf=function(t){for(var A=t.length,e=[],r=0;r<A;r+=2)e.push(t[r+1]<<8|t[r]);return e},Cf=function(t){for(var A=t.length,e=[],r=0;r<A;r+=4)e.push(t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]);return e},et=5,Dn=11,Rn=2,Qf=Dn-et,hi=65536>>et,xf=1<<et,kn=xf-1,Uf=1024>>et,Ff=hi+Uf,yf=Ff,Ef=32,bf=yf+Ef,vf=65536>>Dn,If=1<<Qf,Hf=If-1,pi=function(t,A,e){return t.slice?t.slice(A,e):new Uint16Array(Array.prototype.slice.call(t,A,e))},Sf=function(t,A,e){return t.slice?t.slice(A,e):new Uint32Array(Array.prototype.slice.call(t,A,e))},Lf=function(t,A){var e=wf(t),r=Array.isArray(e)?Cf(e):new Uint32Array(e),s=Array.isArray(e)?mf(e):new Uint16Array(e),n=24,o=pi(s,n/2,r[4]/2),a=r[5]===2?pi(s,(n+r[4])/2):Sf(r,Math.ceil((n+r[4])/4));return new Tf(r[0],r[1],r[2],r[3],o,a)},Tf=(function(){function t(A,e,r,s,n,o){this.initialValue=A,this.errorValue=e,this.highStart=r,this.highValueIndex=s,this.index=n,this.data=o}return t.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=this.index[A>>et],e=(e<<Rn)+(A&kn),this.data[e];if(A<=65535)return e=this.index[hi+(A-55296>>et)],e=(e<<Rn)+(A&kn),this.data[e];if(A<this.highStart)return e=bf-vf+(A>>Dn),e=this.index[e],e+=A>>et&Hf,e=this.index[e],e=(e<<Rn)+(A&kn),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t})(),wi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Of=typeof Uint8Array>"u"?[]:new Uint8Array(256),gs=0;gs<wi.length;gs++)Of[wi.charCodeAt(gs)]=gs;var Kf=1,Gn=2,Vn=3,mi=4,Ci=5,Df=7,Qi=8,Mn=9,Nn=10,xi=11,Ui=12,Fi=13,yi=14,_n=15,Rf=function(t){for(var A=[],e=0,r=t.length;e<r;){var s=t.charCodeAt(e++);if(s>=55296&&s<=56319&&e<r){var n=t.charCodeAt(e++);(n&64512)===56320?A.push(((s&1023)<<10)+(n&1023)+65536):(A.push(s),e--)}else A.push(s)}return A},kf=function(){for(var t=[],A=0;A<arguments.length;A++)t[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var e=t.length;if(!e)return"";for(var r=[],s=-1,n="";++s<e;){var o=t[s];o<=65535?r.push(o):(o-=65536,r.push((o>>10)+55296,o%1024+56320)),(s+1===e||r.length>16384)&&(n+=String.fromCharCode.apply(String,r),r.length=0)}return n},Gf=Lf(pf),ee="×",Pn="÷",Vf=function(t){return Gf.get(t)},Mf=function(t,A,e){var r=e-2,s=A[r],n=A[e-1],o=A[e];if(n===Gn&&o===Vn)return ee;if(n===Gn||n===Vn||n===mi||o===Gn||o===Vn||o===mi)return Pn;if(n===Qi&&[Qi,Mn,xi,Ui].indexOf(o)!==-1||(n===xi||n===Mn)&&(o===Mn||o===Nn)||(n===Ui||n===Nn)&&o===Nn||o===Fi||o===Ci||o===Df||n===Kf)return ee;if(n===Fi&&o===yi){for(;s===Ci;)s=A[--r];if(s===yi)return ee}if(n===_n&&o===_n){for(var a=0;s===_n;)a++,s=A[--r];if(a%2===0)return ee}return Pn},Nf=function(t){var A=Rf(t),e=A.length,r=0,s=0,n=A.map(Vf);return{next:function(){if(r>=e)return{done:!0,value:null};for(var o=ee;r<e&&(o=Mf(A,n,++r))===ee;);if(o!==ee||r===e){var a=kf.apply(null,A.slice(s,r));return s=r,{value:a,done:!1}}return{done:!0,value:null}}}},_f=function(t){for(var A=Nf(t),e=[],r;!(r=A.next()).done;)r.value&&e.push(r.value.slice());return e};const Pf=t=>{if(t.createRange){const e=t.createRange();if(e.getBoundingClientRect){const r=t.createElement("boundtest");r.style.height="123px",r.style.display="block",t.body.appendChild(r),e.selectNode(r);const s=e.getBoundingClientRect(),n=Math.round(s.height);if(t.body.removeChild(r),n===123)return!0}}return!1},jf=t=>{const A=t.createElement("boundtest");A.style.width="50px",A.style.display="block",A.style.fontSize="12px",A.style.letterSpacing="0px",A.style.wordSpacing="0px",t.body.appendChild(A);const e=t.createRange();A.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";const r=A.firstChild,s=Sr(r.data).map(c=>mA(c));let n=0,o={};const a=s.every((c,g)=>{e.setStart(r,n),e.setEnd(r,n+c.length);const d=e.getBoundingClientRect();n+=c.length;const B=d.x>o.x||d.y>o.y;return o=d,g===0?!0:B});return t.body.removeChild(A),a},Wf=()=>typeof new Image().crossOrigin<"u",Xf=()=>typeof new XMLHttpRequest().responseType=="string",zf=t=>{const A=new Image,e=t.createElement("canvas"),r=e.getContext("2d");if(!r)return!1;A.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(A,0,0),e.toDataURL()}catch{return!1}return!0},Ei=t=>t[0]===0&&t[1]===255&&t[2]===0&&t[3]===255,Jf=t=>{const A=t.createElement("canvas"),e=100;A.width=e,A.height=e;const r=A.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,e,e);const s=new Image,n=A.toDataURL();s.src=n;const o=jn(e,e,0,0,s);return r.fillStyle="red",r.fillRect(0,0,e,e),bi(o).then(a=>{r.drawImage(a,0,0);const c=r.getImageData(0,0,e,e).data;r.fillStyle="red",r.fillRect(0,0,e,e);const g=t.createElement("div");return g.style.backgroundImage=`url(${n})`,g.style.height=`${e}px`,Ei(c)?bi(jn(e,e,0,0,g)):Promise.reject(!1)}).then(a=>(r.drawImage(a,0,0),Ei(r.getImageData(0,0,e,e).data))).catch(()=>!1)},jn=(t,A,e,r,s)=>{const n="http://www.w3.org/2000/svg",o=document.createElementNS(n,"svg"),a=document.createElementNS(n,"foreignObject");return o.setAttributeNS(null,"width",t.toString()),o.setAttributeNS(null,"height",A.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",e.toString()),a.setAttributeNS(null,"y",r.toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(a),a.appendChild(s),o},bi=t=>new Promise((A,e)=>{const r=new Image;r.onload=()=>A(r),r.onerror=e,r.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(new XMLSerializer().serializeToString(t))}`}),OA={get SUPPORT_RANGE_BOUNDS(){const t=Pf(document);return Object.defineProperty(OA,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){const t=OA.SUPPORT_RANGE_BOUNDS&&jf(document);return Object.defineProperty(OA,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){const t=zf(document);return Object.defineProperty(OA,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){const t=typeof Array.from=="function"&&typeof window.fetch=="function"?Jf(document):Promise.resolve(!1);return Object.defineProperty(OA,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){const t=Wf();return Object.defineProperty(OA,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){const t=Xf();return Object.defineProperty(OA,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){const t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(OA,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){const t=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(OA,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}};class tt{constructor(A,e){this.text=A,this.bounds=e}}const Yf=(t,A,e,r)=>{const s=qf(A,e),n=[];let o=0;return s.forEach(a=>{if(e.textDecorationLine.length||a.trim().length>0)if(OA.SUPPORT_RANGE_BOUNDS){const c=vi(r,o,a.length).getClientRects();if(c.length>1){const g=us(a);let d=0;g.forEach(B=>{n.push(new tt(B,DA.fromDOMRectList(t,vi(r,d+o,B.length).getClientRects()))),d+=B.length})}else n.push(new tt(a,DA.fromDOMRectList(t,c)))}else{const c=r.splitText(a.length);n.push(new tt(a,Zf(t,r))),r=c}else OA.SUPPORT_RANGE_BOUNDS||(r=r.splitText(a.length));o+=a.length}),n},Zf=(t,A)=>{const e=A.ownerDocument;if(e){const r=e.createElement("html2canvaswrapper");r.appendChild(A.cloneNode(!0));const s=A.parentNode;if(s){s.replaceChild(r,A);const n=Hr(t,r);return r.firstChild&&s.replaceChild(r.firstChild,r),n}}return DA.EMPTY},vi=(t,A,e)=>{const r=t.ownerDocument;if(!r)throw new Error("Node has no owner document");const s=r.createRange();return s.setStart(t,A),s.setEnd(t,A+e),s},us=t=>{if(OA.SUPPORT_NATIVE_TEXT_SEGMENTATION){const A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(A.segment(t)).map(e=>e.segment)}return _f(t)},$f=(t,A)=>{if(OA.SUPPORT_NATIVE_TEXT_SEGMENTATION){const e=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(e.segment(t)).map(r=>r.segment)}return eh(t,A)},qf=(t,A)=>A.letterSpacing!==0?us(t):$f(t,A),Ah=[32,160,4961,65792,65793,4153,4241],eh=(t,A)=>{const e=wd(t,{lineBreak:A.lineBreak,wordBreak:A.overflowWrap==="break-word"?"break-word":A.wordBreak}),r=[];let s;for(;!(s=e.next()).done;)if(s.value){const n=s.value.slice(),o=Sr(n);let a="";o.forEach(c=>{Ah.indexOf(c)===-1?a+=mA(c):(a.length&&r.push(a),r.push(mA(c)),a="")}),a.length&&r.push(a)}return r};class th{constructor(A,e,r){this.text=rh(e.data,r.textTransform),this.textBounds=Yf(A,this.text,r,e)}}const rh=(t,A)=>{switch(A){case 1:return t.toLowerCase();case 3:return t.replace(sh,nh);case 2:return t.toUpperCase();default:return t}},sh=/(^|\s|:|-|\(|\))([a-z])/g,nh=(t,A,e)=>t.length>0?A+e.toUpperCase():t;class Ii extends we{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 Hi extends we{constructor(A,e){super(A,e),this.canvas=e,this.intrinsicWidth=e.width,this.intrinsicHeight=e.height}}class Si extends we{constructor(A,e){super(A,e);const r=new XMLSerializer,s=Hr(A,e);e.setAttribute("width",`${s.width}px`),e.setAttribute("height",`${s.height}px`),this.svg=`data:image/svg+xml,${encodeURIComponent(r.serializeToString(e))}`,this.intrinsicWidth=e.width.baseVal.value,this.intrinsicHeight=e.height.baseVal.value,this.context.cache.addImage(this.svg)}}class Li extends we{constructor(A,e){super(A,e),this.value=e.value}}class Wn extends we{constructor(A,e){super(A,e),this.start=e.start,this.reversed=typeof e.reversed=="boolean"&&e.reversed===!0}}const oh=[{type:15,flags:0,unit:"px",number:3}],ah=[{type:16,flags:0,number:50}],ih=t=>t.width>t.height?new DA(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width<t.height?new DA(t.left,t.top+(t.height-t.width)/2,t.width,t.width):t,ch=t=>{const A=t.type===dh?new Array(t.value.length+1).join("•"):t.value;return A.length===0?t.placeholder||"":A},lh=t=>t.value.length===0&&!!t.placeholder,fs="checkbox",hs="radio",dh="password",Ti=707406591,Bh=1970632191;class rr extends we{constructor(A,e){switch(super(A,e),this.type=e.type.toLowerCase(),this.checked=e.checked,this.value=ch(e),this.isPlaceholder=lh(e),(this.type===fs||this.type===hs)&&(this.styles.backgroundColor=3739148031,this.styles.borderTopColor=this.styles.borderRightColor=this.styles.borderBottomColor=this.styles.borderLeftColor=2779096575,this.styles.borderTopWidth=this.styles.borderRightWidth=this.styles.borderBottomWidth=this.styles.borderLeftWidth=1,this.styles.borderTopStyle=this.styles.borderRightStyle=this.styles.borderBottomStyle=this.styles.borderLeftStyle=1,this.styles.backgroundClip=[0],this.styles.backgroundOrigin=[0],this.bounds=ih(this.bounds)),this.type){case fs:this.styles.borderTopRightRadius=this.styles.borderTopLeftRadius=this.styles.borderBottomRightRadius=this.styles.borderBottomLeftRadius=oh;break;case hs:this.styles.borderTopRightRadius=this.styles.borderTopLeftRadius=this.styles.borderBottomRightRadius=this.styles.borderBottomLeftRadius=ah;break}}}class Oi extends we{constructor(A,e){super(A,e);const r=e.options[e.selectedIndex||0];this.value=r&&r.text||""}}class Ki extends we{constructor(A,e){super(A,e),this.value=e.value}}class Di extends we{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?wt(A,getComputedStyle(e.contentWindow.document.documentElement).backgroundColor):pe.TRANSPARENT,n=e.contentWindow.document.body?wt(A,getComputedStyle(e.contentWindow.document.body).backgroundColor):pe.TRANSPARENT;this.backgroundColor=Ve(s)?Ve(n)?this.styles.backgroundColor:n:s}}catch{}}}const gh=["OL","UL","MENU"],ps=(t,A,e,r)=>{for(let s=A.firstChild,n;s;s=n)if(n=s.nextSibling,Bi(s)&&s.data.length>0)e.textNodes.push(new th(t,s,e.styles));else if(Ee(s))if(sr(s)&&s.assignedNodes)s.assignedNodes().forEach(o=>ps(t,o,e,r));else{const o=Ri(t,s);o.styles.isVisible()&&(uh(s,o,r)?o.flags|=4:fh(o.styles)&&(o.flags|=2),gh.indexOf(s.tagName)!==-1&&(o.flags|=8),e.elements.push(o),s.slot,s.shadowRoot?ps(t,s.shadowRoot,o,r):!ws(s)&&!Gi(s)&&!ms(s)&&ps(t,s,o,r))}},Ri=(t,A)=>zn(A)?new Ii(t,A):Vi(A)?new Hi(t,A):Gi(A)?new Si(t,A):gf(A)?new Li(t,A):uf(A)?new Wn(t,A):hh(A)?new rr(t,A):ms(A)?new Oi(t,A):ws(A)?new Ki(t,A):Ni(A)?new Di(t,A,ki):new we(t,A),ki=(t,A)=>{const e=Ri(t,A);return e.flags|=4,ps(t,A,e,e),e},uh=(t,A,e)=>A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||Xn(t)&&e.styles.isTransparent(),fh=t=>t.isPositioned()||t.isFloating()?!0:cA(t.display,268435456)||cA(t.display,33554432)||cA(t.display,536870912)||cA(t.display,134217728),hh=t=>t.tagName==="INPUT",ph=t=>t.tagName==="HTML",Gi=t=>t.tagName==="svg",Xn=t=>t.tagName==="BODY",Vi=t=>t.tagName==="CANVAS",Mi=t=>t.tagName==="VIDEO",zn=t=>t.tagName==="IMG",Ni=t=>t.tagName==="IFRAME",Jn=t=>t.tagName==="STYLE",_i=t=>t.tagName==="SCRIPT",ws=t=>t.tagName==="TEXTAREA",ms=t=>t.tagName==="SELECT",sr=t=>t.tagName==="SLOT";class wh{constructor(){this.counters={}}getCounterValue(A){const e=this.counters[A];return e&&e.length?e[e.length-1]:1}getCounterValues(A){const e=this.counters[A];return e||[]}pop(A){A.forEach(e=>this.counters[e].pop())}parse(A){const e=A.counterIncrement,r=A.counterReset;let s=!0;e!==null&&e.forEach(o=>{const a=this.counters[o.counter];a&&o.increment!==0&&(s=!1,a.length||a.push(1),a[Math.max(0,a.length-1)]+=o.increment)});const n=[];return s&&r.forEach(o=>{let a=this.counters[o.counter];n.push(o.counter),a||(a=this.counters[o.counter]=[]),a.push(o.reset)}),n}}const Pi={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"]},ji={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},mh={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Ch={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Qt=(t,A,e,r,s,n)=>t<A||t>e?or(t,s,n.length>0):r.integers.reduce((o,a,c)=>{for(;t>=a;)t-=a,o+=r.values[c];return o},"")+n,Wi=(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?"-":"")+(Wi(Math.abs(t),n,r,o=>mA(Math.floor(o%n)+A))+s)},rt=(t,A,e=". ")=>{const r=A.length;return Wi(Math.abs(t),r,!1,s=>A[Math.floor(s%r)])+e},xt=1,_e=2,Pe=4,nr=8,be=(t,A,e,r,s,n)=>{if(t<-9999||t>9999)return or(t,4,s.length>0);let o=Math.abs(t),a=s;if(o===0)return A[0]+a;for(let c=0;o>0&&c<=4;c++){const g=o%10;g===0&&cA(n,xt)&&a!==""?a=A[g]+a:g>1||g===1&&c===0||g===1&&c===1&&cA(n,_e)||g===1&&c===1&&cA(n,Pe)&&t>100||g===1&&c>1&&cA(n,nr)?a=A[g]+(c>0?e[c-1]:"")+a:g===1&&c>0&&(a=e[c-1]+a),o=Math.floor(o/10)}return(t<0?r:"")+a},Xi="十百千萬",zi="拾佰仟萬",Ji="マイナス",Yn="마이너스",or=(t,A,e)=>{const r=e?". ":"",s=e?"、":"",n=e?", ":"",o=e?" ":"";switch(A){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:const a=CA(t,48,57,!0,r);return a.length<4?`0${a}`:a;case 4:return rt(t,"〇一二三四五六七八九",s);case 6:return Qt(t,1,3999,Pi,3,r).toLowerCase();case 7:return Qt(t,1,3999,Pi,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 Qt(t,1,9999,ji,3,r);case 35:return Qt(t,1,9999,ji,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 rt(t,"子丑寅卯辰巳午未申酉戌亥",s);case 16:return rt(t,"甲乙丙丁戊己庚辛壬癸",s);case 17:case 48:return be(t,"零一二三四五六七八九",Xi,"負",s,_e|Pe|nr);case 47:return be(t,"零壹貳參肆伍陸柒捌玖",zi,"負",s,xt|_e|Pe|nr);case 42:return be(t,"零一二三四五六七八九",Xi,"负",s,_e|Pe|nr);case 41:return be(t,"零壹贰叁肆伍陆柒捌玖",zi,"负",s,xt|_e|Pe|nr);case 26:return be(t,"〇一二三四五六七八九","十百千万",Ji,s,0);case 25:return be(t,"零壱弐参四伍六七八九","拾百千万",Ji,s,xt|_e|Pe);case 31:return be(t,"영일이삼사오육칠팔구","십백천만",Yn,n,xt|_e|Pe);case 33:return be(t,"零一二三四五六七八九","十百千萬",Yn,n,0);case 32:return be(t,"零壹貳參四五六七八九","拾百千",Yn,n,xt|_e|Pe);case 18:return CA(t,2406,2415,!0,r);case 20:return Qt(t,1,19999,Ch,3,r);case 21:return CA(t,2790,2799,!0,r);case 22:return CA(t,2662,2671,!0,r);case 52:return Qt(t,1,10999,mh,3,r);case 23:return rt(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return rt(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return CA(t,3302,3311,!0,r);case 28:return rt(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",s);case 29:return rt(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)}},Zn="data-html2canvas-ignore",Qh=t=>{let A=t;for(;A;){if(A.parentNode&&A.parentNode.host)return A.parentNode;const e=A.getRootNode();if(e&&e!==A.ownerDocument&&e.host)return e;A=A.parentNode}return null};class Yi{constructor(A,e,r){if(this.context=A,this.options=r,this.scrolledElements=[],this.referenceElement=e,this.counters=new wh,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");if(!this.options.iframeContainer){const s=Qh(e);s&&(this.options.iframeContainer=s)}this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}toIFrame(A,e){const r=xh(A,e,this.options.iframeContainer);if(!r.contentWindow)throw new Error("Unable to find iframe window");const s=A.defaultView.pageXOffset,n=A.defaultView.pageYOffset,o=r.contentWindow,a=o.document,c=yh(r).then(async()=>{this.scrolledElements.forEach(Ih),o&&(o.scrollTo(e.left,e.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(o.scrollY!==e.top||o.scrollX!==e.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(o.scrollX-e.left,o.scrollY-e.top,0,0)));const u=this.options.onclone,f=this.clonedReferenceElement;if(typeof f>"u")throw new Error(`Error finding the ${this.referenceElement.nodeName} in the cloned document`);return a.fonts&&a.fonts.ready&&await a.fonts.ready,/(AppleWebKit)/g.test(navigator.userAgent)&&await Fh(a),typeof u=="function"?Promise.resolve().then(()=>u(a,f)).then(()=>r):r}),g=a.baseURI;a.open();const d=bh(document.doctype)+"<html></html>";try{const u=this.referenceElement.ownerDocument?.defaultView,f=u&&u.trustedTypes;let w=f?.getPolicy?.("html2canvas-pro");!w&&f&&(w=f.createPolicy("html2canvas-pro",{createHTML:C=>C})),w?a.write(w.createHTML(d)):a.write(d)}catch{a.write(d)}vh(this.referenceElement.ownerDocument,s,n),a.close();const B=a.adoptNode(this.documentElement);return Oh(B,g),a.replaceChild(B,a.documentElement),c}createElementClone(A){if(Kn(A,2))debugger;if(Vi(A))return this.createCanvasClone(A);if(Mi(A))return this.createVideoClone(A);if(Jn(A))return this.createStyleClone(A);const e=A.cloneNode(!1);return zn(e)&&(zn(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),e.loading==="lazy"&&(e.loading="eager")),gi(e)&&!Ct(e)?this.createCustomElementClone(e):e}createCustomElementClone(A){const e=document.createElement("div");if(e.className=A.className,$n(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){(!Ee(e)||!_i(e)&&!e.hasAttribute(Zn)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(e)))&&(!this.options.copyStyles||!Ee(e)||!Jn(e))&&A.appendChild(this.cloneNode(e,r))}shouldCloneChild(A){return!Ee(A)||!_i(A)&&!A.hasAttribute(Zn)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(A))}shouldCloneStyleElement(A){return!this.options.copyStyles||!Ee(A)||!Jn(A)}safeAppendClonedChild(A,e,r){this.shouldCloneChild(e)&&this.shouldCloneStyleElement(e)&&A.appendChild(this.cloneNode(e,r))}cloneAssignedNodes(A,e,r){A.forEach(s=>{this.safeAppendClonedChild(e,s,r)})}cloneSlotFallbackContent(A,e,r){for(let s=A.firstChild;s;s=s.nextSibling)this.safeAppendClonedChild(e,s,r)}cloneSlotElement(A,e,r){if(!sr(A))return;const s=A;if(typeof s.assignedNodes!="function"){this.context.logger.warn("HTMLSlotElement.assignedNodes is not available",A),this.cloneSlotFallbackContent(A,e,r);return}const n=s.assignedNodes();if(!n||!Array.isArray(n)){this.context.logger.warn("assignedNodes() did not return a valid array",A),this.cloneSlotFallbackContent(A,e,r);return}n.length>0?this.cloneAssignedNodes(n,e,r):this.cloneSlotFallbackContent(A,e,r)}cloneShadowDOMChildren(A,e,r){for(let s=A.firstChild;s;s=s.nextSibling)Ee(s)&&sr(s)?this.cloneSlotElement(s,e,r):this.safeAppendClonedChild(e,s,r)}cloneLightDOMChildren(A,e,r){for(let s=A.firstChild;s;s=s.nextSibling)this.appendChildNode(e,s,r)}cloneSlotElementAsLightDOM(A,e,r){if(!sr(A))return;const s=A;if(typeof s.assignedNodes!="function"){for(let o=A.firstChild;o;o=o.nextSibling)this.appendChildNode(e,o,r);return}const n=s.assignedNodes();if(n&&Array.isArray(n)&&n.length>0)n.forEach(o=>this.appendChildNode(e,o,r));else for(let o=A.firstChild;o;o=o.nextSibling)this.appendChildNode(e,o,r)}cloneShadowDOMAsLightDOM(A,e,r){for(let s=A.firstChild;s;s=s.nextSibling)Ee(s)&&sr(s)?this.cloneSlotElementAsLightDOM(s,e,r):this.appendChildNode(e,s,r)}cloneChildNodes(A,e,r){A.shadowRoot&&e.shadowRoot?(this.cloneShadowDOMChildren(A.shadowRoot,e.shadowRoot,r),this.cloneLightDOMChildren(A,e,r)):A.shadowRoot&&!e.shadowRoot?this.cloneShadowDOMAsLightDOM(A.shadowRoot,e,r):this.cloneLightDOMChildren(A,e,r)}cloneNode(A,e){if(Bi(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);const r=A.ownerDocument.defaultView;if(r&&Ee(A)&&(er(A)||Ct(A))){const s=this.createElementClone(A);s.style.transitionProperty="none";const n=r.getComputedStyle(A),o=r.getComputedStyle(A,":before"),a=r.getComputedStyle(A,":after");this.referenceElement===A&&er(s)&&(this.clonedReferenceElement=s),Xn(s)&&Lh(s,this.options.cspNonce);const c=this.counters.parse(new di(this.context,n)),g=this.resolvePseudoContent(A,s,o,ar.BEFORE);gi(A)&&(e=!0),Mi(A)||this.cloneChildNodes(A,s,e),g&&s.insertBefore(g,s.firstChild);const d=this.resolvePseudoContent(A,s,a,ar.AFTER);return d&&s.appendChild(d),this.counters.pop(c),(n&&(this.options.copyStyles||Ct(A))&&!Ni(A)||e)&&$n(n,s),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([s,A.scrollLeft,A.scrollTop]),(ws(A)||ms(A))&&(ws(s)||ms(s))&&(s.value=A.value),s}return A.cloneNode(!1)}resolvePseudoContent(A,e,r,s){if(!r)return;const n=r.content,o=e.ownerDocument;if(!o||!n||n==="none"||n==="-moz-alt-content"||r.display==="none")return;this.counters.parse(new di(this.context,r));const a=new Bf(this.context,r),c=o.createElement("html2canvaspseudoelement");$n(r,c),a.content.forEach(d=>{if(d.type===0)c.appendChild(o.createTextNode(d.value));else if(d.type===22){const B=o.createElement("img");B.src=d.value,B.style.opacity="1",c.appendChild(B)}else if(d.type===18){if(d.name==="attr"){const B=d.values.filter(M);B.length&&c.appendChild(o.createTextNode(A.getAttribute(B[0].value)||""))}else if(d.name==="counter"){const[B,u]=d.values.filter(TA);if(B&&M(B)){const f=this.counters.getCounterValue(B.value),w=u&&M(u)?On.parse(this.context,u.value):3;c.appendChild(o.createTextNode(or(f,w,!1)))}}else if(d.name==="counters"){const[B,u,f]=d.values.filter(TA);if(B&&M(B)){const w=this.counters.getCounterValues(B.value),C=f&&M(f)?On.parse(this.context,f.value):3,F=u&&u.type===0?u.value:"",y=w.map(m=>or(m,C,!1)).join(F);c.appendChild(o.createTextNode(y))}}}else if(d.type===20)switch(d.value){case"open-quote":c.appendChild(o.createTextNode(li(a.quotes,this.quoteDepth++,!0)));break;case"close-quote":c.appendChild(o.createTextNode(li(a.quotes,--this.quoteDepth,!1)));break;default:c.appendChild(o.createTextNode(d.value))}}),c.className=`${qn} ${Ao}`;const g=s===ar.BEFORE?` ${qn}`:` ${Ao}`;return Ct(e)?e.className.baseValue+=g:e.className+=g,c}static destroy(A){return A.parentNode?(A.parentNode.removeChild(A),!0):!1}}var ar;(function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"})(ar||(ar={}));const xh=(t,A,e)=>{const r=t.createElement("iframe");return r.className="html2canvas-container",r.style.visibility="hidden",r.style.position="fixed",r.style.left="-10000px",r.style.top="0px",r.style.border="0",r.width=A.width.toString(),r.height=A.height.toString(),r.scrolling="no",r.setAttribute(Zn,"true"),(e||t.body).appendChild(r),r},Uh=t=>new Promise(A=>{if(t.complete){A();return}if(!t.src){A();return}t.onload=A,t.onerror=A}),Fh=t=>Promise.all([].slice.call(t.images,0).map(Uh)),yh=t=>new Promise((A,e)=>{const r=t.contentWindow;if(!r)return e("No window assigned for iframe");const s=r.document;r.onload=t.onload=()=>{r.onload=t.onload=null;const n=setInterval(()=>{s.body.childNodes.length>0&&s.readyState==="complete"&&(clearInterval(n),A(t))},50)}}),Eh=["all","d","content"],$n=(t,A)=>{for(let e=t.length-1;e>=0;e--){const r=t.item(e);Eh.indexOf(r)===-1&&!r.startsWith("--")&&A.style.setProperty(r,t.getPropertyValue(r))}return A},bh=t=>{let A="";return t&&(A+="<!DOCTYPE ",t.name&&(A+=t.name),t.internalSubset&&(A+=" "+t.internalSubset.replace(/"/g,""").replace(/>/g,">")),t.publicId?(A+=' PUBLIC "'+t.publicId.replace(/"/g,""")+'"',t.systemId&&(A+=' "'+t.systemId.replace(/"/g,""")+'"')):t.systemId&&(A+=' SYSTEM "'+t.systemId.replace(/"/g,""")+'"'),A+=">"),A},vh=(t,A,e)=>{t&&t.defaultView&&(A!==t.defaultView.pageXOffset||e!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(A,e)},Ih=([t,A,e])=>{t.scrollLeft=A,t.scrollTop=e},Hh=":before",Sh=":after",qn="___html2canvas___pseudoelement_before",Ao="___html2canvas___pseudoelement_after",Zi=`{
|
|
8
|
-
content: "" !important;
|
|
9
|
-
display: none !important;
|
|
10
|
-
}`,Lh=(t,A)=>{Th(t,`.${qn}${Hh}${Zi}
|
|
11
|
-
.${Ao}${Sh}${Zi}`,A)},Th=(t,A,e)=>{const r=t.ownerDocument;if(r){const s=r.createElement("style");s.textContent=A,e&&(s.nonce=e),t.appendChild(s)}},Oh=(t,A)=>{const e=t.ownerDocument.createElement("base");e.href=A;const r=t.getElementsByTagName("head").item(0);r?.insertBefore(e,r?.firstChild??null)};class S{constructor(A,e){this.type=0,this.x=A,this.y=e}add(A,e){return new S(this.x+A,this.y+e)}}const Ut=(t,A,e)=>new S(t.x+(A.x-t.x)*e,t.y+(A.y-t.y)*e);class ve{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=Ut(this.start,this.startControl,A),s=Ut(this.startControl,this.endControl,A),n=Ut(this.endControl,this.end,A),o=Ut(r,s,A),a=Ut(s,n,A),c=Ut(o,a,A);return e?new ve(this.start,r,o,c):new ve(c,a,n,this.end)}add(A,e){return new ve(this.start.add(A,e),this.startControl.add(A,e),this.endControl.add(A,e),this.end.add(A,e))}reverse(){return new ve(this.end,this.endControl,this.startControl,this.start)}}const jA=t=>t.type===1;class Kh{constructor(A){const e=A.styles,r=A.bounds;let[s,n]=$t(e.borderTopLeftRadius,r.width,r.height),[o,a]=$t(e.borderTopRightRadius,r.width,r.height),[c,g]=$t(e.borderBottomRightRadius,r.width,r.height),[d,B]=$t(e.borderBottomLeftRadius,r.width,r.height);const u=[];u.push((s+o)/r.width),u.push((d+c)/r.width),u.push((n+B)/r.height),u.push((a+g)/r.height);const f=Math.max(...u);f>1&&(s/=f,n/=f,o/=f,a/=f,c/=f,g/=f,d/=f,B/=f);const w=r.width-o,C=r.height-g,F=r.width-c,y=r.height-B,m=e.borderTopWidth,T=e.borderRightWidth,I=e.borderBottomWidth,H=e.borderLeftWidth,K=G(e.paddingTop,A.bounds.width),N=G(e.paddingRight,A.bounds.width),W=G(e.paddingBottom,A.bounds.width),R=G(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=s>0||n>0?iA(r.left+H/3,r.top+m/3,s-H/3,n-m/3,Z.TOP_LEFT):new S(r.left+H/3,r.top+m/3),this.topRightBorderDoubleOuterBox=s>0||n>0?iA(r.left+w,r.top+m/3,o-T/3,a-m/3,Z.TOP_RIGHT):new S(r.left+r.width-T/3,r.top+m/3),this.bottomRightBorderDoubleOuterBox=c>0||g>0?iA(r.left+F,r.top+C,c-T/3,g-I/3,Z.BOTTOM_RIGHT):new S(r.left+r.width-T/3,r.top+r.height-I/3),this.bottomLeftBorderDoubleOuterBox=d>0||B>0?iA(r.left+H/3,r.top+y,d-H/3,B-I/3,Z.BOTTOM_LEFT):new S(r.left+H/3,r.top+r.height-I/3),this.topLeftBorderDoubleInnerBox=s>0||n>0?iA(r.left+H*2/3,r.top+m*2/3,s-H*2/3,n-m*2/3,Z.TOP_LEFT):new S(r.left+H*2/3,r.top+m*2/3),this.topRightBorderDoubleInnerBox=s>0||n>0?iA(r.left+w,r.top+m*2/3,o-T*2/3,a-m*2/3,Z.TOP_RIGHT):new S(r.left+r.width-T*2/3,r.top+m*2/3),this.bottomRightBorderDoubleInnerBox=c>0||g>0?iA(r.left+F,r.top+C,c-T*2/3,g-I*2/3,Z.BOTTOM_RIGHT):new S(r.left+r.width-T*2/3,r.top+r.height-I*2/3),this.bottomLeftBorderDoubleInnerBox=d>0||B>0?iA(r.left+H*2/3,r.top+y,d-H*2/3,B-I*2/3,Z.BOTTOM_LEFT):new S(r.left+H*2/3,r.top+r.height-I*2/3),this.topLeftBorderStroke=s>0||n>0?iA(r.left+H/2,r.top+m/2,s-H/2,n-m/2,Z.TOP_LEFT):new S(r.left+H/2,r.top+m/2),this.topRightBorderStroke=s>0||n>0?iA(r.left+w,r.top+m/2,o-T/2,a-m/2,Z.TOP_RIGHT):new S(r.left+r.width-T/2,r.top+m/2),this.bottomRightBorderStroke=c>0||g>0?iA(r.left+F,r.top+C,c-T/2,g-I/2,Z.BOTTOM_RIGHT):new S(r.left+r.width-T/2,r.top+r.height-I/2),this.bottomLeftBorderStroke=d>0||B>0?iA(r.left+H/2,r.top+y,d-H/2,B-I/2,Z.BOTTOM_LEFT):new S(r.left+H/2,r.top+r.height-I/2),this.topLeftBorderBox=s>0||n>0?iA(r.left,r.top,s,n,Z.TOP_LEFT):new S(r.left,r.top),this.topRightBorderBox=o>0||a>0?iA(r.left+w,r.top,o,a,Z.TOP_RIGHT):new S(r.left+r.width,r.top),this.bottomRightBorderBox=c>0||g>0?iA(r.left+F,r.top+C,c,g,Z.BOTTOM_RIGHT):new S(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=d>0||B>0?iA(r.left,r.top+y,d,B,Z.BOTTOM_LEFT):new S(r.left,r.top+r.height),this.topLeftPaddingBox=s>0||n>0?iA(r.left+H,r.top+m,Math.max(0,s-H),Math.max(0,n-m),Z.TOP_LEFT):new S(r.left+H,r.top+m),this.topRightPaddingBox=o>0||a>0?iA(r.left+Math.min(w,r.width-T),r.top+m,w>r.width+T?0:Math.max(0,o-T),Math.max(0,a-m),Z.TOP_RIGHT):new S(r.left+r.width-T,r.top+m),this.bottomRightPaddingBox=c>0||g>0?iA(r.left+Math.min(F,r.width-H),r.top+Math.min(C,r.height-I),Math.max(0,c-T),Math.max(0,g-I),Z.BOTTOM_RIGHT):new S(r.left+r.width-T,r.top+r.height-I),this.bottomLeftPaddingBox=d>0||B>0?iA(r.left+H,r.top+Math.min(y,r.height-I),Math.max(0,d-H),Math.max(0,B-I),Z.BOTTOM_LEFT):new S(r.left+H,r.top+r.height-I),this.topLeftContentBox=s>0||n>0?iA(r.left+H+R,r.top+m+K,Math.max(0,s-(H+R)),Math.max(0,n-(m+K)),Z.TOP_LEFT):new S(r.left+H+R,r.top+m+K),this.topRightContentBox=o>0||a>0?iA(r.left+Math.min(w,r.width+H+R),r.top+m+K,w>r.width+H+R?0:o-H+R,a-(m+K),Z.TOP_RIGHT):new S(r.left+r.width-(T+N),r.top+m+K),this.bottomRightContentBox=c>0||g>0?iA(r.left+Math.min(F,r.width-(H+R)),r.top+Math.min(C,r.height+m+K),Math.max(0,c-(T+N)),g-(I+W),Z.BOTTOM_RIGHT):new S(r.left+r.width-(T+N),r.top+r.height-(I+W)),this.bottomLeftContentBox=d>0||B>0?iA(r.left+H+R,r.top+y,Math.max(0,d-(H+R)),B-(I+W),Z.BOTTOM_LEFT):new S(r.left+H+R,r.top+r.height-(I+W))}}var Z;(function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Z||(Z={}));const iA=(t,A,e,r,s)=>{const n=4*((Math.sqrt(2)-1)/3),o=e*n,a=r*n,c=t+e,g=A+r;switch(s){case Z.TOP_LEFT:return new ve(new S(t,g),new S(t,g-a),new S(c-o,A),new S(c,A));case Z.TOP_RIGHT:return new ve(new S(t,A),new S(t+o,A),new S(c,g-a),new S(c,g));case Z.BOTTOM_RIGHT:return new ve(new S(c,A),new S(c,A+a),new S(t+o,g),new S(t,g));case Z.BOTTOM_LEFT:default:return new ve(new S(c,g),new S(c-o,g),new S(t,A+a),new S(t,A))}},Cs=t=>[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox],Dh=t=>[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox],Qs=t=>[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox];class $i{constructor(A,e,r){this.offsetX=A,this.offsetY=e,this.matrix=r,this.type=0,this.target=6}}class xs{constructor(A,e){this.path=A,this.target=e,this.type=1}}class Rh{constructor(A){this.opacity=A,this.type=2,this.target=6}}class ir{constructor(A){this.applyClip=A,this.type=3,this.target=6}}const kh=t=>t.type===0,qi=t=>t.type===1,Gh=t=>t.type===2,Vh=t=>t.type===3,Ac=(t,A)=>t.length===A.length?t.some((e,r)=>e===A[r]):!1,Mh=(t,A,e,r,s)=>t.map((n,o)=>{switch(o){case 0:return n.add(A,e);case 1:return n.add(A+r,e);case 2:return n.add(A+r,e+s);case 3:return n.add(A,e+s)}return n});class ec{constructor(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}}class tc{constructor(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new Kh(this.container),this.container.styles.opacity<1&&this.effects.push(new Rh(this.container.styles.opacity)),this.container.styles.rotate!==null){const r=this.container.styles.transformOrigin,s=this.container.bounds.left+G(r[0],this.container.bounds.width),n=this.container.bounds.top+G(r[1],this.container.bounds.height),a=this.container.styles.rotate*Math.PI/180,c=Math.cos(a),g=Math.sin(a),d=[c,g,-g,c,0,0];this.effects.push(new $i(s,n,d))}if(this.container.styles.transform!==null){const r=this.container.styles.transformOrigin,s=this.container.bounds.left+G(r[0],this.container.bounds.width),n=this.container.bounds.top+G(r[1],this.container.bounds.height),o=this.container.styles.transform;this.effects.push(new $i(s,n,o))}if(this.container.styles.overflowX!==0){const r=Cs(this.curves),s=Qs(this.curves);Ac(r,s)?this.effects.push(new xs(r,6)):(this.effects.push(new xs(r,2)),this.effects.push(new xs(s,4)))}if(this.container.styles.clipPath.type!==0){const r=Nh(this.container.styles.clipPath,this.container.bounds);r&&this.effects.push(r)}}getEffects(A){let e=[2,3].indexOf(this.container.styles.position)===-1,r=this.parent;const s=this.effects.slice(0);for(;r;){const n=r.effects.filter(o=>!qi(o));if(e||r.container.styles.position!==0||!r.parent){if(e=[2,3].indexOf(r.container.styles.position)===-1,r.container.styles.overflowX!==0){const o=Cs(r.curves),a=Qs(r.curves);Ac(o,a)||s.unshift(new xs(a,6))}s.unshift(...n)}else s.unshift(...n);r=r.parent}return s.filter(n=>cA(n.target,A))}}const rc=(t,A,e,r,s)=>t==="closest-side"?Math.min(A-e,r-A):t==="farthest-side"?Math.max(A-e,r-A):G(t,s),Nh=(t,A)=>{const{left:e,top:r,width:s,height:n}=A;switch(t.type){case 1:{const o=G(t.left,s),a=G(t.top,n),c=e+o,g=r+a,d=Math.max(0,s-o-G(t.right,s)),B=Math.max(0,n-a-G(t.bottom,n));return new ir(u=>{u.beginPath(),u.rect(c,g,d,B),u.clip()})}case 2:{const o=e+G(t.cx,s),a=r+G(t.cy,n);let c;return t.radius==="closest-side"?c=Math.min(o-e,a-r,e+s-o,r+n-a):t.radius==="farthest-side"?c=Math.max(o-e,a-r,e+s-o,r+n-a):c=G(t.radius,Math.sqrt(s*s+n*n)/Math.SQRT2),new ir(g=>{g.beginPath(),g.arc(o,a,Math.max(0,c),0,Math.PI*2),g.clip()})}case 3:{const o=e+G(t.cx,s),a=r+G(t.cy,n),c=rc(t.rx,o,e,e+s,s),g=rc(t.ry,a,r,r+n,n);return new ir(d=>{d.beginPath(),d.ellipse(o,a,Math.max(0,c),Math.max(0,g),0,0,Math.PI*2),d.clip()})}case 4:{const o=t.points.map(([a,c])=>[e+G(a,s),r+G(c,n)]);return new ir(a=>{if(a.beginPath(),o.length>0){a.moveTo(o[0][0],o[0][1]);for(let c=1;c<o.length;c++)a.lineTo(o[c][0],o[c][1]);a.closePath()}a.clip()})}case 5:{const{d:o}=t;return new ir(a=>{try{const c=a.getTransform();a.translate(e,r),a.clip(new Path2D(o)),a.setTransform(c)}catch{}})}case 0:return null;default:return null}},eo=(t,A,e,r)=>{t.container.elements.forEach(s=>{const n=cA(s.flags,4),o=cA(s.flags,2),a=new tc(s,t);cA(s.styles.display,2048)&&r.push(a);const c=cA(s.flags,8)?[]:r;if(n||o){const g=n||s.styles.isPositioned()?e:A,d=new ec(a);if(s.styles.isPositioned()||s.styles.opacity<1||s.styles.isTransformed()){const B=s.styles.zIndex.order;if(B<0){let u=0;g.negativeZIndex.some((f,w)=>B>f.element.container.styles.zIndex.order?(u=w,!1):u>0),g.negativeZIndex.splice(u,0,d)}else if(B>0){let u=0;g.positiveZIndex.some((f,w)=>B>=f.element.container.styles.zIndex.order?(u=w+1,!1):u>0),g.positiveZIndex.splice(u,0,d)}else g.zeroOrAutoZIndexOrTransformedOrOpacity.push(d)}else s.styles.isFloating()?g.nonPositionedFloats.push(d):g.nonPositionedInlineLevel.push(d);eo(a,d,n?d:e,c)}else s.styles.isInlineLevel()?A.inlineLevel.push(a):A.nonInlineLevel.push(a),eo(a,A,e,c);cA(s.flags,8)&&sc(s,c)})},sc=(t,A)=>{let e=t instanceof Wn?t.start:1;const r=t instanceof Wn?t.reversed:!1;for(let s=0;s<A.length;s++){const n=A[s];n.container instanceof Li&&typeof n.container.value=="number"&&n.container.value!==0&&(e=n.container.value),n.listValue=or(e,n.container.styles.listStyleType,!0),e+=r?-1:1}},_h=t=>{const A=new tc(t,null),e=new ec(A),r=[];return eo(A,e,e,r),sc(A.container,r),e},nc=t=>{const A=t.bounds,e=t.styles;return A.add(e.borderLeftWidth,e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth),-(e.borderTopWidth+e.borderBottomWidth))},cr=t=>{const A=t.styles,e=t.bounds,r=G(A.paddingLeft,e.width),s=G(A.paddingRight,e.width),n=G(A.paddingTop,e.width),o=G(A.paddingBottom,e.width);return e.add(r+A.borderLeftWidth,n+A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth+r+s),-(A.borderTopWidth+A.borderBottomWidth+n+o))},Ph=(t,A)=>t===0?A.bounds:t===2?cr(A):nc(A),jh=(t,A)=>t===0?A.bounds:t===2?cr(A):nc(A),to=(t,A,e)=>{const r=Ph(yt(t.styles.backgroundOrigin,A),t),s=jh(yt(t.styles.backgroundClip,A),t),n=Wh(yt(t.styles.backgroundSize,A),e,r);let[o,a]=n;const c=$t(yt(t.styles.backgroundPosition,A),r.width-o,r.height-a),g=Xh(yt(t.styles.backgroundRepeat,A),c,n,r,s),d=Math.round(r.left+c[0]),B=Math.round(r.top+c[1]);return o=Math.max(1,o),a=Math.max(1,a),[g,d,B,o,a]},Ft=t=>M(t)&&t.value===mt.AUTO,Us=t=>typeof t=="number",Wh=(t,[A,e,r],s)=>{const[n,o]=t;if(!n)return[0,0];if(q(n)&&o&&q(o))return[G(n,s.width),G(o,s.height)];const a=Us(r);if(M(n)&&(n.value===mt.CONTAIN||n.value===mt.COVER))return Us(r)?s.width/s.height<r!=(n.value===mt.COVER)?[s.width,s.width/r]:[s.height*r,s.height]:[s.width,s.height];const c=Us(A),g=Us(e),d=c||g;if(Ft(n)&&(!o||Ft(o))){if(c&&g)return[A,e];if(!a&&!d)return[s.width,s.height];if(d&&a){const C=c?A:e*r,F=g?e:A/r;return[C,F]}const f=c?A:s.width,w=g?e:s.height;return[f,w]}if(a){let f=0,w=0;return q(n)?f=G(n,s.width):q(o)&&(w=G(o,s.height)),Ft(n)?f=w*r:(!o||Ft(o))&&(w=f/r),[f,w]}let B=null,u=null;if(q(n)?B=G(n,s.width):o&&q(o)&&(u=G(o,s.height)),B!==null&&(!o||Ft(o))&&(u=c&&g?B/A*e:s.height),u!==null&&Ft(n)&&(B=c&&g?u/e*A:s.width),B!==null&&u!==null)return[B,u];throw new Error("Unable to calculate background-size for element")},yt=(t,A)=>{const e=t[A];return typeof e>"u"?t[0]:e},Xh=(t,[A,e],[r,s],n,o)=>{switch(t){case 2:return[new S(Math.round(n.left),Math.round(n.top+e)),new S(Math.round(n.left+n.width),Math.round(n.top+e)),new S(Math.round(n.left+n.width),Math.round(s+n.top+e)),new S(Math.round(n.left),Math.round(s+n.top+e))];case 3:return[new S(Math.round(n.left+A),Math.round(n.top)),new S(Math.round(n.left+A+r),Math.round(n.top)),new S(Math.round(n.left+A+r),Math.round(n.height+n.top)),new S(Math.round(n.left+A),Math.round(n.height+n.top))];case 1:return[new S(Math.round(n.left+A),Math.round(n.top+e)),new S(Math.round(n.left+A+r),Math.round(n.top+e)),new S(Math.round(n.left+A+r),Math.round(n.top+e+s)),new S(Math.round(n.left+A),Math.round(n.top+e+s))];default:return[new S(Math.round(o.left),Math.round(o.top)),new S(Math.round(o.left+o.width),Math.round(o.top)),new S(Math.round(o.left+o.width),Math.round(o.height+o.top)),new S(Math.round(o.left),Math.round(o.height+o.top))]}},zh="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",oc="Hidden Text";class Jh{constructor(A){this._data={},this._document=A}parseMetrics(A,e){const r=this._document.createElement("div"),s=this._document.createElement("img"),n=this._document.createElement("span"),o=this._document.body;r.style.visibility="hidden",r.style.fontFamily=A,r.style.fontSize=e,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",o.appendChild(r),s.src=zh,s.width=1,s.height=1,s.style.margin="0",s.style.padding="0",s.style.verticalAlign="baseline",n.style.fontFamily=A,n.style.fontSize=e,n.style.margin="0",n.style.padding="0",n.appendChild(this._document.createTextNode(oc)),r.appendChild(n),r.appendChild(s);const a=s.offsetTop-n.offsetTop+2;r.removeChild(n),r.appendChild(this._document.createTextNode(oc)),r.style.lineHeight="normal",s.style.verticalAlign="super";const c=s.offsetTop-r.offsetTop+2;return o.removeChild(r),{baseline:a,middle:c}}getMetrics(A,e){const r=`${A} ${e}`;return typeof this._data[r]>"u"&&(this._data[r]=this.parseMetrics(A,e)),this._data[r]}}class ac{constructor(A,e){this.context=A,this.options=e}}class Yh{constructor(A){this.ctx=A.ctx,this.context=A.context,this.canvas=A.canvas}async renderBackgroundImage(A){let e=A.styles.backgroundImage.length-1;for(const r of A.styles.backgroundImage.slice(0).reverse())r.type===0?await this.renderBackgroundURLImage(A,r,e):Ig(r)?this.renderLinearGradient(A,r,e):Hg(r)&&this.renderRadialGradient(A,r,e),e--}async renderBackgroundURLImage(A,e,r){let s;const n=e.url;try{s=await this.context.cache.match(n)}catch{this.context.logger.error(`Error loading background-image ${n}`)}if(s){const o=isNaN(s.width)||s.width===0?1:s.width,a=isNaN(s.height)||s.height===0?1:s.height,[c,g,d,B,u]=to(A,r,[o,a,o/a]),f=this.ctx.createPattern(this.resizeImage(s,B,u,A.styles.imageRendering),"repeat");this.renderRepeat(c,f,g,d)}}renderLinearGradient(A,e,r){const[s,n,o,a,c]=to(A,r,[null,null,null]),[g,d,B,u,f]=Fg(e.angle,a,c),C=(this.canvas.ownerDocument??document).createElement("canvas");C.width=a,C.height=c;const F=C.getContext("2d"),y=F.createLinearGradient(d,u,B,f);if(Ja(e.stops,g||1).forEach(m=>y.addColorStop(m.stop,sA(m.color))),F.fillStyle=y,F.fillRect(0,0,a,c),a>0&&c>0){const m=this.ctx.createPattern(C,"repeat");this.renderRepeat(s,m,n,o)}}renderRadialGradient(A,e,r){const[s,n,o,a,c]=to(A,r,[null,null,null]),g=e.position.length===0?[qe]:e.position,d=G(g[0],a),B=G(g[g.length-1],c);let[u,f]=yg(e,d,B,a,c);if((u===0||f===0)&&(u=Math.max(u,.01),f=Math.max(f,.01)),u>0&&f>0){const w=this.ctx.createRadialGradient(n+d,o+B,0,n+d,o+B,u);if(Ja(e.stops,u*2).forEach(C=>w.addColorStop(C.stop,sA(C.color))),this.path(s),this.ctx.fillStyle=w,u!==f){const C=A.bounds.left+.5*A.bounds.width,F=A.bounds.top+.5*A.bounds.height,y=f/u,m=1/y;this.ctx.save(),this.ctx.translate(C,F),this.ctx.transform(1,0,0,y,0,0),this.ctx.translate(-C,-F),this.ctx.fillRect(n,m*(o-F)+F,a,c*m),this.ctx.restore()}else this.ctx.fill()}}renderRepeat(A,e,r,s){this.path(A),this.ctx.fillStyle=e,this.ctx.translate(r,s),this.ctx.fill(),this.ctx.translate(-r,-s)}resizeImage(A,e,r,s){const o=(this.canvas.ownerDocument??document).createElement("canvas");o.width=Math.max(1,e),o.height=Math.max(1,r);const a=o.getContext("2d");return s===$A.PIXELATED||s===$A.CRISP_EDGES?(this.context.logger.debug("Disabling image smoothing for background image due to CSS image-rendering"),a.imageSmoothingEnabled=!1):s===$A.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=jA(e)?e.start:e;r===0?this.ctx.moveTo(s.x,s.y):this.ctx.lineTo(s.x,s.y),jA(e)&&this.ctx.bezierCurveTo(e.startControl.x,e.startControl.y,e.endControl.x,e.endControl.y,e.end.x,e.end.y)})}}const ic=(t,A)=>{switch(A){case 0:return te(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return te(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return te(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);default:return te(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},Zh=(t,A)=>{switch(A){case 0:return te(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return te(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return te(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);default:return te(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},$h=(t,A)=>{switch(A){case 0:return te(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return te(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return te(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);default:return te(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},qh=(t,A)=>{switch(A){case 0:return Fs(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return Fs(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return Fs(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);default:return Fs(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},Fs=(t,A)=>{const e=[];return jA(t)?e.push(t.subdivide(.5,!1)):e.push(t),jA(A)?e.push(A.subdivide(.5,!0)):e.push(A),e},te=(t,A,e,r)=>{const s=[];return jA(t)?s.push(t.subdivide(.5,!1)):s.push(t),jA(e)?s.push(e.subdivide(.5,!0)):s.push(e),jA(r)?s.push(r.subdivide(.5,!0).reverse()):s.push(r),jA(A)?s.push(A.subdivide(.5,!1).reverse()):s.push(A),s};class Ap{constructor(A,e){this.ctx=A.ctx,this.pathCallbacks=e}async renderSolidBorder(A,e,r){this.pathCallbacks.path(ic(r,e)),this.ctx.fillStyle=sA(A),this.ctx.fill()}async renderDoubleBorder(A,e,r,s){if(e<3){await this.renderSolidBorder(A,r,s);return}const n=Zh(s,r);this.pathCallbacks.path(n),this.ctx.fillStyle=sA(A),this.ctx.fill();const o=$h(s,r);this.pathCallbacks.path(o),this.ctx.fill()}async renderDashedDottedBorder(A,e,r,s,n){this.ctx.save();const o=qh(s,r),a=ic(s,r);n===2&&(this.pathCallbacks.path(a),this.ctx.clip());let c,g,d,B;jA(a[0])?(c=a[0].start.x,g=a[0].start.y):(c=a[0].x,g=a[0].y),jA(a[1])?(d=a[1].end.x,B=a[1].end.y):(d=a[1].x,B=a[1].y);let u;r===0||r===2?u=Math.abs(c-d):u=Math.abs(g-B),this.ctx.beginPath(),n===3?this.pathCallbacks.formatPath(o):this.pathCallbacks.formatPath(a.slice(0,2));let f=e<3?e*3:e*2,w=e<3?e*2:e;n===3&&(f=e,w=e);let C=!0;if(u<=f*2)C=!1;else if(u<=f*2+w){const F=u/(2*f+w);f*=F,w*=F}else{const F=Math.floor((u+w)/(f+w)),y=(u-F*f)/(F-1),m=(u-(F+1)*f)/F;w=m<=0||Math.abs(w-y)<Math.abs(w-m)?y:m}if(C&&(n===3?this.ctx.setLineDash([0,f+w]):this.ctx.setLineDash([f,w])),n===3?(this.ctx.lineCap="round",this.ctx.lineWidth=e):this.ctx.lineWidth=e*2+1.1,this.ctx.strokeStyle=sA(A),this.ctx.stroke(),this.ctx.setLineDash([]),n===2){if(jA(a[0])){const F=a[3],y=a[0];this.ctx.beginPath(),this.pathCallbacks.formatPath([new S(F.end.x,F.end.y),new S(y.start.x,y.start.y)]),this.ctx.stroke()}if(jA(a[1])){const F=a[1],y=a[2];this.ctx.beginPath(),this.pathCallbacks.formatPath([new S(F.end.x,F.end.y),new S(y.start.x,y.start.y)]),this.ctx.stroke()}}this.ctx.restore()}}class ep{constructor(A,e){this.activeEffects=[],this.ctx=A.ctx,this.pathCallback=e}applyEffects(A){for(;this.activeEffects.length;)this.popEffect();A.forEach(e=>this.applyEffect(e))}applyEffect(A){this.ctx.save(),Gh(A)?this.ctx.globalAlpha=A.opacity:kh(A)?(this.ctx.translate(A.offsetX,A.offsetY),this.ctx.transform(A.matrix[0],A.matrix[1],A.matrix[2],A.matrix[3],A.matrix[4],A.matrix[5]),this.ctx.translate(-A.offsetX,-A.offsetY)):qi(A)?(this.pathCallback.path(A.path),this.ctx.clip()):Vh(A)&&A.applyClip(this.ctx),this.activeEffects.push(A)}popEffect(){this.activeEffects.pop(),this.ctx.restore()}getActiveEffectCount(){return this.activeEffects.length}hasActiveEffects(){return this.activeEffects.length>0}}const tp=["-apple-system","system-ui"],rp=/[\u2E80-\u2FFF\u3000-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uAC00-\uD7AF\uF900-\uFAFF\uFF01-\uFFEF]/,sp=t=>rp.test(t),np=()=>{if(typeof navigator>"u")return null;const t=navigator.userAgent,A=/iPhone|iPad|iPod/.test(t),e=/Macintosh/.test(t)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>1;if(!A&&!e)return null;const r=[/(?:iPhone|CPU(?:\siPhone)?)\sOS\s(\d+)[\._](\d+)/,/Version\/(\d+)\.(\d+)/];for(const s of r){const n=t.match(s);if(n&&n[1])return parseInt(n[1],10)}return null},op=t=>{const A=np();return A!==null&&A>=15&&A<17?t.map(e=>tp.indexOf(e)!==-1?'-apple-system, "Helvetica Neue", Arial, sans-serif':e):t};class ap{constructor(A){this.ctx=A.ctx,this.options=A.options}iterateLettersWithLetterSpacing(A,e,r,s){const n=us(A.text),o=A.bounds.top+r;let a=A.bounds.left;for(const c of n){if(sp(c)){const g=this.ctx.textBaseline;this.ctx.textBaseline="ideographic",s(c,a,o),this.ctx.textBaseline=g}else s(c,a,o);a+=this.ctx.measureText(c).width+e}}renderTextWithLetterSpacing(A,e,r){e===0?this.ctx.fillText(A.text,A.bounds.left,A.bounds.top+r):this.iterateLettersWithLetterSpacing(A,e,r,(s,n,o)=>{this.ctx.fillText(s,n,o)})}renderTextBoundWithPaintOrder(A,e,r){r.forEach(s=>{switch(s){case 0:this.ctx.fillStyle=sA(e.color),this.renderTextWithLetterSpacing(A,e.letterSpacing,e.fontSize.number);break;case 1:e.webkitTextStrokeWidth&&A.text.trim().length&&(this.ctx.strokeStyle=sA(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=sA(e.textDecorationColor||e.color);let r=1;typeof e.textDecorationThickness=="number"?r=e.textDecorationThickness:e.textDecorationThickness==="from-font"&&(r=Math.max(1,Math.floor(e.fontSize.number*.05)));let s=0;typeof e.textUnderlineOffset=="number"&&(s=e.textUnderlineOffset);const n=e.textDecorationStyle;e.textDecorationLine.forEach(o=>{let a=0;switch(o){case 1:a=A.top+A.height-r+s;break;case 2:a=A.top;break;case 3:a=A.top+(A.height/2-r/2);break;default:return}this.drawDecorationLine(A.left,a,A.width,r,n)})}drawDecorationLine(A,e,r,s,n){switch(n){case 0:this.ctx.fillRect(A,e,r,s);break;case 1:const o=Math.max(1,s);this.ctx.fillRect(A,e,r,s),this.ctx.fillRect(A,e+s+o,r,s);break;case 2:this.ctx.save(),this.ctx.beginPath(),this.ctx.setLineDash([s,s*2]),this.ctx.lineWidth=s,this.ctx.strokeStyle=this.ctx.fillStyle,this.ctx.moveTo(A,e+s/2),this.ctx.lineTo(A+r,e+s/2),this.ctx.stroke(),this.ctx.restore();break;case 3:this.ctx.save(),this.ctx.beginPath(),this.ctx.setLineDash([s*3,s*2]),this.ctx.lineWidth=s,this.ctx.strokeStyle=this.ctx.fillStyle,this.ctx.moveTo(A,e+s/2),this.ctx.lineTo(A+r,e+s/2),this.ctx.stroke(),this.ctx.restore();break;case 4:this.ctx.save(),this.ctx.beginPath(),this.ctx.lineWidth=s,this.ctx.strokeStyle=this.ctx.fillStyle;const a=s*2,c=s*4;let g=A;for(this.ctx.moveTo(g,e+s/2);g<A+r;){const d=Math.min(g+c/2,A+r);if(this.ctx.quadraticCurveTo(g+c/4,e+s/2-a,d,e+s/2),g=d,g<A+r){const B=Math.min(g+c/2,A+r);this.ctx.quadraticCurveTo(g+c/4,e+s/2+a,B,e+s/2),g=B}}this.ctx.stroke(),this.ctx.restore();break;default:this.ctx.fillRect(A,e,r,s)}}truncateTextWithEllipsis(A,e,r){const n=this.ctx.measureText("…").width,o=us(A);if(r===0){const a=d=>this.ctx.measureText(o.slice(0,d).join("")).width+n<=e;let c=0,g=o.length;for(;c<g;){const d=c+g+1>>1;a(d)?c=d:g=d-1}return o.slice(0,c).join("")+"…"}else{let a=n;const c=[];for(const g of o){const d=this.ctx.measureText(g).width;if(a+d>e)break;c.push(g),a+=d+r}return c.join("")+"…"}}createFontStyle(A){const e=A.fontVariant.filter(n=>n==="normal"||n==="small-caps").join(""),r=op(A.fontFamily).join(", "),s=fe(A.fontSize)?`${A.fontSize.number}${A.fontSize.unit}`:`${A.fontSize.number}px`;return[[A.fontStyle,e,A.fontWeight,s,r].join(" "),r,s]}async renderTextNode(A,e,r){const[s]=this.createFontStyle(e);this.ctx.font=s,this.ctx.direction=e.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic";const n=e.paintOrder,o=e.fontSize.number*1.5;if(e.webkitLineClamp>0&&(e.display&2)!==0&&e.overflowY===1&&A.textBounds.length>0){const B=[];let u=[],f=A.textBounds[0].bounds.top;A.textBounds.forEach(C=>{Math.abs(C.bounds.top-f)>=o*.5?(u.length>0&&B.push(u),u=[C],f=C.bounds.top):u.push(C)}),u.length>0&&B.push(u);const w=e.webkitLineClamp;if(B.length>w){for(let F=0;F<w-1;F++)B[F].forEach(y=>{this.renderTextBoundWithPaintOrder(y,e,n)});const C=B[w-1];if(C&&C.length>0&&r){const F=C.map(H=>H.text).join(""),y=C[0],m=r.width-(y.bounds.left-r.left),T=this.truncateTextWithEllipsis(F,m,e.letterSpacing),I=new tt(T,y.bounds);n.forEach(H=>{switch(H){case 0:this.ctx.fillStyle=sA(e.color),e.letterSpacing===0?this.ctx.fillText(T,y.bounds.left,y.bounds.top+e.fontSize.number):this.iterateLettersWithLetterSpacing(I,e.letterSpacing,e.fontSize.number,(K,N,W)=>this.ctx.fillText(K,N,W));break;case 1:e.webkitTextStrokeWidth&&T.trim().length&&(this.ctx.strokeStyle=sA(e.webkitTextStrokeColor),this.ctx.lineWidth=e.webkitTextStrokeWidth,this.ctx.lineJoin=typeof window<"u"&&window.chrome?"miter":"round",e.letterSpacing===0?this.ctx.strokeText(T,y.bounds.left,y.bounds.top+e.fontSize.number):this.iterateLettersWithLetterSpacing(I,e.letterSpacing,e.fontSize.number,(K,N,W)=>this.ctx.strokeText(K,N,W)),this.ctx.strokeStyle="",this.ctx.lineWidth=0,this.ctx.lineJoin="miter");break}})}return}}const c=e.textOverflow===1&&r&&e.overflowX===1&&A.textBounds.length>0;let g=!1,d="";if(c){const B=A.textBounds[0].bounds.top;if(A.textBounds.every(f=>Math.abs(f.bounds.top-B)<o*.5)){let f=A.textBounds.map(F=>F.text).join("");f=f.replace(/\s+/g," ").trim();const w=this.ctx.measureText(f).width,C=r.width;w>C&&(g=!0,d=this.truncateTextWithEllipsis(f,C,e.letterSpacing))}}if(g){const B=A.textBounds[0],u=new tt(d,B.bounds);n.forEach(f=>{switch(f){case 0:{this.ctx.fillStyle=sA(e.color),e.letterSpacing===0?this.ctx.fillText(d,B.bounds.left,B.bounds.top+e.fontSize.number):this.iterateLettersWithLetterSpacing(u,e.letterSpacing,e.fontSize.number,(C,F,y)=>this.ctx.fillText(C,F,y));const w=e.textShadow;w.length&&d.trim().length&&(w.slice(0).reverse().forEach(C=>{this.ctx.shadowColor=sA(C.color),this.ctx.shadowOffsetX=C.offsetX.number*this.options.scale,this.ctx.shadowOffsetY=C.offsetY.number*this.options.scale,this.ctx.shadowBlur=C.blur.number,e.letterSpacing===0?this.ctx.fillText(d,B.bounds.left,B.bounds.top+e.fontSize.number):this.iterateLettersWithLetterSpacing(u,e.letterSpacing,e.fontSize.number,(F,y,m)=>this.ctx.fillText(F,y,m))}),this.ctx.shadowColor="",this.ctx.shadowOffsetX=0,this.ctx.shadowOffsetY=0,this.ctx.shadowBlur=0);break}case 1:e.webkitTextStrokeWidth&&d.trim().length&&(this.ctx.strokeStyle=sA(e.webkitTextStrokeColor),this.ctx.lineWidth=e.webkitTextStrokeWidth,this.ctx.lineJoin=typeof window<"u"&&window.chrome?"miter":"round",e.letterSpacing===0?this.ctx.strokeText(d,B.bounds.left,B.bounds.top+e.fontSize.number):this.iterateLettersWithLetterSpacing(u,e.letterSpacing,e.fontSize.number,(w,C,F)=>this.ctx.strokeText(w,C,F)),this.ctx.strokeStyle="",this.ctx.lineWidth=0,this.ctx.lineJoin="miter");break}});return}A.textBounds.forEach(B=>{n.forEach(u=>{switch(u){case 0:{this.ctx.fillStyle=sA(e.color),this.renderTextWithLetterSpacing(B,e.letterSpacing,e.fontSize.number);const f=e.textShadow;f.length&&B.text.trim().length&&(f.slice(0).reverse().forEach(w=>{this.ctx.shadowColor=sA(w.color),this.ctx.shadowOffsetX=w.offsetX.number*this.options.scale,this.ctx.shadowOffsetY=w.offsetY.number*this.options.scale,this.ctx.shadowBlur=w.blur.number,this.renderTextWithLetterSpacing(B,e.letterSpacing,e.fontSize.number)}),this.ctx.shadowColor="",this.ctx.shadowOffsetX=0,this.ctx.shadowOffsetY=0,this.ctx.shadowBlur=0),e.textDecorationLine.length&&this.renderTextDecoration(B.bounds,e);break}case 1:{if(e.webkitTextStrokeWidth&&B.text.trim().length){this.ctx.strokeStyle=sA(e.webkitTextStrokeColor),this.ctx.lineWidth=e.webkitTextStrokeWidth,this.ctx.lineJoin=typeof window<"u"&&window.chrome?"miter":"round";const f=e.fontSize.number;e.letterSpacing===0?this.ctx.strokeText(B.text,B.bounds.left,B.bounds.top+f):this.iterateLettersWithLetterSpacing(B,e.letterSpacing,f,(w,C,F)=>this.ctx.strokeText(w,C,F)),this.ctx.strokeStyle="",this.ctx.lineWidth=0,this.ctx.lineJoin="miter"}break}}})})}}const ip=1e4;class ro extends ac{constructor(A,e){super(A,e),this.canvas=e.canvas?e.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),e.canvas||(this.canvas.width=Math.floor(e.width*e.scale),this.canvas.height=Math.floor(e.height*e.scale),this.canvas.style.width=`${e.width}px`,this.canvas.style.height=`${e.height}px`),this.fontMetrics=new Jh(document),this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-e.x,-e.y),this.ctx.textBaseline="bottom",e.imageSmoothing!==void 0&&(this.ctx.imageSmoothingEnabled=e.imageSmoothing),e.imageSmoothingQuality&&(this.ctx.imageSmoothingQuality=e.imageSmoothingQuality),this.backgroundRenderer=new Yh({ctx:this.ctx,context:this.context,canvas:this.canvas,options:{width:e.width,height:e.height,scale:e.scale}}),this.borderRenderer=new Ap({ctx:this.ctx},{path:r=>this.path(r),formatPath:r=>this.formatPath(r)}),this.effectsRenderer=new ep({ctx:this.ctx},{path:r=>this.path(r)}),this.textRenderer=new ap({ctx:this.ctx,context:this.context,options:{scale:e.scale}}),this.context.logger.debug(`Canvas renderer initialized (${e.width}x${e.height}) with scale ${e.scale}`)}async renderStack(A){A.element.container.styles.isVisible()&&await this.renderStackContent(A)}async renderNode(A){if(cA(A.container.flags,16))debugger;A.container.styles.isVisible()&&(await this.renderNodeBackgroundAndBorders(A),await this.renderNodeContent(A))}renderReplacedElement(A,e,r){const s=r.naturalWidth||A.intrinsicWidth,n=r.naturalHeight||A.intrinsicHeight;if(r&&s>0&&n>0){const o=cr(A),a=Qs(e);this.path(a),this.ctx.save(),this.ctx.clip();let c=0,g=0,d=s,B=n,u=o.left,f=o.top,w=o.width,C=o.height;const{objectFit:F}=A.styles,y=w/C,m=d/B;if(F===2)m>y?(C=w/m,f+=(o.height-C)/2):(w=C*m,u+=(o.width-w)/2);else if(F===4)m>y?(d=B*y,c+=(s-d)/2):(B=d/y,g+=(n-B)/2);else if(F===8)d>w?(c+=(d-w)/2,d=w):(u+=(w-d)/2,w=d),B>C?(g+=(B-C)/2,B=C):(f+=(C-B)/2,C=B);else if(F===16){const T=m>y?w:C*m,I=d>w?d:w;T<I?m>y?(C=w/m,f+=(o.height-C)/2):(w=C*m,u+=(o.width-w)/2):(d>w?(c+=(d-w)/2,d=w):(u+=(w-d)/2,w=d),B>C?(g+=(B-C)/2,B=C):(f+=(C-B)/2,C=B))}this.ctx.drawImage(r,c,g,d,B,u,f,w,C),this.ctx.restore()}}async renderNodeContent(A){this.effectsRenderer.applyEffects(A.getEffects(4));const e=A.container,r=A.curves,s=e.styles,n=cr(e);for(const o of e.textNodes)await this.textRenderer.renderTextNode(o,s,n);if(e instanceof Ii)try{const o=await this.context.cache.match(e.src),a=this.ctx.imageSmoothingEnabled;s.imageRendering===$A.PIXELATED||s.imageRendering===$A.CRISP_EDGES?(this.context.logger.debug(`Disabling image smoothing for ${e.src} due to CSS image-rendering: ${s.imageRendering===$A.PIXELATED?"pixelated":"crisp-edges"}`),this.ctx.imageSmoothingEnabled=!1):s.imageRendering===$A.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 Hi&&this.renderReplacedElement(e,r,e.canvas),e instanceof Si)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 Di&&e.tree){const a=await new ro(this.context,{scale:this.options.scale,backgroundColor:e.backgroundColor,x:0,y:0,width:e.width,height:e.height}).render(e.tree);e.width&&e.height&&this.ctx.drawImage(a,0,0,e.width,e.height,e.bounds.left,e.bounds.top,e.bounds.width,e.bounds.height)}if(e instanceof rr){const o=Math.min(e.bounds.width,e.bounds.height);e.type===fs?e.checked&&(this.ctx.save(),this.path([new S(e.bounds.left+o*.39363,e.bounds.top+o*.79),new S(e.bounds.left+o*.16,e.bounds.top+o*.5549),new S(e.bounds.left+o*.27347,e.bounds.top+o*.44071),new S(e.bounds.left+o*.39694,e.bounds.top+o*.5649),new S(e.bounds.left+o*.72983,e.bounds.top+o*.23),new S(e.bounds.left+o*.84,e.bounds.top+o*.34085),new S(e.bounds.left+o*.39363,e.bounds.top+o*.79)]),this.ctx.fillStyle=sA(Ti),this.ctx.fill(),this.ctx.restore()):e.type===hs&&e.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(e.bounds.left+o/2,e.bounds.top+o/2,o/4,0,Math.PI*2,!0),this.ctx.fillStyle=sA(Ti),this.ctx.fill(),this.ctx.restore())}if(cp(e)&&e.value.length){const[o,a,c]=this.textRenderer.createFontStyle(s),{baseline:g}=this.fontMetrics.getMetrics(a,c);this.ctx.font=o;const d=e instanceof rr&&e.isPlaceholder;this.ctx.fillStyle=sA(d?Bh:s.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=dp(e.styles.textAlign);const B=cr(e);let u=0;switch(e.styles.textAlign){case 1:u+=B.width/2;break;case 2:u+=B.width;break}let f=0;if(e instanceof rr){const C=G(s.fontSize,0);f=(B.height-C)/2}const w=B.add(u,f,0,0);this.ctx.save(),this.path([new S(B.left,B.top),new S(B.left+B.width,B.top),new S(B.left+B.width,B.top+B.height),new S(B.left,B.top+B.height)]),this.ctx.clip(),this.textRenderer.renderTextWithLetterSpacing(new tt(e.value,w),s.letterSpacing,g),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(cA(e.styles.display,2048)){if(e.styles.listStyleImage!==null){const o=e.styles.listStyleImage;if(o.type===0){let a;const c=o.url;try{a=await this.context.cache.match(c),this.ctx.drawImage(a,e.bounds.left-(a.width+10),e.bounds.top)}catch{this.context.logger.error(`Error loading list-style-image ${c}`)}}}else if(A.listValue&&e.styles.listStyleType!==-1){const[o]=this.textRenderer.createFontStyle(s);this.ctx.font=o,this.ctx.fillStyle=sA(s.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right";const a=new DA(e.bounds.left,e.bounds.top+G(e.styles.paddingTop,e.bounds.width),e.bounds.width,ai(s.lineHeight,s.fontSize.number)/2+1);this.textRenderer.renderTextWithLetterSpacing(new tt(A.listValue,a),s.letterSpacing,ai(s.lineHeight,s.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"}}}async renderStackContent(A){if(cA(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=jA(e)?e.start:e;r===0?this.ctx.moveTo(s.x,s.y):this.ctx.lineTo(s.x,s.y),jA(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=!Ve(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(yt(e.backgroundClip,0),A.curves);(r||e.boxShadow.length)&&(this.ctx.save(),this.path(n),this.ctx.clip(),Ve(e.backgroundColor)||(this.ctx.fillStyle=sA(e.backgroundColor),this.ctx.fill()),await this.backgroundRenderer.renderBackgroundImage(A.container),this.ctx.restore(),e.boxShadow.slice(0).reverse().forEach(a=>{this.ctx.save();const c=Cs(A.curves),g=a.inset?0:ip,d=Mh(c,-g+(a.inset?1:-1)*a.spread.number,(a.inset?1:-1)*a.spread.number,a.spread.number*(a.inset?-2:2),a.spread.number*(a.inset?-2:2));a.inset?(this.path(c),this.ctx.clip(),this.mask(d)):(this.mask(c),this.ctx.clip(),this.path(d)),this.ctx.shadowOffsetX=a.offsetX.number+g,this.ctx.shadowOffsetY=a.offsetY.number,this.ctx.shadowColor=sA(a.color),this.ctx.shadowBlur=a.blur.number,this.ctx.fillStyle=a.inset?sA(a.color):"rgba(0,0,0,1)",this.ctx.fill(),this.ctx.restore()}));let o=0;for(const a of s)a.style!==0&&!Ve(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=sA(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height));const e=_h(A);return await this.renderStack(e),this.effectsRenderer.applyEffects([]),this.canvas}}const cp=t=>t instanceof Ki||t instanceof Oi?!0:t instanceof rr&&t.type!==hs&&t.type!==fs,lp=(t,A)=>{switch(t){case 0:return Cs(A);case 2:return Dh(A);default:return Qs(A)}},dp=t=>{switch(t){case 1:return"center";case 2:return"right";default:return"left"}};class Bp extends ac{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=jn(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,A),r=await gp(e);return this.options.backgroundColor&&(this.ctx.fillStyle=sA(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(r,-this.options.x*this.options.scale,-this.options.y*this.options.scale),this.canvas}}const gp=t=>new Promise((A,e)=>{const r=new Image;r.onload=()=>{A(r)},r.onerror=e,r.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(new XMLSerializer().serializeToString(t))}`});class cc{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))}}cc.instances={};class up{constructor(A,e){if(this.context=A,this._options=e,this._cache=new Map,this._pendingOperations=new Map,this.maxSize=e.maxCacheSize??100,this.maxSize<1)throw new Error("Cache maxSize must be at least 1");this.maxSize>1e4&&this.context.logger.warn(`Cache maxSize ${this.maxSize} is very large and may cause memory issues. Consider using a smaller value (recommended: 100-1000).`)}addImage(A){const e=this._pendingOperations.get(A);if(e)return e;if(this.has(A)){const r=this._cache.get(A);return r&&(r.lastAccessed=Date.now()),Promise.resolve()}if(no(A)||wp(A)){const r=this._addImageInternal(A);return this._pendingOperations.set(A,r),r.finally(()=>{this._pendingOperations.delete(A)}),r}return Promise.resolve()}async _addImageInternal(A){const e=this._options.imageTimeout??15e3,r=new Promise((n,o)=>{setTimeout(()=>{o(new Error(`Image load timeout after ${e}ms: ${A}`))},e)}),s=Promise.race([this.loadImage(A),r]);s.catch(n=>{this.context.logger.error(`Failed to load image ${A}: ${n instanceof Error?n.message:"Unknown error"}`)}),this.set(A,s)}match(A){const e=this._cache.get(A);if(e)return e.lastAccessed=Date.now(),e.value}set(A,e){if(this._cache.has(A)){const r=this._cache.get(A);r.value=e,r.lastAccessed=Date.now();return}this._cache.size>=this.maxSize&&this.evictLRU(),this._cache.set(A,{value:e,lastAccessed:Date.now()})}evictLRU(){let A=null,e=1/0;for(const[r,s]of this._cache.entries())s.lastAccessed<e&&(e=s.lastAccessed,A=r);A&&(this._cache.delete(A),this.context.logger.debug(`Cache: Evicted LRU entry: ${A}`))}size(){return this._cache.size}getMaxSize(){return this.maxSize}clear(){this._cache.clear()}async loadImage(A){const e=this.context.originChecker,r=c=>e.isSameOrigin(c),s=typeof this._options.customIsSameOrigin=="function"?await this._options.customIsSameOrigin(A,r):r(A),n=!so(A)&&this._options.useCORS===!0&&OA.SUPPORT_CORS_IMAGES&&!s,o=!so(A)&&!s&&!no(A)&&typeof this._options.proxy=="string"&&OA.SUPPORT_CORS_XHR&&!n;if(!s&&this._options.allowTaint===!1&&!so(A)&&!no(A)&&!o&&!n)return;let a=A;return o&&(a=await this.proxy(a)),this.context.logger.debug(`Added image ${A.substring(0,256)}`),await new Promise((c,g)=>{const d=new Image;d.onload=()=>c(d),d.onerror=g,(mp(a)||n)&&(d.crossOrigin="anonymous"),d.src=a,d.complete===!0&&setTimeout(()=>c(d),500),this._options.imageTimeout>0&&setTimeout(()=>g(`Timed out (${this._options.imageTimeout}ms) loading image`),this._options.imageTimeout)})}has(A){return this._cache.has(A)}keys(){return Promise.resolve(Object.keys(this._cache))}proxy(A){const e=this._options.proxy;if(!e)throw new Error("No proxy defined");const r=A.substring(0,256);return new Promise((s,n)=>{const o=OA.SUPPORT_RESPONSE_TYPE?"blob":"text",a=new XMLHttpRequest;a.onload=()=>{if(a.status===200)if(o==="text")s(a.response);else{const g=new FileReader;g.addEventListener("load",()=>s(g.result),!1),g.addEventListener("error",d=>n(d),!1),g.readAsDataURL(a.response)}else n(`Failed to proxy resource ${r} with status code ${a.status}`)},a.onerror=n;const c=e.indexOf("?")>-1?"&":"?";if(a.open("GET",`${e}${c}url=${encodeURIComponent(A)}&responseType=${o}`),o!=="text"&&a instanceof XMLHttpRequest&&(a.responseType=o),this._options.imageTimeout){const g=this._options.imageTimeout;a.timeout=g,a.ontimeout=()=>n(`Timed out (${g}ms) proxying ${r}`)}a.send()})}}const fp=/^data:image\/svg\+xml/i,hp=/^data:image\/.*;base64,/i,pp=/^data:image\/.*/i,wp=t=>OA.SUPPORT_SVG_DRAWING||!Cp(t),so=t=>pp.test(t),mp=t=>hp.test(t),no=t=>t.substr(0,4)==="blob",Cp=t=>t.substr(-3).toLowerCase()==="svg"||fp.test(t);class Qp{constructor(A){if(!A||!A.document)throw new Error("Valid window object required for OriginChecker");if(!A.location||!A.location.href)throw new Error("Window object must have valid location");this.link=A.document.createElement("a"),this.origin=this.getOrigin(A.location.href)}getOrigin(A){return this.link.href=A,this.link.href=this.link.href,this.link.protocol+this.link.hostname+this.link.port}isSameOrigin(A){return this.getOrigin(A)===this.origin}getContextOrigin(){return this.origin}}class ys{constructor(A,e,r){this.windowBounds=e,this.instanceName=`#${ys.instanceCount++}`,this.config=r,this.logger=new cc({id:this.instanceName,enabled:A.logging}),this.originChecker=new Qp(r.window),this.cache=A.cache??r.cache??new up(this,A)}}ys.instanceCount=1;class lr{constructor(A={}){if(this.window=A.window||(typeof window<"u"?window:null),!this.window)throw new Error("Window object is required but not available");this.cspNonce=A.cspNonce,this.cache=A.cache}static fromElement(A,e={}){const r=A.ownerDocument;if(!r)throw new Error("Element is not attached to a document");const s=r.defaultView;if(!s)throw new Error("Document is not attached to a window");return new lr({window:s,...e})}clone(A={}){return new lr({window:A.window||this.window,cspNonce:A.cspNonce??this.cspNonce,cache:A.cache??this.cache})}}function xp(t){console.warn("[html2canvas-pro] setDefaultConfig is deprecated. Pass configuration to html2canvas directly.")}class Up{constructor(A={}){this.config={maxImageTimeout:3e5,allowDataUrls:!0,...A}}validateUrl(A,e="general"){if(!A||typeof A!="string")return{valid:!1,error:"URL must be a non-empty string"};if(A.startsWith("data:"))return this.config.allowDataUrls?{valid:!0,sanitized:A}:{valid:!1,error:"Data URLs are not allowed"};if(A.startsWith("blob:"))return{valid:!0,sanitized:A};try{const r=new URL(A);if(!["http:","https:"].includes(r.protocol))return{valid:!1,error:`Protocol ${r.protocol} is not allowed. Only http and https are permitted.`};if(e==="proxy"&&this.config.allowedProxyDomains&&this.config.allowedProxyDomains.length>0){const s=r.hostname.toLowerCase();if(!this.config.allowedProxyDomains.some(o=>{const a=o.toLowerCase();return s===a||s.endsWith("."+a)}))return{valid:!1,error:`Proxy domain ${r.hostname} is not in the allowed list`}}if(e==="proxy"){if(!this.config.allowLocalhostProxy){const s=r.hostname.toLowerCase();if(s==="localhost"||s==="127.0.0.1"||s==="::1")return{valid:!1,error:"Localhost is not allowed for proxy URLs"};if(this.isPrivateIP(s))return{valid:!1,error:"Private IP addresses are not allowed for proxy URLs"};if(s.startsWith("169.254.")||s.startsWith("fe80:"))return{valid:!1,error:"Link-local addresses are not allowed for proxy URLs"}}return{valid:!0,sanitized:A,requiresRuntimeCheck:!0}}return{valid:!0,sanitized:A}}catch(r){return{valid:!1,error:`Invalid URL format: ${r instanceof Error?r.message:"Unknown error"}`}}}isPrivateIP(A){return[/^0\./,/^10\./,/^100\.(6[4-9]|[7-9][0-9]|1[0-1][0-9]|12[0-7])\./,/^127\./,/^169\.254\./,/^172\.(1[6-9]|2[0-9]|3[0-1])\./,/^192\.0\.0\./,/^192\.0\.2\./,/^192\.168\./,/^198\.(1[8-9])\./,/^198\.51\.100\./,/^203\.0\.113\./,/^2(2[4-9]|3[0-9])\./,/^24[0-9]\./,/^255\.255\.255\.255$/].some(r=>r.test(A))?!0:A.includes(":")?this.isPrivateIPv6(A):!1}isPrivateIPv6(A){const s=A.toLowerCase().trim().replace(/^\[|\]$/g,"").split("%")[0];if(/^(0:){7}1$/.test(s)||s==="::1"||/^(0:){7}0$/.test(s)||s==="::")return!0;const n=this.expandIPv6(s);if(!n)return this.isPrivateIPv6Prefix(s);const o=parseInt(n.substring(0,2),16);if(o>=252&&o<=253)return!0;if(o===254){const a=parseInt(n.substring(2,4),16);if(a>=128&&a<=191)return!0}return o===255}expandIPv6(A){try{if(A.includes("::")){const e=A.split("::");if(e.length>2)return null;const r=e[0]?e[0].split(":"):[],s=e[1]?e[1].split(":"):[],n=8-r.length-s.length;if(n<0)return null;const o=Array(n).fill("0000");return[...r,...o,...s].map(c=>c.padStart(4,"0")).join(":")}else{const e=A.split(":");return e.length!==8?null:e.map(r=>r.padStart(4,"0")).join(":")}}catch{return null}}isPrivateIPv6Prefix(A){return!!(/^fc[0-9a-f]{0,2}:?/i.test(A)||/^fd[0-9a-f]{0,2}:?/i.test(A)||/^fe[89ab][0-9a-f]:?/i.test(A)||/^ff[0-9a-f]{0,2}:?/i.test(A))}validateCspNonce(A){return!A||typeof A!="string"?{valid:!1,error:"CSP nonce must be a non-empty string"}:A.length<16?{valid:!1,error:"CSP nonce is too short (minimum 16 characters recommended)"}:/^[A-Za-z0-9+/=_-]+$/.test(A)?{valid:!0,sanitized:A}:{valid:!1,error:"CSP nonce contains invalid characters"}}validateImageTimeout(A){return typeof A!="number"||isNaN(A)?{valid:!1,error:"Image timeout must be a number"}:A<0?{valid:!1,error:"Image timeout cannot be negative"}:this.config.maxImageTimeout&&A>this.config.maxImageTimeout?{valid:!1,error:`Image timeout ${A}ms exceeds maximum allowed ${this.config.maxImageTimeout}ms`}:{valid:!0,sanitized:A}}validateDimensions(A,e){if(typeof A!="number"||typeof e!="number")return{valid:!1,error:"Dimensions must be numbers"};if(isNaN(A)||isNaN(e))return{valid:!1,error:"Dimensions cannot be NaN"};if(A<=0||e<=0)return{valid:!1,error:"Dimensions must be positive"};const r=32767;return A>r||e>r?{valid:!1,error:`Dimensions exceed maximum allowed (${r}px)`}:{valid:!0,sanitized:{width:A,height:e}}}validateScale(A){return typeof A!="number"||isNaN(A)?{valid:!1,error:"Scale must be a number"}:A<=0?{valid:!1,error:"Scale must be positive"}:A>10?{valid:!1,error:"Scale factor too large (maximum 10x)"}:{valid:!0,sanitized:A}}validateElement(A){return A?typeof A!="object"?{valid:!1,error:"Element must be an object"}:typeof HTMLElement<"u"&&A instanceof HTMLElement?A.ownerDocument?{valid:!0}:{valid:!1,error:"Element must be attached to a document"}:A.ownerDocument?A.ownerDocument.defaultView?{valid:!0}:{valid:!1,error:"Document must be attached to a window (ownerDocument.defaultView required)"}:{valid:!1,error:"Element must be attached to a document (ownerDocument required)"}:{valid:!1,error:"Element is required"}}validateOptions(A){const e=[],r=A.proxy;if(r!=null&&typeof r=="string"&&r.length>0){const s=this.validateUrl(r,"proxy");s.valid||e.push(`Proxy: ${s.error}`)}if(A.imageTimeout!==void 0){const s=this.validateImageTimeout(A.imageTimeout);s.valid||e.push(`Image timeout: ${s.error}`)}if(A.width!==void 0||A.height!==void 0){const s=A.width??800,n=A.height??600,o=this.validateDimensions(s,n);o.valid||e.push(`Dimensions: ${o.error}`)}if(A.scale!==void 0){const s=this.validateScale(A.scale);s.valid||e.push(`Scale: ${s.error}`)}if(A.cspNonce!==void 0){const s=this.validateCspNonce(A.cspNonce);s.valid||e.push(`CSP nonce: ${s.error}`)}if(this.config.customValidator){const s=this.config.customValidator(A,"options");s.valid||e.push(`Custom validation: ${s.error}`)}return e.length>0?{valid:!1,error:e.join("; ")}:{valid:!0}}}function Fp(t={}){return new Up({allowDataUrls:!0,maxImageTimeout:3e5,...t})}class yp{constructor(A,e=!0){this.context=A,this.activeMetrics=new Map,this.completedMetrics=[],this.enabled=e,this.getTime=typeof performance<"u"&&typeof performance.now=="function"?()=>performance.now():()=>Date.now()}start(A,e){this.enabled&&(this.activeMetrics.has(A)&&this.context?.logger.warn(`Performance metric '${A}' already started. Overwriting.`),this.activeMetrics.set(A,{name:A,startTime:this.getTime(),metadata:e}))}end(A){if(!this.enabled)return;const e=this.activeMetrics.get(A);if(!e){this.context?.logger.warn(`Performance metric '${A}' not found. Was start() called?`);return}return e.endTime=this.getTime(),e.duration=e.endTime-e.startTime,this.completedMetrics.push(e),this.activeMetrics.delete(A),this.context?.logger.debug(`⏱️ ${A}: ${e.duration.toFixed(2)}ms`,e.metadata),e}measure(A,e,r){this.start(A,r);try{const s=e();return this.end(A),s}catch(s){throw this.end(A),s}}async measureAsync(A,e,r){this.start(A,r);try{const s=await e();return this.end(A),s}catch(s){throw this.end(A),s}}getMetrics(){return[...this.completedMetrics]}getMetric(A){return this.completedMetrics.find(e=>e.name===A)}getSummary(){const A=this.completedMetrics.reduce((r,s)=>r+(s.duration||0),0),e=this.completedMetrics.map(r=>({name:r.name,duration:r.duration||0,percentage:A>0?((r.duration||0)/A*100).toFixed(1)+"%":"0%"}));return{totalDuration:A,metrics:this.getMetrics(),breakdown:e}}logSummary(){if(!this.enabled||this.completedMetrics.length===0||!this.context)return;const A=this.getSummary();this.context.logger.info(`
|
|
12
|
-
📊 Performance Summary (Total: ${A.totalDuration.toFixed(2)}ms):`),A.breakdown.sort((e,r)=>r.duration-e.duration).forEach(e=>{this.context.logger.info(` ${e.name.padEnd(20)} ${e.duration.toFixed(2).padStart(8)}ms ${e.percentage.padStart(6)}`)})}clear(){this.activeMetrics.clear(),this.completedMetrics.splice(0)}isEnabled(){return this.enabled}getActiveMetrics(){return Array.from(this.activeMetrics.keys())}}const oo=(t,A={},e)=>{const r=e||lr.fromElement(t,{cspNonce:A.cspNonce,cache:A.cache});return vp(t,A,r)},Ep=t=>{console.warn('[html2canvas-pro] setCspNonce is deprecated. Pass cspNonce in options instead: html2canvas(element, { cspNonce: "..." })'),typeof window<"u"&&xp(new lr({window,cspNonce:t}))};oo.setCspNonce=Ep;const bp=t=>{["scale","width","height","imageTimeout","x","y","windowWidth","windowHeight","scrollX","scrollY"].forEach(e=>{const r=t[e];if(r!=null&&typeof r!="number"){const s=Number(r);Number.isNaN(s)||(t[e]=s)}})},vp=async(t,A,e)=>{if(bp(A),!A.skipValidation){const yA=A.validator||Fp(),AA=yA.validateElement(t);if(!AA.valid)throw new Error(AA.error);const IA=yA.validateOptions(A);if(!IA.valid)throw new Error(`Invalid options: ${IA.error}`)}if(!t||typeof t!="object")throw new Error("Invalid element provided as first argument");const r=t.ownerDocument;if(!r)throw new Error("Element is not attached to a Document");const s=r.defaultView;if(!s)throw new Error("Document is not attached to a Window");const n={allowTaint:A.allowTaint??!1,imageTimeout:A.imageTimeout??15e3,proxy:A.proxy,useCORS:A.useCORS??!1,customIsSameOrigin:A.customIsSameOrigin},o={logging:A.logging??!0,cache:A.cache??e.cache,...n},a=800,c=600,g=0,d=s,B={windowWidth:A.windowWidth??d.innerWidth??a,windowHeight:A.windowHeight??d.innerHeight??c,scrollX:A.scrollX??d.pageXOffset??g,scrollY:A.scrollY??d.pageYOffset??g},u=new DA(B.scrollX,B.scrollY,B.windowWidth,B.windowHeight),f=new ys(o,u,e),w=A.enablePerformanceMonitoring??A.logging??!1,C=new yp(f,w);C.start("total",{width:B.windowWidth,height:B.windowHeight});const F=A.foreignObjectRendering??!1,y={allowTaint:A.allowTaint??!1,onclone:A.onclone,ignoreElements:A.ignoreElements,iframeContainer:A.iframeContainer,inlineImages:F,copyStyles:F,cspNonce:A.cspNonce??e.cspNonce};f.logger.debug(`Starting document clone with size ${u.width}x${u.height} scrolled to ${-u.left},${-u.top}`),C.start("clone");const m=new Yi(f,t,y),T=m.clonedReferenceElement;if(!T)throw new Error("Unable to find element in cloned iframe");const I=await m.toIFrame(r,u);C.end("clone");const{width:H,height:K,left:N,top:W}=Xn(T)||ph(T)?Rl(T.ownerDocument):Hr(f,T),R=Ip(f,T,A.backgroundColor),lA={canvas:A.canvas,backgroundColor:R,scale:A.scale??s.devicePixelRatio??1,x:(A.x??0)+N,y:(A.y??0)+W,width:A.width??Math.ceil(H),height:A.height??Math.ceil(K),imageSmoothing:A.imageSmoothing,imageSmoothingQuality:A.imageSmoothingQuality};let vA,_;try{return F?(f.logger.debug("Document cloned, using foreign object rendering"),C.start("render-foreignobject"),vA=await new Bp(f,lA).render(T),C.end("render-foreignobject")):(f.logger.debug(`Document cloned, element located at ${N},${W} with size ${H}x${K} using computed rendering`),f.logger.debug("Starting DOM parsing"),C.start("parse"),_=ki(f,T),C.end("parse"),R===_.styles.backgroundColor&&(_.styles.backgroundColor=pe.TRANSPARENT),f.logger.debug(`Starting renderer for element at ${lA.x},${lA.y} with size ${lA.width}x${lA.height}`),C.start("render"),vA=await new ro(f,lA).render(_),C.end("render")),C.start("cleanup"),(A.removeContainer??!0)&&(Yi.destroy(I)||f.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),C.end("cleanup"),C.end("total"),f.logger.debug("Finished rendering"),w&&C.logSummary(),vA}finally{_&&_.restoreTree()}},Ip=(t,A,e)=>{const r=A.ownerDocument,s=r.documentElement?wt(t,getComputedStyle(r.documentElement).backgroundColor):pe.TRANSPARENT,n=r.body?wt(t,getComputedStyle(r.body).backgroundColor):pe.TRANSPARENT,o=typeof e=="string"?wt(t,e):e===null?pe.TRANSPARENT:4294967295;return A===r.documentElement?Ve(s)?Ve(n)?o:n:s:o},dr=2147e6,lc=dr,st=dr,Hp=dr-100,Sp=dr-50,Lp=dr-150,le="data-vg-pin-id",Tp=()=>{const t=window.innerWidth;return t<768?"mobile":t<1024?"tablet":"desktop"},dc=(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=Q.useRef(null),o=()=>{if(!n.current||!s)return;const g=n.current.getBoundingClientRect(),d=g.top,B=window.innerHeight-g.bottom,u=d<140&&B>d?"bottom":"top";s({url:t,x:g.left+g.width/2,y:u==="top"?g.top:g.bottom,direction:u})},a=g=>g.toLowerCase().replace(/\/$/g,"").replace(/\/(?:[0-9]+|(?:[0-9a-f]{24}))(?=\/|$)/g,"/:id"),c=()=>{try{const g=a(window.location.pathname),d=new URL(t),B=a(d.pathname);return g===B||g.startsWith(B)||B.startsWith(g)}catch{return!1}};return i.jsxs("div",{ref:n,className:`vg-url-tag ${A||""}`,style:{...e,opacity:c()?1:.6,borderColor:c()?"var(--vg-primary)":"#e2e8f0"},onMouseEnter:o,onMouseMove:o,onMouseLeave:()=>s?.(null),children:[i.jsx(Ke,{"data-vg-id":"353251b6","data-source-path":"/src/components/ViewGateOverlay.tsx:150",size:e?.fontSize?parseInt(e.fontSize)+1:10}),i.jsx("span",{"data-vg-id":"1b724dd0","data-source-path":"/src/components/ViewGateOverlay.tsx:151",style:{maxWidth:e?.maxWidth||"150px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:new URL(t).pathname})]})},Br=t=>{const A=[],e=[],r=[];let s=t,n=!1;for(;s&&s.nodeType===Node.ELEMENT_NODE;){const o=s.localName.toLowerCase();let a=1,c=s.previousElementSibling;for(;c;)c.localName.toLowerCase()===o&&a++,c=c.previousElementSibling;const g=o==="body"||o==="head"||o==="html"?o:`${o}:nth-of-type(${a})`;if(r.unshift(g),!n){const d=s.getAttribute("data-testid")||s.getAttribute("data-qa");if(d){const B=s.hasAttribute("data-testid")?"data-testid":"data-qa";e.push(`[${B}="${d}"]`)}s.id&&!s.id.startsWith("vg-")&&!s.id.includes(":")?(A.unshift(`#${s.id}`),n=!0):d?(A.unshift(`[${s.hasAttribute("data-testid")?"data-testid":"data-qa"}="${d}"]`),n=!0):A.unshift(g)}if(s=s.parentElement,o==="html")break}return{selector:A.join(" > "),fallbacks:e,vgPath:r.join(" > ")}},gc=t=>{const{vgPath:A}=Br(t);return{vgPath:A,classHash:t.className,parentTag:t.parentElement?.tagName.toLowerCase(),neighborCount:t.parentElement?.children.length,ariaLabel:t.getAttribute("aria-label")||t.getAttribute("title")||void 0,role:t.getAttribute("role")||void 0,name:t.getAttribute("name")||void 0,type:t.getAttribute("type")||void 0,placeholder:t.getAttribute("placeholder")||void 0,testId:t.getAttribute("data-testid")||t.getAttribute("data-qa")||void 0,textSnippet:(t.innerText||"").slice(0,50).trim()}},Op=(()=>{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}})(),Kp=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]=Op(n)}),e},Dp=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"},Es=t=>{if(!t||t.id==="viewgate-ui"||t.id==="viewgate-shadow-host"||t.closest("#viewgate-shadow-host"))return!1;if(t.getAttribute("role")==="dialog"||t.getAttribute("aria-modal")==="true"||t.classList.contains("modal")||t.classList.contains("modal-content"))return!0;const A=window.getComputedStyle(t),e=t.getBoundingClientRect(),r=t.getAttribute("role");if(r&&["listbox","menu","combobox","tooltip","option"].includes(r)||e.width<120&&e.height<120)return!1;const n=parseInt(A.zIndex)||0,o=A.position==="fixed"||A.position==="absolute",a=e.width>window.innerWidth*.4&&e.height>window.innerHeight*.4,c=Math.abs(e.left+e.width/2-window.innerWidth/2)<50,g=t.getAttribute("class")||"",d=g.toLowerCase().includes("modal")||g.toLowerCase().includes("dialog");return!!(o&&n>=100&&(a||c||d))},bs=t=>{let A=t;for(;A&&A!==document.body;){if(Es(A))return A;A=A.parentElement}return null},Ie=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)},uc=(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=uc(t,n);if(o)return o}}return null},fc=(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},Rp=t=>{if(!t.tag)return null;const A=Array.from(document.getElementsByTagName(t.tag));let e=null,r=0;for(const s of A){if(!gr(s,t))continue;let n=0;const o=s.getAttribute("placeholder"),a=t.attributes?.placeholder||t.fingerprint?.placeholder;a&&o===a&&(n+=6);const c=s.getAttribute("type"),g=t.attributes?.type||t.fingerprint?.type;if(g&&c===g&&(n+=2),s.innerText?.trim()===t.text.trim()&&(n+=5),t.fingerprint?.vgPath){const{vgPath:d}=Br(s);(d===t.vgPath||t.fingerprint?.vgPath===d)&&(n+=10)}n>r&&n>=7&&(r=n,e=s)}return e},gr=(t,A)=>{if(t.tagName.toLowerCase()!==A.tag.toLowerCase())return!1;const e=t.getAttribute("placeholder"),r=A.attributes?.placeholder||A.fingerprint?.placeholder;if(r&&e&&r!==e)return!1;const s=t.getAttribute("type"),n=A.attributes?.type||A.fingerprint?.type;return!(n&&s&&n!==s)},hc=(t,A)=>{if(A){const o=Array.from(document.querySelectorAll(`[${le}="${A}"]`));if(o.length>0){const a=o.filter(c=>gr(c,t));if(a.length===0)o.forEach(c=>c.removeAttribute(le));else{const c=a.find(d=>{const{vgPath:B}=Br(d);return B===t.vgPath||t.fingerprint?.vgPath===B}),g=c&&Ie(c)?c:a.find(d=>!(!Ie(d)||t.metadata?.isModal&&!d.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content')));return g?(o.forEach(d=>{d!==g&&d.removeAttribute(le)}),g):null}}}if(t.vgPath)try{const o=document.querySelector(t.vgPath);if(o&&gr(o,t)&&Ie(o)&&(!t.metadata?.isModal||bs(o)))return o}catch{}const r=(t.selector?Array.from(document.querySelectorAll(t.selector)):[]).filter(o=>gr(o,t));let s=r.find(o=>{const{vgPath:a}=Br(o);return a===t.vgPath||t.fingerprint?.vgPath===a})||r[0]||null;if(s&&Ie(s))if(t.metadata?.isModal&&!bs(s))s=null;else return s;if(t.fallbackSelectors)for(const o of t.fallbackSelectors){const a=uc(o);if(a&&gr(a,t)&&Ie(a)){if(t.metadata?.isModal&&!bs(a))continue;return a}}const n=Rp(t);return n&&Ie(n)?t.metadata?.isModal&&!bs(n)?null:n:null},ao=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}),pc=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},kp=t=>{const A=t.parentElement;if(!A)return;const e=Array.from(A.children).filter(o=>o!==t).slice(0,5).map(o=>ao(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:{...ao(t),location:`${n} of ${A.tagName.toLowerCase()}`},parent:ao(A),siblings:e}},wc=(t,A)=>{const e=t.getAttribute("data-vg-id")||void 0;let r;const n=Object.keys(t).find(y=>y.startsWith("__reactFiber$")||y.startsWith("__reactInternalInstance$"));if(n){let y=t[n];for(;y;){if(y._debugSource){const{fileName:m,lineNumber:T,columnNumber:I}=y._debugSource;r=`${m}:${T}${I?":"+I:""}`;break}y=y.return}}const o=gc(t),a={vgId:e?1:0,fiber:r?.8:0,fingerprint:.5+(o.testId?.3:0)+(o.ariaLabel?.1:0)};let c=t.getAttribute("data-source-path")||r||"unknown:0";const g=Dp(t),{selector:d,fallbacks:B,vgPath:u}=Br(t),f={};["placeholder","aria-label","name","type","alt","title","value","role","data-testid"].forEach(y=>{const m=t.getAttribute(y);m&&(f[y]=m)});const w=(()=>{let y=t;for(;y&&y!==document.body;){if(Es(y))return!0;y=y.parentElement}return!1})();let C;w&&A&&!A.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content')&&(C=wc(A));const F=`${t.tagName.toLowerCase()}-${(t.innerText||"").slice(0,20).replace(/\s+/g,"_")}-${d.split(" > ").slice(-1)}`;return{tag:t.tagName.toLowerCase(),id:t.id||"",classes:t.className||"",text:(t.innerText||"").slice(0,100).trim(),selector:d,vgPath:u,vgId:e,outerHtml:pc(t.outerHTML),parentContext:t.parentElement?`<${t.parentElement.tagName.toLowerCase()} ${Array.from(t.parentElement.attributes).map(y=>`${y.name}="${y.value}"`).join(" ").slice(0,500)}>`:"N/A",componentPath:g,signature:F,source:c,attributes:f,confidence:a,fallbackSelectors:[...new Set(B)].slice(0,5),domPath:[],viewportSize:{width:window.innerWidth,height:window.innerHeight},uiContext:kp(t),fingerprint:gc(t),metadata:{hint:`Edit ${c.split(":")[0]} at line ${c.split(":")[1]||"?"}`,computedStyles:Kp(t),viewportBreakpoint:Tp(),outerHtml:pc(t.outerHTML).slice(0,2e3),scrollPosition:{x:window.scrollX,y:window.scrollY},isModal:w,triggerReference:C}}},mc=()=>{const{mutate:t}=_o(),{addToast:A,language:e,t:r,apiKey:s,baseUrl:n,dashboardUrl:o,disableViewGate:a,hasActiveToasts:c}=$o(),[g,d]=Q.useState(typeof window<"u"?window.location.pathname+window.location.search:"/"),B=Q.useMemo(()=>typeof window>"u"?!1:window.location.href.includes("viewgate-backlog"),[g]);Q.useEffect(()=>{const l=()=>d(window.location.pathname+window.location.search);window.addEventListener("popstate",l);const h=window.history.pushState,p=window.history.replaceState;return window.history.pushState=function(...x){h.apply(this,x),setTimeout(l,0)},window.history.replaceState=function(...x){p.apply(this,x),setTimeout(l,0)},()=>{window.removeEventListener("popstate",l),window.history.pushState=h,window.history.replaceState=p}},[]);const[u,f]=Q.useState(!1),[w,C]=Q.useState("medium"),[F,y]=Q.useState("medium"),[m,T]=Q.useState("all"),[I,H]=Q.useState(null),[K,N]=Q.useState(null),[W,R]=Q.useState(""),[lA,vA]=Q.useState(!1),[_,yA]=Q.useState([]),[AA,IA]=Q.useState([{name:r.figmaPrimaryDesign,link:""}]),[J,re]=Q.useState([]),[se,je]=Q.useState([]),[ne,U]=Q.useState(null),[k,X]=Q.useState(!1),[eA,me]=Q.useState(""),[oe,z]=Q.useState(!1),[qA,Et]=Q.useState("down");Q.useRef(null);const[He,We]=Q.useState(!1),[WA,Ce]=Q.useState(!1),[HA,nt]=Q.useState([]),[XA,Y]=Q.useState(null),[tA,dA]=Q.useState(""),[uA,de]=Q.useState(!1),[zA,fA]=Q.useState({}),[BA,Se]=Q.useState(null),[Qe,ur]=Q.useState(!1),[Be,MA]=Q.useState(null),[xe,vs]=Q.useState([]),[hA,ot]=Q.useState(()=>typeof window>"u"?null:localStorage.getItem("vg_token")||sessionStorage.getItem("vg_token")),[kA,co]=Q.useState(()=>{if(typeof window>"u")return null;const l=localStorage.getItem("vg_user")||sessionStorage.getItem("vg_user");return l&&l!=="undefined"?JSON.parse(l):null}),[fr,lo]=Q.useState(()=>typeof window>"u"?null:localStorage.getItem("vg_role")||sessionStorage.getItem("vg_role")),[at,Cc]=Q.useState(""),[Bo,Qc]=Q.useState(!1),[Ew,Np]=Q.useState(!1),[hr,xc]=Q.useState(!1),[Is,Uc]=Q.useState(!1),[Hs,_p]=Q.useState(!1),[Ss,Fc]=Q.useState(!0),Pp=async l=>{if(l&&l.preventDefault(),!(!at.trim()||!n)){Qc(!0);try{const h=await fetch(`${n}/api/auth/me`,{headers:{Authorization:`Bearer ${at.trim()}`,"x-api-key":s||""}});if(!h.ok){const D=await h.json().catch(()=>({}));throw new Error(D.error||D.message||"Invalid token")}const p=await h.json();console.log("[ViewGate] Auth data received:",p);const x=p.user||(p.email?p:null),b=p.role||x?.role||"dev";if(console.log("[ViewGate] Identified as:",x?.email,x?.name,"Role:",b),!x)throw new Error("User not found in token");ot(at.trim()),co(x),lo(b),localStorage.setItem("vg_token",at.trim()),x&&localStorage.setItem("vg_user",JSON.stringify(x)),b&&localStorage.setItem("vg_role",b),A(e==="es"?"Sesión iniciada correctamente":r.successHeader,"success"),Cc(""),Uc(!1),xc(!1),Np(!1),go()}catch(h){let p=h.message||(e==="es"?"Clave inválida o expirada":"Invalid or expired key");p.toLowerCase().includes("invalid or expired token")&&(p=r.invalidToken),A(p,"error")}finally{Qc(!1)}}},pr=Q.useCallback(()=>{console.log("[VIEWGATE_WRAPPER] Clearing session"),ot(null),co(null),lo(null),Fc(!1),sessionStorage.removeItem("vg_token"),sessionStorage.removeItem("vg_user"),sessionStorage.removeItem("vg_role"),localStorage.removeItem("vg_token"),localStorage.removeItem("vg_user"),localStorage.removeItem("vg_role");const l=n;t(h=>typeof h=="string"&&l&&h.startsWith(l),void 0,{revalidate:!1}),nt([]),MA(null),f(!1),N(null),R(""),Ce(!1),A(e==="es"?"Sesión finalizada o inválida":"Session ended or invalid","error")},[n,e]);Q.useEffect(()=>{const l=h=>{if(h.data?.type?.startsWith("VIEWGATE_")&&console.log("[VIEWGATE_WRAPPER] Received message:",h.data.type,h.data),h.data?.type==="VIEWGATE_AUTH_SUCCESS"||h.data?.type==="VIEWGATE_SILENT_AUTH"){const{token:p,user:x,role:b,error:D}=h.data;if(console.log("[VIEWGATE_WRAPPER] Auth process:",{type:h.data.type,hasToken:!!p,hasUser:!!x}),D==="NO_SESSION")return;const O=sessionStorage.getItem("vg_token");if(p&&p!==O||!p&&O){console.log("[VIEWGATE_WRAPPER] Session sync detected change, clearing caches");const L=n;t(nA=>typeof nA=="string"&&L&&nA.startsWith(L),void 0,{revalidate:!0}),nt([])}p&&(ot(p),sessionStorage.setItem("vg_token",p),localStorage.setItem("vg_token",p),x&&(co(x),lo(b||x.role||"dev"),sessionStorage.setItem("vg_user",JSON.stringify(x)),localStorage.setItem("vg_user",JSON.stringify(x))),h.data.type==="VIEWGATE_AUTH_SUCCESS"&&A(e==="es"?"Sesión iniciada correctamente":"Logged in successfully","success"))}if(h.data?.type==="VIEWGATE_LOGOUT"){if(console.log("[VIEWGATE_WRAPPER] Logout message received"),sessionStorage.getItem("vg_token")){console.log("[VIEWGATE_WRAPPER] Protective logout: Ignoring logout since we have a valid manual session.");return}pr()}};return window.addEventListener("message",l),()=>window.removeEventListener("message",l)},[e,pr,n]);const go=Q.useCallback(()=>{if(!s||!n||Is)return;const l={"x-api-key":s};hA&&(l.Authorization=`Bearer ${hA}`),fetch(`${n}/api/projects/settings-check`,{headers:l}).then(h=>{if(h.status===403)throw pr(),new Error("Unauthorized");return h.json()}).then(h=>{h.projectId&&U(h.projectId),typeof h.isFigmaConnected=="boolean"&&X(h.isFigmaConnected),typeof h.hasEndpoints=="boolean"&&_p(h.hasEndpoints),Uc(!0)}).catch(h=>{h.message!=="Unauthorized"&&console.error("Failed to fetch project settings-check",h)})},[s,n,Is]),uo=Q.useCallback(()=>{if(!s||!n||hr)return;const l={"x-api-key":s};hA&&(l.Authorization=`Bearer ${hA}`),fetch(`${n}/api/projects/endpoints`,{headers:l}).then(h=>{if(h.status===403)throw pr(),new Error("Unauthorized");return h.json()}).then(h=>{h.endpoints&&Array.isArray(h.endpoints)?je(h.endpoints):Array.isArray(h)&&je(h),typeof h.isFigmaConnected=="boolean"&&X(h.isFigmaConnected),xc(!0)}).catch(h=>{h.message!=="Unauthorized"&&console.error("Failed to fetch project endpoints",h)})},[s,n,hr]);Q.useEffect(()=>{(u||hA)&&(Is||go())},[u,hA,Is,go]),Q.useEffect(()=>{oe&&!hr&&uo()},[oe,hr,uo]),Q.useEffect(()=>{if(_.length===0)return;const l=["frontend"];Hs&&l.push("backend"),k&&l.push("ux");const h=_.filter(p=>l.includes(p));h.length!==_.length&&yA(h)},[se.length,k,_]);const yc=Q.useCallback(async l=>{const h={"x-api-key":s};hA&&(h.Authorization=`Bearer ${hA}`);const p=await fetch(l,{headers:h});if(!p.ok){p.status===403&&pr();const x=await p.json().catch(()=>({}));let b=x.message||x.error||"Fetch failed";b.toLowerCase().includes("invalid or expired token")&&(b=r.invalidToken);const D=new Error(b);throw D.status=p.status,D}return Fc(!0),p.json()},[s,hA]),jp=Q.useMemo(()=>B?"backlog":"pending,todo,in_progress,review,ready_for_review,bug_fixing",[B]),{data:Ls,isLoading:Ts,error:Ec}=jo(s?`${n}/api/projects/active-sprint`:null,yc,{revalidateOnFocus:!0,revalidateOnMount:!0,dedupingInterval:6e4}),{data:wr,isLoading:it,mutate:Os}=jo(s&&(Ls||B)?`${n}/api/annotations?status=${jp}`:null,yc,{refreshInterval:3e4,revalidateOnFocus:!0,dedupingInterval:5e3}),[ct,bc]=Q.useState(null),[bt,bw]=Q.useState(null),vc=Q.useRef(HA);vc.current=HA;const[GA,Ks]=Q.useState(null),Ic=Q.useRef(null),[vt,Wp]=Q.useState([]),Hc=Q.useMemo(()=>{const l=(eA||"").toLowerCase().trim();return l?se.filter(h=>{const p=h.path&&h.path.toLowerCase().includes(l),x=h.description&&h.description.toLowerCase().includes(l),b=h.method&&h.method.toLowerCase().includes(l);return p||x||b}):se},[se,eA]),Sc=Q.useMemo(()=>{const l={},h=e==="es"?"Seleccionados":"Selected";return Hc.forEach(p=>{const x=`${p.method}|${p.path}`;J.includes(x)&&(l[h]||(l[h]={name:h,endpoints:[]}),l[h].endpoints.push(p));const D=(p.path||"").split("/").filter(nA=>nA&&!["api","v1.0","v2","rest"].includes(nA.toLowerCase()));let O=D.length>0?D[0]:"General";O=O.replace(/([a-z])([A-Z])/g,"$1 $2"),O=O.replace(/([A-Z])([A-Z][a-z])/g,"$1 $2"),O=O.charAt(0).toUpperCase()+O.slice(1),l[O]||(l[O]={name:O,endpoints:[]});const L=l[O];L&&L.endpoints.push(p)}),Object.values(l).sort((p,x)=>p.name===h?-1:x.name===h||p.name==="General"?1:x.name==="General"?-1:p.name.localeCompare(x.name))},[Hc,J,e]),fo=Q.useMemo(()=>{let l=Array.isArray(HA)?HA:[];if(BA){const p=vt.find(x=>x.annotations&&Array.isArray(x.annotations)&&x.annotations.some(b=>b._id===BA));p?l=p.annotations:l=l.filter(x=>x._id===BA)}return l=l.filter(p=>p.status!=="completed"&&p.status!=="done"),window.location.href.includes("viewgate-backlog")||(GA==="pending"?l=l.filter(p=>p.status!=="ready_for_review"):GA==="ready"&&(l=l.filter(p=>p.status==="ready_for_review"))),m!=="all"&&(l=l.filter(p=>(p.priority||"medium")===m)),l},[BA,HA,vt,GA,m]);Q.useEffect(()=>{BA&&fo.length===0&&!it&&Se(null)},[BA,fo.length,it]);const[It,Xp]=Q.useState(()=>{if(typeof window>"u")return{bottom:30,right:30};const l=localStorage.getItem("vg-bar-pos");return l?JSON.parse(l):{bottom:30,right:30}}),[mr,Lc]=Q.useState(!1),Le=Q.useRef(null),zp=l=>{l.preventDefault(),l.stopPropagation();const h=l.currentTarget.parentElement?.getBoundingClientRect();h&&(Lc(!0),Le.current={x:l.clientX,y:l.clientY,bottom:It.bottom,right:It.right,width:h.width,height:h.height})};Q.useEffect(()=>{if(!mr)return;const l=p=>{if(mr&&Le.current){const x=p.clientX-Le.current.x,b=p.clientY-Le.current.y;let D=Le.current.bottom-b,O=Le.current.right-x;const L=10;D=Math.max(L,Math.min(window.innerHeight-Le.current.height-L,D)),O=Math.max(L,Math.min(window.innerWidth-Le.current.width-L,O)),Xp({bottom:D,right:O})}},h=()=>{mr&&(Lc(!1),localStorage.setItem("vg-bar-pos",JSON.stringify(It)),Le.current=null)};return window.addEventListener("mousemove",l),window.addEventListener("mouseup",h),()=>{window.removeEventListener("mousemove",l),window.removeEventListener("mouseup",h)}},[mr,It]);const[Ht,Ds]=Q.useState(null),[Tc,Oc]=Q.useState(""),[St,ho]=Q.useState([]),[lt,Cr]=Q.useState([]),[Xe,Rs]=Q.useState([]),[ks,Kc]=Q.useState(!1);Q.useEffect(()=>{Ht&&Rs(J)},[J,Ht]);const[vw,Iw]=Q.useState({}),po=Q.useRef(null),Lt=Q.useRef(null),wo=Q.useRef(null),Gs=Q.useRef(!1),Dc=Q.useCallback(()=>{typeof window>"u"||Gs.current||(Lt.current&&cancelAnimationFrame(Lt.current),Lt.current=requestAnimationFrame(()=>{Lt.current=null,Gs.current=!0,wo.current;const l=vc.current,h=Array.isArray(l)?l:[],p=new Set(h.map(V=>V._id));document.querySelectorAll(`[${le}]`).forEach(V=>{const pA=V.getAttribute(le);pA&&!p.has(pA)&&V.removeAttribute(le)});const x=Array.from(document.querySelectorAll('[role="dialog"], [aria-modal="true"], [class*="modal" i], [class*="dialog" i], .fixed, .modal-backdrop, .fixed.inset-0')),b=x.find(V=>Es(V)&&Ie(V));let D=!!b;console.log("[ViewGate Debug] Modal Detection:",{potentialModals:x.length,activeModal:b,isAnyModalOpen:D});const O=new Map;h.forEach(V=>{if(!V||!V.reference)return;try{const bA=()=>{const $=window.location.pathname.toLowerCase().replace(/\/$/g,"").replace(/\/(?:[0-9]+|(?:[0-9a-f]{24}))(?=\/|$)/g,"/:id"),VA=new URLSearchParams(window.location.search);VA.delete("viewgate"),VA.sort();const NA=VA.toString();return NA?`${$}?${NA}`:$},xA=$=>{try{const VA=new URL($),NA=VA.pathname.toLowerCase().replace(/\/$/g,"").replace(/\/(?:[0-9]+|(?:[0-9a-f]{24}))(?=\/|$)/g,"/:id"),wA=new URLSearchParams(VA.search);wA.delete("viewgate"),wA.sort();const LA=wA.toString();return LA?`${NA}?${LA}`:NA}catch{return""}},SA=bA(),Te=xA(V.url);if(SA!==Te)return}catch{return}const pA=!!V.reference.metadata?.isModal;let rA=hc(V.reference,V._id);if(console.log(`[ViewGate Debug] Processing Pin [${V._id}]:`,{isModalTarget:pA,targetEl:rA,isVisible:rA?Ie(rA):!1}),!rA||!Ie(rA))return;let oA=!1;if(pA?(oA=!0,D=!0,console.log(`[ViewGate Debug] Pin [${V._id}] Modal Open Check: isModalTarget=true`)):(oA=!D,console.log(`[ViewGate Debug] Pin [${V._id}] No Modal Check: !isAnyModalOpen=${oA}`)),!oA)return;const QA=rA.getAttribute(le);QA!==V._id&&(document.querySelectorAll(`[${le}="${V._id}"]`).forEach(bA=>{bA.removeAttribute(le)}),QA||rA.setAttribute(le,V._id));const EA=O;EA.has(rA)||EA.set(rA,{anns:[]}),EA.get(rA).anns.push(V)});const L=[];(V=>{V.forEach((pA,rA)=>{const{anns:oA}=pA,QA=rA.getBoundingClientRect(),EA=QA.left+QA.width/2,bA=QA.top+QA.height/2;if(EA>=0&&EA<=window.innerWidth&&bA>=0&&bA<=window.innerHeight){const xA=document.elementFromPoint(EA,bA),SA=document.getElementById("viewgate-shadow-host");if(xA&&!rA.contains(xA)&&xA!==SA&&!SA?.contains(xA))return}L.push({id:oA[0]._id,element:rA,rect:QA,annotations:oA.sort((xA,SA)=>new Date(SA.timestamp||SA.createdAt).getTime()-new Date(xA.timestamp||xA.createdAt).getTime()),isModal:!!oA[0].reference?.metadata?.isModal})})})(O),Wp(L),Gs.current=!1}))},[Be]);Q.useEffect(()=>{if(wr){const l=Array.isArray(wr)?wr:wr?.data||[];if(Array.isArray(l)){const h=l.reduce((p,x)=>p.find(D=>D._id===x._id)?p:p.concat([x]),[]);nt(h)}}else it||nt([])},[wr,it]),Q.useEffect(()=>{MA(Ls||null)},[Ls]),Q.useEffect(()=>{WA&&HA.length===0&&!it&&Ce(!1)},[WA,HA.length,it]),Q.useEffect(()=>{let l=null;const h=()=>{Gs.current||Dc()},p=new MutationObserver(D=>{D.some(L=>L.type!=="attributes"||L.attributeName!==le&&!L.target.parentElement?.closest("#viewgate-shadow-host"))&&(l&&clearTimeout(l),l=setTimeout(()=>{h(),setTimeout(h,350)},32))});wo.current=p;const x=new ResizeObserver(()=>h()),b=()=>h();return h(),p.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0}),x.observe(document.documentElement),window.addEventListener("scroll",b,{capture:!0,passive:!0}),()=>{l&&clearTimeout(l),p.disconnect(),x.disconnect(),window.removeEventListener("scroll",b,!0),Lt.current&&cancelAnimationFrame(Lt.current),wo.current=null}},[u,HA,Dc,WA,BA,g]);const mo=Q.useCallback(l=>{let h=l;for(;h&&h!==document.body;){if(Es(h))return h;h=h.parentElement}return null},[]);Q.useEffect(()=>{const l=h=>{const p=h.target;p&&(mo(p)||(Ic.current=p))};return window.addEventListener("mousedown",l,!0),()=>window.removeEventListener("mousedown",l,!0)},[mo]),Q.useEffect(()=>{po.current=document.getElementById("viewgate-shadow-host")},[]);const Co=Q.useCallback(l=>{if(!u||K)return;const h=fc(l.clientX,l.clientY);if(!h||po.current?.contains(h)||h.closest(".vg-no-capture")){H(null);return}const p=h.getBoundingClientRect();H({tag:h.tagName.toLowerCase(),source:h.getAttribute("data-source-path")||"unknown:0",rect:p,element:h,previewText:(h.innerText||"").slice(0,100)||(h.getAttribute("placeholder")||"").slice(0,100)||h.tagName.toLowerCase(),semanticReference:{...wc(h,Ic.current),normalizedOffset:{x:(l.clientX-p.left)/p.width,y:(l.clientY-p.top)/p.height}}})},[u,K]),Qo=Q.useCallback(async l=>{if(!u||K)return;const h=fc(l.clientX,l.clientY);if(!(!h||po.current?.contains(h)||h.closest(".vg-no-capture"))&&I){const p=I;let x=p.element;mo(x);let b=p.semanticReference,D=p.tag;l.preventDefault(),l.stopPropagation(),We(!0);try{await new Promise($=>requestAnimationFrame($)),await new Promise($=>setTimeout($,80));const O=x.getBoundingClientRect(),L=document.documentElement,nA=window.devicePixelRatio||1,V=Math.max(nA,3),pA=Array.from(L.querySelectorAll("img"));await Promise.all(pA.map($=>{const VA=$.getBoundingClientRect();return VA.bottom>-200&&VA.top<window.innerHeight+200&&($.loading==="lazy"&&($.loading="eager"),!$.complete)?new Promise(NA=>{$.onload=NA,$.onerror=NA}):Promise.resolve()})).catch(()=>{});const rA=Math.floor(window.scrollX||window.pageXOffset),oA=Math.floor(window.scrollY||window.pageYOffset),QA=O.left,EA=O.top,bA=await oo(L,{scale:V,useCORS:!0,logging:!1,backgroundColor:null,allowTaint:!0,imageTimeout:2e4,x:rA,y:oA,width:window.innerWidth,height:window.innerHeight,windowWidth:window.innerWidth,windowHeight:window.innerHeight,scrollX:0,scrollY:0,onclone:$=>{const VA=[];document.querySelectorAll("*").forEach((wA,LA)=>{const v=wA;if(v.shadowRoot){const JA=`sh-${LA}`;v.setAttribute("data-vg-capture-id",JA),VA.push({original:v,id:JA})}}),VA.forEach(({original:wA,id:LA})=>{const v=$.querySelector(`[data-vg-capture-id="${LA}"]`);if(v&&wA.shadowRoot)try{const JA=wA.shadowRoot.cloneNode(!0);v.innerHTML="",Array.from(JA.childNodes).forEach(Vs=>{v.appendChild($.importNode(Vs,!0))})}catch(JA){console.warn("[ViewGate] Shadow DOM flatting failed",JA)}}),$.querySelectorAll('input[type="password"]').forEach(wA=>{wA.value="••••••••"}),$.querySelectorAll("[data-vg-mask]").forEach(wA=>{const LA=wA;LA.style.filter="blur(10px) grayscale(1)",LA.style.opacity="0.7",["INPUT","TEXTAREA"].includes(LA.tagName)||(LA.innerText="• REDACTED •")});const NA=$.getElementById("viewgate-shadow-host");NA&&(NA.style.display="none"),$.querySelectorAll(".vg-selection-overlay").forEach(wA=>{wA.style.display="none"}),document.querySelectorAll("[data-vg-capture-id]").forEach(wA=>wA.removeAttribute("data-vg-capture-id"))},ignoreElements:$=>$.id==="viewgate-shadow-host"||$.classList.contains("vg-no-capture")||$.classList.contains("vg-selection-overlay")}),xA=document.createElement("canvas"),SA=xA.getContext("2d"),Te=24;if(xA.width=(O.width+Te*2)*V,xA.height=(O.height+Te*2)*V,SA){SA.imageSmoothingEnabled=!0,SA.imageSmoothingQuality="high";const $=(QA-Te)*V,VA=(EA-Te)*V;SA.drawImage(bA,-$,-VA,bA.width,bA.height),xA.toBlob(async NA=>{const wA={...p,element:x,rect:x.getBoundingClientRect(),semanticReference:b,tag:D};if(NA){const LA=new FileReader;LA.onloadend=()=>{N({...wA,visualPreview:LA.result})},LA.readAsDataURL(NA)}else N(wA)},"image/webp",.98)}}catch(O){console.error("[ViewGate] Capture Error:",O),N(I)}finally{We(!1),H(null)}}},[u,I,K]);Q.useEffect(()=>{const l=h=>{const x=(()=>{let O=document.activeElement;for(;O&&O.shadowRoot&&O.shadowRoot.activeElement;)O=O.shadowRoot.activeElement;return O})();if(["input","textarea"].includes((x?.tagName||"").toLowerCase())||x?.isContentEditable)return;const D=h.key.toLowerCase();if(!hA){(D==="c"||D==="v")&&A(e==="es"?"Debes iniciar sesión en el Dashboard para usar ViewGate":"Log in to the Dashboard to use ViewGate","warning");return}if(h.key==="Escape"){K?N(null):WA?Ce(!1):u&&f(!1);return}if(D==="c"&&!h.ctrlKey&&!h.metaKey&&!K&&!WA){if(!Ss){A(e==="es"?"Acceso denegado a este proyecto":"No project access","error");return}if(fr==="client"){A(e==="es"?"Acceso de solo lectura (Backlog)":"Read-only access (Backlog)","warning");return}if(Ts&&!u){if(Ec?.status===403||!Ss){const nA=Ec?.message||(e==="es"?"Acceso denegado a este proyecto":"No project access");A(nA,"error");return}A(e==="es"?"Verificando información del sprint...":"Checking sprint info...","warning");return}if(!(Be&&Be.status!=="closed")&&!B&&!u){A(e==="es"?"No hay un sprint activo. No se pueden generar comentarios.":"No active sprint found. Cannot generate comments.","error");return}f(L=>!L)}if(D==="v"&&!K){if(!Ss){A(e==="es"?"Acceso denegado a este proyecto":"No project access","error");return}(HA.length>0||WA)&&(Ce(O=>!O),WA||f(!1))}};return u&&!K?document.body.classList.add("vg-cursor-pointer"):document.body.classList.remove("vg-cursor-pointer"),window.addEventListener("keydown",l),window.addEventListener("mousemove",Co,!0),window.addEventListener("click",Qo,!0),()=>{document.body.classList.remove("vg-cursor-pointer"),window.removeEventListener("keydown",l),window.removeEventListener("mousemove",Co,!0),window.removeEventListener("click",Qo,!0)}},[u,K,WA,HA,Co,Qo,hA,fr]);const Jp=async()=>{if(!K||!W.trim())return;if(_.includes("backend")&&J.length===0){A(e==="es"?"Selecciona al menos un endpoint de backend":"Select at least one backend endpoint","error");return}if(_.includes("ux")&&AA.some(O=>!O.name.trim()||!O.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}vA(!0);const{semanticReference:l}=K,[h,p]=(l.source||"").split(":"),b={filePath:h,line:parseInt(p||"0"),url:window.location.href,title:W.length>50?W.substring(0,50)+"...":W,message:W,status:B?"backlog":"pending",priority:w,type:K.visualPreview&&!B&&Ls?.status==="active"?"bug":"task",screenshot:K.visualPreview,componentName:l.componentPath||K.tag,reference:{...l,viewport:{width:window.innerWidth,height:window.innerHeight},timestamp:new Date().toISOString()},focusAreas:_,figmaReference:_.includes("ux")?AA:void 0,backendEndpoints:_.includes("backend")?J:[]};kA&&(b.creator={name:kA.name,email:kA.email,avatar:kA.avatar});try{const D=await fetch(`${n}/api/annotations`,{method:"POST",headers:{"Content-Type":"application/json","x-api-key":s,Authorization:hA?`Bearer ${hA}`:""},body:JSON.stringify(b)});if(!D.ok){const O=await D.json().catch(()=>({}));throw new Error(O.message||O.error||"Backend failed")}A(r.success,"success"),N(null),R(""),yA([]),IA([{name:r.figmaPrimaryDesign,link:""}]),re([]),f(!1),Os()}catch(D){console.error(D);const O=D.message&&D.message!=="Backend failed"?D.message:r.error;A(O,"error")}finally{vA(!1)}},Yp=async l=>{We(!0);try{const h=hc(l.reference,l._id);if(!h){A(e==="es"?"No se pudo encontrar el elemento original para la captura":"Could not find the original element for capture","error"),We(!1);return}h.scrollIntoView({behavior:"smooth",block:"center"}),await new Promise(oA=>setTimeout(oA,600));const p=h.style.outline,x=h.style.transition;h.style.transition="outline 0.3s ease",h.style.outline="4px solid #10b981",h.style.outlineOffset="4px",await new Promise(oA=>setTimeout(oA,400)),h.style.outline=p,h.style.transition=x,await new Promise(oA=>requestAnimationFrame(oA)),await new Promise(oA=>setTimeout(oA,50));const b=h.getBoundingClientRect(),D=document.documentElement,O=window.devicePixelRatio||1,L=Math.max(O,3),nA=await oo(D,{scale:L,useCORS:!0,logging:!1,backgroundColor:null,allowTaint:!0,imageTimeout:2e4,x:Math.floor(window.scrollX),y:Math.floor(window.scrollY),width:window.innerWidth,height:window.innerHeight,windowWidth:window.innerWidth,windowHeight:window.innerHeight,scrollX:0,scrollY:0,onclone:oA=>{const QA=oA.getElementById("viewgate-shadow-host");QA&&(QA.style.display="none"),oA.querySelectorAll(".vg-selection-overlay, .vg-formal-pin").forEach(EA=>{EA.style.display="none"})}}),V=document.createElement("canvas"),pA=V.getContext("2d"),rA=32;if(V.width=(b.width+rA*2)*L,V.height=(b.height+rA*2)*L,pA){pA.imageSmoothingEnabled=!0,pA.imageSmoothingQuality="high";const oA=(b.left-rA)*L,QA=(b.top-rA)*L;pA.drawImage(nA,-oA,-QA,nA.width,nA.height);const EA=V.toDataURL("image/webp",.95),bA=await fetch(`${n}/api/tickets/${l._id}`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:hA?`Bearer ${hA}`:""},body:JSON.stringify({status:"completed",resolvedScreenshot:EA})});if(!bA.ok){const xA=await bA.json().catch(()=>({}));throw new Error(xA.message||xA.error||"API failed")}A(e==="es"?"¡Ticket resuelto con éxito!":"Ticket resolved successfully!","success"),Os()}h.style.outline=p,h.style.transition=x}catch(h){console.error("[ViewGate] Resolve with evidence failed:",h),A(e==="es"?`Error: ${h.message}`:`Error: ${h.message}`,"error")}finally{We(!1)}};return i.jsx("div",{"data-vg-id":"ef883ffc","data-source-path":"/src/components/ViewGateOverlay.tsx:2297",className:"vg-container",style:{userSelect:"none",WebkitUserSelect:"none"},children:i.jsxs("div",{"data-vg-id":"ef883ffd","data-source-path":"/src/components/ViewGateOverlay.tsx:2298",className:"vg-no-capture",style:{userSelect:"none",WebkitUserSelect:"none"},children:[i.jsxs("div",{style:{position:"fixed",bottom:`${It.bottom}px`,right:`${It.right}px`,zIndex:lc,display:"flex",alignItems:"center",gap:"8px",transition:mr?"none":"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)"},id:"viewgate-ui",children:[i.jsx("div",{onMouseDown:zp,style:{width:"24px",height:"40px",borderRadius:"10px",backgroundColor:"rgba(255, 255, 255, 0.85)",backdropFilter:"blur(4px)",display:"flex",alignItems:"center",justifyContent:"center",cursor:"grab",color:"#1e293b",opacity:u?0:1,visibility:u?"hidden":"visible",transition:"all 0.2s",border:"1px solid rgba(0,0,0,0.1)",boxShadow:"0 2px 8px rgba(0,0,0,0.05)"},onMouseEnter:l=>{l.currentTarget.style.backgroundColor="white",l.currentTarget.style.color="#000000"},onMouseLeave:l=>{l.currentTarget.style.backgroundColor="rgba(255, 255, 255, 0.85)",l.currentTarget.style.color="#1e293b"},className:"vg-animate-slide-up",children:i.jsx(bl,{"data-vg-id":"3dbe6a11","data-source-path":"/src/components/ViewGateOverlay.tsx:2345",size:16})}),i.jsxs("div",{"data-vg-id":"ef883fff","data-source-path":"/src/components/ViewGateOverlay.tsx:2348",className:"vg-action-bar vg-animate-slide-up",style:{transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)"},children:[hA?Ss?i.jsxs(i.Fragment,{children:[fr!=="client"&&i.jsx("button",{onClick:()=>{if(Ts&&!u){A(e==="es"?"Sincronizando con el servidor...":"Syncing with server...","warning");return}if(!Be&&!B&&!u){A(e==="es"?"No hay un sprint activo. No se pueden generar comentarios.":"No active sprint found. Cannot generate comments.","error");return}f(!u)},className:"vg-button-primary vg-animate-pop",style:{padding:"12px 24px",background:u?"#ef4444":!Be&&!B?"#94a3b8":void 0,cursor:!Be&&!B&&!u?"not-allowed":"pointer",opacity:!Be&&!B&&!u?.7:1},title:!Be&&!B&&!u?e==="es"?"Requiere sprint activo":"Requires active sprint":"",children:i.jsxs("div",{"data-vg-id":"ef884001","data-source-path":"/src/components/ViewGateOverlay.tsx:2387",style:{display:"flex",alignItems:"center",gap:"10px"},children:[Ts&&!u?i.jsx(br,{"data-vg-id":"edca6150","data-source-path":"/src/components/ViewGateOverlay.tsx:2389",size:20,className:"vg-animate-spin"}):u?i.jsx(kt,{"data-vg-id":"ff5f5cf","data-source-path":"/src/components/ViewGateOverlay.tsx:2391",size:20,className:"vg-animate-pop"}):i.jsx(vr,{"data-vg-id":"10c621c4","data-source-path":"/src/components/ViewGateOverlay.tsx:2393",size:20,className:"vg-animate-pop"}),i.jsx("span",{"data-vg-id":"52d76c43","data-source-path":"/src/components/ViewGateOverlay.tsx:2395",children:Ts&&!u?e==="es"?"Cargando...":"Loading...":u?r.exitMode:r.enterMode})]})}),HA.length>0&&i.jsxs("button",{onClick:()=>{Ce(!WA),f(!1),N(null)},className:"vg-button-ghost vg-animate-pop",style:{animationDelay:"0.1s"},children:[i.jsx(El,{"data-vg-id":"cd7341f9","data-source-path":"/src/components/ViewGateOverlay.tsx:2413",size:20}),i.jsx("span",{"data-vg-id":"52d76c45","data-source-path":"/src/components/ViewGateOverlay.tsx:2414",children:r.viewComments})]})]}):i.jsx("div",{"data-vg-id":"ef884000","data-source-path":"/src/components/ViewGateOverlay.tsx:2351",style:{padding:"8px 16px",background:"#fee2e2",color:"#b91c1c",borderRadius:"20px",fontSize:"12px",fontWeight:600,border:"1px solid #fecaca",whiteSpace:"nowrap"},children:e==="es"?"Acceso denegado a este proyecto":"No project access"}):i.jsxs("button",{onClick:()=>{f(!0),N({rect:new DOMRect})},className:"vg-button-primary vg-animate-pop",style:{padding:"12px 24px",background:"var(--vg-primary-gradient)",display:"flex",alignItems:"center",gap:"10px"},children:[i.jsx(Yo,{"data-vg-id":"422a5ea5","data-source-path":"/src/components/ViewGateOverlay.tsx:2434",size:18}),i.jsx("span",{"data-vg-id":"52d76c47","data-source-path":"/src/components/ViewGateOverlay.tsx:2435",style:{fontWeight:700},children:e==="es"?"Desbloquear con Clave":"Unlock with Key"})]}),i.jsx("button",{onClick:l=>{l.stopPropagation(),Y({title:r.exitConfirmTitle||"Close ViewGate?",message:r.exitConfirmMessage||"Are you sure you want to close ViewGate?",type:"danger",onConfirm:()=>a()})},className:"vg-button-ghost vg-animate-pop",style:{width:"40px",height:"40px",minWidth:"40px",padding:"0",animationDelay:"0.2s",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"12px",backgroundColor:"rgba(255, 255, 255, 0.8)",color:"#64748b",border:"1px solid rgba(0,0,0,0.05)"},onMouseEnter:l=>{l.currentTarget.style.color="#ef4444",l.currentTarget.style.backgroundColor="white",l.currentTarget.style.borderColor="rgba(239, 68, 68, 0.2)",l.currentTarget.style.transform="scale(1.05)"},onMouseLeave:l=>{l.currentTarget.style.color="#64748b",l.currentTarget.style.backgroundColor="rgba(255, 255, 255, 0.8)",l.currentTarget.style.borderColor="rgba(0,0,0,0.05)",l.currentTarget.style.transform="scale(1)"},title:r.close||"Cerrar ViewGate",children:i.jsx(kt,{"data-vg-id":"ff5f5d6","data-source-path":"/src/components/ViewGateOverlay.tsx:2479",size:20,strokeWidth:2.5})})]})]}),He&&i.jsx("div",{"data-vg-id":"17fbf7e","data-source-path":"/src/components/ViewGateOverlay.tsx:2488",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:lc+1,cursor:"wait"},children:i.jsxs("div",{"data-vg-id":"17fbf7f","data-source-path":"/src/components/ViewGateOverlay.tsx:2494",className:"vg-glassmorphism",style:{padding:"30px 50px",display:"flex",flexDirection:"column",alignItems:"center",gap:"16px"},children:[i.jsx("div",{"data-vg-id":"17fbf95","data-source-path":"/src/components/ViewGateOverlay.tsx:2495",className:"vg-spinner"}),i.jsx("span",{"data-vg-id":"52d76c61","data-source-path":"/src/components/ViewGateOverlay.tsx:2496",style:{fontWeight:600,fontSize:"14px",color:"#000000"},children:"Capturando..."})]})}),u&&!K&&i.jsx("div",{className:"vg-backdrop-blur",style:{opacity:1,clipPath:I?`polygon(
|
|
7
|
+
<%s key={someKey} {...props} />`,F,P,ye,P),Oe[P+F]=!0)}if(P=null,z!==void 0&&(s(z),P=""+z),l(R)&&(s(R.key),P=""+R.key),"key"in R){z={};for(var ot in R)ot!=="key"&&(z[ot]=R[ot])}else z=R;return P&&f(z,typeof g=="function"?g.displayName||g.name||"Unknown":g),S(g,P,z,c(),Te,Ee)}function m(g){x(g)?g._store&&(g._store.validated=1):typeof g=="object"&&g!==null&&g.$$typeof===D&&(g._payload.status==="fulfilled"?x(g._payload.value)&&g._payload.value._store&&(g._payload.value._store.validated=1):g._store&&(g._store.validated=1))}function x(g){return typeof g=="object"&&g!==null&&g.$$typeof===V}var j=p,V=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),ue=Symbol.for("react.consumer"),N=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),ae=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),oe=Symbol.for("react.activity"),ce=Symbol.for("react.client.reference"),M=j.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,de=Object.prototype.hasOwnProperty,H=Array.isArray,re=console.createTask?console.createTask:function(){return null};j={react_stack_bottom_frame:function(g){return g()}};var L,Se={},je=j.react_stack_bottom_frame.bind(j,d)(),He=re(r(d)),Oe={};mt.Fragment=A,mt.jsx=function(g,R,z){var F=1e4>M.recentlyCreatedOwnerStacks++;return b(g,R,z,!1,F?Error("react-stack-top-frame"):je,F?re(r(g)):He)},mt.jsxs=function(g,R,z){var F=1e4>M.recentlyCreatedOwnerStacks++;return b(g,R,z,!0,F?Error("react-stack-top-frame"):je,F?re(r(g)):He)}})()),mt}var Ma;function Us(){return Ma||(Ma=1,process.env.NODE_ENV==="production"?Tt.exports=Bs():Tt.exports=Hs()),Tt.exports}var t=Us(),At={exports:{}},aa={};var La;function Ys(){if(La)return aa;La=1;var e=p;function o(m,x){return m===x&&(m!==0||1/m===1/x)||m!==m&&x!==x}var s=typeof Object.is=="function"?Object.is:o,r=e.useState,c=e.useEffect,d=e.useLayoutEffect,l=e.useDebugValue;function f(m,x){var j=x(),V=r({inst:{value:j,getSnapshot:x}}),C=V[0].inst,A=V[1];return d(function(){C.value=j,C.getSnapshot=x,h(C)&&A({inst:C})},[m,j,x]),c(function(){return h(C)&&A({inst:C}),m(function(){h(C)&&A({inst:C})})},[m]),l(j),j}function h(m){var x=m.getSnapshot;m=m.value;try{var j=x();return!s(m,j)}catch{return!0}}function S(m,x){return x()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?S:f;return aa.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:b,aa}var sa={};var Wa;function Xs(){return Wa||(Wa=1,process.env.NODE_ENV!=="production"&&(function(){function e(j,V){return j===V&&(j!==0||1/j===1/V)||j!==j&&V!==V}function o(j,V){b||c.startTransition===void 0||(b=!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=V();if(!m){var A=V();d(C,A)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),m=!0)}A=l({inst:{value:C,getSnapshot:V}});var _=A[0].inst,v=A[1];return h(function(){_.value=C,_.getSnapshot=V,s(_)&&v({inst:_})},[j,C,V]),f(function(){return s(_)&&v({inst:_}),j(function(){s(_)&&v({inst:_})})},[j]),S(C),C}function s(j){var V=j.getSnapshot;j=j.value;try{var C=V();return!d(j,C)}catch{return!0}}function r(j,V){return V()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var c=p,d=typeof Object.is=="function"?Object.is:e,l=c.useState,f=c.useEffect,h=c.useLayoutEffect,S=c.useDebugValue,b=!1,m=!1,x=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:o;sa.useSyncExternalStore=c.useSyncExternalStore!==void 0?c.useSyncExternalStore:x,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),sa}var Da;function Ks(){return Da||(Da=1,process.env.NODE_ENV==="production"?At.exports=Ys():At.exports=Xs()),At.exports}var Fa=Ks();const Ba=0,Ha=1,Ua=2,Ya=3;var Xa=Object.prototype.hasOwnProperty;function oa(e,o){var s,r;if(e===o)return!0;if(e&&o&&(s=e.constructor)===o.constructor){if(s===Date)return e.getTime()===o.getTime();if(s===RegExp)return e.toString()===o.toString();if(s===Array){if((r=e.length)===o.length)for(;r--&&oa(e[r],o[r]););return r===-1}if(!s||typeof e=="object"){r=0;for(s in e)if(Xa.call(e,s)&&++r&&!Xa.call(o,s)||!(s in o)||!oa(e[s],o[s]))return!1;return Object.keys(o).length===r}}return e!==e&&o!==o}const ze=new WeakMap,Pe=()=>{},se=Pe(),ra=Object,T=e=>e===se,Ge=e=>typeof e=="function",Fe=(e,o)=>({...e,...o}),Ka=e=>Ge(e.then),na={},Nt={},ia="undefined",ht=typeof window!=ia,ca=typeof document!=ia,Js=ht&&"Deno"in window,Zs=()=>ht&&typeof window.requestAnimationFrame!=ia,Ja=(e,o)=>{const s=ze.get(e);return[()=>!T(o)&&e.get(o)||na,r=>{if(!T(o)){const c=e.get(o);o in Nt||(Nt[o]=c),s[5](o,Fe(c,r),c||na)}},s[6],()=>!T(o)&&o in Nt?Nt[o]:!T(o)&&e.get(o)||na]};let da=!0;const Qs=()=>da,[la,pa]=ht&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Pe,Pe],qs=()=>{const e=ca&&document.visibilityState;return T(e)||e!=="hidden"},$s=e=>(ca&&document.addEventListener("visibilitychange",e),la("focus",e),()=>{ca&&document.removeEventListener("visibilitychange",e),pa("focus",e)}),eo=e=>{const o=()=>{da=!0,e()},s=()=>{da=!1};return la("online",o),la("offline",s),()=>{pa("online",o),pa("offline",s)}},to={isOnline:Qs,isVisible:qs},ao={initFocus:$s,initReconnect:eo},Za=!p.useId,st=!ht||Js,so=e=>Zs()?window.requestAnimationFrame(e):setTimeout(e,1),ua=st?p.useEffect:p.useLayoutEffect,fa=typeof navigator<"u"&&navigator.connection,Qa=!st&&fa&&(["slow-2g","2g"].includes(fa.effectiveType)||fa.saveData),It=new WeakMap,oo=e=>ra.prototype.toString.call(e),ga=(e,o)=>e===`[object ${o}]`;let ro=0;const ma=e=>{const o=typeof e,s=oo(e),r=ga(s,"Date"),c=ga(s,"RegExp"),d=ga(s,"Object");let l,f;if(ra(e)===e&&!r&&!c){if(l=It.get(e),l)return l;if(l=++ro+"~",It.set(e,l),Array.isArray(e)){for(l="@",f=0;f<e.length;f++)l+=ma(e[f])+",";It.set(e,l)}if(d){l="#";const h=ra.keys(e).sort();for(;!T(f=h.pop());)T(e[f])||(l+=f+":"+ma(e[f])+",");It.set(e,l)}}else l=r?e.toJSON():o=="symbol"?e.toString():o=="string"?JSON.stringify(e):""+e;return l},ha=e=>{if(Ge(e))try{e=e()}catch{e=""}const o=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?ma(e):"",[e,o]};let no=0;const xa=()=>++no;async function qa(...e){const[o,s,r,c]=e,d=Fe({populateCache:!0,throwOnError:!0},typeof c=="boolean"?{revalidate:c}:c||{});let l=d.populateCache;const f=d.rollbackOnError;let h=d.optimisticData;const S=x=>typeof f=="function"?f(x):f!==!1,b=d.throwOnError;if(Ge(s)){const x=s,j=[],V=o.keys();for(const C of V)!/^\$(inf|sub)\$/.test(C)&&x(o.get(C)._k)&&j.push(C);return Promise.all(j.map(m))}return m(s);async function m(x){const[j]=ha(x);if(!j)return;const[V,C]=Ja(o,j),[A,_,v,ue]=ze.get(o),N=()=>{const H=A[j];return(Ge(d.revalidate)?d.revalidate(V().data,x):d.revalidate!==!1)&&(delete v[j],delete ue[j],H&&H[0])?H[0](Ua).then(()=>V().data):V().data};if(e.length<3)return N();let Y=r,I,J=!1;const ae=xa();_[j]=[ae,0];const D=!T(h),oe=V(),ce=oe.data,M=oe._c,de=T(M)?ce:M;if(D&&(h=Ge(h)?h(de,ce):h,C({data:h,_c:de})),Ge(Y))try{Y=Y(de)}catch(H){I=H,J=!0}if(Y&&Ka(Y))if(Y=await Y.catch(H=>{I=H,J=!0}),ae!==_[j][0]){if(J)throw I;return Y}else J&&D&&S(I)&&(l=!0,C({data:de,_c:se}));if(l&&!J)if(Ge(l)){const H=l(Y,de);C({data:H,error:se,_c:se})}else C({data:Y,error:se,_c:se});if(_[j][1]=xa(),Promise.resolve(N()).then(()=>{C({_c:se})}),J){if(b)throw I;return}return Y}}const $a=(e,o)=>{for(const s in e)e[s][0]&&e[s][0](o)},io=(e,o)=>{if(!ze.has(e)){const s=Fe(ao,o),r=Object.create(null),c=qa.bind(se,e);let d=Pe;const l=Object.create(null),f=(b,m)=>{const x=l[b]||[];return l[b]=x,x.push(m),()=>x.splice(x.indexOf(m),1)},h=(b,m,x)=>{e.set(b,m);const j=l[b];if(j)for(const V of j)V(m,x)},S=()=>{if(!ze.has(e)&&(ze.set(e,[r,Object.create(null),Object.create(null),Object.create(null),c,h,f]),!st)){const b=s.initFocus(setTimeout.bind(se,$a.bind(se,r,Ba))),m=s.initReconnect(setTimeout.bind(se,$a.bind(se,r,Ha)));d=()=>{b&&b(),m&&m(),ze.delete(e)}}};return S(),[e,c,S,d]}return[e,ze.get(e)[4]]},co=(e,o,s,r,c)=>{const d=s.errorRetryCount,l=c.retryCount,f=~~((Math.random()+.5)*(1<<(l<8?l:8)))*s.errorRetryInterval;!T(d)&&l>d||setTimeout(r,f,c)},lo=oa,[es,po]=io(new Map),uo=Fe({onLoadingSlow:Pe,onSuccess:Pe,onError:Pe,onErrorRetry:co,onDiscarded:Pe,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Qa?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Qa?5e3:3e3,compare:lo,isPaused:()=>!1,cache:es,mutate:po,fallback:{}},to),fo=(e,o)=>{const s=Fe(e,o);if(o){const{use:r,fallback:c}=e,{use:d,fallback:l}=o;r&&d&&(s.use=r.concat(d)),c&&l&&(s.fallback=Fe(c,l))}return s},go=p.createContext({}),mo="$inf$",ts=ht&&window.__SWR_DEVTOOLS_USE__,ho=ts?window.__SWR_DEVTOOLS_USE__:[],xo=()=>{ts&&(window.__SWR_DEVTOOLS_REACT__=p)},vo=e=>Ge(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],as=()=>{const e=p.useContext(go);return p.useMemo(()=>Fe(uo,e),[e])},yo=e=>(o,s,r)=>e(o,s&&((...d)=>{const[l]=ha(o),[,,,f]=ze.get(es);if(l.startsWith(mo))return s(...d);const h=f[l];return T(h)?s(...d):(delete f[l],h)}),r),bo=ho.concat(yo),wo=e=>function(...s){const r=as(),[c,d,l]=vo(s),f=fo(r,l);let h=e;const{use:S}=f,b=(S||[]).concat(bo);for(let m=b.length;m--;)h=b[m](h);return h(c,d||f.fetcher||null,f)},ko=(e,o,s)=>{const r=o[e]||(o[e]=[]);return r.push(s),()=>{const c=r.indexOf(s);c>=0&&(r[c]=r[r.length-1],r.pop())}};xo();const va=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(o=>{e.status="fulfilled",e.value=o},o=>{e.status="rejected",e.reason=o}),e}}),ya={dedupe:!0},ss=Promise.resolve(se),So=()=>Pe,os=wo((e,o,s)=>{const{cache:r,compare:c,suspense:d,fallbackData:l,revalidateOnMount:f,revalidateIfStale:h,refreshInterval:S,refreshWhenHidden:b,refreshWhenOffline:m,keepPreviousData:x,strictServerPrefetchWarning:j}=s,[V,C,A,_]=ze.get(r),[v,ue]=ha(e),N=p.useRef(!1),Y=p.useRef(!1),I=p.useRef(v),J=p.useRef(o),ae=p.useRef(s),D=()=>ae.current,oe=()=>D().isVisible()&&D().isOnline(),[ce,M,de,H]=Ja(r,v),re=p.useRef({}).current,L=T(l)?T(s.fallback)?se:s.fallback[v]:l,Se=(W,B)=>{for(const X in re){const Z=X;if(Z==="data"){if(!c(W[Z],B[Z])&&(!T(W[Z])||!c(Ee,B[Z])))return!1}else if(B[Z]!==W[Z])return!1}return!0},je=!N.current,He=p.useMemo(()=>{const W=ce(),B=H(),X=Q=>{const K=Fe(Q);return delete K._k,(()=>{if(!v||!o||D().isPaused())return!1;if(je&&!T(f))return f;const Ne=T(L)?K.data:L;return T(Ne)||h})()?{isValidating:!0,isLoading:!0,...K}:K},Z=X(W),Ve=W===B?Z:X(B);let me=Z;return[()=>{const Q=X(ce());return Se(Q,me)?(me.data=Q.data,me.isLoading=Q.isLoading,me.isValidating=Q.isValidating,me.error=Q.error,me):(me=Q,Q)},()=>Ve]},[r,v]),Oe=Fa.useSyncExternalStore(p.useCallback(W=>de(v,(B,X)=>{Se(X,B)||W()}),[r,v]),He[0],He[1]),g=V[v]&&V[v].length>0,R=Oe.data,z=T(R)?L&&Ka(L)?va(L):L:R,F=Oe.error,Te=p.useRef(z),Ee=x?T(R)?T(Te.current)?z:Te.current:R:z,P=v&&T(z),ye=p.useRef(null);!st&&Fa.useSyncExternalStore(So,()=>(ye.current=!1,ye),()=>(ye.current=!0,ye));const ot=ye.current;j&&ot&&!d&&P&&console.warn(`Missing pre-initiated data for serialized key "${v}" 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 Le=!v||!o||D().isPaused()||g&&!T(F)?!1:je&&!T(f)?f:d?T(z)?!1:h:T(z)||h,Ue=je&&Le,fe=T(Oe.isValidating)?Ue:Oe.isValidating,Ae=T(Oe.isLoading)?Ue:Oe.isLoading,te=p.useCallback(async W=>{const B=J.current;if(!v||!B||Y.current||D().isPaused())return!1;let X,Z,Ve=!0;const me=W||{},Q=!A[v]||!me.dedupe,K=()=>Za?!Y.current&&v===I.current&&N.current:v===I.current,We={isValidating:!1,isLoading:!1},Ne=()=>{M(We)},jt=()=>{const le=A[v];le&&le[1]===Z&&delete A[v]},_e={isValidating:!0};T(ce().data)&&(_e.isLoading=!0);try{if(Q&&(M(_e),s.loadingTimeout&&T(ce().data)&&setTimeout(()=>{Ve&&K()&&D().onLoadingSlow(v,s)},s.loadingTimeout),A[v]=[B(ue),xa()]),[X,Z]=A[v],X=await X,Q&&setTimeout(jt,s.dedupingInterval),!A[v]||A[v][1]!==Z)return Q&&K()&&D().onDiscarded(v),!1;We.error=se;const le=C[v];if(!T(le)&&(Z<=le[0]||Z<=le[1]||le[1]===0))return Ne(),Q&&K()&&D().onDiscarded(v),!1;const Ie=ce().data;We.data=c(Ie,X)?Ie:X,Q&&K()&&D().onSuccess(X,v,s)}catch(le){jt();const Ie=D(),{shouldRetryOnError:Bt}=Ie;Ie.isPaused()||(We.error=le,Q&&K()&&(Ie.onError(le,v,Ie),(Bt===!0||Ge(Bt)&&Bt(le))&&(!D().revalidateOnFocus||!D().revalidateOnReconnect||oe())&&Ie.onErrorRetry(le,v,Ie,q=>{const Qe=V[v];Qe&&Qe[0]&&Qe[0](Ya,q)},{retryCount:(me.retryCount||0)+1,dedupe:!0})))}return Ve=!1,Ne(),!0},[v,r]),Ze=p.useCallback((...W)=>qa(r,I.current,...W),[]);if(ua(()=>{J.current=o,ae.current=s,T(R)||(Te.current=R)}),ua(()=>{if(!v)return;const W=te.bind(se,ya);let B=0;D().revalidateOnFocus&&(B=Date.now()+D().focusThrottleInterval);const Z=ko(v,V,(Ve,me={})=>{if(Ve==Ba){const Q=Date.now();D().revalidateOnFocus&&Q>B&&oe()&&(B=Q+D().focusThrottleInterval,W())}else if(Ve==Ha)D().revalidateOnReconnect&&oe()&&W();else{if(Ve==Ua)return te();if(Ve==Ya)return te(me)}});return Y.current=!1,I.current=v,N.current=!0,M({_k:ue}),Le&&(A[v]||(T(z)||st?W():so(W))),()=>{Y.current=!0,Z()}},[v]),ua(()=>{let W;function B(){const Z=Ge(S)?S(ce().data):S;Z&&W!==-1&&(W=setTimeout(X,Z))}function X(){!ce().error&&(b||D().isVisible())&&(m||D().isOnline())?te(ya).then(B):B()}return B(),()=>{W&&(clearTimeout(W),W=-1)}},[S,b,m,v]),p.useDebugValue(Ee),d){if(!Za&&st&&P)throw new Error("Fallback data is required when using Suspense in SSR.");P&&(J.current=o,ae.current=s,Y.current=!1);const W=_[v],B=!T(W)&&P?Ze(W):ss;if(va(B),!T(F)&&P)throw F;const X=P?te(ya):ss;!T(Ee)&&P&&(X.status="fulfilled",X.value=!0),va(X)}return{mutate:Ze,get data(){return re.data=!0,Ee},get error(){return re.error=!0,F},get isValidating(){return re.isValidating=!0,fe},get isLoading(){return re.isLoading=!0,Ae}}}),jo=({children:e})=>{const o=p.useRef(null),[s,r]=p.useState(null);return p.useEffect(()=>{if(o.current&&!o.current.shadowRoot){const c=o.current.attachShadow({mode:"open"});document.querySelectorAll("style[data-vite-dev-id], style:not([data-vite-dev-id])").forEach(f=>{(f.textContent?.includes(".vg-")||f.textContent?.includes("--vg-"))&&c.appendChild(f.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",c.appendChild(l),r(c)}},[]),t.jsx("div",{"data-vg-id":"49696d6b","data-source-path":"/src/components/ShadowRootWrapper.tsx:38",ref:o,id:"viewgate-shadow-host",style:{position:"relative",zIndex:2147483647},children:s&&Fs.createPortal(e,s)})};const rs=(...e)=>e.filter((o,s,r)=>!!o&&o.trim()!==""&&r.indexOf(o)===s).join(" ").trim();const Oo=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Eo=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(o,s,r)=>r?r.toUpperCase():s.toLowerCase());const ns=e=>{const o=Eo(e);return o.charAt(0).toUpperCase()+o.slice(1)};var Co={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 Vo=e=>{for(const o in e)if(o.startsWith("aria-")||o==="role"||o==="title")return!0;return!1};const _o=p.forwardRef(({color:e="currentColor",size:o=24,strokeWidth:s=2,absoluteStrokeWidth:r,className:c="",children:d,iconNode:l,...f},h)=>p.createElement("svg",{ref:h,...Co,width:o,height:o,stroke:e,strokeWidth:r?Number(s)*24/Number(o):s,className:rs("lucide",c),...!d&&!Vo(f)&&{"aria-hidden":"true"},...f},[...l.map(([S,b])=>p.createElement(S,b)),...Array.isArray(d)?d:[d]]));const U=(e,o)=>{const s=p.forwardRef(({className:r,...c},d)=>p.createElement(_o,{ref:d,iconNode:o,className:rs(`lucide-${Oo(ns(e))}`,`lucide-${e}`,r),...c}));return s.displayName=ns(e),s};const xt=U("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 Ro=U("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 is=U("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const Go=U("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 Ke=U("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);const cs=U("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);const ba=U("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 To=U("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=U("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 Ao=U("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 No=U("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 zt=U("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 Pt=U("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 Mt=U("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);const ds=U("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 Lt=U("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 Io=U("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=U("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 zo=U("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const Po=U("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);const Mo=U("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 Wt=U("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 Lo=U("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 yt=U("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Wo={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"}},ls=p.createContext(void 0),ps=()=>{const e=p.useContext(ls);if(!e)throw new Error("useViewGate must be used within a ViewGateProvider");return e},bt="viewgate_enabled",Do=()=>{if(typeof window>"u")return!1;const e=new URLSearchParams(window.location.search);return e.has("viewgate")||e.has("viewgate-backlog")?(sessionStorage.setItem(bt,"true"),!0):sessionStorage.getItem(bt)==="true"},Fo=({children:e,language:o="es",apiKey:s,baseUrl:r="https://view-gate.vercel.app",dashboardUrl:c})=>{const d=c||(r==="https://view-gate.vercel.app"?"https://view-gate-dashboard.vercel.app":r.includes("localhost:5000")?r.replace("5000","3000"):r),[l,f]=p.useState(!1),[h,S]=p.useState([]);p.useRef(0);const b=p.useRef(null),m=p.useRef(!1);p.useEffect(()=>{f(Do());const C=_=>{_.key==="Alt"&&!_.repeat&&(_.preventDefault(),m.current=!1,b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{const v=new URL(window.location.href);v.searchParams.delete("viewgate"),v.searchParams.set("viewgate-backlog","true"),window.history.replaceState({},"",v.toString()),f(!0),sessionStorage.setItem(bt,"true"),window.dispatchEvent(new PopStateEvent("popstate")),j(o==="es"?"Modo Backlog activado":"Backlog Mode activated","success"),m.current=!0,b.current=null},1e3))},A=_=>{if(_.key==="Alt"&&(_.preventDefault(),b.current)){clearTimeout(b.current),b.current=null;const v=new URL(window.location.href);v.searchParams.delete("viewgate-backlog"),v.searchParams.set("viewgate","true"),window.history.replaceState({},"",v.toString()),f(!0),sessionStorage.setItem(bt,"true"),window.dispatchEvent(new PopStateEvent("popstate")),j(o==="es"?"Modo Normal activado":"Normal Mode activated","success")}};return window.addEventListener("keydown",C),window.addEventListener("keyup",A),()=>{window.removeEventListener("keydown",C),window.removeEventListener("keyup",A)}},[o]);const x=()=>{if(sessionStorage.removeItem(bt),f(!1),typeof window<"u"){const C=new URL(window.location.href);C.searchParams.delete("viewgate"),window.history.replaceState({},"",C.toString())}},j=(C,A)=>{const _=Date.now();S(v=>[...v,{id:_,message:C,type:A}]),setTimeout(()=>{S(v=>v.filter(ue=>ue.id!==_))},4e3)},V=Wo[o];return t.jsxs(ls.Provider,{"data-vg-id":"89da3486","data-source-path":"/src/components/ViewGateProvider.tsx:369",value:{addToast:j,language:o,t:V,apiKey:s,baseUrl:r,dashboardUrl:d,disableViewGate:x,hasActiveToasts:h.length>0},children:[e,l&&t.jsx(jo,{"data-vg-id":"f1499d3a","data-source-path":"/src/components/ViewGateProvider.tsx:381",children:t.jsxs("div",{"data-vg-id":"1bedb79b","data-source-path":"/src/components/ViewGateProvider.tsx:382",className:"vg-container",children:[t.jsx(Ss,{"data-vg-id":"d3f262cb","data-source-path":"/src/components/ViewGateProvider.tsx:383"}),t.jsx("div",{"data-vg-id":"1bedb79d","data-source-path":"/src/components/ViewGateProvider.tsx:384",className:"vg-toasts",style:{zIndex:2147483647},children:h.map(C=>t.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"?t.jsx(Ke,{"data-vg-id":"c7ae3b26","data-source-path":"/src/components/ViewGateProvider.tsx:388",size:24,color:"#22c55e"}):C.type==="warning"?t.jsx(Lo,{"data-vg-id":"137eb473","data-source-path":"/src/components/ViewGateProvider.tsx:390",size:24,color:"#f59e0b"}):t.jsx(Go,{"data-vg-id":"e7ad3c7c","data-source-path":"/src/components/ViewGateProvider.tsx:392",size:24,color:"#ef4444"}),t.jsxs("div",{"data-vg-id":"61c93bb7","data-source-path":"/src/components/ViewGateProvider.tsx:394",children:[t.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"?V.successHeader:C.type==="warning"?o==="es"?"Aviso":"Warning":V.errorHeader}),t.jsx("span",{"data-vg-id":"fbbd7822","data-source-path":"/src/components/ViewGateProvider.tsx:398",style:{fontSize:"14px",color:"#000000"},children:C.message})]})]},C.id))})]})})]})},us=async(e,o={})=>{const{scale:s=window.devicePixelRatio||2,padding:r=48,backgroundColor:c="#000000",logging:d=!1}=o,l=e.getBoundingClientRect(),f=document.createElement("canvas");f.width=(l.width+r*2)*s,f.height=(l.height+r*2)*s;const h=f.getContext("2d");return h?(h.fillStyle=c,h.fillRect(0,0,f.width,f.height),h.save(),h.scale(s,s),h.translate(r-l.left,r-l.top),d&&console.log("[VGCap] Starting recursive render of",e),await fs(e,h),h.restore(),f.toDataURL("image/webp",.98)):""},fs=async(e,o)=>{if(e.nodeType===Node.TEXT_NODE){await Ho(e,o);return}if(e.nodeType!==Node.ELEMENT_NODE)return;const s=e,r=window.getComputedStyle(s);if(r.display==="none"||r.visibility==="hidden"||r.opacity==="0")return;const c=s.getBoundingClientRect();o.save(),o.globalAlpha=parseFloat(r.opacity||"1"),Bo(o,c,r),s instanceof HTMLImageElement&&await Uo(o,s,c),r.backgroundImage!=="none"&&await Yo(o,s,c,r);const d=Array.from(s.childNodes);for(const l of d)await fs(l,o);o.restore()},Bo=(e,o,s)=>{const r=parseFloat(s.borderRadius)||0,c=s.backgroundColor;if(e.beginPath(),r>0){const l=o.left,f=o.top,h=o.width,S=o.height;e.moveTo(l+r,f),e.arcTo(l+h,f,l+h,f+S,r),e.arcTo(l+h,f+S,l,f+S,r),e.arcTo(l,f+S,l,f,r),e.arcTo(l,f,l+h,f,r),e.closePath()}else e.rect(o.left,o.top,o.width,o.height);if(s.boxShadow!=="none"){const l=s.boxShadow.match(/rgba?\(.*?\)\s+(\d+)px\s+(\d+)px\s+(\d+)px/);l&&l[0]&&(e.shadowColor=l[0],e.shadowBlur=parseInt(l[3]||"0"),e.shadowOffsetX=parseInt(l[1]||"0"),e.shadowOffsetY=parseInt(l[2]||"0"))}c!=="rgba(0, 0, 0, 0)"&&c!=="transparent"&&(e.fillStyle=c,e.fill());const d=parseFloat(s.borderWidth)||0;d>0&&(e.strokeStyle=s.borderColor,e.lineWidth=d,e.stroke()),e.shadowColor="transparent",e.shadowBlur=0},Ho=async(e,o)=>{const s=e.parentElement;if(!s||!e.textContent?.trim())return;const r=window.getComputedStyle(s),c=document.createRange();c.selectNodeContents(e);const d=c.getClientRects();if(d.length===0)return;o.font=`${r.fontStyle} ${r.fontVariant} ${r.fontWeight} ${r.fontSize} ${r.fontFamily}`,o.fillStyle=r.color,o.textBaseline="alphabetic";const l=e.textContent||"";for(const f of Array.from(d)){o.fillText(l,f.left,f.bottom-parseFloat(r.fontSize||"16")*.2);break}},Uo=async(e,o,s,r)=>{if(o.complete)try{e.drawImage(o,s.left,s.top,s.width,s.height)}catch{}},Yo=async(e,o,s,r)=>{const d=r.backgroundImage.match(/url\(["']?(.*?)["']?\)/);if(!d)return;const l=d[1],f=new Image;f.crossOrigin="anonymous",f.src=l,await new Promise(h=>{f.onload=h,f.onerror=h,setTimeout(h,500)}),f.complete&&f.naturalWidth>0&&e.drawImage(f,s.left,s.top,s.width,s.height)},wt=2147e6,gs=wt,Je=wt,Xo=wt-100,Ko=wt-50,Jo=wt-150,Ce="data-vg-pin-id",Zo=()=>{const e=window.innerWidth;return e<768?"mobile":e<1024?"tablet":"desktop"},ms=(e,o)=>{if(!e)return"";try{const s=new Date(e);return isNaN(s.getTime())?"":new Intl.DateTimeFormat(o==="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""}},hs=({url:e,className:o,style:s,tooltipStyle:r,onHover:c})=>{const d=p.useRef(null),l=()=>{if(!d.current||!c)return;const S=d.current.getBoundingClientRect(),b=S.top,m=window.innerHeight-S.bottom,x=b<140&&m>b?"bottom":"top";c({url:e,x:S.left+S.width/2,y:x==="top"?S.top:S.bottom,direction:x})},f=S=>S.toLowerCase().replace(/\/$/g,"").replace(/\/(?:[0-9]+|(?:[0-9a-f]{24}))(?=\/|$)/g,"/:id"),h=()=>{try{const S=f(window.location.pathname),b=new URL(e),m=f(b.pathname);return S===m||S.startsWith(m)||m.startsWith(S)}catch{return!1}};return t.jsxs("div",{ref:d,className:`vg-url-tag ${o||""}`,style:{...s,opacity:h()?1:.6,borderColor:h()?"var(--vg-primary)":"#e2e8f0"},onMouseEnter:l,onMouseMove:l,onMouseLeave:()=>c?.(null),children:[t.jsx(Be,{"data-vg-id":"353251b6","data-source-path":"/src/components/ViewGateOverlay.tsx:149",size:s?.fontSize?parseInt(s.fontSize)+1:10}),t.jsx("span",{"data-vg-id":"1b724dd0","data-source-path":"/src/components/ViewGateOverlay.tsx:150",style:{maxWidth:s?.maxWidth||"150px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:new URL(e).pathname})]})},kt=e=>{const o=[],s=[],r=[];let c=e,d=!1;for(;c&&c.nodeType===Node.ELEMENT_NODE;){const l=c.localName.toLowerCase();let f=1,h=c.previousElementSibling;for(;h;)h.localName.toLowerCase()===l&&f++,h=h.previousElementSibling;const S=l==="body"||l==="head"||l==="html"?l:`${l}:nth-of-type(${f})`;if(r.unshift(S),!d){const b=c.getAttribute("data-testid")||c.getAttribute("data-qa");if(b){const m=c.hasAttribute("data-testid")?"data-testid":"data-qa";s.push(`[${m}="${b}"]`)}c.id&&!c.id.startsWith("vg-")&&!c.id.includes(":")?(o.unshift(`#${c.id}`),d=!0):b?(o.unshift(`[${c.hasAttribute("data-testid")?"data-testid":"data-qa"}="${b}"]`),d=!0):o.unshift(S)}if(c=c.parentElement,l==="html")break}return{selector:o.join(" > "),fallbacks:s,vgPath:r.join(" > ")}},xs=e=>{const{vgPath:o}=kt(e);return{vgPath:o,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()}},Qo=(()=>{let e=null,o=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),o||(o=e.getContext("2d",{willReadFrequently:!0})),o){o.fillStyle="#000000",o.fillStyle=s;const d=o.fillStyle;if(d&&!d.includes("oklch")&&!d.includes("oklab"))return d}const r=document.createElement("div");r.style.color=s,document.body.appendChild(r);const c=getComputedStyle(r).color;return document.body.removeChild(r),c&&!c.includes("oklch")?c:"rgb(0,0,0)"}catch{return"rgb(0,0,0)"}return s}})(),qo=e=>{const o=window.getComputedStyle(e),s={};return["display","position","margin","padding","font-size","color","background-color","width","height","z-index"].forEach(c=>{const d=o.getPropertyValue(c);s[c]=Qo(d)}),s},$o=e=>{const s=Object.keys(e).find(d=>d.startsWith("__reactFiber$")||d.startsWith("__reactInternalInstance$"));if(!s)return"";const r=[];let c=e[s];for(;c;){const d=c.type;if(typeof d=="function"){const l=d.displayName||d.name;l&&!l.includes("ViewGate")&&!r.includes(l)&&r.unshift(l)}c=c.return}return r.join(" > ")||"Generic Component"},Dt=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 o=window.getComputedStyle(e),s=e.getBoundingClientRect(),r=e.getAttribute("role");if(r&&["listbox","menu","combobox","tooltip","option"].includes(r)||s.width<120&&s.height<120)return!1;const d=parseInt(o.zIndex)||0,l=o.position==="fixed"||o.position==="absolute",f=s.width>window.innerWidth*.4&&s.height>window.innerHeight*.4,h=Math.abs(s.left+s.width/2-window.innerWidth/2)<50,S=e.getAttribute("class")||"",b=S.toLowerCase().includes("modal")||S.toLowerCase().includes("dialog");return!!(l&&d>=100&&(f||h||b))},Ft=e=>{let o=e;for(;o&&o!==document.body;){if(Dt(o))return o;o=o.parentElement}return null},Me=e=>{if(!e.isConnected)return!1;const o=window.getComputedStyle(e);if(o.display==="none"||o.visibility==="hidden"||o.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 c=window.getComputedStyle(s);if(c.display==="none"||c.visibility==="hidden"||c.opacity==="0")return!1;s=s.parentElement}const r=e.getBoundingClientRect();return!(r.width===0||r.height===0)},vs=(e,o=document)=>{const s=o.querySelector(e);if(s)return s;const r=o.querySelectorAll("*");for(const c of Array.from(r)){const d=c.shadowRoot;if(d){const l=vs(e,d);if(l)return l}}return null},ys=(e,o)=>{let s=document.elementFromPoint(e,o);for(;s&&s.shadowRoot;){const r=s.shadowRoot.elementFromPoint(e,o);if(!r||r===s)break;s=r}return s},er=e=>{if(!e.tag)return null;const o=Array.from(document.getElementsByTagName(e.tag));let s=null,r=0;for(const c of o){if(!St(c,e))continue;let d=0;const l=c.getAttribute("placeholder"),f=e.attributes?.placeholder||e.fingerprint?.placeholder;f&&l===f&&(d+=6);const h=c.getAttribute("type"),S=e.attributes?.type||e.fingerprint?.type;if(S&&h===S&&(d+=2),c.innerText?.trim()===e.text.trim()&&(d+=5),e.fingerprint?.vgPath){const{vgPath:b}=kt(c);(b===e.vgPath||e.fingerprint?.vgPath===b)&&(d+=10)}d>r&&d>=7&&(r=d,s=c)}return s},St=(e,o)=>{if(e.tagName.toLowerCase()!==o.tag.toLowerCase())return!1;const s=e.getAttribute("placeholder"),r=o.attributes?.placeholder||o.fingerprint?.placeholder;if(r&&s&&r!==s)return!1;const c=e.getAttribute("type"),d=o.attributes?.type||o.fingerprint?.type;return!(d&&c&&d!==c)},bs=(e,o)=>{if(o){const l=Array.from(document.querySelectorAll(`[${Ce}="${o}"]`));if(l.length>0){const f=l.filter(h=>St(h,e));if(f.length===0)l.forEach(h=>h.removeAttribute(Ce));else{const h=f.find(b=>{const{vgPath:m}=kt(b);return m===e.vgPath||e.fingerprint?.vgPath===m}),S=h&&Me(h)?h:f.find(b=>!(!Me(b)||e.metadata?.isModal&&!b.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content')));return S?(l.forEach(b=>{b!==S&&b.removeAttribute(Ce)}),S):null}}}if(e.vgPath)try{const l=document.querySelector(e.vgPath);if(l&&St(l,e)&&Me(l)&&(!e.metadata?.isModal||Ft(l)))return l}catch{}const r=(e.selector?Array.from(document.querySelectorAll(e.selector)):[]).filter(l=>St(l,e));let c=r.find(l=>{const{vgPath:f}=kt(l);return f===e.vgPath||e.fingerprint?.vgPath===f})||r[0]||null;if(c&&Me(c))if(e.metadata?.isModal&&!Ft(c))c=null;else return c;if(e.fallbackSelectors)for(const l of e.fallbackSelectors){const f=vs(l);if(f&&St(f,e)&&Me(f)){if(e.metadata?.isModal&&!Ft(f))continue;return f}}const d=er(e);return d&&Me(d)?e.metadata?.isModal&&!Ft(d)?null:d:null},wa=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}),ws=e=>{if(!e)return"";let o=e.replace(/<path[^>]*d="([^"]{50,})"[^>]*\/?>/gi,(s,r)=>s.replace(r,`${r.substring(0,20)}...[STRIPPED_${r.length}]`));return o=o.replace(/<polygon[^>]*points="([^"]{50,})"[^>]*\/?>/gi,(s,r)=>s.replace(r,`${r.substring(0,20)}...[STRIPPED_${r.length}]`)),o},tr=e=>{const o=e.parentElement;if(!o)return;const s=Array.from(o.children).filter(l=>l!==e).slice(0,5).map(l=>wa(l)),r=Array.from(o.children),c=r.indexOf(e);let d="middle";return c===0&&(d="start"),c===r.length-1&&(d="end"),{target:{...wa(e),location:`${d} of ${o.tagName.toLowerCase()}`},parent:wa(o),siblings:s}},ks=(e,o)=>{const s=e.getAttribute("data-vg-id")||void 0;let r;const d=Object.keys(e).find(_=>_.startsWith("__reactFiber$")||_.startsWith("__reactInternalInstance$"));if(d){let _=e[d];for(;_;){if(_._debugSource){const{fileName:v,lineNumber:ue,columnNumber:N}=_._debugSource;r=`${v}:${ue}${N?":"+N:""}`;break}_=_.return}}const l=xs(e),f={vgId:s?1:0,fiber:r?.8:0,fingerprint:.5+(l.testId?.3:0)+(l.ariaLabel?.1:0)};let h=e.getAttribute("data-source-path")||r||"unknown:0";const S=$o(e),{selector:b,fallbacks:m,vgPath:x}=kt(e),j={};["placeholder","aria-label","name","type","alt","title","value","role","data-testid"].forEach(_=>{const v=e.getAttribute(_);v&&(j[_]=v)});const V=(()=>{let _=e;for(;_&&_!==document.body;){if(Dt(_))return!0;_=_.parentElement}return!1})();let C;V&&o&&!o.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content')&&(C=ks(o));const A=`${e.tagName.toLowerCase()}-${(e.innerText||"").slice(0,20).replace(/\s+/g,"_")}-${b.split(" > ").slice(-1)}`;return{tag:e.tagName.toLowerCase(),id:e.id||"",classes:e.className||"",text:(e.innerText||"").slice(0,100).trim(),selector:b,vgPath:x,vgId:s,outerHtml:ws(e.outerHTML),parentContext:e.parentElement?`<${e.parentElement.tagName.toLowerCase()} ${Array.from(e.parentElement.attributes).map(_=>`${_.name}="${_.value}"`).join(" ").slice(0,500)}>`:"N/A",componentPath:S,signature:A,source:h,attributes:j,confidence:f,fallbackSelectors:[...new Set(m)].slice(0,5),domPath:[],viewportSize:{width:window.innerWidth,height:window.innerHeight},uiContext:tr(e),fingerprint:xs(e),metadata:{hint:`Edit ${h.split(":")[0]} at line ${h.split(":")[1]||"?"}`,computedStyles:qo(e),viewportBreakpoint:Zo(),outerHtml:ws(e.outerHTML).slice(0,2e3),scrollPosition:{x:window.scrollX,y:window.scrollY},isModal:V,triggerReference:C}}},Ss=()=>{const{mutate:e}=as(),{addToast:o,language:s,t:r,apiKey:c,baseUrl:d,dashboardUrl:l,disableViewGate:f,hasActiveToasts:h}=ps(),[S,b]=p.useState(typeof window<"u"?window.location.pathname+window.location.search:"/"),m=p.useMemo(()=>typeof window>"u"?!1:window.location.href.includes("viewgate-backlog"),[S]);p.useEffect(()=>{const a=()=>b(window.location.pathname+window.location.search);window.addEventListener("popstate",a);const n=window.history.pushState,i=window.history.replaceState;return window.history.pushState=function(...u){n.apply(this,u),setTimeout(a,0)},window.history.replaceState=function(...u){i.apply(this,u),setTimeout(a,0)},()=>{window.removeEventListener("popstate",a),window.history.pushState=n,window.history.replaceState=i}},[]);const[x,j]=p.useState(!1),[V,C]=p.useState("medium"),[A,_]=p.useState("medium"),[v,ue]=p.useState("all"),[N,Y]=p.useState(null),[I,J]=p.useState(null),[ae,D]=p.useState(""),[oe,ce]=p.useState(!1),[M,de]=p.useState([]),[H,re]=p.useState([{name:r.figmaPrimaryDesign,link:""}]),[L,Se]=p.useState([]),[je,He]=p.useState([]),[Oe,g]=p.useState(null),[R,z]=p.useState(!1),[F,Te]=p.useState(""),[Ee,P]=p.useState(!1),[ye,ot]=p.useState("down");p.useRef(null);const[Le,Ue]=p.useState(!1),[fe,Ae]=p.useState(!1),[te,Ze]=p.useState([]),[ge,W]=p.useState(null),[B,X]=p.useState(""),[Z,Ve]=p.useState(!1),[me,Q]=p.useState({}),[K,We]=p.useState(null),[Ne,jt]=p.useState(!1),[_e,le]=p.useState(null),[Ie,Bt]=p.useState([]),[q,Qe]=p.useState(()=>typeof window>"u"?null:localStorage.getItem("vg_token")||sessionStorage.getItem("vg_token")),[ne,Sa]=p.useState(()=>{if(typeof window>"u")return null;const a=localStorage.getItem("vg_user")||sessionStorage.getItem("vg_user");return a&&a!=="undefined"?JSON.parse(a):null}),[Ot,ja]=p.useState(()=>typeof window>"u"?null:localStorage.getItem("vg_role")||sessionStorage.getItem("vg_role")),[qe,js]=p.useState(""),[Oa,Os]=p.useState(!1),[Wr,rr]=p.useState(!1),[Et,Es]=p.useState(!1),[Ht,Cs]=p.useState(!1),[Ut,nr]=p.useState(!1),[Yt,Vs]=p.useState(!0),ir=async a=>{if(a&&a.preventDefault(),!(!qe.trim()||!d)){Os(!0);try{const n=await fetch(`${d}/api/auth/me`,{headers:{Authorization:`Bearer ${qe.trim()}`,"x-api-key":c||""}});if(!n.ok){const k=await n.json().catch(()=>({}));throw new Error(k.error||k.message||"Invalid token")}const i=await n.json();console.log("[ViewGate] Auth data received:",i);const u=i.user||(i.email?i:null),y=i.role||u?.role||"dev";if(console.log("[ViewGate] Identified as:",u?.email,u?.name,"Role:",y),!u)throw new Error("User not found in token");Qe(qe.trim()),Sa(u),ja(y),localStorage.setItem("vg_token",qe.trim()),u&&localStorage.setItem("vg_user",JSON.stringify(u)),y&&localStorage.setItem("vg_role",y),o(s==="es"?"Sesión iniciada correctamente":r.successHeader,"success"),js(""),Cs(!1),Es(!1),rr(!1),Ea()}catch(n){let i=n.message||(s==="es"?"Clave inválida o expirada":"Invalid or expired key");i.toLowerCase().includes("invalid or expired token")&&(i=r.invalidToken),o(i,"error")}finally{Os(!1)}}},Ct=p.useCallback(()=>{console.log("[VIEWGATE_WRAPPER] Clearing session"),Qe(null),Sa(null),ja(null),Vs(!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 a=d;e(n=>typeof n=="string"&&a&&n.startsWith(a),void 0,{revalidate:!1}),Ze([]),le(null),j(!1),J(null),D(""),Ae(!1),o(s==="es"?"Sesión finalizada o inválida":"Session ended or invalid","error")},[d,s]);p.useEffect(()=>{const a=n=>{if(n.data?.type?.startsWith("VIEWGATE_")&&console.log("[VIEWGATE_WRAPPER] Received message:",n.data.type,n.data),n.data?.type==="VIEWGATE_AUTH_SUCCESS"||n.data?.type==="VIEWGATE_SILENT_AUTH"){const{token:i,user:u,role:y,error:k}=n.data;if(console.log("[VIEWGATE_WRAPPER] Auth process:",{type:n.data.type,hasToken:!!i,hasUser:!!u}),k==="NO_SESSION")return;const E=sessionStorage.getItem("vg_token");if(i&&i!==E||!i&&E){console.log("[VIEWGATE_WRAPPER] Session sync detected change, clearing caches");const O=d;e($=>typeof $=="string"&&O&&$.startsWith(O),void 0,{revalidate:!0}),Ze([])}i&&(Qe(i),sessionStorage.setItem("vg_token",i),localStorage.setItem("vg_token",i),u&&(Sa(u),ja(y||u.role||"dev"),sessionStorage.setItem("vg_user",JSON.stringify(u)),localStorage.setItem("vg_user",JSON.stringify(u))),n.data.type==="VIEWGATE_AUTH_SUCCESS"&&o(s==="es"?"Sesión iniciada correctamente":"Logged in successfully","success"))}if(n.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}Ct()}};return window.addEventListener("message",a),()=>window.removeEventListener("message",a)},[s,Ct,d]);const Ea=p.useCallback(()=>{if(!c||!d||Ht)return;const a={"x-api-key":c};q&&(a.Authorization=`Bearer ${q}`),fetch(`${d}/api/projects/settings-check`,{headers:a}).then(n=>{if(n.status===403)throw Ct(),new Error("Unauthorized");return n.json()}).then(n=>{n.projectId&&g(n.projectId),typeof n.isFigmaConnected=="boolean"&&z(n.isFigmaConnected),typeof n.hasEndpoints=="boolean"&&nr(n.hasEndpoints),Cs(!0)}).catch(n=>{n.message!=="Unauthorized"&&console.error("Failed to fetch project settings-check",n)})},[c,d,Ht]),Ca=p.useCallback(()=>{if(!c||!d||Et)return;const a={"x-api-key":c};q&&(a.Authorization=`Bearer ${q}`),fetch(`${d}/api/projects/endpoints`,{headers:a}).then(n=>{if(n.status===403)throw Ct(),new Error("Unauthorized");return n.json()}).then(n=>{n.endpoints&&Array.isArray(n.endpoints)?He(n.endpoints):Array.isArray(n)&&He(n),typeof n.isFigmaConnected=="boolean"&&z(n.isFigmaConnected),Es(!0)}).catch(n=>{n.message!=="Unauthorized"&&console.error("Failed to fetch project endpoints",n)})},[c,d,Et]);p.useEffect(()=>{(x||q)&&(Ht||Ea())},[x,q,Ht,Ea]),p.useEffect(()=>{Ee&&!Et&&Ca()},[Ee,Et,Ca]),p.useEffect(()=>{if(M.length===0)return;const a=["frontend"];Ut&&a.push("backend"),R&&a.push("ux");const n=M.filter(i=>a.includes(i));n.length!==M.length&&de(n)},[je.length,R,M]);const _s=p.useCallback(async a=>{const n={"x-api-key":c};q&&(n.Authorization=`Bearer ${q}`);const i=await fetch(a,{headers:n});if(!i.ok){i.status===403&&Ct();const u=await i.json().catch(()=>({}));let y=u.message||u.error||"Fetch failed";y.toLowerCase().includes("invalid or expired token")&&(y=r.invalidToken);const k=new Error(y);throw k.status=i.status,k}return Vs(!0),i.json()},[c,q]),cr=p.useMemo(()=>m?"backlog":"pending,todo,in_progress,review,ready_for_review,bug_fixing",[m]),{data:Xt,isLoading:Kt,error:Rs}=os(c?`${d}/api/projects/active-sprint`:null,_s,{revalidateOnFocus:!0,revalidateOnMount:!0,dedupingInterval:6e4}),{data:Vt,isLoading:$e,mutate:Jt}=os(c&&(Xt||m)?`${d}/api/annotations?status=${cr}`:null,_s,{refreshInterval:3e4,revalidateOnFocus:!0,dedupingInterval:5e3}),[et,Gs]=p.useState(null),[rt,Dr]=p.useState(null),Ts=p.useRef(te);Ts.current=te;const[ie,Zt]=p.useState(null),As=p.useRef(null),[nt,dr]=p.useState([]),Ns=p.useMemo(()=>{const a=(F||"").toLowerCase().trim();return a?je.filter(n=>{const i=n.path&&n.path.toLowerCase().includes(a),u=n.description&&n.description.toLowerCase().includes(a),y=n.method&&n.method.toLowerCase().includes(a);return i||u||y}):je},[je,F]),Is=p.useMemo(()=>{const a={},n=s==="es"?"Seleccionados":"Selected";return Ns.forEach(i=>{const u=`${i.method}|${i.path}`;L.includes(u)&&(a[n]||(a[n]={name:n,endpoints:[]}),a[n].endpoints.push(i));const k=(i.path||"").split("/").filter($=>$&&!["api","v1.0","v2","rest"].includes($.toLowerCase()));let E=k.length>0?k[0]:"General";E=E.replace(/([a-z])([A-Z])/g,"$1 $2"),E=E.replace(/([A-Z])([A-Z][a-z])/g,"$1 $2"),E=E.charAt(0).toUpperCase()+E.slice(1),a[E]||(a[E]={name:E,endpoints:[]});const O=a[E];O&&O.endpoints.push(i)}),Object.values(a).sort((i,u)=>i.name===n?-1:u.name===n||i.name==="General"?1:u.name==="General"?-1:i.name.localeCompare(u.name))},[Ns,L,s]),Va=p.useMemo(()=>{let a=Array.isArray(te)?te:[];if(K){const i=nt.find(u=>u.annotations&&Array.isArray(u.annotations)&&u.annotations.some(y=>y._id===K));i?a=i.annotations:a=a.filter(u=>u._id===K)}return a=a.filter(i=>i.status!=="completed"&&i.status!=="done"),window.location.href.includes("viewgate-backlog")||(ie==="pending"?a=a.filter(i=>i.status!=="ready_for_review"):ie==="ready"&&(a=a.filter(i=>i.status==="ready_for_review"))),v!=="all"&&(a=a.filter(i=>(i.priority||"medium")===v)),a},[K,te,nt,ie,v]);p.useEffect(()=>{K&&Va.length===0&&!$e&&We(null)},[K,Va.length,$e]);const[it,lr]=p.useState(()=>{if(typeof window>"u")return{bottom:30,right:30};const a=localStorage.getItem("vg-bar-pos");return a?JSON.parse(a):{bottom:30,right:30}}),[_t,zs]=p.useState(!1),De=p.useRef(null),pr=a=>{a.preventDefault(),a.stopPropagation();const n=a.currentTarget.parentElement?.getBoundingClientRect();n&&(zs(!0),De.current={x:a.clientX,y:a.clientY,bottom:it.bottom,right:it.right,width:n.width,height:n.height})};p.useEffect(()=>{if(!_t)return;const a=i=>{if(_t&&De.current){const u=i.clientX-De.current.x,y=i.clientY-De.current.y;let k=De.current.bottom-y,E=De.current.right-u;const O=10;k=Math.max(O,Math.min(window.innerHeight-De.current.height-O,k)),E=Math.max(O,Math.min(window.innerWidth-De.current.width-O,E)),lr({bottom:k,right:E})}},n=()=>{_t&&(zs(!1),localStorage.setItem("vg-bar-pos",JSON.stringify(it)),De.current=null)};return window.addEventListener("mousemove",a),window.addEventListener("mouseup",n),()=>{window.removeEventListener("mousemove",a),window.removeEventListener("mouseup",n)}},[_t,it]);const[ct,Qt]=p.useState(null),[Ps,Ms]=p.useState(""),[dt,_a]=p.useState([]),[tt,Rt]=p.useState([]),[Ye,qt]=p.useState([]),[$t,Ls]=p.useState(!1);p.useEffect(()=>{ct&&qt(L)},[L,ct]);const[Fr,Br]=p.useState({}),Ra=p.useRef(null),lt=p.useRef(null),Ga=p.useRef(null),ea=p.useRef(!1),Ws=p.useCallback(()=>{typeof window>"u"||ea.current||(lt.current&&cancelAnimationFrame(lt.current),lt.current=requestAnimationFrame(()=>{lt.current=null,ea.current=!0,Ga.current;const a=Ts.current,n=Array.isArray(a)?a:[],i=new Set(n.map(G=>G._id));document.querySelectorAll(`[${Ce}]`).forEach(G=>{const pe=G.getAttribute(Ce);pe&&!i.has(pe)&&G.removeAttribute(Ce)});const u=Array.from(document.querySelectorAll('[role="dialog"], [aria-modal="true"], [class*="modal" i], [class*="dialog" i], .fixed, .modal-backdrop, .fixed.inset-0')),y=u.find(G=>Dt(G)&&Me(G));let k=!!y;console.log("[ViewGate Debug] Modal Detection:",{potentialModals:u.length,activeModal:y,isAnyModalOpen:k});const E=new Map;n.forEach(G=>{if(!G||!G.reference)return;try{const be=()=>{const pt=window.location.pathname.toLowerCase().replace(/\/$/g,"").replace(/\/(?:[0-9]+|(?:[0-9a-f]{24}))(?=\/|$)/g,"/:id"),Xe=new URLSearchParams(window.location.search);Xe.delete("viewgate"),Xe.sort();const ut=Xe.toString();return ut?`${pt}?${ut}`:pt},we=pt=>{try{const Xe=new URL(pt),ut=Xe.pathname.toLowerCase().replace(/\/$/g,"").replace(/\/(?:[0-9]+|(?:[0-9a-f]{24}))(?=\/|$)/g,"/:id"),ft=new URLSearchParams(Xe.search);ft.delete("viewgate"),ft.sort();const Gt=ft.toString();return Gt?`${ut}?${Gt}`:ut}catch{return""}},ke=be(),ta=we(G.url);if(ke!==ta)return}catch{return}const pe=!!G.reference.metadata?.isModal;let ee=bs(G.reference,G._id);if(console.log(`[ViewGate Debug] Processing Pin [${G._id}]:`,{isModalTarget:pe,targetEl:ee,isVisible:ee?Me(ee):!1}),!ee||!Me(ee))return;let Re=!1;if(pe?(Re=!0,k=!0,console.log(`[ViewGate Debug] Pin [${G._id}] Modal Open Check: isModalTarget=true`)):(Re=!k,console.log(`[ViewGate Debug] Pin [${G._id}] No Modal Check: !isAnyModalOpen=${Re}`)),!Re)return;const he=ee.getAttribute(Ce);he!==G._id&&(document.querySelectorAll(`[${Ce}="${G._id}"]`).forEach(be=>{be.removeAttribute(Ce)}),he||ee.setAttribute(Ce,G._id));const xe=E;xe.has(ee)||xe.set(ee,{anns:[]}),xe.get(ee).anns.push(G)});const O=[];(G=>{G.forEach((pe,ee)=>{const{anns:Re}=pe,he=ee.getBoundingClientRect(),xe=he.left+he.width/2,be=he.top+he.height/2;if(xe>=0&&xe<=window.innerWidth&&be>=0&&be<=window.innerHeight){const we=document.elementFromPoint(xe,be),ke=document.getElementById("viewgate-shadow-host");if(we&&!ee.contains(we)&&we!==ke&&!ke?.contains(we))return}O.push({id:Re[0]._id,element:ee,rect:he,annotations:Re.sort((we,ke)=>new Date(ke.timestamp||ke.createdAt).getTime()-new Date(we.timestamp||we.createdAt).getTime()),isModal:!!Re[0].reference?.metadata?.isModal})})})(E),dr(O),ea.current=!1}))},[_e]);p.useEffect(()=>{if(Vt){const a=Array.isArray(Vt)?Vt:Vt?.data||[];if(Array.isArray(a)){const n=a.reduce((i,u)=>i.find(k=>k._id===u._id)?i:i.concat([u]),[]);Ze(n)}}else $e||Ze([])},[Vt,$e]),p.useEffect(()=>{le(Xt||null)},[Xt]),p.useEffect(()=>{fe&&te.length===0&&!$e&&Ae(!1)},[fe,te.length,$e]),p.useEffect(()=>{let a=null;const n=()=>{ea.current||Ws()},i=new MutationObserver(k=>{k.some(O=>O.type!=="attributes"||O.attributeName!==Ce&&!O.target.parentElement?.closest("#viewgate-shadow-host"))&&(a&&clearTimeout(a),a=setTimeout(()=>{n(),setTimeout(n,350)},32))});Ga.current=i;const u=new ResizeObserver(()=>n()),y=()=>n();return n(),i.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0}),u.observe(document.documentElement),window.addEventListener("scroll",y,{capture:!0,passive:!0}),()=>{a&&clearTimeout(a),i.disconnect(),u.disconnect(),window.removeEventListener("scroll",y,!0),lt.current&&cancelAnimationFrame(lt.current),Ga.current=null}},[x,te,Ws,fe,K,S]);const Ta=p.useCallback(a=>{let n=a;for(;n&&n!==document.body;){if(Dt(n))return n;n=n.parentElement}return null},[]);p.useEffect(()=>{const a=n=>{const i=n.target;i&&(Ta(i)||(As.current=i))};return window.addEventListener("mousedown",a,!0),()=>window.removeEventListener("mousedown",a,!0)},[Ta]),p.useEffect(()=>{Ra.current=document.getElementById("viewgate-shadow-host")},[]);const Aa=p.useCallback(a=>{if(!x||I)return;const n=ys(a.clientX,a.clientY);if(!n||Ra.current?.contains(n)||n.closest(".vg-no-capture")){Y(null);return}const i=n.getBoundingClientRect();Y({tag:n.tagName.toLowerCase(),source:n.getAttribute("data-source-path")||"unknown:0",rect:i,element:n,previewText:(n.innerText||"").slice(0,100)||(n.getAttribute("placeholder")||"").slice(0,100)||n.tagName.toLowerCase(),semanticReference:{...ks(n,As.current),normalizedOffset:{x:(a.clientX-i.left)/i.width,y:(a.clientY-i.top)/i.height}}})},[x,I]),Na=p.useCallback(async a=>{if(!x||I)return;const n=ys(a.clientX,a.clientY);if(!(!n||Ra.current?.contains(n)||n.closest(".vg-no-capture"))&&N){const i=N;let u=i.element;Ta(u);let y=i.semanticReference,k=i.tag;a.preventDefault(),a.stopPropagation(),Ue(!0);try{await new Promise(G=>requestAnimationFrame(G)),await new Promise(G=>setTimeout(G,150));const E=u.getBoundingClientRect(),O=await us(u,{scale:3,padding:48,backgroundColor:"#000000"}),$={...i,element:u,rect:E,semanticReference:y,tag:k,visualPreview:O};J($)}catch(E){console.error("[ViewGate] Capture failed:",E),J(i)}finally{Ue(!1),Y(null)}}},[x,N,I]);p.useEffect(()=>{const a=n=>{const u=(()=>{let E=document.activeElement;for(;E&&E.shadowRoot&&E.shadowRoot.activeElement;)E=E.shadowRoot.activeElement;return E})();if(["input","textarea"].includes((u?.tagName||"").toLowerCase())||u?.isContentEditable)return;const k=n.key.toLowerCase();if(!q){(k==="c"||k==="v")&&o(s==="es"?"Debes iniciar sesión en el Dashboard para usar ViewGate":"Log in to the Dashboard to use ViewGate","warning");return}if(n.key==="Escape"){I?J(null):fe?Ae(!1):x&&j(!1);return}if(k==="c"&&!n.ctrlKey&&!n.metaKey&&!I&&!fe){if(!Yt){o(s==="es"?"Acceso denegado a este proyecto":"No project access","error");return}if(Ot==="client"){o(s==="es"?"Acceso de solo lectura (Backlog)":"Read-only access (Backlog)","warning");return}if(Kt&&!x){if(Rs?.status===403||!Yt){const $=Rs?.message||(s==="es"?"Acceso denegado a este proyecto":"No project access");o($,"error");return}o(s==="es"?"Verificando información del sprint...":"Checking sprint info...","warning");return}if(!(_e&&_e.status!=="closed")&&!m&&!x){o(s==="es"?"No hay un sprint activo. No se pueden generar comentarios.":"No active sprint found. Cannot generate comments.","error");return}j(O=>!O)}if(k==="v"&&!I){if(!Yt){o(s==="es"?"Acceso denegado a este proyecto":"No project access","error");return}(te.length>0||fe)&&(Ae(E=>!E),fe||j(!1))}};return x&&!I?document.body.classList.add("vg-cursor-pointer"):document.body.classList.remove("vg-cursor-pointer"),window.addEventListener("keydown",a),window.addEventListener("mousemove",Aa,!0),window.addEventListener("click",Na,!0),()=>{document.body.classList.remove("vg-cursor-pointer"),window.removeEventListener("keydown",a),window.removeEventListener("mousemove",Aa,!0),window.removeEventListener("click",Na,!0)}},[x,I,fe,te,Aa,Na,q,Ot]);const ur=async()=>{if(!I||!ae.trim())return;if(M.includes("backend")&&L.length===0){o(s==="es"?"Selecciona al menos un endpoint de backend":"Select at least one backend endpoint","error");return}if(M.includes("ux")&&H.some(E=>!E.name.trim()||!E.link.trim())){o(s==="es"?"Todos los diseños de Figma deben tener nombre y link":"All Figma designs must have a name and link","error");return}if(!ne){o(s==="es"?"Selecciona un usuario para comentar":"Please select a user to comment","error");return}ce(!0);const{semanticReference:a}=I,[n,i]=(a.source||"").split(":"),y={filePath:n,line:parseInt(i||"0"),url:window.location.href,title:ae.length>50?ae.substring(0,50)+"...":ae,message:ae,status:m?"backlog":"pending",priority:V,type:I.visualPreview&&!m&&Xt?.status==="active"?"bug":"task",screenshot:I.visualPreview,componentName:a.componentPath||I.tag,reference:{...a,viewport:{width:window.innerWidth,height:window.innerHeight},timestamp:new Date().toISOString()},focusAreas:M,figmaReference:M.includes("ux")?H:void 0,backendEndpoints:M.includes("backend")?L:[]};ne&&(y.creator={name:ne.name,email:ne.email,avatar:ne.avatar});try{const k=await fetch(`${d}/api/annotations`,{method:"POST",headers:{"Content-Type":"application/json","x-api-key":c,Authorization:q?`Bearer ${q}`:""},body:JSON.stringify(y)});if(!k.ok){const E=await k.json().catch(()=>({}));throw new Error(E.message||E.error||"Backend failed")}o(r.success,"success"),J(null),D(""),de([]),re([{name:r.figmaPrimaryDesign,link:""}]),Se([]),j(!1),Jt()}catch(k){console.error(k);const E=k.message&&k.message!=="Backend failed"?k.message:r.error;o(E,"error")}finally{ce(!1)}},fr=async a=>{Ue(!0);try{const n=bs(a.reference,a._id);if(!n){o(s==="es"?"No se pudo encontrar el elemento original para la captura":"Could not find the original element for capture","error"),Ue(!1);return}n.scrollIntoView({behavior:"smooth",block:"center"}),await new Promise(k=>setTimeout(k,600));const i=n.style.outline,u=n.style.transition;n.style.transition="outline 0.3s ease",n.style.outline="4px solid #10b981",n.style.outlineOffset="4px",await new Promise(k=>setTimeout(k,400)),n.style.outline=i,n.style.transition=u,await new Promise(k=>requestAnimationFrame(k)),await new Promise(k=>setTimeout(k,50));const y=await us(n,{scale:3,padding:48,backgroundColor:"#000000"});if(y){const k=await fetch(`${d}/api/tickets/${a._id}`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:q?`Bearer ${q}`:""},body:JSON.stringify({status:"completed",resolvedScreenshot:y})});if(!k.ok){const E=await k.json().catch(()=>({}));throw new Error(E.message||E.error||"API failed")}o(s==="es"?"¡Ticket resuelto con éxito!":"Ticket resolved successfully!","success"),Jt()}n.style.outline=i,n.style.transition=u}catch(n){console.error("[ViewGate] Resolve with evidence failed:",n),o(s==="es"?`Error: ${n.message}`:`Error: ${n.message}`,"error")}finally{Ue(!1)}};return t.jsx("div",{"data-vg-id":"ef883ffc","data-source-path":"/src/components/ViewGateOverlay.tsx:2016",className:"vg-container",style:{userSelect:"none",WebkitUserSelect:"none"},children:t.jsxs("div",{"data-vg-id":"ef883ffd","data-source-path":"/src/components/ViewGateOverlay.tsx:2017",className:"vg-no-capture",style:{userSelect:"none",WebkitUserSelect:"none"},children:[t.jsxs("div",{style:{position:"fixed",bottom:`${it.bottom}px`,right:`${it.right}px`,zIndex:gs,display:"flex",alignItems:"center",gap:"8px",transition:_t?"none":"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)"},id:"viewgate-ui",children:[t.jsx("div",{onMouseDown:pr,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:x?0:1,visibility:x?"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:a=>{a.currentTarget.style.backgroundColor="white",a.currentTarget.style.color="#000000"},onMouseLeave:a=>{a.currentTarget.style.backgroundColor="rgba(255, 255, 255, 0.85)",a.currentTarget.style.color="#1e293b"},className:"vg-animate-slide-up",children:t.jsx(Ao,{"data-vg-id":"3dbe6a11","data-source-path":"/src/components/ViewGateOverlay.tsx:2064",size:16})}),t.jsxs("div",{"data-vg-id":"ef883fff","data-source-path":"/src/components/ViewGateOverlay.tsx:2067",className:"vg-action-bar vg-animate-slide-up",style:{transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)"},children:[q?Yt?t.jsxs(t.Fragment,{children:[Ot!=="client"&&t.jsx("button",{onClick:()=>{if(Kt&&!x){o(s==="es"?"Sincronizando con el servidor...":"Syncing with server...","warning");return}if(!_e&&!m&&!x){o(s==="es"?"No hay un sprint activo. No se pueden generar comentarios.":"No active sprint found. Cannot generate comments.","error");return}j(!x)},className:"vg-button-primary vg-animate-pop",style:{padding:"12px 24px",background:x?"#ef4444":!_e&&!m?"#94a3b8":void 0,cursor:!_e&&!m&&!x?"not-allowed":"pointer",opacity:!_e&&!m&&!x?.7:1},title:!_e&&!m&&!x?s==="es"?"Requiere sprint activo":"Requires active sprint":"",children:t.jsxs("div",{"data-vg-id":"ef884001","data-source-path":"/src/components/ViewGateOverlay.tsx:2106",style:{display:"flex",alignItems:"center",gap:"10px"},children:[Kt&&!x?t.jsx(Mt,{"data-vg-id":"edca6150","data-source-path":"/src/components/ViewGateOverlay.tsx:2108",size:20,className:"vg-animate-spin"}):x?t.jsx(yt,{"data-vg-id":"ff5f5cf","data-source-path":"/src/components/ViewGateOverlay.tsx:2110",size:20,className:"vg-animate-pop"}):t.jsx(Lt,{"data-vg-id":"10c621c4","data-source-path":"/src/components/ViewGateOverlay.tsx:2112",size:20,className:"vg-animate-pop"}),t.jsx("span",{"data-vg-id":"52d76c43","data-source-path":"/src/components/ViewGateOverlay.tsx:2114",children:Kt&&!x?s==="es"?"Cargando...":"Loading...":x?r.exitMode:r.enterMode})]})}),te.length>0&&t.jsxs("button",{onClick:()=>{Ae(!fe),j(!1),J(null)},className:"vg-button-ghost vg-animate-pop",style:{animationDelay:"0.1s"},children:[t.jsx(To,{"data-vg-id":"cd7341f9","data-source-path":"/src/components/ViewGateOverlay.tsx:2132",size:20}),t.jsx("span",{"data-vg-id":"52d76c45","data-source-path":"/src/components/ViewGateOverlay.tsx:2133",children:r.viewComments})]})]}):t.jsx("div",{"data-vg-id":"ef884000","data-source-path":"/src/components/ViewGateOverlay.tsx:2070",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"}):t.jsxs("button",{onClick:()=>{j(!0),J({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:[t.jsx(ds,{"data-vg-id":"422a5ea5","data-source-path":"/src/components/ViewGateOverlay.tsx:2153",size:18}),t.jsx("span",{"data-vg-id":"52d76c47","data-source-path":"/src/components/ViewGateOverlay.tsx:2154",style:{fontWeight:700},children:s==="es"?"Desbloquear con Clave":"Unlock with Key"})]}),t.jsx("button",{onClick:a=>{a.stopPropagation(),W({title:r.exitConfirmTitle||"Close ViewGate?",message:r.exitConfirmMessage||"Are you sure you want to close ViewGate?",type:"danger",onConfirm:()=>f()})},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:a=>{a.currentTarget.style.color="#ef4444",a.currentTarget.style.backgroundColor="white",a.currentTarget.style.borderColor="rgba(239, 68, 68, 0.2)",a.currentTarget.style.transform="scale(1.05)"},onMouseLeave:a=>{a.currentTarget.style.color="#64748b",a.currentTarget.style.backgroundColor="rgba(255, 255, 255, 0.8)",a.currentTarget.style.borderColor="rgba(0,0,0,0.05)",a.currentTarget.style.transform="scale(1)"},title:r.close||"Cerrar ViewGate",children:t.jsx(yt,{"data-vg-id":"ff5f5d6","data-source-path":"/src/components/ViewGateOverlay.tsx:2198",size:20,strokeWidth:2.5})})]})]}),Le&&t.jsx("div",{"data-vg-id":"17fbf7e","data-source-path":"/src/components/ViewGateOverlay.tsx:2207",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:gs+1,cursor:"wait"},children:t.jsxs("div",{"data-vg-id":"17fbf7f","data-source-path":"/src/components/ViewGateOverlay.tsx:2213",className:"vg-glassmorphism",style:{padding:"30px 50px",display:"flex",flexDirection:"column",alignItems:"center",gap:"16px"},children:[t.jsx("div",{"data-vg-id":"17fbf95","data-source-path":"/src/components/ViewGateOverlay.tsx:2214",className:"vg-spinner"}),t.jsx("span",{"data-vg-id":"52d76c61","data-source-path":"/src/components/ViewGateOverlay.tsx:2215",style:{fontWeight:600,fontSize:"14px",color:"#000000"},children:"Capturando..."})]})}),x&&!I&&t.jsx("div",{className:"vg-backdrop-blur",style:{opacity:1,clipPath:N?`polygon(
|
|
13
8
|
0% 0%, 0% 100%, 100% 100%, 100% 0%, 0% 0%,
|
|
14
|
-
${
|
|
15
|
-
${
|
|
16
|
-
${
|
|
17
|
-
${
|
|
18
|
-
${
|
|
19
|
-
)`:"none",zIndex:Hp}}),u&&I&&!K&&!He&&i.jsx("div",{className:"vg-selection-pulse",style:{top:I.rect.top-4,left:I.rect.left-4,width:I.rect.width+8,height:I.rect.height+8,zIndex:Sp},children:i.jsxs("div",{className:"vg-selection-label",style:{...I.rect.top<60?I.rect.bottom>window.innerHeight-60?{top:"8px",bottom:"auto"}:{top:"100%",marginTop:"8px",bottom:"auto"}:{top:"-40px",bottom:"auto"},...I.rect.left+200>window.innerWidth?{left:"auto",right:"0"}:{left:"0",right:"auto"}},children:[i.jsx(Il,{"data-vg-id":"f840c8ce","data-source-path":"/src/components/ViewGateOverlay.tsx:2548",size:16}),i.jsxs("div",{"data-vg-id":"17fbf98","data-source-path":"/src/components/ViewGateOverlay.tsx:2549",style:{display:"flex",flexDirection:"column"},children:[i.jsx("span",{"data-vg-id":"52d76c64","data-source-path":"/src/components/ViewGateOverlay.tsx:2550",style:{fontWeight:700},children:r.selectToComment}),i.jsxs("span",{"data-vg-id":"52d76c65","data-source-path":"/src/components/ViewGateOverlay.tsx:2551",style:{fontSize:"10px",opacity:.8,fontFamily:"monospace"},children:[Math.round(I.rect.width)," × ",Math.round(I.rect.height)]})]})]})}),!hA&&(u||WA||K)&&i.jsx("div",{"data-vg-id":"17fbf9b","data-source-path":"/src/components/ViewGateOverlay.tsx:2561",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:st},children:i.jsxs("div",{"data-vg-id":"17fbf9c","data-source-path":"/src/components/ViewGateOverlay.tsx:2566",className:"vg-glassmorphism vg-animate-slide",style:{width:"90%",maxWidth:"440px",boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.4)",display:"flex",flexDirection:"column",overflow:"hidden",padding:"48px 32px"},children:[i.jsxs("div",{"data-vg-id":"17fbf9d","data-source-path":"/src/components/ViewGateOverlay.tsx:2575",style:{textAlign:"center",marginBottom:"32px"},children:[i.jsx("div",{"data-vg-id":"17fbf9e","data-source-path":"/src/components/ViewGateOverlay.tsx:2576",style:{width:"64px",height:"64px",background:"var(--vg-primary-gradient)",borderRadius:"20px",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 24px",color:"white",boxShadow:"0 8px 20px -4px var(--vg-primary)",animation:"pulse 2s infinite"},children:i.jsx(Yo,{"data-vg-id":"422a5ede","data-source-path":"/src/components/ViewGateOverlay.tsx:2582",size:32})}),i.jsx("h2",{"data-vg-id":"efa6bb80","data-source-path":"/src/components/ViewGateOverlay.tsx:2584",style:{margin:"0 0 12px 0",fontSize:"24px",fontWeight:800,color:"#0f172a",letterSpacing:"-0.025em"},children:e==="es"?"ViewGate Protegido":"ViewGate Protected"}),i.jsx("p",{"data-vg-id":"1000def7","data-source-path":"/src/components/ViewGateOverlay.tsx:2587",style:{margin:0,color:"#64748b",fontSize:"15px",lineHeight:1.6},children:e==="es"?"Ingresa tu Clave de Acceso Semanal para continuar.":"Enter your project Weekly Access Key to continue."})]}),i.jsxs("form",{"data-vg-id":"a260acc8","data-source-path":"/src/components/ViewGateOverlay.tsx:2594",onSubmit:Pp,style:{width:"100%"},children:[i.jsx("div",{"data-vg-id":"17fbfb8","data-source-path":"/src/components/ViewGateOverlay.tsx:2595",style:{position:"relative",marginBottom:"24px"},children:i.jsx("input",{autoFocus:!0,type:"password",value:at,onChange:l=>Cc(l.target.value),placeholder:e==="es"?"Pega tu clave aquí...":"Paste your key here...",style:{width:"100%",padding:"16px",borderRadius:"12px",border:"2px solid #e2e8f0",fontSize:"15px",outline:"none",transition:"all 0.2s",backgroundColor:"rgba(255, 255, 255, 0.8)",color:"#1e293b"},onFocus:l=>{l.target.style.borderColor="var(--vg-primary)",l.target.style.boxShadow="0 0 0 4px rgba(99, 102, 241, 0.1)"},onBlur:l=>{l.target.style.borderColor="#e2e8f0",l.target.style.boxShadow="none"}})}),i.jsxs("button",{type:"submit",disabled:Bo||!at.trim(),className:"vg-button-primary",style:{width:"100%",padding:"16px",display:"flex",alignItems:"center",justifyContent:"center",gap:"12px",fontSize:"16px",fontWeight:700,opacity:Bo||!at.trim()?.7:1,boxShadow:"0 10px 15px -3px rgba(99, 102, 241, 0.3)"},children:[Bo?i.jsx(br,{"data-vg-id":"cb81c82b","data-source-path":"/src/components/ViewGateOverlay.tsx:2642",size:20,className:"vg-animate-spin"}):i.jsx(vl,{"data-vg-id":"d69f974c","data-source-path":"/src/components/ViewGateOverlay.tsx:2644",size:20}),e==="es"?"Desbloquear":"Unlock Now"]})]}),i.jsx("div",{"data-vg-id":"17fbfbb","data-source-path":"/src/components/ViewGateOverlay.tsx:2650",style:{margin:"32px 0 24px",height:"1px",background:"linear-gradient(to right, transparent, #e2e8f0, transparent)"}}),i.jsx("button",{onClick:()=>{N(null),f(!1),Ce(!1)},className:"vg-button-ghost",style:{width:"100%",padding:"12px",fontSize:"14px",color:"#94a3b8"},children:e==="es"?"Cerrar ViewGate":"Close ViewGate"}),i.jsx("div",{"data-vg-id":"17fbfbc","data-source-path":"/src/components/ViewGateOverlay.tsx:2664",style:{marginTop:"24px",textAlign:"center"},children:i.jsx("p",{"data-vg-id":"1000defe","data-source-path":"/src/components/ViewGateOverlay.tsx:2665",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"})})]})}),K&&kA&&i.jsx("div",{"data-vg-id":"17fbfd3","data-source-path":"/src/components/ViewGateOverlay.tsx:2678",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:st},children:i.jsxs("div",{"data-vg-id":"17fbfd4","data-source-path":"/src/components/ViewGateOverlay.tsx:2683",className:"vg-glassmorphism vg-animate-slide",style:{width:"90%",maxWidth:"700px",maxHeight:"92vh",boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.25)",display:"flex",flexDirection:"column",overflow:"hidden"},children:[i.jsxs("div",{"data-vg-id":"17fbfd5","data-source-path":"/src/components/ViewGateOverlay.tsx:2693",style:{padding:"24px 24px 16px",textAlign:"center",borderBottom:"1px solid rgba(0,0,0,0.05)",flexShrink:0,position:"relative"},children:[kA&&i.jsxs("div",{"data-vg-id":"17fbfd6","data-source-path":"/src/components/ViewGateOverlay.tsx:2695",className:"vg-profile-info-card",style:{position:"absolute",top:"20px",right:"20px",display:"flex",alignItems:"center",gap:"8px",padding:"4px 8px",borderRadius:"20px",background:"white",border:"1px solid #e2e8f0",boxShadow:"0 2px 6px rgba(0,0,0,0.05)",zIndex:10},children:[i.jsx("span",{"data-vg-id":"52d76ca2","data-source-path":"/src/components/ViewGateOverlay.tsx:2712",style:{fontSize:"10px",fontWeight:800,color:"#64748b",textTransform:"uppercase"},children:kA.name.split(" ")[0]}),kA.avatar?i.jsx("img",{"data-vg-id":"a398766","data-source-path":"/src/components/ViewGateOverlay.tsx:2716",src:kA.avatar,style:{width:"24px",height:"24px",borderRadius:"50%"},alt:""}):i.jsx("div",{"data-vg-id":"17fbfd9","data-source-path":"/src/components/ViewGateOverlay.tsx:2718",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]})]}),i.jsx("div",{"data-vg-id":"17fbfda","data-source-path":"/src/components/ViewGateOverlay.tsx:2724",style:{width:"40px",height:"40px",background:"var(--vg-primary-gradient)",borderRadius:"10px",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 12px",color:"white",boxShadow:"0 4px 12px rgba(99, 102, 241, 0.2)"},children:i.jsx(vr,{"data-vg-id":"10c62228","data-source-path":"/src/components/ViewGateOverlay.tsx:2729",size:20})}),i.jsx("h2",{"data-vg-id":"efa6bba7","data-source-path":"/src/components/ViewGateOverlay.tsx:2731",style:{margin:"0 0 4px 0",fontSize:"20px",fontWeight:800,color:"#0f172a"},children:r.feedbackHeader}),i.jsx("p",{"data-vg-id":"1000df33","data-source-path":"/src/components/ViewGateOverlay.tsx:2732",style:{margin:0,color:"#64748b",fontSize:"14px"},children:r.feedbackSubheader})]}),i.jsxs("div",{"data-vg-id":"17fbff3","data-source-path":"/src/components/ViewGateOverlay.tsx:2736",className:"vg-custom-scrollbar",style:{flex:1,overflowY:"auto",padding:"24px",display:"flex",flexDirection:"column"},children:[K.visualPreview&&i.jsx("div",{"data-vg-id":"17fbff4","data-source-path":"/src/components/ViewGateOverlay.tsx:2745",style:{marginBottom:"24px",borderRadius:"12px",width:"100%",display:"flex",justifyContent:"center",margin:"0 auto 24px auto",boxShadow:"0 4px 25px rgba(0,0,0,0.12)",backgroundColor:"#f8fafc",border:"1px solid #e2e8f0",padding:"8px"},children:i.jsx("img",{src:K.visualPreview,alt:"Preview",style:{maxWidth:"100%",maxHeight:"45vh",objectFit:"contain",display:"block",borderRadius:"8px"}})}),i.jsx("textarea",{className:"vg-textarea",value:W,onChange:l=>R(l.target.value),rows:4,placeholder:r.placeholder,autoFocus:!0,style:{fontSize:"15px",padding:"16px",marginBottom:"24px",minHeight:"120px"}}),i.jsxs("div",{"data-vg-id":"17fbff5","data-source-path":"/src/components/ViewGateOverlay.tsx:2782",style:{marginBottom:"24px"},children:[i.jsx("label",{"data-vg-id":"18bd4b33","data-source-path":"/src/components/ViewGateOverlay.tsx:2783",style:{fontSize:"12px",fontWeight:700,color:"#64748b",marginBottom:"8px",display:"block"},children:r.priority}),i.jsx("div",{"data-vg-id":"17fbff7","data-source-path":"/src/components/ViewGateOverlay.tsx:2786",style:{display:"flex",gap:"8px"},children:["low","medium","high","urgent"].map(l=>i.jsx("button",{onClick:()=>C(l),style:{flex:1,padding:"12px 6px",borderRadius:"8px",fontSize:"13px",fontWeight:700,border:"1px solid",borderColor:w===l?l==="low"?"#10b981":l==="medium"?"#6366f1":l==="high"?"#f59e0b":"#ef4444":"#e2e8f0",backgroundColor:w===l?l==="low"?"#ecfdf5":l==="medium"?"#eef2ff":l==="high"?"#fffbeb":"#fef2f2":"white",color:w===l?l==="low"?"#059669":l==="medium"?"#4338ca":l==="high"?"#b45309":"#b91c1c":"#64748b",cursor:"pointer",transition:"all 0.2s",textTransform:"uppercase"},children:r[l]},l))})]}),i.jsxs("div",{"data-vg-id":"17fbff8","data-source-path":"/src/components/ViewGateOverlay.tsx:2813",style:{marginBottom:"24px"},children:[i.jsx("label",{"data-vg-id":"18bd4b36","data-source-path":"/src/components/ViewGateOverlay.tsx:2814",style:{fontSize:"12px",fontWeight:700,color:"#64748b",marginBottom:"8px",display:"block"},children:r.focusAreas}),i.jsx("div",{"data-vg-id":"17fbffa","data-source-path":"/src/components/ViewGateOverlay.tsx:2817",style:{display:"flex",gap:"8px",marginBottom:_.length>0?"12px":"0"},children:[{id:"frontend",label:r.frontend,icon:i.jsx(yr,{"data-vg-id":"377c172e","data-source-path":"/src/components/ViewGateOverlay.tsx:2819",size:14}),color:"#10b981",bg:"#ecfdf5",border:"#d1fae5"},{id:"backend",label:r.backend,icon:i.jsx(Ke,{"data-vg-id":"7117e5d5","data-source-path":"/src/components/ViewGateOverlay.tsx:2820",size:14}),color:"#6366f1",bg:"#eef2ff",border:"#e0e7ff"},{id:"ux",label:r.ux,icon:i.jsx(Rt,{"data-vg-id":"de42479a","data-source-path":"/src/components/ViewGateOverlay.tsx:2821",size:14}),color:"#d946ef",bg:"#fdf4ff",border:"#f5d0fe"}].filter(l=>l.id==="backend"?Hs:l.id==="ux"?k:!0).map(l=>{const h=_.includes(l.id);return i.jsxs("button",{onClick:()=>{h?yA(_.filter(p=>p!==l.id)):(yA([..._,l.id]),l.id==="backend"&&uo())},style:{flex:1,padding:"10px 4px",borderRadius:"8px",fontSize:"12px",fontWeight:700,border:"1px solid",borderColor:h?l.color:"#e2e8f0",backgroundColor:h?l.bg:"white",color:h?l.color:"#64748b",cursor:"pointer",transition:"all 0.2s",display:"flex",alignItems:"center",justifyContent:"center",gap:"6px"},children:[l.icon,l.label]},l.id)})}),_.includes("ux")&&i.jsxs("div",{"data-vg-id":"17fc013","data-source-path":"/src/components/ViewGateOverlay.tsx:2868",className:"vg-animate-slide",style:{marginBottom:"16px"},children:[i.jsxs("div",{"data-vg-id":"17fc014","data-source-path":"/src/components/ViewGateOverlay.tsx:2869",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px"},children:[i.jsxs("div",{"data-vg-id":"17fc015","data-source-path":"/src/components/ViewGateOverlay.tsx:2870",style:{display:"flex",alignItems:"center",gap:"6px"},children:[i.jsx(Er,{"data-vg-id":"38884e11","data-source-path":"/src/components/ViewGateOverlay.tsx:2871",size:14,style:{color:"#d946ef"}}),i.jsx("span",{"data-vg-id":"52d76ce2","data-source-path":"/src/components/ViewGateOverlay.tsx:2872",style:{fontSize:"11px",fontWeight:800,color:"#64748b",textTransform:"uppercase",letterSpacing:"0.05em"},children:r.figmaLink})]}),i.jsxs("button",{"data-vg-id":"23e21f7b","data-source-path":"/src/components/ViewGateOverlay.tsx:2876",onClick:()=>IA([...AA,{name:"",link:""}]),style:{background:"rgba(217, 70, 239, 0.1)",border:"1px solid rgba(217, 70, 239, 0.2)",color:"#d946ef",borderRadius:"6px",padding:"4px 8px",fontSize:"10px",fontWeight:800,display:"flex",alignItems:"center",gap:"4px",cursor:"pointer",transition:"all 0.2s"},onMouseEnter:l=>l.currentTarget.style.background="rgba(217, 70, 239, 0.15)",onMouseLeave:l=>l.currentTarget.style.background="rgba(217, 70, 239, 0.1)",children:[i.jsx(Hl,{"data-vg-id":"11a60c74","data-source-path":"/src/components/ViewGateOverlay.tsx:2895",size:10})," ",r.addLink]})]}),i.jsx("div",{"data-vg-id":"17fc01a","data-source-path":"/src/components/ViewGateOverlay.tsx:2899",style:{display:"flex",flexDirection:"column",gap:"8px"},children:AA.map((l,h)=>i.jsxs("div",{"data-vg-id":"17fc030","data-source-path":"/src/components/ViewGateOverlay.tsx:2901",style:{display:"flex",gap:"6px",alignItems:"flex-start"},className:"vg-animate-slide",children:[i.jsxs("div",{"data-vg-id":"17fc031","data-source-path":"/src/components/ViewGateOverlay.tsx:2902",style:{flex:1,display:"flex",flexDirection:"column",gap:"4px"},children:[i.jsx("input",{"data-vg-id":"a993bad9","data-source-path":"/src/components/ViewGateOverlay.tsx:2903",type:"text",className:"vg-textarea",style:{padding:"8px 10px",fontSize:"11px",minHeight:"auto",borderRadius:"8px",border:"1px solid rgba(0,0,0,0.05)"},placeholder:r.figmaNamePlaceholder,value:l.name,onChange:p=>{const x=[...AA];x[h]&&(x[h].name=p.target.value,IA(x))}}),i.jsx("input",{"data-vg-id":"a993bada","data-source-path":"/src/components/ViewGateOverlay.tsx:2917",type:"text",className:"vg-textarea",style:{padding:"8px 10px",fontSize:"11px",minHeight:"auto",borderRadius:"8px",border:"1px solid rgba(0,0,0,0.05)"},placeholder:r.figmaLinkPlaceholder,value:l.link,onChange:p=>{const x=[...AA];x[h]&&(x[h].link=p.target.value,IA(x))}})]}),AA.length>1&&i.jsx("button",{"data-vg-id":"23e21f97","data-source-path":"/src/components/ViewGateOverlay.tsx:2933",onClick:()=>IA(AA.filter((p,x)=>x!==h)),style:{background:"rgba(239, 68, 68, 0.05)",border:"1px solid rgba(239, 68, 68, 0.1)",color:"#ef4444",borderRadius:"8px",padding:"10px",cursor:"pointer",transition:"all 0.2s",display:"flex",alignItems:"center",justifyContent:"center"},onMouseEnter:p=>p.currentTarget.style.background="rgba(239, 68, 68, 0.1)",onMouseLeave:p=>p.currentTarget.style.background="rgba(239, 68, 68, 0.05)",children:i.jsx(Ir,{"data-vg-id":"e1375db0","data-source-path":"/src/components/ViewGateOverlay.tsx:2950",size:14})})]},h))})]}),se.length>0&&_.includes("backend")&&i.jsxs("div",{"data-vg-id":"17fc036","data-source-path":"/src/components/ViewGateOverlay.tsx:2962",className:"vg-animate-slide",style:{marginBottom:"16px"},children:[i.jsxs("div",{"data-vg-id":"17fc037","data-source-path":"/src/components/ViewGateOverlay.tsx:2963",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px"},children:[i.jsxs("div",{"data-vg-id":"17fc038","data-source-path":"/src/components/ViewGateOverlay.tsx:2964",style:{display:"flex",alignItems:"center",gap:"6px"},children:[i.jsx(Ke,{"data-vg-id":"7117e5fd","data-source-path":"/src/components/ViewGateOverlay.tsx:2965",size:14,style:{color:"#6366f1"}}),i.jsx("span",{"data-vg-id":"52d76d1a","data-source-path":"/src/components/ViewGateOverlay.tsx:2966",style:{fontSize:"11px",fontWeight:700,color:"#64748b"},children:r.endpoint})]}),J.length>0&&i.jsxs("span",{"data-vg-id":"52d76d1b","data-source-path":"/src/components/ViewGateOverlay.tsx:2969",style:{fontSize:"10px",background:"#eef2ff",color:"#6366f1",padding:"2px 8px",borderRadius:"12px",fontWeight:700},children:[J.length," ",e==="es"?"seleccionados":"selected"]})]}),i.jsxs("button",{"data-vg-id":"23e21fb4","data-source-path":"/src/components/ViewGateOverlay.tsx:2975",onClick:()=>z(!0),className:"vg-input-like-button",style:{width:"100%",padding:"12px 16px",fontSize:"13px",borderRadius:"12px",background:"#f8fafc",border:"1px solid #e2e8f0",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",transition:"all 0.2s",textAlign:"left",color:J.length>0?"#0f172a":"#94a3b8"},children:[i.jsx("div",{"data-vg-id":"17fc052","data-source-path":"/src/components/ViewGateOverlay.tsx:2994",style:{display:"flex",gap:"4px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:J.length>0?J.slice(0,2).map(l=>{const h=l.split("|"),p=h.length>1?h[0]:"",x=h.length>1?h[1]:l;return i.jsxs("span",{"data-vg-id":"52d76d1e","data-source-path":"/src/components/ViewGateOverlay.tsx:3001",style:{background:"rgba(99, 102, 241, 0.1)",color:"#6366f1",padding:"1px 6px",borderRadius:"4px",fontSize:"11px",fontWeight:600},children:[p&&i.jsx("span",{"data-vg-id":"52d76d1f","data-source-path":"/src/components/ViewGateOverlay.tsx:3009",style:{opacity:.6,marginRight:"4px"},children:p}),(x||"").split("/").pop()||x]},l)}).concat(J.length>2?[i.jsxs("span",{"data-vg-id":"52d76d20","data-source-path":"/src/components/ViewGateOverlay.tsx:3013",children:["+",J.length-2]},"more")]:[]):r.selectEndpoint}),i.jsx(zo,{"data-vg-id":"c71f9a0a","data-source-path":"/src/components/ViewGateOverlay.tsx:3016",size:14,style:{color:"#64748b"}})]})]})]})]}),i.jsxs("div",{"data-vg-id":"17fc057","data-source-path":"/src/components/ViewGateOverlay.tsx:3025",style:{padding:"16px 24px 24px",borderTop:"1px solid rgba(0,0,0,0.05)",display:"flex",gap:"12px",flexShrink:0,backgroundColor:"rgba(255,255,255,0.02)",backdropFilter:"blur(2px)"},children:[i.jsx("button",{onClick:()=>{lA||(N(null),f(!1))},className:"vg-button-ghost",disabled:lA,style:{flex:1,padding:"12px"},children:r.cancel}),i.jsx("button",{onClick:Jp,className:"vg-button-primary",disabled:lA||!W.trim()||_.includes("backend")&&J.length===0||_.includes("ux")&&AA.some(l=>!l.name.trim()||!l.link.trim()),style:{flex:2,opacity:lA||!W.trim()||_.includes("backend")&&J.length===0||_.includes("ux")&&AA.some(l=>!l.name.trim()||!l.link.trim())?.6:1,cursor:lA||!W.trim()||_.includes("backend")&&J.length===0||_.includes("ux")&&AA.some(l=>!l.name.trim()||!l.link.trim())?"not-allowed":"pointer"},children:i.jsxs("div",{"data-vg-id":"17fc058","data-source-path":"/src/components/ViewGateOverlay.tsx:3062",style:{display:"flex",alignItems:"center",gap:"8px"},children:[lA?i.jsx("div",{"data-vg-id":"17fc06e","data-source-path":"/src/components/ViewGateOverlay.tsx:3063",className:"vg-spinner",style:{width:"16px",height:"16px",borderWidth:"2px"}}):i.jsx(Ll,{"data-vg-id":"a3fd5c1c","data-source-path":"/src/components/ViewGateOverlay.tsx:3063",size:18}),i.jsx("span",{"data-vg-id":"52d76d3b","data-source-path":"/src/components/ViewGateOverlay.tsx:3064",children:lA?r.submitting:r.sendFeedback||"Send Comment"})]})})]})]})}),WA&&i.jsx("div",{"data-vg-id":"17fc071","data-source-path":"/src/components/ViewGateOverlay.tsx:3075",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:st},children:i.jsxs("div",{"data-vg-id":"17fc072","data-source-path":"/src/components/ViewGateOverlay.tsx:3081",className:"vg-glassmorphism vg-animate-slide",style:{padding:"32px",width:"820px",maxHeight:"85vh",display:"flex",flexDirection:"column",transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)"},children:[i.jsxs("div",{"data-vg-id":"17fc073","data-source-path":"/src/components/ViewGateOverlay.tsx:3086",style:{display:"flex",flexDirection:"column",gap:"16px",marginBottom:"24px"},children:[i.jsxs("div",{"data-vg-id":"17fc074","data-source-path":"/src/components/ViewGateOverlay.tsx:3087",style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[i.jsx("h2",{"data-vg-id":"efa6bc40","data-source-path":"/src/components/ViewGateOverlay.tsx:3088",style:{margin:0,fontSize:"20px",fontWeight:800,color:"#0f172a",whiteSpace:"nowrap"},children:BA?r.commentDetails:r.annotations}),i.jsxs("div",{"data-vg-id":"17fc076","data-source-path":"/src/components/ViewGateOverlay.tsx:3091",style:{display:"flex",alignItems:"center",gap:"12px"},children:[kA?i.jsxs("div",{"data-vg-id":"17fc077","data-source-path":"/src/components/ViewGateOverlay.tsx:3093",style:{display:"flex",alignItems:"center",gap:"8px",padding:"4px 12px",background:"rgba(99, 102, 241, 0.1)",borderRadius:"20px"},children:[kA.avatar?i.jsx("img",{"data-vg-id":"3cf759ac","data-source-path":"/src/components/ViewGateOverlay.tsx:3095",src:kA.avatar,style:{width:"20px",height:"20px",borderRadius:"50%"},alt:""}):i.jsx("div",{"data-vg-id":"2e782f7b","data-source-path":"/src/components/ViewGateOverlay.tsx:3097",style:{width:"20px",height:"20px",borderRadius:"50%",background:"#6366f1",color:"white",fontSize:"10px",display:"flex",alignItems:"center",justifyContent:"center"},children:kA.name?.[0]}),i.jsx("span",{"data-vg-id":"8161c11","data-source-path":"/src/components/ViewGateOverlay.tsx:3101",style:{fontSize:"12px",fontWeight:600,color:"#4338ca"},children:kA.name})]}):i.jsx("div",{"data-vg-id":"2e782f7d","data-source-path":"/src/components/ViewGateOverlay.tsx:3108",style:{fontSize:"12px",color:"#64748b",fontWeight:600},children:e==="es"?"Sin usuario":"No user selected"}),i.jsx("button",{className:"vg-button-ghost",style:{padding:"8px",borderRadius:"50%"},onClick:()=>{Ce(!1),Se(null),Ks(null),T("all")},children:i.jsx(kt,{"data-vg-id":"eec8c445","data-source-path":"/src/components/ViewGateOverlay.tsx:3117",size:20})})]})]}),i.jsx("div",{"data-vg-id":"2e782f7f","data-source-path":"/src/components/ViewGateOverlay.tsx:3121",style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center",width:"100%"},children:(()=>{const l=Array.isArray(HA)?HA:[],h=BA?vt.find(L=>L.annotations?.some(nA=>nA._id===BA)):null,x=(h?h.annotations:l).filter(L=>L.status!=="completed"&&L.status!=="done"),b=x.filter(L=>L.status!=="ready_for_review").length,D=x.filter(L=>L.status==="ready_for_review").length,O=x.length;return O<=0?O===0?null:i.jsxs("div",{"data-vg-id":"2e782f80","data-source-path":"/src/components/ViewGateOverlay.tsx:3135",style:{display:"flex",gap:"8px",opacity:.9},children:[b>0&&i.jsxs("div",{"data-vg-id":"2e782f81","data-source-path":"/src/components/ViewGateOverlay.tsx:3137",className:"vg-badge",style:{background:"#fff7ed",color:"#c2410c",border:"1px solid #ffedd5",fontSize:"11px",padding:"2px 8px"},children:[b," ",b===1?"pendiente":"pendientes"]}),D>0&&i.jsxs("div",{"data-vg-id":"2e782f82","data-source-path":"/src/components/ViewGateOverlay.tsx:3142",className:"vg-badge",style:{background:"#f3e8ff",color:"#a855f7",border:"1px solid #e9d5ff",fontSize:"11px",padding:"2px 8px"},children:[D," ",e==="es"?D===1?"Listo para revisión":"Listos para revisión":"ready for review"]})]}):i.jsxs(i.Fragment,{children:[!B&&i.jsxs("div",{"data-vg-id":"2e782f83","data-source-path":"/src/components/ViewGateOverlay.tsx:3153",className:"vg-segmented-control",style:{marginBottom:"4px"},children:[i.jsx("div",{className:"vg-segmented-slider",style:{left:GA===null?"4px":GA==="pending"?"calc(4px + (100% - 8px) / 3)":"calc(4px + 2 * (100% - 8px) / 3)",width:"calc((100% - 8px) / 3)",background:GA===null?"var(--vg-primary)":GA==="pending"?"#ea580c":"#a855f7",boxShadow:GA===null?"0 4px 12px rgba(99, 102, 241, 0.3)":GA==="pending"?"0 4px 12px rgba(234, 88, 12, 0.3)":"0 4px 12px rgba(168, 85, 247, 0.3)"}}),i.jsxs("div",{onClick:()=>Ks(null),className:`vg-segmented-item ${GA===null?"active":""}`,children:[r.viewAll||"Todos"," (",O,")"]}),i.jsxs("div",{onClick:()=>Ks("pending"),className:`vg-segmented-item ${GA==="pending"?"active":""}`,children:[e==="es"?b===1?"Pendiente":"Pendientes":"Pending"," (",b,")"]}),i.jsxs("div",{onClick:()=>Ks("ready"),className:`vg-segmented-item ${GA==="ready"?"active":""}`,children:[e==="es"?"Listo para revisión":"Ready for Review"," (",D,")"]})]}),i.jsxs("div",{"data-vg-id":"2e782f99","data-source-path":"/src/components/ViewGateOverlay.tsx:3184",style:{display:"flex",gap:"6px",justifyContent:"center",flexWrap:"wrap",marginTop:B?"0":"4px"},children:[i.jsxs("button",{onClick:()=>T("all"),style:{padding:"8px 16px",borderRadius:"20px",fontSize:"12px",fontWeight:700,border:"1px solid",borderColor:m==="all"?"var(--vg-primary)":"#e2e8f0",backgroundColor:m==="all"?"var(--vg-primary)":"transparent",color:m==="all"?"white":"#64748b",cursor:"pointer",transition:"all 0.2s"},children:[r.viewAll||"Todos"," (",x.filter(L=>B?!0:GA==="pending"?L.status!=="ready_for_review":GA==="ready"?L.status==="ready_for_review":!0).length,")"]}),["low","medium","high","urgent"].map(L=>{const nA=x.filter(V=>B?!0:GA==="pending"?V.status!=="ready_for_review":GA==="ready"?V.status==="ready_for_review":!0).filter(V=>(V.priority||"medium")===L).length;return nA===0&&m!==L?null:i.jsxs("button",{onClick:()=>T(L),style:{padding:"8px 16px",borderRadius:"20px",fontSize:"12px",fontWeight:700,border:"1px solid",borderColor:m===L?L==="low"?"#10b981":L==="medium"?"#6366f1":L==="high"?"#f59e0b":"#ef4444":"#e2e8f0",backgroundColor:m===L?L==="low"?"#ecfdf5":L==="medium"?"#eef2ff":L==="high"?"#fffbeb":"#fef2f2":"transparent",color:m===L?L==="low"?"#059669":L==="medium"?"#4338ca":L==="high"?"#b45309":"#b91c1c":"#64748b",cursor:"pointer",transition:"all 0.2s",textTransform:"uppercase"},children:[r[L]," (",nA,")"]},L)})]})]})})()})]}),i.jsx("div",{style:{flex:1,overflowY:"auto",paddingRight:"10px",overflowX:"hidden"},className:"vg-custom-scrollbar",children:it?i.jsx("div",{"data-vg-id":"2e782f9a","data-source-path":"/src/components/ViewGateOverlay.tsx:3250",style:{display:"flex",justifyContent:"center",padding:"40px"},children:i.jsx("div",{"data-vg-id":"2e782f9b","data-source-path":"/src/components/ViewGateOverlay.tsx:3251",className:"vg-spinner"})}):fo.map((l,h)=>i.jsxs("div",{className:"vg-glassmorphism vg-animate-slide",style:{padding:"20px",marginBottom:"16px",border:"1px solid rgba(0,0,0,0.05)",background:"rgba(255,255,255,0.5)",animationDelay:`${h*.05}s`},children:[i.jsxs("div",{"data-vg-id":"2e782f9c","data-source-path":"/src/components/ViewGateOverlay.tsx:3266",style:{display:"flex",justifyContent:"space-between",marginBottom:"16px",alignItems:"center"},children:[i.jsxs("div",{"data-vg-id":"2e782f9d","data-source-path":"/src/components/ViewGateOverlay.tsx:3267",style:{display:"flex",gap:"12px",alignItems:"center"},children:[i.jsx("span",{"data-vg-id":"8161c33","data-source-path":"/src/components/ViewGateOverlay.tsx:3268",style:{fontSize:"12px",color:"#000000",fontWeight:600},children:dc(l.timestamp||l.createdAt||l.reference?.timestamp,e)}),i.jsx("div",{"data-vg-id":"2e782f9f","data-source-path":"/src/components/ViewGateOverlay.tsx:3271",onClick:p=>{p.stopPropagation();const x=l.key||`VG-${l._id.slice(-6).toUpperCase()}`;navigator.clipboard.writeText(x);const b=p.currentTarget;b.innerText="¡Copiado!",b.style.color="#22c55e",setTimeout(()=>{b.innerText=x,b.style.color=B?"#64748b":"#6366f1"},1500)},style:{fontSize:"10px",fontFamily:"monospace",color:B?"#64748b":"#6366f1",background:B?"rgba(100, 116, 139, 0.1)":"rgba(99, 102, 241, 0.1)",padding:"2px 6px",borderRadius:"4px",cursor:"pointer",fontWeight:900,transition:"all 0.2s"},title:e==="es"?"Click para copiar":"Click to copy",children:l.key||`VG-${l._id.slice(-6).toUpperCase()}`}),l.reference?.metadata?.isModal&&i.jsx("span",{"data-vg-id":"8161c35","data-source-path":"/src/components/ViewGateOverlay.tsx:3300",className:"vg-badge",style:{fontSize:"10px",background:B?"#f1f5f9":l.status==="completed"||l.status==="done"?"#ecfdf5":l.status==="ready_for_review"?"#f3e8ff":"#fef3c7",color:B?"#64748b":l.status==="completed"||l.status==="done"?"#059669":l.status==="ready_for_review"?"#a855f7":"#92400e",border:"none",padding:"2px 6px"},children:"MODAL"}),l.creator&&i.jsx("div",{"data-vg-id":"2e782fa1","data-source-path":"/src/components/ViewGateOverlay.tsx:3309",style:{display:"flex",alignItems:"center",background:"#f8fafc",padding:"2px",borderRadius:"50%",border:"1px solid #e2e8f0",marginLeft:"4px"},children:l.creator.avatar?i.jsx("img",{"data-vg-id":"3cf759d4","data-source-path":"/src/components/ViewGateOverlay.tsx:3319",src:l.creator.avatar,style:{width:"16px",height:"16px",borderRadius:"50%"},alt:""}):i.jsx("div",{"data-vg-id":"2e782fb8","data-source-path":"/src/components/ViewGateOverlay.tsx:3321",style:{width:"16px",height:"16px",borderRadius:"50%",background:"#6366f1",color:"white",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"8px",fontWeight:700},children:l.creator.name?.[0]})}),l.url&&i.jsx(Bc,{url:l.url,onHover:bc,style:{display:"flex",alignItems:"center",gap:"4px",fontSize:"11px",color:"#64748b",background:"#f8fafc",padding:"2px 8px",borderRadius:"6px",border:"1px solid #e2e8f0",maxWidth:"220px"}}),(l.focusAreas?.length>0?l.focusAreas:[...l.backendEndpoints?.length>0?["backend"]:[],...l.figmaReference?.length>0?["ux"]:[]]).map(p=>i.jsxs("span",{"data-vg-id":"8161c4e","data-source-path":"/src/components/ViewGateOverlay.tsx:3347",style:{fontSize:"10px",fontWeight:800,textTransform:"uppercase",padding:"4px 10px",borderRadius:"24px",background:p==="frontend"?"linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%)":p==="backend"?"linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%)":"linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%)",color:p==="frontend"?"#059669":p==="backend"?"#4f46e5":"#c026d3",display:"flex",alignItems:"center",gap:"4px",border:`1px solid ${p==="frontend"?"#a7f3d0":p==="backend"?"#c7d2fe":"#fbcfe8"}`,boxShadow:p==="frontend"?"0 2px 4px rgba(5, 150, 105, 0.05)":p==="backend"?"0 2px 4px rgba(79, 70, 229, 0.05)":"0 2px 4px rgba(192, 38, 211, 0.05)",letterSpacing:"0.02em"},children:[p==="frontend"?i.jsx(yr,{"data-vg-id":"b806bee7","data-source-path":"/src/components/ViewGateOverlay.tsx:3355",size:11,strokeWidth:2.5}):p==="backend"?i.jsx(Ke,{"data-vg-id":"b1e4c277","data-source-path":"/src/components/ViewGateOverlay.tsx:3355",size:11,strokeWidth:2.5}):i.jsx(Rt,{"data-vg-id":"ea069934","data-source-path":"/src/components/ViewGateOverlay.tsx:3355",size:11,strokeWidth:2.5}),p==="frontend"?"Frontend":p==="backend"?"Backend":"UX / UI"]},p))]}),l.status==="completed"?i.jsxs("span",{"data-vg-id":"8161c52","data-source-path":"/src/components/ViewGateOverlay.tsx:3361",className:"vg-badge",style:{backgroundColor:"#ecfdf5",color:"#059669",border:"1px solid #d1fae5"},children:[i.jsx(ze,{"data-vg-id":"a75c1a63","data-source-path":"/src/components/ViewGateOverlay.tsx:3362",size:14})," ",r.completed||(e==="es"?"Listo para revisión":"Ready for Review")]}):l.status==="ready_for_review"?i.jsxs("span",{"data-vg-id":"8161c54","data-source-path":"/src/components/ViewGateOverlay.tsx:3365",className:"vg-badge",style:{backgroundColor:"#f3e8ff",color:"#a855f7",border:"1px solid #e9d5ff"},children:[i.jsx(ze,{"data-vg-id":"a75c1a65","data-source-path":"/src/components/ViewGateOverlay.tsx:3366",size:14})," ",r.readyForReview]}):l.status==="bug_fixing"?i.jsxs("span",{"data-vg-id":"8161c56","data-source-path":"/src/components/ViewGateOverlay.tsx:3369",className:"vg-badge",style:{backgroundColor:"#fff1f2",color:"#e11d48",border:"1px solid #ffe4e6"},children:[i.jsx(Dt,{"data-vg-id":"3b8b181a","data-source-path":"/src/components/ViewGateOverlay.tsx:3370",size:14})," ","Bug Fixing"]}):i.jsxs("span",{"data-vg-id":"8161c6d","data-source-path":"/src/components/ViewGateOverlay.tsx:3373",className:"vg-badge",style:{backgroundColor:B||l.status==="backlog"?"#f1f5f9":"#fff7ed",color:B||l.status==="backlog"?"#64748b":"#ea580c",border:B||l.status==="backlog"?"1px solid #e2e8f0":"1px solid #ffedd5"},children:[i.jsx(Jo,{"data-vg-id":"62dc6c36","data-source-path":"/src/components/ViewGateOverlay.tsx:3378",size:14}),B||l.status==="backlog"?r.backlog:r.pending]})]}),(l.screenshot||l.reference?.previewUrl)&&i.jsx("div",{"data-vg-id":"2e782fda","data-source-path":"/src/components/ViewGateOverlay.tsx:3385",style:{margin:"0 0 20px 0",borderRadius:"8px",overflow:"hidden",maxWidth:"100%",maxHeight:"280px",border:"1px solid #e2e8f0",backgroundColor:"#f8fafc",display:"flex",alignItems:"center",justifyContent:"center"},children:i.jsx("img",{"data-vg-id":"3cf75a0d","data-source-path":"/src/components/ViewGateOverlay.tsx:3397",src:l.screenshot||l.reference?.previewUrl,alt:"Visual Preview",style:{maxWidth:"100%",maxHeight:"280px",objectFit:"contain",display:"block"}})}),i.jsxs("div",{"data-vg-id":"2e782fdc","data-source-path":"/src/components/ViewGateOverlay.tsx:3410",style:{marginBottom:"20px"},children:[i.jsx("div",{"data-vg-id":"2e782fdd","data-source-path":"/src/components/ViewGateOverlay.tsx:3411",style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"8px"},children:i.jsxs("div",{"data-vg-id":"2e782fde","data-source-path":"/src/components/ViewGateOverlay.tsx:3412",style:{fontSize:"10px",fontWeight:800,color:l.priority==="low"?"#059669":l.priority==="urgent"?"#b91c1c":l.priority==="high"?"#b45309":"#4338ca",backgroundColor:l.priority==="low"?"#ecfdf5":l.priority==="urgent"?"#fef2f2":l.priority==="high"?"#fffbeb":"#eef2ff",padding:"4px 10px",borderRadius:"6px",letterSpacing:"0.5px",border:"1px solid",borderColor:l.priority==="low"?"#d1fae5":l.priority==="urgent"?"#fee2e2":l.priority==="high"?"#fef3c7":"#e0e7ff"},children:[r.priority,": ",r[l.priority||"medium"]]})}),i.jsx("p",{"data-vg-id":"f01af8be","data-source-path":"/src/components/ViewGateOverlay.tsx:3426",className:"vg-text-wrap",style:{margin:"0",fontSize:"16px",color:"#1e293b",lineHeight:1.6},children:l.message}),l.figmaReference?.length>0&&i.jsxs("div",{"data-vg-id":"2e782fe0","data-source-path":"/src/components/ViewGateOverlay.tsx:3431",style:{marginTop:"16px",display:"flex",flexDirection:"column",gap:"8px",padding:"12px",background:"#faf5ff",borderRadius:"12px",border:"1px solid #fae8ff"},children:[i.jsxs("div",{"data-vg-id":"2e782ff6","data-source-path":"/src/components/ViewGateOverlay.tsx:3432",style:{display:"flex",alignItems:"center",gap:"6px",marginBottom:"4px"},children:[i.jsx(Rt,{"data-vg-id":"ea06996f","data-source-path":"/src/components/ViewGateOverlay.tsx:3433",size:14,style:{color:"#d946ef"}}),i.jsx("span",{"data-vg-id":"8161c8d","data-source-path":"/src/components/ViewGateOverlay.tsx:3434",style:{fontSize:"11px",fontWeight:800,color:"#a21caf",textTransform:"uppercase",letterSpacing:"0.05em"},children:e==="es"?"Diseños Figma":"Figma Designs"})]}),l.figmaReference.map((p,x)=>i.jsxs("a",{"data-vg-id":"ef479849","data-source-path":"/src/components/ViewGateOverlay.tsx:3437",href:p.link,target:"_blank",rel:"noreferrer",className:"vg-animate-pop",style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 14px",background:"#ffffff",border:"1px solid #f5d0fe",borderRadius:"10px",fontSize:"13px",color:"#c026d3",textDecoration:"none",transition:"all 0.2s",boxShadow:"0 2px 4px rgba(217, 70, 239, 0.05)"},onMouseEnter: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:[i.jsxs("div",{"data-vg-id":"2e782ffa","data-source-path":"/src/components/ViewGateOverlay.tsx:3445",style:{display:"flex",alignItems:"center",gap:"8px"},children:[i.jsx("div",{"data-vg-id":"2e782ffb","data-source-path":"/src/components/ViewGateOverlay.tsx:3446",style:{width:"24px",height:"24px",borderRadius:"6px",background:"rgba(217, 70, 239, 0.1)",display:"flex",alignItems:"center",justifyContent:"center"},children:i.jsx(yr,{"data-vg-id":"b806bf29","data-source-path":"/src/components/ViewGateOverlay.tsx:3447",size:12,strokeWidth:3})}),i.jsx("span",{"data-vg-id":"8161c92","data-source-path":"/src/components/ViewGateOverlay.tsx:3449",style:{fontWeight:700},children:p.name||"Figma Reference"})]}),i.jsx(nn,{"data-vg-id":"5c2be04e","data-source-path":"/src/components/ViewGateOverlay.tsx:3451",size:14,style:{opacity:.5}})]},x))]}),l.backendEndpoints?.length>0&&i.jsxs("div",{"data-vg-id":"2e782fff","data-source-path":"/src/components/ViewGateOverlay.tsx:3458",style:{marginTop:"16px",display:"flex",flexDirection:"column",gap:"8px",padding:"12px",background:"#f5f8ff",borderRadius:"12px",border:"1px solid #e0e7ff"},children:[i.jsxs("div",{"data-vg-id":"2e783015","data-source-path":"/src/components/ViewGateOverlay.tsx:3459",style:{display:"flex",alignItems:"center",gap:"6px",marginBottom:"4px"},children:[i.jsx(Ke,{"data-vg-id":"b1e4c2d2","data-source-path":"/src/components/ViewGateOverlay.tsx:3460",size:14,style:{color:"#4f46e5"}}),i.jsx("span",{"data-vg-id":"8161cac","data-source-path":"/src/components/ViewGateOverlay.tsx:3461",style:{fontSize:"11px",fontWeight:800,color:"#3730a3",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Backend Endpoints"})]}),i.jsx("div",{"data-vg-id":"2e783018","data-source-path":"/src/components/ViewGateOverlay.tsx:3463",style:{display:"flex",flexWrap:"wrap",gap:"8px"},children:l.backendEndpoints.map(p=>{const x=p.split("|"),b=x.length>1?x[0]:"";let D=x.length>1?x[1]||"":p||"",O="#4f46e5",L="#e0e7ff";return b==="GET"?(O="#059669",L="#d1fae5"):b==="POST"?(O="#ea580c",L="#ffedd5"):b==="PUT"?(O="#0284c7",L="#e0f2fe"):b==="DELETE"&&(O="#e11d48",L="#ffe4e6"),i.jsxs("div",{"data-vg-id":"2e783019","data-source-path":"/src/components/ViewGateOverlay.tsx:3478",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&&i.jsx("span",{"data-vg-id":"8161caf","data-source-path":"/src/components/ViewGateOverlay.tsx:3484",style:{fontWeight:800,color:O,background:L,padding:"2px 6px",borderRadius:"4px",fontSize:"10px"},children:b}),i.jsx("span",{"data-vg-id":"8161cb0","data-source-path":"/src/components/ViewGateOverlay.tsx:3485",style:{fontWeight:600,fontFamily:"monospace",letterSpacing:"-0.02em",color:"#1e293b"},children:D})]},p)})})]})]}),i.jsxs("div",{"data-vg-id":"2e78301c","data-source-path":"/src/components/ViewGateOverlay.tsx:3495",style:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"12px",borderTop:"1px solid #f1f5f9",paddingTop:"16px"},children:[i.jsx("div",{"data-vg-id":"2e78301d","data-source-path":"/src/components/ViewGateOverlay.tsx:3497",style:{display:"flex",gap:"6px"},children:fr!=="client"&&i.jsxs(i.Fragment,{children:[i.jsx("button",{className:"vg-button-ghost vg-animate-pop",style:{padding:"8px",minWidth:"36px"},onClick:()=>{const p=l.backendEndpoints||[],x=l.focusAreas&&l.focusAreas.length>0?l.focusAreas:[...p.length>0?["backend"]:[],...l.figmaReference&&l.figmaReference.length>0?["ux"]:[]];Ds(l._id),Oc(l.message),y(l.priority||"medium"),ho(x),Cr(l.figmaReference&&l.figmaReference.length>0?l.figmaReference:[{name:r.figmaPrimaryDesign,link:""}]),Rs(p),re(p)},title:r.edit,children:i.jsx(Rt,{"data-vg-id":"ea069996","data-source-path":"/src/components/ViewGateOverlay.tsx:3521",size:16})}),i.jsx("button",{className:"vg-button-ghost vg-animate-pop",style:{padding:"8px",minWidth:"36px",color:"#ef4444"},onClick:()=>{Y({title:r.deleteConfirm,message:r.confirmDelete,type:"danger",onConfirm:async()=>{try{(await fetch(`${n}/api/annotations/${l._id}`,{method:"DELETE",headers:{"x-api-key":s}})).ok&&(Os(),A(r.deleteSuccess,"success"))}catch{A(r.error,"error")}finally{Y(null)}}})},title:e==="es"?"Eliminar":"Delete",children:i.jsx(Ir,{"data-vg-id":"45b44219","data-source-path":"/src/components/ViewGateOverlay.tsx:3551",size:16})})]})}),i.jsxs("div",{"data-vg-id":"2e783035","data-source-path":"/src/components/ViewGateOverlay.tsx:3557",style:{display:"flex",gap:"8px"},children:[fr!=="client"&&l.status==="ready_for_review"&&i.jsxs("button",{onClick:()=>Yp(l),className:"vg-button-primary vg-animate-pop",style:{padding:"8px 16px",fontSize:"13px",whiteSpace:"nowrap",background:"linear-gradient(135deg, #059669 0%, #10b981 100%)",boxShadow:"0 4px 12px rgba(5, 150, 69, 0.2)",display:"flex",alignItems:"center",gap:"8px",fontWeight:700},disabled:He,children:[He?i.jsx(br,{"data-vg-id":"a4b73604","data-source-path":"/src/components/ViewGateOverlay.tsx:3575",size:14,className:"vg-animate-spin"}):i.jsx(Fl,{"data-vg-id":"41e603c7","data-source-path":"/src/components/ViewGateOverlay.tsx:3575",size:14}),e==="es"?"Resolver con Evidencia":"Resolve & Capture"]}),i.jsxs("a",{href:`${(o||"").replace(/\/$/,"")}/${B||l.status==="backlog"?"backlog":"board"}?search=${l.key||(l._id?"VG-"+l._id.slice(-6).toUpperCase():"TICKET")}${ne?`&projectId=${ne}`:""}`,target:"_blank",rel:"noopener noreferrer",className:"vg-button-primary vg-animate-pop",style:{padding:"8px 16px",fontSize:"13px",whiteSpace:"nowrap",textDecoration:"none",display:"flex",alignItems:"center",gap:"8px",cursor:"pointer"},children:[i.jsx(nn,{"data-vg-id":"5c2be088","data-source-path":"/src/components/ViewGateOverlay.tsx:3595",size:14}),e==="es"?"Ver en Dashboard":"View in Dashboard"]})]})]})]},l._id))},BA||"all")]})}),XA&&i.jsx("div",{"data-vg-id":"2e783039","data-source-path":"/src/components/ViewGateOverlay.tsx:3611",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:st+100},children:i.jsxs("div",{"data-vg-id":"2e78303a","data-source-path":"/src/components/ViewGateOverlay.tsx:3616",className:"vg-glassmorphism vg-animate-slide",style:{padding:"40px",width:"420px",textAlign:"center",border:"1px solid rgba(255, 255, 255, 0.1)",boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.5)"},children:[i.jsx("div",{"data-vg-id":"2e78303b","data-source-path":"/src/components/ViewGateOverlay.tsx:3623",style:{width:"64px",height:"64px",background:XA.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:XA.type==="danger"?"#ef4444":"#6366f1",transform:"rotate(-5deg)"},children:XA.type==="danger"?i.jsx(Ir,{"data-vg-id":"45b44221","data-source-path":"/src/components/ViewGateOverlay.tsx:3632",size:32}):i.jsx(ze,{"data-vg-id":"a75c1ae2","data-source-path":"/src/components/ViewGateOverlay.tsx:3632",size:32})}),i.jsx("h3",{"data-vg-id":"53ec569","data-source-path":"/src/components/ViewGateOverlay.tsx:3634",style:{margin:"0 0 12px 0",fontSize:"20px",fontWeight:800,color:"#000000",letterSpacing:"-0.02em"},children:XA.title}),i.jsx("p",{"data-vg-id":"f01af933","data-source-path":"/src/components/ViewGateOverlay.tsx:3635",style:{margin:"0 0 24px 0",fontSize:"15px",color:"#000000",lineHeight:1.6},children:XA.message}),XA.showInput&&i.jsx("textarea",{className:"vg-textarea",placeholder:r.reopenPlaceholder,value:tA,onChange:l=>dA(l.target.value),rows:3,autoFocus:!0,style:{marginBottom:"24px",minHeight:"80px",textAlign:"left"}}),i.jsxs("div",{"data-vg-id":"2e783055","data-source-path":"/src/components/ViewGateOverlay.tsx:3649",style:{display:"flex",gap:"16px"},children:[i.jsx("button",{className:"vg-button-ghost",style:{flex:1,height:"44px"},onClick:()=>!Qe&&Y(null),disabled:Qe,children:r.no}),i.jsx("button",{className:"vg-button-primary",style:{flex:1,height:"44px",backgroundColor:XA.type==="danger"?"#ef4444":void 0,backgroundImage:XA.type==="danger"?"none":void 0,display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",opacity:XA.showInput&&!tA.trim()?.5:1,cursor:XA.showInput&&!tA.trim()?"not-allowed":"pointer"},disabled:Qe||XA.showInput&&!tA.trim(),onClick:async()=>{ur(!0);try{await XA.onConfirm(tA)}catch(l){console.error("Confirmation error:",l)}finally{ur(!1)}},children:Qe?i.jsx(br,{"data-vg-id":"a4b73624","data-source-path":"/src/components/ViewGateOverlay.tsx:3685",size:18,className:"vg-animate-spin"}):r.yes})]})]})}),!WA&&!u&&hA&&vt.map((l,h)=>{const{rect:p,annotations:x,isModal:b}=l,D=x[0],O=x.length,L=x.some(v=>v.status==="ready_for_review"),nA=x.some(v=>v.status==="completed"||v.status==="done"),V=x.some(v=>v.status!=="ready_for_review"&&v.status!=="completed"&&v.status!=="done"),pA=nA&&!L&&!V,rA=L&&!V&&!nA,oA=(L||nA)&&!V,QA=(L||nA)&&V,EA=x.filter(v=>v.status!=="ready_for_review"&&v.status!=="completed"&&v.status!=="done").length,bA=x.filter(v=>v.status==="ready_for_review").length,xA=x.filter(v=>v.status==="completed"||v.status==="done").length,SA=x.some(v=>v.status==="bug_fixing"||v.type==="bug"||v.originalStatus==="bug_fixing"),Te=SA&&!rA&&!pA?"#f43f5e":EA>0?B?"#64748b":"#ea580c":bA>0?"#a855f7":"#10b981",$=vt.some(v=>v.element===l.element&&v.isTriggerPin),VA=vt.some(v=>v.element===l.element&&!v.isTriggerPin),wA=$&&VA?l.isTriggerPin?-18:18:0,LA=p.top===0&&p.left===0&&p.width>window.innerWidth*.9;return i.jsxs("div",{className:"vg-pin-container vg-animate-pop",style:{position:"fixed",top:Math.max(20,Math.min(window.innerHeight-52,p.top-20)),left:LA?Math.max(20,p.left+40+wA):Math.max(20,Math.min(window.innerWidth-52,p.left+p.width/2-16+wA)),width:"32px",height:"32px",cursor:"pointer",transition:"all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275)",zIndex:Lp},onMouseEnter:v=>{const JA=v.currentTarget.getBoundingClientRect(),Vs=window.innerHeight-JA.bottom,Zp=JA.top;Vs<250&&Zp>Vs?fA(xo=>({...xo,[l.id]:"vg-top"})):fA(xo=>({...xo,[l.id]:""}))},onWheel:v=>{const JA=v.currentTarget.querySelector(".vg-tooltip-scroll");JA&&JA.scrollBy({top:v.deltaY,behavior:"smooth"})},onClick:()=>{Ce(!0),Se(D._id)},children:[i.jsxs("div",{"data-vg-id":"2e783057","data-source-path":"/src/components/ViewGateOverlay.tsx:3760",className:`vg-pin-tooltip ${zA[l.id]||""} ${LA||p.left<160?"vg-tooltip-right":p.left>window.innerWidth-160?"vg-tooltip-left":""}`,style:{padding:"16px"},children:[i.jsxs("div",{"data-vg-id":"2e783058","data-source-path":"/src/components/ViewGateOverlay.tsx:3761",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"12px"},children:[i.jsxs("div",{"data-vg-id":"2e783059","data-source-path":"/src/components/ViewGateOverlay.tsx:3762",style:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap"},children:[l.isTriggerPin?i.jsx(Er,{"data-vg-id":"d88161bf","data-source-path":"/src/components/ViewGateOverlay.tsx:3764",size:14,color:Te}):i.jsx(vr,{"data-vg-id":"7fe17ae","data-source-path":"/src/components/ViewGateOverlay.tsx:3766",size:14,color:Te}),i.jsxs("div",{"data-vg-id":"2e78305c","data-source-path":"/src/components/ViewGateOverlay.tsx:3768",style:{display:"flex",gap:"4px"},children:[EA>0&&i.jsxs("span",{"data-vg-id":"8161d07","data-source-path":"/src/components/ViewGateOverlay.tsx:3770",className:"vg-badge",style:{fontSize:"10px",background:B?"#f1f5f9":"#fff7ed",color:B?"#64748b":"#c2410c"},children:[EA," ",B||D.status==="backlog"?"Backlog":e==="es"?EA===1?r.pending:"Pendientes":"pending"]}),bA>0&&i.jsxs("span",{"data-vg-id":"8161d08","data-source-path":"/src/components/ViewGateOverlay.tsx:3779",style:{fontSize:"10px",fontWeight:700,color:"#a855f7",background:"#f3e8ff",padding:"2px 6px",borderRadius:"6px"},children:[bA," ",e==="es"?bA===1?"Listo para revisión":"Listos para revisión":"ready for review"]}),xA>0&&i.jsxs("span",{"data-vg-id":"8161d09","data-source-path":"/src/components/ViewGateOverlay.tsx:3791",style:{fontSize:"10px",fontWeight:700,color:"#059669",background:"#ecfdf5",padding:"2px 6px",borderRadius:"6px"},children:[xA," ",e==="es"?xA===1?"Completado":"Completados":"completed"]}),x.some(v=>v.status==="bug_fixing")&&i.jsx("span",{"data-vg-id":"8161d0a","data-source-path":"/src/components/ViewGateOverlay.tsx:3803",style:{fontSize:"10px",fontWeight:700,color:"#e11d48",background:"#fff1f2",padding:"2px 6px",borderRadius:"6px"},children:"BUG"})]})]}),b&&i.jsx("span",{"data-vg-id":"8161d0b","data-source-path":"/src/components/ViewGateOverlay.tsx:3817",className:"vg-badge",style:{fontSize:"10px",background:B?"#f1f5f9":QA?`linear-gradient(90deg, #ea580c 50%, ${nA?"#10b981":"#a855f7"} 50%)`:EA>0?"#fff7ed":pA?"#ecfdf5":"#f3e8ff",color:B?"#64748b":QA?"#ffffff":EA>0?"#c2410c":pA?"#059669":"#a855f7",border:"none",fontWeight:800,textShadow:QA&&!B?"0 1px 2px rgba(0,0,0,0.2)":"none"},children:"MODAL"})]}),i.jsx("div",{"data-vg-id":"2e783077","data-source-path":"/src/components/ViewGateOverlay.tsx:3829",className:"vg-tooltip-scroll",style:{maxHeight:"180px",overflowY:"auto"},children:x.map((v,JA)=>i.jsxs("div",{"data-vg-id":"2e783078","data-source-path":"/src/components/ViewGateOverlay.tsx:3831",style:{padding:"10px 0",borderTop:JA===0?"none":"1px solid #f1f5f9",display:"flex",gap:"12px",alignItems:"flex-start"},children:[i.jsxs("div",{"data-vg-id":"2e783079","data-source-path":"/src/components/ViewGateOverlay.tsx:3838",style:{flex:1,display:"flex",flexDirection:"column",gap:"4px"},children:[i.jsxs("div",{"data-vg-id":"2e78307a","data-source-path":"/src/components/ViewGateOverlay.tsx:3839",style:{display:"flex",alignItems:"center",gap:"6px"},children:[i.jsx("span",{"data-vg-id":"8161d10","data-source-path":"/src/components/ViewGateOverlay.tsx:3840",style:{fontSize:"10px",fontWeight:600,color:"#64748b"},children:dc(v.timestamp||v.createdAt,e)}),v.creator&&i.jsx("div",{"data-vg-id":"2e783091","data-source-path":"/src/components/ViewGateOverlay.tsx:3844",style:{marginLeft:"4px"},children:v.creator.avatar?i.jsx("img",{"data-vg-id":"3cf75ac4","data-source-path":"/src/components/ViewGateOverlay.tsx:3846",src:v.creator.avatar,style:{width:"14px",height:"14px",borderRadius:"50%"},alt:""}):i.jsx("div",{"data-vg-id":"2e783093","data-source-path":"/src/components/ViewGateOverlay.tsx:3848",style:{width:"14px",height:"14px",borderRadius:"50%",background:"#6366f1",color:"white",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"7px",fontWeight:700},children:v.creator.name?.[0]})})]}),v.url&&i.jsx(Bc,{url:v.url,onHover:bc,style:{display:"flex",alignItems:"center",gap:"4px",fontSize:"9px",color:"#6366f1",opacity:.8,background:"rgba(99, 102, 241, 0.05)",padding:"2px 6px",borderRadius:"4px",maxWidth:"120px"},tooltipStyle:{fontSize:"9px"}}),i.jsx("div",{"data-vg-id":"2e783094","data-source-path":"/src/components/ViewGateOverlay.tsx:3874",className:"vg-line-clamp-2",style:{fontSize:"13px",color:"#1e293b",lineHeight:1.4,fontWeight:500},children:v.message.length>100?v.message.slice(0,97)+"...":v.message})]}),i.jsxs("div",{"data-vg-id":"2e783095","data-source-path":"/src/components/ViewGateOverlay.tsx:3878",style:{flexShrink:0,marginTop:"2px",display:"flex",flexDirection:"column",gap:"4px",alignItems:"flex-end"},children:[i.jsx("div",{"data-vg-id":"2e783096","data-source-path":"/src/components/ViewGateOverlay.tsx:3879",style:{fontSize:"8px",fontWeight:800,color:v.priority==="low"?"#059669":v.priority==="urgent"?"#b91c1c":v.priority==="high"?"#b45309":"#4338ca",backgroundColor:v.priority==="low"?"#ecfdf5":v.priority==="urgent"?"#fef2f2":v.priority==="high"?"#fffbeb":"#eef2ff",padding:"2px 6px",borderRadius:"4px",textTransform:"uppercase",border:"1px solid",borderColor:v.priority==="low"?"#d1fae5":v.priority==="urgent"?"#fee2e2":v.priority==="high"?"#fef3c7":"#e0e7ff"},children:r[v.priority||"medium"]}),v.status==="completed"||v.status==="done"?i.jsxs("span",{"data-vg-id":"8161d2c","data-source-path":"/src/components/ViewGateOverlay.tsx:3893",style:{display:"flex",alignItems:"center",gap:"4px",fontSize:"8px",fontWeight:800,color:"#059669",background:"#ecfdf5",padding:"2px 6px",borderRadius:"6px",textTransform:"uppercase",border:"1px solid #d1fae5"},children:[i.jsx(ze,{"data-vg-id":"a75c1b3d","data-source-path":"/src/components/ViewGateOverlay.tsx:3906",size:10}),r.completed]}):v.status==="ready_for_review"?i.jsxs("span",{"data-vg-id":"8161d2e","data-source-path":"/src/components/ViewGateOverlay.tsx:3910",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:[v.type==="bug"||v.status==="bug_fixing"||v.originalStatus==="bug_fixing"?i.jsx(Dt,{"data-vg-id":"3b8b18dd","data-source-path":"/src/components/ViewGateOverlay.tsx:3923",size:10}):i.jsx(ze,{"data-vg-id":"a75c1de0","data-source-path":"/src/components/ViewGateOverlay.tsx:3923",size:10}),r.readyForReview]}):v.status==="bug_fixing"?i.jsxs("span",{"data-vg-id":"8161fd1","data-source-path":"/src/components/ViewGateOverlay.tsx:3927",style:{display:"flex",alignItems:"center",gap:"4px",fontSize:"8px",fontWeight:800,color:"#e11d48",background:"#fff1f2",padding:"2px 6px",borderRadius:"6px",textTransform:"uppercase",border:"1px solid #ffe4e6"},children:[i.jsx(Dt,{"data-vg-id":"3b8b1b80","data-source-path":"/src/components/ViewGateOverlay.tsx:3940",size:10}),"Bug Fixing"]}):i.jsxs("span",{"data-vg-id":"8161fd3","data-source-path":"/src/components/ViewGateOverlay.tsx:3944",style:{display:"flex",alignItems:"center",gap:"4px",fontSize:"8px",fontWeight:800,color:B||v.status==="backlog"?"#64748b":"#ea580c",background:B||v.status==="backlog"?"#f1f5f9":"#fff7ed",padding:"2px 6px",borderRadius:"6px",textTransform:"uppercase",border:B||v.status==="backlog"?"1px solid #e2e8f0":"1px solid #ffedd5"},children:[i.jsx(Jo,{"data-vg-id":"62dc6f9c","data-source-path":"/src/components/ViewGateOverlay.tsx:3957",size:10}),B||v.status==="backlog"?r.backlog:r.pending]})]})]},v._id))})]}),i.jsxs("div",{"data-vg-id":"2e783340","data-source-path":"/src/components/ViewGateOverlay.tsx:3967",className:`vg-formal-pin ${pA?"completed":rA||oA?"ready":SA?"bug":QA?"mixed":B?"backlog":""} ${l.isTriggerPin?"modal-variant":""}`,style:{position:"relative",background:SA&&!rA&&!pA?"linear-gradient(135deg, #f43f5e 0%, #e11d48 100%)":rA?"linear-gradient(135deg, #a855f7 0%, #7e22ce 100%)":QA?nA?"linear-gradient(135deg, #10b981 0%, #059669 100%)":"linear-gradient(135deg, #a855f7 0%, #7e22ce 100%)":void 0},children:[rA||pA||oA?SA&&!pA?i.jsx(Dt,{"data-vg-id":"3b8b1b84","data-source-path":"/src/components/ViewGateOverlay.tsx:3974",size:18}):i.jsx(ze,{"data-vg-id":"a75c1de7","data-source-path":"/src/components/ViewGateOverlay.tsx:3974",size:18}):SA?i.jsx(Dt,{"data-vg-id":"3b8b1b86","data-source-path":"/src/components/ViewGateOverlay.tsx:3974",size:18}):l.isTriggerPin?i.jsx(Er,{"data-vg-id":"d88164a9","data-source-path":"/src/components/ViewGateOverlay.tsx:3974",size:16}):b?i.jsx(nn,{"data-vg-id":"5c2be3aa","data-source-path":"/src/components/ViewGateOverlay.tsx:3974",size:16}):i.jsx(vr,{"data-vg-id":"7fe1aae","data-source-path":"/src/components/ViewGateOverlay.tsx:3974",size:16}),O>1&&i.jsx("div",{"data-vg-id":"2e78335c","data-source-path":"/src/components/ViewGateOverlay.tsx:3977",className:"vg-pin-badge vg-animate-pop",children:O})]})]},`group-${l.id}`)}),i.jsx("div",{className:`vg-url-tooltip ${ct?"visible":""} ${ct?.direction==="bottom"?"vg-bottom":"vg-top"}`,style:{transform:ct?`translate(-50%, ${ct.direction==="top"?"-110%":"10%"})`:"translate(-50%, 0)",left:ct?.x||0,top:ct?.y||0},children:ct?.url}),oe&&i.jsx("div",{"data-vg-id":"2e78335d","data-source-path":"/src/components/ViewGateOverlay.tsx:4002",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:st+100,animation:"vg-fade-in 0.3s ease-out"},onClick:l=>{l.target===l.currentTarget&&z(!1)},children:i.jsxs("div",{"data-vg-id":"2e78335e","data-source-path":"/src/components/ViewGateOverlay.tsx:4011",className:"vg-glassmorphism vg-animate-pop",style:{width:"95%",maxWidth:"800px",height:"85vh",maxHeight:"850px",display:"flex",flexDirection:"column",overflow:"hidden",boxShadow:"0 50px 100px rgba(0,0,0,0.6)",borderRadius:"32px",border:"1px solid rgba(255, 255, 255, 0.15)",backgroundColor:"rgba(255, 255, 255, 0.98)"},children:[i.jsxs("div",{"data-vg-id":"2e78335f","data-source-path":"/src/components/ViewGateOverlay.tsx:4024",style:{padding:"32px 40px",borderBottom:"1px solid rgba(0,0,0,0.06)",display:"flex",alignItems:"center",justifyContent:"space-between",background:"white"},children:[i.jsxs("div",{"data-vg-id":"2e783360","data-source-path":"/src/components/ViewGateOverlay.tsx:4025",children:[i.jsx("h3",{"data-vg-id":"53ec877","data-source-path":"/src/components/ViewGateOverlay.tsx:4026",style:{margin:0,fontSize:"24px",fontWeight:900,letterSpacing:"-0.03em",color:"#0f172a"},children:e==="es"?"Selector de Endpoints":"Endpoint Selector"}),i.jsx("p",{"data-vg-id":"f01afc41","data-source-path":"/src/components/ViewGateOverlay.tsx:4029",style:{margin:"6px 0 0 0",fontSize:"14px",color:"#64748b",fontWeight:500},children:e==="es"?"Asocia múltiples rutas backend a este ticket para mayor precisión":"Associate multiple backend routes to this ticket for better precision"})]}),i.jsx("button",{"data-vg-id":"5861c060","data-source-path":"/src/components/ViewGateOverlay.tsx:4033",onClick:()=>z(!1),className:"vg-close-pill",style:{width:"40px",height:"40px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"14px",background:"#f1f5f9",color:"#64748b",border:"none",cursor:"pointer",transition:"all 0.2s"},onMouseEnter:l=>{l.currentTarget.style.background="#e2e8f0",l.currentTarget.style.color="#0f172a"},onMouseLeave:l=>{l.currentTarget.style.background="#f1f5f9",l.currentTarget.style.color="#64748b"},children:i.jsx(kt,{"data-vg-id":"eec8c840","data-source-path":"/src/components/ViewGateOverlay.tsx:4040",size:20,strokeWidth:2.5})})]}),i.jsx("div",{"data-vg-id":"2e78337a","data-source-path":"/src/components/ViewGateOverlay.tsx:4044",style:{padding:"24px 40px",borderBottom:"1px solid rgba(0,0,0,0.06)",background:"#fcfcfc"},children:i.jsxs("div",{"data-vg-id":"2e78337b","data-source-path":"/src/components/ViewGateOverlay.tsx:4045",style:{position:"relative"},children:[i.jsx(Sl,{"data-vg-id":"8f7bb00f","data-source-path":"/src/components/ViewGateOverlay.tsx:4046",size:20,style:{position:"absolute",left:"16px",top:"50%",transform:"translateY(-50%)",color:"#94a3b8"}}),i.jsx("input",{"data-vg-id":"88e38db6","data-source-path":"/src/components/ViewGateOverlay.tsx:4047",type:"text",placeholder:e==="es"?"Buscar rutas, métodos o descripciones...":"Search routes, methods, or descriptions...",value:eA,onChange:l=>me(l.target.value),className:"vg-textarea",style:{padding:"14px 16px 14px 50px",fontSize:"16px",minHeight:"auto",borderRadius:"16px",border:"1px solid #e2e8f0",backgroundColor:"white",boxShadow:"0 2px 8px rgba(0,0,0,0.04)"},autoFocus:!0})]})}),i.jsx("div",{"data-vg-id":"2e78337e","data-source-path":"/src/components/ViewGateOverlay.tsx:4067",style:{flex:1,overflowY:"auto",overflowX:"hidden",padding:"24px 40px"},className:"vg-custom-scrollbar",children:hr?Sc.length>0?i.jsx("div",{"data-vg-id":"2e783382","data-source-path":"/src/components/ViewGateOverlay.tsx:4074",style:{display:"flex",flexDirection:"column",gap:"0px"},children:Sc.map(l=>{const h=l.name===(e==="es"?"Seleccionados":"Selected");return i.jsxs("div",{"data-vg-id":"2e783398","data-source-path":"/src/components/ViewGateOverlay.tsx:4078",style:{marginBottom:"32px"},children:[i.jsxs("div",{"data-vg-id":"2e783399","data-source-path":"/src/components/ViewGateOverlay.tsx:4079",style:{display:"flex",alignItems:"center",gap:"12px",marginBottom:"16px",padding:"0 4px"},children:[i.jsx("span",{"data-vg-id":"816202f","data-source-path":"/src/components/ViewGateOverlay.tsx:4080",style:{fontSize:"11px",fontWeight:900,textTransform:"uppercase",letterSpacing:"0.1em",color:h?"#10b981":"#6366f1",backgroundColor:h?"rgba(10, 185, 129, 0.08)":"rgba(99, 102, 241, 0.08)",padding:"4px 10px",borderRadius:"6px",border:"1px solid",borderColor:h?"rgba(10, 185, 129, 0.1)":"rgba(99, 102, 241, 0.1)"},children:l.name}),i.jsx("div",{"data-vg-id":"2e78339b","data-source-path":"/src/components/ViewGateOverlay.tsx:4094",style:{flex:1,height:"1px",background:`linear-gradient(90deg, ${h?"rgba(16, 185, 129, 0.15)":"rgba(99, 102, 241, 0.15)"} 0%, transparent 100%)`}})]}),i.jsx("div",{"data-vg-id":"2e78339c","data-source-path":"/src/components/ViewGateOverlay.tsx:4101",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(340px, 1fr))",gap:"12px"},children:l.endpoints.map(p=>{const x=`${p.method}|${p.path}`,b=J.includes(x);return i.jsxs("div",{"data-vg-id":"2e78339d","data-source-path":"/src/components/ViewGateOverlay.tsx:4110",onClick:()=>{re(b?J.filter(D=>D!==x):[...J,x])},style:{padding:"16px 20px",borderRadius:"18px",cursor:"pointer",transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)",background: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:D=>{b||(D.currentTarget.style.background="#f8fafc",D.currentTarget.style.borderColor="#e2e8f0")},onMouseLeave:D=>{b||(D.currentTarget.style.background="#ffffff",D.currentTarget.style.borderColor="#f1f5f9")},children:[i.jsx("div",{"data-vg-id":"2e78339e","data-source-path":"/src/components/ViewGateOverlay.tsx:4142",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&&i.jsx("div",{"data-vg-id":"2e78339f","data-source-path":"/src/components/ViewGateOverlay.tsx:4155",style:{color:"white",fontSize:"14px",fontWeight:900},children:"✓"})}),i.jsxs("div",{"data-vg-id":"2e7833a0","data-source-path":"/src/components/ViewGateOverlay.tsx:4157",style:{flex:1,minWidth:0},children:[i.jsxs("div",{"data-vg-id":"2e7833a1","data-source-path":"/src/components/ViewGateOverlay.tsx:4158",style:{display:"flex",alignItems:"center",gap:"10px"},children:[i.jsx("span",{"data-vg-id":"816204c","data-source-path":"/src/components/ViewGateOverlay.tsx:4159",style:{fontSize:"11px",fontWeight:800,padding:"3px 8px",borderRadius:"8px",background:p.method==="GET"?"#dcfce7":"#fee2e2",color:p.method==="GET"?"#166534":"#991b1b",flexShrink:0},children:p.method}),i.jsx("span",{"data-vg-id":"816204d","data-source-path":"/src/components/ViewGateOverlay.tsx:4170",style:{fontWeight:700,color:b?"#4338ca":"#1e293b",fontSize:"14px",wordBreak:"break-all"},children:p.path}),p.contract&&i.jsx("div",{"data-vg-id":"2e7833b9","data-source-path":"/src/components/ViewGateOverlay.tsx:4179",style:{fontSize:"9px",fontWeight:900,color:"#6366f1",background:"rgba(99, 102, 241, 0.1)",padding:"1px 5px",borderRadius:"4px",textTransform:"uppercase"},children:"JSON"})]}),p.description&&i.jsx("div",{"data-vg-id":"2e7833ba","data-source-path":"/src/components/ViewGateOverlay.tsx:4191",style:{fontSize:"12px",color:"#64748b",marginTop:"6px",wordBreak:"break-word",fontWeight:450,lineHeight:1.4},children:p.description})]})]},x)})})]},l.name)})}):i.jsxs("div",{"data-vg-id":"2e7833bb","data-source-path":"/src/components/ViewGateOverlay.tsx:4212",style:{padding:"80px 20px",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center"},children:[i.jsx("div",{"data-vg-id":"2e7833bc","data-source-path":"/src/components/ViewGateOverlay.tsx:4213",style:{width:"80px",height:"80px",borderRadius:"24px",backgroundColor:"#f1f5f9",display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"24px"},children:i.jsx(Ke,{"data-vg-id":"b1e4c679","data-source-path":"/src/components/ViewGateOverlay.tsx:4214",size:40,style:{color:"#94a3b8"}})}),i.jsx("p",{"data-vg-id":"f01afc9d","data-source-path":"/src/components/ViewGateOverlay.tsx:4216",style:{color:"#0f172a",fontSize:"18px",fontWeight:800,margin:"0 0 8px 0"},children:e==="es"?"No encontramos lo que buscas":"No results found"}),i.jsx("p",{"data-vg-id":"f01afc9e","data-source-path":"/src/components/ViewGateOverlay.tsx:4219",style:{color:"#64748b",fontSize:"15px",margin:0},children:e==="es"?"Intenta buscar con otros términos o revisa la sincronización":"Try searching with different terms or check synchronization"})]}):i.jsxs("div",{"data-vg-id":"2e78337f","data-source-path":"/src/components/ViewGateOverlay.tsx:4069",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"100px 0",gap:"20px"},children:[i.jsx("div",{"data-vg-id":"2e783380","data-source-path":"/src/components/ViewGateOverlay.tsx:4070",className:"vg-spinner",style:{width:"40px",height:"40px",border:"3px solid rgba(99, 102, 241, 0.1)",borderTopColor:"#6366f1"}}),i.jsx("p",{"data-vg-id":"f01afc60","data-source-path":"/src/components/ViewGateOverlay.tsx:4071",style:{color:"#64748b",fontSize:"15px",fontWeight:600},children:e==="es"?"Cargando endpoints...":"Loading endpoints..."})]})}),i.jsxs("div",{"data-vg-id":"2e7833c0","data-source-path":"/src/components/ViewGateOverlay.tsx:4226",style:{padding:"24px 40px",borderTop:"1px solid rgba(0,0,0,0.06)",background:"white",display:"flex",alignItems:"center",justifyContent:"space-between",gap:"20px"},children:[i.jsxs("div",{"data-vg-id":"2e7833d6","data-source-path":"/src/components/ViewGateOverlay.tsx:4227",style:{display:"flex",alignItems:"center",gap:"12px"},children:[i.jsxs("div",{"data-vg-id":"2e7833d7","data-source-path":"/src/components/ViewGateOverlay.tsx:4228",style:{padding:"6px 12px",background:"#f1f5f9",borderRadius:"10px",fontSize:"14px",fontWeight:700,color:"#475569"},children:[J.length," ",e==="es"?"seleccionados":"selected"]}),J.length>0&&i.jsx("button",{"data-vg-id":"5861c0d5","data-source-path":"/src/components/ViewGateOverlay.tsx:4232",onClick:()=>{re([]),Ht&&Rs([])},style:{background:"none",border:"none",color:"#6366f1",fontSize:"14px",fontWeight:700,cursor:"pointer",padding:"4px 8px"},children:e==="es"?"Desmarcar todos":"Deselect all"})]}),i.jsx("div",{"data-vg-id":"2e7833d9","data-source-path":"/src/components/ViewGateOverlay.tsx:4243",style:{display:"flex",gap:"12px"},children:i.jsx("button",{"data-vg-id":"5861c0d7","data-source-path":"/src/components/ViewGateOverlay.tsx:4244",onClick:()=>{Ht&&Rs(J),z(!1)},style:{minWidth:"160px",padding:"14px 28px",borderRadius:"16px",fontSize:"15px",fontWeight:850,border:"none",background:"var(--vg-primary-gradient)",color:"white",cursor:"pointer",boxShadow:"0 10px 25px -5px rgba(99, 102, 241, 0.45)",transition:"all 0.2s",display:"flex",alignItems:"center",justifyContent:"center"},onMouseEnter:l=>{l.currentTarget.style.transform="translateY(-2px)",l.currentTarget.style.boxShadow="0 15px 30px -5px rgba(99, 102, 241, 0.6)"},onMouseLeave:l=>{l.currentTarget.style.transform="translateY(0)",l.currentTarget.style.boxShadow="0 10px 25px -5px rgba(99, 102, 241, 0.45)"},children:e==="es"?"Confirmar Selección":"Confirm Selection"})})]})]})}),bt?.contract&&i.jsx("div",{"data-vg-id":"2e7833db","data-source-path":"/src/components/ViewGateOverlay.tsx:4278",className:"vg-animate-fade",style:{position:"fixed",left:Math.min(bt.x,window.innerWidth-420),top:Math.min(bt.y,window.innerHeight-300),width:"400px",zIndex:st+500,pointerEvents:"none"},children:i.jsxs("div",{"data-vg-id":"2e7833dc","data-source-path":"/src/components/ViewGateOverlay.tsx:4286",className:"vg-glassmorphism",style:{padding:"20px",background:"rgba(15, 23, 42, 0.95)",backdropFilter:"blur(20px)",border:"1px solid rgba(255, 255, 255, 0.1)",borderRadius:"20px",boxShadow:"0 20px 40px rgba(0,0,0,0.4)",display:"flex",flexDirection:"column",gap:"12px"},children:[i.jsxs("div",{"data-vg-id":"2e7833dd","data-source-path":"/src/components/ViewGateOverlay.tsx:4297",style:{display:"flex",alignItems:"center",gap:"8px"},children:[i.jsx("div",{"data-vg-id":"2e7833de","data-source-path":"/src/components/ViewGateOverlay.tsx:4298",style:{padding:"4px 10px",background:"rgba(99, 102, 241, 0.2)",borderRadius:"8px",fontSize:"11px",fontWeight:900,color:"#818cf8",textTransform:"uppercase"},children:e==="es"?"CONTRATO":"CONTRACT"}),i.jsxs("span",{"data-vg-id":"8162074","data-source-path":"/src/components/ViewGateOverlay.tsx:4307",style:{color:"rgba(255, 255, 255, 0.5)",fontSize:"12px",fontWeight:600},children:[bt.method," ",bt.path]})]}),i.jsx("div",{"data-vg-id":"2e7833f5","data-source-path":"/src/components/ViewGateOverlay.tsx:4309",className:"vg-custom-scrollbar",style:{maxHeight:"250px",overflowY:"auto",background:"rgba(0,0,0,0.3)",borderRadius:"12px",padding:"12px"},children:i.jsx("pre",{"data-vg-id":"b7af0908","data-source-path":"/src/components/ViewGateOverlay.tsx:4316",style:{margin:0,fontSize:"11px",color:"#94a3b8",whiteSpace:"pre-wrap",wordBreak:"break-all",lineHeight:1.5,fontFamily:"JetBrains Mono, Fira Code, monospace"},children:bt.contract})})]})}),Ht&&i.jsx("div",{"data-vg-id":"2e7833f7","data-source-path":"/src/components/ViewGateOverlay.tsx:4335",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:st+50},children:i.jsxs("div",{"data-vg-id":"2e7833f8","data-source-path":"/src/components/ViewGateOverlay.tsx:4341",className:"vg-glassmorphism vg-animate-slide",style:{width:"600px",maxWidth:"90vw",maxHeight:"90vh",overflowY:"auto",background:"#ffffff",borderRadius:"24px",padding:"32px",boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.25)",display:"flex",flexDirection:"column",gap:"24px"},children:[i.jsxs("div",{"data-vg-id":"2e7833f9","data-source-path":"/src/components/ViewGateOverlay.tsx:4352",style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[i.jsx("h2",{"data-vg-id":"530b18f","data-source-path":"/src/components/ViewGateOverlay.tsx:4353",style:{margin:0,fontSize:"20px",fontWeight:800,color:"#1e293b"},children:e==="es"?"Editar Comentario":"Edit Comment"}),i.jsx("button",{"data-vg-id":"5861c0f8","data-source-path":"/src/components/ViewGateOverlay.tsx:4356",onClick:()=>Ds(null),style:{background:"none",border:"none",cursor:"pointer",color:"#94a3b8"},children:i.jsx(kt,{"data-vg-id":"eec8c8c3","data-source-path":"/src/components/ViewGateOverlay.tsx:4357",size:24})})]}),i.jsxs("div",{"data-vg-id":"2e7833fd","data-source-path":"/src/components/ViewGateOverlay.tsx:4361",style:{display:"flex",flexDirection:"column",gap:"16px"},children:[i.jsxs("div",{"data-vg-id":"2e7833fe","data-source-path":"/src/components/ViewGateOverlay.tsx:4362",children:[i.jsx("label",{"data-vg-id":"feec1077","data-source-path":"/src/components/ViewGateOverlay.tsx:4363",style:{display:"block",fontSize:"12px",fontWeight:700,color:"#64748b",marginBottom:"8px",textTransform:"uppercase",letterSpacing:"0.5px"},children:r.priority}),i.jsx("div",{"data-vg-id":"2e783415","data-source-path":"/src/components/ViewGateOverlay.tsx:4364",style:{display:"flex",gap:"8px"},children:["low","medium","high","urgent"].map(l=>i.jsx("button",{onClick:()=>y(l),style:{flex:1,padding:"10px 12px",borderRadius:"12px",fontSize:"13px",fontWeight:800,border:"2px solid",borderColor:F===l?l==="low"?"#10b981":l==="medium"?"#6366f1":l==="high"?"#f59e0b":"#ef4444":"#f1f5f9",backgroundColor:F===l?l==="low"?"#ecfdf5":l==="medium"?"#eef2ff":l==="high"?"#fffbeb":"#fef2f2":"white",color:F===l?l==="low"?"#059669":l==="medium"?"#4338ca":l==="high"?"#b45309":"#b91c1c":"#64748b",cursor:"pointer",transition:"all 0.2s",textTransform:"capitalize"},children:r[l]},l))})]}),i.jsxs("div",{"data-vg-id":"2e783416","data-source-path":"/src/components/ViewGateOverlay.tsx:4384",style:{marginBottom:"8px"},children:[i.jsx("label",{"data-vg-id":"feec107a","data-source-path":"/src/components/ViewGateOverlay.tsx:4385",style:{display:"block",fontSize:"12px",fontWeight:700,color:"#64748b",marginBottom:"8px",textTransform:"uppercase",letterSpacing:"0.5px"},children:r.focusAreas}),i.jsx("div",{"data-vg-id":"2e783418","data-source-path":"/src/components/ViewGateOverlay.tsx:4386",style:{display:"flex",gap:"8px"},children:[{id:"frontend",label:r.frontend,icon:i.jsx(yr,{"data-vg-id":"b806c346","data-source-path":"/src/components/ViewGateOverlay.tsx:4388",size:14}),color:"#10b981",bg:"#ecfdf5",border:"#d1fae5"},{id:"backend",label:r.backend,icon:i.jsx(Ke,{"data-vg-id":"b1e4c6d6","data-source-path":"/src/components/ViewGateOverlay.tsx:4389",size:14}),color:"#6366f1",bg:"#eef2ff",border:"#e0e7ff"},{id:"ux",label:r.ux,icon:i.jsx(Rt,{"data-vg-id":"ea069d93","data-source-path":"/src/components/ViewGateOverlay.tsx:4390",size:14}),color:"#d946ef",bg:"#fdf4ff",border:"#f5d0fe"}].filter(l=>l.id==="backend"?Hs:l.id==="ux"?k:!0).map(l=>{const h=St.includes(l.id);return i.jsxs("button",{onClick:()=>{ho(h?St.filter(p=>p!==l.id):[...St,l.id])},style:{flex:1,padding:"10px 4px",borderRadius:"12px",fontSize:"12px",fontWeight:700,border:"2px solid",borderColor:h?l.color:"#f1f5f9",backgroundColor:h?l.bg:"white",color:h?l.color:"#64748b",cursor:"pointer",transition:"all 0.2s",display:"flex",alignItems:"center",justifyContent:"center",gap:"6px"},children:[l.icon,l.label]},l.id)})})]}),St.includes("ux")&&i.jsxs("div",{"data-vg-id":"2e78341c","data-source-path":"/src/components/ViewGateOverlay.tsx:4426",className:"vg-animate-slide",style:{padding:"16px",borderRadius:"16px",background:"#f8fafc",border:"1px solid #e2e8f0"},children:[i.jsxs("div",{"data-vg-id":"2e78341d","data-source-path":"/src/components/ViewGateOverlay.tsx:4427",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"12px"},children:[i.jsxs("div",{"data-vg-id":"2e783433","data-source-path":"/src/components/ViewGateOverlay.tsx:4428",style:{display:"flex",alignItems:"center",gap:"6px"},children:[i.jsx(Er,{"data-vg-id":"d8816599","data-source-path":"/src/components/ViewGateOverlay.tsx:4429",size:14,style:{color:"#d946ef"}}),i.jsx("span",{"data-vg-id":"81620ca","data-source-path":"/src/components/ViewGateOverlay.tsx:4430",style:{fontSize:"11px",fontWeight:800,color:"#64748b",textTransform:"uppercase"},children:r.figmaLink})]}),i.jsxs("button",{"data-vg-id":"5861c133","data-source-path":"/src/components/ViewGateOverlay.tsx:4432",onClick:()=>Cr([...lt,{name:"",link:""}]),style:{background:"#fdf4ff",border:"1px solid #f5d0fe",color:"#d946ef",borderRadius:"8px",padding:"4px 10px",fontSize:"11px",fontWeight:800,cursor:"pointer"},children:["+ ",r.addLink]})]}),i.jsx("div",{"data-vg-id":"2e783437","data-source-path":"/src/components/ViewGateOverlay.tsx:4439",style:{display:"flex",flexDirection:"column",gap:"8px"},children:lt.map((l,h)=>i.jsxs("div",{"data-vg-id":"2e783438","data-source-path":"/src/components/ViewGateOverlay.tsx:4441",style:{display:"flex",gap:"8px"},children:[i.jsx("input",{"data-vg-id":"88e38e72","data-source-path":"/src/components/ViewGateOverlay.tsx:4442",type:"text",className:"vg-textarea",style:{padding:"8px 12px",fontSize:"12px",minHeight:"auto",borderRadius:"10px"},placeholder:r.figmaNamePlaceholder,value:l.name,onChange:p=>{const x=[...lt];x[h]&&(x[h].name=p.target.value,Cr(x))}}),i.jsx("input",{"data-vg-id":"88e38e73","data-source-path":"/src/components/ViewGateOverlay.tsx:4453",type:"text",className:"vg-textarea",style:{padding:"8px 12px",fontSize:"12px",minHeight:"auto",borderRadius:"10px"},placeholder:r.figmaLinkPlaceholder,value:l.link,onChange:p=>{const x=[...lt];x[h]&&(x[h].link=p.target.value,Cr(x))}}),lt.length>1&&i.jsx("button",{"data-vg-id":"5861c138","data-source-path":"/src/components/ViewGateOverlay.tsx:4465",onClick:()=>Cr(lt.filter((p,x)=>x!==h)),style:{color:"#ef4444",background:"none",border:"none",cursor:"pointer"},children:i.jsx(Ir,{"data-vg-id":"45b44621","data-source-path":"/src/components/ViewGateOverlay.tsx:4466",size:16})})]},h))})]}),Hs&&St.includes("backend")&&i.jsxs("div",{"data-vg-id":"2e783452","data-source-path":"/src/components/ViewGateOverlay.tsx:4477",className:"vg-animate-slide",style:{padding:"16px",borderRadius:"16px",background:"#f8fafc",border:"1px solid #e2e8f0"},children:[i.jsxs("div",{"data-vg-id":"2e783453","data-source-path":"/src/components/ViewGateOverlay.tsx:4478",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px"},children:[i.jsxs("div",{"data-vg-id":"2e783454","data-source-path":"/src/components/ViewGateOverlay.tsx:4479",style:{display:"flex",alignItems:"center",gap:"6px"},children:[i.jsx(Ke,{"data-vg-id":"b1e4c711","data-source-path":"/src/components/ViewGateOverlay.tsx:4480",size:14,style:{color:"#6366f1"}}),i.jsx("span",{"data-vg-id":"81620eb","data-source-path":"/src/components/ViewGateOverlay.tsx:4481",style:{fontSize:"11px",fontWeight:800,color:"#64748b",textTransform:"uppercase"},children:r.endpoint})]}),Xe.length>0&&i.jsxs("span",{"data-vg-id":"81620ec","data-source-path":"/src/components/ViewGateOverlay.tsx:4484",style:{fontSize:"10px",background:"#eef2ff",color:"#6366f1",padding:"2px 8px",borderRadius:"12px",fontWeight:700},children:[Xe.length," ",e==="es"?"seleccionados":"selected"]})]}),i.jsxs("button",{"data-vg-id":"5861c155","data-source-path":"/src/components/ViewGateOverlay.tsx:4489",onClick:()=>z(!0),style:{width:"100%",padding:"12px 16px",fontSize:"14px",borderRadius:"12px",background:"white",border:"1px solid #e2e8f0",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",textAlign:"left",color:Xe.length>0?"#0f172a":"#94a3b8"},children:[i.jsx("div",{"data-vg-id":"2e783459","data-source-path":"/src/components/ViewGateOverlay.tsx:4493",style:{display:"flex",gap:"4px",overflow:"hidden"},children:Xe.length>0?Xe.slice(0,2).map(l=>i.jsx("span",{"data-vg-id":"81620ef","data-source-path":"/src/components/ViewGateOverlay.tsx:4495",style:{background:"#eef2ff",color:"#6366f1",padding:"1px 6px",borderRadius:"4px",fontSize:"11px",fontWeight:600},children:l.split("|").pop()},l)).concat(Xe.length>2?[i.jsxs("span",{"data-vg-id":"81620f0","data-source-path":"/src/components/ViewGateOverlay.tsx:4495",children:["+",Xe.length-2]},"plus")]:[]):r.selectEndpoint}),i.jsx(zo,{"data-vg-id":"1cd393c8","data-source-path":"/src/components/ViewGateOverlay.tsx:4498",size:14,style:{color:"#64748b"}})]})]}),i.jsxs("div",{"data-vg-id":"2e7836fd","data-source-path":"/src/components/ViewGateOverlay.tsx:4503",children:[i.jsx("label",{"data-vg-id":"feec1361","data-source-path":"/src/components/ViewGateOverlay.tsx:4504",style:{display:"block",fontSize:"12px",fontWeight:700,color:"#64748b",marginBottom:"8px",textTransform:"uppercase",letterSpacing:"0.5px"},children:e==="es"?"Mensaje":"Message"}),i.jsx("textarea",{className:"vg-textarea",value:Tc,onChange:l=>Oc(l.target.value),rows:5,style:{minHeight:"120px",fontSize:"15px"}})]})]}),i.jsxs("div",{"data-vg-id":"2e7836ff","data-source-path":"/src/components/ViewGateOverlay.tsx:4515",style:{display:"flex",justifyContent:"flex-end",gap:"12px",marginTop:"16px",paddingTop:"24px",borderTop:"1px solid #f1f5f9"},children:[i.jsx("button",{"data-vg-id":"5861c3fd","data-source-path":"/src/components/ViewGateOverlay.tsx:4516",className:"vg-button-ghost",style:{padding:"12px 24px",fontSize:"14px",borderRadius:"12px",color:"#64748b",fontWeight:700},onClick:()=>{Ds(null),re([])},children:r.cancel}),i.jsx("button",{className:"vg-button-primary vg-animate-pop",style:{padding:"12px 32px",fontSize:"15px",borderRadius:"12px",background:"var(--vg-primary-gradient)",fontWeight:800,boxShadow:"0 10px 25px -5px rgba(99, 102, 241, 0.45)",opacity:ks?.7:1,cursor:ks?"not-allowed":"pointer"},disabled:ks,onClick:async()=>{Kc(!0);try{(await fetch(`${n}/api/annotations/${Ht}`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:hA?`Bearer ${hA}`:"","x-api-key":s||""},body:JSON.stringify({message:Tc,priority:F,focusAreas:St,figmaReference:lt,backendEndpoints:Xe})})).ok&&(Ds(null),Os(),A(r.updateSuccess,"success"))}catch{}finally{Kc(!1)}},children:ks?"...":r.save})]})]})})]})})};function io(t,A,e){if(!A.endsWith(".tsx")&&!A.endsWith(".jsx")||A.includes("node_modules"))return t;const r=g=>g.replace(/\\/g,"/"),s=r(A).replace(r(e),""),n=g=>{let d=0;for(let B=0;B<g.length;B++)d=Math.imul(31,d)+g.charCodeAt(B)|0;return(d>>>0).toString(16)};let o=0;return t.split(`
|
|
20
|
-
`).map((
|
|
21
|
-
`)}function
|
|
9
|
+
${N.rect.left}px ${N.rect.top}px,
|
|
10
|
+
${N.rect.right}px ${N.rect.top}px,
|
|
11
|
+
${N.rect.right}px ${N.rect.bottom}px,
|
|
12
|
+
${N.rect.left}px ${N.rect.bottom}px,
|
|
13
|
+
${N.rect.left}px ${N.rect.top}px
|
|
14
|
+
)`:"none",zIndex:Xo}}),x&&N&&!I&&!Le&&t.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:Ko},children:t.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:[t.jsx(Io,{"data-vg-id":"f840c8ce","data-source-path":"/src/components/ViewGateOverlay.tsx:2267",size:16}),t.jsxs("div",{"data-vg-id":"17fbf98","data-source-path":"/src/components/ViewGateOverlay.tsx:2268",style:{display:"flex",flexDirection:"column"},children:[t.jsx("span",{"data-vg-id":"52d76c64","data-source-path":"/src/components/ViewGateOverlay.tsx:2269",style:{fontWeight:700},children:r.selectToComment}),t.jsxs("span",{"data-vg-id":"52d76c65","data-source-path":"/src/components/ViewGateOverlay.tsx:2270",style:{fontSize:"10px",opacity:.8,fontFamily:"monospace"},children:[Math.round(N.rect.width)," × ",Math.round(N.rect.height)]})]})]})}),!q&&(x||fe||I)&&t.jsx("div",{"data-vg-id":"17fbf9b","data-source-path":"/src/components/ViewGateOverlay.tsx:2280",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:Je},children:t.jsxs("div",{"data-vg-id":"17fbf9c","data-source-path":"/src/components/ViewGateOverlay.tsx:2285",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:[t.jsxs("div",{"data-vg-id":"17fbf9d","data-source-path":"/src/components/ViewGateOverlay.tsx:2294",style:{textAlign:"center",marginBottom:"32px"},children:[t.jsx("div",{"data-vg-id":"17fbf9e","data-source-path":"/src/components/ViewGateOverlay.tsx:2295",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:t.jsx(ds,{"data-vg-id":"422a5ede","data-source-path":"/src/components/ViewGateOverlay.tsx:2301",size:32})}),t.jsx("h2",{"data-vg-id":"efa6bb80","data-source-path":"/src/components/ViewGateOverlay.tsx:2303",style:{margin:"0 0 12px 0",fontSize:"24px",fontWeight:800,color:"#0f172a",letterSpacing:"-0.025em"},children:s==="es"?"ViewGate Protegido":"ViewGate Protected"}),t.jsx("p",{"data-vg-id":"1000def7","data-source-path":"/src/components/ViewGateOverlay.tsx:2306",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."})]}),t.jsxs("form",{"data-vg-id":"a260acc8","data-source-path":"/src/components/ViewGateOverlay.tsx:2313",onSubmit:ir,style:{width:"100%"},children:[t.jsx("div",{"data-vg-id":"17fbfb8","data-source-path":"/src/components/ViewGateOverlay.tsx:2314",style:{position:"relative",marginBottom:"24px"},children:t.jsx("input",{autoFocus:!0,type:"password",value:qe,onChange:a=>js(a.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:a=>{a.target.style.borderColor="var(--vg-primary)",a.target.style.boxShadow="0 0 0 4px rgba(99, 102, 241, 0.1)"},onBlur:a=>{a.target.style.borderColor="#e2e8f0",a.target.style.boxShadow="none"}})}),t.jsxs("button",{type:"submit",disabled:Oa||!qe.trim(),className:"vg-button-primary",style:{width:"100%",padding:"16px",display:"flex",alignItems:"center",justifyContent:"center",gap:"12px",fontSize:"16px",fontWeight:700,opacity:Oa||!qe.trim()?.7:1,boxShadow:"0 10px 15px -3px rgba(99, 102, 241, 0.3)"},children:[Oa?t.jsx(Mt,{"data-vg-id":"cb81c82b","data-source-path":"/src/components/ViewGateOverlay.tsx:2361",size:20,className:"vg-animate-spin"}):t.jsx(No,{"data-vg-id":"d69f974c","data-source-path":"/src/components/ViewGateOverlay.tsx:2363",size:20}),s==="es"?"Desbloquear":"Unlock Now"]})]}),t.jsx("div",{"data-vg-id":"17fbfbb","data-source-path":"/src/components/ViewGateOverlay.tsx:2369",style:{margin:"32px 0 24px",height:"1px",background:"linear-gradient(to right, transparent, #e2e8f0, transparent)"}}),t.jsx("button",{onClick:()=>{J(null),j(!1),Ae(!1)},className:"vg-button-ghost",style:{width:"100%",padding:"12px",fontSize:"14px",color:"#94a3b8"},children:s==="es"?"Cerrar ViewGate":"Close ViewGate"}),t.jsx("div",{"data-vg-id":"17fbfbc","data-source-path":"/src/components/ViewGateOverlay.tsx:2383",style:{marginTop:"24px",textAlign:"center"},children:t.jsx("p",{"data-vg-id":"1000defe","data-source-path":"/src/components/ViewGateOverlay.tsx:2384",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"})})]})}),I&&ne&&t.jsx("div",{"data-vg-id":"17fbfd3","data-source-path":"/src/components/ViewGateOverlay.tsx:2397",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:Je},children:t.jsxs("div",{"data-vg-id":"17fbfd4","data-source-path":"/src/components/ViewGateOverlay.tsx:2402",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:[t.jsxs("div",{"data-vg-id":"17fbfd5","data-source-path":"/src/components/ViewGateOverlay.tsx:2412",style:{padding:"24px 24px 16px",textAlign:"center",borderBottom:"1px solid rgba(0,0,0,0.05)",flexShrink:0,position:"relative"},children:[ne&&t.jsxs("div",{"data-vg-id":"17fbfd6","data-source-path":"/src/components/ViewGateOverlay.tsx:2414",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:[t.jsx("span",{"data-vg-id":"52d76ca2","data-source-path":"/src/components/ViewGateOverlay.tsx:2431",style:{fontSize:"10px",fontWeight:800,color:"#64748b",textTransform:"uppercase"},children:ne.name.split(" ")[0]}),ne.avatar?t.jsx("img",{"data-vg-id":"a398766","data-source-path":"/src/components/ViewGateOverlay.tsx:2435",src:ne.avatar,style:{width:"24px",height:"24px",borderRadius:"50%"},alt:""}):t.jsx("div",{"data-vg-id":"17fbfd9","data-source-path":"/src/components/ViewGateOverlay.tsx:2437",style:{width:"24px",height:"24px",borderRadius:"50%",background:"#6366f1",color:"white",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"10px",fontWeight:700},children:ne.name?.[0]})]}),t.jsx("div",{"data-vg-id":"17fbfda","data-source-path":"/src/components/ViewGateOverlay.tsx:2443",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:t.jsx(Lt,{"data-vg-id":"10c62228","data-source-path":"/src/components/ViewGateOverlay.tsx:2448",size:20})}),t.jsx("h2",{"data-vg-id":"efa6bba7","data-source-path":"/src/components/ViewGateOverlay.tsx:2450",style:{margin:"0 0 4px 0",fontSize:"20px",fontWeight:800,color:"#0f172a"},children:r.feedbackHeader}),t.jsx("p",{"data-vg-id":"1000df33","data-source-path":"/src/components/ViewGateOverlay.tsx:2451",style:{margin:0,color:"#64748b",fontSize:"14px"},children:r.feedbackSubheader})]}),t.jsxs("div",{"data-vg-id":"17fbff3","data-source-path":"/src/components/ViewGateOverlay.tsx:2455",className:"vg-custom-scrollbar",style:{flex:1,overflowY:"auto",padding:"24px",display:"flex",flexDirection:"column"},children:[I.visualPreview&&t.jsx("div",{"data-vg-id":"17fbff4","data-source-path":"/src/components/ViewGateOverlay.tsx:2464",style:{marginBottom:"24px",borderRadius:"12px",width:"fit-content",maxWidth:"100%",maxHeight:"45vh",alignSelf:"center",overflow:"hidden",display:"flex"},children:t.jsx("img",{src:I.visualPreview,alt:"Preview",style:{maxWidth:"100%",maxHeight:"45vh",objectFit:"contain",display:"block"}})}),t.jsx("textarea",{className:"vg-textarea",value:ae,onChange:a=>D(a.target.value),rows:4,placeholder:r.placeholder,autoFocus:!0,style:{fontSize:"15px",padding:"16px",marginBottom:"24px",minHeight:"120px"}}),t.jsxs("div",{"data-vg-id":"17fbff5","data-source-path":"/src/components/ViewGateOverlay.tsx:2498",style:{marginBottom:"24px"},children:[t.jsx("label",{"data-vg-id":"18bd4b33","data-source-path":"/src/components/ViewGateOverlay.tsx:2499",style:{fontSize:"12px",fontWeight:700,color:"#64748b",marginBottom:"8px",display:"block"},children:r.priority}),t.jsx("div",{"data-vg-id":"17fbff7","data-source-path":"/src/components/ViewGateOverlay.tsx:2502",style:{display:"flex",gap:"8px"},children:["low","medium","high","urgent"].map(a=>t.jsx("button",{onClick:()=>C(a),style:{flex:1,padding:"12px 6px",borderRadius:"8px",fontSize:"13px",fontWeight:700,border:"1px solid",borderColor:V===a?a==="low"?"#10b981":a==="medium"?"#6366f1":a==="high"?"#f59e0b":"#ef4444":"#e2e8f0",backgroundColor:V===a?a==="low"?"#ecfdf5":a==="medium"?"#eef2ff":a==="high"?"#fffbeb":"#fef2f2":"white",color:V===a?a==="low"?"#059669":a==="medium"?"#4338ca":a==="high"?"#b45309":"#b91c1c":"#64748b",cursor:"pointer",transition:"all 0.2s",textTransform:"uppercase"},children:r[a]},a))})]}),t.jsxs("div",{"data-vg-id":"17fbff8","data-source-path":"/src/components/ViewGateOverlay.tsx:2529",style:{marginBottom:"24px"},children:[t.jsx("label",{"data-vg-id":"18bd4b36","data-source-path":"/src/components/ViewGateOverlay.tsx:2530",style:{fontSize:"12px",fontWeight:700,color:"#64748b",marginBottom:"8px",display:"block"},children:r.focusAreas}),t.jsx("div",{"data-vg-id":"17fbffa","data-source-path":"/src/components/ViewGateOverlay.tsx:2533",style:{display:"flex",gap:"8px",marginBottom:M.length>0?"12px":"0"},children:[{id:"frontend",label:r.frontend,icon:t.jsx(zt,{"data-vg-id":"377c172e","data-source-path":"/src/components/ViewGateOverlay.tsx:2535",size:14}),color:"#10b981",bg:"#ecfdf5",border:"#d1fae5"},{id:"backend",label:r.backend,icon:t.jsx(Be,{"data-vg-id":"7117e5d5","data-source-path":"/src/components/ViewGateOverlay.tsx:2536",size:14}),color:"#6366f1",bg:"#eef2ff",border:"#e0e7ff"},{id:"ux",label:r.ux,icon:t.jsx(vt,{"data-vg-id":"de42479a","data-source-path":"/src/components/ViewGateOverlay.tsx:2537",size:14}),color:"#d946ef",bg:"#fdf4ff",border:"#f5d0fe"}].filter(a=>a.id==="backend"?Ut:a.id==="ux"?R:!0).map(a=>{const n=M.includes(a.id);return t.jsxs("button",{onClick:()=>{n?de(M.filter(i=>i!==a.id)):(de([...M,a.id]),a.id==="backend"&&Ca())},style:{flex:1,padding:"10px 4px",borderRadius:"8px",fontSize:"12px",fontWeight:700,border:"1px solid",borderColor:n?a.color:"#e2e8f0",backgroundColor:n?a.bg:"white",color:n?a.color:"#64748b",cursor:"pointer",transition:"all 0.2s",display:"flex",alignItems:"center",justifyContent:"center",gap:"6px"},children:[a.icon,a.label]},a.id)})}),M.includes("ux")&&t.jsxs("div",{"data-vg-id":"17fc013","data-source-path":"/src/components/ViewGateOverlay.tsx:2584",className:"vg-animate-slide",style:{marginBottom:"16px"},children:[t.jsxs("div",{"data-vg-id":"17fc014","data-source-path":"/src/components/ViewGateOverlay.tsx:2585",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px"},children:[t.jsxs("div",{"data-vg-id":"17fc015","data-source-path":"/src/components/ViewGateOverlay.tsx:2586",style:{display:"flex",alignItems:"center",gap:"6px"},children:[t.jsx(Pt,{"data-vg-id":"38884e11","data-source-path":"/src/components/ViewGateOverlay.tsx:2587",size:14,style:{color:"#d946ef"}}),t.jsx("span",{"data-vg-id":"52d76ce2","data-source-path":"/src/components/ViewGateOverlay.tsx:2588",style:{fontSize:"11px",fontWeight:800,color:"#64748b",textTransform:"uppercase",letterSpacing:"0.05em"},children:r.figmaLink})]}),t.jsxs("button",{"data-vg-id":"23e21f7b","data-source-path":"/src/components/ViewGateOverlay.tsx:2592",onClick:()=>re([...H,{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:a=>a.currentTarget.style.background="rgba(217, 70, 239, 0.15)",onMouseLeave:a=>a.currentTarget.style.background="rgba(217, 70, 239, 0.1)",children:[t.jsx(zo,{"data-vg-id":"11a60c74","data-source-path":"/src/components/ViewGateOverlay.tsx:2611",size:10})," ",r.addLink]})]}),t.jsx("div",{"data-vg-id":"17fc01a","data-source-path":"/src/components/ViewGateOverlay.tsx:2615",style:{display:"flex",flexDirection:"column",gap:"8px"},children:H.map((a,n)=>t.jsxs("div",{"data-vg-id":"17fc030","data-source-path":"/src/components/ViewGateOverlay.tsx:2617",style:{display:"flex",gap:"6px",alignItems:"flex-start"},className:"vg-animate-slide",children:[t.jsxs("div",{"data-vg-id":"17fc031","data-source-path":"/src/components/ViewGateOverlay.tsx:2618",style:{flex:1,display:"flex",flexDirection:"column",gap:"4px"},children:[t.jsx("input",{"data-vg-id":"a993bad9","data-source-path":"/src/components/ViewGateOverlay.tsx:2619",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:a.name,onChange:i=>{const u=[...H];u[n]&&(u[n].name=i.target.value,re(u))}}),t.jsx("input",{"data-vg-id":"a993bada","data-source-path":"/src/components/ViewGateOverlay.tsx:2633",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:a.link,onChange:i=>{const u=[...H];u[n]&&(u[n].link=i.target.value,re(u))}})]}),H.length>1&&t.jsx("button",{"data-vg-id":"23e21f97","data-source-path":"/src/components/ViewGateOverlay.tsx:2649",onClick:()=>re(H.filter((i,u)=>u!==n)),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:i=>i.currentTarget.style.background="rgba(239, 68, 68, 0.1)",onMouseLeave:i=>i.currentTarget.style.background="rgba(239, 68, 68, 0.05)",children:t.jsx(Wt,{"data-vg-id":"e1375db0","data-source-path":"/src/components/ViewGateOverlay.tsx:2666",size:14})})]},n))})]}),je.length>0&&M.includes("backend")&&t.jsxs("div",{"data-vg-id":"17fc036","data-source-path":"/src/components/ViewGateOverlay.tsx:2678",className:"vg-animate-slide",style:{marginBottom:"16px"},children:[t.jsxs("div",{"data-vg-id":"17fc037","data-source-path":"/src/components/ViewGateOverlay.tsx:2679",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px"},children:[t.jsxs("div",{"data-vg-id":"17fc038","data-source-path":"/src/components/ViewGateOverlay.tsx:2680",style:{display:"flex",alignItems:"center",gap:"6px"},children:[t.jsx(Be,{"data-vg-id":"7117e5fd","data-source-path":"/src/components/ViewGateOverlay.tsx:2681",size:14,style:{color:"#6366f1"}}),t.jsx("span",{"data-vg-id":"52d76d1a","data-source-path":"/src/components/ViewGateOverlay.tsx:2682",style:{fontSize:"11px",fontWeight:700,color:"#64748b"},children:r.endpoint})]}),L.length>0&&t.jsxs("span",{"data-vg-id":"52d76d1b","data-source-path":"/src/components/ViewGateOverlay.tsx:2685",style:{fontSize:"10px",background:"#eef2ff",color:"#6366f1",padding:"2px 8px",borderRadius:"12px",fontWeight:700},children:[L.length," ",s==="es"?"seleccionados":"selected"]})]}),t.jsxs("button",{"data-vg-id":"23e21fb4","data-source-path":"/src/components/ViewGateOverlay.tsx:2691",onClick:()=>P(!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:L.length>0?"#0f172a":"#94a3b8"},children:[t.jsx("div",{"data-vg-id":"17fc052","data-source-path":"/src/components/ViewGateOverlay.tsx:2710",style:{display:"flex",gap:"4px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:L.length>0?L.slice(0,2).map(a=>{const n=a.split("|"),i=n.length>1?n[0]:"",u=n.length>1?n[1]:a;return t.jsxs("span",{"data-vg-id":"52d76d1e","data-source-path":"/src/components/ViewGateOverlay.tsx:2717",style:{background:"rgba(99, 102, 241, 0.1)",color:"#6366f1",padding:"1px 6px",borderRadius:"4px",fontSize:"11px",fontWeight:600},children:[i&&t.jsx("span",{"data-vg-id":"52d76d1f","data-source-path":"/src/components/ViewGateOverlay.tsx:2725",style:{opacity:.6,marginRight:"4px"},children:i}),(u||"").split("/").pop()||u]},a)}).concat(L.length>2?[t.jsxs("span",{"data-vg-id":"52d76d20","data-source-path":"/src/components/ViewGateOverlay.tsx:2729",children:["+",L.length-2]},"more")]:[]):r.selectEndpoint}),t.jsx(is,{"data-vg-id":"c71f9a0a","data-source-path":"/src/components/ViewGateOverlay.tsx:2732",size:14,style:{color:"#64748b"}})]})]})]})]}),t.jsxs("div",{"data-vg-id":"17fc057","data-source-path":"/src/components/ViewGateOverlay.tsx:2741",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:[t.jsx("button",{onClick:()=>{oe||(J(null),j(!1))},className:"vg-button-ghost",disabled:oe,style:{flex:1,padding:"12px"},children:r.cancel}),t.jsx("button",{onClick:ur,className:"vg-button-primary",disabled:oe||!ae.trim()||M.includes("backend")&&L.length===0||M.includes("ux")&&H.some(a=>!a.name.trim()||!a.link.trim()),style:{flex:2,opacity:oe||!ae.trim()||M.includes("backend")&&L.length===0||M.includes("ux")&&H.some(a=>!a.name.trim()||!a.link.trim())?.6:1,cursor:oe||!ae.trim()||M.includes("backend")&&L.length===0||M.includes("ux")&&H.some(a=>!a.name.trim()||!a.link.trim())?"not-allowed":"pointer"},children:t.jsxs("div",{"data-vg-id":"17fc058","data-source-path":"/src/components/ViewGateOverlay.tsx:2778",style:{display:"flex",alignItems:"center",gap:"8px"},children:[oe?t.jsx("div",{"data-vg-id":"17fc06e","data-source-path":"/src/components/ViewGateOverlay.tsx:2779",className:"vg-spinner",style:{width:"16px",height:"16px",borderWidth:"2px"}}):t.jsx(Mo,{"data-vg-id":"a3fd5c1c","data-source-path":"/src/components/ViewGateOverlay.tsx:2779",size:18}),t.jsx("span",{"data-vg-id":"52d76d3b","data-source-path":"/src/components/ViewGateOverlay.tsx:2780",children:oe?r.submitting:r.sendFeedback||"Send Comment"})]})})]})]})}),fe&&t.jsx("div",{"data-vg-id":"17fc071","data-source-path":"/src/components/ViewGateOverlay.tsx:2791",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:Je},children:t.jsxs("div",{"data-vg-id":"17fc072","data-source-path":"/src/components/ViewGateOverlay.tsx:2797",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:[t.jsxs("div",{"data-vg-id":"17fc073","data-source-path":"/src/components/ViewGateOverlay.tsx:2802",style:{display:"flex",flexDirection:"column",gap:"16px",marginBottom:"24px"},children:[t.jsxs("div",{"data-vg-id":"17fc074","data-source-path":"/src/components/ViewGateOverlay.tsx:2803",style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[t.jsx("h2",{"data-vg-id":"efa6bc40","data-source-path":"/src/components/ViewGateOverlay.tsx:2804",style:{margin:0,fontSize:"20px",fontWeight:800,color:"#0f172a",whiteSpace:"nowrap"},children:K?r.commentDetails:r.annotations}),t.jsxs("div",{"data-vg-id":"17fc076","data-source-path":"/src/components/ViewGateOverlay.tsx:2807",style:{display:"flex",alignItems:"center",gap:"12px"},children:[ne?t.jsxs("div",{"data-vg-id":"17fc077","data-source-path":"/src/components/ViewGateOverlay.tsx:2809",style:{display:"flex",alignItems:"center",gap:"8px",padding:"4px 12px",background:"rgba(99, 102, 241, 0.1)",borderRadius:"20px"},children:[ne.avatar?t.jsx("img",{"data-vg-id":"3cf759ac","data-source-path":"/src/components/ViewGateOverlay.tsx:2811",src:ne.avatar,style:{width:"20px",height:"20px",borderRadius:"50%"},alt:""}):t.jsx("div",{"data-vg-id":"2e782f7b","data-source-path":"/src/components/ViewGateOverlay.tsx:2813",style:{width:"20px",height:"20px",borderRadius:"50%",background:"#6366f1",color:"white",fontSize:"10px",display:"flex",alignItems:"center",justifyContent:"center"},children:ne.name?.[0]}),t.jsx("span",{"data-vg-id":"8161c11","data-source-path":"/src/components/ViewGateOverlay.tsx:2817",style:{fontSize:"12px",fontWeight:600,color:"#4338ca"},children:ne.name})]}):t.jsx("div",{"data-vg-id":"2e782f7d","data-source-path":"/src/components/ViewGateOverlay.tsx:2824",style:{fontSize:"12px",color:"#64748b",fontWeight:600},children:s==="es"?"Sin usuario":"No user selected"}),t.jsx("button",{className:"vg-button-ghost",style:{padding:"8px",borderRadius:"50%"},onClick:()=>{Ae(!1),We(null),Zt(null),ue("all")},children:t.jsx(yt,{"data-vg-id":"eec8c445","data-source-path":"/src/components/ViewGateOverlay.tsx:2833",size:20})})]})]}),t.jsx("div",{"data-vg-id":"2e782f7f","data-source-path":"/src/components/ViewGateOverlay.tsx:2837",style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center",width:"100%"},children:(()=>{const a=Array.isArray(te)?te:[],n=K?nt.find(O=>O.annotations?.some($=>$._id===K)):null,u=(n?n.annotations:a).filter(O=>O.status!=="completed"&&O.status!=="done"),y=u.filter(O=>O.status!=="ready_for_review").length,k=u.filter(O=>O.status==="ready_for_review").length,E=u.length;return E<=0?E===0?null:t.jsxs("div",{"data-vg-id":"2e782f80","data-source-path":"/src/components/ViewGateOverlay.tsx:2851",style:{display:"flex",gap:"8px",opacity:.9},children:[y>0&&t.jsxs("div",{"data-vg-id":"2e782f81","data-source-path":"/src/components/ViewGateOverlay.tsx:2853",className:"vg-badge",style:{background:"#fff7ed",color:"#c2410c",border:"1px solid #ffedd5",fontSize:"11px",padding:"2px 8px"},children:[y," ",y===1?"pendiente":"pendientes"]}),k>0&&t.jsxs("div",{"data-vg-id":"2e782f82","data-source-path":"/src/components/ViewGateOverlay.tsx:2858",className:"vg-badge",style:{background:"#f3e8ff",color:"#a855f7",border:"1px solid #e9d5ff",fontSize:"11px",padding:"2px 8px"},children:[k," ",s==="es"?k===1?"Listo para revisión":"Listos para revisión":"ready for review"]})]}):t.jsxs(t.Fragment,{children:[!m&&t.jsxs("div",{"data-vg-id":"2e782f83","data-source-path":"/src/components/ViewGateOverlay.tsx:2869",className:"vg-segmented-control",style:{marginBottom:"4px"},children:[t.jsx("div",{className:"vg-segmented-slider",style:{left:ie===null?"4px":ie==="pending"?"calc(4px + (100% - 8px) / 3)":"calc(4px + 2 * (100% - 8px) / 3)",width:"calc((100% - 8px) / 3)",background:ie===null?"var(--vg-primary)":ie==="pending"?"#ea580c":"#a855f7",boxShadow:ie===null?"0 4px 12px rgba(99, 102, 241, 0.3)":ie==="pending"?"0 4px 12px rgba(234, 88, 12, 0.3)":"0 4px 12px rgba(168, 85, 247, 0.3)"}}),t.jsxs("div",{onClick:()=>Zt(null),className:`vg-segmented-item ${ie===null?"active":""}`,children:[r.viewAll||"Todos"," (",E,")"]}),t.jsxs("div",{onClick:()=>Zt("pending"),className:`vg-segmented-item ${ie==="pending"?"active":""}`,children:[s==="es"?y===1?"Pendiente":"Pendientes":"Pending"," (",y,")"]}),t.jsxs("div",{onClick:()=>Zt("ready"),className:`vg-segmented-item ${ie==="ready"?"active":""}`,children:[s==="es"?"Listo para revisión":"Ready for Review"," (",k,")"]})]}),t.jsxs("div",{"data-vg-id":"2e782f99","data-source-path":"/src/components/ViewGateOverlay.tsx:2900",style:{display:"flex",gap:"6px",justifyContent:"center",flexWrap:"wrap",marginTop:m?"0":"4px"},children:[t.jsxs("button",{onClick:()=>ue("all"),style:{padding:"8px 16px",borderRadius:"20px",fontSize:"12px",fontWeight:700,border:"1px solid",borderColor:v==="all"?"var(--vg-primary)":"#e2e8f0",backgroundColor:v==="all"?"var(--vg-primary)":"transparent",color:v==="all"?"white":"#64748b",cursor:"pointer",transition:"all 0.2s"},children:[r.viewAll||"Todos"," (",u.filter(O=>m?!0:ie==="pending"?O.status!=="ready_for_review":ie==="ready"?O.status==="ready_for_review":!0).length,")"]}),["low","medium","high","urgent"].map(O=>{const $=u.filter(G=>m?!0:ie==="pending"?G.status!=="ready_for_review":ie==="ready"?G.status==="ready_for_review":!0).filter(G=>(G.priority||"medium")===O).length;return $===0&&v!==O?null:t.jsxs("button",{onClick:()=>ue(O),style:{padding:"8px 16px",borderRadius:"20px",fontSize:"12px",fontWeight:700,border:"1px solid",borderColor:v===O?O==="low"?"#10b981":O==="medium"?"#6366f1":O==="high"?"#f59e0b":"#ef4444":"#e2e8f0",backgroundColor:v===O?O==="low"?"#ecfdf5":O==="medium"?"#eef2ff":O==="high"?"#fffbeb":"#fef2f2":"transparent",color:v===O?O==="low"?"#059669":O==="medium"?"#4338ca":O==="high"?"#b45309":"#b91c1c":"#64748b",cursor:"pointer",transition:"all 0.2s",textTransform:"uppercase"},children:[r[O]," (",$,")"]},O)})]})]})})()})]}),t.jsx("div",{style:{flex:1,overflowY:"auto",paddingRight:"10px",overflowX:"hidden"},className:"vg-custom-scrollbar",children:$e?t.jsx("div",{"data-vg-id":"2e782f9a","data-source-path":"/src/components/ViewGateOverlay.tsx:2966",style:{display:"flex",justifyContent:"center",padding:"40px"},children:t.jsx("div",{"data-vg-id":"2e782f9b","data-source-path":"/src/components/ViewGateOverlay.tsx:2967",className:"vg-spinner"})}):Va.map((a,n)=>t.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:`${n*.05}s`},children:[t.jsxs("div",{"data-vg-id":"2e782f9c","data-source-path":"/src/components/ViewGateOverlay.tsx:2982",style:{display:"flex",justifyContent:"space-between",marginBottom:"16px",alignItems:"center"},children:[t.jsxs("div",{"data-vg-id":"2e782f9d","data-source-path":"/src/components/ViewGateOverlay.tsx:2983",style:{display:"flex",gap:"12px",alignItems:"center"},children:[t.jsx("span",{"data-vg-id":"8161c33","data-source-path":"/src/components/ViewGateOverlay.tsx:2984",style:{fontSize:"12px",color:"#000000",fontWeight:600},children:ms(a.timestamp||a.createdAt||a.reference?.timestamp,s)}),t.jsx("div",{"data-vg-id":"2e782f9f","data-source-path":"/src/components/ViewGateOverlay.tsx:2987",onClick:i=>{i.stopPropagation();const u=a.key||`VG-${a._id.slice(-6).toUpperCase()}`;navigator.clipboard.writeText(u);const y=i.currentTarget;y.innerText="¡Copiado!",y.style.color="#22c55e",setTimeout(()=>{y.innerText=u,y.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:a.key||`VG-${a._id.slice(-6).toUpperCase()}`}),a.reference?.metadata?.isModal&&t.jsx("span",{"data-vg-id":"8161c35","data-source-path":"/src/components/ViewGateOverlay.tsx:3016",className:"vg-badge",style:{fontSize:"10px",background:m?"#f1f5f9":a.status==="completed"||a.status==="done"?"#ecfdf5":a.status==="ready_for_review"?"#f3e8ff":"#fef3c7",color:m?"#64748b":a.status==="completed"||a.status==="done"?"#059669":a.status==="ready_for_review"?"#a855f7":"#92400e",border:"none",padding:"2px 6px"},children:"MODAL"}),a.creator&&t.jsx("div",{"data-vg-id":"2e782fa1","data-source-path":"/src/components/ViewGateOverlay.tsx:3025",style:{display:"flex",alignItems:"center",background:"#f8fafc",padding:"2px",borderRadius:"50%",border:"1px solid #e2e8f0",marginLeft:"4px"},children:a.creator.avatar?t.jsx("img",{"data-vg-id":"3cf759d4","data-source-path":"/src/components/ViewGateOverlay.tsx:3035",src:a.creator.avatar,style:{width:"16px",height:"16px",borderRadius:"50%"},alt:""}):t.jsx("div",{"data-vg-id":"2e782fb8","data-source-path":"/src/components/ViewGateOverlay.tsx:3037",style:{width:"16px",height:"16px",borderRadius:"50%",background:"#6366f1",color:"white",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"8px",fontWeight:700},children:a.creator.name?.[0]})}),a.url&&t.jsx(hs,{url:a.url,onHover:Gs,style:{display:"flex",alignItems:"center",gap:"4px",fontSize:"11px",color:"#64748b",background:"#f8fafc",padding:"2px 8px",borderRadius:"6px",border:"1px solid #e2e8f0",maxWidth:"220px"}}),(a.focusAreas?.length>0?a.focusAreas:[...a.backendEndpoints?.length>0?["backend"]:[],...a.figmaReference?.length>0?["ux"]:[]]).map(i=>t.jsxs("span",{"data-vg-id":"8161c4e","data-source-path":"/src/components/ViewGateOverlay.tsx:3063",style:{fontSize:"10px",fontWeight:800,textTransform:"uppercase",padding:"4px 10px",borderRadius:"24px",background:i==="frontend"?"linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%)":i==="backend"?"linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%)":"linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%)",color:i==="frontend"?"#059669":i==="backend"?"#4f46e5":"#c026d3",display:"flex",alignItems:"center",gap:"4px",border:`1px solid ${i==="frontend"?"#a7f3d0":i==="backend"?"#c7d2fe":"#fbcfe8"}`,boxShadow:i==="frontend"?"0 2px 4px rgba(5, 150, 105, 0.05)":i==="backend"?"0 2px 4px rgba(79, 70, 229, 0.05)":"0 2px 4px rgba(192, 38, 211, 0.05)",letterSpacing:"0.02em"},children:[i==="frontend"?t.jsx(zt,{"data-vg-id":"b806bee7","data-source-path":"/src/components/ViewGateOverlay.tsx:3071",size:11,strokeWidth:2.5}):i==="backend"?t.jsx(Be,{"data-vg-id":"b1e4c277","data-source-path":"/src/components/ViewGateOverlay.tsx:3071",size:11,strokeWidth:2.5}):t.jsx(vt,{"data-vg-id":"ea069934","data-source-path":"/src/components/ViewGateOverlay.tsx:3071",size:11,strokeWidth:2.5}),i==="frontend"?"Frontend":i==="backend"?"Backend":"UX / UI"]},i))]}),a.status==="completed"?t.jsxs("span",{"data-vg-id":"8161c52","data-source-path":"/src/components/ViewGateOverlay.tsx:3077",className:"vg-badge",style:{backgroundColor:"#ecfdf5",color:"#059669",border:"1px solid #d1fae5"},children:[t.jsx(Ke,{"data-vg-id":"a75c1a63","data-source-path":"/src/components/ViewGateOverlay.tsx:3078",size:14})," ",r.completed||(s==="es"?"Listo para revisión":"Ready for Review")]}):a.status==="ready_for_review"?t.jsxs("span",{"data-vg-id":"8161c54","data-source-path":"/src/components/ViewGateOverlay.tsx:3081",className:"vg-badge",style:{backgroundColor:"#f3e8ff",color:"#a855f7",border:"1px solid #e9d5ff"},children:[t.jsx(Ke,{"data-vg-id":"a75c1a65","data-source-path":"/src/components/ViewGateOverlay.tsx:3082",size:14})," ",r.readyForReview]}):a.status==="bug_fixing"?t.jsxs("span",{"data-vg-id":"8161c56","data-source-path":"/src/components/ViewGateOverlay.tsx:3085",className:"vg-badge",style:{backgroundColor:"#fff1f2",color:"#e11d48",border:"1px solid #ffe4e6"},children:[t.jsx(xt,{"data-vg-id":"3b8b181a","data-source-path":"/src/components/ViewGateOverlay.tsx:3086",size:14})," ","Bug Fixing"]}):t.jsxs("span",{"data-vg-id":"8161c6d","data-source-path":"/src/components/ViewGateOverlay.tsx:3089",className:"vg-badge",style:{backgroundColor:m||a.status==="backlog"?"#f1f5f9":"#fff7ed",color:m||a.status==="backlog"?"#64748b":"#ea580c",border:m||a.status==="backlog"?"1px solid #e2e8f0":"1px solid #ffedd5"},children:[t.jsx(cs,{"data-vg-id":"62dc6c36","data-source-path":"/src/components/ViewGateOverlay.tsx:3094",size:14}),m||a.status==="backlog"?r.backlog:r.pending]})]}),(a.screenshot||a.reference?.previewUrl)&&t.jsx("div",{"data-vg-id":"2e782fda","data-source-path":"/src/components/ViewGateOverlay.tsx:3101",style:{margin:"0 0 20px 0",borderRadius:"8px",overflow:"hidden",width:"fit-content",maxWidth:"100%",maxHeight:"280px",alignSelf:"center",display:"flex"},children:t.jsx("img",{"data-vg-id":"3cf75a0d","data-source-path":"/src/components/ViewGateOverlay.tsx:3111",src:a.screenshot||a.reference?.previewUrl,alt:"Visual Preview",style:{maxWidth:"100%",maxHeight:"280px",objectFit:"contain",display:"block"}})}),t.jsxs("div",{"data-vg-id":"2e782fdc","data-source-path":"/src/components/ViewGateOverlay.tsx:3124",style:{marginBottom:"20px"},children:[t.jsx("div",{"data-vg-id":"2e782fdd","data-source-path":"/src/components/ViewGateOverlay.tsx:3125",style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"8px"},children:t.jsxs("div",{"data-vg-id":"2e782fde","data-source-path":"/src/components/ViewGateOverlay.tsx:3126",style:{fontSize:"10px",fontWeight:800,color:a.priority==="low"?"#059669":a.priority==="urgent"?"#b91c1c":a.priority==="high"?"#b45309":"#4338ca",backgroundColor:a.priority==="low"?"#ecfdf5":a.priority==="urgent"?"#fef2f2":a.priority==="high"?"#fffbeb":"#eef2ff",padding:"4px 10px",borderRadius:"6px",letterSpacing:"0.5px",border:"1px solid",borderColor:a.priority==="low"?"#d1fae5":a.priority==="urgent"?"#fee2e2":a.priority==="high"?"#fef3c7":"#e0e7ff"},children:[r.priority,": ",r[a.priority||"medium"]]})}),t.jsx("p",{"data-vg-id":"f01af8be","data-source-path":"/src/components/ViewGateOverlay.tsx:3140",className:"vg-text-wrap",style:{margin:"0",fontSize:"16px",color:"#1e293b",lineHeight:1.6},children:a.message}),a.figmaReference?.length>0&&t.jsxs("div",{"data-vg-id":"2e782fe0","data-source-path":"/src/components/ViewGateOverlay.tsx:3145",style:{marginTop:"16px",display:"flex",flexDirection:"column",gap:"8px",padding:"12px",background:"#faf5ff",borderRadius:"12px",border:"1px solid #fae8ff"},children:[t.jsxs("div",{"data-vg-id":"2e782ff6","data-source-path":"/src/components/ViewGateOverlay.tsx:3146",style:{display:"flex",alignItems:"center",gap:"6px",marginBottom:"4px"},children:[t.jsx(vt,{"data-vg-id":"ea06996f","data-source-path":"/src/components/ViewGateOverlay.tsx:3147",size:14,style:{color:"#d946ef"}}),t.jsx("span",{"data-vg-id":"8161c8d","data-source-path":"/src/components/ViewGateOverlay.tsx:3148",style:{fontSize:"11px",fontWeight:800,color:"#a21caf",textTransform:"uppercase",letterSpacing:"0.05em"},children:s==="es"?"Diseños Figma":"Figma Designs"})]}),a.figmaReference.map((i,u)=>t.jsxs("a",{"data-vg-id":"ef479849","data-source-path":"/src/components/ViewGateOverlay.tsx:3151",href:i.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:y=>{y.currentTarget.style.transform="translateY(-2px)",y.currentTarget.style.boxShadow="0 4px 12px rgba(217, 70, 239, 0.15)",y.currentTarget.style.borderColor="#d946ef"},onMouseLeave:y=>{y.currentTarget.style.transform="translateY(0)",y.currentTarget.style.boxShadow="0 2px 4px rgba(217, 70, 239, 0.05)",y.currentTarget.style.borderColor="#f5d0fe"},children:[t.jsxs("div",{"data-vg-id":"2e782ffa","data-source-path":"/src/components/ViewGateOverlay.tsx:3159",style:{display:"flex",alignItems:"center",gap:"8px"},children:[t.jsx("div",{"data-vg-id":"2e782ffb","data-source-path":"/src/components/ViewGateOverlay.tsx:3160",style:{width:"24px",height:"24px",borderRadius:"6px",background:"rgba(217, 70, 239, 0.1)",display:"flex",alignItems:"center",justifyContent:"center"},children:t.jsx(zt,{"data-vg-id":"b806bf29","data-source-path":"/src/components/ViewGateOverlay.tsx:3161",size:12,strokeWidth:3})}),t.jsx("span",{"data-vg-id":"8161c92","data-source-path":"/src/components/ViewGateOverlay.tsx:3163",style:{fontWeight:700},children:i.name||"Figma Reference"})]}),t.jsx(ba,{"data-vg-id":"5c2be04e","data-source-path":"/src/components/ViewGateOverlay.tsx:3165",size:14,style:{opacity:.5}})]},u))]}),a.backendEndpoints?.length>0&&t.jsxs("div",{"data-vg-id":"2e782fff","data-source-path":"/src/components/ViewGateOverlay.tsx:3172",style:{marginTop:"16px",display:"flex",flexDirection:"column",gap:"8px",padding:"12px",background:"#f5f8ff",borderRadius:"12px",border:"1px solid #e0e7ff"},children:[t.jsxs("div",{"data-vg-id":"2e783015","data-source-path":"/src/components/ViewGateOverlay.tsx:3173",style:{display:"flex",alignItems:"center",gap:"6px",marginBottom:"4px"},children:[t.jsx(Be,{"data-vg-id":"b1e4c2d2","data-source-path":"/src/components/ViewGateOverlay.tsx:3174",size:14,style:{color:"#4f46e5"}}),t.jsx("span",{"data-vg-id":"8161cac","data-source-path":"/src/components/ViewGateOverlay.tsx:3175",style:{fontSize:"11px",fontWeight:800,color:"#3730a3",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Backend Endpoints"})]}),t.jsx("div",{"data-vg-id":"2e783018","data-source-path":"/src/components/ViewGateOverlay.tsx:3177",style:{display:"flex",flexWrap:"wrap",gap:"8px"},children:a.backendEndpoints.map(i=>{const u=i.split("|"),y=u.length>1?u[0]:"";let k=u.length>1?u[1]||"":i||"",E="#4f46e5",O="#e0e7ff";return y==="GET"?(E="#059669",O="#d1fae5"):y==="POST"?(E="#ea580c",O="#ffedd5"):y==="PUT"?(E="#0284c7",O="#e0f2fe"):y==="DELETE"&&(E="#e11d48",O="#ffe4e6"),t.jsxs("div",{"data-vg-id":"2e783019","data-source-path":"/src/components/ViewGateOverlay.tsx:3192",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:[y&&t.jsx("span",{"data-vg-id":"8161caf","data-source-path":"/src/components/ViewGateOverlay.tsx:3198",style:{fontWeight:800,color:E,background:O,padding:"2px 6px",borderRadius:"4px",fontSize:"10px"},children:y}),t.jsx("span",{"data-vg-id":"8161cb0","data-source-path":"/src/components/ViewGateOverlay.tsx:3199",style:{fontWeight:600,fontFamily:"monospace",letterSpacing:"-0.02em",color:"#1e293b"},children:k})]},i)})})]})]}),t.jsxs("div",{"data-vg-id":"2e78301c","data-source-path":"/src/components/ViewGateOverlay.tsx:3209",style:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"12px",borderTop:"1px solid #f1f5f9",paddingTop:"16px"},children:[t.jsx("div",{"data-vg-id":"2e78301d","data-source-path":"/src/components/ViewGateOverlay.tsx:3211",style:{display:"flex",gap:"6px"},children:Ot!=="client"&&t.jsxs(t.Fragment,{children:[t.jsx("button",{className:"vg-button-ghost vg-animate-pop",style:{padding:"8px",minWidth:"36px"},onClick:()=>{const i=a.backendEndpoints||[],u=a.focusAreas&&a.focusAreas.length>0?a.focusAreas:[...i.length>0?["backend"]:[],...a.figmaReference&&a.figmaReference.length>0?["ux"]:[]];Qt(a._id),Ms(a.message),_(a.priority||"medium"),_a(u),Rt(a.figmaReference&&a.figmaReference.length>0?a.figmaReference:[{name:r.figmaPrimaryDesign,link:""}]),qt(i),Se(i)},title:r.edit,children:t.jsx(vt,{"data-vg-id":"ea069996","data-source-path":"/src/components/ViewGateOverlay.tsx:3235",size:16})}),t.jsx("button",{className:"vg-button-ghost vg-animate-pop",style:{padding:"8px",minWidth:"36px",color:"#ef4444"},onClick:()=>{W({title:r.deleteConfirm,message:r.confirmDelete,type:"danger",onConfirm:async()=>{try{(await fetch(`${d}/api/annotations/${a._id}`,{method:"DELETE",headers:{"x-api-key":c}})).ok&&(Jt(),o(r.deleteSuccess,"success"))}catch{o(r.error,"error")}finally{W(null)}}})},title:s==="es"?"Eliminar":"Delete",children:t.jsx(Wt,{"data-vg-id":"45b44219","data-source-path":"/src/components/ViewGateOverlay.tsx:3265",size:16})})]})}),t.jsxs("div",{"data-vg-id":"2e783035","data-source-path":"/src/components/ViewGateOverlay.tsx:3271",style:{display:"flex",gap:"8px"},children:[Ot!=="client"&&a.status==="ready_for_review"&&t.jsxs("button",{onClick:()=>fr(a),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:Le,children:[Le?t.jsx(Mt,{"data-vg-id":"a4b73604","data-source-path":"/src/components/ViewGateOverlay.tsx:3289",size:14,className:"vg-animate-spin"}):t.jsx(Ro,{"data-vg-id":"41e603c7","data-source-path":"/src/components/ViewGateOverlay.tsx:3289",size:14}),s==="es"?"Resolver con Evidencia":"Resolve & Capture"]}),t.jsxs("a",{href:`${(l||"").replace(/\/$/,"")}/${m||a.status==="backlog"?"backlog":"board"}?search=${a.key||(a._id?"VG-"+a._id.slice(-6).toUpperCase():"TICKET")}${Oe?`&projectId=${Oe}`:""}`,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:[t.jsx(ba,{"data-vg-id":"5c2be088","data-source-path":"/src/components/ViewGateOverlay.tsx:3309",size:14}),s==="es"?"Ver en Dashboard":"View in Dashboard"]})]})]})]},a._id))},K||"all")]})}),ge&&t.jsx("div",{"data-vg-id":"2e783039","data-source-path":"/src/components/ViewGateOverlay.tsx:3325",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:Je+100},children:t.jsxs("div",{"data-vg-id":"2e78303a","data-source-path":"/src/components/ViewGateOverlay.tsx:3330",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:[t.jsx("div",{"data-vg-id":"2e78303b","data-source-path":"/src/components/ViewGateOverlay.tsx:3337",style:{width:"64px",height:"64px",background:ge.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:ge.type==="danger"?"#ef4444":"#6366f1",transform:"rotate(-5deg)"},children:ge.type==="danger"?t.jsx(Wt,{"data-vg-id":"45b44221","data-source-path":"/src/components/ViewGateOverlay.tsx:3346",size:32}):t.jsx(Ke,{"data-vg-id":"a75c1ae2","data-source-path":"/src/components/ViewGateOverlay.tsx:3346",size:32})}),t.jsx("h3",{"data-vg-id":"53ec569","data-source-path":"/src/components/ViewGateOverlay.tsx:3348",style:{margin:"0 0 12px 0",fontSize:"20px",fontWeight:800,color:"#000000",letterSpacing:"-0.02em"},children:ge.title}),t.jsx("p",{"data-vg-id":"f01af933","data-source-path":"/src/components/ViewGateOverlay.tsx:3349",style:{margin:"0 0 24px 0",fontSize:"15px",color:"#000000",lineHeight:1.6},children:ge.message}),ge.showInput&&t.jsx("textarea",{className:"vg-textarea",placeholder:r.reopenPlaceholder,value:B,onChange:a=>X(a.target.value),rows:3,autoFocus:!0,style:{marginBottom:"24px",minHeight:"80px",textAlign:"left"}}),t.jsxs("div",{"data-vg-id":"2e783055","data-source-path":"/src/components/ViewGateOverlay.tsx:3363",style:{display:"flex",gap:"16px"},children:[t.jsx("button",{className:"vg-button-ghost",style:{flex:1,height:"44px"},onClick:()=>!Ne&&W(null),disabled:Ne,children:r.no}),t.jsx("button",{className:"vg-button-primary",style:{flex:1,height:"44px",backgroundColor:ge.type==="danger"?"#ef4444":void 0,backgroundImage:ge.type==="danger"?"none":void 0,display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",opacity:ge.showInput&&!B.trim()?.5:1,cursor:ge.showInput&&!B.trim()?"not-allowed":"pointer"},disabled:Ne||ge.showInput&&!B.trim(),onClick:async()=>{jt(!0);try{await ge.onConfirm(B)}catch(a){console.error("Confirmation error:",a)}finally{jt(!1)}},children:Ne?t.jsx(Mt,{"data-vg-id":"a4b73624","data-source-path":"/src/components/ViewGateOverlay.tsx:3399",size:18,className:"vg-animate-spin"}):r.yes})]})]})}),!fe&&!x&&q&&nt.map((a,n)=>{const{rect:i,annotations:u,isModal:y}=a,k=u[0],E=u.length,O=u.some(w=>w.status==="ready_for_review"),$=u.some(w=>w.status==="completed"||w.status==="done"),G=u.some(w=>w.status!=="ready_for_review"&&w.status!=="completed"&&w.status!=="done"),pe=$&&!O&&!G,ee=O&&!G&&!$,Re=(O||$)&&!G,he=(O||$)&&G,xe=u.filter(w=>w.status!=="ready_for_review"&&w.status!=="completed"&&w.status!=="done").length,be=u.filter(w=>w.status==="ready_for_review").length,we=u.filter(w=>w.status==="completed"||w.status==="done").length,ke=u.some(w=>w.status==="bug_fixing"||w.type==="bug"||w.originalStatus==="bug_fixing"),ta=ke&&!ee&&!pe?"#f43f5e":xe>0?m?"#64748b":"#ea580c":be>0?"#a855f7":"#10b981",pt=nt.some(w=>w.element===a.element&&w.isTriggerPin),Xe=nt.some(w=>w.element===a.element&&!w.isTriggerPin),ft=pt&&Xe?a.isTriggerPin?-18:18:0,Gt=i.top===0&&i.left===0&&i.width>window.innerWidth*.9;return t.jsxs("div",{className:"vg-pin-container vg-animate-pop",style:{position:"fixed",top:Math.max(20,Math.min(window.innerHeight-52,i.top-20)),left:Gt?Math.max(20,i.left+40+ft):Math.max(20,Math.min(window.innerWidth-52,i.left+i.width/2-16+ft)),width:"32px",height:"32px",cursor:"pointer",transition:"all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275)",zIndex:Jo},onMouseEnter:w=>{const at=w.currentTarget.getBoundingClientRect(),Ds=window.innerHeight-at.bottom,gr=at.top;Ds<250&&gr>Ds?Q(Ia=>({...Ia,[a.id]:"vg-top"})):Q(Ia=>({...Ia,[a.id]:""}))},onWheel:w=>{const at=w.currentTarget.querySelector(".vg-tooltip-scroll");at&&at.scrollBy({top:w.deltaY,behavior:"smooth"})},onClick:()=>{Ae(!0),We(k._id)},children:[t.jsxs("div",{"data-vg-id":"2e783057","data-source-path":"/src/components/ViewGateOverlay.tsx:3474",className:`vg-pin-tooltip ${me[a.id]||""} ${Gt||i.left<160?"vg-tooltip-right":i.left>window.innerWidth-160?"vg-tooltip-left":""}`,style:{padding:"16px"},children:[t.jsxs("div",{"data-vg-id":"2e783058","data-source-path":"/src/components/ViewGateOverlay.tsx:3475",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"12px"},children:[t.jsxs("div",{"data-vg-id":"2e783059","data-source-path":"/src/components/ViewGateOverlay.tsx:3476",style:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap"},children:[a.isTriggerPin?t.jsx(Pt,{"data-vg-id":"d88161bf","data-source-path":"/src/components/ViewGateOverlay.tsx:3478",size:14,color:ta}):t.jsx(Lt,{"data-vg-id":"7fe17ae","data-source-path":"/src/components/ViewGateOverlay.tsx:3480",size:14,color:ta}),t.jsxs("div",{"data-vg-id":"2e78305c","data-source-path":"/src/components/ViewGateOverlay.tsx:3482",style:{display:"flex",gap:"4px"},children:[xe>0&&t.jsxs("span",{"data-vg-id":"8161d07","data-source-path":"/src/components/ViewGateOverlay.tsx:3484",className:"vg-badge",style:{fontSize:"10px",background:m?"#f1f5f9":"#fff7ed",color:m?"#64748b":"#c2410c"},children:[xe," ",m||k.status==="backlog"?"Backlog":s==="es"?xe===1?r.pending:"Pendientes":"pending"]}),be>0&&t.jsxs("span",{"data-vg-id":"8161d08","data-source-path":"/src/components/ViewGateOverlay.tsx:3493",style:{fontSize:"10px",fontWeight:700,color:"#a855f7",background:"#f3e8ff",padding:"2px 6px",borderRadius:"6px"},children:[be," ",s==="es"?be===1?"Listo para revisión":"Listos para revisión":"ready for review"]}),we>0&&t.jsxs("span",{"data-vg-id":"8161d09","data-source-path":"/src/components/ViewGateOverlay.tsx:3505",style:{fontSize:"10px",fontWeight:700,color:"#059669",background:"#ecfdf5",padding:"2px 6px",borderRadius:"6px"},children:[we," ",s==="es"?we===1?"Completado":"Completados":"completed"]}),u.some(w=>w.status==="bug_fixing")&&t.jsx("span",{"data-vg-id":"8161d0a","data-source-path":"/src/components/ViewGateOverlay.tsx:3517",style:{fontSize:"10px",fontWeight:700,color:"#e11d48",background:"#fff1f2",padding:"2px 6px",borderRadius:"6px"},children:"BUG"})]})]}),y&&t.jsx("span",{"data-vg-id":"8161d0b","data-source-path":"/src/components/ViewGateOverlay.tsx:3531",className:"vg-badge",style:{fontSize:"10px",background:m?"#f1f5f9":he?`linear-gradient(90deg, #ea580c 50%, ${$?"#10b981":"#a855f7"} 50%)`:xe>0?"#fff7ed":pe?"#ecfdf5":"#f3e8ff",color:m?"#64748b":he?"#ffffff":xe>0?"#c2410c":pe?"#059669":"#a855f7",border:"none",fontWeight:800,textShadow:he&&!m?"0 1px 2px rgba(0,0,0,0.2)":"none"},children:"MODAL"})]}),t.jsx("div",{"data-vg-id":"2e783077","data-source-path":"/src/components/ViewGateOverlay.tsx:3543",className:"vg-tooltip-scroll",style:{maxHeight:"180px",overflowY:"auto"},children:u.map((w,at)=>t.jsxs("div",{"data-vg-id":"2e783078","data-source-path":"/src/components/ViewGateOverlay.tsx:3545",style:{padding:"10px 0",borderTop:at===0?"none":"1px solid #f1f5f9",display:"flex",gap:"12px",alignItems:"flex-start"},children:[t.jsxs("div",{"data-vg-id":"2e783079","data-source-path":"/src/components/ViewGateOverlay.tsx:3552",style:{flex:1,display:"flex",flexDirection:"column",gap:"4px"},children:[t.jsxs("div",{"data-vg-id":"2e78307a","data-source-path":"/src/components/ViewGateOverlay.tsx:3553",style:{display:"flex",alignItems:"center",gap:"6px"},children:[t.jsx("span",{"data-vg-id":"8161d10","data-source-path":"/src/components/ViewGateOverlay.tsx:3554",style:{fontSize:"10px",fontWeight:600,color:"#64748b"},children:ms(w.timestamp||w.createdAt,s)}),w.creator&&t.jsx("div",{"data-vg-id":"2e783091","data-source-path":"/src/components/ViewGateOverlay.tsx:3558",style:{marginLeft:"4px"},children:w.creator.avatar?t.jsx("img",{"data-vg-id":"3cf75ac4","data-source-path":"/src/components/ViewGateOverlay.tsx:3560",src:w.creator.avatar,style:{width:"14px",height:"14px",borderRadius:"50%"},alt:""}):t.jsx("div",{"data-vg-id":"2e783093","data-source-path":"/src/components/ViewGateOverlay.tsx:3562",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&&t.jsx(hs,{url:w.url,onHover:Gs,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"}}),t.jsx("div",{"data-vg-id":"2e783094","data-source-path":"/src/components/ViewGateOverlay.tsx:3588",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})]}),t.jsxs("div",{"data-vg-id":"2e783095","data-source-path":"/src/components/ViewGateOverlay.tsx:3592",style:{flexShrink:0,marginTop:"2px",display:"flex",flexDirection:"column",gap:"4px",alignItems:"flex-end"},children:[t.jsx("div",{"data-vg-id":"2e783096","data-source-path":"/src/components/ViewGateOverlay.tsx:3593",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:r[w.priority||"medium"]}),w.status==="completed"||w.status==="done"?t.jsxs("span",{"data-vg-id":"8161d2c","data-source-path":"/src/components/ViewGateOverlay.tsx:3607",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:[t.jsx(Ke,{"data-vg-id":"a75c1b3d","data-source-path":"/src/components/ViewGateOverlay.tsx:3620",size:10}),r.completed]}):w.status==="ready_for_review"?t.jsxs("span",{"data-vg-id":"8161d2e","data-source-path":"/src/components/ViewGateOverlay.tsx:3624",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"?t.jsx(xt,{"data-vg-id":"3b8b18dd","data-source-path":"/src/components/ViewGateOverlay.tsx:3637",size:10}):t.jsx(Ke,{"data-vg-id":"a75c1de0","data-source-path":"/src/components/ViewGateOverlay.tsx:3637",size:10}),r.readyForReview]}):w.status==="bug_fixing"?t.jsxs("span",{"data-vg-id":"8161fd1","data-source-path":"/src/components/ViewGateOverlay.tsx:3641",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:[t.jsx(xt,{"data-vg-id":"3b8b1b80","data-source-path":"/src/components/ViewGateOverlay.tsx:3654",size:10}),"Bug Fixing"]}):t.jsxs("span",{"data-vg-id":"8161fd3","data-source-path":"/src/components/ViewGateOverlay.tsx:3658",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:[t.jsx(cs,{"data-vg-id":"62dc6f9c","data-source-path":"/src/components/ViewGateOverlay.tsx:3671",size:10}),m||w.status==="backlog"?r.backlog:r.pending]})]})]},w._id))})]}),t.jsxs("div",{"data-vg-id":"2e783340","data-source-path":"/src/components/ViewGateOverlay.tsx:3681",className:`vg-formal-pin ${pe?"completed":ee||Re?"ready":ke?"bug":he?"mixed":m?"backlog":""} ${a.isTriggerPin?"modal-variant":""}`,style:{position:"relative",background:ke&&!ee&&!pe?"linear-gradient(135deg, #f43f5e 0%, #e11d48 100%)":ee?"linear-gradient(135deg, #a855f7 0%, #7e22ce 100%)":he?$?"linear-gradient(135deg, #10b981 0%, #059669 100%)":"linear-gradient(135deg, #a855f7 0%, #7e22ce 100%)":void 0},children:[ee||pe||Re?ke&&!pe?t.jsx(xt,{"data-vg-id":"3b8b1b84","data-source-path":"/src/components/ViewGateOverlay.tsx:3688",size:18}):t.jsx(Ke,{"data-vg-id":"a75c1de7","data-source-path":"/src/components/ViewGateOverlay.tsx:3688",size:18}):ke?t.jsx(xt,{"data-vg-id":"3b8b1b86","data-source-path":"/src/components/ViewGateOverlay.tsx:3688",size:18}):a.isTriggerPin?t.jsx(Pt,{"data-vg-id":"d88164a9","data-source-path":"/src/components/ViewGateOverlay.tsx:3688",size:16}):y?t.jsx(ba,{"data-vg-id":"5c2be3aa","data-source-path":"/src/components/ViewGateOverlay.tsx:3688",size:16}):t.jsx(Lt,{"data-vg-id":"7fe1aae","data-source-path":"/src/components/ViewGateOverlay.tsx:3688",size:16}),E>1&&t.jsx("div",{"data-vg-id":"2e78335c","data-source-path":"/src/components/ViewGateOverlay.tsx:3691",className:"vg-pin-badge vg-animate-pop",children:E})]})]},`group-${a.id}`)}),t.jsx("div",{className:`vg-url-tooltip ${et?"visible":""} ${et?.direction==="bottom"?"vg-bottom":"vg-top"}`,style:{transform:et?`translate(-50%, ${et.direction==="top"?"-110%":"10%"})`:"translate(-50%, 0)",left:et?.x||0,top:et?.y||0},children:et?.url}),Ee&&t.jsx("div",{"data-vg-id":"2e78335d","data-source-path":"/src/components/ViewGateOverlay.tsx:3716",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:Je+100,animation:"vg-fade-in 0.3s ease-out"},onClick:a=>{a.target===a.currentTarget&&P(!1)},children:t.jsxs("div",{"data-vg-id":"2e78335e","data-source-path":"/src/components/ViewGateOverlay.tsx:3725",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:[t.jsxs("div",{"data-vg-id":"2e78335f","data-source-path":"/src/components/ViewGateOverlay.tsx:3738",style:{padding:"32px 40px",borderBottom:"1px solid rgba(0,0,0,0.06)",display:"flex",alignItems:"center",justifyContent:"space-between",background:"white"},children:[t.jsxs("div",{"data-vg-id":"2e783360","data-source-path":"/src/components/ViewGateOverlay.tsx:3739",children:[t.jsx("h3",{"data-vg-id":"53ec877","data-source-path":"/src/components/ViewGateOverlay.tsx:3740",style:{margin:0,fontSize:"24px",fontWeight:900,letterSpacing:"-0.03em",color:"#0f172a"},children:s==="es"?"Selector de Endpoints":"Endpoint Selector"}),t.jsx("p",{"data-vg-id":"f01afc41","data-source-path":"/src/components/ViewGateOverlay.tsx:3743",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"})]}),t.jsx("button",{"data-vg-id":"5861c060","data-source-path":"/src/components/ViewGateOverlay.tsx:3747",onClick:()=>P(!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:a=>{a.currentTarget.style.background="#e2e8f0",a.currentTarget.style.color="#0f172a"},onMouseLeave:a=>{a.currentTarget.style.background="#f1f5f9",a.currentTarget.style.color="#64748b"},children:t.jsx(yt,{"data-vg-id":"eec8c840","data-source-path":"/src/components/ViewGateOverlay.tsx:3754",size:20,strokeWidth:2.5})})]}),t.jsx("div",{"data-vg-id":"2e78337a","data-source-path":"/src/components/ViewGateOverlay.tsx:3758",style:{padding:"24px 40px",borderBottom:"1px solid rgba(0,0,0,0.06)",background:"#fcfcfc"},children:t.jsxs("div",{"data-vg-id":"2e78337b","data-source-path":"/src/components/ViewGateOverlay.tsx:3759",style:{position:"relative"},children:[t.jsx(Po,{"data-vg-id":"8f7bb00f","data-source-path":"/src/components/ViewGateOverlay.tsx:3760",size:20,style:{position:"absolute",left:"16px",top:"50%",transform:"translateY(-50%)",color:"#94a3b8"}}),t.jsx("input",{"data-vg-id":"88e38db6","data-source-path":"/src/components/ViewGateOverlay.tsx:3761",type:"text",placeholder:s==="es"?"Buscar rutas, métodos o descripciones...":"Search routes, methods, or descriptions...",value:F,onChange:a=>Te(a.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})]})}),t.jsx("div",{"data-vg-id":"2e78337e","data-source-path":"/src/components/ViewGateOverlay.tsx:3781",style:{flex:1,overflowY:"auto",overflowX:"hidden",padding:"24px 40px"},className:"vg-custom-scrollbar",children:Et?Is.length>0?t.jsx("div",{"data-vg-id":"2e783382","data-source-path":"/src/components/ViewGateOverlay.tsx:3788",style:{display:"flex",flexDirection:"column",gap:"0px"},children:Is.map(a=>{const n=a.name===(s==="es"?"Seleccionados":"Selected");return t.jsxs("div",{"data-vg-id":"2e783398","data-source-path":"/src/components/ViewGateOverlay.tsx:3792",style:{marginBottom:"32px"},children:[t.jsxs("div",{"data-vg-id":"2e783399","data-source-path":"/src/components/ViewGateOverlay.tsx:3793",style:{display:"flex",alignItems:"center",gap:"12px",marginBottom:"16px",padding:"0 4px"},children:[t.jsx("span",{"data-vg-id":"816202f","data-source-path":"/src/components/ViewGateOverlay.tsx:3794",style:{fontSize:"11px",fontWeight:900,textTransform:"uppercase",letterSpacing:"0.1em",color:n?"#10b981":"#6366f1",backgroundColor:n?"rgba(10, 185, 129, 0.08)":"rgba(99, 102, 241, 0.08)",padding:"4px 10px",borderRadius:"6px",border:"1px solid",borderColor:n?"rgba(10, 185, 129, 0.1)":"rgba(99, 102, 241, 0.1)"},children:a.name}),t.jsx("div",{"data-vg-id":"2e78339b","data-source-path":"/src/components/ViewGateOverlay.tsx:3808",style:{flex:1,height:"1px",background:`linear-gradient(90deg, ${n?"rgba(16, 185, 129, 0.15)":"rgba(99, 102, 241, 0.15)"} 0%, transparent 100%)`}})]}),t.jsx("div",{"data-vg-id":"2e78339c","data-source-path":"/src/components/ViewGateOverlay.tsx:3815",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(340px, 1fr))",gap:"12px"},children:a.endpoints.map(i=>{const u=`${i.method}|${i.path}`,y=L.includes(u);return t.jsxs("div",{"data-vg-id":"2e78339d","data-source-path":"/src/components/ViewGateOverlay.tsx:3824",onClick:()=>{Se(y?L.filter(k=>k!==u):[...L,u])},style:{padding:"16px 20px",borderRadius:"18px",cursor:"pointer",transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)",background:y?"#f5f7ff":"#ffffff",border:"1px solid",borderColor:y?"rgba(99, 102, 241, 0.2)":"#f1f5f9",display:"flex",alignItems:"center",gap:"16px",boxShadow:y?"0 4px 12px rgba(99, 102, 241, 0.08)":"none"},onMouseEnter:k=>{y||(k.currentTarget.style.background="#f8fafc",k.currentTarget.style.borderColor="#e2e8f0")},onMouseLeave:k=>{y||(k.currentTarget.style.background="#ffffff",k.currentTarget.style.borderColor="#f1f5f9")},children:[t.jsx("div",{"data-vg-id":"2e78339e","data-source-path":"/src/components/ViewGateOverlay.tsx:3856",style:{width:"24px",height:"24px",borderRadius:"8px",border:"2px solid",borderColor:y?"#6366f1":"#cbd5e1",backgroundColor:y?"#6366f1":"white",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s",flexShrink:0},children:y&&t.jsx("div",{"data-vg-id":"2e78339f","data-source-path":"/src/components/ViewGateOverlay.tsx:3869",style:{color:"white",fontSize:"14px",fontWeight:900},children:"✓"})}),t.jsxs("div",{"data-vg-id":"2e7833a0","data-source-path":"/src/components/ViewGateOverlay.tsx:3871",style:{flex:1,minWidth:0},children:[t.jsxs("div",{"data-vg-id":"2e7833a1","data-source-path":"/src/components/ViewGateOverlay.tsx:3872",style:{display:"flex",alignItems:"center",gap:"10px"},children:[t.jsx("span",{"data-vg-id":"816204c","data-source-path":"/src/components/ViewGateOverlay.tsx:3873",style:{fontSize:"11px",fontWeight:800,padding:"3px 8px",borderRadius:"8px",background:i.method==="GET"?"#dcfce7":"#fee2e2",color:i.method==="GET"?"#166534":"#991b1b",flexShrink:0},children:i.method}),t.jsx("span",{"data-vg-id":"816204d","data-source-path":"/src/components/ViewGateOverlay.tsx:3884",style:{fontWeight:700,color:y?"#4338ca":"#1e293b",fontSize:"14px",wordBreak:"break-all"},children:i.path}),i.contract&&t.jsx("div",{"data-vg-id":"2e7833b9","data-source-path":"/src/components/ViewGateOverlay.tsx:3893",style:{fontSize:"9px",fontWeight:900,color:"#6366f1",background:"rgba(99, 102, 241, 0.1)",padding:"1px 5px",borderRadius:"4px",textTransform:"uppercase"},children:"JSON"})]}),i.description&&t.jsx("div",{"data-vg-id":"2e7833ba","data-source-path":"/src/components/ViewGateOverlay.tsx:3905",style:{fontSize:"12px",color:"#64748b",marginTop:"6px",wordBreak:"break-word",fontWeight:450,lineHeight:1.4},children:i.description})]})]},u)})})]},a.name)})}):t.jsxs("div",{"data-vg-id":"2e7833bb","data-source-path":"/src/components/ViewGateOverlay.tsx:3926",style:{padding:"80px 20px",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center"},children:[t.jsx("div",{"data-vg-id":"2e7833bc","data-source-path":"/src/components/ViewGateOverlay.tsx:3927",style:{width:"80px",height:"80px",borderRadius:"24px",backgroundColor:"#f1f5f9",display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"24px"},children:t.jsx(Be,{"data-vg-id":"b1e4c679","data-source-path":"/src/components/ViewGateOverlay.tsx:3928",size:40,style:{color:"#94a3b8"}})}),t.jsx("p",{"data-vg-id":"f01afc9d","data-source-path":"/src/components/ViewGateOverlay.tsx:3930",style:{color:"#0f172a",fontSize:"18px",fontWeight:800,margin:"0 0 8px 0"},children:s==="es"?"No encontramos lo que buscas":"No results found"}),t.jsx("p",{"data-vg-id":"f01afc9e","data-source-path":"/src/components/ViewGateOverlay.tsx:3933",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"})]}):t.jsxs("div",{"data-vg-id":"2e78337f","data-source-path":"/src/components/ViewGateOverlay.tsx:3783",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"100px 0",gap:"20px"},children:[t.jsx("div",{"data-vg-id":"2e783380","data-source-path":"/src/components/ViewGateOverlay.tsx:3784",className:"vg-spinner",style:{width:"40px",height:"40px",border:"3px solid rgba(99, 102, 241, 0.1)",borderTopColor:"#6366f1"}}),t.jsx("p",{"data-vg-id":"f01afc60","data-source-path":"/src/components/ViewGateOverlay.tsx:3785",style:{color:"#64748b",fontSize:"15px",fontWeight:600},children:s==="es"?"Cargando endpoints...":"Loading endpoints..."})]})}),t.jsxs("div",{"data-vg-id":"2e7833c0","data-source-path":"/src/components/ViewGateOverlay.tsx:3940",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:[t.jsxs("div",{"data-vg-id":"2e7833d6","data-source-path":"/src/components/ViewGateOverlay.tsx:3941",style:{display:"flex",alignItems:"center",gap:"12px"},children:[t.jsxs("div",{"data-vg-id":"2e7833d7","data-source-path":"/src/components/ViewGateOverlay.tsx:3942",style:{padding:"6px 12px",background:"#f1f5f9",borderRadius:"10px",fontSize:"14px",fontWeight:700,color:"#475569"},children:[L.length," ",s==="es"?"seleccionados":"selected"]}),L.length>0&&t.jsx("button",{"data-vg-id":"5861c0d5","data-source-path":"/src/components/ViewGateOverlay.tsx:3946",onClick:()=>{Se([]),ct&&qt([])},style:{background:"none",border:"none",color:"#6366f1",fontSize:"14px",fontWeight:700,cursor:"pointer",padding:"4px 8px"},children:s==="es"?"Desmarcar todos":"Deselect all"})]}),t.jsx("div",{"data-vg-id":"2e7833d9","data-source-path":"/src/components/ViewGateOverlay.tsx:3957",style:{display:"flex",gap:"12px"},children:t.jsx("button",{"data-vg-id":"5861c0d7","data-source-path":"/src/components/ViewGateOverlay.tsx:3958",onClick:()=>{ct&&qt(L),P(!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:a=>{a.currentTarget.style.transform="translateY(-2px)",a.currentTarget.style.boxShadow="0 15px 30px -5px rgba(99, 102, 241, 0.6)"},onMouseLeave:a=>{a.currentTarget.style.transform="translateY(0)",a.currentTarget.style.boxShadow="0 10px 25px -5px rgba(99, 102, 241, 0.45)"},children:s==="es"?"Confirmar Selección":"Confirm Selection"})})]})]})}),rt?.contract&&t.jsx("div",{"data-vg-id":"2e7833db","data-source-path":"/src/components/ViewGateOverlay.tsx:3992",className:"vg-animate-fade",style:{position:"fixed",left:Math.min(rt.x,window.innerWidth-420),top:Math.min(rt.y,window.innerHeight-300),width:"400px",zIndex:Je+500,pointerEvents:"none"},children:t.jsxs("div",{"data-vg-id":"2e7833dc","data-source-path":"/src/components/ViewGateOverlay.tsx:4000",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:[t.jsxs("div",{"data-vg-id":"2e7833dd","data-source-path":"/src/components/ViewGateOverlay.tsx:4011",style:{display:"flex",alignItems:"center",gap:"8px"},children:[t.jsx("div",{"data-vg-id":"2e7833de","data-source-path":"/src/components/ViewGateOverlay.tsx:4012",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"}),t.jsxs("span",{"data-vg-id":"8162074","data-source-path":"/src/components/ViewGateOverlay.tsx:4021",style:{color:"rgba(255, 255, 255, 0.5)",fontSize:"12px",fontWeight:600},children:[rt.method," ",rt.path]})]}),t.jsx("div",{"data-vg-id":"2e7833f5","data-source-path":"/src/components/ViewGateOverlay.tsx:4023",className:"vg-custom-scrollbar",style:{maxHeight:"250px",overflowY:"auto",background:"rgba(0,0,0,0.3)",borderRadius:"12px",padding:"12px"},children:t.jsx("pre",{"data-vg-id":"b7af0908","data-source-path":"/src/components/ViewGateOverlay.tsx:4030",style:{margin:0,fontSize:"11px",color:"#94a3b8",whiteSpace:"pre-wrap",wordBreak:"break-all",lineHeight:1.5,fontFamily:"JetBrains Mono, Fira Code, monospace"},children:rt.contract})})]})}),ct&&t.jsx("div",{"data-vg-id":"2e7833f7","data-source-path":"/src/components/ViewGateOverlay.tsx:4049",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:Je+50},children:t.jsxs("div",{"data-vg-id":"2e7833f8","data-source-path":"/src/components/ViewGateOverlay.tsx:4055",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:[t.jsxs("div",{"data-vg-id":"2e7833f9","data-source-path":"/src/components/ViewGateOverlay.tsx:4066",style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[t.jsx("h2",{"data-vg-id":"530b18f","data-source-path":"/src/components/ViewGateOverlay.tsx:4067",style:{margin:0,fontSize:"20px",fontWeight:800,color:"#1e293b"},children:s==="es"?"Editar Comentario":"Edit Comment"}),t.jsx("button",{"data-vg-id":"5861c0f8","data-source-path":"/src/components/ViewGateOverlay.tsx:4070",onClick:()=>Qt(null),style:{background:"none",border:"none",cursor:"pointer",color:"#94a3b8"},children:t.jsx(yt,{"data-vg-id":"eec8c8c3","data-source-path":"/src/components/ViewGateOverlay.tsx:4071",size:24})})]}),t.jsxs("div",{"data-vg-id":"2e7833fd","data-source-path":"/src/components/ViewGateOverlay.tsx:4075",style:{display:"flex",flexDirection:"column",gap:"16px"},children:[t.jsxs("div",{"data-vg-id":"2e7833fe","data-source-path":"/src/components/ViewGateOverlay.tsx:4076",children:[t.jsx("label",{"data-vg-id":"feec1077","data-source-path":"/src/components/ViewGateOverlay.tsx:4077",style:{display:"block",fontSize:"12px",fontWeight:700,color:"#64748b",marginBottom:"8px",textTransform:"uppercase",letterSpacing:"0.5px"},children:r.priority}),t.jsx("div",{"data-vg-id":"2e783415","data-source-path":"/src/components/ViewGateOverlay.tsx:4078",style:{display:"flex",gap:"8px"},children:["low","medium","high","urgent"].map(a=>t.jsx("button",{onClick:()=>_(a),style:{flex:1,padding:"10px 12px",borderRadius:"12px",fontSize:"13px",fontWeight:800,border:"2px solid",borderColor:A===a?a==="low"?"#10b981":a==="medium"?"#6366f1":a==="high"?"#f59e0b":"#ef4444":"#f1f5f9",backgroundColor:A===a?a==="low"?"#ecfdf5":a==="medium"?"#eef2ff":a==="high"?"#fffbeb":"#fef2f2":"white",color:A===a?a==="low"?"#059669":a==="medium"?"#4338ca":a==="high"?"#b45309":"#b91c1c":"#64748b",cursor:"pointer",transition:"all 0.2s",textTransform:"capitalize"},children:r[a]},a))})]}),t.jsxs("div",{"data-vg-id":"2e783416","data-source-path":"/src/components/ViewGateOverlay.tsx:4098",style:{marginBottom:"8px"},children:[t.jsx("label",{"data-vg-id":"feec107a","data-source-path":"/src/components/ViewGateOverlay.tsx:4099",style:{display:"block",fontSize:"12px",fontWeight:700,color:"#64748b",marginBottom:"8px",textTransform:"uppercase",letterSpacing:"0.5px"},children:r.focusAreas}),t.jsx("div",{"data-vg-id":"2e783418","data-source-path":"/src/components/ViewGateOverlay.tsx:4100",style:{display:"flex",gap:"8px"},children:[{id:"frontend",label:r.frontend,icon:t.jsx(zt,{"data-vg-id":"b806c346","data-source-path":"/src/components/ViewGateOverlay.tsx:4102",size:14}),color:"#10b981",bg:"#ecfdf5",border:"#d1fae5"},{id:"backend",label:r.backend,icon:t.jsx(Be,{"data-vg-id":"b1e4c6d6","data-source-path":"/src/components/ViewGateOverlay.tsx:4103",size:14}),color:"#6366f1",bg:"#eef2ff",border:"#e0e7ff"},{id:"ux",label:r.ux,icon:t.jsx(vt,{"data-vg-id":"ea069d93","data-source-path":"/src/components/ViewGateOverlay.tsx:4104",size:14}),color:"#d946ef",bg:"#fdf4ff",border:"#f5d0fe"}].filter(a=>a.id==="backend"?Ut:a.id==="ux"?R:!0).map(a=>{const n=dt.includes(a.id);return t.jsxs("button",{onClick:()=>{_a(n?dt.filter(i=>i!==a.id):[...dt,a.id])},style:{flex:1,padding:"10px 4px",borderRadius:"12px",fontSize:"12px",fontWeight:700,border:"2px solid",borderColor:n?a.color:"#f1f5f9",backgroundColor:n?a.bg:"white",color:n?a.color:"#64748b",cursor:"pointer",transition:"all 0.2s",display:"flex",alignItems:"center",justifyContent:"center",gap:"6px"},children:[a.icon,a.label]},a.id)})})]}),dt.includes("ux")&&t.jsxs("div",{"data-vg-id":"2e78341c","data-source-path":"/src/components/ViewGateOverlay.tsx:4140",className:"vg-animate-slide",style:{padding:"16px",borderRadius:"16px",background:"#f8fafc",border:"1px solid #e2e8f0"},children:[t.jsxs("div",{"data-vg-id":"2e78341d","data-source-path":"/src/components/ViewGateOverlay.tsx:4141",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"12px"},children:[t.jsxs("div",{"data-vg-id":"2e783433","data-source-path":"/src/components/ViewGateOverlay.tsx:4142",style:{display:"flex",alignItems:"center",gap:"6px"},children:[t.jsx(Pt,{"data-vg-id":"d8816599","data-source-path":"/src/components/ViewGateOverlay.tsx:4143",size:14,style:{color:"#d946ef"}}),t.jsx("span",{"data-vg-id":"81620ca","data-source-path":"/src/components/ViewGateOverlay.tsx:4144",style:{fontSize:"11px",fontWeight:800,color:"#64748b",textTransform:"uppercase"},children:r.figmaLink})]}),t.jsxs("button",{"data-vg-id":"5861c133","data-source-path":"/src/components/ViewGateOverlay.tsx:4146",onClick:()=>Rt([...tt,{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]})]}),t.jsx("div",{"data-vg-id":"2e783437","data-source-path":"/src/components/ViewGateOverlay.tsx:4153",style:{display:"flex",flexDirection:"column",gap:"8px"},children:tt.map((a,n)=>t.jsxs("div",{"data-vg-id":"2e783438","data-source-path":"/src/components/ViewGateOverlay.tsx:4155",style:{display:"flex",gap:"8px"},children:[t.jsx("input",{"data-vg-id":"88e38e72","data-source-path":"/src/components/ViewGateOverlay.tsx:4156",type:"text",className:"vg-textarea",style:{padding:"8px 12px",fontSize:"12px",minHeight:"auto",borderRadius:"10px"},placeholder:r.figmaNamePlaceholder,value:a.name,onChange:i=>{const u=[...tt];u[n]&&(u[n].name=i.target.value,Rt(u))}}),t.jsx("input",{"data-vg-id":"88e38e73","data-source-path":"/src/components/ViewGateOverlay.tsx:4167",type:"text",className:"vg-textarea",style:{padding:"8px 12px",fontSize:"12px",minHeight:"auto",borderRadius:"10px"},placeholder:r.figmaLinkPlaceholder,value:a.link,onChange:i=>{const u=[...tt];u[n]&&(u[n].link=i.target.value,Rt(u))}}),tt.length>1&&t.jsx("button",{"data-vg-id":"5861c138","data-source-path":"/src/components/ViewGateOverlay.tsx:4179",onClick:()=>Rt(tt.filter((i,u)=>u!==n)),style:{color:"#ef4444",background:"none",border:"none",cursor:"pointer"},children:t.jsx(Wt,{"data-vg-id":"45b44621","data-source-path":"/src/components/ViewGateOverlay.tsx:4180",size:16})})]},n))})]}),Ut&&dt.includes("backend")&&t.jsxs("div",{"data-vg-id":"2e783452","data-source-path":"/src/components/ViewGateOverlay.tsx:4191",className:"vg-animate-slide",style:{padding:"16px",borderRadius:"16px",background:"#f8fafc",border:"1px solid #e2e8f0"},children:[t.jsxs("div",{"data-vg-id":"2e783453","data-source-path":"/src/components/ViewGateOverlay.tsx:4192",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px"},children:[t.jsxs("div",{"data-vg-id":"2e783454","data-source-path":"/src/components/ViewGateOverlay.tsx:4193",style:{display:"flex",alignItems:"center",gap:"6px"},children:[t.jsx(Be,{"data-vg-id":"b1e4c711","data-source-path":"/src/components/ViewGateOverlay.tsx:4194",size:14,style:{color:"#6366f1"}}),t.jsx("span",{"data-vg-id":"81620eb","data-source-path":"/src/components/ViewGateOverlay.tsx:4195",style:{fontSize:"11px",fontWeight:800,color:"#64748b",textTransform:"uppercase"},children:r.endpoint})]}),Ye.length>0&&t.jsxs("span",{"data-vg-id":"81620ec","data-source-path":"/src/components/ViewGateOverlay.tsx:4198",style:{fontSize:"10px",background:"#eef2ff",color:"#6366f1",padding:"2px 8px",borderRadius:"12px",fontWeight:700},children:[Ye.length," ",s==="es"?"seleccionados":"selected"]})]}),t.jsxs("button",{"data-vg-id":"5861c155","data-source-path":"/src/components/ViewGateOverlay.tsx:4203",onClick:()=>P(!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:Ye.length>0?"#0f172a":"#94a3b8"},children:[t.jsx("div",{"data-vg-id":"2e783459","data-source-path":"/src/components/ViewGateOverlay.tsx:4207",style:{display:"flex",gap:"4px",overflow:"hidden"},children:Ye.length>0?Ye.slice(0,2).map(a=>t.jsx("span",{"data-vg-id":"81620ef","data-source-path":"/src/components/ViewGateOverlay.tsx:4209",style:{background:"#eef2ff",color:"#6366f1",padding:"1px 6px",borderRadius:"4px",fontSize:"11px",fontWeight:600},children:a.split("|").pop()},a)).concat(Ye.length>2?[t.jsxs("span",{"data-vg-id":"81620f0","data-source-path":"/src/components/ViewGateOverlay.tsx:4209",children:["+",Ye.length-2]},"plus")]:[]):r.selectEndpoint}),t.jsx(is,{"data-vg-id":"1cd393c8","data-source-path":"/src/components/ViewGateOverlay.tsx:4212",size:14,style:{color:"#64748b"}})]})]}),t.jsxs("div",{"data-vg-id":"2e7836fd","data-source-path":"/src/components/ViewGateOverlay.tsx:4217",children:[t.jsx("label",{"data-vg-id":"feec1361","data-source-path":"/src/components/ViewGateOverlay.tsx:4218",style:{display:"block",fontSize:"12px",fontWeight:700,color:"#64748b",marginBottom:"8px",textTransform:"uppercase",letterSpacing:"0.5px"},children:s==="es"?"Mensaje":"Message"}),t.jsx("textarea",{className:"vg-textarea",value:Ps,onChange:a=>Ms(a.target.value),rows:5,style:{minHeight:"120px",fontSize:"15px"}})]})]}),t.jsxs("div",{"data-vg-id":"2e7836ff","data-source-path":"/src/components/ViewGateOverlay.tsx:4229",style:{display:"flex",justifyContent:"flex-end",gap:"12px",marginTop:"16px",paddingTop:"24px",borderTop:"1px solid #f1f5f9"},children:[t.jsx("button",{"data-vg-id":"5861c3fd","data-source-path":"/src/components/ViewGateOverlay.tsx:4230",className:"vg-button-ghost",style:{padding:"12px 24px",fontSize:"14px",borderRadius:"12px",color:"#64748b",fontWeight:700},onClick:()=>{Qt(null),Se([])},children:r.cancel}),t.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:$t?.7:1,cursor:$t?"not-allowed":"pointer"},disabled:$t,onClick:async()=>{Ls(!0);try{(await fetch(`${d}/api/annotations/${ct}`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:q?`Bearer ${q}`:"","x-api-key":c||""},body:JSON.stringify({message:Ps,priority:A,focusAreas:dt,figmaReference:tt,backendEndpoints:Ye})})).ok&&(Qt(null),Jt(),o(r.updateSuccess,"success"))}catch{}finally{Ls(!1)}},children:$t?"...":r.save})]})]})})]})})};function ka(e,o,s){if(!o.endsWith(".tsx")&&!o.endsWith(".jsx")||o.includes("node_modules"))return e;const r=S=>S.replace(/\\/g,"/"),c=r(o).replace(r(s),""),d=S=>{let b=0;for(let m=0;m<S.length;m++)b=Math.imul(31,b)+S.charCodeAt(m)|0;return(b>>>0).toString(16)};let l=0;return e.split(`
|
|
15
|
+
`).map((S,b)=>{const m=b+1;return S.replace(/(^|[^a-zA-Z0-9])<([a-zA-Z][a-zA-Z0-9\.]*)(?=[ \t\n\/\>])/g,(x,j,V)=>{if(x.includes("data-source-path")||x.includes("data-vg-id")||V==="Fragment"||V==="React.Fragment")return x;l++;const C=d(`${c}:${V}:${l}`);return`${j}<${V} data-vg-id="${C}" data-source-path="${c}:${m}"`})}).join(`
|
|
16
|
+
`)}function ar(){return{name:"vite-plugin-viewgate",enforce:"pre",transform(e,o){return{code:ka(e,o,process.cwd()),map:null}}}}function sr(e){const o=this.resourcePath;return o?(this.getOptions&&this.getOptions(),ka(e,o,process.cwd())):e}function or(e){return sr.call(this,e)}ve.ViewGate=Fo,ve.ViewGateOverlay=Ss,ve.transformSourcePaths=ka,ve.useViewGate=ps,ve.viewgateNextLoader=or,ve.viewgatePlugin=ar,Object.defineProperty(ve,Symbol.toStringTag,{value:"Module"})}));
|