vendor: 9,346 bytes, lines 1-25
1function YY(e,t){for(var r=0;r<t.length;r++){const a=t[r];if(typeof a!="string"&&!Array.isArray(a)){for(const n in a)if(n!=="default"&&!(n in e)){const i=Object.getOwnPropertyDescriptor(a,n);i&&Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>a[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))a(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&a(o)}).observe(document,{childList:!0,subtree:!0});function r(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function a(n){if(n.ep)return;n.ep=!0;const i=r(n);fetch(n.href,i)}})();var gs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function BMe(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function a(){var n=!1;try{n=this instanceof a}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,n.get?n:{enumerable:!0,get:function(){return e[a]}})}),r}var A1={exports:{}},Rf={};/** 2 * @license React 3 * react-jsx-runtime.production.js 4 * 5 * Copyright (c) Meta Platforms, Inc. and affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var E4;function ZY(){if(E4)return Rf;E4=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(a,n,i){var o=null;if(i!==void 0&&(o=""+i),n.key!==void 0&&(o=""+n.key),"key"in n){i={};for(var s in n)s!=="key"&&(i[s]=n[s])}else i=n;return n=i.ref,{$$typeof:e,type:a,key:o,ref:n!==void 0?n:null,props:i}}return Rf.Fragment=t,Rf.jsx=r,Rf.jsxs=r,Rf}var A4;function JY(){return A4||(A4=1,A1.exports=ZY()),A1.exports}var p=JY(),C1={exports:{}},Of={},P1={exports:{}},j1={};/** 10 * @license React 11 * scheduler.production.js 12 * 13 * Copyright (c) Meta Platforms, Inc. and affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var C4;function QY(){return C4||(C4=1,(function(e){function t(z,V){var Z=z.length;z.push(V);e:for(;0<Z;){var te=Z-1>>>1,K=z[te];if(0<n(K,V))z[te]=V,z[Z]=K,Z=te;else break e}}function r(z){return z.length===0?null:z[0]}function a(z){if(z.length===0)return null;var V=z[0],Z=z.pop();if(Z!==V){z[0]=Z;e:for(var te=0,K=z.length,q=K>>>1;te<q;){var X=2*(te+1)-1,U=z[X],ie=X+1,se=z[ie];if(0>n(U,Z))ie<K&&0>n(se,U)?(z[te]=se,z[ie]=Z,te=ie):(z[te]=U,z[X]=Z,te=X);else if(ie<K&&0>n(se,Z))z[te]=se,z[ie]=Z,te=ie;else break e}}return V}function n(z,V){var Z=z.sortIndex-V.sortIndex;return Z!==0?Z:z.id-V.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],u=[],h=1,f=null,m=3,x=!1,v=!1,y=!1,b=!1,S=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;function j(z){for(var V=r(u);V!==null;){if(V.callback===null)a(u);else if(V.startTime<=z)a(u),V.sortIndex=V.expirationTime,t(c,V);else break;V=r(u)}}function P(z){if(y=!1,j(z),!v)if(r(c)!==null)v=!0,C||(C=!0,_());else{var V=r(u);V!==null&&J(P,V.startTime-z)}}var C=!1,N=-1,O=5,k=-1;function B(){return b?!0:!(e.unstable_now()-k<O)}function $(){if(b=!1,C){var z=e.unstable_now();k=z;var V=!0;try{e:{v=!1,y&&(y=!1,A(N),N=-1),x=!0;var Z=m;try{t:{for(j(z),f=r(c);f!==null&&!(f.expirationTime>z&&B());){var te=f.callback;if(typeof te=="function"){f.callback=null,m=f.priorityLevel;var K=te(f.expirationTime<=z);if(z=e.unstable_now(),typeof K=="function"){f.callback=K,j(z),V=!0;break t}f===r(c)&&a(c),j(z)}else a(c);f=r(c)}if(f!==null)V=!0;else{var q=r(u);q!==null&&J(P,q.startTime-z),V=!1}}break e}finally{f=null,m=Z,x=!1}V=void 0}}finally{V?_():C=!1}}}var _;if(typeof E=="function")_=function(){E($)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,D=W.port2;W.port1.onmessage=$,_=function(){D.postMessage(null)}}else _=function(){S($,0)};function J(z,V){N=S(function(){z(e.unstable_now())},V)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(z){z.callback=null},e.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<z?Math.floor(1e3/z):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_next=function(z){switch(m){case 1:case 2:case 3:var V=3;break;default:V=m}var Z=m;m=V;try{return z()}finally{m=Z}},e.unstable_requestPaint=function(){b=!0},e.unstable_runWithPriority=function(z,V){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var Z=m;m=z;try{return V()}finally{m=Z}},e.unstable_scheduleCallback=function(z,V,Z){var te=e.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?te+Z:te):Z=te,z){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=Z+K,z={id:h++,callback:V,priorityLevel:z,startTime:Z,expirationTime:K,sortIndex:-1},Z>te?(z.sortIndex=Z,t(u,z),r(c)===null&&z===r(u)&&(y?(A(N),N=-1):y=!0,J(P,Z-te))):(z.sortIndex=K,t(c,z),v||x||(v=!0,C||(C=!0,_()))),z},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(z){var V=m;return function(){var Z=m;m=V;try{return z.apply(this,arguments)}finally{m=Z}}}})(j1)),j1}var P4;function eZ(){return P4||(P4=1,P1.exports=QY()),P1.exports}var N1={exports:{}},vt={};/** 18 * @license React 19 * react.production.js 20 * 21 * Copyright (c) Meta Platforms, Inc. and affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */var j4;function tZ(){if(j4)return vt;j4=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),o=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),m=Symbol.iterator;function x(q){return q===null||typeof q!="object"?null:(q=m&&q[m]||q["@@iterator"],typeof q=="function"?q:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,b={};function S(q,X,U){this.props=q,this.context=X,this.refs=b,this.updater=U||v}S.prototype.isReactComponent={},S.prototype.setState=function(q,X){if(typeof q!="object"&&typeof q!="function"&&q!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,q,X,"setState")},S.prototype.forceUpdate=function(q){this.updater.enqueueForceUpdate(this,q,"forceUpdate")};function A(){}A.prototype=S.prototype;function E(q,X,U){this.props=q,this.context=X,this.refs=b,this.updater=U||v}var j=E.prototype=new A;j.constructor=E,y(j,S.prototype),j.isPureReactComponent=!0;var P=Array.isArray;function C(){}var N={H:null,A:null,T:null,S:null},O=Object.prototype.hasOwnProperty;function k(q,X,U){var ie=U.ref;return{$$typeof:e,type:q,key:X,ref:ie!==void 0?ie:null,props:U}}function B(q,X){return k(q.type,X,q.props)}function $(q){return typeof q=="object"&&q!==null&&q.$$typeof===e}function _(q){var X={"=":"=0",":":"=2"};return"$"+q.replace(/[=:]/g,function(U){return X[U]})}var W=/\/+/g;function D(q,X){return typeof q=="object"&&q!==null&&q.key!=null?_(""+q.key):X.toString(36)}function J(q){switch(q.status){case"fulfilled":return q.value;case"rejected":throw q.reason;default:switch(typeof q.status=="string"?q.then(C,C):(q.status="pending",q.then(function(X){q.status==="pending"&&(q.status="fulfilled",q.value=X)},function(X){q.status==="pending"&&(q.status="rejected",q.reason=X)})),q.status){case"fulfilled":return q.value;case"rejected":throw q.reason}}throw q}function z(q,X,U,ie,se){var he=typeof q;(he==="undefined"||he==="boolean")&&(q=null);var Y=!1;if(q===null)Y=!0;else switch(he){case"bigint":case"string":case"number":Y=!0;break;case"object":switch(q.$$typeof){case e:case t:Y=!0;break;case h:return Y=q._init,z(Y(q._payload),X,U,ie,se)}}if(Y)return se=se(q),Y=ie===""?"."+D(q,0):ie,P(se)?(U="",Y!=null&&(U=Y.replace(W,"$&/")+"/"),z(se,X,U,"",function(ne){return ne}
vendor: 14,141 bytes, lines 25-43
25)):se!=null&&($(se)&&(se=B(se,U+(se.key==null||q&&q.key===se.key?"":(""+se.key).replace(W,"$&/")+"/")+Y)),X.push(se)),1;Y=0;var F=ie===""?".":ie+":";if(P(q))for(var ae=0;ae<q.length;ae++)ie=q[ae],he=F+D(ie,ae),Y+=z(ie,X,U,he,se);else if(ae=x(q),typeof ae=="function")for(q=ae.call(q),ae=0;!(ie=q.next()).done;)ie=ie.value,he=F+D(ie,ae++),Y+=z(ie,X,U,he,se);else if(he==="object"){if(typeof q.then=="function")return z(J(q),X,U,ie,se);throw X=String(q),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(q).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return Y}function V(q,X,U){if(q==null)return q;var ie=[],se=0;return z(q,ie,"","",function(he){return X.call(U,he,se++)}),ie}function Z(q){if(q._status===-1){var X=q._result;X=X(),X.then(function(U){(q._status===0||q._status===-1)&&(q._status=1,q._result=U)},function(U){(q._status===0||q._status===-1)&&(q._status=2,q._result=U)}),q._status===-1&&(q._status=0,q._result=X)}if(q._status===1)return q._result.default;throw q._result}var te=typeof reportError=="function"?reportError:function(q){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof q=="object"&&q!==null&&typeof q.message=="string"?String(q.message):String(q),error:q});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",q);return}console.error(q)},K={map:V,forEach:function(q,X,U){V(q,function(){X.apply(this,arguments)},U)},count:function(q){var X=0;return V(q,function(){X++}),X},toArray:function(q){return V(q,function(X){return X})||[]},only:function(q){if(!$(q))throw Error("React.Children.only expected to receive a single React element child.");return q}};return vt.Activity=f,vt.Children=K,vt.Component=S,vt.Fragment=r,vt.Profiler=n,vt.PureComponent=E,vt.StrictMode=a,vt.Suspense=c,vt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N,vt.__COMPILER_RUNTIME={__proto__:null,c:function(q){return N.H.useMemoCache(q)}},vt.cache=function(q){return function(){return q.apply(null,arguments)}},vt.cacheSignal=function(){return null},vt.cloneElement=function(q,X,U){if(q==null)throw Error("The argument must be a React element, but you passed "+q+".");var ie=y({},q.props),se=q.key;if(X!=null)for(he in X.key!==void 0&&(se=""+X.key),X)!O.call(X,he)||he==="key"||he==="__self"||he==="__source"||he==="ref"&&X.ref===void 0||(ie[he]=X[he]);var he=arguments.length-2;if(he===1)ie.children=U;else if(1<he){for(var Y=Array(he),F=0;F<he;F++)Y[F]=arguments[F+2];ie.children=Y}return k(q.type,se,ie)},vt.createContext=function(q){return q={$$typeof:o,_currentValue:q,_currentValue2:q,_threadCount:0,Provider:null,Consumer:null},q.Provider=q,q.Consumer={$$typeof:i,_context:q},q},vt.createElement=function(q,X,U){var ie,se={},he=null;if(X!=null)for(ie in X.key!==void 0&&(he=""+X.key),X)O.call(X,ie)&&ie!=="key"&&ie!=="__self"&&ie!=="__source"&&(se[ie]=X[ie]);var Y=arguments.length-2;if(Y===1)se.children=U;else if(1<Y){for(var F=Array(Y),ae=0;ae<Y;ae++)F[ae]=arguments[ae+2];se.children=F}if(q&&q.defaultProps)for(ie in Y=q.defaultProps,Y)se[ie]===void 0&&(se[ie]=Y[ie]);return k(q,he,se)},vt.createRef=function(){return{current:null}},vt.forwardRef=function(q){return{$$typeof:s,render:q}},vt.isValidElement=$,vt.lazy=function(q){return{$$typeof:h,_payload:{_status:-1,_result:q},_init:Z}},vt.memo=function(q,X){return{$$typeof:u,type:q,compare:X===void 0?null:X}},vt.startTransition=function(q){var X=N.T,U={};N.T=U;try{var ie=q(),se=N.S;se!==null&&se(U,ie),typeof ie=="object"&&ie!==null&&typeof ie.then=="function"&&ie.then(C,te)}catch(he){te(he)}finally{X!==null&&U.types!==null&&(X.types=U.types),N.T=X}},vt.unstable_useCacheRefresh=function(){return N.H.useCacheRefresh()},vt.use=function(q){return N.H.use(q)},vt.useActionState=function(q,X,U){return N.H.useActionState(q,X,U)},vt.useCallback=function(q,X){return N.H.useCallback(q,X)},vt.useContext=function(q){return N.H.useContext(q)},vt.useDebugValue=function(){},vt.useDeferredValue=function(q,X){return N.H.useDeferredValue(q,X)},vt.useEffect=function(q,X){return N.H.useEffect(q,X)},vt.useEffectEvent=function(q){return N.H.useEffectEvent(q)},vt.useId=function(){return N.H.useId()},vt.useImperativeHandle=function(q,X,U){return N.H.useImperativeHandle(q,X,U)},vt.useInsertionEffect=function(q,X){return N.H.useInsertionEffect(q,X)},vt.useLayoutEffect=function(q,X){return N.H.useLayoutEffect(q,X)},vt.useMemo=function(q,X){return N.H.useMemo(q,X)},vt.useOptimistic=function(q,X){return N.H.useOptimistic(q,X)},vt.useReducer=function(q,X,U){return N.H.useReducer(q,X,U)},vt.useRef=function(q){return N.H.useRef(q)},vt.useState=function(q){return N.H.useState(q)},vt.useSyncExternalStore=function(q,X,U){return N.H.useSyncExternalStore(q,X,U)},vt.useTransition=function(){return N.H.useTransition()},vt.version="19.2.1",vt}var N4;function qj(){return N4||(N4=1,N1.exports=tZ()),N1.exports}var T1={exports:{}},ma={};/** 26 * @license React 27 * react-dom.production.js 28 * 29 * Copyright (c) Meta Platforms, Inc. and affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var T4;function rZ(){if(T4)return ma;T4=1;var e=qj();function t(c){var u="https://react.dev/errors/"+c;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)u+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+c+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var a={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},n=Symbol.for("react.portal");function i(c,u,h){var f=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:n,key:f==null?null:""+f,children:c,containerInfo:u,implementation:h}}var o=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function s(c,u){if(c==="font")return"";if(typeof u=="string")return u==="use-credentials"?u:""}return ma.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,ma.createPortal=function(c,u){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)throw Error(t(299));return i(c,u,null,h)},ma.flushSync=function(c){var u=o.T,h=a.p;try{if(o.T=null,a.p=2,c)return c()}finally{o.T=u,a.p=h,a.d.f()}},ma.preconnect=function(c,u){typeof c=="string"&&(u?(u=u.crossOrigin,u=typeof u=="string"?u==="use-credentials"?u:"":void 0):u=null,a.d.C(c,u))},ma.prefetchDNS=function(c){typeof c=="string"&&a.d.D(c)},ma.preinit=function(c,u){if(typeof c=="string"&&u&&typeof u.as=="string"){var h=u.as,f=s(h,u.crossOrigin),m=typeof u.integrity=="string"?u.integrity:void 0,x=typeof u.fetchPriority=="string"?u.fetchPriority:void 0;h==="style"?a.d.S(c,typeof u.precedence=="string"?u.precedence:void 0,{crossOrigin:f,integrity:m,fetchPriority:x}):h==="script"&&a.d.X(c,{crossOrigin:f,integrity:m,fetchPriority:x,nonce:typeof u.nonce=="string"?u.nonce:void 0})}},ma.preinitModule=function(c,u){if(typeof c=="string")if(typeof u=="object"&&u!==null){if(u.as==null||u.as==="script"){var h=s(u.as,u.crossOrigin);a.d.M(c,{crossOrigin:h,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0})}}else u==null&&a.d.M(c)},ma.preload=function(c,u){if(typeof c=="string"&&typeof u=="object"&&u!==null&&typeof u.as=="string"){var h=u.as,f=s(h,u.crossOrigin);a.d.L(c,h,{crossOrigin:f,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0,type:typeof u.type=="string"?u.type:void 0,fetchPriority:typeof u.fetchPriority=="string"?u.fetchPriority:void 0,referrerPolicy:typeof u.referrerPolicy=="string"?u.referrerPolicy:void 0,imageSrcSet:typeof u.imageSrcSet=="string"?u.imageSrcSet:void 0,imageSizes:typeof u.imageSizes=="string"?u.imageSizes:void 0,media:typeof u.media=="string"?u.media:void 0})}},ma.preloadModule=function(c,u){if(typeof c=="string")if(u){var h=s(u.as,u.crossOrigin);a.d.m(c,{as:typeof u.as=="string"&&u.as!=="script"?u.as:void 0,crossOrigin:h,integrity:typeof u.integrity=="string"?u.integrity:void 0})}else a.d.m(c)},ma.requestFormReset=function(c){a.d.r(c)},ma.unstable_batchedUpdates=function(c,u){return c(u)},ma.useFormState=function(c,u,h){return o.H.useFormState(c,u,h)},ma.useFormStatus=function(){return o.H.useHostTransitionStatus()},ma.version="19.2.1",ma}var k4;function K7(){if(k4)return T1.exports;k4=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),T1.exports=rZ(),T1.exports}/** 34 * @license React 35 * react-dom-client.production.js 36 * 37 * Copyright (c) Meta Platforms, Inc. and affiliates. 38 * 39 * This source code is licensed under the MIT license found in the 40 * LICENSE file in the root directory of this source tree. 41 */var D4;function aZ(){if(D4)return Of;D4=1;var e=eZ(),t=qj(),r=K7();function a(l){var d="https://react.dev/errors/"+l;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)d+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+l+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}function i(l){var d=l,g=l;if(l.alternate)for(;d.return;)d=d.return;else{l=d;do d=l,(d.flags&4098)!==0&&(g=d.return),l=d.return;while(l)}return d.tag===3?g:null}function o(l){if(l.tag===13){var d=l.memoizedState;if(d===null&&(l=l.alternate,l!==null&&(d=l.memoizedState)),d!==null)return d.dehydrated}return null}function s(l){if(l.tag===31){var d=l.memoizedState;if(d===null&&(l=l.alternate,l!==null&&(d=l.memoizedState)),d!==null)return d.dehydrated}return null}function c(l){if(i(l)!==l)throw Error(a(188))}function u(l){var d=l.alternate;if(!d){if(d=i(l),d===null)throw Error(a(188));return d!==l?null:l}for(var g=l,w=d;;){var T=g.return;if(T===null)break;var R=T.alternate;if(R===null){if(w=T.return,w!==null){g=w;continue}break}if(T.child===R.child){for(R=T.child;R;){if(R===g)return c(T),l;if(R===w)return c(T),d;R=R.sibling}throw Error(a(188))}if(g.return!==w.return)g=T,w=R;else{for(var Q=!1,le=T.child;le;){if(le===g){Q=!0,g=T,w=R;break}if(le===w){Q=!0,w=T,g=R;break}le=le.sibling}if(!Q){for(le=R.child;le;){if(le===g){Q=!0,g=R,w=T;break}if(le===w){Q=!0,w=R,g=T;break}le=le.sibling}if(!Q)throw Error(a(189))}}if(g.alternate!==w)throw Error(a(190))}if(g.tag!==3)throw Error(a(188));return g.stateNode.current===g?l:d}function h(l){var d=l.tag;if(d===5||d===26||d===27||d===6)return l;for(l=l.child;l!==null;){if(d=h(l),d!==null)return d;l=l.sibling}return null}var f=Object.assign,m=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),E=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),B=Symbol.for("react.memo_cache_sentinel"),$=Symbol.iterator;function _(l){return l===null||typeof l!="object"?null:(l=$&&l[$]||l["@@iterator"],typeof l=="function"?l:null)}var W=Symbol.for("react.client.reference");function D(l){if(l==null)return null;if(typeof l=="function")return l.$$typeof===W?null:l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case y:return"Fragment";case S:return"Profiler";case b:return"StrictMode";case P:return"Suspense";case C:return"SuspenseList";case k:return"Activity"}if(typeof l=="object")switch(l.$$typeof){case v:return"Portal";case E:return l.displayName||"Context";case A:return(l._context.displayName||"Context")+".Consumer";case j:var d=l.render;return l=l.displayName,l||(l=d.displayName||d.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case N:return d=l.displayName||null,d!==null?d:D(l.type)||"Memo";case O:d=l._payload,l=l._init;try{return D(l(d))}catch{}}return null}var J=Array.isArray,z=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},te=[],K=-1;function q(l){return{current:l}}function X(l){0>K||(l.current=te[K],te[K]=null,K--)}function U(l,d){K++,te[K]=l.current,l.current=d}var ie=q(null),se=q(null),he=q(null),Y=q(null);function F(l,d){switch(U(he,d),U(se,l),U(ie,null),d.nodeType){case 9:case 11:l=(l=d.documentElement)&&(l=l.namespaceURI)?G5(l):0;break;default:if(l=d.tagName,d=d.namespaceURI)d=G5(d),l=K5(d,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}X(ie),U(ie,l)}function ae(){X(ie),X(se),X(he)}function ne(l){l.memoizedState!==null&&U(Y,l);var d=ie.current,g=K5(d,l.type);d!==g&&(U(se,l),U(ie,g))}function ge(l){se.current===l&&(X(ie),X(se)),Y.current===l&&(X(Y),Tf._currentValue=Z)}var re,oe;function G(l){if(re===void 0)try{throw Error()}catch(g){var d=g.stack.trim().match(/\n( *(at )?)/);re=d&&d[1]||"",oe=-1<g.stack.indexOf(` 42 at`)?" (<anonymous>)":-1<g.stack.indexOf("@")?"@unknown:0:0":""}return` 43`+re+l+oe}var pe=!1;function ee(l,d){if(!l||pe)return"";pe=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var w={DetermineComponentFrameRoot:function(){try{if(d){var Le=function(){throw Error()};if(Object.defineProperty(Le.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Le,[])}catch(Te){var Ae=Te}Reflect.construct(l,[],Le)}else{try{Le.call()}catch(Te){Ae=Te}l.call(Le.prototype)}}else{try{throw Error()}catch(Te){Ae=Te}(Le=l())&&typeof Le.catch=="function"&&Le.catch(function(){})}}
vendor: 10,901 bytes, lines 43-48
43catch(Te){if(Te&&Ae&&typeof Te.stack=="string")return[Te.stack,Ae.stack]}return[null,null]}};w.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var T=Object.getOwnPropertyDescriptor(w.DetermineComponentFrameRoot,"name");T&&T.configurable&&Object.defineProperty(w.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var R=w.DetermineComponentFrameRoot(),Q=R[0],le=R[1];if(Q&&le){var me=Q.split(` 44`),Se=le.split(` 45`);for(T=w=0;w<me.length&&!me[w].includes("DetermineComponentFrameRoot");)w++;for(;T<Se.length&&!Se[T].includes("DetermineComponentFrameRoot");)T++;if(w===me.length||T===Se.length)for(w=me.length-1,T=Se.length-1;1<=w&&0<=T&&me[w]!==Se[T];)T--;for(;1<=w&&0<=T;w--,T--)if(me[w]!==Se[T]){if(w!==1||T!==1)do if(w--,T--,0>T||me[w]!==Se[T]){var _e=` 46`+me[w].replace(" at new "," at ");return l.displayName&&_e.includes("<anonymous>")&&(_e=_e.replace("<anonymous>",l.displayName)),_e}while(1<=w&&0<=T);break}}}finally{pe=!1,Error.prepareStackTrace=g}return(g=l?l.displayName||l.name:"")?G(g):""}function M(l,d){switch(l.tag){case 26:case 27:case 5:return G(l.type);case 16:return G("Lazy");case 13:return l.child!==d&&d!==null?G("Suspense Fallback"):G("Suspense");case 19:return G("SuspenseList");case 0:case 15:return ee(l.type,!1);case 11:return ee(l.type.render,!1);case 1:return ee(l.type,!0);case 31:return G("Activity");default:return""}}function I(l){try{var d="",g=null;do d+=M(l,g),g=l,l=l.return;while(l);return d}catch(w){return` 47Error generating stack: `+w.message+` 48`+w.stack}}var H=Object.prototype.hasOwnProperty,ce=e.unstable_scheduleCallback,fe=e.unstable_cancelCallback,ue=e.unstable_shouldYield,we=e.unstable_requestPaint,Ne=e.unstable_now,De=e.unstable_getCurrentPriorityLevel,xe=e.unstable_ImmediatePriority,Ee=e.unstable_UserBlockingPriority,ze=e.unstable_NormalPriority,We=e.unstable_LowPriority,it=e.unstable_IdlePriority,Pt=e.log,Jt=e.unstable_setDisableYieldValue,xt=null,Oe=null;function ke(l){if(typeof Pt=="function"&&Jt(l),Oe&&typeof Oe.setStrictMode=="function")try{Oe.setStrictMode(xt,l)}catch{}}var Ie=Math.clz32?Math.clz32:Et,Pe=Math.log,at=Math.LN2;function Et(l){return l>>>=0,l===0?32:31-(Pe(l)/at|0)|0}var cr=256,Xt=262144,$t=4194304;function Lt(l){var d=l&42;if(d!==0)return d;switch(l&-l){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return l&261888;case 262144:case 524288:case 1048576:case 2097152:return l&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return l&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return l}}function Je(l,d,g){var w=l.pendingLanes;if(w===0)return 0;var T=0,R=l.suspendedLanes,Q=l.pingedLanes;l=l.warmLanes;var le=w&134217727;return le!==0?(w=le&~R,w!==0?T=Lt(w):(Q&=le,Q!==0?T=Lt(Q):g||(g=le&~l,g!==0&&(T=Lt(g))))):(le=w&~R,le!==0?T=Lt(le):Q!==0?T=Lt(Q):g||(g=w&~l,g!==0&&(T=Lt(g)))),T===0?0:d!==0&&d!==T&&(d&R)===0&&(R=T&-T,g=d&-d,R>=g||R===32&&(g&4194048)!==0)?d:T}function ft(l,d){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&d)===0}function Ke(l,d){switch(l){case 1:case 2:case 4:case 8:case 64:return d+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return d+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ht(){var l=$t;return $t<<=1,($t&62914560)===0&&($t=4194304),l}function ot(l){for(var d=[],g=0;31>g;g++)d.push(l);return d}function Tt(l,d){l.pendingLanes|=d,d!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function zt(l,d,g,w,T,R){var Q=l.pendingLanes;l.pendingLanes=g,l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0,l.expiredLanes&=g,l.entangledLanes&=g,l.errorRecoveryDisabledLanes&=g,l.shellSuspendCounter=0;var le=l.entanglements,me=l.expirationTimes,Se=l.hiddenUpdates;for(g=Q&~g;0<g;){var _e=31-Ie(g),Le=1<<_e;le[_e]=0,me[_e]=-1;var Ae=Se[_e];if(Ae!==null)for(Se[_e]=null,_e=0;_e<Ae.length;_e++){var Te=Ae[_e];Te!==null&&(Te.lane&=-536870913)}g&=~Le}w!==0&&ha(l,w,0),R!==0&&T===0&&l.tag!==0&&(l.suspendedLanes|=R&~(Q&~d))}function ha(l,d,g){l.pendingLanes|=d,l.suspendedLanes&=~d;var w=31-Ie(d);l.entangledLanes|=d,l.entanglements[w]=l.entanglements[w]|1073741824|g&261930}function hr(l,d){var g=l.entangledLanes|=d;for(l=l.entanglements;g;){var w=31-Ie(g),T=1<<w;T&d|l[w]&d&&(l[w]|=d),g&=~T}}function yr(l,d){var g=d&-d;return g=(g&42)!==0?1:vn(g),(g&(l.suspendedLanes|d))!==0?0:g}function vn(l){switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:l=128;break;case 268435456:l=134217728;break;default:l=0}return l}function aa(l){return l&=-l,2<l?8<l?(l&134217727)!==0?32:268435456:8:2}function yn(){var l=V.p;return l!==0?l:(l=window.event,l===void 0?32:g4(l.type))}function Bo(l,d){var g=V.p;try{return V.p=l,d()}finally{V.p=g}}var bn=Math.random().toString(36).slice(2),na="__reactFiber$"+bn,Da="__reactProps$"+bn,oc="__reactContainer$"+bn,mb="__reactEvents$"+bn,zW="__reactListeners$"+bn,FW="__reactHandles$"+bn,Rk="__reactResources$"+bn,Vd="__reactMarker$"+bn;function gb(l){delete l[na],delete l[Da],delete l[mb],delete l[zW],delete l[FW]}function sc(l){var d=l[na];if(d)return d;for(var g=l.parentNode;g;){if(d=g[oc]||g[na]){if(g=d.alternate,d.child!==null||g!==null&&g.child!==null)for(l=e4(l);l!==null;){if(g=l[na])return g;l=e4(l)}return d}l=g,g=l.parentNode}return null}function lc(l){if(l=l[na]||l[oc]){var d=l.tag;if(d===5||d===6||d===13||d===31||d===26||d===27||d===3)return l}return null}function Ud(l){var d=l.tag;if(d===5||d===26||d===27||d===6)return l.stateNode;throw Error(a(33))}function cc(l){var d=l[Rk];return d||(d=l[Rk]={hoistableStyles:new Map,hoistableScripts:new Map}),d}function Yr(l){l[Vd]=!0}var Ok=new Set,Mk={};function zs(l,d){uc(l,d),uc(l+"Capture",d)}function uc(l,d){for(Mk[l]=d,l=0;l<d.length;l++)Ok.add(d[l])}var $W=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Ik={},Bk={};function qW(l){return H.call(Bk,l)?!0:H.call(Ik,l)?!1:$W.test(l)?Bk[l]=!0:(Ik[l]=!0,!1)}function lm(l,d,g){if(qW(d))if(g===null)l.removeAttribute(d);else{switch(typeof g){case"undefined":case"function":case"symbol":l.removeAttribute(d);return;case"boolean":var w=d.toLowerCase().slice(0,5);if(w!=="data-"&&w!=="aria-"){l.removeAttribute(d);return}}l.setAttribute(d,""+g)}}function cm(l,d,g){if(g===null)l.removeAttribute(d);else{switch(typeof g){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(d);return}l.setAttribute(d,""+g)}}function Fi(l,d,g,w){if(w===null)l.removeAttribute(g);else{switch(typeof w){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(g);return}l.setAttributeNS(d,g,""+w)}}function wn(l){switch(typeof l){case"bigint":case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function Lk(l){var d=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(d==="checkbox"||d==="radio")}function VW(l,d,g){var w=Object.getOwnPropertyDescriptor(l.constructor.prototype,d);if(!l.hasOwnProperty(d)&&typeof w<"u"&&typeof w.get=="function"&&typeof w.set=="function"){var T=w.get,R=w.set;return Object.defineProperty(l,d,{configurable:!0,get:function(){return T.call(this)},set:function(Q){g=""+Q,R.call(this,Q)}}),Object.defineProperty(l,d,{enumerable:w.enumerable}),{getValue:function(){return g},setValue:function(Q){g=""+Q},stopTracking:function(){l._valueTracker=null,delete l[d]}}}}function xb(l){if(!l._valueTracker){var d=Lk(l)?"checked":"value";l._valueTracker=VW(l,d,""+l[d])}}function zk(l){if(!l)return!1;var d=l._valueTracker;if(!d)return!0;var g=d.getValue(),w="";return l&&(w=Lk(l)?l.checked?"true":"false":l.value),l=w,l!==g?(d.setValue(l),!0):!1}function um(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}var UW=/[\n"\\]/g;function Sn(l){return l.replace(UW,function(d){return"\\"+d.charCodeAt(0).toString(16)+" "})}function vb(l,d,g,w,T,R,Q,le){l.name="",Q!=null&&typeof Q!="function"&&typeof Q!="symbol"&&typeof Q!="boolean"?l.type=Q:l.removeAttribute("type"),d!=null?Q==="number"?(d===0&&l.value===""||l.value!=d)&&(l.value=""+wn(d)):l.value!==""+wn(d)&&(l.value=""+wn(d)):Q!=="submit"&&Q!=="reset"||l.removeAttribute("value"),d!=null?yb(l,Q,wn(d)):g!=null?yb(l,Q,wn(g)):w!=null&&l.removeAttribute("value"),T==null&&R!=null&&(l.defaultChecked=!!R),T!=null&&(l.checked=T&&typeof T!="function"&&typeof T!="symbol"),le!=null&&typeof le!="function"&&typeof le!="symbol"&&typeof le!="boolean"?l.name=""+wn(le):l.removeAttribute("name")}function Fk(l,d,g,w,T,R,Q,le){if(R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"&&(l.type=R),d!=null||g!=null){if(!(R!=="submit"&&R!=="reset"||d!=null)){xb(l);return}g=g!=null?""+wn(g):"",d=d!=null?""+wn(d):g,le||d===l.value||(l.value=d),l.defaultValue=d}w=w??T,w=typeof w!="function"&&typeof w!="symbol"&&!!w,l.checked=le?l.checked:!!w,l.defaultChecked=!!w,Q!=null&&typeof Q!="function"&&typeof Q!="symbol"&&typeof Q!="boolean"&&(l.name=Q),xb(l)}function yb(l,d,g){d==="number"&&um(l.ownerDocument)===l||l.defaultValue===""+g||(l.defaultValue=""+g)}function dc(l,d,g,w){if(l=l.options,d){d={};for(var T=0;T<g.length;T++)d["$"+g[T]]=!0;for(g=0;g<l.length;g++)T=d.hasOwnProperty("$"+l[g].value),l[g].selected!==T&&(l[g].selected=T),T&&w&&(l[g].defaultSelected=!0)}else{for(g=""+wn(g),d=null,T=0;T<l.length;T++){if(l[T].value===g){l[T].selected=!0,w&&(l[T].defaultSelected=!0);return}d!==null||l[T].disabled||(d=l[T])}d!==null&&(d.selected=!0)}}function $k(l,d,g){if(d!=null&&(d=""+wn(d),d!==l.value&&(l.value=d),g==null)){l.defaultValue!==d&&(l.defaultValue=d);return}l.defaultValue=g!=null?""+wn(g):""}function qk(l,d,g,w){if(d==null){if(w!=null){if(g!=null)throw Error(a(92));if(J(w)){if(1<w.length)throw Error(a(93));w=w[0]}g=w}g==null&&(g=""),d=g}g=wn(d),l.defaultValue=g,w=l.textContent,w===g&&w!==""&&w!==null&&(l.value=w),xb(l)}function fc(l,d){if(d){var g=l.firstChild;
vendor: 4,140 bytes, line 48
48if(g&&g===l.lastChild&&g.nodeType===3){g.nodeValue=d;return}}l.textContent=d}var HW=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Vk(l,d,g){var w=d.indexOf("--")===0;g==null||typeof g=="boolean"||g===""?w?l.setProperty(d,""):d==="float"?l.cssFloat="":l[d]="":w?l.setProperty(d,g):typeof g!="number"||g===0||HW.has(d)?d==="float"?l.cssFloat=g:l[d]=(""+g).trim():l[d]=g+"px"}function Uk(l,d,g){if(d!=null&&typeof d!="object")throw Error(a(62));if(l=l.style,g!=null){for(var w in g)!g.hasOwnProperty(w)||d!=null&&d.hasOwnProperty(w)||(w.indexOf("--")===0?l.setProperty(w,""):w==="float"?l.cssFloat="":l[w]="");for(var T in d)w=d[T],d.hasOwnProperty(T)&&g[T]!==w&&Vk(l,T,w)}else for(var R in d)d.hasOwnProperty(R)&&Vk(l,R,d[R])}function bb(l){if(l.indexOf("-")===-1)return!1;switch(l){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var GW=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode
48-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),KW=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function dm(l){return KW.test(""+l)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":l}function $i(){}var wb=null;function Sb(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var pc=null,hc=null;function Hk(l){var d=lc(l);if(d&&(l=d.stateNode)){var g=l[Da]||null;e:switch(l=d.stateNode,d.type){case"input":if(vb(l,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name),d=g.name,g.type==="radio"&&d!=null){for(g=l;g.parentNode;)g=g.parentNode;for(g=g.querySelectorAll('input[name="'+Sn(""+d)+'"][type="radio"]'),d=0;d<g.length;d++){var w=g[d];if(w!==l&&w.form===l.form){var T=w[Da]||null;if(!T)throw Error(a(90));vb(w,T.value,T.defaultValue,T.defaultValue,T.checked,T.defaultChecked,T.type,T.name)}}for(d=0;d<g.length;d++)w=g[d],w.form===l.form&&zk(w)}break e;case"textarea":$k(l,g.value,g.defaultValue);break e;case"select":d=g.value,d!=null&&dc(l,!!g.multiple,d,!1)}}}var Eb=!1;function Gk(l,d,g){if(Eb)return l(d,g);Eb=!0;try{var w=l(d);return w}finally{if(Eb=!1,(pc!==null||hc!==null)&&(Jm(),pc&&(d=pc,l=hc,hc=pc=null,Hk(d),l)))for(d=0;d<l.length;d++)Hk(l[d])}}function Hd(l,d){var g=l.stateNode;if(g===null)return null;var w=g[Da]||null;if(w===null)return null;g=w[d];e:switch(d){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(w=!w.disabled)||(l=l.type,w=!(l==="button"||l==="input"||l==="select"||l==="textarea")),l=!w;break e;default:l=!1}if(l)return null;if(g&&typeof g!="function")throw Error(a(231,d,typeof g));return g}var qi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ab=!1;if(qi)try{var Gd={};Object.defineProperty(Gd,"passive",{get:function(){Ab=!0}}),window.addEventListener("test",Gd,Gd),window.removeEventListener("test",Gd,Gd)}catch{Ab=!1}var Lo=null,Cb=null,fm=null;function Kk(){if(fm)return fm;var l,d=Cb,g=d.length,w,T="value"in Lo?Lo.value:Lo.textContent,R=T.length;for(l=0;l<g&&d[l]===T[l];l++);var Q=g-l;for(w=1;w<=Q&&d[g-w]===T[R-w];w++);return fm=T.slice(l,1<w?1-w:void 0)}function pm(l){var d=l.keyCode;return"charCode"in l?(l=l.charCode,l===0&&d===13&&(l=13)):l=d,l===10&&(l=13),32<=l||l===13?l:0}function hm(){return!0}function Wk(){return!1}function _a(l){function d(g,w,T,R,Q){this._reactName=g,this._targetInst=T,this.type=w,this.nativeEvent=R,this.target=Q,this.currentTarget=null;for(var le in l)l.hasOwnProperty(le)&&(g=l[le],this[le]=g?g(R):R[le]);return this.isDefaultPrevented=(R.defaultPrevented!=null?R.defaultPrevented:R.returnValue===!1)?hm:Wk,this.isPropagationStopped=Wk,this}return f(d.prototype,{preventDefault:function(){this.defaultPrevented=!0;var g=this.nativeEvent;g&&(g.preventDefault?g.preventDefault():typeof g.returnValue!="unknown"&&(g.returnValue=!1),this.isDefaultPrevented=hm)},stopPropagation:function(){var g=this.nativeEvent;g&&(g.stopPropagation?g.stopPropagation():typeof g.cancelBubble!="unknown"&&(g.cancelBubble=!0),this.isPropagationStopped=hm)},persist:function(){},isPersistent:hm}),d}var Fs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(l){return l.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},mm=_a(Fs),Kd=f({},Fs,{view:0,detail:0}),WW=_a(Kd),Pb,jb,Wd,gm=f({},Kd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tb,button:0,buttons:0,relatedTarget:function(l){return l.relatedTarget===void 0?l.fromElement===l.srcElement?l.toElement:l.fromElement:l.relatedTarget},movementX:function(l){return"movementX"in l?l.movementX:(l!==Wd&&(Wd&&l.type==="mousemove"?(Pb=l.screenX-Wd.screenX,jb=l.screenY-Wd.screenY):jb=Pb=0,Wd=l),Pb)},movementY:function(l){return"movementY"in l?l.movementY:jb}}),Xk=_a(gm),XW=f({},gm,{dataTransfer:0}),YW=_a(XW),ZW=f({},Kd,{relatedTarget:0}),Nb=_a(ZW),JW=f({},Fs,{animationName:0,elapsedTime:0,pseudoElement:0}),QW=_a(JW),eX=f({},Fs,{clipboardData:function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData}}),tX=_a(eX),rX=f({},Fs,{data:0}),Yk=_a(rX),aX={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},nX={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},iX={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function oX(l){var d=this.nativeEvent;return d.getModifierState?d.getModifierState(l):(l=iX[l])?!!d[l]:!1}
vendor: 4,985 bytes, line 48
48function Tb(){return oX}var sX=f({},Kd,{key:function(l){if(l.key){var d=aX[l.key]||l.key;if(d!=="Unidentified")return d}return l.type==="keypress"?(l=pm(l),l===13?"Enter":String.fromCharCode(l)):l.type==="keydown"||l.type==="keyup"?nX[l.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tb,charCode:function(l){return l.type==="keypress"?pm(l):0},keyCode:function(l){return l.type==="keydown"||l.type==="keyup"?l.keyCode:0},which:function(l){return l.type==="keypress"?pm(l):l.type==="keydown"||l.type==="keyup"?l.keyCode:0}}),lX=_a(sX),cX=f({},gm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Zk=_a(cX),uX=f({},Kd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tb}),dX=_a(uX),fX=f({},Fs,{propertyName:0,elapsedTime:0,pseudoElement:0}),pX=_a(fX),hX=f({},gm,{deltaX:function(l){return"deltaX"in l?l.deltaX:"wheelDeltaX"in l?-l.wheelDeltaX:0},deltaY:function(l){return"deltaY"in l?l.deltaY:"wheelDeltaY"in l?-l.wheelDeltaY:"wheelDelta"in l?-l.wheelDelta:0},deltaZ:0,deltaMode:0}),mX=_a(hX),gX=f({},Fs,{newState:0,oldState:0}),xX=_a(gX),vX=[9,13,27,32],kb=qi&&"CompositionEvent"in window,Xd=null;qi&&"documentMode"in document&&(Xd=document.documentMode);var yX=qi&&"TextEvent"in window&&!Xd,Jk=qi&&(!kb||Xd&&8<Xd&&11>=Xd),Qk=" ",eD=!1;function tD(l,d){switch(l){case"keyup":return vX.indexOf(d.keyCode)!==-1;case"keydown":return d.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rD(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var mc=!1;function bX(l,d){switch(l){case"compositionend":return rD(d);case"keypress":return d.which!==32?null:(eD=!0,Qk);case"textInput":return l=d.data,l===Qk&&eD?null:l;default:return null}}function wX(l,d){if(mc)return l==="compositionend"||!kb&&tD(l,d)?(l=Kk(),fm=Cb=Lo=null,mc=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(d.ctrlKey||d.altKey||d.metaKey)||d.ctrlKey&&d.altKey){if(d.char&&1<d.char.length)return d.char;if(d.which)return String.fromCharCode(d.which)}return null;case"compositionend":return Jk&&d.locale!=="ko"?null:d.data;default:return null}}var SX={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function aD(l){var d=l&&l.nodeName&&l.nodeName.toLowerCase();return d==="input"?!!SX[l.type]:d==="textarea"}function nD(l,d,g,w){pc?hc?hc.push(w):hc=[w]:pc=w,d=ig(d,"onChange"),0<d.length&&(g=new mm("onChange","change",null,g,w),l.push({event:g,listeners:d}))}var Yd=null,Zd=null;function EX(l){F5(l,0)}function xm(l){var d=Ud(l);if(zk(d))return l}function iD(l,d){if(l==="change")return d}var oD=!1;if(qi){var Db;if(qi){var _b="oninput"in document;if(!_b){var sD=document.createElement("div");sD.setAttribute("oninput","return;"),_b=typeof sD.oninput=="function"}Db=_b}else Db=!1;oD=Db&&(!document.documentMode||9<document.documentMode)}function lD(){Yd&&(Yd.detachEvent("onpropertychange",cD),Zd=Yd=null)}function cD(l){if(l.propertyName==="value"&&xm(Zd)){var d=[];nD(d,Zd,l,Sb(l)),Gk(EX,d)}}function AX(l,d,g){l==="focusin"?(lD(),Yd=d,Zd=g,Yd.attachEvent("onpropertychange",cD)):l==="focusout"&&lD()}function CX(l){if(l==="selectionchange"||l==="keyup"||l==="keydown")return xm(Zd)}function PX(l,d){if(l==="click")return xm(d)}function jX(l,d){if(l==="input"||l==="change")return xm(d)}function NX(l,d){return l===d&&(l!==0||1/l===1/d)||l!==l&&d!==d}var Xa=typeof Object.is=="function"?Object.is:NX;function Jd(l,d){if(Xa(l,d))return!0;if(typeof l!="object"||l===null||typeof d!="object"||d===null)return!1;var g=Object.keys(l),w=Object.keys(d);if(g.length!==w.length)return!1;for(w=0;w<g.length;w++){var T=g[w];if(!H.call(d,T)||!Xa(l[T],d[T]))return!1}return!0}function uD(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function dD(l,d){var g=uD(l);l=0;for(var w;g;){if(g.nodeType===3){if(w=l+g.textContent.length,l<=d&&w>=d)return{node:g,offset:d-l};l=w}e:{for(;g;){if(g.nextSibling){g=g.nextSibling;break e}g=g.parentNode}g=void 0}g=uD(g)}}function fD(l,d){return l&&d?l===d?!0:l&&l.nodeType===3?!1:d&&d.nodeType===3?fD(l,d.parentNode):"contains"in l?l.contains(d):l.compareDocumentPosition?!!(l.compareDocumentPosition(d)&16):!1:!1}function pD(l){l=l!=null&&l.ownerDocument!=null&&l.ownerDocument.defaultView!=null?l.ownerDocument.defaultView:window;for(var d=um(l.document);d instanceof l.HTMLIFrameElement;){try{var g=typeof d.contentWindow.location.href=="string"}catch{g=!1}if(g)l=d.contentWindow;else break;d=um(l.document)}return d}function Rb(l){var d=l&&l.nodeName&&l.nodeName.toLowerCase();return d&&(d==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||d==="textarea"||l.contentEditable==="true")}var TX=qi&&"documentMode"in document&&11>=document.documentMode,gc=null,Ob=null,Qd=null,Mb=!1;
vendor: 21,347 bytes, line 48
48function hD(l,d,g){var w=g.window===g?g.document:g.nodeType===9?g:g.ownerDocument;Mb||gc==null||gc!==um(w)||(w=gc,"selectionStart"in w&&Rb(w)?w={start:w.selectionStart,end:w.selectionEnd}:(w=(w.ownerDocument&&w.ownerDocument.defaultView||window).getSelection(),w={anchorNode:w.anchorNode,anchorOffset:w.anchorOffset,focusNode:w.focusNode,focusOffset:w.focusOffset}),Qd&&Jd(Qd,w)||(Qd=w,w=ig(Ob,"onSelect"),0<w.length&&(d=new mm("onSelect","select",null,d,g),l.push({event:d,listeners:w}),d.target=gc)))}function $s(l,d){var g={};return g[l.toLowerCase()]=d.toLowerCase(),g["Webkit"+l]="webkit"+d,g["Moz"+l]="moz"+d,g}var xc={animationend:$s("Animation","AnimationEnd"),animationiteration:$s("Animation","AnimationIteration"),animationstart:$s("Animation","AnimationStart"),transitionrun:$s("Transition","TransitionRun"),transitionstart:$s("Transition","TransitionStart"),transitioncancel:$s("Transition","TransitionCancel"),transitionend:$s("Transition","TransitionEnd")},Ib={},mD={};qi&&(mD=document.createElement("div").style,"AnimationEvent"in window||(delete xc.animationend.animation,delete xc.animationiteration.animation,delete xc.animationstart.animation),"TransitionEvent"in window||delete xc.transitionend.transition);function qs(l){if(Ib[l])return Ib[l];if(!xc[l])return l;var d=xc[l],g;for(g in d)if(d.hasOwnProperty(g)&&g in mD)return Ib[l]=d[g];return l}var gD=qs("animationend"),xD=qs("animationiteration"),vD=qs("animationstart"),kX=qs("transitionrun"),DX=qs("transitionstart"),_X=qs("transitioncancel"),yD=qs("transitionend"),bD=new Map,Bb="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Bb.push("scrollEnd");function Hn(l,d){bD.set(l,d),zs(d,[l])}var vm=typeof reportError=="function"?reportError:function(l){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var d=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof l=="object"&&l!==null&&typeof l.message=="string"?String(l.message):String(l),error:l});if(!window.dispatchEvent(d))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",l);return}console.error(l)},En=[],vc=0,Lb=0;function ym(){for(var l=vc,d=Lb=vc=0;d<l;){var g=En[d];En[d++]=null;var w=En[d];En[d++]=null;var T=En[d];En[d++]=null;var R=En[d];if(En[d++]=null,w!==null&&T!==null){var Q=w.pending;Q===null?T.next=T:(T.next=Q.next,Q.next=T),w.pending=T}R!==0&&wD(g,T,R)}}function bm(l,d,g,w){En[vc++]=l,En[vc++]=d,En[vc++]=g,En[vc++]=w,Lb|=w,l.lanes|=w,l=l.alternate,l!==null&&(l.lanes|=w)}function zb(l,d,g,w){return bm(l,d,g,w),wm(l)}function Vs(l,d){return bm(l,null,null,d),wm(l)}function wD(l,d,g){l.lanes|=g;var w=l.alternate;w!==null&&(w.lanes|=g);for(var T=!1,R=l.return;R!==null;)R.childLanes|=g,w=R.alternate,w!==null&&(w.childLanes|=g),R.tag===22&&(l=R.stateNode,l===null||l._visibility&1||(T=!0)),l=R,R=R.return;return l.tag===3?(R=l.stateNode,T&&d!==null&&(T=31-Ie(g),l=R.hiddenUpdates,w=l[T],w===null?l[T]=[d]:w.push(d),d.lane=g|536870912),R):null}function wm(l){if(50<Sf)throw Sf=0,W0=null,Error(a(185));for(var d=l.return;d!==null;)l=d,d=l.return;return l.tag===3?l.stateNode:null}var yc={};function RX(l,d,g,w){this.tag=l,this.key=g,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=d,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=w,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ya(l,d,g,w){return new RX(l,d,g,w)}function Fb(l){return l=l.prototype,!(!l||!l.isReactComponent)}function Vi(l,d){var g=l.alternate;return g===null?(g=Ya(l.tag,d,l.key,l.mode),g.elementType=l.elementType,g.type=l.type,g.stateNode=l.stateNode,g.alternate=l,l.alternate=g):(g.pendingProps=d,g.type=l.type,g.flags=0,g.subtreeFlags=0,g.deletions=null),g.flags=l.flags&65011712,g.childLanes=l.childLanes,g.lanes=l.lanes,g.child=l.child,g.memoizedProps=l.memoizedProps,g.memoizedState=l.memoizedState,g.updateQueue=l.updateQueue,d=l.dependencies,g.dependencies=d===null?null:{lanes:d.lanes,firstContext:d.firstContext},g.sibling=l.sibling,g.index=l.index,g.ref=l.ref,g.refCleanup=l.refCleanup,g}function SD(l,d){l.flags&=65011714;var g=l.alternate;return g===null?(l.childLanes=0,l.lanes=d,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=g.childLanes,l.lanes=g.lanes,l.child=g.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=g.memoizedProps,l.memoizedState=g.memoizedState,l.updateQueue=g.updateQueue,l.type=g.type,d=g.dependencies,l.dependencies=d===null?null:{lanes:d.lanes,firstContext:d.firstContext}),l}function Sm(l,d,g,w,T,R){var Q=0;if(w=l,typeof l=="function")Fb(l)&&(Q=1);else if(typeof l=="string")Q=LY(l,g,ie.current)?26:l==="html"||l==="head"||l==="body"?27:5;else e:switch(l){case k:return l=Ya(31,g,d,T),l.elementType=k,l.lanes=R,l;case y:return Us(g.children,T,R,d);case b:Q=8,T|=24;break;case S:return l=Ya(12,g,d,T|2),l.elementType=S,l.lanes=R,l;case P:return l=Ya(13,g,d,T),l.elementType=P,l.lanes=R,l;case C:return l=Ya(19,g,d,T),l.elementType=C,l.lanes=R,l;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case E:Q=10;break e;case A:Q=9;break e;case j:Q=11;break e;case N:Q=14;break e;case O:Q=16,w=null;break e}Q=29,g=Error(a(130,l===null?"null":typeof l,"")),w=null}return d=Ya(Q,g,d,T),d.elementType=l,d.type=w,d.lanes=R,d}function Us(l,d,g,w){return l=Ya(7,l,w,d),l.lanes=g,l}function $b(l,d,g){return l=Ya(6,l,null,d),l.lanes=g,l}function ED(l){var d=Ya(18,null,null,0);return d.stateNode=l,d}function qb(l,d,g){return d=Ya(4,l.children!==null?l.children:[],l.key,d),d.lanes=g,d.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},d}var AD=new WeakMap;function An(l,d){if(typeof l=="object"&&l!==null){var g=AD.get(l);return g!==void 0?g:(d={value:l,source:d,stack:I(d)},AD.set(l,d),d)}return{value:l,source:d,stack:I(d)}}var bc=[],wc=0,Em=null,ef=0,Cn=[],Pn=0,zo=null,ui=1,di="";function Ui(l,d){bc[wc++]=ef,bc[wc++]=Em,Em=l,ef=d}function CD(l,d,g){Cn[Pn++]=ui,Cn[Pn++]=di,Cn[Pn++]=zo,zo=l;var w=ui;l=di;var T=32-Ie(w)-1;w&=~(1<<T),g+=1;var R=32-Ie(d)+T;if(30<R){var Q=T-T%5;R=(w&(1<<Q)-1).toString(32),w>>=Q,T-=Q,ui=1<<32-Ie(d)+T|g<<T|w,di=R+l}else ui=1<<R|g<<T|w,di=l}function Vb(l){l.return!==null&&(Ui(l,1),CD(l,1,0))}function Ub(l){for(;l===Em;)Em=bc[--wc],bc[wc]=null,ef=bc[--wc],bc[wc]=null;for(;l===zo;)zo=Cn[--Pn],Cn[Pn]=null,di=Cn[--Pn],Cn[Pn]=null,ui=Cn[--Pn],Cn[Pn]=null}function PD(l,d){Cn[Pn++]=ui,Cn[Pn++]=di,Cn[Pn++]=zo,ui=d.id,di=d.overflow,zo=l}var ia=null,mr=null,It=!1,Fo=null,jn=!1,Hb=Error(a(519));function $o(l){var d=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw tf(An(d,l)),Hb}function jD(l){var d=l.stateNode,g=l.type,w=l.memoizedProps;switch(d[na]=l,d[Da]=w,g){case"dialog":_t("cancel",d),_t("close",d);break;case"iframe":case"object":case"embed":_t("load",d);break;case"video":case"audio":for(g=0;g<Af.length;g++)_t(Af[g],d);break;case"source":_t("error",d);break;case"img":case"image":case"link":_t("error",d),_t("load",d);break;case"details":_t("toggle",d);break;case"input":_t("invalid",d),Fk(d,w.value,w.defaultValue,w.checked,w.defaultChecked,w.type,w.name,!0);break;case"select":_t("invalid",d);break;case"textarea":_t("invalid",d),qk(d,w.value,w.defaultValue,w.children)}g=w.children,typeof g!="string"&&typeof g!="number"&&typeof g!="bigint"||d.textContent===""+g||w.suppressHydrationWarning===!0||U5(d.textContent,g)?(w.popover!=null&&(_t("beforetoggle",d),_t("toggle",d)),w.onScroll!=null&&_t("scroll",d),w.onScrollEnd!=null&&_t("scrollend",d),w.onClick!=null&&(d.onclick=$i),d=!0):d=!1,d||$o(l,!0)}function ND(l){for(ia=l.return;ia;)switch(ia.tag){case 5:case 31:case 13:jn=!1;return;case 27:case 3:jn=!0;return;default:ia=ia.return}}function Sc(l){if(l!==ia)return!1;if(!It)return ND(l),It=!0,!1;var d=l.tag,g;if((g=d!==3&&d!==27)&&((g=d===5)&&(g=l.type,g=!(g!=="form"&&g!=="button")||c1(l.type,l.memoizedProps)),g=!g),g&&mr&&$o(l),ND(l),d===13){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(a(317));mr=Q5(l)}else if(d===31){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(a(317));mr=Q5(l)}else d===27?(d=mr,ts(l.type)?(l=h1,h1=null,mr=l):mr=d):mr=ia?Tn(l.stateNode.nextSibling):null;return!0}function Hs(){mr=ia=null,It=!1}function Gb(){var l=Fo;return l!==null&&(Ia===null?Ia=l:Ia.push.apply(Ia,l),Fo=null),l}function tf(l){Fo===null?Fo=[l]:Fo.push(l)}var Kb=q(null),Gs=null,Hi=null;function qo(l,d,g){U(Kb,d._currentValue),d._currentValue=g}function Gi(l){l._currentValue=Kb.current,X(Kb)}function Wb(l,d,g){for(;l!==null;){var w=l.alternate;if((l.childLanes&d)!==d?(l.childLanes|=d,w!==null&&(w.childLanes|=d)):w!==null&&(w.childLanes&d)!==d&&(w.childLanes|=d),l===g)break;l=l.return}}function Xb(l,d,g,w){var T=l.child;for(T!==null&&(T.return=l);T!==null;){var R=T.dependencies;if(R!==null){var Q=T.child;R=R.firstContext;e:for(;R!==null;){var le=R;R=T;for(var me=0;me<d.length;me++)if(le.context===d[me]){R.lanes|=g,le=R.alternate,le!==null&&(le.lanes|=g),Wb(R.return,g,l),w||(Q=null);break e}R=le.next}}else if(T.tag===18){if(Q=T.return,Q===null)throw Error(a(341));Q.lanes|=g,R=Q.alternate,R!==null&&(R.lanes|=g),Wb(Q,g,l),Q=null}else Q=T.child;if(Q!==null)Q.return=T;else for(Q=T;Q!==null;){if(Q===l){Q=null;break}if(T=Q.sibling,T!==null){T.return=Q.return,Q=T;break}Q=Q.return}T=Q}}function Ec(l,d,g,w){l=null;for(var T=d,R=!1;T!==null;){if(!R){if((T.flags&524288)!==0)R=!0;else if((T.flags&262144)!==0)break}if(T.tag===10){var Q=T.alternate;if(Q===null)throw Error(a(387));if(Q=Q.memoizedProps,Q!==null){var le=T.type;Xa(T.pendingProps.value,Q.value)||(l!==null?l.push(le):l=[le])}}else if(T===Y.current){if(Q=T.alternate,Q===null)throw Error(a(387));Q.memoizedState.memoizedState!==T.memoizedState.memoizedState&&(l!==null?l.push(Tf):l=[Tf])}T=T.return}l!==null&&Xb(d,l,g,w),d.flags|=262144}function Am(l){for(l=l.firstContext;l!==null;){if(!Xa(l.context._currentValue,l.memoizedValue))return!0;l=l.next}return!1}function Ks(l){Gs=l,Hi=null,l=l.dependencies,l!==null&&(l.firstContext=null)}function oa(l){return TD(Gs,l)}function Cm(l,d){return Gs===null&&Ks(l),TD(l,d)}function TD(l,d){var g=d._currentValue;if(d={context:d,memoizedValue:g,next:null},Hi===null){if(l===null)throw Error(a(308));Hi=d,l.dependencies={lanes:0,firstContext:d},l.flags|=524288}else Hi=Hi.next=d;return g}var OX=typeof AbortController<"u"?AbortController:function(){var l=[],d=this.signal={aborted:!1,addEventListener:function(g,w){l.push(w)}};this.abort=function(){d.aborted=!0,l.forEach(function(g){return g()})}},MX=e.unstable_scheduleCallback,IX=e.unstable_NormalPriority,Rr={$$typeof:E,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Yb(){return{controller:new OX,data:new Map,refCount:0}}function rf(l){l.refCount--,l.refCount===0&&MX(IX,function(){l.controller.abort()})}var af=null,Zb=0,Ac=0,Cc=null;function BX(l,d){if(af===null){var g=af=[];Zb=0,Ac=e1(),Cc={status:"pending",value:void 0,then:function(w){g.push(w)}}}return Zb++,d.then(kD,kD),d}function kD(){if(--Zb===0&&af!==null){Cc!==null&&(Cc.status="fulfilled");var l=af;af=null,Ac=0,Cc=null;for(var d=0;d<l.length;d++)(0,l[d])()}}function LX(l,d){var g=[],w={status:"pending",value:null,reason:null,then:function(T){g.push(T)}};return l.then(function(){w.status="fulfilled",w.value=d;for(var T=0;T<g.length;T++)(0,g[T])(d)},function(T){for(w.status="rejected",w.reason=T,T=0;T<g.length;T++)(0,g[T])(void 0)}),w}var DD=z.S;z.S=function(l,d){h5=Ne(),typeof d=="object"&&d!==null&&typeof d.then=="function"&&BX(l,d),DD!==null&&DD(l,d)};var Ws=q(null);function Jb(){var l=Ws.current;return l!==null?l:or.pooledCache}function Pm(l,d){d===null?U(Ws,Ws.current):U(Ws,d.pool)}function _D(){var l=Jb();return l===null?null:{parent:Rr._currentValue,pool:l}}var Pc=Error(a(460)),Qb=Error(a(474)),jm=Error(a(542)),Nm={then:function(){}};function RD(l){return l=l.status,l==="fulfilled"||l==="rejected"}function OD(l,d,g){switch(g=l[g],g===void 0?l.push(d):g!==d&&(d.then($i,$i),d=g),d.status){case"fulfilled":return d.value;case"rejected":throw l=d.reason,ID(l),l;default:if(typeof d.status=="string")d.then($i,$i);else{if(l=or,l!==null&&100<l.shellSuspendCounter)throw Error(a(482));l=d,l.status="pending",l.then(function(w){if(d.status==="pending"){var T=d;T.status="fulfilled",T.value=w}},function(w){if(d.status==="pending"){var T=d;T.status="rejected",T.reason=w}})}switch(d.status){case"fulfilled":return d.value;case"rejected":throw l=d.reason,ID(l),l}throw Ys=d,Pc}}function Xs(l){try{var d=l._init;return d(l._payload)}catch(g){throw g!==null&&typeof g=="object"&&typeof g.then=="function"?(Ys=g,Pc):g}}var Ys=null;function MD(){if(Ys===null)throw Error(a(459));var l=Ys;return Ys=null,l}function ID(l){if(l===Pc||l===jm)throw Error(a(483))}var jc=null,nf=0;function Tm(l){var d=nf;return nf+=1,jc===null&&(jc=[]),OD(jc,l,d)}function of(l,d){d=d.props.ref,l.ref=d!==void 0?d:null}function km(l,d){throw d.$$typeof===m?Error(a(525)):(l=Object.prototype.toString.call(d),Error(a(31,l==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":l)))}function BD(l){function d(ye,ve){if(l){var be=ye.deletions;be===null?(ye.deletions=[ve],ye.flags|=16):be.push(ve)}}function g(ye,ve){if(!l)return null;for(;ve!==null;)d(ye,ve),ve=ve.sibling;return null}function w(ye){for(var ve=new Map;ye!==null;)ye.key!==null?ve.set(ye.key,ye):ve.set(ye.index,ye),ye=ye.sibling;return ve}function T(ye,ve){return ye=Vi(ye,ve),ye.index=0,ye.sibling=null,ye}function R(ye,ve,be){return ye.index=be,l?(be=ye.alternate,be!==null?(be=be.index,be<ve?(ye.flags|=67108866,ve):be):(ye.flags|=67108866,ve)):(ye.flags|=1048576,ve)}function Q(ye){return l&&ye.alternate===null&&(ye.flags|=67108866),ye}function le(ye,ve,be,Be){return ve===null||ve.tag!==6?(ve=$b(be,ye.mode,Be),ve.return=ye,ve):(ve=T(ve,be),ve.return=ye,ve)}function me(ye,ve,be,Be){var nt=be.type;return nt===y?_e(ye,ve,be.props.children,Be,be.key):ve!==null&&(ve.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===O&&Xs(nt)===ve.type)?(ve=T(ve,be.props),of(ve,be),ve.return=ye,ve):(ve=Sm(be.type,be.key,be.props,null,ye.mode,Be),of(ve,be),ve.return=ye,ve)}function Se(ye,ve,be,Be){return ve===null||ve.tag!==4||ve.stateNode.containerInfo!==be.containerInfo||ve.stateNode.implementation!==be.implementation?(ve=qb(be,ye.mode,Be),ve.return=ye,ve):(ve=T(ve,be.children||[]),ve.return=ye,ve)}function _e(ye,ve,be,Be,nt){return ve===null||ve.tag!==7?(ve=Us(be,ye.mode,Be,nt),ve.return=ye,ve):(ve=T(ve,be),ve.return=ye,ve)}function Le(ye,ve,be){if(typeof ve=="string"&&ve!==""||typeof ve=="number"||typeof ve=="bigint")return ve=$b(""+ve,ye.mode,be),ve.return=ye,ve;if(typeof ve=="object"&&ve!==null){switch(ve.$$typeof){case x:return be=Sm(ve.type,ve.key,ve.props,null,ye.mode,be),of(be,ve),be.return=ye,be;case v:return ve=qb(ve,ye.mode,be),ve.return=ye,ve;case O:return ve=Xs(ve),Le(ye,ve,be)}if(J(ve)||_(ve))return ve=Us(ve,ye.mode,be,null),ve.return=ye,ve;if(typeof ve.then=="function")return Le(ye,Tm(ve),be);if(ve.$$typeof===E)return Le(ye,Cm(ye,ve),be);km(ye,ve)}return null}function Ae(ye,ve,be,Be){var nt=ve!==null?ve.key:null;if(typeof be=="string"&&be!==""||typeof be=="number"||typeof be=="bigint")return nt!==null?null:le(ye,ve,""+be,Be);if(typeof be=="object"&&be!==null){switch(be.$$typeof){case x:return be.key===nt?me(ye,ve,be,Be):null;case v:return be.key===nt?Se(ye,ve,be,Be):null;case O:return be=Xs(be),Ae(ye,ve,be,Be)}if(J(be)||_(be))return nt!==null?null:_e(ye,ve,be,Be,null);if(typeof be.then=="function")return Ae(ye,ve,Tm(be),Be);if(be.$$typeof===E)return Ae(ye,ve,Cm(ye,be),Be);km(ye,be)}return null}function Te(ye,ve,be,Be,nt){if(typeof Be=="string"&&Be!==""||typeof Be=="number"||typeof Be=="bigint")return ye=ye.get(be)||null,le(ve,ye,""+Be,nt);if(typeof Be=="object"&&Be!==null){switch(Be.$$typeof){case x:return ye=ye.get(Be.key===null?be:Be.key)||null,me(ve,ye,Be,nt);case v:return ye=ye.get(Be.key===null?be:Be.key)||null,Se(ve,ye,Be,nt);case O:return Be=Xs(Be),Te(ye,ve,be,Be,nt)}if(J(Be)||_(Be))return ye=ye.get(be)||null,_e(ve,ye,Be,nt,null);if(typeof Be.then=="function")return Te(ye,ve,be,Tm(Be),nt);if(Be.$$typeof===E)return Te(ye,ve,be,Cm(ve,Be),nt);km(ve,Be)}return null}function Ze(ye,ve,be,Be){for(var nt=null,Vt=null,tt=ve,At=ve=0,Mt=null;tt!==null&&At<be.length;At++){tt.index>At?(Mt=tt,tt=null):Mt=tt.sibling;var Ut=Ae(ye,tt,be[At],Be);if(Ut===null){tt===null&&(tt=Mt);break}l&&tt&&Ut.alternate===null&&d(ye,tt),ve=R(Ut,ve,At),Vt===null?nt=Ut:Vt.sibling=Ut,Vt=Ut,tt=Mt}if(At===be.length)return g(ye,tt),It&&Ui(ye,At),nt;if(tt===null){for(;At<be.length;At++)tt=Le(ye,be[At],Be),tt!==null&&(ve=R(tt,ve,At),Vt===null?nt=tt:Vt.sibling=tt,Vt=tt);return It&&Ui(ye,At),nt}for(tt=w(tt);At<be.length;At++)Mt=Te(tt,ye,At,be[At],Be),Mt!==null&&(l&&Mt.alternate!==null&&tt.delete(Mt.key===null?At:Mt.key),ve=R(Mt,ve,At),Vt===null?nt=Mt:Vt.sibling=Mt,Vt=Mt);return l&&tt.forEach(function(os){return d(ye,os)}),It&&Ui(ye,At),nt}function ut(ye,ve,be,Be){if(be==null)throw Error(a(151));for(var nt=null,Vt=null,tt=ve,At=ve=0,Mt=null,Ut=be.next();tt!==null&&!Ut.done;At++,Ut=be.next()){tt.index>At?(Mt=tt,tt=null):Mt=tt.sibling;var os=Ae(ye,tt,Ut.value,Be);if(os===null){tt===null&&(tt=Mt);break}l&&tt&&os.alternate===null&&d(ye,tt),ve=R(os,ve,At),Vt===null?nt=os:Vt.sibling=os,Vt=os,tt=Mt}if(Ut.done)return g(ye,tt),It&&Ui(ye,At),nt;if(tt===null){for(;!Ut.done;At++,Ut=be.next())Ut=Le(ye,Ut.value,Be),Ut!==null&&(ve=R(Ut,ve,At),Vt===null?nt=Ut:Vt.sibling=Ut,Vt=Ut);return It&&Ui(ye,At),nt}for(tt=w(tt);!Ut.done;At++,Ut=be.next())Ut=Te(tt,ye,At,Ut.value,Be),Ut!==null&&(l&&Ut.alternate!==null&&tt.delete(Ut.key===null?At:Ut.key),ve=R(Ut,ve,At),Vt===null?nt=Ut:Vt.sibling=Ut,Vt=Ut);return l&&tt.forEach(function(XY){return d(ye,XY)}),It&&Ui(ye,At),nt}function nr(ye,ve,be,Be){if(typeof be=="object"&&be!==null&&be.type===y&&be.key===null&&(be=be.props.children),typeof be=="object"&&be!==null){switch(be.$$typeof){case x:e:{for(var nt=be.key;ve!==null;){if(ve.key===nt){if(nt=be.type,nt===y){if(ve.tag===7){g(ye,ve.sibling),Be=T(ve,be.props.children),Be.return=ye,ye=Be;break e}}else if(ve.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===O&&Xs(nt)===ve.type){g(ye,ve.sibling),Be=T(ve,be.props),of(Be,be),Be.return=ye,ye=Be;break e}g(ye,ve);break}else d(ye,ve);ve=ve.sibling}be.type===y?(Be=Us(be.props.children,ye.mode,Be,be.key),Be.return=ye,ye=Be):(Be=Sm(be.type,be.key,be.props,null,ye.mode,Be),of(Be,be),Be.return=ye,ye=Be)}return Q(ye);case v:e:{for(nt=be.key;ve!==null;){if(ve.key===nt)if(ve.tag===4&&ve.stateNode.containerInfo===be.containerInfo&&ve.stateNode.implementation===be.implementation){g(ye,ve.sibling),Be=T(ve,be.children||[]),Be.return=ye,ye=Be;break e}else{g(ye,ve);break}else d(ye,ve);ve=ve.sibling}Be=qb(be,ye.mode,Be),Be.return=ye,ye=Be}return Q(ye);case O:return be=Xs(be),nr(ye,ve,be,Be)}if(J(be))return Ze(ye,ve,be,Be);if(_(be)){if(nt=_(be),typeof nt!="function")throw Error(a(150));return be=nt.call(be),ut(ye,ve,be,Be)}if(typeof be.then=="function")return nr(ye,ve,Tm(be),Be);if(be.$$typeof===E)return nr(ye,ve,Cm(ye,be),Be);km(ye,be)}return typeof be=="string"&&be!==""||typeof be=="number"||typeof be=="bigint"?(be=""+be,ve!==null&&ve.tag===6?(g(ye,ve.sibling),Be=T(ve,be),Be.return=ye,ye=Be):(g(ye,ve),Be=$b(be,ye.mode,Be),Be.return=ye,ye=Be),Q(ye)):g(ye,ve)}return function(ye,ve,be,Be){try{nf=0;var nt=nr(ye,ve,be,Be);return jc=null,nt}catch(tt){if(tt===Pc||tt===jm)throw tt;var Vt=Ya(29,tt,null,ye.mode);return Vt.lanes=Be,Vt.return=ye,Vt}finally{}}}var Zs=BD(!0),LD=BD(!1),Vo=!1;function e0(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function t0(l,d){l=l.updateQueue,d.updateQueue===l&&(d.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,callbacks:null})}function Uo(l){return{lane:l,tag:0,payload:null,callback:null,next:null}}function Ho(l,d,g){var w=l.updateQueue;if(w===null)return null;if(w=w.shared,(Kt&2)!==0){var T=w.pending;return T===null?d.next=d:(d.next=T.next,T.next=d),w.pending=d,d=wm(l),wD(l,null,g),d}return bm(l,w,d,g),wm(l)}function sf(l,d,g){if(d=d.updateQueue,d!==null&&(d=d.shared,(g&4194048)!==0)){var w=d.lanes;w&=l.pendingLanes,g|=w,d.lanes=g,hr(l,g)}}function r0(l,d){var g=l.updateQueue,w=l.alternate;if(w!==null&&(w=w.updateQueue,g===w)){var T=null,R=null;if(g=g.firstBaseUpdate,g!==null){do{var Q={lane:g.lane,tag:g.tag,payload:g.payload,callback:null,next:null};R===null?T=R=Q:R=R.next=Q,g=g.next}
vendor: 5,475 bytes, line 48
48while(g!==null);R===null?T=R=d:R=R.next=d}else T=R=d;g={baseState:w.baseState,firstBaseUpdate:T,lastBaseUpdate:R,shared:w.shared,callbacks:w.callbacks},l.updateQueue=g;return}l=g.lastBaseUpdate,l===null?g.firstBaseUpdate=d:l.next=d,g.lastBaseUpdate=d}var a0=!1;function lf(){if(a0){var l=Cc;if(l!==null)throw l}}function cf(l,d,g,w){a0=!1;var T=l.updateQueue;Vo=!1;var R=T.firstBaseUpdate,Q=T.lastBaseUpdate,le=T.shared.pending;if(le!==null){T.shared.pending=null;var me=le,Se=me.next;me.next=null,Q===null?R=Se:Q.next=Se,Q=me;var _e=l.alternate;_e!==null&&(_e=_e.updateQueue,le=_e.lastBaseUpdate,le!==Q&&(le===null?_e.firstBaseUpdate=Se:le.next=Se,_e.lastBaseUpdate=me))}if(R!==null){var Le=T.baseState;Q=0,_e=Se=me=null,le=R;do{var Ae=le.lane&-536870913,Te=Ae!==le.lane;if(Te?(Ot&Ae)===Ae:(w&Ae)===Ae){Ae!==0&&Ae===Ac&&(a0=!0),_e!==null&&(_e=_e.next={lane:0,tag:le.tag,payload:le.payload,callback:null,next:null});e:{var Ze=l,ut=le;Ae=d;var nr=g;switch(ut.tag){case 1:if(Ze=ut.payload,typeof Ze=="function"){Le=Ze.call(nr,Le,Ae);break e}Le=Ze;break e;case 3:Ze.flags=Ze.flags&-65537|128;case 0:if(Ze=ut.payload,Ae=typeof Ze=="function"?Ze.call(nr,Le,Ae):Ze,Ae==null)break e;Le=f({},Le,Ae);break e;case 2:Vo=!0}}Ae=le.callback,Ae!==null&&(l.flags|=64,Te&&(l.flags|=8192),Te=T.callbacks,Te===null?T.callbacks=[Ae]:Te.push(Ae))}else Te={lane:Ae,tag:le.tag,payload:le.payload,callback:le.callback,next:null},_e===null?(Se=_e=Te,me=Le):_e=_e.next=Te,Q|=Ae;if(le=le.next,le===null){if(le=T.shared.pending,le===null)break;Te=le,le=Te.next,Te.next=null,T.lastBaseUpdate=Te,T.shared.pending=null}}while(!0);_e===null&&(me=Le),T.baseState=me,T.firstBaseUpdate=Se,T.lastBaseUpdate=_e,R===null&&(T.shared.lanes=0),Yo|=Q,l.lanes=Q,l.memoizedState=Le}}function zD(l,d){if(typeof l!="function")throw Error(a(191,l));l.call(d)}function FD(l,d){var g=l.callbacks;if(g!==null)for(l.callbacks=null,l=0;l<g.length;l++)zD(g[l],d)}var Nc=q(null),Dm=q(0);function $D(l,d){l=to,U(Dm,l),U(Nc,d),to=l|d.baseLanes}function n0(){U(Dm,to),U(Nc,Nc.current)}function i0(){to=Dm.current,X(Nc),X(Dm)}var Za=q(null),Nn=null;function Go(l){var d=l.alternate;U(kr,kr.current&1),U(Za,l),Nn===null&&(d===null||Nc.current!==null||d.memoizedState!==null)&&(Nn=l)}function o0(l){U(kr,kr.current),U(Za,l),Nn===null&&(Nn=l)}function qD(l){l.tag===22?(U(kr,kr.current),U(Za,l),Nn===null&&(Nn=l)):Ko()}function Ko(){U(kr,kr.current),U(Za,Za.current)}function Ja(l){X(Za),Nn===l&&(Nn=null),X(kr)}var kr=q(0);function _m(l){for(var d=l;d!==null;){if(d.tag===13){var g=d.memoizedState;if(g!==null&&(g=g.dehydrated,g===null||f1(g)||p1(g)))return d}else if(d.tag===19&&(d.memoizedProps.revealOrder==="forwards"||d.memoizedProps.revealOrder==="backwards"||d.memoizedProps.revealOrder==="unstable_legacy-backwards"||d.memoizedProps.revealOrder==="together")){if((d.flags&128)!==0)return d}else if(d.child!==null){d.child.return=d,d=d.child;continue}if(d===l)break;for(;d.sibling===null;){if(d.return===null||d.return===l)return null;d=d.return}d.sibling.return=d.return,d=d.sibling}return null}var Ki=0,St=null,rr=null,Or=null,Rm=!1,Tc=!1,Js=!1,Om=0,uf=0,kc=null,zX=0;function Cr(){throw Error(a(321))}function s0(l,d){if(d===null)return!1;for(var g=0;g<d.length&&g<l.length;g++)if(!Xa(l[g],d[g]))return!1;return!0}function l0(l,d,g,w,T,R){return Ki=R,St=d,d.memoizedState=null,d.updateQueue=null,d.lanes=0,z.H=l===null||l.memoizedState===null?C_:E0,Js=!1,R=g(w,T),Js=!1,Tc&&(R=UD(d,g,w,T)),VD(l),R}function VD(l){z.H=pf;var d=rr!==null&&rr.next!==null;if(Ki=0,Or=rr=St=null,Rm=!1,uf=0,kc=null,d)throw Error(a(300));l===null||Mr||(l=l.dependencies,l!==null&&Am(l)&&(Mr=!0))}function UD(l,d,g,w){St=l;var T=0;do{if(Tc&&(kc=null),uf=0,Tc=!1,25<=T)throw Error(a(301));if(T+=1,Or=rr=null,l.updateQueue!=null){var R=l.updateQueue;R.lastEffect=null,R.events=null,R.stores=null,R.memoCache!=null&&(R.memoCache.index=0)}z.H=P_,R=d(g,w)}while(Tc);return R}function FX(){var l=z.H,d=l.useState()[0];return d=typeof d.then=="function"?df(d):d,l=l.useState()[0],(rr!==null?rr.memoizedState:null)!==l&&(St.flags|=1024),d}function c0(){var l=Om!==0;return Om=0,l}function u0(l,d,g){d.updateQueue=l.updateQueue,d.flags&=-2053,l.lanes&=~g}function d0(l){if(Rm){for(l=l.memoizedState;l!==null;){var d=l.queue;d!==null&&(d.pending=null),l=l.next}Rm=!1}Ki=0,Or=rr=St=null,Tc=!1,uf=Om=0,kc=null}function Aa(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Or===null?St.memoizedState=Or=l:Or=Or.next=l,Or}function Dr(){if(rr===null){var l=St.alternate;l=l!==null?l.memoizedState:null}else l=rr.next;var d=Or===null?St.memoizedState:Or.next;if(d!==null)Or=d,rr=l;else{if(l===null)throw St.alternate===null?Error(a(467)):Error(a(310));rr=l,l={memoizedState:rr.memoizedState,baseState:rr.baseState,baseQueue:rr.baseQueue,queue:rr.queue,next:null},Or===null?St.memoizedState=Or=l:Or=Or.next=l}return Or}function Mm(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function df(l){var d=uf;return uf+=1,kc===null&&(kc=[]),l=OD(kc,l,d),d=St,(Or===null?d.memoizedState:Or.next)===null&&(d=d.alternate,z.H=d===null||d.memoizedState===null?C_:E0),l}function Im(l){if(l!==null&&typeof l=="object"){if(typeof l.then=="function")return df(l);if(l.$$typeof===E)return oa(l)}throw Error(a(438,String(l)))}function f0(l){var d=null,g=St.updateQueue;if(g!==null&&(d=g.memoCache),d==null){var w=St.alternate;w!==null&&(w=w.updateQueue,w!==null&&(w=w.memoCache,w!=null&&(d={data:w.data.map(function(T){return T.
vendor: 10,953 bytes, line 48
48slice()}),index:0})))}if(d==null&&(d={data:[],index:0}),g===null&&(g=Mm(),St.updateQueue=g),g.memoCache=d,g=d.data[d.index],g===void 0)for(g=d.data[d.index]=Array(l),w=0;w<l;w++)g[w]=B;return d.index++,g}function Wi(l,d){return typeof d=="function"?d(l):d}function Bm(l){var d=Dr();return p0(d,rr,l)}function p0(l,d,g){var w=l.queue;if(w===null)throw Error(a(311));w.lastRenderedReducer=g;var T=l.baseQueue,R=w.pending;if(R!==null){if(T!==null){var Q=T.next;T.next=R.next,R.next=Q}d.baseQueue=T=R,w.pending=null}if(R=l.baseState,T===null)l.memoizedState=R;else{d=T.next;var le=Q=null,me=null,Se=d,_e=!1;do{var Le=Se.lane&-536870913;if(Le!==Se.lane?(Ot&Le)===Le:(Ki&Le)===Le){var Ae=Se.revertLane;if(Ae===0)me!==null&&(me=me.next={lane:0,revertLane:0,gesture:null,action:Se.action,hasEagerState:Se.hasEagerState,eagerState:Se.eagerState,next:null}),Le===Ac&&(_e=!0);else if((Ki&Ae)===Ae){Se=Se.next,Ae===Ac&&(_e=!0);continue}else Le={lane:0,revertLane:Se.revertLane,gesture:null,action:Se.action,hasEagerState:Se.hasEagerState,eagerState:Se.eagerState,next:null},me===null?(le=me=Le,Q=R):me=me.next=Le,St.lanes|=Ae,Yo|=Ae;Le=Se.action,Js&&g(R,Le),R=Se.hasEagerState?Se.eagerState:g(R,Le)}else Ae={lane:Le,revertLane:Se.revertLane,gesture:Se.gesture,action:Se.action,hasEagerState:Se.hasEagerState,eagerState:Se.eagerState,next:null},me===null?(le=me=Ae,Q=R):me=me.next=Ae,St.lanes|=Le,Yo|=Le;Se=Se.next}while(Se!==null&&Se!==d);if(me===null?Q=R:me.next=le,!Xa(R,l.memoizedState)&&(Mr=!0,_e&&(g=Cc,g!==null)))throw g;l.memoizedState=R,l.baseState=Q,l.baseQueue=me,w.lastRenderedState=R}return T===null&&(w.lanes=0),[l.memoizedState,w.dispatch]}function h0(l){var d=Dr(),g=d.queue;if(g===null)throw Error(a(311));g.lastRenderedReducer=l;var w=g.dispatch,T=g.pending,R=d.memoizedState;if(T!==null){g.pending=null;var Q=T=T.next;do R=l(R,Q.action),Q=Q.next;while(Q!==T);Xa(R,d.memoizedState)||(Mr=!0),d.memoizedState=R,d.baseQueue===null&&(d.baseState=R),g.lastRenderedState=R}return[R,w]}function HD(l,d,g){var w=St,T=Dr(),R=It;if(R){if(g===void 0)throw Error(a(407));g=g()}else g=d();var Q=!Xa((rr||T).memoizedState,g);if(Q&&(T.memoizedState=g,Mr=!0),T=T.queue,x0(WD.bind(null,w,T,l),[l]),T.getSnapshot!==d||Q||Or!==null&&Or.memoizedState.tag&1){if(w.flags|=2048,Dc(9,{destroy:void 0},KD.bind(null,w,T,g,d),null),or===null)throw Error(a(349));R||(Ki&127)!==0||GD(w,d,g)}return g}function GD(l,d,g){l.flags|=16384,l={getSnapshot:d,value:g},d=St.updateQueue,d===null?(d=Mm(),St.updateQueue=d,d.stores=[l]):(g=d.stores,g===null?d.stores=[l]:g.push(l))}function KD(l,d,g,w){d.value=g,d.getSnapshot=w,XD(d)&&YD(l)}function WD(l,d,g){return g(function(){XD(d)&&YD(l)})}function XD(l){var d=l.getSnapshot;l=l.value;try{var g=d();return!Xa(l,g)}catch{return!0}}function YD(l){var d=Vs(l,2);d!==null&&Ba(d,l,2)}function m0(l){var d=Aa();if(typeof l=="function"){var g=l;if(l=g(),Js){ke(!0);try{g()}finally{ke(!1)}}}return d.memoizedState=d.baseState=l,d.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wi,lastRenderedState:l},d}function ZD(l,d,g,w){return l.baseState=g,p0(l,rr,typeof w=="function"?w:Wi)}function $X(l,d,g,w,T){if(Fm(l))throw Error(a(485));if(l=d.action,l!==null){var R={payload:T,action:l,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(Q){R.listeners.push(Q)}};z.T!==null?g(!0):R.isTransition=!1,w(R),g=d.pending,g===null?(R.next=d.pending=R,JD(d,R)):(R.next=g.next,d.pending=g.next=R)}}function JD(l,d){var g=d.action,w=d.payload,T=l.state;if(d.isTransition){var R=z.T,Q={};z.T=Q;try{var le=g(T,w),me=z.S;me!==null&&me(Q,le),QD(l,d,le)}catch(Se){g0(l,d,Se)}finally{R!==null&&Q.types!==null&&(R.types=Q.types),z.T=R}}else try{R=g(T,w),QD(l,d,R)}catch(Se){g0(l,d,Se)}}function QD(l,d,g){g!==null&&typeof g=="object"&&typeof g.then=="function"?g.then(function(w){e_(l,d,w)},function(w){return g0(l,d,w)}):e_(l,d,g)}function e_(l,d,g){d.status="fulfilled",d.value=g,t_(d),l.state=g,d=l.pending,d!==null&&(g=d.next,g===d?l.pending=null:(g=g.next,d.next=g,JD(l,g)))}function g0(l,d,g){var w=l.pending;if(l.pending=null,w!==null){w=w.next;do d.status="rejected",d.reason=g,t_(d),d=d.next;while(d!==w)}l.action=null}function t_(l){l=l.listeners;for(var d=0;d<l.length;d++)(0,l[d])()}function r_(l,d){return d}function a_(l,d){if(It){var g=or.formState;if(g!==null){e:{var w=St;if(It){if(mr){t:{for(var T=mr,R=jn;T.nodeType!==8;){if(!R){T=null;break t}if(T=Tn(T.nextSibling),T===null){T=null;break t}}R=T.data,T=R==="F!"||R==="F"?T:null}if(T){mr=Tn(T.nextSibling),w=T.data==="F!";break e}}$o(w)}w=!1}w&&(d=g[0])}}return g=Aa(),g.memoizedState=g.baseState=d,w={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r_,lastRenderedState:d},g.queue=w,g=S_.bind(null,St,w),w.dispatch=g,w=m0(!1),R=S0.bind(null,St,!1,w.queue),w=Aa(),T={state:d,dispatch:null,action:l,pending:null},w.queue=T,g=$X.bind(null,St,T,R,g),T.dispatch=g,w.memoizedState=l,[d,g,!1]}function n_(l){var d=Dr();return i_(d,rr,l)}function i_(l,d,g){if(d=p0(l,d,r_)[0],l=Bm(Wi)[0],typeof d=="object"&&d!==null&&typeof d.then=="function")try{var w=df(d)}catch(Q){throw Q===Pc?jm:Q}else w=d;d=Dr();var T=d.queue,R=T.dispatch;return g!==d.memoizedState&&(St.flags|=2048,Dc(9,{destroy:void 0},qX.bind(null,T,g),null)),[w,R,l]}function qX(l,d){l.action=d}function o_(l){var d=Dr(),g=rr;if(g!==null)return i_(d,g,l);Dr(),d=d.memoizedState,g=Dr();var w=g.queue.dispatch;return g.memoizedState=l,[d,w,!1]}function Dc(l,d,g,w){return l={tag:l,create:g,deps:w,inst:d,next:null},d=St.updateQueue,d===null&&(d=Mm(),St.updateQueue=d),g=d.lastEffect,g===null?d.lastEffect=l.next=l:(w=g.next,g.next=l,l.next=w,d.lastEffect=l),l}function s_(){return Dr().memoizedState}function Lm(l,d,g,w){var T=Aa();St.flags|=l,T.memoizedState=Dc(1|d,{destroy:void 0},g,w===void 0?null:w)}function zm(l,d,g,w){var T=Dr();w=w===void 0?null:w;var R=T.memoizedState.inst;rr!==null&&w!==null&&s0(w,rr.memoizedState.deps)?T.memoizedState=Dc(d,R,g,w):(St.flags|=l,T.memoizedState=Dc(1|d,R,g,w))}function l_(l,d){Lm(8390656,8,l,d)}function x0(l,d){zm(2048,8,l,d)}function VX(l){St.flags|=4;var d=St.updateQueue;if(d===null)d=Mm(),St.updateQueue=d,d.events=[l];else{var g=d.events;g===null?d.events=[l]:g.push(l)}}function c_(l){var d=Dr().memoizedState;return VX({ref:d,nextImpl:l}),function(){if((Kt&2)!==0)throw Error(a(440));return d.impl.apply(void 0,arguments)}}function u_(l,d){return zm(4,2,l,d)}function d_(l,d){return zm(4,4,l,d)}function f_(l,d){if(typeof d=="function"){l=l();var g=d(l);return function(){typeof g=="function"?g():d(null)}}if(d!=null)return l=l(),d.current=l,function(){d.current=null}}function p_(l,d,g){g=g!=null?g.concat([l]):null,zm(4,4,f_.bind(null,d,l),g)}function v0(){}function h_(l,d){var g=Dr();d=d===void 0?null:d;var w=g.memoizedState;return d!==null&&s0(d,w[1])?w[0]:(g.memoizedState=[l,d],l)}function m_(l,d){var g=Dr();d=d===void 0?null:d;var w=g.memoizedState;if(d!==null&&s0(d,w[1]))return w[0];if(w=l(),Js){ke(!0);try{l()}finally{ke(!1)}}return g.memoizedState=[w,d],w}function y0(l,d,g){return g===void 0||(Ki&1073741824)!==0&&(Ot&261930)===0?l.memoizedState=d:(l.memoizedState=g,l=g5(),St.lanes|=l,Yo|=l,g)}function g_(l,d,g,w){return Xa(g,d)?g:Nc.current!==null?(l=y0(l,g,w),Xa(l,d)||(Mr=!0),l):(Ki&42)===0||(Ki&1073741824)!==0&&(Ot&261930)===0?(Mr=!0,l.memoizedState=g):(l=g5(),St.lanes|=l,Yo|=l,d)}function x_(l,d,g,w,T){var R=V.p;V.p=R!==0&&8>R?R:8;var Q=z.T,le={};z.T=le,S0(l,!1,d,g);try{var me=T(),Se=z.S;if(Se!==null&&Se(le,me),me!==null&&typeof me=="object"&&typeof me.then=="function"){var _e=LX(me,w);ff(l,d,_e,tn(l))}else ff(l,d,w,tn(l))}catch(Le){ff(l,d,{then:function(){},status:"rejected",reason:Le},tn())}finally{V.p=R,Q!==null&&le.types!==null&&(Q.types=le.types),z.T=Q}}function UX(){}function b0(l,d,g,w){if(l.tag!==5)throw Error(a(476));var T=v_(l).queue;x_(l,T,d,Z,g===null?UX:function(){return y_(l),g(w)})}function v_(l){var d=l.memoizedState;if(d!==null)return d;d={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wi,lastRenderedState:Z},next:null};var g={};return d.next={memoizedState:g,baseState:g,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wi,lastRenderedState:g},next:null},l.memoizedState=d,l=l.alternate,l!==null&&(l.memoizedState=d),d}function y_(l){var d=v_(l);d.next===null&&(d=l.alternate.memoizedState),ff(l,d.next.queue,{},tn())}function w0(){return oa(Tf)}function b_(){return Dr().memoizedState}function w_(){return Dr().memoizedState}function HX(l){for(var d=l.return;d!==null;){switch(d.tag){case 24:case 3:var g=tn();l=Uo(g);var w=Ho(d,l,g);w!==null&&(Ba(w,d,g),sf(w,d,g)),d={cache:Yb()},l.payload=d;return}d=d.return}}function GX(l,d,g){var w=tn();g={lane:w,revertLane:0,gesture:null,action:g,hasEagerState:!1,eagerState:null,next:null},Fm(l)?E_(d,g):(g=zb(l,d,g,w),g!==null&&(Ba(g,l,w),A_(g,d,w)))}function S_(l,d,g){var w=tn();ff(l,d,g,w)}function ff(l,d,g,w){var T={lane:w,revertLane:0,gesture:null,action:g,hasEagerState:!1,eagerState:null,next:null};if(Fm(l))E_(d,T);else{var R=l.alternate;if(l.lanes===0&&(R===null||R.lanes===0)&&(R=d.lastRenderedReducer,R!==null))try{var Q=d.lastRenderedState,le=R(Q,g);if(T.hasEagerState=!0,T.eagerState=le,Xa(le,Q))return bm(l,d,T,0),or===null&&ym(),!1}catch{}finally{}if(g=zb(l,d,T,w),g!==null)return Ba(g,l,w),A_(g,d,w),!0}return!1}function S0(l,d,g,w){if(w={lane:2,revertLane:e1(),gesture:null,action:w,hasEagerState:!1,eagerState:null,next:null},Fm(l)){if(d)throw Error(a(479))}else d=zb(l,g,w,2),d!==null&&Ba(d,l,2)}function Fm(l){var d=l.alternate;return l===St||d!==null&&d===St}function E_(l,d){Tc=Rm=!0;var g=l.pending;g===null?d.next=d:(d.next=g.next,g.next=d),l.pending=d}function A_(l,d,g){if((g&4194048)!==0){var w=d.lanes;w&=l.pendingLanes,g|=w,d.lanes=g,hr(l,g)}}var pf={readContext:oa,use:Im,useCallback:Cr,useContext:Cr,useEffect:Cr,useImperativeHandle:Cr,useLayoutEffect:Cr,useInsertionEffect:Cr,useMemo:Cr,useReducer:Cr,useRef:Cr,useState:Cr,useDebugValue:Cr,useDeferredValue:Cr,useTransition:Cr,useSyncExternalStore:Cr,useId:Cr,useHostTransitionStatus:Cr,useFormState:Cr,useActionState:Cr,useOptimistic:Cr,useMemoCache:Cr,useCacheRefresh:Cr};pf.useEffectEvent=Cr;var C_={readContext:oa,use:Im,useCallback:function(l,d){return Aa().memoizedState=[l,d===void 0?null:d],l},useContext:oa,useEffect:l_,useImperativeHandle:function(l,d,g){g=g!=null?g.concat([l]):null,Lm(4194308,4,f_.bind(null,d,l),g)},useLayoutEffect:function(l,d){return Lm(4194308,4,l,d)},useInsertionEffect:function(l,d){Lm(4,2,l,d)},useMemo:function(l,d){var g=Aa();d=d===void 0?null:d;var w=l();if(Js){ke(!0);try{l()}finally{ke(!1)}}return g.memoizedState=[w,d],w},useReducer:function(l,d,g){var w=Aa();if(g!==void 0){var T=g(d);if(Js){ke(!0);try{g(d)}finally{ke(!1)}}}else T=d;return w.memoizedState=w.baseState=T,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:T},w.queue=l,l=l.dispatch=GX.bind(null,St,l),[w.memoizedState,l]}
vendor: 26,276 bytes, line 48
48,useRef:function(l){var d=Aa();return l={current:l},d.memoizedState=l},useState:function(l){l=m0(l);var d=l.queue,g=S_.bind(null,St,d);return d.dispatch=g,[l.memoizedState,g]},useDebugValue:v0,useDeferredValue:function(l,d){var g=Aa();return y0(g,l,d)},useTransition:function(){var l=m0(!1);return l=x_.bind(null,St,l.queue,!0,!1),Aa().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,d,g){var w=St,T=Aa();if(It){if(g===void 0)throw Error(a(407));g=g()}else{if(g=d(),or===null)throw Error(a(349));(Ot&127)!==0||GD(w,d,g)}T.memoizedState=g;var R={value:g,getSnapshot:d};return T.queue=R,l_(WD.bind(null,w,R,l),[l]),w.flags|=2048,Dc(9,{destroy:void 0},KD.bind(null,w,R,g,d),null),g},useId:function(){var l=Aa(),d=or.identifierPrefix;if(It){var g=di,w=ui;g=(w&~(1<<32-Ie(w)-1)).toString(32)+g,d="_"+d+"R_"+g,g=Om++,0<g&&(d+="H"+g.toString(32)),d+="_"}else g=zX++,d="_"+d+"r_"+g.toString(32)+"_";return l.memoizedState=d},useHostTransitionStatus:w0,useFormState:a_,useActionState:a_,useOptimistic:function(l){var d=Aa();d.memoizedState=d.baseState=l;var g={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return d.queue=g,d=S0.bind(null,St,!0,g),g.dispatch=d,[l,d]},useMemoCache:f0,useCacheRefresh:function(){return Aa().memoizedState=HX.bind(null,St)},useEffectEvent:function(l){var d=Aa(),g={impl:l};return d.memoizedState=g,function(){if((Kt&2)!==0)throw Error(a(440));return g.impl.apply(void 0,arguments)}}},E0={readContext:oa,use:Im,useCallback:h_,useContext:oa,useEffect:x0,useImperativeHandle:p_,useInsertionEffect:u_,useLayoutEffect:d_,useMemo:m_,useReducer:Bm,useRef:s_,useState:function(){return Bm(Wi)},useDebugValue:v0,useDeferredValue:function(l,d){var g=Dr();return g_(g,rr.memoizedState,l,d)},useTransition:function(){var l=Bm(Wi)[0],d=Dr().memoizedState;return[typeof l=="boolean"?l:df(l),d]},useSyncExternalStore:HD,useId:b_,useHostTransitionStatus:w0,useFormState:n_,useActionState:n_,useOptimistic:function(l,d){var g=Dr();return ZD(g,rr,l,d)},useMemoCache:f0,useCacheRefresh:w_};E0.useEffectEvent=c_;var P_={readContext:oa,use:Im,useCallback:h_,useContext:oa,useEffect:x0,useImperativeHandle:p_,useInsertionEffect:u_,useLayoutEffect:d_,useMemo:m_,useReducer:h0,useRef:s_,useState:function(){return h0(Wi)},useDebugValue:v0,useDeferredValue:function(l,d){var g=Dr();return rr===null?y0(g,l,d):g_(g,rr.memoizedState,l,d)},useTransition:function(){var l=h0(Wi)[0],d=Dr().memoizedState;return[typeof l=="boolean"?l:df(l),d]},useSyncExternalStore:HD,useId:b_,useHostTransitionStatus:w0,useFormState:o_,useActionState:o_,useOptimistic:function(l,d){var g=Dr();return rr!==null?ZD(g,rr,l,d):(g.baseState=l,[l,g.queue.dispatch])},useMemoCache:f0,useCacheRefresh:w_};P_.useEffectEvent=c_;function A0(l,d,g,w){d=l.memoizedState,g=g(w,d),g=g==null?d:f({},d,g),l.memoizedState=g,l.lanes===0&&(l.updateQueue.baseState=g)}var C0={enqueueSetState:function(l,d,g){l=l._reactInternals;var w=tn(),T=Uo(w);T.payload=d,g!=null&&(T.callback=g),d=Ho(l,T,w),d!==null&&(Ba(d,l,w),sf(d,l,w))},enqueueReplaceState:function(l,d,g){l=l._reactInternals;var w=tn(),T=Uo(w);T.tag=1,T.payload=d,g!=null&&(T.callback=g),d=Ho(l,T,w),d!==null&&(Ba(d,l,w),sf(d,l,w))},enqueueForceUpdate:function(l,d){l=l._reactInternals;var g=tn(),w=Uo(g);w.tag=2,d!=null&&(w.callback=d),d=Ho(l,w,g),d!==null&&(Ba(d,l,g),sf(d,l,g))}};function j_(l,d,g,w,T,R,Q){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(w,R,Q):d.prototype&&d.prototype.isPureReactComponent?!Jd(g,w)||!Jd(T,R):!0}function N_(l,d,g,w){l=d.state,typeof d.componentWillReceiveProps=="function"&&d.componentWillReceiveProps(g,w),typeof d.UNSAFE_componentWillReceiveProps=="function"&&d.UNSAFE_componentWillReceiveProps(g,w),d.state!==l&&C0.enqueueReplaceState(d,d.state,null)}function Qs(l,d){var g=d;if("ref"in d){g={};for(var w in d)w!=="ref"&&(g[w]=d[w])}if(l=l.defaultProps){g===d&&(g=f({},g));for(var T in l)g[T]===void 0&&(g[T]=l[T])}return g}function T_(l){vm(l)}function k_(l){console.error(l)}function D_(l){vm(l)}function $m(l,d){try{var g=l.onUncaughtError;g(d.value,{componentStack:d.stack})}catch(w){setTimeout(function(){throw w})}}function __(l,d,g){try{var w=l.onCaughtError;w(g.value,{componentStack:g.stack,errorBoundary:d.tag===1?d.stateNode:null})}catch(T){setTimeout(function(){throw T})}}function P0(l,d,g){return g=Uo(g),g.tag=3,g.payload={element:null},g.callback=function(){$m(l,d)},g}function R_(l){return l=Uo(l),l.tag=3,l}function O_(l,d,g,w){var T=g.type.getDerivedStateFromError;if(typeof T=="function"){var R=w.value;l.payload=function(){return T(R)},l.callback=function(){__(d,g,w)}}var Q=g.stateNode;Q!==null&&typeof Q.componentDidCatch=="function"&&(l.callback=function(){__(d,g,w),typeof T!="function"&&(Zo===null?Zo=new Set([this]):Zo.add(this));var le=w.stack;this.componentDidCatch(w.value,{componentStack:le!==null?le:""})})}function KX(l,d,g,w,T){if(g.flags|=32768,w!==null&&typeof w=="object"&&typeof w.then=="function"){if(d=g.alternate,d!==null&&Ec(d,g,T,!0),g=Za.current,g!==null){switch(g.tag){case 31:case 13:return Nn===null?Qm():g.alternate===null&&Pr===0&&(Pr=3),g.flags&=-257,g.flags|=65536,g.lanes=T,w===Nm?g.flags|=16384:(d=g.updateQueue,d===null?g.updateQueue=new Set([w]):d.add(w),Z0(l,w,T)),!1;case 22:return g.flags|=65536,w===Nm?g.flags|=16384:(d=g.updateQueue,d===null?(d={transitions:null,markerInstances:null,retryQueue:new Set([w])},g.updateQueue=d):(g=d.retryQueue,g===null?d.retryQueue=new Set([w]):g.add(w)),Z0(l,w,T)),!1}throw Error(a(435,g.tag))}return Z0(l,w,T),Qm(),!1}if(It)return d=Za.current,d!==null?((d.flags&65536)===0&&(d.flags|=256),d.flags|=65536,d.lanes=T,w!==Hb&&(l=Error(a(422),{cause:w}),tf(An(l,g)))):(w!==Hb&&(d=Error(a(423),{cause:w}),tf(An(d,g))),l=l.current.alternate,l.flags|=65536,T&=-T,l.lanes|=T,w=An(w,g),T=P0(l.stateNode,w,T),r0(l,T),Pr!==4&&(Pr=2)),!1;var R=Error(a(520),{cause:w});if(R=An(R,g),wf===null?wf=[R]:wf.push(R),Pr!==4&&(Pr=2),d===null)return!0;w=An(w,g),g=d;do{switch(g.tag){case 3:return g.flags|=65536,l=T&-T,g.lanes|=l,l=P0(g.stateNode,w,l),r0(g,l),!1;case 1:if(d=g.type,R=g.stateNode,(g.flags&128)===0&&(typeof d.getDerivedStateFromError=="function"||R!==null&&typeof R.componentDidCatch=="function"&&(Zo===null||!Zo.has(R))))return g.flags|=65536,T&=-T,g.lanes|=T,T=R_(T),O_(T,l,g,w),r0(g,T),!1}g=g.return}while(g!==null);return!1}var j0=Error(a(461)),Mr=!1;function sa(l,d,g,w){d.child=l===null?LD(d,null,g,w):Zs(d,l.child,g,w)}function M_(l,d,g,w,T){g=g.render;var R=d.ref;if("ref"in w){var Q={};for(var le in w)le!=="ref"&&(Q[le]=w[le])}else Q=w;return Ks(d),w=l0(l,d,g,Q,R,T),le=c0(),l!==null&&!Mr?(u0(l,d,T),Xi(l,d,T)):(It&&le&&Vb(d),d.flags|=1,sa(l,d,w,T),d.child)}function I_(l,d,g,w,T){if(l===null){var R=g.type;return typeof R=="function"&&!Fb(R)&&R.defaultProps===void 0&&g.compare===null?(d.tag=15,d.type=R,B_(l,d,R,w,T)):(l=Sm(g.type,null,w,d,d.mode,T),l.ref=d.ref,l.return=d,d.child=l)}if(R=l.child,!M0(l,T)){var Q=R.memoizedProps;if(g=g.compare,g=g!==null?g:Jd,g(Q,w)&&l.ref===d.ref)return Xi(l,d,T)}return d.flags|=1,l=Vi(R,w),l.ref=d.ref,l.return=d,d.child=l}function B_(l,d,g,w,T){if(l!==null){var R=l.memoizedProps;if(Jd(R,w)&&l.ref===d.ref)if(Mr=!1,d.pendingProps=w=R,M0(l,T))(l.flags&131072)!==0&&(Mr=!0);else return d.lanes=l.lanes,Xi(l,d,T)}return N0(l,d,g,w,T)}function L_(l,d,g,w){var T=w.children,R=l!==null?l.memoizedState:null;if(l===null&&d.stateNode===null&&(d.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),w.mode==="hidden"){if((d.flags&128)!==0){if(R=R!==null?R.baseLanes|g:g,l!==null){for(w=d.child=l.child,T=0;w!==null;)T=T|w.lanes|w.childLanes,w=w.sibling;w=T&~R}else w=0,d.child=null;return z_(l,d,R,g,w)}if((g&536870912)!==0)d.memoizedState={baseLanes:0,cachePool:null},l!==null&&Pm(d,R!==null?R.cachePool:null),R!==null?$D(d,R):n0(),qD(d);else return w=d.lanes=536870912,z_(l,d,R!==null?R.baseLanes|g:g,g,w)}else R!==null?(Pm(d,R.cachePool),$D(d,R),Ko(),d.memoizedState=null):(l!==null&&Pm(d,null),n0(),Ko());return sa(l,d,T,g),d.child}function hf(l,d){return l!==null&&l.tag===22||d.stateNode!==null||(d.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),d.sibling}function z_(l,d,g,w,T){var R=Jb();return R=R===null?null:{parent:Rr._currentValue,pool:R},d.memoizedState={baseLanes:g,cachePool:R},l!==null&&Pm(d,null),n0(),qD(d),l!==null&&Ec(l,d,w,!0),d.childLanes=T,null}function qm(l,d){return d=Um({mode:d.mode,children:d.children},l.mode),d.ref=l.ref,l.child=d,d.return=l,d}function F_(l,d,g){return Zs(d,l.child,null,g),l=qm(d,d.pendingProps),l.flags|=2,Ja(d),d.memoizedState=null,l}function WX(l,d,g){var w=d.pendingProps,T=(d.flags&128)!==0;if(d.flags&=-129,l===null){if(It){if(w.mode==="hidden")return l=qm(d,w),d.lanes=536870912,hf(null,l);if(o0(d),(l=mr)?(l=J5(l,jn),l=l!==null&&l.data==="&"?l:null,l!==null&&(d.memoizedState={dehydrated:l,treeContext:zo!==null?{id:ui,overflow:di}:null,retryLane:536870912,hydrationErrors:null},g=ED(l),g.return=d,d.child=g,ia=d,mr=null)):l=null,l===null)throw $o(d);return d.lanes=536870912,null}return qm(d,w)}var R=l.memoizedState;if(R!==null){var Q=R.dehydrated;if(o0(d),T)if(d.flags&256)d.flags&=-257,d=F_(l,d,g);else if(d.memoizedState!==null)d.child=l.child,d.flags|=128,d=null;else throw Error(a(558));else if(Mr||Ec(l,d,g,!1),T=(g&l.childLanes)!==0,Mr||T){if(w=or,w!==null&&(Q=yr(w,g),Q!==0&&Q!==R.retryLane))throw R.retryLane=Q,Vs(l,Q),Ba(w,l,Q),j0;Qm(),d=F_(l,d,g)}else l=R.treeContext,mr=Tn(Q.nextSibling),ia=d,It=!0,Fo=null,jn=!1,l!==null&&PD(d,l),d=qm(d,w),d.flags|=4096;return d}return l=Vi(l.child,{mode:w.mode,children:w.children}),l.ref=d.ref,d.child=l,l.return=d,l}function Vm(l,d){var g=d.ref;if(g===null)l!==null&&l.ref!==null&&(d.flags|=4194816);else{if(typeof g!="function"&&typeof g!="object")throw Error(a(284));(l===null||l.ref!==g)&&(d.flags|=4194816)}}function N0(l,d,g,w,T){return Ks(d),g=l0(l,d,g,w,void 0,T),w=c0(),l!==null&&!Mr?(u0(l,d,T),Xi(l,d,T)):(It&&w&&Vb(d),d.flags|=1,sa(l,d,g,T),d.child)}function $_(l,d,g,w,T,R){return Ks(d),d.updateQueue=null,g=UD(d,w,g,T),VD(l),w=c0(),l!==null&&!Mr?(u0(l,d,R),Xi(l,d,R)):(It&&w&&Vb(d),d.flags|=1,sa(l,d,g,R),d.child)}function q_(l,d,g,w,T){if(Ks(d),d.stateNode===null){var R=yc,Q=g.contextType;typeof Q=="object"&&Q!==null&&(R=oa(Q)),R=new g(w,R),d.memoizedState=R.state!==null&&R.state!==void 0?R.state:null,R.updater=C0,d.stateNode=R,R._reactInternals=d,R=d.stateNode,R.props=w,R.state=d.memoizedState,R.refs={},e0(d),Q=g.contextType,R.context=typeof Q=="object"&&Q!==null?oa(Q):yc,R.state=d.memoizedState,Q=g.getDerivedStateFromProps,typeof Q=="function"&&(A0(d,g,Q,w),R.state=d.memoizedState),typeof g.getDerivedStateFromProps=="function"||typeof R.getSnapshotBeforeUpdate=="function"||typeof R.UNSAFE_componentWillMount!="function"&&typeof R.componentWillMount!="function"||(Q=R.state,typeof R.componentWillMount=="function"&&R.componentWillMount(),typeof R.UNSAFE_componentWillMount=="function"&&R.UNSAFE_componentWillMount(),Q!==R.state&&C0.enqueueReplaceState(R,R.state,null),cf(d,w,R,T),lf(),R.state=d.memoizedState),typeof R.componentDidMount=="function"&&(d.flags|=4194308),w=!0}else if(l===null){R=d.stateNode;var le=d.memoizedProps,me=Qs(g,le);R.props=me;var Se=R.context,_e=g.contextType;Q=yc,typeof _e=="object"&&_e!==null&&(Q=oa(_e));var Le=g.getDerivedStateFromProps;_e=typeof Le=="function"||typeof R.getSnapshotBeforeUpdate=="function",le=d.pendingProps!==le,_e||typeof R.UNSAFE_componentWillReceiveProps!="function"&&typeof R.componentWillReceiveProps!="function"||(le||Se!==Q)&&N_(d,R,w,Q),Vo=!1;var Ae=d.memoizedState;R.state=Ae,cf(d,w,R,T),lf(),Se=d.memoizedState,le||Ae!==Se||Vo?(typeof Le=="function"&&(A0(d,g,Le,w),Se=d.memoizedState),(me=Vo||j_(d,g,me,w,Ae,Se,Q))?(_e||typeof R.UNSAFE_componentWillMount!="function"&&typeof R.componentWillMount!="function"||(typeof R.componentWillMount=="function"&&R.componentWillMount(),typeof R.UNSAFE_componentWillMount=="function"&&R.UNSAFE_componentWillMount()),typeof R.componentDidMount=="function"&&(d.flags|=4194308)):(typeof R.componentDidMount=="function"&&(d.flags|=4194308),d.memoizedProps=w,d.memoizedState=Se),R.props=w,R.state=Se,R.context=Q,w=me):(typeof R.componentDidMount=="function"&&(d.flags|=4194308),w=!1)}else{R=d.stateNode,t0(l,d),Q=d.memoizedProps,_e=Qs(g,Q),R.props=_e,Le=d.pendingProps,Ae=R.context,Se=g.contextType,me=yc,typeof Se=="object"&&Se!==null&&(me=oa(Se)),le=g.getDerivedStateFromProps,(Se=typeof le=="function"||typeof R.getSnapshotBeforeUpdate=="function")||typeof R.UNSAFE_componentWillReceiveProps!="function"&&typeof R.componentWillReceiveProps!="function"||(Q!==Le||Ae!==me)&&N_(d,R,w,me),Vo=!1,Ae=d.memoizedState,R.state=Ae,cf(d,w,R,T),lf();var Te=d.memoizedState;Q!==Le||Ae!==Te||Vo||l!==null&&l.dependencies!==null&&Am(l.dependencies)?(typeof le=="function"&&(A0(d,g,le,w),Te=d.memoizedState),(_e=Vo||j_(d,g,_e,w,Ae,Te,me)||l!==null&&l.dependencies!==null&&Am(l.dependencies))?(Se||typeof R.UNSAFE_componentWillUpdate!="function"&&typeof R.componentWillUpdate!="function"||(typeof R.componentWillUpdate=="function"&&R.componentWillUpdate(w,Te,me),typeof R.UNSAFE_componentWillUpdate=="function"&&R.UNSAFE_componentWillUpdate(w,Te,me)),typeof R.componentDidUpdate=="function"&&(d.flags|=4),typeof R.getSnapshotBeforeUpdate=="function"&&(d.flags|=1024)):(typeof R.componentDidUpdate!="function"||Q===l.memoizedProps&&Ae===l.memoizedState||(d.flags|=4),typeof R.getSnapshotBeforeUpdate!="function"||Q===l.memoizedProps&&Ae===l.memoizedState||(d.flags|=1024),d.memoizedProps=w,d.memoizedState=Te),R.props=w,R.state=Te,R.context=me,w=_e):(typeof R.componentDidUpdate!="function"||Q===l.memoizedProps&&Ae===l.memoizedState||(d.flags|=4),typeof R.getSnapshotBeforeUpdate!="function"||Q===l.memoizedProps&&Ae===l.memoizedState||(d.flags|=1024),w=!1)}return R=w,Vm(l,d),w=(d.flags&128)!==0,R||w?(R=d.stateNode,g=w&&typeof g.getDerivedStateFromError!="function"?null:R.render(),d.flags|=1,l!==null&&w?(d.child=Zs(d,l.child,null,T),d.child=Zs(d,null,g,T)):sa(l,d,g,T),d.memoizedState=R.state,l=d.child):l=Xi(l,d,T),l}function V_(l,d,g,w){return Hs(),d.flags|=256,sa(l,d,g,w),d.child}var T0={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function k0(l){return{baseLanes:l,cachePool:_D()}}function D0(l,d,g){return l=l!==null?l.childLanes&~g:0,d&&(l|=en),l}function U_(l,d,g){var w=d.pendingProps,T=!1,R=(d.flags&128)!==0,Q;if((Q=R)||(Q=l!==null&&l.memoizedState===null?!1:(kr.current&2)!==0),Q&&(T=!0,d.flags&=-129),Q=(d.flags&32)!==0,d.flags&=-33,l===null){if(It){if(T?Go(d):Ko(),(l=mr)?(l=J5(l,jn),l=l!==null&&l.data!=="&"?l:null,l!==null&&(d.memoizedState={dehydrated:l,treeContext:zo!==null?{id:ui,overflow:di}:null,retryLane:536870912,hydrationErrors:null},g=ED(l),g.return=d,d.child=g,ia=d,mr=null)):l=null,l===null)throw $o(d);return p1(l)?d.lanes=32:d.lanes=536870912,null}var le=w.children;return w=w.fallback,T?(Ko(),T=d.mode,le=Um({mode:"hidden",children:le},T),w=Us(w,T,g,null),le.return=d,w.return=d,le.sibling=w,d.child=le,w=d.child,w.memoizedState=k0(g),w.childLanes=D0(l,Q,g),d.memoizedState=T0,hf(null,w)):(Go(d),_0(d,le))}var me=l.memoizedState;if(me!==null&&(le=me.dehydrated,le!==null)){if(R)d.flags&256?(Go(d),d.flags&=-257,d=R0(l,d,g)):d.memoizedState!==null?(Ko(),d.child=l.child,d.flags|=128,d=null):(Ko(),le=w.fallback,T=d.mode,w=Um({mode:"visible",children:w.children},T),le=Us(le,T,g,null),le.flags|=2,w.return=d,le.return=d,w.sibling=le,d.child=w,Zs(d,l.child,null,g),w=d.child,w.memoizedState=k0(g),w.childLanes=D0(l,Q,g),d.memoizedState=T0,d=hf(null,w));else if(Go(d),p1(le)){if(Q=le.nextSibling&&le.nextSibling.dataset,Q)var Se=Q.dgst;Q=Se,w=Error(a(419)),w.stack="",w.digest=Q,tf({value:w,source:null,stack:null}),d=R0(l,d,g)}else if(Mr||Ec(l,d,g,!1),Q=(g&l.childLanes)!==0,Mr||Q){if(Q=or,Q!==null&&(w=yr(Q,g),w!==0&&w!==me.retryLane))throw me.retryLane=w,Vs(l,w),Ba(Q,l,w),j0;f1(le)||Qm(),d=R0(l,d,g)}else f1(le)?(d.flags|=192,d.child=l.child,d=null):(l=me.treeContext,mr=Tn(le.nextSibling),ia=d,It=!0,Fo=null,jn=!1,l!==null&&PD(d,l),d=_0(d,w.children),d.flags|=4096);return d}return T?(Ko(),le=w.fallback,T=d.mode,me=l.child,Se=me.sibling,w=Vi(me,{mode:"hidden",children:w.children}),w.subtreeFlags=me.subtreeFlags&65011712,Se!==null?le=Vi(Se,le):(le=Us(le,T,g,null),le.flags|=2),le.return=d,w.return=d,w.sibling=le,d.child=w,hf(null,w),w=d.child,le=l.child.memoizedState,le===null?le=k0(g):(T=le.cachePool,T!==null?(me=Rr._currentValue,T=T.parent!==me?{parent:me,pool:me}:T):T=_D(),le={baseLanes:le.baseLanes|g,cachePool:T}),w.memoizedState=le,w.childLanes=D0(l,Q,g),d.memoizedState=T0,hf(l.child,w)):(Go(d),g=l.child,l=g.sibling,g=Vi(g,{mode:"visible",children:w.children}),g.return=d,g.sibling=null,l!==null&&(Q=d.deletions,Q===null?(d.deletions=[l],d.flags|=16):Q.push(l)),d.child=g,d.memoizedState=null,g)}function _0(l,d){return d=Um({mode:"visible",children:d},l.mode),d.return=l,l.child=d}function Um(l,d){return l=Ya(22,l,null,d),l.lanes=0,l}function R0(l,d,g){return Zs(d,l.child,null,g),l=_0(d,d.pendingProps.children),l.flags|=2,d.memoizedState=null,l}function H_(l,d,g){l.lanes|=d;var w=l.alternate;w!==null&&(w.lanes|=d),Wb(l.return,d,g)}function O0(l,d,g,w,T,R){var Q=l.memoizedState;Q===null?l.memoizedState={isBackwards:d,rendering:null,renderingStartTime:0,last:w,tail:g,tailMode:T,treeForkCount:R}:(Q.isBackwards=d,Q.rendering=null,Q.renderingStartTime=0,Q.last=w,Q.tail=g,Q.tailMode=T,Q.treeForkCount=R)}function G_(l,d,g){var w=d.pendingProps,T=w.revealOrder,R=w.tail;w=w.children;var Q=kr.current,le=(Q&2)!==0;if(le?(Q=Q&1|2,d.flags|=128):Q&=1,U(kr,Q),sa(l,d,w,g),w=It?ef:0,!le&&l!==null&&(l.flags&128)!==0)e:for(l=d.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&H_(l,g,d);else if(l.tag===19)H_(l,g,d);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===d)break e;for(;l.sibling===null;){if(l.return===null||l.return===d)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(T){case"forwards":for(g=d.child,T=null;g!==null;)l=g.alternate,l!==null&&_m(l)===null&&(T=g),g=g.sibling;g=T,g===null?(T=d.child,d.child=null):(T=g.sibling,g.sibling=null),O0(d,!1,T,g,R,w);break;case"backwards":case"unstable_legacy-backwards":for(g=null,T=d.child,d.child=null;T!==null;){if(l=T.alternate,l!==null&&_m(l)===null){d.child=T;break}l=T.sibling,T.sibling=g,g=T,T=l}O0(d,!0,g,null,R,w);break;case"together":O0(d,!1,null,null,void 0,w);break;default:d.memoizedState=null}return d.child}function Xi(l,d,g){if(l!==null&&(d.dependencies=l.dependencies),Yo|=d.lanes,(g&d.childLanes)===0)if(l!==null){if(Ec(l,d,g,!1),(g&d.childLanes)===0)return null}else return null;if(l!==null&&d.child!==l.child)throw Error(a(153));if(d.child!==null){for(l=d.child,g=Vi(l,l.pendingProps),d.child=g,g.return=d;l.sibling!==null;)l=l.sibling,g=g.sibling=Vi(l,l.pendingProps),g.return=d;g.sibling=null}return d.child}function M0(l,d){return(l.lanes&d)!==0?!0:(l=l.dependencies,!!(l!==null&&Am(l)))}function XX(l,d,g){switch(d.tag){case 3:F(d,d.stateNode.containerInfo),qo(d,Rr,l.memoizedState.cache),Hs();break;case 27:case 5:ne(d);break;case 4:F(d,d.stateNode.containerInfo);break;case 10:qo(d,d.type,d.memoizedProps.value);break;case 31:if(d.memoizedState!==null)return d.flags|=128,o0(d),null;break;case 13:var w=d.memoizedState;if(w!==null)return w.dehydrated!==null?(Go(d),d.flags|=128,null):(g&d.child.childLanes)!==0?U_(l,d,g):(Go(d),l=Xi(l,d,g),l!==null?l.sibling:null);Go(d);break;case 19:var T=(l.flags&128)!==0;if(w=(g&d.childLanes)!==0,w||(Ec(l,d,g,!1),w=(g&d.childLanes)!==0),T){if(w)return G_(l,d,g);d.flags|=128}if(T=d.memoizedState,T!==null&&(T.rendering=null,T.tail=null,T.lastEffect=null),U(kr,kr.current),w)break;return null;case 22:return d.lanes=0,L_(l,d,g,d.pendingProps);case 24:qo(d,Rr,l.memoizedState.cache)}return Xi(l,d,g)}function K_(l,d,g){if(l!==null)if(l.memoizedProps!==d.pendingProps)Mr=!0;else{if(!M0(l,g)&&(d.flags&128)===0)return Mr=!1,XX(l,d,g);Mr=(l.flags&131072)!==0}else Mr=!1,It&&(d.flags&1048576)!==0&&CD(d,ef,d.index);switch(d.lanes=0,d.tag){case 16:e:{var w=d.pendingProps;if(l=Xs(d.elementType),d.type=l,typeof l=="function")Fb(l)?(w=Qs(l,w),d.tag=1,d=q_(null,d,l,w,g)):(d.tag=0,d=N0(null,d,l,w,g));else{if(l!=null){var T=l.$$typeof;if(T===j){d.tag=11,d=M_(null,d,l,w,g);break e}else if(T===N){d.tag=14,d=I_(null,d,l,w,g);break e}}throw d=D(l)||l,Error(a(306,d,""))}}return d;case 0:return N0(l,d,d.type,d.pendingProps,g);case 1:return w=d.type,T=Qs(w,d.pendingProps),q_(l,d,w,T,g);case 3:e:{if(F(d,d.stateNode.containerInfo),l===null)throw Error(a(387));w=d.pendingProps;var R=d.memoizedState;T=R.element,t0(l,d),cf(d,w,null,g);var Q=d.memoizedState;if(w=Q.cache,qo(d,Rr,w),w!==R.cache&&Xb(d,[Rr],g,!0),lf(),w=Q.element,R.isDehydrated)if(R={element:w,isDehydrated:!1,cache:Q.cache},d.updateQueue.baseState=R,d.memoizedState=R,d.flags&256){d=V_(l,d,w,g);break e}else if(w!==T){T=An(Error(a(424)),d),tf(T),d=V_(l,d,w,g);break e}else{switch(l=d.stateNode.containerInfo,l.nodeType){case 9:l=l.body;break;default:l=l.nodeName==="HTML"?l.ownerDocument.body:l}for(mr=Tn(l.firstChild),ia=d,It=!0,Fo=null,jn=!0,g=LD(d,null,w,g),d.child=g;g;)g.flags=g.flags&-3|4096,g=g.sibling}else{if(Hs(),w===T){d=Xi(l,d,g);break e}sa(l,d,w,g)}d=d.child}return d;case 26:return Vm(l,d),l===null?(g=n4(d.type,null,d.pendingProps,null))?d.memoizedState=g:It||(g=d.type,l=d.pendingProps,w=og(he.current).createElement(g),w[na]=d,w[Da]=l,la(w,g,l),Yr(w),d.stateNode=w):d.memoizedState=n4(d.type,l.memoizedProps,d.pendingProps,l.memoizedState),null;case 27:return ne(d),l===null&&It&&(w=d.stateNode=t4(d.type,d.pendingProps,he.current),ia=d,jn=!0,T=mr,ts(d.type)?(h1=T,mr=Tn(w.firstChild)):mr=T),sa(l,d,d.pendingProps.children,g),Vm(l,d),l===null&&(d.flags|=4194304),d.child;case 5:return l===null&&It&&((T=w=mr)&&(w=CY(w,d.type,d.pendingProps,jn),w!==null?(d.stateNode=w,ia=d,mr=Tn(w.firstChild),jn=!1,T=!0):T=!1),T||$o(d)),ne(d),T=d.type,R=d.pendingProps,Q=l!==null?l.memoizedProps:null,w=R.children,c1(T,R)?w=null:Q!==null&&c1(T,Q)&&(d.flags|=32),d.memoizedState!==null&&(T=l0(l,d,FX,null,null,g),Tf._currentValue=T),Vm(l,d),sa(l,d,w,g),d.child;case 6:return l===null&&It&&((l=g=mr)&&(g=PY(g,d.pendingProps,jn),g!==null?(d.stateNode=g,ia=d,mr=null,l=!0):l=!1),l||$o(d)),null;case 13:return U_(l,d,g);case 4:return F(d,d.stateNode.containerInfo),w=d.pendingProps,l===null?d.child=Zs(d,null,w,g):sa(l,d,w,g),d.child;case 11:return M_(l,d,d.type,d.pendingProps,g);case 7:return sa(l,d,d.pendingProps,g),d.child;case 8:return sa(l,d,d.pendingProps.children,g),d.child;case 12:return sa(l,d,d.pendingProps.children,g),d.child;case 10:return w=d.pendingProps,qo(d,d.type,w.value),sa(l,d,w.children,g),d.child;case 9:return T=d.type._context,w=d.pendingProps.children,Ks(d),T=oa(T),w=w(T),d.flags|=1,sa(l,d,w,g),d.child;case 14:return I_(l,d,d.type,d.pendingProps,g);case 15:return B_(l,d,d.type,d.pendingProps,g);case 19:return G_(l,d,g);case 31:return WX(l,d,g);case 22:return L_(l,d,g,d.pendingProps);case 24:return Ks(d),w=oa(Rr),l===null?(T=Jb(),T===null&&(T=or,R=Yb(),T.pooledCache=R,R.refCount++,R!==null&&(T.pooledCacheLanes|=g),T=R),d.memoizedState={parent:w,cache:T},e0(d),qo(d,Rr,T)):((l.lanes&g)!==0&&(t0(l,d),cf(d,null,null,g),lf()),T=l.memoizedState,R=d.memoizedState,T.parent!==w?(T={parent:w,cache:w},d.memoizedState=T,d.lanes===0&&(d.memoizedState=d.updateQueue.baseState=T),qo(d,Rr,w)):(w=R.cache,qo(d,Rr,w),w!==T.cache&&Xb(d,[Rr],g,!0))),sa(l,d,d.pendingProps.children,g),d.child;case 29:throw d.pendingProps}throw Error(a(156,d.tag))}function Yi(l){l.flags|=4}function I0(l,d,g,w,T){if((d=(l.mode&32)!==0)&&(d=!1),d){if(l.flags|=16777216,(T&335544128)===T)if(l.stateNode.complete)l.flags|=8192;else if(b5())l.flags|=8192;else throw Ys=Nm,Qb}else l.flags&=-16777217}function W_(l,d){if(d.type!=="stylesheet"||(d.state.loading&4)!==0)l.flags&=-16777217;else if(l.flags|=16777216,!c4(d))if(b5())l.flags|=8192;else throw Ys=Nm,Qb}function Hm(l,d){d!==null&&(l.flags|=4),l.flags&16384&&(d=l.tag!==22?ht():536870912,l.lanes|=d,Mc|=d)}function mf(l,d){if(!It)switch(l.tailMode){case"hidden":d=l.tail;for(var g=null;d!==null;)d.alternate!==null&&(g=d),d=d.sibling;g===null?l.tail=null:g.sibling=null;break;case"collapsed":g=l.tail;for(var w=null;g!==null;)g.alternate!==null&&(w=g),g=g.sibling;w===null?d||l.tail===null?l.tail=null:l.tail.sibling=null:w.sibling=null}}function gr(l){var d=l.alternate!==null&&l.alternate.child===l.child,g=0,w=0;if(d)for(var T=l.child;T!==null;)g|=T.lanes|T.childLanes,w|=T.subtreeFlags&65011712,w|=T.flags&65011712,T.return=l,T=T.sibling;else for(T=l.child;T!==null;)g|=T.lanes|T.childLanes,w|=T.subtreeFlags,w|=T.flags,T.return=l,T=T.sibling;return l.subtreeFlags|=w,l.childLanes=g,d}function YX(l,d,g){var w=d.pendingProps;switch(Ub(d),d.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return gr(d),null;case 1:return gr(d),null;case 3:return g=d.stateNode,w=null,l!==null&&(w=l.memoizedState.cache),d.memoizedState.cache!==w&&(d.flags|=2048),Gi(Rr),ae(),g.pendingContext&&(g.context=g.pendingContext,g.pendingContext=null),(l===null||l.child===null)&&(Sc(d)?Yi(d):l===null||l.memoizedState.isDehydrated&&(d.flags&256)===0||(d.flags|=1024,Gb())),gr(d),null;case 26:var T=d.type,R=d.memoizedState;return l===null?(Yi(d),R!==null?(gr(d),W_(d,R)):(gr(d),I0(d,T,null,w,g))):R?R!==l.memoizedState?(Yi(d),gr(d),W_(d,R)):(gr(d),d.flags&=-16777217):(l=l.memoizedProps,l!==w&&Yi(d),gr(d),I0(d,T,l,w,g)),null;case 27:if(ge(d),g=he.current,T=d.type,l!==null&&d.stateNode!=null)l.memoizedProps!==w&&Yi(d);else{if(!w){if(d.stateNode===null)throw Error(a(166));return gr(d),null}l=ie.current,Sc(d)?jD(d):(l=t4(T,w,g),d.stateNode=l,Yi(d))}return gr(d),null;case 5:if(ge(d),T=d.type,l!==null&&d.stateNode!=null)l.memoizedProps!==w&&Yi(d);else{if(!w){if(d.stateNode===null)throw Error(a(166));return gr(d),null}if(R=ie.current,Sc(d))jD(d);else{var Q=og(he.current);switch(R){case 1:R=Q.createElementNS("http://www.w3.org/2000/svg",T);break;case 2:R=Q.createElementNS("http://www.w3.org/1998/Math/MathML",T);break;default:switch(T){case"svg":R=Q.createElementNS("http://www.w3.org/2000/svg",T);break;case"math":R=Q.createElementNS("http://www.w3.org/1998/Math/MathML",T);break;case"script":R=Q.createElement("div"),R.innerHTML="<script><\/script>",R=R.removeChild(R.firstChild);break;
vendor: 26,069 bytes, line 48
48case"select":R=typeof w.is=="string"?Q.createElement("select",{is:w.is}):Q.createElement("select"),w.multiple?R.multiple=!0:w.size&&(R.size=w.size);break;default:R=typeof w.is=="string"?Q.createElement(T,{is:w.is}):Q.createElement(T)}}R[na]=d,R[Da]=w;e:for(Q=d.child;Q!==null;){if(Q.tag===5||Q.tag===6)R.appendChild(Q.stateNode);else if(Q.tag!==4&&Q.tag!==27&&Q.child!==null){Q.child.return=Q,Q=Q.child;continue}if(Q===d)break e;for(;Q.sibling===null;){if(Q.return===null||Q.return===d)break e;Q=Q.return}Q.sibling.return=Q.return,Q=Q.sibling}d.stateNode=R;e:switch(la(R,T,w),T){case"button":case"input":case"select":case"textarea":w=!!w.autoFocus;break e;case"img":w=!0;break e;default:w=!1}w&&Yi(d)}}return gr(d),I0(d,d.type,l===null?null:l.memoizedProps,d.pendingProps,g),null;case 6:if(l&&d.stateNode!=null)l.memoizedProps!==w&&Yi(d);else{if(typeof w!="string"&&d.stateNode===null)throw Error(a(166));if(l=he.current,Sc(d)){if(l=d.stateNode,g=d.memoizedProps,w=null,T=ia,T!==null)switch(T.tag){case 27:case 5:w=T.memoizedProps}l[na]=d,l=!!(l.nodeValue===g||w!==null&&w.suppressHydrationWarning===!0||U5(l.nodeValue,g)),l||$o(d,!0)}else l=og(l).createTextNode(w),l[na]=d,d.stateNode=l}return gr(d),null;case 31:if(g=d.memoizedState,l===null||l.memoizedState!==null){if(w=Sc(d),g!==null){if(l===null){if(!w)throw Error(a(318));if(l=d.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(a(557));l[na]=d}else Hs(),(d.flags&128)===0&&(d.memoizedState=null),d.flags|=4;gr(d),l=!1}else g=Gb(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=g),l=!0;if(!l)return d.flags&256?(Ja(d),d):(Ja(d),null);if((d.flags&128)!==0)throw Error(a(558))}return gr(d),null;case 13:if(w=d.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(T=Sc(d),w!==null&&w.dehydrated!==null){if(l===null){if(!T)throw Error(a(318));if(T=d.memoizedState,T=T!==null?T.dehydrated:null,!T)throw Error(a(317));T[na]=d}else Hs(),(d.flags&128)===0&&(d.memoizedState=null),d.flags|=4;gr(d),T=!1}else T=Gb(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=T),T=!0;if(!T)return d.flags&256?(Ja(d),d):(Ja(d),null)}return Ja(d),(d.flags&128)!==0?(d.lanes=g,d):(g=w!==null,l=l!==null&&l.memoizedState!==null,g&&(w=d.child,T=null,w.alternate!==null&&w.alternate.memoizedState!==null&&w.alternate.memoizedState.cachePool!==null&&(T=w.alternate.memoizedState.cachePool.pool),R=null,w.memoizedState!==null&&w.memoizedState.cachePool!==null&&(R=w.memoizedState.cachePool.pool),R!==T&&(w.flags|=2048)),g!==l&&g&&(d.child.flags|=8192),Hm(d,d.updateQueue),gr(d),null);case 4:return ae(),l===null&&n1(d.stateNode.containerInfo),gr(d),null;case 10:return Gi(d.type),gr(d),null;case 19:if(X(kr),w=d.memoizedState,w===null)return gr(d),null;if(T=(d.flags&128)!==0,R=w.rendering,R===null)if(T)mf(w,!1);else{if(Pr!==0||l!==null&&(l.flags&128)!==0)for(l=d.child;l!==null;){if(R=_m(l),R!==null){for(d.flags|=128,mf(w,!1),l=R.updateQueue,d.updateQueue=l,Hm(d,l),d.subtreeFlags=0,l=g,g=d.child;g!==null;)SD(g,l),g=g.sibling;return U(kr,kr.current&1|2),It&&Ui(d,w.treeForkCount),d.child}l=l.sibling}w.tail!==null&&Ne()>Ym&&(d.flags|=128,T=!0,mf(w,!1),d.lanes=4194304)}else{if(!T)if(l=_m(R),l!==null){if(d.flags|=128,T=!0,l=l.updateQueue,d.updateQueue=l,Hm(d,l),mf(w,!0),w.tail===null&&w.tailMode==="hidden"&&!R.alternate&&!It)return gr(d),null}else 2*Ne()-w.renderingStartTime>Ym&&g!==536870912&&(d.flags|=128,T=!0,mf(w,!1),d.lanes=4194304);w.isBackwards?(R.sibling=d.child,d.child=R):(l=w.last,l!==null?l.sibling=R:d.child=R,w.last=R)}return w.tail!==null?(l=w.tail,w.rendering=l,w.tail=l.sibling,w.renderingStartTime=Ne(),l.sibling=null,g=kr.current,U(kr,T?g&1|2:g&1),It&&Ui(d,w.treeForkCount),l):(gr(d),null);case 22:case 23:return Ja(d),i0(),w=d.memoizedState!==null,l!==null?l.memoizedState!==null!==w&&(d.flags|=8192):w&&(d.flags|=8192),w?(g&536870912)!==0&&(d.flags&128)===0&&(gr(d),d.subtreeFlags&6&&(d.flags|=8192)):gr(d),g=d.updateQueue,g!==null&&Hm(d,g.retryQueue),g=null,l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(g=l.memoizedState.cachePool.pool),w=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(w=d.memoizedState.cachePool.pool),w!==g&&(d.flags|=2048),l!==null&&X(Ws),null;case 24:return g=null,l!==null&&(g=l.memoizedState.cache),d.memoizedState.cache!==g&&(d.flags|=2048),Gi(Rr),gr(d),null;case 25:return null;case 30:return null}throw Error(a(156,d.tag))}function ZX(l,d){switch(Ub(d),d.tag){case 1:return l=d.flags,l&65536?(d.flags=l&-65537|128,d):null;case 3:return Gi(Rr),ae(),l=d.flags,(l&65536)!==0&&(l&128)===0?(d.flags=l&-65537|128,d):null;case 26:case 27:case 5:return ge(d),null;case 31:if(d.memoizedState!==null){if(Ja(d),d.alternate===null)throw Error(a(340));Hs()}return l=d.flags,l&65536?(d.flags=l&-65537|128,d):null;case 13:if(Ja(d),l=d.memoizedState,l!==null&&l.dehydrated!==null){if(d.alternate===null)throw Error(a(340));Hs()}return l=d.flags,l&65536?(d.flags=l&-65537|128,d):null;case 19:return X(kr),null;case 4:return ae(),null;case 10:return Gi(d.type),null;case 22:case 23:return Ja(d),i0(),l!==null&&X(Ws),l=d.flags,l&65536?(d.flags=l&-65537|128,d):null;case 24:return Gi(Rr),null;case 25:return null;default:return null}}function X_(l,d){switch(Ub(d),d.tag){case 3:Gi(Rr),ae();break;case 26:case 27:case 5:ge(d);break;case 4:ae();break;case 31:d.memoizedState!==null&&Ja(d);break;case 13:Ja(d);break;case 19:X(kr);break;case 10:Gi(d.type);break;case 22:case 23:Ja(d),i0(),l!==null&&X(Ws);break;case 24:Gi(Rr)}}function gf(l,d){try{var g=d.updateQueue,w=g!==null?g.lastEffect:null;if(w!==null){var T=w.next;g=T;do{if((g.tag&l)===l){w=void 0;var R=g.create,Q=g.inst;w=R(),Q.destroy=w}g=g.next}while(g!==T)}}catch(le){er(d,d.return,le)}}function Wo(l,d,g){try{var w=d.updateQueue,T=w!==null?w.lastEffect:null;if(T!==null){var R=T.next;w=R;do{if((w.tag&l)===l){var Q=w.inst,le=Q.destroy;if(le!==void 0){Q.destroy=void 0,T=d;var me=g,Se=le;try{Se()}catch(_e){er(T,me,_e)}}}w=w.next}while(w!==R)}}catch(_e){er(d,d.return,_e)}}function Y_(l){var d=l.updateQueue;if(d!==null){var g=l.stateNode;try{FD(d,g)}catch(w){er(l,l.return,w)}}}function Z_(l,d,g){g.props=Qs(l.type,l.memoizedProps),g.state=l.memoizedState;try{g.componentWillUnmount()}catch(w){er(l,d,w)}}function xf(l,d){try{var g=l.ref;if(g!==null){switch(l.tag){case 26:case 27:case 5:var w=l.stateNode;break;case 30:w=l.stateNode;break;default:w=l.stateNode}typeof g=="function"?l.refCleanup=g(w):g.current=w}}catch(T){er(l,d,T)}}function fi(l,d){var g=l.ref,w=l.refCleanup;if(g!==null)if(typeof w=="function")try{w()}catch(T){er(l,d,T)}finally{l.refCleanup=null,l=l.alternate,l!=null&&(l.refCleanup=null)}else if(typeof g=="function")try{g(null)}catch(T){er(l,d,T)}else g.current=null}function J_(l){var d=l.type,g=l.memoizedProps,w=l.stateNode;try{e:switch(d){case"button":case"input":case"select":case"textarea":g.autoFocus&&w.focus();break e;case"img":g.src?w.src=g.src:g.srcSet&&(w.srcset=g.srcSet)}}catch(T){er(l,l.return,T)}}function B0(l,d,g){try{var w=l.stateNode;yY(w,l.type,g,d),w[Da]=d}catch(T){er(l,l.return,T)}}function Q_(l){return l.tag===5||l.tag===3||l.tag===26||l.tag===27&&ts(l.type)||l.tag===4}function L0(l){e:for(;;){for(;l.sibling===null;){if(l.return===null||Q_(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(l.tag===27&&ts(l.type)||l.flags&2||l.child===null||l.tag===4)continue e;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function z0(l,d,g){var w=l.tag;if(w===5||w===6)l=l.stateNode,d?(g.nodeType===9?g.body:g.nodeName==="HTML"?g.ownerDocument.body:g).insertBefore(l,d):(d=g.nodeType===9?g.body:g.nodeName==="HTML"?g.ownerDocument.body:g,d.appendChild(l),g=g._reactRootContainer,g!=null||d.onclick!==null||(d.onclick=$i));else if(w!==4&&(w===27&&ts(l.type)&&(g=l.stateNode,d=null),l=l.child,l!==null))for(z0(l,d,g),l=l.sibling;l!==null;)z0(l,d,g),l=l.sibling}function Gm(l,d,g){var w=l.tag;if(w===5||w===6)l=l.stateNode,d?g.insertBefore(l,d):g.appendChild(l);else if(w!==4&&(w===27&&ts(l.type)&&(g=l.stateNode),l=l.child,l!==null))for(Gm(l,d,g),l=l.sibling;l!==null;)Gm(l,d,g),l=l.sibling}function e5(l){var d=l.stateNode,g=l.memoizedProps;try{for(var w=l.type,T=d.attributes;T.length;)d.removeAttributeNode(T[0]);la(d,w,g),d[na]=l,d[Da]=g}catch(R){er(l,l.return,R)}}var Zi=!1,Ir=!1,F0=!1,t5=typeof WeakSet=="function"?WeakSet:Set,Zr=null;function JX(l,d){if(l=l.containerInfo,s1=pg,l=pD(l),Rb(l)){if("selectionStart"in l)var g={start:l.selectionStart,end:l.selectionEnd};else e:{g=(g=l.ownerDocument)&&g.defaultView||window;var w=g.getSelection&&g.getSelection();if(w&&w.rangeCount!==0){g=w.anchorNode;var T=w.anchorOffset,R=w.focusNode;w=w.focusOffset;try{g.nodeType,R.nodeType}catch{g=null;break e}var Q=0,le=-1,me=-1,Se=0,_e=0,Le=l,Ae=null;t:for(;;){for(var Te;Le!==g||T!==0&&Le.nodeType!==3||(le=Q+T),Le!==R||w!==0&&Le.nodeType!==3||(me=Q+w),Le.nodeType===3&&(Q+=Le.nodeValue.length),(Te=Le.firstChild)!==null;)Ae=Le,Le=Te;for(;;){if(Le===l)break t;if(Ae===g&&++Se===T&&(le=Q),Ae===R&&++_e===w&&(me=Q),(Te=Le.nextSibling)!==null)break;Le=Ae,Ae=Le.parentNode}Le=Te}g=le===-1||me===-1?null:{start:le,end:me}}else g=null}g=g||{start:0,end:0}}else g=null;for(l1={focusedElem:l,selectionRange:g},pg=!1,Zr=d;Zr!==null;)if(d=Zr,l=d.child,(d.subtreeFlags&1028)!==0&&l!==null)l.return=d,Zr=l;else for(;Zr!==null;){switch(d=Zr,R=d.alternate,l=d.flags,d.tag){case 0:if((l&4)!==0&&(l=d.updateQueue,l=l!==null?l.events:null,l!==null))for(g=0;g<l.length;g++)T=l[g],T.ref.impl=T.nextImpl;break;case 11:case 15:break;case 1:if((l&1024)!==0&&R!==null){l=void 0,g=d,T=R.memoizedProps,R=R.memoizedState,w=g.stateNode;try{var Ze=Qs(g.type,T);l=w.getSnapshotBeforeUpdate(Ze,R),w.__reactInternalSnapshotBeforeUpdate=l}catch(ut){er(g,g.return,ut)}}break;case 3:if((l&1024)!==0){if(l=d.stateNode.containerInfo,g=l.nodeType,g===9)d1(l);else if(g===1)switch(l.nodeName){case"HEAD":case"HTML":case"BODY":d1(l);break;default:l.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((l&1024)!==0)throw Error(a(163))}if(l=d.sibling,l!==null){l.return=d.return,Zr=l;break}Zr=d.return}}function r5(l,d,g){var w=g.flags;switch(g.tag){case 0:case 11:case 15:Qi(l,g),w&4&&gf(5,g);break;case 1:if(Qi(l,g),w&4)if(l=g.stateNode,d===null)try{l.componentDidMount()}catch(Q){er(g,g.return,Q)}else{var T=Qs(g.type,d.memoizedProps);d=d.memoizedState;try{l.componentDidUpdate(T,d,l.__reactInternalSnapshotBeforeUpdate)}catch(Q){er(g,g.return,Q)}}w&64&&Y_(g),w&512&&xf(g,g.return);break;case 3:if(Qi(l,g),w&64&&(l=g.updateQueue,l!==null)){if(d=null,g.child!==null)switch(g.child.tag){case 27:case 5:d=g.child.stateNode;break;case 1:d=g.child.stateNode}try{FD(l,d)}catch(Q){er(g,g.return,Q)}}break;case 27:d===null&&w&4&&e5(g);case 26:case 5:Qi(l,g),d===null&&w&4&&J_(g),w&512&&xf(g,g.return);break;case 12:Qi(l,g);break;case 31:Qi(l,g),w&4&&i5(l,g);break;case 13:Qi(l,g),w&4&&o5(l,g),w&64&&(l=g.memoizedState,l!==null&&(l=l.dehydrated,l!==null&&(g=sY.bind(null,g),jY(l,g))));break;case 22:if(w=g.memoizedState!==null||Zi,!w){d=d!==null&&d.memoizedState!==null||Ir,T=Zi;var R=Ir;Zi=w,(Ir=d)&&!R?eo(l,g,(g.subtreeFlags&8772)!==0):Qi(l,g),Zi=T,Ir=R}break;case 30:break;default:Qi(l,g)}}function a5(l){var d=l.alternate;d!==null&&(l.alternate=null,a5(d)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(d=l.stateNode,d!==null&&gb(d)),l.stateNode=null,l.return=null,l.dependencies=null,l.memoizedProps=null,l.memoizedState=null,l.pendingProps=null,l.stateNode=null,l.updateQueue=null}var br=null,Ra=!1;function Ji(l,d,g){for(g=g.child;g!==null;)n5(l,d,g),g=g.sibling}function n5(l,d,g){if(Oe&&typeof Oe.onCommitFiberUnmount=="function")try{Oe.onCommitFiberUnmount(xt,g)}catch{}switch(g.tag){case 26:Ir||fi(g,d),Ji(l,d,g),g.memoizedState?g.memoizedState.count--:g.stateNode&&(g=g.stateNode,g.parentNode.removeChild(g));break;case 27:Ir||fi(g,d);var w=br,T=Ra;ts(g.type)&&(br=g.stateNode,Ra=!1),Ji(l,d,g),Pf(g.stateNode),br=w,Ra=T;break;case 5:Ir||fi(g,d);case 6:if(w=br,T=Ra,br=null,Ji(l,d,g),br=w,Ra=T,br!==null)if(Ra)try{(br.nodeType===9?br.body:br.nodeName==="HTML"?br.ownerDocument.body:br).removeChild(g.stateNode)}catch(R){er(g,d,R)}else try{br.removeChild(g.stateNode)}catch(R){er(g,d,R)}break;case 18:br!==null&&(Ra?(l=br,Y5(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,g.stateNode),Vc(l)):Y5(br,g.stateNode));break;case 4:w=br,T=Ra,br=g.stateNode.containerInfo,Ra=!0,Ji(l,d,g),br=w,Ra=T;break;case 0:case 11:case 14:case 15:Wo(2,g,d),Ir||Wo(4,g,d),Ji(l,d,g);break;case 1:Ir||(fi(g,d),w=g.stateNode,typeof w.componentWillUnmount=="function"&&Z_(g,d,w)),Ji(l,d,g);break;case 21:Ji(l,d,g);break;case 22:Ir=(w=Ir)||g.memoizedState!==null,Ji(l,d,g),Ir=w;break;default:Ji(l,d,g)}}function i5(l,d){if(d.memoizedState===null&&(l=d.alternate,l!==null&&(l=l.memoizedState,l!==null))){l=l.dehydrated;try{Vc(l)}catch(g){er(d,d.return,g)}}}function o5(l,d){if(d.memoizedState===null&&(l=d.alternate,l!==null&&(l=l.memoizedState,l!==null&&(l=l.dehydrated,l!==null))))try{Vc(l)}catch(g){er(d,d.return,g)}}function QX(l){switch(l.tag){case 31:case 13:case 19:var d=l.stateNode;return d===null&&(d=l.stateNode=new t5),d;case 22:return l=l.stateNode,d=l._retryCache,d===null&&(d=l._retryCache=new t5),d;default:throw Error(a(435,l.tag))}}function Km(l,d){var g=QX(l);d.forEach(function(w){if(!g.has(w)){g.add(w);var T=lY.bind(null,l,w);w.then(T,T)}})}function Oa(l,d){var g=d.deletions;if(g!==null)for(var w=0;w<g.length;w++){var T=g[w],R=l,Q=d,le=Q;e:for(;le!==null;){switch(le.tag){case 27:if(ts(le.type)){br=le.stateNode,Ra=!1;break e}break;case 5:br=le.stateNode,Ra=!1;break e;case 3:case 4:br=le.stateNode.containerInfo,Ra=!0;break e}le=le.return}if(br===null)throw Error(a(160));n5(R,Q,T),br=null,Ra=!1,R=T.alternate,R!==null&&(R.return=null),T.return=null}if(d.subtreeFlags&13886)for(d=d.child;d!==null;)s5(d,l),d=d.sibling}var Gn=null;function s5(l,d){var g=l.alternate,w=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:Oa(d,l),Ma(l),w&4&&(Wo(3,l,l.return),gf(3,l),Wo(5,l,l.return));break;case 1:Oa(d,l),Ma(l),w&512&&(Ir||g===null||fi(g,g.return)),w&64&&Zi&&(l=l.updateQueue,l!==null&&(w=l.callbacks,w!==null&&(g=l.shared.hiddenCallbacks,l.shared.hiddenCallbacks=g===null?w:g.concat(w))));break;case 26:var T=Gn;if(Oa(d,l),Ma(l),w&512&&(Ir||g===null||fi(g,g.return)),w&4){var R=g!==null?g.memoizedState:null;if(w=l.memoizedState,g===null)if(w===null)if(l.stateNode===null){e:{w=l.type,g=l.memoizedProps,T=T.ownerDocument||T;t:switch(w){case"title":R=T.getElementsByTagName("title")[0],(!R||R[Vd]||R[na]||R.namespaceURI==="http://www.w3.org/2000/svg"||R.hasAttribute("itemprop"))&&(R=T.createElement(w),T.head.insertBefore(R,T.querySelector("head > title"))),la(R,w,g),R[na]=l,Yr(R),w=R;break e;case"link":var Q=s4("link","href",T).get(w+(g.href||""));if(Q){for(var le=0;le<Q.length;le++)if(R=Q[le],R.getAttribute("href")===(g.href==null||g.href===""?null:g.href)&&R.getAttribute("rel")===(g.rel==null?null:g.rel)&&R.getAttribute("title")===(g.title==null?null:g.title)&&R.getAttribute("crossorigin")===(g.crossOrigin==null?null:g.crossOrigin)){Q.splice(le,1);break t}}R=T.createElement(w),la(R,w,g),T.head.appendChild(R);break;case"meta":if(Q=s4("meta","content",T).get(w+(g.content||""))){for(le=0;le<Q.length;le++)if(R=Q[le],R.getAttribute("content")===(g.content==null?null:""+g.content)&&R.getAttribute("name")===(g.name==null?null:g.name)&&R.getAttribute("property")===(g.property==null?null:g.property)&&R.getAttribute("http-equiv")===(g.httpEquiv==null?null:g.httpEquiv)&&R.getAttribute("charset")===(g.charSet==null?null:g.charSet)){Q.splice(le,1);break t}}R=T.createElement(w),la(R,w,g),T.head.appendChild(R);break;default:throw Error(a(468,w))}R[na]=l,Yr(R),w=R}l.stateNode=w}else l4(T,l.type,l.stateNode);else l.stateNode=o4(T,w,l.memoizedProps);else R!==w?(R===null?g.stateNode!==null&&(g=g.stateNode,g.parentNode.removeChild(g)):R.count--,w===null?l4(T,l.type,l.stateNode):o4(T,w,l.memoizedProps)):w===null&&l.stateNode!==null&&B0(l,l.memoizedProps,g.memoizedProps)}break;case 27:Oa(d,l),Ma(l),w&512&&(Ir||g===null||fi(g,g.return)),g!==null&&w&4&&B0(l,l.memoizedProps,g.memoizedProps);break;case 5:if(Oa(d,l),Ma(l),w&512&&(Ir||g===null||fi(g,g.return)),l.flags&32){T=l.stateNode;try{fc(T,"")}catch(Ze){er(l,l.return,Ze)}}w&4&&l.stateNode!=null&&(T=l.memoizedProps,B0(l,T,g!==null?g.memoizedProps:T)),w&1024&&(F0=!0);break;case 6:if(Oa(d,l),Ma(l),w&4){if(l.stateNode===null)throw Error(a(162));w=l.memoizedProps,g=l.stateNode;try{g.nodeValue=w}catch(Ze){er(l,l.return,Ze)}}break;case 3:if(cg=null,T=Gn,Gn=sg(d.containerInfo),Oa(d,l),Gn=T,Ma(l),w&4&&g!==null&&g.memoizedState.isDehydrated)try{Vc(d.containerInfo)}catch(Ze){er(l,l.return,Ze)}F0&&(F0=!1,l5(l));break;case 4:w=Gn,Gn=sg(l.stateNode.containerInfo),Oa(d,l),Ma(l),Gn=w;break;case 12:Oa(d,l),Ma(l);break;case 31:Oa(d,l),Ma(l),w&4&&(w=l.updateQueue,w!==null&&(l.updateQueue=null,Km(l,w)));break;case 13:Oa(d,l),Ma(l),l.child.flags&8192&&l.memoizedState!==null!=(g!==null&&g.memoizedState!==null)&&(Xm=Ne()),w&4&&(w=l.updateQueue,w!==null&&(l.updateQueue=null,Km(l,w)));break;case 22:T=l.memoizedState!==null;var me=g!==null&&g.memoizedState!==null,Se=Zi,_e=Ir;if(Zi=Se||T,Ir=_e||me,Oa(d,l),Ir=_e,Zi=Se,Ma(l),w&8192)e:for(d=l.stateNode,d._visibility=T?d._visibility&-2:d._visibility|1,T&&(g===null||me||Zi||Ir||el(l)),g=null,d=l;;){if(d.tag===5||d.tag===26){if(g===null){me=g=d;try{if(R=me.stateNode,T)Q=R.style,typeof Q.setProperty=="function"?Q.setProperty("display","none","important"):Q.display="none";else{le=me.stateNode;var Le=me.memoizedProps.style,Ae=Le!=null&&Le.hasOwnProperty("display")?Le.display:null;le.style.display=Ae==null||typeof Ae=="boolean"?"":(""+Ae).trim()}}catch(Ze){er(me,me.return,Ze)}}}else if(d.tag===6){if(g===null){me=d;try{me.stateNode.nodeValue=T?"":me.memoizedProps}catch(Ze){er(me,me.return,Ze)}}}else if(d.tag===18){if(g===null){me=d;try{var Te=me.stateNode;T?Z5(Te,!0):Z5(me.stateNode,!1)}catch(Ze){er(me,me.return,Ze)}}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===l)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===l)break e;for(;d.sibling===null;){if(d.return===null||d.return===l)break e;g===d&&(g=null),d=d.return}g===d&&(g=null),d.sibling.return=d.return,d=d.sibling}w&4&&(w=l.updateQueue,w!==null&&(g=w.retryQueue,g!==null&&(w.retryQueue=null,Km(l,g))));break;case 19:Oa(d,l),Ma(l),w&4&&(w=l.updateQueue,w!==null&&(l.updateQueue=null,Km(l,w)));break;case 30:break;case 21:break;default:Oa(d,l),Ma(l)}}function Ma(l){var d=l.flags;if(d&2){try{for(var g,w=l.return;w!==null;){if(Q_(w)){g=w;break}w=w.return}if(g==null)throw Error(a(160));switch(g.tag){case 27:var T=g.stateNode,R=L0(l);Gm(l,R,T);break;case 5:var Q=g.stateNode;g.flags&32&&(fc(Q,""),g.flags&=-33);var le=L0(l);Gm(l,le,Q);break;case 3:case 4:var me=g.stateNode.containerInfo,Se=L0(l);z0(l,Se,me);break;default:throw Error(a(161))}}catch(_e){er(l,l.return,_e)}l.flags&=-3}d&4096&&(l.flags&=-4097)}function l5(l){if(l.subtreeFlags&1024)for(l=l.child;l!==null;){var d=l;l5(d),d.tag===5&&d.flags&1024&&d.stateNode.reset(),l=l.sibling}}function Qi(l,d){if(d.subtreeFlags&8772)for(d=d.child;d!==null;)r5(l,d.alternate,d),d=d.sibling}function el(l){for(l=l.child;l!==null;){var d=l;switch(d.tag){case 0:case 11:case 14:case 15:Wo(4,d,d.return),el(d);break;case 1:fi(d,d.return);var g=d.stateNode;typeof g.componentWillUnmount=="function"&&Z_(d,d.return,g),el(d);break;case 27:Pf(d.stateNode);case 26:case 5:fi(d,d.return),el(d);break;case 22:d.memoizedState===null&&el(d);break;case 30:el(d);break;default:el(d)}l=l.sibling}}function eo(l,d,g){for(g=g&&(d.subtreeFlags&8772)!==0,d=d.child;d!==null;){var w=d.alternate,T=l,R=d,Q=R.flags;switch(R.tag){case 0:case 11:case 15:eo(T,R,g),gf(4,R);break;case 1:if(eo(T,R,g),w=R,T=w.stateNode,typeof T.componentDidMount=="function")try{T.componentDidMount()}catch(Se){er(w,w.return,Se)}if(w=R,T=w.updateQueue,T!==null){var le=w.stateNode;try{var me=T.shared.hiddenCallbacks;if(me!==null)for(T.shared.hiddenCallbacks=null,T=0;T<me.length;T++)zD(me[T],le)}catch(Se){er(w,w.return,Se)}}g&&Q&64&&Y_(R),xf(R,R.return);break;case 27:e5(R);case 26:case 5:eo(T,R,g),g&&w===null&&Q&4&&J_(R),xf(R,R.return);break;case 12:eo(T,R,g);break;case 31:eo(T,R,g),g&&Q&4&&i5(T,R);break;case 13:eo(T,R,g),g&&Q&4&&o5(T,R);break;case 22:R.memoizedState===null&&eo(T,R,g),xf(R,R.return);break;case 30:break;default:eo(T,R,g)}d=d.sibling}}function $0(l,d){var g=null;l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(g=l.memoizedState.cachePool.pool),l=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(l=d.memoizedState.cachePool.pool),l!==g&&(l!=null&&l.refCount++,g!=null&&rf(g))}function q0(l,d){l=null,d.alternate!==null&&(l=d.alternate.memoizedState.cache),d=d.memoizedState.cache,d!==l&&(d.refCount++,l!=null&&rf(l))}function Kn(l,d,g,w){if(d.subtreeFlags&10256)for(d=d.child;d!==null;)c5(l,d,g,w),d=d.sibling}function c5(l,d,g,w){var T=d.flags;switch(d.tag){case 0:case 11:case 15:Kn(l,d,g,w),T&2048&&gf(9,d);break;case 1:Kn(l,d,g,w);break;case 3:Kn(l,d,g,w),T&2048&&(l=null,d.alternate!==null&&(l=d.alternate.memoizedState.cache),d=d.memoizedState.cache,d!==l&&(d.refCount++,l!=null&&rf(l)));break;case 12:if(T&2048){Kn(l,d,g,w),l=d.stateNode;try{var R=d.memoizedProps,Q=R.id,le=R.onPostCommit;typeof le=="function"&&le(Q,d.alternate===null?"mount":"update",l.passiveEffectDuration,-0)}catch(me){er(d,d.return,me)}}else Kn(l,d,g,w);break;case 31:Kn(l,d,g,w);break;case 13:Kn(l,d,g,w);break;case 23:break;case 22:R=d.stateNode,Q=d.alternate,d.memoizedState!==null?R._visibility&2?Kn(l,d,g,w):vf(l,d):R._visibility&2?Kn(l,d,g,w):(R._visibility|=2,_c(l,d,g,w,(d.subtreeFlags&10256)!==0||!1)),T&2048&&$0(Q,d);break;case 24:Kn(l,d,g,w),T&2048&&q0(d.alternate,d);break;default:Kn(l,d,g,w)}}function _c(l,d,g,w,T){for(T=T&&((d.subtreeFlags&10256)!==0||!1),d=d.child;d!==null;){var R=l,Q=d,le=g,me=w,Se=Q.flags;switch(Q.tag){case 0:case 11:case 15:_c(R,Q,le,me,T),gf(8,Q);break;case 23:break;case 22:var _e=Q.stateNode;Q.memoizedState!==null?_e._visibility&2?_c(R,Q,le,me,T):vf(R,Q):(_e._visibility|=2,_c(R,Q,le,me,T)),T&&Se&2048&&$0(Q.alternate,Q);break;case 24:_c(R,Q,le,me,T),T&&Se&2048&&q0(Q.alternate,Q);break;default:_c(R,Q,le,me,T)}d=d.sibling}}function vf(l,d){if(d.subtreeFlags&10256)for(d=d.child;d!==null;){var g=l,w=d,T=w.flags;switch(w.tag){case 22:vf(g,w),T&2048&&$0(w.alternate,w);break;case 24:vf(g,w),T&2048&&q0(w.alternate,w);break;default:vf(g,w)}d=d.sibling}}var yf=8192;function Rc(l,d,g){if(l.subtreeFlags&yf)for(l=l.child;l!==null;)u5(l,d,g),l=l.sibling}function u5(l,d,g){switch(l.tag){case 26:Rc(l,d,g),l.flags&yf&&l.memoizedState!==null&&zY(g,Gn,l.memoizedState,l.memoizedProps);break;case 5:Rc(l,d,g);break;case 3:case 4:var w=Gn;Gn=sg(l.stateNode.containerInfo),Rc(l,d,g),Gn=w;break;case 22:l.memoizedState===null&&(w=l.alternate,w!==null&&w.memoizedState!==null?(w=yf,yf=16777216,Rc(l,d,g),yf=w):Rc(l,d,g));break;default:Rc(l,d,g)}}function d5(l){var d=l.alternate;if(d!==null&&(l=d.child,l!==null)){d.child=null;do d=l.sibling,l.sibling=null,l=d;while(l!==null)}}function bf(l){var d=l.deletions;if((l.flags&16)!==0){if(d!==null)for(var g=0;g<d.length;g++){var w=d[g];Zr=w,p5(w,l)}d5(l)}if(l.subtreeFlags&10256)for(l=l.child;l!==null;)f5(l),l=l.sibling}function f5(l){switch(l.tag){case 0:case 11:case 15:bf(l),l.flags&2048&&Wo(9,l,l.return);break;case 3:bf(l);break;case 12:bf(l);break;case 22:var d=l.stateNode;l.memoizedState!==null&&d._visibility&2&&(l.return===null||l.return.tag!==13)?(d._visibility&=-3,Wm(l)):bf(l);break;default:bf(l)}}function Wm(l){var d=l.deletions;if((l.flags&16)!==0){if(d!==null)for(var g=0;g<d.length;g++){var w=d[g];Zr=w,p5(w,l)}d5(l)}for(l=l.child;l!==null;){switch(d=l,d.tag){case 0:case 11:case 15:Wo(8,d,d.return),Wm(d);break;case 22:g=d.stateNode,g._visibility&2&&(g._visibility&=-3,Wm(d));break;default:Wm(d)}l=l.sibling}}function p5(l,d){for(;Zr!==null;){var g=Zr;switch(g.tag){case 0:case 11:case 15:Wo(8,g,d);break;case 23:case 22:if(g.memoizedState!==null&&g.memoizedState.cachePool!==null){var w=g.memoizedState.cachePool.pool;w!=null&&w.refCount++}break;case 24:rf(g.memoizedState.cache)}if(w=g.child,w!==null)w.return=g,Zr=w;else e:for(g=l;Zr!==null;){w=Zr;var T=w.sibling,R=w.return;if(a5(w),w===g){Zr=null;break e}if(T!==null){T.return=R,Zr=T;break e}Zr=R}}}var eY={getCacheForType:function(l){var d=oa(Rr),g=d.data.get(l);return g===void 0&&(g=l(),d.data.set(l,g)),g},cacheSignal:function(){return oa(Rr).controller.signal}},tY=typeof WeakMap=="function"?WeakMap:Map,Kt=0,or=null,Dt=null,Ot=0,Qt=0,Qa=null,Xo=!1,Oc=!1,V0=!1,to=0,Pr=0,Yo=0,tl=0,U0=0,en=0,Mc=0,wf=null,Ia=null,H0=!1,Xm=0,h5=0,Ym=1/0,Zm=null,Zo=null,$r=0,Jo=null,Ic=null,ro=0,G0=0,K0=null,m5=null,Sf=0,W0=null;function tn(){return(Kt&2)!==0&&Ot!==0?Ot&-Ot:z.T!==null?e1():yn()}function g5(){if(en===0)if((Ot&536870912)===0||It){var l=Xt;Xt<<=1,(Xt&3932160)===0&&(Xt=262144),en=l}else en=536870912;return l=Za.current,l!==null&&(l.flags|=32),en}function Ba(l,d,g){(l===or&&(Qt===2||Qt===9)||l.cancelPendingCommit!==null)&&(Bc(l,0),Qo(l,Ot,en,!1)),Tt(l,g),((Kt&2)===0||l!==or)&&(l===or&&((Kt&2)===0&&(tl|=g),Pr===4&&Qo(l,Ot,en,!1)),pi(l))}function x5(l,d,g){if((Kt&6)!==0)throw Error(a(327));var w=!g&&(d&127)===0&&(d&l.expiredLanes)===0||ft(l,d),T=w?nY(l,d):Y0(l,d,!0),R=w;do{if(T===0){Oc&&!w&&Qo(l,d,0,!1);break}else{if(g=l.current.alternate,R&&!rY(g)){T=Y0(l,d,!1),R=!1;continue}if(T===2){if(R=d,l.errorRecoveryDisabledLanes&R)var Q=0;else Q=l.pendingLanes&-536870913,Q=Q!==0?Q:Q&536870912?536870912:0;if(Q!==0){d=Q;e:{var le=l;T=wf;var me=le.current.memoizedState.isDehydrated;if(me&&(Bc(le,Q).flags|=256),Q=Y0(le,Q,!1),Q!==2){if(V0&&!me){le.errorRecoveryDisabledLanes|=R,tl|=R,T=4;break e}R=Ia,Ia=T,R!==null&&(Ia===null?Ia=R:Ia.push.apply(Ia,R))}T=Q}if(R=!1,T!==2)continue}}if(T===1){Bc(l,0),Qo(l,d,0,!0);break}e:{switch(w=l,R=T,R){case 0:case 1:throw Error(a(345));case 4:if((d&4194048)!==d)break;case 6:Qo(w,d,en,!Xo);break e;case 2:Ia=null;break;case 3:case 5:break;default:throw Error(a(329))}
vendor: 13,470 bytes, line 48
48if((d&62914560)===d&&(T=Xm+300-Ne(),10<T)){if(Qo(w,d,en,!Xo),Je(w,0,!0)!==0)break e;ro=d,w.timeoutHandle=W5(v5.bind(null,w,g,Ia,Zm,H0,d,en,tl,Mc,Xo,R,"Throttled",-0,0),T);break e}v5(w,g,Ia,Zm,H0,d,en,tl,Mc,Xo,R,null,-0,0)}}break}while(!0);pi(l)}function v5(l,d,g,w,T,R,Q,le,me,Se,_e,Le,Ae,Te){if(l.timeoutHandle=-1,Le=d.subtreeFlags,Le&8192||(Le&16785408)===16785408){Le={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:$i},u5(d,R,Le);var Ze=(R&62914560)===R?Xm-Ne():(R&4194048)===R?h5-Ne():0;if(Ze=FY(Le,Ze),Ze!==null){ro=R,l.cancelPendingCommit=Ze(P5.bind(null,l,d,R,g,w,T,Q,le,me,_e,Le,null,Ae,Te)),Qo(l,R,Q,!Se);return}}P5(l,d,R,g,w,T,Q,le,me)}function rY(l){for(var d=l;;){var g=d.tag;if((g===0||g===11||g===15)&&d.flags&16384&&(g=d.updateQueue,g!==null&&(g=g.stores,g!==null)))for(var w=0;w<g.length;w++){var T=g[w],R=T.getSnapshot;T=T.value;try{if(!Xa(R(),T))return!1}catch{return!1}}if(g=d.child,d.subtreeFlags&16384&&g!==null)g.return=d,d=g;else{if(d===l)break;for(;d.sibling===null;){if(d.return===null||d.return===l)return!0;d=d.return}d.sibling.return=d.return,d=d.sibling}}return!0}function Qo(l,d,g,w){d&=~U0,d&=~tl,l.suspendedLanes|=d,l.pingedLanes&=~d,w&&(l.warmLanes|=d),w=l.expirationTimes;for(var T=d;0<T;){var R=31-Ie(T),Q=1<<R;w[R]=-1,T&=~Q}g!==0&&ha(l,g,d)}function Jm(){return(Kt&6)===0?(Ef(0),!1):!0}function X0(){if(Dt!==null){if(Qt===0)var l=Dt.return;else l=Dt,Hi=Gs=null,d0(l),jc=null,nf=0,l=Dt;for(;l!==null;)X_(l.alternate,l),l=l.return;Dt=null}}function Bc(l,d){var g=l.timeoutHandle;g!==-1&&(l.timeoutHandle=-1,SY(g)),g=l.cancelPendingCommit,g!==null&&(l.cancelPendingCommit=null,g()),ro=0,X0(),or=l,Dt=g=Vi(l.current,null),Ot=d,Qt=0,Qa=null,Xo=!1,Oc=ft(l,d),V0=!1,Mc=en=U0=tl=Yo=Pr=0,Ia=wf=null,H0=!1,(d&8)!==0&&(d|=d&32);var w=l.entangledLanes;if(w!==0)for(l=l.entanglements,w&=d;0<w;){var T=31-Ie(w),R=1<<T;d|=l[T],w&=~R}return to=d,ym(),g}function y5(l,d){St=null,z.H=pf,d===Pc||d===jm?(d=MD(),Qt=3):d===Qb?(d=MD(),Qt=4):Qt=d===j0?8:d!==null&&typeof d=="object"&&typeof d.then=="function"?6:1,Qa=d,Dt===null&&(Pr=1,$m(l,An(d,l.current)))}function b5(){var l=Za.current;return l===null?!0:(Ot&4194048)===Ot?Nn===null:(Ot&62914560)===Ot||(Ot&536870912)!==0?l===Nn:!1}function w5(){var l=z.H;return z.H=pf,l===null?pf:l}function S5(){var l=z.A;return z.A=eY,l}function Qm(){Pr=4,Xo||(Ot&4194048)!==Ot&&Za.current!==null||(Oc=!0),(Yo&134217727)===0&&(tl&134217727)===0||or===null||Qo(or,Ot,en,!1)}function Y0(l,d,g){var w=Kt;Kt|=2;var T=w5(),R=S5();(or!==l||Ot!==d)&&(Zm=null,Bc(l,d)),d=!1;var Q=Pr;e:do try{if(Qt!==0&&Dt!==null){var le=Dt,me=Qa;switch(Qt){case 8:X0(),Q=6;break e;case 3:case 2:case 9:case 6:Za.current===null&&(d=!0);var Se=Qt;if(Qt=0,Qa=null,Lc(l,le,me,Se),g&&Oc){Q=0;break e}break;default:Se=Qt,Qt=0,Qa=null,Lc(l,le,me,Se)}}aY(),Q=Pr;break}catch(_e){y5(l,_e)}while(!0);return d&&l.shellSuspendCounter++,Hi=Gs=null,Kt=w,z.H=T,z.A=R,Dt===null&&(or=null,Ot=0,ym()),Q}function aY(){for(;Dt!==null;)E5(Dt)}function nY(l,d){var g=Kt;Kt|=2;var w=w5(),T=S5();or!==l||Ot!==d?(Zm=null,Ym=Ne()+500,Bc(l,d)):Oc=ft(l,d);e:do try{if(Qt!==0&&Dt!==null){d=Dt;var R=Qa;t:switch(Qt){case 1:Qt=0,Qa=null,Lc(l,d,R,1);break;case 2:case 9:if(RD(R)){Qt=0,Qa=null,A5(d);break}d=function(){Qt!==2&&Qt!==9||or!==l||(Qt=7),pi(l)},R.then(d,d);break e;case 3:Qt=7;break e;case 4:Qt=5;break e;case 7:RD(R)?(Qt=0,Qa=null,A5(d)):(Qt=0,Qa=null,Lc(l,d,R,7));break;case 5:var Q=null;switch(Dt.tag){case 26:Q=Dt.memoizedState;case 5:case 27:var le=Dt;if(Q?c4(Q):le.stateNode.complete){Qt=0,Qa=null;var me=le.sibling;if(me!==null)Dt=me;else{var Se=le.return;Se!==null?(Dt=Se,eg(Se)):Dt=null}break t}}Qt=0,Qa=null,Lc(l,d,R,5);break;case 6:Qt=0,Qa=null,Lc(l,d,R,6);break;case 8:X0(),Pr=6;break e;default:throw Error(a(462))}}iY();break}catch(_e){y5(l,_e)}while(!0);return Hi=Gs=null,z.H=w,z.A=T,Kt=g,Dt!==null?0:(or=null,Ot=0,ym(),Pr)}function iY(){for(;Dt!==null&&!ue();)E5(Dt)}function E5(l){var d=K_(l.alternate,l,to);l.memoizedProps=l.pendingProps,d===null?eg(l):Dt=d}function A5(l){var d=l,g=d.alternate;switch(d.tag){case 15:case 0:d=$_(g,d,d.pendingProps,d.type,void 0,Ot);break;case 11:d=$_(g,d,d.pendingProps,d.type.render,d.ref,Ot);break;case 5:d0(d);default:X_(g,d),d=Dt=SD(d,to),d=K_(g,d,to)}l.memoizedProps=l.pendingProps,d===null?eg(l):Dt=d}function Lc(l,d,g,w){Hi=Gs=null,d0(d),jc=null,nf=0;var T=d.return;try{if(KX(l,T,d,g,Ot)){Pr=1,$m(l,An(g,l.current)),Dt=null;return}}catch(R){if(T!==null)throw Dt=T,R;Pr=1,$m(l,An(g,l.current)),Dt=null;return}d.flags&32768?(It||w===1?l=!0:Oc||(Ot&536870912)!==0?l=!1:(Xo=l=!0,(w===2||w===9||w===3||w===6)&&(w=Za.current,w!==null&&w.tag===13&&(w.flags|=16384))),C5(d,l)):eg(d)}function eg(l){var d=l;do{if((d.flags&32768)!==0){C5(d,Xo);return}l=d.return;var g=YX(d.alternate,d,to);if(g!==null){Dt=g;return}if(d=d.sibling,d!==null){Dt=d;return}Dt=d=l}while(d!==null);Pr===0&&(Pr=5)}function C5(l,d){do{var g=ZX(l.alternate,l);if(g!==null){g.flags&=32767,Dt=g;return}if(g=l.return,g!==null&&(g.flags|=32768,g.subtreeFlags=0,g.deletions=null),!d&&(l=l.sibling,l!==null)){Dt=l;return}Dt=l=g}while(l!==null);Pr=6,Dt=null}function P5(l,d,g,w,T,R,Q,le,me){l.cancelPendingCommit=null;do tg();while($r!==0);if((Kt&6)!==0)throw Error(a(327));if(d!==null){if(d===l.current)throw Error(a(177));if(R=d.lanes|d.childLanes,R|=Lb,zt(l,g,R,Q,le,me),l===or&&(Dt=or=null,Ot=0),Ic=d,Jo=l,ro=g,G0=R,K0=T,m5=w,(d.subtreeFlags&10256)!==0||(d.flags&10256)!==0?(l.callbackNode=null,l.callbackPriority=0,cY(ze,function(){return D5(),null})):(l.callbackNode=null,l.callbackPriority=0),w=(d.flags&13878)!==0,(d.subtreeFlags&13878)!==0||w){w=z.T,z.T=null,T=V.p,V.p=2,Q=Kt,Kt|=4;try{JX(l,d,g)}finally{Kt=Q,V.p=T,z.T=w}}$r=1,j5(),N5(),T5()}}function j5(){if($r===1){$r=0;var l=Jo,d=Ic,g=(d.flags&13878)!==0;if((d.subtreeFlags&13878)!==0||g){g=z.T,z.T=null;var w=V.p;V.p=2;var T=Kt;Kt|=4;try{s5(d,l);var R=l1,Q=pD(l.containerInfo),le=R.focusedElem,me=R.selectionRange;if(Q!==le&&le&&le.ownerDocument&&fD(le.ownerDocument.documentElement,le)){if(me!==null&&Rb(le)){var Se=me.start,_e=me.end;if(_e===void 0&&(_e=Se),"selectionStart"in le)le.selectionStart=Se,le.selectionEnd=Math.min(_e,le.value.length);else{var Le=le.ownerDocument||document,Ae=Le&&Le.defaultView||window;if(Ae.getSelection){var Te=Ae.getSelection(),Ze=le.textContent.length,ut=Math.min(me.start,Ze),nr=me.end===void 0?ut:Math.min(me.end,Ze);!Te.extend&&ut>nr&&(Q=nr,nr=ut,ut=Q);var ye=dD(le,ut),ve=dD(le,nr);if(ye&&ve&&(Te.rangeCount!==1||Te.anchorNode!==ye.node||Te.anchorOffset!==ye.offset||Te.focusNode!==ve.node||Te.focusOffset!==ve.offset)){var be=Le.createRange();be.setStart(ye.node,ye.offset),Te.removeAllRanges(),ut>nr?(Te.addRange(be),Te.extend(ve.node,ve.offset)):(be.setEnd(ve.node,ve.offset),Te.addRange(be))}}}}for(Le=[],Te=le;Te=Te.parentNode;)Te.nodeType===1&&Le.push({element:Te,left:Te.scrollLeft,top:Te.scrollTop});for(typeof le.focus=="function"&&le.focus(),le=0;le<Le.length;le++){var Be=Le[le];Be.element.scrollLeft=Be.left,Be.element.scrollTop=Be.top}}pg=!!s1,l1=s1=null}finally{Kt=T,V.p=w,z.T=g}}l.current=d,$r=2}}function N5(){if($r===2){$r=0;var l=Jo,d=Ic,g=(d.flags&8772)!==0;if((d.subtreeFlags&8772)!==0||g){g=z.T,z.T=null;var w=V.p;V.p=2;var T=Kt;Kt|=4;try{r5(l,d.alternate,d)}finally{Kt=T,V.p=w,z.T=g}}$r=3}}function T5(){if($r===4||$r===3){$r=0,we();var l=Jo,d=Ic,g=ro,w=m5;(d.subtreeFlags&10256)!==0||(d.flags&10256)!==0?$r=5:($r=0,Ic=Jo=null,k5(l,l.pendingLanes));var T=l.pendingLanes;if(T===0&&(Zo=null),aa(g),d=d.stateNode,Oe&&typeof Oe.onCommitFiberRoot=="function")try{Oe.onCommitFiberRoot(xt,d,void 0,(d.current.flags&128)===128)}catch{}if(w!==null){d=z.T,T=V.p,V.p=2,z.T=null;try{for(var R=l.onRecoverableError,Q=0;Q<w.length;Q++){var le=w[Q];R(le.value,{componentStack:le.stack})}}finally{z.T=d,V.p=T}}(ro&3)!==0&&tg(),pi(l),T=l.pendingLanes,(g&261930)!==0&&(T&42)!==0?l===W0?Sf++:(Sf=0,W0=l):Sf=0,Ef(0)}}function k5(l,d){(l.pooledCacheLanes&=d)===0&&(d=l.pooledCache,d!=null&&(l.pooledCache=null,rf(d)))}function tg(){return j5(),N5(),T5(),D5()}function D5(){if($r!==5)return!1;var l=Jo,d=G0;G0=0;var g=aa(ro),w=z.T,T=V.p;try{V.p=32>g?32:g,z.T=null,g=K0,K0=null;var R=Jo,Q=ro;if($r=0,Ic=Jo=null,ro=0,(Kt&6)!==0)throw Error(a(331));var le=Kt;if(Kt|=4,f5(R.current),c5(R,R.current,Q,g),Kt=le,Ef(0,!1),Oe&&typeof Oe.onPostCommitFiberRoot=="function")try{Oe.onPostCommitFiberRoot(xt,R)}catch{}return!0}finally{V.p=T,z.T=w,k5(l,d)}}function _5(l,d,g){d=An(g,d),d=P0(l.stateNode,d,2),l=Ho(l,d,2),l!==null&&(Tt(l,2),pi(l))}function er(l,d,g){if(l.tag===3)_5(l,l,g);else for(;d!==null;){if(d.tag===3){_5(d,l,g);break}else if(d.tag===1){var w=d.stateNode;if(typeof d.type.getDerivedStateFromError=="function"||typeof w.componentDidCatch=="function"&&(Zo===null||!Zo.has(w))){l=An(g,l),g=R_(2),w=Ho(d,g,2),w!==null&&(O_(g,w,d,l),Tt(w,2),pi(w));break}}d=d.return}}function Z0(l,d,g){var w=l.pingCache;if(w===null){w=l.pingCache=new tY;var T=new Set;w.set(d,T)}else T=w.get(d),T===void 0&&(T=new Set,w.set(d,T));T.has(g)||(V0=!0,T.add(g),l=oY.bind(null,l,d,g),d.then(l,l))}function oY(l,d,g){var w=l.pingCache;w!==null&&w.delete(d),l.pingedLanes|=l.suspendedLanes&g,l.warmLanes&=~g,or===l&&(Ot&g)===g&&(Pr===4||Pr===3&&(Ot&62914560)===Ot&&300>Ne()-Xm?(Kt&2)===0&&Bc(l,0):U0|=g,Mc===Ot&&(Mc=0)),pi(l)}function R5(l,d){d===0&&(d=ht()),l=Vs(l,d),l!==null&&(Tt(l,d),pi(l))}function sY(l){var d=l.memoizedState,g=0;d!==null&&(g=d.retryLane),R5(l,g)}function lY(l,d){var g=0;switch(l.tag){case 31:case 13:var w=l.stateNode,T=l.memoizedState;T!==null&&(g=T.retryLane);break;case 19:w=l.stateNode;break;case 22:w=l.stateNode._retryCache;break;default:throw Error(a(314))}w!==null&&w.delete(d),R5(l,g)}function cY(l,d){return ce(l,d)}var rg=null,zc=null,J0=!1,ag=!1,Q0=!1,es=0;function pi(l){l!==zc&&l.next===null&&(zc===null?rg=zc=l:zc=zc.next=l),ag=!0,J0||(J0=!0,dY())}function Ef(l,d){if(!Q0&&ag){Q0=!0;do for(var g=!1,w=rg;w!==null;){if(l!==0){var T=w.pendingLanes;if(T===0)var R=0;else{var Q=w.suspendedLanes,le=w.pingedLanes;R=(1<<31-Ie(42|l)+1)-1,R&=T&~(Q&~le),R=R&201326741?R&201326741|1:R?R|2:0}R!==0&&(g=!0,B5(w,R))}else R=Ot,R=Je(w,w===or?R:0,w.cancelPendingCommit!==null||w.timeoutHandle!==-1),(R&3)===0||ft(w,R)||(g=!0,B5(w,R));w=w.next}while(g);Q0=!1}}function uY(){O5()}function O5(){ag=J0=!1;var l=0;es!==0&&wY()&&(l=es);for(var d=Ne(),g=null,w=rg;w!==null;){var T=w.next,R=M5(w,d);R===0?(w.next=null,g===null?rg=T:g.next=T,T===null&&(zc=g)):(g=w,(l!==0||(R&3)!==0)&&(ag=!0)),w=T}$r!==0&&$r!==5||Ef(l),es!==0&&(es=0)}function M5(l,d){for(var g=l.suspendedLanes,w=l.pingedLanes,T=l.expirationTimes,R=l.pendingLanes&-62914561;0<R;){var Q=31-Ie(R),le=1<<Q,me=T[Q];me===-1?((le&g)===0||(le&w)!==0)&&(T[Q]=Ke(le,d)):me<=d&&(l.expiredLanes|=le),R&=~le}if(d=or,g=Ot,g=Je(l,l===d?g:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),w=l.callbackNode,g===0||l===d&&(Qt===2||Qt===9)||l.cancelPendingCommit!==null)return w!==null&&w!==null&&fe(w),l.callbackNode=null,l.callbackPriority=0;if((g&3)===0||ft(l,g)){if(d=g&-g,d===l.callbackPriority)return d;switch(w!==null&&fe(w),aa(g)){case 2:case 8:g=Ee;break;case 32:g=ze;break;case 268435456:g=it;break;default:g=ze}return w=I5.bind(null,l),g=ce(g,w),l.callbackPriority=d,l.callbackNode=g,d}return w!==null&&w!==null&&fe(w),l.callbackPriority=2,l.callbackNode=null,2}function I5(l,d){if($r!==0&&$r!==5)return l.callbackNode=null,l.callbackPriority=0,null;var g=l.callbackNode;if(tg()&&l.callbackNode!==g)return null;var w=Ot;return w=Je(l,l===or?w:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),w===0?null:(x5(l,w,d),M5(l,Ne()),l.callbackNode!=null&&l.callbackNode===g?I5.bind(null,l):null)}function B5(l,d){if(tg())return null;x5(l,d,!0)}function dY(){EY(function(){(Kt&6)!==0?ce(xe,uY):O5()})}function e1(){if(es===0){var l=Ac;l===0&&(l=cr,cr<<=1,(cr&261888)===0&&(cr=256)),es=l}return es}function L5(l){return l==null||typeof l=="symbol"||typeof l=="boolean"?null:typeof l=="function"?l:dm(""+l)}function z5(l,d){var g=d.ownerDocument.createElement("input");return g.name=d.name,g.value=d.value,l.id&&g.setAttribute("form",l.id),d.parentNode.insertBefore(g,d),l=new FormData(l),g.parentNode.removeChild(g),l}function fY(l,d,g,w,T){if(d==="submit"&&g&&g.stateNode===T){var R=L5((T[Da]||null).action),Q=w.submitter;Q&&(d=(d=Q[Da]||null)?L5(d.formAction):Q.getAttribute("formAction"),d!==null&&(R=d,Q=null));var le=new mm("action","action",null,w,T);l.push({event:le,listeners:[{instance:null,listener:function(){if(w.defaultPrevented){if(es!==0){var me=Q?z5(T,Q):new FormData(T);b0(g,{pending:!0,data:me,method:T.method,action:R},null,me)}}else typeof R=="function"&&(le.preventDefault(),me=Q?z5(T,Q):new FormData(T),b0(g,{pending:!0,data:me,method:T.method,action:R},R,me))},currentTarget:T}]})}}for(var t1=0;t1<Bb.length;t1++){var r1=Bb[t1],pY=r1.toLowerCase(),hY=r1[0].toUpperCase()+r1.slice(1);Hn(pY,"on"+hY)}Hn(gD,"onAnimationEnd"),Hn(xD,"onAnimationIteration"),Hn(vD,"onAnimationStart"),Hn("dblclick","onDoubleClick"),Hn("focusin","onFocus"),Hn("focusout","onBlur"),Hn(kX,"onTransitionRun"),Hn(DX,"onTransitionStart"),Hn(_X,"onTransitionCancel"),Hn(yD,"onTransitionEnd"),uc("onMouseEnter",["mouseout","mouseover"]),uc("onMouseLeave",["mouseout","mouseover"]),uc("onPointerEnter",["pointerout","pointerover"]),uc("onPointerLeave",["pointerout","pointerover"]),zs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),zs("onSelect","focusout contextmenu dragend focu
48sin keydown keyup mousedown mouseup selectionchange".split(" ")),zs("onBeforeInput",["compositionend","keypress","textInput","paste"]),zs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),zs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),zs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Af="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),mY=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Af));function F5(l,d){d=(d&4)!==0;for(var g=0;g<l.length;g++){var w=l[g],T=w.event;w=w.listeners;e:{var R=void 0;if(d)for(var Q=w.length-1;0<=Q;Q--){var le=w[Q],me=le.instance,Se=le.currentTarget;if(le=le.listener,me!==R&&T.isPropagationStopped())break e;R=le,T.currentTarget=Se;try{R(T)}catch(_e){vm(_e)}T.currentTarget=null,R=me}else for(Q=0;Q<w.length;Q++){if(le=w[Q],me=le.instance,Se=le.currentTarget,le=le.listener,me!==R&&T.isPropagationStopped())break e;R=le,T.currentTarget=Se;try{R(T)}catch(_e){vm(_e)}T.currentTarget=null,R=me}}}}function _t(l,d){var g=d[mb];g===void 0&&(g=d[mb]=new Set);var w=l+"__bubble";g.has(w)||($5(d,l,2,!1),g.add(w))}function a1(l,d,g){var w=0;d&&(w|=4),$5(g,l,w,d)}var ng="_reactListening"+Math.random().toString(36).slice(2);function n1(l){if(!l[ng]){l[ng]=!0,Ok.forEach(function(g){g!=="selectionchange"&&(mY.has(g)||a1(g,!1,l),a1(g,!0,l))});var d=l.nodeType===9?l:l.ownerDocument;d===null||d[ng]||(d[ng]=!0,a1("selectionchange",!1,d))}}function $5(l,d,g,w){switch(g4(d)){case 2:var T=VY;break;case 8:T=UY;break;default:T=y1}g=T.bind(null,d,g,l),T=void 0,!Ab||d!=="touchstart"&&d!=="touchmove"&&d!=="wheel"||(T=!0),w?T!==void 0?l.addEventListener(d,g,{capture:!0,passive:T}):l.addEventListener(d,g,!0):T!==void 0?l.addEventListener(d,g,{passive:T}):l.addEventListener(d,g,!1)}function i1(l,d,g,w,T){var R=w;if((d&1)===0&&(d&2)===0&&w!==null)e:for(;;){if(w===null)return;var Q=w.tag;if(Q===3||Q===4){var le=w.stateNode.containerInfo;if(le===T)break;if(Q===4)for(Q=w.return;Q!==null;){var me=Q.tag;if((me===3||me===4)&&Q.stateNode.containerInfo===T)return;Q=Q.return}for(;le!==null;){if(Q=sc(le),Q===null)return;if(me=Q.tag,me===5||me===6||me===26||me===27){w=R=Q;continue e}le=le.parentNode}}w=w.return}Gk(function(){var Se=R,_e=Sb(g),Le=[];e:{var Ae=bD.get(l);if(Ae!==void 0){var Te=mm,Ze=l;switch(l){case"keypress":if(pm(g)===0)break e;case"keydown":case"keyup":Te=lX;break;case"focusin":Ze="focus",Te=Nb;break;case"focusout":Ze="blur",Te=Nb;break;case"beforeblur":case"afterblur":Te=Nb;break;case"click":if(g.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Te=Xk;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Te=YW;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Te=dX;break;case gD:case xD:case vD:Te=QW;break;case yD:Te=pX;break;case"scroll":case"scrollend":Te=WW;break;case"wheel":Te=mX;break;case"copy":case"cut":case"paste":Te=tX;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Te=Zk;break;case"toggle":case"beforetoggle":Te=xX}var ut=(d&4)!==0,nr=!ut&&(l==="scroll"||l==="scrollend"),ye=ut?Ae!==null?Ae+"Capture":null:Ae;ut=[];for(var ve=Se,be;ve!==null;){var Be=ve;if(be=Be.stateNode,Be=Be.tag,Be!==5&&Be!==26&&Be!==27||be===null||ye===null||(Be=Hd(ve,ye),Be!=null&&ut.push(Cf(ve,Be,be))),nr)break;ve=ve.return}0<ut.length&&(Ae=new Te(Ae,Ze,null,g,_e),Le.push({event:Ae,listeners:ut}))}}if((d&7)===0){e:{if(Ae=l==="mouseover"||l==="pointerover",Te=l==="mouseout"||l==="pointerout",Ae&&g!==wb&&(Ze=g.relatedTarget||g.fromElement)&&(sc(Ze)||Ze[oc]))break e;if((Te||Ae)&&(Ae=_e.window===_e?_e:(Ae=_e.ownerDocument)?Ae.defaultView||Ae.parentWindow:window,Te?(Ze=g.relatedTarget||g.toElement,Te=Se,Ze=Ze?sc(Ze):null,Ze!==null&&(nr=i(Ze),ut=Ze.tag,Ze!==nr||ut!==5&&ut!==27&&ut!==6)&&(Ze=null)):(Te=null,Ze=Se),Te!==Ze)){if(ut=Xk,Be="onMouseLeave",ye="onMouseEnter",ve="mouse",(l==="pointerout"||l==="pointerover")&&(ut=Zk,Be="onPointerLeave",ye="onPointerEnter",ve="pointer"),nr=Te==null?Ae:Ud(Te),be=Ze==null?Ae:Ud(Ze),Ae=new ut(Be,ve+"leave",Te,g,_e),Ae.target=nr,Ae.relatedTarget=be,Be=null,sc(_e)===Se&&(ut=new ut(ye,ve+"enter",Ze,g,_e),ut.target=be,ut.relatedTarget=nr,Be=ut),nr=Be,Te&&Ze)t:{for(ut=gY,ye=Te,ve=Ze,be=0,Be=ye;Be;Be=ut(Be))be++;Be=0;for(var nt=ve;nt;nt=ut(nt))Be++;for(;0<be-Be;)ye=ut(ye),be--;for(;0<Be-be;)ve=ut(ve),Be--;for(;be--;){if(ye===ve||ve!==null&&ye===ve.alternate){ut=ye;break t}ye=ut(ye),ve=ut(ve)}ut=null}else ut=null;Te!==null&&q5(Le,Ae,Te,ut,!1),Ze!==null&&nr!==null&&q5(Le,nr,Ze,ut,!0)}}
vendor: 5,258 bytes, lines 48-49
48e:{if(Ae=Se?Ud(Se):window,Te=Ae.nodeName&&Ae.nodeName.toLowerCase(),Te==="select"||Te==="input"&&Ae.type==="file")var Vt=iD;else if(aD(Ae))if(oD)Vt=jX;else{Vt=CX;var tt=AX}else Te=Ae.nodeName,!Te||Te.toLowerCase()!=="input"||Ae.type!=="checkbox"&&Ae.type!=="radio"?Se&&bb(Se.elementType)&&(Vt=iD):Vt=PX;if(Vt&&(Vt=Vt(l,Se))){nD(Le,Vt,g,_e);break e}tt&&tt(l,Ae,Se),l==="focusout"&&Se&&Ae.type==="number"&&Se.memoizedProps.value!=null&&yb(Ae,"number",Ae.value)}switch(tt=Se?Ud(Se):window,l){case"focusin":(aD(tt)||tt.contentEditable==="true")&&(gc=tt,Ob=Se,Qd=null);break;case"focusout":Qd=Ob=gc=null;break;case"mousedown":Mb=!0;break;case"contextmenu":case"mouseup":case"dragend":Mb=!1,hD(Le,g,_e);break;case"selectionchange":if(TX)break;case"keydown":case"keyup":hD(Le,g,_e)}var At;if(kb)e:{switch(l){case"compositionstart":var Mt="onCompositionStart";break e;case"compositionend":Mt="onCompositionEnd";break e;case"compositionupdate":Mt="onCompositionUpdate";break e}Mt=void 0}else mc?tD(l,g)&&(Mt="onCompositionEnd"):l==="keydown"&&g.keyCode===229&&(Mt="onCompositionStart");Mt&&(Jk&&g.locale!=="ko"&&(mc||Mt!=="onCompositionStart"?Mt==="onCompositionEnd"&&mc&&(At=Kk()):(Lo=_e,Cb="value"in Lo?Lo.value:Lo.textContent,mc=!0)),tt=ig(Se,Mt),0<tt.length&&(Mt=new Yk(Mt,l,null,g,_e),Le.push({event:Mt,listeners:tt}),At?Mt.data=At:(At=rD(g),At!==null&&(Mt.data=At)))),(At=yX?bX(l,g):wX(l,g))&&(Mt=ig(Se,"onBeforeInput"),0<Mt.length&&(tt=new Yk("onBeforeInput","beforeinput",null,g,_e),Le.push({event:tt,listeners:Mt}),tt.data=At)),fY(Le,l,Se,g,_e)}F5(Le,d)})}function Cf(l,d,g){return{instance:l,listener:d,currentTarget:g}}function ig(l,d){for(var g=d+"Capture",w=[];l!==null;){var T=l,R=T.stateNode;if(T=T.tag,T!==5&&T!==26&&T!==27||R===null||(T=Hd(l,g),T!=null&&w.unshift(Cf(l,T,R)),T=Hd(l,d),T!=null&&w.push(Cf(l,T,R))),l.tag===3)return w;l=l.return}return[]}function gY(l){if(l===null)return null;do l=l.return;while(l&&l.tag!==5&&l.tag!==27);return l||null}function q5(l,d,g,w,T){for(var R=d._reactName,Q=[];g!==null&&g!==w;){var le=g,me=le.alternate,Se=le.stateNode;if(le=le.tag,me!==null&&me===w)break;le!==5&&le!==26&&le!==27||Se===null||(me=Se,T?(Se=Hd(g,R),Se!=null&&Q.unshift(Cf(g,Se,me))):T||(Se=Hd(g,R),Se!=null&&Q.push(Cf(g,Se,me)))),g=g.return}Q.length!==0&&l.push({event:d,listeners:Q})}var xY=/\r\n?/g,vY=/\u0000|\uFFFD/g;function V5(l){return(typeof l=="string"?l:""+l).replace(xY,` 49`).replace(vY,"")}function U5(l,d){return d=V5(d),V5(l)===d}function ar(l,d,g,w,T,R){switch(g){case"children":typeof w=="string"?d==="body"||d==="textarea"&&w===""||fc(l,w):(typeof w=="number"||typeof w=="bigint")&&d!=="body"&&fc(l,""+w);break;case"className":cm(l,"class",w);break;case"tabIndex":cm(l,"tabindex",w);break;case"dir":case"role":case"viewBox":case"width":case"height":cm(l,g,w);break;case"style":Uk(l,w,R);break;case"data":if(d!=="object"){cm(l,"data",w);break}case"src":case"href":if(w===""&&(d!=="a"||g!=="href")){l.removeAttribute(g);break}if(w==null||typeof w=="function"||typeof w=="symbol"||typeof w=="boolean"){l.removeAttribute(g);break}w=dm(""+w),l.setAttribute(g,w);break;case"action":case"formAction":if(typeof w=="function"){l.setAttribute(g,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof R=="function"&&(g==="formAction"?(d!=="input"&&ar(l,d,"name",T.name,T,null),ar(l,d,"formEncType",T.formEncType,T,null),ar(l,d,"formMethod",T.formMethod,T,null),ar(l,d,"formTarget",T.formTarget,T,null)):(ar(l,d,"encType",T.encType,T,null),ar(l,d,"method",T.method,T,null),ar(l,d,"target",T.target,T,null)));if(w==null||typeof w=="symbol"||typeof w=="boolean"){l.removeAttribute(g);break}w=dm(""+w),l.setAttribute(g,w);break;case"onClick":w!=null&&(l.onclick=$i);break;case"onScroll":w!=null&&_t("scroll",l);break;case"onScrollEnd":w!=null&&_t("scrollend",l);break;case"dangerouslySetInnerHTML":if(w!=null){if(typeof w!="object"||!("__html"in w))throw Error(a(61));if(g=w.__html,g!=null){if(T.children!=null)throw Error(a(60));l.innerHTML=g}}break;case"multiple":l.multiple=w&&typeof w!="function"&&typeof w!="symbol";break;case"muted":l.muted=w&&typeof w!="function"&&typeof w!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(w==null||typeof w=="function"||typeof w=="boolean"||typeof w=="symbol"){l.removeAttribute("xlink:href");break}g=dm(""+w),l.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",g);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":w!=null&&typeof w!="function"&&typeof w!="symbol"?l.setAttribute(g,""+w):l.removeAttribute(g);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
49ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":w&&typeof w!="function"&&typeof w!="symbol"?l.setAttribute(g,""):l.removeAttribute(g);break;case"capture":case"download":w===!0?l.setAttribute(g,""):w!==!1&&w!=null&&typeof w!="function"&&typeof w!="symbol"?l.setAttribute(g,w):l.removeAttribute(g);break;case"cols":case"rows":case"size":case"span":w!=null&&typeof w!="function"&&typeof w!="symbol"&&!isNaN(w)&&1<=w?l.setAttribute(g,w):l.removeAttribute(g);break;case"rowSpan":case"start":w==null||typeof w=="function"||typeof w=="symbol"||isNaN(w)?l.removeAttribute(g):l.setAttribute(g,w);break;case"popover":_t("beforetoggle",l),_t("toggle",l),lm(l,"popover",w);break;case"xlinkActuate":Fi(l,"http://www.w3.org/1999/xlink","xlink:actuate",w);break;case"xlinkArcrole":Fi(l,"http://www.w3.org/1999/xlink","xlink:arcrole",w);break;case"xlinkRole":Fi(l,"http://www.w3.org/1999/xlink","xlink:role",w);break;case"xlinkShow":Fi(l,"http://www.w3.org/1999/xlink","xlink:show",w);break;case"xlinkTitle":Fi(l,"http://www.w3.org/1999/xlink","xlink:title",w);break;case"xlinkType":Fi(l,"http://www.w3.org/1999/xlink","xlink:type",w);break;case"xmlBase":Fi(l,"http://www.w3.org/XML/1998/namespace","xml:base",w);break;case"xmlLang":Fi(l,"http://www.w3.org/XML/1998/namespace","xml:lang",w);break;case"xmlSpace":Fi(l,"http://www.w3.org/XML/1998/namespace","xml:space",w);break;case"is":lm(l,"is",w);break;case"innerText":case"textContent":break;default:(!(2<g.length)||g[0]!=="o"&&g[0]!=="O"||g[1]!=="n"&&g[1]!=="N")&&(g=GW.get(g)||g,lm(l,g,w))}}function o1(l,d,g,w,T,R){switch(g){case"style":Uk(l,w,R);break;case"dangerouslySetInnerHTML":if(w!=null){if(typeof w!="object"||!("__html"in w))throw Error(a(61));if(g=w.__html,g!=null){if(T.children!=null)throw Error(a(60));l.innerHTML=g}}break;case"children":typeof w=="string"?fc(l,w):(typeof w=="number"||typeof w=="bigint")&&fc(l,""+w);break;case"onScroll":w!=null&&_t("scroll",l);break;case"onScrollEnd":w!=null&&_t("scrollend",l);break;case"onClick":w!=null&&(l.onclick=$i);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Mk.hasOwnProperty(g))e:{if(g[0]==="o"&&g[1]==="n"&&(T=g.endsWith("Capture"),d=g.slice(2,T?g.length-7:void 0),R=l[Da]||null,R=R!=null?R[g]:null,typeof R=="function"&&l.removeEventListener(d,R,T),typeof w=="function")){typeof R!="function"&&R!==null&&(g in l?l[g]=null:l.hasAttribute(g)&&l.removeAttribute(g)),l.addEventListener(d,w,T);break e}g in l?l[g]=w:w===!0?l.setAttribute(g,""):lm(l,g,w)}}}function la(l,d,g){switch(d){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_t("error",l),_t("load",l);var w=!1,T=!1,R;for(R in g)if(g.hasOwnProperty(R)){var Q=g[R];if(Q!=null)switch(R){case"src":w=!0;break;case"srcSet":T=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,d));default:ar(l,d,R,Q,g,null)}}T&&ar(l,d,"srcSet",g.srcSet,g,null),w&&ar(l,d,"src",g.src,g,null);return;case"input":_t("invalid",l);var le=R=Q=T=null,me=null,Se=null;for(w in g)if(g.hasOwnProperty(w)){var _e=g[w];if(_e!=null)switch(w){case"name":T=_e;break;case"type":Q=_e;break;case"checked":me=_e;break;case"defaultChecked":Se=_e;break;case"value":R=_e;break;case"defaultValue":le=_e;break;case"children":case"dangerouslySetInnerHTML":if(_e!=null)throw Error(a(137,d));break;default:ar(l,d,w,_e,g,null)}}Fk(l,R,le,me,Se,Q,T,!1);return;case"select":_t("invalid",l),w=Q=R=null;for(T in g)if(g.hasOwnProperty(T)&&(le=g[T],le!=null))switch(T){case"value":R=le;break;case"defaultValue":Q=le;break;case"multiple":w=le;default:ar(l,d,T,le,g,null)}d=R,g=Q,l.multiple=!!w,d!=null?dc(l,!!w,d,!1):g!=null&&dc(l,!!w,g,!0);return;case"textarea":_t("invalid",l),R=T=w=null;for(Q in g)if(g.hasOwnProperty(Q)&&(le=g[Q],le!=null))switch(Q){case"value":w=le;break;case"defaultValue":T=le;break;case"children":R=le;break;case"dangerouslySetInnerHTML":if(le!=null)throw Error(a(91));break;default:ar(l,d,Q,le,g,null)}qk(l,w,T,R);return;case"option":for(me in g)if(g.hasOwnProperty(me)&&(w=g[me],w!=null))switch(me){case"selected":l.selected=w&&typeof w!="function"&&typeof w!="symbol";break;default:ar(l,d,me,w,g,null)}return;case"dialog":_t("beforetoggle",l),_t("toggle",l),_t("cancel",l),_t("close",l);break;case"iframe":case"object":_t("load",l);break;case"video":case"audio":for(w=0;w<Af.length;w++)_t(Af[w],l);break;case"image":_t("error",l),_t("load",l);break;case"details":_t("toggle",l);break;case"embed":case"source":case"link":_t("error",l),_t("load",l);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Se in g)if(g.hasOwnProperty(Se)&&(w=g[Se],w!=null))switch(Se){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,d));default:ar(l,d,Se,w,g,null)}return;default:if(bb(d)){for(_e in g)g.hasOwnProperty(_e)&&(w=g[_e],w!==void 0&&o1(l,d,_e,w,g,void 0));return}}for(le in g)g.hasOwnProperty(le)&&(w=g[le],w!=null&&ar(l,d,le,w,g,null))}function yY(l,d,g,w){switch(d){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var T=null,R=null,Q=null,le=null,me=null,Se=null,_e=null;for(Te in g){var Le=g[Te];if(g.hasOwnProperty(Te)&&Le!=null)switch(Te){case"checked":break;case"value":break;case"defaultValue":me=Le;default:w.hasOwnProperty(Te)||ar(l,d,Te,null,w,Le)}}for(var Ae in w){var Te=w[Ae];if(Le=g[Ae],w.hasOwnProperty(Ae)&&(Te!=null||Le!=null))switch(Ae){case"type":R=Te;break;case"name":T=Te;break;case"checked":Se=Te;break;case"defaultChecked":_e=Te;break;case"value":Q=Te;break;case"defaultValue":le=Te;break;case"children":case"dangerouslySetInnerHTML":if(Te!=null)throw Error(a(137,d));break;default:Te!==Le&&ar(l,d,Ae,Te,w,Le)}}vb(l,Q,le,me,Se,_e,R,T);return;case"select":Te=Q=le=Ae=null;for(R in g)if(me=g[R],g.hasOwnProperty(R)&&me!=null)switch(R){case"value":break;case"multiple":Te=me;default:w.hasOwnProperty(R)||ar(l,d,R,null,w,me)}for(T in w)if(R=w[T],me=g[T],w.hasOwnProperty(T)&&(R!=null||me!=null))switch(T){case"value":Ae=R;break;case"defaultValue":le=R;break;case"multiple":Q=R;default:R!==me&&ar(l,d,T,R,w,me)}d=le,g=Q,w=Te,Ae!=null?dc(l,!!g,Ae,!1):!!w!=!!g&&(d!=null?dc(l,!!g,d,!0):dc(l,!!g,g?[]:"",!1));return;case"textarea":Te=Ae=null;for(le in g)if(T=g[le],g.hasOwnProperty(le)&&T!=null&&!w.hasOwnProperty(le))switch(le){case"value":break;case"children":break;default:ar(l,d,le,null,w,T)}for(Q in w)if(T=w[Q],R=g[Q],w.hasOwnProperty(Q)&&(T!=null||R!=null))switch(Q){case"value":Ae=T;break;case"defaultValue":Te=T;break;case"children":break;case"dangerouslySetInnerHTML":if(T!=null)throw Error(a(91));break;default:T!==R&&ar(l,d,Q,T,w,R)}$k(l,Ae,Te);return;case"option":for(var Ze in g)if(Ae=g[Ze],g.hasOwnProperty(Ze)&&Ae!=null&&!w.hasOwnProperty(Ze))switch(Ze){case"selected":l.selected=!1;break;default:ar(l,d,Ze,null,w,Ae)}
vendor: 6,216 bytes, line 49
49for(me in w)if(Ae=w[me],Te=g[me],w.hasOwnProperty(me)&&Ae!==Te&&(Ae!=null||Te!=null))switch(me){case"selected":l.selected=Ae&&typeof Ae!="function"&&typeof Ae!="symbol";break;default:ar(l,d,me,Ae,w,Te)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ut in g)Ae=g[ut],g.hasOwnProperty(ut)&&Ae!=null&&!w.hasOwnProperty(ut)&&ar(l,d,ut,null,w,Ae);for(Se in w)if(Ae=w[Se],Te=g[Se],w.hasOwnProperty(Se)&&Ae!==Te&&(Ae!=null||Te!=null))switch(Se){case"children":case"dangerouslySetInnerHTML":if(Ae!=null)throw Error(a(137,d));break;default:ar(l,d,Se,Ae,w,Te)}return;default:if(bb(d)){for(var nr in g)Ae=g[nr],g.hasOwnProperty(nr)&&Ae!==void 0&&!w.hasOwnProperty(nr)&&o1(l,d,nr,void 0,w,Ae);for(_e in w)Ae=w[_e],Te=g[_e],!w.hasOwnProperty(_e)||Ae===Te||Ae===void 0&&Te===void 0||o1(l,d,_e,Ae,w,Te);return}}for(var ye in g)Ae=g[ye],g.hasOwnProperty(ye)&&Ae!=null&&!w.hasOwnProperty(ye)&&ar(l,d,ye,null,w,Ae);for(Le in w)Ae=w[Le],Te=g[Le],!w.hasOwnProperty(Le)||Ae===Te||Ae==null&&Te==null||ar(l,d,Le,Ae,w,Te)}function H5(l){switch(l){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function bY(){if(typeof performance.getEntriesByType=="function"){for(var l=0,d=0,g=performance.getEntriesByType("resource"),w=0;w<g.length;w++){var T=g[w],R=T.transferSize,Q=T.initiatorType,le=T.duration;if(R&&le&&H5(Q)){for(Q=0,le=T.responseEnd,w+=1;w<g.length;w++){var me=g[w],Se=me.startTime;if(Se>le)break;var _e=me.transferSize,Le=me.initiatorType;_e&&H5(Le)&&(me=me.responseEnd,Q+=_e*(me<le?1:(le-Se)/(me-Se)))}if(--w,d+=8*(R+Q)/(T.duration/1e3),l++,10<l)break}}if(0<l)return d/l/1e6}return navigator.connection&&(l=navigator.connection.downlink,typeof l=="number")?l:5}var s1=null,l1=null;function og(l){return l.nodeType===9?l:l.ownerDocument}function G5(l){switch(l){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function K5(l,d){if(l===0)switch(d){case"svg":return 1;case"math":return 2;default:return 0}return l===1&&d==="foreignObject"?0:l}function c1(l,d){return l==="textarea"||l==="noscript"||typeof d.children=="string"||typeof d.children=="number"||typeof d.children=="bigint"||typeof d.dangerouslySetInnerHTML=="object"&&d.dangerouslySetInnerHTML!==null&&d.dangerouslySetInnerHTML.__html!=null}var u1=null;function wY(){var l=window.event;return l&&l.type==="popstate"?l===u1?!1:(u1=l,!0):(u1=null,!1)}var W5=typeof setTimeout=="function"?setTimeout:void 0,SY=typeof clearTimeout=="function"?clearTimeout:void 0,X5=typeof Promise=="function"?Promise:void 0,EY=typeof queueMicrotask=="function"?queueMicrotask:typeof X5<"u"?function(l){return X5.resolve(null).then(l).catch(AY)}:W5;function AY(l){setTimeout(function(){throw l})}function ts(l){return l==="head"}function Y5(l,d){var g=d,w=0;do{var T=g.nextSibling;if(l.removeChild(g),T&&T.nodeType===8)if(g=T.data,g==="/$"||g==="/&"){if(w===0){l.removeChild(T),Vc(d);return}w--}else if(g==="$"||g==="$?"||g==="$~"||g==="$!"||g==="&")w++;else if(g==="html")Pf(l.ownerDocument.documentElement);else if(g==="head"){g=l.ownerDocument.head,Pf(g);for(var R=g.firstChild;R;){var Q=R.nextSibling,le=R.nodeName;R[Vd]||le==="SCRIPT"||le==="STYLE"||le==="LINK"&&R.rel.toLowerCase()==="stylesheet"||g.removeChild(R),R=Q}}else g==="body"&&Pf(l.ownerDocument.body);g=T}while(g);Vc(d)}function Z5(l,d){var g=l;l=0;do{var w=g.nextSibling;if(g.nodeType===1?d?(g._stashedDisplay=g.style.display,g.style.display="none"):(g.style.display=g._stashedDisplay||"",g.getAttribute("style")===""&&g.removeAttribute("style")):g.nodeType===3&&(d?(g._stashedText=g.nodeValue,g.nodeValue=""):g.nodeValue=g._stashedText||""),w&&w.nodeType===8)if(g=w.data,g==="/$"){if(l===0)break;l--}else g!=="$"&&g!=="$?"&&g!=="$~"&&g!=="$!"||l++;g=w}while(g)}function d1(l){var d=l.firstChild;for(d&&d.nodeType===10&&(d=d.nextSibling);d;){var g=d;switch(d=d.nextSibling,g.nodeName){case"HTML":case"HEAD":case"BODY":d1(g),gb(g);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(g.rel.toLowerCase()==="stylesheet")continue}l.removeChild(g)}}function CY(l,d,g,w){for(;l.nodeType===1;){var T=g;if(l.nodeName.toLowerCase()!==d.toLowerCase()){if(!w&&(l.nodeName!=="INPUT"||l.type!=="hidden"))break}else if(w){if(!l[Vd])switch(d){case"meta":if(!l.hasAttribute("itemprop"))break;return l;case"link":if(R=l.getAttribute("rel"),R==="stylesheet"&&l.hasAttribute("data-precedence"))break;if(R!==T.rel||l.getAttribute("href")!==(T.href==null||T.href===""?null:T.href)||l.getAttribute("crossorigin")!==(T.crossOrigin==null?null:T.crossOrigin)||l.getAttribute("title")!==(T.title==null?null:T.title))break;return l;case"style":if(l.hasAttribute("data-precedence"))break;return l;case"script":if(R=l.getAttribute("src"),(R!==(T.src==null?null:T.src)||l.getAttribute("type")!==(T.type==null?null:T.type)||l.getAttribute("crossorigin")!==(T.crossOrigin==null?null:T.crossOrigin))&&R&&l.hasAttribute("async")&&!l.hasAttribute("itemprop"))break;return l;default:return l}}else if(d==="input"&&l.type==="hidden"){var R=T.name==null?null:""+T.name;if(T.type==="hidden"&&l.getAttribute("name")===R)return l}else return l;if(l=Tn(l.nextSibling),l===null)break}return null}function PY(l,d,g){if(d==="")return null;for(;l.nodeType!==3;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!g||(l=Tn(l.nextSibling),l===null))return null;return l}function J5(l,d){for(;l.nodeType!==8;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!d||(l=Tn(l.nextSibling),l===null))return null;return l}function f1(l){return l.data==="$?"||l.data==="$~"}function p1(l){return l.data==="$!"||l.data==="$?"&&l.ownerDocument.readyState!=="loading"}function jY(l,d){var g=l.ownerDocument;if(l.data==="$~")l._reactRetry=d;else if(l.data!=="$?"||g.readyState!=="loading")d();else{var w=function(){d(),g.removeEventListener("DOMContentLoaded",w)};g.addEventListener("DOMContentLoaded",w),l._reactRetry=w}}function Tn(l){for(;l!=null;l=l.nextSibling){var d=l.nodeType;if(d===1||d===3)break;if(d===8){if(d=l.data,d==="$"||d==="$!"||d==="$?"||d==="$~"||d==="&"||d==="F!"||d==="F")break;
vendor: 9,697 bytes, line 49
49if(d==="/$"||d==="/&")return null}}return l}var h1=null;function Q5(l){l=l.nextSibling;for(var d=0;l;){if(l.nodeType===8){var g=l.data;if(g==="/$"||g==="/&"){if(d===0)return Tn(l.nextSibling);d--}else g!=="$"&&g!=="$!"&&g!=="$?"&&g!=="$~"&&g!=="&"||d++}l=l.nextSibling}return null}function e4(l){l=l.previousSibling;for(var d=0;l;){if(l.nodeType===8){var g=l.data;if(g==="$"||g==="$!"||g==="$?"||g==="$~"||g==="&"){if(d===0)return l;d--}else g!=="/$"&&g!=="/&"||d++}l=l.previousSibling}return null}function t4(l,d,g){switch(d=og(g),l){case"html":if(l=d.documentElement,!l)throw Error(a(452));return l;case"head":if(l=d.head,!l)throw Error(a(453));return l;case"body":if(l=d.body,!l)throw Error(a(454));return l;default:throw Error(a(451))}}function Pf(l){for(var d=l.attributes;d.length;)l.removeAttributeNode(d[0]);gb(l)}var kn=new Map,r4=new Set;function sg(l){return typeof l.getRootNode=="function"?l.getRootNode():l.nodeType===9?l:l.ownerDocument}var ao=V.d;V.d={f:NY,r:TY,D:kY,C:DY,L:_Y,m:RY,X:MY,S:OY,M:IY};function NY(){var l=ao.f(),d=Jm();return l||d}function TY(l){var d=lc(l);d!==null&&d.tag===5&&d.type==="form"?y_(d):ao.r(l)}var Fc=typeof document>"u"?null:document;function a4(l,d,g){var w=Fc;if(w&&typeof d=="string"&&d){var T=Sn(d);T='link[rel="'+l+'"][href="'+T+'"]',typeof g=="string"&&(T+='[crossorigin="'+g+'"]'),r4.has(T)||(r4.add(T),l={rel:l,crossOrigin:g,href:d},w.querySelector(T)===null&&(d=w.createElement("link"),la(d,"link",l),Yr(d),w.head.appendChild(d)))}}function kY(l){ao.D(l),a4("dns-prefetch",l,null)}function DY(l,d){ao.C(l,d),a4("preconnect",l,d)}function _Y(l,d,g){ao.L(l,d,g);var w=Fc;if(w&&l&&d){var T='link[rel="preload"][as="'+Sn(d)+'"]';d==="image"&&g&&g.imageSrcSet?(T+='[imagesrcset="'+Sn(g.imageSrcSet)+'"]',typeof g.imageSizes=="string"&&(T+='[imagesizes="'+Sn(g.imageSizes)+'"]')):T+='[href="'+Sn(l)+'"]';var R=T;switch(d){case"style":R=$c(l);break;case"script":R=qc(l)}kn.has(R)||(l=f({rel:"preload",href:d==="image"&&g&&g.imageSrcSet?void 0:l,as:d},g),kn.set(R,l),w.querySelector(T)!==null||d==="style"&&w.querySelector(jf(R))||d==="script"&&w.querySelector(Nf(R))||(d=w.createElement("link"),la(d,"link",l),Yr(d),w.head.appendChild(d)))}}function RY(l,d){ao.m(l,d);var g=Fc;if(g&&l){var w=d&&typeof d.as=="string"?d.as:"script",T='link[rel="modulepreload"][as="'+Sn(w)+'"][href="'+Sn(l)+'"]',R=T;switch(w){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":R=qc(l)}if(!kn.has(R)&&(l=f({rel:"modulepreload",href:l},d),kn.set(R,l),g.querySelector(T)===null)){switch(w){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(g.querySelector(Nf(R)))return}w=g.createElement("link"),la(w,"link",l),Yr(w),g.head.appendChild(w)}}}function OY(l,d,g){ao.S(l,d,g);var w=Fc;if(w&&l){var T=cc(w).hoistableStyles,R=$c(l);d=d||"default";var Q=T.get(R);if(!Q){var le={loading:0,preload:null};if(Q=w.querySelector(jf(R)))le.loading=5;else{l=f({rel:"stylesheet",href:l,"data-precedence":d},g),(g=kn.get(R))&&m1(l,g);var me=Q=w.createElement("link");Yr(me),la(me,"link",l),me._p=new Promise(function(Se,_e){me.onload=Se,me.onerror=_e}),me.addEventListener("load",function(){le.loading|=1}),me.addEventListener("error",function(){le.loading|=2}),le.loading|=4,lg(Q,d,w)}Q={type:"stylesheet",instance:Q,count:1,state:le},T.set(R,Q)}}}function MY(l,d){ao.X(l,d);var g=Fc;if(g&&l){var w=cc(g).hoistableScripts,T=qc(l),R=w.get(T);R||(R=g.querySelector(Nf(T)),R||(l=f({src:l,async:!0},d),(d=kn.get(T))&&g1(l,d),R=g.createElement("script"),Yr(R),la(R,"link",l),g.head.appendChild(R)),R={type:"script",instance:R,count:1,state:null},w.set(T,R))}}function IY(l,d){ao.M(l,d);var g=Fc;if(g&&l){var w=cc(g).hoistableScripts,T=qc(l),R=w.get(T);R||(R=g.querySelector(Nf(T)),R||(l=f({src:l,async:!0,type:"module"},d),(d=kn.get(T))&&g1(l,d),R=g.createElement("script"),Yr(R),la(R,"link",l),g.head.appendChild(R)),R={type:"script",instance:R,count:1,state:null},w.set(T,R))}}function n4(l,d,g,w){var T=(T=he.current)?sg(T):null;if(!T)throw Error(a(446));switch(l){case"meta":case"title":return null;case"style":return typeof g.precedence=="string"&&typeof g.href=="string"?(d=$c(g.href),g=cc(T).hoistableStyles,w=g.get(d),w||(w={type:"style",instance:null,count:0,state:null},g.set(d,w)),w):{type:"void",instance:null,count:0,state:null};case"link":if(g.rel==="stylesheet"&&typeof g.href=="string"&&typeof g.precedence=="string"){l=$c(g.href);var R=cc(T).hoistableStyles,Q=R.get(l);if(Q||(T=T.ownerDocument||T,Q={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},R.set(l,Q),(R=T.querySelector(jf(l)))&&!R._p&&(Q.instance=R,Q.state.loading=5),kn.has(l)||(g={rel:"preload",as:"style",href:g.href,crossOrigin:g.crossOrigin,integrity:g.integrity,media:g.media,hrefLang:g.hrefLang,referrerPolicy:g.referrerPolicy},kn.set(l,g),R||BY(T,l,g,Q.state))),d&&w===null)throw Error(a(528,""));return Q}if(d&&w!==null)throw Error(a(529,""));return null;case"script":return d=g.async,g=g.src,typeof g=="string"&&d&&typeof d!="function"&&typeof d!="symbol"?(d=qc(g),g=cc(T).hoistableScripts,w=g.get(d),w||(w={type:"script",instance:null,count:0,state:null},g.set(d,w)),w):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,l))}}function $c(l){return'href="'+Sn(l)+'"'}function jf(l){return'link[rel="stylesheet"]['+l+"]"}function i4(l){return f({},l,{"data-precedence":l.precedence,precedence:null})}function BY(l,d,g,w){l.querySelector('link[rel="preload"][as="style"]['+d+"]")?w.loading=1:(d=l.createElement("link"),w.preload=d,d.addEventListener("load",function(){return w.loading|=1}),d.addEventListener("error",function(){return w.loading|=2}),la(d,"link",g),Yr(d),l.head.appendChild(d))}function qc(l){return'[src="'+Sn(l)+'"]'}function Nf(l){return"script[async]"+l}function o4(l,d,g){if(d.count++,d.instance===null)switch(d.type){case"style":var w=l.querySelector('style[data-href~="'+Sn(g.href)+'"]');if(w)return d.instance=w,Yr(w),w;var T=f({},g,{"data-href":g.href,"data-precedence":g.precedence,href:null,precedence:null});return w=(l.ownerDocument||l).createElement("style"),Yr(w),la(w,"style",T),lg(w,g.precedence,l),d.instance=w;case"stylesheet":T=$c(g.href);var R=l.querySelector(jf(T));if(R)return d.state.loading|=4,d.instance=R,Yr(R),R;w=i4(g),(T=kn.get(T))&&m1(w,T),R=(l.ownerDocument||l).createElement("link"),Yr(R);var Q=R;return Q._p=new Promise(function(le,me){Q.onload=le,Q.onerror=me}),la(R,"link",w),d.state.loading|=4,lg(R,g.precedence,l),d.instance=R;case"script":return R=qc(g.src),(T=l.querySelector(Nf(R)))?(d.instance=T,Yr(T),T):(w=g,(T=kn.get(R))&&(w=f({},g),g1(w,T)),l=l.ownerDocument||l,T=l.createElement("script"),Yr(T),la(T,"link",w),l.head.appendChild(T),d.instance=T);case"void":return null;default:throw Error(a(443,d.type))}else d.type==="stylesheet"&&(d.state.loading&4)===0&&(w=d.instance,d.state.loading|=4,lg(w,g.precedence,l));return d.instance}function lg(l,d,g){for(var w=g.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),T=w.length?w[w.length-1]:null,R=T,Q=0;Q<w.length;Q++){var le=w[Q];if(le.dataset.precedence===d)R=le;else if(R!==T)break}R?R.parentNode.insertBefore(l,R.nextSibling):(d=g.nodeType===9?g.head:g,d.insertBefore(l,d.firstChild))}function m1(l,d){l.crossOrigin==null&&(l.crossOrigin=d.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=d.referrerPolicy),l.title==null&&(l.title=d.title)}function g1(l,d){l.crossOrigin==null&&(l.crossOrigin=d.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=d.referrerPolicy),l.integrity==null&&(l.integrity=d.integrity)}var cg=null;function s4(l,d,g){if(cg===null){var w=new Map,T=cg=new Map;T.set(g,w)}else T=cg,w=T.get(g),w||(w=new Map,T.set(g,w));if(w.has(l))return w;for(w.set(l,null),g=g.getElementsByTagName(l),T=0;T<g.length;T++){var R=g[T];if(!(R[Vd]||R[na]||l==="link"&&R.getAttribute("rel")==="stylesheet")&&R.namespaceURI!=="http://www.w3.org/2000/svg"){var Q=R.getAttribute(d)||"";Q=l+Q;var le=w.get(Q);le?le.push(R):w.set(Q,[R])}}return w}function l4(l,d,g){l=l.ownerDocument||l,l.head.insertBefore(g,d==="title"?l.querySelector("head > title"):null)}function LY(l,d,g){if(g===1||d.itemProp!=null)return!1;switch(l){case"meta":case"title":return!0;case"style":if(typeof d.precedence!="string"||typeof d.href!="string"||d.href==="")break;return!0;case"link":if(typeof d.rel!="string"||typeof d.href!="string"||d.href===""||d.onLoad||d.onError)break;switch(d.rel){case"stylesheet":return l=d.disabled,typeof d.precedence=="string"&&l==null;default:return!0}case"script":if(d.async&&typeof d.async!="function"&&typeof d.async!="symbol"&&!d.onLoad&&!d.onError&&d.src&&typeof d.src=="string")return!0}return!1}function c4(l){return!(l.type==="stylesheet"&&(l.state.loading&3)===0)}function zY(l,d,g,w){if(g.type==="stylesheet"&&(typeof w.media!="string"||matchMedia(w.media).matches!==!1)&&(g.state.loading&4)===0){if(g.instance===null){var T=$c(w.href),R=d.querySelector(jf(T));if(R){d=R._p,d!==null&&typeof d=="object"&&typeof d.then=="function"&&(l.count++,l=ug.bind(l),d.then(l,l)),g.state.loading|=4,g.instance=R,Yr(R);return}R=d.ownerDocument||d,w=i4(w),(T=kn.get(T))&&m1(w,T),R=R.createElement("link"),Yr(R);var Q=R;Q._p=new Promise(function(le,me){Q.onload=le,Q.onerror=me}),la(R,"link",w),g.instance=R}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(g,d),(d=g.state.preload)&&(g.state.loading&3)===0&&(l.count++,g=ug.bind(l),d.addEventListener("load",g),d.addEventListener("error",g))}}var x1=0;function FY(l,d){return l.stylesheets&&l.count===0&&fg(l,l.stylesheets),0<l.count||0<l.imgCount?function(g){var w=setTimeout(function(){if(l.stylesheets&&fg(l,l.stylesheets),l.unsu
vendor: 2,127 bytes, line 49
49spend){var R=l.unsuspend;l.unsuspend=null,R()}},6e4+d);0<l.imgBytes&&x1===0&&(x1=62500*bY());var T=setTimeout(function(){if(l.waitingForImages=!1,l.count===0&&(l.stylesheets&&fg(l,l.stylesheets),l.unsuspend)){var R=l.unsuspend;l.unsuspend=null,R()}},(l.imgBytes>x1?50:800)+d);return l.unsuspend=g,function(){l.unsuspend=null,clearTimeout(w),clearTimeout(T)}}:null}function ug(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)fg(this,this.stylesheets);else if(this.unsuspend){var l=this.unsuspend;this.unsuspend=null,l()}}}var dg=null;function fg(l,d){l.stylesheets=null,l.unsuspend!==null&&(l.count++,dg=new Map,d.forEach($Y,l),dg=null,ug.call(l))}function $Y(l,d){if(!(d.state.loading&4)){var g=dg.get(l);if(g)var w=g.get(null);else{g=new Map,dg.set(l,g);for(var T=l.querySelectorAll("link[data-precedence],style[data-precedence]"),R=0;R<T.length;R++){var Q=T[R];(Q.nodeName==="LINK"||Q.getAttribute("media")!=="not all")&&(g.set(Q.dataset.precedence,Q),w=Q)}w&&g.set(null,w)}T=d.instance,Q=T.getAttribute("data-precedence"),R=g.get(Q)||w,R===w&&g.set(null,T),g.set(Q,T),this.count++,w=ug.bind(this),T.addEventListener("load",w),T.addEventListener("error",w),R?R.parentNode.insertBefore(T,R.nextSibling):(l=l.nodeType===9?l.head:l,l.insertBefore(T,l.firstChild)),d.state.loading|=4}}var Tf={$$typeof:E,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function qY(l,d,g,w,T,R,Q,le,me){this.tag=1,this.containerInfo=l,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ot(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ot(0),this.hiddenUpdates=ot(null),this.identifierPrefix=w,this.onUncaughtError=T,this.onCaughtError=R,this.onRecoverableError=Q,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=me,this.incompleteTransitions=new Map}
vendor: 8,427 bytes, line 49
49function u4(l,d,g,w,T,R,Q,le,me,Se,_e,Le){return l=new qY(l,d,g,Q,me,Se,_e,Le,le),d=1,R===!0&&(d|=24),R=Ya(3,null,null,d),l.current=R,R.stateNode=l,d=Yb(),d.refCount++,l.pooledCache=d,d.refCount++,R.memoizedState={element:w,isDehydrated:g,cache:d},e0(R),l}function d4(l){return l?(l=yc,l):yc}function f4(l,d,g,w,T,R){T=d4(T),w.context===null?w.context=T:w.pendingContext=T,w=Uo(d),w.payload={element:g},R=R===void 0?null:R,R!==null&&(w.callback=R),g=Ho(l,w,d),g!==null&&(Ba(g,l,d),sf(g,l,d))}function p4(l,d){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var g=l.retryLane;l.retryLane=g!==0&&g<d?g:d}}function v1(l,d){p4(l,d),(l=l.alternate)&&p4(l,d)}function h4(l){if(l.tag===13||l.tag===31){var d=Vs(l,67108864);d!==null&&Ba(d,l,67108864),v1(l,67108864)}}function m4(l){if(l.tag===13||l.tag===31){var d=tn();d=vn(d);var g=Vs(l,d);g!==null&&Ba(g,l,d),v1(l,d)}}var pg=!0;function VY(l,d,g,w){var T=z.T;z.T=null;var R=V.p;try{V.p=2,y1(l,d,g,w)}finally{V.p=R,z.T=T}}function UY(l,d,g,w){var T=z.T;z.T=null;var R=V.p;try{V.p=8,y1(l,d,g,w)}finally{V.p=R,z.T=T}}function y1(l,d,g,w){if(pg){var T=b1(w);if(T===null)i1(l,d,w,hg,g),x4(l,w);else if(GY(T,l,d,g,w))w.stopPropagation();else if(x4(l,w),d&4&&-1<HY.indexOf(l)){for(;T!==null;){var R=lc(T);if(R!==null)switch(R.tag){case 3:if(R=R.stateNode,R.current.memoizedState.isDehydrated){var Q=Lt(R.pendingLanes);if(Q!==0){var le=R;for(le.pendingLanes|=2,le.entangledLanes|=2;Q;){var me=1<<31-Ie(Q);le.entanglements[1]|=me,Q&=~me}pi(R),(Kt&6)===0&&(Ym=Ne()+500,Ef(0))}}break;case 31:case 13:le=Vs(R,2),le!==null&&Ba(le,R,2),Jm(),v1(R,2)}if(R=b1(w),R===null&&i1(l,d,w,hg,g),R===T)break;T=R}T!==null&&w.stopPropagation()}else i1(l,d,w,null,g)}}function b1(l){return l=Sb(l),w1(l)}var hg=null;function w1(l){if(hg=null,l=sc(l),l!==null){var d=i(l);if(d===null)l=null;else{var g=d.tag;if(g===13){if(l=o(d),l!==null)return l;l=null}else if(g===31){if(l=s(d),l!==null)return l;l=null}else if(g===3){if(d.stateNode.current.memoizedState.isDehydrated)return d.tag===3?d.stateNode.containerInfo:null;l=null}else d!==l&&(l=null)}}return hg=l,null}function g4(l){switch(l){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(De()){case xe:return 2;case Ee:return 8;case ze:case We:return 32;case it:return 268435456;default:return 32}default:return 32}}var S1=!1,rs=null,as=null,ns=null,kf=new Map,Df=new Map,is=[],HY="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function x4(l,d){switch(l){case"focusin":case"focusout":rs=null;break;case"dragenter":case"dragleave":as=null;break;case"mouseover":case"mouseout":ns=null;break;case"pointerover":case"pointerout":kf.delete(d.pointerId);break;case"gotpointercapture":case"lostpointercapture":Df.delete(d.pointerId)}}function _f(l,d,g,w,T,R){return l===null||l.nativeEvent!==R?(l={blockedOn:d,domEventName:g,eventSystemFlags:w,nativeEvent:R,targetContainers:[T]},d!==null&&(d=lc(d),d!==null&&h4(d)),l):(l.eventSystemFlags|=w,d=l.targetContainers,T!==null&&d.indexOf(T)===-1&&d.push(T),l)}function GY(l,d,g,w,T){switch(d){case"focusin":return rs=_f(rs,l,d,g,w,T),!0;case"dragenter":return as=_f(as,l,d,g,w,T),!0;case"mouseover":return ns=_f(ns,l,d,g,w,T),!0;case"pointerover":var R=T.pointerId;return kf.set(R,_f(kf.get(R)||null,l,d,g,w,T)),!0;case"gotpointercapture":return R=T.pointerId,Df.set(R,_f(Df.get(R)||null,l,d,g,w,T)),!0}return!1}function v4(l){var d=sc(l.target);if(d!==null){var g=i(d);if(g!==null){if(d=g.tag,d===13){if(d=o(g),d!==null){l.blockedOn=d,Bo(l.priority,function(){m4(g)});return}}else if(d===31){if(d=s(g),d!==null){l.blockedOn=d,Bo(l.priority,function(){m4(g)});return}}else if(d===3&&g.stateNode.current.memoizedState.isDehydrated){l.blockedOn=g.tag===3?g.stateNode.containerInfo:null;return}}}l.blockedOn=null}function mg(l){if(l.blockedOn!==null)return!1;for(var d=l.targetContainers;0<d.length;){var g=b1(l.nativeEvent);if(g===null){g=l.nativeEvent;var w=new g.constructor(g.type,g);wb=w,g.target.dispatchEvent(w),wb=null}else return d=lc(g),d!==null&&h4(d),l.blockedOn=g,!1;d.shift()}return!0}function y4(l,d,g){mg(l)&&g.delete(d)}function KY(){S1=!1,rs!==null&&mg(rs)&&(rs=null),as!==null&&mg(as)&&(as=null),ns!==null&&mg(ns)&&(ns=null),kf.forEach(y4),Df.forEach(y4)}function gg(l,d){l.blockedOn===d&&(l.blockedOn=null,S1||(S1=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,KY)))}var xg=null;function b4(l){xg!==l&&(xg=l,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){xg===l&&(xg=null);for(var d=0;d<l.length;d+=3){var g=l[d],w=l[d+1],T=l[d+2];if(typeof w!="function"){if(w1(w||g)===null)continue;break}var R=lc(g);R!==null&&(l.splice(d,3),d-=3,b0(R,{pending:!0,data:T,method:g.method,action:w},w,T))}}))}function Vc(l){function d(me){return gg(me,l)}rs!==null&&gg(rs,l),as!==null&&gg(as,l),ns!==null&&gg(ns,l),kf.forEach(d),Df.forEach(d);for(var g=0;g<is.length;g++){var w=is[g];w.blockedOn===l&&(w.blockedOn=null)}for(;0<is.length&&(g=is[0],g.blockedOn===null);)v4(g),g.blockedOn===null&&is.shift();if(g=(l.ownerDocument||l).$$reactFormReplay,g!=null)for(w=0;w<g.length;w+=3){var T=g[w],R=g[w+1],Q=T[Da]||null;if(typeof R=="function")Q||b4(g);else if(Q){var le=null;if(R&&R.hasAttribute("formAction")){if(T=R,Q=R[Da]||null)le=Q.formAction;else if(w1(T)!==null)continue}else le=Q.action;typeof le=="function"?g[w+1]=le:(g.splice(w,3),w-=3),b4(g)}}}function w4(){function l(R){R.canIntercept&&R.info==="react-transition"&&R.intercept({handler:function(){return new Promise(function(Q){return T=Q})},focusReset:"manual",scroll:"manual"})}function d(){T!==null&&(T(),T=null),w||setTimeout(g,20)}function g(){if(!w&&!navigation.transition){var R=navigation.currentEntry;R&&R.url!=null&&navigation.navigate(R.url,{state:R.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var w=!1,T=null;return navigation.addEventListener("navigate",l),navigation.addEventListener("navigatesuccess",d),navigation.addEventListener("navigateerror",d),setTimeout(g,100),function(){w=!0,navigation.removeEventListener("navigate",l),navigation.removeEventListener("navigatesuccess",d),navigation.removeEventListener("navigateerror",d),T!==null&&(T(),T=null)}}}function E1(l){this._internalRoot=l}vg.prototype.render=E1.prototype.render=function(l){var d=this._internalRoot;if(d===null)throw Error(a(409));var g=d.current,w=tn();f4(g,w,l,d,null,null)},vg.prototype.unmount=E1.prototype.unmount=function(){var l=this._internalRoot;if(l!==null){this._internalRoot=null;var d=l.containerInfo;f4(l.current,2,null,l,null,null),Jm(),d[oc]=null}};function vg(l){this._internalRoot=l}vg.prototype.unstable_scheduleHydration=function(l){if(l){var d=yn();l={blockedOn:null,target:l,priority:d};for(var g=0;g<is.length&&d!==0&&d<is[g].priority;g++);is.splice(g,0,l),g===0&&v4(l)}};var S4=t.version;if(S4!=="19.2.1")throw Error(a(527,S4,"19.2.1"));V.findDOMNode=function(l){var d=l._reactInternals;if(d===void 0)throw typeof l.render=="function"?Error(a(188)):(l=Object.keys(l).join(","),Error(a(268,l)));return l=u(d),l=l!==null?h(l):null,l=l===null?null:l.stateNode,l};var WY={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.1"};
vendor: 2,496 bytes, line 49
49if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var yg=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!yg.isDisabled&&yg.supportsFiber)try{xt=yg.inject(WY),Oe=yg}catch{}}return Of.createRoot=function(l,d){if(!n(l))throw Error(a(299));var g=!1,w="",T=T_,R=k_,Q=D_;return d!=null&&(d.unstable_strictMode===!0&&(g=!0),d.identifierPrefix!==void 0&&(w=d.identifierPrefix),d.onUncaughtError!==void 0&&(T=d.onUncaughtError),d.onCaughtError!==void 0&&(R=d.onCaughtError),d.onRecoverableError!==void 0&&(Q=d.onRecoverableError)),d=u4(l,1,!1,null,null,g,w,null,T,R,Q,w4),l[oc]=d.current,n1(l),new E1(d)},Of.hydrateRoot=function(l,d,g){if(!n(l))throw Error(a(299));var w=!1,T="",R=T_,Q=k_,le=D_,me=null;return g!=null&&(g.unstable_strictMode===!0&&(w=!0),g.identifierPrefix!==void 0&&(T=g.identifierPrefix),g.onUncaughtError!==void 0&&(R=g.onUncaughtError),g.onCaughtError!==void 0&&(Q=g.onCaughtError),g.onRecoverableError!==void 0&&(le=g.onRecoverableError),g.formState!==void 0&&(me=g.formState)),d=u4(l,1,!0,d,g??null,w,T,me,R,Q,le,w4),d.context=d4(null),g=d.current,w=tn(),w=vn(w),T=Uo(w),T.callback=null,Ho(g,T,w),g=w,d.current.lanes=g,Tt(d,g),pi(d),l[oc]=d.current,n1(l),new vg(d)},Of.version="19.2.1",Of}var _4;function nZ(){if(_4)return C1.exports;_4=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),C1.exports=aZ(),C1.exports}var iZ=nZ(),L=qj();const de=qt(L),W7=YY({__proto__:null,default:de},[L]);var oZ=(e,t,r,a,n,i,o,s)=>{let c=document.documentElement,u=["light","dark"];function h(x){(Array.isArray(e)?e:[e]).forEach(v=>{let y=v==="class",b=y&&i?n.map(S=>i[S]||S):n;y?(c.classList.remove(...b),c.classList.add(i&&i[x]?i[x]:x)):c.setAttribute(v,x)}),f(x)}function f(x){s&&u.includes(x)&&(c.style.colorScheme=x)}function m(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(a)h(a);else try{let x=localStorage.getItem(t)||r,v=o&&x==="system"?m():x;h(v)}catch{}},sZ=L.createContext(void 0),lZ={setTheme:e=>{},themes:[]},cZ=()=>{var e;return(e=L.useContext(sZ))!=null?e:lZ};L.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:a,enableColorScheme:n,defaultTheme:i,value:o,themes:s,nonce:c,scriptProps:u})=>{let h=JSON.stringify([r,t,i,e,s,o,a,n]).slice(1,-1);return L.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?c:"",dangerouslySetInnerHTML:{__html:`(${oZ.toString()})(${h}
49)`}})});var xs=K7();const X7=qt(xs);function uZ(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}const dZ=e=>{switch(e){case"success":return hZ;case"info":return gZ;case"warning":return mZ;case"error":return xZ;default:return null}},fZ=Array(12).fill(0),pZ=({visible:e,className:t})=>de.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},de.createElement("div",{className:"sonner-spinner"},fZ.map((r,a)=>de.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${a}`})))),hZ=de.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},de.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),mZ=de.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},de.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),gZ=de.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},de.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),xZ=de.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},de.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),vZ=de.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},de.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),de.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),yZ=()=>{const[e,t]=de.useState(document.hidden);return de.useEffect(()=>{const r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e};let vC=1;class bZ{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:a,...n}=t,i=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:vC++,o=this.toasts.find(c=>c.id===i),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),o?this.toasts=this.toasts.map(c=>c.id===i?(this.publish({...c,...t,id:i,title:a}),{...c,...t,id:i,dismissible:s,title:a}):c):this.addToast({title:a,...n,dismissible:s,id:i}),i},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(a=>a({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let a;r.loading!==void 0&&(a=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const n=Promise.resolve(t instanceof Function?t():t);let i=a!==void 0,o;const s=n.then(async u=>
vendor: 2,218 bytes, line 49
49{if(o=["resolve",u],de.isValidElement(u))i=!1,this.create({id:a,type:"default",message:u});else if(SZ(u)&&!u.ok){i=!1;const f=typeof r.error=="function"?await r.error(`HTTP error! status: ${u.status}`):r.error,m=typeof r.description=="function"?await r.description(`HTTP error! status: ${u.status}`):r.description,v=typeof f=="object"&&!de.isValidElement(f)?f:{message:f};this.create({id:a,type:"error",description:m,...v})}else if(u instanceof Error){i=!1;const f=typeof r.error=="function"?await r.error(u):r.error,m=typeof r.description=="function"?await r.description(u):r.description,v=typeof f=="object"&&!de.isValidElement(f)?f:{message:f};this.create({id:a,type:"error",description:m,...v})}else if(r.success!==void 0){i=!1;const f=typeof r.success=="function"?await r.success(u):r.success,m=typeof r.description=="function"?await r.description(u):r.description,v=typeof f=="object"&&!de.isValidElement(f)?f:{message:f};this.create({id:a,type:"success",description:m,...v})}}).catch(async u=>{if(o=["reject",u],r.error!==void 0){i=!1;const h=typeof r.error=="function"?await r.error(u):r.error,f=typeof r.description=="function"?await r.description(u):r.description,x=typeof h=="object"&&!de.isValidElement(h)?h:{message:h};this.create({id:a,type:"error",description:f,...x})}}).finally(()=>{i&&(this.dismiss(a),a=void 0),r.finally==null||r.finally.call(r)}),c=()=>new Promise((u,h)=>s.then(()=>o[0]==="reject"?h(o[1]):u(o[1])).catch(h));return typeof a!="string"&&typeof a!="number"?{unwrap:c}:Object.assign(a,{unwrap:c})},this.custom=(t,r)=>{const a=r?.id||vC++;return this.create({jsx:t(a),id:a,...r}),a},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Fa=new bZ,wZ=(e,t)=>{const r=t?.id||vC++;return Fa.addToast({title:e,...t,id:r}),r},SZ=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",EZ=wZ,AZ=()=>Fa.toasts,CZ=()=>Fa.getActiveToasts(),je=Object.assign(EZ,{success:Fa.success,info:Fa.info,warning:Fa.warning,error:Fa.error,custom:Fa.custom,message:Fa.message,promise:Fa.promise,dismiss:Fa.dismiss,loading:Fa.loading},{getHistory:AZ,getToasts:CZ});uZ
vendor: 14,873 bytes, line 49
49("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function
vendor: 580 bytes, line 49
49bg(e){return e.label!==void 0}const PZ=3,jZ="24px",NZ="16px",R4=4e3,TZ=356,kZ=14,DZ=45,_Z=200;function hi(...e){return e.filter(Boolean).join(" ")}function RZ(e){const[t,r]=e.split("-"),a=[];return t&&a.push(t),r&&a.push(r),a}const OZ=e=>{var t,r,a,n,i,o,s,c,u;const{invert:h,toast:f,unstyled:m,interacting:x,setHeights:v,visibleToasts:y,heights:b,index:S,toasts:A,expanded:E,removeToast:j,defaultRichColors:P,closeButton:C,style:N,cancelButtonStyle:O,actionButtonStyle:k,className:B="",descriptionClassName:$="",duration:_,position:W,gap:D,expandByDefault:J,classNames:z,icons:V,
vendor: 19,587 bytes, line 49
49closeButtonAriaLabel:Z="Close toast"}=e,[te,K]=de.useState(null),[q,X]=de.useState(null),[U,ie]=de.useState(!1),[se,he]=de.useState(!1),[Y,F]=de.useState(!1),[ae,ne]=de.useState(!1),[ge,re]=de.useState(!1),[oe,G]=de.useState(0),[pe,ee]=de.useState(0),M=de.useRef(f.duration||_||R4),I=de.useRef(null),H=de.useRef(null),ce=S===0,fe=S+1<=y,ue=f.type,we=f.dismissible!==!1,Ne=f.className||"",De=f.descriptionClassName||"",xe=de.useMemo(()=>b.findIndex(Je=>Je.toastId===f.id)||0,[b,f.id]),Ee=de.useMemo(()=>{var Je;return(Je=f.closeButton)!=null?Je:C},[f.closeButton,C]),ze=de.useMemo(()=>f.duration||_||R4,[f.duration,_]),We=de.useRef(0),it=de.useRef(0),Pt=de.useRef(0),Jt=de.useRef(null),[xt,Oe]=W.split("-"),ke=de.useMemo(()=>b.reduce((Je,ft,Ke)=>Ke>=xe?Je:Je+ft.height,0),[b,xe]),Ie=yZ(),Pe=f.invert||h,at=ue==="loading";it.current=de.useMemo(()=>xe*D+ke,[xe,ke]),de.useEffect(()=>{M.current=ze},[ze]),de.useEffect(()=>{ie(!0)},[]),de.useEffect(()=>{const Je=H.current;if(Je){const ft=Je.getBoundingClientRect().height;return ee(ft),v(Ke=>[{toastId:f.id,height:ft,position:f.position},...Ke]),()=>v(Ke=>Ke.filter(ht=>ht.toastId!==f.id))}},[v,f.id]),de.useLayoutEffect(()=>{if(!U)return;const Je=H.current,ft=Je.style.height;Je.style.height="auto";const Ke=Je.getBoundingClientRect().height;Je.style.height=ft,ee(Ke),v(ht=>ht.find(Tt=>Tt.toastId===f.id)?ht.map(Tt=>Tt.toastId===f.id?{...Tt,height:Ke}:Tt):[{toastId:f.id,height:Ke,position:f.position},...ht])},[U,f.title,f.description,v,f.id,f.jsx,f.action,f.cancel]);const Et=de.useCallback(()=>{he(!0),G(it.current),v(Je=>Je.filter(ft=>ft.toastId!==f.id)),setTimeout(()=>{j(f)},_Z)},[f,j,v,it]);de.useEffect(()=>{if(f.promise&&ue==="loading"||f.duration===1/0||f.type==="loading")return;let Je;return E||x||Ie?(()=>{if(Pt.current<We.current){const ht=new Date().getTime()-We.current;M.current=M.current-ht}Pt.current=new Date().getTime()})():(()=>{M.current!==1/0&&(We.current=new Date().getTime(),Je=setTimeout(()=>{f.onAutoClose==null||f.onAutoClose.call(f,f),Et()},M.current))})(),()=>clearTimeout(Je)},[E,x,f,ue,Ie,Et]),de.useEffect(()=>{f.delete&&(Et(),f.onDismiss==null||f.onDismiss.call(f,f))},[Et,f.delete]);function cr(){var Je;if(V?.loading){var ft;return de.createElement("div",{className:hi(z?.loader,f==null||(ft=f.classNames)==null?void 0:ft.loader,"sonner-loader"),"data-visible":ue==="loading"},V.loading)}return de.createElement(pZ,{className:hi(z?.loader,f==null||(Je=f.classNames)==null?void 0:Je.loader),visible:ue==="loading"})}const Xt=f.icon||V?.[ue]||dZ(ue);var $t,Lt;return de.createElement("li",{tabIndex:0,ref:H,className:hi(B,Ne,z?.toast,f==null||(t=f.classNames)==null?void 0:t.toast,z?.default,z?.[ue],f==null||(r=f.classNames)==null?void 0:r[ue]),"data-sonner-toast":"","data-rich-colors":($t=f.richColors)!=null?$t:P,"data-styled":!(f.jsx||f.unstyled||m),"data-mounted":U,"data-promise":!!f.promise,"data-swiped":ge,"data-removed":se,"data-visible":fe,"data-y-position":xt,"data-x-position":Oe,"data-index":S,"data-front":ce,"data-swiping":Y,"data-dismissible":we,"data-type":ue,"data-invert":Pe,"data-swipe-out":ae,"data-swipe-direction":q,"data-expanded":!!(E||J&&U),"data-testid":f.testId,style:{"--index":S,"--toasts-before":S,"--z-index":A.length-S,"--offset":`${se?oe:it.current}px`,"--initial-height":J?"auto":`${pe}px`,...N,...f.style},onDragEnd:()=>{F(!1),K(null),Jt.current=null},onPointerDown:Je=>{Je.button!==2&&(at||!we||(I.current=new Date,G(it.current),Je.target.setPointerCapture(Je.pointerId),Je.target.tagName!=="BUTTON"&&(F(!0),Jt.current={x:Je.clientX,y:Je.clientY})))},onPointerUp:()=>{var Je,ft,Ke;if(ae||!we)return;Jt.current=null;const ht=Number(((Je=H.current)==null?void 0:Je.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),ot=Number(((ft=H.current)==null?void 0:ft.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Tt=new Date().getTime()-((Ke=I.current)==null?void 0:Ke.getTime()),zt=te==="x"?ht:ot,ha=Math.abs(zt)/Tt;if(Math.abs(zt)>=DZ||ha>.11){G(it.current),f.onDismiss==null||f.onDismiss.call(f,f),X(te==="x"?ht>0?"right":"left":ot>0?"down":"up"),Et(),ne(!0);return}else{var hr,yr;(hr=H.current)==null||hr.style.setProperty("--swipe-amount-x","0px"),(yr=H.current)==null||yr.style.setProperty("--swipe-amount-y","0px")}re(!1),F(!1),K(null)},onPointerMove:Je=>{var ft,Ke,ht;if(!Jt.current||!we||((ft=window.getSelection())==null?void 0:ft.toString().length)>0)return;const Tt=Je.clientY-Jt.current.y,zt=Je.clientX-Jt.current.x;var ha;const hr=(ha=e.swipeDirections)!=null?ha:RZ(W);!te&&(Math.abs(zt)>1||Math.abs(Tt)>1)&&K(Math.abs(zt)>Math.abs(Tt)?"x":"y");let yr={x:0,y:0};const vn=aa=>1/(1.5+Math.abs(aa)/20);if(te==="y"){if(hr.includes("top")||hr.includes("bottom"))if(hr.includes("top")&&Tt<0||hr.includes("bottom")&&Tt>0)yr.y=Tt;else{const aa=Tt*vn(Tt);yr.y=Math.abs(aa)<Math.abs(Tt)?aa:Tt}}else if(te==="x"&&(hr.includes("left")||hr.includes("right")))if(hr.includes("left")&&zt<0||hr.includes("right")&&zt>0)yr.x=zt;else{const aa=zt*vn(zt);yr.x=Math.abs(aa)<Math.abs(zt)?aa:zt}(Math.abs(yr.x)>0||Math.abs(yr.y)>0)&&re(!0),(Ke=H.current)==null||Ke.style.setProperty("--swipe-amount-x",`${yr.x}px`),(ht=H.current)==null||ht.style.setProperty("--swipe-amount-y",`${yr.y}px`)}},Ee&&!f.jsx&&ue!=="loading"?de.createElement("button",{"aria-label":Z,"data-disabled":at,"data-close-button":!0,onClick:at||!we?()=>{}:()=>{Et(),f.onDismiss==null||f.onDismiss.call(f,f)},className:hi(z?.closeButton,f==null||(a=f.classNames)==null?void 0:a.closeButton)},(Lt=V?.close)!=null?Lt:vZ):null,(ue||f.icon||f.promise)&&f.icon!==null&&(V?.[ue]!==null||f.icon)?de.createElement("div",{"data-icon":"",className:hi(z?.icon,f==null||(n=f.classNames)==null?void 0:n.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||cr():null,f.type!=="loading"?Xt:null):null,de.createElement("div",{"data-content":"",className:hi(z?.content,f==null||(i=f.classNames)==null?void 0:i.content)},de.createElement("div",{"data-title":"",className:hi(z?.title,f==null||(o=f.classNames)==null?void 0:o.title)},f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title),f.description?de.createElement("div",{"data-description":"",className:hi($,De,z?.description,f==null||(s=f.classNames)==null?void 0:s.description)},typeof f.description=="function"?f.description():f.description):null),de.isValidElement(f.cancel)?f.cancel:f.cancel&&bg(f.cancel)?de.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||O,onClick:Je=>{bg(f.cancel)&&we&&(f.cancel.onClick==null||f.cancel.onClick.call(f.cancel,Je),Et())},className:hi(z?.cancelButton,f==null||(c=f.classNames)==null?void 0:c.cancelButton)},f.cancel.label):null,de.isValidElement(f.action)?f.action:f.action&&bg(f.action)?de.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||k,onClick:Je=>{bg(f.action)&&(f.action.onClick==null||f.action.onClick.call(f.action,Je),!Je.defaultPrevented&&Et())},className:hi(z?.actionButton,f==null||(u=f.classNames)==null?void 0:u.actionButton)},f.action.label):null)};function O4(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function MZ(e,t){const r={};return[e,t].forEach((a,n)=>{const i=n===1,o=i?"--mobile-offset":"--offset",s=i?NZ:jZ;function c(u){["top","right","bottom","left"].forEach(h=>{r[`${o}-${h}`]=typeof u=="number"?`${u}px`:u})}typeof a=="number"||typeof a=="string"?c(a):typeof a=="object"?["top","right","bottom","left"].forEach(u=>{a[u]===void 0?r[`${o}-${u}`]=s:r[`${o}-${u}`]=typeof a[u]=="number"?`${a[u]}px`:a[u]}):c(s)}),r}const IZ=de.forwardRef(function(t,r){const{id:a,invert:n,position:i="bottom-right",hotkey:o=["altKey","KeyT"],expand:s,closeButton:c,className:u,offset:h,mobileOffset:f,theme:m="light",richColors:x,duration:v,style:y,visibleToasts:b=PZ,toastOptions:S,dir:A=O4(),gap:E=kZ,icons:j,containerAriaLabel:P="Notifications"}=t,[C,N]=de.useState([]),O=de.useMemo(()=>a?C.filter(U=>U.toasterId===a):C.filter(U=>!U.toasterId),[C,a]),k=de.useMemo(()=>Array.from(new Set([i].concat(O.filter(U=>U.position).map(U=>U.position)))),[O,i]),[B,$]=de.useState([]),[_,W]=de.useState(!1),[D,J]=de.useState(!1),[z,V]=de.useState(m!=="system"?m:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Z=de.useRef(null),te=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),K=de.useRef(null),q=de.useRef(!1),X=de.useCallback(U=>{N(ie=>{var se;return(se=ie.find(he=>he.id===U.id))!=null&&se.delete||Fa.dismiss(U.id),ie.filter(({id:he})=>he!==U.id)})},[]);return de.useEffect(()=>Fa.subscribe(U=>{if(U.dismiss){requestAnimationFrame(()=>{N(ie=>ie.map(se=>se.id===U.id?{...se,delete:!0}:se))});return}setTimeout(()=>{X7.flushSync(()=>{N(ie=>{const se=ie.findIndex(he=>he.id===U.id);return se!==-1?[...ie.slice(0,se),{...ie[se],...U},...ie.slice(se+1)]:[U,...ie]})})})}),[C]),de.useEffect(()=>{if(m!=="system"){V(m);return}if(m==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?V("dark"):V("light")),typeof window>"u")return;const U=window.matchMedia("(prefers-color-scheme: dark)");try{U.addEventListener("change",({matches:ie})=>{V(ie?"dark":"light")})}catch{U.addListener(({matches:se})=>{try{V(se?"dark":"light")}catch(he){console.error(he)}})}},[m]),de.useEffect(()=>{C.length<=1&&W(!1)},[C]),de.useEffect(()=>{const U=ie=>{var se;if(o.every(F=>ie[F]||ie.code===F)){var Y;W(!0),(Y=Z.current)==null||Y.focus()}ie.code==="Escape"&&(document.activeElement===Z.current||(se=Z.current)!=null&&se.contains(document.activeElement))&&W(!1)};return document.addEventListener("keydown",U),()=>document.removeEventListener("keydown",U)},[o]),de.useEffect(()=>{if(Z.current)return()=>{K.current&&(K.current.focus({preventScroll:!0}),K.current=null,q.current=!1)}},[Z.current]),de.createElement("section",{ref:r,"aria-label":`${P} ${te}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},k.map((U,ie)=>{var se;const[he,Y]=U.split("-");return O.length?de.createElement("ol",{key:U,dir:A==="auto"?O4():A,tabIndex:-1,ref:Z,className:u,"data-sonner-toaster":!0,"data-sonner-theme":z,"data-y-position":he,"data-x-position":Y,style:{"--front-toast-height":`${((se=B[0])==null?void 0:se.height)||0}px`,"--width":`${TZ}px`,"--gap":`${E}px`,...y,...MZ(h,f)},onBlur:F=>{q.current&&!F.currentTarget.contains(F.relatedTarget)&&(q.current=!1,K.current&&(K.current.focus({preventScroll:!0}),K.current=null))},onFocus:F=>{F.target instanceof HTMLElement&&F.target.dataset.dismissible==="false"||q.current||(q.current=!0,K.current=F.relatedTarget)},onMouseEnter:()=>W(!0),onMouseMove:()=>W(!0),onMouseLeave:()=>{D||W(!1)},onDragEnd:()=>W(!1),onPointerDown:F=>{F.target instanceof HTMLElement&&F.target.dataset.dismissible==="false"||J(!0)},onPointerUp:()=>J(!1)},O.filter(F=>!F.position&&ie===0||F.position===U).map((F,ae)=>{var ne,ge;return de.createElement(OZ,{key:F.id,icons:j,index:ae,toast:F,defaultRichColors:x,duration:(ne=S?.duration)!=null?ne:v,className:S?.className,descriptionClassName:S?.descriptionClassName,invert:n,visibleToasts:b,closeButton:(ge=S?.closeButton)!=null?ge:c,interacting:D,position:U,style:S?.style,unstyled:S?.unstyled,classNames:S?.classNames,cancelButtonStyle:S?.cancelButtonStyle,actionButtonStyle:S?.actionButtonStyle,closeButtonAriaLabel:S?.closeButtonAriaLabel,removeToast:X,toasts:O.filter(re=>re.position==F.position),heights:B.filter(re=>re.position==F.position),setHeights:$,expandByDefault:s,gap:E,expanded:_,swipeDirections:t.swipeDirections})})):null}))}),wg=({...e})=>{const{theme:t="system"}=cZ();return p.jsx(IZ,{"data-loc":"client/src/components/ui/sonner.tsx:8",theme:t,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...e})};function $a(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function M4(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Y7(...e){return t=>{let r=!1;const a=e.map(n=>{const i=M4(n,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let n=0;n<a.length;n++){const i=a[n];typeof i=="function"?i():M4(e[n],null)}}}}function si(...e){return L.useCallback(Y7(...e),e)}function BZ(e,t){const r=L.createContext(t),a=i=>{const{children:o,...s}=i,c=L.useMemo(()=>s,Object.values(s));return p.jsx(r.Provider,{value:c,children:o})};a.displayName=e+"Provider";function n(i){const o=L.useContext(r);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[a,n]}function Vj(e,t=[]){let r=[];function a(i,o){const s=L.createContext(o),c=r.length;r=[...r,o];const u=f=>{const{scope:m,children:x,...v}=f,y=m?.[e]?.[c]||s,b=L.useMemo(()=>v,Object.values(v));return p.jsx(y.Provider,{value:b,children:x})};u.displayName=i+"Provider";function h(f,m){const x=m?.[e]?.[c]||s,v=L.useContext(x);if(v)return v;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[u,h]}const n=()=>{const i=r.map(o=>L.createContext(o));return function(s){const c=s?.[e]||i;return L.useMemo(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return n.scopeName=e,[a,LZ(n,...t)]}function LZ(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const a=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(i){const o=a.reduce((s,{useScope:c,scopeName:u})=>{const f=c(i)[`__scope${u}`];return{...s,...f}},{});return L.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}function Uj(e){const t=zZ(e),r=L.forwardRef((a,n)=>{const{children:i,...o}=a,s=L.Children.toArray(i),c=s.find($Z);if(c){const u=c.props.children,h=s.map(f=>f===c?L.Children.count(u)>1?L.Children.only(null):L.isValidElement(u)?u.props.children:null:f);return p.jsx(t,{...o,ref:n,children:L.isValidElement(u)?L.cloneElement(u,void 0,h):null})}return p.jsx(t,{...o,ref:n,children:i})});return r.displayName=`${e}.Slot`,r}var Z7=Uj("Slot");function zZ(e){const t=L.forwardRef((r,a)=>{const{children:n,...i}=r;if(L.isValidElement(n)){const o=VZ(n),s=qZ(i,n.props);return n.type!==L.Fragment&&(s.ref=a?Y7(a,o):o),L.cloneElement(n,s)}return L.Children.count(n)>1?L.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var J7=Symbol("radix.slottable");function FZ(e){const t=({children:r})=>p.jsx(p.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=J7,t}function $Z(e){return L.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===J7}function qZ(e,t){const r={...t};for(const a in t){const n=e[a],i=t[a];/^on[A-Z]/.test(a)?n&&i?r[a]=(...s)=>{const c=i(...s);return n(...s),c}:n&&(r[a]=n):a==="style"?r[a]={...n,...i}:a==="className"&&(r[a]=[n,i].filter(Boolean).join(" "))}return{...e,...r}}function VZ(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var UZ=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ha=UZ.reduce((e,t)=>{const r=Uj(`Primitive.${t}`),a=L.forwardRef((n,i)=>{const{asChild:o,...s}=n,c=o?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(c,{...s,ref:i})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function HZ(e,t){e&&xs.flushSync(()=>e.dispatchEvent(t))}function Tu(e){const t=L.useRef(e);return L.useEffect(()=>{t.current=e}),L.useMemo(()=>(...r)=>t.current?.(...r),[])}function GZ(e,t=globalThis?.document){const r=Tu(e);L.useEffect(()=>{const a=n=>{n.key==="Escape"&&r(n)};return t.addEventListener("keydown",a,{capture:!0}),()=>t.removeEventListener("keydown",a,{capture:!0})},[r,t])}var KZ="DismissableLayer",yC="dismissableLayer.update",WZ="dismissableLayer.pointerDownOutside",XZ="dismissableLayer.focusOutside",I4,Q7=L.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Hj=L.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:a,onPointerDownOutside:n,onFocusOutside:i,onInteractOutside:o,onDismiss:s,...c}=e,u=L.useContext(Q7),[h,f]=L.useState(null),m=h?.ownerDocument??globalThis?.document,[,x]=L.useState({}),v=si(t,N=>f(N)),y=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),S=y.indexOf(b),A=h?y.indexOf(h):-1,E=u.layersWithOutsidePointerEventsDisabled.size>0,j=A>=S,P=JZ(N=>{const O=N.target,k=[...u.branches].some(B=>B.contains(O));!j||k||(n?.(N),o?.(N),N.defaultPrevented||s?.())},m),C=QZ(N=>{const O=N.target;[...u.branches].some(B=>B.contains(O))||(i?.(N),o?.(N),N.defaultPrevented||s?.())},m);return GZ(N=>{A===u.layers.size-1&&(a?.(N),!N.defaultPrevented&&s&&(N.preventDefault(),s()))},m),L.useEffect(()=>{if(h)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(I4=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(h)),u.layers.add(h),B4(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=I4)}},[h,m,r,u]),L.useEffect(()=>()=>{h&&(u.layers.delete(h),u.layersWithOutsidePointerEventsDisabled.delete(h),B4())},[h,u]),L.useEffect(()=>{const N=()=>x({});return document.addEventListener(yC,N),()=>document.removeEventListener(yC,N)},[]),p.jsx(Ha.div,{...c,ref:v,style:{pointerEvents:E?j?"auto":"none":void 0,...e.style},onFocusCapture:$a(e.onFocusCapture,C.onFocusCapture),onBlurCapture:$a(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:$a(e.onPointerDownCapture,P.onPointerDownCapture)})});Hj.displayName=KZ;var YZ="DismissableLayerBranch",ZZ=L.forwardRef((e,t)=>{const r=L.useContext(Q7),a=L.useRef(null),n=si(t,a);return L.useEffect(()=>{const i=a.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),p.jsx(Ha.div,{...e,ref:n})});ZZ.displayName=YZ;function JZ(e,t=globalThis?.document){const r=Tu(e),a=L.useRef(!1),n=L.useRef(()=>{});return L.useEffect(()=>{const i=s=>{if(s.target&&!a.current){let c=function(){ez(WZ,r,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",n.current),n.current=c,t.addEventListener("click",n.current,{once:!0})):c()}else t.removeEventListener("click",n.current);a.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",n.current)}},[t,r]),{onPointerDownCapture:()=>a.current=!0}}function QZ(e,t=globalThis?.document){const r=Tu(e),a=L.useRef(!1);return L.useEffect(()=>{const n=i=>{i.target&&!a.current&&ez(XZ,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",n),()=>t.removeEventListener("focusin",n)},[t,r]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function B4(){const e=new CustomEvent(yC);document.dispatchEvent(e)}function ez(e,t,r,{discrete:a}){const n=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&n.addEventListener(e,t,{once:!0}),a?HZ(n,i):n.dispatchEvent(i)}var bs=globalThis?.document?L.useLayoutEffect:()=>{},eJ=W7[" useId ".trim().toString()]||(()=>{}),tJ=0;function k1(e){const[t,r]=L.useState(eJ());return bs(()=>{r(a=>a??String(tJ++))},[e]),e||(t?`radix-${t}`:"")}const rJ=["top","right","bottom","left"],ws=Math.min,ln=Math.max,Px=Math.round,Sg=Math.floor,Ai=e=>({x:e,y:e}
vendor: 16,014 bytes, line 49
49),aJ={left:"right",right:"left",bottom:"top",top:"bottom"},nJ={start:"end",end:"start"};function bC(e,t,r){return ln(e,ws(t,r))}function Co(e,t){return typeof e=="function"?e(t):e}function Po(e){return e.split("-")[0]}function xd(e){return e.split("-")[1]}function Gj(e){return e==="x"?"y":"x"}function Kj(e){return e==="y"?"height":"width"}const iJ=new Set(["top","bottom"]);function wi(e){return iJ.has(Po(e))?"y":"x"}function Wj(e){return Gj(wi(e))}function oJ(e,t,r){r===void 0&&(r=!1);const a=xd(e),n=Wj(e),i=Kj(n);let o=n==="x"?a===(r?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=jx(o)),[o,jx(o)]}function sJ(e){const t=jx(e);return[wC(e),t,wC(t)]}function wC(e){return e.replace(/start|end/g,t=>nJ[t])}const L4=["left","right"],z4=["right","left"],lJ=["top","bottom"],cJ=["bottom","top"];function uJ(e,t,r){switch(e){case"top":case"bottom":return r?t?z4:L4:t?L4:z4;case"left":case"right":return t?lJ:cJ;default:return[]}}function dJ(e,t,r,a){const n=xd(e);let i=uJ(Po(e),r==="start",a);return n&&(i=i.map(o=>o+"-"+n),t&&(i=i.concat(i.map(wC)))),i}function jx(e){return e.replace(/left|right|bottom|top/g,t=>aJ[t])}function fJ(e){return{top:0,right:0,bottom:0,left:0,...e}}function tz(e){return typeof e!="number"?fJ(e):{top:e,right:e,bottom:e,left:e}}function Nx(e){const{x:t,y:r,width:a,height:n}=e;return{width:a,height:n,top:r,left:t,right:t+a,bottom:r+n,x:t,y:r}}function F4(e,t,r){let{reference:a,floating:n}=e;const i=wi(t),o=Wj(t),s=Kj(o),c=Po(t),u=i==="y",h=a.x+a.width/2-n.width/2,f=a.y+a.height/2-n.height/2,m=a[s]/2-n[s]/2;let x;switch(c){case"top":x={x:h,y:a.y-n.height};break;case"bottom":x={x:h,y:a.y+a.height};break;case"right":x={x:a.x+a.width,y:f};break;case"left":x={x:a.x-n.width,y:f};break;default:x={x:a.x,y:a.y}}switch(xd(t)){case"start":x[o]-=m*(r&&u?-1:1);break;case"end":x[o]+=m*(r&&u?-1:1);break}return x}const pJ=async(e,t,r)=>{const{placement:a="bottom",strategy:n="absolute",middleware:i=[],platform:o}=r,s=i.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:n}),{x:h,y:f}=F4(u,a,c),m=a,x={},v=0;for(let y=0;y<s.length;y++){const{name:b,fn:S}=s[y],{x:A,y:E,data:j,reset:P}=await S({x:h,y:f,initialPlacement:a,placement:m,strategy:n,middlewareData:x,rects:u,platform:o,elements:{reference:e,floating:t}});h=A??h,f=E??f,x={...x,[b]:{...x[b],...j}},P&&v<=50&&(v++,typeof P=="object"&&(P.placement&&(m=P.placement),P.rects&&(u=P.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:n}):P.rects),{x:h,y:f}=F4(u,m,c)),y=-1)}return{x:h,y:f,placement:m,strategy:n,middlewareData:x}};async function _p(e,t){var r;t===void 0&&(t={});const{x:a,y:n,platform:i,rects:o,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:h="viewport",elementContext:f="floating",altBoundary:m=!1,padding:x=0}=Co(t,e),v=tz(x),b=s[m?f==="floating"?"reference":"floating":f],S=Nx(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(b)))==null||r?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:h,strategy:c})),A=f==="floating"?{x:a,y:n,width:o.floating.width,height:o.floating.height}:o.reference,E=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),j=await(i.isElement==null?void 0:i.isElement(E))?await(i.getScale==null?void 0:i.getScale(E))||{x:1,y:1}:{x:1,y:1},P=Nx(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:A,offsetParent:E,strategy:c}):A);return{top:(S.top-P.top+v.top)/j.y,bottom:(P.bottom-S.bottom+v.bottom)/j.y,left:(S.left-P.left+v.left)/j.x,right:(P.right-S.right+v.right)/j.x}}const hJ=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:a,placement:n,rects:i,platform:o,elements:s,middlewareData:c}=t,{element:u,padding:h=0}=Co(e,t)||{};if(u==null)return{};const f=tz(h),m={x:r,y:a},x=Wj(n),v=Kj(x),y=await o.getDimensions(u),b=x==="y",S=b?"top":"left",A=b?"bottom":"right",E=b?"clientHeight":"clientWidth",j=i.reference[v]+i.reference[x]-m[x]-i.floating[v],P=m[x]-i.reference[x],C=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let N=C?C[E]:0;(!N||!await(o.isElement==null?void 0:o.isElement(C)))&&(N=s.floating[E]||i.floating[v]);const O=j/2-P/2,k=N/2-y[v]/2-1,B=ws(f[S],k),$=ws(f[A],k),_=B,W=N-y[v]-$,D=N/2-y[v]/2+O,J=bC(_,D,W),z=!c.arrow&&xd(n)!=null&&D!==J&&i.reference[v]/2-(D<_?B:$)-y[v]/2<0,V=z?D<_?D-_:D-W:0;return{[x]:m[x]+V,data:{[x]:J,centerOffset:D-J-V,...z&&{alignmentOffset:V}},reset:z}}}),mJ=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,a;const{placement:n,middlewareData:i,rects:o,initialPlacement:s,platform:c,elements:u}=t,{mainAxis:h=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:y=!0,...b}=Co(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const S=Po(n),A=wi(s),E=Po(s)===s,j=await(c.isRTL==null?void 0:c.isRTL(u.floating)),P=m||(E||!y?[jx(s)]:sJ(s)),C=v!=="none";!m&&C&&P.push(...dJ(s,y,v,j));const N=[s,...P],O=await _p(t,b),k=[];let B=((a=i.flip)==null?void 0:a.overflows)||[];if(h&&k.push(O[S]),f){const D=oJ(n,o,j);k.push(O[D[0]],O[D[1]])}if(B=[...B,{placement:n,overflows:k}],!k.every(D=>D<=0)){var $,_;const D=((($=i.flip)==null?void 0:$.index)||0)+1,J=N[D];if(J&&(!(f==="alignment"?A!==wi(J):!1)||B.every(Z=>wi(Z.placement)===A?Z.overflows[0]>0:!0)))return{data:{index:D,overflows:B},reset:{placement:J}};let z=(_=B.filter(V=>V.overflows[0]<=0).sort((V,Z)=>V.overflows[1]-Z.overflows[1])[0])==null?void 0:_.placement;if(!z)switch(x){case"bestFit":{var W;const V=(W=B.filter(Z=>{if(C){const te=wi(Z.placement);return te===A||te==="y"}return!0}).map(Z=>[Z.placement,Z.overflows.filter(te=>te>0).reduce((te,K)=>te+K,0)]).sort((Z,te)=>Z[1]-te[1])[0])==null?void 0:W[0];V&&(z=V);break}case"initialPlacement":z=s;break}if(n!==z)return{reset:{placement:z}}}return{}}}};function $4(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function q4(e){return rJ.some(t=>e[t]>=0)}const gJ=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:a="referenceHidden",...n}=Co(e,t);switch(a){case"referenceHidden":{const i=await _p(t,{...n,elementContext:"reference"}),o=$4(i,r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:q4(o)}}}case"escaped":{const i=await _p(t,{...n,altBoundary:!0}),o=$4(i,r.floating);return{data:{escapedOffsets:o,escaped:q4(o)}}}default:return{}}}}},rz=new Set(["left","top"]);async function xJ(e,t){const{placement:r,platform:a,elements:n}=e,i=await(a.isRTL==null?void 0:a.isRTL(n.floating)),o=Po(r),s=xd(r),c=wi(r)==="y",u=rz.has(o)?-1:1,h=i&&c?-1:1,f=Co(t,e);let{mainAxis:m,crossAxis:x,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&typeof v=="number"&&(x=s==="end"?v*-1:v),c?{x:x*h,y:m*u}:{x:m*u,y:x*h}}const vJ=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,a;const{x:n,y:i,placement:o,middlewareData:s}=t,c=await xJ(t,e);return o===((r=s.offset)==null?void 0:r.placement)&&(a=s.arrow)!=null&&a.alignmentOffset?{}:{x:n+c.x,y:i+c.y,data:{...c,placement:o}}}}},yJ=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:a,placement:n}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:s={fn:b=>{let{x:S,y:A}=b;return{x:S,y:A}}},...c}=Co(e,t),u={x:r,y:a},h=await _p(t,c),f=wi(Po(n)),m=Gj(f);let x=u[m],v=u[f];if(i){const b=m==="y"?"top":"left",S=m==="y"?"bottom":"right",A=x+h[b],E=x-h[S];x=bC(A,x,E)}if(o){const b=f==="y"?"top":"left",S=f==="y"?"bottom":"right",A=v+h[b],E=v-h[S];v=bC(A,v,E)}const y=s.fn({...t,[m]:x,[f]:v});return{...y,data:{x:y.x-r,y:y.y-a,enabled:{[m]:i,[f]:o}}}}}},bJ=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:a,placement:n,rects:i,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:u=!0}=Co(e,t),h={x:r,y:a},f=wi(n),m=Gj(f);let x=h[m],v=h[f];const y=Co(s,t),b=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(c){const E=m==="y"?"height":"width",j=i.reference[m]-i.floating[E]+b.mainAxis,P=i.reference[m]+i.reference[E]-b.mainAxis;x<j?x=j:x>P&&(x=P)}if(u){var S,A;const E=m==="y"?"width":"height",j=rz.has(Po(n)),P=i.reference[f]-i.floating[E]+(j&&((S=o.offset)==null?void 0:S[f])||0)+(j?0:b.crossAxis),C=i.reference[f]+i.reference[E]+(j?0:((A=o.offset)==null?void 0:A[f])||0)-(j?b.crossAxis:0);v<P?v=P:v>C&&(v=C)}return{[m]:x,[f]:v}}}},wJ=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,a;const{placement:n,rects:i,platform:o,elements:s}=t,{apply:c=()=>{},...u}=Co(e,t),h=await _p(t,u),f=Po(n),m=xd(n),x=wi(n)==="y",{width:v,height:y}=i.floating;let b,S;f==="top"||f==="bottom"?(b=f,S=m===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(S=f,b=m==="end"?"top":"bottom");const A=y-h.top-h.bottom,E=v-h.left-h.right,j=ws(y-h[b],A),P=ws(v-h[S],E),C=!t.middlewareData.shift;let N=j,O=P;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(O=E),(a=t.middlewareData.shift)!=null&&a.enabled.y&&(N=A),C&&!m){const B=ln(h.left,0),$=ln(h.right,0),_=ln(h.top,0),W=ln(h.bottom,0);x?O=v-2*(B!==0||$!==0?B+$:ln(h.left,h.right)):N=y-2*(_!==0||W!==0?_+W:ln(h.top,h.bottom))}await c({...t,availableWidth:O,availableHeight:N});const k=await o.getDimensions(s.floating);return v!==k.width||y!==k.height?{reset:{rects:!0}}:{}}}};function Jv(){return typeof window<"u"}function vd(e){return az(e)?(e.nodeName||"").toLowerCase():"#document"}function fn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Oi(e){var t;return(t=(az(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function az(e){return Jv()?e instanceof Node||e instanceof fn(e).Node:!1}function ai(e){return Jv()?e instanceof Element||e instanceof fn(e).Element:!1}function ki(e){return Jv()?e instanceof HTMLElement||e instanceof fn(e).HTMLElement:!1}function V4(e){return!Jv()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof fn(e).ShadowRoot}const SJ=new Set(["inline","contents"]);function Dh(e){const{overflow:t,overflowX:r,overflowY:a,display:n}=ni(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+r)&&!SJ.has(n)}const EJ=new Set(["table","td","th"]);function AJ(e){return EJ.has(vd(e))}const CJ=[":popover-open",":modal"];function Qv(e){return CJ.some(t=>{try{return e.matches(t)}catch{return!1}})}const PJ=["transform","translate","scale","rotate","perspective"],jJ=["transform","translate","scale","rotate","perspective","filter"],NJ=["paint","layout","strict","content"];function Xj(e){const t=Yj(),r=ai(e)?ni(e):e;return PJ.some(a=>r[a]?r[a]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||jJ.some(a=>(r.willChange||"").includes(a))||NJ.some(a=>(r.contain||"").includes(a))}function TJ(e){let t=Ss(e);for(;ki(t)&&!ku(t);){if(Xj(t))return t;if(Qv(t))return null;t=Ss(t)}return null}function Yj(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const kJ=new Set(["html","body","#document"]);function ku(e){return kJ.has(vd(e))}function ni(e){return fn(e).getComputedStyle(e)}function ey(e){return ai(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ss(e){if(vd(e)==="html")return e;const t=e.assignedSlot||e.parentNode||V4(e)&&e.host||Oi(e);return V4(t)?t.host:t}function nz(e){const t=Ss(e);return ku(t)?e.ownerDocument?e.ownerDocument.body:e.body:ki(t)&&Dh(t)?t:nz(t)}function Rp(e,t,r){var a;t===void 0&&(t=[]),r===void 0&&(r=!0);const n=nz(e),i=n===((a=e.ownerDocument)==null?void 0:a.body),o=fn(n);if(i){const s=SC(o);return t.concat(o,o.visualViewport||[],Dh(n)?n:[],s&&r?Rp(s):[])}return t.concat(n,Rp(n,[],r))}function SC(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function iz(e){const t=ni(e);let r=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const n=ki(e),i=n?e.offsetWidth:r,o=n?e.offsetHeight:a,s=Px(r)!==i||Px(a)!==o;return s&&(r=i,a=o),{width:r,height:a,$:s}}function Zj(e){return ai(e)?e:e.contextElement}function bu(e){const t=Zj(e);if(!ki(t))return Ai(1);const r=t.getBoundingClientRect(),{width:a,height:n,$:i}=iz(t);let o=(i?Px(r.width):r.width)/a,s=(i?Px(r.height):r.height)/n;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const DJ=Ai(0);function oz(e){const t=fn(e);return!Yj()||!t.visualViewport?DJ:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function _J(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==fn(e)?!1:t}function Il(e,t,r,a){t===void 0&&(t=!1),r===void 0&&(r=!1);const n=e.getBoundingClientRect(),i=Zj(e);let o=Ai(1);t&&(a?ai(a)&&(o=bu(a)):o=bu(e));const s=_J(i,r,a)?oz(i):Ai(0);let c=(n.left+s.x)/o.x,u=(n.top+s.y)/o.y,h=n.width/o.x,f=n.height/o.y;if(i){const m=fn(i),x=a&&ai(a)?fn(a):a;let v=m,y=SC(v);for(;y&&a&&x!==v;){const b=bu(y),S=y.getBoundingClientRect(),A=ni(y),E=S.left+(y.clientLeft+parseFloat(A.paddingLeft))*b.x,j=S.top+(y.clientTop+parseFloat(A.paddingTop))*b.y;c*=b.x,u*=b.y,h*=b.x,f*=b.y,c+=E,u+=j,v=fn(y),y=SC(v)}}return Nx({width:h,height:f,x:c,y:u})}function ty(e,t){const r=ey(e).scrollLeft;return t?t.left+r:Il(Oi(e)).left+r}function sz(e,t){const r=e.getBoundingClientRect(),a=r.left+t.scrollLeft-ty(e,r),n=r.top+t.scrollTop;return{x:a,y:n}}function RJ(e){let{elements:t,rect:r,offsetParent:a,strategy:n}=e;const i=n==="fixed",o=Oi(a),s=t?Qv(t.floating):!1;if(a===o||s&&i)return r;let c={scrollLeft:0,scrollTop:0},u=Ai(1);const h=Ai(0),f=ki(a);if((f||!f&&!i)&&((vd(a)!=="body"||Dh(o))&&(c=ey(a)),ki(a))){const x=Il(a);u=bu(a),h.x=x.x+a.clientLeft,h.y=x.y+a.clientTop}const m=o&&!f&&!i?sz(o,c):Ai(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+h.x+m.x,y:r.y*u.y-c.scrollTop*u.y+h.y+m.y}}function OJ(e){return Array.from(e.getClientRects())}function MJ(e){const t=Oi(e),r=ey(e),a=e.ownerDocument.body,n=ln(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),i=ln(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let o=-r.scrollLeft+ty(e);const s=-r.scrollTop;return ni(a).direction==="rtl"&&(o+=ln(t.clientWidth,a.clientWidth)-n),{width:n,height:i,x:o,y:s}}const U4=25;function IJ(e,t){const r=fn(e),a=Oi(e),n=r.visualViewport;let i=a.clientWidth,o=a.clientHeight,s=0,c=0;if(n){i=n.width,o=n.height;const h=Yj();(!h||h&&t==="fixed")&&(s=n.offsetLeft,c=n.offsetTop)}const u=ty(a);if(u<=0){const h=a.ownerDocument,f=h.body,m=getComputedStyle(f),x=h.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,v=Math.abs(a.clientWidth-f.clientWidth-x);v<=U4&&(i-=v)}else u<=U4&&(i+=u);return{width:i,height:o,x:s,y:c}}const BJ=new Set(["absolute","fixed"]);function LJ(e,t){const r=Il(e,!0,t==="fixed"),a=r.top+e.clientTop,n=r.left+e.clientLeft,i=ki(e)?bu(e):Ai(1),o=e.clientWidth*i.x,s=e.clientHeight*i.y,c=n*i.x,u=a*i.y;return{width:o,height:s,x:c,y:u}}function H4(e,t,r){let a;if(t==="viewport")a=IJ(e,r);else if(t==="document")a=MJ(Oi(e));else if(ai(t))a=LJ(t,r);else{const n=oz(e);a={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Nx(a)}function lz(e,t){const r=Ss(e);return r===t||!ai(r)||ku(r)?!1:ni(r).position==="fixed"||lz(r,t)}function zJ(e,t){const r=t.get(e);if(r)return r;let a=Rp(e,[],!1).filter(s=>ai(s)&&vd(s)!=="body"),n=null;const i=ni(e).position==="fixed";let o=i?Ss(e):e;for(;ai(o)&&!ku(o);){const s=ni(o),c=Xj(o);!c&&s.position==="fixed"&&(n=null),(i?!c&&!n:!c&&s.position==="static"&&!!n&&BJ.has(n.position)||Dh(o)&&!c&&lz(e,o))?a=a.filter(h=>h!==o):n=s,o=Ss(o)}return t.set(e,a),a}function FJ(e){let{element:t,boundary:r,rootBoundary:a,strategy:n}=e;const o=[...r==="clippingAncestors"?Qv(t)?[]:zJ(t,this._c):[].concat(r),a],s=o[0],c=o.reduce((u,h)=>{const f=H4(t,h,n);
vendor: 4,833 bytes, line 49
49return u.top=ln(f.top,u.top),u.right=ws(f.right,u.right),u.bottom=ws(f.bottom,u.bottom),u.left=ln(f.left,u.left),u},H4(t,s,n));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function $J(e){const{width:t,height:r}=iz(e);return{width:t,height:r}}function qJ(e,t,r){const a=ki(t),n=Oi(t),i=r==="fixed",o=Il(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=Ai(0);function u(){c.x=ty(n)}if(a||!a&&!i)if((vd(t)!=="body"||Dh(n))&&(s=ey(t)),a){const x=Il(t,!0,i,t);c.x=x.x+t.clientLeft,c.y=x.y+t.clientTop}else n&&u();i&&!a&&n&&u();const h=n&&!a&&!i?sz(n,s):Ai(0),f=o.left+s.scrollLeft-c.x-h.x,m=o.top+s.scrollTop-c.y-h.y;return{x:f,y:m,width:o.width,height:o.height}}function D1(e){return ni(e).position==="static"}function G4(e,t){if(!ki(e)||ni(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Oi(e)===r&&(r=r.ownerDocument.body),r}function cz(e,t){const r=fn(e);if(Qv(e))return r;if(!ki(e)){let n=Ss(e);for(;n&&!ku(n);){if(ai(n)&&!D1(n))return n;n=Ss(n)}return r}let a=G4(e,t);for(;a&&AJ(a)&&D1(a);)a=G4(a,t);return a&&ku(a)&&D1(a)&&!Xj(a)?r:a||TJ(e)||r}const VJ=async function(e){const t=this.getOffsetParent||cz,r=this.getDimensions,a=await r(e.floating);return{reference:qJ(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function UJ(e){return ni(e).direction==="rtl"}const HJ={convertOffsetParentRelativeRectToViewportRelativeRect:RJ,getDocumentElement:Oi,getClippingRect:FJ,getOffsetParent:cz,getElementRects:VJ,getClientRects:OJ,getDimensions:$J,getScale:bu,isElement:ai,isRTL:UJ};function uz(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function GJ(e,t){let r=null,a;const n=Oi(e);function i(){var s;clearTimeout(a),(s=r)==null||s.disconnect(),r=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),i();const u=e.getBoundingClientRect(),{left:h,top:f,width:m,height:x}=u;if(s||t(),!m||!x)return;const v=Sg(f),y=Sg(n.clientWidth-(h+m)),b=Sg(n.clientHeight-(f+x)),S=Sg(h),E={rootMargin:-v+"px "+-y+"px "+-b+"px "+-S+"px",threshold:ln(0,ws(1,c))||1};let j=!0;function P(C){const N=C[0].intersectionRatio;if(N!==c){if(!j)return o();N?o(!1,N):a=setTimeout(()=>{o(!1,1e-7)},1e3)}N===1&&!uz(u,e.getBoundingClientRect())&&o(),j=!1}try{r=new IntersectionObserver(P,{...E,root:n.ownerDocument})}catch{r=new IntersectionObserver(P,E)}r.observe(e)}return o(!0),i}function KJ(e,t,r,a){a===void 0&&(a={});const{ancestorScroll:n=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=a,u=Zj(e),h=n||i?[...u?Rp(u):[],...Rp(t)]:[];h.forEach(S=>{n&&S.addEventListener("scroll",r,{passive:!0}),i&&S.addEventListener("resize",r)});const f=u&&s?GJ(u,r):null;let m=-1,x=null;o&&(x=new ResizeObserver(S=>{let[A]=S;A&&A.target===u&&x&&(x.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var E;(E=x)==null||E.observe(t)})),r()}),u&&!c&&x.observe(u),x.observe(t));let v,y=c?Il(e):null;c&&b();function b(){const S=Il(e);y&&!uz(y,S)&&r(),y=S,v=requestAnimationFrame(b)}return r(),()=>{var S;h.forEach(A=>{n&&A.removeEventListener("scroll",r),i&&A.removeEventListener("resize",r)}),f?.(),(S=x)==null||S.disconnect(),x=null,c&&cancelAnimationFrame(v)}}const WJ=vJ,XJ=yJ,YJ=mJ,ZJ=wJ,JJ=gJ,K4=hJ,QJ=bJ,eQ=(e,t,r)=>{const a=new Map,n={platform:HJ,...r},i={...n.platform,_c:a};return pJ(e,t,{...n,platform:i})};var tQ=typeof document<"u",rQ=function(){},hx=tQ?L.useLayoutEffect:rQ;function Tx(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,a,n;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(a=r;a--!==0;)if(!Tx(e[a],t[a]))return!1;return!0}if(n=Object.keys(e),r=n.length,r!==Object.keys(t).length)return!1;for(a=r;a--!==0;)if(!{}.hasOwnProperty.call(t,n[a]))return!1;for(a=r;a--!==0;){const i=n[a];if(!(i==="_owner"&&e.$$typeof)&&!Tx(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function dz(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function W4(e,t){const r=dz(e);return Math.round(t*r)/r}function _1(e){const t=L.useRef(e);return hx(()=>{t.current=e}),t}function aQ(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:a=[],platform:n,elements:{reference:i,floating:o}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[h,f]=L.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[m,x]=L.useState(a);Tx(m,a)||x(a);const[v,y]=L.useState(null),[b,S]=L.useState(null),A=L.useCallback(Z=>{Z!==C.current&&(C.current=Z,y(Z))},[]),E=L.useCallback(Z=>{Z!==N.current&&(N.current=Z,S(Z))},[]),j=i||v,P=o||b,C=L.useRef(null),N=L.useRef(null),O=L.useRef(h),k=c!=null,B=_1(c),$=_1(n),_=_1(u),W=L.useCallback(()=>
vendor: 4,928 bytes, line 49
49{if(!C.current||!N.current)return;const Z={placement:t,strategy:r,middleware:m};$.current&&(Z.platform=$.current),eQ(C.current,N.current,Z).then(te=>{const K={...te,isPositioned:_.current!==!1};D.current&&!Tx(O.current,K)&&(O.current=K,xs.flushSync(()=>{f(K)}))})},[m,t,r,$,_]);hx(()=>{u===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,f(Z=>({...Z,isPositioned:!1})))},[u]);const D=L.useRef(!1);hx(()=>(D.current=!0,()=>{D.current=!1}),[]),hx(()=>{if(j&&(C.current=j),P&&(N.current=P),j&&P){if(B.current)return B.current(j,P,W);W()}},[j,P,W,B,k]);const J=L.useMemo(()=>({reference:C,floating:N,setReference:A,setFloating:E}),[A,E]),z=L.useMemo(()=>({reference:j,floating:P}),[j,P]),V=L.useMemo(()=>{const Z={position:r,left:0,top:0};if(!z.floating)return Z;const te=W4(z.floating,h.x),K=W4(z.floating,h.y);return s?{...Z,transform:"translate("+te+"px, "+K+"px)",...dz(z.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:te,top:K}},[r,s,z.floating,h.x,h.y]);return L.useMemo(()=>({...h,update:W,refs:J,elements:z,floatingStyles:V}),[h,W,J,z,V])}const nQ=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:a,padding:n}=typeof e=="function"?e(r):e;return a&&t(a)?a.current!=null?K4({element:a.current,padding:n}).fn(r):{}:a?K4({element:a,padding:n}).fn(r):{}}}},iQ=(e,t)=>({...WJ(e),options:[e,t]}),oQ=(e,t)=>({...XJ(e),options:[e,t]}),sQ=(e,t)=>({...QJ(e),options:[e,t]}),lQ=(e,t)=>({...YJ(e),options:[e,t]}),cQ=(e,t)=>({...ZJ(e),options:[e,t]}),uQ=(e,t)=>({...JJ(e),options:[e,t]}),dQ=(e,t)=>({...nQ(e),options:[e,t]});var fQ="Arrow",fz=L.forwardRef((e,t)=>{const{children:r,width:a=10,height:n=5,...i}=e;return p.jsx(Ha.svg,{...i,ref:t,width:a,height:n,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});fz.displayName=fQ;var pQ=fz;function hQ(e){const[t,r]=L.useState(void 0);return bs(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const a=new ResizeObserver(n=>{if(!Array.isArray(n)||!n.length)return;const i=n[0];let o,s;if("borderBoxSize"in i){const c=i.borderBoxSize,u=Array.isArray(c)?c[0]:c;o=u.inlineSize,s=u.blockSize}else o=e.offsetWidth,s=e.offsetHeight;r({width:o,height:s})});return a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else r(void 0)},[e]),t}var pz="Popper",[hz,mz]=Vj(pz),[LMe,gz]=hz(pz),xz="PopperAnchor",vz=L.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:a,...n}=e,i=gz(xz,r),o=L.useRef(null),s=si(t,o),c=L.useRef(null);return L.useEffect(()=>{const u=c.current;c.current=a?.current||o.current,u!==c.current&&i.onAnchorChange(c.current)}),a?null:p.jsx(Ha.div,{...n,ref:s})});vz.displayName=xz;var Jj="PopperContent",[mQ,gQ]=hz(Jj),yz=L.forwardRef((e,t)=>{const{__scopePopper:r,side:a="bottom",sideOffset:n=0,align:i="center",alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:h=0,sticky:f="partial",hideWhenDetached:m=!1,updatePositionStrategy:x="optimized",onPlaced:v,...y}=e,b=gz(Jj,r),[S,A]=L.useState(null),E=si(t,Y=>A(Y)),[j,P]=L.useState(null),C=hQ(j),N=C?.width??0,O=C?.height??0,k=a+(i!=="center"?"-"+i:""),B=typeof h=="number"?h:{top:0,right:0,bottom:0,left:0,...h},$=Array.isArray(u)?u:[u],_=$.length>0,W={padding:B,boundary:$.filter(vQ),altBoundary:_},{refs:D,floatingStyles:J,placement:z,isPositioned:V,middlewareData:Z}=aQ({strategy:"fixed",placement:k,whileElementsMounted:(...Y)=>KJ(...Y,{animationFrame:x==="always"}),elements:{reference:b.anchor},middleware:[iQ({mainAxis:n+O,alignmentAxis:o}),c&&oQ({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?sQ():void 0,...W}),c&&lQ({...W}),cQ({...W,apply:({elements:Y,rects:F,availableWidth:ae,availableHeight:ne})=>{const{width:ge,height:re}=F.reference,oe=Y.floating.style;oe.setProperty("--radix-popper-available-width",`${ae}px`),oe.setProperty("--radix-popper-available-height",`${ne}px`),oe.setProperty("--radix-popper-anchor-width",`${ge}px`),oe.setProperty("--radix-popper-anchor-height",`${re}px`)}}),j&&dQ({element:j,padding:s}),yQ({arrowWidth:N,arrowHeight:O}),m&&uQ({strategy:"referenceHidden",...W})]}),[te,K]=Sz(z),q=Tu(v);bs(()=>{V&&q?.()},[V,q]);const X=Z.arrow?.x,U=Z.arrow?.y,ie=Z.arrow?.centerOffset!==0,[se,he]=L.useState();return bs(()=>{S&&he(window.getComputedStyle(S).zIndex)},[S]),p.jsx("div",{ref:D.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:V?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:se,"--radix-popper-transform-origin":[Z.transformOrigin?.x,Z.transformOrigin?.y].join(" "),...Z.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(mQ,{scope:r,placedSide:te,onArrowChange:P,arrowX:X,arrowY:U,shouldHideArrow:ie,children:p.jsx(Ha.div,{"data-side":te,"data-align":K,...y,ref:E,style:{...y.style,animation:V?void 0:"none"}})})})});yz.displayName=Jj;var bz="PopperArrow",xQ={top:"bottom",right:"left",bottom:"top",left:"r
49ight"},wz=L.forwardRef(function(t,r){const{__scopePopper:a,...n}=t,i=gQ(bz,a),o=xQ[i.placedSide];return p.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:p.jsx(pQ,{...n,ref:r,style:{...n.style,display:"block"}})})});wz.displayName=bz;function vQ(e){return e!==null}var yQ=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:a,middlewareData:n}=t,o=n.arrow?.centerOffset!==0,s=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[u,h]=Sz(r),f={start:"0%",center:"50%",end:"100%"}[h],m=(n.arrow?.x??0)+s/2,x=(n.arrow?.y??0)+c/2;let v="",y="";return u==="bottom"?(v=o?f:`${m}px`,y=`${-c}px`):u==="top"?(v=o?f:`${m}px`,y=`${a.floating.height+c}px`):u==="right"?(v=`${-c}px`,y=o?f:`${x}px`):u==="left"&&(v=`${a.floating.width+c}px`,y=o?f:`${x}px`),{data:{x:v,y}}}});function Sz(e){const[t,r="center"]=e.split("-");return[t,r]}var bQ=vz,wQ=yz,SQ=wz,EQ="Portal",Ez=L.forwardRef((e,t)=>{const{container:r,...a}=e,[n,i]=L.useState(!1);bs(()=>i(!0),[]);const o=r||n&&globalThis?.document?.body;return o?X7.createPortal(p.jsx(Ha.div,{...a,ref:t}),o):null});Ez.displayName=EQ;function AQ(e,t){return L.useReducer((r,a)=>t[r][a]??r,e)}var _h=e=>{const{present:t,children:r}=e,a=CQ(t),n=typeof r=="function"?r({present:a.isPresent}):L.Children.only(r),i=si(a.ref,PQ(n));return typeof r=="function"||a.isPresent?L.cloneElement(n,{ref:i}):null};_h.displayName="Presence";function CQ(e){const[t,r]=L.useState(),a=L.useRef(null),n=L.useRef(e),i=L.useRef("none"),o=e?"mounted":"unmounted",[s,c]=AQ(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return L.useEffect(()=>{const u=Eg(a.current);i.current=s==="mounted"?u:"none"},[s]),bs(()=>{const u=a.current,h=n.current;if(h!==e){const m=i.current,x=Eg(u);e?c("MOUNT"):x==="none"||u?.display==="none"?c("UNMOUNT"):c(h&&m!==x?"ANIMATION_OUT":"UNMOUNT"),n.current=e}},[e,c]),bs(()=>{if(t){let u;const h=t.ownerDocument.defaultView??window,f=x=>{const y=Eg(a.current).includes(CSS.escape(x.animationName));if(x.target===t&&y&&(c("ANIMATION_END"),!n.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=h.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},m=x=>{x.target===t&&(i.current=Eg(a.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{h.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:L.useCallback(u=>{a.current=u?getComputedStyle(u):null,r(u)},[])}}function Eg(e){return e?.animationName||"none"}function PQ(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var jQ=W7[" useInsertionEffect ".trim().toString()]||bs;function NQ({prop:e,defaultProp:t,onChange:r=()=>{},caller:a}){const[n,i,o]=TQ({defaultProp:t,onChange:r}),s=e!==void 0,c=s?e:n;{const h=L.useRef(e!==void 0);L.useEffect(()=>{const f=h.current;f!==s&&console.warn(`${a} is changing from ${f?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),h.current=s},[s,a])}const u=L.useCallback(h=>{if(s){const f=kQ(h)?h(e):h;f!==e&&o.current?.(f)}else i(h)},[s,e,i,o]);return[c,u]}function TQ({defaultProp:e,onChange:t}){const[r,a]=L.useState(e),n=L.useRef(r),i=L.useRef(t);return jQ(()=>{i.current=t},[t]),L.useEffect(()=>{n.current!==r&&(i.current?.(r),n.current=r)},[r,n]),[r,a,i]}function kQ(e){return typeof e=="function"}var DQ=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),_Q="VisuallyHidden",Az=L.forwardRef((e,t)=>
vendor: 4,389 bytes, line 49
49p.jsx(Ha.span,{...e,ref:t,style:{...DQ,...e.style}}));Az.displayName=_Q;var RQ=Az,[ry]=Vj("Tooltip",[mz]),Qj=mz(),Cz="TooltipProvider",OQ=700,X4="tooltip.open",[MQ,Pz]=ry(Cz),jz=e=>{const{__scopeTooltip:t,delayDuration:r=OQ,skipDelayDuration:a=300,disableHoverableContent:n=!1,children:i}=e,o=L.useRef(!0),s=L.useRef(!1),c=L.useRef(0);return L.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),p.jsx(MQ,{scope:t,isOpenDelayedRef:o,delayDuration:r,onOpen:L.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:L.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,a)},[a]),isPointerInTransitRef:s,onPointerInTransitChange:L.useCallback(u=>{s.current=u},[]),disableHoverableContent:n,children:i})};jz.displayName=Cz;var Nz="Tooltip",[zMe,ay]=ry(Nz),EC="TooltipTrigger",IQ=L.forwardRef((e,t)=>{const{__scopeTooltip:r,...a}=e,n=ay(EC,r),i=Pz(EC,r),o=Qj(r),s=L.useRef(null),c=si(t,s,n.onTriggerChange),u=L.useRef(!1),h=L.useRef(!1),f=L.useCallback(()=>u.current=!1,[]);return L.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),p.jsx(bQ,{asChild:!0,...o,children:p.jsx(Ha.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...a,ref:c,onPointerMove:$a(e.onPointerMove,m=>{m.pointerType!=="touch"&&!h.current&&!i.isPointerInTransitRef.current&&(n.onTriggerEnter(),h.current=!0)}),onPointerLeave:$a(e.onPointerLeave,()=>{n.onTriggerLeave(),h.current=!1}),onPointerDown:$a(e.onPointerDown,()=>{n.open&&n.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:$a(e.onFocus,()=>{u.current||n.onOpen()}),onBlur:$a(e.onBlur,n.onClose),onClick:$a(e.onClick,n.onClose)})})});IQ.displayName=EC;var BQ="TooltipPortal",[FMe,LQ]=ry(BQ,{forceMount:void 0}),Du="TooltipContent",zQ=L.forwardRef((e,t)=>{const r=LQ(Du,e.__scopeTooltip),{forceMount:a=r.forceMount,side:n="top",...i}=e,o=ay(Du,e.__scopeTooltip);return p.jsx(_h,{present:a||o.open,children:o.disableHoverableContent?p.jsx(Tz,{side:n,...i,ref:t}):p.jsx(FQ,{side:n,...i,ref:t})})}),FQ=L.forwardRef((e,t)=>{const r=ay(Du,e.__scopeTooltip),a=Pz(Du,e.__scopeTooltip),n=L.useRef(null),i=si(t,n),[o,s]=L.useState(null),{trigger:c,onClose:u}=r,h=n.current,{onPointerInTransitChange:f}=a,m=L.useCallback(()=>{s(null),f(!1)},[f]),x=L.useCallback((v,y)=>{const b=v.currentTarget,S={x:v.clientX,y:v.clientY},A=HQ(S,b.getBoundingClientRect()),E=GQ(S,A),j=KQ(y.getBoundingClientRect()),P=XQ([...E,...j]);s(P),f(!0)},[f]);return L.useEffect(()=>()=>m(),[m]),L.useEffect(()=>{if(c&&h){const v=b=>x(b,h),y=b=>x(b,c);return c.addEventListener("pointerleave",v),h.addEventListener("pointerleave",y),()=>{c.removeEventListener("pointerleave",v),h.removeEventListener("pointerleave",y)}}},[c,h,x,m]),L.useEffect(()=>{if(o){const v=y=>{const b=y.target,S={x:y.clientX,y:y.clientY},A=c?.contains(b)||h?.contains(b),E=!WQ(S,o);A?m():E&&(m(),u())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[c,h,o,u,m]),p.jsx(Tz,{...e,ref:i})}),[$Q,qQ]=ry(Nz,{isInside:!1}),VQ=FZ("TooltipContent"),Tz=L.forwardRef((e,t)=>{const{__scopeTooltip:r,children:a,"aria-label":n,onEscapeKeyDown:i,onPointerDownOutside:o,...s}=e,c=ay(Du,r),u=Qj(r),{onClose:h}=c;return L.useEffect(()=>(document.addEventListener(X4,h),()=>document.removeEventListener(X4,h)),[h]),L.useEffect(()=>{if(c.trigger){const f=m=>{m.target?.contains(c.trigger)&&h()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[c.trigger,h]),p.jsx(Hj,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:f=>f.preventDefault(),onDismiss:h,children:p.jsxs(wQ,{"data-state":c.stateAttribute,...u,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[p.jsx(VQ,{children:a}),p.jsx($Q,{scope:r,isInside:!0,children:p.jsx(RQ,{id:c.contentId,role:"tooltip",children:n||a})})]})})});zQ.displayName=Du;var kz="TooltipArrow",UQ=L.forwardRef((e,t)=>
vendor: 9,445 bytes, line 49
49{const{__scopeTooltip:r,...a}=e,n=Qj(r);return qQ(kz,r).isInside?null:p.jsx(SQ,{...n,...a,ref:t})});UQ.displayName=kz;function HQ(e,t){const r=Math.abs(t.top-e.y),a=Math.abs(t.bottom-e.y),n=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,a,n,i)){case i:return"left";case n:return"right";case r:return"top";case a:return"bottom";default:throw new Error("unreachable")}}function GQ(e,t,r=5){const a=[];switch(t){case"top":a.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":a.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":a.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":a.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return a}function KQ(e){const{top:t,right:r,bottom:a,left:n}=e;return[{x:n,y:t},{x:r,y:t},{x:r,y:a},{x:n,y:a}]}function WQ(e,t){const{x:r,y:a}=e;let n=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const s=t[i],c=t[o],u=s.x,h=s.y,f=c.x,m=c.y;h>a!=m>a&&r<(f-u)*(a-h)/(m-h)+u&&(n=!n)}return n}function XQ(e){const t=e.slice();return t.sort((r,a)=>r.x<a.x?-1:r.x>a.x?1:r.y<a.y?-1:r.y>a.y?1:0),YQ(t)}function YQ(e){if(e.length<=1)return e.slice();const t=[];for(let a=0;a<e.length;a++){const n=e[a];for(;t.length>=2;){const i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(n.y-o.y)>=(i.y-o.y)*(n.x-o.x))t.pop();else break}t.push(n)}t.pop();const r=[];for(let a=e.length-1;a>=0;a--){const n=e[a];for(;r.length>=2;){const i=r[r.length-1],o=r[r.length-2];if((i.x-o.x)*(n.y-o.y)>=(i.y-o.y)*(n.x-o.x))r.pop();else break}r.push(n)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var ZQ=jz;function Dz(e){var t,r,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=Dz(e[t]))&&(a&&(a+=" "),a+=r)}else for(r in e)e[r]&&(a&&(a+=" "),a+=r);return a}function wt(){for(var e,t,r=0,a="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=Dz(e))&&(a&&(a+=" "),a+=t);return a}const eN="-",JQ=e=>{const t=eee(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:o=>{const s=o.split(eN);return s[0]===""&&s.length!==1&&s.shift(),_z(s,t)||QQ(o)},getConflictingClassGroupIds:(o,s)=>{const c=r[o]||[];return s&&a[o]?[...c,...a[o]]:c}}},_z=(e,t)=>{if(e.length===0)return t.classGroupId;const r=e[0],a=t.nextPart.get(r),n=a?_z(e.slice(1),a):void 0;if(n)return n;if(t.validators.length===0)return;const i=e.join(eN);return t.validators.find(({validator:o})=>o(i))?.classGroupId},Y4=/^\[(.+)\]$/,QQ=e=>{if(Y4.test(e)){const t=Y4.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},eee=e=>{const{theme:t,classGroups:r}=e,a={nextPart:new Map,validators:[]};for(const n in r)AC(r[n],a,n,t);return a},AC=(e,t,r,a)=>{e.forEach(n=>{if(typeof n=="string"){const i=n===""?t:Z4(t,n);i.classGroupId=r;return}if(typeof n=="function"){if(tee(n)){AC(n(a),t,r,a);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([i,o])=>{AC(o,Z4(t,i),r,a)})})},Z4=(e,t)=>{let r=e;return t.split(eN).forEach(a=>{r.nextPart.has(a)||r.nextPart.set(a,{nextPart:new Map,validators:[]}),r=r.nextPart.get(a)}),r},tee=e=>e.isThemeGetter,ree=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,a=new Map;const n=(i,o)=>{r.set(i,o),t++,t>e&&(t=0,a=r,r=new Map)};return{get(i){let o=r.get(i);if(o!==void 0)return o;if((o=a.get(i))!==void 0)return n(i,o),o},set(i,o){r.has(i)?r.set(i,o):n(i,o)}}},CC="!",PC=":",aee=PC.length,nee=e=>{const{prefix:t,experimentalParseClassName:r}=e;let a=n=>{const i=[];let o=0,s=0,c=0,u;for(let v=0;v<n.length;v++){let y=n[v];if(o===0&&s===0){if(y===PC){i.push(n.slice(c,v)),c=v+aee;continue}if(y==="/"){u=v;continue}}y==="["?o++:y==="]"?o--:y==="("?s++:y===")"&&s--}const h=i.length===0?n:n.substring(c),f=iee(h),m=f!==h,x=u&&u>c?u-c:void 0;return{modifiers:i,hasImportantModifier:m,baseClassName:f,maybePostfixModifierPosition:x}};if(t){const n=t+PC,i=a;a=o=>o.startsWith(n)?i(o.substring(n.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:o,maybePostfixModifierPosition:void 0}}if(r){const n=a;a=i=>r({className:i,parseClassName:n})}return a},iee=e=>e.endsWith(CC)?e.substring(0,e.length-1):e.startsWith(CC)?e.substring(1):e,oee=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(a=>[a,!0]));return a=>{if(a.length<=1)return a;const n=[];let i=[];return a.forEach(o=>{o[0]==="["||t[o]?(n.push(...i.sort(),o),i=[]):i.push(o)}),n.push(...i.sort()),n}},see=e=>({cache:ree(e.cacheSize),parseClassName:nee(e),sortModifiers:oee(e),...JQ(e)}),lee=/\s+/,cee=(e,t)=>{const{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:n,sortModifiers:i}=t,o=[],s=e.trim().split(lee);let c="";for(let u=s.length-1;u>=0;u-=1){const h=s[u],{isExternal:f,modifiers:m,hasImportantModifier:x,baseClassName:v,maybePostfixModifierPosition:y}=r(h);if(f){c=h+(c.length>0?" "+c:c);continue}let b=!!y,S=a(b?v.substring(0,y):v);if(!S){if(!b){c=h+(c.length>0?" "+c:c);continue}if(S=a(v),!S){c=h+(c.length>0?" "+c:c);continue}b=!1}const A=i(m).join(":"),E=x?A+CC:A,j=E+S;if(o.includes(j))continue;o.push(j);const P=n(S,b);for(let C=0;C<P.length;++C){const N=P[C];o.push(E+N)}c=h+(c.length>0?" "+c:c)}return c};function uee(){let e=0,t,r,a="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Rz(t))&&(a&&(a+=" "),a+=r);return a}const Rz=e=>{if(typeof e=="string")return e;let t,r="";for(let a=0;a<e.length;a++)e[a]&&(t=Rz(e[a]))&&(r&&(r+=" "),r+=t);return r};function dee(e,...t){let r,a,n,i=o;function o(c){const u=t.reduce((h,f)=>f(h),e());return r=see(u),a=r.cache.get,n=r.cache.set,i=s,s(c)}function s(c){const u=a(c);if(u)return u;const h=cee(c,r);return n(c,h),h}return function(){return i(uee.apply(null,arguments))}}const qr=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Oz=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Mz=/^\((?:(\w[\w-]*):)?(.+)\)$/i,fee=/^\d+\/\d+$/,pee=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hee=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,mee=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,gee=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xee=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Uc=e=>fee.test(e),kt=e=>!!e&&!Number.isNaN(Number(e)),ss=e=>!!e&&Number.isInteger(Number(e)),R1=e=>e.endsWith("%")&&kt(e.slice(0,-1)),no=e=>pee.test(e),vee=()=>!0,yee=e=>hee.test(e)&&!mee.test(e),Iz=()=>!1,bee=e=>gee.test(e),wee=e=>xee.test(e),See=e=>!Qe(e)&&!et(e),Eee=e=>yd(e,zz,Iz),Qe=e=>Oz.test(e),rl=e=>yd(e,Fz,yee),O1=e=>yd(e,Nee,kt),J4=e=>yd(e,Bz,Iz),Aee=e=>yd(e,Lz,wee),Ag=e=>yd(e,$z,bee),et=e=>Mz.test(e),Mf=e=>bd(e,Fz),Cee=e=>bd(e,Tee),Q4=e=>bd(e,Bz),Pee=e=>bd(e,zz),jee=e=>bd(e,Lz),Cg=e=>bd(e,$z,!0),yd=(e,t,r)=>{const a=Oz.exec(e);return a?a[1]?t(a[1]):r(a[2]):!1},bd=(e,t,r=!1)=>{const a=Mz.exec(e);return a?a[1]?t(a[1]):r:!1},Bz=e=>e==="position"||e==="percentage",Lz=e=>e==="image"||e==="url",zz=e=>e==="length"||e==="size"||e==="bg-size",Fz=e=>e==="length",Nee=e=>e==="number",Tee=e=>e==="family-name",$z=e=>e==="shadow",kee=()=>{const e=qr("color"),t=qr("font"),r=qr("text"),a=qr("font-weight"),n=qr("tracking"),i=qr("leading"),o=qr("breakpoint"),s=qr("container"),c=qr("spacing"),u=qr("radius"),h=qr("shadow"),f=qr("inset-shadow"),m=qr("text-shadow"),x=qr("drop-shadow"),v=qr("blur"),y=qr("perspective"),b=qr("aspect"),S=qr("ease"),A=qr("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...j(),et,Qe],C=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto","contain","none"],O=()=>[et,Qe,c],k=()=>[Uc,"full","auto",...O()],B=()=>[ss,"none","subgrid",et,Qe],$=()=>["auto",{span:["full",ss,et,Qe]},ss,et,Qe],_=()=>[ss,"auto",et,Qe],W=()=>["auto","min","max","fr",et,Qe],D=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...O()],V=()=>[Uc,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...O()],Z=()=>[e,et,Qe],te=()=>[...j(),Q4,J4,{position:[et,Qe]}],K=()=>["no-repeat",{repeat:["","x","y","space","round"]}],q=()=>["auto","cover","contain",Pee,Eee,{size:[et,Qe]}],X=()=>[R1,Mf,rl],U=()=>["","none","full",u,et,Qe],ie=()=>["",kt,Mf,rl],se=()=>["solid","dashed","dotted","double"],he=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>[kt,R1,Q4,J4],F=()=>["","none",v,et,Qe],ae=()=>["none",kt,et,Qe],ne=()=>["none",kt,et,Qe],ge=()=>[kt,et,Qe],re=()=>[Uc,"full",...O()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[no],breakpoint:[no],color:[vee],container:[no],"drop-shadow":[no],ease:["in","out","in-out"],font:[See],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[no],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[no],shadow:[no],spacing:["px",kt],text:[no],"text-shadow":[no],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Uc,Qe,et,b]}
vendor: 12,842 bytes, line 49
49],container:["container"],columns:[{columns:[kt,Qe,et,s]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:P()}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:k()}],"inset-x":[{"inset-x":k()}],"inset-y":[{"inset-y":k()}],start:[{start:k()}],end:[{end:k()}],top:[{top:k()}],right:[{right:k()}],bottom:[{bottom:k()}],left:[{left:k()}],visibility:["visible","invisible","collapse"],z:[{z:[ss,"auto",et,Qe]}],basis:[{basis:[Uc,"full","auto",s,...O()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[kt,Uc,"auto","initial","none",Qe]}],grow:[{grow:["",kt,et,Qe]}],shrink:[{shrink:["",kt,et,Qe]}],order:[{order:[ss,"first","last","none",et,Qe]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":W()}],"auto-rows":[{"auto-rows":W()}],gap:[{gap:O()}],"gap-x":[{"gap-x":O()}],"gap-y":[{"gap-y":O()}],"justify-content":[{justify:[...D(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...D()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":D()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:O()}],px:[{px:O()}],py:[{py:O()}],ps:[{ps:O()}],pe:[{pe:O()}],pt:[{pt:O()}],pr:[{pr:O()}],pb:[{pb:O()}],pl:[{pl:O()}],m:[{m:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":O()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":O()}],"space-y-reverse":["space-y-reverse"],size:[{size:V()}],w:[{w:[s,"screen",...V()]}],"min-w":[{"min-w":[s,"screen","none",...V()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[o]},...V()]}],h:[{h:["screen","lh",...V()]}],"min-h":[{"min-h":["screen","lh","none",...V()]}],"max-h":[{"max-h":["screen","lh",...V()]}],"font-size":[{text:["base",r,Mf,rl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,et,O1]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",R1,Qe]}],"font-family":[{font:[Cee,Qe,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,et,Qe]}],"line-clamp":[{"line-clamp":[kt,"none",et,O1]}],leading:[{leading:[i,...O()]}],"list-image":[{"list-image":["none",et,Qe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",et,Qe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Z()}],"text-color":[{text:Z()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...se(),"wavy"]}],"text-decoration-thickness":[{decoration:[kt,"from-font","auto",et,rl]}],"text-decoration-color":[{decoration:Z()}],"underline-offset":[{"underline-offset":[kt,"auto",et,Qe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",et,Qe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",et,Qe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:te()}],"bg-repeat":[{bg:K()}],"bg-size":[{bg:q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ss,et,Qe],radial:["",et,Qe],conic:[ss,et,Qe]},jee,Aee]}],"bg-color":[{bg:Z()}],"gradient-from-pos":[{from:X()}],"gradient-via-pos":[{via:X()}],"gradient-to-pos":[{to:X()}],"gradient-from":[{from:Z()}],"gradient-via":[{via:Z()}],"gradient-to":[{to:Z()}],rounded:[{rounded:U()}],"rounded-s":[{"rounded-s":U()}],"rounded-e":[{"rounded-e":U()}],"rounded-t":[{"rounded-t":U()}],"rounded-r":[{"rounded-r":U()}],"rounded-b":[{"rounded-b":U()}],"rounded-l":[{"rounded-l":U()}],"rounded-ss":[{"rounded-ss":U()}],"rounded-se":[{"rounded-se":U()}],"rounded-ee":[{"rounded-ee":U()}],"rounded-es":[{"rounded-es":U()}],"rounded-tl":[{"rounded-tl":U()}],"rounded-tr":[{"rounded-tr":U()}],"rounded-br":[{"rounded-br":U()}],"rounded-bl":[{"rounded-bl":U()}],"border-w":[{border:ie()}],"border-w-x":[{"border-x":ie()}],"border-w-y":[{"border-y":ie()}],"border-w-s":[{"border-s":ie()}],"border-w-e":[{"border-e":ie()}],"border-w-t":[{"border-t":ie()}],"border-w-r":[{"border-r":ie()}],"border-w-b":[{"border-b":ie()}],"border-w-l":[{"border-l":ie()}],"divide-x":[{"divide-x":ie()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ie()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...se(),"hidden","none"]}],"divide-style":[{divide:[...se(),"hidden","none"]}],"border-color":[{border:Z()}],"border-color-x":[{"border-x":Z()}],"border-color-y":[{"border-y":Z()}],"border-color-s":[{"border-s":Z()}],"border-color-e":[{"border-e":Z()}],"border-color-t":[{"border-t":Z()}],"border-color-r":[{"border-r":Z()}],"border-color-b":[{"border-b":Z()}],"border-color-l":[{"border-l":Z()}],"divide-color":[{divide:Z()}],"outline-style":[{outline:[...se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[kt,et,Qe]}],"outline-w":[{outline:["",kt,Mf,rl]}],"outline-color":[{outline:Z()}],shadow:[{shadow:["","none",h,Cg,Ag]}],"shadow-color":[{shadow:Z()}],"inset-shadow":[{"inset-shadow":["none",f,Cg,Ag]}],"inset-shadow-color":[{"inset-shadow":Z()}],"ring-w":[{ring:ie()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Z()}],"ring-offset-w":[{"ring-offset":[kt,rl]}],"ring-offset-color":[{"ring-offset":Z()}],"inset-ring-w":[{"inset-ring":ie()}],"inset-ring-color":[{"inset-ring":Z()}],"text-shadow":[{"text-shadow":["none",m,Cg,Ag]}],"text-shadow-color":[{"text-shadow":Z()}],opacity:[{opacity:[kt,et,Qe]}],"mix-blend":[{"mix-blend":[...he(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":he()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[kt]}],"mask-image-linear-from-pos":[{"mask-linear-from":Y()}],"mask-image-linear-to-pos":[{"mask-linear-to":Y()}],"mask-image-linear-from-color":[{"mask-linear-from":Z()}],"mask-image-linear-to-color":[{"mask-linear-to":Z()}],"mask-image-t-from-pos":[{"mask-t-from":Y()}],"mask-image-t-to-pos":[{"mask-t-to":Y()}],"mask-image-t-from-color":[{"mask-t-from":Z()}],"mask-image-t-to-color":[{"mask-t-to":Z()}],"mask-image-r-from-pos":[{"mask-r-from":Y()}],"mask-image-r-to-pos":[{"mask-r-to":Y()}],"mask-image-r-from-color":[{"mask-r-from":Z()}],"mask-image-r-to-color":[{"mask-r-to":Z()}],"mask-image-b-from-pos":[{"mask-b-from":Y()}],"mask-image-b-to-pos":[{"mask-b-to":Y()}],"mask-image-b-from-color":[{"mask-b-from":Z()}],"mask-image-b-to-color":[{"mask-b-to":Z()}],"mask-image-l-from-pos":[{"mask-l-from":Y()}],"mask-image-l-to-pos":[{"mask-l-to":Y()}],"mask-image-l-from-color":[{"mask-l-from":Z()}],"mask-image-l-to-color":[{"mask-l-to":Z()}],"mask-image-x-from-pos":[{"mask-x-from":Y()}],"mask-image-x-to-pos":[{"mask-x-to":Y()}],"mask-image-x-from-color":[{"mask-x-from":Z()}],"mask-image-x-to-color":[{"mask-x-to":Z()}],"mask-image-y-from-pos":[{"mask-y-from":Y()}],"mask-image-y-to-pos":[{"mask-y-to":Y()}],"mask-image-y-from-color":[{"mask-y-from":Z()}],"mask-image-y-to-color":[{"mask-y-to":Z()}],"mask-image-radial":[{"mask-radial":[et,Qe]}],"mask-image-radial-from-pos":[{"mask-radial-from":Y()}],"mask-image-radial-to-pos":[{"mask-radial-to":Y()}],"mask-image-radial-from-color":[{"mask-radial-from":Z()}],"mask-image-radial-to-color":[{"mask-radial-to":Z()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":j()}],"mask-image-conic-pos":[{"mask-conic":[kt]}],"mask-image-conic-from-pos":[{"mask-conic-from":Y()}],"mask-image-conic-to-pos":[{"mask-conic-to":Y()}],"mask-image-conic-from-color":[{"mask-conic-from":Z()}],"mask-image-conic-to-color":[{"mask-conic-to":Z()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:te()}],"mask-repeat":[{mask:K()}],"mask-size":[{mask:q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",et,Qe]}],filter:[{filter:["","none",et,Qe]}],blur:[{blur:F()}],brightness:[{brightness:[kt,et,Qe]}],contrast:[{contrast:[kt,et,Qe]}],"drop-shadow":[{"drop-shadow":["","none",x,Cg,Ag]}],"drop-shadow-color":[{"drop-shadow":Z()}],grayscale:[{grayscale:["",kt,et,Qe]}],"hue-rotate":[{"hue-rotate":[kt,et,Qe]}],invert:[{invert:["",kt,et,Qe]}],saturate:[{saturate:[kt,et,Qe]}],sepia:[{sepia:["",kt,et,Qe]}],"backdrop-filter":[{"backdrop-filter":["","none",et,Qe]}],"backdrop-blur":[{"backdrop-blur":F()}],"backdrop-brightness":[{"backdrop-brightness":[kt,et,Qe]}],"backdrop-contrast":[{"backdrop-contrast":[kt,et,Qe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",kt,et,Qe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[kt,et,Qe]}],"backdrop-invert":[{"backdrop-invert":["",kt,et,Qe]}],"backdrop-opacity":[{"backdrop-opacity":[kt,et,Qe]}],"backdrop-saturate":[{"backdrop-saturate":[kt,et,Qe]}],"backdrop-sepia":[{"backdrop-sepia":["",kt,et,Qe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":O()}],"border-spacing-x":[{"border-spacing-x":O()}],"border-spacing-y":[{"border-spacing-y":O()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",et,Qe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[kt,"initial",et,Qe]}],ease:[{ease:["linear","initial",S,et,Qe]}],delay:[{delay:[kt,et,Qe]}],animate:[{animate:["none",A,et,Qe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,et,Qe]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:ae()}],"rotate-x":[{"rotate-x":ae()}],"rotate-y":[{"rotate-y":ae()}],"rotate-z":[{"rotate-z":ae()}],scale:[{scale:ne()}],"scale-x":[{"scale-x":ne()}],"scale-y":[{"scale-y":ne()}],"scale-z":[{"scale-z":ne()}],"scale-3d":["scale-3d"],skew:[{skew:ge()}],"skew-x":[{"skew-x":ge()}],"skew-y":[{"skew-y":ge()}],transform:[{transform:[et,Qe,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:re()}],"translate-x":[{"translate-x":re()}],"translate-y":[{"translate-y":re()}],"translate-z":[{"translate-z":re()}],"translate-none":["translate-none"],accent:[{accent:Z()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Z()}
vendor: 6,657 bytes, line 49
49],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",et,Qe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",et,Qe]}],fill:[{fill:["none",...Z()]}],"stroke-w":[{stroke:[kt,Mf,rl,O1]}],stroke:[{stroke:["none",...Z()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Dee=dee(kee);function ii(...e){return Dee(wt(e))}function Pg({delayDuration:e=0,...t}){return p.jsx(ZQ,{"data-loc":"client/src/components/ui/tooltip.tsx:11","data-slot":"tooltip-provider",delayDuration:e,...t})}const ml=[{id:"introducao",titulo:"Introdução e Contexto do Projeto",subtitulo:"Escopo, contrato e partes envolvidas",parte:"conceitual",statusIA:"pendente",conteudo:'Conteúdo a ser gerado/editado. Use "Comentar para IA revisar" ou "Editar diretamente".'},{id:"objetivos",titulo:"Objetivos do Plano de Comunicação",subtitulo:"Objetivo geral, especÃficos e resultados esperados",parte:"conceitual",statusIA:"pendente",conteudo:'Conteúdo a ser gerado/editado. Use "Comentar para IA revisar" ou "Editar diretamente".'},{id:"metodologia",titulo:"Metodologia e Premissas",subtitulo:"Abordagem técnica e marco legal",parte:"conceitual",statusIA:"pendente",conteudo:'Conteúdo a ser gerado/editado. Use "Comentar para IA revisar" ou "Editar diretamente".'},{id:"diagnostico",titulo:"Diagnóstico do MunicÃpio",subtitulo:"Dados socioeconômicos, polÃticos e contexto local",parte:"estrategica",statusIA:"pendente",conteudo:'Conteúdo a ser gerado/editado. Use "Comentar para IA revisar" ou "Editar diretamente".'},{id:"swot",titulo:"Análise SWOT do Cenário",subtitulo:"Forças, fraquezas, oportunidades e ameaças",parte:"estrategica",statusIA:"pendente",conteudo:'Conteúdo a ser gerado/editado. Use "Comentar para IA revisar" ou "Editar diretamente".'},{id:"stakeholders",titulo:"Mapeamento de Stakeholders",subtitulo:"Atores-chave, poder, interesse e posicionamento",parte:"estrategica",statusIA:"pendente",conteudo:'Conteúdo a ser gerado/editado. Use "Comentar para IA revisar" ou "Editar diretamente".'},{id:"estrategia",titulo:"Estratégia de Comunicação e Engajamento",subtitulo:"Narrativa, mensagens-chave, canais e materiais",parte:"estrategica",statusIA:"pendente",conteudo:'Conteúdo a ser gerado/editado. Use "Comentar para IA revisar" ou "Editar diretamente".'},{id:"cronograma",titulo:"Cronograma de Ações",subtitulo:"Fases, prazos e marcos de comunicação",parte:"operacional",statusIA:"pendente",conteudo:'Conteúdo a ser gerado/editado. Use "Comentar para IA revisar" ou "Editar diretamente".'}
49,{id:"monitoramento",titulo:"Monitoramento e Avaliação",subtitulo:"Indicadores, métricas e relatórios",parte:"operacional",statusIA:"pendente",conteudo:'Conteúdo a ser gerado/editado. Use "Comentar para IA revisar" ou "Editar diretamente".'}];function _ee(e="conceitual"){return{id:`secao-${Date.now()}-${Math.random().toString(36).slice(2,7)}`,titulo:"",subtitulo:"",parte:e,statusIA:"pendente",conteudo:'Conteúdo a ser gerado/editado. Use "Comentar para IA revisar" ou "Editar diretamente".'}}function jC(e){return e.toLowerCase().normalize("NFD").replace(/[Ì-ͯ]/g,"").replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"").slice(0,40)}const Kr={iluminacao_publica:{label:"Iluminação Pública",cor:"#C9A84C",icone:"ð¡"},educacao:{label:"Educação",cor:"#5B8FA8",icone:"ð"},saneamento:{label:"Saneamento",cor:"#2D4A2D",icone:"ð§"},saude:{label:"Saúde",cor:"#c0392b",icone:"ð¥"},mobilidade:{label:"Mobilidade Urbana",cor:"#7A8C5E",icone:"ð"},habitacao:{label:"Habitação",cor:"#8B5CF6",icone:"ð "},seguranca:{label:"Segurança Pública",cor:"#1E3A5F",icone:"ð¡ï¸"},meio_ambiente:{label:"Meio Ambiente",cor:"#4a7c59",icone:"ð¿"},cultura_esporte:{label:"Cultura e Esporte",cor:"#E67E22",icone:"ð"},tecnologia:{label:"Tecnologia / Smart City",cor:"#2980B9",icone:"ð¡"}},qz=[{num:1,nome:"TR â MunicÃpio (Termo de Referência)",responsavel:"Coordenador"},{num:2,nome:"Pesquisa â Kick-off",responsavel:"Analista Sênior"},{num:3,nome:"Kick-off com o Cliente",responsavel:"Coordenador"},{num:4,nome:"Plano de Comunicação",responsavel:"Analista Sênior"},{num:5,nome:"Escuta Social",responsavel:"Analista"},{num:6,nome:"Mapeamento de Stakeholders",responsavel:"Analista Sênior"},{num:7,nome:"Estratégia de Engajamento",responsavel:"Coordenador"},{num:8,nome:"Produção de Materiais",responsavel:"Analista"},{num:9,nome:"Execução da Campanha",responsavel:"Analista"},{num:10,nome:"Audiência Pública",responsavel:"Coordenador"},{num:11,nome:"Relatório Pós-Audiência",responsavel:"Analista Sênior"},{num:12,nome:"Entrega Final e Encerramento",responsavel:"Coordenador"}],Ree=[{id:"ibge",nome:"IBGE â Cidades@",url:"https://cidades.ibge.gov.br",tipo:"api_publica",categoria:"dados_municipais",ativa:!0,adicionadaPor:"sistema",descricao:"Dados socioeconômicos, população, IDH, PIB per capita"},{id:"tse",nome:"TSE â Dados Eleitorais",url:"https://dadosabertos.tse.jus.br",tipo:"portal_governo",categoria:"politico_eleitoral",ativa:!0,adicionadaPor:"sistema",descricao:"Histórico eleitoral, vereadores, partidos, votações"},{id:"camara",nome:"Portal da Câmara Municipal",url:"https://www.camara.leg.br",tipo:"portal_governo",categoria:"politico_eleitoral",ativa:!0,adicionadaPor:"sistema",descricao:"Composição da câmara, votações, projetos de lei"},{id:"dou",nome:"Diário Oficial da União",url:"https://www.in.gov.br",tipo:"portal_governo",categoria:"legislacao",ativa:!0,adicionadaPor:"sistema",descricao:"Contratos, licitações, atos oficiais"},{id:"transp",nome:"Portal da Transparência",url:"https://portaldatransparencia.gov.br",tipo:"portal_governo",categoria:"dados_municipais",ativa:!0,adicionadaPor:"sistema",descricao:"Gastos públicos, contratos, servidores"},{id:"radar",nome:"RADAR PPP",url:"https://radarppp.com",tipo:"portal_governo",categoria:"projetos_similares",ativa:!0,adicionadaPor:"sistema",descricao:"Banco de projetos PPP no Brasil, contratos, fases"},{id:"ppi",nome:"PPI â Programa de Parcerias",url:"https://ppi.gov.br",tipo:"portal_governo",categoria:"projetos_similares",ativa:!0,adicionadaPor:"sistema",descricao:"Projetos federais de infraestrutura e parcerias"},{id:"gnews",nome:"Google News (Clipping Local)",url:"https://news.google.com",tipo:"midia",categoria:"midia_local",ativa:!0,adicionadaPor:"sistema",descricao:"NotÃcias recentes sobre o municÃpio e o projeto"},{id:"lei_ppp",nome:"Lei 11.079/2004 â Marco Legal",url:"https://www.planalto.gov.br/ccivil_03/_ato2004-2006/2004/lei/l11079.htm",tipo:"portal_governo",categoria:"legislacao",ativa:!0,adicionadaPor:"sistema",descricao:"Lei geral de PPPs no Brasil"},{id:"base_print",nome:"Base PRINT â Projetos Anteriores",url:void 0,tipo:"base_print",categoria:"aprendizado_ia",ativa:!0,adicionadaPor:"sistema",descricao:"Inteligência extraÃda de projetos concluÃdos pela PRINT"}],Vz=L.createContext(null),NC=[{id:"itaperuna-ilum",municipio:"Itaperuna",estado:"RJ",tipoProjeto:"iluminacao_publica",nomeProjeto:"PPP Iluminação Pública â Itaperuna/RJ",status:"em_andamento",progresso:72,faseAtual:9,cor:"#2563EB",dataInicio:"2023-03-15",lat:-21.2087,lng:-41.8872,diagnostico:{populacao:"103.047",idh:"0,699",pib:"R$ 22.400",prefeito:"Alfredo Paulo Marques Rodrigues",partido:"PSD",camara:"21 vereadores",desafios:"Saúde, saneamento, mobilidade",contextoHistorico:"MunicÃpio do noroeste fluminense com histórico de baixo investimento em infraestrutura urbana.",climaOpiniao:"Favorável ao projeto, com resistência pontual de vereadores de oposição.",maturidadeDigital:"Média â prefeitura com presença digital ativa mas engajamento moderado."},stakeholders:[],fases:qz.map((e,t)=>({...e,status:t<8?"concluido":t===8?"em_andamento":"pendente",data:t<8?`${10+t} mar`:void 0})),plano:{status:"em_revisao",conceitual:"A comunicação de uma PPP de iluminação pública exige uma abordagem que equilibre a linguagem técnica para os tomadores de decisão com uma comunicação acessÃvel para a população..."}
49,hotsite:{status:"rascunho",titulo:"Itaperuna mais iluminada",subtitulo:"Conheça o projeto de PPP de Iluminação Pública e participe da escuta social."},comentariosRevisao:[],analistas:["Ana Paula","Carlos Mendes"]}],Oee=new Set(NC.map(e=>e.id));function Mee({children:e}){const[t,r]=L.useState(NC),[a,n]=L.useState(null),[i,o]=L.useState(Ree),[s,c]=L.useState(!0),u=L.useRef(new Map),h=L.useRef(!1);L.useEffect(()=>{let N=!0;return(async()=>{try{const O=await fetch("/api/projetos");if(!O.ok){O.status===503?console.warn("[ProjectContext] Postgres não configurado â usando apenas seeds."):console.error("[ProjectContext] falha ao carregar projetos:",O.status);return}const k=await O.json();if(!N)return;const B=Array.isArray(k.projetos)?k.projetos:[];r([...B,...NC])}catch(O){console.error("[ProjectContext] erro no fetch inicial:",O)}finally{N&&(c(!1),h.current=!0)}})(),()=>{N=!1}},[]),L.useEffect(()=>{if(h.current)for(const N of t){if(Oee.has(N.id))continue;const O=u.current.get(N.id);O&&clearTimeout(O);const k=setTimeout(()=>{fetch(`/api/projetos/${encodeURIComponent(N.id)}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(N)}).catch(B=>console.error("[auto-save]",N.id,B)),u.current.delete(N.id)},800);u.current.set(N.id,k)}},[t]);const f=t.find(N=>N.id===a)??null,m=L.useCallback(N=>{n(N)},[]),x=L.useCallback((N,O,k,B,$)=>{const _=Kr[k],W=`${N.toLowerCase().replace(/\s/g,"-")}-${k}-${Date.now()}`,D=B??{origem:"padrao"},J=D.secoes?.length?D.secoes.map(V=>({...V})):ml.map(V=>({...V})),z={id:W,municipio:N,estado:O,tipoProjeto:k,nomeProjeto:`PPP ${_.label} â ${N}/${O}`,status:"gerando",progresso:0,faseAtual:1,cor:_.cor,dataInicio:new Date().toISOString().split("T")[0],stakeholders:[],stakeholdersGerados:$?.stakeholdersGerados,fases:qz.map(V=>({...V,status:"pendente"})),plano:{status:"rascunho"},hotsite:{status:"nao_gerado"},diagnostico:$?.diagnostico,sumarioPlano:J,sumarioOrigem:D.origem,comentariosRevisao:[],analistas:[]};return r(V=>[z,...V]),n(W),z},[]),v=L.useCallback((N,O)=>{r(k=>k.map(B=>B.id===N?{...B,...O}:B))},[]),y=L.useCallback((N,O,k)=>{r(B=>B.map($=>$.id!==N||!$.sumarioPlano?$:{...$,sumarioPlano:$.sumarioPlano.map(_=>_.id===O?{..._,...k}:_)}))},[]),b=L.useCallback((N,O)=>{r(k=>k.map(B=>{if(B.id!==N)return B;const $=B.sumarioPlano??[];return{...B,sumarioPlano:[...$,O]}}))},[]),S=L.useCallback((N,O)=>{r(k=>k.map(B=>B.id!==N||!B.sumarioPlano?B:{...B,sumarioPlano:B.sumarioPlano.filter($=>$.id!==O)}))},[]),A=L.useCallback((N,O)=>{r(k=>k.map(B=>{if(B.id!==N||!B.sumarioPlano)return B;const $=new Map(B.sumarioPlano.map(D=>[D.id,D])),_=O.map(D=>$.get(D)).filter(D=>!!D),W=B.sumarioPlano.filter(D=>!O.includes(D.id));return{...B,sumarioPlano:[..._,...W]}}))},[]),E=L.useCallback((N,O)=>{const k={...O,id:`comment-${Date.now()}`,data:new Date().toISOString(),processadoPorIA:!1};r(B=>B.map($=>$.id===N?{...$,comentariosRevisao:[...$.comentariosRevisao,k]}:$))},[]),j=L.useCallback(N=>{const O={...N,id:`fonte-${Date.now()}`};o(k=>[...k,O])},[]),P=L.useCallback(N=>{o(O=>O.map(k=>k.id===N?{...k,ativa:!k.ativa}:k))},[]),C=L.useCallback(N=>{o(O=>O.filter(k=>k.id!==N))},[]);return p.jsx(Vz.Provider,{"data-loc":"client/src/contexts/ProjectContext.tsx:483",value:{projetos:t,projetoAtivo:f,fontes:i,carregando:s,setProjetoAtivo:m,adicionarProjeto:x,atualizarProjeto:v,atualizarSecaoPlano:y,adicionarSecaoPlano:b,removerSecaoPlano:S,reordenarSecoesPlano:A,adicionarComentario:E,adicionarFonte:j,toggleFonte:P,removerFonte:C},children:e})}function Ps(){const e=L.useContext(Vz);if(!e)throw new Error("useProjects deve ser usado dentro de ProjectProvider");return e}const Iee=[{id:"itaperuna",sigla:"IT",nome:"Itaperuna",estado:"RJ",populacao:"103.047",idh:"0,699",pib:"R$ 22.400",prefeito:"Alfredo Paulo Marques Rodrigues",partido:"PSD",camara:"21 vereadores",desafios:"Saúde, saneamento, mobilidade",instagram:"@prefeituraitaperuna · 12k seguidores",facebook:"Prefeitura Itaperuna · 28k curtidas",youtube:"Canal ativo · 3,2k inscritos",site:"itaperuna.rj.gov.br",engajamento:"medio",regularidade:"regular",sentimento:"neutro",projeto:"Iluminação Pública",fase
49:9,progresso:72,status:"em_andamento",cor:"#2563EB",analistas:2,lat:-21.2087,lng:-41.8872,dataContrato:"2023-03-15"},{id:"natal",sigla:"NA",nome:"Natal",estado:"RN",populacao:"890.480",idh:"0,763",pib:"R$ 28.100",prefeito:"Paulinho Freire",partido:"União Brasil",camara:"29 vereadores",desafios:"Mobilidade urbana, segurança pública",instagram:"@prefeituradenatal · 45k seguidores",facebook:"Prefeitura Natal · 120k curtidas",youtube:"Canal ativo · 18k inscritos",site:"natal.rn.gov.br",engajamento:"alto",regularidade:"regular",sentimento:"positivo",projeto:"Iluminação Pública",fase:11,progresso:88,status:"em_andamento",cor:"#10B981",analistas:3,lat:-5.7945,lng:-35.211,dataContrato:"2022-08-01"},{id:"caxias",sigla:"CX",nome:"Caxias do Sul",estado:"RS",populacao:"530.000",idh:"0,782",pib:"R$ 52.300",prefeito:"Adiló Didomenico",partido:"PSDB",camara:"25 vereadores",desafios:"Educação, mobilidade, habitação",instagram:"@prefcaxias · 22k seguidores",facebook:"Prefeitura Caxias · 55k curtidas",youtube:"Canal ativo · 8k inscritos",site:"caxias.rs.gov.br",engajamento:"medio",regularidade:"regular",sentimento:"positivo",projeto:"Educação",fase:4,progresso:33,status:"em_andamento",cor:"#F59E0B",analistas:2,lat:-29.1678,lng:-51.1794,dataContrato:"2024-01-10"},{id:"sorocaba",sigla:"SO",nome:"Sorocaba",estado:"SP",populacao:"700.000",idh:"0,798",pib:"R$ 38.700",prefeito:"Rodrigo Manga",partido:"Republicanos",camara:"23 vereadores",desafios:"Saneamento, mobilidade, saúde",instagram:"@prefsorocaba · 30k seguidores",facebook:"Prefeitura Sorocaba · 80k curtidas",youtube:"Canal ativo · 12k inscritos",site:"sorocaba.sp.gov.br",engajamento:"alto",regularidade:"regular",sentimento:"neutro",projeto:"Iluminação Pública",fase:3,progresso:20,status:"em_andamento",cor:"#EF4444",analistas:1,lat:-23.5015,lng:-47.4526,dataContrato:"2024-06-20"},{id:"uberaba",sigla:"UB",nome:"Uberaba",estado:"MG",populacao:"340.000",idh:"0,772",pib:"R$ 31.200",prefeito:"Paulo Piau",partido:"MDB",camara:"21 vereadores",desafios:"Saúde, infraestrutura, emprego",instagram:"@prefeituradeuberaba · 18k seguidores",facebook:"Prefeitura Uberaba · 42k curtidas",youtube:"Canal ativo · 5k inscritos",site:"uberaba.mg.gov.br",engajamento:"baixo",regularidade:"irregular",sentimento:"neutro",projeto:"Serviços Digitais",fase:2,progresso:12,status:"em_andamento",cor:"#8B5CF6",analistas:1,lat:-19.7472,lng:-47.9381,dataContrato:"2025-02-05"},{id:"sao-bento-do-sul",sigla:"SB",nome:"São Bento do Sul",estado:"SC",populacao:"87.000",idh:"0,792",pib:"R$ 45.800",prefeito:"André Bornhausen",partido:"PL",camara:"13 vereadores",desafios:"Modernização da IP, eficiência energética, cidades inteligentes",instagram:"@prefsbsoficial · 8k seguidores",facebook:"Prefeitura SBS · 22k curtidas",youtube:"Canal ativo · 2k inscritos",site:"saobentodosul.sc.gov.br",engajamento:"alto",regularidade:"regular",sentimento:"positivo",projeto:"Iluminação Pública e Cidades Inteligentes",fase:12,progresso:100,status:"concluido",cor:"#2D4A2D",analistas:2,lat:-26.25,lng:-49.38,dataContrato:"2024-09-10"},{id:"itanhaem",sigla:"IT",nome:"Itanhaém",estado:"SP",populacao:"115.000",idh:"0,731",pib:"R$ 23.100",prefeito:"Tiago Cervantes",partido:"PL",camara:"15 vereadores (7 base)",desafios:"Educação infantil, sazonalidade turÃstica, dependência fiscal",instagram:"@prefeituraitanhaem · 6k seguidores",facebook:"Prefeitura Itanhaém · 18k curtidas",youtube:"Canal limitado",site:"itanhaem.sp.gov.br",engajamento:"medio",regularidade:"regular",sentimento:"neutro",projeto:"Educação Infantil (UEIs)",fase:2,progresso:15,status:"em_andamento",cor:"#1E6B8C",analistas:2,lat:-24.1833,lng:-46.7833,dataContrato:"2025-12-15"},{id:"rio-negrinho",sigla:"RN",nome:"Rio Negrinho",estado:"SC",populacao:"43.800",idh:"0,742",pib:"R$ 38.200",prefeito:"Caio César Treml",partido:"PL",camara:"9 vereadores (maioria governista)",desafios:"Modernização da IP, histórico TCE/SC 2023, eficiência energética",instagram:"@prefrionegrinho · 4k seguidores",facebook:"Prefeitura Rio Negrinho · 12k curtidas",youtube:"C
49anal limitado",site:"rionegrinho.sc.gov.br",engajamento:"medio",regularidade:"regular",sentimento:"neutro",projeto:"Iluminação Pública e Cidades Inteligentes",fase:1,progresso:5,status:"em_andamento",cor:"#7A8C5E",analistas:2,lat:-26.25,lng:-49.52,dataContrato:"2026-04-01"}],Bee=[{num:1,nome:"TR â MunicÃpio (Termo de Referência)",status:"concluido",data:"10 mar"},{num:2,nome:"Pesquisa â Kick-off",status:"concluido",data:"15 mar"},{num:3,nome:"Kick-off",status:"concluido",data:"20 mar"},{num:4,nome:"Plano de Comunicação",status:"concluido",data:"28 mar"},{num:5,nome:"Escuta Social",status:"concluido",data:"02 abr"},{num:6,nome:"Hotsite â Escuta Social",status:"concluido",data:"05 abr"},{num:7,nome:"VÃdeo Institucional",status:"concluido",data:"07 abr"},{num:8,nome:"Alinhamento de Porta-Vozes",status:"concluido",data:"08 abr"},{num:9,nome:"Escuta Social â 30 dias",status:"em_andamento",data:"Até 25/04"},{num:10,nome:"MÃdia Training",status:"pendente",data:"28 abr"},{num:11,nome:"Audiência Pública (presencial + online)",status:"pendente",data:"05 mai"},{num:12,nome:"Releases pré/pós · Cobertura · LIBRAS",status:"pendente",data:"10 mai"}],Lee=[{nome:"Prefeito Alfredo Rodrigues",detalhe:"PSD · @prefeituraitaperuna",tipo:"Executivo",influencia:"alta",interesse:"alta",sentimento:"positivo",estrategia:"Porta-voz principal"},{nome:"Câmara Municipal",detalhe:"21 vereadores · 14 base / 7 oposição",tipo:"Legislativo",influencia:"alta",interesse:"media",sentimento:"neutro",estrategia:"Reuniões temáticas + briefing"},{nome:"Imprensa Local",detalhe:"Folha da Manhã · Rádio Itaperuna FM",tipo:"MÃdia",influencia:"media",interesse:"media",sentimento:"neutro",estrategia:"Releases + coletiva de imprensa"},{nome:"Associação Comercial",detalhe:"ACIT â 340 associados",tipo:"Sociedade Civil",influencia:"media",interesse:"alta",sentimento:"positivo",estrategia:"Apresentação dos benefÃcios"},{nome:"Vereador Carlos Melo",detalhe:"Oposição · @carlosmelo_vereador",tipo:"Legislativo",influencia:"media",interesse:"alta",sentimento:"negativo",estrategia:"Monitorar redes · Resposta técnica"},{nome:"Ãrgãos de Controle",detalhe:"TCE-RJ · Ministério Público",tipo:"Controle",influencia:"alta",interesse:"media",sentimento:"neutro",estrategia:"Transparência total + documentação"}];function e3(e,t){const r=a=>a.normalize("NFD").replace(/[Ì-ͯ]/g,"").toLowerCase().trim();return`${r(e)}-${r(t)}`}const t3={"maceio-al":{lat:-9.6498,lng:-35.7089},"senhor do bonfim-ba":{lat:-10.4611,lng:-40.1897},"juazeiro-ba":{lat:-9.4111,lng:-40.4986},"valenca-ba":{lat:-13.3702,lng:-39.0731}};function al(e,t){const r=e?.diagnostico?.[t];if(typeof r!="string")return;const a=r.trim();if(!(!a||a.startsWith("[VERIFICAR")))return a}function ny(){const{projetos:e,carregando:t}=Ps();return L.useMemo(()=>{const r=new Map;for(const f of e){const m=e3(f.municipio,f.estado);r.set(m,[...r.get(m)??[],f])}const a=new Map;for(const f of Iee)a.set(e3(f.nome,f.estado),f);const n=new Set([...Array.from(a.keys()),...Array.from(r.keys())]),i=Array.from(n).map(f=>{const m=a.get(f),x=r.get(f)??[],v=[...x].sort((P,C)=>(C.progresso??0)-(P.progresso??0))[0],y=v?.municipio??m?.nome??f,b=v?.estado??m?.estado??"",S=x.find(P=>typeof P.lat=="number"&&typeof P.lng=="number"),A=S?.lat??m?.lat??t3[f]?.lat,E=S?.lng??m?.lng??t3[f]?.lng,j=x.length?x.map(P=>Kr[P.tipoProjeto]?.label??P.tipoProjeto).join(" · "):m?.projeto??"â";return{id:f,nome:y,estado:b,sigla:m?.sigla??y.slice(0,2).toUpperCase(),cor:v?.cor??m?.cor??"#2D4A2D",faseAtual:v?.faseAtual??m?.fase??0,progresso:v?.progresso??m?.progresso??0,projeto:j,lat:A,lng:E,projetosBanco:x,curado:m,noBanco:x.length>0,analistas:Array.from(new Set(x.flatMap(P=>P.analistas??[])))}}).sort((f,m)=>m.progresso-f.progresso),o=e.flatMap(f=>(f.fases??[]).filter(m=>m.status==="em_andamento"||m.status==="atrasado").map(m=>({projetoId:f.id,municipio:f.municipio,estado:f.estado,fase:m.num,titulo:m.nome,responsavel:m.responsavel,atrasada:m.status==="atrasado"}))),s=new Map;for(const f of e){const m=Kr[f.tipoProjeto]?.label??f.tipoProjeto;s.set(m,(s.get(m)??0)+1)}for(const f of i)!f.noBanco&&f.curado&&s.set(f.curado.projeto,(s.get(f.curado.projeto)??0)+1);const c=e.length+i.filter(f=>!f.noBanco).length,u=e.filter(f=>!!f.plano?.status).length,h=e.filter(f=>f.plano?.status==="em_revisao"||f.plano?.status==="rascunho").length;return{carregando:t,projetos:e,municipios:i,tarefas:o,tarefasAtrasadas:o.filter(f=>f.atrasada),totais:{municipios:i.length,municipiosNoBanco:i.filter(f=>f.noBanco).length,projetos:c,projetosNoBanco:e.length,estados:new Set(i.map(f=>f.estado)).size,planosGerados:u,planosEmRevisao:h,semCoordenada:i.filter(f=>f.lat===void 0).length,porTipo:Array.from(s.entries()).sort((f,m)=>m[1]-f[1])},perfil:f=>{const m=f.projetosBanco[0];return{populacao:al(m,"populacao")??f.curado?.populacao,idh:al(m,"idh")??f.curado?.idh,pib:al(m,"pib")??f.curado?.pib,prefeito:al(m,"prefeito")??f.curado?.prefeito,partido:al(m,"partido")??f.curado?.partido,camara:al(m,"camara")??f.curado?.camara,desafios:al(m,"desafios")??f.curado?.desafios}}}},[e,t])}/** 50 * @license lucide-react v0.453.0 - ISC 51 * 52 * This source code is licensed under the ISC license. 53 * See the LICENSE file in the root directory of this source tree. 54 */const zee=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Uz=(...e)=>e.filter((t,r,a)=>!!t&&a.indexOf(t)===r).join(" ");/** 55 * @license lucide-react v0.453.0 - ISC 56 * 57 * This source code is licensed under the ISC license. 58 * See the LICENSE file in the root directory of this source tree. 59 */var Fee={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"};/** 60 * @license lucide-react v0.453.0 - ISC 61 * 62 * This source code is licensed under the ISC license. 63 * See the LICENSE file in the root directory of this source tree. 64 */const $ee=L.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:n="",children:i,iconNode:o,...s},c)=>L.createElement("svg",{ref:c,...Fee,width:t,height:t,stroke:e,strokeWidth:a?Number(r)*24/Number(t):r,className:Uz("lucide",n),...s},[...o.map(([u,h])=>L.createElement(u,h)),...Array.isArray(i)?i:[i]]));/** 65 * @license lucide-react v0.453.0 - ISC 66 * 67 * This source code is licensed under the ISC license. 68 * See the LICENSE file in the root directory of this source tree. 69 */const He=(e,t)=>{const r=L.forwardRef(({className:a,...n},i)=>L.createElement($ee,{ref:i,iconNode:t,className:Uz(`lucide-${zee(e)}`,a),...n}));return r.displayName=`${e}`,r};/** 70 * @license lucide-react v0.453.0 - ISC 71 * 72 * This source code is licensed under the ISC license. 73 * See the LICENSE file in the root directory of this source tree. 74 */const qee=He("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 75 * @license lucide-react v0.453.0 - ISC 76 * 77 * This source code is licensed under the ISC license. 78 * See the LICENSE file in the root directory of this source tree. 79 */const M1=He("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 80 * @license lucide-react v0.453.0 - ISC 81 * 82 * This source code is licensed under the ISC license. 83 * See the LICENSE file in the root directory of this source tree. 84 */const Vee=He("Banknote",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M6 12h.01M18 12h.01",key:"113zkx"}]]);/** 85 * @license lucide-react v0.453.0 - ISC 86 * 87 * This source code is licensed under the ISC license. 88 * See the LICENSE file in the root directory of this source tree. 89 */const Uee=He("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/** 90 * @license lucide-react v0.453.0 - ISC 91 * 92 * This source code is licensed under the ISC license. 93 * See the LICENSE file in the root directory of this source tree. 94 */const Op=He("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/** 95 * @license lucide-react v0.453.0 - ISC 96 * 97 * This source code is licensed under the ISC license. 98 * See the LICENSE file in the root directory of this source tree. 99 */const r3=He("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/** 100 * @license lucide-react v0.453.0 - ISC 101 * 102 * This source code is licensed under the ISC license. 103 * See the LICENSE file in the root directory of this source tree. 104 */const _u=He("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}
104],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/** 105 * @license lucide-react v0.453.0 - ISC 106 * 107 * This source code is licensed under the ISC license. 108 * See the LICENSE file in the root directory of this source tree. 109 */const Hee=He("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);/** 110 * @license lucide-react v0.453.0 - ISC 111 * 112 * This source code is licensed under the ISC license. 113 * See the LICENSE file in the root directory of this source tree. 114 */const wd=He("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/** 115 * @license lucide-react v0.453.0 - ISC 116 * 117 * This source code is licensed under the ISC license. 118 * See the LICENSE file in the root directory of this source tree. 119 */const Nl=He("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/** 120 * @license lucide-react v0.453.0 - ISC 121 * 122 * This source code is licensed under the ISC license. 123 * See the LICENSE file in the root directory of this source tree. 124 */const Gee=He("ChartNoAxesColumn",[["line",{x1:"18",x2:"18",y1:"20",y2:"10",key:"1xfpm4"}],["line",{x1:"12",x2:"12",y1:"20",y2:"4",key:"be30l9"}],["line",{x1:"6",x2:"6",y1:"20",y2:"14",key:"1r4le6"}]]);/** 125 * @license lucide-react v0.453.0 - ISC 126 * 127 * This source code is licensed under the ISC license. 128 * See the LICENSE file in the root directory of this source tree. 129 */const a3=He("CheckCheck",[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]]);/** 130 * @license lucide-react v0.453.0 - ISC 131 * 132 * This source code is licensed under the ISC license. 133 * See the LICENSE file in the root directory of this source tree. 134 */const Kee=He("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 135 * @license lucide-react v0.453.0 - ISC 136 * 137 * This source code is licensed under the ISC license. 138 * See the LICENSE file in the root directory of this source tree. 139 */const Xl=He("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 140 * @license lucide-react v0.453.0 - ISC 141 * 142 * This source code is licensed under the ISC license. 143 * See the LICENSE file in the root directory of this source tree. 144 */const Hz=He("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** 145 * @license lucide-react v0.453.0 - ISC 146 * 147 * This source code is licensed under the ISC license. 148 * See the LICENSE file in the root directory of this source tree. 149 */const tN=He("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** 150 * @license lucide-react v0.453.0 - ISC 151 * 152 * This source code is licensed under the ISC license. 153 * See the LICENSE file in the root directory of this source tree. 154 */const Sd=He("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** 155 * @license lucide-react v0.453.0 - ISC 156 * 157 * This source code is licensed under the ISC license. 158 * See the LICENSE file in the root directory of this source tree. 159 */const Bl=He("CircleAlert",[["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"}]]);/** 160 * @license lucide-react v0.453.0 - ISC 161 * 162 * This source code is licensed under the ISC license. 163 * See the LICENSE file in the root directory of this source tree. 164 */const ta=He("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 165 * @license lucide-react v0.453.0 - ISC 166 * 167 * This source code is licensed under the ISC license. 168 * See the LICENSE file in the root directory of this source tree. 169 */const Wee=He("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** 170 * @license lucide-react v0.453.0 - ISC 171 * 172 * This source code is licensed under the ISC license. 173 * See the LICENSE file in the root directory of this source tree. 174 */const Xee=He("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** 175 * @license lucide-react v0.453.0 - ISC 176 * 177 * This source code is licensed under the ISC license. 178 * See the LICENSE file in the root directory of this source tree.
179 */const Gz=He("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);/** 180 * @license lucide-react v0.453.0 - ISC 181 * 182 * This source code is licensed under the ISC license. 183 * See the LICENSE file in the root directory of this source tree. 184 */const iy=He("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 185 * @license lucide-react v0.453.0 - ISC 186 * 187 * This source code is licensed under the ISC license. 188 * See the LICENSE file in the root directory of this source tree. 189 */const rN=He("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/** 190 * @license lucide-react v0.453.0 - ISC 191 * 192 * This source code is licensed under the ISC license. 193 * See the LICENSE file in the root directory of this source tree. 194 */const Kz=He("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/** 195 * @license lucide-react v0.453.0 - ISC 196 * 197 * This source code is licensed under the ISC license. 198 * See the LICENSE file in the root directory of this source tree. 199 */const Yl=He("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** 200 * @license lucide-react v0.453.0 - ISC 201 * 202 * This source code is licensed under the ISC license. 203 * See the LICENSE file in the root directory of this source tree. 204 */const Rh=He("ExternalLink",[["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"}]]);/** 205 * @license lucide-react v0.453.0 - ISC 206 * 207 * This source code is licensed under the ISC license. 208 * See the LICENSE file in the root directory of this source tree. 209 */const Yee=He("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/** 210 * @license lucide-react v0.453.0 - ISC 211 * 212 * This source code is licensed under the ISC license. 213 * See the LICENSE file in the root directory of this source tree. 214 */const kx=He("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"}]]);/** 215 * @license lucide-react v0.453.0 - ISC 216 * 217 * This source code is licensed under the ISC license. 218 * See the LICENSE file in the root directory of this source tree. 219 */const Wz=He("FileDown",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]]);/** 220 * @license lucide-react v0.453.0 - ISC 221 * 222 * This source code is licensed under the ISC license. 223 * See the LICENSE file in the root directory of this source tree. 224 */const Ru=He("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** 225 * @license lucide-react v0.453.0 - ISC 226 * 227 * This source code is licensed under the ISC license. 228 * See the LICENSE file in the root directory of this source tree. 229 */const Xz=He("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/** 230 * @license lucide-react v0.453.0 - ISC 231 * 232 * This source code is licensed under the ISC license. 233 * See the LICENSE file in the root directory of this source tree. 234 */const Zee=He("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/** 235 * @license lucide-react v0.453.0 - ISC 236 * 237 * This source code is licensed under the ISC license. 238 * See the LICENSE file in the root directory of this source tree. 239 */const Es=He("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"}]]);/** 240 * @license lucide-react v0.453.0 - ISC 241 * 242 * This source code is licensed under the ISC license. 243 * See the LICENSE file in the root directory of this source tree. 244 */const Yz=He("GripVertical",[["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"}]]);/** 245 * @license lucide-react v0.453.0 - ISC 246 * 247 * This source code is licensed under the ISC license. 248 * See the LICENSE file in the root directory of this source tree. 249 */const Jee=He("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/** 250 * @license lucide-react v0.453.0 - ISC 251 * 252 * This source code is licensed under the ISC license. 253 * See the LICENSE file in the root directory of this source tree. 254 */const Qee=He("ImagePlus",[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]]);/** 255 * @license lucide-react v0.453.0 - ISC 256 * 257 * This source code is licensed under the ISC license. 258 * See the LICENSE file in the root directory of this source tree. 259 */const ete=He("Landmark",[["line",{x1:"3",x2:"21",y1:"22",y2:"22",key:"j8o0r"}],["line",{x1:"6",x2:"6",y1:"18",y2:"11",key:"10tf0k"}],["line",{x1:"10",x2:"10",y1:"18",y2:"11",key:"54lgf6"}],["line",{x1:"14",x2:"14",y1:"18",y2:"11",key:"380y"}],["line",{x1:"18",x2:"18",y1:"18",y2:"11",key:"1kevvc"}],["polygon",{points:"12 2 20 7 4 7",key:"jkujk7"}]]);/** 260 * @license lucide-react v0.453.0 - ISC 261 * 262 * This source code is licensed under the ISC license. 263 * See the LICENSE file in the root directory of this source tree.
264 */const tte=He("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/** 265 * @license lucide-react v0.453.0 - ISC 266 * 267 * This source code is licensed under the ISC license. 268 * See the LICENSE file in the root directory of this source tree. 269 */const rte=He("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/** 270 * @license lucide-react v0.453.0 - ISC 271 * 272 * This source code is licensed under the ISC license. 273 * See the LICENSE file in the root directory of this source tree. 274 */const ate=He("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/** 275 * @license lucide-react v0.453.0 - ISC 276 * 277 * This source code is licensed under the ISC license. 278 * See the LICENSE file in the root directory of this source tree. 279 */const Wt=He("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** 280 * @license lucide-react v0.453.0 - ISC 281 * 282 * This source code is licensed under the ISC license. 283 * See the LICENSE file in the root directory of this source tree. 284 */const nte=He("LockKeyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]]);/** 285 * @license lucide-react v0.453.0 - ISC 286 * 287 * This source code is licensed under the ISC license. 288 * See the LICENSE file in the root directory of this source tree. 289 */const Zz=He("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"}]]);/** 290 * @license lucide-react v0.453.0 - ISC 291 * 292 * This source code is licensed under the ISC license. 293 * See the LICENSE file in the root directory of this source tree. 294 */const Jz=He("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** 295 * @license lucide-react v0.453.0 - ISC 296 * 297 * This source code is licensed under the ISC license. 298 * See the LICENSE file in the root directory of this source tree. 299 */const Zl=He("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** 300 * @license lucide-react v0.453.0 - ISC 301 * 302 * This source code is licensed under the ISC license. 303 * See the LICENSE file in the root directory of this source tree. 304 */const Qz=He("Map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]);/** 305 * @license lucide-react v0.453.0 - ISC 306 * 307 * This source code is licensed under the ISC license. 308 * See the LICENSE file in the root directory of this source tree. 309 */const ite=He("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]);/** 310 * @license lucide-react v0.453.0 - ISC 311 * 312 * This source code is licensed under the ISC license. 313 * See the LICENSE file in the root directory of this source tree. 314 */const ote=He("MessageCircleQuestion",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** 315 * @license lucide-react v0.453.0 - ISC 316 * 317 * This source code is licensed under the ISC license. 318 * See the LICENSE file in the root directory of this source tree. 319 */const Oh=He("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/** 320 * @license lucide-react v0.453.0 - ISC 321 * 322 * This source code is licensed under the ISC license. 323 * See the LICENSE file in the root directory of this source tree. 324 */const ste=He("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/** 325 * @license lucide-react v0.453.0 - ISC 326 * 327 * This source code is licensed under the ISC license. 328 * See the LICENSE file in the root directory of this source tree. 329 */const Dx=He("Newspaper",[["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]]);/** 330 * @license lucide-react v0.453.0 - ISC 331 * 332 * This source code is licensed under the ISC license. 333 * See the LICENSE file in the root directory of this source tree. 334 */const up=He("PenLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]]);/** 335 * @license lucide-react v0.453.0 - ISC 336 * 337 * This source code is licensed under the ISC license. 338 * See the LICENSE file in the root directory of this source tree. 339 */const Mp=He("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"}]]);/** 340 * @license lucide-react v0.453.0 - ISC 341 * 342 * This source code is licensed under the ISC license. 343 * See the LICENSE file in the root directory of this source tree. 344 */const eF=He("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** 345 * @license lucide-react v0.453.0 - ISC 346 * 347 * This source code is licensed under the ISC license. 348 * See the LICENSE file in the root directory of this source tree. 349 */const fa=He("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** 350 * @license lucide-react v0.453.0 - ISC 351 * 352 * This source code is licensed under the ISC license. 353 * See the LICENSE file in the root directory of this source tree. 354 */const lte=He("Printer",[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]]);/** 355 * @license lucide-react v0.453.0 - ISC 356 * 357 * This source code is licensed under the ISC license. 358 * See the LICENSE file in the root directory of this source tree. 359 */const tF=He("QrCode",[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]]);/** 360 * @license lucide-react v0.453.0 - ISC 361 * 362 * This source code is licensed under the ISC license. 363 * See the LICENSE file in the root directory of this source tree. 364 */const rF=He("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/** 365 * @license lucide-react v0.453.0 - ISC 366 * 367 * This source code is licensed under the ISC license. 368 * See the LICENSE file in the root directory of this source tree. 369 */const Mh=He("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** 370 * @license lucide-react v0.453.0 - ISC 371 * 372 * This source code is licensed under the ISC license. 373 * See the LICENSE file in the root directory of this source tree. 374 */const aF=He("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/** 375 * @license lucide-react v0.453.0 - ISC 376 * 377 * This source code is licensed under the ISC license. 378 * See the LICENSE file in the root directory of this source tree. 379 */const aN=He("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/** 380 * @license lucide-react v0.453.0 - ISC 381 * 382 * This source code is licensed under the ISC license. 383 * See the LICENSE file in the root directory of this source tree. 384 */const oy=He("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 385 * @license lucide-react v0.453.0 - ISC 386 * 387 * This source code is licensed under the ISC license. 388 * See the LICENSE file in the root directory of this source tree. 389 */const sy=He("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"}]]);/** 390 * @license lucide-react v0.453.0 - ISC 391 * 392 * This source code is licensed under the ISC license. 393 * See the LICENSE file in the root directory of this source tree. 394 */const jo=He("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
394y:"oel41y"}]]);/** 395 * @license lucide-react v0.453.0 - ISC 396 * 397 * This source code is licensed under the ISC license. 398 * See the LICENSE file in the root directory of this source tree. 399 */const pn=He("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/** 400 * @license lucide-react v0.453.0 - ISC 401 * 402 * This source code is licensed under the ISC license. 403 * See the LICENSE file in the root directory of this source tree. 404 */const _x=He("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/** 405 * @license lucide-react v0.453.0 - ISC 406 * 407 * This source code is licensed under the ISC license. 408 * See the LICENSE file in the root directory of this source tree. 409 */const cte=He("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/** 410 * @license lucide-react v0.453.0 - ISC 411 * 412 * This source code is licensed under the ISC license. 413 * See the LICENSE file in the root directory of this source tree. 414 */const ute=He("ToggleLeft",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"6",ry:"6",key:"f2vt7d"}],["circle",{cx:"8",cy:"12",r:"2",key:"1nvbw3"}]]);/** 415 * @license lucide-react v0.453.0 - ISC 416 * 417 * This source code is licensed under the ISC license. 418 * See the LICENSE file in the root directory of this source tree. 419 */const dte=He("ToggleRight",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"6",ry:"6",key:"f2vt7d"}],["circle",{cx:"16",cy:"12",r:"2",key:"4ma0v8"}]]);/** 420 * @license lucide-react v0.453.0 - ISC 421 * 422 * This source code is licensed under the ISC license. 423 * See the LICENSE file in the root directory of this source tree. 424 */const ei=He("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/** 425 * @license lucide-react v0.453.0 - ISC 426 * 427 * This source code is licensed under the ISC license. 428 * See the LICENSE file in the root directory of this source tree. 429 */const fte=He("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]);/** 430 * @license lucide-react v0.453.0 - ISC 431 * 432 * This source code is licensed under the ISC license. 433 * See the LICENSE file in the root directory of this source tree. 434 */const Ip=He("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** 435 * @license lucide-react v0.453.0 - ISC 436 * 437 * This source code is licensed under the ISC license. 438 * See the LICENSE file in the root directory of this source tree. 439 */const ho=He("TriangleAlert",[["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"}]]);/** 440 * @license lucide-react v0.453.0 - ISC 441 * 442 * This source code is licensed under the ISC license. 443 * See the LICENSE file in the root directory of this source tree. 444 */const pte=He("Undo2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]);/** 445 * @license lucide-react v0.453.0 - ISC 446 * 447 * This source code is licensed under the ISC license. 448 * See the LICENSE file in the root directory of this source tree. 449 */const Ll=He("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/** 450 * @license lucide-react v0.453.0 - ISC 451 * 452 * This source code is licensed under the ISC license. 453 * See the LICENSE file in the root directory of this source tree. 454 */const xn=He("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** 455 * @license lucide-react v0.453.0 - ISC 456 * 457 * This source code is licensed under the ISC license. 458 * See the LICENSE file in the root directory of this source tree. 459 */const Ou=He("WandSparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]);/** 460 * @license lucide-react v0.453.0 - ISC 461 * 462 * This source code is licensed under the ISC license. 463 * See the LICENSE file in the root directory of this source tree. 464 */const dn=He("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
464],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** 465 * @license lucide-react v0.453.0 - ISC 466 * 467 * This source code is licensed under the ISC license. 468 * See the LICENSE file in the root directory of this source tree. 469 */const Rx=He("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),nF=L.createContext({usuario:null,sair:()=>{}});function hte(){return L.useContext(nF)}function mte({children:e}){const[t,r]=L.useState("carregando"),[a,n]=L.useState(null);L.useEffect(()=>{fetch("/api/auth/me").then(o=>o.json()).then(o=>{if(!o.loginLigado)return r("aberto");n(o.usuario),r(o.usuario?"logado":"login")}).catch(()=>r("login"))},[]);const i=()=>{fetch("/api/auth/logout",{method:"POST"}).finally(()=>{n(null),r("login")})};return t==="carregando"?p.jsx("div",{"data-loc":"client/src/components/AuthGate.tsx:45",style:{minHeight:"100vh",backgroundColor:"#EDE9DF"}}):t==="login"?p.jsx(gte,{"data-loc":"client/src/components/AuthGate.tsx:48",onEntrou:o=>{n(o),r("logado")}}):p.jsx(nF.Provider,{"data-loc":"client/src/components/AuthGate.tsx:50",value:{usuario:a,sair:i},children:e})}function gte({onEntrou:e}){const[t,r]=L.useState(""),[a,n]=L.useState(""),[i,o]=L.useState(null),[s,c]=L.useState(!1),u=async f=>{f.preventDefault(),o(null),c(!0);try{const m=await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({usuario:t,senha:a})}),x=await m.json().catch(()=>({}));if(!m.ok){o(x.error??"Não foi possÃvel entrar.");return}e(x.usuario)}catch{o("Sem conexão com o servidor.")}finally{c(!1)}},h={width:"100%",padding:"12px 14px",borderRadius:10,border:"1px solid #c9c3b4",backgroundColor:"#fff",fontSize:15,fontFamily:"Nunito, sans-serif",outline:"none"};return p.jsx("div",{"data-loc":"client/src/components/AuthGate.tsx:94",style:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#EDE9DF",padding:16,fontFamily:"Nunito, sans-serif"},children:p.jsxs("form",{"data-loc":"client/src/components/AuthGate.tsx:105",onSubmit:u,style:{width:"100%",maxWidth:380,backgroundColor:"#fff",borderRadius:16,padding:32,boxShadow:"0 8px 32px rgba(45,74,45,0.15)",display:"flex",flexDirection:"column",gap:14},children:[p.jsxs("div",{"data-loc":"client/src/components/AuthGate.tsx:119",style:{marginBottom:8},children:[p.jsx("div",{"data-loc":"client/src/components/AuthGate.tsx:120",style:{fontSize:22,fontWeight:900,color:"#2D4A2D"},children:"PRINT PPP"}),p.jsx("div",{"data-loc":"client/src/components/AuthGate.tsx:121",style:{fontSize:14,color:"#6b6b6b"},children:"Entre com seu usuário e senha."})]}),p.jsx("input",{"data-loc":"client/src/components/AuthGate.tsx:123",style:h,placeholder:"Usuário",autoComplete:"username",autoFocus:!0,value:t,onChange:f=>r(f.target.value)}),p.jsx("input",{"data-loc":"client/src/components/AuthGate.tsx:131",style:h,type:"password",placeholder:"Senha",autoComplete:"current-password",value:a,onChange:f=>n(f.target.value)}),i&&p.jsx("div",{"data-loc":"client/src/components/AuthGate.tsx:139",style:{color:"#c0392b",fontSize:14},children:i}),p.jsx("button",{"data-loc":"client/src/components/AuthGate.tsx:140",type:"submit",disabled:s||!t||!a,style:{padding:"12px 14px",borderRadius:10,border:"none",background:"linear-gradient(135deg, #2D4A2D, #4a6e4a)",color:"#EDE9DF",fontWeight:900,fontSize:15,cursor:s?"wait":"pointer",opacity:s||!t||!a?.6:1},children:s?"Entrandoâ¦":"Entrar"})]})})}const xte=[{label:"Principal",items:[{id:"dashboard",label:"Dashboard",icon:p.jsx(tte,{"data-loc":"client/src/components/Layout.tsx:60",size:15})},{id:"mapa",label:"Cobertura Geográfica",icon:p.jsx(Qz,{"data-loc":"client/src/components/Layout.tsx:61",size:15})},{id:"municipios",label:"MunicÃpios",icon:p.jsx(_u,{"data-loc":"client/src/components/Layout.tsx:62",size:15})},{id:"projetos",label:"Projetos PPP",icon:p.jsx(Gz,{"data-loc":"client/src/components/Layout.tsx:63",size:15})}]},{label:"Comunicação",items:[{id:"plano",label:"Plano de Comunicação",icon:p.jsx(pn,{"data-loc":"client/src/components/Layout.t
469sx:69",size:15})},{id:"stakeholders",label:"Stakeholders",icon:p.jsx(xn,{"data-loc":"client/src/components/Layout.tsx:70",size:15})},{id:"escuta",label:"Escuta Social",icon:p.jsx(rF,{"data-loc":"client/src/components/Layout.tsx:71",size:15})},{id:"roadshow",label:"Roadshow",icon:p.jsx(tF,{"data-loc":"client/src/components/Layout.tsx:72",size:15})},{id:"clipping",label:"Clipping & MÃdia",icon:p.jsx(Dx,{"data-loc":"client/src/components/Layout.tsx:73",size:15})}]},{label:"Operação",items:[{id:"tarefas",label:"Tarefas",icon:p.jsx(Nl,{"data-loc":"client/src/components/Layout.tsx:79",size:15})},{id:"documentos",label:"Documentos",icon:p.jsx(Ru,{"data-loc":"client/src/components/Layout.tsx:80",size:15})},{id:"hotsite",label:"Hotsite / Consulta",icon:p.jsx(Es,{"data-loc":"client/src/components/Layout.tsx:81",size:15})},{id:"boletim",label:"Boletim & Relatório",icon:p.jsx(Dx,{"data-loc":"client/src/components/Layout.tsx:82",size:15})}]},{label:"Inteligência",items:[{id:"fontes",label:"Fontes de Conhecimento",icon:p.jsx(Op,{"data-loc":"client/src/components/Layout.tsx:88",size:15})},{id:"briefing",label:"Briefing Pré-Kickoff",icon:p.jsx(oy,{"data-loc":"client/src/components/Layout.tsx:89",size:15})}]}],vte={dashboard:{title:"Dashboard",sub:"Visão geral do sistema"},mapa:{title:"Cobertura Geográfica",sub:"MunicÃpios atendidos pela PRINT no Brasil"},municipios:{title:"MunicÃpios",sub:"Brain dos municÃpios atendidos"},projetos:{title:"Projetos PPP",sub:"Acompanhamento por fases"},plano:{title:"Plano de Comunicação",sub:"Geração com IA + revisão dos analistas"},stakeholders:{title:"Stakeholders",sub:"Mapeamento de públicos de interesse"},escuta:{title:"Escuta Social",sub:"Monitoramento de sentimento e pesquisa"},clipping:{title:"Clipping & MÃdia",sub:"Monitoramento de notÃcias e veÃculos"},tarefas:{title:"Gestão de Tarefas",sub:"Kanban por projeto e analista"},documentos:{title:"Hub de Documentos",sub:"Central de documentos com controle de acesso"},hotsite:{title:"Hotsite / Consulta",sub:"Gerenciamento de hotsites de escuta social"},fontes:{title:"Fontes de Conhecimento",sub:"Base de dados e aprendizado da IA"},briefing:{title:"Briefing Pré-Kickoff",sub:"Inteligência de municÃpio para a equipe da consultoria"},boletim:{title:"Boletim & Relatório",sub:"Geração de boletins e relatórios com IA"},roadshow:{title:"Roadshow",sub:"Convite a investidores, QR code e inscrições"}},yte=`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'%3E%3Cellipse cx='200' cy='200' rx='40' ry='25'/%3E%3Cellipse cx='200' cy='200' rx='70' ry='45'/%3E%3Cellipse cx='200' cy='200' rx='100' ry='65'/%3E%3Cellipse cx='200' cy='200' rx='130' ry='85'/%3E%3Cellipse cx='200' cy='200' rx='160' ry='105'/%3E%3Cellipse cx='200' cy='200' rx='190' ry='125'/%3E%3Cellipse cx='200' cy='200' rx='220' ry='145'/%3E%3Cellipse cx='200' cy='200' rx='250' ry='165'/%3E%3Cellipse cx='200' cy='200' rx='280' ry='185'/%3E%3Cellipse cx='200' cy='200' rx='310' ry='205'/%3E%3C/g%3E%3C/svg%3E")`;function bte({activeView:e,onViewChange:t,onNovoProjeto:r,children:a}){const{usuario:n,sair:i}=hte(),[o,s]=L.useState(""),c=vte[e],{totais:u,tarefasAtrasadas:h}=ny(),f={municipios:{valor:u.municipios},projetos:{valor:u.projetos},tarefas:{valor:h.length,variante:"danger"}};return p.jsxs("div",{"data-loc":"client/src/components/Layout.tsx:137",className:"flex min-h-screen",style:{backgroundColor:"#EDE9DF"},children:[p.jsx("style",{"data-loc":"client/src/components/Layout.tsx:141",children:` 470 @media print { 471 .no-print, .no-print * { display: none !important; } 472 .conteudo-principal { margin-left: 0 !important; } 473 .conteudo-main { padding: 0 !important; } 474 } 475 `}),p.jsxs("aside",{"data-loc":"client/src/components/Layout.tsx:151",className:"print-sidebar no-print w-[248px] flex-shrink-0 flex flex-col fixed inset-y-0 left-0 z-50",style:{backgroundColor:"#2D4A2D",backgroundImage:yte,backgroundSize:"400px 400px"},children:[p.jsx("div",{"data-loc":"client/src/components/Layout.t
475sx:160",className:"px-5 py-5 border-b",style:{borderColor:"rgba(255,255,255,0.08)"},children:p.jsxs("div",{"data-loc":"client/src/components/Layout.tsx:161",className:"flex items-center gap-3",children:[p.jsx("div",{"data-loc":"client/src/components/Layout.tsx:162",className:"w-12 h-12 rounded-lg flex-shrink-0 flex items-center justify-center p-1",style:{background:"#F4EFE9"},title:"PRINT Comunicação â Consultoria estratégica em comunicação",children:p.jsx("img",{"data-loc":"client/src/components/Layout.tsx:167",src:"/print/print-logo-empilhada.png",alt:"PRINT Comunicação",className:"w-full h-full object-contain"})}),p.jsxs("div",{"data-loc":"client/src/components/Layout.tsx:173",children:[p.jsxs("div",{"data-loc":"client/src/components/Layout.tsx:174",className:"font-black text-[15px] leading-none tracking-wide",style:{color:"#F4EFE9",fontFamily:"Nunito, sans-serif"},children:["PRINT",p.jsx("span",{"data-loc":"client/src/components/Layout.tsx:178",style:{color:"#8A906A"},children:"."})]}),p.jsx("div",{"data-loc":"client/src/components/Layout.tsx:180",className:"text-[9px] tracking-[2px] uppercase mt-0.5",style:{color:"rgba(244,239,233,0.5)"},children:"Gestão de PPPs"})]})]})}),p.jsx("nav",{"data-loc":"client/src/components/Layout.tsx:188",className:"flex-1 overflow-y-auto px-3 py-4 space-y-5",children:xte.map(m=>p.jsxs("div",{"data-loc":"client/src/components/Layout.tsx:190",children:[p.jsx("div",{"data-loc":"client/src/components/Layout.tsx:191",className:"text-[9px] font-black uppercase tracking-[2px] px-2 mb-2",style:{color:"rgba(237,233,223,0.35)"},children:m.label}),p.jsx("div",{"data-loc":"client/src/components/Layout.tsx:197",className:"space-y-0.5",children:m.items.map(x=>{const v=e===x.id;return p.jsxs("button",{"data-loc":"client/src/components/Layout.tsx:201",onClick:()=>t(x.id),className:ii("w-full flex items-center gap-2.5 px-3 py-2.5 rounded-lg text-[12px] font-bold transition-all text-left"),style:{backgroundColor:v?"rgba(201,184,154,0.15)":"transparent",color:v?"#EDE9DF":"rgba(237,233,223,0.55)",borderLeft:v?"3px solid #C9A84C":"3px solid transparent",fontFamily:"Nunito, sans-serif"},onMouseEnter:y=>{v||(y.currentTarget.style.backgroundColor="rgba(201,184,154,0.08)",y.currentTarget.style.color="rgba(237,233,223,0.85)")},onMouseLeave:y=>{v||(y.currentTarget.style.backgroundColor="transparent",y.currentTarget.style.color="rgba(237,233,223,0.55)")},children:[p.jsx("span",{"data-loc":"client/src/components/Layout.tsx:226",className:"flex-shrink-0",style:{opacity:v?1:.7},children:x.icon}),p.jsx("span",{"data-loc":"client/src/components/Layout.tsx:229",className:"flex-1 truncate",children:x.label}),f[x.id]!==void 0&&f[x.id].valor>0&&p.jsx("span",{"data-loc":"client/src/components/Layout.tsx:231",className:"text-[9px] font-black px-1.5 py-0.5 rounded-full flex-shrink-0",style:{backgroundColor:f[x.id].variante==="danger"?"#c0392b":"rgba(201,184,154,0.2)",color:f[x.id].variante==="danger"?"#fff":"rgba(237,233,223,0.7)"},children:f[x.id].valor})]},x.id)})})]},m.label))}),p.jsx("div",{"data-loc":"client/src/components/Layout.tsx:250",className:"px-4 py-4 border-t",style:{borderColor:"rgba(255,255,255,0.08)"},children:p.jsxs("div",{"data-loc":"client/src/components/Layout.tsx:251",className:"flex items-center gap-2.5",children:[p.jsx("div",{"data-loc":"client/src/components/Layout.tsx:252",className:"w-8 h-8 rounded-full flex items-center justify-center text-[11px] font-black flex-shrink-0",style:{background:"#7A8C5E",color:"#EDE9DF"},children:"PR"}),p.jsxs("div",{"data-loc":"client/src/components/Layout.tsx:258",className:"flex-1 min-w-0",children:[p.jsx("div",{"data-loc":"client/src/components/Layout.tsx:259",className:"text-[11px] font-black truncate",style:{color:"#EDE9DF",fontFamily:"Nunito, sans-serif"},children:"Equipe PRINT"}),p.jsx("div",{"data-loc":"client/src/components/Layout.tsx:262",className:"text-[9px] truncate",style:{color:"rgba(237,233,223,0.45)"},children:"Analista Sênior"})]})]})})]}),p.jsxs("div",{"data-loc":"client/src/components/Layout.tsx:269",className:"conteudo-principal flex-1 ml-[248px] flex flex-col min-h-screen",children:[p.jsxs("header",{"data-loc":"client/src/components/Layout.t
475sx:272",className:"no-print sticky top-0 z-40 flex items-center gap-4 px-6 py-3.5 border-b",style:{backgroundColor:"rgba(237,233,223,0.92)",backdropFilter:"blur(12px)",borderColor:"#C9B99A60"},children:[p.jsxs("div",{"data-loc":"client/src/components/Layout.tsx:281",className:"flex-1",children:[p.jsx("h1",{"data-loc":"client/src/components/Layout.tsx:282",className:"text-[16px] font-black leading-none",style:{color:"#1E1E1E",fontFamily:"Nunito, sans-serif"},children:c?.title}),p.jsx("p",{"data-loc":"client/src/components/Layout.tsx:288",className:"text-[11px] mt-0.5",style:{color:"#7A8C5E"},children:c?.sub})]}),p.jsxs("div",{"data-loc":"client/src/components/Layout.tsx:294",className:"flex items-center gap-2 px-3 py-2 rounded-lg",style:{backgroundColor:"#ffffff",border:"1px solid #C9B99A",width:"240px"},children:[p.jsx(oy,{"data-loc":"client/src/components/Layout.tsx:298",size:13,style:{color:"#7A8C5E"}}),p.jsx("input",{"data-loc":"client/src/components/Layout.tsx:299",type:"text",placeholder:"Buscar municÃpio, projeto...",value:o,onChange:m=>s(m.target.value),className:"flex-1 text-[12px] bg-transparent outline-none",style:{color:"#1E1E1E",fontFamily:"Nunito, sans-serif"}})]}),p.jsxs("button",{"data-loc":"client/src/components/Layout.tsx:310",onClick:()=>je.info("3 notificações pendentes"),className:"relative w-9 h-9 rounded-lg flex items-center justify-center transition-colors",style:{backgroundColor:"#ffffff",border:"1px solid #C9B99A"},onMouseEnter:m=>m.currentTarget.style.backgroundColor="#EDE9DF",onMouseLeave:m=>m.currentTarget.style.backgroundColor="#ffffff",children:[p.jsx(Uee,{"data-loc":"client/src/components/Layout.tsx:317",size:15,style:{color:"#7A8C5E"}}),p.jsx("span",{"data-loc":"client/src/components/Layout.tsx:318",className:"absolute -top-1 -right-1 w-4 h-4 rounded-full text-[8px] font-black flex items-center justify-center text-white",style:{backgroundColor:"#c0392b"},children:"3"})]}),p.jsx("button",{"data-loc":"client/src/components/Layout.tsx:327",onClick:()=>r?.(),className:"flex items-center gap-1.5 text-[12px] font-black px-4 py-2 rounded-lg transition-all",style:{background:"linear-gradient(135deg, #2D4A2D, #4a6e4a)",color:"#EDE9DF",fontFamily:"Nunito, sans-serif",boxShadow:"0 2px 8px rgba(45,74,45,0.3)"},onMouseEnter:m=>m.currentTarget.style.boxShadow="0 4px 16px rgba(45,74,45,0.4)",onMouseLeave:m=>m.currentTarget.style.boxShadow="0 2px 8px rgba(45,74,45,0.3)",children:"+ Novo Projeto"}),n&&p.jsx("button",{"data-loc":"client/src/components/Layout.tsx:343",onClick:i,title:`Conectado como ${n}`,className:"text-[12px] font-bold px-3 py-2 rounded-lg",style:{color:"#2D4A2D",fontFamily:"Nunito, sans-serif",border:"1px solid #c9c3b4"},children:"Sair"})]}),p.jsx("main",{"data-loc":"client/src/components/Layout.tsx:355",className:"conteudo-main flex-1 px-6 py-5",children:a})]})]})}var I1="focusScope.autoFocusOnMount",B1="focusScope.autoFocusOnUnmount",n3={bubbles:!1,cancelable:!0},wte="FocusScope",iF=L.forwardRef((e,t)=>{const{loop:r=!1,trapped:a=!1,onMountAutoFocus:n,onUnmountAutoFocus:i,...o}=e,[s,c]=L.useState(null),u=Tu(n),h=Tu(i),f=L.useRef(null),m=si(t,y=>c(y)),x=L.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;L.useEffect(()=>{if(a){let y=function(E){if(x.paused||!s)return;const j=E.target;s.contains(j)?f.current=j:ds(f.current,{select:!0})},b=function(E){if(x.paused||!s)return;const j=E.relatedTarget;j!==null&&(s.contains(j)||ds(f.current,{select:!0}))},S=function(E){if(document.activeElement===document.body)for(const P of E)P.removedNodes.length>0&&ds(s)};document.addEventListener("focusin",y),document.addEventListener("focusout",b);const A=new MutationObserver(S);return s&&A.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",b),A.disconnect()}}},[a,s,x.paused]),L.useEffect(()=>{if(s){o3.add(x);const y=document.activeElement;if(!s.contains(y)){const S=new CustomEvent(I1,n3);s.addEventListener(I1,u),s.dispatchEvent(S),S.defaultPrevented||(Ste(jte(oF(s)),{select:!0}),document.activeElement===y&&ds(s))}return()=>{s.removeEventListener(I1,u),setTimeout(()=>{const S=new CustomEvent(B1,n3);s.addEventListener(B1,h),s.dispatchEvent(S),S.defaultPrevented||ds(y??document.body,{select:!0}),s.removeEventListener(B1,h),o3.remove(x)},0)}}},[s,u,h,x]);const v=L.useCallback(y=>{if(!r&&!a||x.paused)return;const b=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,S=document.activeElement;if(b&&S){const A=y.currentTarget,[E,j]=Ete(A);E&&j?!y.shiftKey&&S===j?(y.preventDefault(),r&&ds(E,{select:!0})):y.shiftKey&&S===E&&(y.preventDefault(),r&&ds(j,{select:!0})):S===A&&y.preventDefault()}},[r,a,x.paused]);return p.jsx(Ha.div,{tabIndex:-1,...o,ref:m,onKeyDown:v})});iF.displayName=wte;function Ste(e,{select:t=!1}={}){const r=document.activeElement;for(const a of e)if(ds(a,{select:t}),document.activeElement!==r)return}function Ete(e){const t=oF(e),r=i3(t,e),a=i3(t.reverse(),e);return[r,a]}function oF(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const n=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||n?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function i3(e,t){for(const r of e)if(!Ate(r,{upTo:t}))return r}function Ate(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Cte(e){return e instanceof HTMLInputElement&&"select"in e}function ds(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Cte(e)&&t&&e.select()}}var o3=Pte();function Pte(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=s3(e,t),e.unshift(t)},remove(t){e=s3(e,t),e[0]?.resume()}}}function s3(e,t){const r=[...e],a=r.indexOf(t);return a!==-1&&r.splice(a,1),r}function jte(e){return e.filter(t=>t.tagName!=="A")}var L1=0;function Nte(){L.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??l3()),document.body.insertAdjacentElement("beforeend",e[1]??l3()),L1++,()=>{L1===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),L1--}},[])}function l3(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
vendor: 4,147 bytes, line 475
475style.position="fixed",e.style.pointerEvents="none",e}var bi=function(){return bi=Object.assign||function(t){for(var r,a=1,n=arguments.length;a<n;a++){r=arguments[a];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},bi.apply(this,arguments)};function sF(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(r[a[n]]=e[a[n]]);return r}function Tte(e,t,r){if(r||arguments.length===2)for(var a=0,n=t.length,i;a<n;a++)(i||!(a in t))&&(i||(i=Array.prototype.slice.call(t,0,a)),i[a]=t[a]);return e.concat(i||Array.prototype.slice.call(t))}var mx="right-scroll-bar-position",gx="width-before-scroll-bar",kte="with-scroll-bars-hidden",Dte="--removed-body-scroll-bar-size";function z1(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function _te(e,t){var r=L.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(a){var n=r.value;n!==a&&(r.value=a,r.callback(a,n))}}}})[0];return r.callback=t,r.facade}var Rte=typeof window<"u"?L.useLayoutEffect:L.useEffect,c3=new WeakMap;function Ote(e,t){var r=_te(null,function(a){return e.forEach(function(n){return z1(n,a)})});return Rte(function(){var a=c3.get(r);if(a){var n=new Set(a),i=new Set(e),o=r.current;n.forEach(function(s){i.has(s)||z1(s,null)}),i.forEach(function(s){n.has(s)||z1(s,o)})}c3.set(r,e)},[e]),r}function Mte(e){return e}function Ite(e,t){t===void 0&&(t=Mte);var r=[],a=!1,n={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(i){var o=t(i,a);return r.push(o),function(){r=r.filter(function(s){return s!==o})}},assignSyncMedium:function(i){for(a=!0;r.length;){var o=r;r=[],o.forEach(i)}r={push:function(s){return i(s)},filter:function(){return r}}},assignMedium:function(i){a=!0;var o=[];if(r.length){var s=r;r=[],s.forEach(i),o=r}var c=function(){var h=o;o=[],h.forEach(i)},u=function(){return Promise.resolve().then(c)};u(),r={push:function(h){o.push(h),u()},filter:function(h){return o=o.filter(h),r}}}};return n}function Bte(e){e===void 0&&(e={});var t=Ite(null);return t.options=bi({async:!0,ssr:!1},e),t}var lF=function(e){var t=e.sideCar,r=sF(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw new Error("Sidecar medium not found");return L.createElement(a,bi({},r))};lF.isSideCarExport=!0;function Lte(e,t){return e.useMedium(t),lF}var cF=Bte(),F1=function(){},ly=L.forwardRef(function(e,t){var r=L.useRef(null),a=L.useState({onScrollCapture:F1,onWheelCapture:F1,onTouchMoveCapture:F1}),n=a[0],i=a[1],o=e.forwardProps,s=e.children,c=e.className,u=e.removeScrollBar,h=e.enabled,f=e.shards,m=e.sideCar,x=e.noRelative,v=e.noIsolation,y=e.inert,b=e.allowPinchZoom,S=e.as,A=S===void 0?"div":S,E=e.gapMode,j=sF(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=m,C=Ote([r,t]),N=bi(bi({},j),n);return L.createElement(L.Fragment,null,h&&L.createElement(P,{sideCar:cF,removeScrollBar:u,shards:f,noRelative:x,noIsolation:v,inert:y,setCallbacks:i,allowPinchZoom:!!b,lockRef:r,gapMode:E}),o?L.cloneElement(L.Children.only(s),bi(bi({},N),{ref:C})):L.createElement(A,bi({},N,{className:c,ref:C}),s))});ly.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ly.classNames={fullWidth:gx,zeroRight:mx};var zte=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Fte(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=zte();return t&&e.setAttribute("nonce",t),e}function $te(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function qte(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Vte=function(){var e=0,t=null;
vendor: 4,638 bytes, lines 475-515
475return{add:function(r){e==0&&(t=Fte())&&($te(t,r),qte(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ute=function(){var e=Vte();return function(t,r){L.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},uF=function(){var e=Ute(),t=function(r){var a=r.styles,n=r.dynamic;return e(a,n),null};return t},Hte={left:0,top:0,right:0,gap:0},$1=function(e){return parseInt(e||"",10)||0},Gte=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],a=t[e==="padding"?"paddingTop":"marginTop"],n=t[e==="padding"?"paddingRight":"marginRight"];return[$1(r),$1(a),$1(n)]},Kte=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Hte;var t=Gte(e),r=document.documentElement.clientWidth,a=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,a-r+t[2]-t[0])}},Wte=uF(),wu="data-scroll-locked",Xte=function(e,t,r,a){var n=e.left,i=e.top,o=e.right,s=e.gap;return r===void 0&&(r="margin"),` 476 .`.concat(kte,` { 477 overflow: hidden `).concat(a,`; 478 padding-right: `).concat(s,"px ").concat(a,`; 479 } 480 body[`).concat(wu,`] { 481 overflow: hidden `).concat(a,`; 482 overscroll-behavior: contain; 483 `).concat([t&&"position: relative ".concat(a,";"),r==="margin"&&` 484 padding-left: `.concat(n,`px; 485 padding-top: `).concat(i,`px; 486 padding-right: `).concat(o,`px; 487 margin-left:0; 488 margin-top:0; 489 margin-right: `).concat(s,"px ").concat(a,`; 490 `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(a,";")].filter(Boolean).join(""),` 491 } 492 493 .`).concat(mx,` { 494 right: `).concat(s,"px ").concat(a,`; 495 } 496 497 .`).concat(gx,` { 498 margin-right: `).concat(s,"px ").concat(a,`; 499 } 500 501 .`).concat(mx," .").concat(mx,` { 502 right: 0 `).concat(a,`; 503 } 504 505 .`).concat(gx," .").concat(gx,` { 506 margin-right: 0 `).concat(a,`; 507 } 508 509 body[`).concat(wu,`] { 510 `).concat(Dte,": ").concat(s,`px; 511 } 512`)},u3=function(){var e=parseInt(document.body.getAttribute(wu)||"0",10);return isFinite(e)?e:0},Yte=function(){L.useEffect(function(){return document.body.setAttribute(wu,(u3()+1).toString()),function(){var e=u3()-1;e<=0?document.body.removeAttribute(wu):document.body.setAttribute(wu,e.toString())}},[])},Zte=function(e){var t=e.noRelative,r=e.noImportant,a=e.gapMode,n=a===void 0?"margin":a;Yte();var i=L.useMemo(function(){return Kte(n)},[n]);return L.createElement(Wte,{styles:Xte(i,!t,n,r?"":"!important")})},TC=!1;if(typeof window<"u")try{var jg=Object.defineProperty({},"passive",{get:function(){return TC=!0,!0}});window.addEventListener("test",jg,jg),window.removeEventListener("test",jg,jg)}catch{TC=!1}var Hc=TC?{passive:!1}:!1,Jte=function(e){return e.tagName==="TEXTAREA"},dF=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Jte(e)&&r[t]==="visible")},Qte=function(e){return dF(e,"overflowY")},ere=function(e){return dF(e,"overflowX")},d3=function(e,t){var r=t.ownerDocument,a=t;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var n=fF(e,a);if(n){var i=pF(e,a),o=i[1],s=i[2];if(o>s)return!0}a=a.parentNode}while(a&&a!==r.body);return!1},tre=function(e){var t=e.scrollTop,r=e.scrollHeight,a=e.clientHeight;return[t,r,a]},rre=function(e){var t=e.scrollLeft,r=e.scrollWidth,a=e.clientWidth;return[t,r,a]},fF=function(e,t){return e==="v"?Qte(t):ere(t)},pF=function(e,t){return e==="v"?tre(t):rre(t)},are=function(e,t){return e==="h"&&t==="rtl"?-1:1},nre=function(e,t,r,a,n){var i=are(e,window.getComputedStyle(t).direction),o=i*a,s=r.target,c=t.contains(s),u=!1,h=o>0,f=0,m=0;do{if(!s)break;var x=pF(e,s),v=x[0],y=x[1],b=x[2],S=y-b-i*v;(v||S)&&fF(e,s)&&(f+=S,m+=v);var A=s.parentNode;s=A&&A.nodeType===Node.DOCUMENT_FRAGMENT_NODE?A.host:A}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(h&&Math.abs(f)<1||!h&&Math.abs(m)<1)&&(u=!0),u},Ng=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},f3=function(e){return[e.deltaX,e.deltaY]},p3=function(e){return e&&"current"in e?e.current:e},ire=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ore=function(e){return` 513 .block-interactivity-`.concat(e,` {pointer-events: none;} 514 .allow-interactivity-`).concat(e,` {pointer-events: all;} 515`)},sre=0,Gc=[];function lre(e){var t=L.useRef([]),r=L.useRef([0,0]),a=L.useRef(),n=L.useState(sre++)[0],i=L.useState(uF)[0],o=L.useRef(e);L.useEffect(function(){o.current=e},[e]),L.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(n));var y=Tte([e.lockRef.current],(e.shards||[]).map(p3),!0).filter(
vendor: 1,116 bytes, line 515
515Boolean);return y.forEach(function(b){return b.classList.add("allow-interactivity-".concat(n))}),function(){document.body.classList.remove("block-interactivity-".concat(n)),y.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(n))})}}},[e.inert,e.lockRef.current,e.shards]);var s=L.useCallback(function(y,b){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!o.current.allowPinchZoom;var S=Ng(y),A=r.current,E="deltaX"in y?y.deltaX:A[0]-S[0],j="deltaY"in y?y.deltaY:A[1]-S[1],P,C=y.target,N=Math.abs(E)>Math.abs(j)?"h":"v";if("touches"in y&&N==="h"&&C.type==="range")return!1;var O=d3(N,C);if(!O)return!0;if(O?P=N:(P=N==="v"?"h":"v",O=d3(N,C)),!O)return!1;if(!a.current&&"changedTouches"in y&&(E||j)&&(a.current=P),!P)return!0;var k=a.current||P;return nre(k,b,y,k==="h"?E:j)},[]),c=L.useCallback(function(y){var b=y;if(!(!Gc.length||Gc[Gc.length-1]!==i)){var S="deltaY"in b?f3(b):Ng(b),A=t.current.filter(function(P){return P.name===b.type&&(P.target===b.target||b.target===P.shadowParent)&&ire(P.delta,S)})[0];if(A&&A.should){b.cancelable&&b.preventDefault();return}
vendor: 9,866 bytes, lines 515-519
515if(!A){var E=(o.current.shards||[]).map(p3).filter(Boolean).filter(function(P){return P.contains(b.target)}),j=E.length>0?s(b,E[0]):!o.current.noIsolation;j&&b.cancelable&&b.preventDefault()}}},[]),u=L.useCallback(function(y,b,S,A){var E={name:y,delta:b,target:S,should:A,shadowParent:cre(S)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(j){return j!==E})},1)},[]),h=L.useCallback(function(y){r.current=Ng(y),a.current=void 0},[]),f=L.useCallback(function(y){u(y.type,f3(y),y.target,s(y,e.lockRef.current))},[]),m=L.useCallback(function(y){u(y.type,Ng(y),y.target,s(y,e.lockRef.current))},[]);L.useEffect(function(){return Gc.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:m}),document.addEventListener("wheel",c,Hc),document.addEventListener("touchmove",c,Hc),document.addEventListener("touchstart",h,Hc),function(){Gc=Gc.filter(function(y){return y!==i}),document.removeEventListener("wheel",c,Hc),document.removeEventListener("touchmove",c,Hc),document.removeEventListener("touchstart",h,Hc)}},[]);var x=e.removeScrollBar,v=e.inert;return L.createElement(L.Fragment,null,v?L.createElement(i,{styles:ore(n)}):null,x?L.createElement(Zte,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function cre(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ure=Lte(cF,lre);var hF=L.forwardRef(function(e,t){return L.createElement(ly,bi({},e,{ref:t,sideCar:ure}))});hF.classNames=ly.classNames;var dre=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Kc=new WeakMap,Tg=new WeakMap,kg={},q1=0,mF=function(e){return e&&(e.host||mF(e.parentNode))},fre=function(e,t){return t.map(function(r){if(e.contains(r))return r;var a=mF(r);return a&&e.contains(a)?a:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},pre=function(e,t,r,a){var n=fre(t,Array.isArray(e)?e:[e]);kg[r]||(kg[r]=new WeakMap);var i=kg[r],o=[],s=new Set,c=new Set(n),u=function(f){!f||s.has(f)||(s.add(f),u(f.parentNode))};n.forEach(u);var h=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(m){if(s.has(m))h(m);else try{var x=m.getAttribute(a),v=x!==null&&x!=="false",y=(Kc.get(m)||0)+1,b=(i.get(m)||0)+1;Kc.set(m,y),i.set(m,b),o.push(m),y===1&&v&&Tg.set(m,!0),b===1&&m.setAttribute(r,"true"),v||m.setAttribute(a,"true")}catch(S){console.error("aria-hidden: cannot operate on ",m,S)}})};return h(t),s.clear(),q1++,function(){o.forEach(function(f){var m=Kc.get(f)-1,x=i.get(f)-1;Kc.set(f,m),i.set(f,x),m||(Tg.has(f)||f.removeAttribute(a),Tg.delete(f)),x||f.removeAttribute(r)}),q1--,q1||(Kc=new WeakMap,Kc=new WeakMap,Tg=new WeakMap,kg={})}},hre=function(e,t,r){r===void 0&&(r="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),n=dre(e);return n?(a.push.apply(a,Array.from(n.querySelectorAll("[aria-live], script"))),pre(a,n,r,"aria-hidden")):function(){return null}},cy="Dialog",[gF]=Vj(cy),[mre,li]=gF(cy),xF=e=>{const{__scopeDialog:t,children:r,open:a,defaultOpen:n,onOpenChange:i,modal:o=!0}=e,s=L.useRef(null),c=L.useRef(null),[u,h]=NQ({prop:a,defaultProp:n??!1,onChange:i,caller:cy});return p.jsx(mre,{scope:t,triggerRef:s,contentRef:c,contentId:k1(),titleId:k1(),descriptionId:k1(),open:u,onOpenChange:h,onOpenToggle:L.useCallback(()=>h(f=>!f),[h]),modal:o,children:r})};xF.displayName=cy;var vF="DialogTrigger",gre=L.forwardRef((e,t)=>{const{__scopeDialog:r,...a}=e,n=li(vF,r),i=si(t,n.triggerRef);return p.jsx(Ha.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":oN(n.open),...a,ref:i,onClick:$a(e.onClick,n.onOpenToggle)})});gre.displayName=vF;var nN="DialogPortal",[xre,yF]=gF(nN,{forceMount:void 0}),bF=e=>{const{__scopeDialog:t,forceMount:r,children:a,container:n}=e,i=li(nN,t);return p.jsx(xre,{scope:t,forceMount:r,children:L.Children.map(a,o=>p.jsx(_h,{present:r||i.open,children:p.jsx(Ez,{asChild:!0,container:n,children:o})}))})};bF.displayName=nN;var Ox="DialogOverlay",wF=L.forwardRef((e,t)=>{const r=yF(Ox,e.__scopeDialog),{forceMount:a=r.forceMount,...n}=e,i=li(Ox,e.__scopeDialog);return i.modal?p.jsx(_h,{present:a||i.open,children:p.jsx(yre,{...n,ref:t})}):null});wF.displayName=Ox;var vre=Uj("DialogOverlay.RemoveScroll"),yre=L.forwardRef((e,t)=>{const{__scopeDialog:r,...a}=e,n=li(Ox,r);return p.jsx(hF,{as:vre,allowPinchZoom:!0,shards:[n.contentRef],children:p.jsx(Ha.div,{"data-state":oN(n.open),...a,ref:t,style:{pointerEvents:"auto",...a.style}})})}),zl="DialogContent",SF=L.forwardRef((e,t)=>{const r=yF(zl,e.__scopeDialog),{forceMount:a=r.forceMount,...n}=e,i=li(zl,e.__scopeDialog);return p.jsx(_h,{present:a||i.open,children:i.modal?p.jsx(bre,{...n,ref:t}):p.jsx(wre,{...n,ref:t})})});SF.displayName=zl;var bre=L.forwardRef((e,t)=>{const r=li(zl,e.__scopeDialog),a=L.useRef(null),n=si(t,r.contentRef,a);return L.useEffect(()=>{const i=a.current;if(i)return hre(i)},[]),p.jsx(EF,{...e,ref:n,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:$a(e.onCloseAutoFocus,i=>{i.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:$a(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,s=o.button===0&&o.ctrlKey===!0;(o.button===2||s)&&i.preventDefault()}),onFocusOutside:$a(e.onFocusOutside,i=>i.preventDefault())})}),wre=L.forwardRef((e,t)=>{const r=li(zl,e.__scopeDialog),a=L.useRef(!1),n=L.useRef(!1);return p.jsx(EF,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(a.current||r.triggerRef.current?.focus(),i.preventDefault()),a.current=!1,n.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(a.current=!0,i.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const o=i.target;r.triggerRef.current?.contains(o)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&n.current&&i.preventDefault()}})}),EF=L.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:a,onOpenAutoFocus:n,onCloseAutoFocus:i,...o}=e,s=li(zl,r),c=L.useRef(null),u=si(t,c);return Nte(),p.jsxs(p.Fragment,{children:[p.jsx(iF,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:n,onUnmountAutoFocus:i,children:p.jsx(Hj,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":oN(s.open),...o,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(Ere,{titleId:s.titleId}),p.jsx(Cre,{contentRef:c,descriptionId:s.descriptionId})]})]})}),iN="DialogTitle",AF=L.forwardRef((e,t)=>{const{__scopeDialog:r,...a}=e,n=li(iN,r);return p.jsx(Ha.h2,{id:n.titleId,...a,ref:t})});AF.displayName=iN;var CF="DialogDescription",Sre=L.forwardRef((e,t)=>{const{__scopeDialog:r,...a}=e,n=li(CF,r);return p.jsx(Ha.p,{id:n.descriptionId,...a,ref:t})});Sre.displayName=CF;var PF="DialogClose",jF=L.forwardRef((e,t)=>{const{__scopeDialog:r,...a}=e,n=li(PF,r);return p.jsx(Ha.button,{type:"button",...a,ref:t,onClick:$a(e.onClick,()=>n.onOpenChange(!1))})});jF.displayName=PF;function oN(e){return e?"open":"closed"}var NF="DialogTitleWarning",[$Me,TF]=BZ(NF,{contentName:zl,titleName:iN,docsSlug:"dialog"}),Ere=({titleId:e})=>{const t=TF(NF),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 516 517If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 518 519For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return L.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Are="DialogDescriptionWarning",Cre=({contentRef:e,descriptionId:t})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${TF(Are).contentName}}.`;return L.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(a))},[a,e,t]),null},Pre=xF,jre=bF,Nre=wF,Tre=SF,kre=AF,Dre=jF;const kF=L.createContext({isComposing:()=>!1,setComposing:()=>{},justEndedComposing:()=>!1,markCompositionEnd:()=>{}}),_re=()=>L.useContext(kF);function Rre({...e}){const t=L.useRef(!1),r=L.useRef(!1),a=L.useRef(null),n=L.useMemo(()=>({isComposing:()=>t.current,setComposing:i=>{t.current=i},justEndedComposing:()=>r.current,markCompositionEnd:()=>{r.current=!0,a.current&&clearTimeout(a.current),a.current=setTimeout(()=>{r.current=!1},150)}}),[]);return p.jsx(kF.Provider,{"data-loc":"client/src/components/ui/dialog.tsx:50",value:n,children:p.jsx(Pre,{"data-loc":"client/src/components/ui/dialog.tsx:51","data-slot":"dialog",...e})})}function Ore({...e}){return p.jsx(jre,{"data-loc":"client/src/components/ui/dialog.tsx:65","data-slot":"dialog-portal",...e})}function DF({className:e,...t}){return p.jsx(Nre,{"data-loc":"client/src/components/ui/dialog.tsx:79","data-slot":"dialog-overlay",className:ii("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}DF.displayName="DialogOverlay";function Mre({className:e,children:t,showCloseButton:r=!0,onEscapeKeyDown:a,...n}){const{isComposing:i}=_re(),o=L.useCallback(s=>{if(s.isComposing||i()){s.preventDefault();return}a?.(s)},[i,a]);return p.jsxs(Ore,{"data-loc":"client/src/components/ui/dialog.tsx:122","data-slot":"dialog-portal",children:[p.jsx(DF,{"data-loc":"client/src/components/ui/dialog.tsx:123"}),p.jsxs(Tre,{"data-loc":"client/src/components/ui/dialog.tsx:124","data-slot":"dialog-content",className:ii("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 roun
519ded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),onEscapeKeyDown:o,...n,children:[t,r&&p.jsxs(Dre,{"data-loc":"client/src/components/ui/dialog.tsx:135","data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[p.jsx(dn,{"data-loc":"client/src/components/ui/dialog.tsx:139"}),p.jsx("span",{"data-loc":"client/src/components/ui/dialog.tsx:140",className:"sr-only",children:"Close"})]})]})]})}function Ire({className:e,...t}){return p.jsx(kre,{"data-loc":"client/src/components/ui/dialog.tsx:176","data-slot":"dialog-title",className:ii("text-lg leading-none font-semibold",e),...t})}const Bre="modulepreload",Lre=function(e){return"/"+e},h3={},_F=function(t,r,a){let n=Promise.resolve();if(r&&r.length>0){let c=function(u){return Promise.all(u.map(h=>Promise.resolve(h).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),s=o?.nonce||o?.getAttribute("nonce");n=c(r.map(u=>{if(u=Lre(u),u in h3)return;h3[u]=!0;const h=u.endsWith(".css"),f=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${f}`))return;const m=document.createElement("link");if(m.rel=h?"stylesheet":Bre,h||(m.as="script"),m.crossOrigin="",m.href=u,s&&m.setAttribute("nonce",s),document.head.appendChild(m),h)return new Promise((x,v)=>{m.addEventListener("load",x),m.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${u}`)))})}))}function i(o){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o}return n.then(o=>{for(const s of o||[])s.status==="rejected"&&i(s.reason);return t().catch(i)})},zre=20*1024*1024;async function Fre(e){if(e.size>zre)throw new Error(`Arquivo "${e.name}" tem ${(e.size/1024/1024).toFixed(1)} MB. Máximo permitido: 20 MB.`);const t=e.name.toLowerCase();if(t.endsWith(".docx")){const r=await _F(()=>import("./index-BnduKBXa.js").then(o=>o.i),[]),a=await e.arrayBuffer(),[n,i]=await Promise.all([r.extractRawText({arrayBuffer:a}),r.convertToHtml({arrayBuffer:a})]);return{nomeArquivo:e.name,texto:n.value,html:i.value,tipo:"docx",tamanhoOriginal:e.size,charsExtraidos:n.value.length}}if(t.endsWith(".md")||t.endsWith(".markdown")){const r=await e.text();return{nomeArquivo:e.name,texto:r,tipo:"md",tamanhoOriginal:e.size,charsExtraidos:r.length}}if(t.endsWith(".txt")){const r=await e.text();return{nomeArquivo:e.name,texto:r,tipo:"txt",tamanhoOriginal:e.size,charsExtraidos:r.length}}throw new Error(`Tipo de arquivo não suportado: ${e.name}. Use .docx, .md ou .txt.`)}async function $re(e,t){const r=await fetch("/api/ai-import-plano",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({texto:e.texto,html:e.html,nomeArquivo:e.nomeArquivo,municipio:t.municipio,estado:t.estado,tipoPPP:t.tipoPPP})});if(!r.ok){const a=await r.json().catch(()=>({error:`HTTP ${r.status}`}));throw new Error(a.error||`HTTP ${r.status}`)}return r.json()}const V1={conceitual:"I. Conceitual",estrategica:"II. Estratégica",operacional:"III. Operacional"},io={conceitual:"#2D4A2D",estrategica:"#5B8FA8",operacional:"#C9A84C"},qre=["AC","AL","AP","AM","BA","CE","DF","ES","GO","MA","MT","MS","MG","PA","PB","PR","PE","PI","RJ","RN","RS","RO","RR","SC","SP","SE","TO"],nl=[{id:1,label:"Buscando dados do municÃpio (IBGE, TSE...)",duracao:700},{id:2,label:"Consultando base PRINT de projetos anteriores...",duracao:600}];function Vre({open:e,onClose:t,onSuccess:r}){const{adicionarProjeto:a}=Ps(),[n,i]=L.useState(""),[o,s]=L.useState(""),[c,u]=L.useState(""),[h,f]=L.useState(!1),[m,x]=L.useState(0),[v,y]=L.useState(!1),[b,S]=L.useState(""),[A,E]=L.useState(0),[j,P]=L.useState(""),[C,N]=L.useState(0),[O,k]=L.useState("pendente"),[B,$]=L.useState("pendente"),[_,W]=L.useState(0),[D,J]=L.useState("padrao"),[z,V]=L.useState(ml.map(H=>({...H}))),[Z,te]=L.useState(null),[K,q]=L.useState(null),[X,U]=L.useState(!1),ie=L.useRef(null),se=D==="padrao"||D==="customizado"&&z.length>=1&&z.every(H=>H.titulo.trim().length>=3)||D==="importado"&&K!==null&&K.secoes.length>0,he=n.trim().length>=3&&o&&c&&se,Y=H=>{V(ce=>[...ce,_ee(H)])},F=H=>{V(ce=>ce.filter(fe=>fe.id!==H))},ae=(H,ce)=>{V(fe=>fe.map(ue=>ue.id===H?{...ue,...ce}:ue))},ne=()=>{V(ml.map(H=>({...H}))),je.info("Sumário restaurado para o padrão PRINT.")},ge=async H=>
519{if(H){if(!c||!n.trim()||!o){je.error("Preencha municÃpio, UF e tipo antes de importar â a IA usa esse contexto na análise.");return}U(!0),q(null),te(null);try{const ce=await Fre(H);te({nome:ce.nomeArquivo,chars:ce.charsExtraidos}),je.info(`Arquivo lido (${ce.charsExtraidos.toLocaleString()} chars). Analisando com IA...`);const fe=await $re(ce,{municipio:n.trim(),estado:o,tipoPPP:Kr[c].label});q(fe),je.success(`IA identificou ${fe.secoes.length} seção(ões). Confira antes de gerar.`)}catch(ce){const fe=ce instanceof Error?ce.message:"Erro desconhecido";je.error(`Falha ao importar: ${fe}`)}finally{U(!1),ie.current&&(ie.current.value="")}}},re=()=>{te(null),q(null)},oe=async()=>{if(!he||!c)return;f(!0),x(0),E(0),N(0),P(""),k("pendente"),$("pendente"),W(0);for(let ke=0;ke<nl.length;ke++)x(ke+1),await new Promise(Ie=>setTimeout(Ie,nl[ke].duracao));const H=n.trim(),ce=Kr[c].label,fe={municipio:H,estado:o,tipoPPP:ce};let ue;D==="padrao"?ue=ml.map(ke=>({...ke})):D==="customizado"?ue=z.map((ke,Ie)=>({...ke,id:jC(ke.titulo)||`secao-${Ie+1}`,titulo:ke.titulo.trim(),subtitulo:ke.subtitulo.trim()})):ue=(K?.secoes??[]).map((ke,Ie)=>({id:jC(ke.titulo)||`secao-import-${Ie+1}`,titulo:ke.titulo.trim(),subtitulo:(ke.subtitulo??"").trim(),parte:ke.parte,statusIA:"gerado",conteudo:ke.conteudo||"(conteúdo vazio)",tipo:ke.tipo??"padrao"}));let we=0,Ne=0;k("gerando"),$("gerando");const De=(async()=>{try{const ke=await fetch("/api/ai-generate-diagnostico",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(fe)});if(!ke.ok){const Pe=await ke.json().catch(()=>({error:`HTTP ${ke.status}`}));throw new Error(Pe.error||`HTTP ${ke.status}`)}const Ie=await ke.json();return k("ok"),Ie.diagnostico}catch(ke){console.error("Falha ao gerar diagnóstico:",ke),k("falhou");return}})(),xe=(async()=>{try{const ke=await fetch("/api/ai-generate-stakeholders",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(fe)});if(!ke.ok){const at=await ke.json().catch(()=>({error:`HTTP ${ke.status}`}));throw new Error(at.error||`HTTP ${ke.status}`)}const Pe=(await ke.json()).stakeholders.map((at,Et)=>({...at,id:Et+1}));return W(Pe.length),$("ok"),Pe}catch(ke){console.error("Falha ao gerar stakeholders:",ke),$("falhou");return}})(),Ee=ue.map(async ke=>{if(D==="importado"&&ke.conteudo&&ke.conteudo.length>40)return we++,E(we),P(ke.titulo),ke;try{const Ie=await fetch("/api/ai-generate-section",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...fe,secao:{titulo:ke.titulo,subtitulo:ke.subtitulo,parte:ke.parte}})});if(!Ie.ok){const at=await Ie.json().catch(()=>({error:`HTTP ${Ie.status}`}));throw new Error(at.error||`HTTP ${Ie.status}`)}const Pe=await Ie.json();return we++,E(we),P(ke.titulo),{...ke,conteudo:Pe.conteudo,statusIA:"gerado"}}catch(Ie){return Ne++,N(Ne),console.error(`Falha ao gerar seção "${ke.titulo}":`,Ie),{...ke,statusIA:"pendente"}}}),[ze,We,it]=await Promise.all([Promise.all(Ee),De,xe]);if(Ne>0&&Ne===ue.length){je.error(`Falha ao gerar todas as ${Ne} seções. Verifique a chave da OpenAI e tente novamente.`),f(!1);return}Ne>0&&je.warning(`${we} seções geradas · ${Ne} falharam (mantidas como pendentes).`),We||je.warning("Diagnóstico do municÃpio não foi gerado â você pode adicionar manualmente depois."),it||je.warning("Stakeholders não foram gerados â você pode mapear manualmente na aba Stakeholders.");const Oe=a(H,o,c,{origem:D,secoes:ze},{diagnostico:We,stakeholdersGerados:it});S(Oe.id),y(!0),f(!1)},G=()=>{r?.(b),pe()},pe=()=>{i(""),s(""),u(""),J("padrao"),V(ml.map(H=>({...H}))),te(null),q(null),U(!1),f(!1),x(0),y(!1),S(""),t()},ee=c?Kr[c]:null,M=D==="padrao"?ml.length:D==="customizado"?z.length:K?.secoes.length??0,I=v?100:h?Math.round(m/nl.length*40+A/Math.max(M,1)*60):0;return p.jsx(Rre,{"data-loc":"client/src/components/NovoProjeto.tsx:350",open:e,onOpenChange:H=>!H&&!h&&pe(),children:p.jsxs(Mre,{"data-loc":"client/src/components/NovoProjeto.tsx:351",className:"max-w-lg p-0 overflow-hidden",style:{backgroundColor:"#FAFAF8",border:"1px solid #C9B99A",borderRadius:"16px"},children:[p.jsx("div",{"data-loc":"client/src/components/NovoProjeto.tsx:356",className:"px-6 pt-6 pb-5",style:{borderBottom:"1px solid #EDE9DF"},children:p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:360",className:"flex items-center gap-3 mb-1",children:[p.jsx("div",{"data-loc":"client/src/components/NovoProjeto.tsx:361",className:"w-9 h-9 rounded-xl flex items-center justify-center",style:{background:"linear-gradient(135deg, #2D4A2D, #4a6e4a)"},children:p.jsx(pn,{"data-loc":"client/src/components/NovoProjeto.tsx:365",size:16,color:"#EDE9DF"})}),p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:367",children:[p.jsx(Ire,{"data-loc":"client/src/components/NovoProjeto.tsx:368",className:"text-[16px] font-black leading-none",style:{color:"#1E1E1E",fontFamily:"Nunito, sans-serif"},children:"Novo Projeto PPP"}),p.jsx("p",{"data-loc":"client/src/components/NovoProjeto.tsx:374",className:"text-[11px] mt-0.5",style:{color:"#7A8C5E"},children:"2 inputs â sistema completo gerado por IA"})]})]})}),p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:381",className:"px-6 py-5",children:[!h&&!v&&p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:383",className:"space-y-5",children:[p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:385",children:[p.jsx("label",{"data-loc":"client/src/components/NovoProjeto.tsx:386",className:"block text-[11px] font-black uppercase tracking-[1.5px] mb-2",style:{color:"#2D4A2D",fontFamily:"Nunito, sans-serif"},children:"MunicÃpio"}),p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:392",className:"flex gap-2",children:[p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:393",className:"flex-1 flex items-center gap-2 px-3 py-2.5 rounded-lg",style:{border:"1.5px solid #C9B99A",backgroundColor:"#fff"},children:[p.jsx(Zl,{"data-loc":"client/src/components/NovoProjeto.tsx:397",size:14,style:{color:"#7A8C5E",flexShrink:0}}),p.jsx("input",{"data-loc":"client/src/components/NovoProjeto.tsx:398",type:"text",placeholder:"Nome do municÃpio...",value:n,onChange:H=>i(H.target.value),className:"flex-1 text-[13px] bg-transparent outline-none",style:{color:"#1E1E1E",fontFamily:"Nunito, sans-serif"},autoFocus:!0})]}),p.jsxs("select",{"data-loc":"client/src/components/NovoProjeto.tsx:408",value:o,onChange:H=>s(H.target.value),className:"text-[13px] font-bold px-3 py-2.5 rounded-lg outline-none",style:{border:"1.5px solid #C9B99A",backgroundColor:"#fff",color:o?"#1E1E1E":"#7A8C5E",fontFamily:"Nunito, sans-serif",width:"80px"},children:[p.jsx("option",{"data-loc":"client/src/components/NovoProjeto.tsx:420",value:"",children:"UF"}),qre.map(H=>p.jsx("option",{"data-loc":"client/src/components/NovoProjeto.tsx:422",value:H,children:H},H))]})]})]}),p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:429",children:[p.jsx("label",{"data-loc":"client/src/components/NovoProjeto.tsx:430",className:"block text-[11px] font-black uppercase tracking-[1.5px] mb-2",style:{color:"#2D4A2D",fontFamily:"Nunito, sans-serif"},children:"Tipo de Projeto PPP"}),p.jsx("div",{"data-loc":"client/src/components/NovoProjeto.tsx:436",className:"grid grid-cols-2 gap-2",children:Object.entries(Kr).map(([H,ce])=>p.jsxs("button",{"data-loc":"client/src/components/NovoProjeto.tsx:438",onClick:()=>u(H),className:"flex items-center gap-2 px-3 py-2.5 rounded-lg text-left transition-all",style:{border:c===H?`2px solid ${ce.cor}`:"1.5px solid #C9B99A",backgroundColor:c===H?`${ce.cor}12`:"#fff",fontFamily:"Nunito, sans-serif"},children:[p.jsx("span",{"data-loc":"client/src/components/NovoProjeto.tsx:448",className:"text-[16px]",children:ce.icone}),p.jsx("span",{"data-loc":"client/src/components/NovoProjeto.tsx:449",className:"text-[11px] font-bold leading-tight",style:{color:c===H?ce.cor:"#7A8C5E"},children:ce.label})]},H))})]}),c&&p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:462",children:[p.jsxs("label",{"data-loc":"client/src/components/NovoProjeto.tsx:463",className:"block text-[11px] font-black uppercase tracking-[1.5px] mb-2",style:{color:"#2D4A2D",fontFamily:"Nunito, sans-serif"},children:[p.jsx(ate,{"data-loc":"client/src/components/NovoProjeto.tsx:467",size:11,className:"inline mr-1 -mt-0.5"}),"Sumário do Plano de Comunicação"]}),p.jsx("div",{"data-loc":"client/src/components/NovoProjeto.tsx:472",className:"grid grid-cols-3 gap-2 mb-3",children:[{op:"padrao",label:"Sumário padrão",desc:"9 seções PRINT"},{op:"customizado",label:"Customizado",desc:"Defina suas seções"},{op:"importado",label:"ð Importar",desc:".docx / .md / .txt"}].map(({op:H,label:ce,desc:fe})=>{const ue=D===H;return p.jsxs("button",{"data-loc":"client/src/components/NovoProjeto.tsx:480",onClick:()=>J(H),className:"px-3 py-2 rounded-lg text-left transition-all",style:{border:ue?"2px solid #2D4A2D":"1.5px solid #C9B99A",backgroundColor:ue?"#2D4A2D0A":"#fff",fontFamily:"Nunito, sans-serif"},children:[p.jsx("div",{"data-loc":"client/src/components/NovoProjeto.tsx:490",className:"text-[11px] font-bold",style:{color:ue?"#2D4A2D":"#7A8C5E"},children:ce}),p.jsx("div",{"data-loc":"client/src/components/NovoProjeto.tsx:493",className:"text-[9px] mt-0.5",style:{color:ue?"#4a5a38":"#C9B99A"},children:fe})]},H)})}),D==="padrao"&&p.jsx("div",{"data-loc":"client/src/components/NovoProjeto.tsx:503",className:"rounded-lg p-3 max-h-44 overflow-auto",style:{backgroundColor:"#EDE9DF",border:"1px solid #C9B99A"},children:ml.map((H,ce)=>p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:508",className:"flex items-center gap-2 py-0.5",children:[p.jsx("span",{"data-loc":"client/src/components/NovoProjeto.tsx:509",className:"text-[8px] font-black px-1.5 py-0.5 rounded",style:{backgroundColor:`${io[H.parte]}20`,color:io[H.parte]},children:V1[H.parte].split(".")[0]}),p.jsxs("span",{"data-loc":"client/src/components/NovoProjeto.tsx:518",className:"text-[11px]",style:{color:"#1E1E1E",fontFamily:"Nunito, sans-serif"},children:[ce+1,". ",H.titulo]})]},H.id))}),D==="customizado"&&p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:528",className:"space-y-2",children:[p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:529",className:"flex items-center justify-between",children:[p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:530",className:"text-[9px] font-bold uppercase tracking-[1px]",style:{color:"#7A8C5E"},children:[z.length," seção(ões) · todas precisam de tÃtulo"]}),p.jsxs("button",{"data-loc":"client/src/components/NovoProjeto.tsx:533",onClick:ne,className:"flex items-center gap-1 text-[9px] font-bold px-2 py-1 rounded",style:{border:"1px solid #C9B99A",color:"#7A8C5E",fontFamily:"Nunito, sans-serif"},children:[p.jsx(aF,{"data-loc":"client/src/components/NovoProjeto.tsx:538",size:10})," Resetar padrão"]})]}),p.jsx("div",{"data-loc":"client/src/components/NovoProjeto.tsx:542",className:"rounded-lg p-2 max-h-64 overflow-auto space-y-1.5",style:{backgroundColor:"#FAFAF8",border:"1px solid #C9B99A"},children:z.map((H,ce)=>p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:547",className:"flex items-center gap-1.5 bg-white rounded-lg p-1.5",style:{border:"1px solid #EDE9DF"},children:[p.jsx("span",{"data-loc":"client/src/components/NovoProjeto.tsx:548",className:"text-[10px] font-black w-5 text-center",style:{color:"#7A8C5E"},children:ce+1}
519),p.jsxs("select",{"data-loc":"client/src/components/NovoProjeto.tsx:549",value:H.parte,onChange:fe=>ae(H.id,{parte:fe.target.value}),className:"text-[10px] font-bold px-1.5 py-1 rounded outline-none",style:{border:"1px solid #C9B99A",backgroundColor:`${io[H.parte]}10`,color:io[H.parte],fontFamily:"Nunito, sans-serif"},children:[p.jsx("option",{"data-loc":"client/src/components/NovoProjeto.tsx:560",value:"conceitual",children:"I. Conceitual"}),p.jsx("option",{"data-loc":"client/src/components/NovoProjeto.tsx:561",value:"estrategica",children:"II. Estratégica"}),p.jsx("option",{"data-loc":"client/src/components/NovoProjeto.tsx:562",value:"operacional",children:"III. Operacional"})]}),p.jsx("input",{"data-loc":"client/src/components/NovoProjeto.tsx:564",type:"text",placeholder:"TÃtulo da seção",value:H.titulo,onChange:fe=>ae(H.id,{titulo:fe.target.value}),className:"flex-1 text-[11px] px-2 py-1 rounded outline-none",style:{border:"1px solid #EDE9DF",color:"#1E1E1E",fontFamily:"Nunito, sans-serif"}}),p.jsx("button",{"data-loc":"client/src/components/NovoProjeto.tsx:572",onClick:()=>F(H.id),className:"p-1 rounded hover:bg-red-50 transition-colors",style:{color:"#c0392b"},title:"Remover seção",children:p.jsx(ei,{"data-loc":"client/src/components/NovoProjeto.tsx:578",size:12})})]},H.id))}),p.jsx("div",{"data-loc":"client/src/components/NovoProjeto.tsx:584",className:"grid grid-cols-3 gap-1.5",children:["conceitual","estrategica","operacional"].map(H=>p.jsxs("button",{"data-loc":"client/src/components/NovoProjeto.tsx:586",onClick:()=>Y(H),className:"flex items-center justify-center gap-1 py-1.5 rounded-lg text-[10px] font-bold transition-all",style:{border:`1px dashed ${io[H]}80`,color:io[H],backgroundColor:`${io[H]}08`,fontFamily:"Nunito, sans-serif"},children:[p.jsx(fa,{"data-loc":"client/src/components/NovoProjeto.tsx:597",size:10})," ",V1[H]]},H))}),!se&&D==="customizado"&&p.jsx("div",{"data-loc":"client/src/components/NovoProjeto.tsx:603",className:"text-[10px] font-bold",style:{color:"#c0392b"},children:"Todas as seções precisam de um tÃtulo (⥠3 caracteres)."})]}),D==="importado"&&p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:612",className:"space-y-2",children:[p.jsx("input",{"data-loc":"client/src/components/NovoProjeto.tsx:613",ref:ie,type:"file",accept:".docx,.md,.markdown,.txt",onChange:H=>ge(H.target.files?.[0]??null),className:"hidden"}),!Z&&!X&&p.jsxs("button",{"data-loc":"client/src/components/NovoProjeto.tsx:621",onClick:()=>ie.current?.click(),disabled:!n.trim()||!o||!c,className:"w-full flex flex-col items-center justify-center py-6 rounded-xl transition-all disabled:opacity-50",style:{border:"2px dashed #2D4A2D60",backgroundColor:"#2D4A2D08",fontFamily:"Nunito, sans-serif"},children:[p.jsx(Ll,{"data-loc":"client/src/components/NovoProjeto.tsx:627",size:20,style:{color:"#2D4A2D"}}),p.jsx("div",{"data-loc":"client/src/components/NovoProjeto.tsx:628",className:"text-[12px] font-black mt-2",style:{color:"#2D4A2D"},children:"Selecionar arquivo"}),p.jsx("div",{"data-loc":"client/src/components/NovoProjeto.tsx:631",className:"text-[10px] mt-1",style:{color:"#7A8C5E"},children:".docx · .md · .txt · até 20MB"})]}),X&&p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:638",className:"flex items-center gap-2 p-3 rounded-lg",style:{border:"1.5px solid #2D4A2D30",backgroundColor:"#2D4A2D05"},children:[p.jsx(Wt,{"data-loc":"client/src/components/NovoProjeto.tsx:639",size:14,className:"animate-spin",style:{color:"#2D4A2D"}}),p.jsx("div",{"data-loc":"client/src/components/NovoProjeto.tsx:640",className:"text-[11px] font-bold",style:{color:"#2D4A2D"},children:Z?"Analisando com IA...":"Lendo arquivo..."})]}),Z&&K&&!X&&p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:647",className:"space-y-2",children:[p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:648",className:"flex items-center gap-2 p-2 rounded-lg",style:{border:"1px solid #7A8C5E40",backgroundColor:"#7A8C5E10"},children:[p.jsx(ta,{"data-loc":"client/src/components/NovoProjeto.tsx:649",size:14,style:{color:"#7A8C5E"}}),p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:650",className:"flex-1 min-w-0",children:[p.jsx("div",{"data-loc":"client/src/components/NovoProjeto.tsx:651",className:"text-[11px] font-bold truncate",style:{color:"#2D4A2D"},children:Z.nome}),p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:654",className:"text-[9px]",style:{color:"#7A8C5E"}
519,children:[Z.chars.toLocaleString()," chars extraÃdos · ",K.tokensUsados??"?"," tokens"]})]}),p.jsx("button",{"data-loc":"client/src/components/NovoProjeto.tsx:658",onClick:re,className:"text-[10px] px-2 py-1 rounded",style:{color:"#c0392b",border:"1px solid #c0392b40"},children:"Trocar"})]}),K.resumoAnalise&&p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:668",className:"text-[10px] italic p-2 rounded",style:{color:"#4a5a38",backgroundColor:"#EDE9DF60"},children:["ð¡ ",K.resumoAnalise]}),p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:673",className:"text-[10px] font-bold uppercase tracking-wider",style:{color:"#7A8C5E"},children:[K.secoes.length," seções identificadas:"]}),p.jsx("div",{"data-loc":"client/src/components/NovoProjeto.tsx:676",className:"rounded-lg p-2 max-h-60 overflow-auto space-y-1",style:{border:"1px solid #C9B99A",backgroundColor:"#FAFAF8"},children:K.secoes.map((H,ce)=>p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:678",className:"flex items-start gap-2 py-1",children:[p.jsx("span",{"data-loc":"client/src/components/NovoProjeto.tsx:679",className:"text-[8px] font-black px-1.5 py-0.5 rounded flex-shrink-0 mt-0.5",style:{backgroundColor:`${io[H.parte]}20`,color:io[H.parte]},children:V1[H.parte].split(".")[0]}),p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:688",className:"flex-1 min-w-0",children:[p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:689",className:"text-[11px] font-bold",style:{color:"#1E1E1E",fontFamily:"Nunito, sans-serif"},children:[ce+1,". ",H.titulo,H.tipo&&H.tipo!=="padrao"&&p.jsxs("span",{"data-loc":"client/src/components/NovoProjeto.tsx:692",className:"ml-1 text-[8px] font-black uppercase",style:{color:"#C9A84C"},children:["· ",H.tipo==="benchmarking"?"ð benchmark":"ðï¸ contexto"]})]}),H.subtitulo&&p.jsx("div",{"data-loc":"client/src/components/NovoProjeto.tsx:698",className:"text-[9px]",style:{color:"#8B7355"},children:H.subtitulo}),p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:700",className:"text-[9px]",style:{color:"#7A8C5E"},children:[(H.conteudo?.length??0).toLocaleString()," chars de conteúdo"]})]})]},ce))}),K.alertas.length>0&&p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:709",className:"text-[10px] p-2 rounded",style:{color:"#7a6020",backgroundColor:"#C9A84C15",border:"1px solid #C9A84C40"},children:[p.jsx("div",{"data-loc":"client/src/components/NovoProjeto.tsx:710",className:"font-black uppercase tracking-wider mb-1",children:"â Pontos a conferir:"}),p.jsx("ul",{"data-loc":"client/src/components/NovoProjeto.tsx:711",className:"list-disc pl-4 space-y-0.5",children:K.alertas.map((H,ce)=>p.jsx("li",{"data-loc":"client/src/components/NovoProjeto.tsx:712",children:H},ce))})]})]}),(!n.trim()||!o||!c)&&p.jsx("div",{"data-loc":"client/src/components/NovoProjeto.tsx:720",className:"text-[10px] italic",style:{color:"#c0392b"},children:"Preencha municÃpio, UF e tipo antes de importar â o contexto ajuda a IA a organizar melhor as seções."})]})]}),he&&ee&&p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:731",className:"rounded-xl p-4",style:{backgroundColor:"#2D4A2D0A",border:"1px solid #2D4A2D20"},children:[p.jsx("div",{"data-loc":"client/src/components/NovoProjeto.tsx:735",className:"text-[10px] font-black uppercase tracking-[1.5px] mb-2",style:{color:"#2D4A2D"},children:"O sistema vai gerar automaticamente:"}),p.jsx("div",{"data-loc":"client/src/components/NovoProjeto.tsx:738",className:"grid grid-cols-2 gap-1",children:["ð Varredura de fontes (IBGE, TSE...)","ð¥ Mapeamento de stakeholders","ð Plano de comunicação completo","ð
12 fases do projeto","â
Tarefas no Kanban","ð Rascunho do hotsite","ð Estrutura de documentos","ð Pin no mapa de cobertura"].map(H=>p.jsx("div",{"data-loc":"client/src/components/NovoProjeto.tsx:749",className:"text-[10px] flex items-center gap-1",style:{color:"#4a5a38"},children:p.jsx("span",{"data-loc":"client/src/components/NovoProjeto.tsx:750",children:H})},H))})]}),p.jsx("button",{"data-loc":"client/src/components/NovoProjeto.tsx:758",onClick:oe,disabled:!he,className:"w-full py-3 rounded-xl text-[13px] font-black transition-all",style:{background:he?"linear-gradient(135deg, #2D4A2D, #4a6e4a)":"#C9B99A",color:he?"#EDE9DF":"#fff",fontFamily:"Nunito, sans-serif",boxShadow:he?"0 4px 16px rgba(45,74,45,0.3)":"none",cursor:he?"pointer":"not-allowed"},children:p.jsxs("span",{"data-loc":"client/src/components/NovoProjeto.tsx:770",className:"flex items-center justify-center gap-2",children:[p.jsx(pn,{"data-loc":"client/src/components/NovoProjeto.tsx:771",size:14}),"Gerar Projeto com IA"]})})]}),h&&p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:780",className:"py-4 space-y-5",children:[p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:781",className:"text-center",children:[p.jsx("div",{"data-loc":"client/src/components/NovoProjeto.tsx:782",className:"w-14 h-14 roun
519ded-2xl flex items-center justify-center mx-auto mb-3",style:{background:"linear-gradient(135deg, #2D4A2D, #4a6e4a)"},children:p.jsx(Wt,{"data-loc":"client/src/components/NovoProjeto.tsx:786",size:24,color:"#EDE9DF",className:"animate-spin"})}),p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:788",className:"text-[15px] font-black",style:{color:"#1E1E1E",fontFamily:"Nunito, sans-serif"},children:["Gerando ",n,"/",o]}),p.jsx("div",{"data-loc":"client/src/components/NovoProjeto.tsx:791",className:"text-[11px] mt-1",style:{color:"#7A8C5E"},children:ee?.label})]}),p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:797",children:[p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:798",className:"flex justify-between text-[10px] font-bold mb-1.5",style:{color:"#7A8C5E"},children:[p.jsx("span",{"data-loc":"client/src/components/NovoProjeto.tsx:799",children:"Progresso"}),p.jsxs("span",{"data-loc":"client/src/components/NovoProjeto.tsx:800",children:[I,"%"]})]}),p.jsx("div",{"data-loc":"client/src/components/NovoProjeto.tsx:802",className:"h-2 rounded-full overflow-hidden",style:{backgroundColor:"#EDE9DF"},children:p.jsx("div",{"data-loc":"client/src/components/NovoProjeto.tsx:803",className:"h-full rounded-full transition-all duration-500",style:{width:`${I}%`,background:"linear-gradient(90deg, #2D4A2D, #7A8C5E)"}})})]}),p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:814",className:"space-y-2",children:[nl.map((H,ce)=>{const fe=m>ce+1||A>0,ue=m===ce+1&&A===0;return p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:819",className:"flex items-center gap-2.5 text-[11px] transition-all",style:{color:fe?"#7A8C5E":ue?"#2D4A2D":"#C9B99A",fontFamily:"Nunito, sans-serif",fontWeight:ue?700:500},children:[p.jsx("div",{"data-loc":"client/src/components/NovoProjeto.tsx:828",className:"w-4 h-4 rounded-full flex items-center justify-center flex-shrink-0 text-[8px]",style:{backgroundColor:fe?"#7A8C5E":ue?"#2D4A2D":"#EDE9DF",color:fe||ue?"#fff":"#C9B99A"},children:fe?"â":ue?p.jsx(Wt,{"data-loc":"client/src/components/NovoProjeto.tsx:835",size:8,className:"animate-spin"}):ce+1}),H.label]},H.id)}),m>=nl.length&&p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:844",className:"mt-2 flex items-center gap-2.5 text-[11px]",style:{color:O==="ok"?"#7A8C5E":O==="falhou"?"#c0392b":O==="gerando"?"#2D4A2D":"#C9B99A",fontFamily:"Nunito, sans-serif",fontWeight:O==="gerando"?700:500},children:[p.jsx("div",{"data-loc":"client/src/components/NovoProjeto.tsx:852",className:"w-4 h-4 rounded-full flex items-center justify-center flex-shrink-0 text-[8px]",style:{backgroundColor:O==="ok"?"#7A8C5E":O==="falhou"?"#c0392b":O==="gerando"?"#2D4A2D":"#EDE9DF",color:O!=="pendente"?"#fff":"#C9B99A"},children:O==="ok"?"â":O==="falhou"?"â":O==="gerando"?p.jsx(Wt,{"data-loc":"client/src/components/NovoProjeto.tsx:859",size:8,className:"animate-spin"}):"â¯"}),"IA gerando diagnóstico do municÃpio (IBGE, TSE, contexto polÃtico)"]}),m>=nl.length&&p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:867",className:"flex items-center gap-2.5 text-[11px]",style:{color:B==="ok"?"#7A8C5E":B==="falhou"?"#c0392b":B==="gerando"?"#2D4A2D":"#C9B99A",fontFamily:"Nunito, sans-serif",fontWeight:B==="gerando"?700:500},children:[p.jsx("div",{"data-loc":"client/src/components/NovoProjeto.tsx:875",className:"w-4 h-4 rounded-full flex items-center justify-center flex-shrink-0 text-[8px]",style:{backgroundColor:B==="ok"?"#7A8C5E":B==="falhou"?"#c0392b":B==="gerando"?"#2D4A2D":"#EDE9DF",color:B!=="pendente"?"#fff":"#C9B99A"},children:B==="ok"?"â":B==="falhou"?"â":B==="gerando"?p.jsx(Wt,{"data-loc":"client/src/components/NovoProjeto.tsx:882",size:8,className:"animate-spin"}):"â¯"}),"IA mapeando stakeholders (",_>0?`${_} já mapeados`:"poder público, legislativo, imprensa, sociedade civil...",")"]}),m>=nl.length&&p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:890",className:"mt-2 rounded-lg p-3",style:{backgroundColor:A>=M?"#7A8C5E15":"#2D4A2D0A",border:`1px solid ${A>=M?"#7A8C5E40":"#2D4A2D30"}`},children:[p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:897",className:"flex items-center gap-2 mb-2",children:[A>=M?p.jsx(ta,{"data-loc":"client/src/components/NovoProjeto.tsx:899",size:12,style:{color:"#7A8C5E"}}):p.jsx(pn,{"data-loc":"client/src/components/NovoProjeto.tsx:901",size:12,style:{color:"#2D4A2D"}}),p.jsx("span",{"data-loc":"client/src/components/NovoProjeto.tsx:903",className:"text-[11px] font-black",style:{color:"#2D4A2D",fontFamily:"Nunito, sans-serif"},children:"IA escrevendo seções do Plano de Comunicação"}),p.jsxs("span",{"data-loc":"client/src/components/NovoProjeto.tsx:909",className:"text-[10px] ml-auto font-bold",style:{color:"#7A8C5E"},children:[A," / ",M]})]}),p.jsx("div",{"data-loc":"client/src/components/NovoProjeto.tsx:913",className:"h-1.5 rounded-full overflow-hidden mb-2",style:{backgroundColor:"#EDE9DF"},children:p.jsx("div",{"data-loc":"client/src/components/NovoProjeto.tsx:914",className:"h-full transition-all duration-500",style:{width:`${Math.round(A/Math.max(M,1)*100)}%`,background:"linear-gradient(90deg, #2D4A2D, #7A8C5E)"}})}),j&&A<M&&p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:923",className:"text-[10px] italic",style:{color:"#4a5a38",fontFamily:"Nunito, sans-serif"},children:["Ãltima pronta: ",p.jsx("span",{"data-loc":"client/src/components/NovoProjeto.tsx:924",className:"font-bold",children:j})]}),C>0&&p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:928",className:"text-[10px] font-bold mt-1",style:{color:"#c0392b"}
519,children:["â ",C,' falha(s) â seções afetadas viram "Pendente".']})]})]})]}),v&&p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:940",className:"py-4 text-center space-y-4",children:[p.jsx("div",{"data-loc":"client/src/components/NovoProjeto.tsx:941",className:"w-16 h-16 rounded-2xl flex items-center justify-center mx-auto",style:{background:"linear-gradient(135deg, #2D4A2D, #4a6e4a)"},children:p.jsx(ta,{"data-loc":"client/src/components/NovoProjeto.tsx:945",size:28,color:"#EDE9DF"})}),p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:947",children:[p.jsx("div",{"data-loc":"client/src/components/NovoProjeto.tsx:948",className:"text-[16px] font-black",style:{color:"#1E1E1E",fontFamily:"Nunito, sans-serif"},children:"Projeto gerado com sucesso!"}),p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:951",className:"text-[12px] mt-1",style:{color:"#7A8C5E"},children:[n,"/",o," · ",ee?.label]})]}),p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:955",className:"rounded-xl p-4 text-left",style:{backgroundColor:"#2D4A2D0A",border:"1px solid #2D4A2D20"},children:[p.jsx("div",{"data-loc":"client/src/components/NovoProjeto.tsx:959",className:"text-[10px] font-black uppercase tracking-[1.5px] mb-2",style:{color:"#2D4A2D"},children:"Gerado e pronto para revisão:"}),["â
Diagnóstico do municÃpio","â
24 stakeholders mapeados (aguardando revisão)","â
Plano de comunicação â rascunho inicial","â
12 fases estruturadas","â
18 tarefas criadas no Kanban","â
Rascunho do hotsite","â
Pin adicionado ao mapa de cobertura"].map(H=>p.jsx("div",{"data-loc":"client/src/components/NovoProjeto.tsx:971",className:"text-[11px] mb-1",style:{color:"#4a5a38",fontFamily:"Nunito, sans-serif"},children:H},H))]}),p.jsxs("div",{"data-loc":"client/src/components/NovoProjeto.tsx:976",className:"flex gap-2",children:[p.jsx("button",{"data-loc":"client/src/components/NovoProjeto.tsx:977",onClick:pe,className:"flex-1 py-2.5 rounded-xl text-[12px] font-bold",style:{border:"1.5px solid #C9B99A",color:"#7A8C5E",fontFamily:"Nunito, sans-serif"},children:"Fechar"}),p.jsx("button",{"data-loc":"client/src/components/NovoProjeto.tsx:984",onClick:G,className:"flex-1 py-2.5 rounded-xl text-[12px] font-black",style:{background:"linear-gradient(135deg, #2D4A2D, #4a6e4a)",color:"#EDE9DF",fontFamily:"Nunito, sans-serif"},children:"Abrir Projeto â"})]})]})]})]})})}const Ure={positivo:{label:"Favorável",dot:"#7A8C5E",color:"#4a5a38"},neutro:{label:"Neutro",dot:"#C9B99A",color:"#5C3D1E"},negativo:{label:"Contrário",dot:"#c0392b",color:"#8b1a10"}};function m3({sentiment:e}){const t=Ure[e];return p.jsxs("span",{"data-loc":"client/src/components/ui/StatusBadge.tsx:46",className:"inline-flex items-center gap-1.5 text-[11px] font-bold",style:{color:t.color,fontFamily:"Nunito, sans-serif"},children:[p.jsx("span",{"data-loc":"client/src/components/ui/StatusBadge.tsx:50",className:"w-2 h-2 rounded-full flex-shrink-0",style:{backgroundColor:t.dot}}),t.label]})}function Mx({value:e,color:t="#2D4A2D"}){return p.jsx("div",{"data-loc":"client/src/components/ui/StatusBadge.tsx:70",className:"w-full h-1.5 rounded-full overflow-hidden",style:{backgroundColor:"#C9B99A40"},children:p.jsx("div",{"data-loc":"client/src/components/ui/StatusBadge.tsx:71",className:"h-full rounded-full transition-all duration-500",style:{width:`${e}%`,backgroundColor:t}})})}function Hre(e){const t=L.useRef(e);t.current=e;const r=L.useRef(null);return r.current||(r.current=function(...a){return t.current.apply(this,a)}),r.current}const Gre="AIzaSyDOGrk1bgyGIgkGkdh48MHiiPWdFg9OdTE",Kre="https://maps.googleapis.com";let If=null;function Wre(){return typeof window<"u"&&window.google?.maps?Promise.resolve():If||(If=new Promise((e,t)=>{const r=document.createElement("script");r.src=`${Kre}/maps/api/js?key=${Gre}&v=weekly&libraries=marker,places,geocoding,geometry&loading=async`,r.async=!0,r.defer=!0,r.onload=()=>e(),r.onerror=()=>{If=null,console.error("Failed to load Google Maps script"),t(new Error("Failed to load Google Maps script"))},document.head.appendChild(r)}),If)}function RF({className:e,initialCenter:t={lat:37.7749,lng:-122.4194},initialZoom:r=12,onMapReady:a}){const n=L.useRef(null),i=L.useRef(null),o=Hre(async()=>{try{await Wre()}catch{return}if(!n.current||!window.google?.maps){console.error("Map container not found or Google Maps not ready");return}
519i.current=new window.google.maps.Map(n.current,{zoom:r,center:t,mapTypeControl:!0,fullscreenControl:!0,zoomControl:!0,streetViewControl:!0,mapId:"DEMO_MAP_ID"}),a&&a(i.current)});return L.useEffect(()=>{o()},[o]),p.jsx("div",{"data-loc":"client/src/components/Map.tsx:171",ref:n,className:ii("w-full h-[500px]",e)})}const Xre=[{elementType:"geometry",stylers:[{color:"#f5f0e8"}]},{elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#c9dde8"}]},{featureType:"road",stylers:[{visibility:"off"}]},{featureType:"poi",stylers:[{visibility:"off"}]},{featureType:"transit",stylers:[{visibility:"off"}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#C9B99A"}]},{featureType:"administrative.country",elementType:"geometry.stroke",stylers:[{color:"#7A8C5E"},{weight:1.5}]},{featureType:"administrative.province",elementType:"geometry.stroke",stylers:[{color:"#C9B99A"},{weight:.8}]}];function Yre({onNavigate:e,municipios:t}){const r=L.useRef(null),a=L.useCallback(n=>{r.current=n,n.setOptions({styles:Xre,mapTypeControl:!1,streetViewControl:!1,fullscreenControl:!1,zoomControl:!1,gestureHandling:"none",draggable:!1,scrollwheel:!1,disableDoubleClickZoom:!0}),t.filter(i=>i.lat!==void 0&&i.lng!==void 0).forEach((i,o)=>{const s=document.createElement("div");s.style.cssText=` 520 width: 14px; height: 14px; 521 background: ${i.cor}; 522 border: 2px solid white; 523 border-radius: 50%; 524 box-shadow: 0 1px 4px rgba(0,0,0,0.3); 525 transform: scale(0); 526 transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1) ${o*120+400}ms; 527 cursor: pointer; 528 `,setTimeout(()=>{s.style.transform="scale(1)"},50),new google.maps.marker.AdvancedMarkerElement({map:n,position:{lat:i.lat,lng:i.lng},title:`${i.nome}/${i.estado}`,content:s}).addListener("click",()=>e?.())})},[e,t]);return p.jsx(RF,{"data-loc":"client/src/pages/Dashboard.tsx:70",initialCenter:{lat:-14.235,lng:-51.925},initialZoom:3,onMapReady:a,className:"w-full h-full"})}const Zre=[{num:"â Etapa 1",name:"Dados do MunicÃpio",desc:"IBGE, Eqnodata, redes sociais",done:!0},{num:"â Etapa 2",name:"Geração IA",desc:"SWOT, Stakeholders, Plano de Ação",active:!0},{num:"Etapa 3",name:"Revisão Analista",desc:"Validação e ajustes manuais"},{num:"Etapa 4",name:"Aprovação & Entrega",desc:"Exportar PDF / compartilhar cliente"}];function g3(){const{municipios:e,tarefas:t,tarefasAtrasadas:r,totais:a}=ny(),n=[{label:"MunicÃpios Ativos",value:String(a.municipios),sub:a.estados===1?"1 estado":`${a.estados} estados`,badge:`${a.municipiosNoBanco} com projeto no sistema`,badgeBg:"#7A8C5E20",badgeColor:"#4a5a38",badgeBorder:"#7A8C5E40",valueColor:"#2D4A2D"},{label:"Projetos PPP",value:String(a.projetos),sub:a.porTipo.map(([s,c])=>`${c} ${s}`).join(" · ")||"Nenhum projeto ainda",badge:"Em andamento",badgeBg:"#5B8FA820",badgeColor:"#2d5a70",badgeBorder:"#5B8FA840",valueColor:"#2D4A2D"},{label:"Fases Atrasadas",value:String(r.length),sub:r.length?"Requer atenção imediata":"Nenhuma fase atrasada",badge:r.length?"â Urgente":"â Em dia",badgeBg:r.length?"#c0392b15":"#7A8C5E20",badgeColor:r.length?"#8b1a10":"#4a5a38",badgeBorder:r.length?"#c0392b30":"#7A8C5E40",valueColor:r.length?"#c0392b":"#2D4A2D"},{label:"Planos Gerados por IA",value:String(a.planosGerados),sub:`${a.planosEmRevisao} aguardando revisão`,badge:a.planosEmRevisao?"â³ Revisão pendente":"â Sem pendência",badgeBg:"#C9A84C20",badgeColor:"#7a6020",badgeBorder:"#C9A84C40",valueColor:"#2D4A2D"}],i=e.slice(0,4),o=[...r,...t.filter(s=>!s.atrasada)].slice(0,5);return p.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:139",className:"space-y-6",children:[p.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:142",className:"grid grid-cols-4 gap-4",children:n.map((s,c)=>p.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:144",className:`rounded-xl p-5 animate-fade-in-up stagger-${c+1}`,style:{backgroundColor:"#ffffff",border:"1px solid #C9B99A"},children:[p.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:149",className:"text-[10px] font-bold uppercase tracking-[1.5px] mb-2",style:{color:"#7A8C5E",fontFamily:"Nunito, sans-serif"},children:s.label}),p.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:155",className:"text-3xl font-black leading-none mb-1",style:{color:s.valueColor,fontFamily:"Nunito, sans-serif"},children:s.value}),p.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:161",className:"text-[11px] mb-2",style:{color:"#7A8C5E"},children:s.sub}),p.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:162",className:"inline-flex items-center text-[10px] font-bold px-2 py-0.5 rounded-full",style:{backgroundColor:s.badgeBg,color:s.badgeColor,border:`1px solid ${s.badgeBorder}`},children:s.badge})]},s.label))}),p.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:173",className:"grid grid-cols-2 gap-5",children:[p.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:176",className:"rounded-xl overflow-hidden animate-fade-in-up stagger-1",style:{backgroundColor:"#ffffff",border:"1px solid #C9B99A"},children:[p.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:180",className:"px-5 py-4 flex items-center justify-between",style:{borderBottom:"1px solid #EDE9DF"},children:[p.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:184",className:"flex items-center gap-2",children:[p.jsx(Gz,{"data-loc":"client/src/pages/Dashboard.tsx:185",size:14,style:{color:"#7A8C5E"}}),p.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:186",className:"text-[13px] font-black",style:{color:"#1E1E1E",fontFamily:"Nunito, sans-serif"},children:"Projetos Recentes"})]}),p.jsxs("button",{"data-loc":"client/src/pages/Dashboard.tsx:190",className:"flex items-center gap-1 text-[11px] font-bold",style:{color:"#2D4A2D"},children:["Ver todos ",p.jsx(M1,{"data-loc":"client/src/pages/Dashboard.tsx:194",size:11})]})]}),p.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:197",className:"divide-y",style:{borderColor:"#EDE9DF"},children:i.map(s=>p.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:199",className:"px-5 py-3.5 flex items-center gap-3 cursor-pointer transition-colors",style:{"--hover-bg":"#EDE9DF"},onMouseEnter:c=>c.currentTarget.style.backgroundColor="#EDE9DF",onMouseLeave:c=>c.currentTarget.style.backgroundColor="transparent",children:[p.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:206",className:"w-9 h-9 rounded-lg flex items-center justify-center text-[13px] font-black flex-shrink-0",style:{background:s.
528cor+"18",color:s.cor},children:s.sigla}),p.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:212",className:"flex-1 min-w-0",children:[p.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:213",className:"text-[13px] font-bold",style:{color:"#1E1E1E",fontFamily:"Nunito, sans-serif"},children:[s.nome," / ",s.estado]}),p.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:216",className:"text-[11px] mt-0.5",style:{color:"#7A8C5E"},children:[s.projeto," · Fase ",s.faseAtual]}),p.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:219",className:"mt-1.5",children:p.jsx(Mx,{"data-loc":"client/src/pages/Dashboard.tsx:220",value:s.progresso,color:s.cor})})]}),p.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:223",className:"text-[11px] font-black",style:{color:s.cor},children:[s.progresso,"%"]})]},s.id))})]}),p.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:230",className:"rounded-xl overflow-hidden animate-fade-in-up stagger-2",style:{backgroundColor:"#ffffff",border:"1px solid #C9B99A"},children:[p.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:234",className:"px-5 py-4 flex items-center justify-between",style:{borderBottom:"1px solid #EDE9DF"},children:[p.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:238",className:"flex items-center gap-2",children:[p.jsx(ho,{"data-loc":"client/src/pages/Dashboard.tsx:239",size:14,style:{color:"#7A8C5E"}}),p.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:240",className:"text-[13px] font-black",style:{color:"#1E1E1E",fontFamily:"Nunito, sans-serif"},children:"Tarefas Urgentes"})]}),p.jsxs("button",{"data-loc":"client/src/pages/Dashboard.tsx:244",className:"flex items-center gap-1 text-[11px] font-bold",style:{color:"#2D4A2D"},children:["Ver kanban ",p.jsx(M1,{"data-loc":"client/src/pages/Dashboard.tsx:245",size:11})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:248",className:"divide-y",style:{borderColor:"#EDE9DF"},children:[o.map(s=>p.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:250",className:"px-5 py-3 flex items-center gap-3",style:{backgroundColor:s.atrasada?"#c0392b08":"transparent"},children:[p.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:255",className:"w-5 h-5 rounded-full flex items-center justify-center flex-shrink-0 text-[9px] font-black text-white",style:{backgroundColor:s.atrasada?"#c0392b":"#C9A84C"},children:"!"}),p.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:261",className:"flex-1 min-w-0",children:[p.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:262",className:"text-[12px] font-bold truncate",style:{color:"#1E1E1E",fontFamily:"Nunito, sans-serif"},children:s.titulo}),p.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:265",className:"text-[10px] mt-0.5",style:{color:"#7A8C5E"},children:[s.municipio,"/",s.estado,s.responsavel?` · ${s.responsavel}`:""]})]}),p.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:269",className:"text-[10px] font-black flex-shrink-0",style:{color:s.atrasada?"#c0392b":"#C9A84C"},children:s.atrasada?"Atrasada":`Fase ${s.fase}`})]},`${s.projetoId}-${s.fase}`)),p.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:277",className:"px-5 py-3 flex items-center gap-3",children:[p.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:278",className:"w-5 h-5 rounded-full flex items-center justify-center text-[9px] font-bold flex-shrink-0",style:{backgroundColor:"#C9B99A",color:"#5C3D1E"},children:"4"}),p.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:284",className:"flex-1 min-w-0",children:[p.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:285",className:"text-[12px] font-bold",style:{color:"#1E1E1E",fontFamily:"Nunito, sans-serif"},children:"Configurar hotsite escuta social"}),p.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:288",className:"text-[10px] mt-0.5",style:{color:"#7A8C5E"},children:"Sorocaba/SP"})]}),p.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:290",className:"text-[10px] font-semibold",style:{color:"#C9B99A"},children:"12 abr"})]})]})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:297",className:"rounded-xl overflow-hidden animate-fade-in-up stagger-3",style:{backgroundColor:"#ffffff",border:"1px solid #C9B99A"},children:[p.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:301",className:"px-5 py-4 flex items-center justify-between",style:{borderBottom:"1px solid #EDE9DF"},children:[p.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:305",className:"flex items-center gap-2",children:[p.jsx(Qz,{"data-loc":"client/src/pages/Dashboard.tsx:306",size:14,style:{color:"#7A8C5E"}}),p.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:307",className:"text-[13px] font-black",style:{color:"#1E1E1E",fontFamily:"Nunito, sans-serif"},children:"Cobertura Geográfica"}),p.jsxs("span",{"data-loc":"client/src/pages/Dashboard.tsx:310",className:"text-[9px] font-bold px-2 py-0.5 rounded-full",style:{backgroundColor:"#2D4A2D18",color:"#2D4A2D"},children:[e.length," municÃpios · ",new Set(e.map(s=>s.estado)).size," estados"]})]}),p.jsxs("button",{"data-loc":"client/src/pages/Dashboard.tsx:317",className:"flex items-center gap-1 text-[11px] font-bold",style:{color:"#2D4A2D"},children:["Ver mapa completo ",p.jsx(M1,{"data-loc":"client/src/pages/Dashboard.tsx:321",size:11})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:324",style:{height:"220px",position:"relative"},children:[p.jsx(Yre,{"data-loc":"client/src/pages/Dashboard.tsx:325",municipios:e}),p.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:327",className:"absolute bottom-3 left-3 rounded-lg px-3 py-2 flex items-center gap-3",style:{backgroundColor:"rgba(255,255,255,0.92)",backdropFilter:"blur(8px)",border:"1px solid #C9B99A40"},children:e.map(s=>p.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:332",className:"flex items-center gap-1.5",children:[p.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:333",className:"w-2.5 h-2.5 rounded-full",style:{backgroundColor:s.cor}}),p.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:334",className:"text-[10px] font-bold",style:{color:"#1E1E1E"},children:s.sigla})]},s.id))})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:342",className:"ai-glow p-6 animate-fade-in-up stagger-3",children:[p.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:343",className:"flex items-center gap-3 mb-1.5 relative z-10",children:[p.jsx(pn,{"data-loc":"client/src/pages/Dashboard.tsx:344",size:16,style:{color:"#7A8C5E"}}),p.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:345",className:"font-black text-[15px]",style:{color:"#EDE9DF",fontFamily:"Nunito, sans-serif"},children:"Motor de IA â Plano de Comunicação"}),p.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:351",className:"ml-1 inline-flex items-center gap-1 text-[9px] font-black px-2 py-0.5 rounded-full uppercase tracking-wider",style:{background:"linear-gradient(90deg, #7A8C5E, #5B8FA8)",color:"#EDE9DF"},children:"⦠IA Ativa"})]}),p.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:358",className:"text-[12px] mb-5 relative z-10",style:{color:"rgba(237,233,223,0.50)"},children:"Gere automaticamente o Plano de Comunicação completo com base nos dados do municÃpio. Revisão e aprovação pelos analistas PRINT."}),p.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:361",className:"grid grid-cols-4 gap-3 relative z-10",children:Zre.map(s=>p.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:363",className:"rounded-lg p-3.5",style:{backgroundColor:s.done?"rgba(122,140,94,0.20)":s.active?"rgba(91,143,168,0.20)":"rgba(255,255,255,0.06)",border:s.done?"1px solid rgba(122,140,94,0.40)":s.active?"1px solid rgba(91,143,168,0.40)":"1px solid rgba(255,255,255,0.10)"},children:[p.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:379",className:"text-[9px] font-black uppercase tracking-wider mb-1",style:{color:s.done?"#7A8C5E":s.active?"#5B8FA8":"rgba(237,233,223,0.30)",fontFamily:"Nunito, sans-serif"},children:s.num}),p.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:388",className:"text-[12px] font-black",style:{color:"#EDE9DF",fontFamily:"Nunito, sans-serif"},children:s.name}),p.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:394",className:"text-[10px] mt-0.5",style:{color:"rgba(237,233,223,0.40)"},children:s.desc})]},s.num))})]})]})}
528const Dg={alto:{label:"Alto",bg:"#7A8C5E20",color:"#4a5a38",border:"#7A8C5E40"},medio:{label:"Médio",bg:"#C9A84C20",color:"#7a6020",border:"#C9A84C40"},baixo:{label:"Baixo",bg:"#c0392b15",color:"#8b1a10",border:"#c0392b30"}},qe={forest:"#2D4A2D",sage:"#7A8C5E",offwhite:"#EDE9DF",sand:"#C9B99A",gold:"#C9A84C",slate:"#5B8FA8",graphite:"#1E1E1E"};function Jre(){const[e,t]=L.useState(null),[r,a]=L.useState("geral"),{municipios:n,perfil:i}=ny(),o=n.find(c=>c.id===e),s=o?.curado;if(e&&o&&!s){const c=i(o);return p.jsxs("div",{"data-loc":"client/src/pages/Municipios.tsx:45",className:"space-y-5 animate-fade-in-up",children:[p.jsxs("div",{"data-loc":"client/src/pages/Municipios.tsx:46",className:"flex items-center gap-4",children:[p.jsx("button",{"data-loc":"client/src/pages/Municipios.tsx:47",onClick:()=>t(null),className:"text-[12px] font-bold px-3 py-1.5 rounded-lg",style:{backgroundColor:"#ffffff",border:`1px solid ${qe.sand}`,color:qe.forest},children:"â Voltar"}),p.jsxs("div",{"data-loc":"client/src/pages/Municipios.tsx:54",children:[p.jsxs("div",{"data-loc":"client/src/pages/Municipios.tsx:55",className:"text-xl font-black",style:{color:qe.graphite,fontFamily:"Nunito, sans-serif"},children:[o.nome," / ",o.estado]}),p.jsxs("div",{"data-loc":"client/src/pages/Municipios.tsx:58",className:"text-[12px]",style:{color:qe.sage},children:[o.projeto," · Fase ",o.faseAtual," · ",o.progresso,"%"]})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/Municipios.tsx:63",className:"rounded-xl p-5",style:{backgroundColor:"#ffffff",border:`1px solid ${qe.sand}`},children:[p.jsx("div",{"data-loc":"client/src/pages/Municipios.tsx:64",className:"text-[11px] font-black uppercase tracking-wider mb-3",style:{color:qe.sage},children:"Dados do diagnóstico"}),p.jsx("div",{"data-loc":"client/src/pages/Municipios.tsx:67",className:"grid grid-cols-2 gap-3 text-[12px]",children:[["População",c.populacao],["IDH",c.idh],["PIB per capita",c.pib],["Prefeito",c.prefeito],["Partido",c.partido],["Câmara",c.camara],["Desafios",c.desafios]].map(([u,h])=>p.jsxs("div",{"data-loc":"client/src/pages/Municipios.tsx:73",children:[p.jsx("div",{"data-loc":"client/src/pages/Municipios.tsx:74",className:"text-[10px] uppercase tracking-wider",style:{color:qe.sage},children:u}),p.jsx("div",{"data-loc":"client/src/pages/Municipios.tsx:75",style:{color:h?qe.graphite:"#aaa"},children:h??"â"})]},u))}),p.jsx("div",{"data-loc":"client/src/pages/Municipios.tsx:79",className:"text-[11px] mt-4 pt-3",style:{color:qe.sage,borderTop:`1px solid ${qe.sand}`},children:"Ficha completa (redes sociais, engajamento, histórico) ainda não foi preenchida para este municÃpio â os campos acima vêm do diagnóstico gerado no projeto."})]})]})}return e&&s?p.jsxs("div",{"data-loc":"client/src/pages/Municipios.tsx:90",className:"space-y-5 animate-fade-in-up",children:[p.jsxs("div",{"data-loc":"client/src/pages/Municipios.tsx:92",className:"flex items-center gap-4",children:[p.jsxs("button",{"data-loc":"client/src/pages/Municipios.tsx:93",onClick:()=>t(null),className:"flex items-center gap-1.5 text-[12px] font-bold transition-colors",style:{color:qe.sage,fontFamily:"Nunito, sans-serif"},onMouseEnter:c=>c.currentTarget.style.color=qe.forest,onMouseLeave:c=>c.currentTarget.style.color=qe.sage,children:[p.jsx(qee,{"data-loc":"client/src/pages/Municipios.tsx:100",size:13})," Voltar"]}),p.jsxs("div",{"data-loc":"client/src/pages/Municipios.tsx:102",className:"flex items-center gap-3 flex-1",children:[p.jsx("div",{"data-loc":"client/src/pages/Municipios.tsx:103",className:"w-12 h-12 rounded-xl flex items-center justify-center text-lg font-black flex-shrink-0",style:{background:s.cor+"18",color:s.cor},children:s.sigla}),p.jsxs("div",{"data-loc":"client/src/pages/Municipios.tsx:109",children:[p.jsxs("div",{"data-loc":"client/src/pages/Municipios.tsx:110",className:"text-xl font-black",style:{color:qe.graphite,fontFamily:"Nunito, sans-serif"},children:[s.nome,", ",s.estado]}),p.jsxs("div",{"data-loc":"client/src/pages/Municipios.tsx:113",className:"text-[12px]",style:{color:qe.sage},children:[s.populacao," hab. · IDH ",s.idh," · PPP: ",s.projeto]})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/Municipios.tsx:118",className:"flex gap-2",children:[p.jsx("button",{"data-loc":"client/src/pages/Municipios.tsx:119",onClick:()=>je.info("Edição em breve"),className:"flex items-center gap-1.5 text-[12px] font-bold px-3 py-2 rounded-lg transition-colors",style:{border:`1px solid ${qe.sand}`,color:qe.graphite,fontFamily:"Nunito, sans-serif"},onMouseEnter:c=>c.currentTarget.style.backgroundColor=qe.offwhite,onMouseLeave:c=>c.currentTarget.style.backgroundColor="transparent",children:"â Editar"}),p.jsx("button",{"data-loc":"client/src/pages/Municipios.tsx:128",onClick:()=>je.success("Gerando plano com IA..."),className:"flex items-center gap-1.5 text-[12px] font-bold px-3 py-2 rounded-lg transition-colors print-btn-primary",style:{fontFamily:"Nunito, sans-serif"},children:"⦠Gerar Plano com IA"})]})]}),p.jsx("div",{"data-loc":"client/src/pages/Municipios.tsx:139",className:"flex gap-1 p-1 rounded-lg w-fit",style:{backgroundColor:"#C9B99A30"},children:["geral","politico","digital","swot"].map(c=>p.jsx("button",{"data-loc":"client/src/pages/Municipios.tsx:141",onClick:()=>a(c),className:"px-4 py-1.5 rounded-md text-[12px] font-bold transition-all",style:{backgroundColor:r===c?"#ffffff"
528:"transparent",color:r===c?qe.forest:qe.sage,boxShadow:r===c?"0 1px 3px rgba(0,0,0,0.08)":"none",fontFamily:"Nunito, sans-serif"},children:{geral:"Visão Geral",politico:"Mapeamento PolÃtico",digital:"Diagnóstico Digital",swot:"Matriz SWOT"}[c]},c))}),r==="geral"&&p.jsxs("div",{"data-loc":"client/src/pages/Municipios.tsx:158",className:"grid grid-cols-2 gap-5",children:[p.jsxs("div",{"data-loc":"client/src/pages/Municipios.tsx:159",className:"rounded-xl p-5",style:{backgroundColor:"#ffffff",border:`1px solid ${qe.sand}`},children:[p.jsxs("div",{"data-loc":"client/src/pages/Municipios.tsx:160",className:"text-[13px] font-black mb-4 flex items-center gap-2",style:{color:qe.graphite,fontFamily:"Nunito, sans-serif"},children:[p.jsx(Zl,{"data-loc":"client/src/pages/Municipios.tsx:161",size:14,style:{color:qe.sage}})," Contexto do MunicÃpio"]}),p.jsx("table",{"data-loc":"client/src/pages/Municipios.tsx:163",className:"w-full text-[12px]",children:p.jsx("tbody",{"data-loc":"client/src/pages/Municipios.tsx:164",children:[["População",s.populacao+" hab. (IBGE 2022)"],["IDH",s.idh],["PIB per capita",s.pib],["Prefeito",s.prefeito],["Partido",s.partido],["Câmara",s.camara],["Principais desafios",s.desafios]].map(([c,u])=>p.jsxs("tr",{"data-loc":"client/src/pages/Municipios.tsx:174",style:{borderBottom:`1px solid ${qe.offwhite}`},children:[p.jsx("td",{"data-loc":"client/src/pages/Municipios.tsx:175",className:"py-2.5 w-40",style:{color:qe.sage},children:c}),p.jsx("td",{"data-loc":"client/src/pages/Municipios.tsx:176",className:"py-2.5 font-semibold",style:{color:qe.graphite},children:u})]},c))})})]}),p.jsxs("div",{"data-loc":"client/src/pages/Municipios.tsx:183",className:"rounded-xl p-5",style:{backgroundColor:"#ffffff",border:`1px solid ${qe.sand}`},children:[p.jsxs("div",{"data-loc":"client/src/pages/Municipios.tsx:184",className:"text-[13px] font-black mb-4 flex items-center gap-2",style:{color:qe.graphite,fontFamily:"Nunito, sans-serif"},children:[p.jsx(_u,{"data-loc":"client/src/pages/Municipios.tsx:185",size:14,style:{color:qe.sage}})," Progresso do Projeto"]}),p.jsxs("div",{"data-loc":"client/src/pages/Municipios.tsx:187",className:"mb-4",children:[p.jsxs("div",{"data-loc":"client/src/pages/Municipios.tsx:188",className:"flex justify-between text-[11px] mb-1.5",children:[p.jsxs("span",{"data-loc":"client/src/pages/Municipios.tsx:189",style:{color:qe.sage},children:["Fase ",s.fase," de 12"]}),p.jsxs("span",{"data-loc":"client/src/pages/Municipios.tsx:190",className:"font-black",style:{color:s.cor},children:[s.progresso,"%"]})]}),p.jsx(Mx,{"data-loc":"client/src/pages/Municipios.tsx:192",value:s.progresso,color:s.cor})]}),p.jsx("div",{"data-loc":"client/src/pages/Municipios.tsx:194",className:"space-y-2 max-h-64 overflow-y-auto pr-1",children:Bee.map(c=>p.jsxs("div",{"data-loc":"client/src/pages/Municipios.tsx:196",className:"flex items-center gap-2.5 p-2.5 rounded-lg text-[11px]",style:{backgroundColor:c.status==="concluido"?"#7A8C5E12":c.status==="em_andamento"?"#2D4A2D12":"#EDE9DF",border:c.status==="em_andamento"?`1px solid ${qe.sage}40`:"1px solid transparent"},children:[p.jsx("div",{"data-loc":"client/src/pages/Municipios.tsx:208",className:"w-5 h-5 rounded-full flex items-center justify-center text-[9px] font-black flex-shrink-0 text-white",style:{backgroundColor:c.status==="concluido"?qe.sage:c.status==="em_andamento"?qe.forest:qe.sand,color:c.status==="em_andamento"||c.status==="concluido"?"#fff":qe.graphite},children:c.status==="concluido"?"â":c.num}),p.jsx("span",{"data-loc":"client/src/pages/Municipios.tsx:221",className:"flex-1",style:{color:c.status==="em_andamento"?qe.forest:(c.status==="concluido",qe.sage),fontWeight:c.status==="em_andamento"?700:400},children:c.nome}),p.jsx("span",{"data-loc":"client/src/pages/Municipios.tsx:233",className:"text-[10px] font-bold flex-shrink-0",style:{color:c.status==="concluido"?qe.sage:c.status==="em_andamento"?qe.forest:qe.sand},children:c.data})]},c.num))})]})]}),r==="digital"&&p.jsxs("div",{"data-loc":"client/src/pages/Municipios.tsx:252",className:"rounded-xl p-5",style:{backgroundColor:"#ffffff",border:`1px solid ${qe.sand}`},children:[p.jsxs("div",{"data-loc":"client/src/pages/Municipios.tsx:253",className:"text-[13px] font-black mb-4 flex items-center gap-2",style:{color:qe.graphite,fontFamily:"Nunito, sans-serif"},children:[p.jsx(Es,{"data-loc":"client/src/pages/Municipios.tsx:254",size:14,style:{color:qe.sage}})," Diagnóstico de Comunicação Digital"]}),p.jsx("table",{"data-loc":"client/src/pages/Municipios.tsx:256",className:"w-full text-[12px]",children:p.jsxs("tbody",{"data-loc":"client/src/pages/Municipios.tsx:257",children:[[["Instagram",s.instagram],["Facebook",s.facebook],["YouTube",s.youtube],["Site oficial",s.site]].map(([c,u])=>p.jsxs("tr",{"data-loc":"client/src/pages/Municipios.tsx:264",style:{borderBottom:`1px solid ${qe.offwhite}`},children:[p.jsx("td",{"data-loc":"client/src/pages/Municipios.tsx:265",className:"py-2.5 w-40",style:{color:qe.sage},children:c}),p.jsx("td",{"data-loc":"client/src/pages/Municipios.tsx:266",className:"py-2.5 font-semibold",style:{color:qe.graphite},children:u})]},c)),p.jsxs("tr",{"data-loc":"client/src/pages/Municipios.tsx:269",style:{borderBottom:`1px solid ${qe.offwhite}`},children:[p.jsx("td",{"data-loc":"client/src/pages/Municipios.tsx:270",className:"py-2.5",style:{color:qe.sage},children:"Engajamento"}),p.jsx("td",{"data-loc":"client/src/pages/Municipios.tsx:271",className:"py-2.5",children:p.jsx("span",{"data-loc":"client/src/pages/Municipios.tsx:272",className:"inline-flex items-center px-2 py-0.5 rounded text-[10px] font-bold",style:{backgroundColor:Dg[s.engajamento].bg,color:Dg[s.engajamento].color,border:`1px solid ${Dg[s.engajamento].border}`,fontFamily:"Nunito, sans-serif"},children:Dg[s.engajamento].label})})]}),p.jsxs("tr",{"data-loc":"client/src/pages/Municipios.tsx:285",style:{borderBottom:`1px solid ${qe.offwhite}`},children:[p.jsx("td",{"data-loc":"client/src/pages/Municipios.tsx:286",className:"py-2.5",style:{color:qe.sage},children:"Regularidade"}),p.jsx("td",{"data-loc":"client/src/pages/Municipios.tsx:287",className:"py-2.5",children:p.jsx("span",{"data-loc":"client/src/pages/Municipios.tsx:288",className:"inline-flex items-center px-2 py-0.5 rounded text-[10px] font-bold",style:{backgroundColor:s.regularid
528ade==="regular"?"#7A8C5E20":"#c0392b15",color:s.regularidade==="regular"?"#4a5a38":"#8b1a10",border:`1px solid ${s.regularidade==="regular"?"#7A8C5E40":"#c0392b30"}`,fontFamily:"Nunito, sans-serif"},children:s.regularidade==="regular"?"Regular":"Irregular"})})]}),p.jsxs("tr",{"data-loc":"client/src/pages/Municipios.tsx:301",children:[p.jsx("td",{"data-loc":"client/src/pages/Municipios.tsx:302",className:"py-2.5",style:{color:qe.sage},children:"Sentimento geral"}),p.jsx("td",{"data-loc":"client/src/pages/Municipios.tsx:303",className:"py-2.5",children:p.jsx(m3,{"data-loc":"client/src/pages/Municipios.tsx:303",sentiment:s.sentimento})})]})]})})]}),r==="swot"&&p.jsxs("div",{"data-loc":"client/src/pages/Municipios.tsx:311",className:"rounded-xl overflow-hidden",style:{backgroundColor:"#ffffff",border:`1px solid ${qe.sand}`},children:[p.jsxs("div",{"data-loc":"client/src/pages/Municipios.tsx:312",className:"px-5 py-4 flex items-center justify-between",style:{borderBottom:`1px solid ${qe.offwhite}`},children:[p.jsxs("span",{"data-loc":"client/src/pages/Municipios.tsx:316",className:"text-[13px] font-black",style:{color:qe.graphite,fontFamily:"Nunito, sans-serif"},children:["Matriz SWOT â ",s.nome," / PPP ",s.projeto]}),p.jsx("span",{"data-loc":"client/src/pages/Municipios.tsx:319",className:"inline-flex items-center gap-1 text-[9px] font-black px-2 py-0.5 rounded-full uppercase tracking-wider",style:{background:`linear-gradient(90deg, ${qe.forest}, ${qe.sage})`,color:"#EDE9DF"},children:"⦠Gerado por IA"})]}),p.jsx("div",{"data-loc":"client/src/pages/Municipios.tsx:326",className:"grid grid-cols-2",children:[{label:"Forças",bg:"#7A8C5E10",lc:qe.sage,items:["Apoio polÃtico do executivo municipal","Parceria com Caixa Econômica Federal","Projeto alinhado ao marco legal de PPPs"]}
528,{label:"Fraquezas",bg:"#c0392b08",lc:"#c0392b",items:["Baixo engajamento digital da prefeitura","Equipe de comunicação reduzida","Histórico de baixa participação popular"]},{label:"Oportunidades",bg:"#5B8FA808",lc:qe.slate,items:["Economia de energia estimada em 60%","Melhoria na segurança pública","Visibilidade regional como municÃpio inovador"]},{label:"Ameaças",bg:"#C9A84C08",lc:qe.gold,items:["Resistência de vereadores de oposição","Desinformação nas redes sociais","Prazo eleitoral pressionando o calendário"]}].map((c,u)=>p.jsxs("div",{"data-loc":"client/src/pages/Municipios.tsx:333",className:"p-5",style:{backgroundColor:c.bg,borderRight:u%2===0?`1px solid ${qe.offwhite}`:"none",borderBottom:u<2?`1px solid ${qe.offwhite}`:"none"},children:[p.jsx("div",{"data-loc":"client/src/pages/Municipios.tsx:342",className:"text-[10px] font-black uppercase tracking-[1.5px] mb-3",style:{color:c.lc,fontFamily:"Nunito, sans-serif"},children:c.label}),p.jsx("ul",{"data-loc":"client/src/pages/Municipios.tsx:348",className:"space-y-1.5",children:c.items.map(h=>p.jsxs("li",{"data-loc":"client/src/pages/Municipios.tsx:350",className:"text-[12px] flex items-start gap-1.5",style:{color:qe.graphite},children:[p.jsx("span",{"data-loc":"client/src/pages/Municipios.tsx:351",className:"mt-1 w-1.5 h-1.5 rounded-full flex-shrink-0",style:{backgroundColor:c.lc}}),h]},h))})]},c.label))})]}),r==="politico"&&p.jsxs("div",{"data-loc":"client/src/pages/Municipios.tsx:363",className:"rounded-xl p-5",style:{backgroundColor:"#ffffff",border:`1px solid ${qe.sand}`},children:[p.jsxs("div",{"data-loc":"client/src/pages/Municipios.tsx:364",className:"text-[13px] font-black mb-4 flex items-center gap-2",style:{color:qe.graphite,fontFamily:"Nunito, sans-serif"},children:[p.jsx(xn,{"data-loc":"client/src/pages/Municipios.tsx:365",size:14,style:{color:qe.sage}})," Mapeamento PolÃtico â ",s.nome]}),p.jsx("div",{"data-loc":"client/src/pages/Municipios.tsx:367",className:"overflow-x-auto",children:p.jsxs("table",{"data-loc":"client/src/pages/Municipios.tsx:368",className:"w-full text-[12px] border-collapse",children:[p.jsx("thead",{"data-loc":"client/src/pages/Municipios.tsx:369",children:p.jsx("tr",{"data-loc":"client/src/pages/Municipios.tsx:370",style:{backgroundColor:qe.offwhite},children:["Stakeholder","Tipo","Influência","Interesse","Sentimento","Estratégia"].map(c=>p.jsx("th",{"data-loc":"client/src/pages/Municipios.tsx:372",className:"text-left px-3 py-2.5 text-[10px] font-black uppercase tracking-wider",style:{color:qe.sage,borderBottom:`1px solid ${qe.sand}`,fontFamily:"Nunito, sans-serif"},children:c},c))})}),p.jsx("tbody",{"data-loc":"client/src/pages/Municipios.tsx:382",children:Lee.map((c,u)=>p.jsxs("tr",{"data-loc":"client/src/pages/Municipios.tsx:384",style:{borderBottom:`1px solid ${qe.offwhite}`},onMouseEnter:h=>h.currentTarget.style.backgroundColor=qe.offwhite,onMouseLeave:h=>h.currentTarget.style.backgroundColor="transparent",children:[p.jsxs("td",{"data-loc":"client/src/pages/Municipios.tsx:390",className:"px-3 py-3",children:[p.jsx("div",{"data-loc":"client/src/pages/Municipios.tsx:391",className:"font-bold",style:{color:qe.graphite},children:c.nome}),p.jsx("div",{"data-loc":"client/src/pages/Municipios.tsx:392",className:"text-[10px] mt-0.5",style:{color:qe.sage},children:c.detalhe})]}),p.jsx("td",{"data-loc":"client/src/pages/Municipios.tsx:394",className:"px-3 py-3",children:p.jsx("span",{"data-loc":"client/src/pages/Municipios.tsx:395",className:"text-[10px] font-bold px-2 py-0.5 rounded",style:{backgroundColor:"#C9B99A30",color:qe.graphite},children:c.tipo})}),p.jsx("td",{"data-loc":"client/src/pages/Municipios.tsx:402",className:"px-3 py-3",children:p.jsx("span",{"data-loc":"client/src/pages/Municipios.tsx:403",className:"text-[10px] font-bold px-2 py-0.5 rounded",style:{backgroundColor:c.influencia==="alta"?"#c0392b15":c.influencia==="media"?"#C9A84C20":"#C9B99A30",color:c.influencia==="alta"?"#8b1a10":c.influencia==="media"?"#7a6020":qe.graphite},children:c.influencia==="alta"?"Alta":c.influencia==="media"?"Média":"Baixa"})}),p.jsx("td",{"data-loc":"client/src/pages/Municipios.tsx:413",className:"px-3 py-3",children:p.jsx("span",{"data-loc":"client/src/pages/Municipios.tsx:414",className:"text-[10px] font-bold px-2 py-0.5 rounded",style:{backgroundColor:c.interesse==="alta"?"#7A8C5E20":c.interesse==="media"?"#5B8FA820":"#C9B99A30",color:c.interesse==="alta"?"#4a5a38":c.interesse==="media"?"#2d5a70":qe.graphite},children:c.interesse==="alta"?"Alto":c.interesse==="media"?"Médio":"Baixo"})}),p.jsx("td",{"data-loc":"client/src/pages/Municipios.tsx:424",className:"px-3 py-3",children:p.jsx(m3,{"data-loc":"client/src/pages/Municipios.tsx:424",sentiment:c.sentimento})}),p.jsx("td",{"data-loc":"client/src/pages/Municipios.tsx:425",className:"px-3 py-3 text-[11px]",style:{color:qe.graphite},children:c.estrategia})]},u))})]})})]})]}):p.jsxs("div",{"data-loc":"client/src/pages/Municipios.tsx:438",className:"space-y-5",children:[p.jsxs("div",{"data-loc":"client/src/pages/Municipios.tsx:439",className:"flex items-center justify-between",children:[p.jsxs("div",{"data-loc":"client/src/pages/Municipios.tsx:440",children:[p.jsx("h2",{"data-loc":"client/src/pages/Municipios.tsx:441",className:"text-[18px] font-black",style:{color:qe.graphite,fontFamily:"Nunito, sans-serif"},children:"Brain dos MunicÃpios"}),p.jsx("p",{"data-loc":"client/src/pages/Municipios.tsx:444",className:"text-[12px] mt-0.5",style:{color:qe.sage},children:"Repositório de inteligência sobre cada municÃpio atendido pela PRINT."})]}),p.jsxs("button",{"data-loc":"client/src/pages/Municipios.tsx:448",onClick:()=>je.success("Novo municÃpio adicionado!"),className:"flex items-center gap-1.5 text-[12px] font-bold px-3 py-2 rounded-lg print-btn-primary",style:{fontFamily:"Nunito, sans-serif"},children:[p.jsx(fa,{"data-loc":"client/src/pages/Municipios.tsx:453",size:13})," Adicionar MunicÃpio"]})]}),p.jsxs("div",{"data-loc":"client/src/pages/Municipios.tsx:457",className:"grid grid-cols-3 gap-4",children:[n.map((c,u)=>p.jsxs("div",{"data-loc":"client/src/pages/Municipios.tsx:459",onClick:()=>t(c.id),className:`rounded-xl p-5 cursor-pointer transition-all animate-fade-in-up stagger-${Math.min(u+1,4)}`,style:{backgroundColor:"#ffffff",border:`1px solid ${qe.sand}`},onMouseEnter:h=>{h.currentTarget.style.borderColor=qe.sage,h.currentTarget.style.boxShadow="0 2px 12px rgba(45,74,45,0.08)"},onMouseLeave:h=>{h.currentTarget.style.borderColor=qe.sand,h.currentTarget.style.boxShadow="none"},children:[p.jsxs("div",{"data-loc":"client/src/pages/Municipios.tsx:473",className:"flex items-center gap-3 mb-3.5",children:[p.jsx("div",{"data-loc":"client/src/pages/Municipios.tsx:474",className:"w-11 h-11 rounded-xl flex items-center justify-center text-[15px] font-black flex-shrink-0",style:{background:c.cor+"18",color:c.cor},children:c.sigla}),p.jsxs("div",{"data-loc":"client/src/pages/Municipios.tsx:480",children:[p.jsx("div",{"data-loc":"client/src/pages/Municipios.tsx:481",className:"font-black text-[14px]",style:{color:qe.graphite,fontFamily:"Nunito, sans-serif"},children:c.nome}),p.jsxs("div",{"data-loc":"client/src/pages/Municipios.tsx:484",className:"text-[11px]",style:{color:qe.sage},children:[c.estado,i(c).populacao?` · ${i(c).populacao} hab.`:""]})]}),p.jsx(tN,{"data-loc":"client/src/pages/Municipios.tsx:488",size:14,style:{color:qe.sand,marginLeft:"auto"}})]}),p.jsxs("div",{"data-loc":"client/src/pages/Municipios.tsx:490",className:"flex gap-1.5 flex-wrap mb-3",children:[p.jsx("span",{"data-loc":"client/src/pages/Municipios.tsx:491",className:"text-[10px] font-bold px-2 py-0.5 rounded",style:{backgroundColor:"#2D4A2D18",color:qe.forest,border:"1px solid #2D4A2D30"},children:c.projeto}),p.jsxs("span",{"data-loc":"client/src/pages/Municipios.tsx:497",className:"text-[10px] font-bold px-2 py-0.5 rounded",style:{backgroundColor:"#C9B99A30",color:qe.graphite,border:`1px solid ${qe.sand}`},children:["Fase ",c.faseAtual]}
528),!c.noBanco&&p.jsx("span",{"data-loc":"client/src/pages/Municipios.tsx:504",className:"text-[10px] font-bold px-2 py-0.5 rounded",style:{backgroundColor:"#C9A84C20",color:"#7a6020",border:"1px solid #C9A84C40"},title:"MunicÃpio da base curada, ainda sem projeto criado no sistema",children:"sem projeto no app"})]}),p.jsxs("div",{"data-loc":"client/src/pages/Municipios.tsx:513",className:"flex justify-between text-[10px] mb-1.5",children:[p.jsx("span",{"data-loc":"client/src/pages/Municipios.tsx:514",style:{color:qe.sage},children:c.analistas.length?`${c.analistas.length} analistas`:c.projeto}),p.jsxs("span",{"data-loc":"client/src/pages/Municipios.tsx:517",className:"font-black",style:{color:c.cor},children:[c.progresso,"%"]})]}),p.jsx(Mx,{"data-loc":"client/src/pages/Municipios.tsx:519",value:c.progresso,color:c.cor})]},c.id)),p.jsxs("div",{"data-loc":"client/src/pages/Municipios.tsx:524",onClick:()=>je.info("Adicionar novo municÃpio em breve"),className:"rounded-xl p-5 cursor-pointer transition-all flex flex-col items-center justify-center gap-2 min-h-[160px]",style:{backgroundColor:"#ffffff",border:`2px dashed ${qe.sand}`},onMouseEnter:c=>{c.currentTarget.style.borderColor=qe.sage,c.currentTarget.style.backgroundColor="#7A8C5E08"},onMouseLeave:c=>{c.currentTarget.style.borderColor=qe.sand,c.currentTarget.style.backgroundColor="#ffffff"},children:[p.jsx("div",{"data-loc":"client/src/pages/Municipios.tsx:537",className:"w-10 h-10 rounded-full flex items-center justify-center",style:{backgroundColor:qe.offwhite},children:p.jsx(fa,{"data-loc":"client/src/pages/Municipios.tsx:541",size:18,style:{color:qe.sage}})}),p.jsx("div",{"data-loc":"client/src/pages/Municipios.tsx:543",className:"text-[13px] font-bold",style:{color:qe.sage,fontFamily:"Nunito, sans-serif"},children:"Adicionar MunicÃpio"}),p.jsx("div",{"data-loc":"client/src/pages/Municipios.tsx:546",className:"text-[11px]",style:{color:qe.sand},children:"Novo cliente ou projeto"})]})]})]})}const U1=[{id:"itaperuna",municipio:"Itaperuna",estado:"RJ",tipo:"Iluminação Pública e Serviços Digitais",banco:"Caixa Econômica Federal",prefeito:"Nelsinho Willians (Nel)",partido:"PSD",populacao:"102.000 hab.",prazoConcessao:"25 anos",valorEstimado:"R$ 120 mi (estimado)",fasesTotal:12,faseAtual:9,progresso:72,status:"ativo",dataInicio:"Fev/2025",dataPrevisaoLeilao:"Out/2025",referenciaContratual:"Contrato n.º 06983/2025 â IP+SD 101 Porte 1A â Itaperuna/RJ",proximaAcao:"Enviar release pós-audiência pública para imprensa local",riscos:[{nivel:"alto",descricao:"Vereador Eduardo do Toldo (oposição) pode questionar o projeto na Câmara"},{nivel:"medio",descricao:'Desinformação em grupos de WhatsApp sobre "privatização"'},{nivel:"baixo",descricao:"Cobertura da Enel pode gerar questionamentos sobre responsabilidades"}],fases:[{numero:1,nome:"Kickoff e Alinhamento Interno",status:"concluida",prazo:"Fev/2025",responsavel:"PRINT + Caixa",descricao:"Reunião de kickoff com equipe da Prefeitura, Caixa e consultoria. Alinhamento de responsabilidades e cronograma.",entregaveis:["Ata de kickoff assinada","Cronograma aprovado","Matriz de responsabilidades"]},{numero:2,nome:"Diagnóstico do MunicÃpio",status:"concluida",prazo:"Mar/2025",responsavel:"PRINT",descricao:"Levantamento de dados socioeconômicos, polÃticos, digitais e de comunicação de Itaperuna. PIB per capita R$ 22.800, IDH 0,714.",entregaveis:["Perfil do municÃpio (IBGE)","Diagnóstico digital (redes sociais)","Análise SWOT"]},{numero:3,nome:"Mapeamento de Stakeholders",status:"concluida",prazo:"Mar/2025",responsavel:"PRINT",descricao:"Identificação e classificação de 53+ atores: 11 vereadores, TCE-RJ, Enel, imprensa, sociedade civil.",entregaveis:["Matriz de Stakeholders â Anexo I (53 atores)","Estratégias individuais por stakeholder"]},{numero:4,nome:"Elaboração do Plano de Comunicação",status:"concluida",prazo:"Abr/2025",responsavel:"PRINT",descricao:"Redação do Plano de Comunicação e Engajamento de Stakeholders com Casa de Mensagem, cronograma e ações.",entregaveis:["Plano de Comunicação v1.0 (Bloco 1.2 Caixa)","Casa de Mensagem aprovada","FAQ â 15 perguntas"]},{numero:5,nome:"Identidade Visual do Projeto",status:"concluida",prazo:"Abr/2025",responsavel:"PRINT",descricao:"Desenvolvimento da identidade visual especÃfica do projeto PPP Itaperuna, com logo, paleta e peças digitais.",entregaveis:["Manual de identidade visual","Kit de peças digitais (10 peças)"]},{numero:6,nome:"Engajamento Legislativo",status:"concluida",prazo:"Mai/2025",responsavel:"PRINT + Prefeitura",descricao:"Reuniões individuais com os 11 vereadores de Itaperuna. Construção de apoio polÃtico. Vereador Eduardo do Toldo monitorado como risco alto.",entregaveis:["Relatório de reuniões (11 vereadores)","Mapa de posicionamento legislativo"]},{numero:7,nome:"Media Training",status:"concluida",prazo:"Mai/2025",responsavel:"PRINT",descricao:"Treinamento do prefeito Nel e secretários para entrevistas e eventos públicos sobre a PPP. Obrigatório pelo TR (item 2.5.2.4.5).",entregaveis:["Relatório de media training","Discurso-chave aprovado"]},{numero:8,nome:"Hotsite e VÃdeo Institucional",status:"concluida",prazo:"Jun/2025",responsavel:"PRINT",descricao:"Hotsite publicado com 15 dias de antecedência mÃnima (TR item 2.5.2.4.4.i). VÃdeo institucional com Libras obrigatório.",entregaveis:["Hotsite no ar","VÃdeo institucional (3 min, com Libras)"]}
528,{numero:9,nome:"Escuta Social",status:"em_andamento",prazo:"Jul/2025",responsavel:"PRINT + Prefeitura + Caixa",descricao:"PerÃodo de escuta social online e presencial. Coleta e sistematização de contribuições. Prazo mÃnimo 30 dias.",entregaveis:["Relatório de contribuições","Boletim especial escuta social"]},{numero:10,nome:"Audiência Pública",status:"pendente",prazo:"Ago/2025",responsavel:"PRINT + Prefeitura + Caixa",descricao:"Audiência pública com transmissão ao vivo (TR item 2.5.2.4.4.e). Interpretação em Libras obrigatória (item 2.5.2.4.4.n).",entregaveis:["Regulamento da audiência","Ata da audiência","Release pós-audiência"]},{numero:11,nome:"Pós-Audiência e Edital",status:"pendente",prazo:"Set/2025",responsavel:"PRINT + Prefeitura",descricao:"Comunicação do resultado da audiência. Gestão de impugnações (resposta em até 24h). Monitoramento quinzenal.",entregaveis:["Nota de resultado da audiência","Monitoramento de impugnações","Kit de imprensa para licitação"]},{numero:12,nome:"Leilão e Assinatura do Contrato",status:"pendente",prazo:"Out/2025",responsavel:"PRINT + Prefeitura + Caixa",descricao:"Cobertura ao vivo do leilão. Nota de resultado distribuÃda em até 2 horas após o pregão. Comunicação da assinatura do contrato.",entregaveis:["Cobertura ao vivo nas redes","Nota de resultado (até 2h)","Release de assinatura do contrato"]}]},{id:"sao-bento-do-sul",municipio:"São Bento do Sul",estado:"SC",tipo:"Iluminação Pública e Cidades Inteligentes",banco:"BRDE",prefeito:"André Pedott",partido:"MDB",populacao:"87.000 hab.",prazoConcessao:"20 anos",valorEstimado:"R$ 95 mi (estimado)",fasesTotal:12,faseAtual:11,progresso:88,status:"licitacao",dataInicio:"Nov/2024",dataPrevisaoLeilao:"Mai/2025",referenciaContratual:"Edital BRDE â PPP IP+CI â São Bento do Sul/SC",proximaAcao:"Preparar kit de imprensa para o dia do leilão (30 dias antes)",riscos:[{nivel:"medio",descricao:"Impugnações ao edital por concorrentes â resposta obrigatória em até 24h"},{nivel:"baixo",descricao:"Cobertura negativa da Gazeta SBS â monitorar e responder prontamente"}],fases:[{numero:1,nome:"Kickoff e Alinhamento",status:"concluida",prazo:"Nov/2024",responsavel:"PRINT + BRDE",descricao:"Kickoff com Prefeitura de São Bento do Sul, BRDE e PRINT. Alinhamento de cronograma e responsabilidades.",entregaveis:["Ata de kickoff assinada","Cronograma aprovado"]},{numero:2,nome:"Diagnóstico do MunicÃpio",status:"concluida",prazo:"Dez/2024",responsavel:"PRINT",descricao:"Diagnóstico de SBS: polo moveleiro nacional, IDH 0,775, forte presença industrial e associações empresariais.",entregaveis:["Perfil SBS (IBGE)","Diagnóstico digital","Análise SWOT"]},{numero:3,nome:"Mapeamento de Stakeholders",status:"concluida",prazo:"Dez/2024",responsavel:"PRINT",descricao:"Matriz completa de stakeholders de SBS: 9 vereadores, ACISBS, CDL, Sindicatos, imprensa local.",entregaveis:["Matriz de Stakeholders SBS (Anexo I)"]},{numero:4,nome:"Plano de Comunicação",status:"concluida",prazo:"Jan/2025",responsavel:"PRINT",descricao:"Plano de Comunicação v1.0 entregue ao BRDE. Estrutura conforme sumário BRDE.",entregaveis:["Plano de Comunicação SBS v1.0","Casa de Mensagem aprovada"]},{numero:5,nome:"Identidade Visual",status:"concluida",prazo:"Jan/2025",responsavel:"PRINT",descricao:"Identidade visual do projeto PPP IP+CI São Bento do Sul com logo, paleta e peças.",entregaveis:["Manual de identidade visual","Kit de peças digitais"]},{numero:6,nome:"Engajamento Legislativo",status:"concluida",prazo:"Fev/2025",responsavel:"PRINT + Prefeitura",descricao:"Reuniões individuais com os 9 vereadores de SBS. Construção de apoio polÃtico unânime.",entregaveis:["Relatório de reuniões (9 vereadores)","Mapa de posicionamento legislativo"]},{numero:7,nome:"Media Training",status:"concluida",prazo:"Fev/2025",responsavel:"PRINT",descricao:"Media training do prefeito André Pedott e secretários para entrevistas sobre a PPP.",entregaveis:["Relatório de media training","Discurso-chave aprovado"]},{numero:8,nome:"Hotsite e VÃdeo",status:"concluida",prazo:"Mar/2025",responsavel:"PRINT",descricao:"Hotsite publicado e vÃdeo institucional com Libras produzido e publicado.",entregaveis:["Hotsite SBS no ar","VÃdeo institucional com Libras"]}
528,{numero:9,nome:"Escuta Social",status:"concluida",prazo:"Mar/2025",responsavel:"PRINT + Prefeitura + BRDE",descricao:"Escuta social realizada com 47 contribuições recebidas. Relatório entregue ao BRDE.",entregaveis:["Relatório de contribuições (47 contribuições)","Boletim especial escuta social"]},{numero:10,nome:"Audiência Pública",status:"concluida",prazo:"Abr/2025",responsavel:"PRINT + Prefeitura + BRDE",descricao:"Audiência pública realizada com 130 participantes. Transmissão ao vivo com Libras. Ata entregue ao BRDE.",entregaveis:["Ata da audiência (130 participantes)","Relatório pós-audiência","Release distribuÃdo para imprensa"]},{numero:11,nome:"Publicação do Edital",status:"em_andamento",prazo:"Mai/2025",responsavel:"PRINT + Prefeitura",descricao:"Edital publicado. Monitoramento de impugnações e comunicação quinzenal do processo licitatório.",entregaveis:["Nota de publicação do edital","Monitoramento quinzenal de impugnações"]},{numero:12,nome:"Leilão",status:"pendente",prazo:"Mai/2025",responsavel:"PRINT + Prefeitura + BRDE",descricao:"Realização do leilão. Cobertura ao vivo nas redes. Nota de resultado em até 2h após o pregão.",entregaveis:["Cobertura ao vivo","Nota de resultado (até 2h)","Release de assinatura do contrato"]}]},{id:"itanhaem",municipio:"Itanhaém",estado:"SP",tipo:"Educação Infantil â 10 a 20 UEIs (EI 101)",banco:"Caixa Econômica Federal",prefeito:"Tiago Cervantes",partido:"Republicanos",populacao:"109.000 hab.",prazoConcessao:"25 anos",valorEstimado:"R$ 35 mi CAPEX / R$ 2.525.062,40 (consultoria)",fasesTotal:12,faseAtual:4,progresso:28,status:"estruturacao",dataInicio:"Dez/2025",dataPrevisaoLeilao:"Set/2027",referenciaContratual:"Contrato EI 101 Porte 1 â Caixa/Itanhaém â Assinado 15/12/2025",proximaAcao:"Iniciar mapeamento de stakeholders (vereadores e comunidade escolar)",riscos:[{nivel:"alto",descricao:'Narrativa de "privatização das escolas" â principal risco de comunicação'},{nivel:"alto",descricao:"Mobilização da APEOESP contra a PPP de educação"},{nivel:"medio",descricao:"Vereador do PL (oposição) pode usar o projeto politicamente"},{nivel:"baixo",descricao:"Confusão sobre escopo â serviços pedagógicos NÃO fazem parte da PPP (esclarecer proativamente)"}],fases:[{numero:1,nome:"Kickoff e Alinhamento",status:"concluida",prazo:"Dez/2025",responsavel:"PRINT + Caixa",descricao:"Kickoff com Prefeitura de Itanhaém e Caixa. Contrato assinado em 15/12/2025. Porte 1 (EI 101), 10â20 UEIs.",entregaveis:["Ata de kickoff assinada","Cronograma aprovado"]},{numero:2,nome:"Diagnóstico do MunicÃpio",status:"concluida",prazo:"Jan/2026",responsavel:"PRINT",descricao:"Diagnóstico de Itanhaém: IDEB 5,3 (1º lugar Baixada Santista anos finais), 53 escolas, 19.096 alunos, 964 professores. PIB per capita R$ 26.400.",entregaveis:["Perfil Itanhaém (IBGE + QEdu)","Diagnóstico educacional","Análise SWOT"]},{numero:3,nome:"Plano de Comunicação",status:"concluida",prazo:"Fev/2026",responsavel:"PRINT",descricao:"Plano de Comunicação v2.0 com TR da Caixa incorporado. Bloco 1.2 (produto obrigatório Etapa 1). 4 fases, 18 meses.",entregaveis:["Plano de Comunicação Itanhaém v2.0","Casa de Mensagem","FAQ â 10 perguntas"]},{numero:4,nome:"Mapeamento de Stakeholders",status:"em_andamento",prazo:"Mar/2026",responsavel:"PRINT",descricao:"Mapeamento dos stakeholders de Itanhaém: 10 vereadores (7 base + 3 oposição), APEOESP, diretores, pais, imprensa (Tribuna de Itanhaém, Bom Dia Itanhaém).",entregaveis:["Matriz de Stakeholders Itanhaém"]},{numero:5,nome:"Identidade Visual",status:"pendente",prazo:"Mar/2026",responsavel:"PRINT",descricao:"Identidade visual do projeto PPP Educação Itanhaém. Diferencial: IDEB mais alto da Baixada Santista como argumento visual.",entregaveis:["Manual de identidade visual","Kit de peças digitais"]},{numero:6,nome:"Engajamento Legislativo",status:"pendente",prazo:"Abr/2026",responsavel:"PRINT + Prefeitura",descricao:"Reuniões com os 10 vereadores. Atenção especial ao vereador do PL (oposição). Maioria de 7/10 é da base do prefeito.",entregaveis:["Relatório de reuniões (10 vereadores)","Mapa de posicionamento legislativo"]},{numero:7,nome:"Engajamento Comunidade Escolar",status:"pendente",prazo:"Mai/2026",responsavel:"PRINT + Prefeitura",descricao:"Reuniões com diretores, professores e APMs das 53 escolas municipais. Foco: esclarecer que serviços pedagógicos NÃO fazem parte da PPP.",entregaveis:["Relatório de engajamento escolar (53 escolas)"]},{numero:8,nome:"Media Training",status:"pendente",prazo:"Mai/2026",responsavel:"PRINT",descricao:"Media training do prefeito Tiago Cervantes e Secretária de Educação. Obrigatório pelo TR (item 2.5.2.4.5) até o fim da Etapa 2.",entregaveis:["Relatório de media training","Discurso-chave aprovado"]}
528,{numero:9,nome:"Hotsite e VÃdeo",status:"pendente",prazo:"Jun/2026",responsavel:"PRINT",descricao:"Hotsite publicado com 15 dias de antecedência mÃnima (TR item 2.5.2.4.4.i). VÃdeo com Libras obrigatório (item 2.5.2.4.4.n).",entregaveis:["Hotsite Itanhaém no ar","VÃdeo institucional com Libras"]},{numero:10,nome:"Escuta Social",status:"pendente",prazo:"Jan/2027",responsavel:"PRINT + Prefeitura + Caixa",descricao:"Escuta social online e presencial. Prazo mÃnimo 30 dias. Relatório de contribuições entregue formalmente à Caixa (Bloco 1.9).",entregaveis:["Relatório de contribuições","Boletim especial escuta social"]},{numero:11,nome:"Audiência Pública",status:"pendente",prazo:"Mar/2027",responsavel:"PRINT + Prefeitura + Caixa",descricao:"Audiência pública com transmissão ao vivo (TR item 2.5.2.4.4.e) e Libras obrigatório. Reuniões comunitárias de pré-audiência por bairro.",entregaveis:["Ata da audiência","Relatório pós-audiência","Release distribuÃdo"]},{numero:12,nome:"Leilão na B3",status:"pendente",prazo:"Set/2027",responsavel:"PRINT + Prefeitura + Caixa",descricao:"Leilão na B3. Cobertura ao vivo nas redes da Prefeitura. Nota de resultado em até 2h após o pregão. Kit de imprensa pronto 30 dias antes.",entregaveis:["Cobertura ao vivo","Nota de resultado (até 2h)","Release de assinatura do contrato"]}]},{id:"rio-negrinho",municipio:"Rio Negrinho",estado:"SC",tipo:"Iluminação Pública e Cidades Inteligentes",banco:"BRDE",prefeito:"Caio César Treml",partido:"PL",populacao:"43.800 hab.",prazoConcessao:"20 anos",valorEstimado:"A definir (EVTEA em andamento)",fasesTotal:12,faseAtual:2,progresso:12,status:"estruturacao",dataInicio:"Abr/2026",dataPrevisaoLeilao:"Out/2027",referenciaContratual:"Contrato BRDE â PPP IP+CI â Rio Negrinho/SC (TR em elaboração)",proximaAcao:"Realizar kickoff com BRDE e Prefeitura de Rio Negrinho",riscos:[{nivel:"alto",descricao:"Antecedente TCE/SC 2023 â contrato anterior irregular; população desconfiante com gestão de IP"},{nivel:"medio",descricao:'Narrativa de "privatização" amplificada por candidatos derrotados nas redes sociais'},{nivel:"baixo",descricao:"Capacidade técnica de comunicação da Prefeitura limitada para projetos de infraestrutura"}],fases:[{numero:1,nome:"Kickoff e Alinhamento",status:"em_andamento",prazo:"Abr/2026",responsavel:"PRINT + BRDE",descricao:"Kickoff com Prefeitura de Rio Negrinho, BRDE e PRINT. Alinhamento de responsabilidades e cronograma. Atenção ao antecedente TCE/SC 2023.",entregaveis:["Ata de kickoff assinada","Cronograma aprovado","Briefing pré-kickoff distribuÃdo"]},{numero:2,nome:"Diagnóstico do MunicÃpio",status:"em_andamento",prazo:"Mai/2026",responsavel:"PRINT",descricao:"Diagnóstico de Rio Negrinho: Caio Treml reeleito com 58,62%, 9 vereadores, polo madeireiro, TCE/SC 2023 (contrato IP irregular).",entregaveis:["Perfil Rio Negrinho (IBGE)","Diagnóstico digital","Análise SWOT"]},{numero:3,nome:"Mapeamento de Stakeholders",status:"pendente",prazo:"Mai/2026",responsavel:"PRINT",descricao:"Mapeamento dos 9 vereadores, ACIRN, CDL, SINTRASEM, Gazeta SBS e demais atores relevantes.",entregaveis:["Matriz de Stakeholders Rio Negrinho"]},{numero:4,nome:"Plano de Comunicação",status:"pendente",prazo:"Jun/2026",responsavel:"PRINT",descricao:"Plano de Comunicação conforme sumário do BRDE. Entrega ao BRDE para validação. Estrutura diferente do plano de SBS.",entregaveis:["Plano de Comunicação Rio Negrinho v1.0"]},{numero:5,nome:"Identidade Visual",status:"pendente",prazo:"Jun/2026",responsavel:"PRINT",descricao:"Identidade visual do projeto PPP IP+CI Rio Negrinho. Diferencial: visita técnica a SBS como referência local.",entregaveis:["Manual de identidade visual","Kit de peças digitais"]},{numero:6,nome:"Engajamento Legislativo",status:"pendente",prazo:"Jul/2026",responsavel:"PRINT + Prefeitura",descricao:"Reuniões individuais com os 9 vereadores. Visita técnica a São Bento do Sul (25 km) como referência concreta.",entregaveis:["Relatório de reuniões (9 vereadores)","Relatório da visita técnica a SBS"]},{numero:7,nome:"Media Training",status:"pendente",prazo:"Ago/2026",responsavel:"PRINT",descricao:"Media training do prefeito Caio Treml e secretários. Foco especial no antecedente TCE/SC 2023 e como comunicar a diferença.",entregaveis:["Relatório de media training","Discurso-chave aprovado"]},{numero:8,nome:"Hotsite e VÃdeo",status:"pendente",prazo:"Set/2026",responsavel:"PRINT",descricao:"Hotsite do projeto e vÃdeo institucional com Libras. Incluir depoimento do prefeito de SBS como benchmarking.",entregaveis:["Hotsite Rio Negrinho no ar","VÃdeo institucional com Libras"]}
528,{numero:9,nome:"Escuta Social",status:"pendente",prazo:"Mar/2027",responsavel:"PRINT + Prefeitura + BRDE",descricao:"Escuta social online e presencial. Reuniões comunitárias por bairro antes da consulta formal.",entregaveis:["Relatório de contribuições","Boletim especial escuta social"]},{numero:10,nome:"Audiência Pública",status:"pendente",prazo:"Mai/2027",responsavel:"PRINT + Prefeitura + BRDE",descricao:"Audiência pública com transmissão ao vivo e Libras. Protocolo de gestão de crises ativado preventivamente.",entregaveis:["Ata da audiência","Relatório pós-audiência"]},{numero:11,nome:"Publicação do Edital",status:"pendente",prazo:"Jul/2027",responsavel:"PRINT + Prefeitura",descricao:"Edital publicado. Monitoramento de impugnações. Comunicação quinzenal do processo.",entregaveis:["Nota de publicação do edital","Monitoramento de impugnações"]},{numero:12,nome:"Leilão",status:"pendente",prazo:"Out/2027",responsavel:"PRINT + Prefeitura + BRDE",descricao:"Realização do leilão. Cobertura ao vivo. Nota de resultado em até 2h após o pregão.",entregaveis:["Cobertura ao vivo","Nota de resultado (até 2h)","Release de assinatura do contrato"]}]}],x3={ativo:{label:"Ativo",color:"bg-emerald-100 text-emerald-700 border-emerald-200"},estruturacao:{label:"Em Estruturação",color:"bg-blue-100 text-blue-700 border-blue-200"},licitacao:{label:"Em Licitação",color:"bg-amber-100 text-amber-700 border-amber-200"},concluido:{label:"ConcluÃdo",color:"bg-gray-100 text-gray-600 border-gray-200"}},Qre={concluida:{label:"ConcluÃda",color:"text-emerald-600",bg:"bg-emerald-500",icon:ta},em_andamento:{label:"Em andamento",color:"text-blue-600",bg:"bg-blue-500",icon:Wt},pendente:{label:"Pendente",color:"text-gray-400",bg:"bg-gray-200",icon:Xee},atrasada:{label:"Atrasada",color:"text-red-600",bg:"bg-red-500",icon:ho}},H1={alto:{label:"Alto",color:"bg-red-100 text-red-700 border-red-200",bg:"bg-red-50 border-red-200"},medio:{label:"Médio",color:"bg-amber-100 text-amber-700 border-amber-200",bg:"bg-amber-50 border-amber-200"},baixo:{label:"Baixo",color:"bg-green-100 text-green-700 border-green-200",bg:"bg-green-50 border-green-200"}};function eae(){const[e,t]=L.useState("itaperuna"),[r,a]=L.useState(null),[n,i]=L.useState("fases"),o=U1.find(s=>s.id===e);return p.jsx("div",{"data-loc":"client/src/pages/Projetos.tsx:232",className:"min-h-screen bg-[#EDE9DF] p-6",children:p.jsxs("div",{"data-loc":"client/src/pages/Projetos.tsx:233",className:"max-w-6xl mx-auto space-y-6",children:[p.jsxs("div",{"data-loc":"client/src/pages/Projetos.tsx:236",className:"flex items-center justify-between",children:[p.jsxs("div",{"data-loc":"client/src/pages/Projetos.tsx:237",children:[p.jsx("h1",{"data-loc":"client/src/pages/Projetos.tsx:238",className:"text-2xl font-bold text-[#2D4A2D]",children:"Projetos PPP"}),p.jsxs("p",{"data-loc":"client/src/pages/Projetos.tsx:239",className:"text-[#2D4A2D]/60 text-sm mt-0.5",children:[U1.length," projetos ativos · Acompanhamento por fases"]})]}),p.jsxs("button",{"data-loc":"client/src/pages/Projetos.tsx:241",onClick:()=>je.info('Use o botão "+ Novo Projeto" no topo da sidebar para cadastrar um novo projeto.'),className:"flex items-center gap-2 px-4 py-2 rounded-xl bg-[#2D4A2D] text-white text-sm hover:bg-[#2D4A2D]/90 transition-colors",children:[p.jsx(fa,{"data-loc":"client/src/pages/Projetos.tsx:245",size:14})," Novo Projeto"]})]}),p.jsx("div",{"data-loc":"client/src/pages/Projetos.tsx:250",className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:U1.map(s=>p.jsxs("button",{"data-loc":"client/src/pages/Projetos.tsx:252",onClick:()=>{t(s.id),a(null),i("fases")},className:`rounded-2xl border p-4 text-left transition-all ${s.id===e?"bg-[#2D4A2D] border-[#2D4A2D] shadow-md":"bg-white border-[#2D4A2D]/10 hover:border-[#2D4A2D]/30"}`,children:[p.jsxs("div",{"data-loc":"client/src/pages/Projetos.tsx:261",className:`text-xs font-bold mb-1 ${s.id===e?"text-white":"text-[#2D4A2D]"}`,children:[s.municipio," / ",s.estado]}),p.jsx("div",{"data-loc":"client/src/pages/Projetos.tsx:264",className:`text-[10px] mb-2 ${s.id===e?"text-white/70":"text-[#2D4A2D]/50"}`,children:s.banco.includes("BRDE")?"BRDE":"Caixa Econômica"}),p.jsxs("div",{"data-loc":"client/src/pages/Projetos.tsx:267",className:`text-xs font-semibold mb-1 ${s.id===e?"text-white":"text-[#2D4A2D]"}`,children:[s.progresso,"% concluÃdo"]}),p.jsx("div",{"data-loc":"client/src/pages/Projetos.tsx:270",className:`h-1.5 rounded-full ${s.id===e?"bg-white/20":"bg-[#2D4A2D]/10"}`,children:p.jsx("div",{"data-loc":"client/src/pages/Projetos.tsx:271",className:`h-1.5 rounded-full transition-all ${s.id===e?"bg-[#7A8C5E]":"bg-[#2D4A2D]"}`,style:{width:`${s.progresso}%`}})}),p.jsxs("div",{"data-loc":"client/src/pages/Projetos.tsx:276",className:`text-[10px] mt-1 ${s.id===e?"text-white/60":"text-[#2D4A2D]/40"}`,children:["Fase ",s.faseAtual," de ",s.fasesTotal]})]},s.id))}),p.jsxs("div",{"data-loc":"client/src/pages/Projetos.tsx:284",className:"bg-white rounded-2xl border border-[#2D4A2D]/10 shadow-sm overflow-hidden",children:[p.jsxs("div",{"data-loc":"client/src/pages/Projetos.tsx:287",className:"bg-[#2D4A2D] px-6 py-5",children:[p.jsxs("div",{"data-loc":"client/src/pages/Projetos.tsx:288",className:"flex items-start justify-between gap-4",children:[p.jsxs("div",{"data-loc":"client/src/pages/Projetos.tsx:289",children:[p.jsxs("div",{"data-loc":"client/src/pages/Projetos.tsx:290",className:"flex items-center gap-2 mb-1",children:[p.jsx(Zl,{"data-loc":"client/src/pages/Projetos.tsx:291",size:13,className:"text-[#EDE9DF]/60"}),p.jsx("span",{"data-loc":"client/src/pages/Projetos.tsx:292",className:"text-[#EDE9DF]/60 text-xs uppercase tracking-wider",children:o.tipo})]}),p.jsxs("h2",{"data-loc":"client/src/pages/Projetos.tsx:294",className:"text-xl font-bold text-white",children:[o.municipio," / ",o.estado]}),p.jsxs("p",{"data-loc":"client/src/pages/Projetos.tsx:295",className:"text-[#EDE9DF]/70 text-sm mt-0.5",children:[o.banco," · ",o.prefeito," (",o.partido,") · ",o.populacao]})]}),p.jsxs("div",{"data-loc":"client/src/pages/Projetos.tsx:297",className:"text-right shrink-0",children:[p.jsx("span",{"data-loc":"client/src/pages/Projetos.tsx:298",className:`text-xs font-semibold px-2.5 py-1 rounded-full border ${x3[o.status].color}`,children:x3[o.status].label}),p.jsxs("div",{"data-loc":"client/src/pages/Projetos.tsx:301",className:"text-3xl font-bold text-white mt-2",children:[o.progresso,"%"]}),p.jsxs("div",{"data-loc":"client/src/pages/Projetos.tsx:302",className:"text-[#EDE9DF]/60 text-xs",children:["Fase ",o.faseAtual," de ",o.fasesTotal]})]})]}),p.jsx("div",{"data-loc":"client/src/pages/Projetos.tsx:305",className:"mt-4 bg-white/20 rounded-full h-2",children:p.jsx("div",{"data-loc":"client/src/pages/Projetos.tsx:306",className:"bg-[#7A8C5E] h-2 rounded-full transition-all",style:{width:`${o.progresso}%`}})})]}),p.jsxs("div",{"data-loc":"client/src/pages/Projetos.tsx:311",className:"px-6 py-3 bg-amber-50 border-b border-amber-100 flex items-center gap-2",children:[p.jsx(Rx,{"data-loc":"client/src/pages/Projetos.tsx:312",size:13,className:"text-amber-600 shrink-0"}),p.jsxs("span",{"data-loc":"client/src/pages/Projetos.tsx:313",className:"text-xs text-amber-800",children:[p.jsx("span",{"data-loc":"client/src/pages/Projetos.tsx:313",className:"font-semibold",children:"Próxima ação:"})," ",o.proximaAcao]})]}),p.jsx("div",{"data-loc":"client/src/pages/Projetos.tsx:317",className:"flex border-b border-[#2D4A2D]/10",children:["fases","riscos","info"].map(s=>p.jsx("button",{"data-loc":"client/src/pages/Projetos.tsx:319",onClick:()=>i(s),className:`px-5 py-3 text-sm font-medium transition-colors border-b-2 -mb-px ${n===s?"border-[#2D4A2D] text-[#2D4A2D]":"border-transparent text-[#2D4A2D]/50 hover:text-[#2D4A2D]"}`,children:s==="fases"?`Fases (${o.fasesTotal})`:s==="riscos"?`Riscos (${o.riscos.length})`:"Informações"},s))}),p.jsxs("div",{"data-loc":"client/src/pages/Projetos.tsx:333",className:"p-6",children:[n==="fases"&&p.jsx("div",{"data-loc":"client/src/pages/Projetos.tsx:337",className:"space-y-2",children:o.fases.map(s=>{const c=Qre[s.status],u=r===s.numero;return p.jsxs("div",{"data-loc":"client/src/pages/Projetos.tsx:342",className:`rounded-xl border overflow-hidden transition-all ${s.status==="em_andamento"?"border-blue-200 bg-blue-50/30":s.status==="atrasada"?"border-red-200 bg-red-50/30":s.status==="concluida"?"border-emerald-100 bg-emerald-50/20":"border-[#2D4A2D]/8 bg-white"}`,children:[p.jsxs("button",{"data-loc":"client/src/pages/Projetos.tsx:348",onClick:()=>a(u?null:s.numero),className:"w-full flex items-center gap-3 px-4 py-3 text-left hover:bg-[#2D4A2D]/3 transition-colors",children:[p.jsx("div",{"data-loc":"client/src/pages/Projetos.tsx:352",className:`w-2.5 h-2.5 rounded-full shrink-0 ${c.bg}`}),p.jsxs("div",{"data-loc":"client/src/pages/Projetos.tsx:353",className:"flex-1 min-w-0",children:[p.jsxs("div",{"data-loc":"client/src/pages/Projetos.tsx:354",className:"flex items-center gap-2",children:[p.jsxs("span",{"data-loc":"client/src/pages/Projetos.tsx:355",className:"text-xs text-[#2D4A2D]/40 font-mono shrink-0",children:["F",String(s.numero).padStart(2,"0")]}),p.jsx("span",{"data-loc":"client/src/pages/Projetos.tsx:356",className:"text-sm font-semibold text-[#2D4A2D] truncate",children:s.nome})]}),p.jsxs("div",{"data-loc":"client/src/pages/Projetos.tsx:358",className:"flex items-center gap-3 mt-0.5",children:[p.jsx("span",{"data-loc":"client/src/pages/Projetos.tsx:359",className:`text-xs ${c.color}`,children:c.label}),p.jsxs("span",{"data-loc":"client/src/pages/Projetos.tsx:360",className:"text-xs text-[#2D4A2D]/40",children:["Prazo: ",s.prazo]}),p.jsx("span",{"data-loc":"client/src/pages/Projetos.tsx:361",className:"text-xs text-[#2D4A2D]/40 hidden md:inline",children:s.responsavel})]})]}),u?p.jsx(Sd,{"data-loc":"client/src/pages/Projetos.tsx:364",size:13,className:"text-[#2D4A2D]/40 shrink-0"}):p.jsx(Xl,{"data-loc":"client/src/pages/Projetos.tsx:364",size:13,className:"text-[#2D4A2D]/40 shrink-0"})]}),u&&p.jsxs("div",{"data-loc":"client/src/pages/Projetos.tsx:367",className:"px-4 pb-4 border-t border-[#2D4A2D]/8 pt-3 space-y-3",children:[p.jsx("p",{"data-loc":"client/src/pages/Projetos.tsx:368",className:"text-sm text-[#2D4A2D]/70 leading-relaxed",children:s.descricao}),p.jsxs("div",{"data-loc":"client/src/pages/Projetos.tsx:369",children:[p.jsx("div",{"data-loc":"client/src/pages/Projetos.tsx:370",className:"text-xs font-semibold text-[#2D4A2D] mb-1.5",children:"Entregáveis:"}),p.jsx("div",{"data-loc":"client/src/pages/Projetos.tsx:371",className:"space-y-1",children:s.entregaveis.map((h,f)=>p.jsxs("div",{"data-loc":"client/src/pages/Projetos.tsx:373",className:"flex items-center gap-2 text-xs text-[#2D4A2D]/70",children:[p.jsx(ta,{"data-loc":"client/src/pages/Projetos.tsx:374",size:11,className:s.status==="concluida"?"text-emerald-500":"text-[#2D4A2D]/20"}),h]},f))})]})]})]},s.numero)})}),n==="riscos"&&p.jsx("div",{"data-loc":"client/src/pages/Projetos.tsx:390",className:"space-y-3",children:o.riscos.map((s,c)=>p.jsxs("div",{"data-loc":"client/src/pages/Projetos.tsx:392",className:`rounded-xl border p-4 flex items-start gap-3 ${H1[s.nivel].bg}`,children:[p.jsx(ho,{"data-loc":"client/src/pages/Projetos.tsx:393",size:14,className:s.nivel==="alto"?"text-red-500 shrink-0 mt-0.5":s.nivel==="medio"?"text-amber-500 shrink-0 mt-0.5":"text-green-500 shrink-0 mt-0.5"}),p.jsxs("div",{"data-loc":"client/src/pages/Projetos.tsx:398",className:"flex-1",children:[p.jsx("span",{"data-loc":"client/src/pages/Projetos.tsx:399",className:`text-xs font-semibold px-2 py-0.5 rounded-full border mr-2 ${H1[s.nivel].color}`,children:H1[s.nivel].label}),p.jsx("span",{"data-loc":"client/src/pages/Projetos.tsx:402",className:"text-sm text-[#2D4A2D]/80",children:s.descricao})]})]},c))}),n==="info"&&p.jsxs("div",{"data-loc":"client/src/pages/Projetos.tsx:411",className:"space-y-4",children:[p.jsx("div",{"data-loc":"client/src/pages/Projetos.tsx:412",className:"grid grid-cols-2 md:grid-cols-3 gap-3",children:[{label:"Mu
528nicÃpio / Estado",value:`${o.municipio} / ${o.estado}`},{label:"Tipo de PPP",value:o.tipo},{label:"Banco Estruturador",value:o.banco},{label:"Prefeito",value:`${o.prefeito} (${o.partido})`},{label:"População",value:o.populacao},{label:"Prazo da Concessão",value:o.prazoConcessao},{label:"Valor Estimado",value:o.valorEstimado},{label:"InÃcio do Projeto",value:o.dataInicio},{label:"Previsão do Leilão",value:o.dataPrevisaoLeilao}].map(s=>p.jsxs("div",{"data-loc":"client/src/pages/Projetos.tsx:424",className:"bg-[#EDE9DF]/60 rounded-xl p-3",children:[p.jsx("div",{"data-loc":"client/src/pages/Projetos.tsx:425",className:"text-xs text-[#2D4A2D]/50 mb-0.5",children:s.label}),p.jsx("div",{"data-loc":"client/src/pages/Projetos.tsx:426",className:"text-sm font-semibold text-[#2D4A2D]",children:s.value})]},s.label))}),p.jsxs("div",{"data-loc":"client/src/pages/Projetos.tsx:430",className:"bg-[#2D4A2D]/5 rounded-xl p-3 border border-[#2D4A2D]/10",children:[p.jsx("div",{"data-loc":"client/src/pages/Projetos.tsx:431",className:"text-xs text-[#2D4A2D]/50 mb-0.5",children:"Referência Contratual"}),p.jsx("div",{"data-loc":"client/src/pages/Projetos.tsx:432",className:"text-xs font-medium text-[#2D4A2D]",children:o.referenciaContratual})]})]})]})]})]})})}function tae(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return L.useMemo(()=>a=>{t.forEach(n=>n(a))},t)}const uy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ed(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function sN(e){return"nodeType"in e}function Ga(e){var t,r;return e?Ed(e)?e:sN(e)&&(t=(r=e.ownerDocument)==null?void 0:r.defaultView)!=null?t:window:window}function lN(e){const{Document:t}=Ga(e);return e instanceof t}function Ih(e){return Ed(e)?!1:e instanceof Ga(e).HTMLElement}function OF(e){return e instanceof Ga(e).SVGElement}function Ad(e){return e?Ed(e)?e.document:sN(e)?lN(e)?e:Ih(e)||OF(e)?e.ownerDocument:document:document:document}const Di=uy?L.useLayoutEffect:L.useEffect;function cN(e){const t=L.useRef(e);return Di(()=>{t.current=e}),L.useCallback(function(){for(var r=arguments.length,a=new Array(r),n=0;n<r;n++)a[n]=arguments[n];return t.current==null?void 0:t.current(...a)},[])}function rae(){const e=L.useRef(null),t=L.useCallback((a,n)=>{e.current=setInterval(a,n)},[]),r=L.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,r]}function Bp(e,t){t===void 0&&(t=[e]);const r=L.useRef(e);return Di(()=>{r.current!==e&&(r.current=e)},t),r}function Bh(e,t){const r=L.useRef();return L.useMemo(()=>{const a=e(r.current);return r.current=a,a},[...t])}function Ix(e){const t=cN(e),r=L.useRef(null),a=L.useCallback(n=>{n!==r.current&&t?.(n,r.current),r.current=n},[]);return[r,a]}function kC(e){const t=L.useRef();return L.useEffect(()=>{t.current=e},[e]),t.current}let G1={};function Lh(e,t){return L.useMemo(()=>{if(t)return t;const r=G1[e]==null?0:G1[e]+1;return G1[e]=r,e+"-"+r},[e,t])}function MF(e){return function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),n=1;n<r;n++)a[n-1]=arguments[n];return a.reduce((i,o)=>{const s=Object.entries(o);for(const[c,u]of s){const h=i[c];h!=null&&(i[c]=h+e*u)}return i},{...t})}}const Su=MF(1),Lp=MF(-1);function aae(e){return"clientX"in e&&"clientY"in e}function uN(e){if(!e)return!1;const{KeyboardEvent:t}=Ga(e.target);return t&&e instanceof t}function nae(e){if(!e)return!1;const{TouchEvent:t}=Ga(e.target);return t&&e instanceof t}function DC(e){if(nae(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:r}=e.touches[0];return{x:t,y:r}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:r}=e.changedTouches[0];return{x:t,y:r}}}return aae(e)?{x:e.clientX,y:e.clientY}:null}const Mu=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:r}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:r}=e;return"scaleX("+t+") scaleY("+r+")"}},Transform:{toString(e){if(e)return[Mu.Translate.toString(e),Mu.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:r,easing:a}=e;return t+" "+r+"ms "+a}}}),v3="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function iae(e){return e.matches(v3)?e:e.querySelector(v3)}const oae={display:"none"};function sae(e){let{id:t,value:r}=e;return de.createElement("div",{id:t,style:oae},r)}function lae(e){let{id:t,announcement:r,ariaLiveType:a="assertive"}=e;const n={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return de.createElement("div",{id:t,style:n,role:"status","aria-live":a,"aria-atomic":!0},r)}function cae(){const[e,t]=L.useState("");return{announce:L.useCallback(a=>{a!=null&&t(a)},[]),announcement:e}}
528const IF=L.createContext(null);function uae(e){const t=L.useContext(IF);L.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function dae(){const[e]=L.useState(()=>new Set),t=L.useCallback(a=>(e.add(a),()=>e.delete(a)),[e]);return[L.useCallback(a=>{let{type:n,event:i}=a;e.forEach(o=>{var s;return(s=o[n])==null?void 0:s.call(o,i)})},[e]),t]}const fae={draggable:` 529 To pick up a draggable item, press the space bar. 530 While dragging, use the arrow keys to move the item. 531 Press space again to drop the item in its new position, or press escape to cancel. 532 `},pae={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was moved over droppable area "+r.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was dropped over droppable area "+r.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function hae(e){let{announcements:t=pae,container:r,hiddenTextDescribedById:a,screenReaderInstructions:n=fae}=e;const{announce:i,announcement:o}=cae(),s=Lh("DndLiveRegion"),[c,u]=L.useState(!1);if(L.useEffect(()=>{u(!0)},[]),uae(L.useMemo(()=>({onDragStart(f){let{active:m}=f;i(t.onDragStart({active:m}))},onDragMove(f){let{active:m,over:x}=f;t.onDragMove&&i(t.onDragMove({active:m,over:x}))},onDragOver(f){let{active:m,over:x}=f;i(t.onDragOver({active:m,over:x}))},onDragEnd(f){let{active:m,over:x}=f;i(t.onDragEnd({active:m,over:x}))},onDragCancel(f){let{active:m,over:x}=f;
532i(t.onDragCancel({active:m,over:x}))}}),[i,t])),!c)return null;const h=de.createElement(de.Fragment,null,de.createElement(sae,{id:a,value:n.draggable}),de.createElement(lae,{id:s,announcement:o}));return r?xs.createPortal(h,r):h}var Hr;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Hr||(Hr={}));function Bx(){}function Lx(e,t){return L.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function BF(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return L.useMemo(()=>[...t].filter(a=>a!=null),[...t])}const oi=Object.freeze({x:0,y:0});function LF(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function zF(e,t){let{data:{value:r}}=e,{data:{value:a}}=t;return r-a}function mae(e,t){let{data:{value:r}}=e,{data:{value:a}}=t;return a-r}function y3(e){let{left:t,top:r,height:a,width:n}=e;return[{x:t,y:r},{x:t+n,y:r},{x:t,y:r+a},{x:t+n,y:r+a}]}function FF(e,t){if(!e||e.length===0)return null;const[r]=e;return r[t]}function b3(e,t,r){return t===void 0&&(t=e.left),r===void 0&&(r=e.top),{x:t+e.width*.5,y:r+e.height*.5}}const $F=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:a}=e;const n=b3(t,t.left,t.top),i=[];for(const o of a){const{id:s}=o,c=r.get(s);if(c){const u=LF(b3(c),n);i.push({id:s,data:{droppableContainer:o,value:u}})}}return i.sort(zF)},gae=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:a}=e;const n=y3(t),i=[];for(const o of a){const{id:s}=o,c=r.get(s);if(c){const u=y3(c),h=n.reduce((m,x,v)=>m+LF(u[v],x),0),f=Number((h/4).toFixed(4));i.push({id:s,data:{droppableContainer:o,value:f}})}}return i.sort(zF)};function xae(e,t){const r=Math.max(t.top,e.top),a=Math.max(t.left,e.left),n=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),o=n-a,s=i-r;if(a<n&&r<i){const c=t.width*t.height,u=e.width*e.height,h=o*s,f=h/(c+u-h);return Number(f.toFixed(4))}return 0}const vae=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:a}=e;const n=[];for(const i of a){const{id:o}=i,s=r.get(o);if(s){const c=xae(s,t);c>0&&n.push({id:o,data:{droppableContainer:i,value:c}})}}return n.sort(mae)};function yae(e,t,r){return{...e,scaleX:t&&r?t.width/r.width:1,scaleY:t&&r?t.height/r.height:1}}function qF(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:oi}function bae(e){return function(r){for(var a=arguments.length,n=new Array(a>1?a-1:0),i=1;i<a;i++)n[i-1]=arguments[i];return n.reduce((o,s)=>({...o,top:o.top+e*s.y,bottom:o.bottom+e*s.y,left:o.left+e*s.x,right:o.right+e*s.x}),{...r})}}const wae=bae(1);function Sae(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function Eae(e,t,r){const a=Sae(t);if(!a)return e;const{scaleX:n,scaleY:i,x:o,y:s}=a,c=e.left-o-(1-n)*parseFloat(r),u=e.top-s-(1-i)*parseFloat(r.slice(r.indexOf(" ")+1)),h=n?e.width/n:e.width,f=i?e.height/i:e.height;return{width:h,height:f,top:u,right:c+h,bottom:u+f,left:c}}const Aae={ignoreTransform:!1};function Cd(e,t){t===void 0&&(t=Aae);let r=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:u,transformOrigin:h}=Ga(e).getComputedStyle(e);u&&(r=Eae(r,u,h))}const{top:a,left:n,width:i,height:o,bottom:s,right:c}=r;return{top:a,left:n,width:i,height:o,bottom:s,right:c}}function w3(e){return Cd(e,{ignoreTransform:!0})}function Cae(e){const t=e.innerWidth,r=e.innerHeight;return{top:0,left:0,right:t,bottom:r,width:t,height:r}}function Pae(e,t){return t===void 0&&(t=Ga(e).getComputedStyle(e)),t.position==="fixed"}function jae(e,t){t===void 0&&(t=Ga(e).getComputedStyle(e));const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(n=>{const i=t[n];return typeof i=="string"?r.test(i):!1})}function dy(e,t){const r=[];function a(n){if(t!=null&&r.length>=t||!n)return r;if(lN(n)&&n.scrollingElement!=null&&!r.includes(n.scrollingElement))return r.push(n.scrollingElement),r;if(!Ih(n)||OF(n)||r.includes(n))return r;const i=Ga(e).getComputedStyle(n);return n!==e&&jae(n,i)&&r.push(n),Pae(n,i)?r:a(n.parentNode)}return e?a(e):r}function VF(e){const[t]=dy(e,1);return t??null}function K1(e){return!uy||!e?null:Ed(e)?e:sN(e)?lN(e)||e===Ad(e).scrollingElement?window:Ih(e)?e:null:null}function UF(e){return Ed(e)?e.scrollX:e.scrollLeft}function HF(e){return Ed(e)?e.scrollY:e.scrollTop}function _C(e){return{x:UF(e),y:HF(e)}}var Qr;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Qr||(Qr={}));function GF(e){return!uy||!e?!1:e===document.scrollingElement}function KF(e){const t={x:0,y:0},r=GF(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},a={x:e.scrollWidth-r.width,y:e.scrollHeight-r.height},n=e.scrollTop<=t.y,i=e.scrollLeft<=t.x,o=e.scrollTop>=a.y,s=e.scrollLeft>=a.x;return{isTop:n,isLeft:i,isBottom:o,isRight:s,maxScroll:a,minScroll:t}}const Nae={x:.2,y:.2};function Tae(e,t,r,a,n){let{top:i,left:o,right:s,bottom:c}=r;a===void 0&&(a=10),n===void 0&&(n=Nae);const{isTop:u,isBottom:h,isLeft:f,isRight:m}=KF(e),x={x:0,y:0},v={x:0,y:0},y={height:t.height*n.y,width:t.width*n.x};return!u&&i<=t.top+y.height?(x.y=Qr.Backward,v.y=a*Math.abs((t.top+y.height-i)/y.height)):!h&&c>=t.bottom-y.height&&(x.y=Qr.Forward,v.y=a*Math.abs((t.bottom-y.height-c)/y.height)),!m&&s>=t.right-y.width?(x.x=Qr.Forward,v.x=a*Math.abs((t.right-y.width-s)/y.width)):!f&&o<=t.left+y.width&&(x.x=Qr.Backward,v.x=a*Math.abs((t.left+y.width-o)/y.width)),{direction:x,speed:v}}function kae(e){if(e===document.scrollingElement){const{innerWidth:i,innerHeight:o}=window;return{top:0,left:0,right:i,bottom:o,width:i,height:o}}const{top:t,left:r,right:a,bottom:n}=e.getBoundingClientRect();return{top:t,left:r,right:a,bottom:n,width:e.clientWidth,height:e.clientHeight}}function WF(e){return e.reduce((t,r)=>Su(t,_C(r)),oi)}function Dae(e){return e.reduce((t,r)=>t+UF(r),0)}function _ae(e){return e.reduce((t,r)=>
532t+HF(r),0)}function Rae(e,t){if(t===void 0&&(t=Cd),!e)return;const{top:r,left:a,bottom:n,right:i}=t(e);VF(e)&&(n<=0||i<=0||r>=window.innerHeight||a>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Oae=[["x",["left","right"],Dae],["y",["top","bottom"],_ae]];class dN{constructor(t,r){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const a=dy(r),n=WF(a);this.rect={...t},this.width=t.width,this.height=t.height;for(const[i,o,s]of Oae)for(const c of o)Object.defineProperty(this,c,{get:()=>{const u=s(a),h=n[i]-u;return this.rect[c]+h},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class dp{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(r=>{var a;return(a=this.target)==null?void 0:a.removeEventListener(...r)})},this.target=t}add(t,r,a){var n;(n=this.target)==null||n.addEventListener(t,r,a),this.listeners.push([t,r,a])}}function Mae(e){const{EventTarget:t}=Ga(e);return e instanceof t?e:Ad(e)}function W1(e,t){const r=Math.abs(e.x),a=Math.abs(e.y);return typeof t=="number"?Math.sqrt(r**2+a**2)>t:"x"in t&&"y"in t?r>t.x&&a>t.y:"x"in t?r>t.x:"y"in t?a>t.y:!1}var Bn;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Bn||(Bn={}));function S3(e){e.preventDefault()}function Iae(e){e.stopPropagation()}var Bt;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Bt||(Bt={}));const XF={start:[Bt.Space,Bt.Enter],cancel:[Bt.Esc],end:[Bt.Space,Bt.Enter,Bt.Tab]},Bae=(e,t)=>{let{currentCoordinates:r}=t;switch(e.code){case Bt.Right:return{...r,x:r.x+25};case Bt.Left:return{...r,x:r.x-25};case Bt.Down:return{...r,y:r.y+25};case Bt.Up:return{...r,y:r.y-25}}};class fy{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:r}}=t;this.props=t,this.listeners=new dp(Ad(r)),this.windowListeners=new dp(Ga(r)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Bn.Resize,this.handleCancel),this.windowListeners.add(Bn.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Bn.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:r}=this.props,a=t.node.current;a&&Rae(a),r(oi)}handleKeyDown(t){if(uN(t)){const{active:r,context:a,options:n}=this.props,{keyboardCodes:i=XF,coordinateGetter:o=Bae,scrollBehavior:s="smooth"}=n,{code:c}=t;if(i.end.includes(c)){this.handleEnd(t);return}if(i.cancel.includes(c)){this.handleCancel(t);return}const{collisionRect:u}=a.current,h=u?{x:u.left,y:u.top}:oi;this.referenceCoordinates||(this.referenceCoordinates=h);const f=o(t,{active:r,context:a.current,currentCoordinates:h});if(f){const m=Lp(f,h),x={x:0,y:0},{scrollableAncestors:v}=a.current;for(const y of v){const b=t.code,{isTop:S,isRight:A,isLeft:E,isBottom:j,maxScroll:P,minScroll:C}=KF(y),N=kae(y),O={x:Math.min(b===Bt.Right?N.right-N.width/2:N.right,Math.max(b===Bt.Right?N.left:N.left+N.width/2,f.x)),y:Math.min(b===Bt.Down?N.bottom-N.height/2:N.bottom,Math.max(b===Bt.Down?N.top:N.top+N.height/2,f.y))},k=b===Bt.Right&&!A||b===Bt.Left&&!E,B=b===Bt.Down&&!j||b===Bt.Up&&!S;if(k&&O.x!==f.x){const $=y.scrollLeft+m.x,_=b===Bt.Right&&$<=P.x||b===Bt.Left&&$>=C.x;if(_&&!m.y){y.scrollTo({left:$,behavior:s});return}_?x.x=y.scrollLeft-$:x.x=b===Bt.Right?y.scrollLeft-P.x:y.scrollLeft-C.x,x.x&&y.scrollBy({left:-x.x,behavior:s});break}else if(B&&O.y!==f.y){const $=y.scrollTop+m.y,_=b===Bt.Down&&$<=P.y||b===Bt.Up&&$>=C.y;if(_&&!m.x){y.scrollTo({top:$,behavior:s});return}_?x.y=y.scrollTop-$:x.y=b===Bt.Down?y.scrollTop-P.y:y.scrollTop-C.y,x.y&&y.scrollBy({top:-x.y,behavior:s});break}}this.handleMove(t,Su(Lp(f,this.referenceCoordinates),x))}}}handleMove(t,r){const{onMove:a}=this.props;t.preventDefault(),a(r)}handleEnd(t){const{onEnd:r}=this.props;t.preventDefault(),this.detach(),r()}handleCancel(t){const{onCancel:r}=this.props;t.preventDefault(),this.detach(),r()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}fy.activators=[{eventName:"onKeyDown",handler:(e,t,r)=>{let{keyboardCodes:a=XF,onActivation:n}=t,{active:i}=r;const{code:o}=e.nativeEvent;if(a.start.includes(o)){const s=i.activatorNode.current;return s&&e.target!==s?!1:(e.preventDefault(),n?.({event:e.nativeEvent}),!0)}return!1}}];function E3(e){return!!(e&&"distance"in e)}function A3(e){return!!(e&&"delay"in e)}class fN{constructor(t,r,a){var n;a===void 0&&(a=Mae(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=r;const{event:i}=t,{target:o}=i;this.props=t,this.events=r,this.document=Ad(o),this.documentListeners=new dp(this.document),this.listeners=new dp(a),this.windowListeners=new dp(Ga(o)),this.initialCoordinates=(n=DC(i))!=null?n:oi,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:r,bypassActivationConstraint:a}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(Bn.Resize,this.handleCancel),this.windowListeners.add(Bn.DragStart,S3),this.windowListeners.add(Bn.VisibilityChange,this.handleCancel),this.windowListeners.add(Bn.C
532ontextMenu,S3),this.documentListeners.add(Bn.Keydown,this.handleKeydown),r){if(a!=null&&a({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(A3(r)){this.timeoutId=setTimeout(this.handleStart,r.delay),this.handlePending(r);return}if(E3(r)){this.handlePending(r);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,r){const{active:a,onPending:n}=this.props;n(a,t,this.initialCoordinates,r)}handleStart(){const{initialCoordinates:t}=this,{onStart:r}=this.props;t&&(this.activated=!0,this.documentListeners.add(Bn.Click,Iae,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Bn.SelectionChange,this.removeTextSelection),r(t))}handleMove(t){var r;const{activated:a,initialCoordinates:n,props:i}=this,{onMove:o,options:{activationConstraint:s}}=i;if(!n)return;const c=(r=DC(t))!=null?r:oi,u=Lp(n,c);if(!a&&s){if(E3(s)){if(s.tolerance!=null&&W1(u,s.tolerance))return this.handleCancel();if(W1(u,s.distance))return this.handleStart()}if(A3(s)&&W1(u,s.tolerance))return this.handleCancel();this.handlePending(s,u);return}t.cancelable&&t.preventDefault(),o(c)}handleEnd(){const{onAbort:t,onEnd:r}=this.props;this.detach(),this.activated||t(this.props.active),r()}handleCancel(){const{onAbort:t,onCancel:r}=this.props;this.detach(),this.activated||t(this.props.active),r()}handleKeydown(t){t.code===Bt.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const Lae={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class py extends fN{constructor(t){const{event:r}=t,a=Ad(r.target);super(t,Lae,a)}}py.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:a}=t;return!r.isPrimary||r.button!==0?!1:(a?.({event:r}),!0)}}];const zae={move:{name:"mousemove"},end:{name:"mouseup"}};var RC;(function(e){e[e.RightClick=2]="RightClick"})(RC||(RC={}));class Fae extends fN{constructor(t){super(t,zae,Ad(t.event.target))}}Fae.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:a}=t;return r.button===RC.RightClick?!1:(a?.({event:r}),!0)}}];const X1={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class $ae extends fN{constructor(t){super(t,X1)}static setup(){return window.addEventListener(X1.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(X1.move.name,t)};function t(){}}}$ae.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:a}=t;const{touches:n}=r;return n.length>1?!1:(a?.({event:r}),!0)}}];var fp;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(fp||(fp={}));var zx;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(zx||(zx={}));function qae(e){let{acceleration:t,activator:r=fp.Pointer,canScroll:a,draggingRect:n,enabled:i,interval:o=5,order:s=zx.TreeOrder,pointerCoordinates:c,scrollableAncestors:u,scrollableAncestorRects:h,delta:f,threshold:m}=e;const x=Uae({delta:f,disabled:!i}),[v,y]=rae(),b=L.useRef({x:0,y:0}),S=L.useRef({x:0,y:0}),A=L.useMemo(()=>{switch(r){case fp.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case fp.DraggableRect:return n}},[r,n,c]),E=L.useRef(null),j=L.useCallback(()=>{const C=E.current;if(!C)return;const N=b.current.x*S.current.x,O=b.current.y*S.current.y;C.scrollBy(N,O)},[]),P=L.useMemo(()=>s===zx.TreeOrder?[...u].reverse():u,[s,u]);L.useEffect(()=>{if(!i||!u.length||!A){y();return}for(const C of P){if(a?.(C)===!1)continue;const N=u.indexOf(C),O=h[N];if(!O)continue;const{direction:k,speed:B}=Tae(C,O,A,t,m);for(const $ of["x","y"])x[$][k[$]]||(B[$]=0,k[$]=0);if(B.x>0||B.y>0){y(),E.current=C,v(j,o),b.current=B,S.current=k;return}}b.current={x:0,y:0},S.current={x:0,y:0},y()},[t,j,a,y,i,o,JSON.stringify(A),JSON.stringify(x),v,u,P,h,JSON.stringify(m)])}const Vae={x:{[Qr.Backward]:!1,[Qr.Forward]:!1},y:{[Qr.Backward]:!1,[Qr.Forward]:!1}};function Uae(e){let{delta:t,disabled:r}=e;const a=kC(t);return Bh(n=>{if(r||!a||!n)return Vae;const i={x:Math.sign(t.x-a.x),y:Math.sign(t.y-a.y)};return{x:{[Qr.Backward]:n.x[Qr.Backward]||i.x===-1,[Qr.Forward]:n.x[Qr.Forward]||i.x===1},y:{[Qr.Backward]:n.y[Qr.Backward]||i.y===-1,[Qr.Forward]:n.y[Qr.Forward]||i.y===1}}},[r,t,a])}function Hae(e,t){const r=t!=null?e.get(t):void 0,a=r?r.node.current:null;return Bh(n=>{var i;return t==null?null:(i=a??n)!=null?i:null},[a,t])}function Gae(e,t){return L.useMemo(()=>e.reduce((r,a)=>{const{sensor:n}=a,i=n.activators.map(o=>({eventName:o.eventName,handler:t(o.handler,a)}));return[...r,...i]},[]),[e,t])}var zp;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(zp||(zp={}));var OC;(function(e){e.Optimized="optimized"})(OC||(OC={}));const C3=new Map;function Kae(e,t){let{dragging:r,dependencies:a,config:n}=t;const[i,o]=L.useState(null),{frequency:s,measure:c,strategy:u}=n,h=L.useRef(e),f=b(),m=Bp(f),x=L.useCallback(function(S){S===void 0&&(S=[]),!m.current&&o(A=>A===null?S:A.concat(S.filter(E=>!A.includes(E))))},[m]),v=L.useRef(null),y=Bh(S=>{if(f&&!r)return C3;if(!S||S===C3||h.current!==e||i!=null){const A=new Map;for(let E of e){if(!E)continue;if(i&&i.length>
5320&&!i.includes(E.id)&&E.rect.current){A.set(E.id,E.rect.current);continue}const j=E.node.current,P=j?new dN(c(j),j):null;E.rect.current=P,P&&A.set(E.id,P)}return A}return S},[e,i,r,f,c]);return L.useEffect(()=>{h.current=e},[e]),L.useEffect(()=>{f||x()},[r,f]),L.useEffect(()=>{i&&i.length>0&&o(null)},[JSON.stringify(i)]),L.useEffect(()=>{f||typeof s!="number"||v.current!==null||(v.current=setTimeout(()=>{x(),v.current=null},s))},[s,f,x,...a]),{droppableRects:y,measureDroppableContainers:x,measuringScheduled:i!=null};function b(){switch(u){case zp.Always:return!1;case zp.BeforeDragging:return r;default:return!r}}}function YF(e,t){return Bh(r=>e?r||(typeof t=="function"?t(e):e):null,[t,e])}function Wae(e,t){return YF(e,t)}function Xae(e){let{callback:t,disabled:r}=e;const a=cN(t),n=L.useMemo(()=>{if(r||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(a)},[a,r]);return L.useEffect(()=>()=>n?.disconnect(),[n]),n}function hy(e){let{callback:t,disabled:r}=e;const a=cN(t),n=L.useMemo(()=>{if(r||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(a)},[r]);return L.useEffect(()=>()=>n?.disconnect(),[n]),n}function Yae(e){return new dN(Cd(e),e)}function P3(e,t,r){t===void 0&&(t=Yae);const[a,n]=L.useState(null);function i(){n(c=>{if(!e)return null;if(e.isConnected===!1){var u;return(u=c??r)!=null?u:null}const h=t(e);return JSON.stringify(c)===JSON.stringify(h)?c:h})}const o=Xae({callback(c){if(e)for(const u of c){const{type:h,target:f}=u;if(h==="childList"&&f instanceof HTMLElement&&f.contains(e)){i();break}}}}),s=hy({callback:i});return Di(()=>{i(),e?(s?.observe(e),o?.observe(document.body,{childList:!0,subtree:!0})):(s?.disconnect(),o?.disconnect())},[e]),a}function Zae(e){const t=YF(e);return qF(e,t)}const j3=[];function Jae(e){const t=L.useRef(e),r=Bh(a=>e?a&&a!==j3&&e&&t.current&&e.parentNode===t.current.parentNode?a:dy(e):j3,[e]);return L.useEffect(()=>{t.current=e},[e]),r}function Qae(e){const[t,r]=L.useState(null),a=L.useRef(e),n=L.useCallback(i=>{const o=K1(i.target);o&&r(s=>s?(s.set(o,_C(o)),new Map(s)):null)},[]);return L.useEffect(()=>{const i=a.current;if(e!==i){o(i);const s=e.map(c=>{const u=K1(c);return u?(u.addEventListener("scroll",n,{passive:!0}),[u,_C(u)]):null}).filter(c=>c!=null);r(s.length?new Map(s):null),a.current=e}return()=>{o(e),o(i)};function o(s){s.forEach(c=>{const u=K1(c);u?.removeEventListener("scroll",n)})}},[n,e]),L.useMemo(()=>e.length?t?Array.from(t.values()).reduce((i,o)=>Su(i,o),oi):WF(e):oi,[e,t])}function N3(e,t){t===void 0&&(t=[]);const r=L.useRef(null);return L.useEffect(()=>{r.current=null},t),L.useEffect(()=>{const a=e!==oi;a&&!r.current&&(r.current=e),!a&&r.current&&(r.current=null)},[e]),r.current?Lp(e,r.current):oi}function ene(e){L.useEffect(()=>{if(!uy)return;const t=e.map(r=>{let{sensor:a}=r;return a.setup==null?void 0:a.setup()});return()=>{for(const r of t)r?.()}},e.map(t=>{let{sensor:r}=t;return r}))}function tne(e,t){return L.useMemo(()=>e.reduce((r,a)=>{let{eventName:n,handler:i}=a;return r[n]=o=>{i(o,t)},r},{}),[e,t])}function ZF(e){return L.useMemo(()=>e?Cae(e):null,[e])}const T3=[];function rne(e,t){t===void 0&&(t=Cd);const[r]=e,a=ZF(r?Ga(r):null),[n,i]=L.useState(T3);function o(){i(()=>e.length?e.map(c=>GF(c)?a:new dN(t(c),c)):T3)}const s=hy({callback:o});return Di(()=>{s?.disconnect(),o(),e.forEach(c=>s?.observe(c))},[e]),n}function ane(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Ih(t)?t:e}function nne(e){let{measure:t}=e;const[r,a]=L.useState(null),n=L.useCallback(u=>{for(const{target:h}of u)if(Ih(h)){a(f=>{const m=t(h);return f?{...f,width:m.width,height:m.height}:m});break}},[t]),i=hy({callback:n}),o=L.useCallback(u=>{const h=ane(u);i?.disconnect(),h&&i?.observe(h),a(h?t(h):null)},[t,i]),[s,c]=Ix(o);return L.useMemo(()=>({nodeRef:s,rect:r,setRef:c}),[r,s,c])}const ine=[{sensor:py,options:{}},{sensor:fy,options:{}}],one={current:{}},xx={draggable:{measure:w3},droppable:{measure:w3,strategy:zp.WhileDragging,frequency:OC.Optimized},dragOverlay:{measure:Cd}};class pp extends Map{get(t){var r;return t!=null&&(r=super.get(t))!=null?r:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:r}=t;return!r})}getNodeFor(t){var r,a;return(r=(a=this.get(t))==null?void 0:a.node.current)!=null?r:void 0}}const sne={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new pp,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Bx},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:xx,measureDroppableContainers:Bx,windowRect:null,measuringScheduled:!1},lne={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Bx,draggableNodes:new Map,over:null,measureDroppableContainers:Bx},my=L.createContext(lne),JF=L.createContext(sne);function cne(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new pp}}}function une(e,t){switch(t.type){case Hr.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Hr.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Hr.DragEnd:case Hr.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Hr.RegisterDroppable:{const{element:r}=t,{id:a}
532=r,n=new pp(e.droppable.containers);return n.set(a,r),{...e,droppable:{...e.droppable,containers:n}}}case Hr.SetDroppableDisabled:{const{id:r,key:a,disabled:n}=t,i=e.droppable.containers.get(r);if(!i||a!==i.key)return e;const o=new pp(e.droppable.containers);return o.set(r,{...i,disabled:n}),{...e,droppable:{...e.droppable,containers:o}}}case Hr.UnregisterDroppable:{const{id:r,key:a}=t,n=e.droppable.containers.get(r);if(!n||a!==n.key)return e;const i=new pp(e.droppable.containers);return i.delete(r),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function dne(e){let{disabled:t}=e;const{active:r,activatorEvent:a,draggableNodes:n}=L.useContext(my),i=kC(a),o=kC(r?.id);return L.useEffect(()=>{if(!t&&!a&&i&&o!=null){if(!uN(i)||document.activeElement===i.target)return;const s=n.get(o);if(!s)return;const{activatorNode:c,node:u}=s;if(!c.current&&!u.current)return;requestAnimationFrame(()=>{for(const h of[c.current,u.current]){if(!h)continue;const f=iae(h);if(f){f.focus();break}}})}},[a,t,n,o,i]),null}function fne(e,t){let{transform:r,...a}=t;return e!=null&&e.length?e.reduce((n,i)=>i({transform:n,...a}),r):r}function pne(e){return L.useMemo(()=>({draggable:{...xx.draggable,...e?.draggable},droppable:{...xx.droppable,...e?.droppable},dragOverlay:{...xx.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function hne(e){let{activeNode:t,measure:r,initialRect:a,config:n=!0}=e;const i=L.useRef(!1),{x:o,y:s}=typeof n=="boolean"?{x:n,y:n}:n;Di(()=>
532{if(!o&&!s||!t){i.current=!1;return}if(i.current||!a)return;const u=t?.node.current;if(!u||u.isConnected===!1)return;const h=r(u),f=qF(h,a);if(o||(f.x=0),s||(f.y=0),i.current=!0,Math.abs(f.x)>0||Math.abs(f.y)>0){const m=VF(u);m&&m.scrollBy({top:f.y,left:f.x})}},[t,o,s,a,r])}const QF=L.createContext({...oi,scaleX:1,scaleY:1});var ps;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(ps||(ps={}));const e$=L.memo(function(t){var r,a,n,i;let{id:o,accessibility:s,autoScroll:c=!0,children:u,sensors:h=ine,collisionDetection:f=vae,measuring:m,modifiers:x,...v}=t;const y=L.useReducer(une,void 0,cne),[b,S]=y,[A,E]=dae(),[j,P]=L.useState(ps.Uninitialized),C=j===ps.Initialized,{draggable:{active:N,nodes:O,translate:k},droppable:{containers:B}}=b,$=N!=null?O.get(N):null,_=L.useRef({initial:null,translated:null}),W=L.useMemo(()=>{var $t;return N!=null?{id:N,data:($t=$?.data)!=null?$t:one,rect:_}:null},[N,$]),D=L.useRef(null),[J,z]=L.useState(null),[V,Z]=L.useState(null),te=Bp(v,Object.values(v)),K=Lh("DndDescribedBy",o),q=L.useMemo(()=>B.getEnabled(),[B]),X=pne(m),{droppableRects:U,measureDroppableContainers:ie,measuringScheduled:se}=Kae(q,{dragging:C,dependencies:[k.x,k.y],config:X.droppable}),he=Hae(O,N),Y=L.useMemo(()=>V?DC(V):null,[V]),F=Xt(),ae=Wae(he,X.draggable.measure);hne({activeNode:N!=null?O.get(N):null,config:F.layoutShiftCompensation,initialRect:ae,measure:X.draggable.measure});const ne=P3(he,X.draggable.measure,ae),ge=P3(he?he.parentElement:null),re=L.useRef({activatorEvent:null,active:null,activeNode:he,collisionRect:null,collisions:null,droppableRects:U,draggableNodes:O,draggingNode:null,draggingNodeRect:null,droppableContainers:B,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),oe=B.getNodeFor((r=re.current.over)==null?void 0:r.id),G=nne({measure:X.dragOverlay.measure}),pe=(a=G.nodeRef.current)!=null?a:he,ee=C?(n=G.rect)!=null?n:ne:null,M=!!(G.nodeRef.current&&G.rect),I=Zae(M?null:ne),H=ZF(pe?Ga(pe):null),ce=Jae(C?oe??he:null),fe=rne(ce),ue=fne(x,{transform:{x:k.x-I.x,y:k.y-I.y,scaleX:1,scaleY:1},activatorEvent:V,active:W,activeNodeRect:ne,containerNodeRect:ge,draggingNodeRect:ee,over:re.current.over,overlayNodeRect:G.rect,scrollableAncestors:ce,scrollableAncestorRects:fe,windowRect:H}),we=Y?Su(Y,k):null,Ne=Qae(ce),De=N3(Ne),xe=N3(Ne,[ne]),Ee=Su(ue,De),ze=ee?wae(ee,ue):null,We=W&&ze?f({active:W,collisionRect:ze,droppableRects:U,droppableContainers:q,pointerCoordinates:we}):null,it=FF(We,"id"),[Pt,Jt]=L.useState(null),xt=M?ue:Su(ue,xe),Oe=yae(xt,(i=Pt?.rect)!=null?i:null,ne),ke=L.useRef(null),Ie=L.useCallback(($t,Lt)=>{let{sensor:Je,options:ft}=Lt;if(D.current==null)return;const Ke=O.get(D.current);if(!Ke)return;const ht=$t.nativeEvent,ot=new Je({active:D.current,activeNode:Ke,event:ht,options:ft,context:re,onAbort(zt){if(!O.get(zt))return;const{onDragAbort:hr}=te.current,yr={id:zt};hr?.(yr),A({type:"onDragAbort",event:yr})},onPending(zt,ha,hr,yr){if(!O.get(zt))return;const{onDragPending:aa}=te.current,yn={id:zt,constraint:ha,initialCoordinates:hr,offset:yr};aa?.(yn),A({type:"onDragPending",event:yn})},onStart(zt){const ha=D.current;if(ha==null)return;const hr=O.get(ha);if(!hr)return;const{onDragStart:yr}=te.current,vn={activatorEvent:ht,active:{id:ha,data:hr.data,rect:_}};xs.unstable_batchedUpdates(()=>{yr?.(vn),P(ps.Initializing),S({type:Hr.DragStart,initialCoordinates:zt,active:ha}),A({type:"onDragStart",event:vn}),z(ke.current),Z(ht)})},onMove(zt){S({type:Hr.DragMove,coordinates:zt})},onEnd:Tt(Hr.DragEnd),onCancel:Tt(Hr.DragCancel)});ke.current=ot;function Tt(zt){return async function(){const{active:hr,collisions:yr,over:vn,scrollAdjustedTranslate:aa}=re.current;let yn=null;if(hr&&aa){const{cancelDrop:Bo}=te.current;yn={activatorEvent:ht,active:hr,collisions:yr,delta:aa,over:vn},zt===Hr.DragEnd&&typeof Bo=="function"&&await Promise.resolve(Bo(yn))&&(zt=Hr.DragCancel)}D.current=null,xs.unstable_batchedUpdates(()=>{S({type:zt}),P(ps.Uninitialized),Jt(null),z(null),Z(null),ke.current=null;const Bo=zt===Hr.DragEnd?"onDragEnd":"onDragCancel";if(yn){const bn=te.current[Bo];bn?.(yn),A({type:Bo,event:yn})}})}}},[O]),Pe=L.useCallback(($t,Lt)=>(Je,ft)=>{const Ke=Je.nativeEvent,ht=O.get(ft);if(D.current!==null||!ht||Ke.dndKit||Ke.defaultPrevented)return;const ot={active:ht};$t(Je,Lt.options,ot)===!0&&(Ke.dndKit={capturedBy:Lt.sensor},D.current=ft,Ie(Je,Lt))},[O,Ie]),at=Gae(h,Pe);ene(h),Di(()=>{ne&&j===ps.Initializing&&P(ps.Initialized)},[ne,j]),L.useEffect(()=>{const{onDragMove:$t}=te.current,{active:Lt,activatorEvent:Je,collisions:ft,over:Ke}=re.current;if(!Lt||!Je)return;const ht={active:Lt,activatorEvent:Je,collisions:ft,delta:{x:Ee.x,y:Ee.
532y},over:Ke};xs.unstable_batchedUpdates(()=>{$t?.(ht),A({type:"onDragMove",event:ht})})},[Ee.x,Ee.y]),L.useEffect(()=>{const{active:$t,activatorEvent:Lt,collisions:Je,droppableContainers:ft,scrollAdjustedTranslate:Ke}=re.current;if(!$t||D.current==null||!Lt||!Ke)return;const{onDragOver:ht}=te.current,ot=ft.get(it),Tt=ot&&ot.rect.current?{id:ot.id,rect:ot.rect.current,data:ot.data,disabled:ot.disabled}:null,zt={active:$t,activatorEvent:Lt,collisions:Je,delta:{x:Ke.x,y:Ke.y},over:Tt};xs.unstable_batchedUpdates(()=>{Jt(Tt),ht?.(zt),A({type:"onDragOver",event:zt})})},[it]),Di(()=>{re.current={activatorEvent:V,active:W,activeNode:he,collisionRect:ze,collisions:We,droppableRects:U,draggableNodes:O,draggingNode:pe,draggingNodeRect:ee,droppableContainers:B,over:Pt,scrollableAncestors:ce,scrollAdjustedTranslate:Ee},_.current={initial:ee,translated:ze}},[W,he,We,ze,O,pe,ee,U,B,Pt,ce,Ee]),qae({...F,delta:k,draggingRect:ze,pointerCoordinates:we,scrollableAncestors:ce,scrollableAncestorRects:fe});const Et=L.useMemo(()=>({active:W,activeNode:he,activeNodeRect:ne,activatorEvent:V,collisions:We,containerNodeRect:ge,dragOverlay:G,draggableNodes:O,droppableContainers:B,droppableRects:U,over:Pt,measureDroppableContainers:ie,scrollableAncestors:ce,scrollableAncestorRects:fe,measuringConfiguration:X,measuringScheduled:se,windowRect:H}),[W,he,ne,V,We,ge,G,O,B,U,Pt,ie,ce,fe,X,se,H]),cr=L.useMemo(()=>({activatorEvent:V,activators:at,active:W,activeNodeRect:ne,ariaDescribedById:{draggable:K},dispatch:S,draggableNodes:O,over:Pt,measureDroppableContainers:ie}),[V,at,W,ne,S,K,O,Pt,ie]);return de.createElement(IF.Provider,{value:E},de.createElement(my.Provider,{value:cr},de.createElement(JF.Provider,{value:Et},de.createElement(QF.Provider,{value:Oe},u)),de.createElement(dne,{disabled:s?.restoreFocus===!1})),de.createElement(hae,{...s,hiddenTextDescribedById:K}));function Xt(){const $t=J?.autoScrollEnabled===!1,Lt=typeof c=="object"?c.enabled===!1:c===!1,Je=C&&!$t&&!Lt;return typeof c=="object"?{...c,enabled:Je}:{enabled:Je}}}),mne=L.createContext(null),k3="button",gne="Draggable";function xne(e){let{id:t,data:r,disabled:a=!1,attributes:n}=e;const i=Lh(gne),{activators:o,activatorEvent:s,active:c,activeNodeRect:u,ariaDescribedById:h,draggableNodes:f,over:m}=L.useContext(my),{role:x=k3,roleDescription:v="draggable",tabIndex:y=0}=n??{},b=c?.id===t,S=L.useContext(b?QF:mne),[A,E]=Ix(),[j,P]=Ix(),C=tne(o,t),N=Bp(r);Di(()=>(f.set(t,{id:t,key:i,node:A,activatorNode:j,data:N}),()=>{const k=f.get(t);k&&k.key===i&&f.delete(t)}),[f,t]);const O=L.useMemo(()=>({role:x,tabIndex:y,"aria-disabled":a,"aria-pressed":b&&x===k3?!0:void 0,"aria-roledescription":v,"aria-describedby":h.draggable}),[a,x,y,b,v,h.draggable]);return{active:c,activatorEvent:s,activeNodeRect:u,attributes:O,isDragging:b,listeners:a?void 0:C,node:A,over:m,setNodeRef:E,setActivatorNodeRef:P,transform:S}}function vne(){return L.useContext(JF)}const yne="Droppable",bne={timeout:25};function wne(e){let{data:t,disabled:r=!1,id:a,resizeObserverConfig:n}=e;const i=Lh(yne),{active:o,dispatch:s,over:c,measureDroppableContainers:u}=L.useContext(my),h=L.useRef({disabled:r}),f=L.useRef(!1),m=L.useRef(null),x=L.useRef(null),{disabled:v,updateMeasurementsFor:y,timeout:b}={...bne,...n},S=Bp(y??a),A=L.useCallback(()=>{if(!f.current){f.current=!0;return}x.current!=null&&clearTimeout(x.current),x.current=setTimeout(()=>{u(Array.isArray(S.current)?S.current:[S.current]),x.current=null},b)},[b]),E=hy({callback:A,disabled:v||!o}),j=L.useCallback((O,k)=>{E&&(k&&(E.unobserve(k),f.current=!1),O&&E.observe(O))},[E]),[P,C]=Ix(j),N=Bp(t);return L.useEffect(()=>{!E||!P.current||(E.disconnect(),f.current=!1,E.observe(P.current))},[P,E]),L.useEffect(()=>(s({type:Hr.RegisterDroppable,element:{id:a,key:i,disabled:r,node:P,rect:m,data:N}}),()=>s({type:Hr.UnregisterDroppable,key:i,id:a})),[a]),L.useEffect(()=>{r!==h.current.disabled&&(s({type:Hr.SetDroppableDisabled,id:a,key:i,disabled:r}),h.current.disabled=r)},[a,i,r,s]),{active:o,rect:m,isOver:c?.id===a,node:P,over:c,setNodeRef:C}}function gy(e,t,r){const a=e.slice();return a.splice(r<0?a.length+r:r,0,a.splice(t,1)[0]),a}function Sne(e,t){return e.reduce((r,a,n)=>{const i=t.get(a);return i&&(r[n]=i),r},Array(e.length))}function _g(e){return e!==null&&e>=0}function Ene(e,t){if(e===t)return!0;
532if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function Ane(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const t$=e=>{let{rects:t,activeIndex:r,overIndex:a,index:n}=e;const i=gy(t,a,r),o=t[n],s=i[n];return!s||!o?null:{x:s.left-o.left,y:s.top-o.top,scaleX:s.width/o.width,scaleY:s.height/o.height}},Rg={scaleX:1,scaleY:1},r$=e=>{var t;let{activeIndex:r,activeNodeRect:a,index:n,rects:i,overIndex:o}=e;const s=(t=i[r])!=null?t:a;if(!s)return null;if(n===r){const u=i[o];return u?{x:0,y:r<o?u.top+u.height-(s.top+s.height):u.top-s.top,...Rg}:null}const c=Cne(i,n,r);return n>r&&n<=o?{x:0,y:-s.height-c,...Rg}:n<r&&n>=o?{x:0,y:s.height+c,...Rg}:{x:0,y:0,...Rg}};function Cne(e,t,r){const a=e[t],n=e[t-1],i=e[t+1];return a?r<t?n?a.top-(n.top+n.height):i?i.top-(a.top+a.height):0:i?i.top-(a.top+a.height):n?a.top-(n.top+n.height):0:0}const a$="Sortable",n$=de.createContext({activeIndex:-1,containerId:a$,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:t$,disabled:{draggable:!1,droppable:!1}});function i$(e){let{children:t,id:r,items:a,strategy:n=t$,disabled:i=!1}=e;const{active:o,dragOverlay:s,droppableRects:c,over:u,measureDroppableContainers:h}=vne(),f=Lh(a$,r),m=s.rect!==null,x=L.useMemo(()=>a.map(C=>typeof C=="object"&&"id"in C?C.id:C),[a]),v=o!=null,y=o?x.indexOf(o.id):-1,b=u?x.indexOf(u.id):-1,S=L.useRef(x),A=!Ene(x,S.current),E=b!==-1&&y===-1||A,j=Ane(i);Di(()=>{A&&v&&h(x)},[A,x,v,h]),L.useEffect(()=>{S.current=x},[x]);const P=L.useMemo(()=>({activeIndex:y,containerId:f,disabled:j,disableTransforms:E,items:x,overIndex:b,useDragOverlay:m,sortedRects:Sne(x,c),strategy:n}),[y,f,j.draggable,j.droppable,E,x,b,c,m,n]);return de.createElement(n$.Provider,{value:P},t)}const Pne=e=>{let{id:t,items:r,activeIndex:a,overIndex:n}=e;return gy(r,a,n).indexOf(t)},jne=e=>{let{containerId:t,isSorting:r,wasDragging:a,index:n,items:i,newIndex:o,previousItems:s,previousContainerId:c,transition:u}=e;return!u||!a||s!==i&&n===o?!1:r?!0:o!==n&&t===c},Nne={duration:200,easing:"ease"},o$="transform",Tne=Mu.Transition.toString({property:o$,duration:0,easing:"linear"}),kne={roleDescription:"sortable"};function Dne(e){let{disabled:t,index:r,node:a,rect:n}=e;const[i,o]=L.useState(null),s=L.useRef(r);return Di(()=>{if(!t&&r!==s.current&&a.current){const c=n.current;if(c){const u=Cd(a.current,{ignoreTransform:!0}),h={x:c.left-u.left,y:c.top-u.top,scaleX:c.width/u.width,scaleY:c.height/u.height};(h.x||h.y)&&o(h)}}r!==s.current&&(s.current=r)},[t,r,a,n]),L.useEffect(()=>{i&&o(null)},[i]),i}function s$(e){let{animateLayoutChanges:t=jne,attributes:r,disabled:a,data:n,getNewIndex:i=Pne,id:o,strategy:s,resizeObserverConfig:c,transition:u=Nne}=e;const{items:h,containerId:f,activeIndex:m,disabled:x,disableTransforms:v,sortedRects:y,overIndex:b,useDragOverlay:S,strategy:A}=L.useContext(n$),E=_ne(a,x),j=h.indexOf(o),P=L.useMemo(()=>({sortable:{containerId:f,index:j,items:h},...n}),[f,n,j,h]),C=L.useMemo(()=>h.slice(h.indexOf(o)),[h,o]),{rect:N,node:O,isOver:k,setNodeRef:B}=wne({id:o,data:P,disabled:E.droppable,resizeObserverConfig:{updateMeasurementsFor:C,...c}}),{active:$,activatorEvent:_,activeNodeRect:W,attributes:D,setNodeRef:J,listeners:z,isDragging:V,over:Z,setActivatorNodeRef:te,transform:K}=xne({id:o,data:P,attributes:{...kne,...r},disabled:E.draggable}),q=tae(B,J),X=!!$,U=X&&!v&&_g(m)&&_g(b),ie=!S&&V,se=ie&&U?K:null,Y=U?se??(s??A)({rects:y,activeNodeRect:W,activeIndex:m,overIndex:b,index:j}):null,F=_g(m)&&_g(b)?i({id:o,items:h,activeIndex:m,overIndex:b}):j,ae=$?.id,ne=L.useRef({activeId:ae,items:h,newIndex:F,containerId:f}),ge=h!==ne.current.items,re=t({active:$,containerId:f,isDragging:V,isSorting:X,id:o,index:j,items:h,newIndex:ne.current.newIndex,previousItems:ne.current.items,previousContainerId:ne.current.containerId,transition:u,wasDragging:ne.current.activeId!=null}),oe=Dne({disabled:!re,index:j,node:O,rect:N});return L.useEffect(()=>{X&&ne.current.newIndex!==F&&(ne.current.newIndex=F),f!==ne.current.containerId&&(ne.current.containerId=f),h!==ne.current.items&&(ne.current.items=h)},[X,F,f,h]),L.useEffect(()=>{if(ae===ne.current.activeId)return;if(ae!=null&&ne.current.activeId==null){ne.current.activeId=ae;return}const pe=setTimeout(()=>{ne.current.activeId=ae},50);return()=>clearTimeout(pe)},[ae]),{active:$,activeIndex:m,attributes:D,data:P,rect:N,index:j,newIndex:F,items:h,isOver:k,isSorting:X,isDragging:V,listeners:z,node:O,overIndex:b,over:Z,setNodeRef:q,setActivatorNodeRef:te,setDroppableNodeRef:B,setDraggableNodeRef:J,transform:oe??Y,transition:G()};function G(){if(oe||ge&&ne.current.newIndex===j)return Tne;if(!(ie&&!uN(_)||!u)&&(X||re))return Mu.Transition.toString({...u,property:o$})}}function _ne(e,t){var r,a;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(r=e?.draggable)!=null?r:t.draggable,droppable:(a=e?.droppable)!=null?a:t.droppable}}function Fx(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const Rne=[Bt.Down,Bt.Right,Bt.Up,Bt.Left],l$=(e,t)=>{let{context:{active:r,collisionRect:a,droppableRects:n,droppableContainers:i,over:o,scrollableAncestors:s}}=t;if(Rne.includes(e.code)){if(e.preventDefault(),!r||!a)return;const c=[];
vendor: 3,835 bytes, lines 532-546
532i.getEnabled().forEach(f=>{if(!f||f!=null&&f.disabled)return;const m=n.get(f.id);if(m)switch(e.code){case Bt.Down:a.top<m.top&&c.push(f);break;case Bt.Up:a.top>m.top&&c.push(f);break;case Bt.Left:a.left>m.left&&c.push(f);break;case Bt.Right:a.left<m.left&&c.push(f);break}});const u=gae({collisionRect:a,droppableRects:n,droppableContainers:c});let h=FF(u,"id");if(h===o?.id&&u.length>1&&(h=u[1].id),h!=null){const f=i.get(r.id),m=i.get(h),x=m?n.get(m.id):null,v=m?.node.current;if(v&&x&&f&&m){const b=dy(v).some((C,N)=>s[N]!==C),S=c$(f,m),A=One(f,m),E=b||!S?{x:0,y:0}:{x:A?a.width-x.width:0,y:A?a.height-x.height:0},j={x:x.left,y:x.top};return E.x&&E.y?j:Lp(j,E)}}}};function c$(e,t){return!Fx(e)||!Fx(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function One(e,t){return!Fx(e)||!Fx(t)||!c$(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}const Mne={municipioId:"itaperuna",municipioNome:"Itaperuna",estado:"RJ",tipoPPP:"Iluminação Pública e Serviços Digitais",banco:"Caixa Econômica Federal",versao:"1.2",dataElaboracao:"Fevereiro de 2026",referenciaContratual:"Contrato n.º 06983/2025 â Autorização de Serviço n° 014_2025 â IP+SD 101 Porte 1A",secoes:[{id:"introducao",titulo:"Introdução e Contexto do Projeto",subtitulo:"Escopo, contrato e partes envolvidas",parte:"conceitual",statusIA:"aprovado",conteudo:`Este documento apresenta o Plano de Comunicação e Engajamento de Stakeholders relativo à estruturação do Projeto de Parceria Público-Privada (PPP) para gestão, modernização, ampliação, operação e manutenção da infraestrutura de iluminação pública e serviços digitais no MunicÃpio de Itaperuna/RJ. 533 534Referência contratual: Contrato n.º 06983/2025 â Autorização de Serviço n° 014_2025 â IP+SD 101 Porte 1A â Itaperuna/RJ, celebrado entre a Caixa Econômica Federal e o Consórcio Moysés & Pires, Andrax e Tecnia. 535 536A concessão envolve a articulação e o engajamento de diversos atores â poder público, sociedade civil organizada, órgãos de controle, imprensa, entre outros â com perspectivas e interesses especÃficos, alguns dos quais podem representar riscos à implementação do Projeto. 537 538Este Plano estrutura as ações de comunicação social, prevendo estratégias, narrativas, canais e materiais de apoio adaptados a cada público de interesse. Seu propósito central é assegurar transparência, fortalecer relações baseadas no diálogo e atender à s necessidades de informação dos diferentes stakeholders envolvidos. 539 540Sua execução será conduzida em parceria com o ente público, de modo a garantir o engajamento de todas as partes envolvidas, o acesso a informações oficiais, o alinhamento de responsabilidades e a participação ativa das equipes responsáveis pela tomada de decisão, suporte jurÃdico, condução do processo licitatório e demais instâncias pertinentes.`},{id:"objetivos",titulo:"Objetivos do Plano de Comunicação",subtitulo:"Objetivo geral, especÃficos e resultados esperados",parte:"conceitual",statusIA:"aprovado",conteudo:`OBJETIVO GERAL 541Assegurar clareza, transparência e efetividade no processo de comunicação relacionado à PPP de Iluminação Pública e Serviços Digitais de Itaperuna, garantindo engajamento de todas as partes interessadas e acesso a informações oficiais ao longo de todas as etapas do Projeto. 542 543OBJETIVOS ESPECÃFICOS 5441. Assegurar transparência e divulgação ampla do Projeto, destacando seus benefÃcios sociais, econômicos e ambientais, bem como os impactos associados. 5452. Atender à s necessidades de informação e comunicação dos stakeholders e da sociedade, garantindo clareza, precisão, além de espaços de participação e manifestação. 5463. Planejar e executar estratégias integradas de comunicação e engajamento, em al
546inhamento com o ente público, assegurando coerência entre a comunicação institucional e a execução técnica do Projeto. 5474. Estabelecer canais de comunicação, de modo a informar adequadamente os públicos, identificar e esclarecer suas dúvidas e demandas, com procedimentos claros de análise e retorno. 5485. Fortalecer a imagem e o posicionamento do Projeto, promovendo uma visão positiva da iniciativa e engajando públicos internos e externos para apoiar a mudança. 5496. Construir narrativas consistentes e mensagens-chave, transmitidas no momento e formato adequados, para evitar ruÃdos e garantir compreensão ampla ao longo de todas as etapas. 5507. Minimizar resistências, prevenir conflitos e levantar dificuldades nas relações entre ente público e partes interessadas envolvidas. 551 552RESULTADOS ESPERADOS 553⸠Aprovação polÃtica: garantir apoio da Câmara de Vereadores à s medidas jurÃdicas necessárias. 554⸠Reconhecimento público: ampliar a visibilidade do Projeto e de seus benefÃcios na mÃdia local. 555⸠Atração de investimentos: estimular o interesse de investidores qualificados no processo licitatório.`},{id:"metodologia",titulo:"Metodologia: Casa de Mensagem",subtitulo:"Fundação, pilares e telhado â estrutura narrativa do projeto",parte:"conceitual",statusIA:"aprovado",conteudo:`A metodologia adotada pela PRINT Comunicação é a Casa de Mensagem, estrutura narrativa que organiza a comunicação em três nÃveis: 556 557FUNDAÃÃO â A Verdade do Projeto 558"Itaperuna vai modernizar sua iluminação pública com tecnologia LED e serviços digitais, por meio de uma Parceria Público-Privada estruturada pela Caixa Econômica Federal, sem custo adicional para o cidadão." 559 560PILARES â Os Argumentos de Sustentação 561⸠Pilar 1 â Eficiência: Redução de até 70% no consumo de energia elétrica com LED de alta performance. 562⸠Pilar 2 â Segurança: Mais luz nas ruas significa menos acidentes e mais segurança para pedestres e motoristas. 563⸠Pilar 3 â Modernidade: Telegestão inteligente, câmeras de monitoramento e Wi-Fi público â Itaperuna na vanguarda das cidades inteligentes. 564⸠Pilar 4 â Responsabilidade Fiscal: A PPP transfere o risco de investimento para o setor privado, preservando o orçamento municipal para saúde, educação e assistência social. 565 566TELHADO â A Visão de Futuro 567"Uma Itaperuna mais segura, mais moderna e mais sustentável para as próximas gerações." 568 569PREMISSAS DE COMUNICAÃÃO 570⸠Toda comunicação deve ser validada pela Caixa Econômica Federal antes da divulgação. 571⸠O Prefeito Alfredo Rodrigues é o porta-voz principal do projeto junto à população. 572⸠A narrativa de "privatização" deve ser antecipada e desconstruÃda em todas as frentes. 573⸠A imprensa local (Folha da Manhã, Rádio Itaperuna FM) deve ser ativada como aliada, não como risco.`},{id:"diagnostico",titulo:"Diagnóstico do MunicÃpio",subtitulo:"Perfil socioeconômico, polÃtico e análise SWOT",parte:"conceitual",statusIA:"aprovado",conteudo:`PERFIL SOCIOECONÃMICO 574Itaperuna é o principal municÃpio do noroeste fluminense, com população estimada de 107.000 habitantes (IBGE 2024). Polo regional de saúde, educação e comércio, concentra serviços para mais de 15 municÃpios vizinores. PIB per capita de R$ 28.400 (2021), IDH-M de 0,754. 575 576PERFIL POLÃTICO 577Prefeito: Alfredo Rodrigues (PSD), reeleito em outubro de 2024. 578Câmara Municipal: 21 vereadores â 14 da base governista, 7 de oposição. 579Presidente da Câmara: Eduardo do Toldo (oposição â risco alto). 580Vereador de risco: Eduardo do Toldo tende a usar o projeto como pauta de oposição. 581 582ANÃLISE SWOT â COMUNICAÃÃO 583 584PONTOS FORTES 585⸠Prefeito reeleito com capital polÃtico alto no inÃcio do mandato. 586⸠Maioria legislativa de 14/21 vereadores. 587⸠Caixa Econômica Federal como estruturadora (credibilidade institucional). 588⸠MunicÃpio polo regional â visibilidade e influência sobre municÃpios vizinhos. 589 590PONTOS FRACOS 591⸠Câmara com oposição organizada (7 vereadores) e presidente da Câmara na oposição. 592⸠Histórico de projetos de infraestrutura com atrasos na região. 593⸠Baixo engajamento digital da Prefeitura (redes sociais irregulares). 594 595OPORTUNIDADES 596⸠Movimento nacional de PPPs de IP em ascensão â benchmarking positivo disponÃvel. 597⸠Janela polÃtica favorável (eleições municipais apenas em 2028). 598⸠Interesse de investidores no setor de cidades inteligentes. 599 600AMEAÃAS 601⸠Narrativa de "privatização" amplificada pela oposição. 602⸠Eduardo do Toldo como presidente da Câmara â pode pautar sessões contrárias ao projeto. 603⸠Desinformação em grupos de WhatsApp. 604⸠TCE-RJ como instância de controle com histórico de questionamentos a PPPs.`},{id:"stakeholders",titulo:"Mapeamento de Stakeholders",subtitulo:"Identificação, classificação e estratég
604ia por público",parte:"estrategica",statusIA:"aprovado",conteudo:`METODOLOGIA DE MAPEAMENTO 605Stakeholders foram classificados por: NÃvel de Poder (Alto/Médio/Baixo), NÃvel de Interesse (Alto/Médio/Baixo) e Posicionamento (Apoiador/Neutro/Resistente). 606 607EXECUTIVO MUNICIPAL 608⸠Prefeito Alfredo Rodrigues (PSD) â Poder: Alto | Interesse: Alto | Posicionamento: Apoiador 609 Estratégia: Porta-voz principal. Preparar para entrevistas, audiência pública e reuniões com vereadores. 610⸠Secretaria de Obras e Infraestrutura â Poder: Médio | Interesse: Alto | Posicionamento: Apoiador 611 Estratégia: Equipe técnica de suporte. Briefings mensais sobre andamento do projeto. 612 613LEGISLATIVO 614⸠Eduardo do Toldo (Presidente da Câmara â Oposição) â Poder: Alto | Interesse: Alto | Posicionamento: Resistente 615 Estratégia: Reunião bilateral antes da audiência pública. Apresentar dados técnicos e fiscais. Antecipar suas objeções. 616⸠Vereadores da base (14) â Poder: Médio | Interesse: Médio | Posicionamento: Apoiador 617 Estratégia: Reunião coletiva de briefing. Material de apoio para responder perguntas dos eleitores. 618⸠Vereadores de oposição (6) â Poder: Médio | Interesse: Alto | Posicionamento: Resistente 619 Estratégia: Transparência máxima. Envio de documentos técnicos. Não ignorar â monitorar manifestações públicas. 620 621ÃRGÃOS DE CONTROLE 622⸠TCE-RJ â Poder: Alto | Interesse: Médio | Posicionamento: Neutro 623 Estratégia: Documentação rigorosa de todo o processo. Consulta prévia informal se possÃvel. 624⸠Ministério Público Estadual â Poder: Alto | Interesse: Baixo | Posicionamento: Neutro 625 Estratégia: Manter informado sobre o processo licitatório. Não ignorar. 626 627IMPRENSA LOCAL 628⸠Folha da Manhã (impresso + digital) â Poder: Médio | Interesse: Alto | Posicionamento: Neutro 629 Estratégia: Relacionamento proativo. Releases exclusivos. Entrevista com prefeito antes da audiência pública. 630⸠Rádio Itaperuna FM â Poder: Médio | Interesse: Médio | Posicionamento: Neutro 631 Estratégia: Entrevista ao vivo com prefeito. Spot de rádio explicando o projeto. 632 633SOCIEDADE CIVIL 634⸠ACII (Associação Comercial) â Poder: Médio | Interesse: Alto | Posicionamento: Apoiador 635 Estratégia: Apresentação do projeto focada em benefÃcios para o comércio (segurança, modernidade, turismo). 636⸠Sindicatos e entidades de classe â Poder: Baixo | Interesse: Médio | Posicionamento: Neutro 637 Estratégia: Informar sobre o escopo da concessão. Deixar claro que não há demissão de servidores.`},{id:"cronograma",titulo:"Plano de Ação e Cronograma",subtitulo:"Fases 1 a 4 â Do kick-off ao leilão",parte:"operacional",statusIA:"aprovado",conteudo:`FASE 1 â ESTRUTURAÃÃO E KICK-OFF (MarâAbr 2026) 638⸠Reunião de kick-off com equipe da Caixa, Moysés & Pires e Prefeitura. 639⸠Elaboração do Plano de Comunicação (este documento) â produto obrigatório Bloco 1.2. 640⸠Mapeamento e validação da Matriz de Stakeholders. 641⸠Criação da identidade visual do projeto (logo, paleta, tipografia). 642⸠Briefing interno para a equipe da Prefeitura. 643⸠Reunião bilateral com Eduardo do Toldo (presidente da Câmara). 644 645FASE 2 â ENGAJAMENTO PRÃ-CONSULTA (AbrâMai 2026) 646⸠Reuniões com vereadores da base (coletiva) e de oposição (individuais). 647⸠Reunião com ACII e entidades empresariais. 648⸠Produção de vÃdeo institucional explicativo (2â3 min). 649⸠Criação do hotsite do projeto (obrigatório â mÃnimo 15 dias antes da escuta social). 650⸠Publicação nas redes sociais da Prefeitura (cronograma semanal). 651⸠MÃdia training com o Prefeito e Secretário de Obras. 652 653FASE 3 â CONSULTA E AUDIÃNCIA PÃBLICA (MaiâJul 2026) 654⸠Abertura da escuta social online (30 dias mÃnimos). 655⸠Boletim especial de escuta social distribuÃdo nos bairros. 656⸠Reuniões comunitárias de pré-audiência (mÃnimo 3 bairros). 657⸠Release de convocação para audiência pública (30 dias de antecedência). 658⸠Audiência pública presencial + transmissão ao vivo + intérprete de LIBRAS. 659⸠Relatório de contribuições entregue formalmente à Caixa. 660 661FASE 4 â PÃS-AUDIÃNCIA ATà O LEILÃO (JulâDez 2026) 662⸠Nota de resposta à s contribuições da audiência pública (até 15 dias após). 663⸠Publicações mensais de atualização do projeto nas redes sociais. 664⸠Canal exclusivo para a imprensa local (releases mensais). 665⸠Gestão de impugnações ao edital (nota de resposta em até 24h). 666⸠Kit de imprensa completo pronto 30 dias antes do leilão. 667⸠Cobertura ao vivo do leilão nas redes sociais da Prefeitura. 668⸠Nota de resultado distribuÃda em até 2 horas após o pregão.`},{id:"monitoramento",titulo:"Monitoramento e Indicadores",subtitulo:"KPIs, métricas e gestão de crises",parte:"operacional",statusIA:"gerado",conteudo:`INDICADORES DE MONITORAMENTO 669 670Alcance Digital 671⸠Crescimento de seguidores nas redes sociais da Prefeitura: meta +20% no perÃodo. 672⸠Visualizações do vÃdeo institucional: meta 5.000 views em 30 dias. 673⸠Acessos ao hotsite: meta 1.000 visitas únicas no perÃodo de escuta social. 674 675Engajamento PolÃtico 676⸠Reuniões realizadas com vereadores: meta 100% dos 21 vereadores contatados. 677⸠Aprovação legislativa das medidas necessárias: meta sem votos contrários da base. 678 679Imprensa
680⸠Publicações na Folha da Manhã: meta mÃnimo 4 matérias positivas no perÃodo. 681⸠Entrevistas na Rádio Itaperuna FM: meta mÃnimo 2 entrevistas com o prefeito. 682 683Escuta Social 684⸠Participantes na audiência pública: meta mÃnimo 100 presentes. 685⸠Contribuições recebidas: todas respondidas em até 15 dias. 686 687GESTÃO DE CRISES 688⸠Protocolo de resposta: qualquer crise de comunicação deve ser respondida em até 4 horas. 689⸠Porta-voz único: apenas o Prefeito ou o Secretário de Obras falam pelo projeto. 690⸠Monitoramento diário: Google Alerts, redes sociais e grupos de WhatsApp monitorados. 691⸠Cenários mapeados: narrativa de privatização, questionamento do TCE-RJ, mobilização da oposição.`}]},Ine={municipioId:"sao-bento-do-sul",municipioNome:"São Bento do Sul",estado:"SC",tipoPPP:"Iluminação Pública e Cidades Inteligentes",banco:"BRDE",versao:"2.0 â ConcluÃdo",dataElaboracao:"Novembro de 2025",referenciaContratual:"Edital BRDE â Lote SC-01 â São Bento do Sul/SC â Concessão Administrativa IP+CI",secoes:[{id:"introducao",titulo:"Introdução e Contexto do Projeto",subtitulo:"Escopo, contrato BRDE e partes envolvidas",parte:"conceitual",statusIA:"aprovado",conteudo:`O Plano de Comunicação e Engajamento de Stakeholders de São Bento do Sul foi elaborado no âmbito da estruturação da PPP de Iluminação Pública e Cidades Inteligentes do municÃpio, com estruturação pelo BRDE â Banco Regional de Desenvolvimento do Extremo Sul. 692 693São Bento do Sul é um municÃpio do Planalto Norte Catarinense com forte vocação industrial, especialmente no setor moveleiro. A PPP de Iluminação Pública foi concebida como parte de uma estratégia maior de modernização urbana, incorporando soluções de cidades inteligentes como telegestão, câmeras de monitoramento e Wi-Fi público. 694 695O projeto foi concluÃdo com sucesso, com audiência pública realizada em dezembro de 2025 e leilão previsto para o primeiro semestre de 2026. São Bento do Sul tornou-se referência nacional para PPPs de IP com componente de cidades inteligentes, sendo citado como benchmark pelo BRDE em novos projetos â incluindo Rio Negrinho/SC. 696 697Este plano serve como modelo metodológico para projetos similares estruturados pelo BRDE em municÃpios de Santa Catarina e do Sul do Brasil.`},{id:"objetivos",titulo:"Objetivos do Plano de Comunicação",subtitulo:"Objetivo geral, especÃficos e resultados alcançados",parte:"conceitual",statusIA:"aprovado",conteudo:`OBJETIVO GERAL 698Assegurar transparência, engajamento e legitimidade social ao processo de estruturação e licitação da PPP de Iluminação Pública e Cidades Inteligentes de São Bento do Sul, garantindo apoio polÃtico, aceitação pública e participação ativa na consulta e audiência pública. 699 700OBJETIVOS ESPECÃFICOS 7011. Construir narrativa positiva sobre a PPP, dissociando-a da percepção de "privatização" do serviço público. 7022. Engajar os 13 vereadores da Câmara Municipal, garantindo aprovação das medidas legislativas necessárias. 7033. Mobilizar entidades empresariais (ACISBS, CDL) como aliadas e multiplicadoras da mensagem. 7044. Garantir participação qualificada na audiência pública, com presença de representantes de todos os grupos de stakeholders. 7055. Cumprir integralmente as obrigações de comunicação previstas no TR do BRDE (Atividade 1.2). 706 707RESULTADOS ALCANÃADOS 708⸠Audiência pública realizada com mais de 150 participantes presentes. 709⸠Aprovação unânime da Câmara Municipal das medidas legislativas necessárias. 710⸠Zero matérias negativas na imprensa local durante todo o processo. 711⸠Hotsite do projeto com mais de 2.000 acessos únicos no perÃodo de escuta social. 712⸠Projeto citado como referência nacional pelo BRDE em apresentações institucionais.`},{id:"metodologia",titulo:"Metodologia: Casa de Mensagem",subtitulo:"Fundação, pilares e telhado â estrutura narrativa do projeto",parte:"conceitual",statusIA:"aprovado",conteudo:`FUNDAÃÃO â A Verdade do Projeto 713"São Bento do Sul vai modernizar toda a sua iluminação pública com tecnologia LED e soluções de cidade inteligente, por meio de uma Parceria Público-Privada estruturada pelo BRDE, sem custo adicional para o cidadão." 714 715PILARES â Os Argumentos de Sustentação 716⸠Pilar 1 â Eficiência Energética: Redução de até 70% no consumo de energia com LED de alta performance. Economia que retorna ao municÃpio em forma de serviços. 717⸠Pilar 2 â Segurança Pública: Iluminação de qualidade reduz acidentes e aumenta a sensação de segurança nas ruas. 718⸠Pilar 3 â Cidades Inteligentes: São Bento do Sul na vanguarda â telegestão, câmeras, Wi-Fi público e painéis informativos digitais. 719⸠Pilar 4 â Responsabilidade Fiscal: Investimento privado preserva o orçamento municipal para saúde, educação e assistência social. 720 721TELHADO â A Visão de Futuro 722"São Bento do Sul: uma cidade mais segura, mais moderna e mais sustentável, referência no Sul do Brasil." 723 724DIFERENCIAL NARRATIVO DE SBS 725São Bento do Sul tem uma identidade industrial forte e uma população com alto nÃvel de escolaridade e renda. A comunicação foi calibrada para um público mais exigente tecnicamente, com uso de dados e c
725omparativos internacionais, em vez de apenas apelos emocionais.`},{id:"diagnostico",titulo:"Diagnóstico do MunicÃpio",subtitulo:"Perfil socioeconômico, polÃtico e análise SWOT",parte:"conceitual",statusIA:"aprovado",conteudo:`PERFIL SOCIOECONÃMICO 726São Bento do Sul é um municÃpio do Planalto Norte Catarinense com população de 87.000 habitantes (IBGE 2024). Reconhecido como um dos maiores polos moveleiros do Brasil, com forte presença de indústrias de médio e grande porte. PIB per capita de R$ 45.800 (2021), IDH-M de 0,792 â um dos mais altos de SC. 727 728PERFIL POLÃTICO 729Prefeito: André Bornhausen (PL), eleito em outubro de 2024. 730Câmara Municipal: 13 vereadores â maioria alinhada ao prefeito. 731Ambiente polÃtico favorável: prefeito no inÃcio do mandato, sem pressão eleitoral imediata. 732 733ANÃLISE SWOT â COMUNICAÃÃO 734 735PONTOS FORTES 736⸠MunicÃpio com alta renda e escolaridade â público mais receptivo a argumentos técnicos. 737⸠Forte identidade industrial â PPP como extensão natural da cultura de eficiência empresarial. 738⸠Câmara com maioria governista â aprovação legislativa sem riscos. 739⸠BRDE como estruturador â banco público regional com credibilidade em SC. 740 741PONTOS FRACOS 742⸠Forte presença sindical no setor industrial â risco de narrativa sobre "terceirização". 743⸠Imprensa local com poucos veÃculos â menor capilaridade de comunicação. 744 745OPORTUNIDADES 746⸠Ser o primeiro municÃpio de SC com PPP de IP + Cidades Inteligentes â posicionamento de vanguarda. 747⸠Benchmarking com municÃpios europeus (Alemanha, PaÃses Baixos) que já modernizaram IP via PPP. 748⸠Potencial de atrair novos investimentos industriais com a modernização urbana. 749 750AMEAÃAS 751⸠Narrativa de privatização em grupos de WhatsApp. 752⸠PossÃvel questionamento do TCE-SC sobre o processo licitatório. 753⸠Resistência de servidores da área de manutenção de IP.`},{id:"stakeholders",titulo:"Mapeamento de Stakeholders",subtitulo:"Identificação, classificação e estratégia por público",parte:"estrategica",statusIA:"aprovado",conteudo:`EXECUTIVO MUNICIPAL 754⸠Prefeito André Bornhausen (PL) â Poder: Alto | Interesse: Alto | Posicionamento: Apoiador 755 Estratégia: Porta-voz principal. Participação ativa na audiência pública e em entrevistas à imprensa. 756⸠Secretaria de Infraestrutura e Obras â Poder: Médio | Interesse: Alto | Posicionamento: Apoiador 757 Estratégia: Equipe técnica de suporte. Responsável pela interface com a concessionária. 758 759LEGISLATIVO 760⸠Câmara Municipal (13 vereadores) â Poder: Alto | Interesse: Médio | Posicionamento: Apoiador (maioria) 761 Estratégia: Reunião coletiva de briefing antes da escuta social. Material de apoio para responder eleitores. 762 763SETOR EMPRESARIAL 764⸠ACISBS (Associação Comercial) â Poder: Alto | Interesse: Alto | Posicionamento: Apoiador 765 Estratégia: Apresentação focada em benefÃcios para o comércio e a indústria. Convidar para a audiência pública. 766⸠CDL São Bento do Sul â Poder: Médio | Interesse: Alto | Posicionamento: Apoiador 767 Estratégia: Parceria para divulgação do projeto entre os associados. 768⸠FIESC (Federação das Indústrias de SC) â Poder: Alto | Interesse: Médio | Posicionamento: Neutro 769 Estratégia: Briefing executivo focado em eficiência energética e competitividade industrial. 770 771IMPRENSA LOCAL 772⸠Jornal A Gazeta (impresso + digital) â Poder: Médio | Interesse: Alto | Posicionamento: Neutro 773 Estratégia: Releases exclusivos. Entrevista com prefeito antes da audiência pública. 774⸠Rádio local â Poder: Baixo | Interesse: Médio | Posicionamento: Neutro 775 Estratégia: Entrevista ao vivo com prefeito. Spot explicativo do projeto. 776 777SOCIEDADE CIVIL 778⸠Associações de bairro â Poder: Baixo | Interesse: Alto | Posicionamento: Neutro 779 Estratégia: Reuniões comunitárias de pré-audiência. Material explicativo em linguagem acessÃvel. 780⸠SINTRASEM (Sindicato dos Servidores) â Poder: Médio | Interesse: Alto | Posicionamento: Resistente 781 Estratégia: Reunião bilateral. Deixar claro que não há demissão de servidores no escopo da concessão.`},{id:"cronograma",titulo:"Plano de Ação e Cronograma",subtitulo:"Fases 1 a 4 â Do kick-off ao leilão (CONCLUÃDO)",parte:"operacional",statusIA:"aprovado",conteudo:`FASE 1 â ESTRUTURAÃÃO E KICK-OFF (SetâOut 2025) â CONCLUÃDA 782⸠Reunião de kick-off com equipe BRDE e Prefeitura. â 783⸠Elaboração do Plano de Comunicação. â 784⸠Mapeamento e validação da Matriz de Stakeholders. â 785⸠Criação da identidade visual do projeto. â 786⸠Briefing interno para a equipe da Prefeitura. â 787 788FASE 2 â ENGAJAMENTO PRÃ-CONSULTA (OutâNov 2025) â CONCLUÃDA 789⸠Reuniões com vereadores (coletiva + individuais). â
790⸠Reunião com ACISBS, CDL e FIESC. â 791⸠Produção de vÃdeo institucional. â 792⸠Criação e publicação do hotsite do projeto. â 793⸠MÃdia training com o Prefeito. â 794 795FASE 3 â CONSULTA E AUDIÃNCIA PÃBLICA (NovâDez 2025) â CONCLUÃDA 796⸠Escuta social online (30 dias). â 797⸠Reuniões comunitárias de pré-audiência (3 bairros). â 798⸠Audiência pública presencial + transmissão ao vivo + LIBRAS. â 799⸠Mais de 150 participantes presentes. â 800⸠Relatório de contribuições entregue ao BRDE. â 801 802FASE 4 â PÃS-AUDIÃNCIA ATà O LEILÃO (JanâJun 2026) EM ANDAMENTO 803⸠Nota de resposta à s contribuições publicada. â 804⸠Publicações mensais de atualização. â 805⸠Leilão previsto para o primeiro semestre de 2026.`}]},Bne={municipioId:"itanhaem",municipioNome:"Itanhaém",estado:"SP",tipoPPP:"Educação Infantil â Concessão de Suporte à Infraestrutura Escolar (UEI)",banco:"Caixa Econômica Federal (FEP)",versao:"2.0",dataElaboracao:"Abril de 2026",referenciaContratual:"Apensado I do TR Geral â Modelagem e Estruturação de Concessão â UEI â Caixa Econômica Federal / FEP â Porte 1 (EI 101) â R$ 2.525.062,40",secoes:[{id:"introducao",titulo:"Apresentação e Contexto Institucional",subtitulo:"TR da Caixa, escopo da concessão e arranjo institucional",parte:"conceitual",statusIA:"gerado",conteudo:`O presente Plano de Comunicação e Engajamento de Stakeholders foi elaborado em atendimento ao Bloco 1.2 do Apensado I do Termo de Referência Geral da Caixa Econômica Federal, que determina a elaboração de um Plano de Comunicação, Engajamento e Integração das partes interessadas como produto obrigatório da Etapa 1 da estruturação da concessão. 806 807O projeto enquadra-se como Porte 1 (EI 101), destinado à estruturação completa de concessão para municÃpios com 10 a 20 Unidades de Educação Infantil (UEI), contemplando construção de novas unidades, reforma e benfeitorias em unidades existentes, manutenção e operação, fornecimento e manutenção de equipamentos e materiais, e serviços de apoio à s atividades-fim das UEI e à gestão escolar. 808 809PONTO ESTRATÃGICO CENTRAL: O escopo da concessão NÃO inclui serviços pedagógicos, que permanecem exclusivamente sob responsabilidade do Poder Público Municipal (diretriz 2.1.6 do TR). Professores, diretores e a gestão pedagógica continuam sendo públicos. A concessão se restringe à infraestrutura fÃsica e aos serviços de apoio operacional. 810 811O projeto está inserido no Programa de Parcerias de Investimentos (PPI) do Governo Federal, com qualificação formal publicada no Diário Oficial, e é estruturado pelo Fundo de Estruturação de Projetos (FEP) da Caixa Econômica Federal. 812 813FATOR DIFERENCIADOR: Itanhaém já possui uma PPP de Iluminação Pública em operação. Este precedente é o argumento mais poderoso para a comunicação â o modelo já foi testado no municÃpio, funcionou, e agora está sendo aplicado à educação.`},{id:"objetivos",titulo:"Objetivos do Plano de Comunicação",subtitulo:"Objetivos gerais, especÃficos e resultados esperados",parte:"conceitual",statusIA:"gerado",conteudo:`OBJETIVO GERAL 814Assegurar transparência, legitimidade social e engajamento qualificado no processo de estruturação e licitação da PPP de Educação Infantil de Itanhaém, cumprindo integralmente as obrigações de comunicação previstas no TR da Caixa Econômica Federal (Bloco 1.2). 815 816OBJETIVOS ESPECÃFICOS 8171. Comunicar com clareza que a PPP não afeta a gestão pedagógica â professores e diretores continuam sendo servidores públicos. 8182. Engajar os 10 vereadores da Câmara Municipal, com foco especial na base governista de 7 vereadores. 8193. Construir aliança com a comunidade escolar (pais, diretores, professores) antes da audiência pública. 8204. Prevenir e mitigar a narrativa de "privatização da educação", antecipando as objeções da APEOESP. 8215. Posicionar o projeto como continuidade natural da PPP de Iluminação Pública já bem-sucedida no municÃpio. 8226. Cumprir os produtos obrigatórios do TR: Plano de Comunicação (Etapa 1), Hotsite (15 dias antes da consulta), Audiência Pública com LIBRAS e transmissão ao vivo (Etapa 3), Relatório de Gestão Integrada (Etapa 4). 823 824RESULTADOS ESPERADOS 825⸠Aprovação legislativa das medidas necessárias sem votos contrários da base. 826⸠Audiência pública com participação qualificada da comunidade escolar. 827⸠Zero matérias negativas na imprensa local durante o processo de estruturação. 828⸠Leilão realizado na B3 no segundo semestre de 2027.`}
828,{id:"metodologia",titulo:"Metodologia: Casa de Mensagem",subtitulo:"Fundação, pilares e telhado â estrutura narrativa do projeto",parte:"conceitual",statusIA:"gerado",conteudo:`FUNDAÃÃO â A Verdade do Projeto 829"Itanhaém vai construir e modernizar suas creches e pré-escolas por meio de uma Parceria Público-Privada estruturada pela Caixa Econômica Federal, sem custo adicional para as famÃlias. Professores e diretores continuam sendo servidores públicos." 830 831PILARES â Os Argumentos de Sustentação 832⸠Pilar 1 â Qualidade: Novas unidades construÃdas com padrão superior, equipamentos modernos e manutenção garantida por 25 anos. 833⸠Pilar 2 â Acesso: Mais vagas em educação infantil para as famÃlias de Itanhaém â especialmente nos bairros com maior demanda reprimida. 834⸠Pilar 3 â Continuidade: A gestão pedagógica permanece 100% pública. A PPP cuida da infraestrutura; a Prefeitura cuida da educação. 835⸠Pilar 4 â Precedente: Itanhaém já fez isso com a iluminação pública. Funcionou. Agora é a vez da educação. 836 837TELHADO â A Visão de Futuro 838"Itanhaém: referência em educação infantil no litoral paulista, com estrutura de primeiro mundo para nossas crianças." 839 840NARRATIVA ANTI-PRIVATIZAÃÃO (RESPOSTA PRONTA) 841"A PPP não privatiza a educação. Os professores, diretores e toda a equipe pedagógica continuam sendo servidores públicos da Prefeitura de Itanhaém. A empresa privada será responsável apenas pela construção, manutenção e serviços de apoio â como limpeza, segurança e alimentação. A Prefeitura mantém total controle sobre o que acontece dentro da sala de aula."`},{id:"diagnostico",titulo:"Diagnóstico do MunicÃpio e Análise SWOT",subtitulo:"Perfil socioeconômico, polÃtico, educacional e SWOT",parte:"conceitual",statusIA:"gerado",conteudo:`PERFIL SOCIOECONÃMICO 842Itanhaém é um municÃpio do litoral sul do Estado de São Paulo, na Baixada Santista, a 110 km da capital. População estimada de 109.000 habitantes (IBGE 2024). PIB per capita de R$ 22.800 â apenas 34% da média estadual (R$ 67.200). Economia fortemente dependente do turismo sazonal e da pesca artesanal. 843 844PERFIL POLÃTICO 845Prefeito: Tiago Cervantes (Republicanos), reeleito em outubro de 2024 com 34,45% dos votos. 846Câmara Municipal: 10 vereadores â 7 da base governista. 847Presidente da Câmara: Naldo Bodeguita (Republicanos â mesmo partido do prefeito). 848Oposição: 1 vereador do PL (partido do candidato derrotado Marco Aurélio). 849Janela polÃtica favorável: eleições municipais apenas em 2028. 850 851CENÃRIO EDUCACIONAL 852IDEB 2023 â Anos Finais: 5,3 (1º lugar na Baixada Santista). 85353 escolas municipais, 19.096 alunos, 964 professores. 854A PPP não é resposta a uma crise â é estratégia de consolidação de excelência. 855 856ANÃLISE SWOT â COMUNICAÃÃO 857 858PONTOS FORTES 859⸠PPP de Iluminação Pública já em operação â precedente poderoso. 860⸠Melhor IDEB da Baixada Santista â narrativa de excelência, não de crise. 861⸠Maioria legislativa de 7/10 vereadores com presidente da Câmara na base. 862⸠Caixa Econômica Federal como estruturadora â credibilidade institucional. 863⸠Qualificação no PPI federal â legitimidade do processo. 864 865PONTOS FRACOS 866⸠PIB per capita 66% abaixo da média estadual â população sensÃvel a custos. 867⸠Dependência da sazonalidade turÃstica â instabilidade fiscal. 868⸠Inexperiência em PPP de educação especificamente. 869⸠Imprensa local com recursos limitados. 870 871OPORTUNIDADES 872⸠Movimento nacional de PPPs educacionais em ascensão (9 novos projetos em 2026). 873⸠Novo Fundeb como incentivo fiscal direto. 874⸠Meta do PNE ainda não cumprida â urgência justificada. 875⸠Benchmarking positivo: Porto Alegre e Caxias do Sul já fizeram leilão em 2025. 876 877AMEAÃAS 878⸠Narrativa de privatização da educação â mais sensÃvel que IP. 879⸠Mobilização da APEOESP (sindicato dos professores). 880⸠Uso polÃtico pelo vereador do PL. 881⸠Desinformação em grupos de WhatsApp de pais de alunos.`},{id:"stakeholders",titulo:"Mapeamento de Stakeholders",subtitulo:"Identificação, classificação e estratég
881ia por público",parte:"estrategica",statusIA:"gerado",conteudo:`EXECUTIVO MUNICIPAL 882⸠Prefeito Tiago Cervantes (Republicanos) â Poder: Alto | Interesse: Alto | Posicionamento: Apoiador 883 Estratégia: Porta-voz principal. MÃdia training obrigatório (item 2.5.2.4.5 do TR). Presença na audiência pública. 884⸠Secretaria Municipal de Educação â Poder: Alto | Interesse: Alto | Posicionamento: Apoiador 885 Estratégia: Co-porta-voz técnico. Responsável pela interface com diretores e professores. 886 887LEGISLATIVO 888⸠Naldo Bodeguita â Presidente da Câmara (Republicanos) â Poder: Alto | Interesse: Alto | Posicionamento: Apoiador 889 Estratégia: Aliado estratégico. Envolver na convocação da audiência pública. 890⸠Vereadores da base (6) â Poder: Médio | Interesse: Médio | Posicionamento: Apoiador 891 Estratégia: Reunião coletiva de briefing. Material de apoio para responder perguntas dos eleitores. 892⸠Vereador do PL (1) â Poder: Baixo | Interesse: Alto | Posicionamento: Resistente 893 Estratégia: Transparência máxima. Envio de documentos técnicos. Monitorar manifestações públicas. 894 895COMUNIDADE ESCOLAR 896⸠Diretores de escola (53 unidades) â Poder: Médio | Interesse: Alto | Posicionamento: Neutro 897 Estratégia: Reunião especÃfica com diretores. Deixar claro que autonomia pedagógica é preservada. 898⸠Professores (964) â Poder: Médio | Interesse: Alto | Posicionamento: Neutro/Resistente 899 Estratégia: Comunicação direta via Secretaria de Educação. Foco na mensagem: "seus empregos estão garantidos". 900⸠Pais e responsáveis â Poder: Médio | Interesse: Alto | Posicionamento: Neutro 901 Estratégia: Reuniões nas escolas de maior demanda. Material explicativo em linguagem acessÃvel. 902 903SINDICATOS E ENTIDADES 904⸠APEOESP (Sindicato dos Professores) â Poder: Alto | Interesse: Alto | Posicionamento: Resistente 905 Estratégia: Reunião bilateral antes da audiência pública. Apresentar o TR com a cláusula de preservação da gestão pedagógica. 906⸠APP-Sindicato (professores municipais) â Poder: Médio | Interesse: Alto | Posicionamento: Resistente 907 Estratégia: Mesma abordagem da APEOESP. Foco na distinção entre infraestrutura e pedagogia. 908 909IMPRENSA LOCAL 910⸠Jornal Tribuna de Itanhaém â Poder: Médio | Interesse: Alto | Posicionamento: Neutro 911 Estratégia: Releases exclusivos. Entrevista com prefeito antes da audiência pública. 912⸠Web Sua Praia / Bom Dia Itanhaém (YouTube) â Poder: Médio | Interesse: Alto | Posicionamento: Neutro 913 Estratégia: Entrevista ao vivo com prefeito. Conteúdo explicativo em formato de vÃdeo. 914⸠Rádio Conexão FM 87.5 â Poder: Baixo | Interesse: Médio | Posicionamento: Neutro 915 Estratégia: Spot de rádio explicativo. Entrevista com secretário de educação.`}
915,{id:"cronograma",titulo:"Plano de Ação â 4 Etapas do TR",subtitulo:"Cronograma baseado nas etapas obrigatórias do TR da Caixa",parte:"operacional",statusIA:"gerado",conteudo:`ETAPA 1 â ESTRUTURAÃÃO (JanâAbr 2026) â Prazo máximo: 120 dias 916Produto obrigatório: Plano de Comunicação e Engajamento de Stakeholders (Bloco 1.2) 917⸠Reunião de kick-off com equipe da Caixa e Prefeitura. 918⸠Elaboração deste Plano de Comunicação. 919⸠Mapeamento e validação da Matriz de Stakeholders. 920⸠Criação da identidade visual do projeto. 921⸠Reunião bilateral com vereador do PL (oposição). 922⸠Reunião com diretores de escola (53 unidades). 923 924ETAPA 2 â ENGAJAMENTO PRÃ-CONSULTA (AbrâJun 2026) 925Produto obrigatório: MÃdia training concluÃdo (item 2.5.2.4.5) 926⸠Reuniões com vereadores da base (coletiva) e oposição (individual). 927⸠Reunião bilateral com APEOESP e APP-Sindicato. 928⸠Produção de vÃdeo institucional (2â3 min). 929⸠Criação do hotsite do projeto (obrigatório â mÃnimo 15 dias antes da consulta â item 2.5.2.4.4.i). 930⸠Publicações nas redes sociais da Prefeitura (cronograma semanal). 931⸠MÃdia training com o Prefeito e Secretária de Educação. 932 933ETAPA 3 â CONSULTA E AUDIÃNCIA PÃBLICA (JunâSet 2026) 934Produto obrigatório: Audiência Pública com transmissão ao vivo e LIBRAS (item 2.5.2.4.4.e e .n) 935⸠Abertura da escuta social online (30 dias mÃnimos). 936⸠Reuniões comunitárias de pré-audiência (mÃnimo 3 bairros/escolas). 937⸠Release de convocação (30 dias de antecedência). 938⸠Audiência pública presencial + transmissão ao vivo + intérprete de LIBRAS. 939⸠Relatório de contribuições entregue formalmente à Caixa. 940 941ETAPA 4 â PÃS-AUDIÃNCIA ATà O LEILÃO (Set 2026âSet 2027) 942Produto obrigatório: Relatório de Gestão Integrada (Bloco 1.9) 943⸠Nota de resposta à s contribuições (até 15 dias após audiência). 944⸠Publicações mensais de atualização nas redes sociais. 945⸠Canal exclusivo para comunidade escolar (boletim mensal). 946⸠Gestão de impugnações ao edital (nota de resposta em até 24h). 947⸠Kit de imprensa completo pronto 30 dias antes do leilão na B3. 948⸠Cobertura ao vivo do leilão nas redes sociais da Prefeitura. 949⸠Nota de resultado distribuÃda em até 2 horas após o pregão.`}]},Lne={municipioId:"rio-negrinho",municipioNome:"Rio Negrinho",estado:"SC",tipoPPP:"Iluminação Pública e Cidades Inteligentes",banco:"BRDE â Banco Regional de Desenvolvimento do Extremo Sul",versao:"1.0 â Rascunho para Validação",dataElaboracao:"Abril de 2026",referenciaContratual:"TR BRDE â Atividade 1.2 â Plano de Comunicação e Engajamento de Stakeholders â Rio Negrinho/SC",secoes:[{id:"introducao",titulo:"Apresentação do Projeto",subtitulo:"Contexto, origem e arranjo institucional",parte:"conceitual",statusIA:"gerado",conteudo:`O MunicÃpio de Rio Negrinho, localizado no Planalto Norte de Santa Catarina, a 185 km de Florianópolis, deu inÃcio formal ao processo de estruturação de sua Parceria Público-Privada de Iluminação Pública e Cidades Inteligentes com o apoio técnico e financeiro do BRDE â Banco Regional de Desenvolvimento do Extremo Sul. O projeto segue o modelo já exitosamente implantado pelo BRDE em São Bento do Sul/SC, municÃpio vizinho que firmou contrato em 2024 e se tornou referência nacional no setor. 950 951A PPP de Iluminação Pública de Rio Negrinho tem como escopo a modernização de todo o parque de iluminação pública municipal, com substituição das lâmpadas convencionais por tecnologia LED de alta eficiência, implantação de sistema de telegestão inteligente e incorporação de soluções de Cidades Inteligentes â câmeras de monitoramento, sensores ambientais, pontos de Wi-Fi público e painéis informativos digitais. 952 953O projeto está estruturado sob o regime de Concessão Administrativa, com prazo estimado de 20 anos, e será licitado em leilão público após a conclusão das etapas de estruturação, escuta social e audiência pública, previstas no cronograma do BRDE. 954 955ARRANJO INSTITUCIONAL 956⸠BRDE: Contratante da consultoria; financiador e estruturador técnico; validador de todos os produtos de comunicação. 957⸠Prefeitura de Rio Negrinho: Ente público concedente; responsável pela comunicação institucional e engajamento polÃtico-legislativo.
958⸠PRINT Comunicação: Consultoria contratada; responsável pela elaboração e execução do Plano de Comunicação. 959⸠Câmara Municipal: Poder legislativo; aprovação de legislação habilitante; interlocução com a população. 960 961CONTEXTO ESPECÃFICO â HISTÃRICO TCE/SC 2023 962Em 2023, o TCE-SC determinou a suspensão de pagamentos mensais por serviço de iluminação pública não prestado em Rio Negrinho. Este histórico é um fator de risco de comunicação que deve ser antecipado e gerenciado: a PPP pode ser apresentada como a solução definitiva para este problema, com controle de qualidade e penalidades contratuais para o concessionário.`},{id:"diagnostico",titulo:"Diagnóstico",subtitulo:"MunicÃpio, ambiente interno, diagnóstico digital e benchmarking",parte:"conceitual",statusIA:"gerado",conteudo:`2.1 DIAGNÃSTICO DO MUNICÃPIO 963 964PERFIL SOCIOECONÃMICO 965Rio Negrinho é um municÃpio de porte médio do Planalto Norte Catarinense: 966⸠População estimada: 43.800 habitantes (IBGE 2024) 967⸠PIB per capita: R$ 38.200 (2021) â IBGE 968⸠IDH-M: 0,742 â Alto â PNUD/Atlas Brasil 969⸠Ãrea territorial: 1.227 km² â IBGE 970⸠Receita municipal: R$ 168 milhões (2023) â SICONFI/STN 971⸠Dependência de transferências: ~62% â SICONFI/STN 972 973Economia baseada na indústria madeireira e moveleira. Integra o Aglomerado Urbano do Norte/Nordeste Catarinense com São Bento do Sul e Campo Alegre â o que facilita o benchmarking direto com o projeto vizinho. 974 975CENÃRIO POLÃTICO 976Prefeito: Caio César Treml (PL), médico de 38 anos, reeleito em outubro de 2024 com 58,62% dos votos (13.879 votos). Vitória expressiva confere forte capital polÃtico. 977Câmara Municipal: 9 vereadores â 18ª Legislatura, instalada em 1º de janeiro de 2025. Maioria amplamente favorável ao prefeito. 978 9792.2 DIAGNÃSTICO DIGITAL E DE COMUNICAÃÃO 980⸠Instagram: @prefrionegrinho â ~4.000 seguidores â frequência irregular 981⸠Facebook: Prefeitura Rio Negrinho â ~12.000 curtidas â conteúdo institucional 982⸠YouTube: Canal limitado â poucos vÃdeos institucionais 983⸠Site: rionegrinho.sc.gov.br â informações básicas 984 9852.3 BENCHMARKING 986São Bento do Sul/SC (BRDE, 2024): MunicÃpio vizinho a 25 km. Mesmo banco estruturador. Audiência pública com 150+ participantes. Zero matérias negativas. Referência direta e mais poderosa disponÃvel. 987Joinville/SC (em estruturação, 2026): Maior cidade de SC iniciando PPP de IP â valida o movimento estadual.`},{id:"swot",titulo:"Análise SWOT",subtitulo:"Forças, fraquezas, oportunidades e ameaças para a comunicação",parte:"conceitual",statusIA:"gerado",conteudo:`PONTOS FORTES 988⸠Prefeito reeleito com 58,62% â mandato forte, capital polÃtico alto. 989⸠Maioria legislativa na Câmara (9 vereadores, maioria governista). 990⸠Benchmarking imediato: São Bento do Sul a 25 km, mesmo banco, mesmo modelo. 991⸠BRDE como estruturador â banco público regional com credibilidade em SC. 992⸠Histórico TCE/SC 2023 como argumento: "a PPP resolve o problema que já temos". 993⸠MunicÃpio industrial â população receptiva a argumentos de eficiência e modernização. 994 995PONTOS FRACOS 996⸠Dependência de transferências (~62%) â vulnerabilidade fiscal percebida. 997⸠Histórico TCE/SC 2023 â pode ser usado pela oposição como evidência de má gestão. 998⸠Comunicação digital da Prefeitura com baixa frequência e engajamento. 999⸠Imprensa local com poucos veÃculos â menor capilaridade. 1000⸠MunicÃpio menor que SBS â menos visibilidade regional. 1001 1002OPORTUNIDADES 1003⸠Ser o segundo municÃpio do Planalto Norte a fazer PPP de IP â "movimento regional". 1004⸠Janela polÃtica favorável: eleições municipais apenas em 2028. 1005⸠Crescimento do setor de cidades inteligentes no Sul do Brasil. 1006⸠Potencial de atrair novos investimentos com modernização urbana. 1007 1008AMEAÃAS 1009⸠Narrativa de privatização em grupos de WhatsApp. 1010⸠Uso polÃtico do histórico TCE/SC 2023 pela oposição. 1011⸠PossÃvel questionamento do TCE-SC sobre o processo licitatório. 1012⸠Resistência de servidores da área de manutenção de IP.`},{id:"stakeholders",titulo:"Mapeamento de Stakeholders",subtitulo:"Metodologia, matriz de influência e estratég
1012ias por grupo",parte:"estrategica",statusIA:"gerado",conteudo:`METODOLOGIA DE MAPEAMENTO 1013Stakeholders classificados por: NÃvel de Poder (Alto/Médio/Baixo), NÃvel de Interesse (Alto/Médio/Baixo) e Posicionamento (Apoiador/Neutro/Resistente). 1014 1015EXECUTIVO MUNICIPAL 1016⸠Prefeito Caio César Treml (PL) â Poder: Alto | Interesse: Alto | Posicionamento: Apoiador 1017 Estratégia: Porta-voz principal. MÃdia training obrigatório (TR BRDE, item 2.5.2.5.4.k). Presença na audiência pública. 1018⸠Secretaria de Obras e Infraestrutura â Poder: Médio | Interesse: Alto | Posicionamento: Apoiador 1019 Estratégia: Co-porta-voz técnico. Responsável pela interface com a concessionária. 1020 1021LEGISLATIVO (9 VEREADORES) 1022⸠Câmara Municipal â Poder: Alto | Interesse: Médio | Posicionamento: Apoiador (maioria) 1023 Estratégia: Reunião coletiva de briefing antes da escuta social. Material de apoio para responder eleitores. 1024⸠Vereadores de oposição (minoria) â Poder: Baixo | Interesse: Alto | Posicionamento: Resistente 1025 Estratégia: Transparência máxima. Envio de documentos técnicos. Monitorar manifestações públicas. 1026 1027SETOR EMPRESARIAL 1028⸠ACIRN (Associação Comercial e Industrial) â Poder: Alto | Interesse: Alto | Posicionamento: Neutro 1029 Estratégia: Apresentação focada em benefÃcios para o comércio e a indústria. Convidar para a audiência pública. 1030⸠CDL Rio Negrinho â Poder: Médio | Interesse: Alto | Posicionamento: Neutro 1031 Estratégia: Parceria para divulgação do projeto entre os associados. 1032⸠Indústrias madeireiras e moveleiras â Poder: Alto | Interesse: Médio | Posicionamento: Neutro 1033 Estratégia: Briefing executivo focado em eficiência energética e competitividade industrial. 1034 1035IMPRENSA LOCAL 1036⸠Jornal A Gazeta (regional â cobre Rio Negrinho e SBS) â Poder: Médio | Interesse: Alto | Posicionamento: Neutro 1037 Estratégia: Releases exclusivos. Entrevista com prefeito antes da audiência pública. 1038⸠Rádio local â Poder: Baixo | Interesse: Médio | Posicionamento: Neutro 1039 Estratégia: Spot explicativo. Entrevista ao vivo com prefeito. 1040 1041ÃRGÃOS DE CONTROLE 1042⸠TCE-SC â Poder: Alto | Interesse: Médio | Posicionamento: Neutro 1043 Estratégia: Documentação rigorosa. Histórico de 2023 deve ser mencionado proativamente como motivação para a PPP. 1044 1045SOCIEDADE CIVIL 1046⸠Associações de bairro â Poder: Baixo | Interesse: Alto | Posicionamento: Neutro 1047 Estratégia: Reuniões comunitárias de pré-audiência. Material explicativo em linguagem acessÃvel. 1048⸠SINTRASEM (Sindicato dos Servidores) â Poder: Médio | Interesse: Alto | Posicionamento: Resistente 1049 Estratégia: Reunião bilateral. Deixar claro que não há demissão de servidores no escopo da concessão.`},{id:"estrategia",titulo:"Estratégia de Comunicação",subtitulo:"Casa de Mensagem, canais e narrativas por público",parte:"estrategica",statusIA:"gerado",conteudo:`CASA DE MENSAGEM â RIO NEGRINHO 1050 1051FUNDAÃÃO â A Verdade do Projeto 1052"Rio Negrinho vai modernizar toda a sua iluminação pública com tecnologia LED e soluções de cidade inteligente, por meio de uma Parceria Público-Privada estruturada pelo BRDE â o mesmo modelo que São Bento do Sul implantou com sucesso. Sem custo adicional para o cidadão." 1053 1054PILARES â Os Argumentos de Sustentação 1055⸠Pilar 1 â Solução para um problema real: O histórico de 2023 (TCE-SC) mostrou que o modelo atual não funciona. A PPP garante qualidade com penalidades contratuais para o concessionário. 1056⸠Pilar 2 â Eficiência Energética: Redução de até 70% no consumo de energia com LED. Economia que retorna ao municÃpio em forma de serviços. 1057⸠Pilar 3 â Cidades Inteligentes: Rio Negrinho na vanguarda â telegestão, câmeras, Wi-Fi público e painéis informativos digitais. 1058⸠Pilar 4 â Precedente Regional: São Bento do Sul, a 25 km, já fez. Funcionou. à a vez de Rio Negrinho. 1059 1060TELHADO â A Visão de Futuro 1061"Rio Negrinho: uma cidade mais segura, mais moderna e mais sustentável, referência no Planalto Norte Catarinense." 1062 1063CANAIS DE COMUNICAÃÃO 1064⸠Redes sociais da Prefeitura (Instagram e Facebook): publicações semanais com cronograma definido. 1065⸠Hotsite do projeto: obrigatório pelo TR do BRDE, mÃnimo 15 dias antes da escuta social. 1066⸠Imprensa local (Jornal A Gazeta, rádio): releases mensais e entrevistas programadas. 1067⸠WhatsApp: canal de atendimento a dúvidas da população (monitorado diariamente). 1068⸠Reuniões presenciais: com vereadores, entidades empresariais e associações de bairro.`},{id:"cronograma",titulo:"Cronograma",subtitulo:"Ações de comunicação por fase do projeto",parte:"operacional",statusIA:"gerado",conteudo:`FASE 1 â ESTRUTURAÃÃO E KICK-OFF (AbrâMai 2026) 1069⸠Reunião de kick-off com equipe BRDE e Prefeitura. 1070⸠Elaboração do Plano de Comunicação (produto obrigatório â Atividade 1.2 do TR BRDE). 1071⸠Mapeamento e validação da Matriz de Stakeholders. 1072⸠Criação da identidade visual do projeto. 1073⸠Briefing interno para a equipe da Prefeitura. 1074⸠Reunião bilateral com vereadores de oposição. 1075 1076FASE 2 â ENGAJAMENTO PRÃ-CONSULTA (MaiâJul 2026) 1077⸠Reunião coletiva com os 9 vereadores da Câmara. 1078⸠Reunião com ACIRN, CDL e indústrias locais. 1079⸠Produção de vÃdeo institucional (referência: vÃdeo de São Bento do Sul). 1080⸠Criação e publicação do hotsite do projeto (obrigatório â TR BRDE item 2.5.2.5.4.i). 1081⸠Publicações semanais nas redes sociais da Prefeitura. 1082⸠MÃdia training com o Prefeito (obrigatório â TR BRDE item 2.5.2.5.4.k). 1083⸠Reunião bilateral com SINTRASEM. 1084 1085FASE 3 â CONSULTA E AUDIÃNCIA PÃBLICA (JulâSet 2026) 1086⸠Abertura da escuta social online (30 dias mÃnimos). 1087⸠Boletim especial de escuta social distribuÃdo nos bairros. 1088⸠Reuniões comunitárias de pré-audiência (mÃnimo 3 bairros). 1089⸠Release de convocação (30 dias de antecedência). 1090⸠Audiência pública presencial + transmissão ao vivo + intérprete de LIBRAS (obrigatório â TR BRDE itens 2.5.2.5.4.e e .n). 1091⸠Relatório de contribuições entregue ao BRDE. 1092 1093FASE 4 â PÃS-AUDIÃNCIA ATà O LEILÃO (Set 2026âMar 2027) 1094⸠Nota de resposta à s contribuições (até 15 dias após audiência). 1095⸠Publicações mensais de atualização nas redes sociais. 1096⸠Gestão de impugnações ao edital (nota de resposta em até 24h). 1097⸠Kit de imprensa completo pronto 30 dias antes do leilão. 1098⸠Cobertura ao vivo do leilão nas redes sociais da Prefeitura. 1099⸠Nota de resultado distribuÃda em até 2 horas após o pregão.`}
1099,{id:"monitoramento",titulo:"Monitoramento e Avaliação",subtitulo:"Indicadores, métricas e responsabilidades",parte:"operacional",statusIA:"pendente",conteudo:`INDICADORES DE MONITORAMENTO 1100 1101Alcance Digital 1102⸠Crescimento de seguidores nas redes sociais da Prefeitura: meta +30% no perÃodo. 1103⸠Visualizações do vÃdeo institucional: meta 3.000 views em 30 dias. 1104⸠Acessos ao hotsite: meta 800 visitas únicas no perÃodo de escuta social. 1105 1106Engajamento PolÃtico 1107⸠Reuniões realizadas com vereadores: meta 100% dos 9 vereadores contatados. 1108⸠Aprovação legislativa das medidas necessárias: meta sem votos contrários da base. 1109 1110Imprensa 1111⸠Publicações no Jornal A Gazeta: meta mÃnimo 3 matérias positivas no perÃodo. 1112⸠Entrevistas na rádio local: meta mÃnimo 2 entrevistas com o prefeito. 1113 1114Escuta Social 1115⸠Participantes na audiência pública: meta mÃnimo 80 presentes. 1116⸠Contribuições recebidas: todas respondidas em até 15 dias. 1117 1118RESPONSABILIDADES 1119⸠PRINT Comunicação: elaboração de todos os produtos de comunicação, releases, vÃdeos, hotsite e relatórios. 1120⸠Prefeitura de Rio Negrinho: divulgação nas redes sociais institucionais, apoio logÃstico para reuniões e audiência pública. 1121⸠BRDE: validação de todos os produtos antes da divulgação; aprovação do Plano de Comunicação.`}]},MC={itaperuna:Mne,"sao-bento-do-sul":Ine,itanhaem:Bne,"rio-negrinho":Lne},zne=Object.keys(MC);var Fne=Object.create,u$=Object.defineProperty,$ne=Object.getOwnPropertyDescriptor,qne=Object.getOwnPropertyNames,Vne=Object.getPrototypeOf,Une=Object.prototype.hasOwnProperty,d$=(e,t)=>()=>(e&&(t=e(e=0)),t),$e=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),Hne=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(var n=qne(t),i=0,o=n.length,s;i<o;i++)s=n[i],!Une.call(e,s)&&s!==r&&u$(e,s,{get:(c=>t[c]).bind(null,s),enumerable:!(a=$ne(t,s))||a.enumerable});return e},pN=(e,t,r)=>(r=e!=null?Fne(Vne(e)):{},Hne(u$(r,"default",{value:e,enumerable:!0}),e)),Og=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});function Fp(e){"@babel/helpers - typeof";return Fp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fp(e)}function Gne(e,t){if(Fp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(Fp(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Kne(e){var t=Gne(e,"string");return Fp(t)=="symbol"?t:t+""}function Ce(e,t,r){return(t=Kne(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var $x=class{constructor(e){Ce(this,"rootKey",void 0),this.rootKey=e}},Wne=Object.seal({}),Me=class extends $x{constructor(e){super(e),Ce(this,"root",void 0),this.root=new Array}prepForXml(e){var t;e.stack.push(this);const r=this.root.map(a=>a instanceof $x?a.prepForXml(e):a).filter(a=>a!==void 0);return e.stack.pop(),{[this.rootKey]:r.length?r.length===1&&(!((t=r[0])===null||t===void 0)&&t._attr)?r[0]:r:Wne}}addChildElement(e){return this.root.push(e),this}},js=class extends Me{constructor(e,t){super(e),Ce(this,"includeIfEmpty",void 0),this.includeIfEmpty=t}prepForXml(e){const t=super.prepForXml(e);if(this.includeIfEmpty||t&&(typeof t[this.rootKey]!="object"||Object.keys(t[this.rootKey]).length))return t}};function D3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function Xe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
1121t%2?D3(Object(r),!0).forEach(function(a){Ce(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D3(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}var ct=class extends $x{constructor(e){super("_attr"),Ce(this,"root",void 0),Ce(this,"xmlKeys",void 0),this.root=e}prepForXml(e){const t={};return Object.entries(this.root).forEach(([r,a])=>{if(a!==void 0){const n=this.xmlKeys&&this.xmlKeys[r]||r;t[n]=a}}),{_attr:t}}},f$=class extends $x{constructor(e){super("_attr"),Ce(this,"root",void 0),this.root=e}prepForXml(e){return{_attr:Object.values(this.root).filter(({value:t})=>t!==void 0).reduce((t,{key:r,value:a})=>Xe(Xe({},t),{},{[r]:a}),{})}}},Sa=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{val:"w:val",color:"w:color",fill:"w:fill",space:"w:space",sz:"w:sz",type:"w:type",rsidR:"w:rsidR",rsidRPr:"w:rsidRPr",rsidSect:"w:rsidSect",w:"w:w",h:"w:h",top:"w:top",right:"w:right",bottom:"w:bottom",left:"w:left",header:"w:header",footer:"w:footer",gutter:"w:gutter",linePitch:"w:linePitch",pos:"w:pos"})}},hN=$e(((e,t)=>{var r=typeof Reflect=="object"?Reflect:null,a=r&&typeof r.apply=="function"?r.apply:function(N,O,k){return Function.prototype.apply.call(N,O,k)},n;r&&typeof r.ownKeys=="function"?n=r.ownKeys:Object.getOwnPropertySymbols?n=function(N){return Object.getOwnPropertyNames(N).concat(Object.getOwnPropertySymbols(N))}:n=function(N){return Object.getOwnPropertyNames(N)};function i(C){console&&console.warn&&console.warn(C)}var o=Number.isNaN||function(N){return N!==N};function s(){s.init.call(this)}t.exports=s,t.exports.once=E,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function u(C){if(typeof C!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof C)}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(C){if(typeof C!="number"||C<0||o(C))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+C+".");c=C}}),s.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(N){if(typeof N!="number"||N<0||o(N))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+N+".");return this._maxListeners=N,this};function h(C){return C._maxListeners===void 0?s.defaultMaxListeners:C._maxListeners}s.prototype.getMaxListeners=function(){return h(this)},s.prototype.emit=function(N){for(var O=[],k=1;k<arguments.length;k++)O.push(arguments[k]);var B=N==="error",$=this._events;if($!==void 0)B=B&&$.error===void 0;else if(!B)return!1;if(B){var _;if(O.length>0&&(_=O[0]),_ instanceof Error)throw _;var W=new Error("Unhandled error."+(_?" ("+_.message+")":""));throw W.context=_,W}var D=$[N];if(D===void 0)return!1;if(typeof D=="function")a(D,this,O);else for(var J=D.length,z=b(D,J),k=0;k<J;++k)a(z[k],this,O);return!0};function f(C,N,O,k){var B,$,_;if(u(O),$=C._events,$===void 0?($=C._events=Object.create(null),C._eventsCount=0):($.newListener!==void 0&&(C.emit("newListener",N,O.listener?O.listener:O),$=C._events),_=$[N]),_===void 0)_=$[N]=O,++C._eventsCount;else if(typeof _=="function"?_=$[N]=k?[O,_]:[_,O]:k?_.unshift(O):_.push(O),B=h(C),B>0&&_.length>B&&!_.warned){_.warned=!0;var W=new Error("Possible EventEmitter memory leak detected. "+_.length+" "+String(N)+" listeners added. Use emitter.setMaxListeners() to increase limit");W.name="MaxListenersExceededWarning",W.emitter=C,W.type=N,W.count=_.length,i(W)}return C}s.prototype.addListener=function(N,O){return f(this,N,O,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(N,O){return f(this,N,O,!0)};function m(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function x(C,N,O){var k={fired:!1,wrapFn:void 0,target:C,type:N,listener:O},B=m.bind(k);return B.listener=O,k.wrapFn=B,B}s.prototype.once=function(N,O){return u(O),this.on(N,x(this,N,O)),this},s.prototype.prependOnceListener=function(N,O){return u(O),this.prependListener(N,x(this,N,O)),this},s.prototype.removeListener=function(N,O){var k,B,$,_,W;if(u(O),B=this._events,B===void 0)return this;if(k=B[N],k===void 0)return this;if(k===O||k.listener===O)--this._eventsCount===0?this._events=Object.create(null):(delete B[N],B.removeListener&&this.emit
vendor: 1,669 bytes, line 1121
1121("removeListener",N,k.listener||O));else if(typeof k!="function"){for($=-1,_=k.length-1;_>=0;_--)if(k[_]===O||k[_].listener===O){W=k[_].listener,$=_;break}if($<0)return this;$===0?k.shift():S(k,$),k.length===1&&(B[N]=k[0]),B.removeListener!==void 0&&this.emit("removeListener",N,W||O)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(N){var O,k=this._events,B;if(k===void 0)return this;if(k.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):k[N]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete k[N]),this;if(arguments.length===0){var $=Object.keys(k),_;for(B=0;B<$.length;++B)_=$[B],_!=="removeListener"&&this.removeAllListeners(_);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(O=k[N],typeof O=="function")this.removeListener(N,O);else if(O!==void 0)for(B=O.length-1;B>=0;B--)this.removeListener(N,O[B]);return this};function v(C,N,O){var k=C._events;if(k===void 0)return[];var B=k[N];return B===void 0?[]:typeof B=="function"?O?[B.listener||B]:[B]:O?A(B):b(B,B.length)}s.prototype.listeners=function(N){return v(this,N,!0)},s.prototype.rawListeners=function(N){return v(this,N,!1)},s.listenerCount=function(C,N){return typeof C.listenerCount=="function"?C.listenerCount(N):y.call(C,N)},s.prototype.listenerCount=y;function y(C){var N=this._events;if(N!==void 0){var O=N[C];if(typeof O=="function")return 1;if(O!==void 0)return O.length}return 0}s.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]};function b(C,N){for(var O=new Array(N),k=0;k<N;
vendor: 5,119 bytes, line 1121
1121++k)O[k]=C[k];return O}function S(C,N){for(;N+1<C.length;N++)C[N]=C[N+1];C.pop()}function A(C){for(var N=new Array(C.length),O=0;O<N.length;++O)N[O]=C[O].listener||C[O];return N}function E(C,N){return new Promise(function(O,k){function B(_){C.removeListener(N,$),k(_)}function $(){typeof C.removeListener=="function"&&C.removeListener("error",B),O([].slice.call(arguments))}P(C,N,$,{once:!0}),N!=="error"&&j(C,B,{once:!0})})}function j(C,N,O){typeof C.on=="function"&&P(C,"error",N,O)}function P(C,N,O,k){if(typeof C.on=="function")k.once?C.once(N,O):C.on(N,O);else if(typeof C.addEventListener=="function")C.addEventListener(N,function B($){k.once&&C.removeEventListener(N,B),O($)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof C)}})),Ns=$e(((e,t)=>{typeof Object.create=="function"?t.exports=function(a,n){n&&(a.super_=n,a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(a,n){if(n){a.super_=n;var i=function(){};i.prototype=n.prototype,a.prototype=new i,a.prototype.constructor=a}}})),Ca,Pd=d$((()=>{Ca=globalThis||self}));function Xne(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function IC(){throw new Error("setTimeout has not been defined")}function BC(){throw new Error("clearTimeout has not been defined")}function p$(e){if(vi===setTimeout)return setTimeout(e,0);if((vi===IC||!vi)&&setTimeout)return vi=setTimeout,setTimeout(e,0);try{return vi(e,0)}catch{try{return vi.call(null,e,0)}catch{return vi.call(this,e,0)}}}function Yne(e){if(yi===clearTimeout)return clearTimeout(e);if((yi===BC||!yi)&&clearTimeout)return yi=clearTimeout,clearTimeout(e);try{return yi(e)}catch{try{return yi.call(null,e)}catch{return yi.call(this,e)}}}function Zne(){!Tl||!bl||(Tl=!1,bl.length?Si=bl.concat(Si):hp=-1,Si.length&&h$())}function h$(){if(!Tl){var e=p$(Zne);Tl=!0;for(var t=Si.length;t;){for(bl=Si,Si=[];++hp<t;)bl&&bl[hp].run();hp=-1,t=Si.length}bl=null,Tl=!1,Yne(e)}}function _3(e,t){this.fun=e,this.array=t}function oo(){}var Y1,jr,vi,yi,Si,Tl,bl,hp,R3,Nt,Ts=d$((()=>{Y1={exports:{}},jr=Y1.exports={},(function(){try{typeof setTimeout=="function"?vi=setTimeout:vi=IC}catch{vi=IC}try{typeof clearTimeout=="function"?yi=clearTimeout:yi=BC}catch{yi=BC}})(),Si=[],Tl=!1,hp=-1,jr.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Si.push(new _3(e,t)),Si.length===1&&!Tl&&p$(h$)},_3.prototype.run=function(){this.fun.apply(null,this.array)},jr.title="browser",jr.browser=!0,jr.env={},jr.argv=[],jr.version="",jr.versions={},jr.on=oo,jr.addListener=oo,jr.once=oo,jr.off=oo,jr.removeListener=oo,jr.removeAllListeners=oo,jr.emit=oo,jr.prependListener=oo,jr.prependOnceListener=oo,jr.listeners=function(e){return[]},jr.binding=function(e){throw new Error("process.binding is not supported")},jr.cwd=function(){return"/"},jr.chdir=function(e){throw new Error("process.chdir is not supported")},jr.umask=function(){return 0},R3=Y1.exports,Nt=Xne(R3)})),m$=$e(((e,t)=>{t.exports=hN().EventEmitter})),Jne=$e((e=>{e.byteLength=c,e.toByteArray=h,e.fromByteArray=x;for(var t=[],r=[],a=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,o=n.length;i<o;++i)t[i]=n[i],r[n.charCodeAt(i)]=i;r[45]=62,r[95]=63;function s(v){var y=v.length;if(y%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var b=v.indexOf("=");b===-1&&(b=y);var S=b===y?0:4-b%4;return[b,S]}function c(v){var y=s(v),b=y[0],S=y[1];return(b+S)*3/4-S}function u(v,y,b){return(y+b)*3/4-b}function h(v){var y,b=s(v),S=b[0],A=b[1],E=new a(u(v,S,A)),j=0,P=A>0?S-4:S,C;for(C=0;C<P;C+=4)y=r[v.charCodeAt(C)]<<18|r[v.charCodeAt(C+1)]<<12|r[v.charCodeAt(C+2)]<<6|r[v.charCodeAt(C+3)],E[j++]=y>>16&255,E[j++]=y>>8&255,E[j++]=y&255;return A===2&&(y=r[v.charCodeAt(C)]<<2|r[v.charCodeAt(C+1)]>>4,E[j++]=y&255),A===1&&(y=r[v.charCodeAt(C)]<<10|r[v.charCodeAt(C+1)]<<4|r[v.charCodeAt(C+2)]>>2,E[j++]=y>>8&255,E[j++]=y&255),E}function f(v){return t[v>>18&63]+t[v>>12&63]+t[v>>6&63]+t[v&63]}function m(v,y,b){for(var S,A=[],E=y;E<b;E+=3)S=(v[E]<<16&16711680)+(v[E+1]<<8&65280)+(v[E+2]&255),A.push(f(S));return A.join("")}function x(v){for(var y,b=v.length,S=b%3,A=[],E=16383,j=0,P=b-S;j<P;j+=E)A.push(m(v,j,j+E>P?P:j+E));return S===1?(y=v[b-1],A.push(t[y>>2]+t[y<<4&63]+"==")):S===2&&(y=(v[b-2]<<8)+v[b-1],A.push(t[y>>10]+t[y>>4&63]+t[y<<2&63]+"=")),A.join("")}})),Qne=$e((e=>{/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */e.read=function(t,r,a,n,i){var o,s,c=i*8-n-1,u=(1<<c)-1,h=u>>1,f=-7,m=a?i-1:0,x=a?-1:1,v=t[r+m];for(m+=x,o=v&(1<<-f)-1,v>>=-f,f+=c;f>0;o=o*256+t[r+m],m+=x,f-=8);for(s=o&(1<<-f)-1,o>>=-f,f+=n;f>0;s=s*256+t[r+m],m+=x,f-=8);if(o===0)o=1-h;else{if(o===u)return s?NaN:(v?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-h}return(v?-1:1)*s*Math.pow(2,o-n)},e.write=function(t,r,a,n,i,o){var s,c,u,h=o*8-i-1,f=(1<<h)-1,m=f>>1,x=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=n?0:o-1,y=n?1:-1,b=r<0||r===0&&1
vendor: 4,669 bytes, lines 1121-1126
1121/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(c=isNaN(r)?1:0,s=f):(s=Math.floor(Math.log(r)/Math.LN2),r*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+m>=1?r+=x/u:r+=x*Math.pow(2,1-m),r*u>=2&&(s++,u/=2),s+m>=f?(c=0,s=f):s+m>=1?(c=(r*u-1)*Math.pow(2,i),s=s+m):(c=r*Math.pow(2,m-1)*Math.pow(2,i),s=0));i>=8;t[a+v]=c&255,v+=y,c/=256,i-=8);for(s=s<<i|c,h+=i;h>0;t[a+v]=s&255,v+=y,s/=256,h-=8);t[a+v-y]|=b*128}}));/*! 1122* The buffer module from node.js, for the browser. 1123* 1124* @author Feross Aboukhadijeh <https://feross.org> 1125* @license MIT 1126*/var xy=$e((e=>{var t=Jne(),r=Qne(),a=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=A,e.INSPECT_MAX_BYTES=50;var n=2147483647;e.kMaxLength=n,s.TYPED_ARRAY_SUPPORT=i(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{var ee=new Uint8Array(1),M={foo:function(){return 42}};return Object.setPrototypeOf(M,Uint8Array.prototype),Object.setPrototypeOf(ee,M),ee.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(ee){if(ee>n)throw new RangeError('The value "'+ee+'" is invalid for option "size"');var M=new Uint8Array(ee);return Object.setPrototypeOf(M,s.prototype),M}function s(ee,M,I){if(typeof ee=="number"){if(typeof M=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f(ee)}return c(ee,M,I)}s.poolSize=8192;function c(ee,M,I){if(typeof ee=="string")return m(ee,M);if(ArrayBuffer.isView(ee))return v(ee);if(ee==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ee);if(oe(ee,ArrayBuffer)||ee&&oe(ee.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(oe(ee,SharedArrayBuffer)||ee&&oe(ee.buffer,SharedArrayBuffer)))return y(ee,M,I);if(typeof ee=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var H=ee.valueOf&&ee.valueOf();if(H!=null&&H!==ee)return s.from(H,M,I);var ce=b(ee);if(ce)return ce;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof ee[Symbol.toPrimitive]=="function")return s.from(ee[Symbol.toPrimitive]("string"),M,I);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ee)}s.from=function(ee,M,I){return c(ee,M,I)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function u(ee){if(typeof ee!="number")throw new TypeError('"size" argument must be of type number');if(ee<0)throw new RangeError('The value "'+ee+'" is invalid for option "size"')}function h(ee,M,I){return u(ee),ee<=0?o(ee):M!==void 0?typeof I=="string"?o(ee).fill(M,I):o(ee).fill(M):o(ee)}s.alloc=function(ee,M,I){return h(ee,M,I)};function f(ee){return u(ee),o(ee<0?0:S(ee)|0)}s.allocUnsafe=function(ee){return f(ee)},s.allocUnsafeSlow=function(ee){return f(ee)};function m(ee,M){if((typeof M!="string"||M==="")&&(M="utf8"),!s.isEncoding(M))throw new TypeError("Unknown encoding: "+M);var I=E(ee,M)|0,H=o(I),ce=H.write(ee,M);return ce!==I&&(H=H.slice(0,ce)),H}function x(ee){for(var M=ee.length<0?0:S(ee.length)|0,I=o(M),H=0;H<M;H+=1)I[H]=ee[H]&255;return I}function v(ee){if(oe(ee,Uint8Array)){var M=new Uint8Array(ee);return y(M.buffer,M.byteOffset,M.byteLength)}return x(ee)}function y(ee,M,I){if(M<0||ee.byteLength<M)throw new RangeError('"offset" is outside of buffer bounds');if(ee.byteLength<M+(I||0))throw new RangeError('"length" is outside of buffer bounds');var H;return M===void 0&&I===void 0?H=new Uint8Array(ee):I===void 0?H=new Uint8Array(ee,M):H=new Uint8Array(ee,M,I),Object.setPrototypeOf(H,s.prototype),H}function b(ee){if(s.isBuffer(ee)){var M=S(ee.length)|0,I=o(M);return I.length===0||ee.copy(I,0,0,M),I}if(ee.length!==void 0)return typeof ee.length!="number"||G(ee.length)?o(0):x(ee);if(ee.type==="Buffer"&&Array.isArray(ee.data))return x(ee.data)}function S(ee){if(ee>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return ee|0}function A(ee){return+ee!=ee&&(ee=0),s.alloc(+ee)}s.isBuffer=function(M){return M!=null&&M._isBuffer===!0&&M!==s.prototype},s.compare=function(M,I){if(oe(M,Uint8Array)&&(M=s.from(M,M.offset,M.byteLength)),oe(
vendor: 4,170 bytes, line 1126
1126I,Uint8Array)&&(I=s.from(I,I.offset,I.byteLength)),!s.isBuffer(M)||!s.isBuffer(I))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(M===I)return 0;for(var H=M.length,ce=I.length,fe=0,ue=Math.min(H,ce);fe<ue;++fe)if(M[fe]!==I[fe]){H=M[fe],ce=I[fe];break}return H<ce?-1:ce<H?1:0},s.isEncoding=function(M){switch(String(M).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(M,I){if(!Array.isArray(M))throw new TypeError('"list" argument must be an Array of Buffers');if(M.length===0)return s.alloc(0);var H;if(I===void 0)for(I=0,H=0;H<M.length;++H)I+=M[H].length;var ce=s.allocUnsafe(I),fe=0;for(H=0;H<M.length;++H){var ue=M[H];if(oe(ue,Uint8Array))fe+ue.length>ce.length?s.from(ue).copy(ce,fe):Uint8Array.prototype.set.call(ce,ue,fe);else if(s.isBuffer(ue))ue.copy(ce,fe);else throw new TypeError('"list" argument must be an Array of Buffers');fe+=ue.length}return ce};function E(ee,M){if(s.isBuffer(ee))return ee.length;if(ArrayBuffer.isView(ee)||oe(ee,ArrayBuffer))return ee.byteLength;if(typeof ee!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof ee);var I=ee.length,H=arguments.length>2&&arguments[2]===!0;if(!H&&I===0)return 0;for(var ce=!1;;)switch(M){case"ascii":case"latin1":case"binary":return I;case"utf8":case"utf-8":return F(ee).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I*2;case"hex":return I>>>1;case"base64":return ge(ee).length;default:if(ce)return H?-1:F(ee).length;M=(""+M).toLowerCase(),ce=!0}}s.byteLength=E;function j(ee,M,I){var H=!1;if((M===void 0||M<0)&&(M=0),M>this.length||((I===void 0||I>this.length)&&(I=this.length),I<=0)||(I>>>=0,M>>>=0,I<=M))return"";for(ee||(ee="utf8");;)switch(ee){case"hex":return te(this,M,I);case"utf8":case"utf-8":return D(this,M,I);case"ascii":return V(this,M,I);case"latin1":case"binary":return Z(this,M,I);case"base64":return W(this,M,I);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,M,I);default:if(H)throw new TypeError("Unknown encoding: "+ee);ee=(ee+"").toLowerCase(),H=!0}}s.prototype._isBuffer=!0;function P(ee,M,I){var H=ee[M];ee[M]=ee[I],ee[I]=H}s.prototype.swap16=function(){var M=this.length;if(M%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var I=0;I<M;I+=2)P(this,I,I+1);return this},s.prototype.swap32=function(){var M=this.length;if(M%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var I=0;I<M;I+=4)P(this,I,I+3),P(this,I+1,I+2);return this},s.prototype.swap64=function(){var M=this.length;if(M%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var I=0;I<M;I+=8)P(this,I,I+7),P(this,I+1,I+6),P(this,I+2,I+5),P(this,I+3,I+4);return this},s.prototype.toString=function(){var M=this.length;return M===0?"":arguments.length===0?D(this,0,M):j.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(M){if(!s.isBuffer(M))throw new TypeError("Argument must be a Buffer");return this===M?!0:s.compare(this,M)===0},s.prototype.inspect=function(){var M="",I=e.INSPECT_MAX_BYTES;return M=this.toString("hex",0,I).replace(/(.{2})/g,"$1 ").trim(),this.length>I&&(M+=" ... "),"<Buffer "+M+">"},a&&(s.prototype[a]=s.prototype.inspect),s.prototype.compare=function(M,I,H,ce,fe){if(oe(M,Uint8Array)&&(M=s.from(M,M.offset,M.byteLength)),!s.isBuffer(M))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof M);if(I===void 0&&(I=0),H===void 0&&(H=M?M.length:0),ce===void 0&&(ce=0),fe===void 0&&(fe=this.length),I<0||H>M.length||ce<0||fe>this.length)throw new RangeError("out of range index");if(ce>=fe&&I>=H)return 0;if(ce>=fe)return-1;if(I>=H)return 1;if(I>>>=0,H>>>=0,ce>>>=0,fe>>>=0,this===M)return 0;for(var ue=fe-ce,we=H-I,Ne=Math.min(ue,we),De=this.slice(ce,fe),xe=M.slice(I,H),Ee=0;Ee<Ne;++Ee)if(De[Ee]!==xe[Ee]){ue=De[Ee],we=xe[Ee];break}return ue<we?-1:we<ue?1:0};function C(ee,M,I,H,ce){if(ee.length===0)return-1;
vendor: 4,245 bytes, line 1126
1126if(typeof I=="string"?(H=I,I=0):I>2147483647?I=2147483647:I<-2147483648&&(I=-2147483648),I=+I,G(I)&&(I=ce?0:ee.length-1),I<0&&(I=ee.length+I),I>=ee.length){if(ce)return-1;I=ee.length-1}else if(I<0)if(ce)I=0;else return-1;if(typeof M=="string"&&(M=s.from(M,H)),s.isBuffer(M))return M.length===0?-1:N(ee,M,I,H,ce);if(typeof M=="number")return M=M&255,typeof Uint8Array.prototype.indexOf=="function"?ce?Uint8Array.prototype.indexOf.call(ee,M,I):Uint8Array.prototype.lastIndexOf.call(ee,M,I):N(ee,[M],I,H,ce);throw new TypeError("val must be string, number or Buffer")}function N(ee,M,I,H,ce){var fe=1,ue=ee.length,we=M.length;if(H!==void 0&&(H=String(H).toLowerCase(),H==="ucs2"||H==="ucs-2"||H==="utf16le"||H==="utf-16le")){if(ee.length<2||M.length<2)return-1;fe=2,ue/=2,we/=2,I/=2}function Ne(We,it){return fe===1?We[it]:We.readUInt16BE(it*fe)}var De;if(ce){var xe=-1;for(De=I;De<ue;De++)if(Ne(ee,De)===Ne(M,xe===-1?0:De-xe)){if(xe===-1&&(xe=De),De-xe+1===we)return xe*fe}else xe!==-1&&(De-=De-xe),xe=-1}else for(I+we>ue&&(I=ue-we),De=I;De>=0;De--){for(var Ee=!0,ze=0;ze<we;ze++)if(Ne(ee,De+ze)!==Ne(M,ze)){Ee=!1;break}if(Ee)return De}return-1}s.prototype.includes=function(M,I,H){return this.indexOf(M,I,H)!==-1},s.prototype.indexOf=function(M,I,H){return C(this,M,I,H,!0)},s.prototype.lastIndexOf=function(M,I,H){return C(this,M,I,H,!1)};function O(ee,M,I,H){I=Number(I)||0;var ce=ee.length-I;H?(H=Number(H),H>ce&&(H=ce)):H=ce;var fe=M.length;H>fe/2&&(H=fe/2);for(var ue=0;ue<H;++ue){var we=parseInt(M.substr(ue*2,2),16);if(G(we))return ue;ee[I+ue]=we}return ue}function k(ee,M,I,H){return re(F(M,ee.length-I),ee,I,H)}function B(ee,M,I,H){return re(ae(M),ee,I,H)}function $(ee,M,I,H){return re(ge(M),ee,I,H)}function _(ee,M,I,H){return re(ne(M,ee.length-I),ee,I,H)}s.prototype.write=function(M,I,H,ce){if(I===void 0)ce="utf8",H=this.length,I=0;else if(H===void 0&&typeof I=="string")ce=I,H=this.length,I=0;else if(isFinite(I))I=I>>>0,isFinite(H)?(H=H>>>0,ce===void 0&&(ce="utf8")):(ce=H,H=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var fe=this.length-I;if((H===void 0||H>fe)&&(H=fe),M.length>0&&(H<0||I<0)||I>this.length)throw new RangeError("Attempt to write outside buffer bounds");ce||(ce="utf8");for(var ue=!1;;)switch(ce){case"hex":return O(this,M,I,H);case"utf8":case"utf-8":return k(this,M,I,H);case"ascii":case"latin1":case"binary":return B(this,M,I,H);case"base64":return $(this,M,I,H);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,M,I,H);default:if(ue)throw new TypeError("Unknown encoding: "+ce);ce=(""+ce).toLowerCase(),ue=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function W(ee,M,I){return M===0&&I===ee.length?t.fromByteArray(ee):t.fromByteArray(ee.slice(M,I))}function D(ee,M,I){I=Math.min(ee.length,I);for(var H=[],ce=M;ce<I;){var fe=ee[ce],ue=null,we=fe>239?4:fe>223?3:fe>191?2:1;if(ce+we<=I){var Ne,De,xe,Ee;switch(we){case 1:fe<128&&(ue=fe);break;case 2:Ne=ee[ce+1],(Ne&192)===128&&(Ee=(fe&31)<<6|Ne&63,Ee>127&&(ue=Ee));break;case 3:Ne=ee[ce+1],De=ee[ce+2],(Ne&192)===128&&(De&192)===128&&(Ee=(fe&15)<<12|(Ne&63)<<6|De&63,Ee>2047&&(Ee<55296||Ee>57343)&&(ue=Ee));break;case 4:Ne=ee[ce+1],De=ee[ce+2],xe=ee[ce+3],(Ne&192)===128&&(De&192)===128&&(xe&192)===128&&(Ee=(fe&15)<<18|(Ne&63)<<12|(De&63)<<6|xe&63,Ee>65535&&Ee<1114112&&(ue=Ee))}}ue===null?(ue=65533,we=1):ue>65535&&(ue-=65536,H.push(ue>>>10&1023|55296),ue=56320|ue&1023),H.push(ue),ce+=we}return z(H)}var J=4096;function z(ee){var M=ee.length;if(M<=J)return String.fromCharCode.apply(String,ee);for(var I="",H=0;H<M;)I+=String.fromCharCode.apply(String,ee.slice(H,H+=J));return I}function V(ee,M,I){var H="";I=Math.min(ee.length,I);for(var ce=M;ce<I;++ce)H+=String.fromCharCode(ee[ce]&127);return H}function Z(ee,M,I){var H="";I=Math.min(ee.length,I);for(var ce=M;ce<I;++ce)H+=String.fromCharCode(ee[ce]);return H}function te(ee,M,I){var H=ee.length;(!M||M<0)&&(M=0),(!I||I<0||I>H)&&(I=H);for(var ce="",fe=M;fe<I;++fe)ce+=pe[ee[fe]];return ce}function K(ee,M,I){for(var H=ee.slice(M,I),ce="",fe=0;fe<H.length-1;fe+=2)ce+=String.fromCharCode(H[fe]+H[fe+1]*256);return ce}s.prototype.slice=function(M,I){var H=this.length;
vendor: 6,708 bytes, line 1126
1126M=~~M,I=I===void 0?H:~~I,M<0?(M+=H,M<0&&(M=0)):M>H&&(M=H),I<0?(I+=H,I<0&&(I=0)):I>H&&(I=H),I<M&&(I=M);var ce=this.subarray(M,I);return Object.setPrototypeOf(ce,s.prototype),ce};function q(ee,M,I){if(ee%1!==0||ee<0)throw new RangeError("offset is not uint");if(ee+M>I)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(M,I,H){M=M>>>0,I=I>>>0,H||q(M,I,this.length);for(var ce=this[M],fe=1,ue=0;++ue<I&&(fe*=256);)ce+=this[M+ue]*fe;return ce},s.prototype.readUintBE=s.prototype.readUIntBE=function(M,I,H){M=M>>>0,I=I>>>0,H||q(M,I,this.length);for(var ce=this[M+--I],fe=1;I>0&&(fe*=256);)ce+=this[M+--I]*fe;return ce},s.prototype.readUint8=s.prototype.readUInt8=function(M,I){return M=M>>>0,I||q(M,1,this.length),this[M]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(M,I){return M=M>>>0,I||q(M,2,this.length),this[M]|this[M+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(M,I){return M=M>>>0,I||q(M,2,this.length),this[M]<<8|this[M+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(M,I){return M=M>>>0,I||q(M,4,this.length),(this[M]|this[M+1]<<8|this[M+2]<<16)+this[M+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(M,I){return M=M>>>0,I||q(M,4,this.length),this[M]*16777216+(this[M+1]<<16|this[M+2]<<8|this[M+3])},s.prototype.readIntLE=function(M,I,H){M=M>>>0,I=I>>>0,H||q(M,I,this.length);for(var ce=this[M],fe=1,ue=0;++ue<I&&(fe*=256);)ce+=this[M+ue]*fe;return fe*=128,ce>=fe&&(ce-=Math.pow(2,8*I)),ce},s.prototype.readIntBE=function(M,I,H){M=M>>>0,I=I>>>0,H||q(M,I,this.length);for(var ce=I,fe=1,ue=this[M+--ce];ce>0&&(fe*=256);)ue+=this[M+--ce]*fe;return fe*=128,ue>=fe&&(ue-=Math.pow(2,8*I)),ue},s.prototype.readInt8=function(M,I){return M=M>>>0,I||q(M,1,this.length),this[M]&128?(255-this[M]+1)*-1:this[M]},s.prototype.readInt16LE=function(M,I){M=M>>>0,I||q(M,2,this.length);var H=this[M]|this[M+1]<<8;return H&32768?H|4294901760:H},s.prototype.readInt16BE=function(M,I){M=M>>>0,I||q(M,2,this.length);var H=this[M+1]|this[M]<<8;return H&32768?H|4294901760:H},s.prototype.readInt32LE=function(M,I){return M=M>>>0,I||q(M,4,this.length),this[M]|this[M+1]<<8|this[M+2]<<16|this[M+3]<<24},s.prototype.readInt32BE=function(M,I){return M=M>>>0,I||q(M,4,this.length),this[M]<<24|this[M+1]<<16|this[M+2]<<8|this[M+3]},s.prototype.readFloatLE=function(M,I){return M=M>>>0,I||q(M,4,this.length),r.read(this,M,!0,23,4)},s.prototype.readFloatBE=function(M,I){return M=M>>>0,I||q(M,4,this.length),r.read(this,M,!1,23,4)},s.prototype.readDoubleLE=function(M,I){return M=M>>>0,I||q(M,8,this.length),r.read(this,M,!0,52,8)},s.prototype.readDoubleBE=function(M,I){return M=M>>>0,I||q(M,8,this.length),r.read(this,M,!1,52,8)};function X(ee,M,I,H,ce,fe){if(!s.isBuffer(ee))throw new TypeError('"buffer" argument must be a Buffer instance');if(M>ce||M<fe)throw new RangeError('"value" argument is out of bounds');if(I+H>ee.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(M,I,H,ce){if(M=+M,I=I>>>0,H=H>>>0,!ce){var fe=Math.pow(2,8*H)-1;X(this,M,I,H,fe,0)}var ue=1,we=0;for(this[I]=M&255;++we<H&&(ue*=256);)this[I+we]=M/ue&255;return I+H},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(M,I,H,ce){if(M=+M,I=I>>>0,H=H>>>0,!ce){var fe=Math.pow(2,8*H)-1;X(this,M,I,H,fe,0)}var ue=H-1,we=1;for(this[I+ue]=M&255;--ue>=0&&(we*=256);)this[I+ue]=M/we&255;return I+H},s.prototype.writeUint8=s.prototype.writeUInt8=function(M,I,H){return M=+M,I=I>>>0,H||X(this,M,I,1,255,0),this[I]=M&255,I+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(M,I,H){return M=+M,I=I>>>0,H||X(this,M,I,2,65535,0),this[I]=M&255,this[I+1]=M>>>8,I+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(M,I,H){return M=+M,I=I>>>0,H||X(this,M,I,2,65535,0),this[I]=M>>>8,this[I+1]=M&255,I+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(M,I,H){return M=+M,I=I>>>0,H||X(this,M,I,4,4294967295,0),this[I+3]=M>>>24,this[I+2]=M>>>16,this[I+1]=M>>>8,this[I]=M&255,I+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(M,I,H){return M=+M,I=I>>>0,H||X(this,M,I,4,4294967295,0),this[I]=M>>>24,this[I+1]=M>>>16,this[I+2]=M>>>8,this[I+3]=M&255,I+4},s.prototype.writeIntLE=function(M,I,H,ce){if(M=+M,I=I>>>0,!ce){var fe=Math.pow(2,8*H-1);X(this,M,I,H,fe-1,-fe)}var ue=0,we=1,Ne=0;for(this[I]=M&255;++ue<H&&(we*=256);)M<0&&Ne===0&&this[I+ue-1]!==0&&(Ne=1),this[I+ue]=(M/we>>0)-Ne&255;return I+H},s.prototype.writeIntBE=function(M,I,H,ce){if(M=+M,I=I>>>0,!ce){var fe=Math.pow(2,8*H-1);X(this,M,I,H,fe-1,-fe)}var ue=H-1,we=1,Ne=0;for(this[I+ue]=M&255;--ue>=0&&(we*=256);)M<0&&Ne===0&&this[I+ue+1]!==0&&(Ne=1),this[I+ue]=(M/we>>0)-Ne&255;return I+H},s.prototype.writeInt8=function(M,I,H){return M=+M,I=I>>>0,H||X(this,M,I,1,127,-128),M<0&&(M=255+M+1),this[I]=M&255,I+1},s.prototype.writeInt16LE=function(M,I,H){return M=+M,I=I>>>0,H||X(this,M,I,2,32767,-32768),this[I]=M&255,this[I+1]=M>>>8,I+2},s.prototype.writeInt16BE=function(M,I,H){return M=+M,I=I>>>0,H||X(this,M,I,2,32767,-32768),this[I]=M>>>8,this[I+1]=M&255,I+2},s.prototype.writeInt32LE=function(M,I,H){return M=+M,I=I>>>0,H||X(this,M,I,4,2147483647,-2147483648),this[I]=M&255,this[I+1]=M>>>8,this[I+2]=M>>>16,this[I+3]=M>>>24,I+4},s.prototype.writeInt32BE=function(M,I,H){return M=+M,I=I>>>0,H||X(this,M,I,4,2147483647,-2147483648),M<0&&(M=4294967295+M+1),this[I]=M>>>24,this[I+1]=M>>>16,this[I+2]=M>>>8,this[I+3]=M&255,I+4};function U(ee,M,I,H,ce,fe){if(I+H>ee.length)throw new RangeError("Index out of range");if(I<0)throw new RangeError("Index out of range")}function ie(ee,M,I,H,ce){return M=+M,I=I>>>0,ce||U(ee,M,I,4),r.write(ee,M,I,H,23,4),I+4}s.prototype.writeFloatLE=function(M,I,H){return ie(this,M,I,!0,H)},s.prototype.writeFloatBE=function(M,I,H){return ie(this,M,I,!1,H)};function se(ee,M,I,H,ce){return M=+M,I=I>>>0,ce||U(ee,M,I,8),r.write(ee,M,I,H,52,8),I+8}s.prototype.writeDoubleLE=function(M,I,H){return se(this,M,I,!0,H)},s.prototype.writeDoubleBE=function(M,I,H){return se(this,M,I,!1,H)},s.prototype.copy=function(M,I,H,ce){if(!s.isBuffer(M))throw new TypeError("argument should be a Buffer");if(H||(H=0),!ce&&ce!==0&&(ce=this.length),I>=M.length&&(I=M.length),I||(I=0),ce>0&&ce<H&&(ce=H),ce===H||M.length===0||this.length===0)return 0;if(I<0)throw new RangeError("targetStart out of bounds");if(H<0||H>=this.length)throw new RangeError("Index out of range");if(ce<0)throw new RangeError("sourceEnd out of bounds");ce>this.length&&(ce=this.length),M.length-I<ce-H&&(ce=M.length-I+H);var fe=ce-H;return this===M&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(I,H,ce):Uint8Array.prototype.set.call(M,this.subarray(H,ce),I),fe}
1126,s.prototype.fill=function(M,I,H,ce){if(typeof M=="string"){if(typeof I=="string"?(ce=I,I=0,H=this.length):typeof H=="string"&&(ce=H,H=this.length),ce!==void 0&&typeof ce!="string")throw new TypeError("encoding must be a string");if(typeof ce=="string"&&!s.isEncoding(ce))throw new TypeError("Unknown encoding: "+ce);if(M.length===1){var fe=M.charCodeAt(0);(ce==="utf8"&&fe<128||ce==="latin1")&&(M=fe)}}else typeof M=="number"?M=M&255:typeof M=="boolean"&&(M=Number(M));if(I<0||this.length<I||this.length<H)throw new RangeError("Out of range index");if(H<=I)return this;I=I>>>0,H=H===void 0?this.length:H>>>0,M||(M=0);var ue;if(typeof M=="number")for(ue=I;ue<H;++ue)this[ue]=M;else{var we=s.isBuffer(M)?M:s.from(M,ce),Ne=we.length;if(Ne===0)throw new TypeError('The value "'+M+'" is invalid for argument "value"');for(ue=0;ue<H-I;++ue)this[ue+I]=we[ue%Ne]}return this};var he=/[^+/0-9A-Za-z-_]/g;function Y(ee){if(ee=ee.split("=")[0],ee=ee.trim().replace(he,""),ee.length<2)return"";for(;ee.length%4!==0;)ee=ee+"=";return ee}function F(ee,M){M=M||1/0;for(var I,H=ee.length,ce=null,fe=[],ue=0;ue<H;++ue){if(I=ee.charCodeAt(ue),I>55295&&I<57344){if(!ce){if(I>56319){(M-=3)>-1&&fe.push(239,191,189);continue}else if(ue+1===H){(M-=3)>-1&&fe.push(239,191,189);continue}ce=I;continue}if(I<56320){(M-=3)>-1&&fe.push(239,191,189),ce=I;continue}I=(ce-55296<<10|I-56320)+65536}else ce&&(M-=3)>-1&&fe.push(239,191,189);if(ce=null,I<128){if((M-=1)<0)break;fe.push(I)}else if(I<2048){if((M-=2)<0)break;fe.push(I>>6|192,I&63|128)}else if(I<65536){if((M-=3)<0)break;fe.push(I>>12|224,I>>6&63|128,I&63|128)}else if(I<1114112){if((M-=4)<0)break;fe.push(I>>18|240,I>>12&63|128,I>>6&63|128,I&63|128)}else throw new Error("Invalid code point")}return fe}function ae(ee){for(var M=[],I=0;I<ee.length;++I)M.push(ee.charCodeAt(I)&255);return M}function ne(ee,M){for(var I,H,ce,fe=[],ue=0;ue<ee.length&&!((M-=2)<0);++ue)I=ee.charCodeAt(ue),H=I>>8,ce=I%256,fe.push(ce),fe.push(H);return fe}function ge(ee){return t.toByteArray(Y(ee))}function re(ee,M,I,H){for(var ce=0;ce<H&&!(ce+I>=M.length||ce>=ee.length);++ce)M[ce+I]=ee[ce];return ce}function oe(ee,M){return ee instanceof M||ee!=null&&ee.constructor!=null&&ee.constructor.name!=null&&ee.constructor.name===M.name}function G(ee){return ee!==ee}var pe=(function(){for(var ee="0123456789abcdef",M=new Array(256),I=0;I<16;++I)for(var H=I*16,ce=0;ce<16;++ce)M[H+ce]=ee[I]+ee[ce];return M})()})),g$=$e(((e,t)=>{t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var a={},n=Symbol("test"),i=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var o=42;a[n]=o;for(var s in a)return!1;if(typeof Object.keys=="function"&&Object.keys(a).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(a).length!==0)return!1;var c=Object.getOwnPropertySymbols(a);if(c.length!==1||c[0]!==n||!Object.prototype.propertyIsEnumerable.call(a,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(a,n);if(u.value!==o||u.enumerable!==!0)return!1}return!0}})),mN=$e(((e,t)=>{var r=g$();t.exports=function(){return r()&&!!Symbol.toStringTag}})),x$=$e(((e,t)=>{t.exports=Object})),eie=$e(((e,t)=>{t.exports=Error})),tie=$e(((e,t)=>{t.exports=EvalError})),rie=$e(((e,t)=>{t.exports=RangeError})),aie=$e(((e,t)=>{t.exports=ReferenceError})),v$=$e(((e,t)=>{t.exports=SyntaxError})),vy=$e(((e,t)=>{t.exports=TypeError})),nie=$e(((e,t)=>{t.exports=URIError})),iie=$e(((e,t)=>{t.exports=Math.abs})),oie=$e(((e,t)=>{t.exports=Math.floor})),sie=$e(((e,t)=>{t.exports=Math.max})),lie=$e(((e,t)=>{t.exports=Math.min})),cie=$e(((e,t)=>{t.exports=Math.pow})),uie=$e(((e,t)=>{t.exports=Math.round})),die=$e(((e,t)=>{t.exports=Number.isNaN||function(a){return a!==a}})),fie=$e(((e,t)=>{var r=die();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}})),pie=$e(((e,t)=>{t.exports=Object.getOwnPropertyDescriptor})),zh=$e(((e,t)=>{var r=pie();if(r)try{r([],"length")}catch{r=null}t.exports=r})),yy=$e(((e,t)=>{var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}t.exports=r})),hie=$e(((e,t)=>{var r=typeof Symbol<"u"&&Symbol,a=g$();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:a()}})),y$=$e(((e,t)=>{t.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null})),b$=$e(((e,t)=>{t.exports=x$().getPrototypeOf||null})),mie=$e(((e,t)=>{var r="Function.prototype.bind called on incompatible ",a=Object.prototype.toString,n=Math.max,i="[object Function]",o=function(h,f){for(var m=[],x=0;x<h.length;x+=1)m[x]=h[x];for(var v=0;v<f.length;v+=1)m[v+h.length]=f[v];return m},s=function(h,f){for(var m=[],x=f,v=0;x<h.length;x+=1,v+=1)m[v]=h[x];return m},c=function(u,h){for(var f="",m=0;m<u.length;m+=1)f+=u[m],m+1<u.length&&(f+=h);return f};t.exports=function(h){var f=this;if(typeof f!="function"||a.apply(f)!==i)throw new TypeError(r+f);
1126for(var m=s(arguments,1),x,v=function(){if(this instanceof x){var E=f.apply(this,o(m,arguments));return Object(E)===E?E:this}return f.apply(h,o(m,arguments))},y=n(0,f.length-m.length),b=[],S=0;S<y;S++)b[S]="$"+S;if(x=Function("binder","return function ("+c(b,",")+"){ return binder.apply(this,arguments); }")(v),f.prototype){var A=function(){};A.prototype=f.prototype,x.prototype=new A,A.prototype=null}return x}})),Fh=$e(((e,t)=>{var r=mie();t.exports=Function.prototype.bind||r})),gN=$e(((e,t)=>{t.exports=Function.prototype.call})),xN=$e(((e,t)=>{t.exports=Function.prototype.apply})),gie=$e(((e,t)=>{t.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply})),w$=$e(((e,t)=>{var r=Fh(),a=xN(),n=gN();t.exports=gie()||r.call(n,a)})),vN=$e(((e,t)=>{var r=Fh(),a=vy(),n=gN(),i=w$();t.exports=function(s){if(s.length<1||typeof s[0]!="function")throw new a("a function is required");return i(r,n,s)}})),xie=$e(((e,t)=>{var r=vN(),a=zh(),n;try{n=[].__proto__===Array.prototype}catch(c){if(!c||typeof c!="object"||!("code"in c)||c.code!=="ERR_PROTO_ACCESS")throw c}var i=!!n&&a&&a(Object.prototype,"__proto__"),o=Object,s=o.getPrototypeOf;t.exports=i&&typeof i.get=="function"?r([i.get]):typeof s=="function"?function(u){return s(u==null?u:o(u))}:!1})),S$=$e(((e,t)=>{var r=y$(),a=b$(),n=xie();t.exports=r?function(o){return r(o)}:a?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return a(o)}:n?function(o){return n(o)}:null})),vie=$e(((e,t)=>{var r=Function.prototype.call,a=Object.prototype.hasOwnProperty;t.exports=Fh().call(r,a)})),E$=$e(((e,t)=>{var r,a=x$(),n=eie(),i=tie(),o=rie(),s=aie(),c=v$(),u=vy(),h=nie(),f=iie(),m=oie(),x=sie(),v=lie(),y=cie(),b=uie(),S=fie(),A=Function,E=function(ne){try{return A('"use strict"; return ('+ne+").constructor;")()}catch{}},j=zh(),P=yy(),C=function(){throw new u},N=j?(function(){try{return arguments.callee,C}catch{try{return j(arguments,"callee").get}catch{return C}}})():C,O=hie()(),k=S$(),B=b$(),$=y$(),_=xN(),W=gN(),D={},J=typeof Uint8Array>"u"||!k?r:k(Uint8Array),z={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":O&&k?k([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":D,"%AsyncGenerator%":D,"%AsyncGeneratorFunction%":D,"%AsyncIteratorPrototype%":D,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":i,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":A,"%GeneratorFunction%":D,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>
vendor: 7,449 bytes, line 1126
1126"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":O&&k?k(k([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!O||!k?r:k(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":a,"%Object.getOwnPropertyDescriptor%":j,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!O||!k?r:k(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":O&&k?k(""[Symbol.iterator]()):r,"%Symbol%":O?Symbol:r,"%SyntaxError%":c,"%ThrowTypeError%":N,"%TypedArray%":J,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":h,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":W,"%Function.prototype.apply%":_,"%Object.defineProperty%":P,"%Object.getPrototypeOf%":B,"%Math.abs%":f,"%Math.floor%":m,"%Math.max%":x,"%Math.min%":v,"%Math.pow%":y,"%Math.round%":b,"%Math.sign%":S,"%Reflect.getPrototypeOf%":$};if(k)try{null.error}catch(ne){z["%Error.prototype%"]=k(k(ne))}var V=function ne(ge){var re;if(ge==="%AsyncFunction%")re=E("async function () {}");else if(ge==="%GeneratorFunction%")re=E("function* () {}");else if(ge==="%AsyncGeneratorFunction%")re=E("async function* () {}");else if(ge==="%AsyncGenerator%"){var oe=ne("%AsyncGeneratorFunction%");oe&&(re=oe.prototype)}else if(ge==="%AsyncIteratorPrototype%"){var G=ne("%AsyncGenerator%");G&&k&&(re=k(G.prototype))}return z[ge]=re,re},Z={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},te=Fh(),K=vie(),q=te.call(W,Array.prototype.concat),X=te.call(_,Array.prototype.splice),U=te.call(W,String.prototype.replace),ie=te.call(W,String.prototype.slice),se=te.call(W,RegExp.prototype.exec),he=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Y=/\\(\\)?/g,F=function(ge){var re=ie(ge,0,1),oe=ie(ge,-1);if(re==="%"&&oe!=="%")throw new c("invalid intrinsic syntax, expected closing `%`");if(oe==="%"&&re!=="%")throw new c("invalid intrinsic syntax, expected opening `%`");var G=[];return U(ge,he,function(pe,ee,M,I){G[G.length]=M?U(I,Y,"$1"):ee||pe}),G},ae=function(ge,re){var oe=ge,G;if(K(Z,oe)&&(G=Z[oe],oe="%"+G[0]+"%"),K(z,oe)){var pe=z[oe];if(pe===D&&(pe=V(oe)),typeof pe>"u"&&!re)throw new u("intrinsic "+ge+" exists, but is not available. Please file an issue!");return{alias:G,name:oe,value:pe}}throw new c("intrinsic "+ge+" does not exist!")};t.exports=function(ge,re){if(typeof ge!="string"||ge.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof re!="boolean")throw new u('"allowMissing" argument must be a boolean');if(se(/^%?[^%]*%?$/,ge)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var oe=F(ge),G=oe.length>0?oe[0]:"",pe=ae("%"+G+"%",re),ee=pe.name,M=pe.value,I=!1,H=pe.alias;H&&(G=H[0],X(oe,q([0,1],H)));for(var ce=1,fe=!0;ce<oe.length;ce+=1){var ue=oe[ce],we=ie(ue,0,1),Ne=ie(ue,-1);if((we==='"'||we==="'"||we==="`"||Ne==='"'||Ne==="'"||Ne==="`")&&we!==Ne)throw new c("property names with quotes must have matching quotes");if((ue==="constructor"||!fe)&&(I=!0),G+="."+ue,ee="%"+G+"%",K(z,ee))M=z[ee];else if(M!=null){if(!(ue in M)){if(!re)throw new u("base intrinsic for "+ge+" exists, but the property is not available.");return}if(j&&ce+1>=oe.length){var De=j(M,ue);fe=!!De,fe&&"get"in De&&!("originalValue"in De.get)?M=De.get:M=M[ue]}else fe=K(M,ue),M=M[ue];fe&&!I&&(z[ee]=M)}}return M}})),A$=$e(((e,t)=>{var r=E$(),a=vN(),n=a([r("%String.prototype.indexOf%")]);t.exports=function(o,s){var c=r(o,!!s);return typeof c=="function"&&n(o,".prototype.")>-1?a([c]):c}})),yie=$e(((e,t)=>{var r=mN()(),a=A$()("Object.prototype.toString"),n=function(c){return r&&c&&typeof c=="object"&&Symbol.toStringTag in c?!1:a(c)==="[object Arguments]"},i=function(c){return n(c)?!0:c!==null&&typeof c=="object"&&"length"in c&&typeof c.length=="number"&&c.length>=0&&a(c)!=="[object Array]"&&"callee"in c&&a(c.callee)==="[object Function]"},o=(function(){return n(arguments)})();n.isLegacyArguments=i,t.exports=o?n:i})),bie=$e(((e,t)=>{var r=Object.prototype.toString,a=Function.prototype.toString,n=/^\s*(?:function)?\*/,i=mN()(),o=Object.getPrototypeOf,s=function(){if(!i)return!1;try{return Function("return function*() {}")()}catch{}},c;t.exports=function(h){if(typeof h!="function")return!1;if(n.test(a.call(h)))return!0;
1126if(!i)return r.call(h)==="[object GeneratorFunction]";if(!o)return!1;if(typeof c>"u"){var f=s();c=f?o(f):!1}return o(h)===c}})),wie=$e(((e,t)=>{var r=Function.prototype.toString,a=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,n,i;if(typeof a=="function"&&typeof Object.defineProperty=="function")try{n=Object.defineProperty({},"length",{get:function(){throw i}}),i={},a(function(){throw 42},null,n)}catch(j){j!==i&&(a=null)}else a=null;var o=/^\s*class\b/,s=function(P){try{var C=r.call(P);return o.test(C)}catch{return!1}},c=function(P){try{return s(P)?!1:(r.call(P),!0)}catch{return!1}},u=Object.prototype.toString,h="[object Object]",f="[object Function]",m="[object GeneratorFunction]",x="[object HTMLAllCollection]",v="[object HTML document.all class]",y="[object HTMLCollection]",b=typeof Symbol=="function"&&!!Symbol.toStringTag,S=!(0 in[,]),A=function(){return!1};if(typeof document=="object"){var E=document.all;u.call(E)===u.call(document.all)&&(A=function(P){if((S||!P)&&(typeof P>"u"||typeof P=="object"))try{var C=u.call(P);return(C===x||C===v||C===y||C===h)&&P("")==null}catch{}return!1})}t.exports=a?function(P){if(A(P))return!0;if(!P||typeof P!="function"&&typeof P!="object")return!1;try{a(P,null,n)}catch(C){if(C!==i)return!1}return!s(P)&&c(P)}:function(P){if(A(P))return!0;if(!P||typeof P!="function"&&typeof P!="object")return!1;if(b)return c(P);if(s(P))return!1;var C=u.call(P);return C!==f&&C!==m&&!/^\[object HTML/.test(C)?!1:c(P)}})),Sie=$e(((e,t)=>{var r=wie(),a=Object.prototype.toString,n=Object.prototype.hasOwnProperty,i=function(h,f,m){for(var x=0,v=h.length;x<v;x++)n.call(h,x)&&(m==null?f(h[x],x,h):f.call(m,h[x],x,h))},o=function(h,f,m){for(var x=0,v=h.length;x<v;x++)m==null?f(h.charAt(x),x,h):f.call(m,h.charAt(x),x,h)},s=function(h,f,m){for(var x in h)n.call(h,x)&&(m==null?f(h[x],x,h):f.call(m,h[x],x,h))};function c(u){return a.call(u)==="[object Array]"}t.exports=function(h,f,m){if(!r(f))throw new TypeError("iterator must be a function");var x;arguments.length>=3&&(x=m),c(h)?i(h,f,x):typeof h=="string"?o(h,f,x):s(h,f,x)}})),Eie=$e(((e,t)=>{t.exports=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]})),Aie=$e(((e,t)=>{Pd();var r=Eie(),a=typeof globalThis>"u"?Ca:globalThis;t.exports=function(){for(var i=[],o=0;o<r.length;o++)typeof a[r[o]]=="function"&&(i[i.length]=r[o]);return i}})),Cie=$e(((e,t)=>{var r=yy(),a=v$(),n=vy(),i=zh();t.exports=function(s,c,u){if(!s||typeof s!="object"&&typeof s!="function")throw new n("`obj` must be an object or a function`");if(typeof c!="string"&&typeof c!="symbol")throw new n("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new n("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new n("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new n("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new n("`loose`, if provided, must be a boolean");var h=arguments.length>3?arguments[3]:null,f=arguments.length>4?arguments[4]:null,m=arguments.length>5?arguments[5]:null,x=arguments.length>6?arguments[6]:!1,v=!!i&&i(s,c);if(r)r(s,c,{configurable:m===null&&v?v.configurable:!m,enumerable:h===null&&v?v.enumerable:!h,value:u,writable:f===null&&v?v.writable:!f});else if(x||!h&&!f&&!m)s[c]=u;else throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}})),Pie=$e(((e,t)=>{var r=yy(),a=function(){return!!r};a.hasArrayLengthDefineBug=function(){if(!r)return null;try{return r([],"length",{value:1}).length!==1}catch{return!0}},t.exports=a})),jie=$e(((e,t)=>{var r=E$(),a=Cie(),n=Pie()(),i=zh(),o=vy(),s=r("%Math.floor%");t.exports=function(u,h){if(typeof u!="function")throw new o("`fn` is not a function");if(typeof h!="number"||h<0||h>4294967295||s(h)!==h)throw new o("`length` must be a positive 32-bit integer");var f=arguments.length>2&&!!arguments[2],m=!0,x=!0;if("length"in u&&i){var v=i(u,"length");v&&!v.configurable&&(m=!1),v&&!v.writable&&(x=!1)}return(m||x||!f)&&(n?a(u,"length",h,!0,!0):a(u,"length",h)),u}})),Nie=$e(((e,t)=>{var r=Fh(),a=xN(),n=w$();t.exports=function(){return n(r,a,arguments)}})),Tie=$e(((e,t)=>{var r=jie(),a=yy(),n=vN(),i=Nie();t.exports=function(s){var c=n(arguments),u=s.length-(arguments.length-1);return r(c,1+(u>0?u:0),!0)},a?a(t.exports,"apply",{value:i}):t.exports.apply=i})),C$=$e(((e,t)=>{Pd();var r=Sie(),a=Aie(),n=Tie(),i=A$(),o=zh(),s=S$(),c=i("Object.prototype.toString"),u=mN()(),h=typeof globalThis>"u"?Ca:globalThis,f=a(),m=i("String.prototype.slice"),x=i("Array.prototype.indexOf",!0)||function(A,E){for(var j=0;j<A.length;j+=1)if(A[j]===E)return j;return-1},v={__proto__:null};u&&o&&s?r(f,function(S){var A=new h[S];if(Symbol.toStringTag in A&&s){var E=s(A),j=o(E,Symbol.toStringTag);!j&&E&&(j=o(s(E),Symbol.toStringTag)),v["$"+S]=n(j.get)}}):r(f,function(S){var A=new h[S],E=A.slice||A.set;E&&(v["$"+S]=n(E))});var y=function(A){var E=!1;return r(v,function(j,P){if(!E)try{"$"+j(A)===P&&(E=m(P,1))}catch{}}),E},b=function(A){var E=!1;return r(v,function(j,P){if(!E)try{j(A),E=m(P,1)}catch{}}),E};t.exports=function(A){if(!A||typeof A!="object")return!1;if(!u){var E=m(c(A),8,-1);return x(f,E)>-1?E:E!=="Object"?!1:b(A)}return o?y(A):null}})),kie=$e(((e,t)=>
1126{var r=C$();t.exports=function(n){return!!r(n)}})),Die=$e((e=>{var t=yie(),r=bie(),a=C$(),n=kie();function i(H){return H.call.bind(H)}var o=typeof BigInt<"u",s=typeof Symbol<"u",c=i(Object.prototype.toString),u=i(Number.prototype.valueOf),h=i(String.prototype.valueOf),f=i(Boolean.prototype.valueOf);if(o)var m=i(BigInt.prototype.valueOf);if(s)var x=i(Symbol.prototype.valueOf);function v(H,ce){if(typeof H!="object")return!1;try{return ce(H),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=n;function y(H){return typeof Promise<"u"&&H instanceof Promise||H!==null&&typeof H=="object"&&typeof H.then=="function"&&typeof H.catch=="function"}e.isPromise=y;function b(H){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(H):n(H)||U(H)}e.isArrayBufferView=b;function S(H){return a(H)==="Uint8Array"}e.isUint8Array=S;function A(H){return a(H)==="Uint8ClampedArray"}e.isUint8ClampedArray=A;function E(H){return a(H)==="Uint16Array"}e.isUint16Array=E;function j(H){return a(H)==="Uint32Array"}e.isUint32Array=j;function P(H){return a(H)==="Int8Array"}e.isInt8Array=P;function C(H){return a(H)==="Int16Array"}e.isInt16Array=C;function N(H){return a(H)==="Int32Array"}e.isInt32Array=N;function O(H){return a(H)==="Float32Array"}e.isFloat32Array=O;function k(H){return a(H)==="Float64Array"}e.isFloat64Array=k;function B(H){return a(H)==="BigInt64Array"}e.isBigInt64Array=B;function $(H){return a(H)==="BigUint64Array"}e.isBigUint64Array=$;function _(H){return c(H)==="[object Map]"}_.working=typeof Map<"u"&&_(new Map);function W(H){return typeof Map>"u"?!1:_.working?_(H):H instanceof Map}e.isMap=W;function D(H){return c(H)==="[object Set]"}D.working=typeof Set<"u"&&D(new Set);function J(H){return typeof Set>"u"?!1:D.working?D(H):H instanceof Set}e.isSet=J;function z(H){return c(H)==="[object WeakMap]"}z.working=typeof WeakMap<"u"&&z(new WeakMap);function V(H){return typeof WeakMap>"u"?!1:z.working?z(H):H instanceof WeakMap}e.isWeakMap=V;function Z(H){return c(H)==="[object WeakSet]"}Z.working=typeof WeakSet<"u"&&Z(new WeakSet);function te(H){return Z(H)}e.isWeakSet=te;function K(H){return c(H)==="[object ArrayBuffer]"}K.working=typeof ArrayBuffer<"u"&&K(new ArrayBuffer);function q(H){return typeof ArrayBuffer>"u"?!1:K.working?K(H):H instanceof ArrayBuffer}e.isArrayBuffer=q;function X(H){return c(H)==="[object DataView]"}X.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&X(new DataView(new ArrayBuffer(1),0,1));function U(H){return typeof DataView>"u"?!1:X.working?X(H):H instanceof DataView}e.isDataView=U;var ie=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function se(H){return c(H)==="[object SharedArrayBuffer]"}function he(H){return typeof ie>"u"?!1:(typeof se.working>"u"&&(se.working=se(new ie)),se.working?se(H):H instanceof ie)}e.isSharedArrayBuffer=he;function Y(H){return c(H)==="[object AsyncFunction]"}e.isAsyncFunction=Y;function F(H){return c(H)==="[object Map Iterator]"}e.isMapIterator=F;function ae(H){return c(H)==="[object Set Iterator]"}e.isSetIterator=ae;function ne(H){return c(H)==="[object Generator]"}e.isGeneratorObject=ne;function ge(H){return c(H)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=ge;function re(H){return v(H,u)}e.isNumberObject=re;function oe(H){return v(H,h)}e.isStringObject=oe;function G(H){return v(H,f)}e.isBooleanObject=G;function pe(H){return o&&v(H,m)}e.isBigIntObject=pe;function ee(H){return s&&v(H,x)}e.isSymbolObject=ee;function M(H){return re(H)||oe(H)||G(H)||pe(H)||ee(H)}e.isBoxedPrimitive=M;function I(H){return typeof Uint8Array<"u"&&(q(H)||he(H))}e.isAnyArrayBuffer=I,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(H){Object.defineProperty(e,H,{enumerable:!1,value:function(){throw new Error(H+" is not supported in userland")}})})})),_ie=$e(((e,t)=>{t.exports=function(a){return a&&typeof a=="object"&&typeof a.copy=="function"&&typeof a.fill=="function"&&typeof a.readUInt8=="function"}})),P$=$e((e=>{Ts();var t=Object.getOwnPropertyDescriptors||function(U){for(var ie=Object.keys(U),se={},he=0;he<ie.length;he++)se[ie[he]]=Object.getOwnPropertyDescriptor(U,ie[he]);return se},r=/%[sdj%]/g;e.format=function(X){if(!P(X)){for(var U=[],ie=0;ie<arguments.length;ie++)U.push(o(arguments[ie]));return U.join(" ")}for(var ie=1,se=arguments,he=se.length,Y=String(X).replace(r,function(ae){if(ae==="%%")return"%";if(ie>=he)return ae;switch(ae){case"%s":return String(se[ie++]);case"%d":return Number(se[ie++]);case"%j":try{return JSON.stringify(se[ie++])}catch{return"[Circular]"}default:return ae}}),F=se[ie];ie<he;F=se[++ie])A(F)||!k(F)?Y+=" "+F:Y+=" "+o(F);return Y},e.deprecate=function(X,U){if(typeof Nt<"u"&&Nt.noDeprecation===!0)return X;if(typeof Nt>"u")return function(){return e.deprecate(X,U).apply(this,arguments)};var ie=!1;function se(){if(!ie){if(Nt.throwDeprecation)throw new Error(U);Nt.traceDeprecation?console.trace(U):console.error(U),ie=!0}return X.apply(this,arguments)}return se};var a={},n=/^$/;if(Nt.env.NODE_DEBUG){var i=Nt.env.NODE_DEBUG;i=i.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),n=new RegExp("^"+i+"$","i")}e.debuglog=function(X){if(X=X.toUpperCase(),!a[X])if(n.test(X)){var U=Nt.pid;a[X]=function(){var ie=e.format.apply(e,arguments);console.error("%s %d: %s",X,U,ie)}}else a[X]=function(){};return a[X]};function o(X,U){var ie={seen:[],stylize:c};return arguments.length>=3&&(ie.depth=arguments[2]),arguments.length>=4&&(ie.colors=arguments[3]),S(U)?ie.showHidden=U:U&&e._extend(ie,U),N(ie.showHidden)&&(ie.showHidden=!1),N(ie.depth)&&(ie.depth=2),N(ie.colors)&&(ie.colors=!1),N(ie.customInspect)&&(ie.customInspect=!0),ie.colors&&(ie.stylize=s),h(ie,X,ie.depth)}e.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function s(X,U){var ie=o.styles[U];return ie?"\x1B["+o.colors[ie][0]+"m"+X+"\x1B["+o.colors[ie][1]+"m":X}function c(X,U){return X}function u(X){var U={};
vendor: 11,677 bytes, lines 1126-1135
1126return X.forEach(function(ie,se){U[ie]=!0}),U}function h(X,U,ie){if(X.customInspect&&U&&_(U.inspect)&&U.inspect!==e.inspect&&!(U.constructor&&U.constructor.prototype===U)){var se=U.inspect(ie,X);return P(se)||(se=h(X,se,ie)),se}var he=f(X,U);if(he)return he;var Y=Object.keys(U),F=u(Y);if(X.showHidden&&(Y=Object.getOwnPropertyNames(U)),$(U)&&(Y.indexOf("message")>=0||Y.indexOf("description")>=0))return m(U);if(Y.length===0){if(_(U)){var ae=U.name?": "+U.name:"";return X.stylize("[Function"+ae+"]","special")}if(O(U))return X.stylize(RegExp.prototype.toString.call(U),"regexp");if(B(U))return X.stylize(Date.prototype.toString.call(U),"date");if($(U))return m(U)}var ne="",ge=!1,re=["{","}"];if(b(U)&&(ge=!0,re=["[","]"]),_(U)&&(ne=" [Function"+(U.name?": "+U.name:"")+"]"),O(U)&&(ne=" "+RegExp.prototype.toString.call(U)),B(U)&&(ne=" "+Date.prototype.toUTCString.call(U)),$(U)&&(ne=" "+m(U)),Y.length===0&&(!ge||U.length==0))return re[0]+ne+re[1];if(ie<0)return O(U)?X.stylize(RegExp.prototype.toString.call(U),"regexp"):X.stylize("[Object]","special");X.seen.push(U);var oe;return ge?oe=x(X,U,ie,F,Y):oe=Y.map(function(G){return v(X,U,ie,F,G,ge)}),X.seen.pop(),y(oe,ne,re)}function f(X,U){if(N(U))return X.stylize("undefined","undefined");if(P(U)){var ie="'"+JSON.stringify(U).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return X.stylize(ie,"string")}if(j(U))return X.stylize(""+U,"number");if(S(U))return X.stylize(""+U,"boolean");if(A(U))return X.stylize("null","null")}function m(X){return"["+Error.prototype.toString.call(X)+"]"}function x(X,U,ie,se,he){for(var Y=[],F=0,ae=U.length;F<ae;++F)Z(U,String(F))?Y.push(v(X,U,ie,se,String(F),!0)):Y.push("");return he.forEach(function(ne){ne.match(/^\d+$/)||Y.push(v(X,U,ie,se,ne,!0))}),Y}function v(X,U,ie,se,he,Y){var F,ae,ne=Object.getOwnPropertyDescriptor(U,he)||{value:U[he]};if(ne.get?ne.set?ae=X.stylize("[Getter/Setter]","special"):ae=X.stylize("[Getter]","special"):ne.set&&(ae=X.stylize("[Setter]","special")),Z(se,he)||(F="["+he+"]"),ae||(X.seen.indexOf(ne.value)<0?(A(ie)?ae=h(X,ne.value,null):ae=h(X,ne.value,ie-1),ae.indexOf(` 1127`)>-1&&(Y?ae=ae.split(` 1128`).map(function(ge){return" "+ge}).join(` 1129`).slice(2):ae=` 1130`+ae.split(` 1131`).map(function(ge){return" "+ge}).join(` 1132`))):ae=X.stylize("[Circular]","special")),N(F)){if(Y&&he.match(/^\d+$/))return ae;F=JSON.stringify(""+he),F.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(F=F.slice(1,-1),F=X.stylize(F,"name")):(F=F.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),F=X.stylize(F,"string"))}return F+": "+ae}function y(X,U,ie){return X.reduce(function(se,he){return he.indexOf(` 1133`)>=0,se+he.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?ie[0]+(U===""?"":U+` 1134 `)+" "+X.join(`, 1135 `)+" "+ie[1]:ie[0]+U+" "+X.join(", ")+" "+ie[1]}e.types=Die();function b(X){return Array.isArray(X)}e.isArray=b;function S(X){return typeof X=="boolean"}e.isBoolean=S;function A(X){return X===null}e.isNull=A;function E(X){return X==null}e.isNullOrUndefined=E;function j(X){return typeof X=="number"}e.isNumber=j;function P(X){return typeof X=="string"}e.isString=P;function C(X){return typeof X=="symbol"}e.isSymbol=C;function N(X){return X===void 0}e.isUndefined=N;function O(X){return k(X)&&D(X)==="[object RegExp]"}e.isRegExp=O,e.types.isRegExp=O;function k(X){return typeof X=="object"&&X!==null}e.isObject=k;function B(X){return k(X)&&D(X)==="[object Date]"}e.isDate=B,e.types.isDate=B;function $(X){return k(X)&&(D(X)==="[object Error]"||X instanceof Error)}e.isError=$,e.types.isNativeError=$;function _(X){return typeof X=="function"}e.isFunction=_;function W(X){return X===null||typeof X=="boolean"||typeof X=="number"||typeof X=="string"||typeof X=="symbol"||typeof X>"u"}e.isPrimitive=W,e.isBuffer=_ie();function D(X){return Object.prototype.toString.call(X)}function J(X){return X<10?"0"+X.toString(10):X.toString(10)}var z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function V(){var X=new Date,U=[J(X.getHours()),J(X.getMinutes()),J(X.getSeconds())].join(":");return[X.getDate(),z[X.getMonth()],U].join(" ")}e.log=function(){console.log("%s - %s",V(),e.format.apply(e,arguments))},e.inherits=Ns(),e._extend=function(X,U){if(!U||!k(U))return X;for(var ie=Object.keys(U),se=ie.length;se--;)X[ie[se]]=U[ie[se]];return X};function Z(X,U){return Object.prototype.hasOwnProperty.call(X,U)}var te=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(U){if(typeof U!="function")throw new TypeError('The "original" argument must be of type Function');if(te&&U[te]){var ie=U[te];if(typeof ie!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(ie,te,{value:ie,enumerable:!1,writable:!1,configurable:!0}),ie}function ie(){for(var se,he,Y=new Promise(function(ne,ge){se=ne,he=ge}),F=[],ae=0;ae<arguments.length;ae++)F.push(arguments[ae]);F.push(function(ne,ge){ne?he(ne):se(ge)});try{U.apply(this,F)}catch(ne){he(ne)}return Y}return Object.setPrototypeOf(ie,Object.getPrototypeOf(U)),te&&Object.defineProperty(ie,te,{value:ie,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(ie,t(U))},e.promisify.custom=te;function K(X,U){if(!X){var ie=new Error("Promise was rejected with a falsy value");ie.reason=X,X=ie}return U(X)}function q(X){if(typeof X!="function")throw new TypeError('The "original" argument must be of type Function');function U(){for(var ie=[],se=0;se<arguments.length;se++)ie.push(arguments[se]);var he=ie.pop();if(typeof he!="function")throw new TypeError("The last argument must be of type Function");var Y=this,F=function(){return he.apply(Y,arguments)};X.apply(this,ie).then(function(ae){Nt.nextTick(F.bind(null,null,ae))},function(ae){Nt.nextTick(K.bind(null,ae,F))})}return Object.setPrototypeOf(U,Object.getPrototypeOf(X)),Object.defineProperties(U,t(X)),U}e.callbackify=q})),Rie=$e(((e,t)=>{function r(v,y){var b=Object.keys(v);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(v);y&&(S=S.filter(function(A){return Object.getOwnPropertyDescriptor(v,A).enumerable})),b.push.apply(b,S)}return b}function a(v){for(var y=1;y<arguments.length;y++){var b=arguments[y]!=null?arguments[y]:{};y%2?r(Object(b),!0).forEach(function(S){n(v,S,b[S])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(b)):r(Object(b)).forEach(function(S){Object.defineProperty(v,S,Object.getOwnPropertyDescriptor(b,S))})}return v}function n(v,y,b){return y=c(y),y in v?Object.defineProperty(v,y,{value:b,enumerable:!0,configurable:!0,writable:!0}):v[y]=b,v}function i(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}function o(v,y){for(var b=0;b<y.length;b++){var S=y[b];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(v,c(S.key),S)}}function s(v,y,b){return y&&o(v.prototype,y),Object.defineProperty(v,"prototype",{writable:!1}),v}function c(v){var y=u(v,"string");return typeof y=="symbol"?y:String(y)}function u(v,y){if(typeof v!="object"||v===null)return v;var b=v[Symbol.toPrimitive];if(b!==void 0){var S=b.call(v,y);if(typeof S!="object")return S;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(v)}var h=xy().Buffer,f=P$().inspect,m=f&&f.custom||"inspect";function x(v,y,b){h.prototype.copy.call(v,y,b)}t.exports=(function(){function v(){i(this,v),this.head=null,this.tail=null,this.length=0}return s(v,[{key:"push",value:function(b){var S={data:b,next:null};this.length>0?this.tail.next=S:this.head=S,this.tail=S,++this.length}},{key:"unshift",value:function(b){var S={data:b,next:this.head};this.length===0&&(this.tail=S),this.head=S,++this.length}},{key:"shift",value:function(){if(this.length!==0){var b=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,b}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(b){if(this.length===0)return"";for(var S=this.head,A=""+S.data;S=S.next;)A+=b+S.data;return A}},{key:"concat",value:function(b){if(this.length===0)return h.alloc(0);for(var S=h.allocUnsafe(b>>>0),A=this.head,E=0;A;)x(A.data,S,E),E+=A.data.length,A=A.next;return S}},{key:"consume",value:function(b,S){var A;return b<this.head.data.length?(A=this.head.data.slice(0,b),this.head.data=this.head.data.slice(b)):b===this.head.data.length?A=this.shift():A=S?this._getString(b):this._getBuffer(b),A}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(b){var S=this.head,A=1,E=S.data;for(b-=E.length;S=S.next;){var j=S.data,P=b>j.length?j.length:b;if(P===j.length?E+=j:E+=j.slice(0,b),b-=P,b===0){P===j.length?(++A,S.next?this.head=S.next:this.head=this.tail=null):(this.head=S,S.data=j.slice(P));break}++A}return this.length-=A,E}},{key:"_getBuffer",value:function(b){var S=h.allocUnsafe(b),A=this.head,E=1;for(A.data.copy(S),b-=A.data.length;A=A.next;){var j=A.data,P=b>j.length?j.length:b;if(j.copy(S,S.length-b,0,P),b-=P,b===0){P===j.length?(++E,A.next?this.head=A.next:this.head=this.tail=null):(this.head=A,A.data=j.slice(P));break}++E}return this.length-=E,S}},{key:m,value:function(b,S){return f(this,a(a({},S),{},{depth:0,customInspect:!1}))}}]),v})()})),j$=$e(((e,t)=>{Ts();function r(c,u){var h=this,f=this._readableState&&this._readableState.destroyed,m=this._writableState&&this._writableState.destroyed;return f||m?(u?u(c):c&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Nt.nextTick(o,this,c)):Nt.nextTick(o,this,c)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(c||null,function(x){!u&&x?h._writableState?h._writableState.errorEmitted?Nt.nextTick(n,h):(h._writableState.errorEmitted=!0,Nt.nextTick(a,h,x)):Nt.nextTick(a,h,x):u?(Nt.nextTick(n,h),u(x)):Nt.nextTick(n,h)}),this)}function a(c,u){o(c,u),n(c)}function n(c){c._writableState&&!c._writableState.emitClose||c._readableState&&!c._readableState.emitClose||c.emit("close")}function i(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(c,u){c.emit("error",u)}function s(c,u){var h=c._readableState,f=c._writableState;h&&h.autoDestroy||f&&f.autoDestroy?c.destroy(u):c.emit("error",u)}t.exports={destroy:r,undestroy:i,errorOrDestroy:s}})),jd=$e(((e,t)=>{function r(u,h){u.prototype=Object.create(h.prototype),u.prototype.constructor=u,u.__proto__=h}var a={};function n(u,h,f){f||(f=Error);function m(v,y,b){return typeof h=="string"?h:h(v,y,b)}var x=(function(v){r(y,v);function y(b,S,A){return v.call(this,m(b,S,A))||this}return y})(f);x.prototype.name=f.name,x.prototype.code=u,a[u]=x}function i(u,h){if(Array.isArray(u)){var f=u.length;return u=u.map(function(m){return String(m)}),f>2?"one of ".concat(h," ").concat(u.slice(0,f-1).join(", "),", or ")+u[f-1]:f===2?"one of ".concat(h," ").concat(u[0]," or ").concat(u[1]):"of ".concat(h," ").concat(u[0])}else return"of ".concat(h," ").concat(String(u))}function o(u,h,f){return u.substr(0,h.length)===h}function s(u,h,f){return(f===void 0||f>u.length)&&(f=u.length),u.substring(f-h.length,f)===h}function c(u,h,f){return typeof f!="number"&&(f=0),f+h.length>u.length?!1:u.indexOf(h,f)!==-1}n("ERR_INVALID_OPT_VALUE",function(u,h){return'The value "'+h+'" is invali
1135d for option "'+u+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(u,h,f){var m;typeof h=="string"&&o(h,"not ")?(m="must not be",h=h.replace(/^not /,"")):m="must be";var x;if(s(u," argument"))x="The ".concat(u," ").concat(m," ").concat(i(h,"type"));else{var v=c(u,".")?"property":"argument";x='The "'.concat(u,'" ').concat(v," ").concat(m," ").concat(i(h,"type"))}return x+=". Received type ".concat(typeof f),x},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(u){return"The "+u+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(u){return"Cannot call "+u+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(u){return"Unknown encoding: "+u},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=a})),N$=$e(((e,t)=>{var r=jd().codes.ERR_INVALID_OPT_VALUE;function a(i,o,s){return i.highWaterMark!=null?i.highWaterMark:o?i[s]:null}function n(i,o,s,c){var u=a(o,c,s);if(u!=null){if(!(isFinite(u)&&Math.floor(u)===u)||u<0)throw new r(c?s:"highWaterMark",u);return Math.floor(u)}return i.objectMode?16:16*1024}t.exports={getHighWaterMark:n}})),Oie=$e(((e,t)=>{Pd(),t.exports=r;function r(n,i){if(a("noDeprecation"))return n;var o=!1;function s(){if(!o){if(a("throwDeprecation"))throw new Error(i);a("traceDeprecation")?console.trace(i):console.warn(i),o=!0}return n.apply(this,arguments)}return s}function a(n){try{if(!Ca.localStorage)return!1}catch{return!1}var i=Ca.localStorage[n];return i==null?!1:String(i).toLowerCase()==="true"}})),T$=$e(((e,t)=>{Pd(),Ts(),t.exports=k;function r(Y){var F=this;this.next=null,this.entry=null,this.finish=function(){he(F,Y)}}var a;k.WritableState=N;var n={deprecate:Oie()},i=m$(),o=xy().Buffer,s=(typeof Ca<"u"?Ca:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function c(Y){return o.from(Y)}function u(Y){return o.isBuffer(Y)||Y instanceof s}var h=j$(),f=N$().getHighWaterMark,m=jd().codes,x=m.ERR_INVALID_ARG_TYPE,v=m.ERR_METHOD_NOT_IMPLEMENTED,y=m.ERR_MULTIPLE_CALLBACK,b=m.ERR_STREAM_CANNOT_PIPE,S=m.ERR_STREAM_DESTROYED,A=m.ERR_STREAM_NULL_VALUES,E=m.ERR_STREAM_WRITE_AFTER_END,j=m.ERR_UNKNOWN_ENCODING,P=h.errorOrDestroy;Ns()(k,i);function C(){}function N(Y,F,ae){a=a||Iu(),Y=Y||{},typeof ae!="boolean"&&(ae=F instanceof a),this.objectMode=!!Y.objectMode,ae&&(this.objectMode=this.objectMode||!!Y.writableObjectMode),this.highWaterMark=f(this,Y,"writableHighWaterMark",ae),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ne=Y.decodeStrings===!1;this.decodeStrings=!ne,this.defaultEncoding=Y.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ge){V(F,ge)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Y.emitClose!==!1,this.autoDestroy=!!Y.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}N.prototype.getBuffer=function(){for(var F=this.bufferedRequest,ae=[];F;)ae.push(F),F=F.next;return ae},(function(){try{Object.defineProperty(N.prototype,"buffer",{get:n.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var O;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(O=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(F){return O.call(this,F)?!0:this!==k?!1:F&&F._writableState instanceof N}})):O=function(F){return F instanceof this};function k(Y){a=a||Iu();var F=this instanceof a;if(!F&&!O.call(k,this))return new k(Y);this._writableState=new N(Y,this,F),this.writable=!0,Y&&(typeof Y.write=="function"&&(this._write=Y.write),typeof Y.writev=="function"&&(this._writev=Y.writev),typeof Y.destroy=="function"&&(this._destroy=Y.destroy),typeof Y.final=="function"&&(this._final=Y.final)),i.call(this)}k.prototype.pipe=function(){P(this,new b)};function B(Y,F){var ae=new E;P(Y,ae),Nt.nextTick(F,ae)}function $(Y,F,ae,ne){var ge;return ae===null?ge=new A:typeof ae!="string"&&!F.objectMode&&(ge=new x("chunk",["string","Buffer"],ae)),ge?(P(Y,ge),Nt.
vendor: 10,779 bytes, line 1135
1135nextTick(ne,ge),!1):!0}k.prototype.write=function(Y,F,ae){var ne=this._writableState,ge=!1,re=!ne.objectMode&&u(Y);return re&&!o.isBuffer(Y)&&(Y=c(Y)),typeof F=="function"&&(ae=F,F=null),re?F="buffer":F||(F=ne.defaultEncoding),typeof ae!="function"&&(ae=C),ne.ending?B(this,ae):(re||$(this,ne,Y,ae))&&(ne.pendingcb++,ge=W(this,ne,re,Y,F,ae)),ge},k.prototype.cork=function(){this._writableState.corked++},k.prototype.uncork=function(){var Y=this._writableState;Y.corked&&(Y.corked--,!Y.writing&&!Y.corked&&!Y.bufferProcessing&&Y.bufferedRequest&&K(this,Y))},k.prototype.setDefaultEncoding=function(F){if(typeof F=="string"&&(F=F.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((F+"").toLowerCase())>-1))throw new j(F);return this._writableState.defaultEncoding=F,this},Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function _(Y,F,ae){return!Y.objectMode&&Y.decodeStrings!==!1&&typeof F=="string"&&(F=o.from(F,ae)),F}Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function W(Y,F,ae,ne,ge,re){if(!ae){var oe=_(F,ne,ge);ne!==oe&&(ae=!0,ge="buffer",ne=oe)}var G=F.objectMode?1:ne.length;F.length+=G;var pe=F.length<F.highWaterMark;if(pe||(F.needDrain=!0),F.writing||F.corked){var ee=F.lastBufferedRequest;F.lastBufferedRequest={chunk:ne,encoding:ge,isBuf:ae,callback:re,next:null},ee?ee.next=F.lastBufferedRequest:F.bufferedRequest=F.lastBufferedRequest,F.bufferedRequestCount+=1}else D(Y,F,!1,G,ne,ge,re);return pe}function D(Y,F,ae,ne,ge,re,oe){F.writelen=ne,F.writecb=oe,F.writing=!0,F.sync=!0,F.destroyed?F.onwrite(new S("write")):ae?Y._writev(ge,F.onwrite):Y._write(ge,re,F.onwrite),F.sync=!1}function J(Y,F,ae,ne,ge){--F.pendingcb,ae?(Nt.nextTick(ge,ne),Nt.nextTick(ie,Y,F),Y._writableState.errorEmitted=!0,P(Y,ne)):(ge(ne),Y._writableState.errorEmitted=!0,P(Y,ne),ie(Y,F))}function z(Y){Y.writing=!1,Y.writecb=null,Y.length-=Y.writelen,Y.writelen=0}function V(Y,F){var ae=Y._writableState,ne=ae.sync,ge=ae.writecb;if(typeof ge!="function")throw new y;if(z(ae),F)J(Y,ae,ne,F,ge);else{var re=q(ae)||Y.destroyed;!re&&!ae.corked&&!ae.bufferProcessing&&ae.bufferedRequest&&K(Y,ae),ne?Nt.nextTick(Z,Y,ae,re,ge):Z(Y,ae,re,ge)}}function Z(Y,F,ae,ne){ae||te(Y,F),F.pendingcb--,ne(),ie(Y,F)}function te(Y,F){F.length===0&&F.needDrain&&(F.needDrain=!1,Y.emit("drain"))}function K(Y,F){F.bufferProcessing=!0;var ae=F.bufferedRequest;if(Y._writev&&ae&&ae.next){var ne=F.bufferedRequestCount,ge=new Array(ne),re=F.corkedRequestsFree;re.entry=ae;for(var oe=0,G=!0;ae;)ge[oe]=ae,ae.isBuf||(G=!1),ae=ae.next,oe+=1;ge.allBuffers=G,D(Y,F,!0,F.length,ge,"",re.finish),F.pendingcb++,F.lastBufferedRequest=null,re.next?(F.corkedRequestsFree=re.next,re.next=null):F.corkedRequestsFree=new r(F),F.bufferedRequestCount=0}else{for(;ae;){var pe=ae.chunk,ee=ae.encoding,M=ae.callback;if(D(Y,F,!1,F.objectMode?1:pe.length,pe,ee,M),ae=ae.next,F.bufferedRequestCount--,F.writing)break}ae===null&&(F.lastBufferedRequest=null)}F.bufferedRequest=ae,F.bufferProcessing=!1}k.prototype._write=function(Y,F,ae){ae(new v("_write()"))},k.prototype._writev=null,k.prototype.end=function(Y,F,ae){var ne=this._writableState;return typeof Y=="function"?(ae=Y,Y=null,F=null):typeof F=="function"&&(ae=F,F=null),Y!=null&&this.write(Y,F),ne.corked&&(ne.corked=1,this.uncork()),ne.ending||se(this,ne,ae),this},Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function q(Y){return Y.ending&&Y.length===0&&Y.bufferedRequest===null&&!Y.finished&&!Y.writing}function X(Y,F){Y._final(function(ae){F.pendingcb--,ae&&P(Y,ae),F.prefinished=!0,Y.emit("prefinish"),ie(Y,F)})}function U(Y,F){!F.prefinished&&!F.finalCalled&&(typeof Y._final=="function"&&!F.destroyed?(F.pendingcb++,F.finalCalled=!0,Nt.nextTick(X,Y,F)):(F.prefinished=!0,Y.emit("prefinish")))}function ie(Y,F){var ae=q(F);if(ae&&(U(Y,F),F.pendingcb===0&&(F.finished=!0,Y.emit("finish"),F.autoDestroy))){var ne=Y._readableState;(!ne||ne.autoDestroy&&ne.endEmitted)&&Y.destroy()}return ae}function se(Y,F,ae){F.ending=!0,ie(Y,F),ae&&(F.finished?Nt.nextTick(ae):Y.once("finish",ae)),F.ended=!0,Y.writable=!1}function he(Y,F,ae){var ne=Y.entry;for(Y.entry=null;ne;){var ge=ne.callback;F.pendingcb--,ge(ae),ne=ne.next}F.corkedRequestsFree.next=Y}Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(F){this._writableState&&(this._writableState.destroyed=F)}}),k.prototype.destroy=h.destroy,k.prototype._undestroy=h.undestroy,k.prototype._destroy=function(Y,F){F(Y)}})),Iu=$e(((e,t)=>{Ts();var r=Object.keys||function(f){var m=[];for(var x in f)m.push(x);return m};t.exports=c;var a=k$(),n=T$();Ns()(c,a);for(var i=r(n.prototype),o=0;o<i.length;o++){var s=i[o];c.prototype[s]||(c.prototype[s]=n.prototype[s])}function c(f){if(!(this instanceof c))return new c(f);a.call(this,f),n.call(this,f),this.allowHalfOpen=!0,f&&(f.readable===!1&&(this.readable=!1),f.writable===!1&&(this.writable=!1),f.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",u)))}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function u(){this._writableState.ended||Nt.nextTick(h,this)}function h(f){f.end()}Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(m){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=m,this._writableState.destroyed=m)}})})),Mie=$e(((e,t)=>{var r=xy(),a=r.Buffer;function n(o,s){for(var c in o)s[c]=o[c]}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?t.exports=r:(n(r,e),e.Buffer=i);function i(o,s,c){return a(o,s,c)}n(a,i),i.from=function(o,s,c){if(typeof o=="number")throw new TypeError("Argument must not be a number");return a(o,s,c)},i.alloc=function(o,s,c){if(typeof o!="number")throw new TypeError("Argument must be a number");var u=a(o);return s!==void 0?typeof c=="string"?u.fill(s,c):u.fill(s):u.fill(0),u},i.allocUnsafe=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return a(o)},i.allocUnsafeSlow=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(o)}})),LC=$e((e=>{var t=Mie().Buffer,r=t.isEncoding||function(A){switch(A=""+A,A&&A.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(A){if(!A)return"utf8";for(var E;;)switch(A){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return A;default:if(E)return;A=(""+A).toLowerCase(),E=!0}}function n(A){var E=a(A);if(typeof E!="string"&&(t.isEncoding===r||!r(A)))throw new Error("Unknown encoding: "+A);return E||A}e.StringDecoder=i;function i(A){this.encoding=n(A);var E;switch(this.encoding){case"utf16le":this.text=m,this.end=x,E=4;break;case"utf8":this.fillLast=u,E=4;break;case"base64":this.text=v,this.end=y,E=3;break;default:this.write=b,this.end=S;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(E)}i.prototype.write=function(A){if(A.length===0)return"";var E,j;if(this.lastNeed){if(E=this.fillLast(A),E===void 0)return"";j=this.lastNeed,this.lastNeed=0}else j=0;return j<A.length?E?E+this.text(A,j):this.text(A,j):E||""},i.prototype.end=f,i.prototype.text=h,i.prototype.fillLast=function(A){if(this.lastNeed<=A.length)return A.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);A.copy(this.lastChar,this.lastTotal-this.lastNeed,0,A.length),this.lastNeed-=A.length};function o(A){return A<=127?0:A>>5===6?2:A>>4===14?3:A>>3===30?4:A>>6===2?-1:-2}function s(A,E,j){var P=E.length-1;if(P<j)return 0;var C=o(E[P]);return C>=0?(C>0&&(A.lastNeed=C-1),C):--P<j||C===-2?0:(C=o(E[P]),C>=0?(C>0&&(A.lastNeed=C-2),C):--P<j||C===-2?0:(C=o(E[P]),C>=0?(C>0&&(C===2?C=0:A.lastNeed=C-3),C):0))}function c(A,E,j){if((E[0]&192)!==128)return A.lastNeed=0,"�";if(A.lastNeed>1&&E.length>1){if((E[1]&192)!==128)return A.lastNeed=1,"�";if(A.lastNeed>2&&E.length>2&&(E[2]&192)!==128)return A.lastNeed=2,"�"}}function u(A){var E=this.lastTotal-this.lastNeed,j=c(this,A);if(j!==void 0)return j;if(this.lastNeed<=A.length)return A.copy(this.lastChar,E,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);A.copy(this.lastChar,E,0,A.length),this.lastNeed-=A.length}function h(A,E){var j=s(this,A,E);if(!this.lastNeed)return A.toString("utf8",E);this.lastTotal=j;var P=A.length-(j-this.lastNeed);return A.copy(this.lastChar,0,P),A.toString("utf8",E,P)}function f(A){var E=A&&A.length?this.write(A):"";return this.lastNeed?E+"�":E}function m(A,E){if((A.length-E)%2===0){var j=A.toString("utf16le",E);if(j){var P=j.charCodeAt(j.length-1);if(P>=55296&&P<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=A[A.length-2],this.lastChar[1]=A[A.length-1],j.slice(0,-1)}return j}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=A[A.length-1],A.toString("utf16le",E,A.length-1)}function x(A){var E=A&&A.length?this.write(A):"";if(this.lastNeed){var j=this.lastTotal-this.lastNeed;return E+this.lastChar.toString("utf16le",0,j)}return E}function v(A,E){var j=(A.length-E)%3;return j===0?A.toString("base64",E):(this.lastNeed=3-j,this.lastTotal=3,j===1?this.lastChar[0]=A[A.length-1]:(this.lastChar[0]=A[A.length-2],this.lastChar[1]=A[A.length-1]),A.toString("base64",E,A.length-j))}function y(A){var E=A&&A.length?this.write(A):"";return this.lastNeed?E+this.lastChar.toString("base64",0,3-this.lastNeed):E}function b(A){return A.toString(this.encoding)}function S(A){return A&&A.length?this.write(A):""}})),yN=$e(((e,t)=>{var r=jd().codes.ERR_STREAM_PREMATURE_CLOSE;function a(s){var c=!1;return function(){if(!c){c=!0;for(var u=arguments.length,h=new Array(u),f=0;f<u;f++)h[f]=arguments[f];s.apply(this,h)}}}function n(){}function i(s){return s.setHeader&&typeof s.abort=="function"}function o(s,c,u){if(typeof c=="function")return o(s,null,c);c||(c={}),u=a(u||n);
vendor: 4,070 bytes, line 1135
1135var h=c.readable||c.readable!==!1&&s.readable,f=c.writable||c.writable!==!1&&s.writable,m=function(){s.writable||v()},x=s._writableState&&s._writableState.finished,v=function(){f=!1,x=!0,h||u.call(s)},y=s._readableState&&s._readableState.endEmitted,b=function(){h=!1,y=!0,f||u.call(s)},S=function(P){u.call(s,P)},A=function(){var P;if(h&&!y)return(!s._readableState||!s._readableState.ended)&&(P=new r),u.call(s,P);if(f&&!x)return(!s._writableState||!s._writableState.ended)&&(P=new r),u.call(s,P)},E=function(){s.req.on("finish",v)};return i(s)?(s.on("complete",v),s.on("abort",A),s.req?E():s.on("request",E)):f&&!s._writableState&&(s.on("end",m),s.on("close",m)),s.on("end",b),s.on("finish",v),c.error!==!1&&s.on("error",S),s.on("close",A),function(){s.removeListener("complete",v),s.removeListener("abort",A),s.removeListener("request",E),s.req&&s.req.removeListener("finish",v),s.removeListener("end",m),s.removeListener("close",m),s.removeListener("finish",v),s.removeListener("end",b),s.removeListener("error",S),s.removeListener("close",A)}}t.exports=o})),Iie=$e(((e,t)=>{Ts();var r;function a(j,P,C){return P=n(P),P in j?Object.defineProperty(j,P,{value:C,enumerable:!0,configurable:!0,writable:!0}):j[P]=C,j}function n(j){var P=i(j,"string");return typeof P=="symbol"?P:String(P)}function i(j,P){if(typeof j!="object"||j===null)return j;var C=j[Symbol.toPrimitive];if(C!==void 0){var N=C.call(j,P);if(typeof N!="object")return N;throw new TypeError("@@toPrimitive must return a primitive value.")}return(P==="string"?String:Number)(j)}var o=yN(),s=Symbol("lastResolve"),c=Symbol("lastReject"),u=Symbol("error"),h=Symbol("ended"),f=Symbol("lastPromise"),m=Symbol("handlePromise"),x=Symbol("stream");function v(j,P){return{value:j,done:P}}function y(j){var P=j[s];if(P!==null){var C=j[x].read();C!==null&&(j[f]=null,j[s]=null,j[c]=null,P(v(C,!1)))}}function b(j){Nt.nextTick(y,j)}function S(j,P){return function(C,N){j.then(function(){if(P[h]){C(v(void 0,!0));return}P[m](C,N)},N)}}var A=Object.getPrototypeOf(function(){}),E=Object.setPrototypeOf((r={get stream(){return this[x]},next:function(){var P=this,C=this[u];if(C!==null)return Promise.reject(C);if(this[h])return Promise.resolve(v(void 0,!0));if(this[x].destroyed)return new Promise(function(B,$){Nt.nextTick(function(){P[u]?$(P[u]):B(v(void 0,!0))})});var N=this[f],O;if(N)O=new Promise(S(N,this));else{var k=this[x].read();if(k!==null)return Promise.resolve(v(k,!1));O=new Promise(this[m])}return this[f]=O,O}},a(r,Symbol.asyncIterator,function(){return this}),a(r,"return",function(){var P=this;return new Promise(function(C,N){P[x].destroy(null,function(O){if(O){N(O);return}C(v(void 0,!0))})})}),r),A);t.exports=function(P){var C,N=Object.create(E,(C={},a(C,x,{value:P,writable:!0}),a(C,s,{value:null,writable:!0}),a(C,c,{value:null,writable:!0}),a(C,u,{value:null,writable:!0}),a(C,h,{value:P._readableState.endEmitted,writable:!0}),a(C,m,{value:function(k,B){var $=N[x].read();$?(N[f]=null,N[s]=null,N[c]=null,k(v($,!1))):(N[s]=k,N[c]=B)},writable:!0}),C));return N[f]=null,o(P,function(O){if(O&&O.code!=="ERR_STREAM_PREMATURE_CLOSE"){var k=N[c];k!==null&&(N[f]=null,N[s]=null,N[c]=null,k(O)),N[u]=O;return}var B=N[s];B!==null&&(N[f]=null,N[s]=null,N[c]=null,B(v(void 0,!0))),N[h]=!0}),P.on("readable",b.bind(null,N)),N}})),Bie=$e(((e,t)=>{t.exports=function(){throw new Error("Readable.from is not available in the browser")}})),k$=$e(((e,t)=>{Pd(),Ts(),t.exports=B;var r;B.ReadableState=k,hN().EventEmitter;var a=function(oe,G){return oe.listeners(G).length},n=m$(),i=xy().Buffer,o=(typeof Ca<"u"?Ca:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function s(re){return i.from(re)}function c(re){return i.isBuffer(re)||re instanceof o}var u=P$(),h;u&&u.debuglog?h=u.debuglog("stream"):h=function(){};var f=Rie(),m=j$(),x=N$().getHighWaterMark,v=jd().codes,y=v.ERR_INVALID_ARG_TYPE,b=v.ERR_STREAM_PUSH_AFTER_EOF,S=v.ERR_METHOD_NOT_IMPLEMENTED,A=v.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,E,j,P;Ns()(B,n);var C=m.errorOrDestroy,N=["error","close","destroy","pause","resume"];
vendor: 13,623 bytes, line 1135
1135function O(re,oe,G){if(typeof re.prependListener=="function")return re.prependListener(oe,G);!re._events||!re._events[oe]?re.on(oe,G):Array.isArray(re._events[oe])?re._events[oe].unshift(G):re._events[oe]=[G,re._events[oe]]}function k(re,oe,G){r=r||Iu(),re=re||{},typeof G!="boolean"&&(G=oe instanceof r),this.objectMode=!!re.objectMode,G&&(this.objectMode=this.objectMode||!!re.readableObjectMode),this.highWaterMark=x(this,re,"readableHighWaterMark",G),this.buffer=new f,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=re.emitClose!==!1,this.autoDestroy=!!re.autoDestroy,this.destroyed=!1,this.defaultEncoding=re.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,re.encoding&&(E||(E=LC().StringDecoder),this.decoder=new E(re.encoding),this.encoding=re.encoding)}function B(re){if(r=r||Iu(),!(this instanceof B))return new B(re);var oe=this instanceof r;this._readableState=new k(re,this,oe),this.readable=!0,re&&(typeof re.read=="function"&&(this._read=re.read),typeof re.destroy=="function"&&(this._destroy=re.destroy)),n.call(this)}Object.defineProperty(B.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(oe){this._readableState&&(this._readableState.destroyed=oe)}}),B.prototype.destroy=m.destroy,B.prototype._undestroy=m.undestroy,B.prototype._destroy=function(re,oe){oe(re)},B.prototype.push=function(re,oe){var G=this._readableState,pe;return G.objectMode?pe=!0:typeof re=="string"&&(oe=oe||G.defaultEncoding,oe!==G.encoding&&(re=i.from(re,oe),oe=""),pe=!0),$(this,re,oe,!1,pe)},B.prototype.unshift=function(re){return $(this,re,null,!0,!1)};function $(re,oe,G,pe,ee){h("readableAddChunk",oe);var M=re._readableState;if(oe===null)M.reading=!1,V(re,M);else{var I;if(ee||(I=W(M,oe)),I)C(re,I);else if(M.objectMode||oe&&oe.length>0)if(typeof oe!="string"&&!M.objectMode&&Object.getPrototypeOf(oe)!==i.prototype&&(oe=s(oe)),pe)M.endEmitted?C(re,new A):_(re,M,oe,!0);else if(M.ended)C(re,new b);else{if(M.destroyed)return!1;M.reading=!1,M.decoder&&!G?(oe=M.decoder.write(oe),M.objectMode||oe.length!==0?_(re,M,oe,!1):K(re,M)):_(re,M,oe,!1)}else pe||(M.reading=!1,K(re,M))}return!M.ended&&(M.length<M.highWaterMark||M.length===0)}function _(re,oe,G,pe){oe.flowing&&oe.length===0&&!oe.sync?(oe.awaitDrain=0,re.emit("data",G)):(oe.length+=oe.objectMode?1:G.length,pe?oe.buffer.unshift(G):oe.buffer.push(G),oe.needReadable&&Z(re)),K(re,oe)}function W(re,oe){var G;return!c(oe)&&typeof oe!="string"&&oe!==void 0&&!re.objectMode&&(G=new y("chunk",["string","Buffer","Uint8Array"],oe)),G}B.prototype.isPaused=function(){return this._readableState.flowing===!1},B.prototype.setEncoding=function(re){E||(E=LC().StringDecoder);var oe=new E(re);this._readableState.decoder=oe,this._readableState.encoding=this._readableState.decoder.encoding;for(var G=this._readableState.buffer.head,pe="";G!==null;)pe+=oe.write(G.data),G=G.next;return this._readableState.buffer.clear(),pe!==""&&this._readableState.buffer.push(pe),this._readableState.length=pe.length,this};var D=1073741824;function J(re){return re>=D?re=D:(re--,re|=re>>>1,re|=re>>>2,re|=re>>>4,re|=re>>>8,re|=re>>>16,re++),re}function z(re,oe){return re<=0||oe.length===0&&oe.ended?0:oe.objectMode?1:re!==re?oe.flowing&&oe.length?oe.buffer.head.data.length:oe.length:(re>oe.highWaterMark&&(oe.highWaterMark=J(re)),re<=oe.length?re:oe.ended?oe.length:(oe.needReadable=!0,0))}B.prototype.read=function(re){h("read",re),re=parseInt(re,10);var oe=this._readableState,G=re;if(re!==0&&(oe.emittedReadable=!1),re===0&&oe.needReadable&&((oe.highWaterMark!==0?oe.length>=oe.highWaterMark:oe.length>0)||oe.ended))return h("read: emitReadable",oe.length,oe.ended),oe.length===0&&oe.ended?ae(this):Z(this),null;if(re=z(re,oe),re===0&&oe.ended)return oe.length===0&&ae(this),null;var pe=oe.needReadable;h("need readable",pe),(oe.length===0||oe.length-re<oe.highWaterMark)&&(pe=!0,h("length less than watermark",pe)),oe.ended||oe.reading?(pe=!1,h("reading or ended",pe)):pe&&(h("do read"),oe.reading=!0,oe.sync=!0,oe.length===0&&(oe.needReadable=!0),this._read(oe.highWaterMark),oe.sync=!1,oe.reading||(re=z(G,oe)));var ee;return re>0?ee=F(re,oe):ee=null,ee===null?(oe.needReadable=oe.length<=oe.highWaterMark,re=0):(oe.length-=re,oe.awaitDrain=0),oe.length===0&&(oe.ended||(oe.needReadable=!0),G!==re&&oe.ended&&ae(this)),ee!==null&&this.emit("data",ee),ee};function V(re,oe){if(h("onEofChunk"),!oe.ended){if(oe.decoder){var G=oe.decoder.end();G&&G.length&&(oe.buffer.push(G),oe.length+=oe.objectMode?1:G.length)}oe.ended=!0,oe.sync?Z(re):(oe.needReadable=!1,oe.emittedReadable||(oe.emittedReadable=!0,te(re)))}}function Z(re){var oe=re._readableState;h("emitReadable",oe.needReadable,oe.emittedReadable),oe.needReadable=!1,oe.emittedReadable||(h("emitReadable",oe.flowing),oe.emittedReadable=!0,Nt.nextTick(te,re))}function te(re){var oe=re._readableState;h("emitReadable_",oe.destroyed,oe.length,oe.ended),!oe.destroyed&&(oe.length||oe.ended)&&(re.emit("readable"),oe.emittedReadable=!1),oe.needReadable=!oe.flowing&&!oe.ended&&oe.length<=oe.highWaterMark,Y(re)}function K(re,oe){oe.readingMore||(oe.readingMore=!0,Nt.nextTick(q,re,oe))}function q(re,oe){for(;!oe.reading&&!oe.ended&&(oe.length<oe.highWaterMark||oe.flowing&&oe.length===0);){var G=oe.length;if(h("maybeReadMore read 0"),re.read(0),G===oe.length)break}oe.readingMore=!1}B.prototype._read=function(re){C(this,new S("_read()"))},B.prototype.pipe=function(re,oe){var G=this,pe=this._readableState;switch(pe.pipesCount){case 0:pe.pipes=re;break;case 1:pe.pipes=[pe.pipes,re];break;default:pe.pipes.push(re);break}pe.pipesCount+=1,h("pipe count=%d opts=%j",pe.pipesCount,oe);var ee=(!oe||oe.end!==!1)&&re!==Nt.stdout&&re!==Nt.stderr?I:xe;pe.endEmitted?Nt.nextTick(ee):G.once("end",ee),re.on("unpipe",M);function M(Ee,ze){h("onunpipe"),Ee===G&&ze&&ze.hasUnpiped===!1&&(ze.hasUnpiped=!0,fe())}function I(){h("onend"),re.end()}var H=X(G);re.on("drain",H);var ce=!1;function fe(){h("cleanup"),re.removeListener("close",Ne),re.removeListener("finish",De),re.removeListener("drain",H),re.removeListener("error",we),re.removeListener("unpipe",M),G.removeListener("end",I),G.removeListener("end",xe),G.removeListener("data",ue),ce=!0,pe.awaitDrain&&(!re._writableState||re._writableState.needDrain)&&H()}G.on("data",ue);function ue(Ee){h("ondata");var ze=re.write(Ee);h("dest.write",ze),ze===!1&&((pe.pipesCount===1&&pe.pipes===re||pe.pipesCount>1&&ge(pe.pipes,re)!==-1)&&!ce&&(h("false write response, pause",pe.awaitDrain),pe.awaitDrain++),G.pause())}function we(Ee){h("onerror",Ee),xe(),re.removeListener("error",we),a(re,"error")===0&&C(re,Ee)}O(re,"error",we);function Ne(){re.removeListener("finish",De),xe()}re.once("close",Ne);function De(){h("onfinish"),re.removeListener("close",Ne),xe()}re.once("finish",De);function xe(){h("unpipe"),G.unpipe(re)}return re.emit("pipe",G),pe.flowing||(h("pipe resume"),G.resume()),re};function X(re){return function(){var G=re._readableState;h("pipeOnDrain",G.awaitDrain),G.awaitDrain&&G.awaitDrain--,G.awaitDrain===0&&a(re,"data")&&(G.flowing=!0,Y(re))}}B.prototype.unpipe=function(re){var oe=this._readableState,G={hasUnpiped:!1};if(oe.pipesCount===0)return this;if(oe.pipesCount===1)return re&&re!==oe.pipes?this:(re||(re=oe.pipes),oe.pipes=null,oe.pipesCount=0,oe.flowing=!1,re&&re.emit("unpipe",this,G),this);if(!re){var pe=oe.pipes,ee=oe.pipesCount;oe.pipes=null,oe.pipesCount=0,oe.flowing=!1;for(var M=0;M<ee;M++)pe[M].emit("unpipe",this,{hasUnpiped:!1});return this}var I=ge(oe.pipes,re);return I===-1?this:(oe.pipes.splice(I,1),oe.pipesCount-=1,oe.pipesCount===1&&(oe.pipes=oe.pipes[0]),re.emit("unpipe",this,G),this)},B.prototype.on=function(re,oe){var G=n.prototype.on.call(this,re,oe),pe=this._readableState;return re==="data"?(pe.readableListening=this.listenerCount("readable")>0,pe.flowing!==!1&&this.resume()):re==="readable"&&!pe.endEmitted&&!pe.readableListening&&(pe.readableListening=pe.needReadable=!0,pe.flowing=!1,pe.emittedReadable=!1,h("on readable",pe.length,pe.reading),pe.length?Z(this):pe.reading||Nt.nextTick(ie,this)),G},B.prototype.addListener=B.prototype.on,B.prototype.removeListener=function(re,oe){var G=n.prototype.removeListener.call(this,re,oe);return re==="readable"&&Nt.nextTick(U,this),G},B.prototype.removeAllListeners=function(re){var oe=n.prototype.removeAllListeners.apply(this,arguments);return(re==="readable"||re===void 0)&&Nt.nextTick(U,this),oe};function U(re){var oe=re._readableState;oe.readableListening=re.listenerCount("readable")>0,oe.resumeScheduled&&!oe.paused?oe.flowing=!0:re.listenerCount("data")>0&&re.resume()}function ie(re){h("readable nexttick read 0"),re.read(0)}B.prototype.resume=function(){var re=this._readableState;return re.flowing||(h("resume"),re.flowing=!re.readableListening,se(this,re)),re.paused=!1,this};function se(re,oe){oe.resumeScheduled||(oe.resumeScheduled=!0,Nt.nextTick(he,re,oe))}function he(re,oe){h("resume",oe.reading),oe.reading||re.read(0),oe.resumeScheduled=!1,re.emit("resume"),Y(re),oe.flowing&&!oe.reading&&re.read(0)}B.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Y(re){var oe=re._readableState;for(h("flow",oe.flowing);oe.flowing&&re.read()!==null;);}B.prototype.wrap=function(re){var oe=this,G=this._readableState,pe=!1;re.on("end",function(){if(h("wrapped end"),G.decoder&&!G.ended){var I=G.decoder.end();I&&I.length&&oe.push(I)}oe.push(null)}),re.on("data",function(I){h("wrapped data"),G.decoder&&(I=G.decoder.write(I)),!(G.objectMode&&I==null)&&(!G.objectMode&&(!I||!I.length)||oe.push(I)||(pe=!0,re.pause()))});for(var ee in re)this[ee]===void 0&&typeof re[ee]=="function"&&(this[ee]=(function(H){return function(){return re[H].apply(re,arguments)}})(ee));for(var M=0;M<N.length;M++)re.on(N[M],this.emit.bind(this,N[M]));return this._read=function(I){h("wrapped _read",I),pe&&(pe=!1,re.resume())},this},typeof Symbol=="function"&&(B.prototype[Symbol.asyncIterator]=function(){return j===void 0&&(j=Iie()),j(this)}),Object.defineProperty(B.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(B.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(B.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(oe){this._readableState&&(this._readableState.flowing=oe)}}),B._fromList=F,Object.defineProperty(B.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function F(re,oe){if(oe.length===0)return null;var G;return oe.objectMode?G=oe.buffer.shift():!re||re>=oe.length?(oe.decoder?G=oe.buffer.join(""):oe.buffer.length===1?G=oe.buffer.first():G=oe.buffer.concat(oe.length),oe.buffer.clear()):G=oe.buffer.consume(re,oe.decoder),G}function ae(re){var oe=re._readableState;h("endReadable",oe.endEmitted),oe.endEmitted||(oe.ended=!0,Nt.nextTick(ne,oe,re))}function ne(re,oe){if(h("endReadableNT",re.endEmitted,re.length),!re.endEmitted&&re.length===0&&(re.endEmitted=!0,oe.readable=!1,oe.emit("end"),re.autoDestroy)){var G=oe._writableState;(!G||G.autoDestroy&&G.finished)&&oe.destroy()}}typeof Symbol=="function"&&(B.from=function(re,oe){return P===void 0&&(P=Bie()),P(B,re,oe)});function ge(re,oe){for(var G=0,pe=re.length;G<pe;G++)if(re[G]===oe)return G;return-1}})),D$=$e(((e,t)=>{t.exports=u;var r=jd().codes,a=r.ERR_METHOD_NOT_IMPLEMENTED,n=r.ERR_MULTIPLE_CALLBACK,i=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=r.ERR_TRANSFORM_WITH_LENGTH_0,s=Iu();Ns()(u,s);function c(m,x){var v=this._transformState;v.transforming=!1;var y=v.writecb;if(y===null)return this.emit("error",new n);v.writechunk=null,v.writecb=null,x!=null&&this.push(x),y(m);var b=this._readableState;b.reading=!1,(b.needReadable||b.length<b.highWaterMark)&&this._read(b.highWaterMark)}function u(m){if(!(this instanceof u))return new u(m);s.call(this,m),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,m&&(typeof m.transform=="function"&&(this._transform=m.transform),typeof m.flush=="function"&&(this._flush=m.flush)),this.on("prefinish",h)}function h(){var m=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(x,v){f(m,x,v)}):f(this,null,null)}u.prototype.push=function(m,x){return this._transformState.needTransform=!1,s.prototype.push.call(this,m,x)},u.prototype._transform=function(m,x,v){v(new a("_transform()"))},u.prototype._write=function(m,x,v){var y=this._transformState;if(y.writecb=v,y.writechunk=m,y.writeencoding=x,!y.transforming){var b=this._readableState;(y.needTransform||b.needReadable||b.length<b.highWaterMark)&&this._read(b.highWaterMark)}},u.prototype._read=function(m){var x=this._transformState;x.writechunk!==null&&!x.transforming?(x.transforming=!0,this._transform(x.writechunk,x.writeencoding,x.afterTransform)):x.needTransform=!0},u.prototype._destroy=function(m,x){s.prototype._destroy.call(this,m,function(v){x(v)})};function f(m,x,v){if(x)return m.emit("error",x);if(v!=null&&m.push(v),m._writableState.length)throw new o;
1135if(m._transformState.transforming)throw new i;return m.push(null)}})),Lie=$e(((e,t)=>{t.exports=a;var r=D$();Ns()(a,r);function a(n){if(!(this instanceof a))return new a(n);r.call(this,n)}a.prototype._transform=function(n,i,o){o(null,n)}})),zie=$e(((e,t)=>{var r;function a(v){var y=!1;return function(){y||(y=!0,v.apply(void 0,arguments))}}var n=jd().codes,i=n.ERR_MISSING_ARGS,o=n.ERR_STREAM_DESTROYED;function s(v){if(v)throw v}function c(v){return v.setHeader&&typeof v.abort=="function"}function u(v,y,b,S){S=a(S);var A=!1;v.on("close",function(){A=!0}),r===void 0&&(r=yN()),r(v,{readable:y,writable:b},function(j){if(j)return S(j);A=!0,S()});var E=!1;return function(j){if(!A&&!E){if(E=!0,c(v))return v.abort();if(typeof v.destroy=="function")return v.destroy();S(j||new o("pipe"))}}}function h(v){v()}function f(v,y){return v.pipe(y)}function m(v){return!v.length||typeof v[v.length-1]!="function"?s:v.pop()}function x(){for(var v=arguments.length,y=new Array(v),b=0;b<v;b++)y[b]=arguments[b];var S=m(y);if(Array.isArray(y[0])&&(y=y[0]),y.length<2)throw new i("streams");var A,E=y.map(function(j,P){var C=P<y.length-1;return u(j,C,P>0,function(N){A||(A=N),N&&E.forEach(h),!C&&(E.forEach(h),S(A))})});return y.reduce(f)}t.exports=x})),bN=$e(((e,t)=>{t.exports=a;var r=hN().EventEmitter;Ns()(a,r),a.Readable=k$(),a.Writable=T$(),a.Duplex=Iu(),a.Transform=D$(),a.PassThrough=Lie(),a.finished=yN(),a.pipeline=zie(),a.Stream=a;function a(){r.call(this)}a.prototype.pipe=function(n,i){var o=this;function s(v){n.writable&&n.write(v)===!1&&o.pause&&o.pause()}o.on("data",s);function c(){o.readable&&o.resume&&o.resume()}n.on("drain",c),!n._isStdio&&(!i||i.end!==!1)&&(o.on("end",h),o.on("close",f));var u=!1;function h(){u||(u=!0,n.end())}function f(){u||(u=!0,typeof n.destroy=="function"&&n.destroy())}function m(v){if(x(),r.listenerCount(this,"error")===0)throw v}o.on("error",m),n.on("error",m);function x(){o.removeListener("data",s),n.removeListener("drain",c),o.removeListener("end",h),o.removeListener("close",f),o.removeListener("error",m),n.removeListener("error",m),o.removeListener("end",x),o.removeListener("close",x),n.removeListener("close",x)}return o.on("end",x),o.on("close",x),n.on("close",x),n.emit("pipe",o),n}})),Fie=$e((e=>{(function(t){t.parser=function(Y,F){return new a(Y,F)},t.SAXParser=a,t.SAXStream=h,t.createStream=u,t.MAX_BUFFER_LENGTH=64*1024;var r=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function a(Y,F){if(!(this instanceof a))return new a(Y,F);var ae=this;i(ae),ae.q=ae.c="",ae.bufferCheckPosition=t.MAX_BUFFER_LENGTH,ae.opt=F||{},ae.opt.lowercase=ae.opt.lowercase||ae.opt.lowercasetags,ae.looseCase=ae.opt.lowercase?"toLowerCase":"toUpperCase",ae.tags=[],ae.closed=ae.closedRoot=ae.sawRoot=!1,ae.tag=ae.error=null,ae.strict=!!Y,ae.noscript=!!(Y||ae.opt.noscript),ae.state=k.BEGIN,ae.strictEntities=ae.opt.strictEntities,ae.ENTITIES=ae.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),ae.attribList=[],ae.opt.xmlns&&(ae.ns=Object.create(y)),ae.trackPosition=ae.opt.position!==!1,ae.trackPosition&&(ae.position=ae.line=ae.column=0),$(ae,"onready")}Object.create||(Object.create=function(Y){function F(){}return F.prototype=Y,new F}),Object.keys||(Object.keys=function(Y){var F=[];for(var ae in Y)Y.hasOwnProperty(ae)&&F.push(ae);return F});function n(Y){for(var F=Math.max(t.MAX_BUFFER_LENGTH,10),ae=0,ne=0,ge=r.length;ne<ge;ne++){var re=Y[r[ne]].length;if(re>F)switch(r[ne]){case"textNode":W(Y);break;case"cdata":_(Y,"oncdata",Y.cdata),Y.cdata="";break;case"script":_(Y,"onscript",Y.script),Y.script="";break;default:J(Y,"Max buffer length exceeded: "+r[ne])}ae=Math.max(ae,re)}Y.bufferCheckPosition=t.MAX_BUFFER_LENGTH-ae+Y.position}function i(Y){for(var F=0,ae=r.length;F<ae;F++)Y[r[F]]=""}function o(Y){W(Y),Y.cdata!==""&&(_(Y,"oncdata",Y.cdata),Y.cdata=""),Y.script!==""&&(_(Y,"onscript",Y.script),Y.script="")}a.prototype={end:function(){z(this)},write:he,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){o(this)}};var s;try{s=bN().Stream}catch{s=function(){}}var c=t.EVENTS.filter(function(Y){return Y!=="error"&&Y!=="end"});function u(Y,F){return new h(Y,F)}function h(Y,F){if(!(this instanceof h))return new h(Y,F);s.apply(this),this._parser=new a(Y,F),this.writable=!0,this.readable=!0;var ae=this;this._parser.onend=function(){ae.emit("end")},this._parser.onerror=function(ne){ae.emit("error",ne),ae._parser.error=null}
vendor: 28,515 bytes, lines 1135-1145
1135,this._decoder=null,c.forEach(function(ne){Object.defineProperty(ae,"on"+ne,{get:function(){return ae._parser["on"+ne]},set:function(ge){if(!ge)return ae.removeAllListeners(ne),ae._parser["on"+ne]=ge,ge;ae.on(ne,ge)},enumerable:!0,configurable:!1})})}h.prototype=Object.create(s.prototype,{constructor:{value:h}}),h.prototype.write=function(Y){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(Y)){if(!this._decoder){var F=LC().StringDecoder;this._decoder=new F("utf8")}Y=this._decoder.write(Y)}return this._parser.write(Y.toString()),this.emit("data",Y),!0},h.prototype.end=function(Y){return Y&&Y.length&&this.write(Y),this._parser.end(),!0},h.prototype.on=function(Y,F){var ae=this;return!ae._parser["on"+Y]&&c.indexOf(Y)!==-1&&(ae._parser["on"+Y]=function(){var ne=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);ne.splice(0,0,Y),ae.emit.apply(ae,ne)}),s.prototype.on.call(ae,Y,F)};var f="[CDATA[",m="DOCTYPE",x="http://www.w3.org/XML/1998/namespace",v="http://www.w3.org/2000/xmlns/",y={xml:x,xmlns:v},b=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,S=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,A=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,E=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function j(Y){return Y===" "||Y===` 1136`||Y==="\r"||Y===" "}function P(Y){return Y==='"'||Y==="'"}function C(Y){return Y===">"||j(Y)}function N(Y,F){return Y.test(F)}function O(Y,F){return!N(Y,F)}var k=0;t.STATE={BEGIN:k++,BEGIN_WHITESPACE:k++,TEXT:k++,TEXT_ENTITY:k++,OPEN_WAKA:k++,SGML_DECL:k++,SGML_DECL_QUOTED:k++,DOCTYPE:k++,DOCTYPE_QUOTED:k++,DOCTYPE_DTD:k++,DOCTYPE_DTD_QUOTED:k++,COMMENT_STARTING:k++,COMMENT:k++,COMMENT_ENDING:k++,COMMENT_ENDED:k++,CDATA:k++,CDATA_ENDING:k++,CDATA_ENDING_2:k++,PROC_INST:k++,PROC_INST_BODY:k++,PROC_INST_ENDING:k++,OPEN_TAG:k++,OPEN_TAG_SLASH:k++,ATTRIB:k++,ATTRIB_NAME:k++,ATTRIB_NAME_SAW_WHITE:k++,ATTRIB_VALUE:k++,ATTRIB_VALUE_QUOTED:k++,ATTRIB_VALUE_CLOSED:k++,ATTRIB_VALUE_UNQUOTED:k++,ATTRIB_VALUE_ENTITY_Q:k++,ATTRIB_VALUE_ENTITY_U:k++,CLOSE_TAG:k++,CLOSE_TAG_SAW_WHITE:k++,SCRIPT:k++,SCRIPT_ENDING:k++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(Y){var F=t.ENTITIES[Y],ae=typeof F=="number"?String.fromCharCode(F):F;t.ENTITIES[Y]=ae});for(var B in t.STATE)t.STATE[t.STATE[B]]=B;k=t.STATE;function $(Y,F,ae){Y[F]&&Y[F](ae)}function _(Y,F,ae){Y.textNode&&W(Y),$(Y,F,ae)}function W(Y){Y.textNode=D(Y.opt,Y.textNode),Y.textNode&&$(Y,"ontext",Y.textNode),Y.textNode=""}function D(Y,F){return Y.trim&&(F=F.trim()),Y.normalize&&(F=F.replace(/\s+/g," ")),F}function J(Y,F){return W(Y),Y.trackPosition&&(F+=` 1137Line: `+Y.line+` 1138Column: `+Y.column+` 1139Char: `+Y.c),F=new Error(F),Y.error=F,$(Y,"onerror",F),Y}function z(Y){return Y.sawRoot&&!Y.closedRoot&&V(Y,"Unclosed root tag"),Y.state!==k.BEGIN&&Y.state!==k.BEGIN_WHITESPACE&&Y.state!==k.TEXT&&J(Y,"Unexpected end"),W(Y),Y.c="",Y.closed=!0,$(Y,"onend"),a.call(Y,Y.strict,Y.opt),Y}function V(Y,F){if(typeof Y!="object"||!(Y instanceof a))throw new Error("bad call to strictFail");Y.strict&&J(Y,F)}function Z(Y){Y.strict||(Y.tagName=Y.tagName[Y.looseCase]());var F=Y.tags[Y.tags.length-1]||Y,ae=Y.tag={name:Y.tagName,attributes:{}};Y.opt.xmlns&&(ae.ns=F.ns),Y.attribList.length=0,_(Y,"onopentagstart",ae)}function te(Y,F){var ae=Y.indexOf(":")<0?["",Y]:Y.split(":"),ne=ae[0],ge=ae[1];return F&&Y==="xmlns"&&(ne="xmlns",ge=""),{prefix:ne,local:ge}}function K(Y){if(Y.strict||(Y.attribName=Y.attribName[Y.looseCase]()),Y.attribList.indexOf(Y.attribName)!==-1||Y.tag.attributes.hasOwnProperty(Y.attribName)){Y.attribName=Y.attribValue="";return}if(Y.opt.xmlns){var F=te(Y.attribName,!0),ae=F.prefix,ne=F.local;if(ae==="xmlns")if(ne==="xml"&&Y.attribValue!==x)V(Y,"xml: prefix must be bound to "+x+` 1140Actual: `+Y.attribValue);else if(ne==="xmlns"&&Y.attribValue!==v)V(Y,"xmlns: prefix must be bound to "+v+` 1141Actual: `+Y.attribValue);else{var ge=Y.tag,re=Y.tags[Y.tags.length-1]||Y;ge.ns===re.ns&&(ge.ns=Object.create(re.ns)),ge.ns[ne]=Y.attribValue}Y.attribList.push([Y.attribName,Y.attribValue])}else Y.tag.attributes[Y.attribName]=Y.attribValue,_(Y,"onattribute",{name:Y.attribName,value:Y.attribValue});Y.attribName=Y.attribValue=""}function q(Y,F){if(Y.opt.xmlns){var ae=Y.tag,ne=te(Y.tagName);ae.prefix=ne.prefix,ae.local=ne.local,ae.uri=ae.ns[ne.prefix]||"",ae.prefix&&!ae.uri&&(V(Y,"Unbound namespace prefix: "+JSON.stringify(Y.tagName)),ae.uri=ne.prefix);var ge=Y.tags[Y.tags.length-1]||Y;ae.ns&&ge.ns!==ae.ns&&Object.keys(ae.ns).forEach(function(ue){_(Y,"onopennamespace",{prefix:ue,uri:ae.ns[ue]})});for(var re=0,oe=Y.attribList.length;re<oe;re++){var G=Y.attribList[re],pe=G[0],ee=G[1],M=te(pe,!0),I=M.prefix,H=M.local,ce=I===""?"":ae.ns[I]||"",fe={name:pe,value:ee,prefix:I,local:H,uri:ce};I&&I!=="xmlns"&&!ce&&(V(Y,"Unbound namespace prefix: "+JSON.stringify(I)),fe.uri=I),Y.tag.attributes[pe]=fe,_(Y,"onattribute",fe)}Y.attribList.length=0}Y.tag.isSelfClosing=!!F,Y.sawRoot=!0,Y.tags.push(Y.tag),_(Y,"onopentag",Y.tag),F||(!Y.noscript&&Y.tagName.toLowerCase()==="script"?Y.state=k.SCRIPT:Y.state=k.TEXT,Y.tag=null,Y.tagName=""),Y.attribName=Y.attribValue="",Y.attribList.length=0}function X(Y){if(!Y.tagName){V(Y,"Weird empty close tag."),Y.textNode+="</>",Y.state=k.TEXT;return}if(Y.script){if(Y.tagName!=="script"){Y.script+="</"+Y.tagName+">",Y.tagName="",Y.state=k.SCRIPT;return}_(Y,"onscript",Y.script),Y.script=""}var F=Y.tags.length,ae=Y.tagName;Y.strict||(ae=ae[Y.looseCase]());for(var ne=ae;F--&&Y.tags[F].name!==ne;)V(Y,"Unexpected close tag");if(F<0){V(Y,"Unmatched closing tag: "+Y.tagName),Y.textNode+="</"+Y.tagName+">",Y.state=k.TEXT;return}Y.tagName=ae;for(var ge=Y.tags.length;ge-- >F;){var re=Y.tag=Y.tags.pop();Y.tagName=Y.tag.name,_(Y,"onclosetag",Y.tagName);var oe={};for(var G in re.ns)oe[G]=re.ns[G];var pe=Y.tags[Y.tags.length-1]||Y;Y.opt.xmlns&&re.ns!==pe.ns&&Object.keys(re.ns).forEach(function(ee){var M=re.ns[ee];_(Y,"onclosenamespace",{prefix:ee,uri:M})})}F===0&&(Y.closedRoot=!0),Y.tagName=Y.attribValue=Y.attribName="",Y.attribList.length=0,Y.state=k.TEXT}function U(Y){var F=Y.entity,ae=F.toLowerCase(),ne,ge="";return Y.ENTITIES[F]?Y.ENTITIES[F]:Y.ENTITIES[ae]?Y.ENTITIES[ae]:(F=ae,F.charAt(0)==="#"&&(F.charAt(1)==="x"?(F=F.slice(2),ne=parseInt(F,16),ge=ne.toString(16)):(F=F.slice(1),ne=parseInt(F,10),ge=ne.toString(10))),F=F.replace(/^0+/,""),isNaN(ne)||ge.toLowerCase()!==F?(V(Y,"Invalid character entity"),"&"+Y.entity+";"):String.fromCodePoint(ne))}function ie(Y,F){F==="<"?(Y.state=k.OPEN_WAKA,Y.startTagPosition=Y.position):j(F)||(V(Y,"Non-whitespace before first tag."),Y.textNode=F,Y.state=k.TEXT)}function se(Y,F){var ae="";return F<Y.length&&(ae=Y.charAt(F)),ae}function he(Y){var F=this;if(this.error)throw this.error;if(F.closed)return J(F,"Cannot write after close. Assign an onready handler.");if(Y===null)return z(F);typeof Y=="object"&&(Y=Y.toString());for(var ae=0,ne="";ne=se(Y,ae++),F.c=ne,!!ne;)switch(F.trackPosition&&(F.position++,ne===` 1142`?(F.line++,F.column=0):F.column++),F.state){case k.BEGIN:if(F.state=k.BEGIN_WHITESPACE,ne==="\uFEFF")continue;ie(F,ne);continue;case k.BEGIN_WHITESPACE:ie(F,ne);continue;case k.TEXT:if(F.sawRoot&&!F.closedRoot){for(var ge=ae-1;ne&&ne!=="<"&&ne!=="&";)ne=se(Y,ae++),ne&&F.trackPosition&&(F.position++,ne===` 1143`?(F.line++,F.column=0):F.column++);F.textNode+=Y.substring(ge,ae-1)}ne==="<"&&!(F.sawRoot&&F.closedRoot&&!F.strict)?(F.state=k.OPEN_WAKA,F.startTagPosition=F.position):(!j(ne)&&(!F.sawRoot||F.closedRoot)&&V(F,"Text data outside of root node."),ne==="&"?F.state=k.TEXT_ENTITY:F.textNode+=ne);continue;case k.SCRIPT:ne==="<"?F.state=k.SCRIPT_ENDING:F.script+=ne;continue;case k.SCRIPT_ENDING:ne==="/"?F.state=k.CLOSE_TAG:(F.script+="<"+ne,F.state=k.SCRIPT);continue;case k.OPEN_WAKA:if(ne==="!")F.state=k.SGML_DECL,F.sgmlDecl="";else if(!j(ne))if(N(b,ne))F.state=k.OPEN_TAG,F.tagName=ne;else if(ne==="/")F.state=k.CLOSE_TAG,F.tagName="";else if(ne==="?")F.state=k.PROC_INST,F.procInstName=F.procInstBody="";else{if(V(F,"Unencoded <"),F.startTagPosition+1<F.position){var re=F.position-F.startTagPosition;ne=new Array(re).join(" ")+ne}F.textNode+="<"+ne,F.state=k.TEXT}continue;case k.SGML_DECL:(F.sgmlDecl+ne).toUpperCase()===f?(_(F,"onopencdata"),F.state=k.CDATA,F.sgmlDecl="",F.cdata=""):F.sgmlDecl+ne==="--"?(F.state=k.COMMENT,F.comment="",F.sgmlDecl=""):(F.sgmlDecl+ne).toUpperCase()===m?(F.state=k.DOCTYPE,(F.doctype||F.sawRoot)&&V(F,"Inappropriately located doctype declaration"),F.doctype="",F.sgmlDecl=""):ne===">"?(_(F,"onsgmldeclaration",F.sgmlDecl),F.sgmlDecl="",F.state=k.TEXT):(P(ne)&&(F.state=k.SGML_DECL_QUOTED),F.sgmlDecl+=ne);continue;case k.SGML_DECL_QUOTED:ne===F.q&&(F.state=k.SGML_DECL,F.q=""),F.sgmlDecl+=ne;continue;case k.DOCTYPE:ne===">"?(F.state=k.TEXT,_(F,"ondoctype",F.doctype),F.doctype=!0):(F.doctype+=ne,ne==="["?F.state=k.DOCTYPE_DTD:P(ne)&&(F.state=k.DOCTYPE_QUOTED,F.q=ne));continue;case k.DOCTYPE_QUOTED:F.doctype+=ne,ne===F.q&&(F.q="",F.state=k.DOCTYPE);continue;case k.DOCTYPE_DTD:F.doctype+=ne,ne==="]"?F.state=k.DOCTYPE:P(ne)&&(F.state=k.DOCTYPE_DTD_QUOTED,F.q=ne);continue;case k.DOCTYPE_DTD_QUOTED:F.doctype+=ne,ne===F.q&&(F.state=k.DOCTYPE_DTD,F.q="");continue;case k.COMMENT:ne==="-"?F.state=k.COMMENT_ENDING:F.comment+=ne;continue;case k.COMMENT_ENDING:ne==="-"?(F.state=k.COMMENT_ENDED,F.comment=D(F.opt,F.comment),F.comment&&_(F,"oncomment",F.comment),F.comment=""):(F.comment+="-"+ne,F.state=k.COMMENT);continue;case k.COMMENT_ENDED:ne!==">"?(V(F,"Malformed comment"),F.comment+="--"+ne,F.state=k.COMMENT):F.state=k.TEXT;continue;case k.CDATA:ne==="]"?F.state=k.CDATA_ENDING:F.cdata+=ne;continue;case k.CDATA_ENDING:ne==="]"?F.state=k.CDATA_ENDING_2:(F.cdata+="]"+ne,F.state=k.CDATA);continue;case k.CDATA_ENDING_2:ne===">"?(F.cdata&&_(F,"oncdata",F.cdata),_(F,"onclosecdata"),F.cdata="",F.state=k.TEXT):ne==="]"?F.cdata+="]":(F.cdata+="]]"+ne,F.state=k.CDATA);continue;case k.PROC_INST:ne==="?"?F.state=k.PROC_INST_ENDING:j(ne)?F.state=k.PROC_INST_BODY:F.procInstName+=ne;continue;case k.PROC_INST_BODY:if(!F.procInstBody&&j(ne))continue;ne==="?"?F.state=k.PROC_INST_ENDING:F.procInstBody+=ne;continue;case k.PROC_INST_ENDING:ne===">"?(_(F,"onprocessinginstruction",{name:F.procInstName,body:F.procInstBody}),F.procInstName=F.procInstBody="",F.state=k.TEXT):(F.procInstBody+="?"+ne,F.state=k.PROC_INST_BODY);continue;case k.OPEN_TAG:N(S,ne)?F.tagName+=ne:(Z(F),ne===">"?q(F):ne==="/"?F.state=k.OPEN_TAG_SLASH:(j(ne)||V(F,"Invalid character in tag name"),F.state=k.ATTRIB));continue;case k.OPEN_TAG_SLASH:ne===">"?(q(F,!0),X(F)):(V(F,"Forward-slash in opening tag not followed by >"),F.state=k.ATTRIB);continue;case k.ATTRIB:if(j(ne))continue;ne===">"?q(F):ne==="/"?F.state=k.OPEN_TAG_SLASH:N(b,ne)?(F.attribName=ne,F.attribValue="",F.state=k.ATTRIB_NAME):V(F,"Invalid attribute name");continue;case k.ATTRIB_NAME:ne==="="?F.state=k.ATTRIB_VALUE:ne===">"?(V(F,"Attribute without value"),F.attribValue=F.attribName,K(F),q(F)):j(ne)?F.state=k.ATTRIB_NAME_SAW_WHITE:N(S,ne)?F.attribName+=ne:V(F,"Invalid attribute name");continue;case k.ATTRIB_NAME_SAW_WHITE:if(ne==="=")F.state=k.ATTRIB_VALUE;else{if(j(ne))continue;V(F,"Attribute without value"),F.tag.attributes[F.attribName]="",F.attribValue="",_(F,"onattribute",{name:F.attribName,value:""}),F.attribName="",ne===">"?q(F):N(b,ne)?(F.attribName=ne,F.state=k.ATTRIB_NAME):(V(F,"Invalid attribute name"),F.state=k.ATTRIB)}continue;case k.ATTRIB_VALUE:if(j(ne))continue;P(ne)?(F.q=ne,F.state=k.ATTRIB_VALUE_QUOTED):(V(F,"Unquoted attribute value"),F.state=k.ATTRIB_VALUE_UNQUOTED,F.attribValue=ne);continue;case k.ATTRIB_VALUE_QUOTED:if(ne!==F.q){ne==="&"?F.state=k.ATTRIB_VALUE_ENTITY_Q:F.attribValue+=ne;continue}K(F),F.q="",F.state=k.ATTRIB_VALUE_CLOSED;continue;case k.ATTRIB_VALUE_CLOSED:j(ne)?F.state=k.ATTRIB:ne===">"?q(F):ne==="/"?F.state=k.OPEN_TAG_SLASH:N(b,ne)?(V(F,"No whitespace between attributes"),F.attribName=ne,F.attribValue="",F.state=k.ATTRIB_NAME):V(F,"Invalid attribute name");continue;case k.ATTRIB_VALUE_UNQUOTED:if(!C(ne)){ne==="&"?F.state=k.ATTRIB_VALUE_ENTITY_U:F.attribValue+=ne;continue}K(F),ne===">"?q(F):F.state=k.ATTRIB;continue;case k.CLOSE_TAG:if(F.tagName)ne===">"?X(F):N(S,ne)?F.tagName+=ne:F.script?(F.script+="</"+F.tagName,F.tagName="",F.state=k.SCRIPT):(j(ne)||V(F,"Invalid tagname in closing tag"),F.state=k.CLOSE_TAG_SAW_WHITE);else{if(j(ne))continue;O(b,ne)?F.script?(F.script+="</"+ne,F.state=k.SCRIPT):V(F,"Invalid tagname in closing tag."):F.tagName=ne}continue;case k.CLOSE_TAG_SAW_WHITE:if(j(ne))continue;ne===">"?X(F):V(F,"Invalid characters in closing tag");continue;case k.TEXT_ENTITY:case k.ATTRIB_VALUE_ENTITY_Q:case k.ATTRIB_VALUE_ENTITY_U:var oe,G;switch(F.state){case k.TEXT_ENTITY:oe=k.TEXT,G="textNode";break;case k.ATTRIB_VALUE_ENTITY_Q:oe=k.ATTRIB_VALUE_QUOTED,G="attribValue";break;case k.ATTRIB_VALUE_ENTITY_U:oe=k.ATTRIB_VALUE_UNQUOTED,G="attribValue";break}ne===";"?(F[G]+=U(F),F.entity="",F.state=oe):N(F.entity.length?E:A,ne)?F.entity+=ne:(V(F,"Invalid character in entity name"),F[G]+="&"+F.entity+ne,F.entity="",F.state=oe);continue;default:throw new Error(F,"Unknown state: "+F.state)}return F.position>=F.bufferCheckPosition&&n(F),F}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||(function(){var Y=String.fromCharCode,F=Math.floor,ae=function(){var ne=16384,ge=[],re,oe,G=-1,pe=arguments.length;if(!pe)return"";for(var ee="";++G<pe;){var M=Number(arguments[G]);if(!isFinite(M)||M<0||M>1114111||F(M)!==M)throw RangeError("Invalid code point: "+M);M<=65535?ge.push(M):(M-=65536,re=(M>>10)+55296,oe=M%1024+56320,ge.push(re,oe)),(G+1===pe||ge.length>ne)&&(ee+=Y.apply(null,ge),ge.length=0)}return ee};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:ae,configurable:!0,writable:!0}):String.fromCodePoint=ae})()})(typeof e>"u"?e.sax={}:e)})),wN=$e(((e,t)=>{t.exports={isArray:function(r){return Array.isArray?Array.isArray(r):Object.prototype.toString.call(r)==="[object Array]"}}})),SN=$e(((e,t)=>{var r=wN().isArray;t.exports={copyOptions:function(a){var n,i={};for(n in a)a.hasOwnProperty(n)&&(i[n]=a[n]);return i},ensureFlagExists:function(a,n){(!(a in n)||typeof n[a]!="boolean")&&(n[a]=!1)},ensureSpacesExists:function(a){(!("spaces"in a)||typeof a.spaces!="number"&&typeof a.spaces!="string")&&(a.spaces=0)},ensureAlwaysArrayExists:function(a){(!("alwaysArray"in a)||typeof a.alwaysArray!="boolean"&&!r(a.alwaysArray))&&(a.alwaysArray=!1)},ensureKeyExists:function(a,n){(!(a+"Key"in n)||typeof n[a+"Key"]!="string")&&(n[a+"Key"]=n.compact?"_"+a:a)},checkFnExists:function(a,n){return a+"Fn"in n}}})),_$=$e(((e,t)=>{var r=Fie(),a=SN(),n=wN().isArray,i,o;function s(E){return i=a.copyOptions(E),a.ensureFlagExists("ignoreDeclaration",i),a.ensureFlagExists("ignoreInstruction",i),a.ensureFlagExists("ignoreAttributes",i),a.ensureFlagExists("ignoreText",i),a.ensureFlagExists("ignoreComment",i),a.ensureFlagExists("ignoreCdata",i),a.ensureFlagExists("ignoreDoctype",i),a.ensureFlagExists("compact",i),a.ensureFlagExists("alwaysChildren",i),a.ensureFlagExists("addParent",i),a.ensureFlagExists("trim",i),a.ensureFlagExists("nativeType",i),a.ensureFlagExists("nativeTypeAttributes",i),a.ensureFlagExists("sanitize",i),a.ensureFlagExists("instructionHasAttributes",i),a.ensureFlagExists("captureSpacesBetweenElements",i),a.ensureAlwaysArrayExists(i),a.ensureKeyExists("declaration",i),a.ensureKeyExists("instruction",i),a.ensureKeyExists("attributes",i),a.ensureKeyExists("text",i),a.ensureKeyExists("comment",i),a.ensureKeyExists("cdata",i),a.ensureKeyExists("doctype",i),a.ensureKeyExists("type",i),a.ensureKeyExists("name",i),a.ensureKeyExists("elements",i),a.ensureKeyExists("parent",i),a.checkFnExists("doctype",i),a.checkFnExists("instruction",i),a.checkFnExists("cdata",i),a.checkFnExists("comment",i),a.checkFnExists("text",i),a.checkFnExists("instructionName",i),a.checkFnExists("elementName",i),a.checkFnExists("attributeName",i),a.checkFnExists("attributeValue",i),a.checkFnExists("attributes",i),i}function c(E){var j=Number(E);if(!isNaN(j))return j;var P=E.toLowerCase();return P==="true"?!0:P==="false"?!1:E}function u(E,j){var P;if(i.compact){if(!o[i[E+"Key"]]&&(n(i.alwaysArray)?i.alwaysArray.indexOf(i[E+"Key"])!==-1:i.alwaysArray)&&(o[i[E+"Key"]]=[]),o[i[E+"Key"]]&&!n(o[i[E+"Key"]])&&(o[i[E+"Key"]]=[o[i[E+"Key"]]]),E+"Fn"in i&&typeof j=="string"&&(j=i[E+"Fn"](j,o)),E==="instruction"&&("instructionFn"in i||"instructionNameFn"in i)){for(P in j)if(j.hasOwnProperty(P))if("instructionFn"in i)j[P]=i.instructionFn(j[P],P,o);else{var C=j[P];delete j[P],j[i.instructionNameFn(P,C,o)]=C}}n(o[i[E+"Key"]])?o[i[E+"Key"]].push(j):o[i[E+"Key"]]=j}else{o[i.elementsKey]||(o[i.elementsKey]=[]);var N={};if(N[i.typeKey]=E,E==="instruction"){for(P in j)if(j.hasOwnProperty(P))break;N[i.nameKey]="instructionNameFn"in i?i.instructionNameFn(P,j,o):P,i.instructionHasAttributes?(N[i.attributesKey]=j[P][i.attributesKey],"instructionFn"in i&&(N[i.attributesKey]=i.instructionFn(N[i.attributesKey],P,o))):("instructionFn"in i&&(j[P]=i.instructionFn(j[P],P,o)),N[i.instructionKey]=j[P])}else E+"Fn"in i&&(j=i[E+"Fn"](j,o)),N[i[E+"Key"]]=j;i.addParent&&(N[i.parentKey]=o),o[i.elementsKey].push(N)}}function h(E){if("attributesFn"in i&&E&&(E=i.attributesFn(E,o)),(i.trim||"attributeValueFn"in i||"attributeNameFn"in i||i.nativeTypeAttributes)&&E){var j;for(j in E)if(E.hasOwnProperty(j)&&(i.trim&&(E[j]=E[j].trim()),i.nativeTypeAttributes&&(E[j]=c(E[j])),"attributeValueFn"in i&&(E[j]=i.attributeValueFn(E[j],j,o)),"attributeNameFn"in i)){var P=E[j];delete E[j],E[i.attributeNameFn(j,E[j],o)]=P}}return E}function f(E){var j={};if(E.body&&(E.name.toLowerCase()==="xml"||i.instructionHasAttributes)){for(var P=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,C;(C=P.exec(E.body))!==null;)j[C[1]]=C[2]||C[3]||C[4];j=h(j)}if(E.name.toLowerCase()==="xml"){if(i.ignoreDeclaration)return;o[i.declarationKey]={},Object.keys(j).length&&(o[i.declarationKey][i.attributesKey]=j),i.addParent&&(o[i.declarationKey][i.parentKey]=o)}else{if(i.ignoreInstruction)return;i.trim&&(E.body=E.body.trim());var N={};i.instructionHasAttributes&&Object.keys(j).length?(N[E.name]={},N[E.name][i.attributesKey]=j):N[E.name]=E.body,u("instruction",N)}}function m(E,j){var P;if(typeof E=="object"&&(j=E.attributes,E=E.name),j=h(j),"elementNameFn"in i&&(E=i.elementNameFn(E,o)),i.compact){if(P={},!i.ignoreAttributes&&j&&Object.keys(j).length){P[i.attributesKey]={};var C;for(C in j)j.hasOwnProperty(C)&&(P[i.attributesKey][C]=j[C])}!(E in o)&&(n(i.alwaysArray)?i.alwaysArray.indexOf(E)!==-1:i.alwaysArray)&&(o[E]=[]),o[E]&&!n(o[E])&&(o[E]=[o[E]]),n(o[E])?o[E].push(P):o[E]=P}else o[i.elementsKey]||(o[i.elementsKey]=[]),P={},P[i.typeKey]="element",P[i.nameKey]=E,!i.ignoreAttributes&&j&&Object.keys(j).length&&(P[i.attributesKey]=j),i.alwaysChildren&&(P[i.elementsKey]=[]),o[i.elementsKey].push(P);P[i.parentKey]=o,o=P}function x(E){i.ignoreText||!E.trim()&&!i.captureSpacesBetweenElements||(i.trim&&(E=E.trim()),i.nativeType&&(E=c(E)),i.sanitize&&(E=E.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),u("text",E))}function v(E){i.ignoreComment||(i.trim&&(E=E.trim()),u("comment",E))}function y(E){var j=o[i.parentKey];i.addParent||delete o[i.parentKey],o=j}function b(E){i.ignoreCdata||(i.trim&&(E=E.trim()),u("cdata",E))}function S(E){i.ignoreDoctype||(E=E.replace(/^ /,""),i.trim&&(E=E.trim()),u("doctype",E))}function A(E){E.note=E}t.exports=function(E,j){var P=r.parser(!0,{}),C={};if(o=C,i=s(j),P.opt={strictEntities:!0},P.onopentag=m,P.ontext=x,P.oncomment=v,P.onclosetag=y,P.onerror=A,P.oncdata=b,P.ondoctype=S,P.onprocessinginstruction=f,P.write(E).close(),C[i.elementsKey]){var N=C[i.elementsKey];delete C[i.elementsKey],C[i.elementsKey]=N,delete C.text}return C}})),$ie=$e(((e,t)=>{var r=SN(),a=_$();function n(i){var o=r.copyOptions(i);return r.ensureSpacesExists(o),o}t.exports=function(i,o){var s=n(o),c=a(i,s),u,h="compact"in s&&s.compact?"_parent":"parent";return"addParent"in s&&s.addParent?u=JSON.stringify(c,function(f,m){return f===h?"_":m},s.spaces):u=JSON.stringify(c,null,s.spaces),u.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}})),R$=$e(((e,t)=>{var r=SN(),a=wN().isArray,n,i;function o(P){var C=r.copyOptions(P);return r.ensureFlagExists("ignoreDeclaration",C),r.ensureFlagExists("ignoreInstruction",C),r.ensureFlagExists("ignoreAttributes",C),r.ensureFlagExists("ignoreText",C),r.ensureFlagExists("ignoreComment",C),r.ensureFlagExists("ignoreCdata",C),r.ensureFlagExists("ignoreDoctype",C),r.ensureFlagExists("compact",C),r.ensureFlagExists("indentText",C),r.ensureFlagExists("indentCdata",C),r.ensureFlagExists("indentAttributes",C),r.ensureFlagExists("indentInstruction",C),r.ensureFlagExists("fullTagEmptyElement",C),r.ensureFlagExists("noQuotesForNativeAttributes",C),r.ensureSpacesExists(C),typeof C.spaces=="number"&&(C.spaces=Array(C.spaces+1).join(" ")),r.ensureKeyExists("declaration",C),r.ensureKeyExists("instruction",C),r.ensureKeyExists("attributes",C),r.ensureKeyExists("text",C),r.ensureKeyExists("comment",C),r.ensureKeyExists("cdata",C),r.ensureKeyExists("doctype",C),r.ensureKeyExists("type",C),r.ensureKeyExists("name",C),r.ensureKeyExists("elements",C),r.checkFnExists("doctype",C),r.checkFnExists("instruction",C),r.checkFnExists("cdata",C),r.checkFnExists("comment",C),r.checkFnExists("text",C),r.checkFnExists("instructionName",C),r.checkFnExists("elementName",C),r.checkFnExists("attributeName",C),r.checkFnExists("attributeValue",C),r.checkFnExists("attributes",C),r.checkFnExists("fullTagEmptyElement",C),C}function s(P,C,N){return(!N&&P.spaces?` 1144`:"")+Array(C+1).join(P.spaces)}function c(P,C,N){if(C.ignoreAttributes)return"";"attributesFn"in C&&(P=C.attributesFn(P,i,n));var O,k,B,$,_=[];for(O in P)P.hasOwnProperty(O)&&P[O]!==null&&P[O]!==void 0&&($=C.noQuotesForNativeAttributes&&typeof P[O]!="string"?"":'"',k=""+P[O],k=k.replace(/"/g,"""),B="attributeNameFn"in C?C.attributeNameFn(O,k,i,n):O,_.push(C.spaces&&C.indentAttributes?s(C,N+1,!1):" "),_.push(B+"="+$+("attributeValueFn"in C?C.attributeValueFn(k,O,i,n):k)+$));return P&&Object.keys(P).length&&C.spaces&&C.indentAttributes&&_.push(s(C,N,!1)),_.join("")}function u(P,C,N){return n=P,i="xml",C.ignoreDeclaration?"":"<?xml"+c(P[C.attributesKey],C,N)+"?>"}function h(P,C,N){if(C.ignoreInstruction)return"";var O;for(O in P)if(P.hasOwnProperty(O))break;var k="instructionNameFn"in C?C.instructionNameFn(O,P[O],i,n):O;if(typeof P[O]=="object")return n=P,i=k,"<?"+k+c(P[O][C.attributesKey],C,N)+"?>";var B=P[O]?P[O]:"";return"instructionFn"in C&&(B=C.instructionFn(B,O,i,n)),"<?"+k+(B?" "+B:"")+"?>"}function f(P,C){return C.ignoreComment?"":"<!--"+("commentFn"in C?C.commentFn(P,i,n):P)+"-->"}function m(P,C){return C.ignoreCdata?"":"<![CDATA["+("cdataFn"in C?C.cdataFn(P,i,n):P.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function x(P,C){return C.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in C?C.doctypeFn(P,i,n):P)+">"}function v(P,C){return C.ignoreText?"":(P=""+P,P=P.replace(/&/g,"&"),P=P.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"textFn"in C?C.textFn(P,i,n):P)}function y(P,C){var N;if(P.elements&&P.elements.length)for(N=0;N<P.elements.length;++N)switch(P.elements[N][C.typeKey]){case"text":if(C.indentText)return!0;break;case"cdata":if(C.indentCdata)return!0;break;case"instruction":if(C.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}function b(P,C,N){n=P,i=P.name;var O=[],k="elementNameFn"in C?C.elementNameFn(P.name,P):P.name;O.push("<"+k),P[C.attributesKey]&&O.push(c(P[C.attributesKey],C,N));var B=P[C.elementsKey]&&P[C.elementsKey].length||P[C.attributesKey]&&P[C.attributesKey]["xml:space"]==="preserve";return B||("fullTagEmptyElementFn"in C?B=C.fullTagEmptyElementFn(P.name,P):B=C.fullTagEmptyElement),B?(O.push(">"),P[C.elementsKey]&&P[C.elementsKey].length&&(O.push(S(P[C.elementsKey],C,N+1)),n=P,i=P.name),O.push(C.spaces&&y(P,C)?` 1145`+Array(N+1).join(C.spaces):""),O.push("</"+k+">")):O.push("/>"),O.join("")}function S(P,C,N,O){return P.reduce(function(k,B){var $=s(C,N,O&&!k);switch(B.type){case"element":return k+$+b(B,C,N);case"comment":return k+$+f(B[C.commentKey],C);case"doctype":return k+$+x(B[C.doctypeKey],C);case"cdata":return k+(C.indentCdata?$:"")+m(B[C.cdataKey],C);case"text":return k+(C.indentText?$:"")+v(B[C.textKey],C);case"instruction":var _={};return _[B[C.nameKey]]=B[C.attributesKey]?B:B[C.instructionKey],k+(C.indentInstruction?$:"")+h(_,C,N)}},"")}function A(P,C,N){var O;for(O in P)if(P.hasOwnProperty(O))switch(O){case C.parentKey:case C.attributesKey:break;case C.textKey:if(C.indentText||N)return!0;break;case C.cdataKey:if(C.indentCdata||N)return!0;break;case C.instructionKey:if(C.indentInstruction||N)return!0;break;case C.doctypeKey:case C.commentKey:return!0;default:return!0}return!1}function E(P,C,N,O,k){n=P,i=C;var B="elementNameFn"in N?N.elementNameFn(C,P):C;if(typeof P>"u"||P===null||P==="")return"fullTagEmptyElementFn"in N&&N.fullTagEmptyElementFn(C,P)||N.fullTagEmptyElement?"<"+B+"></"+B+">":"<"+B+"/>";var $=[];if(C){if($.push("<"+B),typeof P!="object")return $.push(">"+v(P,N)+"</"+B+">"),$.join("");P[N.attributesKey]&&$.push(c(P[N.attributesKey],N,O));var _=A(P,N,!0)||P[N.attributesKey]&&P[N.attributesKey]["xml:space"]==="preserve";if(_||("fullTagEmptyElementFn"in N?_=N.fullTagEmptyElementFn(C,P):_=N.fullTagEmptyElement),_)$.push(">");else return $.push("/>"),$.join("")}
1145return $.push(j(P,N,O+1,!1)),n=P,i=C,C&&$.push((k?s(N,O,!1):"")+"</"+B+">"),$.join("")}function j(P,C,N,O){var k,B,$,_=[];for(B in P)if(P.hasOwnProperty(B))for($=a(P[B])?P[B]:[P[B]],k=0;k<$.length;++k){switch(B){case C.declarationKey:_.push(u($[k],C,N));break;case C.instructionKey:_.push((C.indentInstruction?s(C,N,O):"")+h($[k],C,N));break;case C.attributesKey:case C.parentKey:break;case C.textKey:_.push((C.indentText?s(C,N,O):"")+v($[k],C));break;case C.cdataKey:_.push((C.indentCdata?s(C,N,O):"")+m($[k],C));break;case C.doctypeKey:_.push(s(C,N,O)+x($[k],C));break;case C.commentKey:_.push(s(C,N,O)+f($[k],C));break;default:_.push(s(C,N,O)+E($[k],B,C,N,A($[k],C)))}O=O&&!_.length}return _.join("")}t.exports=function(P,C){C=o(C);var N=[];return n=P,i="_root_",C.compact?N.push(j(P,C,0,!0)):(P[C.declarationKey]&&N.push(u(P[C.declarationKey],C,0)),P[C.elementsKey]&&P[C.elementsKey].length&&N.push(S(P[C.elementsKey],C,0,!N.length))),N.join("")}})),qie=$e(((e,t)=>{var r=R$();t.exports=function(a,n){a instanceof Buffer&&(a=a.toString());var i=null;if(typeof a=="string")try{i=JSON.parse(a)}catch{throw new Error("The JSON structure is invalid")}else i=a;return r(i,n)}})),O$=$e(((e,t)=>{t.exports={xml2js:_$(),xml2json:$ie(),js2xml:R$(),json2xml:qie()}}))(),EN=e=>{switch(e.type){case void 0:case"element":const t=new Uie(e.name,e.attributes),r=e.elements||[];for(const a of r){const n=EN(a);n!==void 0&&t.push(n)}return t;case"text":return e.text;default:return}},Vie=class extends ct{},Uie=class extends Me{static fromXmlString(e){return EN((0,O$.xml2js)(e,{compact:!1}))}constructor(e,t){super(e),t&&this.root.push(new Vie(t))}push(e){this.root.push(e)}},Hie=class extends Me{constructor(e){super(""),Ce(this,"_attr",void 0),this._attr=e}prepForXml(e){return{_attr:this._attr}}},M$=class extends Me{constructor(e,t){super(e),t&&(this.root=t.root)}},pa=e=>{if(isNaN(e))throw new Error(`Invalid value '${e}' specified. Must be an integer.`);return Math.floor(e)},by=e=>{const t=pa(e);if(t<0)throw new Error(`Invalid value '${e}' specified. Must be a positive integer.`);return t},I$=(e,t)=>{const r=t*2;if(e.length!==r||isNaN(+`0x${e}`))throw new Error(`Invalid hex value '${e}'. Expected ${r} digit hex value`);return e},O3=e=>I$(e,1),AN=e=>{const t=e.slice(-2),r=e.substring(0,e.length-2);return`${Number(r)}${t}`},B$=e=>{const t=AN(e);if(parseFloat(t)<0)throw new Error(`Invalid value '${t}' specified. Expected a positive number.`);return t},Bu=e=>e==="auto"?e:I$(e.charAt(0)==="#"?e.substring(1):e,3),mo=e=>typeof e=="string"?AN(e):pa(e),Gie=e=>typeof e=="string"?B$(e):by(e),da=e=>typeof e=="string"?B$(e):by(e),Kie=e=>{const t=e.substring(0,e.length-1);return`${Number(t)}%`},L$=e=>typeof e=="number"?pa(e):e.slice(-1)==="%"?Kie(e):AN(e),Wie=by,Xie=by,Yie=e=>e.toISOString(),Fe=class extends Me{constructor(e,t=!0){super(e),t!==!0&&this.root.push(new Sa({val:t}))}},Z1=class extends Me{constructor(e,t){super(e),this.root.push(new Sa({val:Gie(t)}))}},Zie=class extends Me{},kl=class extends Me{constructor(e,t){super(e),this.root.push(new Sa({val:t}))}},Bf=(e,t)=>new Ge({name:e,attributes:{value:{key:"w:val",value:t}}}),mp=class extends Me{constructor(e,t){super(e),this.root.push(new Sa({val:t}))}},il=class extends Me{constructor(e,t){super(e),this.root.push(t)}},Ge=class extends Me{constructor({name:e,attributes:t,children:r}){super(e),t&&this.root.push(new f$(t)),r&&this.root.push(...r)}},tr={START:"start",CENTER:"center",LEFT:"left",RIGHT:"right",JUSTIFIED:"both"},z$=e=>new Ge({name:"w:jc",attributes:{val:{key:"w:val",value:e}}}),Er=(e,{color:t,size:r,space:a,style:n})=>new Ge({name:e,attributes:{style:{key:"w:val",value:n},color:{key:"w:color",value:t===void 0?void 0:Bu(t)},size:{key:"w:sz",value:r===void 0?void 0:Wie(r)},space:{key:"w:space",value:a===void 0?void 0:Xie(a)}}}),Fl={SINGLE:"single",NONE:"none"},Jie=class extends js{constructor(e){super("w:pBdr"),e.top&&this.root.push(Er("w:top",e.top)),e.bottom&&this.root.push(Er("w:bottom",e.bottom)),e.left&&this.root.push(Er("w:left",e.left)),e.right&&this.root.push(Er("w:right",e.right)),e.between&&this.root.push(Er("w:between",e.between))}},Qie=class extends Me{constructor(){super("w:pBdr");
1145const e=Er("w:bottom",{color:"auto",space:1,style:Fl.SINGLE,size:6});this.root.push(e)}},eoe=({start:e,end:t,left:r,right:a,hanging:n,firstLine:i,firstLineChars:o})=>new Ge({name:"w:ind",attributes:{start:{key:"w:start",value:e===void 0?void 0:mo(e)},end:{key:"w:end",value:t===void 0?void 0:mo(t)},left:{key:"w:left",value:r===void 0?void 0:mo(r)},right:{key:"w:right",value:a===void 0?void 0:mo(a)},hanging:{key:"w:hanging",value:n===void 0?void 0:da(n)},firstLine:{key:"w:firstLine",value:i===void 0?void 0:da(i)},firstLineChars:{key:"w:firstLineChars",value:o===void 0?void 0:pa(o)}}}),toe=()=>new Ge({name:"w:br"}),CN={BEGIN:"begin",END:"end",SEPARATE:"separate"},PN=(e,t)=>new Ge({name:"w:fldChar",attributes:{type:{key:"w:fldCharType",value:e},dirty:{key:"w:dirty",value:t}}}),Mg=e=>PN(CN.BEGIN,e),Ig=e=>PN(CN.SEPARATE,e),Bg=e=>PN(CN.END,e),Lu={DEFAULT:"default",PRESERVE:"preserve"},zu=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{space:"xml:space"})}},roe=class extends Me{constructor(){super("w:instrText"),this.root.push(new zu({space:Lu.PRESERVE})),this.root.push("PAGE")}},aoe=class extends Me{constructor(){super("w:instrText"),this.root.push(new zu({space:Lu.PRESERVE})),this.root.push("NUMPAGES")}},noe=class extends Me{constructor(){super("w:instrText"),this.root.push(new zu({space:Lu.PRESERVE})),this.root.push("SECTIONPAGES")}},ioe=class extends Me{constructor(){super("w:instrText"),this.root.push(new zu({space:Lu.PRESERVE})),this.root.push("SECTION")}},wy=({fill:e,color:t,type:r})=>new Ge({name:"w:shd",attributes:{fill:{key:"w:fill",value:e===void 0?void 0:Bu(e)},color:{key:"w:color",value:t===void 0?void 0:Bu(t)},type:{key:"w:val",value:r}}}),F$={CLEAR:"clear"},Ua=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{id:"w:id",author:"w:author",date:"w:date"})}},ooe=class extends Me{constructor(e){super("w:del"),this.root.push(new Ua({id:e.id,author:e.author,date:e.date}))}},soe=class extends Me{constructor(e){super("w:ins"),this.root.push(new Ua({id:e.id,author:e.author,date:e.date}))}},loe={DOT:"dot"},coe=(e=loe.DOT)=>new Ge({name:"w:em",attributes:{val:{key:"w:val",value:e}}}),uoe=class extends Me{constructor(e){super("w:spacing"),this.root.push(new Sa({val:mo(e)}))}},doe=class extends Me{constructor(t){super("w:color"),this.root.push(new Sa({val:Bu(t)}))}},foe=class extends Me{constructor(e){super("w:highlight"),this.root.push(new Sa({val:e}))}},poe=class extends Me{constructor(e){super("w:highlightCs"),this.root.push(new Sa({val:e}))}},hoe=e=>new Ge({name:"w:lang",attributes:{value:{key:"w:val",value:e.value},eastAsia:{key:"w:eastAsia",value:e.eastAsia},bidirectional:{key:"w:bidi",value:e.bidirectional}}}),J1=(e,t)=>{if(typeof e=="string"){const a=e;return new Ge({name:"w:rFonts",attributes:{ascii:{key:"w:ascii",value:a},cs:{key:"w:cs",value:a},eastAsia:{key:"w:eastAsia",value:a},hAnsi:{key:"w:hAnsi",value:a},hint:{key:"w:hint",value:t}}})}const r=e;return new Ge({name:"w:rFonts",attributes:{ascii:{key:"w:ascii",value:r.ascii},cs:{key:"w:cs",value:r.cs},eastAsia:{key:"w:eastAsia",value:r.eastAsia},hAnsi:{key:"w:hAnsi",value:r.hAnsi},hint:{key:"w:hint",value:r.hint}}})},$$=e=>new Ge({name:"w:vertAlign",attributes:{val:{key:"w:val",value:e}}}),moe=()=>$$("superscript"),goe=()=>$$("subscript"),q$={SINGLE:"single"},xoe=(e=q$.SINGLE,t)=>new Ge({name:"w:u",attributes:{val:{key:"w:val",value:e},color:{key:"w:color",value:t===void 0?void 0:Bu(t)}}}),ks=class extends js{constructor(e){if(super("w:rPr"),!e)return;if(e.style&&this.push(new kl("w:rStyle",e.style)),e.font&&(typeof e.font=="string"?this.push(J1(e.font)):"name"in e.font?this.push(J1(e.font.name,e.font.hint)):this.push(J1(e.font))),e.bold!==void 0&&this.push(new Fe("w:b",e.bold)),e.boldComplexScript===void 0&&e.bold!==void 0||e.boldComplexScript){var t;this.push(new Fe("w:bCs",(t=e.boldComplexScript)!==null&&t!==void 0?t:e.bold))}if(e.italics!==void 0&&this.push(new Fe("w:i",e.italics)),e.italicsComplexScript===void 0&&e.italics!==void 0||e.italicsComplexScript){var r;this.push(new Fe("w:iCs",(r=e.italicsComplexScript)!==null&&r!==void 0?r:e.italics))}e.smallCaps!==void 0?this.push(new Fe("w:smallCaps",e.smallCaps)):e.allCaps!==void 0&&this.push(new Fe("w:caps",e.allCaps)),e.strike!==void 0&&this.push(new Fe("w:strike",e.strike)),e.doubleStrike!==void 0&&this.push(new Fe("w:dstrike",e.doubleStrike)),e.emboss!==void 0&&this.push(new Fe("w:emboss",e.emboss)),e.imprint!==void 0&&this.push(new Fe("w:imprint",e.imprint)),e.noProof!==void 0&&this.push(new Fe("w:noProof",e.noProof)),e.snapToGri
1145d!==void 0&&this.push(new Fe("w:snapToGrid",e.snapToGrid)),e.vanish&&this.push(new Fe("w:vanish",e.vanish)),e.color&&this.push(new doe(e.color)),e.characterSpacing&&this.push(new uoe(e.characterSpacing)),e.scale!==void 0&&this.push(new mp("w:w",e.scale)),e.kern&&this.push(new Z1("w:kern",e.kern)),e.position&&this.push(new kl("w:position",e.position)),e.size!==void 0&&this.push(new Z1("w:sz",e.size));const a=e.sizeComplexScript===void 0||e.sizeComplexScript===!0?e.size:e.sizeComplexScript;a&&this.push(new Z1("w:szCs",a)),e.highlight&&this.push(new foe(e.highlight));const n=e.highlightComplexScript===void 0||e.highlightComplexScript===!0?e.highlight:e.highlightComplexScript;n&&this.push(new poe(n)),e.underline&&this.push(xoe(e.underline.type,e.underline.color)),e.effect&&this.push(new kl("w:effect",e.effect)),e.border&&this.push(Er("w:bdr",e.border)),e.shading&&this.push(wy(e.shading)),e.subScript&&this.push(goe()),e.superScript&&this.push(moe()),e.rightToLeft!==void 0&&this.push(new Fe("w:rtl",e.rightToLeft)),e.emphasisMark&&this.push(coe(e.emphasisMark.type)),e.language&&this.push(hoe(e.language)),e.specVanish&&this.push(new Fe("w:specVanish",e.vanish)),e.math&&this.push(new Fe("w:oMath",e.math)),e.revision&&this.push(new yoe(e.revision))}push(e){this.root.push(e)}},voe=class extends ks{constructor(e){super(e),e?.insertion&&this.push(new soe(e.insertion)),e?.deletion&&this.push(new ooe(e.deletion))}},yoe=class extends Me{constructor(e){super("w:rPrChange"),this.root.push(new Ua({id:e.id,author:e.author,date:e.date})),this.addChildElement(new ks(e))}},M3=class extends Me{constructor(t){if(super("w:t"),typeof t=="string")this.root.push(new zu({space:Lu.PRESERVE})),this.root.push(t);else{var r;this.root.push(new zu({space:(r=t.space)!==null&&r!==void 0?r:Lu.DEFAULT})),this.root.push(t.text)}}},cu={CURRENT:"CURRENT",TOTAL_PAGES:"TOTAL_PAGES",TOTAL_PAGES_IN_SECTION:"TOTAL_PAGES_IN_SECTION",CURRENT_SECTION:"SECTION"},Nd=class extends Me{constructor(e){if(super("w:r"),Ce(this,"properties",void 0),this.properties=new ks(e),this.root.push(this.properties),e.break)for(let t=0;t<e.break;t++)this.root.push(toe());if(e.children)for(const t of e.children){if(typeof t=="string"){switch(t){case cu.CURRENT:this.root.push(Mg()),this.root.push(new roe),this.root.push(Ig()),this.root.push(Bg());break;case cu.TOTAL_PAGES:this.root.push(Mg()),this.root.push(new aoe),this.root.push(Ig()),this.root.push(Bg());break;case cu.TOTAL_PAGES_IN_SECTION:this.root.push(Mg()),this.root.push(new noe),this.root.push(Ig()),this.root.push(Bg());break;case cu.CURRENT_SECTION:this.root.push(Mg()),this.root.push(new ioe),this.root.push(Ig()),this.root.push(Bg());break;default:this.root.push(new M3(t));break}continue}this.root.push(t)}else e.text!==void 0&&this.root.push(new M3(e.text))}},bt=class extends Nd{constructor(e){super(typeof e=="string"?{text:e}:e)}},$h=$e(((e,t)=>{t.exports=r;function r(a,n){if(!a)throw new Error(n||"Assertion failed")}r.equal=function(n,i,o){if(n!=i)throw new Error(o||"Assertion failed: "+n+" != "+i)}})),Mi=$e((e=>{var t=$h();e.inherits=Ns();function r(_,W){return(_.charCodeAt(W)&64512)!==55296||W<0||W+1>=_.length?!1:(_.charCodeAt(W+1)&64512)===56320}function a(_,W){if(Array.isArray(_))return _.slice();if(!_)return[];var D=[];if(typeof _=="string")if(W){if(W==="hex")for(_=_.replace(/[^a-z0-9]+/gi,""),_.length%2!==0&&(_="0"+_),z=0;z<_.length;z+=2)D.push(parseInt(_[z]+_[z+1],16))}else for(var J=0,z=0;z<_.length;z++){var V=_.charCodeAt(z);V<128?D[J++]=V:V<2048?(D[J++]=V>>6|192,D[J++]=V&63|128):r(_,z)?(V=65536+((V&1023)<<10)+(_.charCodeAt(++z)&1023),D[J++]=V>>18|240,D[J++]=V>>12&63|128,D[J++]=V>>6&63|128,D[J++]=V&63|128):(D[J++]=V>>12|224,D[J++]=V>>6&63|128,D[J++]=V&63|128)}else for(z=0;z<_.length;z++)D[z]=_[z]|0;return D}e.toArray=a;function n(_){for(var W="",D=0;D<_.length;D++)W+=s(_[D].toString(16));return W}e.toHex=n;function i(_){return(_>>>24|_>>>8&65280|_<<8&16711680|(_&255)<<24)>>>0}e.htonl=i;function o(_,W){for(var D="",J=0;J<_.length;J++){var z=_[J];W==="little"&&(z=i(z)),D+=c(z.toString(16))}return D}e.toHex32=o;function s(_){return _.length===1?"0"+_:_}e.zero2=s;function c(_){return _.length===7?"0"+_:_.length===6?"00"+_:_.length===5?"000"+_:_.length===4?"0000"+_:_.length===3?"00000"+_:_.length===2?"000000"+_:_.length===1?"0000000"+_:_}e.zero8=c;function u(_,W,D,J){var z=D-W;t(z%4===0);for(var V=new Array(z/4),Z=0,te=W;Z<V.length;Z++,te+=4){var K;J==="big"?K=_[te]<<24|_[te+1]<<16|_[te+2]<<8|_[te+3]:K=_[te+3]<<24|_[te+2]<<16|_[te+1]<<8|_[te],V[Z]=K>>>0}return V}e.join32=u;function h(_,W){for(var D=new Array(_.length*4),J=0,z=0;J<_.length;J++,z+=4){var V=_[J];W==="big"?(D[z]=V>>>24,D[z+1]=V>>>16&255,D[z+2]=V>>>8&255,D[z+3]=V&255):(D[z+3]=V>>>24,D[z+2]=V>>>16&255,D[z+1]=V>>>8&255,D[z]=V&255)}return D}e.split32=h;function f(_,W){return _>>>W|_<<32-W}e.rotr32=f;function m(_,W){return _<<W|_>>>32-W}e.rotl32=m;function x(_,W){return _+W>>>0}e.sum32=x;function v(_,W,D){return _+W+D>>>0}e.sum32_3=v;function y(_,W,D,J){return _+W+D+J>>>0}e.sum32_4=y;function b(_,W,D,J,z){return _+W+D+J+z>>>0}e.sum32_5=b;function S(_,W,D,J){var z=_[W],V=J+_[W+1]>>>0;_[W]=(V<J?1:0)+D+z>>>0,_[W+1]=V}e.sum64=S;function A(_,W,D,J){return(W+J>>>0<W?1:0)+_+D>>>0}e.sum64_hi=A;function E(_,W,D,J){return W+J>>>0}e.sum64_lo=E;function j(_,W,D,J,z,V,Z,te){var K=0,q=W;return q=q+J>>>0,K+=q<W?1:0,q=q+V>>>0,K+=q<V?1:0,q=q+te>>>0,K+=q<te?1:0,_+D+z+Z+K>>>0}e.sum64_4_hi=j;function P(_,W,D,J,z,V,Z,te){return W+J+V+te>>>0}e.sum64_4_lo=P;function C(_,W,D,J,z,V,Z,te,K,q){var X=0,U=W;return U=U+J>>>0,X+=U<W?1:0,U=U+V>>>0,X+=U<V?1:0,U=U+te>>>0,X+=U<te?1:0,U=U+q>>>0,X+=U<q?1:0,_+D+z+Z+K+X>>>0}e.sum64_5_hi=C;
1145function N(_,W,D,J,z,V,Z,te,K,q){return W+J+V+te+q>>>0}e.sum64_5_lo=N;function O(_,W,D){return(W<<32-D|_>>>D)>>>0}e.rotr64_hi=O;function k(_,W,D){return(_<<32-D|W>>>D)>>>0}e.rotr64_lo=k;function B(_,W,D){return _>>>D}e.shr64_hi=B;function $(_,W,D){return(_<<32-D|W>>>D)>>>0}e.shr64_lo=$})),qh=$e((e=>{var t=Mi(),r=$h();function a(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=a,a.prototype.update=function(i,o){if(i=t.toArray(i,o),this.pending?this.pending=this.pending.concat(i):this.pending=i,this.pendingTotal+=i.length,this.pending.length>=this._delta8){i=this.pending;var s=i.length%this._delta8;this.pending=i.slice(i.length-s,i.length),this.pending.length===0&&(this.pending=null),i=t.join32(i,0,i.length-s,this.endian);for(var c=0;c<i.length;c+=this._delta32)this._update(i,c,c+this._delta32)}return this},a.prototype.digest=function(i){return this.update(this._pad()),r(this.pending===null),this._digest(i)},a.prototype._pad=function(){var i=this.pendingTotal,o=this._delta8,s=o-(i+this.padLength)%o,c=new Array(s+this.padLength);c[0]=128;for(var u=1;u<s;u++)c[u]=0;if(i<<=3,this.endian==="big"){for(var h=8;h<this.padLength;h++)c[u++]=0;c[u++]=0,c[u++]=0,c[u++]=0,c[u++]=0,c[u++]=i>>>24&255,c[u++]=i>>>16&255,c[u++]=i>>>8&255,c[u++]=i&255}else for(c[u++]=i&255,c[u++]=i>>>8&255,c[u++]=i>>>16&255,c[u++]=i>>>24&255,c[u++]=0,c[u++]=0,c[u++]=0,c[u++]=0,h=8;h<this.padLength;h++)c[u++]=0;return c}})),V$=$e((e=>{var t=Mi().rotr32;function r(h,f,m,x){if(h===0)return a(f,m,x);if(h===1||h===3)return i(f,m,x);if(h===2)return n(f,m,x)}e.ft_1=r;function a(h,f,m){return h&f^~h&m}e.ch32=a;function n(h,f,m){return h&f^h&m^f&m}e.maj32=n;function i(h,f,m){return h^f^m}e.p32=i;function o(h){return t(h,2)^t(h,13)^t(h,22)}e.s0_256=o;function s(h){return t(h,6)^t(h,11)^t(h,25)}e.s1_256=s;function c(h){return t(h,7)^t(h,18)^h>>>3}e.g0_256=c;function u(h){return t(h,17)^t(h,19)^h>>>10}e.g1_256=u})),boe=$e(((e,t)=>{var r=Mi(),a=qh(),n=V$(),i=r.rotl32,o=r.sum32,s=r.sum32_5,c=n.ft_1,u=a.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function f(){if(!(this instanceof f))return new f;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(f,u),t.exports=f,f.blockSize=512,f.outSize=160,f.hmacStrength=80,f.padLength=64,f.prototype._update=function(x,v){for(var y=this.W,b=0;b<16;b++)y[b]=x[v+b];for(;b<y.length;b++)y[b]=i(y[b-3]^y[b-8]^y[b-14]^y[b-16],1);var S=this.h[0],A=this.h[1],E=this.h[2],j=this.h[3],P=this.h[4];for(b=0;b<y.length;b++){var C=~~(b/20),N=s(i(S,5),c(C,A,E,j),P,y[b],h[C]);P=j,j=E,E=i(A,30),A=S,S=N}this.h[0]=o(this.h[0],S),this.h[1]=o(this.h[1],A),this.h[2]=o(this.h[2],E),this.h[3]=o(this.h[3],j),this.h[4]=o(this.h[4],P)},f.prototype._digest=function(x){return x==="hex"?r.toHex32(this.h,"big"):r.split32(this.h,"big")}})),U$=$e(((e,t)=>{var r=Mi(),a=qh(),n=V$(),i=$h(),o=r.sum32,s=r.sum32_4,c=r.sum32_5,u=n.ch32,h=n.maj32,f=n.s0_256,m=n.s1_256,x=n.g0_256,v=n.g1_256,y=a.BlockHash,b=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function S(){if(!(this instanceof S))return new S;y.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=b,this.W=new Array(64)}r.inherits(S,y),t.exports=S,S.blockSize=512,S.outSize=256,S.hmacStrength=192,S.padLength=64,S.prototype._update=function(E,j){for(var P=this.W,C=0;C<16;C++)P[C]=E[j+C];for(;C<P.length;C++)P[C]=s(v(P[C-2]),P[C-7],x(P[C-15]),P[C-16]);var N=this.h[0],O=this.h[1],k=this.h[2],B=this.h[3],$=this.h[4],_=this.h[5],W=this.h[6],D=this.h[7];for(i(this.k.length===P.length),C=0;C<P.length;C++){var J=c(D,m($),u($,_,W),this.k[C],P[C]),z=o(f(N),h(N,O,k));D=W,W=_,_=$,$=o(B,J),B=k,k=O,O=N,N=o(J,z)}this.h[0]=o(this.h[0],N),this.h[1]=o(this.h[1],O),this.h[2]=o(this.h[2],k),this.h[3]=o(this.h[3],B),this.h[4]=o(this.h[4],$),this.h[5]=o(this.h[5],_),this.h[6]=o(this.h[6],W),this.h[7]=o(this.h[7],D)},S.prototype._digest=function(E){return E==="hex"?r.toHex32(this.h,"big"):r.split32(this.h,"big")}})),woe=$e(((e,t)=>{var r=Mi(),a=U$();function n(){if(!(this instanceof n))return new n;a.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(n,a),t.exports=n,n.blockSize=512,n.outSize=224,n.hmacStrength=192,n.padLength=64,n.prototype._digest=function(o){return o==="hex"?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}})),H$=$e(((e,t)=>{var r=Mi(),a=qh(),n=$h(),i=r.rotr64_hi,o=r.rotr64_lo,s=r.shr64_hi,c=r.shr64_lo,u=r.sum64,h=r.sum64_hi,f=r.sum64_lo,m=r.sum64_4_hi,x=r.sum64_4_lo,v=r.sum64_5_hi,y=r.sum64_5_lo,b=a.BlockHash,S=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,
11451322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function A(){if(!(this instanceof A))return new A;b.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=S,this.W=new Array(160)}r.inherits(A,b),t.exports=A,A.blockSize=1024,A.outSize=512,A.hmacStrength=192,A.padLength=128,A.prototype._prepareBlock=function(z,V){for(var Z=this.W,te=0;te<32;te++)Z[te]=z[V+te];for(;te<Z.length;te+=2){var K=W(Z[te-4],Z[te-3]),q=D(Z[te-4],Z[te-3]),X=Z[te-14],U=Z[te-13],ie=$(Z[te-30],Z[te-29]),se=_(Z[te-30],Z[te-29]),he=Z[te-32],Y=Z[te-31];Z[te]=m(K,q,X,U,ie,se,he,Y),Z[te+1]=x(K,q,X,U,ie,se,he,Y)}},A.prototype._update=function(z,V){this._prepareBlock(z,V);var Z=this.W,te=this.h[0],K=this.h[1],q=this.h[2],X=this.h[3],U=this.h[4],ie=this.h[5],se=this.h[6],he=this.h[7],Y=this.h[8],F=this.h[9],ae=this.h[10],ne=this.h[11],ge=this.h[12],re=this.h[13],oe=this.h[14],G=this.h[15];n(this.k.length===Z.length);for(var pe=0;pe<Z.length;pe+=2){var ee=oe,M=G,I=k(Y,F),H=B(Y,F),ce=E(Y,F,ae,ne,ge),fe=j(Y,F,ae,ne,ge,re),ue=this.k[pe],we=this.k[pe+1],Ne=Z[pe],De=Z[pe+1],xe=v(ee,M,I,H,ce,fe,ue,we,Ne,De),Ee=y(ee,M,I,H,ce,fe,ue,we,Ne,De);ee=N(te,K),M=O(te,K),I=P(te,K,q,X,U),H=C(te,K,q,X,U,ie);var ze=h(ee,M,I,H),We=f(ee,M,I,H);oe=ge,G=re,ge=ae,re=ne,ae=Y,ne=F,Y=h(se,he,xe,Ee),F=f(he,he,xe,Ee),se=U,he=ie,U=q,ie=X,q=te,X=K,te=h(xe,Ee,ze,We),K=f(xe,Ee,ze,We)}u(this.h,0,te,K),u(this.h,2,q,X),u(this.h,4,U,ie),u(this.h,6,se,he),u(this.h,8,Y,F),u(this.h,10,ae,ne),u(this.h,12,ge,re),u(this.h,14,oe,G)},A.prototype._digest=function(z){return z==="hex"?r.toHex32(this.h,"big"):r.split32(this.h,"big")};function E(J,z,V,Z,te){var K=J&V^~J&te;return K<0&&(K+=4294967296),K}function j(J,z,V,Z,te,K){var q=z&Z^~z&K;return q<0&&(q+=4294967296),q}function P(J,z,V,Z,te){var K=J&V^J&te^V&te;return K<0&&(K+=4294967296),K}function C(J,z,V,Z,te,K){var q=z&Z^z&K^Z&K;return q<0&&(q+=4294967296),q}function N(J,z){var V=i(J,z,28),Z=i(z,J,2),te=i(z,J,7),K=V^Z^te;return K<0&&(K+=4294967296),K}function O(J,z){var V=o(J,z,28),Z=o(z,J,2),te=o(z,J,7),K=V^Z^te;return K<0&&(K+=4294967296),K}function k(J,z){var V=i(J,z,14),Z=i(J,z,18),te=i(z,J,9),K=V^Z^te;return K<0&&(K+=4294967296),K}function B(J,z){var V=o(J,z,14),Z=o(J,z,18),te=o(z,J,9),K=V^Z^te;return K<0&&(K+=4294967296),K}function $(J,z){var V=i(J,z,1),Z=i(J,z,8),te=s(J,z,7),K=V^Z^te;return K<0&&(K+=4294967296),K}function _(J,z){var V=o(J,z,1),Z=o(J,z,8),te=c(J,z,7),K=V^Z^te;return K<0&&(K+=4294967296),K}function W(J,z){var V=i(J,z,19),Z=i(z,J,29),te=s(J,z,6),K=V^Z^te;return K<0&&(K+=4294967296),K}function D(J,z){var V=o(J,z,19),Z=o(z,J,29),te=c(J,z,6),K=V^Z^te;return K<0&&(K+=4294967296),K}})),Soe=$e(((e,t)=>{var r=Mi(),a=H$();function n(){if(!(this instanceof n))return new n;a.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(n,a),t.exports=n,n.blockSize=1024,n.outSize=384,n.hmacStrength=192,n.padLength=128,n.prototype._digest=function(o){return o==="hex"?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}})),Eoe=$e((e=>{e.sha1=boe(),e.sha224=woe(),e.sha256=U$(),e.sha384=Soe(),e.sha512=H$()})),Aoe=$e((e=>{var t=Mi(),r=qh(),a=t.rotl32,n=t.sum32,i=t.sum32_3,o=t.sum32_4,s=r.BlockHash;function c(){if(!(this instanceof c))return new c;s.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}t.inherits(c,s),e.ripemd160=c,c.blockSize=512,c.outSize=160,c.hmacStrength=192,c.padLength=64,c.prototype._update=function(S,A){for(var E=this.h[0],j=this.h[1],P=this.h[2],C=this.h[3],N=this.h[4],O=E,k=j,B=P,$=C,_=N,W=0;W<80;W++){var D=n(a(o(E,u(W,j,P,C),S[m[W]+A],h(W)),v[W]),N);E=N,N=C,C=a(P,10),P=j,j=D,D=n(a(o(O,u(79-W,k,B,$),S[x[W]+A],f(W)),y[W]),_),O=_,_=$,$=a(B,10),B=k,k=D}D=i(this.h[1],P,$),this.h[1]=i(this.h[2],C,_),this.h[2]=i(this.h[3],N,O),this.h[3]=i(this.h[4],E,k),this.h[4]=i(this.h[0],j,B),this.h[0]=D},c.prototype._digest=function(S){return S==="hex"?t.toHex32(this.h,"little"):t.split32(this.h,"little")};function u(b,S,A,E){return b<=15?S^A^E:b<=31?S&A|~S&E:b<=47?(S|~A)^E:b<=63?S&E|A&~E:S^(A|~E)}function h(b){return b<=15?0:b<=31?1518500249:b<=47?1859775393:b<=63?2400959708:2840853838}function f(b){return b<=15?1352829926:b<=31?1548603684:b<=47?1836072691:b<=63?2053994217:0}var m=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],x=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],v=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],y=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]})),Coe=$e(((e,t)=>{var r=Mi(),a=$h();
1145function n(i,o,s){if(!(this instanceof n))return new n(i,o,s);this.Hash=i,this.blockSize=i.blockSize/8,this.outSize=i.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(o,s))}t.exports=n,n.prototype._init=function(o){o.length>this.blockSize&&(o=new this.Hash().update(o).digest()),a(o.length<=this.blockSize);for(var s=o.length;s<this.blockSize;s++)o.push(0);for(s=0;s<o.length;s++)o[s]^=54;for(this.inner=new this.Hash().update(o),s=0;s<o.length;s++)o[s]^=106;this.outer=new this.Hash().update(o)},n.prototype.update=function(o,s){return this.inner.update(o,s),this},n.prototype.digest=function(o){return this.outer.update(this.inner.digest()),this.outer.digest(o)}})),Poe=pN($e((e=>{var t=e;t.utils=Mi(),t.common=qh(),t.sha=Eoe(),t.ripemd=Aoe(),t.hmac=Coe(),t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160}))()),joe="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Noe=(e,t=21)=>(r=t)=>{let a="",n=r|0;for(;n--;)a+=e[Math.random()*e.length|0];return a},Toe=(e=21)=>{let t="",r=e|0;for(;r--;)t+=joe[Math.random()*64|0];return t},Wn=e=>Math.floor(e*72*20),Sy=(e=0)=>{let t=e;return()=>++t},koe=()=>Sy(),Doe=()=>Sy(1),_oe=()=>Sy(),Roe=()=>Sy(),Ooe=()=>Toe().toLowerCase(),I3=e=>Poe.default.sha1().update(e instanceof ArrayBuffer?new Uint8Array(e):e).digest("hex"),Lf=e=>Noe("1234567890abcdef",e)(),Moe=()=>`${Lf(8)}-${Lf(4)}-${Lf(4)}-${Lf(4)}-${Lf(12)}`,Q1=e=>new Uint8Array(new TextEncoder().encode(e)),Ioe={PAGE:"page"},Boe={PAGE:"page"},Loe=()=>new Ge({name:"wp:simplePos",attributes:{x:{key:"x",value:0},y:{key:"y",value:0}}}),G$=e=>new Ge({name:"wp:align",children:[e]}),K$=e=>new Ge({name:"wp:posOffset",children:[e.toString()]}),zoe=({relative:e,align:t,offset:r})=>new Ge({name:"wp:positionH",attributes:{relativeFrom:{key:"relativeFrom",value:e??Ioe.PAGE}},children:[(()=>{if(t)return G$(t);if(r!==void 0)return K$(r);throw new Error("There is no configuration provided for floating position (Align or offset)")})()]}),Foe=({relative:e,align:t,offset:r})=>new Ge({name:"wp:positionV",attributes:{relativeFrom:{key:"relativeFrom",value:e??Boe.PAGE}},children:[(()=>{if(t)return G$(t);if(r!==void 0)return K$(r);throw new Error("There is no configuration provided for floating position (Align or offset)")})()]}),$oe=(e={})=>{var t,r,a,n;return new Ge({name:"wps:bodyPr",attributes:{lIns:{key:"lIns",value:(t=e.margins)===null||t===void 0?void 0:t.left},rIns:{key:"rIns",value:(r=e.margins)===null||r===void 0?void 0:r.right},tIns:{key:"tIns",value:(a=e.margins)===null||a===void 0?void 0:a.top},bIns:{key:"bIns",value:(n=e.margins)===null||n===void 0?void 0:n.bottom},anchor:{key:"anchor",value:e.verticalAnchor}},children:[...e.noAutoFit?[new Fe("a:noAutofit",e.noAutoFit)]:[]]})},qoe=(e={txBox:"1"})=>new Ge({name:"wps:cNvSpPr",attributes:{txBox:{key:"txBox",value:e.txBox}}}),Voe=e=>new Ge({name:"w:txbxContent",children:[...e]}),Uoe=e=>new Ge({name:"wps:txbx",children:[Voe(e)]}),Hoe=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{cx:"cx",cy:"cy"})}},Goe=class extends Me{constructor(e,t){super("a:ext"),Ce(this,"attributes",void 0),this.attributes=new Hoe({cx:e,cy:t}),this.root.push(this.attributes)}},Koe=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{x:"x",y:"y"})}},Woe=class extends Me{constructor(e,t){super("a:off"),this.root.push(new Koe({x:e??0,y:t??0}))}},Xoe=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{flipVertical:"flipV",flipHorizontal:"flipH",rotation:"rot"})}},W$=class extends Me{constructor(e){var t,r,a,n;super("a:xfrm"),Ce(this,"extents",void 0),Ce(this,"offset",void 0),this.root.push(new Xoe({flipVertical:(t=e.flip)===null||t===void 0?void 0:t.vertical,flipHorizontal:(r=e.flip)===null||r===void 0?void 0:r.horizontal,rotation:e.rotation})),this.offset=new Woe((a=e.offset)===null||a===void 0||(a=a.emus)===null||a===void 0?void 0:a.x,(n=e.offset)===null||n===void 0||(n=n.emus)===null||n===void 0?void 0:n.y),this.extents=new Goe(e.emus.x,e.emus.y),this.root.push(this.offset),this.root.push(this.extents)}},X$=()=>
1145new Ge({name:"a:noFill"}),Yoe=e=>new Ge({name:"a:srgbClr",attributes:{value:{key:"val",value:e.value}}}),Zoe=e=>new Ge({name:"a:schemeClr",attributes:{value:{key:"val",value:e.value}}}),zC=e=>new Ge({name:"a:solidFill",children:[e.type==="rgb"?Yoe(e):Zoe(e)]}),Joe=e=>new Ge({name:"a:ln",attributes:{width:{key:"w",value:e.width},cap:{key:"cap",value:e.cap},compoundLine:{key:"cmpd",value:e.compoundLine},align:{key:"algn",value:e.align}},children:[e.type==="noFill"?X$():e.solidFillType==="rgb"?zC({type:"rgb",value:e.value}):zC({type:"scheme",value:e.value})]}),Qoe=class extends Me{constructor(){super("a:avLst")}},ese=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{prst:"prst"})}},tse=class extends Me{constructor(){super("a:prstGeom"),this.root.push(new ese({prst:"rect"})),this.root.push(new Qoe)}},rse=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{bwMode:"bwMode"})}},Y$=class extends Me{constructor({element:e,outline:t,solidFill:r,transform:a}){super(`${e}:spPr`),Ce(this,"form",void 0),this.root.push(new rse({bwMode:"auto"})),this.form=new W$(a),this.root.push(this.form),this.root.push(new tse),t&&(this.root.push(X$()),this.root.push(Joe(t))),r&&this.root.push(zC(r))}},B3=e=>new Ge({name:"wps:wsp",children:[qoe(e.nonVisualProperties),new Y$({element:"wps",transform:e.transformation,outline:e.outline,solidFill:e.solidFill}),Uoe(e.children),$oe(e.bodyProperties)]}),ew=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{uri:"uri"})}},ase=e=>new Ge({name:"asvg:svgBlip",attributes:{asvg:{key:"xmlns:asvg",value:"http://schemas.microsoft.com/office/drawing/2016/SVG/main"},embed:{key:"r:embed",value:`rId{${e.fileName}}`}}}),nse=e=>new Ge({name:"a:ext",attributes:{uri:{key:"uri",value:"{96DAC541-7B7A-43D3-8B79-37D633B846F1}"}},children:[ase(e)]}),ise=e=>new Ge({name:"a:extLst",children:[nse(e)]}),ose=e=>new Ge({name:"a:blip",attributes:{embed:{key:"r:embed",value:`rId{${e.type==="svg"?e.fallback.fileName:e.fileName}}`},cstate:{key:"cstate",value:"none"}},children:e.type==="svg"?[ise(e)]:[]}),sse=class extends Me{constructor(){super("a:srcRect")}},lse=class extends Me{constructor(){super("a:fillRect")}},cse=class extends Me{constructor(){super("a:stretch"),this.root.push(new lse)}},use=class extends Me{constructor(e){super("pic:blipFill"),this.root.push(ose(e)),this.root.push(new sse),this.root.push(new cse)}},dse=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{noChangeAspect:"noChangeAspect",noChangeArrowheads:"noChangeArrowheads"})}},fse=class extends Me{constructor(){super("a:picLocks"),this.root.push(new dse({noChangeAspect:1,noChangeArrowheads:1}))}},pse=class extends Me{constructor(){super("pic:cNvPicPr"),this.root.push(new fse)}},Z$=(e,t)=>new Ge({name:"a:hlinkClick",attributes:Xe(Xe({},t?{xmlns:{key:"xmlns:a",value:"http://schemas.openxmlformats.org/drawingml/2006/main"}}:{}),{},{id:{key:"r:id",value:`rId${e}`}})}),hse=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{id:"id",name:"name",descr:"descr"})}},mse=class extends Me{constructor(){super("pic:cNvPr"),this.root.push(new hse({id:0,name:"",descr:""}))}prepForXml(e){for(let t=e.stack.length-1;t>=0;t--){const r=e.stack[t];if(r instanceof jN){this.root.push(Z$(r.linkId,!1));break}}return super.prepForXml(e)}},gse=class extends Me{constructor(){super("pic:nvPicPr"),this.root.push(new mse),this.root.push(new pse)}},xse=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{xmlns:"xmlns:pic"})}},L3=class extends Me{constructor({mediaData:e,transform:t,outline:r}){super("pic:pic"),this.root.push(new xse({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.root.push(new gse),this.root.push(new use(e)),this.root.push(new Y$({element:"pic",transform:t,outline:r}))}},vse=e=>new Ge({name:"wpg:grpSpPr",children:[new W$(e)]}),yse=()=>new Ge({name:"wpg:cNvGrpSpPr"}),bse=e=>new Ge({name:"wpg:wgp",children:[yse(),vse(e.transformation),...e.children]}),wse=class extends Me{constructor({mediaData:e,transform:t,outline:r,solidFill:a}){if(super("a:graphicData"),e.type==="wps"){this.root.push(new ew({uri:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}));const n=B3(Xe(Xe({},e.data),{},{transformation:t,outline:r,solidFill:a}));this.root.push(n)}else if(e.type==="wpg"){this.root.push(new ew({uri:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup"}));const n=bse({children:e.children.map(i=>i.type==="wps"?B3(Xe(Xe({},i.data),{},{transformation:i.transformation,outline:i.outline,solidFill:i.solidFill})):new L3({mediaData:i,transform:i.transformation,outline:i.outline})),transformation:t});this.root.push(n)}else{this.root.push(new ew({uri:"http://schemas.openxmlformats.org/drawingml/2006/picture"}));const n=new L3({mediaData:e,transform:t,outline:r});this.root.push(n)}}},Sse=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{a:"xmlns:a"})}},J$=class extends Me{constructor({mediaData:e,transform:t,outline:r,solidFill:a}){super("a:graphic"),Ce(this,"data",void 0),this.root.push(new Sse({a:"http://schemas.openxmlformats.org/drawingml/2006/main"})),this.data=new wse({mediaData:e,transform:t,outline:r,solidFill:a}),this.root.push(this.data)}},Lg={NONE:0,SQUARE:1,TIGHT:2,TOP_AND_BOTTOM:3},Ese={BOTH_SIDES:"bothSides"},z3=()=>
1145new Ge({name:"wp:wrapNone"}),Ase=(e,t={top:0,bottom:0,left:0,right:0})=>new Ge({name:"wp:wrapSquare",attributes:{wrapText:{key:"wrapText",value:e.side||Ese.BOTH_SIDES},distT:{key:"distT",value:t.top},distB:{key:"distB",value:t.bottom},distL:{key:"distL",value:t.left},distR:{key:"distR",value:t.right}}}),Cse=(e={top:0,bottom:0})=>new Ge({name:"wp:wrapTight",attributes:{distT:{key:"distT",value:e.top},distB:{key:"distB",value:e.bottom}}}),Pse=(e={top:0,bottom:0})=>new Ge({name:"wp:wrapTopAndBottom",attributes:{distT:{key:"distT",value:e.top},distB:{key:"distB",value:e.bottom}}}),Q$=class extends Me{constructor({name:e,description:t,title:r,id:a}={name:"",description:"",title:""}){super("wp:docPr"),Ce(this,"docPropertiesUniqueNumericId",_oe());const n={id:{key:"id",value:a??this.docPropertiesUniqueNumericId()},name:{key:"name",value:e}};t!=null&&(n.description={key:"descr",value:t}),r!=null&&(n.title={key:"title",value:r}),this.root.push(new f$(n))}prepForXml(e){for(let t=e.stack.length-1;t>=0;t--){const r=e.stack[t];if(r instanceof jN){this.root.push(Z$(r.linkId,!0));break}}return super.prepForXml(e)}},eq=({top:e,right:t,bottom:r,left:a})=>new Ge({name:"wp:effectExtent",attributes:{top:{key:"t",value:e},right:{key:"r",value:t},bottom:{key:"b",value:r},left:{key:"l",value:a}}}),tq=({x:e,y:t})=>new Ge({name:"wp:extent",attributes:{x:{key:"cx",value:e},y:{key:"cy",value:t}}}),jse=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{xmlns:"xmlns:a",noChangeAspect:"noChangeAspect"})}},Nse=class extends Me{constructor(){super("a:graphicFrameLocks"),this.root.push(new jse({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/main",noChangeAspect:1}))}},rq=()=>new Ge({name:"wp:cNvGraphicFramePr",children:[new Nse]}),Tse=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{distT:"distT",distB:"distB",distL:"distL",distR:"distR",allowOverlap:"allowOverlap",behindDoc:"behindDoc",layoutInCell:"layoutInCell",locked:"locked",relativeHeight:"relativeHeight",simplePos:"simplePos"})}},kse=class extends Me{constructor({mediaData:e,transform:t,drawingOptions:r}){super("wp:anchor");const a=Xe({allowOverlap:!0,behindDocument:!1,lockAnchor:!1,layoutInCell:!0,verticalPosition:{},horizontalPosition:{}},r.floating);if(this.root.push(new Tse({distT:a.margins&&a.margins.top||0,distB:a.margins&&a.margins.bottom||0,distL:a.margins&&a.margins.left||0,distR:a.margins&&a.margins.right||0,simplePos:"0",allowOverlap:a.allowOverlap===!0?"1":"0",behindDoc:a.behindDocument===!0?"1":"0",locked:a.lockAnchor===!0?"1":"0",layoutInCell:a.layoutInCell===!0?"1":"0",relativeHeight:a.zIndex?a.zIndex:t.emus.y})),this.root.push(Loe()),this.root.push(zoe(a.horizontalPosition)),this.root.push(Foe(a.verticalPosition)),this.root.push(tq({x:t.emus.x,y:t.emus.y})),this.root.push(eq({top:0,right:0,bottom:0,left:0})),r.floating!==void 0&&r.floating.wrap!==void 0)switch(r.floating.wrap.type){case Lg.SQUARE:this.root.push(Ase(r.floating.wrap,r.floating.margins));break;case Lg.TIGHT:this.root.push(Cse(r.floating.margins));break;case Lg.TOP_AND_BOTTOM:this.root.push(Pse(r.floating.margins));break;case Lg.NONE:default:this.root.push(z3())}else this.root.push(z3());this.root.push(new Q$(r.docProperties)),this.root.push(rq()),this.root.push(new J$({mediaData:e,transform:t,outline:r.outline,solidFill:r.solidFill}))}},Dse=({mediaData:e,transform:t,docProperties:r,outline:a,solidFill:n})=>{var i,o,s,c;return new Ge({name:"wp:inline",attributes:{distanceTop:{key:"distT",value:0},distanceBottom:{key:"distB",value:0},distanceLeft:{key:"distL",value:0},distanceRight:{key:"distR",value:0}},children:[tq({x:t.emus.x,y:t.emus.y}),eq(a?{top:((i=a.width)!==null&&i!==void 0?i:9525)*2,right:((o=a.width)!==null&&o!==void 0?o:9525)*2,bottom:((s=a.width)!==null&&s!==void 0?s:9525)*2,left:((c=a.width)!==null&&c!==void 0?c:9525)*2}:{top:0,right:0,bottom:0,left:0}),new Q$(r),rq(),new J$({mediaData:e,transform:t,outline:a,solidFill:n})]})},_se=class extends Me{constructor(e,t={}){super("w:drawing"),t.floating?this.root.push(new kse({mediaData:e,transform:e.transformation,drawingOptions:t})):this.root.push(Dse({mediaData:e,transform:e.transformation,docProperties:t.docProperties,outline:t.outline,solidFill:t.solidFill}))}},Rse=e=>{const t=e.indexOf(";base64,"),r=t===-1?0:t+8;return new Uint8Array(atob(e.substring(r)).split("").map(a=>
1145a.charCodeAt(0)))},Ose=e=>typeof e=="string"?Rse(e):e,tw=(e,t)=>({data:Ose(e.data),fileName:t,transformation:{pixels:{x:Math.round(e.transformation.width),y:Math.round(e.transformation.height)},emus:{x:Math.round(e.transformation.width*9525),y:Math.round(e.transformation.height*9525)},flip:e.transformation.flip,rotation:e.transformation.rotation?e.transformation.rotation*6e4:void 0}}),aq=class extends Me{constructor(e){var t=(...o)=>(super(...o),Ce(this,"imageData",void 0),this);const r=`${I3(e.data)}.${e.type}`,a=e.type==="svg"?Xe(Xe({type:e.type},tw(e,r)),{},{fallback:Xe({type:e.fallback.type},tw(Xe(Xe({},e.fallback),{},{transformation:e.transformation}),`${I3(e.fallback.data)}.${e.fallback.type}`))}):Xe({type:e.type},tw(e,r)),n=new _se(a,{floating:e.floating,docProperties:e.altText,outline:e.outline}),i=new Nd({children:[n]});e.insertion?(t("w:ins"),this.root.push(new Ua({id:e.insertion.id,author:e.insertion.author,date:e.insertion.date})),this.addChildElement(i)):e.deletion?(t("w:del"),this.root.push(new Ua({id:e.deletion.id,author:e.deletion.author,date:e.deletion.date})),this.addChildElement(i)):(t("w:r"),this.root.push(new ks({})),this.root.push(n)),this.imageData=a}prepForXml(e){return e.file.Media.addImage(this.imageData.fileName,this.imageData),this.imageData.type==="svg"&&e.file.Media.addImage(this.imageData.fallback.fileName,this.imageData.fallback),super.prepForXml(e)}},Mse=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{xmlns:"xmlns"})}},Ise={EXTERNAL:"External"},Bse=(e,t,r,a)=>new Ge({name:"Relationship",attributes:{id:{key:"Id",value:e},type:{key:"Type",value:t},target:{key:"Target",value:r},targetMode:{key:"TargetMode",value:a}}}),Ds=class extends Me{constructor(){super("Relationships"),this.root.push(new Mse({xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}))}addRelationship(e,t,r,a){this.root.push(Bse(`rId${e}`,t,r,a))}get RelationshipCount(){return this.root.length-1}},Lse=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{id:"w:id",initials:"w:initials",author:"w:author",date:"w:date"})}},zse=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{"xmlns:cx":"xmlns:cx","xmlns:cx1":"xmlns:cx1","xmlns:cx2":"xmlns:cx2","xmlns:cx3":"xmlns:cx3","xmlns:cx4":"xmlns:cx4","xmlns:cx5":"xmlns:cx5","xmlns:cx6":"xmlns:cx6","xmlns:cx7":"xmlns:cx7","xmlns:cx8":"xmlns:cx8","xmlns:mc":"xmlns:mc","xmlns:aink":"xmlns:aink","xmlns:am3d":"xmlns:am3d","xmlns:o":"xmlns:o","xmlns:r":"xmlns:r","xmlns:m":"xmlns:m","xmlns:v":"xmlns:v","xmlns:wp14":"xmlns:wp14","xmlns:wp":"xmlns:wp","xmlns:w10":"xmlns:w10","xmlns:w":"xmlns:w","xmlns:w14":"xmlns:w14","xmlns:w15":"xmlns:w15","xmlns:w16cex":"xmlns:w16cex","xmlns:w16cid":"xmlns:w16cid","xmlns:w16":"xmlns:w16","xmlns:w16sdtdh":"xmlns:w16sdtdh","xmlns:w16se":"xmlns:w16se","xmlns:wpg":"xmlns:wpg","xmlns:wpi":"xmlns:wpi","xmlns:wne":"xmlns:wne","xmlns:wps":"xmlns:wps"})}},F3=class extends Me{constructor({id:e,initials:t,author:r,date:a=new Date,children:n},i){super("w:comment"),Ce(this,"paraId",void 0),this.paraId=i,this.root.push(new Lse({id:e,initials:t,author:r,date:a.toISOString()}));for(const o of n)this.root.push(o)}
1145prepForXml(e){const t=super.prepForXml(e);if(!t||!this.paraId)return t;const r=t["w:comment"];if(!Array.isArray(r))return t;for(let a=r.length-1;a>=0;a--){const n=r[a];if(n&&typeof n=="object"&&"w:p"in n){const i=n["w:p"];Array.isArray(i)&&i.unshift({_attr:{"w14:paraId":this.paraId,"w14:textId":this.paraId}});break}}return t}},Fse=e=>(e+1).toString(16).toUpperCase().padStart(8,"0"),$se=class extends Me{constructor({children:e}){if(super("w:comments"),Ce(this,"relationships",void 0),Ce(this,"threadData",void 0),this.root.push(new zse({"xmlns:cx":"http://schemas.microsoft.com/office/drawing/2014/chartex","xmlns:cx1":"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex","xmlns:cx2":"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex","xmlns:cx3":"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex","xmlns:cx4":"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex","xmlns:cx5":"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex","xmlns:cx6":"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex","xmlns:cx7":"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex","xmlns:cx8":"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:aink":"http://schemas.microsoft.com/office/drawing/2016/ink","xmlns:am3d":"http://schemas.microsoft.com/office/drawing/2017/model3d","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:m":"http://schemas.openxmlformats.org/officeDocument/2006/math","xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:wp14":"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing","xmlns:wp":"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing","xmlns:w10":"urn:schemas-microsoft-com:office:word","xmlns:w":"http://schemas.openxmlformats.org/wordprocessingml/2006/main","xmlns:w14":"http://schemas.microsoft.com/office/word/2010/wordml","xmlns:w15":"http://schemas.microsoft.com/office/word/2012/wordml","xmlns:w16cex":"http://schemas.microsoft.com/office/word/2018/wordml/cex","xmlns:w16cid":"http://schemas.microsoft.com/office/word/2016/wordml/cid","xmlns:w16":"http://schemas.microsoft.com/office/word/2018/wordml","xmlns:w16sdtdh":"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash","xmlns:w16se":"http://schemas.microsoft.com/office/word/2015/wordml/symex","xmlns:wpg":"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup","xmlns:wpi":"http://schemas.microsoft.com/office/word/2010/wordprocessingInk","xmlns:wne":"http://schemas.microsoft.com/office/word/2006/wordml","xmlns:wps":"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"})),e.some(t=>t.parentId!==void 0)){const t=new Map(e.map(r=>[r.id,Fse(r.id)]));for(const r of e)this.root.push(new F3(r,t.get(r.id)));this.threadData=e.map(r=>({paraId:t.get(r.id),parentParaId:r.parentId!==void 0?t.get(r.parentId):void 0,done:r.resolved}))}else for(const t of e)this.root.push(new F3(t));this.relationships=new Ds}get Relationships(){return this.relationships}get ThreadData(){return this.threadData}},qse=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{"xmlns:wpc":"xmlns:wpc","xmlns:mc":"xmlns:mc","xmlns:w15":"xmlns:w15","mc:Ignorable":"mc:Ignorable"})}},Vse=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{paraId:"w15:paraId",paraIdParent:"w15:paraIdParent",done:"w15:done"})}},Use=class extends Me{constructor(e){super("w15:commentEx"),this.root.push(new Vse({paraId:e.paraId,paraIdParent:e.parentParaId,done:e.done!==void 0?e.done?"1":"0":void 0}))}},Hse=class extends Me{constructor(e){super("w15:commentsEx"),this.root.push(new qse({"xmlns:wpc":"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:w15":"http://schemas.microsoft.com/office/word/2012/wordml","mc:Ignorable":"w15"}));for(const t of e)this.root.push(new Use(t))}},Gse=class extends Zie{constructor(){super("w:endnoteRef")}},Kse=class extends Me{constructor(){super("w:pageBreakBefore")}},Fu={AUTO:"auto"},Wse=({after:e,before:t,line:r,lineRule:a,beforeAutoSpacing:n,afterAutoSpacing:i})=>
1145new Ge({name:"w:spacing",attributes:{after:{key:"w:after",value:e},before:{key:"w:before",value:t},line:{key:"w:line",value:r},lineRule:{key:"w:lineRule",value:a},beforeAutoSpacing:{key:"w:beforeAutospacing",value:n},afterAutoSpacing:{key:"w:afterAutospacing",value:i}}}),gp={HEADING_1:"Heading1",HEADING_2:"Heading2"},ap=e=>new Ge({name:"w:pStyle",attributes:{val:{key:"w:val",value:e}}}),$3={LEFT:"left",RIGHT:"right"},Xse=({type:e,position:t,leader:r})=>new Ge({name:"w:tab",attributes:{val:{key:"w:val",value:e},pos:{key:"w:pos",value:t},leader:{key:"w:leader",value:r}}}),Yse=e=>new Ge({name:"w:tabs",children:e.map(t=>Xse(t))}),rw=class extends Me{constructor(e,t){super("w:numPr"),this.root.push(new Zse(t)),this.root.push(new Jse(e))}},Zse=class extends Me{constructor(e){if(super("w:ilvl"),e>9)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new Sa({val:e}))}},Jse=class extends Me{constructor(e){super("w:numId"),this.root.push(new Sa({val:typeof e=="string"?`{${e}}`:e}))}},nq=class extends Me{constructor(...e){super(...e),Ce(this,"fileChild",Symbol())}},Qse=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{id:"r:id",history:"w:history",anchor:"w:anchor"})}},jN=class extends Me{constructor(e,t,r){super("w:hyperlink"),Ce(this,"linkId",void 0),this.linkId=t;const a=new Qse({history:1,anchor:r||void 0,id:r?void 0:`rId${this.linkId}`});this.root.push(a),e.forEach(n=>{this.root.push(n)})}},iq=class extends Me{constructor(e){super("w:externalHyperlink"),Ce(this,"options",void 0),this.options=e}},ele=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{id:"w:id",name:"w:name"})}},tle=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{id:"w:id"})}},rle=class{constructor(e){Ce(this,"bookmarkUniqueNumericId",Roe()),Ce(this,"start",void 0),Ce(this,"children",void 0),Ce(this,"end",void 0);const t=this.bookmarkUniqueNumericId();this.start=new ale(e.id,t),this.children=e.children,this.end=new nle(t)}},ale=class extends Me{constructor(e,t){super("w:bookmarkStart");const r=new ele({name:e,id:t});this.root.push(r)}},nle=class extends Me{constructor(e){super("w:bookmarkEnd");const t=new tle({id:e});this.root.push(t)}},ile=e=>new Ge({name:"w:outlineLvl",attributes:{val:{key:"w:val",value:e}}}),zg=({id:e,fontKey:t,subsetted:r},a)=>new Ge({name:a,attributes:Xe({id:{key:"r:id",value:e}},t?{fontKey:{key:"w:fontKey",value:`{${t}}`}}:{}),children:[...r?[new Fe("w:subsetted",r)]:[]]}),ole=({name:e,altName:t,panose1:r,charset:a,family:n,notTrueType:i,pitch:o,sig:s,embedRegular:c,embedBold:u,embedItalic:h,embedBoldItalic:f})=>new Ge({name:"w:font",attributes:{name:{key:"w:name",value:e}},children:[...t?[Bf("w:altName",t)]:[],...r?[Bf("w:panose1",r)]:[],...a?[Bf("w:charset",a)]:[],Bf("w:family",n),...i?[new Fe("w:notTrueType",i)]:[],Bf("w:pitch",o),...s?[new Ge({name:"w:sig",attributes:{usb0:{key:"w:usb0",value:s.usb0},usb1:{key:"w:usb1",value:s.usb1},usb2:{key:"w:usb2",value:s.usb2},usb3:{key:"w:usb3",value:s.usb3},csb0:{key:"w:csb0",value:s.csb0},csb1:{key:"w:csb1",value:s.csb1}}})]:[],...c?[zg(c,"w:embedRegular")]:[],...u?[zg(u,"w:embedBold")]:[],...h?[zg(h,"w:embedItalic")]:[],...f?[zg(f,"w:embedBoldItalic")]:[]]}),sle=({name:e,index:t,fontKey:r,characterSet:a})=>ole({name:e,sig:{usb0:"E0002AFF",usb1:"C000247B",usb2:"00000009",usb3:"00000000",csb0:"000001FF",csb1:"00000000"},charset:a,family:"auto",pitch:"variable",embedRegular:{fontKey:r,id:`rId${t}`}}),lle=e=>new Ge({name:"w:fonts",attributes:{mc:{key:"xmlns:mc",value:"http://schemas.openxmlformats.org/markup-compatibility/2006"},r:{key:"xmlns:r",value:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"},w:{key:"xmlns:w",value:"http://schemas.openxmlformats.org/wordprocessingml/2006/main"},w14:{key:"xmlns:w14",value:"http://schemas.microsoft.com/office/word/2010/wordml"},w15:{key:"xmlns:w15",value:"http://schemas.microsoft.com/office/word/2012/wordml"},w16cex:{key:"xmlns:w16cex",value:"http://schemas.microsoft.com/office/word/2018/wordml/cex"},w16cid:{key:"xmlns:w16cid",value:"http://schemas.microsoft.com/office/word/2016/wordml/cid"},w16:{key:"xmlns:w16",value:"http://schemas.microsoft.com/office/word/2018/wordml"},w16sdtdh:{key:"xmlns:w16sdtdh",value:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash"},w16se:{key:"xmlns:w16se",value:"http://schemas.microsoft.com/office/word/2015/wordml/symex"},Ignorable:{key:"mc:Ignorable",value:"w14 w15 w16se w16cid w16 w16cex w16sdtdh"}},children:e.map((t,r)=>sle({name:t.name,index:r+1,fontKey:t.fontKey,characterSet:t.characterSet}))}),oq=class{constructor(e){Ce(this,"options",void 0),Ce(this,"fontTable",void 0),Ce(this,"relationships",void 0),Ce(this,"fontOptionsWithKey",[]),this.options=e,this.fontOptionsWithKey=e.map(t=>Xe(Xe({},t),{},{fontKey:Moe()})),this.fontTable=lle(this.fontOptionsWithKey),this.relationships=new Ds;for(let t=0;t<e.length;t++)this.relationships.addRelationship(t+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/font",`fonts/font${t+1}.odttf`)}get View(){return this.fontTable}get Relationships(){return this.relationships}},cle=()=>
1145new Ge({name:"w:wordWrap",attributes:{val:{key:"w:val",value:0}}}),ule=e=>{var t,r;return new Ge({name:"w:framePr",attributes:{anchorLock:{key:"w:anchorLock",value:e.anchorLock},dropCap:{key:"w:dropCap",value:e.dropCap},width:{key:"w:w",value:e.width},height:{key:"w:h",value:e.height},x:{key:"w:x",value:e.position?e.position.x:void 0},y:{key:"w:y",value:e.position?e.position.y:void 0},anchorHorizontal:{key:"w:hAnchor",value:e.anchor.horizontal},anchorVertical:{key:"w:vAnchor",value:e.anchor.vertical},spaceHorizontal:{key:"w:hSpace",value:(t=e.space)===null||t===void 0?void 0:t.horizontal},spaceVertical:{key:"w:vSpace",value:(r=e.space)===null||r===void 0?void 0:r.vertical},rule:{key:"w:hRule",value:e.rule},alignmentX:{key:"w:xAlign",value:e.alignment?e.alignment.x:void 0},alignmentY:{key:"w:yAlign",value:e.alignment?e.alignment.y:void 0},lines:{key:"w:lines",value:e.lines},wrap:{key:"w:wrap",value:e.wrap}}})},$l=class extends js{constructor(e){if(super("w:pPr",e?.includeIfEmpty),Ce(this,"numberingReferences",[]),!e)return this;if(e.heading&&this.push(ap(e.heading)),e.bullet&&this.push(ap("ListParagraph")),e.numbering&&!e.style&&!e.heading&&(e.numbering.custom||this.push(ap("ListParagraph"))),e.style&&this.push(ap(e.style)),e.keepNext!==void 0&&this.push(new Fe("w:keepNext",e.keepNext)),e.keepLines!==void 0&&this.push(new Fe("w:keepLines",e.keepLines)),e.pageBreakBefore&&this.push(new Kse),e.frame&&this.push(ule(e.frame)),e.widowControl!==void 0&&this.push(new Fe("w:widowControl",e.widowControl)),e.bullet&&this.push(new rw(1,e.bullet.level)),e.numbering){var t,r;this.numberingReferences.push({reference:e.numbering.reference,instance:(t=e.numbering.instance)!==null&&t!==void 0?t:0}),this.push(new rw(`${e.numbering.reference}-${(r=e.numbering.instance)!==null&&r!==void 0?r:0}`,e.numbering.level))}else e.numbering===!1&&this.push(new rw(0,0));e.border&&this.push(new Jie(e.border)),e.thematicBreak&&this.push(new Qie),e.shading&&this.push(wy(e.shading)),e.wordWrap&&this.push(cle()),e.overflowPunctuation&&this.push(new Fe("w:overflowPunct",e.overflowPunctuation));const a=[...e.rightTabStop!==void 0?[{type:$3.RIGHT,position:e.rightTabStop}]:[],...e.tabStops?e.tabStops:[],...e.leftTabStop!==void 0?[{type:$3.LEFT,position:e.leftTabStop}]:[]];a.length>0&&this.push(Yse(a)),e.bidirectional!==void 0&&this.push(new Fe("w:bidi",e.bidirectional)),e.spacing&&this.push(Wse(e.spacing)),e.indent&&this.push(eoe(e.indent)),e.contextualSpacing!==void 0&&this.push(new Fe("w:contextualSpacing",e.contextualSpacing)),e.alignment&&this.push(z$(e.alignment)),e.outlineLevel!==void 0&&this.push(ile(e.outlineLevel)),e.suppressLineNumbers!==void 0&&this.push(new Fe("w:suppressLineNumbers",e.suppressLineNumbers)),e.autoSpaceEastAsianText!==void 0&&this.push(new Fe("w:autoSpaceDN",e.autoSpaceEastAsianText)),e.run&&this.push(new voe(e.run)),e.revision&&this.push(new dle(e.revision))}push(e){this.root.push(e)}prepForXml(e){if(!(e.viewWrapper instanceof oq))for(const t of this.numberingReferences)e.file.Numbering.createConcreteNumberingInstance(t.reference,t.instance);return super.prepForXml(e)}},dle=class extends Me{constructor(e){super("w:pPrChange"),this.root.push(new Ua({id:e.id,author:e.author,date:e.date})),this.root.push(new $l(Xe(Xe({},e),{},{includeIfEmpty:!0})))}},pt=class extends nq{constructor(e){if(super("w:p"),Ce(this,"properties",void 0),typeof e=="string")return this.properties=new $l({}),this.root.push(this.properties),this.root.push(new bt(e)),this;if(this.properties=new $l(e),this.root.push(this.properties),e.text&&this.root.push(new bt(e.text)),e.children)for(const t of e.children){if(t instanceof rle){this.root.push(t.start);for(const r of t.children)this.root.push(r);this.root.push(t.end);continue}this.root.push(t)}}prepForXml(e){for(const t of this.root)if(t instanceof iq){const r=this.root.indexOf(t),a=new jN(t.options.children,Ooe());e.viewWrapper.Relationships.addRelationship(a.linkId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",t.options.link,Ise.EXTERNAL),this.root[r]=a}return super.prepForXml(e)}addRunToFront(e){return this.root.splice(1,0,e),this}},fle=e=>
1145new Ge({name:"w:gridCol",attributes:e!==void 0?{width:{key:"w:w",value:da(e)}}:void 0}),sq=class extends Me{constructor(e,t){super("w:tblGrid");for(const r of e)this.root.push(fle(r));t&&this.root.push(new hle(t))}},ple=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{id:"w:id"})}},hle=class extends Me{constructor(e){super("w:tblGridChange"),this.root.push(new ple({id:e.id})),this.root.push(new sq(e.columnWidths))}},mle=class extends Me{constructor(e){super("w:ins"),this.root.push(new Ua({id:e.id,author:e.author,date:e.date}))}},gle=class extends Me{constructor(e){super("w:del"),this.root.push(new Ua({id:e.id,author:e.author,date:e.date}))}},xle=class extends Me{constructor(e){super("w:cellIns"),this.root.push(new Ua({id:e.id,author:e.author,date:e.date}))}},vle=class extends Me{constructor(e){super("w:cellDel"),this.root.push(new Ua({id:e.id,author:e.author,date:e.date}))}},yle=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{id:"w:id",author:"w:author",date:"w:date",verticalMerge:"w:vMerge",verticalMergeOriginal:"w:vMergeOrig"})}},ble=class extends Me{constructor(e){super("w:cellMerge"),this.root.push(new yle(e))}},wle={TOP:"top",CENTER:"center",BOTTOM:"bottom"};Xe(Xe({},wle),{},{BOTH:"both"});var lq=e=>new Ge({name:"w:vAlign",attributes:{verticalAlign:{key:"w:val",value:e}}}),cq=({marginUnitType:e=$u.DXA,top:t,left:r,bottom:a,right:n})=>[{name:"w:top",size:t},{name:"w:left",size:r},{name:"w:bottom",size:a},{name:"w:right",size:n}].filter(i=>i.size!==void 0).map(({name:i,size:o})=>qx(i,{type:e,size:o})),Sle=e=>{const t=cq(e);if(t.length!==0)return new Ge({name:"w:tblCellMar",children:t})},Ele=e=>{const t=cq(e);if(t.length!==0)return new Ge({name:"w:tcMar",children:t})},$u={AUTO:"auto",DXA:"dxa",PERCENTAGE:"pct"},qx=(e,{type:t=$u.AUTO,size:r})=>{let a=r;return t===$u.PERCENTAGE&&typeof r=="number"&&(a=`${r}%`),new Ge({name:e,attributes:{type:{key:"w:type",value:t},size:{key:"w:w",value:L$(a)}}})},Ale=class extends js{constructor(e){super("w:tcBorders"),e.top&&this.root.push(Er("w:top",e.top)),e.start&&this.root.push(Er("w:start",e.start)),e.left&&this.root.push(Er("w:left",e.left)),e.bottom&&this.root.push(Er("w:bottom",e.bottom)),e.end&&this.root.push(Er("w:end",e.end)),e.right&&this.root.push(Er("w:right",e.right))}},Cle=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{val:"w:val"})}},Ple=class extends Me{constructor(e){super("w:gridSpan"),this.root.push(new Cle({val:pa(e)}))}},uq={CONTINUE:"continue",RESTART:"restart"},jle=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{val:"w:val"})}},q3=class extends Me{constructor(e){super("w:vMerge"),this.root.push(new jle({val:e}))}},Nle=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{val:"w:val"})}},Tle=class extends Me{constructor(e){super("w:textDirection"),this.root.push(new Nle({val:e}))}},dq=class extends js{constructor(e){if(super("w:tcPr",e.includeIfEmpty),e.width&&this.root.push(qx("w:tcW",e.width)),e.columnSpan&&this.root.push(new Ple(e.columnSpan)),e.verticalMerge?this.root.push(new q3(e.verticalMerge)):e.rowSpan&&e.rowSpan>1&&this.root.push(new q3(uq.RESTART)),e.borders&&this.root.push(new Ale(e.borders)),e.shading&&this.root.push(wy(e.shading)),e.margins){const t=Ele(e.margins);t&&this.root.push(t)}e.textDirection&&this.root.push(new Tle(e.textDirection)),e.verticalAlign&&this.root.push(lq(e.verticalAlign)),e.insertion&&this.root.push(new xle(e.insertion)),e.deletion&&this.root.push(new vle(e.deletion)),e.revision&&this.root.push(new kle(e.revision)),e.cellMerge&&this.root.push(new ble(e.cellMerge))}},kle=class extends Me{constructor(e){super("w:tcPrChange"),this.root.push(new Ua({id:e.id,author:e.author,date:e.date})),this.root.push(new dq(Xe(Xe({},e),{},{includeIfEmpty:!0})))}},$p=class extends Me{constructor(e){super("w:tc"),Ce(this,"options",void 0),this.options=e,this.root.push(new dq(e));for(const t of e.children)this.root.push(t)}prepForXml(e){return this.root[this.root.length-1]instanceof pt||this.root.push(new pt({})),super.prepForXml(e)}},Wc={style:Fl.NONE,size:0,color:"auto"},Xc={style:Fl.SINGLE,size:4,color:"auto"},fq=class extends Me{constructor(e){var t,r,a,n,i,o;super("w:tblBorders"),this.root.push(Er("w:top",(t=e.top)!==null&&t!==void 0?t:Xc)),this.root.push(Er("w:left",(r=e.left)!==null&&r!==void 0?r:Xc)),this.root.push(Er("w:bottom",(a=e.bottom)!==null&&a!==void 0?a:Xc)),this.root.push(Er("w:right",(n=e.right)!==null&&n!==void 0?n:Xc)),this.root.push(Er("w:insideH",(i=e.insideHorizontal)!==null&&i!==void 0?i:Xc)),this.root.push(Er("w:insideV",(o=e.insideVertical)!==null&&o!==void 0?o:Xc))}};
1145Ce(fq,"NONE",{top:Wc,bottom:Wc,left:Wc,right:Wc,insideHorizontal:Wc,insideVertical:Wc});var Dle=e=>new Ge({name:"w:tblOverlap",attributes:{val:{key:"w:val",value:e}}}),_le=({horizontalAnchor:e,verticalAnchor:t,absoluteHorizontalPosition:r,relativeHorizontalPosition:a,absoluteVerticalPosition:n,relativeVerticalPosition:i,bottomFromText:o,topFromText:s,leftFromText:c,rightFromText:u,overlap:h})=>new Ge({name:"w:tblpPr",attributes:{leftFromText:{key:"w:leftFromText",value:c===void 0?void 0:da(c)},rightFromText:{key:"w:rightFromText",value:u===void 0?void 0:da(u)},topFromText:{key:"w:topFromText",value:s===void 0?void 0:da(s)},bottomFromText:{key:"w:bottomFromText",value:o===void 0?void 0:da(o)},absoluteHorizontalPosition:{key:"w:tblpX",value:r===void 0?void 0:mo(r)},absoluteVerticalPosition:{key:"w:tblpY",value:n===void 0?void 0:mo(n)},horizontalAnchor:{key:"w:horzAnchor",value:e},relativeHorizontalPosition:{key:"w:tblpXSpec",value:a},relativeVerticalPosition:{key:"w:tblpYSpec",value:i},verticalAnchor:{key:"w:vertAnchor",value:t}},children:h?[Dle(h)]:void 0}),Rle=e=>new Ge({name:"w:tblLayout",attributes:{type:{key:"w:type",value:e}}}),Ole={DXA:"dxa"},pq=({type:e=Ole.DXA,value:t})=>new Ge({name:"w:tblCellSpacing",attributes:{type:{key:"w:type",value:e},value:{key:"w:w",value:L$(t)}}}),Mle=({firstRow:e,lastRow:t,firstColumn:r,lastColumn:a,noHBand:n,noVBand:i})=>new Ge({name:"w:tblLook",attributes:{firstRow:{key:"w:firstRow",value:e},lastRow:{key:"w:lastRow",value:t},firstColumn:{key:"w:firstColumn",value:r},lastColumn:{key:"w:lastColumn",value:a},noHBand:{key:"w:noHBand",value:n},noVBand:{key:"w:noVBand",value:i}}}),hq=class extends js{constructor(e){if(super("w:tblPr",e.includeIfEmpty),e.style&&this.root.push(new kl("w:tblStyle",e.style)),e.float&&this.root.push(_le(e.float)),e.visuallyRightToLeft!==void 0&&this.root.push(new Fe("w:bidiVisual",e.visuallyRightToLeft)),e.width&&this.root.push(qx("w:tblW",e.width)),e.alignment&&this.root.push(z$(e.alignment)),e.indent&&this.root.push(qx("w:tblInd",e.indent)),e.borders&&this.root.push(new fq(e.borders)),e.shading&&this.root.push(wy(e.shading)),e.layout&&this.root.push(Rle(e.layout)),e.cellMargin){const t=Sle(e.cellMargin);t&&this.root.push(t)}e.tableLook&&this.root.push(Mle(e.tableLook)),e.cellSpacing&&this.root.push(pq(e.cellSpacing)),e.revision&&this.root.push(new Ile(e.revision))}},Ile=class extends Me{constructor(e){super("w:tblPrChange"),this.root.push(new Ua({id:e.id,author:e.author,date:e.date})),this.root.push(new hq(Xe(Xe({},e),{},{includeIfEmpty:!0})))}},mq=class extends nq{constructor({rows:e,width:t,columnWidths:r=Array(Math.max(...e.map(y=>y.CellCount))).fill(100),columnWidthsRevision:a,margins:n,indent:i,float:o,layout:s,style:c,borders:u,alignment:h,visuallyRightToLeft:f,tableLook:m,cellSpacing:x,revision:v}){super("w:tbl"),this.root.push(new hq({borders:u??{},width:t??{size:100},indent:i,float:o,layout:s,style:c,alignment:h,cellMargin:n,visuallyRightToLeft:f,tableLook:m,cellSpacing:x,revision:v})),this.root.push(new sq(r,a));for(const y of e)this.root.push(y);e.forEach((y,b)=>{if(b===e.length-1)return;let S=0;y.cells.forEach(A=>{if(A.options.rowSpan&&A.options.rowSpan>1){const E=new $p({rowSpan:A.options.rowSpan-1,columnSpan:A.options.columnSpan,borders:A.options.borders,children:[],verticalMerge:uq.CONTINUE});e[b+1].addCellToColumnIndex(E,S)}S+=A.options.columnSpan||1})})}},Ble=(e,t)=>new Ge({name:"w:trHeight",attributes:{value:{key:"w:val",value:da(e)},rule:{key:"w:hRule",value:t}}}),gq=class extends js{constructor(e){super("w:trPr",e.includeIfEmpty),e.cantSplit!==void 0&&this.root.push(new Fe("w:cantSplit",e.cantSplit)),e.tableHeader!==void 0&&this.root.push(new Fe("w:tblHeader",e.tableHeader)),e.height&&this.root.push(Ble(e.height.value,e.height.rule)),e.cellSpacing&&this.root.push(pq(e.cellSpacing)),e.insertion&&this.root.push(new mle(e.insertion)),e.deletion&&this.root.push(new gle(e.deletion)),e.revision&&this.root.push(new Lle(e.revision))}},Lle=class extends Me{constructor(e){super("w:trPrChange"),this.root.push(new Ua({id:e.id,author:e.author,date:e.date})),this.root.push(new gq(Xe(Xe({},e),{},{includeIfEmpty:!0})))}},Vx=class extends Me{constructor(e){super("w:tr"),Ce(this,"options",void 0),this.options=e,this.root.push(new gq(e));for(const t of e.children)this.root.push(t)}get CellCount(){return this.options.children.length}get cells(){return this.root.filter(e=>e instanceof $p)}
1145addCellToIndex(e,t){this.root.splice(t+1,0,e)}addCellToColumnIndex(e,t){const r=this.columnIndexToRootIndex(t,!0);this.addCellToIndex(e,r-1)}rootIndexToColumnIndex(e){if(e<1||e>=this.root.length)throw new Error(`cell 'rootIndex' should between 1 to ${this.root.length-1}`);let t=0;for(let r=1;r<e;r++){const a=this.root[r];t+=a.options.columnSpan||1}return t}columnIndexToRootIndex(e,t=!1){if(e<0)throw new Error("cell 'columnIndex' should not less than zero");let r=0,a=1;for(;r<=e;){if(a>=this.root.length){if(t)return this.root.length;throw new Error(`cell 'columnIndex' should not great than ${r-1}`)}const n=this.root[a];a+=1,r+=n&&n.options.columnSpan||1}return a-1}},zle=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}},Fle=class extends Me{constructor(){super("Properties"),this.root.push(new zle({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"}))}},$le=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{xmlns:"xmlns"})}},so=(e,t)=>new Ge({name:"Default",attributes:{contentType:{key:"ContentType",value:e},extension:{key:"Extension",value:t}}}),La=(e,t)=>new Ge({name:"Override",attributes:{contentType:{key:"ContentType",value:e},partName:{key:"PartName",value:t}}}),qle=class extends Me{constructor(){super("Types"),this.root.push(new $le({xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"})),this.root.push(so("image/png","png")),this.root.push(so("image/jpeg","jpeg")),this.root.push(so("image/jpeg","jpg")),this.root.push(so("image/bmp","bmp")),this.root.push(so("image/gif","gif")),this.root.push(so("image/svg+xml","svg")),this.root.push(so("application/vnd.openxmlformats-package.relationships+xml","rels")),this.root.push(so("application/xml","xml")),this.root.push(so("application/vnd.openxmlformats-officedocument.obfuscatedFont","odttf")),this.root.push(La("application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml","/word/document.xml")),this.root.push(La("application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml","/word/styles.xml")),this.root.push(La("application/vnd.openxmlformats-package.core-properties+xml","/docProps/core.xml")),this.root.push(La("application/vnd.openxmlformats-officedocument.custom-properties+xml","/docProps/custom.xml")),this.root.push(La("application/vnd.openxmlformats-officedocument.extended-properties+xml","/docProps/app.xml")),this.root.push(La("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml","/word/numbering.xml")),this.root.push(La("application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml","/word/footnotes.xml")),this.root.push(La("application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml","/word/endnotes.xml")),this.root.push(La("application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml","/word/settings.xml")),this.root.push(La("application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml","/word/comments.xml")),this.root.push(La("application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml","/word/fontTable.xml"))}addCommentsExtended(){this.root.push(La("application/vnd.openxmlformats-officedocument.wordprocessingml.commentsExtended+xml","/word/commentsExtended.xml"))}addFooter(e){this.root.push(La("application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",`/word/footer${e}.xml`))}addHeader(e){this.root.push(La("application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",`/word/header${e}.xml`))}},V3={wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",xsi:"http://www.w3.org/2001/XMLSchema-instance",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",aink:"http://schemas.microsoft.com/office/drawing/2016/ink",am3d:"http://schemas.microsoft.com/office/drawing/2017/model3d",w16cex:"http://schemas.microsoft.com/office/word/2018/wordml/cex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16:"http://schemas.microsoft.com/office/word/2018/wordml",w16sdtdh:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex"},Ey=class extends ct{constructor(e,t){super(Xe({Ignorable:t},Object.fromEntries(e.map(r=>[r,V3[r]])))),Ce(this,"xmlKeys",Xe({Ignorable:"mc:Ignorable"},Object.fromEntries(Object.keys(V3).map(r=>[r,`xmlns:${r}`]))))}},Vle=class extends Me{constructor(e){super("cp:coreProperties"),this.root.push(new Ey(["cp","dc","dcterms","dcmitype","xsi"])),e.title&&this.root.push(new il("dc:title",e.title)),e.subject&&this.root.push(new il("dc:subject",e.subject)),e.creator&&this.root.push(new il("dc:creator",e.creator)),e.keywords&&this.root.push(new il("cp:keywords",e.keywords)),e.description&&this.root.push(new il("dc:description",e.description)),e.lastModifiedBy&&this.root.push(new il("cp:lastModifiedBy",e.lastModifiedBy)),e.revision&&this.root.push(new il("cp:revision",String(e.revision))),this.root.push(new U3("dcterms:created")),this.root.push(new U3("dcterms:modified"))}},Ule=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{type:"xsi:type"})}},U3=class extends Me{constructor(e){super(e),this.root.push(new Ule({type:"dcterms:W3CDTF"}
1145)),this.root.push(Yie(new Date))}},Hle=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}},Gle=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{formatId:"fmtid",pid:"pid",name:"name"})}},Kle=class extends Me{constructor(e,t){super("property"),this.root.push(new Gle({formatId:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:e.toString(),name:t.name})),this.root.push(new Wle(t.value))}},Wle=class extends Me{constructor(e){super("vt:lpwstr"),this.root.push(e)}},Xle=class extends Me{constructor(e){super("Properties"),Ce(this,"nextId",void 0),Ce(this,"properties",[]),this.root.push(new Hle({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"})),this.nextId=2;for(const t of e)this.addCustomProperty(t)}prepForXml(e){return this.properties.forEach(t=>this.root.push(t)),super.prepForXml(e)}addCustomProperty(e){this.properties.push(new Kle(this.nextId++,e))}},Yle=({space:e,count:t,separate:r,equalWidth:a,children:n})=>new Ge({name:"w:cols",attributes:{space:{key:"w:space",value:e===void 0?void 0:da(e)},count:{key:"w:num",value:t===void 0?void 0:pa(t)},separate:{key:"w:sep",value:r},equalWidth:{key:"w:equalWidth",value:a}},children:!a&&n?n:void 0}),Zle=({type:e,linePitch:t,charSpace:r})=>new Ge({name:"w:docGrid",attributes:{type:{key:"w:type",value:e},linePitch:{key:"w:linePitch",value:pa(t)},charSpace:{key:"w:charSpace",value:r?pa(r):void 0}}}),Eu={DEFAULT:"default",FIRST:"first",EVEN:"even"},H3={HEADER:"w:headerReference",FOOTER:"w:footerReference"},aw=(e,t)=>new Ge({name:e,attributes:{type:{key:"w:type",value:t.type||Eu.DEFAULT},id:{key:"r:id",value:`rId${t.id}`}}}),Jle=({countBy:e,start:t,restart:r,distance:a})=>new Ge({name:"w:lnNumType",attributes:{countBy:{key:"w:countBy",value:e===void 0?void 0:pa(e)},start:{key:"w:start",value:t===void 0?void 0:pa(t)},restart:{key:"w:restart",value:r},distance:{key:"w:distance",value:a===void 0?void 0:da(a)}}}),G3=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{display:"w:display",offsetFrom:"w:offsetFrom",zOrder:"w:zOrder"})}},Qle=class extends js{constructor(e){if(super("w:pgBorders"),!e)return this;e.pageBorders?this.root.push(new G3({display:e.pageBorders.display,offsetFrom:e.pageBorders.offsetFrom,zOrder:e.pageBorders.zOrder})):this.root.push(new G3({})),e.pageBorderTop&&this.root.push(Er("w:top",e.pageBorderTop)),e.pageBorderLeft&&this.root.push(Er("w:left",e.pageBorderLeft)),e.pageBorderBottom&&this.root.push(Er("w:bottom",e.pageBorderBottom)),e.pageBorderRight&&this.root.push(Er("w:right",e.pageBorderRight))}},ece=(e,t,r,a,n,i,o)=>new Ge({name:"w:pgMar",attributes:{top:{key:"w:top",value:mo(e)},right:{key:"w:right",value:da(t)},bottom:{key:"w:bottom",value:mo(r)},left:{key:"w:left",value:da(a)},header:{key:"w:header",value:da(n)},footer:{key:"w:footer",value:da(i)},gutter:{key:"w:gutter",value:da(o)}}}),tce=({start:e,formatType:t,separator:r})=>new Ge({name:"w:pgNumType",attributes:{start:{key:"w:start",value:e===void 0?void 0:pa(e)},formatType:{key:"w:fmt",value:t},separator:{key:"w:chapSep",value:r}}}),FC={PORTRAIT:"portrait",LANDSCAPE:"landscape"},rce=({width:e,height:t,orientation:r,code:a})=>{const n=da(e),i=da(t);return new Ge({name:"w:pgSz",attributes:{width:{key:"w:w",value:r===FC.LANDSCAPE?i:n},height:{key:"w:h",value:r===FC.LANDSCAPE?n:i},orientation:{key:"w:orient",value:r},code:{key:"w:code",value:a}}})},ace=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{val:"w:val"})}},nce=class extends Me{constructor(e){super("w:textDirection"),this.root.push(new ace({val:e}))}},ice=e=>new Ge({name:"w:type",attributes:{val:{key:"w:val",value:e}}}),ol={TOP:1440,RIGHT:1440,BOTTOM:1440,LEFT:1440,HEADER:708,FOOTER:708,GUTTER:0},nw={WIDTH:11906,HEIGHT:16838,ORIENTATION:FC.PORTRAIT},xq=class extends Me{constructor({page:{size:{width:e=nw.WIDTH,height:t=nw.HEIGHT,orientation:r=nw.ORIENTATION,code:a}={},margin:{top:n=ol.TOP,right:i=ol.RIGHT,bottom:o=ol.BOTTOM,left:s=ol.LEFT,header:c=ol.HEADER,footer:u=ol.FOOTER,gutter:h=ol.GUTTER}={},pageNumbers:f={},borders:m,textDirection:x}={},grid:{linePitch:v=360,charSpace:y,type:b}={},headerWrapperGroup:S={},footerWrapperGroup:A={},lineNumbers:E,titlePage:j,verticalAlign:P,column:C,type:N,revision:O}={}){super("w:sectPr"),this.addHeaderFooterGroup(H3.HEADER,S),this.addHeaderFooterGroup(H3.FOOTER,A),N&&this.root.push(ice(N)),this.root.push(rce({width:e,height:t,orientation:r,code:a})),this.root.push(ece(n,i,o,s,c,u,h)),m&&this.root.push(new Qle(m)),E&&this.root.push(Jle(E)),this.root.push(tce(f)),C&&this.root.push(Yle(C)),P&&this.root.push(lq(P)),j!==void 0&&this.root.push(new Fe("w:titlePg",j)),x&&this.root.push(new nce(
1145x)),O&&this.root.push(new oce(O)),this.root.push(Zle({linePitch:v,charSpace:y,type:b}))}addHeaderFooterGroup(e,t){t.default&&this.root.push(aw(e,{type:Eu.DEFAULT,id:t.default.View.ReferenceId})),t.first&&this.root.push(aw(e,{type:Eu.FIRST,id:t.first.View.ReferenceId})),t.even&&this.root.push(aw(e,{type:Eu.EVEN,id:t.even.View.ReferenceId}))}},oce=class extends Me{constructor(e){super("w:sectPrChange"),this.root.push(new Ua({id:e.id,author:e.author,date:e.date})),this.root.push(new xq(e))}},sce=class extends Me{constructor(){super("w:body"),Ce(this,"sections",[])}addSection(e){const t=this.sections.pop();this.root.push(this.createSectionParagraph(t)),this.sections.push(new xq(e))}prepForXml(e){return this.sections.length===1&&(this.root.splice(0,1),this.root.push(this.sections.pop())),super.prepForXml(e)}push(e){this.root.push(e)}createSectionParagraph(e){const t=new pt({}),r=new $l({});return r.push(e),t.addChildElement(r),t}},lce=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{color:"w:color",themeColor:"w:themeColor",themeShade:"w:themeShade",themeTint:"w:themeTint"})}},cce=class extends Me{constructor(e){super("w:background"),this.root.push(new lce({color:e.color===void 0?void 0:Bu(e.color),themeColor:e.themeColor,themeShade:e.themeShade===void 0?void 0:O3(e.themeShade),themeTint:e.themeTint===void 0?void 0:O3(e.themeTint)}))}},uce=class extends Me{constructor(e){super("w:document"),Ce(this,"body",void 0),this.root.push(new Ey(["wpc","mc","o","r","m","v","wp14","wp","w10","w","w14","w15","wpg","wpi","wne","wps","cx","cx1","cx2","cx3","cx4","cx5","cx6","cx7","cx8","aink","am3d","w16cex","w16cid","w16","w16sdtdh","w16se"],"w14 w15 wp14")),this.body=new sce,e.background&&this.root.push(new cce(e.background)),this.root.push(this.body)}add(e){return this.body.push(e),this}get Body(){return this.body}},dce=class{constructor(e){Ce(this,"document",void 0),Ce(this,"relationships",void 0),this.document=new uce(e),this.relationships=new Ds}get View(){return this.document}get Relationships(){return this.relationships}},fce=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}},pce=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{type:"w:type",id:"w:id"})}},hce=class extends Nd{constructor(){super({style:"EndnoteReference"}),this.root.push(new Gse)}},K3={SEPARATOR:"separator",CONTINUATION_SEPARATOR:"continuationSeparator"},iw=class extends Me{constructor(e){super("w:endnote"),this.root.push(new pce({type:e.type,id:e.id}));for(let t=0;t<e.children.length;t++){const r=e.children[t];t===0&&r.addRunToFront(new hce),this.root.push(r)}}},mce=class extends Me{constructor(){super("w:continuationSeparator")}},vq=class extends Nd{constructor(){super({}),this.root.push(new mce)}},gce=class extends Me{constructor(){super("w:separator")}},yq=class extends Nd{constructor(){super({}),this.root.push(new gce)}},xce=class extends Me{constructor(){super("w:endnotes"),this.root.push(new fce({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"}));const e=new iw({id:-1,type:K3.SEPARATOR,children:[new pt({spacing:{after:0,line:240,lineRule:Fu.AUTO},children:[new yq]})]});this.root.push(e);
1145const t=new iw({id:0,type:K3.CONTINUATION_SEPARATOR,children:[new pt({spacing:{after:0,line:240,lineRule:Fu.AUTO},children:[new vq]})]});this.root.push(t)}createEndnote(e,t){const r=new iw({id:e,children:t});this.root.push(r)}},vce=class{constructor(){Ce(this,"endnotes",void 0),Ce(this,"relationships",void 0),this.endnotes=new xce,this.relationships=new Ds}get View(){return this.endnotes}get Relationships(){return this.relationships}},yce=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type"})}},bce=class extends M${constructor(e,t){super("w:ftr",t),Ce(this,"refId",void 0),this.refId=e,t||this.root.push(new yce({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}))}get ReferenceId(){return this.refId}add(e){this.root.push(e)}},wce=class{constructor(e,t,r){Ce(this,"media",void 0),Ce(this,"footer",void 0),Ce(this,"relationships",void 0),this.media=e,this.footer=new bce(t,r),this.relationships=new Ds}add(e){this.footer.add(e)}addChildElement(e){this.footer.addChildElement(e)}get View(){return this.footer}get Relationships(){return this.relationships}get Media(){return this.media}},Sce=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{type:"w:type",id:"w:id"})}},Ece=class extends Me{constructor(){super("w:footnoteRef")}},Ace=class extends Nd{constructor(){super({style:"FootnoteReference"}),this.root.push(new Ece)}},W3={SEPERATOR:"separator",CONTINUATION_SEPERATOR:"continuationSeparator"},ow=class extends Me{constructor(e){super("w:footnote"),this.root.push(new Sce({type:e.type,id:e.id}));for(let t=0;t<e.children.length;t++){const r=e.children[t];t===0&&r.addRunToFront(new Ace),this.root.push(r)}}},Cce=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}},Pce=class extends Me{constructor(){super("w:footnotes"),this.root.push(new Cce({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"}));const e=new ow({id:-1,type:W3.SEPERATOR,children:[new pt({spacing:{after:0,line:240,lineRule:Fu.AUTO},children:[new yq]})]});this.root.push(e);
1145const t=new ow({id:0,type:W3.CONTINUATION_SEPERATOR,children:[new pt({spacing:{after:0,line:240,lineRule:Fu.AUTO},children:[new vq]})]});this.root.push(t)}createFootNote(e,t){const r=new ow({id:e,children:t});this.root.push(r)}},jce=class{constructor(){Ce(this,"footnotess",void 0),Ce(this,"relationships",void 0),this.footnotess=new Pce,this.relationships=new Ds}get View(){return this.footnotess}get Relationships(){return this.relationships}},Nce=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type",cx:"xmlns:cx",cx1:"xmlns:cx1",cx2:"xmlns:cx2",cx3:"xmlns:cx3",cx4:"xmlns:cx4",cx5:"xmlns:cx5",cx6:"xmlns:cx6",cx7:"xmlns:cx7",cx8:"xmlns:cx8",w16cid:"xmlns:w16cid",w16se:"xmlns:w16se"})}},Tce=class extends M${constructor(e,t){super("w:hdr",t),Ce(this,"refId",void 0),this.refId=e,t||this.root.push(new Nce({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex"}))}get ReferenceId(){return this.refId}add(e){this.root.push(e)}},kce=class{constructor(e,t,r){Ce(this,"media",void 0),Ce(this,"header",void 0),Ce(this,"relationships",void 0),this.media=e,this.header=new Tce(t,r),this.relationships=new Ds}add(e){return this.header.add(e),this}addChildElement(e){this.header.addChildElement(e)}get View(){return this.header}get Relationships(){return this.relationships}get Media(){return this.media}},Dce=class{constructor(){Ce(this,"map",void 0),this.map=new Map}addImage(e,t){this.map.set(e,t)}get Array(){return Array.from(this.map.values())}},lo={BULLET:"bullet"},_ce=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{ilvl:"w:ilvl",tentative:"w15:tentative"})}},Rce=class extends Me{constructor(e){super("w:numFmt"),this.root.push(new Sa({val:e}))}},Oce=class extends Me{constructor(e){super("w:lvlText"),this.root.push(new Sa({val:e}))}},Mce=class extends Me{constructor(e){super("w:lvlJc"),this.root.push(new Sa({val:e}))}},Ice=class extends Me{constructor(e){super("w:suff"),this.root.push(new Sa({val:e}))}},Bce=class extends Me{constructor(){super("w:isLgl")}},Lce=class extends Me{constructor({level:e,format:t,text:r,alignment:a=tr.START,start:n=1,style:i,suffix:o,isLegalNumberingStyle:s}){if(super("w:lvl"),Ce(this,"paragraphProperties",void 0),Ce(this,"runProperties",void 0),this.root.push(new mp("w:start",pa(n))),t&&this.root.push(new Rce(t)),o&&this.root.push(new Ice(o)),s&&this.root.push(new Bce),r&&this.root.push(new Oce(r)),this.root.push(new Mce(a)),i?.style&&this.root.push(ap(i.style)),this.paragraphProperties=new $l
1145(i&&i.paragraph),this.runProperties=new ks(i&&i.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties),e>9)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new _ce({ilvl:pa(e),tentative:1}))}},zce=class extends Lce{},Fce=class extends Me{constructor(e){super("w:multiLevelType"),this.root.push(new Sa({val:e}))}},$ce=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{abstractNumId:"w:abstractNumId",restartNumberingAfterBreak:"w15:restartNumberingAfterBreak"})}},X3=class extends Me{constructor(e,t){super("w:abstractNum"),Ce(this,"id",void 0),this.root.push(new $ce({abstractNumId:pa(e),restartNumberingAfterBreak:0})),this.root.push(new Fce("hybridMultilevel")),this.id=e;for(const r of t)this.root.push(new zce(r))}},qce=class extends Me{constructor(e){super("w:abstractNumId"),this.root.push(new Sa({val:e}))}},Vce=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{numId:"w:numId"})}},Y3=class extends Me{constructor(e){if(super("w:num"),Ce(this,"numId",void 0),Ce(this,"reference",void 0),Ce(this,"instance",void 0),this.numId=e.numId,this.reference=e.reference,this.instance=e.instance,this.root.push(new Vce({numId:pa(e.numId)})),this.root.push(new qce(pa(e.abstractNumId))),e.overrideLevels&&e.overrideLevels.length)for(const t of e.overrideLevels)this.root.push(new Hce(t.num,t.start))}},Uce=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{ilvl:"w:ilvl"})}},Hce=class extends Me{constructor(e,t){super("w:lvlOverride"),this.root.push(new Uce({ilvl:e})),t!==void 0&&this.root.push(new Kce(t))}},Gce=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{val:"w:val"})}},Kce=class extends Me{constructor(e){super("w:startOverride"),this.root.push(new Gce({val:e}))}},Wce=class extends Me{constructor(e){super("w:numbering"),Ce(this,"abstractNumberingMap",new Map),Ce(this,"concreteNumberingMap",new Map),Ce(this,"referenceConfigMap",new Map),Ce(this,"abstractNumUniqueNumericId",koe()),Ce(this,"concreteNumUniqueNumericId",Doe()),this.root.push(new Ey(["wpc","mc","o","r","m","v","wp14","wp","w10","w","w14","w15","wpg","wpi","wne","wps"],"w14 w15 wp14"));const t=new X3(this.abstractNumUniqueNumericId(),[{level:0,format:lo.BULLET,text:"â",alignment:tr.LEFT,style:{paragraph:{indent:{left:Wn(.5),hanging:Wn(.25)}}}},{level:1,format:lo.BULLET,text:"â",alignment:tr.LEFT,style:{paragraph:{indent:{left:Wn(1),hanging:Wn(.25)}}}},{level:2,format:lo.BULLET,text:"â ",alignment:tr.LEFT,style:{paragraph:{indent:{left:2160,hanging:Wn(.25)}}}},{level:3,format:lo.BULLET,text:"â",alignment:tr.LEFT,style:{paragraph:{indent:{left:2880,hanging:Wn(.25)}}}},{level:4,format:lo.BULLET,text:"â",alignment:tr.LEFT,style:{paragraph:{indent:{left:3600,hanging:Wn(.25)}}}},{level:5,format:lo.BULLET,text:"â ",alignment:tr.LEFT,style:{paragraph:{indent:{left:4320,hanging:Wn(.25)}}}},{level:6,format:lo.BULLET,text:"â",alignment:tr.LEFT,style:{paragraph:{indent:{left:5040,hanging:Wn(.25)}}}},{level:7,format:lo.BULLET,text:"â",alignment:tr.LEFT,style:{paragraph:{indent:{left:5760,hanging:Wn(.25)}}}},{level:8,format:lo.BULLET,text:"â",alignment:tr.LEFT,style:{paragraph:{indent:{left:6480,hanging:Wn(.25)}}}}]);this.concreteNumberingMap.set("default-bullet-numbering",new Y3({numId:1,abstractNumId:t.id,reference:"default-bullet-numbering",instance:0,overrideLevels:[{num:0,start:1}]})),this.abstractNumberingMap.set("default-bullet-numbering",t);for(const r of e.config)this.abstractNumberingMap.set(r.reference,new X3(this.abstractNumUniqueNumericId(),r.levels)),this.referenceConfigMap.set(r.reference,r.levels)}prepForXml(e){for(const t of this.abstractNumberingMap.values())this.root.push(t);for(const t of this.concreteNumberingMap.values())this.root.push(t);return super.prepForXml(e)}createConcreteNumberingInstance(e,t){const r=this.abstractNumberingMap.get(e);if(!r)return;const a=`${e}-${t}`;if(this.concreteNumberingMap.has(a))return;const n=this.referenceConfigMap.get(e),i=n&&n[0].start,o={numId:this.concreteNumUniqueNumericId(),abstractNumId:r.id,reference:e,instance:t,overrideLevels:[typeof i=="number"&&Number.isInteger(i)?{num:0,start:i}:{num:0,start:1}]};this.concreteNumberingMap.set(a,new Y3(o))}get ConcreteNumbering(){return Array.from(this.concreteNumberingMap.values())}get ReferenceConfig(){return Array.from(this.referenceConfigMap.values())}},Xce=e=>
1145new Ge({name:"w:compatSetting",attributes:{version:{key:"w:val",value:e},name:{key:"w:name",value:"compatibilityMode"},uri:{key:"w:uri",value:"http://schemas.microsoft.com/office/word"}}}),Yce=class extends Me{constructor(e){super("w:compat"),e.version&&this.root.push(Xce(e.version)),e.useSingleBorderforContiguousCells&&this.root.push(new Fe("w:useSingleBorderforContiguousCells",e.useSingleBorderforContiguousCells)),e.wordPerfectJustification&&this.root.push(new Fe("w:wpJustification",e.wordPerfectJustification)),e.noTabStopForHangingIndent&&this.root.push(new Fe("w:noTabHangInd",e.noTabStopForHangingIndent)),e.noLeading&&this.root.push(new Fe("w:noLeading",e.noLeading)),e.spaceForUnderline&&this.root.push(new Fe("w:spaceForUL",e.spaceForUnderline)),e.noColumnBalance&&this.root.push(new Fe("w:noColumnBalance",e.noColumnBalance)),e.balanceSingleByteDoubleByteWidth&&this.root.push(new Fe("w:balanceSingleByteDoubleByteWidth",e.balanceSingleByteDoubleByteWidth)),e.noExtraLineSpacing&&this.root.push(new Fe("w:noExtraLineSpacing",e.noExtraLineSpacing)),e.doNotLeaveBackslashAlone&&this.root.push(new Fe("w:doNotLeaveBackslashAlone",e.doNotLeaveBackslashAlone)),e.underlineTrailingSpaces&&this.root.push(new Fe("w:ulTrailSpace",e.underlineTrailingSpaces)),e.doNotExpandShiftReturn&&this.root.push(new Fe("w:doNotExpandShiftReturn",e.doNotExpandShiftReturn)),e.spacingInWholePoints&&this.root.push(new Fe("w:spacingInWholePoints",e.spacingInWholePoints)),e.lineWrapLikeWord6&&this.root.push(new Fe("w:lineWrapLikeWord6",e.lineWrapLikeWord6)),e.printBodyTextBeforeHeader&&this.root.push(new Fe("w:printBodyTextBeforeHeader",e.printBodyTextBeforeHeader)),e.printColorsBlack&&this.root.push(new Fe("w:printColBlack",e.printColorsBlack)),e.spaceWidth&&this.root.push(new Fe("w:wpSpaceWidth",e.spaceWidth)),e.showBreaksInFrames&&this.root.push(new Fe("w:showBreaksInFrames",e.showBreaksInFrames)),e.subFontBySize&&this.root.push(new Fe("w:subFontBySize",e.subFontBySize)),e.suppressBottomSpacing&&this.root.push(new Fe("w:suppressBottomSpacing",e.suppressBottomSpacing)),e.suppressTopSpacing&&this.root.push(new Fe("w:suppressTopSpacing",e.suppressTopSpacing)),e.suppressSpacingAtTopOfPage&&this.root.push(new Fe("w:suppressSpacingAtTopOfPage",e.suppressSpacingAtTopOfPage)),e.suppressTopSpacingWP&&this.root.push(new Fe("w:suppressTopSpacingWP",e.suppressTopSpacingWP)),e.suppressSpBfAfterPgBrk&&this.root.push(new Fe("w:suppressSpBfAfterPgBrk",e.suppressSpBfAfterPgBrk)),e.swapBordersFacingPages&&this.root.push(new Fe("w:swapBordersFacingPages",e.swapBordersFacingPages)),e.convertMailMergeEsc&&this.root.push(new Fe("w:convMailMergeEsc",e.convertMailMergeEsc)),e.truncateFontHeightsLikeWP6&&this.root.push(new Fe("w:truncateFontHeightsLikeWP6",e.truncateFontHeightsLikeWP6)),e.macWordSmallCaps&&this.root.push(new Fe("w:mwSmallCaps",e.macWordSmallCaps)),e.usePrinterMetrics&&this.root.push(new Fe("w:usePrinterMetrics",e.usePrinterMetrics)),e.doNotSuppressParagraphBorders&&this.root.push(new Fe("w:doNotSuppressParagraphBorders",e.doNotSuppressParagraphBorders)),e.wrapTrailSpaces&&this.root.push(new Fe("w:wrapTrailSpaces",e.wrapTrailSpaces)),e.footnoteLayoutLikeWW8&&this.root.push(new Fe("w:footnoteLayoutLikeWW8",e.footnoteLayoutLikeWW8)),e.shapeLayoutLikeWW8&&this.root.push(new Fe("w:shapeLayoutLikeWW8",e.shapeLayoutLikeWW8)),e.alignTablesRowByRow&&this.root.push(new Fe("w:alignTablesRowByRow",e.alignTablesRowByRow)),e.forgetLastTabAlignment&&this.root.push(new Fe("w:forgetLastTabAlignment",e.forgetLastTabAlignment)),e.adjustLineHeightInTable&&this.root.push(new Fe("w:adjustLineHeightInTable",e.adjustLineHeightInTable)),e.autoSpaceLikeWord95&&this.root.push(new Fe("w:autoSpaceLikeWord95",e.autoSpaceLikeWord95)),e.noSpaceRaiseLower&&this.root.push(new Fe("w:noSpaceRaiseLower",e.noSpaceRaiseLower)),e.doNotUseHTMLParagraphAutoSpacing&&this.root.push(new Fe("w:doNotUseHTMLParagraphAutoSpacing",e.doNotUseHTMLParagraphAutoSpacing)),e.layoutRawTableWidth&&this.root.push(new Fe("w:layoutRawTableWidth",e.layoutRawTableWidth)),e.layoutTableRowsApart&&this.root.push(new Fe("w:layoutTableRowsApart",e.layoutTableRowsApart)),e.useWord97LineBreakRules&&this.root.push(new Fe("w:useWord97LineBreakRules",e.useWord97LineBreakRules)),e.doNotBreakWrappedTables&&this.root.push(new Fe("w:doNotBreakWrappedTables",e.doNotBreakWrappedTables)),e.doNotSnapToGri
1145dInCell&&this.root.push(new Fe("w:doNotSnapToGridInCell",e.doNotSnapToGridInCell)),e.selectFieldWithFirstOrLastCharacter&&this.root.push(new Fe("w:selectFldWithFirstOrLastChar",e.selectFieldWithFirstOrLastCharacter)),e.applyBreakingRules&&this.root.push(new Fe("w:applyBreakingRules",e.applyBreakingRules)),e.doNotWrapTextWithPunctuation&&this.root.push(new Fe("w:doNotWrapTextWithPunct",e.doNotWrapTextWithPunctuation)),e.doNotUseEastAsianBreakRules&&this.root.push(new Fe("w:doNotUseEastAsianBreakRules",e.doNotUseEastAsianBreakRules)),e.useWord2002TableStyleRules&&this.root.push(new Fe("w:useWord2002TableStyleRules",e.useWord2002TableStyleRules)),e.growAutofit&&this.root.push(new Fe("w:growAutofit",e.growAutofit)),e.useFELayout&&this.root.push(new Fe("w:useFELayout",e.useFELayout)),e.useNormalStyleForList&&this.root.push(new Fe("w:useNormalStyleForList",e.useNormalStyleForList)),e.doNotUseIndentAsNumberingTabStop&&this.root.push(new Fe("w:doNotUseIndentAsNumberingTabStop",e.doNotUseIndentAsNumberingTabStop)),e.useAlternateEastAsianLineBreakRules&&this.root.push(new Fe("w:useAltKinsokuLineBreakRules",e.useAlternateEastAsianLineBreakRules)),e.allowSpaceOfSameStyleInTable&&this.root.push(new Fe("w:allowSpaceOfSameStyleInTable",e.allowSpaceOfSameStyleInTable)),e.doNotSuppressIndentation&&this.root.push(new Fe("w:doNotSuppressIndentation",e.doNotSuppressIndentation)),e.doNotAutofitConstrainedTables&&this.root.push(new Fe("w:doNotAutofitConstrainedTables",e.doNotAutofitConstrainedTables)),e.autofitToFirstFixedWidthCell&&this.root.push(new Fe("w:autofitToFirstFixedWidthCell",e.autofitToFirstFixedWidthCell)),e.underlineTabInNumberingList&&this.root.push(new Fe("w:underlineTabInNumList",e.underlineTabInNumberingList)),e.displayHangulFixedWidth&&this.root.push(new Fe("w:displayHangulFixedWidth",e.displayHangulFixedWidth)),e.splitPgBreakAndParaMark&&this.root.push(new Fe("w:splitPgBreakAndParaMark",e.splitPgBreakAndParaMark)),e.doNotVerticallyAlignCellWithSp&&this.root.push(new Fe("w:doNotVertAlignCellWithSp",e.doNotVerticallyAlignCellWithSp)),e.doNotBreakConstrainedForcedTable&&this.root.push(new Fe("w:doNotBreakConstrainedForcedTable",e.doNotBreakConstrainedForcedTable)),e.ignoreVerticalAlignmentInTextboxes&&this.root.push(new Fe("w:doNotVertAlignInTxbx",e.ignoreVerticalAlignmentInTextboxes)),e.useAnsiKerningPairs&&this.root.push(new Fe("w:useAnsiKerningPairs",e.useAnsiKerningPairs)),e.cachedColumnBalance&&this.root.push(new Fe("w:cachedColBalance",e.cachedColumnBalance))}},Zce=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}},Jce=class extends Me{constructor(e){var t,r,a,n,i,o,s,c;super("w:settings"),this.root.push(new Zce({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"})),this.root.push(new Fe("w:displayBackgroundShape",!0)),e.trackRevisions!==void 0&&this.root.push(new Fe("w:trackRevisions",e.trackRevisions)),e.evenAndOddHeaders!==void 0&&this.root.push(new Fe("w:evenAndOddHeaders",e.evenAndOddHeaders)),e.updateFields!==void 0&&this.root.push(new Fe("w:updateFields",e.updateFields)),e.defaultTabStop!==void 0&&this.root.push(new mp("w:defaultTabStop",e.defaultTabStop)),((t=e.hyphenation)===null||t===void 0?void 0:t.autoHyphenation)!==void 0&&this.root.push(new Fe("w:autoHyphenation",e.hyphenation.autoHyphenation)),((r=e.hyphenation)===null||r===void 0?void 0:r.hyphenationZone)!==void 0&&this.root.push(new mp("w:hyphenationZone",e.hyphenation.hyphenationZone)),((a=e.hyphenation)===null||a===void 0?void 0:a.consecutiveHyphenLimit)!==void 0&&this.root.push(new mp("w:consecutiveHyphenLimit",e.hyphenation.consecutiveHyphenLimit)),((n=e.hyphenation)===null||n===void 0?void 0:n.doNotHyphenate
1145Caps)!==void 0&&this.root.push(new Fe("w:doNotHyphenateCaps",e.hyphenation.doNotHyphenateCaps)),this.root.push(new Yce(Xe(Xe({},(i=e.compatibility)!==null&&i!==void 0?i:{}),{},{version:(o=(s=(c=e.compatibility)===null||c===void 0?void 0:c.version)!==null&&s!==void 0?s:e.compatibilityModeVersion)!==null&&o!==void 0?o:15})))}},bq=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{val:"w:val"})}},Qce=class extends Me{constructor(e){super("w:name"),this.root.push(new bq({val:e}))}},eue=class extends Me{constructor(e){super("w:uiPriority"),this.root.push(new bq({val:pa(e)}))}},tue=class extends ct{constructor(...e){super(...e),Ce(this,"xmlKeys",{type:"w:type",styleId:"w:styleId",default:"w:default",customStyle:"w:customStyle"})}},wq=class extends Me{constructor(e,t){super("w:style"),this.root.push(new tue(e)),t.name&&this.root.push(new Qce(t.name)),t.basedOn&&this.root.push(new kl("w:basedOn",t.basedOn)),t.next&&this.root.push(new kl("w:next",t.next)),t.link&&this.root.push(new kl("w:link",t.link)),t.uiPriority!==void 0&&this.root.push(new eue(t.uiPriority)),t.semiHidden!==void 0&&this.root.push(new Fe("w:semiHidden",t.semiHidden)),t.unhideWhenUsed!==void 0&&this.root.push(new Fe("w:unhideWhenUsed",t.unhideWhenUsed)),t.quickFormat!==void 0&&this.root.push(new Fe("w:qFormat",t.quickFormat))}},Vh=class extends wq{constructor(e){super({type:"paragraph",styleId:e.id},e),Ce(this,"paragraphProperties",void 0),Ce(this,"runProperties",void 0),this.paragraphProperties=new $l(e.paragraph),this.runProperties=new ks(e.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties)}},Td=class extends wq{constructor(e){super({type:"character",styleId:e.id},Xe({uiPriority:99,unhideWhenUsed:!0},e)),Ce(this,"runProperties",void 0),this.runProperties=new ks(e.run),this.root.push(this.runProperties)}},_s=class extends Vh{constructor(e){super(Xe({basedOn:"Normal",next:"Normal",quickFormat:!0},e))}},rue=class extends _s{constructor(e){super(Xe({id:"Title",name:"Title"},e))}},aue=class extends _s{constructor(e){super(Xe({id:"Heading1",name:"Heading 1"},e))}},nue=class extends _s{constructor(e){super(Xe({id:"Heading2",name:"Heading 2"},e))}},iue=class extends _s{constructor(e){super(Xe({id:"Heading3",name:"Heading 3"},e))}},oue=class extends _s{constructor(e){super(Xe({id:"Heading4",name:"Heading 4"},e))}},sue=class extends _s{constructor(e){super(Xe({id:"Heading5",name:"Heading 5"},e))}},lue=class extends _s{constructor(e){super(Xe({id:"Heading6",name:"Heading 6"},e))}},cue=class extends _s{constructor(e){super(Xe({id:"Strong",name:"Strong"},e))}},uue=class extends Vh{constructor(e){super(Xe({id:"ListParagraph",name:"List Paragraph",basedOn:"Normal",quickFormat:!0},e))}},due=class extends Vh{constructor(e){super(Xe({id:"FootnoteText",name:"footnote text",link:"FootnoteTextChar",basedOn:"Normal",uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:Fu.AUTO}},run:{size:20}},e))}},fue=class extends Td{constructor(e){super(Xe({id:"FootnoteReference",name:"footnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}},e))}},pue=class extends Td{constructor(e){super(Xe({id:"FootnoteTextChar",name:"Footnote Text Char",basedOn:"DefaultParagraphFont",link:"FootnoteText",semiHidden:!0,run:{size:20}},e))}},hue=class extends Vh{constructor(e){super(Xe({id:"EndnoteText",name:"endnote text",link:"EndnoteTextChar",basedOn:"Normal",uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:Fu.AUTO}},run:{size:20}},e))}},mue=class extends Td{constructor(e){super(Xe({id:"EndnoteReference",name:"endnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}},e))}},gue=class extends Td{constructor(e){super(Xe({id:"EndnoteTextChar",name:"Endnote Text Char",basedOn:"DefaultParagraphFont",link:"EndnoteText",semiHidden:!0,run:{size:20}},e))}},xue=class extends Td{constructor(e){super(Xe({id:"Hyperlink",name:"Hyperlink",basedOn:"DefaultParagraphFont",run:{color:"0563C1",underline:{type:q$.SINGLE}}},e))}},sw=class extends Me{constructor(e){if(super("w:styles"),e.initialStyles&&this.root.push(e.initialStyles),e.importedStyles)for(const t of e.importedStyles)this.root.push(t);if(e.paragraphStyles)for(const t of e.paragraphStyles)this.root.push(new Vh(t));if(e.characterStyles)for(const t of e.characterStyles)this.root.push(new Td(t))}},vue=class extends Me{constructor(e){super("w:pPrDefault"),this.root.push(new $l(e))}},yue=class extends Me{constructor(e){super("w:rPrDefault"),this.root.push(new ks(e))}},bue=class extends Me{constructor(e){super("w:docDefaults"),Ce(this,"runPropertiesDefaults",void 0),Ce(this,"paragraphPropertiesDefaults",void 0),this.runPropertiesDefaults=new yue(e.run),this.paragraphPropertiesDefaults=new vue(e.paragraph),this.root.push(this.runPropertiesDefaults),this.root.push(this.paragraphPropertiesDefaults)}},wue=class{newInstance(e){const t=(0,O$.xml2js)(e,{compact:!1});let r;for(const n of t.elements||[])n.name==="w:styles"&&(r=n);if(r===void 0)throw new Error("can not find styles element");const a=r.elements||[];return{initialStyles:new Hie(r.attributes),importedStyles:a.map(n=>EN(n))}}},lw=class{newInstance(e={}){var t;return{initialStyles:new Ey(["mc","r","w","w14","w15"],"w14 w15"),importedStyles:[new bue((t=e.document)!==null&&t!==void 0?t:{}),new rue(Xe({run:{size:56}}
1145,e.title)),new aue(Xe({run:{color:"2E74B5",size:32}},e.heading1)),new nue(Xe({run:{color:"2E74B5",size:26}},e.heading2)),new iue(Xe({run:{color:"1F4D78",size:24}},e.heading3)),new oue(Xe({run:{color:"2E74B5",italics:!0}},e.heading4)),new sue(Xe({run:{color:"2E74B5"}},e.heading5)),new lue(Xe({run:{color:"1F4D78"}},e.heading6)),new cue(Xe({run:{bold:!0}},e.strong)),new uue(e.listParagraph||{}),new xue(e.hyperlink||{}),new fue(e.footnoteReference||{}),new due(e.footnoteText||{}),new pue(e.footnoteTextChar||{}),new mue(e.endnoteReference||{}),new hue(e.endnoteText||{}),new gue(e.endnoteTextChar||{})]}}},Sq=class{constructor(e){var t,r,a,n,i,o,s,c,u,h,f,m;if(Ce(this,"currentRelationshipId",1),Ce(this,"documentWrapper",void 0),Ce(this,"headers",[]),Ce(this,"footers",[]),Ce(this,"coreProperties",void 0),Ce(this,"numbering",void 0),Ce(this,"media",void 0),Ce(this,"fileRelationships",void 0),Ce(this,"footnotesWrapper",void 0),Ce(this,"endnotesWrapper",void 0),Ce(this,"settings",void 0),Ce(this,"contentTypes",void 0),Ce(this,"customProperties",void 0),Ce(this,"appProperties",void 0),Ce(this,"styles",void 0),Ce(this,"comments",void 0),Ce(this,"commentsExtended",void 0),Ce(this,"fontWrapper",void 0),this.coreProperties=new Vle(Xe(Xe({},e),{},{creator:(t=e.creator)!==null&&t!==void 0?t:"Un-named",revision:(r=e.revision)!==null&&r!==void 0?r:1,lastModifiedBy:(a=e.lastModifiedBy)!==null&&a!==void 0?a:"Un-named"})),this.numbering=new Wce(e.numbering?e.numbering:{config:[]}),this.comments=new $se((n=e.comments)!==null&&n!==void 0?n:{children:[]}),this.comments.ThreadData&&(this.commentsExtended=new Hse(this.comments.ThreadData)),this.fileRelationships=new Ds,this.customProperties=new Xle((i=e.customProperties)!==null&&i!==void 0?i:[]),this.appProperties=new Fle,this.footnotesWrapper=new jce,this.endnotesWrapper=new vce,this.contentTypes=new qle,this.documentWrapper=new dce({background:e.background}),this.settings=new Jce({compatibilityModeVersion:e.compatabilityModeVersion,compatibility:e.compatibility,evenAndOddHeaders:!!e.evenAndOddHeaderAndFooters,trackRevisions:(o=e.features)===null||o===void 0?void 0:o.trackRevisions,updateFields:(s=e.features)===null||s===void 0?void 0:s.updateFields,defaultTabStop:e.defaultTabStop,hyphenation:{autoHyphenation:(c=e.hyphenation)===null||c===void 0?void 0:c.autoHyphenation,hyphenationZone:(u=e.hyphenation)===null||u===void 0?void 0:u.hyphenationZone,consecutiveHyphenLimit:(h=e.hyphenation)===null||h===void 0?void 0:h.consecutiveHyphenLimit,doNotHyphenateCaps:(f=e.hyphenation)===null||f===void 0?void 0:f.doNotHyphenateCaps}}),this.media=new Dce,e.externalStyles!==void 0){var x;const v=new lw().newInstance((x=e.styles)===null||x===void 0?void 0:x.default),y=new wue().newInstance(e.externalStyles);this.styles=new sw(Xe(Xe({},y),{},{importedStyles:[...v.importedStyles,...y.importedStyles]}))}else if(e.styles){const v=new lw().newInstance(e.styles.default);this.styles=new sw(Xe(Xe({},v),e.styles))}else{const v=new lw;this.styles=new sw(v.newInstance())}this.addDefaultRelationships();for(const v of e.sections)this.addSection(v);if(e.footnotes)for(const v in e.footnotes)this.footnotesWrapper.View.createFootNote(parseFloat(v),e.footnotes[v].children);if(e.endnotes)for(const v in e.endnotes)this.endnotesWrapper.View.createEndnote(parseFloat(v),e.endnotes[v].children);this.fontWrapper=new oq((m=e.fonts)!==null&&m!==void 0?m:[])}addSection({headers:e={},footers:t={},children:r,properties:a}){this.documentWrapper.View.Body.addSection(Xe(Xe({},a),{},{headerWrapperGroup:{default:e.default?this.createHeader(e.default):void 0,first:e.first?this.createHeader(e.first):void 0,even:e.even?this.createHeader(e.even):void 0},footerWrapperGroup:{default:t.default?this.createFooter(t.default):void 0,first:t.first?this.createFooter(t.first):void 0,even:t.even?this.createFooter(t.even):void 0}}));for(const n of r)this.documentWrapper.View.add(n)}createHeader(e){const t=new kce(this.media,this.currentRelationshipId++);for(const r of e.options.children)t.add(r);return this.addHeaderToDocument(t),t}createFooter(e){const t=new wce(this.media,this.currentRelationshipId++);for(const r of e.options.children)t.add(r);return this.addFooterToDocument(t),t}
1145addHeaderToDocument(e,t=Eu.DEFAULT){this.headers.push({header:e,type:t}),this.documentWrapper.Relationships.addRelationship(e.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",`header${this.headers.length}.xml`),this.contentTypes.addHeader(this.headers.length)}addFooterToDocument(e,t=Eu.DEFAULT){this.footers.push({footer:e,type:t}),this.documentWrapper.Relationships.addRelationship(e.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",`footer${this.footers.length}.xml`),this.contentTypes.addFooter(this.footers.length)}addDefaultRelationships(){this.fileRelationships.addRelationship(1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument","word/document.xml"),this.fileRelationships.addRelationship(2,"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties","docProps/core.xml"),this.fileRelationships.addRelationship(3,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties","docProps/app.xml"),this.fileRelationships.addRelationship(4,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties","docProps/custom.xml"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles","styles.xml"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering","numbering.xml"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes","footnotes.xml"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes","endnotes.xml"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings","settings.xml"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments","comments.xml"),this.commentsExtended&&(this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.microsoft.com/office/2011/relationships/commentsExtended","commentsExtended.xml"),this.contentTypes.addCommentsExtended())}get Document(){return this.documentWrapper}get Styles(){return this.styles}get CoreProperties(){return this.coreProperties}get Numbering(){return this.numbering}get Media(){return this.media}get FileRelationships(){return this.fileRelationships}get Headers(){return this.headers.map(e=>e.header)}get Footers(){return this.footers.map(e=>e.footer)}get ContentTypes(){return this.contentTypes}get CustomProperties(){return this.customProperties}get AppProperties(){return this.appProperties}get FootNotes(){return this.footnotesWrapper}get Endnotes(){return this.endnotesWrapper}get Settings(){return this.settings}get Comments(){return this.comments}get CommentsExtended(){return this.commentsExtended}get FontTable(){return this.fontWrapper}},Sue=class{constructor(e={children:[]}){Ce(this,"options",void 0),this.options=e}},Eue=class{constructor(e={children:[]}){Ce(this,"options",void 0),this.options=e}},Aue=$e(((e,t)=>{Pd(),Ts();/*! 1146 1147JSZip v3.10.1 - A JavaScript class for generating and reading zip files 1148<http://stuartk.com/jszip> 1149 1150(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com> 1151Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown. 1152 1153JSZip uses the library pako released under the MIT license : 1154https://github.com/nodeca/pako/blob/main/LICENSE 1155*/(function(r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define([],r):(typeof window<"u"?window:typeof Ca<"u"?Ca:typeof self<"u"?self:this).JSZip=r()})(function(){return(function r(a,n,i){function o(u,h){if(!n[u]){if(!a[u]){var f=typeof Og=="function"&&Og;if(!h&&f)return f(u,!0);if(s)return s(u,!0);var m=new Error("Cannot find module '"+u+"'");throw m.code="MODULE_NOT_FOUND",m}var x=n[u]={exports:{}};a[u][0].call(x.exports,function(v){var y=a[u][1][v];return o(y||v)},x,x.exports,r,a,n,i)}return n[u].exports}for(var s=typeof Og=="function"&&Og,c=0;c<i.length;c++)o(i[c]);return o}
vendor: 10,730 bytes, lines 1155-1156
1155)({1:[function(r,a,n){var i=r("./utils"),o=r("./support"),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(c){for(var u,h,f,m,x,v,y,b=[],S=0,A=c.length,E=A,j=i.getTypeOf(c)!=="string";S<c.length;)E=A-S,f=j?(u=c[S++],h=S<A?c[S++]:0,S<A?c[S++]:0):(u=c.charCodeAt(S++),h=S<A?c.charCodeAt(S++):0,S<A?c.charCodeAt(S++):0),m=u>>2,x=(3&u)<<4|h>>4,v=1<E?(15&h)<<2|f>>6:64,y=2<E?63&f:64,b.push(s.charAt(m)+s.charAt(x)+s.charAt(v)+s.charAt(y));return b.join("")},n.decode=function(c){var u,h,f,m,x,v,y=0,b=0,S="data:";if(c.substr(0,S.length)===S)throw new Error("Invalid base64 input, it looks like a data url.");var A,E=3*(c=c.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(c.charAt(c.length-1)===s.charAt(64)&&E--,c.charAt(c.length-2)===s.charAt(64)&&E--,E%1!=0)throw new Error("Invalid base64 input, bad content length.");for(A=o.uint8array?new Uint8Array(0|E):new Array(0|E);y<c.length;)u=s.indexOf(c.charAt(y++))<<2|(m=s.indexOf(c.charAt(y++)))>>4,h=(15&m)<<4|(x=s.indexOf(c.charAt(y++)))>>2,f=(3&x)<<6|(v=s.indexOf(c.charAt(y++))),A[b++]=u,x!==64&&(A[b++]=h),v!==64&&(A[b++]=f);return A}},{"./support":30,"./utils":32}],2:[function(r,a,n){var i=r("./external"),o=r("./stream/DataWorker"),s=r("./stream/Crc32Probe"),c=r("./stream/DataLengthProbe");function u(h,f,m,x,v){this.compressedSize=h,this.uncompressedSize=f,this.crc32=m,this.compression=x,this.compressedContent=v}u.prototype={getContentWorker:function(){var h=new o(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new c("data_length")),f=this;return h.on("end",function(){if(this.streamInfo.data_length!==f.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),h},getCompressedWorker:function(){return new o(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},u.createWorkerFrom=function(h,f,m){return h.pipe(new s).pipe(new c("uncompressedSize")).pipe(f.compressWorker(m)).pipe(new c("compressedSize")).withStreamInfo("compression",f)},a.exports=u},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(r,a,n){var i=r("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},n.DEFLATE=r("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(r,a,n){var i=r("./utils"),o=(function(){for(var s,c=[],u=0;u<256;u++){s=u;for(var h=0;h<8;h++)s=1&s?3988292384^s>>>1:s>>>1;c[u]=s}return c})();a.exports=function(s,c){return s!==void 0&&s.length?i.getTypeOf(s)!=="string"?(function(u,h,f,m){var x=o,v=m+f;u^=-1;for(var y=m;y<v;y++)u=u>>>8^x[255&(u^h[y])];return-1^u})(0|c,s,s.length,0):(function(u,h,f,m){var x=o,v=m+f;u^=-1;for(var y=m;y<v;y++)u=u>>>8^x[255&(u^h.charCodeAt(y))];return-1^u})(0|c,s,s.length,0):0}},{"./utils":32}],5:[function(r,a,n){n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(r,a,n){var i=null;i=typeof Promise<"u"?Promise:r("lie"),a.exports={Promise:i}},{lie:37}],7:[function(r,a,n){var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",o=r("pako"),s=r("./utils"),c=r("./stream/GenericWorker"),u=i?"uint8array":"array";function h(f,m){c.call(this,"FlateWorker/"+f),this._pako=null,this._pakoAction=f,this._pakoOptions=m,this.meta={}}n.magic="\b\0",s.inherits(h,c),h.prototype.processChunk=function(f){this.meta=f.meta,this._pako===null&&this._createPako(),this._pako.push(s.transformTo(u,f.data),!1)},h.prototype.flush=function(){c.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},h.prototype.cleanUp=function(){c.prototype.cleanUp.call(this),this._pako=null},h.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var f=this;this._pako.onData=function(m){f.push({data:m,meta:f.meta})}},n.compressWorker=function(f){return new h("Deflate",f)},n.uncompressWorker=function(){return new h("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(r,a,n){function i(x,v){var y,b="";for(y=0;y<v;y++)b+=String.fromCharCode(255&x),x>>>=8;return b}function o(x,v,y,b,S,A){var E,j,P=x.file,C=x.compression,N=A!==u.utf8encode,O=s.transformTo("string",A(P.name)),k=s.transformTo("string",u.utf8encode(P.name)),B=P.comment,$=s.transformTo("string",A(B)),_=s.transformTo("string",u.utf8encode(B)),W=k.length!==P.name.length,D=_.length!==B.length,J="",z="",V="",Z=P.dir,te=P.date,K={crc32:0,compressedSize:0,uncompressedSize:0};v&&!y||(K.crc32=x.crc32,K.compressedSize=x.compressedSize,K.uncompressedSize=x.uncompressedSize);var q=0;v&&(q|=8),N||!W&&!D||(q|=2048);var X=0,U=0;Z&&(X|=16),S==="UNIX"?(U=798,X|=(function(se,he){var Y=se;return se||(Y=he?16893:33204),(65535&Y)<<16})(P.unixPermissions,Z)):(U=20,X|=(function(se){return 63&(se||0)})(P.dosPermissions)),E=te.getUTCHours(),E<<=6,E|=te.getUTCMinutes(),E<<=5,E|=te.getUTCSeconds()/2,j=te.getUTCFullYear()-1980,j<<=4,j|=te.getUTCMonth()+1,j<<=5,j|=te.getUTCDate(),W&&(z=i(1,1)+i(h(O),4)+k,J+="up"+i(z.length,2)+z),D&&(V=i(1,1)+i(h($),4)+_,J+="uc"+i(V.length,2)+V);var ie="";return ie+=` 1156\0`,ie+=i(q,2),ie+=C.magic,ie+=i(E,2),ie+=i(j,2),ie+=i(K.crc32,4),ie+=i(K.compressedSize,4),ie+=i(K.uncompressedSize,4),ie+=i(O.length,2),ie+=i(J.length,2),{fileRecord:f.LOCAL_FILE_HEADER+ie+O+J,dirRecord:f.CENTRAL_FILE_HEADER+i(U,2)+ie+i($.length,2)+"\0\0\0\0"+i(X,4)+i(b,4)+O+J+$}}var s=r("../utils"),c=r("../stream/GenericWorker"),u=r("../utf8"),h=r("../crc32"),f=r("../signature");function m(x,v,y,b){c.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=v,this.zipPlatform=y,this.encodeFileName=b,this.streamFiles=x,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(m,c),m.prototype.push=function(x){var v=x.meta.percent||0,y=this.entriesCount,b=this._sources.length;this.accumulate?this.contentBuffer.push(x):(this.bytesWritten+=x.data.length,c.prototype.push.call(this,{data:x.data,meta:{currentFile:this.currentFile,percent:y?(v+100*(y-b-1))/y:100}}))},m.prototype.openedSource=function(x){this.currentSourceOffset=this.bytesWritten,this.currentFile=x.file.name;var v=this.streamFiles&&!x.file.dir;if(v){var y=o(x,v,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:y.fileRecord,meta:{percent:0}})}else this.accumulate=!0},m.prototype.closedSource=function(x){this.accumulate=!1;var v=this.streamFiles&&!x.file.dir,y=o(x,v,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(y.dirRecord),v)this.push({data:(function(b){return f.DATA_DESCRIPTOR+i(b.crc32,4)+i(b.compressedSize,4)+i(b.uncompressedSize,4)})(x),meta:{percent:100}});else for(this.push({data:y.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},m.prototype.flush=function(){for(var x=this.bytesWritten,v=0;v<this.dirRecords.length;v++)this.push({data:this.dirRecords[v],meta:{percent:100}});var y=this.bytesWritten-x,b=(function(S,A,E,j,P){var C=s.transformTo("string",P(j));return f.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(S,2)+i(S,2)+i(A,4)+i(E,4)+i(C.length,2)+C})(this.dirRecords.length,y,x,this.zipComment,this.encodeFileName);this.push({data:b,meta:{percent:100}})},m.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},m.prototype.registerPrevious=function(x){this._sources.push(x);var v=this;return x.on("data",function(y){v.processChunk(y)}),x.on("end",function(){v.closedSource(v.previous.streamInfo),v._sources.length?v.prepareNextSource():v.end()}),x.on("error",function(y){v.error(y)}),this},m.prototype.resume=function(){return!!c.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},m.prototype.error=function(x){var v=this._sources;if(!c.prototype.error.call(this,x))return!1;for(var y=0;y<v.length;y++)try{v[y].error(x)}catch{}return!0},m.prototype.lock=function(){c.prototype.lock.call(this);for(var x=this._sources,v=0;v<x.length;v++)x[v].lock()},a.exports=m},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(r,a,n){var i=r("../compressions"),o=r("./ZipFileWorker");n.generateWorker=function(s,c,u){var h=new o(c.streamFiles,u,c.platform,c.encodeFileName),f=0;try{s.forEach(function(m,x){f++;var v=(function(A,E){var j=A||E,P=i[j];if(!P)throw new Error(j+" is not a valid compression method !");return P})(x.options.compression,c.compression),y=x.options.compressionOptions||c.compressionOptions||{},b=x.dir,S=x.date;x._compressWorker(v,y).withStreamInfo("file",{name:m,dir:b,date:S,comment:x.comment||"",unixPermissions:x.unixPermissions,dosPermissions:x.dosPermissions}).pipe(h)}),h.entriesCount=f}catch(m){h.error(m)}return h}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(r,a,n){function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var o=new i;for(var s in this)typeof this[s]!="function"&&(o[s]=this[s]);return o}}(i.prototype=r("./object")).loadAsync=r("./load"),i.support=r("./support"),i.defaults=r("./defaults"),i.version="3.10.1",i.loadAsync=function(o,s){return new i().loadAsync(o,s)},i.external=r("./external"),a.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(r,a,n){var i=r("./utils"),o=r("./external"),s=r("./utf8"),c=r("./zipEntries"),u=r("./stream/Crc32Probe"),h=r("./nodejsUtils");function f(m){return new o.Promise(function(x,v){var y=m.decompressed.getContentWorker().pipe(new u);y.on("error",function(b){v(b)}).on("end",function(){y.streamInfo.crc32!==m.decompressed.crc32?v(new Error("Corrupted zip : CRC32 mismatch")):x()}).resume()})}a.exports=function(m,x){var v=this;return x=i.extend(x||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:s.utf8decode}),h.isNode&&h.isStream(m)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip f
1156ile",m,!0,x.optimizedBinaryString,x.base64).then(function(y){var b=new c(x);return b.load(y),b}).then(function(y){var b=[o.Promise.resolve(y)],S=y.files;if(x.checkCRC32)for(var A=0;A<S.length;A++)b.push(f(S[A]));return o.Promise.all(b)}).then(function(y){for(var b=y.shift(),S=b.files,A=0;A<S.length;A++){var E=S[A],j=E.fileNameStr,P=i.resolve(E.fileNameStr);v.file(P,E.decompressed,{binary:!0,optimizedBinaryString:!0,date:E.date,dir:E.dir,comment:E.fileCommentStr.length?E.fileCommentStr:null,unixPermissions:E.unixPermissions,dosPermissions:E.dosPermissions,createFolders:x.createFolders}),E.dir||(v.file(P).unsafeOriginalName=j)}return b.zipComment.length&&(v.comment=b.zipComment),v})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(r,a,n){var i=r("../utils"),o=r("../stream/GenericWorker");function s(c,u){o.call(this,"Nodejs stream input adapter for "+c),this._upstreamEnded=!1,this._bindStream(u)}i.inherits(s,o),s.prototype._bindStream=function(c){var u=this;(this._stream=c).pause(),c.on("data",function(h){u.push({data:h,meta:{percent:0}})}).on("error",function(h){u.isPaused?this.generatedError=h:u.error(h)}).on("end",function(){u.isPaused?u._upstreamEnded=!0:u.end()})},s.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},s.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},a.exports=s},{"../stream/GenericWorker":28,"../utils":32}],13:[function(r,a,n){var i=r("readable-stream").Readable;function o(s,c,u){i.call(this,c),this._helper=s;var h=this;s.on("data",function(f,m){h.push(f)||h._helper.pause(),u&&u(m)}).on("error",function(f){h.emit("error",f)}).on("end",function(){h.push(null)})}r("../utils").inherits(o,i),o.prototype._read=function(){this._helper.resume()},a.exports=o},{"../utils":32,"readable-stream":16}],14:[function(r,a,n){a.exports={isNode:typeof Buffer<"u",newBufferFrom:function(i,o){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(i,o);if(typeof i=="number")throw new Error('The "data" argument must not be a number');return new Buffer(i,o)},allocBuffer:function(i){if(Buffer.alloc)return Buffer.alloc(i);var o=new Buffer(i);return o.fill(0),o},isBuffer:function(i){return Buffer.isBuffer(i)},isStream:function(i){return i&&typeof i.on=="function"&&typeof i.pause=="function"&&typeof i.resume=="function"}}},{}],15:[function(r,a,n){function i(j,P,C){var N,O=s.getTypeOf(P),k=s.extend(C||{},h);k.date=k.date||new Date,k.compression!==null&&(k.compression=k.compression.toUpperCase()),typeof k.unixPermissions=="string"&&(k.unixPermissions=parseInt(k.unixPermissions,8)),k.unixPermissions&&16384&k.unixPermissions&&(k.dir=!0),k.dosPermissions&&16&k.dosPermissions&&(k.dir=!0),k.dir&&(j=S(j)),k.createFolders&&(N=b(j))&&A.call(this,N,!0);var B=O==="string"&&k.binary===!1&&k.base64===!1;C&&C.binary!==void 0||(k.binary=!B),(P instanceof f&&P.uncompressedSize===0||k.dir||!P||P.length===0)&&(k.base64=!1,k.binary=!0,P="",k.compression="STORE",O="string");var $=null;$=P instanceof f||P instanceof c?P:v.isNode&&v.isStream(P)?new y(j,P):s.prepareContent(j,P,k.binary,k.optimizedBinaryString,k.base64);var _=new m(j,$,k);this.files[j]=_}var o=r("./utf8"),s=r("./utils"),c=r("./stream/GenericWorker"),u=r("./stream/StreamHelper"),h=r("./defaults"),f=r("./compressedObject"),m=r("./zipObject"),x=r("./generate"),v=r("./nodejsUtils"),y=r("./nodejs/NodejsStreamInputAdapter"),b=function(j){j.slice(-1)==="/"&&(j=j.substring(0,j.length-1));var P=j.lastIndexOf("/");return 0<P?j.substring(0,P):""},S=function(j){return j.slice(-1)!=="/"&&(j+="/"),j},A=function(j,P){return P=P!==void 0?P:h.createFolders,j=S(j),this.files[j]||i.call(this,j,null,{dir:!0,createFolders:P}),this.files[j]};function E(j){return Object.prototype.toString.call(j)==="[object RegExp]"}a.exports={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(j){var P,C,N;for(P in this.files)N=this.files[P],(C=P.slice(this.root.length,P.length))&&P.slice(0,this.root.length)===this.root&&j(C,N)},filter:function(j){var P=[];return this.forEach(function(C,N){j(C,N)&&P.push(N)}),P},file:function(j,P,C){if(arguments.length!==1)return j=this.root+j,i.call(this,j,P,C),this;if(E(j)){var N=j;return this.filter(function(k,B){return!B.dir&&N.test(k)})}var O=this.files[this.root+j];return O&&!O.dir?O:null},folder:function(j){if(!j)return this;if(E(j))return this.filter(function(O,k){return k.dir&&j.test(O)});var P=this.root+j,C=A.call(this,P),N=this.clone();return N.root=C.name,N},remove:function(j){j=this.root+j;var P=this.files[j];if(P||(j.slice(-1)!=="/"&&(j+="/"),P=this.files[j]),P&&!P.dir)delete this.files[j];else for(var C=this.filter(function(O,k){return k.name.slice(0,j.length)===j}),N=0;N<C.length;N++)delete this.files[C[N].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")}
vendor: 21,990 bytes, line 1156
1156,generateInternalStream:function(j){var P,C={};try{if((C=s.extend(j||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=C.type.toLowerCase(),C.compression=C.compression.toUpperCase(),C.type==="binarystring"&&(C.type="string"),!C.type)throw new Error("No output type specified.");s.checkSupport(C.type),C.platform!=="darwin"&&C.platform!=="freebsd"&&C.platform!=="linux"&&C.platform!=="sunos"||(C.platform="UNIX"),C.platform==="win32"&&(C.platform="DOS");var N=C.comment||this.comment||"";P=x.generateWorker(this,C,N)}catch(O){(P=new c("error")).error(O)}return new u(P,C.type||"string",C.mimeType)},generateAsync:function(j,P){return this.generateInternalStream(j).accumulate(P)},generateNodeStream:function(j,P){return(j=j||{}).type||(j.type="nodebuffer"),this.generateInternalStream(j).toNodejsStream(P)}}},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(r,a,n){a.exports=r("stream")},{stream:void 0}],17:[function(r,a,n){var i=r("./DataReader");function o(s){i.call(this,s);for(var c=0;c<this.data.length;c++)s[c]=255&s[c]}r("../utils").inherits(o,i),o.prototype.byteAt=function(s){return this.data[this.zero+s]},o.prototype.lastIndexOfSignature=function(s){for(var c=s.charCodeAt(0),u=s.charCodeAt(1),h=s.charCodeAt(2),f=s.charCodeAt(3),m=this.length-4;0<=m;--m)if(this.data[m]===c&&this.data[m+1]===u&&this.data[m+2]===h&&this.data[m+3]===f)return m-this.zero;return-1},o.prototype.readAndCheckSignature=function(s){var c=s.charCodeAt(0),u=s.charCodeAt(1),h=s.charCodeAt(2),f=s.charCodeAt(3),m=this.readData(4);return c===m[0]&&u===m[1]&&h===m[2]&&f===m[3]},o.prototype.readData=function(s){if(this.checkOffset(s),s===0)return[];var c=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,c},a.exports=o},{"../utils":32,"./DataReader":18}],18:[function(r,a,n){var i=r("../utils");function o(s){this.data=s,this.length=s.length,this.index=0,this.zero=0}o.prototype={checkOffset:function(s){this.checkIndex(this.index+s)},checkIndex:function(s){if(this.length<this.zero+s||s<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+s+"). Corrupted zip ?")},setIndex:function(s){this.checkIndex(s),this.index=s},skip:function(s){this.setIndex(this.index+s)},byteAt:function(){},readInt:function(s){var c,u=0;for(this.checkOffset(s),c=this.index+s-1;c>=this.index;c--)u=(u<<8)+this.byteAt(c);return this.index+=s,u},readString:function(s){return i.transformTo("string",this.readData(s))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var s=this.readInt(4);return new Date(Date.UTC(1980+(s>>25&127),(s>>21&15)-1,s>>16&31,s>>11&31,s>>5&63,(31&s)<<1))}},a.exports=o},{"../utils":32}],19:[function(r,a,n){var i=r("./Uint8ArrayReader");function o(s){i.call(this,s)}r("../utils").inherits(o,i),o.prototype.readData=function(s){this.checkOffset(s);var c=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,c},a.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(r,a,n){var i=r("./DataReader");function o(s){i.call(this,s)}r("../utils").inherits(o,i),o.prototype.byteAt=function(s){return this.data.charCodeAt(this.zero+s)},o.prototype.lastIndexOfSignature=function(s){return this.data.lastIndexOf(s)-this.zero},o.prototype.readAndCheckSignature=function(s){return s===this.readData(4)},o.prototype.readData=function(s){this.checkOffset(s);var c=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,c},a.exports=o},{"../utils":32,"./DataReader":18}],21:[function(r,a,n){var i=r("./ArrayReader");function o(s){i.call(this,s)}r("../utils").inherits(o,i),o.prototype.readData=function(s){if(this.checkOffset(s),s===0)return new Uint8Array(0);var c=this.data.subarray(this.zero+this.index,this.zero+this.index+s);return this.index+=s,c},a.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(r,a,n){var i=r("../utils"),o=r("../support"),s=r("./ArrayReader"),c=r("./StringReader"),u=r("./NodeBufferReader"),h=r("./Uint8ArrayReader");a.exports=function(f){var m=i.getTypeOf(f);return i.checkSupport(m),m!=="string"||o.uint8array?m==="nodebuffer"?new u(f):o.uint8array?new h(i.transformTo("uint8array",f)):new s(i.transformTo("array",f)):new c(f)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(r,a,n){n.LOCAL_FILE_HEADER="PK��",n.CENTRAL_FILE_HEADER="PK��",n.CENTRAL_DIRECTORY_END="PK��",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK�\x07",n.ZIP64_CENTRAL_DIRECTORY_END="PK��",n.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(r,a,n){var i=r("./GenericWorker"),o=r("../utils");function s(c){i.call(this,"ConvertWorker to "+c),this.destType=c}o.inherits(s,i),s.prototype.processChunk=function(c){this.push({data:o.transformTo(this.destType,c.data),meta:c.meta})},a.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(r,a,n){var i=r("./GenericWorker"),o=r("../crc32");function s(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}r("../utils").inherits(s,i),s.prototype.processChunk=function(c){this.streamInfo.crc32=o(c.data,this.streamInfo.crc32||0),this.push(c)},a.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(r,a,n){var i=r("../utils"),o=r("./GenericWorker");function s(c){o.call(this,"DataLengthProbe for "+c),this.propName=c,this.withStreamInfo(c,0)}i.inherits(s,o),s.prototype.processChunk=function(c){if(c){var u=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=u+c.data.length}o.prototype.processChunk.call(this,c)},a.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(r,a,n){var i=r("../utils"),o=r("./GenericWorker");function s(c){o.call(this,"DataWorker");var u=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,c.then(function(h){u.dataIsReady=!0,u.data=h,u.max=h&&h.length||0,u.type=i.getTypeOf(h),u.isPaused||u._tickAndRepeat()},function(h){u.error(h)})}i.inherits(s,o),s.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var c=null,u=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":c=this.data.substring(this.index,u);break;case"uint8array":c=this.data.subarray(this.index,u);break;case"array":case"nodebuffer":c=this.data.slice(this.index,u)}return this.index=u,this.push({data:c,meta:{percent:this.max?this.index/this.max*100:0}})},a.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(r,a,n){function i(o){this.name=o||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(o){this.emit("data",o)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(o){this.emit("error",o)}return!0},error:function(o){return!this.isFinished&&(this.isPaused?this.generatedError=o:(this.isFinished=!0,this.emit("error",o),this.previous&&this.previous.error(o),this.cleanUp()),!0)},on:function(o,s){return this._listeners[o].push(s),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(o,s){if(this._listeners[o])for(var c=0;c<this._listeners[o].length;c++)this._listeners[o][c].call(this,s)},pipe:function(o){return o.registerPrevious(this)},registerPrevious:function(o){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=o.streamInfo,this.mergeStreamInfo(),this.previous=o;var s=this;return o.on("data",function(c){s.processChunk(c)}),o.on("end",function(){s.end()}),o.on("error",function(c){s.error(c)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var o=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),o=!0),this.previous&&this.previous.resume(),!o},flush:function(){},processChunk:function(o){this.push(o)},withStreamInfo:function(o,s){return this.extraStreamInfo[o]=s,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var o in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,o)&&(this.streamInfo[o]=this.extraStreamInfo[o])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var o="Worker "+this.name;return this.previous?this.previous+" -> "+o:o}},a.exports=i},{}],29:[function(r,a,n){var i=r("../utils"),o=r("./ConvertWorker"),s=r("./GenericWorker"),c=r("../base64"),u=r("../support"),h=r("../external"),f=null;if(u.nodestream)try{f=r("../nodejs/NodejsStreamOutputAdapter")}catch{}function m(v,y){return new h.Promise(function(b,S){var A=[],E=v._internalType,j=v._outputType,P=v._mimeType;v.on("data",function(C,N){A.push(C),y&&y(N)}).on("error",function(C){A=[],S(C)}).on("end",function(){try{b((function(C,N,O){switch(C){case"blob":return i.newBlob(i.transformTo("arraybuffer",N),O);case"base64":return c.encode(N);default:return i.transformTo(C,N)}})(j,(function(C,N){var O,k=0,B=null,$=0;for(O=0;O<N.length;O++)$+=N[O].length;switch(C){case"string":return N.join("");case"array":return Array.prototype.concat.apply([],N);case"uint8array":for(B=new Uint8Array($),O=0;O<N.length;O++)B.set(N[O],k),k+=N[O].length;return B;case"nodebuffer":return Buffer.concat(N);default:throw new Error("concat : unsupported type '"+C+"'")}})(E,A),P))}catch(C){S(C)}A=[]}).resume()})}function x(v,y,b){var S=y;switch(y){case"blob":case"arraybuffer":S="uint8array";break;case"base64":S="string"}try{this._internalType=S,this._outputType=y,this._mimeType=b,i.checkSupport(S),this._worker=v.pipe(new o(S)),v.lock()}catch(A){this._worker=new s("error"),this._worker.error(A)}}x.prototype={accumulate:function(v){return m(this,v)},on:function(v,y){var b=this;return v==="data"?this._worker.on(v,function(S){y.call(b,S.data,S.meta)}):this._worker.on(v,function(){i.delay(y,arguments,b)}),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(v){if(i.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new f(this,{objectMode:this._outputType!=="nodebuffer"},v)}},a.exports=x},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(r,a,n){if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",n.nodebuffer=typeof Buffer<"u",n.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")n.blob=!1;else{var i=new ArrayBuffer(0);try{n.blob=new Blob([i],{type:"application/zip"}).size===0}catch{try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(i),n.blob=o.getBlob("application/zip").size===0}catch{n.blob=!1}}}try{n.nodestream=!!r("readable-stream").Readable}catch{n.nodestream=!1}},{"readable-stream":16}],31:[function(r,a,n){for(var i=r("./utils"),o=r("./support"),s=r("./nodejsUtils"),c=r("./stream/GenericWorker"),u=new Array(256),h=0;h<256;h++)u[h]=252<=h?6:248<=h?5:240<=h?4:224<=h?3:192<=h?2:1;u[254]=u[254]=1;function f(){c.call(this,"utf-8 decode"),this.leftOver=null}function m(){c.call(this,"utf-8 encode")}n.utf8encode=function(x){return o.nodebuffer?s.newBufferFrom(x,"utf-8"):(function(v){var y,b,S,A,E,j=v.length,P=0;for(A=0;A<j;A++)(64512&(b=v.charCodeAt(A)))==55296&&A+1<j&&(64512&(S=v.charCodeAt(A+1)))==56320&&(b=65536+(b-55296<<10)+(S-56320),A++),P+=b<128?1:b<2048?2:b<65536?3:4;for(y=o.uint8array?new Uint8Array(P):new Array(P),A=E=0;E<P;A++)(64512&(b=v.charCodeAt(A)))==55296&&A+1<j&&(64512&(S=v.charCodeAt(A+1)))==56320&&(b=65536+(b-55296<<10)+(S-56320),A++),b<128?y[E++]=b:(b<2048?y[E++]=192|b>>>6:(b<65536?y[E++]=224|b>>>12:(y[E++]=240|b>>>18,y[E++]=128|b>>>12&63),y[E++]=128|b>>>6&63),y[E++]=128|63&b);return y})(x)},n.utf8decode=function(x){return o.nodebuffer?i.transformTo("nodebuffer",x).toString("utf-8"):(function(v){var y,b,S,A,E=v.length,j=new Array(2*E);for(y=b=0;y<E;)if((S=v[y++])<128)j[b++]=S;else if(4<(A=u[S]))j[b++]=65533,y+=A-1;else{for(S&=A===2?31:A===3?15:7;1<A&&y<E;)S=S<<6|63&v[y++],A--;1<A?j[b++]=65533:S<65536?j[b++]=S:(S-=65536,j[b++]=55296|S>>10&1023,j[b++]=56320|1023&S)}return j.length!==b&&(j.subarray?j=j.subarray(0,b):j.length=b),i.applyFromCharCode(j)})(x=i.transformTo(o.uint8array?"uint8array":"array",x))},i.inherits(f,c),f.prototype.processChunk=function(x){var v=i.transformTo(o.uint8array?"uint8array":"array",x.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var y=v;(v=new Uint8Array(y.length+this.leftOver.length)).set(this.leftOver,0),v.set(y,this.leftOver.length)}else v=this.leftOver.concat(v);this.leftOver=null}var b=(function(A,E){var j;for((E=E||A.length)>A.length&&(E=A.length),j=E-1;0<=j&&(192&A[j])==128;)j--;return j<0||j===0?E:j+u[A[j]]>E?j:E})(v),S=v;b!==v.length&&(o.uint8array?(S=v.subarray(0,b),this.leftOver=v.subarray(b,v.length)):(S=v.slice(0,b),this.leftOver=v.slice(b,v.length))),this.push({data:n.utf8decode(S),meta:x.meta})},f.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=f,i.inherits(m,c),m.prototype.processChunk=function(x){this.push({data:n.utf8encode(x.data),meta:x.meta})},n.Utf8EncodeWorker=m},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(r,a,n){var i=r("./support"),o=r("./base64"),s=r("./nodejsUtils"),c=r("./external");function u(y){return y}function h(y,b){for(var S=0;S<y.length;++S)b[S]=255&y.charCodeAt(S);return b}r("setimmediate"),n.newBlob=function(y,b){n.checkSupport("blob");try{return new Blob([y],{type:b})}catch{try{var S=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return S.append(y),S.getBlob(b)}catch{throw new Error("Bug : can't construct the Blob.")}}};var f={stringifyByChunk:function(y,b,S){var A=[],E=0,j=y.length;if(j<=S)return String.fromCharCode.apply(null,y);for(;E<j;)b==="array"||b==="nodebuffer"?A.push(String.fromCharCode.apply(null,y.slice(E,Math.min(E+S,j)))):A.push(String.fromCharCode.apply(null,y.subarray(E,Math.min(E+S,j)))),E+=S;return A.join("")},stringifyByChar:function(y){for(var b="",S=0;S<y.length;S++)b+=String.fromCharCode(y[S]);return b},applyCanBeUsed:{uint8array:(function(){try{return i.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return i.nodebuffer&&String.fromCharCode.apply(null,s.allocBuffer(1)).length===1}catch{return!1}})()}};function m(y){var b=65536,S=n.getTypeOf(y),A=!0;if(S==="uint8array"?A=f.applyCanBeUsed.uint8array:S==="nodebuffer"&&(A=f.applyCanBeUsed.nodebuffer),A)for(;1<b;)try{return f.stringifyByChunk(y,S,b)}catch{b=Math.floor(b/2)}return f.stringifyByChar(y)}function x(y,b){for(var S=0;S<y.length;S++)b[S]=y[S];return b}n.applyFromCharCode=m;var v={};v.string={string:u,array:function(y){return h(y,new Array(y.length))},arraybuffer:function(y){return v.string.uint8array(y).buffer},uint8array:function(y){return h(y,new Uint8Array(y.length))},nodebuffer:function(y){return h(y,s.allocBuffer(y.length))}},v.array={string:m,array:u,arraybuffer:function(y){return new Uint8Array(y).buffer},uint8array:function(y){return new Uint8Array(y)},nodebuffer:function(y){return s.newBufferFrom(y)}},v.arraybuffer={string:function(y){return m(new Uint8Array(y))},array:function(y){return x(new Uint8Array(y),new Array(y.byteLength))},arraybuffer:u,uint8array:function(y){return new Uint8Array(y)},nodebuffer:function(y){return s.newBufferFrom(new Uint8Array(y))}},v.uint8array={string:m,array:function(y){return x(y,new Array(y.length))},arraybuffer:function(y){return y.buffer},uint8array:u,nodebuffer:function(y){return s.newBufferFrom(y)}},v.nodebuffer={string:m,array:function(y){return x(y,new Array(y.length))},arraybuffer:function(y){return v.nodebuffer.uint8array(y).buffer},uint8array:function(y){return x(y,new Uint8Array(y.length))},nodebuffer:u},n.transformTo=function(y,b){return b=b||"",y?(n.checkSupport(y),v[n.getTypeOf(b)][y](b)):b},n.resolve=function(y){for(var b=y.split("/"),S=[],A=0;A<b.length;A++){var E=b[A];E==="."||E===""&&A!==0&&A!==b.length-1||(E===".."?S.pop():S.push(E))}return S.join("/")},n.getTypeOf=function(y){return typeof y=="string"?"string":Object.prototype.toString.call(y)==="[object Array]"?"array":i.nodebuffer&&s.isBuffer(y)?"nodebuffer":i.uint8array&&y instanceof Uint8Array?"uint8array":i.arraybuffer&&y instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(y){if(!i[y.toLowerCase()])throw new Error(y+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(y){var b,S,A="";for(S=0;S<(y||"").length;S++)A+="\\x"+((b=y.charCodeAt(S))<16?"0":"")+b.toString(16).toUpperCase();return A},n.delay=function(y,b,S){setImmediate(function(){y.apply(S||null,b||[])})},n.inherits=function(y,b){function S(){}S.prototype=b.prototype,y.prototype=new S},n.extend=function(){var y,b,S={};for(y=0;y<arguments.length;y++)for(b in arguments[y])Object.prototype.hasOwnProperty.call(arguments[y],b)&&S[b]===void 0&&(S[b]=arguments[y][b]);return S},n.prepareContent=function(y,b,S,A,E){return c.Promise.resolve(b).then(function(j){return i.blob&&(j instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(j))!==-1)&&typeof FileReader<"u"?new c.Promise(function(P,C){var N=new FileReader;N.onload=function(O){P(O.target.result)},N.onerror=function(O){C(O.target.error)},N.readAsArrayBuffer(j)}):j}).then(function(j){var P=n.getTypeOf(j);return P?(P==="arraybuffer"?j=n.transformTo("uint8array",j):P==="string"&&(E?j=o.decode(j):S&&A!==!0&&(j=(function(C){return h(C,i.uint8array?new Uint8Array(C.length):new Array(C.length))})(j))),j):c.Promise.reject(new Error("Can't read the data of '"+y+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(r,a,n){var i=r("./reader/readerFor"),o=r("./utils"),s=r("./signature"),c=r("./zipEntry"),u=r("./support");function h(f){this.files=[],this.loadOptions=f}h.prototype={checkSignature:function(f){if(!this.reader.readAndCheckSignature(f)){this.reader.index-=4;var m=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+o.pretty(m)+", expected "+o.pretty(f)+")")}},isSignature:function(f,m){var x=this.reader.index;this.reader.setIndex(f);var v=this.reader.readString(4)===m;return this.reader.setIndex(x),v},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var f=this.reader.readData(this.zipCommentLength),m=u.uint8array?"uint8array":"array",x=o.transformTo(m,f);this.zipComment=this.loadOptions.decodeFileName(x)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var f,m,x,v=this.zip64EndOfCentralSize-44;0<v;)f=this.reader.readInt(2),m=this.reader.readInt(4),x=this.reader.readData(m),this.zip64ExtensibleData[f]={id:f,length:m,value:x}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var f,m;for(f=0;f<this.files.length;f++)m=this.files[f],this.reader.setIndex(m.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),m.readLocalPart(this.reader),m.handleUTF8(),m.processAttributes()},readCentralDir:function(){var f;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER);)(f=new c({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(f);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var f=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(f<0)throw this.isSignature(0,s.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip f
1156ile ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(f);var m=f;if(this.checkSignature(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,(f=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(f),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,s.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var x=this.centralDirOffset+this.centralDirSize;this.zip64&&(x+=20,x+=12+this.zip64EndOfCentralSize);var v=m-x;if(0<v)this.isSignature(m,s.CENTRAL_FILE_HEADER)||(this.reader.zero=v);else if(v<0)throw new Error("Corrupted zip: missing "+Math.abs(v)+" bytes.")},prepareReader:function(f){this.reader=i(f)},load:function(f){this.prepareReader(f),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},a.exports=h},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(r,a,n){var i=r("./reader/readerFor"),o=r("./utils"),s=r("./compressedObject"),c=r("./crc32"),u=r("./utf8"),h=r("./compressions"),f=r("./support");function m(x,v){this.options=x,this.loadOptions=v}m.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(x){var v,y;if(x.skip(22),this.fileNameLength=x.readInt(2),y=x.readInt(2),this.fileName=x.readData(this.fileNameLength),x.skip(y),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((v=(function(b){for(var S in h)if(Object.prototype.hasOwnProperty.call(h,S)&&h[S].magic===b)return h[S];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");this.decompressed=new s(this.compressedSize,this.uncompressedSize,this.crc32,v,x.readData(this.compressedSize))},readCentralPart:function(x){this.versionMadeBy=x.readInt(2),x.skip(2),this.bitFlag=x.readInt(2),this.compressionMethod=x.readString(2),this.date=x.readDate(),this.crc32=x.readInt(4),this.compressedSize=x.readInt(4),this.uncompressedSize=x.readInt(4);var v=x.readInt(2);if(this.extraFieldsLength=x.readInt(2),this.fileCommentLength=x.readInt(2),this.diskNumberStart=x.readInt(2),this.internalFileAttributes=x.readInt(2),this.externalFileAttributes=x.readInt(4),this.localHeaderOffset=x.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");x.skip(v),this.readExtraFields(x),this.parseZIP64ExtraField(x),this.fileComment=x.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var x=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),x==0&&(this.dosPermissions=63&this.externalFileAttributes),x==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var x=i(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=x.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=
vendor: 13,604 bytes, line 1156
1156x.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=x.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=x.readInt(4))}},readExtraFields:function(x){var v,y,b,S=x.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});x.index+4<S;)v=x.readInt(2),y=x.readInt(2),b=x.readData(y),this.extraFields[v]={id:v,length:y,value:b};x.setIndex(S)},handleUTF8:function(){var x=f.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=u.utf8decode(this.fileName),this.fileCommentStr=u.utf8decode(this.fileComment);else{var v=this.findExtraFieldUnicodePath();if(v!==null)this.fileNameStr=v;else{var y=o.transformTo(x,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(y)}var b=this.findExtraFieldUnicodeComment();if(b!==null)this.fileCommentStr=b;else{var S=o.transformTo(x,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(S)}}},findExtraFieldUnicodePath:function(){var x=this.extraFields[28789];if(x){var v=i(x.value);return v.readInt(1)!==1||c(this.fileName)!==v.readInt(4)?null:u.utf8decode(v.readData(x.length-5))}return null},findExtraFieldUnicodeComment:function(){var x=this.extraFields[25461];if(x){var v=i(x.value);return v.readInt(1)!==1||c(this.fileComment)!==v.readInt(4)?null:u.utf8decode(v.readData(x.length-5))}return null}},a.exports=m},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(r,a,n){function i(v,y,b){this.name=v,this.dir=b.dir,this.date=b.date,this.comment=b.comment,this.unixPermissions=b.unixPermissions,this.dosPermissions=b.dosPermissions,this._data=y,this._dataBinary=b.binary,this.options={compression:b.compression,compressionOptions:b.compressionOptions}}var o=r("./stream/StreamHelper"),s=r("./stream/DataWorker"),c=r("./utf8"),u=r("./compressedObject"),h=r("./stream/GenericWorker");i.prototype={internalStream:function(v){var y=null,b="string";try{if(!v)throw new Error("No output type specified.");var S=(b=v.toLowerCase())==="string"||b==="text";b!=="binarystring"&&b!=="text"||(b="string"),y=this._decompressWorker();var A=!this._dataBinary;A&&!S&&(y=y.pipe(new c.Utf8EncodeWorker)),!A&&S&&(y=y.pipe(new c.Utf8DecodeWorker))}catch(E){(y=new h("error")).error(E)}return new o(y,b,"")},async:function(v,y){return this.internalStream(v).accumulate(y)},nodeStream:function(v,y){return this.internalStream(v||"nodebuffer").toNodejsStream(y)},_compressWorker:function(v,y){if(this._data instanceof u&&this._data.compression.magic===v.magic)return this._data.getCompressedWorker();var b=this._decompressWorker();return this._dataBinary||(b=b.pipe(new c.Utf8EncodeWorker)),u.createWorkerFrom(b,v,y)},_decompressWorker:function(){return this._data instanceof u?this._data.getContentWorker():this._data instanceof h?this._data:new s(this._data)}};for(var f=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],m=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},x=0;x<f.length;x++)i.prototype[f[x]]=m;a.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(r,a,n){(function(i){var o,s,c=i.MutationObserver||i.WebKitMutationObserver;if(c){var u=0,h=new c(v),f=i.document.createTextNode("");h.observe(f,{characterData:!0}),o=function(){f.data=u=++u%2}}else if(i.setImmediate||i.MessageChannel===void 0)o="document"in i&&"onreadystatechange"in i.document.createElement("script")?function(){var y=i.document.createElement("script");y.onreadystatechange=function(){v(),y.onreadystatechange=null,y.parentNode.removeChild(y),y=null},i.document.documentElement.appendChild(y)}:function(){setTimeout(v,0)};else{var m=new i.MessageChannel;m.port1.onmessage=v,o=function(){m.port2.postMessage(0)}}var x=[];function v(){var y,b;s=!0;for(var S=x.length;S;){for(b=x,x=[],y=-1;++y<S;)b[y]();S=x.length}s=!1}a.exports=function(y){x.push(y)!==1||s||o()}}).call(this,typeof Ca<"u"?Ca:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(r,a,n){var i=r("immediate");function o(){}var s={},c=["REJECTED"],u=["FULFILLED"],h=["PENDING"];function f(S){if(typeof S!="function")throw new TypeError("resolver must be a function");this.state=h,this.queue=[],this.outcome=void 0,S!==o&&y(this,S)}function m(S,A,E){this.promise=S,typeof A=="function"&&(this.onFulfilled=A,this.callFulfilled=this.otherCallFulfilled),typeof E=="function"&&(this.onRejected=E,this.callRejected=this.otherCallRejected)}function x(S,A,E){i(function(){var j;try{j=A(E)}catch(P){return s.reject(S,P)}j===S?s.reject(S,new TypeError("Cannot resolve promise with itself")):s.resolve(S,j)})}function v(S){var A=S&&S.then;if(S&&(typeof S=="object"||typeof S=="function")&&typeof A=="function")return function(){A.apply(S,arguments)}}function y(S,A){var E=!1;function j(N){E||(E=!0,s.reject(S,N))}function P(N){E||(E=!0,s.resolve(S,N))}var C=b(function(){A(P,j)});C.status==="error"&&j(C.value)}function b(S,A){var E={};try{E.value=S(A),E.status="success"}catch(j){E.status="error",E.value=j}return E}(a.exports=f).prototype.finally=function(S){if(typeof S!="function")return this;var A=this.constructor;return this.then(function(E){return A.resolve(S()).then(function(){return E})},function(E){return A.resolve(S()).then(function(){throw E})})},f.prototype.catch=function(S){return this.then(null,S)},f.prototype.then=function(S,A){if(typeof S!="function"&&this.state===u||typeof A!="function"&&this.state===c)return this;var E=new this.constructor(o);return this.state!==h?x(E,this.state===u?S:A,this.outcome):this.queue.push(new m(E,S,A)),E},m.prototype.callFulfilled=function(S){s.resolve(this.promise,S)},m.prototype.otherCallFulfilled=function(S){x(this.promise,this.onFulfilled,S)},m.prototype.callRejected=function(S){s.reject(this.promise,S)},m.prototype.otherCallRejected=function(S){x(this.promise,this.onRejected,S)},s.resolve=function(S,A){var E=b(v,A);if(E.status==="error")return s.reject(S,E.value);var j=E.value;if(j)y(S,j);else{S.state=u,S.outcome=A;for(var P=-1,C=S.queue.length;++P<C;)S.queue[P].callFulfilled(A)}return S},s.reject=function(S,A){S.state=c,S.outcome=A;for(var E=-1,j=S.queue.length;++E<j;)S.queue[E].callRejected(A);return S},f.resolve=function(S){return S instanceof this?S:s.resolve(new this(o),S)},f.reject=function(S){var A=new this(o);return s.reject(A,S)},f.all=function(S){var A=this;if(Object.prototype.toString.call(S)!=="[object Array]")return this.reject(new TypeError("must be an array"));var E=S.length,j=!1;if(!E)return this.resolve([]);for(var P=new Array(E),C=0,N=-1,O=new this(o);++N<E;)k(S[N],N);return O;function k(B,$){A.resolve(B).then(function(_){P[$]=_,++C!==E||j||(j=!0,s.resolve(O,P))},function(_){j||(j=!0,s.reject(O,_))})}},f.race=function(S){var A=this;if(Object.prototype.toString.call(S)!=="[object Array]")return this.reject(new TypeError("must be an array"));var E=S.length,j=!1;if(!E)return this.resolve([]);for(var P=-1,C=new this(o);++P<E;)N=S[P],A.resolve(N).then(function(O){j||(j=!0,s.resolve(C,O))},function(O){j||(j=!0,s.reject(C,O))});var N;return C}},{immediate:36}],38:[function(r,a,n){var i={};(0,r("./lib/utils/common").assign)(i,r("./lib/deflate"),r("./lib/inflate"),r("./lib/zlib/constants")),a.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(r,a,n){var i=r("./zlib/deflate"),o=r("./utils/common"),s=r("./utils/strings"),c=r("./zlib/messages"),u=r("./zlib/zstream"),h=Object.prototype.toString,f=0,m=-1,x=0,v=8;function y(S){if(!(this instanceof y))return new y(S);this.options=o.assign({level:m,method:v,chunkSize:16384,windowBits:15,memLevel:8,strategy:x,to:""},S||{});var A=this.options;A.raw&&0<A.windowBits?A.windowBits=-A.windowBits:A.gzip&&0<A.windowBits&&A.windowBits<16&&(A.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var E=i.deflateInit2(this.strm,A.level,A.method,A.windowBits,A.memLevel,A.strategy);if(E!==f)throw new Error(c[E]);if(A.header&&i.deflateSetHeader(this.strm,A.header),A.dictionary){var j;if(j=typeof A.dictionary=="string"?s.string2buf(A.dictionary):h.call(A.dictionary)==="[object ArrayBuffer]"?new Uint8Array(A.dictionary):A.dictionary,(E=i.deflateSetDictionary(this.strm,j))!==f)throw new Error(c[E]);this._dict_set=!0}}function b(S,A){var E=new y(A);if(E.push(S,!0),E.err)throw E.msg||c[E.err];return E.result}y.prototype.push=function(S,A){var E,j,P=this.strm,C=this.options.chunkSize;if(this.ended)return!1;j=A===~~A?A:A===!0?4:0,typeof S=="string"?P.input=s.string2buf(S):h.call(S)==="[object ArrayBuffer]"?P.input=new Uint8Array(S):P.input=S,P.next_in=0,P.avail_in=P.input.length;do{if(P.avail_out===0&&(P.output=new o.Buf8(C),P.next_out=0,P.avail_out=C),(E=i.deflate(P,j))!==1&&E!==f)return this.onEnd(E),!(this.ended=!0);P.avail_out!==0&&(P.avail_in!==0||j!==4&&j!==2)||(this.options.to==="string"?this.onData(s.buf2binstring(o.shrinkBuf(P.output,P.next_out))):this.onData(o.shrinkBuf(P.output,P.next_out)))}while((0<P.avail_in||P.avail_out===0)&&E!==1);return j===4?(E=i.deflateEnd(this.strm),this.onEnd(E),this.ended=!0,E===f):j!==2||(this.onEnd(f),!(P.avail_out=0))},y.prototype.onData=function(S){this.chunks.push(S)},y.prototype.onEnd=function(S){S===f&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=S,this.msg=this.strm.msg},n.Deflate=y,n.deflate=b,n.deflateRaw=function(S,A){return(A=A||{}).raw=!0,b(S,A)},n.gzip=function(S,A){return(A=A||{}).gzip=!0,b(S,A)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(r,a,n){var i=r("./zlib/inflate"),o=r("./utils/common"),s=r("./utils/strings"),c=r("./zlib/constants"),u=r("./zlib/messages"),h=r("./zlib/zstream"),f=r("./zlib/gzheader"),m=Object.prototype.toString;function x(y){if(!(this instanceof x))return new x(y);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},y||{});var b=this.options;b.raw&&0<=b.windowBits&&b.windowBits<16&&(b.windowBits=-b.windowBits,b.windowBits===0&&(b.windowBits=-15)),!(0<=b.windowBits&&b.windowBits<16)||y&&y.windowBits||(b.windowBits+=32),15<b.windowBits&&b.windowBits<48&&(15&b.windowBits)==0&&(b.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new h,this.strm.avail_out=0;var S=i.inflateInit2(this.strm,b.windowBits);if(S!==c.Z_OK)throw new Error(u[S]);this.header=new f,i.inflateGetHeader(this.strm,this.header)}function v(y,b){var S=new x(b);if(S.push(y,!0),S.err)throw S.msg||u[S.err];return S.result}x.prototype.push=function(y,b){var S,A,E,j,P,C,N=this.strm,O=this.options.chunkSize,k=this.options.dictionary,B=!1;if(this.ended)return!1;A=b===~~b?b:b===!0?c.Z_FINISH:c.Z_NO_FLUSH,typeof y=="string"?N.input=s.binstring2buf(y):m.call(y)==="[object ArrayBuffer]"?N.input=new Uint8Array(y):N.input=y,N.next_in=0,N.avail_in=N.input.length;do{if(N.avail_out===0&&(N.output=new o.Buf8(O),N.next_out=0,N.avail_out=O),(S=i.inflate(N,c.Z_NO_FLUSH))===c.Z_NEED_DICT&&k&&(C=typeof k=="string"?s.string2buf(k):m.call(k)==="[object ArrayBuffer]"?new Uint8Array(k):k,S=i.inflateSetDictionary(this.strm,C)),S===c.Z_BUF_ERROR&&B===!0&&(S=c.Z_OK,B=!1),S!==c.Z_STREAM_END&&S!==c.Z_OK)return this.onEnd(S),!(this.ended=!0);N.next_out&&(N.avail_out!==0&&S!==c.Z_STREAM_END&&(N.avail_in!==0||A!==c.Z_FINISH&&A!==c.Z_SYNC_FLUSH)||(this.options.to==="string"?(E=s.utf8border(N.output,N.next_out),j=N.next_out-E,P=s.buf2string(N.output,E),N.next_out=j,N.avail_out=O-j,j&&o.arraySet(N.output,N.output,E,j,0),this.onData(P)):this.onData(o.shrinkBuf(N.output,N.next_out)))),N.avail_in===0&&N.avail_out===0&&(B=!0)}while((0<N.avail_in||N.avail_out===0)&&S!==c.Z_STREAM_END);return S===c.Z_STREAM_END&&(A=c.Z_FINISH),A===c.Z_FINISH?(S=i.inflateEnd(this.strm),this.onEnd(S),this.ended=!0,S===c.Z_OK):A!==c.Z_SYNC_FLUSH||(this.onEnd(c.Z_OK),!(N.avail_out=0))},x.prototype.onData=function(y){this.chunks.push(y)},x.prototype.onEnd=function(y){y===c.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=y,this.msg=this.strm.msg},n.Inflate=x,n.inflate=v,n.inflateRaw=function(y,b){return(b=b||{}).raw=!0,v(y,b)},n.ungzip=v},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(r,a,n){var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";n.assign=function(c){for(var u=Array.prototype.slice.call(arguments,1);u.length;){var h=u.shift();if(h){if(typeof h!="object")throw new TypeError(h+"must be non-object");for(var f in h)h.hasOwnProperty(f)&&(c[f]=h[f])}}return c},n.shrinkBuf=function(c,u){return c.length===u?c:c.subarray?c.subarray(0,u):(c.length=u,c)};var o={arraySet:function(c,u,h,f,m){if(u.subarray&&c.subarray)c.set(u.subarray(h,h+f),m);else for(var x=0;x<f;x++)c[m+x]=u[h+x]},flattenChunks:function(c){var u,h,f,m,x,v;for(u=f=0,h=c.length;u<h;u++)f+=c[u].length;for(v=new Uint8Array(f),u=m=0,h=c.length;u<h;u++)x=c[u],v.set(x,m),m+=x.length;return v}},s={arraySet:function(c,u,h,f,m){for(var x=0;x<f;x++)c[m+x]=u[h+x]},flattenChunks:function(c){return[].concat.apply([],c)}};n.setTyped=function(c){c?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,o)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,s))},n.setTyped(i)},{}],42:[function(r,a,n){var i=r("./common"),o=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch{o=!1}
vendor: 12,946 bytes, line 1156
1156try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{s=!1}for(var c=new i.Buf8(256),u=0;u<256;u++)c[u]=252<=u?6:248<=u?5:240<=u?4:224<=u?3:192<=u?2:1;function h(f,m){if(m<65537&&(f.subarray&&s||!f.subarray&&o))return String.fromCharCode.apply(null,i.shrinkBuf(f,m));for(var x="",v=0;v<m;v++)x+=String.fromCharCode(f[v]);return x}c[254]=c[254]=1,n.string2buf=function(f){var m,x,v,y,b,S=f.length,A=0;for(y=0;y<S;y++)(64512&(x=f.charCodeAt(y)))==55296&&y+1<S&&(64512&(v=f.charCodeAt(y+1)))==56320&&(x=65536+(x-55296<<10)+(v-56320),y++),A+=x<128?1:x<2048?2:x<65536?3:4;for(m=new i.Buf8(A),y=b=0;b<A;y++)(64512&(x=f.charCodeAt(y)))==55296&&y+1<S&&(64512&(v=f.charCodeAt(y+1)))==56320&&(x=65536+(x-55296<<10)+(v-56320),y++),x<128?m[b++]=x:(x<2048?m[b++]=192|x>>>6:(x<65536?m[b++]=224|x>>>12:(m[b++]=240|x>>>18,m[b++]=128|x>>>12&63),m[b++]=128|x>>>6&63),m[b++]=128|63&x);return m},n.buf2binstring=function(f){return h(f,f.length)},n.binstring2buf=function(f){for(var m=new i.Buf8(f.length),x=0,v=m.length;x<v;x++)m[x]=f.charCodeAt(x);return m},n.buf2string=function(f,m){var x,v,y,b,S=m||f.length,A=new Array(2*S);for(x=v=0;x<S;)if((y=f[x++])<128)A[v++]=y;else if(4<(b=c[y]))A[v++]=65533,x+=b-1;else{for(y&=b===2?31:b===3?15:7;1<b&&x<S;)y=y<<6|63&f[x++],b--;1<b?A[v++]=65533:y<65536?A[v++]=y:(y-=65536,A[v++]=55296|y>>10&1023,A[v++]=56320|1023&y)}return h(A,v)},n.utf8border=function(f,m){var x;for((m=m||f.length)>f.length&&(m=f.length),x=m-1;0<=x&&(192&f[x])==128;)x--;return x<0||x===0?m:x+c[f[x]]>m?x:m}},{"./common":41}],43:[function(r,a,n){a.exports=function(i,o,s,c){for(var u=65535&i|0,h=i>>>16&65535|0,f=0;s!==0;){for(s-=f=2e3<s?2e3:s;h=h+(u=u+o[c++]|0)|0,--f;);u%=65521,h%=65521}return u|h<<16|0}},{}],44:[function(r,a,n){a.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(r,a,n){var i=(function(){for(var o,s=[],c=0;c<256;c++){o=c;for(var u=0;u<8;u++)o=1&o?3988292384^o>>>1:o>>>1;s[c]=o}return s})();a.exports=function(o,s,c,u){var h=i,f=u+c;o^=-1;for(var m=u;m<f;m++)o=o>>>8^h[255&(o^s[m])];return-1^o}},{}],46:[function(r,a,n){var i,o=r("../utils/common"),s=r("./trees"),c=r("./adler32"),u=r("./crc32"),h=r("./messages"),f=0,m=4,x=0,v=-2,y=-1,b=4,S=2,A=8,E=9,j=286,P=30,C=19,N=2*j+1,O=15,k=3,B=258,$=B+k+1,_=42,W=113,D=1,J=2,z=3,V=4;function Z(G,pe){return G.msg=h[pe],pe}function te(G){return(G<<1)-(4<G?9:0)}function K(G){for(var pe=G.length;0<=--pe;)G[pe]=0}function q(G){var pe=G.state,ee=pe.pending;ee>G.avail_out&&(ee=G.avail_out),ee!==0&&(o.arraySet(G.output,pe.pending_buf,pe.pending_out,ee,G.next_out),G.next_out+=ee,pe.pending_out+=ee,G.total_out+=ee,G.avail_out-=ee,pe.pending-=ee,pe.pending===0&&(pe.pending_out=0))}function X(G,pe){s._tr_flush_block(G,0<=G.block_start?G.block_start:-1,G.strstart-G.block_start,pe),G.block_start=G.strstart,q(G.strm)}function U(G,pe){G.pending_buf[G.pending++]=pe}function ie(G,pe){G.pending_buf[G.pending++]=pe>>>8&255,G.pending_buf[G.pending++]=255&pe}function se(G,pe){var ee,M,I=G.max_chain_length,H=G.strstart,ce=G.prev_length,fe=G.nice_match,ue=G.strstart>G.w_size-$?G.strstart-(G.w_size-$):0,we=G.window,Ne=G.w_mask,De=G.prev,xe=G.strstart+B,Ee=we[H+ce-1],ze=we[H+ce];G.prev_length>=G.good_match&&(I>>=2),fe>G.lookahead&&(fe=G.lookahead);do if(we[(ee=pe)+ce]===ze&&we[ee+ce-1]===Ee&&we[ee]===we[H]&&we[++ee]===we[H+1]){H+=2,ee++;do;while(we[++H]===we[++ee]&&we[++H]===we[++ee]&&we[++H]===we[++ee]&&we[++H]===we[++ee]&&we[++H]===we[++ee]&&we[++H]===we[++ee]&&we[++H]===we[++ee]&&we[++H]===we[++ee]&&H<xe);if(M=B-(xe-H),H=xe-B,ce<M){if(G.match_start=pe,fe<=(ce=M))break;Ee=we[H+ce-1],ze=we[H+ce]}}while((pe=De[pe&Ne])>ue&&--I!=0);return ce<=G.lookahead?ce:G.lookahead}function he(G){var pe,ee,M,I,H,ce,fe,ue,we,Ne,De=G.w_size;do{if(I=G.window_size-G.lookahead-G.strstart,G.strstart>=De+(De-$)){for(o.arraySet(G.window,G.window,De,De,0),G.match_start-=De,G.strstart-=De,G.block_start-=De,pe=ee=G.hash_size;M=G.head[--pe],G.head[pe]=De<=M?M-De:0,--ee;);for(pe=ee=De;M=G.prev[--pe],G.prev[pe]=De<=M?M-De:0,--ee;);I+=De}if(G.strm.avail_in===0)break;if(ce=G.strm,fe=G.window,ue=G.strstart+G.lookahead,we=I,Ne=void 0,Ne=ce.avail_in,we<Ne&&(Ne=we),ee=Ne===0?0:(ce.avail_in-=Ne,o.arraySet(fe,ce.input,ce.next_in,Ne,ue),ce.state.wrap===1?ce.adler=c(ce.adler,fe,Ne,ue):ce.state.wrap===2&&(ce.adler=u(ce.adler,fe,Ne,ue)),ce.next_in+=Ne,ce.total_in+=Ne,Ne),G.lookahead+=ee,G.lookahead+G.insert>=k)for(H=G.strstart-G.insert,G.ins_h=G.window[H],G.ins_h=(G.ins_h<<G.hash_shift^G.window[H+1])&G.hash_mask;G.insert&&(G.ins_h=(G.ins_h<<G.hash_shift^G.window[H+k-1])&G.hash_mask,G.prev[H&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=H,H++,G.insert--,!(G.lookahead+G.insert<k)););}while(G.lookahead<$&&G.strm.avail_in!==0)}function Y(G,pe){for(var ee,M;;){if(G.lookahead<$){if(he(G),G.lookahead<$&&pe===f)return D;if(G.lookahead===0)break}if(ee=0,G.lookahead>=k&&(G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+k-1])&G.hash_mask,ee=G.prev[G.strstart&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=G.strstart),ee!==0&&G.strstart-ee<=G.w_size-$&&(G.match_length=se(G,ee)),G.match_length>=k)if(M=s._tr_tally(G,G.strstart-G.match_start,G.match_length-k),G.lookahead-=G.match_length,G.match_length<=G.max_lazy_match&&G.lookahead>=k){for(G.match_length--;G.strstart++,G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+k-1])&G.hash_mask,ee=G.prev[G.strstart&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=G.strstart,--G.match_length!=0;);G.strstart++}else G.strstart+=G.match_length,G.match_length=0,G.ins_h=G.window[G.strstart],G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+1])&G.hash_mask;else M=s._tr_tally(G,0,G.window[G.strstart]),G.lookahead--,G.strstart++;if(M&&(X(G,!1),G.strm.avail_out===0))return D}return G.insert=G.strstart<k-1?G.strstart:k-1,pe===m?(X(G,!0),G.strm.avail_out===0?z:V):G.last_lit&&(X(G,!1),G.strm.avail_out===0)?D:J}function F(G,pe){for(var ee,M,I;;){if(G.lookahead<$){if(he(G),G.lookahead<$&&pe===f)return D;if(G.lookahead===0)break}if(ee=0,G.lookahead>=k&&(G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+k-1])&G.hash_mask,ee=G.prev[G.strstart&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=G.strstart),G.prev_length=G.match_length,G.prev_match=G.match_start,G.match_length=k-1,ee!==0&&G.prev_length<G.max_lazy_match&&G.strstart-ee<=G.w_size-$&&(G.match_length=se(G,ee),G.match_length<=5&&(G.strategy===1||G.match_length===k&&4096<G.strstart-G.match_start)&&(G.match_length=k-1)),G.prev_length>=k&&G.match_length<=G.prev_length){for(I=G.strstart+G.lookahead-k,M=s._tr_tally(G,G.strstart-1-G.prev_match,G.prev_length-k),G.lookahead-=G.prev_length-1,G.prev_length-=2;++G.strstart<=I&&(G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+k-1])&G.hash_mask,ee=G.prev[G.strstart&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=G.strstart),--G.prev_length!=0;);if(G.match_available=0,G.match_length=k-1,G.strstart++,M&&(X(G,!1),G.strm.avail_out===0))return D}else if(G.match_available){if((M=s._tr_tally(G,0,G.window[G.strstart-1]))&&X(G,!1),G.strstart++,G.lookahead--,G.strm.avail_out===0)return D}else G.match_available=1,G.strstart++,G.lookahead--}return G.match_available&&(M=s._tr_tally(G,0,G.window[G.strstart-1]),G.match_available=0),G.insert=G.strstart<k-1?G.strstart:k-1,pe===m?(X(G,!0),G.strm.avail_out===0?z:V):G.last_lit&&(X(G,!1),G.strm.avail_out===0)?D:J}function ae(G,pe,ee,M,I){this.good_length=G,this.max_lazy=pe,this.nice_length=ee,this.max_chain=M,this.func=I}function ne(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=A,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new o.Buf16(2*N),this.dyn_dtree=new o.Buf16(2*(2*P+1)),this.bl_tree=new o.Buf16(2*(2*C+1)),K(this.dyn_ltree),K(this.dyn_dtree),K(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(O+1),this.heap=new o.Buf16(2*j+1),K(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*j+1),K(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ge(G){var pe;return G&&G.state?(G.total_in=G.total_out=0,G.data_type=S,(pe=G.state).pending=0,pe.pending_out=0,pe.wrap<0&&(pe.wrap=-pe.wrap),pe.status=pe.wrap?_:W,G.adler=pe.wrap===2?0:1,pe.last_flush=f,s._tr_init(pe),x):Z(G,v)}function re(G){var pe=ge(G);return pe===x&&(function(ee){ee.window_size=2*ee.w_size,K(ee.head),ee.max_lazy_match=i[ee.level].max_lazy,ee.good_match=i[ee.level].good_length,ee.nice_match=i[ee.level].nice_length,ee.max_chain_length=i[ee.level].max_chain,ee.strstart=0,ee.block_start=0,ee.lookahead=0,ee.insert=0,ee.match_length=ee.prev_length=k-1,ee.match_available=0,ee.ins_h=0})(G.state),pe}function oe(G,pe,ee,M,I,H){if(!G)return v;var ce=1;if(pe===y&&(pe=6),M<0?(ce=0,M=-M):15<M&&(ce=2,M-=16),I<1||E<I||ee!==A||M<8||15<M||pe<0||9<pe||H<0||b<H)return Z(G,v);M===8&&(M=9);var fe=new ne;return(G.state=fe).strm=G,fe.wrap=ce,fe.gzhead=null,fe.w_bits=M,fe.w_size=1<<fe.w_bits,fe.w_mask=fe.w_size-1,fe.hash_bits=I+7,fe.hash_size=1<<fe.hash_bits,fe.hash_mask=fe.hash_size-1,fe.hash_shift=~~((fe.hash_bits+k-1)/k),fe.window=new o.Buf8(2*fe.w_size),fe.head=new o.Buf16(fe.hash_size),fe.prev=new o.Buf16(fe.w_size),fe.lit_bufsize=1<<I+6,fe.pending_buf_size=4*fe.lit_bufsize,fe.pending_buf=new o.Buf8(fe.pending_buf_size),fe.d_buf=1*fe.lit_bufsize,fe.l_buf=3*fe.lit_bufsize,fe.level=pe,fe.strategy=H,fe.method=ee,re(G)}i=[new ae(0,0,0,0,function(G,pe){var ee=65535;for(ee>G.pending_buf_size-5&&(ee=G.pending_buf_size-5);;){if(G.lookahead<=1){if(he(G),G.lookahead===0&&pe===f)return D;if(G.lookahead===0)break}G.strstart+=G.lookahead,G.lookahead=0;var M=G.block_start+ee;if((G.strstart===0||G.strstart>=M)&&(G.lookahead=G.strstart-M,G.strstart=M,X(G,!1),G.strm.avail_out===0)||G.strstart-G.block_start>=G.w_size-$&&(X(G,!1),G.strm.avail_out===0))return D}return G.insert=0,pe===m?(X(G,!0),G.strm.avail_out===0?z:V):(G.strstart>G.block_start&&(X(G,!1),G.strm.avail_out),D)}),new ae(4,4,8,4,Y),new ae(4,5,16,8,Y),new ae(4,6,32,32,Y),new ae(4,4,16,16,F),new ae(8,16,32,32,F),new ae(8,16,128,128,F),new ae(8,32,128,256,F),new ae(32,128,258,1024,F),new ae(32,258,258,4096,F)],n.deflateInit=function(G,pe){return oe(G,pe,A,15,8,0)},n.deflateInit2=oe,n.deflateReset=re,n.deflateResetKeep=ge,n.deflateSetHeader=function(G,pe){return G&&G.state?G.state.wrap!==2?v:(G.state.gzhead=pe,x):v},n.deflate=function(G,pe){var ee,M,I,H;if(!G||!G.state||5<pe||pe<0)return G?Z(G,v):v;if(M=G.state,!G.output||!G.input&&G.avail_in!==0||M.status===666&&pe!==m)return Z(G,G.avail_out===0?-5:v);if(M.strm=G,ee=M.last_flush,M.last_flush=pe,M.status===_)if(M.wrap===2)G.adler=0,U(M,31),U(M,139),U(M,8),M.gzhead?(U(M,(M.gzhead.text?1:0)+(M.gzhead.hcrc?2:0)+(M.gzhead.extra?4:0)+(M.gzhead.name?8:0)+(M.gzhead.comment?16:0)),U(M,255&M.gzhead.time),U(M,M.gzhead.time>>8&255),U(M,M.gzhead.time>>16&255),U(M,M.gzhead.time>>24&255),U(M,M.level===9?2:2<=M.strategy||M.level<2?4:0),U(M,255&M.gzhead.os),M.gzhead.extra&&M.gzhead.extra.length&&(U(M,255&M.gzhead.extra.length),U(M,M.gzhead.extra.length>>8&255)),M.gzhead.hcrc&&(G.adler=u(G.adler,M.pending_buf,M.pending,0)),M.gzindex=0,M.status=69):(U(M,0),U(M,0),U(M,0),U(M,0),U(M,0),U(M,M.level===9?2:2<=M.strategy||M.level<2?4:0),U(M,3),M.status=W);else{var ce=A+(M.w_bits-8<<4)<<8;ce|=(2<=M.strategy||M.level<2?0:M.level<6?1:M.level===6?2:3)<<6,M.strstart!==0&&(ce|=32),ce+=31-ce%31,M.status=W,ie(M,ce),M.strstart!==0&&(ie(M,G.adler>>>16),ie(M,65535&G.adler)),G.adler=1}if(M.status===69)if(M.gzhead.extra){for(I=M.pending;M.gzindex<(65535&M.gzhead.extra.length)&&(M.pending!==M.pending_buf_size||(M.gzhead.hcrc&&M.pending>I&&(G.adler=u(G.adler,M.pending_buf,M.pending-I,I)),q(G),I=M.pending,M.pending!==M.pending_buf_size));)U(M,255&M.gzhead.extra[M.gzindex]),M.gzindex++;M.gzhead.hcrc&&M.pending>I&&(G.adler=u(G.adler,M.pending_buf,M.pending-I,I)),M.gzindex===M.gzhead.extra.length&&(M.gzindex=0,M.status=73)}else M.status=73;if(M.status===73)if(M.gzhead.name){I=M.pending;do{if(M.pending===M.pending_buf_size&&(M.gzhead.hcrc&&M.pending>I&&(G.adler=u(G.adler,M.pending_buf,M.pending-I,I)),q(G),I=M.pending,M.pending===M.pending_buf_size)){H=1;break}
vendor: 28,288 bytes, line 1156
1156H=M.gzindex<M.gzhead.name.length?255&M.gzhead.name.charCodeAt(M.gzindex++):0,U(M,H)}while(H!==0);M.gzhead.hcrc&&M.pending>I&&(G.adler=u(G.adler,M.pending_buf,M.pending-I,I)),H===0&&(M.gzindex=0,M.status=91)}else M.status=91;if(M.status===91)if(M.gzhead.comment){I=M.pending;do{if(M.pending===M.pending_buf_size&&(M.gzhead.hcrc&&M.pending>I&&(G.adler=u(G.adler,M.pending_buf,M.pending-I,I)),q(G),I=M.pending,M.pending===M.pending_buf_size)){H=1;break}H=M.gzindex<M.gzhead.comment.length?255&M.gzhead.comment.charCodeAt(M.gzindex++):0,U(M,H)}while(H!==0);M.gzhead.hcrc&&M.pending>I&&(G.adler=u(G.adler,M.pending_buf,M.pending-I,I)),H===0&&(M.status=103)}else M.status=103;if(M.status===103&&(M.gzhead.hcrc?(M.pending+2>M.pending_buf_size&&q(G),M.pending+2<=M.pending_buf_size&&(U(M,255&G.adler),U(M,G.adler>>8&255),G.adler=0,M.status=W)):M.status=W),M.pending!==0){if(q(G),G.avail_out===0)return M.last_flush=-1,x}else if(G.avail_in===0&&te(pe)<=te(ee)&&pe!==m)return Z(G,-5);if(M.status===666&&G.avail_in!==0)return Z(G,-5);if(G.avail_in!==0||M.lookahead!==0||pe!==f&&M.status!==666){var fe=M.strategy===2?(function(ue,we){for(var Ne;;){if(ue.lookahead===0&&(he(ue),ue.lookahead===0)){if(we===f)return D;break}if(ue.match_length=0,Ne=s._tr_tally(ue,0,ue.window[ue.strstart]),ue.lookahead--,ue.strstart++,Ne&&(X(ue,!1),ue.strm.avail_out===0))return D}return ue.insert=0,we===m?(X(ue,!0),ue.strm.avail_out===0?z:V):ue.last_lit&&(X(ue,!1),ue.strm.avail_out===0)?D:J})(M,pe):M.strategy===3?(function(ue,we){for(var Ne,De,xe,Ee,ze=ue.window;;){if(ue.lookahead<=B){if(he(ue),ue.lookahead<=B&&we===f)return D;if(ue.lookahead===0)break}if(ue.match_length=0,ue.lookahead>=k&&0<ue.strstart&&(De=ze[xe=ue.strstart-1])===ze[++xe]&&De===ze[++xe]&&De===ze[++xe]){Ee=ue.strstart+B;do;while(De===ze[++xe]&&De===ze[++xe]&&De===ze[++xe]&&De===ze[++xe]&&De===ze[++xe]&&De===ze[++xe]&&De===ze[++xe]&&De===ze[++xe]&&xe<Ee);ue.match_length=B-(Ee-xe),ue.match_length>ue.lookahead&&(ue.match_length=ue.lookahead)}if(ue.match_length>=k?(Ne=s._tr_tally(ue,1,ue.match_length-k),ue.lookahead-=ue.match_length,ue.strstart+=ue.match_length,ue.match_length=0):(Ne=s._tr_tally(ue,0,ue.window[ue.strstart]),ue.lookahead--,ue.strstart++),Ne&&(X(ue,!1),ue.strm.avail_out===0))return D}return ue.insert=0,we===m?(X(ue,!0),ue.strm.avail_out===0?z:V):ue.last_lit&&(X(ue,!1),ue.strm.avail_out===0)?D:J})(M,pe):i[M.level].func(M,pe);if(fe!==z&&fe!==V||(M.status=666),fe===D||fe===z)return G.avail_out===0&&(M.last_flush=-1),x;if(fe===J&&(pe===1?s._tr_align(M):pe!==5&&(s._tr_stored_block(M,0,0,!1),pe===3&&(K(M.head),M.lookahead===0&&(M.strstart=0,M.block_start=0,M.insert=0))),q(G),G.avail_out===0))return M.last_flush=-1,x}return pe!==m?x:M.wrap<=0?1:(M.wrap===2?(U(M,255&G.adler),U(M,G.adler>>8&255),U(M,G.adler>>16&255),U(M,G.adler>>24&255),U(M,255&G.total_in),U(M,G.total_in>>8&255),U(M,G.total_in>>16&255),U(M,G.total_in>>24&255)):(ie(M,G.adler>>>16),ie(M,65535&G.adler)),q(G),0<M.wrap&&(M.wrap=-M.wrap),M.pending!==0?x:1)},n.deflateEnd=function(G){var pe;return G&&G.state?(pe=G.state.status)!==_&&pe!==69&&pe!==73&&pe!==91&&pe!==103&&pe!==W&&pe!==666?Z(G,v):(G.state=null,pe===W?Z(G,-3):x):v},n.deflateSetDictionary=function(G,pe){var ee,M,I,H,ce,fe,ue,we,Ne=pe.length;if(!G||!G.state||(H=(ee=G.state).wrap)===2||H===1&&ee.status!==_||ee.lookahead)return v;for(H===1&&(G.adler=c(G.adler,pe,Ne,0)),ee.wrap=0,Ne>=ee.w_size&&(H===0&&(K(ee.head),ee.strstart=0,ee.block_start=0,ee.insert=0),we=new o.Buf8(ee.w_size),o.arraySet(we,pe,Ne-ee.w_size,ee.w_size,0),pe=we,Ne=ee.w_size),ce=G.avail_in,fe=G.next_in,ue=G.input,G.avail_in=Ne,G.next_in=0,G.input=pe,he(ee);ee.lookahead>=k;){for(M=ee.strstart,I=ee.lookahead-(k-1);ee.ins_h=(ee.ins_h<<ee.hash_shift^ee.window[M+k-1])&ee.hash_mask,ee.prev[M&ee.w_mask]=ee.head[ee.ins_h],ee.head[ee.ins_h]=M,M++,--I;);ee.strstart=M,ee.lookahead=k-1,he(ee)}return ee.strstart+=ee.lookahead,ee.block_start=ee.strstart,ee.insert=ee.lookahead,ee.lookahead=0,ee.match_length=ee.prev_length=k-1,ee.match_available=0,G.next_in=fe,G.input=ue,G.avail_in=ce,ee.wrap=H,x},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(r,a,n){a.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(r,a,n){a.exports=function(i,o){var s=i.state,c=i.next_in,u,h,f,m,x,v,y,b,S,A,E,j,P,C,N,O,k,B,$,_,W,D=i.input,J;u=c+(i.avail_in-5),h=i.next_out,J=i.output,f=h-(o-i.avail_out),m=h+(i.avail_out-257),x=s.dmax,v=s.wsize,y=s.whave,b=s.wnext,S=s.window,A=s.hold,E=s.bits,j=s.lencode,P=s.distcode,C=(1<<s.lenbits)-1,N=(1<<s.distbits)-1;e:do{E<15&&(A+=D[c++]<<E,E+=8,A+=D[c++]<<E,E+=8),O=j[A&C];t:for(;;){if(A>>>=k=O>>>24,E-=k,(k=O>>>16&255)===0)J[h++]=65535&O;else{if(!(16&k)){if((64&k)==0){O=j[(65535&O)+(A&(1<<k)-1)];continue t}if(32&k){s.mode=12;break e}i.msg="invalid literal/length code",s.mode=30;break e}B=65535&O,(k&=15)&&(E<k&&(A+=D[c++]<<E,E+=8),B+=A&(1<<k)-1,A>>>=k,E-=k),E<15&&(A+=D[c++]<<E,E+=8,A+=D[c++]<<E,E+=8),O=P[A&N];r:for(;;){if(A>>>=k=O>>>24,E-=k,!(16&(k=O>>>16&255))){if((64&k)==0){O=P[(65535&O)+(A&(1<<k)-1)];continue r}i.msg="invalid distance code",s.mode=30;break e}if($=65535&O,E<(k&=15)&&(A+=D[c++]<<E,(E+=8)<k&&(A+=D[c++]<<E,E+=8)),x<($+=A&(1<<k)-1)){i.msg="invalid distance too far back",s.mode=30;break e}if(A>>>=k,E-=k,(k=h-f)<$){if(y<(k=$-k)&&s.sane){i.msg="invalid distance too far back",s.mode=30;break e}if(W=S,(_=0)===b){if(_+=v-k,k<B){for(B-=k;J[h++]=S[_++],--k;);_=h-$,W=J}}else if(b<k){if(_+=v+b-k,(k-=b)<B){for(B-=k;J[h++]=S[_++],--k;);if(_=0,b<B){for(B-=k=b;J[h++]=S[_++],--k;);_=h-$,W=J}}}else if(_+=b-k,k<B){for(B-=k;J[h++]=S[_++],--k;);_=h-$,W=J}for(;2<B;)J[h++]=W[_++],J[h++]=W[_++],J[h++]=W[_++],B-=3;B&&(J[h++]=W[_++],1<B&&(J[h++]=W[_++]))}else{for(_=h-$;J[h++]=J[_++],J[h++]=J[_++],J[h++]=J[_++],2<(B-=3););B&&(J[h++]=J[_++],1<B&&(J[h++]=J[_++]))}break}}break}}while(c<u&&h<m);c-=B=E>>3,A&=(1<<(E-=B<<3))-1,i.next_in=c,i.next_out=h,i.avail_in=c<u?u-c+5:5-(c-u),i.avail_out=h<m?m-h+257:257-(h-m),s.hold=A,s.bits=E}},{}],49:[function(r,a,n){var i=r("../utils/common"),o=r("./adler32"),s=r("./crc32"),c=r("./inffast"),u=r("./inftrees"),h=1,f=2,m=0,x=-2,v=1,y=852,b=592;function S(_){return(_>>>24&255)+(_>>>8&65280)+((65280&_)<<8)+((255&_)<<24)}function A(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function E(_){var W;return _&&_.state?(W=_.state,_.total_in=_.total_out=W.total=0,_.msg="",W.wrap&&(_.adler=1&W.wrap),W.mode=v,W.last=0,W.havedict=0,W.dmax=32768,W.head=null,W.hold=0,W.bits=0,W.lencode=W.lendyn=new i.Buf32(y),W.distcode=W.distdyn=new i.Buf32(b),W.sane=1,W.back=-1,m):x}function j(_){var W;return _&&_.state?((W=_.state).wsize=0,W.whave=0,W.wnext=0,E(_)):x}function P(_,W){var D,J;return _&&_.state?(J=_.state,W<0?(D=0,W=-W):(D=1+(W>>4),W<48&&(W&=15)),W&&(W<8||15<W)?x:(J.window!==null&&J.wbits!==W&&(J.window=null),J.wrap=D,J.wbits=W,j(_))):x}function C(_,W){var D,J;return _?(J=new A,(_.state=J).window=null,(D=P(_,W))!==m&&(_.state=null),D):x}var N,O,k=!0;function B(_){if(k){var W;for(N=new i.Buf32(512),O=new i.Buf32(32),W=0;W<144;)_.lens[W++]=8;for(;W<256;)_.lens[W++]=9;for(;W<280;)_.lens[W++]=7;for(;W<288;)_.lens[W++]=8;for(u(h,_.lens,0,288,N,0,_.work,{bits:9}),W=0;W<32;)_.lens[W++]=5;u(f,_.lens,0,32,O,0,_.work,{bits:5}),k=!1}_.lencode=N,_.lenbits=9,_.distcode=O,_.distbits=5}function $(_,W,D,J){var z,V=_.state;return V.window===null&&(V.wsize=1<<V.wbits,V.wnext=0,V.whave=0,V.window=new i.Buf8(V.wsize)),J>=V.wsize?(i.arraySet(V.window,W,D-V.wsize,V.wsize,0),V.wnext=0,V.whave=V.wsize):(J<(z=V.wsize-V.wnext)&&(z=J),i.arraySet(V.window,W,D-J,z,V.wnext),(J-=z)?(i.arraySet(V.window,W,D-J,J,0),V.wnext=J,V.whave=V.wsize):(V.wnext+=z,V.wnext===V.wsize&&(V.wnext=0),V.whave<V.wsize&&(V.whave+=z))),0}n.inflateReset=j,n.inflateReset2=P,n.inflateResetKeep=E,n.inflateInit=function(_){return C(_,15)},n.inflateInit2=C,n.inflate=function(_,W){var D,J,z,V,Z,te,K,q,X,U,ie,se,he,Y,F,ae,ne,ge,re,oe,G,pe,ee,M,I=0,H=new i.Buf8(4),ce=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!_||!_.state||!_.output||!_.input&&_.avail_in!==0)return x;(D=_.state).mode===12&&(D.mode=13),Z=_.next_out,z=_.output,K=_.avail_out,V=_.next_in,J=_.input,te=_.avail_in,q=D.hold,X=D.bits,U=te,ie=K,pe=m;e:for(;;)switch(D.mode){case v:if(D.wrap===0){D.mode=13;break}for(;X<16;){if(te===0)break e;te--,q+=J[V++]<<X,X+=8}if(2&D.wrap&&q===35615){H[D.check=0]=255&q,H[1]=q>>>8&255,D.check=s(D.check,H,2,0),X=q=0,D.mode=2;break}if(D.flags=0,D.head&&(D.head.done=!1),!(1&D.wrap)||(((255&q)<<8)+(q>>8))%31){_.msg="incorrect header check",D.mode=30;break}if((15&q)!=8){_.msg="unknown compression method",D.mode=30;break}if(X-=4,G=8+(15&(q>>>=4)),D.wbits===0)D.wbits=G;else if(G>D.wbits){_.msg="invalid window size",D.mode=30;break}D.dmax=1<<G,_.adler=D.check=1,D.mode=512&q?10:12,X=q=0;break;case 2:for(;X<16;){if(te===0)break e;te--,q+=J[V++]<<X,X+=8}if(D.flags=q,(255&D.flags)!=8){_.msg="unknown compression method",D.mode=30;break}if(57344&D.flags){_.msg="unknown header flags set",D.mode=30;break}D.head&&(D.head.text=q>>8&1),512&D.flags&&(H[0]=255&q,H[1]=q>>>8&255,D.check=s(D.check,H,2,0)),X=q=0,D.mode=3;case 3:for(;X<32;){if(te===0)break e;te--,q+=J[V++]<<X,X+=8}D.head&&(D.head.time=q),512&D.flags&&(H[0]=255&q,H[1]=q>>>8&255,H[2]=q>>>16&255,H[3]=q>>>24&255,D.check=s(D.check,H,4,0)),X=q=0,D.mode=4;case 4:for(;X<16;){if(te===0)break e;te--,q+=J[V++]<<X,X+=8}D.head&&(D.head.xflags=255&q,D.head.os=q>>8),512&D.flags&&(H[0]=255&q,H[1]=q>>>8&255,D.check=s(D.check,H,2,0)),X=q=0,D.mode=5;case 5:if(1024&D.flags){for(;X<16;){if(te===0)break e;te--,q+=J[V++]<<X,X+=8}D.length=q,D.head&&(D.head.extra_len=q),512&D.flags&&(H[0]=255&q,H[1]=q>>>8&255,D.check=s(D.check,H,2,0)),X=q=0}else D.head&&(D.head.extra=null);D.mode=6;case 6:if(1024&D.flags&&(te<(se=D.length)&&(se=te),se&&(D.head&&(G=D.head.extra_len-D.length,D.head.extra||(D.head.extra=new Array(D.head.extra_len)),i.arraySet(D.head.extra,J,V,se,G)),512&D.flags&&(D.check=s(D.check,J,se,V)),te-=se,V+=se,D.length-=se),D.length))break e;D.length=0,D.mode=7;case 7:if(2048&D.flags){if(te===0)break e;for(se=0;G=J[V+se++],D.head&&G&&D.length<65536&&(D.head.name+=String.fromCharCode(G)),G&&se<te;);if(512&D.flags&&(D.check=s(D.check,J,se,V)),te-=se,V+=se,G)break e}else D.head&&(D.head.name=null);D.length=0,D.mode=8;case 8:if(4096&D.flags){if(te===0)break e;for(se=0;G=J[V+se++],D.head&&G&&D.length<65536&&(D.head.comment+=String.fromCharCode(G)),G&&se<te;);if(512&D.flags&&(D.check=s(D.check,J,se,V)),te-=se,V+=se,G)break e}else D.head&&(D.head.comment=null);D.mode=9;case 9:if(512&D.flags){for(;X<16;){if(te===0)break e;te--,q+=J[V++]<<X,X+=8}if(q!==(65535&D.check)){_.msg="header crc mismatch",D.mode=30;break}X=q=0}D.head&&(D.head.hcrc=D.flags>>9&1,D.head.done=!0),_.adler=D.check=0,D.mode=12;break;case 10:for(;X<32;){if(te===0)break e;te--,q+=J[V++]<<X,X+=8}_.adler=D.check=S(q),X=q=0,D.mode=11;case 11:if(D.havedict===0)return _.next_out=Z,_.avail_out=K,_.next_in=V,_.avail_in=te,D.hold=q,D.bits=X,2;_.adler=D.check=1,D.mode=12;case 12:if(W===5||W===6)break e;case 13:if(D.last){q>>>=7&X,X-=7&X,D.mode=27;break}for(;X<3;){if(te===0)break e;te--,q+=J[V++]<<X,X+=8}switch(D.last=1&q,X-=1,3&(q>>>=1)){case 0:D.mode=14;break;case 1:if(B(D),D.mode=20,W!==6)break;q>>>=2,X-=2;break e;case 2:D.mode=17;break;case 3:_.msg="invalid block type",D.mode=30}q>>>=2,X-=2;break;case 14:for(q>>>=7&X,X-=7&X;X<32;){if(te===0)break e;te--,q+=J[V++]<<X,X+=8}if((65535&q)!=(q>>>16^65535)){_.msg="invalid stored block lengths",D.mode=30;break}if(D.length=65535&q,X=q=0,D.mode=15,W===6)break e;case 15:D.mode=16;case 16:if(se=D.length){if(te<se&&(se=te),K<se&&(se=K),se===0)break e;i.arraySet(z,J,V,se,Z),te-=se,V+=se,K-=se,Z+=se,D.length-=se;break}D.mode=12;break;case 17:for(;X<14;){if(te===0)break e;te--,q+=J[V++]<<X,X+=8}if(D.nlen=257+(31&q),q>>>=5,X-=5,D.ndist=1+(31&q),q>>>=5,X-=5,D.ncode=4+(15&q),q>>>=4,X-=4,286<D.nlen||30<D.ndist){_.msg="too many length or distance symbols",D.mode=30;break}D.have=0,D.mode=18;case 18:for(;D.have<D.ncode;){for(;X<3;){if(te===0)break e;te--,q+=J[V++]<<X,X+=8}D.lens[ce[D.have++]]=7&q,q>>>=3,X-=3}for(;D.have<19;)D.lens[ce[D.have++]]=0;if(D.lencode=D.lendyn,D.lenbits=7,ee={bits:D.lenbits},pe=u(0,D.lens,0,19,D.lencode,0,D.work,ee),D.lenbits=ee.bits,pe){_.msg="invalid code lengths set",D.mode=30;break}D.have=0,D.mode=19;case 19:for(;D.have<D.nlen+D.ndist;){for(;ae=(I=D.lencode[q&(1<<D.lenbits)-1])>>>16&255,ne=65535&I,!((F=I>>>24)<=X);){if(te===0)break e;te--,q+=J[V++]<<X,X+=8}if(ne<16)q>>>=F,X-=F,D.lens[D.have++]=ne;else{if(ne===16){for(M=F+2;X<M;){if(te===0)break e;te--,q+=J[V++]<<X,X+=8}if(q>>>=F,X-=F,D.have===0){_.msg="invalid bit length repeat",D.mode=30;break}G=D.lens[D.have-1],se=3+(3&q),q>>>=2,X-=2}else if(ne===17){for(M=F+3;X<M;){if(te===0)break e;te--,q+=J[V++]<<X,X+=8}X-=F,G=0,se=3+(7&(q>>>=F)),q>>>=3,X-=3}else{for(M=F+7;X<M;){if(te===0)break e;te--,q+=J[V++]<<X,X+=8}X-=F,G=0,se=11+(127&(q>>>=F)),q>>>=7,X-=7}if(D.have+se>D.nlen+D.ndist){_.msg="invalid bit length repeat",D.mode=30;break}for(;se--;)D.lens[D.have++]=G}}if(D.mode===30)break;if(D.lens[256]===0){_.msg="invalid code -- missing end-of-block",D.mode=30;break}if(D.lenbits=9,ee={bits:D.lenbits},pe=u(h,D.lens,0,D.nlen,D.lencode,0,D.work,ee),D.lenbits=ee.bits,pe){_.msg="invalid literal/lengths set",D.mode=30;break}if(D.distbits=6,D.distcode=D.distdyn,ee={bits:D.distbits},pe=u(f,D.lens,D.nlen,D.ndist,D.distcode,0,D.work,ee),D.distbits=ee.bits,pe){_.msg="invalid distances set",D.mode=30;break}if(D.mode=20,W===6)break e;case 20:D.mode=21;case 21:if(6<=te&&258<=K){_.next_out=Z,_.avail_out=K,_.next_in=V,_.avail_in=te,D.hold=q,D.bits=X,c(_,ie),Z=_.next_out,z=_.output,K=_.avail_out,V=_.next_in,J=_.input,te=_.avail_in,q=D.hold,X=D.bits,D.mode===12&&(D.back=-1);break}for(D.back=0;ae=(I=D.lencode[q&(1<<D.lenbits)-1])>>>16&255,ne=65535&I,!((F=I>>>24)<=X);){if(te===0)break e;te--,q+=J[V++]<<X,X+=8}if(ae&&(240&ae)==0){for(ge=F,re=ae,oe=ne;ae=(I=D.lencode[oe+((q&(1<<ge+re)-1)>>ge)])>>>16&255,ne=65535&I,!(ge+(F=I>>>24)<=X);){if(te===0)break e;te--,q+=J[V++]<<X,X+=8}q>>>=ge,X-=ge,D.back+=ge}if(q>>>=F,X-=F,D.back+=F,D.length=ne,ae===0){D.mode=26;break}if(32&ae){D.back=-1,D.mode=12;break}if(64&ae){_.msg="invalid literal/length code",D.mode=30;break}D.extra=15&ae,D.mode=22;case 22:if(D.extra){for(M=D.extra;X<M;){if(te===0)break e;te--,q+=J[V++]<<X,X+=8}D.length+=q&(1<<D.extra)-1,q>>>=D.extra,X-=D.extra,D.back+=D.extra}D.was=D.length,D.mode=23;case 23:for(;ae=(I=D.distcode[q&(1<<D.distbits)-1])>>>16&255,ne=65535&I,!((F=I>>>24)<=X);){if(te===0)break e;te--,q+=J[V++]<<X,X+=8}if((240&ae)==0){for(ge=F,re=ae,oe=ne;ae=(I=D.distcode[oe+((q&(1<<ge+re)-1)>>ge)])>>>16&255,ne=65535&I,!(ge+(F=I>>>24)<=X);){if(te===0)break e;te--,q+=J[V++]<<X,X+=8}q>>>=ge,X-=ge,D.back+=ge}if(q>>>=F,X-=F,D.back+=F,64&ae){_.msg="invalid distance code",D.mode=30;break}D.offset=ne,D.extra=15&ae,D.mode=24;case 24:if(D.extra){for(M=D.extra;X<M;){if(te===0)break e;te--,q+=J[V++]<<X,X+=8}D.offset+=q&(1<<D.extra)-1,q>>>=D.extra,X-=D.extra,D.back+=D.extra}if(D.offset>D.dmax){_.msg="invalid distance too far back",D.mode=30;break}D.mode=25;case 25:if(K===0)break e;if(se=ie-K,D.offset>se){if((se=D.offset-se)>D.whave&&D.sane){_.msg="invalid distance too far back",D.mode=30;break}he=se>D.wnext?(se-=D.wnext,D.wsize-se):D.wnext-se,se>D.length&&(se=D.length),Y=D.window}else Y=z,he=Z-D.offset,se=D.length;for(K<se&&(se=K),K-=se,D.length-=se;z[Z++]=Y[he++],--se;);D.length===0&&(D.mode=21);break;case 26:if(K===0)break e;z[Z++]=D.length,K--,D.mode=21;break;case 27:if(D.wrap){for(;X<32;){if(te===0)break e;te--,q|=J[V++]<<X,X+=8}if(ie-=K,_.total_out+=ie,D.total+=ie,ie&&(_.adler=D.check=D.flags?s(D.check,z,ie,Z-ie):o(D.check,z,ie,Z-ie)),ie=K,(D.flags?q:S(q))!==D.check){_.msg="incorrect data check",D.mode=30;break}X=q=0}D.mode=28;case 28:if(D.wrap&&D.flags){for(;X<32;){if(te===0)break e;te--,q+=J[V++]<<X,X+=8}if(q!==(4294967295&D.total)){_.msg="incorrect length check",D.mode=30;break}X=q=0}D.mode=29;case 29:pe=1;break e;case 30:pe=-3;break e;case 31:return-4;case 32:default:return x}return _.next_out=Z,_.avail_out=K,_.next_in=V,_.avail_in=te,D.hold=q,D.bits=X,(D.wsize||ie!==_.avail_out&&D.mode<30&&(D.mode<27||W!==4))&&$(_,_.output,_.next_out,ie-_.avail_out)?(D.mode=31,-4):(U-=_.avail_in,ie-=_.avail_out,_.total_in+=U,_.total_out+=ie,D.total+=ie,D.wrap&&ie&&(_.adler=D.check=D.flags?s(D.check,z,ie,_.next_out-ie):o(D.check,z,ie,_.next_out-ie)),_.data_type=D.bits+(D.last?64:0)+(D.mode===12?128:0)+(D.mode===20||D.mode===15?256:0),(U==0&&ie===0||W===4)&&pe===m&&(pe=-5),pe)},n.inflateEnd=function(_){if(!_||!_.state)return x;var W=_.state;return W.window&&(W.window=null),_.state=null,m},n.inflateGetHeader=function(_,W){var D;return _&&_.state?(2&(D=_.state).wrap)==0?x:((D.head=W).done=!1,m):x},n.inflateSetDictionary=function(_,W){var D,J=W.length;return _&&_.state?(D=_.state).wrap!==0&&D.mode!==11?x:D.mode===11&&o(1,W,J,0)!==D.check?-3:$(_,W,J,J)?(D.mode=31,-4):(D.havedict=1,m):x},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(r,a,n){var i=r("../utils/common"),o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],s=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],c=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],u=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];a.exports=function(h,f,m,x,v,y,b,S){var A,E,j,P,C,N,O,k,B,$=S.bits,_=0,W=0,D=0,J=0,z=0,V=0,Z=0,te=0,K=0,q=0,X=null,U=0,ie=new i.Buf16(16),se=new i.Buf16(16),he=null,Y=0;for(_=0;_<=15;_++)ie[_]=0;for(W=0;W<x;W++)ie[f[m+W]]++;for(z=$,J=15;1<=J&&ie[J]===0;J--);if(J<z&&(z=J),J===0)return v[y++]=20971520,v[y++]=20971520,S.bits=1,0;for(D=1;D<J&&ie[D]===0;D++);for(z<D&&(z=D),_=te=1;_<=15;_++)if(te<<=1,(te-=ie[_])<0)return-1;if(0<te&&(h===0||J!==1))return-1;for(se[1]=0,_=1;_<15;_++)se[_+1]=se[_]+ie[_];for(W=0;W<x;W++)f[m+W]!==0&&(b[se[f[m+W]]++]=W);if(N=h===0?(X=he=b,19):h===1?(X=o,U-=257,he=s,Y-=257,256):(X=c,he=u,-1),_=D,C=y,Z=W=q=0,j=-1,P=(K=1<<(V=z))-1,h===1&&852<K||h===2&&592<K)return 1;for(;;){for(O=_-Z,B=b[W]<N?(k=0,b[W]):b[W]>N?(k=he[Y+b[W]],X[U+b[W]]):(k=96,0),A=1<<_-Z,D=E=1<<V;v[C+(q>>Z)+(E-=A)]=O<<24|k<<16|B|0,E!==0;);for(A=1<<_-1;q&A;)A>>=1;if(A!==0?(q&=A-1,q+=A):q=0,W++,--ie[_]==0){if(_===J)break;_=f[m+b[W]]}if(z<_&&(q&P)!==j){for(Z===0&&(Z=z),C+=D,te=1<<(V=_-Z);V+Z<J&&!((te-=ie[V+Z])<=0);)V++,te<<=1;if(K+=1<<V,h===1&&852<K||h===2&&592<K)return 1;v[j=q&P]=z<<24|V<<16|C-y|0}}return q!==0&&(v[C+q]=_-Z<<24|4194304),S.bits=z,0}},{"../utils/common":41}],51:[function(r,a,n){a.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(r,a,n){var i=r("../utils/common"),o=0,s=1;function c(I){for(var H=I.length;0<=--H;)I[H]=0}var u=0,h=29,f=256,m=f+1+h,x=30,v=19,y=2*m+1,b=15,S=16,A=7,E=256,j=16,P=17,C=18,N=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],O=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],k=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],B=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],$=new Array(2*(m+2));c($);var _=new Array(2*x);c(_);var W=new Array(512);c(W);var D=new Array(256);c(D);var J=new Array(h);c(J);var z,V,Z,te=new Array(x);function K(I,H,ce,fe,ue){this.static_tree=I,this.extra_bits=H,this.extra_base=ce,this.elems=fe,this.max_length=ue,this.has_stree=I&&I.length}function q(I,H){this.dyn_tree=I,this.max_code=0,this.stat_desc=H}function X(I){return I<256?W[I]:W[256+(I>>>7)]}function U(I,H){I.pending_buf[I.pending++]=255&H,I.pending_buf[I.pending++]=H>>>8&255}function ie(I,H,ce){I.bi_valid>S-ce?(I.bi_buf|=H<<I.bi_valid&65535,U(I,I.bi_buf),I.bi_buf=H>>S-I.bi_valid,I.bi_valid+=ce-S):(I.bi_buf|=H<<I.bi_valid&65535,I.bi_valid+=ce)}function se(I,H,ce){ie(I,ce[2*H],ce[2*H+1])}function he(I,H){for(var ce=0;ce|=1&I,I>>>=1,ce<<=1,0<--H;);return ce>>>1}function Y(I,H,ce){var fe,ue,we=new Array(b+1),Ne=0;for(fe=1;fe<=b;fe++)we[fe]=Ne=Ne+ce[fe-1]<<1;for(ue=0;ue<=H;ue++){var De=I[2*ue+1];De!==0&&(I[2*ue]=he(we[De]++,De))}}function F(I){var H;for(H=0;H<m;H++)I.dyn_ltree[2*H]=0;for(H=0;H<x;H++)I.dyn_dtree[2*H]=0;for(H=0;H<v;H++)I.bl_tree[2*H]=0;I.dyn_ltree[2*E]=1,I.opt_len=I.static_len=0,I.last_lit=I.matches=0}function ae(I){8<I.bi_valid?U(I,I.bi_buf):0<I.bi_valid&&(I.pending_buf[I.pending++]=I.bi_buf),I.bi_buf=0,I.bi_valid=0}function ne(I,H,ce,fe){var ue=2*H,we=2*ce;return I[ue]<I[we]||I[ue]===I[we]&&fe[H]<=fe[ce]}function ge(I,H,ce){for(var fe=I.heap[ce],ue=ce<<1;ue<=I.heap_len&&(ue<I.heap_len&&ne(H,I.heap[ue+1],I.heap[ue],I.depth)&&ue++,!ne(H,fe,I.heap[ue],I.depth));)I.heap[ce]=I.heap[ue],ce=ue,ue<<=1;I.heap[ce]=fe}function re(I,H,ce){var fe,ue,we,Ne,De=0;if(I.last_lit!==0)for(;fe=I.pending_buf[I.d_buf+2*De]<<8|I.pending_buf[I.d_buf+2*De+1],ue=I.pending_buf[I.l_buf+De],De++,fe===0?se(I,ue,H):(se(I,(we=D[ue])+f+1,H),(Ne=N[we])!==0&&ie(I,ue-=J[we],Ne),se(I,we=X(--fe),ce),(Ne=O[we])!==0&&ie(I,fe-=te[we],Ne)),De<I.last_lit;);se(I,E,H)}function oe(I,H){var ce,fe,ue,we=H.dyn_tree,Ne=H.stat_desc.static_tree,De=H.stat_desc.has_stree,xe=H.stat_desc.elems,Ee=-1;for(I.heap_len=0,I.heap_max=y,ce=0;ce<xe;ce++)we[2*ce]!==0?(I.heap[++I.heap_len]=Ee=ce,I.depth[ce]=0):we[2*ce+1]=0;for(;I.heap_len<2;)we[2*(ue=I.heap[++I.heap_len]=Ee<2?++Ee:0)]=1,I.depth[ue]=0,I.opt_len--,De&&(I.static_len-=Ne[2*ue+1]);for(H.max_code=Ee,ce=I.heap_len>>1;1<=ce;ce--)ge(I,we,ce);for(ue=xe;ce=I.heap[1],I.heap[1]=I.heap[I.heap_len--],ge(I,we,1),fe=I.heap[1],I.heap[--I.heap_max]=ce,I.heap[--I.heap_max]=fe,we[2*ue]=we[2*ce]+we[2*fe],I.depth[ue]=(I.depth[ce]>=I.depth[fe]?I.depth[ce]:I.depth[fe])+1,we[2*ce+1]=we[2*fe+1]=ue,I.heap[1]=ue++,ge(I,we,1),2<=I.heap_len;);I.heap[--I.heap_max]=I.heap[1],(function(ze,We){var it,Pt,Jt,xt,Oe,ke,Ie=We.dyn_tree,Pe=We.max_code,at=We.stat_desc.static_tree,Et=We.stat_desc.has_stree,cr=We.stat_desc.extra_bits,Xt=We.stat_desc.extra_base,$t=We.stat_desc.max_length,Lt=0;for(xt=0;xt<=b;xt++)ze.bl_count[xt]=0;for(Ie[2*ze.heap[ze.heap_max]+1]=0,it=ze.heap_max+1;it<y;it++)$t<(xt=Ie[2*Ie[2*(Pt=ze.heap[it])+1]+1]+1)&&(xt=$t,Lt++),Ie[2*Pt+1]=xt,Pe<Pt||(ze.bl_count[xt]++,Oe=0,Xt<=Pt&&(Oe=cr[Pt-Xt]),ke=Ie[2*Pt],ze.opt_len+=ke*(xt+Oe),Et&&(ze.static_len+=ke*(at[2*Pt+1]+Oe)));if(Lt!==0){do{for(xt=$t-1;ze.bl_count[xt]===0;)xt--;ze.bl_count[xt]--,ze.bl_count[xt+1]+=2,ze.bl_count[$t]--,Lt-=2}while(0<Lt);for(xt=$t;xt!==0;xt--)for(Pt=ze.bl_count[xt];Pt!==0;)Pe<(Jt=ze.heap[--it])||(Ie[2*Jt+1]!==xt&&(ze.opt_len+=(xt-Ie[2*Jt+1])*Ie[2*Jt],Ie[2*Jt+1]=xt),Pt--)}})(I,H),Y(we,Ee,I.bl_count)}function G(I,H,ce){var fe,ue,we=-1,Ne=H[1],De=0,xe=7,Ee=4;for(Ne===0&&(xe=138,Ee=3),H[2*(ce+1)+1]=65535,fe=0;fe<=ce;fe++)ue=Ne,Ne=H[2*(fe+1)+1],++De<xe&&ue===Ne||(De<Ee?I.bl_tree[2*ue]+=De:ue!==0?(ue!==we&&I.bl_tree[2*ue]++,I.bl_tree[2*j]++):De<=10?I.bl_tree[2*P]++:I.bl_tree[2*C]++,we=ue,Ee=(De=0)===Ne?(xe=138,3):ue===Ne?(xe=6,3):(xe=7,4))}function pe(I,H,ce){var fe,ue,we=-1,Ne=H[1],De=0,xe=7,Ee=4;for(Ne===0&&(xe=138,Ee=3),fe=0;fe<=ce;fe++)if(ue=Ne,Ne=H[2*(fe+1)+1],!(++De<xe&&ue===Ne)){if(De<Ee)for(;se(I,ue,I.bl_tree),--De!=0;);else ue!==0?(ue!==we&&(se(I,ue,I.bl_tree),De--),se(I,j,I.bl_tree),ie(I,De-3,2)):De<=10?(se(I,P,I.bl_tree),ie(I,De-3,3)):(se(I,C,I.bl_tree),ie(I,De-11,7));we=ue,Ee=(De=0)===Ne?(xe=138,3):ue===Ne?(xe=6,3):(xe=7,4)}}c(te);var ee=!1;function M(I,H,ce,fe){ie(I,(u<<1)+(fe?1:0),3),(function(ue,we,Ne,De){ae(ue),U(ue,Ne),U(ue,~Ne),i.arraySet(ue.pending_buf,ue.window,we,Ne,ue.pending),ue.pending+=Ne})(I,H,ce)}n._tr_init=function(I){ee||((function(){var H,ce,fe,ue,we,Ne=new Array(b+1);for(ue=fe=0;ue<h-1;ue++)for(J[ue]=fe,H=0;H<1<<N[ue];H++)D[fe++]=ue;for(D[fe-1]=ue,ue=we=0;ue<16;ue++)for(te[ue]=we,H=0;H<1<<O[ue];H++)W[we++]=ue;for(we>>=7;ue<x;ue++)for(te[ue]=we<<7,H=0;H<1<<O[ue]-7;H++)W[256+we++]=ue;for(ce=0;ce<=b;ce++)Ne[ce]=0;for(H=0;H<=143;)$[2*H+1]=8,H++,Ne[8]++;for(;H<=255;)$[2*H+1]=9,H++,Ne[9]++;for(;H<=279;)$[2*H+1]=7,H++,Ne[7]++;for(;H<=287;)$[2*H+1]=8,H++,Ne[8]++;for(Y($,m+1,Ne),H=0;H<x;H++)_[2*H+1]=5,_[2*H]=he(H,5);z=new K($,N,f+1,m,b),V=new K(_,O,0,x,b),Z=new K(new Array(0),k,0,v,A)})(),ee=!0),I.l_desc=new q(I.dyn_ltree,z),I.d_desc=new q(I.dyn_dtree,V),I.bl_desc=new q(I.bl_tree,Z),I.bi_buf=0,I.bi_valid=0,F(I)},n._tr_stored_block=M,n._tr_flush_block=function(I,H,ce,fe){var ue,we,Ne=0;0<I.level?(I.strm.data_type===2&&(I.strm.data_type=(function(De){var xe,Ee=4093624447;for(xe=0;xe<=31;xe++,Ee>>>=1)if(1&Ee&&De.dyn_ltree[2*xe]!==0)return o;if(De.dyn_ltree[18]!==0||De.dyn_ltree[20]!==0||De.dyn_ltree[26]!==0)return s;for(xe=32;xe<f;xe++)if(De.dyn_ltree[2*xe]!==0)return s;return o})(I)),oe(I,I.l_desc),oe(I,I.d_desc),Ne=(function(De){var xe;for(G(De,De.dyn_ltree,De.l_desc.max_code),G(De,De.dyn_dtree,De.d_desc.max_code),oe(De,De.bl_desc),xe=v-1;3<=xe&&De.bl_tree[2*B[xe]+1]===0;xe--);return De.opt_len+=3*(xe+1)+5+5+4,xe})(I),ue=I.opt_len+3+7>>>3,(we=I.static_len+3+7>>>3)<=ue&&(ue=we)):ue=we=ce+5,ce+4<=ue&&H!==-1?M(I,H,ce,fe):I.strategy===4||we===ue?(ie(I,2+(fe?1:0),3),re(I,$,_)):(ie(I,4+(fe?1:0),3),(function(De,xe,Ee,ze){var We;for(ie(De,xe-257,5),ie(De,Ee-1,5),ie(De,ze-4,4),We=0;We<ze;We++)ie(De,De.bl_tree[2*B[We]+1],3);pe(De,De.dyn_ltree,xe-1),pe(De,De.dyn_dtree,Ee-1)})(I,I.l_desc.max_code+1,I.d_desc.max_code+1,Ne+1),re(I,I.dyn_ltree,I.dyn_dtree)),F(I),fe&&ae(I)},n._tr_tally=function(I,H,ce){return I.pending_buf[I.d_buf+2*I.last_lit]=H>>>8&255,I.pending_buf[I.d_buf+2*I.last_lit+1]=255&H,I.pending_buf[I.l_buf+I.last_lit]=255&ce,I.last_lit++,H===0?I.dyn_ltree[2*ce]++:(I.matches++,H--,I.dyn_ltree[2*(D[ce]+f+1)]++,I.dyn_dtree[2*X(H)]++),I.last_lit===I.lit_bufsize-1},n._tr_align=function(I){ie(I,2,3),se(I,E,$),(function(H){H.bi_valid===16?(U(H,H.bi_buf),H.bi_buf=0,H.bi_valid=0):8<=H.bi_valid&&(H.pending_buf[H.pending++]=255&H.bi_buf,H.bi_buf>>=8,H.bi_valid-=8)})(I)}},{"../utils/common":41}],53:[function(r,a,n){a.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(r,a,n){(function(i){(function(o,s){if(!o.setImmediate){var c,u,h,f,m=1,x={},v=!1,y=o.document,b=Object.getPrototypeOf&&Object.getPrototypeOf(o);b=b&&b.setTimeout?b:o,c={}.toString.call(o.process)==="[object process]"?function(j){Nt.nextTick(function(){A(j)})}:(function(){if(o.postMessage&&!o.importScripts){var j=!0,P=o.onmessage;return o.onmessage=function(){j=!1},o.postMessage("","*"),o.onmessage=P,j}})()?(f="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",E,!1):o.attachEvent("onmessage",E),function(j){o.postMessage(f+j,"*")}):o.MessageChannel?((h=new MessageChannel).port1.onmessage=function(j){A(j.data)},function(j){h.port2.postMessage(j)}):y&&"onreadystatechange"in y.createElement("script")?(u=y.documentElement,function(j){var P=y.createElement("script");P.onreadystatechange=function(){A(j),P.onreadystatechange=null,u.removeChild(P),P=null},u.appendChild(P)}):function(j){setTimeout(A,0,j)},b.setImmediate=function(j){typeof j!="function"&&(j=new Function(""+j));for(var P=new Array(arguments.length-1),C=0;C<P.length;C++)P[C]=arguments[C+1];return x[m]={callback:j,args:P},c(m),m++},b.clearImmediate=S}function S(j){delete x[j]}function A(j){if(v)setTimeout(A,0,j);else{var P=x[j];if(P){v=!0;try{(function(C){var N=C.callback,O=C.args;switch(O.length){case 0:N();break;case 1:N(O[0]);break;case 2:N(O[0],O[1]);break;case 3:N(O[0],O[1],O[2]);break;default:N.apply(s,O)}})(P)}finally{S(j),v=!1}}}}
1156function E(j){j.source===o&&typeof j.data=="string"&&j.data.indexOf(f)===0&&A(+j.data.slice(f.length))}})(typeof self>"u"?i===void 0?this:i:self)}).call(this,typeof Ca<"u"?Ca:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})),Cue=$e(((e,t)=>{var r={"&":"&",'"':""","'":"'","<":"<",">":">"};function a(n){return n&&n.replace?n.replace(/([&"<>'])/g,function(i,o){return r[o]}):n}t.exports=a})),Pue=$e(((e,t)=>{Ts();var r=Cue(),a=bN().Stream,n=" ";function i(f,m){typeof m!="object"&&(m={indent:m});var x=m.stream?new a:null,v="",y=!1,b=m.indent?m.indent===!0?n:m.indent:"",S=!0;function A(N){S?Nt.nextTick(N):N()}function E(N,O){if(O!==void 0&&(v+=O),N&&!y&&(x=x||new a,y=!0),N&&y){var k=v;A(function(){x.emit("data",k)}),v=""}}function j(N,O){u(E,c(N,b,b?1:0),O)}function P(){if(x){var N=v;A(function(){x.emit("data",N),x.emit("end"),x.readable=!1,x.emit("close")})}}function C(N){var O={version:"1.0",encoding:N.encoding||"UTF-8"};N.standalone&&(O.standalone=N.standalone),j({"?xml":{_attr:O}}),v=v.replace("/>","?>")}return A(function(){S=!1}),m.declaration&&C(m.declaration),f&&f.forEach?f.forEach(function(N,O){var k;O+1===f.length&&(k=P),j(N,k)}):j(f,P),x?(x.readable=!0,x):v}function o(){var f={_elem:c(Array.prototype.slice.call(arguments))};return f.push=function(m){if(!this.append)throw new Error("not assigned to a parent!");var x=this,v=this._elem.indent;u(this.append,c(m,v,this._elem.icount+(v?1:0)),function(){x.append(!0)})},f.close=function(m){m!==void 0&&this.push(m),this.end&&this.end()},f}function s(f,m){return new Array(m||0).join(f||"")}function c(f,m,x){x=x||0;var v=s(m,x),y,b=f,S=!1;if(typeof f=="object"&&(y=Object.keys(f)[0],b=f[y],b&&b._elem))return b._elem.name=y,b._elem.icount=x,b._elem.indent=m,b._elem.indents=v,b._elem.interrupt=b,b._elem;var A=[],E=[],j;function P(C){Object.keys(C).forEach(function(N){A.push(h(N,C[N]))})}switch(typeof b){case"object":if(b===null)break;b._attr&&P(b._attr),b._cdata&&E.push(("<![CDATA["+b._cdata).replace(/\]\]>/g,"]]]]><![CDATA[>")+"]]>"),b.forEach&&(j=!1,E.push(""),b.forEach(function(C){typeof C=="object"?Object.keys(C)[0]=="_attr"?P(C._attr):E.push(c(C,m,x+1)):(E.pop(),j=!0,E.push(r(C)))}),j||E.push(""));break;default:E.push(r(b))}return{name:y,interrupt:S,attributes:A,content:E,icount:x,indents:v,indent:m}}function u(f,m,x){if(typeof m!="object")return f(!1,m);var v=m.interrupt?1:m.content.length;function y(){for(;m.content.length;){var S=m.content.shift();if(S!==void 0){if(b(S))return;u(f,S)}}f(!1,(v>1?m.indents:"")+(m.name?"</"+m.name+">":"")+(m.indent&&!x?` 1157`:"")),x&&x()}function b(S){return S.interrupt?(S.interrupt.append=f,S.interrupt.end=y,S.interrupt=!1,f(!0),!0):!1}if(f(!1,m.indents+(m.name?"<"+m.name:"")+(m.attributes.length?" "+m.attributes.join(" "):"")+(v?m.name?">":"":m.name?"/>":"")+(m.indent&&v>1?` 1158`:"")),!v)return f(!1,m.indent?` 1159`:"");b(m)||y()}function h(f,m){return f+'="'+r(m)+'"'}t.exports=i,t.exports.element=t.exports.Element=o})),jue=bN(),Nue=pN(Aue()),xr=pN(Pue()),zf=0,cw=32,Tue=32,kue=(e,t)=>{const r=t.replace(/-/g,"");if(r.length!==Tue)throw new Error(`Error: Cannot extract GUID from font filename: ${t}`);const a=r.replace(/(..)/g,"$1 ").trim().split(" ").map(o=>parseInt(o,16));a.reverse();const n=e.slice(zf,cw).map((o,s)=>o^a[s%a.length]),i=new Uint8Array(zf+n.length+Math.max(0,e.length-cw));return i.set(e.slice(0,zf)),i.set(n,zf),i.set(e.slice(cw),zf+n.length),i},Due=class{format(e,t={stack:[]}){const r=e.prepForXml(t);if(r)return r;throw Error("XMLComponent did not format correctly")}},_ue=class{replace(e,t,r){let a=e;return t.forEach((n,i)=>{a=a.replace(new RegExp(`{${n.fileName}}`,"g"),(r+i).toString())}),a}getMediaData(e,t){return t.Array.filter(r=>e.search(`{${r.fileName}}`)>0)}},Rue=class{replace(e,t){let r=e;for(const a of t)r=r.replace(new RegExp(`{${a.reference}-${a.instance}}`,"g"),a.numId.toString());return r}},Oue=class{constructor(){Ce(this,"formatter",void 0),Ce(this,"imageReplacer",void 0),Ce(this,"numberingReplacer",void 0),this.formatter=new Due,this.imageReplacer=new _ue,this.numberingReplacer=new Rue}compile(e,t,r=[]){const a=new Nue.default,n=this.xmlifyFile(e,t),i=new Map(Object.entries(n));for(const[,o]of i)if(Array.isArray(o))for(const s of o)a.file(s.path,Q1(s.data));else a.file(o.path,Q1(o.data));for(const o of r)a.file(o.path,Q1(o.data));for(const o of e.Media.Array)o.type!=="svg"?a.file(`word/media/${o.fileName}`,o.data):(a.file(`word/media/${o.fileName}`,o.data),a.file(`word/media/${o.fallback.fileName}`,o.fallback.data));for(const[o,{data:s,fontKey:c}]of e.FontTable.fontOptionsWithKey.entries())a.file(`word/fonts/font${o+1}.odttf`,kue(s,c));return a}xmlifyFile(e,t){const r=e.Document.Relationships.RelationshipCount+1,a=(0,xr.default)(this.formatter.format(e.Document.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),n=e.Comments.Relationships.RelationshipCount+1,i=(0,xr.default)(this.formatter.format(e.Comments,{viewWrapper:{View:e.Comments,Relationships:e.Comments.Relationships},file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),o=e.FootNotes.Relationships.RelationshipCount+1,s=(0,xr.default)(this.formatter.format(e.FootNotes.View,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),c=this.imageReplacer.getMediaData(a,e.Media),u=this.imageReplacer.getMediaData(i,e.Media),h=this.imageReplacer.getMediaData(s,e.Media);return Xe(Xe({Relationships:{data:(c.forEach((f,m)=>{e.Document.Relationships.addRelationship(r+m,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${f.fileName}`)}),e.Document.Relationships.addRelationship(e.Document.Relationships.RelationshipCount+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable","fontTable.xml"),(0,xr.default)(this.formatter.format(e.Document.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}})),path:"word/_rels/document.xml.rels"},Document:{data:(()=>{const f=this.imageReplacer.replace(a,c,r);return this.numberingReplacer.replace(f,e.Numbering.ConcreteNumbering)})(),path:"word/document.xml"},Styles:{data:(()=>{const f=(0,xr.default)(this.formatter.format(e.Styles,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}});return this.numberingReplacer.replace(f,e.Numbering.ConcreteNumbering)})(),path:"word/styles.xml"},Properties:{data:(0,xr.default)(this.formatter.format(e.CoreProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/core.xml"},Numbering:{data:(0,xr.default)(this.formatter.format(e.Numbering,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/numbering.xml"},FileRelationships:{data:(0,xr.default)(this.formatter.format(e.FileRelationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"_rels/.rels"},HeaderRelationships:e.Headers.map((f,m)=>
1159{const x=(0,xr.default)(this.formatter.format(f.View,{viewWrapper:f,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(x,e.Media).forEach((v,y)=>{f.Relationships.addRelationship(y,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${v.fileName}`)}),{data:(0,xr.default)(this.formatter.format(f.Relationships,{viewWrapper:f,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:`word/_rels/header${m+1}.xml.rels`}}),FooterRelationships:e.Footers.map((f,m)=>{const x=(0,xr.default)(this.formatter.format(f.View,{viewWrapper:f,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(x,e.Media).forEach((v,y)=>{f.Relationships.addRelationship(y,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${v.fileName}`)}),{data:(0,xr.default)(this.formatter.format(f.Relationships,{viewWrapper:f,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:`word/_rels/footer${m+1}.xml.rels`}}),Headers:e.Headers.map((f,m)=>{const x=(0,xr.default)(this.formatter.format(f.View,{viewWrapper:f,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),v=this.imageReplacer.getMediaData(x,e.Media),y=this.imageReplacer.replace(x,v,0);return{data:this.numberingReplacer.replace(y,e.Numbering.ConcreteNumbering),path:`word/header${m+1}.xml`}}),Footers:e.Footers.map((f,m)=>{const x=(0,xr.default)(this.formatter.format(f.View,{viewWrapper:f,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),v=this.imageReplacer.getMediaData(x,e.Media),y=this.imageReplacer.replace(x,v,0);return{data:this.numberingReplacer.replace(y,e.Numbering.ConcreteNumbering),path:`word/footer${m+1}.xml`}}),ContentTypes:{data:(0,xr.default)(this.formatter.format(e.ContentTypes,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"[Content_Types].xml"},CustomProperties:{data:(0,xr.default)(this.formatter.format(e.CustomProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/custom.xml"},AppProperties:{data:(0,xr.default)(this.formatter.format(e.AppProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/app.xml"},FootNotes:{data:(()=>{const f=this.imageReplacer.replace(s,h,o);return this.numberingReplacer.replace(f,e.Numbering.ConcreteNumbering)})(),path:"word/footnotes.xml"},FootNotesRelationships:{data:(h.forEach((f,m)=>{e.FootNotes.Relationships.addRelationship(o+m,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${f.fileName}`)}),(0,xr.default)(this.formatter.format(e.FootNotes.Relationships,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}})),path:"word/_rels/footnotes.xml.rels"},Endnotes:{data:(0,xr.default)(this.formatter.format(e.Endnotes.View,{viewWrapper:e.Endnotes,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"word/endnotes.xml"},EndnotesRelationships:{data:(0,xr.default)(this.formatter.format(e.Endnotes.Relationships,{viewWrapper:e.Endnotes,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"word/_rels/endnotes.xml.rels"},Settings:{data:(0,xr.default)(this.formatter.format(e.Settings,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/settings.xml"},Comments:{data:(()=>{const f=this.imageReplacer.replace(i,u,n);return this.numberingReplacer.replace(f,e.Numbering.ConcreteNumbering)})(),path:"word/comments.xml"},CommentsRelationships:{data:(u.forEach((f,m)=>{e.Comments.Relationships.addRelationship(n+m,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${f.fileName}`)}),(0,xr.default)(this.formatter.format(e.Comments.Relationships,{viewWrapper:{View:e.Comments,Relationships:e.Comments.Relationships},file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}})),path:"word/_rels/comments.xml.rels"}},e.CommentsExtended?{CommentsExtended:{data:(0,xr.default)(this.formatter.format(e.CommentsExtended,{viewWrapper:{View:e.CommentsExtended,Relationships:e.Comments.Relationships},file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/commentsExtended.xml"}}:{}),{},{FontTable:{data:(0,xr.default)(this.formatter.format(e.FontTable.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/fontTable.xml"},FontTableRelationships:{data:(0,xr.default)(this.formatter.format(e.FontTable.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"word/_rels/fontTable.xml.rels"}})}};function Z3(e,t,r,a,n,i,o){try{var s=e[i](o),c=s.value}catch(u){r(u);return}s.done?t(c):Promise.resolve(c).then(a,n)}function Mue(e){return function(){var t=this,r=arguments;return new Promise(function(a,n){var i=e.apply(t,r);function o(c){Z3(i,a,n,o,s,"next",c)}function s(c){Z3(i,a,n,o,s,"throw",c)}o(void 0)})}}var Iue={WITH_2_BLANKS:" "},J3=e=>e===!0?Iue.WITH_2_BLANKS:e===!1?void 0:e,NN=class su{static pack(t,r,a){var n=this;return Mue(function*(i,o,s,c=[]){return n.compiler.compile(i,J3(s),c
1159).generateAsync({type:o,mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})}).apply(this,arguments)}static toString(t,r,a=[]){return su.pack(t,"string",r,a)}static toBuffer(t,r,a=[]){return su.pack(t,"nodebuffer",r,a)}static toBase64String(t,r,a=[]){return su.pack(t,"base64",r,a)}static toBlob(t,r,a=[]){return su.pack(t,"blob",r,a)}static toArrayBuffer(t,r,a=[]){return su.pack(t,"arraybuffer",r,a)}static toStream(t,r,a=[]){const n=new jue.Stream;return this.compiler.compile(t,J3(r),a).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"}).then(i=>{n.emit("data",i),n.emit("end")}),n}};Ce(NN,"compiler",new Oue);var vx={exports:{}},Bue=vx.exports,Q3;function Lue(){return Q3||(Q3=1,(function(e,t){(function(r,a){a()})(Bue,function(){function r(u,h){return typeof h>"u"?h={autoBom:!1}:typeof h!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),h={autoBom:!h}),h.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(u.type)?new Blob(["\uFEFF",u],{type:u.type}):u}function a(u,h,f){var m=new XMLHttpRequest;m.open("GET",u),m.responseType="blob",m.onload=function(){c(m.response,h,f)},m.onerror=function(){console.error("could not download file")},m.send()}function n(u){var h=new XMLHttpRequest;h.open("HEAD",u,!1);try{h.send()}catch{}return 200<=h.status&&299>=h.status}function i(u){try{u.dispatchEvent(new MouseEvent("click"))}catch{var h=document.createEvent("MouseEvents");
1159h.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),u.dispatchEvent(h)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof gs=="object"&&gs.global===gs?gs:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),c=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(u,h,f){var m=o.URL||o.webkitURL,x=document.createElement("a");h=h||u.name||"download",x.download=h,x.rel="noopener",typeof u=="string"?(x.href=u,x.origin===location.origin?i(x):n(x.href)?a(u,h,f):i(x,x.target="_blank")):(x.href=m.createObjectURL(u),setTimeout(function(){m.revokeObjectURL(x.href)},4e4),setTimeout(function(){i(x)},0))}:"msSaveOrOpenBlob"in navigator?function(u,h,f){if(h=h||u.name||"download",typeof u!="string")navigator.msSaveOrOpenBlob(r(u,f),h);else if(n(u))a(u,h,f);else{var m=document.createElement("a");m.href=u,m.target="_blank",setTimeout(function(){i(m)})}}:function(u,h,f,m){if(m=m||open("","_blank"),m&&(m.document.title=m.document.body.innerText="downloading..."),typeof u=="string")return a(u,h,f);var x=u.type==="application/octet-stream",v=/constructor/i.test(o.HTMLElement)||o.safari,y=/CriOS\/[\d]+/.test(navigator.userAgent);if((y||x&&v||s)&&typeof FileReader<"u"){var b=new FileReader;b.onloadend=function(){var E=b.result;E=y?E:E.replace(/^data:[^;]*;/,"data:attachment/file;"),m?m.location.href=E:location=E,m=null},b.readAsDataURL(u)}else{var S=o.URL||o.webkitURL,A=S.createObjectURL(u);m?m.location=A:location.href=A,m=null,setTimeout(function(){S.revokeObjectURL(A)},4e4)}});o.saveAs=c.saveAs=c,e.exports=c})})(vx)),vx.exports}var zue=Lue();const Fg=1200,Fue=.85,$ue="image/png,image/jpeg,image/webp,image/gif",que=10*1024*1024;async function Vue(e,t=""){if(!e.type.startsWith("image/"))throw new Error(`Arquivo "${e.name}" não é imagem.`);if(e.size>que)throw new Error(`Arquivo "${e.name}" tem ${(e.size/1024/1024).toFixed(1)} MB. Máximo permitido: 10 MB.`);const r=await Uue(e),{dataUrl:a,width:n,height:i}=await Hue(r);return{id:`img-${Date.now()}-${Math.random().toString(36).slice(2,7)}`,dataUrl:a,legenda:t,width:n,height:i,fileName:e.name}}function Uue(e){return new Promise((t,r)=>{const a=new FileReader;a.onload=()=>t(String(a.result)),a.onerror=()=>r(a.error??new Error("Falha ao ler arquivo")),a.readAsDataURL(e)})}function Hue(e){return new Promise((t,r)=>{const a=new Image;a.onload=()=>{const{width:n,height:i}=a;let o=n,s=i;if(n>Fg||i>Fg){const f=n>i?Fg/n:Fg/i;o=Math.round(n*f),s=Math.round(i*f)}const c=document.createElement("canvas");c.width=o,c.height=s;const u=c.getContext("2d");if(!u){r(new Error("Canvas 2D não disponÃvel"));return}u.fillStyle="#ffffff",u.fillRect(0,0,o,s),u.drawImage(a,0,0,o,s);const h=c.toDataURL("image/jpeg",Fue);t({dataUrl:h,width:o,height:s})},a.onerror=()=>r(new Error("Falha ao decodificar imagem")),a.src=e})}function Gue(e){const t=e.split(",")[1]??"",r=atob(t),a=new Uint8Array(r.length);for(let n=0;n<r.length;n++)a[n]=r.charCodeAt(n);return a}const $g="2D4A2D",Eq="1E1E1E";function Yc(e,t={}){const r=[],a=t.size??22,n=t.color??Eq,i=/(\[([^\]]+)\]\(([^)]+)\))|(\*\*\*([^*]+)\*\*\*)|(\*\*([^*]+)\*\*)|(\*([^*\n]+)\*)|(_([^_\n]+)_)|(https?:\/\/[^\s)]+)/g;let o=0,s;const c=(h,f={})=>{h&&r.push(new bt({text:h,bold:t.bold||f.bold,italics:t.italics||f.italics,size:a,color:n,font:"Calibri"}))},u=(h,f)=>{r.push(new iq({link:f,children:[new bt({text:h,size:a,color:"0563C1",underline:{},font:"Calibri"})]}))};for(;(s=i.exec(e))!==null;)s.index>o&&c(e.slice(o,s.index)),s[1]?u(s[2],s[3]):s[4]?c(s[5],{bold:!0,italics:!0}):s[6]?c(s[7],{bold:!0}):s[8]?c(s[9],{italics:!0}):s[10]?c(s[11],{italics:!0}):s[12]&&u(s[12],s[12]),o=s.index+s[0].length;return o<e.length&&c(e.slice(o)),r.length===0&&c(""),r}function Kue(e){const t=e.replace(/\r\n/g,` 1160`).split(` 1161`),r=[];let a=[];const n=()=>
1161{if(a.length===0)return;const i=a.join(" ").trim();a=[],i&&r.push(new pt({spacing:{after:160,line:320},children:Yc(i)}))};for(const i of t){const o=i.trim();if(!o){n();continue}if(o.startsWith("#### ")){n(),r.push(new pt({spacing:{before:160,after:80},children:Yc(o.slice(5),{bold:!0,italics:!0,size:22,color:$g})}));continue}if(o.startsWith("### ")){n(),r.push(new pt({spacing:{before:200,after:100},children:Yc(o.slice(4),{bold:!0,size:24,color:$g})}));continue}if(o.startsWith("## ")){n(),r.push(new pt({spacing:{before:280,after:140},children:Yc(o.slice(3),{bold:!0,size:28,color:$g})}));continue}if(o.startsWith("# ")){n(),r.push(new pt({spacing:{before:320,after:160},children:Yc(o.slice(2),{bold:!0,size:32,color:$g})}));continue}const s=o.match(/^(\s*)([-*]|\d+\.)\s+(.+)$/);if(s){n();const[,c,u,h]=s,f=/\d+\./.test(u),m=Math.min(2,Math.floor(c.length/2)),x=f?`${u} `:"⢠",v={spacing:{after:80},indent:{left:400+m*300}};r.push(new pt({...v,children:[new bt({text:x,size:22,color:Eq,font:"Calibri"}),...Yc(h)]}));continue}a.push(o)}return n(),r}const fo="2D4A2D",eR="7A8C5E",Dl="1E1E1E",Mn="8B7355",Wue={conceitual:"Parte I â Conceitual",estrategica:"Parte II â Estratégica",operacional:"Parte III â Operacional"},Xue={aprovado:"Aprovado",revisando:"Em Revisão",gerado:"Gerado pela IA",pendente:"Pendente"};function Yue(e){return e.split(/\n+/).map(t=>t.trim()).filter(t=>t.length>0).map(t=>new pt({spacing:{after:160,line:320},children:[new bt({text:t,size:22,color:Dl,font:"Calibri"})]}))}function Zue(e,t,r){const a={style:Fl.SINGLE,size:4,color:"C9B99A"},n={top:a,bottom:a,left:a,right:a},i=2+r.length,o=8215,s=1800,c=Math.floor((o-s)/(i-1)),u=[s];for(let v=0;v<i-1;v++)u.push(c);const h=(v,y={})=>new pt({spacing:{before:40,after:40},children:[new bt({text:v,bold:y.bold,size:18,color:y.color??Dl,font:"Calibri"})]}),f=(v,y={width:c})=>new $p({borders:n,width:{size:y.width,type:$u.DXA},shading:y.fill?{fill:y.fill,type:F$.CLEAR}:void 0,margins:{top:80,bottom:80,left:100,right:100},children:[h(v,{bold:y.bold,color:y.color})]}),m=new Vx({tableHeader:!0,children:[f("Dimensão",{bold:!0,fill:"EDE9DF",width:s}),f(t,{bold:!0,fill:fo,color:"FFFFFF",width:c}),...r.map(v=>f(`${v.municipio}/${v.uf}`,{bold:!0,fill:"EDE9DF",width:c}))]}),x=e.map((v,y)=>{const b=y%2===1?"FAFAF8":void 0;return new Vx({children:[f(v.dimensao,{bold:!0,fill:b,width:s}),f(v.sede,{fill:"F2EEE1",width:c}),...r.map((S,A)=>f(v.porCaso[A]??"â",{fill:b,width:c}))]})});return new mq({width:{size:o,type:$u.DXA},columnWidths:u,rows:[m,...x]})}function Jue(e,t,r){const a=[];a.push(new pt({spacing:{before:320,after:160},children:[new bt({text:`${t}.${r} ${e.municipio} (${e.uf}) â ${e.manchete}`,bold:!0,size:24,color:fo,font:"Calibri"})]})),a.push(new pt({spacing:{after:160,line:320},children:[new bt({text:e.introducao,size:22,color:Dl,font:"Calibri"})]}));const n=(i,o)=>new pt({spacing:{after:160,line:320},children:[new bt({text:`${i}: `,bold:!0,size:22,color:Dl,font:"Calibri"}),new bt({text:o,size:22,color:Dl,font:"Calibri"})]});return a.push(n("Repercussão",e.repercussao)),e.destaque&&a.push(n("Destaque",e.destaque)),e.gestaoCrise&&a.push(n("Gestão de Crise",e.gestaoCrise)),a.push(n("Observações",e.observacoes)),a}function Que(e,t){let a=e.width,n=e.height;if(a>545){const s=545/a;a=545,n=Math.round(n*s)}const i=Gue(e.dataUrl),o=i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength);return[new pt({alignment:tr.CENTER,spacing:{before:240,after:80},children:[new aq({data:o,type:"jpg",transformation:{width:a,height:n}})]}),new pt({alignment:tr.CENTER,spacing:{after:200},children:[new bt({text:`Figura ${t}${e.legenda?` â ${e.legenda}`:""}`,italics:!0,size:18,color:Mn,font:"Calibri"})]})]}function Zc(e,t){return new pt({spacing:{after:60},children:[new bt({text:`${e}: `,bold:!0,size:20,color:Mn,font:"Calibri"}),new bt({text:t,size:20,color:Dl,font:"Calibri"})]})}async function ede({plano:e,conteudoOverride:t={},statusOverride:r={}}){const a=[new pt({alignment:tr.CENTER,spacing:{before:2400,after:240},children:[new bt({text:"PLANO DE COMUNICAÃÃO E",bold:!0,size:36,color:fo,font:"Calibri"})]}),new pt({alignment:tr.CENTER,spacing:{after:480},children:[new bt({text:"ENGAJAMENTO DE STAKEHOLDERS",bold:!0,size:36,color:fo,font:"Calibri"})]}),new pt({alignment:tr.CENTER,spacing:{after:200},children:[new bt({text:`${e.municipioNome} / ${e.estado}`,bold:!0,size:32,color:Dl,font:"Calibri"})]}),new pt({alignment:tr.CENTER,spacing:{after:800},children:[new bt({text:e.tipoPPP,italics:!0,size:24,color:eR,font:"Calibri"})]}),new pt({alignment:tr.CENTER,spacing:{after:80}
1161,children:[new bt({text:`Versão ${e.versao}`,size:20,color:Mn,font:"Calibri"})]}),new pt({alignment:tr.CENTER,spacing:{after:80},children:[new bt({text:e.dataElaboracao,size:20,color:Mn,font:"Calibri"})]}),new pt({alignment:tr.CENTER,spacing:{after:1200},children:[new bt({text:`Banco: ${e.banco}`,size:20,color:Mn,font:"Calibri"})]}),new pt({alignment:tr.CENTER,spacing:{after:80},children:[new bt({text:"Elaborado por",size:20,color:Mn,font:"Calibri"})]}),new pt({alignment:tr.CENTER,pageBreakBefore:!1,children:[new bt({text:"PRINT COMUNICAÃÃO",bold:!0,size:24,color:fo,font:"Calibri"})]})],n=[new pt({pageBreakBefore:!0,heading:gp.HEADING_1,spacing:{after:240},children:[new bt({text:"Ficha Técnica do Projeto",bold:!0,size:28,color:fo,font:"Calibri"})]}),Zc("MunicÃpio",`${e.municipioNome} / ${e.estado}`),Zc("Tipo de PPP",e.tipoPPP),Zc("Banco estruturador",e.banco),Zc("Versão",e.versao),Zc("Data de elaboração",e.dataElaboracao),Zc("Referência contratual",e.referenciaContratual),new pt({spacing:{before:240}})],i=["conceitual","estrategica","operacional"],o=[];i.forEach(f=>{const m=e.secoes.filter(x=>x.parte===f);m.length!==0&&(o.push(new pt({pageBreakBefore:!0,heading:gp.HEADING_1,spacing:{after:360},children:[new bt({text:Wue[f],bold:!0,size:32,color:fo,font:"Calibri"})]})),m.forEach((x,v)=>{const y=r[x.id]??x.statusIA,b=t[x.id]??x.conteudo;o.push(new pt({heading:gp.HEADING_2,spacing:{before:360,after:80},children:[new bt({text:`${v+1}. ${x.titulo}`,bold:!0,size:26,color:fo,font:"Calibri"})]})),o.push(new pt({spacing:{after:160},children:[new bt({text:x.subtitulo,italics:!0,size:20,color:Mn,font:"Calibri"}),new bt({text:` [${Xue[y]}]`,size:18,color:eR,font:"Calibri"})]})),x.tipo==="benchmarking"&&x.benchmark&&x.benchmark.length>0?(x.benchmarkTabela&&x.benchmarkTabela.length>0&&(o.push(new pt({spacing:{before:200,after:120},children:[new bt({text:`Tabela comparativa â ${x.benchmarkSedeLabel??`${e.municipioNome}/${e.estado} (sede)`} à municÃpios analisados`,bold:!0,size:20,color:fo,font:"Calibri"})]})),o.push(Zue(x.benchmarkTabela,x.benchmarkSedeLabel??`${e.municipioNome}/${e.estado} â sede`,x.benchmark)),o.push(new pt({spacing:{after:200}}))),x.benchmark.forEach((A,E)=>{o.push(...Jue(A,v+1,E+1))})):/(^|\n)#{1,3}\s|\*\*|\*[^*]+\*|^\s*[-*]\s|^\s*\d+\.\s/m.test(b)?o.push(...Kue(b)):o.push(...Yue(b)),(x.imagens??[]).forEach((A,E)=>{o.push(...Que(A,E+1))})}))});const s=new Sq({creator:"PRINT Comunicação",title:`Plano de Comunicação â ${e.municipioNome}`,description:`Plano de Comunicação e Engajamento de Stakeholders â ${e.municipioNome}/${e.estado}`,styles:{default:{document:{run:{font:"Calibri",size:22}}}},sections:[{properties:{page:{margin:{top:1134,right:1134,bottom:1134,left:1134}}},headers:{default:new Sue({children:[new pt({alignment:tr.RIGHT,children:[new bt({text:`${e.municipioNome}/${e.estado} â Plano de Comunicação`,size:16,color:Mn,font:"Calibri"})]})]})},footers:{default:new Eue({children:[new pt({alignment:tr.CENTER,children:[new bt({text:"PRINT Comunicação · ",size:16,color:Mn,font:"Calibri"}),new bt({children:[cu.CURRENT],size:16,color:Mn,font:"Calibri"}),new bt({text:" / ",size:16,color:Mn,font:"Calibri"}),new bt({children:[cu.TOTAL_PAGES],size:16,color:Mn,font:"Calibri"})]})]})},children:[...a,...n,...o]}]}),c=await NN.toBlob(s),u=e.municipioId.toLowerCase().replace(/[^a-z0-9]+/g,"-"),h=new Date().toISOString().slice(0,10);zue.saveAs(c,`Plano-Comunicacao_${u}_${h}.docx`)}function tde({imagens:e,onChange:t,readOnly:r}){const a=L.useRef(null),[n,i]=L.useState(!1),o=async u=>{if(!(!u||u.length===0)){i(!0);try{const h=[];for(let f=0;f<u.length;f++){const m=u[f];try{const x=await Vue(m);h.push(x)}catch(x){const v=x instanceof Error?x.message:"Erro desconhecido";je.error(v)}}h.length>0&&(t([...e,...h]),je.success(`${h.length} imagem(ns) adicionada(s).`))}finally{i(!1),a.current&&(a.current.value="")}}},s=(u,h)=>{t(e.map(f=>f.id===u?{...f,legenda:h}:f))},c=u=>{t(e.filter(h=>h.id!==u))};return p.jsxs("div",{"data-loc":"client/src/components/ImagensGaleria.tsx:55",className:"space-y-2",children:[e.length>0&&p.jsx("div",{"data-loc":"client/src/components/ImagensGaleria.tsx:57",className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:e.map(u=>p.jsxs("div",{"data-loc":"client/src/components/ImagensGaleria.tsx:59",className:"rounded-lg overflow-hidden flex flex-col",style:{border:"1px solid #C9B99A",backgroundColor:"#fff"},children:[p.jsx("div",{"data-loc":"client/src/components/ImagensGaleria.tsx:64",className:"bg-[#FAFAF8] flex items-center justify-center",style:{aspectRatio:"4 / 3"},children:p.jsx("img",{"data-loc":"client/src/components/ImagensGaleria.tsx:65",src:u.dataUrl,alt:u.legenda||u.fileName,className:"w-full h-full object-contain"})}),p.jsxs("div",{"data-loc":"client/src/components/ImagensGaleria.tsx:71",className:"p-2 space-y-1.5",children:[r?p.jsx("div",{"data-loc":"client/src/components/ImagensGaleria.tsx:73",className:"text-[11px] text-[#1E1E1E]",style:{fontFamily:"Nunito, sans-serif"},children:u.legenda||p.jsx("span",{"data-loc":"client/src/components/ImagensGaleria.tsx:74",className:"italic text-[#8B7355]",children:"Sem legenda"})}):p.jsx("input",{"data-loc":"client/src/components/ImagensGaleria.tsx:77",type:"text",value:u.legenda,onChange:h=>s(u.id,h.target.value),placeholder:"Legenda da imagem (opcional, aparece no Word)",className:"w-full text-[11px] px-2 py-1 rounded outline-none",style:{border:"1px solid #EDE9DF",color:"#1E1E1E",fontFamily:"Nunito, sans-serif"}}),p.jsxs("div",{"data-loc":"client/src/components/ImagensGaleria.tsx:86",className:"flex items-center justify-between",children:[p.jsxs("div",{"data-loc":"client/src/components/ImagensGaleria.tsx:87",className:"text-[9px] truncate",style:{color:"#8B7355"},children:[u.fileName," · ",u.width,"Ã",u.height]}),!r&&p.jsxs("button",{"data-loc":"client/src/components/ImagensGaleria.tsx:91",onClick:()=>c(u.id),className:"flex items-center gap-1 text-[10px] font-bold px-1.5 py-0.5 rounded hover:bg-red-50",style:{color:"#c0392b"},title:"Remover imagem",children:[p.jsx(ei,{"data-loc":"client/src/components/ImagensGaleria.tsx:97",size:10})," Remover"]})]})]})]},u.id))}),!r&&p.jsxs("div",{"data-loc":"client/src/components/ImagensGaleria.tsx:108",children:[p.jsx("input",{"data-loc":"client/src/components/ImagensGaleria.tsx:109",ref:a,type:"file",multiple:!0,accept:$ue,onChange:u=>o(u.target.files),className:"hidden"}),p.jsx("button",{"data-loc":"client/src/components/ImagensGaleria.tsx:117",onClick:()=>a.current?.click(),disabled:n,className:"flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs transition-colors disabled:opacity-50",style:{border:"1px dashed #2D4A2D60",color:"#2D4A2D",backgroundColor:"#2D4A2D05",fontFamily:"Nunito, sans-serif",fontWeight:700},children:n?p.jsxs(p.Fragment,{children:[p.jsx(Wt,{"data-loc":"client/src/components/ImagensGaleria.tsx:130",size:12,className:"animate-spin"})," Processando..."]}):p.jsxs(p.Fragment,{children:[p.jsx(Qee,{"data-loc":"client/src/components/ImagensGaleria.tsx:132",size:12})," Adicionar imagem",e.length===0?"":" (mais)"]})}),p.jsx("div",{"data-loc":"client/src/components/ImagensGaleria.tsx:135",className:"mt-1 text-[9px] italic",style:{color:"#8B7355"},children:"JPG/PNG/WebP até 10 MB · redimensionada para 1200px no maior lado · embutida no Word"})]})]})}function rde(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const ade=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,nde=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ide={};function tR(e,t){return(ide.jsx?nde:ade).test(e)}const ode=/[ \t\n\f\r]/g;function sde(e){return typeof e=="object"?e.type==="text"?rR(e.value):!1:rR(e)}function rR(e){return e.replace(ode,"")===""}class Uh{constructor(t,r,a){this.normal=r,this.property=t,a&&(this.space=a)}}Uh.prototype.normal={};Uh.prototype.property={};Uh.prototype.space=void 0;function Aq(e,t){const r={},a={};for(const n of e)Object.assign(r,n.property),Object.assign(a,n.normal);return new Uh(r,a,t)}function $C(e){return e.toLowerCase()}class Ka{constructor(t,r){this.attribute=r,this.property=t}}Ka.prototype.attribute="";Ka.prototype.booleanish=!1;Ka.prototype.boolean=!1;Ka.prototype.commaOrSpaceSeparated=!1;Ka.prototype.commaSeparated=!1;Ka.prototype.defined=!1;Ka.prototype.mustUseProperty=!1;
vendor: 4,791 bytes, line 1161
1161Ka.prototype.number=!1;Ka.prototype.overloadedBoolean=!1;Ka.prototype.property="";Ka.prototype.spaceSeparated=!1;Ka.prototype.space=void 0;let lde=0;const Ct=Jl(),Br=Jl(),qC=Jl(),Ve=Jl(),ur=Jl(),Au=Jl(),an=Jl();function Jl(){return 2**++lde}const VC=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ct,booleanish:Br,commaOrSpaceSeparated:an,commaSeparated:Au,number:Ve,overloadedBoolean:qC,spaceSeparated:ur},Symbol.toStringTag,{value:"Module"})),uw=Object.keys(VC);class TN extends Ka{constructor(t,r,a,n){let i=-1;if(super(t,r),aR(this,"space",n),typeof a=="number")for(;++i<uw.length;){const o=uw[i];aR(this,uw[i],(a&VC[o])===VC[o])}}}TN.prototype.defined=!0;function aR(e,t,r){r&&(e[t]=r)}function kd(e){const t={},r={};for(const[a,n]of Object.entries(e.properties)){const i=new TN(a,e.transform(e.attributes||{},a),n,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(i.mustUseProperty=!0),t[a]=i,r[$C(a)]=a,r[$C(i.attribute)]=a}return new Uh(t,r,e.space)}const Cq=kd({properties:{ariaActiveDescendant:null,ariaAtomic:Br,ariaAutoComplete:null,ariaBusy:Br,ariaChecked:Br,ariaColCount:Ve,ariaColIndex:Ve,ariaColSpan:Ve,ariaControls:ur,ariaCurrent:null,ariaDescribedBy:ur,ariaDetails:null,ariaDisabled:Br,ariaDropEffect:ur,ariaErrorMessage:null,ariaExpanded:Br,ariaFlowTo:ur,ariaGrabbed:Br,ariaHasPopup:null,ariaHidden:Br,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ur,ariaLevel:Ve,ariaLive:null,ariaModal:Br,ariaMultiLine:Br,ariaMultiSelectable:Br,ariaOrientation:null,ariaOwns:ur,ariaPlaceholder:null,ariaPosInSet:Ve,ariaPressed:Br,ariaReadOnly:Br,ariaRelevant:null,ariaRequired:Br,ariaRoleDescription:ur,ariaRowCount:Ve,ariaRowIndex:Ve,ariaRowSpan:Ve,ariaSelected:Br,ariaSetSize:Ve,ariaSort:null,ariaValueMax:Ve,ariaValueMin:Ve,ariaValueNow:Ve,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Pq(e,t){return t in e?e[t]:t}function jq(e,t){return Pq(e,t.toLowerCase())}const cde=kd({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Au,acceptCharset:ur,accessKey:ur,action:null,allow:null,allowFullScreen:Ct,allowPaymentRequest:Ct,allowUserMedia:Ct,alt:null,as:null,async:Ct,autoCapitalize:null,autoComplete:ur,autoFocus:Ct,autoPlay:Ct,blocking:ur,capture:null,charSet:null,checked:Ct,cite:null,className:ur,cols:Ve,colSpan:null,content:null,contentEditable:Br,controls:Ct,controlsList:ur,coords:Ve|Au,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ct,defer:Ct,dir:null,dirName:null,disabled:Ct,download:qC,draggable:Br,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ct,formTarget:null,headers:ur,height:Ve,hidden:qC,high:Ve,href:null,hrefLang:null,htmlFor:ur,httpEquiv:ur,id:null,imageSizes:null,imageSrcSet:null,inert:Ct,inputMode:null,integrity:null,is:null,isMap:Ct,itemId:null,itemProp:ur,itemRef:ur,itemScope:Ct,itemType:ur,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ct,low:Ve,manifest:null,max:null,maxLength:Ve,media:null,method:null,min:null,minLength:Ve,multiple:Ct,muted:Ct,name:null,nonce:null,noModule:Ct,noValidate:Ct,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ct,optimum:Ve,pattern:null,ping:ur,placeholder:null,playsInl
1161ine:Ct,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ct,referrerPolicy:null,rel:ur,required:Ct,reversed:Ct,rows:Ve,rowSpan:Ve,sandbox:ur,scope:null,scoped:Ct,seamless:Ct,selected:Ct,shadowRootClonable:Ct,shadowRootDelegatesFocus:Ct,shadowRootMode:null,shape:null,size:Ve,sizes:null,slot:null,span:Ve,spellCheck:Br,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ve,step:null,style:null,tabIndex:Ve,target:null,title:null,translate:null,type:null,typeMustMatch:Ct,useMap:null,value:Br,width:Ve,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ur,axis:null,background:null,bgColor:null,border:Ve,borderColor:null,bottomMargin:Ve,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ct,declare:Ct,event:null,face:null,frame:null,frameBorder:null,hSpace:Ve,leftMargin:Ve,link:null,longDesc:null,lowSrc:null,marginHeight:Ve,marginWidth:Ve,noResize:Ct,noHref:Ct,noShade:Ct,noWrap:Ct,object:null,profile:null,prompt:null,rev:null,rightMargin:Ve,rules:null,scheme:null,scrolling:Br,standby:null,summary:null,text:null,topMargin:Ve,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ve,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ct,disableRemotePlayback:Ct,prefix:null,property:null,results:Ve,security:null,unselectable:null},space:"html",transform:jq}),ude=kd({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
1161-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:an,accentHeight:Ve,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ve,amplitude:Ve,arabicForm:null,ascent:Ve,attributeName:null,attributeType:null,azimuth:Ve,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ve,by:null,calcMode:null,capHeight:Ve,className:ur,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Ve,diffuseConstant:Ve,direction:null,display:null,dur:null,divisor:Ve,dominantBaseline:null,download:Ct,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ve,enableBackground:null,end:null,event:null,exponent:Ve,externalResourcesRequired:null,fill:null,fillOpacity:Ve,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Au,g2:Au,glyphName:Au,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ve,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ve,horizOriginX:Ve,horizOriginY:Ve,id:null,ideographic:Ve,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ve,k:Ve,k1:Ve,k2:Ve,k3:Ve,k4:Ve,kernelMatrix:an,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ve,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Ve,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
vendor: 5,750 bytes, lines 1161-1162
1161Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Ve,overlineThickness:Ve,paintOrder:null,panose1:null,path:null,pathLength:Ve,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ur,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ve,pointsAtY:Ve,pointsAtZ:Ve,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:an,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:an,rev:an,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:an,requiredFeatures:an,requiredFonts:an,requiredFormats:an,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Ve,specularExponent:Ve,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ve,strikethroughThickness:Ve,string:null,stroke:null,strokeDashArray:an,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ve,strokeOpacity:Ve,strokeWidth:null,style:null,surfaceScale:Ve,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:an,tabIndex:Ve,tableValues:null,target:null,targetX:Ve,targetY:Ve,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:an,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ve,underlineThickness:Ve,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ve,values:null,vAlphabetic:Ve,vMathematical:Ve,vectorEffect:null,vHanging:Ve,vIdeographic:Ve,version:null,vertAdvY:Ve,vertOriginX:Ve,vertOriginY:Ve,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ve,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Pq}),Nq=kd({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Tq=kd({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:jq}),kq=kd({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),dde={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},fde=/[A-Z]/g,nR=/-[a-z]/g,pde=/^data[-\w.:]+$/i;function hde(e,t){const r=$C(t);let a=t,n=Ka;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&pde.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(nR,gde);a="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!nR.test(i)){let o=i.replace(fde,mde);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}n=TN}return new n(a,t)}function mde(e){return"-"+e.toLowerCase()}function gde(e){return e.charAt(1).toUpperCase()}const xde=Aq([Cq,cde,Nq,Tq,kq],"html"),kN=Aq([Cq,ude,Nq,Tq,kq],"svg");function vde(e){return e.join(" ").trim()}var Jc={},dw,iR;function yde(){if(iR)return dw;iR=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,n=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,s=/^\s+|\s+$/g,c=` 1162`,u="/",h="*",f="",m="comment",x="declaration";dw=function(y,b){if(typeof y!="string")throw new TypeError("First argument must be a string");if(!y)return[];b=b||{};var S=1,A=1;function E(W){var D=W.match(t);D&&(S+=D.length);var J=W.lastIndexOf(c);A=~J?W.length-J:A+W.length}function j(){var W={line:S,column:A};return function(D){return D.position=new P(W),O(),D}}function P(W){this.start=W,this.end={line:S,column:A},this.source=b.source}P.prototype.content=y;function C(W){var D=new Error(b.source+":"+S+":"+A+": "+W);if(D.reason=W,D.filename=b.source,D.line=S,D.column=A,D.source=y,!b.silent)throw D}function N(W){var D=W.exec(y);if(D){var J=D[0];return E(J),y=y.slice(J.length),D}}function O(){N(r)}function k(W){var D;for(W=W||[];D=B();)D!==!1&&W.push(D);return W}function B(){var W=j();if(!(u!=y.charAt(0)||h!=y.charAt(1))){for(var D=2;f!=y.charAt(D)&&(h!=y.charAt(D)||u!=y.charAt(D+1));)++D;if(D+=2,f===y.charAt(D-1))return C("End of comment missing");var J=y.slice(2,D-2);return A+=2,E(J),y=y.slice(D),A+=2,W({type:m,comment:J})}}function $(){var W=j(),D=N(a);if(D){if(B(),!N(n))return C("property missing ':'");var J=N(i),z=W({type:x,property:v(D[0].replace(e,f)),value:J?v(J[0].replace(e,f)):f});return N(o),z}}function _(){var W=[];k(W);for(var D;D=$();)D!==!1&&(W.push(D),k(W));return W}return O(),_()};function v(y){return y?y.replace(s,f):f}return dw}var oR;function bde(){if(oR)return Jc;oR=1;var e=Jc&&Jc.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Jc,"__esModule",{value:!0}),Jc.default=r;const t=e(yde());function r(a,n){let i=null;if(!a||typeof a!="string")return i;const o=(0,t.default)(a),s=typeof n=="function";return o.forEach(c=>{if(c.type!=="declaration")return;const{property:u,value:h}=c;s?n(u,h,c):h&&(i=i||{},i[u]=h)}),i}return Jc}var Ff={},sR;function wde(){if(sR)return Ff;
vendor: 3,369 bytes, line 1162
1162sR=1,Object.defineProperty(Ff,"__esModule",{value:!0}),Ff.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,n=/^-(ms)-/,i=function(u){return!u||r.test(u)||e.test(u)},o=function(u,h){return h.toUpperCase()},s=function(u,h){return"".concat(h,"-")},c=function(u,h){return h===void 0&&(h={}),i(u)?u:(u=u.toLowerCase(),h.reactCompat?u=u.replace(n,s):u=u.replace(a,s),u.replace(t,o))};return Ff.camelCase=c,Ff}var $f,lR;function Sde(){if(lR)return $f;lR=1;var e=$f&&$f.__importDefault||function(n){return n&&n.__esModule?n:{default:n}},t=e(bde()),r=wde();function a(n,i){var o={};return!n||typeof n!="string"||(0,t.default)(n,function(s,c){s&&c&&(o[(0,r.camelCase)(s,i)]=c)}),o}return a.default=a,$f=a,$f}var Ede=Sde();const Ade=qt(Ede),Dq=_q("end"),DN=_q("start");function _q(e){return t;function t(r){const a=r&&r.position&&r.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function Cde(e){const t=DN(e),r=Dq(e);if(t&&r)return{start:t,end:r}}function xp(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?cR(e.position):"start"in e||"end"in e?cR(e):"line"in e||"column"in e?UC(e):""}function UC(e){return uR(e&&e.line)+":"+uR(e&&e.column)}function cR(e){return UC(e&&e.start)+"-"+UC(e&&e.end)}function uR(e){return e&&typeof e=="number"?e:1}class Ea extends Error{constructor(t,r,a){super(),typeof r=="string"&&(a=r,r=void 0);let n="",i={},o=!1;if(r&&("line"in r&&"column"in r?i={place:r}:"start"in r&&"end"in r?i={place:r}:"type"in r?i={ancestors:[r],place:r.position}:i={...r}),typeof t=="string"?n=t:!i.cause&&t&&(o=!0,n=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof a=="string"){const c=a.indexOf(":");c===-1?i.ruleId=a:(i.source=a.slice(0,c),i.ruleId=a.slice(c+1))}if(!i.place&&i.ancestors&&i.ancestors){const c=i.ancestors[i.ancestors.length-1];c&&(i.place=c.position)}const s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=n,this.line=s?s.line:void 0,this.name=xp(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Ea.prototype.file="";Ea.prototype.name="";Ea.prototype.reason="";Ea.prototype.message="";Ea.prototype.stack="";Ea.prototype.column=void 0;Ea.prototype.line=void 0;Ea.prototype.ancestors=void 0;Ea.prototype.cause=void 0;Ea.prototype.fatal=void 0;Ea.prototype.place=void 0;Ea.prototype.ruleId=void 0;Ea.prototype.source=void 0;const _N={}.hasOwnProperty,Pde=new Map,jde=/[A-Z]/g,Nde=new Set(["table","tbody","thead","tfoot","tr"]),Tde=new Set(["td","th"]),Rq="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function kde(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let a;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=Lde(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 10,587 bytes, line 1162
1162if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=Bde(r,t.jsx,t.jsxs)}const n={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?kN:xde,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=Oq(n,e,void 0);return i&&typeof i!="string"?i:n.create(e,n.Fragment,{children:i||void 0},void 0)}function Oq(e,t,r){if(t.type==="element")return Dde(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return _de(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Ode(e,t,r);if(t.type==="mdxjsEsm")return Rde(e,t);if(t.type==="root")return Mde(e,t,r);if(t.type==="text")return Ide(e,t)}function Dde(e,t,r){const a=e.schema;let n=a;t.tagName.toLowerCase()==="svg"&&a.space==="html"&&(n=kN,e.schema=n),e.ancestors.push(t);const i=Iq(e,t.tagName,!1),o=zde(e,t);let s=ON(e,t);return Nde.has(t.tagName)&&(s=s.filter(function(c){return typeof c=="string"?!sde(c):!0})),Mq(e,o,i,t),RN(o,s),e.ancestors.pop(),e.schema=a,e.create(t,i,o,r)}function _de(e,t){if(t.data&&t.data.estree&&e.evaluater){const a=t.data.estree.body[0];return a.type,e.evaluater.evaluateExpression(a.expression)}qp(e,t.position)}function Rde(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);qp(e,t.position)}function Ode(e,t,r){const a=e.schema;let n=a;t.name==="svg"&&a.space==="html"&&(n=kN,e.schema=n),e.ancestors.push(t);const i=t.name===null?e.Fragment:Iq(e,t.name,!0),o=Fde(e,t),s=ON(e,t);return Mq(e,o,i,t),RN(o,s),e.ancestors.pop(),e.schema=a,e.create(t,i,o,r)}function Mde(e,t,r){const a={};return RN(a,ON(e,t)),e.create(t,e.Fragment,a,r)}function Ide(e,t){return t.value}function Mq(e,t,r,a){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=a)}function RN(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function Bde(e,t,r){return a;function a(n,i,o,s){const u=Array.isArray(o.children)?r:t;return s?u(i,o,s):u(i,o)}}function Lde(e,t){return r;function r(a,n,i,o){const s=Array.isArray(i.children),c=DN(a);return t(n,i,o,s,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function zde(e,t){const r={};let a,n;for(n in t.properties)if(n!=="children"&&_N.call(t.properties,n)){const i=$de(e,n,t.properties[n]);if(i){const[o,s]=i;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&Tde.has(t.tagName)?a=s:r[o]=s}}if(a){const i=r.style||(r.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return r}function Fde(e,t){const r={};for(const a of t.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){const i=a.data.estree.body[0];i.type;const o=i.expression;o.type;const s=o.properties[0];s.type,Object.assign(r,e.evaluater.evaluateExpression(s.argument))}else qp(e,t.position);else{const n=a.name;let i;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&e.evaluater){const s=a.value.data.estree.body[0];s.type,i=e.evaluater.evaluateExpression(s.expression)}else qp(e,t.position);else i=a.value===null?!0:a.value;r[n]=i}return r}function ON(e,t){const r=[];let a=-1;const n=e.passKeys?new Map:Pde;for(;++a<t.children.length;){const i=t.children[a];let o;if(e.passKeys){const c=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(c){const u=n.get(c)||0;o=c+"-"+u,n.set(c,u+1)}}const s=Oq(e,i,o);s!==void 0&&r.push(s)}return r}function $de(e,t,r){const a=hde(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=a.commaSeparated?rde(r):vde(r)),a.property==="style"){let n=typeof r=="object"?r:qde(e,String(r));return e.stylePropertyNameCase==="css"&&(n=Vde(n)),["style",n]}return[e.elementAttributeNameCase==="react"&&a.space?dde[a.property]||a.property:a.attribute,r]}}function qde(e,t){try{return Ade(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const a=r,n=new Ea("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Rq+"#cannot-parse-style-attribute",n}}function Iq(e,t,r){let a;if(!r)a={type:"Literal",value:t};else if(t.includes(".")){const n=t.split(".");let i=-1,o;for(;++i<n.length;){const s=tR(n[i])?{type:"Identifier",name:n[i]}:{type:"Literal",value:n[i]};o=o?{type:"MemberExpression",object:o,property:s,computed:!!(i&&s.type==="Literal"),optional:!1}:s}a=o}else a=tR(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(a.type==="Literal"){const n=a.value;return _N.call(e.components,n)?e.components[n]:n}if(e.evaluater)return e.evaluater.evaluateExpression(a);qp(e)}function qp(e,t){const r=new Ea("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Rq+"#cannot-handle-mdx-estrees-without-createevaluater",r}function Vde(e){const t={};let r;for(r in e)_N.call(e,r)&&(t[Ude(r)]=e[r]);return t}function Ude(e){let t=e.replace(jde,Hde);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Hde(e){return"-"+e.toLowerCase()}const fw={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Gde={};function MN(e,t){const r=Gde,a=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,n=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Bq(e,a,n)}function Bq(e,t,r){if(Kde(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return dR(e.children,t,r)}return Array.isArray(e)?dR(e,t,r):""}function dR(e,t,r){const a=[];let n=-1;for(;++n<e.length;)a[n]=Bq(e[n],t,r);return a.join("")}function Kde(e){return!!(e&&typeof e=="object")}const fR=document.createElement("i");function IN(e){const t="&"+e+";";fR.innerHTML=t;const r=fR.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function hn(e,t,r,a){const n=e.length;let i=0,o;if(t<0?t=-t>n?0:n+t:t=t>n?n:t,r=r>0?r:0,a.length<1e4)o=Array.from(a),o.unshift(t,r),e.splice(...o);else for(r&&e.splice(t,r);i<a.length;)o=a.slice(i,i+1e4),o.unshift(t,0),e.splice(...o),i+=1e4,t+=1e4}function Ln(e,t){return e.length>0?(hn(e,e.length,0,t),e):t}const pR={}.hasOwnProperty;function Lq(e){const t={};let r=-1;for(;++r<e.length;)Wde(t,e[r]);return t}function Wde(e,t){let r;for(r in t){const n=(pR.call(e,r)?e[r]:void 0)||(e[r]={}),i=t[r];let o;if(i)for(o in i){pR.call(n,o)||(n[o]=[]);const s=i[o];Xde(n[o],Array.isArray(s)?s:s?[s]:[])}}}function Xde(e,t){let r=-1;const a=[];for(;++r<t.length;)(t[r].add==="after"?e:a).push(t[r]);hn(e,0,0,a)}function zq(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function ti(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Pa=Rs(/[A-Za-z]/),ba=Rs(/[\dA-Za-z]/),Yde=Rs(/[#-'*+\--9=?A-Z^-~]/);function Ux(e){return e!==null&&(e<32||e===127)}const HC=Rs(/\d/),Zde=Rs(/[\dA-Fa-f]/),Jde=Rs(/[!-/:-@[-`{-~]/);function st(e){return e!==null&&e<-2}function lr(e){return e!==null&&(e<0||e===32)}function Rt(e){return e===-2||e===-1||e===32}const Ay=Rs(new RegExp("\\p{P}|\\p{S}","u")),ql=Rs(/\s/);function Rs(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Dd(e){const t=[];let r=-1,a=0,n=0;for(;++r<e.length;){const i=e.charCodeAt(r);let o="";if(i===37&&ba(e.charCodeAt(r+1))&&ba(e.charCodeAt(r+2)))n=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(o=String.fromCharCode(i));else if(i>55295&&i<57344){const s=e.charCodeAt(r+1);i<56320&&s>56319&&s<57344?(o=String.fromCharCode(i,s),n=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(a,r),encodeURIComponent(o)),a=r+n+1,o=""),n&&(r+=n,n=0)}return t.join("")+e.slice(a)}function Ft(e,t,r,a){const n=a?a-1:Number.POSITIVE_INFINITY;let i=0;return o;function o(c){return Rt(c)?(e.enter(r),s(c)):t(c)}function s(c){return Rt(c)&&i++<n?(e.consume(c),s):(e.exit(r),t(c))}}const Qde={tokenize:efe};function efe(e){const t=e.attempt(this.parser.constructs.contentInitial,a,n);let r;return t;function a(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Ft(e,t,"linePrefix")}function n(s){return e.enter("paragraph"),i(s)}function i(s){const c=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=c),r=c,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return st(s)?(e.consume(s),e.exit("chunkText"),i):(e.consume(s),o)}}const tfe={tokenize:rfe},hR={tokenize:afe};function rfe(e){const t=this,r=[];let a=0,n,i,o;return s;function s(E){if(a<r.length){const j=r[a];return t.containerState=j[1],e.attempt(j[0].continuation,c,u)(E)}return u(E)}function c(E){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,n&&A();const j=t.events.length;let P=j,C;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){C=t.events[P][1].end;break}S(a);let N=j;for(;N<t.events.length;)t.events[N][1].end={...C},N++;return hn(t.events,P+1,0,t.events.slice(j)),t.events.length=N,u(E)}return s(E)}function u(E){if(a===r.length){if(!n)return m(E);if(n.currentConstruct&&n.currentConstruct.concrete)return v(E);t.interrupt=!!(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(hR,h,f)(E)}function h(E){return n&&A(),S(a),m(E)}function f(E){return t.parser.lazy[t.now().line]=a!==r.length,o=t.now().offset,v(E)}function m(E){return t.containerState={},e.attempt(hR,x,v)(E)}function x(E){return a++,r.push([t.currentConstruct,t.containerState]),m(E)}function v(E){if(E===null){n&&A(),S(0),e.consume(E);return}return n=n||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:n,contentType:"flow",previous:i}),y(E)}function y(E){if(E===null){b(e.exit("chunkFlow"),!0),S(0),e.consume(E);return}return st(E)?(e.consume(E),b(e.exit("chunkFlow")),a=0,t.interrupt=void 0,s):(e.consume(E),y)}function b(E,j){const P=t.sliceStream(E);
vendor: 8,213 bytes, line 1162
1162if(j&&P.push(null),E.previous=i,i&&(i.next=E),i=E,n.defineSkip(E.start),n.write(P),t.parser.lazy[E.start.line]){let C=n.events.length;for(;C--;)if(n.events[C][1].start.offset<o&&(!n.events[C][1].end||n.events[C][1].end.offset>o))return;const N=t.events.length;let O=N,k,B;for(;O--;)if(t.events[O][0]==="exit"&&t.events[O][1].type==="chunkFlow"){if(k){B=t.events[O][1].end;break}k=!0}for(S(a),C=N;C<t.events.length;)t.events[C][1].end={...B},C++;hn(t.events,O+1,0,t.events.slice(N)),t.events.length=C}}function S(E){let j=r.length;for(;j-- >E;){const P=r[j];t.containerState=P[1],P[0].exit.call(t,e)}r.length=E}function A(){n.write([null]),i=void 0,n=void 0,t.containerState._closeFlow=void 0}}function afe(e,t,r){return Ft(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function qu(e){if(e===null||lr(e)||ql(e))return 1;if(Ay(e))return 2}function Cy(e,t,r){const a=[];let n=-1;for(;++n<e.length;){const i=e[n].resolveAll;i&&!a.includes(i)&&(t=i(t,r),a.push(i))}return t}const GC={name:"attention",resolveAll:nfe,tokenize:ife};function nfe(e,t){let r=-1,a,n,i,o,s,c,u,h;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(a=r;a--;)if(e[a][0]==="exit"&&e[a][1].type==="attentionSequence"&&e[a][1]._open&&t.sliceSerialize(e[a][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[a][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[a][1].end.offset-e[a][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;c=e[a][1].end.offset-e[a][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const f={...e[a][1].end},m={...e[r][1].start};mR(f,-c),mR(m,c),o={type:c>1?"strongSequence":"emphasisSequence",start:f,end:{...e[a][1].end}},s={type:c>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:m},i={type:c>1?"strongText":"emphasisText",start:{...e[a][1].end},end:{...e[r][1].start}},n={type:c>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[a][1].end={...o.start},e[r][1].start={...s.end},u=[],e[a][1].end.offset-e[a][1].start.offset&&(u=Ln(u,[["enter",e[a][1],t],["exit",e[a][1],t]])),u=Ln(u,[["enter",n,t],["enter",o,t],["exit",o,t],["enter",i,t]]),u=Ln(u,Cy(t.parser.constructs.insideSpan.null,e.slice(a+1,r),t)),u=Ln(u,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",n,t]]),e[r][1].end.offset-e[r][1].start.offset?(h=2,u=Ln(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):h=0,hn(e,a-1,r-a+3,u),r=a+u.length-h-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function ife(e,t){const r=this.parser.constructs.attentionMarkers.null,a=this.previous,n=qu(a);let i;return o;function o(c){return i=c,e.enter("attentionSequence"),s(c)}function s(c){if(c===i)return e.consume(c),s;const u=e.exit("attentionSequence"),h=qu(c),f=!h||h===2&&n||r.includes(c),m=!n||n===2&&h||r.includes(a);return u._open=!!(i===42?f:f&&(n||!m)),u._close=!!(i===42?m:m&&(h||!f)),t(c)}}function mR(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const ofe={name:"autolink",tokenize:sfe};function sfe(e,t,r){let a=0;return n;function n(x){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(x){return Pa(x)?(e.consume(x),o):x===64?r(x):u(x)}function o(x){return x===43||x===45||x===46||ba(x)?(a=1,s(x)):u(x)}function s(x){return x===58?(e.consume(x),a=0,c):(x===43||x===45||x===46||ba(x))&&a++<32?(e.consume(x),s):(a=0,u(x))}function c(x){return x===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),t):x===null||x===32||x===60||Ux(x)?r(x):(e.consume(x),c)}function u(x){return x===64?(e.consume(x),h):Yde(x)?(e.consume(x),u):r(x)}function h(x){return ba(x)?f(x):r(x)}function f(x){return x===46?(e.consume(x),a=0,h):x===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),t):m(x)}function m(x){if((x===45||ba(x))&&a++<63){const v=x===45?m:f;return e.consume(x),v}return r(x)}}const Hh={partial:!0,tokenize:lfe};function lfe(e,t,r){return a;function a(i){return Rt(i)?Ft(e,n,"linePrefix")(i):n(i)}function n(i){return i===null||st(i)?t(i):r(i)}}const Fq={continuation:{tokenize:ufe},exit:dfe,name:"blockQuote",tokenize:cfe};function cfe(e,t,r){const a=this;return n;function n(o){if(o===62){const s=a.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),i}return r(o)}function i(o){return Rt(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function ufe(e,t,r){const a=this;return n;function n(o){return Rt(o)?Ft(e,i,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):i(o)}function i(o){return e.attempt(Fq,t,r)(o)}}function dfe(e){e.exit("blockQuote")}const $q={name:"characterEscape",tokenize:ffe};function ffe(e,t,r){return a;function a(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),n}function n(i){return Jde(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(i)}}const qq={name:"characterReference",tokenize:pfe};function pfe(e,t,r){const a=this;let n=0,i,o;return s;function s(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),c}function c(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),i=31,o=ba,h(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=Zde,h):(e.enter("characterReferenceValue"),i=7,o=HC,h(f))}function h(f){if(f===59&&n){const m=e.exit("characterReferenceValue");return o===ba&&!IN(a.sliceSerialize(m))?r(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(f)&&n++<i?(e.consume(f),h):r(f)}}const gR={partial:!0,tokenize:mfe},xR={concrete:!0,name:"codeFenced",tokenize:hfe};function hfe(e,t,r){const a=this,n={partial:!0,tokenize:P};let i=0,o=0,s;return c;function c(C){return u(C)}function u(C){const N=a.events[a.events.length-1];return i=N&&N[1].type==="linePrefix"?N[2].sliceSerialize(N[1],!0).length:0,s=C,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),h(C)}function h(C){return C===s?(o++,e.consume(C),h):o<3?r(C):(e.exit("codeFencedFenceSequence"),Rt(C)?Ft(e,f,"whitespace")(C):f(C))}function f(C){return C===null||st(C)?(e.exit("codeFencedFence"),a.interrupt?t(C):e.check(gR,y,j)(C)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(C))}function m(C){return C===null||st(C)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(C)):Rt(C)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ft(e,x,"whitespace")(C)):C===96&&C===s?r(C):(e.consume(C),m)}function x(C){return C===null||st(C)?f(C):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(C))}function v(C){return C===null||st(C)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(C)):C===96&&C===s?r(C):(e.consume(C),v)}function y(C){return e.attempt(n,j,b)(C)}function b(C){return e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),S}function S(C){return i>0&&Rt(C)?Ft(e,A,"linePrefix",i+1)(C):A(C)}function A(C){return C===null||st(C)?e.check(gR,y,j)(C):(e.enter("codeFlowValue"),E(C))}function E(C){return C===null||st(C)?(e.exit("codeFlowValue"),A(C)):(e.consume(C),E)}function j(C){return e.exit("codeFenced"),t(C)}function P(C,N,O){let k=0;return B;function B(J){return C.enter("lineEnding"),C.consume(J),C.exit("lineEnding"),$}function $(J){return C.enter("codeFencedFence"),Rt(J)?Ft(C,_,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(J):_(J)}
vendor: 10,027 bytes, line 1162
1162function _(J){return J===s?(C.enter("codeFencedFenceSequence"),W(J)):O(J)}function W(J){return J===s?(k++,C.consume(J),W):k>=o?(C.exit("codeFencedFenceSequence"),Rt(J)?Ft(C,D,"whitespace")(J):D(J)):O(J)}function D(J){return J===null||st(J)?(C.exit("codeFencedFence"),N(J)):O(J)}}}function mfe(e,t,r){const a=this;return n;function n(o){return o===null?r(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return a.parser.lazy[a.now().line]?r(o):t(o)}}const pw={name:"codeIndented",tokenize:xfe},gfe={partial:!0,tokenize:vfe};function xfe(e,t,r){const a=this;return n;function n(u){return e.enter("codeIndented"),Ft(e,i,"linePrefix",5)(u)}function i(u){const h=a.events[a.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?o(u):r(u)}function o(u){return u===null?c(u):st(u)?e.attempt(gfe,o,c)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||st(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function c(u){return e.exit("codeIndented"),t(u)}}function vfe(e,t,r){const a=this;return n;function n(o){return a.parser.lazy[a.now().line]?r(o):st(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n):Ft(e,i,"linePrefix",5)(o)}function i(o){const s=a.events[a.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):st(o)?n(o):r(o)}}const yfe={name:"codeText",previous:wfe,resolve:bfe,tokenize:Sfe};function bfe(e){let t=e.length-4,r=3,a,n;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(a=r;++a<t;)if(e[a][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(a=r-1,t++;++a<=t;)n===void 0?a!==t&&e[a][1].type!=="lineEnding"&&(n=a):(a===t||e[a][1].type==="lineEnding")&&(e[n][1].type="codeTextData",a!==n+2&&(e[n][1].end=e[a-1][1].end,e.splice(n+2,a-n-2),t-=a-n-2,a=n+2),n=void 0);return e}function wfe(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Sfe(e,t,r){let a=0,n,i;return o;function o(f){return e.enter("codeText"),e.enter("codeTextSequence"),s(f)}function s(f){return f===96?(e.consume(f),a++,s):(e.exit("codeTextSequence"),c(f))}function c(f){return f===null?r(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),c):f===96?(i=e.enter("codeTextSequence"),n=0,h(f)):st(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||st(f)?(e.exit("codeTextData"),c(f)):(e.consume(f),u)}function h(f){return f===96?(e.consume(f),n++,h):n===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(i.type="codeTextData",u(f))}}class Efe{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const a=r??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(t,a):t>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(t,r,a){const n=r||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-n,Number.POSITIVE_INFINITY);return a&&qf(this.left,a),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),qf(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),qf(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);qf(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);qf(this.left,r.reverse())}}}function qf(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function Vq(e){const t={};let r=-1,a,n,i,o,s,c,u;const h=new Efe(e);for(;++r<h.length;){for(;r in t;)r=t[r];if(a=h.get(r),r&&a[1].type==="chunkFlow"&&h.get(r-1)[1].type==="listItemPrefix"&&(c=a[1]._tokenizer.events,i=0,i<c.length&&c[i][1].type==="lineEndingBlank"&&(i+=2),i<c.length&&c[i][1].type==="content"))for(;++i<c.length&&c[i][1].type!=="content";)c[i][1].type==="chunkText"&&(c[i][1]._isInFirstContentOfListItem=!0,i++);if(a[0]==="enter")a[1].contentType&&(Object.assign(t,Afe(h,r)),r=t[r],u=!0);else if(a[1]._container){for(i=r,n=void 0;i--;)if(o=h.get(i),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(n&&(h.get(n)[1].type="lineEndingBlank"),o[1].type="lineEnding",n=i);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;n&&(a[1].end={...h.get(n)[1].start},s=h.slice(n,r),s.unshift(a),h.splice(n,r-n+1,s))}}return hn(e,0,Number.POSITIVE_INFINITY,h.slice(0)),!u}function Afe(e,t){const r=e.get(t)[1],a=e.get(t)[2];let n=t-1;const i=[];let o=r._tokenizer;o||(o=a.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const s=o.events,c=[],u={};let h,f,m=-1,x=r,v=0,y=0;const b=[y];for(;x;){for(;e.get(++n)[1]!==x;);i.push(n),x._tokenizer||(h=a.sliceStream(x),x.next||h.push(null),f&&o.defineSkip(x.start),x._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(h),x._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=x,x=x.next}for(x=r;++m<s.length;)s[m][0]==="exit"&&s[m-1][0]==="enter"&&s[m][1].type===s[m-1][1].type&&s[m][1].start.line!==s[m][1].end.line&&(y=m+1,b.push(y),x._tokenizer=void 0,x.previous=void 0,x=x.next);for(o.events=[],x?(x._tokenizer=void 0,x.previous=void 0):b.pop(),m=b.length;m--;){const S=s.slice(b[m],b[m+1]),A=i.pop();c.push([A,A+S.length-1]),e.splice(A,2,S)}for(c.reverse(),m=-1;++m<c.length;)u[v+c[m][0]]=v+c[m][1],v+=c[m][1]-c[m][0]-1;return u}const Cfe={resolve:jfe,tokenize:Nfe},Pfe={partial:!0,tokenize:Tfe};function jfe(e){return Vq(e),e}function Nfe(e,t){let r;return a;function a(s){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),n(s)}function n(s){return s===null?i(s):st(s)?e.check(Pfe,o,i)(s):(e.consume(s),n)}function i(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,n}}function Tfe(e,t,r){const a=this;return n;function n(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Ft(e,i,"linePrefix")}function i(o){if(o===null||st(o))return r(o);const s=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(a.parser.constructs.flow,r,t)(o)}}function Uq(e,t,r,a,n,i,o,s,c){const u=c||Number.POSITIVE_INFINITY;let h=0;return f;function f(S){return S===60?(e.enter(a),e.enter(n),e.enter(i),e.consume(S),e.exit(i),m):S===null||S===32||S===41||Ux(S)?r(S):(e.enter(a),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),y(S))}function m(S){return S===62?(e.enter(i),e.consume(S),e.exit(i),e.exit(n),e.exit(a),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),x(S))}function x(S){return S===62?(e.exit("chunkString"),e.exit(s),m(S)):S===null||S===60||st(S)?r(S):(e.consume(S),S===92?v:x)}function v(S){return S===60||S===62||S===92?(e.consume(S),x):x(S)}function y(S){return!h&&(S===null||S===41||lr(S))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(a),t(S)):h<u&&S===40?(e.consume(S),h++,y):S===41?(e.consume(S),h--,y):S===null||S===32||S===40||Ux(S)?r(S):(e.consume(S),S===92?b:y)}function b(S){return S===40||S===41||S===92?(e.consume(S),y):y(S)}}function Hq(e,t,r,a,n,i){const o=this;let s=0,c;return u;function u(x){return e.enter(a),e.enter(n),e.consume(x),e.exit(n),e.enter(i),h}function h(x){return s>999||x===null||x===91||x===93&&!c||x===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?r(x):x===93?(e.exit(i),e.enter(n),e.consume(x),e.exit(n),e.exit(a),t):st(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),h):(e.enter("chunkString",{contentType:"string"}),f(x))}function f(x){return x===null||x===91||x===93||st(x)||s++>999?(e.exit("chunkString"),h(x)):(e.consume(x),c||(c=!Rt(x)),x===92?m:f)}function m(x){return x===91||x===92||x===93?(e.consume(x),s++,f):f(x)}}function Gq(e,t,r,a,n,i){let o;return s;function s(m){return m===34||m===39||m===40?(e.enter(a),e.enter(n),e.consume(m),e.exit(n),o=m===40?41:m,c):r(m)}function c(m){return m===o?(e.enter(n),e.consume(m),e.exit(n),e.exit(a),t):(e.enter(i),u(m))}function u(m){return m===o?(e.exit(i),c(o)):m===null?r(m):st(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),Ft(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===o||m===null||st(m)?(e.exit("chunkString"),u(m)):(e.consume(m),m===92?f:h)}function f(m){return m===o||m===92?(e.consume(m),h):h(m)}}function vp(e,t){let r;return a;function a(n){return st(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),r=!0,a):Rt(n)?Ft(e,a,r?"linePrefix":"lineSuffix")(n):t(n)}}const kfe={name:"definition",tokenize:_fe},Dfe={partial:!0,tokenize:Rfe};function _fe(e,t,r){const a=this;let n;return i;function i(x){return e.enter("definition"),o(x)}function o(x){return Hq.call(a,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}function s(x){return n=ti(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),c):r(x
vendor: 14,280 bytes, line 1162
1162)}function c(x){return lr(x)?vp(e,u)(x):u(x)}function u(x){return Uq(e,h,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}function h(x){return e.attempt(Dfe,f,f)(x)}function f(x){return Rt(x)?Ft(e,m,"whitespace")(x):m(x)}function m(x){return x===null||st(x)?(e.exit("definition"),a.parser.defined.push(n),t(x)):r(x)}}function Rfe(e,t,r){return a;function a(s){return lr(s)?vp(e,n)(s):r(s)}function n(s){return Gq(e,i,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function i(s){return Rt(s)?Ft(e,o,"whitespace")(s):o(s)}function o(s){return s===null||st(s)?t(s):r(s)}}const Ofe={name:"hardBreakEscape",tokenize:Mfe};function Mfe(e,t,r){return a;function a(i){return e.enter("hardBreakEscape"),e.consume(i),n}function n(i){return st(i)?(e.exit("hardBreakEscape"),t(i)):r(i)}}const Ife={name:"headingAtx",resolve:Bfe,tokenize:Lfe};function Bfe(e,t){let r=e.length-2,a=3,n,i;return e[a][1].type==="whitespace"&&(a+=2),r-2>a&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(a===r-1||r-4>a&&e[r-2][1].type==="whitespace")&&(r-=a+1===r?2:4),r>a&&(n={type:"atxHeadingText",start:e[a][1].start,end:e[r][1].end},i={type:"chunkText",start:e[a][1].start,end:e[r][1].end,contentType:"text"},hn(e,a,r-a+1,[["enter",n,t],["enter",i,t],["exit",i,t],["exit",n,t]])),e}function Lfe(e,t,r){let a=0;return n;function n(h){return e.enter("atxHeading"),i(h)}function i(h){return e.enter("atxHeadingSequence"),o(h)}function o(h){return h===35&&a++<6?(e.consume(h),o):h===null||lr(h)?(e.exit("atxHeadingSequence"),s(h)):r(h)}function s(h){return h===35?(e.enter("atxHeadingSequence"),c(h)):h===null||st(h)?(e.exit("atxHeading"),t(h)):Rt(h)?Ft(e,s,"whitespace")(h):(e.enter("atxHeadingText"),u(h))}function c(h){return h===35?(e.consume(h),c):(e.exit("atxHeadingSequence"),s(h))}function u(h){return h===null||h===35||lr(h)?(e.exit("atxHeadingText"),s(h)):(e.consume(h),u)}}const zfe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],vR=["pre","script","style","textarea"],Ffe={concrete:!0,name:"htmlFlow",resolveTo:Vfe,tokenize:Ufe},$fe={partial:!0,tokenize:Gfe},qfe={partial:!0,tokenize:Hfe};function Vfe(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Ufe(e,t,r){const a=this;let n,i,o,s,c;return u;function u(U){return h(U)}function h(U){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(U),f}function f(U){return U===33?(e.consume(U),m):U===47?(e.consume(U),i=!0,y):U===63?(e.consume(U),n=3,a.interrupt?t:K):Pa(U)?(e.consume(U),o=String.fromCharCode(U),b):r(U)}function m(U){return U===45?(e.consume(U),n=2,x):U===91?(e.consume(U),n=5,s=0,v):Pa(U)?(e.consume(U),n=4,a.interrupt?t:K):r(U)}function x(U){return U===45?(e.consume(U),a.interrupt?t:K):r(U)}function v(U){const ie="CDATA[";return U===ie.charCodeAt(s++)?(e.consume(U),s===ie.length?a.interrupt?t:_:v):r(U)}function y(U){return Pa(U)?(e.consume(U),o=String.fromCharCode(U),b):r(U)}function b(U){if(U===null||U===47||U===62||lr(U)){const ie=U===47,se=o.toLowerCase();return!ie&&!i&&vR.includes(se)?(n=1,a.interrupt?t(U):_(U)):zfe.includes(o.toLowerCase())?(n=6,ie?(e.consume(U),S):a.interrupt?t(U):_(U)):(n=7,a.interrupt&&!a.parser.lazy[a.now().line]?r(U):i?A(U):E(U))}return U===45||ba(U)?(e.consume(U),o+=String.fromCharCode(U),b):r(U)}function S(U){return U===62?(e.consume(U),a.interrupt?t:_):r(U)}function A(U){return Rt(U)?(e.consume(U),A):B(U)}function E(U){return U===47?(e.consume(U),B):U===58||U===95||Pa(U)?(e.consume(U),j):Rt(U)?(e.consume(U),E):B(U)}function j(U){return U===45||U===46||U===58||U===95||ba(U)?(e.consume(U),j):P(U)}function P(U){return U===61?(e.consume(U),C):Rt(U)?(e.consume(U),P):E(U)}function C(U){return U===null||U===60||U===61||U===62||U===96?r(U):U===34||U===39?(e.consume(U),c=U,N):Rt(U)?(e.consume(U),C):O(U)}function N(U){return U===c?(e.consume(U),c=null,k):U===null||st(U)?r(U):(e.consume(U),N)}function O(U){return U===null||U===34||U===39||U===47||U===60||U===61||U===62||U===96||lr(U)?P(U):(e.consume(U),O)}function k(U){return U===47||U===62||Rt(U)?E(U):r(U)}function B(U){return U===62?(e.consume(U),$):r(U)}function $(U){return U===null||st(U)?_(U):Rt(U)?(e.consume(U),$):r(U)}function _(U){return U===45&&n===2?(e.consume(U),z):U===60&&n===1?(e.consume(U),V):U===62&&n===4?(e.consume(U),q):U===63&&n===3?(e.consume(U),K):U===93&&n===5?(e.consume(U),te):st(U)&&(n===6||n===7)?(e.exit("htmlFlowData"),e.check($fe,X,W)(U)):U===null||st(U)?(e.exit("htmlFlowData"),W(U)):(e.consume(U),_)}function W(U){return e.check(qfe,D,X)(U)}function D(U){return e.enter("lineEnding"),e.consume(U),e.exit("lineEnding"),J}function J(U){return U===null||st(U)?W(U):(e.enter("htmlFlowData"),_(U))}function z(U){return U===45?(e.consume(U),K):_(U)}function V(U){return U===47?(e.consume(U),o="",Z):_(U)}function Z(U){if(U===62){const ie=o.toLowerCase();return vR.includes(ie)?(e.consume(U),q):_(U)}return Pa(U)&&o.length<8?(e.consume(U),o+=String.fromCharCode(U),Z):_(U)}function te(U){return U===93?(e.consume(U),K):_(U)}function K(U){return U===62?(e.consume(U),q):U===45&&n===2?(e.consume(U),K):_(U)}function q(U){return U===null||st(U)?(e.exit("htmlFlowData"),X(U)):(e.consume(U),q)}function X(U){return e.exit("htmlFlow"),t(U)}}function Hfe(e,t,r){const a=this;return n;function n(o){return st(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):r(o)}function i(o){return a.parser.lazy[a.now().line]?r(o):t(o)}}function Gfe(e,t,r){return a;function a(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e.attempt(Hh,t,r)}}const Kfe={name:"htmlText",tokenize:Wfe};function Wfe(e,t,r){const a=this;let n,i,o;return s;function s(K){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(K),c}function c(K){return K===33?(e.consume(K),u):K===47?(e.consume(K),P):K===63?(e.consume(K),E):Pa(K)?(e.consume(K),O):r(K)}function u(K){return K===45?(e.consume(K),h):K===91?(e.consume(K),i=0,v):Pa(K)?(e.consume(K),A):r(K)}function h(K){return K===45?(e.consume(K),x):r(K)}function f(K){return K===null?r(K):K===45?(e.consume(K),m):st(K)?(o=f,V(K)):(e.consume(K),f)}function m(K){return K===45?(e.consume(K),x):f(K)}function x(K){return K===62?z(K):K===45?m(K):f(K)}function v(K){const q="CDATA[";return K===q.charCodeAt(i++)?(e.consume(K),i===q.length?y:v):r(K)}function y(K){return K===null?r(K):K===93?(e.consume(K),b):st(K)?(o=y,V(K)):(e.consume(K),y)}function b(K){return K===93?(e.consume(K),S):y(K)}function S(K){return K===62?z(K):K===93?(e.consume(K),S):y(K)}function A(K){return K===null||K===62?z(K):st(K)?(o=A,V(K)):(e.consume(K),A)}function E(K){return K===null?r(K):K===63?(e.consume(K),j):st(K)?(o=E,V(K)):(e.consume(K),E)}function j(K){return K===62?z(K):E(K)}function P(K){return Pa(K)?(e.consume(K),C):r(K)}function C(K){return K===45||ba(K)?(e.consume(K),C):N(K)}function N(K){return st(K)?(o=N,V(K)):Rt(K)?(e.consume(K),N):z(K)}function O(K){return K===45||ba(K)?(e.consume(K),O):K===47||K===62||lr(K)?k(K):r(K)}function k(K){return K===47?(e.consume(K),z):K===58||K===95||Pa(K)?(e.consume(K),B):st(K)?(o=k,V(K)):Rt(K)?(e.consume(K),k):z(K)}function B(K){return K===45||K===46||K===58||K===95||ba(K)?(e.consume(K),B):$(K)}function $(K){return K===61?(e.consume(K),_):st(K)?(o=$,V(K)):Rt(K)?(e.consume(K),$):k(K)}function _(K){return K===null||K===60||K===61||K===62||K===96?r(K):K===34||K===39?(e.consume(K),n=K,W):st(K)?(o=_,V(K)):Rt(K)?(e.consume(K),_):(e.consume(K),D)}function W(K){return K===n?(e.consume(K),n=void 0,J):K===null?r(K):st(K)?(o=W,V(K)):(e.consume(K),W)}function D(K){return K===null||K===34||K===39||K===60||K===61||K===96?r(K):K===47||K===62||lr(K)?k(K):(e.consume(K),D)}function J(K){return K===47||K===62||lr(K)?k(K):r(K)}function z(K){return K===62?(e.consume(K),e.exit("htmlTextData"),e.exit("htmlText"),t):r(K)}function V(K){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(K),e.exit("lineEnding"),Z}function Z(K){return Rt(K)?Ft(e,te,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(K):te(K)}function te(K){return e.enter("htmlTextData"),o(K)}}const BN={name:"labelEnd",resolveAll:Jfe,resolveTo:Qfe,tokenize:epe},Xfe={tokenize:tpe},Yfe={tokenize:rpe},Zfe={tokenize:ape};function Jfe(e){let t=-1;const r=[];for(;++t<e.length;){const a=e[t][1];if(r.push(e[t]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const n=a.type==="labelImage"?4:2;a.type="data",t+=n}}return e.length!==r.length&&hn(e,0,e.length,r),e}function Qfe(e,t){let r=e.length,a=0,n,i,o,s;for(;r--;)if(n=e[r][1],i){if(n.type==="link"||n.type==="labelLink"&&n._inactive)break;e[r][0]==="enter"&&n.type==="labelLink"&&(n._inactive=!0)}else if(o){if(e[r][0]==="enter"&&(n.type==="labelImage"||n.type==="labelLink")&&!n._balanced&&(i=r,n.type!=="labelLink")){a=2;break}}else n.type==="labelEnd"&&(o=r);const c={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[i][1].start},end:{...e[o][1].end}},h={type:"labelText",start:{...e[i+a+2][1].end},end:{...e[o-2][1].start}};return s=[["enter",c,t],["enter",u,t]],s=Ln(s,e.slice(i+1,i+a+3)),s=Ln(s,[["enter",h,t]]),s=Ln(s,Cy(t.parser.constructs.insideSpan.null,e.slice(i+a+4,o-3),t)),s=Ln(s,[["exit",h,t],e[o-2],e[o-1],["exit",u,t]]),s=Ln(s,e.slice(o+1)),s=Ln(s,[["exit",c,t]]),hn(e,i,e.length,s),e}function epe(e,t,r){const a=this;let n=a.events.length,i,o;for(;n--;)if((a.events[n][1].type==="labelImage"||a.events[n][1].type==="labelLink")&&!a.events[n][1]._balanced){i=a.events[n][1];break}return s;function s(m){return i?i._inactive?f(m):(o=a.parser.defined.includes(ti(a.sliceSerialize({start:i.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),c):r(m)}function c(m){return m===40?e.attempt(Xfe,h,o?h:f)(m):m===91?e.attempt(Yfe,h,o?u:f)(m):o?h(m):f(m)}function u(m){return e.attempt(Zfe,h,f)(m)}function h(m){return t(m)}function f(m){return i._balanced=!0,r(m)}}function tpe(e,t,r){return a;function a(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),n}function n(f){return lr(f)?vp(e,i)(f):i(f)}function i(f){return f===41?h(f):Uq(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return lr(f)?vp(e,c)(f):h(f)}function s(f){return r(f)}function c(f){return f===34||f===39||f===40?Gq(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):h(f)}function u(f){return lr(f)?vp(e,h)(f):h(f)}function h(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):r(f)}}function rpe(e,t,r){const a=this;return n;function n(s){return Hq.call(a,e,i,o,"reference","referenceMarker","referenceString")(s)}function i(s){return a.parser.defined.includes(ti(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?t(s):r(s)}function o(s){return r(s)}}function ape(e,t,r){return a;function a(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),n}function n(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):r(i)}}const npe={name:"labelStartImage",resolveAll:BN.resolveAll,tokenize:ipe};function ipe(e,t,r){const a=this;return n;function n(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),i}function i(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):r(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(s):t(s)}}const ope={name:"labelStartLink",resolveAll:BN.resolveAll,tokenize:spe};function spe(e,t,r){const a=this;return n;function n(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),i}function i(o){return o===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(o):t(o)}}const hw={name:"lineEnding",tokenize:lpe};function lpe(e,t){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Ft(e,t,"linePrefix")}}const yx={name:"thematicBreak",tokenize:cpe};function cpe(e,t,r){let a=0,n;return i;function i(u){return e.enter("thematicBreak"),o(u)}function o(u){return n=u,s(u)}function s(u){return u===n?(e.enter("thematicBreakSequence"),c(u)):a>=3&&(u===null||st(u))?(e.exit("thematicBreak"),t(u)):r(u)}function c(u){return u===n?(e.consume(u),a++,c):(e.exit("thematicBreakSequence"),Rt(u)?Ft(e,s,"whitespace")(u):s(u))}}const za={continuation:{tokenize:ppe},exit:mpe,name:"list",tokenize:fpe},upe={partial:!0,tokenize:gpe},dpe={partial:!0,tokenize:hpe};function fpe(e,t,r){const a=this,n=a.events[a.events.length-1];let i=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],!0).length:0,o=0;return s;function s(x){const v=a.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(v==="listUnordered"?!a.containerState.marker||x===a.containerState.marker:HC(x)){if(a.containerState.type||(a.containerState.type=v,e.enter(v,{_container:!0})),v==="listUnordered")return e.enter("listItemPrefix"),x===42||x===45?e.check(yx,r,u)(x):u(x);if(!a.interrupt||x===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(x)}return r(x)}function c(x){return HC(x)&&++o<10?(e.consume(x),c):(!a.interrupt||o<2)&&(a.containerState.marker?x===a.containerState.marker:x===41||x===46)?(e.exit("listItemValue"),u(x)):r(x)}function u(x){return e.enter("listItemMarker"),e.consume(x),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||x,e.check(Hh,a.interrupt?r:h,e.attempt(upe,m,f))}
vendor: 5,407 bytes, line 1162
1162function h(x){return a.containerState.initialBlankLine=!0,i++,m(x)}function f(x){return Rt(x)?(e.enter("listItemPrefixWhitespace"),e.consume(x),e.exit("listItemPrefixWhitespace"),m):r(x)}function m(x){return a.containerState.size=i+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(x)}}function ppe(e,t,r){const a=this;return a.containerState._closeFlow=void 0,e.check(Hh,n,i);function n(s){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,Ft(e,t,"listItemIndent",a.containerState.size+1)(s)}function i(s){return a.containerState.furtherBlankLines||!Rt(s)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,o(s)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(dpe,t,o)(s))}function o(s){return a.containerState._closeFlow=!0,a.interrupt=void 0,Ft(e,e.attempt(za,t,r),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function hpe(e,t,r){const a=this;return Ft(e,n,"listItemIndent",a.containerState.size+1);function n(i){const o=a.events[a.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===a.containerState.size?t(i):r(i)}}function mpe(e){e.exit(this.containerState.type)}function gpe(e,t,r){const a=this;return Ft(e,n,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function n(i){const o=a.events[a.events.length-1];return!Rt(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):r(i)}}const yR={name:"setextUnderline",resolveTo:xpe,tokenize:vpe};function xpe(e,t){let r=e.length,a,n,i;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){a=r;break}e[r][1].type==="paragraph"&&(n=r)}else e[r][1].type==="content"&&e.splice(r,1),!i&&e[r][1].type==="definition"&&(i=r);const o={type:"setextHeading",start:{...e[a][1].start},end:{...e[e.length-1][1].end}};return e[n][1].type="setextHeadingText",i?(e.splice(n,0,["enter",o,t]),e.splice(i+1,0,["exit",e[a][1],t]),e[a][1].end={...e[i][1].end}):e[a][1]=o,e.push(["exit",o,t]),e}function vpe(e,t,r){const a=this;let n;return i;function i(u){let h=a.events.length,f;for(;h--;)if(a.events[h][1].type!=="lineEnding"&&a.events[h][1].type!=="linePrefix"&&a.events[h][1].type!=="content"){f=a.events[h][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||f)?(e.enter("setextHeadingLine"),n=u,o(u)):r(u)}function o(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===n?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),Rt(u)?Ft(e,c,"lineSuffix")(u):c(u))}function c(u){return u===null||st(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const ype={tokenize:bpe};function bpe(e){const t=this,r=e.attempt(Hh,a,e.attempt(this.parser.constructs.flowInitial,n,Ft(e,e.attempt(this.parser.constructs.flow,n,e.attempt(Cfe,n)),"linePrefix")));return r;function a(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function n(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const wpe={resolveAll:Wq()},Spe=Kq("string"),Epe=Kq("text");function Kq(e){return{resolveAll:Wq(e==="text"?Ape:void 0),tokenize:t};function t(r){const a=this,n=this.parser.constructs[e],i=r.attempt(n,o,s);return o;function o(h){return u(h)?i(h):s(h)}function s(h){if(h===null){r.consume(h);return}return r.enter("data"),r.consume(h),c}function c(h){return u(h)?(r.exit("data"),i(h)):(r.consume(h),c)}function u(h){if(h===null)return!0;const f=n[h];let m=-1;if(f)for(;++m<f.length;){const x=f[m];if(!x.previous||x.previous.call(a,a.previous))return!0}return!1}}}function Wq(e){return t;function t(r,a){let n=-1,i;for(;++n<=r.length;)i===void 0?r[n]&&r[n][1].type==="data"&&(i=n,n++):(!r[n]||r[n][1].type!=="data")&&(n!==i+2&&(r[i][1].end=r[n-1][1].end,r.splice(i+2,n-i-2),n=i+2),i=void 0);return e?e(r,a):r}}function Ape(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const a=e[r-1][1],n=t.sliceStream(a);let i=n.length,o=-1,s=0,c;for(;i--;){const u=n[i];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(u===-2)c=!0,s++;else if(u!==-1){i++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(s=0),s){const u={type:r===e.length||c||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?o:a.start._bufferIndex+o,_index:a.start._index+i,line:a.end.line,column:a.end.column-s,offset:a.end.offset-s},end:{...a.end}};a.end={...u.start},a.start.offset===a.end.offset?Object.assign(a,u):(e.splice(r,0,["enter",u,t],["exit",u,t]),r+=2)}r++}return e}const Cpe={42:za,43:za,45:za,48:za,49:za,50:za,51:za,52:za,53:za,54:za,55:za,56:za,57:za,62:Fq},Ppe={91:kfe},jpe={[-2]:pw,[-1]:pw,32:pw},Npe={35:Ife,42:yx,45:[yR,yx],60:Ffe,61:yR,95:yx,96:xR,126:xR},Tpe={38:qq,92:$q},kpe={[-5]:hw,[-4]:hw,[-3]:hw,33:npe,38:qq,42:GC,60:[ofe,Kfe],91:ope,92:[Ofe,$q],93:BN,95:GC,96:yfe},Dpe={null:[GC,wpe]},_pe={null:[42,95]},Rpe={null:[]},Ope=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:_pe,contentInitial:Ppe,disable:Rpe,document:Cpe,flow:Npe,flowInitial:jpe,insideSpan:Dpe,string:Tpe,text:kpe},Symbol.toStringTag,{value:"Module"}));function Mpe(e,t,r){let a={_bufferIndex:-1,_index:0,line:r&&r.line||1,c
vendor: 19,081 bytes, lines 1162-1167
1162olumn:r&&r.column||1,offset:r&&r.offset||0};const n={},i=[];let o=[],s=[];const c={attempt:N(P),check:N(C),consume:A,enter:E,exit:j,interrupt:N(C,{interrupt:!0})},u={code:null,containerState:{},defineSkip:y,events:[],now:v,parser:e,previous:null,sliceSerialize:m,sliceStream:x,write:f};let h=t.tokenize.call(u,c);return t.resolveAll&&i.push(t),u;function f($){return o=Ln(o,$),b(),o[o.length-1]!==null?[]:(O(t,0),u.events=Cy(i,u.events,u),u.events)}function m($,_){return Bpe(x($),_)}function x($){return Ipe(o,$)}function v(){const{_bufferIndex:$,_index:_,line:W,column:D,offset:J}=a;return{_bufferIndex:$,_index:_,line:W,column:D,offset:J}}function y($){n[$.line]=$.column,B()}function b(){let $;for(;a._index<o.length;){const _=o[a._index];if(typeof _=="string")for($=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===$&&a._bufferIndex<_.length;)S(_.charCodeAt(a._bufferIndex));else S(_)}}function S($){h=h($)}function A($){st($)?(a.line++,a.column=1,a.offset+=$===-3?2:1,B()):$!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===o[a._index].length&&(a._bufferIndex=-1,a._index++)),u.previous=$}function E($,_){const W=_||{};return W.type=$,W.start=v(),u.events.push(["enter",W,u]),s.push(W),W}function j($){const _=s.pop();return _.end=v(),u.events.push(["exit",_,u]),_}function P($,_){O($,_.from)}function C($,_){_.restore()}function N($,_){return W;function W(D,J,z){let V,Z,te,K;return Array.isArray(D)?X(D):"tokenize"in D?X([D]):q(D);function q(he){return Y;function Y(F){const ae=F!==null&&he[F],ne=F!==null&&he.null,ge=[...Array.isArray(ae)?ae:ae?[ae]:[],...Array.isArray(ne)?ne:ne?[ne]:[]];return X(ge)(F)}}function X(he){return V=he,Z=0,he.length===0?z:U(he[Z])}function U(he){return Y;function Y(F){return K=k(),te=he,he.partial||(u.currentConstruct=he),he.name&&u.parser.constructs.disable.null.includes(he.name)?se():he.tokenize.call(_?Object.assign(Object.create(u),_):u,c,ie,se)(F)}}function ie(he){return $(te,K),J}function se(he){return K.restore(),++Z<V.length?U(V[Z]):z}}}function O($,_){$.resolveAll&&!i.includes($)&&i.push($),$.resolve&&hn(u.events,_,u.events.length-_,$.resolve(u.events.slice(_),u)),$.resolveTo&&(u.events=$.resolveTo(u.events,u))}function k(){const $=v(),_=u.previous,W=u.currentConstruct,D=u.events.length,J=Array.from(s);return{from:D,restore:z};function z(){a=$,u.previous=_,u.currentConstruct=W,u.events.length=D,s=J,B()}}function B(){a.line in n&&a.column<2&&(a.column=n[a.line],a.offset+=n[a.line]-1)}}function Ipe(e,t){const r=t.start._index,a=t.start._bufferIndex,n=t.end._index,i=t.end._bufferIndex;let o;if(r===n)o=[e[r].slice(a,i)];else{if(o=e.slice(r,n),a>-1){const s=o[0];typeof s=="string"?o[0]=s.slice(a):o.shift()}i>0&&o.push(e[n].slice(0,i))}return o}function Bpe(e,t){let r=-1;const a=[];let n;for(;++r<e.length;){const i=e[r];let o;if(typeof i=="string")o=i;else switch(i){case-5:{o="\r";break}case-4:{o=` 1163`;break}case-3:{o=`\r 1164`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&n)continue;o=" ";break}default:o=String.fromCharCode(i)}n=i===-2,a.push(o)}return a.join("")}function Lpe(e){const a={constructs:Lq([Ope,...(e||{}).extensions||[]]),content:n(Qde),defined:[],document:n(tfe),flow:n(ype),lazy:{},string:n(Spe),text:n(Epe)};return a;function n(i){return o;function o(s){return Mpe(a,i,s)}}}function zpe(e){for(;!Vq(e););return e}const bR=/[\0\t\n\r]/g;function Fpe(){let e=1,t="",r=!0,a;return n;function n(i,o,s){const c=[];let u,h,f,m,x;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(o||void 0).decode(i)),f=0,t="",r&&(i.charCodeAt(0)===65279&&f++,r=void 0);f<i.length;){if(bR.lastIndex=f,u=bR.exec(i),m=u&&u.index!==void 0?u.index:i.length,x=i.charCodeAt(m),!u){t=i.slice(f);break}if(x===10&&f===m&&a)c.push(-3),a=void 0;else switch(a&&(c.push(-5),a=void 0),f<m&&(c.push(i.slice(f,m)),e+=m-f),x){case 0:{c.push(65533),e++;break}case 9:{for(h=Math.ceil(e/4)*4,c.push(-2);e++<h;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:a=!0,e=1}f=m+1}return s&&(a&&c.push(-5),t&&c.push(t),c.push(null)),c}}const $pe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function qpe(e){return e.replace($pe,Vpe)}function Vpe(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const n=r.charCodeAt(1),i=n===120||n===88;return zq(r.slice(i?2:1),i?16:10)}return IN(r)||e}const Xq={}.hasOwnProperty;function Upe(e,t,r){return typeof t!="string"&&(r=t,t=void 0),Hpe(r)(zpe(Lpe(r).document().write(Fpe()(e,t,!0))))}function Hpe(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(H),autolinkProtocol:k,autolinkEmail:k,atxHeading:i(pe),blockQuote:i(ne),characterEscape:k,characterReference:k,codeFenced:i(ge),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:i(ge,o),codeText:i(re,o),codeTextData:k,data:k,codeFlowValue:k,definition:i(oe),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:i(G),hardBreakEscape:i(ee),hardBreakTrailing:i(ee),htmlFlow:i(M,o),htmlFlowData:k,htmlText:i(M,o),htmlTextData:k,image:i(I),label:o,link:i(H),listItem:i(fe),listItemValue:m,listOrdered:i(ce,f),listUnordered:i(ce),paragraph:i(ue),reference:U,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:i(pe),strong:i(we),thematicBreak:i(De)},exit:{atxHeading:c(),atxHeadingSequence:P,autolink:c(),autolinkEmail:ae,autolinkProtocol:F,blockQuote:c(),characterEscapeValue:B,characterReferenceMarkerHexadecimal:se,characterReferenceMarkerNumeric:se,characterReferenceValue:he,characterReference:Y,codeFenced:c(b),codeFencedFence:y,codeFencedFenceInfo:x,codeFencedFenceMeta:v,codeFlowValue:B,codeIndented:c(S),codeText:c(J),codeTextData:B,data:B,definition:c(),definitionDestinationString:j,definitionLabelString:A,definitionTitleString:E,emphasis:c(),hardBreakEscape:c(_),hardBreakTrailing:c(_),htmlFlow:c(W),htmlFlowData:B,htmlText:c(D),htmlTextData:B,image:c(V),label:te,labelText:Z,lineEnding:$,link:c(z),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:ie,resourceDestinationString:K,resourceTitleString:q,resource:X,setextHeading:c(O),setextHeadingLineSequence:N,setextHeadingText:C,strong:c(),thematicBreak:c()}};Yq(t,(e||{}).mdastExtensions||[]);const r={};return a;function a(xe){let Ee={type:"root",children:[]};const ze={stack:[Ee],tokenStack:[],config:t,enter:s,exit:u,buffer:o,resume:h,data:r},We=[];let it=-1;for(;++it<xe.length;)if(xe[it][1].type==="listOrdered"||xe[it][1].type==="listUnordered")if(xe[it][0]==="enter")We.push(it);else{const Pt=We.pop();it=n(xe,Pt,it)}for(it=-1;++it<xe.length;){const Pt=t[xe[it][0]];Xq.call(Pt,xe[it][1].type)&&Pt[xe[it][1].type].call(Object.assign({sliceSerialize:xe[it][2].sliceSerialize},ze),xe[it][1])}if(ze.tokenStack.length>0){const Pt=ze.tokenStack[ze.tokenStack.length-1];(Pt[1]||wR).call(ze,void 0,Pt[0])}for(Ee.position={start:ls(xe.length>0?xe[0][1].start:{line:1,column:1,offset:0}),end:ls(xe.length>0?xe[xe.length-2][1].end:{line:1,column:1,offset:0})},it=-1;++it<t.transforms.length;)Ee=t.transforms[it](Ee)||Ee;return Ee}function n(xe,Ee,ze){let We=Ee-1,it=-1,Pt=!1,Jt,xt,Oe,ke;for(;++We<=ze;){const Ie=xe[We];switch(Ie[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ie[0]==="enter"?it++:it--,ke=void 0;break}case"lineEndingBlank":{Ie[0]==="enter"&&(Jt&&!ke&&!it&&!Oe&&(Oe=We),ke=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ke=void 0}if(!it&&Ie[0]==="enter"&&Ie[1].type==="listItemPrefix"||it===-1&&Ie[0]==="exit"&&(Ie[1].type==="listUnordered"||Ie[1].type==="listOrdered")){if(Jt){let Pe=We;for(xt=void 0;Pe--;){const at=xe[Pe];if(at[1].type==="lineEnding"||at[1].type==="lineEndingBlank"){if(at[0]==="exit")continue;xt&&(xe[xt][1].type="lineEndingBlank",Pt=!0),at[1].type="lineEnding",xt=Pe}else if(!(at[1].type==="linePrefix"||at[1].type==="blockQuotePrefix"||at[1].type==="blockQuotePrefixWhitespace"||at[1].type==="blockQuoteMarker"||at[1].type==="listItemIndent"))break}Oe&&(!xt||Oe<xt)&&(Jt._spread=!0),Jt.end=Object.assign({},xt?xe[xt][1].start:Ie[1].end),xe.splice(xt||We,0,["exit",Jt,Ie[2]]),We++,ze++}if(Ie[1].type==="listItemPrefix"){const Pe={type:"listItem",_spread:!1,start:Object.assign({},Ie[1].start),end:void 0};Jt=Pe,xe.splice(We,0,["enter",Pe,Ie[2]]),We++,ze++,Oe=void 0,ke=!0}}}return xe[Ee][1]._spread=Pt,ze}function i(xe,Ee){return ze;function ze(We){s.call(this,xe(We),We),Ee&&Ee.call(this,We)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(xe,Ee,ze){this.stack[this.stack.length-1].children.push(xe),this.stack.push(xe),this.tokenStack.push([Ee,ze||void 0]),xe.position={start:ls(Ee.start),end:void 0}}function c(xe){return Ee;function Ee(ze){xe&&xe.call(this,ze),u.call(this,ze)}}function u(xe,Ee){const ze=this.stack.pop(),We=this.tokenStack.pop();if(We)We[0].type!==xe.type&&(Ee?Ee.call(this,xe,We[0]):(We[1]||wR).call(this,xe,We[0]));else throw new Error("Cannot close `"+xe.type+"` ("+xp({start:xe.start,end:xe.end})+"): itâs not open");ze.position.end=ls(xe.end)}function h(){return MN(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function m(xe){if(this.data.expectingFirstListItemValue){const Ee=this.stack[this.stack.length-2];Ee.start=Number.parseInt(this.sliceSerialize(xe),10),this.data.expectingFirstListItemValue=void 0}}function x(){const xe=this.resume(),Ee=this.stack[this.stack.length-1];Ee.lang=xe}function v(){const xe=this.resume(),Ee=this.stack[this.stack.length-1];Ee.meta=xe}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function b(){const xe=this.resume(),Ee=this.stack[this.stack.length-1];Ee.value=xe.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function S(){const xe=this.resume(),Ee=this.stack[this.stack.length-1];Ee.value=xe.replace(/(\r?\n|\r)$/g,"")}function A(xe){const Ee=this.resume(),ze=this.stack[this.stack.length-1];ze.label=Ee,ze.identifier=ti(this.sliceSerialize(xe)).toLowerCase()}function E(){const xe=this.resume(),Ee=this.stack[this.stack.length-1];Ee.title=xe}function j(){const xe=this.resume(),Ee=this.stack[this.stack.length-1];Ee.url=xe}function P(xe){const Ee=this.stack[this.stack.length-1];if(!Ee.depth){const ze=this.sliceSerialize(xe).length;Ee.depth=ze}}function C(){this.data.setextHeadingSlurpLineEnding=!0}function N(xe){const Ee=this.stack[this.stack.length-1];Ee.depth=this.sliceSerialize(xe).codePointAt(0)===61?1:2}function O(){this.data.setextHeadingSlurpLineEnding=void 0}function k(xe){const ze=this.stack[this.stack.length-1].children;let We=ze[ze.length-1];(!We||We.type!=="text")&&(We=Ne(),We.position={start:ls(xe.start),end:void 0},ze.push(We)),this.stack.push(We)}function B(xe){const Ee=this.stack.pop();Ee.value+=this.sliceSerialize(xe),Ee.position.end=ls(xe.end)}function $(xe){const Ee=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ze=Ee.children[Ee.children.length-1];ze.position.end=ls(xe.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Ee.type)&&(k.call(this,xe),B.call(this,xe))}function _(){this.data.atHardBreak=!0}function W(){const xe=this.resume(),Ee=this.stack[this.stack.length-1];Ee.value=xe}function D(){const xe=this.resume(),Ee=this.stack[this.stack.length-1];Ee.value=xe}function J(){const xe=this.resume(),Ee=this.stack[this.stack.length-1];Ee.value=xe}function z(){const xe=this.stack[this.stack.length-1];if(this.data.inReference){const Ee=this.data.referenceType||"shortcut";xe.type+="Reference",xe.referenceType=Ee,delete xe.url,delete xe.title}else delete xe.identifier,delete xe.label;this.data.referenceType=void 0}function V(){const xe=this.stack[this.stack.length-1];if(this.data.inReference){const Ee=this.data.referenceType||"shortcut";xe.type+="Reference",xe.referenceType=Ee,delete xe.url,delete xe.title}else delete xe.identifier,delete xe.label;this.data.referenceType=void 0}function Z(xe){const Ee=this.sliceSerialize(xe),ze=this.stack[this.stack.length-2];ze.label=qpe(Ee),ze.identifier=ti(Ee).toLowerCase()}function te(){const xe=this.stack[this.stack.length-1],Ee=this.resume(),ze=this.stack[this.stack.length-1];if(this.data.inReference=!0,ze.type==="link"){const We=xe.children;ze.children=We}else ze.alt=Ee}function K(){const xe=this.resume(),Ee=this.stack[this.stack.length-1];Ee.url=xe}function q(){const xe=this.resume(),Ee=this.stack[this.stack.length-1];Ee.title=xe}function X(){this.data.inReference=void 0}function U(){this.data.referenceType="collapsed"}function ie(xe){const Ee=this.resume(),ze=this.stack[this.stack.length-1];ze.label=Ee,ze.identifier=ti(this.sliceSerialize(xe)).toLowerCase(),this.data.referenceType="full"}function se(xe){this.data.characterReferenceType=xe.type}function he(xe){const Ee=this.sliceSerialize(xe),ze=this.data.characterReferenceType;let We;ze?(We=zq(Ee,ze==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):We=IN(Ee);const it=this.stack[this.stack.length-1];it.value+=We}function Y(xe){const Ee=this.stack.pop();Ee.position.end=ls(xe.end)}function F(xe){B.call(this,xe);const Ee=this.stack[this.stack.length-1];Ee.url=this.sliceSerialize(xe)}function ae(xe){B.call(this,xe);const Ee=this.stack[this.stack.length-1];Ee.url="mailto:"+this.sliceSerialize(xe)}function ne(){return{type:"blockquote",children:[]}}function ge(){return{type:"code",lang:null,meta:null,value:""}}function re(){return{type:"inlineCode",value:""}}function oe(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function G(){return{type:"emphasis",children:[]}}function pe(){return{type:"heading",depth:0,children:[]}}function ee(){return{type:"break"}}function M(){return{type:"html",value:""}}function I(){return{type:"image",title:null,url:"",alt:null}}function H(){return{type:"link",title:null,url:"",children:[]}}function ce(xe){return{type:"list",ordered:xe.type==="listOrdered",start:null,spread:xe._spread,children:[]}}function fe(xe){return{type:"listItem",spread:xe._spread,checked:null,children:[]}}function ue(){return{type:"paragraph",children:[]}}function we(){return{type:"strong",children:[]}}function Ne(){return{type:"text",value:""}}function De(){return{type:"thematicBreak"}}}function ls(e){return{line:e.line,column:e.column,offset:e.offset}}function Yq(e,t){let r=-1;for(;++r<t.length;){const a=t[r];Array.isArray(a)?Yq(e,a):Gpe(e,a)}}function Gpe(e,t){let r;for(r in t)if(Xq.call(t,r))switch(r){case"canContainEols":{const a=t[r];a&&e[r].push(...a);break}case"transforms":{const a=t[r];a&&e[r].push(...a);break}case"enter":case"exit":{const a=t[r];a&&Object.assign(e[r],a);break}}}function wR(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+xp({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+xp({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+xp({start:t.start,end:t.end})+") is still open")}function Kpe(e){const t=this;t.parser=r;function r(a){return Upe(a,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Wpe(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function Xpe(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:` 1165`}]}function Ype(e,t){const r=t.value?t.value+` 1166`:"",a={};t.lang&&(a.className=["language-"+t.lang]);let n={type:"element",tagName:"code",properties:a,children:[{type:"text",value:r}]};return t.meta&&(n.data={meta:t.meta}),e.patch(t,n),n=e.applyData(t,n),n={type:"element",tagName:"pre",properties:{},children:[n]},e.patch(t,n),n}function Zpe(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Jpe(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Qpe(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),n=Dd(a.toLowerCase()),i=e.footnoteOrder.indexOf(a);let o,s=e.footnoteCounts.get(a);s===void 0?(s=0,e.footnoteOrder.push(a),o=e.footnoteOrder.length):o=i+1,s+=1,e.footnoteCounts.set(a,s);const c={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+n,id:r+"fnref-"+n+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,c);const u={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,u),e.applyData(t,u)}function ehe(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function the(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function Zq(e,t){const r=t.referenceType;let a="]";if(r==="collapsed"?a+="[]":r==="full"&&(a+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+a}];const n=e.all(t),i=n[0];i&&i.type==="text"?i.value="["+i.value:n.unshift({type:"text",value:"["});const o=n[n.length-1];return o&&o.type==="text"?o.value+=a:n.push({type:"text",value:a}),n}function rhe(e,t){const r=String(t.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return Zq(e,t);const n={src:Dd(a.url||""),alt:t.alt};a.title!==null&&a.title!==void 0&&(n.title=a.title);const i={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,i),e.applyData(t,i)}function ahe(e,t){const r={src:Dd(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const a={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,a),e.applyData(t,a)}function nhe(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const a={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,a),e.applyData(t,a)}function ihe(e,t){const r=String(t.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return Zq(e,t);const n={href:Dd(a.url||"")};a.title!==null&&a.title!==void 0&&(n.title=a.title);const i={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function ohe(e,t){const r={href:Dd(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const a={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function she(e,t,r){const a=e.all(t),n=r?lhe(r):Jq(t),i={},o=[];if(typeof t.checked=="boolean"){const h=a[0];let f;h&&h.type==="element"&&h.tagName==="p"?f=h:(f={type:"element",tagName:"p",properties:{},children:[]},a.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s<a.length;){const h=a[s];(n||s!==0||h.type!=="element"||h.tagName!=="p")&&o.push({type:"text",value:` 1167`}
vendor: 4,838 bytes, lines 1167-1168
1167),h.type==="element"&&h.tagName==="p"&&!n?o.push(...h.children):o.push(h)}const c=a[a.length-1];c&&(n||c.type!=="element"||c.tagName!=="p")&&o.push({type:"text",value:` 1168`});const u={type:"element",tagName:"li",properties:i,children:o};return e.patch(t,u),e.applyData(t,u)}function lhe(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let a=-1;for(;!t&&++a<r.length;)t=Jq(r[a])}return t}function Jq(e){const t=e.spread;return t??e.children.length>1}function che(e,t){const r={},a=e.all(t);let n=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++n<a.length;){const o=a[n];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(a,!0)};return e.patch(t,i),e.applyData(t,i)}function uhe(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function dhe(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function fhe(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function phe(e,t){const r=e.all(t),a=r.shift(),n=[];if(a){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(t.children[0],o),n.push(o)}if(r.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},s=DN(t.children[1]),c=Dq(t.children[t.children.length-1]);s&&c&&(o.position={start:s,end:c}),n.push(o)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(n,!0)};return e.patch(t,i),e.applyData(t,i)}function hhe(e,t,r){const a=r?r.children:void 0,i=(a?a.indexOf(t):1)===0?"th":"td",o=r&&r.type==="table"?r.align:void 0,s=o?o.length:t.children.length;let c=-1;const u=[];for(;++c<s;){const f=t.children[c],m={},x=o?o[c]:void 0;x&&(m.align=x);let v={type:"element",tagName:i,properties:m,children:[]};f&&(v.children=e.all(f),e.patch(f,v),v=e.applyData(f,v)),u.push(v)}const h={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,h),e.applyData(t,h)}function mhe(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const SR=9,ER=32;function ghe(e){const t=String(e),r=/\r?\n|\r/g;let a=r.exec(t),n=0;const i=[];for(;a;)i.push(AR(t.slice(n,a.index),n>0,!0),a[0]),n=a.index+a[0].length,a=r.exec(t);return i.push(AR(t.slice(n),n>0,!1)),i.join("")}function AR(e,t,r){let a=0,n=e.length;if(t){let i=e.codePointAt(a);for(;i===SR||i===ER;)a++,i=e.codePointAt(a)}if(r){let i=e.codePointAt(n-1);for(;i===SR||i===ER;)n--,i=e.codePointAt(n-1)}return n>a?e.slice(a,n):""}function xhe(e,t){const r={type:"text",value:ghe(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function vhe(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const yhe={blockquote:Wpe,break:Xpe,code:Ype,delete:Zpe,emphasis:Jpe,footnoteReference:Qpe,heading:ehe,html:the,imageReference:rhe,image:ahe,inlineCode:nhe,linkReference:ihe,link:ohe,listItem:she,list:che,paragraph:uhe,root:dhe,strong:fhe,table:phe,tableCell:mhe,tableRow:hhe,text:xhe,thematicBreak:vhe,toml:qg,yaml:qg,definition:qg,footnoteDefinition:qg};function qg(){}const Qq=-1,Py=0,yp=1,Hx=2,LN=3,zN=4,FN=5,$N=6,eV=7,tV=8,CR=typeof self=="object"?self:globalThis,bhe=(e,t)=>{const r=(n,i)=>(e.set(i,n),n),a=n=>{if(e.has(n))return e.get(n);const[i,o]=t[n];switch(i){case Py:case Qq:return r(o,n);case yp:{const s=r([],n);for(const c of o)s.push(a(c));return s}case Hx:{const s=r({},n);for(const[c,u]of o)s[a(c)]=a(u);return s}case LN:return r(new Date(o),n);case zN:{const{source:s,flags:c}=o;return r(new RegExp(s,c),n)}case FN:{const s=r(new Map,n);for(const[c,u]of o)s.set(a(c),a(u));return s}case $N:{const s=r(new Set,n);for(const c of o)s.add(a(c));return s}case eV:{const{name:s,message:c}=o;return r(new CR[s](c),n)}case tV:return r(BigInt(o),n);case"BigInt":return r(Object(BigInt(o)),n);case"ArrayBuffer":return r(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:s}=new Uint8Array(o);return r(new DataView(s),o)}}return r(new CR[i](o),n)};return a},PR=e=>bhe(new Map,e)(0),Qc="",{toString:whe}={},{keys:She}=Object,Vf=e=>{const t=typeof e;if(t!=="object"||!e)return[Py,t];const r=whe.call(e).slice(8,-1);switch(r){case"Array":return[yp,Qc];case"Object":return[Hx,Qc];case"Date":return[LN,Qc];case"RegExp":return[zN,Qc];case"Map":return[FN,Qc];case"Set":return[$N,Qc];case"DataView":return[yp,r]}return r.includes("Array")?[yp,r]:r.includes("Error")?[eV,r]:[Hx,r]},Vg=([e,t])=>e===Py&&(t==="function"||t==="symbol"),Ehe=(e,t,r,a)=>{const n=(o,s)=>{const c=a.push(o)-1;return r.set(s,c),c},i=o=>
vendor: 5,481 bytes, lines 1168-1170
1168{if(r.has(o))return r.get(o);let[s,c]=Vf(o);switch(s){case Py:{let h=o;switch(c){case"bigint":s=tV,h=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);h=null;break;case"undefined":return n([Qq],o)}return n([s,h],o)}case yp:{if(c){let m=o;return c==="DataView"?m=new Uint8Array(o.buffer):c==="ArrayBuffer"&&(m=new Uint8Array(o)),n([c,[...m]],o)}const h=[],f=n([s,h],o);for(const m of o)h.push(i(m));return f}case Hx:{if(c)switch(c){case"BigInt":return n([c,o.toString()],o);case"Boolean":case"Number":case"String":return n([c,o.valueOf()],o)}if(t&&"toJSON"in o)return i(o.toJSON());const h=[],f=n([s,h],o);for(const m of She(o))(e||!Vg(Vf(o[m])))&&h.push([i(m),i(o[m])]);return f}case LN:return n([s,o.toISOString()],o);case zN:{const{source:h,flags:f}=o;return n([s,{source:h,flags:f}],o)}case FN:{const h=[],f=n([s,h],o);for(const[m,x]of o)(e||!(Vg(Vf(m))||Vg(Vf(x))))&&h.push([i(m),i(x)]);return f}case $N:{const h=[],f=n([s,h],o);for(const m of o)(e||!Vg(Vf(m)))&&h.push(i(m));return f}}const{message:u}=o;return n([s,{name:c,message:u}],o)};return i},jR=(e,{json:t,lossy:r}={})=>{const a=[];return Ehe(!(t||r),!!t,new Map,a)(e),a},Gx=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?PR(jR(e,t)):structuredClone(e):(e,t)=>PR(jR(e,t));function Ahe(e,t){const r=[{type:"text",value:"â©"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function Che(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Phe(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||Ahe,a=e.options.footnoteBackLabel||Che,n=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let c=-1;for(;++c<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[c]);if(!u)continue;const h=e.all(u),f=String(u.identifier).toUpperCase(),m=Dd(f.toLowerCase());let x=0;const v=[],y=e.footnoteCounts.get(f);for(;y!==void 0&&++x<=y;){v.length>0&&v.push({type:"text",value:" "});let A=typeof r=="string"?r:r(c,x);typeof A=="string"&&(A={type:"text",value:A}),v.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+m+(x>1?"-"+x:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(c,x),className:["data-footnote-backref"]},children:Array.isArray(A)?A:[A]})}const b=h[h.length-1];if(b&&b.type==="element"&&b.tagName==="p"){const A=b.children[b.children.length-1];A&&A.type==="text"?A.value+=" ":b.children.push({type:"text",value:" "}),b.children.push(...v)}else h.push(...v);const S={type:"element",tagName:"li",properties:{id:t+"fn-"+m},children:e.wrap(h,!0)};e.patch(u,S),s.push(S)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...Gx(o),id:"footnote-label"},children:[{type:"text",value:n}]},{type:"text",value:` 1169`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:` 1170`}]}}const jy=(function(e){if(e==null)return khe;if(typeof e=="function")return Ny(e);if(typeof e=="object")return Array.isArray(e)?jhe(e):Nhe(e);if(typeof e=="string")return The(e);throw new Error("Expected function, string, or object as test")});function jhe(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=jy(e[r]);return Ny(a);function a(...n){let i=-1;for(;++i<t.length;)if(t[i].apply(this,n))return!0;return!1}}function Nhe(e){const t=e;return Ny(r);function r(a){const n=a;let i;for(i in e)if(n[i]!==t[i])return!1;return!0}}function The(e){return Ny(t);function t(r){return r&&r.type===e}}function Ny(e){return t;function t(r,a,n){return!!(Dhe(r)&&e.call(this,r,typeof a=="number"?a:void 0,n||void 0))}}function khe(){return!0}function Dhe(e){return e!==null&&typeof e=="object"&&"type"in e}const rV=[],_he=!0,KC=!1,Rhe="skip";function aV(e,t,r,a){let n;typeof t=="function"&&typeof r!="function"?(a=r,r=t):n=t;const i=jy(n),o=a?-1:1;s(e,void 0,[])();function s(c,u,h){const f=c&&typeof c=="object"?c:{};if(typeof f.type=="string"){const x=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(m,"name",{value:"node ("+(c.type+(x?"<"+x+">":""))+")"})}return m;function m(){let x=rV,v,y,b;if((!t||i(c,u,h[h.length-1]||void 0))&&(x=Ohe(r(c,h)),x[0]===KC))return x;if("children"in c&&c.children){const S=c;if(S.children&&x[0]!==Rhe)for(y=(a?S.children.length:-1)+o,b=h.concat(S);y>-1&&y<S.children.length;){const A=S.children[y];if(v=s(A,y,b)(),v[0]===KC)return v;y=typeof v[1]=="number"?v[1]:y+o}}return x}}}function Ohe(e){return Array.isArray(e)?e:typeof e=="number"?[_he,e]:e==null?rV:[e]}function qN(e,t,r,a){let n,i,o;typeof t=="function"&&typeof r!="function"?(i=void 0,o=t,n=r):(i=t,o=r,n=a),aV(e,i,s,n);function s(c,u){const h=u[u.length-1],f=h?h.children.indexOf(c):void 0;return o(c,f,h)}}const WC={}.hasOwnProperty,Mhe={};function Ihe(e,t){const r=t||Mhe,a=new Map,n=new Map,i=new Map,o={...yhe,...r.handlers},s={all:u,applyData:Lhe,definitionById:a,footnoteById:n,footnoteCounts:i,footnoteOrder:[],handlers:o,one:c,options:r,patch:Bhe,wrap:Fhe};return qN(e,function(h){if(h.type==="definition"||h.type==="footnoteDefinition"){const f=h.type==="definition"?a:n,m=String(h.identifier).toUpperCase();f.has(m)||f.set(m,h)}}),s;function c(h,f){const m=h.type,x=s.handlers[m];if(WC.call(s.handlers,m)&&x)return x(s,h,f);
vendor: 11,442 bytes, lines 1170-1174
1170if(s.options.passThrough&&s.options.passThrough.includes(m)){if("children"in h){const{children:y,...b}=h,S=Gx(b);return S.children=s.all(h),S}return Gx(h)}return(s.options.unknownHandler||zhe)(s,h,f)}function u(h){const f=[];if("children"in h){const m=h.children;let x=-1;for(;++x<m.length;){const v=s.one(m[x],h);if(v){if(x&&m[x-1].type==="break"&&(!Array.isArray(v)&&v.type==="text"&&(v.value=NR(v.value)),!Array.isArray(v)&&v.type==="element")){const y=v.children[0];y&&y.type==="text"&&(y.value=NR(y.value))}Array.isArray(v)?f.push(...v):f.push(v)}}}return f}}function Bhe(e,t){e.position&&(t.position=Cde(e))}function Lhe(e,t){let r=t;if(e&&e.data){const a=e.data.hName,n=e.data.hChildren,i=e.data.hProperties;if(typeof a=="string")if(r.type==="element")r.tagName=a;else{const o="children"in r?r.children:[r];r={type:"element",tagName:a,properties:{},children:o}}r.type==="element"&&i&&Object.assign(r.properties,Gx(i)),"children"in r&&r.children&&n!==null&&n!==void 0&&(r.children=n)}return r}function zhe(e,t){const r=t.data||{},a="value"in t&&!(WC.call(r,"hProperties")||WC.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Fhe(e,t){const r=[];let a=-1;for(t&&r.push({type:"text",value:` 1171`});++a<e.length;)a&&r.push({type:"text",value:` 1172`}),r.push(e[a]);return t&&e.length>0&&r.push({type:"text",value:` 1173`}),r}function NR(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function TR(e,t){const r=Ihe(e,t),a=r.one(e,void 0),n=Phe(r),i=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return n&&i.children.push({type:"text",value:` 1174`},n),i}function $he(e,t){return e&&"run"in e?async function(r,a){const n=TR(r,{file:a,...t});await e.run(n,a)}:function(r,a){return TR(r,{file:a,...e||t})}}function kR(e){if(e)throw e}var mw,DR;function qhe(){if(DR)return mw;DR=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,n=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},i=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var h=e.call(u,"constructor"),f=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!h&&!f)return!1;var m;for(m in u);return typeof m>"u"||e.call(u,m)},o=function(u,h){r&&h.name==="__proto__"?r(u,h.name,{enumerable:!0,configurable:!0,value:h.newValue,writable:!0}):u[h.name]=h.newValue},s=function(u,h){if(h==="__proto__")if(e.call(u,h)){if(a)return a(u,h).value}else return;return u[h]};return mw=function c(){var u,h,f,m,x,v,y=arguments[0],b=1,S=arguments.length,A=!1;for(typeof y=="boolean"&&(A=y,y=arguments[1]||{},b=2),(y==null||typeof y!="object"&&typeof y!="function")&&(y={});b<S;++b)if(u=arguments[b],u!=null)for(h in u)f=s(y,h),m=s(u,h),y!==m&&(A&&m&&(i(m)||(x=n(m)))?(x?(x=!1,v=f&&n(f)?f:[]):v=f&&i(f)?f:{},o(y,{name:h,newValue:c(A,v,m)})):typeof m<"u"&&o(y,{name:h,newValue:m}));return y},mw}var Vhe=qhe();const gw=qt(Vhe);function XC(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Uhe(){const e=[],t={run:r,use:a};return t;function r(...n){let i=-1;const o=n.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);s(null,...n);function s(c,...u){const h=e[++i];let f=-1;if(c){o(c);return}for(;++f<n.length;)(u[f]===null||u[f]===void 0)&&(u[f]=n[f]);n=u,h?Hhe(h,s)(...u):o(null,...u)}}function a(n){if(typeof n!="function")throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function Hhe(e,t){let r;return a;function a(...o){const s=e.length>o.length;let c;s&&o.push(n);try{c=e.apply(this,o)}catch(u){const h=u;if(s&&r)throw h;return n(h)}s||(c&&c.then&&typeof c.then=="function"?c.then(i,n):c instanceof Error?n(c):i(c))}function n(o,...s){r||(r=!0,t(o,...s))}function i(o){n(null,o)}}const xi={basename:Ghe,dirname:Khe,extname:Whe,join:Xhe,sep:"/"};function Ghe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Gh(e);let r=0,a=-1,n=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;n--;)if(e.codePointAt(n)===47){if(i){r=n+1;break}}else a<0&&(i=!0,a=n+1);return a<0?"":e.slice(r,a)}if(t===e)return"";let o=-1,s=t.length-1;for(;n--;)if(e.codePointAt(n)===47){if(i){r=n+1;break}}else o<0&&(i=!0,o=n+1),s>-1&&(e.codePointAt(n)===t.codePointAt(s--)?s<0&&(a=n):(s=-1,a=o));return r===a?a=o:a<0&&(a=e.length),e.slice(r,a)}function Khe(e){if(Gh(e),e.length===0)return".";let t=-1,r=e.length,a;for(;--r;)if(e.codePointAt(r)===47){if(a){t=r;break}}else a||(a=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Whe(e){Gh(e);let t=e.length,r=-1,a=0,n=-1,i=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){a=t+1;break}continue}r<0&&(o=!0,r=t+1),s===46?n<0?n=t:i!==1&&(i=1):n>-1&&(i=-1)}return n<0||r<0||i===0||i===1&&n===r-1&&n===a+1?"":e.slice(n,r)}function Xhe(...e){let t=-1,r;for(;++t<e.length;)Gh(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":Yhe(r)}function Yhe(e){Gh(e);const t=e.codePointAt(0)===47;let r=Zhe(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function Zhe(e,t){let r="",a=0,n=-1,i=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else{if(s===47)break;s=47}if(s===47){if(!(n===o-1||i===1))if(n!==o-1&&i===2){if(r.length<2||a!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(c=r.lastIndexOf("/"),c!==r.length-1){c<0?(r="",a=0):(r=r.slice(0,c),a=r.length-1-r.lastIndexOf("/")),n=o,i=0;continue}}else if(r.length>0){r="",a=0,n=o,i=0;continue}}t&&(r=r.length>0?r+"/..":"..",a=2)}else r.length>0?r+="/"+e.slice(n+1,o):r=e.slice(n+1,o),a=o-n-1;n=o,i=0}else s===46&&i>-1?i++:i=-1}return r}function Gh(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Jhe={cwd:Qhe};function Qhe(){return"/"}function YC(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function eme(e){if(typeof e=="string")e=new URL(e);else if(!YC(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return tme(e)}function tme(e){if(e.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const a=t.codePointAt(r+2);if(a===70||a===102){const n=new TypeError("File URL path must not include encoded / characters");throw n.code="ERR_INVALID_FILE_URL_PATH",n}}return decodeURIComponent(t)}const xw=["history","path","basename","stem","extname","dirname"];class nV{constructor(t){let r;t?YC(t)?r={path:t}:typeof t=="string"||rme(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":Jhe.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<xw.length;){const i=xw[a];i in r&&r[i]!==void 0&&r[i]!==null&&(this[i]=i==="history"?[...r[i]]:r[i])}let n;for(n in r)xw.includes(n)||(this[n]=r[n])}get basename(){return typeof this.path=="string"?xi.basename(this.path):void 0}set basename(t){yw(t,"basename"),vw(t,"basename"),this.path=xi.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?xi.dirname(this.path):void 0}set dirname(t){_R(this.basename,"dirname"),this.path=xi.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?xi.extname(this.path):void 0}set extname(t){if(vw(t,"extname"),_R(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=xi.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){YC(t)&&(t=eme(t)),yw(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?xi.basename(this.path,this.extname):void 0}set stem(t){yw(t,"stem"),vw(t,"stem"),this.path=xi.join(this.dirname||"",t+(this.extname||""))}fail(t,r,a){const n=this.message(t,r,a);throw n.fatal=!0,n}info(t,r,a){const n=this.message(t,r,a);return n.fatal=void 0,n}message(t,r,a){const n=new Ea(t,r,a);return this.path&&(n.name=this.path+":"+n.name,n.file=this.path),n.fatal=!1,this.messages.push(n),n}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function vw(e,t){if(e&&e.includes(xi.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+xi.sep+"`")}function yw(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function _R(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function rme(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const ame=(function(e){const a=this.constructor.prototype,n=a[e],i=function(){return n.apply(i,arguments)};return Object.setPrototypeOf(i,a),i}),nme={}.hasOwnProperty;class VN extends ame{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Uhe()}copy(){const t=new VN;let r=-1;for(;++r<this.attachers.length;){const a=this.attachers[r];t.use(...a)}return t.data(gw(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(Sw("data",this.frozen),this.namespace[t]=r,this):nme.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Sw("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const n=r.call(t,...a);typeof n=="function"&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=Ug(t),a=this.parser||this.Parser;return bw("parse",a),a(String(r),r)}process(t,r){const a=this;return this.freeze(),bw("process",this.parser||this.Parser),ww("process",this.compiler||this.Compiler),r?n(void 0,r):new Promise(n);function n(i,o){const s=Ug(t),c=a.parse(s);a.run(c,s,function(h,f,m){if(h||!f||!m)return u(h);const x=f,v=a.stringify(x,m);sme(v)?m.value=v:m.result=v,u(h,m)});function u(h,f){h||!f?o(h):i?i(f):r(void 0,f)}}}processSync(t){let r=!1,a;return this.freeze(),bw("processSync",this.parser||this.Parser),ww("processSync",this.compiler||this.Compiler),this.process(t,n),OR("processSync","process",r),a;function n(i,o){r=!0,kR(i),a=o}}run(t,r,a){RR(t),this.freeze();const n=this.transformers;return!a&&typeof r=="function"&&(a=r,r=void 0),a?i(void 0,a):new Promise(i);function i(o,s){const c=Ug(r);n.run(t,c,u);function u(h,f,m){const x=f||t;h?s(h):o?o(x):a(void 0,x,m)}}}runSync(t,r){let a=!1,n;return this.run(t,r,i),OR("runSync","run",a),n;function i(o,s){kR(o),n=s,a=!0}
vendor: 5,284 bytes, line 1174
1174}stringify(t,r){this.freeze();const a=Ug(r),n=this.compiler||this.Compiler;return ww("stringify",n),RR(t),n(t,a)}use(t,...r){const a=this.attachers,n=this.namespace;if(Sw("use",this.frozen),t!=null)if(typeof t=="function")c(t,r);else if(typeof t=="object")Array.isArray(t)?s(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(u){if(typeof u=="function")c(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[h,...f]=u;c(h,f)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(u.plugins),u.settings&&(n.settings=gw(!0,n.settings,u.settings))}function s(u){let h=-1;if(u!=null)if(Array.isArray(u))for(;++h<u.length;){const f=u[h];i(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function c(u,h){let f=-1,m=-1;for(;++f<a.length;)if(a[f][0]===u){m=f;break}if(m===-1)a.push([u,...h]);else if(h.length>0){let[x,...v]=h;const y=a[m][1];XC(y)&&XC(x)&&(x=gw(!0,y,x)),a[m]=[u,x,...v]}}}}const ime=new VN().freeze();function bw(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function ww(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Sw(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function RR(e){if(!XC(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function OR(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ug(e){return ome(e)?e:new nV(e)}function ome(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function sme(e){return typeof e=="string"||lme(e)}function lme(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const cme="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",MR=[],IR={allowDangerousHtml:!0},ume=/^(https?|ircs?|mailto|xmpp)$/i,dme=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function iV(e){const t=fme(e),r=pme(e);return hme(t.runSync(t.parse(r),r),e)}function fme(e){const t=e.rehypePlugins||MR,r=e.remarkPlugins||MR,a=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...IR}:IR;return ime().use(Kpe).use(r).use($he,a).use(t)}function pme(e){const t=e.children||"",r=new nV;return typeof t=="string"&&(r.value=t),r}function hme(e,t){const r=t.allowedElements,a=t.allowElement,n=t.components,i=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||mme;for(const h of dme)Object.hasOwn(t,h.from)&&(""+h.from+(h.to?"use `"+h.to+"` instead":"remove it")+cme+h.id,void 0);return qN(e,u),kde(e,{Fragment:p.Fragment,components:n,ignoreInvalidStyle:!0,jsx:p.jsx,jsxs:p.jsxs,passKeys:!0,passNode:!0});function u(h,f,m){if(h.type==="raw"&&m&&typeof f=="number")return o?m.children.splice(f,1):m.children[f]={type:"text",value:h.value},f;if(h.type==="element"){let x;for(x in fw)if(Object.hasOwn(fw,x)&&Object.hasOwn(h.properties,x)){const v=h.properties[x],y=fw[x];(y===null||y.includes(h.tagName))&&(h.properties[x]=c(String(v||""),x,h))}}if(h.type==="element"){let x=r?!r.includes(h.tagName):i?i.includes(h.tagName):!1;if(!x&&a&&typeof f=="number"&&(x=!a(h,f,m)),x&&m&&typeof f=="number")return s&&h.children?m.children.splice(f,1,...h.children):m.children.splice(f,1),f}}}function mme(e){const t=e.indexOf(":"),r=e.indexOf("?"),a=e.indexOf("#"),n=e.indexOf("/");return t===-1||n!==-1&&t>n||r!==-1&&t>r||a!==-1&&t>a||ume.test(e.slice(0,t))?e:""}function BR(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let a=0,n=r.indexOf(t);for(;n!==-1;)a++,n=r.indexOf(t,n+t.length);return a}function gme(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function xme(e,t,r){const n=jy((r||{}).ignore||[]),i=vme(t);let o=-1;for(;++o<i.length;)aV(e,"text",s);function s(u,h){let f=-1,m;
vendor: 10,960 bytes, lines 1174-1182
1174for(;++f<h.length;){const x=h[f],v=m?m.children:void 0;if(n(x,v?v.indexOf(x):void 0,m))return;m=x}if(m)return c(u,h)}function c(u,h){const f=h[h.length-1],m=i[o][0],x=i[o][1];let v=0;const b=f.children.indexOf(u);let S=!1,A=[];m.lastIndex=0;let E=m.exec(u.value);for(;E;){const j=E.index,P={index:E.index,input:E.input,stack:[...h,u]};let C=x(...E,P);if(typeof C=="string"&&(C=C.length>0?{type:"text",value:C}:void 0),C===!1?m.lastIndex=j+1:(v!==j&&A.push({type:"text",value:u.value.slice(v,j)}),Array.isArray(C)?A.push(...C):C&&A.push(C),v=j+E[0].length,S=!0),!m.global)break;E=m.exec(u.value)}return S?(v<u.value.length&&A.push({type:"text",value:u.value.slice(v)}),f.children.splice(b,1,...A)):A=[u],b+A.length}}function vme(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let a=-1;for(;++a<r.length;){const n=r[a];t.push([yme(n[0]),bme(n[1])])}return t}function yme(e){return typeof e=="string"?new RegExp(gme(e),"g"):e}function bme(e){return typeof e=="function"?e:function(){return e}}const Ew="phrasing",Aw=["autolink","link","image","label"];function wme(){return{transforms:[Nme],enter:{literalAutolink:Eme,literalAutolinkEmail:Cw,literalAutolinkHttp:Cw,literalAutolinkWww:Cw},exit:{literalAutolink:jme,literalAutolinkEmail:Pme,literalAutolinkHttp:Ame,literalAutolinkWww:Cme}}}function Sme(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ew,notInConstruct:Aw},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ew,notInConstruct:Aw},{character:":",before:"[ps]",after:"\\/",inConstruct:Ew,notInConstruct:Aw}]}}function Eme(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Cw(e){this.config.enter.autolinkProtocol.call(this,e)}function Ame(e){this.config.exit.autolinkProtocol.call(this,e)}function Cme(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Pme(e){this.config.exit.autolinkEmail.call(this,e)}function jme(e){this.exit(e)}function Nme(e){xme(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Tme],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),kme]],{ignore:["link","linkReference"]})}function Tme(e,t,r,a,n){let i="";if(!oV(n)||(/^w/i.test(t)&&(r=t+r,t="",i="http://"),!Dme(r)))return!1;const o=_me(r+a);if(!o[0])return!1;const s={type:"link",title:null,url:i+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function kme(e,t,r,a){return!oV(a,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function Dme(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function _me(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],a=r.indexOf(")");const n=BR(e,"(");let i=BR(e,")");for(;a!==-1&&n>i;)e+=r.slice(0,a+1),r=r.slice(a+1),a=r.indexOf(")"),i++;return[e,r]}function oV(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||ql(r)||Ay(r))&&(!t||r!==47)}sV.peek=$me;function Rme(){this.buffer()}function Ome(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Mme(){this.buffer()}function Ime(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Bme(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=ti(this.sliceSerialize(e)).toLowerCase(),r.label=t}function Lme(e){this.exit(e)}function zme(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=ti(this.sliceSerialize(e)).toLowerCase(),r.label=t}function Fme(e){this.exit(e)}function $me(){return"["}function sV(e,t,r,a){const n=r.createTracker(a);let i=n.move("[^");const o=r.enter("footnoteReference"),s=r.enter("reference");return i+=n.move(r.safe(r.associationId(e),{after:"]",before:i})),s(),o(),i+=n.move("]"),i}function qme(){return{enter:{gfmFootnoteCallString:Rme,gfmFootnoteCall:Ome,gfmFootnoteDefinitionLabelString:Mme,gfmFootnoteDefinition:Ime},exit:{gfmFootnoteCallString:Bme,gfmFootnoteCall:Lme,gfmFootnoteDefinitionLabelString:zme,gfmFootnoteDefinition:Fme}}}function Vme(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:sV},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(a,n,i,o){const s=i.createTracker(o);let c=s.move("[^");const u=i.enter("footnoteDefinition"),h=i.enter("label");return c+=s.move(i.safe(i.associationId(a),{before:c,after:"]"})),h(),c+=s.move("]:"),a.children&&a.children.length>0&&(s.shift(4),c+=s.move((t?` 1175`:" ")+i.indentLines(i.containerFlow(a,s.current()),t?lV:Ume))),u(),c}}function Ume(e,t,r){return t===0?e:lV(e,t,r)}function lV(e,t,r){return(r?"":" ")+e}const Hme=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];cV.peek=Yme;function Gme(){return{canContainEols:["delete"],enter:{strikethrough:Wme},exit:{strikethrough:Xme}}}function Kme(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Hme}],handlers:{delete:cV}}}function Wme(e){this.enter({type:"delete",children:[]},e)}function Xme(e){this.exit(e)}function cV(e,t,r,a){const n=r.createTracker(a),i=r.enter("strikethrough");let o=n.move("~~");return o+=r.containerPhrasing(e,{...n.current(),before:o,after:"~"}),o+=n.move("~~"),i(),o}function Yme(){return"~"}function Zme(e){return e.length}function Jme(e,t){const r=t||{},a=(r.align||[]).concat(),n=r.stringLength||Zme,i=[],o=[],s=[],c=[];let u=0,h=-1;for(;++h<e.length;){const y=[],b=[];let S=-1;for(e[h].length>u&&(u=e[h].length);++S<e[h].length;){const A=Qme(e[h][S]);if(r.alignDelimiters!==!1){const E=n(A);b[S]=E,(c[S]===void 0||E>c[S])&&(c[S]=E)}y.push(A)}o[h]=y,s[h]=b}let f=-1;if(typeof a=="object"&&"length"in a)for(;++f<u;)i[f]=LR(a[f]);else{const y=LR(a);for(;++f<u;)i[f]=y}f=-1;const m=[],x=[];for(;++f<u;){const y=i[f];let b="",S="";y===99?(b=":",S=":"):y===108?b=":":y===114&&(S=":");let A=r.alignDelimiters===!1?1:Math.max(1,c[f]-b.length-S.length);const E=b+"-".repeat(A)+S;r.alignDelimiters!==!1&&(A=b.length+A+S.length,A>c[f]&&(c[f]=A),x[f]=A),m[f]=E}o.splice(1,0,m),s.splice(1,0,x),h=-1;const v=[];for(;++h<o.length;){const y=o[h],b=s[h];f=-1;const S=[];for(;++f<u;){const A=y[f]||"";let E="",j="";if(r.alignDelimiters!==!1){const P=c[f]-(b[f]||0),C=i[f];C===114?E=" ".repeat(P):C===99?P%2?(E=" ".repeat(P/2+.5),j=" ".repeat(P/2-.5)):(E=" ".repeat(P/2),j=E):j=" ".repeat(P)}r.delimiterStart!==!1&&!f&&S.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&A==="")&&(r.delimiterStart!==!1||f)&&S.push(" "),r.alignDelimiters!==!1&&S.push(E),S.push(A),r.alignDelimiters!==!1&&S.push(j),r.padding!==!1&&S.push(" "),(r.delimiterEnd!==!1||f!==u-1)&&S.push("|")}v.push(r.delimiterEnd===!1?S.join("").replace(/ +$/,""):S.join(""))}return v.join(` 1176`)}function Qme(e){return e==null?"":String(e)}function LR(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function ege(e,t,r,a){const n=r.enter("blockquote"),i=r.createTracker(a);i.move("> "),i.shift(2);const o=r.indentLines(r.containerFlow(e,i.current()),tge);return n(),o}function tge(e,t,r){return">"+(r?"":" ")+e}function rge(e,t){return zR(e,t.inConstruct,!0)&&!zR(e,t.notInConstruct,!1)}function zR(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let a=-1;for(;++a<t.length;)if(e.includes(t[a]))return!0;return!1}function FR(e,t,r,a){let n=-1;for(;++n<r.unsafe.length;)if(r.unsafe[n].character===` 1177`&&rge(r.stack,r.unsafe[n]))return/[ \t]/.test(a.before)?"":" ";return`\\ 1178`}function age(e,t){const r=String(e);let a=r.indexOf(t),n=a,i=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;a!==-1;)a===n?++i>o&&(o=i):i=1,n=a+t.length,a=r.indexOf(t,n);return o}function nge(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function ige(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function oge(e,t,r,a){const n=ige(r),i=e.value||"",o=n==="`"?"GraveAccent":"Tilde";if(nge(e,r)){const f=r.enter("codeIndented"),m=r.indentLines(i,sge);return f(),m}const s=r.createTracker(a),c=n.repeat(Math.max(age(i,n)+1,3)),u=r.enter("codeFenced");let h=s.move(c);if(e.lang){const f=r.enter(`codeFencedLang${o}`);h+=s.move(r.safe(e.lang,{before:h,after:" ",encode:["`"],...s.current()})),f()}if(e.lang&&e.meta){const f=r.enter(`codeFencedMeta${o}`);h+=s.move(" "),h+=s.move(r.safe(e.meta,{before:h,after:` 1179`,encode:["`"],...s.current()})),f()}return h+=s.move(` 1180`),i&&(h+=s.move(i+` 1181`)),h+=s.move(c),u(),h}function sge(e,t,r){return(r?"":" ")+e}function UN(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function lge(e,t,r,a){const n=UN(r),i=n==='"'?"Quote":"Apostrophe",o=r.enter("definition");let s=r.enter("label");const c=r.createTracker(a);let u=c.move("[");return u+=c.move(r.safe(r.associationId(e),{before:u,after:"]",...c.current()})),u+=c.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),u+=c.move("<"),u+=c.move(r.safe(e.url,{before:u,after:">",...c.current()})),u+=c.move(">")):(s=r.enter("destinationRaw"),u+=c.move(r.safe(e.url,{before:u,after:e.title?" ":` 1182`,...c.current()}))),s(),e.title&&(s=r.enter(`title${i}`),u+=c.move(" "+n),u+=c.move(r.safe(e.title,{before:u,after:n,...c.current()})),u+=c.move(n),s()),o(),u}function cge(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Vp(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Kx(e,t,r){const a=qu(e),n=qu(t);return a===void 0?n===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:n===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:a===1?n===void 0?{inside:!1,outside:!1}:n===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:n===void 0?{inside:!1,outside:!1}:n===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}uV.peek=uge;function uV(e,t,r,a){const n=cge(r),i=r.enter("emphasis"),o=r.createTracker(a),s=o.move(n);let c=o.move(r.containerPhrasing(e,{after:n,before:s,...o.current()}));const u=c.charCodeAt(0),h=Kx(a.before.charCodeAt(a.before.length-1),u,n);h.inside&&(c=Vp(u)+c.slice(1));const f=c.charCodeAt(c.length-1),m=Kx(a.after.charCodeAt(0),f,n);m.inside&&(c=c.slice(0,-1)+Vp(f));const x=o.move(n);return i(),r.attentionEncodeSurroundingInfo={after:m.outside,before:h.outside},s+c+x}function uge(e,t,r){return r.options.emphasis||"*"}function dge(e,t){let r=!1;
vendor: 7,826 bytes, lines 1182-1187
1182return qN(e,function(a){if("value"in a&&/\r?\n|\r/.test(a.value)||a.type==="break")return r=!0,KC}),!!((!e.depth||e.depth<3)&&MN(e)&&(t.options.setext||r))}function fge(e,t,r,a){const n=Math.max(Math.min(6,e.depth||1),1),i=r.createTracker(a);if(dge(e,r)){const h=r.enter("headingSetext"),f=r.enter("phrasing"),m=r.containerPhrasing(e,{...i.current(),before:` 1183`,after:` 1184`});return f(),h(),m+` 1185`+(n===1?"=":"-").repeat(m.length-(Math.max(m.lastIndexOf("\r"),m.lastIndexOf(` 1186`))+1))}const o="#".repeat(n),s=r.enter("headingAtx"),c=r.enter("phrasing");i.move(o+" ");let u=r.containerPhrasing(e,{before:"# ",after:` 1187`,...i.current()});return/^[\t ]/.test(u)&&(u=Vp(u.charCodeAt(0))+u.slice(1)),u=u?o+" "+u:o,r.options.closeAtx&&(u+=" "+o),c(),s(),u}dV.peek=pge;function dV(e){return e.value||""}function pge(){return"<"}fV.peek=hge;function fV(e,t,r,a){const n=UN(r),i=n==='"'?"Quote":"Apostrophe",o=r.enter("image");let s=r.enter("label");const c=r.createTracker(a);let u=c.move("![");return u+=c.move(r.safe(e.alt,{before:u,after:"]",...c.current()})),u+=c.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),u+=c.move("<"),u+=c.move(r.safe(e.url,{before:u,after:">",...c.current()})),u+=c.move(">")):(s=r.enter("destinationRaw"),u+=c.move(r.safe(e.url,{before:u,after:e.title?" ":")",...c.current()}))),s(),e.title&&(s=r.enter(`title${i}`),u+=c.move(" "+n),u+=c.move(r.safe(e.title,{before:u,after:n,...c.current()})),u+=c.move(n),s()),u+=c.move(")"),o(),u}function hge(){return"!"}pV.peek=mge;function pV(e,t,r,a){const n=e.referenceType,i=r.enter("imageReference");let o=r.enter("label");const s=r.createTracker(a);let c=s.move("![");const u=r.safe(e.alt,{before:c,after:"]",...s.current()});c+=s.move(u+"]["),o();const h=r.stack;r.stack=[],o=r.enter("reference");const f=r.safe(r.associationId(e),{before:c,after:"]",...s.current()});return o(),r.stack=h,i(),n==="full"||!u||u!==f?c+=s.move(f+"]"):n==="shortcut"?c=c.slice(0,-1):c+=s.move("]"),c}function mge(){return"!"}hV.peek=gge;function hV(e,t,r){let a=e.value||"",n="`",i=-1;for(;new RegExp("(^|[^`])"+n+"([^`]|$)").test(a);)n+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++i<r.unsafe.length;){const o=r.unsafe[i],s=r.compilePattern(o);let c;if(o.atBreak)for(;c=s.exec(a);){let u=c.index;a.charCodeAt(u)===10&&a.charCodeAt(u-1)===13&&u--,a=a.slice(0,u)+" "+a.slice(c.index+1)}}return n+a+n}function gge(){return"`"}function mV(e,t){const r=MN(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}gV.peek=xge;function gV(e,t,r,a){const n=UN(r),i=n==='"'?"Quote":"Apostrophe",o=r.createTracker(a);let s,c;if(mV(e,r)){const h=r.stack;r.stack=[],s=r.enter("autolink");let f=o.move("<");return f+=o.move(r.containerPhrasing(e,{before:f,after:">",...o.current()})),f+=o.move(">"),s(),r.stack=h,f}s=r.enter("link"),c=r.enter("label");let u=o.move("[");return u+=o.move(r.containerPhrasing(e,{before:u,after:"](",...o.current()})),u+=o.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=r.enter("destinationLiteral"),u+=o.move("<"),u+=o.move(r.safe(e.url,{before:u,after:">",...o.current()})),u+=o.move(">")):(c=r.enter("destinationRaw"),u+=o.move(r.safe(e.url,{before:u,after:e.title?" ":")",...o.current()}))),c(),e.title&&(c=r.enter(`title${i}`),u+=o.move(" "+n),u+=o.move(r.safe(e.title,{before:u,after:n,...o.current()})),u+=o.move(n),c()),u+=o.move(")"),s(),u}function xge(e,t,r){return mV(e,r)?"<":"["}xV.peek=vge;function xV(e,t,r,a){const n=e.referenceType,i=r.enter("linkReference");let o=r.enter("label");const s=r.createTracker(a);let c=s.move("[");const u=r.containerPhrasing(e,{before:c,after:"]",...s.current()});c+=s.move(u+"]["),o();const h=r.stack;r.stack=[],o=r.enter("reference");const f=r.safe(r.associationId(e),{before:c,after:"]",...s.current()});return o(),r.stack=h,i(),n==="full"||!u||u!==f?c+=s.move(f+"]"):n==="shortcut"?c=c.slice(0,-1):c+=s.move("]"),c}function vge(){return"["}function HN(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function yge(e){const t=HN(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}function bge(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function vV(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function wge(e,t,r,a){const n=r.enter("list"),i=r.bulletCurrent;let o=e.ordered?bge(r):HN(r);const s=e.ordered?o==="."?")":".":yge(r);let c=t&&r.bulletLastUsed?o===r.bulletLastUsed:!1;if(!e.ordered){const h=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&h&&(!h.children||!h.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(c=!0),vV(r)===o&&h){let f=-1;for(;++f<e.children.length;){const m=e.children[f];if(m&&m.type==="listItem"&&m.children&&m.children[0]&&m.children[0].type==="thematicBreak"){c=!0;break}}}}c&&(o=s),r.bulletCurrent=o;const u=r.containerFlow(e,a);return r.bulletLastUsed=o,r.bulletCurrent=i,n(),u}function Sge(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function Ege(e,t,r,a){const n=Sge(r);let i=r.bulletCurrent||HN(r);t&&t.type==="list"&&t.ordered&&(i=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+i);let o=i.length+1;(n==="tab"||n==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const s=r.createTracker(a);s.move(i+" ".repeat(o-i.length)),s.shift(o);const c=r.enter("listItem"),u=r.indentLines(r.containerFlow(e,s.current()),h);return c(),u;function h(f,m,x){return m?(x?"":" ".repeat(o))+f:(x?i:i+" ".repeat(o-i.length))+f}}function Age(e,t,r,a){const n=r.enter("paragraph"),i=r.enter("phrasing"),o=r.containerPhrasing(e,a);return i(),n(),o}const Cge=jy(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Pge(e,t,r,a){return(e.children.some(function(o){return Cge(o)})?r.containerPhrasing:r.containerFlow).call(r,e,a)}function jge(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}yV.peek=Nge;function yV(e,t,r,a){const n=jge(r),i=r.enter("strong"),o=r.createTracker(a),s=o.move(n+n);let c=o.move(r.containerPhrasing(e,{after:n,before:s,...o.current()}));const u=c.charCodeAt(0),h=Kx(a.before.charCodeAt(a.before.length-1),u,n);h.inside&&(c=Vp(u)+c.slice(1));const f=c.charCodeAt(c.length-1),m=Kx(a.after.charCodeAt(0),f,n);m.inside&&(c=c.slice(0,-1)+Vp(f));const x=o.move(n+n);return i(),r.attentionEncodeSurroundingInfo={after:m.outside,before:h.outside},s+c+x}function Nge(e,t,r){return r.options.strong||"*"}
vendor: 6,401 bytes, lines 1187-1189
1187function Tge(e,t,r,a){return r.safe(e.value,a)}function kge(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Dge(e,t,r){const a=(vV(r)+(r.options.ruleSpaces?" ":"")).repeat(kge(r));return r.options.ruleSpaces?a.slice(0,-1):a}const bV={blockquote:ege,break:FR,code:oge,definition:lge,emphasis:uV,hardBreak:FR,heading:fge,html:dV,image:fV,imageReference:pV,inlineCode:hV,link:gV,linkReference:xV,list:wge,listItem:Ege,paragraph:Age,root:Pge,strong:yV,text:Tge,thematicBreak:Dge};function _ge(){return{enter:{table:Rge,tableData:$R,tableHeader:$R,tableRow:Mge},exit:{codeText:Ige,table:Oge,tableData:Pw,tableHeader:Pw,tableRow:Pw}}}function Rge(e){const t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function Oge(e){this.exit(e),this.data.inTable=void 0}function Mge(e){this.enter({type:"tableRow",children:[]},e)}function Pw(e){this.exit(e)}function $R(e){this.enter({type:"tableCell",children:[]},e)}function Ige(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Bge));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function Bge(e,t){return t==="|"?t:e}function Lge(e){const t=e||{},r=t.tableCellPadding,a=t.tablePipeAlign,n=t.stringLength,i=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` 1188`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:m,table:o,tableCell:c,tableRow:s}};function o(x,v,y,b){return u(h(x,y,b),x.align)}function s(x,v,y,b){const S=f(x,y,b),A=u([S]);return A.slice(0,A.indexOf(` 1189`))}function c(x,v,y,b){const S=y.enter("tableCell"),A=y.enter("phrasing"),E=y.containerPhrasing(x,{...b,before:i,after:i});return A(),S(),E}function u(x,v){return Jme(x,{align:v,alignDelimiters:a,padding:r,stringLength:n})}function h(x,v,y){const b=x.children;let S=-1;const A=[],E=v.enter("table");for(;++S<b.length;)A[S]=f(b[S],v,y);return E(),A}function f(x,v,y){const b=x.children;let S=-1;const A=[],E=v.enter("tableRow");for(;++S<b.length;)A[S]=c(b[S],x,v,y);return E(),A}function m(x,v,y){let b=bV.inlineCode(x,v,y);return y.stack.includes("tableCell")&&(b=b.replace(/\|/g,"\\$&")),b}}function zge(){return{exit:{taskListCheckValueChecked:qR,taskListCheckValueUnchecked:qR,paragraph:$ge}}}function Fge(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:qge}}}function qR(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function $ge(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const a=r.children[0];if(a&&a.type==="text"){const n=t.children;let i=-1,o;for(;++i<n.length;){const s=n[i];if(s.type==="paragraph"){o=s;break}}o===r&&(a.value=a.value.slice(1),a.value.length===0?r.children.shift():r.position&&a.position&&typeof a.position.start.offset=="number"&&(a.position.start.column++,a.position.start.offset++,r.position.start=Object.assign({},a.position.start)))}}this.exit(e)}function qge(e,t,r,a){const n=e.children[0],i=typeof e.checked=="boolean"&&n&&n.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",s=r.createTracker(a);i&&s.move(o);let c=bV.listItem(e,t,r,{...a,...s.current()});return i&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),c;function u(h){return h+o}}function Vge(){return[wme(),qme(),Gme(),_ge(),zge()]}function Uge(e){return{extensions:[Sme(),Vme(e),Kme(),Lge(e),Fge()]}}const Hge={tokenize:Zge,partial:!0},wV={tokenize:Jge,partial:!0},SV={tokenize:Qge,partial:!0},EV={tokenize:exe,partial:!0},Gge={tokenize:txe,partial:!0},AV={name:"wwwAutolink",tokenize:Xge,previous:PV},CV={name:"protocolAutolink",tokenize:Yge,previous:jV},Ro={name:"emailAutolink",tokenize:Wge,previous:NV},Ii={};function Kge(){return{text:Ii}}let sl=48;for(;sl<123;)Ii[sl]=Ro,sl++,sl===58?sl=65:sl===91&&(sl=97);Ii[43]=Ro;Ii[45]=Ro;Ii[46]=Ro;Ii[95]=Ro;Ii[72]=[Ro,CV];Ii[104]=[Ro,CV];Ii[87]=[Ro,AV];Ii[119]=[Ro,AV];function Wge(e,t,r){const a=this;let n,i;return o;function o(f){return!ZC(f)||!NV.call(a,a.previous)||GN(a.events)?r(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(f))}function s(f){return ZC(f)?(e.consume(f),s):f===64?(e.consume(f),c):r(f)}function c(f){return f===46?e.check(Gge,h,u)(f):f===45||f===95||ba(f)?(i=!0,e.consume(f),c):h(f)}function u(f){return e.consume(f),n=!0,c}function h(f){return i&&n&&Pa(a.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):r(f)}}function Xge(e,t,r){const a=this;return n;function n(o){return o!==87&&o!==119||!PV.call(a,a.previous)||GN(a.events)?r(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Hge,e.attempt(wV,e.attempt(SV,i),r),r)(o))}function i(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function Yge(e,t,r){const a=this;let n="",i=!1;return o;function o(f){return(f===72||f===104)&&jV.call(a,a.previous)&&!GN(a.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),n+=String.fromCodePoint(f),e.consume(f),s):r(f)}function s(f){if(Pa(f)&&n.length<5)return n+=String.fromCodePoint(f),e.consume(f),s;if(f===58){const m=n.toLowerCase();if(m==="http"||m==="https")return e.consume(f),c}return r(f)}function c(f){return f===47?(e.consume(f),i?u:(i=!0,c)):r(f)}function u(f){return f===null||Ux(f)||lr(f)||ql(f)||Ay(f)?r(f):e.attempt(wV,e.attempt(SV,h),r)(f)}function h(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function Zge(e,t,r){let a=0;return n;function n(o){return(o===87||o===119)&&a<3?(a++,e.consume(o),n):o===46&&a===3?(e.consume(o),i):r(o)}function i(o){return o===null?r(o):t(o)}}function Jge(e,t,r){let a,n,i;return o;function o(u){return u===46||u===95?e.check(EV,c,s)(u):u===null||lr(u)||ql(u)||u!==45&&Ay(u)?c(u):(i=!0,e.consume(u),o)}function s(u){return u===95?a=!0:(n=a,a=void 0),e.consume(u),o}function c(u){return n||a||!i?r(u):t(u)}}function Qge(e,t){let r=0,a=0;return n;function n(o){return o===40?(r++,e.consume(o),n):o===41&&a<r?i(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(EV,t,i
vendor: 7,519 bytes, line 1189
1189)(o):o===null||lr(o)||ql(o)?t(o):(e.consume(o),n)}function i(o){return o===41&&a++,e.consume(o),n}}function exe(e,t,r){return a;function a(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),a):s===38?(e.consume(s),i):s===93?(e.consume(s),n):s===60||s===null||lr(s)||ql(s)?t(s):r(s)}function n(s){return s===null||s===40||s===91||lr(s)||ql(s)?t(s):a(s)}function i(s){return Pa(s)?o(s):r(s)}function o(s){return s===59?(e.consume(s),a):Pa(s)?(e.consume(s),o):r(s)}}function txe(e,t,r){return a;function a(i){return e.consume(i),n}function n(i){return ba(i)?r(i):t(i)}}function PV(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||lr(e)}function jV(e){return!Pa(e)}function NV(e){return!(e===47||ZC(e))}function ZC(e){return e===43||e===45||e===46||e===95||ba(e)}function GN(e){let t=e.length,r=!1;for(;t--;){const a=e[t][1];if((a.type==="labelLink"||a.type==="labelImage")&&!a._balanced){r=!0;break}if(a._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const rxe={tokenize:uxe,partial:!0};function axe(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:sxe,continuation:{tokenize:lxe},exit:cxe}},text:{91:{name:"gfmFootnoteCall",tokenize:oxe},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:nxe,resolveTo:ixe}}}}function nxe(e,t,r){const a=this;let n=a.events.length;const i=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let o;for(;n--;){const c=a.events[n][1];if(c.type==="labelImage"){o=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return s;function s(c){if(!o||!o._balanced)return r(c);const u=ti(a.sliceSerialize({start:o.end,end:a.now()}));return u.codePointAt(0)!==94||!i.includes(u.slice(1))?r(c):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),t(c))}}function ixe(e,t){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const a={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},n={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};n.end.column++,n.end.offset++,n.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},n.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},s=[e[r+1],e[r+2],["enter",a,t],e[r+3],e[r+4],["enter",n,t],["exit",n,t],["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",a,t]];return e.splice(r,e.length-r+1,...s),e}function oxe(e,t,r){const a=this,n=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let i=0,o;return s;function s(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),c}function c(f){return f!==94?r(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(f){if(i>999||f===93&&!o||f===null||f===91||lr(f))return r(f);if(f===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return n.includes(ti(a.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(f)}return lr(f)||(o=!0),i++,e.consume(f),f===92?h:u}function h(f){return f===91||f===92||f===93?(e.consume(f),i++,u):u(f)}}function sxe(e,t,r){const a=this,n=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let i,o=0,s;return c;function c(v){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(v){return v===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):r(v)}function h(v){if(o>999||v===93&&!s||v===null||v===91||lr(v))return r(v);if(v===93){e.exit("chunkString");const y=e.exit("gfmFootnoteDefinitionLabelString");return i=ti(a.sliceSerialize(y)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return lr(v)||(s=!0),o++,e.consume(v),v===92?f:h}function f(v){return v===91||v===92||v===93?(e.consume(v),o++,h):h(v)}function m(v){return v===58?(e.enter("definitionMarker"),e.consume(v),e.exit("definitionMarker"),n.includes(i)||n.push(i),Ft(e,x,"gfmFootnoteDefinitionWhitespace")):r(v)}function x(v){return t(v)}}function lxe(e,t,r){return e.check(Hh,t,e.attempt(rxe,t,r))}function cxe(e){e.exit("gfmFootnoteDefinition")}function uxe(e,t,r){const a=this;return Ft(e,n,"gfmFootnoteDefinitionIndent",5);function n(i){const o=a.events[a.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(i):r(i)}}function dxe(e){let r=(e||{}).singleTilde;const a={name:"strikethrough",tokenize:i,resolveAll:n};return r==null&&(r=!0),{text:{126:a},insideSpan:{null:[a]},attentionMarkers:{null:[126]}};function n(o,s){let c=-1;for(;++c<o.length;)if(o[c][0]==="enter"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._close){let u=c;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[c][1].end.offset-o[c][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[c][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";const h={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[c][1].end)},f={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[c][1].start)},m=[["enter",h,s],["enter",o[u][1],s],["exit",o[u][1],s],["enter",f,s]],x=s.parser.constructs.insideSpan.null;x&&hn(m,m.length,0,Cy(x,o.slice(u+1,c),s)),hn(m,m.length,0,[["exit",f,s],["enter",o[c][1],s],["exit",o[c][1],s],["exit",h,s]]),hn(o,u-1,c-u+3,m),c=u+m.length-2;break}}for(c=-1;++c<o.length;)o[c][1].type==="strikethroughSequenceTemporary"&&(o[c][1].type="data");return o}function i(o,s,c){const u=this.previous,h=this.events;let f=0;return m;function m(v){return u===126&&h[h.length-1][1].type!=="characterEscape"?c(v):(o.enter("strikethroughSequenceTemporary"),x(v))}function x(v){const y=qu(u);if(v===126)return f>1?c(v):(o.consume(v),f++,x);if(f<2&&!r)return c(v);const b=o.exit("strikethroughSequenceTemporary"),S=qu(v);return b._open=!S||S===2&&!!y,b._close=!y||y===2&&!!S,s(v)}}}class fxe{constructor(){this.map=[]}add(t,r,a){pxe(this,t,r,a)}consume(t){if(this.map.sort(function(i,o){return i[0]-o[0]}),this.map.length===0)return;let r=this.map.length;const a=[];for(;r>0;)r-=1,a.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];a.push(t.slice()),t.length=0;let n=a.pop();for(;n;){for(const i of n)t.push(i);n=a.pop()}this.map.length=0}}function pxe(e,t,r,a){let n=0;if(!(r===0&&a.length===0)){for(;n<e.map.length;){if(e.map[n][0]===t){e.map[n][1]+=r,e.map[n][2].push(...a);return}n+=1}e.map.push([t,r,a])}}function hxe(e,t){let r=!1;const a=[];for(;t<e.length;){const n=e[t];if(r){if(n[0]==="enter")n[1].type==="tableContent"&&a.push(e[t+1][1].type==="tableDelimiterMarker"?"left"
vendor: 4,360 bytes, line 1189
1189:"none");else if(n[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const i=a.length-1;a[i]=a[i]==="left"?"center":"right"}}else if(n[1].type==="tableDelimiterRow")break}else n[0]==="enter"&&n[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return a}function mxe(){return{flow:{null:{name:"table",tokenize:gxe,resolveAll:xxe}}}}function gxe(e,t,r){const a=this;let n=0,i=0,o;return s;function s(B){let $=a.events.length-1;for(;$>-1;){const D=a.events[$][1].type;if(D==="lineEnding"||D==="linePrefix")$--;else break}const _=$>-1?a.events[$][1].type:null,W=_==="tableHead"||_==="tableRow"?C:c;return W===C&&a.parser.lazy[a.now().line]?r(B):W(B)}function c(B){return e.enter("tableHead"),e.enter("tableRow"),u(B)}function u(B){return B===124||(o=!0,i+=1),h(B)}function h(B){return B===null?r(B):st(B)?i>1?(i=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),x):r(B):Rt(B)?Ft(e,h,"whitespace")(B):(i+=1,o&&(o=!1,n+=1),B===124?(e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),o=!0,h):(e.enter("data"),f(B)))}function f(B){return B===null||B===124||lr(B)?(e.exit("data"),h(B)):(e.consume(B),B===92?m:f)}function m(B){return B===92||B===124?(e.consume(B),f):f(B)}function x(B){return a.interrupt=!1,a.parser.lazy[a.now().line]?r(B):(e.enter("tableDelimiterRow"),o=!1,Rt(B)?Ft(e,v,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):v(B))}function v(B){return B===45||B===58?b(B):B===124?(o=!0,e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),y):P(B)}function y(B){return Rt(B)?Ft(e,b,"whitespace")(B):b(B)}function b(B){return B===58?(i+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(B),e.exit("tableDelimiterMarker"),S):B===45?(i+=1,S(B)):B===null||st(B)?j(B):P(B)}function S(B){return B===45?(e.enter("tableDelimiterFiller"),A(B)):P(B)}function A(B){return B===45?(e.consume(B),A):B===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(B),e.exit("tableDelimiterMarker"),E):(e.exit("tableDelimiterFiller"),E(B))}function E(B){return Rt(B)?Ft(e,j,"whitespace")(B):j(B)}function j(B){return B===124?v(B):B===null||st(B)?!o||n!==i?P(B):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(B)):P(B)}function P(B){return r(B)}function C(B){return e.enter("tableRow"),N(B)}function N(B){return B===124?(e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),N):B===null||st(B)?(e.exit("tableRow"),t(B)):Rt(B)?Ft(e,N,"whitespace")(B):(e.enter("data"),O(B))}function O(B){return B===null||B===124||lr(B)?(e.exit("data"),N(B)):(e.consume(B),B===92?k:O)}function k(B){return B===92||B===124?(e.consume(B),O):O(B)}}function xxe(e,t){let r=-1,a=!0,n=0,i=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,u,h,f;const m=new fxe;for(;++r<e.length;){const x=e[r],v=x[1];x[0]==="enter"?v.type==="tableHead"?(s=!1,c!==0&&(VR(m,t,c,u,h),h=void 0,c=0),u={type:"table",start:Object.assign({},v.start),end:Object.assign({},v.end)},m.add(r,0,[["enter",u,t]])):v.type==="tableRow"||v.type==="tableDelimiterRow"?(a=!0,f=void 0,i=[0,0,0,0],o=[0,r+1,0,0],s&&(s=!1,h={type:"tableBody",start:Object.assign({},v.start),end:Object.assign({},v.end)},m.add(r,0,[["enter",h,t]])),n=v.type==="tableDelimiterRow"?2:h?3:1):n&&(v.type==="data"||v.type==="tableDelimiterMarker"||v.type==="tableDelimiterFiller")?(a=!1,o[2]===0&&(i[1]!==0&&(o[0]=o[1],f=Hg(m,t,i,n,void 0,f),i=[0,0,0,0]),o[2]=r)):v.type==="tableCellDivider"&&(a?a=!1:(i[1]!==0&&(o[0]=o[1],f=Hg(m,t,i,n,void 0,f)),i=o,o=[i[1],r,0,0])):v.type==="tableHead"?(s=!0,c=r):v.type==="tableRow"||v.type==="tableDelimiterRow"?(c=r,i[1]!==0?(o[0]=o[1],f=Hg(m,t,i,n,r,f)):o[1]!==0&&(f=Hg(m,t,o,n,r,f)),n=0):n&&(v.type==="data"||v.type==="tableDelimiterMarker"||v.type==="tableDelimiterFiller")&&(o[3]=r)}for(c!==0&&VR(m,t,c,u,h),m.consume(t.events),r=-1;++r<t.events.length;){const x=t.events[r];x[0]==="enter"&&x[1].type==="table"&&(x[1]._align=hxe(t.events,r))}return e}function Hg(e,t,r,a,n,i){const o=a===1?"tableHeader":a===2?"tableDelimiter":"tableData",s="tableContent";r[0]!==0&&(i.end=Object.assign({},lu(t.events,r[0])),e.add(r[0],0,[["exit",i,t]]));const c=lu(t.events,r[1]);if(i={type:o,start:Object.assign({},c),end:Object.assign({},c)},e.add(r[1],0,[["enter",i,t]]),r[2]!==0){const u=lu(t.events,r[2]),h=lu(t.events,r[3]),f={type:s,start:Object.assign({},u),end:Object.assign({},h)};
1189if(e.add(r[2],0,[["enter",f,t]]),a!==2){const m=t.events[r[2]],x=t.events[r[3]];if(m[1].end=Object.assign({},x[1].end),m[1].type="chunkText",m[1].contentType="text",r[3]>r[2]+1){const v=r[2]+1,y=r[3]-r[2]-1;e.add(v,y,[])}}e.add(r[3]+1,0,[["exit",f,t]])}return n!==void 0&&(i.end=Object.assign({},lu(t.events,n)),e.add(n,0,[["exit",i,t]]),i=void 0),i}function VR(e,t,r,a,n){const i=[],o=lu(t.events,r);n&&(n.end=Object.assign({},o),i.push(["exit",n,t])),a.end=Object.assign({},o),i.push(["exit",a,t]),e.add(r+1,0,i)}function lu(e,t){const r=e[t],a=r[0]==="enter"?"start":"end";return r[1][a]}const vxe={name:"tasklistCheck",tokenize:bxe};function yxe(){return{text:{91:vxe}}}function bxe(e,t,r){const a=this;return n;function n(c){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?r(c):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),i)}function i(c){return lr(c)?(e.enter("taskListCheckValueUnchecked"),e.consume(c),e.exit("taskListCheckValueUnchecked"),o):c===88||c===120?(e.enter("taskListCheckValueChecked"),e.consume(c),e.exit("taskListCheckValueChecked"),o):r(c)}function o(c){return c===93?(e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):r(c)}function s(c){return st(c)?t(c):Rt(c)?e.check({tokenize:wxe},t,r)(c):r(c)}}function wxe(e,t,r){return Ft(e,a,"whitespace");function a(n){return n===null?r(n):t(n)}}function Sxe(e){return Lq([Kge(),axe(),dxe(e),mxe(),yxe()])}const Exe={};function TV(e){const t=this,r=e||Exe,a=t.data(),n=a.micromarkExtensions||(a.micromarkExtensions=[]),i=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),o=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);n.push(Sxe(r)),i.push(Vge()),o.push(Uge(r))}const Axe={introducao:p.jsx(Op,{"data-loc":"client/src/pages/PlanoV2.tsx:35",size:14}),objetivos:p.jsx(cte,{"data-loc":"client/src/pages/PlanoV2.tsx:36",size:14}),metodologia:p.jsx(Op,{"data-loc":"client/src/pages/PlanoV2.tsx:37",size:14}),diagnostico:p.jsx(Jee,{"data-loc":"client/src/pages/PlanoV2.tsx:38",size:14}),swot:p.jsx(jo,{"data-loc":"client/src/pages/PlanoV2.tsx:39",size:14}),stakeholders:p.jsx(xn,{"data-loc":"client/src/pages/PlanoV2.tsx:40",size:14}),estrategia:p.jsx(ite,{"data-loc":"client/src/pages/PlanoV2.tsx:41",size:14}),cronograma:p.jsx(wd,{"data-loc":"client/src/pages/PlanoV2.tsx:42",size:14}),monitoramento:p.jsx(Gee,{"data-loc":"client/src/pages/PlanoV2.tsx:43",size:14})},Cxe={aprovado:"bg-emerald-100 text-emerald-700 border-emerald-200",revisando:"bg-amber-100 text-amber-700 border-amber-200",gerado:"bg-blue-100 text-blue-700 border-blue-200",pendente:"bg-gray-100 text-gray-500 border-gray-200"},Pxe={aprovado:"â Aprovado",revisando:"â³ Em Revisão",gerado:"⦠Gerado pela IA",pendente:"â Pendente"},jxe={conceitual:"bg-[#2D4A2D]/10 text-[#2D4A2D] border-[#2D4A2D]/20",estrategica:"bg-blue-50 text-blue-700 border-blue-200",operacional:"bg-orange-50 text-orange-700 border-orange-200"},jw={conceitual:"Parte I â Conceitual",estrategica:"Parte II â Estratégica",operacional:"Parte III â Operacional"};function Nxe({id:e,children:t}){const{attributes:r,listeners:a,setNodeRef:n,transform:i,transition:o,isDragging:s}=s$({id:e}),c={transform:Mu.Transform.toString(i),transition:o,opacity:s?.4:1,zIndex:s?10:void 0};return p.jsx("div",{"data-loc":"client/src/pages/PlanoV2.tsx:104",ref:n,style:c,children:t({listeners:a,attributes:r,isDragging:s})})}function Txe(e){if(!e.sumarioPlano?.length)return null;const t=Kr[e.tipoProjeto].label;return{municipioId:e.id,municipioNome:e.municipio,estado:e.estado,tipoPPP:t,banco:"A definir",versao:"1.0 (rascunho)",dataElaboracao:e.dataInicio,referenciaContratual:"A definir",secoes:e.sumarioPlano}}const mi="ctx:";function kxe(){const{projetos:e,atualizarSecaoPlano:t,adicionarSecaoPlano:r,removerSecaoPlano:a,reordenarSecoesPlano:n}=Ps(),i=e.filter(Oe=>Oe.sumarioPlano?.length),[o,s]=L.useState("itaperuna"),[c,u]=L.useState("introducao"),[h,f]=L.useState({}),[m,x]=L.useState(null),[v,y]=L.useState(null),[b,S]=L.useState({}),[A,E]=L.useState({}),[j,P]=L.useState({}),[C,N]=L.useState(null),[O,k]=L.useState(""),[B,$]=L.useState(!1),[_,W]=L.useState(null),[D,J]=L.useState(""),[z,V]=L.useState(!0),[Z,te]=L.useState("padrao"),[K,q]=L.useState(!1),[X,U]=L.useState({}),[ie,se]=L.useState({}),he=BF(Lx(py,{activationConstraint:{distance:5}}),Lx(fy,{coordinateGetter:l$})),[Y,F]=L.useState({});let ae=null,ne=!1;
1189if(o.startsWith(mi)){const Oe=o.slice(mi.length),ke=e.find(Ie=>Ie.id===Oe);ke&&(ae=Txe(ke)),ne=!0}else ae=MC[o]??null;if(!ae)return null;const ge=ne?[]:X[o]??[],re=[...ae.secoes,...ge],oe=ne?void 0:Y[o],G=oe?(()=>{const Oe=new Map(re.map(Pe=>[Pe.id,Pe])),ke=oe.map(Pe=>Oe.get(Pe)).filter(Pe=>!!Pe),Ie=re.filter(Pe=>!oe.includes(Pe.id));return[...ke,...Ie]})():re,pe=Oe=>ne?Oe.imagens??[]:ie[`${o}:${Oe.id}`]??Oe.imagens??[],ee=(Oe,ke)=>{if(ne){const Ie=o.slice(mi.length);t(Ie,Oe,{imagens:ke})}else se(Ie=>({...Ie,[`${o}:${Oe}`]:ke}))},M=["conceitual","estrategica","operacional"],I=(Oe,ke,Ie)=>{const Pe=G.find(Et=>Et.id===Oe);if(!Pe||!ne)return;const at=o.slice(mi.length);fetch("/api/aprendizados",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({projetoId:at,secaoId:Oe,tipoPPP:ae.tipoPPP,parte:Pe.parte,titulo:Pe.titulo,subtitulo:Pe.subtitulo,texto:ke,origem:Ie})}).catch(Et=>console.error("[aprendizado]",Et))},H=async Oe=>{const ke=h[Oe]?.trim();if(!ke)return;const Ie=G.find(Pe=>Pe.id===Oe);if(Ie){y(Oe);try{const Pe=await fetch("/api/ai-review",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tipo:"plano",contexto:`Plano de Comunicação â ${ae.municipioNome}/${ae.estado} â Seção: ${Ie.titulo}`,textoOriginal:j[Oe]??Ie.conteudo,comentarioUsuario:ke,tipoPPP:ae.tipoPPP,parte:Ie.parte})});if(!Pe.ok){const Xt=await Pe.json().catch(()=>({error:`HTTP ${Pe.status}`}));throw new Error(Xt.error||`HTTP ${Pe.status}`)}const at=await Pe.json();E(Xt=>({...Xt,[Oe]:at})),S(Xt=>({...Xt,[Oe]:"revisando"})),x(null),f(Xt=>({...Xt,[Oe]:""}));const Et=at.textoRevisado?.length??0,cr=at.tokensUsados?` · ${at.tokensUsados} tokens`:"";at.truncado?je.warning(`IA revisou (${Et} caracteres${cr}) â â resposta pode ter sido truncada, cheque o final.`):je.success(`IA revisou a seção â ${Et} caracteres${cr}. Confira a sugestão abaixo.`)}catch(Pe){const at=Pe instanceof Error?Pe.message:"Erro desconhecido";je.error(`Falha ao chamar IA: ${at}`)}finally{y(null)}}},ce=Oe=>{const ke=A[Oe];ke&&(P(Ie=>({...Ie,[Oe]:ke.textoRevisado})),E(Ie=>{const Pe={...Ie};return delete Pe[Oe],Pe}),S(Ie=>({...Ie,[Oe]:"gerado"})),I(Oe,ke.textoRevisado,"revisao_aceita"),je.success("Revisão da IA aplicada â texto adicionado à base de aprendizado."))},fe=Oe=>{E(ke=>{const Ie={...ke};return delete Ie[Oe],Ie}),S(ke=>{const Ie={...ke};return delete Ie[Oe],Ie}),je.info("Sugestão da IA descartada.")},ue=Oe=>{S(Pe=>({...Pe,[Oe]:"aprovado"}));const ke=G.find(Pe=>Pe.id===Oe),Ie=j[Oe]??ke?.conteudo??"";
1189I(Oe,Ie,"aprovacao"),je.success("Seção aprovada â texto adicionado à base de aprendizado PRINT.")},we=Oe=>{const ke=G.find(Ie=>Ie.id===Oe);ke&&(k(j[Oe]??ke.conteudo),N(Oe),x(null))},Ne=Oe=>{const ke=O.trim();if(!ke){je.error("Conteúdo não pode ficar vazio.");return}P(Ie=>({...Ie,[Oe]:ke})),S(Ie=>({...Ie,[Oe]:"gerado"})),N(null),k(""),I(Oe,ke,"edicao_direta"),je.success("Seção atualizada â sua edição virou referência de estilo pra IA.")},De=()=>{N(null),k("")},xe=async()=>{const Oe=D.trim();if(!Oe||!_)return;const ke=jC(Oe)||`secao-${Date.now()}`,Ie=G.some(ft=>ft.id===ke)?`${ke}-${Date.now().toString(36).slice(-4)}`:ke;let Pe='Conteúdo a ser gerado/editado. Use "Comentar para IA revisar" ou "Editar diretamente".',at="pendente",Et,cr,Xt;if(z){q(!0);try{let ft="/api/ai-generate-section",Ke={municipio:ae.municipioNome,estado:ae.estado,tipoPPP:ae.tipoPPP,secao:{titulo:Oe,subtitulo:"",parte:_}};if(Z==="benchmarking")ft="/api/ai-generate-benchmark",Ke={municipio:ae.municipioNome,estado:ae.estado,tipoPPP:ae.tipoPPP};else if(Z==="contexto-municipal"){ft="/api/ai-generate-contexto-municipal";const ot=ne?e.find(Tt=>Tt.id===o.slice(mi.length))?.stakeholdersGerados??[]:[];Ke={municipio:ae.municipioNome,estado:ae.estado,tipoPPP:ae.tipoPPP,stakeholdersMapeados:ot}}const ht=await fetch(ft,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Ke)});if(!ht.ok){const ot=await ht.json().catch(()=>({error:`HTTP ${ht.status}`}));throw new Error(ot.error||`HTTP ${ht.status}`)}if(Z==="benchmarking"){const ot=await ht.json();Et=ot.casos.map((Tt,zt)=>({...Tt,id:`bench-${zt+1}-${Date.now().toString(36).slice(-4)}`})),cr=ot.tabelaComparativa,Xt=ot.sedeLabel??`${ae.municipioNome} (${ae.estado}) â sede`,Pe=`CapÃtulo de benchmarking gerado pela IA com ${Et.length} casos comparáveis. Expanda a seção para revisar cada municÃpio.`,at="gerado"}else Z==="contexto-municipal"?(Pe=(await ht.json()).conteudoMarkdown,at="gerado"):(Pe=(await ht.json()).conteudo,at="gerado")}catch(ft){const Ke=ft instanceof Error?ft.message:"Erro desconhecido";je.warning(`Falha ao gerar conteúdo: ${Ke}. Seção criada vazia.`)}finally{q(!1)}}const Lt={id:Ie,titulo:Oe,subtitulo:Z==="benchmarking"?"Análise da comunicação e repercussão em municÃpios comparáveis":Z==="contexto-municipal"?"Avaliação dos ambientes interno e externo":"",parte:_,statusIA:at,conteudo:Pe,tipo:Z,benchmark:Et,benchmarkTabela:cr,benchmarkSedeLabel:Xt};
1189if(ne){const ft=o.slice(mi.length);r(ft,Lt)}else U(ft=>({...ft,[o]:[...ft[o]??[],Lt]}));W(null),J(""),te("padrao"),u(Ie);const Je=Et?` (${Et.length} casos)`:"";je.success(z&&at==="gerado"?`Seção "${Oe}" criada com rascunho da IA${Je}.`:`Seção "${Oe}" criada.`)},Ee=Oe=>{if(confirm("Remover esta seção? Esta ação não pode ser desfeita.")){if(ne){const ke=o.slice(mi.length);a(ke,Oe)}else U(ke=>({...ke,[o]:(ke[o]??[]).filter(Ie=>Ie.id!==Oe)}));c===Oe&&u(null),je.info("Seção removida.")}},ze=(Oe,ke,Ie)=>{if(ke===Ie)return;const Pe=G.map(Xt=>Xt.id),at=Pe.indexOf(ke),Et=Pe.indexOf(Ie);if(at<0||Et<0)return;const cr=gy(Pe,at,Et);if(ne){const Xt=o.slice(mi.length);n(Xt,cr)}else F(Xt=>({...Xt,[o]:cr}));je.success("Seção movida.")},We=(Oe,ke)=>{if(ne){const Ie=o.slice(mi.length);t(Ie,Oe,{parte:ke})}else(X[o]??[]).find(Pe=>Pe.id===Oe)?(U(Pe=>({...Pe,[o]:Pe[o].map(at=>at.id===Oe?{...at,parte:ke}:at)})),je.success(`Seção movida para ${jw[ke]}.`)):je.warning("Seções demo (Itaperuna/Natal/Caxias) não podem ter a Parte alterada. Duplique manualmente ou crie no seu projeto.")},it=async()=>{$(!0);try{const Oe={...ae,secoes:G.map(ke=>({...ke,imagens:pe(ke)}))};await ede({plano:Oe,conteudoOverride:j,statusOverride:b}),je.success(`Plano exportado: ${ae.municipioNome}.docx`)}catch(Oe){const ke=Oe instanceof Error?Oe.message:"Erro desconhecido";je.error(`Falha ao exportar Word: ${ke}`)}finally{$(!1)}},Pt=G.length,Jt=G.filter(Oe=>(b[Oe.id]||Oe.statusIA)==="aprovado").length,xt=Math.round(Jt/Pt*100);return p.jsx("div",{"data-loc":"client/src/pages/PlanoV2.tsx:577",className:"min-h-screen bg-[#EDE9DF] p-6",children:p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:578",className:"max-w-5xl mx-auto space-y-6",children:[p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:581",className:"bg-white rounded-2xl border border-[#2D4A2D]/10 shadow-sm overflow-hidden",children:[p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:582",className:"bg-[#2D4A2D] px-6 py-5",children:[p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:583",className:"flex items-start justify-between gap-4",children:[p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:584",children:[p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:585",className:"flex items-center gap-2 mb-1",children:[p.jsx(Ru,{"data-loc":"client/src/pages/PlanoV2.tsx:586",size:18,className:"text-[#EDE9DF]/70"}),p.jsx("span",{"data-loc":"client/src/pages/PlanoV2.tsx:587",className:"text-[#EDE9DF]/70 text-sm font-medium uppercase tracking-wider",children:"Plano de Comunicação"})]}),p.jsxs("h1",{"data-loc":"client/src/pages/PlanoV2.tsx:589",className:"text-2xl font-bold text-white",children:[ae.municipioNome," / ",ae.estado]}),p.jsx("p",{"data-loc":"client/src/pages/PlanoV2.tsx:592",className:"text-[#EDE9DF]/80 text-sm mt-1",children:ae.tipoPPP})]}),p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:594",className:"text-right shrink-0",children:[p.jsx("div",{"data-loc":"client/src/pages/PlanoV2.tsx:595",className:"text-[#EDE9DF]/70 text-xs mb-1",children:"Progresso de aprovação"}),p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:596",className:"text-3xl font-bold text-white",children:[xt,"%"]}),p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:597",className:"text-[#EDE9DF]/60 text-xs",children:[Jt,"/",Pt," seções"]})]})]}),p.jsx("div",{"data-loc":"client/src/pages/PlanoV2.tsx:602",className:"mt-4 bg-white/20 rounded-full h-2",children:p.jsx("div",{"data-loc":"client/src/pages/PlanoV2.tsx:603",className:"bg-[#7A8C5E] h-2 rounded-full transition-all duration-500",style:{width:`${xt}%`}})})]}),p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:611",className:"px-6 py-4 grid grid-cols-2 md:grid-cols-4 gap-4 border-b border-[#2D4A2D]/10",children:[p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:612",className:"flex items-center gap-2 text-sm",children:[p.jsx(Vee,{"data-loc":"client/src/pages/PlanoV2.tsx:613",size:14,className:"text-[#2D4A2D]/50"}),p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:614",children:[p.jsx("div",{"data-loc":"client/src/pages/PlanoV2.tsx:615",className:"text-[#2D4A2D]/50 text-xs",children:"Banco"}),p.jsx("div",{"data-loc":"client/src/pages/PlanoV2.tsx:616",className:"font-medium text-[#2D4A2D] text-xs leading-tight",children:ae.banco})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:619",className:"flex items-center gap-2 text-sm",children:[p.jsx(iy,{"data-loc":"client/src/pages/PlanoV2.tsx:620",size:14,className:"text-[#2D4A2D]/50"}),p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:621",children:[p.jsx("div",{"data-loc":"client/src/pages/PlanoV2.tsx:622",className:"text-[#2D4A2D]/50 text-xs",children:"Versão"}),p.jsx("div",{"data-loc":"client/src/pages/PlanoV2.tsx:623",className:"font-medium text-[#2D4A2D] text-xs",children:ae.versao})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:626",className:"flex items-center gap-2 text-sm",children:[p.jsx(wd,{"data-loc":"client/src/pages/PlanoV2.tsx:627",size:14,className:"text-[#2D4A2D]/50"}),p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:628",children:[p.jsx("div",{"data-loc":"client/src/pages/PlanoV2.tsx:629",className:"text-[#2D4A2D]/50 text-xs",children:"Elaboração"}),p.jsx("div",{"data-loc":"client/src/pages/PlanoV2.tsx:630",className:"font-medium text-[#2D4A2D] text-xs",children:ae.dataElaboracao})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:633",className:"flex items-center gap-2 text-sm",children:[p.jsx(_u,{"data-loc":"client/src/pages/PlanoV2.tsx:634",size:14,className:"text-[#2D4A2D]/50"}),p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:635",children:[p.jsx("div",{"data-loc":"client/src/pages/PlanoV2.tsx:636",className:"text-[#2D4A2D]/50 text-xs",children:"Elaborado por"}),p.jsx("div",{"data-loc":"client/src/pages/PlanoV2.tsx:637",className:"font-medium text-[#2D4A2D] text-xs",children:"PRINT Comunicação"})]})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:643",className:"px-6 py-3 bg-[#2D4A2D]/5 text-xs text-[#2D4A2D]/70 leading-relaxed",children:[p.jsx("span",{"data-loc":"client/src/pages/PlanoV2.tsx:644",className:"font-semibold text-[#2D4A2D]",children:"Referência contratual:"})," ",ae.referenciaContratual]})]}),p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:649",className:"bg-white rounded-2xl border border-[#2D4A2D]/10 shadow-sm p-4",children:[p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:650",className:"flex items-center gap-2 mb-3",children:[p.jsx(Zl,{"data-loc":"client/src/pages/PlanoV2.tsx:651",size:14,className:"text-[#2D4A2D]/60"}),p.jsx("span",{"data-loc":"client/src/pages/PlanoV2.tsx:652",className:"text-sm font-semibold text-[#2D4A2D]",children:"Selecionar Projeto"})]}),p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:654",className:"grid grid-cols-2 md:grid-cols-4 gap-2",children:[zne.map(Oe=>{const ke=MC[Oe],Ie=Oe===o;return p.jsxs("button",{"data-loc":"client/src/pages/PlanoV2.tsx:660",onClick:()=>{s(Oe),u("introducao"),S({}),P({}),E({})},className:`rounded-xl border p-3 text-left transition-all ${Ie?"bg-[#2D4A2D] border-[#2D4A2D] text-white":"border-[#2D4A2D]/15 hover:border-[#2D4A2D]/30 hover:bg-[#2D4A2D]/5"}`,children:[p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:675",className:`text-xs font-bold leading-tight ${Ie?"text-white":"text-[#2D4A2D]"}`,children:[ke.municipioNome," / ",ke.estado]}),p.jsx("div",{"data-loc":"client/src/pages/PlanoV2.tsx:678",className:`text-[10px] mt-1 leading-tight ${Ie?"text-white/70":"text-[#2D4A2D]/50"}`,children:ke.banco.split(" ").slice(0,2).join(" ")}),p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:681",className:`text-[10px] mt-1 ${Ie?"text-white/60":"text-[#2D4A2D]/40"}`,children:["v",ke.versao.split(" ")[0]]})]},Oe)}),i.map(Oe=>{const ke=`${mi}${Oe.id}`,Ie=ke===o,Pe=Kr[Oe.tipoProjeto],at=Oe.sumarioPlano?.[0]?.id??null;return p.jsxs("button",{"data-loc":"client/src/pages/PlanoV2.tsx:695",onClick:()=>{s(ke),u(at),S({}),P({}),E({})},className:`rounded-xl border-2 border-dashed p-3 text-left transition-all relative ${Ie?"bg-[#2D4A2D] border-[#2D4A2D] text-white":"border-[#7A8C5E]/40 hover:border-[#2D4A2D]/40 hover:bg-[#2D4A2D]/5"}`,title:`Sumário ${Oe.sumarioOrigem??"padrão"} · ${Oe.sumarioPlano?.length??0} seções`,children:[p.jsx("div",{"data-loc":"client/src/pages/PlanoV2.tsx:711",className:`absolute top-1 right-1.5 text-[8px] font-bold uppercase tracking-wider ${Ie?"text-white/70":"text-[#7A8C5E]"}`,children:"Novo"}),p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:714",className:`text-xs font-bold leading-tight pr-8 ${Ie?"text-white":"text-[#2D4A2D]"}`,children:[Oe.municipio," / ",Oe.estado]}),p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:717",className:`text-[10px] mt-1 leading-tight ${Ie?"text-white/70":"text-[#2D4A2D]/50"}`,children:[Pe.icone," ",Pe.label]}),p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:720",className:`text-[10px] mt-1 ${Ie?"text-white/60":"text-[#2D4A2D]/40"}`,children:[Oe.sumarioPlano?.length??0," seções · ",Oe.sumarioOrigem??"padrão"]})]},ke)})]}),i.length===0&&p.jsx("div",{"data-loc":"client/src/pages/PlanoV2.tsx:728",className:"mt-3 text-[11px] text-[#2D4A2D]/40 italic",children:'Crie um novo projeto via "+ Novo Projeto" e seu plano aparecerá aqui com o sumário escolhido.'})]}),M.map(Oe=>{const ke=G.filter(Pe=>Pe.parte===Oe),Ie=ne?new Set(G.map(Pe=>Pe.id)):new Set(ge.map(Pe=>Pe.id));return p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:742",className:"space-y-3",children:[p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:743",className:"flex items-center justify-between gap-2 flex-wrap",children:[p.jsx("div",{"data-loc":"client/src/pages/PlanoV2.tsx:744",className:`inline-flex items-center gap-2 px-3 py-1.5 rounded-full text-xs font-semibold border ${jxe[Oe]}`,children:jw[Oe]}),_===Oe?p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:749",className:"flex-1 flex flex-col gap-1.5 bg-white border border-[#2D4A2D]/30 rounded-xl p-2 shadow-sm",children:[p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:750",className:"flex items-center gap-1.5 flex-wrap",children:[p.jsx("input",{"data-loc":"client/src/pages/PlanoV2.tsx:751",type:"text",autoFocus:!0,value:D,onChange:Pe=>J(Pe.target.value),onKeyDown:Pe=>{Pe.key==="Enter"&&!K&&xe(),Pe.key==="Escape"&&W(null)},placeholder:Z==="benchmarking"?"Ex: Benchmarking de Comunicação":"TÃtulo da nova seção...",className:"flex-1 min-w-0 px-2 py-1 text-xs outline-none text-[#2D4A2D]",disabled:K}),p.jsx("button",{"data-loc":"client/src/pages/PlanoV2.tsx:761",onClick:xe,disabled:!D.trim()||K,className:"flex items-center gap-1 px-2.5 py-1 rounded-lg bg-[#2D4A2D] text-white text-xs disabled:opacity-50",children:K?p.jsxs(p.Fragment,{children:[p.jsx(Wt,{"data-loc":"client/src/pages/PlanoV2.tsx:766",size:11,className:"animate-spin"})," Gerando"]}):p.jsxs(p.Fragment,{children:[p.jsx(fa,{"data-loc":"client/src/pages/PlanoV2.tsx:766",size:11})," Adicionar"]})}),p.jsx("button",{"data-loc":"client/src/pages/PlanoV2.tsx:768",onClick:()=>{W(null),J(""),te("padrao")},disabled:K,className:"px-2 py-1 rounded-lg text-[#2D4A2D]/60 hover:text-[#2D4A2D] text-xs",children:"Cancelar"})]}),p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:776",className:"flex items-center gap-2 flex-wrap text-[10px]",children:[p.jsx("span",{"data-loc":"client/src/pages/PlanoV2.tsx:777",className:"text-[#2D4A2D]/50 font-medium uppercase tracking-wider",children:"Tipo:"}),p.jsxs("label",{"data-loc":"client/src/pages/PlanoV2.tsx:778",className:"flex items-center gap-1 text-[#2D4A2D]/80 select-none cursor-pointer",children:[p.jsx("input",{"data-loc":"client/src/pages/PlanoV2.tsx:779",type:"radio",checked:Z==="padrao",onChange:()=>te("padrao"),disabled:K,className:"accent-[#2D4A2D]"}),"Padrão"]}),p.jsxs("label",{"data-loc":"client/src/pages/PlanoV2.tsx:788",className:"flex items-center gap-1 text-[#2D4A2D]/80 select-none cursor-pointer",title:"Análise comparativa de PPPs em outros municÃpios",children:[p.jsx("input",{"data-loc":"client/src/pages/PlanoV2.tsx:789",type:"radio",checked:Z==="benchmarking",onCh
1189ange:()=>te("benchmarking"),disabled:K,className:"accent-[#2D4A2D]"}),"ð Benchmarking"]}),p.jsxs("label",{"data-loc":"client/src/pages/PlanoV2.tsx:798",className:"flex items-center gap-1 text-[#2D4A2D]/80 select-none cursor-pointer",title:"Avaliação dos ambientes: contexto municipal + SWOT + diagnóstico de comunicação",children:[p.jsx("input",{"data-loc":"client/src/pages/PlanoV2.tsx:799",type:"radio",checked:Z==="contexto-municipal",onChange:()=>te("contexto-municipal"),disabled:K,className:"accent-[#2D4A2D]"}),"ðï¸ Contexto Municipal"]}),p.jsxs("label",{"data-loc":"client/src/pages/PlanoV2.tsx:808",className:"flex items-center gap-1 text-[#2D4A2D]/70 select-none ml-2",children:[p.jsx("input",{"data-loc":"client/src/pages/PlanoV2.tsx:809",type:"checkbox",checked:z,onChange:Pe=>V(Pe.target.checked),disabled:K,className:"accent-[#2D4A2D]"}),p.jsx(Ou,{"data-loc":"client/src/pages/PlanoV2.tsx:816",size:10})," IA"]}),Z==="benchmarking"&&z&&p.jsxs("span",{"data-loc":"client/src/pages/PlanoV2.tsx:819",className:"text-[9px] italic text-[#2D4A2D]/50",children:["IA vai buscar 5-7 municÃpios com PPP de ",ae.tipoPPP.toLowerCase()]}),Z==="contexto-municipal"&&z&&p.jsx("span",{"data-loc":"client/src/pages/PlanoV2.tsx:824",className:"text-[9px] italic text-[#2D4A2D]/50",children:"IA vai gerar dossiê completo: contexto + SWOT + diagnóstico de comunicação"})]})]}):p.jsxs("button",{"data-loc":"client/src/pages/PlanoV2.tsx:831",onClick:()=>{W(Oe),J("")},className:"flex items-center gap-1.5 px-3 py-1.5 rounded-lg border border-dashed border-[#2D4A2D]/30 text-[#2D4A2D]/70 text-xs hover:bg-[#2D4A2D]/5 transition-colors",title:`Adicionar nova seção em ${jw[Oe]}`,children:[p.jsx(fa,{"data-loc":"client/src/pages/PlanoV2.tsx:836",size:12})," Nova seção"]})]}),ke.length===0&&p.jsx("div",{"data-loc":"client/src/pages/PlanoV2.tsx:842",className:"rounded-xl border border-dashed border-[#2D4A2D]/20 p-4 text-center text-xs text-[#2D4A2D]/50 italic",children:'Nenhuma seção nesta parte ainda â use "+ Nova seção" acima.'}),p.jsx(e$,{"data-loc":"client/src/pages/PlanoV2.tsx:847",sensors:he,collisionDetection:$F,onDragEnd:Pe=>{const{active:at,over:Et}=Pe;Et&&at.id!==Et.id&&ze(Oe,String(at.id),String(Et.id))},children:p.jsx(i$,{"data-loc":"client/src/pages/PlanoV2.tsx:857",items:ke.map(Pe=>Pe.id),strategy:r$,children:ke.map((Pe,at)=>{const Et=b[Pe.id]||Pe.statusIA,cr=c===Pe.id,Xt=Axe[Pe.id]||p.jsx(Ru,{"data-loc":"client/src/pages/PlanoV2.tsx:864",size:14}),$t=Ie.has(Pe.id);return p.jsx(Nxe,{"data-loc":"client/src/pages/PlanoV2.tsx:868",id:Pe.id,children:({listeners:Lt,attributes:Je,isDragging:ft})=>p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:870",className:`bg-white rounded-2xl border shadow-sm overflow-hidden transition-all ${cr?"border-[#2D4A2D]/20":"border-[#2D4A2D]/10"} ${ft?"ring-2 ring-[#2D4A2D]/40 shadow-lg":""}`,children:[p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:876",className:"w-full flex items-center justify-between px-2 py-4 hover:bg-[#2D4A2D]/3 transition-colors text-left",children:[p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:877",className:"flex items-center gap-2 flex-1 min-w-0",children:[p.jsx("button",{"data-loc":"client/src/pages/PlanoV2.tsx:879",...Lt,...Je,className:"p-1 rounded cursor-grab active:cursor-grabbing text-[#2D4A2D]/30 hover:text-[#2D4A2D]/60 hover:bg-[#2D4A2D]/5 flex-shrink-0",title:"Arrastar pra reordenar","aria-label":`Mover seção ${Pe.titulo}`,children:p.jsx(Yz,{"data-loc":"client/src/pages/PlanoV2.tsx:886",size:14})}),p.jsxs("button",{"data-loc":"client/src/pages/PlanoV2.tsx:888",onClick:()=>u(cr?null:Pe.id),className:"flex items-center gap-3 flex-1 min-w-0 text-left",children:[p.jsx("div",{"data-loc":"client/src/pages/PlanoV2.tsx:892",className:"w-7 h-7 rounded-lg bg-[#2D4A2D]/10 flex items-center justify-center text-[#2D4A2D] flex-shrink-0",children:Xt}),p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:895",className:"min-w-0",children:[p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:896",className:"font-semibold text-[#2D4A2D] text-sm truncate",children:[at+1,". ",Pe.titulo]}),p.jsx("div",{"data-loc":"client/src/pages/PlanoV2.tsx:899",className:"text-[#2D4A2D]/50 text-xs truncate",children:Pe.subtitulo})]})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:903",className:"flex items-center gap-1.5 shrink-0 pr-3",children:[p.jsxs("select",{"data-loc":"client/src/pages/PlanoV2.tsx:905",value:Pe.parte,onChange:Ke=>{Ke.stopPropagation(),We(Pe.id,Ke.target.value)},onClick:Ke=>Ke.stopPropagation(),className:"text-[9px] font-bold px-1.5 py-0.5 rounded outline-none cursor-pointer",style:{border:"1px solid #2D4A2D30",backgroundColor:"#2D4A2D08",color:"#2D4A2D"},title:"Mover para outra Parte",children:[p.jsx("option",{"data-loc":"client/src/pages/PlanoV2.tsx:920",value:"conceitual",children:"I. Conceitual"}),p.jsx("option",{"data-loc":"client/src/pages/PlanoV2.tsx:921",value:"estrategica",children:"II. Estratégica"}),p.jsx("option",{"data-loc":"client/src/pages/PlanoV2.tsx:922",value:"operacional",children:"III. Operacional"})]}),p.jsx("span",{"data-loc":"client/src/pages/PlanoV2.tsx:924",className:`text-[10px] font-medium px-2 py-0.5 rounded-full border ${Cxe[Et]}`,children:Pxe[Et]}),$t&&p.jsx("span",{"data-loc":"client/src/pages/PlanoV2.tsx:928",role:"button",onClick:Ke=>{Ke.stopPropagation(),Ee(Pe.id)},className:"p-1 rounded text-red-500 hover:bg-red-50 cursor-pointer",title:"Remover seção",children:p.jsx(ei,{"data-loc":"client/src/pages/PlanoV2.tsx:934",size:12})}),p.jsx("button",{"data-loc":"client/src/pages/PlanoV2.tsx:937",onClick:()=>u(cr?null:Pe.id),className:"p-1 text-[#2D4A2D]/40","aria-label":cr?"Recolher":"Expandir",children:cr?p.jsx(Sd,{"data-loc":"client/src/pages/PlanoV2.tsx:942",size:14}):p.jsx(Xl,{"data-loc":"client/src/pages/PlanoV2.tsx:942",size:14})})]})]}),cr&&p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:949",className:"border-t border-[#2D4A2D]/10",children:[p.jsx("div",{"data-loc":"client/src/pages/PlanoV2.tsx:951",className:"px-5 py-5",children:C===Pe.id?p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:953",className:"space-y-2",children:[p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:954",className:"flex items-center gap-2 text-xs text-amber-700",children:[p.jsx(Mp,{"data-loc":"client/src/pages/PlanoV2.tsx:955",size:12}),p.jsx("span",{"data-loc":"client/src/pages/PlanoV2.tsx:956",className:"font-medium uppercase tracking-wider text-[10px]",children:"Edição manual â analista PRINT"})]}),p.jsx("textarea",{"data-loc":"client/src/pages/PlanoV2.tsx:958",value:O,onChange:Ke=>k(Ke.target.value),rows:Math.min(28,Math.max(10,O.split(` 1190`).length+2)),className:"w-full rounded-xl border border-amber-300 bg-amber-50/40 p-4 text-xs text-[#2D4A2D] font-mono leading-relaxed resize-y focus:outline-none focus:border-amber-500",placeholder:"Conteúdo da seção..."}),p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:965",className:"text-[10px] text-amber-700 italic",children:["Formatação: ",p.jsx("code",{"data-loc":"client/src/pages/PlanoV2.tsx:966",className:"bg-amber-100 px-1 rounded",children:"## TÃtulo"})," · ",p.jsx("code",{"data-loc":"client/src/pages/PlanoV2.tsx:966",className:"bg-amber-100 px-1 rounded",children:"### SubtÃtulo"})," · ",p.jsx("code",{"data-loc":"client/src/pages/PlanoV2.tsx:966",className:"bg-amber-100 px-1 rounded",children:"**negrito**"})," · ",p.jsx("code",{"data-loc":"client/src/pages/PlanoV2.tsx:966",className:"bg-amber-100 px-1 rounded",children:"*itálico*"})," · ",p.jsx("code",{"data-loc":"client/src/pages/PlanoV2.tsx:966",className:"bg-amber-100 px-1 rounded",children:"- item"})," · ",p.jsx("code",{"data-loc":"client/src/pages/PlanoV2.tsx:966",className:"bg-amber-100 px-1 rounded",children:"[texto](url)"})]}),p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:968",className:"flex justify-end gap-2",children:[p.jsxs("button",{"data-loc":"client/src/pages/PlanoV2.tsx:969",onClick:De,className:"flex items-center gap-1.5 px-3 py-1.5 rounded-lg border border-[#2D4A2D]/20 text-[#2D4A2D]/70 text-xs hover:bg-[#2D4A2D]/5 transition-colors",children:[p.jsx(dn,{"data-loc":"client/src/pages/PlanoV2.tsx:973",size:12})," Cancelar"]}),p.jsxs("button",{"data-loc":"client/src/pages/PlanoV2.tsx:975",onClick:()=>Ne(Pe.id),className:"flex items-center gap-1.5 px-3 py-1.5 rounded-lg bg-amber-600 text-white text-xs hover:bg-amber-700 transition-colors",children:[p.jsx(aN,{"data-loc":"client/src/pages/PlanoV2.tsx:979",size:12})," Salvar edição"]})]})]}):Pe.tipo==="benchmarking"&&Pe.benchmark&&Pe.benchmark.length>0?p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:984",className:"space-y-4",children:[p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:985",className:"text-[10px] font-black uppercase tracking-wider text-[#2D4A2D]/60 border-b border-[#2D4A2D]/10 pb-2",children:["ð Benchmarking · ",Pe.benchmark.length," municÃpios comparáveis"]}),Pe.benchmarkTabela&&Pe.benchmarkTabela.length>0&&p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:991",className:"rounded-xl border border-[#2D4A2D]/15 overflow-hidden bg-white",children:[p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:992",className:"px-3 py-2 bg-[#2D4A2D]/5 border-b border-[#2D4A2D]/10 text-[10px] font-black uppercase tracking-wider text-[#2D4A2D]/70",children:["Tabela comparativa â ",Pe.benchmarkSedeLabel??`${ae.municipioNome} (${ae.estado})`," à municÃpios analisados"]}),p.jsx("div",{"data-loc":"client/src/pages/PlanoV2.tsx:995",className:"overflow-x-auto",children:p.jsxs("table",{"data-loc":"client/src/pages/PlanoV2.tsx:996",className:"w-full text-[11px] border-collapse",children:[p.jsx("thead",{"data-loc":"client/src/pages/PlanoV2.tsx:997",children:p.jsxs("tr",{"data-loc":"client/src/pages/PlanoV2.tsx:998",className:"bg-[#EDE9DF]/60",children:[p.jsx("th",{"data-loc":"client/src/pages/PlanoV2.tsx:999",className:"text-left px-2 py-1.5 font-bold text-[#2D4A2D] border-b border-[#2D4A2D]/10 whitespace-nowrap sticky left-0 bg-[#EDE9DF]/60 z-10 min-w-[140px]",children:"Dimensão"}),p.jsx("th",{"data-loc":"client/src/pages/PlanoV2.tsx:1002",className:"text-left px-2 py-1.5 font-bold text-white bg-[#2D4A2D] border-b border-[#2D4A2D]/10 whitespace-nowrap min-w-[140px]",children:Pe.benchmarkSedeLabel??`${ae.municipioNome}/${ae.estado} â sede`}),Pe.benchmark.map(Ke=>p.jsxs("th",{"data-loc":"client/src/pages/PlanoV2.tsx:1006",className:"text-left px-2 py-1.5 font-bold text-[#2D4A2D] border-b border-[#2D4A2D]/10 whitespace-nowrap min-w-[140px]",children:[Ke.municipio,"/",Ke.uf]},Ke.id))]})}),p.jsx("tbody",{"data-loc":"client/src/pages/PlanoV2.tsx:1012",children:Pe.benchmarkTabela.map((Ke,ht)=>p.jsxs("tr",{"data-loc":"client/src/pages/PlanoV2.tsx:1014",className:ht%2===0?"":"bg-[#FAFAF8]",children:[p.jsx("td",{"data-loc":"client/src/pages/PlanoV2.tsx:1015",className:"px-2 py-1.5 font-bold text-[#2D4A2D] align-top border-b border-[#
1190EDE9DF] sticky left-0 bg-inherit z-10",children:Ke.dimensao}),p.jsx("td",{"data-loc":"client/src/pages/PlanoV2.tsx:1018",className:"px-2 py-1.5 text-[#2D4A2D]/85 align-top border-b border-[#EDE9DF] bg-[#2D4A2D]/5",children:Ke.sede}),Pe.benchmark.map((ot,Tt)=>p.jsx("td",{"data-loc":"client/src/pages/PlanoV2.tsx:1022",className:"px-2 py-1.5 text-[#2D4A2D]/85 align-top border-b border-[#EDE9DF]",children:Ke.porCaso[Tt]??"â"},Tt))]},ht))})]})})]}),Pe.benchmark.map((Ke,ht)=>p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:1036",className:"rounded-xl bg-white border border-[#2D4A2D]/10 p-4 space-y-2.5",children:[p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:1037",className:"text-sm font-bold text-[#2D4A2D]",children:[at+1,".",ht+1," ",Ke.municipio," (",Ke.uf,") â ",p.jsx("span",{"data-loc":"client/src/pages/PlanoV2.tsx:1038",className:"font-medium",children:Ke.manchete})]}),p.jsx("div",{"data-loc":"client/src/pages/PlanoV2.tsx:1040",className:"text-xs text-[#2D4A2D]/80 leading-relaxed",children:Ke.introducao}),p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:1043",className:"text-xs text-[#2D4A2D]/80 leading-relaxed",children:[p.jsx("span",{"data-loc":"client/src/pages/PlanoV2.tsx:1044",className:"font-bold text-[#2D4A2D]",children:"Repercussão: "}),Ke.repercussao]}),Ke.destaque&&p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:1047",className:"text-xs text-[#2D4A2D]/80 leading-relaxed",children:[p.jsx("span",{"data-loc":"client/src/pages/PlanoV2.tsx:1048",className:"font-bold text-[#2D4A2D]",children:"Destaque: "}),Ke.destaque]}),Ke.gestaoCrise&&p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:1052",className:"text-xs text-[#2D4A2D]/80 leading-relaxed",children:[p.jsx("span",{"data-loc":"client/src/pages/PlanoV2.tsx:1053",className:"font-bold text-[#2D4A2D]",children:"Gestão de Crise: "}),Ke.gestaoCrise]}),p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:1056",className:"text-xs text-[#2D4A2D]/80 leading-relaxed",children:[p.jsx("span",{"data-loc":"client/src/pages/PlanoV2.tsx:1057",className:"font-bold text-[#2D4A2D]",children:"Observações: "}),Ke.observacoes]})]},Ke.id))]}):p.jsxs(p.Fragment,{children:[(()=>{const Ke=j[Pe.id]??Pe.conteudo;return/(^|\n)#{1,4}\s|\*\*|^\s*[-*]\s|^\s*\d+\.\s|\[[^\]]+\]\([^)]+\)/m.test(Ke)?p.jsx("div",{"data-loc":"client/src/pages/PlanoV2.tsx:1068",className:"bg-[#EDE9DF]/60 rounded-xl p-4 text-sm text-[#2D4A2D]/90 leading-relaxed markdown-plano",children:p.jsx(iV,{"data-loc":"client/src/pages/PlanoV2.tsx:1069",remarkPlugins:[TV],components:{h1:({children:ot})=>p.jsx("h1",{"data-loc":"client/src/pages/PlanoV2.tsx:1072",className:"text-lg font-black text-[#2D4A2D] mt-4 mb-2 pb-1 border-b border-[#2D4A2D]/20",children:ot}),h2:({children:ot})=>p.jsx("h2",{"data-loc":"client/src/pages/PlanoV2.tsx:1073",className:"text-base font-black text-[#2D4A2D] mt-4 mb-2 pt-1",children:ot}),h3:({children:ot})=>p.jsx("h3",{"data-loc":"client/src/pages/PlanoV2.tsx:1074",className:"text-sm font-bold text-[#2D4A2D]/90 mt-3 mb-1.5",children:ot}),h4:({children:ot})=>p.jsx("h4",{"data-loc":"client/src/pages/PlanoV2.tsx:1075",className:"text-xs font-bold italic text-[#2D4A2D]/80 mt-2 mb-1 uppercase tracking-wider",children:ot}),p:({children:ot})=>p.jsx("p",{"data-loc":"client/src/pages/PlanoV2.tsx:1076",className:"mb-2 text-sm leading-relaxed",children:ot}),strong:({children:ot})=>p.jsx("strong",{"data-loc":"client/src/pages/PlanoV2.tsx:1077",className:"font-bold text-[#2D4A2D]",children:ot}),em:({children:ot})=>p.jsx("em",{"data-loc":"client/src/pages/PlanoV2.tsx:1078",className:"italic",children:ot}),a:({href:ot,children:Tt})=>p.jsx("a",{"data-loc":"client/src/pages/PlanoV2.tsx:1079",href:ot,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 underline hover:text-blue-800",children:Tt}),ul:({children:ot})=>p.jsx("ul",{"data-loc":"client/src/pages/PlanoV2.tsx:1080",className:"list-disc pl-5 mb-2 space-y-0.5",children:ot}),ol:({children:ot})=>p.jsx("ol",{"data-loc":"client/src/pages/PlanoV2.tsx:1081",className:"list-decimal pl-5 mb-2 space-y-0.5",children:ot}),li:({children:ot})=>p.jsx("li",{"data-loc":"client/src/pages/PlanoV2.tsx:1082",className:"text-sm",children:ot})},children:Ke})}):p.jsx("div",{"data-loc":"client/src/pages/PlanoV2.tsx:1087",className:"bg-[#EDE9DF]/60 rounded-xl p-4 text-sm text-[#2D4A2D]/80 leading-relaxed whitespace-pre-line font-mono text-xs",children:Ke})})(),j[Pe.id]&&p.jsx("div",{"data-loc":"client/src/pages/PlanoV2.tsx:1093",className:"mt-2 text-[10px] text-[#2D4A2D]/50 italic",children:"⦠Texto modificado (edição manual ou revisão da IA aplicada)"})]})}),p.jsx("div",{"data-loc":"client/src/pages/PlanoV2.tsx:1102",className:"px-5 pb-4",children:p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:1103",className:"bg-[#FAFAF8] rounded-xl p-3 space-y-2",style:{border:"1px dashed #C9B99A"},children:[p.jsx("div",{"data-loc":"client/src/pages/PlanoV2.tsx:1104",className:"text-[10px] font-bold uppercase tracking-wider text-[#2D4A2D]/60",children:"Imagens da seção"}),p.jsx(tde,{"data-loc":"client/src/pages/PlanoV2.tsx:1107",imagens:pe(Pe),onChange:Ke=>ee(Pe.id,Ke)})]})}
1190),A[Pe.id]&&p.jsx("div",{"data-loc":"client/src/pages/PlanoV2.tsx:1116",className:"px-5 pb-2",children:p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:1117",className:"border-2 border-blue-300 bg-blue-50/60 rounded-xl p-4 space-y-3",children:[p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:1118",className:"flex items-center gap-2",children:[p.jsx(pn,{"data-loc":"client/src/pages/PlanoV2.tsx:1119",size:14,className:"text-blue-600"}),p.jsx("span",{"data-loc":"client/src/pages/PlanoV2.tsx:1120",className:"text-xs font-semibold text-blue-900 uppercase tracking-wider",children:"Sugestão da IA â pendente de revisão"})]}),p.jsx("div",{"data-loc":"client/src/pages/PlanoV2.tsx:1124",className:"bg-white rounded-lg p-3 text-xs text-[#2D4A2D]/90 whitespace-pre-line font-mono leading-relaxed max-h-72 overflow-auto",children:A[Pe.id].textoRevisado}),A[Pe.id].resumoMudancas&&p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:1128",className:"text-xs text-blue-900",children:[p.jsx("span",{"data-loc":"client/src/pages/PlanoV2.tsx:1129",className:"font-semibold",children:"Resumo: "}),A[Pe.id].resumoMudancas]}),A[Pe.id].alertas?.length>0&&p.jsx("ul",{"data-loc":"client/src/pages/PlanoV2.tsx:1134",className:"text-xs text-amber-800 list-disc pl-5 space-y-0.5",children:A[Pe.id].alertas.map((Ke,ht)=>p.jsx("li",{"data-loc":"client/src/pages/PlanoV2.tsx:1136",children:Ke},ht))}),p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:1140",className:"flex justify-end gap-2 pt-1",children:[p.jsx("button",{"data-loc":"client/src/pages/PlanoV2.tsx:1141",onClick:()=>fe(Pe.id),className:"px-3 py-1.5 rounded-lg text-xs border border-[#2D4A2D]/20 text-[#2D4A2D]/70 hover:bg-white transition-colors",children:"Descartar"}),p.jsxs("button",{"data-loc":"client/src/pages/PlanoV2.tsx:1147",onClick:()=>ce(Pe.id),className:"px-3 py-1.5 rounded-lg text-xs bg-blue-600 text-white hover:bg-blue-700 transition-colors flex items-center gap-1.5",children:[p.jsx(a3,{"data-loc":"client/src/pages/PlanoV2.tsx:1151",size:12})," Aceitar revisão"]})]})]})}),p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:1159",className:"px-5 pb-5 space-y-3",children:[C!==Pe.id&&p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:1161",className:"flex items-center gap-2 flex-wrap",children:[p.jsxs("button",{"data-loc":"client/src/pages/PlanoV2.tsx:1162",onClick:()=>we(Pe.id),className:"flex items-center gap-1.5 px-3 py-1.5 rounded-lg border border-amber-300 text-amber-700 text-xs hover:bg-amber-50 transition-colors",children:[p.jsx(Mp,{"data-loc":"client/src/pages/PlanoV2.tsx:1166",size:12}),"Editar diretamente"]}),p.jsxs("button",{"data-loc":"client/src/pages/PlanoV2.tsx:1169",onClick:()=>x(m===Pe.id?null:Pe.id),className:"flex items-center gap-1.5 px-3 py-1.5 rounded-lg border border-[#2D4A2D]/20 text-[#2D4A2D] text-xs hover:bg-[#2D4A2D]/5 transition-colors",children:[p.jsx(Oh,{"data-loc":"client/src/pages/PlanoV2.tsx:1173",size:12}),"Comentar para IA revisar"]}),Et!=="aprovado"&&p.jsxs("button",{"data-loc":"client/src/pages/PlanoV2.tsx:1177",onClick:()=>ue(Pe.id),className:"flex items-center gap-1.5 px-3 py-1.5 rounded-lg bg-emerald-600 text-white text-xs hover:bg-emerald-700 transition-colors",children:[p.jsx(a3,{"data-loc":"client/src/pages/PlanoV2.tsx:1181",size:12}),"Aprovar seção"]}),Et==="aprovado"&&p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:1186",className:"flex items-center gap-1.5 text-emerald-600 text-xs ml-auto",children:[p.jsx(ta,{"data-loc":"client/src/pages/PlanoV2.tsx:1187",size:14}),p.jsx("span",{"data-loc":"client/src/pages/PlanoV2.tsx:1188",className:"font-medium",children:"Aprovada pela equipe PRINT"})]})]}),m===Pe.id&&p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:1196",className:"space-y-2",children:[p.jsx("textarea",{"data-loc":"client/src/pages/PlanoV2.tsx:1197",value:h[Pe.id]||"",onChange:Ke=>f(ht=>({...ht,[Pe.id]:Ke.target.value})),placeholder:"Descreva o que a IA deve ajustar nesta seção...",className:"w-full rounded-xl border border-[#2D4A2D]/20 bg-white p-3 text-sm text-[#2D4A2D] resize-none focus:outline-none focus:border-[#2D4A2D]/40 placeholder:text-[#2D4A2D]/30",rows:3}),p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:1204",className:"flex justify-end gap-2",children:[p.jsx("button",{"data-loc":"client/src/pages/PlanoV2.tsx:1205",onClick:()=>x(null),className:"px-3 py-1.5 rounded-lg text-xs text-[#2D4A2D]/60 hover:text-[#2D4A2D] transition-colors",children:"Cancelar"}),p.jsx("button",{"data-loc":"client/src/pages/PlanoV2.tsx:1211",onClick:()=>H(Pe.id),disabled:!h[Pe.id]?.trim()||v===Pe.id,className:"flex items-center gap-1.5 px-3 py-1.5 rounded-lg bg-[#2D4A2D] text-white text-xs hover:bg-[#2D4A2D]/90 transition-colors disabled:opacity-50",children:v===Pe.id?p.jsxs(p.Fragment,{children:[p.jsx(Wt,{"data-loc":"client/src/pages/PlanoV2.tsx:1217",size:12,className:"animate-spin"}
1190)," Enviando..."]}):p.jsxs(p.Fragment,{children:[p.jsx(sy,{"data-loc":"client/src/pages/PlanoV2.tsx:1219",size:12})," Enviar para IA"]})})]})]})]})]})]})},Pe.id)})})})]},Oe)}),p.jsx("div",{"data-loc":"client/src/pages/PlanoV2.tsx:1240",className:"bg-white rounded-2xl border border-[#2D4A2D]/10 shadow-sm p-5",children:p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:1241",className:"flex items-center justify-between",children:[p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:1242",className:"flex items-center gap-3",children:[p.jsx("div",{"data-loc":"client/src/pages/PlanoV2.tsx:1243",className:"w-8 h-8 rounded-xl bg-[#2D4A2D] flex items-center justify-center",children:p.jsx(pn,{"data-loc":"client/src/pages/PlanoV2.tsx:1244",size:14,className:"text-white"})}),p.jsxs("div",{"data-loc":"client/src/pages/PlanoV2.tsx:1246",children:[p.jsx("div",{"data-loc":"client/src/pages/PlanoV2.tsx:1247",className:"text-sm font-semibold text-[#2D4A2D]",children:"Motor de IA PRINT"}),p.jsx("div",{"data-loc":"client/src/pages/PlanoV2.tsx:1248",className:"text-xs text-[#2D4A2D]/50",children:"Base de conhecimento: 4 projetos reais · Aprendizado contÃnuo por revisão dos analistas"})]})]}),p.jsx("button",{"data-loc":"client/src/pages/PlanoV2.tsx:1251",onClick:it,disabled:B,className:"flex items-center gap-2 px-4 py-2 rounded-xl bg-[#2D4A2D] text-white text-sm hover:bg-[#2D4A2D]/90 transition-colors disabled:opacity-50",children:B?p.jsxs(p.Fragment,{children:[p.jsx(Wt,{"data-loc":"client/src/pages/PlanoV2.tsx:1257",size:14,className:"animate-spin"})," Gerando..."]}):p.jsxs(p.Fragment,{children:[p.jsx(Wz,{"data-loc":"client/src/pages/PlanoV2.tsx:1259",size:14})," Exportar Word (.docx)"]})})]})})]})})}const co={identificacao:25,contato:15,posicionamento:20,estrategia:25,observacao:15},Dxe=/\[VERIFICAR/i,_xe=/\[PREENCHER/i;function ll(e){return Dxe.test(e)||_xe.test(e)}function kV(e){let t=0;const r=[],a=(e.nome??"").trim(),n=a.split(/\s+/).filter(Boolean);a?ll(a)?(r.push({label:"Nome marcado [VERIFICAR]",pontos:5,tipo:"negativo"}),t+=5):n.length>=2?(r.push({label:"Nome próprio identificado",pontos:co.identificacao,tipo:"positivo"}),t+=co.identificacao):(r.push({label:"Apenas papel/função, sem nome próprio",pontos:10,tipo:"neutro"}),t+=10):r.push({label:"Sem nome registrado",pontos:0,tipo:"negativo"});let i=0;const o=[];e.email&&!ll(e.email)&&(i+=6,o.push("e-mail")),e.telefone&&!ll(e.telefone)&&(i+=5,o.push("telefone")),e.site&&!ll(e.site)&&(i+=4,o.push("site")),t+=i,i===0?r.push({label:"Sem canal de contato registrado",pontos:0,tipo:"negativo"}):i<co.contato?r.push({label:`Contato parcial: ${o.join(", ")}`,pontos:i,tipo:"neutro"}):r.push({label:`Contato completo: ${o.join(", ")}`,pontos:i,tipo:"positivo"}),e.posicionamento==="neutro"&&!e.observacao?.trim()?(r.push({label:'Posicionamento "neutro" sem justificativa',pontos:8,tipo:"neutro"}),t+=8):(r.push({label:`Posicionamento "${e.posicionamento}" definido`,pontos:co.posicionamento,tipo:"positivo"}),t+=co.posicionamento);const s=(e.estrategia??"").trim();s?ll(s)?(r.push({label:"Estratégia com placeholders [VERIFICAR/PREENCHER]",pontos:8,tipo:"neutro"}),t+=8):s.length<60?(r.push({label:"Estratégia muito sintética (< 60 chars)",pontos:12,tipo:"neutro"}),t+=12):s.length<140?(r.push({label:"Estratégia definida",pontos:20,tipo:"positivo"}),t+=20):(r.push({label:"Estratégia detalhada (⥠140 chars)",pontos:co.estrategia,tipo:"positivo"}),t+=co.estrategia):r.push({label:"Sem estratégia de engajamento",pontos:0,tipo:"negativo"});const c=(e.observacao??"").trim();c.length>=50&&!ll(c)?(r.push({label:"Observação contextual presente",pontos:co.observacao,tipo:"positivo"}),t+=co.observacao):c.length>0&&(r.push({label:"Observação breve",pontos:7,tipo:"neutro"}),t+=7),t=Math.max(0,Math.min(100,t));const u=t>=75?"alta":t>=50?"media":"baixa",h=e.poder==="Muito alto"||e.poder==="Alto",f=e.posicionamento==="resistente",m=!s||ll(s)||s.length<60;let x="ok",v;return h&&u==="baixa"?(x="critico",v=`Stakeholder de poder ${e.poder} com confiança baixa â intel insuficiente sobre figura crÃtica.`):f&&m?(x="critico",v="Posicionamento resistente sem plano de mitigação definido."):h&&u==="media"?(x="atencao",v="Stakeholder de alto poder com lacunas na ficha â vale aprofundar a pesquisa."):f&&u!=="alta"&&(x="atencao",v="Posicionamento resistente exige confiança alta para garantir mitigação eficaz."),{total:t,nivel:u,fatores:r,risco:x,riscoLabel:v}}function Rxe(e){const t=e.map(m=>({stk:m,conf:kV(m)}));if(t.length===0)return{totalStakeholders:0,scoreMedio:0,scoreMediano:0,alta:0,media:0,baixa:0,riscosCriticos:0,riscosAtencao:0,topLacunas:[]};const r=t.map(m=>m.conf.total).sort((m,x)=>m-x),a=Math.round(r.reduce((m,x)=>m+x,0)/r.length),n=r[Math.floor(r.length/2)],i=t.filter(m=>m.conf.nivel==="alta").length,o=t.filter(m=>m.conf.nivel==="media").length,s=t.filter(m=>m.conf.nivel==="baixa").length,c=t.filter(m=>m.conf.risco==="critico").length,u=t.filter(m=>m.conf.risco==="atencao").length,h={"Muito alto":4,Alto:3,Médio:2,Baixo:1},f=t.filter(m=>m.conf.risco==="critico"||m.conf.risco==="atencao").sort((m,x)=>{const v=(m.conf.risco==="critico"?0:1)-(x.conf.risco==="critico"?0:1);if(v!==0)return v;const y=h[x.stk.poder]-h[m.stk.poder];return y!==0?y:m.conf.total-x.conf.total}).slice(0,6).map(m=>({id:m.stk.id,nome:m.stk.nome,instituicao:m.stk.instituicao,poder:m.stk.poder,score:m.conf.total,motivo:m.conf.riscoLabel??""}));return{totalStakeholders:t.length,scoreMedio:a,scoreMediano:n,alta:i,media:o,baixa:s,riscosCriticos:c,riscosAtencao:u,topLacunas:f}}const UR={alta:{bg:"#7A8C5E",fg:"#fff",label:"Alta"},media:{bg:"#C9A84C",fg:"#fff",label:"Média"},baixa:{bg:"#c0392b",fg:"#fff",label:"Baixa"}},HR=[{id:1,nome:"Emanuel Medeiros da Silva (Nel)",instituicao:"Prefeitura Municipal de Itaperuna",funcao:"Prefeito",site:"https://itaperuna.rj.gov.br/pmi/",email:"[email protected]",poder:"Muito alto",interesse:"Prioritário",posicionamento:"apoiador",categoria:"Poder Público Municipal",observacao:"Principal porta-voz da PPP. Toda a administração municipal é favorável ao Projeto por fazerem parte da gestão atual.",estrategia:"Manter alinhamento estratég
1190ico permanente. Preparar para entrevistas e audiências públicas. Subsidiar com mensagens-chave atualizadas."},{id:2,nome:"Jair de Siqueira Bittencourt Neto",instituicao:"Prefeitura Municipal de Itaperuna",funcao:"Vice-Prefeito",site:"https://itaperuna.rj.gov.br/pmi/",poder:"Alto",interesse:"Alto",posicionamento:"apoiador",categoria:"Poder Público Municipal",estrategia:"Envolver em eventos e audiências públicas como representante institucional."},{id:3,nome:"Dr. Igor Garcia Marinho Ferreira",instituicao:"Prefeitura Municipal de Itaperuna",funcao:"Procurador Geral",email:"[email protected]",telefone:"(22)3811-1050",poder:"Alto",interesse:"Alto",posicionamento:"apoiador",categoria:"Poder Público Municipal",estrategia:"Parceiro jurÃdico estratégico. Envolver na validação dos documentos legais do processo."},{id:4,nome:"João Paulo Medeiros da Silva",instituicao:"Secretaria Municipal de Gabinete",funcao:"Secretário Municipal",email:"[email protected]",telefone:"(22)3811-1050",poder:"Alto",interesse:"Alto",posicionamento:"apoiador",categoria:"Poder Público Municipal",estrategia:"Ponto focal para comunicação interna. Coordenar reuniões quinzenais."},{id:5,nome:"Thiago Lopes Pinheiro dos Santos",instituicao:"Secretaria Municipal de Governo",funcao:"Secretário Municipal",email:"[email protected]",telefone:"(22)3811-1050",poder:"Alto",interesse:"Alto",posicionamento:"apoiador",categoria:"Poder Público Municipal"},{id:6,nome:"Marcionilio Botelho Moreira",instituicao:"Secretaria Municipal de Fazenda",funcao:"Secretário Municipal",email:"[email protected]",telefone:"(22)3811-1050",poder:"Alto",interesse:"Alto",posicionamento:"apoiador",categoria:"Poder Público Municipal",estrategia:"Envolver nas discussões sobre COSIP/CIP e viabilidade financeira do contrato."},{id:7,nome:"Monica Alceno Pereira",instituicao:"Secretaria Municipal de Desenvolvimento Urbano",funcao:"Secretária Municipal",telefone:"(22)3811-1050",poder:"Alto",interesse:"Alto",posicionamento:"apoiador",categoria:"Poder Público Municipal"},{id:8,nome:"Carlos Alessandre Vieira Serodio",instituicao:"Secretaria Municipal de Planejamento",funcao:"Secretário Municipal",telefone:"(22)3811-1050",poder:"Alto",interesse:"Alto",posicionamento:"apoiador",categoria:"Poder Público Municipal"},{id:9,nome:"Kelly Rosa Pereira",instituicao:"Secretaria Municipal de Controle Interno",funcao:"Secretária Municipal",email:"[email protected]",telefone:"(22)3811-1050",poder:"Alto",interesse:"Alto",posicionamento:"apoiador",categoria:"Poder Público Municipal"},{id:10,nome:"Savio Saboia da Fonseca",instituicao:"Secretaria Municipal de Saúde",funcao:"Secretário Municipal",telefone:"(22)3811-1050",poder:"Alto",interesse:"Alto",posicionamento:"apoiador",categoria:"Poder Público Municipal"},{id:11,nome:"Josiel Padilha Abreu",instituicao:"Secretaria Municipal de Desenvolvimento Econômico",funcao:"Secretário Municipal",telefone:"(22)3811-1050",poder:"Alto",interesse:"Alto",posicionamento:"apoiador",categoria:"Poder Público Municipal"},{id:12,nome:"Fabio Rampázio Dutra",instituicao:"Guarda Municipal de Itaperuna",funcao:"Comandante",telefone:"(22)3811-1050",poder:"Alto",interesse:"Alto",posicionamento:"apoiador",categoria:"Poder Público Municipal",estrategia:"Aliado estratégico na narrativa de segurança pública. Envolver em eventos de lançamento."},{id:13,nome:"Paulo Cesar",instituicao:"Câmara Municipal de Itaperuna",funcao:"Vereador â Presidente da Câmara",site:"https://www.itaperuna.rj.leg.br/",email:"[email protected]",telefone:"(22) 3824-1263",poder:"Alto",interesse:"Alto",posicionamento:"apoiador",categoria:"Poder Legislativo",estrategia:"Aliado estratégico para governabilidade. Envolver na condução da Mensagem Executiva."},{id:14,nome:"Sargento Cristiane",instituicao:"Câmara Municipal de Itaperuna",funcao:"Vereadora â mais votada (1.821 votos)",site:"https://www.itaperuna.rj.leg.br/",email:"[email protected]",telefone:"(22) 3824-1263",poder:"Alto",interesse:"Alto",posicionamento:"apoiador",categoria:"Poder Legislativo",estrategia:"Reeleita com apoio direto do prefeito. Atua na pauta de segurança â aliada natural para a
1190narrativa de iluminação = segurança."},{id:15,nome:"Eduardo Branco (Eduardo do Toldo)",instituicao:"Câmara Municipal de Itaperuna",funcao:"Vereador",site:"https://www.itaperuna.rj.leg.br/",email:"[email protected]",telefone:"(22) 3824-1263",poder:"Alto",interesse:"Alto",posicionamento:"resistente",categoria:"Poder Legislativo",observacao:'RISCO ALTO â Principal fiscalizador de contratos. CrÃticas sobre "valores elevados" ou "falta de transparência no edital" provavelmente virão dele.',estrategia:"ESTRATÃGIA PRIORITÃRIA: Envio prévio de dados técnicos. Reunião individual antes de qualquer apresentação pública. Antecipar debate técnico para esvaziar crÃticas sobre custos."},{id:16,nome:"Elia Cruz",instituicao:"Câmara Municipal de Itaperuna",funcao:"Vereadora",email:"[email protected]",telefone:"(22) 3824-1263",poder:"Alto",interesse:"Alto",posicionamento:"apoiador",categoria:"Poder Legislativo",estrategia:"Do mesmo partido do prefeito (PL). Alinhamento total."},{id:17,nome:"Wellington Gonçalves (Wellington do Guaritá)",instituicao:"Câmara Municipal de Itaperuna",funcao:"Vereador",email:"[email protected]",telefone:"(22) 3824-1263",poder:"Alto",interesse:"Alto",posicionamento:"apoiador",categoria:"Poder Legislativo",estrategia:"Do mesmo partido do prefeito (PL). Alinhamento total."},{id:18,nome:"Elton Magno",instituicao:"Câmara Municipal de Itaperuna",funcao:"Vereador",email:"[email protected]",telefone:"(22) 3824-1263",poder:"Alto",interesse:"Alto",posicionamento:"apoiador",categoria:"Poder Legislativo"},{id:19,nome:"Jefferson Ferreira",instituicao:"Câmara Municipal de Itaperuna",funcao:"Vereador",email:"[email protected]",telefone:"(22) 3824-1263",poder:"Alto",interesse:"Alto",posicionamento:"apoiador",categoria:"Poder Legislativo"},{id:20,nome:"Jefferson Nogueira",instituicao:"Câmara Municipal de Itaperuna",funcao:"Vereador",email:"[email protected]",telefone:"(22) 3824-1263",poder:"Alto",interesse:"Alto",posicionamento:"apoiador",categoria:"Poder Legislativo"},{id:21,nome:"Carlinhos Peixeiro",instituicao:"Câmara Municipal de Itaperuna",funcao:"Vereador",email:"[email protected]",telefone:"(22) 3824-1263",poder:"Alto",interesse:"Alto",posicionamento:"apoiador",categoria:"Poder Legislativo"},{id:22,nome:"Viviane Braga (Vivi Dentista)",instituicao:"Câmara Municipal de Itaperuna",funcao:"Vereadora",email:"[email protected]",telefone:"(22) 3824-1263",poder:"Alto",interesse:"Alto",posicionamento:"neutro",categoria:"Poder Legislativo",estrategia:"Postura técnica. Avalia projetos caso a caso. Enviar material técnico detalhado antes de qualquer votação."},{id:23,nome:"Valdunei da Silva",instituicao:"Câmara Municipal de Itaperuna",funcao:"Vereador",email:"[email protected]",telefone:"(22) 3824-1263",poder:"Alto",interesse:"Alto",posicionamento:"apoiador",categoria:"Poder Legislativo"},{id:24,nome:"Wendel Mantovani",instituicao:"Câmara Municipal de Itaperuna",funcao:"Vereador",email:"[email protected]",telefone:"(22) 3824-1263",poder:"Alto",interesse:"Alto",posicionamento:"apoiador",categoria:"Poder Legislativo"},{id:25,nome:"Ademir Pessanha",instituicao:"Câmara Municipal de Itaperuna",funcao:"Vereador",email:"[email protected]",telefone:"(22) 3824-1263",poder:"Alto",interesse:"Alto",posicionamento:"apoiador",categoria:"Poder Legislativo",estrategia:"Experiente, atua na mediação polÃtica. Aliado estratégico para articulação com pares."},{id:26,nome:"MÃRCIO HENRIQUE CRUZ PACHECO",instituicao:"Tribunal de Contas do Estado do RJ",funcao:"Presidente",site:"https://www.tcerj.tc.br/portalnovo/",email:"[email protected]",telefone:"(21) 3231-5400",poder:"Alto",interesse:"Neutro",posicionamento:"neutro",categoria:"Ãrgãos de Controle",estrategia:"Estabelecer canal direto e permanente de comunicação. Reforçar transparência e legalidade. Apresentar diagnóstico técnico."},{id:27,nome:"THIAGO PAMPOLHA GONÃALVES",instituicao:"Tribunal de Contas do Estado do RJ",funcao:"Vice-Presidente",email:"[email protected]",telefone:"(21) 3231-5400",poder:"Alto",interesse:"Neutro",posicionamento:"neutro",categoria:"Ãrgãos de Controle"},{id:28,nome:"RODRIGO MELO DO NASCIMENTO",instituicao:"Tribunal de Contas do Estado do RJ",funcao:"Corregedor Geral",email:"[email protected]",telefone:"(21) 3231-5400",poder:"Alto",interesse:"Neutro",posicionamento:"neutro",categoria:"Ãrgãos de Controle"},{id:29,nome:"Carla Pedrosa",instituicao:"Secretaria de Estado de Infraestrutura e Obras Públicas/RJ",funcao:"Secretária Executiva",site:"https://www.rj.gov.br/seiop/",email:"[email protected]",telefone:"(21) 2332-5535",poder:"Alto",interesse:"Alto",posicionamento:"apoiador",categoria:"Poder Público Estadual"},{id:30,nome:"Natasha Barbosa Pinheiro",instituicao:"Secretaria de Estado de Infraestrutura e Obras Públicas/RJ",funcao:"Chefe de Gabinete",email:"[email protected]",telefone:"(21) 2332-5535",poder:"Alto",interesse:"Alto",posicionamento:"apoiador",categoria:"Poder Público Estadual"},{id:31,nome:"Enel Distribuição Rio",instituicao:"Enel Distribuição Rio",funcao:"Distribuidora de energia elétrica",site:"https://www.enel.com.br",email:"[email protected]",telefone:"(11) 94551-5574",poder:"Alto",interesse:"Alto",posicionamento:"apoiador",categoria:"Setor Técnico",estrategia:"Parceiro operacional essencial. Envolver nas discussões técnicas sobre a rede elétrica e medição de pontos."},{id:32,nome:"Helencar Medeiros Cabral Vicente",instituicao:"Linha de Pipa Tecnologias Ltda",funcao:"Sócio",poder:"Alto",interesse:"Alto",posicionamento:"apoiador",categoria:"Setor Técnico",observacao:"Todo o setor técnico e operacional tem interesse no Projeto da PPP por conta dos benefÃcios do negócio."},{id:33,nome:"Acacio Jose Teixeira de Castro Velloso",instituicao:"Itanet Conecta LTDA",funcao:"Sócio",site:"https://itanet.com.br/itaperuna/nossas-lojas",telefone:"(22) 3811 1600",poder:"Alto",interesse:"Alto",posicionamento:"apoiador",categoria:"Setor Técnico",observacao:"Já realizou PPP com a Prefeitura (pórtico da cidade). Experiência prévia com modelo de parceria."},{id:34,nome:"Israel Vargas Junior",instituicao:"Solar Itaperuna Tecnologia e Energia LTDA",funcao:"Sócio-administrador",site:"https://www.instagram.com/solaritaperuna/",poder:"Alto",interesse:"Alto",posicionamento:"apoiador",categoria:"Setor Técnico"},{id:35,nome:"Pe. Luiz Carlos de Amorim",instituicao:"Igreja Matriz São José do Avahy",funcao:"Pároco",site:"https://www.psja.org.br/",email:"[email protected]",telefone:"(22) 3822-2172",poder:"Alto",interesse:"Alto",posicionamento:"apoiador",categoria:"Comunicação e Opinião Pública",observacao:"Alta Influência. Centro religioso e histórico; ponto de grandes eventos (Festa de São José).",estrategia:"Envolver em eventos de lançamento. Usar espaço para reuniÃ
1190µes comunitárias."},{id:36,nome:"Gilvan Nunes",instituicao:"Rádio Itaperuna 96 FM",funcao:"Diretor de Programação",site:"https://radioitaperuna96fm.com.br",email:"[email protected]",telefone:"(22) 3822-1262",poder:"Alto",interesse:"Alto",posicionamento:"apoiador",categoria:"Comunicação e Opinião Pública",observacao:"Aliado Institucional / Profissional. Dá amplo espaço para o prefeito e secretários; cobre atos oficiais com seriedade.",estrategia:"Canal prioritário para releases e entrevistas. Enviar material com antecedência."},{id:37,nome:"Ãnio Borges Rodrigues",instituicao:"Jornal Noroeste NotÃcias",funcao:"Proprietário",site:"https://www.instagram.com/jornal_noroeste_noticias/",email:"[email protected]",telefone:"(22)99730-1346",poder:"Alto",interesse:"Alto",posicionamento:"resistente",categoria:"Comunicação e Opinião Pública",observacao:"Independente / CrÃtico. Postura fiscalizadora; aponta falhas em infraestrutura e saúde.",estrategia:"Abordagem proativa com dados técnicos. Oferecer entrevista exclusiva com especialista antes do lançamento público."},{id:38,nome:"Adilson Ribeiro",instituicao:"Blog do Adilson Ribeiro",funcao:"Proprietário",site:"https://adilsonribeiro.net",email:"[email protected]",telefone:"(22) 9.9601-1115",poder:"Alto",interesse:"Alto",posicionamento:"resistente",categoria:"Comunicação e Opinião Pública",observacao:"Vigilante / CrÃtico Construtivo. Atua como ouvidoria popular; publica muitas reclamações de moradores.",estrategia:"Monitoramento constante. Responder rapidamente a questionamentos. Oferecer canal direto de esclarecimentos."},{id:39,nome:"Luiz Lorenzini",instituicao:"Blog do Lorenzini",funcao:"Proprietário",site:"https://blogdolorenzini.com",email:"[email protected]",telefone:"(22) 99618-7842",poder:"Alto",interesse:"Alto",posicionamento:"apoiador",categoria:"Comunicação e Opinião Pública",observacao:"Aliado / Favorável. Publica notas positivas, convênios e decretos com tom elogioso à gestão.",estrategia:"Enviar releases com antecedência. Oferecer exclusividades em marcos do projeto."},{id:40,nome:"equipe editorial",instituicao:"Atualiza Itaperuna",funcao:"Portal digital",email:"[email protected]",telefone:"(22) 99841-6334",poder:"Alto",interesse:"Alto",posicionamento:"apoiador",categoria:"Comunicação e Opinião Pública",observacao:'Aliado / Popular. Realiza homenagens ao prefeito e foca em vÃdeos de "antes e depois" de obras.',estrategia:'Parceiro ideal para conteúdo visual de "antes e depois". Fornecer fotos e vÃdeos do projeto.'},{id:41,nome:"equipe editorial",instituicao:"Portal Sudeste Agora",funcao:"Portal digital",site:"https://sudesteagora.com.br",email:"[email protected]",telefone:"(22) 3824-4690",poder:"Alto",interesse:"Alto",posicionamento:"apoiador",categoria:"Comunicação e Opinião Pública",observacao:"Aliado Estratégico. Cobre visitas de autoridades estaduais e federais com foco no alinhamento polÃtico."},{id:42,nome:"equipe editorial",instituicao:"Portal Itaperuna NotÃcias",funcao:"Portal digital",site:"https://portalitaperunanoticias.com.br/",email:"[email protected]",telefone:"22 99803-7963",poder:"Alto",interesse:"Neutro",posicionamento:"neutro",categoria:"Comunicação e Opinião Pública",observacao:"Independente / Informativo. Foca em notÃcias policiais e de serviços; tom mais neutro."},{id:43,nome:"Igor Piredda",instituicao:"Blog do Toretto",funcao:"Proprietário",site:"https://instagram.com/blog.dotoretto",email:"[email protected]",telefone:"(22) 99920-9557",poder:"Médio",interesse:"Alto",posicionamento:"neutro",categoria:"Comunicação e Opinião Pública",observacao:"Independente / Comunitário. Foca em utilidade pública e eventos locais."},{id:44,nome:"Henrique VÃtor Lobato",instituicao:"Conselho Comunitário de Segurança de Itaperuna",funcao:"Presidente",email:"[email protected]",telefone:"(22) 3824-6334",poder:"Alto",interesse:"Alto",posicionamento:"apoiador",categoria:"Sociedade Civil",estrategia:"Aliado estratég
1190ico para a narrativa de segurança. Envolver em reuniões comunitárias e eventos."},{id:45,nome:"Edmilson Ladeira",instituicao:"CDL Itaperuna",funcao:"Presidente",site:"https://www.instagram.com/cdlitaperuna/",telefone:"(22) 3822-2125",poder:"Alto",interesse:"Alto",posicionamento:"apoiador",categoria:"Sociedade Civil",observacao:"Principal interessada no sucesso do Projeto, sobretudo no Centro da cidade. Destaques: melhoria do ambiente de negócios e segurança noturna.",estrategia:"Parceiro multiplicador. Envolver em apresentação do componente Smart City. Oferecer dados sobre valorização comercial."},{id:46,nome:"Agualdo L. Ferreira",instituicao:"SINFUNSERMI â Sindicato dos Funcionários e Servidores Municipais",funcao:"Presidente",telefone:"(22) 3822-3109",poder:"Alto",interesse:"Alto",posicionamento:"resistente",categoria:"Sociedade Civil",observacao:"Potencial resistência por preocupações com impacto nos servidores municipais.",estrategia:"Reunião especÃfica para esclarecer que a PPP não implica demissões. Reforçar que o municÃpio mantém controle e fiscalização."},{id:47,nome:"Pietro Valdo Rostagno",instituicao:"APENF â Assoc. dos Profissionais de Engenharia do Noroeste Fluminense",funcao:"Sócio",site:"https://www.instagram.com/apenfeng/",telefone:"22 98841-2270",poder:"Alto",interesse:"Alto",posicionamento:"apoiador",categoria:"Sociedade Civil",observacao:"Aproximação pela possibilidade de novos negócios."},{id:48,nome:"João Felipe B. Borge",instituicao:"Instituto Federal Fluminense â Campus Itaperuna",funcao:"Diretor",site:"https://portal1.iff.edu.br/nossos-campi/itaperuna",email:"[email protected]",telefone:"(22) 3826-2300",poder:"Alto",interesse:"Neutro",posicionamento:"neutro",categoria:"Sociedade Civil",estrategia:"Apresentar oportunidades de capacitação técnica vinculadas ao projeto Smart City."},{id:49,nome:"Assoc. de Moradores â Matadouro",instituicao:"Associação de Moradores",funcao:"Liderança Comunitária",poder:"Médio",interesse:"Alto",posicionamento:"neutro",categoria:"Sociedade Civil",observacao:'Crucial para a aceitação da PPP â são elas que recebem as queixas de "ruas escuras" que geram insegurança.',estrategia:"Reuniões presenciais com linguagem clara. Grupo de WhatsApp restrito para atualizações. Visitas técnicas a áreas com iluminação inteligente."},{id:50,nome:"Assoc. de Moradores de Vinhosa/Guarita",instituicao:"Associação de Moradores",funcao:"Liderança Comunitária",telefone:"22 3822-3130",poder:"Médio",interesse:"Alto",posicionamento:"resistente",categoria:"Sociedade Civil",estrategia:"Abordagem direta e transparente. Reunião especÃfica para ouvir demandas antes de qualquer apresentação."},{id:51,nome:"Assoc. de Moradores e Amigos de Raposo",instituicao:"Associação de Moradores",funcao:"Liderança Comunitária",telefone:"22 3847-2285",poder:"Médio",interesse:"Alto",posicionamento:"resistente",categoria:"Sociedade Civil",estrategia:"Atenção especial à abrangência territorial do projeto nas áreas rurais e distritos."},{id:52,nome:"Rodolfo Olivier de Paula",instituicao:"Concrelagos Concreto S/A",funcao:"Presidente",email:"[email protected]",telefone:"(22) 3824-1071",poder:"Alto",interesse:"Alto",posicionamento:"favorável",categoria:"Setor Econômico",estrategia:"Focar na agilidade que a PPP traz para a infraestrutura urbana, beneficiando a logÃstica da empresa."},{id:53,nome:"Luis Gennari",instituicao:"Fábrica Quatá Alimentos",funcao:"CEO",telefone:"(22) 99685-2455",poder:"Alto",interesse:"Alto",posicionamento:"neutro",categoria:"Setor Econômico",estrategia:"Alinhar a PPP com os valores de sustentabilidade e eficiência energética da marca."},{id:54,nome:"Nilson Pereira",instituicao:"Itaperuna Premier Empreendimentos LTDA",funcao:"Sócio",email:"[email protected]",telefone:"(22) 3824-2355",poder:"Alto",interesse:"Alto",posicionamento:"favorável",categoria:"Setor Econômico",estrategia:"Mostrar como a iluminação LED e serviços digitais valorizam novos loteamentos e prédios."},{id:55,nome:"Aloãn Aleixo",instituicao:"Esporte Clube Venancense",funcao:"Dirigente",telefone:"(22)99258-2335",poder:"Alto",interesse:"Alto",posicionamento:"apoiador",categoria:"Setor Econômico",estrategia:"Destacar a segurança para eventos e jogos noturnos no entorno do clube."}],Oxe={"Poder Público Municipal":{cor:"#2D4A2D",bg:"#2D4A2D12",icon:p.jsx(_u,{"data-loc":"client/src/pages/StakeholdersV2.tsx:121",size:12})},"Poder Legislativo":{cor:"#5B8FA8",bg:"#5B8FA812",icon:p.jsx(jo,{"data-loc":"client/src/pages/StakeholdersV2.tsx:122",size:12})},"Ãrgãos de Controle":{cor:"#C9A84C",bg:"#C9A84C12",icon:p.jsx(jo,{"data-loc":"client/src/pages/StakeholdersV2.tsx:123",size:12})},"Poder Público Estadual":{cor:"#7A8C5E",bg:"#7A8C5E12",icon:p.jsx(_u,{"data-loc":"client/src/pages/StakeholdersV2.tsx:124",size:12})},"Setor Técnico":{cor:"#8B6914",bg:"#8B691412",icon:p.jsx(r3,{"data-loc":"client/src/pages/StakeholdersV2.tsx:125",size:12})},"Comunicação e Opinião Pública":{cor:"#374151",bg:"#37415112",icon:p.jsx(Dx,{"data-loc":"client/src/pages/StakeholdersV2.tsx:126",size:12})},"Sociedade Civil":{cor:"#7A8C5E",bg:"#7A8C5E12",icon:p.jsx(xn,{"data-loc":"client/src/pages/StakeholdersV2.tsx:127",size:12})},"Setor Econômico":{cor:"#C9A84C",bg:"#C9A84C12",icon:p.jsx(r3,{"data-loc":"client/src/pages/StakeholdersV2.tsx:128",size:12})}},GR={apoiador:{label:"Apoiador",cor:"#2D4A2D",bg:"#2D4A2D12"},favorável:{label:"Favorável",cor:"#7A8C5E",bg:"#7A8C5E12"},neutro:{label:"Neutro",cor:"#5B8FA8",bg:"#5B8FA812"},resistente:{label:"Resistente",cor:"#c0392b",bg:"#c0392b12"}},Nw={"Muito alto":"#c0392b",Alto:"#C9A84C",Médio:"#5B8FA8",Baixo:"#7A8C5E"},eu={id:"demo:itaperuna",rotulo:"PPP Iluminação Pública â Itaperuna/RJ"};function Mxe(){const{projetos:e}=Ps(),t=e.filter(q=>q.stakeholdersGerados&&q.stakeholdersGerados.length>0),[r,a]=L.useState(eu.id),[n,i]=L.useState(""),[o,s]=L.useState("Todos"),[c,u]=L.useState("Todos"),[h,f]=L.useState("Todos"),[m,x]=L.useState(null),[v,y]=L.useState(!1),[b,S]=L.useState({}),[A,E]=L.useState(!1),[j,P]=L.useState({}),[C,N]=L.useState({}),{stakeholdersAtivos:O,rotuloProjeto:k,isProjetoGerado:B}=L.useMemo(()=>
1190{if(r===eu.id)return{stakeholdersAtivos:HR,rotuloProjeto:eu.rotulo,isProjetoGerado:!1};const q=e.find(X=>X.id===r);return q&&q.stakeholdersGerados?{stakeholdersAtivos:q.stakeholdersGerados,rotuloProjeto:`${Kr[q.tipoProjeto].label} â ${q.municipio}/${q.estado}`,isProjetoGerado:!0}:{stakeholdersAtivos:HR,rotuloProjeto:eu.rotulo,isProjetoGerado:!1}},[r,e]),$=["Todos",...Array.from(new Set(O.map(q=>q.categoria)))],_=L.useMemo(()=>{const q=new Map;return O.forEach(X=>q.set(X.id,kV(X))),q},[O]),W=L.useMemo(()=>Rxe(O),[O]),D=O.filter(q=>{const X=n.toLowerCase(),U=!X||q.nome.toLowerCase().includes(X)||q.instituicao.toLowerCase().includes(X)||q.funcao.toLowerCase().includes(X),ie=o==="Todos"||q.categoria===o,se=c==="Todos"||q.posicionamento===c,he=_.get(q.id),Y=h==="Todos"||(h==="critico"?he?.risco==="critico":he?.nivel===h);return U&&ie&&se&&Y}),J=O.filter(q=>q.posicionamento==="apoiador"||q.posicionamento==="favorável").length,z=O.filter(q=>q.posicionamento==="neutro").length,V=O.filter(q=>q.posicionamento==="resistente").length,Z=async()=>{const q=Object.entries(b).filter(([,se])=>se.trim());if(!q.length){je.error("Adicione pelo menos um comentário antes de enviar para a IA");return}E(!0);const X={};let U=0;for(const[se,he]of q){const Y=Number(se),F=O.find(ne=>ne.id===Y);if(!F)continue;const ae=C[Y]??F.estrategia??"(sem estratégia definida)";try{const ne=await fetch("/api/ai-review",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tipo:"stakeholders",contexto:`Matriz de Stakeholders â ${k} â ${F.nome} (${F.funcao}, ${F.instituicao}) â Poder: ${F.poder}, Interesse: ${F.interesse}, Posicionamento: ${F.posicionamento}`,textoOriginal:ae,comentarioUsuario:he})});if(!ne.ok){const re=await ne.json().catch(()=>({error:`HTTP ${ne.status}`}));throw new Error(re.error||`HTTP ${ne.status}`)}const ge=await ne.json();X[Y]=ge}catch(ne){U++,console.error(`Falha ao revisar stakeholder ${Y}:`,ne)}}P(se=>({...se,...X})),E(!1),y(!1),S({});const ie=Object.keys(X).length;U>0&&ie===0?je.error(`Todas as ${U} revisões falharam. Verifique o console.`):U>0?je.warning(`${ie} revisão(ões) feita(s) · ${U} falharam.`):je.success(`IA revisou ${ie} estratégia(s) â expanda o card para conferir.`)},te=q=>{const X=j[q];X&&(N(U=>({...U,[q]:X.textoRevisado})),P(U=>{const ie={...U};return delete ie[q],ie}),je.success("Estratégia atualizada pela IA."))},K=q=>{P(X=>{const U={...X};return delete U[q],U}),je.info("Sugestão da IA descartada.")};return p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:297",className:"space-y-5",children:[p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:300",className:"flex items-center gap-3 flex-wrap",children:[p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:301",children:[p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:302",className:"text-[10px] font-black uppercase tracking-[1.5px]",style:{color:"#7A8C5E",fontFamily:"Nunito, sans-serif"},children:"Projeto Ativo"}),p.jsxs("select",{"data-loc":"client/src/pages/StakeholdersV2.tsx:303",value:r,onChange:q=>{a(q.target.value),x(null),i(""),s("Todos"),u("Todos"),P({}),N({})},className:"text-[13px] font-black px-2 py-1 rounded-lg outline-none",style:{border:"1.5px solid #C9B99A",backgroundColor:"#fff",color:"#1E1E1E",fontFamily:"Nunito, sans-serif"},children:[p.jsxs("option",{"data-loc":"client/src/pages/StakeholdersV2.tsx:317",value:eu.id,children:[eu.rotulo," (demo)"]}),t.map(q=>p.jsxs("option",{"data-loc":"client/src/pages/StakeholdersV2.tsx:319",value:q.id,children:[Kr[q.tipoProjeto].label," â ",q.municipio,"/",q.estado," (",q.stakeholdersGerados?.length??0,")"]},q.id))]}),B&&p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:325",className:"text-[9px] mt-0.5 italic",style:{color:"#7A8C5E"},children:"⦠Stakeholders gerados pela IA na criação do projeto"})]}),p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:328",className:"flex-1"}),p.jsxs("button",{"data-loc":"client/src/pages/StakeholdersV2.tsx:329",onClick:()=>je.info("Varredura iniciada â IBGE, TSE, Câmara, Redes Sociais..."),className:"flex items-center gap-1.5 text-[11px] font-bold px-3 py-2 rounded-lg",style:{border:"1px solid #C9B99A",color:"#7A8C5E",fontFamily:"Nunito, sans-serif"},children:[p.jsx(Mh,{"data-loc":"client/src/pages/StakeholdersV2.tsx:332",size:12})," Atualizar Varredura"]}),p.jsxs("button",{"data-loc":"client/src/pages/StakeholdersV2.tsx:334",onClick:()=>y(!v),className:"flex items-center gap-1.5 text-[11px] font-black px-3 py-2 rounded-lg transition-all",style:{backgroundColor:v?"#C9A84C":"#fff",color:v?"#fff":"#C9A84C",border:"1.5px solid #C9A84C",fontFamily:"Nunito, sans-serif"},children:[p.jsx(up,{"data-loc":"client/src/pages/StakeholdersV2.tsx:337",size:12})," ",v?"Revisão Ativa":"Revisar com IA"]}),p.jsxs("button",{"data-loc":"client/src/pages/StakeholdersV2.tsx:339",onClick:()=>je.info("Exportando matriz..."),className:"flex items-center gap-1.5 text-[11px] font-bold px-3 py-2 rounded-lg",style:{border:"1px solid #C9B99A",color:"#7A8C5E",fontFamily:"Nunito, sans-serif"},children:[p.jsx(Yl,{"data-loc":"client/src/pages/StakeholdersV2.tsx:342",size:12})," Exportar"]})]}),p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:347",className:"grid grid-cols-4 gap-3",children:[{label:"Total Mapeados",value:O.length,cor:"#2D4A2D",icon:p.jsx(xn,{"data-loc":"client/src/pages/StakeholdersV2.tsx:349",size:14})},{label:"Apoiadores",value:J,cor:"#7A8C5E",icon:p.jsx(ta,{"data-loc":"client/src/pages/StakeholdersV2.tsx:350",size:14})},{label:"Neutros",value:z,cor:"#5B8FA8",icon:p.jsx(Oh,{"data-loc":"client/src/pages/StakeholdersV2.tsx:351",
1190size:14})},{label:"Resistentes â ",value:V,cor:"#c0392b",icon:p.jsx(ho,{"data-loc":"client/src/pages/StakeholdersV2.tsx:352",size:14})}].map(q=>p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:354",className:"rounded-xl p-4 flex items-center gap-3",style:{backgroundColor:"#fff",border:"1px solid #C9B99A"},children:[p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:355",className:"w-8 h-8 rounded-lg flex items-center justify-center flex-shrink-0",style:{backgroundColor:`${q.cor}15`,color:q.cor},children:q.icon}),p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:356",children:[p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:357",className:"text-[10px] font-black uppercase tracking-[1px]",style:{color:q.cor,fontFamily:"Nunito, sans-serif"},children:q.label}),p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:358",className:"text-xl font-black",style:{color:q.cor,fontFamily:"Nunito, sans-serif"},children:q.value})]})]},q.label))}),p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:365",className:"rounded-xl p-5",style:{backgroundColor:"#fff",border:"1px solid #C9B99A"},children:[p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:366",className:"flex items-start gap-5 flex-wrap",children:[p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:368",className:"flex items-center gap-3",style:{minWidth:160},children:[p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:369",className:"w-16 h-16 rounded-full flex items-center justify-center relative",style:{background:`conic-gradient(${W.scoreMedio>=75?"#7A8C5E":W.scoreMedio>=50?"#C9A84C":"#c0392b"} ${W.scoreMedio*3.6}deg, #EDE9DF 0deg)`},children:p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:378",className:"w-12 h-12 rounded-full flex flex-col items-center justify-center",style:{backgroundColor:"#fff"},children:[p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:382",className:"text-[14px] font-black leading-none",style:{color:"#1E1E1E",fontFamily:"Nunito, sans-serif"},children:W.scoreMedio}),p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:385",className:"text-[7px] font-bold",style:{color:"#8B7355"},children:"de 100"})]})}),p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:388",children:[p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:389",className:"text-[10px] font-black uppercase tracking-[1.5px]",style:{color:"#7A8C5E",fontFamily:"Nunito, sans-serif"},children:"Confiança da Matriz"}),p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:392",className:"text-[12px] font-black mt-0.5",style:{color:"#1E1E1E",fontFamily:"Nunito, sans-serif"},children:["Score médio: ",p.jsx("span",{"data-loc":"client/src/pages/StakeholdersV2.tsx:393",style:{color:W.scoreMedio>=75?"#7A8C5E":W.scoreMedio>=50?"#C9A84C":"#c0392b"},children:W.scoreMedio})]}),p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:395",className:"text-[10px]",style:{color:"#8B7355"},children:["Mediana: ",W.scoreMediano," · ",W.totalStakeholders," mapeados"]})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:402",className:"flex-1 min-w-[240px]",children:[p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:403",className:"text-[9px] font-black uppercase tracking-[1.5px] mb-2",style:{color:"#8B7355",fontFamily:"Nunito, sans-serif"},children:"Distribuição"}),p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:406",className:"space-y-1.5",children:[{nivel:"alta",qtd:W.alta,label:"Alta (⥠75)"},{nivel:"media",qtd:W.media,label:"Média (50â74)"},{nivel:"baixa",qtd:W.baixa,label:"Baixa (< 50)"}].map(q=>{const X=W.totalStakeholders>0?Math.round(q.qtd/W.totalStakeholders*100):0,U=UR[q.nivel].bg;return p.jsx("button",{"data-loc":"client/src/pages/StakeholdersV2.tsx:417",onClick:()=>f(h===q.nivel?"Todos":q.nivel),className:"w-full text-left",title:"Clique para filtrar",children:p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:423",className:"flex items-center gap-2 text-[10px]",style:{fontFamily:"Nunito, sans-serif"},children:[p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:424",className:"w-12 font-bold",style:{color:U},children:q.label.split(" ")[0]}),p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:425",className:"flex-1 h-2 rounded-full overflow-hidden",style:{backgroundColor:"#EDE9DF"},children:p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:426",className:"h-full rounded-full",style:{width:`${X}%`,backgroundColor:U}})}),p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:428",className:"font-black w-10 text-right",style:{color:"#1E1E1E"},children:q.qtd}),p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:429",className:"w-10 text-right",style:{color:"#8B7355"},children:[X,"%"]})]})},q.nivel)})})]}),p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:438",style:{minWidth:180},children:[p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:439",className:"text-[9px] font-black uppercase tracking-[1.5px] mb-2",style:{color:"#8B7355",fontFamily:"Nunito, sans-serif"},children:"Sinais de risco"}),p.jsx("button",{"data-loc":"client/src/pages/StakeholdersV2.tsx:442",onClick:()=>f(h==="critico"?"Todos":"critico"),className:"rounded-lg p-2 mb-1.5 w-full text-left transition-all",style:{backgroundColor:h==="critico"?"#c0392b15":"#c0392b08",border:`1.5px solid ${h==="critico"?"#c0392b":"#c0392b30"}`}
1190,title:"Clique para filtrar apenas riscos crÃticos",children:p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:451",className:"flex items-center gap-2",children:[p.jsx(ho,{"data-loc":"client/src/pages/StakeholdersV2.tsx:452",size:12,style:{color:"#c0392b"}}),p.jsx("span",{"data-loc":"client/src/pages/StakeholdersV2.tsx:453",className:"text-[10px] font-black uppercase tracking-[1px]",style:{color:"#c0392b",fontFamily:"Nunito, sans-serif"},children:"CrÃtico"}),p.jsx("span",{"data-loc":"client/src/pages/StakeholdersV2.tsx:456",className:"ml-auto text-[14px] font-black",style:{color:"#c0392b",fontFamily:"Nunito, sans-serif"},children:W.riscosCriticos})]})}),p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:461",className:"rounded-lg p-2",style:{backgroundColor:"#C9A84C08",border:"1.5px solid #C9A84C30"},children:p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:462",className:"flex items-center gap-2",children:[p.jsx(ho,{"data-loc":"client/src/pages/StakeholdersV2.tsx:463",size:12,style:{color:"#C9A84C"}}),p.jsx("span",{"data-loc":"client/src/pages/StakeholdersV2.tsx:464",className:"text-[10px] font-black uppercase tracking-[1px]",style:{color:"#C9A84C",fontFamily:"Nunito, sans-serif"},children:"Atenção"}),p.jsx("span",{"data-loc":"client/src/pages/StakeholdersV2.tsx:467",className:"ml-auto text-[14px] font-black",style:{color:"#C9A84C",fontFamily:"Nunito, sans-serif"},children:W.riscosAtencao})]})})]})]}),W.topLacunas.length>0&&p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:477",className:"mt-4 pt-4",style:{borderTop:"1px solid #EDE9DF"},children:[p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:478",className:"text-[9px] font-black uppercase tracking-[1.5px] mb-2 flex items-center gap-2",style:{color:"#8B7355",fontFamily:"Nunito, sans-serif"},children:[p.jsx(jo,{"data-loc":"client/src/pages/StakeholdersV2.tsx:479",size:11,style:{color:"#c0392b"}}),"Lacunas crÃticas priorizadas â clique para revisar"]}),p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:482",className:"grid grid-cols-1 md:grid-cols-2 gap-2",children:W.topLacunas.map(q=>p.jsx("button",{"data-loc":"client/src/pages/StakeholdersV2.tsx:484",onClick:()=>{x(q.id),f("Todos"),s("Todos"),u("Todos"),i("")},className:"rounded-lg p-2.5 text-left hover:bg-[#EDE9DF]/40 transition-colors",style:{border:"1px solid #EDE9DF",backgroundColor:"#FAFAF8"},children:p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:497",className:"flex items-start gap-2",children:[p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:498",className:"text-[10px] font-black px-1.5 py-0.5 rounded flex-shrink-0",style:{backgroundColor:q.score<50?"#c0392b":"#C9A84C",color:"#fff",fontFamily:"Nunito, sans-serif"},children:q.score}),p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:508",className:"flex-1 min-w-0",children:[p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:509",className:"text-[11px] font-black truncate",style:{color:"#1E1E1E",fontFamily:"Nunito, sans-serif"},children:q.nome}),p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:512",className:"text-[9px] truncate",style:{color:"#8B7355"},children:[q.instituicao," · Poder ",q.poder]}),p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:515",className:"text-[10px] mt-1",style:{color:"#c0392b",fontFamily:"Nunito, sans-serif"},children:q.motivo})]})]})},q.id))})]})]}),v&&p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:529",className:"rounded-xl p-4 flex items-center gap-3",style:{backgroundColor:"#C9A84C08",border:"1.5px solid #C9A84C40"},children:[p.jsx(_x,{"data-loc":"client/src/pages/StakeholdersV2.tsx:530",size:15,style:{color:"#C9A84C",flexShrink:0}}),p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:531",className:"flex-1",children:[p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:532",className:"text-[12px] font-black",style:{color:"#7a6020",fontFamily:"Nunito, sans-serif"},children:"Modo Revisão â Analista PRINT"}),p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:533",className:"text-[11px]",style:{color:"#7a6020"},children:"Expanda cada stakeholder e adicione comentários. A IA aprende com suas correções e atualiza a base."})]}),p.jsx("button",{"data-loc":"client/src/pages/StakeholdersV2.tsx:535",onClick:Z,disabled:A,className:"flex items-center gap-1.5 text-[11px] font-black px-4 py-2 rounded-lg flex-shrink-0",style:{background:"linear-gradient(135deg, #C9A84C, #a87e30)",color:"#fff",fontFamily:"Nunito, sans-serif"},children:A?p.jsxs(p.Fragment,{children:[p.jsx(Wt,{"data-loc":"client/src/pages/StakeholdersV2.tsx:538",size:12,className:"animate-spin"})," Processando..."]}):p.jsxs(p.Fragment,{children:["Enviar para IA ",p.jsx(sy,{"data-loc":"client/src/pages/StakeholdersV2.tsx:538",size:12})]})})]}),p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:544",className:"flex items-center gap-3 flex-wrap",children:[p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:545",className:"relative flex-1 min-w-[200px]",children:[p.jsx(oy,{"data-loc":"client/src/pages/StakeholdersV2.tsx:546",size:13,className:"absolute left-3 top-1/2 -translate-y-1/2",style:{color:"#C9B99A"}}),p.jsx("input",{"data-loc":"client/src/pages/StakeholdersV2.tsx:547",type:"text",placeholder:"Buscar por nome, instituição ou função...",value:n,onChange:q=>i(q.target.value),className:"w-full pl-8 pr-3 py-2 text-[12px] rounded-lg outline-none",style:{border:"1.5px solid #C9B99A",fontFamily:"Nunito, sans-serif",color:"#1E1E1E"}})]}),p.jsx("select",{"data-loc":"client/src/pages/StakeholdersV2.tsx:551",value:o,onChange:q=>s(q.target.value),className:"text-[11px] font-bold px-3 py-2 rounded-lg outline-none",style:{border:"1.5px solid #C9B99A",backgroundColor:"#fff",color:"#1E1E1E",fontFamily:"Nunito, sans-serif"},children:$.map(q=>p.jsx("option",{"data-loc":"client/src/pages/StakeholdersV2.tsx:554",value:q,children:q},q))}),p.jsxs("select",{"data-loc":"client/src/pages/StakeholdersV2.tsx:556",value:c,onChange:q=>u(q.target.value),className:"text-[11px] font-bold px-3 py-2 rounded-lg outline-none",style:{border:"1.5px solid #C9B99A",backgroundColor:"#fff",color:"#1E1E1E",fontFamily:"Nunito, sans-serif"},children:[p.jsx("option",{"data-loc":"client/src/pages/StakeholdersV2.tsx:559",value:"Todos",children:"Todos os posicionamentos"}),p.jsx("option",{"data-loc":"client/src/pages/StakeholdersV2.tsx:560",value:"apoiador",children:"Apoiador"}),p.jsx("option",{"data-loc":"client/src/pages/StakeholdersV2.tsx:561",value:"favorável",children:"Favorável"}),p.jsx("option",{"data-loc":"client/src/pages/StakeholdersV2.tsx:562",value:"neutro",children:"Neutro"}),p.jsx("option",{"data-loc":"client/src/pages/StakeholdersV2.tsx:563",value:"resistente",children:"Resistente"})]}),p.jsxs("select",{"data-loc":"client/src/pages/StakeholdersV2.tsx:565",value:h,onChange:q=>f(q.target.value),className:"text-[11px] font-bold px-3 py-2 rounded-lg outline-none",style:{border:`1.5px solid ${h==="critico"?"#c0392b":"#C9B99A"}`,backgroundColor:h==="critico"?"#c0392b08":"#fff",color:h==="critico"?"#c0392b":"#1E1E1E",fontFamily:"Nunito, sans-serif"},title:"Filtrar por nÃvel de confiança da intel",children:[p.jsx("option",{"data-loc":"client/src/pages/StakeholdersV2.tsx:577",value:"Todos",children:"Toda confiança"}),p.jsx("option",{"data-loc":"client/src/pages/StakeholdersV2.tsx:578",value:"alta",children:"Confiança Alta (⥠75)"}),p.jsx("option",{"data-loc":"client/src/pages/StakeholdersV2.tsx:579",value:"media",children:"Confiança Média (50â74)"}),p.jsx("option",{"data-loc":"client/src/pages/StakeholdersV2.tsx:580",value:"baixa",children:"Confiança Baixa (< 50)"}),p.jsx("option",{"data-loc":"client/src/pages/StakeholdersV2.tsx:581",value:"critico",children:"â Apenas Risco CrÃtico"})]}),p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:583",className:"text-[11px]",style:{color:"#C9B99A",fontFamily:"Nunito, sans-serif"},children:[D.length," de ",O.length]})]}),$.filter(q=>q!=="Todos").map(q=>{const X=D.filter(ie=>ie.categoria===q);if(!X.length)return null;const U=Oxe[q]??{cor:"#7A8C5E",bg:"#7A8C5E12",icon:p.jsx(xn,{"data-loc":"client/src/pages/StakeholdersV2.tsx:590",size:12})};return p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:593",children:[p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:594",className:"flex items-center gap-2 mb-2",children:[p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:595",className:"w-6 h-6 rounded-lg flex items-center justify-center",style:{backgroundColor:U.bg,color:U.cor},children:U.icon}),p.jsx("span",{"data-loc":"client/src/pages/StakeholdersV2.tsx:596",className:"text-[11px] font-black uppercase tracking-[1.5px]",style:{color:U.cor,fontFamily:"Nunito, sans-serif"},children:q}),p.jsxs("span",{"data-loc":"client/src/pages/StakeholdersV2.tsx:597",className:"text-[10px]",style:{color:"#C9B99A"},children:[X.length," stakeholder",X.length!==1?"s":""]})]}),p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:599",className:"space-y-1.5",children:X.map(ie=>{const se=m===ie.id,he=GR[ie.posicionamento]??GR.neutro,Y=ie.posicionamento==="resistente",F=_.get(ie.id),ae=F?UR[F.nivel]:null;return p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:608",className:"rounded-xl overflow-hidden",style:{backgroundColor:"#fff",border:`1px solid ${se?U.cor+"40":Y?"#c0392b30":"#C9B99A"}`},children:[p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:610",className:"px-4 py-3 flex items-center gap-3 cursor-pointer",style:{borderLeft:Y?"3px solid #c0392b":"3px solid transparent"},onClick:()=>x(se?null:ie.id),children:[p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:613",className:"w-8 h-8 rounded-full flex items-center justify-center flex-shrink-0 text-[10px] font-black",style:{backgroundColor:U.bg,color:U.cor}
1190,children:ie.nome.split(" ").filter(Boolean).map(ne=>ne[0]).slice(0,2).join("")}),p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:617",className:"flex-1 min-w-0",children:[p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:618",className:"flex items-center gap-1.5",children:[p.jsx("span",{"data-loc":"client/src/pages/StakeholdersV2.tsx:619",className:"text-[12px] font-black truncate",style:{color:"#1E1E1E",fontFamily:"Nunito, sans-serif"},children:ie.nome}),Y&&p.jsx(ho,{"data-loc":"client/src/pages/StakeholdersV2.tsx:620",size:11,style:{color:"#c0392b",flexShrink:0}}),F?.risco==="critico"&&p.jsx("span",{"data-loc":"client/src/pages/StakeholdersV2.tsx:622",className:"text-[8px] font-black px-1 py-0.5 rounded uppercase tracking-wider",style:{backgroundColor:"#c0392b",color:"#fff"},title:F.riscoLabel,children:"risco crÃtico"})]}),p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:627",className:"text-[10px] truncate",style:{color:"#7A8C5E"},children:[ie.funcao," · ",ie.instituicao]})]}),p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:629",className:"flex items-center gap-1.5 flex-shrink-0",children:[ae&&F&&p.jsx("span",{"data-loc":"client/src/pages/StakeholdersV2.tsx:631",className:"text-[9px] font-black px-1.5 py-0.5 rounded",style:{backgroundColor:ae.bg,color:ae.fg},title:`Confiança ${ae.label} â score ${F.total}/100`,children:F.total}),p.jsx("span",{"data-loc":"client/src/pages/StakeholdersV2.tsx:639",className:"text-[9px] font-black px-1.5 py-0.5 rounded-full",style:{backgroundColor:`${Nw[ie.poder]}15`,color:Nw[ie.poder]},children:ie.poder}),p.jsx("span",{"data-loc":"client/src/pages/StakeholdersV2.tsx:643",className:"text-[9px] font-black px-1.5 py-0.5 rounded-full",style:{backgroundColor:he.bg,color:he.cor},children:he.label}),p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:647",style:{color:"#C9B99A"},children:se?p.jsx(Sd,{"data-loc":"client/src/pages/StakeholdersV2.tsx:647",size:12}):p.jsx(Xl,{"data-loc":"client/src/pages/StakeholdersV2.tsx:647",size:12})})]})]}),se&&p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:652",className:"px-4 pb-4 pt-1",style:{borderTop:"1px solid #EDE9DF"},children:[p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:653",className:"grid grid-cols-2 gap-3 mb-3",children:[p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:655",className:"rounded-lg p-3",style:{backgroundColor:"#FAFAF8",border:"1px solid #EDE9DF"},children:[p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:656",className:"text-[9px] font-black uppercase tracking-[1.5px] mb-2",style:{color:"#7A8C5E"},children:"Contato"}),p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:657",className:"space-y-1",children:[ie.email&&p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:658",className:"flex items-center gap-1.5 text-[11px]",style:{color:"#1E1E1E"},children:[p.jsx(Jz,{"data-loc":"client/src/pages/StakeholdersV2.tsx:658",size:10,style:{color:"#7A8C5E",flexShrink:0}}),p.jsx("a",{"data-loc":"client/src/pages/StakeholdersV2.tsx:658",href:`mailto:${ie.email}`,className:"hover:underline truncate",children:ie.email})]}),ie.telefone&&p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:659",className:"flex items-center gap-1.5 text-[11px]",style:{color:"#1E1E1E"},children:[p.jsx(eF,{"data-loc":"client/src/pages/StakeholdersV2.tsx:659",size:10,style:{color:"#7A8C5E",flexShrink:0}}),p.jsx("span",{"data-loc":"client/src/pages/StakeholdersV2.tsx:659",children:ie.telefone})]}),ie.site&&p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:660",className:"flex items-center gap-1.5 text-[11px]",style:{color:"#1E1E1E"},children:[p.jsx(Es,{"data-loc":"client/src/pages/StakeholdersV2.tsx:660",size:10,style:{color:"#7A8C5E",flexShrink:0}}),p.jsx("a",{"data-loc":"client/src/pages/StakeholdersV2.tsx:660",href:ie.site,target:"_blank",rel:"noopener noreferrer",className:"hover:underline truncate",children:"Acessar site"})]}),!ie.email&&!ie.telefone&&!ie.site&&p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:661",className:"text-[10px]",style:{color:"#C9B99A"},children:"Contato não mapeado"})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:665",className:"rounded-lg p-3",style:{backgroundColor:"#FAFAF8",border:"1px solid #EDE9DF"},children:[p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:666",className:"text-[9px] font-black uppercase tracking-[1.5px] mb-2",style:{color:"#7A8C5E"},children:"Análise"}),p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:667",className:"space-y-1",children:[p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:668",className:"flex items-center justify-between",children:[p.jsx("span",{"data-loc":"client/src/pages/StakeholdersV2.tsx:668",className:"text-[10px]",style:{color:"#7A8C5E"},children:"Poder:"}),p.jsx("span",{"data-loc":"client/src/pages/StakeholdersV2.tsx:668",className:"text-[10px] font-black",style:{color:Nw[ie.poder]},children:ie.poder})]}),p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:669",className:"flex items-center justify-between",children:[p.jsx("span",{"data-loc":"client/src/pages/StakeholdersV2.tsx:669",className:"text-[10px]",style:{color:"#7A8C5E"},children:"Interesse:"}),p.jsx("span",{"data-loc":"client/src/pages/StakeholdersV2.tsx:669",className:"text-[10px] font-black",style:{color:"#1E1E1E"},children:ie.interesse})]}),p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:670",className:"flex items-center justify-between",children:[p.jsx("span",{"data-loc":"client/src/pages/StakeholdersV2.tsx:670",className:"text-[10px]",style:{color:"#7A8C5E"},children:"Posicionamento:"}),p.jsx("span",{"data-loc":"client/src/pages/StakeholdersV2.tsx:670",className:"text-[10px] font-black",style:{color:he.cor},children:he.label})]})]})]})]}),ie.observacao&&p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:676",className:"rounded-lg p-3 mb-3",style:{backgroundColor:Y?"#c0392b08":"#2D4A2D08",border:`1px solid ${Y?"#c0392b30":"#2D4A2D20"}`},children:[p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:677",className:"text-[9px] font-black uppercase tracking-[1.5px] mb-1",style:{color:Y?"#c0392b":"#2D4A2D"},children:Y?"â Observação de Risco":"Observação"}),p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:678",className:"text-[11px] leading-relaxed",style:{color:"#1E1E1E",fontFamily:"Nunito, sans-serif"},children:ie.observacao})]}),F&&ae&&p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:684",className:"rounded-lg p-3 mb-3",style:{backgroundColor:`${ae.bg}10`,border:`1px solid ${ae.bg}40`},children:[p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:685",className:"flex items-center justify-between mb-2",children:[p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:686",className:"text-[9px] font-black uppercase tracking-[1.5px] flex items-center gap-1.5",style:{color:ae.bg,fontFamily:"Nunito, sans-serif"},children:[p.jsx(jo,{"data-loc":"client/src/pages/StakeholdersV2.tsx:687",size:10}),"Ãndice de Confiança â ",ae.label]}),p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:690",className:"flex items-center gap-1.5",children:[p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:691",className:"text-[14px] font-black leading-none",style:{color:ae.bg,fontFamily:"Nunito, sans-serif"},children:F.total}),p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:694",className:"text-[8px]",style:{color:"#8B7355"},children:"/ 100"})]})]}),F.riscoLabel&&p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:698",className:"text-[10px] font-bold mb-2 p-1.5 rounded",style:{color:F.risco==="critico"?"#c0392b":"#7a6020",backgroundColor:F.risco==="critico"?"#c0392b15":"#C9A84C15",fontFamily:"Nunito, sans-serif"},children:["â ",F.riscoLabel]}),p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:702",className:"space-y-1",children:F.fatores.map((ne,ge)=>{const re=ne.tipo==="positivo"?"#7A8C5E":ne.tipo==="negativo"?"#c0392b":"#C9A84C",oe=ne.tipo==="positivo"?"+":ne.tipo==="negativo"?"â":"~";return p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:707",className:"flex items-center gap-2 text-[10px]",style:{fontFamily:"Nunito, sans-serif"},children:[p.jsx("span",{"data-loc":"client/src/pages/StakeholdersV2.tsx:708",className:"font-black w-3 text-center",style:{color:re},children:oe}),p.jsx("span",{"data-loc":"client/src/pages/StakeholdersV2.tsx:709",className:"flex-1",style:{color:"#1E1E1E"},children:ne.label}),p.jsx("span",{"data-loc":"client/src/pages/StakeholdersV2.tsx:710",className:"font-bold tabular-nums",style:{color:re,minWidth:24,textAlign:"right"},children:ne.pontos>0?`+${ne.pontos}`:ne.pontos}
1190)]},ge)})})]}),(C[ie.id]??ie.estrategia)&&p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:721",className:"rounded-lg p-3 mb-3",style:{backgroundColor:"#C9A84C08",border:"1px solid #C9A84C30"},children:[p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:722",className:"text-[9px] font-black uppercase tracking-[1.5px] mb-1",style:{color:"#C9A84C"},children:[p.jsx(_x,{"data-loc":"client/src/pages/StakeholdersV2.tsx:722",size:9,className:"inline mr-1"}),"Estratégia de Engajamento"]}),p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:723",className:"text-[11px] leading-relaxed whitespace-pre-line",style:{color:"#1E1E1E",fontFamily:"Nunito, sans-serif"},children:C[ie.id]??ie.estrategia}),C[ie.id]&&p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:725",className:"mt-1 text-[9px] italic",style:{color:"#7A8C5E"},children:"⦠Atualizada pela IA"})]}),j[ie.id]&&p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:731",className:"rounded-lg p-3 mb-3 space-y-2",style:{backgroundColor:"#5B8FA810",border:"2px solid #5B8FA8"},children:[p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:732",className:"text-[9px] font-black uppercase tracking-[1.5px]",style:{color:"#1A5470"},children:"⦠Sugestão da IA â pendente"}),p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:735",className:"bg-white rounded p-2 max-h-48 overflow-auto",children:p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:736",className:"text-[11px] leading-relaxed whitespace-pre-line",style:{color:"#1E1E1E",fontFamily:"Nunito, sans-serif"},children:j[ie.id].textoRevisado})}),j[ie.id].resumoMudancas&&p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:741",className:"text-[10px]",style:{color:"#1A5470",fontFamily:"Nunito, sans-serif"},children:[p.jsx("span",{"data-loc":"client/src/pages/StakeholdersV2.tsx:742",className:"font-black",children:"Resumo: "}),j[ie.id].resumoMudancas]}),j[ie.id].alertas?.length>0&&p.jsx("ul",{"data-loc":"client/src/pages/StakeholdersV2.tsx:746",className:"text-[10px] list-disc pl-4",style:{color:"#C9A84C"},children:j[ie.id].alertas.map((ne,ge)=>p.jsx("li",{"data-loc":"client/src/pages/StakeholdersV2.tsx:747",children:ne},ge))}),p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:750",className:"flex justify-end gap-2",children:[p.jsx("button",{"data-loc":"client/src/pages/StakeholdersV2.tsx:751",onClick:()=>K(ie.id),className:"px-2.5 py-1 rounded text-[10px] font-bold",style:{border:"1px solid #C9B99A",color:"#8B7355",backgroundColor:"#fff"},children:"Descartar"}),p.jsx("button",{"data-loc":"client/src/pages/StakeholdersV2.tsx:756",onClick:()=>te(ie.id),className:"px-2.5 py-1 rounded text-[10px] font-black",style:{backgroundColor:"#2D4A2D",color:"#fff"},children:"â Aceitar"})]})]}),v&&p.jsxs("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:766",className:"rounded-lg p-3",style:{backgroundColor:"#5B8FA808",border:"1px solid #5B8FA830"},children:[p.jsx("div",{"data-loc":"client/src/pages/StakeholdersV2.tsx:767",className:"text-[9px] font-black uppercase tracking-[1.5px] mb-2",style:{color:"#5B8FA8"},children:"Comentário do Analista PRINT"}),p.jsx("textarea",{"data-loc":"client/src/pages/StakeholdersV2.tsx:768",placeholder:"Ex: Atualizar posicionamento, corrigir contato, adicionar observação estratégica...",value:b[ie.id]??"",onChange:ne=>S(ge=>({...ge,[ie.id]:ne.target.value})),rows:2,className:"w-full text-[11px] px-3 py-2 rounded-lg outline-none resize-none",style:{border:"1.5px solid #5B8FA840",fontFamily:"Nunito, sans-serif",color:"#1E1E1E"}})]})]})]},ie.id)})})]},q)})]})}const Vu=[{slug:"juazeiro",municipio:"Juazeiro",estado:"BA",logoUrl:"/escuta/logos/juazeiro.png",paleta:{primaria:"#103860",secundaria:"#E50000",acento:"#C5B043",textoSobrePrimaria:"#FFFFFF"},tom:"institucional",observacoes:"PPP Iluminação Pública e Serviços Digitais"},{slug:"senhor-do-bonfim",municipio:"Senhor do Bonfim",estado:"BA",logoUrl:"/escuta/logos/senhor-do-bonfim.png",paleta:{primaria:"#0F5F3E",secundaria:"#F4B942",textoSobrePrimaria:"#FFFFFF"},tom:"institucional"},{slug:"natal",municipio:"Natal",estado:"RN",logoUrl:"/escuta/logos/natal.png",paleta:{primaria:"#003D7A",secundaria:"#F5A623",textoSobrePrimaria:"#FFFFFF"},tom:"institucional"},{slug:"valenca",municipio:"Valença",estado:"BA",logoUrl:"/escuta/logos/valenca.png",paleta:{primaria:"#1E5AA8",secundaria:"#E1A94F",textoSobrePrimaria:"#FFFFFF"},tom:"institucional"},{slug:"sao-bento-do-sul",municipio:"São Bento do Sul",estado:"SC",logoUrl:"",paleta:{primaria:"#06837F",secundaria:"#FED811",acento:"#D5FFD9",textoSobrePrimaria:"#FFFFFF"},tom:"moderno",observacoes:"PPP Iluminação Pública e Cidades Inteligentes â marca própria do projeto, não a da prefeitura"}];function Uf(e){const t=e.trim().toLowerCase();return Vu.find(r=>r.slug===t)||Vu.find(r=>`${r.municipio}/${r.estado}`.toLowerCase()===t||r.municipio.toLowerCase()===t)||null}const Ixe=[{id:1,title:"PARTE I â Identificação",questions:[{id:"q1_ida
1190de",type:"text",label:"Idade",required:!0,placeholder:"Ex: 34"},{id:"q2_genero",type:"text",label:"Gênero",required:!0,placeholder:"Como você se identifica"},{id:"q3_raca",type:"text",label:"Cor / Raça",required:!0,placeholder:"Como você se declara"},{id:"q4_bairro",type:"text",label:"Bairro de residência",required:!0,placeholder:"Digite seu bairro"},{id:"q5_atuacao",type:"text",label:"Local de atuação",required:!1,placeholder:"Onde trabalha / atua"}]},{id:2,title:"PARTE II â Percepção da iluminação pública",questions:[{id:"q6_satisfacao_servicos",type:"radio",label:"No que se refere aos serviços públicos oferecidos pelo municÃpio, como iluminação, semáforos e monitoramento por câmeras, qual o seu grau de satisfação?",required:!0,options:["Insatisfeito","Satisfeito","Muito satisfeito"]},{id:"q7_contribuicao",type:"likert",label:"Na sua opinião, quanto a iluminação atual da sua cidade contribui para os seguintes aspectos:",required:!0,likertRows:[{id:"q7a_seguranca",label:"Segurança nas ruas",options:["Muito","Médio","Pouco","Nada"]},{id:"q7b_espacos",label:"Uso de espaços públicos à noite",options:["Muito","Médio","Pouco","Nada"]},{id:"q7c_mobilidade",label:"Mobilidade de pedestres",options:["Muito","Médio","Pouco","Nada"]},{id:"q7d_bairro",label:"Valorização do bairro",options:["Muito","Médio","Pouco","Nada"]}]},{id:"q8_melhorias",type:"radio",label:"Você percebeu melhorias na iluminação pública nos últimos anos?",required:!0,options:["Sim, muita melhora","Sim, alguma melhora","Não percebi mudanças","Piorou"]},{id:"q9_ciclistas",type:"radio",label:"Considera a iluminação atual da cidade adequada para ciclistas?",required:!0,options:["Sim","Não"]},{id:"q10_pedestre",type:"radio",label:"Enquanto pedestre, como considera a iluminação atual por onde circula?",required:!0,options:["Razoável, mas ainda com alguns pontos escuros","Insuficiente, dá medo de andar em algumas ruas","Suficiente, dá para andar tranquilamente"]},{id:"q11_locais_escuros",type:"radio",label:"Existem locais com pouca ou nenhuma iluminação, próximos à sua residência ou local de trabalho?",required:!0,options:["Sim","Não"]},{id:"q12_led",type:"radio",label:"Você considera importante a implantação de luminárias de LED? As lâmpadas de LED permitem manutenção de forma remota, chamada de telegestão. Na prática, cada luminária é monitorada em tempo real por uma central de controle. Isso torna possÃvel checar sua funcionalidade e ajustar a intensidade da iluminação em cada ponto sem precisar deslocar uma equipe até o local para realizar o serviço. Alguns benefÃcios: iluminação mais forte à noite e moderada pela madrugada, conforme o ajuste remoto necessário; mais eficiência e rapidez na manutenção das luminárias; menos custos com energia e menos desperdÃcio; ruas bem iluminadas contribuem para prevenir acidentes e aumentam a sensação de segurança para todos.",required:!0,options:["Sim","Não","Não sei, pra mim é indiferente"]},{id:"q13_sugestoes_locais",type:"textarea",label:"Quais ruas ou espaços públicos da sua cidade você considera que precisam de melhor iluminação ou monitoramento por câmeras de segurança? Deixe suas sugestões abaixo.",required:!1,placeholder:"Digite suas sugestões..."},{id:"q14_tempo_atendimento",type:"radio",label:"Qual o tempo médio de atendimento do serviço municipal para manutenção da iluminação pública no bairro em que reside?",required:!0,options:["Em até uma semana","De 10 a 15 dias","Um mês","Mais de um mês","Nunca reparam"]},{id:"q15_iluminacao_patrimonio",type:"radio",label:"Você acha importante ter iluminação especial em alguns patrimônios da cidade para valorizar a cultura local? A iluminação especial tem o objetivo de tornar praças mais atraentes esteticamente, promovendo maior convÃvio noturno e movimentação da economia local à noite, além de potencializar a cultura e o turismo local.",required:!0,options:["Sim","Não"]}]},{id:3,title:"PARTE III â Monitoramento e segurança",questions:[{id:"q16_seguranca_comparada",type:"radio",label:"Como avalia a situação do municÃpio no quesito segurança (levando em conta iluminação e monitoramento por câmeras) em relação a outras cidades da região/estado?",required:!0,options:["Ruim","Boa","Excelente","Péssima"]},{id:"q17_cameras_existencia",type:"radio",label:"Você tem informações sobre a existência de câmeras de monitoramento na sua cidade?",required:!0,options:["Sim","Não"]},{id:"q18_privacidade",type:"radio",label:"Você tem alguma preocupação quanto à privacidade ou ao uso indevido de imagens captadas por câmeras em vias públicas?",required:!0,options:["Não","Sim"]},{id:"q19_privacidade_qual",type:"text",label:"Se sim, qual preocupação?",required:!1,placeholder:"Descreva sua preocupação",conditionalOn:"q18_privacidade",conditionalValue:"Sim"},{id:"q20_lgpd_regras",type:"radio",label:"Você acredita que o uso de câmeras deve seguir regras claras de proteção de dados e acesso à s imagens?",required:!0,options:["Sim","Não","Não sei"]},{id:"q21_seguro_noite",type:"radio",label:"Você se sente mais seguro ao circular à noite em áreas bem iluminadas?",required:!0,options:["Sim","Médio","Pouco","Nada"]},{id:"q22_atividades_noite",type:"radio",label:"Você costuma realizar atividades ao ar livre na cidade à noite?",required:!0,options:["Sim","Não"]},{id:"q23_atividades_qual",type:"text",label:"Se sim, qual atividade?",required:!1,placeholder:"Ex: caminhada, corrida, ciclismo",conditionalOn:"q22_atividades_noite",conditionalValue:"Sim"},{id:"q24_lazer_pracas",type:"radio",label:"Em relação ao lazer em famÃlia e amigos, tem o hábito de visitar praças e pontos turÃsticos da cidade?",required:!0,options:["Sim","Não"]},{id:"q25_reconhecimento_facial",type:"radio",label:"Para fins de segurança pública e localização de pessoas desaparecidas, você considera que o monitoramento por câmeras com reconhecimento facial seria importante para ampliar a segurança na cidade?",required:!0,options:["Sim","Não"]},{id:"q26_locais_cameras",type:"checkbox",label:"Quais locais considera prioritários para instalação de câmeras de monitoramento?",required:!0,options:["Ãreas comerciais","Praças e espaços públicos","Entradas e saÃdas da cidade","
1190Escolas e equipamentos públicos","Outros"]},{id:"q27_locais_cameras_outros",type:"text",label:'Se marcou "Outros", quais locais?',required:!1,placeholder:"Liste os locais"}]},{id:4,title:"PARTE IV â Trânsito e mobilidade",questions:[{id:"q28_problemas_transito",type:"textarea",label:"O que mais causa problemas ao fluxo de carros e pessoas no trânsito da sua região?",required:!1,placeholder:"Descreva os principais problemas"},{id:"q29_semaforos_inteligentes",type:"radio",label:"Considera que a fluidez do trânsito na área central da cidade poderia ser melhor com semáforos inteligentes? Semáforos inteligentes são sistemas de controle de tráfego que usam câmeras e sensores para ajustar, automaticamente, o tempo entre os sinais fechados e abertos conforme o fluxo nas ruas.",required:!0,options:["Sim","Não"]},{id:"q30_fluidez_semaforos",type:"radio",label:"Caso a sua cidade já conte com esse sistema em algumas vias, como avalia a fluidez do trânsito?",required:!0,options:["Muito boa","Boa","Regular","Não faz diferença"]}]},{id:5,title:"PARTE V â Serviços digitais",questions:[{id:"q31_servicos_conhecidos",type:"checkbox",label:"Quais serviços digitais você conhece ou já utilizou na cidade?",required:!0,options:["Wi-Fi público","Aplicativo de serviços da Prefeitura","Monitoramento ambiental de risco","Sensores de trânsito ou mobilidade","Iluminação de LED","Sistema de alerta e alarme","Não conheço"]},{id:"q32_falta_conectividade",type:"radio",label:"Você já teve problemas de acesso a algum serviço público por falta de conectividade?",required:!0,options:["Sim","Não"]},{id:"q33_wifi_onde",type:"checkbox",label:"Onde o acesso à internet gratuita (Wi-Fi público) seria mais útil?",required:!0,options:["Praças","Terminais de transporte","Ãreas comerciais","Escolas","Unidades de saúde","Outros"]},{id:"q34_wifi_onde_outros",type:"text",label:'Se marcou "Outros", onde?',required:!1,placeholder:"Liste os locais"},{id:"q35_servicos_melhoram",type:"likert",label:"Na sua opinião, em que os serviços digitais podem ajudar a melhorar:",required:!0,likertRows:[{id:"q35a_seguranca",label:"Segurança urbana",options:["Muito","Médio","Pouco","Nada"]},{id:"q35b_transito",label:"Gestão do trânsito",options:["Muito","Médio","Pouco","Nada"]},{id:"q35c_iluminacao",label:"Eficiência da iluminação pública",options:["Muito","Médio","Pouco","Nada"]},{id:"q35d_comunicacao",label:"Comunicação com a prefeitura",options:["Muito","Médio","Pouco","Nada"]},{id:"q35e_alerta",label:"Sistema de alerta e alarme",options:["Muito","Médio","Pouco","Nada"]}]},{id:"q36_usaria_wifi",type:"radio",label:"Você utilizaria um serviço de Wi-Fi gratuito oferecido pelo municÃpio?",required:!0,options:["Sim","Não"]},{id:"q37_frequencia_wifi",type:"radio",label:"Se sim, com que frequência utilizaria o serviço de internet pública?",required:!1,options:["Diariamente, todo o tempo que puder","Somente durante a semana, no trajeto entre minha casa e o trabalho","Raramente, só em caso de emergência","Não utilizaria"],conditionalOn:"q36_usaria_wifi",conditionalValue:"Sim"}]},{id:6,title:"PARTE VI â Impactos",questions:[{id:"q38_impacto_vida",type:"scale",label:"De 0 a 10, o quanto viver em uma cidade mais segura (bem iluminada e monitorada por câmeras) e com oferta de serviços digitais como Wi-Fi gratuito em pontos públicos pode contribuir para a sua vida?",required:!0,scaleMin:0,scaleMax:10,scaleMinLabel:"Nada",scaleMaxLabel:"Muito"},{id:"q39_impacto_economico",type:"scale",label:"De 0 a 10, o quanto você avalia que um projeto de iluminação moderno e serviços digitais pode contribuir para o desenvolvimento econômico da cidade?",required:!0,scaleMin:0,scaleMax:10,scaleMinLabel:"Nada",scaleMaxLabel:"Muito"},{id:"q40_importancia_investimento",type:"scale",label:"De 0 a 10, o quanto considera importante o investimento do municÃpio em serviços digitais e iluminação de LED?",required:!0,scaleMin:0,scaleMax:10,scaleMinLabel:"Sem importância",scaleMaxLabel:"Muito importante"},{id:"q41_resiliencia",type:"scale",label:"De 0 a 10, o quanto você considera a cidade resiliente em relação aos fenômenos naturais (chuvas, alagamentos, queimadas etc.)?",required:!0,scaleMin:0,scaleMax:10,scaleMinLabel:"Nada resiliente",scaleMaxLabel:"Muito resiliente"},{id:"q42_prioridade_servicos",type:"likert",label:"Na sua avaliação, enumere, numa escala de 1 a 4, os serviços digitais que considera prioritários na gestão pública (1 = maior prioridade).",required:!0,likertRows:[{id:"q42a_videomonitoramento",label:"Videomonitoramento",options:["1","2","3","4"]},{id:"q42b_wifi",label:"Wi-Fi público",options:["1","2","3","4"]},{id:"q42c_semaforos",label:"Semáforos inteligentes",options:["1","2","3","4"]},{id:"q42d_predios",label:"Conectividade em prédios públicos",options:["1","2","3","4"]}]}]},{id:7,title:"PARTE VII â Canais de comunicação",subtitle:"Os dados coletados serão utilizados, exclusivamente, para fins de planejamento deste projeto, em conformidade com a Lei Geral de Proteção de Dados (LGPD â Lei nº 13.709/2018).",questions:[{id:"q43_solicitou_manutencao",type:"radio",label:"Você já precisou solicitar serviço para manutenção da rede pública de iluminação?",required:!0,options:["Sim","Não"]},{id:"q44_avaliacao_atendimento",type:"radio",label:"Se sim, como você avalia o atendimento?",required:!1,options:["Nunca atenderam","Responderam rapidamente","Muita demora para responder"],conditionalOn:"q43_solicitou_manutencao",conditionalValue:"Sim"},{id:"q45_canal_preferido",type:"radio",label:"Na sua avaliação, qual canal de comunicação para solicitar serviços de manutenção em iluminação pública considera mais eficiente?",required:!0,options:["Aplicativo no celular","WhatsApp","Telefone 0800","Site oficial","Outros"]},{id:"q46_canal_outros",type:"text",label:'Se marcou "Outros", qual canal?',required:!1,placeholder:"Descreva o canal"}]}],Bxe={id:"geral-iluminacao-v2",nome:"Perguntas gerais â Iluminação Pública e Serviços Digitais (V2)",descricao:"Questionário geral V2 (46 perguntas · 7 partes) da PPP de Senhor do Bonfim, Juazeiro e Valença/BA. Fiel ao Word enviado pela equipe.",tiposPPPCompatÃveis:["Iluminação Pública"],paginas:Ixe},Lxe=[{id:1,title:"Dados Pessoais",questions:[{id:"q1",type:"text",label:"Nome",required:!0,placeholder:"Digite seu nome completo"},{id:"q2",type:"text",label:"Idade",required:!0,placeholder:"Digite sua idade"},{id:"q3",type:"text",label:"Telefone (WhatsApp)",required:!0,placeholder:"(00) 00000-0000"},{id:"q4",type:"text",label:"Local/Ãrgão de atuação e função",required:!0,placeholder:"Ex: Secretaria de Educação â Analista"},{id:"q5",type:"text",label:"Bairro em que reside",required:!0,placeholder:"Digite seu bairro"},{id:"q6",type:"text",label:"Raça/Cor",required:!0,placeholder:"Ex: Parda, Preta, Branca, etc."},{id:"q7",type:"text",label:"Gênero",required:!0,placeholder:"Ex: Masculino, Feminino, etc."}]},{id:2,title:"Percepção Atual de Segurança e Iluminação",questions:[{id:"q8",type:"likert",label:"Na sua opinião, quanto a iluminação pública atual da sua cidade contribui para os seguintes aspectos?",required:!0,likertRows:[{id:"q8a",label:"Segurança nas ruas",options:["Muito","Pouco","Médio","Nada"]},{id:"q8b",label:"Uso de espaços públicos à noite",options:["Muito","Pouco","Médio","Nada"]}
1190,{id:"q8c",label:"Mobilidade de pedestres",options:["Muito","Pouco","Médio","Nada"]},{id:"q8d",label:"Valorização do bairro",options:["Muito","Pouco","Médio","Nada"]}]},{id:"q9",type:"radio",label:"Como avalia a situação do municÃpio no quesito segurança (levando em conta iluminação e monitoramento por câmeras) em relação a outras cidades da região/estado?",required:!0,options:["Excelente","Boa","Ruim","Péssima"]},{id:"q10",type:"radio",label:"Você percebeu melhorias na iluminação pública nos últimos anos?",required:!0,options:["Sim, muita melhora","Sim, pouca melhora","Não percebeu nenhuma melhora","Piorou"]},{id:"q11",type:"radio",required:!0,label:"Você concorda com a utilização de câmeras em espaços públicos com tecnologia de reconhecimento facial para fins de segurança pública, considerando que poderá haver tratamento de dados biométricos (dados pessoais sensÃveis), nos termos da Lei Geral de Proteção de Dados (Lei nº 13.709/2018), com observância de princÃpios como finalidade, necessidade, transparência, segurança e limitação de uso?",options:["Concordo totalmente, desde que o tratamento dos dados seja realizado com base legal adequada, com medidas de segurança e controle.","Concordo parcialmente, desde que haja regras claras, transparência, limitação de finalidade e fiscalização independente sobre o uso dos dados.","Discordo parcialmente, pois tenho receio de falhas, discriminação algorÃtmica ou uso indevido das informações.","Discordo totalmente, por entender que o uso de reconhecimento facial em espaços públicos viola a privacidade e os direitos fundamentais."]},{id:"q12",type:"radio",label:"No que se refere aos serviços públicos oferecidos pelo municÃpio, como iluminação, semáforos e monitoramento por câmeras, qual o seu grau de satisfação?",required:!0,options:["Muito satisfeito","Satisfeito","Indiferente","Insatisfeito"]},{id:"q13",type:"radio",label:"Você considera a iluminação pública de sua cidade eficaz em regiões descentralizadas, como distritos e bairros afastados?",required:!0,options:["Sim","Não"]},{id:"q14",type:"radio",label:"Você se sente mais seguro ao circular à noite em áreas bem iluminadas?",required:!0,options:["Sim","Médio","Pouco","Nada"]},{id:"q15",type:"radio",label:"Existem locais no seu bairro que ainda precisam de melhoria na iluminação pública?",required:!0,options:["Sim, mais da metade do bairro","Sim, menos da metade do bairro","Sim, mas bem pouco","Não é necessário. Está tudo bem iluminado"]},{id:"q16",type:"textarea",label:"Quais ruas ou espaços públicos da sua cidade você considera que precisam de melhor iluminação ou monitoramento por câmeras de segurança? Deixe suas sugestões abaixo.",required:!0,placeholder:"Digite suas sugestões..."}]},{id:3,title:"Videomonitoramento e Segurança",questions:[{id:"q17",type:"radio",label:"Você tem informações sobre a existência de câmeras de monitoramento na sua cidade?",required:!0,options:["Sim","Não"]},{id:"q18",type:"radio",label:"Em caso afirmativo, considera que funcionam bem?",required:!0,options:["Sim","Não"]},{id:"q19",type:"radio",label:"Para fins de segurança pública e localização de pessoas desaparecidas, você considera que o monitoramento por câmeras com reconhecimento facial pode ser um dispositivo importante?",required:!0,options:["Sim","Não"]},{id:"q20",type:"scale",label:"De 0 a 10, o quanto viver em uma cidade mais segura (bem iluminada e monitorada por câmeras), com oferta de serviços digitais, como Wi-Fi gratuito em pontos públicos, pode contribuir para sua vida?",required:!0,scaleMin:0,scaleMax:10,scaleMinLabel:"Pouco",scaleMaxLabel:"Muito"},{id:"q21",type:"checkbox",label:"Quais serviços digitais você conhece ou já utilizou na cidade?",required:!0,options:["Wi-Fi público","Aplicativo de serviços da Prefeitura","Monitoramento por câmeras","Sensores de trânsito ou mobilidade","Iluminação de LED","Não conheço"]}]},{id:4,title:"Serviços Digitais e Wi-Fi Público",questions:[{id:"q22",type:"scale",label:"De 0 a 10, considera importante o investimento do municÃpio em serviços digitais e iluminação de LED?",required:!0,scaleMin:0,scaleMax:10,scaleMinLabel:"Sem importância",scaleMaxLabel:"Muito importante"},{id:"q23",type:"scale",label:"De 0 a 10, o quanto você apoiaria o seu municÃpio hoje em um projeto de iluminação de LED e serviços digitais?",required:!0,scaleMin:0,scaleMax:10,scaleMinLabel:"Pouco",scaleMaxLabel:"Muito"},{id:"q24",type:"scale",label:"De 0 a 10, o quanto você avalia que um projeto de iluminação moderno e de serviços digitais podem contribuir para o desenvolvimento econômico da cidade?",required:!0,scaleMin:0,scaleMax:10,scaleMinLabel:"Pouco",scaleMaxLabel:"Muito"},{id:"q25",type:"checkbox",label:"Na sua opinião, em que os serviços digitais podem ajudar a melhorar?",required:!0,options:["Segurança","Gestão do trânsito","Eficiência da iluminação pública","Comunicação com a Prefeitura"]}]},{id:5,title:"Atividades ao Ar Livre e Lazer",questions:[{id:"q26",type:"radio",label:"Você costuma realizar atividades ao ar livre na cidade à noite?",required:!0,options:["Sim","Não","Gostaria, mas me sinto inseguro"]},{id:"q27",type:"text",label:"Em caso afirmativo, qual atividade ao ar livre costuma fazer à noite?",required:!0,placeholder:"Ex: Caminhada, corrida, ciclismo, etc.",conditionalOn:"q26",conditionalValue:"Sim"},{id:"q28",type:"radio",label:"Considera importante ter os espaços públicos e de lazer (praças, jardins, ciclovias, etc.) e pontos turÃsticos bem iluminados e monitorados?",required:!0,options:["Sim","Não"]},{id:"q29",type:"radio",label:"Em relação ao lazer em famÃlia e amigos, tem o hábito de visitar praças e pontos turÃsticos da cidade?",required:!0,options:["Sim","Não"]}]}
1190,{id:6,title:"Parceria Público-Privada (PPP) e Avaliação Geral",questions:[{id:"q30",type:"radio",label:"Você já ouviu falar em Parceria Público-Privada (PPP)?",required:!0,options:["Sim","Não"]},{id:"q31",type:"radio",label:"Você sabe como funciona uma PPP?",required:!0,options:["Sim","Não"]}]}],zxe={id:"iluminacao-publica",nome:"Iluminação Pública e Serviços Digitais",descricao:"31 perguntas · 6 páginas · baseado em escuta social real (PPP Juazeiro/BA)",tiposPPPCompatÃveis:["iluminacao_publica","tecnologia"],paginas:Lxe},Fxe=[{id:1,title:"PARTE I â Identificação",subtitle:"Nos conte quem é você. Todos os dados são usados exclusivamente pra este projeto, em conformidade com a LGPD.",questions:[{id:"q1_nome",type:"text",label:"Nome",required:!0,placeholder:"Nome completo"},{id:"q2_idade",type:"text",label:"Idade",required:!0,placeholder:"Ex: 34"},{id:"q3_genero",type:"radio",label:"Gênero",required:!0,options:["Feminino","Masculino","Não-binário","Prefiro não informar"]},{id:"q4_raca",type:"radio",label:"Cor / Raça",required:!0,options:["Branca","Preta","Parda","Amarela","IndÃgena","Prefiro não informar"]},{id:"q5_bairro",type:"text",label:"Local de residência / Bairro",required:!0,placeholder:"Ex: Centro, Graça, Barreiras"},{id:"q6_telefone",type:"text",label:"Telefone (com WhatsApp)",required:!1,placeholder:"(00) 00000-0000"},{id:"q7_orgao",type:"text",label:"Local / Ãrgão de atuação",required:!1,placeholder:"Se trabalha, onde?"},{id:"q8_cargo",type:"text",label:"Cargo / Função (poder público, administração direta ou indireta, ONGs, sindicatos)",required:!1,placeholder:"Ex: Enfermeira, professor, presidente da associação"},{id:"q9_lid_com",type:"radio",label:"Liderança comunitária",required:!0,options:["Formal","Informal","Não sou liderança comunitária"]},{id:"q10_lid_com_nome",type:"text",label:"Se formal, nome da associação",required:!1,placeholder:"Nome completo da associação/organização",conditionalOn:"q9_lid_com",conditionalValue:"Formal"},{id:"q11_lid_rel",type:"radio",label:"Liderança religiosa",required:!0,options:["Formal","Informal","Não sou liderança religiosa"]}]},{id:2,title:"PARTE II â Percepção sobre iluminação e serviços digitais",subtitle:"Como você enxerga hoje a segurança, a iluminação e os serviços digitais em Valença.",questions:[{id:"q12_cameras_info",type:"radio",label:"Você tem informações sobre a existência de câmeras de monitoramento na sua cidade?",required:!0,options:["Sim","Não"]},{id:"q13_cameras_funcionam",type:"radio",label:"Em caso afirmativo, considera que funcionam bem?",required:!1,options:["Sim","Não"],conditionalOn:"q12_cameras_info",conditionalValue:"Sim"},{id:"q14_seguranca_geral",type:"radio",label:"Como avalia a situação do municÃpio no quesito segurança (levando em conta iluminação e monitoramento por câmeras) em relação a outras cidades da região/estado?",required:!0,options:["Péssima","Ruim","Boa","Excelente"]},{id:"q15_satisfacao_servicos",type:"radio",label:"No que se refere aos serviços públicos oferecidos pelo municÃpio (iluminação, semáforos e monitoramento por câmeras), qual o seu grau de satisfação?",required:!0,options:["Insatisfeito","Satisfeito","Muito satisfeito"]},{id:"q16_iluminacao_descentralizada",type:"radio",label:"Você considera a iluminação pública da sua cidade eficaz em regiões descentralizadas, como distritos e bairros afastados?",required:!0,options:["Sim","Não"]},{id:"q17_melhorias_iluminacao",type:"radio",label:"Você percebeu melhorias na iluminação pública nos últimos anos?",required:!0,options:["Sim, muita melhora","Sim, alguma melhora","Não percebeu mudanças","Piorou"]},{id:"q18_iluminacao_contribui",type:"likert",label:"Na sua opinião, quanto a iluminação atual da sua cidade contribui para os seguintes aspectos:",required:!0,likertRows:[{id:"q18a_seguranca",label:"Segurança nas ruas",options:["Nada","Pouco","Médio","Muito"]},{id:"q18b_espacos",label:"Uso de espaços públicos à noite",options:["Nada","Pouco","Médio","Muito"]}
1190,{id:"q18c_mobilidade",label:"Mobilidade de pedestres",options:["Nada","Pouco","Médio","Muito"]},{id:"q18d_valorizacao",label:"Valorização do bairro",options:["Nada","Pouco","Médio","Muito"]}]},{id:"q19_seguro_noite",type:"radio",label:"Você se sente mais seguro ao circular à noite em áreas bem iluminadas?",required:!0,options:["Nada","Pouco","Médio","Muito"]},{id:"q20_semaforos_inteligentes",type:"radio",label:"Considera que a fluidez do trânsito na área central da cidade poderia ser melhor com semáforos inteligentes?",required:!0,options:["Sim","Não"]},{id:"q21_fluidez_atual",type:"radio",label:"Caso a sua cidade já conte com esse sistema em algumas vias, como avalia a fluidez do trânsito no local?",required:!1,options:["Muito boa","Boa","Regular","Não faz diferença"]},{id:"q22_reconhecimento_facial",type:"radio",label:"Para fins de segurança pública e localização de pessoas desaparecidas, você considera que o monitoramento por câmeras com reconhecimento facial seria importante pra ampliar a segurança na cidade?",required:!0,options:["Sim","Não"]},{id:"q23_servicos_conhecidos",type:"checkbox",label:"Quais serviços digitais você conhece ou já utilizou na cidade? (marque todos que se aplicam)",required:!0,options:["Wi-Fi público","Aplicativo de serviços da Prefeitura","Monitoramento por câmeras","Sensores de trânsito ou mobilidade","Iluminação de LED","Não conheço nenhum"]},{id:"q24_servicos_ajudam",type:"likert",label:"Na sua opinião, em que os serviços digitais podem ajudar a melhorar:",required:!0,likertRows:[{id:"q24a_seguranca",label:"Segurança urbana",options:["Nada","Pouco","Médio","Muito"]},{id:"q24b_transito",label:"Gestão do trânsito",options:["Nada","Pouco","Médio","Muito"]},{id:"q24c_iluminacao",label:"Eficiência da iluminação pública",options:["Nada","Pouco","Médio","Muito"]},{id:"q24d_comunicacao",label:"Comunicação com a prefeitura",options:["Nada","Pouco","Médio","Muito"]}]},{id:"q25_ar_livre_noite",type:"radio",label:"Você costuma realizar atividades ao ar livre na cidade à noite?",required:!0,options:["Sim","Não"]},{id:"q26_ar_livre_qual",type:"text",label:"Se sim, qual?",required:!1,placeholder:"Ex: caminhada, esporte, encontro em praça",conditionalOn:"q25_ar_livre_noite",conditionalValue:"Sim"},{id:"q27_lazer_familia",type:"radio",label:"Em relação ao lazer em famÃlia e amigos, tem o hábito de visitar praças e pontos turÃsticos da cidade?",required:!0,options:["Sim","Não"]},{id:"q28_iluminacao_espacos",type:"radio",label:"Considera importante ter os espaços públicos e de lazer (praças, jardins, ciclovias, etc.) e pontos turÃsticos bem iluminados e monitorados?",required:!0,options:["Sim","Não"]},{id:"q29_ouviu_ppp",type:"radio",label:"Você já ouviu falar em Parceria Público-Privada (PPP)?",required:!0,options:["Sim","Não"]},{id:"q30_sabe_ppp",type:"radio",label:"Sabe como funciona uma PPP?",required:!0,options:["Sim","Não"]},{id:"q31_locais_melhoria",type:"radio",label:"Existem locais no seu bairro que ainda precisam de melhoria na iluminação pública?",required:!0,options:["Sim, mais da metade do bairro","Sim, menos da metade do bairro","Sim, mas bem pouco","Não, está tudo bem iluminado"]},{id:"q32_locais_quais",type:"textarea",label:"Se sim, quais locais/ruas? Deixe suas sugestões.",required:!1,placeholder:"Ex: Rua das Palmeiras (entre a Praça Central e o Mercado)",conditionalOn:"q31_locais_melhoria",conditionalValue:"Sim, mais da metade do bairro"},{id:"q33_sugestoes_gerais",type:"textarea",label:"Quais ruas ou espaços públicos da sua cidade você considera que precisam de melhor iluminação ou monitoramento por câmeras de segurança? Deixe suas sugestões abaixo.",required:!1,placeholder:"Descreva livremente pontos, ruas, praças ou trechos."}]},{id:3,title:"PARTE III â Impactos",subtitle:"Avaliação em nota de 0 a 10.",questions:[{id:"q34_cidade_segura",type:"scale",label:"De 0 a 10, o quanto viver em uma cidade mais segura (bem iluminada e monitorada por câmeras) e com oferta de serviços digitais como Wi-Fi gratuito em pontos públicos pode contribuir pra sua vida?",required:!0,scaleMin:0,scaleMax:10,scaleMinLabel:"Não contribui",scaleMaxLabel:"Contribui muito"},{id:"q35_desenvolvimento_economico",type:"scale",label:"De 0 a 10, o quanto você avalia que um projeto de iluminação moderno e serviços digitais pode contribuir pro desenvolvimento econômico da cidade?",required:!0,scaleMin:0,scaleMax:10,scaleMinLabel:"Não contribui",scaleMaxLabel:"Contribui muito"},{id:"q36_investimento_led",type:"scale",label:"De 0 a 10, o quanto considera importante o investimento do municÃpio em serviços digitais e iluminação de LED?",required:!0,scaleMin:0,scaleMax:10,scaleMinLabel:"Nada importante",scaleMaxLabel:"Muito importante"},{id:"q37_apoio_projeto",type:"scale",label:"De 0 a 10, o quanto você apoiaria o seu municÃpio hoje em um projeto de iluminação de LED e serviços digitais?",required:!0,scaleMin:0,scaleMax:10,scaleMinLabel:"Não apoio",scaleMaxLabel:"Apoio totalmente"}]}],$xe={id:"valenca-iluminacao",nome:"Valença/BA â PPP Iluminação Pública e Serviços Digitais",descricao:"Formulário completo pronto (37 perguntas), fiel ao Word entregue pela Mariana em 29/07.",tiposPPPCompatÃveis:["Iluminação Pública"],paginas:Fxe},qxe=[$xe,Bxe,zxe],KR={id:"branco",nome:"Começar do zero",descricao:"Formulário vazio â você define todas as perguntas",tiposPPPCompatÃveis:[],paginas:[{id:1,title:"Página 1",questions:[]}]};async function KN(e){const t=await e.json().catch(()=>({error:`HTTP ${e.status}`}));throw new Error(t.error||`HTTP ${e.status}`)}async function Vxe(){const e=await fetch("/api/escuta/templates");return e.status===503?[]:(e.ok||await KN(e),(await e.json()).templates??[])}async function Uxe(e){const t=await fetch("/api/escuta/templates",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});return t.ok||await KN(t),(await t.json()).template}async function Hxe(e){const t=await fetch(`/api/escuta/templates/${e}`,{method:"DELETE"});t.ok||await KN(t)}function Tw(e){const t=qxe.map(a=>({id:a.id,nome:a.nome,descricao:a.descricao,paginas:a.paginas,remoto:!1})),r=e.map(a=>({id:a.id,nome:`${a.nome} · ${a.versao}`,descricao:a.descricao||`${a.totalPerguntas??0} perguntas · ${a.paginas.length} páginas`,paginas:a.paginas,remoto:!0,versao:a.versao}));return[...t,...r]}function DV(e){const t=[];for(const r of e??[])r.questions.forEach((a,n)=>{const i={pagina:r.title,posicao:n+1,id:a.id};if(!a.label||!a.label.trim()){t.push({...i,motivo:"sem enunciado"});return}if((a.type==="radio"||a.type==="checkbox")&&!(a.options??[]).some(o=>o.trim())){t.push({...i,motivo:"escolha sem nenhuma opção"});return}a.type==="likert"&&!(a.likertRows??[]).length&&t.push({...i,motivo:"matriz sem nenhuma linha"})});return t}function JC(e){const t=e.slice(0,3).map(a=>`â${a.pagina}â, pergunta ${a.posicao} (${a.motivo})`).join("; "),r=e.length>3?` â e mais ${e.length-3}`:"";return`${t}${r}`}function _V(){const[e,t]=L.useState(()=>Tw([])),[r,a]=L.useState(!0),n=L.useCallback(async()=>{a(!0);try{const i=await Vxe();t(Tw(i))}catch(i){console.warn("[useTemplatesEscuta] falha ao listar templates subidos:",i),t(Tw([]))}finally{a(!1)}},[]);return L.useEffect(()=>{n()},[n]),{templates:e,carregando:r,recarregar:n}}const WR={rascunho:{label:"Rascunho",color:"text-amber-700",bg:"bg-amber-50 border-amber-200"},publicado:{label:"Publicado",color:"text-emerald-700",bg:"bg-emerald-50 border-emerald-200"},encerrado:{label:"Encerrado",color:"text-gray-600",bg:"bg-gray-50 border-gray-200"}};function Gxe({onAbrirDashboard:e}={}){const{projetos:t}=Ps(),[r,a]=L.useState([]),[n,i]=L.useState(!0),[o,s]=L.useState(null),[c,u]=L.useState([]),[h,f]=L.useState(!1),[m,x]=L.useState(!1),[v,y]=L.useState(!1),[b,S]=L.useState("formulario"),[A,E]=L.useState(0),[j,P]=L.useState(null),[C,N]=L.useState(!1),[O,k]=L.useState(!1),B=L.useCallback(async()=>{i(!0);try{const te=await fetch("/api/escuta/formularios");if(!te.ok)throw new Error(`HTTP ${te.status}`);const K=await te.json();a(K.formularios??[]),!o&&K.formularios?.length>0&&s(K.formularios[0].id)}catch(te){je.error(`Falha ao carregar: ${te instanceof Error?te.message:"erro"}`)}finally{i(!1)}},[o]);L.useEffect(()=>{B()},[B]);const $=L.useCallback(async te=>{f(!0);try{const K=await fetch(`/api/escuta/formularios/${te}/respostas`);if(!K.ok)throw new Error(`HTTP ${K.status}`);const q=await K.json();u(q.respostas??[])}catch(K){je.error(`Falha ao carregar respostas: ${K instanceof Error?K.message:"erro"}`)}finally{f(!1)}},[]);L.useEffect(()=>{o&&$(o)},[o,$]);const _=L.useMemo(()=>r.find(te=>te.id===o)??null,[r,o]),W=async(te,K)=>{if(K==="publicado"){const q=DV(te.paginas??[]);if(q.length>0){je.error(`Não dá pra publicar com ${q.length} pergunta(s) incompleta(s): ${JC(q)}. Abra "Editar perguntas" e resolva antes.`,{duration:9e3});return}}try{const q=await fetch(`/api/escuta/formularios/${te.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({...te,projetoId:te.projeto_id,corPrimaria:te.cor_primaria,corSecundaria:te.cor_secundaria,logoUrl:te.logo_url,tipoPPP:te.tipo_ppp,status:K})});if(!q.ok)throw new Error(`HTTP ${q.status}`);je.success(`Formulário agora está ${WR[K].label.toLowerCase()}.`),B()}catch(q){je.error(`Falha: ${q instanceof Error?q.message:"erro"}`)}},D=async te=>{if(confirm(`Remover "${te.titulo}"? Todas as respostas também serão excluÃdas. Esta ação é irreversÃvel.`))try{const K=await fetch(`/api/escuta/formularios/${te.id}`,{method:"DELETE"});if(!K.ok)throw new Error(`HTTP ${K.status}`);je.success("Escuta removida."),s(null),B()}catch(K){je.error(`Falha: ${K instanceof Error?K.message:"erro"}`)}},J=_?_.tipo_slug&&_.municipio_slug?`${window.location.origin}/${_.tipo_slug}/${_.municipio_slug}`:`${window.location.origin}/consulta/${_.slug}`:"",z=()=>{J&&(navigator.clipboard.writeText(J),je.success("Link copiado!"))},V=()=>
1190{if(!_||c.length===0){je.error("Nada para exportar.");return}const te=_.paginas.flatMap(he=>he.questions),K=["id","respondente_nome","sentimento_geral","tags","enviada_em",...te.map(he=>he.id)],q=c.map(he=>{const Y={id:String(he.id),respondente_nome:he.respondente_nome??"",sentimento_geral:he.sentimento_geral??"",tags:(he.tags??[]).join("|"),enviada_em:he.enviada_em};for(const F of te){const ae=he.respostas[F.id];Y[F.id]=Array.isArray(ae)?ae.join("|"):typeof ae=="object"?JSON.stringify(ae):String(ae??"")}return Y}),X=[K.join(","),...q.map(he=>K.map(Y=>`"${(he[Y]??"").replace(/"/g,'""')}"`).join(","))].join(` 1191`),U=new Blob([X],{type:"text/csv;charset=utf-8;"}),ie=URL.createObjectURL(U),se=document.createElement("a");se.href=ie,se.download=`respostas_${_.slug}_${new Date().toISOString().slice(0,10)}.csv`,se.click(),URL.revokeObjectURL(ie),je.success(`${c.length} resposta(s) exportada(s)`)},Z=L.useMemo(()=>{const te=c.length;if(te===0)return null;const K={favoravel:0,neutro:0,contrario:0,misto:0,semAnalise:0},q={},X=[];for(const ie of c){const se=ie.sentimento_geral;se&&se in K?K[se]++:K.semAnalise++,(ie.tags??[]).forEach(he=>{q[he]=(q[he]??0)+1}),(ie.duvidas_extraidas??[]).forEach(he=>X.push(he))}const U=Object.entries(q).sort((ie,se)=>se[1]-ie[1]).slice(0,8);return{total:te,sentimentos:K,topTags:U,duvidas:X.slice(0,15)}},[c]);return p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:244",className:"min-h-screen bg-[#EDE9DF] p-6",children:p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:245",className:"max-w-7xl mx-auto space-y-5",children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:247",className:"flex items-center justify-between flex-wrap gap-3",children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:248",children:[p.jsx("h1",{"data-loc":"client/src/pages/EscutaSocial.tsx:249",className:"text-2xl font-bold text-[#2D4A2D]",children:"Escuta Social"}),p.jsx("p",{"data-loc":"client/src/pages/EscutaSocial.tsx:250",className:"text-[#2D4A2D]/60 text-sm mt-0.5",children:"Escutas sociais, formulários e análise de percepção da população"})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:254",className:"flex items-center gap-2",children:[p.jsxs("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:255",onClick:B,className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-white border border-[#2D4A2D]/10 text-[#2D4A2D] text-xs hover:bg-[#EDE9DF] transition-colors",children:[p.jsx(Mh,{"data-loc":"client/src/pages/EscutaSocial.tsx:259",size:12})," Atualizar"]}),p.jsxs("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:261",onClick:()=>{S("formulario"),y(!0)},className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-white border border-[#2D4A2D]/25 text-[#2D4A2D] text-xs font-bold hover:bg-[#2D4A2D]/5 transition-colors",title:"Sobe um .docx com perguntas â a IA extrai a estrutura pra virar um formulário",children:[p.jsx(Ll,{"data-loc":"client/src/pages/EscutaSocial.tsx:266",size:12})," Importar .docx"]}),p.jsxs("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:268",onClick:()=>x(!0),className:"flex items-center gap-1.5 px-4 py-2 rounded-lg bg-[#2D4A2D] text-white text-xs font-bold hover:bg-[#2D4A2D]/90 transition-colors",children:[p.jsx(fa,{"data-loc":"client/src/pages/EscutaSocial.tsx:272",size:12})," Nova escuta"]})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:278",className:"grid grid-cols-12 gap-4",children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:280",className:"col-span-4 space-y-2",children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:281",className:"text-[10px] font-black uppercase tracking-wider text-[#2D4A2D]/60 px-1",children:[r.length," escuta",r.length!==1?"s":""]}),n?p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:285",className:"bg-white rounded-xl p-4 flex items-center gap-2 text-xs text-gray-500 border border-[#2D4A2D]/10",children:[p.jsx(Wt,{"data-loc":"client/src/pages/EscutaSocial.tsx:286",size:12,className:"animate-spin"})," Carregandoâ¦"]}):r.length===0?p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:289",className:"bg-white rounded-xl p-6 text-center text-xs text-gray-400 border border-dashed border-[#2D4A2D]/20",children:["Nenhuma escuta ainda.",p.jsx("br",{"data-loc":"client/src/pages/EscutaSocial.tsx:290"}),"Clique ",p.jsx("strong",{"data-loc":"client/src/pages/EscutaSocial.tsx:290",children:"+ Nova escuta"})," pra começar."]}):r.map(te=>{const K=te.id===o,q=WR[te.status];return p.jsxs("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:297",onClick:()=>s(te.id),className:`w-full text-left rounded-xl p-3 transition-all ${K?"bg-[#2D4A2D] shadow-md":"bg-white border border-[#2D4A2D]/10 hover:border-[#2D4A2D]/30"}`,children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:304",className:"flex items-start justify-between gap-2",children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:305",className:"flex-1 min-w-0",children:[p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:306",className:`text-xs font-bold truncate ${K?"text-white":"text-[#2D4A2D]"}`,children:te.titulo}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:309",className:`text-[10px] mt-0.5 ${K?"text-white/60":"text-[#2D4A2D]/40"}`,children:[te.municipio&&`${te.municipio}/${te.estado} · `,te.paginas?.length??0," páginas"]})]}),p.jsx("span",{"data-loc":"client/src/pages/EscutaSocial.tsx:313",className:`text-[9px] font-semibold px-1.5 py-0.5 rounded-full border shrink-0 ${K?"bg-white/20 text-white border-white/20":`${q.bg} ${q.color}`}`,children:q.label})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:319",className:`text-[10px] mt-2 flex items-center justify-between gap-1 ${K?"text-white/70":"text-[#7A8C5E]"}`,children:[p.jsxs("span",{"data-loc":"client/src/pages/EscutaSocial.tsx:320",className:"flex items-center gap-1",children:[p.jsx(Oh,{"data-loc":"client/src/pages/EscutaSocial.tsx:321",size:9}),te.total_respostas," resposta",te.total_respostas!==1?"s":""]}),e&&p.jsxs("span",{"data-loc":"client/src/pages/EscutaSocial.tsx:325",role:"button",onClick:X=>{X.stopPropagation(),e(te.id)},className:`flex items-center gap-0.5 px-1.5 py-0.5 rounded text-[9px] font-bold cursor-pointer ${K?"bg-white/20 text-white hover:bg-white/30":"bg-[#2D4A2D] text-white hover:bg-[#2D4A2D]/90"}`,title:"Abrir dashboard analÃtico",children:[p.jsx(Nl,{"data-loc":"client/src/pages/EscutaSocial.tsx:333",size:9})," Dashboard"]})]})]},te.id)})]}),p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:344",className:"col-span-8",children:_?p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:350",className:"bg-white rounded-2xl border border-[#2D4A2D]/10 shadow-sm overflow-hidden",children:[p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:352",className:"px-6 py-5 flex items-center justify-between gap-4",style:{backgroundColor:_.cor_primaria||"#2D4A2D",color:"#FFFFFF"},children:p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:356",className:"flex items-center gap-4 min-w-0",children:[_.logo_url&&p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:358",className:"bg-white rounded-lg p-2 shadow-md flex items-center justify-center shrink-0",style:{minWidth:90},children:p.jsx("img",{"data-loc":"client/src/pages/EscutaSocial.tsx:359",src:_.logo_url,alt:"logo",className:"h-14 w-auto max-w-[140px] object-contain"})}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:362",className:"min-w-0",children:[p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:363",className:"text-[10px] uppercase tracking-wider opacity-70",children:"Escuta Social"}),p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:365",className:"text-lg font-bold truncate",children:_.tipo_ppp&&_.municipio?`Escuta Social â ${_.tipo_ppp} de ${_.municipio}`:(_.titulo||"").replace(/ - /g," â ").replace(/ · /g," ").trim()}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:370",className:"text-xs opacity-80",children:[_.municipio,"/",_.estado]}),_.tipo_ppp&&p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:372",className:"text-xs opacity-80",children:_.tipo_ppp})]})]})}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:379",className:"px-6 py-3 border-b border-[#2D4A2D]/8 flex items-center gap-2 flex-wrap bg-[#FAFAF8]",children:[p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:380",className:"text-[10px] font-bold uppercase tracking-wider text-[#7A8C5E] mr-2",children:"Ações:"}),e&&p.jsxs("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:384",onClick:()=>e(_.id),className:"flex items-center gap-1 px-3 py-1.5 rounded-lg bg-[#2D4A2D] text-white text-xs font-bold hover:bg-[#2D4A2D]/90",title:"Abrir dashboard com análise completa das respostas",children:[p.jsx(Nl,{"data-loc":"client/src/pages/EscutaSocial.tsx:389",size:11})," Dashboard analÃtico"]}),p.jsxs("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:392",onClick:()=>k(!0),className:"flex items-center gap-1 px-3 py-1.5 rounded-lg bg-white border border-[#2D4A2D]/15 text-xs text-[#2D4A2D] hover:bg-[#2D4A2D]/5",children:[p.jsx(Mp,{"data-loc":"client/src/pages/EscutaSocial.tsx:396",size:11})," Editar dados básicos"]}),p.jsxs("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:398",onClick:()=>N(!0),className:"flex items-center gap-1 px-3 py-1.5 rounded-lg bg-white border border-[#2D4A2D]/15 text-xs text-[#2D4A2D] hover:bg-[#2D4A2D]/5",children:[p.jsx(Mp,{"data-loc":"client/src/pages/EscutaSocial.tsx:402",size:11})," Editar perguntas (",_.paginas.reduce((te,K)=>te+K.questions.length,0),")"]}),p.jsxs("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:404",onClick:z,className:"flex items-center gap-1 px-3 py-1.5 rounded-lg bg-white border border-[#2D4A2D]/15 text-xs text-[#2D4A2D] hover:bg-[#2D4A2D]/5",disabled:_.status!=="publicado",title:_.status!=="publicado"?"Publique antes de copiar o link":"",children:[p.jsx(rN,{"data-loc":"client/src/pages/EscutaSocial.tsx:410",size:11})," Copiar link público"]}),p.jsxs("a",{"data-loc":"client/src/pages/EscutaSocial.tsx:412",href:J,target:"_blank",rel:"noopener noreferrer",className:`flex items-center gap-1 px-3 py-1.5 rounded-lg bg-white border border-[#2D4A2D]/15 text-xs text-[#2D4A2D] hover:bg-[#2D4A2D]/5 ${_.status!=="publicado"?"opacity-40 pointer-events-none":""}`,children:[p.jsx(Rh,{"data-loc":"client/src/pages/EscutaSocial.tsx:418",size:11})," Abrir"]}),_.status!=="publicado"&&p.jsxs("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:421",onClick:()=>W(_,"publicado"),className:"flex items-center gap-1 px-3 py-1.5 rounded-lg bg-emerald-600 text-white text-xs hover:bg-emerald-700",children:[p.jsx(kx,{"data-loc":"client/src/pages/EscutaSocial.tsx:425",size:11})," Publicar"]}),_.status==="publicado"&&p.jsxs(p.Fragment,{children:[p.jsxs("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:430",onClick:()=>W(_,"rascunho"),className:"flex items-center gap-1 px-3 py-1.5 rounded-lg bg-amber-100 text-amber-700 border border-amber-300 text-xs hover:bg-amber-200",children:[p.jsx(Yee,{"data-loc":"client/src/pages/EscutaSocial.tsx:434",size:11})," Voltar para rascunho"]}),p.jsx("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:436",onClick:()=>W(_,"encerrado"),className:"flex items-center gap-1 px-3 py-1.5 rounded-lg bg-gray-200 text-gray-700 border border-gray-300 text-xs hover:bg-gray-300",children:"Encerrar"})]}),p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:444",className:"flex-1"}),p.jsxs("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:445",onClick:V,className:"flex items-center gap-1 px-3 py-1.5 rounded-lg bg-white border border-[#2D4A2D]/15 text-xs text-[#2D4A2D] hover:bg-[#2D4A2D]/5",disabled:c.length===0,children:[p.jsx(Yl,{"data-loc":"client/src/pages/EscutaSocial.tsx:450",size:11})," Exportar CSV"]}),p.jsxs("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:452",onClick:()=>D(_),className:"flex items-center gap-1 px-3 py-1.5 rounded-lg bg-white border border-red-200 text-xs text-red-600 hover:bg-red-50",children:[p.jsx(ei,{"data-loc":"client/src/pages/EscutaSocial.tsx:456",size:11})," Remover"]})]}),_.status==="publicado"&&p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:4
119161",className:"px-6 py-3 bg-emerald-50 border-b border-emerald-100 flex items-center flex-wrap justify-between gap-2 text-xs",children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:462",className:"text-emerald-800",children:["ð ",p.jsx("code",{"data-loc":"client/src/pages/EscutaSocial.tsx:463",className:"font-mono text-[10px] bg-white px-2 py-0.5 rounded border border-emerald-200",children:J})]}),(()=>{const te=_.data_fim??_.dataFim,K=_.data_inicio??_.dataInicio,q=new Date;if(te){const X=new Date(te),U=X<q;return p.jsxs("span",{"data-loc":"client/src/pages/EscutaSocial.tsx:473",className:`text-[10px] font-bold px-2 py-1 rounded ${U?"bg-red-100 text-red-700 border border-red-300":"bg-white text-emerald-800 border border-emerald-300"}`,children:[U?"â° Encerrada em ":"â± Encerra "," ",X.toLocaleString("pt-BR",{day:"2-digit",month:"2-digit",year:"2-digit",hour:"2-digit",minute:"2-digit"})]})}return K&&new Date(K)>q?p.jsxs("span",{"data-loc":"client/src/pages/EscutaSocial.tsx:480",className:"text-[10px] font-bold px-2 py-1 rounded bg-white text-amber-800 border border-amber-300",children:["ð Abre em ",new Date(K).toLocaleString("pt-BR",{day:"2-digit",month:"2-digit",hour:"2-digit",minute:"2-digit"})]}):null})()]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:491",className:"px-6 py-5 border-b border-[#2D4A2D]/8",children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:492",className:"flex items-center gap-2 mb-3",children:[p.jsx(Nl,{"data-loc":"client/src/pages/EscutaSocial.tsx:493",size:13,className:"text-[#7A8C5E]"}),p.jsx("span",{"data-loc":"client/src/pages/EscutaSocial.tsx:494",className:"text-sm font-bold text-[#2D4A2D]",children:h?"Carregando respostasâ¦":`${c.length} respostas recebidas`}),Z&&Z.sentimentos.semAnalise>0&&p.jsxs("span",{"data-loc":"client/src/pages/EscutaSocial.tsx:498",className:"text-[10px] text-amber-700 bg-amber-50 border border-amber-200 px-2 py-0.5 rounded ml-auto",children:[Z.sentimentos.semAnalise," sem análise IA"]})]}),Z&&Z.total>0?p.jsxs(p.Fragment,{children:[p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:506",className:"grid grid-cols-4 gap-2 mb-4",children:[{label:"Favorável",valor:Z.sentimentos.favoravel,cor:"#059669",bg:"bg-emerald-50"},{label:"Neutro",valor:Z.sentimentos.neutro,cor:"#6b7280",bg:"bg-gray-50"},{label:"Contrário",valor:Z.sentimentos.contrario,cor:"#dc2626",bg:"bg-red-50"},{label:"Misto",valor:Z.sentimentos.misto,cor:"#d97706",bg:"bg-amber-50"}].map(te=>{const K=Z.total>0?Math.round(te.valor/Z.total*100):0;return p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:515",className:`${te.bg} rounded-lg p-3`,children:[p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:516",className:"text-[10px] font-bold uppercase tracking-wider",style:{color:te.cor},children:te.label}),p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:517",className:"text-xl font-black mt-0.5",style:{color:te.cor},children:te.valor}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:518",className:"text-[10px]",style:{color:te.cor},children:[K,"%"]})]},te.label)})}),Z.topTags.length>0&&p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:524",children:[p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:525",className:"text-[10px] font-bold uppercase tracking-wider text-[#7A8C5E] mb-1.5",children:"Principais tags identificadas"}),p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:528",className:"flex flex-wrap gap-1",children:Z.topTags.map(([te,K])=>p.jsxs("span",{"data-loc":"client/src/pages/EscutaSocial.tsx:530",className:"text-[10px] font-medium px-2 py-0.5 rounded-full bg-[#2D4A2D]/8 text-[#2D4A2D] border border-[#2D4A2D]/15",children:[te," · ",K]},te))})]})]}):p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:539",className:"text-center py-6 text-xs text-gray-400",children:_.status==="publicado"?"Aguardando primeiras respostasâ¦":"Publique a escuta pra começar a receber respostas."})]}),c.length>0&&p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:549",className:"p-6 max-h-96 overflow-auto",children:[p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:550",className:"text-[10px] font-bold uppercase tracking-wider text-[#7A8C5E] mb-2",children:"Ãltimas respostas"}),p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:553",className:"space-y-2",children:c.slice(0,20).map(te=>p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:555",className:"text-xs bg-[#FAFAF8] border border-[#2D4A2D]/8 rounded-lg p-3",children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:556",className:"flex items-center justify-between gap-2 mb-1",children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:557",className:"font-bold text-[#2D4A2D]",children:["#",te.id," ",te.respondente_nome&&`· ${te.respondente_nome}`]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:560",className:"flex items-center gap-1",children:[te.sentimento_geral&&p.jsx("span",{"data-loc":"client/src/pages/EscutaSocial.tsx:562",className:`text-[9px] font-bold px-1.5 py-0.5 rounded ${te.sentimento_geral==="favoravel"?"bg-emerald-100 text-emerald-700":te.sentimento_geral==="contrario"?"bg-red-100 text-red-700":te.sentimento_geral==="misto"?"bg-amber-100 text-amber-700":"bg-gray-100 text-gray-600"}`,children:te.sentimento_geral}),p.jsx("span",{"data-loc":"client/src/pages/EscutaSocial.tsx:571",className:"text-[10px] text-gray-400",children:new Date(te.enviada_em).toLocaleStr
1191ing("pt-BR")})]})]}),te.duvidas_extraidas&&te.duvidas_extraidas.length>0&&p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:577",className:"text-[10px] text-[#2D4A2D]/70 italic mt-1",children:["ð¬ ",te.duvidas_extraidas[0]]})]},te.id))}),c.length>20&&p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:585",className:"text-center text-[10px] text-gray-400 mt-2",children:["Mostrando 20 mais recentes de ",c.length,". Exporte CSV pra ver tudo."]})]})]}):p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:346",className:"bg-white rounded-2xl p-12 text-center text-sm text-gray-400 border border-[#2D4A2D]/10",children:"Selecione uma escuta à esquerda ou crie uma nova."})})]}),m&&p.jsx(Kxe,{"data-loc":"client/src/pages/EscutaSocial.tsx:598",projetos:t,onClose:()=>x(!1),onCriado:te=>{x(!1),B(),s(te)},onSubirTemplate:()=>{S("template"),y(!0)},sinalTemplates:A,templateNovoId:j}),v&&p.jsx(Jxe,{"data-loc":"client/src/pages/EscutaSocial.tsx:614",projetos:t,modoInicial:b,onClose:()=>y(!1),onCriado:te=>{y(!1),B(),s(te)},onTemplateSalvo:te=>{y(!1),P(te),E(K=>K+1)}}),C&&_&&p.jsx(Wxe,{"data-loc":"client/src/pages/EscutaSocial.tsx:633",formulario:_,onClose:()=>N(!1),onSalvo:()=>{N(!1),B()}}),O&&_&&p.jsx(Zxe,{"data-loc":"client/src/pages/EscutaSocial.tsx:645",formulario:_,onClose:()=>k(!1),onSalvo:()=>{k(!1),B()}})]})})}function Kxe({projetos:e,onClose:t,onCriado:r,onSubirTemplate:a,sinalTemplates:n,templateNovoId:i}){const[o,s]=L.useState(""),[c,u]=L.useState(""),[h,f]=L.useState(""),[m,x]=L.useState(""),[v,y]=L.useState(""),[b,S]=L.useState(""),[A,E]=L.useState(""),[j,P]=L.useState("valenca-iluminacao"),{templates:C,recarregar:N}=_V(),[O,k]=L.useState(""),[B,$]=L.useState(""),[_,W]=L.useState("#2D4A2D"),[D,J]=L.useState("#7A8C5E"),[z,V]=L.useState(!1),[Z,te]=L.useState(!1),[K,q]=L.useState(!1);L.useEffect(()=>{if(!o)return;const se=e.find(ne=>ne.id===o);if(!se)return;u(se.municipio),f(se.estado);const he=Kr[se.tipoProjeto]?.label??"";x(he),K||y(`Escuta Social â ${he} de ${se.municipio}`);const Y=se.municipio.toLowerCase().normalize("NFD").replace(/[Ì-ͯ]/g,""),F=C.find(ne=>ne.id.toLowerCase().includes(Y)||ne.nome.toLowerCase().normalize("NFD").replace(/[Ì-ͯ]/g,"").includes(Y));F&&P(F.id);const ae=Vu.find(ne=>ne.slug.includes(Y)||ne.municipio.toLowerCase().normalize("NFD").replace(/[Ì-ͯ]/g,"").includes(Y));ae&&k(ae.slug)},[o,e,K,C]),L.useEffect(()=>{n&&N().then(()=>{i&&P(i)})},[n,i,N]),L.useEffect(()=>{if(c&&!A){const se=`${c.toLowerCase().replace(/[^a-z0-9]/g,"-").replace(/-+/g,"-")}-${Date.now().toString(36).slice(-5)}`;E(se)}},[c,A]),L.useEffect(()=>{if(!O)return;const se=Uf(O);se&&(W(se.paleta.primaria),J(se.paleta.secundaria))},[O]);const X=se=>{if(!se)return;const he=new FileReader;he.onload=()=>{$(String(he.result)),k("")},he.readAsDataURL(se)},U=async()=>
1191{const se=B||(O?Uf(O)?.logoUrl??"":"");if(!se){je.error("Escolha uma logo antes de analisar.");return}V(!0);try{const Y={municipioSlug:O||c.toLowerCase().replace(/[^a-z0-9]/g,"-")+"-custom"};B?Y.logoDataUrl=B:Y.logoUrl=new URL(se,window.location.origin).toString();const F=await fetch("/api/escuta/analisar-logo",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Y)});if(!F.ok){const ne=await F.json().catch(()=>({error:`HTTP ${F.status}`}));throw new Error(ne.error||`HTTP ${F.status}`)}const ae=await F.json();W(ae.cor_primaria),J(ae.cor_secundaria),je.success(`Paleta extraÃda pela IA${ae.fromCache?" (cache)":""}`)}catch(he){je.error(`Falha ao analisar: ${he instanceof Error?he.message:"erro"}`)}finally{V(!1)}},ie=async()=>{if(!v||!A||!c||!h){je.error("Preencha tÃtulo, slug, municÃpio e UF.");return}te(!0);try{const se=C.find(oe=>oe.id===j)??KR,he=`form-${A}-${Date.now().toString(36).slice(-4)}`,Y=B||(O?Uf(O)?.logoUrl:void 0),F=oe=>oe.normalize("NFD").replace(/[Ì-ͯ]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,""),ae=m?F(m):void 0,ne=c?F(c):void 0,ge={id:he,slug:A,titulo:v,subtitulo:b||void 0,projetoId:o||void 0,municipio:c,estado:h,tipoPPP:m||void 0,tipoSlug:ae,municipioSlug:ne,corPrimaria:_,corSecundaria:D,logoUrl:Y,paginas:se.paginas,status:"rascunho"},re=await fetch(`/api/escuta/formularios/${he}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(ge)});if(!re.ok){const oe=await re.json().catch(()=>({error:`HTTP ${re.status}`}));throw new Error(oe.error||`HTTP ${re.status}`)}je.success("Escuta criada como rascunho."),r(he)}catch(se){je.error(`Falha ao criar: ${se instanceof Error?se.message:"erro"}`)}finally{te(!1)}};return p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:840",className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4",onClick:t,children:p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:841",className:"bg-white rounded-2xl shadow-2xl max-w-2xl w-full max-h-[90vh] overflow-auto",onClick:se=>se.stopPropagation(),children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:845",className:"flex items-center justify-between px-6 py-4 border-b border-gray-200",children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:846",children:[p.jsx("h2",{"data-loc":"client/src/pages/EscutaSocial.tsx:847",className:"text-lg font-bold text-[#2D4A2D]",children:"Nova escuta social"}),p.jsx("p",{"data-loc":"client/src/pages/EscutaSocial.tsx:848",className:"text-xs text-gray-500",children:"Cria como rascunho â você publica manualmente depois."})]}),p.jsx("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:850",onClick:t,className:"text-gray-400 hover:text-gray-600",children:p.jsx(dn,{"data-loc":"client/src/pages/EscutaSocial.tsx:850",size:18})})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:853",className:"p-6 space-y-4",children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:855",children:[p.jsx("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:856",className:"text-[11px] font-black uppercase tracking-wider text-[#7A8C5E] block mb-1",children:"Projeto vinculado (opcional)"}),p.jsxs("select",{"data-loc":"client/src/pages/EscutaSocial.tsx:859",value:o,onChange:se=>s(se.target.value),className:"w-full text-sm px-3 py-2 border border-gray-300 rounded-lg outline-none focus:ring-2 focus:ring-[#2D4A2D]/30",children:[p.jsx("option",{"data-loc":"client/src/pages/EscutaSocial.tsx:864",value:"",children:"Sem vÃnculo"}),e.map(se=>p.jsxs("option",{"data-loc":"client/src/pages/EscutaSocial.tsx:866",value:se.id,children:[se.municipio,"/",se.estado," · ",Kr[se.tipoProjeto]?.label]},se.id))]})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:874",className:"grid grid-cols-6 gap-2",children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:875",className:"col-span-3",children:[p.jsx("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:876",className:"text-[11px] font-black uppercase tracking-wider text-[#7A8C5E] block mb-1",children:"MunicÃpio"}),p.jsx("input",{"data-loc":"client/src/pages/EscutaSocial.tsx:877",value:c,onChange:se=>u(se.target.value),className:"w-full text-sm px-3 py-2 border border-gray-300 rounded-lg"})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:879",className:"col-span-1",children:[p.jsx("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:880",className:"text-[11px] font-black uppercase tracking-wider text-[#7A8C5E] block mb-1",children:"UF"}),p.jsx("input",{"data-loc":"client/src/pages/EscutaSocial.tsx:881",value:h,onChange:se=>f(se.target.value.toUpperCase().slice(0,2)),maxLength:2,className:"w-full text-sm px-3 py-2 border border-gray-300 rounded-lg"})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:883",className:"col-span-2",children:[p.jsx("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:884",className:"text-[11px] font-black uppercase tracking-wider text-[#7A8C5E] block mb-1",children:"Tipo PPP"}),p.jsx("input",{"data-loc":"client/src/pages/EscutaSocial.tsx:885",value:m,onChange:se=>x(se.target.value),placeholder:"Ex: Iluminação",className:"w-full text-sm px-3 py-2 border border-gray-300 rounded-lg"})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:890",children:[p.jsxs("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:891",className:"text-[11px] font-black uppercase tracking-wider text-[#7A8C5E] block mb-1",children:["TÃtulo da escuta",K&&p.jsx("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:894",type:"button",onClick:()=>q(!1),className:"ml-2 text-[9px] font-normal text-blue-600 hover:underline normal-case tracking-normal",children:"â» resetar auto"})]}),p.jsx("input",{"data-loc":"client/src/pages/EscutaSocial.tsx:903",value:v,onCh
1191ange:se=>{y(se.target.value),q(!0)},className:"w-full text-sm px-3 py-2 border border-gray-300 rounded-lg"})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:909",children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:910",className:"flex items-center justify-between mb-1",children:[p.jsxs("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:911",className:"text-[11px] font-black uppercase tracking-wider text-[#7A8C5E]",children:["Chamada de participação ",p.jsx("span",{"data-loc":"client/src/pages/EscutaSocial.tsx:912",className:"text-gray-400 font-normal normal-case",children:'(aparece na seção "Por que ouvir você?" do formulário público)'})]}),p.jsx("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:914",type:"button",onClick:()=>S(`Este formulário faz parte da Escuta Social do projeto de estruturação da Parceria Público-Privada${m?` de ${m}`:""}${c?` de ${c}`:""}. Participe! Sua contribuição é muito importante.`),className:"text-[10px] text-blue-600 hover:underline",children:"⺠Usar sugestão padrão"})]}),p.jsx("textarea",{"data-loc":"client/src/pages/EscutaSocial.tsx:922",value:b,onChange:se=>S(se.target.value),rows:3,placeholder:`Ex: Este formulário faz parte da Escuta Social do projeto de estruturação da Parceria Público-Privada${m?` de ${m}`:" de [Tipo]"}${c?` de ${c}`:" de [MunicÃpio]"}. Participe! Sua contribuição é muito importante.`,className:"w-full text-sm px-3 py-2 border border-gray-300 rounded-lg resize-y"})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:932",children:[p.jsx("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:933",className:"text-[11px] font-black uppercase tracking-wider text-[#7A8C5E] block mb-1",children:"Link público"}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:934",className:"flex items-center gap-1 text-sm",children:[p.jsxs("span",{"data-loc":"client/src/pages/EscutaSocial.tsx:935",className:"text-gray-400",children:[window.location.origin,"/consulta/"]}),p.jsx("input",{"data-loc":"client/src/pages/EscutaSocial.tsx:936",value:A,onChange:se=>E(se.target.value.toLowerCase().replace(/[^a-z0-9-]/g,"-")),className:"flex-1 text-sm px-2 py-1.5 border border-gray-300 rounded-lg font-mono"})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:941",children:[p.jsx("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:942",className:"text-[11px] font-black uppercase tracking-wider text-[#7A8C5E] block mb-1",children:"Template de perguntas"}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:945",className:"grid grid-cols-2 gap-2",children:[[...C,KR].map(se=>{const he=j===se.id;return p.jsxs("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:949",onClick:()=>P(se.id),className:"text-left px-3 py-2 rounded-lg border transition-all",style:{borderColor:he?"#2D4A2D":"#E5E7EB",backgroundColor:he?"#2D4A2D08":"#fff",borderWidth:he?2:1},children:[p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:959",className:"text-xs font-bold text-[#2D4A2D]",children:se.nome}),p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:960",className:"text-[10px] text-gray-500 mt-0.5",children:se.descricao})]},se.id)}),p.jsxs("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:964",onClick:a,className:"text-left px-3 py-2 rounded-lg border border-dashed border-[#2D4A2D]/40 bg-white hover:bg-[#2D4A2D]/5 hover:border-[#2D4A2D] transition-all",title:"Sobe um Word com as perguntas â a IA extrai e salva como template reutilizável",children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:969",className:"text-xs font-bold text-[#2D4A2D] flex items-center gap-1.5",children:[p.jsx(Ll,{"data-loc":"client/src/pages/EscutaSocial.tsx:970",size:12})," Subir um .docx"]}),p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:972",className:"text-[10px] text-gray-500 mt-0.5",children:"Vira template com nome e versão, disponÃvel pra equipe toda"})]})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:980",children:[p.jsx("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:981",className:"text-[11px] font-black uppercase tracking-wider text-[#7A8C5E] block mb-1",children:"Identidade visual â logo + cores"}),p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:984",className:"grid grid-cols-4 gap-2 mb-2",children:Vu.map(se=>{const he=O===se.slug;return p.jsxs("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:988",onClick:()=>{k(se.slug),$("")},className:"flex flex-col items-center gap-1 p-2 rounded-lg border transition-all",style:{borderColor:he?"#2D4A2D":"#E5E7EB",borderWidth:he?2:1},title:`${se.municipio}/${se.estado}`,children:[p.jsx("img",{"data-loc":"client/src/pages/EscutaSocial.tsx:995",src:se.logoUrl,alt:se.municipio,className:"h-10 object-contain"}),p.jsx("span",{"data-loc":"client/src/pages/EscutaSocial.tsx:996",className:"text-[9px] text-gray-600 truncate w-full text-center",children:se.municipio})]},se.slug)})}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1001",className:"flex items-center gap-2 mb-2",children:[p.jsxs("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:1002",className:"flex items-center gap-1 text-xs px-3 py-1.5 rounded-lg border border-dashed border-[#7A8C5E]/50 text-[#2D4A2D] cursor-pointer hover:bg-[#2D4A2D]/5",children:[p.jsx(Ll,{"data-loc":"client/src/pages/EscutaSocial.tsx:1003",size:11}),B?"Trocar upload":"Upload de logo custom",p.jsx("input",{"data-loc":"client/src/pages/EscutaSocial.tsx:1005",type:"file",accept:"image/*",className:"hidden",onChange:se=>X(se.target.files?.[0]??null)})]}),p.jsxs("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:1007",onClick:U,disabled:z||!O&&!B,className:"flex items-center gap-1 px-3 py-1.5 rounded-lg bg-gradient-to-r from-purple-600 to-blue-600 text-white text-xs font-bold disabled:opacity-40 hover:opacity-90",children:[z?p.jsx(Wt,{"data-loc":"client/src/pages/EscutaSocial.tsx:1012",size:11,className:"animate-spin"}):p.jsx(Ou,{"data-loc":"client/src/pages/EscutaSocial.tsx:1012",size:11}),"Analisar cores da logo com IA"]})]}),B&&p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1017",className:"text-[10px] text-emerald-700 italic flex items-center gap-1 mb-2",children:[p.jsx(ta,{"data-loc":"client/src/pages/EscutaSocial.tsx:1018",size:10})," Logo custom carregada"]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1021",className:"grid grid-cols-2 gap-2",children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1022",className:"flex items-center gap-2",children:[p.jsx("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:1023",className:"text-[10px] text-gray-500 uppercase tracking-wider whitespace-nowrap",children:"Primária"}),p.jsx("input",{"data-loc":"client/src/pages/EscutaSocial.tsx:1024",type:"color",value:_,onCh
1191ange:se=>W(se.target.value),className:"w-8 h-8 rounded border border-gray-300"}),p.jsx("input",{"data-loc":"client/src/pages/EscutaSocial.tsx:1025",value:_,onChange:se=>W(se.target.value),className:"flex-1 text-xs px-2 py-1 border border-gray-300 rounded font-mono"})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1027",className:"flex items-center gap-2",children:[p.jsx("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:1028",className:"text-[10px] text-gray-500 uppercase tracking-wider whitespace-nowrap",children:"Secundária"}),p.jsx("input",{"data-loc":"client/src/pages/EscutaSocial.tsx:1029",type:"color",value:D,onChange:se=>J(se.target.value),className:"w-8 h-8 rounded border border-gray-300"}),p.jsx("input",{"data-loc":"client/src/pages/EscutaSocial.tsx:1030",value:D,onChange:se=>J(se.target.value),className:"flex-1 text-xs px-2 py-1 border border-gray-300 rounded font-mono"})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1034",className:"mt-3 p-3 rounded-lg",style:{backgroundColor:_,color:"#fff"},children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1035",className:"flex items-center gap-2",children:[(B||O&&Uf(O)?.logoUrl)&&p.jsx("img",{"data-loc":"client/src/pages/EscutaSocial.tsx:1037",src:B||Uf(O)?.logoUrl,alt:"preview",className:"h-8 bg-white/10 rounded p-1"}),p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1043",className:"text-sm font-bold flex-1 truncate",children:v||"Preview do cabeçalho"})]}),p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1045",className:"mt-2 h-1 rounded",style:{backgroundColor:D}})]})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1050",className:"px-6 py-4 border-t border-gray-200 flex items-center justify-end gap-2 bg-gray-50",children:[p.jsx("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:1051",onClick:t,className:"px-4 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100",children:"Cancelar"}),p.jsx("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:1052",onClick:ie,disabled:Z||!v||!A||!c||!h,className:"flex items-center gap-1.5 px-4 py-2 rounded-lg bg-[#2D4A2D] text-white text-sm font-bold hover:bg-[#2D4A2D]/90 disabled:opacity-40",children:Z?p.jsxs(p.Fragment,{children:[p.jsx(Wt,{"data-loc":"client/src/pages/EscutaSocial.tsx:1057",className:"animate-spin",size:13})," Criandoâ¦"]}):p.jsxs(p.Fragment,{children:[p.jsx(fa,{"data-loc":"client/src/pages/EscutaSocial.tsx:1057",size:13})," Criar como rascunho"]})})]})]})})}const RV={text:"Texto curto",textarea:"Texto longo",radio:"Escolha única",checkpoint:"Múltipla escolha",checkbox:"Múltipla escolha",likert:"Matriz (Likert)",scale:"Escala numérica"};function np(){return`q${Date.now().toString(36).slice(-6)}${Math.random().toString(36).slice(2,5)}`}function Wxe({formulario:e,onClose:t,onSalvo:r}){const[a,n]=L.useState(()=>JSON.parse(JSON.stringify(e.paginas??[]))),[i,o]=L.useState(0),[s,c]=L.useState(!1),[u,h]=L.useState(null),[f,m]=L.useState(!1),{templates:x,recarregar:v}=_V(),y=BF(Lx(py,{activationConstraint:{distance:5}}),Lx(fy,{coordinateGetter:l$})),b=a[i],S=()=>{const B={id:a.length+1,title:`Página ${a.length+1}`,questions:[]};n([...a,B]),o(a.length)},A=B=>{if(a.length===1){je.error("Precisa ter ao menos 1 página.");return}if(!confirm(`Remover página "${a[B].title}" e todas as ${a[B].questions.length} perguntas dela?`))return;const $=a.filter((_,W)=>W!==B);n($),o(Math.max(0,Math.min(i,$.length-1)))},E=B=>{n($=>$.map((_,W)=>W===i?{..._,...B}:_))},j=(B="text")=>{const $={id:np(),type:B,label:"Nova pergunta",required:!1,...B==="radio"||B==="checkbox"?{options:["Opção 1","Opção 2"]}:{},...B==="scale"?{scaleMin:0,scaleMax:10,scaleMinLabel:"Pouco",scaleMaxLabel:"Muito"}:{},...B==="likert"?{likertRows:[{id:`${np()}a`,label:"Item 1",options:["Muito","Pouco","Nada"]}]}:{}};E({questions:[...b.questions,$]}),h($.id)},P=(B,$)=>{E({questions:b.questions.map(_=>_.id===B?{..._,...$}:_)})},C=B=>{E({questions:b.questions.filter($=>$.id!==B)})},N=B=>{const $=new Set(a.flatMap(W=>W.questions.map(D=>D.id))),_=B.map(W=>{let D=W.id||np();for(;$.has(D);)D=np();return $.add(D),{...W,id:D}});E({questions:[...b.questions,..._]}),m(!1),je.success(`${_.length} pergunta${_.length!==1?"s":""} adicionada${_.length!==1?"s":""} à página "${b.title}".`)},O=B=>{const{active:$,over:_}=B;if(!_||$.id===_.id)return;const W=b.questions.findIndex(J=>J.id===$.id),D=b.questions.findIndex(J=>J.id===_.id);W<0||D<0||E({questions:gy(b.questions,W,D)})},k=async()=>{const B=DV(a);if(B.length>0){if(e.status==="publicado"){je.error(`Este formulário está PUBLICADO â não dá pra salvar com ${B.length} pergunta(s) incompleta(s): ${JC(B)}. Complete, ou volte pra rascunho antes.`,{duration:9e3});return}je.warning(`Salvo, mas ${B.length} pergunta(s) estão incompletas: ${JC(B)}. Enquanto estiverem assim, a publicação fica bloqueada.`,{duration:8e3})}c(!0);try{const $={id:e.id,slug:e.slug,titulo:e.titulo,subtitulo:e.subtitulo,projetoId:e.projeto_id,municipio:e.municipio,estado:e.estado,tipoPPP:e.tipo_ppp,tipoSlug:e.tipo_slug,municipioSlug:e.municipio_slug,corPrimaria:e.cor_primaria,corSecundaria:e.cor_secundaria,logoUrl:e.logo_url,paginas:a,status:e.status},_=await fetch(`/api/escuta/formularios/${e.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify($)});if(!_.ok){const W=await _.json().catch(()=>({error:`HTTP ${_.status}`}));throw new Error(W.error||`HTTP ${_.status}`)}je.success("Perguntas salvas."),r()}catch($){je.error(`Falha ao salvar: ${$ instanceof Error?$.message:"erro"}`)}finally{c(!1)}};return p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1227",className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4",onClick:t,children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1228",className:"bg-white rounded-2xl shadow-2xl w-full max-w-4xl max-h-[95vh] flex flex-col overflow-hidden",onClick:B=>B.stopPropagation(),children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1233",className:"flex items-center justify-between px-6 py-4 border-b border-gray-200 bg-gray-50",children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1234",children:[p.jsx("h2",{"data-loc":"client/src/pages/EscutaSocial.tsx:1235",className:"text-lg font-bold text-[#2D4A2D]",children:"Editor de perguntas"}),p.jsxs("p",{"data-loc":"client/src/pages/EscutaSocial.tsx:1236",className:"text-xs text-gray-500",children:[e.titulo," · ",a.reduce((B,$)=>B+$.questions.length,0)," perguntas em ",a.length," páginas"]})]}),p.jsx("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:1240",onClick:t,className:"text-gray-400 hover:text-gray-600",children:p.jsx(dn,{"data-loc":"client/src/pages/EscutaSocial.tsx:1240",size:18})})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1244",className:"px-6 py-3 bg-[#EDE9DF]/50 border-b border-[#2D4A2D]/10",children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1245",className:"flex items-center gap-2 mb-2",children:[p.jsx("span",{"data-loc":"client/src/pages/EscutaSocial.tsx:1246",className:"text-[10px] font-black uppercase tracking-wider text-[#2D4A2D]",children:"ð Usar um template pronto"}),p.jsx("span",{"data-loc":"client/src/pages/EscutaSocial.tsx:1249",className:"text-[10px] text-gray-500",children:"(sobrescreve as perguntas atuais)"})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1253",className:"flex flex-wrap gap-2",children:[x.map(B=>{const $=B.paginas.reduce((_,W)=>_+W.questions.length,0);return p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1257",className:"relative",children:[p.jsxs("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:1258",onClick:()=>{confirm(`Substituir TODAS as ${a.reduce((_,W)=>_+W.questions.length,0)} perguntas atuais pelas ${$} perguntas do template "${B.nome}"?`)&&(n(JSON.parse(JSON.stringify(B.paginas))),o(0),je.success(`Template "${B.nome}" aplicado. Clique Salvar tudo pra confirmar.`))},className:"flex items-center gap-2 px-4 py-2 rounded-lg bg-white border-2 border-[#2D4A2D]/30 hover:border-[#2D4A2D] hover:bg-[#2D4A2D]/5 transition-all text-left w-full",children:[p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1267",className:"w-8 h-8 rounded-lg bg-[#2D4A2D] text-white flex items-center justify-center text-xs font-black shrink-0",children:B.paginas.length}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1270",children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1271",className:"text-xs font-bold text-[#2D4A2D] leading-tight",children:[B.nome,B.remoto&&p.jsx("span",{"data-loc":"client/src/pages/EscutaSocial.tsx:1274",className:"ml-1.5 text-[9px] font-black uppercase tracking-wider text-[#7A8C5E] bg-[#EDE9DF] px-1.5 py-0.5 rounded",children:"subido"})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1279",className:"text-[10px] text-gray-500",children:[$," perguntas · ",B.paginas.length," páginas"]})]})]}),B.remoto&&p.jsx("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:1283",title:"Apagar este template subido",onClick:async()=>
1191{if(confirm(`Apagar o template "${B.nome}"? As escutas já criadas com ele não são afetadas.`))try{await Hxe(B.id),await v(),je.success("Template apagado.")}catch(_){je.error(`Falha ao apagar: ${_ instanceof Error?_.message:"erro"}`)}},className:"absolute -top-1.5 -right-1.5 w-5 h-5 rounded-full bg-white border border-gray-300 text-gray-400 hover:text-red-600 hover:border-red-300 flex items-center justify-center",children:p.jsx(dn,{"data-loc":"client/src/pages/EscutaSocial.tsx:1297",size:11})})]},B.id)}),p.jsxs("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:1303",onClick:()=>{confirm("Zerar todas as perguntas e começar do zero?")&&(n([{id:1,title:"Página 1",questions:[]}]),o(0),je.success("Editor zerado."))},className:"flex items-center gap-2 px-4 py-2 rounded-lg bg-white border-2 border-dashed border-gray-300 hover:border-gray-500 hover:bg-gray-50 transition-all",children:[p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1312",className:"w-8 h-8 rounded-lg bg-gray-200 text-gray-600 flex items-center justify-center text-xs font-black shrink-0",children:"â»"}),p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1315",className:"text-xs font-bold text-gray-600",children:"Começar do zero"})]})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1321",className:"flex items-stretch border-b border-gray-200 bg-gray-50",children:[p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1322",className:"flex-1 flex items-center gap-1 px-4 py-2 overflow-x-auto min-w-0",children:a.map((B,$)=>p.jsxs("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:1324",onClick:()=>o($),className:"flex items-center gap-1 px-3 py-1.5 rounded-lg text-xs whitespace-nowrap transition-colors shrink-0",style:{backgroundColor:i===$?"#2D4A2D":"#fff",color:i===$?"#fff":"#2D4A2D",border:`1px solid ${i===$?"#2D4A2D":"#E5E7EB"}`},children:[p.jsxs("span",{"data-loc":"client/src/pages/EscutaSocial.tsx:1334",className:"font-bold",children:[$+1,"."]})," ",B.title,p.jsxs("span",{"data-loc":"client/src/pages/EscutaSocial.tsx:1335",className:"text-[10px] opacity-70",children:["(",B.questions.length,")"]})]},B.id))}),p.jsxs("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:1339",onClick:S,className:"flex items-center gap-1 px-4 py-2 text-xs font-bold text-[#2D4A2D] border-l border-gray-200 bg-[#2D4A2D]/5 hover:bg-[#2D4A2D]/10 shrink-0 whitespace-nowrap",title:"Adicionar nova página ao formulário",children:[p.jsx(fa,{"data-loc":"client/src/pages/EscutaSocial.tsx:1344",size:12})," Nova página"]})]}),p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1349",className:"flex-1 overflow-auto p-6 space-y-4",children:b&&p.jsxs(p.Fragment,{children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1352",className:"flex items-center gap-2",children:[p.jsx("input",{"data-loc":"client/src/pages/EscutaSocial.tsx:1353",value:b.title,onChange:B=>E({title:B.target.value}),className:"flex-1 text-lg font-bold text-[#2D4A2D] px-3 py-2 border border-transparent hover:border-gray-200 rounded-lg focus:border-[#2D4A2D]/30 focus:outline-none",placeholder:"TÃtulo da página"}),p.jsx("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:1359",onClick:()=>A(i),className:"p-2 rounded-lg text-red-500 hover:bg-red-50",title:"Remover página",children:p.jsx(ei,{"data-loc":"client/src/pages/EscutaSocial.tsx:1364",size:14})})]}),b.questions.length===0&&p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1369",className:"border-2 border-dashed border-[#2D4A2D]/25 rounded-xl p-6 bg-[#EDE9DF]/30 space-y-5",children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1370",className:"text-center",children:[p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1371",className:"text-lg font-bold text-[#2D4A2D] mb-1",children:"Página vazia"}),p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1372",className:"text-xs text-gray-600",children:"Como você prefere começar?"})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1376",children:[p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1377",className:"text-[10px] font-black uppercase tracking-wider text-[#7A8C5E] mb-2",children:"Opção 1 â Usar um template pronto"}),p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1380",className:"grid gap-2",children:x.map(B=>{const $=B.paginas.reduce((_,W)=>_+W.questions.length,0);return p.jsxs("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:1384",onClick:()=>{confirm(`Substituir esta página vazia pelas ${B.paginas.length} páginas (${$} perguntas) do template "${B.nome}"?`)&&(n(JSON.parse(JSON.stringify(B.paginas))),o(0),je.success(`Template "${B.nome}" aplicado.`))},className:"text-left bg-white hover:bg-[#2D4A2D]/5 border border-[#2D4A2D]/15 rounded-lg p-3 transition-colors",children:[p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1394",className:"text-sm font-bold text-[#2D4A2D]",children:B.nome}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1395",className:"text-[11px] text-gray-500 mt-0.5",children:[B.paginas.length," páginas · ",$," perguntas"]}),B.descricao&&p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1399",className:"text-[10px] text-gray-500 mt-1 line-clamp-2",children:B.descricao})]},B.id)})})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1408",children:[p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1409",className:"text-[10px] font-black uppercase tracking-wider text-[#7A8C5E] mb-2",children:"Opção 2 â Colar perguntas em bloco (IA extrai)"}),p.jsxs("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:1412",onClick:()=>m(!0),className:"w-full text-left bg-white hover:bg-[#2D4A2D]/5 border border-dashed border-[#2D4A2D]/40 rounded-lg p-3 transition-colors flex items-center gap-3",children:[p.jsx(Ou,{"data-loc":"client/src/pages/EscutaSocial.tsx:1416",size:18,className:"text-[#2D4A2D] shrink-0"}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1417",className:"flex-1",children:[p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1418",className:"text-sm font-bold text-[#2D4A2D]",children:"Colar texto com várias perguntas"}),p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1419",className:"text-[11px] text-gray-500 mt-0.5",children:"Cole texto corrido com N perguntas â IA extrai e adiciona todas de uma vez"})]})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1427",children:[p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1428",className:"text-[10px] font-black uppercase tracking-wider text-[#7A8C5E] mb-2",children:"Opção 3 â Uma por uma manualmente"}),p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1431",className:"text-[11px] text-gray-500",children:"Use os botões abaixo pra adicionar cada pergunta individualmente."})]})]}),p.jsx(e$,{"data-loc":"client/src/pages/EscutaSocial.tsx:1438",sensors:y,collisionDetection:$F,onDragEnd:O,children:p.jsx(i$,{"data-loc":"client/src/pages/EscutaSocial.tsx:1439",items:b.questions.map(B=>B.id),strategy:r$,children:b.questions.map((B,$)=>p.jsx(Yxe,{"data-loc":"client/src/pages/EscutaSocial.tsx:1441",pergunta:B,numero:$+1,expandido:u===B.id,onToggle:()=>h(u===B.id?null:B.id),onChange:_=>P(B.id,_),onRemove:()=>C(B.id)},B.id))})}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1455",className:"pt-4 border-t border-gray-200",children:[p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1456",className:"text-[10px] font-bold uppercase tracking-wider text-gray-500 mb-2",children:"Adicionar pergunta"}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1459",className:"flex flex-wrap gap-2",children:[["text","textarea","radio","checkbox","scale","likert"].map(B=>p.jsxs("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:14
119161",onClick:()=>j(B),className:"flex items-center gap-1.5 px-3 py-1.5 rounded-lg border border-[#2D4A2D]/20 text-xs text-[#2D4A2D] hover:bg-[#2D4A2D]/5",children:[p.jsx(fa,{"data-loc":"client/src/pages/EscutaSocial.tsx:1466",size:11})," ",RV[B]]},B)),p.jsxs("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:1469",onClick:()=>m(!0),className:"flex items-center gap-1.5 px-3 py-1.5 rounded-lg bg-[#2D4A2D] text-white text-xs font-bold hover:bg-[#2D4A2D]/90",title:"Cola texto corrido com várias perguntas e a IA extrai todas de uma vez",children:[p.jsx(Ou,{"data-loc":"client/src/pages/EscutaSocial.tsx:1474",size:11})," Adicionar em bloco (IA)"]})]})]})]})}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1483",className:"flex items-center justify-between px-6 py-4 border-t border-gray-200 bg-gray-50",children:[p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1484",className:"text-xs text-gray-500",children:'Alterações não são salvas até clicar "Salvar tudo".'}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1487",className:"flex items-center gap-2",children:[p.jsx("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:1488",onClick:t,className:"px-4 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100",children:"Cancelar"}),p.jsx("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:1491",onClick:k,disabled:s,className:"flex items-center gap-1.5 px-4 py-2 rounded-lg bg-[#2D4A2D] text-white text-sm font-bold hover:bg-[#2D4A2D]/90 disabled:opacity-40",children:s?p.jsxs(p.Fragment,{children:[p.jsx(Wt,{"data-loc":"client/src/pages/EscutaSocial.tsx:1496",className:"animate-spin",size:13})," Salvandoâ¦"]}):p.jsxs(p.Fragment,{children:[p.jsx(aN,{"data-loc":"client/src/pages/EscutaSocial.tsx:1496",size:13})," Salvar tudo"]})})]})]})]}),f&&p.jsx(Xxe,{"data-loc":"client/src/pages/EscutaSocial.tsx:1504",paginaTitulo:b?.title??"",onClose:()=>m(!1),onAdicionar:N})]})}function Xxe({paginaTitulo:e,onClose:t,onAdicionar:r}){const[a,n]=L.useState(""),[i,o]=L.useState(!1),[s,c]=L.useState(null),[u,h]=L.useState(null),f=async()=>{if(a.trim().length<10){je.error("Cole pelo menos algumas perguntas antes.");return}o(!0),h(null),c(null);try{const m=await fetch("/api/escuta/extrair-perguntas-bloco",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({texto:a})});if(!m.ok){const y=await m.json().catch(()=>({error:`HTTP ${m.status}`}));throw new Error(y.error||`HTTP ${m.status}`)}const v=(await m.json()).perguntas??[];if(v.length===0)throw new Error("IA não identificou nenhuma pergunta no texto.");c(v),je.success(`${v.length} pergunta${v.length!==1?"s":""} identificada${v.length!==1?"s":""} pela IA.`)}catch(m){const x=m instanceof Error?m.message:"erro";h(x),je.error(x)}finally{o(!1)}};return p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1560",className:"fixed inset-0 bg-black/60 flex items-center justify-center z-[60] p-4",onClick:t,children:p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1561",className:"bg-white rounded-2xl shadow-2xl max-w-3xl w-full max-h-[95vh] flex flex-col overflow-hidden",onClick:m=>m.stopPropagation(),children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1562",className:"flex items-center justify-between px-6 py-4 border-b border-gray-200 bg-gray-50",children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1563",children:[p.jsx("h2",{"data-loc":"client/src/pages/EscutaSocial.tsx:1564",className:"text-lg font-bold text-[#2D4A2D]",children:"Adicionar perguntas em bloco"}),p.jsxs("p",{"data-loc":"client/src/pages/EscutaSocial.tsx:1565",className:"text-xs text-gray-500",children:["Cole texto corrido com várias perguntas â a IA extrai e adiciona todas à página ",p.jsxs("strong",{"data-loc":"client/src/pages/EscutaSocial.tsx:1565",children:['"',e,'"']}),"."]})]}),p.jsx("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:1567",onClick:t,className:"text-gray-400 hover:text-gray-600",children:p.jsx(dn,{"data-loc":"client/src/pages/EscutaSocial.tsx:1567",size:18})})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1570",className:"p-6 space-y-4 overflow-auto flex-1",children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1571",children:[p.jsx("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:1572",className:"text-[11px] font-black uppercase tracking-wider text-[#7A8C5E] block mb-1",children:"Cole o texto com as perguntas"}),p.jsx("textarea",{"data-loc":"client/src/pages/EscutaSocial.tsx:1575",value:a,onChange:m=>n(m.target.value),rows:12,placeholder:`Exemplo: 1192 11931. Qual sua faixa etária? (18-30, 31-45, 46-60, +60) 11942. Você utiliza os serviços digitais da prefeitura? Sim / Não 11953. De 0 a 10, avalie a segurança pública do seu bairro. 11964. Marque todas as opções que se aplicam: Wi-Fi público, Aplicativo da Prefeitura, Câmeras de segurança, Nenhuma
11975. Deixe suas sugestões abertas sobre iluminação (opcional).`,className:"w-full text-sm px-3 py-2 border border-gray-300 rounded-lg resize-y font-mono",disabled:i}),p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1583",className:"text-[10px] text-gray-500 mt-1",children:"Pode ser numerado (1. 2. 3.), com hÃfen, com opções entre parênteses ou barras. A IA identifica o tipo (texto, escolha única, múltipla, escala 0-10, etc)."})]}),u&&p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1589",className:"text-xs text-red-700 bg-red-50 border border-red-200 rounded p-3",children:u}),s&&s.length>0&&p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1593",className:"border border-emerald-200 rounded-xl overflow-hidden",children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1594",className:"px-4 py-2 bg-emerald-50 border-b border-emerald-200 text-xs text-emerald-800 flex items-center gap-2",children:[p.jsx(ta,{"data-loc":"client/src/pages/EscutaSocial.tsx:1595",size:13})," IA identificou ",p.jsx("strong",{"data-loc":"client/src/pages/EscutaSocial.tsx:1595",children:s.length})," perguntas. Confira e adicione."]}),p.jsx("ol",{"data-loc":"client/src/pages/EscutaSocial.tsx:1597",className:"p-4 space-y-2 max-h-72 overflow-auto",children:s.map((m,x)=>p.jsxs("li",{"data-loc":"client/src/pages/EscutaSocial.tsx:1599",className:"text-xs text-gray-700 border-l-2 border-emerald-400 pl-3",children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1600",className:"flex items-center gap-2",children:[p.jsx("span",{"data-loc":"client/src/pages/EscutaSocial.tsx:1601",className:"text-[9px] font-mono uppercase bg-gray-100 px-1.5 py-0.5 rounded",children:m.type}),p.jsx("span",{"data-loc":"client/src/pages/EscutaSocial.tsx:1602",className:"font-medium",children:m.label}),m.required&&p.jsx("span",{"data-loc":"client/src/pages/EscutaSocial.tsx:1603",className:"text-red-500 text-[10px]",children:"*"})]}),m.options&&m.options.length>0&&p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1606",className:"text-[10px] text-gray-500 mt-1",children:["Opções: ",m.options.join(" | ")]}),m.type==="scale"&&p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1609",className:"text-[10px] text-gray-500 mt-1",children:["Escala ",m.scaleMin??0,"â",m.scaleMax??10,m.scaleMinLabel&&` (${m.scaleMinLabel} â ${m.scaleMaxLabel??""})`]})]},x))})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1621",className:"px-6 py-4 border-t border-gray-200 flex items-center justify-between gap-2 bg-gray-50",children:[p.jsx("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:1622",onClick:t,className:"px-4 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100",children:"Cancelar"}),p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1625",className:"flex items-center gap-2",children:s?p.jsxs(p.Fragment,{children:[p.jsx("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:1636",onClick:()=>{c(null)},className:"px-4 py-2 rounded-lg text-sm text-[#2D4A2D] border border-[#2D4A2D]/25 hover:bg-[#2D4A2D]/5",children:"⺠Re-extrair"}),p.jsxs("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:1642",onClick:()=>r(s),className:"flex items-center gap-1.5 px-4 py-2 rounded-lg bg-[#2D4A2D] text-white text-sm font-bold hover:bg-[#2D4A2D]/90",children:[p.jsx(fa,{"data-loc":"client/src/pages/EscutaSocial.tsx:1646",size:13})," Adicionar ",s.length," à página"]})]}):p.jsx("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:1627",onClick:f,disabled:i||a.trim().length<10,className:"flex items-center gap-1.5 px-4 py-2 rounded-lg bg-[#2D4A2D] text-white text-sm font-bold hover:bg-[#2D4A2D]/90 disabled:opacity-40",children:i?p.jsxs(p.Fragment,{children:[p.jsx(Wt,{"data-loc":"client/src/pages/EscutaSocial.tsx:1632",className:"animate-spin",size:13})," Extraindo com IAâ¦"]}):p.jsxs(p.Fragment,{children:[p.jsx(Ou,{"data-loc":"client/src/pages/EscutaSocial.tsx:1632",size:13})," Extrair perguntas"]})})})]})]})})}function Yxe({pergunta:e,numero:t,expandido:r,onToggle:a,onChange:n,onRemove:i}){const{attributes:o,listeners:s,setNodeRef:c,transform:u,transition:h,isDragging:f}=s$({id:e.id}),m={transform:Mu.Transform.toString(u),transition:h,opacity:f?.4:1,zIndex:f?10:void 0},x=e;return p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1680",ref:c,style:m,className:`bg-white rounded-xl border ${r?"border-[#2D4A2D]/30 shadow-sm":"border-gray-200"}`,children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1681",className:"px-3 py-2 flex items-center gap-2",children:[p.jsx("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:1682",...s,...o,className:"p-1 text-gray-400 hover:text-gray-600 cursor-grab active:cursor-grabbing",title:"Arrastar",children:p.jsx(Yz,{"data-loc":"client/src/pages/EscutaSocial.tsx:1683",size:14})}),p.jsxs("span",{"data-loc":"client/src/pages/EscutaSocial.tsx:1685",className:"text-xs font-bold text-gray-400 w-6",children:[t,"."]}),p.jsx("span",{"data-loc":"client/src/pages/EscutaSocial.tsx:1686",className:"text-[10px] px-1.5 py-0.5 rounded font-bold uppercase tracking-wider bg-[#2D4A2D]/10 text-[#2D4A2D]",children:RV[x.type]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1689",className:"flex-1 min-w-0 text-sm text-gray-800 truncate",onClick:a,style:{cursor:"pointer"},children:[x.label||p.jsx("span",{"data-loc":"client/src/pages/EscutaSocial.tsx:1690",className:"italic text-gray-400",children:"Sem tÃtulo"}),x.required&&p.jsx("span",{"data-loc":"client/src/pages/EscutaSocial.tsx:1691",className:"text-red-500 ml-1",children:"*"})]}),p.jsx("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:1693",onClick:a,className:"p-1 text-gray-400 hover:text-gray-600",title:r?"Recolher":"Editar",children:r?p.jsx(Sd,{"data-loc":"client/src/pages/EscutaSocial.tsx:1694",size:14}):p.jsx(Xl,{"data-loc":"client/src/pages/EscutaSocial.tsx:1694",size:14})}),p.jsx("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:1696",onClick:i,className:"p-1 text-red-500 hover:bg-red-50 rounded",title:"Remover pergunta",children:p.jsx(ei,{"data-loc":"client/src/pages/EscutaSocial.tsx:1697",size:12})})]}),r&&p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1702",className:"px-4 pb-4 pt-1 space-y-3 border-t border-gray-100",children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1703",children:[p.jsx("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:1704",className:"text-[10px] font-bold uppercase tracking-wider text-gray-500 block mb-1",children:"Texto da pergunta"}),p.jsx("textarea",{"data-loc":"client/src/pages/EscutaSocial.tsx:1707",value:x.label,onChange:v=>n({label:v.target.value}),rows:2,className:"w-full text-sm px-3 py-2 border border-gray-300 rounded-lg resize-y focus:outline-none focus:ring-2 focus:ring-[#2D4A2D]/30"})]}),(x.type==="text"||x.type==="textarea")&&p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1716",children:[p.jsx("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:1717",className:"text-[10px] font-bold uppercase tracking-wider text-gray-500 block mb-1",children:"Placeholder (opcional)"}),p.jsx("input",{"data-loc":"client/src/pages/EscutaSocial.tsx:1720",value:x.placeholder??"",onChange:v=>n({placeholder:v.target.value}),className:"w-full text-sm px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-[#2D4A2D]/30"})]}),(x.type==="radio"||x.type==="checkbox")&&p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1729",children:[p.jsxs("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:1730",className:"text-[10px] font-bold uppercase tracking-wider text-gray-500 block mb-1",children:["Opções (",x.options?.length??0,")"]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1733",className:"space-y-1",children:[(x.options??[]).map((v,y)=>p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1735",className:"flex items-center gap-2",children:[p.jsxs("span",{"data-loc":"client/src/pages/EscutaSocial.tsx:1736",className:"text-xs text-gray-400 w-4",children:[y+1,"."]}),p.jsx("input",{"data-loc":"client/src/pages/EscutaSocial.tsx:1737",value:v,onCh
1197ange:b=>{const S=[...x.options??[]];S[y]=b.target.value,n({options:S})},className:"flex-1 text-sm px-2 py-1 border border-gray-300 rounded"}),p.jsx("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:1746",onClick:()=>n({options:(x.options??[]).filter((b,S)=>S!==y)}),className:"text-red-500 p-1 hover:bg-red-50 rounded",children:p.jsx(ei,{"data-loc":"client/src/pages/EscutaSocial.tsx:1750",size:11})})]},y)),p.jsx("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:1754",onClick:()=>n({options:[...x.options??[],`Opção ${(x.options?.length??0)+1}`]}),className:"text-xs text-[#2D4A2D] hover:underline",children:"+ Adicionar opção"})]})]}),x.type==="scale"&&p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1765",className:"grid grid-cols-2 gap-3",children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1766",children:[p.jsx("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:1767",className:"text-[10px] font-bold uppercase tracking-wider text-gray-500 block mb-1",children:"MÃn"}),p.jsx("input",{"data-loc":"client/src/pages/EscutaSocial.tsx:1768",type:"number",value:x.scaleMin??0,onChange:v=>n({scaleMin:Number(v.target.value)}),className:"w-full text-sm px-2 py-1 border border-gray-300 rounded"})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1770",children:[p.jsx("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:1771",className:"text-[10px] font-bold uppercase tracking-wider text-gray-500 block mb-1",children:"Máx"}),p.jsx("input",{"data-loc":"client/src/pages/EscutaSocial.tsx:1772",type:"number",value:x.scaleMax??10,onChange:v=>n({scaleMax:Number(v.target.value)}),className:"w-full text-sm px-2 py-1 border border-gray-300 rounded"})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1774",children:[p.jsx("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:1775",className:"text-[10px] font-bold uppercase tracking-wider text-gray-500 block mb-1",children:"Rótulo MÃn"}),p.jsx("input",{"data-loc":"client/src/pages/EscutaSocial.tsx:1776",value:x.scaleMinLabel??"",onChange:v=>n({scaleMinLabel:v.target.value}),className:"w-full text-sm px-2 py-1 border border-gray-300 rounded",placeholder:"Pouco"})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1778",children:[p.jsx("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:1779",className:"text-[10px] font-bold uppercase tracking-wider text-gray-500 block mb-1",children:"Rótulo Máx"}),p.jsx("input",{"data-loc":"client/src/pages/EscutaSocial.tsx:1780",value:x.scaleMaxLabel??"",onChange:v=>n({scaleMaxLabel:v.target.value}),className:"w-full text-sm px-2 py-1 border border-gray-300 rounded",placeholder:"Muito"})]})]}),x.type==="likert"&&p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1786",children:[p.jsx("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:1787",className:"text-[10px] font-bold uppercase tracking-wider text-gray-500 block mb-1",children:"Linhas da matriz"}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1790",className:"space-y-2",children:[(x.likertRows??[]).map((v,y)=>p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1792",className:"p-2 bg-gray-50 rounded border border-gray-200",children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1793",className:"flex items-center gap-2 mb-2",children:[p.jsxs("span",{"data-loc":"client/src/pages/EscutaSocial.tsx:1794",className:"text-xs text-gray-400 w-4",children:[y+1,"."]}),p.jsx("input",{"data-loc":"client/src/pages/EscutaSocial.tsx:1795",value:v.label,onChange:b=>{const S=[...x.likertRows??[]];S[y]={...v,label:b.target.value},n({likertRows:S})},placeholder:"Item",className:"flex-1 text-sm px-2 py-1 border border-gray-300 rounded"}),p.jsx("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:1805",onClick:()=>n({likertRows:(x.likertRows??[]).filter((b,S)=>S!==y)}),className:"text-red-500 p-1 hover:bg-red-100 rounded",children:p.jsx(ei,{"data-loc":"client/src/pages/EscutaSocial.tsx:1809",size:11})})]}),p.jsx("input",{"data-loc":"client/src/pages/EscutaSocial.tsx:1812",value:v.options.join(" | "),onChange:b=>{const S=b.target.value.split("|").map(E=>
1197E.trim()).filter(Boolean),A=[...x.likertRows??[]];A[y]={...v,options:S},n({likertRows:A})},placeholder:"Opções separadas por | (ex: Muito | Pouco | Nada)",className:"w-full text-xs px-2 py-1 border border-gray-300 rounded"})]},v.id)),p.jsx("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:1825",onClick:()=>n({likertRows:[...x.likertRows??[],{id:`${np()}row`,label:`Item ${(x.likertRows?.length??0)+1}`,options:x.likertRows?.[0]?.options??["Muito","Pouco","Nada"]}]}),className:"text-xs text-[#2D4A2D] hover:underline",children:"+ Adicionar linha"})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1841",className:"flex items-center gap-2 pt-2 border-t border-gray-100",children:[p.jsxs("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:1842",className:"flex items-center gap-1.5 text-xs text-gray-700 cursor-pointer",children:[p.jsx("input",{"data-loc":"client/src/pages/EscutaSocial.tsx:1843",type:"checkbox",checked:x.required,onChange:v=>n({required:v.target.checked}),className:"accent-[#2D4A2D]"}),"Resposta obrigatória"]}),p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1851",className:"flex-1"}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1852",className:"text-[10px] text-gray-400 font-mono",children:["id: ",x.id]})]})]})]})}function Zxe({formulario:e,onClose:t,onSalvo:r}){const[a,n]=L.useState(e.titulo),[i,o]=L.useState(e.subtitulo??""),[s,c]=L.useState(e.municipio??""),[u,h]=L.useState(e.estado??""),[f,m]=L.useState(e.tipo_ppp??""),[x,v]=L.useState(e.cor_primaria??"#2D4A2D"),[y,b]=L.useState(e.cor_secundaria??"#7A8C5E"),[S,A]=L.useState(e.logo_url??""),[E,j]=L.useState(""),[P,C]=L.useState(""),[N,O]=L.useState(!1),[k,B]=L.useState(!1),$=K=>{if(!K)return"";const q=new Date(K);if(isNaN(q.getTime()))return"";const X=U=>String(U).padStart(2,"0");return`${q.getFullYear()}-${X(q.getMonth()+1)}-${X(q.getDate())}T${X(q.getHours())}:${X(q.getMinutes())}`},[_,W]=L.useState($(e.data_inicio??e.dataInicio??null)),[D,J]=L.useState($(e.data_fim??e.dataFim??null)),z=K=>K.normalize("NFD").replace(/[Ì-ͯ]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,""),V=K=>{if(!K)return;const q=new FileReader;q.onload=()=>{j(String(q.result)),A(String(q.result)),C("")},q.readAsDataURL(K)},Z=async()=>{if(!S&&!E){je.error("Escolha ou faça upload de uma logo antes de analisar.");return}O(!0);try{const q={municipioSlug:P||(s?z(s)+"-custom":"custom")};E?q.logoDataUrl=E:q.logoUrl=new URL(S,window.location.origin).toString();const X=await fetch("/api/escuta/analisar-logo",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(q)});if(!X.ok){const ie=await X.json().catch(()=>({error:`HTTP ${X.status}`}));throw new Error(ie.error||`HTTP ${X.status}`)}const U=await X.json();v(U.cor_primaria),b(U.cor_secundaria),je.success(`Paleta extraÃda pela IA${U.fromCache?" (cache)":""}`)}catch(K){je.error(`Falha ao analisar: ${K instanceof Error?K.message:"erro"}`)}finally{O(!1)}},te=async()=>{if(!a.trim()||!s.trim()||!u.trim()){je.error("Preencha ao menos tÃtulo, municÃpio e UF.");return}B(!0);try{const K={id:e.id,slug:e.slug,titulo:a.trim(),subtitulo:i.trim()||void 0,projetoId:e.projeto_id,municipio:s.trim(),estado:u.trim(),tipoPPP:f.trim()||void 0,tipoSlug:f?z(f):void 0,municipioSlug:s?z(s):void 0,corPrimaria:x,corSecundaria:y,logoUrl:S||void 0,paginas:e.paginas,status:e.status,dataInicio:_?new Date(_).toISOString():null,dataFim:D?new Date(D).toISOString():null},q=await fetch(`/api/escuta/formularios/${e.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(K)});if(!q.ok){const X=await q.json().catch(()=>({error:`HTTP ${q.status}`}));throw new Error(X.error||`HTTP ${q.status}`)}je.success("Dados atualizados. Link público pode ter mudado."),r()}catch(K){je.error(`Falha: ${K instanceof Error?K.message:"erro"}`)}finally{B(!1)}};return p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1985",className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4",onClick:t,children:p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1986",className:"bg-white rounded-2xl shadow-2xl max-w-2xl w-full max-h-[95vh] overflow-auto",onClick:K=>K.stopPropagation(),children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1987",className:"flex items-center justify-between px-6 py-4 border-b border-gray-200 bg-gray-50",children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1988",children:[p.jsx("h2",{"data-loc":"client/src/pages/EscutaSocial.tsx:1989",className:"text-lg font-bold text-[#2D4A2D]",children:"Editar dados básicos"}),p.jsx("p",{"data-loc":"client/src/pages/EscutaSocial.tsx:1990",className:"text-xs text-gray-500",children:"TÃtulo, subtÃtulo, municÃpio, tipo de PPP, logo e cores."})]}),p.jsx("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:1992",onClick:t,className:"text-gray-400 hover:text-gray-600",children:p.jsx(dn,{"data-loc":"client/src/pages/EscutaSocial.tsx:1992",size:18})})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1995",className:"p-6 space-y-4",children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1996",className:"grid grid-cols-6 gap-2",children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:1997",className:"col-span-3",children:[p.jsx("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:1998",className:"text-[11px] font-black uppercase tracking-wider text-[#7A8C5E] block mb-1",children:"MunicÃpio"}),p.jsx("input",{"data-loc":"client/src/pages/EscutaSocial.tsx:1999",value:s,onChange:K=>c(K.target.value),className:"w-full text-sm px-3 py-2 border border-gray-300 rounded-lg"})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2001",className:"col-span-1",children:[p.jsx("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:2002",className:"text-[11px] font-black uppercase tracking-wider text-[#7A8C5E] block mb-1",children:"UF"}),p.jsx("input",{"data-loc":"client/src/pages/EscutaSocial.tsx:2003",value:u,onChange:K=>h(K.target.value.toUpperCase().slice(0,2)),maxLength:2,className:"w-full text-sm px-3 py-2 border border-gray-300 rounded-lg"})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2005",className:"col-span-2",children:[p.jsx("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:2006",className:"text-[11px] font-black uppercase tracking-wider text-[#7A8C5E] block mb-1",children:"Tipo PPP"}),p.jsx("input",{"data-loc":"client/src/pages/EscutaSocial.tsx:2007",value:f,onChange:K=>m(K.target.value),placeholder:"Ex: Iluminação",className:"w-full text-sm px-3 py-2 border border-gray-300 rounded-lg"})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2011",children:[p.jsx("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:2012",className:"text-[11px] font-black uppercase tracking-wider text-[#7A8C5E] block mb-1",children:"TÃtulo da escuta"}),p.jsx("input",{"data-loc":"client/src/pages/EscutaSocial.tsx:2013",value:a,onChange:K=>n(K.target.value),className:"w-full text-sm px-3 py-2 border border-gray-300 rounded-lg"}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2014",className:"text-[10px] text-gray-500 mt-1",children:["ð¡ Sugerido: ",p.jsxs("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:2015",type:"button",onClick:()=>n(`Escuta Social â ${f} de ${s}`),className:"text-blue-600 hover:underline",children:["Escuta Social â ",f," de ",s]})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2019",children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2020",className:"flex items-center justify-between mb-1",children:[p.jsxs("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:2021",className:"text-[11px] font-black uppercase tracking-wider text-[#7A8C5E]",children:["Chamada de participação ",p.jsx("span",{"data-loc":"client/src/pages/EscutaSocial.tsx:2022",className:"text-gray-400 font-normal normal-case",children:'(aparece na seção "Por que ouvir você?" do formulário público)'})]}),p.jsx("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:2024",type:"button",onClick:()=>o(`Este formulário faz parte da Escuta Social do projeto de estruturação da Parceria Público-Privada${f?` de ${f}`:""}${s?` de ${s}`:""}. Participe! Sua contribuição é muito importante.`),className:"text-[10px] text-blue-600 hover:underline",children:"⺠Usar sugestão padrão"})]}),p.jsx("textarea",{"data-loc":"client/src/pages/EscutaSocial.tsx:2032",value:i,onChange:K=>o(K.target.value),rows:3,placeholder:`Ex: Este formulário faz parte da Escuta Social do projeto de estruturação da Parceria Público-Privada${f?` de ${f}`:" de [Tipo]"}${s?` de ${s}`:" de [MunicÃpio]"}. Participe! Sua contribuição é muito importante.`,className:"w-full text-sm px-3 py-2 border border-gray-300 rounded-lg resize-y"})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2042",children:[p.jsx("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:2043",className:"text-[11px] font-black uppercase tracking-wider text-[#7A8C5E] block mb-1",children:"Identidade visual"}),p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2044",className:"grid grid-cols-4 gap-2 mb-2",children:Vu.map(K=>{const q=S===K.logoUrl;return p.jsxs("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:2048",onClick:()=>{A(K.logoUrl),C(K.slug),j(""),v(K.paleta.primaria),b(K.paleta.secundaria)},className:"flex flex-col items-center gap-1 p-2 rounded-lg border transition-all",style:{borderColor:q?"#2D4A2D":"#E5E7EB",borderWidth:q?2:1},children:[p.jsx("img",{"data-loc":"client/src/pages/EscutaSocial.tsx:2060",src:K.logoUrl,alt:K.municipio,className:"h-10 object-contain"}),p.jsx("span",{"data-loc":"client/src/pages/EscutaSocial.tsx:2061",className:"text-[9px] text-gray-600 truncate w-full text-center",children:K.municipio})]},K.slug)})}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2066",className:"flex items-center gap-2 mb-2",children:[p.jsxs("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:2067",className:"flex items-center gap-1 text-xs px-3 py-1.5 rounded-lg border border-dashed border-[#7A8C5E]/50 text-[#2D4A2D] cursor-pointer hover:bg-[#2D4A2D]/5",children:[p.jsx(Ll,{"data-loc":"client/src/pages/EscutaSocial.tsx:2068",size:11}),"Upload logo custom",p.jsx("input",{"data-loc":"client/src/pages/EscutaSocial.tsx:2070",type:"file",accept:"image/*",className:"hidden",onChange:K=>V(K.target.files?.[0]??null)})]}),p.jsxs("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:2072",onClick:Z,disabled:N||!S&&!E,className:"flex items-center gap-1 px-3 py-1.5 rounded-lg bg-gradient-to-r from-purple-600 to-blue-600 text-white text-xs font-bold disabled:opacity-40 hover:opacity-90",children:[N?p.jsx(Wt,{"data-loc":"client/src/pages/EscutaSocial.tsx:2073",size:11,className:"animate-spin"}):p.jsx(Ou,{"data-loc":"client/src/pages/EscutaSocial.tsx:2073",size:11}),"Analisar cores com IA"]})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2077",className:"grid grid-cols-2 gap-2",children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2078",className:"flex items-center gap-2",children:[p.jsx("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:2079",className:"text-[10px] text-gray-500 uppercase tracking-wider whitespace-nowrap",children:"Primária"}),p.jsx("input",{"data-loc":"client/src/pages/EscutaSocial.tsx:2080",type:"color",value:x,onChange:K=>v(K.target.value),className:"w-8 h-8 rounded border border-gray-300"}),p.jsx("input",{"data-loc":"client/src/pages/EscutaSocial.tsx:2081",value:x,onChange:K=>v(K.target.value),className:"flex-1 text-xs px-2 py-1 border border-gray-300 rounded font-mono"})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2083",className:"flex items-center gap-2",children:[p.jsx("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:2084",className:"text-[10px] text-gray-500 uppercase tracking-wider whitespace-nowrap",children:"Secundária"}),p.jsx("input",{"data-loc":"client/src/pages/EscutaSocial.tsx:2085",type:"color",value:y,onChange:K=>b(K.target.value),className:"w-8 h-8 rounded border border-gray-300"}),p.jsx("input",{"data-loc":"client/src/pages/EscutaSocial.tsx:2086",value:y,onChange:K=>b(K.target.value),className:"flex-1 text-xs px-2 py-1 border border-gray-300 rounded font-mono"})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2089",className:"mt-3 p-3 rounded-lg",style:{backgroundColor:x,color:"#fff"},children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2090",className:"flex items-center gap-2",children:[S&&p.jsx("img",{"data-loc":"client/src/pages/EscutaSocial.tsx:2091",src:S,alt:"preview",className:"h-8 bg-white/10 rounded p-1"}),p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2092",className:"text-sm font-bold flex-1 truncate",children:a})]}),p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2094",className:"mt-2 h-1 rounded",style:{backgroundColor:y}})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2099",className:"border-t border-gray-200 pt-4",children:[p.jsx("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:2100",className:"text-[11px] font-black uppercase tracking-wider text-[#7A8C5E] block mb-2",children:"Prazo pra participação"}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2103",className:"grid grid-cols-2 gap-3",children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2104",children:[p.jsx("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:2105",className:"text-[10px] text-gray-500 uppercase tracking-wider block mb-1",children:"Abertura"}),p.jsx("input",{"data-loc":"client/src/pages/EscutaSocial.tsx:2106",type:"datetime-local",value:_,onCh
1197ange:K=>W(K.target.value),className:"w-full text-sm px-3 py-2 border border-gray-300 rounded-lg"}),p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2112",className:"text-[10px] text-gray-400 mt-1",children:"Vazio = já aberta"})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2114",children:[p.jsx("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:2115",className:"text-[10px] text-gray-500 uppercase tracking-wider block mb-1",children:"Encerramento"}),p.jsx("input",{"data-loc":"client/src/pages/EscutaSocial.tsx:2116",type:"datetime-local",value:D,onChange:K=>J(K.target.value),className:"w-full text-sm px-3 py-2 border border-gray-300 rounded-lg"}),p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2122",className:"text-[10px] text-gray-400 mt-1",children:"Vazio = sem prazo"})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2125",className:"text-[10px] text-gray-500 mt-2",children:["Depois de ",p.jsx("strong",{"data-loc":"client/src/pages/EscutaSocial.tsx:2126",children:D?new Date(D).toLocaleString("pt-BR"):"(sem prazo)"}),", o link exibe uma página de ",p.jsx("strong",{"data-loc":"client/src/pages/EscutaSocial.tsx:2126",children:'"Escuta social encerrada"'}),"."]})]}),p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2130",className:"text-[10px] text-amber-700 bg-amber-50 border border-amber-200 rounded p-2",children:"â Se mudar o municÃpio ou o tipo de PPP, o link público muda também (novo /:tipo/:municipio)."})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2135",className:"px-6 py-4 border-t border-gray-200 flex items-center justify-end gap-2 bg-gray-50",children:[p.jsx("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:2136",onClick:t,className:"px-4 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100",children:"Cancelar"}),p.jsx("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:2137",onClick:te,disabled:k,className:"flex items-center gap-1.5 px-4 py-2 rounded-lg bg-[#2D4A2D] text-white text-sm font-bold hover:bg-[#2D4A2D]/90 disabled:opacity-40",children:k?p.jsxs(p.Fragment,{children:[p.jsx(Wt,{"data-loc":"client/src/pages/EscutaSocial.tsx:2138",className:"animate-spin",size:13})," Salvandoâ¦"]}):p.jsxs(p.Fragment,{children:[p.jsx(aN,{"data-loc":"client/src/pages/EscutaSocial.tsx:2138",size:13})," Salvar"]})})]})]})})}function Jxe({projetos:e,onClose:t,onCriado:r,modoInicial:a,onTemplateSalvo:n}){const[i,o]=L.useState(""),[s,c]=L.useState(null),[u,h]=L.useState(!1),[f,m]=L.useState(null),[x,v]=L.useState(!1),[y,b]=L.useState(null),[S,A]=L.useState(a??"formulario"),[E,j]=L.useState(""),[P,C]=L.useState("v1"),[N,O]=L.useState(""),[k,B]=L.useState(""),$=e.find(V=>V.id===i),_=async V=>{h(!0),b(null),m(null);try{const Z=await _F(()=>import("./index-BnduKBXa.js").then(F=>F.i),[]),te=await V.arrayBuffer(),q=(await Z.extractRawText({arrayBuffer:te})).value.trim();if(q.length<50)throw new Error("O documento parece vazio ou muito curto.");const X=await fetch("/api/escuta/importar-formulario",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({textoDocx:q,contexto:$?{municipio:$.municipio,tipoPPP:Kr[$.tipoProjeto]?.label}:void 0})});if(!X.ok){const F=await X.json().catch(()=>({error:`HTTP ${X.status}`}));throw new Error(F.error||`HTTP ${X.status}`)}const ie=(await X.json()).formulario;m(ie);const se=V.name.replace(/\.docx$/i,"").trim(),he=se.match(/[_\s-]v\.?\s*([0-9]+(?:\.[0-9]+)?)$/i);he&&C(F=>F==="v1"?`v${he[1]}`:F);const Y=(ie?.titulo||se.replace(/[_\s-]v\.?\s*[0-9.]+$/i,"")).trim();j(F=>F||Y),je.success("Perguntas extraÃdas. Confira antes de salvar.")}catch(Z){const te=Z instanceof Error?Z.message:"Falha ao processar";b(te),je.error(te)}finally{h(!1)}},W=V=>{if(V){if(!V.name.toLowerCase().endsWith(".docx")){je.error("Só aceito .docx (Word). Se for PDF, converta pra Word primeiro.");return}c(V),_(V)}},D=async()=>{if(!f||!$){je.error("Escolha um projeto e confirme a extração antes de salvar.");return}v(!0);try{const V=U=>U.normalize("NFD").replace(/[Ì-ͯ]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,""),Z=Kr[$.tipoProjeto]?.label??"",te=`${V($.municipio)}-${Date.now().toString(36).slice(-5)}`,K=`form-${te}`,q={id:K,slug:te,titulo:f.titulo||`Escuta Social â ${Z} de ${$.municipio}
1197`,subtitulo:f.subtitulo||void 0,projetoId:$.id,municipio:$.municipio,estado:$.estado,tipoPPP:Z,tipoSlug:V(Z),municipioSlug:V($.municipio),corPrimaria:"#2D4A2D",corSecundaria:"#7A8C5E",paginas:f.paginas,status:"rascunho"},X=await fetch(`/api/escuta/formularios/${K}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(q)});if(!X.ok){const U=await X.json().catch(()=>({error:`HTTP ${X.status}`}));throw new Error(U.error||`HTTP ${X.status}`)}je.success("Rascunho criado. Ajuste no editor antes de publicar."),r(K)}catch(V){je.error(`Falha: ${V instanceof Error?V.message:"erro"}`)}finally{v(!1)}},J=async()=>{if(f){if(!E.trim()){je.error("Dê um nome ao template.");return}if(!P.trim()){je.error("Dê uma versão ao template (ex: v1, v2, 2026.1).");return}v(!0);try{const V=await Uxe({nome:E.trim(),versao:P.trim(),descricao:N.trim()||void 0,tipoPPP:$?Kr[$.tipoProjeto]?.label:void 0,autor:k.trim()||void 0,origemArquivo:s?.name,paginas:f.paginas});je.success(`Template "${E.trim()} · ${P.trim()}" salvo. Já aparece pra todo mundo na lista de templates.`),n?n(V.id):t()}catch(V){const Z=V instanceof Error?V.message:"erro";b(Z),je.error(`Falha ao salvar template: ${Z}`)}finally{v(!1)}}},z=f?.paginas.reduce((V,Z)=>V+Z.questions.length,0)??0;return p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2308",className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4",onClick:t,children:p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2309",className:"bg-white rounded-2xl shadow-2xl max-w-2xl w-full max-h-[95vh] overflow-auto",onClick:V=>V.stopPropagation(),children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2310",className:"flex items-center justify-between px-6 py-4 border-b border-gray-200 bg-gray-50",children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2311",children:[p.jsx("h2",{"data-loc":"client/src/pages/EscutaSocial.tsx:2312",className:"text-lg font-bold text-[#2D4A2D]",children:"Importar .docx"}),p.jsx("p",{"data-loc":"client/src/pages/EscutaSocial.tsx:2313",className:"text-xs text-gray-500",children:"Sobe um Word com as perguntas â a IA extrai e monta o formulário editável."})]}),p.jsx("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:2315",onClick:t,className:"text-gray-400 hover:text-gray-600",children:p.jsx(dn,{"data-loc":"client/src/pages/EscutaSocial.tsx:2315",size:18})})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2318",className:"p-6 space-y-4",children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2320",children:[p.jsx("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:2321",className:"text-[11px] font-black uppercase tracking-wider text-[#7A8C5E] block mb-1",children:"O que fazer com as perguntas"}),p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2322",className:"grid grid-cols-2 gap-2",children:[{v:"formulario",t:"Escuta deste projeto",d:"Cria um rascunho já ligado a um municÃpio"},{v:"template",t:"Template reutilizável",d:"Fica salvo com nome + versão pra toda a equipe"}].map(V=>{const Z=S===V.v;return p.jsxs("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:2329",onClick:()=>A(V.v),className:"text-left px-3 py-2 rounded-lg border transition-all",style:{borderColor:Z?"#2D4A2D":"#E5E7EB",backgroundColor:Z?"#2D4A2D08":"#fff",borderWidth:Z?2:1},children:[p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2339",className:"text-xs font-bold text-[#2D4A2D]",children:V.t}),p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2340",className:"text-[10px] text-gray-500 mt-0.5",children:V.d})]},V.v)})})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2347",children:[p.jsx("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:2348",className:"text-[11px] font-black uppercase tracking-wider text-[#7A8C5E] block mb-1",children:S==="template"?"Projeto de referência (opcional)":"Projeto associado"}),p.jsxs("select",{"data-loc":"client/src/pages/EscutaSocial.tsx:2351",value:i,onChange:V=>o(V.target.value),className:"w-full text-sm px-3 py-2 border border-gray-300 rounded-lg",children:[p.jsx("option",{"data-loc":"client/src/pages/EscutaSocial.tsx:2356",value:"",children:"â Escolha um projeto â"}),e.map(V=>p.jsxs("option",{"data-loc":"client/src/pages/EscutaSocial.tsx:2358",value:V.id,children:[V.municipio,"/",V.estado," â ",Kr[V.tipoProjeto]?.label??V.tipoProjeto]},V.id))]})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2363",children:[p.jsx("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:2364",className:"text-[11px] font-black uppercase tracking-wider text-[#7A8C5E] block mb-1",children:"Arquivo .docx"}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2365",className:"border-2 border-dashed border-[#2D4A2D]/25 rounded-xl p-6 text-center bg-[#EDE9DF]/30",children:[p.jsx("input",{"data-loc":"client/src/pages/EscutaSocial.tsx:2366",type:"file",accept:".docx",onChange:V=>
1197W(V.target.files?.[0]??null),className:"hidden",id:"upload-docx",disabled:u}),p.jsx("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:2374",htmlFor:"upload-docx",className:`inline-flex items-center gap-2 px-4 py-2 rounded-lg bg-[#2D4A2D] text-white text-xs font-bold cursor-pointer ${u?"opacity-40 pointer-events-none":"hover:bg-[#2D4A2D]/90"}`,children:u?p.jsxs(p.Fragment,{children:[p.jsx(Wt,{"data-loc":"client/src/pages/EscutaSocial.tsx:2378",size:12,className:"animate-spin"})," Extraindo com IAâ¦"]}):p.jsxs(p.Fragment,{children:[p.jsx(Ll,{"data-loc":"client/src/pages/EscutaSocial.tsx:2378",size:12})," Escolher .docx"]})}),s&&p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2381",className:"text-xs text-gray-600 mt-2 truncate",children:[s.name," · ",Math.round(s.size/1024)," KB"]}),p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2383",className:"text-[10px] text-gray-500 mt-2",children:"Só Word (.docx). PDF: converta antes."})]})]}),y&&p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2388",className:"text-xs text-red-700 bg-red-50 border border-red-200 rounded p-3",children:y}),f&&p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2392",className:"border border-[#2D4A2D]/15 rounded-xl overflow-hidden",children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2393",className:"px-4 py-2 bg-emerald-50 border-b border-emerald-200 text-xs text-emerald-800 flex items-center gap-2",children:[p.jsx(ta,{"data-loc":"client/src/pages/EscutaSocial.tsx:2394",size:13})," IA identificou ",p.jsxs("strong",{"data-loc":"client/src/pages/EscutaSocial.tsx:2394",children:[f.paginas.length," páginas"]})," · ",p.jsxs("strong",{"data-loc":"client/src/pages/EscutaSocial.tsx:2394",children:[z," perguntas"]})]}),p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2396",className:"p-4 max-h-72 overflow-auto space-y-3 text-sm",children:f.paginas.map((V,Z)=>p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2398",children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2399",className:"font-bold text-[#2D4A2D] mb-1",children:[Z+1,". ",V.title]}),p.jsx("ol",{"data-loc":"client/src/pages/EscutaSocial.tsx:2400",className:"pl-4 space-y-1",children:V.questions.map((te,K)=>p.jsxs("li",{"data-loc":"client/src/pages/EscutaSocial.tsx:2402",className:"text-xs text-gray-700",children:[p.jsx("span",{"data-loc":"client/src/pages/EscutaSocial.tsx:2403",className:"text-[9px] font-mono uppercase bg-gray-100 px-1 rounded mr-1",children:te.type}),te.label,te.options&&te.options.length>0&&p.jsxs("span",{"data-loc":"client/src/pages/EscutaSocial.tsx:2406",className:"text-[10px] text-gray-500 ml-2",children:["(",te.options.join(" | "),")"]})]},K))})]},Z))})]}),S==="template"&&f&&p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2419",className:"border border-[#2D4A2D]/15 rounded-xl p-4 space-y-3 bg-[#EDE9DF]/30",children:[p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2420",className:"text-[10px] font-black uppercase tracking-wider text-[#7A8C5E]",children:"Identificação do template"}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2423",className:"grid grid-cols-3 gap-2",children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2424",className:"col-span-2",children:[p.jsx("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:2425",className:"text-[10px] text-gray-600 block mb-1",children:"Nome *"}),p.jsx("input",{"data-loc":"client/src/pages/EscutaSocial.tsx:2426",value:E,onChange:V=>j(V.target.value),placeholder:"Ex: Perguntas gerais â Iluminação Pública",className:"w-full text-sm px-3 py-2 border border-gray-300 rounded-lg"})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2433",children:[p.jsx("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:2434",className:"text-[10px] text-gray-600 block mb-1",children:"Versão *"}),p.jsx("input",{"data-loc":"client/src/pages/EscutaSocial.tsx:2435",value:P,onChange:V=>C(V.target.value),placeholder:"v2",className:"w-full text-sm px-3 py-2 border border-gray-300 rounded-lg font-mono"})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2443",className:"grid grid-cols-3 gap-2",children:[p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2444",className:"col-span-2",children:[p.jsx("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:2445",className:"text-[10px] text-gray-600 block mb-1",children:"Descrição (opcional)"}),p.jsx("input",{"data-loc":"client/src/pages/EscutaSocial.tsx:2446",value:N,onChange:V=>O(V.target.value),placeholder:"Pra que serve, de onde veio, o que mudou nesta versão",className:"w-full text-sm px-3 py-2 border border-gray-300 rounded-lg"})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2453",children:[p.jsx("label",{"data-loc":"client/src/pages/EscutaSocial.tsx:2454",className:"text-[10px] text-gray-600 block mb-1",children:"Quem subiu (opcional)"}),p.jsx("input",{"data-loc":"client/src/pages/EscutaSocial.tsx:2455",value:k,onChange:V=>B(V.target.value),placeholder:"Seu nome",className:"w-full text-sm px-3 py-2 border border-gray-300 rounded-lg"})]})]}),p.jsx("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2463",className:"text-[10px] text-gray-500",children:"Nome + versão precisam ser únicos. Pra atualizar um template existente, suba de novo com a versão seguinte â a anterior continua na lista."})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/EscutaSocial.tsx:2471",className:"px-6 py-4 border-t border-gray-200 flex items-center justify-end gap-2 bg-gray-50",children:[p.jsx("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:2472",onClick:t,className:"px-4 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100",children:"Cancelar"}),S==="template"?p.jsx("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:2474",onClick:J,disabled:!f||!E.trim()||!P.trim()||x,className:"flex items-center gap-1.5 px-4 py-2 rounded-lg bg-[#2D4A2D] text-white text-sm font-bold hover:bg-[#2D4A2D]/90 disabled:opacity-40",children:x?p.jsxs(p.Fragment,{children:[p.jsx(Wt,{"data-loc":"client/src/pages/EscutaSocial.tsx:2479",className:"animate-spin",size:13})," Salvandoâ¦"]}):p.jsxs(p.Fragment,{children:[p.jsx(fa,{"data-loc":"client/src/pages/EscutaSocial.tsx:2479",size:13})," Salvar template"]})}):p.jsx("button",{"data-loc":"client/src/pages/EscutaSocial.tsx:2482",onClick:D,disabled:!f||!$||x,className:"flex items-center gap-1.5 px-4 py-2 rounded-lg bg-[#2D4A2D] text-white text-sm font-bold hover:bg-[#2D4A2D]/90 disabled:opacity-40",children:x?p.jsxs(p.Fragment,{children:[p.jsx(Wt,{"data-loc":"client/src/pages/EscutaSocial.tsx:2487",className:"animate-spin",size:13})," Criandoâ¦"]}):p.jsxs(p.Fragment,{children:[p.jsx(fa,{"data-loc":"client/src/pages/EscutaSocial.tsx:2487",size:13})," Criar rascunho"]})})]})]})})}var tu={},kw,XR;function Qxe(){return XR||(XR=1,kw=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),kw}var Dw={},cs={},YR;function Ql(){if(YR)return cs;YR=1;let e;const t=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];
vendor: 22,355 bytes, lines 1197-1203
1197return cs.getSymbolSize=function(a){if(!a)throw new Error('"version" cannot be null or undefined');if(a<1||a>40)throw new Error('"version" should be in range from 1 to 40');return a*4+17},cs.getSymbolTotalCodewords=function(a){return t[a]},cs.getBCHDigit=function(r){let a=0;for(;r!==0;)a++,r>>>=1;return a},cs.setToSJISFunction=function(a){if(typeof a!="function")throw new Error('"toSJISFunc" is not a valid function.');e=a},cs.isKanjiModeEnabled=function(){return typeof e<"u"},cs.toSJIS=function(a){return e(a)},cs}var _w={},ZR;function WN(){return ZR||(ZR=1,(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+r)}}e.isValid=function(a){return a&&typeof a.bit<"u"&&a.bit>=0&&a.bit<4},e.from=function(a,n){if(e.isValid(a))return a;try{return t(a)}catch{return n}}})(_w)),_w}var Rw,JR;function eve(){if(JR)return Rw;JR=1;function e(){this.buffer=[],this.length=0}return e.prototype={get:function(t){const r=Math.floor(t/8);return(this.buffer[r]>>>7-t%8&1)===1},put:function(t,r){for(let a=0;a<r;a++)this.putBit((t>>>r-a-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){const r=Math.floor(this.length/8);this.buffer.length<=r&&this.buffer.push(0),t&&(this.buffer[r]|=128>>>this.length%8),this.length++}},Rw=e,Rw}var Ow,QR;function tve(){if(QR)return Ow;QR=1;function e(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}return e.prototype.set=function(t,r,a,n){const i=t*this.size+r;this.data[i]=a,n&&(this.reservedBit[i]=!0)},e.prototype.get=function(t,r){return this.data[t*this.size+r]},e.prototype.xor=function(t,r,a){this.data[t*this.size+r]^=a},e.prototype.isReserved=function(t,r){return this.reservedBit[t*this.size+r]},Ow=e,Ow}var Mw={},eO;function rve(){return eO||(eO=1,(function(e){const t=Ql().getSymbolSize;e.getRowColCoords=function(a){if(a===1)return[];const n=Math.floor(a/7)+2,i=t(a),o=i===145?26:Math.ceil((i-13)/(2*n-2))*2,s=[i-7];for(let c=1;c<n-1;c++)s[c]=s[c-1]-o;return s.push(6),s.reverse()},e.getPositions=function(a){const n=[],i=e.getRowColCoords(a),o=i.length;for(let s=0;s<o;s++)for(let c=0;c<o;c++)s===0&&c===0||s===0&&c===o-1||s===o-1&&c===0||n.push([i[s],i[c]]);return n}})(Mw)),Mw}var Iw={},tO;function ave(){if(tO)return Iw;tO=1;const e=Ql().getSymbolSize,t=7;return Iw.getPositions=function(a){const n=e(a);return[[0,0],[n-t,0],[0,n-t]]},Iw}var Bw={},rO;function nve(){return rO||(rO=1,(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(n){return n!=null&&n!==""&&!isNaN(n)&&n>=0&&n<=7},e.from=function(n){return e.isValid(n)?parseInt(n,10):void 0},e.getPenaltyN1=function(n){const i=n.size;let o=0,s=0,c=0,u=null,h=null;for(let f=0;f<i;f++){s=c=0,u=h=null;for(let m=0;m<i;m++){let x=n.get(f,m);x===u?s++:(s>=5&&(o+=t.N1+(s-5)),u=x,s=1),x=n.get(m,f),x===h?c++:(c>=5&&(o+=t.N1+(c-5)),h=x,c=1)}s>=5&&(o+=t.N1+(s-5)),c>=5&&(o+=t.N1+(c-5))}return o},e.getPenaltyN2=function(n){const i=n.size;let o=0;for(let s=0;s<i-1;s++)for(let c=0;c<i-1;c++){const u=n.get(s,c)+n.get(s,c+1)+n.get(s+1,c)+n.get(s+1,c+1);(u===4||u===0)&&o++}return o*t.N2},e.getPenaltyN3=function(n){const i=n.size;let o=0,s=0,c=0;for(let u=0;u<i;u++){s=c=0;for(let h=0;h<i;h++)s=s<<1&2047|n.get(u,h),h>=10&&(s===1488||s===93)&&o++,c=c<<1&2047|n.get(h,u),h>=10&&(c===1488||c===93)&&o++}return o*t.N3},e.getPenaltyN4=function(n){let i=0;const o=n.data.length;for(let c=0;c<o;c++)i+=n.data[c];return Math.abs(Math.ceil(i*100/o/5)-10)*t.N4};function r(a,n,i){switch(a){case e.Patterns.PATTERN000:return(n+i)%2===0;case e.Patterns.PATTERN001:return n%2===0;case e.Patterns.PATTERN010:return i%3===0;case e.Patterns.PATTERN011:return(n+i)%3===0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(i/3))%2===0;case e.Patterns.PATTERN101:return n*i%2+n*i%3===0;case e.Patterns.PATTERN110:return(n*i%2+n*i%3)%2===0;case e.Patterns.PATTERN111:return(n*i%3+(n+i)%2)%2===0;default:throw new Error("bad maskPattern:"+a)}}e.applyMask=function(n,i){const o=i.size;for(let s=0;s<o;s++)for(let c=0;c<o;c++)i.isReserved(c,s)||i.xor(c,s,r(n,c,s))},e.getBestMask=function(n,i){const o=Object.keys(e.Patterns).length;let s=0,c=1/0;for(let u=0;u<o;u++){i(u),e.applyMask(u,n);const h=e.getPenaltyN1(n)+e.getPenaltyN2(n)+e.getPenaltyN3(n)+e.getPenaltyN4(n);e.applyMask(u,n),h<c&&(c=h,s=u)}return s}})(Bw)),Bw}var Gg={},aO;function OV(){if(aO)return Gg;aO=1;const e=WN(),t=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],r=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return Gg.getBlocksCount=function(n,i){switch(i){case e.L:return t[(n-1)*4+0];case e.M:return t[(n-1)*4+1];case e.Q:return t[(n-1)*4+2];case e.H:return t[(n-1)*4+3];default:return}},Gg.getTotalCodewordsCount=function(n,i){switch(i){case e.L:return r[(n-1)*4+0];case e.M:return r[(n-1)*4+1];case e.Q:return r[(n-1)*4+2];case e.H:return r[(n-1)*4+3];default:return}},Gg}var Lw={},Hf={},nO;function ive(){if(nO)return Hf;nO=1;const e=new Uint8Array(512),t=new Uint8Array(256);return(function(){let a=1;for(let n=0;n<255;n++)e[n]=a,t[a]=n,a<<=1,a&256&&(a^=285);for(let n=255;n<512;n++)e[n]=e[n-255]})(),Hf.log=function(a){if(a<1)throw new Error("log("+a+")");return t[a]},Hf.exp=function(a){return e[a]},Hf.mul=function(a,n){return a===0||n===0?0:e[t[a]+t[n]]},Hf}var iO;function ove(){return iO||(iO=1,(function(e){const t=ive();e.mul=function(a,n){const i=new Uint8Array(a.length+n.length-1);for(let o=0;o<a.length;o++)for(let s=0;s<n.length;s++)i[o+s]^=t.mul(a[o],n[s]);return i},e.mod=function(a,n){let i=new Uint8Array(a);for(;i.length-n.length>=0;){const o=i[0];for(let c=0;c<n.length;c++)i[c]^=t.mul(n[c],o);let s=0;for(;s<i.length&&i[s]===0;)s++;i=i.slice(s)}return i},e.generateECPolynomial=function(a){let n=new Uint8Array([1]);for(let i=0;i<a;i++)n=e.mul(n,new Uint8Array([1,t.exp(i)]));return n}})(Lw)),Lw}var zw,oO;function sve(){if(oO)return zw;oO=1;const e=ove();function t(r){this.genPoly=void 0,this.degree=r,this.degree&&this.initialize(this.degree)}return t.prototype.initialize=function(a){this.degree=a,this.genPoly=e.generateECPolynomial(this.degree)},t.prototype.encode=function(a){if(!this.genPoly)throw new Error("Encoder not initialized");const n=new Uint8Array(a.length+this.degree);n.set(a);const i=e.mod(n,this.genPoly),o=this.degree-i.length;if(o>0){const s=new Uint8Array(this.degree);return s.set(i,o),s}return i},zw=t,zw}var Fw={},$w={},qw={},sO;function MV(){return sO||(sO=1,qw.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}),qw}var gi={},lO;function IV(){if(lO)return gi;lO=1;const e="[0-9]+",t="[A-Z $%*+\\-./:]+";let r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";r=r.replace(/u/g,"\\u");const a="(?:(?![A-Z0-9 $%*+\\-./:]|"+r+`)(?:.|[\r 1198]))+`;gi.KANJI=new RegExp(r,"g"),gi.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),gi.BYTE=new RegExp(a,"g"),gi.NUMERIC=new RegExp(e,"g"),gi.ALPHANUMERIC=new RegExp(t,"g");const n=new RegExp("^"+r+"$"),i=new RegExp("^"+e+"$"),o=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return gi.testKanji=function(c){return n.test(c)},gi.testNumeric=function(c){return i.test(c)},gi.testAlphanumeric=function(c){return o.test(c)},gi}var cO;function ec(){return cO||(cO=1,(function(e){const t=MV(),r=IV();e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(i,o){if(!i.ccBits)throw new Error("Invalid mode: "+i);if(!t.isValid(o))throw new Error("Invalid version: "+o);return o>=1&&o<10?i.ccBits[0]:o<27?i.ccBits[1]:i.ccBits[2]},e.getBestModeForData=function(i){return r.testNumeric(i)?e.NUMERIC:r.testAlphanumeric(i)?e.ALPHANUMERIC:r.testKanji(i)?e.KANJI:e.BYTE},e.toString=function(i){if(i&&i.id)return i.id;throw new Error("Invalid mode")},e.isValid=function(i){return i&&i.bit&&i.ccBits};function a(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+n)}}e.from=function(i,o){if(e.isValid(i))return i;try{return a(i)}catch{return o}}})($w)),$w}var uO;function lve(){return uO||(uO=1,(function(e){const t=Ql(),r=OV(),a=WN(),n=ec(),i=MV(),o=7973,s=t.getBCHDigit(o);function c(m,x,v){for(let y=1;y<=40;y++)if(x<=e.getCapacity(y,v,m))return y}function u(m,x){return n.getCharCountIndicator(m,x)+4}function h(m,x){let v=0;return m.forEach(function(y){const b=u(y.mode,x);v+=b+y.getBitsLength()}),v}function f(m,x){for(let v=1;v<=40;v++)if(h(m,v)<=e.getCapacity(v,x,n.MIXED))return v}e.from=function(x,v){return i.isValid(x)?parseInt(x,10):v},e.getCapacity=function(x,v,y){if(!i.isValid(x))throw new Error("Invalid QR Code version");typeof y>"u"&&(y=n.BYTE);const b=t.getSymbolTotalCodewords(x),S=r.getTotalCodewordsCount(x,v),A=(b-S)*8;if(y===n.MIXED)return A;const E=A-u(y,x);switch(y){case n.NUMERIC:return Math.floor(E/10*3);case n.ALPHANUMERIC:return Math.floor(E/11*2);case n.KANJI:return Math.floor(E/13);case n.BYTE:default:return Math.floor(E/8)}},e.getBestVersionForData=function(x,v){let y;const b=a.from(v,a.M);if(Array.isArray(x)){if(x.length>1)return f(x,b);if(x.length===0)return 1;y=x[0]}else y=x;return c(y.mode,y.getLength(),b)},e.getEncodedBits=function(x){if(!i.isValid(x)||x<7)throw new Error("Invalid QR Code version");let v=x<<12;for(;t.getBCHDigit(v)-s>=0;)v^=o<<t.getBCHDigit(v)-s;return x<<12|v}})(Fw)),Fw}var Vw={},dO;function cve(){if(dO)return Vw;dO=1;const e=Ql(),t=1335,r=21522,a=e.getBCHDigit(t);return Vw.getEncodedBits=function(i,o){const s=i.bit<<3|o;let c=s<<10;for(;e.getBCHDigit(c)-a>=0;)c^=t<<e.getBCHDigit(c)-a;return(s<<10|c)^r},Vw}var Uw={},Hw,fO;function uve(){if(fO)return Hw;fO=1;const e=ec();function t(r){this.mode=e.NUMERIC,this.data=r.toString()}return t.getBitsLength=function(a){return 10*Math.floor(a/3)+(a%3?a%3*3+1:0)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(a){let n,i,o;for(n=0;n+3<=this.data.length;n+=3)i=this.data.substr(n,3),o=parseInt(i,10),a.put(o,10);const s=this.data.length-n;s>0&&(i=this.data.substr(n),o=parseInt(i,10),a.put(o,s*3+1))},Hw=t,Hw}var Gw,pO;function dve(){if(pO)return Gw;pO=1;const e=ec(),t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function r(a){this.mode=e.ALPHANUMERIC,this.data=a}return r.getBitsLength=function(n){return 11*Math.floor(n/2)+6*(n%2)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(n){let i;for(i=0;i+2<=this.data.length;i+=2){let o=t.indexOf(this.data[i])*45;o+=t.indexOf(this.data[i+1]),n.put(o,11)}this.data.length%2&&n.put(t.indexOf(this.data[i]),6)},Gw=r,Gw}var Kw,hO;function fve(){if(hO)return Kw;hO=1;const e=ec();function t(r){this.mode=e.BYTE,typeof r=="string"?this.data=new TextEncoder().encode(r):this.data=new Uint8Array(r)}return t.getBitsLength=function(a){return a*8},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(r){for(let a=0,n=this.data.length;a<n;a++)r.put(this.data[a],8)},Kw=t,Kw}var Ww,mO;function pve(){if(mO)return Ww;mO=1;const e=ec(),t=Ql();function r(a){this.mode=e.KANJI,this.data=a}return r.getBitsLength=function(n){return n*13},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(a){let n;for(n=0;n<this.data.length;n++){let i=t.toSJIS(this.data[n]);if(i>=33088&&i<=40956)i-=33088;else if(i>=57408&&i<=60351)i-=49472;else throw new Error("Invalid SJIS character: "+this.data[n]+` 1199Make sure your charset is UTF-8`);i=(i>>>8&255)*192+(i&255),a.put(i,13)}},Ww=r,Ww}var Xw={exports:{}},gO;function hve(){return gO||(gO=1,(function(e){var t={single_source_shortest_paths:function(r,a,n){var i={},o={};o[a]=0;var s=t.PriorityQueue.make();s.push(a,0);for(var c,u,h,f,m,x,v,y,b;!s.empty();){c=s.pop(),u=c.value,f=c.cost,m=r[u]||{};for(h in m)m.hasOwnProperty(h)&&(x=m[h],v=f+x,y=o[h],b=typeof o[h]>"u",(b||y>v)&&(o[h]=v,s.push(h,v),i[h]=u))}if(typeof n<"u"&&typeof o[n]>"u"){var S=["Could not find a path from ",a," to ",n,"."].join("");throw new Error(S)}return i},extract_shortest_path_from_predecessor_list:function(r,a){for(var n=[],i=a;i;)n.push(i),r[i],i=r[i];return n.reverse(),n},find_path:function(r,a,n){var i=t.single_source_shortest_paths(r,a,n);return t.extract_shortest_path_from_predecessor_list(i,n)},PriorityQueue:{make:function(r){var a=t.PriorityQueue,n={},i;r=r||{};for(i in a)a.hasOwnProperty(i)&&(n[i]=a[i]);return n.queue=[],n.sorter=r.sorter||a.default_sorter,n},default_sorter:function(r,a){return r.cost-a.cost},push:function(r,a){var n={value:r,cost:a};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(Xw)),Xw.exports}var xO;function mve(){return xO||(xO=1,(function(e){const t=ec(),r=uve(),a=dve(),n=fve(),i=pve(),o=IV(),s=Ql(),c=hve();function u(S){return unescape(encodeURIComponent(S)).length}function h(S,A,E){const j=[];let P;for(;(P=S.exec(E))!==null;)j.push({data:P[0],index:P.index,mode:A,length:P[0].length});return j}function f(S){const A=h(o.NUMERIC,t.NUMERIC,S),E=h(o.ALPHANUMERIC,t.ALPHANUMERIC,S);let j,P;return s.isKanjiModeEnabled()?(j=h(o.BYTE,t.BYTE,S),P=h(o.KANJI,t.KANJI,S)):(j=h(o.BYTE_KANJI,t.BYTE,S),P=[]),A.concat(E,j,P).sort(function(N,O){return N.index-O.index}).map(function(N){return{data:N.data,mode:N.mode,length:N.length}})}function m(S,A){switch(A){case t.NUMERIC:return r.getBitsLength(S);case t.ALPHANUMERIC:return a.getBitsLength(S);case t.KANJI:return i.getBitsLength(S);case t.BYTE:return n.getBitsLength(S)}}function x(S){return S.reduce(function(A,E){const j=A.length-1>=0?A[A.length-1]:null;return j&&j.mode===E.mode?(A[A.length-1].data+=E.data,A):(A.push(E),A)},[])}function v(S){const A=[];for(let E=0;E<S.length;E++){const j=S[E];switch(j.mode){case t.NUMERIC:A.push([j,{data:j.data,mode:t.ALPHANUMERIC,length:j.length},{data:j.data,mode:t.BYTE,length:j.length}]);break;case t.ALPHANUMERIC:A.push([j,{data:j.data,mode:t.BYTE,length:j.length}]);break;case t.KANJI:A.push([j,{data:j.data,mode:t.BYTE,length:u(j.data)}]);break;case t.BYTE:A.push([{data:j.data,mode:t.BYTE,length:u(j.data)}])}}return A}function y(S,A){const E={},j={start:{}};let P=["start"];for(let C=0;C<S.length;C++){const N=S[C],O=[];for(let k=0;k<N.length;k++){const B=N[k],$=""+C+k;O.push($),E[$]={node:B,lastCount:0},j[$]={};for(let _=0;_<P.length;_++){const W=P[_];E[W]&&E[W].node.mode===B.mode?(j[W][$]=m(E[W].lastCount+B.length,B.mode)-m(E[W].lastCount,B.mode),E[W].lastCount+=B.length):(E[W]&&(E[W].lastCount=B.length),j[W][$]=m(B.length,B.mode)+4+t.getCharCountIndicator(B.mode,A))}}P=O}for(let C=0;C<P.length;C++)j[P[C]].end=0;return{map:j,table:E}}function b(S,A){let E;const j=t.getBestModeForData(S);if(E=t.from(A,j),E!==t.BYTE&&E.bit<j.bit)throw new Error('"'+S+'" cannot be encoded with mode '+t.toString(E)+`. 1200 Suggested mode is: `+t.toString(j));switch(E===t.KANJI&&!s.isKanjiModeEnabled()&&(E=t.BYTE),E){case t.NUMERIC:return new r(S);case t.ALPHANUMERIC:return new a(S);case t.KANJI:return new i(S);case t.BYTE:return new n(S)}}e.fromArray=function(A){return A.reduce(function(E,j){return typeof j=="string"?E.push(b(j,null)):j.data&&E.push(b(j.data,j.mode)),E},[])},e.fromString=function(A,E){const j=f(A,s.isKanjiModeEnabled()),P=v(j),C=y(P,E),N=c.find_path(C.map,"start","end"),O=[];for(let k=1;k<N.length-1;k++)O.push(C.table[N[k]].node);return e.fromArray(x(O))},e.rawSplit=function(A){return e.fromArray(f(A,s.isKanjiModeEnabled()))}})(Uw)),Uw}var vO;function gve(){if(vO)return Dw;vO=1;const e=Ql(),t=WN(),r=eve(),a=tve(),n=rve(),i=ave(),o=nve(),s=OV(),c=sve(),u=lve(),h=cve(),f=ec(),m=mve();function x(C,N){const O=C.size,k=i.getPositions(N);for(let B=0;B<k.length;B++){const $=k[B][0],_=k[B][1];for(let W=-1;W<=7;W++)if(!($+W<=-1||O<=$+W))for(let D=-1;D<=7;D++)_+D<=-1||O<=_+D||(W>=0&&W<=6&&(D===0||D===6)||D>=0&&D<=6&&(W===0||W===6)||W>=2&&W<=4&&D>=2&&D<=4?C.set($+W,_+D,!0,!0):C.set($+W,_+D,!1,!0))}}function v(C){const N=C.size;for(let O=8;O<N-8;O++){const k=O%2===0;C.set(O,6,k,!0),C.set(6,O,k,!0)}}function y(C,N){const O=n.getPositions(N);for(let k=0;k<O.length;k++){const B=O[k][0],$=O[k][1];for(let _=-2;_<=2;_++)for(let W=-2;W<=2;W++)_===-2||_===2||W===-2||W===2||_===0&&W===0?C.set(B+_,$+W,!0,!0):C.set(B+_,$+W,!1,!0)}}function b(C,N){const O=C.size,k=u.getEncodedBits(N);let B,$,_;for(let W=0;W<18;W++)B=Math.floor(W/3),$=W%3+O-8-3,_=(k>>W&1)===1,C.set(B,$,_,!0),C.set($,B,_,!0)}function S(C,N,O){const k=C.size,B=h.getEncodedBits(N,O);let $,_;for($=0;$<15;$++)_=(B>>$&1)===1,$<6?C.set($,8,_,!0):$<8?C.set($+1,8,_,!0):C.set(k-15+$,8,_,!0),$<8?C.set(8,k-$-1,_,!0):$<9?C.set(8,15-$-1+1,_,!0):C.set(8,15-$-1,_,!0);C.set(k-8,8,1,!0)}function A(C,N){const O=C.size;let k=-1,B=O-1,$=7,_=0;for(let W=O-1;W>0;W-=2)for(W===6&&W--;;){for(let D=0;D<2;D++)if(!C.isReserved(B,W-D)){let J=!1;_<N.length&&(J=(N[_]>>>$&1)===1),C.set(B,W-D,J),$--,$===-1&&(_++,$=7)}if(B+=k,B<0||O<=B){B-=k,k=-k;break}}}function E(C,N,O){const k=new r;O.forEach(function(D){k.put(D.mode.bit,4),k.put(D.getLength(),f.getCharCountIndicator(D.mode,C)),D.write(k)});const B=e.getSymbolTotalCodewords(C),$=s.getTotalCodewordsCount(C,N),_=(B-$)*8;for(k.getLengthInBits()+4<=_&&k.put(0,4);k.getLengthInBits()%8!==0;)k.putBit(0);const W=(_-k.getLengthInBits())/8;for(let D=0;D<W;D++)k.put(D%2?17:236,8);return j(k,C,N)}function j(C,N,O){const k=e.getSymbolTotalCodewords(N),B=s.getTotalCodewordsCount(N,O),$=k-B,_=s.getBlocksCount(N,O),W=k%_,D=_-W,J=Math.floor(k/_),z=Math.floor($/_),V=z+1,Z=J-z,te=new c(Z);let K=0;const q=new Array(_),X=new Array(_);let U=0;const ie=new Uint8Array(C.buffer);for(let ae=0;ae<_;ae++){const ne=ae<D?z:V;q[ae]=ie.slice(K,K+ne),X[ae]=te.encode(q[ae]),K+=ne,U=Math.max(U,ne)}const se=new Uint8Array(k);let he=0,Y,F;for(Y=0;Y<U;Y++)for(F=0;F<_;F++)Y<q[F].length&&(se[he++]=q[F][Y]);for(Y=0;Y<Z;Y++)for(F=0;F<_;F++)se[he++]=X[F][Y];return se}function P(C,N,O,k){let B;if(Array.isArray(C))B=m.fromArray(C);else if(typeof C=="string"){let J=N;if(!J){const z=m.rawSplit(C);J=u.getBestVersionForData(z,O)}B=m.fromString(C,J||40)}else throw new Error("Invalid data");const $=u.getBestVersionForData(B,O);if(!$)throw new Error("The amount of data is too big to be stored in a QR Code");if(!N)N=$;else if(N<$)throw new Error(` 1201The chosen QR Code version cannot contain this amount of data. 1202Minimum version required to store current data is: `+$+`. 1203`);const _=E(N,O,B),W=e.getSymbolSize(N),D=new a(W);return x(D,N),v(D),y(D,N),S(D,O,0),N>=7&&b(D,N),A(D,_),isNaN(k)&&(k=o.getBestMask(D,S.bind(null,D,O))),o.applyMask(k,D),S(D,O,k),{modules:D,version:N,errorCorrectionLevel:O,maskPattern:k,segments:B}}return Dw.create=function(N,O){if(typeof N>"u"||N==="")throw new Error("No input text");let k=t.M,B,$;return typeof O<"u"&&(k=t.from(O.errorCorrectionLevel,t.M),B=u.from(O.version),$=o.from(O.maskPattern),O.toSJISFunc&&e.setToSJISFunction(O.toSJISFunc)),P(N,B,k,$)},Dw}var Yw={},Zw={},yO;function BV(){return yO||(yO=1,(function(e){function t(r){if(typeof r=="number"&&(r=r.toString()),typeof r!="string")throw new Error("Color should be defined as hex string");let a=r.slice().replace("#","").split("");if(a.length<3||a.length===5||a.length>8)throw new Error("Invalid hex color: "+r);(a.length===3||a.length===4)&&(a=Array.prototype.concat.apply([],a.map(function(i){return[i,i]}))),a.length===6&&a.push("F","F");const n=parseInt(a.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:n&255,hex:"#"+a.slice(0,6).join("")}}e.getOptions=function(a){a||(a={}),a.color||(a.color={});const n=typeof a.margin>"u"||a.margin===null||a.margin<0?4:a.margin,i=a.width&&a.width>=21?a.width:void 0,o=a.scale||4;return{width:i,scale:i?4:o,margin:n,color:{dark:t(a.color.dark||"#000000ff"),light:t(a.color.light||"#ffffffff")},type:a.type,rendererOpts:a.rendererOpts||{}}},e.getScale=function(a,n){return n.width&&n.width>=a+n.margin*2?n.width/(a+n.margin*2):n.scale},e.getImageWidth=function(a,n){const i=e.getScale(a,n);return Math.floor((a+n.margin*2)*i)},e.qrToImageData=function(a,n,i){const o=n.modules.size,s=n.modules.data,c=e.getScale(o,i),u=Math.floor((o+i.margin*2)*c),h=i.margin*c,f=[i.color.light,i.color.dark];for(let m=0;m<u;m++)for(let x=0;x<u;x++){let v=(m*u+x)*4,y=i.color.light;if(m>=h&&x>=h&&m<u-h&&x<u-h){const b=Math.floor((m-h)/c),S=Math.floor((x-h)/c);
1203y=f[s[b*o+S]?1:0]}a[v++]=y.r,a[v++]=y.g,a[v++]=y.b,a[v]=y.a}}})(Zw)),Zw}var bO;function xve(){return bO||(bO=1,(function(e){const t=BV();function r(n,i,o){n.clearRect(0,0,i.width,i.height),i.style||(i.style={}),i.height=o,i.width=o,i.style.height=o+"px",i.style.width=o+"px"}function a(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(i,o,s){let c=s,u=o;typeof c>"u"&&(!o||!o.getContext)&&(c=o,o=void 0),o||(u=a()),c=t.getOptions(c);const h=t.getImageWidth(i.modules.size,c),f=u.getContext("2d"),m=f.createImageData(h,h);return t.qrToImageData(m.data,i,c),r(f,u,h),f.putImageData(m,0,0),u},e.renderToDataURL=function(i,o,s){let c=s;typeof c>"u"&&(!o||!o.getContext)&&(c=o,o=void 0),c||(c={});const u=e.render(i,o,c),h=c.type||"image/png",f=c.rendererOpts||{};return u.toDataURL(h,f.quality)}})(Yw)),Yw}var Jw={},wO;function vve(){if(wO)return Jw;wO=1;const e=BV();function t(n,i){const o=n.a/255,s=i+'="'+n.hex+'"';return o<1?s+" "+i+'-opacity="'+o.toFixed(2).slice(1)+'"':s}function r(n,i,o){let s=n+i;return typeof o<"u"&&(s+=" "+o),s}function a(n,i,o){let s="",c=0,u=!1,h=0;for(let f=0;f<n.length;f++){const m=Math.floor(f%i),x=Math.floor(f/i);!m&&!u&&(u=!0),n[f]?(h++,f>0&&m>0&&n[f-1]||(s+=u?r("M",m+o,.5+x+o):r("m",c,0),c=0,u=!1),m+1<i&&n[f+1]||(s+=r("h",h),h=0)):c++}return s}return Jw.render=function(i,o,s){const c=e.getOptions(o),u=i.modules.size,h=i.modules.data,f=u+c.margin*2,m=c.color.light.a?"<path "+t(c.color.light,"fill")+' d="M0 0h'+f+"v"+f+'H0z"/>':"",x="<path "+t(c.color.dark,"stroke")+' d="'+a(h,u,c.margin)+'"/>',v='viewBox="0 0 '+f+" "+f+'"',b='<svg xmlns="http://www.w3.org/2000/svg" '+(c.width?'width="'+c.width+'" height="'+c.width+'" ':"")+v+' shape-rendering="crispEdges">'+m+x+`</svg> 1204`;return typeof s=="function"&&s(null,b),b},Jw}var SO;function yve(){if(SO)return tu;SO=1;const e=Qxe(),t=gve(),r=xve(),a=vve();function n(i,o,s,c,u){const h=[].slice.call(arguments,1),f=h.length,m=typeof h[f-1]=="function";if(!m&&!e())throw new Error("Callback required as last argument");if(m){if(f<2)throw new Error("Too few arguments provided");f===2?(u=s,s=o,o=c=void 0):f===3&&(o.getContext&&typeof u>"u"?(u=c,c=void 0):(u=c,c=s,s=o,o=void 0))}else{if(f<1)throw new Error("Too few arguments provided");return f===1?(s=o,o=c=void 0):f===2&&!o.getContext&&(c=s,s=o,o=void 0),new Promise(function(x,v){try{const y=t.create(s,c);x(i(y,o,c))}catch(y){v(y)}})}try{const x=t.create(s,c);u(null,i(x,o,c))}catch(x){u(x)}}return tu.create=t.create,tu.toCanvas=n.bind(null,r.render),tu.toDataURL=n.bind(null,r.renderToDataURL),tu.toString=n.bind(null,function(i,o,s){return a.render(i,s)}),tu}var bve=yve();const wve=qt(bve),rt={forest:"#2D4A2D",sage:"#7A8C5E",sand:"#C9B99A",graphite:"#1E1E1E"},EO=()=>Math.random().toString(36).slice(2,9);function AO(e){return e.normalize("NFD").replace(/[Ì-ͯ]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")}function Sve(){const[e,t]=L.useState([]),[r,a]=L.useState(!0),[n,i]=L.useState(!1),[o,s]=L.useState(null),[c,u]=L.useState([]),[h,f]=L.useState(!1),[m,x]=L.useState(null),[v,y]=L.useState(null),[b,S]=L.useState(null),[A,E]=L.useState(""),j=e.find(z=>z.id===o)??null,P=j?`${window.location.origin}/roadshow/${j.slug}`:"",C=L.useCallback(async()=>{a(!0);try{const z=await fetch("/api/roadshow/eventos");if(z.status===503){i(!0),t([]);return}const V=await z.json();if(!z.ok)throw new Error(V.error);t(V.eventos??[]),i(!1)}catch(z){je.error(`Falha ao carregar: ${z instanceof Error?z.message:"erro"}`)}finally{a(!1)}},[]);L.useEffect(()=>{C()},[C]),L.useEffect(()=>{fetch("/api/roadshow/config").then(z=>z.json()).then(z=>{y(!!z.emailConfigurado),S(z.remetente??null)}).catch(()=>y(null))},[]),L.useEffect(()=>{if(!o){u([]);return}fetch(`/api/roadshow/eventos/${o}/inscricoes`).then(z=>z.json()).then(z=>u(z.inscricoes??[])).catch(()=>u([]))},[o]),L.useEffect(()=>{if(!P){E("");return}wve.toDataURL(P,{width:1024,margin:1,errorCorrectionLevel:"H",color:{dark:"#1A2A4AFF",light:"#FFFFFFFF"}}).then(E).catch(()=>E(""))},[P]);const N=async z=>{try{const V=await fetch(`/api/roadshow/eventos/${z.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(z)}),Z=await V.json();if(!V.ok)throw new Error(Z.error);je.success("Roadshow salvo."),f(!1),await C(),s(z.id)}catch(V){je.error(`Falha: ${V instanceof Error?V.message:"erro"}`)}},O=async z=>{if(!confirm(`Remover "${z.nome}"? As ${z.totalInscricoes??0} inscrições também serão apagadas.`))return;(await fetch(`/api/roadshow/eventos/${z.id}`,{method:"DELETE"})).ok?(je.success("Removido."),s(null),await C()):je.error("Falha ao remover.")},k=async z=>{if(!confirm(`Remover a inscrição de ${z.nome} (${z.empresa})? Não dá pra desfazer.`))return;if(!(await fetch(`/api/roadshow/inscricoes/${z.id}`,{method:"DELETE"})).ok){je.error("Falha ao remover.");return}u(Z=>Z.filter(te=>te.id!==z.id)),await C(),je.success("Inscrição removida.")},B=()=>
1204{if(!A||!j)return;const z=document.createElement("a");z.href=A,z.download=`qrcode-${j.slug}.png`,z.click()},$=z=>z.sessoes_ids&&z.sessoes_ids.length?z.sessoes_ids:[z.sessao_id],_=z=>$(z).map((V,Z)=>{const te=j?.sessoes.find(q=>q.id===V),K=te?`${te.data} ${te.horario}`:V;return $(z).length>1?`${Z+1}ª ${K}`:K}).join(" | "),W=()=>{if(!j)return"";const z=[`${j.nome} â ${c.length} inscrito(s)`,"Cada pessoa pode ter sinalizado mais de um horário, então aparece em mais de um bloco.",j.titulo,""];for(const Z of j.sessoes){const te=c.filter(K=>$(K).includes(Z.id));te.length!==0&&(z.push(`${Z.data} · ${Z.horario} â ${te.length} sinalizaram`),te.forEach((K,q)=>{const X=$(K).indexOf(Z.id)+1,U=$(K).length>1?` (${X}ª opção dele)`:"";z.push(` ${q+1}. ${K.nome} â ${K.empresa} â ${K.email} â ${K.telefone}${U}`),K.observacoes&&z.push(` obs: ${K.observacoes}`)}),z.push(""))}const V=c.filter(Z=>!$(Z).some(te=>j.sessoes.some(K=>K.id===te)));return V.length&&(z.push(`Sessão removida (${V.length})`),V.forEach((Z,te)=>z.push(` ${te+1}. ${Z.nome} â ${Z.empresa} â ${Z.email} â ${Z.telefone}`))),z.join(` 1205`).trim()},D=async()=>{const z=W();z&&(await navigator.clipboard.writeText(z),je.success("Compilado copiado â é só colar no e-mail."))},J=()=>{if(!j)return;const z=U=>{if(!U)return"";const ie=j.sessoes.find(se=>se.id===U);return ie?`${ie.data} ${ie.horario}`:U},V=Math.max(1,...c.map(U=>$(U).length)),K="\uFEFF"+[["Nome","Empresa","E-mail","Telefone",...Array.from({length:V},(U,ie)=>`${ie+1}ª opção`),"Observações","Inscrito em"],...c.map(U=>{const ie=$(U);return[U.nome,U.empresa,U.email,U.telefone,...Array.from({length:V},(se,he)=>z(ie[he])),U.observacoes??"",new Date(U.criado_em).toLocaleString("pt-BR")]})].map(U=>U.map(ie=>`"${String(ie).replace(/"/g,'""')}"`).join(";")).join(` 1206`),q=URL.createObjectURL(new Blob([K],{type:"text/csv;charset=utf-8"})),X=document.createElement("a");X.href=q,X.download=`inscricoes-${j.slug}.csv`,X.click(),URL.revokeObjectURL(q)};return n?p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:246",className:"rounded-xl p-6",style:{backgroundColor:"#fff",border:`1px solid ${rt.sand}`},children:[p.jsx("div",{"data-loc":"client/src/pages/Roadshow.tsx:247",className:"text-[15px] font-black mb-1",style:{color:rt.graphite},children:"Banco não configurado"}),p.jsxs("p",{"data-loc":"client/src/pages/Roadshow.tsx:248",className:"text-[13px] text-gray-600",children:["O roadshow guarda inscrições no Postgres. Em produção funciona; aqui no ambiente local, defina ",p.jsx("code",{"data-loc":"client/src/pages/Roadshow.tsx:250",children:"DATABASE_URL"})," para testar."]})]}):p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:257",className:"space-y-5",children:[p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:259",className:"flex items-center justify-between",children:[p.jsx("div",{"data-loc":"client/src/pages/Roadshow.tsx:260",children:p.jsx("div",{"data-loc":"client/src/pages/Roadshow.tsx:261",className:"text-[13px]",style:{color:rt.sage},children:"Convite de roadshow para investidores · QR code para o card impresso"})}),p.jsxs("button",{"data-loc":"client/src/pages/Roadshow.tsx:265",onClick:()=>{x(null),f(!0)},className:"flex items-center gap-1.5 px-4 py-2 rounded-lg text-white text-xs font-bold",style:{backgroundColor:rt.forest},children:[p.jsx(fa,{"data-loc":"client/src/pages/Roadshow.tsx:270",size:13})," Novo roadshow"]})]}),p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:274",className:"flex items-start gap-2 rounded-xl px-4 py-3 text-[12px]",style:{backgroundColor:"#7A8C5E15",border:`1px solid ${rt.sage}40`,color:"#4a5a38"},children:[p.jsx(xn,{"data-loc":"client/src/pages/Roadshow.tsx:276",size:14,className:"mt-0.5 flex-shrink-0"}),p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:277",children:["As inscrições ficam guardadas aqui no sistema. Quando quiser passar pra organização do evento, use ",p.jsx("strong",{"data-loc":"client/src/pages/Roadshow.tsx:279",children:"Copiar compilado"})," (texto pronto pra colar em e-mail ou WhatsApp) ou ",p.jsx("strong",{"data-loc":"client/src/pages/Roadshow.tsx:280",children:"Exportar CSV"})," (abre no Excel).",v===!1&&" Aviso automático por e-mail a cada inscrição está desligado â é opcional.",v===!0&&b&&p.jsxs(p.Fragment,{children:[" Cada inscrição também é avisada por e-mail, saindo de ",p.jsx("strong",{"data-loc":"client/src/pages/Roadshow.tsx:283",children:b}),"."]})]})]}),r?p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:289",className:"flex items-center gap-2 text-sm",style:{color:rt.sage},children:[p.jsx(Wt,{"data-loc":"client/src/pages/Roadshow.tsx:290",size:14,className:"animate-spin"})," Carregandoâ¦"]}):e.length===0?p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:293",className:"rounded-xl p-8 text-center",style:{backgroundColor:"#fff",border:`2px dashed ${rt.sand}`},children:[p.jsx(tF,{"data-loc":"client/src/pages/Roadshow.tsx:294",size:28,className:"mx-auto mb-3",style:{color:rt.sage}}),p.jsx("div",{"data-loc":"client/src/pages/Roadshow.tsx:295",className:"text-[15px] font-black mb-1",style:{color:rt.graphite},children:"Nenhum roadshow ainda"}),p.jsx("p",{"data-loc":"client/src/pages/Roadshow.tsx:296",className:"text-[13px] text-gray-600 mb-4",children:"Crie o convite, escolha as datas e horários, e o sistema gera o QR code do formulário."}),p.jsx("button",{"data-loc":"client/src/pages/Roadshow.tsx:299",onClick:()=>{x(null),f(!0)},className:"px-4 py-2 rounded-lg text-white text-xs font-bold",style:{backgroundColor:rt.forest},children:"Criar o primeiro"})]}):p.jsx("div",{"data-loc":"client/src/pages/Roadshow.tsx:308",className:"grid grid-cols-3 gap-4",children:e.map(z=>p.jsxs("button",{"data-loc":"client/src/pages/Roadshow.tsx:310",onClick:()=>s(z.id),className:"text-left rounded-xl p-4 transition-all",style:{backgroundColor:"#fff",border:o===z.id?`2px solid ${rt.forest}`:`1px solid ${rt.sand}`},children:[p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:319",className:"flex items-center gap-2 mb-1.5",children:[p.jsx("span",{"data-loc":"client/src/pages/Roadshow.tsx:320",className:"text-[9px] font-black uppercase px-1.5 py-0.5 rounded",style:{backgroundColor:z.status==="publicado"?"#2D7A4A18":"#C9B99A40",color:z.status==="publicado"?"#1d5c36":rt.graphite},children:z.status}),p.jsxs("span",{"data-loc":"client/src/pages/Roadshow.tsx:329",className:"text-[11px]",style:{color:rt.sage},children:[z.sessoes.length," sessões"]})]}),p.jsx("div",{"data-loc":"client/src/pages/Roadshow.tsx:333",className:"text-[14px] font-black leading-tight",style:{color:rt.graphite},children:z.nome}),p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:334",className:"text-[11px] mt-0.5",style:{color:rt.sage},children:[z.municipio,z.estado?`/${z.estado}`:""]}),p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:337",className:"flex items-center gap-1 text-[12px] mt-2 font-bold",style:{color:rt.forest},children:[p.jsx(xn,{"data-loc":"client/src/pages/Roadshow.tsx:338",size:12})," ",z.totalInscricoes??0," inscritos"]})]},z.id))}),j&&p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:347",className:"grid grid-cols-3 gap-4",children:[p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:349",className:"rounded-xl p-5",style:{backgroundColor:"#fff",border:`1px solid ${rt.sand}`},children:[p.jsx("div",{"data-loc":"client/src/pages/Roadshow.tsx:350",className:"text-[11px] font-black uppercase tracking-wider mb-3",style:{color:rt.sage},children:"QR code do card"}),A?p.jsxs(p.Fragment,{children:[p.jsx("img",{"data-loc":"client/src/pages/Roadshow.tsx:355",src:A,alt:"QR code",className:"w-full rounded-lg",style:{border:`1px solid ${rt.sand}`}}),p.jsxs("button",{"data-loc":"client/src/pages/Roadshow.tsx:356",onClick:B,className:"w-full mt-3 flex items-center justify-center gap-1.5 px-3 py-2 rounded-lg text-white text-xs font-bold",style:{backgroundColor:rt.forest},children:[p.jsx(Yl,{"data-loc":"client/src/pages/Roadshow.tsx:361",size:13})," Baixar PNG (1024px)"]}),p.jsx("div",{"data-loc":"client/src/pages/Roadshow.tsx:363",className:"text-[10px] mt-2 text-center text-gray-500",children:"Correção de erro alta â funciona mesmo impresso pequeno"})]}):p.jsx("div",{"data-loc":"client/src/pages/Roadshow.tsx:368",className:"text-[12px] text-gray-500",children:"Gerandoâ¦"})]}),p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:373",className:"rounded-xl p-5 space-y-3",style:{backgroundColor:"#fff",border:`1px solid ${rt.sand}`},children:[p.jsx("div",{"data-loc":"client/src/pages/Roadshow.tsx:374",className:"text-[11px] font-black uppercase tracking-wider",style:{color:rt.sage},children:"Link público"}),p.jsx("div",{"data-loc":"client/src/pages/Roadshow.tsx:377",className:"text-[11px] font-mono break-all px-3 py-2 rounded-lg",style:{backgroundColor:"#EDE9DF"},children:P}),p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:380",className:"grid grid-cols-2 gap-2",children:[p.jsxs("button",{"data-loc":"client/src/pages/Roadshow.tsx:381",onClick:()=>{navigator.clipboard.writeText(P),je.success("Link copiado.")},className:"flex items-center justify-center gap-1.5 px-3 py-2 rounded-lg text-xs font-bold",style:{backgroundColor:"#fff",border:`1px solid ${rt.sand}`,color:rt.forest},children:[p.jsx(rN,{"data-loc":"client/src/pages/Roadshow.tsx:386",size:12})," Copiar"]}),p.jsx("a",{"data-loc":"client/src/pages/Roadshow.tsx:388",href:P,target:"_blank",rel:"noreferrer",className:"flex items-center justify-center gap-1.5 px-3 py-2 rounded-lg text-xs font-bold",style:{backgroundColor:"#fff",border:`1px solid ${rt.sand}`,color:rt.forest},children:"Abrir"})]}),p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:398",className:"pt-2 space-y-1.5",style:{borderTop:"1px solid #EDE9DF"},children:[p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:399",className:"flex items-center gap-1.5 text-[11px]",style:{color:rt.sage},children:[p.jsx(Jz,{"data-loc":"client/src/pages/Roadshow.tsx:400",size:11})," Destino: ",j.emailsDestino||"â nenhum e-mail definido â"]}
1206),p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:402",className:"flex items-center gap-1.5 text-[11px]",style:{color:rt.sage},children:[p.jsx(wd,{"data-loc":"client/src/pages/Roadshow.tsx:403",size:11})," ",j.sessoes.map(z=>`${z.data} ${z.horario}`).join(" · ")]})]}),p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:406",className:"grid grid-cols-2 gap-2 pt-1",children:[p.jsx("button",{"data-loc":"client/src/pages/Roadshow.tsx:407",onClick:()=>{x(j),f(!0)},className:"px-3 py-2 rounded-lg text-xs font-bold",style:{backgroundColor:"#fff",border:`1px solid ${rt.sand}`,color:rt.forest},children:"Editar"}),p.jsxs("button",{"data-loc":"client/src/pages/Roadshow.tsx:414",onClick:()=>O(j),className:"flex items-center justify-center gap-1.5 px-3 py-2 rounded-lg text-xs font-bold text-red-700",style:{backgroundColor:"#fff",border:"1px solid #f0c9c4"},children:[p.jsx(ei,{"data-loc":"client/src/pages/Roadshow.tsx:419",size:12})," Remover"]})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:425",className:"rounded-xl p-5",style:{backgroundColor:"#fff",border:`1px solid ${rt.sand}`},children:[p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:426",className:"flex items-center justify-between mb-3",children:[p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:427",className:"text-[11px] font-black uppercase tracking-wider",style:{color:rt.sage},children:["Inscritos (",c.length,")"]}),c.length>0&&p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:431",className:"flex items-center gap-2",children:[p.jsx("button",{"data-loc":"client/src/pages/Roadshow.tsx:432",onClick:D,className:"text-[11px] font-bold",style:{color:rt.forest},children:"Copiar compilado"}),p.jsx("span",{"data-loc":"client/src/pages/Roadshow.tsx:435",className:"text-[11px]",style:{color:rt.sand},children:"·"}),p.jsx("button",{"data-loc":"client/src/pages/Roadshow.tsx:436",onClick:J,className:"text-[11px] font-bold",style:{color:rt.forest},children:"CSV"})]})]}),c.length===0?p.jsx("div",{"data-loc":"client/src/pages/Roadshow.tsx:443",className:"text-[12px] text-gray-500",children:"Ninguém se inscreveu ainda."}):p.jsx("div",{"data-loc":"client/src/pages/Roadshow.tsx:445",className:"space-y-2 max-h-64 overflow-auto",children:c.map(z=>p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:448",className:"flex items-start gap-2 text-[12px] pb-2",style:{borderBottom:"1px solid #EDE9DF"},children:[p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:449",className:"flex-1 min-w-0",children:[p.jsx("div",{"data-loc":"client/src/pages/Roadshow.tsx:450",className:"font-bold",style:{color:rt.graphite},children:z.nome}),p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:451",style:{color:rt.sage},children:[z.empresa," · ",z.telefone]}),p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:452",className:"text-[11px] text-gray-500 break-words",children:[z.email," · ",_(z)]})]}),p.jsx("button",{"data-loc":"client/src/pages/Roadshow.tsx:456",onClick:()=>k(z),title:"Remover esta inscrição",className:"text-gray-300 hover:text-red-600 flex-shrink-0 mt-0.5",children:p.jsx(ei,{"data-loc":"client/src/pages/Roadshow.tsx:461",size:12})})]},z.id))})]})]}),h&&p.jsx(Eve,{"data-loc":"client/src/pages/Roadshow.tsx:473",inicial:m,onFechar:()=>f(!1),onSalvar:N})]})}function Eve({inicial:e,onFechar:t,onSalvar:r}){const[a,n]=L.useState(()=>e??{id:`rs-${EO()}`,slug:"",nome:"",titulo:"",descricao:"",municipio:"",estado:"",local:"",promotores:"",emailsDestino:"",corPrimaria:"#1A2A4A",corSecundaria:"#C9A84C",sessoes:[],logoParceirosUrl:"",logoSemCaixa:!0,observacao:"",maxEscolhas:3,status:"rascunho"}),i=f=>n(m=>({...m,...f})),[o,s]=L.useState(""),[c,u]=L.useState(""),h=()=>{const f=o.split(",").map(v=>v.trim()).filter(Boolean),m=c.split(",").map(v=>v.trim()).filter(Boolean);if(!f.length||!m.length){je.error("Preencha datas e horários, separados por vÃrgula.");return}const x=[];for(const v of f)for(const y of m)x.push({id:EO(),data:v,horario:y});i({sessoes:x}),je.success(`${x.length} sessões geradas (${f.length} datas à ${m.length} horários).`)};return p.jsx("div",{"data-loc":"client/src/pages/Roadshow.tsx:529",className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4",onClick:t,children:p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:530",className:"bg-white rounded-2xl shadow-2xl max-w-2xl w-full max-h-[95vh] overflow-auto",onClick:f=>f.stopPropagation(),children:[p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:531",className:"flex items-center justify-between px-6 py-4 border-b border-gray-200 bg-gray-50",children:[p.jsx("h2",{"data-loc":"client/src/pages/Roadshow.tsx:532",className:"text-lg font-bold",style:{color:rt.forest},children:e?"Editar roadshow":"Novo roadshow"}),p.jsx("button",{"data-loc":"client/src/pages/Roadshow.tsx:535",onClick:t,className:"text-gray-400 hover:text-gray-600",children:p.jsx(dn,{"data-loc":"client/src/pages/Roadshow.tsx:535",size:18})})]}),p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:538",className:"p-6 space-y-4",children:[p.jsx(ga,{"data-loc":"client/src/pages/Roadshow.tsx:539",label:"Nome curto (uso interno) *",children:p.jsx("input",{"data-loc":"client/src/pages/Roadshow.tsx:540",value:a.nome,onChange:f=>{const m=f.target.value;i({nome:m,slug:a.slug||AO(m)})},placeholder:"RoadShow PPP São Bento do Sul",className:"w-full text-sm px-3 py-2 border border-gray-300 rounded-lg"})}),p.jsx(ga,{"data-loc":"client/src/pages/Roadshow.tsx:551",label:"TÃtulo do convite (aparece pro investidor) *",children:p.jsx("input",{"data-loc":"client/src/pages/Roadshow.tsx:552",value:a.titulo,onChange:f=>i({titulo:f.target.value}),placeholder:"ROADSHOW â PPP de Iluminação Pública e Cidades Inteligentes de São Bento do Sul",className:"w-full text-sm px-3 py-2 border border-gray-300 rounded-lg"})}),p.jsx(ga,{"data-loc":"client/src/pages/Roadshow.tsx:560",label:"Texto do convite",children:p.jsx("textarea",{"data-loc":"client/src/pages/Roadshow.tsx:561",value:a.descricao??"",onChange:f=>i({descricao:f.target.value}),rows:3,placeholder:"A Prefeitura de São Bento do Sul e o BRDE convidam os investidores interessadosâ¦",className:"w-full text-sm px-3 py-2 border border-gray-300 rounded-lg"})}),p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:570",className:"grid grid-cols-3 gap-3",children:[p.jsx(ga,{"data-loc":"client/src/pages/Roadshow.tsx:571",label:"Mu
1206nicÃpio",children:p.jsx("input",{"data-loc":"client/src/pages/Roadshow.tsx:571",value:a.municipio??"",onChange:f=>i({municipio:f.target.value}),className:"w-full text-sm px-3 py-2 border border-gray-300 rounded-lg"})}),p.jsx(ga,{"data-loc":"client/src/pages/Roadshow.tsx:572",label:"UF",children:p.jsx("input",{"data-loc":"client/src/pages/Roadshow.tsx:572",value:a.estado??"",onChange:f=>i({estado:f.target.value}),maxLength:2,className:"w-full text-sm px-3 py-2 border border-gray-300 rounded-lg uppercase"})}),p.jsx(ga,{"data-loc":"client/src/pages/Roadshow.tsx:573",label:"Link (slug) *",children:p.jsx("input",{"data-loc":"client/src/pages/Roadshow.tsx:573",value:a.slug,onChange:f=>i({slug:AO(f.target.value)}),className:"w-full text-sm px-3 py-2 border border-gray-300 rounded-lg font-mono"})})]}),p.jsx(ga,{"data-loc":"client/src/pages/Roadshow.tsx:576",label:"Local do evento",children:p.jsx("input",{"data-loc":"client/src/pages/Roadshow.tsx:577",value:a.local??"",onChange:f=>i({local:f.target.value}),placeholder:"Auditório da Prefeitura",className:"w-full text-sm px-3 py-2 border border-gray-300 rounded-lg"})}),p.jsx(ga,{"data-loc":"client/src/pages/Roadshow.tsx:580",label:"Quem convida",children:p.jsx("input",{"data-loc":"client/src/pages/Roadshow.tsx:581",value:a.promotores??"",onChange:f=>i({promotores:f.target.value}),placeholder:"Prefeitura de São Bento do Sul e BRDE",className:"w-full text-sm px-3 py-2 border border-gray-300 rounded-lg"})}),p.jsx(ga,{"data-loc":"client/src/pages/Roadshow.tsx:584",label:"E-mails avisados a cada inscrição (opcional)",children:p.jsx("input",{"data-loc":"client/src/pages/Roadshow.tsx:585",value:a.emailsDestino??"",onChange:f=>i({emailsDestino:f.target.value}),placeholder:"[email protected]",className:"w-full text-sm px-3 py-2 border border-gray-300 rounded-lg"})}),p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:594",className:"rounded-xl p-4",style:{backgroundColor:"#EDE9DF60",border:`1px solid ${rt.sand}`},children:[p.jsx("div",{"data-loc":"client/src/pages/Roadshow.tsx:595",className:"text-[11px] font-black uppercase tracking-wider mb-2",style:{color:rt.sage},children:"Datas e horários"}),p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:598",className:"grid grid-cols-2 gap-2 mb-2",children:[p.jsx("input",{"data-loc":"client/src/pages/Roadshow.tsx:599",value:o,onChange:f=>s(f.target.value),placeholder:"Datas: 13/10, 14/10, 15/10, 16/10",className:"text-sm px-3 py-2 border border-gray-300 rounded-lg"}),p.jsx("input",{"data-loc":"client/src/pages/Roadshow.tsx:600",value:c,onChange:f=>u(f.target.value),placeholder:"Horários: 14h, 15h, 16h, 17h",className:"text-sm px-3 py-2 border border-gray-300 rounded-lg"})]}),p.jsx("button",{"data-loc":"client/src/pages/Roadshow.tsx:602",onClick:h,className:"text-xs font-bold px-3 py-1.5 rounded-lg text-white",style:{backgroundColor:rt.sage},children:"Gerar sessões (datas à horários)"}),a.sessoes.length>0&&p.jsx("div",{"data-loc":"client/src/pages/Roadshow.tsx:606",className:"mt-3 flex flex-wrap gap-1.5",children:a.sessoes.map(f=>p.jsxs("span",{"data-loc":"client/src/pages/Roadshow.tsx:608",className:"text-[11px] px-2 py-1 rounded-lg flex items-center gap-1.5",style:{backgroundColor:"#fff",border:`1px solid ${rt.sand}`},children:[f.data," · ",f.horario,p.jsx("button",{"data-loc":"client/src/pages/Roadshow.tsx:610",onClick:()=>i({sessoes:a.sessoes.filter(m=>m.id!==f.id)}),className:"text-gray-400 hover:text-red-600",children:p.jsx(dn,{"data-loc":"client/src/pages/Roadshow.tsx:611",size:10})})]},f.id))})]}),p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:620",className:"rounded-xl p-4 space-y-3",style:{backgroundColor:"#EDE9DF60",border:`1px solid ${rt.sand}`},children:[p.jsx("div",{"data-loc":"client/src/pages/Roadshow.tsx:621",className:"text-[11px] font-black uppercase tracking-wider",style:{color:rt.sage},children:"Identidade visual"}),p.jsx("div",{"data-loc":"client/src/pages/Roadshow.tsx:625",className:"flex flex-wrap gap-2",children:Vu.map(f=>{const m=a.corPrimaria===f.paleta.primaria&&a.corSecundaria===f.paleta.secundaria;return p.jsxs("button",{"data-loc":"client/src/pages/Roadshow.tsx:629",onClick:()=>i({corPrimaria:f.paleta.primaria,corSecundaria:f.paleta.secundaria,logoUrl:f.logoUrl||a.logoUrl}),className:"flex items-center gap-2 px-3 py-1.5 rounded-lg text-[11px] font-bold",style:{backgroundColor:"#fff",border:m?`2px solid ${rt.forest}`:`1px solid ${rt.sand}`,color:rt.graphite},children:[p.jsxs("span",{"data-loc":"client/src/pages/Roadshow.tsx:643",className:"flex gap-0.5",children:[p.jsx("span",{"data-loc":"client/src/pages/Roadshow.tsx:644",className:"w-3 h-3 rounded-sm",style:{backgroundColor:f.paleta.primaria}}),p.jsx("span",{"data-loc":"client/src/pages/Roadshow.tsx:645",className:"w-3 h-3 rounded-sm",style:{backgroundColor:f.paleta.secundaria}})]}),f.municipio]},f.slug)})}),p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:653",className:"grid grid-cols-3 gap-3",children:[p.jsx(ga,{"data-loc":"client/src/pages/Roadshow.tsx:654",label:"Cor primária",children:p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:655",className:"flex items-center gap-2",children:[p.jsx("input",{"data-loc":"client/src/pages/Roadshow.tsx:656",type:"color",value:a.corPrimaria??"#06837F",onChange:f=>i({corPrimaria:f.target.value}),className:"w-9 h-9 rounded border border-gray-300 cursor-pointer"}),p.jsx("input",{"data-loc":"client/src/pages/Roadshow.tsx:659",value:a.corPrimaria??"",onChange:f=>i({corPrimaria:f.target.value}),className:"flex-1 text-sm px-2 py-2 border border-gray-300 rounded-lg font-mono"})]})}),p.jsx(ga,{"data-loc":"client/src/pages/Roadshow.tsx:663",label:"Cor secundária",children:p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:664",className:"flex items-center gap-2",children:[p.jsx("input",{"data-loc":"client/src/pages/Roadshow.tsx:665",type:"color",value:a.corSecundaria??"#FED811",onChange:f=>i({corSecundaria:f.target.value}),className:"w-9 h-9 rounded border border-gray-300 cursor-pointer"}),p.jsx("input",{"data-loc":"client/src/pages/Roadshow.tsx:668",value:a.corSecundaria??"",onChange:f=>i({corSecundaria:f.target.value}),className:"flex-1 text-sm px-2 py-2 border border-gray-300 rounded-lg font-mono"})]})}),p.jsxs(ga,{"data-loc":"client/src/pages/Roadshow.tsx:672",label:"Logo do projeto",children:[p.jsx("input",{"data-loc":"client/src/pages/Roadshow.tsx:673",type:"file",accept:"image/*",id:"logo-roadshow",className:"hidden",onChange:f=>{const m=f.target.files?.[0];if(!m)return;if(m.size>2*1024*1024){je.error("Logo até 2 MB.");return}const x=new FileReader;x.onload=()=>i({logoUrl:String(x.result)}),x.readAsDataURL(m)}}),p.jsx("label",{"data-loc":"client/src/pages/Roadshow.tsx:682",htmlFor:"logo-roadshow",className:"flex items-center justify-center gap-1.5 px-3 py-2 rounded-lg text-xs font-bold cursor-pointer",style:{backgroundColor:"#fff",border:`1px dashed ${rt.sand}`,color:rt.forest},children:a.logoUrl?"Trocar logo":"Subir logo"})]})]}),p.jsx("div",{"data-loc":"client/src/pages/Roadshow.tsx:691",className:"rounded-xl overflow-hidden",style:{border:`1px solid ${rt.sand}`},children:p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:692",className:"px-4 py-3 flex items-center gap-3",style:{backgroundColor:a.corPrimaria??"#06837F"},children:[a.logoUrl&&p.jsx("div",{"data-loc":"client/src/pages/Roadshow.tsx:694",className:"bg-white rounded-lg p-1
1206w-12 h-12 flex-shrink-0 flex items-center justify-center",children:p.jsx("img",{"data-loc":"client/src/pages/Roadshow.tsx:695",src:a.logoUrl,alt:"",className:"max-w-full max-h-full object-contain"})}),p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:698",className:"min-w-0",children:[p.jsx("div",{"data-loc":"client/src/pages/Roadshow.tsx:699",className:"text-[8px] font-black uppercase tracking-[2px]",style:{color:a.corSecundaria??"#FED811"},children:"Roadshow"}),p.jsx("div",{"data-loc":"client/src/pages/Roadshow.tsx:702",className:"text-white text-[12px] font-black leading-tight truncate",children:a.titulo||"TÃtulo do convite"})]}),a.logoUrl&&p.jsx("button",{"data-loc":"client/src/pages/Roadshow.tsx:707",onClick:()=>i({logoUrl:""}),className:"ml-auto text-white/60 hover:text-white flex-shrink-0",title:"Remover logo",children:p.jsx(dn,{"data-loc":"client/src/pages/Roadshow.tsx:709",size:13})})]})}),p.jsxs("label",{"data-loc":"client/src/pages/Roadshow.tsx:715",className:"flex items-start gap-2 text-[11px] cursor-pointer",style:{color:rt.graphite},children:[p.jsx("input",{"data-loc":"client/src/pages/Roadshow.tsx:716",type:"checkbox",checked:a.logoSemCaixa??!1,onChange:f=>i({logoSemCaixa:f.target.checked}),className:"mt-0.5"}),p.jsxs("span",{"data-loc":"client/src/pages/Roadshow.tsx:722",children:[p.jsx("strong",{"data-loc":"client/src/pages/Roadshow.tsx:723",children:"A logo já é a versão para fundo escuro"})," â aplica direto sobre a cor, sem caixa branca. Marque quando a logo tiver texto branco ou claro; desmarque para logo colorida sobre fundo claro."]})]}),p.jsx(ga,{"data-loc":"client/src/pages/Roadshow.tsx:729",label:"Régua de parceiros (faixa inferior exigida pelo manual de marca)",children:p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:730",className:"flex items-center gap-2",children:[p.jsx("input",{"data-loc":"client/src/pages/Roadshow.tsx:731",type:"file",accept:"image/*",id:"regua-roadshow",className:"hidden",onChange:f=>{const m=f.target.files?.[0];if(!m)return;if(m.size>3*1024*1024){je.error("Régua até 3 MB.");return}const x=new FileReader;x.onload=()=>i({logoParceirosUrl:String(x.result)}),x.readAsDataURL(m)}}),p.jsx("label",{"data-loc":"client/src/pages/Roadshow.tsx:740",htmlFor:"regua-roadshow",className:"px-3 py-2 rounded-lg text-xs font-bold cursor-pointer whitespace-nowrap",style:{backgroundColor:"#fff",border:`1px dashed ${rt.sand}`,color:rt.forest},children:a.logoParceirosUrl?"Trocar régua":"Subir régua"}),a.logoParceirosUrl&&p.jsxs(p.Fragment,{children:[p.jsx("img",{"data-loc":"client/src/pages/Roadshow.tsx:747",src:a.logoParceirosUrl,alt:"",className:"flex-1 h-9 object-contain bg-white rounded px-2",style:{border:`1px solid ${rt.sand}`}}),p.jsx("button",{"data-loc":"client/src/pages/Roadshow.tsx:749",onClick:()=>i({logoParceirosUrl:""}),className:"text-gray-400 hover:text-red-600 flex-shrink-0",title:"Remover régua",children:p.jsx(dn,{"data-loc":"client/src/pages/Roadshow.tsx:751",size:13})})]})]})})]}),p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:759",className:"grid grid-cols-4 gap-3",children:[p.jsx("div",{"data-loc":"client/src/pages/Roadshow.tsx:760",className:"col-span-3",children:p.jsx(ga,{"data-loc":"client/src/pages/Roadshow.tsx:761",label:"Aviso exibido no formulário (opcional)",children:p.jsx("textarea",{"data-loc":"client/src/pages/Roadshow.tsx:762",value:a.observacao??"",onChange:f=>i({observacao:f.target.value}),rows:2,placeholder:"Tratam-se de propostas de horários para a participação nas reuniõesâ¦",className:"w-full text-sm px-3 py-2 border border-gray-300 rounded-lg"})})}),p.jsx(ga,{"data-loc":"client/src/pages/Roadshow.tsx:771",label:"Máx. de horários",children:p.jsx("input",{"data-loc":"client/src/pages/Roadshow.tsx:772",type:"number",min:1,max:6,value:a.maxEscolhas??3,onChange:f=>i({maxEscolhas:Number(f.target.value)||3}),className:"w-full text-sm px-3 py-2 border border-gray-300 rounded-lg"})})]}),p.jsx(ga,{"data-loc":"client/src/pages/Roadshow.tsx:783",label:"Situação",children:p.jsx("div",{"data-loc":"client/src/pages/Roadshow.tsx:784",className:"flex gap-2",children:["rascunho","publicado"].map(f=>p.jsx("button",{"data-loc":"client/src/pages/Roadshow.tsx:786",onClick:()=>i({status:f}),className:"px-3 py-1.5 rounded-lg text-xs font-bold capitalize",style:{backgroundColor:a.status===f?rt.forest:"#fff",color:a.status===f?"#fff":rt.forest,border:`1px solid ${a.status===f?rt.forest:rt.sand}`},children:f},f))})})]}),p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:803",className:"px-6 py-4 border-t border-gray-200 flex justify-end gap-2 bg-gray-50",children:[p.jsx("button",{"data-loc":"client/src/pages/Roadshow.tsx:804",onClick:t,className:"px-4 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100",children:"Cancelar"}),p.jsx("button",{"data-loc":"client/src/pages/Roadshow.tsx:805",onClick:()=>r(a),disabled:!a.nome||!a.titulo||!a.slug,className:"px-4 py-2 rounded-lg text-white text-sm font-bold disabled:opacity-40",style:{backgroundColor:rt.forest},children:"Salvar"})]})]})})}function ga({label:e,children:t}){return p.jsxs("div",{"data-loc":"client/src/pages/Roadshow.tsx:821",children:[p.jsx("label",{"data-loc":"client/src/pages/Roadshow.tsx:822",className:"text-[11px] font-black uppercase tracking-wider block mb-1",style:{color:rt.sage},children:e}),t]})}function Ave({slug:e}){const[t,r]=L.useState(null),[a,n]=L.useState({}),[i,o]=L.useState(!0),[s,c]=L.useState(null),[u,h]=L.useState(""),[f,m]=L.useState(""),[x,v]=L.useState(""),[y,b]=L.useState(""),[S,A]=L.useState([]),[E,j]=L.useState(""),[P,C]=L.useState(!1),[N,O]=L.useState(null),[k,B]=L.useState(null);L.useEffect(()=>{(async()=>{try{const V=await fetch(`/api/roadshow/publico/${encodeURIComponent(e)}`),Z=await V.json();if(!V.ok)throw new Error(Z.error||`HTTP ${V.status}`);r(Z.evento),n(Z.ocupacao??{})}catch(V){c(V instanceof Error?V.message:"Falha ao carregar")}finally{o(!1)}})()},[e]);const $=t?.corPrimaria||"#1A2A4A",_=t?.corSecundaria||"#C9A84C",W=V=>{const Z=V.replace(/\D/g,"").slice(0,11);return Z.length<=2?Z:Z.length<=6?`(${Z.slice(0,2)}) ${Z.slice(2)}`:Z.length<=10?`(${Z.slice(0,2)}) ${Z.slice(2,6)}-${Z.slice(6)}`:`(${Z.slice(0,2)}) ${Z.slice(2,7)}-${Z.slice(7)}`},D=t?.maxEscolhas??3,J=V=>{O(null),A(Z=>Z.includes(V)?Z.filter(te=>te!==V):Z.length>=D?Z:[...Z,V])},z=async()=>
1206{if(O(null),!u.trim()||!f.trim()||!x.trim()||!y.trim()){O("Preencha nome, empresa, e-mail e telefone.");return}if(S.length===0){O("Escolha pelo menos um horário.");return}C(!0);try{const V=await fetch("/api/roadshow/inscricoes",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({slug:e,nome:u,empresa:f,email:x,telefone:y,sessoesIds:S,observacoes:E})}),Z=await V.json();if(!V.ok)throw new Error(Z.error||`HTTP ${V.status}`);B(Z.sessoes)}catch(V){O(V instanceof Error?V.message:"Falha ao enviar")}finally{C(!1)}};return i?p.jsx("div",{"data-loc":"client/src/pages/RoadshowPublico.tsx:122",className:"min-h-screen flex items-center justify-center bg-[#F5F3EF]",children:p.jsx(Wt,{"data-loc":"client/src/pages/RoadshowPublico.tsx:123",className:"animate-spin",size:22,style:{color:"#1A2A4A"}})}):s||!t?p.jsx("div",{"data-loc":"client/src/pages/RoadshowPublico.tsx:130",className:"min-h-screen flex items-center justify-center bg-[#F5F3EF] p-6",children:p.jsxs("div",{"data-loc":"client/src/pages/RoadshowPublico.tsx:131",className:"max-w-md text-center",children:[p.jsx(Bl,{"data-loc":"client/src/pages/RoadshowPublico.tsx:132",size:32,className:"mx-auto mb-3",style:{color:"#c0392b"}}),p.jsx("div",{"data-loc":"client/src/pages/RoadshowPublico.tsx:133",className:"text-lg font-bold text-[#1E1E1E] mb-1",children:"Inscrição indisponÃvel"}),p.jsx("p",{"data-loc":"client/src/pages/RoadshowPublico.tsx:134",className:"text-sm text-gray-600",children:s})]})}):k?p.jsx("div",{"data-loc":"client/src/pages/RoadshowPublico.tsx:142",className:"min-h-screen flex items-center justify-center bg-[#F5F3EF] p-6",children:p.jsxs("div",{"data-loc":"client/src/pages/RoadshowPublico.tsx:143",className:"max-w-md w-full bg-white rounded-2xl p-8 text-center",style:{border:"1px solid #E2DED6"},children:[p.jsx(ta,{"data-loc":"client/src/pages/RoadshowPublico.tsx:144",size:40,className:"mx-auto mb-4",style:{color:"#2D7A4A"}}),p.jsx("div",{"data-loc":"client/src/pages/RoadshowPublico.tsx:145",className:"text-xl font-black mb-2",style:{color:$},children:"Inscrição confirmada"}),p.jsxs("p",{"data-loc":"client/src/pages/RoadshowPublico.tsx:146",className:"text-sm text-gray-600 mb-4",children:["Recebemos ",k.length===1?"o horário que você sinalizou":`as ${k.length} opções que você sinalizou`,":"]}),p.jsx("ul",{"data-loc":"client/src/pages/RoadshowPublico.tsx:149",className:"text-sm mb-5 space-y-1",children:k.map((V,Z)=>p.jsx("li",{"data-loc":"client/src/pages/RoadshowPublico.tsx:151",style:{color:$},children:p.jsxs("strong",{"data-loc":"client/src/pages/RoadshowPublico.tsx:152",children:[k.length>1?`${Z+1}ª opção â `:"",V.data,", à s ",V.horario]})},Z))}),t.observacao&&p.jsx("p",{"data-loc":"client/src/pages/RoadshowPublico.tsx:157",className:"text-[12px] text-gray-600 mb-5 px-3 py-2.5 rounded-xl text-left",style:{backgroundColor:`${_}18`},children:t.observacao}),p.jsx("div",{"data-loc":"client/src/pages/RoadshowPublico.tsx:162",className:"text-[12px] text-gray-500 pt-4",style:{borderTop:"1px solid #EDE9DF"},children:t.nome}),t.logoParceirosUrl&&p.jsx("img",{"data-loc":"client/src/pages/RoadshowPublico.tsx:166",src:t.logoParceirosUrl,alt:"Parceiros do projeto",className:"w-full max-h-12 object-contain mt-4"})]})}):p.jsxs("div",{"data-loc":"client/src/pages/RoadshowPublico.tsx:178",className:"min-h-screen bg-[#F5F3EF]",children:[p.jsx("div",{"data-loc":"client/src/pages/RoadshowPublico.tsx:180",className:"px-6 py-10",style:{backgroundColor:$},children:p.jsxs("div",{"data-loc":"client/src/pages/RoadshowPublico.tsx:181",className:"max-w-2xl mx-auto flex items-center gap-5",children:[t.logoUrl&&(t.logoSemCaixa?p.jsx("img",{"data-loc":"client/src/pages/RoadshowPublico.tsx:185",src:t.logoUrl,alt:"",className:"h-20 max-w-[220px] object-contain flex-shrink-0"}):p.jsx("div",{"data-loc":"client/src/pages/RoadshowPublico.tsx:191",className:"bg-white rounded-xl p-2 w-24 h-24 flex-shrink-0 flex items-center justify-center",children:p.jsx("img",{"data-loc":"client/src/pages/RoadshowPublico.tsx:192",src:t.logoUrl,alt:"",className:"max-w-full max-h-full object-contain"})})),p.jsxs("div",{"data-loc":"client/src/pages/RoadshowPublico.tsx:196",children:[p.jsx("div",{"data-loc":"client/src/pages/RoadshowPublico.tsx:197",className:"text-[11px] font-black uppercase tracking-[2px] mb-1",style:{color:_},children:"Roadshow"}),p.jsx("h1",{"data-loc":"client/src/pages/RoadshowPublico.tsx:200",className:"text-white text-xl font-black leading-tight",children:t.titulo}),(t.municipio||t.local)&&p.jsxs("div",{"data-loc":"client/src/pages/RoadshowPublico.tsx:202",className:"text-white/70 text-[13px] mt-1.5 flex items-center gap-1.5",children:[p.jsx(Zl,{"data-loc":"client/src/pages/RoadshowPublico.tsx:203",size:12}),[t.local,t.municipio&&`${t.municipio}${t.estado?`/${t.estado}`:""}
1206`].filter(Boolean).join(" · ")]})]})]})}),p.jsxs("div",{"data-loc":"client/src/pages/RoadshowPublico.tsx:212",className:"max-w-2xl mx-auto px-6 py-8 space-y-5",children:[t.descricao&&p.jsxs("div",{"data-loc":"client/src/pages/RoadshowPublico.tsx:214",className:"bg-white rounded-2xl p-6",style:{border:"1px solid #E2DED6"},children:[p.jsx("p",{"data-loc":"client/src/pages/RoadshowPublico.tsx:217",className:"text-[14px] leading-relaxed text-[#1E1E1E] whitespace-pre-line",children:t.descricao}),t.promotores&&p.jsx("p",{"data-loc":"client/src/pages/RoadshowPublico.tsx:221",className:"text-[12px] mt-4 pt-3",style:{color:"#7A8C5E",borderTop:"1px solid #EDE9DF"},children:t.promotores})]}),p.jsxs("div",{"data-loc":"client/src/pages/RoadshowPublico.tsx:228",className:"bg-white rounded-2xl p-6 space-y-5",style:{border:"1px solid #E2DED6"},children:[p.jsxs("div",{"data-loc":"client/src/pages/RoadshowPublico.tsx:229",children:[p.jsxs("div",{"data-loc":"client/src/pages/RoadshowPublico.tsx:230",className:"flex items-center justify-between gap-2 mb-1",children:[p.jsxs("div",{"data-loc":"client/src/pages/RoadshowPublico.tsx:231",className:"flex items-center gap-2",children:[p.jsx(Hee,{"data-loc":"client/src/pages/RoadshowPublico.tsx:232",size:15,style:{color:$}}),p.jsxs("span",{"data-loc":"client/src/pages/RoadshowPublico.tsx:233",className:"text-[13px] font-black",style:{color:$},children:["Sinalize até ",D," horários"]})]}),p.jsxs("span",{"data-loc":"client/src/pages/RoadshowPublico.tsx:237",className:"text-[11px] font-black px-2 py-0.5 rounded-full whitespace-nowrap",style:{backgroundColor:S.length?`${$}12`:"#EFEDE8",color:S.length?$:"#8A8A8A"},children:[S.length," de ",D]})]}),p.jsx("p",{"data-loc":"client/src/pages/RoadshowPublico.tsx:247",className:"text-[12px] text-gray-500 mb-3",children:"Marque os horários em que você teria dis
1206ponibilidade. A ordem em que você clicar é a ordem de preferência."}),p.jsx("div",{"data-loc":"client/src/pages/RoadshowPublico.tsx:251",className:"grid grid-cols-2 sm:grid-cols-4 gap-2",children:t.sessoes.map(V=>{const Z=a[V.id]??0,te=!!(V.vagas&&V.vagas>0&&Z>=V.vagas),K=S.indexOf(V.id),q=K>=0,X=!q&&S.length>=D,U=te||X;return p.jsxs("button",{"data-loc":"client/src/pages/RoadshowPublico.tsx:260",type:"button",disabled:U,onClick:()=>J(V.id),className:`relative text-left px-3 py-2.5 rounded-xl transition-all ${U?"opacity-35 cursor-not-allowed":""}`,style:{border:q?`2px solid ${$}`:"1px solid #E2DED6",backgroundColor:q?`${$}0A`:"#fff"},children:[q&&p.jsx("span",{"data-loc":"client/src/pages/RoadshowPublico.tsx:272",className:"absolute -top-2 -right-2 w-5 h-5 rounded-full text-[10px] font-black text-white flex items-center justify-center",style:{backgroundColor:$},children:K+1}),p.jsx("div",{"data-loc":"client/src/pages/RoadshowPublico.tsx:279",className:"text-[13px] font-bold",style:{color:"#1E1E1E"},children:V.data}),p.jsxs("div",{"data-loc":"client/src/pages/RoadshowPublico.tsx:280",className:"text-[12px]",style:{color:q?$:"#7A8C5E"},children:[V.horario,te?" · lotado":V.vagas?` · ${V.vagas-Z} vagas`:""]})]},V.id)})}),t.observacao&&p.jsx("div",{"data-loc":"client/src/pages/RoadshowPublico.tsx:288",className:"mt-3 text-[12px] leading-relaxed px-3.5 py-3 rounded-xl",style:{backgroundColor:`${_}18`,color:"#5c4a1a"},children:t.observacao})]}),p.jsxs("div",{"data-loc":"client/src/pages/RoadshowPublico.tsx:297",className:"grid grid-cols-2 gap-3",children:[p.jsx(Kg,{"data-loc":"client/src/pages/RoadshowPublico.tsx:298",label:"Nome completo *",value:u,onChange:h,placeholder:"Seu nome"}),p.jsx(Kg,{"data-loc":"client/src/pages/RoadshowPublico.tsx:299",label:"Empresa *",value:f,onChange:m,placeholder:"Nome da empresa"}),p.jsx(Kg,{"data-loc":"client/src/pages/RoadshowPublico.tsx:300",label:"E-mail *",value:x,onChange:v,placeholder:"[email protected]",type:"email"}),p.jsx(Kg,{"data-loc":"client/src/pages/RoadshowPublico.tsx:301",label:"Telefone com DDD *",value:y,onChange:V=>b(W(V)),placeholder:"(47) 99999-9999",inputMode:"tel"})]}),p.jsxs("div",{"data-loc":"client/src/pages/RoadshowPublico.tsx:310",children:[p.jsx("label",{"data-loc":"client/src/pages/RoadshowPublico.tsx:311",className:"text-[11px] font-black uppercase tracking-wider block mb-1",style:{color:"#7A8C5E"},children:"Observações (opcional)"}),p.jsx("textarea",{"data-loc":"client/src/pages/RoadshowPublico.tsx:314",value:E,onChange:V=>j(V.target.value),rows:2,placeholder:"Algo que devemos saber?",className:"w-full text-sm px-3 py-2 border border-gray-300 rounded-xl"})]}),N&&p.jsx("div",{"data-loc":"client/src/pages/RoadshowPublico.tsx:324",className:"text-[13px] text-red-700 bg-red-50 border border-red-200 rounded-xl px-3 py-2.5",children:N}),p.jsx("button",{"data-loc":"client/src/pages/RoadshowPublico.tsx:329",onClick:z,disabled:P,className:"w-full py-3 rounded-xl text-white text-[14px] font-black disabled:opacity-50 transition-opacity",style:{backgroundColor:$},children:P?"Enviandoâ¦":"Confirmar inscrição"}),p.jsx("p",{"data-loc":"client/src/pages/RoadshowPublico.tsx:338",className:"text-[11px] text-center text-gray-500",children:"Seus dados são usados exclusivamente para organizar este roadshow, em conformidade com a LGPD (Lei nº 13.709/2018)."})]})]}),t.logoParceirosUrl&&p.jsx("div",{"data-loc":"client/src/pages/RoadshowPublico.tsx:346",className:"px-6 pb-10 pt-2",children:p.jsx("div",{"data-loc":"client/src/pages/RoadshowPublico.tsx:347",className:"max-w-2xl mx-auto",children:p.jsx("div",{"data-loc":"client/src/pages/RoadshowPublico.tsx:348",className:"bg-white rounded-xl px-4 py-3 flex items-center justify-center",style:{border:`1px solid ${_}`},children:p.jsx("img",{"data-loc":"client/src/pages/RoadshowPublico.tsx:352",src:t.logoParceirosUrl,alt:"Parceiros do projeto",className:"w-full max-h-16 object-contain"})})})})]})}function Kg({label:e,value:t,onChange:r,placeholder:a,type:n="text",inputMode:i}){return p.jsxs("div",{"data-loc":"client/src/pages/RoadshowPublico.tsx:376",children:[p.jsx("label",{"data-loc":"client/src/pages/RoadshowPublico.tsx:377",className:"text-[11px] font-black uppercase tracking-wider block mb-1",style:{color:"#7A8C5E"},children:e}),p.jsx("input",{"data-loc":"client/src/pages/RoadshowPublico.tsx:380",type:n,inputMode:i,value:t,onChange:o=>r(o.target.value),placeholder:a,className:"w-full text-sm px-3 py-2 border border-gray-300 rounded-xl"})]})}const ip=e=>(e||"#2D4A2D").replace("#","").toUpperCase();async function Cve(e,t=2){const a=document.querySelector(`[data-grafico="${CSS.escape(e)}"]`)?.querySelector("svg");if(!a)return null;const n=a.getBoundingClientRect(),i=Math.max(1,Math.round(n.width)),o=Math.max(1,Math.round(n.height));if(i<20||o<20)return null;const s=a.cloneNode(!0);s.setAttribute("xmlns","http://www.w3.org/2000/svg"),s.setAttribute("width",String(i)),s.setAttribute("height",String(o));const c=document.createElementNS("http://www.w3.org/2000/svg","rect");c.setAttribute("width","100%"),c.setAttribute("height","100%"),c.setAttribute("fill","#ffffff"),s.insertBefore(c,s.firstChild),s.setAttribute("font-family","Arial, Helvetica, sans-serif");const u=new XMLSerializer().serializeToString(s),h=URL.createObjectURL(new Blob([u],{type:"image/svg+xml;charset=utf-8"})),f=new Image;f.src=h;try{await Promise.race([f.decode(),new Promise((y,b)=>setTimeout(()=>b(new Error("timeout")),8e3))])}catch{return URL.revokeObjectURL(h),null}
1206const m=document.createElement("canvas");m.width=i*t,m.height=o*t;const x=m.getContext("2d");if(!x)return null;x.fillStyle="#ffffff",x.fillRect(0,0,m.width,m.height),x.scale(t,t),x.drawImage(f,0,0,i,o),URL.revokeObjectURL(h);const v=await new Promise(y=>m.toBlob(y,"image/png"));return v?{png:new Uint8Array(await v.arrayBuffer()),largura:i,altura:o}:null}function rn(e,t={}){return new pt({spacing:{after:t.espacoDepois??120},alignment:tr.JUSTIFIED,children:[new bt({text:e,bold:t.negrito,size:(t.tamanho??10.5)*2,color:t.cor,font:"Calibri"})]})}function Qw(e,t,r){const a={style:Fl.SINGLE,size:1,color:"D9D9D9"},n=(o,s)=>new $p({shading:{type:F$.CLEAR,fill:ip(e)},margins:{top:60,bottom:60,left:100,right:100},children:[new pt({alignment:s,children:[new bt({text:o,bold:!0,color:"FFFFFF",size:18,font:"Calibri"})]})]}),i=(o,s)=>new $p({margins:{top:60,bottom:60,left:100,right:100},children:[new pt({alignment:s,children:[new bt({text:o,size:18,font:"Calibri"})]})]});return new mq({width:{size:100,type:$u.PERCENTAGE},borders:{top:a,bottom:a,left:a,right:a,insideHorizontal:a,insideVertical:a},rows:[new Vx({tableHeader:!0,children:[n(t),n("Respostas",tr.RIGHT),n("%",tr.RIGHT)]}),...r.map(([o,s,c])=>new Vx({children:[i(o),i(String(s),tr.RIGHT),i(c,tr.RIGHT)]}))]})}async function Pve(e){let t=0,r=0;const a=e.respostas.length,n=h=>a>0?`${Math.round(h/a*100)}%`:"0%",i=h=>e.respostas.map(f=>f.respostas?.[h]).filter(f=>f!=null&&f!==""&&!(Array.isArray(f)&&f.length===0)),o=[],s=h=>{if(!e.incluirAnalises)return;const f=e.analises[h];!f||!f.trim()||(o.push(new pt({spacing:{before:120,after:40},children:[new bt({text:"ANÃLISE",bold:!0,size:16,color:"666666",font:"Calibri"})]})),f.split(/\n{2,}/).forEach(m=>{o.push(new pt({spacing:{after:120},alignment:tr.JUSTIFIED,indent:{left:200},border:{left:{style:Fl.SINGLE,size:12,color:ip(e.corPrimaria),space:8}},children:[new bt({text:m.trim().replace(/\n/g," "),size:21,font:"Calibri"})]}))}))};o.push(new pt({heading:gp.HEADING_1,spacing:{after:60},children:[new bt({text:e.titulo,bold:!0,size:34,color:ip(e.corPrimaria),font:"Calibri"})]}));const c=[e.municipio,e.estado].filter(Boolean).join("/");o.push(rn(`${c}${e.tipoPPP?` · ${e.tipoPPP}`:""}`,{tamanho:10,cor:"555555",espacoDepois:40})),o.push(rn(`${a} respostas · Emitido em ${new Date().toLocaleDateString("pt-BR",{day:"2-digit",month:"long",year:"numeric"})}`,{tamanho:10,cor:"555555",espacoDepois:300})),s("formulario");for(const h of e.paginas){o.push(new pt({heading:gp.HEADING_2,spacing:{before:360,after:80},border:{bottom:{style:Fl.SINGLE,size:6,color:ip(e.corPrimaria),space:4}},children:[new bt({text:h.title,bold:!0,size:26,color:ip(e.corPrimaria),font:"Calibri"})]})),s(`pagina:${h.id}`);for(let f=0;f<h.questions.length;f++){const m=h.questions[f];o.push(new pt({spacing:{before:240,after:60},keepNext:!0,children:[new bt({text:`${f+1}. ${m.label}`,bold:!0,size:22,font:"Calibri"})]}));const x=m.type!=="text"&&m.type!=="textarea";x&&t++;const v=x?await Cve(m.id):null;if(v){r++;const y=Math.min(482,v.largura),b=Math.round(v.altura/v.largura*y);o.push(new pt({spacing:{after:120},children:[new aq({data:v.png,transformation:{width:y,height:b},type:"png"})]}))}if(m.type==="likert")for(const y of m.likertRows??[]){const b=i(y.id);if(b.length===0){o.push(rn(`${y.label}: sem respostas`,{tamanho:9,cor:"888888"}));continue}const S={};b.forEach(E=>{const j=String(E);S[j]=(S[j]??0)+1});const A=(y.options??Object.keys(S)).filter(E=>S[E]);o.push(Qw(e.corPrimaria,y.label,A.map(E=>[E,S[E],n(S[E])]))),o.push(rn("",{espacoDepois:80}))}else if(m.type==="radio"||m.type==="checkbox"){const y=i(m.id);if(y.length===0)o.push(rn("Sem respostas.",{tamanho:9,cor:"888888"}));else{const b={};y.forEach(E=>(Array.isArray(E)?E:[String(E)]).forEach(j=>{b[String(j)]=(b[String(j)]??0)+1}));const S=(m.options??Object.keys(b)).filter(E=>b[E]),A=Object.keys(b).filter(E=>!S.includes(E));m.type==="checkbox"&&o.push(rn("Múltipla escolha: cada pessoa pôde marcar mais de uma opção, então a soma passa de 100%.",{tamanho:9,cor:"666666",espacoDepois:60})),o.push(Qw(e.corPrimaria,"Opção",[...S,...A].map(E=>[E,b[E],n(b[E])]))),o.push(rn("",{espacoDepois:80}))}}else if(m.type==="scale"){const y=i(m.id).map(b=>Number(b)).filter(b=>!isNaN(b));if(y.length===0)o.push(rn("Sem respostas.",{tamanho:9,cor:"888888"}));else{const b=(y.reduce((A,E)=>A+E,0)/y.length).toFixed(2);o.push(rn(`Média: ${b} · ${y.length} de ${a} responderam`,{negrito:!0,tamanho:10}));const S={};
1206y.forEach(A=>{S[String(A)]=(S[String(A)]??0)+1}),o.push(Qw(e.corPrimaria,"Nota",Object.keys(S).sort((A,E)=>Number(A)-Number(E)).map(A=>[`Nota ${A}`,S[A],n(S[A])]))),o.push(rn("",{espacoDepois:80}))}}else{const y=i(m.id);y.length===0?o.push(rn("Sem respostas.",{tamanho:9,cor:"888888"})):(o.push(rn(`${y.length} de ${a} responderam (${n(y.length)})`,{tamanho:9,cor:"666666",espacoDepois:60})),y.forEach(b=>o.push(new pt({bullet:{level:0},spacing:{after:60},children:[new bt({text:String(b),size:20,font:"Calibri"})]}))))}s(`pergunta:${m.id}`)}}o.push(rn("Relatório gerado pelo sistema PRINT PPP a partir das respostas da escuta social.",{tamanho:8,cor:"888888",espacoDepois:0}));const u=new Sq({creator:"PRINT Comunicação",title:e.titulo,sections:[{properties:{page:{margin:{top:1417,bottom:1417,left:1134,right:1134}}},children:o}]});return{blob:await NN.toBlob(u),graficosEsperados:t,graficosCapturados:r}}function jve(e,t){const r=URL.createObjectURL(t),a=document.createElement("a");a.href=r,a.download=e.endsWith(".docx")?e:`${e}.docx`,a.click(),URL.revokeObjectURL(r)}const Wx=e=>e.normalize("NFD").replace(/[Ì-ͯ]/g,"").toLowerCase().trim(),Nve=["Até 19","20 a 30","31 a 45","46 a 60","61 ou mais"];function Tve(e){const t=String(e??"").trim();if(!t)return null;const r=t.match(/\d{1,3}/);if(!r)return null;const a=Number(r[0]);return!Number.isFinite(a)||a<=0||a>120?null:a<=19?"Até 19":a<=30?"20 a 30":a<=45?"31 a 45":a<=60?"46 a 60":"61 ou mais"}const kve=["Feminino","Masculino","Outros"];function Dve(e){const t=Wx(String(e??""));return t?/^(f|fem|feminin[ao]|mulher)/.test(t)?"Feminino":/^(m|masc|masculin[ao]|homem)/.test(t)?"Masculino":"Outros":null}const _ve=["Branca","Preta","Parda","Amarela","IndÃgena","Outros"];function Rve(e){const t=Wx(String(e??""));return t?/^pard/.test(t)||t==="perda"||t==="perdo"?"Parda":/^branc/.test(t)||/^caucasian/.test(t)?"Branca":/^pret/.test(t)||/^negr/.test(t)?"Preta":/^amarel/.test(t)?"Amarela":/^indigen/.test(t)?"IndÃgena":"Outros":null}function Ove(e){if(e.type!=="text"&&e.type!=="textarea")return null;const t=`${Wx(e.id)} ${Wx(e.label)}`;return/\bidade\b|faixa etaria/.test(t)?"idade":/\bgenero\b|\bsexo\b/.test(t)?"genero":/\bcor\b|\braca\b|cor ?\/ ?raca/.test(t)?"raca":null}function Mve(e){return e==="idade"?Nve:e==="genero"?kve:_ve}function Ive(e,t){return e==="idade"?Tve(t):e==="genero"?Dve(t):Rve(t)}function Bve(e,t){const r=new Map,a=[];let n=0;for(const o of t){const s=String(o??"").trim();if(!s)continue;const c=Ive(e,o);if(!c){a.push(s);continue}c==="Outros"&&a.push(s),r.set(c,(r.get(c)??0)+1),n++}return{fatias:Mve(e).filter(o=>(r.get(o)??0)>0).map(o=>({categoria:o,n:r.get(o)??0,pct:n>0?Math.round((r.get(o)??0)/n*100):0})),classificados:n,naoClassificados:a}}var e2,CO;function Wa(){if(CO)return e2;CO=1;var e=Array.isArray;return e2=e,e2}var t2,PO;function LV(){if(PO)return t2;PO=1;var e=typeof gs=="object"&&gs&&gs.Object===Object&&gs;return t2=e,t2}var r2,jO;function Bi(){if(jO)return r2;jO=1;var e=LV(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return r2=r,r2}var a2,NO;function Kh(){if(NO)return a2;NO=1;var e=Bi(),t=e.Symbol;return a2=t,a2}var n2,TO;function Lve(){if(TO)return n2;TO=1;var e=Kh(),t=Object.prototype,r=t.hasOwnProperty,a=t.toString,n=e?e.toStringTag:void 0;function i(o){var s=r.call(o,n),c=o[n];try{o[n]=void 0;var u=!0}catch{}var h=a.call(o);return u&&(s?o[n]=c:delete o[n]),h}return n2=i,n2}var i2,kO;function zve(){if(kO)return i2;kO=1;var e=Object.prototype,t=e.toString;function r(a){return t.call(a)}return i2=r,i2}var o2,DO;function Oo(){if(DO)return o2;DO=1;var e=Kh(),t=Lve(),r=zve(),a="[object Null]",n="[object Undefined]",i=e?e.toStringTag:void 0;function o(s){return s==null?s===void 0?n:a:i&&i in Object(s)?t(s):r(s)}return o2=o,o2}var s2,_O;function Mo(){if(_O)return s2;_O=1;function e(t){return t!=null&&typeof t=="object"}return s2=e,s2}var l2,RO;function _d(){if(RO)return l2;RO=1;var e=Oo(),t=Mo(),r="[object Symbol]";function a(n){return typeof n=="symbol"||t(n)&&e(n)==r}return l2=a,l2}var c2,OO;function XN(){if(OO)return c2;OO=1;var e=Wa(),t=_d(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function n(i,o){if(e(i))return!1;var s=typeof i;return s=="number"||s=="symbol"||s=="boolean"||i==null||t(i)?!0:a.test(i)||!r.test(i)||o!=null&&i in Object(o)}return c2=n,c2}var u2,MO;function Os(){if(MO)return u2;MO=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return u2=e,u2}var d2,IO;function YN(){if(IO)return d2;IO=1;var e=Oo(),t=Os(),r="[object AsyncFunction]",a="[object Function]",n="[object GeneratorFunction]",i="[object Proxy]";function o(s){if(!t(s))return!1;var c=e(s);return c==a||c==n||c==r||c==i}return d2=o,d2}var f2,BO;function Fve(){if(BO)return f2;BO=1;
vendor: 4,188 bytes, line 1206
1206var e=Bi(),t=e["__core-js_shared__"];return f2=t,f2}var p2,LO;function $ve(){if(LO)return p2;LO=1;var e=Fve(),t=(function(){var a=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""})();function r(a){return!!t&&t in a}return p2=r,p2}var h2,zO;function zV(){if(zO)return h2;zO=1;var e=Function.prototype,t=e.toString;function r(a){if(a!=null){try{return t.call(a)}catch{}try{return a+""}catch{}}return""}return h2=r,h2}var m2,FO;function qve(){if(FO)return m2;FO=1;var e=YN(),t=$ve(),r=Os(),a=zV(),n=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,o=Function.prototype,s=Object.prototype,c=o.toString,u=s.hasOwnProperty,h=RegExp("^"+c.call(u).replace(n,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(m){if(!r(m)||t(m))return!1;var x=e(m)?h:i;return x.test(a(m))}return m2=f,m2}var g2,$O;function Vve(){if($O)return g2;$O=1;function e(t,r){return t?.[r]}return g2=e,g2}var x2,qO;function tc(){if(qO)return x2;qO=1;var e=qve(),t=Vve();function r(a,n){var i=t(a,n);return e(i)?i:void 0}return x2=r,x2}var v2,VO;function Ty(){if(VO)return v2;VO=1;var e=tc(),t=e(Object,"create");return v2=t,v2}var y2,UO;function Uve(){if(UO)return y2;UO=1;var e=Ty();function t(){this.__data__=e?e(null):{},this.size=0}return y2=t,y2}var b2,HO;function Hve(){if(HO)return b2;HO=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return b2=e,b2}var w2,GO;function Gve(){if(GO)return w2;GO=1;var e=Ty(),t="__lodash_hash_undefined__",r=Object.prototype,a=r.hasOwnProperty;function n(i){var o=this.__data__;if(e){var s=o[i];return s===t?void 0:s}return a.call(o,i)?o[i]:void 0}return w2=n,w2}var S2,KO;function Kve(){if(KO)return S2;KO=1;var e=Ty(),t=Object.prototype,r=t.hasOwnProperty;function a(n){var i=this.__data__;return e?i[n]!==void 0:r.call(i,n)}return S2=a,S2}var E2,WO;function Wve(){if(WO)return E2;WO=1;var e=Ty(),t="__lodash_hash_undefined__";function r(a,n){var i=this.__data__;return this.size+=this.has(a)?0:1,i[a]=e&&n===void 0?t:n,this}return E2=r,E2}var A2,XO;function Xve(){if(XO)return A2;XO=1;var e=Uve(),t=Hve(),r=Gve(),a=Kve(),n=Wve();function i(o){var s=-1,c=o==null?0:o.length;for(this.clear();++s<c;){var u=o[s];this.set(u[0],u[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=a,i.prototype.set=n,A2=i,A2}var C2,YO;function Yve(){if(YO)return C2;YO=1;function e(){this.__data__=[],this.size=0}return C2=e,C2}var P2,ZO;function ZN(){if(ZO)return P2;ZO=1;function e(t,r){return t===r||t!==t&&r!==r}return P2=e,P2}var j2,JO;function ky(){if(JO)return j2;JO=1;var e=ZN();function t(r,a){for(var n=r.length;n--;)if(e(r[n][0],a))return n;return-1}return j2=t,j2}var N2,QO;function Zve(){if(QO)return N2;QO=1;var e=ky(),t=Array.prototype,r=t.splice;function a(n){var i=this.__data__,o=e(i,n);if(o<0)return!1;var s=i.length-1;return o==s?i.pop():r.call(i,o,1),--this.size,!0}return N2=a,N2}var T2,eM;function Jve(){if(eM)return T2;eM=1;var e=ky();function t(r){var a=this.__data__,n=e(a,r);return n<0?void 0:a[n][1]}return T2=t,T2}var k2,tM;function Qve(){if(tM)return k2;tM=1;var e=ky();function t(r){return e(this.__data__,r)>-1}return k2=t,k2}var D2,rM;function eye(){if(rM)return D2;rM=1;var e=ky();function t(r,a){var n=this.__data__,i=e(n,r);return i<0?(++this.size,n.push([r,a])):n[i][1]=a,this}return D2=t,D2}var _2,aM;function Dy(){if(aM)return _2;aM=1;var e=Yve(),t=Zve(),r=Jve(),a=Qve(),n=eye();function i(o){var s=-1,c=o==null?0:o.length;for(this.clear();++s<c;){var u=o[s];this.set(u[0],u[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=a,i.prototype.set=n,_2=i,_2}var R2,nM;function JN(){if(nM)return R2;nM=1;var e=tc(),t=Bi(),r=e(t,"Map");return R2=r,R2}var O2,iM;function tye(){if(iM)return O2;iM=1;var e=Xve(),t=Dy(),r=JN();function a(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return O2=a,O2}var M2,oM;function rye(){if(oM)return M2;oM=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return M2=e,M2}var I2,sM;function _y(){if(sM)return I2;sM=1;var e=rye();function t(r,a){var n=r.__data__;
vendor: 8,825 bytes, lines 1206-1214
1206return e(a)?n[typeof a=="string"?"string":"hash"]:n.map}return I2=t,I2}var B2,lM;function aye(){if(lM)return B2;lM=1;var e=_y();function t(r){var a=e(this,r).delete(r);return this.size-=a?1:0,a}return B2=t,B2}var L2,cM;function nye(){if(cM)return L2;cM=1;var e=_y();function t(r){return e(this,r).get(r)}return L2=t,L2}var z2,uM;function iye(){if(uM)return z2;uM=1;var e=_y();function t(r){return e(this,r).has(r)}return z2=t,z2}var F2,dM;function oye(){if(dM)return F2;dM=1;var e=_y();function t(r,a){var n=e(this,r),i=n.size;return n.set(r,a),this.size+=n.size==i?0:1,this}return F2=t,F2}var $2,fM;function QN(){if(fM)return $2;fM=1;var e=tye(),t=aye(),r=nye(),a=iye(),n=oye();function i(o){var s=-1,c=o==null?0:o.length;for(this.clear();++s<c;){var u=o[s];this.set(u[0],u[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=a,i.prototype.set=n,$2=i,$2}var q2,pM;function FV(){if(pM)return q2;pM=1;var e=QN(),t="Expected a function";function r(a,n){if(typeof a!="function"||n!=null&&typeof n!="function")throw new TypeError(t);var i=function(){var o=arguments,s=n?n.apply(this,o):o[0],c=i.cache;if(c.has(s))return c.get(s);var u=a.apply(this,o);return i.cache=c.set(s,u)||c,u};return i.cache=new(r.Cache||e),i}return r.Cache=e,q2=r,q2}var V2,hM;function sye(){if(hM)return V2;hM=1;var e=FV(),t=500;function r(a){var n=e(a,function(o){return i.size===t&&i.clear(),o}),i=n.cache;return n}return V2=r,V2}var U2,mM;function lye(){if(mM)return U2;mM=1;var e=sye(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,a=e(function(n){var i=[];return n.charCodeAt(0)===46&&i.push(""),n.replace(t,function(o,s,c,u){i.push(c?u.replace(r,"$1"):s||o)}),i});return U2=a,U2}var H2,gM;function eT(){if(gM)return H2;gM=1;function e(t,r){for(var a=-1,n=t==null?0:t.length,i=Array(n);++a<n;)i[a]=r(t[a],a,t);return i}return H2=e,H2}var G2,xM;function cye(){if(xM)return G2;xM=1;var e=Kh(),t=eT(),r=Wa(),a=_d(),n=e?e.prototype:void 0,i=n?n.toString:void 0;function o(s){if(typeof s=="string")return s;if(r(s))return t(s,o)+"";if(a(s))return i?i.call(s):"";var c=s+"";return c=="0"&&1/s==-1/0?"-0":c}return G2=o,G2}var K2,vM;function $V(){if(vM)return K2;vM=1;var e=cye();function t(r){return r==null?"":e(r)}return K2=t,K2}var W2,yM;function qV(){if(yM)return W2;yM=1;var e=Wa(),t=XN(),r=lye(),a=$V();function n(i,o){return e(i)?i:t(i,o)?[i]:r(a(i))}return W2=n,W2}var X2,bM;function Ry(){if(bM)return X2;bM=1;var e=_d();function t(r){if(typeof r=="string"||e(r))return r;var a=r+"";return a=="0"&&1/r==-1/0?"-0":a}return X2=t,X2}var Y2,wM;function tT(){if(wM)return Y2;wM=1;var e=qV(),t=Ry();function r(a,n){n=e(n,a);for(var i=0,o=n.length;a!=null&&i<o;)a=a[t(n[i++])];return i&&i==o?a:void 0}return Y2=r,Y2}var Z2,SM;function VV(){if(SM)return Z2;SM=1;var e=tT();function t(r,a,n){var i=r==null?void 0:e(r,a);return i===void 0?n:i}return Z2=t,Z2}var uye=VV();const mn=qt(uye);var J2,EM;function dye(){if(EM)return J2;EM=1;function e(t){return t==null}return J2=e,J2}var fye=dye();const yt=qt(fye);var Q2,AM;function pye(){if(AM)return Q2;AM=1;var e=Oo(),t=Wa(),r=Mo(),a="[object String]";function n(i){return typeof i=="string"||!t(i)&&r(i)&&e(i)==a}return Q2=n,Q2}var hye=pye();const Vl=qt(hye);var mye=YN();const gt=qt(mye);var gye=Os();const Rd=qt(gye);var eS={exports:{}},Yt={};/** 1207 * @license React 1208 * react-is.production.min.js 1209 * 1210 * Copyright (c) Facebook, Inc. and its affiliates. 1211 * 1212 * This source code is licensed under the MIT license found in the 1213 * LICENSE file in the root directory of this source tree. 1214 */var CM;function xye(){if(CM)return Yt;CM=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),v;v=Symbol.for("react.module.reference");function y(b){if(typeof b=="object"&&b!==null){var S=b.$$typeof;switch(S){case e:switch(b=b.type,b){case r:case n:case a:case u:case h:return b;default:switch(b=b&&b.$$typeof,b){case s:case o:case c:case m:case f:case i:return b;default:return S}}case t:return S}}}return Yt.ContextConsumer=o,Yt.ContextProvider=i,Yt.Element=e,Yt.ForwardRef=c,Yt.Fragment=r,Yt.Lazy=m,Yt.Memo=f,Yt.Portal=t,Yt.Profiler=n,Yt.StrictMode=a,Yt.Suspense=u,Yt.SuspenseList=h,Yt.isAsyncMode=function(){return!1},Yt.isConcurrentMode=function(){return!1},Yt.isContextConsumer=function(b){return y(b)===o},Yt.isContextProvider=function(b){return y(b)===i},Yt.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},Yt.isForwardRef=function(b){return y(b)===c},Yt.isFragment=function(b){return y(b)===r},Yt.isLazy=function(b){return y(b)===m},Yt.isMemo=function(b){return y(b)===f},Yt.isPortal=function(b){return y(b)===t},Yt.isProfiler=function(b){return y(b)===n},Yt.isStrictMode=function(b){return y(b)===a},Yt.isSuspense=function(b){return y(b)===u},Yt.isSuspenseList=function(b){return y(b)===h},Yt.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===n||b===a||b===u||b===h||b===x||typeof b=="object"&&b!==null&&(b.$$typeof===m||b.$$typeof===f||b.$$typeof===i||b.$$typeof===o||b.$$typeof===c||b.$$typeof===v||b.getModuleId!==void 0)},Yt.typeOf=y,Yt}var PM;function vye(){return PM||(PM=1,eS.exports=xye()),eS.exports}var yye=vye(),tS,jM;function UV(){if(jM)return tS;jM=1;var e=Oo(),t=Mo(),r="[object Number]";function a(n){return typeof n=="number"||t(n)&&e(n)==r}return tS=a,tS}var rS,NM;function bye(){if(NM)return rS;NM=1;var e=UV();function t(r){return e(r)&&r!=+r}return rS=t,rS}var wye=bye();const Wh=qt(wye);var Sye=UV();const Eye=qt(Sye);var ja=function(t){return t===0?0:t>0?1:-1},wl=function(t){return Vl(t)&&t.indexOf("%")===t.length-1},Ue=function(t){return Eye(t)&&!Wh(t)},Aye=function(t){return yt(t)},Wr=function(t){return Ue(t)||Vl(t)},Cye=0,Od=function(t){var r=++Cye;return"".concat(t||"").concat(r)},Na=function(t,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Ue(t)&&!Vl(t))return a;var i;if(wl(t)){var o=t.indexOf("%");i=r*parseFloat(t.slice(0,o))/100}else i=+t;return Wh(i)&&(i=a),n&&i>r&&(i=r),i},ms=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},Pye=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,a={},n=0;n<r;n++)if(!a[t[n]])a[t[n]]=!0;else return!0;return!1},cn=function(t,r){return Ue(t)&&Ue(r)?function(a){return t+a*(r-t)}:function(){return r}};function Xx(e,t,r){return!e||!e.length?null:e.find(function(a){return a&&(typeof t=="function"?t(a):mn(a,t))===r})}var jye=function(t,r){return Ue(t)&&Ue(r)?t-r:Vl(t)&&Vl(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Cu(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var a in t)if({}.hasOwnProperty.call(t,a)&&!{}.hasOwnProperty.call(e,a))return!1;return!0}function QC(e){"@babel/helpers - typeof";return QC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},QC(e)}var Nye=["viewBox","children"],Tye=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRen
1214dering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],TM=["points","pathLength"],aS={svg:Nye,polygon:TM,polyline:TM},rT=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDrag
1214Capture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Yx=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(L.isValidElement(t)&&(a=t.props),!Rd(a))return null;var n={};return Object.keys(a).forEach(function(i){rT.includes(i)&&(n[i]=r||function(o){return a[i](a,o)})}),n},kye=function(t,r,a){return function(n){return t(r,a,n),null}},Ul=function(t,r,a){if(!Rd(t)||QC(t)!=="object")return null;var n=null;return Object.keys(t).forEach(function(i){var o=t[i];rT.includes(i)&&typeof o=="function"&&(n||(n={}),n[i]=kye(o,r,a))}),n},Dye=["children"],_ye=["children"];function kM(e,t){if(e==null)return{};var r=Rye(e,t),a,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)a=i[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function Rye(e,t){if(e==null)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}function eP(e){"@babel/helpers - typeof";return eP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},eP(e)}var DM={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},yo=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},_M=null,nS=null,aT=function e(t){if(t===_M&&Array.isArray(nS))return nS;var r=[];return L.Children.forEach(t,function(a){yt(a)||(yye.isFragment(a)?r=r.concat(e(a.props.children)):r.push(a))}),nS=r,_M=t,r};function gn(e,t){var r=[],a=[];return Array.isArray(t)?a=t.map(function(n){return yo(n)}):a=[yo(t)],aT(e).forEach(function(n){var i=mn(n,"type.displayName")||mn(n,"type.name");a.indexOf(i)!==-1&&r.push(n)}),r}function sn(e,t){var r=gn(e,t);return r&&r[0]}var RM=function(t){if(!t||!t.props)return!1;var r=t.props,a=r.width,n=r.height;return!(!Ue(a)||a<=0||!Ue(n)||n<=0)},Oye=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],Mye=function(t){return t&&t.type&&Vl(t.type)&&Oye.indexOf(t.type)>=0},Iye=function(t){return t&&eP(t)==="object"&&"clipDot"in t},Bye=function(t,r,a,n){var i,o=(i=aS?.[n])!==null&&i!==void 0?i:[];return r.startsWith("data-")||!gt(t)&&(n&&o.includes(r)||Tye.includes(r))||a&&rT.includes(r)},lt=function(t,r,a){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(L.isValidElement(t)&&(n=t.props),!Rd(n))return null;var i={};
vendor: 4,243 bytes, line 1214
1214return Object.keys(n).forEach(function(o){var s;Bye((s=n)===null||s===void 0?void 0:s[o],o,r,a)&&(i[o]=n[o])}),i},tP=function e(t,r){if(t===r)return!0;var a=L.Children.count(t);if(a!==L.Children.count(r))return!1;if(a===0)return!0;if(a===1)return OM(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var n=0;n<a;n++){var i=t[n],o=r[n];if(Array.isArray(i)||Array.isArray(o)){if(!e(i,o))return!1}else if(!OM(i,o))return!1}return!0},OM=function(t,r){if(yt(t)&&yt(r))return!0;if(!yt(t)&&!yt(r)){var a=t.props||{},n=a.children,i=kM(a,Dye),o=r.props||{},s=o.children,c=kM(o,_ye);return n&&s?Cu(i,c)&&tP(n,s):!n&&!s?Cu(i,c):!1}return!1},MM=function(t,r){var a=[],n={};return aT(t).forEach(function(i,o){if(Mye(i))a.push(i);else if(i){var s=yo(i.type),c=r[s]||{},u=c.handler,h=c.once;if(u&&(!h||!n[s])){var f=u(i,s,o);a.push(f),n[s]=!0}}}),a},Lye=function(t){var r=t&&t.type;return r&&DM[r]?DM[r]:null},zye=function(t,r){return aT(r).indexOf(t)},Fye=["children","width","height","viewBox","className","style","title","desc"];function rP(){return rP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},rP.apply(this,arguments)}function $ye(e,t){if(e==null)return{};var r=qye(e,t),a,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)a=i[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function qye(e,t){if(e==null)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}function aP(e){var t=e.children,r=e.width,a=e.height,n=e.viewBox,i=e.className,o=e.style,s=e.title,c=e.desc,u=$ye(e,Fye),h=n||{width:r,height:a,x:0,y:0},f=wt("recharts-surface",i);return de.createElement("svg",rP({},lt(u,!0,"svg"),{className:f,width:r,height:a,style:o,viewBox:"".concat(h.x," ").concat(h.y," ").concat(h.width," ").concat(h.height)}),de.createElement("title",null,s),de.createElement("desc",null,c),t)}var Vye=["children","className"];function nP(){return nP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},nP.apply(this,arguments)}function Uye(e,t){if(e==null)return{};var r=Hye(e,t),a,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)a=i[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function Hye(e,t){if(e==null)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}var Ht=de.forwardRef(function(e,t){var r=e.children,a=e.className,n=Uye(e,Vye),i=wt("recharts-layer",a);return de.createElement("g",nP({className:i},lt(n,!0),{ref:t}),r)}),ri=function(t,r){for(var a=arguments.length,n=new Array(a>2?a-2:0),i=2;i<a;i++)n[i-2]=arguments[i]},iS,IM;function Gye(){if(IM)return iS;IM=1;function e(t,r,a){var n=-1,i=t.length;r<0&&(r=-r>i?0:i+r),a=a>i?i:a,a<0&&(a+=i),i=r>a?0:a-r>>>0,r>>>=0;for(var o=Array(i);++n<i;)o[n]=t[n+r];return o}return iS=e,iS}var oS,BM;function Kye(){if(BM)return oS;BM=1;var e=Gye();function t(r,a,n){var i=r.length;return n=n===void 0?i:n,!a&&n>=i?r:e(r,a,n)}return oS=t,oS}var sS,LM;function HV(){if(LM)return sS;LM=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",a="\\u20d0-\\u20ff",n=t+r+a,i="\\ufe0e\\ufe0f",o="\\u200d",s=RegExp("["+o+e+n+i+"]");function c(u){return s.test(u)}return sS=c,sS}var lS,zM;function Wye(){if(zM)return lS;zM=1;function e(t){return t.split("")}return lS=e,lS}var cS,FM;function Xye(){if(FM)return cS;FM=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",a="\\u20d0-\\u20ff",n=t+r+a,i="\\ufe0e\\ufe0f",o="["+e+"]",s="["+n+"]",c="\\ud83c[\\udffb-\\udfff]",u="(?:"+s+"|"+c+")",h="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",x="\\u200d",v=u+"?",y="["+i+"]?",b="(?:"+x+"(?:"+[h,f,m].join("|")+")"+y+v+")*",S=y+v+b,A="(?:"+[h+s+"?",s,f,m,o].join("|")+")",E=RegExp(c+"(?="+c+")|"+A+S,"g");function j(P){return P.match(E)||[]}return cS=j,cS}var uS,$M;
vendor: 6,416 bytes, line 1214
1214function Yye(){if($M)return uS;$M=1;var e=Wye(),t=HV(),r=Xye();function a(n){return t(n)?r(n):e(n)}return uS=a,uS}var dS,qM;function Zye(){if(qM)return dS;qM=1;var e=Kye(),t=HV(),r=Yye(),a=$V();function n(i){return function(o){o=a(o);var s=t(o)?r(o):void 0,c=s?s[0]:o.charAt(0),u=s?e(s,1).join(""):o.slice(1);return c[i]()+u}}return dS=n,dS}var fS,VM;function Jye(){if(VM)return fS;VM=1;var e=Zye(),t=e("toUpperCase");return fS=t,fS}var Qye=Jye();const Oy=qt(Qye);function fr(e){return function(){return e}}const GV=Math.cos,Zx=Math.sin,ci=Math.sqrt,Jx=Math.PI,My=2*Jx,iP=Math.PI,oP=2*iP,gl=1e-6,ebe=oP-gl;function KV(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function tbe(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return KV;const r=10**t;return function(a){this._+=a[0];for(let n=1,i=a.length;n<i;++n)this._+=Math.round(arguments[n]*r)/r+a[n]}}class rbe{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?KV:tbe(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,a,n){this._append`Q${+t},${+r},${this._x1=+a},${this._y1=+n}`}bezierCurveTo(t,r,a,n,i,o){this._append`C${+t},${+r},${+a},${+n},${this._x1=+i},${this._y1=+o}`}arcTo(t,r,a,n,i){if(t=+t,r=+r,a=+a,n=+n,i=+i,i<0)throw new Error(`negative radius: ${i}`);let o=this._x1,s=this._y1,c=a-t,u=n-r,h=o-t,f=s-r,m=h*h+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(m>gl)if(!(Math.abs(f*c-u*h)>gl)||!i)this._append`L${this._x1=t},${this._y1=r}`;else{let x=a-o,v=n-s,y=c*c+u*u,b=x*x+v*v,S=Math.sqrt(y),A=Math.sqrt(m),E=i*Math.tan((iP-Math.acos((y+m-b)/(2*S*A)))/2),j=E/A,P=E/S;Math.abs(j-1)>gl&&this._append`L${t+j*h},${r+j*f}`,this._append`A${i},${i},0,0,${+(f*x>h*v)},${this._x1=t+P*c},${this._y1=r+P*u}`}}arc(t,r,a,n,i,o){if(t=+t,r=+r,a=+a,o=!!o,a<0)throw new Error(`negative radius: ${a}`);let s=a*Math.cos(n),c=a*Math.sin(n),u=t+s,h=r+c,f=1^o,m=o?n-i:i-n;this._x1===null?this._append`M${u},${h}`:(Math.abs(this._x1-u)>gl||Math.abs(this._y1-h)>gl)&&this._append`L${u},${h}`,a&&(m<0&&(m=m%oP+oP),m>ebe?this._append`A${a},${a},0,1,${f},${t-s},${r-c}A${a},${a},0,1,${f},${this._x1=u},${this._y1=h}`:m>gl&&this._append`A${a},${a},0,${+(m>=iP)},${f},${this._x1=t+a*Math.cos(i)},${this._y1=r+a*Math.sin(i)}`)}rect(t,r,a,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${a=+a}v${+n}h${-a}Z`}toString(){return this._}}function nT(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const a=Math.floor(r);if(!(a>=0))throw new RangeError(`invalid digits: ${r}`);t=a}return e},()=>new rbe(t)}function iT(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function WV(e){this._context=e}WV.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Iy(e){return new WV(e)}function XV(e){return e[0]}function YV(e){return e[1]}function ZV(e,t){var r=fr(!0),a=null,n=Iy,i=null,o=nT(s);e=typeof e=="function"?e:e===void 0?XV:fr(e),t=typeof t=="function"?t:t===void 0?YV:fr(t);function s(c){var u,h=(c=iT(c)).length,f,m=!1,x;for(a==null&&(i=n(x=o())),u=0;u<=h;++u)!(u<h&&r(f=c[u],u,c))===m&&((m=!m)?i.lineStart():i.lineEnd()),m&&i.point(+e(f,u,c),+t(f,u,c));if(x)return i=null,x+""||null}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:fr(+c),s):e},s.y=function(c){return arguments.length?(t=typeof c=="function"?c:fr(+c),s):t},s.defined=function(c){return arguments.length?(r=typeof c=="function"?c:fr(!!c),s):r},s.curve=function(c){return arguments.length?(n=c,a!=null&&(i=n(a)),s):n},s.context=function(c){return arguments.length?(c==null?a=i=null:i=n(a=c),s):a},s}function Wg(e,t,r){var a=null,n=fr(!0),i=null,o=Iy,s=null,c=nT(u);e=typeof e=="function"?e:e===void 0?XV:fr(+e),t=typeof t=="function"?t:fr(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?YV:fr(+r);function u(f){var m,x,v,y=(f=iT(f)).length,b,S=!1,A,E=new Array(y),j=new Array(y);for(i==null&&(s=o(A=c())),m=0;m<=y;++m){if(!(m<y&&n(b=f[m],m,f))===S)if(S=!S)x=m,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),v=m-1;v>=x;--v)s.point(E[v],j[v]);s.lineEnd(),s.areaEnd()}S&&(E[m]=+e(b,m,f),j[m]=+t(b,m,f),s.point(a?+a(b,m,f):E[m],r?+r(b,m,f):j[m]))}if(A)return s=null,A+""||null}function h(){return ZV().defined(n).curve(o).context(i)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:fr(+f),a=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:fr(+f),u):e},u.x1=function(f){return arguments.length?(a=f==null?null:typeof f=="function"?f:fr(+f),u):a},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:fr(+f),r=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:fr(+f),u):t},u.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:fr(+f),u):r},u.lineX0=u.lineY0=function(){return h().x(e).y(t)},u.lineY1=function(){return h().x(e).y(r)},u.lineX1=function(){return h().x(a).y(t)},u.defined=function(f){return arguments.length?(n=typeof f=="function"?f:fr(!!f),u):n},u.curve=function(f){return arguments.length?(o=f,i!=null&&(s=o(i)),u):o},u.context=function(f){return arguments.length?(f==null?i=s=null:s=o(i=f),u):i},u}class JV{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function abe(e){return new JV(e,!0)}function nbe(e){return new JV(e,!1)}
1214const oT={draw(e,t){const r=ci(t/Jx);e.moveTo(r,0),e.arc(0,0,r,0,My)}},ibe={draw(e,t){const r=ci(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},QV=ci(1/3),obe=QV*2,sbe={draw(e,t){const r=ci(t/obe),a=r*QV;e.moveTo(0,-r),e.lineTo(a,0),e.lineTo(0,r),e.lineTo(-a,0),e.closePath()}},lbe={draw(e,t){const r=ci(t),a=-r/2;e.rect(a,a,r,r)}},cbe=.8908130915292852,eU=Zx(Jx/10)/Zx(7*Jx/10),ube=Zx(My/10)*eU,dbe=-GV(My/10)*eU,fbe={draw(e,t){const r=ci(t*cbe),a=ube*r,n=dbe*r;e.moveTo(0,-r),e.lineTo(a,n);for(let i=1;i<5;++i){const o=My*i/5,s=GV(o),c=Zx(o);e.lineTo(c*r,-s*r),e.lineTo(s*a-c*n,c*a+s*n)}e.closePath()}},pS=ci(3),pbe={draw(e,t){const r=-ci(t/(pS*3));e.moveTo(0,r*2),e.lineTo(-pS*r,-r),e.lineTo(pS*r,-r),e.closePath()}},Dn=-.5,_n=ci(3)/2,sP=1/ci(12),hbe=(sP/2+1)*3,mbe={draw(e,t){const r=ci(t/hbe),a=r/2,n=r*sP,i=a,o=r*sP+r,s=-i,c=o;e.moveTo(a,n),e.lineTo(i,o),e.lineTo(s,c),e.lineTo(Dn*a-_n*n,_n*a+Dn*n),e.lineTo(Dn*i-_n*o,_n*i+Dn*o),e.lineTo(Dn*s-_n*c,_n*s+Dn*c),e.lineTo(Dn*a+_n*n,Dn*n-_n*a),e.lineTo(Dn*i+_n*o,Dn*o-_n*i),e.lineTo(Dn*s+_n*c,Dn*c-_n*s),e.closePath()}};function gbe(e,t){let r=null,a=nT(n);e=typeof e=="function"?e:fr(e||oT),t=typeof t=="function"?t:fr(t===void 0?64:+t);function n(){let i;if(r||(r=i=a()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),i)return r=null,i+""||null}return n.type=function(i){return arguments.length?(e=typeof i=="function"?i:fr(i),n):e},n.size=function(i){return arguments.length?(t=typeof i=="function"?i:fr(+i),n):t},n.context=function(i){return arguments.length?(r=i??null,n):r},n}function Qx(){}function ev(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function tU(e){this._context=e}tU.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ev(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ev(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function xbe(e){return new tU(e)}function rU(e){this._context=e}rU.prototype={areaStart:Qx,areaEnd:Qx,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:ev(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function vbe(e){return new rU(e)}function aU(e){this._context=e}aU.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,a=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,a):this._context.moveTo(r,a);break;case 3:this._point=4;default:ev(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ybe(e){return new aU(e)}function nU(e){this._context=e}nU.prototype={areaStart:Qx,areaEnd:Qx,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function bbe(e){return new nU(e)}function UM(e){return e<0?-1:1}function HM(e,t,r){var a=e._x1-e._x0,n=t-e._x1,i=(e._y1-e._y0)/(a||n<0&&-0),o=(r-e._y1)/(n||a<0&&-0),s=(i*n+o*a)/(a+n);
1214return(UM(i)+UM(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(s))||0}function GM(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function hS(e,t,r){var a=e._x0,n=e._y0,i=e._x1,o=e._y1,s=(i-a)/3;e._context.bezierCurveTo(a+s,n+s*t,i-s,o-s*r,i,o)}function tv(e){this._context=e}tv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:hS(this,this._t0,GM(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,hS(this,GM(this,r=HM(this,e,t)),r);break;default:hS(this,this._t0,r=HM(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function iU(e){this._context=new oU(e)}(iU.prototype=Object.create(tv.prototype)).point=function(e,t){tv.prototype.point.call(this,t,e)};function oU(e){this._context=e}oU.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,a,n,i){this._context.bezierCurveTo(t,e,a,r,i,n)}};function wbe(e){return new tv(e)}function Sbe(e){return new iU(e)}function sU(e){this._context=e}sU.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var a=KM(e),n=KM(t),i=0,o=1;o<r;++i,++o)this._context.bezierCurveTo(a[0][i],n[0][i],a[1][i],n[1][i],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function KM(e){var t,r=e.length-1,a,n=new Array(r),i=new Array(r),o=new Array(r);for(n[0]=0,i[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)n[t]=1,i[t]=4,o[t]=4*e[t]+2*e[t+1];for(n[r-1]=2,i[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)a=n[t]/i[t-1],i[t]-=a,o[t]-=a*o[t-1];for(n[r-1]=o[r-1]/i[r-1],t=r-2;t>=0;--t)n[t]=(o[t]-n[t+1])/i[t];for(i[r-1]=(e[r]+n[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-n[t+1];return[n,i]}function Ebe(e){return new sU(e)}function By(e,t){this._context=e,this._t=t}By.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function Abe(e){return new By(e,.5)}function Cbe(e){return new By(e,0)}function Pbe(e){return new By(e,1)}function Uu(e,t){if((o=e.length)>1)for(var r=1,a,n,i=e[t[0]],o,s=i.length;r<o;++r)for(n=i,i=e[t[r]],a=0;a<s;++a)i[a][1]+=i[a][0]=isNaN(n[a][1])?n[a][0]:n[a][1]}function lP(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function jbe(e,t){return e[t]}function Nbe(e){const t=[];return t.key=e,t}function Tbe(){var e=fr([]),t=lP,r=Uu,a=jbe;function n(i){var o=Array.from(e.apply(this,arguments),Nbe),s,c=o.length,u=-1,h;for(const f of i)for(s=0,++u;s<c;++s)(o[s][u]=[0,+a(f,o[s].key,u,i)]).data=f;for(s=0,h=iT(t(o));s<c;++s)o[h[s]].index=s;return r(o,h),o}return n.keys=function(i){return arguments.length?(e=typeof i=="function"?i:fr(Array.from(i)),n):e},n.value=function(i){return arguments.length?(a=typeof i=="function"?i:fr(+i),n):a},n.order=function(i){return arguments.length?(t=i==null?lP:typeof i=="function"?i:fr(Array.from(i)),n):t},n.offset=function(i){return arguments.length?(r=i??Uu,n):r},n}function kbe(e,t){if((a=e.length)>0){for(var r,a,n=0,i=e[0].length,o;n<i;++n){for(o=r=0;r<a;++r)o+=e[r][n][1]||0;if(o)for(r=0;r<a;++r)e[r][n][1]/=o}Uu(e,t)}}function Dbe(e,t){if((n=e.length)>0){for(var r=0,a=e[t[0]],n,i=a.length;r<i;++r){for(var o=0,s=0;o<n;++o)s+=e[o][r][1]||0;a[r][1]+=a[r][0]=-s/2}Uu(e,t)}}function _be(e,t){if(!(!((o=e.length)>0)||!((i=(n=e[t[0]]).length)>0))){for(var r=0,a=1,n,i,o;a<i;++a){for(var s=0,c=0,u=0;s<o;++s){for(var h=e[t[s]],f=h[a][1]||0,m=h[a-1][1]||0,x=(f-m)/2,v=0;v<s;++v){var y=e[t[v]],b=y[a][1]||0,S=y[a-1][1]||0;x+=b-S}c+=f,u+=x*f}n[a-1][1]+=n[a-1][0]=r,c&&(r-=u/c)}n[a-1][1]+=n[a-1][0]=r,Uu(e,t)}}function Up(e){"@babel/helpers - typeof";return Up=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Up(e)}var Rbe=["type","size","sizeType"];function cP(){return cP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},cP.apply(this,arguments)}function WM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function XM(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
vendor: 12,858 bytes, lines 1214-1217
1214t%2?WM(Object(r),!0).forEach(function(a){Obe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):WM(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function Obe(e,t,r){return t=Mbe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mbe(e){var t=Ibe(e,"string");return Up(t)=="symbol"?t:t+""}function Ibe(e,t){if(Up(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(Up(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Bbe(e,t){if(e==null)return{};var r=Lbe(e,t),a,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)a=i[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function Lbe(e,t){if(e==null)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}var lU={symbolCircle:oT,symbolCross:ibe,symbolDiamond:sbe,symbolSquare:lbe,symbolStar:fbe,symbolTriangle:pbe,symbolWye:mbe},zbe=Math.PI/180,Fbe=function(t){var r="symbol".concat(Oy(t));return lU[r]||oT},$be=function(t,r,a){if(r==="area")return t;switch(a){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var n=18*zbe;return 1.25*t*t*(Math.tan(n)-Math.tan(n*2)*Math.pow(Math.tan(n),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},qbe=function(t,r){lU["symbol".concat(Oy(t))]=r},sT=function(t){var r=t.type,a=r===void 0?"circle":r,n=t.size,i=n===void 0?64:n,o=t.sizeType,s=o===void 0?"area":o,c=Bbe(t,Rbe),u=XM(XM({},c),{},{type:a,size:i,sizeType:s}),h=function(){var b=Fbe(a),S=gbe().type(b).size($be(i,s,a));return S()},f=u.className,m=u.cx,x=u.cy,v=lt(u,!0);return m===+m&&x===+x&&i===+i?de.createElement("path",cP({},v,{className:wt("recharts-symbols",f),transform:"translate(".concat(m,", ").concat(x,")"),d:h()})):null};sT.registerSymbol=qbe;function Hu(e){"@babel/helpers - typeof";return Hu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hu(e)}function uP(){return uP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},uP.apply(this,arguments)}function YM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function Vbe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?YM(Object(r),!0).forEach(function(a){Hp(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):YM(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function Ube(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hbe(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,uU(a.key),a)}}function Gbe(e,t,r){return t&&Hbe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Kbe(e,t,r){return t=rv(t),Wbe(e,cU()?Reflect.construct(t,r||[],rv(e).constructor):t.apply(e,r))}function Wbe(e,t){if(t&&(Hu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Xbe(e)}function Xbe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cU=function(){return!!e})()}function rv(e){return rv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},rv(e)}function Ybe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dP(e,t)}function dP(e,t){return dP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},dP(e,t)}function Hp(e,t,r){return t=uU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uU(e){var t=Zbe(e,"string");return Hu(t)=="symbol"?t:t+""}function Zbe(e,t){if(Hu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(Hu(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Rn=32,lT=(function(e){function t(){return Ube(this,t),Kbe(this,t,arguments)}return Ybe(t,e),Gbe(t,[{key:"renderIcon",value:function(a){var n=this.props.inactiveColor,i=Rn/2,o=Rn/6,s=Rn/3,c=a.inactive?n:a.color;if(a.type==="plainline")return de.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:a.payload.strokeDasharray,x1:0,y1:i,x2:Rn,y2:i,className:"recharts-legend-icon"});if(a.type==="line")return de.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(i,"h").concat(s,` 1215 A`).concat(o,",").concat(o,",0,1,1,").concat(2*s,",").concat(i,` 1216 H`).concat(Rn,"M").concat(2*s,",").concat(i,` 1217 A`).concat(o,",").concat(o,",0,1,1,").concat(s,",").concat(i),className:"recharts-legend-icon"});if(a.type==="rect")return de.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(Rn/8,"h").concat(Rn,"v").concat(Rn*3/4,"h").concat(-Rn,"z"),className:"recharts-legend-icon"});if(de.isValidElement(a.legendIcon)){var u=Vbe({},a);return delete u.legendIcon,de.cloneElement(a.legendIcon,u)}return de.createElement(sT,{fill:c,cx:i,cy:i,size:Rn,sizeType:"diameter",type:a.type})}},{key:"renderItems",value:function(){var a=this,n=this.props,i=n.payload,o=n.iconSize,s=n.layout,c=n.formatter,u=n.inactiveColor,h={x:0,y:0,width:Rn,height:Rn},f={display:s==="horizontal"?"inline-block":"block",marginRight:10},m={display:"inline-block",verticalAlign:"middle",marginRight:4};return i.map(function(x,v){var y=x.formatter||c,b=wt(Hp(Hp({"recharts-legend-item":!0},"legend-item-".concat(v),!0),"inactive",x.inactive));if(x.type==="none")return null;var S=gt(x.value)?null:x.value;ri(!gt(x.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var A=x.inactive?u:x.color;return de.createElement("li",uP({className:b,style:f,key:"legend-item-".concat(v)},Ul(a.props,x,v)),de.createElement(aP,{width:o,height:o,viewBox:h,style:m},a.renderIcon(x)),de.createElement("span",{className:"recharts-legend-item-text",style:{color:A}},y?y(S,x,v):S))})}},{key:"render",value:function(){var a=this.props,n=a.payload,i=a.layout,o=a.align;if(!n||!n.length)return null;var s={padding:0,margin:0,textAlign:i==="horizontal"?o:"left"};return de.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])})(L.PureComponent);Hp(lT,"displayName","Legend");Hp(lT,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var mS,ZM;function Jbe(){if(ZM)return mS;ZM=1;var e=Dy();function t(){this.__data__=new e,this.size=0}return mS=t,mS}var gS,JM;function Qbe(){if(JM)return gS;JM=1;function e(t){var r=this.__data__,a=r.delete(t);return this.size=r.size,a}return gS=e,gS}var xS,QM;function e0e(){if(QM)return xS;QM=1;function e(t){return this.__data__.get(t)}return xS=e,xS}var vS,e6;function t0e(){if(e6)return vS;e6=1;function e(t){return this.__data__.has(t)}return vS=e,vS}var yS,t6;function r0e(){if(t6)return yS;t6=1;var e=Dy(),t=JN(),r=QN(),a=200;function n(i,o){var s=this.__data__;if(s instanceof e){var c=s.__data__;if(!t||c.length<a-1)return c.push([i,o]),this.size=++s.size,this;s=this.__data__=new r(c)}return s.set(i,o),this.size=s.size,this}return yS=n,yS}var bS,r6;function dU(){if(r6)return bS;r6=1;var e=Dy(),t=Jbe(),r=Qbe(),a=e0e(),n=t0e(),i=r0e();function o(s){var c=this.__data__=new e(s);this.size=c.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=a,o.prototype.has=n,o.prototype.set=i,bS=o,bS}var wS,a6;function a0e(){if(a6)return wS;a6=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return wS=t,wS}var SS,n6;function n0e(){if(n6)return SS;n6=1;function e(t){return this.__data__.has(t)}return SS=e,SS}var ES,i6;function fU(){if(i6)return ES;i6=1;var e=QN(),t=a0e(),r=n0e();function a(n){var i=-1,o=n==null?0:n.length;for(this.__data__=new e;++i<o;)this.add(n[i])}return a.prototype.add=a.prototype.push=t,a.prototype.has=r,ES=a,ES}var AS,o6;function pU(){if(o6)return AS;o6=1;function e(t,r){for(var a=-1,n=t==null?0:t.length;++a<n;)if(r(t[a],a,t))return!0;return!1}return AS=e,AS}var CS,s6;function hU(){if(s6)return CS;s6=1;function e(t,r){return t.has(r)}return CS=e,CS}var PS,l6;function mU(){if(l6)return PS;l6=1;var e=fU(),t=pU(),r=hU(),a=1,n=2;function i(o,s,c,u,h,f){var m=c&a,x=o.length,v=s.length;if(x!=v&&!(m&&v>x))return!1;var y=f.get(o),b=f.get(s);if(y&&b)return y==s&&b==o;var S=-1,A=!0,E=c&n?new e:void 0;for(f.set(o,s),f.set(s,o);++S<x;){var j=o[S],P=s[S];if(u)var C=m?u(P,j,S,s,o,f):u(j,P,S,o,s,f);if(C!==void 0){if(C)continue;A=!1;break}if(E){if(!t(s,function(N,O){if(!r(E,O)&&(j===N||h(j,N,c,u,f)))return E.push(O)})){A=!1;break}}else if(!(j===P||h(j,P,c,u,f))){A=!1;break}}return f.delete(o),f.delete(s),A}return PS=i,PS}var jS,c6;function i0e(){if(c6)return jS;c6=1;var e=Bi(),t=e.Uint8Array;return jS=t,jS}var NS,u6;function o0e(){if(u6)return NS;u6=1;function e(t){var r=-1,a=Array(t.size);return t.forEach(function(n,i){a[++r]=[i,n]}),a}return NS=e,NS}var TS,d6;function cT(){if(d6)return TS;d6=1;function e(t){var r=-1,a=Array(t.size);return t.forEach(function(n){a[++r]=n}),a}return TS=e,TS}var kS,f6;function s0e(){if(f6)return kS;f6=1;var e=Kh(),t=i0e(),r=ZN(),a=mU(),n=o0e(),i=cT(),o=1,s=2,c="[object Boolean]",u="[object Date]",h="[object Error]",f="[object Map]",m="[object Number]",x="[object RegExp]",v="[object Set]",y="[object String]",b="[object Symbol]",S="[object ArrayBuffer]",A="[object DataView]",E=e?e.prototype:void 0,j=E?E.valueOf:void 0;function P(C,N,O,k,B,$,_){switch(O){case A:if(C.byteLength!=N.byteLength||C.byteOffset!=N.byteOffset)return!1;C=C.buffer,N=N.buffer;case S:return!(C.byteLength!=N.byteLength||!$(new t(C),new t(N)));case c:case u:case m:return r(+C,+N);case h:return C.name==N.name&&C.message==N.message;case x:case y:return C==N+"";case f:var W=n;case v:var D=k&o;if(W||(W=i),C.size!=N.size&&!D)return!1;var J=_.get(C);if(J)return J==N;k|=s,_.set(C,N);var z=a(W(C),W(N),k,B,$,_);return _.delete(C),z;case b:if(j)return j.call(C)==j.call(N)}return!1}return kS=P,kS}var DS,p6;function gU(){if(p6)return DS;p6=1;function e(t,r){for(var a=-1,n=r.length,i=t.length;++a<n;)t[i+a]=r[a];return t}return DS=e,DS}var _S,h6;function l0e(){if(h6)return _S;h6=1;var e=gU(),t=Wa();function r(a,n,i){var o=n(a);return t(a)?o:e(o,i(a))}return _S=r,_S}var RS,m6;function c0e(){if(m6)return RS;m6=1;function e(t,r){for(var a=-1,n=t==null?0:t.length,i=0,o=[];++a<n;){var s=t[a];r(s,a,t)&&(o[i++]=s)}return o}return RS=e,RS}var OS,g6;function u0e(){if(g6)return OS;g6=1;function e(){return[]}return OS=e,OS}var MS,x6;function d0e(){if(x6)return MS;x6=1;var e=c0e(),t=u0e(),r=Object.prototype,a=r.propertyIsEnumerable,n=Object.getOwnPropertySymbols,i=n?function(o){return o==null?[]:(o=Object(o),e(n(o),function(s){return a.call(o,s)}))}:t;return MS=i,MS}var IS,v6;function f0e(){if(v6)return IS;v6=1;function e(t,r){for(var a=-1,n=Array(t);++a<t;)n[a]=r(a);return n}return IS=e,IS}var BS,y6;function p0e(){if(y6)return BS;y6=1;var e=Oo(),t=Mo(),r="[object Arguments]";function a(n){return t(n)&&e(n)==r}return BS=a,BS}var LS,b6;function uT(){if(b6)return LS;b6=1;var e=p0e(),t=Mo(),r=Object.prototype,a=r.hasOwnProperty,n=r.propertyIsEnumerable,i=e((function(){return arguments})())?e:function(o){return t(o)&&a.call(o,"callee")&&!n.call(o,"callee")};return LS=i,LS}var op={exports:{}},zS,w6;function h0e(){if(w6)return zS;w6=1;function e(){return!1}return zS=e,zS}op.exports;var S6;function xU(){return S6||(S6=1,(function(e,t){var r=Bi(),a=h0e(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,s=o?r.Buffer:void 0,c=s?s.isBuffer:void 0,u=c||a;e.exports=u}
vendor: 5,321 bytes, line 1217
1217)(op,op.exports)),op.exports}var FS,E6;function dT(){if(E6)return FS;E6=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(a,n){var i=typeof a;return n=n??e,!!n&&(i=="number"||i!="symbol"&&t.test(a))&&a>-1&&a%1==0&&a<n}return FS=r,FS}var $S,A6;function fT(){if(A6)return $S;A6=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return $S=t,$S}var qS,C6;function m0e(){if(C6)return qS;C6=1;var e=Oo(),t=fT(),r=Mo(),a="[object Arguments]",n="[object Array]",i="[object Boolean]",o="[object Date]",s="[object Error]",c="[object Function]",u="[object Map]",h="[object Number]",f="[object Object]",m="[object RegExp]",x="[object Set]",v="[object String]",y="[object WeakMap]",b="[object ArrayBuffer]",S="[object DataView]",A="[object Float32Array]",E="[object Float64Array]",j="[object Int8Array]",P="[object Int16Array]",C="[object Int32Array]",N="[object Uint8Array]",O="[object Uint8ClampedArray]",k="[object Uint16Array]",B="[object Uint32Array]",$={};$[A]=$[E]=$[j]=$[P]=$[C]=$[N]=$[O]=$[k]=$[B]=!0,$[a]=$[n]=$[b]=$[i]=$[S]=$[o]=$[s]=$[c]=$[u]=$[h]=$[f]=$[m]=$[x]=$[v]=$[y]=!1;function _(W){return r(W)&&t(W.length)&&!!$[e(W)]}return qS=_,qS}var VS,P6;function vU(){if(P6)return VS;P6=1;function e(t){return function(r){return t(r)}}return VS=e,VS}var sp={exports:{}};sp.exports;var j6;function g0e(){return j6||(j6=1,(function(e,t){var r=LV(),a=t&&!t.nodeType&&t,n=a&&!0&&e&&!e.nodeType&&e,i=n&&n.exports===a,o=i&&r.process,s=(function(){try{var c=n&&n.require&&n.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}})();e.exports=s})(sp,sp.exports)),sp.exports}var US,N6;function yU(){if(N6)return US;N6=1;var e=m0e(),t=vU(),r=g0e(),a=r&&r.isTypedArray,n=a?t(a):e;return US=n,US}var HS,T6;function x0e(){if(T6)return HS;T6=1;var e=f0e(),t=uT(),r=Wa(),a=xU(),n=dT(),i=yU(),o=Object.prototype,s=o.hasOwnProperty;function c(u,h){var f=r(u),m=!f&&t(u),x=!f&&!m&&a(u),v=!f&&!m&&!x&&i(u),y=f||m||x||v,b=y?e(u.length,String):[],S=b.length;for(var A in u)(h||s.call(u,A))&&!(y&&(A=="length"||x&&(A=="offset"||A=="parent")||v&&(A=="buffer"||A=="byteLength"||A=="byteOffset")||n(A,S)))&&b.push(A);return b}return HS=c,HS}var GS,k6;function v0e(){if(k6)return GS;k6=1;var e=Object.prototype;function t(r){var a=r&&r.constructor,n=typeof a=="function"&&a.prototype||e;return r===n}return GS=t,GS}var KS,D6;function bU(){if(D6)return KS;D6=1;function e(t,r){return function(a){return t(r(a))}}return KS=e,KS}var WS,_6;function y0e(){if(_6)return WS;_6=1;var e=bU(),t=e(Object.keys,Object);return WS=t,WS}var XS,R6;function b0e(){if(R6)return XS;R6=1;var e=v0e(),t=y0e(),r=Object.prototype,a=r.hasOwnProperty;function n(i){if(!e(i))return t(i);var o=[];for(var s in Object(i))a.call(i,s)&&s!="constructor"&&o.push(s);return o}return XS=n,XS}var YS,O6;function Xh(){if(O6)return YS;O6=1;var e=YN(),t=fT();function r(a){return a!=null&&t(a.length)&&!e(a)}return YS=r,YS}var ZS,M6;function Ly(){if(M6)return ZS;M6=1;var e=x0e(),t=b0e(),r=Xh();function a(n){return r(n)?e(n):t(n)}return ZS=a,ZS}var JS,I6;function w0e(){if(I6)return JS;I6=1;var e=l0e(),t=d0e(),r=Ly();function a(n){return e(n,r,t)}return JS=a,JS}var QS,B6;function S0e(){if(B6)return QS;B6=1;var e=w0e(),t=1,r=Object.prototype,a=r.hasOwnProperty;function n(i,o,s,c,u,h){var f=s&t,m=e(i),x=m.length,v=e(o),y=v.length;if(x!=y&&!f)return!1;for(var b=x;b--;){var S=m[b];if(!(f?S in o:a.call(o,S)))return!1}var A=h.get(i),E=h.get(o);if(A&&E)return A==o&&E==i;var j=!0;h.set(i,o),h.set(o,i);for(var P=f;++b<x;){S=m[b];var C=i[S],N=o[S];if(c)var O=f?c(N,C,S,o,i,h):c(C,N,S,i,o,h);if(!(O===void 0?C===N||u(C,N,s,c,h):O)){j=!1;break}P||(P=S=="constructor")}if(j&&!P){var k=i.constructor,B=o.constructor;k!=B&&"constructor"in i&&"constructor"in o&&!(typeof k=="function"&&k instanceof k&&typeof B=="function"&&B instanceof B)&&(j=!1)}return h.delete(i),h.delete(o),j}return QS=n,QS}var eE,L6;function E0e(){if(L6)return eE;L6=1;var e=tc(),t=Bi(),r=e(t,"DataView");return eE=r,eE}var tE,z6;function A0e(){if(z6)return tE;z6=1;var e=tc(),t=Bi(),r=e(t,"Promise");return tE=r,tE}var rE,F6;function wU(){if(F6)return rE;F6=1;var e=tc(),t=Bi(),r=e(t,"Set");return rE=r,rE}var aE,$6;function C0e(){if($6)return aE;$6=1;var e=tc(),t=Bi(),r=e(t,"WeakMap");return aE=r,aE}var nE,q6;function P0e(){if(q6)return nE;q6=1;var e=E0e(),t=JN(),r=A0e(),a=wU(),n=C0e(),i=Oo(),o=zV(),s="[object Map]",c="[object Object]",u="[object Promise]",h="[object Set]",f="[object WeakMap]",m="[object DataView]",x=o(e),v=o(t),y=o(r),b=o(a),S=o(n),A=i;return(e&&A(new e(new ArrayBuffer(1)))!=m||t&&A(new t)!=s||r&&A(r.resolve())!=u||a&&A(new a)!=h||n&&A(new n)!=f)&&(A=function(E){var j=i(E),P=j==c?E.constructor:void 0,C=P?o(P):"";if(C)switch(C){case x:return m;case v:return s;case y:return u;case b:return h;case S:return f}return j}),nE=A,nE}var iE,V6;function j0e(){if(V6)return iE;V6=1;var e=dU(),t=mU(),r=s0e(),a=S0e(),n=P0e(),i=Wa(),o=xU(),s=yU(),c=1,u="[object Arguments]",h="[object Array]",f="[object Object]",m=Object.prototype,x=m.hasOwnProperty;function v(y,b,S,A,E,j){var P=i(y),C=i(b),N=P?h:n(y),O=C?h:n(b);N=N==u?f:N,O=O==u?f:O;var k=N==f,B=O==f,$=N==O;if($&&o(y)){if(!o(b))return!1;P=!0,k=!1}if($&&!k)return j||(j=new e),P||s(y)?t(y,b,S,A,E,j):r(y,b,N,S,A,E,j);if(!(S&c)){var _=k&&x.call(y,"__wrapped__"),W=B&&x.call(b,"__wrapped__");
vendor: 47,984 bytes, lines 1217-1225
1217if(_||W){var D=_?y.value():y,J=W?b.value():b;return j||(j=new e),E(D,J,S,A,j)}}return $?(j||(j=new e),a(y,b,S,A,E,j)):!1}return iE=v,iE}var oE,U6;function pT(){if(U6)return oE;U6=1;var e=j0e(),t=Mo();function r(a,n,i,o,s){return a===n?!0:a==null||n==null||!t(a)&&!t(n)?a!==a&&n!==n:e(a,n,i,o,r,s)}return oE=r,oE}var sE,H6;function N0e(){if(H6)return sE;H6=1;var e=dU(),t=pT(),r=1,a=2;function n(i,o,s,c){var u=s.length,h=u,f=!c;if(i==null)return!h;for(i=Object(i);u--;){var m=s[u];if(f&&m[2]?m[1]!==i[m[0]]:!(m[0]in i))return!1}for(;++u<h;){m=s[u];var x=m[0],v=i[x],y=m[1];if(f&&m[2]){if(v===void 0&&!(x in i))return!1}else{var b=new e;if(c)var S=c(v,y,x,i,o,b);if(!(S===void 0?t(y,v,r|a,c,b):S))return!1}}return!0}return sE=n,sE}var lE,G6;function SU(){if(G6)return lE;G6=1;var e=Os();function t(r){return r===r&&!e(r)}return lE=t,lE}var cE,K6;function T0e(){if(K6)return cE;K6=1;var e=SU(),t=Ly();function r(a){for(var n=t(a),i=n.length;i--;){var o=n[i],s=a[o];n[i]=[o,s,e(s)]}return n}return cE=r,cE}var uE,W6;function EU(){if(W6)return uE;W6=1;function e(t,r){return function(a){return a==null?!1:a[t]===r&&(r!==void 0||t in Object(a))}}return uE=e,uE}var dE,X6;function k0e(){if(X6)return dE;X6=1;var e=N0e(),t=T0e(),r=EU();function a(n){var i=t(n);return i.length==1&&i[0][2]?r(i[0][0],i[0][1]):function(o){return o===n||e(o,n,i)}}return dE=a,dE}var fE,Y6;function D0e(){if(Y6)return fE;Y6=1;function e(t,r){return t!=null&&r in Object(t)}return fE=e,fE}var pE,Z6;function _0e(){if(Z6)return pE;Z6=1;var e=qV(),t=uT(),r=Wa(),a=dT(),n=fT(),i=Ry();function o(s,c,u){c=e(c,s);for(var h=-1,f=c.length,m=!1;++h<f;){var x=i(c[h]);if(!(m=s!=null&&u(s,x)))break;s=s[x]}return m||++h!=f?m:(f=s==null?0:s.length,!!f&&n(f)&&a(x,f)&&(r(s)||t(s)))}return pE=o,pE}var hE,J6;function R0e(){if(J6)return hE;J6=1;var e=D0e(),t=_0e();function r(a,n){return a!=null&&t(a,n,e)}return hE=r,hE}var mE,Q6;function O0e(){if(Q6)return mE;Q6=1;var e=pT(),t=VV(),r=R0e(),a=XN(),n=SU(),i=EU(),o=Ry(),s=1,c=2;function u(h,f){return a(h)&&n(f)?i(o(h),f):function(m){var x=t(m,h);return x===void 0&&x===f?r(m,h):e(f,x,s|c)}}return mE=u,mE}var gE,eI;function Md(){if(eI)return gE;eI=1;function e(t){return t}return gE=e,gE}var xE,tI;function M0e(){if(tI)return xE;tI=1;function e(t){return function(r){return r?.[t]}}return xE=e,xE}var vE,rI;function I0e(){if(rI)return vE;rI=1;var e=tT();function t(r){return function(a){return e(a,r)}}return vE=t,vE}var yE,aI;function B0e(){if(aI)return yE;aI=1;var e=M0e(),t=I0e(),r=XN(),a=Ry();function n(i){return r(i)?e(a(i)):t(i)}return yE=n,yE}var bE,nI;function Li(){if(nI)return bE;nI=1;var e=k0e(),t=O0e(),r=Md(),a=Wa(),n=B0e();function i(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?a(o)?t(o[0],o[1]):e(o):n(o)}return bE=i,bE}var wE,iI;function AU(){if(iI)return wE;iI=1;function e(t,r,a,n){for(var i=t.length,o=a+(n?1:-1);n?o--:++o<i;)if(r(t[o],o,t))return o;return-1}return wE=e,wE}var SE,oI;function L0e(){if(oI)return SE;oI=1;function e(t){return t!==t}return SE=e,SE}var EE,sI;function z0e(){if(sI)return EE;sI=1;function e(t,r,a){for(var n=a-1,i=t.length;++n<i;)if(t[n]===r)return n;return-1}return EE=e,EE}var AE,lI;function F0e(){if(lI)return AE;lI=1;var e=AU(),t=L0e(),r=z0e();function a(n,i,o){return i===i?r(n,i,o):e(n,t,o)}return AE=a,AE}var CE,cI;function $0e(){if(cI)return CE;cI=1;var e=F0e();function t(r,a){var n=r==null?0:r.length;return!!n&&e(r,a,0)>-1}return CE=t,CE}var PE,uI;function q0e(){if(uI)return PE;uI=1;function e(t,r,a){for(var n=-1,i=t==null?0:t.length;++n<i;)if(a(r,t[n]))return!0;return!1}return PE=e,PE}var jE,dI;function V0e(){if(dI)return jE;dI=1;function e(){}return jE=e,jE}var NE,fI;function U0e(){if(fI)return NE;fI=1;var e=wU(),t=V0e(),r=cT(),a=1/0,n=e&&1/r(new e([,-0]))[1]==a?function(i){return new e(i)}:t;return NE=n,NE}var TE,pI;function H0e(){if(pI)return TE;pI=1;var e=fU(),t=$0e(),r=q0e(),a=hU(),n=U0e(),i=cT(),o=200;function s(c,u,h){var f=-1,m=t,x=c.length,v=!0,y=[],b=y;if(h)v=!1,m=r;else if(x>=o){var S=u?null:n(c);if(S)return i(S);v=!1,m=a,b=new e}else b=u?[]:y;e:for(;++f<x;){var A=c[f],E=u?u(A):A;if(A=h||A!==0?A:0,v&&E===E){for(var j=b.length;j--;)if(b[j]===E)continue e;u&&b.push(E),y.push(A)}else m(b,E,h)||(b!==y&&b.push(E),y.push(A))}return y}return TE=s,TE}var kE,hI;function G0e(){if(hI)return kE;hI=1;var e=Li(),t=H0e();function r(a,n){return a&&a.length?t(a,e(n,2)):[]}return kE=r,kE}var K0e=G0e();const mI=qt(K0e);function CU(e,t,r){return t===!0?mI(e,r):gt(t)?mI(e,t):e}function Gu(e){"@babel/helpers - typeof";return Gu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gu(e)}var W0e=["ref"];function gI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function uo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gI(Object(r),!0).forEach(function(a){zy(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gI(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function X0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xI(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,jU(a.key),a)}}function Y0e(e,t,r){return t&&xI(e.prototype,t),r&&xI(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Z0e(e,t,r){return t=av(t),J0e(e,PU()?Reflect.construct(t,r||[],av(e).constructor):t.apply(e,r))}function J0e(e,t){if(t&&(Gu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Q0e(e)}function Q0e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(PU=function(){return!!e})()}function av(e){return av=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},av(e)}function e1e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fP(e,t)}function fP(e,t){return fP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},fP(e,t)}function zy(e,t,r){return t=jU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jU(e){var t=t1e(e,"string");return Gu(t)=="symbol"?t:t+""}function t1e(e,t){if(Gu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(Gu(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function r1e(e,t){if(e==null)return{};var r=a1e(e,t),a,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)a=i[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function a1e(e,t){if(e==null)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}function n1e(e){return e.value}function i1e(e,t){if(de.isValidElement(e))return de.cloneElement(e,t);if(typeof e=="function")return de.createElement(e,t);t.ref;var r=r1e(t,W0e);return de.createElement(lT,r)}var vI=1,bo=(function(e){function t(){var r;X0e(this,t);for(var a=arguments.length,n=new Array(a),i=0;i<a;i++)n[i]=arguments[i];return r=Z0e(this,t,[].concat(n)),zy(r,"lastBoundingBox",{width:-1,height:-1}),r}return e1e(t,e),Y0e(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var a=this.wrapperNode.getBoundingClientRect();return a.height=this.wrapperNode.offsetHeight,a.width=this.wrapperNode.offsetWidth,a}return null}},{key:"updateBBox",value:function(){var a=this.props.onBBoxUpdate,n=this.getBBox();n?(Math.abs(n.width-this.lastBoundingBox.width)>vI||Math.abs(n.height-this.lastBoundingBox.height)>vI)&&(this.lastBoundingBox.width=n.width,this.lastBoundingBox.height=n.height,a&&a(n)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,a&&a(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?uo({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(a){var n=this.props,i=n.layout,o=n.align,s=n.verticalAlign,c=n.margin,u=n.chartWidth,h=n.chartHeight,f,m;if(!a||(a.left===void 0||a.left===null)&&(a.right===void 0||a.right===null))if(o==="center"&&i==="vertical"){var x=this.getBBoxSnapshot();f={left:((u||0)-x.width)/2}}else f=o==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!a||(a.top===void 0||a.top===null)&&(a.bottom===void 0||a.bottom===null))if(s==="middle"){var v=this.getBBoxSnapshot();m={top:((h||0)-v.height)/2}}else m=s==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return uo(uo({},f),m)}},{key:"render",value:function(){var a=this,n=this.props,i=n.content,o=n.width,s=n.height,c=n.wrapperStyle,u=n.payloadUniqBy,h=n.payload,f=uo(uo({position:"absolute",width:o||"auto",height:s||"auto"},this.getDefaultPosition(c)),c);return de.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(x){a.wrapperNode=x}},i1e(i,uo(uo({},this.props),{},{payload:CU(h,u,n1e)})))}}],[{key:"getWithHeight",value:function(a,n){var i=uo(uo({},this.defaultProps),a.props),o=i.layout;return o==="vertical"&&Ue(a.props.height)?{height:a.props.height}:o==="horizontal"?{width:a.props.width||n}:null}}])})(L.PureComponent);zy(bo,"displayName","Legend");zy(bo,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var DE,yI;function o1e(){if(yI)return DE;yI=1;var e=Kh(),t=uT(),r=Wa(),a=e?e.isConcatSpreadable:void 0;function n(i){return r(i)||t(i)||!!(a&&i&&i[a])}return DE=n,DE}var _E,bI;function NU(){if(bI)return _E;bI=1;var e=gU(),t=o1e();function r(a,n,i,o,s){var c=-1,u=a.length;for(i||(i=t),s||(s=[]);++c<u;){var h=a[c];n>0&&i(h)?n>1?r(h,n-1,i,o,s):e(s,h):o||(s[s.length]=h)}return s}return _E=r,_E}var RE,wI;function s1e(){if(wI)return RE;wI=1;function e(t){return function(r,a,n){for(var i=-1,o=Object(r),s=n(r),c=s.length;c--;){var u=s[t?c:++i];if(a(o[u],u,o)===!1)break}return r}}return RE=e,RE}var OE,SI;function l1e(){if(SI)return OE;SI=1;var e=s1e(),t=e();return OE=t,OE}var ME,EI;function TU(){if(EI)return ME;EI=1;var e=l1e(),t=Ly();function r(a,n){return a&&e(a,n,t)}return ME=r,ME}var IE,AI;function c1e(){if(AI)return IE;AI=1;var e=Xh();function t(r,a){return function(n,i){if(n==null)return n;if(!e(n))return r(n,i);for(var o=n.length,s=a?o:-1,c=Object(n);(a?s--:++s<o)&&i(c[s],s,c)!==!1;);return n}}return IE=t,IE}var BE,CI;function hT(){if(CI)return BE;CI=1;var e=TU(),t=c1e(),r=t(e);return BE=r,BE}var LE,PI;function kU(){if(PI)return LE;PI=1;var e=hT(),t=Xh();function r(a,n){var i=-1,o=t(a)?Array(a.length):[];return e(a,function(s,c,u){o[++i]=n(s,c,u)}),o}return LE=r,LE}var zE,jI;function u1e(){if(jI)return zE;jI=1;function e(t,r){var a=t.length;for(t.sort(r);a--;)t[a]=t[a].value;return t}return zE=e,zE}var FE,NI;function d1e(){if(NI)return FE;NI=1;var e=_d();function t(r,a){if(r!==a){var n=r!==void 0,i=r===null,o=r===r,s=e(r),c=a!==void 0,u=a===null,h=a===a,f=e(a);if(!u&&!f&&!s&&r>a||s&&c&&h&&!u&&!f||i&&c&&h||!n&&h||!o)return 1;if(!i&&!s&&!f&&r<a||f&&n&&o&&!i&&!s||u&&n&&o||!c&&o||!h)return-1}return 0}return FE=t,FE}var $E,TI;function f1e(){if(TI)return $E;TI=1;var e=d1e();function t(r,a,n){for(var i=-1,o=r.criteria,s=a.criteria,c=o.length,u=n.length;++i<c;){var h=e(o[i],s[i]);if(h){if(i>=u)return h;var f=n[i];return h*(f=="desc"?-1:1)}}return r.index-a.index}return $E=t,$E}var qE,kI;function p1e(){if(kI)return qE;kI=1;var e=eT(),t=tT(),r=Li(),a=kU(),n=u1e(),i=vU(),o=f1e(),s=Md(),c=Wa();function u(h,f,m){f.length?f=e(f,function(y){return c(y)?function(b){return t(b,y.length===1?y[0]:y)}:y}):f=[s];var x=-1;f=e(f,i(r));var v=a(h,function(y,b,S){var A=e(f,function(E){return E(y)});return{criteria:A,index:++x,value:y}});return n(v,function(y,b){return o(y,b,m)})}return qE=u,qE}var VE,DI;function h1e(){if(DI)return VE;DI=1;function e(t,r,a){switch(a.length){case 0:return t.call(r);case 1:return t.call(r,a[0]);case 2:return t.call(r,a[0],a[1]);case 3:return t.call(r,a[0],a[1],a[2])}return t.apply(r,a)}return VE=e,VE}var UE,_I;function m1e(){if(_I)return UE;_I=1;var e=h1e(),t=Math.max;function r(a,n,i){return n=t(n===void 0?a.length-1:n,0),function(){for(var o=arguments,s=-1,c=t(o.length-n,0),u=Array(c);++s<c;)u[s]=o[n+s];s=-1;for(var h=Array(n+1);++s<n;)h[s]=o[s];return h[n]=i(u),e(a,this,h)}}return UE=r,UE}var HE,RI;function g1e(){if(RI)return HE;RI=1;function e(t){return function(){return t}}return HE=e,HE}var GE,OI;function DU(){if(OI)return GE;OI=1;var e=tc(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return GE=t,GE}var KE,MI;function x1e(){if(MI)return KE;MI=1;var e=g1e(),t=DU(),r=Md(),a=t?function(n,i){return t(n,"toString",{configurable:!0,enumerable:!1,value:e(i),writable:!0})}:r;return KE=a,KE}var WE,II;function v1e(){if(II)return WE;II=1;var e=800,t=16,r=Date.now;function a(n){var i=0,o=0;return function(){var s=r(),c=t-(s-o);if(o=s,c>0){if(++i>=e)return arguments[0]}else i=0;return n.apply(void 0,arguments)}}return WE=a,WE}var XE,BI;function y1e(){if(BI)return XE;BI=1;var e=x1e(),t=v1e(),r=t(e);return XE=r,XE}var YE,LI;function b1e(){if(LI)return YE;LI=1;var e=Md(),t=m1e(),r=y1e();function a(n,i){return r(t(n,i,e),n+"")}return YE=a,YE}var ZE,zI;function Fy(){if(zI)return ZE;zI=1;var e=ZN(),t=Xh(),r=dT(),a=Os();function n(i,o,s){if(!a(s))return!1;var c=typeof o;return(c=="number"?t(s)&&r(o,s.length):c=="string"&&o in s)?e(s[o],i):!1}return ZE=n,ZE}var JE,FI;function w1e(){if(FI)return JE;FI=1;var e=NU(),t=p1e(),r=b1e(),a=Fy(),n=r(function(i,o){if(i==null)return[];var s=o.length;return s>1&&a(i,o[0],o[1])?o=[]:s>2&&a(o[0],o[1],o[2])&&(o=[o[0]]),t(i,e(o,1),[])});return JE=n,JE}var S1e=w1e();const mT=qt(S1e);function Gp(e){"@babel/helpers - typeof";return Gp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gp(e)}function pP(){return pP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},pP.apply(this,arguments)}function E1e(e,t){return j1e(e)||P1e(e,t)||C1e(e,t)||A1e()}function A1e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1218In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function C1e(e,t){if(e){if(typeof e=="string")return $I(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $I(e,t)}}function $I(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function P1e(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,n,i,o,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(c=(a=i.call(r)).done)&&(s.push(a.value),s.length!==t);c=!0);}catch(h){u=!0,n=h}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw n}}return s}}function j1e(e){if(Array.isArray(e))return e}function qI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function QE(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qI(Object(r),!0).forEach(function(a){N1e(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qI(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function N1e(e,t,r){return t=T1e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T1e(e){var t=k1e(e,"string");return Gp(t)=="symbol"?t:t+""}function k1e(e,t){if(Gp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(Gp(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function D1e(e){return Array.isArray(e)&&Wr(e[0])&&Wr(e[1])?e.join(" ~ "):e}var _1e=function(t){var r=t.separator,a=r===void 0?" : ":r,n=t.contentStyle,i=n===void 0?{}:n,o=t.itemStyle,s=o===void 0?{}:o,c=t.labelStyle,u=c===void 0?{}:c,h=t.payload,f=t.formatter,m=t.itemSorter,x=t.wrapperClassName,v=t.labelClassName,y=t.label,b=t.labelFormatter,S=t.accessibilityLayer,A=S===void 0?!1:S,E=function(){if(h&&h.length){var _={padding:0,margin:0},W=(m?mT(h,m):h).map(function(D,J){if(D.type==="none")return null;var z=QE({display:"block",paddingTop:4,paddingBottom:4,color:D.color||"#000"},s),V=D.formatter||f||D1e,Z=D.value,te=D.name,K=Z,q=te;if(V&&K!=null&&q!=null){var X=V(Z,te,D,J,h);if(Array.isArray(X)){var U=E1e(X,2);K=U[0],q=U[1]}else K=X}return de.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(J),style:z},Wr(q)?de.createElement("span",{className:"recharts-tooltip-item-name"},q):null,Wr(q)?de.createElement("span",{className:"recharts-tooltip-item-separator"},a):null,de.createElement("span",{className:"recharts-tooltip-item-value"},K),de.createElement("span",{className:"recharts-tooltip-item-unit"},D.unit||""))});return de.createElement("ul",{className:"recharts-tooltip-item-list",style:_},W)}return null},j=QE({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),P=QE({margin:0},u),C=!yt(y),N=C?y:"",O=wt("recharts-default-tooltip",x),k=wt("recharts-tooltip-label",v);C&&b&&h!==void 0&&h!==null&&(N=b(y,h));var B=A?{role:"status","aria-live":"assertive"}:{};return de.createElement("div",pP({className:O,style:j},B),de.createElement("p",{className:k,style:P},de.isValidElement(N)?N:"".concat(N)),E())};function Kp(e){"@babel/helpers - typeof";return Kp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kp(e)}function Xg(e,t,r){return t=R1e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function R1e(e){var t=O1e(e,"string");return Kp(t)=="symbol"?t:t+""}function O1e(e,t){if(Kp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(Kp(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Gf="recharts-tooltip-wrapper",M1e={visibility:"hidden"};function I1e(e){var t=e.coordinate,r=e.translateX,a=e.translateY;return wt(Gf,Xg(Xg(Xg(Xg({},"".concat(Gf,"-right"),Ue(r)&&t&&Ue(t.x)&&r>=t.x),"".concat(Gf,"-left"),Ue(r)&&t&&Ue(t.x)&&r<t.x),"".concat(Gf,"-bottom"),Ue(a)&&t&&Ue(t.y)&&a>=t.y),"".concat(Gf,"-top"),Ue(a)&&t&&Ue(t.y)&&a<t.y))}function VI(e){var t=e.allowEscapeViewBox,r=e.coordinate,a=e.key,n=e.offsetTopLeft,i=e.position,o=e.reverseDirection,s=e.tooltipDimension,c=e.viewBox,u=e.viewBoxDimension;if(i&&Ue(i[a]))return i[a];var h=r[a]-s-n,f=r[a]+n;if(t[a])return o[a]?h:f;if(o[a]){var m=h,x=c[a];return m<x?Math.max(f,c[a]):Math.max(h,c[a])}var v=f+s,y=c[a]+u;return v>y?Math.max(h,c[a]):Math.max(f,c[a])}function B1e(e){var t=e.translateX,r=e.translateY,a=e.useTranslate3d;return{transform:a?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function L1e(e){var t=e.allowEscapeViewBox,r=e.coordinate,a=e.offsetTopLeft,n=e.position,i=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,c=e.viewBox,u,h,f;return o.height>0&&o.width>0&&r?(h=VI({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:a,position:n,reverseDirection:i,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),f=VI({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:a,position:n,reverseDirection:i,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),u=B1e({translateX:h,translateY:f,useTranslate3d:s})):u=M1e,{cssProperties:u,cssClasses:I1e({translateX:h,translateY:f,coordinate:r})}}function Ku(e){"@babel/helpers - typeof";return Ku=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ku(e)}function UI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function HI(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?UI(Object(r),!0).forEach(function(a){mP(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):UI(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function z1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F1e(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,RU(a.key),a)}}function $1e(e,t,r){return t&&F1e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function q1e(e,t,r){return t=nv(t),V1e(e,_U()?Reflect.construct(t,r||[],nv(e).constructor):t.apply(e,r))}function V1e(e,t){if(t&&(Ku(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return U1e(e)}function U1e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _U(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_U=function(){return!!e})()}function nv(e){return nv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},nv(e)}function H1e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hP(e,t)}function hP(e,t){return hP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},hP(e,t)}function mP(e,t,r){return t=RU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RU(e){var t=G1e(e,"string");return Ku(t)=="symbol"?t:t+""}function G1e(e,t){if(Ku(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(Ku(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var GI=1,K1e=(function(e){function t(){var r;z1e(this,t);for(var a=arguments.length,n=new Array(a),i=0;i<a;i++)n[i]=arguments[i];return r=q1e(this,t,[].concat(n)),mP(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),mP(r,"handleKeyDown",function(o){if(o.key==="Escape"){var s,c,u,h;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(c=r.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&s!==void 0?s:0,y:(u=(h=r.props.coordinate)===null||h===void 0?void 0:h.y)!==null&&u!==void 0?u:0}})}}),r}return H1e(t,e),$1e(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var a=this.wrapperNode.getBoundingClientRect();(Math.abs(a.width-this.state.lastBoundingBox.width)>GI||Math.abs(a.height-this.state.lastBoundingBox.height)>GI)&&this.setState({lastBoundingBox:{width:a.width,height:a.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var a,n;this.props.active&&this.updateBBox(),this.state.dismissed&&(((a=this.props.coordinate)===null||a===void 0?void 0:a.x)!==this.state.dismissedAtCoordinate.x||((n=this.props.coordinate)===null||n===void 0?void 0:n.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var a=this,n=this.props,i=n.active,o=n.allowEscapeViewBox,s=n.animationDuration,c=n.animationEasing,u=n.children,h=n.coordinate,f=n.hasPayload,m=n.isAnimationActive,x=n.offset,v=n.position,y=n.reverseDirection,b=n.useTranslate3d,S=n.viewBox,A=n.wrapperStyle,E=L1e({allowEscapeViewBox:o,coordinate:h,offsetTopLeft:x,position:v,reverseDirection:y,tooltipBox:this.state.lastBoundingBox,useTranslate3d:b,viewBox:S}),j=E.cssClasses,P=E.cssProperties,C=HI(HI({transition:m&&i?"transform ".concat(s,"ms ").concat(c):void 0},P),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&f?"visible":"hidden",position:"absolute",top:0,left:0},A);return de.createElement("div",{tabIndex:-1,className:j,style:C,ref:function(O){a.wrapperNode=O}},u)}}])})(L.PureComponent),W1e=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},rc={isSsr:W1e()};function Wu(e){"@babel/helpers - typeof";return Wu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wu(e)}function KI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function WI(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?KI(Object(r),!0).forEach(function(a){gT(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):KI(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function X1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Y1e(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,MU(a.key),a)}}function Z1e(e,t,r){return t&&Y1e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function J1e(e,t,r){return t=iv(t),Q1e(e,OU()?Reflect.construct(t,r||[],iv(e).constructor):t.apply(e,r))}function Q1e(e,t){if(t&&(Wu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ewe(e)}function ewe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(OU=function(){return!!e})()}function iv(e){return iv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},iv(e)}function twe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gP(e,t)}function gP(e,t){return gP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},gP(e,t)}function gT(e,t,r){return t=MU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MU(e){var t=rwe(e,"string");return Wu(t)=="symbol"?t:t+""}function rwe(e,t){if(Wu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(Wu(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function awe(e){return e.dataKey}function nwe(e,t){return de.isValidElement(e)?de.cloneElement(e,t):typeof e=="function"?de.createElement(e,t):de.createElement(_1e,t)}var va=(function(e){function t(){return X1e(this,t),J1e(this,t,arguments)}return twe(t,e),Z1e(t,[{key:"render",value:function(){var a=this,n=this.props,i=n.active,o=n.allowEscapeViewBox,s=n.animationDuration,c=n.animationEasing,u=n.content,h=n.coordinate,f=n.filterNull,m=n.isAnimationActive,x=n.offset,v=n.payload,y=n.payloadUniqBy,b=n.position,S=n.reverseDirection,A=n.useTranslate3d,E=n.viewBox,j=n.wrapperStyle,P=v??[];f&&P.length&&(P=CU(v.filter(function(N){return N.value!=null&&(N.hide!==!0||a.props.includeHidden)}),y,awe));var C=P.length>0;return de.createElement(K1e,{allowEscapeViewBox:o,animationDuration:s,animationEasing:c,isAnimationActive:m,active:i,coordinate:h,hasPayload:C,offset:x,position:b,reverseDirection:S,useTranslate3d:A,viewBox:E,wrapperStyle:j},nwe(u,WI(WI({},this.props),{},{payload:P})))}}])})(L.PureComponent);gT(va,"displayName","Tooltip");gT(va,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!rc.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var eA,XI;function iwe(){if(XI)return eA;XI=1;var e=Bi(),t=function(){return e.Date.now()};return eA=t,eA}var tA,YI;function owe(){if(YI)return tA;YI=1;var e=/\s/;function t(r){for(var a=r.length;a--&&e.test(r.charAt(a)););return a}return tA=t,tA}var rA,ZI;function swe(){if(ZI)return rA;ZI=1;var e=owe(),t=/^\s+/;function r(a){return a&&a.slice(0,e(a)+1).replace(t,"")}return rA=r,rA}var aA,JI;function IU(){if(JI)return aA;JI=1;var e=swe(),t=Os(),r=_d(),a=NaN,n=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function c(u){if(typeof u=="number")return u;if(r(u))return a;if(t(u)){var h=typeof u.valueOf=="function"?u.valueOf():u;u=t(h)?h+"":h}if(typeof u!="string")return u===0?u:+u;u=e(u);var f=i.test(u);return f||o.test(u)?s(u.slice(2),f?2:8):n.test(u)?a:+u}return aA=c,aA}var nA,QI;function lwe(){if(QI)return nA;QI=1;var e=Os(),t=iwe(),r=IU(),a="Expected a function",n=Math.max,i=Math.min;function o(s,c,u){var h,f,m,x,v,y,b=0,S=!1,A=!1,E=!0;if(typeof s!="function")throw new TypeError(a);c=r(c)||0,e(u)&&(S=!!u.leading,A="maxWait"in u,m=A?n(r(u.maxWait)||0,c):m,E="trailing"in u?!!u.trailing:E);function j(W){var D=h,J=f;return h=f=void 0,b=W,x=s.apply(J,D),x}function P(W){return b=W,v=setTimeout(O,c),S?j(W):x}function C(W){var D=W-y,J=W-b,z=c-D;return A?i(z,m-J):z}function N(W){var D=W-y,J=W-b;return y===void 0||D>=c||D<0||A&&J>=m}function O(){var W=t();if(N(W))return k(W);v=setTimeout(O,C(W))}function k(W){return v=void 0,E&&h?j(W):(h=f=void 0,x)}function B(){v!==void 0&&clearTimeout(v),b=0,h=y=f=v=void 0}function $(){return v===void 0?x:k(t())}function _(){var W=t(),D=N(W);if(h=arguments,f=this,y=W,D){if(v===void 0)return P(y);if(A)return clearTimeout(v),v=setTimeout(O,c),j(y)}return v===void 0&&(v=setTimeout(O,c)),x}return _.cancel=B,_.flush=$,_}return nA=o,nA}var iA,e8;function cwe(){if(e8)return iA;e8=1;var e=lwe(),t=Os(),r="Expected a function";function a(n,i,o){var s=!0,c=!0;if(typeof n!="function")throw new TypeError(r);return t(o)&&(s="leading"in o?!!o.leading:s,c="trailing"in o?!!o.trailing:c),e(n,i,{leading:s,maxWait:i,trailing:c})}return iA=a,iA}var uwe=cwe();const BU=qt(uwe);function Wp(e){"@babel/helpers - typeof";return Wp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wp(e)}function t8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function Yg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?t8(Object(r),!0).forEach(function(a){dwe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):t8(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function dwe(e,t,r){return t=fwe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fwe(e){var t=pwe(e,"string");return Wp(t)=="symbol"?t:t+""}function pwe(e,t){if(Wp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(Wp(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hwe(e,t){return vwe(e)||xwe(e,t)||gwe(e,t)||mwe()}function mwe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1219In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gwe(e,t){if(e){if(typeof e=="string")return r8(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return r8(e,t)}}function r8(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function xwe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,n,i,o,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(c=(a=i.call(r)).done)&&(s.push(a.value),s.length!==t);c=!0);}catch(h){u=!0,n=h}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw n}}return s}}function vwe(e){if(Array.isArray(e))return e}var Sl=L.forwardRef(function(e,t){var r=e.aspect,a=e.initialDimension,n=a===void 0?{width:-1,height:-1}:a,i=e.width,o=i===void 0?"100%":i,s=e.height,c=s===void 0?"100%":s,u=e.minWidth,h=u===void 0?0:u,f=e.minHeight,m=e.maxHeight,x=e.children,v=e.debounce,y=v===void 0?0:v,b=e.id,S=e.className,A=e.onResize,E=e.style,j=E===void 0?{}:E,P=L.useRef(null),C=L.useRef();C.current=A,L.useImperativeHandle(t,function(){return Object.defineProperty(P.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),P.current},configurable:!0})});var N=L.useState({containerWidth:n.width,containerHeight:n.height}),O=hwe(N,2),k=O[0],B=O[1],$=L.useCallback(function(W,D){B(function(J){var z=Math.round(W),V=Math.round(D);return J.containerWidth===z&&J.containerHeight===V?J:{containerWidth:z,containerHeight:V}})},[]);L.useEffect(function(){var W=function(te){var K,q=te[0].contentRect,X=q.width,U=q.height;$(X,U),(K=C.current)===null||K===void 0||K.call(C,X,U)};y>0&&(W=BU(W,y,{trailing:!0,leading:!1}));var D=new ResizeObserver(W),J=P.current.getBoundingClientRect(),z=J.width,V=J.height;return $(z,V),D.observe(P.current),function(){D.disconnect()}},[$,y]);var _=L.useMemo(function(){var W=k.containerWidth,D=k.containerHeight;if(W<0||D<0)return null;ri(wl(o)||wl(c),`The width(%s) and height(%s) are both fixed numbers, 1220 maybe you don't need to use a ResponsiveContainer.`,o,c),ri(!r||r>0,"The aspect(%s) must be greater than zero.",r);var J=wl(o)?W:o,z=wl(c)?D:c;r&&r>0&&(J?z=J/r:z&&(J=z*r),m&&z>m&&(z=m)),ri(J>0||z>0,`The width(%s) and height(%s) of chart should be greater than 0, 1221 please check the style of container, or the props width(%s) and height(%s), 1222 or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the 1223 height and width.`,J,z,o,c,h,f,r);var V=!Array.isArray(x)&&yo(x.type).endsWith("Chart");return de.Children.map(x,function(Z){return de.isValidElement(Z)?L.cloneElement(Z,Yg({width:J,height:z},V?{style:Yg({height:"100%",width:"100%",maxHeight:z,maxWidth:J},Z.props.style)}:{})):Z})},[r,x,c,m,f,h,k,o]);return de.createElement("div",{id:b?"".concat(b):void 0,className:wt("recharts-responsive-container",S),style:Yg(Yg({},j),{},{width:o,height:c,minWidth:h,minHeight:f,maxHeight:m}),ref:P},_)}),Yh=function(t){return null};Yh.displayName="Cell";function Xp(e){"@babel/helpers - typeof";return Xp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xp(e)}function a8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function xP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?a8(Object(r),!0).forEach(function(a){ywe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a8(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function ywe(e,t,r){return t=bwe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bwe(e){var t=wwe(e,"string");return Xp(t)=="symbol"?t:t+""}function wwe(e,t){if(Xp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(Xp(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ru={widthCache:{},cacheCount:0},Swe=2e3,Ewe={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},n8="recharts_measurement_span";function Awe(e){var t=xP({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var bp=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||rc.isSsr)return{width:0,height:0};var a=Awe(r),n=JSON.stringify({text:t,copyStyle:a});if(ru.widthCache[n])return ru.widthCache[n];try{var i=document.getElementById(n8);i||(i=document.createElement("span"),i.setAttribute("id",n8),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var o=xP(xP({},Ewe),a);Object.assign(i.style,o),i.textContent="".concat(t);var s=i.getBoundingClientRect(),c={width:s.width,height:s.height};return ru.widthCache[n]=c,++ru.cacheCount>Swe&&(ru.cacheCount=0,ru.widthCache={}),c}catch{return{width:0,height:0}}},Cwe=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Yp(e){"@babel/helpers - typeof";return Yp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yp(e)}function ov(e,t){return Twe(e)||Nwe(e,t)||jwe(e,t)||Pwe()}function Pwe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1224In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jwe(e,t){if(e){if(typeof e=="string")return i8(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i8(e,t)}}function i8(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function Nwe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,n,i,o,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(a=i.call(r)).done)&&(s.push(a.value),s.length!==t);c=!0);}catch(h){u=!0,n=h}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw n}}return s}}function Twe(e){if(Array.isArray(e))return e}function kwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o8(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,_we(a.key),a)}}function Dwe(e,t,r){return t&&o8(e.prototype,t),r&&o8(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _we(e){var t=Rwe(e,"string");return Yp(t)=="symbol"?t:t+""}function Rwe(e,t){if(Yp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(Yp(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var s8=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,l8=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Owe=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Mwe=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,LU={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},Iwe=Object.keys(LU),uu="NaN";function Bwe(e,t){return e*LU[t]}var Zg=(function(){function e(t,r){kwe(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!Owe.test(r)&&(this.num=NaN,this.unit=""),Iwe.includes(r)&&(this.num=Bwe(t,r),this.unit="px")}return Dwe(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var a,n=(a=Mwe.exec(r))!==null&&a!==void 0?a:[],i=ov(n,3),o=i[1],s=i[2];return new e(parseFloat(o),s??"")}}])})();function zU(e){if(e.includes(uu))return uu;for(var t=e;t.includes("*")||t.includes("/");){var r,a=(r=s8.exec(t))!==null&&r!==void 0?r:[],n=ov(a,4),i=n[1],o=n[2],s=n[3],c=Zg.parse(i??""),u=Zg.parse(s??""),h=o==="*"?c.multiply(u):c.divide(u);if(h.isNaN())return uu;t=t.replace(s8,h.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,m=(f=l8.exec(t))!==null&&f!==void 0?f:[],x=ov(m,4),v=x[1],y=x[2],b=x[3],S=Zg.parse(v??""),A=Zg.parse(b??""),E=y==="+"?S.add(A):S.subtract(A);if(E.isNaN())return uu;t=t.replace(l8,E.toString())}return t}var c8=/\(([^()]*)\)/;function Lwe(e){for(var t=e;t.includes("(");){var r=c8.exec(t),a=ov(r,2),n=a[1];t=t.replace(c8,zU(n))}return t}function zwe(e){var t=e.replace(/\s+/g,"");return t=Lwe(t),t=zU(t),t}function Fwe(e){try{return zwe(e)}catch{return uu}}function oA(e){var t=Fwe(e.slice(5,-1));return t===uu?"":t}var $we=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],qwe=["dx","dy","angle","className","breakAll"];function vP(){return vP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},vP.apply(this,arguments)}function u8(e,t){if(e==null)return{};var r=Vwe(e,t),a,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)a=i[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function Vwe(e,t){if(e==null)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}function d8(e,t){return Kwe(e)||Gwe(e,t)||Hwe(e,t)||Uwe()}function Uwe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1225In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hwe(e,t){if(e){if(typeof e=="string")return f8(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return f8(e,t)}}function f8(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function Gwe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,n,i,o,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(a=i.call(r)).done)&&(s.push(a.value),s.length!==t);c=!0);}catch(h){u=!0,n=h}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw n}}return s}}function Kwe(e){if(Array.isArray(e))return e}var FU=/[ \f\n\r\t\v\u2028\u2029]+/,$U=function(t){var r=t.children,a=t.breakAll,n=t.style;try{var i=[];yt(r)||(a?i=r.toString().split(""):i=r.toString().split(FU));var o=i.map(function(c){return{word:c,width:bp(c,n).width}}),s=a?0:bp(" ",n).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},Wwe=function(t,r,a,n,i){var o=t.maxLines,s=t.children,c=t.style,u=t.breakAll,h=Ue(o),f=s,m=function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return J.reduce(function(z,V){var Z=V.word,te=V.width,K=z[z.length-1];if(K&&(n==null||i||K.width+te+a<Number(n)))K.words.push(Z),K.width+=te+a;else{var q={words:[Z],width:te};z.push(q)}return z},[])},x=m(r),v=function(J){return J.reduce(function(z,V){return z.width>V.width?z:V})};if(!h)return x;for(var y="â¦",b=function(J){var z=f.slice(0,J),V=$U({breakAll:u,style:c,children:z+y}).wordsWithComputedWidth,Z=m(V),te=Z.length>o||v(Z).width>Number(n);return[te,Z]},S=0,A=f.length-1,E=0,j;S<=A&&E<=f.length-1;){var P=Math.floor((S+A)/2),C=P-1,N=b(C),O=d8(N,2),k=O[0],B=O[1],$=b(P),_=d8($,1),W=_[0];if(!k&&!W&&(S=P+1),k&&W&&(A=P-1),!k&&W){j=B;break}E++}return j||x},p8=function(t){var r=yt(t)?[]:t.toString().split(FU);return[{words:r}]},Xwe=function(t){var r=t.width,a=t.scaleToFit,n=t.children,i=t.style,o=t.breakAll,s=t.maxLines;if((r||a)&&!rc.isSsr){var c,u,h=$U({breakAll:o,children:n,style:i});if(h){var f=h.wordsWithComputedWidth,m=h.spaceWidth;c=f,u=m}else return p8(n);return Wwe({breakAll:o,children:n,maxLines:s,style:i},c,u,r,a)}return p8(n)},h8="#808080",Hl=function(t){var r=t.x,a=r===void 0?0:r,n=t.y,i=n===void 0?0:n,o=t.lineHeight,s=o===void 0?"1em":o,c=t.capHeight,u=c===void 0?"0.71em":c,h=t.scaleToFit,f=h===void 0?!1:h,m=t.textAnchor,x=m===void 0?"start":m,v=t.verticalAnchor,y=v===void 0?"end":v,b=t.fill,S=b===void 0?h8:b,A=u8(t,$we),E=L.useMemo(function(){return Xwe({breakAll:A.breakAll,children:A.children,maxLines:A.maxLines,scaleToFit:f,style:A.style,width:A.width})},[A.breakAll,A.children,A.maxLines,f,A.style,A.width]),j=A.dx,P=A.dy,C=A.angle,N=A.className,O=A.breakAll,k=u8(A,qwe);if(!Wr(a)||!Wr(i))return null;var B=a+(Ue(j)?j:0),$=i+(Ue(P)?P:0),_;
1225switch(y){case"start":_=oA("calc(".concat(u,")"));break;case"middle":_=oA("calc(".concat((E.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:_=oA("calc(".concat(E.length-1," * -").concat(s,")"));break}var W=[];if(f){var D=E[0].width,J=A.width;W.push("scale(".concat((Ue(J)?J/D:1)/D,")"))}return C&&W.push("rotate(".concat(C,", ").concat(B,", ").concat($,")")),W.length&&(k.transform=W.join(" ")),de.createElement("text",vP({},lt(k,!0),{x:B,y:$,className:wt("recharts-text",N),textAnchor:x,fill:S.includes("url")?h8:S}),E.map(function(z,V){var Z=z.words.join(O?"":" ");return de.createElement("tspan",{x:B,dy:V===0?_:s,key:"".concat(Z,"-").concat(V)},Z)}))};function ys(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Ywe(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function xT(e){let t,r,a;e.length!==2?(t=ys,r=(s,c)=>ys(e(s),c),a=(s,c)=>e(s)-c):(t=e===ys||e===Ywe?e:Zwe,r=e,a=e);function n(s,c,u=0,h=s.length){if(u<h){if(t(c,c)!==0)return h;do{const f=u+h>>>1;r(s[f],c)<0?u=f+1:h=f}while(u<h)}return u}function i(s,c,u=0,h=s.length){if(u<h){if(t(c,c)!==0)return h;do{const f=u+h>>>1;r(s[f],c)<=0?u=f+1:h=f}while(u<h)}return u}function o(s,c,u=0,h=s.length){const f=n(s,c,u,h-1);return f>u&&a(s[f-1],c)>-a(s[f],c)?f-1:f}return{left:n,center:o,right:i}}function Zwe(){return 0}function qU(e){return e===null?NaN:+e}function*Jwe(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const Qwe=xT(ys),Zh=Qwe.right;xT(qU).center;class m8 extends Map{constructor(t,r=r2e){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[a,n]of t)this.set(a,n)}get(t){return super.get(g8(this,t))}has(t){return super.has(g8(this,t))}set(t,r){return super.set(e2e(this,t),r)}delete(t){return super.delete(t2e(this,t))}}function g8({_intern:e,_key:t},r){const a=t(r);return e.has(a)?e.get(a):r}function e2e({_intern:e,_key:t},r){const a=t(r);return e.has(a)?e.get(a):(e.set(a,r),r)}function t2e({_intern:e,_key:t},r){const a=t(r);return e.has(a)&&(r=e.get(a),e.delete(a)),r}function r2e(e){return e!==null&&typeof e=="object"?e.valueOf():e}function a2e(e=ys){if(e===ys)return VU;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const a=e(t,r);return a||a===0?a:(e(r,r)===0)-(e(t,t)===0)}}function VU(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const n2e=Math.sqrt(50),i2e=Math.sqrt(10),o2e=Math.sqrt(2);function sv(e,t,r){const a=(t-e)/Math.max(0,r),n=Math.floor(Math.log10(a)),i=a/Math.pow(10,n),o=i>=n2e?10:i>=i2e?5:i>=o2e?2:1;let s,c,u;return n<0?(u=Math.pow(10,-n)/o,s=Math.round(e*u),c=Math.round(t*u),s/u<e&&++s,c/u>t&&--c,u=-u):(u=Math.pow(10,n)*o,s=Math.round(e/u),c=Math.round(t/u),s*u<e&&++s,c*u>t&&--c),c<s&&.5<=r&&r<2?sv(e,t,r*2):[s,c,u]}function yP(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const a=t<e,[n,i,o]=a?sv(t,e,r):sv(e,t,r);if(!(i>=n))return[];const s=i-n+1,c=new Array(s);if(a)if(o<0)for(let u=0;u<s;++u)c[u]=(i-u)/-o;else for(let u=0;u<s;++u)c[u]=(i-u)*o;else if(o<0)for(let u=0;u<s;++u)c[u]=(n+u)/-o;else for(let u=0;u<s;++u)c[u]=(n+u)*o;return c}function bP(e,t,r){return t=+t,e=+e,r=+r,sv(e,t,r)[2]}function wP(e,t,r){t=+t,e=+e,r=+r;const a=t<e,n=a?bP(t,e,r):bP(e,t,r);return(a?-1:1)*(n<0?1/-n:n)}function x8(e,t){let r;for(const a of e)a!=null&&(r<a||r===void 0&&a>=a)&&(r=a);return r}function v8(e,t){let r;for(const a of e)a!=null&&(r>a||r===void 0&&a>=a)&&(r=a);return r}function UU(e,t,r=0,a=1/0,n){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),a=Math.floor(Math.min(e.length-1,a)),!(r<=t&&t<=a))return e;for(n=n===void 0?VU:a2e(n);a>r;){if(a-r>600){const c=a-r+1,u=t-r+1,h=Math.log(c),f=.5*Math.exp(2*h/3),m=.5*Math.sqrt(h*f*(c-f)/c)*(u-c/2<0?-1:1),x=Math.max(r,Math.floor(t-u*f/c+m)),v=Math.min(a,Math.floor(t+(c-u)*f/c+m));UU(e,t,x,v,n)}const i=e[t];let o=r,s=a;for(Kf(e,r,t),n(e[a],i)>0&&Kf(e,r,a);o<s;){for(Kf(e,o,s),++o,--s;n(e[o],i)<0;)++o;for(;n(e[s],i)>0;)--s}n(e[r],i)===0?Kf(e,r,s):(++s,Kf(e,s,a)),s<=t&&(r=s+1),t<=s&&(a=s-1)}return e}function Kf(e,t,r){const a=e[t];e[t]=e[r],e[r]=a}function s2e(e,t,r){if(e=Float64Array.from(Jwe(e)),!(!(a=e.length)||isNaN(t=+t))){if(t<=0||a<2)return v8(e);if(t>=1)return x8(e);var a,n=(a-1)*t,i=Math.floor(n),o=x8(UU(e,i).subarray(0,i+1)),s=v8(e.subarray(i+1));return o+(s-o)*(n-i)}}function l2e(e,t,r=qU){if(!(!(a=e.length)||isNaN(t=+t))){if(t<=0||a<2)return+r(e[0],0,e);if(t>=1)return+r(e[a-1],a-1,e);var a,n=(a-1)*t,i=Math.floor(n),o=+r(e[i],i,e),s=+r(e[i+1],i+1,e);return o+(s-o)*(n-i)}}function c2e(e,t,r){e=+e,t=+t,r=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+r;for(var a=-1,n=Math.max(0,Math.ceil((t-e)/r))|0,i=new Array(n);++a<n;)i[a]=e+a*r;return i}function Un(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Io(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}
vendor: 10,013 bytes, line 1225
1225const SP=Symbol("implicit");function vT(){var e=new m8,t=[],r=[],a=SP;function n(i){let o=e.get(i);if(o===void 0){if(a!==SP)return a;e.set(i,o=t.push(i)-1)}return r[o%r.length]}return n.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new m8;for(const o of i)e.has(o)||e.set(o,t.push(o)-1);return n},n.range=function(i){return arguments.length?(r=Array.from(i),n):r.slice()},n.unknown=function(i){return arguments.length?(a=i,n):a},n.copy=function(){return vT(t,r).unknown(a)},Un.apply(n,arguments),n}function Zp(){var e=vT().unknown(void 0),t=e.domain,r=e.range,a=0,n=1,i,o,s=!1,c=0,u=0,h=.5;delete e.unknown;function f(){var m=t().length,x=n<a,v=x?n:a,y=x?a:n;i=(y-v)/Math.max(1,m-c+u*2),s&&(i=Math.floor(i)),v+=(y-v-i*(m-c))*h,o=i*(1-c),s&&(v=Math.round(v),o=Math.round(o));var b=c2e(m).map(function(S){return v+i*S});return r(x?b.reverse():b)}return e.domain=function(m){return arguments.length?(t(m),f()):t()},e.range=function(m){return arguments.length?([a,n]=m,a=+a,n=+n,f()):[a,n]},e.rangeRound=function(m){return[a,n]=m,a=+a,n=+n,s=!0,f()},e.bandwidth=function(){return o},e.step=function(){return i},e.round=function(m){return arguments.length?(s=!!m,f()):s},e.padding=function(m){return arguments.length?(c=Math.min(1,u=+m),f()):c},e.paddingInner=function(m){return arguments.length?(c=Math.min(1,m),f()):c},e.paddingOuter=function(m){return arguments.length?(u=+m,f()):u},e.align=function(m){return arguments.length?(h=Math.max(0,Math.min(1,m)),f()):h},e.copy=function(){return Zp(t(),[a,n]).round(s).paddingInner(c).paddingOuter(u).align(h)},Un.apply(f(),arguments)}function HU(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return HU(t())},e}function wp(){return HU(Zp.apply(null,arguments).paddingInner(1))}function yT(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function GU(e,t){var r=Object.create(e.prototype);for(var a in t)r[a]=t[a];return r}function Jh(){}var Jp=.7,lv=1/Jp,Pu="\\s*([+-]?\\d+)\\s*",Qp="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ci="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",u2e=/^#([0-9a-f]{3,8})$/,d2e=new RegExp(`^rgb\\(${Pu},${Pu},${Pu}\\)$`),f2e=new RegExp(`^rgb\\(${Ci},${Ci},${Ci}\\)$`),p2e=new RegExp(`^rgba\\(${Pu},${Pu},${Pu},${Qp}\\)$`),h2e=new RegExp(`^rgba\\(${Ci},${Ci},${Ci},${Qp}\\)$`),m2e=new RegExp(`^hsl\\(${Qp},${Ci},${Ci}\\)$`),g2e=new RegExp(`^hsla\\(${Qp},${Ci},${Ci},${Qp}\\)$`),y8={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};yT(Jh,eh,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:b8,formatHex:b8,formatHex8:x2e,formatHsl:v2e,formatRgb:w8,toString:w8});function b8(){return this.rgb().formatHex()}function x2e(){return this.rgb().formatHex8()}function v2e(){return KU(this).formatHsl()}function w8(){return this.rgb().formatRgb()}function eh(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=u2e.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?S8(t):r===3?new qa(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Jg(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Jg(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=d2e.exec(e))?new qa(t[1],t[2],t[3],1):(t=f2e.exec(e))?new qa(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=p2e.exec(e))?Jg(t[1],t[2],t[3],t[4]):(t=h2e.exec(e))?Jg(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=m2e.exec(e))?C8(t[1],t[2]/100,t[3]/100,1):(t=g2e.exec(e))?C8(t[1],t[2]/100,t[3]/100,t[4]):y8.hasOwnProperty(e)?S8(y8[e]):e==="transparent"?new qa(NaN,NaN,NaN,0):null}function S8(e){return new qa(e>>16&255,e>>8&255,e&255,1)}function Jg(e,t,r,a){return a<=0&&(e=t=r=NaN),new qa(e,t,r,a)}function y2e(e){return e instanceof Jh||(e=eh(e)),e?(e=e.rgb(),new qa(e.r,e.g,e.b,e.opacity)):new qa}function EP(e,t,r,a){return arguments.length===1?y2e(e):new qa(e,t,r,a??1)}function qa(e,t,r,a){this.r=+e,this.g=+t,this.b=+r,this.opacity=+a}yT(qa,EP,GU(Jh,{brighter(e){return e=e==null?lv:Math.pow(lv,e),new qa(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Jp:Math.pow(Jp,e),new qa(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new qa(_l(this.r),_l(this.g),_l(this.b),cv(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:E8,formatHex:E8,formatHex8:b2e,formatRgb:A8,toString:A8}));function E8(){return`#${El(this.r)}${El(this.g)}${El(this.b)}`}function b2e(){return`#${El(this.r)}${El(this.g)}${El(this.b)}${El((isNaN(this.opacity)?1:this.opacity)*255)}`}function A8(){const e=cv(this.opacity);return`${e===1?"rgb(":"rgba("}${_l(this.r)}, ${_l(this.g)}, ${_l(this.b)}${e===1?")":`, ${e})`}`}function cv(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function _l(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function El(e){return e=_l(e),(e<16?"0":"")+e.toString(16)}function C8(e,t,r,a){return a<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Qn(e,t,r,a)}function KU(e){if(e instanceof Qn)return new Qn(e.h,e.s,e.l,e.opacity);if(e instanceof Jh||(e=eh(e)),!e)return new Qn;if(e instanceof Qn)return e;e=e.rgb();var t=e.r/255,r=e.g/255,a=e.b/255,n=Math.min(t,r,a),i=Math.max(t,r,a),o=NaN,s=i-n,c=(i+n)/2;return s?(t===i?o=(r-a)/s+(r<a)*6:r===i?o=(a-t)/s+2:o=(t-r)/s+4,s/=c<.5?i+n:2-i-n,o*=60):s=c>0&&c<1?0:o,new Qn(o,s,c,e.opacity)}function w2e(e,t,r,a){return arguments.length===1?KU(e):new Qn(e,t,r,a??1)}function Qn(e,t,r,a){this.h=+e,this.s=+t,this.l=+r,this.opacity=+a}yT(Qn,w2e,GU(Jh,{brighter(e){return e=e==null?lv:Math.pow(lv,e),new Qn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Jp:Math.pow(Jp,e),new Qn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,a=r+(r<.5?r:1-r)*t,n=2*r-a;return new qa(sA(e>=240?e-240:e+120,n,a),sA(e,n,a),sA(e<120?e+240:e-120,n,a),this.opacity)},clamp(){return new Qn(P8(this.h),Qg(this.s),Qg(this.l),cv(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=cv(this.opacity);return`${e===1?"hsl(":"hsla("}${P8(this.h)}, ${Qg(this.s)*100}%, ${Qg(this.l)*100}%${e===1?")":`, ${e})`}`}}));function P8(e){return e=(e||0)%360,e<0?e+360:e}function Qg(e){return Math.max(0,Math.min(1,e||0))}function sA(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const bT=e=>()=>e;function S2e(e,t){return function(r){return e+r*t}}function E2e(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(a){return Math.pow(e+a*t,r)}}function A2e(e){return(e=+e)==1?WU:function(t,r){return r-t?E2e(t,r,e):bT(isNaN(t)?r:t)}}function WU(e,t){var r=t-e;return r?S2e(e,r):bT(isNaN(e)?t:e)}const j8=(function e(t){var r=A2e(t);function a(n,i){var o=r((n=EP(n)).r,(i=EP(i)).r),s=r(n.g,i.g),c=r(n.b,i.b),u=WU(n.opacity,i.opacity);return function(h){return n.r=o(h),n.g=s(h),n.b=c(h),n.opacity=u(h),n+""}}return a.gamma=e,a})(1);function C2e(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,a=t.slice(),n;return function(i){for(n=0;n<r;++n)a[n]=e[n]*(1-i)+t[n]*i;return a}}function P2e(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function j2e(e,t){var r=t?t.length:0,a=e?Math.min(r,e.length):0,n=new Array(a),i=new Array(r),o;for(o=0;o<a;++o)n[o]=Id(e[o],t[o]);for(;o<r;
vendor: 5,514 bytes, line 1225
1225++o)i[o]=t[o];return function(s){for(o=0;o<a;++o)i[o]=n[o](s);return i}}function N2e(e,t){var r=new Date;return e=+e,t=+t,function(a){return r.setTime(e*(1-a)+t*a),r}}function uv(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function T2e(e,t){var r={},a={},n;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(n in t)n in e?r[n]=Id(e[n],t[n]):a[n]=t[n];return function(i){for(n in r)a[n]=r[n](i);return a}}var AP=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,lA=new RegExp(AP.source,"g");function k2e(e){return function(){return e}}function D2e(e){return function(t){return e(t)+""}}function _2e(e,t){var r=AP.lastIndex=lA.lastIndex=0,a,n,i,o=-1,s=[],c=[];for(e=e+"",t=t+"";(a=AP.exec(e))&&(n=lA.exec(t));)(i=n.index)>r&&(i=t.slice(r,i),s[o]?s[o]+=i:s[++o]=i),(a=a[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,c.push({i:o,x:uv(a,n)})),r=lA.lastIndex;return r<t.length&&(i=t.slice(r),s[o]?s[o]+=i:s[++o]=i),s.length<2?c[0]?D2e(c[0].x):k2e(t):(t=c.length,function(u){for(var h=0,f;h<t;++h)s[(f=c[h]).i]=f.x(u);return s.join("")})}function Id(e,t){var r=typeof t,a;return t==null||r==="boolean"?bT(t):(r==="number"?uv:r==="string"?(a=eh(t))?(t=a,j8):_2e:t instanceof eh?j8:t instanceof Date?N2e:P2e(t)?C2e:Array.isArray(t)?j2e:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?T2e:uv)(e,t)}function wT(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function R2e(e,t){t===void 0&&(t=e,e=Id);for(var r=0,a=t.length-1,n=t[0],i=new Array(a<0?0:a);r<a;)i[r]=e(n,n=t[++r]);return function(o){var s=Math.max(0,Math.min(a-1,Math.floor(o*=a)));return i[s](o-s)}}function O2e(e){return function(){return e}}function dv(e){return+e}var N8=[0,1];function Ta(e){return e}function CP(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:O2e(isNaN(t)?NaN:.5)}function M2e(e,t){var r;return e>t&&(r=e,e=t,t=r),function(a){return Math.max(e,Math.min(t,a))}}function I2e(e,t,r){var a=e[0],n=e[1],i=t[0],o=t[1];return n<a?(a=CP(n,a),i=r(o,i)):(a=CP(a,n),i=r(i,o)),function(s){return i(a(s))}}function B2e(e,t,r){var a=Math.min(e.length,t.length)-1,n=new Array(a),i=new Array(a),o=-1;for(e[a]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<a;)n[o]=CP(e[o],e[o+1]),i[o]=r(t[o],t[o+1]);return function(s){var c=Zh(e,s,1,a)-1;return i[c](n[c](s))}}function Qh(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function $y(){var e=N8,t=N8,r=Id,a,n,i,o=Ta,s,c,u;function h(){var m=Math.min(e.length,t.length);return o!==Ta&&(o=M2e(e[0],e[m-1])),s=m>2?B2e:I2e,c=u=null,f}function f(m){return m==null||isNaN(m=+m)?i:(c||(c=s(e.map(a),t,r)))(a(o(m)))}return f.invert=function(m){return o(n((u||(u=s(t,e.map(a),uv)))(m)))},f.domain=function(m){return arguments.length?(e=Array.from(m,dv),h()):e.slice()},f.range=function(m){return arguments.length?(t=Array.from(m),h()):t.slice()},f.rangeRound=function(m){return t=Array.from(m),r=wT,h()},f.clamp=function(m){return arguments.length?(o=m?!0:Ta,h()):o!==Ta},f.interpolate=function(m){return arguments.length?(r=m,h()):r},f.unknown=function(m){return arguments.length?(i=m,f):i},function(m,x){return a=m,n=x,h()}}function ST(){return $y()(Ta,Ta)}function L2e(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function fv(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,a=e.slice(0,r);return[a.length>1?a[0]+a.slice(2):a,+e.slice(r+1)]}function Xu(e){return e=fv(Math.abs(e)),e?e[1]:NaN}function z2e(e,t){return function(r,a){for(var n=r.length,i=[],o=0,s=e[0],c=0;n>0&&s>0&&(c+s+1>a&&(s=Math.max(1,a-c)),i.push(r.substring(n-=s,n+s)),!((c+=s+1)>a));)s=e[o=(o+1)%e.length];return i.reverse().join(t)}}function F2e(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var $2e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function th(e){if(!(t=$2e.exec(e)))throw new Error("invalid format: "+e);var t;return new ET({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}th.prototype=ET.prototype;function ET(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}ET.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function q2e(e){e:for(var t=e.length,r=1,a=-1,n;r<t;++r)switch(e[r]){case".":a=n=r;break;case"0":a===0&&(a=r),n=r;break;default:if(!+e[r])break e;a>0&&(a=0);break}return a>0?e.slice(0,a)+e.slice(n+1):e}var XU;function V2e(e,t){var r=fv(e,t);if(!r)return e+"";var a=r[0],n=r[1],i=n-(XU=Math.max(-8,Math.min(8,Math.floor(n/3)))*3)+1,o=a.length;return i===o?a:i>o?a+new Array(i-o+1).join("0"):i>0?a.slice(0,i)+"."+a.slice(i):"0."+new Array(1-i).join("0")+fv(e,Math.max(0,t+i-1))[0]}function T8(e,t){var r=fv(e,t);if(!r)return e+"";var a=r[0],n=r[1];return n<0?"0."+new Array(-n).join("0")+a:a.length>n+1?a.slice(0,n+1)+"."+a.slice(n+1):a+new Array(n-a.length+2).join("0")}const k8={"%":(e,t)=>
vendor: 5,383 bytes, line 1225
1225(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:L2e,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>T8(e*100,t),r:T8,s:V2e,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function D8(e){return e}var _8=Array.prototype.map,R8=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function U2e(e){var t=e.grouping===void 0||e.thousands===void 0?D8:z2e(_8.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",a=e.currency===void 0?"":e.currency[1]+"",n=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?D8:F2e(_8.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"â":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function u(f){f=th(f);var m=f.fill,x=f.align,v=f.sign,y=f.symbol,b=f.zero,S=f.width,A=f.comma,E=f.precision,j=f.trim,P=f.type;P==="n"?(A=!0,P="g"):k8[P]||(E===void 0&&(E=12),j=!0,P="g"),(b||m==="0"&&x==="=")&&(b=!0,m="0",x="=");var C=y==="$"?r:y==="#"&&/[boxX]/.test(P)?"0"+P.toLowerCase():"",N=y==="$"?a:/[%p]/.test(P)?o:"",O=k8[P],k=/[defgprs%]/.test(P);E=E===void 0?6:/[gprs]/.test(P)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E));function B($){var _=C,W=N,D,J,z;if(P==="c")W=O($)+W,$="";else{$=+$;var V=$<0||1/$<0;if($=isNaN($)?c:O(Math.abs($),E),j&&($=q2e($)),V&&+$==0&&v!=="+"&&(V=!1),_=(V?v==="("?v:s:v==="-"||v==="("?"":v)+_,W=(P==="s"?R8[8+XU/3]:"")+W+(V&&v==="("?")":""),k){for(D=-1,J=$.length;++D<J;)if(z=$.charCodeAt(D),48>z||z>57){W=(z===46?n+$.slice(D+1):$.slice(D))+W,$=$.slice(0,D);break}}}A&&!b&&($=t($,1/0));var Z=_.length+$.length+W.length,te=Z<S?new Array(S-Z+1).join(m):"";switch(A&&b&&($=t(te+$,te.length?S-W.length:1/0),te=""),x){case"<":$=_+$+W+te;break;case"=":$=_+te+$+W;break;case"^":$=te.slice(0,Z=te.length>>1)+_+$+W+te.slice(Z);break;default:$=te+_+$+W;break}return i($)}return B.toString=function(){return f+""},B}function h(f,m){var x=u((f=th(f),f.type="f",f)),v=Math.max(-8,Math.min(8,Math.floor(Xu(m)/3)))*3,y=Math.pow(10,-v),b=R8[8+v/3];return function(S){return x(y*S)+b}}return{format:u,formatPrefix:h}}var ex,AT,YU;H2e({thousands:",",grouping:[3],currency:["$",""]});function H2e(e){return ex=U2e(e),AT=ex.format,YU=ex.formatPrefix,ex}function G2e(e){return Math.max(0,-Xu(Math.abs(e)))}function K2e(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Xu(t)/3)))*3-Xu(Math.abs(e)))}function W2e(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Xu(t)-Xu(e))+1}function ZU(e,t,r,a){var n=wP(e,t,r),i;switch(a=th(a??",f"),a.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return a.precision==null&&!isNaN(i=K2e(n,o))&&(a.precision=i),YU(a,o)}case"":case"e":case"g":case"p":case"r":{a.precision==null&&!isNaN(i=W2e(n,Math.max(Math.abs(e),Math.abs(t))))&&(a.precision=i-(a.type==="e"));break}case"f":case"%":{a.precision==null&&!isNaN(i=G2e(n))&&(a.precision=i-(a.type==="%")*2);break}}return AT(a)}function Ms(e){var t=e.domain;return e.ticks=function(r){var a=t();return yP(a[0],a[a.length-1],r??10)},e.tickFormat=function(r,a){var n=t();return ZU(n[0],n[n.length-1],r??10,a)},e.nice=function(r){r==null&&(r=10);var a=t(),n=0,i=a.length-1,o=a[n],s=a[i],c,u,h=10;for(s<o&&(u=o,o=s,s=u,u=n,n=i,i=u);h-- >0;){if(u=bP(o,s,r),u===c)return a[n]=o,a[i]=s,t(a);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;c=u}return e},e}function pv(){var e=ST();return e.copy=function(){return Qh(e,pv())},Un.apply(e,arguments),Ms(e)}function JU(e){var t;function r(a){return a==null||isNaN(a=+a)?t:a}return r.invert=r,r.domain=r.range=function(a){return arguments.length?(e=Array.from(a,dv),r):e.slice()},r.unknown=function(a){return arguments.length?(t=a,r):t},r.copy=function(){return JU(e).unknown(t)},e=arguments.length?Array.from(e,dv):[0,1],Ms(r)}function QU(e,t){e=e.slice();var r=0,a=e.length-1,n=e[r],i=e[a],o;return i<n&&(o=r,r=a,a=o,o=n,n=i,i=o),e[r]=t.floor(n),e[a]=t.ceil(i),e}function O8(e){return Math.log(e)}function M8(e){return Math.exp(e)}function X2e(e){return-Math.log(-e)}function Y2e(e){return-Math.exp(-e)}function Z2e(e){return isFinite(e)?+("1e"+e):e<0?0:e}function J2e(e){return e===10?Z2e:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Q2e(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function I8(e){return(t,r)=>-e(-t,r)}function CT(e){const t=e(O8,M8),r=t.domain;let a=10,n,i;function o(){return n=Q2e(a),i=J2e(a),r()[0]<0?(n=I8(n),i=I8(i),e(X2e,Y2e)):e(O8,M8),t}return t.base=function(s){return arguments.length?(a=+s,o()):a},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const c=r();let u=c[0],h=c[c.length-1];const f=h<u;f&&([u,h]=[h,u]);let m=n(u),x=n(h),v,y;const b=s==null?10:+s;let S=[];if(!(a%1)&&x-m<b){if(m=Math.floor(m),x=Math.ceil(x),u>0){for(;m<=x;++m)for(v=1;v<a;++v)if(y=m<0?v/i(-m):v*i(m),!(y<u)){if(y>h)break;S.push(y)}}else for(;m<=x;++m)for(v=a-1;v>=1;--v)if(y=m>0?v/i(-m):v*i(m),!(y<u)){if(y>h)break;S.push(y)}S.length*2<b&&(S=yP(u,h,b))}else S=yP(m,x,Math.min(x-m,b)).map(i);return f?S.reverse():S},t.tickFormat=(s,c)=>{if(s==null&&(s=10),c==null&&(c=a===10?"s":","),typeof c!="function"&&(!(a%1)&&(c=th(c)).precision==null&&(c.trim=!0),c=AT(c)),s===1/0)return c;const u=Math.max(1,a*s/t.ticks().length);return h=>{let f=h/i(Math.round(n(h)));
1225return f*a<a-.5&&(f*=a),f<=u?c(h):""}},t.nice=()=>r(QU(r(),{floor:s=>i(Math.floor(n(s))),ceil:s=>i(Math.ceil(n(s)))})),t}function eH(){const e=CT($y()).domain([1,10]);return e.copy=()=>Qh(e,eH()).base(e.base()),Un.apply(e,arguments),e}function B8(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function L8(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function PT(e){var t=1,r=e(B8(t),L8(t));return r.constant=function(a){return arguments.length?e(B8(t=+a),L8(t)):t},Ms(r)}function tH(){var e=PT($y());return e.copy=function(){return Qh(e,tH()).constant(e.constant())},Un.apply(e,arguments)}function z8(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function eSe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function tSe(e){return e<0?-e*e:e*e}function jT(e){var t=e(Ta,Ta),r=1;function a(){return r===1?e(Ta,Ta):r===.5?e(eSe,tSe):e(z8(r),z8(1/r))}return t.exponent=function(n){return arguments.length?(r=+n,a()):r},Ms(t)}function NT(){var e=jT($y());return e.copy=function(){return Qh(e,NT()).exponent(e.exponent())},Un.apply(e,arguments),e}function rSe(){return NT.apply(null,arguments).exponent(.5)}function F8(e){return Math.sign(e)*e*e}function aSe(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function rH(){var e=ST(),t=[0,1],r=!1,a;function n(i){var o=aSe(e(i));return isNaN(o)?a:r?Math.round(o):o}return n.invert=function(i){return e.invert(F8(i))},n.domain=function(i){return arguments.length?(e.domain(i),n):e.domain()},n.range=function(i){return arguments.length?(e.range((t=Array.from(i,dv)).map(F8)),n):t.slice()},n.rangeRound=function(i){return n.range(i).round(!0)},n.round=function(i){return arguments.length?(r=!!i,n):r},n.clamp=function(i){return arguments.length?(e.clamp(i),n):e.clamp()},n.unknown=function(i){return arguments.length?(a=i,n):a},n.copy=function(){return rH(e.domain(),t).round(r).clamp(e.clamp()).unknown(a)},Un.apply(n,arguments),Ms(n)}function aH(){var e=[],t=[],r=[],a;function n(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o<s;)r[o-1]=l2e(e,o/s);return i}function i(o){return o==null||isNaN(o=+o)?a:t[Zh(r,o)]}return i.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},i.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(ys),n()},i.range=function(o){return arguments.length?(t=Array.from(o),n()):t.slice()},i.unknown=function(o){return arguments.length?(a=o,i):a},i.quantiles=function(){return r.slice()},i.copy=function(){return aH().domain(e).range(t).unknown(a)},Un.apply(i,arguments)}function nH(){var e=0,t=1,r=1,a=[.5],n=[0,1],i;function o(c){return c!=null&&c<=c?n[Zh(a,c,0,r)]:i}function s(){var c=-1;for(a=new Array(r);++c<r;)a[c]=((c+1)*t-(c-r)*e)/(r+1);return o}return o.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,s()):[e,t]},o.range=function(c){return arguments.length?(r=(n=Array.from(c)).length-1,s()):n.slice()},o.invertExtent=function(c){var u=n.indexOf(c);return u<0?[NaN,NaN]:u<1?[e,a[0]]:u>=r?[a[r-1],t]:[a[u-1],a[u]]},o.unknown=function(c){return arguments.length&&(i=c),o},o.thresholds=function(){return a.slice()},o.copy=function(){return nH().domain([e,t]).range(n).unknown(i)},Un.apply(Ms(o),arguments)}function iH(){var e=[.5],t=[0,1],r,a=1;function n(i){return i!=null&&i<=i?t[Zh(e,i,0,a)]:r}return n.domain=function(i){return arguments.length?(e=Array.from(i),a=Math.min(e.length,t.length-1),n):e.slice()},n.range=function(i){return arguments.length?(t=Array.from(i),a=Math.min(e.length,t.length-1),n):t.slice()},n.invertExtent=function(i){var o=t.indexOf(i);return[e[o-1],e[o]]},n.unknown=function(i){return arguments.length?(r=i,n):r},n.copy=function(){return iH().domain(e).range(t).unknown(r)},Un.apply(n,arguments)}const cA=new Date,uA=new Date;function Xr(e,t,r,a){function n(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return n.floor=i=>(e(i=new Date(+i)),i),n.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),n.round=i=>{const o=n(i),s=n.ceil(i);return i-o<s-i?o:s},n.offset=(i,o)=>(t(i=new Date(+i),o==null?1:Math.floor(o)),i),n.range=(i,o,s)=>{const c=[];if(i=n.ceil(i),s=s==null?1:Math.floor(s),!(i<o)||!(s>0))return c;let u;do c.push(u=new Date(+i)),t(i,s),e(i);while(u<i&&i<o);return c},n.filter=i=>Xr(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!i(o););else for(;--s>=0;)for(;t(o,1),!i(o););}),r&&(n.count=(i,o)=>(cA.setTime(+i),uA.setTime(+o),e(cA),e(uA),Math.floor(r(cA,uA))),n.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?n.filter(a?o=>a(o)%i===0:o=>n.count(0,o)%i===0):n)),n}const hv=Xr(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);hv.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Xr(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):hv);hv.range;const go=1e3,Fn=go*60,xo=Fn*60,No=xo*24,TT=No*7,$8=No*30,dA=No*365,Al=Xr(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*go)},(e,t)=>(t-e)/go,e=>e.getUTCSeconds());Al.range;
vendor: 4,140 bytes, line 1225
1225const kT=Xr(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*go)},(e,t)=>{e.setTime(+e+t*Fn)},(e,t)=>(t-e)/Fn,e=>e.getMinutes());kT.range;const DT=Xr(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Fn)},(e,t)=>(t-e)/Fn,e=>e.getUTCMinutes());DT.range;const _T=Xr(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*go-e.getMinutes()*Fn)},(e,t)=>{e.setTime(+e+t*xo)},(e,t)=>(t-e)/xo,e=>e.getHours());_T.range;const RT=Xr(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*xo)},(e,t)=>(t-e)/xo,e=>e.getUTCHours());RT.range;const em=Xr(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Fn)/No,e=>e.getDate()-1);em.range;const qy=Xr(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/No,e=>e.getUTCDate()-1);qy.range;const oH=Xr(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/No,e=>Math.floor(e/No));oH.range;function ac(e){return Xr(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Fn)/TT)}const Vy=ac(0),mv=ac(1),nSe=ac(2),iSe=ac(3),Yu=ac(4),oSe=ac(5),sSe=ac(6);Vy.range;mv.range;nSe.range;iSe.range;Yu.range;oSe.range;sSe.range;function nc(e){return Xr(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/TT)}const Uy=nc(0),gv=nc(1),lSe=nc(2),cSe=nc(3),Zu=nc(4),uSe=nc(5),dSe=nc(6);Uy.range;gv.range;lSe.range;cSe.range;Zu.range;uSe.range;dSe.range;const OT=Xr(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());OT.range;const MT=Xr(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());MT.range;const To=Xr(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());To.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Xr(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});To.range;const ko=Xr(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());ko.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Xr(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});ko.range;function sH(e,t,r,a,n,i){const o=[[Al,1,go],[Al,5,5*go],[Al,15,15*go],[Al,30,30*go],[i,1,Fn],[i,5,5*Fn],[i,15,15*Fn],[i,30,30*Fn],[n,1,xo],[n,3,3*xo],[n,6,6*xo],[n,12,12*xo],[a,1,No],[a,2,2*No],[r,1,TT],[t,1,$8],[t,3,3*$8],[e,1,dA]];function s(u,h,f){const m=h<u;m&&([u,h]=[h,u]);const x=f&&typeof f.range=="function"?f:c(u,h,f),v=x?x.range(u,+h+1):[];return m?v.reverse():v}function c(u,h,f){const m=Math.abs(h-u)/f,x=xT(([,,b])=>b).right(o,m);if(x===o.length)return e.every(wP(u/dA,h/dA,f));if(x===0)return hv.every(Math.max(wP(u,h,f),1));const[v,y]=o[m/o[x-1][2]<o[x][2]/m?x-1:x];return v.every(y)}return[s,c]}const[fSe,pSe]=sH(ko,MT,Uy,oH,RT,DT),[hSe,mSe]=sH(To,OT,Vy,em,_T,kT);function fA(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function pA(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Wf(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function gSe(e){var t=e.dateTime,r=e.date,a=e.time,n=e.periods,i=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,u=Xf(n),h=Yf(n),f=Xf(i),m=Yf(i),x=Xf(o),v=Yf(o),y=Xf(s),b=Yf(s),S=Xf(c),A=Yf(c),E={a:V,A:Z,b:te,B:K,c:null,d:K8,e:K8,f:zSe,g:XSe,G:ZSe,H:ISe,I:BSe,j:LSe,L:lH,m:FSe,M:$Se,p:q,q:X,Q:Y8,s:Z8,S:qSe,u:VSe,U:USe,V:HSe,w:GSe,W:KSe,x:null,X:null,y:WSe,Y:YSe,Z:JSe,"%":X8}
vendor: 8,250 bytes, line 1225
1225,j={a:U,A:ie,b:se,B:he,c:null,d:W8,e:W8,f:rEe,g:fEe,G:hEe,H:QSe,I:eEe,j:tEe,L:uH,m:aEe,M:nEe,p:Y,q:F,Q:Y8,s:Z8,S:iEe,u:oEe,U:sEe,V:lEe,w:cEe,W:uEe,x:null,X:null,y:dEe,Y:pEe,Z:mEe,"%":X8},P={a:B,A:$,b:_,B:W,c:D,d:H8,e:H8,f:_Se,g:U8,G:V8,H:G8,I:G8,j:NSe,L:DSe,m:jSe,M:TSe,p:k,q:PSe,Q:OSe,s:MSe,S:kSe,u:wSe,U:SSe,V:ESe,w:bSe,W:ASe,x:J,X:z,y:U8,Y:V8,Z:CSe,"%":RSe};E.x=C(r,E),E.X=C(a,E),E.c=C(t,E),j.x=C(r,j),j.X=C(a,j),j.c=C(t,j);function C(ae,ne){return function(ge){var re=[],oe=-1,G=0,pe=ae.length,ee,M,I;for(ge instanceof Date||(ge=new Date(+ge));++oe<pe;)ae.charCodeAt(oe)===37&&(re.push(ae.slice(G,oe)),(M=q8[ee=ae.charAt(++oe)])!=null?ee=ae.charAt(++oe):M=ee==="e"?" ":"0",(I=ne[ee])&&(ee=I(ge,M)),re.push(ee),G=oe+1);return re.push(ae.slice(G,oe)),re.join("")}}function N(ae,ne){return function(ge){var re=Wf(1900,void 0,1),oe=O(re,ae,ge+="",0),G,pe;if(oe!=ge.length)return null;if("Q"in re)return new Date(re.Q);if("s"in re)return new Date(re.s*1e3+("L"in re?re.L:0));if(ne&&!("Z"in re)&&(re.Z=0),"p"in re&&(re.H=re.H%12+re.p*12),re.m===void 0&&(re.m="q"in re?re.q:0),"V"in re){if(re.V<1||re.V>53)return null;"w"in re||(re.w=1),"Z"in re?(G=pA(Wf(re.y,0,1)),pe=G.getUTCDay(),G=pe>4||pe===0?gv.ceil(G):gv(G),G=qy.offset(G,(re.V-1)*7),re.y=G.getUTCFullYear(),re.m=G.getUTCMonth(),re.d=G.getUTCDate()+(re.w+6)%7):(G=fA(Wf(re.y,0,1)),pe=G.getDay(),G=pe>4||pe===0?mv.ceil(G):mv(G),G=em.offset(G,(re.V-1)*7),re.y=G.getFullYear(),re.m=G.getMonth(),re.d=G.getDate()+(re.w+6)%7)}else("W"in re||"U"in re)&&("w"in re||(re.w="u"in re?re.u%7:"W"in re?1:0),pe="Z"in re?pA(Wf(re.y,0,1)).getUTCDay():fA(Wf(re.y,0,1)).getDay(),re.m=0,re.d="W"in re?(re.w+6)%7+re.W*7-(pe+5)%7:re.w+re.U*7-(pe+6)%7);return"Z"in re?(re.H+=re.Z/100|0,re.M+=re.Z%100,pA(re)):fA(re)}}function O(ae,ne,ge,re){for(var oe=0,G=ne.length,pe=ge.length,ee,M;oe<G;){if(re>=pe)return-1;if(ee=ne.charCodeAt(oe++),ee===37){if(ee=ne.charAt(oe++),M=P[ee in q8?ne.charAt(oe++):ee],!M||(re=M(ae,ge,re))<0)return-1}else if(ee!=ge.charCodeAt(re++))return-1}return re}function k(ae,ne,ge){var re=u.exec(ne.slice(ge));return re?(ae.p=h.get(re[0].toLowerCase()),ge+re[0].length):-1}function B(ae,ne,ge){var re=x.exec(ne.slice(ge));return re?(ae.w=v.get(re[0].toLowerCase()),ge+re[0].length):-1}function $(ae,ne,ge){var re=f.exec(ne.slice(ge));return re?(ae.w=m.get(re[0].toLowerCase()),ge+re[0].length):-1}function _(ae,ne,ge){var re=S.exec(ne.slice(ge));return re?(ae.m=A.get(re[0].toLowerCase()),ge+re[0].length):-1}function W(ae,ne,ge){var re=y.exec(ne.slice(ge));return re?(ae.m=b.get(re[0].toLowerCase()),ge+re[0].length):-1}function D(ae,ne,ge){return O(ae,t,ne,ge)}function J(ae,ne,ge){return O(ae,r,ne,ge)}function z(ae,ne,ge){return O(ae,a,ne,ge)}function V(ae){return o[ae.getDay()]}function Z(ae){return i[ae.getDay()]}function te(ae){return c[ae.getMonth()]}function K(ae){return s[ae.getMonth()]}function q(ae){return n[+(ae.getHours()>=12)]}function X(ae){return 1+~~(ae.getMonth()/3)}function U(ae){return o[ae.getUTCDay()]}function ie(ae){return i[ae.getUTCDay()]}function se(ae){return c[ae.getUTCMonth()]}function he(ae){return s[ae.getUTCMonth()]}function Y(ae){return n[+(ae.getUTCHours()>=12)]}function F(ae){return 1+~~(ae.getUTCMonth()/3)}return{format:function(ae){var ne=C(ae+="",E);return ne.toString=function(){return ae},ne},parse:function(ae){var ne=N(ae+="",!1);return ne.toString=function(){return ae},ne},utcFormat:function(ae){var ne=C(ae+="",j);return ne.toString=function(){return ae},ne},utcParse:function(ae){var ne=N(ae+="",!0);return ne.toString=function(){return ae},ne}}}var q8={"-":"",_:" ",0:"0"},ra=/^\s*\d+/,xSe=/^%/,vSe=/[\\^$*+?|[\]().{}]/g;function Gt(e,t,r){var a=e<0?"-":"",n=(a?-e:e)+"",i=n.length;return a+(i<r?new Array(r-i+1).join(t)+n:n)}function ySe(e){return e.replace(vSe,"\\$&")}function Xf(e){return new RegExp("^(?:"+e.map(ySe).join("|")+")","i")}function Yf(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function bSe(e,t,r){var a=ra.exec(t.slice(r,r+1));return a?(e.w=+a[0],r+a[0].length):-1}function wSe(e,t,r){var a=ra.exec(t.slice(r,r+1));return a?(e.u=+a[0],r+a[0].length):-1}function SSe(e,t,r){var a=ra.exec(t.slice(r,r+2));return a?(e.U=+a[0],r+a[0].length):-1}function ESe(e,t,r){var a=ra.exec(t.slice(r,r+2));return a?(e.V=+a[0],r+a[0].length):-1}function ASe(e,t,r){var a=ra.exec(t.slice(r,r+2));return a?(e.W=+a[0],r+a[0].length):-1}function V8(e,t,r){var a=ra.exec(t.slice(r,r+4));return a?(e.y=+a[0],r+a[0].length):-1}function U8(e,t,r){var a=ra.exec(t.slice(r,r+2));return a?(e.y=+a[0]+(+a[0]>68?1900:2e3),r+a[0].length):-1}function CSe(e,t,r){var a=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return a?(e.Z=a[1]?0:-(a[2]+(a[3]||"00")),r+a[0].length):-1}function PSe(e,t,r){var a=ra.exec(t.slice(r,r+1));return a?(e.q=a[0]*3-3,r+a[0].length):-1}function jSe(e,t,r){var a=ra.exec(t.slice(r,r+2));return a?(e.m=a[0]-1,r+a[0].length):-1}function H8(e,t,r){var a=ra.exec(t.slice(r,r+2));return a?(e.d=+a[0],r+a[0].length):-1}function NSe(e,t,r){var a=ra.exec(t.slice(r,r+3));return a?(e.m=0,e.d=+a[0],r+a[0].length):-1}function G8(e,t,r){var a=ra.exec(t.slice(r,r+2));return a?(e.H=+a[0],r+a[0].length):-1}function TSe(e,t,r){var a=ra.exec(t.slice(r,r+2));return a?(e.M=+a[0],r+a[0].length):-1}function kSe(e,t,r){var a=ra.exec(t.slice(r,r+2));return a?(e.S=+a[0],r+a[0].length):-1}function DSe(e,t,r){var a=ra.exec(t.slice(r,r+3));return a?(e.L=+a[0],r+a[0].length):-1}function _Se(e,t,r){var a=ra.exec(t.slice(r,r+6));return a?(e.L=Math.floor(a[0]/1e3),r+a[0].length):-1}function RSe(e,t,r){var a=xSe.exec(t.slice(r,r+1));return a?r+a[0].length:-1}function OSe(e,t,r){var a=ra.exec(t.slice(r));return a?(e.Q=+a[0],r+a[0].length):-1}function MSe(e,t,r){var a=ra.exec(t.slice(r));return a?(e.s=+a[0],r+a[0].length):-1}function K8(e,t){return Gt(e.getDate(),t,2)}function ISe(e,t){return Gt(e.getHours(),t,2)}function BSe(e,t){return Gt(e.getHours()%12||12,t,2)}function LSe(e,t){return Gt(1+em.count(To(e),e),t,3)}function lH(e,t){return Gt(e.getMilliseconds(),t,3)}function zSe(e,t){return lH(e,t)+"000"}function FSe(e,t){return Gt(e.getMonth()+1,t,2)}function $Se(e,t){return Gt(e.getMinutes(),t,2)}function qSe(e,t){return Gt(e.getSeconds(),t,2)}function VSe(e){var t=e.getDay();return t===0?7:t}function USe(e,t){return Gt(Vy.count(To(e)-1,e),t,2)}function cH(e){var t=e.getDay();return t>=4||t===0?Yu(e):Yu.ceil(e)}function HSe(e,t){return e=cH(e),Gt(Yu.count(To(e),e)+(To(e).getDay()===4),t,2)}function GSe(e){return e.getDay()}function KSe(e,t){return Gt(mv.count(To(e)-1,e),t,2)}function WSe(e,t){return Gt(e.getFullYear()%100,t,2)}function XSe(e,t){return e=cH(e),Gt(e.getFullYear()%100,t,2)}function YSe(e,t){return Gt(e.getFullYear()%1e4,t,4)}function ZSe(e,t){var r=e.getDay();return e=r>=4||r===0?Yu(e):Yu.ceil(e),Gt(e.getFullYear()%1e4,t,4)}function JSe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Gt(t/60|0,"0",2)+Gt(t%60,"0",2)}function W8(e,t){return Gt(e.getUTCDate(),t,2)}function QSe(e,t){return Gt(e.getUTCHours(),t,2)}function eEe(e,t){return Gt(e.getUTCHours()%12||12,t,2)}function tEe(e,t){return Gt(1+qy.count(ko(e),e),t,3)}function uH(e,t){return Gt(e.getUTCMilliseconds(),t,3)}function rEe(e,t){return uH(e,t)+"000"}function aEe(e,t){return Gt(e.getUTCMonth()+1,t,2)}function nEe(e,t){return Gt(e.getUTCMinutes(),t,2)}function iEe(e,t){return Gt(e.getUTCSeconds(),t,2)}function oEe(e){var t=e.getUTCDay();return t===0?7:t}function sEe(e,t){return Gt(Uy.count(ko(e)-1,e),t,2)}function dH(e){var t=e.getUTCDay();return t>=4||t===0?Zu(e):Zu.ceil(e)}function lEe(e,t){return e=dH(e),Gt(Zu.count(ko(e),e)+(ko(e).getUTCDay()===4),t,2)}function cEe(e){return e.getUTCDay()}function uEe(e,t){return Gt(gv.count(ko(e)-1,e),t,2)}function dEe(e,t){return Gt(e.getUTCFullYear()%100,t,2)}function fEe(e,t){return e=dH(e),Gt(e.getUTCFullYear()%100,t,2)}function pEe(e,t){return Gt(e.getUTCFullYear()%1e4,t,4)}function hEe(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Zu(e):Zu.ceil(e),Gt(e.getUTCFullYear()%1e4,t,4)}function mEe(){return"+0000"}function X8(){return"%"}function Y8(e){return+e}function Z8(e){return Math.floor(+e/1e3)}var au,fH,pH;gEe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1225ay","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function gEe(e){return au=gSe(e),fH=au.format,au.parse,pH=au.utcFormat,au.utcParse,au}function xEe(e){return new Date(e)}function vEe(e){return e instanceof Date?+e:+new Date(+e)}function IT(e,t,r,a,n,i,o,s,c,u){var h=ST(),f=h.invert,m=h.domain,x=u(".%L"),v=u(":%S"),y=u("%I:%M"),b=u("%I %p"),S=u("%a %d"),A=u("%b %d"),E=u("%B"),j=u("%Y");function P(C){return(c(C)<C?x:s(C)<C?v:o(C)<C?y:i(C)<C?b:a(C)<C?n(C)<C?S:A:r(C)<C?E:j)(C)}return h.invert=function(C){return new Date(f(C))},h.domain=function(C){return arguments.length?m(Array.from(C,vEe)):m().map(xEe)},h.ticks=function(C){var N=m();return e(N[0],N[N.length-1],C??10)},h.tickFormat=function(C,N){return N==null?P:u(N)},h.nice=function(C){var N=m();return(!C||typeof C.range!="function")&&(C=t(N[0],N[N.length-1],C??10)),C?m(QU(N,C)):h},h.copy=function(){return Qh(h,IT(e,t,r,a,n,i,o,s,c,u))},h}function yEe(){return Un.apply(IT(hSe,mSe,To,OT,Vy,em,_T,kT,Al,fH).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function bEe(){return Un.apply(IT(fSe,pSe,ko,MT,Uy,qy,RT,DT,Al,pH).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Hy(){var e=0,t=1,r,a,n,i,o=Ta,s=!1,c;function u(f){return f==null||isNaN(f=+f)?c:o(n===0?.5:(f=(i(f)-r)*n,s?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([e,t]=f,r=i(e=+e),a=i(t=+t),n=r===a?0:1/(a-r),u):[e,t]},u.clamp=function(f){return arguments.length?(s=!!f,u):s},u.interpolator=function(f){return arguments.length?(o=f,u):o};function h(f){return function(m){var x,v;return arguments.length?([x,v]=m,o=f(x,v),u):[o(0),o(1)]}}return u.range=h(Id),u.rangeRound=h(wT),u.unknown=function(f){return arguments.length?(c=f,u):c},function(f){return i=f,r=f(e),a=f(t),n=r===a?0:1/(a-r),u}}function Is(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function hH(){var e=Ms(Hy()(Ta));return e.copy=function(){return Is(e,hH())},Io.apply(e,arguments)}function mH(){var e=CT(Hy()).domain([1,10]);return e.copy=function(){return Is(e,mH()).base(e.base())},Io.apply(e,arguments)}function gH(){var e=PT(Hy());return e.copy=function(){return Is(e,gH()).constant(e.constant())},Io.apply(e,arguments)}function BT(){var e=jT(Hy());return e.copy=function(){return Is(e,BT()).exponent(e.exponent())},Io.apply(e,arguments)}function wEe(){return BT.apply(null,arguments).exponent(.5)}function xH(){var e=[],t=Ta;function r(a){if(a!=null&&!isNaN(a=+a))return t((Zh(e,a,1)-1)/(e.length-1))}return r.domain=function(a){if(!arguments.length)return e.slice();e=[];for(let n of a)n!=null&&!isNaN(n=+n)&&e.push(n);return e.sort(ys),r},r.interpolator=function(a){return arguments.length?(t=a,r):t},r.range=function(){return e.map((a,n)=>t(n/(e.length-1)))},r.quantiles=function(a){return Array.from({length:a+1},(n,i)=>s2e(e,i/a))},r.copy=function(){return xH(t).domain(e)},Io.apply(r,arguments)}function Gy(){var e=0,t=.5,r=1,a=1,n,i,o,s,c,u=Ta,h,f=!1,m;function x(y){return isNaN(y=+y)?m:(y=.5+((y=+h(y))-i)*(a*y<a*i?s:c),u(f?Math.max(0,Math.min(1,y)):y))}x.domain=function(y){return arguments.length?([e,t,r]=y,n=h(e=+e),i=h(t=+t),o=h(r=+r),s=n===i?0:.5/(i-n),c=i===o?0:.5/(o-i),a=i<n?-1:1,x):[e,t,r]},x.clamp=function(y){return arguments.length?(f=!!y,x):f},x.interpolator=function(y){return arguments.length?(u=y,x):u};function v(y){return function(b){var S,A,E;return arguments.length?([S,A,E]=b,u=R2e(y,[S,A,E]),x):[u(0),u(.5),u(1)]}}return x.range=v(Id),x.rangeRound=v(wT),x.unknown=function(y){return arguments.length?(m=y,x):m},function(y){return h=y,n=y(e),i=y(t),o=y(r),s=n===i?0:.5/(i-n),c=i===o?0:.5/(o-i),a=i<n?-1:1,x}}function vH(){var e=Ms(Gy()(Ta));return e.copy=function(){return Is(e,vH())},Io.apply(e,arguments)}function yH(){var e=CT(Gy()).domain([.1,1,10]);return e.copy=function(){return Is(e,yH()).base(e.base())},Io.apply(e,arguments)}function bH(){var e=PT(Gy());return e.copy=function(){return Is(e,bH()).constant(e.constant())},Io.apply(e,arguments)}function LT(){var e=jT(Gy());return e.copy=function(){return Is(e,LT()).exponent(e.exponent())},Io.apply(e,arguments)}function SEe(){return LT.apply(null,arguments).exponent(.5)}const J8=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Zp,scaleDiverging:vH,scaleDivergingLog:yH,scaleDivergingPow:LT,scaleDivergingSqrt:SEe,scaleDivergingSymlog:bH,scaleIdentity:JU,scaleImplicit:SP,scaleLinear:pv,scaleLog:eH,scaleOrdinal:vT,scalePoint:wp,scalePow:NT,scaleQuantile:aH,scaleQuantize:nH,scaleRadial:rH,scaleSequential:hH,scaleSequentialLog:mH,scaleSequentialPow:BT,scaleSequentialQuantile:xH,scaleSequentialSqrt:wEe,scaleSequentialSymlog:gH,scaleSqrt:rSe,scaleSymlog:tH,scaleThreshold:iH,scaleTime:yEe,scaleUtc:bEe,tickFormat:ZU},Symbol.toStringTag,{value:"Module"}));var hA,Q8;function Ky(){if(Q8)return hA;Q8=1;var e=_d();function t(r,a,n){for(var i=-1,o=r.length;++i<o;){var s=r[i],c=a(s);if(c!=null&&(u===void 0?c===c&&!e(c):n(c,u)))var u=c,h=s}return h}return hA=t,hA}var mA,e9;function wH(){if(e9)return mA;e9=1;function e(t,r){return t>r}return mA=e,mA}var gA,t9;function EEe(){if(t9)return gA;t9=1;var e=Ky(),t=wH(),r=Md();function a(n){return n&&n.length?e(n,r,t):void 0}return gA=a,gA}var AEe=EEe();
vendor: 67,894 bytes, lines 1225-1252
1225const Wy=qt(AEe);var xA,r9;function SH(){if(r9)return xA;r9=1;function e(t,r){return t<r}return xA=e,xA}var vA,a9;function CEe(){if(a9)return vA;a9=1;var e=Ky(),t=SH(),r=Md();function a(n){return n&&n.length?e(n,r,t):void 0}return vA=a,vA}var PEe=CEe();const Xy=qt(PEe);var yA,n9;function jEe(){if(n9)return yA;n9=1;var e=eT(),t=Li(),r=kU(),a=Wa();function n(i,o){var s=a(i)?e:r;return s(i,t(o,3))}return yA=n,yA}var bA,i9;function NEe(){if(i9)return bA;i9=1;var e=NU(),t=jEe();function r(a,n){return e(t(a,n),1)}return bA=r,bA}var TEe=NEe();const kEe=qt(TEe);var wA,o9;function DEe(){if(o9)return wA;o9=1;var e=pT();function t(r,a){return e(r,a)}return wA=t,wA}var _Ee=DEe();const tm=qt(_Ee);var Bd=1e9,REe={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},FT,wr=!0,Vn="[DecimalError] ",Rl=Vn+"Invalid argument: ",zT=Vn+"Exponent out of range: ",Ld=Math.floor,xl=Math.pow,OEe=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,un,Jr=1e7,vr=7,EH=9007199254740991,xv=Ld(EH/vr),Ye={};Ye.absoluteValue=Ye.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Ye.comparedTo=Ye.cmp=function(e){var t,r,a,n,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(a=i.d.length,n=e.d.length,t=0,r=a<n?a:n;t<r;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return a===n?0:a>n^i.s<0?1:-1};Ye.decimalPlaces=Ye.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*vr;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};Ye.dividedBy=Ye.div=function(e){return wo(this,new this.constructor(e))};Ye.dividedToIntegerBy=Ye.idiv=function(e){var t=this,r=t.constructor;return sr(wo(t,new r(e),0,1),r.precision)};Ye.equals=Ye.eq=function(e){return!this.cmp(e)};Ye.exponent=function(){return Fr(this)};Ye.greaterThan=Ye.gt=function(e){return this.cmp(e)>0};Ye.greaterThanOrEqualTo=Ye.gte=function(e){return this.cmp(e)>=0};Ye.isInteger=Ye.isint=function(){return this.e>this.d.length-2};Ye.isNegative=Ye.isneg=function(){return this.s<0};Ye.isPositive=Ye.ispos=function(){return this.s>0};Ye.isZero=function(){return this.s===0};Ye.lessThan=Ye.lt=function(e){return this.cmp(e)<0};Ye.lessThanOrEqualTo=Ye.lte=function(e){return this.cmp(e)<1};Ye.logarithm=Ye.log=function(e){var t,r=this,a=r.constructor,n=a.precision,i=n+5;if(e===void 0)e=new a(10);else if(e=new a(e),e.s<1||e.eq(un))throw Error(Vn+"NaN");if(r.s<1)throw Error(Vn+(r.s?"NaN":"-Infinity"));return r.eq(un)?new a(0):(wr=!1,t=wo(rh(r,i),rh(e,i),i),wr=!0,sr(t,n))};Ye.minus=Ye.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?PH(t,e):AH(t,(e.s=-e.s,e))};Ye.modulo=Ye.mod=function(e){var t,r=this,a=r.constructor,n=a.precision;if(e=new a(e),!e.s)throw Error(Vn+"NaN");return r.s?(wr=!1,t=wo(r,e,0,1).times(e),wr=!0,r.minus(t)):sr(new a(r),n)};Ye.naturalExponential=Ye.exp=function(){return CH(this)};Ye.naturalLogarithm=Ye.ln=function(){return rh(this)};Ye.negated=Ye.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Ye.plus=Ye.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?AH(t,e):PH(t,(e.s=-e.s,e))};Ye.precision=Ye.sd=function(e){var t,r,a,n=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Rl+e);if(t=Fr(n)+1,a=n.d.length-1,r=a*vr+1,a=n.d[a],a){for(;a%10==0;a/=10)r--;for(a=n.d[0];a>=10;a/=10)r++}return e&&t>r?t:r};Ye.squareRoot=Ye.sqrt=function(){var e,t,r,a,n,i,o,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(Vn+"NaN")}for(e=Fr(s),wr=!1,n=Math.sqrt(+s),n==0||n==1/0?(t=Ei(s.d),(t.length+e)%2==0&&(t+="0"),n=Math.sqrt(t),e=Ld((e+1)/2)-(e<0||e%2),n==1/0?t="5e"+e:(t=n.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),a=new c(t)):a=new c(n.toString()),r=c.precision,n=o=r+3;;)if(i=a,a=i.plus(wo(s,i,o+2)).times(.5),Ei(i.d).slice(0,o)===(t=Ei(a.d)).slice(0,o)){if(t=t.slice(o-3,o+1),n==o&&t=="4999"){if(sr(i,r+1,0),i.times(i).eq(s)){a=i;break}}else if(t!="9999")break;o+=4}return wr=!0,sr(a,r)};Ye.times=Ye.mul=function(e){var t,r,a,n,i,o,s,c,u,h=this,f=h.constructor,m=h.d,x=(e=new f(e)).d;if(!h.s||!e.s)return new f(0);for(e.s*=h.s,r=h.e+e.e,c=m.length,u=x.length,c<u&&(i=m,m=x,x=i,o=c,c=u,u=o),i=[],o=c+u,a=o;a--;)i.push(0);for(a=u;--a>=0;){for(t=0,n=c+a;n>a;)s=i[n]+x[a]*m[n-a-1]+t,i[n--]=s%Jr|0,t=s/Jr|0;i[n]=(i[n]+t)%Jr|0}for(;!i[--o];)i.pop();return t?++r:i.shift(),e.d=i,e.e=r,wr?sr(e,f.precision):e};Ye.toDecimalPlaces=Ye.todp=function(e,t){var r=this,a=r.constructor;return r=new a(r),e===void 0?r:(_i(e,0,Bd),t===void 0?t=a.rounding:_i(t,0,8),sr(r,e+Fr(r)+1,t))};Ye.toExponential=function(e,t){var r,a=this,n=a.constructor;return e===void 0?r=Gl(a,!0):(_i(e,0,Bd),t===void 0?t=n.rounding:_i(t,0,8),a=sr(new n(a),e+1,t),r=Gl(a,!0,e+1)),r};Ye.toFixed=function(e,t){var r,a,n=this,i=n.constructor;return e===void 0?Gl(n):(_i(e,0,Bd),t===void 0?t=i.rounding:_i(t,0,8),a=sr(new i(n),e+Fr(n)+1,t),r=Gl(a.abs(),!1,e+Fr(a)+1),n.isneg()&&!n.isZero()?"-"+r:r)};Ye.toInteger=Ye.toint=function(){var e=this,t=e.constructor;return sr(new t(e),Fr(e)+1,t.rounding)};Ye.toNumber=function(){return+this};Ye.toPower=Ye.pow=function(e){var t,r,a,n,i,o,s=this,c=s.constructor,u=12,h=+(e=new c(e));if(!e.s)return new c(un);if(s=new c(s),!s.s){if(e.s<1)throw Error(Vn+"Infinity");return s}if(s.eq(un))return s;if(a=c.precision,e.eq(un))return sr(s,a);if(t=e.e,r=e.d.length-1,o=t>=r,i=s.s,o){if((r=h<0?-h:h)<=EH){for(n=new c(un),t=Math.ceil(a/vr+4),wr=!1;r%2&&(n=n.times(s),l9(n.d,t)),r=Ld(r/2),r!==0;)s=s.times(s),l9(s.d,t);return wr=!0,e.s<0?new c(un).div(n):sr(n,a)}}else if(i<0)throw Error(Vn+"NaN");return i=i<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,wr=!1,n=e.times(rh(s,a+u)),wr=!0,n=CH(n),n.s=i,n};Ye.toPrecision=function(e,t){var r,a,n=this,i=n.constructor;return e===void 0?(r=Fr(n),a=Gl(n,r<=i.toExpNeg||r>=i.toExpPos)):(_i(e,1,Bd),t===void 0?t=i.rounding:_i(t,0,8),n=sr(new i(n),e,t),r=Fr(n),a=Gl(n,e<=r||r<=i.toExpNeg,e)),a};Ye.toSignificantDigits=Ye.tosd=function(e,t){var r=this,a=r.constructor;return e===void 0?(e=a.precision,t=a.rounding):(_i(e,1,Bd),t===void 0?t=a.rounding:_i(t,0,8)),sr(new a(r),e,t)};Ye.toString=Ye.valueOf=Ye.val=Ye.toJSON=Ye[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Fr(e),r=e.constructor;return Gl(e,t<=r.toExpNeg||t>=r.toExpPos)};function AH(e,t){var r,a,n,i,o,s,c,u,h=e.constructor,f=h.precision;if(!e.s||!t.s)return t.s||(t=new h(e)),wr?sr(t,f):t;if(c=e.d,u=t.d,o=e.e,n=t.e,c=c.slice(),i=o-n,i){for(i<0?(a=c,i=-i,s=u.length):(a=u,n=o,s=c.length),o=Math.ceil(f/vr),s=o>s?o+1:s+1,i>s&&(i=s,a.length=1),a.reverse();i--;)a.push(0);a.reverse()}for(s=c.length,i=u.length,s-i<0&&(i=s,a=u,u=c,c=a),r=0;i;)r=(c[--i]=c[i]+u[i]+r)/Jr|0,c[i]%=Jr;for(r&&(c.unshift(r),++n),s=c.length;c[--s]==0;)c.pop();return t.d=c,t.e=n,wr?sr(t,f):t}function _i(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Rl+e)}function Ei(e){var t,r,a,n=e.length-1,i="",o=e[0];if(n>0){for(i+=o,t=1;t<n;t++)a=e[t]+"",r=vr-a.length,r&&(i+=hs(r)),i+=a;o=e[t],a=o+"",r=vr-a.length,r&&(i+=hs(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return i+o}var wo=(function(){function e(a,n){var i,o=0,s=a.length;for(a=a.slice();s--;)i=a[s]*n+o,a[s]=i%Jr|0,o=i/Jr|0;return o&&a.unshift(o),a}function t(a,n,i,o){var s,c;if(i!=o)c=i>o?1:-1;else for(s=c=0;s<i;s++)if(a[s]!=n[s]){c=a[s]>n[s]?1:-1;break}return c}function r(a,n,i){for(var o=0;i--;)a[i]-=o,o=a[i]<n[i]?1:0,a[i]=o*Jr+a[i]-n[i];for(;!a[0]&&a.length>1;)a.shift()}return function(a,n,i,o){var s,c,u,h,f,m,x,v,y,b,S,A,E,j,P,C,N,O,k=a.constructor,B=a.s==n.s?1:-1,$=a.d,_=n.d;if(!a.s)return new k(a);if(!n.s)throw Error(Vn+"Division by zero");for(c=a.e-n.e,N=_.length,P=$.length,x=new k(B),v=x.d=[],u=0;_[u]==($[u]||0);)++u;if(_[u]>($[u]||0)&&--c,i==null?A=i=k.precision:o?A=i+(Fr(a)-Fr(n))+1:A=i,A<0)return new k(0);if(A=A/vr+2|0,u=0,N==1)for(h=0,_=_[0],A++;(u<P||h)&&A--;u++)E=h*Jr+($[u]||0),v[u]=E/_|0,h=E%_|0;else{for(h=Jr/(_[0]+1)|0,h>1&&(_=e(_,h),$=e($,h),N=_.length,P=$.length),j=N,y=$.slice(0,N),b=y.length;b<N;)y[b++]=0;O=_.slice(),O.unshift(0),C=_[0],_[1]>=Jr/2&&++C;do h=0,s=t(_,y,N,b),s<0?(S=y[0],N!=b&&(S=S*Jr+(y[1]||0)),h=S/C|0,h>1?(h>=Jr&&(h=Jr-1),f=e(_,h),m=f.length,b=y.length,s=t(f,y,m,b),s==1&&(h--,r(f,N<m?O:_,m))):(h==0&&(s=h=1),f=_.slice()),m=f.length,m<b&&f.unshift(0),r(y,f,b),s==-1&&(b=y.length,s=t(_,y,N,b),s<1&&(h++,r(y,N<b?O:_,b))),b=y.length):s===0&&(h++,y=[0]),v[u++]=h,s&&y[0]?y[b++]=$[j]||0:(y=[$[j]],b=1);while((j++<P||y[0]!==void 0)&&A--)}return v[0]||v.shift(),x.e=c,sr(x,o?i+Fr(x)+1:i)}})();function CH(e,t){var r,a,n,i,o,s,c=0,u=0,h=e.constructor,f=h.precision;if(Fr(e)>16)throw Error(zT+Fr(e));if(!e.s)return new h(un);for(wr=!1,s=f,o=new h(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(a=Math.log(xl(2,u))/Math.LN10*2+5|0,s+=a,r=n=i=new h(un),h.precision=s;;){if(n=sr(n.times(e),s),r=r.times(++c),o=i.plus(wo(n,r,s)),Ei(o.d).slice(0,s)===Ei(i.d).slice(0,s)){for(;u--;)i=sr(i.times(i),s);return h.precision=f,t==null?(wr=!0,sr(i,f)):i}i=o}}function Fr(e){for(var t=e.e*vr,r=e.d[0];r>=10;r/=10)t++;return t}function SA(e,t,r){if(t>e.LN10.sd())throw wr=!0,r&&(e.precision=r),Error(Vn+"LN10 precision limit exceeded");return sr(new e(e.LN10),t)}function hs(e){for(var t="";e--;)t+="0";return t}function rh(e,t){var r,a,n,i,o,s,c,u,h,f=1,m=10,x=e,v=x.d,y=x.constructor,b=y.precision;if(x.s<1)throw Error(Vn+(x.s?"NaN":"-Infinity"));if(x.eq(un))return new y(0);if(t==null?(wr=!1,u=b):u=t,x.eq(10))return t==null&&(wr=!0),SA(y,u);if(u+=m,y.precision=u,r=Ei(v),a=r.charAt(0),i=Fr(x),Math.abs(i)<15e14){for(;a<7&&a!=1||a==1&&r.charAt(1)>3;)x=x.times(e),r=Ei(x.d),a=r.charAt(0),f++;i=Fr(x),a>1?(x=new y("0."+r),i++):x=new y(a+"."+r.slice(1))}else return c=SA(y,u+2,b).times(i+""),x=rh(new y(a+"."+r.slice(1)),u-m).plus(c),y.precision=b,t==null?(wr=!0,sr(x,b)):x;for(s=o=x=wo(x.minus(un),x.plus(un),u),h=sr(x.times(x),u),n=3;;){if(o=sr(o.times(h),u),c=s.plus(wo(o,new y(n),u)),Ei(c.d).slice(0,u)===Ei(s.d).slice(0,u))return s=s.times(2),i!==0&&(s=s.plus(SA(y,u+2,b).times(i+""))),s=wo(s,new y(f),u),y.precision=b,t==null?(wr=!0,sr(s,b)):s;s=c,n+=2}}function s9(e,t){var r,a,n;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(a=t.search(/e/i))>0?(r<0&&(r=a),r+=+t.slice(a+1),t=t.substring(0,a)):r<0&&(r=t.length),a=0;t.charCodeAt(a)===48;)++a;for(n=t.length;t.charCodeAt(n-1)===48;)--n;if(t=t.slice(a,n),t){if(n-=a,r=r-a-1,e.e=Ld(r/vr),e.d=[],a=(r+1)%vr,r<0&&(a+=vr),a<n){for(a&&e.d.push(+t.slice(0,a)),n-=vr;a<n;)e.d.push(+t.slice(a,a+=vr));t=t.slice(a),a=vr-t.length}else a-=n;for(;a--;)t+="0";if(e.d.push(+t),wr&&(e.e>xv||e.e<-xv))throw Error(zT+r)}else e.s=0,e.e=0,e.d=[0];return e}function sr(e,t,r){var a,n,i,o,s,c,u,h,f=e.d;for(o=1,i=f[0];i>=10;i/=10)o++;if(a=t-o,a<0)a+=vr,n=t,u=f[h=0];else{if(h=Math.ceil((a+1)/vr),i=f.length,h>=i)return e;for(u=i=f[h],o=1;i>=10;i/=10)o++;a%=vr,n=a-vr+o}if(r!==void 0&&(i=xl(10,o-n-1),s=u/i%10|0,c=t<0||f[h+1]!==void 0||u%i,c=r<4?(s||c)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||c||r==6&&(a>0?n>0?u/xl(10,o-n):0:f[h-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return c?(i=Fr(e),f.length=1,t=t-i-1,f[0]=xl(10,(vr-t%vr)%vr),e.e=Ld(-t/vr)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(a==0?(f.length=h,i=1,h--):(f.length=h+1,i=xl(10,vr-a),f[h]=n>0?(u/xl(10,o-n)%xl(10,n)|0)*i:0),c)for(;;)if(h==0){(f[0]+=i)==Jr&&(f[0]=1,++e.e);break}else{if(f[h]+=i,f[h]!=Jr)break;f[h--]=0,i=1}for(a=f.length;f[--a]===0;)f.pop();if(wr&&(e.e>xv||e.e<-xv))throw Error(zT+Fr(e));return e}function PH(e,t){var r,a,n,i,o,s,c,u,h,f,m=e.constructor,x=m.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new m(e),wr?sr(t,x):t;if(c=e.d,f=t.d,a=t.e,u=e.e,c=c.slice(),o=u-a,o){for(h=o<0,h?(r=c,o=-o,s=f.length):(r=f,a=u,s=c.length),n=Math.max(Math.ceil(x/vr),s)+2,o>n&&(o=n,r.length=1),r.reverse(),n=o;n--;)r.push(0);r.reverse()}else{for(n=c.length,s=f.length,h=n<s,h&&(s=n),n=0;n<s;n++)if(c[n]!=f[n]){h=c[n]<f[n];break}o=0}for(h&&(r=c,c=f,f=r,t.s=-t.s),s=c.length,n=f.length-s;n>0;--n)c[s++]=0;for(n=f.length;n>o;){if(c[--n]<f[n]){for(i=n;i&&c[--i]===0;)c[i]=Jr-1;--c[i],c[n]+=Jr}c[n]-=f[n]}for(;c[--s]===0;)c.pop();for(;c[0]===0;c.shift())--a;return c[0]?(t.d=c,t.e=a,wr?sr(t,x):t):new m(0)}function Gl(e,t,r){var a,n=Fr(e),i=Ei(e.d),o=i.length;return t?(r&&(a=r-o)>0?i=i.charAt(0)+"."+i.slice(1)+hs(a):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(n<0?"e":"e+")+n):n<0?(i="0."+hs(-n-1)+i,r&&(a=r-o)>0&&(i+=hs(a))):n>=o?(i+=hs(n+1-o),r&&(a=r-n-1)>0&&(i=i+"."+hs(a))):((a=n+1)<o&&(i=i.slice(0,a)+"."+i.slice(a)),r&&(a=r-o)>0&&(n+1===o&&(i+="."),i+=hs(a))),e.s<0?"-"+i:i}function l9(e,t){if(e.length>t)return e.length=t,!0}function jH(e){var t,r,a;function n(i){var o=this;if(!(o instanceof n))return new n(i);if(o.constructor=n,i instanceof n){o.s=i.s,o.e=i.e,o.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(Rl+i);if(i>0)o.s=1;else if(i<0)i=-i,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(i===~~i&&i<1e7){o.e=0,o.d=[i];return}return s9(o,i.toString())}else if(typeof i!="string")throw Error(Rl+i);if(i.charCodeAt(0)===45?(i=i.slice(1),o.s=-1):o.s=1,OEe.test(i))s9(o,i);else throw Error(Rl+i)}if(n.prototype=Ye,n.ROUND_UP=0,n.ROUND_DOWN=1,n.ROUND_CEIL=2,n.ROUND_FLOOR=3,n.ROUND_HALF_UP=4,n.ROUND_HALF_DOWN=5,n.ROUND_HALF_EVEN=6,n.ROUND_HALF_CEIL=7,n.ROUND_HALF_FLOOR=8,n.clone=jH,n.config=n.set=MEe,e===void 0&&(e={}),e)for(a=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<a.length;)e.hasOwnProperty(r=a[t++])||(e[r]=this[r]);return n.config(e),n}function MEe(e){if(!e||typeof e!="object")throw Error(Vn+"Object expected");var t,r,a,n=["precision",1,Bd,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<n.length;t+=3)if((a=e[r=n[t]])!==void 0)if(Ld(a)===a&&a>=n[t+1]&&a<=n[t+2])this[r]=a;else throw Error(Rl+r+": "+a);if((a=e[r="LN10"])!==void 0)if(a==Math.LN10)this[r]=new this(a);else throw Error(Rl+r+": "+a);return this}var FT=jH(REe);un=new FT(1);const ir=FT;function IEe(e){return FEe(e)||zEe(e)||LEe(e)||BEe()}function BEe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1226In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LEe(e,t){if(e){if(typeof e=="string")return PP(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return PP(e,t)}}function zEe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function FEe(e){if(Array.isArray(e))return PP(e)}function PP(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}var $Ee=function(t){return t},NH={},TH=function(t){return t===NH},c9=function(t){return function r(){return arguments.length===0||arguments.length===1&&TH(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},qEe=function e(t,r){return t===1?r:c9(function(){for(var a=arguments.length,n=new Array(a),i=0;i<a;i++)n[i]=arguments[i];var o=n.filter(function(s){return s!==NH}).length;return o>=t?r.apply(void 0,n):e(t-o,c9(function(){for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];var h=n.map(function(f){return TH(f)?c.shift():f});return r.apply(void 0,IEe(h).concat(c))}))})},Yy=function(t){return qEe(t.length,t)},jP=function(t,r){for(var a=[],n=t;n<r;++n)a[n-t]=n;return a},VEe=Yy(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),UEe=function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];if(!r.length)return $Ee;var n=r.reverse(),i=n[0],o=n.slice(1);return function(){return o.reduce(function(s,c){return c(s)},i.apply(void 0,arguments))}},NP=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},kH=function(t){var r=null,a=null;return function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r&&i.every(function(s,c){return s===r[c]})||(r=i,a=t.apply(void 0,i)),a}};function HEe(e){var t;return e===0?t=1:t=Math.floor(new ir(e).abs().log(10).toNumber())+1,t}function GEe(e,t,r){for(var a=new ir(e),n=0,i=[];a.lt(t)&&n<1e5;)i.push(a.toNumber()),a=a.add(r),n++;return i}var KEe=Yy(function(e,t,r){var a=+e,n=+t;return a+r*(n-a)}),WEe=Yy(function(e,t,r){var a=t-+e;return a=a||1/0,(r-e)/a}),XEe=Yy(function(e,t,r){var a=t-+e;return a=a||1/0,Math.max(0,Math.min(1,(r-e)/a))});const Zy={rangeStep:GEe,getDigitCount:HEe,interpolateNumber:KEe,uninterpolateNumber:WEe,uninterpolateTruncation:XEe};function TP(e){return JEe(e)||ZEe(e)||DH(e)||YEe()}function YEe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1227In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZEe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function JEe(e){if(Array.isArray(e))return kP(e)}function ah(e,t){return tAe(e)||eAe(e,t)||DH(e,t)||QEe()}function QEe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1228In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DH(e,t){if(e){if(typeof e=="string")return kP(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return kP(e,t)}}function kP(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function eAe(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],a=!0,n=!1,i=void 0;try{for(var o=e[Symbol.iterator](),s;!(a=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));a=!0);}catch(c){n=!0,i=c}finally{try{!a&&o.return!=null&&o.return()}finally{if(n)throw i}}return r}}function tAe(e){if(Array.isArray(e))return e}function _H(e){var t=ah(e,2),r=t[0],a=t[1],n=r,i=a;return r>a&&(n=a,i=r),[n,i]}function RH(e,t,r){if(e.lte(0))return new ir(0);var a=Zy.getDigitCount(e.toNumber()),n=new ir(10).pow(a),i=e.div(n),o=a!==1?.05:.1,s=new ir(Math.ceil(i.div(o).toNumber())).add(r).mul(o),c=s.mul(n);return t?c:new ir(Math.ceil(c))}function rAe(e,t,r){var a=1,n=new ir(e);if(!n.isint()&&r){var i=Math.abs(e);i<1?(a=new ir(10).pow(Zy.getDigitCount(e)-1),n=new ir(Math.floor(n.div(a).toNumber())).mul(a)):i>1&&(n=new ir(Math.floor(e)))}else e===0?n=new ir(Math.floor((t-1)/2)):r||(n=new ir(Math.floor(e)));var o=Math.floor((t-1)/2),s=UEe(VEe(function(c){return n.add(new ir(c-o).mul(a)).toNumber()}),jP);return s(0,t)}function OH(e,t,r,a){var n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new ir(0),tickMin:new ir(0),tickMax:new ir(0)};var i=RH(new ir(t).sub(e).div(r-1),a,n),o;e<=0&&t>=0?o=new ir(0):(o=new ir(e).add(t).div(2),o=o.sub(new ir(o).mod(i)));var s=Math.ceil(o.sub(e).div(i).toNumber()),c=Math.ceil(new ir(t).sub(o).div(i).toNumber()),u=s+c+1;return u>r?OH(e,t,r,a,n+1):(u<r&&(c=t>0?c+(r-u):c,s=t>0?s:s+(r-u)),{step:i,tickMin:o.sub(new ir(s).mul(i)),tickMax:o.add(new ir(c).mul(i))})}function aAe(e){var t=ah(e,2),r=t[0],a=t[1],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(n,2),s=_H([r,a]),c=ah(s,2),u=c[0],h=c[1];if(u===-1/0||h===1/0){var f=h===1/0?[u].concat(TP(jP(0,n-1).map(function(){return 1/0}))):[].concat(TP(jP(0,n-1).map(function(){return-1/0})),[h]);return r>a?NP(f):f}if(u===h)return rAe(u,n,i);var m=OH(u,h,o,i),x=m.step,v=m.tickMin,y=m.tickMax,b=Zy.rangeStep(v,y.add(new ir(.1).mul(x)),x);return r>a?NP(b):b}function nAe(e,t){var r=ah(e,2),a=r[0],n=r[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=_H([a,n]),s=ah(o,2),c=s[0],u=s[1];if(c===-1/0||u===1/0)return[a,n];if(c===u)return[c];var h=Math.max(t,2),f=RH(new ir(u).sub(c).div(h-1),i,0),m=[].concat(TP(Zy.rangeStep(new ir(c),new ir(u).sub(new ir(.99).mul(f)),f)),[u]);return a>n?NP(m):m}var iAe=kH(aAe),oAe=kH(nAe),sAe="Invariant failed";function Kl(e,t){throw new Error(sAe)}var lAe=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Ju(e){"@babel/helpers - typeof";return Ju=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ju(e)}function vv(){return vv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},vv.apply(this,arguments)}function cAe(e,t){return pAe(e)||fAe(e,t)||dAe(e,t)||uAe()}function uAe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1229In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dAe(e,t){if(e){if(typeof e=="string")return u9(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u9(e,t)}}function u9(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function fAe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,n,i,o,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(c=(a=i.call(r)).done)&&(s.push(a.value),s.length!==t);c=!0);}catch(h){u=!0,n=h}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw n}}return s}}function pAe(e){if(Array.isArray(e))return e}function hAe(e,t){if(e==null)return{};var r=mAe(e,t),a,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)a=i[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function mAe(e,t){if(e==null)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}function gAe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xAe(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,BH(a.key),a)}}function vAe(e,t,r){return t&&xAe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function yAe(e,t,r){return t=yv(t),bAe(e,MH()?Reflect.construct(t,r||[],yv(e).constructor):t.apply(e,r))}function bAe(e,t){if(t&&(Ju(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wAe(e)}function wAe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(MH=function(){return!!e})()}function yv(e){return yv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},yv(e)}function SAe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&DP(e,t)}function DP(e,t){return DP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},DP(e,t)}function IH(e,t,r){return t=BH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BH(e){var t=EAe(e,"string");return Ju(t)=="symbol"?t:t+""}function EAe(e,t){if(Ju(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(Ju(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var rm=(function(e){function t(){return gAe(this,t),yAe(this,t,arguments)}return SAe(t,e),vAe(t,[{key:"render",value:function(){var a=this.props,n=a.offset,i=a.layout,o=a.width,s=a.dataKey,c=a.data,u=a.dataPointFormatter,h=a.xAxis,f=a.yAxis,m=hAe(a,lAe),x=lt(m,!1);this.props.direction==="x"&&h.type!=="number"&&Kl();var v=c.map(function(y){var b=u(y,s),S=b.x,A=b.y,E=b.value,j=b.errorVal;if(!j)return null;var P=[],C,N;if(Array.isArray(j)){var O=cAe(j,2);C=O[0],N=O[1]}else C=N=j;if(i==="vertical"){var k=h.scale,B=A+n,$=B+o,_=B-o,W=k(E-C),D=k(E+N);P.push({x1:D,y1:$,x2:D,y2:_}),P.push({x1:W,y1:B,x2:D,y2:B}),P.push({x1:W,y1:$,x2:W,y2:_})}else if(i==="horizontal"){var J=f.scale,z=S+n,V=z-o,Z=z+o,te=J(E-C),K=J(E+N);P.push({x1:V,y1:K,x2:Z,y2:K}),P.push({x1:z,y1:te,x2:z,y2:K}),P.push({x1:V,y1:te,x2:Z,y2:te})}return de.createElement(Ht,vv({className:"recharts-errorBar",key:"bar-".concat(P.map(function(q){return"".concat(q.x1,"-").concat(q.x2,"-").concat(q.y1,"-").concat(q.y2)}))},x),P.map(function(q){return de.createElement("line",vv({},q,{key:"line-".concat(q.x1,"-").concat(q.x2,"-").concat(q.y1,"-").concat(q.y2)}))}))});return de.createElement(Ht,{className:"recharts-errorBars"},v)}}])})(de.Component);IH(rm,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});IH(rm,"displayName","ErrorBar");function nh(e){"@babel/helpers - typeof";return nh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nh(e)}function d9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function cl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?d9(Object(r),!0).forEach(function(a){AAe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d9(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function AAe(e,t,r){return t=CAe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CAe(e){var t=PAe(e,"string");return nh(t)=="symbol"?t:t+""}function PAe(e,t){if(nh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(nh(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var LH=function(t){var r=t.children,a=t.formattedGraphicalItems,n=t.legendWidth,i=t.legendContent,o=sn(r,bo);if(!o)return null;var s=bo.defaultProps,c=s!==void 0?cl(cl({},s),o.props):{},u;return o.props&&o.props.payload?u=o.props&&o.props.payload:i==="children"?u=(a||[]).reduce(function(h,f){var m=f.item,x=f.props,v=x.sectors||x.data||[];return h.concat(v.map(function(y){return{type:o.props.iconType||m.props.legendType,value:y.name,color:y.fill,payload:y}}))},[]):u=(a||[]).map(function(h){var f=h.item,m=f.type.defaultProps,x=m!==void 0?cl(cl({},m),f.props):{},v=x.dataKey,y=x.name,b=x.legendType,S=x.hide;return{inactive:S,dataKey:v,type:c.iconType||b||"square",color:$T(f),value:y||v,payload:x}}),cl(cl(cl({},c),bo.getWithHeight(o,n)),{},{payload:u,item:o})};function ih(e){"@babel/helpers - typeof";return ih=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ih(e)}function f9(e){return kAe(e)||TAe(e)||NAe(e)||jAe()}function jAe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1230In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NAe(e,t){if(e){if(typeof e=="string")return _P(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _P(e,t)}}function TAe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kAe(e){if(Array.isArray(e))return _P(e)}function _P(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function p9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function Tr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?p9(Object(r),!0).forEach(function(a){ju(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p9(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function ju(e,t,r){return t=DAe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DAe(e){var t=_Ae(e,"string");return ih(t)=="symbol"?t:t+""}function _Ae(e,t){if(ih(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(ih(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gr(e,t,r){return yt(e)||yt(t)?r:Wr(t)?mn(e,t,r):gt(t)?t(e):r}function Sp(e,t,r,a){var n=kEe(e,function(s){return Gr(s,t)});if(r==="number"){var i=n.filter(function(s){return Ue(s)||parseFloat(s)});return i.length?[Xy(i),Wy(i)]:[1/0,-1/0]}var o=a?n.filter(function(s){return!yt(s)}):n;return o.map(function(s){return Wr(s)||s instanceof Date?s:""})}var RAe=function(t){var r,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,s=(r=a?.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(i&&i.axisType==="angleAxis"&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var c=i.range,u=0;u<s;u++){var h=u>0?n[u-1].coordinate:n[s-1].coordinate,f=n[u].coordinate,m=u>=s-1?n[0].coordinate:n[u+1].coordinate,x=void 0;if(ja(f-h)!==ja(m-f)){var v=[];if(ja(m-f)===ja(c[1]-c[0])){x=m;var y=f+c[1]-c[0];v[0]=Math.min(y,(y+h)/2),v[1]=Math.max(y,(y+h)/2)}else{x=h;var b=m+c[1]-c[0];v[0]=Math.min(f,(b+f)/2),v[1]=Math.max(f,(b+f)/2)}var S=[Math.min(f,(x+f)/2),Math.max(f,(x+f)/2)];if(t>S[0]&&t<=S[1]||t>=v[0]&&t<=v[1]){o=n[u].index;break}}else{var A=Math.min(h,m),E=Math.max(h,m);if(t>(A+f)/2&&t<=(E+f)/2){o=n[u].index;break}}}else for(var j=0;j<s;j++)if(j===0&&t<=(a[j].coordinate+a[j+1].coordinate)/2||j>0&&j<s-1&&t>(a[j].coordinate+a[j-1].coordinate)/2&&t<=(a[j].coordinate+a[j+1].coordinate)/2||j===s-1&&t>(a[j].coordinate+a[j-1].coordinate)/2){o=a[j].index;break}return o},$T=function(t){var r,a=t,n=a.type.displayName,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Tr(Tr({},t.type.defaultProps),t.props):t.props,o=i.stroke,s=i.fill,c;switch(n){case"Line":c=o;break;case"Area":case"Radar":c=o&&o!=="none"?o:s;break;default:c=s;break}return c},OAe=function(t){var r=t.barSize,a=t.totalSize,n=t.stackGroups,i=n===void 0?{}:n;if(!i)return{};for(var o={},s=Object.keys(i),c=0,u=s.length;c<u;c++)for(var h=i[s[c]].stackGroups,f=Object.keys(h),m=0,x=f.length;m<x;m++){var v=h[f[m]],y=v.items,b=v.cateAxisId,S=y.filter(function(N){return yo(N.type).indexOf("Bar")>=0});if(S&&S.length){var A=S[0].type.defaultProps,E=A!==void 0?Tr(Tr({},A),S[0].props):S[0].props,j=E.barSize,P=E[b];o[P]||(o[P]=[]);var C=yt(j)?r:j;o[P].push({item:S[0],stackList:S.slice(1),barSize:yt(C)?void 0:Na(C,a,0)})}}return o},MAe=function(t){var r=t.barGap,a=t.barCategoryGap,n=t.bandSize,i=t.sizeList,o=i===void 0?[]:i,s=t.maxBarSize,c=o.length;if(c<1)return null;var u=Na(r,n,0,!0),h,f=[];if(o[0].barSize===+o[0].barSize){var m=!1,x=n/c,v=o.reduce(function(j,P){return j+P.barSize||0},0);v+=(c-1)*u,v>=n&&(v-=(c-1)*u,u=0),v>=n&&x>0&&(m=!0,x*=.9,v=c*x);var y=(n-v)/2>>0,b={offset:y-u,size:0};h=o.reduce(function(j,P){var C={item:P.item,position:{offset:b.offset+b.size+u,size:m?x:P.barSize}},N=[].concat(f9(j),[C]);return b=N[N.length-1].position,P.stackList&&P.stackList.length&&P.stackList.forEach(function(O){N.push({item:O,position:b})}),N},f)}else{var S=Na(a,n,0,!0);n-2*S-(c-1)*u<=0&&(u=0);var A=(n-2*S-(c-1)*u)/c;A>1&&(A>>=0);var E=s===+s?Math.min(A,s):A;h=o.reduce(function(j,P,C){var N=[].concat(f9(j),[{item:P.item,position:{offset:S+(A+u)*C+(A-E)/2,size:E}}]);return P.stackList&&P.stackList.length&&P.stackList.forEach(function(O){N.push({item:O,position:N[N.length-1].position})}),N},f)}return h},IAe=function(t,r,a,n){var i=a.children,o=a.width,s=a.margin,c=o-(s.left||0)-(s.right||0),u=LH({children:i,legendWidth:c});if(u){var h=n||{},f=h.width,m=h.height,x=u.align,v=u.verticalAlign,y=u.layout;if((y==="vertical"||y==="horizontal"&&v==="middle")&&x!=="center"&&Ue(t[x]))return Tr(Tr({},t),{},ju({},x,t[x]+(f||0)));if((y==="horizontal"||y==="vertical"&&x==="center")&&v!=="middle"&&Ue(t[v]))return Tr(Tr({},t),{},ju({},v,t[v]+(m||0)))}return t},BAe=function(t,r,a){return yt(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||a==="x"?r==="xAxis":a==="y"?r==="yAxis":!0},zH=function(t,r,a,n,i){var o=r.props.children,s=gn(o,rm).filter(function(u){return BAe(n,i,u.props.direction)});if(s&&s.length){var c=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,h){var f=Gr(h,a);if(yt(f))return u;var m=Array.isArray(f)?[Xy(f),Wy(f)]:[f,f],x=c.reduce(function(v,y){var b=Gr(h,y,0),S=m[0]-Math.abs(Array.isArray(b)?b[0]:b),A=m[1]+Math.abs(Array.isArray(b)?b[1]:b);return[Math.min(S,v[0]),Math.max(A,v[1])]},[1/0,-1/0]);return[Math.min(x[0],u[0]),Math.max(x[1],u[1])]},[1/0,-1/0])}return null},LAe=function(t,r,a,n,i){var o=r.map(function(s){return zH(t,s,a,i,n)}).filter(function(s){return!yt(s)});return o&&o.length?o.reduce(function(s,c){return[Math.min(s[0],c[0]),Math.max(s[1],c[1])]},[1/0,-1/0]):null},FH=function(t,r,a,n,i){var o=r.map(function(c){var u=c.props.dataKey;return a==="number"&&u&&zH(t,c,u,n)||Sp(t,u,a,i)});if(a==="number")return o.reduce(function(c,u){return[Math.min(c[0],u[0]),Math.max(c[1],u[1])]},[1/0,-1/0]);var s={};return o.reduce(function(c,u){for(var h=0,f=u.length;h<f;h++)s[u[h]]||(s[u[h]]=!0,c.push(u[h]));return c},[])},$H=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},qH=function(t,r,a,n){if(n)return t.map(function(c){return c.coordinate});var i,o,s=t.map(function(c){return c.coordinate===r&&(i=!0),c.coordinate===a&&(o=!0),c.coordinate});return i||s.push(r),o||s.push(a),s},vo=function(t,r,a){if(!t)return null;var n=t.scale,i=t.duplicateDomain,o=t.type,s=t.range,c=t.realScaleType==="scaleBand"?n.bandwidth()/2:2,u=(r||a)&&o==="category"&&n.bandwidth?n.bandwidth()/c:0;if(u=t.axisType==="angleAxis"&&s?.length>=2?ja(s[0]-s[1])*2*u:u,r&&(t.ticks||t.niceTicks)){var h=(t.ticks||t.niceTicks).map(function(f){var m=i?i.indexOf(f):f;return{coordinate:n(m)+u,value:f,offset:u}});return h.filter(function(f){return!Wh(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,m){return{coordinate:n(f)+u,value:f,index:m,offset:u}}):n.ticks&&!a?n.ticks(t.tickCount).map(function(f){return{coordinate:n(f)+u,value:f,offset:u}}):n.domain().map(function(f,m){return{coordinate:n(f)+u,value:i?i[f]:f,index:m,offset:u}})},EA=new WeakMap,tx=function(t,r){if(typeof r!="function")return t;EA.has(t)||EA.set(t,new WeakMap);var a=EA.get(t);if(a.has(r))return a.get(r);var n=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return a.set(r,n),n},VH=function(t,r,a){var n=t.scale,i=t.type,o=t.layout,s=t.axisType;if(n==="auto")return o==="radial"&&s==="radiusAxis"?{scale:Zp(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:pv(),realScaleType:"linear"}:i==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!a)?{scale:wp(),realScaleType:"point"}:i==="category"?{scale:Zp(),realScaleType:"band"}:{scale:pv(),realScaleType:"linear"};if(Vl(n)){var c="scale".concat(Oy(n));return{scale:(J8[c]||wp)(),realScaleType:J8[c]?c:"point"}}return gt(n)?{scale:n}:{scale:wp(),realScaleType:"point"}},h9=1e-4,UH=function(t){var r=t.domain();if(!(!r||r.length<=2)){var a=r.length,n=t.range(),i=Math.min(n[0],n[1])-h9,o=Math.max(n[0],n[1])+h9,s=t(r[0]),c=t(r[a-1]);(s<i||s>o||c<i||c>o)&&t.domain([r[0],r[a-1]])}},zAe=function(t,r){if(!t)return null;for(var a=0,n=t.length;a<n;a++)if(t[a].item===r)return t[a].position;return null},FAe=function(t,r){if(!r||r.length!==2||!Ue(r[0])||!Ue(r[1]))return t;var a=Math.min(r[0],r[1]),n=Math.max(r[0],r[1]),i=[t[0],t[1]];return(!Ue(t[0])||t[0]<a)&&(i[0]=a),(!Ue(t[1])||t[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<a&&(i[1]=a),i},$Ae=function(t){var r=t.length;if(!(r<=0))for(var a=0,n=t[0].length;a<n;++a)for(var i=0,o=0,s=0;s<r;++s){var c=Wh(t[s][a][1])?t[s][a][0]:t[s][a][1];c>=0?(t[s][a][0]=i,t[s][a][1]=i+c,i=t[s][a][1]):(t[s][a][0]=o,t[s][a][1]=o+c,o=t[s][a][1])}},qAe=function(t){var r=t.length;if(!(r<=0))for(var a=0,n=t[0].length;a<n;++a)for(var i=0,o=0;o<r;++o){var s=Wh(t[o][a][1])?t[o][a][0]:t[o][a][1];s>=0?(t[o][a][0]=i,t[o][a][1]=i+s,i=t[o][a][1]):(t[o][a][0]=0,t[o][a][1]=0)}},VAe={sign:$Ae,expand:kbe,none:Uu,silhouette:Dbe,wiggle:_be,positive:qAe},UAe=function(t,r,a){var n=r.map(function(s){return s.props.dataKey}),i=VAe[a],o=Tbe().keys(n).value(function(s,c){return+Gr(s,c,0)}).order(lP).offset(i);return o(t)},HAe=function(t,r,a,n,i,o){if(!t)return null;var s=o?r.reverse():r,c={},u=s.reduce(function(f,m){var x,v=(x=m.type)!==null&&x!==void 0&&x.defaultProps?Tr(Tr({},m.type.defaultProps),m.props):m.props,y=v.stackId,b=v.hide;if(b)return f;var S=v[a],A=f[S]||{hasStack:!1,stackGroups:{}};if(Wr(y)){var E=A.stackGroups[y]||{numericAxisId:a,cateAxisId:n,items:[]};E.items.push(m),A.hasStack=!0,A.stackGroups[y]=E}else A.stackGroups[Od("_stackId_")]={numericAxisId:a,cateAxisId:n,items:[m]};return Tr(Tr({},f),{},ju({},S,A))},c),h={};return Object.keys(u).reduce(function(f,m){var x=u[m];if(x.hasStack){var v={};x.stackGroups=Object.keys(x.stackGroups).reduce(function(y,b){var S=x.stackGroups[b];return Tr(Tr({},y),{},ju({},b,{numericAxisId:a,cateAxisId:n,items:S.items,stackedData:UAe(t,S.items,i)}))},v)}return Tr(Tr({},f),{},ju({},m,x))},h)},HH=function(t,r){var a=r.realScaleType,n=r.type,i=r.tickCount,o=r.originalDomain,s=r.allowDecimals,c=a||r.scale;if(c!=="auto"&&c!=="linear")return null;if(i&&n==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var h=iAe(u,i,s);return t.domain([Xy(h),Wy(h)]),{niceTicks:h}}if(i&&n==="number"){var f=t.domain(),m=oAe(f,i,s);return{niceTicks:m}}return null};function m9(e){var t=e.axis,r=e.ticks,a=e.bandSize,n=e.entry,i=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!yt(n[t.dataKey])){var s=Xx(r,"value",n[t.dataKey]);if(s)return s.coordinate+a/2}return r[i]?r[i].coordinate+a/2:null}var c=Gr(n,yt(o)?t.dataKey:o);return yt(c)?null:t.scale(c)}var g9=function(t){var r=t.axis,a=t.ticks,n=t.offset,i=t.bandSize,o=t.entry,s=t.index;if(r.type==="category")return a[s]?a[s].coordinate+n:null;var c=Gr(o,r.dataKey,r.domain[s]);return yt(c)?null:r.scale(c)-i/2+n},GAe=function(t){var r=t.numericAxis,a=r.scale.domain();if(r.type==="number"){var n=Math.min(a[0],a[1]),i=Math.max(a[0],a[1]);return n<=0&&i>=0?0:i<0?i:n}return a[0]},KAe=function(t,r){var a,n=(a=t.type)!==null&&a!==void 0&&a.defaultProps?Tr(Tr({},t.type.defaultProps),t.props):t.props,i=n.stackId;if(Wr(i)){var o=r[i];if(o){var s=o.items.indexOf(t);return s>=0?o.stackedData[s]:null}}return null},WAe=function(t){return t.reduce(function(r,a){return[Xy(a.concat([r[0]]).filter(Ue)),Wy(a.concat([r[1]]).filter(Ue))]},[1/0,-1/0])},GH=function(t,r,a){return Object.keys(t).reduce(function(n,i){var o=t[i],s=o.stackedData,c=s.reduce(function(u,h){var f=WAe(h.slice(r,a+1));return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]);return[Math.min(c[0],n[0]),Math.max(c[1],n[1])]},[1/0,-1/0]).map(function(n){return n===1/0||n===-1/0?0:n})},x9=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,v9=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,RP=function(t,r,a){if(gt(t))return t(r,a);if(!Array.isArray(t))return r;var n=[];if(Ue(t[0]))n[0]=a?t[0]:Math.min(t[0],r[0]);else if(x9.test(t[0])){var i=+x9.exec(t[0])[1];n[0]=r[0]-i}else gt(t[0])?n[0]=t[0](r[0]):n[0]=r[0];if(Ue(t[1]))n[1]=a?t[1]:Math.max(t[1],r[1]);else if(v9.test(t[1])){var o=+v9.exec(t[1])[1];n[1]=r[1]+o}else gt(t[1])?n[1]=t[1](r[1]):n[1]=r[1];return n},bv=function(t,r,a){if(t&&t.scale&&t.scale.bandwidth){var n=t.scale.bandwidth();if(!a||n>0)return n}if(t&&r&&r.length>=2){for(var i=mT(r,function(f){return f.coordinate}),o=1/0,s=1,c=i.length;s<c;s++){var u=i[s],h=i[s-1];o=Math.min((u.coordinate||0)-(h.coordinate||0),o)}return o===1/0?0:o}return a?void 0:0},y9=function(t,r,a){return!t||!t.length||tm(t,mn(a,"type.defaultProps.domain"))?r:t},KH=function(t,r){var a=t.type.defaultProps?Tr(Tr({},t.type.defaultProps),t.props):t.props,n=a.dataKey,i=a.name,o=a.unit,s=a.formatter,c=a.tooltipType,u=a.chartType,h=a.hide;return Tr(Tr({},lt(t,!1)),{},{dataKey:n,unit:o,formatter:s,name:i||n,color:$T(t),value:Gr(r,n),type:c,payload:r,chartType:u,hide:h})};function oh(e){"@babel/helpers - typeof";return oh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oh(e)}function b9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function po(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?b9(Object(r),!0).forEach(function(a){WH(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b9(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function WH(e,t,r){return t=XAe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XAe(e){var t=YAe(e,"string");return oh(t)=="symbol"?t:t+""}function YAe(e,t){if(oh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(oh(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZAe(e,t){return tCe(e)||eCe(e,t)||QAe(e,t)||JAe()}function JAe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1231In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QAe(e,t){if(e){if(typeof e=="string")return w9(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return w9(e,t)}}function w9(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function eCe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,n,i,o,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(c=(a=i.call(r)).done)&&(s.push(a.value),s.length!==t);c=!0);}catch(h){u=!0,n=h}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw n}}return s}}function tCe(e){if(Array.isArray(e))return e}var wv=Math.PI/180,rCe=function(t){return t*180/Math.PI},pr=function(t,r,a,n){return{x:t+Math.cos(-wv*n)*a,y:r+Math.sin(-wv*n)*a}},XH=function(t,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(a.left||0)-(a.right||0)),Math.abs(r-(a.top||0)-(a.bottom||0)))/2},aCe=function(t,r,a,n,i){var o=t.width,s=t.height,c=t.startAngle,u=t.endAngle,h=Na(t.cx,o,o/2),f=Na(t.cy,s,s/2),m=XH(o,s,a),x=Na(t.innerRadius,m,0),v=Na(t.outerRadius,m,m*.8),y=Object.keys(r);return y.reduce(function(b,S){var A=r[S],E=A.domain,j=A.reversed,P;if(yt(A.range))n==="angleAxis"?P=[c,u]:n==="radiusAxis"&&(P=[x,v]),j&&(P=[P[1],P[0]]);else{P=A.range;var C=P,N=ZAe(C,2);c=N[0],u=N[1]}var O=VH(A,i),k=O.realScaleType,B=O.scale;B.domain(E).range(P),UH(B);var $=HH(B,po(po({},A),{},{realScaleType:k})),_=po(po(po({},A),$),{},{range:P,radius:v,realScaleType:k,scale:B,cx:h,cy:f,innerRadius:x,outerRadius:v,startAngle:c,endAngle:u});return po(po({},b),{},WH({},S,_))},{})},nCe=function(t,r){var a=t.x,n=t.y,i=r.x,o=r.y;return Math.sqrt(Math.pow(a-i,2)+Math.pow(n-o,2))},iCe=function(t,r){var a=t.x,n=t.y,i=r.cx,o=r.cy,s=nCe({x:a,y:n},{x:i,y:o});if(s<=0)return{radius:s};var c=(a-i)/s,u=Math.acos(c);return n>o&&(u=2*Math.PI-u),{radius:s,angle:rCe(u),angleInRadian:u}},oCe=function(t){var r=t.startAngle,a=t.endAngle,n=Math.floor(r/360),i=Math.floor(a/360),o=Math.min(n,i);return{startAngle:r-o*360,endAngle:a-o*360}},sCe=function(t,r){var a=r.startAngle,n=r.endAngle,i=Math.floor(a/360),o=Math.floor(n/360),s=Math.min(i,o);return t+s*360},S9=function(t,r){var a=t.x,n=t.y,i=iCe({x:a,y:n},r),o=i.radius,s=i.angle,c=r.innerRadius,u=r.outerRadius;if(o<c||o>u)return!1;if(o===0)return!0;var h=oCe(r),f=h.startAngle,m=h.endAngle,x=s,v;if(f<=m){for(;x>m;)x-=360;for(;x<f;)x+=360;v=x>=f&&x<=m}else{for(;x>f;)x-=360;for(;x<m;)x+=360;v=x>=m&&x<=f}return v?po(po({},r),{},{radius:o,angle:sCe(x,r)}):null},YH=function(t){return!L.isValidElement(t)&&!gt(t)&&typeof t!="boolean"?t.className:""};function sh(e){"@babel/helpers - typeof";return sh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sh(e)}var lCe=["offset"];function cCe(e){return pCe(e)||fCe(e)||dCe(e)||uCe()}function uCe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1232In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dCe(e,t){if(e){if(typeof e=="string")return OP(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return OP(e,t)}}function fCe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pCe(e){if(Array.isArray(e))return OP(e)}function OP(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function hCe(e,t){if(e==null)return{};var r=mCe(e,t),a,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)a=i[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function mCe(e,t){if(e==null)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}function E9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function Ur(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?E9(Object(r),!0).forEach(function(a){gCe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E9(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function gCe(e,t,r){return t=xCe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xCe(e){var t=vCe(e,"string");return sh(t)=="symbol"?t:t+""}function vCe(e,t){if(sh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(sh(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lh(){return lh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},lh.apply(this,arguments)}var yCe=function(t){var r=t.value,a=t.formatter,n=yt(t.children)?r:t.children;return gt(a)?a(n):n},bCe=function(t,r){var a=ja(r-t),n=Math.min(Math.abs(r-t),360);return a*n},wCe=function(t,r,a){var n=t.position,i=t.viewBox,o=t.offset,s=t.className,c=i,u=c.cx,h=c.cy,f=c.innerRadius,m=c.outerRadius,x=c.startAngle,v=c.endAngle,y=c.clockWise,b=(f+m)/2,S=bCe(x,v),A=S>=0?1:-1,E,j;n==="insideStart"?(E=x+A*o,j=y):n==="insideEnd"?(E=v-A*o,j=!y):n==="end"&&(E=v+A*o,j=y),j=S<=0?j:!j;var P=pr(u,h,b,E),C=pr(u,h,b,E+(j?1:-1)*359),N="M".concat(P.x,",").concat(P.y,` 1233 A`).concat(b,",").concat(b,",0,1,").concat(j?0:1,`, 1234 `).concat(C.x,",").concat(C.y),O=yt(t.id)?Od("recharts-radial-line-"):t.id;return de.createElement("text",lh({},a,{dominantBaseline:"central",className:wt("recharts-radial-bar-label",s)}),de.createElement("defs",null,de.createElement("path",{id:O,d:N})),de.createElement("textPath",{xlinkHref:"#".concat(O)},r))},SCe=function(t){var r=t.viewBox,a=t.offset,n=t.position,i=r,o=i.cx,s=i.cy,c=i.innerRadius,u=i.outerRadius,h=i.startAngle,f=i.endAngle,m=(h+f)/2;if(n==="outside"){var x=pr(o,s,u+a,m),v=x.x,y=x.y;return{x:v,y,textAnchor:v>=o?"start":"end",verticalAnchor:"middle"}}if(n==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(n==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(n==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var b=(c+u)/2,S=pr(o,s,b,m),A=S.x,E=S.y;return{x:A,y:E,textAnchor:"middle",verticalAnchor:"middle"}},ECe=function(t){var r=t.viewBox,a=t.parentViewBox,n=t.offset,i=t.position,o=r,s=o.x,c=o.y,u=o.width,h=o.height,f=h>=0?1:-1,m=f*n,x=f>0?"end":"start",v=f>0?"start":"end",y=u>=0?1:-1,b=y*n,S=y>0?"end":"start",A=y>0?"start":"end";if(i==="top"){var E={x:s+u/2,y:c-f*n,textAnchor:"middle",verticalAnchor:x};return Ur(Ur({},E),a?{height:Math.max(c-a.y,0),width:u}:{})}if(i==="bottom"){var j={x:s+u/2,y:c+h+m,textAnchor:"middle",verticalAnchor:v};return Ur(Ur({},j),a?{height:Math.max(a.y+a.height-(c+h),0),width:u}:{})}if(i==="left"){var P={x:s-b,y:c+h/2,textAnchor:S,verticalAnchor:"middle"};return Ur(Ur({},P),a?{width:Math.max(P.x-a.x,0),height:h}:{})}if(i==="right"){var C={x:s+u+b,y:c+h/2,textAnchor:A,verticalAnchor:"middle"};return Ur(Ur({},C),a?{width:Math.max(a.x+a.width-C.x,0),height:h}:{})}var N=a?{width:u,height:h}:{};return i==="insideLeft"?Ur({x:s+b,y:c+h/2,textAnchor:A,verticalAnchor:"middle"},N):i==="insideRight"?Ur({x:s+u-b,y:c+h/2,textAnchor:S,verticalAnchor:"middle"},N):i==="insideTop"?Ur({x:s+u/2,y:c+m,textAnchor:"middle",verticalAnchor:v},N):i==="insideBottom"?Ur({x:s+u/2,y:c+h-m,textAnchor:"middle",verticalAnchor:x},N):i==="insideTopLeft"?Ur({x:s+b,y:c+m,textAnchor:A,verticalAnchor:v},N):i==="insideTopRight"?Ur({x:s+u-b,y:c+m,textAnchor:S,verticalAnchor:v},N):i==="insideBottomLeft"?Ur({x:s+b,y:c+h-m,textAnchor:A,verticalAnchor:x},N):i==="insideBottomRight"?Ur({x:s+u-b,y:c+h-m,textAnchor:S,verticalAnchor:x},N):Rd(i)&&(Ue(i.x)||wl(i.x))&&(Ue(i.y)||wl(i.y))?Ur({x:s+Na(i.x,u),y:c+Na(i.y,h),textAnchor:"end",verticalAnchor:"end"},N):Ur({x:s+u/2,y:c+h/2,textAnchor:"middle",verticalAnchor:"middle"},N)},ACe=function(t){return"cx"in t&&Ue(t.cx)};function ea(e){var t=e.offset,r=t===void 0?5:t,a=hCe(e,lCe),n=Ur({offset:r},a),i=n.viewBox,o=n.position,s=n.value,c=n.children,u=n.content,h=n.className,f=h===void 0?"":h,m=n.textBreakAll;if(!i||yt(s)&&yt(c)&&!L.isValidElement(u)&&!gt(u))return null;if(L.isValidElement(u))return L.cloneElement(u,n);var x;if(gt(u)){if(x=L.createElement(u,n),L.isValidElement(x))return x}else x=yCe(n);var v=ACe(i),y=lt(n,!0);if(v&&(o==="insideStart"||o==="insideEnd"||o==="end"))return wCe(n,x,y);var b=v?SCe(n):ECe(n);return de.createElement(Hl,lh({className:wt("recharts-label",f)},y,b,{breakAll:m}),x)}ea.displayName="Label";var ZH=function(t){var r=t.cx,a=t.cy,n=t.angle,i=t.startAngle,o=t.endAngle,s=t.r,c=t.radius,u=t.innerRadius,h=t.outerRadius,f=t.x,m=t.y,x=t.top,v=t.left,y=t.width,b=t.height,S=t.clockWise,A=t.labelViewBox;if(A)return A;if(Ue(y)&&Ue(b)){if(Ue(f)&&Ue(m))return{x:f,y:m,width:y,height:b};if(Ue(x)&&Ue(v))return{x,y:v,width:y,height:b}}return Ue(f)&&Ue(m)?{x:f,y:m,width:0,height:0}:Ue(r)&&Ue(a)?{cx:r,cy:a,startAngle:i||n||0,endAngle:o||n||0,innerRadius:u||0,outerRadius:h||c||s||0,clockWise:S}:t.viewBox?t.viewBox:{}},CCe=function(t,r){return t?t===!0?de.createElement(ea,{key:"label-implicit",viewBox:r}):Wr(t)?de.createElement(ea,{key:"label-implicit",viewBox:r,value:t}):L.isValidElement(t)?t.type===ea?L.cloneElement(t,{key:"label-implicit",viewBox:r}):de.createElement(ea,{key:"label-implicit",content:t,viewBox:r}):gt(t)?de.createElement(ea,{key:"label-implicit",content:t,viewBox:r}):Rd(t)?de.createElement(ea,lh({viewBox:r},t,{key:"label-implicit"})):null:null},PCe=function(t,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&a&&!t.label)return null;var n=t.children,i=ZH(t),o=gn(n,ea).map(function(c,u){return L.cloneElement(c,{viewBox:r||i,key:"label-".concat(u)})});if(!a)return o;var s=CCe(t.label,r||i);return[s].concat(cCe(o))};ea.parseViewBox=ZH;ea.renderCallByParent=PCe;var AA,A9;function jCe(){if(A9)return AA;A9=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return AA=e,AA}var NCe=jCe();const TCe=qt(NCe);function ch(e){"@babel/helpers - typeof";return ch=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ch(e)}var kCe=["valueAccessor"],DCe=["data","dataKey","clockWise","id","textBreakAll"];function _Ce(e){return ICe(e)||MCe(e)||OCe(e)||RCe()}function RCe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1235In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OCe(e,t){if(e){if(typeof e=="string")return MP(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return MP(e,t)}}function MCe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ICe(e){if(Array.isArray(e))return MP(e)}function MP(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function Sv(){return Sv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Sv.apply(this,arguments)}function C9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function P9(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?C9(Object(r),!0).forEach(function(a){BCe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C9(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function BCe(e,t,r){return t=LCe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LCe(e){var t=zCe(e,"string");return ch(t)=="symbol"?t:t+""}function zCe(e,t){if(ch(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(ch(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function j9(e,t){if(e==null)return{};var r=FCe(e,t),a,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)a=i[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function FCe(e,t){if(e==null)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}var $Ce=function(t){return Array.isArray(t.value)?TCe(t.value):t.value};function So(e){var t=e.valueAccessor,r=t===void 0?$Ce:t,a=j9(e,kCe),n=a.data,i=a.dataKey,o=a.clockWise,s=a.id,c=a.textBreakAll,u=j9(a,DCe);return!n||!n.length?null:de.createElement(Ht,{className:"recharts-label-list"},n.map(function(h,f){var m=yt(i)?r(h,f):Gr(h&&h.payload,i),x=yt(s)?{}:{id:"".concat(s,"-").concat(f)};return de.createElement(ea,Sv({},lt(h,!0),u,x,{parentViewBox:h.parentViewBox,value:m,textBreakAll:c,viewBox:ea.parseViewBox(yt(o)?h:P9(P9({},h),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}So.displayName="LabelList";function qCe(e,t){return e?e===!0?de.createElement(So,{key:"labelList-implicit",data:t}):de.isValidElement(e)||gt(e)?de.createElement(So,{key:"labelList-implicit",data:t,content:e}):Rd(e)?de.createElement(So,Sv({data:t},e,{key:"labelList-implicit"})):null:null}function VCe(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var a=e.children,n=gn(a,So).map(function(o,s){return L.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return n;var i=qCe(e.label,t);return[i].concat(_Ce(n))}So.renderCallByParent=VCe;function uh(e){"@babel/helpers - typeof";return uh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uh(e)}function IP(){return IP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},IP.apply(this,arguments)}function N9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function T9(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?N9(Object(r),!0).forEach(function(a){UCe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N9(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function UCe(e,t,r){return t=HCe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HCe(e){var t=GCe(e,"string");return uh(t)=="symbol"?t:t+""}function GCe(e,t){if(uh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(uh(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var KCe=function(t,r){var a=ja(r-t),n=Math.min(Math.abs(r-t),359.999);return a*n},rx=function(t){var r=t.cx,a=t.cy,n=t.radius,i=t.angle,o=t.sign,s=t.isExternal,c=t.cornerRadius,u=t.cornerIsExternal,h=c*(s?1:-1)+n,f=Math.asin(c/h)/wv,m=u?i:i+o*f,x=pr(r,a,h,m),v=pr(r,a,n,m),y=u?i-o*f:i,b=pr(r,a,h*Math.cos(f*wv),y);return{center:x,circleTangency:v,lineTangency:b,theta:f}},JH=function(t){var r=t.cx,a=t.cy,n=t.innerRadius,i=t.outerRadius,o=t.startAngle,s=t.endAngle,c=KCe(o,s),u=o+c,h=pr(r,a,i,o),f=pr(r,a,i,u),m="M ".concat(h.x,",").concat(h.y,` 1236 A `).concat(i,",").concat(i,`,0, 1237 `).concat(+(Math.abs(c)>180),",").concat(+(o>u),`, 1238 `).concat(f.x,",").concat(f.y,` 1239 `);if(n>0){var x=pr(r,a,n,o),v=pr(r,a,n,u);m+="L ".concat(v.x,",").concat(v.y,` 1240 A `).concat(n,",").concat(n,`,0, 1241 `).concat(+(Math.abs(c)>180),",").concat(+(o<=u),`, 1242 `).concat(x.x,",").concat(x.y," Z")}else m+="L ".concat(r,",").concat(a," Z");return m},WCe=function(t){var r=t.cx,a=t.cy,n=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,h=t.endAngle,f=ja(h-u),m=rx({cx:r,cy:a,radius:i,angle:u,sign:f,cornerRadius:o,cornerIsExternal:c}),x=m.circleTangency,v=m.lineTangency,y=m.theta,b=rx({cx:r,cy:a,radius:i,angle:h,sign:-f,cornerRadius:o,cornerIsExternal:c}),S=b.circleTangency,A=b.lineTangency,E=b.theta,j=c?Math.abs(u-h):Math.abs(u-h)-y-E;if(j<0)return s?"M ".concat(v.x,",").concat(v.y,` 1243 a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0 1244 a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0 1245 `):JH({cx:r,cy:a,innerRadius:n,outerRadius:i,startAngle:u,endAngle:h});var P="M ".concat(v.x,",").concat(v.y,` 1246 A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(x.x,",").concat(x.y,` 1247 A`).concat(i,",").concat(i,",0,").concat(+(j>180),",").concat(+(f<0),",").concat(S.x,",").concat(S.y,` 1248 A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(A.x,",").concat(A.y,` 1249 `);if(n>0){var C=rx({cx:r,cy:a,radius:n,angle:u,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),N=C.circleTangency,O=C.lineTangency,k=C.theta,B=rx({cx:r,cy:a,radius:n,angle:h,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),$=B.circleTangency,_=B.lineTangency,W=B.theta,D=c?Math.abs(u-h):Math.abs(u-h)-k-W;if(D<0&&o===0)return"".concat(P,"L").concat(r,",").concat(a,"Z");P+="L".concat(_.x,",").concat(_.y,` 1250 A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat($.x,",").concat($.y,` 1251 A`).concat(n,",").concat(n,",0,").concat(+(D>180),",").concat(+(f>0),",").concat(N.x,",").concat(N.y,` 1252 A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(O.x,",").concat(O.y,"Z")}else P+="L".concat(r,",").concat(a,"Z");return P},XCe={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},QH=function(t){var r=T9(T9({},XCe),t),a=r.cx,n=r.cy,i=r.innerRadius,o=r.outerRadius,s=r.cornerRadius,c=r.forceCornerRadius,u=r.cornerIsExternal,h=r.startAngle,f=r.endAngle,m=r.className;if(o<i||h===f)return null;var x=wt("recharts-sector",m),v=o-i,y=Na(s,v,0,!0),b;return y>0&&Math.abs(h-f)<360?b=WCe({cx:a,cy:n,innerRadius:i,outerRadius:o,cornerRadius:Math.min(y,v/2),forceCornerRadius:c,cornerIsExternal:u,startAngle:h,endAngle:f}):b=JH({cx:a,cy:n,innerRadius:i,outerRadius:o,startAngle:h,endAngle:f}),de.createElement("path",IP({},lt(r,!0),{className:x,d:b,role:"img"}))};function dh(e){"@babel/helpers - typeof";return dh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dh(e)}function BP(){return BP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},BP.apply(this,arguments)}function k9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function D9(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?k9(Object(r),!0).forEach(function(a){YCe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k9(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function YCe(e,t,r){return t=ZCe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZCe(e){var t=JCe(e,"string");return dh(t)=="symbol"?t:t+""}function JCe(e,t){if(dh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(dh(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _9={curveBasisClosed:vbe,curveBasisOpen:ybe,curveBasis:xbe,curveBumpX:abe,curveBumpY:nbe,curveLinearClosed:bbe,curveLinear:Iy,curveMonotoneX:wbe,curveMonotoneY:Sbe,curveNatural:Ebe,curveStep:Abe,curveStepAfter:Pbe,curveStepBefore:Cbe},ax=function(t){return t.x===+t.x&&t.y===+t.y},Zf=function(t){return t.x},Jf=function(t){return t.y},QCe=function(t,r){if(gt(t))return t;var a="curve".concat(Oy(t));return(a==="curveMonotone"||a==="curveBump")&&r?_9["".concat(a).concat(r==="vertical"?"Y":"X")]:_9[a]||Iy},ePe=function(t){var r=t.type,a=r===void 0?"linear":r,n=t.points,i=n===void 0?[]:n,o=t.baseLine,s=t.layout,c=t.connectNulls,u=c===void 0?!1:c,h=QCe(a,s),f=u?i.filter(function(y){return ax(y)}):i,m;if(Array.isArray(o)){var x=u?o.filter(function(y){return ax(y)}):o,v=f.map(function(y,b){return D9(D9({},y),{},{base:x[b]})});return s==="vertical"?m=Wg().y(Jf).x1(Zf).x0(function(y){return y.base.x}):m=Wg().x(Zf).y1(Jf).y0(function(y){return y.base.y}),m.defined(ax).curve(h),m(v)}return s==="vertical"&&Ue(o)?m=Wg().y(Jf).x1(Zf).x0(o):Ue(o)?m=Wg().x(Zf).y1(Jf).y0(o):m=ZV().x(Zf).y(Jf),m.defined(ax).curve(h),m(f)},Ev=function(t){var r=t.className,a=t.points,n=t.path,i=t.pathRef;if((!a||!a.length)&&!n)return null;var o=a&&a.length?ePe(t):n;return L.createElement("path",BP({},lt(t,!1),Yx(t),{className:wt("recharts-curve",r),d:o,ref:i}))},CA={exports:{}},PA,R9;function tPe(){if(R9)return PA;R9=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return PA=e,PA}var jA,O9;function rPe(){if(O9)return jA;O9=1;var e=tPe();function t(){}function r(){}return r.resetWarningCache=t,jA=function(){function a(o,s,c,u,h,f){if(f!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}a.isRequired=a;function n(){return a}var i={array:a,bigint:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:n,element:a,elementType:a,instanceOf:n,node:a,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},jA}var M9;function aPe(){return M9||(M9=1,CA.exports=rPe()()),CA.exports}var nPe=aPe();const Zt=qt(nPe);var iPe=Object.getOwnPropertyNames,oPe=Object.getOwnPropertySymbols,sPe=Object.prototype.hasOwnProperty;function I9(e,t){return function(a,n,i){return e(a,n,i)&&t(a,n,i)}}function nx(e){return function(r,a,n){if(!r||!a||typeof r!="object"||typeof a!="object")return e(r,a,n);var i=n.cache,o=i.get(r),s=i.get(a);if(o&&s)return o===a&&s===r;i.set(r,a),i.set(a,r);var c=e(r,a,n);return i.delete(r),i.delete(a),c}}function lPe(e){return e?.[Symbol.toStringTag]}function B9(e){return iPe(e).concat(oPe(e))}var cPe=Object.hasOwn||(function(e,t){return sPe.call(e,t)});function ic(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var uPe="__v",dPe="__o",fPe="_owner",L9=Object.getOwnPropertyDescriptor,z9=Object.keys;function pPe(e,t,r){var a=e.length;if(t.length!==a)return!1;for(;a-- >0;)if(!r.equals(e[a],t[a],a,a,e,t,r))return!1;return!0}function hPe(e,t){return ic(e.getTime(),t.getTime())}function mPe(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function gPe(e,t){return e===t}function F9(e,t,r){var a=e.size;if(a!==t.size)return!1;if(!a)return!0;for(var n=new Array(a),i=e.entries(),o,s,c=0;(o=i.next())&&!o.done;){for(var u=t.entries(),h=!1,f=0;(s=u.next())&&!s.done;){if(n[f]){f++;continue}var m=o.value,x=s.value;if(r.equals(m[0],x[0],c,f,e,t,r)&&r.equals(m[1],x[1],m[0],x[0],e,t,r)){h=n[f]=!0;break}f++}if(!h)return!1;c++}return!0}var xPe=ic;function vPe(e,t,r){var a=z9(e),n=a.length;if(z9(t).length!==n)return!1;for(;n-- >0;)if(!eG(e,t,r,a[n]))return!1;return!0}function Qf(e,t,r){var a=B9(e),n=a.length;if(B9(t).length!==n)return!1;for(var i,o,s;n-- >0;
1252)if(i=a[n],!eG(e,t,r,i)||(o=L9(e,i),s=L9(t,i),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function yPe(e,t){return ic(e.valueOf(),t.valueOf())}function bPe(e,t){return e.source===t.source&&e.flags===t.flags}function $9(e,t,r){var a=e.size;if(a!==t.size)return!1;if(!a)return!0;for(var n=new Array(a),i=e.values(),o,s;(o=i.next())&&!o.done;){for(var c=t.values(),u=!1,h=0;(s=c.next())&&!s.done;){if(!n[h]&&r.equals(o.value,s.value,o.value,s.value,e,t,r)){u=n[h]=!0;break}h++}if(!u)return!1}return!0}function wPe(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function SPe(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function eG(e,t,r,a){return(a===fPe||a===dPe||a===uPe)&&(e.$$typeof||t.$$typeof)?!0:cPe(t,a)&&r.equals(e[a],t[a],a,a,e,t,r)}var EPe="[object Arguments]",APe="[object Boolean]",CPe="[object Date]",PPe="[object Error]",jPe="[object Map]",NPe="[object Number]",TPe="[object Object]",kPe="[object RegExp]",DPe="[object Set]",_Pe="[object String]",RPe="[object URL]",OPe=Array.isArray,q9=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,V9=Object.assign,MPe=Object.prototype.toString.call.bind(Object.prototype.toString);function IPe(e){var t=e.areArraysEqual,r=e.areDatesEqual,a=e.areErrorsEqual,n=e.areFunctionsEqual,i=e.areMapsEqual,o=e.areNumbersEqual,s=e.areObjectsEqual,c=e.arePrimitiveWrappersEqual,u=e.areRegExpsEqual,h=e.areSetsEqual,f=e.areTypedArraysEqual,m=e.areUrlsEqual,x=e.unknownTagComparators;return function(y,b,S){if(y===b)return!0;if(y==null||b==null)return!1;var A=typeof y;if(A!==typeof b)return!1;if(A!=="object")return A==="number"?o(y,b,S):A==="function"?n(y,b,S):!1;var E=y.constructor;if(E!==b.constructor)return!1;if(E===Object)return s(y,b,S);if(OPe(y))return t(y,b,S);if(q9!=null&&q9(y))return f(y,b,S);if(E===Date)return r(y,b,S);if(E===RegExp)return u(y,b,S);if(E===Map)return i(y,b,S);if(E===Set)return h(y,b,S);var j=MPe(y);if(j===CPe)return r(y,b,S);if(j===kPe)return u(y,b,S);if(j===jPe)return i(y,b,S);if(j===DPe)return h(y,b,S);if(j===TPe)return typeof y.then!="function"&&typeof b.then!="function"&&s(y,b,S);if(j===RPe)return m(y,b,S);if(j===PPe)return a(y,b,S);if(j===EPe)return s(y,b,S);if(j===APe||j===NPe||j===_Pe)return c(y,b,S);if(x){var P=x[j];if(!P){var C=lPe(y);C&&(P=x[C])}if(P)return P(y,b,S)}return!1}}function BPe(e){var t=e.circular,r=e.createCustomConfig,a=e.strict,n={areArraysEqual:a?Qf:pPe,areDatesEqual:hPe,areErrorsEqual:mPe,areFunctionsEqual:gPe,areMapsEqual:a?I9(F9,Qf):F9,areNumbersEqual:xPe,areObjectsEqual:a?Qf:vPe,arePrimitiveWrappersEqual:yPe,areRegExpsEqual:bPe,areSetsEqual:a?I9($9,Qf):$9,areTypedArraysEqual:a?Qf:wPe,areUrlsEqual:SPe,unknownTagComparators:void 0};if(r&&(n=V9({},n,r(n))),t){var i=nx(n.areArraysEqual),o=nx(n.areMapsEqual),s=nx(n.areObjectsEqual),c=nx(n.areSetsEqual);n=V9({},n,{areArraysEqual:i,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:c})}return n}function LPe(e){return function(t,r,a,n,i,o,s){return e(t,r,s)}}function zPe(e){var t=e.circular,r=e.comparator,a=e.createState,n=e.equals,i=e.strict;if(a)return function(c,u){var h=a(),f=h.cache,m=f===void 0?t?new WeakMap:void 0:f,x=h.meta;return r(c,u,{cache:m,equals:n,meta:x,strict:i})};if(t)return function(c,u){return r(c,u,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};var o={cache:void 0,equals:n,meta:void 0,strict:i};return function(c,u){return r(c,u,o)}}var FPe=Bs();Bs({strict:!0});Bs({circular:!0});Bs({circular:!0,strict:!0});Bs({createInternalComparator:function(){return ic}});Bs({strict:!0,createInternalComparator:function(){return ic}});Bs({circular:!0,createInternalComparator:function(){return ic}});Bs({circular:!0,createInternalComparator:function(){return ic},strict:!0});function Bs(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,a=e.createInternalComparator,n=e.createState,i=e.strict,o=i===void 0?!1:i,s=BPe(e),c=IPe(s),u=a?a(c):LPe(c);return zPe({circular:r,comparator:c,createState:n,equals:u,strict:o})}function $Pe(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function U9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,a=function n(i){r<0&&(r=i),i-r>t?(e(i),r=-1):$Pe(n)};requestAnimationFrame(a)}function LP(e){"@babel/helpers - typeof";return LP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},LP(e)}function qPe(e){return GPe(e)||HPe(e)||UPe(e)||VPe()}
vendor: 60,557 bytes, lines 1252-1271
1252function VPe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1253In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UPe(e,t){if(e){if(typeof e=="string")return H9(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return H9(e,t)}}function H9(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function HPe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function GPe(e){if(Array.isArray(e))return e}function KPe(){var e={},t=function(){return null},r=!1,a=function n(i){if(!r){if(Array.isArray(i)){if(!i.length)return;var o=i,s=qPe(o),c=s[0],u=s.slice(1);if(typeof c=="number"){U9(n.bind(null,u),c);return}n(c),U9(n.bind(null,u));return}LP(i)==="object"&&(e=i,t(e)),typeof i=="function"&&i()}};return{stop:function(){r=!0},start:function(i){r=!1,a(i)},subscribe:function(i){return t=i,function(){t=function(){return null}}}}}function fh(e){"@babel/helpers - typeof";return fh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fh(e)}function G9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function K9(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?G9(Object(r),!0).forEach(function(a){tG(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G9(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function tG(e,t,r){return t=WPe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WPe(e){var t=XPe(e,"string");return fh(t)==="symbol"?t:String(t)}function XPe(e,t){if(fh(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(fh(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var YPe=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(a,n){return a.filter(function(i){return n.includes(i)})})},ZPe=function(t){return t},JPe=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Ep=function(t,r){return Object.keys(r).reduce(function(a,n){return K9(K9({},a),{},tG({},n,t(n,r[n])))},{})},W9=function(t,r,a){return t.map(function(n){return"".concat(JPe(n)," ").concat(r,"ms ").concat(a)}).join(",")};function QPe(e,t){return rje(e)||tje(e,t)||rG(e,t)||eje()}function eje(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1254In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tje(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,n,i,o,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(c=(a=i.call(r)).done)&&(s.push(a.value),s.length!==t);c=!0);}catch(h){u=!0,n=h}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw n}}return s}}function rje(e){if(Array.isArray(e))return e}function aje(e){return oje(e)||ije(e)||rG(e)||nje()}function nje(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1255In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rG(e,t){if(e){if(typeof e=="string")return zP(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zP(e,t)}}function ije(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oje(e){if(Array.isArray(e))return zP(e)}function zP(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}var Av=1e-4,aG=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},nG=function(t,r){return t.map(function(a,n){return a*Math.pow(r,n)}).reduce(function(a,n){return a+n})},X9=function(t,r){return function(a){var n=aG(t,r);return nG(n,a)}},sje=function(t,r){return function(a){var n=aG(t,r),i=[].concat(aje(n.map(function(o,s){return o*s}).slice(1)),[0]);return nG(i,a)}},Y9=function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];var n=r[0],i=r[1],o=r[2],s=r[3];if(r.length===1)switch(r[0]){case"linear":n=0,i=0,o=1,s=1;break;case"ease":n=.25,i=.1,o=.25,s=1;break;case"ease-in":n=.42,i=0,o=1,s=1;break;case"ease-out":n=.42,i=0,o=.58,s=1;break;case"ease-in-out":n=0,i=0,o=.58,s=1;break;default:{var c=r[0].split("(");if(c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4){var u=c[1].split(")")[0].split(",").map(function(b){return parseFloat(b)}),h=QPe(u,4);n=h[0],i=h[1],o=h[2],s=h[3]}}}var f=X9(n,o),m=X9(i,s),x=sje(n,o),v=function(S){return S>1?1:S<0?0:S},y=function(S){for(var A=S>1?1:S,E=A,j=0;j<8;++j){var P=f(E)-A,C=x(E);if(Math.abs(P-A)<Av||C<Av)return m(E);E=v(E-P/C)}return m(E)};return y.isStepper=!1,y},lje=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,a=r===void 0?100:r,n=t.damping,i=n===void 0?8:n,o=t.dt,s=o===void 0?17:o,c=function(h,f,m){var x=-(h-f)*a,v=m*i,y=m+(x-v)*s/1e3,b=m*s/1e3+h;return Math.abs(b-f)<Av&&Math.abs(y)<Av?[f,0]:[b,y]};return c.isStepper=!0,c.dt=s,c},cje=function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];var n=r[0];if(typeof n=="string")switch(n){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Y9(n);case"spring":return lje();default:if(n.split("(")[0]==="cubic-bezier")return Y9(n)}return typeof n=="function"?n:null};function ph(e){"@babel/helpers - typeof";return ph=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ph(e)}function Z9(e){return fje(e)||dje(e)||iG(e)||uje()}function uje(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1256In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dje(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fje(e){if(Array.isArray(e))return $P(e)}function J9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function ca(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?J9(Object(r),!0).forEach(function(a){FP(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):J9(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function FP(e,t,r){return t=pje(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pje(e){var t=hje(e,"string");return ph(t)==="symbol"?t:String(t)}function hje(e,t){if(ph(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(ph(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mje(e,t){return vje(e)||xje(e,t)||iG(e,t)||gje()}function gje(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1257In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iG(e,t){if(e){if(typeof e=="string")return $P(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $P(e,t)}}function $P(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function xje(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,n,i,o,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(c=(a=i.call(r)).done)&&(s.push(a.value),s.length!==t);c=!0);}catch(h){u=!0,n=h}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw n}}return s}}function vje(e){if(Array.isArray(e))return e}var Cv=function(t,r,a){return t+(r-t)*a},qP=function(t){var r=t.from,a=t.to;return r!==a},yje=function e(t,r,a){var n=Ep(function(i,o){if(qP(o)){var s=t(o.from,o.to,o.velocity),c=mje(s,2),u=c[0],h=c[1];return ca(ca({},o),{},{from:u,velocity:h})}return o},r);return a<1?Ep(function(i,o){return qP(o)?ca(ca({},o),{},{velocity:Cv(o.velocity,n[i].velocity,a),from:Cv(o.from,n[i].from,a)}):o},r):e(t,n,a-1)};const bje=(function(e,t,r,a,n){var i=YPe(e,t),o=i.reduce(function(b,S){return ca(ca({},b),{},FP({},S,[e[S],t[S]]))},{}),s=i.reduce(function(b,S){return ca(ca({},b),{},FP({},S,{from:e[S],velocity:0,to:t[S]}))},{}),c=-1,u,h,f=function(){return null},m=function(){return Ep(function(S,A){return A.from},s)},x=function(){return!Object.values(s).filter(qP).length},v=function(S){u||(u=S);var A=S-u,E=A/r.dt;s=yje(r,s,E),n(ca(ca(ca({},e),t),m())),u=S,x()||(c=requestAnimationFrame(f))},y=function(S){h||(h=S);var A=(S-h)/a,E=Ep(function(P,C){return Cv.apply(void 0,Z9(C).concat([r(A)]))},o);if(n(ca(ca(ca({},e),t),E)),A<1)c=requestAnimationFrame(f);else{var j=Ep(function(P,C){return Cv.apply(void 0,Z9(C).concat([r(1)]))},o);n(ca(ca(ca({},e),t),j))}};return f=r.isStepper?v:y,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(c)}}});function Qu(e){"@babel/helpers - typeof";return Qu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qu(e)}var wje=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Sje(e,t){if(e==null)return{};var r=Eje(e,t),a,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)a=i[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function Eje(e,t){if(e==null)return{};var r={},a=Object.keys(e),n,i;for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}function NA(e){return jje(e)||Pje(e)||Cje(e)||Aje()}function Aje(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1258In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cje(e,t){if(e){if(typeof e=="string")return VP(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return VP(e,t)}}function Pje(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jje(e){if(Array.isArray(e))return VP(e)}function VP(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function Q9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function Xn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Q9(Object(r),!0).forEach(function(a){lp(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Q9(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function lp(e,t,r){return t=oG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nje(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tje(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,oG(a.key),a)}}function kje(e,t,r){return t&&Tje(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function oG(e){var t=Dje(e,"string");return Qu(t)==="symbol"?t:String(t)}function Dje(e,t){if(Qu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(Qu(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _je(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&UP(e,t)}function UP(e,t){return UP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},UP(e,t)}function Rje(e){var t=Oje();return function(){var a=Pv(e),n;if(t){var i=Pv(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return HP(this,n)}}function HP(e,t){if(t&&(Qu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return GP(e)}function GP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Oje(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Pv(e){return Pv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Pv(e)}var Ri=(function(e){_je(r,e);var t=Rje(r);function r(a,n){var i;Nje(this,r),i=t.call(this,a,n);var o=i.props,s=o.isActive,c=o.attributeName,u=o.from,h=o.to,f=o.steps,m=o.children,x=o.duration;if(i.handleStyleChange=i.handleStyleChange.bind(GP(i)),i.changeStyle=i.changeStyle.bind(GP(i)),!s||x<=0)return i.state={style:{}},typeof m=="function"&&(i.state={style:h}),HP(i);if(f&&f.length)i.state={style:f[0].style};else if(u){if(typeof m=="function")return i.state={style:u},HP(i);i.state={style:c?lp({},c,u):u}}else i.state={style:{}};return i}return kje(r,[{key:"componentDidMount",value:function(){var n=this.props,i=n.isActive,o=n.canBegin;this.mounted=!0,!(!i||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(n){var i=this.props,o=i.isActive,s=i.canBegin,c=i.attributeName,u=i.shouldReAnimate,h=i.to,f=i.from,m=this.state.style;if(s){if(!o){var x={style:c?lp({},c,h):h};this.state&&m&&(c&&m[c]!==h||!c&&m!==h)&&this.setState(x);return}if(!(FPe(n.to,h)&&n.canBegin&&n.isActive)){var v=!n.canBegin||!n.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var y=v||u?f:n.to;if(this.state&&m){var b={style:c?lp({},c,y):y};(c&&m[c]!==y||!c&&m!==y)&&this.setState(b)}this.runAnimation(Xn(Xn({},this.props),{},{from:y,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var n=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),n&&n()}},{key:"handleStyleChange",value:function(n){this.changeStyle(n)}},{key:"changeStyle",value:function(n){this.mounted&&this.setState({style:n})}},{key:"runJSAnimation",value:function(n){var i=this,o=n.from,s=n.to,c=n.duration,u=n.easing,h=n.begin,f=n.onAnimationEnd,m=n.onAnimationStart,x=bje(o,s,cje(u),c,this.changeStyle),v=function(){i.stopJSAnimation=x()};this.manager.start([m,h,v,c,f])}},{key:"runStepAnimation",value:function(n){var i=this,o=n.steps,s=n.begin,c=n.onAnimationStart,u=o[0],h=u.style,f=u.duration,m=f===void 0?0:f,x=function(y,b,S){if(S===0)return y;var A=b.duration,E=b.easing,j=E===void 0?"ease":E,P=b.style,C=b.properties,N=b.onAnimationEnd,O=S>0?o[S-1]:b,k=C||Object.keys(P);if(typeof j=="function"||j==="spring")return[].concat(NA(y),[i.runJSAnimation.bind(i,{from:O.style,to:P,duration:A,easing:j}),A]);var B=W9(k,A,j),$=Xn(Xn(Xn({},O.style),P),{},{transition:B});return[].concat(NA(y),[$,A,N]).filter(ZPe)};return this.manager.start([c].concat(NA(o.reduce(x,[h,Math.max(m,s)])),[n.onAnimationEnd]))}},{key:"runAnimation",value:function(n){this.manager||(this.manager=KPe());var i=n.begin,o=n.duration,s=n.attributeName,c=n.to,u=n.easing,h=n.onAnimationStart,f=n.onAnimationEnd,m=n.steps,x=n.children,v=this.manager;if(this.unSubscribe=v.subscribe(this.handleStyleChange),typeof u=="function"||typeof x=="function"||u==="spring"){this.runJSAnimation(n);return}if(m.length>1){this.runStepAnimation(n);return}var y=s?lp({},s,c):c,b=W9(Object.keys(y),o,u);v.start([h,i,Xn(Xn({},y),{},{transition:b}),o,f])}},{key:"render",value:function(){var n=this.props,i=n.children;n.begin;var o=n.duration;n.attributeName,n.easing;var s=n.isActive;n.steps,n.from,n.to,n.canBegin,n.onAnimationEnd,n.shouldReAnimate,n.onAnimationReStart;var c=Sje(n,wje),u=L.Children.count(i),h=this.state.style;if(typeof i=="function")return i(h);if(!s||u===0||o<=0)return i;var f=function(x){var v=x.props,y=v.style,b=y===void 0?{}:y,S=v.className,A=L.cloneElement(x,Xn(Xn({},c),{},{style:Xn(Xn({},b),h),className:S}));return A};return u===1?f(L.Children.only(i)):de.createElement("div",null,L.Children.map(i,function(m){return f(m)}))}}]),r})(L.PureComponent);Ri.displayName="Animate";Ri.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Ri.propTypes={from:Zt.oneOfType([Zt.object,Zt.string]),to:Zt.oneOfType([Zt.object,Zt.string]),attributeName:Zt.string,duration:Zt.number,begin:Zt.number,easing:Zt.oneOfType([Zt.string,Zt.func]),steps:Zt.arrayOf(Zt.shape({duration:Zt.number.isRequired,style:Zt.object.isRequired,easing:Zt.oneOfType([Zt.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Zt.func]),properties:Zt.arrayOf("string"),onAnimationEnd:Zt.func})),children:Zt.oneOfType([Zt.node,Zt.func]),isActive:Zt.bool,canBegin:Zt.bool,onAnimationEnd:Zt.func,shouldReAnimate:Zt.bool,onAnimationStart:Zt.func,onAnimationReStart:Zt.func};function hh(e){"@babel/helpers - typeof";return hh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hh(e)}function jv(){return jv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},jv.apply(this,arguments)}function Mje(e,t){return zje(e)||Lje(e,t)||Bje(e,t)||Ije()}function Ije(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1259In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bje(e,t){if(e){if(typeof e=="string")return eB(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eB(e,t)}}function eB(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function Lje(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,n,i,o,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(c=(a=i.call(r)).done)&&(s.push(a.value),s.length!==t);c=!0);}catch(h){u=!0,n=h}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw n}}return s}}function zje(e){if(Array.isArray(e))return e}function tB(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function rB(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tB(Object(r),!0).forEach(function(a){Fje(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tB(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function Fje(e,t,r){return t=$je(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $je(e){var t=qje(e,"string");return hh(t)=="symbol"?t:t+""}function qje(e,t){if(hh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(hh(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var aB=function(t,r,a,n,i){var o=Math.min(Math.abs(a)/2,Math.abs(n)/2),s=n>=0?1:-1,c=a>=0?1:-1,u=n>=0&&a>=0||n<0&&a<0?1:0,h;if(o>0&&i instanceof Array){for(var f=[0,0,0,0],m=0,x=4;m<x;m++)f[m]=i[m]>o?o:i[m];h="M".concat(t,",").concat(r+s*f[0]),f[0]>0&&(h+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(u,",").concat(t+c*f[0],",").concat(r)),h+="L ".concat(t+a-c*f[1],",").concat(r),f[1]>0&&(h+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(u,`, 1260 `).concat(t+a,",").concat(r+s*f[1])),h+="L ".concat(t+a,",").concat(r+n-s*f[2]),f[2]>0&&(h+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(u,`, 1261 `).concat(t+a-c*f[2],",").concat(r+n)),h+="L ".concat(t+c*f[3],",").concat(r+n),f[3]>0&&(h+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(u,`, 1262 `).concat(t,",").concat(r+n-s*f[3])),h+="Z"}else if(o>0&&i===+i&&i>0){var v=Math.min(o,i);h="M ".concat(t,",").concat(r+s*v,` 1263 A `).concat(v,",").concat(v,",0,0,").concat(u,",").concat(t+c*v,",").concat(r,` 1264 L `).concat(t+a-c*v,",").concat(r,` 1265 A `).concat(v,",").concat(v,",0,0,").concat(u,",").concat(t+a,",").concat(r+s*v,` 1266 L `).concat(t+a,",").concat(r+n-s*v,` 1267 A `).concat(v,",").concat(v,",0,0,").concat(u,",").concat(t+a-c*v,",").concat(r+n,` 1268 L `).concat(t+c*v,",").concat(r+n,` 1269 A `).concat(v,",").concat(v,",0,0,").concat(u,",").concat(t,",").concat(r+n-s*v," Z")}else h="M ".concat(t,",").concat(r," h ").concat(a," v ").concat(n," h ").concat(-a," Z");return h},Vje=function(t,r){if(!t||!r)return!1;var a=t.x,n=t.y,i=r.x,o=r.y,s=r.width,c=r.height;if(Math.abs(s)>0&&Math.abs(c)>0){var u=Math.min(i,i+s),h=Math.max(i,i+s),f=Math.min(o,o+c),m=Math.max(o,o+c);return a>=u&&a<=h&&n>=f&&n<=m}return!1},Uje={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},qT=function(t){var r=rB(rB({},Uje),t),a=L.useRef(),n=L.useState(-1),i=Mje(n,2),o=i[0],s=i[1];L.useEffect(function(){if(a.current&&a.current.getTotalLength)try{var j=a.current.getTotalLength();j&&s(j)}catch{}},[]);var c=r.x,u=r.y,h=r.width,f=r.height,m=r.radius,x=r.className,v=r.animationEasing,y=r.animationDuration,b=r.animationBegin,S=r.isAnimationActive,A=r.isUpdateAnimationActive;if(c!==+c||u!==+u||h!==+h||f!==+f||h===0||f===0)return null;var E=wt("recharts-rectangle",x);return A?de.createElement(Ri,{canBegin:o>0,from:{width:h,height:f,x:c,y:u},to:{width:h,height:f,x:c,y:u},duration:y,animationEasing:v,isActive:A},function(j){var P=j.width,C=j.height,N=j.x,O=j.y;return de.createElement(Ri,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:y,isActive:S,easing:v},de.createElement("path",jv({},lt(r,!0),{className:E,d:aB(N,O,P,C,m),ref:a})))}):de.createElement("path",jv({},lt(r,!0),{className:E,d:aB(c,u,h,f,m)}))},Hje=["points","className","baseLinePoints","connectNulls"];function du(){return du=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},du.apply(this,arguments)}function Gje(e,t){if(e==null)return{};var r=Kje(e,t),a,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)a=i[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function Kje(e,t){if(e==null)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}function nB(e){return Zje(e)||Yje(e)||Xje(e)||Wje()}function Wje(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1270In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xje(e,t){if(e){if(typeof e=="string")return KP(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return KP(e,t)}}function Yje(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Zje(e){if(Array.isArray(e))return KP(e)}function KP(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}var iB=function(t){return t&&t.x===+t.x&&t.y===+t.y},Jje=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(a){iB(a)?r[r.length-1].push(a):r[r.length-1].length>0&&r.push([])}),iB(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},Ap=function(t,r){var a=Jje(t);r&&(a=[a.reduce(function(i,o){return[].concat(nB(i),nB(o))},[])]);var n=a.map(function(i){return i.reduce(function(o,s,c){return"".concat(o).concat(c===0?"M":"L").concat(s.x,",").concat(s.y)},"")}).join("");return a.length===1?"".concat(n,"Z"):n},Qje=function(t,r,a){var n=Ap(t,a);return"".concat(n.slice(-1)==="Z"?n.slice(0,-1):n,"L").concat(Ap(r.reverse(),a).slice(1))},eNe=function(t){var r=t.points,a=t.className,n=t.baseLinePoints,i=t.connectNulls,o=Gje(t,Hje);if(!r||!r.length)return null;var s=wt("recharts-polygon",a);if(n&&n.length){var c=o.stroke&&o.stroke!=="none",u=Qje(r,n,i);return de.createElement("g",{className:s},de.createElement("path",du({},lt(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:u})),c?de.createElement("path",du({},lt(o,!0),{fill:"none",d:Ap(r,i)})):null,c?de.createElement("path",du({},lt(o,!0),{fill:"none",d:Ap(n,i)})):null)}var h=Ap(r,i);return de.createElement("path",du({},lt(o,!0),{fill:h.slice(-1)==="Z"?o.fill:"none",className:s,d:h}))};function WP(){return WP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},WP.apply(this,arguments)}var Jy=function(t){var r=t.cx,a=t.cy,n=t.r,i=t.className,o=wt("recharts-dot",i);return r===+r&&a===+a&&n===+n?L.createElement("circle",WP({},lt(t,!1),Yx(t),{className:o,cx:r,cy:a,r:n})):null};function mh(e){"@babel/helpers - typeof";return mh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mh(e)}var tNe=["x","y","top","left","width","height","className"];function XP(){return XP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},XP.apply(this,arguments)}function oB(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function rNe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oB(Object(r),!0).forEach(function(a){aNe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oB(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function aNe(e,t,r){return t=nNe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nNe(e){var t=iNe(e,"string");return mh(t)=="symbol"?t:t+""}function iNe(e,t){if(mh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(mh(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oNe(e,t){if(e==null)return{};var r=sNe(e,t),a,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)a=i[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function sNe(e,t){if(e==null)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}var lNe=function(t,r,a,n,i,o){return"M".concat(t,",").concat(i,"v").concat(n,"M").concat(o,",").concat(r,"h").concat(a)},cNe=function(t){var r=t.x,a=r===void 0?0:r,n=t.y,i=n===void 0?0:n,o=t.top,s=o===void 0?0:o,c=t.left,u=c===void 0?0:c,h=t.width,f=h===void 0?0:h,m=t.height,x=m===void 0?0:m,v=t.className,y=oNe(t,tNe),b=rNe({x:a,y:i,top:s,left:u,width:f,height:x},y);return!Ue(a)||!Ue(i)||!Ue(f)||!Ue(x)||!Ue(s)||!Ue(u)?null:de.createElement("path",XP({},lt(b,!0),{className:wt("recharts-cross",v),d:lNe(a,i,f,x,s,u)}))},TA,sB;function uNe(){if(sB)return TA;sB=1;var e=Ky(),t=wH(),r=Li();function a(n,i){return n&&n.length?e(n,r(i,2),t):void 0}return TA=a,TA}var dNe=uNe();const fNe=qt(dNe);var kA,lB;function pNe(){if(lB)return kA;lB=1;var e=Ky(),t=Li(),r=SH();function a(n,i){return n&&n.length?e(n,t(i,2),r):void 0}return kA=a,kA}var hNe=pNe();const mNe=qt(hNe);var gNe=["cx","cy","angle","ticks","axisLine"],xNe=["ticks","tick","angle","tickFormatter","stroke"];function ed(e){"@babel/helpers - typeof";return ed=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ed(e)}function Cp(){return Cp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Cp.apply(this,arguments)}function cB(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function ul(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cB(Object(r),!0).forEach(function(a){Qy(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cB(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function uB(e,t){if(e==null)return{};var r=vNe(e,t),a,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)a=i[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function vNe(e,t){if(e==null)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}function yNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dB(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,lG(a.key),a)}}function bNe(e,t,r){return t&&dB(e.prototype,t),r&&dB(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function wNe(e,t,r){return t=Nv(t),SNe(e,sG()?Reflect.construct(t,r||[],Nv(e).constructor):t.apply(e,r))}function SNe(e,t){if(t&&(ed(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ENe(e)}function ENe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sG=function(){return!!e})()}function Nv(e){return Nv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Nv(e)}function ANe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&YP(e,t)}function YP(e,t){return YP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},YP(e,t)}function Qy(e,t,r){return t=lG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lG(e){var t=CNe(e,"string");return ed(t)=="symbol"?t:t+""}function CNe(e,t){if(ed(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(ed(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var eb=(function(e){function t(){return yNe(this,t),wNe(this,t,arguments)}return ANe(t,e),bNe(t,[{key:"getTickValueCoord",value:function(a){var n=a.coordinate,i=this.props,o=i.angle,s=i.cx,c=i.cy;return pr(s,c,n,o)}},{key:"getTickTextAnchor",value:function(){var a=this.props.orientation,n;switch(a){case"left":n="end";break;case"right":n="start";break;default:n="middle";break}return n}},{key:"getViewBox",value:function(){var a=this.props,n=a.cx,i=a.cy,o=a.angle,s=a.ticks,c=fNe(s,function(h){return h.coordinate||0}),u=mNe(s,function(h){return h.coordinate||0});return{cx:n,cy:i,startAngle:o,endAngle:o,innerRadius:u.coordinate||0,outerRadius:c.coordinate||0}}},{key:"renderAxisLine",value:function(){var a=this.props,n=a.cx,i=a.cy,o=a.angle,s=a.ticks,c=a.axisLine,u=uB(a,gNe),h=s.reduce(function(v,y){return[Math.min(v[0],y.coordinate),Math.max(v[1],y.coordinate)]},[1/0,-1/0]),f=pr(n,i,h[0],o),m=pr(n,i,h[1],o),x=ul(ul(ul({},lt(u,!1)),{},{fill:"none"},lt(c,!1)),{},{x1:f.x,y1:f.y,x2:m.x,y2:m.y});return de.createElement("line",Cp({className:"recharts-polar-radius-axis-line"},x))}},{key:"renderTicks",value:function(){var a=this,n=this.props,i=n.ticks,o=n.tick,s=n.angle,c=n.tickFormatter,u=n.stroke,h=uB(n,xNe),f=this.getTickTextAnchor(),m=lt(h,!1),x=lt(o,!1),v=i.map(function(y,b){var S=a.getTickValueCoord(y),A=ul(ul(ul(ul({textAnchor:f,transform:"rotate(".concat(90-s,", ").concat(S.x,", ").concat(S.y,")")},m),{},{stroke:"none",fill:u},x),{},{index:b},S),{},{payload:y});return de.createElement(Ht,Cp({className:wt("recharts-polar-radius-axis-tick",YH(o)),key:"tick-".concat(y.coordinate)},Ul(a.props,y,b)),t.renderTickItem(o,A,c?c(y.value,b):y.value))});return de.createElement(Ht,{className:"recharts-polar-radius-axis-ticks"},v)}},{key:"render",value:function(){var a=this.props,n=a.ticks,i=a.axisLine,o=a.tick;return!n||!n.length?null:de.createElement(Ht,{className:wt("recharts-polar-radius-axis",this.props.className)},i&&this.renderAxisLine(),o&&this.renderTicks(),ea.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(a,n,i){var o;return de.isValidElement(a)?o=de.cloneElement(a,n):gt(a)?o=a(n):o=de.createElement(Hl,Cp({},n,{className:"recharts-polar-radius-axis-tick-value"}),i),o}}])})(L.PureComponent);Qy(eb,"displayName","PolarRadiusAxis");Qy(eb,"axisType","radiusAxis");Qy(eb,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function td(e){"@babel/helpers - typeof";return td=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},td(e)}function yl(){return yl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},yl.apply(this,arguments)}function fB(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function dl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fB(Object(r),!0).forEach(function(a){tb(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fB(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function PNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pB(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,uG(a.key),a)}}function jNe(e,t,r){return t&&pB(e.prototype,t),r&&pB(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function NNe(e,t,r){return t=Tv(t),TNe(e,cG()?Reflect.construct(t,r||[],Tv(e).constructor):t.apply(e,r))}function TNe(e,t){if(t&&(td(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kNe(e)}function kNe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cG=function(){return!!e})()}function Tv(e){return Tv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Tv(e)}function DNe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ZP(e,t)}function ZP(e,t){return ZP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},ZP(e,t)}function tb(e,t,r){return t=uG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uG(e){var t=_Ne(e,"string");return td(t)=="symbol"?t:t+""}function _Ne(e,t){if(td(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(td(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var RNe=Math.PI/180,hB=1e-5,rb=(function(e){function t(){return PNe(this,t),NNe(this,t,arguments)}return DNe(t,e),jNe(t,[{key:"getTickLineCoord",value:function(a){var n=this.props,i=n.cx,o=n.cy,s=n.radius,c=n.orientation,u=n.tickSize,h=u||8,f=pr(i,o,s,a.coordinate),m=pr(i,o,s+(c==="inner"?-1:1)*h,a.coordinate);return{x1:f.x,y1:f.y,x2:m.x,y2:m.y}}},{key:"getTickTextAnchor",value:function(a){var n=this.props.orientation,i=Math.cos(-a.coordinate*RNe),o;return i>hB?o=n==="outer"?"start":"end":i<-hB?o=n==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var a=this.props,n=a.cx,i=a.cy,o=a.radius,s=a.axisLine,c=a.axisLineType,u=dl(dl({},lt(this.props,!1)),{},{fill:"none"},lt(s,!1));if(c==="circle")return de.createElement(Jy,yl({className:"recharts-polar-angle-axis-line"},u,{cx:n,cy:i,r:o}));var h=this.props.ticks,f=h.map(function(m){return pr(n,i,o,m.coordinate)});return de.createElement(eNe,yl({className:"recharts-polar-angle-axis-line"},u,{points:f}))}},{key:"renderTicks",value:function(){var a=this,n=this.props,i=n.ticks,o=n.tick,s=n.tickLine,c=n.tickFormatter,u=n.stroke,h=lt(this.props,!1),f=lt(o,!1),m=dl(dl({},h),{},{fill:"none"},lt(s,!1)),x=i.map(function(v,y){var b=a.getTickLineCoord(v),S=a.getTickTextAnchor(v),A=dl(dl(dl({textAnchor:S},h),{},{stroke:"none",fill:u},f),{},{index:y,payload:v,x:b.x2,y:b.y2});return de.createElement(Ht,yl({className:wt("recharts-polar-angle-axis-tick",YH(o)),key:"tick-".concat(v.coordinate)},Ul(a.props,v,y)),s&&de.createElement("line",yl({className:"recharts-polar-angle-axis-tick-line"},m,b)),o&&t.renderTickItem(o,A,c?c(v.value,y):v.value))});return de.createElement(Ht,{className:"recharts-polar-angle-axis-ticks"},x)}},{key:"render",value:function(){var a=this.props,n=a.ticks,i=a.radius,o=a.axisLine;return i<=0||!n||!n.length?null:de.createElement(Ht,{className:wt("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(a,n,i){var o;return de.isValidElement(a)?o=de.cloneElement(a,n):gt(a)?o=a(n):o=de.createElement(Hl,yl({},n,{className:"recharts-polar-angle-axis-tick-value"}),i),o}}])})(L.PureComponent);tb(rb,"displayName","PolarAngleAxis");tb(rb,"axisType","angleAxis");tb(rb,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var DA,mB;function ONe(){if(mB)return DA;mB=1;var e=bU(),t=e(Object.getPrototypeOf,Object);return DA=t,DA}var _A,gB;function MNe(){if(gB)return _A;gB=1;var e=Oo(),t=ONe(),r=Mo(),a="[object Object]",n=Function.prototype,i=Object.prototype,o=n.toString,s=i.hasOwnProperty,c=o.call(Object);function u(h){if(!r(h)||e(h)!=a)return!1;var f=t(h);if(f===null)return!0;var m=s.call(f,"constructor")&&f.constructor;return typeof m=="function"&&m instanceof m&&o.call(m)==c}return _A=u,_A}var INe=MNe();const BNe=qt(INe);var RA,xB;function LNe(){if(xB)return RA;xB=1;var e=Oo(),t=Mo(),r="[object Boolean]";function a(n){return n===!0||n===!1||t(n)&&e(n)==r}return RA=a,RA}var zNe=LNe();const FNe=qt(zNe);function gh(e){"@babel/helpers - typeof";return gh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gh(e)}function kv(){return kv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},kv.apply(this,arguments)}function $Ne(e,t){return HNe(e)||UNe(e,t)||VNe(e,t)||qNe()}function qNe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1271In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function VNe(e,t){if(e){if(typeof e=="string")return vB(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vB(e,t)}}function vB(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function UNe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,n,i,o,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(c=(a=i.call(r)).done)&&(s.push(a.value),s.length!==t);c=!0);}catch(h){u=!0,n=h}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw n}}return s}}function HNe(e){if(Array.isArray(e))return e}function yB(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function bB(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yB(Object(r),!0).forEach(function(a){GNe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yB(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function GNe(e,t,r){return t=KNe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KNe(e){var t=WNe(e,"string");return gh(t)=="symbol"?t:t+""}function WNe(e,t){if(gh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(gh(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wB=function(t,r,a,n,i){var o=a-n,s;return s="M ".concat(t,",").concat(r),s+="L ".concat(t+a,",").concat(r),s+="L ".concat(t+a-o/2,",").concat(r+i),s+="L ".concat(t+a-o/2-n,",").concat(r+i),s+="L ".concat(t,",").concat(r," Z"),s},XNe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},YNe=function(t){var r=bB(bB({},XNe),t),a=L.useRef(),n=L.useState(-1),i=$Ne(n,2),o=i[0],s=i[1];L.useEffect(function(){if(a.current&&a.current.getTotalLength)try{var E=a.current.getTotalLength();E&&s(E)}catch{}},[]);var c=r.x,u=r.y,h=r.upperWidth,f=r.lowerWidth,m=r.height,x=r.className,v=r.animationEasing,y=r.animationDuration,b=r.animationBegin,S=r.isUpdateAnimationActive;if(c!==+c||u!==+u||h!==+h||f!==+f||m!==+m||h===0&&f===0||m===0)return null;var A=wt("recharts-trapezoid",x);return S?de.createElement(Ri,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:m,x:c,y:u},to:{upperWidth:h,lowerWidth:f,height:m,x:c,y:u},duration:y,animationEasing:v,isActive:S},function(E){var j=E.upperWidth,P=E.lowerWidth,C=E.height,N=E.x,O=E.y;return de.createElement(Ri,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:y,easing:v},de.createElement("path",kv({},lt(r,!0),{className:A,d:wB(N,O,j,P,C),ref:a})))}):de.createElement("g",null,de.createElement("path",kv({},lt(r,!0),{className:A,d:wB(c,u,h,f,m)})))},ZNe=["option","shapeType","propTransformer","activeClassName","isActive"];function xh(e){"@babel/helpers - typeof";return xh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xh(e)}function JNe(e,t){if(e==null)return{};var r=QNe(e,t),a,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)a=i[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function QNe(e,t){if(e==null)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}function SB(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function Dv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?SB(Object(r),!0).forEach(function(a){eTe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):SB(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function eTe(e,t,r){return t=tTe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tTe(e){var t=rTe(e,"string");return xh(t)=="symbol"?t:t+""}function rTe(e,t){if(xh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(xh(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function aTe(e,t){return Dv(Dv({},t),e)}function nTe(e,t){return e==="symbols"}function EB(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return de.createElement(qT,r);case"trapezoid":return de.createElement(YNe,r);case"sector":return de.createElement(QH,r);case"symbols":if(nTe(t))return de.createElement(sT,r);break;default:return null}}function iTe(e){return L.isValidElement(e)?e.props:e}function dG(e){var t=e.option,r=e.shapeType,a=e.propTransformer,n=a===void 0?aTe:a,i=e.activeClassName,o=i===void 0?"recharts-active-shape":i,s=e.isActive,c=JNe(e,ZNe),u;if(L.isValidElement(t))u=L.cloneElement(t,Dv(Dv({},c),iTe(t)));else if(gt(t))u=t(c);else if(BNe(t)&&!FNe(t)){var h=n(t,c);u=de.createElement(EB,{shapeType:r,elementProps:h})}else{var f=c;u=de.createElement(EB,{shapeType:r,elementProps:f})}return s?de.createElement(Ht,{className:o},u):u}function ab(e,t){return t!=null&&"trapezoids"in e.props}function nb(e,t){return t!=null&&"sectors"in e.props}function vh(e,t){return t!=null&&"points"in e.props}function oTe(e,t){var r,a,n=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,i=e.y===(t==null||(a=t.labelViewBox)===null||a===void 0?void 0:a.y)||e.y===t.y;return n&&i}function sTe(e,t){var r=e.endAngle===t.endAngle,a=e.startAngle===t.startAngle;return r&&a}function lTe(e,t){var r=e.x===t.x,a=e.y===t.y,n=e.z===t.z;return r&&a&&n}function cTe(e,t){var r;return ab(e,t)?r=oTe:nb(e,t)?r=sTe:vh(e,t)&&(r=lTe),r}function uTe(e,t){var r;return ab(e,t)?r="trapezoids":nb(e,t)?r="sectors":vh(e,t)&&(r="points"),r}function dTe(e,t){if(ab(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(nb(e,t)){var a;return(a=t.tooltipPayload)===null||a===void 0||(a=a[0])===null||a===void 0||(a=a.payload)===null||a===void 0?void 0:a.payload}return vh(e,t)?t.payload:{}}function fTe(e){var t=e.activeTooltipItem,r=e.graphicalItem,a=e.itemData,n=uTe(r,t),i=dTe(r,t),o=a.filter(function(c,u){var h=tm(i,c),f=r.props[n].filter(function(v){var y=cTe(r,t);return y(v,t)}),m=r.props[n].indexOf(f[f.length-1]),x=u===m;return h&&x}),s=a.indexOf(o[o.length-1]);return s}var bx;function rd(e){"@babel/helpers - typeof";return rd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rd(e)}function fu(){return fu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},fu.apply(this,arguments)}function AB(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function dr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?AB(Object(r),!0).forEach(function(a){zn(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):AB(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function pTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CB(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,pG(a.key),a)}}function hTe(e,t,r){return t&&CB(e.prototype,t),r&&CB(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function mTe(e,t,r){return t=_v(t),gTe(e,fG()?Reflect.construct(t,r||[],_v(e).constructor):t.apply(e,r))}function gTe(e,t){if(t&&(rd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xTe(e)}function xTe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fG=function(){return!!e})()}function _v(e){return _v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_v(e)}function vTe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&JP(e,t)}function JP(e,t){return JP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},JP(e,t)}function zn(e,t,r){return t=pG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pG(e){var t=yTe(e,"string");return rd(t)=="symbol"?t:t+""}function yTe(e,t){if(rd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(rd(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var zi=(function(e){function t(r){var a;return pTe(this,t),a=mTe(this,t,[r]),zn(a,"pieRef",null),zn(a,"sectorRefs",[]),zn(a,"id",Od("recharts-pie-")),zn(a,"handleAnimationEnd",function(){var n=a.props.onAnimationEnd;a.setState({isAnimationFinished:!0}),gt(n)&&n()}),zn(a,"handleAnimationStart",function(){var n=a.props.onAnimationStart;a.setState({isAnimationFinished:!1}),gt(n)&&n()}),a.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},a}return vTe(t,e),hTe(t,[{key:"isActiveIndex",value:function(a){var n=this.props.activeIndex;return Array.isArray(n)?n.indexOf(a)!==-1:a===n}},{key:"hasActiveIndex",value:function(){var a=this.props.activeIndex;return Array.isArray(a)?a.length!==0:a||a===0}},{key:"renderLabels",value:function(a){var n=this.props.isAnimationActive;if(n&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.label,s=i.labelLine,c=i.dataKey,u=i.valueKey,h=lt(this.props,!1),f=lt(o,!1),m=lt(s,!1),x=o&&o.offsetRadius||20,v=a.map(function(y,b){var S=(y.startAngle+y.endAngle)/2,A=pr(y.cx,y.cy,y.outerRadius+x,S),E=dr(dr(dr(dr({},h),y),{},{stroke:"none"},f),{},{index:b,textAnchor:t.getTextAnchor(A.x,y.cx)},A),j=dr(dr(dr(dr({},h),y),{},{fill:"none",stroke:y.fill},m),{},{index:b,points:[pr(y.cx,y.cy,y.outerRadius,S),A]}),P=c;return yt(c)&&yt(u)?P="value":yt(c)&&(P=u),de.createElement(Ht,{key:"label-".concat(y.startAngle,"-").concat(y.endAngle,"-").concat(y.midAngle,"-").concat(b)},s&&t.renderLabelLineItem(s,j,"line"),t.renderLabelItem(o,E,Gr(y,P)))});return de.createElement(Ht,{className:"recharts-pie-labels"},v)}},{key:"renderSectorsStatically",value:function(a){var n=this,i=this.props,o=i.activeShape,s=i.blendStroke,c=i.inactiveShape;return a.map(function(u,h){if(u?.startAngle===0&&u?.endAngle===0&&a.length!==1)return null;var f=n.isActiveIndex(h),m=c&&n.hasActiveIndex()?c:null,x=f?o:m,v=dr(dr({},u),{},{stroke:s?u.fill:u.stroke,tabIndex:-1});return de.createElement(Ht,fu({ref:function(b){b&&!n.sectorRefs.includes(b)&&n.sectorRefs.push(b)},tabIndex:-1,className:"recharts-pie-sector"},Ul(n.props,u,h),{key:"sector-".concat(u?.startAngle,"-").concat(u?.endAngle,"-").concat(u.midAngle,"-").concat(h)}),de.createElement(dG,fu({option:x,isActive:f,shapeType:"sector"},v)))})}},{key:"renderSectorsWithAnimation",value:function(){var a=this,n=this.props,i=n.sectors,o=n.isAnimationActive,s=n.animationBegin,c=n.animationDuration,u=n.animationEasing,h=n.animationId,f=this.state,m=f.prevSectors,x=f.prevIsAnimationActive;return de.createElement(Ri,{begin:s,duration:c,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(h,"-").concat(x),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(v){var y=v.t,b=[],S=i&&i[0],A=S.startAngle;return i.forEach(function(E,j){var P=m&&m[j],C=j>0?mn(E,"paddingAngle",0):0;if(P){var N=cn(P.endAngle-P.startAngle,E.endAngle-E.startAngle),O=dr(dr({},E),{},{startAngle:A+C,endAngle:A+N(y)+C});b.push(O),A=O.endAngle}else{var k=E.endAngle,B=E.startAngle,$=cn(0,k-B),_=$(y),W=dr(dr({},E),{},{startAngle:A+C,endAngle:A+_+C});b.push(W),A=W.endAngle}}),de.createElement(Ht,null,a.renderSectorsStatically(b))})}},{key:"attachKeyboardHandlers",value:function(a){var n=this;a.onkeydown=function(i){if(!i.altKey)switch(i.key){case"ArrowLeft":{var o=++n.state.sectorToFocus%n.sectorRefs.length;n.sectorRefs[o].focus(),n.setState({sectorToFocus:o});break}case"ArrowRight":{var s=--n.state.sectorToFocus<0?n.sectorRefs.length-1:n.state.sectorToFocus%n.sectorRefs.length;n.sectorRefs[s].focus(),n.setState({sectorToFocus:s});break}case"Escape":{n.sectorRefs[n.state.sectorToFocus].blur(),n.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var a=this.props,n=a.sectors,i=a.isAnimationActive,o=this.state.prevSectors;return i&&n&&n.length&&(!o||!tm(o,n))?this.renderSectorsWithAnimation():this.renderSectorsStatically(n)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var a=this,n=this.props,i=n.hide,o=n.sectors,s=n.className,c=n.label,u=n.cx,h=n.cy,f=n.innerRadius,m=n.outerRadius,x=n.isAnimationActive,v=this.state.isAnimationFinished;if(i||!o||!o.length||!Ue(u)||!Ue(h)||!Ue(f)||!Ue(m))return null;var y=wt("recharts-pie",s);return de.createElement(Ht,{tabIndex:this.props.rootTabIndex,className:y,ref:function(S){a.pieRef=S}},this.renderSectors(),c&&this.renderLabels(o),ea.renderCallByParent(this.props,null,!1),(!x||v)&&So.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(a,n){return n.prevIsAnimationActive!==a.isAnimationActive?{prevIsAnimationActive:a.isAnimationActive,prevAnimationId:a.animationId,curSectors:a.sectors,prevSectors:[],isAnimationFinished:!0}:a.isAnimationActive&&a.animationId!==n.prevAnimationId?{prevAnimationId:a.animationId,curSectors:a.sectors,prevSectors:n.curSectors,isAnimationFinished:!0}:a.sectors!==n.curSectors?{curSectors:a.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(a,n){return a>n?"start":a<n?"end":"middle"}},{key:"renderLabelLineItem",value:function(a,n,i){if(de.isValidElement(a))return de.cloneElement(a,n);if(gt(a))return a(n);var o=wt("recharts-pie-label-line",typeof a!="boolean"?a.className:"");return de.createElement(Ev,fu({},n,{key:i,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(a,n,i){if(de.isValidElement(a))return de.cloneElement(a,n);var o=i;if(gt(a)&&(o=a(n),de.isValidElement(o)))return o;var s=wt("recharts-pie-label-text",typeof a!="boolean"&&!gt(a)?a.className:"");return de.createElement(Hl,fu({},n,{alignmentBaseline:"middle",className:s}),o)}}])})(L.PureComponent);bx=zi;zn(zi,"displayName","Pie");zn(zi,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!rc.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});zn(zi,"parseDeltaAngle",function(e,t){var r=ja(t-e),a=Math.min(Math.abs(t-e),360);return r*a});zn(zi,"getRealPieData",function(e){var t=e.data,r=e.children,a=lt(e,!1),n=gn(r,Yh);return t&&t.length?t.map(function(i,o){return dr(dr(dr({payload:i},a),i),n&&n[o]&&n[o].props)}):n&&n.length?n.map(function(i){return dr(dr({},a),i.props)}):[]});zn(zi,"parseCoordinateOfPie",function(e,t){var r=t.top,a=t.left,n=t.width,i=t.height,o=XH(n,i),s=a+Na(e.cx,n,n/2),c=r+Na(e.cy,i,i/2),u=Na(e.innerRadius,o,0),h=Na(e.outerRadius,o,o*.8),f=e.maxRadius||Math.sqrt(n*n+i*i)/2;return{cx:s,cy:c,innerRadius:u,outerRadius:h,maxRadius:f}});zn(zi,"getComposedData",function(e){var t=e.item,r=e.offset,a=t.type.defaultProps!==void 0?dr(dr({},t.type.defaultProps),t.props):t.props,n=bx.getRealPieData(a);if(!n||!n.length)return null;var i=a.cornerRadius,o=a.startAngle,s=a.endAngle,c=a.paddingAngle,u=a.dataKey,h=a.nameKey,f=a.valueKey,m=a.tooltipType,x=Math.abs(a.minAngle),v=bx.parseCoordinateOfPie(a,r),y=bx.parseDeltaAngle(o,s),b=Math.abs(y),S=u;yt(u)&&yt(f)?(ri(!1,`Use "dataKey" to specify the value of pie,
1272 the props "valueKey" will be deprecated in 1.1.0`),S="value"):yt(u)&&(ri(!1,`Use "dataKey" to specify the value of pie, 1273 the props "valueKey" will be deprecated in 1.1.0`),S=f);var A=n.filter(function(O){return Gr(O,S,0)!==0}).length,E=(b>=360?A:A-1)*c,j=b-A*x-E,P=n.reduce(function(O,k){var B=Gr(k,S,0);return O+(Ue(B)?B:0)},0),C;if(P>0){var N;C=n.map(function(O,k){var B=Gr(O,S,0),$=Gr(O,h,k),_=(Ue(B)?B:0)/P,W;k?W=N.endAngle+ja(y)*c*(B!==0?1:0):W=o;var D=W+ja(y)*((B!==0?x:0)+_*j),J=(W+D)/2,z=(v.innerRadius+v.outerRadius)/2,V=[{name:$,value:B,payload:O,dataKey:S,type:m}],Z=pr(v.cx,v.cy,z,J);return N=dr(dr(dr({percent:_,cornerRadius:i,name:$,tooltipPayload:V,midAngle:J,middleRadius:z,tooltipPosition:Z},O),v),{},{value:Gr(O,S),startAngle:W,endAngle:D,payload:O,paddingAngle:ja(y)*c}),N})}return dr(dr({},v),{},{sectors:C,data:n})});var OA,PB;function bTe(){if(PB)return OA;PB=1;var e=Math.ceil,t=Math.max;function r(a,n,i,o){for(var s=-1,c=t(e((n-a)/(i||1)),0),u=Array(c);c--;)u[o?c:++s]=a,a+=i;return u}return OA=r,OA}var MA,jB;function hG(){if(jB)return MA;jB=1;var e=IU(),t=1/0,r=17976931348623157e292;function a(n){if(!n)return n===0?n:0;if(n=e(n),n===t||n===-t){var i=n<0?-1:1;return i*r}return n===n?n:0}return MA=a,MA}var IA,NB;function wTe(){if(NB)return IA;NB=1;var e=bTe(),t=Fy(),r=hG();function a(n){return function(i,o,s){return s&&typeof s!="number"&&t(i,o,s)&&(o=s=void 0),i=r(i),o===void 0?(o=i,i=0):o=r(o),s=s===void 0?i<o?1:-1:r(s),e(i,o,s,n)}}return IA=a,IA}var BA,TB;function STe(){if(TB)return BA;TB=1;var e=wTe(),t=e();return BA=t,BA}var ETe=STe();const Rv=qt(ETe);function yh(e){"@babel/helpers - typeof";return yh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yh(e)}function kB(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function DB(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kB(Object(r),!0).forEach(function(a){mG(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kB(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function mG(e,t,r){return t=ATe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ATe(e){var t=CTe(e,"string");return yh(t)=="symbol"?t:t+""}function CTe(e,t){if(yh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(yh(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var PTe=["Webkit","Moz","O","ms"],jTe=function(t,r){var a=t.replace(/(\w)/,function(i){return i.toUpperCase()}),n=PTe.reduce(function(i,o){return DB(DB({},i),{},mG({},o+a,r))},{});return n[t]=r,n};function ad(e){"@babel/helpers - typeof";return ad=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ad(e)}function Ov(){return Ov=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Ov.apply(this,arguments)}function _B(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function LA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_B(Object(r),!0).forEach(function(a){on(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_B(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function NTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RB(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,xG(a.key),a)}}function TTe(e,t,r){return t&&RB(e.prototype,t),r&&RB(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function kTe(e,t,r){return t=Mv(t),DTe(e,gG()?Reflect.construct(t,r||[],Mv(e).constructor):t.apply(e,r))}function DTe(e,t){if(t&&(ad(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _Te(e)}function _Te(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gG=function(){return!!e})()}function Mv(e){return Mv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Mv(e)}function RTe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&QP(e,t)}function QP(e,t){return QP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},QP(e,t)}function on(e,t,r){return t=xG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xG(e){var t=OTe(e,"string");return ad(t)=="symbol"?t:t+""}function OTe(e,t){if(ad(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(ad(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var MTe=function(t){var r=t.data,a=t.startIndex,n=t.endIndex,i=t.x,o=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var c=r.length,u=wp().domain(Rv(0,c)).range([i,i+o-s]),h=u.domain().map(function(f){return u(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(a),endX:u(n),scale:u,scaleValues:h}},OB=function(t){return t.changedTouches&&!!t.changedTouches.length},nd=(function(e){function t(r){var a;return NTe(this,t),a=kTe(this,t,[r]),on(a,"handleDrag",function(n){a.leaveTimer&&(clearTimeout(a.leaveTimer),a.leaveTimer=null),a.state.isTravellerMoving?a.handleTravellerMove(n):a.state.isSlideMoving&&a.handleSlideDrag(n)}),on(a,"handleTouchMove",function(n){n.changedTouches!=null&&n.changedTouches.length>0&&a.handleDrag(n.changedTouches[0])}),on(a,"handleDragEnd",function(){a.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var n=a.props,i=n.endIndex,o=n.onDragEnd,s=n.startIndex;o?.({endIndex:i,startIndex:s})}),a.detachDragEndListener()}),on(a,"handleLeaveWrapper",function(){(a.state.isTravellerMoving||a.state.isSlideMoving)&&(a.leaveTimer=window.setTimeout(a.handleDragEnd,a.props.leaveTimeOut))}),on(a,"handleEnterSlideOrTraveller",function(){a.setState({isTextActive:!0})}),on(a,"handleLeaveSlideOrTraveller",function(){a.setState({isTextActive:!1})}),on(a,"handleSlideDragStart",function(n){var i=OB(n)?n.changedTouches[0]:n;a.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:i.pageX}),a.attachDragEndListener()}),a.travellerDragStartHandlers={startX:a.handleTravellerDragStart.bind(a,"startX"),endX:a.handleTravellerDragStart.bind(a,"endX")},a.state={},a}
vendor: 117,763 bytes, lines 1273-1278
1273return RTe(t,e),TTe(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(a){var n=a.startX,i=a.endX,o=this.state.scaleValues,s=this.props,c=s.gap,u=s.data,h=u.length-1,f=Math.min(n,i),m=Math.max(n,i),x=t.getIndexInRange(o,f),v=t.getIndexInRange(o,m);return{startIndex:x-x%c,endIndex:v===h?h:v-v%c}}},{key:"getTextOfTick",value:function(a){var n=this.props,i=n.data,o=n.tickFormatter,s=n.dataKey,c=Gr(i[a],s,a);return gt(o)?o(c,a):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(a){var n=this.state,i=n.slideMoveStartX,o=n.startX,s=n.endX,c=this.props,u=c.x,h=c.width,f=c.travellerWidth,m=c.startIndex,x=c.endIndex,v=c.onChange,y=a.pageX-i;y>0?y=Math.min(y,u+h-f-s,u+h-f-o):y<0&&(y=Math.max(y,u-o,u-s));var b=this.getIndex({startX:o+y,endX:s+y});(b.startIndex!==m||b.endIndex!==x)&&v&&v(b),this.setState({startX:o+y,endX:s+y,slideMoveStartX:a.pageX})}},{key:"handleTravellerDragStart",value:function(a,n){var i=OB(n)?n.changedTouches[0]:n;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:a,brushMoveStartX:i.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(a){var n=this.state,i=n.brushMoveStartX,o=n.movingTravellerId,s=n.endX,c=n.startX,u=this.state[o],h=this.props,f=h.x,m=h.width,x=h.travellerWidth,v=h.onChange,y=h.gap,b=h.data,S={startX:this.state.startX,endX:this.state.endX},A=a.pageX-i;A>0?A=Math.min(A,f+m-x-u):A<0&&(A=Math.max(A,f-u)),S[o]=u+A;var E=this.getIndex(S),j=E.startIndex,P=E.endIndex,C=function(){var O=b.length-1;return o==="startX"&&(s>c?j%y===0:P%y===0)||s<c&&P===O||o==="endX"&&(s>c?P%y===0:j%y===0)||s>c&&P===O};this.setState(on(on({},o,u+A),"brushMoveStartX",a.pageX),function(){v&&C()&&v(E)})}},{key:"handleTravellerMoveKeyboard",value:function(a,n){var i=this,o=this.state,s=o.scaleValues,c=o.startX,u=o.endX,h=this.state[n],f=s.indexOf(h);if(f!==-1){var m=f+a;if(!(m===-1||m>=s.length)){var x=s[m];n==="startX"&&x>=u||n==="endX"&&x<=c||this.setState(on({},n,x),function(){i.props.onChange(i.getIndex({startX:i.state.startX,endX:i.state.endX}))})}}}},{key:"renderBackground",value:function(){var a=this.props,n=a.x,i=a.y,o=a.width,s=a.height,c=a.fill,u=a.stroke;return de.createElement("rect",{stroke:u,fill:c,x:n,y:i,width:o,height:s})}},{key:"renderPanorama",value:function(){var a=this.props,n=a.x,i=a.y,o=a.width,s=a.height,c=a.data,u=a.children,h=a.padding,f=L.Children.only(u);return f?de.cloneElement(f,{x:n,y:i,width:o,height:s,margin:h,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(a,n){var i,o,s=this,c=this.props,u=c.y,h=c.travellerWidth,f=c.height,m=c.traveller,x=c.ariaLabel,v=c.data,y=c.startIndex,b=c.endIndex,S=Math.max(a,this.props.x),A=LA(LA({},lt(this.props,!1)),{},{x:S,y:u,width:h,height:f}),E=x||"Min value: ".concat((i=v[y])===null||i===void 0?void 0:i.name,", Max value: ").concat((o=v[b])===null||o===void 0?void 0:o.name);return de.createElement(Ht,{tabIndex:0,role:"slider","aria-label":E,"aria-valuenow":a,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[n],onTouchStart:this.travellerDragStartHandlers[n],onKeyDown:function(P){["ArrowLeft","ArrowRight"].includes(P.key)&&(P.preventDefault(),P.stopPropagation(),s.handleTravellerMoveKeyboard(P.key==="ArrowRight"?1:-1,n))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(m,A))}},{key:"renderSlide",value:function(a,n){var i=this.props,o=i.y,s=i.height,c=i.stroke,u=i.travellerWidth,h=Math.min(a,n)+u,f=Math.max(Math.abs(n-a)-u,0);return de.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:h,y:o,width:f,height:s})}},{key:"renderText",value:function(){var a=this.props,n=a.startIndex,i=a.endIndex,o=a.y,s=a.height,c=a.travellerWidth,u=a.stroke,h=this.state,f=h.startX,m=h.endX,x=5,v={pointerEvents:"none",fill:u};return de.createElement(Ht,{className:"recharts-brush-texts"},de.createElement(Hl,Ov({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,m)-x,y:o+s/2},v),this.getTextOfTick(n)),de.createElement(Hl,Ov({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,m)+c+x,y:o+s/2},v),this.getTextOfTick(i)))}},{key:"render",value:function(){var a=this.props,n=a.data,i=a.className,o=a.children,s=a.x,c=a.y,u=a.width,h=a.height,f=a.alwaysShowText,m=this.state,x=m.startX,v=m.endX,y=m.isTextActive,b=m.isSlideMoving,S=m.isTravellerMoving,A=m.isTravellerFocused;if(!n||!n.length||!Ue(s)||!Ue(c)||!Ue(u)||!Ue(h)||u<=0||h<=0)return null;var E=wt("recharts-brush",i),j=de.Children.count(o)===1,P=jTe("userSelect","none");return de.createElement(Ht,{className:E,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:P},this.renderBackground(),j&&this.renderPanorama(),this.renderSlide(x,v),this.renderTravellerLayer(x,"startX"),this.renderTravellerLayer(v,"endX"),(y||b||S||A||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(a){var n=a.x,i=a.y,o=a.width,s=a.height,c=a.stroke,u=Math.floor(i+s/2)-1;return de.createElement(de.Fragment,null,de.createElement("rect",{x:n,y:i,width:o,height:s,fill:c,stroke:"none"}),de.createElement("line",{x1:n+1,y1:u,x2:n+o-1,y2:u,fill:"none",stroke:"#fff"}),de.createElement("line",{x1:n+1,y1:u+2,x2:n+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(a,n){var i;return de.isValidElement(a)?i=de.cloneElement(a,n):gt(a)?i=a(n):i=t.renderDefaultTraveller(n),i}},{key:"getDerivedStateFromProps",value:function(a,n){var i=a.data,o=a.width,s=a.x,c=a.travellerWidth,u=a.updateId,h=a.startIndex,f=a.endIndex;if(i!==n.prevData||u!==n.prevUpdateId)return LA({prevData:i,prevTravellerWidth:c,prevUpdateId:u,prevX:s,prevWidth:o},i&&i.length?MTe({data:i,width:o,x:s,travellerWidth:c,startIndex:h,endIndex:f}):{scale:null,scaleValues:null});if(n.scale&&(o!==n.prevWidth||s!==n.prevX||c!==n.prevTravellerWidth)){n.scale.range([s,s+o-c]);var m=n.scale.domain().map(function(x){return n.scale(x)});return{prevData:i,prevTravellerWidth:c,prevUpdateId:u,prevX:s,prevWidth:o,startX:n.scale(a.startIndex),endX:n.scale(a.endIndex),scaleValues:m}}return null}},{key:"getIndexInRange",value:function(a,n){for(var i=a.length,o=0,s=i-1;s-o>1;){var c=Math.floor((o+s)/2);a[c]>n?s=c:o=c}return n>=a[s]?s:o}}])})(L.PureComponent);on(nd,"displayName","Brush");on(nd,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var zA,MB;function ITe(){if(MB)return zA;MB=1;var e=hT();function t(r,a){var n;return e(r,function(i,o,s){return n=a(i,o,s),!n}),!!n}return zA=t,zA}var FA,IB;function BTe(){if(IB)return FA;IB=1;var e=pU(),t=Li(),r=ITe(),a=Wa(),n=Fy();function i(o,s,c){var u=a(o)?e:r;return c&&n(o,s,c)&&(s=void 0),u(o,t(s,3))}return FA=i,FA}var LTe=BTe();const zTe=qt(LTe);var Pi=function(t,r){var a=t.alwaysShow,n=t.ifOverflow;return a&&(n="extendDomain"),n===r},$A,BB;function FTe(){if(BB)return $A;BB=1;var e=DU();function t(r,a,n){a=="__proto__"&&e?e(r,a,{configurable:!0,enumerable:!0,value:n,writable:!0}):r[a]=n}return $A=t,$A}var qA,LB;function $Te(){if(LB)return qA;LB=1;var e=FTe(),t=TU(),r=Li();function a(n,i){var o={};return i=r(i,3),t(n,function(s,c,u){e(o,c,i(s,c,u))}),o}return qA=a,qA}var qTe=$Te();const VTe=qt(qTe);var VA,zB;function UTe(){if(zB)return VA;zB=1;function e(t,r){for(var a=-1,n=t==null?0:t.length;++a<n;)if(!r(t[a],a,t))return!1;return!0}return VA=e,VA}var UA,FB;function HTe(){if(FB)return UA;FB=1;var e=hT();function t(r,a){var n=!0;return e(r,function(i,o,s){return n=!!a(i,o,s),n}),n}return UA=t,UA}var HA,$B;function GTe(){if($B)return HA;$B=1;var e=UTe(),t=HTe(),r=Li(),a=Wa(),n=Fy();function i(o,s,c){var u=a(o)?e:t;return c&&n(o,s,c)&&(s=void 0),u(o,r(s,3))}return HA=i,HA}var KTe=GTe();const vG=qt(KTe);var WTe=["x","y"];function bh(e){"@babel/helpers - typeof";return bh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bh(e)}function ej(){return ej=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},ej.apply(this,arguments)}function qB(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function ep(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qB(Object(r),!0).forEach(function(a){XTe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qB(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function XTe(e,t,r){return t=YTe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YTe(e){var t=ZTe(e,"string");return bh(t)=="symbol"?t:t+""}function ZTe(e,t){if(bh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(bh(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function JTe(e,t){if(e==null)return{};var r=QTe(e,t),a,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)a=i[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function QTe(e,t){if(e==null)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}function eke(e,t){var r=e.x,a=e.y,n=JTe(e,WTe),i="".concat(r),o=parseInt(i,10),s="".concat(a),c=parseInt(s,10),u="".concat(t.height||n.height),h=parseInt(u,10),f="".concat(t.width||n.width),m=parseInt(f,10);return ep(ep(ep(ep(ep({},t),n),o?{x:o}:{}),c?{y:c}:{}),{},{height:h,width:m,name:t.name,radius:t.radius})}function VB(e){return de.createElement(dG,ej({shapeType:"rectangle",propTransformer:eke,activeClassName:"recharts-active-bar"},e))}var tke=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(a,n){if(typeof t=="number")return t;var i=Ue(a)||Aye(a);return i?t(a,n):(i||Kl(),r)}},rke=["value","background"],yG;function id(e){"@babel/helpers - typeof";return id=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},id(e)}function ake(e,t){if(e==null)return{};var r=nke(e,t),a,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)a=i[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function nke(e,t){if(e==null)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}function Iv(){return Iv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Iv.apply(this,arguments)}function UB(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function Lr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?UB(Object(r),!0).forEach(function(a){vs(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):UB(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function ike(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HB(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,wG(a.key),a)}}function oke(e,t,r){return t&&HB(e.prototype,t),r&&HB(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ske(e,t,r){return t=Bv(t),lke(e,bG()?Reflect.construct(t,r||[],Bv(e).constructor):t.apply(e,r))}function lke(e,t){if(t&&(id(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cke(e)}function cke(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bG=function(){return!!e})()}function Bv(e){return Bv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Bv(e)}function uke(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tj(e,t)}function tj(e,t){return tj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},tj(e,t)}function vs(e,t,r){return t=wG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wG(e){var t=dke(e,"string");return id(t)=="symbol"?t:t+""}function dke(e,t){if(id(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(id(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ji=(function(e){function t(){var r;ike(this,t);for(var a=arguments.length,n=new Array(a),i=0;i<a;i++)n[i]=arguments[i];return r=ske(this,t,[].concat(n)),vs(r,"state",{isAnimationFinished:!1}),vs(r,"id",Od("recharts-bar-")),vs(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),vs(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return uke(t,e),oke(t,[{key:"renderRectanglesStatically",value:function(a){var n=this,i=this.props,o=i.shape,s=i.dataKey,c=i.activeIndex,u=i.activeBar,h=lt(this.props,!1);return a&&a.map(function(f,m){var x=m===c,v=x?u:o,y=Lr(Lr(Lr({},h),f),{},{isActive:x,option:v,index:m,dataKey:s,onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd});return de.createElement(Ht,Iv({className:"recharts-bar-rectangle"},Ul(n.props,f,m),{key:"rectangle-".concat(f?.x,"-").concat(f?.y,"-").concat(f?.value,"-").concat(m)}),de.createElement(VB,y))})}},{key:"renderRectanglesWithAnimation",value:function(){var a=this,n=this.props,i=n.data,o=n.layout,s=n.isAnimationActive,c=n.animationBegin,u=n.animationDuration,h=n.animationEasing,f=n.animationId,m=this.state.prevData;return de.createElement(Ri,{begin:c,duration:u,isActive:s,easing:h,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(x){var v=x.t,y=i.map(function(b,S){var A=m&&m[S];if(A){var E=cn(A.x,b.x),j=cn(A.y,b.y),P=cn(A.width,b.width),C=cn(A.height,b.height);return Lr(Lr({},b),{},{x:E(v),y:j(v),width:P(v),height:C(v)})}if(o==="horizontal"){var N=cn(0,b.height),O=N(v);return Lr(Lr({},b),{},{y:b.y+b.height-O,height:O})}var k=cn(0,b.width),B=k(v);return Lr(Lr({},b),{},{width:B})});return de.createElement(Ht,null,a.renderRectanglesStatically(y))})}},{key:"renderRectangles",value:function(){var a=this.props,n=a.data,i=a.isAnimationActive,o=this.state.prevData;return i&&n&&n.length&&(!o||!tm(o,n))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(n)}},{key:"renderBackground",value:function(){var a=this,n=this.props,i=n.data,o=n.dataKey,s=n.activeIndex,c=lt(this.props.background,!1);return i.map(function(u,h){u.value;var f=u.background,m=ake(u,rke);if(!f)return null;var x=Lr(Lr(Lr(Lr(Lr({},m),{},{fill:"#eee"},f),c),Ul(a.props,u,h)),{},{onAnimationStart:a.handleAnimationStart,onAnimationEnd:a.handleAnimationEnd,dataKey:o,index:h,className:"recharts-bar-background-rectangle"});return de.createElement(VB,Iv({key:"background-bar-".concat(h),option:a.props.background,isActive:h===s},x))})}},{key:"renderErrorBar",value:function(a,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.data,s=i.xAxis,c=i.yAxis,u=i.layout,h=i.children,f=gn(h,rm);if(!f)return null;var m=u==="vertical"?o[0].height/2:o[0].width/2,x=function(b,S){var A=Array.isArray(b.value)?b.value[1]:b.value;return{x:b.x,y:b.y,value:A,errorVal:Gr(b,S)}},v={clipPath:a?"url(#clipPath-".concat(n,")"):null};return de.createElement(Ht,v,f.map(function(y){return de.cloneElement(y,{key:"error-bar-".concat(n,"-").concat(y.props.dataKey),data:o,xAxis:s,yAxis:c,layout:u,offset:m,dataPointFormatter:x})}))}},{key:"render",value:function(){var a=this.props,n=a.hide,i=a.data,o=a.className,s=a.xAxis,c=a.yAxis,u=a.left,h=a.top,f=a.width,m=a.height,x=a.isAnimationActive,v=a.background,y=a.id;if(n||!i||!i.length)return null;var b=this.state.isAnimationFinished,S=wt("recharts-bar",o),A=s&&s.allowDataOverflow,E=c&&c.allowDataOverflow,j=A||E,P=yt(y)?this.id:y;return de.createElement(Ht,{className:S},A||E?de.createElement("defs",null,de.createElement("clipPath",{id:"clipPath-".concat(P)},de.createElement("rect",{x:A?u:u-f/2,y:E?h:h-m/2,width:A?f:f*2,height:E?m:m*2}))):null,de.createElement(Ht,{className:"recharts-bar-rectangles",clipPath:j?"url(#clipPath-".concat(P,")"):null},v?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(j,P),(!x||b)&&So.renderCallByParent(this.props,i))}}],[{key:"getDerivedStateFromProps",value:function(a,n){return a.animationId!==n.prevAnimationId?{prevAnimationId:a.animationId,curData:a.data,prevData:n.curData}:a.data!==n.curData?{curData:a.data}:null}}])})(L.PureComponent);yG=ji;vs(ji,"displayName","Bar");vs(ji,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!rc.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});vs(ji,"getComposedData",function(e){var t=e.props,r=e.item,a=e.barPosition,n=e.bandSize,i=e.xAxis,o=e.yAxis,s=e.xAxisTicks,c=e.yAxisTicks,u=e.stackedData,h=e.dataStartIndex,f=e.displayedData,m=e.offset,x=zAe(a,r);if(!x)return null;var v=t.layout,y=r.type.defaultProps,b=y!==void 0?Lr(Lr({},y),r.props):r.props,S=b.dataKey,A=b.children,E=b.minPointSize,j=v==="horizontal"?o:i,P=u?j.scale.domain():null,C=GAe({numericAxis:j}),N=gn(A,Yh),O=f.map(function(k,B){var $,_,W,D,J,z;u?$=FAe(u[h+B],P):($=Gr(k,S),Array.isArray($)||($=[C,$]));var V=tke(E,yG.defaultProps.minPointSize)($[1],B);if(v==="horizontal"){var Z,te=[o.scale($[0]),o.scale($[1])],K=te[0],q=te[1];_=g9({axis:i,ticks:s,bandSize:n,offset:x.offset,entry:k,index:B}),W=(Z=q??K)!==null&&Z!==void 0?Z:void 0,D=x.size;var X=K-q;if(J=Number.isNaN(X)?0:X,z={x:_,y:o.y,width:D,height:o.height},Math.abs(V)>0&&Math.abs(J)<Math.abs(V)){var U=ja(J||V)*(Math.abs(V)-Math.abs(J));W-=U,J+=U}}else{var ie=[i.scale($[0]),i.scale($[1])],se=ie[0],he=ie[1];if(_=se,W=g9({axis:o,ticks:c,bandSize:n,offset:x.offset,entry:k,index:B}),D=he-se,J=x.size,z={x:i.x,y:W,width:i.width,height:J},Math.abs(V)>0&&Math.abs(D)<Math.abs(V)){var Y=ja(D||V)*(Math.abs(V)-Math.abs(D));D+=Y}}return Lr(Lr(Lr({},k),{},{x:_,y:W,width:D,height:J,value:u?$:$[1],payload:k,background:z},N&&N[B]&&N[B].props),{},{tooltipPayload:[KH(r,k)],tooltipPosition:{x:_+D/2,y:W+J/2}})});return Lr({data:O,layout:v},m)});function wh(e){"@babel/helpers - typeof";return wh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wh(e)}function fke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GB(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,SG(a.key),a)}}function pke(e,t,r){return t&&GB(e.prototype,t),r&&GB(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function KB(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function Zn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?KB(Object(r),!0).forEach(function(a){ib(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):KB(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function ib(e,t,r){return t=SG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SG(e){var t=hke(e,"string");return wh(t)=="symbol"?t:t+""}function hke(e,t){if(wh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(wh(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var EG=function(t,r,a,n,i){var o=t.width,s=t.height,c=t.layout,u=t.children,h=Object.keys(r),f={left:a.left,leftMirror:a.left,right:o-a.right,rightMirror:o-a.right,top:a.top,topMirror:a.top,bottom:s-a.bottom,bottomMirror:s-a.bottom},m=!!sn(u,ji);return h.reduce(function(x,v){var y=r[v],b=y.orientation,S=y.domain,A=y.padding,E=A===void 0?{}:A,j=y.mirror,P=y.reversed,C="".concat(b).concat(j?"Mirror":""),N,O,k,B,$;if(y.type==="number"&&(y.padding==="gap"||y.padding==="no-gap")){var _=S[1]-S[0],W=1/0,D=y.categoricalDomain.sort(jye);if(D.forEach(function(ie,se){se>0&&(W=Math.min((ie||0)-(D[se-1]||0),W))}),Number.isFinite(W)){var J=W/_,z=y.layout==="vertical"?a.height:a.width;if(y.padding==="gap"&&(N=J*z/2),y.padding==="no-gap"){var V=Na(t.barCategoryGap,J*z),Z=J*z/2;N=Z-V-(Z-V)/z*V}}}n==="xAxis"?O=[a.left+(E.left||0)+(N||0),a.left+a.width-(E.right||0)-(N||0)]:n==="yAxis"?O=c==="horizontal"?[a.top+a.height-(E.bottom||0),a.top+(E.top||0)]:[a.top+(E.top||0)+(N||0),a.top+a.height-(E.bottom||0)-(N||0)]:O=y.range,P&&(O=[O[1],O[0]]);var te=VH(y,i,m),K=te.scale,q=te.realScaleType;K.domain(S).range(O),UH(K);var X=HH(K,Zn(Zn({},y),{},{realScaleType:q}));n==="xAxis"?($=b==="top"&&!j||b==="bottom"&&j,k=a.left,B=f[C]-$*y.height):n==="yAxis"&&($=b==="left"&&!j||b==="right"&&j,k=f[C]-$*y.width,B=a.top);var U=Zn(Zn(Zn({},y),X),{},{realScaleType:q,x:k,y:B,scale:K,width:n==="xAxis"?a.width:y.width,height:n==="yAxis"?a.height:y.height});return U.bandSize=bv(U,X),!y.hide&&n==="xAxis"?f[C]+=($?-1:1)*U.height:y.hide||(f[C]+=($?-1:1)*U.width),Zn(Zn({},x),{},ib({},v,U))},{})},AG=function(t,r){var a=t.x,n=t.y,i=r.x,o=r.y;return{x:Math.min(a,i),y:Math.min(n,o),width:Math.abs(i-a),height:Math.abs(o-n)}},mke=function(t){var r=t.x1,a=t.y1,n=t.x2,i=t.y2;return AG({x:r,y:a},{x:n,y:i})},CG=(function(){function e(t){fke(this,e),this.scale=t}return pke(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=a.bandAware,i=a.position;if(r!==void 0){if(i)switch(i){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(n){var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+c}return this.scale(r)}}},{key:"isInRange",value:function(r){var a=this.range(),n=a[0],i=a[a.length-1];return n<=i?r>=n&&r<=i:r>=i&&r<=n}}],[{key:"create",value:function(r){return new e(r)}}])})();ib(CG,"EPS",1e-4);var VT=function(t){var r=Object.keys(t).reduce(function(a,n){return Zn(Zn({},a),{},ib({},n,CG.create(t[n])))},{});return Zn(Zn({},r),{},{apply:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.bandAware,s=i.position;return VTe(n,function(c,u){return r[u].apply(c,{bandAware:o,position:s})})},isInRange:function(n){return vG(n,function(i,o){return r[o].isInRange(i)})}})};function gke(e){return(e%180+180)%180}var xke=function(t){var r=t.width,a=t.height,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=gke(n),o=i*Math.PI/180,s=Math.atan(a/r),c=o>s&&o<Math.PI-s?a/Math.sin(o):r/Math.cos(o);return Math.abs(c)},GA,WB;function vke(){if(WB)return GA;WB=1;var e=Li(),t=Xh(),r=Ly();function a(n){return function(i,o,s){var c=Object(i);if(!t(i)){var u=e(o,3);i=r(i),o=function(f){return u(c[f],f,c)}}var h=n(i,o,s);return h>-1?c[u?i[h]:h]:void 0}}return GA=a,GA}var KA,XB;function yke(){if(XB)return KA;XB=1;var e=hG();function t(r){var a=e(r),n=a%1;return a===a?n?a-n:a:0}return KA=t,KA}var WA,YB;function bke(){if(YB)return WA;YB=1;var e=AU(),t=Li(),r=yke(),a=Math.max;function n(i,o,s){var c=i==null?0:i.length;if(!c)return-1;var u=s==null?0:r(s);return u<0&&(u=a(c+u,0)),e(i,t(o,3),u)}return WA=n,WA}var XA,ZB;function wke(){if(ZB)return XA;ZB=1;var e=vke(),t=bke(),r=e(t);return XA=r,XA}var Ske=wke();const Eke=qt(Ske);var Ake=FV();const Cke=qt(Ake);var Pke=Cke(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),UT=L.createContext(void 0),HT=L.createContext(void 0),PG=L.createContext(void 0),jG=L.createContext({}),NG=L.createContext(void 0),TG=L.createContext(0),kG=L.createContext(0),JB=function(t){var r=t.state,a=r.xAxisMap,n=r.yAxisMap,i=r.offset,o=t.clipPathId,s=t.children,c=t.width,u=t.height,h=Pke(i);return de.createElement(UT.Provider,{value:a},de.createElement(HT.Provider,{value:n},de.createElement(jG.Provider,{value:i},de.createElement(PG.Provider,{value:h},de.createElement(NG.Provider,{value:o},de.createElement(TG.Provider,{value:u},de.createElement(kG.Provider,{value:c},s)))))))},jke=function(){return L.useContext(NG)},DG=function(t){var r=L.useContext(UT);r==null&&Kl();var a=r[t];return a==null&&Kl(),a},Nke=function(){var t=L.useContext(UT);return ms(t)},Tke=function(){var t=L.useContext(HT),r=Eke(t,function(a){return vG(a.domain,Number.isFinite)});return r||ms(t)},_G=function(t){var r=L.useContext(HT);r==null&&Kl();var a=r[t];return a==null&&Kl(),a},kke=function(){var t=L.useContext(PG);return t},Dke=function(){return L.useContext(jG)},GT=function(){return L.useContext(kG)},KT=function(){return L.useContext(TG)};function od(e){"@babel/helpers - typeof";return od=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},od(e)}function _ke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rke(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,OG(a.key),a)}}function Oke(e,t,r){return t&&Rke(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Mke(e,t,r){return t=Lv(t),Ike(e,RG()?Reflect.construct(t,r||[],Lv(e).constructor):t.apply(e,r))}function Ike(e,t){if(t&&(od(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bke(e)}function Bke(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(RG=function(){return!!e})()}function Lv(e){return Lv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Lv(e)}function Lke(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rj(e,t)}function rj(e,t){return rj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},rj(e,t)}function QB(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function eL(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?QB(Object(r),!0).forEach(function(a){WT(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):QB(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function WT(e,t,r){return t=OG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OG(e){var t=zke(e,"string");return od(t)=="symbol"?t:t+""}function zke(e,t){if(od(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(od(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Fke(e,t){return Uke(e)||Vke(e,t)||qke(e,t)||$ke()}function $ke(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1274In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qke(e,t){if(e){if(typeof e=="string")return tL(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tL(e,t)}}function tL(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function Vke(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,n,i,o,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(c=(a=i.call(r)).done)&&(s.push(a.value),s.length!==t);c=!0);}catch(h){u=!0,n=h}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw n}}return s}}function Uke(e){if(Array.isArray(e))return e}function aj(){return aj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},aj.apply(this,arguments)}var Hke=function(t,r){var a;return de.isValidElement(t)?a=de.cloneElement(t,r):gt(t)?a=t(r):a=de.createElement("line",aj({},r,{className:"recharts-reference-line-line"})),a},Gke=function(t,r,a,n,i,o,s,c,u){var h=i.x,f=i.y,m=i.width,x=i.height;if(a){var v=u.y,y=t.y.apply(v,{position:o});if(Pi(u,"discard")&&!t.y.isInRange(y))return null;var b=[{x:h+m,y},{x:h,y}];return c==="left"?b.reverse():b}if(r){var S=u.x,A=t.x.apply(S,{position:o});if(Pi(u,"discard")&&!t.x.isInRange(A))return null;var E=[{x:A,y:f+x},{x:A,y:f}];return s==="top"?E.reverse():E}if(n){var j=u.segment,P=j.map(function(C){return t.apply(C,{position:o})});return Pi(u,"discard")&&zTe(P,function(C){return!t.isInRange(C)})?null:P}return null};function Kke(e){var t=e.x,r=e.y,a=e.segment,n=e.xAxisId,i=e.yAxisId,o=e.shape,s=e.className,c=e.alwaysShow,u=jke(),h=DG(n),f=_G(i),m=kke();if(!u||!m)return null;ri(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var x=VT({x:h.scale,y:f.scale}),v=Wr(t),y=Wr(r),b=a&&a.length===2,S=Gke(x,v,y,b,m,e.position,h.orientation,f.orientation,e);if(!S)return null;var A=Fke(S,2),E=A[0],j=E.x,P=E.y,C=A[1],N=C.x,O=C.y,k=Pi(e,"hidden")?"url(#".concat(u,")"):void 0,B=eL(eL({clipPath:k},lt(e,!0)),{},{x1:j,y1:P,x2:N,y2:O});return de.createElement(Ht,{className:wt("recharts-reference-line",s)},Hke(o,B),ea.renderCallByParent(e,mke({x1:j,y1:P,x2:N,y2:O})))}var XT=(function(e){function t(){return _ke(this,t),Mke(this,t,arguments)}return Lke(t,e),Oke(t,[{key:"render",value:function(){return de.createElement(Kke,this.props)}}])})(de.Component);WT(XT,"displayName","ReferenceLine");WT(XT,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function nj(){return nj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},nj.apply(this,arguments)}function sd(e){"@babel/helpers - typeof";return sd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sd(e)}function rL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function aL(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rL(Object(r),!0).forEach(function(a){ob(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rL(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function Wke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xke(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,IG(a.key),a)}}function Yke(e,t,r){return t&&Xke(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zke(e,t,r){return t=zv(t),Jke(e,MG()?Reflect.construct(t,r||[],zv(e).constructor):t.apply(e,r))}function Jke(e,t){if(t&&(sd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qke(e)}function Qke(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(MG=function(){return!!e})()}function zv(e){return zv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zv(e)}function eDe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ij(e,t)}function ij(e,t){return ij=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},ij(e,t)}function ob(e,t,r){return t=IG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IG(e){var t=tDe(e,"string");return sd(t)=="symbol"?t:t+""}function tDe(e,t){if(sd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(sd(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var rDe=function(t){var r=t.x,a=t.y,n=t.xAxis,i=t.yAxis,o=VT({x:n.scale,y:i.scale}),s=o.apply({x:r,y:a},{bandAware:!0});return Pi(t,"discard")&&!o.isInRange(s)?null:s},sb=(function(e){function t(){return Wke(this,t),Zke(this,t,arguments)}return eDe(t,e),Yke(t,[{key:"render",value:function(){var a=this.props,n=a.x,i=a.y,o=a.r,s=a.alwaysShow,c=a.clipPathId,u=Wr(n),h=Wr(i);if(ri(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!h)return null;var f=rDe(this.props);if(!f)return null;var m=f.x,x=f.y,v=this.props,y=v.shape,b=v.className,S=Pi(this.props,"hidden")?"url(#".concat(c,")"):void 0,A=aL(aL({clipPath:S},lt(this.props,!0)),{},{cx:m,cy:x});return de.createElement(Ht,{className:wt("recharts-reference-dot",b)},t.renderDot(y,A),ea.renderCallByParent(this.props,{x:m-o,y:x-o,width:2*o,height:2*o}))}}])})(de.Component);ob(sb,"displayName","ReferenceDot");ob(sb,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});ob(sb,"renderDot",function(e,t){var r;return de.isValidElement(e)?r=de.cloneElement(e,t):gt(e)?r=e(t):r=de.createElement(Jy,nj({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function oj(){return oj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},oj.apply(this,arguments)}function ld(e){"@babel/helpers - typeof";return ld=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ld(e)}function nL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function iL(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nL(Object(r),!0).forEach(function(a){lb(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nL(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function aDe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nDe(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,LG(a.key),a)}}function iDe(e,t,r){return t&&nDe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function oDe(e,t,r){return t=Fv(t),sDe(e,BG()?Reflect.construct(t,r||[],Fv(e).constructor):t.apply(e,r))}function sDe(e,t){if(t&&(ld(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lDe(e)}function lDe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function BG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(BG=function(){return!!e})()}function Fv(e){return Fv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fv(e)}function cDe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sj(e,t)}function sj(e,t){return sj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},sj(e,t)}function lb(e,t,r){return t=LG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LG(e){var t=uDe(e,"string");return ld(t)=="symbol"?t:t+""}function uDe(e,t){if(ld(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(ld(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var dDe=function(t,r,a,n,i){var o=i.x1,s=i.x2,c=i.y1,u=i.y2,h=i.xAxis,f=i.yAxis;if(!h||!f)return null;var m=VT({x:h.scale,y:f.scale}),x={x:t?m.x.apply(o,{position:"start"}):m.x.rangeMin,y:a?m.y.apply(c,{position:"start"}):m.y.rangeMin},v={x:r?m.x.apply(s,{position:"end"}):m.x.rangeMax,y:n?m.y.apply(u,{position:"end"}):m.y.rangeMax};return Pi(i,"discard")&&(!m.isInRange(x)||!m.isInRange(v))?null:AG(x,v)},cb=(function(e){function t(){return aDe(this,t),oDe(this,t,arguments)}return cDe(t,e),iDe(t,[{key:"render",value:function(){var a=this.props,n=a.x1,i=a.x2,o=a.y1,s=a.y2,c=a.className,u=a.alwaysShow,h=a.clipPathId;ri(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=Wr(n),m=Wr(i),x=Wr(o),v=Wr(s),y=this.props.shape;if(!f&&!m&&!x&&!v&&!y)return null;var b=dDe(f,m,x,v,this.props);if(!b&&!y)return null;var S=Pi(this.props,"hidden")?"url(#".concat(h,")"):void 0;return de.createElement(Ht,{className:wt("recharts-reference-area",c)},t.renderRect(y,iL(iL({clipPath:S},lt(this.props,!0)),b)),ea.renderCallByParent(this.props,b))}}])})(de.Component);lb(cb,"displayName","ReferenceArea");lb(cb,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});lb(cb,"renderRect",function(e,t){var r;return de.isValidElement(e)?r=de.cloneElement(e,t):gt(e)?r=e(t):r=de.createElement(qT,oj({},t,{className:"recharts-reference-area-rect"})),r});function zG(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var a=[],n=0;n<e.length;n+=t)a.push(e[n]);return a}function fDe(e,t,r){var a={width:e.width+t.width,height:e.height+t.height};return xke(a,r)}function pDe(e,t,r){var a=r==="width",n=e.x,i=e.y,o=e.width,s=e.height;return t===1?{start:a?n:i,end:a?n+o:i+s}:{start:a?n+o:i+s,end:a?n:i}}function $v(e,t,r,a,n){if(e*t<e*a||e*t>e*n)return!1;var i=r();return e*(t-e*i/2-a)>=0&&e*(t+e*i/2-n)<=0}function hDe(e,t){return zG(e,t+1)}function mDe(e,t,r,a,n){for(var i=(a||[]).slice(),o=t.start,s=t.end,c=0,u=1,h=o,f=function(){var v=a?.[c];if(v===void 0)return{v:zG(a,u)};var y=c,b,S=function(){return b===void 0&&(b=r(v,y)),b},A=v.coordinate,E=c===0||$v(e,A,S,h,s);E||(c=0,h=o,u+=1),E&&(h=A+e*(S()/2+n),c+=u)},m;u<=i.length;)if(m=f(),m)return m.v;return[]}function Sh(e){"@babel/helpers - typeof";return Sh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sh(e)}function oL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function xa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oL(Object(r),!0).forEach(function(a){gDe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oL(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function gDe(e,t,r){return t=xDe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xDe(e){var t=vDe(e,"string");return Sh(t)=="symbol"?t:t+""}function vDe(e,t){if(Sh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(Sh(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yDe(e,t,r,a,n){for(var i=(a||[]).slice(),o=i.length,s=t.start,c=t.end,u=function(m){var x=i[m],v,y=function(){return v===void 0&&(v=r(x,m)),v};if(m===o-1){var b=e*(x.coordinate+e*y()/2-c);i[m]=x=xa(xa({},x),{},{tickCoord:b>0?x.coordinate-b*e:x.coordinate})}else i[m]=x=xa(xa({},x),{},{tickCoord:x.coordinate});var S=$v(e,x.tickCoord,y,s,c);S&&(c=x.tickCoord-e*(y()/2+n),i[m]=xa(xa({},x),{},{isShow:!0}))},h=o-1;h>=0;h--)u(h);return i}function bDe(e,t,r,a,n,i){var o=(a||[]).slice(),s=o.length,c=t.start,u=t.end;if(i){var h=a[s-1],f=r(h,s-1),m=e*(h.coordinate+e*f/2-u);o[s-1]=h=xa(xa({},h),{},{tickCoord:m>0?h.coordinate-m*e:h.coordinate});var x=$v(e,h.tickCoord,function(){return f},c,u);x&&(u=h.tickCoord-e*(f/2+n),o[s-1]=xa(xa({},h),{},{isShow:!0}))}for(var v=i?s-1:s,y=function(A){var E=o[A],j,P=function(){return j===void 0&&(j=r(E,A)),j};if(A===0){var C=e*(E.coordinate-e*P()/2-c);o[A]=E=xa(xa({},E),{},{tickCoord:C<0?E.coordinate-C*e:E.coordinate})}else o[A]=E=xa(xa({},E),{},{tickCoord:E.coordinate});var N=$v(e,E.tickCoord,P,c,u);N&&(c=E.tickCoord+e*(P()/2+n),o[A]=xa(xa({},E),{},{isShow:!0}))},b=0;b<v;b++)y(b);return o}function YT(e,t,r){var a=e.tick,n=e.ticks,i=e.viewBox,o=e.minTickGap,s=e.orientation,c=e.interval,u=e.tickFormatter,h=e.unit,f=e.angle;if(!n||!n.length||!a)return[];if(Ue(c)||rc.isSsr)return hDe(n,typeof c=="number"&&Ue(c)?c:0);var m=[],x=s==="top"||s==="bottom"?"width":"height",v=h&&x==="width"?bp(h,{fontSize:t,letterSpacing:r}):{width:0,height:0},y=function(E,j){var P=gt(u)?u(E.value,j):E.value;return x==="width"?fDe(bp(P,{fontSize:t,letterSpacing:r}),v,f):bp(P,{fontSize:t,letterSpacing:r})[x]},b=n.length>=2?ja(n[1].coordinate-n[0].coordinate):1,S=pDe(i,b,x);return c==="equidistantPreserveStart"?mDe(b,S,y,n,o):(c==="preserveStart"||c==="preserveStartEnd"?m=bDe(b,S,y,n,o,c==="preserveStartEnd"):m=yDe(b,S,y,n,o),m.filter(function(A){return A.isShow}))}var wDe=["viewBox"],SDe=["viewBox"],EDe=["ticks"];function cd(e){"@babel/helpers - typeof";return cd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cd(e)}function pu(){return pu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},pu.apply(this,arguments)}function sL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function Vr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sL(Object(r),!0).forEach(function(a){ZT(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sL(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function YA(e,t){if(e==null)return{};var r=ADe(e,t),a,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)a=i[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function ADe(e,t){if(e==null)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}function CDe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lL(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,$G(a.key),a)}}function PDe(e,t,r){return t&&lL(e.prototype,t),r&&lL(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function jDe(e,t,r){return t=qv(t),NDe(e,FG()?Reflect.construct(t,r||[],qv(e).constructor):t.apply(e,r))}function NDe(e,t){if(t&&(cd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return TDe(e)}function TDe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(FG=function(){return!!e})()}function qv(e){return qv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qv(e)}function kDe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lj(e,t)}function lj(e,t){return lj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},lj(e,t)}function ZT(e,t,r){return t=$G(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $G(e){var t=DDe(e,"string");return cd(t)=="symbol"?t:t+""}function DDe(e,t){if(cd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(cd(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var zd=(function(e){function t(r){var a;return CDe(this,t),a=jDe(this,t,[r]),a.state={fontSize:"",letterSpacing:""},a}return kDe(t,e),PDe(t,[{key:"shouldComponentUpdate",value:function(a,n){var i=a.viewBox,o=YA(a,wDe),s=this.props,c=s.viewBox,u=YA(s,SDe);return!Cu(i,c)||!Cu(o,u)||!Cu(n,this.state)}},{key:"componentDidMount",value:function(){var a=this.layerReference;if(a){var n=a.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];n&&this.setState({fontSize:window.getComputedStyle(n).fontSize,letterSpacing:window.getComputedStyle(n).letterSpacing})}}},{key:"getTickLineCoord",value:function(a){var n=this.props,i=n.x,o=n.y,s=n.width,c=n.height,u=n.orientation,h=n.tickSize,f=n.mirror,m=n.tickMargin,x,v,y,b,S,A,E=f?-1:1,j=a.tickSize||h,P=Ue(a.tickCoord)?a.tickCoord:a.coordinate;switch(u){case"top":x=v=a.coordinate,b=o+ +!f*c,y=b-E*j,A=y-E*m,S=P;break;case"left":y=b=a.coordinate,v=i+ +!f*s,x=v-E*j,S=x-E*m,A=P;break;case"right":y=b=a.coordinate,v=i+ +f*s,x=v+E*j,S=x+E*m,A=P;break;default:x=v=a.coordinate,b=o+ +f*c,y=b+E*j,A=y+E*m,S=P;break}return{line:{x1:x,y1:y,x2:v,y2:b},tick:{x:S,y:A}}}},{key:"getTickTextAnchor",value:function(){var a=this.props,n=a.orientation,i=a.mirror,o;switch(n){case"left":o=i?"start":"end";break;case"right":o=i?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var a=this.props,n=a.orientation,i=a.mirror,o="end";switch(n){case"left":case"right":o="middle";break;case"top":o=i?"start":"end";break;default:o=i?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var a=this.props,n=a.x,i=a.y,o=a.width,s=a.height,c=a.orientation,u=a.mirror,h=a.axisLine,f=Vr(Vr(Vr({},lt(this.props,!1)),lt(h,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var m=+(c==="top"&&!u||c==="bottom"&&u);f=Vr(Vr({},f),{},{x1:n,y1:i+m*s,x2:n+o,y2:i+m*s})}else{var x=+(c==="left"&&!u||c==="right"&&u);f=Vr(Vr({},f),{},{x1:n+x*o,y1:i,x2:n+x*o,y2:i+s})}return de.createElement("line",pu({},f,{className:wt("recharts-cartesian-axis-line",mn(h,"className"))}))}},{key:"renderTicks",value:function(a,n,i){var o=this,s=this.props,c=s.tickLine,u=s.stroke,h=s.tick,f=s.tickFormatter,m=s.unit,x=YT(Vr(Vr({},this.props),{},{ticks:a}),n,i),v=this.getTickTextAnchor(),y=this.getTickVerticalAnchor(),b=lt(this.props,!1),S=lt(h,!1),A=Vr(Vr({},b),{},{fill:"none"},lt(c,!1)),E=x.map(function(j,P){var C=o.getTickLineCoord(j),N=C.line,O=C.tick,k=Vr(Vr(Vr(Vr({textAnchor:v,verticalAnchor:y},b),{},{stroke:"none",fill:u},S),O),{},{index:P,payload:j,visibleTicksCount:x.length,tickFormatter:f});return de.createElement(Ht,pu({className:"recharts-cartesian-axis-tick",key:"tick-".concat(j.value,"-").concat(j.coordinate,"-").concat(j.tickCoord)},Ul(o.props,j,P)),c&&de.createElement("line",pu({},A,N,{className:wt("recharts-cartesian-axis-tick-line",mn(c,"className"))})),h&&t.renderTickItem(h,k,"".concat(gt(f)?f(j.value,P):j.value).concat(m||"")))});return de.createElement("g",{className:"recharts-cartesian-axis-ticks"},E)}},{key:"render",value:function(){var a=this,n=this.props,i=n.axisLine,o=n.width,s=n.height,c=n.ticksGenerator,u=n.className,h=n.hide;if(h)return null;var f=this.props,m=f.ticks,x=YA(f,EDe),v=m;return gt(c)&&(v=m&&m.length>0?c(this.props):c(x)),o<=0||s<=0||!v||!v.length?null:de.createElement(Ht,{className:wt("recharts-cartesian-axis",u),ref:function(b){a.layerReference=b}},i&&this.renderAxisLine(),this.renderTicks(v,this.state.fontSize,this.state.letterSpacing),ea.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(a,n,i){var o,s=wt(n.className,"recharts-cartesian-axis-tick-value");return de.isValidElement(a)?o=de.cloneElement(a,Vr(Vr({},n),{},{className:s})):gt(a)?o=a(Vr(Vr({},n),{},{className:s})):o=de.createElement(Hl,pu({},n,{className:"recharts-cartesian-axis-tick-value"}),i),o}}])})(L.Component);ZT(zd,"displayName","CartesianAxis");ZT(zd,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var _De=["x1","y1","x2","y2","key"],RDe=["offset"];function Wl(e){"@babel/helpers - typeof";return Wl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wl(e)}function cL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function ya(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cL(Object(r),!0).forEach(function(a){ODe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cL(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function ODe(e,t,r){return t=MDe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MDe(e){var t=IDe(e,"string");return Wl(t)=="symbol"?t:t+""}function IDe(e,t){if(Wl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(Wl(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cl(){return Cl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Cl.apply(this,arguments)}function uL(e,t){if(e==null)return{};var r=BDe(e,t),a,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)a=i[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function BDe(e,t){if(e==null)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}var LDe=function(t){var r=t.fill;if(!r||r==="none")return null;var a=t.fillOpacity,n=t.x,i=t.y,o=t.width,s=t.height,c=t.ry;return de.createElement("rect",{x:n,y:i,ry:c,width:o,height:s,stroke:"none",fill:r,fillOpacity:a,className:"recharts-cartesian-grid-bg"})};function qG(e,t){var r;if(de.isValidElement(e))r=de.cloneElement(e,t);else if(gt(e))r=e(t);else{var a=t.x1,n=t.y1,i=t.x2,o=t.y2,s=t.key,c=uL(t,_De),u=lt(c,!1);u.offset;var h=uL(u,RDe);r=de.createElement("line",Cl({},h,{x1:a,y1:n,x2:i,y2:o,fill:"none",key:s}))}return r}function zDe(e){var t=e.x,r=e.width,a=e.horizontal,n=a===void 0?!0:a,i=e.horizontalPoints;if(!n||!i||!i.length)return null;var o=i.map(function(s,c){var u=ya(ya({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(c),index:c});return qG(n,u)});return de.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function FDe(e){var t=e.y,r=e.height,a=e.vertical,n=a===void 0?!0:a,i=e.verticalPoints;if(!n||!i||!i.length)return null;var o=i.map(function(s,c){var u=ya(ya({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(c),index:c});return qG(n,u)});return de.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function $De(e){var t=e.horizontalFill,r=e.fillOpacity,a=e.x,n=e.y,i=e.width,o=e.height,s=e.horizontalPoints,c=e.horizontal,u=c===void 0?!0:c;if(!u||!t||!t.length)return null;var h=s.map(function(m){return Math.round(m+n-n)}).sort(function(m,x){return m-x});n!==h[0]&&h.unshift(0);var f=h.map(function(m,x){var v=!h[x+1],y=v?n+o-m:h[x+1]-m;if(y<=0)return null;var b=x%t.length;return de.createElement("rect",{key:"react-".concat(x),y:m,x:a,height:y,width:i,stroke:"none",fill:t[b],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return de.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function qDe(e){var t=e.vertical,r=t===void 0?!0:t,a=e.verticalFill,n=e.fillOpacity,i=e.x,o=e.y,s=e.width,c=e.height,u=e.verticalPoints;if(!r||!a||!a.length)return null;var h=u.map(function(m){return Math.round(m+i-i)}).sort(function(m,x){return m-x});i!==h[0]&&h.unshift(0);var f=h.map(function(m,x){var v=!h[x+1],y=v?i+s-m:h[x+1]-m;if(y<=0)return null;var b=x%a.length;return de.createElement("rect",{key:"react-".concat(x),x:m,y:o,width:y,height:c,stroke:"none",fill:a[b],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return de.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var VDe=function(t,r){var a=t.xAxis,n=t.width,i=t.height,o=t.offset;return qH(YT(ya(ya(ya({},zd.defaultProps),a),{},{ticks:vo(a,!0),viewBox:{x:0,y:0,width:n,height:i}})),o.left,o.left+o.width,r)},UDe=function(t,r){var a=t.yAxis,n=t.width,i=t.height,o=t.offset;return qH(YT(ya(ya(ya({},zd.defaultProps),a),{},{ticks:vo(a,!0),viewBox:{x:0,y:0,width:n,height:i}})),o.top,o.top+o.height,r)},nu={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function VG(e){var t,r,a,n,i,o,s=GT(),c=KT(),u=Dke(),h=ya(ya({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:nu.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:nu.fill,horizontal:(a=e.horizontal)!==null&&a!==void 0?a:nu.horizontal,horizontalFill:(n=e.horizontalFill)!==null&&n!==void 0?n:nu.horizontalFill,vertical:(i=e.vertical)!==null&&i!==void 0?i:nu.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:nu.verticalFill,x:Ue(e.x)?e.x:u.left,y:Ue(e.y)?e.y:u.top,width:Ue(e.width)?e.width:u.width,height:Ue(e.height)?e.height:u.height}),f=h.x,m=h.y,x=h.width,v=h.height,y=h.syncWithTicks,b=h.horizontalValues,S=h.verticalValues,A=Nke(),E=Tke();if(!Ue(x)||x<=0||!Ue(v)||v<=0||!Ue(f)||f!==+f||!Ue(m)||m!==+m)return null;var j=h.verticalCoordinatesGenerator||VDe,P=h.horizontalCoordinatesGenerator||UDe,C=h.horizontalPoints,N=h.verticalPoints;if((!C||!C.length)&>(P)){var O=b&&b.length,k=P({yAxis:E?ya(ya({},E),{},{ticks:O?b:E.ticks}):void 0,width:s,height:c,offset:u},O?!0:y);ri(Array.isArray(k),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Wl(k),"]")),Array.isArray(k)&&(C=k)}if((!N||!N.length)&>(j)){var B=S&&S.length,$=j({xAxis:A?ya(ya({},A),{},{ticks:B?S:A.ticks}):void 0,width:s,height:c,offset:u},B?!0:y);ri(Array.isArray($),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Wl($),"]")),Array.isArray($)&&(N=$)}return de.createElement("g",{className:"recharts-cartesian-grid"},de.createElement(LDe,{fill:h.fill,fillOpacity:h.fillOpacity,x:h.x,y:h.y,width:h.width,height:h.height,ry:h.ry}),de.createElement(zDe,Cl({},h,{offset:u,horizontalPoints:C,xAxis:A,yAxis:E})),de.createElement(FDe,Cl({},h,{offset:u,verticalPoints:N,xAxis:A,yAxis:E})),de.createElement($De,Cl({},h,{horizontalPoints:C})),de.createElement(qDe,Cl({},h,{verticalPoints:N})))}VG.displayName="CartesianGrid";var HDe=["type","layout","connectNulls","ref"],GDe=["key"];function ud(e){"@babel/helpers - typeof";return ud=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ud(e)}function dL(e,t){if(e==null)return{};var r=KDe(e,t),a,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)a=i[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function KDe(e,t){if(e==null)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}function Pp(){return Pp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Pp.apply(this,arguments)}function fL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function nn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fL(Object(r),!0).forEach(function(a){Jn(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fL(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function iu(e){return ZDe(e)||YDe(e)||XDe(e)||WDe()}function WDe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1275In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XDe(e,t){if(e){if(typeof e=="string")return cj(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cj(e,t)}}function YDe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ZDe(e){if(Array.isArray(e))return cj(e)}function cj(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function JDe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pL(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,HG(a.key),a)}}function QDe(e,t,r){return t&&pL(e.prototype,t),r&&pL(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function e_e(e,t,r){return t=Vv(t),t_e(e,UG()?Reflect.construct(t,r||[],Vv(e).constructor):t.apply(e,r))}function t_e(e,t){if(t&&(ud(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return r_e(e)}function r_e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(UG=function(){return!!e})()}function Vv(e){return Vv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Vv(e)}function a_e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uj(e,t)}function uj(e,t){return uj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},uj(e,t)}function Jn(e,t,r){return t=HG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HG(e){var t=n_e(e,"string");return ud(t)=="symbol"?t:t+""}function n_e(e,t){if(ud(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(ud(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var am=(function(e){function t(){var r;JDe(this,t);for(var a=arguments.length,n=new Array(a),i=0;i<a;i++)n[i]=arguments[i];return r=e_e(this,t,[].concat(n)),Jn(r,"state",{isAnimationFinished:!0,totalLength:0}),Jn(r,"generateSimpleStrokeDasharray",function(o,s){return"".concat(s,"px ").concat(o-s,"px")}),Jn(r,"getStrokeDasharray",function(o,s,c){var u=c.reduce(function(S,A){return S+A});if(!u)return r.generateSimpleStrokeDasharray(s,o);for(var h=Math.floor(o/u),f=o%u,m=s-o,x=[],v=0,y=0;v<c.length;y+=c[v],++v)if(y+c[v]>f){x=[].concat(iu(c.slice(0,v)),[f-y]);break}var b=x.length%2===0?[0,m]:[m];return[].concat(iu(t.repeat(c,h)),iu(x),b).map(function(S){return"".concat(S,"px")}).join(", ")}),Jn(r,"id",Od("recharts-line-")),Jn(r,"pathRef",function(o){r.mainCurve=o}),Jn(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),Jn(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return a_e(t,e),QDe(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var a=this.getTotalLength();this.setState({totalLength:a})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var a=this.getTotalLength();a!==this.state.totalLength&&this.setState({totalLength:a})}}},{key:"getTotalLength",value:function(){var a=this.mainCurve;try{return a&&a.getTotalLength&&a.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(a,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.points,s=i.xAxis,c=i.yAxis,u=i.layout,h=i.children,f=gn(h,rm);if(!f)return null;var m=function(y,b){return{x:y.x,y:y.y,value:y.value,errorVal:Gr(y.payload,b)}},x={clipPath:a?"url(#clipPath-".concat(n,")"):null};return de.createElement(Ht,x,f.map(function(v){return de.cloneElement(v,{key:"bar-".concat(v.props.dataKey),data:o,xAxis:s,yAxis:c,layout:u,dataPointFormatter:m})}))}},{key:"renderDots",value:function(a,n,i){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var s=this.props,c=s.dot,u=s.points,h=s.dataKey,f=lt(this.props,!1),m=lt(c,!0),x=u.map(function(y,b){var S=nn(nn(nn({key:"dot-".concat(b),r:3},f),m),{},{index:b,cx:y.x,cy:y.y,value:y.value,dataKey:h,payload:y.payload,points:u});return t.renderDotItem(c,S)}),v={clipPath:a?"url(#clipPath-".concat(n?"":"dots-").concat(i,")"):null};return de.createElement(Ht,Pp({className:"recharts-line-dots",key:"dots"},v),x)}},{key:"renderCurveStatically",value:function(a,n,i,o){var s=this.props,c=s.type,u=s.layout,h=s.connectNulls;s.ref;var f=dL(s,HDe),m=nn(nn(nn({},lt(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:n?"url(#clipPath-".concat(i,")"):null,points:a},o),{},{type:c,layout:u,connectNulls:h});return de.createElement(Ev,Pp({},m,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(a,n){var i=this,o=this.props,s=o.points,c=o.strokeDasharray,u=o.isAnimationActive,h=o.animationBegin,f=o.animationDuration,m=o.animationEasing,x=o.animationId,v=o.animateNewValues,y=o.width,b=o.height,S=this.state,A=S.prevPoints,E=S.totalLength;return de.createElement(Ri,{begin:h,duration:f,isActive:u,easing:m,from:{t:0},to:{t:1},key:"line-".concat(x),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(j){var P=j.t;if(A){var C=A.length/s.length,N=s.map(function(_,W){var D=Math.floor(W*C);if(A[D]){var J=A[D],z=cn(J.x,_.x),V=cn(J.y,_.y);return nn(nn({},_),{},{x:z(P),y:V(P)})}if(v){var Z=cn(y*2,_.x),te=cn(b/2,_.y);return nn(nn({},_),{},{x:Z(P),y:te(P)})}return nn(nn({},_),{},{x:_.x,y:_.y})});return i.renderCurveStatically(N,a,n)}var O=cn(0,E),k=O(P),B;if(c){var $="".concat(c).split(/[,\s]+/gim).map(function(_){return parseFloat(_)});B=i.getStrokeDasharray(k,E,$)}else B=i.generateSimpleStrokeDasharray(E,k);return i.renderCurveStatically(s,a,n,{strokeDasharray:B})})}},{key:"renderCurve",value:function(a,n){var i=this.props,o=i.points,s=i.isAnimationActive,c=this.state,u=c.prevPoints,h=c.totalLength;return s&&o&&o.length&&(!u&&h>0||!tm(u,o))?this.renderCurveWithAnimation(a,n):this.renderCurveStatically(o,a,n)}},{key:"render",value:function(){var a,n=this.props,i=n.hide,o=n.dot,s=n.points,c=n.className,u=n.xAxis,h=n.yAxis,f=n.top,m=n.left,x=n.width,v=n.height,y=n.isAnimationActive,b=n.id;if(i||!s||!s.length)return null;var S=this.state.isAnimationFinished,A=s.length===1,E=wt("recharts-line",c),j=u&&u.allowDataOverflow,P=h&&h.allowDataOverflow,C=j||P,N=yt(b)?this.id:b,O=(a=lt(o,!1))!==null&&a!==void 0?a:{r:3,strokeWidth:2},k=O.r,B=k===void 0?3:k,$=O.strokeWidth,_=$===void 0?2:$,W=Iye(o)?o:{},D=W.clipDot,J=D===void 0?!0:D,z=B*2+_;return de.createElement(Ht,{className:E},j||P?de.createElement("defs",null,de.createElement("clipPath",{id:"clipPath-".concat(N)},de.createElement("rect",{x:j?m:m-x/2,y:P?f:f-v/2,width:j?x:x*2,height:P?v:v*2})),!J&&de.createElement("clipPath",{id:"clipPath-dots-".concat(N)},de.createElement("rect",{x:m-z/2,y:f-z/2,width:x+z,height:v+z}))):null,!A&&this.renderCurve(C,N),this.renderErrorBar(C,N),(A||o)&&this.renderDots(C,J,N),(!y||S)&&So.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(a,n){return a.animationId!==n.prevAnimationId?{prevAnimationId:a.animationId,curPoints:a.points,prevPoints:n.curPoints}:a.points!==n.curPoints?{curPoints:a.points}:null}},{key:"repeat",value:function(a,n){for(var i=a.length%2!==0?[].concat(iu(a),[0]):a,o=[],s=0;s<n;++s)o=[].concat(iu(o),iu(i));return o}},{key:"renderDotItem",value:function(a,n){var i;if(de.isValidElement(a))i=de.cloneElement(a,n);else if(gt(a))i=a(n);else{var o=n.key,s=dL(n,GDe),c=wt("recharts-line-dot",typeof a!="boolean"?a.className:"");i=de.createElement(Jy,Pp({key:o},s,{className:c}))}return i}}])})(L.PureComponent);Jn(am,"displayName","Line");Jn(am,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!rc.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Jn(am,"getComposedData",function(e){var t=e.props,r=e.xAxis,a=e.yAxis,n=e.xAxisTicks,i=e.yAxisTicks,o=e.dataKey,s=e.bandSize,c=e.displayedData,u=e.offset,h=t.layout,f=c.map(function(m,x){var v=Gr(m,o);return h==="horizontal"?{x:m9({axis:r,ticks:n,bandSize:s,entry:m,index:x}),y:yt(v)?null:a.scale(v),value:v,payload:m}:{x:yt(v)?null:r.scale(v),y:m9({axis:a,ticks:i,bandSize:s,entry:m,index:x}),value:v,payload:m}});return nn({points:f,layout:h},u)});function dd(e){"@babel/helpers - typeof";return dd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dd(e)}function i_e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o_e(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,WG(a.key),a)}}function s_e(e,t,r){return t&&o_e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function l_e(e,t,r){return t=Uv(t),c_e(e,GG()?Reflect.construct(t,r||[],Uv(e).constructor):t.apply(e,r))}function c_e(e,t){if(t&&(dd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return u_e(e)}function u_e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function GG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(GG=function(){return!!e})()}function Uv(e){return Uv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Uv(e)}function d_e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dj(e,t)}function dj(e,t){return dj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},dj(e,t)}function KG(e,t,r){return t=WG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WG(e){var t=f_e(e,"string");return dd(t)=="symbol"?t:t+""}function f_e(e,t){if(dd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(dd(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function fj(){return fj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},fj.apply(this,arguments)}function p_e(e){var t=e.xAxisId,r=GT(),a=KT(),n=DG(t);return n==null?null:L.createElement(zd,fj({},n,{className:wt("recharts-".concat(n.axisType," ").concat(n.axisType),n.className),viewBox:{x:0,y:0,width:r,height:a},ticksGenerator:function(o){return vo(o,!0)}}))}var Eo=(function(e){function t(){return i_e(this,t),l_e(this,t,arguments)}return d_e(t,e),s_e(t,[{key:"render",value:function(){return L.createElement(p_e,this.props)}}])})(L.Component);KG(Eo,"displayName","XAxis");KG(Eo,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function fd(e){"@babel/helpers - typeof";return fd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fd(e)}function h_e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m_e(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,ZG(a.key),a)}}function g_e(e,t,r){return t&&m_e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function x_e(e,t,r){return t=Hv(t),v_e(e,XG()?Reflect.construct(t,r||[],Hv(e).constructor):t.apply(e,r))}function v_e(e,t){if(t&&(fd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return y_e(e)}function y_e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(XG=function(){return!!e})()}function Hv(e){return Hv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hv(e)}function b_e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pj(e,t)}function pj(e,t){return pj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},pj(e,t)}function YG(e,t,r){return t=ZG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZG(e){var t=w_e(e,"string");return fd(t)=="symbol"?t:t+""}function w_e(e,t){if(fd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(fd(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function hj(){return hj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},hj.apply(this,arguments)}var S_e=function(t){var r=t.yAxisId,a=GT(),n=KT(),i=_G(r);return i==null?null:L.createElement(zd,hj({},i,{className:wt("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:a,height:n},ticksGenerator:function(s){return vo(s,!0)}}))},Ao=(function(e){function t(){return h_e(this,t),x_e(this,t,arguments)}return b_e(t,e),g_e(t,[{key:"render",value:function(){return L.createElement(S_e,this.props)}}])})(L.Component);YG(Ao,"displayName","YAxis");YG(Ao,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function hL(e){return P_e(e)||C_e(e)||A_e(e)||E_e()}function E_e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1276In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A_e(e,t){if(e){if(typeof e=="string")return mj(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mj(e,t)}}function C_e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function P_e(e){if(Array.isArray(e))return mj(e)}function mj(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}var gj=function(t,r,a,n,i){var o=gn(t,XT),s=gn(t,sb),c=[].concat(hL(o),hL(s)),u=gn(t,cb),h="".concat(n,"Id"),f=n[0],m=r;if(c.length&&(m=c.reduce(function(y,b){if(b.props[h]===a&&Pi(b.props,"extendDomain")&&Ue(b.props[f])){var S=b.props[f];return[Math.min(y[0],S),Math.max(y[1],S)]}return y},m)),u.length){var x="".concat(f,"1"),v="".concat(f,"2");m=u.reduce(function(y,b){if(b.props[h]===a&&Pi(b.props,"extendDomain")&&Ue(b.props[x])&&Ue(b.props[v])){var S=b.props[x],A=b.props[v];return[Math.min(y[0],S,A),Math.max(y[1],S,A)]}return y},m)}return i&&i.length&&(m=i.reduce(function(y,b){return Ue(b)?[Math.min(y[0],b),Math.max(y[1],b)]:y},m)),m},ZA={exports:{}},mL;function j_e(){return mL||(mL=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function a(){}Object.create&&(a.prototype=Object.create(null),new a().__proto__||(r=!1));function n(c,u,h){this.fn=c,this.context=u,this.once=h||!1}function i(c,u,h,f,m){if(typeof h!="function")throw new TypeError("The listener must be a function");var x=new n(h,f||c,m),v=r?r+u:u;return c._events[v]?c._events[v].fn?c._events[v]=[c._events[v],x]:c._events[v].push(x):(c._events[v]=x,c._eventsCount++),c}function o(c,u){--c._eventsCount===0?c._events=new a:delete c._events[u]}function s(){this._events=new a,this._eventsCount=0}s.prototype.eventNames=function(){var u=[],h,f;if(this._eventsCount===0)return u;for(f in h=this._events)t.call(h,f)&&u.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(h)):u},s.prototype.listeners=function(u){var h=r?r+u:u,f=this._events[h];if(!f)return[];if(f.fn)return[f.fn];for(var m=0,x=f.length,v=new Array(x);m<x;m++)v[m]=f[m].fn;return v},s.prototype.listenerCount=function(u){var h=r?r+u:u,f=this._events[h];return f?f.fn?1:f.length:0},s.prototype.emit=function(u,h,f,m,x,v){var y=r?r+u:u;if(!this._events[y])return!1;var b=this._events[y],S=arguments.length,A,E;if(b.fn){switch(b.once&&this.removeListener(u,b.fn,void 0,!0),S){case 1:return b.fn.call(b.context),!0;case 2:return b.fn.call(b.context,h),!0;case 3:return b.fn.call(b.context,h,f),!0;case 4:return b.fn.call(b.context,h,f,m),!0;case 5:return b.fn.call(b.context,h,f,m,x),!0;case 6:return b.fn.call(b.context,h,f,m,x,v),!0}for(E=1,A=new Array(S-1);E<S;E++)A[E-1]=arguments[E];b.fn.apply(b.context,A)}else{var j=b.length,P;for(E=0;E<j;E++)switch(b[E].once&&this.removeListener(u,b[E].fn,void 0,!0),S){case 1:b[E].fn.call(b[E].context);break;case 2:b[E].fn.call(b[E].context,h);break;case 3:b[E].fn.call(b[E].context,h,f);break;case 4:b[E].fn.call(b[E].context,h,f,m);break;default:if(!A)for(P=1,A=new Array(S-1);P<S;P++)A[P-1]=arguments[P];b[E].fn.apply(b[E].context,A)}}return!0},s.prototype.on=function(u,h,f){return i(this,u,h,f,!1)},s.prototype.once=function(u,h,f){return i(this,u,h,f,!0)},s.prototype.removeListener=function(u,h,f,m){var x=r?r+u:u;if(!this._events[x])return this;if(!h)return o(this,x),this;var v=this._events[x];if(v.fn)v.fn===h&&(!m||v.once)&&(!f||v.context===f)&&o(this,x);else{for(var y=0,b=[],S=v.length;y<S;y++)(v[y].fn!==h||m&&!v[y].once||f&&v[y].context!==f)&&b.push(v[y]);b.length?this._events[x]=b.length===1?b[0]:b:o(this,x)}return this},s.prototype.removeAllListeners=function(u){var h;return u?(h=r?r+u:u,this._events[h]&&o(this,h)):(this._events=new a,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s})(ZA)),ZA.exports}var N_e=j_e();const T_e=qt(N_e);var JA=new T_e,QA="recharts.syncMouseEvents";function Eh(e){"@babel/helpers - typeof";return Eh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Eh(e)}function k_e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D_e(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,JG(a.key),a)}}function __e(e,t,r){return t&&D_e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function eC(e,t,r){return t=JG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JG(e){var t=R_e(e,"string");return Eh(t)=="symbol"?t:t+""}function R_e(e,t){if(Eh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(Eh(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var O_e=(function(){function e(){k_e(this,e),eC(this,"activeIndex",0),eC(this,"coordinateList",[]),eC(this,"layout","horizontal")}return __e(e,[{key:"setDetails",value:function(r){var a,n=r.coordinateList,i=n===void 0?null:n,o=r.container,s=o===void 0?null:o,c=r.layout,u=c===void 0?null:c,h=r.offset,f=h===void 0?null:h,m=r.mouseHandlerCallback,x=m===void 0?null:m;this.coordinateList=(a=i??this.coordinateList)!==null&&a!==void 0?a:[],this.container=s??this.container,this.layout=u??this.layout,this.offset=f??this.offset,this.mouseHandlerCallback=x??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,a;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var n=this.container.getBoundingClientRect(),i=n.x,o=n.y,s=n.height,c=this.coordinateList[this.activeIndex].coordinate,u=((r=window)===null||r===void 0?void 0:r.scrollX)||0,h=((a=window)===null||a===void 0?void 0:a.scrollY)||0,f=i+c+u,m=o+this.offset.top+s/2+h;this.mouseHandlerCallback({pageX:f,pageY:m})}}}])})();function M_e(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var a=e?.[0],n=e?.[1];if(a&&n&&Ue(a)&&Ue(n))return!0}return!1}function I_e(e,t,r,a){var n=a/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-n:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-n,width:e==="horizontal"?a:r.width-1,height:e==="horizontal"?r.height-1:a}}function QG(e){var t=e.cx,r=e.cy,a=e.radius,n=e.startAngle,i=e.endAngle,o=pr(t,r,a,n),s=pr(t,r,a,i);return{points:[o,s],cx:t,cy:r,radius:a,startAngle:n,endAngle:i}}function B_e(e,t,r){var a,n,i,o;if(e==="horizontal")a=t.x,i=a,n=r.top,o=r.top+r.height;else if(e==="vertical")n=t.y,o=n,a=r.left,i=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,c=t.cy,u=t.innerRadius,h=t.outerRadius,f=t.angle,m=pr(s,c,u,f),x=pr(s,c,h,f);a=m.x,n=m.y,i=x.x,o=x.y}else return QG(t);return[{x:a,y:n},{x:i,y:o}]}function Ah(e){"@babel/helpers - typeof";return Ah=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ah(e)}function gL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function ix(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gL(Object(r),!0).forEach(function(a){L_e(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gL(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function L_e(e,t,r){return t=z_e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function z_e(e){var t=F_e(e,"string");return Ah(t)=="symbol"?t:t+""}function F_e(e,t){if(Ah(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(Ah(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $_e(e){var t,r,a=e.element,n=e.tooltipEventType,i=e.isActive,o=e.activeCoordinate,s=e.activePayload,c=e.offset,u=e.activeTooltipIndex,h=e.tooltipAxisBandSize,f=e.layout,m=e.chartName,x=(t=a.props.cursor)!==null&&t!==void 0?t:(r=a.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!a||!x||!i||!o||m!=="ScatterChart"&&n!=="axis")return null;var v,y=Ev;if(m==="ScatterChart")v=o,y=cNe;else if(m==="BarChart")v=I_e(f,o,c,h),y=qT;else if(f==="radial"){var b=QG(o),S=b.cx,A=b.cy,E=b.radius,j=b.startAngle,P=b.endAngle;v={cx:S,cy:A,startAngle:j,endAngle:P,innerRadius:E,outerRadius:E},y=QH}else v={points:B_e(f,o,c)},y=Ev;var C=ix(ix(ix(ix({stroke:"#ccc",pointerEvents:"none"},c),v),lt(x,!1)),{},{payload:s,payloadIndex:u,className:wt("recharts-tooltip-cursor",x.className)});return L.isValidElement(x)?L.cloneElement(x,C):L.createElement(y,C)}var q_e=["item"],V_e=["children","className","width","height","style","compact","title","desc"];function pd(e){"@babel/helpers - typeof";return pd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pd(e)}function hu(){return hu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},hu.apply(this,arguments)}function xL(e,t){return G_e(e)||H_e(e,t)||tK(e,t)||U_e()}function U_e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1277In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function H_e(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,n,i,o,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(c=(a=i.call(r)).done)&&(s.push(a.value),s.length!==t);c=!0);}catch(h){u=!0,n=h}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw n}}return s}}function G_e(e){if(Array.isArray(e))return e}function vL(e,t){if(e==null)return{};var r=K_e(e,t),a,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)a=i[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function K_e(e,t){if(e==null)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}function W_e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X_e(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,rK(a.key),a)}}function Y_e(e,t,r){return t&&X_e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Z_e(e,t,r){return t=Gv(t),J_e(e,eK()?Reflect.construct(t,r||[],Gv(e).constructor):t.apply(e,r))}function J_e(e,t){if(t&&(pd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Q_e(e)}function Q_e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(eK=function(){return!!e})()}function Gv(e){return Gv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Gv(e)}function e5e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xj(e,t)}function xj(e,t){return xj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},xj(e,t)}function hd(e){return a5e(e)||r5e(e)||tK(e)||t5e()}function t5e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1278In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tK(e,t){if(e){if(typeof e=="string")return vj(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vj(e,t)}}function r5e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function a5e(e){if(Array.isArray(e))return vj(e)}function vj(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function yL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function Re(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yL(Object(r),!0).forEach(function(a){dt(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yL(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function dt(e,t,r){return t=rK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rK(e){var t=n5e(e,"string");return pd(t)=="symbol"?t:t+""}function n5e(e,t){if(pd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(pd(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var i5e={xAxis:["bottom","top"],yAxis:["left","right"]},o5e={width:"100%",height:"100%"},aK={x:0,y:0};function ox(e){return e}var s5e=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},l5e=function(t,r,a,n){var i=r.find(function(h){return h&&h.index===a});if(i){if(t==="horizontal")return{x:i.coordinate,y:n.y};if(t==="vertical")return{x:n.x,y:i.coordinate};if(t==="centric"){var o=i.coordinate,s=n.radius;return Re(Re(Re({},n),pr(n.cx,n.cy,s,o)),{},{angle:o,radius:s})}var c=i.coordinate,u=n.angle;return Re(Re(Re({},n),pr(n.cx,n.cy,c,u)),{},{angle:u,radius:c})}return aK},ub=function(t,r){var a=r.graphicalItems,n=r.dataStartIndex,i=r.dataEndIndex,o=(a??[]).reduce(function(s,c){var u=c.props.data;return u&&u.length?[].concat(hd(s),hd(u)):s},[]);return o.length>0?o:t&&t.length&&Ue(n)&&Ue(i)?t.slice(n,i+1):[]};function nK(e){return e==="number"?[0,"auto"]:void 0}var yj=function(t,r,a,n){var i=t.graphicalItems,o=t.tooltipAxis,s=ub(r,t);return a<0||!i||!i.length||a>=s.length?null:i.reduce(function(c,u){var h,f=(h=u.props.data)!==null&&h!==void 0?h:r;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=a&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var m;if(o.dataKey&&!o.allowDuplicatedCategory){var x=f===void 0?s:f;m=Xx(x,o.dataKey,n)}else m=f&&f[a]||s[a];return m?[].concat(hd(c),[KH(u,m)]):c},[])},bL=function(t,r,a,n){var i=n||{x:t.chartX,y:t.chartY},o=s5e(i,a),s=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,h=RAe(o,s,u,c);if(h>=0&&u){var f=u[h]&&u[h].value,m=yj(t,r,h,f),x=l5e(a,s,h,i);return{activeTooltipIndex:h,activeLabel:f,activePayload:m,activeCoordinate:x}}return null},c5e=function(t,r){var a=r.axes,n=r.graphicalItems,i=r.axisType,o=r.axisIdKey,s=r.stackGroups,c=r.dataStartIndex,u=r.dataEndIndex,h=t.layout,f=t.children,m=t.stackOffset,x=$H(h,i);return a.reduce(function(v,y){var b,S=y.type.defaultProps!==void 0?Re(Re({},y.type.defaultProps),y.props):y.props,A=S.type,E=S.dataKey,j=S.allowDataOverflow,P=S.allowDuplicatedCategory,C=S.scale,N=S.ticks,O=S.includeHidden,k=S[o];if(v[k])return v;var B=ub(t.data,{graphicalItems:n.filter(function(X){var U,ie=o in X.props?X.props[o]:(U=X.type.defaultProps)===null||U===void 0?void 0:U[o];return ie===k}),dataStartIndex:c,dataEndIndex:u}),$=B.length,_,W,D;M_e(S.domain,j,A)&&(_=RP(S.domain,null,j),x&&(A==="number"||C!=="auto")&&(D=Sp(B,E,"category")));var J=nK(A);if(!_||_.length===0){var z,V=(z=S.domain)!==null&&z!==void 0?z:J;if(E){if(_=Sp(B,E,A),A==="category"&&x){var Z=Pye(_);P&&Z?(W=_,_=Rv(0,$)):P||(_=y9(V,_,y).reduce(function(X,U){return X.indexOf(U)>=0?X:[].concat(hd(X),[U])},[]))}else if(A==="category")P?_=_.filter(function(X){return X!==""&&!yt(X)}):_=y9(V,_,y).reduce(function(X,U){return X.indexOf(U)>=0||U===""||yt(U)?X:[].concat(hd(X),[U])},[]);else if(A==="number"){var te=LAe(B,n.filter(function(X){var U,ie,se=o in X.props?X.props[o]:(U=X.type.defaultProps)===null||U===void 0?void 0:U[o],he="hide"in X.props?X.props.hide:(ie=X.type.defaultProps)===null||ie===void 0?void 0:ie.hide;return se===k&&(O||!he)}),E,i,h);te&&(_=te)}x&&(A==="number"||C!=="auto")&&(D=Sp(B,E,"category"))}else x?_=Rv(0,$):s&&s[k]&&s[k].hasStack&&A==="number"?_=m==="expand"?[0,1]:GH(s[k].stackGroups,c,u):_=FH(B,n.filter(function(X){var U=o in X.props?X.props[o]:X.type.defaultProps[o],ie="hide"in X.props?X.props.hide:X.type.defaultProps.hide;return U===k&&(O||!ie)}),A,h,!0);if(A==="number")_=gj(f,_,k,i,N),V&&(_=RP(V,_,j));else if(A==="category"&&V){var K=V,q=_.every(function(X){return K.indexOf(X)>=0});q&&(_=K)}}return Re(Re({},v),{},dt({},k,Re(Re({},S),{},{axisType:i,domain:_,categoricalDomain:D,duplicateDomain:W,originalDomain:(b=S.domain)!==null&&b!==void 0?b:J,isCategorical:x,layout:h})))},{})},u5e=function(t,r){var a=r.graphicalItems,n=r.Axis,i=r.axisType,o=r.axisIdKey,s=r.stackGroups,c=r.dataStartIndex,u=r.dataEndIndex,h=t.layout,f=t.children,m=ub(t.data,{graphicalItems:a,dataStartIndex:c,dataEndIndex:u}),x=m.length,v=$H(h,i),y=-1;return a.reduce(function(b,S){var A=S.type.defaultProps!==void 0?Re(Re({},S.type.defaultProps),S.props):S.props,E=A[o],j=nK("number");if(!b[E]){y++;var P;return v?P=Rv(0,x):s&&s[E]&&s[E].hasStack?(P=GH(s[E].stackGroups,c,u),P=gj(f,P,E,i)):(P=RP(j,FH(m,a.filter(function(C){var N,O,k=o in C.props?C.props[o]:(N=C.type.defaultProps)===null||N===void 0?void 0:N[o],B="hide"in C.props?C.props.hide:(O=C.type.defaultProps)===null||O===void 0?void 0:O.hide;return k===E&&!B}),"number",h),n.defaultProps.allowDataOverflow),P=gj(f,P,E,i)),Re(Re({},b),{},dt({},E,Re(Re({axisType:i},n.defaultProps),{},{hide:!0,orientation:mn(i5e,"".concat(i,".").concat(y%2),null),domain:P,originalDomain:j,isCategorical:v,layout:h})))}return b},{})},d5e=function(t,r){var a=r.axisType,n=a===void 0?"xAxis":a,i=r.AxisComp,o=r.graphicalItems,s=r.stackGroups,c=r.dataStartIndex,u=r.dataEndIndex,h=t.children,f="".concat(n,"Id"),m=gn(h,i),x={};return m&&m.length?x=c5e(t,{axes:m,graphicalItems:o,axisType:n,axisIdKey:f,stackGroups:s,dataStartIndex:c,dataEndIndex:u}):o&&o.length&&(x=u5e(t,{Axis:i,graphicalItems:o,axisType:n,axisIdKey:f,stackGroups:s,dataStartIndex:c,dataEndIndex:u})),x},f5e=function(t){var r=ms(t),a=vo(r,!1,!0);return{tooltipTicks:a,orderedTooltipTicks:mT(a,function(n){return n.coordinate}),tooltipAxis:r,tooltipAxisBandSize:bv(r,a)}},wL=function(t){var r=t.children,a=t.defaultShowTooltip,n=sn(r,nd),i=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(i=n.props.startIndex),n.props.endIndex>=0&&(o=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!a}},p5e=function(t){return!t||!t.length?!1:t.some(function(r){var a=yo(r&&r.type);return a&&a.indexOf("Bar")>=0})},SL=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},h5e=function(t,r){var a=t.props,n=t.graphicalItems,i=t.xAxisMap,o=i===void 0?{}:i,s=t.yAxisMap,c=s===void 0?{}:s,u=a.width,h=a.height,f=a.children,m=a.margin||{},x=sn(f,nd),v=sn(f,bo),y=Object.keys(c).reduce(function(P,C){var N=c[C],O=N.orientation;return!N.mirror&&!N.hide?Re(Re({},P),{},dt({},O,P[O]+N.width)):P},{left:m.left||0,right:m.right||0}),b=Object.keys(o).reduce(function(P,C){var N=o[C],O=N.orientation;return!N.mirror&&!N.hide?Re(Re({},P),{},dt({},O,mn(P,"".concat(O))+N.height)):P},{top:m.top||0,bottom:m.bottom||0}),S=Re(Re({},b),y),A=S.bottom;x&&(S.bottom+=x.props.height||nd.defaultProps.height),v&&r&&(S=IAe(S,n,a,r));var E=u-S.left-S.right,j=h-S.top-S.bottom;return Re(Re({brushBottom:A},S),{},{width:Math.max(E,0),height:Math.max(j,0)})},m5e=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},JT=function(t){var r=t.chartName,a=t.GraphicalChild,n=t.defaultTooltipEventType,i=n===void 0?"axis":n,o=t.validateTooltipEventTypes,s=o===void 0?["axis"]:o,c=t.axisComponents,u=t.legendContent,h=t.formatAxisMap,f=t.defaultProps,m=function(S,A){var E=A.graphicalItems,j=A.stackGroups,P=A.offset,C=A.updateId,N=A.dataStartIndex,O=A.dataEndIndex,k=S.barSize,B=S.layout,$=S.barGap,_=S.barCategoryGap,W=S.maxBarSize,D=SL(B),J=D.numericAxisName,z=D.cateAxisName,V=p5e(E),Z=[];return E.forEach(function(te,K){var q=ub(S.data,{graphicalItems:[te],dataStartIndex:N,dataEndIndex:O}),X=te.type.defaultProps!==void 0?Re(Re({},te.type.defaultProps),te.props):te.props,U=X.dataKey,ie=X.maxBarSize,se=X["".concat(J,"Id")],he=X["".concat(z,"Id")],Y={},F=c.reduce(function(fe,ue){var we=A["".concat(ue.axisType,"Map")],Ne=X["".concat(ue.axisType,"Id")];we&&we[Ne]||ue.axisType==="zAxis"||Kl();var De=we[Ne];return Re(Re({},fe),{},dt(dt({},ue.axisType,De),"".concat(ue.axisType,"Ticks"),vo(De)))},Y),ae=F[z],ne=F["".concat(z,"Ticks")],ge=j&&j[se]&&j[se].hasStack&&KAe(te,j[se].stackGroups),re=yo(te.type).indexOf("Bar")>=0,oe=bv(ae,ne),G=[],pe=V&&OAe({barSize:k,stackGroups:j,totalSize:m5e(F,z)});if(re){var ee,M,I=yt(ie)?W:ie,H=(ee=(M=bv(ae,ne,!0))!==null&&M!==void 0?M:I)!==null&&ee!==void 0?ee:0;G=MAe({barGap:$,barCategoryGap:_,bandSize:H!==oe?H:oe,sizeList:pe[he],maxBarSize:I}),H!==oe&&(G=G.map(function(fe){return Re(Re({},fe),{},{position:Re(Re({},fe.position),{},{offset:fe.position.offset-H/2})})}))}var ce=te&&te.type&&te.type.getComposedData;ce&&Z.push({props:Re(Re({},ce(Re(Re({},F),{},{displayedData:q,props:S,dataKey:U,item:te,bandSize:oe,barPosition:G,offset:P,stackedData:ge,layout:B,dataStartIndex:N,dataEndIndex:O}))),{},dt(dt(dt({key:te.key||"item-".concat(K)},J,F[J]),z,F[z]),"animationId",C)),childIndex:zye(te,S.children),item:te})}),Z},x=function(S,A){var E=S.props,j=S.dataStartIndex,P=S.dataEndIndex,C=S.updateId;if(!RM({props:E}))return null;var N=E.children,O=E.layout,k=E.stackOffset,B=E.data,$=E.reverseStackOrder,_=SL(O),W=_.numericAxisName,D=_.cateAxisName,J=gn(N,a),z=HAe(B,J,"".concat(W,"Id"),"".concat(D,"Id"),k,$),V=c.reduce(function(X,U){var ie="".concat(U.axisType,"Map");return Re(Re({},X),{},dt({},ie,d5e(E,Re(Re({},U),{},{graphicalItems:J,stackGroups:U.axisType===W&&z,dataStartIndex:j,dataEndIndex:P}))))},{}),Z=h5e(Re(Re({},V),{},{props:E,graphicalItems:J}),A?.legendBBox);Object.keys(V).forEach(function(X){V[X]=h(E,V[X],Z,X.replace("Map",""),r)});var te=V["".concat(D,"Map")],K=f5e(te),q=m(E,Re(Re({},V),{},{dataStartIndex:j,dataEndIndex:P,updateId:C,graphicalItems:J,stackGroups:z,offset:Z}));return Re(Re({formattedGraphicalItems:q,graphicalItems:J,offset:Z,stackGroups:z},K),V)},v=(function(b){function S(A){var E,j,P;return W_e(this,S),P=Z_e(this,S,[A]),dt(P,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),dt(P,"accessibilityManager",new O_e),dt(P,"handleLegendBBoxUpdate",function(C){if(C){var N=P.state,O=N.dataStartIndex,k=N.dataEndIndex,B=N.updateId;P.setState(Re({legendBBox:C},x({props:P.props,dataStartIndex:O,dataEndIndex:k,updateId:B},Re(Re({},P.state),{},{legendBBox:C}))))}}),dt(P,"handleReceiveSyncEvent",function(C,N,O){if(P.props.syncId===C){if(O===P.eventEmitterSymbol&&typeof P.props.syncMethod!="function")return;P.applySyncEvent(N)}}),dt(P,"handleBrushChange",function(C){var N=C.startIndex,O=C.endIndex;if(N!==P.state.dataStartIndex||O!==P.state.dataEndIndex){var k=P.state.updateId;P.setState(function(){return Re({dataStartIndex:N,dataEndIndex:O},x({props:P.props,dataStartIndex:N,dataEndIndex:O,updateId:k},P.state))}),P.triggerSyncEvent({dataStartIndex:N,dataEndIndex:O})}}),dt(P,"handleMouseEnter",function(C){var N=P.getMouseInfo(C);if(N){var O=Re(Re({},N),{},{isTooltipActive:!0});P.setState(O),P.triggerSyncEvent(O);var k=P.props.onMouseEnter;gt(k)&&k(O,C)}}),dt(P,"triggeredAfterMouseMove",function(C){var N=P.getMouseInfo(C),O=N?Re(Re({},N),{},{isTooltipActive:!0}):{isTooltipActive:!1};P.setState(O),P.triggerSyncEvent(O);var k=P.props.onMouseMove;gt(k)&&k(O,C)}),dt(P,"handleItemMouseEnter",function(C){P.setState(function(){return{isTooltipActive:!0,activeItem:C,activePayload:C.tooltipPayload,activeCoordinate:C.tooltipPosition||{x:C.cx,y:C.cy}}})}),dt(P,"handleItemMouseLeave",function(){P.setState(function(){return{isTooltipActive:!1}})}),dt(P,"handleMouseMove",function(C){C.persist(),P.throttleTriggeredAfterMouseMove(C)}),dt(P,"handleMouseLeave",function(C){P.throttleTriggeredAfterMouseMove.cancel();var N={isTooltipActive:!1};P.setState(N),P.triggerSyncEvent(N);var O=P.props.onMouseLeave;gt(O)&&O(N,C)}),dt(P,"handleOuterEvent",function(C){var N=Lye(C),O=mn(P.props,"".concat(N));if(N&>(O)){var k,B;/.*touch.*/i.test(N)?B=P.getMouseInfo(C.changedTouches[0]):B=P.getMouseInfo(C),O((k=B)!==null&&k!==void 0?k:{},C)}}),dt(P,"handleClick",function(C){var N=P.getMouseInfo(C);if(N){var O=Re(Re({},N),{},{isTooltipActive:!0});P.setState(O),P.triggerSyncEvent(O);var k=P.props.onClick;gt(k)&&k(O,C)}}),dt(P,"handleMouseDown",function(C){var N=P.props.onMouseDown;if(gt(N)){var O=P.getMouseInfo(C);N(O,C)}}),dt(P,"handleMouseUp",function(C){var N=P.props.onMouseUp;if(gt(N)){var O=P.getMouseInfo(C);N(O,C)}}),dt(P,"handleTouchMove",function(C){C.changedTouches!=null&&C.changedTouches.length>0&&P.throttleTriggeredAfterMouseMove(C.changedTouches[0])}),dt(P,"handleTouchStart",function(C){C.changedTouches!=null&&C.changedTouches.length>0&&P.handleMouseDown(C.changedTouches[0])}),dt(P,"handleTouchEnd",function(C){C.changedTouches!=null&&C.changedTouches.length>0&&P.handleMouseUp(C.changedTouches[0])}),dt(P,"handleDoubleClick",function(C){var N=P.props.onDoubleClick;if(gt(N)){var O=P.getMouseInfo(C);N(O,C)}}),dt(P,"handleContextMenu",function(C){var N=P.props.onContextMenu;if(gt(N)){var O=P.getMouseInfo(C);N(O,C)}}),dt(P,"triggerSyncEvent",function(C){P.props.syncId!==void 0&&JA.emit(QA,P.props.syncId,C,P.eventEmitterSymbol)}),dt(P,"applySyncEvent",function(C){var N=P.props,O=N.layout,k=N.syncMethod,B=P.state.updateId,$=C.dataStartIndex,_=C.dataEndIndex;if(C.dataStartIndex!==void 0||C.dataEndIndex!==void 0)P.setState(Re({dataStartIndex:$,dataEndIndex:_},x({props:P.props,dataStartIndex:$,dataEndIndex:_,updateId:B},P.state)));else if(C.activeTooltipIndex!==void 0){var W=C.chartX,D=C.chartY,J=C.activeTooltipIndex,z=P.state,V=z.offset,Z=z.tooltipTicks;if(!V)return;if(typeof k=="function")J=k(Z,C);else if(k==="value"){J=-1;for(var te=0;te<Z.length;te++)if(Z[te].value===C.activeLabel){J=te;break}}var K=Re(Re({},V),{},{x:V.left,y:V.top}),q=Math.min(W,K.x+K.width),X=Math.min(D,K.y+K.height),U=Z[J]&&Z[J].value,ie=yj(P.state,P.props.data,J),se=Z[J]?{x:O==="horizontal"?Z[J].coordinate:q,y:O==="horizontal"?X:Z[J].coordinate}:aK;P.setState(Re(Re({},C),{},{activeLabel:U,activeCoordinate:se,activePayload:ie,activeTooltipIndex:J}))}else P.setState(C)}),dt(P,"renderCursor",function(C){var N,O=P.state,k=O.isTooltipActive,B=O.activeCoordinate,$=O.activePayload,_=O.offset,W=O.activeTooltipIndex,D=O.tooltipAxisBandSize,J=P.getTooltipEventType(),z=(N=C.props.active)!==null&&N!==void 0?N:k,V=P.props.layout,Z=C.key||"_recharts-cursor";return de.createElement($_e,{key:Z,activeCoordinate:B,activePayload:$,activeTooltipIndex:W,chartName:r,element:C,isActive:z,layout:V,offset:_,tooltipAxisBandSize:D,tooltipEventType:J})}),dt(P,"renderPolarAxis",function(C,N,O){var k=mn(C,"type.axisType"),B=mn(P.state,"".concat(k,"Map")),$=C.type.defaultProps,_=$!==void 0?Re(Re({},$),C.props):C.props,W=B&&B[_["".concat(k,"Id")]];return L.cloneElement(C,Re(Re({},W),{},{className:wt(k,W.className),key:C.key||"".concat(N,"-").concat(O),ticks:vo(W,!0)}))}),dt(P,"renderPolarGrid",function(C){var N=C.props,O=N.radialLines,k=N.polarAngles,B=N.polarRadius,$=P.state,_=$.radiusAxisMap,W=$.angleAxisMap,D=ms(_),J=ms(W),z=J.cx,V=J.cy,Z=J.innerRadius,te=J.outerRadius;return L.cloneElement(C,{polarAngles:Array.isArray(k)?k:vo(J,!0).map(function(K){return K.coordinate}),polarRadius:Array.isArray(B)?B:vo(D,!0).map(function(K){return K.coordinate}),cx:z,cy:V,innerRadius:Z,outerRadius:te,key:C.key||"polar-grid",radialLines:O})}),dt(P,"renderLegend",function(){var C=P.state.formattedGraphicalItems,N=P.props,O=N.children,k=N.width,B=N.height,$=P.props.margin||{},_=k-($.left||0)-($.right||0),W=LH({children:O,formattedGraphicalItems:C,legendWidth:_,legendContent:u});if(!W)return null;var D=W.item,J=vL(W,q_e);return L.cloneElement(D,Re(Re({},J),{},{chartWidth:k,chartHeight:B,margin:$,onBBoxUpdate:P.handleLegendBBoxUpdate}))}),dt(P,"renderTooltip",function(){var C,N=P.props,O=N.children,k=N.accessibilityLayer,B=sn(O,va);if(!B)return null;var $=P.state,_=$.isTooltipActive,W=$.activeCoordinate,D=$.activePayload,J=$.activeLabel,z=$.offset,V=(C=B.props.active)!==null&&C!==void 0?C:_;return L.cloneElement(B,{viewBox:Re(Re({},z),{},{x:z.left,y:z.top}),active:V,label:J,payload:V?D:[],coordinate:W,accessibilityLayer:k})}),dt(P,"renderBrush",function(C){var N=P.props,O=N.margin,k=N.data,B=P.state,$=B.offset,_=B.dataStartIndex,W=B.dataEndIndex,D=B.updateId;return L.cloneElement(C,{key:C.key||"_recharts-brush",onChange:tx(P.handleBrushChange,C.props.onChange),data:k,x:Ue(C.props.x)?C.props.x:$.left,y:Ue(C.props.y)?C.props.y:$.top+$.height+$.brushBottom-(O.bottom||0),width:Ue(C.props.width)?C.props.width:$.width,startIndex:_,endIndex:W,updateId:"brush-".concat(D)})}),dt(P,"renderReferenceElement",function(C,N,O){if(!C)return null;var k=P,B=k.clipPathId,$=P.state,_=$.xAxisMap,W=$.yAxisMap,D=$.offset,J=C.type.defaultProps||{},z=C.props,V=z.xAxisId,Z=V===void 0?J.xAxisId:V,te=z.yAxisId,K=te===void 0?J.yAxisId:te;return L.cloneElement(C,{key:C.key||"".concat(N,"-").concat(O),xAxis:_[Z],yAxis:W[K],viewBox:{x:D.left,y:D.top,width:D.width,height:D.height},clipPathId:B})}),dt(P,"renderActivePoints",function(C){var N=C.item,O=C.activePoint,k=C.basePoint,B=C.childIndex,$=C.isRange,_=[],W=N.props.key,D=N.item.type.defaultProps!==void 0?Re(Re({},N.item.type.defaultProps),N.item.props):N.item.props,J=D.activeDot,z=D.dataKey,V=Re(Re({index:B,dataKey:z,cx:O.x,cy:O.y,r:4,fill:$T(N.item),strokeWidth:2,stroke:"#fff",payload:O.payload,value:O.value},lt(J,!1)),Yx(J));return _.push(S.renderActiveDot(J,V,"".concat(W,"-activePoint-").concat(B))),k?_.push(S.renderActiveDot(J,Re(Re({},V),{},{cx:k.x,cy:k.y}),"".concat(W,"-basePoint-").concat(B))):$&&_.push(null),_}),dt(P,"renderGraphicChild",function(C,N,O){var k=P.filterFormatItem(C,N,O);if(!k)return null;var B=P.getTooltipEventType(),$=P.state,_=$.isTooltipActive,W=$.tooltipAxis,D=$.activeTooltipIndex,J=$.activeLabel,z=P.props.children,V=sn(z,va),Z=k.props,te=Z.points,K=Z.isRange,q=Z.baseLine,X=k.item.type.defaultProps!==void 0?Re(Re({},k.item.type.defaultProps),k.item.props):k.item.props,U=X.activeDot,ie=X.hide,se=X.activeBar,he=X.activeShape,Y=!!(!ie&&_&&V&&(U||se||he)),F={};B!=="axis"&&V&&V.props.trigger==="click"?F={onClick:tx(P.handleItemMouseEnter,C.props.onClick)}:B!=="axis"&&(F={onMouseLeave:tx(P.handleItemMouseLeave,C.props.onMouseLeave),onMouseEnter:tx(P.handleItemMouseEnter,C.props.onMouseEnter)});var ae=L.cloneElement(C,Re(Re({},k.props),F));function ne(ue){return typeof W.dataKey=="function"?W.dataKey(ue.payload):null}if(Y)if(D>=0){var ge,re;if(W.dataKey&&!W.allowDuplicatedCategory){var oe=typeof W.dataKey=="function"?ne:"payload.".concat(W.dataKey.toString());ge=Xx(te,oe,J),re=K&&q&&Xx(q,oe,J)}else ge=te?.[D],re=K&&q&&q[D];if(he||se){var G=C.props.activeIndex!==void 0?C.props.activeIndex:D;return[L.cloneElement(C,Re(Re(Re({},k.props),F),{},{activeIndex:G})),null,null]}if(!yt(ge))return[ae].concat(hd(P.renderActivePoints({item:k,activePoint:ge,basePoint:re,childIndex:D,isRange:K})))}else{var pe,ee=(pe=P.getItemByXY(P.state.activeCoordinate))!==null&&pe!==void 0?pe:{graphicalItem:ae},M=ee.graphicalItem,I=M.item,H=I===void 0?C:I,ce=M.childIndex,fe=Re(Re(Re({},k.props),F),{},{activeIndex:ce});return[L.cloneElement(H,fe),null,null]}return K?[ae,null,null]:[ae,null]}),dt(P,"renderCustomized",function(C,N,O){return L.cloneElement(C,Re(Re({key:"recharts-customized-".concat(O)},P.props),P.state))}),dt(P,"renderMap",{CartesianGrid:{handler:ox,once:!0},ReferenceArea:{handler:P.renderReferenceElement},ReferenceLine:{handler:ox},ReferenceDot:{handler:P.renderReferenceElement},XAxis:{handler:ox},YAxis:{handler:ox},Brush:{handler:P.renderBrush,once:!0},Bar:{handler:P.renderGraphicChild},Line:{handler:P.renderGraphicChild},Area:{handler:P.renderGraphicChild},Radar:{handler:P.renderGraphicChild},RadialBar:{handler:P.renderGraphicChild},Scatter:{handler:P.renderGraphicChild},Pie:{handler:P.renderGraphicChild},Funnel:{handler:P.renderGraphicChild},Tooltip:{handler:P.renderCursor,once:!0},PolarGrid:{handler:P.renderPolarGrid,once:!0},PolarAngleAxis:{handler:P.renderPolarAxis},PolarRadiusAxis:{handler:P.renderPolarAxis},Customized:{handler:P.renderCustomized}}),P.clipPathId="".concat((E=A.id)!==null&&E!==void 0?E:Od("recharts"),"-clip"),P.throttleTriggeredAfterMouseMove=BU(P.triggeredAfterMouseMove,(j=A.throttleDelay)!==null&&j!==void 0?j:1e3/60),P.state={},P}return e5e(S,b),Y_e(S,[{key:"componentDidMount",value:function(){var E,j;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(E=this.props.margin.left)!==null&&E!==void 0?E:0,top:(j=this.props.margin.top)!==null&&j!==void 0?j:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var E=this.props,j=E.children,P=E.data,C=E.height,N=E.layout,O=sn(j,va);if(O){var k=O.props.defaultIndex;if(!(typeof k!="number"||k<0||k>this.state.tooltipTicks.length-1)){var B=this.state.tooltipTicks[k]&&this.state.tooltipTicks[k].value,$=yj(this.state,P,k,B),_=this.state.tooltipTicks[k].coordinate,W=(this.state.offset.top+C)/2,D=N==="horizontal",J=D?{x:_,y:W}:{y:_,x:W},z=this.state.formattedGraphicalItems.find(function(Z){var te=Z.item;return te.type.name==="Scatter"});z&&(J=Re(Re({},J),z.props.points[k].tooltipPosition),$=z.props.points[k].tooltipPayload);var V={activeTooltipIndex:k,isTooltipActive:!0,activeLabel:B,activePayload:$,activeCoordinate:J};this.setState(V),this.renderCursor(O),this.accessibilityManager.setIndex(k)}}}},{key:"getSnapshotBeforeUpdate",value:function(E,j){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==j.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==E.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==E.margin){var P,C;this.accessibilityManager.setDetails({offset:{left:(P=this.props.margin.left)!==null&&P!==void 0?P:0,top:(C=this.props.margin.top)!==null&&C!==void 0?C:0}})}return null}},{key:"componentDidUpdate",value:function(E){tP([sn(E.children,va)],[sn(this.props.children,va)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var E=sn(this.props.children,va);if(E&&typeof E.props.shared=="boolean"){var j=E.props.shared?"axis":"item";return s.indexOf(j)>=0?j:i}return i}},{key:"getMouseInfo",value:function(E){if(!this.container)return null;var j=this.container,P=j.getBoundingClientRect(),C=Cwe(P),N={chartX:Math.round(E.pageX-C.left),chartY:Math.round(E.pageY-C.top)},O=P.width/j.offsetWidth||1,k=this.inRange(N.chartX,N.chartY,O);if(!k)return null;var B=this.state,$=B.xAxisMap,_=B.yAxisMap,W=this.getTooltipEventType(),D=bL(this.state,this.props.data,this.props.layout,k);if(W!=="axis"&&$&&_){var J=ms($).scale,z=ms(_).scale,V=J&&J.invert?J.invert(N.chartX):null,Z=z&&z.invert?z.invert(N.chartY):null;return Re(Re({},N),{},{xValue:V,yValue:Z},D)}return D?Re(Re({},N),D):null}},{key:"inRange",value:function(E,j){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,C=this.props.layout,N=E/P,O=j/P;if(C==="horizontal"||C==="vertical"){var k=this.state.offset,B=N>=k.left&&N<=k.left+k.width&&O>=k.top&&O<=k.top+k.height;return B?{x:N,y:O}:null}var $=this.state,_=$.angleAxisMap,W=$.radiusAxisMap;if(_&&W){var D=ms(_);return S9({x:N,y:O},D)}return null}},{key:"parseEventsOfWrapper",value:function(){var E=this.props.children,j=this.getTooltipEventType(),P=sn(E,va),C={};P&&j==="axis"&&(P.props.trigger==="click"?C={onClick:this.handleClick}:C={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var N=Yx(this.props,this.handleOuterEvent);return Re(Re({},N),C)}},{key:"addListener",value:function(){JA.on(QA,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){JA.removeListener(QA,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(E,j,P){for(var C=this.state.formattedGraphicalItems,N=0,O=C.length;N<O;N++){var k=C[N];if(k.item===E||k.props.key===E.key||j===yo(k.item.type)&&P===k.childIndex)return k}return null}},{key:"renderClipPath",value:function(){var E=this.clipPathId,j=this.state.offset,P=j.left,C=j.top,N=j.height,O=j.width;return de.createElement("defs",null,de.createElement("clipPath",{id:E},de.createElement("rect",{x:P,y:C,height:N,width:O})))}},{key:"getXScales",value:function(){var E=this.state.xAxisMap;return E?Object.entries(E).reduce(function(j,P){var C=xL(P,2),N=C[0],O=C[1];return Re(Re({},j),{},dt({},N,O.scale))},{}):null}},{key:"getYScales",value:function(){var E=this.state.yAxisMap;return E?Object.entries(E).reduce(function(j,P){var C=xL(P,2),N=C[0],O=C[1];return Re(Re({},j),{},dt({},N,O.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(E){var j;return(j=this.state.xAxisMap)===null||j===void 0||(j=j[E])===null||j===void 0?void 0:j.scale}},{key:"getYScaleByAxisId",value:function(E){var j;return(j=this.state.yAxisMap)===null||j===void 0||(j=j[E])===null||j===void 0?void 0:j.scale}},{key:"getItemByXY",value:function(E){var j=this.state,P=j.formattedGraphicalItems,C=j.activeItem;if(P&&P.length)for(var N=0,O=P.length;N<O;N++){var k=P[N],B=k.props,$=k.item,_=$.type.defaultProps!==void 0?Re(Re({},$.type.defaultProps),$.props):$.props,W=yo($.type);if(W==="Bar"){var D=(B.data||[]).find(function(Z){return Vje(E,Z)});if(D)return{graphicalItem:k,payload:D}}else if(W==="RadialBar"){var J=(B.data||[]).find(function(Z){return S9(E,Z)});if(J)return{graphicalItem:k,payload:J}}else if(ab(k,C)||nb(k,C)||vh(k,C)){var z=fTe({graphicalItem:k,activeTooltipItem:C,itemData:_.data}),V=_.activeIndex===void 0?z:_.activeIndex;return{graphicalItem:Re(Re({},k),{},{childIndex:V}),payload:vh(k,C)?_.data[z]:k.props.data[z]}}}return null}},{key:"render",value:function(){var E=this;if(!RM(this))return null;
1278var j=this.props,P=j.children,C=j.className,N=j.width,O=j.height,k=j.style,B=j.compact,$=j.title,_=j.desc,W=vL(j,V_e),D=lt(W,!1);if(B)return de.createElement(JB,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},de.createElement(aP,hu({},D,{width:N,height:O,title:$,desc:_}),this.renderClipPath(),MM(P,this.renderMap)));if(this.props.accessibilityLayer){var J,z;D.tabIndex=(J=this.props.tabIndex)!==null&&J!==void 0?J:0,D.role=(z=this.props.role)!==null&&z!==void 0?z:"application",D.onKeyDown=function(Z){E.accessibilityManager.keyboardEvent(Z)},D.onFocus=function(){E.accessibilityManager.focus()}}var V=this.parseEventsOfWrapper();return de.createElement(JB,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},de.createElement("div",hu({className:wt("recharts-wrapper",C),style:Re({position:"relative",cursor:"default",width:N,height:O},k)},V,{ref:function(te){E.container=te}}),de.createElement(aP,hu({},D,{width:N,height:O,title:$,desc:_,style:o5e}),this.renderClipPath(),MM(P,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(L.Component);dt(v,"displayName",r),dt(v,"defaultProps",Re({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),dt(v,"getDerivedStateFromProps",function(b,S){var A=b.dataKey,E=b.data,j=b.children,P=b.width,C=b.height,N=b.layout,O=b.stackOffset,k=b.margin,B=S.dataStartIndex,$=S.dataEndIndex;if(S.updateId===void 0){var _=wL(b);return Re(Re(Re({},_),{},{updateId:0},x(Re(Re({props:b},_),{},{updateId:0}),S)),{},{prevDataKey:A,prevData:E,prevWidth:P,prevHeight:C,prevLayout:N,prevStackOffset:O,prevMargin:k,prevChildren:j})}if(A!==S.prevDataKey||E!==S.prevData||P!==S.prevWidth||C!==S.prevHeight||N!==S.prevLayout||O!==S.prevStackOffset||!Cu(k,S.prevMargin)){var W=wL(b),D={chartX:S.chartX,chartY:S.chartY,isTooltipActive:S.isTooltipActive},J=Re(Re({},bL(S,E,N)),{},{updateId:S.updateId+1}),z=Re(Re(Re({},W),D),J);return Re(Re(Re({},z),x(Re({props:b},z),S)),{},{prevDataKey:A,prevData:E,prevWidth:P,prevHeight:C,prevLayout:N,prevStackOffset:O,prevMargin:k,prevChildren:j})}if(!tP(j,S.prevChildren)){var V,Z,te,K,q=sn(j,nd),X=q&&(V=(Z=q.props)===null||Z===void 0?void 0:Z.startIndex)!==null&&V!==void 0?V:B,U=q&&(te=(K=q.props)===null||K===void 0?void 0:K.endIndex)!==null&&te!==void 0?te:$,ie=X!==B||U!==$,se=!yt(E),he=se&&!ie?S.updateId:S.updateId+1;return Re(Re({updateId:he},x(Re(Re({props:b},S),{},{updateId:he,dataStartIndex:X,dataEndIndex:U}),S)),{},{prevChildren:j,dataStartIndex:X,dataEndIndex:U})}return null}),dt(v,"renderActiveDot",function(b,S,A){var E;return L.isValidElement(b)?E=L.cloneElement(b,S):gt(b)?E=b(S):E=de.createElement(Jy,S),de.createElement(Ht,{className:"recharts-active-dot",key:A},E)});var y=L.forwardRef(function(S,A){return de.createElement(v,hu({},S,{ref:A}))});return y.displayName=v.displayName,y},g5e=JT({chartName:"LineChart",GraphicalChild:am,axisComponents:[{axisType:"xAxis",AxisComp:Eo},{axisType:"yAxis",AxisComp:Ao}],formatAxisMap:EG}),wx=JT({chartName:"BarChart",GraphicalChild:ji,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Eo},{axisType:"yAxis",AxisComp:Ao}],formatAxisMap:EG}),iK=JT({chartName:"PieChart",GraphicalChild:zi,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:rb},{axisType:"radiusAxis",AxisComp:eb}],formatAxisMap:aCe,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});const x5e={favoravel:"#059669",neutro:"#6b7280",contrario:"#dc2626",misto:"#d97706",semAnalise:"#c9b99a"},v5e={favoravel:"Favorável",neutro:"Neutro",contrario:"Contrário",misto:"Misto",semAnalise:"Sem análise"};function y5e({formularioIdInicial:e,onVoltar:t}){const[r,a]=L.useState([]),[n,i]=L.useState(e??null),[o,s]=L.useState([]),[c,u]=L.useState(!0),[h,f]=L.useState(!1),[m,x]=L.useState(!1);L.useEffect(()=>{(async()=>{try{const z=await fetch("/api/escuta/formularios");if(!z.ok)throw new Error(`HTTP ${z.status}`);const V=await z.json();a(V.formularios??[]),!n&&V.formularios?.length&&i(V.formularios[0].id)}catch(z){je.error(`Falha ao carregar: ${z instanceof Error?z.message:"erro"}`)}finally{u(!1)}})()},[n]);const v=L.useMemo(()=>r.find(z=>z.id===n)??null,[r,n]),y=L.useCallback(async()=>
1278{if(n){f(!0);try{const z=await fetch(`/api/escuta/formularios/${n}/respostas`);if(!z.ok)throw new Error(`HTTP ${z.status}`);const V=await z.json();s(V.respostas??[])}catch(z){je.error(`Falha ao carregar respostas: ${z instanceof Error?z.message:"erro"}`)}finally{f(!1)}}},[n]);L.useEffect(()=>{y()},[y]);const[b,S]=L.useState({}),A=L.useCallback(async()=>{if(n)try{const z=await fetch(`/api/escuta/formularios/${n}/analises`);if(!z.ok)return;const V=await z.json(),Z={};(V.analises??[]).forEach(te=>{Z[te.escopo]=te}),S(Z)}catch{}},[n]);L.useEffect(()=>{A()},[A]);const E=L.useCallback((z,V)=>{S(Z=>({...Z,[z]:{...Z[z],escopo:z,...V}}))},[]),j=async()=>{const z=o.filter(Z=>!Z.sentimento_geral);if(z.length===0){je.info("Todas as respostas já foram analisadas pela IA.");return}x(!0);let V=0;for(const Z of z)try{(await fetch("/api/escuta/analisar-resposta",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({respostaId:Z.id})})).ok&&V++}catch{}x(!1),je.success(`${V}/${z.length} respostas analisadas.`),y()},P=L.useMemo(()=>v?v.paginas.flatMap(z=>z.questions):[],[v]),C=L.useMemo(()=>{const z=o.length,V={favoravel:0,neutro:0,contrario:0,misto:0,semAnalise:0};for(const te of o){const K=te.sentimento_geral;K&&K in V?V[K]++:V.semAnalise++}let Z=0;for(const te of o)P.filter(q=>q.required).every(q=>{const X=te.respostas[q.id];return q.type==="checkbox"?Array.isArray(X)&&X.length>0:q.type==="likert"?(q.likertRows??[]).every(U=>te.respostas[U.id]):X!=null&&String(X).trim()!==""})&&Z++;return{total:z,sentimentos:V,concluidas:Z,taxaConclusao:z>0?Math.round(Z/z*100):0}},[o,P]),N=L.useMemo(()=>Object.entries(C.sentimentos).filter(([,z])=>z>0).map(([z,V])=>({name:v5e[z],value:V,key:z})),[C]),O=L.useMemo(()=>{const z=new Map;for(const V of o)for(const Z of V.tags??[])z.set(Z,(z.get(Z)??0)+1);return Array.from(z.entries()).sort((V,Z)=>Z[1]-V[1]).slice(0,12).map(([V,Z])=>({tag:V,count:Z}))},[o]),k=L.useMemo(()=>{const z=new Map;for(const V of o){const Z=V.enviada_em.slice(0,10);z.set(Z,(z.get(Z)??0)+1)}return Array.from(z.entries()).sort((V,Z)=>V[0].localeCompare(Z[0])).map(([V,Z])=>({dia:V.slice(5),respostas:Z}))},[o]),B=L.useMemo(()=>o.reduce((z,V)=>z+(V.duvidas_extraidas?.length??0),0),[o]),[$,_]=L.useState(!1),W=async z=>{if(!v||$)return;_(!0);const V=je.loading("Montando o Word com os gráficosâ¦");try{const Z={};Object.entries(b).forEach(([ie,se])=>{se?.texto_final&&(Z[ie]=se.texto_final)});const{blob:te,graficosEsperados:K,graficosCapturados:q}=await Pve({titulo:v.titulo,municipio:v.municipio,estado:v.estado,tipoPPP:v.tipo_ppp,corPrimaria:v.cor_primaria||"#2D4A2D",paginas:v.paginas,respostas:o,analises:Z,incluirAnalises:z}),X=(v.municipio||v.slug||"escuta").normalize("NFD").replace(/[Ì-ͯ]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-");jve(`escuta-${X}${z?"-completo":"-pesquisa"}`,te);const U=K-q;U>0?je.warning(`Word baixado com ${q} de ${K} gráficos. ${U} não puderam ser capturados â role a página inteira até o fim e exporte de novo.`,{id:V,duration:1e4}):je.success(`Word baixado com os ${q} gráficos â já editável.`,{id:V})}catch(Z){je.error(`Falha ao gerar o Word: ${Z instanceof Error?Z.message:"erro"}`,{id:V})}finally{_(!1)}},D=v?.cor_primaria||"#2D4A2D",J=v?.cor_secundaria||"#7A8C5E";return p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:284",className:"min-h-screen bg-[#EDE9DF] p-6 dashboard-escuta-root",children:[p.jsx("style",{"data-loc":"client/src/pages/DashboardEscuta.tsx:286",children:` 1279 @media print { 1280 @page { 1281 size: A4; 1282 margin: 18mm 14mm 20mm 14mm; 1283 @bottom-center { 1284 content: "PRINT Comunicação · Escuta Social · Página " counter(page) " de " counter(pages); 1285 font-size: 8pt; 1286 color: #7A8C5E; 1287 } 1288 } 1289 html, body { 1290 background: #ffffff !important; 1291 color: #1f2937 !important; 1292 -webkit-print-color-adjust: exact !important; 1293 print-color-adjust: exact !important; 1294 } 1295 .no-print, .no-print * { display: none !important; } 1296 .dashboard-escuta-root { 1297 background: #ffffff !important; 1298 padding: 0 !important; 1299 } 1300 .dashboard-escuta-root .max-w-7xl { 1301 max-width: 100% !important; 1302 padding: 0 !important; 1303 } 1304 .pdf-header-print { 1305 display: flex !important; 1306 page-break-after: avoid; 1307 } 1308 /* Container de seção não deve quebrar no meio */ 1309 .avoid-break { break-inside: avoid; page-break-inside: avoid; } 1310 h1, h2, h3 { break-after: avoid-page; page-break-after: avoid; } 1311 /* Recharts precisa disso pra imprimir */ 1312 .recharts-wrapper, .recharts-surface { break-inside: avoid; } 1313 /* Esconde botões de edição/regeração das análises */ 1314 .bloco-analise-controles, .bloco-analise-cta { display: none !important; } 1315 /* Análises ficam com destaque */ 1316 .bloco-analise-texto { 1317 border-left: 3px solid ${D} !important; 1318 padding-left: 12px !important; 1319 margin-left: 0 !important; 1320 background: #ffffff !important; 1321 } 1322 } 1323 .pdf-header-print { display: none; } 1324 `}),v&&p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:336",className:"pdf-header-print items-center justify-between border-b-4 mb-4 pb-4",style:{borderColor:D},children:[v.logo_url&&p.jsx("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:338",className:"bg-white rounded-lg p-2 shrink-0",style:{minWidth:120},children:p.jsx("img",{"data-loc":"client/src/pages/DashboardEscuta.tsx:339",src:v.logo_url,alt:"",className:"h-20 w-auto object-contain"})}),p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:342",className:"flex-1 mx-6",children:[p.jsx("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:343",className:"text-[10px] font-bold uppercase tracking-[3px]",style:{color:J},children:"Relatório de Escuta Social · PRINT Comunicação"}),p.jsx("h1",{"data-loc":"client/src/pages/DashboardEscuta.tsx:344",className:"text-2xl font-black mt-1",style:{color:D},children:v.titulo}),p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:345",className:"text-xs mt-1 text-gray-600",children:[v.municipio,"/",v.estado," · ",v.tipo_ppp," · ",o.length," respostas · Emitido em ",new Date().toLocaleDateString("pt-BR",{day:"2-digit",month:"long",year:"numeric"})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:350",className:"shrink-0 flex flex-col items-end gap-1",children:[p.jsx("img",{"data-loc":"client/src/pages/DashboardEscuta.tsx:351",
1324src:"/print/print-logo-tagline.png",alt:"PRINT Comunicação",className:"h-14 w-auto object-contain"}),p.jsx("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:352",className:"text-[9px] uppercase tracking-[2px] font-bold",style:{color:"#32412E"},children:"Dialogar pra transformar"})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:359",className:"max-w-7xl mx-auto space-y-5",children:[p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:361",className:"flex items-center justify-between gap-3 flex-wrap no-print",children:[p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:362",className:"flex items-center gap-3",children:[p.jsxs("button",{"data-loc":"client/src/pages/DashboardEscuta.tsx:363",onClick:t,className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-white border border-[#2D4A2D]/10 text-[#2D4A2D] text-xs hover:bg-[#2D4A2D]/5",children:[p.jsx(Hz,{"data-loc":"client/src/pages/DashboardEscuta.tsx:367",size:12})," Voltar"]}),p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:369",children:[p.jsx("h1",{"data-loc":"client/src/pages/DashboardEscuta.tsx:370",className:"text-2xl font-bold text-[#2D4A2D]",children:"Dashboard de Escuta"}),p.jsx("p",{"data-loc":"client/src/pages/DashboardEscuta.tsx:371",className:"text-[#2D4A2D]/60 text-sm mt-0.5",children:"Análise pergunta-por-pergunta das respostas"})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:374",className:"flex items-center gap-2 flex-wrap",children:[p.jsxs("select",{"data-loc":"client/src/pages/DashboardEscuta.tsx:375",value:n??"",onChange:z=>i(z.target.value),className:"text-sm px-3 py-2 rounded-lg border border-[#2D4A2D]/15 bg-white text-[#2D4A2D] font-medium",disabled:c,children:[p.jsx("option",{"data-loc":"client/src/pages/DashboardEscuta.tsx:381",value:"",children:"â Escolha uma consulta â"}),r.map(z=>p.jsxs("option",{"data-loc":"client/src/pages/DashboardEscuta.tsx:383",value:z.id,children:[z.municipio,"/",z.estado," â ",z.titulo," (",z.total_respostas,")"]},z.id))]}),v&&p.jsxs(p.Fragment,{children:[p.jsx("button",{"data-loc":"client/src/pages/DashboardEscuta.tsx:390",onClick:j,disabled:m||C.sentimentos.semAnalise===0,className:"flex items-center gap-1 px-3 py-2 rounded-lg bg-gradient-to-r from-purple-600 to-blue-600 text-white text-xs font-bold disabled:opacity-40",title:C.sentimentos.semAnalise===0?"Todas as respostas já analisadas":`${C.sentimentos.semAnalise} sem análise`,children:m?p.jsxs(p.Fragment,{children:[p.jsx(Wt,{"data-loc":"client/src/pages/DashboardEscuta.tsx:396",size:12,className:"animate-spin"})," Analisandoâ¦"]}):p.jsxs(p.Fragment,{children:["⦠Analisar sem IA (",C.sentimentos.semAnalise,")"]})}),p.jsxs("button",{"data-loc":"client/src/pages/DashboardEscuta.tsx:398",onClick:y,className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-white border border-[#2D4A2D]/10 text-[#2D4A2D] text-xs hover:bg-[#2D4A2D]/5",children:[p.jsx(Mh,{"data-loc":"client/src/pages/DashboardEscuta.tsx:399",size:12})," Atualizar"]}),p.jsxs("button",{"data-loc":"client/src/pages/DashboardEscuta.tsx:401",onClick:()=>W(!1),disabled:$,className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-white border text-xs font-bold disabled:opacity-40",style:{borderColor:`${D}40`,color:D},title:"Só as tabelas da pesquisa, sem os textos de análise â editável no Word",children:[p.jsx(Ru,{"data-loc":"client/src/pages/DashboardEscuta.tsx:408",size:12})," Word · só a pesquisa"]}),p.jsxs("button",{"data-loc":"client/src/pages/DashboardEscuta.tsx:410",onClick:()=>W(!0),disabled:$,className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-white border text-xs font-bold disabled:opacity-40",style:{borderColor:`${D}40`,color:D},title:"Pesquisa + análises qualitativas, editável pra colar no papel timbrado",children:[p.jsx(Ru,{"data-loc":"client/src/pages/DashboardEscuta.tsx:417",size:12})," Word · completo"]}),p.jsxs("button",{"data-loc":"client/src/pages/DashboardEscuta.tsx:419",onClick:()=>window.print(),className:"flex items-center gap-1.5 px-3 py-2 rounded-lg text-white text-xs font-bold shadow-sm",style:{backgroundColor:D},title:"Gera um PDF com identidade visual do municÃpio via caixa de impressão do navegador",children:[p.jsx(Wz,{"data-loc":"client/src/pages/DashboardEscuta.tsx:425",size:12})," Exportar PDF"]})]})]})]}),c?p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:433",className:"bg-white rounded-2xl p-8 flex items-center gap-2 justify-center text-sm text-gray-500",children:[p.jsx(Wt,{"data-loc":"client/src/pages/DashboardEscuta.tsx:434",className:"animate-spin",size:14})," Carregandoâ¦"]}):v?p.jsxs(p.Fragment,{children:[p.jsx("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:443",className:"rounded-2xl overflow-hidden shadow-sm",style:{backgroundColor:D,color:"#fff"},children:p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:444",className:"px-6 py-5 flex items-center gap-4 flex-wrap md:flex-nowrap",children:[v.logo_url&&p.jsx("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:446",className:"bg-white rounded-lg p-2 shadow-md flex items-center justify-center shrink-0",style:{minWidth:100},children:p.jsx("img",{"data-loc":"client/src/pages/DashboardEscuta.tsx:447",
1324src:v.logo_url,alt:"logo",className:"h-16 w-auto max-w-[180px] object-contain"})}),p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:450",className:"flex-1 min-w-0",children:[p.jsx("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:451",className:"text-[10px] uppercase tracking-widest opacity-70",children:"Escuta Social"}),p.jsx("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:452",className:"text-xl font-bold truncate mt-0.5",children:v.titulo}),p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:453",className:"text-xs opacity-80 mt-0.5",children:[v.municipio,"/",v.estado," · ",v.tipo_ppp," ·",p.jsxs("a",{"data-loc":"client/src/pages/DashboardEscuta.tsx:455",href:v.tipo_slug&&v.municipio_slug?`/${v.tipo_slug}/${v.municipio_slug}`:`/consulta/${v.slug}`,target:"_blank",rel:"noopener noreferrer",className:"ml-1 underline inline-flex items-center gap-0.5",children:["abrir formulário público ",p.jsx(Rh,{"data-loc":"client/src/pages/DashboardEscuta.tsx:463",size:10})]})]})]})]})}),p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:471",className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:[p.jsx(sx,{"data-loc":"client/src/pages/DashboardEscuta.tsx:472",icon:p.jsx(xn,{"data-loc":"client/src/pages/DashboardEscuta.tsx:472",size:16}),label:"Total de respostas",valor:C.total,cor:D}),p.jsx(sx,{"data-loc":"client/src/pages/DashboardEscuta.tsx:473",icon:p.jsx(Ip,{"data-loc":"client/src/pages/DashboardEscuta.tsx:473",size:16}),label:"Taxa de conclusão",valor:`${C.taxaConclusao}%`,sub:`${C.concluidas} completas`,cor:"#059669"}),p.jsx(sx,{"data-loc":"client/src/pages/DashboardEscuta.tsx:474",icon:p.jsx(Oh,{"data-loc":"client/src/pages/DashboardEscuta.tsx:474",size:16}),label:"Dúvidas extraÃdas",valor:B,sub:"pela IA",cor:"#5B8FA8"}),p.jsx(sx,{"data-loc":"client/src/pages/DashboardEscuta.tsx:475",icon:p.jsx(Bl,{"data-loc":"client/src/pages/DashboardEscuta.tsx:475",size:16}),label:"Contrários",valor:C.sentimentos.contrario,sub:C.total>0?`${Math.round(C.sentimentos.contrario/C.total*100)}%`:"0%",cor:"#dc2626"})]}),C.total===0?p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:479",className:"bg-white rounded-2xl p-16 text-center border border-dashed border-[#2D4A2D]/20",children:[p.jsx(Nl,{"data-loc":"client/src/pages/DashboardEscuta.tsx:480",size:48,className:"mx-auto text-gray-300 mb-3"}),p.jsx("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:481",className:"text-lg font-bold text-[#2D4A2D]/60",children:"Sem respostas ainda"}),p.jsx("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:482",className:"text-sm text-gray-400 mt-1",children:v.status==="publicado"?"Aguardando as primeiras contribuições dos cidadãos.":`Consulta em status "${v.status}" â publique pra começar a receber respostas.`})]}):p.jsxs(p.Fragment,{children:[p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:491",className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:493",className:"bg-white rounded-2xl border border-[#2D4A2D]/10 p-5 shadow-sm",children:[p.jsx("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:494",className:"text-sm font-bold text-[#2D4A2D] mb-3",children:"Distribuição de sentimento"}),p.jsx(Sl,{"data-loc":"client/src/pages/DashboardEscuta.tsx:495",width:"100%",height:220,children:p.jsxs(iK,{"data-loc":"client/src/pages/DashboardEscuta.tsx:496",children:[p.jsx(zi,{"data-loc":"client/src/pages/DashboardEscuta.tsx:497",data:N,dataKey:"value",nameKey:"name",cx:"50%",cy:"50%",outerRadius:80,innerRadius:40,paddingAngle:2,children:N.map(z=>p.jsx(Yh,{"data-loc":"client/src/pages/DashboardEscuta.tsx:499",fill:x5e[z.key]},z.key))}),p.jsx(va,{"data-loc":"client/src/pages/DashboardEscuta.tsx:502",formatter:z=>`${z} resposta(s)`}),p.jsx(bo,{"data-loc":"client/src/pages/DashboardEscuta.tsx:503"})]})})]}),p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:509",className:"bg-white rounded-2xl border border-[#2D4A2D]/10 p-5 shadow-sm",children:[p.jsx("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:510",className:"text-sm font-bold text-[#2D4A2D] mb-3",children:"Principais tags (IA)"}),O.length>0?p.jsx(Sl,{"data-loc":"client/src/pages/DashboardEscuta.tsx:512",width:"100%",height:220,children:p.jsxs(wx,{"data-loc":"client/src/pages/DashboardEscuta.tsx:513",data:O,layout:"vertical",margin:{left:0},children:[p.jsx(Eo,{"data-loc":"client/src/pages/DashboardEscuta.tsx:514",type:"number",tick:{fontSize:10}}),p.jsx(Ao,{"data-loc":"client/src/pages/DashboardEscuta.tsx:515",type:"category",dataKey:"tag",width:110,tick:{fontSize:10}}),p.jsx(va,{"data-loc":"client/src/pages/DashboardEscuta.tsx:516"}),p.jsx(ji,{"data-loc":"client/src/pages/DashboardEscuta.tsx:517",dataKey:"count",fill:J,radius:[0,4,4,0]})]})}):p.jsx("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:521",className:"text-xs text-gray-400 text-center py-16",children:"Aguardando análise IA das respostas."})]})]}),k.length>1&&p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:528",className:"bg-white rounded-2xl border border-[#2D4A2D]/10 p-5 shadow-sm",children:[p.jsx("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:529",className:"text-sm font-bold text-[#2D4A2D] mb-3",children:"Respostas por dia"}),p.jsx(Sl,{"data-loc":"client/src/pages/DashboardEscuta.tsx:530",width:"100%",height:180,children:p.jsxs(g5e,{"data-loc":"client/src/pages/DashboardEscuta.tsx:531",data:k,children:[p.jsx(VG,{"data-loc":"client/src/pages/DashboardEscuta.tsx:532",strokeDasharray:"3 3",stroke:"#EDE9DF"}),p.jsx(Eo,{"data-loc":"client/src/pages/DashboardEscuta.tsx:533",dataKey:"dia",tick:{fontSize:10}}),p.jsx(Ao,{"data-loc":"client/src/pages/DashboardEscuta.tsx:534",tick:{fontSize:10},allowDecimals:!1}),p.jsx(va,{"data-loc":"client/src/pages/DashboardEscuta.tsx:535"}),p.jsx(am,{"data-loc":"client/src/pages/DashboardEscuta.tsx:536",type:"monotone",dataKey:"respostas",stroke:D,strokeWidth:2,dot:{r:4}})]})})]}),p.jsx(tC,{"data-loc":"client/src/pages/DashboardEscuta.tsx:543",formularioId:v.id,escopo:"formulario",t
1324itulo:"SÃntese executiva da escuta",analise:b.formulario,totalRespostas:o.length,onAtualizar:E,cor:D}),p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:554",className:"space-y-4",children:[p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:555",className:"text-lg font-bold text-[#2D4A2D] flex items-center gap-2",children:[p.jsx(Nl,{"data-loc":"client/src/pages/DashboardEscuta.tsx:556",size:16})," Análise pergunta-por-pergunta",p.jsxs("span",{"data-loc":"client/src/pages/DashboardEscuta.tsx:557",className:"text-xs font-normal text-gray-500",children:["(",P.length," perguntas)"]})]}),v.paginas.map(z=>p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:560",className:"space-y-3",children:[p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:561",className:"text-[10px] font-black uppercase tracking-widest text-[#7A8C5E]",children:["Página ",z.id," â ",z.title]}),p.jsx(tC,{"data-loc":"client/src/pages/DashboardEscuta.tsx:565",formularioId:v.id,escopo:`pagina:${z.id}`,titulo:`Análise da seção: ${z.title}`,analise:b[`pagina:${z.id}`],totalRespostas:o.length,onAtualizar:E,cor:D}),z.questions.map((V,Z)=>p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:575",children:[p.jsx(b5e,{"data-loc":"client/src/pages/DashboardEscuta.tsx:576",pergunta:V,numero:Z+1,respostas:o,cor:D}),p.jsx("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:577",className:"pl-4",children:p.jsx(tC,{"data-loc":"client/src/pages/DashboardEscuta.tsx:578",formularioId:v.id,escopo:`pergunta:${V.id}`,titulo:V.label,analise:b[`pergunta:${V.id}`],totalRespostas:o.length,onAtualizar:E,compacto:!0,cor:D})})]},V.id))]},z.id))]}),B>0&&p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:597",className:"bg-white rounded-2xl border border-[#2D4A2D]/10 p-5 shadow-sm",children:[p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:598",className:"text-sm font-bold text-[#2D4A2D] mb-3",children:["Dúvidas extraÃdas pela IA (",B,")"]}),p.jsx("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:599",className:"space-y-2 max-h-96 overflow-auto",children:o.flatMap(z=>(z.duvidas_extraidas??[]).map((V,Z)=>({d:V,respId:z.id,key:`${z.id}-${Z}`}))).slice(0,50).map(({d:z,respId:V,key:Z})=>p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:607",className:"text-xs bg-[#EDE9DF]/50 rounded p-2 flex items-start gap-2",children:[p.jsxs("span",{"data-loc":"client/src/pages/DashboardEscuta.tsx:608",className:"text-[10px] text-[#7A8C5E] font-bold shrink-0",children:["R#",V]}),p.jsx("span",{"data-loc":"client/src/pages/DashboardEscuta.tsx:609",className:"text-[#2D4A2D]/85",children:z})]},Z))})]})]})]}):p.jsx("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:437",className:"bg-white rounded-2xl p-12 text-center text-sm text-gray-400",children:"Escolha uma consulta no seletor acima."})]})]})}function sx({icon:e,label:t,valor:r,sub:a,cor:n}){return p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:628",className:"bg-white rounded-2xl border border-[#2D4A2D]/10 p-4 shadow-sm avoid-break",children:[p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:629",className:"flex items-center gap-2 mb-2",children:[p.jsx("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:630",className:"w-8 h-8 rounded-lg flex items-center justify-center text-white",style:{backgroundColor:n},children:e}),p.jsx("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:631",className:"text-[10px] font-black uppercase tracking-wider text-[#2D4A2D]/60",children:t})]}),p.jsx("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:633",className:"text-2xl font-black",style:{color:n},children:r}),a&&p.jsx("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:634",className:"text-[10px] text-[#7A8C5E]",children:a})]})}function b5e({pergunta:e,numero:t,respostas:r,cor:a}){const n=e;if(n.type==="radio"||n.type==="checkbox"){const c=new Map;(n.options??[]).forEach(f=>c.set(f,0));for(const f of r){const m=f.respostas[n.id];n.type==="checkbox"&&Array.isArray(m)?m.forEach(x=>c.set(String(x),(c.get(String(x))??0)+1)):typeof m=="string"&&c.set(m,(c.get(m)??0)+1)}const u=Array.from(c.entries()).map(([f,m])=>({opcao:f.length>40?f.slice(0,40)+"â¦":f,n:m})),h=u.reduce((f,m)=>f+m.n,0);return p.jsx(tp,{"data-loc":"client/src/pages/DashboardEscuta.tsx:657",numero:t,q:n,children:h===0?p.jsx("span",{"data-loc":"client/src/pages/DashboardEscuta.tsx:658",className:"text-xs text-gray-400",children:"Sem respostas."}):p.jsx(Sl,{"data-loc":"client/src/pages/DashboardEscuta.tsx:659",width:"100%",height:Math.max(120,u.length*32),children:p.jsxs(wx,{"data-loc":"client/src/pages/DashboardEscuta.tsx:660",data:u,layout:"vertical",margin:{left:0},children:[p.jsx(Eo,{"data-loc":"client/src/pages/DashboardEscuta.tsx:661",type:"number",allowDecimals:!1,tick:{fontSize:10}}),p.jsx(Ao,{"data-loc":"client/src/pages/DashboardEscuta.tsx:662",type:"category",dataKey:"opcao",width:200,tick:{fontSize:10}}),p.jsx(va,{"data-loc":"client/src/pages/DashboardEscuta.tsx:663",formatter:f=>`${f} (${h>0?Math.round(f/h*100):0}%)`}),p.jsx(ji,{"data-loc":"client/src/pages/DashboardEscuta.tsx:664",dataKey:"n",fill:a,radius:[0,4,4,0]})]})})})}if(n.type==="scale"){const c=n.scaleMin??0,u=n.scaleMax??10,h=new Map;for(let y=c;y<=u;y++)h.set(y,0);let f=0,m=0;for(const y of r){const b=y.respostas[n.id];if(b!=null&&b!==""){const S=Number(b);isNaN(S)||(h.set(S,(h.get(S)??0)+1),f+=S,m++)}}const x=m>0?(f/m).toFixed(1):"â",v=Array.from(h.entries()).map(([y,b])=>({valor:String(y),n:b}));return p.jsx(tp,{"data-loc":"client/src/pages/DashboardEscuta.tsx:693",numero:t,q:n,extra:p.jsxs("span",{"data-loc":"client/src/pages/DashboardEscuta.tsx:693",className:"text-xs font-bold",style:{color:a},children:["Média: ",x]}),children:m===0?p.jsx("span",{"data-loc":"client/src/pages/DashboardEscuta.tsx:694",className:"text-xs text-gray-400",children:"Sem respostas."}):p.jsx(Sl,{"data-loc":"client/src/pages/DashboardEscuta.tsx:695",width:"100%",height:140,children:p.jsxs(wx,{"data-loc":"client/src/pages/DashboardEscuta.tsx:696",data:v,children:[p.jsx(Eo,{"data-loc":"client/src/pages/DashboardEscuta.tsx:697",dataKey:"valor",tick:{fontSize:10}}),p.jsx(Ao,{"data-loc":"client/src/pages/DashboardEscuta.tsx:698",tick:{fontSize:10},allowDecimals:!1}),p.jsx(va,{"data-loc":"client/src/pages/DashboardEscuta.tsx:699"}),p.jsx(ji,{"data-loc":"client/src/pages/DashboardEscuta.tsx:700",dataKey:"n",fill:a,radius:[4,4,0,0]})]})})})}if(n.type==="likert"){const c=n.likertRows?.[0]?.options??[],u=(n.likertRows??[]).map(f=>{const m={linha:f.label.length>30?f.label.slice(0,30)+"â¦":f.label};
1324c.forEach(x=>m[x]=0);for(const x of r){const v=x.respostas[f.id];typeof v=="string"&&v in m&&(m[v]=m[v]+1)}return m}),h=["#059669","#d97706","#6b7280","#dc2626","#5B8FA8"];return p.jsx(tp,{"data-loc":"client/src/pages/DashboardEscuta.tsx:724",numero:t,q:n,children:p.jsx(Sl,{"data-loc":"client/src/pages/DashboardEscuta.tsx:725",width:"100%",height:Math.max(180,u.length*50),children:p.jsxs(wx,{"data-loc":"client/src/pages/DashboardEscuta.tsx:726",data:u,layout:"vertical",stackOffset:"expand",margin:{left:0},children:[p.jsx(Eo,{"data-loc":"client/src/pages/DashboardEscuta.tsx:727",type:"number",tickFormatter:f=>`${Math.round(Number(f)*100)}%`,tick:{fontSize:10}}),p.jsx(Ao,{"data-loc":"client/src/pages/DashboardEscuta.tsx:728",type:"category",dataKey:"linha",width:200,tick:{fontSize:10}}),p.jsx(va,{"data-loc":"client/src/pages/DashboardEscuta.tsx:729",formatter:(f,m)=>[`${f} respostas`,m]}),p.jsx(bo,{"data-loc":"client/src/pages/DashboardEscuta.tsx:730",wrapperStyle:{fontSize:10}}),c.map((f,m)=>p.jsx(ji,{"data-loc":"client/src/pages/DashboardEscuta.tsx:732",dataKey:f,stackId:"a",fill:h[m%h.length]},f))]})})})}const i=Ove(n);if(i){const c=r.map(m=>m.respostas[n.id]),{fatias:u,classificados:h,naoClassificados:f}=Bve(i,c);if(u.length>0){const m=["#2D7A4A","#C9A84C","#5B8FA8","#7A8C5E","#b06a3b","#8b6bb1"];return p.jsxs(tp,{"data-loc":"client/src/pages/DashboardEscuta.tsx:749",numero:t,q:n,children:[p.jsx(Sl,{"data-loc":"client/src/pages/DashboardEscuta.tsx:750",width:"100%",height:220,children:p.jsxs(iK,{"data-loc":"client/src/pages/DashboardEscuta.tsx:751",children:[p.jsx(zi,{"data-loc":"client/src/pages/DashboardEscuta.tsx:752",data:u,dataKey:"n",nameKey:"categoria",cx:"50%",cy:"50%",outerRadius:78,label:x=>`${x.categoria}: ${x.pct}%`,labelLine:!1,children:u.map((x,v)=>p.jsx(Yh,{"data-loc":"client/src/pages/DashboardEscuta.tsx:762",fill:m[v%m.length]},x.categoria))}),p.jsx(va,{"data-loc":"client/src/pages/DashboardEscuta.tsx:764",formatter:(x,v)=>[`${x} respostas`,v]}),p.jsx(bo,{"data-loc":"client/src/pages/DashboardEscuta.tsx:765",wrapperStyle:{fontSize:10}})]})}),p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:768",className:"text-[10px] text-[#7A8C5E] mt-1",children:[h," de ",r.length," responderam",i==="idade"&&" · agrupado por faixa etária"]}),f.length>0&&p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:773",className:"text-[10px] text-[#b06a3b] mt-1",children:[f.length,' resposta(s) em "Outros": ',Array.from(new Set(f)).join(", ")]})]})}}const o=r.filter(c=>{const u=c.respostas[n.id];return u!=null&&String(u).trim()!==""}),s=o.slice(0,5).map(c=>String(c.respostas[n.id]??""));return p.jsx(tp,{"data-loc":"client/src/pages/DashboardEscuta.tsx:789",numero:t,q:n,extra:p.jsxs("span",{"data-loc":"client/src/pages/DashboardEscuta.tsx:789",className:"text-xs text-gray-500",children:[o.length," respondida(s) de ",r.length]}),children:s.length===0?p.jsx("span",{"data-loc":"client/src/pages/DashboardEscuta.tsx:791",className:"text-xs text-gray-400",children:"Sem respostas."}):p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:793",className:"space-y-1.5",children:[p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:794",className:"text-[10px] uppercase tracking-wider text-gray-500 font-bold mb-1",children:["Amostra (",s.length," de ",o.length,")"]}),s.map((c,u)=>p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:796",className:"text-xs bg-[#FAFAF8] border border-gray-200 rounded p-2 leading-relaxed",children:['"',c.length>240?c.slice(0,240)+"â¦":c,'"']},u))]})})}function tp({numero:e,q:t,extra:r,children:a}){return p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:809","data-grafico":t.id,className:"bg-white rounded-xl border border-[#2D4A2D]/10 p-4 shadow-sm avoid-break",children:[p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:810",className:"flex items-start gap-2 mb-3",children:[p.jsxs("span",{"data-loc":"client/src/pages/DashboardEscuta.tsx:811",className:"text-[10px] font-bold text-[#7A8C5E] mt-0.5",children:[e,"."]}),p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:812",className:"flex-1 min-w-0",children:[p.jsx("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:813",className:"text-sm font-semibold text-[#2D4A2D]",children:t.label}),p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:814",className:"text-[9px] uppercase tracking-wider text-gray-400 mt-0.5",children:[t.type==="text"&&"texto curto",t.type==="textarea"&&"texto longo",t.type==="radio"&&"escolha única",t.type==="checkbox"&&"múltipla escolha",t.type==="scale"&&`escala ${t.scaleMin??0}-${t.scaleMax??10}`,t.type==="likert"&&`matriz likert · ${t.likertRows?.length??0} linhas`]})]}),r]}),a]})}function tC({formularioId:e,escopo:t,titulo:r,analise:a,totalRespostas:n,onAtualizar:i,compacto:o,cor:s}){const[c,u]=L.useState(!1),[h,f]=L.useState(!1),[m,x]=L.useState(""),[v,y]=L.useState(""),[b,S]=L.useState(!1),A=a?.texto_final??"",E=A.trim().length>0,j=a?.editado_manual&&a?.texto_ia_ultima&&a.texto_ia_ultima!==A,P=async k=>
1324{if(n===0){je.error("Precisa de pelo menos 1 resposta pra gerar análise IA.");return}u(!0);try{const B=await fetch("/api/escuta/analise-qualitativa/gerar",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({formularioId:e,escopo:t,comentarioAnalista:k})});if(!B.ok){const _=await B.json().catch(()=>({error:`HTTP ${B.status}`}));throw new Error(_.error||`HTTP ${B.status}`)}const $=await B.json();i(t,{texto_ia_ultima:$.texto,texto_final:a?.editado_manual?A:$.texto,atualizado_em:new Date().toISOString()}),je.success(k?"Revisão IA aplicada.":"Análise gerada pela IA."),S(!1),y("")}catch(B){je.error(B instanceof Error?B.message:"erro")}finally{u(!1)}},C=async()=>{try{const k=await fetch("/api/escuta/analise-qualitativa",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({formularioId:e,escopo:t,textoFinal:m})});if(!k.ok)throw new Error(`HTTP ${k.status}`);i(t,{texto_final:m,editado_manual:!0,atualizado_em:new Date().toISOString()}),je.success("Análise salva."),f(!1)}catch(k){je.error(k instanceof Error?k.message:"erro")}},N=()=>{a?.texto_ia_ultima&&(x(a.texto_ia_ultima),f(!0))},O=o?"mt-3 pt-3 border-t border-dashed border-[#2D4A2D]/15":"bg-[#EDE9DF]/40 rounded-2xl border border-[#2D4A2D]/10 p-5 shadow-sm";return p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:910",className:O,children:[p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:911",className:"flex items-center gap-2 mb-2 flex-wrap bloco-analise-controles",children:[p.jsx(pn,{"data-loc":"client/src/pages/DashboardEscuta.tsx:912",size:12,style:{color:s}}),p.jsx("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:913",className:`font-bold ${o?"text-[11px] uppercase tracking-wider":"text-sm"}`,style:{color:s},children:o?"Análise qualitativa":r}),a?.editado_manual&&p.jsx("span",{"data-loc":"client/src/pages/DashboardEscuta.tsx:916",className:"text-[9px] text-amber-700 bg-amber-50 border border-amber-200 px-1.5 py-0.5 rounded",children:"editada"}),p.jsx("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:917",className:"flex-1"}),E&&!h&&!b&&p.jsxs(p.Fragment,{children:[p.jsxs("button",{"data-loc":"client/src/pages/DashboardEscuta.tsx:920",onClick:()=>{x(A),f(!0)},className:"flex items-center gap-1 text-[10px] font-bold text-[#2D4A2D] hover:bg-white/60 px-2 py-1 rounded",children:[p.jsx(Mp,{"data-loc":"client/src/pages/DashboardEscuta.tsx:921",size:10})," Editar"]}),p.jsxs("button",{"data-loc":"client/src/pages/DashboardEscuta.tsx:923",onClick:()=>S(!0),className:"flex items-center gap-1 text-[10px] font-bold text-[#2D4A2D] hover:bg-white/60 px-2 py-1 rounded",children:[p.jsx(ote,{"data-loc":"client/src/pages/DashboardEscuta.tsx:924",size:10})," Comentar p/ IA"]}),p.jsxs("button",{"data-loc":"client/src/pages/DashboardEscuta.tsx:926",onClick:()=>P(),disabled:c,className:"flex items-center gap-1 text-[10px] font-bold text-white px-2 py-1 rounded disabled:opacity-40",style:{backgroundColor:s},children:[c?p.jsx(Wt,{"data-loc":"client/src/pages/DashboardEscuta.tsx:927",size:10,className:"animate-spin"}):p.jsx(Mh,{"data-loc":"client/src/pages/DashboardEscuta.tsx:927",size:10})," Regenerar"]}),j&&p.jsx("button",{"data-loc":"client/src/pages/DashboardEscuta.tsx:930",onClick:N,className:"flex items-center gap-1 text-[10px] text-gray-500 hover:text-gray-700 px-2 py-1 rounded",title:"Voltar pro texto sugerido pela IA",children:p.jsx(pte,{"data-loc":"client/src/pages/DashboardEscuta.tsx:931",size:10})})]})]}),!E&&!h&&p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:940",className:"flex items-center justify-between gap-3 bloco-analise-cta",children:[p.jsx("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:941",className:"text-xs text-gray-500",children:n===0?"Aguardando primeiras respostas pra gerar análise IA.":"Peça pra IA sintetizar o que os cidadãos estão dizendo neste escopo."}),p.jsx("button",{"data-loc":"client/src/pages/DashboardEscuta.tsx:944",onClick:()=>P(),disabled:c||n===0,className:"flex items-center gap-1.5 text-xs font-bold text-white px-3 py-1.5 rounded-lg disabled:opacity-40 shrink-0",style:{backgroundColor:s},children:c?p.jsxs(p.Fragment,{children:[p.jsx(Wt,{"data-loc":"client/src/pages/DashboardEscuta.tsx:950",size:12,className:"animate-spin"})," Gerandoâ¦"]}):p.jsxs(p.Fragment,{children:[p.jsx(pn,{"data-loc":"client/src/pages/DashboardEscuta.tsx:950",size:12})," Gerar análise IA"]})})]}),b&&p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:957",className:"space-y-2",children:[p.jsx("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:958",className:"text-[10px] text-gray-500 italic",children:"Diga o que quer ajustar (mais foco em X, tom mais direto, incluir ângulo Yâ¦). A IA reescreve baseando-se no texto atual + no seu c
1324omentário."}),p.jsx("textarea",{"data-loc":"client/src/pages/DashboardEscuta.tsx:961",value:v,onChange:k=>y(k.target.value),rows:3,placeholder:"Ex: focar mais nas dúvidas dos comerciantes locais, incluir a diferença entre bairros centrais e periféricos",className:"w-full text-xs px-3 py-2 border border-[#2D4A2D]/25 rounded-lg resize-y bg-white",autoFocus:!0}),p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:969",className:"flex items-center justify-end gap-2",children:[p.jsx("button",{"data-loc":"client/src/pages/DashboardEscuta.tsx:970",onClick:()=>{S(!1),y("")},className:"text-[10px] text-gray-500 px-2 py-1 rounded hover:bg-white/60",children:"Cancelar"}),p.jsxs("button",{"data-loc":"client/src/pages/DashboardEscuta.tsx:973",onClick:()=>P(v),disabled:c||!v.trim(),className:"flex items-center gap-1 text-[10px] font-bold text-white px-3 py-1.5 rounded-lg disabled:opacity-40",style:{backgroundColor:s},children:[c?p.jsx(Wt,{"data-loc":"client/src/pages/DashboardEscuta.tsx:979",size:10,className:"animate-spin"}):p.jsx(pn,{"data-loc":"client/src/pages/DashboardEscuta.tsx:979",size:10})," Enviar pra IA"]})]})]}),h&&p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:987",className:"space-y-2",children:[p.jsx("textarea",{"data-loc":"client/src/pages/DashboardEscuta.tsx:988",value:m,onChange:k=>x(k.target.value),rows:o?6:10,className:"w-full text-xs px-3 py-2 border border-[#2D4A2D]/25 rounded-lg resize-y bg-white font-mono",autoFocus:!0}),p.jsxs("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:995",className:"flex items-center justify-end gap-2",children:[p.jsxs("button",{"data-loc":"client/src/pages/DashboardEscuta.tsx:996",onClick:()=>f(!1),className:"flex items-center gap-1 text-[10px] text-gray-500 px-2 py-1 rounded hover:bg-white/60",children:[p.jsx(dn,{"data-loc":"client/src/pages/DashboardEscuta.tsx:997",size:10})," Cancelar"]}),p.jsxs("button",{"data-loc":"client/src/pages/DashboardEscuta.tsx:999",onClick:C,className:"flex items-center gap-1 text-[10px] font-bold text-white px-3 py-1.5 rounded-lg",style:{backgroundColor:s},children:[p.jsx(Kee,{"data-loc":"client/src/pages/DashboardEscuta.tsx:1000",size:10})," Salvar edição"]})]})]}),E&&!h&&!b&&p.jsx("div",{"data-loc":"client/src/pages/DashboardEscuta.tsx:1008",className:`text-sm text-[#2D4A2D]/90 leading-relaxed bloco-analise-texto ${o?"text-xs":""}`,children:p.jsx(iV,{"data-loc":"client/src/pages/DashboardEscuta.tsx:1009",remarkPlugins:[TV],components:{p:({children:k})=>p.jsx("p",{"data-loc":"client/src/pages/DashboardEscuta.tsx:1012",className:"mb-2 last:mb-0",children:k}),strong:({children:k})=>p.jsx("strong",{"data-loc":"client/src/pages/DashboardEscuta.tsx:1013",className:"font-bold",children:k}),em:({children:k})=>p.jsx("em",{"data-loc":"client/src/pages/DashboardEscuta.tsx:1014",className:"italic",children:k}),ul:({children:k})=>p.jsx("ul",{"data-loc":"client/src/pages/DashboardEscuta.tsx:1015",className:"list-disc pl-4 mb-2 space-y-0.5",children:k}),ol:({children:k})=>p.jsx("ol",{"data-loc":"client/src/pages/DashboardEscuta.tsx:1016",className:"list-decimal pl-4 mb-2 space-y-0.5",children:k})},children:A})})]})}function EL({slug:e,tipoSlug:t,municipioSlug:r}){const[a,n]=L.useState(null),[i,o]=L.useState(!0),[s,c]=L.useState(null),[u,h]=L.useState(0),[f,m]=L.useState({}),[x,v]=L.useState(!1),[y,b]=L.useState(!1),[S,A]=L.useState(null);L.useEffect(()=>{let D=!0;return(async()=>{try{const J=t&&r?`/api/escuta/formularios/por-tipo/${encodeURIComponent(t)}/${encodeURIComponent(r)}`:`/api/escuta/formularios/${encodeURIComponent(e??"")}`,z=await fetch(J);if(!z.ok){const Z=await z.json().catch(()=>({error:`HTTP ${z.status}`}));throw new Error(Z.error||`HTTP ${z.status}`)}const V=await z.json();if(!D)return;n(V.formulario)}catch(J){D&&c(J instanceof Error?J.message:"Erro ao carregar formulário")}finally{D&&o(!1)}})(),()=>{D=!1}},[e,t,r]);const E=L.useMemo(()=>a?{primaria:a.corPrimaria||a.cor_primaria||"#2D4A2D",secundaria:a.corSecundaria||a.cor_secundaria||"#7A8C5E",texto:"#FFFFFF"}:{primaria:"#2D4A2D",secundaria:"#7A8C5E",texto:"#FFFFFF"},[a]),j=a?.logoUrl||a?.logo_url,P=a?.paginas[u],C=a?.paginas.length??0,N=u===C-1,O=C>0?Math.round((u+1)/C*100):0,k=L.useMemo(()=>P?P.questions.filter(D=>{if(!D.conditionalOn)return!0;const J=f[D.conditionalOn];
1324return String(J)===D.conditionalValue}):[],[P,f]),B=()=>{const D=[];for(const J of k){if(!J.required)continue;const z=f[J.id];J.type==="likert"?(J.likertRows??[]).filter(Z=>!f[Z.id]).length>0&&D.push(J.label):J.type==="checkbox"?(!Array.isArray(z)||z.length===0)&&D.push(J.label):(z==null||String(z).trim()==="")&&D.push(J.label)}return{ok:D.length===0,faltando:D}},$=()=>{const{ok:D,faltando:J}=B();if(!D){je.error(`Preencha antes de avançar: ${J.slice(0,3).join("; ")}${J.length>3?"â¦":""}`);return}N?W():(h(z=>z+1),window.scrollTo({top:0,behavior:"smooth"}))},_=()=>{h(D=>Math.max(0,D-1)),window.scrollTo({top:0,behavior:"smooth"})},W=async()=>{if(a){v(!0);try{const D=await fetch("/api/escuta/respostas",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({formularioId:a.id,respondenteNome:f.q1||void 0,respostas:f})});if(!D.ok){const z=await D.json().catch(()=>({error:`HTTP ${D.status}`}));throw new Error(z.error||`HTTP ${D.status}`)}const J=await D.json();A(J.id),b(!0)}catch(D){const J=D instanceof Error?D.message:"Erro ao enviar";je.error(J)}finally{v(!1)}}};if(i)return p.jsx("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:156",className:"min-h-screen flex items-center justify-center bg-gray-50",children:p.jsxs("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:157",className:"flex items-center gap-3 text-gray-500",children:[p.jsx(Wt,{"data-loc":"client/src/pages/ConsultaPublica.tsx:158",className:"animate-spin",size:20}),p.jsx("span",{"data-loc":"client/src/pages/ConsultaPublica.tsx:159",className:"text-sm",children:"Carregando escuta socialâ¦"})]})});if(s||!a)return p.jsx("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:167",className:"min-h-screen flex items-center justify-center bg-gray-50 p-6",children:p.jsxs("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:168",className:"max-w-md bg-white rounded-2xl border border-red-200 p-6 text-center shadow-sm",children:[p.jsx(Bl,{"data-loc":"client/src/pages/ConsultaPublica.tsx:169",size:40,className:"text-red-500 mx-auto mb-3"}),p.jsx("h1",{"data-loc":"client/src/pages/ConsultaPublica.tsx:170",className:"text-lg font-bold text-gray-900 mb-2",children:"Consulta indisponÃvel"}),p.jsx("p",{"data-loc":"client/src/pages/ConsultaPublica.tsx:171",className:"text-sm text-gray-600 mb-1",children:s||"Formulário não encontrado"}),p.jsx("p",{"data-loc":"client/src/pages/ConsultaPublica.tsx:172",className:"text-xs text-gray-400 mt-3",children:"Verifique se o link está correto ou se a escuta social já foi encerrada."})]})});if(a.encerrada){const D=a.dataFim||a.data_fim;return p.jsx("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:182",className:"min-h-screen flex items-center justify-center p-6",style:{backgroundColor:`${E.primaria}12`},children:p.jsxs("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:183",className:"max-w-lg w-full bg-white rounded-3xl shadow-xl p-8 md:p-10 text-center",children:[j&&p.jsx("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:185",className:"mx-auto mb-6 bg-white rounded-xl p-3 shadow-md w-fit",children:p.jsx("img",{"data-loc":"client/src/pages/ConsultaPublica.tsx:186",src:j,alt:"Logo",className:"h-20 md:h-24 w-auto object-contain"})}),p.jsx("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:189",className:"w-20 h-20 rounded-full mx-auto mb-5 flex items-center justify-center",style:{backgroundColor:E.primaria},children:p.jsx(nte,{"data-loc":"client/src/pages/ConsultaPublica.tsx:190",size:38,color:E.texto})}),p.jsx("h1",{"data-loc":"client/src/pages/ConsultaPublica.tsx:192",className:"text-2xl md:text-3xl font-black mb-3 leading-tight",style:{color:E.primaria},children:"Escuta social encerrada"}),p.jsxs("p",{"data-loc":"client/src/pages/ConsultaPublica.tsx:195",className:"text-gray-700 mb-1",children:["O prazo pra contribuir com ",p.jsx("strong",{"data-loc":"client/src/pages/ConsultaPublica.tsx:196",children:a.titulo})," chegou ao fim."]}),D&&p.jsxs("p",{"data-loc":"client/src/pages/ConsultaPublica.tsx:199",className:"text-sm text-gray-500 mt-2",children:["Encerrada em ",new Date(D).toLocaleStr
1324ing("pt-BR",{day:"2-digit",month:"long",year:"numeric",hour:"2-digit",minute:"2-digit"})]}),p.jsx("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:203",className:"mt-6 pt-6 border-t border-gray-100 text-sm text-gray-500",children:"Obrigado a todos que participaram. As contribuições estão sendo analisadas pela equipe técnica e serão incorporadas ao projeto."}),a.municipio&&p.jsxs("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:207",className:"text-xs text-gray-400 mt-4",children:[a.municipio,"/",a.estado," · ",a.tipoPPP]})]})})}if(a.aindaNaoIniciou){const D=a.dataInicio||a.data_inicio;return p.jsx("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:220",className:"min-h-screen flex items-center justify-center p-6",style:{backgroundColor:`${E.primaria}12`},children:p.jsxs("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:221",className:"max-w-lg w-full bg-white rounded-3xl shadow-xl p-8 md:p-10 text-center",children:[j&&p.jsx("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:223",className:"mx-auto mb-6 bg-white rounded-xl p-3 shadow-md w-fit",children:p.jsx("img",{"data-loc":"client/src/pages/ConsultaPublica.tsx:224",src:j,alt:"Logo",className:"h-20 md:h-24 w-auto object-contain"})}),p.jsx("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:227",className:"w-20 h-20 rounded-full mx-auto mb-5 flex items-center justify-center",style:{backgroundColor:E.secundaria},children:p.jsx(iy,{"data-loc":"client/src/pages/ConsultaPublica.tsx:228",size:38,color:E.texto})}),p.jsx("h1",{"data-loc":"client/src/pages/ConsultaPublica.tsx:230",className:"text-2xl md:text-3xl font-black mb-3 leading-tight",style:{color:E.primaria},children:"Escuta social em breve"}),p.jsxs("p",{"data-loc":"client/src/pages/ConsultaPublica.tsx:233",className:"text-gray-700",children:["A participação em ",p.jsx("strong",{"data-loc":"client/src/pages/ConsultaPublica.tsx:234",children:a.titulo})," ainda não abriu."]}),D&&p.jsxs("p",{"data-loc":"client/src/pages/ConsultaPublica.tsx:237",className:"text-lg text-gray-800 mt-4 font-bold",children:["Abertura: ",new Date(D).toLocaleString("pt-BR",{day:"2-digit",month:"long",year:"numeric",hour:"2-digit",minute:"2-digit"})]})]})})}return y?p.jsx("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:248",className:"min-h-screen bg-gray-50 flex items-center justify-center p-6",style:{backgroundColor:`${E.primaria}08`},children:p.jsxs("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:249",className:"max-w-lg bg-white rounded-2xl shadow-xl p-8 text-center",children:[p.jsx("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:250",className:"w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4",style:{backgroundColor:E.primaria},children:p.jsx(ta,{"data-loc":"client/src/pages/ConsultaPublica.tsx:251",size:32,color:E.texto})}),p.jsx("h1",{"data-loc":"client/src/pages/ConsultaPublica.tsx:253",className:"text-2xl font-bold mb-2",style:{color:E.primaria},children:"Obrigado pela sua contribuição!"}),p.jsx("p",{"data-loc":"client/src/pages/ConsultaPublica.tsx:254",className:"text-gray-600 mb-1",children:"Sua resposta foi registrada com sucesso."}),p.jsxs("p",{"data-loc":"client/src/pages/ConsultaPublica.tsx:255",className:"text-sm text-gray-500",children:["Nº da resposta: ",p.jsxs("strong",{"data-loc":"client/src/pages/ConsultaPublica.tsx:256",children:["#",S]})]}),p.jsx("p",{"data-loc":"client/src/pages/ConsultaPublica.tsx:258",className:"text-xs text-gray-400 mt-6",children:a.titulo})]})}):p.jsxs("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:269",className:"min-h-screen bg-gray-50",children:[p.jsx("header",{"data-loc":"client/src/pages/ConsultaPublica.tsx:271",className:"w-full py-6 px-6 shadow-md",style:{backgroundColor:E.primaria,color:E.texto},children:p.jsxs("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:275",className:"max-w-4xl mx-auto flex items-center gap-6 flex-wrap md:flex-nowrap",children:[j&&p.jsx("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:277",className:"bg-white rounded-xl p-3 shadow-lg flex items-center justify-center shrink-0",style:{minWidth:140},children:p.jsx("img",{"data-loc":"client/src/pages/ConsultaPublica.tsx:278",src:j,alt:"Logo do municÃpio",className:"h-24 md:h-28 w-auto max-w-[220px] object-contain",loading:"eager"})}),p.jsxs("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:286",className:"flex-1 min-w-0",children:[p.jsx("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:287",className:"text-[11px] uppercase tracking-[2px] opacity-80 font-semibold",children:"Escuta Social"}),p.jsx("h1",{"data-loc":"client/src/pages/ConsultaPublica.tsx:288",className:"text-xl md:text-2xl font-bold mt-1 leading-tight",children:(()=>{const D=(a.tipoPPP||"").trim(),J=(a.municipio||"").trim();return D&&J?`Escuta Social â ${D} de ${J}`:(a.titulo||"").replace(/ - /g," â ").replace(/ · /g," ").replace(/\s+/g," ").trim()})()}),a.municipio&&p.jsxs("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:305",className:"text-sm opacity-90 mt-2 font-medium",children:[a.municipio,"/",a.estado]})]})]})}),p.jsx("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:314",className:"w-full bg-gray-200 h-1.5",children:p.jsx("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:315",className:"h-1.5 transition-all duration-300",style:{width:`${O}%`,backgroundColor:E.secundaria}})}),p.jsxs("main",{"data-loc":"client/src/pages/ConsultaPublica.tsx:321",className:"max-w-3xl mx-auto p-6",children:[u===0&&p.jsxs("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:323",className:"mb-6 p-5 rounded-xl bg-white border border-gray-200 shadow-sm text-sm text-gray-700 leading-relaxed space-y-4",children:[p.jsxs("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:324",children:[p.jsx("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:325",className:"text-[10px] font-black uppercase tracking-wider mb-1",style:{color:E.primaria},children:"O que é uma PPP?"}),p.jsxs("p",{"data-loc":"client/src/pages/ConsultaPublica.tsx:328",children:["Uma ",p.jsx("strong",{"data-loc":"client/src/pages/ConsultaPublica.tsx:329",children:"Parceria Público-Privada (PPP)"})," é um contrato de longo prazo entre a prefeitura e uma empresa privada pra planejar, executar e manter serviços públicos",a.tipoPPP?p.jsxs(p.Fragment,{children:[" â neste caso, de ",p.jsx("strong",{"data-loc":"client/src/pages/ConsultaPublica.tsx:329",children:a.tipoPPP.toLowerCase()})]}):null," com padrão de qualidade acompanhado pelo poder público."]})]}),p.jsxs("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:332",children:[p.jsx("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:333",className:"text-[10px] font-black uppercase tracking-wider mb-1",style:{color:E.primaria},children:"Por que ouvir você?"}),p.jsx("p",{"data-loc":"client/src/pages/ConsultaPublica.tsx:337",children:a.subtitulo&&a.subtitulo.trim().length>0?a.subtitulo:`Este formulário faz parte da Escuta Social do projeto de estruturação da Parceria Público-Privada${a.tipoPPP?` de ${a.tipoPPP}`:""}${a.municipio?` de ${a.municipio}`:""}. Participe! Sua contribuição é muito importante.`})]}),p.jsxs("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:343",className:"text-[11px] text-gray-500 pt-2 border-t border-gray-100",children:["ð Seus dados são usados exclusivamente pra este projeto, em conformidade com a ",p.jsx("strong",{"data-loc":"client/src/pages/ConsultaPublica.tsx:344",children:"LGPD"})," (Lei nº 13.709/2018). Não são compartilhados com terceiros."]})]}),p.jsxs("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:349",className:"bg-white rounded-2xl shadow-sm border border-gray-200 overflow-hidden",children:[p.jsxs("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:350",className:"px-6 py-4 border-b border-gray-100 flex items-center justify-between",children:[p.jsxs("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:351",children:[p.jsxs("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:352",className:"text-xs text-gray-500 uppercase tracking-wider",children:["Página ",u+1," de ",C]}),p.jsx("h2",{"data-loc":"client/src/pages/ConsultaPublica.tsx:355",className:"text-lg font-bold text-gray-900 mt-0.5",children:P?.title}),P?.subtitle&&p.jsx("p",{"data-loc":"client/src/pages/ConsultaPublica.tsx:359",className:"text-sm text-gray-600 mt-1",children:P.subtitle})]}),p.jsxs("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:362",className:"text-2xl font-black",style:{color:E.primaria},children:[O,"%"]})]}),p.jsxs("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:365",className:"p-6 space-y-6",children:[k.map((D,J)=>p.jsxs("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:367",className:"space-y-2",children:[p.jsxs("label",{"data-loc":"client/src/pages/ConsultaPublica.tsx:368",className:"block text-sm font-semibold text-gray-800",children:[p.jsxs("span",{"data-loc":"client/src/pages/ConsultaPublica.tsx:369",className:"text-gray-400 mr-2",children:[J+1,"."]}),D.label,D.required&&p.jsx("span",{"data-loc":"client/src/pages/ConsultaPublica.tsx:371",className:"text-red-500 ml-1",children:"*"})]}),p.jsx(w5e,{"data-loc":"client/src/pages/ConsultaPublica.tsx:373",pergunta:D,valor:f[D.id],respostas:f,onChange:z=>m(V=>({...V,[D.id]:z})),onChangeLikert:(z,V)=>m(Z=>({...Z,[z]:V})),cores:E})]},D.id)),k.length===0&&p.jsx("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:384",className:"text-center text-gray-400 italic py-8",children:"Nenhuma pergunta nesta página."})]}),p.jsxs("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:390",className:"px-6 py-4 border-t border-gray-100 flex items-center justify-between gap-3 bg-gray-50",children:[p.jsxs("button",{"data-loc":"client/src/pages/ConsultaPublica.tsx:391",onClick:_,disabled:u===0||x,
1324className:"flex items-center gap-1.5 px-4 py-2 rounded-lg text-sm font-medium text-gray-600 hover:bg-white disabled:opacity-40 disabled:cursor-not-allowed transition-colors",children:[p.jsx(Hz,{"data-loc":"client/src/pages/ConsultaPublica.tsx:396",size:14})," Voltar"]}),p.jsx("button",{"data-loc":"client/src/pages/ConsultaPublica.tsx:398",onClick:$,disabled:x,className:"flex items-center gap-1.5 px-6 py-2 rounded-lg text-sm font-bold text-white disabled:opacity-50 transition-all shadow-sm hover:shadow-md",style:{backgroundColor:E.primaria},children:x?p.jsxs(p.Fragment,{children:[p.jsx(Wt,{"data-loc":"client/src/pages/ConsultaPublica.tsx:405",className:"animate-spin",size:14})," Enviandoâ¦"]}):N?p.jsxs(p.Fragment,{children:[p.jsx(sy,{"data-loc":"client/src/pages/ConsultaPublica.tsx:407",size:14})," Enviar resposta"]}):p.jsxs(p.Fragment,{children:["Próxima ",p.jsx(tN,{"data-loc":"client/src/pages/ConsultaPublica.tsx:409",size:14})]})})]})]}),p.jsx("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:415",className:"mt-6 text-center text-xs text-gray-400",children:"Seus dados são tratados conforme a LGPD e utilizados exclusivamente para fins desta escuta social."})]}),p.jsx("footer",{"data-loc":"client/src/pages/ConsultaPublica.tsx:421",className:"mt-8 py-8 px-6 border-t border-gray-200 bg-white",children:p.jsxs("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:422",className:"max-w-4xl mx-auto flex items-center justify-between gap-4 flex-wrap",children:[p.jsx("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:423",className:"flex items-center gap-3",children:p.jsx("img",{"data-loc":"client/src/pages/ConsultaPublica.tsx:424",src:"/print/print-logo-tagline.png",alt:"PRINT Comunicação â Consultoria estratégica em comunicação",className:"h-10 md:h-12 w-auto object-contain"})}),p.jsxs("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:426",className:"text-right",children:[p.jsx("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:427",className:"text-[10px] uppercase tracking-[2px] font-bold",style:{color:"#32412E"},children:"Dialogar pra transformar"}),p.jsx("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:430",className:"text-[10px] text-gray-500 mt-1",children:"Escuta Social realizada pela PRINT Comunicação"})]})]})})]})}function w5e({pergunta:e,valor:t,respostas:r,onChange:a,onChangeLikert:n,cores:i}){const o=e;if(o.type==="text")return p.jsx("input",{"data-loc":"client/src/pages/ConsultaPublica.tsx:456",type:"text",value:t??"",onChange:s=>a(s.target.value),placeholder:o.placeholder,className:"w-full px-3 py-2 rounded-lg border border-gray-300 text-sm focus:outline-none focus:ring-2",style:{"--tw-ring-color":i.secundaria}});if(o.type==="textarea")return p.jsx("textarea",{"data-loc":"client/src/pages/ConsultaPublica.tsx:469",value:t??"",onChange:s=>a(s.target.value),placeholder:o.placeholder,rows:4,className:"w-full px-3 py-2 rounded-lg border border-gray-300 text-sm focus:outline-none focus:ring-2 resize-y",style:{"--tw-ring-color":i.secundaria}});if(o.type==="radio")return p.jsx("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:482",className:"space-y-1.5",children:(o.options??[]).map(s=>{const c=t===s;return p.jsxs("label",{"data-loc":"client/src/pages/ConsultaPublica.tsx:486",className:"flex items-start gap-2 p-2.5 rounded-lg border cursor-pointer transition-all hover:bg-gray-50",style:{borderColor:c?i.primaria:"#E5E7EB",backgroundColor:c?`${i.primaria}10`:void 0},children:[p.jsx("input",{"data-loc":"client/src/pages/ConsultaPublica.tsx:494",type:"radio",checked:c,onChange:()=>a(s),className:"mt-0.5 accent-current",style:{accentColor:i.primaria}}),p.jsx("span",{"data-loc":"client/src/pages/ConsultaPublica.tsx:501",className:"text-sm text-gray-800 leading-relaxed",children:s})]},s)})});if(o.type==="checkbox"){const s=t??[];return p.jsx("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:512",className:"space-y-1.5",children:(o.options??[]).map(c=>{const u=s.includes(c);return p.jsxs("label",{"data-loc":"client/src/pages/ConsultaPublica.tsx:516",className:"flex items-start gap-2 p-2.5 rounded-lg border cursor-pointer transition-all hover:bg-gray-50",style:{borderColor:u?i.primaria:"#E5E7EB",backgroundColor:u?`${i.primaria}10`:void 0},children:[p.jsx("input",{"data-loc":"client/src/pages/ConsultaPublica.tsx:524",type:"checkbox",checked:u,onChange:()=>{const h=u?s.filter(f=>f!==c):[...s,c];a(h)},className:"mt-0.5",style:{accentColor:i.primaria}}),p.jsx("span",{"data-loc":"client/src/pages/ConsultaPublica.tsx:534",className:"text-sm text-gray-800 leading-relaxed",children:c})]},c)})})}if(o.type==="scale"){const s=o.scaleMin??0,c=o.scaleMax??10,u=t!==void 0&&t!==""?Number(t):null,h=u!==null&&!isNaN(u),f=Array.from({length:c-s+1},(x,v)=>s+v),m=x=>{const v=(x-s)/(c-s);return v<.34?"#dc2626":v<.67?"#d97706":"#059669"};return p.jsxs("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:556",className:"space-y-3",children:[p.jsx("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:558",className:"rounded-2xl p-6 flex items-center justify-center flex-col gap-2",style:{backgroundColor:`${i.primaria}08`,border:`2px dashed ${i.primaria}30`},children:h?p.jsxs(p.Fragment,{children:[p.jsx("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:561",className:"text-6xl md:text-7xl font-black leading-none tabular-nums",style:{color:m(u)},children:u}),p.jsx("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:564",className:"text-xs font-bold uppercase tracking-widest",style:{color:m(u)},children:(()=>{const x=(u-s)/(c-s);return x<.34?o.scaleMinLabel??`${u} de ${c}`:x<.67?"Moderado":o.scaleMaxLabel??`${u} de ${c}`})()})]}):p.jsx("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:574",className:"text-4xl md:text-5xl font-black text-gray-300",children:"?"})}),p.jsxs("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:579",className:"px-2",children:[p.jsx("input",{"data-loc":"client/src/pages/ConsultaPublica.tsx:580",type:"range",min:s,max:c,step:1,value:u??s,onChange:x=>a(String(x.target.value)),className:"w-full h-3 appearance-none rounded-full cursor-pointer",style:{background:h?"linear-gradient(to right, #dc2626 0%, #d97706 50%, #059669 100%)":"#e5e7eb",accentColor:i.primaria}}),p.jsxs("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:595",className:"flex items-center justify-between mt-2 px-1",children:[p.jsxs("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:596",className:"text-xs text-gray-500 font-medium",children:[p.jsx("span",{"data-loc":"client/src/pages/ConsultaPublica.tsx:597",className:"block text-[10px] uppercase tracking-wider opacity-60",children:s}),p.jsx("span",{"data-loc":"client/src/pages/ConsultaPublica.tsx:598",children:o.scaleMinLabel??"MÃnimo"})]}),p.jsxs("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:600",className:"text-xs text-gray-500 font-medium text-right",children:[p.jsx("span",{"data-loc":"client/src/pages/ConsultaPublica.tsx:601",className:"block text-[10px] uppercase tracking-wider opacity-60",children:c}),p.jsx("span",{"data-loc":"client/src/pages/ConsultaPublica.tsx:602",children:o.scaleMaxLabel??"Máximo"})]})]})]}),p.jsx("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:608",className:"flex gap-1 flex-wrap",children:f.map(x=>{const v=u===x;return p.jsx("button",{"data-loc":"client/src/pages/ConsultaPublica.tsx:612",type:"button",onClick:()=>a(String(x)),className:"flex-1 min-w-[32px] py-1.5 rounded text-xs font-bold border transition-all",style:{borderColor:v?m(x):"#E5E7EB",backgroundColor:v?m(x):"#FFFFFF",color:v?"#FFFFFF":"#9CA3AF"},children:x},x)})})]})}if(o.type==="likert"){const s=o.likertRows??[],c=s[0]?.options??[];return p.jsx("div",{"data-loc":"client/src/pages/ConsultaPublica.tsx:637",className:"overflow-x-auto rounded-lg border border-gray-200",children:p.jsxs("table",{"data-loc":"client/src/pages/ConsultaPublica.tsx:638",className:"w-full text-sm",children:[p.jsx("thead",{"data-loc":"client/src/pages/ConsultaPublica.tsx:639",children:p.jsxs("tr",{"data-loc":"client/src/pages/ConsultaPublica.tsx:640",className:"bg-gray-50 border-b border-gray-200",children:[p.jsx("th",{"data-loc":"client/src/pages/ConsultaPublica.tsx:641",className:"text-left p-2 text-gray-600 font-semibold text-xs sticky left-0 bg-gray-50 min-w-[160px]"}),c.map(u=>p.jsx("th",{"data-loc":"client/src/pages/ConsultaPublica.tsx:643",className:"p-2 text-center text-gray-600 font-semibold text-xs",children:u},u))]})}),p.jsx("tbody",{"data-loc":"client/src/pages/ConsultaPublica.tsx:649",children:s.map(u=>{const h=r[u.id];return p.jsxs("tr",{"data-loc":"client/src/pages/ConsultaPublica.tsx:654",className:"border-b border-gray-100 last:border-0",children:[p.jsx("td",{"data-loc":"client/src/pages/ConsultaPublica.tsx:655",className:"p-2 text-gray-800 sticky left-0 bg-white",children:u.label}),u.options.map(f=>p.jsx("td",{"data-loc":"client/src/pages/ConsultaPublica.tsx:659",className:"p-2 text-center",children:p.jsx("input",{"data-loc":"client/src/pages/ConsultaPublica.tsx:660",type:"radio",name:u.id,checked:h===f,onChange:()=>n(u.id,f),style:{accentColor:i.primaria}})},f))]},u.id)})})]})})}return null}const fl=[{id:"it-01",titulo:"Itaperuna avança em projeto de modernização da iluminação pública com PPP",veiculo:"Itaperuna
1324NotÃcias",tipo:"portal",data:"12 Abr 2026",sentimento:"positivo",municipio:"Itaperuna/RJ",resumo:"Prefeitura apresenta projeto de PPP para modernização de 18.000 pontos de iluminação com tecnologia LED e sensores inteligentes. Prefeito Nel destaca economia de até 60% na conta de energia.",relevancia:"alta"},{id:"it-02",titulo:'Vereadores questionam "privatização" da iluminação pública em Itaperuna',veiculo:"Folha do Norte Fluminense",tipo:"jornal",data:"08 Abr 2026",sentimento:"negativo",municipio:"Itaperuna/RJ",resumo:'Vereador Eduardo do Toldo (PL) protocolou requerimento pedindo esclarecimentos sobre o contrato de PPP. Questiona "entrega do serviço público à iniciativa privada".',relevancia:"alta",acaoRecomendada:"Responder ao requerimento com nota técnica em até 48h. Agendar reunião individual com o vereador Eduardo do Toldo."},{id:"it-03",titulo:"Escuta social sobre PPP de iluminação recebe 124 contribuições na primeira semana",veiculo:"G1 Norte Fluminense",tipo:"portal",data:"05 Abr 2026",sentimento:"positivo",municipio:"Itaperuna/RJ",resumo:"Portal de escuta social registra 124 contribuições em 7 dias. Maioria das manifestações é favorável ao projeto. Prazo se encerra em 30 dias.",relevancia:"alta"},{id:"it-04",titulo:"PPP de iluminação: entenda o que muda para o morador de Itaperuna",veiculo:"Rádio Itaperuna FM",tipo:"radio",data:"02 Abr 2026",sentimento:"neutro",municipio:"Itaperuna/RJ",resumo:"Reportagem explica o modelo de PPP para a população. Entrevista com secretário de infraestrutura. Aborda dúvidas sobre quem paga a conta e o que acontece com os funcionários atuais.",relevancia:"media"},{id:"sbs-01",titulo:"São Bento do Sul publica edital de licitação para PPP de iluminação pública",veiculo:"Gazeta SBS",tipo:"jornal",data:"15 Abr 2026",sentimento:"positivo",municipio:"São Bento do Sul/SC",resumo:"Prefeitura de SBS publica edital de licitação para concessão de 22.000 pontos de iluminação. Leilão previsto para maio. Projeto estruturado pelo BRDE.",relevancia:"alta"},{id:"sbs-02",titulo:"Audiência pública reúne 130 pessoas e aprova PPP de iluminação em SBS",veiculo:"NSC Total",tipo:"portal",data:"10 Abr 2026",sentimento:"positivo",municipio:"São Bento do Sul/SC",resumo:"Audiência pública do projeto de PPP de iluminação de SBS reuniu 130 participantes. Maioria favorável. Transmissão ao vivo registrou 847 visualizações.",relevancia:"alta"},{id:"sbs-03",titulo:"Empresa questiona edital de PPP de iluminação de São Bento do Sul",veiculo:"Gazeta SBS",tipo:"jornal",data:"18 Abr 2026",sentimento:"negativo",municipio:"São Bento do Sul/SC",resumo:"Empresa do setor protocolou impugnação ao edital questionando critérios técnicos de habilitação. Prefeitura tem prazo de 3 dias para responder.",relevancia:"alta",acaoRecomendada:"Preparar nota técnica de resposta à impugnação. Comunicar ao BRDE. Monitorar desdobramentos."},{id:"ita-01",titulo:"Itanhaém assina contrato com Caixa para PPP de educação infantil",veiculo:"Diário do Litoral",tipo:"jornal",data:"17 Dez 2025",sentimento:"positivo",municipio:"Itanhaém/SP",resumo:"Prefeitura de Itanhaém assina contrato com a Caixa Econômica Federal para estruturação de PPP de educação infantil. Projeto prevê 10 a 20 novas UEIs. Prefeito Tiago Cervantes destaca o IDEB mais alto da Baixada Santista.",relevancia:"alta"},{id:"ita-02",titulo:'APEOESP alerta para "privatização das creches" em Itanhaém',veiculo:"Web Sua Praia",tipo:"portal",data:"22 Jan 2026",sentimento:"negativo",municipio:"Itanhaém/SP",resumo:'Sindicato dos professores emitiu nota criticando o modelo de PPP para educação infantil. Alerta para "risco de privatização do ensino público". Prefeitura ainda não respondeu.',relevancia:"alta",acaoRecomendada:"Emitir nota esclarecendo que serviços pedagógicos NÃO fazem parte do escopo da PPP. Agendar reunião com lideranças da APEOESP."},{id:"ita-03",titulo:"Itanhaém tem IDEB mais alto da Baixada Santista â e quer crescer mais",veiculo:"Tribuna de Itanhaém",tipo:"jornal",data:"10 Mar 2026",sentimento:"positivo",municipio:"Itanhaém/SP",resumo:"Reportagem destaca o IDEB 5,3 de Itanhaém nos anos finais, o melhor da Baixada Santista. Secretária de Educação menciona a PPP como ferramenta para ampliar a oferta de vagas na educação infantil.",relevancia:"media"},{id:"rn-01",titulo:"Rio Negrinho confirma PPP de iluminação pública com BRDE",veiculo:"Gazeta SBS",tipo:"jornal",data:"20 Abr 2026",sentimento:"positivo",municipio:"Rio Negrinho/SC",resumo:"Prefeito Caio Treml confirma parceria com BRDE para estruturação de PPP de iluminação pública e cidades inteligentes. Projeto segue modelo de São Bento do Sul, cidade vizinha a 25 km.",relevancia:"alta"}
1324,{id:"rn-02",titulo:"Moradores lembram irregularidade no contrato de iluminação de Rio Negrinho apontada pelo TCE",veiculo:"Blog do Sertão Catarinense",tipo:"blog",data:"22 Abr 2026",sentimento:"negativo",municipio:"Rio Negrinho/SC",resumo:"Blog local relembra autuação do TCE/SC em 2023 por irregularidades no contrato de iluminação pública. Questiona se nova PPP terá mais transparência. Publicação com 340 compartilhamentos.",relevancia:"alta",acaoRecomendada:"Preparar nota proativa explicando as diferenças entre o contrato anterior e o modelo de PPP. Publicar antes que a narrativa se consolide."}],S5e={"Itaperuna/RJ":[{nome:"Itaperuna NotÃcias",tipo:"Portal",alcance:"28.000 leitores/mês"},{nome:"Folha do Norte Fluminense",tipo:"Jornal impresso",alcance:"12.000 exemplares"},{nome:"G1 Norte Fluminense",tipo:"Portal",alcance:"85.000 leitores/mês"},{nome:"Rádio Itaperuna FM",tipo:"Rádio",alcance:"35.000 ouvintes/dia"},{nome:"TV Itaperuna",tipo:"TV local",alcance:"22.000 telespectadores"}],"São Bento do Sul/SC":[{nome:"Gazeta SBS",tipo:"Jornal impresso",alcance:"8.000 exemplares"},{nome:"NSC Total",tipo:"Portal",alcance:"120.000 leitores/mês"},{nome:"Rádio Cultura SBS",tipo:"Rádio",alcance:"18.000 ouvintes/dia"}],"Itanhaém/SP":[{nome:"Tribuna de Itanhaém",tipo:"Jornal impresso",alcance:"6.500 exemplares"},{nome:"Web Sua Praia (Bom Dia Itanhaém)",tipo:"Portal + YouTube",alcance:"15.000 leitores/mês"},{nome:"Rádio Conexão FM 87.5",tipo:"Rádio",alcance:"12.000 ouvintes/dia"},{nome:"Diário do Litoral",tipo:"Portal regional",alcance:"45.000 leitores/mês"}],"Rio Negrinho/SC":[{nome:"Gazeta SBS",tipo:"Jornal regional",alcance:"8.000 exemplares"},{nome:"Blog do Sertão Catarinense",tipo:"Blog",alcance:"5.000 leitores/mês"},{nome:"Rádio Rio Negrinho FM",tipo:"Rádio",alcance:"8.000 ouvintes/dia"}]},E5e={positivo:{label:"Positivo",color:"text-emerald-700",bg:"bg-emerald-50 border-emerald-200"},negativo:{label:"Negativo",color:"text-red-700",bg:"bg-red-50 border-red-200"},neutro:{label:"Neutro",color:"text-gray-600",bg:"bg-gray-50 border-gray-200"}},A5e=["Todos","Itaperuna/RJ","São Bento do Sul/SC","Itanhaém/SP","Rio Negrinho/SC"];function C5e(){const[e,t]=L.useState("Todos"),[r,a]=L.useState("Todos"),[n,i]=L.useState("noticias"),o=fl.filter(f=>{const m=e==="Todos"||f.municipio===e,x=r==="Todos"||f.sentimento===r;return m&&x}),s=fl.filter(f=>f.sentimento==="positivo").length,c=fl.filter(f=>f.sentimento==="negativo").length,u=fl.filter(f=>f.sentimento==="neutro").length,h=fl.filter(f=>f.acaoRecomendada).length;return p.jsx("div",{"data-loc":"client/src/pages/Clipping.tsx:214",className:"min-h-screen bg-[#EDE9DF] p-6",children:p.jsxs("div",{"data-loc":"client/src/pages/Clipping.tsx:215",className:"max-w-6xl mx-auto space-y-6",children:[p.jsxs("div",{"data-loc":"client/src/pages/Clipping.tsx:217",className:"flex items-center justify-between",children:[p.jsxs("div",{"data-loc":"client/src/pages/Clipping.tsx:218",children:[p.jsx("h1",{"data-loc":"client/src/pages/Clipping.tsx:219",className:"text-2xl font-bold text-[#2D4A2D]",children:"Clipping & MÃdia"}),p.jsxs("p",{"data-loc":"client/src/pages/Clipping.tsx:220",className:"text-[#2D4A2D]/60 text-sm mt-0.5",children:["Monitoramento de cobertura jornalÃstica por municÃpio · ",fl.length," notÃcias monitoradas"]})]}),p.jsxs("div",{"data-loc":"client/src/pages/Clipping.tsx:222",className:"flex gap-2",children:[p.jsxs("button",{"data-loc":"client/src/pages/Clipping.tsx:223",onClick:()=>je.info("Monitoramento automático atualizado a cada 6h."),className:"flex items-center gap-2 px-3 py-2 rounded-xl bg-white border border-[#2D4A2D]/10 text-[#2D4A2D] text-xs hover:bg-[#EDE9DF] transition-colors",children:[p.jsx(Mh,{"data-loc":"client/src/pages/Clipping.tsx:224",size:12})," Atualizar"]}),p.jsxs("button",{"data-loc":"client/src/pages/Clipping.tsx:226",onClick:()=>je.success("Relatório de clipping exportado!"),className:"flex items-center gap-2 px-3 py-2 rounded-xl bg-[#2D4A2D] text-white text-xs hover:bg-[#2D4A2D]/90 transition-colors",children:[p.jsx(Yl,{"data-loc":"client/src/pages/Clipping.tsx:227",size:12})," Exportar relatório"]})]})]}),p.jsx("div",{"data-loc":"client/src/pages/Clipping.tsx:232",className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:[{label:"Positivas",value:s,color:"text-emerald-700",bg:"bg-emerald-50 border-emerald-200",Icon:Ip},{label:"Negativas",value:c,color:"text-red-700",bg:"bg-red-50 border-red-200",Icon:fte},{label:"Neutras",value:u,color:"text-gray-600",bg:"bg-gray-50 border-gray-200",Icon:ste},{label:"Alertas de Ação",value:h,color:"text-amber-700",bg:"bg-amber-50 border-amber-200",Icon:Bl}].map(f=>p.jsxs("div",{"data-loc":"client/src/pages/Clipping.tsx:239",className:`rounded-2xl border p-4 ${f.bg}`,children:[p.jsxs("div",{"data-loc":"client/src/pages/Clipping.tsx:240",className:"flex items-center justify-between mb-2",children:[p.jsx("span",{"data-loc":"client/src/pages/Clipping.tsx:241",className:"text-xs text-[#2D4A2D]/60",children:f.label}),p.jsx(f.Icon,{"data-loc":"client/src/pages/Clipping.tsx:242",size:14,className:f.color})]}),p.jsx("div",{"data-loc":"client/src/pages/Clipping.tsx:244",className:`text-2xl font-bold ${f.color}`,children:f.value})]},f.label))}),p.jsxs("div",{"data-loc":"client/src/pages/Clipping.tsx:249",className:"bg-white rounded-2xl border border-[#2D4A2D]/10 shadow-sm overflow-hidden",children:[p.jsx("div",{"data-loc":"client/src/pages/Clipping.tsx:250",className:"flex border-b border-[#2D4A2D]/10",children:["noticias","veiculos"].map(f=>p.jsx("button",{"data-loc":"client/src/pages/Clipping.tsx:252",onClick:()=>i(f),className:`px-5 py-3 text-sm font-medium transition-colors border-b-2 -mb-px ${n===f?"border-[#2D4A2D] text-[#2D4A2D]":"border-transparent text-[#2D4A2D]/50 hover:text-[#2D4A2D]"}`,children:f==="noticias"?`NotÃcias (${fl.length})`:"VeÃculos Monitorados"},f))}),n==="noticias"&&p.jsxs("div",{"data-loc":"client/src/pages/Clipping.tsx:260",children:[p.jsxs("div",{"data-loc":"client/src/pages/Clipping.tsx:261",className:"px-5 py-3 border-b border-[#2D4A2D]/8 flex flex-wrap gap-2 items-center",children:[p.jsx(Xz,{"data-loc":"client/src/pages/Clipping.tsx:262",size:12,className:"text-[#2D4A2D]/40"}),p.jsx("div",{"data-loc":"client/src/pages/Clipping.tsx:263",className:"flex gap-1 flex-wrap",children:A5e.map(f=>p.jsx("button",{"data-loc":"client/src/pages/Clipping.tsx:265",onClick:()=>t(f),className:`px-2.5 py-1 rounded-lg text-xs font-medium transition-colors ${e===f?"bg-[#2D4A2D] text-white":"bg-[#EDE9DF] text-[#2D4A2D]/60 hover:bg-[#2D4A2D]/10"}`,children:f},f))}),p.jsx("div",{"data-loc":"client/src/pages/Clipping.tsx:271",className:"w-px h-4 bg-[#2D4A2D]/10 mx-1"}),p.jsx("div",{"data-loc":"client/src/pages/Clipping.tsx:272",className:"flex gap-1",children:["Todos","positivo","negativo","neutro"].map(f=>p.jsx("button",{"data-loc":"client/src/pages/Clipping.tsx:274",onClick:()=>a(f),className:`px-2.5 py-1 rounded-lg text-xs font-medium transition-colors capitalize ${r
1324===f?"bg-[#2D4A2D] text-white":"bg-[#EDE9DF] text-[#2D4A2D]/60 hover:bg-[#2D4A2D]/10"}`,children:f},f))})]}),p.jsxs("div",{"data-loc":"client/src/pages/Clipping.tsx:282",className:"divide-y divide-[#2D4A2D]/6",children:[o.map(f=>{const m=E5e[f.sentimento];return p.jsx("div",{"data-loc":"client/src/pages/Clipping.tsx:286",className:`p-5 ${f.acaoRecomendada?"bg-amber-50/30":""}`,children:p.jsxs("div",{"data-loc":"client/src/pages/Clipping.tsx:287",className:"flex items-start gap-3",children:[p.jsx("div",{"data-loc":"client/src/pages/Clipping.tsx:288",className:`mt-1.5 shrink-0 w-2 h-2 rounded-full ${f.sentimento==="positivo"?"bg-emerald-500":f.sentimento==="negativo"?"bg-red-500":"bg-gray-400"}`}),p.jsxs("div",{"data-loc":"client/src/pages/Clipping.tsx:289",className:"flex-1 min-w-0",children:[p.jsxs("div",{"data-loc":"client/src/pages/Clipping.tsx:290",className:"flex items-start justify-between gap-2 mb-1",children:[p.jsx("h3",{"data-loc":"client/src/pages/Clipping.tsx:291",className:"text-sm font-semibold text-[#2D4A2D] leading-snug",children:f.titulo}),p.jsx("button",{"data-loc":"client/src/pages/Clipping.tsx:292",onClick:()=>je.info("Link externo não disponÃvel nesta versão."),className:"shrink-0 text-[#2D4A2D]/30 hover:text-[#2D4A2D] transition-colors mt-0.5",children:p.jsx(Rh,{"data-loc":"client/src/pages/Clipping.tsx:293",size:12})})]}),p.jsxs("div",{"data-loc":"client/src/pages/Clipping.tsx:296",className:"flex items-center gap-2 mb-2 flex-wrap",children:[p.jsx("span",{"data-loc":"client/src/pages/Clipping.tsx:297",className:"text-xs text-[#2D4A2D]/50",children:f.veiculo}),p.jsx("span",{"data-loc":"client/src/pages/Clipping.tsx:298",className:"text-[#2D4A2D]/20",children:"·"}),p.jsx("span",{"data-loc":"client/src/pages/Clipping.tsx:299",className:"text-xs text-[#2D4A2D]/50",children:f.data}),p.jsx("span",{"data-loc":"client/src/pages/Clipping.tsx:300",className:"text-[#2D4A2D]/20",children:"·"}),p.jsx("span",{"data-loc":"client/src/pages/Clipping.tsx:301",className:"text-xs text-[#2D4A2D]/50",children:f.municipio}),p.jsx("span",{"data-loc":"client/src/pages/Clipping.tsx:302",className:`text-xs font-medium px-2 py-0.5 rounded-full border ${m.bg} ${m.color}`,children:m.label}),f.relevancia==="alta"&&p.jsx("span",{"data-loc":"client/src/pages/Clipping.tsx:303",className:"text-xs font-medium px-2 py-0.5 rounded-full bg-[#2D4A2D]/10 text-[#2D4A2D]",children:"Alta relevância"})]}),p.jsx("p",{"data-loc":"client/src/pages/Clipping.tsx:305",className:"text-xs text-[#2D4A2D]/60 leading-relaxed",children:f.resumo}),f.acaoRecomendada&&p.jsxs("div",{"data-loc":"client/src/pages/Clipping.tsx:307",className:"mt-2 flex items-start gap-2 bg-amber-50 border border-amber-200 rounded-lg px-3 py-2",children:[p.jsx(Bl,{"data-loc":"client/src/pages/Clipping.tsx:308",size:12,className:"text-amber-600 shrink-0 mt-0.5"}),p.jsxs("span",{"data-loc":"client/src/pages/Clipping.tsx:309",className:"text-xs text-amber-800",children:[p.jsx("span",{"data-loc":"client/src/pages/Clipping.tsx:309",className:"font-semibold",children:"Ação recomendada:"})," ",f.acaoRecomendada]})]})]})]})},f.id)}),o.length===0&&p.jsx("div",{"data-loc":"client/src/pages/Clipping.tsx:318",className:"p-10 text-center text-[#2D4A2D]/40 text-sm",children:"Nenhuma notÃcia encontrada com os filtros selecionados."})]})]}),n==="veiculos"&&p.jsx("div",{"data-loc":"client/src/pages/Clipping.tsx:325",className:"p-5 space-y-6",children:Object.entries(S5e).map(([f,m])=>p.jsxs("div",{"data-loc":"client/src/pages/Clipping.tsx:327",children:[p.jsxs("h3",{"data-loc":"client/src/pages/Clipping.tsx:328",className:"text-sm font-bold text-[#2D4A2D] mb-3 flex items-center gap-2",children:[p.jsx(rF,{"data-loc":"client/src/pages/Clipping.tsx:329",size:13,className:"text-[#7A8C5E]"}),f]}),p.jsx("div",{"data-loc":"client/src/pages/Clipping.tsx:332",className:"grid grid-cols-1 md:grid-cols-2 gap-2",children:m.map(x=>p.jsxs("div",{"data-loc":"client/src/pages/Clipping.tsx:334",className:"flex items-center justify-between bg-[#EDE9DF]/60 rounded-xl p-3 border border-[#2D4A2D]/8",children:[p.jsxs("div",{"data-loc":"client/src/pages/Clipping.tsx:335",children:[p.jsx("div",{"data-loc":"client/src/pages/Clipping.tsx:336",className:"text-sm font-semibold text-[#2D4A2D]",children:x.nome}),p.jsx("div",{"data-loc":"client/src/pages/Clipping.tsx:337",className:"text-xs text-[#2D4A2D]/50",children:x.tipo})]}),p.jsxs("div",{"data-loc":"client/src/pages/Clipping.tsx:339",className:"text-right",children:[p.jsx("div",{"data-loc":"client/src/pages/Clipping.tsx:340",className:"text-xs text-[#2D4A2D]/60",children:x.alcance}),p.jsxs("div",{"data-loc":"client/src/pages/Clipping.tsx:341",className:"flex items-center gap-1 justify-end mt-0.5",children:[p.jsx(ta,{"data-loc":"client/src/pages/Clipping.tsx:342",size:10,
1324className:"text-emerald-500"}),p.jsx("span",{"data-loc":"client/src/pages/Clipping.tsx:343",className:"text-[10px] text-emerald-600",children:"Monitorado"})]})]})]},x.nome))})]},f))})]})]})})}const P5e=[{id:"it-01",titulo:"Redigir nota de resposta ao vereador Eduardo do Toldo (PL)",municipio:"Itaperuna/RJ",tipo:"Stakeholders",responsavel:"Ana PRINT",prazo:"Hoje",status:"em_andamento",prioridade:"alta",entregavel:"Nota técnica em PDF"},{id:"it-02",titulo:"Publicar FAQ completo no hotsite â 5 principais dúvidas da escuta social",municipio:"Itaperuna/RJ",tipo:"Hotsite",responsavel:"Carlos PRINT",prazo:"Amanhã",status:"em_andamento",prioridade:"alta",entregavel:"FAQ publicado no hotsite"},{id:"it-03",titulo:"Elaborar boletim informativo nº 2 â PPP Iluminação Pública",municipio:"Itaperuna/RJ",tipo:"Boletim",responsavel:"Ana PRINT",prazo:"05 Mai 2026",status:"em_andamento",prioridade:"media",entregavel:"Boletim em PDF e versão digital"},{id:"it-04",titulo:"Agendar reunião com moradores do bairro São Judas (maior concentração de respostas negativas)",municipio:"Itaperuna/RJ",tipo:"Evento",responsavel:"Carlos PRINT",prazo:"08 Mai 2026",status:"a_fazer",prioridade:"alta",entregavel:"Ata de reunião"},{id:"it-05",titulo:"Relatório parcial de engajamento de stakeholders â Etapa 1",municipio:"Itaperuna/RJ",tipo:"Relatório",responsavel:"Ana PRINT",prazo:"15 Mai 2026",status:"a_fazer",prioridade:"alta",entregavel:"Relatório em PDF para a Caixa"},{id:"it-06",titulo:"Media training com Prefeito Nel e Secretário de Infraestrutura",municipio:"Itaperuna/RJ",tipo:"Treinamento",responsavel:"Carlos PRINT",prazo:"20 Mai 2026",status:"a_fazer",prioridade:"media",entregavel:"Relatório de media training"},{id:"it-07",titulo:"Atualizar diagnóstico digital â redes sociais e WhatsApp",municipio:"Itaperuna/RJ",tipo:"Diagnóstico",responsavel:"Ana PRINT",prazo:"28 Abr 2026",status:"atrasado",prioridade:"alta",entregavel:"Relatório de diagnóstico digital"},{id:"it-08",titulo:"Plano de comunicação Etapa 1 â aprovação final Caixa",municipio:"Itaperuna/RJ",tipo:"Plano IA",responsavel:"Carlos PRINT",prazo:"30 Abr 2026",status:"revisao",prioridade:"alta",entregavel:"Plano aprovado e assinado"},{id:"sbs-01",titulo:"Relatório de contribuições da escuta social â entrega ao BRDE",municipio:"São Bento do Sul/SC",tipo:"Relatório",responsavel:"Ana PRINT",prazo:"05 Abr 2026",status:"concluido",prioridade:"alta",entregavel:"Relatório entregue ao BRDE em 05/04"},{id:"sbs-02",titulo:"Audiência pública â transmissão ao vivo e ata",municipio:"São Bento do Sul/SC",tipo:"Audiência",responsavel:"Carlos PRINT",prazo:"10 Abr 2026",status:"concluido",prioridade:"alta",entregavel:"Ata publicada e vÃdeo no YouTube"},{id:"sbs-03",titulo:"Nota técnica de resposta à impugnação do edital",municipio:"São Bento do Sul/SC",tipo:"Stakeholders",responsavel:"Ana PRINT",prazo:"Hoje",status:"em_andamento",prioridade:"alta",entregavel:"Nota técnica em até 3 dias"},{id:"sbs-04",titulo:"Preparar kit de imprensa para o leilão na B3",municipio:"São Bento do Sul/SC",tipo:"Clipping",responsavel:"Carlos PRINT",prazo:"10 Mai 2026",status:"a_fazer",prioridade:"media",entregavel:"Kit de imprensa completo"},{id:"sbs-05",titulo:"Nota de resultado do leilão â distribuição em até 2h após pregão",municipio:"São Bento do Sul/SC",tipo:"Release",responsavel:"Ana PRINT",prazo:"20 Mai 2026",status:"a_fazer",prioridade:"alta",entregavel:"Nota distribuÃda à imprensa"},{id:"ita-01",titulo:"Emitir nota esclarecendo que serviços pedagógicos NÃO fazem parte do escopo da PPP",municipio:"Itanhaém/SP",tipo:"Stakeholders",responsavel:"Carlos PRINT",prazo:"30 Abr 2026",status:"atrasado",prioridade:"alta",entregavel:"Nota publicada no site da Prefeitura"},{id:"ita-02",titulo:"Agendar reunião com lideranças da APEOESP antes da escuta social",municipio:"Itanhaém/SP",tipo:"Stakeholders",responsavel:"Ana PRINT",prazo:"15 Mai 2026",status:"a_fazer",prioridade:"alta",entregavel:"Ata de reunião"},{id:"ita-03",titulo:"Criar canal de comunicação exclusivo para professores e diretores das 53 escolas",municipio:"Itanhaém/SP",tipo:"Hotsite",responsavel:"Carlos PRINT",prazo:"30 Mai 2026",status:"a_fazer",prioridade:"media",entregavel:"Canal WhatsApp ou e-mail newsletter"},{id:"ita-04",titulo:"Elaborar FAQ especÃfico para professores â 4 principais dúvidas sobre a PPP de educação",municipio:"Itanhaém/SP",tipo:"Plano IA",responsavel:"Ana PRINT",prazo:"05 Mai 2026",status:"revisao",prioridade:"alta",entregavel:"FAQ em PDF e versão digital"},{id:"ita-05",titulo:"Perfil do MunicÃpio â Itanhaém/SP (Briefing Pré-Kickoff)",municipio:"Itanhaém/SP",tipo:"Diagnóstico",responsavel:"Carlos PRINT",prazo:"25 Abr 2026",status:"concluido",prioridade:"alta",entregavel:"Briefing entregue à Caixa"},{id:"rn-01",titulo:"Publicar nota proativa sobre diferenças entre contrato anterior e PPP (antecedente TCE/SC 2023)",municipio:"Rio Negrinho/SC",tipo:"Stakeholders",responsavel:"Ana PRINT",prazo:"05 Mai 2026",status:"a_fazer",prioridade:"alta",entregavel:"Nota publicada no site da Prefeitura"},{id:"rn-02",titulo:"Organizar visita técnica a São Bento do Sul para lideranças comunitárias de Rio Negrinho",municipio:"Rio Negrinho/SC",tipo:"Evento",responsavel:"Carlos PRINT",prazo:"20 Mai 2026",status:"a_fazer",prioridade:"media",entregavel:"Relatório de visita técnica"},{id:"rn-03",titulo:"Elaborar Plano de Comunicação â versão para aprovação do BRDE",municipio:"Rio Negrinho/SC",tipo:"Plano IA",responsavel:"Ana PRINT",prazo:"15 Mai 2026",status:"em_andamento",prioridade:"alta",entregavel:"Plano aprovado pelo BRDE"},{id:"rn-04",titulo:"Mapeamento de stakeholders â vereadores, ACIRN, CDL, SINTRASEM",municipio:"Rio Negrinho/SC",tipo:"Stakeholders",responsavel:"Carlos PRINT",prazo:"10 Mai 2026",status:"a_fazer",prioridade:"alta",entregavel:"Matriz de stakeholders completa"},{id:"rn-05",titulo:"Criar hotsite de escuta social â Rio Negrinho PPP IP",municipio:"Rio Negrinho/SC",tipo:"Hotsite",responsavel:"Ana PRINT",prazo:"30 Jun 2026",status:"a_fazer",prioridade:"media",entregavel:"Hotsite publicado"}],j5e=[{id:"atrasado",label:"Atrasado",color:"text-red-700",headerBg:"bg-red-50 border-red-200"},{id:"a_fazer",label:"A Fazer",color:"text-[#2D4A2D]/60",headerBg:"bg-[#EDE9DF] border-[#2D4A2D]/10"},{id:"em_andamento",label:"Em Andamento",color:"text-blue-700",headerBg:"bg-blue-50 border-blue-200"},{id:"revisao",label:"Em Revisão",color:"text-amber-700",headerBg:"bg-amber-50 border-amber-200"},{id:"concluido",label:"ConcluÃdo",color:"text-emerald-700",headerBg:"bg-emerald-50 border-emerald-200"}],N5e={Stakeholders:"bg-violet-50 text-violet-700 border-violet-200","Plano IA":"bg-indigo-50 text-indigo-700 border-indigo-200",Hotsite:"bg-cyan-50 text-cyan-700 border-cyan-200",Clipping:"bg-[#C9B99A]/30 text-[#7A8C5E] border-[#C9B99A]",Boletim:"bg-orange-50 text-orange-700 border-orange-200",Relatório:"bg-[#2D4A2D]/10 text-[#2D4A2D] border-[#2D4A2D]/20",Audiência:"bg-rose-50 text-rose-700 border-rose-200",Evento:"bg-teal-50 text-teal-700 border-teal-200",Diagnóstico:"bg-gray-50 text-gray-600 border-gray-200",Treinamento:"bg-purple-50 text-purple-700 border-purple-200",Release:"bg-sky-50 text-sky-700 border-sky-200"},AL={alta:{label:"Alta",color:"text-red-600"},media:{label:"Média",color:"text-amber-600"},baixa:{label:"Baixa",color:"text-gray-400"}},T5e=["Todos","Itaperuna/RJ","São Bento do Sul/SC","Itanhaém/SP","Rio Negrinho/SC"];function k5e(){const[e,t]=L.useState("Todos"),[r,a]=L.useState(P5e),n=r.filter(u=>e==="Todos"||u.municipio===e),i=r.filter(u=>u.status==="atrasado").length,o=r.filter(u=>u.status==="em_andamento").length,s=r.filter(u=>u.status==="concluido").length,c=(u,h)=>{a(f=>f.map(m=>m.id===u?{...m,status:h}:m)),je.success("Tarefa atualizada!")};return p.jsx("div",{"data-loc":"client/src/pages/Tarefas.tsx:106",className:"min-h-screen bg-[#EDE9DF] p-6",children:p.jsxs("div",{"data-loc":"client/src/pages/Tarefas.tsx:107",className:"max-w-full mx-auto
1324space-y-5",children:[p.jsxs("div",{"data-loc":"client/src/pages/Tarefas.tsx:110",className:"flex items-center justify-between",children:[p.jsxs("div",{"data-loc":"client/src/pages/Tarefas.tsx:111",children:[p.jsx("h1",{"data-loc":"client/src/pages/Tarefas.tsx:112",className:"text-2xl font-bold text-[#2D4A2D]",children:"Gestão de Tarefas"}),p.jsxs("p",{"data-loc":"client/src/pages/Tarefas.tsx:113",className:"text-[#2D4A2D]/60 text-sm mt-0.5",children:["Kanban de atividades por projeto · ",r.length," tarefas no total"]})]}),p.jsxs("button",{"data-loc":"client/src/pages/Tarefas.tsx:115",onClick:()=>je.info("Formulário de nova tarefa em breve."),className:"flex items-center gap-2 px-4 py-2 rounded-xl bg-[#2D4A2D] text-white text-sm font-medium hover:bg-[#2D4A2D]/90 transition-colors",children:[p.jsx(fa,{"data-loc":"client/src/pages/Tarefas.tsx:116",size:14})," Nova Tarefa"]})]}),p.jsxs("div",{"data-loc":"client/src/pages/Tarefas.tsx:121",className:"grid grid-cols-3 gap-3",children:[p.jsxs("div",{"data-loc":"client/src/pages/Tarefas.tsx:122",className:"bg-red-50 border border-red-200 rounded-2xl p-4 flex items-center gap-3",children:[p.jsx(Bl,{"data-loc":"client/src/pages/Tarefas.tsx:123",size:18,className:"text-red-500"}),p.jsxs("div",{"data-loc":"client/src/pages/Tarefas.tsx:124",children:[p.jsx("div",{"data-loc":"client/src/pages/Tarefas.tsx:125",className:"text-xl font-bold text-red-700",children:i}),p.jsx("div",{"data-loc":"client/src/pages/Tarefas.tsx:126",className:"text-xs text-red-600",children:"Atrasadas"})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/Tarefas.tsx:129",className:"bg-blue-50 border border-blue-200 rounded-2xl p-4 flex items-center gap-3",children:[p.jsx(iy,{"data-loc":"client/src/pages/Tarefas.tsx:130",size:18,className:"text-blue-500"}),p.jsxs("div",{"data-loc":"client/src/pages/Tarefas.tsx:131",children:[p.jsx("div",{"data-loc":"client/src/pages/Tarefas.tsx:132",className:"text-xl font-bold text-blue-700",children:o}),p.jsx("div",{"data-loc":"client/src/pages/Tarefas.tsx:133",className:"text-xs text-blue-600",children:"Em andamento"})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/Tarefas.tsx:136",className:"bg-emerald-50 border border-emerald-200 rounded-2xl p-4 flex items-center gap-3",children:[p.jsx(ta,{"data-loc":"client/src/pages/Tarefas.tsx:137",size:18,className:"text-emerald-500"}),p.jsxs("div",{"data-loc":"client/src/pages/Tarefas.tsx:138",children:[p.jsx("div",{"data-loc":"client/src/pages/Tarefas.tsx:139",className:"text-xl font-bold text-emerald-700",children:s}),p.jsx("div",{"data-loc":"client/src/pages/Tarefas.tsx:140",className:"text-xs text-emerald-600",children:"ConcluÃdas"})]})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/Tarefas.tsx:146",className:"flex items-center gap-2 flex-wrap",children:[p.jsx(Xz,{"data-loc":"client/src/pages/Tarefas.tsx:147",size:12,className:"text-[#2D4A2D]/40"}),T5e.map(u=>p.jsx("button",{"data-loc":"client/src/pages/Tarefas.tsx:149",onClick:()=>t(u),className:`px-3 py-1.5 rounded-xl text-xs font-medium transition-colors ${e===u?"bg-[#2D4A2D] text-white":"bg-white border border-[#2D4A2D]/10 text-[#2D4A2D]/60 hover:border-[#2D4A2D]/30"}`,children:u},u))]}),p.jsx("div",{"data-loc":"client/src/pages/Tarefas.tsx:157",className:"flex gap-4 overflow-x-auto pb-4",children:j5e.map(u=>{const h=n.filter(f=>f.status===u.id);return p.jsxs("div",{"data-loc":"client/src/pages/Tarefas.tsx:161",className:"min-w-[260px] shrink-0",children:[p.jsxs("div",{"data-loc":"client/src/pages/Tarefas.tsx:162",className:`flex items-center justify-between px-3 py-2 rounded-xl border mb-3 ${u.headerBg}`,children:[p.jsx("span",{"data-loc":"client/src/pages/Tarefas.tsx:163",className:`text-xs font-bold uppercase tracking-wider ${u.color}`,children:u.label}),p.jsx("span",{"data-loc":"client/src/pages/Tarefas.tsx:164",className:`text-xs font-bold px-2 py-0.5 rounded-full bg-white/80 ${u.color}`,children:h.length})]}),p.jsxs("div",{"data-loc":"client/src/pages/Tarefas.tsx:166",className:"space-y-2",children:[h.map(f=>p.jsxs("div",{"data-loc":"client/src/pages/Tarefas.tsx:168",onClick:()=>je.info(`${f.titulo} 1325 1326Entregável: ${f.entregavel??"â"} 1327Responsável: ${f.responsavel}`),className:ii("bg-white rounded-xl border p-3.5 cursor-pointer transition-all hover:shadow-md hover:-translate-y-0.5",f.status==="atrasado"?"border-red-200":"border-[#2D4A2D]/8 hover:border-[#2D4A2D]/20"),children:[p.jsx("div",{"data-loc":"client/src/pages/Tarefas.tsx:174",className:"text-xs font-semibold text-[#2D4A2D] leading-snug mb-2",children:f.titulo}),p.jsxs("div",{"data-loc":"client/src/pages/Tarefas.tsx:175",className:"flex items-center gap-1.5 flex-wrap mb-2",children:[p.jsx("span",{"data-loc":"client/src/pages/Tarefas.tsx:176",className:`text-[10px] font-medium px-1.5 py-0.5 rounded-md border ${N5e[f.tipo]??"bg-gray-50 text-gray-600 border-gray-200"}`,children:f.tipo}),p.jsxs("span",{"data-loc":"client/src/pages/Tarefas.tsx:177",className:`text-[10px] font-bold ${AL[f.prioridade].color}`,children:["â ",AL[f.prioridade].label]})]}),p.jsxs("div",{"data-loc":"client/src/pages/Tarefas.tsx:179",className:"flex items-center justify-between",children:[p.jsx("span",{"data-loc":"client/src/pages/Tarefas.tsx:180",className:"text-[10px] text-[#2D4A2D]/40 truncate",children:f.municipio}),p.jsxs("div",{"data-loc":"client/src/pages/Tarefas.tsx:181",className:"flex items-center gap-1",children:[p.jsx(wd,{"data-loc":"client/src/pages/Tarefas.tsx:182",size:9,className:f.status==="atrasado"?"text-red-500":"text-[#2D4A2D]/30"}),p.jsx("span",{"data-loc":"client/src/pages/Tarefas.tsx:183",className:`text-[10px] font-medium ${f.status==="atrasado"?"text-red-600":f.prazo==="Hoje"||f.prazo==="Amanhã"?"text-amber-600":"text-[#2D4A2D]/40"}`,children:f.prazo})]})]}),f.status!=="concluido"&&p.jsxs("div",{"data-loc":"client/src/pages/Tarefas.tsx:187",className:"mt-2 pt-2 border-t border-[#2D4A2D]/6 flex gap-1",children:[f.status!=="em_andamento"&&p.jsx("button",{"data-loc":"client/src/pages/Tarefas.tsx:189",onClick:m=>{m.stopPropagation(),c(f.id,"em_andamento")},className:"text-[9px] px-1.5 py-0.5 rounded bg-blue-50 text-blue-600 hover:bg-blue-100 transition-colors",children:"â Iniciar"}),f.status!=="revisao"&&p.jsx("button",{"data-loc":"client/src/pages/Tarefas.tsx:192",onClick:m=>{m.stopPropagation(),c(f.id,"revisao")},className:"text-[9px] px-1.5 py-0.5 rounded bg-amber-50 text-amber-600 hover:bg-amber-100 transition-colors",children:"â Revisão"}),p.jsx("button",{"data-loc":"client/src/pages/Tarefas.tsx:194",onClick:m=>{m.stopPropagation(),c(f.id,"concluido")},className:"text-[9px] px-1.5 py-0.5 rounded bg-emerald-50 text-emerald-600 hover:bg-emerald-100 transition-colors",children:"â Concluir"})]})]},f.id)),h.length===0&&p.jsx("div",{"data-loc":"client/src/pages/Tarefas.tsx:200",className:"border-2 border-dashed border-[#2D4A2D]/10 rounded-xl p-5 text-center text-xs text-[#2D4A2D]/30",children:"Nenhuma tarefa"})]})]},u.id)})})]})})}const CL=[{id:"it-01",nome:"Plano de Comunicação e Engajamento de Stakeholders â Itaperuna/RJ",tipo:"Plano",versao:"v2.0",acesso:"PRINT + Banco",data:"08 Abr 2026",status:"revisao",descricao:"Plano completo com metodologia Casa de Mensagem, diagnóstico digital, stakeholders e cronograma MarâJul 2026.",municipio:"Itaperuna/RJ"},{id:"it-02",nome:"Matriz de Stakeholders â Itaperuna/RJ",tipo:"Matriz",versao:"v2.1",acesso:"PRINT",data:"05 Abr 2026",status:"publicado",descricao:"53 stakeholders mapeados com nome, função, contato, nÃvel de poder e estratég
1327ia individual.",municipio:"Itaperuna/RJ"},{id:"it-03",nome:"Perfil do MunicÃpio â Itaperuna/RJ",tipo:"Diagnóstico",versao:"v1.0",acesso:"PRINT + Banco",data:"15 Mar 2026",status:"aprovado",descricao:"Perfil socioeconômico, polÃtico e digital de Itaperuna. Inclui dados do IBGE, TSE 2024 e diagnóstico de redes sociais.",municipio:"Itaperuna/RJ"},{id:"it-04",nome:"Plano Executivo de Comunicação â Cronograma",tipo:"Relatório",versao:"v1.2",acesso:"PRINT + Banco",data:"07 Jan 2026",status:"aprovado",descricao:"Cronograma detalhado de ações de comunicação com responsáveis, prazos e entregáveis.",municipio:"Itaperuna/RJ"},{id:"it-05",nome:"Boletim Informativo nº 1 â PPP Iluminação Pública Itaperuna",tipo:"Boletim",versao:"v1.0",acesso:"PRINT + Cliente",data:"01 Abr 2026",status:"publicado",descricao:"Primeiro boletim informativo distribuÃdo à população. Explica o projeto, benefÃcios e cronograma.",municipio:"Itaperuna/RJ"},{id:"it-06",nome:"FAQ â Perguntas e Respostas Escuta Social",tipo:"FAQ",versao:"v1.0",acesso:"PRINT + Cliente",data:"01 Abr 2026",status:"publicado",descricao:"Respostas à s principais dúvidas da população sobre a PPP de iluminação pública.",municipio:"Itaperuna/RJ"},{id:"it-07",nome:"Nota de Resposta ao Vereador Eduardo do Toldo (PL)",tipo:"Release",versao:"Rascunho",acesso:"PRINT",data:"â",status:"rascunho",descricao:'Nota técnica em elaboração respondendo ao requerimento do vereador sobre "privatização" da iluminação.',municipio:"Itaperuna/RJ"},{id:"it-08",nome:"Roteiro Audiência Pública â Itaperuna/RJ",tipo:"Roteiro",versao:"Rascunho",acesso:"PRINT",data:"â",status:"rascunho",descricao:"Roteiro completo da audiência pública com falas, apresentações e protocolo de perguntas.",municipio:"Itaperuna/RJ"},{id:"sbs-01",nome:"Plano de Comunicação e Engajamento de Stakeholders â São Bento do Sul/SC",tipo:"Plano",versao:"v3.0",acesso:"PRINT + Banco",data:"17 Nov 2025",status:"aprovado",descricao:"Plano completo aprovado pelo BRDE. Inclui diagnóstico, stakeholders, estratégia e cronograma.",municipio:"São Bento do Sul/SC"},{id:"sbs-02",nome:"Matriz de Stakeholders â São Bento do Sul/SC",tipo:"Matriz",versao:"v2.0",acesso:"PRINT",data:"11 Dez 2025",status:"aprovado",descricao:"Matriz completa com 47 stakeholders mapeados individualmente.",municipio:"São Bento do Sul/SC"},{id:"sbs-03",nome:"Edital BRDE â São Bento do Sul (referência Rio Negrinho)",tipo:"Edital",versao:"v1.0",acesso:"PRINT + Banco",data:"2025",status:"publicado",descricao:"Edital completo do BRDE para PPP de iluminação pública. TR de comunicação nas páginas 28â31.",municipio:"São Bento do Sul/SC"},{id:"sbs-04",nome:"Relatório de Contribuições â Escuta Social SBS",tipo:"Relatório",versao:"v1.0",acesso:"PRINT + Banco",data:"05 Abr 2026",status:"aprovado",descricao:"312 respostas coletadas. 74% favoráveis. Entregue ao BRDE em 05/04/2026.",municipio:"São Bento do Sul/SC"},{id:"sbs-05",nome:"Ata da Audiência Pública â São Bento do Sul/SC",tipo:"Relatório",versao:"v1.0",acesso:"PRINT + Cliente",data:"10 Abr 2026",status:"publicado",descricao:"130 participantes. Transmissão ao vivo com 847 visualizações. Aprovação majoritária do projeto.",municipio:"São Bento do Sul/SC"},{id:"sbs-06",nome:"Nota Técnica â Resposta à Impugnação do Edital",tipo:"Release",versao:"Rascunho",acesso:"PRINT + Banco",data:"â",status:"rascunho",descricao:"Resposta à impugnação protocolada por empresa do setor. Prazo: 3 dias.",municipio:"São Bento do Sul/SC"},{id:"ita-01",nome:"Plano de Comunicação â Itanhaém/SP (PPP Educação Infantil)",tipo:"Plano",versao:"v2.0",acesso:"PRINT + Banco",data:"29 Abr 2026",status:"revisao",descricao:"Plano completo com SWOT, stakeholders, 4 fases e Fase 4 (pós-audiência até leilão). Ancorado no TR da Caixa (EI 101).",municipio:"Itanhaém/SP"},{id:"ita-02",nome:"TR da Caixa â Consultoria UEI (EI 101) â Itanhaém/SP",tipo:"TR",versao:"v1.0",acesso:"PRINT + Banco",data:"Dez 2025",status:"publicado",descricao:"Termo de Referência oficial da Caixa para estruturação da PPP de Educação Infantil. Porte 1, 10â20 UEIs.",municipio:"Itanhaém/SP"},{id:"ita-03",nome:"Briefing Pré-Kickoff â Itanhaém/SP",tipo:"Briefing",versao:"v1.0",acesso:"PRINT + Banco",data:"25 Abr 2026",status:"revisao",descricao:"Briefing completo com perfil polÃtico, IDEB, dados educacionais e pontos de atenção para o kickoff.",municipio:"Itanhaém/SP"}
1327,{id:"ita-04",nome:"FAQ â Professores e Comunidade Escolar (PPP Educação)",tipo:"FAQ",versao:"Rascunho",acesso:"PRINT",data:"â",status:"rascunho",descricao:"FAQ especÃfico para professores e diretores das 53 escolas municipais. Em revisão.",municipio:"Itanhaém/SP"},{id:"ita-05",nome:"Nota de Esclarecimento â Escopo da PPP de Educação (APEOESP)",tipo:"Release",versao:"Rascunho",acesso:"PRINT + Cliente",data:"â",status:"rascunho",descricao:"Nota esclarecendo que serviços pedagógicos NÃO fazem parte do escopo da PPP. Resposta à nota da APEOESP.",municipio:"Itanhaém/SP"},{id:"sys-01",nome:"Documentação Técnica â Sistema PRINT PPP v1.0",tipo:"Briefing",versao:"v1.0",acesso:"PRINT",data:"06 Mai 2026",status:"publicado",descricao:"Arquitetura completa do sistema: 11 módulos, fluxo de 3 inputs (municÃpio + tipo + TR), ciclo de revisão IA, base de conhecimento e roadmap de evolução.",municipio:"Rio Negrinho/SC"},{id:"sys-02",nome:"Arquitetura Metodológica â Processo PRINT de Comunicação em PPPs",tipo:"Roteiro",versao:"v2.0",acesso:"PRINT",data:"06 Mai 2026",status:"publicado",descricao:"Metodologia completa: Casa de Mensagem, 12 categorias de stakeholders, 12 etapas do projeto, ciclo de aprendizado da IA com revisão comentada dos analistas.",municipio:"Rio Negrinho/SC"},{id:"rn-01",nome:"Plano de Comunicação â Rio Negrinho/SC (PPP IP + Cidades Inteligentes)",tipo:"Plano",versao:"v1.0",acesso:"PRINT + Banco",data:"29 Abr 2026",status:"revisao",descricao:"Plano seguindo sumário do BRDE. Inclui antecedente TCE/SC 2023, benchmarking com SBS e cronograma 18 meses.",municipio:"Rio Negrinho/SC"},{id:"rn-02",nome:"Sumário do Plano de Comunicação â Proposta BRDE",tipo:"Roteiro",versao:"v1.0",acesso:"PRINT + Banco",data:"Abr 2026",status:"publicado",descricao:"Estrutura de sumário proposta pelo BRDE para o Plano de Comunicação de Rio Negrinho.",municipio:"Rio Negrinho/SC"},{id:"rn-03",nome:"Nota Proativa â Diferenças entre contrato anterior e PPP (TCE/SC 2023)",tipo:"Release",versao:"Rascunho",acesso:"PRINT + Cliente",data:"â",status:"rascunho",descricao:"Nota proativa abordando o antecedente do TCE/SC 2023 e as garantias do novo modelo de PPP.",municipio:"Rio Negrinho/SC"},{id:"rn-04",nome:"Matriz de Stakeholders â Rio Negrinho/SC",tipo:"Matriz",versao:"Rascunho",acesso:"PRINT",data:"â",status:"rascunho",descricao:"9 vereadores, ACIRN, CDL, SINTRASEM e imprensa local. Em elaboração.",municipio:"Rio Negrinho/SC"}],D5e={TR:"bg-[#2D4A2D]/10 text-[#2D4A2D] border-[#2D4A2D]/20",Plano:"bg-violet-50 text-violet-700 border-violet-200",Matr
1327iz:"bg-[#7A8C5E]/10 text-[#4a5a38] border-[#7A8C5E]/30",Relatório:"bg-blue-50 text-blue-700 border-blue-200",Boletim:"bg-orange-50 text-orange-700 border-orange-200",FAQ:"bg-cyan-50 text-cyan-700 border-cyan-200",Release:"bg-amber-50 text-amber-700 border-amber-200",Roteiro:"bg-gray-50 text-gray-600 border-gray-200",Diagnóstico:"bg-teal-50 text-teal-700 border-teal-200",Edital:"bg-rose-50 text-rose-700 border-rose-200",Briefing:"bg-indigo-50 text-indigo-700 border-indigo-200",Hotsite:"bg-sky-50 text-sky-700 border-sky-200"},_5e={aprovado:{label:"Aprovado",color:"text-emerald-700",bg:"bg-emerald-50"},publicado:{label:"Publicado",color:"text-blue-700",bg:"bg-blue-50"},revisao:{label:"Em Revisão",color:"text-amber-700",bg:"bg-amber-50"},rascunho:{label:"Rascunho",color:"text-gray-600",bg:"bg-gray-50"}},R5e={PRINT:{Icon:Zz,color:"text-[#7A8C5E]"},"PRINT + Cliente":{Icon:xn,color:"text-emerald-600"},"PRINT + Banco":{Icon:jo,color:"text-blue-600"}},PL=["Todos","Itaperuna/RJ","São Bento do Sul/SC","Itanhaém/SP","Rio Negrinho/SC"];function O5e(){const[e,t]=L.useState("Todos"),[r,a]=L.useState(""),[n,i]=L.useState({"Itaperuna/RJ":!0,"São Bento do Sul/SC":!0,"Itanhaém/SP":!0,"Rio Negrinho/SC":!0}),o=CL.filter(c=>{const u=e==="Todos"||c.municipio===e,h=!r||c.nome.toLowerCase().includes(r.toLowerCase())||c.tipo.toLowerCase().includes(r.toLowerCase());return u&&h}),s=PL.slice(1).map(c=>({municipio:c,docs:o.filter(u=>u.municipio===c)})).filter(c=>c.docs.length>0);return p.jsx("div",{"data-loc":"client/src/pages/Documentos.tsx:110",className:"min-h-screen bg-[#EDE9DF] p-6",children:p.jsxs("div",{"data-loc":"client/src/pages/Documentos.tsx:111",className:"max-w-6xl mx-auto space-y-6",children:[p.jsxs("div",{"data-loc":"client/src/pages/Documentos.tsx:114",className:"flex items-center justify-between",children:[p.jsxs("div",{"data-loc":"client/src/pages/Documentos.tsx:115",children:[p.jsx("h1",{"data-loc":"client/src/pages/Documentos.tsx:116",className:"text-2xl font-bold text-[#2D4A2D]",children:"Hub de Documentos"}),p.jsxs("p",{"data-loc":"client/src/pages/Documentos.tsx:117",className:"text-[#2D4A2D]/60 text-sm mt-0.5",children:[CL.length," documentos · 4 projetos · Controle de acesso por perfil"]})]}),p.jsxs("button",{"data-loc":"client/src/pages/Documentos.tsx:119",onClick:()=>je.info("Upload de documentos em breve."),className:"flex items-center gap-2 px-4 py-2 rounded-xl bg-[#2D4A2D] text-white text-sm font-medium hover:bg-[#2D4A2D]/90 transition-colors",children:[p.jsx(Ll,{"data-loc":"client/src/pages/Documentos.tsx:120",size:14})," Upload"]})]}),p.jsx("div",{"data-loc":"client/src/pages/Documentos.tsx:125",className:"grid grid-cols-3 gap-3",children:[{acesso:"PRINT",desc:"Documentos internos â apenas a equipe PRINT",Icon:Zz,color:"text-[#2D4A2D]",bg:"bg-white border-[#2D4A2D]/10"},{acesso:"PRINT + Cliente",desc:"VisÃvel para a Prefeitura e equipe municipal",Icon:xn,color:"text-emerald-700",bg:"bg-emerald-50 border-emerald-200"},{acesso:"PRINT + Banco",desc:"Compartilhado com Caixa ou BRDE",Icon:jo,color:"text-blue-700",bg:"bg-blue-50 border-blue-200"}].map(c=>p.jsxs("div",{"data-loc":"client/src/pages/Documentos.tsx:131",className:`rounded-2xl border p-4 flex items-center gap-3 ${c.bg}`,children:[p.jsx(c.Icon,{"data-loc":"client/src/pages/Documentos.tsx:132",size:16,className:c.color}),p.jsxs("div",{"data-loc":"client/src/pages/Documentos.tsx:133",children:[p.jsx("div",{"data-loc":"client/src/pages/Documentos.tsx:134",className:`text-xs font-bold ${c.color}`,children:c.acesso}),p.jsx("div",{"data-loc":"client/src/pages/Documentos.tsx:135",className:"text-[10px] text-[#2D4A2D]/50 mt-0.5",children:c.desc})]})]},c.acesso))}),p.jsxs("div",{"data-loc":"client/src/pages/Documentos.tsx:142",className:"flex items-center gap-3 flex-wrap",children:[p.jsxs("div",{"data-loc":"client/src/pages/Documentos.tsx:143",className:"relative",children:[p.jsx(oy,{"data-loc":"client/src/pages/Documentos.tsx:144",size:12,className:"absolute left-3 top-1/2 -translate-y-1/2 text-[#2D4A2D]/30"}),p.jsx("input",{"data-loc":"client/src/pages/Documentos.tsx:145",value:r,onChange:c=>a(c.target.value),placeholder:"Buscar documento...",className:"pl-8 pr-3 py-2 rounded-xl bg-white border border-[#2D4A2D]/10 text-xs text-[#2D4A2D] placeholder-[#2D4A2D]/30 focus:outline-none focus:border-[#2D4A2D]/30 w-52"})]}),p.jsx("div",{"data-loc":"client/src/pages/Documentos.tsx:147",className:"flex gap-1 flex-wrap",children:PL.map(c=>p.jsx("button",{"data-loc":"client/src/pages/Documentos.tsx:149",onClick:()=>t(c),className:`px-3 py-1.5 rounded-xl text-xs font-medium transition-colors ${e===c?"bg-[#2D4A2D] text-white":"bg-white border border-[#2D4A2D]/10 text-[#2D4A2D]/60 hover:border-[#2D4A2D]/30"}`,children:c},c))})]}),p.jsx("div",{"data-loc":"client/src/pages/Documentos.tsx:158",className:"space-y-4",children:s.map(c=>p.jsxs("div",{"data-loc":"client/src/pages/Documentos.tsx:160",className:"bg-white rounded-2xl border border-[#2D4A2D]/10 shadow-sm overflow-hidden",children:[p.jsxs("button",{"data-loc":"client/src/pages/Documentos.tsx:161",onClick:()=>i(u=>({...u,[c.municipio]:!u[c.municipio]})),className:"w-full px-5 py-4 flex items-center justify-between hover:bg-[#
1327EDE9DF]/50 transition-colors",children:[p.jsxs("div",{"data-loc":"client/src/pages/Documentos.tsx:163",className:"flex items-center gap-3",children:[p.jsx(Zee,{"data-loc":"client/src/pages/Documentos.tsx:164",size:15,className:"text-[#7A8C5E]"}),p.jsx("span",{"data-loc":"client/src/pages/Documentos.tsx:165",className:"text-sm font-bold text-[#2D4A2D]",children:c.municipio}),p.jsxs("span",{"data-loc":"client/src/pages/Documentos.tsx:166",className:"text-xs text-[#2D4A2D]/40",children:[c.docs.length," documentos"]})]}),n[c.municipio]?p.jsx(Xl,{"data-loc":"client/src/pages/Documentos.tsx:168",size:14,className:"text-[#2D4A2D]/40"}):p.jsx(tN,{"data-loc":"client/src/pages/Documentos.tsx:168",size:14,className:"text-[#2D4A2D]/40"})]}),n[c.municipio]&&p.jsx("div",{"data-loc":"client/src/pages/Documentos.tsx:172",className:"border-t border-[#2D4A2D]/8 overflow-x-auto",children:p.jsxs("table",{"data-loc":"client/src/pages/Documentos.tsx:173",className:"w-full text-xs border-collapse",children:[p.jsx("thead",{"data-loc":"client/src/pages/Documentos.tsx:174",children:p.jsx("tr",{"data-loc":"client/src/pages/Documentos.tsx:175",className:"bg-[#EDE9DF]/60",children:["Documento","Tipo","Versão","Acesso","Data","Status",""].map(u=>p.jsx("th",{"data-loc":"client/src/pages/Documentos.tsx:177",className:"text-left px-4 py-2.5 text-[10px] font-bold uppercase tracking-wider text-[#2D4A2D]/40 border-b border-[#2D4A2D]/8",children:u},u))})}),p.jsx("tbody",{"data-loc":"client/src/pages/Documentos.tsx:181",children:c.docs.map(u=>{const h=_5e[u.status],f=R5e[u.acesso];return p.jsxs("tr",{"data-loc":"client/src/pages/Documentos.tsx:186",className:"border-b border-[#2D4A2D]/6 hover:bg-[#EDE9DF]/30 transition-colors group",children:[p.jsxs("td",{"data-loc":"client/src/pages/Documentos.tsx:187",className:"px-4 py-3.5",children:[p.jsx("div",{"data-loc":"client/src/pages/Documentos.tsx:188",className:"font-semibold text-[#2D4A2D] text-xs leading-snug",children:u.nome}),p.jsx("div",{"data-loc":"client/src/pages/Documentos.tsx:189",className:"text-[10px] text-[#2D4A2D]/40 mt-0.5 max-w-xs truncate",children:u.descricao})]}),p.jsx("td",{"data-loc":"client/src/pages/Documentos.tsx:191",className:"px-4 py-3.5 whitespace-nowrap",children:p.jsx("span",{"data-loc":"client/src/pages/Documentos.tsx:192",className:ii("text-[10px] font-medium px-1.5 py-0.5 rounded-md border",D5e[u.tipo]),children:u.tipo})}),p.jsx("td",{"data-loc":"client/src/pages/Documentos.tsx:194",className:"px-4 py-3.5 text-[#2D4A2D]/40 font-mono text-[10px] whitespace-nowrap",children:u.versao}),p.jsx("td",{"data-loc":"client/src/pages/Documentos.tsx:195",className:"px-4 py-3.5 whitespace-nowrap",children:p.jsxs("div",{"data-loc":"client/src/pages/Documentos.tsx:196",className:"flex items-center gap-1",children:[p.jsx(f.Icon,{"data-loc":"client/src/pages/Documentos.tsx:197",size:10,className:f.color}),p.jsx("span",{"data-loc":"client/src/pages/Documentos.tsx:198",className:`text-[10px] font-medium ${f.color}`,children:u.acesso})]})}),p.jsx("td",{"data-loc":"client/src/pages/Documentos.tsx:201",className:"px-4 py-3.5 text-[#2D4A2D]/40 text-[10px] whitespace-nowrap",children:u.data}),p.jsx("td",{"data-loc":"client/src/pages/Documentos.tsx:202",className:"px-4 py-3.5 whitespace-nowrap",children:p.jsx("span",{"data-loc":"client/src/pages/Documentos.tsx:203",className:ii("text-[10px] font-semibold px-2 py-0.5 rounded-full",h.bg,h.color),children:h.label})}),p.jsx("td",{"data-loc":"client/src/pages/Documentos.tsx:205",className:"px-4 py-3.5",children:u.status!=="rascunho"?p.jsxs("button",{"data-loc":"client/src/pages/Documentos.tsx:207",onClick:()=>je.success(`Baixando: ${u.nome}`),className:"flex items-center gap-1 text-[10px] font-semibold text-[#2D4A2D]/40 hover:text-[#2D4A2D] transition-colors opacity-0 group-hover:opacity-100",children:[p.jsx(Yl,{"data-loc":"client/src/pages/Documentos.tsx:208",size:11})," Baixar"]}):p.jsx("span",{"data-loc":"client/src/pages/Documentos.tsx:211",className:"text-[10px] text-[#2D4A2D]/30",children:"Em elaboração"})})]},u.id)})})]})})]},c.municipio))})]})})}const rC=[{id:"hero",titulo:"Hero â Chamada Principal",editavel:!0,statusIA:"gerado",conteudo:`TÃtulo: "Itaperuna mais iluminada, mais segura." 1328SubtÃtulo: "Conheça o projeto de Parceria Público-Privada de Iluminação Pública e participe da escuta social." 1329CTA: "Quero participar da escuta social" 1330Imagem de fundo: Foto aérea de Itaperuna à noite (antes/depois)`},{id:"projeto",titulo:"O Projeto â Descrição",editavel:!0,statusIA:"gerado",conteudo:`A Prefeitura de Itaperuna está desenvolvendo um projeto de Parceria Público-Privada (PPP) para modernizar toda a iluminação pública do municÃpio. 1331 1332O que é uma PPP? à um contrato entre a Prefeitura e uma empresa privada especializada, onde a empresa investe na modernização e a Prefeitura paga ao longo do tempo com a economia gerada. O controle e a fiscalização continuam sendo da Prefeitura. 1333 1334O que vai mudar? Todos os postes de Itaperuna serão substituÃdos por luminárias LED de alta eficiência, reduzindo o consumo de energia em até 60% e aumentando a qualidade da iluminação em toda a cidade.`}
1334,{id:"beneficios",titulo:"BenefÃcios para Itaperuna",editavel:!0,statusIA:"gerado",conteudo:`⢠100% das ruas iluminadas com LED em 18 meses 1335⢠Economia de R$ 2,3 milhões/ano na conta de energia da Prefeitura 1336⢠Redução de 60% no consumo de energia elétrica 1337⢠Manutenção garantida por 20 anos â sem custo adicional para a Prefeitura 1338⢠Mais segurança nas ruas: estudos mostram redução de até 30% nos crimes noturnos 1339⢠Sem aumento de impostos para a população`},{id:"faq",titulo:"Perguntas Frequentes (FAQ)",editavel:!0,statusIA:"gerado",conteudo:`P: A PPP é uma privatização da iluminação pública? 1340R: Não. A Prefeitura mantém o controle e a propriedade de toda a infraestrutura. A empresa privada apenas opera e mantém o serviço, sob fiscalização permanente da Prefeitura. 1341 1342P: Vai aumentar o IPTU ou algum imposto? 1343R: Não. O projeto é financiado pela economia gerada na conta de energia, sem necessidade de aumento de impostos. 1344 1345P: Quanto tempo vai durar o contrato? 1346R: O contrato tem prazo de 20 anos, com possibilidade de rescisão pela Prefeitura em caso de descumprimento. 1347 1348P: Como posso acompanhar o projeto? 1349R: Todos os documentos são públicos e estarão disponÃveis neste site. Você também pode participar da escuta social.`},{id:"consulta",titulo:"Formulário de Escuta Social",editavel:!1,statusIA:"aprovado",conteudo:`Campos do formulário: 1350⢠Nome completo * 1351⢠Bairro * 1352⢠E-mail 1353⢠Telefone 1354⢠Você apoia o projeto? (Sim / Não / Tenho dúvidas) 1355⢠Sua principal preocupação com o projeto: 1356 [ ] Aumento de impostos 1357 [ ] Qualidade do serviço 1358 [ ] Transparência do contrato 1359 [ ] Prazo de execução 1360 [ ] Outra 1361⢠Sugestões ou comentários (texto livre) 1362⢠Autorizo o uso dos meus dados para fins de escuta social (checkbox obrigatório)`},{id:"transparencia",titulo:"Transparência â Documentos Públicos",editavel:!0,statusIA:"gerado",conteudo:`Documentos disponÃveis para download: 1363⢠Estudo de Viabilidade Técnica e Econômica (EVTE) 1364⢠Minuta do Contrato de PPP 1365⢠Edital de Licitação 1366⢠Ata da Audiência Pública 1367⢠Relatório de Contribuições da Escuta Social 1368⢠Lei Municipal autorizando a PPP`}];function M5e({projeto:e}){const t=Kr[e.tipoProjeto];return p.jsxs("div",{"data-loc":"client/src/pages/HotsiteV2.tsx:117",className:"rounded-xl overflow-hidden",style:{border:"1px solid #C9B99A",fontFamily:"Nunito, sans-serif"},children:[p.jsxs("div",{"data-loc":"client/src/pages/HotsiteV2.tsx:122",className:"px-8 py-10 text-center",style:{background:`linear-gradient(135deg, ${t.cor}E0, ${t.cor}90)`},children:[p.jsxs("div",{"data-loc":"client/src/pages/HotsiteV2.tsx:126",className:"inline-flex items-center gap-1.5 text-[10px] font-black px-3 py-1 rounded-full mb-4 uppercase tracking-wider",style:{backgroundColor:"rgba(255,255,255,0.2)",color:"#fff"},children:[p.jsx(Es,{"data-loc":"client/src/pages/HotsiteV2.tsx:130",size:10})," Escuta Social Aberta"]}),p.jsxs("h1",{"data-loc":"client/src/pages/HotsiteV2.tsx:132",className:"text-[22px] font-black text-white leading-tight mb-2",children:[e.municipio," mais ",e.tipoProjeto==="iluminacao_publica"?"iluminada":"desenvolvida",", mais segura."]}),p.jsxs("p",{"data-loc":"client/src/pages/HotsiteV2.tsx:135",className:"text-[13px] text-white/80 mb-5 max-w-md mx-auto",children:["Conheça o projeto de PPP de ",t.label," e participe da escuta social."]}),p.jsx("button",{"data-loc":"client/src/pages/HotsiteV2.tsx:138",className:"px-6 py-2.5 rounded-xl text-[12px] font-black text-white",style:{backgroundColor:"rgba(255,255,255,0.25)",border:"2px solid rgba(255,255,255,0.5)"},children:"Quero participar da escuta social â"})]}),p.jsxs("div",{"data-loc":"client/src/pages/HotsiteV2.tsx:147",className:"px-8 py-6",style:{backgroundColor:"#fff"},children:[p.jsxs("h2",{"data-loc":"client/src/pages/HotsiteV2.tsx:148",className:"text-[14px] font-black mb-4",style:{color:"#1E1E1E"},children:["BenefÃcios para ",e.municipio]}),p.jsx("div",{"data-loc":"client/src/pages/HotsiteV2.tsx:151",className:"grid grid-cols-3 gap-3",children:[{icon:"ð¡",titulo:"100% LED",sub:"em 18 meses"},{icon:"ð°",titulo:"R$ 2,3M/ano",sub:"de economia"},{icon:"ð¡ï¸",titulo:"Controle público",sub:"garantido"}].map(r=>p.jsxs("div",{"data-loc":"client/src/pages/HotsiteV2.tsx:157",className:"rounded-xl p-3 text-center",style:{backgroundColor:`${t.cor}10`,border:`1px solid ${t.cor}30`},children:[p.jsx("div",{"data-loc":"client/src/pages/HotsiteV2.tsx:162",className:"text-[20px] mb-1",children:r.icon}),p.jsx("div",{"data-loc":"client/src/pages/HotsiteV2.tsx:163",className:"text-[12px] font-black",style:{color:t.cor},children:r.titulo}),p.jsx("div",{"data-loc":"client/src/pages/HotsiteV2.tsx:164",className:"text-[10px]",style:{color:"#7A8C5E"},children:r.sub})]},r.titulo))})]}),p.jsxs("div",{"data-loc":"client/src/pages/HotsiteV2.tsx:171",className:"px-8 py-6",style:{backgroundColor:"#FAFAF8",borderTop:"1px solid #EDE9DF"},children:[p.jsx("h2",{"data-loc":"client/src/pages/HotsiteV2.tsx:172",className:"text-[14px] font-black mb-1",style:{color:"#1E1E1E"},children:"Participe da Escuta Social"}),p.jsx("p",{"data-loc":"client/src/pages/HotsiteV2.tsx:175",className:"text-[11px] mb-4",style:{color:"#7A8C5E"},children:"Sua opinião é fundamental para o projeto."}),p.jsxs("div",{"data-loc":"client/src/pages/HotsiteV2.tsx:178",className:"space-y-2",children:[["Nome completo","Bairro","E-mail"].map(r=>p.jsx("div",{"data-loc":"client/src/pages/HotsiteV2.tsx:180",className:"w-full px-3 py-2 rounded-lg text-[11px]",style:{border:"1px solid #C9B99A",color:"#C9B99A",backgroundColor:"#fff"},children:r},r)),p.jsx("div",{"data-loc":"client/src/pages/HotsiteV2.tsx:188",className:"flex gap-2",children:["Apoio o projeto","Tenho dúvidas","Não apoio"].map(r=>p.jsx("button",{"data-loc":"client/src/pages/HotsiteV2.tsx:190",className:"flex-1 py-2 rounded-lg text-[10px] font-bold",style:{border:"1px solid #C9B99A",color:"#7A8C5E",backgroundColor:"#fff"},children:r},r))}),p.jsx("button",{"data-loc":"client/src/pages/HotsiteV2.tsx:199",className:"w-full py-2.5 rounded-xl text-[12px] font-black text-white",style:{background:`linear-gradient(135deg, ${t.cor}, ${t.cor}CC)`},children:"Enviar minha contribuição"})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/HotsiteV2.tsx:209",className:"px-8 py-4 flex items-center justify-between",style:{backgroundColor:"#2D4A2D",borderTop:"1px solid #EDE9DF"},children:[p.jsxs("div",{"data-loc":"client/src/pages/HotsiteV2.tsx:213",className:"text-[10px] text-white/60",children:["Prefeitura Municipal de ",e.municipio," · ",e.estado]}),p.jsx("div",{"data-loc":"client/src/pages/HotsiteV2.tsx:216",className:"text-[10px] font-black",style:{color:"#C9A84C"},children:"PRINT. Comunicação"})]})]})}function I5e(){const{projetos:e}=Ps(),[t,r]=L.useState(e[0]?.id??""),[a,n]=L.useState("editor"),[i,o]=L.useState("hero"),[s,c]=L.useState(!1),[u,h]=L.useState({}),f=e.find(b=>b.id===t)??e[0];f&&Kr[f.tipoProjeto];const m=()=>{je.success(`Hotsite publicado em: ${f?.municipio?.toLowerCase()}-ppp.print.com.br`)},x=()=>{navigator.clipboard.writeText(`https://${f?.municipio?.toLowerCase()}-ppp.print.com.br`),je.success("Link copiado!")},v=rC.filter(b=>(u[b.id]??b.statusIA)==="aprovado").length,y=rC.length;return p.jsxs("div",{"data-loc":"client/src/pages/HotsiteV2.tsx:257",className:"space-y-5",children:[p.jsxs("div",{"data-loc":"client/src/pages/HotsiteV2.tsx:260",className:"flex items-center gap-3",children:[p.jsx("select",{"data-loc":"client/src/pages/HotsiteV2.tsx:261",value:t,onChange:b=>r(b.target.value),className:"text-[12px] font-bold px-3 py-2 rounded-lg outline-none",style:{border:"1.5px solid #C9B99A",backgroundColor:"#fff",color:"#1E1E1E",fontFamily:"Nunito, sans-serif"},children:e.map(b=>p.jsx("option",{"data-loc":"client/src/pages/HotsiteV2.tsx:268",value:b.id,children:b.nomeProjeto},b.id))}),p.jsx("div",{"data-loc":"client/src/pages/HotsiteV2.tsx:271",className:"flex-1"}),p.jsx("div",{"data-loc":"client/src/pages/HotsiteV2.tsx:274",className:"flex rounded-lg overflow-hidden",style:{border:"1px solid #C9B99A"},children:["editor","preview"].map(b=>p.jsx("button",{"data-loc":"client/src/pages/HotsiteV2.tsx:279",onClick:()=>n(b),className:"flex items-center gap-1.5 text-[11px] font-bold px-3 py-2 transition-all",style:{backgroundColor:a===b?"#2D4A2D":"#fff",color:a===b?"#EDE9DF":"#7A8C5E",fontFamily:"Nunito, sans-serif"},children:b==="editor"?p.jsxs(p.Fragment,{children:[p.jsx(up,{"data-loc":"client/src/pages/HotsiteV2.tsx:289",size:11})," Editor"]}):p.jsxs(p.Fragment,{children:[p.jsx(kx,{"data-loc":"client/src/pages/HotsiteV2.tsx:289",size:11})," Preview"]})},b))}),p.jsxs("button",{"data-loc":"client/src/pages/HotsiteV2.tsx:294",onClick:x,className:"flex items-center gap-1.5 text-[11px] font-bold px-3 py-2 rounded-lg",style:{border:"1px solid #C9B99A",color:"#7A8C5E",fontFamily:"Nunito, sans-serif"},children:[p.jsx(rN,{"data-loc":"client/src/pages/HotsiteV2.tsx:299",size:11})," Copiar Link"]}),p.jsxs("button",{"data-loc":"client/src/pages/HotsiteV2.tsx:301",onClick:m,className:"flex items-center gap-1.5 text-[11px] font-black px-4 py-2 rounded-lg",style:{background:"linear-gradient(135deg, #2D4A2D, #4a6e4a)",color:"#EDE9DF",fontFamily:"Nunito, sans-serif",boxShadow:"0 2px 8px rgba(45,74,45,0.25)"},children:[p.jsx(Es,{"data-loc":"client/src/pages/HotsiteV2.tsx:311",size:11})," Publicar Hotsite"]})]}),p.jsx("div",{"data-loc":"client/src/pages/HotsiteV2.tsx:316",className:"grid grid-cols-4 gap-4",children:[{label:"Seções Geradas",value:y,cor:"#2D4A2D"},{label:"Aprovadas",value:v,cor:"#7A8C5E"},{label:"Aguard. Revisão",value:y-v,cor:"#C9A84C"},{label:"Status",value:f?.hotsite?.status==="publicado"?"ð¢ Publicado":"ð¡ Rascunho",cor:"#5B8FA8"}].map(b=>p.jsxs("div",{"data-loc":"client/src/pages/HotsiteV2.tsx:323",className:"rounded-xl p-4",style:{backgroundColor:"#ffffff",border:"1px solid #C9B99A"},children:[p.jsx("div",{"data-loc":"client/src/pages/HotsiteV2.tsx:324",className:"text-[10px] font-black uppercase tracking-[1.5px] mb-1",style:{color:b.cor,fontFamily:"Nunito, sans-serif"},children:b.label}),p.jsx("div",{"data-loc":"client/src/pages/HotsiteV2.tsx:327",className:"text-xl font-black",style:{color:b.cor,fontFamily:"Nunito, sans-serif"},children:b.value})]},b.label))}),a==="preview"?p.jsxs("div",{"data-loc":"client/src/pages/HotsiteV2.tsx:334",children:[p.jsxs("div",{"data-loc":"client/src/pages/HotsiteV2.tsx:335",className:"text-[11px] font-bold mb-3 flex items-center gap-2",style:{color:"#7A8C5E"},children:[p.jsx(kx,{"data-loc":"client/src/pages/HotsiteV2.tsx:336",size:12}),"Preview do hotsite â ",f?.municipio,"/",f?.estado]}),f&&p.jsx(M5e,{"data-loc":"client/src/pages/HotsiteV2.tsx:339",projeto:f})]}):p.jsxs("div",{"data-loc":"client/src/pages/HotsiteV2.tsx:342",className:"space-y-2",children:[p.jsxs("div",{"data-loc":"client/src/pages/HotsiteV2.tsx:343",className:"text-[11px] font-bold mb-3 flex items-center gap-2",style:{color:"#7A8C5E"},children:[p.jsx(up,{"data-loc":"client/src/pages/HotsiteV2.tsx:344",size:12}),"Editor de Seções â revise e aprove cada seção antes de publicar"]}),rC.map(b=>{const S=i===b.id,A=u[b.id]??b.statusIA;return p.jsxs("div",{"data-loc":"client/src/pages/HotsiteV2.tsx:352",className:"rounded-xl overflow-hidden",style:{backgroundColor:"#ffffff",border:`1px solid ${S?"#2D4A2D40":"#C9B99A"}`},children:[p.jsxs("div",{"data-loc":"client/src/pages/HotsiteV2.tsx:357",className:"px-5 py-3.5 flex items-center gap-3 cursor-pointer",onClick:()=>o(S?null:b.id),children:[p.jsx("div",{"data-loc":"client/src/pages/HotsiteV2.tsx:361",className:"flex-1",children:p.jsxs("div",{"data-loc":"client/src/pages/HotsiteV2.tsx:362",className:"flex items-center gap-2",children:[p.jsx("span",{"data-loc":"client/src/pages/HotsiteV2.tsx:363",className:"text-[12px] font-black",style:{color:"#1E1E1E",fontFamily:"Nunito, sans-serif"},children:b.titulo}),p.jsx("span",{"data-loc":"client/src/pages/HotsiteV2.tsx:366",className:"text-[9px] font-black px-1.5 py-0.5 rounded-full",style:{backgroundColor:A==="aprovado"?"#2D4A2D15":"#C9A84C15",color:A==="aprovado"?"#2D4A2D":"#7a6020"},children:A==="aprovado"?"â Aprovado":"â³ Rascunho IA"}),!b.editavel&&p.jsx("span",{"data-loc":"client/src/pages/HotsiteV2.tsx:376",className:"text-[9px] font-bold px-1.5 py-0.5 rounded-full",style:{backgroundColor:"#EDE9DF",color:"#7A8C5E"},children:"Automático"})]})}),p.jsx("div",{"data-loc":"client/src/pages/HotsiteV2.tsx:382",style:{color:"#C9B99A"},children:S?p.jsx(Sd,{"data-loc":"client/src/pages/HotsiteV2.tsx:383",size:14}):p.jsx(Xl,{"data-loc":"client/src/pages/HotsiteV2.tsx:383",size:14})})]}),S&&p.jsxs("div",{"data-loc":"client/src/pages/HotsiteV2.tsx:388",className:"px-5 pb-5 pt-1",style:{borderTop:"1px solid #EDE9DF"},children:[p.jsx("div",{"data-loc":"client/src/pages/HotsiteV2.tsx:389",className:"rounded-xl p-4 mb-3 text-[11px] leading-relaxed whitespace-pre-wrap",style:{backgroundColor:"#FAFAF8",border:"1px solid #EDE9DF",color:"#1E1E1E",fontFamily:"Nunito, sans-serif"},children:b.conteudo}),b.editavel&&p.jsxs("div",{"data-loc":"client/src/pages/HotsiteV2.tsx:396",className:"flex gap-2",children:[p.jsxs("button",{"data-loc":"client/src/pages/HotsiteV2.tsx:397",onClick:()=>{h(E=>({...E,[b.id]:"aprovado"})),je.success(`Seção "${b.titulo}" aprovada!`)},className:"flex items-center gap-1 text-[10px] font-black px-3 py-1.5 rounded-lg",style:{backgroundColor:A==="aprovado"?"#2D4A2D":"#ffffff",color:A==="aprovado"?"#fff":"#2D4A2D",border:"1.5px solid #2D4A2D",fontFamily:"Nunito, sans-serif"},children:[p.jsx(ta,{"data-loc":"client/src/pages/HotsiteV2.tsx:410",size:10}
1368)," Aprovar Seção"]}),p.jsxs("button",{"data-loc":"client/src/pages/HotsiteV2.tsx:412",onClick:()=>je.info("Editor de texto completo â em breve"),className:"flex items-center gap-1 text-[10px] font-bold px-3 py-1.5 rounded-lg",style:{border:"1px solid #C9B99A",color:"#7A8C5E",fontFamily:"Nunito, sans-serif"},children:[p.jsx(up,{"data-loc":"client/src/pages/HotsiteV2.tsx:417",size:10})," Editar Manualmente"]}),p.jsxs("button",{"data-loc":"client/src/pages/HotsiteV2.tsx:419",onClick:()=>je.info("Instrução enviada para a IA regenerar esta seção"),className:"flex items-center gap-1 text-[10px] font-bold px-3 py-1.5 rounded-lg",style:{border:"1px solid #C9A84C",color:"#C9A84C",fontFamily:"Nunito, sans-serif"},children:[p.jsx(pn,{"data-loc":"client/src/pages/HotsiteV2.tsx:424",size:10})," Regenerar com IA"]})]})]})]},b.id)})]})]})}const jt={forest:"#2D4A2D",sage:"#7A8C5E",offwhite:"#EDE9DF",sand:"#C9B99A",gold:"#C9A84C",slate:"#5B8FA8",graphite:"#1E1E1E"},B5e=[{elementType:"geometry",stylers:[{color:"#f5f0e8"}]},{elementType:"labels.text.fill",stylers:[{color:"#4a5a38"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f0e8"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#c9dde8"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#5B8FA8"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#e8e0d0"}]},{featureType:"road",elementType:"geometry.stroke",stylers:[{color:"#d4c9b5"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#d4c9b5"}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#C9B99A"}]},{featureType:"administrative.country",elementType:"geometry.stroke",stylers:[{color:"#7A8C5E"},{weight:1.5}]},{featureType:"administrative.province",elementType:"geometry.stroke",stylers:[{color:"#C9B99A"},{weight:.8}]},{featureType:"poi",stylers:[{visibility:"off"}]},{featureType:"transit",stylers:[{visibility:"off"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#eae5d8"}]}];function L5e(e,t){return` 1369 <svg xmlns="http://www.w3.org/2000/svg" width="44" height="54" viewBox="0 0 44 54"> 1370 <defs> 1371 <filter id="shadow" x="-20%" y="-20%" width="140%" height="140%"> 1372 <feDropShadow dx="0" dy="2" stdDeviation="2" flood-color="rgba(0,0,0,0.25)"/> 1373 </filter> 1374 </defs> 1375 <!-- Pin body --> 1376 <path d="M22 2 C12 2 4 10 4 20 C4 32 22 50 22 50 C22 50 40 32 40 20 C40 10 32 2 22 2 Z" 1377 fill="${e}" filter="url(#shadow)"/> 1378 <!-- White circle --> 1379 <circle cx="22" cy="20" r="11" fill="white" opacity="0.95"/> 1380 <!-- Progress arc --> 1381 <circle cx="22" cy="20" r="8" fill="none" stroke="${e}" stroke-width="2.5" 1382 stroke-dasharray="${t/100*50.3} 50.3" 1383 stroke-linecap="round" 1384 transform="rotate(-90 22 20)"/> 1385 <!-- Center dot --> 1386 <circle cx="22" cy="20" r="3" fill="${e}"/> 1387 </svg> 1388 `}function z5e(){const e=L.useRef(null),t=L.useRef([]),r=L.useRef(null),[a,n]=L.useState(null),[i,o]=L.useState("todos"),{municipios:s,totais:c}=ny(),u=b=>(b.curado?.dataContrato??b.projetosBanco[0]?.dataInicio??"").slice(0,4),h=["todos",...Array.from(new Set(s.map(u).filter(Boolean))).sort()],f=i==="todos"?s:s.filter(b=>u(b)===i),m=f.filter(b=>b.lat!==void 0&&b.lng!==void 0),x=[{label:"MunicÃpios",value:c.municipios,icon:p.jsx(Zl,{"data-loc":"client/src/pages/MapaCobertura.tsx:97",size:14}),color:jt.forest},{label:"Estados",value:c.estados,icon:p.jsx(_u,{"data-loc":"client/src/pages/MapaCobertura.tsx:98",size:14}),color:jt.sage},{label:"Com projeto",value:c.municipiosNoBanco,icon:p.jsx(wd,{"data-loc":"client/src/pages/MapaCobertura.tsx:99",size:14}),color:jt.gold},{label:"Progresso Méd.",value:s.length?Math.round(s.reduce((b,S)=>b+S.progresso,0)/s.length)+"%":"â",icon:p.jsx(Ip,{"data-loc":"client/src/pages/MapaCobertura.tsx:105",size:14}),color:jt.slate}],v=L.useCallback(b=>{e.current=b,b.setOptions({styles:B5e,mapTypeControl:!1,streetViewControl:!1,fullscreenControl:!1,zoomControlOptions:{position:google.maps.ControlPosition.RIGHT_CENTER}}
1388),r.current=new google.maps.InfoWindow,m.forEach(S=>{const A=L5e(S.cor,S.progresso),j=new DOMParser().parseFromString(A,"image/svg+xml").documentElement,P=new google.maps.marker.AdvancedMarkerElement({map:b,position:{lat:S.lat,lng:S.lng},title:`${S.nome}/${S.estado}`,content:j});j.style.transform="scale(0)",j.style.transition="transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1)",setTimeout(()=>{j.style.transform="scale(1)"},m.indexOf(S)*150+300),P.addListener("mouseover",()=>{j.style.transform="scale(1.2)",j.style.zIndex="999"}),P.addListener("mouseout",()=>{j.style.transform="scale(1)",j.style.zIndex=""}),P.addListener("click",()=>{n(S),b.panTo({lat:S.lat,lng:S.lng}),b.setZoom(9),r.current&&(r.current.setContent(` 1389 <div style="font-family: Nunito, sans-serif; padding: 4px 2px; min-width: 200px;"> 1390 <div style="font-size: 14px; font-weight: 800; color: ${jt.graphite}; margin-bottom: 2px;"> 1391 ${S.nome} / ${S.estado} 1392 </div> 1393 <div style="font-size: 11px; color: ${jt.sage}; margin-bottom: 8px;"> 1394 PPP ${S.projeto} · Fase ${S.faseAtual}/12 1395 </div> 1396 <div style="background: #f5f0e8; border-radius: 6px; padding: 6px 8px; margin-bottom: 6px;"> 1397 <div style="display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 4px;"> 1398 <span style="color: ${jt.sage};">Progresso</span> 1399 <span style="font-weight: 800; color: ${S.cor};">${S.progresso}%</span> 1400 </div> 1401 <div style="height: 4px; background: #C9B99A40; border-radius: 2px; overflow: hidden;"> 1402 <div style="height: 100%; width: ${S.progresso}%; background: ${S.cor}; border-radius: 2px;"></div> 1403 </div> 1404 </div> 1405 <div style="font-size: 10px; color: ${jt.sage};"> 1406 Contrato desde ${new Date(S.curado?.dataContrato??S.projetosBanco[0]?.dataInicio??"â").toLocaleDateString("pt-BR",{month:"long",year:"numeric"})} 1407 </div> 1408 </div> 1409 `),r.current.open({anchor:P,map:b}))}),t.current.push(P)})},[]),y=b=>{o(b),n(null),t.current.forEach((S,A)=>{const E=m[A],j=b==="todos"||(E.curado?.dataContrato??E.projetosBanco[0]?.dataInicio??"â").startsWith(b),P=S.content;P&&(P.style.opacity=j?"1":"0.15",P.style.transform=j?"scale(1)":"scale(0.7)")}),e.current&&(e.current.setZoom(4),e.current.panTo({lat:-14.235,lng:-51.925}))};return p.jsxs("div",{"data-loc":"client/src/pages/MapaCobertura.tsx:217",className:"space-y-4",children:[p.jsxs("div",{"data-loc":"client/src/pages/MapaCobertura.tsx:220",className:"flex items-center justify-between",children:[p.jsxs("div",{"data-loc":"client/src/pages/MapaCobertura.tsx:221",children:[p.jsx("h2",{"data-loc":"client/src/pages/MapaCobertura.tsx:222",className:"text-[18px] font-black",style:{color:jt.graphite,fontFamily:"Nunito, sans-serif"},children:"Cobertura Geográfica"}),p.jsx("p",{"data-loc":"client/src/pages/MapaCobertura.tsx:225",className:"text-[12px] mt-0.5",style:{color:jt.sage},children:"MunicÃpios atendidos pela PRINT em todo o Brasil."})]}),p.jsxs("div",{"data-loc":"client/src/pages/MapaCobertura.tsx:229",className:"flex items-center gap-2",children:[p.jsx("span",{"data-loc":"client/src/pages/MapaCobertura.tsx:230",className:"text-[11px] font-bold",style:{color:jt.sage},children:"Filtrar por contrato:"}),p.jsx("div",{"data-loc":"client/src/pages/MapaCobertura.tsx:231",className:"flex gap-1",children:h.map(b=>p.jsx("button",{"data-loc":"client/src/pages/MapaCobertura.tsx:233",onClick:()=>y(b),className:"px-3 py-1.5 rounded-lg text-[11px] font-bold transition-all",style:{backgroundColor:i===b?jt.forest:"#ffffff",color:i===b?"#EDE9DF":jt.sage,border:`1px solid ${i===b?jt.forest:jt.sand}`,fontFamily:"Nunito, sans-serif"},children:b==="todos"?"Todos":b},b))})]})]}),p.jsx("div",{"data-loc":"client/src/pages/MapaCobertura.tsx:252",className:"grid grid-cols-4 gap-3",children:x.map(b=>p.jsxs("div",{"data-loc":"client/src/pages/MapaCobertura.tsx:254",className:"rounded-xl p-4 flex items-center gap-3",style:{backgroundColor:"#ffffff",border:`1px solid ${jt.sand}`},children:[p.jsx("div",{"data-loc":"client/src/pages/MapaCobertura.tsx:259",className:"w-8 h-8 rounded-lg flex items-center justify-center flex-shrink-0",style:{backgroundColor:b.color+"18",color:b.color},children:b.icon}),p.jsxs("div",{"data-loc":"client/src/pages/MapaCobertura.tsx:265",children:[p.jsx("div",{"data-loc":"client/src/pages/MapaCobertura.tsx:266",className:"text-[18px] font-black leading-none",style:{color:b.color,fontFamily:"Nunito, sans-serif"},children:b.value}),p.jsx("div",{"data-loc":"client/src/pages/MapaCobertura.tsx:269",className:"text-[10px] mt-0.5",style:{color:jt.sage},children:b.label})]})]},b.label))}),p.jsxs("div",{"data-loc":"client/src/pages/MapaCobertura.tsx:276",className:"flex gap-4",children:[p.jsx("div",{"data-loc":"client/src/pages/MapaCobertura.tsx:279",className:"flex-1 rounded-xl overflow-hidden",style:{border:`1px solid ${jt.sand}`,minHeight:"520px"},children:p.jsx(RF,{"data-loc":"client/src/pages/MapaCobertura.tsx:283",initialCenter:{lat:-14.235,lng:-51.925}
1409,initialZoom:4,onMapReady:v,className:"w-full h-[520px]"})}),p.jsxs("div",{"data-loc":"client/src/pages/MapaCobertura.tsx:292",className:"w-72 flex-shrink-0 rounded-xl overflow-hidden flex flex-col",style:{backgroundColor:"#ffffff",border:`1px solid ${jt.sand}`},children:[p.jsxs("div",{"data-loc":"client/src/pages/MapaCobertura.tsx:296",className:"px-4 py-3 flex items-center justify-between",style:{borderBottom:`1px solid ${jt.offwhite}`},children:[p.jsx("span",{"data-loc":"client/src/pages/MapaCobertura.tsx:300",className:"text-[12px] font-black",style:{color:jt.graphite,fontFamily:"Nunito, sans-serif"},children:"MunicÃpios Atendidos"}),p.jsxs("span",{"data-loc":"client/src/pages/MapaCobertura.tsx:303",className:"text-[10px] font-bold px-2 py-0.5 rounded-full",style:{backgroundColor:jt.forest+"18",color:jt.forest},children:[f.length," ativos"]})]}),p.jsx("div",{"data-loc":"client/src/pages/MapaCobertura.tsx:311",className:"flex-1 overflow-y-auto divide-y",style:{borderColor:jt.offwhite},children:f.map(b=>p.jsxs("button",{"data-loc":"client/src/pages/MapaCobertura.tsx:313",onClick:()=>{n(b),e.current&&(e.current.panTo({lat:b.lat,lng:b.lng}),e.current.setZoom(9))},className:"w-full px-4 py-3 text-left transition-colors",style:{backgroundColor:a?.id===b.id?jt.offwhite:"transparent",borderLeft:a?.id===b.id?`3px solid ${b.cor}`:"3px solid transparent"},onMouseEnter:S=>{a?.id!==b.id&&(S.currentTarget.style.backgroundColor=jt.offwhite+"80")},onMouseLeave:S=>{a?.id!==b.id&&(S.currentTarget.style.backgroundColor="transparent")},children:[p.jsxs("div",{"data-loc":"client/src/pages/MapaCobertura.tsx:336",className:"flex items-center gap-2.5 mb-1.5",children:[p.jsx("div",{"data-loc":"client/src/pages/MapaCobertura.tsx:337",className:"w-7 h-7 rounded-lg flex items-center justify-center text-[10px] font-black flex-shrink-0",style:{background:b.cor+"20",color:b.cor},children:b.sigla}),p.jsxs("div",{"data-loc":"client/src/pages/MapaCobertura.tsx:343",className:"flex-1 min-w-0",children:[p.jsx("div",{"data-loc":"client/src/pages/MapaCobertura.tsx:344",className:"text-[12px] font-black truncate",style:{color:jt.graphite,fontFamily:"Nunito, sans-serif"},children:b.nome}),p.jsxs("div",{"data-loc":"client/src/pages/MapaCobertura.tsx:347",className:"text-[10px]",style:{color:jt.sage},children:[b.estado," · ",b.projeto]})]}),p.jsxs("div",{"data-loc":"client/src/pages/MapaCobertura.tsx:349",className:"text-[11px] font-black flex-shrink-0",style:{color:b.cor},children:[b.progresso,"%"]})]}),p.jsx(Mx,{"data-loc":"client/src/pages/MapaCobertura.tsx:351",value:b.progresso,color:b.cor}),p.jsxs("div",{"data-loc":"client/src/pages/MapaCobertura.tsx:352",className:"text-[9px] mt-1",style:{color:jt.sand},children:["Contrato: ",new Date(b.curado?.dataContrato??b.projetosBanco[0]?.dataInicio??"â").toLocaleDateString("pt-BR",{month:"short",year:"numeric"})]})]},b.id))}),p.jsxs("div",{"data-loc":"client/src/pages/MapaCobertura.tsx:360",className:"px-4 py-3",style:{borderTop:`1px solid ${jt.offwhite}`},children:[p.jsx("div",{"data-loc":"client/src/pages/MapaCobertura.tsx:364",className:"text-[9px] font-black uppercase tracking-wider mb-2",style:{color:jt.sage},children:"Legenda"}),p.jsx("div",{"data-loc":"client/src/pages/MapaCobertura.tsx:367",className:"space-y-1.5",children:Array.from(new Set(s.map(b=>b.projeto))).map(b=>{const S=s.find(A=>A.projeto===b)?.cor||jt.sage;return p.jsxs("div",{"data-loc":"client/src/pages/MapaCobertura.tsx:371",className:"flex items-center gap-2",children:[p.jsx("div",{"data-loc":"client/src/pages/MapaCobertura.tsx:372",className:"w-3 h-3 rounded-full flex-shrink-0",style:{backgroundColor:S}}),p.jsx("span",{"data-loc":"client/src/pages/MapaCobertura.tsx:373",className:"text-[10px]",style:{color:jt.graphite},children:b})]},b)})})]})]})]}),a&&p.jsx("div",{"data-loc":"client/src/pages/MapaCobertura.tsx:384",className:"rounded-xl p-5 animate-fade-in-up",style:{backgroundColor:"#ffffff",border:`1px solid ${a.cor}40`,borderLeft:`4px solid ${a.cor}`},children:p.jsxs("div",{"data-loc":"client/src/pages/MapaCobertura.tsx:388",className:"flex items-center gap-4",children:[p.jsx("div",{"data-loc":"client/src/pages/MapaCobertura.tsx:389",className:"w-12 h-12 rounded-xl flex items-center justify-center text-lg font-black flex-shrink-0",style:{background:a.cor+"18",color:a.cor},children:a.sigla}),p.jsxs("div",{"data-loc":"client/src/pages/MapaCobertura.tsx:395",className:"flex-1",children:[p.jsxs("div",{"data-loc":"client/src/pages/MapaCobertura.tsx:396",className:"text-[15px] font-black",style:{color:jt.graphite,fontFamily:"Nunito, sans-serif"},children:[a.nome,", ",a.estado]}),p.jsxs("div",{"data-loc":"client/src/pages/MapaCobertura.tsx:399",className:"text-[12px]",style:{color:jt.sage},children:["PPP ",a.projeto," · Fase ",a.faseAtual,"/12",a.analistas.length?` · ${a.analistas.length} analistas`:""]})]}),p.jsx("div",{"data-loc":"client/src/pages/MapaCobertura.tsx:404",className:"grid grid-cols-3 gap-4 text-center",children:[{label:"Progresso",value:a.progresso+"%",color:a.cor},{label:"Fase",value:a.faseAtual+"/12",color:jt.sage},{label:"Contrato",value:(()=>{const b=a.curado?.dataContrato??a.projetosBanco[0]?.dataInicio;return b?new Date(b).toLocaleDateString("pt-BR",{month:"short",year:"2-digit"}):"â"})(),color:jt.gold}].map(b=>p.jsxs("div",{"data-loc":"client/src/pages/MapaCobertura.tsx:417",children:[p.jsx("div",{"data-loc":"client/src/pages/MapaCobertura.tsx:418",className:"text-[16px] font-black",style:{color:b.color,fontFamily:"Nunito, sans-serif"},children:b.value}),p.jsx("div",{"data-loc":"client/src/pages/MapaCobertura.tsx:421",className:"text-[10px]",style:{color:jt.sage},children:b.label})]},b.label))}),p.jsx("button",{"data-loc":"client/src/pages/MapaCobertura.tsx:425",onClick:()=>n(null),className:"text-[11px] font-bold px-3 py-1.5 rounded-lg",style:{color:jt.sage,border:`1px solid ${jt.sand}`},children:"Fechar"})]})})]})}const jL={dados_municipais:"Dados Municipais",politico_eleitoral:"PolÃtico / Eleitoral",midia_local:"MÃdia Local",legislacao:"Legislação",projetos_similares:"Projetos Similares",aprendizado_ia:"Aprendizado da IA"},F5e={api_publica:p.jsx(Kz,{"data-loc":"client/src/pages/Fontes.tsx:25",size:14}),portal_governo:p.jsx(Es,{"data-loc":"client/src/pages/Fontes.tsx:26",size:14}),midia:p.jsx(Es,{"data-loc":"client/src/pages/Fontes.tsx:27",size:14}),base_print:p.jsx(pn,{"data-loc":"client/src/pages/Fontes.tsx:28",size:14}),documento_upload:p.jsx(Ru,{"data-loc":"client/src/pages/Fontes.tsx:29",size:14}),link_externo:p.jsx(Rh,{"data-loc":"client/src/pages/Fontes.tsx:30",size:14})},NL={api_publica:"API Pública",portal_governo:"Portal Gov.",midia:"MÃdia",base_print:"Base PRINT",documento_upload:"Upload",link_externo:"Link Externo"},lx={dados_municipais:"#5B8FA8",politico_eleitoral:"#c0392b",midia_local:"#E67E22",legislacao:"#2D4A2D",projetos_similares:"#8B5CF6",aprendizado_ia:"#C9A84C"};function $5e(){const{fontes:e,adicionarFonte:t,toggleFonte:r,removerFonte:a}=Ps(),[n,i]=L.useState(!1),[o,s]=L.useState("todas"),[c,u]=L.useState("todas"),[h,f]=L.useState({nome:"",url:"",tipo:"link_externo",categoria:"dados_municipais",descricao:""}),m=e.filter(A=>!(o!=="todas"&&A.categoria!==o||c!=="todas"&&A.adicionadaPor!==c)),x=e.filter(A=>A.ativa).length,v=e.filter(A=>A.adicionadaPor==="sistema").length,y=e.filter(A=>A.adicionadaPor==="equipe_print").length,b=()=>{if(!h.nome.trim()){je.error("Informe o nome da fonte");return}t({...h,url:h.url||void 0,ativa:!0,adicionadaPor:"equipe_print"}),f({nome:"",url:"",tipo:"link_externo",categoria:"dados_municipais",descricao:""}),i(!1),je.success("Fonte adicionada à base de conhecimento!")},S=Object.entries(jL).map(([A,E])=>({cat:A,label:E,fontes:m.filter(j=>j.categoria===A)})).filter(A=>A.fontes.length>0);return p.jsxs("div",{"data-loc":"client/src/pages/Fontes.tsx:100",className:"space-y-5",children:[p.jsx("div",{"data-loc":"client/src/pages/Fontes.tsx:103",className:"grid grid-cols-4 gap-4",children:[{label:"Fontes Ativas",value:x,total:e.length,cor:"#2D4A2D",icon:p.jsx(ta,{"data-loc":"client/src/pages/Fontes.tsx:105",size:14})},{label:"Do Sistema",value:v,total:e.length,cor:"#5B8FA8",icon:p.jsx(Kz,{"data-loc":"client/src/pages/Fontes.tsx:106",size:14})},{label:"Equipe PRINT",value:y,total:e.length,cor:"#C9A84C",icon:p.jsx(Op,{"data-loc":"client/src/pages/Fontes.tsx:107",size:14})},{label:"Aprendizado IA",value:"â",total:null,cor:"#7A8C5E",icon:p.jsx(pn,{"data-loc":"client/src/pages/Fontes.tsx:108",size:14}),sub:"Aguardando documentos"}].map((A,E)=>p.jsxs("div",{"data-loc":"client/src/pages/Fontes.tsx:110",className:"rounded-xl p-4",style:{backgroundColor:"#ffffff",border:"1px solid #C9B99A"},children:[p.jsxs("div",{"data-loc":"client/src/pages/Fontes.tsx:115",className:"flex items-center gap-1.5 mb-2",style:{color:A.cor},children:[A.icon,p.jsx("span",{"data-loc":"client/src/pages/Fontes.tsx:117",className:"text-[10px] font-black uppercase tracking-[1.5px]",style:{fontFamily:"Nunito, sans-serif"},children:A.label})]}),p.jsx("div",{"data-loc":"client/src/pages/Fontes.tsx:121",className:"text-2xl font-black",style:{color:A.cor,fontFamily:"Nunito, sans-serif"},children:A.value}),p.jsx("div",{"data-loc":"client/src/pages/Fontes.tsx:124",className:"text-[10px] mt-0.5",style:{color:"#7A8C5E"},children:A.sub??`de ${A.total} cadastradas`})]},A.label))}),p.jsxs("div",{"data-loc":"client/src/pages/Fontes.tsx:132",className:"rounded-xl p-4 flex items-start gap-3",style:{backgroundColor:"#C9A84C10",border:"1px solid #C9A84C30"},children:[p.jsx(Bl,{"data-loc":"client/src/pages/Fontes.tsx:136",size:16,style:{color:"#C9A84C",flexShrink:0,marginTop:1}}),p.jsxs("div",{"data-loc":"client/src/pages/Fontes.tsx:137",children:[p.jsx("div",{"data-loc":"client/src/pages/Fontes.tsx:138",className:"text-[12px] font-black",style:{color:"#7a6020",fontFamily:"Nunito, sans-serif"},children:"Base de Aprendizado aguardando documentos da PRINT"}),p.jsx("div",{"data-loc":"client/src/pages/Fontes.tsx:141",className:"text-[11px] mt-0.5",style:{color:"#7a6020"},children:'Quando você enviar os planos de comunicação e matrizes de stakeholders de projetos anteriores, a IA vai extrair padrões e aprender com eles. Use o botão "Adicionar Fonte" abaixo para fazer upload de documentos.'})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/Fontes.tsx:148",className:"flex items-center gap-3",children:[p.jsx("div",{"data-loc":"client/src/pages/Fontes.tsx:149",className:"flex-1 flex items-center gap-2 flex-wrap",children:["todas","sistema","equipe_print"].map(A=>p.jsx("button",{"data-loc":"client/src/pages/Fontes.tsx:152",onClick:()=>u(A),className:"text-[11px] font-bold px-3 py-1.5 rounded-lg transition-all",style:{backgroundColor:c===A?"#2D4A2D":"#ffffff",color:c===A?"#EDE9DF":"#7A8C5E",border:`1px solid ${c===A?"#2D4A2D":"#C9B99A"}`,fontFamily:"Nunito, sans-serif"},children:A==="todas"?"Todas":A==="sistema"?"Do Sistema":"Equipe PRINT"},A))}),p.jsxs("button",{"data-loc":"client/src/pages/Fontes.tsx:167",onClick:()=>i(!n),className:"flex items-center gap-1.5 text-[12px] font-black px-4 py-2 rounded-lg transition-all",style:{background:"linear-gradient(135deg, #2D4A2D, #4a6e4a)",color:"#EDE9DF",fontFamily:"Nunito, sans-serif",boxShadow:"0 2px 8px rgba(45,74,45,0.25)"},children:[p.jsx(fa,{"data-loc":"client/src/pages/Fontes.tsx:177",size:13})," Adicionar Fonte"]})]}),n&&p.jsxs("div",{"data-loc":"client/src/pages/Fontes.tsx:183",className:"rounded-xl p-5 space-y-4",style:{backgroundColor:"#ffffff",border:"1.5px solid #2D4A2D40"},children:[p.jsx("div",{"data-loc":"client/src/pages/Fontes.tsx:187",className:"text-[13px] font-black",style:{color:"#1E1E1E",fontFamily:"Nunito, sans-serif"},children:"Nova Fonte de Conhecimento"}),p.jsxs("div",{"data-loc":"client/src/pages/Fontes.tsx:190",className:"grid grid-cols-2 gap-3",children:[p.jsxs("div",{"data-loc":"client/src/pages/Fontes.tsx:191",children:[p.jsx("label",{"data-loc":"client/src/pages/Fontes.tsx:192",className:"block text-[10px] font-black uppercase tracking-[1.5px] mb-1.5",style:{color:"#7A8C5E"},children:"Nome *"}),p.jsx("input",{"data-loc":"client/src/pages/Fontes.tsx:193",type:"text",placeholder:"Ex: Portal de NotÃcias Itaperuna",value:h.nome,onChange:A=>f(E=>({...E,nome:A.target.value})),className:"w-full text-[12px] px-3 py-2 rounded-lg outline-none",style:{border:"1.5px solid #C9B99A",fontFamily:"Nunito, sans-serif",color:"#1E1E1E"}})]}),p.jsxs("div",{"data-loc":"client/src/pages/Fontes.tsx:202",children:[p.jsx("label",{"data-loc":"client/src/pages/Fontes.tsx:203",className:"block text-[10px] font-black uppercase tracking-[1.5px] mb-1.5",style:{color:"#7A8C5E"},children:"URL (opcional)"}),p.jsx("input",{"data-loc":"client/src/pages/Fontes.tsx:204",type:"url",placeholder:"https://...",value:h.url,onChange:A=>f(E=>({...E,url:A.target.value})),className:"w-full text-[12px] px-3 py-2 rounded-lg outline-none",style:{border:"1.5px solid #C9B99A",fontFamily:"Nunito, sans-serif",color:"#1E1E1E"}})]}),p.jsxs("div",{"data-loc":"client/src/pages/Fontes.tsx:213",children:[p.jsx("label",{"data-loc":"client/src/pages/Fontes.tsx:214",className:"block text-[10px] font-black uppercase tracking-[1.5px] mb-1.5",style:{color:"#7A8C5E"},children:"Tipo"}),p.jsx("select",{"data-loc":"client/src/pages/Fontes.tsx:215",value:h.tipo,onChange:A=>f(E=>({...E,tipo:A.target.value})),className:"w-full text-[12px] px-3 py-2 rounded-lg outline-none",style:{border:"1.5px solid #C9B99A",fontFamily:"Nunito, sans-serif",color:"#1E1E1E"},children:Object.entries(NL).map(([A,E])=>p.jsx("option",{"data-loc":"client/src/pages/Fontes.tsx:222",value:A,children:E},A))})]}),p.jsxs("div",{"data-loc":"client/src/pages/Fontes.tsx:226",children:[p.jsx("label",{"data-loc":"client/src/pages/Fontes.tsx:227",className:"block text-[10px] font-black uppercase tracking-[1.5px] mb-1.5",style:{color:"#7A8C5E"},children:"Categoria"}),p.jsx("select",{"data-loc":"client/src/pages/Fontes.tsx:228",value:h.categoria,onChange:A=>f(E=>({...E,categoria:A.target.value})),className:"w-full text-[12px] px-3 py-2 rounded-lg outline-none",style:{border:"1.5px solid #C9B99A",fontFamily:"Nunito, sans-serif",color:"#1E1E1E"},children:Object.entries(jL).map(([A,E])=>p.jsx("option",{"data-loc":"client/src/pages/Fontes.tsx:235",value:A,children:E},A))})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/Fontes.tsx:240",children:[p.jsx("label",{"data-loc":"client/src/pages/Fontes.tsx:241",className:"block text-[10px] font-black uppercase tracking-[1.5px] mb-1.5",style:{color:"#7A8C5E"},children:"Descrição"}),p.jsx("input",{"data-loc":"client/src/pages/Fontes.tsx:242",type:"text",placeholder:"O que essa fonte fornece para a IA...",value:h.descricao,onChange:A=>f(E=>({...E,descricao:A.target.value})),className:"w-full text-[12px] px-3 py-2 rounded-lg outline-none",style:{border:"1.5px solid #C9B99A",fontFamily:"Nunito, sans-serif",color:"#1E1E1E"}})]}),p.jsxs("div",{"data-loc":"client/src/pages/Fontes.tsx:251",className:"flex gap-2 justify-end",children:[p.jsx("button",{"data-loc":"client/src/pages/Fontes.tsx:252",onClick:()=>i(!1),className:"text-[12px] font-bold px-4 py-2 rounded-lg",style:{border:"1px solid #C9B99A",color:"#7A8C5E",fontFamily:"Nunito, sans-serif"},children:"Cancelar"}),p.jsx("button",{"data-loc":"client/src/pages/Fontes.tsx:259",onClick:b,className:"text-[12px] font-black px-4 py-2 rounded-lg",style:{background:"linear-gradient(135deg, #2D4A2D, #4a6e4a)",color:"#EDE9DF",fontFamily:"Nunito, sans-serif"},children:"Adicionar Fonte"})]})]}),S.map(A=>p.jsxs("div",{"data-loc":"client/src/pages/Fontes.tsx:276",children:[p.jsxs("div",{"data-loc":"client/src/pages/Fontes.tsx:277",className:"flex items-center gap-2 mb-3",children:[p.jsx("div",{"data-loc":"client/src/pages/Fontes.tsx:278",className:"w-2 h-2 rounded-full",style:{backgroundColor:lx[A.cat]}}),p.jsx("span",{"data-loc":"client/src/pages/Fontes.tsx:282",className:"text-[11px] font-black uppercase tracking-[1.5px]",style:{color:lx[A.cat],fontFamily:"Nunito, sans-serif"},children:A.label}),p.jsxs("span",{"data-loc":"client/src/pages/Fontes.tsx:288",className:"text-[10px]",style:{color:"#C9B99A"},children:[A.fontes.length," fonte",A.fontes.length!==1?"s":""]})]}),p.jsx("div",{"data-loc":"client/src/pages/Fontes.tsx:292",className:"space-y-2",children:A.fontes.map(E=>p.jsxs("div",{"data-loc":"client/src/pages/Fontes.tsx:2
140994",className:"rounded-xl px-4 py-3.5 flex items-center gap-3 transition-all",style:{backgroundColor:"#ffffff",border:`1px solid ${E.ativa?"#C9B99A":"#EDE9DF"}`,opacity:E.ativa?1:.55},children:[p.jsx("div",{"data-loc":"client/src/pages/Fontes.tsx:304",className:"w-8 h-8 rounded-lg flex items-center justify-center flex-shrink-0",style:{backgroundColor:`${lx[E.categoria]}15`,color:lx[E.categoria]},children:F5e[E.tipo]}),p.jsxs("div",{"data-loc":"client/src/pages/Fontes.tsx:315",className:"flex-1 min-w-0",children:[p.jsxs("div",{"data-loc":"client/src/pages/Fontes.tsx:316",className:"flex items-center gap-2",children:[p.jsx("span",{"data-loc":"client/src/pages/Fontes.tsx:317",className:"text-[13px] font-bold",style:{color:"#1E1E1E",fontFamily:"Nunito, sans-serif"},children:E.nome}),p.jsx("span",{"data-loc":"client/src/pages/Fontes.tsx:320",className:"text-[9px] font-black px-1.5 py-0.5 rounded-full",style:{backgroundColor:E.adicionadaPor==="sistema"?"#2D4A2D15":"#C9A84C20",color:E.adicionadaPor==="sistema"?"#2D4A2D":"#7a6020"},children:E.adicionadaPor==="sistema"?"Sistema":"PRINT"}),p.jsx("span",{"data-loc":"client/src/pages/Fontes.tsx:329",className:"text-[9px] font-bold px-1.5 py-0.5 rounded-full",style:{backgroundColor:"#EDE9DF",color:"#7A8C5E"},children:NL[E.tipo]})]}),p.jsx("div",{"data-loc":"client/src/pages/Fontes.tsx:336",className:"text-[11px] mt-0.5",style:{color:"#7A8C5E"},children:E.descricao}),E.ultimaConsulta&&p.jsxs("div",{"data-loc":"client/src/pages/Fontes.tsx:340",className:"flex items-center gap-1 mt-1 text-[10px]",style:{color:"#C9B99A"},children:[p.jsx(iy,{"data-loc":"client/src/pages/Fontes.tsx:341",size:9}),"Ãltima consulta: ",E.ultimaConsulta]})]}),p.jsxs("div",{"data-loc":"client/src/pages/Fontes.tsx:348",className:"flex items-center gap-2 flex-shrink-0",children:[E.url&&p.jsx("a",{"data-loc":"client/src/pages/Fontes.tsx:350",href:E.url,target:"_blank",rel:"noopener noreferrer",className:"w-7 h-7 rounded-lg flex items-center justify-center transition-colors",style:{color:"#7A8C5E"},onMouseEnter:j=>j.currentTarget.style.backgroundColor="#EDE9DF",onMouseLeave:j=>j.currentTarget.style.backgroundColor="transparent",children:p.jsx(Rh,{"data-loc":"client/src/pages/Fontes.tsx:359",size:12})}),p.jsx("button",{"data-loc":"client/src/pages/Fontes.tsx:362",onClick:()=>r(E.id),className:"w-7 h-7 rounded-lg flex items-center justify-center transition-colors",style:{color:E.ativa?"#2D4A2D":"#C9B99A"},title:E.ativa?"Desativar fonte":"Ativar fonte",onMouseEnter:j=>j.currentTarget.style.backgroundColor="#EDE9DF",onMouseLeave:j=>j.currentTarget.style.backgroundColor="transparent",children:E.ativa?p.jsx(dte,{"data-loc":"client/src/pages/Fontes.tsx:370",size:16}):p.jsx(ute,{"data-loc":"client/src/pages/Fontes.tsx:370",size:16})}),E.adicionadaPor==="equipe_print"&&p.jsx("button",{"data-loc":"client/src/pages/Fontes.tsx:373",onClick:()=>{a(E.id),je.success("Fonte removida")},className:"w-7 h-7 rounded-lg flex items-center justify-center transition-colors",style:{color:"#c0392b"},onMouseEnter:j=>j.currentTarget.style.backgroundColor="#c0392b10",onMouseLeave:j=>j.currentTarget.style.backgroundColor="transparent",children:p.jsx(ei,{"data-loc":"client/src/pages/Fontes.tsx:383",size:12})})]})]},E.id))})]},A.cat))]})}const QT=L.createContext({});function ek(e){const t=L.useRef(null);return t.current===null&&(t.current=e()),t.current}const tk=typeof window<"u",oK=tk?L.useLayoutEffect:L.useEffect,db=L.createContext(null);function rk(e,t){e.indexOf(t)===-1&&e.push(t)}function ak(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const Do=(e,t,r)=>r>t?t:r<e?e:r;let nk=()=>{};const _o={},sK=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function lK(e){return typeof e=="object"&&e!==null}const cK=e=>/^0[^.\s]+$/u.test(e);function ik(e){let t;return()=>(t===void 0&&(t=e()),t)}const qn=e=>e,q5e=(e,t)=>r=>t(e(r)),nm=(...e)=>e.reduce(q5e),Ch=(e,t,r)=>{const a=t-e;return a===0?1:(r-e)/a};class ok{constructor(){this.subscriptions=[]}add(t){return rk(this.subscriptions,t),()=>ak(this.subscriptions,t)}notify(t,r,a){const n=this.subscriptions.length;if(n)if(n===1)this.subscriptions[0](t,r,a);else for(let i=0;i<n;i++){const o=this.subscriptions[i];o&&o(t,r,a)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ni=e=>e*1e3,$n=e=>e/1e3;function uK(e,t){return t?e*(1e3/t):0}const dK=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,V5e=1e-7,U5e=12;function H5e(e,t,r,a,n){let i,o,s=0;do o=t+(r-t)/2,i=dK(o,a,n)-e,i>0?r=o:t=o;while(Math.abs(i)>V5e&&++s<U5e);return o}function im(e,t,r,a){if(e===t&&r===a)return qn;const n=i=>H5e(i,0,1,e,r);return i=>i===0||i===1?i:dK(n(i),t,a)}const fK=e=>t=>
vendor: 44,504 bytes, lines 1409-1417
1409t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,pK=e=>t=>1-e(1-t),hK=im(.33,1.53,.69,.99),sk=pK(hK),mK=fK(sk),gK=e=>(e*=2)<1?.5*sk(e):.5*(2-Math.pow(2,-10*(e-1))),lk=e=>1-Math.sin(Math.acos(e)),xK=pK(lk),vK=fK(lk),G5e=im(.42,0,1,1),K5e=im(0,0,.58,1),yK=im(.42,0,.58,1),W5e=e=>Array.isArray(e)&&typeof e[0]!="number",bK=e=>Array.isArray(e)&&typeof e[0]=="number",X5e={linear:qn,easeIn:G5e,easeInOut:yK,easeOut:K5e,circIn:lk,circInOut:vK,circOut:xK,backIn:sk,backInOut:mK,backOut:hK,anticipate:gK},Y5e=e=>typeof e=="string",TL=e=>{if(bK(e)){nk(e.length===4);const[t,r,a,n]=e;return im(t,r,a,n)}else if(Y5e(e))return X5e[e];return e},cx=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Z5e(e,t){let r=new Set,a=new Set,n=!1,i=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function c(h){o.has(h)&&(u.schedule(h),e()),h(s)}const u={schedule:(h,f=!1,m=!1)=>{const v=m&&n?r:a;return f&&o.add(h),v.has(h)||v.add(h),h},cancel:h=>{a.delete(h),o.delete(h)},process:h=>{if(s=h,n){i=!0;return}n=!0,[r,a]=[a,r],r.forEach(c),r.clear(),n=!1,i&&(i=!1,u.process(h))}};return u}const J5e=40;function wK(e,t){let r=!1,a=!0;const n={delta:0,timestamp:0,isProcessing:!1},i=()=>r=!0,o=cx.reduce((E,j)=>(E[j]=Z5e(i),E),{}),{setup:s,read:c,resolveKeyframes:u,preUpdate:h,update:f,preRender:m,render:x,postRender:v}=o,y=()=>{const E=_o.useManualTiming?n.timestamp:performance.now();r=!1,_o.useManualTiming||(n.delta=a?1e3/60:Math.max(Math.min(E-n.timestamp,J5e),1)),n.timestamp=E,n.isProcessing=!0,s.process(n),c.process(n),u.process(n),h.process(n),f.process(n),m.process(n),x.process(n),v.process(n),n.isProcessing=!1,r&&t&&(a=!1,e(y))},b=()=>{r=!0,a=!0,n.isProcessing||e(y)};return{schedule:cx.reduce((E,j)=>{const P=o[j];return E[j]=(C,N=!1,O=!1)=>(r||b(),P.schedule(C,N,O)),E},{}),cancel:E=>{for(let j=0;j<cx.length;j++)o[cx[j]].cancel(E)},state:n,steps:o}}const{schedule:Sr,cancel:As,state:ua,steps:aC}=wK(typeof requestAnimationFrame<"u"?requestAnimationFrame:qn,!0);let Sx;function Q5e(){Sx=void 0}const Va={now:()=>(Sx===void 0&&Va.set(ua.isProcessing||_o.useManualTiming?ua.timestamp:performance.now()),Sx),set:e=>{Sx=e,queueMicrotask(Q5e)}},SK=e=>t=>typeof t=="string"&&t.startsWith(e),ck=SK("--"),e4e=SK("var(--"),uk=e=>e4e(e)?t4e.test(e.split("/*")[0].trim()):!1,t4e=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Fd={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ph={...Fd,transform:e=>Do(0,1,e)},ux={...Fd,default:1},jp=e=>Math.round(e*1e5)/1e5,dk=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function r4e(e){return e==null}const a4e=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,fk=(e,t)=>r=>!!(typeof r=="string"&&a4e.test(r)&&r.startsWith(e)||t&&!r4e(r)&&Object.prototype.hasOwnProperty.call(r,t)),EK=(e,t,r)=>a=>{if(typeof a!="string")return a;const[n,i,o,s]=a.match(dk);return{[e]:parseFloat(n),[t]:parseFloat(i),[r]:parseFloat(o),alpha:s!==void 0?parseFloat(s):1}},n4e=e=>Do(0,255,e),nC={...Fd,transform:e=>Math.round(n4e(e))},Pl={test:fk("rgb","red"),parse:EK("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:a=1})=>"rgba("+nC.transform(e)+", "+nC.transform(t)+", "+nC.transform(r)+", "+jp(Ph.transform(a))+")"};function i4e(e){let t="",r="",a="",n="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),a=e.substring(5,7),n=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),a=e.substring(3,4),n=e.substring(4,5),t+=t,r+=r,a+=a,n+=n),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(a,16),alpha:n?parseInt(n,16)/255:1}}const bj={test:fk("#"),parse:i4e,transform:Pl.transform},om=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),fs=om("deg"),Ti=om("%"),mt=om("px"),o4e=om("vh"),s4e=om("vw"),kL={...Ti,parse:e=>Ti.parse(e)/100,transform:e=>Ti.transform(e*100)},mu={test:fk("hsl","hue"),parse:EK("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:a=1})=>"hsla("+Math.round(e)+", "+Ti.transform(jp(t))+", "+Ti.transform(jp(r))+", "+jp(Ph.transform(a))+")"},zr={test:e=>Pl.test(e)||bj.test(e)||mu.test(e),parse:e=>Pl.test(e)?Pl.parse(e):mu.test(e)?mu.parse(e):bj.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Pl.transform(e):mu.transform(e),getAnimatableNone:e=>{const t=zr.parse(e);return t.alpha=0,zr.transform(t)}},l4e=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function c4e(e){return isNaN(e)&&typeof e=="string"&&(e.match(dk)?.length||0)+(e.match(l4e)?.length||0)>0}const AK="number",CK="color",u4e="var",d4e="var(",DL="${}",f4e=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function jh(e){const t=e.toString(),r=[],a={color:[],number:[],var:[]},n=[];let i=0;const s=t.replace(f4e,c=>(zr.test(c)?(a.color.push(i),n.push(CK),r.push(zr.parse(c))):c.startsWith(d4e)?(a.var.push(i),n.push(u4e),r.push(c)):(a.number.push(i),n.push(AK),r.push(parseFloat(c))),++i,DL)).split(DL);return{values:r,split:s,indexes:a,types:n}}function PK(e){return jh(e).values}function jK(e){const{split:t,types:r}=jh(e),a=t.length;return n=>{let i="";for(let o=0;o<a;o++)if(i+=t[o],n[o]!==void 0){const s=r[o];s===AK?i+=jp(n[o]):s===CK?i+=zr.transform(n[o]):i+=n[o]}return i}}const p4e=e=>typeof e=="number"?0:zr.test(e)?zr.getAnimatableNone(e):e;function h4e(e){const t=PK(e);return jK(e)(t.map(p4e))}const Cs={test:c4e,parse:PK,createTransformer:jK,getAnimatableNone:h4e};function iC(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function m4e({hue:e,saturation:t,lightness:r,alpha:a}){e/=360,t/=100,r/=100;let n=0,i=0,o=0;if(!t)n=i=o=r;else{const s=r<.5?r*(1+t):r+t-r*t,c=2*r-s;n=iC(c,s,e+1/3),i=iC(c,s,e),o=iC(c,s,e-1/3)}return{red:Math.round(n*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:a}}function Kv(e,t){return r=>r>0?t:e}const Ar=(e,t,r)=>e+(t-e)*r,oC=(e,t,r)=>{const a=e*e,n=r*(t*t-a)+a;return n<0?0:Math.sqrt(n)},g4e=[bj,Pl,mu],x4e=e=>g4e.find(t=>t.test(e));function _L(e){const t=x4e(e);if(!t)return!1;let r=t.parse(e);return t===mu&&(r=m4e(r)),r}const RL=(e,t)=>{const r=_L(e),a=_L(t);if(!r||!a)return Kv(e,t);const n={...r};return i=>(n.red=oC(r.red,a.red,i),n.green=oC(r.green,a.green,i),n.blue=oC(r.blue,a.blue,i),n.alpha=Ar(r.alpha,a.alpha,i),Pl.transform(n))},wj=new Set(["none","hidden"]);function v4e(e,t){return wj.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function y4e(e,t){return r=>Ar(e,t,r)}function pk(e){return typeof e=="number"?y4e:typeof e=="string"?uk(e)?Kv:zr.test(e)?RL:S4e:Array.isArray(e)?NK:typeof e=="object"?zr.test(e)?RL:b4e:Kv}function NK(e,t){const r=[...e],a=r.length,n=e.map((i,o)=>pk(i)(i,t[o]));return i=>{for(let o=0;o<a;o++)r[o]=n[o](i);return r}}function b4e(e,t){const r={...e,...t},a={};for(const n in r)e[n]!==void 0&&t[n]!==void 0&&(a[n]=pk(e[n])(e[n],t[n]));return n=>{for(const i in a)r[i]=a[i](n);return r}}function w4e(e,t){const r=[],a={color:0,var:0,number:0};for(let n=0;n<t.values.length;n++){const i=t.types[n],o=e.indexes[i][a[i]],s=e.values[o]??0;r[n]=s,a[i]++}return r}const S4e=(e,t)=>{const r=Cs.createTransformer(t),a=jh(e),n=jh(t);return a.indexes.var.length===n.indexes.var.length&&a.indexes.color.length===n.indexes.color.length&&a.indexes.number.length>=n.indexes.number.length?wj.has(e)&&!n.values.length||wj.has(t)&&!a.values.length?v4e(e,t):nm(NK(w4e(a,n),n.values),r):Kv(e,t)};function TK(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?Ar(e,t,r):pk(e)(e,t)}const E4e=e=>{const t=({timestamp:r})=>e(r);return{start:(r=!0)=>Sr.update(t,r),stop:()=>As(t),now:()=>ua.isProcessing?ua.timestamp:Va.now()}},kK=(e,t,r=10)=>{let a="";const n=Math.max(Math.round(t/r),2);for(let i=0;i<n;i++)a+=Math.round(e(i/(n-1))*1e4)/1e4+", ";return`linear(${a.substring(0,a.length-2)})`},Wv=2e4;function hk(e){let t=0;const r=50;let a=e.next(t);for(;!a.done&&t<Wv;)t+=r,a=e.next(t);return t>=Wv?1/0:t}function A4e(e,t=100,r){const a=r({...e,keyframes:[0,t]}),n=Math.min(hk(a),Wv);return{type:"keyframes",ease:i=>a.next(n*i).value/t,duration:$n(n)}}const C4e=5;function DK(e,t,r){const a=Math.max(t-C4e,0);return uK(r-e(a),t-a)}const Nr={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},sC=.001;function P4e({duration:e=Nr.duration,bounce:t=Nr.bounce,velocity:r=Nr.velocity,mass:a=Nr.mass}){let n,i,o=1-t;o=Do(Nr.minDamping,Nr.maxDamping,o),e=Do(Nr.minDuration,Nr.maxDuration,$n(e)),o<1?(n=u=>{const h=u*o,f=h*e,m=h-r,x=Sj(u,o),v=Math.exp(-f);return sC-m/x*v},i=u=>{const f=u*o*e,m=f*r+r,x=Math.pow(o,2)*Math.pow(u,2)*e,v=Math.exp(-f),y=Sj(Math.pow(u,2),o);return(-n(u)+sC>0?-1:1)*((m-x)*v)/y}):(n=u=>{const h=Math.exp(-u*e),f=(u-r)*e+1;return-sC+h*f},i=u=>{const h=Math.exp(-u*e),f=(r-u)*(e*e);return h*f});const s=5/e,c=N4e(n,i,s);if(e=Ni(e),isNaN(c))return{stiffness:Nr.stiffness,damping:Nr.damping,duration:e};{const u=Math.pow(c,2)*a;return{stiffness:u,damping:o*2*Math.sqrt(a*u),duration:e}}}const j4e=12;function N4e(e,t,r){let a=r;for(let n=1;n<j4e;n++)a=a-e(a)/t(a);return a}function Sj(e,t){return e*Math.sqrt(1-t*t)}const T4e=["duration","bounce"],k4e=["stiffness","damping","mass"];function OL(e,t){return t.some(r=>e[r]!==void 0)}function D4e(e){let t={velocity:Nr.velocity,stiffness:Nr.stiffness,damping:Nr.damping,mass:Nr.mass,isResolvedFromDuration:!1,...e};if(!OL(e,k4e)&&OL(e,T4e))if(e.visualDuration){const r=e.visualDuration,a=2*Math.PI/(r*1.2),n=a*a,i=2*Do(.05,1,1-(e.bounce||0))*Math.sqrt(n);t={...t,mass:Nr.mass,stiffness:n,damping:i}}else{const r=P4e(e);t={...t,...r,mass:Nr.mass},t.isResolvedFromDuration=!0}return t}function Xv(e=Nr.visualDuration,t=Nr.bounce){const r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:a,restDelta:n}=r;const i=r.keyframes[0],o=r.keyframes[r.keyframes.length-1],s={done:!1,value:i},{stiffness:c,damping:u,mass:h,duration:f,velocity:m,isResolvedFromDuration:x}=D4e({...r,velocity:-$n(r.velocity||0)}),v=m||0,y=u/(2*Math.sqrt(c*h)),b=o-i,S=$n(Math.sqrt(c/h)),A=Math.abs(b)<5;a||(a=A?Nr.restSpeed.granular:Nr.restSpeed.default),n||(n=A?Nr.restDelta.granular:Nr.restDelta.default);let E;if(y<1){const P=Sj(S,y);E=C=>{const N=Math.exp(-y*S*C);return o-N*((v+y*S*b)/P*Math.sin(P*C)+b*Math.cos(P*C))}}else if(y===1)E=P=>o-Math.exp(-S*P)*(b+(v+S*b)*P);else{const P=S*Math.sqrt(y*y-1);E=C=>{const N=Math.exp(-y*S*C),O=Math.min(P*C,300);return o-N*((v+y*S*b)*Math.sinh(O)+P*b*Math.cosh(O))/P}}const j={calculatedDuration:x&&f||null,next:P=>{const C=E(P);if(x)s.done=P>=f;else{let N=P===0?v:0;y<1&&(N=P===0?Ni(v):DK(E,P,C));const O=Math.abs(N)<=a,k=Math.abs(o-C)<=n;s.done=O&&k}return s.value=s.done?o:C,s},toString:()=>{const P=Math.min(hk(j),Wv),C=kK(N=>j.next(P*N).value,P,30);return P+"ms "+C},toTransition:()=>{}};return j}Xv.applyToOptions=e=>{const t=A4e(e,100,Xv);return e.ease=t.ease,e.duration=Ni(t.duration),e.type="keyframes",e};function Ej({keyframes:e,velocity:t=0,power:r=.8,timeConstant:a=325,bounceDamping:n=10,bounceStiffness:i=500,modifyTarget:o,min:s,max:c,restDelta:u=.5,restSpeed:h}){const f=e[0],m={done:!1,value:f},x=O=>s!==void 0&&O<s||c!==void 0&&O>c,v=O=>s===void 0?c:c===void 0||Math.abs(s-O)<Math.abs(c-O)?s:c;let y=r*t;const b=f+y,S=o===void 0?b:o(b);S!==b&&(y=S-f);const A=O=>-y*Math.exp(-O/a),E=O=>S+A(O),j=O=>{const k=A(O),B=E(O);m.done=Math.abs(k)<=u,m.value=m.done?S:B};let P,C;const N=O=>{x(m.value)&&(P=O,C=Xv({keyframes:[m.value,v(m.value)],velocity:DK(E,O,m.value),damping:n,stiffness:i,restDelta:u,restSpeed:h}))};return N(0),{calculatedDuration:null,next:O=>{let k=!1;return!C&&P===void 0&&(k=!0,j(O),N(O)),P!==void 0&&O>=P?C.next(O-P):(!k&&j(O),m)}}}function _4e(e,t,r){const a=[],n=r||_o.mix||TK,i=e.length-1;for(let o=0;o<i;o++){let s=n(e[o],e[o+1]);if(t){const c=Array.isArray(t)?t[o]||qn:t;s=nm(c,s)}a.push(s)}return a}function R4e(e,t,{clamp:r=!0,ease:a,mixer:n}={}){const i=e.length;if(nk(i===t.length),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=_4e(t,a,n),c=s.length,u=h=>{if(o&&h<e[0])return t[0];let f=0;if(c>1)for(;f<e.length-2&&!(h<e[f+1]);f++);const m=Ch(e[f],e[f+1],h);return s[f](m)};return r?h=>u(Do(e[0],e[i-1],h)):u}function O4e(e,t){const r=e[e.length-1];for(let a=1;a<=t;a++){const n=Ch(0,t,a);e.push(Ar(r,1,n))}}function M4e(e){const t=[0];return O4e(t,e.length-1),t}function I4e(e,t){return e.map(r=>r*t)}function B4e(e,t){return e.map(()=>t||yK).splice(0,e.length-1)}function Np({duration:e=300,keyframes:t,times:r,ease:a="easeInOut"}){const n=W5e(a)?a.map(TL):TL(a),i={done:!1,value:t[0]},o=I4e(r&&r.length===t.length?r:M4e(t),e),s=R4e(o,t,{ease:Array.isArray(n)?n:B4e(t,n)});return{calculatedDuration:e,next:c=>(i.value=s(c),i.done=c>=e,i)}}const L4e=e=>e!==null;function mk(e,{repeat:t,repeatType:r="loop"},a,n=1){const i=e.filter(L4e),s=n<0||t&&r!=="loop"&&t%2===1?0:i.length-1;return!s||a===void 0?i[s]:a}const z4e={decay:Ej,inertia:Ej,tween:Np,keyframes:Np,spring:Xv};function _K(e){typeof e.type=="string"&&(e.type=z4e[e.type])}class gk{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,r){return this.finished.then(t,r)}}const F4e=e=>e/100;class xk extends gk{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:r}=this.options;r&&r.updatedAt!==Va.now()&&this.tick(Va.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;_K(t);const{type:r=Np,repeat:a=0,repeatDelay:n=0,repeatType:i,velocity:o=0}=t;let{keyframes:s}=t;const c=r||Np;c!==Np&&typeof s[0]!="number"&&(this.mixKeyframes=nm(F4e,TK(s[0],s[1])),s=[0,100]);const u=c({...t,keyframes:s});i==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...s].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=hk(u));const{calculatedDuration:h}=u;this.calculatedDuration=h,this.resolvedDuration=h+n,this.totalDuration=this.resolvedDuration*(a+1)-n,this.generator=u}updateTime(t){const r=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(t,r=!1){const{generator:a,totalDuration:n,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:s,calculatedDuration:c}=this;if(this.startTime===null)return a.next(0);const{delay:u=0,keyframes:h,repeat:f,repeatType:m,repeatDelay:x,type:v,onUpdate:y,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),r?this.currentTime=t:this.updateTime(t);const S=this.currentTime-u*(this.playbackSpeed>=0?1:-1),A=this.playbackSpeed>=0?S<0:S>n;this.currentTime=Math.max(S,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=n);let E=this.currentTime,j=a;if(f){const O=Math.min(this.currentTime,n)/s;let k=Math.floor(O),B=O%1;!B&&O>=1&&(B=1),B===1&&k--,k=Math.min(k,f+1),!!(k%2)&&(m==="reverse"?(B=1-B,x&&(B-=x/s)):m==="mirror"&&(j=o)),E=Do(0,1,B)*s}const P=A?{done:!1,value:h[0]}:j.next(E);i&&(P.value=i(P.value));let{done:C}=P;!A&&c!==null&&(C=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);const N=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return N&&v!==Ej&&(P.value=mk(h,this.options,b,this.speed)),y&&y(P.value),N&&this.finish(),P}then(t,r){return this.finished.then(t,r)}get duration(){return $n(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+$n(t)}get time(){return $n(this.currentTime)}set time(t){t=Ni(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Va.now());const r=this.playbackSpeed!==t;this.playbackSpeed=t,r&&(this.time=$n(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=E4e,startTime:r}=this.options;this.driver||(this.driver=t(n=>this.tick(n))),this.options.onPlay?.();const a=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=a):this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime||(this.startTime=r??a),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Va.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function $4e(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const jl=e=>e*180/Math.PI,Aj=e=>{const t=jl(Math.atan2(e[1],e[0]));return Cj(t)},q4e={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Aj,rotateZ:Aj,skewX:e=>jl(Math.atan(e[1])),skewY:e=>jl(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Cj=e=>(e=e%360,e<0&&(e+=360),e),ML=Aj,IL=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),BL=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),V4e={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:IL,scaleY:BL,scale:e=>(IL(e)+BL(e))/2,rotateX:e=>Cj(jl(Math.atan2(e[6],e[5]))),rotateY:e=>Cj(jl(Math.atan2(-e[2],e[0]))),rotateZ:ML,rotate:ML,skewX:e=>jl(Math.atan(e[4])),skewY:e=>jl(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Pj(e){return e.includes("scale")?1:0}function jj(e,t){if(!e||e==="none")return Pj(t);const r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let a,n;if(r)a=V4e,n=r;else{const s=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);a=q4e,n=s}if(!n)return Pj(t);const i=a[t],o=n[1].split(",").map(H4e);return typeof i=="function"?i(o):o[i]}const U4e=(e,t)=>{const{transform:r="none"}=getComputedStyle(e);return jj(r,t)};function H4e(e){return parseFloat(e.trim())}const $d=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],qd=new Set($d),LL=e=>e===Fd||e===mt,G4e=new Set(["x","y","z"]),K4e=$d.filter(e=>!G4e.has(e));function W4e(e){const t=[];return K4e.forEach(r=>{const a=e.getValue(r);a!==void 0&&(t.push([r,a.get()]),a.set(r.startsWith("scale")?1:0))}),t}const Ol={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>jj(t,"x"),y:(e,{transform:t})=>jj(t,"y")};Ol.translateX=Ol.x;Ol.translateY=Ol.y;const Ml=new Set;let Nj=!1,Tj=!1,kj=!1;function RK(){if(Tj){const e=Array.from(Ml).filter(a=>a.needsMeasurement),t=new Set(e.map(a=>a.element)),r=new Map;t.forEach(a=>{const n=W4e(a);n.length&&(r.set(a,n),a.render())}),e.forEach(a=>a.measureInitialState()),t.forEach(a=>{a.render();const n=r.get(a);n&&n.forEach(([i,o])=>{a.getValue(i)?.set(o)})}),e.forEach(a=>a.measureEndState()),e.forEach(a=>{a.suspendedScrollY!==void 0&&window.scrollTo(0,a.suspendedScrollY)})}Tj=!1,Nj=!1,Ml.forEach(e=>e.complete(kj)),Ml.clear()}function OK(){Ml.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Tj=!0)})}function X4e(){kj=!0,OK(),RK(),kj=!1}class vk{constructor(t,r,a,n,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=a,this.motionValue=n,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Ml.add(this),Nj||(Nj=!0,Sr.read(OK),Sr.resolveKeyframes(RK))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:r,element:a,motionValue:n}=this;if(t[0]===null){const i=n?.get(),o=t[t.length-1];if(i!==void 0)t[0]=i;else if(a&&r){const s=a.readValue(r,o);s!=null&&(t[0]=s)}t[0]===void 0&&(t[0]=o),n&&i===void 0&&n.set(t[0])}$4e(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ml.delete(this)}cancel(){this.state==="scheduled"&&(Ml.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Y4e=e=>e.startsWith("--");function Z4e(e,t,r){Y4e(t)?e.style.setProperty(t,r):e.style[t]=r}const J4e=ik(()=>window.ScrollTimeline!==void 0),Q4e={};function e3e(e,t){const r=ik(e);return()=>Q4e[t]??r()}const MK=e3e(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),cp=([e,t,r,a])=>`cubic-bezier(${e}, ${t}, ${r}, ${a})`,zL={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:cp([0,.65,.55,1]),circOut:cp([.55,0,1,.45]),backIn:cp([.31,.01,.66,-.59]),backOut:cp([.33,1.53,.69,.99])};function IK(e,t){if(e)return typeof e=="function"?MK()?kK(e,t):"ease-out":bK(e)?cp(e):Array.isArray(e)?e.map(r=>IK(r,t)||zL.easeOut):zL[e]}function t3e(e,t,r,{delay:a=0,duration:n=300,repeat:i=0,repeatType:o="loop",ease:s="easeOut",times:c}={},u=void 0){const h={[t]:r};c&&(h.offset=c);const f=IK(s,n);Array.isArray(f)&&(h.easing=f);const m={delay:a,duration:n,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"};return u&&(m.pseudoElement=u),e.animate(h,m)}function BK(e){return typeof e=="function"&&"applyToOptions"in e}function r3e({type:e,...t}){return BK(e)&&MK()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class a3e extends gk{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:r,name:a,keyframes:n,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:s,onComplete:c}=t;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=t,nk(typeof t.type!="string");const u=r3e(t);this.animation=t3e(r,a,n,u,i),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const h=mk(n,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(h):Z4e(r,a,h),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return $n(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+$n(t)}get time(){return $n(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Ni(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&J4e()?(this.animation.timeline=t,qn):r(this)}}const LK={anticipate:gK,backInOut:mK,circInOut:vK};function n3e(e){return e in LK}function i3e(e){typeof e.ease=="string"&&n3e(e.ease)&&(e.ease=LK[e.ease])}const FL=10;class o3e extends a3e{constructor(t){i3e(t),_K(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:r,onUpdate:a,onComplete:n,element:i,...o}=this.options;if(!r)return;if(t!==void 0){r.set(t);return}const s=new xk({...o,autoplay:!1}),c=Ni(this.finishedTime??this.time);r.setWithVelocity(s.sample(c-FL).value,s.sample(c).value,FL),s.stop()}}const $L=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Cs.test(e)||e==="0")&&!e.startsWith("url("));function s3e(e){const t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function l3e(e,t,r,a){const n=e[0];if(n===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],o=$L(n,t),s=$L(i,t);return!o||!s?!1:s3e(e)||(r==="spring"||BK(r))&&a}function Dj(e){e.duration=0,e.type="keyframes"}const c3e=new Set(["opacity","clipPath","filter","transform"]),u3e=ik(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function d3e(e){const{motionValue:t,name:r,repeatDelay:a,repeatType:n,damping:i,type:o}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=t.owner.getProps();return u3e()&&r&&c3e.has(r)&&(r!=="transform"||!u)&&!c&&!a&&n!=="mirror"&&i!==0&&o!=="inertia"}const f3e=40;class p3e extends gk{constructor({autoplay:t=!0,delay:r=0,type:a="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:o="loop",keyframes:s,name:c,motionValue:u,element:h,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Va.now();const m={autoplay:t,delay:r,type:a,repeat:n,repeatDelay:i,repeatType:o,name:c,motionValue:u,element:h,...f},x=h?.KeyframeResolver||vk;this.keyframeResolver=new x(s,(v,y,b)=>this.onKeyframesResolved(v,y,m,!b),c,u,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,r,a,n){this.keyframeResolver=void 0;const{name:i,type:o,velocity:s,delay:c,isHandoff:u,onUpdate:h}=a;this.resolvedAt=Va.now(),l3e(t,i,o,s)||((_o.instantAnimations||!c)&&h?.(mk(t,a,r)),t[0]=t[t.length-1],Dj(a),a.repeat=0);const m={startTime:n?this.resolvedAt?this.resolvedAt-this.createdAt>f3e?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...a,keyframes:t},x=!u&&d3e(m)?new o3e({...m,element:m.motionValue.owner.current}):new xk(m);x.finished.then(()=>this.notifyFinished()).catch(qn),this.pendingTimeline&&(this.stopTimeline=x.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=x}get finished(){return this._animation?this.animation.finished:this._finished}then(t,r){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),X4e()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const h3e=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function m3e(e){const t=h3e.exec(e);if(!t)return[,];const[,r,a,n]=t;return[`--${r??a}`,n]}function zK(e,t,r=1){const[a,n]=m3e(e);if(!a)return;const i=window.getComputedStyle(t).getPropertyValue(a);if(i){const o=i.trim();return sK(o)?parseFloat(o):o}return uk(n)?zK(n,t,r+1):n}function yk(e,t){return e?.[t]??e?.default??e}const FK=new Set(["width","height","top","left","right","bottom",...$d]),g3e={test:e=>e==="auto",parse:e=>e},$K=e=>t=>t.test(e),qK=[Fd,mt,Ti,fs,s4e,o4e,g3e],qL=e=>qK.find($K(e));function x3e(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||cK(e):!0}const v3e=new Set(["brightness","contrast","saturate","opacity"]);function y3e(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[a]=r.match(dk)||[];if(!a)return e;const n=r.replace(a,"");let i=v3e.has(t)?1:0;return a!==r&&(i*=100),t+"("+i+n+")"}const b3e=/\b([a-z-]*)\(.*?\)/gu,_j={...Cs,getAnimatableNone:e=>{const t=e.match(b3e);return t?t.map(y3e).join(" "):e}},VL={...Fd,transform:Math.round},w3e={rotate:fs,rotateX:fs,rotateY:fs,rotateZ:fs,scale:ux,scaleX:ux,scaleY:ux,scaleZ:ux,skew:fs,skewX:fs,skewY:fs,distance:mt,translateX:mt,translateY:mt,translateZ:mt,x:mt,y:mt,z:mt,perspective:mt,transformPerspective:mt,opacity:Ph,originX:kL,originY:kL,originZ:mt},bk={borderWidth:mt,borderTopWidth:mt,borderRightWidth:mt,borderBottomWidth:mt,borderLeftWidth:mt,borderRadius:mt,radius:mt,borderTopLeftRadius:mt,borderTopRightRadius:mt,borderBottomRightRadius:mt,borderBottomLeftRadius:mt,width:mt,maxWidth:mt,height:mt,maxHeight:mt,top:mt,right:mt,bottom:mt,left:mt,padding:mt,paddingTop:mt,paddingRight:mt,paddingBottom:mt,paddingLeft:mt,margin:mt,marginTop:mt,marginRight:mt,marginBottom:mt,marginLeft:mt,backgroundPositionX:mt,backgroundPositionY:mt,...w3e,zIndex:VL,fillOpacity:Ph,strokeOpacity:Ph,numOctaves:VL},S3e={...bk,color:zr,backgroundColor:zr,outlineColor:zr,fill:zr,stroke:zr,borderColor:zr,borderTopColor:zr,borderRightColor:zr,borderBottomColor:zr,borderLeftColor:zr,filter:_j,WebkitFilter:_j},VK=e=>S3e[e];function UK(e,t){let r=VK(e);return r!==_j&&(r=Cs),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const E3e=new Set(["auto","none","0"]);function A3e(e,t,r){let a=0,n;for(;a<e.length&&!n;){const i=e[a];typeof i=="string"&&!E3e.has(i)&&jh(i).values.length&&(n=e[a]),a++}if(n&&r)for(const i of t)e[i]=UK(r,n)}class C3e extends vk{constructor(t,r,a,n,i){super(t,r,a,n,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:r,name:a}=this;if(!r||!r.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let u=t[c];if(typeof u=="string"&&(u=u.trim(),uk(u))){const h=zK(u,r.current);h!==void 0&&(t[c]=h),c===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!FK.has(a)||t.length!==2)return;const[n,i]=t,o=qL(n),s=qL(i);if(o!==s)if(LL(o)&&LL(s))for(let c=0;c<t.length;c++){const u=t[c];typeof u=="string"&&(t[c]=parseFloat(u))}else Ol[a]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:r}=this,a=[];for(let n=0;n<t.length;n++)(t[n]===null||x3e(t[n]))&&a.push(n);a.length&&A3e(t,a,r)}measureInitialState(){const{element:t,unresolvedKeyframes:r,name:a}=this;if(!t||!t.current)return;a==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ol[a](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;const n=r[r.length-1];n!==void 0&&t.getValue(a,n).jump(n,!1)}measureEndState(){const{element:t,name:r,unresolvedKeyframes:a}=this;if(!t||!t.current)return;const n=t.getValue(r);n&&n.jump(this.measuredOrigin,!1);const i=a.length-1,o=a[i];a[i]=Ol[r](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEach(([s,c])=>{t.getValue(s).set(c)}),this.resolveNoneKeyframes()}}function P3e(e,t,r){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let a=document;const n=r?.[e]??a.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e)}const HK=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function GK(e){return lK(e)&&"offsetHeight"in e}const UL=30,j3e=e=>!isNaN(parseFloat(e));class N3e{constructor(t,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=a=>{const n=Va.now();if(this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=Va.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=j3e(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new ok);const a=this.events[t].add(r);return t==="change"?()=>{a(),Sr.read(()=>{this.events.change.getSize()||this.stop()})}:a}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,r,a){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-a}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Va.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>UL)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,UL);return uK(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function md(e,t){return new N3e(e,t)}const{schedule:wk}=wK(queueMicrotask,!1),Yn={x:!1,y:!1};function KK(){return Yn.x||Yn.y}function T3e(e){return e==="x"||e==="y"?Yn[e]?null:(Yn[e]=!0,()=>{Yn[e]=!1}):Yn.x||Yn.y?null:(Yn.x=Yn.y=!0,()=>{Yn.x=Yn.y=!1})}function WK(e,t){const r=P3e(e),a=new AbortController,n={passive:!0,...t,signal:a.signal};return[r,n,()=>a.abort()]}function HL(e){return!(e.pointerType==="touch"||KK())}function k3e(e,t,r={}){const[a,n,i]=WK(e,r),o=s=>{if(!HL(s))return;const{target:c}=s,u=t(c,s);if(typeof u!="function"||!c)return;const h=f=>{HL(f)&&(u(f),c.removeEventListener("pointerleave",h))};c.addEventListener("pointerleave",h,n)};return a.forEach(s=>{s.addEventListener("pointerenter",o,n)}),i}const XK=(e,t)=>t?e===t?!0:XK(e,t.parentElement):!1,Sk=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,D3e=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function _3e(e){return D3e.has(e.tagName)||e.tabIndex!==-1}const Ex=new WeakSet;function GL(e){return t=>{t.key==="Enter"&&e(t)}}function lC(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const R3e=(e,t)=>{const r=e.currentTarget;if(!r)return;const a=GL(()=>{if(Ex.has(r))return;lC(r,"down");const n=GL(()=>{lC(r,"up")}),i=()=>lC(r,"cancel");r.addEventListener("keyup",n,t),r.addEventListener("blur",i,t)});r.addEventListener("keydown",a,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",a),t)};function KL(e){return Sk(e)&&!KK()}function O3e(e,t,r={}){const[a,n,i]=WK(e,r),o=s=>{const c=s.currentTarget;if(!KL(s))return;Ex.add(c);const u=t(c,s),h=(x,v)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",m),Ex.has(c)&&Ex.delete(c),KL(x)&&typeof u=="function"&&u(x,{success:v})},f=x=>{h(x,c===window||c===document||r.useGlobalTarget||XK(c,x.target))},m=x=>{h(x,!1)};window.addEventListener("pointerup",f,n),window.addEventListener("pointercancel",m,n)};return a.forEach(s=>{(r.useGlobalTarget?window:s).addEventListener("pointerdown",o,n),GK(s)&&(s.addEventListener("focus",u=>R3e(u,n)),!_3e(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),i}function YK(e){return lK(e)&&"ownerSVGElement"in e}function M3e(e){return YK(e)&&e.tagName==="svg"}const wa=e=>!!(e&&e.getVelocity),I3e=[...qK,zr,Cs],B3e=e=>I3e.find($K(e)),Ek=L.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function WL(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function L3e(...e){return t=>{let r=!1;const a=e.map(n=>{const i=WL(n,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let n=0;n<a.length;n++){const i=a[n];typeof i=="function"?i():WL(e[n],null)}}}}function z3e(...e){return L.useCallback(L3e(...e),e)}class F3e extends L.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const a=r.offsetParent,n=GK(a)&&a.offsetWidth||0,i=this.props.sizeRef.current;i.height=r.offsetHeight||0,i.width=r.offsetWidth||0,i.top=r.offsetTop,i.left=r.offsetLeft,i.right=n-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function $3e({children:e,isPresent:t,anchorX:r,root:a}){const n=L.useId(),i=L.useRef(null),o=L.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:s}=L.useContext(Ek),c=z3e(i,e?.ref);return L.useInsertionEffect(()=>{const{width:u,height:h,top:f,left:m,right:x}=o.current;if(t||!i.current||!u||!h)return;const v=r==="left"?`left: ${m}`:`right: ${x}`;i.current.dataset.motionPopId=n;const y=document.createElement("style");s&&(y.nonce=s);const b=a??document.head;return b.appendChild(y),y.sheet&&y.sheet.insertRule(` 1410 [data-motion-pop-id="${n}"] { 1411 position: absolute !important; 1412 width: ${u}px !important; 1413 height: ${h}px !important; 1414 ${v}px !important; 1415 top: ${f}px !important; 1416 } 1417 `),()=>{b.contains(y)&&b.removeChild(y)}},[t]),p.jsx(F3e,{isPresent:t,childRef:i,sizeRef:o,children:L.cloneElement(e,{ref:c})})}const q3e=({children:e,initial:t,isPresent:r,onExitComplete:a,custom:n,presenceAffectsLayout:i,mode:o,anchorX:s,root:c})=>{const u=ek(V3e),h=L.useId();let f=!0,m=L.useMemo(()=>(f=!1,{id:h,initial:t,isPresent:r,custom:n,onExitComplete:x=>{u.set(x,!0);for(const v of u.values())if(!v)return;a&&a()},register:x=>(u.set(x,!1),()=>u.delete(x))}),[r,u,a]);return i&&f&&(m={...m}),L.useMemo(()=>{u.forEach((x,v)=>u.set(v,!1))},[r]),L.useEffect(()=>{!r&&!u.size&&a&&a()},[r]),o==="popLayout"&&(e=p.jsx($3e,{isPresent:r,anchorX:s,root:c,children:e})),p.jsx(db.Provider,{value:m,children:e})};function V3e(){return new Map}function ZK(e=!0){const t=L.useContext(db);if(t===null)return[!0,null];const{isPresent:r,onExitComplete:a,register:n}=t,i=L.useId();L.useEffect(()=>{if(e)return n(i)},[e]);const o=L.useCallback(()=>e&&a&&a(i),[i,a,e]);return!r&&a?[!1,o]:[!0]}const dx=e=>e.key||"";function XL(e){const t=[];return L.Children.forEach(e,r=>{L.isValidElement(r)&&t.push(r)}),t}const U3e=({children:e,custom:t,initial:r=!0,onExitComplete:a,presenceAffectsLayout:n=!0,mode:i="sync",propagate:o=!1,anchorX:s="left",root:c})=>{const[u,h]=ZK(o),f=L.useMemo(()=>XL(e),[e]),m=o&&!u?[]:f.map(dx),x=L.useRef(!0),v=L.useRef(f),y=ek(()=>new Map),[b,S]=L.useState(f),[A,E]=L.useState(f);oK(()=>{x.current=!1,v.current=f;for(let C=0;C<A.length;C++){const N=dx(A[C]);m.includes(N)?y.delete(N):y.get(N)!==!0&&y.set(N,!1)}},[A,m.length,m.join("-")]);const j=[];if(f!==b){let C=[...f];for(let N=0;N<A.length;N++){const O=A[N],k=dx(O);m.includes(k)||(C.splice(N,0,O),j.push(O))}return i==="wait"&&j.length&&(C=j),E(XL(C)),S(f),null}const{forceRender:P}=L.useContext(QT);return p.jsx(p.Fragment,{children:A.map(C=>{const N=dx(C),O=o&&!u?!1:f===A||m.includes(N),k=()=>{if(y.has(N))y.set(N,!0);else return;let B=!0;y.forEach($=>{$||(B=!1)}),B&&(P?.(),E(v.current),o&&h?.(),a&&a())};return p.jsx(q3e,{isPresent:O,initial:!x.current||r?void 0:!1,custom:t,presenceAffectsLayout:n,mode:i,root:c,onExitComplete:O?void 0:k,anchorX:s,children:C},N)})})},JK=L.createContext({strict:!1}),YL={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},gd={};for(const e in YL)gd[e]={isEnabled:t=>YL[e].some(r=>!!t[r])};function H3e(e){for(const t in e)gd[t]={...gd[t],...e[t]}}const G3e=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Yv(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||G3e.has(e)}let QK=e=>!Yv(e);function K3e(e){typeof e=="function"&&(QK=t=>t.startsWith("on")?!Yv(t):e(t))}try{K3e(require("@emotion/is-prop-valid").default)}catch{}function W3e(e,t,r){const a={};for(const n in e)n==="values"&&typeof e.values=="object"||(QK(n)||r===!0&&Yv(n)||!t&&!Yv(n)||e.draggable&&n.startsWith("onDrag"))&&(a[n]=e[n]);return a}const fb=L.createContext({});function pb(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Nh(e){return typeof e=="string"||Array.isArray(e)}const Ak=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ck=["initial",...Ak];function hb(e){return pb(e.animate)||Ck.some(t=>Nh(e[t]))}function eW(e){return!!(hb(e)||e.variants)}function X3e(e,t){if(hb(e)){const{initial:r,animate:a}=e;return{initial:r===!1||Nh(r)?r:void 0,animate:Nh(a)?a:void 0}}return e.inherit!==!1?t:{}}function Y3e(e){const{initial:t,animate:r}=X3e(e,L.useContext(fb));return L.useMemo(()=>({initial:t,animate:r}),[ZL(t),ZL(r)])}function ZL(e){return Array.isArray(e)?e.join(" "):e}const Th={};function Z3e(e){for(const t in e)Th[t]=e[t],ck(t)&&(Th[t].isCSSVariable=!0)}function tW(e,{layout:t,layoutId:r}){return qd.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Th[e]||e==="opacity")}const J3e={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Q3e=$d.length;function eRe(e,t,r){let a="",n=!0;for(let i=0;i<Q3e;i++){const o=$d[i],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s=="number"?c=s===(o.startsWith("scale")?1:0):c=parseFloat(s)===0,!c||r){const u=HK(s,bk[o]);if(!c){n=!1;const h=J3e[o]||o;a+=`${h}(${u}) `}r&&(t[o]=u)}}return a=a.trim(),r?a=r(t,n?"":a):n&&(a="none"),a}function Pk(e,t,r){const{style:a,vars:n,transformOrigin:i}=e;let o=!1,s=!1;for(const c in t){const u=t[c];if(qd.has(c)){o=!0;continue}else if(ck(c)){n[c]=u;continue}else{const h=HK(u,bk[c]);c.startsWith("origin")?(s=!0,i[c]=h):a[c]=h}}if(t.transform||(o||r?a.transform=eRe(t,e.transform,r):a.transform&&(a.transform="none")),s){const{originX:c="50%",originY:u="50%",originZ:h=0}=i;a.transformOrigin=`${c} ${u} ${h}`}}const jk=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function rW(e,t,r){for(const a in t)!wa(t[a])&&!tW(a,r)&&(e[a]=t[a])}function tRe({transformTemplate:e},t){return L.useMemo(()=>{const r=jk();return Pk(r,t,e),Object.assign({},r.vars,r.style)}
vendor: 4,451 bytes, line 1417
1417,[t])}function rRe(e,t){const r=e.style||{},a={};return rW(a,r,e),Object.assign(a,tRe(e,t)),a}function aRe(e,t){const r={},a=rRe(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=a,r}const nRe={offset:"stroke-dashoffset",array:"stroke-dasharray"},iRe={offset:"strokeDashoffset",array:"strokeDasharray"};function oRe(e,t,r=1,a=0,n=!0){e.pathLength=1;const i=n?nRe:iRe;e[i.offset]=mt.transform(-a);const o=mt.transform(t),s=mt.transform(r);e[i.array]=`${o} ${s}`}function aW(e,{attrX:t,attrY:r,attrScale:a,pathLength:n,pathSpacing:i=1,pathOffset:o=0,...s},c,u,h){if(Pk(e,s,u),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:m}=e;f.transform&&(m.transform=f.transform,delete f.transform),(m.transform||f.transformOrigin)&&(m.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),m.transform&&(m.transformBox=h?.transformBox??"fill-box",delete f.transformBox),t!==void 0&&(f.x=t),r!==void 0&&(f.y=r),a!==void 0&&(f.scale=a),n!==void 0&&oRe(f,n,i,o,!1)}const nW=()=>({...jk(),attrs:{}}),iW=e=>typeof e=="string"&&e.toLowerCase()==="svg";function sRe(e,t,r,a){const n=L.useMemo(()=>{const i=nW();return aW(i,t,iW(a),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};rW(i,e.style,e),n.style={...i,...n.style}}return n}const lRe=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Nk(e){return typeof e!="string"||e.includes("-")?!1:!!(lRe.indexOf(e)>-1||/[A-Z]/u.test(e))}function cRe(e,t,r,{latestValues:a},n,i=!1){const s=(Nk(e)?sRe:aRe)(t,a,n,e),c=W3e(t,typeof e=="string",i),u=e!==L.Fragment?{...c,...s,ref:r}:{},{children:h}=t,f=L.useMemo(()=>wa(h)?h.get():h,[h]);return L.createElement(e,{...u,children:f})}function JL(e){const t=[{},{}];return e?.values.forEach((r,a)=>{t[0][a]=r.get(),t[1][a]=r.getVelocity()}),t}function Tk(e,t,r,a){if(typeof t=="function"){const[n,i]=JL(a);t=t(r!==void 0?r:e.custom,n,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[n,i]=JL(a);t=t(r!==void 0?r:e.custom,n,i)}return t}function Ax(e){return wa(e)?e.get():e}function uRe({scrapeMotionValuesFromProps:e,createRenderState:t},r,a,n){return{latestValues:dRe(r,a,n,e),renderState:t()}}function dRe(e,t,r,a){const n={},i=a(e,{});for(const m in i)n[m]=Ax(i[m]);let{initial:o,animate:s}=e;const c=hb(e),u=eW(e);t&&u&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let h=r?r.initial===!1:!1;h=h||o===!1;const f=h?s:o;if(f&&typeof f!="boolean"&&!pb(f)){const m=Array.isArray(f)?f:[f];for(let x=0;x<m.length;x++){const v=Tk(e,m[x]);if(v){const{transitionEnd:y,transition:b,...S}=v;for(const A in S){let E=S[A];if(Array.isArray(E)){const j=h?E.length-1:0;E=E[j]}E!==null&&(n[A]=E)}for(const A in y)n[A]=y[A]}}}return n}const oW=e=>(t,r)=>{const a=L.useContext(fb),n=L.useContext(db),i=()=>uRe(e,t,a,n);return r?i():ek(i)};function kk(e,t,r){const{style:a}=e,n={};for(const i in a)(wa(a[i])||t.style&&wa(t.style[i])||tW(i,e)||r?.getValue(i)?.liveStyle!==void 0)&&(n[i]=a[i]);return n}const fRe=oW({scrapeMotionValuesFromProps:kk,createRenderState:jk});function sW(e,t,r){const a=kk(e,t,r);for(const n in e)if(wa(e[n])||wa(t[n])){const i=$d.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;a[i]=e[n]}return a}const pRe=oW({scrapeMotionValuesFromProps:sW,createRenderState:nW}),hRe=Symbol.for("motionComponentSymbol");function gu(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function mRe(e,t,r){return L.useCallback(a=>{a&&e.onMount&&e.onMount(a),t&&(a?t.mount(a):t.unmount()),r&&(typeof r=="function"?r(a):gu(r)&&(r.current=a))},[t])}const Dk=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),gRe="framerAppearId",lW="data-"+Dk(gRe),cW=L.createContext({});function xRe(e,t,r,a,n){const{visualElement:i}=L.useContext(fb),o=L.useContext(JK),s=L.useContext(db),c=L.useContext(Ek).reducedMotion,u=L.useRef(null);a=a||o.renderer,!u.current&&a&&(u.current=a(e,{visualState:t,parent:i,props:r,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:c}
vendor: 33,495 bytes, line 1417
1417));const h=u.current,f=L.useContext(cW);h&&!h.projection&&n&&(h.type==="html"||h.type==="svg")&&vRe(u.current,r,n,f);const m=L.useRef(!1);L.useInsertionEffect(()=>{h&&m.current&&h.update(r,s)});const x=r[lW],v=L.useRef(!!x&&!window.MotionHandoffIsComplete?.(x)&&window.MotionHasOptimisedAnimation?.(x));return oK(()=>{h&&(m.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),v.current&&h.animationState&&h.animationState.animateChanges())}),L.useEffect(()=>{h&&(!v.current&&h.animationState&&h.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(x)}),v.current=!1),h.enteringChildren=void 0)}),h}function vRe(e,t,r,a){const{layoutId:n,layout:i,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:u,layoutCrossfade:h}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:uW(e.parent)),e.projection.setOptions({layoutId:n,layout:i,alwaysMeasureLayout:!!o||s&&gu(s),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:a,crossfade:h,layoutScroll:c,layoutRoot:u})}function uW(e){if(e)return e.options.allowProjection!==!1?e.projection:uW(e.parent)}function cC(e,{forwardMotionProps:t=!1}={},r,a){r&&H3e(r);const n=Nk(e)?pRe:fRe;function i(s,c){let u;const h={...L.useContext(Ek),...s,layoutId:yRe(s)},{isStatic:f}=h,m=Y3e(s),x=n(s,f);if(!f&&tk){bRe();const v=wRe(h);u=v.MeasureLayout,m.visualElement=xRe(e,x,h,a,v.ProjectionNode)}return p.jsxs(fb.Provider,{value:m,children:[u&&m.visualElement?p.jsx(u,{visualElement:m.visualElement,...h}):null,cRe(e,s,mRe(x,m.visualElement,c),x,f,t)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const o=L.forwardRef(i);return o[hRe]=e,o}function yRe({layoutId:e}){const t=L.useContext(QT).id;return t&&e!==void 0?t+"-"+e:e}function bRe(e,t){L.useContext(JK).strict}function wRe(e){const{drag:t,layout:r}=gd;if(!t&&!r)return{};const a={...t,...r};return{MeasureLayout:t?.isEnabled(e)||r?.isEnabled(e)?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}function SRe(e,t){if(typeof Proxy>"u")return cC;const r=new Map,a=(i,o)=>cC(i,o,e,t),n=(i,o)=>a(i,o);return new Proxy(n,{get:(i,o)=>o==="create"?a:(r.has(o)||r.set(o,cC(o,void 0,e,t)),r.get(o))})}function dW({top:e,left:t,right:r,bottom:a}){return{x:{min:t,max:r},y:{min:e,max:a}}}function ERe({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function ARe(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),a=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:a.y,right:a.x}}function uC(e){return e===void 0||e===1}function Rj({scale:e,scaleX:t,scaleY:r}){return!uC(e)||!uC(t)||!uC(r)}function vl(e){return Rj(e)||fW(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function fW(e){return QL(e.x)||QL(e.y)}function QL(e){return e&&e!=="0%"}function Zv(e,t,r){const a=e-r,n=t*a;return r+n}function e7(e,t,r,a,n){return n!==void 0&&(e=Zv(e,n,a)),Zv(e,r,a)+t}function Oj(e,t=0,r=1,a,n){e.min=e7(e.min,t,r,a,n),e.max=e7(e.max,t,r,a,n)}function pW(e,{x:t,y:r}){Oj(e.x,t.translate,t.scale,t.originPoint),Oj(e.y,r.translate,r.scale,r.originPoint)}const t7=.999999999999,r7=1.0000000000001;function CRe(e,t,r,a=!1){const n=r.length;if(!n)return;t.x=t.y=1;let i,o;for(let s=0;s<n;s++){i=r[s],o=i.projectionDelta;const{visualElement:c}=i.options;c&&c.props.style&&c.props.style.display==="contents"||(a&&i.options.layoutScroll&&i.scroll&&i!==i.root&&vu(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,pW(e,o)),a&&vl(i.latestValues)&&vu(e,i.latestValues))}t.x<r7&&t.x>t7&&(t.x=1),t.y<r7&&t.y>t7&&(t.y=1)}function xu(e,t){e.min=e.min+t,e.max=e.max+t}function a7(e,t,r,a,n=.5){const i=Ar(e.min,e.max,n);Oj(e,t,r,i,a)}function vu(e,t){a7(e.x,t.x,t.scaleX,t.scale,t.originX),a7(e.y,t.y,t.scaleY,t.scale,t.originY)}function hW(e,t){return dW(ARe(e.getBoundingClientRect(),t))}function PRe(e,t,r){const a=hW(e,r),{scroll:n}=t;return n&&(xu(a.x,n.offset.x),xu(a.y,n.offset.y)),a}const n7=()=>({translate:0,scale:1,origin:0,originPoint:0}),yu=()=>({x:n7(),y:n7()}),i7=()=>({min:0,max:0}),_r=()=>({x:i7(),y:i7()}),Mj={current:null},mW={current:!1};function jRe(){if(mW.current=!0,!!tk)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Mj.current=e.matches;e.addEventListener("change",t),t()}else Mj.current=!1}const NRe=new WeakMap;function TRe(e,t,r){for(const a in t){const n=t[a],i=r[a];if(wa(n))e.addValue(a,n);else if(wa(i))e.addValue(a,md(n,{owner:e}));else if(i!==n)if(e.hasValue(a)){const o=e.getValue(a);o.liveStyle===!0?o.jump(n):o.hasAnimated||o.set(n)}else{const o=e.getStaticValue(a);e.addValue(a,md(o!==void 0?o:n,{owner:e}))}}for(const a in r)t[a]===void 0&&e.removeValue(a);return t}const o7=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class kRe{scrapeMotionValuesFromProps(t,r,a){return{}}constructor({parent:t,props:r,presenceContext:a,reducedMotionConfig:n,blockInitialAnimation:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=vk,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=Va.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,Sr.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=r.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=r,this.presenceContext=a,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=s,this.blockInitialAnimation=!!i,this.isControllingVariants=hb(r),this.isVariantNode=eW(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...f}=this.scrapeMotionValuesFromProps(r,{},this);for(const m in f){const x=f[m];c[m]!==void 0&&wa(x)&&x.set(c[m])}}mount(t){this.current=t,NRe.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,a)=>this.bindToMotionValue(a,r)),mW.current||jRe(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Mj.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),As(this.notifyUpdate),As(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const r=this.features[t];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,r){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const a=qd.has(t);a&&this.onBindTransform&&this.onBindTransform();const n=r.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&Sr.preRender(this.notifyUpdate),a&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{n(),i&&i(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in gd){const r=gd[t];if(!r)continue;const{isEnabled:a,Feature:n}=r;if(!this.features[t]&&n&&a(this.props)&&(this.features[t]=new n(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):_r()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let a=0;a<o7.length;a++){const n=o7[a];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const i="on"+n,o=t[i];o&&(this.propEventSubscriptions[n]=this.on(n,o))}this.prevMotionValues=TRe(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){const a=this.values.get(t);r!==a&&(a&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let a=this.values.get(t);return a===void 0&&r!==void 0&&(a=md(r===null?void 0:r,{owner:this}),this.addValue(t,a)),a}readValue(t,r){let a=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return a!=null&&(typeof a=="string"&&(sK(a)||cK(a))?a=parseFloat(a):!B3e(a)&&Cs.test(r)&&(a=UK(t,r)),this.setBaseTarget(t,wa(a)?a.get():a)),wa(a)?a.get():a}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){const{initial:r}=this.props;let a;if(typeof r=="string"||typeof r=="object"){const i=Tk(this.props,r,this.presenceContext?.custom);i&&(a=i[t])}if(r&&a!==void 0)return a;const n=this.getBaseTargetFromProps(this.props,t);return n!==void 0&&!wa(n)?n:this.initialValues[t]!==void 0&&a===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new ok),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}scheduleRenderMicrotask(){wk.render(this.render)}}class gW extends kRe{constructor(){super(...arguments),this.KeyframeResolver=C3e}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:a}){delete r[t],delete a[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;wa(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}function xW(e,{style:t,vars:r},a,n){const i=e.style;let o;for(o in t)i[o]=t[o];n?.applyProjectionStyles(i,a);for(o in r)i.setProperty(o,r[o])}function DRe(e){return window.getComputedStyle(e)}class _Re extends gW{constructor(){super(...arguments),this.type="html",this.renderInstance=xW}readValueFromInstance(t,r){if(qd.has(r))return this.projection?.isProjecting?Pj(r):U4e(t,r);{const a=DRe(t),n=(ck(r)?a.getPropertyValue(r):a[r])||0;return typeof n=="string"?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:r}){return hW(t,r)}build(t,r,a){Pk(t,r,a.transformTemplate)}scrapeMotionValuesFromProps(t,r,a){return kk(t,r,a)}}const vW=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function RRe(e,t,r,a){xW(e,t,void 0,a);for(const n in t.attrs)e.setAttribute(vW.has(n)?n:Dk(n),t.attrs[n])}class ORe extends gW{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=_r}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(qd.has(r)){const a=VK(r);return a&&a.default||0}return r=vW.has(r)?r:Dk(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,a){return sW(t,r,a)}build(t,r,a){aW(t,r,this.isSVGTag,a.transformTemplate,a.style)}renderInstance(t,r,a,n){RRe(t,r,a,n)}mount(t){this.isSVGTag=iW(t.tagName),super.mount(t)}}const MRe=(e,t)=>Nk(e)?new ORe(t):new _Re(t,{allowProjection:e!==L.Fragment});function Nu(e,t,r){const a=e.getProps();return Tk(a,t,r!==void 0?r:a.custom,e)}const Ij=e=>Array.isArray(e);function IRe(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,md(r))}function BRe(e){return Ij(e)?e[e.length-1]||0:e}function LRe(e,t){const r=Nu(e,t);let{transitionEnd:a={},transition:n={},...i}=r||{};i={...i,...a};for(const o in i){const s=BRe(i[o]);IRe(e,o,s)}}function zRe(e){return!!(wa(e)&&e.add)}function Bj(e,t){const r=e.getValue("willChange");if(zRe(r))return r.add(t);if(!r&&_o.WillChange){const a=new _o.WillChange("auto");e.addValue("willChange",a),a.add(t)}}function yW(e){return e.props[lW]}const FRe=e=>e!==null;function $Re(e,{repeat:t,repeatType:r="loop"},a){const n=e.filter(FRe),i=t&&r!=="loop"&&t%2===1?0:n.length-1;return n[i]}const qRe={type:"spring",stiffness:500,damping:25,restSpeed:10},VRe=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),URe={type:"keyframes",duration:.8},HRe={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},GRe=(e,{keyframes:t})=>t.length>2?URe:qd.has(e)?e.startsWith("scale")?VRe(t[1]):qRe:HRe;function KRe({when:e,delay:t,delayChildren:r,staggerChildren:a,staggerDirection:n,repeat:i,repeatType:o,repeatDelay:s,from:c,elapsed:u,...h}){return!!Object.keys(h).length}const _k=(e,t,r,a={},n,i)=>o=>{const s=yk(a,e)||{},c=s.delay||a.delay||0;let{elapsed:u=0}=a;u=u-Ni(c);const h={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-u,onUpdate:m=>{t.set(m),s.onUpdate&&s.onUpdate(m)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:i?void 0:n};KRe(s)||Object.assign(h,GRe(e,h)),h.duration&&(h.duration=Ni(h.duration)),h.repeatDelay&&(h.repeatDelay=Ni(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let f=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(Dj(h),h.delay===0&&(f=!0)),(_o.instantAnimations||_o.skipAnimations)&&(f=!0,Dj(h),h.delay=0),h.allowFlatten=!s.type&&!s.ease,f&&!i&&t.get()!==void 0){const m=$Re(h.keyframes,s);if(m!==void 0){Sr.update(()=>{h.onUpdate(m),h.onComplete()});return}}return s.isSync?new xk(h):new p3e(h)};function WRe({protectedKeys:e,needsAnimating:t},r){const a=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,a}function bW(e,t,{delay:r=0,transitionOverride:a,type:n}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:o,...s}=t;a&&(i=a);const c=[],u=n&&e.animationState&&e.animationState.getState()[n];for(const h in s){const f=e.getValue(h,e.latestValues[h]??null),m=s[h];if(m===void 0||u&&WRe(u,h))continue;const x={delay:r,...yk(i||{},h)},v=f.get();if(v!==void 0&&!f.isAnimating&&!Array.isArray(m)&&m===v&&!x.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const S=yW(e);if(S){const A=window.MotionHandoffAnimation(S,h,Sr);A!==null&&(x.startTime=A,y=!0)}}Bj(e,h),f.start(_k(h,f,m,e.shouldReduceMotion&&FK.has(h)?{type:!1}:x,e,y));const b=f.animation;b&&c.push(b)}return o&&Promise.all(c).then(()=>{Sr.update(()=>{o&&LRe(e,o)})}),c}function wW(e,t,r,a=0,n=1){const i=Array.from(e).sort((u,h)=>u.sortNodePosition(h)).indexOf(t),o=e.size,s=(o-1)*a;return typeof r=="function"?r(i,o):n===1?i*a:s-i*a}function Lj(e,t,r={}){const a=Nu(e,t,r.type==="exit"?e.presenceContext?.custom:void 0);let{transition:n=e.getDefaultTransition()||{}}=a||{};r.transitionOverride&&(n=r.transitionOverride);const i=a?()=>Promise.all(bW(e,a,r)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:h,staggerDirection:f}=n;return XRe(e,t,c,u,h,f,r)}:()=>Promise.resolve(),{when:s}=n;if(s){const[c,u]=s==="beforeChildren"?[i,o]:[o,i];return c().then(()=>u())}else return Promise.all([i(),o(r.delay)])}function XRe(e,t,r=0,a=0,n=0,i=1,o){const s=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),s.push(Lj(c,t,{...o,delay:r+(typeof a=="function"?0:a)+wW(e.variantChildren,c,a,n,i)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(s)}function YRe(e,t,r={}){e.notify("AnimationStart",t);let a;if(Array.isArray(t)){const n=t.map(i=>Lj(e,i,r));a=Promise.all(n)}else if(typeof t=="string")a=Lj(e,t,r);else{const n=typeof t=="function"?Nu(e,t,r.custom):t;a=Promise.all(bW(e,n,r))}return a.then(()=>{e.notify("AnimationComplete",t)})}function SW(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let a=0;a<r;a++)if(t[a]!==e[a])return!1;return!0}const ZRe=Ck.length;function EW(e){if(!e)return;if(!e.isControllingVariants){const r=e.parent?EW(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}const t={};for(let r=0;r<ZRe;r++){const a=Ck[r],n=e.props[a];(Nh(n)||n===!1)&&(t[a]=n)}return t}const JRe=[...Ak].reverse(),QRe=Ak.length;function eOe(e){return t=>Promise.all(t.map(({animation:r,options:a})=>YRe(e,r,a)))}function tOe(e){let t=eOe(e),r=s7(),a=!0;const n=c=>(u,h)=>{const f=Nu(e,h,c==="exit"?e.presenceContext?.custom:void 0);if(f){const{transition:m,transitionEnd:x,...v}=f;u={...u,...v,...x}}return u};function i(c){t=c(e)}function o(c){const{props:u}=e,h=EW(e.parent)||{},f=[],m=new Set;let x={},v=1/0;for(let b=0;b<QRe;b++){const S=JRe[b],A=r[S],E=u[S]!==void 0?u[S]:h[S],j=Nh(E),P=S===c?A.isActive:null;P===!1&&(v=b);let C=E===h[S]&&E!==u[S]&&j;if(C&&a&&e.manuallyAnimateOnMount&&(C=!1),A.protectedKeys={...x},!A.isActive&&P===null||!E&&!A.prevProp||pb(E)||typeof E=="boolean")continue;const N=rOe(A.prevProp,E);let O=N||S===c&&A.isActive&&!C&&j||b>v&&j,k=!1;const B=Array.isArray(E)?E:[E];let $=B.reduce(n(S),{});P===!1&&($={});const{prevResolvedValues:_={}}=A,W={..._,...$},D=V=>{O=!0,m.has(V)&&(k=!0,m.delete(V)),A.needsAnimating[V]=!0;const Z=e.getValue(V);Z&&(Z.liveStyle=!1)};for(const V in W){const Z=$[V],te=_[V];if(x.hasOwnProperty(V))continue;let K=!1;Ij(Z)&&Ij(te)?K=!SW(Z,te):K=Z!==te,K?Z!=null?D(V):m.add(V):Z!==void 0&&m.has(V)?D(V):A.protectedKeys[V]=!0}A.prevProp=E,A.prevResolvedValues=$,A.isActive&&(x={...x,...$}),a&&e.blockInitialAnimation&&(O=!1);const J=C&&N;O&&(!J||k)&&f.push(...B.map(V=>{const Z={type:S};if(typeof V=="string"&&a&&!J&&e.manuallyAnimateOnMount&&e.parent){const{parent:te}=e,K=Nu(te,V);if(te.enteringChildren&&K){const{delayChildren:q}=K.transition||{};Z.delay=wW(te.enteringChildren,e,q)}}return{animation:V,options:Z}}))}if(m.size){const b={};if(typeof u.initial!="boolean"){const S=Nu(e,Array.isArray(u.initial)?u.initial[0]:u.initial);S&&S.transition&&(b.transition=S.transition)}m.forEach(S=>{const A=e.getBaseTarget(S),E=e.getValue(S);E&&(E.liveStyle=!0),b[S]=A??null}),f.push({animation:b})}let y=!!f.length;return a&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(y=!1),a=!1,y?t(f):Promise.resolve()}function s(c,u){if(r[c].isActive===u)return Promise.resolve();e.variantChildren?.forEach(f=>f.animationState?.setActive(c,u)),r[c].isActive=u;const h=o(c);for(const f in r)r[f].protectedKeys={};return h}return{animateChanges:o,setActive:s,setAnimateFunction:i,getState:()=>r,reset:()=>{r=s7(),a=!0}}}function rOe(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!SW(t,e):!1}function pl(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function s7(){return{animate:pl(!0),whileInView:pl(),whileHover:pl(),whileTap:pl(),whileDrag:pl(),whileFocus:pl(),exit:pl()}}class Ls{constructor(t){this.isMounted=!1,this.node=t}update(){}}class aOe extends Ls{constructor(t){super(t),t.animationState||(t.animationState=tOe(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();pb(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let nOe=0;class iOe extends Ls{constructor(){super(...arguments),this.id=nOe++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:a}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===a)return;const n=this.node.animationState.setActive("exit",!t);r&&!t&&n.then(()=>{r(this.id)})}mount(){const{register:t,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const oOe={animation:{Feature:aOe},exit:{Feature:iOe}};function kh(e,t,r,a={passive:!0}){return e.addEventListener(t,r,a),()=>e.removeEventListener(t,r)}function sm(e){return{point:{x:e.pageX,y:e.pageY}}}const sOe=e=>t=>Sk(t)&&e(t,sm(t));function Tp(e,t,r,a){return kh(e,t,sOe(r),a)}const AW=1e-4,lOe=1-AW,cOe=1+AW,CW=.01,uOe=0-CW,dOe=0+CW;function ka(e){return e.max-e.min}function fOe(e,t,r){return Math.abs(e-t)<=r}function l7(e,t,r,a=.5){e.origin=a,e.originPoint=Ar(t.min,t.max,e.origin),e.scale=ka(r)/ka(t),e.translate=Ar(r.min,r.max,e.origin)-e.originPoint,(e.scale>=lOe&&e.scale<=cOe||isNaN(e.scale))&&(e.scale=1),(e.translate>=uOe&&e.translate<=dOe||isNaN(e.translate))&&(e.translate=0)}function kp(e,t,r,a){l7(e.x,t.x,r.x,a?a.originX:void 0),l7(e.y,t.y,r.y,a?a.originY:void 0)}function c7(e,t,r){e.min=r.min+t.min,e.max=e.min+ka(t)}function pOe(e,t,r){c7(e.x,t.x,r.x),c7(e.y,t.y,r.y)}function u7(e,t,r){e.min=t.min-r.min,e.max=e.min+ka(t)}function Dp(e,t,r){u7(e.x,t.x,r.x),u7(e.y,t.y,r.y)}function In(e){return[e("x"),e("y")]}const PW=({current:e})=>e?e.ownerDocument.defaultView:null,d7=(e,t)=>Math.abs(e-t);function hOe(e,t){const r=d7(e.x,t.x),a=d7(e.y,t.y);return Math.sqrt(r**2+a**2)}class jW{constructor(t,r,{transformPagePoint:a,contextWindow:n=window,dragSnapToOrigin:i=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=fC(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,v=hOe(m.offset,{x:0,y:0})>=this.distanceThreshold;if(!x&&!v)return;const{point:y}=m,{timestamp:b}=ua;this.history.push({...y,timestamp:b});const{onStart:S,onMove:A}=this.handlers;x||(S&&S(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),A&&A(this.lastMoveEvent,m)},this.handlePointerMove=(m,x)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=dC(x,this.transformPagePoint),Sr.update(this.updatePoint,!0)},this.handlePointerUp=(m,x)=>{this.end();const{onEnd:v,onSessionEnd:y,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=fC(m.type==="pointercancel"?this.lastMoveEventInfo:dC(x,this.transformPagePoint),this.history);this.startEvent&&v&&v(m,S),y&&y(m,S)},!Sk(t))return;this.dragSnapToOrigin=i,this.handlers=r,this.transformPagePoint=a,this.distanceThreshold=o,this.contextWindow=n||window;const s=sm(t),c=dC(s,this.transformPagePoint),{point:u}=c,{timestamp:h}=ua;this.history=[{...u,timestamp:h}];const{onSessionStart:f}=r;f&&f(t,fC(c,this.history)),this.removeListeners=nm(Tp(this.contextWindow,"pointermove",this.handlePointerMove),Tp(this.contextWindow,"pointerup",this.handlePointerUp),Tp(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),As(this.updatePoint)}}function dC(e,t){return t?{point:t(e.point)}:e}function f7(e,t){return{x:e.x-t.x,y:e.y-t.y}}function fC({point:e},t){return{point:e,delta:f7(e,NW(t)),offset:f7(e,mOe(t)),velocity:gOe(t,.1)}}function mOe(e){return e[0]}function NW(e){return e[e.length-1]}function gOe(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,a=null;const n=NW(e);for(;r>=0&&(a=e[r],!(n.timestamp-a.timestamp>Ni(t)));)r--;if(!a)return{x:0,y:0};const i=$n(n.timestamp-a.timestamp);if(i===0)return{x:0,y:0};const o={x:(n.x-a.x)/i,y:(n.y-a.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function xOe(e,{min:t,max:r},a){return t!==void 0&&e<t?e=a?Ar(t,e,a.min):Math.max(e,t):r!==void 0&&e>r&&(e=a?Ar(r,e,a.max):Math.min(e,r)),e}function p7(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function vOe(e,{top:t,left:r,bottom:a,right:n}){return{x:p7(e.x,r,n),y:p7(e.y,t,a)}}function h7(e,t){let r=t.min-e.min,a=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,a]=[a,r]),{min:r,max:a}}function yOe(e,t){return{x:h7(e.x,t.x),y:h7(e.y,t.y)}}function bOe(e,t){let r=.5;const a=ka(e),n=ka(t);return n>a?r=Ch(t.min,t.max-a,e.min):a>n&&(r=Ch(e.min,e.max-n,t.min)),Do(0,1,r)}function wOe(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const zj=.35;function SOe(e=zj){return e===!1?e=0:e===!0&&(e=zj),{x:m7(e,"left","right"),y:m7(e,"top","bottom")}}function m7(e,t,r){return{min:g7(e,t),max:g7(e,r)}}function g7(e,t){return typeof e=="number"?e:e[t]||0}const EOe=new WeakMap;class AOe{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=_r(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:r=!1,distanceThreshold:a}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const i=f=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(sm(f).point)},o=(f,m)=>{const{drag:x,dragPropagation:v,onDragStart:y}=this.getProps();if(x&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=T3e(x),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=m,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),In(S=>{let A=this.getAxisMotionValue(S).get()||0;if(Ti.test(A)){const{projection:E}=this.visualElement;if(E&&E.layout){const j=E.layout.layoutBox[S];j&&(A=ka(j)*(parseFloat(A)/100))}}this.originPoint[S]=A}),y&&Sr.postRender(()=>y(f,m)),Bj(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},s=(f,m)=>{this.latestPointerEvent=f,this.latestPanInfo=m;const{dragPropagation:x,dragDirectionLock:v,onDirectionLock:y,onDrag:b}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:S}=m;if(v&&this.currentDirection===null){this.currentDirection=COe(S),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",m.point,S),this.updateAxis("y",m.point,S),this.visualElement.render(),b&&b(f,m)},c=(f,m)=>{this.latestPointerEvent=f,this.latestPanInfo=m,this.stop(f,m),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>In(f=>this.getAnimationState(f)==="paused"&&this.getAxisMotionValue(f).animation?.play()),{dragSnapToOrigin:h}=this.getProps();this.panSession=new jW(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:a,contextWindow:PW(this.visualElement)})}stop(t,r){const a=t||this.latestPointerEvent,n=r||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!n||!a)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:s}=this.getProps();s&&Sr.postRender(()=>s(a,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:a}=this.getProps();!a&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,a){const{drag:n}=this.getProps();if(!a||!fx(t,n,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+a[t];this.constraints&&this.constraints[t]&&(o=xOe(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){const{dragConstraints:t,dragElastic:r}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&gu(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&a?this.constraints=vOe(a.layoutBox,t):this.constraints=!1,this.elastic=SOe(r),n!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&In(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=wOe(a.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!gu(t))return!1;const a=t.current,{projection:n}=this.visualElement;if(!n||!n.layout)return!1;const i=PRe(a,n.root,this.visualElement.getTransformPagePoint());let o=yOe(n.layout.layoutBox,i);if(r){const s=r(ERe(o));this.hasMutatedConstraints=!!s,s&&(o=dW(s))}return o}startAnimation(t){const{drag:r,dragMomentum:a,dragElastic:n,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),c=this.constraints||{},u=In(h=>{if(!fx(h,r,this.currentDirection))return;let f=c&&c[h]||{};o&&(f={min:0,max:0});const m=n?200:1e6,x=n?40:1e7,v={type:"inertia",velocity:a?t[h]:0,bounceStiffness:m,bounceDamping:x,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(h,v)});return Promise.all(u).then(s)}startAxisValueAnimation(t,r){const a=this.getAxisMotionValue(t);return Bj(this.visualElement,t),a.start(_k(t,a,0,r,this.visualElement,!1))}stopAnimation(){In(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){In(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const r=`_drag${t.toUpperCase()}`,a=this.visualElement.getProps(),n=a[r];return n||this.visualElement.getValue(t,(a.initial?a.initial[t]:void 0)||0)}snapToCursor(t){In(r=>{const{drag:a}=this.getProps();if(!fx(r,a,this.currentDirection))return;const{projection:n}=this.visualElement,i=this.getAxisMotionValue(r);if(n&&n.layout){const{min:o,max:s}=n.layout.layoutBox[r];i.set(t[r]-Ar(o,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:a}=this.visualElement;if(!gu(r)||!a||!this.constraints)return;this.stopAnimation();const n={x:0,y:0};In(o=>{const s=this.getAxisMotionValue(o);if(s&&this.constraints!==!1){const c=s.get();n[o]=bOe({min:c,max:c},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",a.root&&a.root.updateScroll(),a.updateLayout(),this.resolveConstraints(),In(o=>{if(!fx(o,t,null))return;const s=this.getAxisMotionValue(o),{min:c,max:u}=this.constraints[o];s.set(Ar(c,u,n[o]))})}addListeners(){if(!this.visualElement.current)return;EOe.set(this.visualElement,this);const t=this.visualElement.current,r=Tp(t,"pointerdown",c=>{const{drag:u,dragListener:h=!0}=this.getProps();u&&h&&this.start(c)}),a=()=>{const{dragConstraints:c}=this.getProps();gu(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",a);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),Sr.read(a);const o=kh(window,"resize",()=>this.scalePositionWithinConstraints()),s=n.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(In(h=>{const f=this.getAxisMotionValue(h);f&&(this.originPoint[h]+=c[h].translate,f.set(f.get()+c[h].translate))}),this.visualElement.render())}));return()=>{o(),r(),i(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:a=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:o=zj,dragMomentum:s=!0}=t;return{...t,drag:r,dragDirectionLock:a,dragPropagation:n,dragConstraints:i,dragElastic:o,dragMomentum:s}}}function fx(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function COe(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class POe extends Ls{constructor(t){super(t),this.removeGroupControls=qn,this.removeListeners=qn,this.controls=new AOe(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||qn}unmount(){this.removeGroupControls(),this.removeListeners()}}const x7=e=>(t,r)=>{e&&Sr.postRender(()=>e(t,r))};
vendor: 4,097 bytes, line 1417
1417class jOe extends Ls{constructor(){super(...arguments),this.removePointerDownListener=qn}onPointerDown(t){this.session=new jW(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:PW(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:a,onPanEnd:n}=this.node.getProps();return{onSessionStart:x7(t),onStart:x7(r),onMove:a,onEnd:(i,o)=>{delete this.session,n&&Sr.postRender(()=>n(i,o))}}}mount(){this.removePointerDownListener=Tp(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Cx={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function v7(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const rp={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(mt.test(e))e=parseFloat(e);else return e;const r=v7(e,t.target.x),a=v7(e,t.target.y);return`${r}% ${a}%`}},NOe={correct:(e,{treeScale:t,projectionDelta:r})=>{const a=e,n=Cs.parse(e);if(n.length>5)return a;const i=Cs.createTransformer(e),o=typeof n[0]!="number"?1:0,s=r.x.scale*t.x,c=r.y.scale*t.y;n[0+o]/=s,n[1+o]/=c;const u=Ar(s,c,.5);return typeof n[2+o]=="number"&&(n[2+o]/=u),typeof n[3+o]=="number"&&(n[3+o]/=u),i(n)}};let pC=!1;class TOe extends L.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:a,layoutId:n}=this.props,{projection:i}=t;Z3e(kOe),i&&(r.group&&r.group.add(i),a&&a.register&&n&&a.register(i),pC&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Cx.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:a,drag:n,isPresent:i}=this.props,{projection:o}=a;return o&&(o.isPresent=i,pC=!0,n||t.layoutDependency!==r||r===void 0||t.isPresent!==i?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||Sr.postRender(()=>{const s=o.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),wk.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:a}=this.props,{projection:n}=t;pC=!0,n&&(n.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(n),a&&a.deregister&&a.deregister(n))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function TW(e){const[t,r]=ZK(),a=L.useContext(QT);return p.jsx(TOe,{...e,layoutGroup:a,switchLayoutGroup:L.useContext(cW),isPresent:t,safeToRemove:r})}const kOe={borderRadius:{...rp,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:rp,borderTopRightRadius:rp,borderBottomLeftRadius:rp,borderBottomRightRadius:rp,boxShadow:NOe};function DOe(e,t,r){const a=wa(e)?e:md(e);return a.start(_k("",a,t,r)),a.animation}const _Oe=(e,t)=>e.depth-t.depth;class ROe{constructor(){this.children=[],this.isDirty=!1}add(t){rk(this.children,t),this.isDirty=!0}remove(t){ak(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(_Oe),this.isDirty=!1,this.children.forEach(t)}}function OOe(e,t){const r=Va.now(),a=({timestamp:n})=>{const i=n-r;i>=t&&(As(a),e(i-t))};return Sr.setup(a,!0),()=>As(a)}const kW=["TopLeft","TopRight","BottomLeft","BottomRight"],MOe=kW.length,y7=e=>typeof e=="string"?parseFloat(e):e,b7=e=>typeof e=="number"||mt.test(e);function IOe(e,t,r,a,n,i){n?(e.opacity=Ar(0,r.opacity??1,BOe(a)),e.opacityExit=Ar(t.opacity??1,0,LOe(a))):i&&(e.opacity=Ar(t.opacity??1,r.opacity??1,a));for(let o=0;o<MOe;o++){const s=`border${kW[o]}Radius`;let c=w7(t,s),u=w7(r,s);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||b7(c)===b7(u)?(e[s]=Math.max(Ar(y7(c),y7(u),a),0),(Ti.test(u)||Ti.test(c))&&(e[s]+="%")):e[s]=u}(t.rotate||r.rotate)&&(e.rotate=Ar(t.rotate||0,r.rotate||0,a))}function w7(e,t){return e[t]!==void 0?e[t]:e.borderRadius}
vendor: 8,616 bytes, line 1417
1417const BOe=DW(0,.5,xK),LOe=DW(.5,.95,qn);function DW(e,t,r){return a=>a<e?0:a>t?1:r(Ch(e,t,a))}function S7(e,t){e.min=t.min,e.max=t.max}function On(e,t){S7(e.x,t.x),S7(e.y,t.y)}function E7(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function A7(e,t,r,a,n){return e-=t,e=Zv(e,1/r,a),n!==void 0&&(e=Zv(e,1/n,a)),e}function zOe(e,t=0,r=1,a=.5,n,i=e,o=e){if(Ti.test(t)&&(t=parseFloat(t),t=Ar(o.min,o.max,t/100)-o.min),typeof t!="number")return;let s=Ar(i.min,i.max,a);e===i&&(s-=t),e.min=A7(e.min,t,r,s,n),e.max=A7(e.max,t,r,s,n)}function C7(e,t,[r,a,n],i,o){zOe(e,t[r],t[a],t[n],t.scale,i,o)}const FOe=["x","scaleX","originX"],$Oe=["y","scaleY","originY"];function P7(e,t,r,a){C7(e.x,t,FOe,r?r.x:void 0,a?a.x:void 0),C7(e.y,t,$Oe,r?r.y:void 0,a?a.y:void 0)}function j7(e){return e.translate===0&&e.scale===1}function _W(e){return j7(e.x)&&j7(e.y)}function N7(e,t){return e.min===t.min&&e.max===t.max}function qOe(e,t){return N7(e.x,t.x)&&N7(e.y,t.y)}function T7(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function RW(e,t){return T7(e.x,t.x)&&T7(e.y,t.y)}function k7(e){return ka(e.x)/ka(e.y)}function D7(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class VOe{constructor(){this.members=[]}add(t){rk(this.members,t),t.scheduleRender()}remove(t){if(ak(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(n=>t===n);if(r===0)return!1;let a;for(let n=r;n>=0;n--){const i=this.members[n];if(i.isPresent!==!1){a=i;break}}return a?(this.promote(a),!0):!1}promote(t,r){const a=this.lead;if(t!==a&&(this.prevLead=a,this.lead=t,t.show(),a)){a.instance&&a.scheduleRender(),t.scheduleRender(),t.resumeFrom=a,r&&(t.resumeFrom.preserveOpacity=!0),a.snapshot&&(t.snapshot=a.snapshot,t.snapshot.latestValues=a.animationValues||a.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:n}=t.options;n===!1&&a.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:a}=t;r.onExitComplete&&r.onExitComplete(),a&&a.options.onExitComplete&&a.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function UOe(e,t,r){let a="";const n=e.x.translate/t.x,i=e.y.translate/t.y,o=r?.z||0;if((n||i||o)&&(a=`translate3d(${n}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(a+=`scale(${1/t.x}, ${1/t.y}) `),r){const{transformPerspective:u,rotate:h,rotateX:f,rotateY:m,skewX:x,skewY:v}=r;u&&(a=`perspective(${u}px) ${a}`),h&&(a+=`rotate(${h}deg) `),f&&(a+=`rotateX(${f}deg) `),m&&(a+=`rotateY(${m}deg) `),x&&(a+=`skewX(${x}deg) `),v&&(a+=`skewY(${v}deg) `)}const s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(a+=`scale(${s}, ${c})`),a||"none"}const hC=["","X","Y","Z"],HOe=1e3;let GOe=0;function mC(e,t,r,a){const{latestValues:n}=t;n[e]&&(r[e]=n[e],t.setStaticValue(e,0),a&&(a[e]=0))}function OW(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const r=yW(t);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:n,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",Sr,!(n||i))}const{parent:a}=e;a&&!a.hasCheckedOptimisedAppear&&OW(a)}function MW({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:a,resetTransform:n}){return class{constructor(o={},s=t?.()){this.id=GOe++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(XOe),this.nodes.forEach(QOe),this.nodes.forEach(eMe),this.nodes.forEach(YOe)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new ROe)}addEventListener(o,s){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new ok),this.eventHandlers.get(o).add(s)}notifyListeners(o,...s){const c=this.eventHandlers.get(o);c&&c.notify(...s)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=YK(o)&&!M3e(o),this.instance=o;const{layoutId:s,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||s)&&(this.isLayoutDirty=!0),e){let h,f=0;const m=()=>this.root.updateBlockedByResize=!1;Sr.read(()=>{f=window.innerWidth}),e(o,()=>{const x=window.innerWidth;x!==f&&(f=x,this.root.updateBlockedByResize=!0,h&&h(),h=OOe(m,250),Cx.hasAnimatedSinceResize&&(Cx.hasAnimatedSinceResize=!1,this.nodes.forEach(O7)))})}s&&this.root.registerSharedNode(s,this),this.options.animate!==!1&&u&&(s||c)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:f,hasRelativeLayoutChanged:m,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||u.getDefaultTransition()||iMe,{onLayoutAnimationStart:y,onLayoutAnimationComplete:b}=u.getProps(),S=!this.targetLayout||!RW(this.targetLayout,x),A=!f&&m;if(this.options.layoutRoot||this.resumeFrom||A||f&&(S||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const E={...yk(v,"layout"),onPlay:y,onComplete:b};(u.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E),this.setAnimationOrigin(h,A)}else f||O7(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),As(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(tMe),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&OW(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const f=this.path[h];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:s,layout:c}=this.options;if(s===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(_7);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(R7);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(JOe),this.nodes.forEach(KOe),this.nodes.forEach(WOe)):this.nodes.forEach(R7),this.clearAllSnapshots();const s=Va.now();ua.delta=Do(0,1e3/60,s-ua.timestamp),ua.timestamp=s,ua.isProcessing=!0,aC.update.process(ua),aC.preRender.process(ua),aC.render.process(ua),ua.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,wk.read(this.scheduleUpdate))}
vendor: 6,069 bytes, line 1417
1417clearAllSnapshots(){this.nodes.forEach(ZOe),this.sharedNodes.forEach(rMe)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Sr.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Sr.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ka(this.snapshot.measuredBox.x)&&!ka(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=_r(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(s=!1),s&&this.instance){const c=a(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:c,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!n)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!_W(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,h=u!==this.prevTransformTemplateValue;o&&this.instance&&(s||vl(this.latestValues)||h)&&(n(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const s=this.measurePageBox();let c=this.removeElementScroll(s);return o&&(c=this.removeTransform(c)),oMe(c),{animationId:this.root.animationId,measuredBox:s,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:o}=this.options;if(!o)return _r();const s=o.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(sMe))){const{scroll:u}=this.root;u&&(xu(s.x,u.offset.x),xu(s.y,u.offset.y))}return s}removeElementScroll(o){const s=_r();if(On(s,o),this.scroll?.wasRoot)return s;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:h,options:f}=u;u!==this.root&&h&&f.layoutScroll&&(h.wasRoot&&On(s,o),xu(s.x,h.offset.x),xu(s.y,h.offset.y))}return s}applyTransform(o,s=!1){const c=_r();On(c,o);for(let u=0;u<this.path.length;u++){const h=this.path[u];!s&&h.options.layoutScroll&&h.scroll&&h!==h.root&&vu(c,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),vl(h.latestValues)&&vu(c,h.latestValues)}return vl(this.latestValues)&&vu(c,this.latestValues),c}removeTransform(o){const s=_r();On(s,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!vl(u.latestValues))continue;Rj(u.latestValues)&&u.updateSnapshot();const h=_r(),f=u.measurePageBox();On(h,f),P7(s,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,h)}return vl(this.latestValues)&&P7(s,this.latestValues),s}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ua.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){const s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==s;if(!(o||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:f}=this.options;if(!(!this.layout||!(h||f))){if(this.resolvedRelativeTargetAt=ua.timestamp,!this.targetDelta&&!this.relativeTarget){const m=this.getClosestProjectingParent();m&&m.layout&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=_r(),this.relativeTargetOrigin=_r(),Dp(this.relativeTargetOrigin,this.layout.layoutBox,m.layout.layoutBox),On(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=_r(),this.targetWithTransforms=_r()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),pOe(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):On(this.target,this.layout.layoutBox),pW(this.target,this.targetDelta)):On(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const m=this.getClosestProjectingParent();m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=_r(),this.relativeTargetOrigin=_r(),Dp(this.relativeTargetOrigin,this.target,m.target),On(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Rj(this.parent.latestValues)||fW(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const o=this.getLead(),s=!!this.resumingFrom||this!==o;let c=!0;
vendor: 9,340 bytes, line 1417
1417if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),s&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===ua.timestamp&&(c=!1),c)return;const{layout:u,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||h))return;On(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,m=this.treeScale.y;CRe(this.layoutCorrected,this.treeScale,this.path,s),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=_r());const{target:x}=o;if(!x){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(E7(this.prevProjectionDelta.x,this.projectionDelta.x),E7(this.prevProjectionDelta.y,this.projectionDelta.y)),kp(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==m||!D7(this.projectionDelta.x,this.prevProjectionDelta.x)||!D7(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",x))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){if(this.options.visualElement?.scheduleRender(),o){const s=this.getStack();s&&s.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=yu(),this.projectionDelta=yu(),this.projectionDeltaWithTransform=yu()}setAnimationOrigin(o,s=!1){const c=this.snapshot,u=c?c.latestValues:{},h={...this.latestValues},f=yu();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const m=_r(),x=c?c.source:void 0,v=this.layout?this.layout.source:void 0,y=x!==v,b=this.getStack(),S=!b||b.members.length<=1,A=!!(y&&!S&&this.options.crossfade===!0&&!this.path.some(nMe));this.animationProgress=0;let E;this.mixTargetDelta=j=>{const P=j/1e3;M7(f.x,o.x,P),M7(f.y,o.y,P),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Dp(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),aMe(this.relativeTarget,this.relativeTargetOrigin,m,P),E&&qOe(this.relativeTarget,E)&&(this.isProjectionDirty=!1),E||(E=_r()),On(E,this.relativeTarget)),y&&(this.animationValues=h,IOe(h,u,this.latestValues,P,A,S)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(As(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Sr.update(()=>{Cx.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=md(0)),this.currentAnimation=DOe(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:s=>{this.mixTargetDelta(s),o.onUpdate&&o.onUpdate(s)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(HOe),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:s,target:c,layout:u,latestValues:h}=o;if(!(!s||!c||!u)){if(this!==o&&this.layout&&u&&IW(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||_r();const f=ka(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+f;const m=ka(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+m}On(s,c),vu(s,h),kp(this.projectionDeltaWithTransform,this.layoutCorrected,s,h)}}registerSharedNode(o,s){this.sharedNodes.has(o)||this.sharedNodes.set(o,new VOe),this.sharedNodes.get(o).add(s);const u=s.options.initialPromotionConfig;s.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(s):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){const{layoutId:o}=this.options;return o?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:o}=this.options;return o?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:s,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),o&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let s=!1;const{latestValues:c}=o;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(s=!0),!s)return;const u={};c.z&&mC("z",o,u,this.animationValues);for(let h=0;h<hC.length;h++)mC(`rotate${hC[h]}`,o,u,this.animationValues),mC(`skew${hC[h]}`,o,u,this.animationValues);o.render();for(const h in u)o.setStaticValue(h,u[h]),this.animationValues&&(this.animationValues[h]=u[h]);o.scheduleRender()}applyProjectionStyles(o,s){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=Ax(s?.pointerEvents)||"",o.transform=c?c(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=Ax(s?.pointerEvents)||""),this.hasProjected&&!vl(this.latestValues)&&(o.transform=c?c({},""):"none",this.hasProjected=!1);return}o.visibility="";const h=u.animationValues||u.latestValues;this.applyTransformsToTarget();let f=UOe(this.projectionDeltaWithTransform,this.treeScale,h);c&&(f=c(h,f)),o.transform=f;const{x:m,y:x}=this.projectionDelta;o.transformOrigin=`${m.origin*100}% ${x.origin*100}% 0`,u.animationValues?o.opacity=u===this?h.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:o.opacity=u===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const v in Th){if(h[v]===void 0)continue;const{correct:y,applyTo:b,isCSSVariable:S}=Th[v],A=f==="none"?h[v]:y(h[v],u);if(b){const E=b.length;for(let j=0;j<E;j++)o[b[j]]=A}else S?this.options.visualElement.renderState.vars[v]=A:o[v]=A}this.options.layoutId&&(o.pointerEvents=u===this?Ax(s?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>o.currentAnimation?.stop()),this.root.nodes.forEach(_7),this.root.sharedNodes.clear()}}}function KOe(e){e.updateLayout()}function WOe(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:a}=e.layout,{animationType:n}=e.options,i=t.source!==e.layout.source;n==="size"?In(h=>{const f=i?t.measuredBox[h]:t.layoutBox[h],m=ka(f);f.min=r[h].min,f.max=f.min+m}):IW(n,t.layoutBox,r)&&In(h=>{const f=i?t.measuredBox[h]:t.layoutBox[h],m=ka(r[h]);f.max=f.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+m)});const o=yu();kp(o,r,t.layoutBox);const s=yu();i?kp(s,e.applyTransform(a,!0),t.measuredBox):kp(s,r,t.layoutBox);const c=!_W(o);let u=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:m}=h;if(f&&m){const x=_r();Dp(x,t.layoutBox,f.layoutBox);const v=_r();Dp(v,r,m.layoutBox),RW(x,v)||(u=!0),h.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=x,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function XOe(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function YOe(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ZOe(e){e.clearSnapshot()}function _7(e){e.clearMeasurements()}function R7(e){e.isLayoutDirty=!1}function JOe(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function O7(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function QOe(e){e.resolveTargetDelta()}function eMe(e){e.calcProjection()}
vendor: 4,338 bytes, line 1417
1417function tMe(e){e.resetSkewAndRotation()}function rMe(e){e.removeLeadSnapshot()}function M7(e,t,r){e.translate=Ar(t.translate,0,r),e.scale=Ar(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function I7(e,t,r,a){e.min=Ar(t.min,r.min,a),e.max=Ar(t.max,r.max,a)}function aMe(e,t,r,a){I7(e.x,t.x,r.x,a),I7(e.y,t.y,r.y,a)}function nMe(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const iMe={duration:.45,ease:[.4,0,.1,1]},B7=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),L7=B7("applewebkit/")&&!B7("chrome/")?Math.round:qn;function z7(e){e.min=L7(e.min),e.max=L7(e.max)}function oMe(e){z7(e.x),z7(e.y)}function IW(e,t,r){return e==="position"||e==="preserve-aspect"&&!fOe(k7(t),k7(r),.2)}function sMe(e){return e!==e.root&&e.scroll?.wasRoot}const lMe=MW({attachResizeListener:(e,t)=>kh(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),gC={current:void 0},BW=MW({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!gC.current){const e=new lMe({});e.mount(window),e.setOptions({layoutScroll:!0}),gC.current=e}return gC.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),cMe={pan:{Feature:jOe},drag:{Feature:POe,ProjectionNode:BW,MeasureLayout:TW}};function F7(e,t,r){const{props:a}=e;e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",r==="Start");const n="onHover"+r,i=a[n];i&&Sr.postRender(()=>i(t,sm(t)))}class uMe extends Ls{mount(){const{current:t}=this.node;t&&(this.unmount=k3e(t,(r,a)=>(F7(this.node,a,"Start"),n=>F7(this.node,n,"End"))))}unmount(){}}class dMe extends Ls{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=nm(kh(this.node.current,"focus",()=>this.onFocus()),kh(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function $7(e,t,r){const{props:a}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&a.whileTap&&e.animationState.setActive("whileTap",r==="Start");const n="onTap"+(r==="End"?"":r),i=a[n];i&&Sr.postRender(()=>i(t,sm(t)))}class fMe extends Ls{mount(){const{current:t}=this.node;t&&(this.unmount=O3e(t,(r,a)=>($7(this.node,a,"Start"),(n,{success:i})=>$7(this.node,n,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Fj=new WeakMap,xC=new WeakMap,pMe=e=>{const t=Fj.get(e.target);t&&t(e)},hMe=e=>{e.forEach(pMe)};function mMe({root:e,...t}){const r=e||document;xC.has(r)||xC.set(r,{});const a=xC.get(r),n=JSON.stringify(t);return a[n]||(a[n]=new IntersectionObserver(hMe,{root:e,...t})),a[n]}function gMe(e,t,r){const a=mMe(t);return Fj.set(e,r),a.observe(e),()=>{Fj.delete(e),a.unobserve(e)}}const xMe={some:0,all:1};class vMe extends Ls{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:a,amount:n="some",once:i}=t,o={root:r?r.current:void 0,rootMargin:a,threshold:typeof n=="number"?n:xMe[n]},s=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:h,onViewportLeave:f}=this.node.getProps(),m=u?h:f;m&&m(c)};return gMe(this.node.current,o,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(yMe(t,r))&&this.startObserver()}unmount(){}}function yMe({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const bMe={inView:{Feature:vMe},tap:{Feature:fMe},focus:{Feature:dMe},hover:{Feature:uMe}},wMe={layout:{ProjectionNode:BW,MeasureLayout:TW}},SMe={...oOe,...bMe,...cMe,...wMe},$j=SRe(SMe,MRe),q7=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,V7=wt,LW=(e,t)=>
vendor: 4,159 bytes, line 1417
1417r=>{var a;if(t?.variants==null)return V7(e,r?.class,r?.className);const{variants:n,defaultVariants:i}=t,o=Object.keys(n).map(u=>{const h=r?.[u],f=i?.[u];if(h===null)return null;const m=q7(h)||q7(f);return n[u][m]}),s=r&&Object.entries(r).reduce((u,h)=>{let[f,m]=h;return m===void 0||(u[f]=m),u},{}),c=t==null||(a=t.compoundVariants)===null||a===void 0?void 0:a.reduce((u,h)=>{let{class:f,className:m,...x}=h;return Object.entries(x).every(v=>{let[y,b]=v;return Array.isArray(b)?b.includes({...i,...s}[y]):{...i,...s}[y]===b})?[...u,f,m]:u},[]);return V7(e,o,c,r?.class,r?.className)},EMe=LW("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-transparent shadow-xs hover:bg-accent dark:bg-transparent dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function U7({className:e,variant:t,size:r,asChild:a=!1,...n}){const i=a?Z7:"button";return p.jsx(i,{"data-loc":"client/src/components/ui/button.tsx:52","data-slot":"button",className:ii(EMe({variant:t,size:r,className:e})),...n})}const AMe=LW("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function ou({className:e,variant:t,asChild:r=!1,...a}){const n=r?Z7:"span";return p.jsx(n,{"data-loc":"client/src/components/ui/badge.tsx:38","data-slot":"badge",className:ii(AMe({variant:t}),e),...a})}const CMe=[{id:"itaperuna-rj",municipio:"Itaperuna",estado:"RJ",tipoProjeto:"PPP de Iluminação Pública e Serviços Digitais",contrato:"Contrato n.º 06983/2025 â CAIXA / Consórcio Moysés & Pires, Andrax e Tecnia",status:"Em andamento",lat:-21.1244,lng:-41.8872,populacao:108300,idh:.73,prefeito:"Emanuel Medeiros da Silva (Nel) â PL",camaraVereadores:13,vereadorBaseGoverno:3,cenarioPolitico:"Desafiador â prefeito com minoria na câmara (3 de 13 vereadores)",principaisRiscos:["Vereador Eduardo do Toldo: principal fiscalizador de contratos","Grupos que confundem PPP com privatização","Expectativa de prazo imediato da população","Crise fiscal na saúde (dÃvida de R$ 238 milhões)"],oportunidades:["Segurança pública como narrativa central (Secretaria de Segurança recém-criada)","MunicÃpio entre os 10 mais bem avaliados pelo FIRJAN no RJ","IDEB 6,7 â referência educacional regional","Prefeito com presença fÃsica constante nos bairros"],casaDeMe
1417nsagem:{fundacao:"Dados do parque atual + marco legal PPP + garantias do modelo",pilares:["Segurança","Modernização","Eficiência","Abrangência territorial"],telhado:"Itaperuna mais segura, moderna e eficiente com a PPP de Iluminação Pública"},stakeholdersDestaque:[{nome:"Vereador Eduardo do Toldo",categoria:"Legislativo",perfil:"Resistente",estrategia:"Envio prévio de dados técnicos + convite para audiências"},{nome:"CDL Itaperuna",categoria:"Setor Produtivo",perfil:"Suporte e Adoção",estrategia:"Foco em segurança noturna e Smart City"},{nome:"Associações de Moradores (Matadouro, Surubi, Cehab)",categoria:"Sociedade Civil",perfil:"Simpatia",estrategia:"Narrativa de segurança e fim das ruas escuras"}],licoeAprendidas:["Antecipar o debate técnico com vereadores para esvaziar crÃticas sobre custos","Manter o serviço 'Vem Luz' durante a transição para gerenciar expectativas","Segurança pública é o argumento mais forte neste municÃpio","Diálogo já iniciado via redes sociais facilita a receptividade"]},{id:"valenca-ba",municipio:"Valença",estado:"BA",tipoProjeto:"PPP de Iluminação Pública",contrato:"Contrato CAIXA / Consórcio Moysés & Pires, Andrax e Tecnia",status:"Plano de Comunicação assinado",lat:-13.3697,lng:-39.0742,populacao:97e3,idh:.67,prefeito:"A confirmar",camaraVereadores:13,vereadorBaseGoverno:null,cenarioPolitico:"A mapear no kickoff",principaisRiscos:["MunicÃpio com menor IDH que Itaperuna â narrativa de desenvolvimento é central","Região turÃstica â impacto visual da iluminação é argumento forte"],oportunidades:["Potencial turÃstico: iluminação valoriza patrimônio histórico e natural","Região com forte identidade cultural â narrativa de valorização da cidade"],casaDeMensagem:{fundacao:"Dados do parque atual + marco legal PPP",pilares:["Turismo e valorização","Segurança","Modernização","Eficiência"],telhado:"Valença mais bonita, segura e moderna com a PPP de Iluminação Pública"},stakeholdersDestaque:[],licoeAprendidas:["Identidade visual do projeto deve refletir a identidade cultural do municÃpio","Turismo é argumento diferencial em municÃpios com vocação turÃstica"]},{id:"sao-bento-do-sul-sc",municipio:"São Bento do Sul",estado:"SC",tipoProjeto:"PPP de Iluminação Pública",contrato:"Em estruturação",status:"Plano de Comunicação elaborado",lat:-26.2506,lng:-49.3789,populacao:88e3,idh:.78,prefeito:"A confirmar",camaraVereadores:13,vereadorBaseGoverno:null,cenarioPolitico:"MunicÃpio industrial â base econômica forte",principaisRiscos:["MunicÃpio com forte presença industrial â setor produtivo exigente em dados técnicos","Alta renda per capita â população mais exigente em qualidade do serviço"],oportunidades:["IDH alto (0,78) â municÃpio com capacidade de pagamento robusta","Polo industrial â argumento de Smart City tem forte apelo","Região com forte identidade cultural europeia â valorização do patrimônio"],casaDeMensagem:{fundacao:"Dados do parque atual + marco legal PPP + capacidade fiscal do municÃpio",pilares:["Inovação e Smart City","Eficiência industrial","Qualidade de vida","Segurança"],telhado:"São Bento do Sul: cidade inovadora e eficiente com a PPP de Iluminação Pública"},stakeholdersDestaque:[],licoeAprendidas:["MunicÃpios industriais respondem melhor a argumentos técnicos e de eficiência","Smart City é o argumento central para municÃpios com alto IDH"]}],PMe={"itaperuna-rj":{municipio:"Itaperuna",estado:"RJ",tipoProjeto:"PPP de Iluminação Pública e Serviços Digitais",dataKickoff:"Fevereiro/2025",equipeConsultoria:["CAIXA Econômica Federal","Moysés & Pires","Andrax","Tecnia","PRINT Comunicação"],visaoGeral:{regiao:"Noroeste Fluminense",area:"1.106,694 km²",populacao:"108.300 hab. (IBGE 2024)",densidade:"97,8 hab/km²",distanciaCapital:"320 km do Rio de Janeiro",municipiosLimitrofes:"Limita com Minas Gerais (20 km) e EspÃrito Santo (30 km)",destaque:"Polo regional de serviços e comércio do Noroeste Fluminense"},perfilSocioeconomico:{idh:"0,73 (2010) â considerado alto para a região",pibPerCapita:"R$ 28.400 (estimado)",principaisAtividades:["Agropecuária","Comércio","Serviços","Ensino Superior"],ifdm:"6ª colocação entre municÃpios do RJ (2025) â único do Noroeste Fluminense com desenvolvimento moderado",ideb:"6,7 nos anos iniciais (2023) â entre os 3 mais altos do RJ",situacaoFiscal:"CRÃTICA: dÃvida de R$ 238 milhões na saúde, decreto de calamidade pública em jan/2025",transferencias:"Apoio do Governo do Estado: R$ 100 milhões anunciados para infraestrutura"},cenarioPolitico:{prefeito:"Emanuel Medeiros da Silva (Nel) â PL â 43,14% dos votos",vicePrefeito:"Jair Neto (PL)",coligacao:"Itaperuna de Todos Nós (PRTB, Solidariedade, PL, MDB)",camaraComposicao:"13 vereadores: PL (2), DC (2), MOBILIZA (2), UNIÃO (2), outros (5)",baseGoverno:"3 vereadores (Wellington do Guaritá/PL, Elia Cruz/PL, Barata da Saúde/Solidariedade)",vereadoresMaisVotados:"Sargento Cristiane (UNIÃO) â 1.821 votos (3,24%)",analise:"â ï¸ ATENÃÃO: Prefeito com minoria na câmara (3 de 13). Aprovação da Mensagem Executiva requer articulação polÃtica intensa.",historico:"Ex-prefeito Alfredão (União) derrotado por Nel com 10% a menos. Havia sido condenado por improbidade administrativa."},contextoPPP:{situacaoAtual:"Deficiências graves na iluminação pública â principal fonte de reclamação da população. Terminais de transporte mal equipados.",historicoPPP:"Nenhuma PPP anterior de iluminação pública",projetosAndamento:"Secretaria de Segurança Pública recém-criada. Apoio estadual de R$ 100 mi para infraestrutura.",prioridadesGestao:["Saúde pública (crise fiscal)","Segurança pública","Infraestrutura urbana"],relacaoEstado:"Positiva â apoio financeiro anunciado",programasFederais:"Contrato CAIXA n.º 06983/2025 para estruturação da PPP"},stakeholdersIniciais:[{nome:"Prefeito Nel Medeiros",cargo:"Prefeito",partido:"PL",perfil:"Compromisso e Defesa",prioridade:"Alta",observacao:"Presença fÃsica constante nos bairros. Narrativa de segurança ressoa bem."},{nome:"Vereador Eduardo do Toldo",cargo:"Vereador",partido:"A confirmar",perfil:"Resistente",prioridade:"Alta",observacao:"Principal fiscalizador de contratos. CrÃticas sobre custos e transparência virão dele."},{nome:"Sargento Cristiane",cargo:"Vereadora mais votada",partido:"UNIÃO",perfil:"Neutro",prioridade:"Alta",observacao:"Vereadora mais votada â sua posição influencia os demais."},{nome:"CDL Itaperuna",cargo:"Câmara de Dirigentes Lojistas",partido:"-",perfil:"Suporte e Adoção",prioridade:"Média",observacao:"Principal interessada no sucesso â segurança noturna e Smart City."},{nome:"Assoc. Comercial",cargo:"Associação Comercial",partido:"-",perfil:"Simpatia",prioridade:"Média",observacao:"Multiplicadora dos benefÃcios do projeto."},{nome:"Assoc. Moradores Matadouro",cargo:"Liderança comunitária",partido:"-",perfil:"Simpatia",prioridade:"Média",observacao:"Recebe queixas de ruas escuras â aliada natural."}
1417],riscos:[{nivel:"Alto",descricao:"Minoria na câmara â aprovação da Mensagem Executiva em risco",mitigacao:"Articulação polÃtica antecipada, reuniões individuais com vereadores"},{nivel:"Alto",descricao:"Crise fiscal na saúde â crÃticas sobre 'dinheiro para IP enquanto saúde está em colapso'",mitigacao:"Narrativa de que PPP não usa recursos da saúde â é investimento privado"},{nivel:"Médio",descricao:"Confusão entre PPP e privatização",mitigacao:"FAQ claro, reforço constante: 'municÃpio mantém controle'"},{nivel:"Médio",descricao:"Expectativa de solução imediata da população",mitigacao:"Manter serviço 'Vem Luz' durante transição, comunicar cronograma realista"}],oportunidades:["Segurança pública: narrativa central â Secretaria de Segurança recém-criada dá abertura perfeita","IDEB 6,7: cidade que investe em qualidade â argumento de modernização ressoa","FIRJAN top 10 no RJ: municÃpio de referência regional â PPP reforça esse posicionamento","Prefeito popular nos bairros: comunicação direta com a base é eficaz"],casaDeMensagem:{fundacao:"Parque de IP atual com deficiências documentadas + Lei 11.079/2004 + municÃpio mantém controle do serviço",pilares:["Segurança reforçada","Modernização tecnológica","Eficiência e economia","Abrangência total do território"],telhado:"Itaperuna mais segura, moderna e eficiente â a PPP de Iluminação Pública é o próximo passo do desenvolvimento da cidade"},recomendacoesKickoff:["Tom: técnico e confiante, mas acessÃvel. Evitar jargão jurÃdico excessivo.","Priorizar: apresentação dos benefÃcios de segurança antes dos aspectos técnicos","Evitar: antecipar valores do contrato ou datas de obras sem dados confirmados","Perguntas prováveis: 'Quanto vai custar?', 'A câmara vai aprovar?', 'Quando começa?'","Porta-vozes: Prefeito para narrativa polÃtica; CAIXA para aspectos técnicos/jurÃdicos","Ação imediata pós-kickoff: agendar reuniões individuais com os 3 vereadores da base"]},"valenca-ba":{municipio:"Valença",estado:"BA",tipoProjeto:"PPP de Iluminação Pública",dataKickoff:"Novembro/2025",equipeConsultoria:["CAIXA Econômica Federal","Moysés & Pires","Andrax","Tecnia","PRINT Comunicação"],visaoGeral:{regiao:"Baixo Sul da Bahia",area:"1.135 km²",populacao:"97.000 hab. (estimado)",densidade:"85,4 hab/km²",distanciaCapital:"280 km de Salvador",municipiosLimitrofes:"Taperoá, Nilo Peçanha, Ituberá",destaque:"Polo turÃstico e histórico do Baixo Sul baiano"},perfilSocioeconomico:{idh:"0,67 (2010)",pibPerCapita:"R$ 18.200 (estimado)",principaisAtividades:["Turismo","Pesca","Agropecuária","Comércio"],ifdm:"Desenvolvimento moderado",ideb:"A confirmar",situacaoFiscal:"Capacidade fiscal moderada â municÃpio dependente de transferências",transferencias:"FPM e transferências estaduais como principais fontes"},cenarioPolitico:{prefeito:"A confirmar no kickoff",vicePrefeito:"A confirmar",coligacao:"A confirmar",camaraComposicao:"13 vereadores â composição a mapear",baseGoverno:"A mapear",vereadoresMaisVotados:"A mapear",analise:"Cenário polÃtico a ser mapeado no kickoff com apoio do ponto focal da Prefeitura",historico:"MunicÃpio com forte tradição polÃtica regional"},contextoPPP:{situacaoAtual:"Iluminação pública com deficiências â impacto no turismo noturno e segurança",historicoPPP:"Nenhuma PPP anterior de iluminação pública",projetosAndamento:"Projetos de turismo e infraestrutura em andamento",prioridadesGestao:["Turismo","Infraestrutura","Segurança"],relacaoEstado:"A confirmar",programasFederais:"Contrato CAIXA para estruturação da PPP"},stakeholdersIniciais:[{nome:"Prefeito Municipal",cargo:"Prefeito",partido:"A confirmar",perfil:"Compromisso e Defesa",prioridade:"Alta",observacao:"Principal defensor do projeto"},{nome:"Setor de Turismo",cargo:"Entidade do setor",partido:"-",perfil:"Simpatia",prioridade:"Alta",observacao:"Iluminação impacta diretamente o turismo noturno"},{nome:"Câmara de Vereadores",cargo:"Poder Legislativo",partido:"Vários",perfil:"Neutro",prioridade:"Alta",observacao:"Aprovação da Mensagem Executiva necessária"}],riscos:[{nivel:"Médio",descricao:"IDH mais baixo â narrativa de custo pode gerar resistência",mitigacao:"Enfatizar que PPP não aumenta impostos, é investimento privado"},{nivel:"Médio",descricao:"Dependência de transferências â questionamentos sobre capacidade de pagamento",mitigacao:"Apresentar modelagem financeira clara e garantias do contrato"}],oportunidades:["Turismo: iluminação valoriza patrimônio histórico e natural â argumento diferencial","Identidade cultural forte: narrativa de valorização da cidade ressoa bem","Região com potencial de crescimento â PPP como alavanca de desenvolvimento"],casaDeMe
1417nsagem:{fundacao:"Parque de IP atual com deficiências + Lei 11.079/2004 + impacto no turismo",pilares:["Valorização do turismo","Segurança","Modernização","Eficiência"],telhado:"Valença mais bonita, segura e atrativa â a PPP de Iluminação Pública impulsiona o turismo e a qualidade de vida"},recomendacoesKickoff:["Tom: entusiasmado com o potencial turÃstico e de desenvolvimento","Priorizar: impacto da iluminação no turismo e na valorização do patrimônio","Mapear: composição da câmara e perfil polÃtico no próprio kickoff","Ação imediata: identificar ponto focal da Prefeitura e secretário responsável"]},"sao-bento-do-sul-sc":{municipio:"São Bento do Sul",estado:"SC",tipoProjeto:"PPP de Iluminação Pública",dataKickoff:"Novembro/2025",equipeConsultoria:["CAIXA Econômica Federal","Moysés & Pires","Andrax","Tecnia","PRINT Comunicação"],visaoGeral:{regiao:"Norte Catarinense",area:"459 km²",populacao:"88.000 hab. (estimado)",densidade:"191,7 hab/km²",distanciaCapital:"200 km de Florianópolis",municipiosLimitrofes:"Campo Alegre, Rio Negrinho, Mafra",destaque:"Polo moveleiro nacional â forte base industrial e alta renda per capita"},perfilSocioeconomico:{idh:"0,78 (2010) â alto",pibPerCapita:"R$ 52.000 (estimado) â acima da média nacional",principaisAtividades:["Indústria moveleira","Metalurgia","Comércio","Serviços"],ifdm:"Alto desenvolvimento â referência em SC",ideb:"Acima da média estadual",situacaoFiscal:"Sólida â municÃpio com boa arrecadação própria e baixa dependência de transferências",transferencias:"Receita própria robusta via ICMS industrial"},cenarioPolitico:{prefeito:"A confirmar no kickoff",vicePrefeito:"A confirmar",coligacao:"A confirmar",camaraComposicao:"13 vereadores â composição a mapear",baseGoverno:"A mapear",vereadoresMaisVotados:"A mapear",analise:"MunicÃpio com tradição de gestão técnica e profissional â expectativa alta de qualidade",historico:"Forte influência da comunidade industrial nas decisões polÃticas"},contextoPPP:{situacaoAtual:"Parque de iluminação pública envelhecido â oportunidade de modernização para Smart City",historicoPPP:"Nenhuma PPP anterior de iluminação pública",projetosAndamento:"Projetos de desenvolvimento industrial e infraestrutura",prioridadesGestao:["Inovação e tecnologia","Infraestrutura industrial","Qualidade de vida"],relacaoEstado:"Positiva â municÃpio referência em SC",programasFederais:"Contrato CAIXA para estruturação da PPP"},stakeholdersIniciais:[{nome:"Prefeito Municipal",cargo:"Prefeito",partido:"A confirmar",perfil:"Compromisso e Defesa",prioridade:"Alta",observacao:"Gestor técnico â responde bem a dados e eficiência"},{nome:"Associação Industrial",cargo:"Entidade industrial",partido:"-",perfil:"Suporte e Adoção",prioridade:"Alta",observacao:"Smart City é argumento central para o setor industrial"},{nome:"CDL São Bento do Sul",cargo:"Câmara de Dirigentes Lojistas",partido:"-",perfil:"Simpatia",prioridade:"Média",observacao:"Segurança e modernização do comércio"}],riscos:[{nivel:"Baixo",descricao:"Capacidade fiscal sólida â menor resistência financeira",mitigacao:"Apresentar a modelagem como investimento estratégico, não como custo"},{nivel:"Médio",descricao:"Expectativa alta de qualidade técnica â exigência maior nos dados",mitigacao:"Apresentação técnica detalhada, com benchmarks de cidades similares"}],oportunidades:["IDH alto: população exigente que valoriza inovação e qualidade â Smart City é o argumento central","Base industrial forte: iluminação inteligente integrada à logÃstica industrial","Capacidade fiscal robusta: menor resistência a custos, maior foco em qualidade","Referência regional: PPP posiciona SBS como modelo para outros municÃpios catarinenses"],casaDeMensagem:{fundacao:"Parque de IP envelhecido + Lei 11.079/2004 + capacidade fiscal do municÃpio",pilares:["Inovação e Smart City","Eficiência industrial","Qualidade de vida","Liderança regional"],telhado:"São Bento do Sul: cidade inovadora e eficiente â a PPP de Iluminação Pública é o próximo passo para a cidade inteligente"},recomendacoesKickoff:["Tom: técnico, inovador e orientado a dados â este público exige substância","Priorizar: Smart City, eficiência energética, benchmarks de cidades similares","Trazer: dados comparativos com municÃpios industriais que já implementaram PPP de IP","Ação imediata: identificar interlocutor na Associação Industrial para apoio técnico"]}},jMe={Alto:"bg-red-100 text-red-800 border-red-200",Médio:"bg-amber-100 text-amber-800 border-amber-200",Baixo:"bg-green-100 text-green-800 border-green-200"},NMe={"Compromisso e Defesa":"bg-[#2D4A2D] text-white","Suporte e Adoção":"bg-[#7A8C5E] text-white",Simpatia:"bg-[#A8B89A] text-[#2D4A2D]",Neutro:"bg-gray-200 text-gray-700",Resistente:"bg-red-100 text-red-800"};function TMe(){const[e,t]=L.useState("itaperuna-rj"),[r,a]=L.useState({visaoGeral:!0,perfilSocioeconomico:!0,cenarioPolitico:!0,contextoPPP:!1,stakeholders:!0,riscos:!0,oportunidades:!0,casaDeMe
1417nsagem:!0,recomendacoes:!0}),n=kMe[e];function i(c){a(u=>({...u,[c]:!u[c]}))}function o(){je.info("Abrindo janela de impressão..."),window.print()}function s(){je.success("Briefing exportado como PDF â funcionalidade em desenvolvimento")}return p.jsxs("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:301",className:"min-h-screen bg-[#EDE9DF]",children:[p.jsx("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:303",className:"bg-[#2D4A2D] text-white px-8 py-6",children:p.jsxs("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:304",className:"max-w-5xl mx-auto",children:[p.jsxs("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:305",className:"flex items-center justify-between mb-4",children:[p.jsxs("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:306",className:"flex items-center gap-3",children:[p.jsx("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:307",className:"w-10 h-10 bg-white/10 rounded-lg flex items-center justify-center",children:p.jsx(Op,{"data-loc":"client/src/pages/BriefingKickoff.tsx:308",className:"w-5 h-5 text-white"})}),p.jsxs("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:310",children:[p.jsx("h1",{"data-loc":"client/src/pages/BriefingKickoff.tsx:311",className:"text-xl font-bold tracking-tight",children:"Briefing Pré-Kickoff"}),p.jsx("p",{"data-loc":"client/src/pages/BriefingKickoff.tsx:312",className:"text-white/60 text-sm",children:"Inteligência de municÃpio para a equipe da consultoria"})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:315",className:"flex gap-2",children:[p.jsxs(U7,{"data-loc":"client/src/pages/BriefingKickoff.tsx:316",variant:"outline",size:"sm",className:"bg-white/10 border-white/20 text-white hover:bg-white/20",onClick:o,children:[p.jsx(lte,{"data-loc":"client/src/pages/BriefingKickoff.tsx:322",className:"w-4 h-4 mr-2"}),"Imprimir"]}),p.jsxs(U7,{"data-loc":"client/src/pages/BriefingKickoff.tsx:325",size:"sm",className:"bg-white text-[#2D4A2D] hover:bg-white/90",onClick:s,children:[p.jsx(Yl,{"data-loc":"client/src/pages/BriefingKickoff.tsx:330",className:"w-4 h-4 mr-2"}),"Exportar PDF"]})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:337",className:"flex gap-3 flex-wrap",children:[CMe.map(c=>p.jsxs("button",{"data-loc":"client/src/pages/BriefingKickoff.tsx:339",onClick:()=>t(c.id),className:`px-4 py-2 rounded-lg text-sm font-medium transition-all ${e===c.id?"bg-white text-[#2D4A2D]":"bg-white/10 text-white/80 hover:bg-white/20"}`,children:[c.municipio,"/",c.estado]},c.id)),p.jsx("button",{"data-loc":"client/src/pages/BriefingKickoff.tsx:351",onClick:()=>je.info("Novo municÃpio â use o botão + Novo Projeto para criar"),className:"px-4 py-2 rounded-lg text-sm font-medium bg-white/5 text-white/50 border border-white/20 border-dashed hover:bg-white/10",children:"+ Novo municÃpio"})]})]})}),n&&p.jsxs("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:363",className:"max-w-5xl mx-auto px-8 py-8 space-y-4",children:[p.jsxs($j.div,{"data-loc":"client/src/pages/BriefingKickoff.tsx:365",initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"bg-white rounded-2xl p-6 border border-[#2D4A2D]/10 shadow-sm",children:[p.jsxs("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:370",className:"flex items-start justify-between",children:[p.jsxs("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:371",children:[p.jsxs("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:372",className:"flex items-center gap-2 mb-1",children:[p.jsx(Zl,{"data-loc":"client/src/pages/BriefingKickoff.tsx:373",className:"w-4 h-4 text-[#7A8C5E]"}),p.jsx("span",{"data-loc":"client/src/pages/BriefingKickoff.tsx:374",className:"text-sm text-[#7A8C5E] font-medium",children:n.tipoProjeto})]}),p.jsxs("h2",{"data-loc":"client/src/pages/BriefingKickoff.tsx:376",className:"text-3xl font-black text-[#2D4A2D] tracking-tight",children:[n.municipio," / ",n.estado]}),p.jsxs("p",{"data-loc":"client/src/pages/BriefingKickoff.tsx:379",className:"text-[#7A8C5E] mt-1",children:["Kickoff: ",n.dataKickoff]})]}),p.jsxs("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:381",className:"text-right",children:[p.jsx("p",{"data-loc":"client/src/pages/BriefingKickoff.tsx:382",className:"text-xs text-[#7A8C5E] mb-2",children:"Equipe da consultoria"}),p.jsx("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:383",className:"flex flex-wrap gap-1 justify-end",children:n.equipeConsultoria.map(c=>p.jsx(ou,{"data-loc":"client/src/pages/BriefingKickoff.tsx:385",variant:"outline",className:"text-xs border-[#2D4A2D]/20 text-[#2D4A2D]",children:c},c))})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:394",className:"mt-4 pt-4 border-t border-[#
1417EDE9DF] grid grid-cols-3 gap-3",children:[p.jsxs("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:395",className:"bg-red-50 rounded-xl p-3 border border-red-100",children:[p.jsxs("p",{"data-loc":"client/src/pages/BriefingKickoff.tsx:396",className:"text-xs text-red-600 font-semibold mb-1 flex items-center gap-1",children:[p.jsx(ho,{"data-loc":"client/src/pages/BriefingKickoff.tsx:397",className:"w-3 h-3"})," Riscos altos"]}),p.jsx("p",{"data-loc":"client/src/pages/BriefingKickoff.tsx:399",className:"text-2xl font-black text-red-700",children:n.riscos.filter(c=>c.nivel==="Alto").length})]}),p.jsxs("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:403",className:"bg-amber-50 rounded-xl p-3 border border-amber-100",children:[p.jsxs("p",{"data-loc":"client/src/pages/BriefingKickoff.tsx:404",className:"text-xs text-amber-600 font-semibold mb-1 flex items-center gap-1",children:[p.jsx(xn,{"data-loc":"client/src/pages/BriefingKickoff.tsx:405",className:"w-3 h-3"})," Stakeholders mapeados"]}),p.jsx("p",{"data-loc":"client/src/pages/BriefingKickoff.tsx:407",className:"text-2xl font-black text-amber-700",children:n.stakeholdersIniciais.length})]}),p.jsxs("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:411",className:"bg-green-50 rounded-xl p-3 border border-green-100",children:[p.jsxs("p",{"data-loc":"client/src/pages/BriefingKickoff.tsx:412",className:"text-xs text-green-600 font-semibold mb-1 flex items-center gap-1",children:[p.jsx(Ip,{"data-loc":"client/src/pages/BriefingKickoff.tsx:413",className:"w-3 h-3"})," Oportunidades"]}),p.jsx("p",{"data-loc":"client/src/pages/BriefingKickoff.tsx:415",className:"text-2xl font-black text-green-700",children:n.oportunidades.length})]})]})]}),p.jsx(us,{"data-loc":"client/src/pages/BriefingKickoff.tsx:423",id:"visaoGeral",titulo:"1. Visão Geral do MunicÃpio",icone:p.jsx(Es,{"data-loc":"client/src/pages/BriefingKickoff.tsx:426",className:"w-5 h-5"}),aberta:r.visaoGeral,onToggle:()=>i("visaoGeral"),children:p.jsx("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:430",className:"grid grid-cols-2 gap-3",children:Object.entries(n.visaoGeral).map(([c,u])=>p.jsxs("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:432",className:"bg-[#EDE9DF]/50 rounded-xl p-3",children:[p.jsx("p",{"data-loc":"client/src/pages/BriefingKickoff.tsx:433",className:"text-xs text-[#7A8C5E] font-semibold mb-1 capitalize",children:c.replace(/([A-Z])/g," $1").toLowerCase()}),p.jsx("p",{"data-loc":"client/src/pages/BriefingKickoff.tsx:436",className:"text-sm text-[#2D4A2D] font-medium",children:u})]},c))})}),p.jsx(us,{"data-loc":"client/src/pages/BriefingKickoff.tsx:443",id:"perfilSocioeconomico",titulo:"2. Perfil Socioeconômico",icone:p.jsx(Nl,{"data-loc":"client/src/pages/BriefingKickoff.tsx:446",className:"w-5 h-5"}),aberta:r.perfilSocioeconomico,onToggle:()=>i("perfilSocioeconomico"),children:p.jsx("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:450",className:"grid grid-cols-2 gap-3",children:Object.entries(n.perfilSocioeconomico).map(([c,u])=>p.jsxs("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:452",className:`bg-[#EDE9DF]/50 rounded-xl p-3 ${Array.isArray(u)?"col-span-2":""}`,children:[p.jsx("p",{"data-loc":"client/src/pages/BriefingKickoff.tsx:453",className:"text-xs text-[#7A8C5E] font-semibold mb-1 capitalize",children:c.replace(/([A-Z])/g," $1").toLowerCase()}),Array.isArray(u)?p.jsx("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:457",className:"flex flex-wrap gap-2",children:u.map((h,f)=>p.jsx(ou,{"data-loc":"client/src/pages/BriefingKickoff.tsx:459",variant:"outline",className:"text-xs border-[#7A8C5E]/30 text-[#2D4A2D]",children:h},f))}):p.jsx("p",{"data-loc":"client/src/pages/BriefingKickoff.tsx:463",className:`text-sm font-medium ${u.includes("CRÃTICA")?"text-red-700":"text-[#2D4A2D]"}`,children:u})]},c))})}),p.jsx(us,{"data-loc":"client/src/pages/BriefingKickoff.tsx:471",id:"cenarioPolitico",titulo:"3. Cenário PolÃtico",icone:p.jsx(ete,{"data-loc":"client/src/pages/BriefingKickoff.tsx:474",className:"w-5 h-5"}),aberta:r.cenarioPolitico,onToggle:()=>i("cenarioPolitico"),destaque:!0,children:p.jsx("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:479",className:"space-y-3",children:Object.entries(n.cenarioPolitico).map(([c,u])=>p.jsxs("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:481",className:`rounded-xl p-3 ${c==="analise"?"bg-amber-50 border border-amber-200":"bg-[#EDE9DF]/50"}`,children:[p.jsx("p",{"data-loc":"client/src/pages/BriefingKickoff.tsx:482",className:"text-xs text-[#7A8C5E] font-semibold mb-1 capitalize",children:c.replace(/([A-Z])/g," $1").toLowerCase()}),p.jsx("p",{"data-loc":"client/src/pages/BriefingKickoff.tsx:485",className:`text-sm font-medium ${c==="analise"?"text-amber-800":"text-[#2D4A2D]"}`,children:u})]},c))})}),p.jsx(us,{"data-loc":"client/src/pages/BriefingKickoff.tsx:492",id:"stakeholders",titulo:"4. Mapeamento Inicial de Stakeholders",icone:p.jsx(xn,{"data-loc":"client/src/pages/BriefingKickoff.tsx:495",className:"w-5 h-5"}
1417),aberta:r.stakeholders,onToggle:()=>i("stakeholders"),destaque:!0,children:p.jsx("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:500",className:"space-y-2",children:n.stakeholdersIniciais.map((c,u)=>p.jsxs("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:502",className:"bg-[#EDE9DF]/50 rounded-xl p-4 flex items-start gap-4",children:[p.jsx("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:503",className:"w-8 h-8 rounded-full bg-[#2D4A2D]/10 flex items-center justify-center flex-shrink-0 mt-0.5",children:p.jsx("span",{"data-loc":"client/src/pages/BriefingKickoff.tsx:504",className:"text-xs font-bold text-[#2D4A2D]",children:c.nome.charAt(0)})}),p.jsxs("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:506",className:"flex-1 min-w-0",children:[p.jsxs("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:507",className:"flex items-center gap-2 flex-wrap mb-1",children:[p.jsx("p",{"data-loc":"client/src/pages/BriefingKickoff.tsx:508",className:"text-sm font-bold text-[#2D4A2D]",children:c.nome}),p.jsx(ou,{"data-loc":"client/src/pages/BriefingKickoff.tsx:509",variant:"outline",className:"text-xs border-[#7A8C5E]/30 text-[#7A8C5E]",children:c.cargo}),c.partido!=="-"&&p.jsx(ou,{"data-loc":"client/src/pages/BriefingKickoff.tsx:511",variant:"outline",className:"text-xs",children:c.partido}),p.jsx("span",{"data-loc":"client/src/pages/BriefingKickoff.tsx:513",className:`text-xs px-2 py-0.5 rounded-full font-medium ${NMe[c.perfil]||"bg-gray-100 text-gray-700"}`,children:c.perfil}),p.jsxs(ou,{"data-loc":"client/src/pages/BriefingKickoff.tsx:516",className:`text-xs ${c.prioridade==="Alta"?"bg-red-100 text-red-700":"bg-amber-100 text-amber-700"}`,children:["Prioridade ",c.prioridade]})]}),p.jsx("p",{"data-loc":"client/src/pages/BriefingKickoff.tsx:520",className:"text-xs text-[#7A8C5E]",children:c.observacao})]})]},u))})}),p.jsx(us,{"data-loc":"client/src/pages/BriefingKickoff.tsx:528",id:"riscos",titulo:"5. Riscos de Comunicação",icone:p.jsx(jo,{"data-loc":"client/src/pages/BriefingKickoff.tsx:531",className:"w-5 h-5"}),aberta:r.riscos,onToggle:()=>i("riscos"),children:p.jsx("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:535",className:"space-y-3",children:n.riscos.map((c,u)=>p.jsxs("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:537",className:"rounded-xl p-4 bg-[#EDE9DF]/50 border-l-4 border-[#2D4A2D]/20",children:[p.jsxs("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:538",className:"flex items-center gap-2 mb-2",children:[p.jsx("span",{"data-loc":"client/src/pages/BriefingKickoff.tsx:539",className:`text-xs px-2 py-0.5 rounded-full font-semibold border ${jMe[c.nivel]}`,children:c.nivel}),p.jsx("p",{"data-loc":"client/src/pages/BriefingKickoff.tsx:542",className:"text-sm font-semibold text-[#2D4A2D]",children:c.descricao})]}),p.jsxs("p",{"data-loc":"client/src/pages/BriefingKickoff.tsx:544",className:"text-xs text-[#7A8C5E]",children:[p.jsx("span",{"data-loc":"client/src/pages/BriefingKickoff.tsx:545",className:"font-semibold",children:"Mitigação: "}),c.mitigacao]})]},u))})}),p.jsx(us,{"data-loc":"client/src/pages/BriefingKickoff.tsx:553",id:"oportunidades",titulo:"6. Oportunidades de Comunicação",icone:p.jsx(Ip,{"data-loc":"client/src/pages/BriefingKickoff.tsx:556",className:"w-5 h-5"}),aberta:r.oportunidades,onToggle:()=>i("oportunidades"),children:p.jsx("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:560",className:"space-y-2",children:n.oportunidades.map((c,u)=>p.jsxs("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:562",className:"flex items-start gap-3 bg-green-50 rounded-xl p-3 border border-green-100",children:[p.jsx(ta,{"data-loc":"client/src/pages/BriefingKickoff.tsx:563",className:"w-4 h-4 text-green-600 flex-shrink-0 mt-0.5"}),p.jsx("p",{"data-loc":"client/src/pages/BriefingKickoff.tsx:564",className:"text-sm text-green-800",children:c})]},u))})}),p.jsx(us,{"data-loc":"client/src/pages/BriefingKickoff.tsx:571",id:"casaDeMensagem",titulo:"7. Casa de Mensagem â Narrativa do Projeto",icone:p.jsx(rte,{"data-loc":"client/src/pages/BriefingKickoff.tsx:574",className:"w-5 h-5"}
1417),aberta:r.casaDeMensagem,onToggle:()=>i("casaDeMensagem"),destaque:!0,children:p.jsxs("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:579",className:"space-y-3",children:[p.jsxs("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:581",className:"bg-[#2D4A2D] text-white rounded-xl p-4",children:[p.jsx("p",{"data-loc":"client/src/pages/BriefingKickoff.tsx:582",className:"text-xs text-white/60 font-semibold mb-1 uppercase tracking-wider",children:"Telhado â Narrativa Central"}),p.jsxs("p",{"data-loc":"client/src/pages/BriefingKickoff.tsx:583",className:"text-base font-bold",children:['"',n.casaDeMensagem.telhado,'"']})]}),p.jsxs("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:586",className:"bg-[#7A8C5E]/20 rounded-xl p-4",children:[p.jsx("p",{"data-loc":"client/src/pages/BriefingKickoff.tsx:587",className:"text-xs text-[#7A8C5E] font-semibold mb-2 uppercase tracking-wider",children:"Pilares de Argumentação"}),p.jsx("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:588",className:"flex flex-wrap gap-2",children:n.casaDeMensagem.pilares.map((c,u)=>p.jsx(ou,{"data-loc":"client/src/pages/BriefingKickoff.tsx:590",className:"bg-[#7A8C5E] text-white text-sm px-3 py-1",children:c},u))})]}),p.jsxs("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:595",className:"bg-[#EDE9DF] rounded-xl p-4 border border-[#2D4A2D]/10",children:[p.jsx("p",{"data-loc":"client/src/pages/BriefingKickoff.tsx:596",className:"text-xs text-[#7A8C5E] font-semibold mb-1 uppercase tracking-wider",children:"Fundação â Dados Incontestáveis"}),p.jsx("p",{"data-loc":"client/src/pages/BriefingKickoff.tsx:597",className:"text-sm text-[#2D4A2D]",children:n.casaDeMensagem.fundacao})]})]})}),p.jsx(us,{"data-loc":"client/src/pages/BriefingKickoff.tsx:603",id:"recomendacoes",titulo:"8. Recomendações para o Kickoff",icone:p.jsx(_x,{"data-loc":"client/src/pages/BriefingKickoff.tsx:606",className:"w-5 h-5"}),aberta:r.recomendacoes,onToggle:()=>i("recomendacoes"),destaque:!0,children:p.jsx("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:611",className:"space-y-2",children:n.recomendacoesKickoff.map((c,u)=>p.jsxs("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:613",className:"flex items-start gap-3 bg-[#EDE9DF]/70 rounded-xl p-3",children:[p.jsx("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:614",className:"w-5 h-5 rounded-full bg-[#2D4A2D] text-white flex items-center justify-center flex-shrink-0 mt-0.5 text-xs font-bold",children:u+1}),p.jsx("p",{"data-loc":"client/src/pages/BriefingKickoff.tsx:617",className:"text-sm text-[#2D4A2D]",children:c})]},u))})}),p.jsxs("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:624",className:"bg-[#2D4A2D]/5 rounded-2xl p-4 text-center border border-[#2D4A2D]/10",children:[p.jsx("p",{"data-loc":"client/src/pages/BriefingKickoff.tsx:625",className:"text-xs text-[#7A8C5E]",children:"Briefing gerado pela PRINT Comunicação · Confidencial â uso interno da equipe de consultoria"}),p.jsx("p",{"data-loc":"client/src/pages/BriefingKickoff.tsx:628",className:"text-xs text-[#7A8C5E] mt-1",children:"Fontes: IBGE, TSE, FIRJAN, INEP, Portal da Transparência, RADAR PPP e pesquisa PRINT"})]})]})]})}function us({id:e,titulo:t,icone:r,aberta:a,onToggle:n,children:i,destaque:o=!1}){return p.jsxs($j.div,{"data-loc":"client/src/pages/BriefingKickoff.tsx:651",initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:`bg-white rounded-2xl border shadow-sm overflow-hidden ${o?"border-[#2D4A2D]/20":"border-[#2D4A2D]/10"}`,children:[p.jsxs("button",{"data-loc":"client/src/pages/BriefingKickoff.tsx:658",onClick:n,className:"w-full flex items-center justify-between p-5 hover:bg-[#EDE9DF]/30 transition-colors",children:[p.jsxs("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:662",className:"flex items-center gap-3",children:[p.jsx("div",{"data-loc":"client/src/pages/BriefingKickoff.tsx:663",className:`w-8 h-8 rounded-lg flex items-center justify-center ${o?"bg-[#2D4A2D] text-white":"bg-[#EDE9DF] text-[#2D4A2D]"}`,children:r}),p.jsx("h3",{"data-loc":"client/src/pages/BriefingKickoff.tsx:668",className:"text-base font-bold text-[#2D4A2D]",children:t})]}),a?p.jsx(Sd,{"data-loc":"client/src/pages/BriefingKickoff.tsx:671",className:"w-4 h-4 text-[#7A8C5E]"}):p.jsx(Xl,{"data-loc":"client/src/pages/BriefingKickoff.tsx:673",className:"w-4 h-4 text-[#7A8C5E]"})]}),p.jsx(U3e,{"data-loc":"client/src/pages/BriefingKickoff.tsx:676",children:a&&p.jsx($j.div,{"data-loc":"client/src/pages/BriefingKickoff.tsx:678",initial:{height:0,opacity:0}
1417,animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},className:"px-5 pb-5",children:i})})]})}const kMe=PMe,hl=[{id:"capa",titulo:"Capa do Boletim",subtitulo:"Identidade visual e apresentação do projeto",icon:p.jsx(_x,{"data-loc":"client/src/pages/Boletim.tsx:36",size:14}),tipo:"capa",statusIA:"aprovado",conteudo:`PPP DE ILUMINAÃÃO PÃBLICA E CIDADES INTELIGENTES 1418MunicÃpio de Itaperuna â Rio de Janeiro 1419Ano: 2026 1420 1421Parceiros Institucionais: 1422⸠Prefeitura Municipal de Itaperuna 1423⸠Caixa Econômica Federal 1424⸠Moysés & Pires Sociedade de Advogados 1425⸠KMR Energia e Meio Ambiente 1426⸠PRINT Comunicação`,destaque:"Estruturação PPP Iluminação Pública e Cidades Inteligentes â Itaperuna/RJ"},{id:"apresentacao",titulo:"Apresentação do Projeto",subtitulo:"O que é e por que Itaperuna está estruturando esta PPP",icon:p.jsx(Rx,{"data-loc":"client/src/pages/Boletim.tsx:55",size:14}),tipo:"texto-foto",statusIA:"aprovado",conteudo:`O que é a PPP de Iluminação Pública? 1427 1428A Parceria Público-Privada (PPP) de Iluminação Pública é um modelo de contrato de longo prazo (20 a 30 anos) pelo qual o municÃpio contrata uma empresa privada para modernizar, operar e manter toda a rede de iluminação pública. 1429 1430Por que Itaperuna está fazendo isso? 1431 1432Itaperuna possui hoje aproximadamente 12.000 pontos de iluminação pública, a maioria com tecnologia obsoleta e alto consumo de energia. A PPP permitirá: 1433 1434⸠Substituição de 100% das lâmpadas por tecnologia LED 1435⸠Redução de até 60% no consumo de energia elétrica 1436⸠Implantação de sensores e câmeras (Cidades Inteligentes) 1437⸠Manutenção garantida por contrato â sem buracos no escuro
1438⸠Wi-Fi público em pontos estratégicos da cidade 1439 1440O projeto é estruturado com apoio técnico da Caixa Econômica Federal e assessoria jurÃdica especializada, garantindo total conformidade legal e transparência.`,destaque:"Mais de 12.000 pontos de luz modernizados com tecnologia LED e Cidades Inteligentes."},{id:"beneficios",titulo:"BenefÃcios para a Cidade",subtitulo:"O que muda na vida do cidadão de Itaperuna",icon:p.jsx(ta,{"data-loc":"client/src/pages/Boletim.tsx:79",size:14}),tipo:"lista",statusIA:"aprovado",conteudo:`PARA O CIDADÃO: 1441⸠Ruas mais iluminadas = mais segurança para quem trabalha, estuda ou circula à noite 1442⸠Redução de acidentes de trânsito em vias mal iluminadas 1443⸠Wi-Fi gratuito em praças e pontos de ônibus 1444⸠Câmeras de monitoramento para maior segurança pública 1445⸠Resposta rápida a falhas â canal direto para reportar problemas 1446 1447PARA A PREFEITURA: 1448⸠Economia de até 60% na conta de energia pública (COSIP) 1449⸠Sem necessidade de investimento inicial â empresa privada arca com os custos 1450⸠Manutenção garantida por contrato â responsabilidade da concessionária 1451⸠Modernização sem endividamento do municÃpio 1452 1453PARA O MEIO AMBIENTE: 1454⸠Redução de até 840 toneladas de COâ por ano 1455⸠Descarte correto das lâmpadas antigas 1456⸠Menor poluição luminosa com iluminação inteligente 1457 1458PARA A ECONOMIA LOCAL: 1459⸠Geração de empregos locais na fase de implantação 1460⸠Atração de investimentos pela imagem de cidade moderna 1461⸠Valorização imobiliária nas áreas beneficiadas`,destaque:"Economia de até 60% na conta de energia pública, com manutenção garantida por contrato."}
1461,{id:"tecnologia",titulo:"Tecnologia LED e Cidades Inteligentes",subtitulo:"Inovação que transforma Itaperuna em referência regional",icon:p.jsx(Rx,{"data-loc":"client/src/pages/Boletim.tsx:110",size:14}),tipo:"dois-blocos",statusIA:"aprovado",conteudo:`TECNOLOGIA LED: 1462A substituição das lâmpadas convencionais por LED representa um salto tecnológico e econômico. As luminárias LED têm: 1463⸠Vida útil 5x maior que as lâmpadas convencionais 1464⸠Consumo 60% menor de energia elétrica 1465⸠Melhor qualidade de luz (Ãndice de reprodução de cores superior) 1466⸠Controle remoto de intensidade (dimmer inteligente) 1467⸠Manutenção preditiva via sensores 1468 1469CIDADES INTELIGENTES: 1470Além da iluminação, o projeto prevê infraestrutura para: 1471⸠Câmeras de videomonitoramento integradas aos postes 1472⸠Sensores ambientais (temperatura, qualidade do ar) 1473⸠Pontos de Wi-Fi público gratuito 1474⸠Conectividade para futuras soluções de mobilidade urbana 1475⸠Central de monitoramento 24h 1476 1477REFERÃNCIA REGIONAL: 1478Venda Nova do Imigrante/ES â 1ª Cidade Inteligente do EspÃrito Santo â reduziu 76% nos furtos de veÃculos após implantação de câmeras integradas à iluminação LED. Itaperuna tem o potencial de ser referência no Estado do Rio de Janeiro.`,destaque:"Itaperuna tem o potencial de ser a 1ª Cidade Inteligente do Noroeste Fluminense."},{id:"cronograma",titulo:"Cronograma do Projeto",subtitulo:"Etapas e prazos da estruturação da PPP",icon:p.jsx(wd,{"data-loc":"client/src/pages/Boletim.tsx:137",size:14}),tipo:"cronograma",statusIA:"aprovado",conteudo:`ETAPA 1 â ESTRUTURAÃÃO (JanâAbr 2026) 1479⸠Elaboração do EVTEA (Estudo de Viabilidade Técnica, Econômica e Ambiental) 1480⸠Minuta do Contrato de PPP 1481⸠Elaboração do Edital 1482⸠Aprovação interna pela Prefeitura 1483⸠Envio à Câmara Municipal (Mensagem Executiva) 1484 1485ETAPA 2 â CONSULTA E AUDIÃNCIA PÃBLICA (MaiâJul 2026) 1486⸠Lançamento da Escuta Social (hotsite do projeto) 1487⸠Prazo mÃnimo de 30 dias para contribuições da sociedade 1488⸠Treinamento de porta-vozes 1489⸠Audiência Pública presencial com transmissão ao vivo 1490 1491ETAPA 3 â LICITAÃÃO (AgoâDez 2026) 1492⸠Publicação do Edital no Diário Oficial 1493⸠Recebimento de propostas 1494⸠Julgamento e habilitação 1495⸠Assinatura do Contrato de PPP 1496 1497ETAPA 4 â IMPLANTAÃÃO (2027 em diante) 1498⸠InÃcio das obras de substituição dos pontos de luz 1499⸠Implantação gradual por regiões da cidade 1500⸠Entrega do parque completo de iluminação LED`,destaque:"Audiência Pública prevista para junho/julho de 2026. Participe e contribua!"},{id:"transparencia",titulo:"Transparência e Controle Social",subtitulo:"Como a sociedade pode acompanhar e fiscalizar o projeto",icon:p.jsx(jo,{"data-loc":"client/src/pages/Boletim.tsx:169",size:14}),tipo:"texto-foto",statusIA:"aprovado",conteudo:`FUNDAMENTO LEGAL: 1501A PPP de Itaperuna segue rigorosamente: 1502⸠Lei Federal nº 11.079/2004 â Lei das PPPs 1503⸠Lei Federal nº 14.133/2021 â Nova Lei de Licitações 1504⸠Lei Orgânica do MunicÃpio de Itaperuna 1505⸠Normas do Tribunal de Contas do Estado do RJ 1506 1507CONTROLE SOCIAL: 1508⸠Todos os documentos do projeto serão publicados no hotsite oficial 1509⸠Escuta Social aberta por no mÃnimo 30 dias 1510⸠Audiência Pública com transmissão ao vivo e intérprete de LIBRAS 1511⸠Canal de perguntas e respostas no hotsite 1512⸠Acompanhamento pelo Tribunal de Contas do Estado do RJ 1513 1514TRANSPARÃNCIA FINANCEIRA: 1515⸠O valor da CIP (Contribuição para Iluminação Pública) não aumentará além do reajuste anual previsto em lei 1516⸠A economia gerada pela eficiência energética beneficia diretamente o orçamento municipal 1517⸠Relatórios periódicos de desempenho publicados no site da Prefeitura`,destaque:"Todos os documentos do projeto estão disponÃveis para escuta social no hotsite oficial."},{id:"consulta_publica",titulo:"Escuta Social â Participe!",subtitulo:"Sua opinião conta na construção do projeto",icon:p.jsx(Oh,{"data-loc":"client/src/pages/Boletim.tsx:196",size:14}),tipo:"texto-foto",statusIA:"gerado",conteudo:`O QUE à A ESCUTA SOCIAL? 1518à o perÃodo em que qualquer cidadão, empresa ou entidade pode enviar sugestões, crÃticas e contribuições ao projeto da PPP antes da realização da Audiência Pública. 1519 1520COMO PARTICIPAR: 1521⸠Acesse o hotsite oficial do projeto: [link do hotsite] 1522⸠Leia o resumo do EVTEA e a minuta do contrato 1523⸠Preencha o formulário de contribuições online 1524⸠Prazo: 30 dias a partir da publicação 1525 1526O QUE VOCà PODE CONTRIBUIR: 1527⸠Sugestões sobre localização de novos pontos de luz 1528⸠CrÃticas ao modelo proposto de contrato 1529⸠Perguntas técnicas sobre a tecnologia LED 1530⸠Propostas para os serviços de Cidades Inteligentes 1531⸠Qualquer questão de interesse público sobre o projeto 1532 1533AUDIÃNCIA PÃBLICA: 1534Após o perÃodo de consulta, será realizada a Audiência Pública presencial, com transmissão ao vivo, onde a Prefeitura e a consultoria técnica apresentarão o projeto e responderão à s perguntas do público.`,destaque:"Acesse o hotsite e envie sua contribuição. Sua voz faz parte do projeto!"},{id:"perguntas",titulo:"Perguntas Frequentes",subtitulo:"Respostas para as principais dúvidas da população",icon:p.jsx(Wee,{"data-loc":"client/src/pages/Boletim.tsx:223",size:14}),tipo:"lista",statusIA:"aprovado",conteudo:`P: A minha conta de luz vai aumentar com a PPP? 1535R: Não. A CIP (Contribuição para Iluminação Pública) é cobrada na conta de energia e tem reajuste anual previsto em lei. A PPP não cria um novo tributo â ela usa os recursos já existentes de forma mais eficiente. 1536 1537P: Quem vai pagar pela troca das lâmpadas? 1538R: A empresa vencedora da licitação. O municÃpio não precisa investir recursos próprios para a modernização. O pagamento à empresa é feito ao longo do contrato, com os recursos da CIP. 1539 1540P: E se a empresa privada falir ou não cumprir o contrato? 1541R: O contrato de PPP prevê garantias robustas. Em caso de inadimplência da empresa, a Prefeitura pode retomar o serviço ou contratar outra empresa. A Caixa Econômica Federal, como estruturadora, garante a solidez jurÃdica do contrato. 1542 1543P: Posso reclamar se uma rua continuar sem luz? 1544R: Sim. O contrato prevê indicadores de qualidade (SLA) e multas para a empresa em caso de falha. Haverá um canal oficial para registrar ocorrências. 1545 1546P: Quando as obras vão começar? 1547R: Após a assinatura do contrato, prevista para o final de 2026. A implantação ocorrerá de forma gradual, por regiões da cidade. 1548 1549P: Itaperuna já tem experiência com PPP? 1550R: Sim. A empresa Itanet Conecta já realizou PPP com a Prefeitura para o pórtico da cidade, demonstrando que o modelo funciona no municÃpio.`,destaque:"Tem mais dúvidas? Acesse o hotsite ou envie sua pergunta pelo canal oficial."},{id:"contato",titulo:"Canais Oficiais e Contato",subtitulo:"Como falar com a equipe do projeto",icon:p.jsx(eF,{"data-loc":"client/src/pages/Boletim.tsx:249",size:14}),tipo:"contato",statusIA:"aprovado",conteudo:`PREFEITURA MUNICIPAL DE ITAPERUNA 1551Site: https://itaperuna.rj.gov.br/pmi/ 1552Telefone: (22) 3811-1050 1553Secretaria de Gabinete: [email protected] 1554 1555HOTSITE DO PROJETO PPP 1556[Link será disponibilizado após lançamento da Escuta Social] 1557Formulário de contribuições online disponÃvel durante o perÃodo de Escuta Social. 1558 1559CÃMARA MUNICIPAL DE ITAPERUNA 1560Site: https://www.itaperuna.rj.leg.br/ 1561Telefone: (22) 3824-1263 1562E-mail: [email protected] 1563 1564CAIXA ECONÃMICA FEDERAL â Estruturadora do Projeto 1565Responsável pela análise técnica e estruturação financeira da PPP. 1566 1567PRINT COMUNICAÃÃO â Comunicação do Projeto 1568Responsável pela comunicação, engajamento de stakeholders e escuta social.`,destaque:"Acompanhe o projeto nas redes sociais da Prefeitura de Itaperuna."}],H7={capa:{label:"Capa",cor:"#1A7A6E"},"texto-foto":{label:"Texto + Foto",cor:"#2D4A2D"},"dois-blocos":{label:"Dois Blocos",cor:"#5B8FA8"},lista:{label:"Lista",cor:"#7A8C5E"},cronograma:{label:"Cronograma",cor:"#C9A84C"},contato:{label:"Contato",cor:"#8B7355"}},G7={gerado:{label:"Rascunho IA",cor:"#C9A84C",bg:"#C9A84C15"},revisando:{label:"Em Revisão",cor:"#5B8FA8",bg:"#5B8FA815"},aprovado:{label:"Aprovado",cor:"#2D4A2D",bg:"#2D4A2D15"},pendente:{label:"Pendente",cor:"#C9B99A",bg:"#C9B99A30"}};function DMe(){const{projetos:e}=Ps(),[t,r]=L.useState(e[0]?.id??""),[a,n]=L.useState("capa"),[i,o]=L.useState(!1),[s,c]=L.useState({}),[u,h]=L.useState({}),[f,m]=L.useState(!1),[x,v]=L.useState("boletim"),[y,b]=L.useState({}),[S,A]=L.useState({}),E=async()=>{const N=Object.entries(s).filter(([,W])=>W.texto.trim()||W.tipo==="aprovado");if(N.length===0){je.error("Adicione pelo menos um comentário antes de enviar");return}m(!0);const O=e.find(W=>W.id===t),k={},B={};let $=0;for(const[W,D]of N){if(D.tipo==="aprovado"){k[W]="aprovado";
1568continue}const J=hl.find(z=>z.id===W);if(J)try{const z=await fetch("/api/ai-review",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tipo:"boletim",contexto:`Boletim â ${O?.nomeProjeto??"PPP"} â Seção: ${J.titulo}${D.tipo==="refazer"?" (REFAZER do zero)":""}`,textoOriginal:S[W]??J.conteudo,comentarioUsuario:D.texto||(D.tipo==="refazer"?"Refazer esta seção do zero, mantendo o mesmo escopo.":"Ajustar conforme padrão PRINT.")})});if(!z.ok){const Z=await z.json().catch(()=>({error:`HTTP ${z.status}`}));throw new Error(Z.error||`HTTP ${z.status}`)}const V=await z.json();B[W]=V,k[W]="revisando"}catch(z){$++,console.error(`Falha ao revisar seção ${W}:`,z)}}h(W=>({...W,...k})),b(W=>({...W,...B})),m(!1),o(!1);const _=Object.keys(B).length;$>0&&_===0?je.error(`Todas as ${$} revisões falharam. Verifique o console.`):$>0?je.warning(`${_} revisão(ões) feita(s) · ${$} falharam.`):je.success(`IA revisou ${_} seção(ões) â confira as sugestões.`)},j=N=>{const O=y[N];O&&(A(k=>({...k,[N]:O.textoRevisado})),b(k=>
1568{const B={...k};return delete B[N],B}),h(k=>({...k,[N]:"gerado"})),je.success("Revisão da IA aplicada à seção."))},P=N=>{b(O=>{const k={...O};return delete k[N],k}),h(O=>{const k={...O};return delete k[N],k}),je.info("Sugestão da IA descartada.")},C=Object.values(u).filter(N=>N==="aprovado").length+hl.filter(N=>N.statusIA==="aprovado").length;return p.jsxs("div",{"data-loc":"client/src/pages/Boletim.tsx:398",className:"space-y-5",children:[p.jsxs("div",{"data-loc":"client/src/pages/Boletim.tsx:401",className:"flex items-center gap-3",children:[p.jsx("div",{"data-loc":"client/src/pages/Boletim.tsx:402",className:"flex rounded-lg overflow-hidden",style:{border:"1.5px solid #C9B99A"},children:["boletim","relatorio"].map(N=>p.jsx("button",{"data-loc":"client/src/pages/Boletim.tsx:404",onClick:()=>v(N),className:"px-4 py-2 text-[11px] font-black uppercase tracking-[1px] transition-all",style:{backgroundColor:x===N?"#2D4A2D":"#fff",color:x===N?"#fff":"#2D4A2D",fontFamily:"Nunito, sans-serif"},children:N==="boletim"?"ð° Boletim":"ð Relatório"},N))}),p.jsx("select",{"data-loc":"client/src/pages/Boletim.tsx:419",value:t,onChange:N=>r(N.target.value),className:"text-[12px] font-bold px-3 py-2 rounded-lg outline-none",style:{border:"1.5px solid #C9B99A",backgroundColor:"#fff",color:"#1E1E1E",fontFamily:"Nunito, sans-serif"},children:e.map(N=>p.jsx("option",{"data-loc":"client/src/pages/Boletim.tsx:426",value:N.id,children:N.nomeProjeto},N.id))}),p.jsx("div",{"data-loc":"client/src/pages/Boletim.tsx:430",className:"flex-1"}),p.jsxs("button",{"data-loc":"client/src/pages/Boletim.tsx:432",onClick:()=>o(!i),className:"flex items-center gap-1.5 text-[11px] font-black px-3 py-2 rounded-lg transition-all",style:{backgroundColor:i?"#C9A84C":"#ffffff",color:i?"#fff":"#C9A84C",border:"1.5px solid #C9A84C",fontFamily:"Nunito, sans-serif"},children:[p.jsx(up,{"data-loc":"client/src/pages/Boletim.tsx:442",size:12})," ",i?"Modo Revisão Ativo":"Revisar com IA"]}),p.jsxs("button",{"data-loc":"client/src/pages/Boletim.tsx:445",onClick:()=>je.info("Exportando boletim em PDF com identidade visual PRINT..."),className:"flex items-center gap-1.5 text-[11px] font-bold px-3 py-2 rounded-lg",style:{border:"1px solid #C9B99A",color:"#7A8C5E",fontFamily:"Nunito, sans-serif"},children:[p.jsx(Yl,{"data-loc":"client/src/pages/Boletim.tsx:450",size:12})," Exportar PDF"]})]}),p.jsx("div",{"data-loc":"client/src/pages/Boletim.tsx:455",className:"grid grid-cols-4 gap-4",children:[{label:x==="boletim"?"Seções do Boletim":"Seções do Relatório",value:hl.length,cor:"#2D4A2D"},{label:"Geradas por IA",value:hl.length,cor:"#C9A84C"},{label:"Aprovadas",value:C,cor:"#7A8C5E"},{label:"Prontas p/ Export",value:hl.filter(N=>N.statusIA==="aprovado").length,cor:"#5B8FA8"}].map(N=>p.jsxs("div",{"data-loc":"client/src/pages/Boletim.tsx:462",className:"rounded-xl p-4",style:{backgroundColor:"#ffffff",border:"1px solid #C9B99A"},children:[p.jsx("div",{"data-loc":"client/src/pages/Boletim.tsx:463",className:"text-[10px] font-black uppercase tracking-[1.5px] mb-1",style:{color:N.cor,fontFamily:"Nunito, sans-serif"},children:N.label}),p.jsx("div",{"data-loc":"client/src/pages/Boletim.tsx:466",className:"text-2xl font-black",style:{color:N.cor,fontFamily:"Nunito, sans-serif"},children:N.value})]},N.label))}),p.jsxs("div",{"data-loc":"client/src/pages/Boletim.tsx:474",className:"grid grid-cols-3 gap-5",children:[p.jsxs("div",{"data-loc":"client/src/pages/Boletim.tsx:477",className:"col-span-1 space-y-2",children:[p.jsxs("div",{"data-loc":"client/src/pages/Boletim.tsx:478",className:"text-[10px] font-black uppercase tracking-[2px] mb-3",style:{color:"#8B7355",fontFamily:"Nunito, sans-serif"},children:["Seções do ",x==="boletim"?"Boletim":"Relatório"]}),hl.map((N,O)=>{const k=u[N.id]??N.statusIA,B=G7[k],$=H7[N.tipo],_=a===N.id;return p.jsx("button",{"data-loc":"client/src/pages/Boletim.tsx:487",onClick:()=>n(_?null:N.id),className:"w-full text-left rounded-xl p-3 transition-all",style:{backgroundColor:_?"#2D4A2D":"#ffffff",border:`1.5px solid ${_?"#2D4A2D":"#C9B99A"}`},children:p.jsxs("div",{"data-loc":"client/src/pages/Boletim.tsx:496",className:"flex items-center gap-2",children:[p.jsx("div",{"data-loc":"client/src/pages/Boletim.tsx:497",className:"w-5 h-5 rounded-full flex items-center justify-center text-[9px] font-black flex-shrink-0",style:{backgroundColor:_?"#ffffff20":"#2D4A2D15",color:_?"#fff":"#2D4A2D"},children:O+1}),p.jsxs("div",{"data-loc":"client/src/pages/Boletim.tsx:501",className:"flex-1 min-w-0",children:[p.jsx("div",{"data-loc":"client/src/pages/Boletim.tsx:502",className:"text-[11px] font-black truncate",style:{color:_?"#fff":"#1E1E1E",fontFamily:"Nunito, sans-serif"},children:N.titulo}),p.jsx("div",{"data-loc":"client/src/pages/Boletim.tsx:505",className:"text-[9px] mt-0.5 truncate",style:{color:_?"#ffffff80":"#8B7355",fontFamily:"Nunito, sans-serif"},children:$.label})]}),p.jsx("div",{"data-loc":"client/src/pages/Boletim.tsx:509",className:"text-[8px] font-black px-1.5 py-0.5 rounded-full flex-shrink-0",style:{backgroundColor:_?"#ffffff20":B.bg,color:_?"#fff":B.cor},children:B.label})]})},N.id)}),p.jsxs("button",{"data-loc":"client/src/pages/Boletim.tsx:519",onClick:()=>je.info("Adicionar nova seção ao boletim â em breve"),className:"w-full flex items-center justify-center gap-2 py-3 rounded-xl text-[11px] font-bold transition-all",style:{border:"1.5px dashed #C9B99A",color:"#8B7355",fontFamily:"Nunito, sans-serif"},children:[p.jsx(fa,{"data-loc":"client/src/pages/Boletim.tsx:524",size:12})," Adicionar Seção"]})]}),p.jsxs("div",{"data-loc":"client/src/pages/Boletim.tsx:529",className:"col-span-2",children:[a?(()=>{const N=hl.find($=>
1568$.id===a);if(!N)return null;const O=u[N.id]??N.statusIA,k=G7[O],B=s[N.id];return p.jsxs("div",{"data-loc":"client/src/pages/Boletim.tsx:538",className:"rounded-xl overflow-hidden",style:{border:"1.5px solid #C9B99A"},children:[p.jsxs("div",{"data-loc":"client/src/pages/Boletim.tsx:540",className:"px-5 py-4 flex items-start justify-between",style:{backgroundColor:"#2D4A2D"},children:[p.jsxs("div",{"data-loc":"client/src/pages/Boletim.tsx:541",children:[p.jsx("div",{"data-loc":"client/src/pages/Boletim.tsx:542",className:"text-[10px] font-black uppercase tracking-[2px] mb-1",style:{color:"#C9B99A",fontFamily:"Nunito, sans-serif"},children:H7[N.tipo].label}),p.jsx("div",{"data-loc":"client/src/pages/Boletim.tsx:545",className:"text-[16px] font-black",style:{color:"#fff",fontFamily:"Nunito, sans-serif"},children:N.titulo}),p.jsx("div",{"data-loc":"client/src/pages/Boletim.tsx:548",className:"text-[11px] mt-0.5",style:{color:"#ffffff80",fontFamily:"Nunito, sans-serif"},children:N.subtitulo})]}),p.jsx("div",{"data-loc":"client/src/pages/Boletim.tsx:552",className:"text-[9px] font-black px-2 py-1 rounded-full",style:{backgroundColor:k.bg,color:k.cor},children:k.label})]}),N.destaque&&p.jsx("div",{"data-loc":"client/src/pages/Boletim.tsx:559",className:"px-5 py-3",style:{backgroundColor:"#C9A84C15",borderBottom:"1px solid #C9A84C30"},children:p.jsxs("div",{"data-loc":"client/src/pages/Boletim.tsx:560",className:"text-[11px] font-black italic",style:{color:"#C9A84C",fontFamily:"Nunito, sans-serif"},children:["ð¡ ",N.destaque]})}),p.jsxs("div",{"data-loc":"client/src/pages/Boletim.tsx:567",className:"p-5",children:[p.jsx("pre",{"data-loc":"client/src/pages/Boletim.tsx:568",className:"text-[12px] leading-relaxed whitespace-pre-wrap",style:{color:"#1E1E1E",fontFamily:"Nunito, sans-serif"},children:S[N.id]??N.conteudo}),S[N.id]&&p.jsx("div",{"data-loc":"client/src/pages/Boletim.tsx:572",className:"mt-2 text-[10px] italic",style:{color:"#7A8C5E",fontFamily:"Nunito, sans-serif"},children:"⦠Texto atualizado pela IA (sugestão aceita)"})]}),y[N.id]&&p.jsx("div",{"data-loc":"client/src/pages/Boletim.tsx:580",className:"px-5 pb-5",children:p.jsxs("div",{"data-loc":"client/src/pages/Boletim.tsx:581",className:"rounded-xl p-4 space-y-3",style:{border:"2px solid #5B8FA8",backgroundColor:"#5B8FA810"},children:[p.jsx("div",{"data-loc":"client/src/pages/Boletim.tsx:582",className:"text-[10px] font-black uppercase tracking-[2px]",style:{color:"#1A5470",fontFamily:"Nunito, sans-serif"},children:"⦠Sugestão da IA â pendente de revisão"}),p.jsx("div",{"data-loc":"client/src/pages/Boletim.tsx:585",className:"bg-white rounded-lg p-3 max-h-72 overflow-auto",children:p.jsx("pre",{"data-loc":"client/src/pages/Boletim.tsx:586",className:"text-[11px] leading-relaxed whitespace-pre-wrap",style:{color:"#1E1E1E",fontFamily:"Nunito, sans-serif"},children:y[N.id].textoRevisado})}),y[N.id].resumoMudancas&&p.jsxs("div",{"data-loc":"client/src/pages/Boletim.tsx:591",className:"text-[11px]",style:{color:"#1A5470",fontFamily:"Nunito, sans-serif"},children:[p.jsx("span",{"data-loc":"client/src/pages/Boletim.tsx:592",className:"font-black",children:"Resumo: "}),y[N.id].resumoMudancas]}),y[N.id].alertas?.length>0&&p.jsx("ul",{"data-loc":"client/src/pages/Boletim.tsx:596",className:"text-[11px] list-disc pl-5 space-y-0.5",style:{color:"#C9A84C",fontFamily:"Nunito, sans-serif"},children:y[N.id].alertas.map(($,_)=>p.jsx("li",{"data-loc":"client/src/pages/Boletim.tsx:597",children:$},_))}),p.jsxs("div",{"data-loc":"client/src/pages/Boletim.tsx:600",className:"flex justify-end gap-2",children:[p.jsx("button",{"data-loc":"client/src/pages/Boletim.tsx:601",onClick:()=>P(N.id),className:"px-3 py-1.5 rounded-lg text-[11px] font-bold",style:{border:"1.5px solid #C9B99A",color:"#8B7355",backgroundColor:"#fff",fontFamily:"Nunito, sans-serif"},children:"Descartar"}),p.jsx("button",{"data-loc":"client/src/pages/Boletim.tsx:608",onClick:()=>j(N.id),className:"px-3 py-1.5 rounded-lg text-[11px] font-black",style:{backgroundColor:"#2D4A2D",color:"#fff",fontFamily:"Nunito, sans-serif"},children:"â Aceitar revisão"})]})]})}),i&&p.jsxs("div",{"data-loc":"client/src/pages/Boletim.tsx:622",className:"px-5 pb-5 space-y-3",children:[p.jsx("div",{"data-loc":"client/src/pages/Boletim.tsx:623",className:"text-[10px] font-black uppercase tracking-[1.5px]",style:{color:"#8B7355",fontFamily:"Nunito, sans-serif"},children:"Revisão do Analista"}),p.jsx("div",{"data-loc":"client/src/pages/Boletim.tsx:626",className:"flex gap-2",children:["aprovado","ajustar","refazer"].map($=>p.jsx("button",{"data-loc":"client/src/pages/Boletim.tsx:628",onClick:()=>c(_=>({..._,[N.id]:{tipo:$,texto:_[N.id]?.texto??""}})),className:"flex-1 py-2 rounded-lg text-[10px] font-black uppercase tracking-[1px] transition-all",style:{backgroundColor:B?.tipo===$?$==="aprovado"?"#2D4A2D":$==="ajustar"?"#C9A84C":"#C0392B":"#f5f5f5",color:B?.tipo===$?"#fff":"#666",fontFamily:"Nunito, sans-serif"},children:$==="aprovado"?"â Aprovar":$==="ajustar"?"â Ajustar":"â Refazer"},$))}),B?.tipo!=="aprovado"&&p.jsx("textarea",{"data-loc":"client/src/pages/Boletim.tsx:648",placeholder:"Descreva o que deve ser ajustado ou refeito...",value:B?.texto??"",onChange:$=>c(_=>({..._,[N.id]:{tipo:_[N.id]?.tipo??"ajustar",texto:$.target.value}})),rows:3,className:"w-full text-[12px] p-3 rounded-lg outline-none resize-none",style:{border:"1.5px solid #C9B99A",fontFamily:"Nunito, sans-serif",backgroundColor:"#FAFAF8"}})]})]})})():p.jsxs("div",{"data-loc":"client/src/pages/Boletim.tsx:665",className:"h-full flex flex-col items-center justify-center py-16 rounded-xl",style:{border:"1.5px dashed #C9B99A"},children:[p.jsx(Dx,{"data-loc":"client/src/pages/Boletim.tsx:666",
1568size:32,style:{color:"#C9B99A"}}),p.jsx("div",{"data-loc":"client/src/pages/Boletim.tsx:667",className:"text-[13px] font-bold mt-3",style:{color:"#8B7355",fontFamily:"Nunito, sans-serif"},children:"Selecione uma seção para visualizar"}),p.jsx("div",{"data-loc":"client/src/pages/Boletim.tsx:670",className:"text-[11px] mt-1",style:{color:"#C9B99A",fontFamily:"Nunito, sans-serif"},children:"O conteúdo gerado pela IA aparecerá aqui"})]}),i&&Object.keys(s).length>0&&p.jsx("div",{"data-loc":"client/src/pages/Boletim.tsx:678",className:"mt-4 flex justify-end",children:p.jsxs("button",{"data-loc":"client/src/pages/Boletim.tsx:679",onClick:E,disabled:f,className:"flex items-center gap-2 px-5 py-2.5 rounded-xl text-[12px] font-black transition-all",style:{backgroundColor:"#2D4A2D",color:"#fff",fontFamily:"Nunito, sans-serif"},children:[f?p.jsx(Wt,{"data-loc":"client/src/pages/Boletim.tsx:685",size:14,className:"animate-spin"}):p.jsx(sy,{"data-loc":"client/src/pages/Boletim.tsx:685",size:14}),f?"Enviando para a IA...":`Enviar ${Object.keys(s).length} revisão(ões) para a IA`]})})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/Boletim.tsx:694",className:"rounded-xl overflow-hidden",style:{border:"1.5px solid #C9B99A"},children:[p.jsxs("div",{"data-loc":"client/src/pages/Boletim.tsx:695",className:"px-5 py-3 flex items-center justify-between",style:{backgroundColor:"#2D4A2D"},children:[p.jsx("div",{"data-loc":"client/src/pages/Boletim.tsx:696",className:"text-[12px] font-black",style:{color:"#fff",fontFamily:"Nunito, sans-serif"},children:"Preview Visual â Slide 1: Capa"}),p.jsxs("button",{"data-loc":"client/src/pages/Boletim.tsx:699",onClick:()=>je.info("Preview completo do boletim â em breve"),className:"flex items-center gap-1.5 text-[10px] font-bold px-3 py-1.5 rounded-lg",style:{border:"1px solid #ffffff40",color:"#fff",fontFamily:"Nunito, sans-serif"},children:[p.jsx(kx,{"data-loc":"client/src/pages/Boletim.tsx:704",size:11})," Ver Todos os Slides"]})]}),p.jsxs("div",{"data-loc":"client/src/pages/Boletim.tsx:709",className:"p-5",style:{backgroundColor:"#FAFAF8"},children:[p.jsxs("div",{"data-loc":"client/src/pages/Boletim.tsx:710",className:"rounded-xl overflow-hidden",style:{backgroundColor:"#1A7A6E",aspectRatio:"16/9",position:"relative",maxHeight:"280px"},children:[p.jsx("div",{"data-loc":"client/src/pages/Boletim.tsx:712",className:"absolute top-4 left-5 flex items-center gap-2",children:p.jsxs("div",{"data-loc":"client/src/pages/Boletim.tsx:713",className:"flex items-center gap-1.5",children:[p.jsx("div",{"data-loc":"client/src/pages/Boletim.tsx:714",className:"w-6 h-6 rounded flex items-center justify-center",style:{backgroundColor:"#F5C800"},children:p.jsx(Rx,{"data-loc":"client/src/pages/Boletim.tsx:715",size:12,style:{color:"#1A7A6E"}})}),p.jsxs("div",{"data-loc":"client/src/pages/Boletim.tsx:717",children:[p.jsx("div",{"data-loc":"client/src/pages/Boletim.tsx:718",className:"text-[8px] font-black",style:{color:"#F5C800",fontFamily:"Nunito, sans-serif"},children:"PPP"}),p.jsx("div",{"data-loc":"client/src/pages/Boletim.tsx:719",className:"text-[6px]",style:{color:"#ffffff80",fontFamily:"Nunito, sans-serif"},children:"ILUMINAÃÃO PÃBLICA"}),p.jsx("div",{"data-loc":"client/src/pages/Boletim.tsx:720",className:"text-[6px]",style:{color:"#ffffff80",fontFamily:"Nunito, sans-serif"},children:"E CIDADES INTELIGENTES"}),p.jsx("div",{"data-loc":"client/src/pages/Boletim.tsx:721",className:"text-[6px] font-bold",style:{color:"#ffffff80",fontFamily:"Nunito, sans-serif"},children:"ITAPERUNA"})]})]})}),p.jsx("div",{"data-loc":"client/src/pages/Boletim.tsx:727",className:"absolute top-4 right-5 text-[10px] font-bold",style:{color:"#ffffff80",fontFamily:"Nunito, sans-serif"},children:"2026"}),p.jsxs("div",{"data-loc":"client/src/pages/Boletim.tsx:732",className:"absolute inset-0 flex flex-col items-center justify-center text-center px-8",children:[p.jsx("div",{"data-loc":"client/src/pages/Boletim.tsx:733",className:"text-[28px] font-black mb-2",style:{color:"#fff",fontFamily:"Nunito, sans-serif"},children:"Apresentação"}),p.jsxs("div",{"data-loc":"client/src/pages/Boletim.tsx:736",className:"text-[12px] leading-relaxed",style:{color:"#ffffff90",fontFamily:"Nunito, sans-serif"},children:["Estruturação PPP Iluminação Pública",p.jsx("br",{"data-loc":"client/src/pages/Boletim.tsx:737"}),"e Cidades Inteligentes",p.jsx("br",{"data-loc":"client/src/pages/Boletim.tsx:738"}),p.jsx("span",{"data-loc":"client/src/pages/Boletim.tsx:739",className:"font-bold",style:{color:"#F5C800"},children:"Itaperuna / Rio de Janeiro"})]})]}),p.jsxs("div",{"data-loc":"client/src/pages/Boletim.tsx:744",className:"absolute bottom-0 left-0 right-0 px-5 py-2 flex items-center gap-3",style:{backgroundColor:"#ffffff15",borderTop:"1px solid #ffffff20"},children:[p.jsx("div",{"data-loc":"client/src/pages/Boletim.tsx:745",className:"text-[7px] font-black px-2 py-0.5 rounded",style:{backgroundColor:"#fff",color:"#1A7A6E",fontFamily:"Nunito, sans-serif"},children:"PREFEITURA ITAPERUNA"}),p.jsx("div",{"data-loc":"client/src/pages/Boletim.tsx:748",className:"text-[7px] font-black px-2 py-0.5 rounded",style:{backgroundColor:"#F5C800",color:"#1A7A6E",fontFamily:"Nunito, sans-serif"},children:"CAIXA"}),p.jsx("div",{"data-loc":"client/src/pages/Boletim.tsx:751",className:"text-[7px] font-black px-2 py-0.5 rounded",style:{backgroundColor:"#fff",color:"#1A7A6E",fontFamily:"Nunito, sans-serif"},children:"MOYSÃS & PIRES"}),p.jsx("div",{"data-loc":"client/src/pages/Boletim.tsx:754",className:"text-[7px] font-black px-2 py-0.5 rounded",style:{backgroundColor:"#fff",color:"#1A7A6E",fontFamily:"Nunito, sans-serif"},children:"KMR ENERGIA"}),p.jsx("div",{"data-loc":"client/src/pages/Boletim.tsx:757",className:"text-[7px] font-black px-2 py-0.5 rounded",style:{backgroundColor:"#2D4A2D",color:"#EDE9DF",fontFamily:"Nunito, sans-serif"},children:"PRINT"})]})]}),p.jsx("div",{"data-loc":"client/src/pages/Boletim.tsx:763",className:"mt-3 text-[10px] text-center",style:{color:"#8B7355",fontFamily:"Nunito, sans-serif"}
1568,children:"Preview do Slide 1 de 9 â Identidade visual gerada automaticamente pelo sistema"})]})]})]})}class px extends L.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}render(){return this.state.hasError?p.jsx("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:27",className:"flex items-center justify-center min-h-screen p-8 bg-background",children:p.jsxs("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:28",className:"flex flex-col items-center w-full max-w-2xl p-8",children:[p.jsx(ho,{"data-loc":"client/src/components/ErrorBoundary.tsx:29",size:48,className:"text-destructive mb-6 flex-shrink-0"}),p.jsx("h2",{"data-loc":"client/src/components/ErrorBoundary.tsx:34",className:"text-xl mb-4",children:"An unexpected error occurred."}),p.jsx("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:36",className:"p-4 w-full rounded bg-muted overflow-auto mb-6",children:p.jsx("pre",{"data-loc":"client/src/components/ErrorBoundary.tsx:37",className:"text-sm text-muted-foreground whitespace-break-spaces",children:this.state.error?.stack})}),p.jsxs("button",{"data-loc":"client/src/components/ErrorBoundary.tsx:42",onClick:()=>window.location.reload(),className:ii("flex items-center gap-2 px-4 py-2 rounded-lg","bg-primary text-primary-foreground","hover:opacity-90 cursor-pointer"),children:[p.jsx(aF,{"data-loc":"client/src/components/ErrorBoundary.tsx:50",size:16}),"Reload Page"]})]})}):this.props.children}}const _Me=L.createContext(void 0);function RMe({children:e,defaultTheme:t="light",switchable:r=!1}){const[a,n]=L.useState(()=>r&&localStorage.getItem("theme")||t);L.useEffect(()=>{const o=document.documentElement;a==="dark"?o.classList.add("dark"):o.classList.remove("dark"),r&&localStorage.setItem("theme",a)},[a,r]);const i=r?()=>{n(o=>o==="light"?"dark":"light")}:void 0;return p.jsx(_Me.Provider,{"data-loc":"client/src/contexts/ThemeContext.tsx:52",value:{theme:a,toggleTheme:i,switchable:r},children:e})}function OMe(){const[e,t]=L.useState("dashboard"),[r,a]=L.useState(!1),[n,i]=L.useState(null),[o,s]=L.useState(!1),c=()=>{if(o)return p.jsx(y5e,{"data-loc":"client/src/App.tsx:45",formularioIdInicial:n,onVoltar:()=>{s(!1),t("escuta")}});switch(e){case"dashboard":return p.jsx(g3,{"data-loc":"client/src/App.tsx:52"});case"municipios":return p.jsx(Jre,{"data-loc":"client/src/App.tsx:53"});case"projetos":return p.jsx(eae,{"data-loc":"client/src/App.tsx:54"});case"plano":return p.jsx(kxe,{"data-loc":"client/src/App.tsx:55"});case"stakeholders":return p.jsx(Mxe,{"data-loc":"client/src/App.tsx:56"});case"escuta":return p.jsx(Gxe,{"data-loc":"client/src/App.tsx:58",onAbrirDashboard:u=>{i(u),s(!0)}});case"clipping":return p.jsx(C5e,{"data-loc":"client/src/App.tsx:62"});case"tarefas":return p.jsx(k5e,{"data-loc":"client/src/App.tsx:63"});case"documentos":return p.jsx(O5e,{"data-loc":"client/src/App.tsx:64"});case"hotsite":return p.jsx(I5e,{"data-loc":"client/src/App.tsx:65"});case"mapa":return p.jsx(z5e,{"data-loc":"client/src/App.tsx:66"});case"fontes":return p.jsx($5e,{"data-loc":"client/src/App.tsx:67"});case"briefing":return p.jsx(TMe,{"data-loc":"client/src/App.tsx:68"});case"boletim":return p.jsx(DMe,{"data-loc":"client/src/App.tsx:69"});case"roadshow":return p.jsx(Sve,{"data-loc":"client/src/App.tsx:70"});default:return p.jsx(g3,{"data-loc":"client/src/App.tsx:71"})}};return p.jsxs(p.Fragment,{children:[p.jsx(bte,{"data-loc":"client/src/App.tsx:77",activeView:e,onViewChange:t,onNovoProjeto:()=>a(!0),children:c()}),p.jsx(Vre,{"data-loc":"client/src/App.tsx:84",open:r,onClose:()=>a(!1),onSuccess:u=>{a(!1),t("projetos")}})]})}const MMe=new Set(["","dashboard","municipios","projetos","plano","stakeholders","escuta","clipping","tarefas","documentos","hotsite","mapa","fontes","briefing","boletim","admin","login","api","assets","__manus__","escuta-social","roadshow"]);function IMe(){const e=typeof window<"u"?window.location.pathname:"/",t=e.match(/^\/consulta\/([^/?#]+)\/?$/);if(t){const n=decodeURIComponent(t[1]);return p.jsx(px,{"data-loc":"client/src/App.tsx:119",children:p.jsxs(Pg,{"data-loc":"client/src/App.tsx:120",children:[p.jsx(wg,{"data-loc":"client/src/App.tsx:121",richColors:!0,position:"top-right"}),p.jsx(EL,{"data-loc":"client/src/App.tsx:122",slug:n})]})})}const r=e.match(/^\/roadshow\/([^/?#]+)\/?$/);if(r){const n=decodeURIComponent(r[1]);return p.jsx(px,{"data-loc":"client/src/App.tsx:134",children:p.jsxs(Pg,{"data-loc":"client/src/App.tsx:135",children:[p.jsx(wg,{"data-loc":"client/src/App.tsx:136",ric
1568hColors:!0,position:"top-right"}),p.jsx(Ave,{"data-loc":"client/src/App.tsx:137",slug:n})]})})}const a=e.match(/^\/([a-z0-9-]+)\/([a-z0-9-]+)\/?$/);if(a){const[,n,i]=a,o=n.toLowerCase();if(!MMe.has(o))return p.jsx(px,{"data-loc":"client/src/App.tsx:151",children:p.jsxs(Pg,{"data-loc":"client/src/App.tsx:152",children:[p.jsx(wg,{"data-loc":"client/src/App.tsx:153",richColors:!0,position:"top-right"}),p.jsx(EL,{"data-loc":"client/src/App.tsx:154",tipoSlug:n,municipioSlug:i})]})})}return p.jsx(px,{"data-loc":"client/src/App.tsx:162",children:p.jsx(RMe,{"data-loc":"client/src/App.tsx:163",defaultTheme:"light",children:p.jsx(mte,{"data-loc":"client/src/App.tsx:164",children:p.jsx(Mee,{"data-loc":"client/src/App.tsx:165",children:p.jsxs(Pg,{"data-loc":"client/src/App.tsx:166",children:[p.jsx(wg,{"data-loc":"client/src/App.tsx:167",richColors:!0,position:"top-right"}),p.jsx(OMe,{"data-loc":"client/src/App.tsx:168"})]})})})})})}iZ.createRoot(document.getElementById("root")).render(p.jsx(IMe,{"data-loc":"client/src/main.tsx:5"}));export{qt as a,gs as c,BMe as g};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.