diff --git a/.env.ocal b/.env.ocal new file mode 100644 index 0000000..b052f7d --- /dev/null +++ b/.env.ocal @@ -0,0 +1 @@ +VITE_MISTRAL_API= 1sMUeXgiRmhYUAKDk6mw9pWNaijtbwcu \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8e7d2a0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.superpowers/ +.env.local diff --git a/dist/assets/index-B2vp_x6J.js b/dist/assets/index-CCT8mUTJ.js similarity index 71% rename from dist/assets/index-B2vp_x6J.js rename to dist/assets/index-CCT8mUTJ.js index 99910a8..e2d49c8 100644 --- a/dist/assets/index-B2vp_x6J.js +++ b/dist/assets/index-CCT8mUTJ.js @@ -1,4 +1,4 @@ -(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))i(a);new MutationObserver(a=>{for(const l of a)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function t(a){const l={};return a.integrity&&(l.integrity=a.integrity),a.referrerPolicy&&(l.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?l.credentials="include":a.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function i(a){if(a.ep)return;a.ep=!0;const l=t(a);fetch(a.href,l)}})();function Qg(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var vc={exports:{}},ia={},pc={exports:{}},ft={};/** +(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))i(a);new MutationObserver(a=>{for(const l of a)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function t(a){const l={};return a.integrity&&(l.integrity=a.integrity),a.referrerPolicy&&(l.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?l.credentials="include":a.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function i(a){if(a.ep)return;a.ep=!0;const l=t(a);fetch(a.href,l)}})();function Qg(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var vc={exports:{}},ia={},pc={exports:{}},ct={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Xh;function Jg(){if(Xh)return ft;Xh=1;var r=Symbol.for("react.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.iterator;function x(j){return j===null||typeof j!="object"?null:(j=y&&j[y]||j["@@iterator"],typeof j=="function"?j:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,E={};function D(j,J,Oe){this.props=j,this.context=J,this.refs=E,this.updater=Oe||w}D.prototype.isReactComponent={},D.prototype.setState=function(j,J){if(typeof j!="object"&&typeof j!="function"&&j!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,j,J,"setState")},D.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function R(){}R.prototype=D.prototype;function L(j,J,Oe){this.props=j,this.context=J,this.refs=E,this.updater=Oe||w}var z=L.prototype=new R;z.constructor=L,C(z,D.prototype),z.isPureReactComponent=!0;var q=Array.isArray,H=Object.prototype.hasOwnProperty,M={current:null},U={key:!0,ref:!0,__self:!0,__source:!0};function _(j,J,Oe){var Ae,We={},De=null,Ge=null;if(J!=null)for(Ae in J.ref!==void 0&&(Ge=J.ref),J.key!==void 0&&(De=""+J.key),J)H.call(J,Ae)&&!U.hasOwnProperty(Ae)&&(We[Ae]=J[Ae]);var ke=arguments.length-2;if(ke===1)We.children=Oe;else if(1>>1,J=ae[j];if(0>>1;ja(We,we))Dea(Ge,We)?(ae[j]=Ge,ae[De]=we,j=De):(ae[j]=We,ae[Ae]=we,j=Ae);else if(Dea(Ge,we))ae[j]=Ge,ae[De]=we,j=De;else break e}}return ge}function a(ae,ge){var we=ae.sortIndex-ge.sortIndex;return we!==0?we:ae.id-ge.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;r.unstable_now=function(){return l.now()}}else{var u=Date,f=u.now();r.unstable_now=function(){return u.now()-f}}var d=[],h=[],m=1,y=null,x=3,w=!1,C=!1,E=!1,D=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function z(ae){for(var ge=t(h);ge!==null;){if(ge.callback===null)i(h);else if(ge.startTime<=ae)i(h),ge.sortIndex=ge.expirationTime,e(d,ge);else break;ge=t(h)}}function q(ae){if(E=!1,z(ae),!C)if(t(d)!==null)C=!0,he(H);else{var ge=t(h);ge!==null&&le(q,ge.startTime-ae)}}function H(ae,ge){C=!1,E&&(E=!1,R(_),_=-1),w=!0;var we=x;try{for(z(ge),y=t(d);y!==null&&(!(y.expirationTime>ge)||ae&&!oe());){var j=y.callback;if(typeof j=="function"){y.callback=null,x=y.priorityLevel;var J=j(y.expirationTime<=ge);ge=r.unstable_now(),typeof J=="function"?y.callback=J:y===t(d)&&i(d),z(ge)}else i(d);y=t(d)}if(y!==null)var Oe=!0;else{var Ae=t(h);Ae!==null&&le(q,Ae.startTime-ge),Oe=!1}return Oe}finally{y=null,x=we,w=!1}}var M=!1,U=null,_=-1,re=5,te=-1;function oe(){return!(r.unstable_now()-teae||125j?(ae.sortIndex=we,e(h,ae),t(d)===null&&ae===t(h)&&(E?(R(_),_=-1):E=!0,le(q,we-j))):(ae.sortIndex=J,e(d,ae),C||w||(C=!0,he(H))),ae},r.unstable_shouldYield=oe,r.unstable_wrapCallback=function(ae){var ge=x;return function(){var we=x;x=ge;try{return ae.apply(this,arguments)}finally{x=we}}}})(yc)),yc}var _h;function tm(){return _h||(_h=1,mc.exports=em()),mc.exports}/** + */var Jh;function em(){return Jh||(Jh=1,(function(r){function e(re,pe){var we=re.length;re.push(pe);e:for(;0>>1,J=re[j];if(0>>1;ja(Ve,we))Aea(He,Ve)?(re[j]=He,re[Ae]=we,j=Ae):(re[j]=Ve,re[ze]=we,j=ze);else if(Aea(He,we))re[j]=He,re[Ae]=we,j=Ae;else break e}}return pe}function a(re,pe){var we=re.sortIndex-pe.sortIndex;return we!==0?we:re.id-pe.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;r.unstable_now=function(){return l.now()}}else{var u=Date,f=u.now();r.unstable_now=function(){return u.now()-f}}var d=[],h=[],m=1,y=null,x=3,w=!1,C=!1,E=!1,D=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function N(re){for(var pe=t(h);pe!==null;){if(pe.callback===null)i(h);else if(pe.startTime<=re)i(h),pe.sortIndex=pe.expirationTime,e(d,pe);else break;pe=t(h)}}function H(re){if(E=!1,N(re),!C)if(t(d)!==null)C=!0,he(G);else{var pe=t(h);pe!==null&&ae(H,pe.startTime-re)}}function G(re,pe){C=!1,E&&(E=!1,R(_),_=-1),w=!0;var we=x;try{for(N(pe),y=t(d);y!==null&&(!(y.expirationTime>pe)||re&&!oe());){var j=y.callback;if(typeof j=="function"){y.callback=null,x=y.priorityLevel;var J=j(y.expirationTime<=pe);pe=r.unstable_now(),typeof J=="function"?y.callback=J:y===t(d)&&i(d),N(pe)}else i(d);y=t(d)}if(y!==null)var Ne=!0;else{var ze=t(h);ze!==null&&ae(H,ze.startTime-pe),Ne=!1}return Ne}finally{y=null,x=we,w=!1}}var U=!1,B=null,_=-1,ee=5,te=-1;function oe(){return!(r.unstable_now()-tere||125j?(re.sortIndex=we,e(h,re),t(d)===null&&re===t(h)&&(E?(R(_),_=-1):E=!0,ae(H,we-j))):(re.sortIndex=J,e(d,re),C||w||(C=!0,he(G))),re},r.unstable_shouldYield=oe,r.unstable_wrapCallback=function(re){var pe=x;return function(){var we=x;x=pe;try{return re.apply(this,arguments)}finally{x=we}}}})(yc)),yc}var _h;function tm(){return _h||(_h=1,mc.exports=em()),mc.exports}/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var $h;function rm(){if($h)return zr;$h=1;var r=Xc(),e=tm();function t(n){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+n,s=1;s"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),d=Object.prototype.hasOwnProperty,h=/^[: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]*$/,m={},y={};function x(n){return d.call(y,n)?!0:d.call(m,n)?!1:h.test(n)?y[n]=!0:(m[n]=!0,!1)}function w(n,o,s,c){if(s!==null&&s.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return c?!1:s!==null?!s.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function C(n,o,s,c){if(o===null||typeof o>"u"||w(n,o,s,c))return!0;if(c)return!1;if(s!==null)switch(s.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function E(n,o,s,c,v,g,S){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=c,this.attributeNamespace=v,this.mustUseProperty=s,this.propertyName=n,this.type=o,this.sanitizeURL=g,this.removeEmptyString=S}var D={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){D[n]=new E(n,0,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var o=n[0];D[o]=new E(o,1,!1,n[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){D[n]=new E(n,2,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){D[n]=new E(n,2,!1,n,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){D[n]=new E(n,3,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){D[n]=new E(n,3,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){D[n]=new E(n,4,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){D[n]=new E(n,6,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){D[n]=new E(n,5,!1,n.toLowerCase(),null,!1,!1)});var R=/[\-:]([a-z])/g;function L(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var o=n.replace(R,L);D[o]=new E(o,1,!1,n,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var o=n.replace(R,L);D[o]=new E(o,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var o=n.replace(R,L);D[o]=new E(o,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){D[n]=new E(n,1,!1,n.toLowerCase(),null,!1,!1)}),D.xlinkHref=new E("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){D[n]=new E(n,1,!1,n.toLowerCase(),null,!0,!0)});function z(n,o,s,c){var v=D.hasOwnProperty(o)?D[o]:null;(v!==null?v.type!==0:c||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),d=Object.prototype.hasOwnProperty,h=/^[: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]*$/,m={},y={};function x(n){return d.call(y,n)?!0:d.call(m,n)?!1:h.test(n)?y[n]=!0:(m[n]=!0,!1)}function w(n,o,s,c){if(s!==null&&s.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return c?!1:s!==null?!s.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function C(n,o,s,c){if(o===null||typeof o>"u"||w(n,o,s,c))return!0;if(c)return!1;if(s!==null)switch(s.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function E(n,o,s,c,v,g,S){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=c,this.attributeNamespace=v,this.mustUseProperty=s,this.propertyName=n,this.type=o,this.sanitizeURL=g,this.removeEmptyString=S}var D={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){D[n]=new E(n,0,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var o=n[0];D[o]=new E(o,1,!1,n[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){D[n]=new E(n,2,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){D[n]=new E(n,2,!1,n,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){D[n]=new E(n,3,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){D[n]=new E(n,3,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){D[n]=new E(n,4,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){D[n]=new E(n,6,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){D[n]=new E(n,5,!1,n.toLowerCase(),null,!1,!1)});var R=/[\-:]([a-z])/g;function L(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var o=n.replace(R,L);D[o]=new E(o,1,!1,n,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var o=n.replace(R,L);D[o]=new E(o,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var o=n.replace(R,L);D[o]=new E(o,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){D[n]=new E(n,1,!1,n.toLowerCase(),null,!1,!1)}),D.xlinkHref=new E("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){D[n]=new E(n,1,!1,n.toLowerCase(),null,!0,!0)});function N(n,o,s,c){var v=D.hasOwnProperty(o)?D[o]:null;(v!==null?v.type!==0:c||!(2O||v[S]!==g[O]){var N=` -`+v[S].replace(" at new "," at ");return n.displayName&&N.includes("")&&(N=N.replace("",n.displayName)),N}while(1<=S&&0<=O);break}}}finally{Oe=!1,Error.prepareStackTrace=s}return(n=n?n.displayName||n.name:"")?J(n):""}function We(n){switch(n.tag){case 5:return J(n.type);case 16:return J("Lazy");case 13:return J("Suspense");case 19:return J("SuspenseList");case 0:case 2:case 15:return n=Ae(n.type,!1),n;case 11:return n=Ae(n.type.render,!1),n;case 1:return n=Ae(n.type,!0),n;default:return""}}function De(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case U:return"Fragment";case M:return"Portal";case re:return"Profiler";case _:return"StrictMode";case Y:return"Suspense";case be:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case oe:return(n.displayName||"Context")+".Consumer";case te:return(n._context.displayName||"Context")+".Provider";case de:var o=n.render;return n=n.displayName,n||(n=o.displayName||o.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case xe:return o=n.displayName||null,o!==null?o:De(n.type)||"Memo";case he:o=n._payload,n=n._init;try{return De(n(o))}catch{}}return null}function Ge(n){var o=n.type;switch(n.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=o.render,n=n.displayName||n.name||"",o.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return De(o);case 8:return o===_?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function ke(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function rt(n){var o=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function ne(n){var o=rt(n)?"checked":"value",s=Object.getOwnPropertyDescriptor(n.constructor.prototype,o),c=""+n[o];if(!n.hasOwnProperty(o)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var v=s.get,g=s.set;return Object.defineProperty(n,o,{configurable:!0,get:function(){return v.call(this)},set:function(S){c=""+S,g.call(this,S)}}),Object.defineProperty(n,o,{enumerable:s.enumerable}),{getValue:function(){return c},setValue:function(S){c=""+S},stopTracking:function(){n._valueTracker=null,delete n[o]}}}}function je(n){n._valueTracker||(n._valueTracker=ne(n))}function se(n){if(!n)return!1;var o=n._valueTracker;if(!o)return!0;var s=o.getValue(),c="";return n&&(c=rt(n)?n.checked?"true":"false":n.value),n=c,n!==s?(o.setValue(n),!0):!1}function Me(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function dt(n,o){var s=o.checked;return we({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??n._wrapperState.initialChecked})}function wt(n,o){var s=o.defaultValue==null?"":o.defaultValue,c=o.checked!=null?o.checked:o.defaultChecked;s=ke(o.value!=null?o.value:s),n._wrapperState={initialChecked:c,initialValue:s,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function Ce(n,o){o=o.checked,o!=null&&z(n,"checked",o,!1)}function ut(n,o){Ce(n,o);var s=ke(o.value),c=o.type;if(s!=null)c==="number"?(s===0&&n.value===""||n.value!=s)&&(n.value=""+s):n.value!==""+s&&(n.value=""+s);else if(c==="submit"||c==="reset"){n.removeAttribute("value");return}o.hasOwnProperty("value")?jt(n,o.type,s):o.hasOwnProperty("defaultValue")&&jt(n,o.type,ke(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(n.defaultChecked=!!o.defaultChecked)}function qe(n,o,s){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var c=o.type;if(!(c!=="submit"&&c!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+n._wrapperState.initialValue,s||o===n.value||(n.value=o),n.defaultValue=o}s=n.name,s!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,s!==""&&(n.name=s)}function jt(n,o,s){(o!=="number"||Me(n.ownerDocument)!==n)&&(s==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+s&&(n.defaultValue=""+s))}var Ie=Array.isArray;function Ct(n,o,s,c){if(n=n.options,o){o={};for(var v=0;v"+o.valueOf().toString()+"",o=At.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;o.firstChild;)n.appendChild(o.firstChild)}});function Er(n,o){if(o){var s=n.firstChild;if(s&&s===n.lastChild&&s.nodeType===3){s.nodeValue=o;return}}n.textContent=o}var F={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ie=["Webkit","ms","Moz","O"];Object.keys(F).forEach(function(n){ie.forEach(function(o){o=o+n.charAt(0).toUpperCase()+n.substring(1),F[o]=F[n]})});function pe(n,o,s){return o==null||typeof o=="boolean"||o===""?"":s||typeof o!="number"||o===0||F.hasOwnProperty(n)&&F[n]?(""+o).trim():o+"px"}function Ee(n,o){n=n.style;for(var s in o)if(o.hasOwnProperty(s)){var c=s.indexOf("--")===0,v=pe(s,o[s],c);s==="float"&&(s="cssFloat"),c?n.setProperty(s,v):n[s]=v}}var B=we({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function $(n,o){if(o){if(B[n]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(t(137,n));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(t(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(t(61))}if(o.style!=null&&typeof o.style!="object")throw Error(t(62))}}function b(n,o){if(n.indexOf("-")===-1)return typeof o.is=="string";switch(n){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 ee=null;function Ue(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var p=null,V=null,G=null;function k(n){if(n=qo(n)){if(typeof p!="function")throw Error(t(280));var o=n.stateNode;o&&(o=tl(o),p(n.stateNode,n.type,o))}}function A(n){V?G?G.push(n):G=[n]:V=n}function Z(){if(V){var n=V,o=G;if(G=V=null,k(n),o)for(n=0;n>>=0,n===0?32:31-(dp(n)/hp|0)|0}var Ia=64,Ba=4194304;function Fo(n){switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function Ua(n,o){var s=n.pendingLanes;if(s===0)return 0;var c=0,v=n.suspendedLanes,g=n.pingedLanes,S=s&268435455;if(S!==0){var O=S&~v;O!==0?c=Fo(O):(g&=S,g!==0&&(c=Fo(g)))}else S=s&~v,S!==0?c=Fo(S):g!==0&&(c=Fo(g));if(c===0)return 0;if(o!==0&&o!==c&&(o&v)===0&&(v=c&-c,g=o&-o,v>=g||v===16&&(g&4194240)!==0))return o;if((c&4)!==0&&(c|=s&16),o=n.entangledLanes,o!==0)for(n=n.entanglements,o&=c;0s;s++)o.push(n);return o}function Po(n,o,s){n.pendingLanes|=o,o!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,o=31-ln(o),n[o]=s}function mp(n,o){var s=n.pendingLanes&~o;n.pendingLanes=o,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=o,n.mutableReadLanes&=o,n.entangledLanes&=o,o=n.entanglements;var c=n.eventTimes;for(n=n.expirationTimes;0=zo),Lf=" ",Vf=!1;function Wf(n,o){switch(n){case"keyup":return Hp.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qf(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Vi=!1;function Xp(n,o){switch(n){case"compositionend":return qf(o);case"keypress":return o.which!==32?null:(Vf=!0,Lf);case"textInput":return n=o.data,n===Lf&&Vf?null:n;default:return null}}function Zp(n,o){if(Vi)return n==="compositionend"||!Zs&&Wf(n,o)?(n=zf(),Ka=Ws=Gn=null,Vi=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1=o)return{node:s,offset:o-n};n=c}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Qf(s)}}function _f(n,o){return n&&o?n===o?!0:n&&n.nodeType===3?!1:o&&o.nodeType===3?_f(n,o.parentNode):"contains"in n?n.contains(o):n.compareDocumentPosition?!!(n.compareDocumentPosition(o)&16):!1:!1}function $f(){for(var n=window,o=Me();o instanceof n.HTMLIFrameElement;){try{var s=typeof o.contentWindow.location.href=="string"}catch{s=!1}if(s)n=o.contentWindow;else break;o=Me(n.document)}return o}function Js(n){var o=n&&n.nodeName&&n.nodeName.toLowerCase();return o&&(o==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||o==="textarea"||n.contentEditable==="true")}function ng(n){var o=$f(),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&_f(s.ownerDocument.documentElement,s)){if(c!==null&&Js(s)){if(o=c.start,n=c.end,n===void 0&&(n=o),"selectionStart"in s)s.selectionStart=o,s.selectionEnd=Math.min(n,s.value.length);else if(n=(o=s.ownerDocument||document)&&o.defaultView||window,n.getSelection){n=n.getSelection();var v=s.textContent.length,g=Math.min(c.start,v);c=c.end===void 0?g:Math.min(c.end,v),!n.extend&&g>c&&(v=c,c=g,g=v),v=Jf(s,g);var S=Jf(s,c);v&&S&&(n.rangeCount!==1||n.anchorNode!==v.node||n.anchorOffset!==v.offset||n.focusNode!==S.node||n.focusOffset!==S.offset)&&(o=o.createRange(),o.setStart(v.node,v.offset),n.removeAllRanges(),g>c?(n.addRange(o),n.extend(S.node,S.offset)):(o.setEnd(S.node,S.offset),n.addRange(o)))}}for(o=[],n=s;n=n.parentNode;)n.nodeType===1&&o.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s=document.documentMode,Wi=null,_s=null,Bo=null,$s=!1;function ed(n,o,s){var c=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;$s||Wi==null||Wi!==Me(c)||(c=Wi,"selectionStart"in c&&Js(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),Bo&&Io(Bo,c)||(Bo=c,c=_a(_s,"onSelect"),0Xi||(n.current=fu[Xi],fu[Xi]=null,Xi--)}function zt(n,o){Xi++,fu[Xi]=n.current,n.current=o}var Qn={},pr=Yn(Qn),Rr=Yn(!1),wi=Qn;function Zi(n,o){var s=n.type.contextTypes;if(!s)return Qn;var c=n.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===o)return c.__reactInternalMemoizedMaskedChildContext;var v={},g;for(g in s)v[g]=o[g];return c&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=o,n.__reactInternalMemoizedMaskedChildContext=v),v}function Dr(n){return n=n.childContextTypes,n!=null}function rl(){Bt(Rr),Bt(pr)}function pd(n,o,s){if(pr.current!==Qn)throw Error(t(168));zt(pr,o),zt(Rr,s)}function gd(n,o,s){var c=n.stateNode;if(o=o.childContextTypes,typeof c.getChildContext!="function")return s;c=c.getChildContext();for(var v in c)if(!(v in o))throw Error(t(108,Ge(n)||"Unknown",v));return we({},s,c)}function nl(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||Qn,wi=pr.current,zt(pr,n),zt(Rr,Rr.current),!0}function md(n,o,s){var c=n.stateNode;if(!c)throw Error(t(169));s?(n=gd(n,o,wi),c.__reactInternalMemoizedMergedChildContext=n,Bt(Rr),Bt(pr),zt(pr,n)):Bt(Rr),zt(Rr,s)}var Tn=null,il=!1,du=!1;function yd(n){Tn===null?Tn=[n]:Tn.push(n)}function pg(n){il=!0,yd(n)}function Jn(){if(!du&&Tn!==null){du=!0;var n=0,o=Rt;try{var s=Tn;for(Rt=1;n>=S,v-=S,Rn=1<<32-ln(o)+v|s<et?(sr=Ze,Ze=null):sr=Ze.sibling;var kt=ue(K,Ze,X[et],Se);if(kt===null){Ze===null&&(Ze=sr);break}n&&Ze&&kt.alternate===null&&o(K,Ze),I=g(kt,I,et),Xe===null?Ve=kt:Xe.sibling=kt,Xe=kt,Ze=sr}if(et===X.length)return s(K,Ze),Ut&&bi(K,et),Ve;if(Ze===null){for(;etet?(sr=Ze,Ze=null):sr=Ze.sibling;var ai=ue(K,Ze,kt.value,Se);if(ai===null){Ze===null&&(Ze=sr);break}n&&Ze&&ai.alternate===null&&o(K,Ze),I=g(ai,I,et),Xe===null?Ve=ai:Xe.sibling=ai,Xe=ai,Ze=sr}if(kt.done)return s(K,Ze),Ut&&bi(K,et),Ve;if(Ze===null){for(;!kt.done;et++,kt=X.next())kt=ve(K,kt.value,Se),kt!==null&&(I=g(kt,I,et),Xe===null?Ve=kt:Xe.sibling=kt,Xe=kt);return Ut&&bi(K,et),Ve}for(Ze=c(K,Ze);!kt.done;et++,kt=X.next())kt=Re(Ze,K,et,kt.value,Se),kt!==null&&(n&&kt.alternate!==null&&Ze.delete(kt.key===null?et:kt.key),I=g(kt,I,et),Xe===null?Ve=kt:Xe.sibling=kt,Xe=kt);return n&&Ze.forEach(function(Yg){return o(K,Yg)}),Ut&&bi(K,et),Ve}function Yt(K,I,X,Se){if(typeof X=="object"&&X!==null&&X.type===U&&X.key===null&&(X=X.props.children),typeof X=="object"&&X!==null){switch(X.$$typeof){case H:e:{for(var Ve=X.key,Xe=I;Xe!==null;){if(Xe.key===Ve){if(Ve=X.type,Ve===U){if(Xe.tag===7){s(K,Xe.sibling),I=v(Xe,X.props.children),I.return=K,K=I;break e}}else if(Xe.elementType===Ve||typeof Ve=="object"&&Ve!==null&&Ve.$$typeof===he&&Cd(Ve)===Xe.type){s(K,Xe.sibling),I=v(Xe,X.props),I.ref=Ko(K,Xe,X),I.return=K,K=I;break e}s(K,Xe);break}else o(K,Xe);Xe=Xe.sibling}X.type===U?(I=Di(X.props.children,K.mode,Se,X.key),I.return=K,K=I):(Se=Al(X.type,X.key,X.props,null,K.mode,Se),Se.ref=Ko(K,I,X),Se.return=K,K=Se)}return S(K);case M:e:{for(Xe=X.key;I!==null;){if(I.key===Xe)if(I.tag===4&&I.stateNode.containerInfo===X.containerInfo&&I.stateNode.implementation===X.implementation){s(K,I.sibling),I=v(I,X.children||[]),I.return=K,K=I;break e}else{s(K,I);break}else o(K,I);I=I.sibling}I=uc(X,K.mode,Se),I.return=K,K=I}return S(K);case he:return Xe=X._init,Yt(K,I,Xe(X._payload),Se)}if(Ie(X))return ze(K,I,X,Se);if(ge(X))return Be(K,I,X,Se);sl(K,X)}return typeof X=="string"&&X!==""||typeof X=="number"?(X=""+X,I!==null&&I.tag===6?(s(K,I.sibling),I=v(I,X),I.return=K,K=I):(s(K,I),I=sc(X,K.mode,Se),I.return=K,K=I),S(K)):s(K,I)}return Yt}var _i=Fd(!0),Pd=Fd(!1),ul=Yn(null),cl=null,$i=null,yu=null;function xu(){yu=$i=cl=null}function wu(n){var o=ul.current;Bt(ul),n._currentValue=o}function Su(n,o,s){for(;n!==null;){var c=n.alternate;if((n.childLanes&o)!==o?(n.childLanes|=o,c!==null&&(c.childLanes|=o)):c!==null&&(c.childLanes&o)!==o&&(c.childLanes|=o),n===s)break;n=n.return}}function eo(n,o){cl=n,yu=$i=null,n=n.dependencies,n!==null&&n.firstContext!==null&&((n.lanes&o)!==0&&(Or=!0),n.firstContext=null)}function Xr(n){var o=n._currentValue;if(yu!==n)if(n={context:n,memoizedValue:o,next:null},$i===null){if(cl===null)throw Error(t(308));$i=n,cl.dependencies={lanes:0,firstContext:n}}else $i=$i.next=n;return o}var ki=null;function bu(n){ki===null?ki=[n]:ki.push(n)}function Ed(n,o,s,c){var v=o.interleaved;return v===null?(s.next=s,bu(o)):(s.next=v.next,v.next=s),o.interleaved=s,On(n,c)}function On(n,o){n.lanes|=o;var s=n.alternate;for(s!==null&&(s.lanes|=o),s=n,n=n.return;n!==null;)n.childLanes|=o,s=n.alternate,s!==null&&(s.childLanes|=o),s=n,n=n.return;return s.tag===3?s.stateNode:null}var _n=!1;function ku(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Td(n,o){n=n.updateQueue,o.updateQueue===n&&(o.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,effects:n.effects})}function An(n,o){return{eventTime:n,lane:o,tag:0,payload:null,callback:null,next:null}}function $n(n,o,s){var c=n.updateQueue;if(c===null)return null;if(c=c.shared,(St&2)!==0){var v=c.pending;return v===null?o.next=o:(o.next=v.next,v.next=o),c.pending=o,On(n,s)}return v=c.interleaved,v===null?(o.next=o,bu(c)):(o.next=v.next,v.next=o),c.interleaved=o,On(n,s)}function fl(n,o,s){if(o=o.updateQueue,o!==null&&(o=o.shared,(s&4194240)!==0)){var c=o.lanes;c&=n.pendingLanes,s|=c,o.lanes=s,Is(n,s)}}function Rd(n,o){var s=n.updateQueue,c=n.alternate;if(c!==null&&(c=c.updateQueue,s===c)){var v=null,g=null;if(s=s.firstBaseUpdate,s!==null){do{var S={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};g===null?v=g=S:g=g.next=S,s=s.next}while(s!==null);g===null?v=g=o:g=g.next=o}else v=g=o;s={baseState:c.baseState,firstBaseUpdate:v,lastBaseUpdate:g,shared:c.shared,effects:c.effects},n.updateQueue=s;return}n=s.lastBaseUpdate,n===null?s.firstBaseUpdate=o:n.next=o,s.lastBaseUpdate=o}function dl(n,o,s,c){var v=n.updateQueue;_n=!1;var g=v.firstBaseUpdate,S=v.lastBaseUpdate,O=v.shared.pending;if(O!==null){v.shared.pending=null;var N=O,Q=N.next;N.next=null,S===null?g=Q:S.next=Q,S=N;var fe=n.alternate;fe!==null&&(fe=fe.updateQueue,O=fe.lastBaseUpdate,O!==S&&(O===null?fe.firstBaseUpdate=Q:O.next=Q,fe.lastBaseUpdate=N))}if(g!==null){var ve=v.baseState;S=0,fe=Q=N=null,O=g;do{var ue=O.lane,Re=O.eventTime;if((c&ue)===ue){fe!==null&&(fe=fe.next={eventTime:Re,lane:0,tag:O.tag,payload:O.payload,callback:O.callback,next:null});e:{var ze=n,Be=O;switch(ue=o,Re=s,Be.tag){case 1:if(ze=Be.payload,typeof ze=="function"){ve=ze.call(Re,ve,ue);break e}ve=ze;break e;case 3:ze.flags=ze.flags&-65537|128;case 0:if(ze=Be.payload,ue=typeof ze=="function"?ze.call(Re,ve,ue):ze,ue==null)break e;ve=we({},ve,ue);break e;case 2:_n=!0}}O.callback!==null&&O.lane!==0&&(n.flags|=64,ue=v.effects,ue===null?v.effects=[O]:ue.push(O))}else Re={eventTime:Re,lane:ue,tag:O.tag,payload:O.payload,callback:O.callback,next:null},fe===null?(Q=fe=Re,N=ve):fe=fe.next=Re,S|=ue;if(O=O.next,O===null){if(O=v.shared.pending,O===null)break;ue=O,O=ue.next,ue.next=null,v.lastBaseUpdate=ue,v.shared.pending=null}}while(!0);if(fe===null&&(N=ve),v.baseState=N,v.firstBaseUpdate=Q,v.lastBaseUpdate=fe,o=v.shared.interleaved,o!==null){v=o;do S|=v.lane,v=v.next;while(v!==o)}else g===null&&(v.shared.lanes=0);Pi|=S,n.lanes=S,n.memoizedState=ve}}function Dd(n,o,s){if(n=o.effects,o.effects=null,n!==null)for(o=0;os?s:4,n(!0);var c=Tu.transition;Tu.transition={};try{n(!1),o()}finally{Rt=s,Tu.transition=c}}function Yd(){return Zr().memoizedState}function xg(n,o,s){var c=ni(n);if(s={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null},Qd(n))Jd(o,s);else if(s=Ed(n,o,s,c),s!==null){var v=kr();hn(s,n,c,v),_d(s,o,c)}}function wg(n,o,s){var c=ni(n),v={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null};if(Qd(n))Jd(o,v);else{var g=n.alternate;if(n.lanes===0&&(g===null||g.lanes===0)&&(g=o.lastRenderedReducer,g!==null))try{var S=o.lastRenderedState,O=g(S,s);if(v.hasEagerState=!0,v.eagerState=O,sn(O,S)){var N=o.interleaved;N===null?(v.next=v,bu(o)):(v.next=N.next,N.next=v),o.interleaved=v;return}}catch{}finally{}s=Ed(n,o,v,c),s!==null&&(v=kr(),hn(s,n,c,v),_d(s,o,c))}}function Qd(n){var o=n.alternate;return n===Vt||o!==null&&o===Vt}function Jd(n,o){Zo=pl=!0;var s=n.pending;s===null?o.next=o:(o.next=s.next,s.next=o),n.pending=o}function _d(n,o,s){if((s&4194240)!==0){var c=o.lanes;c&=n.pendingLanes,s|=c,o.lanes=s,Is(n,s)}}var yl={readContext:Xr,useCallback:gr,useContext:gr,useEffect:gr,useImperativeHandle:gr,useInsertionEffect:gr,useLayoutEffect:gr,useMemo:gr,useReducer:gr,useRef:gr,useState:gr,useDebugValue:gr,useDeferredValue:gr,useTransition:gr,useMutableSource:gr,useSyncExternalStore:gr,useId:gr,unstable_isNewReconciler:!1},Sg={readContext:Xr,useCallback:function(n,o){return bn().memoizedState=[n,o===void 0?null:o],n},useContext:Xr,useEffect:Vd,useImperativeHandle:function(n,o,s){return s=s!=null?s.concat([n]):null,gl(4194308,4,Kd.bind(null,o,n),s)},useLayoutEffect:function(n,o){return gl(4194308,4,n,o)},useInsertionEffect:function(n,o){return gl(4,2,n,o)},useMemo:function(n,o){var s=bn();return o=o===void 0?null:o,n=n(),s.memoizedState=[n,o],n},useReducer:function(n,o,s){var c=bn();return o=s!==void 0?s(o):o,c.memoizedState=c.baseState=o,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:o},c.queue=n,n=n.dispatch=xg.bind(null,Vt,n),[c.memoizedState,n]},useRef:function(n){var o=bn();return n={current:n},o.memoizedState=n},useState:Ud,useDebugValue:ju,useDeferredValue:function(n){return bn().memoizedState=n},useTransition:function(){var n=Ud(!1),o=n[0];return n=yg.bind(null,n[1]),bn().memoizedState=n,[o,n]},useMutableSource:function(){},useSyncExternalStore:function(n,o,s){var c=Vt,v=bn();if(Ut){if(s===void 0)throw Error(t(407));s=s()}else{if(s=o(),lr===null)throw Error(t(349));(Fi&30)!==0||zd(c,o,s)}v.memoizedState=s;var g={value:s,getSnapshot:o};return v.queue=g,Vd(Md.bind(null,c,g,n),[n]),c.flags|=2048,Jo(9,jd.bind(null,c,g,s,o),void 0,null),s},useId:function(){var n=bn(),o=lr.identifierPrefix;if(Ut){var s=Dn,c=Rn;s=(c&~(1<<32-ln(c)-1)).toString(32)+s,o=":"+o+"R"+s,s=Yo++,0O||v[S]!==g[O]){var z=` +`+v[S].replace(" at new "," at ");return n.displayName&&z.includes("")&&(z=z.replace("",n.displayName)),z}while(1<=S&&0<=O);break}}}finally{Ne=!1,Error.prepareStackTrace=s}return(n=n?n.displayName||n.name:"")?J(n):""}function Ve(n){switch(n.tag){case 5:return J(n.type);case 16:return J("Lazy");case 13:return J("Suspense");case 19:return J("SuspenseList");case 0:case 2:case 15:return n=ze(n.type,!1),n;case 11:return n=ze(n.type.render,!1),n;case 1:return n=ze(n.type,!0),n;default:return""}}function Ae(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case B:return"Fragment";case U:return"Portal";case ee:return"Profiler";case _:return"StrictMode";case Y:return"Suspense";case ke:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case oe:return(n.displayName||"Context")+".Consumer";case te:return(n._context.displayName||"Context")+".Provider";case de:var o=n.render;return n=n.displayName,n||(n=o.displayName||o.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case xe:return o=n.displayName||null,o!==null?o:Ae(n.type)||"Memo";case he:o=n._payload,n=n._init;try{return Ae(n(o))}catch{}}return null}function He(n){var o=n.type;switch(n.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=o.render,n=n.displayName||n.name||"",o.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ae(o);case 8:return o===_?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function Ce(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function nt(n){var o=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function St(n){var o=nt(n)?"checked":"value",s=Object.getOwnPropertyDescriptor(n.constructor.prototype,o),c=""+n[o];if(!n.hasOwnProperty(o)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var v=s.get,g=s.set;return Object.defineProperty(n,o,{configurable:!0,get:function(){return v.call(this)},set:function(S){c=""+S,g.call(this,S)}}),Object.defineProperty(n,o,{enumerable:s.enumerable}),{getValue:function(){return c},setValue:function(S){c=""+S},stopTracking:function(){n._valueTracker=null,delete n[o]}}}}function le(n){n._valueTracker||(n._valueTracker=St(n))}function Pe(n){if(!n)return!1;var o=n._valueTracker;if(!o)return!0;var s=o.getValue(),c="";return n&&(c=nt(n)?n.checked?"true":"false":n.value),n=c,n!==s?(o.setValue(n),!0):!1}function ge(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function We(n,o){var s=o.checked;return we({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??n._wrapperState.initialChecked})}function it(n,o){var s=o.defaultValue==null?"":o.defaultValue,c=o.checked!=null?o.checked:o.defaultChecked;s=Ce(o.value!=null?o.value:s),n._wrapperState={initialChecked:c,initialValue:s,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function ht(n,o){o=o.checked,o!=null&&N(n,"checked",o,!1)}function be(n,o){ht(n,o);var s=Ce(o.value),c=o.type;if(s!=null)c==="number"?(s===0&&n.value===""||n.value!=s)&&(n.value=""+s):n.value!==""+s&&(n.value=""+s);else if(c==="submit"||c==="reset"){n.removeAttribute("value");return}o.hasOwnProperty("value")?xt(n,o.type,s):o.hasOwnProperty("defaultValue")&&xt(n,o.type,Ce(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(n.defaultChecked=!!o.defaultChecked)}function Ge(n,o,s){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var c=o.type;if(!(c!=="submit"&&c!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+n._wrapperState.initialValue,s||o===n.value||(n.value=o),n.defaultValue=o}s=n.name,s!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,s!==""&&(n.name=s)}function xt(n,o,s){(o!=="number"||ge(n.ownerDocument)!==n)&&(s==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+s&&(n.defaultValue=""+s))}var Gt=Array.isArray;function je(n,o,s,c){if(n=n.options,o){o={};for(var v=0;v"+o.valueOf().toString()+"",o=Ut.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;o.firstChild;)n.appendChild(o.firstChild)}});function Er(n,o){if(o){var s=n.firstChild;if(s&&s===n.lastChild&&s.nodeType===3){s.nodeValue=o;return}}n.textContent=o}var F={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ne=["Webkit","ms","Moz","O"];Object.keys(F).forEach(function(n){ne.forEach(function(o){o=o+n.charAt(0).toUpperCase()+n.substring(1),F[o]=F[n]})});function fe(n,o,s){return o==null||typeof o=="boolean"||o===""?"":s||typeof o!="number"||o===0||F.hasOwnProperty(n)&&F[n]?(""+o).trim():o+"px"}function Re(n,o){n=n.style;for(var s in o)if(o.hasOwnProperty(s)){var c=s.indexOf("--")===0,v=fe(s,o[s],c);s==="float"&&(s="cssFloat"),c?n.setProperty(s,v):n[s]=v}}var I=we({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function $(n,o){if(o){if(I[n]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(t(137,n));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(t(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(t(61))}if(o.style!=null&&typeof o.style!="object")throw Error(t(62))}}function b(n,o){if(n.indexOf("-")===-1)return typeof o.is=="string";switch(n){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 ie=null;function Te(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var p=null,q=null,V=null;function k(n){if(n=qo(n)){if(typeof p!="function")throw Error(t(280));var o=n.stateNode;o&&(o=tl(o),p(n.stateNode,n.type,o))}}function A(n){q?V?V.push(n):V=[n]:q=n}function X(){if(q){var n=q,o=V;if(V=q=null,k(n),o)for(n=0;n>>=0,n===0?32:31-(dp(n)/hp|0)|0}var Ia=64,Ba=4194304;function Fo(n){switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function Ua(n,o){var s=n.pendingLanes;if(s===0)return 0;var c=0,v=n.suspendedLanes,g=n.pingedLanes,S=s&268435455;if(S!==0){var O=S&~v;O!==0?c=Fo(O):(g&=S,g!==0&&(c=Fo(g)))}else S=s&~v,S!==0?c=Fo(S):g!==0&&(c=Fo(g));if(c===0)return 0;if(o!==0&&o!==c&&(o&v)===0&&(v=c&-c,g=o&-o,v>=g||v===16&&(g&4194240)!==0))return o;if((c&4)!==0&&(c|=s&16),o=n.entangledLanes,o!==0)for(n=n.entanglements,o&=c;0s;s++)o.push(n);return o}function Po(n,o,s){n.pendingLanes|=o,o!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,o=31-sn(o),n[o]=s}function mp(n,o){var s=n.pendingLanes&~o;n.pendingLanes=o,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=o,n.mutableReadLanes&=o,n.entangledLanes&=o,o=n.entanglements;var c=n.eventTimes;for(n=n.expirationTimes;0=zo),Lf=" ",Vf=!1;function Wf(n,o){switch(n){case"keyup":return Hp.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qf(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Vi=!1;function Xp(n,o){switch(n){case"compositionend":return qf(o);case"keypress":return o.which!==32?null:(Vf=!0,Lf);case"textInput":return n=o.data,n===Lf&&Vf?null:n;default:return null}}function Zp(n,o){if(Vi)return n==="compositionend"||!Zs&&Wf(n,o)?(n=zf(),Ka=Ws=Gn=null,Vi=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1=o)return{node:s,offset:o-n};n=c}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Qf(s)}}function _f(n,o){return n&&o?n===o?!0:n&&n.nodeType===3?!1:o&&o.nodeType===3?_f(n,o.parentNode):"contains"in n?n.contains(o):n.compareDocumentPosition?!!(n.compareDocumentPosition(o)&16):!1:!1}function $f(){for(var n=window,o=ge();o instanceof n.HTMLIFrameElement;){try{var s=typeof o.contentWindow.location.href=="string"}catch{s=!1}if(s)n=o.contentWindow;else break;o=ge(n.document)}return o}function Js(n){var o=n&&n.nodeName&&n.nodeName.toLowerCase();return o&&(o==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||o==="textarea"||n.contentEditable==="true")}function ng(n){var o=$f(),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&_f(s.ownerDocument.documentElement,s)){if(c!==null&&Js(s)){if(o=c.start,n=c.end,n===void 0&&(n=o),"selectionStart"in s)s.selectionStart=o,s.selectionEnd=Math.min(n,s.value.length);else if(n=(o=s.ownerDocument||document)&&o.defaultView||window,n.getSelection){n=n.getSelection();var v=s.textContent.length,g=Math.min(c.start,v);c=c.end===void 0?g:Math.min(c.end,v),!n.extend&&g>c&&(v=c,c=g,g=v),v=Jf(s,g);var S=Jf(s,c);v&&S&&(n.rangeCount!==1||n.anchorNode!==v.node||n.anchorOffset!==v.offset||n.focusNode!==S.node||n.focusOffset!==S.offset)&&(o=o.createRange(),o.setStart(v.node,v.offset),n.removeAllRanges(),g>c?(n.addRange(o),n.extend(S.node,S.offset)):(o.setEnd(S.node,S.offset),n.addRange(o)))}}for(o=[],n=s;n=n.parentNode;)n.nodeType===1&&o.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s=document.documentMode,Wi=null,_s=null,Bo=null,$s=!1;function ed(n,o,s){var c=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;$s||Wi==null||Wi!==ge(c)||(c=Wi,"selectionStart"in c&&Js(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),Bo&&Io(Bo,c)||(Bo=c,c=_a(_s,"onSelect"),0Xi||(n.current=fu[Xi],fu[Xi]=null,Xi--)}function zt(n,o){Xi++,fu[Xi]=n.current,n.current=o}var Qn={},mr=Yn(Qn),Rr=Yn(!1),wi=Qn;function Zi(n,o){var s=n.type.contextTypes;if(!s)return Qn;var c=n.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===o)return c.__reactInternalMemoizedMaskedChildContext;var v={},g;for(g in s)v[g]=o[g];return c&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=o,n.__reactInternalMemoizedMaskedChildContext=v),v}function Dr(n){return n=n.childContextTypes,n!=null}function rl(){Mt(Rr),Mt(mr)}function pd(n,o,s){if(mr.current!==Qn)throw Error(t(168));zt(mr,o),zt(Rr,s)}function gd(n,o,s){var c=n.stateNode;if(o=o.childContextTypes,typeof c.getChildContext!="function")return s;c=c.getChildContext();for(var v in c)if(!(v in o))throw Error(t(108,He(n)||"Unknown",v));return we({},s,c)}function nl(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||Qn,wi=mr.current,zt(mr,n),zt(Rr,Rr.current),!0}function md(n,o,s){var c=n.stateNode;if(!c)throw Error(t(169));s?(n=gd(n,o,wi),c.__reactInternalMemoizedMergedChildContext=n,Mt(Rr),Mt(mr),zt(mr,n)):Mt(Rr),zt(Rr,s)}var Tn=null,il=!1,du=!1;function yd(n){Tn===null?Tn=[n]:Tn.push(n)}function pg(n){il=!0,yd(n)}function Jn(){if(!du&&Tn!==null){du=!0;var n=0,o=Ot;try{var s=Tn;for(Ot=1;n>=S,v-=S,Rn=1<<32-sn(o)+v|s<$e?(cr=Ze,Ze=null):cr=Ze.sibling;var Ft=se(K,Ze,Z[$e],Se);if(Ft===null){Ze===null&&(Ze=cr);break}n&&Ze&&Ft.alternate===null&&o(K,Ze),M=g(Ft,M,$e),Xe===null?Le=Ft:Xe.sibling=Ft,Xe=Ft,Ze=cr}if($e===Z.length)return s(K,Ze),Bt&&bi(K,$e),Le;if(Ze===null){for(;$e$e?(cr=Ze,Ze=null):cr=Ze.sibling;var ai=se(K,Ze,Ft.value,Se);if(ai===null){Ze===null&&(Ze=cr);break}n&&Ze&&ai.alternate===null&&o(K,Ze),M=g(ai,M,$e),Xe===null?Le=ai:Xe.sibling=ai,Xe=ai,Ze=cr}if(Ft.done)return s(K,Ze),Bt&&bi(K,$e),Le;if(Ze===null){for(;!Ft.done;$e++,Ft=Z.next())Ft=ve(K,Ft.value,Se),Ft!==null&&(M=g(Ft,M,$e),Xe===null?Le=Ft:Xe.sibling=Ft,Xe=Ft);return Bt&&bi(K,$e),Le}for(Ze=c(K,Ze);!Ft.done;$e++,Ft=Z.next())Ft=Oe(Ze,K,$e,Ft.value,Se),Ft!==null&&(n&&Ft.alternate!==null&&Ze.delete(Ft.key===null?$e:Ft.key),M=g(Ft,M,$e),Xe===null?Le=Ft:Xe.sibling=Ft,Xe=Ft);return n&&Ze.forEach(function(Yg){return o(K,Yg)}),Bt&&bi(K,$e),Le}function Yt(K,M,Z,Se){if(typeof Z=="object"&&Z!==null&&Z.type===B&&Z.key===null&&(Z=Z.props.children),typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case G:e:{for(var Le=Z.key,Xe=M;Xe!==null;){if(Xe.key===Le){if(Le=Z.type,Le===B){if(Xe.tag===7){s(K,Xe.sibling),M=v(Xe,Z.props.children),M.return=K,K=M;break e}}else if(Xe.elementType===Le||typeof Le=="object"&&Le!==null&&Le.$$typeof===he&&Cd(Le)===Xe.type){s(K,Xe.sibling),M=v(Xe,Z.props),M.ref=Ko(K,Xe,Z),M.return=K,K=M;break e}s(K,Xe);break}else o(K,Xe);Xe=Xe.sibling}Z.type===B?(M=Di(Z.props.children,K.mode,Se,Z.key),M.return=K,K=M):(Se=Al(Z.type,Z.key,Z.props,null,K.mode,Se),Se.ref=Ko(K,M,Z),Se.return=K,K=Se)}return S(K);case U:e:{for(Xe=Z.key;M!==null;){if(M.key===Xe)if(M.tag===4&&M.stateNode.containerInfo===Z.containerInfo&&M.stateNode.implementation===Z.implementation){s(K,M.sibling),M=v(M,Z.children||[]),M.return=K,K=M;break e}else{s(K,M);break}else o(K,M);M=M.sibling}M=uc(Z,K.mode,Se),M.return=K,K=M}return S(K);case he:return Xe=Z._init,Yt(K,M,Xe(Z._payload),Se)}if(Gt(Z))return Be(K,M,Z,Se);if(pe(Z))return Ue(K,M,Z,Se);sl(K,Z)}return typeof Z=="string"&&Z!==""||typeof Z=="number"?(Z=""+Z,M!==null&&M.tag===6?(s(K,M.sibling),M=v(M,Z),M.return=K,K=M):(s(K,M),M=sc(Z,K.mode,Se),M.return=K,K=M),S(K)):s(K,M)}return Yt}var _i=Fd(!0),Pd=Fd(!1),ul=Yn(null),cl=null,$i=null,yu=null;function xu(){yu=$i=cl=null}function wu(n){var o=ul.current;Mt(ul),n._currentValue=o}function Su(n,o,s){for(;n!==null;){var c=n.alternate;if((n.childLanes&o)!==o?(n.childLanes|=o,c!==null&&(c.childLanes|=o)):c!==null&&(c.childLanes&o)!==o&&(c.childLanes|=o),n===s)break;n=n.return}}function eo(n,o){cl=n,yu=$i=null,n=n.dependencies,n!==null&&n.firstContext!==null&&((n.lanes&o)!==0&&(Or=!0),n.firstContext=null)}function Zr(n){var o=n._currentValue;if(yu!==n)if(n={context:n,memoizedValue:o,next:null},$i===null){if(cl===null)throw Error(t(308));$i=n,cl.dependencies={lanes:0,firstContext:n}}else $i=$i.next=n;return o}var ki=null;function bu(n){ki===null?ki=[n]:ki.push(n)}function Ed(n,o,s,c){var v=o.interleaved;return v===null?(s.next=s,bu(o)):(s.next=v.next,v.next=s),o.interleaved=s,On(n,c)}function On(n,o){n.lanes|=o;var s=n.alternate;for(s!==null&&(s.lanes|=o),s=n,n=n.return;n!==null;)n.childLanes|=o,s=n.alternate,s!==null&&(s.childLanes|=o),s=n,n=n.return;return s.tag===3?s.stateNode:null}var _n=!1;function ku(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Td(n,o){n=n.updateQueue,o.updateQueue===n&&(o.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,effects:n.effects})}function An(n,o){return{eventTime:n,lane:o,tag:0,payload:null,callback:null,next:null}}function $n(n,o,s){var c=n.updateQueue;if(c===null)return null;if(c=c.shared,(bt&2)!==0){var v=c.pending;return v===null?o.next=o:(o.next=v.next,v.next=o),c.pending=o,On(n,s)}return v=c.interleaved,v===null?(o.next=o,bu(c)):(o.next=v.next,v.next=o),c.interleaved=o,On(n,s)}function fl(n,o,s){if(o=o.updateQueue,o!==null&&(o=o.shared,(s&4194240)!==0)){var c=o.lanes;c&=n.pendingLanes,s|=c,o.lanes=s,Is(n,s)}}function Rd(n,o){var s=n.updateQueue,c=n.alternate;if(c!==null&&(c=c.updateQueue,s===c)){var v=null,g=null;if(s=s.firstBaseUpdate,s!==null){do{var S={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};g===null?v=g=S:g=g.next=S,s=s.next}while(s!==null);g===null?v=g=o:g=g.next=o}else v=g=o;s={baseState:c.baseState,firstBaseUpdate:v,lastBaseUpdate:g,shared:c.shared,effects:c.effects},n.updateQueue=s;return}n=s.lastBaseUpdate,n===null?s.firstBaseUpdate=o:n.next=o,s.lastBaseUpdate=o}function dl(n,o,s,c){var v=n.updateQueue;_n=!1;var g=v.firstBaseUpdate,S=v.lastBaseUpdate,O=v.shared.pending;if(O!==null){v.shared.pending=null;var z=O,Q=z.next;z.next=null,S===null?g=Q:S.next=Q,S=z;var ce=n.alternate;ce!==null&&(ce=ce.updateQueue,O=ce.lastBaseUpdate,O!==S&&(O===null?ce.firstBaseUpdate=Q:O.next=Q,ce.lastBaseUpdate=z))}if(g!==null){var ve=v.baseState;S=0,ce=Q=z=null,O=g;do{var se=O.lane,Oe=O.eventTime;if((c&se)===se){ce!==null&&(ce=ce.next={eventTime:Oe,lane:0,tag:O.tag,payload:O.payload,callback:O.callback,next:null});e:{var Be=n,Ue=O;switch(se=o,Oe=s,Ue.tag){case 1:if(Be=Ue.payload,typeof Be=="function"){ve=Be.call(Oe,ve,se);break e}ve=Be;break e;case 3:Be.flags=Be.flags&-65537|128;case 0:if(Be=Ue.payload,se=typeof Be=="function"?Be.call(Oe,ve,se):Be,se==null)break e;ve=we({},ve,se);break e;case 2:_n=!0}}O.callback!==null&&O.lane!==0&&(n.flags|=64,se=v.effects,se===null?v.effects=[O]:se.push(O))}else Oe={eventTime:Oe,lane:se,tag:O.tag,payload:O.payload,callback:O.callback,next:null},ce===null?(Q=ce=Oe,z=ve):ce=ce.next=Oe,S|=se;if(O=O.next,O===null){if(O=v.shared.pending,O===null)break;se=O,O=se.next,se.next=null,v.lastBaseUpdate=se,v.shared.pending=null}}while(!0);if(ce===null&&(z=ve),v.baseState=z,v.firstBaseUpdate=Q,v.lastBaseUpdate=ce,o=v.shared.interleaved,o!==null){v=o;do S|=v.lane,v=v.next;while(v!==o)}else g===null&&(v.shared.lanes=0);Pi|=S,n.lanes=S,n.memoizedState=ve}}function Dd(n,o,s){if(n=o.effects,o.effects=null,n!==null)for(o=0;os?s:4,n(!0);var c=Tu.transition;Tu.transition={};try{n(!1),o()}finally{Ot=s,Tu.transition=c}}function Yd(){return Yr().memoizedState}function xg(n,o,s){var c=ni(n);if(s={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null},Qd(n))Jd(o,s);else if(s=Ed(n,o,s,c),s!==null){var v=Cr();vn(s,n,c,v),_d(s,o,c)}}function wg(n,o,s){var c=ni(n),v={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null};if(Qd(n))Jd(o,v);else{var g=n.alternate;if(n.lanes===0&&(g===null||g.lanes===0)&&(g=o.lastRenderedReducer,g!==null))try{var S=o.lastRenderedState,O=g(S,s);if(v.hasEagerState=!0,v.eagerState=O,un(O,S)){var z=o.interleaved;z===null?(v.next=v,bu(o)):(v.next=z.next,z.next=v),o.interleaved=v;return}}catch{}finally{}s=Ed(n,o,v,c),s!==null&&(v=Cr(),vn(s,n,c,v),_d(s,o,c))}}function Qd(n){var o=n.alternate;return n===Vt||o!==null&&o===Vt}function Jd(n,o){Zo=pl=!0;var s=n.pending;s===null?o.next=o:(o.next=s.next,s.next=o),n.pending=o}function _d(n,o,s){if((s&4194240)!==0){var c=o.lanes;c&=n.pendingLanes,s|=c,o.lanes=s,Is(n,s)}}var yl={readContext:Zr,useCallback:yr,useContext:yr,useEffect:yr,useImperativeHandle:yr,useInsertionEffect:yr,useLayoutEffect:yr,useMemo:yr,useReducer:yr,useRef:yr,useState:yr,useDebugValue:yr,useDeferredValue:yr,useTransition:yr,useMutableSource:yr,useSyncExternalStore:yr,useId:yr,unstable_isNewReconciler:!1},Sg={readContext:Zr,useCallback:function(n,o){return bn().memoizedState=[n,o===void 0?null:o],n},useContext:Zr,useEffect:Vd,useImperativeHandle:function(n,o,s){return s=s!=null?s.concat([n]):null,gl(4194308,4,Kd.bind(null,o,n),s)},useLayoutEffect:function(n,o){return gl(4194308,4,n,o)},useInsertionEffect:function(n,o){return gl(4,2,n,o)},useMemo:function(n,o){var s=bn();return o=o===void 0?null:o,n=n(),s.memoizedState=[n,o],n},useReducer:function(n,o,s){var c=bn();return o=s!==void 0?s(o):o,c.memoizedState=c.baseState=o,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:o},c.queue=n,n=n.dispatch=xg.bind(null,Vt,n),[c.memoizedState,n]},useRef:function(n){var o=bn();return n={current:n},o.memoizedState=n},useState:Ud,useDebugValue:ju,useDeferredValue:function(n){return bn().memoizedState=n},useTransition:function(){var n=Ud(!1),o=n[0];return n=yg.bind(null,n[1]),bn().memoizedState=n,[o,n]},useMutableSource:function(){},useSyncExternalStore:function(n,o,s){var c=Vt,v=bn();if(Bt){if(s===void 0)throw Error(t(407));s=s()}else{if(s=o(),ur===null)throw Error(t(349));(Fi&30)!==0||zd(c,o,s)}v.memoizedState=s;var g={value:s,getSnapshot:o};return v.queue=g,Vd(Md.bind(null,c,g,n),[n]),c.flags|=2048,Jo(9,jd.bind(null,c,g,s,o),void 0,null),s},useId:function(){var n=bn(),o=ur.identifierPrefix;if(Bt){var s=Dn,c=Rn;s=(c&~(1<<32-sn(c)-1)).toString(32)+s,o=":"+o+"R"+s,s=Yo++,0<\/script>",n=n.removeChild(n.firstChild)):typeof c.is=="string"?n=S.createElement(s,{is:c.is}):(n=S.createElement(s),s==="select"&&(S=n,c.multiple?S.multiple=!0:c.size&&(S.size=c.size))):n=S.createElementNS(n,s),n[wn]=o,n[Wo]=c,yh(n,o,!1,!1),o.stateNode=n;e:{switch(S=b(s,c),s){case"dialog":It("cancel",n),It("close",n),v=c;break;case"iframe":case"object":case"embed":It("load",n),v=c;break;case"video":case"audio":for(v=0;voo&&(o.flags|=128,c=!0,_o(g,!1),o.lanes=4194304)}else{if(!c)if(n=hl(S),n!==null){if(o.flags|=128,c=!0,s=n.updateQueue,s!==null&&(o.updateQueue=s,o.flags|=4),_o(g,!0),g.tail===null&&g.tailMode==="hidden"&&!S.alternate&&!Ut)return mr(o),null}else 2*Zt()-g.renderingStartTime>oo&&s!==1073741824&&(o.flags|=128,c=!0,_o(g,!1),o.lanes=4194304);g.isBackwards?(S.sibling=o.child,o.child=S):(s=g.last,s!==null?s.sibling=S:o.child=S,g.last=S)}return g.tail!==null?(o=g.tail,g.rendering=o,g.tail=o.sibling,g.renderingStartTime=Zt(),o.sibling=null,s=Lt.current,zt(Lt,c?s&1|2:s&1),o):(mr(o),null);case 22:case 23:return oc(),c=o.memoizedState!==null,n!==null&&n.memoizedState!==null!==c&&(o.flags|=8192),c&&(o.mode&1)!==0?(Lr&1073741824)!==0&&(mr(o),o.subtreeFlags&6&&(o.flags|=8192)):mr(o),null;case 24:return null;case 25:return null}throw Error(t(156,o.tag))}function Rg(n,o){switch(vu(o),o.tag){case 1:return Dr(o.type)&&rl(),n=o.flags,n&65536?(o.flags=n&-65537|128,o):null;case 3:return to(),Bt(Rr),Bt(pr),Eu(),n=o.flags,(n&65536)!==0&&(n&128)===0?(o.flags=n&-65537|128,o):null;case 5:return Fu(o),null;case 13:if(Bt(Lt),n=o.memoizedState,n!==null&&n.dehydrated!==null){if(o.alternate===null)throw Error(t(340));Ji()}return n=o.flags,n&65536?(o.flags=n&-65537|128,o):null;case 19:return Bt(Lt),null;case 4:return to(),null;case 10:return wu(o.type._context),null;case 22:case 23:return oc(),null;case 24:return null;default:return null}}var bl=!1,yr=!1,Dg=typeof WeakSet=="function"?WeakSet:Set,Ne=null;function no(n,o){var s=n.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(c){Gt(n,o,c)}else s.current=null}function Xu(n,o,s){try{s()}catch(c){Gt(n,o,c)}}var Sh=!1;function Og(n,o){if(ou=Wa,n=$f(),Js(n)){if("selectionStart"in n)var s={start:n.selectionStart,end:n.selectionEnd};else e:{s=(s=n.ownerDocument)&&s.defaultView||window;var c=s.getSelection&&s.getSelection();if(c&&c.rangeCount!==0){s=c.anchorNode;var v=c.anchorOffset,g=c.focusNode;c=c.focusOffset;try{s.nodeType,g.nodeType}catch{s=null;break e}var S=0,O=-1,N=-1,Q=0,fe=0,ve=n,ue=null;t:for(;;){for(var Re;ve!==s||v!==0&&ve.nodeType!==3||(O=S+v),ve!==g||c!==0&&ve.nodeType!==3||(N=S+c),ve.nodeType===3&&(S+=ve.nodeValue.length),(Re=ve.firstChild)!==null;)ue=ve,ve=Re;for(;;){if(ve===n)break t;if(ue===s&&++Q===v&&(O=S),ue===g&&++fe===c&&(N=S),(Re=ve.nextSibling)!==null)break;ve=ue,ue=ve.parentNode}ve=Re}s=O===-1||N===-1?null:{start:O,end:N}}else s=null}s=s||{start:0,end:0}}else s=null;for(au={focusedElem:n,selectionRange:s},Wa=!1,Ne=o;Ne!==null;)if(o=Ne,n=o.child,(o.subtreeFlags&1028)!==0&&n!==null)n.return=o,Ne=n;else for(;Ne!==null;){o=Ne;try{var ze=o.alternate;if((o.flags&1024)!==0)switch(o.tag){case 0:case 11:case 15:break;case 1:if(ze!==null){var Be=ze.memoizedProps,Yt=ze.memoizedState,K=o.stateNode,I=K.getSnapshotBeforeUpdate(o.elementType===o.type?Be:cn(o.type,Be),Yt);K.__reactInternalSnapshotBeforeUpdate=I}break;case 3:var X=o.stateNode.containerInfo;X.nodeType===1?X.textContent="":X.nodeType===9&&X.documentElement&&X.removeChild(X.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(t(163))}}catch(Se){Gt(o,o.return,Se)}if(n=o.sibling,n!==null){n.return=o.return,Ne=n;break}Ne=o.return}return ze=Sh,Sh=!1,ze}function $o(n,o,s){var c=o.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var v=c=c.next;do{if((v.tag&n)===n){var g=v.destroy;v.destroy=void 0,g!==void 0&&Xu(o,s,g)}v=v.next}while(v!==c)}}function kl(n,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var s=o=o.next;do{if((s.tag&n)===n){var c=s.create;s.destroy=c()}s=s.next}while(s!==o)}}function Zu(n){var o=n.ref;if(o!==null){var s=n.stateNode;switch(n.tag){case 5:n=s;break;default:n=s}typeof o=="function"?o(n):o.current=n}}function bh(n){var o=n.alternate;o!==null&&(n.alternate=null,bh(o)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(o=n.stateNode,o!==null&&(delete o[wn],delete o[Wo],delete o[cu],delete o[hg],delete o[vg])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function kh(n){return n.tag===5||n.tag===3||n.tag===4}function Ch(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||kh(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Yu(n,o,s){var c=n.tag;if(c===5||c===6)n=n.stateNode,o?s.nodeType===8?s.parentNode.insertBefore(n,o):s.insertBefore(n,o):(s.nodeType===8?(o=s.parentNode,o.insertBefore(n,s)):(o=s,o.appendChild(n)),s=s._reactRootContainer,s!=null||o.onclick!==null||(o.onclick=el));else if(c!==4&&(n=n.child,n!==null))for(Yu(n,o,s),n=n.sibling;n!==null;)Yu(n,o,s),n=n.sibling}function Qu(n,o,s){var c=n.tag;if(c===5||c===6)n=n.stateNode,o?s.insertBefore(n,o):s.appendChild(n);else if(c!==4&&(n=n.child,n!==null))for(Qu(n,o,s),n=n.sibling;n!==null;)Qu(n,o,s),n=n.sibling}var fr=null,fn=!1;function ei(n,o,s){for(s=s.child;s!==null;)Fh(n,o,s),s=s.sibling}function Fh(n,o,s){if(xn&&typeof xn.onCommitFiberUnmount=="function")try{xn.onCommitFiberUnmount(Ma,s)}catch{}switch(s.tag){case 5:yr||no(s,o);case 6:var c=fr,v=fn;fr=null,ei(n,o,s),fr=c,fn=v,fr!==null&&(fn?(n=fr,s=s.stateNode,n.nodeType===8?n.parentNode.removeChild(s):n.removeChild(s)):fr.removeChild(s.stateNode));break;case 18:fr!==null&&(fn?(n=fr,s=s.stateNode,n.nodeType===8?uu(n.parentNode,s):n.nodeType===1&&uu(n,s),Oo(n)):uu(fr,s.stateNode));break;case 4:c=fr,v=fn,fr=s.stateNode.containerInfo,fn=!0,ei(n,o,s),fr=c,fn=v;break;case 0:case 11:case 14:case 15:if(!yr&&(c=s.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){v=c=c.next;do{var g=v,S=g.destroy;g=g.tag,S!==void 0&&((g&2)!==0||(g&4)!==0)&&Xu(s,o,S),v=v.next}while(v!==c)}ei(n,o,s);break;case 1:if(!yr&&(no(s,o),c=s.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=s.memoizedProps,c.state=s.memoizedState,c.componentWillUnmount()}catch(O){Gt(s,o,O)}ei(n,o,s);break;case 21:ei(n,o,s);break;case 22:s.mode&1?(yr=(c=yr)||s.memoizedState!==null,ei(n,o,s),yr=c):ei(n,o,s);break;default:ei(n,o,s)}}function Ph(n){var o=n.updateQueue;if(o!==null){n.updateQueue=null;var s=n.stateNode;s===null&&(s=n.stateNode=new Dg),o.forEach(function(c){var v=Lg.bind(null,n,c);s.has(c)||(s.add(c),c.then(v,v))})}}function dn(n,o){var s=o.deletions;if(s!==null)for(var c=0;cv&&(v=S),c&=~g}if(c=v,c=Zt()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*Ng(c/1960))-c,10n?16:n,ri===null)var c=!1;else{if(n=ri,ri=null,Tl=0,(St&6)!==0)throw Error(t(331));var v=St;for(St|=4,Ne=n.current;Ne!==null;){var g=Ne,S=g.child;if((Ne.flags&16)!==0){var O=g.deletions;if(O!==null){for(var N=0;NZt()-$u?Ti(n,0):_u|=s),Nr(n,o)}function Uh(n,o){o===0&&((n.mode&1)===0?o=1:(o=Ba,Ba<<=1,(Ba&130023424)===0&&(Ba=4194304)));var s=kr();n=On(n,o),n!==null&&(Po(n,o,s),Nr(n,s))}function Ug(n){var o=n.memoizedState,s=0;o!==null&&(s=o.retryLane),Uh(n,s)}function Lg(n,o){var s=0;switch(n.tag){case 13:var c=n.stateNode,v=n.memoizedState;v!==null&&(s=v.retryLane);break;case 19:c=n.stateNode;break;default:throw Error(t(314))}c!==null&&c.delete(o),Uh(n,s)}var Lh;Lh=function(n,o,s){if(n!==null)if(n.memoizedProps!==o.pendingProps||Rr.current)Or=!0;else{if((n.lanes&s)===0&&(o.flags&128)===0)return Or=!1,Eg(n,o,s);Or=(n.flags&131072)!==0}else Or=!1,Ut&&(o.flags&1048576)!==0&&xd(o,al,o.index);switch(o.lanes=0,o.tag){case 2:var c=o.type;Sl(n,o),n=o.pendingProps;var v=Zi(o,pr.current);eo(o,s),v=Du(null,o,c,n,v,s);var g=Ou();return o.flags|=1,typeof v=="object"&&v!==null&&typeof v.render=="function"&&v.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,Dr(c)?(g=!0,nl(o)):g=!1,o.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,ku(o),v.updater=xl,o.stateNode=v,v._reactInternals=o,Iu(o,c,n,s),o=Vu(null,o,c,!0,g,s)):(o.tag=0,Ut&&g&&hu(o),br(null,o,v,s),o=o.child),o;case 16:c=o.elementType;e:{switch(Sl(n,o),n=o.pendingProps,v=c._init,c=v(c._payload),o.type=c,v=o.tag=Wg(c),n=cn(c,n),v){case 0:o=Lu(null,o,c,n,s);break e;case 1:o=dh(null,o,c,n,s);break e;case 11:o=lh(null,o,c,n,s);break e;case 14:o=sh(null,o,c,cn(c.type,n),s);break e}throw Error(t(306,c,""))}return o;case 0:return c=o.type,v=o.pendingProps,v=o.elementType===c?v:cn(c,v),Lu(n,o,c,v,s);case 1:return c=o.type,v=o.pendingProps,v=o.elementType===c?v:cn(c,v),dh(n,o,c,v,s);case 3:e:{if(hh(o),n===null)throw Error(t(387));c=o.pendingProps,g=o.memoizedState,v=g.element,Td(n,o),dl(o,c,null,s);var S=o.memoizedState;if(c=S.element,g.isDehydrated)if(g={element:c,isDehydrated:!1,cache:S.cache,pendingSuspenseBoundaries:S.pendingSuspenseBoundaries,transitions:S.transitions},o.updateQueue.baseState=g,o.memoizedState=g,o.flags&256){v=ro(Error(t(423)),o),o=vh(n,o,c,s,v);break e}else if(c!==v){v=ro(Error(t(424)),o),o=vh(n,o,c,s,v);break e}else for(Ur=Zn(o.stateNode.containerInfo.firstChild),Br=o,Ut=!0,un=null,s=Pd(o,null,c,s),o.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(Ji(),c===v){o=Nn(n,o,s);break e}br(n,o,c,s)}o=o.child}return o;case 5:return Od(o),n===null&&gu(o),c=o.type,v=o.pendingProps,g=n!==null?n.memoizedProps:null,S=v.children,lu(c,v)?S=null:g!==null&&lu(c,g)&&(o.flags|=32),fh(n,o),br(n,o,S,s),o.child;case 6:return n===null&&gu(o),null;case 13:return ph(n,o,s);case 4:return Cu(o,o.stateNode.containerInfo),c=o.pendingProps,n===null?o.child=_i(o,null,c,s):br(n,o,c,s),o.child;case 11:return c=o.type,v=o.pendingProps,v=o.elementType===c?v:cn(c,v),lh(n,o,c,v,s);case 7:return br(n,o,o.pendingProps,s),o.child;case 8:return br(n,o,o.pendingProps.children,s),o.child;case 12:return br(n,o,o.pendingProps.children,s),o.child;case 10:e:{if(c=o.type._context,v=o.pendingProps,g=o.memoizedProps,S=v.value,zt(ul,c._currentValue),c._currentValue=S,g!==null)if(sn(g.value,S)){if(g.children===v.children&&!Rr.current){o=Nn(n,o,s);break e}}else for(g=o.child,g!==null&&(g.return=o);g!==null;){var O=g.dependencies;if(O!==null){S=g.child;for(var N=O.firstContext;N!==null;){if(N.context===c){if(g.tag===1){N=An(-1,s&-s),N.tag=2;var Q=g.updateQueue;if(Q!==null){Q=Q.shared;var fe=Q.pending;fe===null?N.next=N:(N.next=fe.next,fe.next=N),Q.pending=N}}g.lanes|=s,N=g.alternate,N!==null&&(N.lanes|=s),Su(g.return,s,o),O.lanes|=s;break}N=N.next}}else if(g.tag===10)S=g.type===o.type?null:g.child;else if(g.tag===18){if(S=g.return,S===null)throw Error(t(341));S.lanes|=s,O=S.alternate,O!==null&&(O.lanes|=s),Su(S,s,o),S=g.sibling}else S=g.child;if(S!==null)S.return=g;else for(S=g;S!==null;){if(S===o){S=null;break}if(g=S.sibling,g!==null){g.return=S.return,S=g;break}S=S.return}g=S}br(n,o,v.children,s),o=o.child}return o;case 9:return v=o.type,c=o.pendingProps.children,eo(o,s),v=Xr(v),c=c(v),o.flags|=1,br(n,o,c,s),o.child;case 14:return c=o.type,v=cn(c,o.pendingProps),v=cn(c.type,v),sh(n,o,c,v,s);case 15:return uh(n,o,o.type,o.pendingProps,s);case 17:return c=o.type,v=o.pendingProps,v=o.elementType===c?v:cn(c,v),Sl(n,o),o.tag=1,Dr(c)?(n=!0,nl(o)):n=!1,eo(o,s),eh(o,c,v),Iu(o,c,v,s),Vu(null,o,c,!0,n,s);case 19:return mh(n,o,s);case 22:return ch(n,o,s)}throw Error(t(156,o.tag))};function Vh(n,o){return wf(n,o)}function Vg(n,o,s,c){this.tag=n,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qr(n,o,s,c){return new Vg(n,o,s,c)}function lc(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Wg(n){if(typeof n=="function")return lc(n)?1:0;if(n!=null){if(n=n.$$typeof,n===de)return 11;if(n===xe)return 14}return 2}function oi(n,o){var s=n.alternate;return s===null?(s=Qr(n.tag,o,n.key,n.mode),s.elementType=n.elementType,s.type=n.type,s.stateNode=n.stateNode,s.alternate=n,n.alternate=s):(s.pendingProps=o,s.type=n.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=n.flags&14680064,s.childLanes=n.childLanes,s.lanes=n.lanes,s.child=n.child,s.memoizedProps=n.memoizedProps,s.memoizedState=n.memoizedState,s.updateQueue=n.updateQueue,o=n.dependencies,s.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},s.sibling=n.sibling,s.index=n.index,s.ref=n.ref,s}function Al(n,o,s,c,v,g){var S=2;if(c=n,typeof n=="function")lc(n)&&(S=1);else if(typeof n=="string")S=5;else e:switch(n){case U:return Di(s.children,v,g,o);case _:S=8,v|=8;break;case re:return n=Qr(12,s,o,v|2),n.elementType=re,n.lanes=g,n;case Y:return n=Qr(13,s,o,v),n.elementType=Y,n.lanes=g,n;case be:return n=Qr(19,s,o,v),n.elementType=be,n.lanes=g,n;case le:return Nl(s,v,g,o);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case te:S=10;break e;case oe:S=9;break e;case de:S=11;break e;case xe:S=14;break e;case he:S=16,c=null;break e}throw Error(t(130,n==null?n:typeof n,""))}return o=Qr(S,s,o,v),o.elementType=n,o.type=c,o.lanes=g,o}function Di(n,o,s,c){return n=Qr(7,n,c,o),n.lanes=s,n}function Nl(n,o,s,c){return n=Qr(22,n,c,o),n.elementType=le,n.lanes=s,n.stateNode={isHidden:!1},n}function sc(n,o,s){return n=Qr(6,n,null,o),n.lanes=s,n}function uc(n,o,s){return o=Qr(4,n.children!==null?n.children:[],n.key,o),o.lanes=s,o.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},o}function qg(n,o,s,c,v){this.tag=o,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ms(0),this.expirationTimes=Ms(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ms(0),this.identifierPrefix=c,this.onRecoverableError=v,this.mutableSourceEagerHydrationData=null}function cc(n,o,s,c,v,g,S,O,N){return n=new qg(n,o,s,O,N),o===1?(o=1,g===!0&&(o|=8)):o=0,g=Qr(3,null,null,o),n.current=g,g.stateNode=n,g.memoizedState={element:c,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},ku(g),n}function Kg(n,o,s){var c=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}return r(),gc.exports=rm(),gc.exports}var t0;function im(){if(t0)return Ll;t0=1;var r=nm();return Ll.createRoot=r.createRoot,Ll.hydrateRoot=r.hydrateRoot,Ll}var om=im();/*! ***************************************************************************** +`+g.stack}return{value:n,source:o,stack:v,digest:null}}function Bu(n,o,s){return{value:n,source:null,stack:s??null,digest:o??null}}function Uu(n,o){try{console.error(o.value)}catch(s){setTimeout(function(){throw s})}}var Cg=typeof WeakMap=="function"?WeakMap:Map;function rh(n,o,s){s=An(-1,s),s.tag=3,s.payload={element:null};var c=o.value;return s.callback=function(){Pl||(Pl=!0,ec=c),Uu(n,o)},s}function nh(n,o,s){s=An(-1,s),s.tag=3;var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var v=o.value;s.payload=function(){return c(v)},s.callback=function(){Uu(n,o)}}var g=n.stateNode;return g!==null&&typeof g.componentDidCatch=="function"&&(s.callback=function(){Uu(n,o),typeof c!="function"&&(ti===null?ti=new Set([this]):ti.add(this));var S=o.stack;this.componentDidCatch(o.value,{componentStack:S!==null?S:""})}),s}function ih(n,o,s){var c=n.pingCache;if(c===null){c=n.pingCache=new Cg;var v=new Set;c.set(o,v)}else v=c.get(o),v===void 0&&(v=new Set,c.set(o,v));v.has(s)||(v.add(s),n=Bg.bind(null,n,o,s),o.then(n,n))}function oh(n){do{var o;if((o=n.tag===13)&&(o=n.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return n;n=n.return}while(n!==null);return null}function ah(n,o,s,c,v){return(n.mode&1)===0?(n===o?n.flags|=65536:(n.flags|=128,s.flags|=131072,s.flags&=-52805,s.tag===1&&(s.alternate===null?s.tag=17:(o=An(-1,1),o.tag=2,$n(s,o,1))),s.lanes|=1),n):(n.flags|=65536,n.lanes=v,n)}var Fg=H.ReactCurrentOwner,Or=!1;function kr(n,o,s,c){o.child=n===null?Pd(o,null,s,c):_i(o,n.child,s,c)}function lh(n,o,s,c,v){s=s.render;var g=o.ref;return eo(o,v),c=Du(n,o,s,c,g,v),s=Ou(),n!==null&&!Or?(o.updateQueue=n.updateQueue,o.flags&=-2053,n.lanes&=~v,Nn(n,o,v)):(Bt&&s&&hu(o),o.flags|=1,kr(n,o,c,v),o.child)}function sh(n,o,s,c,v){if(n===null){var g=s.type;return typeof g=="function"&&!lc(g)&&g.defaultProps===void 0&&s.compare===null&&s.defaultProps===void 0?(o.tag=15,o.type=g,uh(n,o,g,c,v)):(n=Al(s.type,null,c,o,o.mode,v),n.ref=o.ref,n.return=o,o.child=n)}if(g=n.child,(n.lanes&v)===0){var S=g.memoizedProps;if(s=s.compare,s=s!==null?s:Io,s(S,c)&&n.ref===o.ref)return Nn(n,o,v)}return o.flags|=1,n=oi(g,c),n.ref=o.ref,n.return=o,o.child=n}function uh(n,o,s,c,v){if(n!==null){var g=n.memoizedProps;if(Io(g,c)&&n.ref===o.ref)if(Or=!1,o.pendingProps=c=g,(n.lanes&v)!==0)(n.flags&131072)!==0&&(Or=!0);else return o.lanes=n.lanes,Nn(n,o,v)}return Lu(n,o,s,c,v)}function ch(n,o,s){var c=o.pendingProps,v=c.children,g=n!==null?n.memoizedState:null;if(c.mode==="hidden")if((o.mode&1)===0)o.memoizedState={baseLanes:0,cachePool:null,transitions:null},zt(io,Vr),Vr|=s;else{if((s&1073741824)===0)return n=g!==null?g.baseLanes|s:s,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:n,cachePool:null,transitions:null},o.updateQueue=null,zt(io,Vr),Vr|=n,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=g!==null?g.baseLanes:s,zt(io,Vr),Vr|=c}else g!==null?(c=g.baseLanes|s,o.memoizedState=null):c=s,zt(io,Vr),Vr|=c;return kr(n,o,v,s),o.child}function fh(n,o){var s=o.ref;(n===null&&s!==null||n!==null&&n.ref!==s)&&(o.flags|=512,o.flags|=2097152)}function Lu(n,o,s,c,v){var g=Dr(s)?wi:mr.current;return g=Zi(o,g),eo(o,v),s=Du(n,o,s,c,g,v),c=Ou(),n!==null&&!Or?(o.updateQueue=n.updateQueue,o.flags&=-2053,n.lanes&=~v,Nn(n,o,v)):(Bt&&c&&hu(o),o.flags|=1,kr(n,o,s,v),o.child)}function dh(n,o,s,c,v){if(Dr(s)){var g=!0;nl(o)}else g=!1;if(eo(o,v),o.stateNode===null)Sl(n,o),eh(o,s,c),Iu(o,s,c,v),c=!0;else if(n===null){var S=o.stateNode,O=o.memoizedProps;S.props=O;var z=S.context,Q=s.contextType;typeof Q=="object"&&Q!==null?Q=Zr(Q):(Q=Dr(s)?wi:mr.current,Q=Zi(o,Q));var ce=s.getDerivedStateFromProps,ve=typeof ce=="function"||typeof S.getSnapshotBeforeUpdate=="function";ve||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(O!==c||z!==Q)&&th(o,S,c,Q),_n=!1;var se=o.memoizedState;S.state=se,dl(o,c,S,v),z=o.memoizedState,O!==c||se!==z||Rr.current||_n?(typeof ce=="function"&&(Mu(o,s,ce,c),z=o.memoizedState),(O=_n||$d(o,s,O,c,se,z,Q))?(ve||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount()),typeof S.componentDidMount=="function"&&(o.flags|=4194308)):(typeof S.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=c,o.memoizedState=z),S.props=c,S.state=z,S.context=Q,c=O):(typeof S.componentDidMount=="function"&&(o.flags|=4194308),c=!1)}else{S=o.stateNode,Td(n,o),O=o.memoizedProps,Q=o.type===o.elementType?O:fn(o.type,O),S.props=Q,ve=o.pendingProps,se=S.context,z=s.contextType,typeof z=="object"&&z!==null?z=Zr(z):(z=Dr(s)?wi:mr.current,z=Zi(o,z));var Oe=s.getDerivedStateFromProps;(ce=typeof Oe=="function"||typeof S.getSnapshotBeforeUpdate=="function")||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(O!==ve||se!==z)&&th(o,S,c,z),_n=!1,se=o.memoizedState,S.state=se,dl(o,c,S,v);var Be=o.memoizedState;O!==ve||se!==Be||Rr.current||_n?(typeof Oe=="function"&&(Mu(o,s,Oe,c),Be=o.memoizedState),(Q=_n||$d(o,s,Q,c,se,Be,z)||!1)?(ce||typeof S.UNSAFE_componentWillUpdate!="function"&&typeof S.componentWillUpdate!="function"||(typeof S.componentWillUpdate=="function"&&S.componentWillUpdate(c,Be,z),typeof S.UNSAFE_componentWillUpdate=="function"&&S.UNSAFE_componentWillUpdate(c,Be,z)),typeof S.componentDidUpdate=="function"&&(o.flags|=4),typeof S.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof S.componentDidUpdate!="function"||O===n.memoizedProps&&se===n.memoizedState||(o.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||O===n.memoizedProps&&se===n.memoizedState||(o.flags|=1024),o.memoizedProps=c,o.memoizedState=Be),S.props=c,S.state=Be,S.context=z,c=Q):(typeof S.componentDidUpdate!="function"||O===n.memoizedProps&&se===n.memoizedState||(o.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||O===n.memoizedProps&&se===n.memoizedState||(o.flags|=1024),c=!1)}return Vu(n,o,s,c,g,v)}function Vu(n,o,s,c,v,g){fh(n,o);var S=(o.flags&128)!==0;if(!c&&!S)return v&&md(o,s,!1),Nn(n,o,g);c=o.stateNode,Fg.current=o;var O=S&&typeof s.getDerivedStateFromError!="function"?null:c.render();return o.flags|=1,n!==null&&S?(o.child=_i(o,n.child,null,g),o.child=_i(o,null,O,g)):kr(n,o,O,g),o.memoizedState=c.state,v&&md(o,s,!0),o.child}function hh(n){var o=n.stateNode;o.pendingContext?pd(n,o.pendingContext,o.pendingContext!==o.context):o.context&&pd(n,o.context,!1),Cu(n,o.containerInfo)}function vh(n,o,s,c,v){return Ji(),mu(v),o.flags|=256,kr(n,o,s,c),o.child}var Wu={dehydrated:null,treeContext:null,retryLane:0};function qu(n){return{baseLanes:n,cachePool:null,transitions:null}}function ph(n,o,s){var c=o.pendingProps,v=Lt.current,g=!1,S=(o.flags&128)!==0,O;if((O=S)||(O=n!==null&&n.memoizedState===null?!1:(v&2)!==0),O?(g=!0,o.flags&=-129):(n===null||n.memoizedState!==null)&&(v|=1),zt(Lt,v&1),n===null)return gu(o),n=o.memoizedState,n!==null&&(n=n.dehydrated,n!==null)?((o.mode&1)===0?o.lanes=1:n.data==="$!"?o.lanes=8:o.lanes=1073741824,null):(S=c.children,n=c.fallback,g?(c=o.mode,g=o.child,S={mode:"hidden",children:S},(c&1)===0&&g!==null?(g.childLanes=0,g.pendingProps=S):g=Nl(S,c,0,null),n=Di(n,c,s,null),g.return=o,n.return=o,g.sibling=n,o.child=g,o.child.memoizedState=qu(s),o.memoizedState=Wu,n):Ku(o,S));if(v=n.memoizedState,v!==null&&(O=v.dehydrated,O!==null))return Pg(n,o,S,c,O,v,s);if(g){g=c.fallback,S=o.mode,v=n.child,O=v.sibling;var z={mode:"hidden",children:c.children};return(S&1)===0&&o.child!==v?(c=o.child,c.childLanes=0,c.pendingProps=z,o.deletions=null):(c=oi(v,z),c.subtreeFlags=v.subtreeFlags&14680064),O!==null?g=oi(O,g):(g=Di(g,S,s,null),g.flags|=2),g.return=o,c.return=o,c.sibling=g,o.child=c,c=g,g=o.child,S=n.child.memoizedState,S=S===null?qu(s):{baseLanes:S.baseLanes|s,cachePool:null,transitions:S.transitions},g.memoizedState=S,g.childLanes=n.childLanes&~s,o.memoizedState=Wu,c}return g=n.child,n=g.sibling,c=oi(g,{mode:"visible",children:c.children}),(o.mode&1)===0&&(c.lanes=s),c.return=o,c.sibling=null,n!==null&&(s=o.deletions,s===null?(o.deletions=[n],o.flags|=16):s.push(n)),o.child=c,o.memoizedState=null,c}function Ku(n,o){return o=Nl({mode:"visible",children:o},n.mode,0,null),o.return=n,n.child=o}function wl(n,o,s,c){return c!==null&&mu(c),_i(o,n.child,null,s),n=Ku(o,o.pendingProps.children),n.flags|=2,o.memoizedState=null,n}function Pg(n,o,s,c,v,g,S){if(s)return o.flags&256?(o.flags&=-257,c=Bu(Error(t(422))),wl(n,o,S,c)):o.memoizedState!==null?(o.child=n.child,o.flags|=128,null):(g=c.fallback,v=o.mode,c=Nl({mode:"visible",children:c.children},v,0,null),g=Di(g,v,S,null),g.flags|=2,c.return=o,g.return=o,c.sibling=g,o.child=c,(o.mode&1)!==0&&_i(o,n.child,null,S),o.child.memoizedState=qu(S),o.memoizedState=Wu,g);if((o.mode&1)===0)return wl(n,o,S,null);if(v.data==="$!"){if(c=v.nextSibling&&v.nextSibling.dataset,c)var O=c.dgst;return c=O,g=Error(t(419)),c=Bu(g,c,void 0),wl(n,o,S,c)}if(O=(S&n.childLanes)!==0,Or||O){if(c=ur,c!==null){switch(S&-S){case 4:v=2;break;case 16:v=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:v=32;break;case 536870912:v=268435456;break;default:v=0}v=(v&(c.suspendedLanes|S))!==0?0:v,v!==0&&v!==g.retryLane&&(g.retryLane=v,On(n,v),vn(c,n,v,-1))}return ac(),c=Bu(Error(t(421))),wl(n,o,S,c)}return v.data==="$?"?(o.flags|=128,o.child=n.child,o=Ug.bind(null,n),v._reactRetry=o,null):(n=g.treeContext,Lr=Zn(v.nextSibling),Ur=o,Bt=!0,cn=null,n!==null&&(Gr[Xr++]=Rn,Gr[Xr++]=Dn,Gr[Xr++]=Si,Rn=n.id,Dn=n.overflow,Si=o),o=Ku(o,c.children),o.flags|=4096,o)}function gh(n,o,s){n.lanes|=o;var c=n.alternate;c!==null&&(c.lanes|=o),Su(n.return,o,s)}function Hu(n,o,s,c,v){var g=n.memoizedState;g===null?n.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:c,tail:s,tailMode:v}:(g.isBackwards=o,g.rendering=null,g.renderingStartTime=0,g.last=c,g.tail=s,g.tailMode=v)}function mh(n,o,s){var c=o.pendingProps,v=c.revealOrder,g=c.tail;if(kr(n,o,c.children,s),c=Lt.current,(c&2)!==0)c=c&1|2,o.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=o.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&gh(n,s,o);else if(n.tag===19)gh(n,s,o);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===o)break e;for(;n.sibling===null;){if(n.return===null||n.return===o)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}c&=1}if(zt(Lt,c),(o.mode&1)===0)o.memoizedState=null;else switch(v){case"forwards":for(s=o.child,v=null;s!==null;)n=s.alternate,n!==null&&hl(n)===null&&(v=s),s=s.sibling;s=v,s===null?(v=o.child,o.child=null):(v=s.sibling,s.sibling=null),Hu(o,!1,v,s,g);break;case"backwards":for(s=null,v=o.child,o.child=null;v!==null;){if(n=v.alternate,n!==null&&hl(n)===null){o.child=v;break}n=v.sibling,v.sibling=s,s=v,v=n}Hu(o,!0,s,null,g);break;case"together":Hu(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function Sl(n,o){(o.mode&1)===0&&n!==null&&(n.alternate=null,o.alternate=null,o.flags|=2)}function Nn(n,o,s){if(n!==null&&(o.dependencies=n.dependencies),Pi|=o.lanes,(s&o.childLanes)===0)return null;if(n!==null&&o.child!==n.child)throw Error(t(153));if(o.child!==null){for(n=o.child,s=oi(n,n.pendingProps),o.child=s,s.return=o;n.sibling!==null;)n=n.sibling,s=s.sibling=oi(n,n.pendingProps),s.return=o;s.sibling=null}return o.child}function Eg(n,o,s){switch(o.tag){case 3:hh(o),Ji();break;case 5:Od(o);break;case 1:Dr(o.type)&&nl(o);break;case 4:Cu(o,o.stateNode.containerInfo);break;case 10:var c=o.type._context,v=o.memoizedProps.value;zt(ul,c._currentValue),c._currentValue=v;break;case 13:if(c=o.memoizedState,c!==null)return c.dehydrated!==null?(zt(Lt,Lt.current&1),o.flags|=128,null):(s&o.child.childLanes)!==0?ph(n,o,s):(zt(Lt,Lt.current&1),n=Nn(n,o,s),n!==null?n.sibling:null);zt(Lt,Lt.current&1);break;case 19:if(c=(s&o.childLanes)!==0,(n.flags&128)!==0){if(c)return mh(n,o,s);o.flags|=128}if(v=o.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),zt(Lt,Lt.current),c)break;return null;case 22:case 23:return o.lanes=0,ch(n,o,s)}return Nn(n,o,s)}var yh,Gu,xh,wh;yh=function(n,o){for(var s=o.child;s!==null;){if(s.tag===5||s.tag===6)n.appendChild(s.stateNode);else if(s.tag!==4&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return;s=s.return}s.sibling.return=s.return,s=s.sibling}},Gu=function(){},xh=function(n,o,s,c){var v=n.memoizedProps;if(v!==c){n=o.stateNode,Ci(Sn.current);var g=null;switch(s){case"input":v=We(n,v),c=We(n,c),g=[];break;case"select":v=we({},v,{value:void 0}),c=we({},c,{value:void 0}),g=[];break;case"textarea":v=Ct(n,v),c=Ct(n,c),g=[];break;default:typeof v.onClick!="function"&&typeof c.onClick=="function"&&(n.onclick=el)}$(s,c);var S;s=null;for(Q in v)if(!c.hasOwnProperty(Q)&&v.hasOwnProperty(Q)&&v[Q]!=null)if(Q==="style"){var O=v[Q];for(S in O)O.hasOwnProperty(S)&&(s||(s={}),s[S]="")}else Q!=="dangerouslySetInnerHTML"&&Q!=="children"&&Q!=="suppressContentEditableWarning"&&Q!=="suppressHydrationWarning"&&Q!=="autoFocus"&&(a.hasOwnProperty(Q)?g||(g=[]):(g=g||[]).push(Q,null));for(Q in c){var z=c[Q];if(O=v!=null?v[Q]:void 0,c.hasOwnProperty(Q)&&z!==O&&(z!=null||O!=null))if(Q==="style")if(O){for(S in O)!O.hasOwnProperty(S)||z&&z.hasOwnProperty(S)||(s||(s={}),s[S]="");for(S in z)z.hasOwnProperty(S)&&O[S]!==z[S]&&(s||(s={}),s[S]=z[S])}else s||(g||(g=[]),g.push(Q,s)),s=z;else Q==="dangerouslySetInnerHTML"?(z=z?z.__html:void 0,O=O?O.__html:void 0,z!=null&&O!==z&&(g=g||[]).push(Q,z)):Q==="children"?typeof z!="string"&&typeof z!="number"||(g=g||[]).push(Q,""+z):Q!=="suppressContentEditableWarning"&&Q!=="suppressHydrationWarning"&&(a.hasOwnProperty(Q)?(z!=null&&Q==="onScroll"&&jt("scroll",n),g||O===z||(g=[])):(g=g||[]).push(Q,z))}s&&(g=g||[]).push("style",s);var Q=g;(o.updateQueue=Q)&&(o.flags|=4)}},wh=function(n,o,s,c){s!==c&&(o.flags|=4)};function _o(n,o){if(!Bt)switch(n.tailMode){case"hidden":o=n.tail;for(var s=null;o!==null;)o.alternate!==null&&(s=o),o=o.sibling;s===null?n.tail=null:s.sibling=null;break;case"collapsed":s=n.tail;for(var c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?o||n.tail===null?n.tail=null:n.tail.sibling=null:c.sibling=null}}function xr(n){var o=n.alternate!==null&&n.alternate.child===n.child,s=0,c=0;if(o)for(var v=n.child;v!==null;)s|=v.lanes|v.childLanes,c|=v.subtreeFlags&14680064,c|=v.flags&14680064,v.return=n,v=v.sibling;else for(v=n.child;v!==null;)s|=v.lanes|v.childLanes,c|=v.subtreeFlags,c|=v.flags,v.return=n,v=v.sibling;return n.subtreeFlags|=c,n.childLanes=s,o}function Tg(n,o,s){var c=o.pendingProps;switch(vu(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xr(o),null;case 1:return Dr(o.type)&&rl(),xr(o),null;case 3:return c=o.stateNode,to(),Mt(Rr),Mt(mr),Eu(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(n===null||n.child===null)&&(ll(o)?o.flags|=4:n===null||n.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,cn!==null&&(nc(cn),cn=null))),Gu(n,o),xr(o),null;case 5:Fu(o);var v=Ci(Xo.current);if(s=o.type,n!==null&&o.stateNode!=null)xh(n,o,s,c,v),n.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!c){if(o.stateNode===null)throw Error(t(166));return xr(o),null}if(n=Ci(Sn.current),ll(o)){c=o.stateNode,s=o.type;var g=o.memoizedProps;switch(c[wn]=o,c[Wo]=g,n=(o.mode&1)!==0,s){case"dialog":jt("cancel",c),jt("close",c);break;case"iframe":case"object":case"embed":jt("load",c);break;case"video":case"audio":for(v=0;v<\/script>",n=n.removeChild(n.firstChild)):typeof c.is=="string"?n=S.createElement(s,{is:c.is}):(n=S.createElement(s),s==="select"&&(S=n,c.multiple?S.multiple=!0:c.size&&(S.size=c.size))):n=S.createElementNS(n,s),n[wn]=o,n[Wo]=c,yh(n,o,!1,!1),o.stateNode=n;e:{switch(S=b(s,c),s){case"dialog":jt("cancel",n),jt("close",n),v=c;break;case"iframe":case"object":case"embed":jt("load",n),v=c;break;case"video":case"audio":for(v=0;voo&&(o.flags|=128,c=!0,_o(g,!1),o.lanes=4194304)}else{if(!c)if(n=hl(S),n!==null){if(o.flags|=128,c=!0,s=n.updateQueue,s!==null&&(o.updateQueue=s,o.flags|=4),_o(g,!0),g.tail===null&&g.tailMode==="hidden"&&!S.alternate&&!Bt)return xr(o),null}else 2*Zt()-g.renderingStartTime>oo&&s!==1073741824&&(o.flags|=128,c=!0,_o(g,!1),o.lanes=4194304);g.isBackwards?(S.sibling=o.child,o.child=S):(s=g.last,s!==null?s.sibling=S:o.child=S,g.last=S)}return g.tail!==null?(o=g.tail,g.rendering=o,g.tail=o.sibling,g.renderingStartTime=Zt(),o.sibling=null,s=Lt.current,zt(Lt,c?s&1|2:s&1),o):(xr(o),null);case 22:case 23:return oc(),c=o.memoizedState!==null,n!==null&&n.memoizedState!==null!==c&&(o.flags|=8192),c&&(o.mode&1)!==0?(Vr&1073741824)!==0&&(xr(o),o.subtreeFlags&6&&(o.flags|=8192)):xr(o),null;case 24:return null;case 25:return null}throw Error(t(156,o.tag))}function Rg(n,o){switch(vu(o),o.tag){case 1:return Dr(o.type)&&rl(),n=o.flags,n&65536?(o.flags=n&-65537|128,o):null;case 3:return to(),Mt(Rr),Mt(mr),Eu(),n=o.flags,(n&65536)!==0&&(n&128)===0?(o.flags=n&-65537|128,o):null;case 5:return Fu(o),null;case 13:if(Mt(Lt),n=o.memoizedState,n!==null&&n.dehydrated!==null){if(o.alternate===null)throw Error(t(340));Ji()}return n=o.flags,n&65536?(o.flags=n&-65537|128,o):null;case 19:return Mt(Lt),null;case 4:return to(),null;case 10:return wu(o.type._context),null;case 22:case 23:return oc(),null;case 24:return null;default:return null}}var bl=!1,wr=!1,Dg=typeof WeakSet=="function"?WeakSet:Set,Me=null;function no(n,o){var s=n.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(c){Ht(n,o,c)}else s.current=null}function Xu(n,o,s){try{s()}catch(c){Ht(n,o,c)}}var Sh=!1;function Og(n,o){if(ou=Wa,n=$f(),Js(n)){if("selectionStart"in n)var s={start:n.selectionStart,end:n.selectionEnd};else e:{s=(s=n.ownerDocument)&&s.defaultView||window;var c=s.getSelection&&s.getSelection();if(c&&c.rangeCount!==0){s=c.anchorNode;var v=c.anchorOffset,g=c.focusNode;c=c.focusOffset;try{s.nodeType,g.nodeType}catch{s=null;break e}var S=0,O=-1,z=-1,Q=0,ce=0,ve=n,se=null;t:for(;;){for(var Oe;ve!==s||v!==0&&ve.nodeType!==3||(O=S+v),ve!==g||c!==0&&ve.nodeType!==3||(z=S+c),ve.nodeType===3&&(S+=ve.nodeValue.length),(Oe=ve.firstChild)!==null;)se=ve,ve=Oe;for(;;){if(ve===n)break t;if(se===s&&++Q===v&&(O=S),se===g&&++ce===c&&(z=S),(Oe=ve.nextSibling)!==null)break;ve=se,se=ve.parentNode}ve=Oe}s=O===-1||z===-1?null:{start:O,end:z}}else s=null}s=s||{start:0,end:0}}else s=null;for(au={focusedElem:n,selectionRange:s},Wa=!1,Me=o;Me!==null;)if(o=Me,n=o.child,(o.subtreeFlags&1028)!==0&&n!==null)n.return=o,Me=n;else for(;Me!==null;){o=Me;try{var Be=o.alternate;if((o.flags&1024)!==0)switch(o.tag){case 0:case 11:case 15:break;case 1:if(Be!==null){var Ue=Be.memoizedProps,Yt=Be.memoizedState,K=o.stateNode,M=K.getSnapshotBeforeUpdate(o.elementType===o.type?Ue:fn(o.type,Ue),Yt);K.__reactInternalSnapshotBeforeUpdate=M}break;case 3:var Z=o.stateNode.containerInfo;Z.nodeType===1?Z.textContent="":Z.nodeType===9&&Z.documentElement&&Z.removeChild(Z.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(t(163))}}catch(Se){Ht(o,o.return,Se)}if(n=o.sibling,n!==null){n.return=o.return,Me=n;break}Me=o.return}return Be=Sh,Sh=!1,Be}function $o(n,o,s){var c=o.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var v=c=c.next;do{if((v.tag&n)===n){var g=v.destroy;v.destroy=void 0,g!==void 0&&Xu(o,s,g)}v=v.next}while(v!==c)}}function kl(n,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var s=o=o.next;do{if((s.tag&n)===n){var c=s.create;s.destroy=c()}s=s.next}while(s!==o)}}function Zu(n){var o=n.ref;if(o!==null){var s=n.stateNode;switch(n.tag){case 5:n=s;break;default:n=s}typeof o=="function"?o(n):o.current=n}}function bh(n){var o=n.alternate;o!==null&&(n.alternate=null,bh(o)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(o=n.stateNode,o!==null&&(delete o[wn],delete o[Wo],delete o[cu],delete o[hg],delete o[vg])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function kh(n){return n.tag===5||n.tag===3||n.tag===4}function Ch(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||kh(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Yu(n,o,s){var c=n.tag;if(c===5||c===6)n=n.stateNode,o?s.nodeType===8?s.parentNode.insertBefore(n,o):s.insertBefore(n,o):(s.nodeType===8?(o=s.parentNode,o.insertBefore(n,s)):(o=s,o.appendChild(n)),s=s._reactRootContainer,s!=null||o.onclick!==null||(o.onclick=el));else if(c!==4&&(n=n.child,n!==null))for(Yu(n,o,s),n=n.sibling;n!==null;)Yu(n,o,s),n=n.sibling}function Qu(n,o,s){var c=n.tag;if(c===5||c===6)n=n.stateNode,o?s.insertBefore(n,o):s.appendChild(n);else if(c!==4&&(n=n.child,n!==null))for(Qu(n,o,s),n=n.sibling;n!==null;)Qu(n,o,s),n=n.sibling}var hr=null,dn=!1;function ei(n,o,s){for(s=s.child;s!==null;)Fh(n,o,s),s=s.sibling}function Fh(n,o,s){if(xn&&typeof xn.onCommitFiberUnmount=="function")try{xn.onCommitFiberUnmount(Ma,s)}catch{}switch(s.tag){case 5:wr||no(s,o);case 6:var c=hr,v=dn;hr=null,ei(n,o,s),hr=c,dn=v,hr!==null&&(dn?(n=hr,s=s.stateNode,n.nodeType===8?n.parentNode.removeChild(s):n.removeChild(s)):hr.removeChild(s.stateNode));break;case 18:hr!==null&&(dn?(n=hr,s=s.stateNode,n.nodeType===8?uu(n.parentNode,s):n.nodeType===1&&uu(n,s),Oo(n)):uu(hr,s.stateNode));break;case 4:c=hr,v=dn,hr=s.stateNode.containerInfo,dn=!0,ei(n,o,s),hr=c,dn=v;break;case 0:case 11:case 14:case 15:if(!wr&&(c=s.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){v=c=c.next;do{var g=v,S=g.destroy;g=g.tag,S!==void 0&&((g&2)!==0||(g&4)!==0)&&Xu(s,o,S),v=v.next}while(v!==c)}ei(n,o,s);break;case 1:if(!wr&&(no(s,o),c=s.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=s.memoizedProps,c.state=s.memoizedState,c.componentWillUnmount()}catch(O){Ht(s,o,O)}ei(n,o,s);break;case 21:ei(n,o,s);break;case 22:s.mode&1?(wr=(c=wr)||s.memoizedState!==null,ei(n,o,s),wr=c):ei(n,o,s);break;default:ei(n,o,s)}}function Ph(n){var o=n.updateQueue;if(o!==null){n.updateQueue=null;var s=n.stateNode;s===null&&(s=n.stateNode=new Dg),o.forEach(function(c){var v=Lg.bind(null,n,c);s.has(c)||(s.add(c),c.then(v,v))})}}function hn(n,o){var s=o.deletions;if(s!==null)for(var c=0;cv&&(v=S),c&=~g}if(c=v,c=Zt()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*Ng(c/1960))-c,10n?16:n,ri===null)var c=!1;else{if(n=ri,ri=null,Tl=0,(bt&6)!==0)throw Error(t(331));var v=bt;for(bt|=4,Me=n.current;Me!==null;){var g=Me,S=g.child;if((Me.flags&16)!==0){var O=g.deletions;if(O!==null){for(var z=0;zZt()-$u?Ti(n,0):_u|=s),Nr(n,o)}function Uh(n,o){o===0&&((n.mode&1)===0?o=1:(o=Ba,Ba<<=1,(Ba&130023424)===0&&(Ba=4194304)));var s=Cr();n=On(n,o),n!==null&&(Po(n,o,s),Nr(n,s))}function Ug(n){var o=n.memoizedState,s=0;o!==null&&(s=o.retryLane),Uh(n,s)}function Lg(n,o){var s=0;switch(n.tag){case 13:var c=n.stateNode,v=n.memoizedState;v!==null&&(s=v.retryLane);break;case 19:c=n.stateNode;break;default:throw Error(t(314))}c!==null&&c.delete(o),Uh(n,s)}var Lh;Lh=function(n,o,s){if(n!==null)if(n.memoizedProps!==o.pendingProps||Rr.current)Or=!0;else{if((n.lanes&s)===0&&(o.flags&128)===0)return Or=!1,Eg(n,o,s);Or=(n.flags&131072)!==0}else Or=!1,Bt&&(o.flags&1048576)!==0&&xd(o,al,o.index);switch(o.lanes=0,o.tag){case 2:var c=o.type;Sl(n,o),n=o.pendingProps;var v=Zi(o,mr.current);eo(o,s),v=Du(null,o,c,n,v,s);var g=Ou();return o.flags|=1,typeof v=="object"&&v!==null&&typeof v.render=="function"&&v.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,Dr(c)?(g=!0,nl(o)):g=!1,o.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,ku(o),v.updater=xl,o.stateNode=v,v._reactInternals=o,Iu(o,c,n,s),o=Vu(null,o,c,!0,g,s)):(o.tag=0,Bt&&g&&hu(o),kr(null,o,v,s),o=o.child),o;case 16:c=o.elementType;e:{switch(Sl(n,o),n=o.pendingProps,v=c._init,c=v(c._payload),o.type=c,v=o.tag=Wg(c),n=fn(c,n),v){case 0:o=Lu(null,o,c,n,s);break e;case 1:o=dh(null,o,c,n,s);break e;case 11:o=lh(null,o,c,n,s);break e;case 14:o=sh(null,o,c,fn(c.type,n),s);break e}throw Error(t(306,c,""))}return o;case 0:return c=o.type,v=o.pendingProps,v=o.elementType===c?v:fn(c,v),Lu(n,o,c,v,s);case 1:return c=o.type,v=o.pendingProps,v=o.elementType===c?v:fn(c,v),dh(n,o,c,v,s);case 3:e:{if(hh(o),n===null)throw Error(t(387));c=o.pendingProps,g=o.memoizedState,v=g.element,Td(n,o),dl(o,c,null,s);var S=o.memoizedState;if(c=S.element,g.isDehydrated)if(g={element:c,isDehydrated:!1,cache:S.cache,pendingSuspenseBoundaries:S.pendingSuspenseBoundaries,transitions:S.transitions},o.updateQueue.baseState=g,o.memoizedState=g,o.flags&256){v=ro(Error(t(423)),o),o=vh(n,o,c,s,v);break e}else if(c!==v){v=ro(Error(t(424)),o),o=vh(n,o,c,s,v);break e}else for(Lr=Zn(o.stateNode.containerInfo.firstChild),Ur=o,Bt=!0,cn=null,s=Pd(o,null,c,s),o.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(Ji(),c===v){o=Nn(n,o,s);break e}kr(n,o,c,s)}o=o.child}return o;case 5:return Od(o),n===null&&gu(o),c=o.type,v=o.pendingProps,g=n!==null?n.memoizedProps:null,S=v.children,lu(c,v)?S=null:g!==null&&lu(c,g)&&(o.flags|=32),fh(n,o),kr(n,o,S,s),o.child;case 6:return n===null&&gu(o),null;case 13:return ph(n,o,s);case 4:return Cu(o,o.stateNode.containerInfo),c=o.pendingProps,n===null?o.child=_i(o,null,c,s):kr(n,o,c,s),o.child;case 11:return c=o.type,v=o.pendingProps,v=o.elementType===c?v:fn(c,v),lh(n,o,c,v,s);case 7:return kr(n,o,o.pendingProps,s),o.child;case 8:return kr(n,o,o.pendingProps.children,s),o.child;case 12:return kr(n,o,o.pendingProps.children,s),o.child;case 10:e:{if(c=o.type._context,v=o.pendingProps,g=o.memoizedProps,S=v.value,zt(ul,c._currentValue),c._currentValue=S,g!==null)if(un(g.value,S)){if(g.children===v.children&&!Rr.current){o=Nn(n,o,s);break e}}else for(g=o.child,g!==null&&(g.return=o);g!==null;){var O=g.dependencies;if(O!==null){S=g.child;for(var z=O.firstContext;z!==null;){if(z.context===c){if(g.tag===1){z=An(-1,s&-s),z.tag=2;var Q=g.updateQueue;if(Q!==null){Q=Q.shared;var ce=Q.pending;ce===null?z.next=z:(z.next=ce.next,ce.next=z),Q.pending=z}}g.lanes|=s,z=g.alternate,z!==null&&(z.lanes|=s),Su(g.return,s,o),O.lanes|=s;break}z=z.next}}else if(g.tag===10)S=g.type===o.type?null:g.child;else if(g.tag===18){if(S=g.return,S===null)throw Error(t(341));S.lanes|=s,O=S.alternate,O!==null&&(O.lanes|=s),Su(S,s,o),S=g.sibling}else S=g.child;if(S!==null)S.return=g;else for(S=g;S!==null;){if(S===o){S=null;break}if(g=S.sibling,g!==null){g.return=S.return,S=g;break}S=S.return}g=S}kr(n,o,v.children,s),o=o.child}return o;case 9:return v=o.type,c=o.pendingProps.children,eo(o,s),v=Zr(v),c=c(v),o.flags|=1,kr(n,o,c,s),o.child;case 14:return c=o.type,v=fn(c,o.pendingProps),v=fn(c.type,v),sh(n,o,c,v,s);case 15:return uh(n,o,o.type,o.pendingProps,s);case 17:return c=o.type,v=o.pendingProps,v=o.elementType===c?v:fn(c,v),Sl(n,o),o.tag=1,Dr(c)?(n=!0,nl(o)):n=!1,eo(o,s),eh(o,c,v),Iu(o,c,v,s),Vu(null,o,c,!0,n,s);case 19:return mh(n,o,s);case 22:return ch(n,o,s)}throw Error(t(156,o.tag))};function Vh(n,o){return wf(n,o)}function Vg(n,o,s,c){this.tag=n,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Jr(n,o,s,c){return new Vg(n,o,s,c)}function lc(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Wg(n){if(typeof n=="function")return lc(n)?1:0;if(n!=null){if(n=n.$$typeof,n===de)return 11;if(n===xe)return 14}return 2}function oi(n,o){var s=n.alternate;return s===null?(s=Jr(n.tag,o,n.key,n.mode),s.elementType=n.elementType,s.type=n.type,s.stateNode=n.stateNode,s.alternate=n,n.alternate=s):(s.pendingProps=o,s.type=n.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=n.flags&14680064,s.childLanes=n.childLanes,s.lanes=n.lanes,s.child=n.child,s.memoizedProps=n.memoizedProps,s.memoizedState=n.memoizedState,s.updateQueue=n.updateQueue,o=n.dependencies,s.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},s.sibling=n.sibling,s.index=n.index,s.ref=n.ref,s}function Al(n,o,s,c,v,g){var S=2;if(c=n,typeof n=="function")lc(n)&&(S=1);else if(typeof n=="string")S=5;else e:switch(n){case B:return Di(s.children,v,g,o);case _:S=8,v|=8;break;case ee:return n=Jr(12,s,o,v|2),n.elementType=ee,n.lanes=g,n;case Y:return n=Jr(13,s,o,v),n.elementType=Y,n.lanes=g,n;case ke:return n=Jr(19,s,o,v),n.elementType=ke,n.lanes=g,n;case ae:return Nl(s,v,g,o);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case te:S=10;break e;case oe:S=9;break e;case de:S=11;break e;case xe:S=14;break e;case he:S=16,c=null;break e}throw Error(t(130,n==null?n:typeof n,""))}return o=Jr(S,s,o,v),o.elementType=n,o.type=c,o.lanes=g,o}function Di(n,o,s,c){return n=Jr(7,n,c,o),n.lanes=s,n}function Nl(n,o,s,c){return n=Jr(22,n,c,o),n.elementType=ae,n.lanes=s,n.stateNode={isHidden:!1},n}function sc(n,o,s){return n=Jr(6,n,null,o),n.lanes=s,n}function uc(n,o,s){return o=Jr(4,n.children!==null?n.children:[],n.key,o),o.lanes=s,o.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},o}function qg(n,o,s,c,v){this.tag=o,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ms(0),this.expirationTimes=Ms(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ms(0),this.identifierPrefix=c,this.onRecoverableError=v,this.mutableSourceEagerHydrationData=null}function cc(n,o,s,c,v,g,S,O,z){return n=new qg(n,o,s,O,z),o===1?(o=1,g===!0&&(o|=8)):o=0,g=Jr(3,null,null,o),n.current=g,g.stateNode=n,g.memoizedState={element:c,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},ku(g),n}function Kg(n,o,s){var c=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}return r(),gc.exports=rm(),gc.exports}var t0;function im(){if(t0)return Ll;t0=1;var r=nm();return Ll.createRoot=r.createRoot,Ll.hydrateRoot=r.hydrateRoot,Ll}var om=im();/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -50,21 +50,21 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var jc=function(r,e){return jc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var a in i)i.hasOwnProperty(a)&&(t[a]=i[a])},jc(r,e)};function ye(r,e){jc(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var nt=function(){return nt=Object.assign||function(e){for(var t,i=1,a=arguments.length;i0&&l[l.length-1])&&(h[0]===6||h[0]===2)){t=0;continue}if(h[0]===3&&(!l||h[1]>l[0]&&h[1]>2],e+=vo[(r[i]&3)<<4|r[i+1]>>4],e+=vo[(r[i+1]&15)<<2|r[i+2]>>6],e+=vo[r[i+2]&63];return t%3===2?e=e.substring(0,e.length-1)+"=":t%3===1&&(e=e.substring(0,e.length-2)+"=="),e},r0=function(r){var e=r.length*.75,t=r.length,i,a=0,l,u,f,d;r[r.length-1]==="="&&(e--,r[r.length-2]==="="&&e--);var h=new Uint8Array(e);for(i=0;i>4,h[a++]=(u&15)<<4|f>>2,h[a++]=(f&3)<<6|d&63;return h},sm=/^(data)?:?([\w\/\+]+)?;?(charset=[\w-]+|base64)?.*,/i,um=function(r){var e=r.trim(),t=e.substring(0,100),i=t.match(sm);if(!i)return r0(e);var a=i[0],l=e.substring(a.length);return r0(l)},tt=function(r){return r.charCodeAt(0)},cm=function(r){return r.codePointAt(0)},Ta=function(r,e){return mn(r.toString(16),e,"0").toUpperCase()},ms=function(r){return Ta(r,2)},Mn=function(r){return String.fromCharCode(r)},fm=function(r){return Mn(parseInt(r,16))},mn=function(r,e,t){for(var i="",a=0,l=e-r.length;a=55296&&t<=56319&&r.length>a&&(i=r.charCodeAt(a),i>=56320&&i<=57343&&(l=2)),[r.slice(e,e+l),l]},vm=function(r){for(var e=[],t=0,i=r.length;tt&&h(),u+=x,f+=w}}return h(),d},mm=/^D:(\d\d\d\d)(\d\d)?(\d\d)?(\d\d)?(\d\d)?(\d\d)?([+\-Z])?(\d\d)?'?(\d\d)?'?$/,nv=function(r){var e=r.match(mm);if(e){var t=e[1],i=e[2],a=i===void 0?"01":i,l=e[3],u=l===void 0?"01":l,f=e[4],d=f===void 0?"00":f,h=e[5],m=h===void 0?"00":h,y=e[6],x=y===void 0?"00":y,w=e[7],C=w===void 0?"Z":w,E=e[8],D=E===void 0?"00":E,R=e[9],L=R===void 0?"00":R,z=C==="Z"?"Z":""+C+D+":"+L,q=new Date(t+"-"+a+"-"+u+"T"+d+":"+m+":"+x+z);return q}},Zc=function(r,e){for(var t,i=0,a;i=0&&r<=65535},Tm=function(r){return r>=65536&&r<=1114111},ov=function(r){return Math.floor((r-65536)/1024)+55296},av=function(r){return(r-65536)%1024+56320},ci;(function(r){r.BigEndian="BigEndian",r.LittleEndian="LittleEndian"})(ci||(ci={}));var aa="�".codePointAt(0),lv=function(r,e){if(e===void 0&&(e=!0),r.length<=1)return String.fromCodePoint(aa);for(var t=e?Dm(r):ci.BigEndian,i=e?2:0,a=[];r.length-i>=2;){var l=i0(r[i++],r[i++],t);if(Rm(l))if(r.length-i<2)a.push(aa);else{var u=i0(r[i++],r[i++],t);n0(u)?a.push(l,u):a.push(aa)}else n0(l)?(i+=2,a.push(aa)):a.push(l)}return i=55296&&r<=56319},n0=function(r){return r>=56320&&r<=57343},i0=function(r,e,t){if(t===ci.LittleEndian)return e<<8|r;if(t===ci.BigEndian)return r<<8|e;throw new Error("Invalid byteOrder: "+t)},Dm=function(r){return sv(r)?ci.BigEndian:uv(r)?ci.LittleEndian:ci.BigEndian},sv=function(r){return r[0]===254&&r[1]===255},uv=function(r){return r[0]===255&&r[1]===254},cv=function(r){return sv(r)||uv(r)},Om=function(r){var e=String(r);if(Math.abs(r)<1){var t=parseInt(r.toString().split("e-")[1]);if(t){var i=r<0;i&&(r*=-1),r*=Math.pow(10,t-1),e="0."+new Array(t).join("0")+r.toString().substring(2),i&&(e="-"+e)}}else{var t=parseInt(r.toString().split("+")[1]);t>20&&(t-=20,r/=Math.pow(10,t),e=r.toString()+new Array(t+1).join("0"))}return e},$l=function(r){return Math.ceil(r.toString(2).length/8)},so=function(r){for(var e=new Uint8Array($l(r)),t=1;t<=e.length;t++)e[t-1]=r>>(e.length-t)*8;return e},Da=function(r){throw new Error(r)},xc={},o0;function gi(){return o0||(o0=1,(function(r){var e=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function t(l,u){return Object.prototype.hasOwnProperty.call(l,u)}r.assign=function(l){for(var u=Array.prototype.slice.call(arguments,1);u.length;){var f=u.shift();if(f){if(typeof f!="object")throw new TypeError(f+"must be non-object");for(var d in f)t(f,d)&&(l[d]=f[d])}}return l},r.shrinkBuf=function(l,u){return l.length===u?l:l.subarray?l.subarray(0,u):(l.length=u,l)};var i={arraySet:function(l,u,f,d,h){if(u.subarray&&l.subarray){l.set(u.subarray(f,f+d),h);return}for(var m=0;m=0;)F[ie]=0}var u=0,f=1,d=2,h=3,m=258,y=29,x=256,w=x+1+y,C=30,E=19,D=2*w+1,R=15,L=16,z=7,q=256,H=16,M=17,U=18,_=[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],re=[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],te=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],oe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],de=512,Y=new Array((w+2)*2);l(Y);var be=new Array(C*2);l(be);var xe=new Array(de);l(xe);var he=new Array(m-h+1);l(he);var le=new Array(y);l(le);var ae=new Array(C);l(ae);function ge(F,ie,pe,Ee,B){this.static_tree=F,this.extra_bits=ie,this.extra_base=pe,this.elems=Ee,this.max_length=B,this.has_stree=F&&F.length}var we,j,J;function Oe(F,ie){this.dyn_tree=F,this.max_code=0,this.stat_desc=ie}function Ae(F){return F<256?xe[F]:xe[256+(F>>>7)]}function We(F,ie){F.pending_buf[F.pending++]=ie&255,F.pending_buf[F.pending++]=ie>>>8&255}function De(F,ie,pe){F.bi_valid>L-pe?(F.bi_buf|=ie<>L-F.bi_valid,F.bi_valid+=pe-L):(F.bi_buf|=ie<>>=1,pe<<=1;while(--ie>0);return pe>>>1}function rt(F){F.bi_valid===16?(We(F,F.bi_buf),F.bi_buf=0,F.bi_valid=0):F.bi_valid>=8&&(F.pending_buf[F.pending++]=F.bi_buf&255,F.bi_buf>>=8,F.bi_valid-=8)}function ne(F,ie){var pe=ie.dyn_tree,Ee=ie.max_code,B=ie.stat_desc.static_tree,$=ie.stat_desc.has_stree,b=ie.stat_desc.extra_bits,ee=ie.stat_desc.extra_base,Ue=ie.stat_desc.max_length,p,V,G,k,A,Z,Le=0;for(k=0;k<=R;k++)F.bl_count[k]=0;for(pe[F.heap[F.heap_max]*2+1]=0,p=F.heap_max+1;pUe&&(k=Ue,Le++),pe[V*2+1]=k,!(V>Ee)&&(F.bl_count[k]++,A=0,V>=ee&&(A=b[V-ee]),Z=pe[V*2],F.opt_len+=Z*(k+A),$&&(F.static_len+=Z*(B[V*2+1]+A)));if(Le!==0){do{for(k=Ue-1;F.bl_count[k]===0;)k--;F.bl_count[k]--,F.bl_count[k+1]+=2,F.bl_count[Ue]--,Le-=2}while(Le>0);for(k=Ue;k!==0;k--)for(V=F.bl_count[k];V!==0;)G=F.heap[--p],!(G>Ee)&&(pe[G*2+1]!==k&&(F.opt_len+=(k-pe[G*2+1])*pe[G*2],pe[G*2+1]=k),V--)}}function je(F,ie,pe){var Ee=new Array(R+1),B=0,$,b;for($=1;$<=R;$++)Ee[$]=B=B+pe[$-1]<<1;for(b=0;b<=ie;b++){var ee=F[b*2+1];ee!==0&&(F[b*2]=ke(Ee[ee]++,ee))}}function se(){var F,ie,pe,Ee,B,$=new Array(R+1);for(pe=0,Ee=0;Ee>=7;Ee8?We(F,F.bi_buf):F.bi_valid>0&&(F.pending_buf[F.pending++]=F.bi_buf),F.bi_buf=0,F.bi_valid=0}function wt(F,ie,pe,Ee){dt(F),We(F,pe),We(F,~pe),r.arraySet(F.pending_buf,F.window,ie,pe,F.pending),F.pending+=pe}function Ce(F,ie,pe,Ee){var B=ie*2,$=pe*2;return F[B]>1;b>=1;b--)ut(F,pe,b);p=$;do b=F.heap[1],F.heap[1]=F.heap[F.heap_len--],ut(F,pe,1),ee=F.heap[1],F.heap[--F.heap_max]=b,F.heap[--F.heap_max]=ee,pe[p*2]=pe[b*2]+pe[ee*2],F.depth[p]=(F.depth[b]>=F.depth[ee]?F.depth[b]:F.depth[ee])+1,pe[b*2+1]=pe[ee*2+1]=p,F.heap[1]=p++,ut(F,pe,1);while(F.heap_len>=2);F.heap[--F.heap_max]=F.heap[1],ne(F,ie),je(pe,Ue,F.bl_count)}function Ie(F,ie,pe){var Ee,B=-1,$,b=ie[1],ee=0,Ue=7,p=4;for(b===0&&(Ue=138,p=3),ie[(pe+1)*2+1]=65535,Ee=0;Ee<=pe;Ee++)$=b,b=ie[(Ee+1)*2+1],!(++ee=3&&F.bl_tree[oe[ie]*2+1]===0;ie--);return F.opt_len+=3*(ie+1)+5+5+4,ie}function qt(F,ie,pe,Ee){var B;for(De(F,ie-257,5),De(F,pe-1,5),De(F,Ee-4,4),B=0;B>>=1)if(ie&1&&F.dyn_ltree[pe*2]!==0)return t;if(F.dyn_ltree[18]!==0||F.dyn_ltree[20]!==0||F.dyn_ltree[26]!==0)return i;for(pe=32;pe0?(F.strm.data_type===a&&(F.strm.data_type=Dt(F)),jt(F,F.l_desc),jt(F,F.d_desc),b=Je(F),B=F.opt_len+3+7>>>3,$=F.static_len+3+7>>>3,$<=B&&(B=$)):B=$=pe+5,pe+4<=B&&ie!==-1?Pr(F,ie,pe,Ee):F.strategy===e||$===B?(De(F,(f<<1)+(Ee?1:0),3),qe(F,Y,be)):(De(F,(d<<1)+(Ee?1:0),3),qt(F,F.l_desc.max_code+1,F.d_desc.max_code+1,b+1),qe(F,F.dyn_ltree,F.dyn_dtree)),Me(F),Ee&&dt(F)}function Er(F,ie,pe){return F.pending_buf[F.d_buf+F.last_lit*2]=ie>>>8&255,F.pending_buf[F.d_buf+F.last_lit*2+1]=ie&255,F.pending_buf[F.l_buf+F.last_lit]=pe&255,F.last_lit++,ie===0?F.dyn_ltree[pe*2]++:(F.matches++,ie--,F.dyn_ltree[(he[pe]+x+1)*2]++,F.dyn_dtree[Ae(ie)*2]++),F.last_lit===F.lit_bufsize-1}return Oi._tr_init=yn,Oi._tr_stored_block=Pr,Oi._tr_flush_block=wr,Oi._tr_tally=Er,Oi._tr_align=At,Oi}var wc,l0;function fv(){if(l0)return wc;l0=1;function r(e,t,i,a){for(var l=e&65535|0,u=e>>>16&65535|0,f=0;i!==0;){f=i>2e3?2e3:i,i-=f;do l=l+t[a++]|0,u=u+l|0;while(--f);l%=65521,u%=65521}return l|u<<16|0}return wc=r,wc}var Sc,s0;function dv(){if(s0)return Sc;s0=1;function r(){for(var i,a=[],l=0;l<256;l++){i=l;for(var u=0;u<8;u++)i=i&1?3988292384^i>>>1:i>>>1;a[l]=i}return a}var e=r();function t(i,a,l,u){var f=e,d=u+l;i^=-1;for(var h=u;h>>8^f[(i^a[h])&255];return i^-1}return Sc=t,Sc}var bc,u0;function Yc(){return u0||(u0=1,bc={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"}),bc}var c0;function Nm(){if(c0)return vn;c0=1;var r=gi(),e=Am(),t=fv(),i=dv(),a=Yc(),l=0,u=1,f=3,d=4,h=5,m=0,y=1,x=-2,w=-3,C=-5,E=-1,D=1,R=2,L=3,z=4,q=0,H=2,M=8,U=9,_=15,re=8,te=29,oe=256,de=oe+1+te,Y=30,be=19,xe=2*de+1,he=15,le=3,ae=258,ge=ae+le+1,we=32,j=42,J=69,Oe=73,Ae=91,We=103,De=113,Ge=666,ke=1,rt=2,ne=3,je=4,se=3;function Me(p,V){return p.msg=a[V],V}function dt(p){return(p<<1)-(p>4?9:0)}function wt(p){for(var V=p.length;--V>=0;)p[V]=0}function Ce(p){var V=p.state,G=V.pending;G>p.avail_out&&(G=p.avail_out),G!==0&&(r.arraySet(p.output,V.pending_buf,V.pending_out,G,p.next_out),p.next_out+=G,V.pending_out+=G,p.total_out+=G,p.avail_out-=G,V.pending-=G,V.pending===0&&(V.pending_out=0))}function ut(p,V){e._tr_flush_block(p,p.block_start>=0?p.block_start:-1,p.strstart-p.block_start,V),p.block_start=p.strstart,Ce(p.strm)}function qe(p,V){p.pending_buf[p.pending++]=V}function jt(p,V){p.pending_buf[p.pending++]=V>>>8&255,p.pending_buf[p.pending++]=V&255}function Ie(p,V,G,k){var A=p.avail_in;return A>k&&(A=k),A===0?0:(p.avail_in-=A,r.arraySet(V,p.input,p.next_in,A,G),p.state.wrap===1?p.adler=t(p.adler,V,A,G):p.state.wrap===2&&(p.adler=i(p.adler,V,A,G)),p.next_in+=A,p.total_in+=A,A)}function Ct(p,V){var G=p.max_chain_length,k=p.strstart,A,Z,Le=p.prev_length,Pe=p.nice_match,Te=p.strstart>p.w_size-ge?p.strstart-(p.w_size-ge):0,ht=p.window,Sr=p.w_mask,Nt=p.prev,ct=p.strstart+ae,Xt=ht[k+Le-1],Kt=ht[k+Le];p.prev_length>=p.good_match&&(G>>=2),Pe>p.lookahead&&(Pe=p.lookahead);do if(A=V,!(ht[A+Le]!==Kt||ht[A+Le-1]!==Xt||ht[A]!==ht[k]||ht[++A]!==ht[k+1])){k+=2,A++;do;while(ht[++k]===ht[++A]&&ht[++k]===ht[++A]&&ht[++k]===ht[++A]&&ht[++k]===ht[++A]&&ht[++k]===ht[++A]&&ht[++k]===ht[++A]&&ht[++k]===ht[++A]&&ht[++k]===ht[++A]&&kLe){if(p.match_start=V,Le=Z,Z>=Pe)break;Xt=ht[k+Le-1],Kt=ht[k+Le]}}while((V=Nt[V&Sr])>Te&&--G!==0);return Le<=p.lookahead?Le:p.lookahead}function Je(p){var V=p.w_size,G,k,A,Z,Le;do{if(Z=p.window_size-p.lookahead-p.strstart,p.strstart>=V+(V-ge)){r.arraySet(p.window,p.window,V,V,0),p.match_start-=V,p.strstart-=V,p.block_start-=V,k=p.hash_size,G=k;do A=p.head[--G],p.head[G]=A>=V?A-V:0;while(--k);k=V,G=k;do A=p.prev[--G],p.prev[G]=A>=V?A-V:0;while(--k);Z+=V}if(p.strm.avail_in===0)break;if(k=Ie(p.strm,p.window,p.strstart+p.lookahead,Z),p.lookahead+=k,p.lookahead+p.insert>=le)for(Le=p.strstart-p.insert,p.ins_h=p.window[Le],p.ins_h=(p.ins_h<p.pending_buf_size-5&&(G=p.pending_buf_size-5);;){if(p.lookahead<=1){if(Je(p),p.lookahead===0&&V===l)return ke;if(p.lookahead===0)break}p.strstart+=p.lookahead,p.lookahead=0;var k=p.block_start+G;if((p.strstart===0||p.strstart>=k)&&(p.lookahead=p.strstart-k,p.strstart=k,ut(p,!1),p.strm.avail_out===0)||p.strstart-p.block_start>=p.w_size-ge&&(ut(p,!1),p.strm.avail_out===0))return ke}return p.insert=0,V===d?(ut(p,!0),p.strm.avail_out===0?ne:je):(p.strstart>p.block_start&&(ut(p,!1),p.strm.avail_out===0),ke)}function Dt(p,V){for(var G,k;;){if(p.lookahead=le&&(p.ins_h=(p.ins_h<=le)if(k=e._tr_tally(p,p.strstart-p.match_start,p.match_length-le),p.lookahead-=p.match_length,p.match_length<=p.max_lazy_match&&p.lookahead>=le){p.match_length--;do p.strstart++,p.ins_h=(p.ins_h<=le&&(p.ins_h=(p.ins_h<4096)&&(p.match_length=le-1)),p.prev_length>=le&&p.match_length<=p.prev_length){A=p.strstart+p.lookahead-le,k=e._tr_tally(p,p.strstart-1-p.prev_match,p.prev_length-le),p.lookahead-=p.prev_length-1,p.prev_length-=2;do++p.strstart<=A&&(p.ins_h=(p.ins_h<=le&&p.strstart>0&&(A=p.strstart-1,k=Le[A],k===Le[++A]&&k===Le[++A]&&k===Le[++A])){Z=p.strstart+ae;do;while(k===Le[++A]&&k===Le[++A]&&k===Le[++A]&&k===Le[++A]&&k===Le[++A]&&k===Le[++A]&&k===Le[++A]&&k===Le[++A]&&Ap.lookahead&&(p.match_length=p.lookahead)}if(p.match_length>=le?(G=e._tr_tally(p,1,p.match_length-le),p.lookahead-=p.match_length,p.strstart+=p.match_length,p.match_length=0):(G=e._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++),G&&(ut(p,!1),p.strm.avail_out===0))return ke}return p.insert=0,V===d?(ut(p,!0),p.strm.avail_out===0?ne:je):p.last_lit&&(ut(p,!1),p.strm.avail_out===0)?ke:rt}function Pr(p,V){for(var G;;){if(p.lookahead===0&&(Je(p),p.lookahead===0)){if(V===l)return ke;break}if(p.match_length=0,G=e._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++,G&&(ut(p,!1),p.strm.avail_out===0))return ke}return p.insert=0,V===d?(ut(p,!0),p.strm.avail_out===0?ne:je):p.last_lit&&(ut(p,!1),p.strm.avail_out===0)?ke:rt}function At(p,V,G,k,A){this.good_length=p,this.max_lazy=V,this.nice_length=G,this.max_chain=k,this.func=A}var wr;wr=[new At(0,0,0,0,qt),new At(4,4,8,4,Dt),new At(4,5,16,8,Dt),new At(4,6,32,32,Dt),new At(4,4,16,16,Mt),new At(8,16,32,32,Mt),new At(8,16,128,128,Mt),new At(8,32,128,256,Mt),new At(32,128,258,1024,Mt),new At(32,258,258,4096,Mt)];function Er(p){p.window_size=2*p.w_size,wt(p.head),p.max_lazy_match=wr[p.level].max_lazy,p.good_match=wr[p.level].good_length,p.nice_match=wr[p.level].nice_length,p.max_chain_length=wr[p.level].max_chain,p.strstart=0,p.block_start=0,p.lookahead=0,p.insert=0,p.match_length=p.prev_length=le-1,p.match_available=0,p.ins_h=0}function F(){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=M,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 r.Buf16(xe*2),this.dyn_dtree=new r.Buf16((2*Y+1)*2),this.bl_tree=new r.Buf16((2*be+1)*2),wt(this.dyn_ltree),wt(this.dyn_dtree),wt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(he+1),this.heap=new r.Buf16(2*de+1),wt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(2*de+1),wt(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 ie(p){var V;return!p||!p.state?Me(p,x):(p.total_in=p.total_out=0,p.data_type=H,V=p.state,V.pending=0,V.pending_out=0,V.wrap<0&&(V.wrap=-V.wrap),V.status=V.wrap?j:De,p.adler=V.wrap===2?0:1,V.last_flush=l,e._tr_init(V),m)}function pe(p){var V=ie(p);return V===m&&Er(p.state),V}function Ee(p,V){return!p||!p.state||p.state.wrap!==2?x:(p.state.gzhead=V,m)}function B(p,V,G,k,A,Z){if(!p)return x;var Le=1;if(V===E&&(V=6),k<0?(Le=0,k=-k):k>15&&(Le=2,k-=16),A<1||A>U||G!==M||k<8||k>15||V<0||V>9||Z<0||Z>z)return Me(p,x);k===8&&(k=9);var Pe=new F;return p.state=Pe,Pe.strm=p,Pe.wrap=Le,Pe.gzhead=null,Pe.w_bits=k,Pe.w_size=1<h||V<0)return p?Me(p,x):x;if(k=p.state,!p.output||!p.input&&p.avail_in!==0||k.status===Ge&&V!==d)return Me(p,p.avail_out===0?C:x);if(k.strm=p,G=k.last_flush,k.last_flush=V,k.status===j)if(k.wrap===2)p.adler=0,qe(k,31),qe(k,139),qe(k,8),k.gzhead?(qe(k,(k.gzhead.text?1:0)+(k.gzhead.hcrc?2:0)+(k.gzhead.extra?4:0)+(k.gzhead.name?8:0)+(k.gzhead.comment?16:0)),qe(k,k.gzhead.time&255),qe(k,k.gzhead.time>>8&255),qe(k,k.gzhead.time>>16&255),qe(k,k.gzhead.time>>24&255),qe(k,k.level===9?2:k.strategy>=R||k.level<2?4:0),qe(k,k.gzhead.os&255),k.gzhead.extra&&k.gzhead.extra.length&&(qe(k,k.gzhead.extra.length&255),qe(k,k.gzhead.extra.length>>8&255)),k.gzhead.hcrc&&(p.adler=i(p.adler,k.pending_buf,k.pending,0)),k.gzindex=0,k.status=J):(qe(k,0),qe(k,0),qe(k,0),qe(k,0),qe(k,0),qe(k,k.level===9?2:k.strategy>=R||k.level<2?4:0),qe(k,se),k.status=De);else{var Le=M+(k.w_bits-8<<4)<<8,Pe=-1;k.strategy>=R||k.level<2?Pe=0:k.level<6?Pe=1:k.level===6?Pe=2:Pe=3,Le|=Pe<<6,k.strstart!==0&&(Le|=we),Le+=31-Le%31,k.status=De,jt(k,Le),k.strstart!==0&&(jt(k,p.adler>>>16),jt(k,p.adler&65535)),p.adler=1}if(k.status===J)if(k.gzhead.extra){for(A=k.pending;k.gzindex<(k.gzhead.extra.length&65535)&&!(k.pending===k.pending_buf_size&&(k.gzhead.hcrc&&k.pending>A&&(p.adler=i(p.adler,k.pending_buf,k.pending-A,A)),Ce(p),A=k.pending,k.pending===k.pending_buf_size));)qe(k,k.gzhead.extra[k.gzindex]&255),k.gzindex++;k.gzhead.hcrc&&k.pending>A&&(p.adler=i(p.adler,k.pending_buf,k.pending-A,A)),k.gzindex===k.gzhead.extra.length&&(k.gzindex=0,k.status=Oe)}else k.status=Oe;if(k.status===Oe)if(k.gzhead.name){A=k.pending;do{if(k.pending===k.pending_buf_size&&(k.gzhead.hcrc&&k.pending>A&&(p.adler=i(p.adler,k.pending_buf,k.pending-A,A)),Ce(p),A=k.pending,k.pending===k.pending_buf_size)){Z=1;break}k.gzindexA&&(p.adler=i(p.adler,k.pending_buf,k.pending-A,A)),Z===0&&(k.gzindex=0,k.status=Ae)}else k.status=Ae;if(k.status===Ae)if(k.gzhead.comment){A=k.pending;do{if(k.pending===k.pending_buf_size&&(k.gzhead.hcrc&&k.pending>A&&(p.adler=i(p.adler,k.pending_buf,k.pending-A,A)),Ce(p),A=k.pending,k.pending===k.pending_buf_size)){Z=1;break}k.gzindexA&&(p.adler=i(p.adler,k.pending_buf,k.pending-A,A)),Z===0&&(k.status=We)}else k.status=We;if(k.status===We&&(k.gzhead.hcrc?(k.pending+2>k.pending_buf_size&&Ce(p),k.pending+2<=k.pending_buf_size&&(qe(k,p.adler&255),qe(k,p.adler>>8&255),p.adler=0,k.status=De)):k.status=De),k.pending!==0){if(Ce(p),p.avail_out===0)return k.last_flush=-1,m}else if(p.avail_in===0&&dt(V)<=dt(G)&&V!==d)return Me(p,C);if(k.status===Ge&&p.avail_in!==0)return Me(p,C);if(p.avail_in!==0||k.lookahead!==0||V!==l&&k.status!==Ge){var Te=k.strategy===R?Pr(k,V):k.strategy===L?yn(k,V):wr[k.level].func(k,V);if((Te===ne||Te===je)&&(k.status=Ge),Te===ke||Te===ne)return p.avail_out===0&&(k.last_flush=-1),m;if(Te===rt&&(V===u?e._tr_align(k):V!==h&&(e._tr_stored_block(k,0,0,!1),V===f&&(wt(k.head),k.lookahead===0&&(k.strstart=0,k.block_start=0,k.insert=0))),Ce(p),p.avail_out===0))return k.last_flush=-1,m}return V!==d?m:k.wrap<=0?y:(k.wrap===2?(qe(k,p.adler&255),qe(k,p.adler>>8&255),qe(k,p.adler>>16&255),qe(k,p.adler>>24&255),qe(k,p.total_in&255),qe(k,p.total_in>>8&255),qe(k,p.total_in>>16&255),qe(k,p.total_in>>24&255)):(jt(k,p.adler>>>16),jt(k,p.adler&65535)),Ce(p),k.wrap>0&&(k.wrap=-k.wrap),k.pending!==0?m:y)}function ee(p){var V;return!p||!p.state?x:(V=p.state.status,V!==j&&V!==J&&V!==Oe&&V!==Ae&&V!==We&&V!==De&&V!==Ge?Me(p,x):(p.state=null,V===De?Me(p,w):m))}function Ue(p,V){var G=V.length,k,A,Z,Le,Pe,Te,ht,Sr;if(!p||!p.state||(k=p.state,Le=k.wrap,Le===2||Le===1&&k.status!==j||k.lookahead))return x;for(Le===1&&(p.adler=t(p.adler,V,G,0)),k.wrap=0,G>=k.w_size&&(Le===0&&(wt(k.head),k.strstart=0,k.block_start=0,k.insert=0),Sr=new r.Buf8(k.w_size),r.arraySet(Sr,V,G-k.w_size,k.w_size,0),V=Sr,G=k.w_size),Pe=p.avail_in,Te=p.next_in,ht=p.input,p.avail_in=G,p.next_in=0,p.input=V,Je(k);k.lookahead>=le;){A=k.strstart,Z=k.lookahead-(le-1);do k.ins_h=(k.ins_h<=252?6:a>=248?5:a>=240?4:a>=224?3:a>=192?2:1;i[254]=i[254]=1,Ai.string2buf=function(u){var f,d,h,m,y,x=u.length,w=0;for(m=0;m>>6,f[y++]=128|d&63):d<65536?(f[y++]=224|d>>>12,f[y++]=128|d>>>6&63,f[y++]=128|d&63):(f[y++]=240|d>>>18,f[y++]=128|d>>>12&63,f[y++]=128|d>>>6&63,f[y++]=128|d&63);return f};function l(u,f){if(f<65534&&(u.subarray&&t||!u.subarray&&e))return String.fromCharCode.apply(null,r.shrinkBuf(u,f));for(var d="",h=0;h4){w[h++]=65533,d+=y-1;continue}for(m&=y===2?31:y===3?15:7;y>1&&d1){w[h++]=65533;continue}m<65536?w[h++]=m:(m-=65536,w[h++]=55296|m>>10&1023,w[h++]=56320|m&1023)}return l(w,h)},Ai.utf8border=function(u,f){var d;for(f=f||u.length,f>u.length&&(f=u.length),d=f-1;d>=0&&(u[d]&192)===128;)d--;return d<0||d===0?f:d+i[u[d]]>f?d:f},Ai}var kc,d0;function vv(){if(d0)return kc;d0=1;function r(){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}return kc=r,kc}var h0;function zm(){if(h0)return uo;h0=1;var r=Nm(),e=gi(),t=hv(),i=Yc(),a=vv(),l=Object.prototype.toString,u=0,f=4,d=0,h=1,m=2,y=-1,x=0,w=8;function C(L){if(!(this instanceof C))return new C(L);this.options=e.assign({level:y,method:w,chunkSize:16384,windowBits:15,memLevel:8,strategy:x,to:""},L||{});var z=this.options;z.raw&&z.windowBits>0?z.windowBits=-z.windowBits:z.gzip&&z.windowBits>0&&z.windowBits<16&&(z.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var q=r.deflateInit2(this.strm,z.level,z.method,z.windowBits,z.memLevel,z.strategy);if(q!==d)throw new Error(i[q]);if(z.header&&r.deflateSetHeader(this.strm,z.header),z.dictionary){var H;if(typeof z.dictionary=="string"?H=t.string2buf(z.dictionary):l.call(z.dictionary)==="[object ArrayBuffer]"?H=new Uint8Array(z.dictionary):H=z.dictionary,q=r.deflateSetDictionary(this.strm,H),q!==d)throw new Error(i[q]);this._dict_set=!0}}C.prototype.push=function(L,z){var q=this.strm,H=this.options.chunkSize,M,U;if(this.ended)return!1;U=z===~~z?z:z===!0?f:u,typeof L=="string"?q.input=t.string2buf(L):l.call(L)==="[object ArrayBuffer]"?q.input=new Uint8Array(L):q.input=L,q.next_in=0,q.avail_in=q.input.length;do{if(q.avail_out===0&&(q.output=new e.Buf8(H),q.next_out=0,q.avail_out=H),M=r.deflate(q,U),M!==h&&M!==d)return this.onEnd(M),this.ended=!0,!1;(q.avail_out===0||q.avail_in===0&&(U===f||U===m))&&(this.options.to==="string"?this.onData(t.buf2binstring(e.shrinkBuf(q.output,q.next_out))):this.onData(e.shrinkBuf(q.output,q.next_out)))}while((q.avail_in>0||q.avail_out===0)&&M!==h);return U===f?(M=r.deflateEnd(this.strm),this.onEnd(M),this.ended=!0,M===d):(U===m&&(this.onEnd(d),q.avail_out=0),!0)},C.prototype.onData=function(L){this.chunks.push(L)},C.prototype.onEnd=function(L){L===d&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=e.flattenChunks(this.chunks)),this.chunks=[],this.err=L,this.msg=this.strm.msg};function E(L,z){var q=new C(z);if(q.push(L,!0),q.err)throw q.msg||i[q.err];return q.result}function D(L,z){return z=z||{},z.raw=!0,E(L,z)}function R(L,z){return z=z||{},z.gzip=!0,E(L,z)}return uo.Deflate=C,uo.deflate=E,uo.deflateRaw=D,uo.gzip=R,uo}var co={},Jr={},Cc,v0;function jm(){if(v0)return Cc;v0=1;var r=30,e=12;return Cc=function(i,a){var l,u,f,d,h,m,y,x,w,C,E,D,R,L,z,q,H,M,U,_,re,te,oe,de,Y;l=i.state,u=i.next_in,de=i.input,f=u+(i.avail_in-5),d=i.next_out,Y=i.output,h=d-(a-i.avail_out),m=d+(i.avail_out-257),y=l.dmax,x=l.wsize,w=l.whave,C=l.wnext,E=l.window,D=l.hold,R=l.bits,L=l.lencode,z=l.distcode,q=(1<>>24,D>>>=U,R-=U,U=M>>>16&255,U===0)Y[d++]=M&65535;else if(U&16){_=M&65535,U&=15,U&&(R>>=U,R-=U),R<15&&(D+=de[u++]<>>24,D>>>=U,R-=U,U=M>>>16&255,U&16){if(re=M&65535,U&=15,Ry){i.msg="invalid distance too far back",l.mode=r;break e}if(D>>>=U,R-=U,U=d-h,re>U){if(U=re-U,U>w&&l.sane){i.msg="invalid distance too far back",l.mode=r;break e}if(te=0,oe=E,C===0){if(te+=x-U,U<_){_-=U;do Y[d++]=E[te++];while(--U);te=d-re,oe=Y}}else if(C2;)Y[d++]=oe[te++],Y[d++]=oe[te++],Y[d++]=oe[te++],_-=3;_&&(Y[d++]=oe[te++],_>1&&(Y[d++]=oe[te++]))}else{te=d-re;do Y[d++]=Y[te++],Y[d++]=Y[te++],Y[d++]=Y[te++],_-=3;while(_>2);_&&(Y[d++]=Y[te++],_>1&&(Y[d++]=Y[te++]))}}else if((U&64)===0){M=z[(M&65535)+(D&(1<>3,u-=_,R-=_<<3,D&=(1<=1&&Oe[_]===0;_--);if(re>_&&(re=_),_===0)return D[R++]=1<<24|64<<16|0,D[R++]=1<<24|64<<16|0,z.bits=1,0;for(U=1;U<_&&Oe[U]===0;U++);for(re0&&(x===a||_!==1))return-1;for(Ae[1]=0,H=1;Ht||x===u&&Y>i)return 1;for(;;){Ge=H-oe,L[M]J?(ke=We[De+L[M]],rt=we[j+L[M]]):(ke=96,rt=0),xe=1<>oe)+he]=Ge<<24|ke<<16|rt|0;while(he!==0);for(xe=1<>=1;if(xe!==0?(be&=xe-1,be+=xe):be=0,M++,--Oe[H]===0){if(H===_)break;H=w[C+L[M]]}if(H>re&&(be&ae)!==le){for(oe===0&&(oe=re),ge+=U,te=H-oe,de=1<t||x===u&&Y>i)return 1;le=be&ae,D[le]=re<<24|te<<16|ge-R|0}}return be!==0&&(D[ge+be]=H-oe<<24|64<<16|0),z.bits=re,0},Fc}var g0;function Im(){if(g0)return Jr;g0=1;var r=gi(),e=fv(),t=dv(),i=jm(),a=Mm(),l=0,u=1,f=2,d=4,h=5,m=6,y=0,x=1,w=2,C=-2,E=-3,D=-4,R=-5,L=8,z=1,q=2,H=3,M=4,U=5,_=6,re=7,te=8,oe=9,de=10,Y=11,be=12,xe=13,he=14,le=15,ae=16,ge=17,we=18,j=19,J=20,Oe=21,Ae=22,We=23,De=24,Ge=25,ke=26,rt=27,ne=28,je=29,se=30,Me=31,dt=32,wt=852,Ce=592,ut=15,qe=ut;function jt(B){return(B>>>24&255)+(B>>>8&65280)+((B&65280)<<8)+((B&255)<<24)}function Ie(){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 r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Ct(B){var $;return!B||!B.state?C:($=B.state,B.total_in=B.total_out=$.total=0,B.msg="",$.wrap&&(B.adler=$.wrap&1),$.mode=z,$.last=0,$.havedict=0,$.dmax=32768,$.head=null,$.hold=0,$.bits=0,$.lencode=$.lendyn=new r.Buf32(wt),$.distcode=$.distdyn=new r.Buf32(Ce),$.sane=1,$.back=-1,y)}function Je(B){var $;return!B||!B.state?C:($=B.state,$.wsize=0,$.whave=0,$.wnext=0,Ct(B))}function qt(B,$){var b,ee;return!B||!B.state||(ee=B.state,$<0?(b=0,$=-$):(b=($>>4)+1,$<48&&($&=15)),$&&($<8||$>15))?C:(ee.window!==null&&ee.wbits!==$&&(ee.window=null),ee.wrap=b,ee.wbits=$,Je(B))}function Dt(B,$){var b,ee;return B?(ee=new Ie,B.state=ee,ee.window=null,b=qt(B,$),b!==y&&(B.state=null),b):C}function Mt(B){return Dt(B,qe)}var yn=!0,Pr,At;function wr(B){if(yn){var $;for(Pr=new r.Buf32(512),At=new r.Buf32(32),$=0;$<144;)B.lens[$++]=8;for(;$<256;)B.lens[$++]=9;for(;$<280;)B.lens[$++]=7;for(;$<288;)B.lens[$++]=8;for(a(u,B.lens,0,288,Pr,0,B.work,{bits:9}),$=0;$<32;)B.lens[$++]=5;a(f,B.lens,0,32,At,0,B.work,{bits:5}),yn=!1}B.lencode=Pr,B.lenbits=9,B.distcode=At,B.distbits=5}function Er(B,$,b,ee){var Ue,p=B.state;return p.window===null&&(p.wsize=1<=p.wsize?(r.arraySet(p.window,$,b-p.wsize,p.wsize,0),p.wnext=0,p.whave=p.wsize):(Ue=p.wsize-p.wnext,Ue>ee&&(Ue=ee),r.arraySet(p.window,$,b-ee,Ue,p.wnext),ee-=Ue,ee?(r.arraySet(p.window,$,b-ee,ee,0),p.wnext=ee,p.whave=p.wsize):(p.wnext+=Ue,p.wnext===p.wsize&&(p.wnext=0),p.whave>>8&255,b.check=t(b.check,$t,2,0),A=0,Z=0,b.mode=q;break}if(b.flags=0,b.head&&(b.head.done=!1),!(b.wrap&1)||(((A&255)<<8)+(A>>8))%31){B.msg="incorrect header check",b.mode=se;break}if((A&15)!==L){B.msg="unknown compression method",b.mode=se;break}if(A>>>=4,Z-=4,Ht=(A&15)+8,b.wbits===0)b.wbits=Ht;else if(Ht>b.wbits){B.msg="invalid window size",b.mode=se;break}b.dmax=1<>8&1),b.flags&512&&($t[0]=A&255,$t[1]=A>>>8&255,b.check=t(b.check,$t,2,0)),A=0,Z=0,b.mode=H;case H:for(;Z<32;){if(G===0)break e;G--,A+=ee[p++]<>>8&255,$t[2]=A>>>16&255,$t[3]=A>>>24&255,b.check=t(b.check,$t,4,0)),A=0,Z=0,b.mode=M;case M:for(;Z<16;){if(G===0)break e;G--,A+=ee[p++]<>8),b.flags&512&&($t[0]=A&255,$t[1]=A>>>8&255,b.check=t(b.check,$t,2,0)),A=0,Z=0,b.mode=U;case U:if(b.flags&1024){for(;Z<16;){if(G===0)break e;G--,A+=ee[p++]<>>8&255,b.check=t(b.check,$t,2,0)),A=0,Z=0}else b.head&&(b.head.extra=null);b.mode=_;case _:if(b.flags&1024&&(Te=b.length,Te>G&&(Te=G),Te&&(b.head&&(Ht=b.head.extra_len-b.length,b.head.extra||(b.head.extra=new Array(b.head.extra_len)),r.arraySet(b.head.extra,ee,p,Te,Ht)),b.flags&512&&(b.check=t(b.check,ee,Te,p)),G-=Te,p+=Te,b.length-=Te),b.length))break e;b.length=0,b.mode=re;case re:if(b.flags&2048){if(G===0)break e;Te=0;do Ht=ee[p+Te++],b.head&&Ht&&b.length<65536&&(b.head.name+=String.fromCharCode(Ht));while(Ht&&Te>9&1,b.head.done=!0),B.adler=b.check=0,b.mode=be;break;case de:for(;Z<32;){if(G===0)break e;G--,A+=ee[p++]<>>=Z&7,Z-=Z&7,b.mode=rt;break}for(;Z<3;){if(G===0)break e;G--,A+=ee[p++]<>>=1,Z-=1,A&3){case 0:b.mode=he;break;case 1:if(wr(b),b.mode=J,$===m){A>>>=2,Z-=2;break e}break;case 2:b.mode=ge;break;case 3:B.msg="invalid block type",b.mode=se}A>>>=2,Z-=2;break;case he:for(A>>>=Z&7,Z-=Z&7;Z<32;){if(G===0)break e;G--,A+=ee[p++]<>>16^65535)){B.msg="invalid stored block lengths",b.mode=se;break}if(b.length=A&65535,A=0,Z=0,b.mode=le,$===m)break e;case le:b.mode=ae;case ae:if(Te=b.length,Te){if(Te>G&&(Te=G),Te>k&&(Te=k),Te===0)break e;r.arraySet(Ue,ee,p,Te,V),G-=Te,p+=Te,k-=Te,V+=Te,b.length-=Te;break}b.mode=be;break;case ge:for(;Z<14;){if(G===0)break e;G--,A+=ee[p++]<>>=5,Z-=5,b.ndist=(A&31)+1,A>>>=5,Z-=5,b.ncode=(A&15)+4,A>>>=4,Z-=4,b.nlen>286||b.ndist>30){B.msg="too many length or distance symbols",b.mode=se;break}b.have=0,b.mode=we;case we:for(;b.have>>=3,Z-=3}for(;b.have<19;)b.lens[Co[b.have++]]=0;if(b.lencode=b.lendyn,b.lenbits=7,cr={bits:b.lenbits},Tr=a(l,b.lens,0,19,b.lencode,0,b.work,cr),b.lenbits=cr.bits,Tr){B.msg="invalid code lengths set",b.mode=se;break}b.have=0,b.mode=j;case j:for(;b.have>>24,Xt=Nt>>>16&255,Kt=Nt&65535,!(ct<=Z);){if(G===0)break e;G--,A+=ee[p++]<>>=ct,Z-=ct,b.lens[b.have++]=Kt;else{if(Kt===16){for(Mr=ct+2;Z>>=ct,Z-=ct,b.have===0){B.msg="invalid bit length repeat",b.mode=se;break}Ht=b.lens[b.have-1],Te=3+(A&3),A>>>=2,Z-=2}else if(Kt===17){for(Mr=ct+3;Z>>=ct,Z-=ct,Ht=0,Te=3+(A&7),A>>>=3,Z-=3}else{for(Mr=ct+7;Z>>=ct,Z-=ct,Ht=0,Te=11+(A&127),A>>>=7,Z-=7}if(b.have+Te>b.nlen+b.ndist){B.msg="invalid bit length repeat",b.mode=se;break}for(;Te--;)b.lens[b.have++]=Ht}}if(b.mode===se)break;if(b.lens[256]===0){B.msg="invalid code -- missing end-of-block",b.mode=se;break}if(b.lenbits=9,cr={bits:b.lenbits},Tr=a(u,b.lens,0,b.nlen,b.lencode,0,b.work,cr),b.lenbits=cr.bits,Tr){B.msg="invalid literal/lengths set",b.mode=se;break}if(b.distbits=6,b.distcode=b.distdyn,cr={bits:b.distbits},Tr=a(f,b.lens,b.nlen,b.ndist,b.distcode,0,b.work,cr),b.distbits=cr.bits,Tr){B.msg="invalid distances set",b.mode=se;break}if(b.mode=J,$===m)break e;case J:b.mode=Oe;case Oe:if(G>=6&&k>=258){B.next_out=V,B.avail_out=k,B.next_in=p,B.avail_in=G,b.hold=A,b.bits=Z,i(B,Pe),V=B.next_out,Ue=B.output,k=B.avail_out,p=B.next_in,ee=B.input,G=B.avail_in,A=b.hold,Z=b.bits,b.mode===be&&(b.back=-1);break}for(b.back=0;Nt=b.lencode[A&(1<>>24,Xt=Nt>>>16&255,Kt=Nt&65535,!(ct<=Z);){if(G===0)break e;G--,A+=ee[p++]<>_t)],ct=Nt>>>24,Xt=Nt>>>16&255,Kt=Nt&65535,!(_t+ct<=Z);){if(G===0)break e;G--,A+=ee[p++]<>>=_t,Z-=_t,b.back+=_t}if(A>>>=ct,Z-=ct,b.back+=ct,b.length=Kt,Xt===0){b.mode=ke;break}if(Xt&32){b.back=-1,b.mode=be;break}if(Xt&64){B.msg="invalid literal/length code",b.mode=se;break}b.extra=Xt&15,b.mode=Ae;case Ae:if(b.extra){for(Mr=b.extra;Z>>=b.extra,Z-=b.extra,b.back+=b.extra}b.was=b.length,b.mode=We;case We:for(;Nt=b.distcode[A&(1<>>24,Xt=Nt>>>16&255,Kt=Nt&65535,!(ct<=Z);){if(G===0)break e;G--,A+=ee[p++]<>_t)],ct=Nt>>>24,Xt=Nt>>>16&255,Kt=Nt&65535,!(_t+ct<=Z);){if(G===0)break e;G--,A+=ee[p++]<>>=_t,Z-=_t,b.back+=_t}if(A>>>=ct,Z-=ct,b.back+=ct,Xt&64){B.msg="invalid distance code",b.mode=se;break}b.offset=Kt,b.extra=Xt&15,b.mode=De;case De:if(b.extra){for(Mr=b.extra;Z>>=b.extra,Z-=b.extra,b.back+=b.extra}if(b.offset>b.dmax){B.msg="invalid distance too far back",b.mode=se;break}b.mode=Ge;case Ge:if(k===0)break e;if(Te=Pe-k,b.offset>Te){if(Te=b.offset-Te,Te>b.whave&&b.sane){B.msg="invalid distance too far back",b.mode=se;break}Te>b.wnext?(Te-=b.wnext,ht=b.wsize-Te):ht=b.wnext-Te,Te>b.length&&(Te=b.length),Sr=b.window}else Sr=Ue,ht=V-b.offset,Te=b.length;Te>k&&(Te=k),k-=Te,b.length-=Te;do Ue[V++]=Sr[ht++];while(--Te);b.length===0&&(b.mode=Oe);break;case ke:if(k===0)break e;Ue[V++]=b.length,k--,b.mode=Oe;break;case rt:if(b.wrap){for(;Z<32;){if(G===0)break e;G--,A|=ee[p++]<=0&&x.windowBits<16&&(x.windowBits=-x.windowBits,x.windowBits===0&&(x.windowBits=-15)),x.windowBits>=0&&x.windowBits<16&&!(y&&y.windowBits)&&(x.windowBits+=32),x.windowBits>15&&x.windowBits<48&&(x.windowBits&15)===0&&(x.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var w=r.inflateInit2(this.strm,x.windowBits);if(w!==i.Z_OK)throw new Error(a[w]);if(this.header=new u,r.inflateGetHeader(this.strm,this.header),x.dictionary&&(typeof x.dictionary=="string"?x.dictionary=t.string2buf(x.dictionary):f.call(x.dictionary)==="[object ArrayBuffer]"&&(x.dictionary=new Uint8Array(x.dictionary)),x.raw&&(w=r.inflateSetDictionary(this.strm,x.dictionary),w!==i.Z_OK)))throw new Error(a[w])}d.prototype.push=function(y,x){var w=this.strm,C=this.options.chunkSize,E=this.options.dictionary,D,R,L,z,q,H=!1;if(this.ended)return!1;R=x===~~x?x:x===!0?i.Z_FINISH:i.Z_NO_FLUSH,typeof y=="string"?w.input=t.binstring2buf(y):f.call(y)==="[object ArrayBuffer]"?w.input=new Uint8Array(y):w.input=y,w.next_in=0,w.avail_in=w.input.length;do{if(w.avail_out===0&&(w.output=new e.Buf8(C),w.next_out=0,w.avail_out=C),D=r.inflate(w,i.Z_NO_FLUSH),D===i.Z_NEED_DICT&&E&&(D=r.inflateSetDictionary(this.strm,E)),D===i.Z_BUF_ERROR&&H===!0&&(D=i.Z_OK,H=!1),D!==i.Z_STREAM_END&&D!==i.Z_OK)return this.onEnd(D),this.ended=!0,!1;w.next_out&&(w.avail_out===0||D===i.Z_STREAM_END||w.avail_in===0&&(R===i.Z_FINISH||R===i.Z_SYNC_FLUSH))&&(this.options.to==="string"?(L=t.utf8border(w.output,w.next_out),z=w.next_out-L,q=t.buf2string(w.output,L),w.next_out=z,w.avail_out=C-z,z&&e.arraySet(w.output,w.output,L,z,0),this.onData(q)):this.onData(e.shrinkBuf(w.output,w.next_out))),w.avail_in===0&&w.avail_out===0&&(H=!0)}while((w.avail_in>0||w.avail_out===0)&&D!==i.Z_STREAM_END);return D===i.Z_STREAM_END&&(R=i.Z_FINISH),R===i.Z_FINISH?(D=r.inflateEnd(this.strm),this.onEnd(D),this.ended=!0,D===i.Z_OK):(R===i.Z_SYNC_FLUSH&&(this.onEnd(i.Z_OK),w.avail_out=0),!0)},d.prototype.onData=function(y){this.chunks.push(y)},d.prototype.onEnd=function(y){y===i.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=e.flattenChunks(this.chunks)),this.chunks=[],this.err=y,this.msg=this.strm.msg};function h(y,x){var w=new d(x);if(w.push(y,!0),w.err)throw w.msg||a[w.err];return w.result}function m(y,x){return x=x||{},x.raw=!0,h(y,x)}return co.Inflate=d,co.inflate=h,co.inflateRaw=m,co.ungzip=h,co}var Tc,w0;function Lm(){if(w0)return Tc;w0=1;var r=gi().assign,e=zm(),t=Um(),i=pv(),a={};return r(a,e,t,i),Tc=a,Tc}var Vm=Lm();const ys=Qg(Vm);var S0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ha=new Uint8Array(256);for(var Wl=0;Wl>4,h[a++]=(u&15)<<4|f>>2,h[a++]=(f&3)<<6|d&63;return h},qm=function(r){for(var e="",t=0;ti)throw new Error(rr(e)+" must be at least "+t+" and at most "+i+", but was actually "+r)},pn=function(r,e,t,i){W(r,e,["number","undefined"]),typeof r=="number"&&Vr(r,e,t,i)},yv=function(r,e,t){if(W(r,e,["number"]),r%t!==0)throw new Error(rr(e)+" must be a multiple of "+t+", but was actually "+r)},gy=function(r,e){if(!Number.isInteger(r))throw new Error(rr(e)+" must be an integer, but was actually "+r)},ws=function(r,e){if(![1,0].includes(Math.sign(r)))throw new Error(rr(e)+" must be a positive number or 0, but was actually "+r)},it=new Uint16Array(256);for(var Hl=0;Hl<256;Hl++)it[Hl]=Hl;it[22]=tt("");it[24]=tt("˘");it[25]=tt("ˇ");it[26]=tt("ˆ");it[27]=tt("˙");it[28]=tt("˝");it[29]=tt("˛");it[30]=tt("˚");it[31]=tt("˜");it[127]=tt("�");it[128]=tt("•");it[129]=tt("†");it[130]=tt("‡");it[131]=tt("…");it[132]=tt("—");it[133]=tt("–");it[134]=tt("ƒ");it[135]=tt("⁄");it[136]=tt("‹");it[137]=tt("›");it[138]=tt("−");it[139]=tt("‰");it[140]=tt("„");it[141]=tt("“");it[142]=tt("”");it[143]=tt("‘");it[144]=tt("’");it[145]=tt("‚");it[146]=tt("™");it[147]=tt("fi");it[148]=tt("fl");it[149]=tt("Ł");it[150]=tt("Œ");it[151]=tt("Š");it[152]=tt("Ÿ");it[153]=tt("Ž");it[154]=tt("ı");it[155]=tt("ł");it[156]=tt("œ");it[157]=tt("š");it[158]=tt("ž");it[159]=tt("�");it[160]=tt("€");it[173]=tt("�");var xv=function(r){for(var e=new Array(r.length),t=0,i=r.length;t=T.ExclamationPoint&&r<=T.Tilde&&!$c[r]},T0={},R0=new Map,P=(function(r){ye(e,r);function e(t,i){var a=this;if(t!==T0)throw new Qc("PDFName");a=r.call(this)||this;for(var l="/",u=0,f=i.length;u=T.Zero&&h<=T.Nine||h>=T.a&&h<=T.f||h>=T.A&&h<=T.F?(i+=d,(i.length===2||!(m>="0"&&m<="9"||m>="a"&&m<="f"||m>="A"&&m<="F"))&&(l(parseInt(i,16)),i="")):l(h):h===T.Hash?a=!0:l(h)}return new Uint8Array(t)},e.prototype.decodeText=function(){var t=this.asBytes();return String.fromCharCode.apply(String,Array.from(t))},e.prototype.asString=function(){return this.encodedName},e.prototype.value=function(){return this.encodedName},e.prototype.clone=function(){return this},e.prototype.toString=function(){return this.encodedName},e.prototype.sizeInBytes=function(){return this.encodedName.length},e.prototype.copyBytesInto=function(t,i){return i+=hr(this.encodedName,t,i),this.encodedName.length},e.of=function(t){var i=zy(t),a=R0.get(i);return a||(a=new e(T0,i),R0.set(i,a)),a},e.Length=e.of("Length"),e.FlateDecode=e.of("FlateDecode"),e.Resources=e.of("Resources"),e.Font=e.of("Font"),e.XObject=e.of("XObject"),e.ExtGState=e.of("ExtGState"),e.Contents=e.of("Contents"),e.Type=e.of("Type"),e.Parent=e.of("Parent"),e.MediaBox=e.of("MediaBox"),e.Page=e.of("Page"),e.Annots=e.of("Annots"),e.TrimBox=e.of("TrimBox"),e.ArtBox=e.of("ArtBox"),e.BleedBox=e.of("BleedBox"),e.CropBox=e.of("CropBox"),e.Rotate=e.of("Rotate"),e.Title=e.of("Title"),e.Author=e.of("Author"),e.Subject=e.of("Subject"),e.Creator=e.of("Creator"),e.Keywords=e.of("Keywords"),e.Producer=e.of("Producer"),e.CreationDate=e.of("CreationDate"),e.ModDate=e.of("ModDate"),e})(Cr),My=(function(r){ye(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.asNull=function(){return null},e.prototype.clone=function(){return this},e.prototype.toString=function(){return"null"},e.prototype.sizeInBytes=function(){return 4},e.prototype.copyBytesInto=function(t,i){return t[i++]=T.n,t[i++]=T.u,t[i++]=T.l,t[i++]=T.l,4},e})(Cr);const jr=new My;var ot=(function(r){ye(e,r);function e(t,i){var a=r.call(this)||this;return a.dict=t,a.context=i,a}return e.prototype.keys=function(){return Array.from(this.dict.keys())},e.prototype.values=function(){return Array.from(this.dict.values())},e.prototype.entries=function(){return Array.from(this.dict.entries())},e.prototype.set=function(t,i){this.dict.set(t,i)},e.prototype.get=function(t,i){i===void 0&&(i=!1);var a=this.dict.get(t);if(!(a===jr&&!i))return a},e.prototype.has=function(t){var i=this.dict.get(t);return i!==void 0&&i!==jr},e.prototype.lookupMaybe=function(t){for(var i,a=[],l=1;l0&&l[l.length-1])&&(h[0]===6||h[0]===2)){t=0;continue}if(h[0]===3&&(!l||h[1]>l[0]&&h[1]>2],e+=vo[(r[i]&3)<<4|r[i+1]>>4],e+=vo[(r[i+1]&15)<<2|r[i+2]>>6],e+=vo[r[i+2]&63];return t%3===2?e=e.substring(0,e.length-1)+"=":t%3===1&&(e=e.substring(0,e.length-2)+"=="),e},r0=function(r){var e=r.length*.75,t=r.length,i,a=0,l,u,f,d;r[r.length-1]==="="&&(e--,r[r.length-2]==="="&&e--);var h=new Uint8Array(e);for(i=0;i>4,h[a++]=(u&15)<<4|f>>2,h[a++]=(f&3)<<6|d&63;return h},sm=/^(data)?:?([\w\/\+]+)?;?(charset=[\w-]+|base64)?.*,/i,um=function(r){var e=r.trim(),t=e.substring(0,100),i=t.match(sm);if(!i)return r0(e);var a=i[0],l=e.substring(a.length);return r0(l)},et=function(r){return r.charCodeAt(0)},cm=function(r){return r.codePointAt(0)},Ta=function(r,e){return yn(r.toString(16),e,"0").toUpperCase()},ms=function(r){return Ta(r,2)},Mn=function(r){return String.fromCharCode(r)},fm=function(r){return Mn(parseInt(r,16))},yn=function(r,e,t){for(var i="",a=0,l=e-r.length;a=55296&&t<=56319&&r.length>a&&(i=r.charCodeAt(a),i>=56320&&i<=57343&&(l=2)),[r.slice(e,e+l),l]},vm=function(r){for(var e=[],t=0,i=r.length;tt&&h(),u+=x,f+=w}}return h(),d},mm=/^D:(\d\d\d\d)(\d\d)?(\d\d)?(\d\d)?(\d\d)?(\d\d)?([+\-Z])?(\d\d)?'?(\d\d)?'?$/,nv=function(r){var e=r.match(mm);if(e){var t=e[1],i=e[2],a=i===void 0?"01":i,l=e[3],u=l===void 0?"01":l,f=e[4],d=f===void 0?"00":f,h=e[5],m=h===void 0?"00":h,y=e[6],x=y===void 0?"00":y,w=e[7],C=w===void 0?"Z":w,E=e[8],D=E===void 0?"00":E,R=e[9],L=R===void 0?"00":R,N=C==="Z"?"Z":""+C+D+":"+L,H=new Date(t+"-"+a+"-"+u+"T"+d+":"+m+":"+x+N);return H}},Zc=function(r,e){for(var t,i=0,a;i=0&&r<=65535},Tm=function(r){return r>=65536&&r<=1114111},ov=function(r){return Math.floor((r-65536)/1024)+55296},av=function(r){return(r-65536)%1024+56320},ci;(function(r){r.BigEndian="BigEndian",r.LittleEndian="LittleEndian"})(ci||(ci={}));var aa="�".codePointAt(0),lv=function(r,e){if(e===void 0&&(e=!0),r.length<=1)return String.fromCodePoint(aa);for(var t=e?Dm(r):ci.BigEndian,i=e?2:0,a=[];r.length-i>=2;){var l=i0(r[i++],r[i++],t);if(Rm(l))if(r.length-i<2)a.push(aa);else{var u=i0(r[i++],r[i++],t);n0(u)?a.push(l,u):a.push(aa)}else n0(l)?(i+=2,a.push(aa)):a.push(l)}return i=55296&&r<=56319},n0=function(r){return r>=56320&&r<=57343},i0=function(r,e,t){if(t===ci.LittleEndian)return e<<8|r;if(t===ci.BigEndian)return r<<8|e;throw new Error("Invalid byteOrder: "+t)},Dm=function(r){return sv(r)?ci.BigEndian:uv(r)?ci.LittleEndian:ci.BigEndian},sv=function(r){return r[0]===254&&r[1]===255},uv=function(r){return r[0]===255&&r[1]===254},cv=function(r){return sv(r)||uv(r)},Om=function(r){var e=String(r);if(Math.abs(r)<1){var t=parseInt(r.toString().split("e-")[1]);if(t){var i=r<0;i&&(r*=-1),r*=Math.pow(10,t-1),e="0."+new Array(t).join("0")+r.toString().substring(2),i&&(e="-"+e)}}else{var t=parseInt(r.toString().split("+")[1]);t>20&&(t-=20,r/=Math.pow(10,t),e=r.toString()+new Array(t+1).join("0"))}return e},$l=function(r){return Math.ceil(r.toString(2).length/8)},so=function(r){for(var e=new Uint8Array($l(r)),t=1;t<=e.length;t++)e[t-1]=r>>(e.length-t)*8;return e},Da=function(r){throw new Error(r)},xc={},o0;function gi(){return o0||(o0=1,(function(r){var e=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function t(l,u){return Object.prototype.hasOwnProperty.call(l,u)}r.assign=function(l){for(var u=Array.prototype.slice.call(arguments,1);u.length;){var f=u.shift();if(f){if(typeof f!="object")throw new TypeError(f+"must be non-object");for(var d in f)t(f,d)&&(l[d]=f[d])}}return l},r.shrinkBuf=function(l,u){return l.length===u?l:l.subarray?l.subarray(0,u):(l.length=u,l)};var i={arraySet:function(l,u,f,d,h){if(u.subarray&&l.subarray){l.set(u.subarray(f,f+d),h);return}for(var m=0;m=0;)F[ne]=0}var u=0,f=1,d=2,h=3,m=258,y=29,x=256,w=x+1+y,C=30,E=19,D=2*w+1,R=15,L=16,N=7,H=256,G=16,U=17,B=18,_=[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],ee=[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],te=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],oe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],de=512,Y=new Array((w+2)*2);l(Y);var ke=new Array(C*2);l(ke);var xe=new Array(de);l(xe);var he=new Array(m-h+1);l(he);var ae=new Array(y);l(ae);var re=new Array(C);l(re);function pe(F,ne,fe,Re,I){this.static_tree=F,this.extra_bits=ne,this.extra_base=fe,this.elems=Re,this.max_length=I,this.has_stree=F&&F.length}var we,j,J;function Ne(F,ne){this.dyn_tree=F,this.max_code=0,this.stat_desc=ne}function ze(F){return F<256?xe[F]:xe[256+(F>>>7)]}function Ve(F,ne){F.pending_buf[F.pending++]=ne&255,F.pending_buf[F.pending++]=ne>>>8&255}function Ae(F,ne,fe){F.bi_valid>L-fe?(F.bi_buf|=ne<>L-F.bi_valid,F.bi_valid+=fe-L):(F.bi_buf|=ne<>>=1,fe<<=1;while(--ne>0);return fe>>>1}function nt(F){F.bi_valid===16?(Ve(F,F.bi_buf),F.bi_buf=0,F.bi_valid=0):F.bi_valid>=8&&(F.pending_buf[F.pending++]=F.bi_buf&255,F.bi_buf>>=8,F.bi_valid-=8)}function St(F,ne){var fe=ne.dyn_tree,Re=ne.max_code,I=ne.stat_desc.static_tree,$=ne.stat_desc.has_stree,b=ne.stat_desc.extra_bits,ie=ne.stat_desc.extra_base,Te=ne.stat_desc.max_length,p,q,V,k,A,X,Ie=0;for(k=0;k<=R;k++)F.bl_count[k]=0;for(fe[F.heap[F.heap_max]*2+1]=0,p=F.heap_max+1;pTe&&(k=Te,Ie++),fe[q*2+1]=k,!(q>Re)&&(F.bl_count[k]++,A=0,q>=ie&&(A=b[q-ie]),X=fe[q*2],F.opt_len+=X*(k+A),$&&(F.static_len+=X*(I[q*2+1]+A)));if(Ie!==0){do{for(k=Te-1;F.bl_count[k]===0;)k--;F.bl_count[k]--,F.bl_count[k+1]+=2,F.bl_count[Te]--,Ie-=2}while(Ie>0);for(k=Te;k!==0;k--)for(q=F.bl_count[k];q!==0;)V=F.heap[--p],!(V>Re)&&(fe[V*2+1]!==k&&(F.opt_len+=(k-fe[V*2+1])*fe[V*2],fe[V*2+1]=k),q--)}}function le(F,ne,fe){var Re=new Array(R+1),I=0,$,b;for($=1;$<=R;$++)Re[$]=I=I+fe[$-1]<<1;for(b=0;b<=ne;b++){var ie=F[b*2+1];ie!==0&&(F[b*2]=Ce(Re[ie]++,ie))}}function Pe(){var F,ne,fe,Re,I,$=new Array(R+1);for(fe=0,Re=0;Re>=7;Re8?Ve(F,F.bi_buf):F.bi_valid>0&&(F.pending_buf[F.pending++]=F.bi_buf),F.bi_buf=0,F.bi_valid=0}function it(F,ne,fe,Re){We(F),Ve(F,fe),Ve(F,~fe),r.arraySet(F.pending_buf,F.window,ne,fe,F.pending),F.pending+=fe}function ht(F,ne,fe,Re){var I=ne*2,$=fe*2;return F[I]>1;b>=1;b--)be(F,fe,b);p=$;do b=F.heap[1],F.heap[1]=F.heap[F.heap_len--],be(F,fe,1),ie=F.heap[1],F.heap[--F.heap_max]=b,F.heap[--F.heap_max]=ie,fe[p*2]=fe[b*2]+fe[ie*2],F.depth[p]=(F.depth[b]>=F.depth[ie]?F.depth[b]:F.depth[ie])+1,fe[b*2+1]=fe[ie*2+1]=p,F.heap[1]=p++,be(F,fe,1);while(F.heap_len>=2);F.heap[--F.heap_max]=F.heap[1],St(F,ne),le(fe,Te,F.bl_count)}function Gt(F,ne,fe){var Re,I=-1,$,b=ne[1],ie=0,Te=7,p=4;for(b===0&&(Te=138,p=3),ne[(fe+1)*2+1]=65535,Re=0;Re<=fe;Re++)$=b,b=ne[(Re+1)*2+1],!(++ie=3&&F.bl_tree[oe[ne]*2+1]===0;ne--);return F.opt_len+=3*(ne+1)+5+5+4,ne}function ft(F,ne,fe,Re){var I;for(Ae(F,ne-257,5),Ae(F,fe-1,5),Ae(F,Re-4,4),I=0;I>>=1)if(ne&1&&F.dyn_ltree[fe*2]!==0)return t;if(F.dyn_ltree[18]!==0||F.dyn_ltree[20]!==0||F.dyn_ltree[26]!==0)return i;for(fe=32;fe0?(F.strm.data_type===a&&(F.strm.data_type=It(F)),xt(F,F.l_desc),xt(F,F.d_desc),b=Ct(F),I=F.opt_len+3+7>>>3,$=F.static_len+3+7>>>3,$<=I&&(I=$)):I=$=fe+5,fe+4<=I&&ne!==-1?Mr(F,ne,fe,Re):F.strategy===e||$===I?(Ae(F,(f<<1)+(Re?1:0),3),Ge(F,Y,ke)):(Ae(F,(d<<1)+(Re?1:0),3),ft(F,F.l_desc.max_code+1,F.d_desc.max_code+1,b+1),Ge(F,F.dyn_ltree,F.dyn_dtree)),ge(F),Re&&We(F)}function Er(F,ne,fe){return F.pending_buf[F.d_buf+F.last_lit*2]=ne>>>8&255,F.pending_buf[F.d_buf+F.last_lit*2+1]=ne&255,F.pending_buf[F.l_buf+F.last_lit]=fe&255,F.last_lit++,ne===0?F.dyn_ltree[fe*2]++:(F.matches++,ne--,F.dyn_ltree[(he[fe]+x+1)*2]++,F.dyn_dtree[ze(ne)*2]++),F.last_lit===F.lit_bufsize-1}return Oi._tr_init=Qt,Oi._tr_stored_block=Mr,Oi._tr_flush_block=$t,Oi._tr_tally=Er,Oi._tr_align=Ut,Oi}var wc,l0;function fv(){if(l0)return wc;l0=1;function r(e,t,i,a){for(var l=e&65535|0,u=e>>>16&65535|0,f=0;i!==0;){f=i>2e3?2e3:i,i-=f;do l=l+t[a++]|0,u=u+l|0;while(--f);l%=65521,u%=65521}return l|u<<16|0}return wc=r,wc}var Sc,s0;function dv(){if(s0)return Sc;s0=1;function r(){for(var i,a=[],l=0;l<256;l++){i=l;for(var u=0;u<8;u++)i=i&1?3988292384^i>>>1:i>>>1;a[l]=i}return a}var e=r();function t(i,a,l,u){var f=e,d=u+l;i^=-1;for(var h=u;h>>8^f[(i^a[h])&255];return i^-1}return Sc=t,Sc}var bc,u0;function Yc(){return u0||(u0=1,bc={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"}),bc}var c0;function Nm(){if(c0)return pn;c0=1;var r=gi(),e=Am(),t=fv(),i=dv(),a=Yc(),l=0,u=1,f=3,d=4,h=5,m=0,y=1,x=-2,w=-3,C=-5,E=-1,D=1,R=2,L=3,N=4,H=0,G=2,U=8,B=9,_=15,ee=8,te=29,oe=256,de=oe+1+te,Y=30,ke=19,xe=2*de+1,he=15,ae=3,re=258,pe=re+ae+1,we=32,j=42,J=69,Ne=73,ze=91,Ve=103,Ae=113,He=666,Ce=1,nt=2,St=3,le=4,Pe=3;function ge(p,q){return p.msg=a[q],q}function We(p){return(p<<1)-(p>4?9:0)}function it(p){for(var q=p.length;--q>=0;)p[q]=0}function ht(p){var q=p.state,V=q.pending;V>p.avail_out&&(V=p.avail_out),V!==0&&(r.arraySet(p.output,q.pending_buf,q.pending_out,V,p.next_out),p.next_out+=V,q.pending_out+=V,p.total_out+=V,p.avail_out-=V,q.pending-=V,q.pending===0&&(q.pending_out=0))}function be(p,q){e._tr_flush_block(p,p.block_start>=0?p.block_start:-1,p.strstart-p.block_start,q),p.block_start=p.strstart,ht(p.strm)}function Ge(p,q){p.pending_buf[p.pending++]=q}function xt(p,q){p.pending_buf[p.pending++]=q>>>8&255,p.pending_buf[p.pending++]=q&255}function Gt(p,q,V,k){var A=p.avail_in;return A>k&&(A=k),A===0?0:(p.avail_in-=A,r.arraySet(q,p.input,p.next_in,A,V),p.state.wrap===1?p.adler=t(p.adler,q,A,V):p.state.wrap===2&&(p.adler=i(p.adler,q,A,V)),p.next_in+=A,p.total_in+=A,A)}function je(p,q){var V=p.max_chain_length,k=p.strstart,A,X,Ie=p.prev_length,Ee=p.nice_match,De=p.strstart>p.w_size-pe?p.strstart-(p.w_size-pe):0,dt=p.window,br=p.w_mask,Nt=p.prev,ut=p.strstart+re,Xt=dt[k+Ie-1],qt=dt[k+Ie];p.prev_length>=p.good_match&&(V>>=2),Ee>p.lookahead&&(Ee=p.lookahead);do if(A=q,!(dt[A+Ie]!==qt||dt[A+Ie-1]!==Xt||dt[A]!==dt[k]||dt[++A]!==dt[k+1])){k+=2,A++;do;while(dt[++k]===dt[++A]&&dt[++k]===dt[++A]&&dt[++k]===dt[++A]&&dt[++k]===dt[++A]&&dt[++k]===dt[++A]&&dt[++k]===dt[++A]&&dt[++k]===dt[++A]&&dt[++k]===dt[++A]&&kIe){if(p.match_start=q,Ie=X,X>=Ee)break;Xt=dt[k+Ie-1],qt=dt[k+Ie]}}while((q=Nt[q&br])>De&&--V!==0);return Ie<=p.lookahead?Ie:p.lookahead}function Ct(p){var q=p.w_size,V,k,A,X,Ie;do{if(X=p.window_size-p.lookahead-p.strstart,p.strstart>=q+(q-pe)){r.arraySet(p.window,p.window,q,q,0),p.match_start-=q,p.strstart-=q,p.block_start-=q,k=p.hash_size,V=k;do A=p.head[--V],p.head[V]=A>=q?A-q:0;while(--k);k=q,V=k;do A=p.prev[--V],p.prev[V]=A>=q?A-q:0;while(--k);X+=q}if(p.strm.avail_in===0)break;if(k=Gt(p.strm,p.window,p.strstart+p.lookahead,X),p.lookahead+=k,p.lookahead+p.insert>=ae)for(Ie=p.strstart-p.insert,p.ins_h=p.window[Ie],p.ins_h=(p.ins_h<p.pending_buf_size-5&&(V=p.pending_buf_size-5);;){if(p.lookahead<=1){if(Ct(p),p.lookahead===0&&q===l)return Ce;if(p.lookahead===0)break}p.strstart+=p.lookahead,p.lookahead=0;var k=p.block_start+V;if((p.strstart===0||p.strstart>=k)&&(p.lookahead=p.strstart-k,p.strstart=k,be(p,!1),p.strm.avail_out===0)||p.strstart-p.block_start>=p.w_size-pe&&(be(p,!1),p.strm.avail_out===0))return Ce}return p.insert=0,q===d?(be(p,!0),p.strm.avail_out===0?St:le):(p.strstart>p.block_start&&(be(p,!1),p.strm.avail_out===0),Ce)}function It(p,q){for(var V,k;;){if(p.lookahead=ae&&(p.ins_h=(p.ins_h<=ae)if(k=e._tr_tally(p,p.strstart-p.match_start,p.match_length-ae),p.lookahead-=p.match_length,p.match_length<=p.max_lazy_match&&p.lookahead>=ae){p.match_length--;do p.strstart++,p.ins_h=(p.ins_h<=ae&&(p.ins_h=(p.ins_h<4096)&&(p.match_length=ae-1)),p.prev_length>=ae&&p.match_length<=p.prev_length){A=p.strstart+p.lookahead-ae,k=e._tr_tally(p,p.strstart-1-p.prev_match,p.prev_length-ae),p.lookahead-=p.prev_length-1,p.prev_length-=2;do++p.strstart<=A&&(p.ins_h=(p.ins_h<=ae&&p.strstart>0&&(A=p.strstart-1,k=Ie[A],k===Ie[++A]&&k===Ie[++A]&&k===Ie[++A])){X=p.strstart+re;do;while(k===Ie[++A]&&k===Ie[++A]&&k===Ie[++A]&&k===Ie[++A]&&k===Ie[++A]&&k===Ie[++A]&&k===Ie[++A]&&k===Ie[++A]&&Ap.lookahead&&(p.match_length=p.lookahead)}if(p.match_length>=ae?(V=e._tr_tally(p,1,p.match_length-ae),p.lookahead-=p.match_length,p.strstart+=p.match_length,p.match_length=0):(V=e._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++),V&&(be(p,!1),p.strm.avail_out===0))return Ce}return p.insert=0,q===d?(be(p,!0),p.strm.avail_out===0?St:le):p.last_lit&&(be(p,!1),p.strm.avail_out===0)?Ce:nt}function Mr(p,q){for(var V;;){if(p.lookahead===0&&(Ct(p),p.lookahead===0)){if(q===l)return Ce;break}if(p.match_length=0,V=e._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++,V&&(be(p,!1),p.strm.avail_out===0))return Ce}return p.insert=0,q===d?(be(p,!0),p.strm.avail_out===0?St:le):p.last_lit&&(be(p,!1),p.strm.avail_out===0)?Ce:nt}function Ut(p,q,V,k,A){this.good_length=p,this.max_lazy=q,this.nice_length=V,this.max_chain=k,this.func=A}var $t;$t=[new Ut(0,0,0,0,ft),new Ut(4,4,8,4,It),new Ut(4,5,16,8,It),new Ut(4,6,32,32,It),new Ut(4,4,16,16,Pt),new Ut(8,16,32,32,Pt),new Ut(8,16,128,128,Pt),new Ut(8,32,128,256,Pt),new Ut(32,128,258,1024,Pt),new Ut(32,258,258,4096,Pt)];function Er(p){p.window_size=2*p.w_size,it(p.head),p.max_lazy_match=$t[p.level].max_lazy,p.good_match=$t[p.level].good_length,p.nice_match=$t[p.level].nice_length,p.max_chain_length=$t[p.level].max_chain,p.strstart=0,p.block_start=0,p.lookahead=0,p.insert=0,p.match_length=p.prev_length=ae-1,p.match_available=0,p.ins_h=0}function F(){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=U,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 r.Buf16(xe*2),this.dyn_dtree=new r.Buf16((2*Y+1)*2),this.bl_tree=new r.Buf16((2*ke+1)*2),it(this.dyn_ltree),it(this.dyn_dtree),it(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(he+1),this.heap=new r.Buf16(2*de+1),it(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(2*de+1),it(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 ne(p){var q;return!p||!p.state?ge(p,x):(p.total_in=p.total_out=0,p.data_type=G,q=p.state,q.pending=0,q.pending_out=0,q.wrap<0&&(q.wrap=-q.wrap),q.status=q.wrap?j:Ae,p.adler=q.wrap===2?0:1,q.last_flush=l,e._tr_init(q),m)}function fe(p){var q=ne(p);return q===m&&Er(p.state),q}function Re(p,q){return!p||!p.state||p.state.wrap!==2?x:(p.state.gzhead=q,m)}function I(p,q,V,k,A,X){if(!p)return x;var Ie=1;if(q===E&&(q=6),k<0?(Ie=0,k=-k):k>15&&(Ie=2,k-=16),A<1||A>B||V!==U||k<8||k>15||q<0||q>9||X<0||X>N)return ge(p,x);k===8&&(k=9);var Ee=new F;return p.state=Ee,Ee.strm=p,Ee.wrap=Ie,Ee.gzhead=null,Ee.w_bits=k,Ee.w_size=1<h||q<0)return p?ge(p,x):x;if(k=p.state,!p.output||!p.input&&p.avail_in!==0||k.status===He&&q!==d)return ge(p,p.avail_out===0?C:x);if(k.strm=p,V=k.last_flush,k.last_flush=q,k.status===j)if(k.wrap===2)p.adler=0,Ge(k,31),Ge(k,139),Ge(k,8),k.gzhead?(Ge(k,(k.gzhead.text?1:0)+(k.gzhead.hcrc?2:0)+(k.gzhead.extra?4:0)+(k.gzhead.name?8:0)+(k.gzhead.comment?16:0)),Ge(k,k.gzhead.time&255),Ge(k,k.gzhead.time>>8&255),Ge(k,k.gzhead.time>>16&255),Ge(k,k.gzhead.time>>24&255),Ge(k,k.level===9?2:k.strategy>=R||k.level<2?4:0),Ge(k,k.gzhead.os&255),k.gzhead.extra&&k.gzhead.extra.length&&(Ge(k,k.gzhead.extra.length&255),Ge(k,k.gzhead.extra.length>>8&255)),k.gzhead.hcrc&&(p.adler=i(p.adler,k.pending_buf,k.pending,0)),k.gzindex=0,k.status=J):(Ge(k,0),Ge(k,0),Ge(k,0),Ge(k,0),Ge(k,0),Ge(k,k.level===9?2:k.strategy>=R||k.level<2?4:0),Ge(k,Pe),k.status=Ae);else{var Ie=U+(k.w_bits-8<<4)<<8,Ee=-1;k.strategy>=R||k.level<2?Ee=0:k.level<6?Ee=1:k.level===6?Ee=2:Ee=3,Ie|=Ee<<6,k.strstart!==0&&(Ie|=we),Ie+=31-Ie%31,k.status=Ae,xt(k,Ie),k.strstart!==0&&(xt(k,p.adler>>>16),xt(k,p.adler&65535)),p.adler=1}if(k.status===J)if(k.gzhead.extra){for(A=k.pending;k.gzindex<(k.gzhead.extra.length&65535)&&!(k.pending===k.pending_buf_size&&(k.gzhead.hcrc&&k.pending>A&&(p.adler=i(p.adler,k.pending_buf,k.pending-A,A)),ht(p),A=k.pending,k.pending===k.pending_buf_size));)Ge(k,k.gzhead.extra[k.gzindex]&255),k.gzindex++;k.gzhead.hcrc&&k.pending>A&&(p.adler=i(p.adler,k.pending_buf,k.pending-A,A)),k.gzindex===k.gzhead.extra.length&&(k.gzindex=0,k.status=Ne)}else k.status=Ne;if(k.status===Ne)if(k.gzhead.name){A=k.pending;do{if(k.pending===k.pending_buf_size&&(k.gzhead.hcrc&&k.pending>A&&(p.adler=i(p.adler,k.pending_buf,k.pending-A,A)),ht(p),A=k.pending,k.pending===k.pending_buf_size)){X=1;break}k.gzindexA&&(p.adler=i(p.adler,k.pending_buf,k.pending-A,A)),X===0&&(k.gzindex=0,k.status=ze)}else k.status=ze;if(k.status===ze)if(k.gzhead.comment){A=k.pending;do{if(k.pending===k.pending_buf_size&&(k.gzhead.hcrc&&k.pending>A&&(p.adler=i(p.adler,k.pending_buf,k.pending-A,A)),ht(p),A=k.pending,k.pending===k.pending_buf_size)){X=1;break}k.gzindexA&&(p.adler=i(p.adler,k.pending_buf,k.pending-A,A)),X===0&&(k.status=Ve)}else k.status=Ve;if(k.status===Ve&&(k.gzhead.hcrc?(k.pending+2>k.pending_buf_size&&ht(p),k.pending+2<=k.pending_buf_size&&(Ge(k,p.adler&255),Ge(k,p.adler>>8&255),p.adler=0,k.status=Ae)):k.status=Ae),k.pending!==0){if(ht(p),p.avail_out===0)return k.last_flush=-1,m}else if(p.avail_in===0&&We(q)<=We(V)&&q!==d)return ge(p,C);if(k.status===He&&p.avail_in!==0)return ge(p,C);if(p.avail_in!==0||k.lookahead!==0||q!==l&&k.status!==He){var De=k.strategy===R?Mr(k,q):k.strategy===L?Qt(k,q):$t[k.level].func(k,q);if((De===St||De===le)&&(k.status=He),De===Ce||De===St)return p.avail_out===0&&(k.last_flush=-1),m;if(De===nt&&(q===u?e._tr_align(k):q!==h&&(e._tr_stored_block(k,0,0,!1),q===f&&(it(k.head),k.lookahead===0&&(k.strstart=0,k.block_start=0,k.insert=0))),ht(p),p.avail_out===0))return k.last_flush=-1,m}return q!==d?m:k.wrap<=0?y:(k.wrap===2?(Ge(k,p.adler&255),Ge(k,p.adler>>8&255),Ge(k,p.adler>>16&255),Ge(k,p.adler>>24&255),Ge(k,p.total_in&255),Ge(k,p.total_in>>8&255),Ge(k,p.total_in>>16&255),Ge(k,p.total_in>>24&255)):(xt(k,p.adler>>>16),xt(k,p.adler&65535)),ht(p),k.wrap>0&&(k.wrap=-k.wrap),k.pending!==0?m:y)}function ie(p){var q;return!p||!p.state?x:(q=p.state.status,q!==j&&q!==J&&q!==Ne&&q!==ze&&q!==Ve&&q!==Ae&&q!==He?ge(p,x):(p.state=null,q===Ae?ge(p,w):m))}function Te(p,q){var V=q.length,k,A,X,Ie,Ee,De,dt,br;if(!p||!p.state||(k=p.state,Ie=k.wrap,Ie===2||Ie===1&&k.status!==j||k.lookahead))return x;for(Ie===1&&(p.adler=t(p.adler,q,V,0)),k.wrap=0,V>=k.w_size&&(Ie===0&&(it(k.head),k.strstart=0,k.block_start=0,k.insert=0),br=new r.Buf8(k.w_size),r.arraySet(br,q,V-k.w_size,k.w_size,0),q=br,V=k.w_size),Ee=p.avail_in,De=p.next_in,dt=p.input,p.avail_in=V,p.next_in=0,p.input=q,Ct(k);k.lookahead>=ae;){A=k.strstart,X=k.lookahead-(ae-1);do k.ins_h=(k.ins_h<=252?6:a>=248?5:a>=240?4:a>=224?3:a>=192?2:1;i[254]=i[254]=1,Ai.string2buf=function(u){var f,d,h,m,y,x=u.length,w=0;for(m=0;m>>6,f[y++]=128|d&63):d<65536?(f[y++]=224|d>>>12,f[y++]=128|d>>>6&63,f[y++]=128|d&63):(f[y++]=240|d>>>18,f[y++]=128|d>>>12&63,f[y++]=128|d>>>6&63,f[y++]=128|d&63);return f};function l(u,f){if(f<65534&&(u.subarray&&t||!u.subarray&&e))return String.fromCharCode.apply(null,r.shrinkBuf(u,f));for(var d="",h=0;h4){w[h++]=65533,d+=y-1;continue}for(m&=y===2?31:y===3?15:7;y>1&&d1){w[h++]=65533;continue}m<65536?w[h++]=m:(m-=65536,w[h++]=55296|m>>10&1023,w[h++]=56320|m&1023)}return l(w,h)},Ai.utf8border=function(u,f){var d;for(f=f||u.length,f>u.length&&(f=u.length),d=f-1;d>=0&&(u[d]&192)===128;)d--;return d<0||d===0?f:d+i[u[d]]>f?d:f},Ai}var kc,d0;function vv(){if(d0)return kc;d0=1;function r(){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}return kc=r,kc}var h0;function zm(){if(h0)return uo;h0=1;var r=Nm(),e=gi(),t=hv(),i=Yc(),a=vv(),l=Object.prototype.toString,u=0,f=4,d=0,h=1,m=2,y=-1,x=0,w=8;function C(L){if(!(this instanceof C))return new C(L);this.options=e.assign({level:y,method:w,chunkSize:16384,windowBits:15,memLevel:8,strategy:x,to:""},L||{});var N=this.options;N.raw&&N.windowBits>0?N.windowBits=-N.windowBits:N.gzip&&N.windowBits>0&&N.windowBits<16&&(N.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var H=r.deflateInit2(this.strm,N.level,N.method,N.windowBits,N.memLevel,N.strategy);if(H!==d)throw new Error(i[H]);if(N.header&&r.deflateSetHeader(this.strm,N.header),N.dictionary){var G;if(typeof N.dictionary=="string"?G=t.string2buf(N.dictionary):l.call(N.dictionary)==="[object ArrayBuffer]"?G=new Uint8Array(N.dictionary):G=N.dictionary,H=r.deflateSetDictionary(this.strm,G),H!==d)throw new Error(i[H]);this._dict_set=!0}}C.prototype.push=function(L,N){var H=this.strm,G=this.options.chunkSize,U,B;if(this.ended)return!1;B=N===~~N?N:N===!0?f:u,typeof L=="string"?H.input=t.string2buf(L):l.call(L)==="[object ArrayBuffer]"?H.input=new Uint8Array(L):H.input=L,H.next_in=0,H.avail_in=H.input.length;do{if(H.avail_out===0&&(H.output=new e.Buf8(G),H.next_out=0,H.avail_out=G),U=r.deflate(H,B),U!==h&&U!==d)return this.onEnd(U),this.ended=!0,!1;(H.avail_out===0||H.avail_in===0&&(B===f||B===m))&&(this.options.to==="string"?this.onData(t.buf2binstring(e.shrinkBuf(H.output,H.next_out))):this.onData(e.shrinkBuf(H.output,H.next_out)))}while((H.avail_in>0||H.avail_out===0)&&U!==h);return B===f?(U=r.deflateEnd(this.strm),this.onEnd(U),this.ended=!0,U===d):(B===m&&(this.onEnd(d),H.avail_out=0),!0)},C.prototype.onData=function(L){this.chunks.push(L)},C.prototype.onEnd=function(L){L===d&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=e.flattenChunks(this.chunks)),this.chunks=[],this.err=L,this.msg=this.strm.msg};function E(L,N){var H=new C(N);if(H.push(L,!0),H.err)throw H.msg||i[H.err];return H.result}function D(L,N){return N=N||{},N.raw=!0,E(L,N)}function R(L,N){return N=N||{},N.gzip=!0,E(L,N)}return uo.Deflate=C,uo.deflate=E,uo.deflateRaw=D,uo.gzip=R,uo}var co={},_r={},Cc,v0;function jm(){if(v0)return Cc;v0=1;var r=30,e=12;return Cc=function(i,a){var l,u,f,d,h,m,y,x,w,C,E,D,R,L,N,H,G,U,B,_,ee,te,oe,de,Y;l=i.state,u=i.next_in,de=i.input,f=u+(i.avail_in-5),d=i.next_out,Y=i.output,h=d-(a-i.avail_out),m=d+(i.avail_out-257),y=l.dmax,x=l.wsize,w=l.whave,C=l.wnext,E=l.window,D=l.hold,R=l.bits,L=l.lencode,N=l.distcode,H=(1<>>24,D>>>=B,R-=B,B=U>>>16&255,B===0)Y[d++]=U&65535;else if(B&16){_=U&65535,B&=15,B&&(R>>=B,R-=B),R<15&&(D+=de[u++]<>>24,D>>>=B,R-=B,B=U>>>16&255,B&16){if(ee=U&65535,B&=15,Ry){i.msg="invalid distance too far back",l.mode=r;break e}if(D>>>=B,R-=B,B=d-h,ee>B){if(B=ee-B,B>w&&l.sane){i.msg="invalid distance too far back",l.mode=r;break e}if(te=0,oe=E,C===0){if(te+=x-B,B<_){_-=B;do Y[d++]=E[te++];while(--B);te=d-ee,oe=Y}}else if(C2;)Y[d++]=oe[te++],Y[d++]=oe[te++],Y[d++]=oe[te++],_-=3;_&&(Y[d++]=oe[te++],_>1&&(Y[d++]=oe[te++]))}else{te=d-ee;do Y[d++]=Y[te++],Y[d++]=Y[te++],Y[d++]=Y[te++],_-=3;while(_>2);_&&(Y[d++]=Y[te++],_>1&&(Y[d++]=Y[te++]))}}else if((B&64)===0){U=N[(U&65535)+(D&(1<>3,u-=_,R-=_<<3,D&=(1<=1&&Ne[_]===0;_--);if(ee>_&&(ee=_),_===0)return D[R++]=1<<24|64<<16|0,D[R++]=1<<24|64<<16|0,N.bits=1,0;for(B=1;B<_&&Ne[B]===0;B++);for(ee0&&(x===a||_!==1))return-1;for(ze[1]=0,G=1;Gt||x===u&&Y>i)return 1;for(;;){He=G-oe,L[U]J?(Ce=Ve[Ae+L[U]],nt=we[j+L[U]]):(Ce=96,nt=0),xe=1<>oe)+he]=He<<24|Ce<<16|nt|0;while(he!==0);for(xe=1<>=1;if(xe!==0?(ke&=xe-1,ke+=xe):ke=0,U++,--Ne[G]===0){if(G===_)break;G=w[C+L[U]]}if(G>ee&&(ke&re)!==ae){for(oe===0&&(oe=ee),pe+=B,te=G-oe,de=1<t||x===u&&Y>i)return 1;ae=ke&re,D[ae]=ee<<24|te<<16|pe-R|0}}return ke!==0&&(D[pe+ke]=G-oe<<24|64<<16|0),N.bits=ee,0},Fc}var g0;function Im(){if(g0)return _r;g0=1;var r=gi(),e=fv(),t=dv(),i=jm(),a=Mm(),l=0,u=1,f=2,d=4,h=5,m=6,y=0,x=1,w=2,C=-2,E=-3,D=-4,R=-5,L=8,N=1,H=2,G=3,U=4,B=5,_=6,ee=7,te=8,oe=9,de=10,Y=11,ke=12,xe=13,he=14,ae=15,re=16,pe=17,we=18,j=19,J=20,Ne=21,ze=22,Ve=23,Ae=24,He=25,Ce=26,nt=27,St=28,le=29,Pe=30,ge=31,We=32,it=852,ht=592,be=15,Ge=be;function xt(I){return(I>>>24&255)+(I>>>8&65280)+((I&65280)<<8)+((I&255)<<24)}function Gt(){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 r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function je(I){var $;return!I||!I.state?C:($=I.state,I.total_in=I.total_out=$.total=0,I.msg="",$.wrap&&(I.adler=$.wrap&1),$.mode=N,$.last=0,$.havedict=0,$.dmax=32768,$.head=null,$.hold=0,$.bits=0,$.lencode=$.lendyn=new r.Buf32(it),$.distcode=$.distdyn=new r.Buf32(ht),$.sane=1,$.back=-1,y)}function Ct(I){var $;return!I||!I.state?C:($=I.state,$.wsize=0,$.whave=0,$.wnext=0,je(I))}function ft(I,$){var b,ie;return!I||!I.state||(ie=I.state,$<0?(b=0,$=-$):(b=($>>4)+1,$<48&&($&=15)),$&&($<8||$>15))?C:(ie.window!==null&&ie.wbits!==$&&(ie.window=null),ie.wrap=b,ie.wbits=$,Ct(I))}function It(I,$){var b,ie;return I?(ie=new Gt,I.state=ie,ie.window=null,b=ft(I,$),b!==y&&(I.state=null),b):C}function Pt(I){return It(I,Ge)}var Qt=!0,Mr,Ut;function $t(I){if(Qt){var $;for(Mr=new r.Buf32(512),Ut=new r.Buf32(32),$=0;$<144;)I.lens[$++]=8;for(;$<256;)I.lens[$++]=9;for(;$<280;)I.lens[$++]=7;for(;$<288;)I.lens[$++]=8;for(a(u,I.lens,0,288,Mr,0,I.work,{bits:9}),$=0;$<32;)I.lens[$++]=5;a(f,I.lens,0,32,Ut,0,I.work,{bits:5}),Qt=!1}I.lencode=Mr,I.lenbits=9,I.distcode=Ut,I.distbits=5}function Er(I,$,b,ie){var Te,p=I.state;return p.window===null&&(p.wsize=1<=p.wsize?(r.arraySet(p.window,$,b-p.wsize,p.wsize,0),p.wnext=0,p.whave=p.wsize):(Te=p.wsize-p.wnext,Te>ie&&(Te=ie),r.arraySet(p.window,$,b-ie,Te,p.wnext),ie-=Te,ie?(r.arraySet(p.window,$,b-ie,ie,0),p.wnext=ie,p.whave=p.wsize):(p.wnext+=Te,p.wnext===p.wsize&&(p.wnext=0),p.whave>>8&255,b.check=t(b.check,tr,2,0),A=0,X=0,b.mode=H;break}if(b.flags=0,b.head&&(b.head.done=!1),!(b.wrap&1)||(((A&255)<<8)+(A>>8))%31){I.msg="incorrect header check",b.mode=Pe;break}if((A&15)!==L){I.msg="unknown compression method",b.mode=Pe;break}if(A>>>=4,X-=4,Kt=(A&15)+8,b.wbits===0)b.wbits=Kt;else if(Kt>b.wbits){I.msg="invalid window size",b.mode=Pe;break}b.dmax=1<>8&1),b.flags&512&&(tr[0]=A&255,tr[1]=A>>>8&255,b.check=t(b.check,tr,2,0)),A=0,X=0,b.mode=G;case G:for(;X<32;){if(V===0)break e;V--,A+=ie[p++]<>>8&255,tr[2]=A>>>16&255,tr[3]=A>>>24&255,b.check=t(b.check,tr,4,0)),A=0,X=0,b.mode=U;case U:for(;X<16;){if(V===0)break e;V--,A+=ie[p++]<>8),b.flags&512&&(tr[0]=A&255,tr[1]=A>>>8&255,b.check=t(b.check,tr,2,0)),A=0,X=0,b.mode=B;case B:if(b.flags&1024){for(;X<16;){if(V===0)break e;V--,A+=ie[p++]<>>8&255,b.check=t(b.check,tr,2,0)),A=0,X=0}else b.head&&(b.head.extra=null);b.mode=_;case _:if(b.flags&1024&&(De=b.length,De>V&&(De=V),De&&(b.head&&(Kt=b.head.extra_len-b.length,b.head.extra||(b.head.extra=new Array(b.head.extra_len)),r.arraySet(b.head.extra,ie,p,De,Kt)),b.flags&512&&(b.check=t(b.check,ie,De,p)),V-=De,p+=De,b.length-=De),b.length))break e;b.length=0,b.mode=ee;case ee:if(b.flags&2048){if(V===0)break e;De=0;do Kt=ie[p+De++],b.head&&Kt&&b.length<65536&&(b.head.name+=String.fromCharCode(Kt));while(Kt&&De>9&1,b.head.done=!0),I.adler=b.check=0,b.mode=ke;break;case de:for(;X<32;){if(V===0)break e;V--,A+=ie[p++]<>>=X&7,X-=X&7,b.mode=nt;break}for(;X<3;){if(V===0)break e;V--,A+=ie[p++]<>>=1,X-=1,A&3){case 0:b.mode=he;break;case 1:if($t(b),b.mode=J,$===m){A>>>=2,X-=2;break e}break;case 2:b.mode=pe;break;case 3:I.msg="invalid block type",b.mode=Pe}A>>>=2,X-=2;break;case he:for(A>>>=X&7,X-=X&7;X<32;){if(V===0)break e;V--,A+=ie[p++]<>>16^65535)){I.msg="invalid stored block lengths",b.mode=Pe;break}if(b.length=A&65535,A=0,X=0,b.mode=ae,$===m)break e;case ae:b.mode=re;case re:if(De=b.length,De){if(De>V&&(De=V),De>k&&(De=k),De===0)break e;r.arraySet(Te,ie,p,De,q),V-=De,p+=De,k-=De,q+=De,b.length-=De;break}b.mode=ke;break;case pe:for(;X<14;){if(V===0)break e;V--,A+=ie[p++]<>>=5,X-=5,b.ndist=(A&31)+1,A>>>=5,X-=5,b.ncode=(A&15)+4,A>>>=4,X-=4,b.nlen>286||b.ndist>30){I.msg="too many length or distance symbols",b.mode=Pe;break}b.have=0,b.mode=we;case we:for(;b.have>>=3,X-=3}for(;b.have<19;)b.lens[Co[b.have++]]=0;if(b.lencode=b.lendyn,b.lenbits=7,dr={bits:b.lenbits},Tr=a(l,b.lens,0,19,b.lencode,0,b.work,dr),b.lenbits=dr.bits,Tr){I.msg="invalid code lengths set",b.mode=Pe;break}b.have=0,b.mode=j;case j:for(;b.have>>24,Xt=Nt>>>16&255,qt=Nt&65535,!(ut<=X);){if(V===0)break e;V--,A+=ie[p++]<>>=ut,X-=ut,b.lens[b.have++]=qt;else{if(qt===16){for(Ir=ut+2;X>>=ut,X-=ut,b.have===0){I.msg="invalid bit length repeat",b.mode=Pe;break}Kt=b.lens[b.have-1],De=3+(A&3),A>>>=2,X-=2}else if(qt===17){for(Ir=ut+3;X>>=ut,X-=ut,Kt=0,De=3+(A&7),A>>>=3,X-=3}else{for(Ir=ut+7;X>>=ut,X-=ut,Kt=0,De=11+(A&127),A>>>=7,X-=7}if(b.have+De>b.nlen+b.ndist){I.msg="invalid bit length repeat",b.mode=Pe;break}for(;De--;)b.lens[b.have++]=Kt}}if(b.mode===Pe)break;if(b.lens[256]===0){I.msg="invalid code -- missing end-of-block",b.mode=Pe;break}if(b.lenbits=9,dr={bits:b.lenbits},Tr=a(u,b.lens,0,b.nlen,b.lencode,0,b.work,dr),b.lenbits=dr.bits,Tr){I.msg="invalid literal/lengths set",b.mode=Pe;break}if(b.distbits=6,b.distcode=b.distdyn,dr={bits:b.distbits},Tr=a(f,b.lens,b.nlen,b.ndist,b.distcode,0,b.work,dr),b.distbits=dr.bits,Tr){I.msg="invalid distances set",b.mode=Pe;break}if(b.mode=J,$===m)break e;case J:b.mode=Ne;case Ne:if(V>=6&&k>=258){I.next_out=q,I.avail_out=k,I.next_in=p,I.avail_in=V,b.hold=A,b.bits=X,i(I,Ee),q=I.next_out,Te=I.output,k=I.avail_out,p=I.next_in,ie=I.input,V=I.avail_in,A=b.hold,X=b.bits,b.mode===ke&&(b.back=-1);break}for(b.back=0;Nt=b.lencode[A&(1<>>24,Xt=Nt>>>16&255,qt=Nt&65535,!(ut<=X);){if(V===0)break e;V--,A+=ie[p++]<>er)],ut=Nt>>>24,Xt=Nt>>>16&255,qt=Nt&65535,!(er+ut<=X);){if(V===0)break e;V--,A+=ie[p++]<>>=er,X-=er,b.back+=er}if(A>>>=ut,X-=ut,b.back+=ut,b.length=qt,Xt===0){b.mode=Ce;break}if(Xt&32){b.back=-1,b.mode=ke;break}if(Xt&64){I.msg="invalid literal/length code",b.mode=Pe;break}b.extra=Xt&15,b.mode=ze;case ze:if(b.extra){for(Ir=b.extra;X>>=b.extra,X-=b.extra,b.back+=b.extra}b.was=b.length,b.mode=Ve;case Ve:for(;Nt=b.distcode[A&(1<>>24,Xt=Nt>>>16&255,qt=Nt&65535,!(ut<=X);){if(V===0)break e;V--,A+=ie[p++]<>er)],ut=Nt>>>24,Xt=Nt>>>16&255,qt=Nt&65535,!(er+ut<=X);){if(V===0)break e;V--,A+=ie[p++]<>>=er,X-=er,b.back+=er}if(A>>>=ut,X-=ut,b.back+=ut,Xt&64){I.msg="invalid distance code",b.mode=Pe;break}b.offset=qt,b.extra=Xt&15,b.mode=Ae;case Ae:if(b.extra){for(Ir=b.extra;X>>=b.extra,X-=b.extra,b.back+=b.extra}if(b.offset>b.dmax){I.msg="invalid distance too far back",b.mode=Pe;break}b.mode=He;case He:if(k===0)break e;if(De=Ee-k,b.offset>De){if(De=b.offset-De,De>b.whave&&b.sane){I.msg="invalid distance too far back",b.mode=Pe;break}De>b.wnext?(De-=b.wnext,dt=b.wsize-De):dt=b.wnext-De,De>b.length&&(De=b.length),br=b.window}else br=Te,dt=q-b.offset,De=b.length;De>k&&(De=k),k-=De,b.length-=De;do Te[q++]=br[dt++];while(--De);b.length===0&&(b.mode=Ne);break;case Ce:if(k===0)break e;Te[q++]=b.length,k--,b.mode=Ne;break;case nt:if(b.wrap){for(;X<32;){if(V===0)break e;V--,A|=ie[p++]<=0&&x.windowBits<16&&(x.windowBits=-x.windowBits,x.windowBits===0&&(x.windowBits=-15)),x.windowBits>=0&&x.windowBits<16&&!(y&&y.windowBits)&&(x.windowBits+=32),x.windowBits>15&&x.windowBits<48&&(x.windowBits&15)===0&&(x.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var w=r.inflateInit2(this.strm,x.windowBits);if(w!==i.Z_OK)throw new Error(a[w]);if(this.header=new u,r.inflateGetHeader(this.strm,this.header),x.dictionary&&(typeof x.dictionary=="string"?x.dictionary=t.string2buf(x.dictionary):f.call(x.dictionary)==="[object ArrayBuffer]"&&(x.dictionary=new Uint8Array(x.dictionary)),x.raw&&(w=r.inflateSetDictionary(this.strm,x.dictionary),w!==i.Z_OK)))throw new Error(a[w])}d.prototype.push=function(y,x){var w=this.strm,C=this.options.chunkSize,E=this.options.dictionary,D,R,L,N,H,G=!1;if(this.ended)return!1;R=x===~~x?x:x===!0?i.Z_FINISH:i.Z_NO_FLUSH,typeof y=="string"?w.input=t.binstring2buf(y):f.call(y)==="[object ArrayBuffer]"?w.input=new Uint8Array(y):w.input=y,w.next_in=0,w.avail_in=w.input.length;do{if(w.avail_out===0&&(w.output=new e.Buf8(C),w.next_out=0,w.avail_out=C),D=r.inflate(w,i.Z_NO_FLUSH),D===i.Z_NEED_DICT&&E&&(D=r.inflateSetDictionary(this.strm,E)),D===i.Z_BUF_ERROR&&G===!0&&(D=i.Z_OK,G=!1),D!==i.Z_STREAM_END&&D!==i.Z_OK)return this.onEnd(D),this.ended=!0,!1;w.next_out&&(w.avail_out===0||D===i.Z_STREAM_END||w.avail_in===0&&(R===i.Z_FINISH||R===i.Z_SYNC_FLUSH))&&(this.options.to==="string"?(L=t.utf8border(w.output,w.next_out),N=w.next_out-L,H=t.buf2string(w.output,L),w.next_out=N,w.avail_out=C-N,N&&e.arraySet(w.output,w.output,L,N,0),this.onData(H)):this.onData(e.shrinkBuf(w.output,w.next_out))),w.avail_in===0&&w.avail_out===0&&(G=!0)}while((w.avail_in>0||w.avail_out===0)&&D!==i.Z_STREAM_END);return D===i.Z_STREAM_END&&(R=i.Z_FINISH),R===i.Z_FINISH?(D=r.inflateEnd(this.strm),this.onEnd(D),this.ended=!0,D===i.Z_OK):(R===i.Z_SYNC_FLUSH&&(this.onEnd(i.Z_OK),w.avail_out=0),!0)},d.prototype.onData=function(y){this.chunks.push(y)},d.prototype.onEnd=function(y){y===i.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=e.flattenChunks(this.chunks)),this.chunks=[],this.err=y,this.msg=this.strm.msg};function h(y,x){var w=new d(x);if(w.push(y,!0),w.err)throw w.msg||a[w.err];return w.result}function m(y,x){return x=x||{},x.raw=!0,h(y,x)}return co.Inflate=d,co.inflate=h,co.inflateRaw=m,co.ungzip=h,co}var Tc,w0;function Lm(){if(w0)return Tc;w0=1;var r=gi().assign,e=zm(),t=Um(),i=pv(),a={};return r(a,e,t,i),Tc=a,Tc}var Vm=Lm();const ys=Qg(Vm);var S0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ha=new Uint8Array(256);for(var Wl=0;Wl>4,h[a++]=(u&15)<<4|f>>2,h[a++]=(f&3)<<6|d&63;return h},qm=function(r){for(var e="",t=0;ti)throw new Error(ir(e)+" must be at least "+t+" and at most "+i+", but was actually "+r)},gn=function(r,e,t,i){W(r,e,["number","undefined"]),typeof r=="number"&&Wr(r,e,t,i)},yv=function(r,e,t){if(W(r,e,["number"]),r%t!==0)throw new Error(ir(e)+" must be a multiple of "+t+", but was actually "+r)},gy=function(r,e){if(!Number.isInteger(r))throw new Error(ir(e)+" must be an integer, but was actually "+r)},ws=function(r,e){if(![1,0].includes(Math.sign(r)))throw new Error(ir(e)+" must be a positive number or 0, but was actually "+r)},rt=new Uint16Array(256);for(var Hl=0;Hl<256;Hl++)rt[Hl]=Hl;rt[22]=et("");rt[24]=et("˘");rt[25]=et("ˇ");rt[26]=et("ˆ");rt[27]=et("˙");rt[28]=et("˝");rt[29]=et("˛");rt[30]=et("˚");rt[31]=et("˜");rt[127]=et("�");rt[128]=et("•");rt[129]=et("†");rt[130]=et("‡");rt[131]=et("…");rt[132]=et("—");rt[133]=et("–");rt[134]=et("ƒ");rt[135]=et("⁄");rt[136]=et("‹");rt[137]=et("›");rt[138]=et("−");rt[139]=et("‰");rt[140]=et("„");rt[141]=et("“");rt[142]=et("”");rt[143]=et("‘");rt[144]=et("’");rt[145]=et("‚");rt[146]=et("™");rt[147]=et("fi");rt[148]=et("fl");rt[149]=et("Ł");rt[150]=et("Œ");rt[151]=et("Š");rt[152]=et("Ÿ");rt[153]=et("Ž");rt[154]=et("ı");rt[155]=et("ł");rt[156]=et("œ");rt[157]=et("š");rt[158]=et("ž");rt[159]=et("�");rt[160]=et("€");rt[173]=et("�");var xv=function(r){for(var e=new Array(r.length),t=0,i=r.length;t=T.ExclamationPoint&&r<=T.Tilde&&!$c[r]},T0={},R0=new Map,P=(function(r){ye(e,r);function e(t,i){var a=this;if(t!==T0)throw new Qc("PDFName");a=r.call(this)||this;for(var l="/",u=0,f=i.length;u=T.Zero&&h<=T.Nine||h>=T.a&&h<=T.f||h>=T.A&&h<=T.F?(i+=d,(i.length===2||!(m>="0"&&m<="9"||m>="a"&&m<="f"||m>="A"&&m<="F"))&&(l(parseInt(i,16)),i="")):l(h):h===T.Hash?a=!0:l(h)}return new Uint8Array(t)},e.prototype.decodeText=function(){var t=this.asBytes();return String.fromCharCode.apply(String,Array.from(t))},e.prototype.asString=function(){return this.encodedName},e.prototype.value=function(){return this.encodedName},e.prototype.clone=function(){return this},e.prototype.toString=function(){return this.encodedName},e.prototype.sizeInBytes=function(){return this.encodedName.length},e.prototype.copyBytesInto=function(t,i){return i+=pr(this.encodedName,t,i),this.encodedName.length},e.of=function(t){var i=zy(t),a=R0.get(i);return a||(a=new e(T0,i),R0.set(i,a)),a},e.Length=e.of("Length"),e.FlateDecode=e.of("FlateDecode"),e.Resources=e.of("Resources"),e.Font=e.of("Font"),e.XObject=e.of("XObject"),e.ExtGState=e.of("ExtGState"),e.Contents=e.of("Contents"),e.Type=e.of("Type"),e.Parent=e.of("Parent"),e.MediaBox=e.of("MediaBox"),e.Page=e.of("Page"),e.Annots=e.of("Annots"),e.TrimBox=e.of("TrimBox"),e.ArtBox=e.of("ArtBox"),e.BleedBox=e.of("BleedBox"),e.CropBox=e.of("CropBox"),e.Rotate=e.of("Rotate"),e.Title=e.of("Title"),e.Author=e.of("Author"),e.Subject=e.of("Subject"),e.Creator=e.of("Creator"),e.Keywords=e.of("Keywords"),e.Producer=e.of("Producer"),e.CreationDate=e.of("CreationDate"),e.ModDate=e.of("ModDate"),e})(Fr),My=(function(r){ye(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.asNull=function(){return null},e.prototype.clone=function(){return this},e.prototype.toString=function(){return"null"},e.prototype.sizeInBytes=function(){return 4},e.prototype.copyBytesInto=function(t,i){return t[i++]=T.n,t[i++]=T.u,t[i++]=T.l,t[i++]=T.l,4},e})(Fr);const jr=new My;var ot=(function(r){ye(e,r);function e(t,i){var a=r.call(this)||this;return a.dict=t,a.context=i,a}return e.prototype.keys=function(){return Array.from(this.dict.keys())},e.prototype.values=function(){return Array.from(this.dict.values())},e.prototype.entries=function(){return Array.from(this.dict.entries())},e.prototype.set=function(t,i){this.dict.set(t,i)},e.prototype.get=function(t,i){i===void 0&&(i=!1);var a=this.dict.get(t);if(!(a===jr&&!i))return a},e.prototype.has=function(t){var i=this.dict.get(t);return i!==void 0&&i!==jr},e.prototype.lookupMaybe=function(t){for(var i,a=[],l=1;lthis.largestObjectNumber&&(this.largestObjectNumber=e.objectNumber)},r.prototype.nextRef=function(){return this.largestObjectNumber+=1,Et.of(this.largestObjectNumber)},r.prototype.register=function(e){var t=this.nextRef();return this.assign(t,e),t},r.prototype.delete=function(e){return this.indirectObjects.delete(e)},r.prototype.lookupMaybe=function(e){for(var t=[],i=1;ithis.largestObjectNumber&&(this.largestObjectNumber=e.objectNumber)},r.prototype.nextRef=function(){return this.largestObjectNumber+=1,Rt.of(this.largestObjectNumber)},r.prototype.register=function(e){var t=this.nextRef();return this.assign(t,e),t},r.prototype.delete=function(e){return this.indirectObjects.delete(e)},r.prototype.lookupMaybe=function(e){for(var t=[],i=1;i1?(this.subsections.push([e]),this.chunkIdx+=1,this.chunkLength=1):(t.push(e),this.chunkLength+=1)},r.create=function(){return new r({ref:Et.of(0,65535),offset:0,deleted:!0})},r.createEmpty=function(){return new r},r})(),tf=(function(){function r(e){this.lastXRefOffset=String(e)}return r.prototype.toString=function(){return`startxref +`;for(var l=0,u=a.length;l1?(this.subsections.push([e]),this.chunkIdx+=1,this.chunkLength=1):(t.push(e),this.chunkLength+=1)},r.create=function(){return new r({ref:Rt.of(0,65535),offset:0,deleted:!0})},r.createEmpty=function(){return new r},r})(),tf=(function(){function r(e){this.lastXRefOffset=String(e)}return r.prototype.toString=function(){return`startxref `+this.lastXRefOffset+` -%%EOF`},r.prototype.sizeInBytes=function(){return 16+this.lastXRefOffset.length},r.prototype.copyBytesInto=function(e,t){var i=t;return e[t++]=T.s,e[t++]=T.t,e[t++]=T.a,e[t++]=T.r,e[t++]=T.t,e[t++]=T.x,e[t++]=T.r,e[t++]=T.e,e[t++]=T.f,e[t++]=T.Newline,t+=hr(this.lastXRefOffset,e,t),e[t++]=T.Newline,e[t++]=T.Percent,e[t++]=T.Percent,e[t++]=T.E,e[t++]=T.O,e[t++]=T.F,t-i},r.forLastCrossRefSectionOffset=function(e){return new r(e)},r})(),Uy=(function(){function r(e){this.dict=e}return r.prototype.toString=function(){return`trailer -`+this.dict.toString()},r.prototype.sizeInBytes=function(){return 8+this.dict.sizeInBytes()},r.prototype.copyBytesInto=function(e,t){var i=t;return e[t++]=T.t,e[t++]=T.r,e[t++]=T.a,e[t++]=T.i,e[t++]=T.l,e[t++]=T.e,e[t++]=T.r,e[t++]=T.Newline,t+=this.dict.copyBytesInto(e,t),t-i},r.of=function(e){return new r(e)},r})(),bv=(function(r){ye(e,r);function e(t,i,a){a===void 0&&(a=!0);var l=r.call(this,t.obj({}),a)||this;return l.objects=i,l.offsets=l.computeObjectOffsets(),l.offsetsString=l.computeOffsetsString(),l.dict.set(P.of("Type"),P.of("ObjStm")),l.dict.set(P.of("N"),_e.of(l.objects.length)),l.dict.set(P.of("First"),_e.of(l.offsetsString.length)),l}return e.prototype.getObjectsCount=function(){return this.objects.length},e.prototype.clone=function(t){return e.withContextAndObjects(t||this.dict.context,this.objects.slice(),this.encode)},e.prototype.getContentsString=function(){for(var t=this.offsetsString,i=0,a=this.objects.length;i1&&(u.push(f),u.push(m.ref.objectNumber),f=0),f+=1}return u.push(f),u},l.computeEntryTuples=function(){for(var u=new Array(l.entries.length),f=0,d=l.entries.length;ff[0]&&(f[0]=C),E>f[1]&&(f[1]=E),D>f[2]&&(f[2]=D)}return f},l.entries=i||[],l.entryTuplesCache=In.populatedBy(l.computeEntryTuples),l.maxByteWidthsCache=In.populatedBy(l.computeMaxEntryByteWidths),l.indexCache=In.populatedBy(l.computeIndex),t.set(P.of("Type"),P.of("XRef")),l}return e.prototype.addDeletedEntry=function(t,i){var a=si.Deleted;this.entries.push({type:a,ref:t,nextFreeObjectNumber:i}),this.entryTuplesCache.invalidate(),this.maxByteWidthsCache.invalidate(),this.indexCache.invalidate(),this.contentsCache.invalidate()},e.prototype.addUncompressedEntry=function(t,i){var a=si.Uncompressed;this.entries.push({type:a,ref:t,offset:i}),this.entryTuplesCache.invalidate(),this.maxByteWidthsCache.invalidate(),this.indexCache.invalidate(),this.contentsCache.invalidate()},e.prototype.addCompressedEntry=function(t,i,a){var l=si.Compressed;this.entries.push({type:l,ref:t,objectStreamRef:i,index:a}),this.entryTuplesCache.invalidate(),this.maxByteWidthsCache.invalidate(),this.indexCache.invalidate(),this.contentsCache.invalidate()},e.prototype.clone=function(t){var i=this,a=i.dict,l=i.entries,u=i.encode;return e.of(a.clone(t),l.slice(),u)},e.prototype.getContentsString=function(){for(var t=this.entryTuplesCache.access(),i=this.maxByteWidthsCache.access(),a="",l=0,u=t.length;l=0;C--)a+=(y[C]||0).toString(2);for(var C=i[1]-1;C>=0;C--)a+=(x[C]||0).toString(2);for(var C=i[2]-1;C>=0;C--)a+=(w[C]||0).toString(2)}return a},e.prototype.getUnencodedContents=function(){for(var t=this.entryTuplesCache.access(),i=this.maxByteWidthsCache.access(),a=new Uint8Array(this.getUnencodedContentsSize()),l=0,u=0,f=t.length;u=0;E--)a[l++]=x[E]||0;for(var E=i[1]-1;E>=0;E--)a[l++]=w[E]||0;for(var E=i[2]-1;E>=0;E--)a[l++]=C[E]||0}return a},e.prototype.getUnencodedContentsSize=function(){var t=this.maxByteWidthsCache.access(),i=bm(t);return i*this.entries.length},e.prototype.updateDict=function(){r.prototype.updateDict.call(this);var t=this.maxByteWidthsCache.access(),i=this.indexCache.access(),a=this.dict.context;this.dict.set(P.of("W"),a.obj(t)),this.dict.set(P.of("Index"),a.obj(i))},e.create=function(t,i){i===void 0&&(i=!0);var a=new e(t,[],i);return a.addDeletedEntry(Et.of(0,65535),0),a},e.of=function(t,i,a){return a===void 0&&(a=!0),new e(t,i,a)},e})(ef),Vy=(function(r){ye(e,r);function e(t,i,a,l){var u=r.call(this,t,i)||this;return u.encodeStreams=a,u.objectsPerStream=l,u}return e.prototype.computeBufferSize=function(){return at(this,void 0,void 0,function(){var t,i,a,l,u,f,d,h,C,E,m,R,y,x,D,w,C,E,D,R,L,z,q,H;return lt(this,function(M){switch(M.label){case 0:t=this.context.largestObjectNumber+1,i=Ss.forVersion(1,7),a=i.sizeInBytes()+2,l=Ly.create(this.createTrailerDict(),this.encodeStreams),u=[],f=[],d=[],h=this.context.enumerateIndirectObjects(),C=0,E=h.length,M.label=1;case 1:return C"},e.prototype.sizeInBytes=function(){return this.value.length+2},e.prototype.copyBytesInto=function(t,i){return t[i++]=T.LessThan,i+=hr(this.value,t,i),t[i++]=T.GreaterThan,this.value.length+2},e.of=function(t){return new e(t)},e.fromText=function(t){for(var i=Pm(t),a="",l=0,u=i.length;l1&&(u.push(f),u.push(m.ref.objectNumber),f=0),f+=1}return u.push(f),u},l.computeEntryTuples=function(){for(var u=new Array(l.entries.length),f=0,d=l.entries.length;ff[0]&&(f[0]=C),E>f[1]&&(f[1]=E),D>f[2]&&(f[2]=D)}return f},l.entries=i||[],l.entryTuplesCache=In.populatedBy(l.computeEntryTuples),l.maxByteWidthsCache=In.populatedBy(l.computeMaxEntryByteWidths),l.indexCache=In.populatedBy(l.computeIndex),t.set(P.of("Type"),P.of("XRef")),l}return e.prototype.addDeletedEntry=function(t,i){var a=si.Deleted;this.entries.push({type:a,ref:t,nextFreeObjectNumber:i}),this.entryTuplesCache.invalidate(),this.maxByteWidthsCache.invalidate(),this.indexCache.invalidate(),this.contentsCache.invalidate()},e.prototype.addUncompressedEntry=function(t,i){var a=si.Uncompressed;this.entries.push({type:a,ref:t,offset:i}),this.entryTuplesCache.invalidate(),this.maxByteWidthsCache.invalidate(),this.indexCache.invalidate(),this.contentsCache.invalidate()},e.prototype.addCompressedEntry=function(t,i,a){var l=si.Compressed;this.entries.push({type:l,ref:t,objectStreamRef:i,index:a}),this.entryTuplesCache.invalidate(),this.maxByteWidthsCache.invalidate(),this.indexCache.invalidate(),this.contentsCache.invalidate()},e.prototype.clone=function(t){var i=this,a=i.dict,l=i.entries,u=i.encode;return e.of(a.clone(t),l.slice(),u)},e.prototype.getContentsString=function(){for(var t=this.entryTuplesCache.access(),i=this.maxByteWidthsCache.access(),a="",l=0,u=t.length;l=0;C--)a+=(y[C]||0).toString(2);for(var C=i[1]-1;C>=0;C--)a+=(x[C]||0).toString(2);for(var C=i[2]-1;C>=0;C--)a+=(w[C]||0).toString(2)}return a},e.prototype.getUnencodedContents=function(){for(var t=this.entryTuplesCache.access(),i=this.maxByteWidthsCache.access(),a=new Uint8Array(this.getUnencodedContentsSize()),l=0,u=0,f=t.length;u=0;E--)a[l++]=x[E]||0;for(var E=i[1]-1;E>=0;E--)a[l++]=w[E]||0;for(var E=i[2]-1;E>=0;E--)a[l++]=C[E]||0}return a},e.prototype.getUnencodedContentsSize=function(){var t=this.maxByteWidthsCache.access(),i=bm(t);return i*this.entries.length},e.prototype.updateDict=function(){r.prototype.updateDict.call(this);var t=this.maxByteWidthsCache.access(),i=this.indexCache.access(),a=this.dict.context;this.dict.set(P.of("W"),a.obj(t)),this.dict.set(P.of("Index"),a.obj(i))},e.create=function(t,i){i===void 0&&(i=!0);var a=new e(t,[],i);return a.addDeletedEntry(Rt.of(0,65535),0),a},e.of=function(t,i,a){return a===void 0&&(a=!0),new e(t,i,a)},e})(ef),Vy=(function(r){ye(e,r);function e(t,i,a,l){var u=r.call(this,t,i)||this;return u.encodeStreams=a,u.objectsPerStream=l,u}return e.prototype.computeBufferSize=function(){return at(this,void 0,void 0,function(){var t,i,a,l,u,f,d,h,C,E,m,R,y,x,D,w,C,E,D,R,L,N,H,G;return lt(this,function(U){switch(U.label){case 0:t=this.context.largestObjectNumber+1,i=Ss.forVersion(1,7),a=i.sizeInBytes()+2,l=Ly.create(this.createTrailerDict(),this.encodeStreams),u=[],f=[],d=[],h=this.context.enumerateIndirectObjects(),C=0,E=h.length,U.label=1;case 1:return C"},e.prototype.sizeInBytes=function(){return this.value.length+2},e.prototype.copyBytesInto=function(t,i){return t[i++]=T.LessThan,i+=pr(this.value,t,i),t[i++]=T.GreaterThan,this.value.length+2},e.of=function(t){return new e(t)},e.fromText=function(t){for(var i=Pm(t),a="",l=0,u=i.length;l"},es=function(r){return Ta(r,4)},Ky=function(r){if(Em(r))return es(r);if(Tm(r)){var e=ov(r),t=av(r);return""+es(e)+es(t)}var i=ms(r),a="0x"+i+" is not a valid UTF-8 or UTF-16 codepoint.";throw new Error(a)},Hy=function(r){var e=0,t=function(i){e|=1<=T.Zero&&h<=T.Seven?(i+=d,(i.length===3||!(m>="0"&&m<="7"))&&(l(parseInt(i,8)),i="")):l(h):h===T.BackSlash?a=!0:l(h)}return new Uint8Array(t)},e.prototype.decodeText=function(){var t=this.asBytes();return cv(t)?lv(t):xv(t)},e.prototype.decodeDate=function(){var t=this.decodeText(),i=nv(t);if(!i)throw new wv(t);return i},e.prototype.asString=function(){return this.value},e.prototype.clone=function(){return e.of(this.value)},e.prototype.toString=function(){return"("+this.value+")"},e.prototype.sizeInBytes=function(){return this.value.length+2},e.prototype.copyBytesInto=function(t,i){return t[i++]=T.LeftParen,i+=hr(this.value,t,i),t[i++]=T.RightParen,this.value.length+2},e.of=function(t){return new e(t)},e.fromDate=function(t){var i=mn(String(t.getUTCFullYear()),4,"0"),a=mn(String(t.getUTCMonth()+1),2,"0"),l=mn(String(t.getUTCDate()),2,"0"),u=mn(String(t.getUTCHours()),2,"0"),f=mn(String(t.getUTCMinutes()),2,"0"),d=mn(String(t.getUTCSeconds()),2,"0");return new e("D:"+i+a+l+u+f+d+"Z")},e})(Cr),rf=(function(){function r(e,t,i,a){var l=this;this.allGlyphsInFontSortedById=function(){for(var u=new Array(l.font.characterSet.length),f=0,d=u.length;f>3)]>>7-((w&7)<<0)&1,oe=3*te;f[z]=q[oe],f[z+1]=q[oe+1],f[z+2]=q[oe+2],f[z+3]=te>2)]>>6-((w&3)<<1)&3,oe=3*te;f[z]=q[oe],f[z+1]=q[oe+1],f[z+2]=q[oe+2],f[z+3]=te>1)]>>4-((w&1)<<2)&15,oe=3*te;f[z]=q[oe],f[z+1]=q[oe+1],f[z+2]=q[oe+2],f[z+3]=te>>3)]>>>7-(he&7)&1),le=Y==D*255?0:255;d[xe+he]=le<<24|Y<<16|Y<<8|Y}else if(m==2)for(var he=0;he>>2)]>>>6-((he&3)<<1)&3),le=Y==D*85?0:255;d[xe+he]=le<<24|Y<<16|Y<<8|Y}else if(m==4)for(var he=0;he>>1)]>>>4-((he&1)<<2)&15),le=Y==D*17?0:255;d[xe+he]=le<<24|Y<<16|Y<<8|Y}else if(m==8)for(var he=0;he>>2<<3));a==0;){if(a=D(e,x,1),l=D(e,x+1,2),x+=3,l==0){(x&7)!=0&&(x+=8-(x&7));var _=(x>>>3)+4,re=e[_-4]|e[_-3]<<8;U&&(t=r.H.W(t,y+re)),t.set(new i(e.buffer,e.byteOffset+_,re),y),x=_+re<<3,y+=re;continue}if(U&&(t=r.H.W(t,y+(1<<17))),l==1&&(w=M.J,C=M.h,h=511,m=31),l==2){u=R(e,x,5)+257,f=R(e,x+5,5)+1,d=R(e,x+10,4)+4,x+=14;for(var te=1,oe=0;oe<38;oe+=2)M.Q[oe]=0,M.Q[oe+1]=0;for(var oe=0;oete&&(te=de)}x+=3*d,z(M.Q,te),q(M.Q,te,M.u),w=M.w,C=M.d,x=L(M.u,(1<>>4;if(!(he>>>8))t[y++]=he;else{if(he==256)break;var le=y+he-254;if(he>264){var ae=M.q[he-257];le=y+(ae>>>3)+R(e,x,ae&7),x+=ae&7}var ge=C[H(e,x)&m];x+=ge&15;var we=ge>>>4,j=M.c[we],J=(j>>>4)+D(e,x,j&15);for(x+=j&15;y>>4;if(y<=15)u[h]=y,h++;else{var x=0,w=0;y==16?(w=3+f(a,l,2),l+=2,x=u[h-1]):y==17?(w=3+f(a,l,3),l+=3):y==18&&(w=11+f(a,l,7),l+=7);for(var C=h+w;h>>1;ul&&(l=d),u++}for(;u>1,h=e[f+1],m=d<<4|h,y=t-h,x=e[f]<>>15-t;i[C]=m,x++}},r.H.l=function(e,t){for(var i=r.H.m.r,a=15-t,l=0;l>>a}},r.H.M=function(e,t,i){i=i<<(t&7);var a=t>>>3;e[a]|=i,e[a+1]|=i>>>8},r.H.I=function(e,t,i){i=i<<(t&7);var a=t>>>3;e[a]|=i,e[a+1]|=i>>>8,e[a+2]|=i>>>16},r.H.e=function(e,t,i){return(e[t>>>3]|e[(t>>>3)+1]<<8)>>>(t&7)&(1<>>3]|e[(t>>>3)+1]<<8|e[(t>>>3)+2]<<16)>>>(t&7)&(1<>>3]|e[(t>>>3)+1]<<8|e[(t>>>3)+2]<<16)>>>(t&7)},r.H.i=function(e,t){return(e[t>>>3]|e[(t>>>3)+1]<<8|e[(t>>>3)+2]<<16|e[(t>>>3)+3]<<24)>>>(t&7)},r.H.m=(function(){var e=Uint16Array,t=Uint32Array;return{K:new e(16),j:new e(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[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,999,999,999],T:[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,0,0,0],q:new e(32),p:[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,65535,65535],z:[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,0,0],c:new t(32),J:new e(512),_:[],h:new e(32),$:[],w:new e(32768),C:[],v:[],d:new e(32768),D:[],u:new e(512),Q:[],r:new e(32768),s:new t(286),Y:new t(30),a:new t(19),t:new t(15e3),k:new e(65536),g:new e(32768)}})(),(function(){for(var e=r.H.m,t=32768,i=0;i>>1|(a&1431655765)<<1,a=(a&3435973836)>>>2|(a&858993459)<<2,a=(a&4042322160)>>>4|(a&252645135)<<4,a=(a&4278255360)>>>8|(a&16711935)<<8,e.r[i]=(a>>>16|a<<16)>>>17}function l(u,f,d){for(;f--!=0;)u.push(0,d)}for(var i=0;i<32;i++)e.q[i]=e.S[i]<<3|e.T[i],e.c[i]=e.p[i]<<4|e.z[i];l(e._,144,8),l(e._,112,9),l(e._,24,7),l(e._,8,8),r.H.n(e._,9),r.H.A(e._,9,e.J),r.H.l(e._,9),l(e.$,32,5),r.H.n(e.$,5),r.H.A(e.$,5,e.h),r.H.l(e.$,5),l(e.Q,19,0),l(e.C,286,0),l(e.D,30,0),l(e.v,320,0)})(),r.H.N})();ce.decode._readInterlace=function(r,e){for(var t=e.width,i=e.height,a=ce.decode._getBPP(e),l=a>>3,u=Math.ceil(t*a/8),f=new Uint8Array(i*u),d=0,h=[0,0,4,0,2,0,1],m=[0,4,0,2,0,1,0],y=[8,8,8,4,4,2,2],x=[8,8,4,4,2,2,1],w=0;w<7;){for(var C=y[w],E=x[w],D=0,R=0,L=h[w];L>3];re=re>>7-(_&7)&1,f[M*u+(U>>3)]|=re<<7-((U&7)<<0)}if(a==2){var re=r[_>>3];re=re>>6-(_&7)&3,f[M*u+(U>>2)]|=re<<6-((U&3)<<1)}if(a==4){var re=r[_>>3];re=re>>4-(_&7)&15,f[M*u+(U>>1)]|=re<<4-((U&1)<<2)}if(a>=8)for(var te=M*u+U*l,oe=0;oe>3)+oe];_+=a,U+=E}H++,M+=C}D*R!=0&&(d+=R*(1+q)),w=w+1}return f};ce.decode._getBPP=function(r){var e=[1,null,3,1,2,null,4][r.ctype];return e*r.depth};ce.decode._filterZero=function(r,e,t,i,a){var l=ce.decode._getBPP(e),u=Math.ceil(i*l/8),f=ce.decode._paeth;l=Math.ceil(l/8);var d=0,h=1,m=r[t],y=0;if(m>1&&(r[t]=[0,0,1][m-2]),m==3)for(y=l;y>>1)&255;for(var x=0;x>>1);for(;y>>1)}else{for(;y>8&255,r[e+1]=t&255},readUint:function(r,e){return r[e]*(256*256*256)+(r[e+1]<<16|r[e+2]<<8|r[e+3])},writeUint:function(r,e,t){r[e]=t>>24&255,r[e+1]=t>>16&255,r[e+2]=t>>8&255,r[e+3]=t&255},readASCII:function(r,e,t){for(var i="",a=0;a=0&&f>=0?(y=w*e+C<<2,x=(f+w)*a+u+C<<2):(y=(-f+w)*e-u+C<<2,x=w*a+C<<2),d==0)i[x]=r[y],i[x+1]=r[y+1],i[x+2]=r[y+2],i[x+3]=r[y+3];else if(d==1){var E=r[y+3]*.00392156862745098,D=r[y]*E,R=r[y+1]*E,L=r[y+2]*E,z=i[x+3]*(1/255),q=i[x]*z,H=i[x+1]*z,M=i[x+2]*z,U=1-E,_=E+z*U,re=_==0?0:1/_;i[x+3]=255*_,i[x+0]=(D+q*U)*re,i[x+1]=(R+H*U)*re,i[x+2]=(L+M*U)*re}else if(d==2){var E=r[y+3],D=r[y],R=r[y+1],L=r[y+2],z=i[x+3],q=i[x],H=i[x+1],M=i[x+2];E==z&&D==q&&R==H&&L==M?(i[x]=0,i[x+1]=0,i[x+2]=0,i[x+3]=0):(i[x]=D,i[x+1]=R,i[x+2]=L,i[x+3]=E)}else if(d==3){var E=r[y+3],D=r[y],R=r[y+1],L=r[y+2],z=i[x+3],q=i[x],H=i[x+1],M=i[x+2];if(E==z&&D==q&&R==H&&L==M)continue;if(E<220&&z>20)return!1}return!0};ce.encode=function(r,e,t,i,a,l,u){i==null&&(i=0),u==null&&(u=!1);var f=ce.encode.compress(r,e,t,i,[!1,!1,!1,0,u]);return ce.encode.compressPNG(f,-1),ce.encode._main(f,e,t,a,l)};ce.encodeLL=function(r,e,t,i,a,l,u,f){for(var d={ctype:0+(i==1?0:2)+(a==0?0:4),depth:l,frames:[]},h=(i+a)*l,m=h*e,y=0;y1,y=!1,x=33+(m?20:0);if(a.sRGB!=null&&(x+=13),a.pHYs!=null&&(x+=21),r.ctype==3){for(var w=r.plte.length,C=0;C>>24!=255&&(y=!0);x+=8+w*3+4+(y?8+w*1+4:0)}for(var E=0;E>>8&255,U=q>>>16&255;R[h+z+0]=H,R[h+z+1]=M,R[h+z+2]=U}if(h+=w*3,u(R,h,l(R,h-w*3-4,w*3+4)),h+=4,y){u(R,h,w),h+=4,d(R,h,"tRNS"),h+=4;for(var C=0;C>>24&255;h+=w,u(R,h,l(R,h-w-4,w+4)),h+=4}}for(var _=0,E=0;E>2,de>>2));for(var w=0;wxe&&le==be[D-xe])he[D]=he[D-xe];else{var ae=z[le];if(ae==null&&(z[le]=ae=q.length,q.push(le),q.length>=300))break;he[D]=ae}}}var ge=q.length;ge<=256&&h==!1&&(ge<=2?y=1:ge<=4?y=2:ge<=16?y=4:y=8,y=Math.max(y,d));for(var w=0;w>1)]|=We[Ge+ke]<<4-(ke&1)*4;else if(y==2)for(var ke=0;ke>2)]|=We[Ge+ke]<<6-(ke&3)*2;else if(y==1)for(var ke=0;ke>3)]|=We[Ge+ke]<<7-(ke&7)*1}j=Ae,m=3,Oe=1}else if(R==!1&&L.length==1){for(var Ae=new Uint8Array(xe*we*3),rt=xe*we,D=0;DU&&(U=te),re_&&(_=re))}U==-1&&(H=M=U=_=0),a&&((H&1)==1&&H--,(M&1)==1&&M--);var de=(U-H+1)*(_-M+1);deD&&(D=q),HR&&(R=H))}D==-1&&(C=E=D=R=0),u&&((C&1)==1&&C--,(E&1)==1&&E--),l={x:C,y:E,width:D-C+1,height:R-E+1};var _=i[a];_.rect=l,_.blend=1,_.img=new Uint8Array(l.width*l.height*4),i[a-1].dispose==0?(ce._copyTile(h,e,t,_.img,l.width,l.height,-l.x,-l.y,0),ce.encode._prepareDiff(x,e,t,_.img,l)):ce._copyTile(x,e,t,_.img,l.width,l.height,-l.x,-l.y,0)};ce.encode._prepareDiff=function(r,e,t,i,a){ce._copyTile(r,e,t,i,a.width,a.height,-a.x,-a.y,2)};ce.encode._filterZero=function(r,e,t,i,a,l,u){var f=[],d=[0,1,2,3,4];l!=-1?d=[l]:(e*i>5e5||t==1)&&(d=[0]);var h;u&&(h={level:0});for(var m=u&&UZIP!=null?UZIP:ys,y=0;y>1)+256&255;if(l==4)for(var h=a;h>1)&255;for(var h=a;h>1)&255}if(l==4){for(var h=0;h>>1:t=t>>>1;r[e]=t}return r})(),update:function(r,e,t,i){for(var a=0;a>>8;return r},crc:function(r,e,t){return ce.crc.update(4294967295,r,e,t)^4294967295}};ce.quantize=function(r,e){var t=new Uint8Array(r),i=t.slice(0),a=new Uint32Array(i.buffer),l=ce.quantize.getKDtree(i,e),u=l[0],f=l[1];ce.quantize.planeDst;for(var d=t,h=a,m=d.length,y=new Uint8Array(t.length>>2),x=0;x>2]=R.ind,h[x>>2]=R.est.rgba}return{abuf:i.buffer,inds:y,plte:f}};ce.quantize.getKDtree=function(r,e,t){t==null&&(t=1e-4);var i=new Uint32Array(r.buffer),a={i0:0,i1:r.length,bst:null,est:null,tdst:0,left:null,right:null};a.bst=ce.quantize.stats(r,a.i0,a.i1),a.est=ce.quantize.estats(a.bst);for(var l=[a];l.lengthu&&(u=l[d].est.L,f=d);if(u=m||h.i1<=m;if(y){h.est.L=0;continue}var x={i0:h.i0,i1:m,bst:null,est:null,tdst:0,left:null,right:null};x.bst=ce.quantize.stats(r,x.i0,x.i1),x.est=ce.quantize.estats(x.bst);var w={i0:m,i1:h.i1,bst:null,est:null,tdst:0,left:null,right:null};w.bst={R:[],m:[],N:h.bst.N-x.bst.N};for(var d=0;d<16;d++)w.bst.R[d]=h.bst.R[d]-x.bst.R[d];for(var d=0;d<4;d++)w.bst.m[d]=h.bst.m[d]-x.bst.m[d];w.est=ce.quantize.estats(w.bst),h.left=x,h.right=w,l[f]=x,l.push(w)}l.sort(function(C,E){return E.bst.N-C.bst.N});for(var d=0;d0&&(u=r.right,f=r.left);var d=ce.quantize.getNearest(u,e,t,i,a);if(d.tdst<=l*l)return d;var h=ce.quantize.getNearest(f,e,t,i,a);return h.tdstl;)i-=4;if(t>=i)break;var f=e[t>>2];e[t>>2]=e[i>>2],e[i>>2]=f,t+=4,i-=4}for(;u(r,t,a)>l;)t-=4;return t+4};ce.quantize.vecDot=function(r,e,t){return r[e]*t[0]+r[e+1]*t[1]+r[e+2]*t[2]+r[e+3]*t[3]};ce.quantize.stats=function(r,e,t){for(var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],a=[0,0,0,0],l=t-e>>2,u=e;u>>0}};ce.M4={multVec:function(r,e){return[r[0]*e[0]+r[1]*e[1]+r[2]*e[2]+r[3]*e[3],r[4]*e[0]+r[5]*e[1]+r[6]*e[2]+r[7]*e[3],r[8]*e[0]+r[9]*e[1]+r[10]*e[2]+r[11]*e[3],r[12]*e[0]+r[13]*e[1]+r[14]*e[2]+r[15]*e[3]]},dot:function(r,e){return r[0]*e[0]+r[1]*e[1]+r[2]*e[2]+r[3]*e[3]},sml:function(r,e){return[r*e[0],r*e[1],r*e[2],r*e[3]]}};ce.encode.concatRGBA=function(r){for(var e=0,t=0;t1)throw new Error("Animated PNGs are not supported");var a=new Uint8Array(i[0]),l=Jy(a),u=l.rgbChannel,f=l.alphaChannel;this.rgbChannel=u;var d=f.some(function(h){return h<255});d&&(this.alphaChannel=f),this.type=Qy(t.ctype),this.width=t.width,this.height=t.height,this.bitsPerComponent=8}return r.load=function(e){return new r(e)},r})(),Pv=(function(){function r(e){this.image=e,this.bitsPerComponent=e.bitsPerComponent,this.width=e.width,this.height=e.height,this.colorSpace="DeviceRGB"}return r.for=function(e){return at(this,void 0,void 0,function(){var t;return lt(this,function(i){return t=_y.load(e),[2,new r(t)]})})},r.prototype.embedIntoContext=function(e,t){return at(this,void 0,void 0,function(){var i,a;return lt(this,function(l){return i=this.embedAlphaChannel(e),a=e.flateStream(this.image.rgbChannel,{Type:"XObject",Subtype:"Image",BitsPerComponent:this.image.bitsPerComponent,Width:this.image.width,Height:this.image.height,ColorSpace:this.colorSpace,SMask:i}),t?(e.assign(t,a),[2,t]):[2,e.register(a)]})})},r.prototype.embedAlphaChannel=function(e){if(this.image.alphaChannel){var t=e.flateStream(this.image.alphaChannel,{Type:"XObject",Subtype:"Image",Height:this.image.height,Width:this.image.width,BitsPerComponent:this.image.bitsPerComponent,ColorSpace:"DeviceGray",Decode:[0,1]});return e.register(t)}},r})(),Ev=(function(){function r(e,t,i){this.bytes=e,this.start=t||0,this.pos=this.start,this.end=t&&i?t+i:this.bytes.length}return Object.defineProperty(r.prototype,"length",{get:function(){return this.end-this.start},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isEmpty",{get:function(){return this.length===0},enumerable:!1,configurable:!0}),r.prototype.getByte=function(){return this.pos>=this.end?-1:this.bytes[this.pos++]},r.prototype.getUint16=function(){var e=this.getByte(),t=this.getByte();return e===-1||t===-1?-1:(e<<8)+t},r.prototype.getInt32=function(){var e=this.getByte(),t=this.getByte(),i=this.getByte(),a=this.getByte();return(e<<24)+(t<<16)+(i<<8)+a},r.prototype.getBytes=function(e,t){t===void 0&&(t=!1);var i=this.bytes,a=this.pos,l=this.end;if(e){var f=a+e;f>l&&(f=l),this.pos=f;var u=i.subarray(a,f);return t?new Uint8ClampedArray(u):u}else{var u=i.subarray(a,l);return t?new Uint8ClampedArray(u):u}},r.prototype.peekByte=function(){var e=this.getByte();return this.pos--,e},r.prototype.peekBytes=function(e,t){t===void 0&&(t=!1);var i=this.getBytes(e,t);return this.pos-=i.length,i},r.prototype.skip=function(e){e||(e=1),this.pos+=e},r.prototype.reset=function(){this.pos=this.start},r.prototype.moveStart=function(){this.start=this.pos},r.prototype.makeSubStream=function(e,t){return new r(this.bytes,e,t)},r.prototype.decode=function(){return this.bytes},r})(),$y=new Uint8Array(0),Oa=(function(){function r(e){if(this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=$y,this.minBufferLength=512,e)for(;this.minBufferLengthl&&(i=l)}else{for(;!this.eof;)this.readBlock();i=this.bufferLength}this.pos=i;var u=this.buffer.subarray(a,i);return t&&!(u instanceof Uint8ClampedArray)?new Uint8ClampedArray(u):u},r.prototype.peekByte=function(){var e=this.getByte();return this.pos--,e},r.prototype.peekBytes=function(e,t){t===void 0&&(t=!1);var i=this.getBytes(e,t);return this.pos-=i.length,i},r.prototype.skip=function(e){e||(e=1),this.pos+=e},r.prototype.reset=function(){this.pos=0},r.prototype.makeSubStream=function(e,t){for(var i=e+t;this.bufferLength<=i&&!this.eof;)this.readBlock();return new Ev(this.buffer,e,t)},r.prototype.decode=function(){for(;!this.eof;)this.readBlock();return this.buffer.subarray(0,this.bufferLength)},r.prototype.readBlock=function(){throw new tn(this.constructor.name,"readBlock")},r.prototype.ensureBuffer=function(e){var t=this.buffer;if(e<=t.byteLength)return t;for(var i=this.minBufferLength;i=0;--h)d[f+h]=y&255,y>>=8}},e})(Oa),t1=(function(r){ye(e,r);function e(t,i){var a=r.call(this,i)||this;return a.stream=t,a.firstDigit=-1,i&&(i=.5*i),a}return e.prototype.readBlock=function(){var t=8e3,i=this.stream.getBytes(t);if(!i.length){this.eof=!0;return}for(var a=i.length+1>>1,l=this.ensureBuffer(this.bufferLength+a),u=this.bufferLength,f=this.firstDigit,d=0,h=i.length;d=48&&m<=57)y=m&15;else if(m>=65&&m<=70||m>=97&&m<=102)y=(m&15)+9;else if(m===62){this.eof=!0;break}else continue;f<0?f=y:(l[u++]=f<<4|y,f=-1)}f>=0&&this.eof&&(l[u++]=f<<4,f=-1),this.firstDigit=f,this.bufferLength=u},e})(Oa),M0=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),r1=new Int32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),n1=new Int32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),i1=[new Int32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],o1=[new Int32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5],a1=(function(r){ye(e,r);function e(t,i){var a=r.call(this,i)||this;a.stream=t;var l=t.getByte(),u=t.getByte();if(l===-1||u===-1)throw new Error("Invalid header in flate stream: "+l+", "+u);if((l&15)!==8)throw new Error("Unknown compression method in flate stream: "+l+", "+u);if(((l<<8)+u)%31!==0)throw new Error("Bad FCHECK in flate stream: "+l+", "+u);if(u&32)throw new Error("FDICT bit set in flate stream: "+l+", "+u);return a.codeSize=0,a.codeBuf=0,a}return e.prototype.readBlock=function(){var t,i,a=this.stream,l=this.getBits(3);if(l&1&&(this.eof=!0),l>>=1,l===0){var u=void 0;if((u=a.getByte())===-1)throw new Error("Bad block header in flate stream");var f=u;if((u=a.getByte())===-1)throw new Error("Bad block header in flate stream");if(f|=u<<8,(u=a.getByte())===-1)throw new Error("Bad block header in flate stream");var d=u;if((u=a.getByte())===-1)throw new Error("Bad block header in flate stream");if(d|=u<<8,d!==(~f&65535)&&(f!==0||d!==0))throw new Error("Bad uncompressed block length in flate stream");this.codeBuf=0,this.codeSize=0;var h=this.bufferLength;t=this.ensureBuffer(h+f);var m=h+f;if(this.bufferLength=m,f===0)a.peekByte()===-1&&(this.eof=!0);else for(var y=h;y0;)H[L++]=_}x=this.generateHuffmanTable(H.subarray(0,C)),w=this.generateHuffmanTable(H.subarray(C,q))}else throw new Error("Unknown block type in flate stream");t=this.buffer;for(var oe=t?t.length:0,de=this.bufferLength;;){var Y=this.getCode(x);if(Y<256){de+1>=oe&&(t=this.ensureBuffer(de+1),oe=t.length),t[de++]=Y;continue}if(Y===256){this.bufferLength=de;return}Y-=257,Y=r1[Y];var be=Y>>16;be>0&&(be=this.getBits(be)),i=(Y&65535)+be,Y=this.getCode(w),Y=n1[Y],be=Y>>16,be>0&&(be=this.getBits(be));var xe=(Y&65535)+be;de+i>=oe&&(t=this.ensureBuffer(de+i),oe=t.length);for(var he=0;he>t,this.codeSize=a-=t,u},e.prototype.getCode=function(t){for(var i=this.stream,a=t[0],l=t[1],u=this.codeSize,f=this.codeBuf,d;u>16,y=h&65535;if(m<1||u>m,this.codeSize=u-m,y},e.prototype.generateHuffmanTable=function(t){var i=t.length,a=0,l;for(l=0;la&&(a=t[l]);for(var u=1<>=1;for(l=x;l0;if(!H||H<256)D[0]=H,R=1;else if(H>=258)if(H=0;u--)D[u]=y[f],f=w[f];else D[R++]=D[0];else if(H===256){C=9,m=258,R=0;continue}else{this.eof=!0,delete this.lzwState;break}if(M&&(w[m]=E,x[m]=x[E]+1,y[m]=D[0],m++,C=m+h&m+h-1?C:Math.min(Math.log(m+h)/.6931471805599453+1,12)|0),E=H,L+=R,i>>i&(1<0){var u=this.stream.getBytes(l);i.set(u,a),a+=l}}else{l=257-l;var f=t[1];i=this.ensureBuffer(a+l+1);for(var d=0;di.size())throw new ls(t,0,i.size());i.remove(t)}else{if(t!==0)throw new ls(t,0,0);this.setKids([])}},e.prototype.normalizedEntries=function(){var t=this.Kids();return t||(t=this.dict.context.obj([this.ref]),this.dict.set(P.of("Kids"),t)),{Kids:t}},e.fromDict=function(t,i){return new e(t,i)},e})(Dv),nf=(function(r){ye(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.Opt=function(){return this.dict.lookupMaybe(P.of("Opt"),Pt,Ye,bt)},e.prototype.setOpt=function(t){this.dict.set(P.of("Opt"),this.dict.context.obj(t))},e.prototype.getExportValues=function(){var t=this.Opt();if(t){if(t instanceof Pt||t instanceof Ye)return[t];for(var i=[],a=0,l=t.size();ai.size())throw new ls(t,0,i.size());i.remove(t)}},e.prototype.normalizeExportValues=function(){for(var t,i,a,l,u=(t=this.getExportValues())!==null&&t!==void 0?t:[],f=[],d=this.getWidgets(),h=0,m=d.length;h1){if(!this.hasFlag(Ft.MultiSelect))throw new by;this.dict.set(P.of("V"),this.dict.context.obj(t))}this.updateSelectedIndices(t)},e.prototype.valuesAreValid=function(t){for(var i=this.getOptions(),a=function(d,h){var m=t[d].decodeText();if(!i.find(function(y){return m===(y.display||y.value).decodeText()}))return{value:!1}},l=0,u=t.length;l1){for(var i=new Array(t.length),a=this.getOptions(),l=function(d,h){var m=t[d].decodeText();i[d]=a.findIndex(function(y){return m===(y.display||y.value).decodeText()})},u=0,f=t.length;u0){var f=u.lookup(0,Pt,Ye),d=u.lookupMaybe(1,Pt,Ye);i.push({value:f,display:d||f})}}return i}return[]},e})(wo),ks=(function(r){ye(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.fromDict=function(t,i){return new e(t,i)},e.create=function(t){var i=t.obj({FT:"Ch",Ff:Ft.Combo,Kids:[]}),a=t.register(i);return new e(i,a)},e})(Ov),cs=(function(r){ye(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.addField=function(t){var i=this.normalizedEntries().Kids;i==null||i.push(t)},e.prototype.normalizedEntries=function(){var t=this.Kids();return t||(t=this.dict.context.obj([]),this.dict.set(P.of("Kids"),t)),{Kids:t}},e.fromDict=function(t,i){return new e(t,i)},e.create=function(t){var i=t.obj({}),a=t.register(i);return new e(i,a)},e})(Dv),of=(function(r){ye(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.fromDict=function(t,i){return new e(t,i)},e})(wo),Cs=(function(r){ye(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.MaxLen=function(){var t=this.dict.lookup(P.of("MaxLen"));if(t instanceof _e)return t},e.prototype.Q=function(){var t=this.dict.lookup(P.of("Q"));if(t instanceof _e)return t},e.prototype.setMaxLength=function(t){this.dict.set(P.of("MaxLen"),_e.of(t))},e.prototype.removeMaxLength=function(){this.dict.delete(P.of("MaxLen"))},e.prototype.getMaxLength=function(){var t;return(t=this.MaxLen())===null||t===void 0?void 0:t.asNumber()},e.prototype.setQuadding=function(t){this.dict.set(P.of("Q"),_e.of(t))},e.prototype.getQuadding=function(){var t;return(t=this.Q())===null||t===void 0?void 0:t.asNumber()},e.prototype.setValue=function(t){this.dict.set(P.of("V"),t)},e.prototype.removeValue=function(){this.dict.delete(P.of("V"))},e.prototype.getValue=function(){var t=this.V();if(t instanceof Pt||t instanceof Ye)return t},e.fromDict=function(t,i){return new e(t,i)},e.create=function(t){var i=t.obj({FT:"Tx",Kids:[]}),a=t.register(i);return new e(i,a)},e})(wo),Fs=(function(r){ye(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.fromDict=function(t,i){return new e(t,i)},e.create=function(t){var i=t.obj({FT:"Btn",Ff:$r.PushButton,Kids:[]}),a=t.register(i);return new e(i,a)},e})(nf),Ps=(function(r){ye(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.setValue=function(t){var i=this.getOnValues();if(!i.includes(t)&&t!==P.of("Off"))throw new _c;this.dict.set(P.of("V"),t);for(var a=this.getWidgets(),l=0,u=a.length;ll)throw new F0(i,l);for(var u=i,f=0,d=a.size();fu)return m.insertLeafNode(t,u)||h;u-=m.Count().asNumber()}m instanceof Bn&&(u-=1)}if(u===0){this.insertLeafKid(a.size(),t);return}throw new P0(i,"insertLeafNode")},e.prototype.removeLeafNode=function(t,i){i===void 0&&(i=!0);var a=this.Kids(),l=this.Count().asNumber();if(t>=l)throw new F0(t,l);for(var u=t,f=0,d=a.size();fu){m.removeLeafNode(u,i),i&&m.Kids().size()===0&&a.remove(f);return}else u-=m.Count().asNumber();if(m instanceof Bn)if(u===0){this.removeKid(f);return}else u-=1}throw new P0(t,"removeLeafNode")},e.prototype.ascend=function(t){t(this);var i=this.Parent();i&&i.ascend(t)},e.prototype.traverse=function(t){for(var i=this.Kids(),a=0,l=i.size();aNumber.MAX_SAFE_INTEGER)if(this.capNumbers){var a="Parsed number that is too large for some PDF readers: "+e+", using Number.MAX_SAFE_INTEGER instead.";return console.warn(a),Number.MAX_SAFE_INTEGER}else{var a="Parsed number that is too large for some PDF readers: "+e+", not capping.";console.warn(a)}return i},r.prototype.skipWhitespace=function(){for(;!this.bytes.done()&&Un[this.bytes.peek()];)this.bytes.next()},r.prototype.skipLine=function(){for(;!this.bytes.done();){var e=this.bytes.peek();if(e===U0||e===L0)return;this.bytes.next()}},r.prototype.skipComment=function(){if(this.bytes.peek()!==T.Percent)return!1;for(;!this.bytes.done();){var e=this.bytes.peek();if(e===U0||e===L0)return!0;this.bytes.next()}return!0},r.prototype.skipWhitespaceAndComments=function(){for(this.skipWhitespace();this.skipComment();)this.skipWhitespace()},r.prototype.matchKeyword=function(e){for(var t=this.bytes.offset(),i=0,a=e.length;i=this.length},r.prototype.offset=function(){return this.idx},r.prototype.slice=function(e,t){return this.bytes.slice(e,t)},r.prototype.position=function(){return{line:this.line,column:this.column,offset:this.idx}},r.of=function(e){return new r(e)},r.fromPDFRawStream=function(e){return r.of(Tv(e).decode())},r})(),x1=T.Space,ua=T.CarriageReturn,ca=T.Newline,fa=[T.s,T.t,T.r,T.e,T.a,T.m],Xl=[T.e,T.n,T.d,T.s,T.t,T.r,T.e,T.a,T.m],Ot={header:[T.Percent,T.P,T.D,T.F,T.Dash],eof:[T.Percent,T.Percent,T.E,T.O,T.F],obj:[T.o,T.b,T.j],endobj:[T.e,T.n,T.d,T.o,T.b,T.j],xref:[T.x,T.r,T.e,T.f],trailer:[T.t,T.r,T.a,T.i,T.l,T.e,T.r],startxref:[T.s,T.t,T.a,T.r,T.t,T.x,T.r,T.e,T.f],true:[T.t,T.r,T.u,T.e],false:[T.f,T.a,T.l,T.s,T.e],null:[T.n,T.u,T.l,T.l],stream:fa,streamEOF1:mt(fa,[x1,ua,ca]),streamEOF2:mt(fa,[ua,ca]),streamEOF3:mt(fa,[ua]),streamEOF4:mt(fa,[ca]),endstream:Xl,EOF1endstream:mt([ua,ca],Xl),EOF2endstream:mt([ua],Xl),EOF3endstream:mt([ca],Xl)},Mv=(function(r){ye(e,r);function e(t,i,a){a===void 0&&(a=!1);var l=r.call(this,t,a)||this;return l.context=i,l}return e.prototype.parseObject=function(){if(this.skipWhitespaceAndComments(),this.matchKeyword(Ot.true))return Ca.True;if(this.matchKeyword(Ot.false))return Ca.False;if(this.matchKeyword(Ot.null))return jr;var t=this.bytes.peek();if(t===T.LessThan&&this.bytes.peekAhead(1)===T.LessThan)return this.parseDictOrStream();if(t===T.LessThan)return this.parseHexString();if(t===T.LeftParen)return this.parseString();if(t===T.ForwardSlash)return this.parseName();if(t===T.LeftSquareBracket)return this.parseArray();if(sf[t])return this.parseNumberOrRef();throw new Py(this.bytes.position(),t)},e.prototype.parseNumberOrRef=function(){var t=this.parseRawNumber();this.skipWhitespaceAndComments();var i=this.bytes.offset();if(xr[this.bytes.peek()]){var a=this.parseRawNumber();if(this.skipWhitespaceAndComments(),this.bytes.peek()===T.R)return this.bytes.assertNext(T.R),Et.of(t,a)}return this.bytes.moveTo(i),_e.of(t)},e.prototype.parseHexString=function(){var t="";for(this.bytes.assertNext(T.LessThan);!this.bytes.done()&&this.bytes.peek()!==T.GreaterThan;)t+=Mn(this.bytes.next());return this.bytes.assertNext(T.GreaterThan),Ye.of(t)},e.prototype.parseString=function(){for(var t=0,i=!1,a="";!this.bytes.done();){var l=this.bytes.next();if(a+=Mn(l),i||(l===T.LeftParen&&(t+=1),l===T.RightParen&&(t-=1)),l===T.BackSlash?i=!i:i&&(i=!1),t===0)return Pt.of(a.substring(1,a.length-1))}throw new Ry(this.bytes.position())},e.prototype.parseName=function(){this.bytes.assertNext(T.ForwardSlash);for(var t="";!this.bytes.done();){var i=this.bytes.peek();if(Un[i]||an[i])break;t+=Mn(i),this.bytes.next()}return P.of(t)},e.prototype.parseArray=function(){this.bytes.assertNext(T.LeftSquareBracket),this.skipWhitespaceAndComments();for(var t=bt.withContext(this.context);this.bytes.peek()!==T.RightSquareBracket;){var i=this.parseObject();t.push(i),this.skipWhitespaceAndComments()}return this.bytes.assertNext(T.RightSquareBracket),t},e.prototype.parseDict=function(){this.bytes.assertNext(T.LessThan),this.bytes.assertNext(T.LessThan),this.skipWhitespaceAndComments();for(var t=new Map;!this.bytes.done()&&this.bytes.peek()!==T.GreaterThan&&this.bytes.peekAhead(1)!==T.GreaterThan;){var i=this.parseName(),a=this.parseObject();t.set(i,a),this.skipWhitespaceAndComments()}this.skipWhitespaceAndComments(),this.bytes.assertNext(T.GreaterThan),this.bytes.assertNext(T.GreaterThan);var l=t.get(P.of("Type"));return l===P.of("Catalog")?zv.fromMapWithContext(t,this.context):l===P.of("Pages")?jv.fromMapWithContext(t,this.context):l===P.of("Page")?Bn.fromMapWithContext(t,this.context):ot.fromMapWithContext(t,this.context)},e.prototype.parseDictOrStream=function(){var t=this.bytes.position(),i=this.parseDict();if(this.skipWhitespaceAndComments(),!this.matchKeyword(Ot.streamEOF1)&&!this.matchKeyword(Ot.streamEOF2)&&!this.matchKeyword(Ot.streamEOF3)&&!this.matchKeyword(Ot.streamEOF4)&&!this.matchKeyword(Ot.stream))return i;var a=this.bytes.offset(),l,u=i.get(P.of("Length"));u instanceof _e?(l=a+u.asNumber(),this.bytes.moveTo(l),this.skipWhitespaceAndComments(),this.matchKeyword(Ot.endstream)||(this.bytes.moveTo(a),l=this.findEndOfStreamFallback(t))):l=this.findEndOfStreamFallback(t);var f=this.bytes.slice(a,l);return Fa.of(i,f)},e.prototype.findEndOfStreamFallback=function(t){for(var i=1,a=this.bytes.offset();!this.bytes.done()&&(a=this.bytes.offset(),this.matchKeyword(Ot.stream)?i+=1:this.matchKeyword(Ot.EOF1endstream)||this.matchKeyword(Ot.EOF2endstream)||this.matchKeyword(Ot.EOF3endstream)||this.matchKeyword(Ot.endstream)?i-=1:this.bytes.next(),i!==0););if(i!==0)throw new Ty(t);return a},e.forBytes=function(t,i,a){return new e(Rs.of(t),i,a)},e.forByteStream=function(t,i,a){return a===void 0&&(a=!1),new e(t,i,a)},e})(y1),w1=(function(r){ye(e,r);function e(t,i){var a=r.call(this,Rs.fromPDFRawStream(t),t.dict.context)||this,l=t.dict;return a.alreadyParsed=!1,a.shouldWaitForTick=i||(function(){return!1}),a.firstOffset=l.lookup(P.of("First"),_e).asNumber(),a.objectCount=l.lookup(P.of("N"),_e).asNumber(),a}return e.prototype.parseIntoContext=function(){return at(this,void 0,void 0,function(){var t,i,a,l,u,f,d,h;return lt(this,function(m){switch(m.label){case 0:if(this.alreadyParsed)throw new Jc("PDFObjectStreamParser","parseIntoContext");this.alreadyParsed=!0,t=this.parseOffsetsAndObjectNumbers(),i=0,a=t.length,m.label=1;case 1:return i=T.Space&&i<=T.Tilde;if(a&&(this.matchKeyword(Ot.xref)||this.matchKeyword(Ot.trailer)||this.matchKeyword(Ot.startxref)||this.matchIndirectObjectHeader())){this.bytes.moveTo(t);break}this.bytes.next()}},e.prototype.skipBinaryHeaderComment=function(){this.skipWhitespaceAndComments();try{var t=this.bytes.offset();this.parseIndirectObjectHeader(),this.bytes.moveTo(t)}catch{this.bytes.next(),this.skipWhitespaceAndComments()}},e.forBytesWithOptions=function(t,i,a,l){return new e(t,i,a,l)},e})(Mv),Cn=function(r){return 1<0&&(i[i.length]=+a),t[t.length]={cmd:e,args:i},i=[],a="",l=!1),e=h;else if([" ",","].includes(h)||h==="-"&&a.length>0&&a[a.length-1]!=="e"||h==="."&&l){if(a.length===0)continue;i.length===u?(t[t.length]={cmd:e,args:i},i=[+a],e==="M"&&(e="L"),e==="m"&&(e="l")):i[i.length]=+a,l=h===".",a=["-","."].includes(h)?h:""}else a+=h,h==="."&&(l=!0)}return a.length>0&&(i.length===u?(t[t.length]={cmd:e,args:i},i=[+a],e==="M"&&(e="L"),e==="m"&&(e="l")):i[i.length]=+a),t[t.length]={cmd:e,args:i},t},j1=function(r){Ke=He=vt=pt=va=pa=0;for(var e=[],t=0;t1&&(x=Math.sqrt(x),t*=x,i*=x);var w=y/t,C=m/t,E=-m/i,D=y/i,R=w*f+C*d,L=E*f+D*d,z=w*r+C*e,q=E*r+D*e,H=(z-R)*(z-R)+(q-L)*(q-L),M=1/H-.25;M<0&&(M=0);var U=Math.sqrt(M);l===a&&(U=-U);var _=.5*(R+z)-U*(q-L),re=.5*(L+q)+U*(z-R),te=Math.atan2(L-re,R-_),oe=Math.atan2(q-re,z-_),de=oe-te;de<0&&l===1?de+=2*Math.PI:de>0&&l===0&&(de-=2*Math.PI);for(var Y=Math.ceil(Math.abs(de/(Math.PI*.5+.001))),be=[],xe=0;xer.length)return a-1;var D=e.heightAtSize(a),R=D+D*.2,L=R*l;if(L>Math.abs(t.height))return a-1;a+=1}return a},nx=function(r,e,t,i){for(var a=t.width/i,l=t.height,u=ep,f=vm(r);ua*.75;if(y)return u-1}var x=e.heightAtSize(u,{descender:!1});if(x>l)return u-1;u+=1}return u},ix=function(r){for(var e=r.length;e>0;e--)if(/\s/.test(r[e]))return e},ox=function(r,e,t,i){for(var a,l=r.length;l>0;){var u=r.substring(0,l),f=t.encodeText(u),d=t.widthOfTextAtSize(u,i);if(dx&&(x=U+H),C+f>w&&(w=C+f),h.push({text:z,encoded:q,width:H,height:f,x:U,y:C}),R=M==null?void 0:M.trim()}return{fontSize:i,lineHeight:d,lines:h,bounds:{x:m,y,width:x-m,height:w-y}}},ax=function(r,e){var t=e.fontSize,i=e.font,a=e.bounds,l=e.cellCount,u=tv(Ra(r));if(u.length>l)throw new ex(u.length,l);(t===void 0||t===0)&&(t=nx(u,i,a,l));for(var f=a.width/l,d=i.heightAtSize(t,{descender:!1}),h=a.y+(a.height/2-d/2),m=[],y=a.x,x=a.y,w=a.x+a.width,C=a.y+a.height,E=0,D=0;Ew&&(w=U+H),h+d>C&&(C=h+d),m.push({text:u,encoded:q,width:H,height:d,x:U,y:h}),E+=1,D+=z}return{fontSize:t,cells:m,bounds:{x:y,y:x,width:w-y,height:C-x}}},gs=function(r,e){var t=e.alignment,i=e.fontSize,a=e.font,l=e.bounds,u=tv(Ra(r));(i===void 0||i===0)&&(i=rp([u],a,l));var f=a.encodeText(u),d=a.widthOfTextAtSize(u,i),h=a.heightAtSize(i,{descender:!1}),m=t===nr.Left?l.x:t===nr.Center?l.x+l.width/2-d/2:t===nr.Right?l.x+l.width-d:l.x,y=l.y+(l.height/2-h/2);return{fontSize:i,line:{text:u,encoded:f,width:d,height:h,x:m,y},bounds:{x:m,y,width:d,height:h}}},bo=function(r){return"normal"in r?r:{normal:r}},lx=/\/([^\0\t\n\f\r\ ]+)[\0\t\n\f\r\ ]+(\d*\.\d+|\d+)[\0\t\n\f\r\ ]+Tf/,vi=function(r){var e,t,i=(e=r.getDefaultAppearance())!==null&&e!==void 0?e:"",a=(t=Zc(i,lx).match)!==null&&t!==void 0?t:[],l=Number(a[2]);return isFinite(l)?l:void 0},sx=/(\d*\.\d+|\d+)[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]+(g|rg|k)/,nn=function(r){var e,t=(e=r.getDefaultAppearance())!==null&&e!==void 0?e:"",i=Zc(t,sx).match,a=i??[],l=a[1],u=a[2],f=a[3],d=a[4],h=a[5];if(h==="g"&&l)return Yv(Number(l));if(h==="rg"&&l&&u&&f)return Tt(Number(l),Number(u),Number(f));if(h==="k"&&l&&u&&f&&d)return Qv(Number(l),Number(u),Number(f),Number(d))},on=function(r,e,t,i){var a;i===void 0&&(i=0);var l=[Ii(e).toString(),df((a=t==null?void 0:t.name)!==null&&a!==void 0?a:"dummy__noop",i).toString()].join(` -`);r.setDefaultAppearance(l)},ux=function(r,e){var t,i,a,l=nn(e),u=nn(r.acroField),f=e.getRectangle(),d=e.getAppearanceCharacteristics(),h=e.getBorderStyle(),m=(t=h==null?void 0:h.getWidth())!==null&&t!==void 0?t:0,y=Ln(d==null?void 0:d.getRotation()),x=ji(f,y),w=x.width,C=x.height,E=yi(nt(nt({},f),{rotation:y})),D=Tt(0,0,0),R=(i=Fr(d==null?void 0:d.getBorderColor()))!==null&&i!==void 0?i:D,L=Fr(d==null?void 0:d.getBackgroundColor()),z=Fr(d==null?void 0:d.getBackgroundColor(),.8),q=(a=l??u)!==null&&a!==void 0?a:D;on(l?e:r.acroField,q);var H={x:0+m/2,y:0+m/2,width:w-m,height:C-m,thickness:1.5,borderWidth:m,borderColor:R,markColor:q};return{normal:{on:mt(E,Ql(nt(nt({},H),{color:L,filled:!0}))),off:mt(E,Ql(nt(nt({},H),{color:L,filled:!1})))},down:{on:mt(E,Ql(nt(nt({},H),{color:z,filled:!0}))),off:mt(E,Ql(nt(nt({},H),{color:z,filled:!1})))}}},cx=function(r,e){var t,i,a,l=nn(e),u=nn(r.acroField),f=e.getRectangle(),d=e.getAppearanceCharacteristics(),h=e.getBorderStyle(),m=(t=h==null?void 0:h.getWidth())!==null&&t!==void 0?t:0,y=Ln(d==null?void 0:d.getRotation()),x=ji(f,y),w=x.width,C=x.height,E=yi(nt(nt({},f),{rotation:y})),D=Tt(0,0,0),R=(i=Fr(d==null?void 0:d.getBorderColor()))!==null&&i!==void 0?i:D,L=Fr(d==null?void 0:d.getBackgroundColor()),z=Fr(d==null?void 0:d.getBackgroundColor(),.8),q=(a=l??u)!==null&&a!==void 0?a:D;on(l?e:r.acroField,q);var H={x:w/2,y:C/2,width:w-m,height:C-m,borderWidth:m,borderColor:R,dotColor:q};return{normal:{on:mt(E,Jl(nt(nt({},H),{color:L,filled:!0}))),off:mt(E,Jl(nt(nt({},H),{color:L,filled:!1})))},down:{on:mt(E,Jl(nt(nt({},H),{color:z,filled:!0}))),off:mt(E,Jl(nt(nt({},H),{color:z,filled:!1})))}}},fx=function(r,e,t){var i,a,l,u,f,d=nn(e),h=nn(r.acroField),m=vi(e),y=vi(r.acroField),x=e.getRectangle(),w=e.getAppearanceCharacteristics(),C=e.getBorderStyle(),E=w==null?void 0:w.getCaptions(),D=(i=E==null?void 0:E.normal)!==null&&i!==void 0?i:"",R=(l=(a=E==null?void 0:E.down)!==null&&a!==void 0?a:D)!==null&&l!==void 0?l:"",L=(u=C==null?void 0:C.getWidth())!==null&&u!==void 0?u:0,z=Ln(w==null?void 0:w.getRotation()),q=ji(x,z),H=q.width,M=q.height,U=yi(nt(nt({},x),{rotation:z})),_=Tt(0,0,0),re=Fr(w==null?void 0:w.getBorderColor()),te=Fr(w==null?void 0:w.getBackgroundColor()),oe=Fr(w==null?void 0:w.getBackgroundColor(),.8),de={x:L,y:L,width:H-L*2,height:M-L*2},Y=gs(D,{alignment:nr.Center,fontSize:m??y,font:t,bounds:de}),be=gs(R,{alignment:nr.Center,fontSize:m??y,font:t,bounds:de}),xe=Math.min(Y.fontSize,be.fontSize),he=(f=d??h)!==null&&f!==void 0?f:_;on(d||m!==void 0?e:r.acroField,he,t,xe);var le={x:0+L/2,y:0+L/2,width:H-L,height:M-L,borderWidth:L,borderColor:re,textColor:he,font:t.name,fontSize:xe};return{normal:mt(U,X0(nt(nt({},le),{color:te,textLines:[Y.line]}))),down:mt(U,X0(nt(nt({},le),{color:oe,textLines:[be.line]})))}},dx=function(r,e,t){var i,a,l,u,f=nn(e),d=nn(r.acroField),h=vi(e),m=vi(r.acroField),y=e.getRectangle(),x=e.getAppearanceCharacteristics(),w=e.getBorderStyle(),C=(i=r.getText())!==null&&i!==void 0?i:"",E=(a=w==null?void 0:w.getWidth())!==null&&a!==void 0?a:0,D=Ln(x==null?void 0:x.getRotation()),R=ji(y,D),L=R.width,z=R.height,q=yi(nt(nt({},y),{rotation:D})),H=Tt(0,0,0),M=Fr(x==null?void 0:x.getBorderColor()),U=Fr(x==null?void 0:x.getBackgroundColor()),_,re,te=r.isCombed()?0:1,oe={x:E+te,y:E+te,width:L-(E+te)*2,height:z-(E+te)*2};if(r.isMultiline()){var de=np(C,{alignment:r.getAlignment(),fontSize:h??m,font:t,bounds:oe});_=de.lines,re=de.fontSize}else if(r.isCombed()){var de=ax(C,{fontSize:h??m,font:t,bounds:oe,cellCount:(l=r.getMaxLength())!==null&&l!==void 0?l:0});_=de.cells,re=de.fontSize}else{var de=gs(C,{alignment:r.getAlignment(),fontSize:h??m,font:t,bounds:oe});_=[de.line],re=de.fontSize}var Y=(u=f??d)!==null&&u!==void 0?u:H;on(f||h!==void 0?e:r.acroField,Y,t,re);var be={x:0+E/2,y:0+E/2,width:L-E,height:z-E,borderWidth:E??0,borderColor:M,textColor:Y,font:t.name,fontSize:re,color:U,textLines:_,padding:te};return mt(q,_v(be))},hx=function(r,e,t){var i,a,l,u=nn(e),f=nn(r.acroField),d=vi(e),h=vi(r.acroField),m=e.getRectangle(),y=e.getAppearanceCharacteristics(),x=e.getBorderStyle(),w=(i=r.getSelected()[0])!==null&&i!==void 0?i:"",C=(a=x==null?void 0:x.getWidth())!==null&&a!==void 0?a:0,E=Ln(y==null?void 0:y.getRotation()),D=ji(m,E),R=D.width,L=D.height,z=yi(nt(nt({},m),{rotation:E})),q=Tt(0,0,0),H=Fr(y==null?void 0:y.getBorderColor()),M=Fr(y==null?void 0:y.getBackgroundColor()),U=1,_={x:C+U,y:C+U,width:R-(C+U)*2,height:L-(C+U)*2},re=gs(w,{alignment:nr.Left,fontSize:d??h,font:t,bounds:_}),te=re.line,oe=re.fontSize,de=(l=u??f)!==null&&l!==void 0?l:q;on(u||d!==void 0?e:r.acroField,de,t,oe);var Y={x:0+C/2,y:0+C/2,width:R-C,height:L-C,borderWidth:C??0,borderColor:H,textColor:de,font:t.name,fontSize:oe,color:M,textLines:[te],padding:U};return mt(z,_v(Y))},vx=function(r,e,t){var i,a,l=nn(e),u=nn(r.acroField),f=vi(e),d=vi(r.acroField),h=e.getRectangle(),m=e.getAppearanceCharacteristics(),y=e.getBorderStyle(),x=(i=y==null?void 0:y.getWidth())!==null&&i!==void 0?i:0,w=Ln(m==null?void 0:m.getRotation()),C=ji(h,w),E=C.width,D=C.height,R=yi(nt(nt({},h),{rotation:w})),L=Tt(0,0,0),z=Fr(m==null?void 0:m.getBorderColor()),q=Fr(m==null?void 0:m.getBackgroundColor()),H=r.getOptions(),M=r.getSelected();r.isSorted()&&H.sort();for(var U="",_=0,re=H.length;_1||a.length===1&&i)&&this.enableMultiselect();for(var f=new Array(a.length),d=0,h=a.length;d1||a.length===1&&i)&&this.enableMultiselect();for(var u=new Array(a.length),f=0,d=a.length;fi)throw new tx(t.length,i,this.getName());this.markAsDirty(),this.disableRichFormatting(),t?this.acroField.setValue(Ye.fromText(t)):this.acroField.removeValue()},e.prototype.getAlignment=function(){var t=this.acroField.getQuadding();return t===0?nr.Left:t===1?nr.Center:t===2?nr.Right:nr.Left},e.prototype.setAlignment=function(t){ui(t,"alignment",nr),this.markAsDirty(),this.acroField.setQuadding(t)},e.prototype.getMaxLength=function(){return this.acroField.getMaxLength()},e.prototype.setMaxLength=function(t){if(pn(t,"maxLength",0,Number.MAX_SAFE_INTEGER),this.markAsDirty(),t===void 0)this.acroField.removeMaxLength();else{var i=this.getText();if(i&&i.length>t)throw new rx(i.length,t,this.getName());this.acroField.setMaxLength(t)}},e.prototype.removeMaxLength=function(){this.markAsDirty(),this.acroField.removeMaxLength()},e.prototype.setImage=function(t){for(var i=this.getAlignment(),a=i===nr.Center?fi.Center:i===nr.Right?fi.Right:fi.Left,l=this.acroField.getWidgets(),u=0,f=l.length;u{const e=op[r]||{};let t=1;const i=[];return["Performance","Competence","Connaissance"].forEach(a=>{(e[a]||[]).forEach(l=>{i.push({id:`${r}-${a}-${t++}`,label:l,checked:!1,level:"ec",bucket:a})})}),i},bx=()=>{const[r,e]=xt.useState("CP1"),[t,i]=xt.useState(()=>_0("CP1")),[a,l]=xt.useState(""),[u,f]=xt.useState(""),[d,h]=xt.useState(""),[m,y]=xt.useState(""),[x,w]=xt.useState("neutre"),[C,E]=xt.useState(!1),[D,R]=xt.useState(""),[L,z]=xt.useState("gpt-4o-mini"),[q,H]=xt.useState(""),[M,U]=xt.useState(null),[_,re]=xt.useState(!1),[te,oe]=xt.useState(null),de=xt.useRef(null);xt.useEffect(()=>{i(_0(r))},[r]);const Y=xt.useMemo(()=>{const ne=["Performance","Competence","Connaissance"];return t.some(je=>je.bucket==="Unassigned")?["Unassigned",...ne]:ne},[t]),be=xt.useMemo(()=>t.some(ne=>ne.checked),[t]),xe=xt.useCallback((ne,je="info",se=!1)=>{U({id:Date.now(),message:ne,type:je,withProgress:se})},[]);xt.useEffect(()=>{if(!M||M.withProgress)return;const ne=setTimeout(()=>U(null),M.type==="info"?3e3:5e3);return()=>clearTimeout(ne)},[M]);const he=xt.useCallback((ne,je)=>{i(se=>se.map(Me=>Me.id===ne?{...Me,...je}:Me))},[]),le=xt.useCallback(ne=>{i(je=>je.map(se=>({...se,checked:ne})))},[]),ae=xt.useCallback(()=>{const ne=d.trim();ne.length<3||(i(je=>[...je,{id:`custom-${Date.now()}`,label:ne,checked:!1,level:"ec",bucket:"Unassigned",source:"Personnalisé"}]),h(""))},[d]),ge=xt.useCallback(ne=>{i(je=>je.filter(se=>se.id!==ne))},[]),we=xt.useCallback(ne=>{de.current=ne},[]),j=xt.useCallback(()=>{de.current=null,oe(null)},[]),J=xt.useCallback((ne,je)=>{je.preventDefault(),te!==ne&&oe(ne)},[te]),Oe=xt.useCallback((ne,je)=>{je.preventDefault(),oe(null);const se=de.current;se&&(i(Me=>Me.map(dt=>dt.id===se?{...dt,bucket:ne}:dt)),de.current=null)},[]),Ae=xt.useCallback(()=>{const ne=t.length,je=t.filter(Ie=>Ie.checked),se={na:je.filter(Ie=>Ie.level==="na").length,ec:je.filter(Ie=>Ie.level==="ec").length,ac:je.filter(Ie=>Ie.level==="ac").length,ma:je.filter(Ie=>Ie.level==="ma").length},Me=se.ac+se.ma,dt=ne?Math.round(Me/ne*100):0,wt=["Performance","Competence","Connaissance"];let Ce=`## BILAN D'ÉVALUATION DES COMPÉTENCES -`;Ce+=`================================================== +end`},N0=function(){for(var r=[],e=0;e"},es=function(r){return Ta(r,4)},Ky=function(r){if(Em(r))return es(r);if(Tm(r)){var e=ov(r),t=av(r);return""+es(e)+es(t)}var i=ms(r),a="0x"+i+" is not a valid UTF-8 or UTF-16 codepoint.";throw new Error(a)},Hy=function(r){var e=0,t=function(i){e|=1<=T.Zero&&h<=T.Seven?(i+=d,(i.length===3||!(m>="0"&&m<="7"))&&(l(parseInt(i,8)),i="")):l(h):h===T.BackSlash?a=!0:l(h)}return new Uint8Array(t)},e.prototype.decodeText=function(){var t=this.asBytes();return cv(t)?lv(t):xv(t)},e.prototype.decodeDate=function(){var t=this.decodeText(),i=nv(t);if(!i)throw new wv(t);return i},e.prototype.asString=function(){return this.value},e.prototype.clone=function(){return e.of(this.value)},e.prototype.toString=function(){return"("+this.value+")"},e.prototype.sizeInBytes=function(){return this.value.length+2},e.prototype.copyBytesInto=function(t,i){return t[i++]=T.LeftParen,i+=pr(this.value,t,i),t[i++]=T.RightParen,this.value.length+2},e.of=function(t){return new e(t)},e.fromDate=function(t){var i=yn(String(t.getUTCFullYear()),4,"0"),a=yn(String(t.getUTCMonth()+1),2,"0"),l=yn(String(t.getUTCDate()),2,"0"),u=yn(String(t.getUTCHours()),2,"0"),f=yn(String(t.getUTCMinutes()),2,"0"),d=yn(String(t.getUTCSeconds()),2,"0");return new e("D:"+i+a+l+u+f+d+"Z")},e})(Fr),rf=(function(){function r(e,t,i,a){var l=this;this.allGlyphsInFontSortedById=function(){for(var u=new Array(l.font.characterSet.length),f=0,d=u.length;f>3)]>>7-((w&7)<<0)&1,oe=3*te;f[N]=H[oe],f[N+1]=H[oe+1],f[N+2]=H[oe+2],f[N+3]=te>2)]>>6-((w&3)<<1)&3,oe=3*te;f[N]=H[oe],f[N+1]=H[oe+1],f[N+2]=H[oe+2],f[N+3]=te>1)]>>4-((w&1)<<2)&15,oe=3*te;f[N]=H[oe],f[N+1]=H[oe+1],f[N+2]=H[oe+2],f[N+3]=te>>3)]>>>7-(he&7)&1),ae=Y==D*255?0:255;d[xe+he]=ae<<24|Y<<16|Y<<8|Y}else if(m==2)for(var he=0;he>>2)]>>>6-((he&3)<<1)&3),ae=Y==D*85?0:255;d[xe+he]=ae<<24|Y<<16|Y<<8|Y}else if(m==4)for(var he=0;he>>1)]>>>4-((he&1)<<2)&15),ae=Y==D*17?0:255;d[xe+he]=ae<<24|Y<<16|Y<<8|Y}else if(m==8)for(var he=0;he>>2<<3));a==0;){if(a=D(e,x,1),l=D(e,x+1,2),x+=3,l==0){(x&7)!=0&&(x+=8-(x&7));var _=(x>>>3)+4,ee=e[_-4]|e[_-3]<<8;B&&(t=r.H.W(t,y+ee)),t.set(new i(e.buffer,e.byteOffset+_,ee),y),x=_+ee<<3,y+=ee;continue}if(B&&(t=r.H.W(t,y+(1<<17))),l==1&&(w=U.J,C=U.h,h=511,m=31),l==2){u=R(e,x,5)+257,f=R(e,x+5,5)+1,d=R(e,x+10,4)+4,x+=14;for(var te=1,oe=0;oe<38;oe+=2)U.Q[oe]=0,U.Q[oe+1]=0;for(var oe=0;oete&&(te=de)}x+=3*d,N(U.Q,te),H(U.Q,te,U.u),w=U.w,C=U.d,x=L(U.u,(1<>>4;if(!(he>>>8))t[y++]=he;else{if(he==256)break;var ae=y+he-254;if(he>264){var re=U.q[he-257];ae=y+(re>>>3)+R(e,x,re&7),x+=re&7}var pe=C[G(e,x)&m];x+=pe&15;var we=pe>>>4,j=U.c[we],J=(j>>>4)+D(e,x,j&15);for(x+=j&15;y>>4;if(y<=15)u[h]=y,h++;else{var x=0,w=0;y==16?(w=3+f(a,l,2),l+=2,x=u[h-1]):y==17?(w=3+f(a,l,3),l+=3):y==18&&(w=11+f(a,l,7),l+=7);for(var C=h+w;h>>1;ul&&(l=d),u++}for(;u>1,h=e[f+1],m=d<<4|h,y=t-h,x=e[f]<>>15-t;i[C]=m,x++}},r.H.l=function(e,t){for(var i=r.H.m.r,a=15-t,l=0;l>>a}},r.H.M=function(e,t,i){i=i<<(t&7);var a=t>>>3;e[a]|=i,e[a+1]|=i>>>8},r.H.I=function(e,t,i){i=i<<(t&7);var a=t>>>3;e[a]|=i,e[a+1]|=i>>>8,e[a+2]|=i>>>16},r.H.e=function(e,t,i){return(e[t>>>3]|e[(t>>>3)+1]<<8)>>>(t&7)&(1<>>3]|e[(t>>>3)+1]<<8|e[(t>>>3)+2]<<16)>>>(t&7)&(1<>>3]|e[(t>>>3)+1]<<8|e[(t>>>3)+2]<<16)>>>(t&7)},r.H.i=function(e,t){return(e[t>>>3]|e[(t>>>3)+1]<<8|e[(t>>>3)+2]<<16|e[(t>>>3)+3]<<24)>>>(t&7)},r.H.m=(function(){var e=Uint16Array,t=Uint32Array;return{K:new e(16),j:new e(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[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,999,999,999],T:[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,0,0,0],q:new e(32),p:[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,65535,65535],z:[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,0,0],c:new t(32),J:new e(512),_:[],h:new e(32),$:[],w:new e(32768),C:[],v:[],d:new e(32768),D:[],u:new e(512),Q:[],r:new e(32768),s:new t(286),Y:new t(30),a:new t(19),t:new t(15e3),k:new e(65536),g:new e(32768)}})(),(function(){for(var e=r.H.m,t=32768,i=0;i>>1|(a&1431655765)<<1,a=(a&3435973836)>>>2|(a&858993459)<<2,a=(a&4042322160)>>>4|(a&252645135)<<4,a=(a&4278255360)>>>8|(a&16711935)<<8,e.r[i]=(a>>>16|a<<16)>>>17}function l(u,f,d){for(;f--!=0;)u.push(0,d)}for(var i=0;i<32;i++)e.q[i]=e.S[i]<<3|e.T[i],e.c[i]=e.p[i]<<4|e.z[i];l(e._,144,8),l(e._,112,9),l(e._,24,7),l(e._,8,8),r.H.n(e._,9),r.H.A(e._,9,e.J),r.H.l(e._,9),l(e.$,32,5),r.H.n(e.$,5),r.H.A(e.$,5,e.h),r.H.l(e.$,5),l(e.Q,19,0),l(e.C,286,0),l(e.D,30,0),l(e.v,320,0)})(),r.H.N})();ue.decode._readInterlace=function(r,e){for(var t=e.width,i=e.height,a=ue.decode._getBPP(e),l=a>>3,u=Math.ceil(t*a/8),f=new Uint8Array(i*u),d=0,h=[0,0,4,0,2,0,1],m=[0,4,0,2,0,1,0],y=[8,8,8,4,4,2,2],x=[8,8,4,4,2,2,1],w=0;w<7;){for(var C=y[w],E=x[w],D=0,R=0,L=h[w];L>3];ee=ee>>7-(_&7)&1,f[U*u+(B>>3)]|=ee<<7-((B&7)<<0)}if(a==2){var ee=r[_>>3];ee=ee>>6-(_&7)&3,f[U*u+(B>>2)]|=ee<<6-((B&3)<<1)}if(a==4){var ee=r[_>>3];ee=ee>>4-(_&7)&15,f[U*u+(B>>1)]|=ee<<4-((B&1)<<2)}if(a>=8)for(var te=U*u+B*l,oe=0;oe>3)+oe];_+=a,B+=E}G++,U+=C}D*R!=0&&(d+=R*(1+H)),w=w+1}return f};ue.decode._getBPP=function(r){var e=[1,null,3,1,2,null,4][r.ctype];return e*r.depth};ue.decode._filterZero=function(r,e,t,i,a){var l=ue.decode._getBPP(e),u=Math.ceil(i*l/8),f=ue.decode._paeth;l=Math.ceil(l/8);var d=0,h=1,m=r[t],y=0;if(m>1&&(r[t]=[0,0,1][m-2]),m==3)for(y=l;y>>1)&255;for(var x=0;x>>1);for(;y>>1)}else{for(;y>8&255,r[e+1]=t&255},readUint:function(r,e){return r[e]*(256*256*256)+(r[e+1]<<16|r[e+2]<<8|r[e+3])},writeUint:function(r,e,t){r[e]=t>>24&255,r[e+1]=t>>16&255,r[e+2]=t>>8&255,r[e+3]=t&255},readASCII:function(r,e,t){for(var i="",a=0;a=0&&f>=0?(y=w*e+C<<2,x=(f+w)*a+u+C<<2):(y=(-f+w)*e-u+C<<2,x=w*a+C<<2),d==0)i[x]=r[y],i[x+1]=r[y+1],i[x+2]=r[y+2],i[x+3]=r[y+3];else if(d==1){var E=r[y+3]*.00392156862745098,D=r[y]*E,R=r[y+1]*E,L=r[y+2]*E,N=i[x+3]*(1/255),H=i[x]*N,G=i[x+1]*N,U=i[x+2]*N,B=1-E,_=E+N*B,ee=_==0?0:1/_;i[x+3]=255*_,i[x+0]=(D+H*B)*ee,i[x+1]=(R+G*B)*ee,i[x+2]=(L+U*B)*ee}else if(d==2){var E=r[y+3],D=r[y],R=r[y+1],L=r[y+2],N=i[x+3],H=i[x],G=i[x+1],U=i[x+2];E==N&&D==H&&R==G&&L==U?(i[x]=0,i[x+1]=0,i[x+2]=0,i[x+3]=0):(i[x]=D,i[x+1]=R,i[x+2]=L,i[x+3]=E)}else if(d==3){var E=r[y+3],D=r[y],R=r[y+1],L=r[y+2],N=i[x+3],H=i[x],G=i[x+1],U=i[x+2];if(E==N&&D==H&&R==G&&L==U)continue;if(E<220&&N>20)return!1}return!0};ue.encode=function(r,e,t,i,a,l,u){i==null&&(i=0),u==null&&(u=!1);var f=ue.encode.compress(r,e,t,i,[!1,!1,!1,0,u]);return ue.encode.compressPNG(f,-1),ue.encode._main(f,e,t,a,l)};ue.encodeLL=function(r,e,t,i,a,l,u,f){for(var d={ctype:0+(i==1?0:2)+(a==0?0:4),depth:l,frames:[]},h=(i+a)*l,m=h*e,y=0;y1,y=!1,x=33+(m?20:0);if(a.sRGB!=null&&(x+=13),a.pHYs!=null&&(x+=21),r.ctype==3){for(var w=r.plte.length,C=0;C>>24!=255&&(y=!0);x+=8+w*3+4+(y?8+w*1+4:0)}for(var E=0;E>>8&255,B=H>>>16&255;R[h+N+0]=G,R[h+N+1]=U,R[h+N+2]=B}if(h+=w*3,u(R,h,l(R,h-w*3-4,w*3+4)),h+=4,y){u(R,h,w),h+=4,d(R,h,"tRNS"),h+=4;for(var C=0;C>>24&255;h+=w,u(R,h,l(R,h-w-4,w+4)),h+=4}}for(var _=0,E=0;E>2,de>>2));for(var w=0;wxe&&ae==ke[D-xe])he[D]=he[D-xe];else{var re=N[ae];if(re==null&&(N[ae]=re=H.length,H.push(ae),H.length>=300))break;he[D]=re}}}var pe=H.length;pe<=256&&h==!1&&(pe<=2?y=1:pe<=4?y=2:pe<=16?y=4:y=8,y=Math.max(y,d));for(var w=0;w>1)]|=Ve[He+Ce]<<4-(Ce&1)*4;else if(y==2)for(var Ce=0;Ce>2)]|=Ve[He+Ce]<<6-(Ce&3)*2;else if(y==1)for(var Ce=0;Ce>3)]|=Ve[He+Ce]<<7-(Ce&7)*1}j=ze,m=3,Ne=1}else if(R==!1&&L.length==1){for(var ze=new Uint8Array(xe*we*3),nt=xe*we,D=0;DB&&(B=te),ee_&&(_=ee))}B==-1&&(G=U=B=_=0),a&&((G&1)==1&&G--,(U&1)==1&&U--);var de=(B-G+1)*(_-U+1);deD&&(D=H),GR&&(R=G))}D==-1&&(C=E=D=R=0),u&&((C&1)==1&&C--,(E&1)==1&&E--),l={x:C,y:E,width:D-C+1,height:R-E+1};var _=i[a];_.rect=l,_.blend=1,_.img=new Uint8Array(l.width*l.height*4),i[a-1].dispose==0?(ue._copyTile(h,e,t,_.img,l.width,l.height,-l.x,-l.y,0),ue.encode._prepareDiff(x,e,t,_.img,l)):ue._copyTile(x,e,t,_.img,l.width,l.height,-l.x,-l.y,0)};ue.encode._prepareDiff=function(r,e,t,i,a){ue._copyTile(r,e,t,i,a.width,a.height,-a.x,-a.y,2)};ue.encode._filterZero=function(r,e,t,i,a,l,u){var f=[],d=[0,1,2,3,4];l!=-1?d=[l]:(e*i>5e5||t==1)&&(d=[0]);var h;u&&(h={level:0});for(var m=u&&UZIP!=null?UZIP:ys,y=0;y>1)+256&255;if(l==4)for(var h=a;h>1)&255;for(var h=a;h>1)&255}if(l==4){for(var h=0;h>>1:t=t>>>1;r[e]=t}return r})(),update:function(r,e,t,i){for(var a=0;a>>8;return r},crc:function(r,e,t){return ue.crc.update(4294967295,r,e,t)^4294967295}};ue.quantize=function(r,e){var t=new Uint8Array(r),i=t.slice(0),a=new Uint32Array(i.buffer),l=ue.quantize.getKDtree(i,e),u=l[0],f=l[1];ue.quantize.planeDst;for(var d=t,h=a,m=d.length,y=new Uint8Array(t.length>>2),x=0;x>2]=R.ind,h[x>>2]=R.est.rgba}return{abuf:i.buffer,inds:y,plte:f}};ue.quantize.getKDtree=function(r,e,t){t==null&&(t=1e-4);var i=new Uint32Array(r.buffer),a={i0:0,i1:r.length,bst:null,est:null,tdst:0,left:null,right:null};a.bst=ue.quantize.stats(r,a.i0,a.i1),a.est=ue.quantize.estats(a.bst);for(var l=[a];l.lengthu&&(u=l[d].est.L,f=d);if(u=m||h.i1<=m;if(y){h.est.L=0;continue}var x={i0:h.i0,i1:m,bst:null,est:null,tdst:0,left:null,right:null};x.bst=ue.quantize.stats(r,x.i0,x.i1),x.est=ue.quantize.estats(x.bst);var w={i0:m,i1:h.i1,bst:null,est:null,tdst:0,left:null,right:null};w.bst={R:[],m:[],N:h.bst.N-x.bst.N};for(var d=0;d<16;d++)w.bst.R[d]=h.bst.R[d]-x.bst.R[d];for(var d=0;d<4;d++)w.bst.m[d]=h.bst.m[d]-x.bst.m[d];w.est=ue.quantize.estats(w.bst),h.left=x,h.right=w,l[f]=x,l.push(w)}l.sort(function(C,E){return E.bst.N-C.bst.N});for(var d=0;d0&&(u=r.right,f=r.left);var d=ue.quantize.getNearest(u,e,t,i,a);if(d.tdst<=l*l)return d;var h=ue.quantize.getNearest(f,e,t,i,a);return h.tdstl;)i-=4;if(t>=i)break;var f=e[t>>2];e[t>>2]=e[i>>2],e[i>>2]=f,t+=4,i-=4}for(;u(r,t,a)>l;)t-=4;return t+4};ue.quantize.vecDot=function(r,e,t){return r[e]*t[0]+r[e+1]*t[1]+r[e+2]*t[2]+r[e+3]*t[3]};ue.quantize.stats=function(r,e,t){for(var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],a=[0,0,0,0],l=t-e>>2,u=e;u>>0}};ue.M4={multVec:function(r,e){return[r[0]*e[0]+r[1]*e[1]+r[2]*e[2]+r[3]*e[3],r[4]*e[0]+r[5]*e[1]+r[6]*e[2]+r[7]*e[3],r[8]*e[0]+r[9]*e[1]+r[10]*e[2]+r[11]*e[3],r[12]*e[0]+r[13]*e[1]+r[14]*e[2]+r[15]*e[3]]},dot:function(r,e){return r[0]*e[0]+r[1]*e[1]+r[2]*e[2]+r[3]*e[3]},sml:function(r,e){return[r*e[0],r*e[1],r*e[2],r*e[3]]}};ue.encode.concatRGBA=function(r){for(var e=0,t=0;t1)throw new Error("Animated PNGs are not supported");var a=new Uint8Array(i[0]),l=Jy(a),u=l.rgbChannel,f=l.alphaChannel;this.rgbChannel=u;var d=f.some(function(h){return h<255});d&&(this.alphaChannel=f),this.type=Qy(t.ctype),this.width=t.width,this.height=t.height,this.bitsPerComponent=8}return r.load=function(e){return new r(e)},r})(),Pv=(function(){function r(e){this.image=e,this.bitsPerComponent=e.bitsPerComponent,this.width=e.width,this.height=e.height,this.colorSpace="DeviceRGB"}return r.for=function(e){return at(this,void 0,void 0,function(){var t;return lt(this,function(i){return t=_y.load(e),[2,new r(t)]})})},r.prototype.embedIntoContext=function(e,t){return at(this,void 0,void 0,function(){var i,a;return lt(this,function(l){return i=this.embedAlphaChannel(e),a=e.flateStream(this.image.rgbChannel,{Type:"XObject",Subtype:"Image",BitsPerComponent:this.image.bitsPerComponent,Width:this.image.width,Height:this.image.height,ColorSpace:this.colorSpace,SMask:i}),t?(e.assign(t,a),[2,t]):[2,e.register(a)]})})},r.prototype.embedAlphaChannel=function(e){if(this.image.alphaChannel){var t=e.flateStream(this.image.alphaChannel,{Type:"XObject",Subtype:"Image",Height:this.image.height,Width:this.image.width,BitsPerComponent:this.image.bitsPerComponent,ColorSpace:"DeviceGray",Decode:[0,1]});return e.register(t)}},r})(),Ev=(function(){function r(e,t,i){this.bytes=e,this.start=t||0,this.pos=this.start,this.end=t&&i?t+i:this.bytes.length}return Object.defineProperty(r.prototype,"length",{get:function(){return this.end-this.start},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isEmpty",{get:function(){return this.length===0},enumerable:!1,configurable:!0}),r.prototype.getByte=function(){return this.pos>=this.end?-1:this.bytes[this.pos++]},r.prototype.getUint16=function(){var e=this.getByte(),t=this.getByte();return e===-1||t===-1?-1:(e<<8)+t},r.prototype.getInt32=function(){var e=this.getByte(),t=this.getByte(),i=this.getByte(),a=this.getByte();return(e<<24)+(t<<16)+(i<<8)+a},r.prototype.getBytes=function(e,t){t===void 0&&(t=!1);var i=this.bytes,a=this.pos,l=this.end;if(e){var f=a+e;f>l&&(f=l),this.pos=f;var u=i.subarray(a,f);return t?new Uint8ClampedArray(u):u}else{var u=i.subarray(a,l);return t?new Uint8ClampedArray(u):u}},r.prototype.peekByte=function(){var e=this.getByte();return this.pos--,e},r.prototype.peekBytes=function(e,t){t===void 0&&(t=!1);var i=this.getBytes(e,t);return this.pos-=i.length,i},r.prototype.skip=function(e){e||(e=1),this.pos+=e},r.prototype.reset=function(){this.pos=this.start},r.prototype.moveStart=function(){this.start=this.pos},r.prototype.makeSubStream=function(e,t){return new r(this.bytes,e,t)},r.prototype.decode=function(){return this.bytes},r})(),$y=new Uint8Array(0),Oa=(function(){function r(e){if(this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=$y,this.minBufferLength=512,e)for(;this.minBufferLengthl&&(i=l)}else{for(;!this.eof;)this.readBlock();i=this.bufferLength}this.pos=i;var u=this.buffer.subarray(a,i);return t&&!(u instanceof Uint8ClampedArray)?new Uint8ClampedArray(u):u},r.prototype.peekByte=function(){var e=this.getByte();return this.pos--,e},r.prototype.peekBytes=function(e,t){t===void 0&&(t=!1);var i=this.getBytes(e,t);return this.pos-=i.length,i},r.prototype.skip=function(e){e||(e=1),this.pos+=e},r.prototype.reset=function(){this.pos=0},r.prototype.makeSubStream=function(e,t){for(var i=e+t;this.bufferLength<=i&&!this.eof;)this.readBlock();return new Ev(this.buffer,e,t)},r.prototype.decode=function(){for(;!this.eof;)this.readBlock();return this.buffer.subarray(0,this.bufferLength)},r.prototype.readBlock=function(){throw new rn(this.constructor.name,"readBlock")},r.prototype.ensureBuffer=function(e){var t=this.buffer;if(e<=t.byteLength)return t;for(var i=this.minBufferLength;i=0;--h)d[f+h]=y&255,y>>=8}},e})(Oa),t1=(function(r){ye(e,r);function e(t,i){var a=r.call(this,i)||this;return a.stream=t,a.firstDigit=-1,i&&(i=.5*i),a}return e.prototype.readBlock=function(){var t=8e3,i=this.stream.getBytes(t);if(!i.length){this.eof=!0;return}for(var a=i.length+1>>1,l=this.ensureBuffer(this.bufferLength+a),u=this.bufferLength,f=this.firstDigit,d=0,h=i.length;d=48&&m<=57)y=m&15;else if(m>=65&&m<=70||m>=97&&m<=102)y=(m&15)+9;else if(m===62){this.eof=!0;break}else continue;f<0?f=y:(l[u++]=f<<4|y,f=-1)}f>=0&&this.eof&&(l[u++]=f<<4,f=-1),this.firstDigit=f,this.bufferLength=u},e})(Oa),M0=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),r1=new Int32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),n1=new Int32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),i1=[new Int32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],o1=[new Int32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5],a1=(function(r){ye(e,r);function e(t,i){var a=r.call(this,i)||this;a.stream=t;var l=t.getByte(),u=t.getByte();if(l===-1||u===-1)throw new Error("Invalid header in flate stream: "+l+", "+u);if((l&15)!==8)throw new Error("Unknown compression method in flate stream: "+l+", "+u);if(((l<<8)+u)%31!==0)throw new Error("Bad FCHECK in flate stream: "+l+", "+u);if(u&32)throw new Error("FDICT bit set in flate stream: "+l+", "+u);return a.codeSize=0,a.codeBuf=0,a}return e.prototype.readBlock=function(){var t,i,a=this.stream,l=this.getBits(3);if(l&1&&(this.eof=!0),l>>=1,l===0){var u=void 0;if((u=a.getByte())===-1)throw new Error("Bad block header in flate stream");var f=u;if((u=a.getByte())===-1)throw new Error("Bad block header in flate stream");if(f|=u<<8,(u=a.getByte())===-1)throw new Error("Bad block header in flate stream");var d=u;if((u=a.getByte())===-1)throw new Error("Bad block header in flate stream");if(d|=u<<8,d!==(~f&65535)&&(f!==0||d!==0))throw new Error("Bad uncompressed block length in flate stream");this.codeBuf=0,this.codeSize=0;var h=this.bufferLength;t=this.ensureBuffer(h+f);var m=h+f;if(this.bufferLength=m,f===0)a.peekByte()===-1&&(this.eof=!0);else for(var y=h;y0;)G[L++]=_}x=this.generateHuffmanTable(G.subarray(0,C)),w=this.generateHuffmanTable(G.subarray(C,H))}else throw new Error("Unknown block type in flate stream");t=this.buffer;for(var oe=t?t.length:0,de=this.bufferLength;;){var Y=this.getCode(x);if(Y<256){de+1>=oe&&(t=this.ensureBuffer(de+1),oe=t.length),t[de++]=Y;continue}if(Y===256){this.bufferLength=de;return}Y-=257,Y=r1[Y];var ke=Y>>16;ke>0&&(ke=this.getBits(ke)),i=(Y&65535)+ke,Y=this.getCode(w),Y=n1[Y],ke=Y>>16,ke>0&&(ke=this.getBits(ke));var xe=(Y&65535)+ke;de+i>=oe&&(t=this.ensureBuffer(de+i),oe=t.length);for(var he=0;he>t,this.codeSize=a-=t,u},e.prototype.getCode=function(t){for(var i=this.stream,a=t[0],l=t[1],u=this.codeSize,f=this.codeBuf,d;u>16,y=h&65535;if(m<1||u>m,this.codeSize=u-m,y},e.prototype.generateHuffmanTable=function(t){var i=t.length,a=0,l;for(l=0;la&&(a=t[l]);for(var u=1<>=1;for(l=x;l0;if(!G||G<256)D[0]=G,R=1;else if(G>=258)if(G=0;u--)D[u]=y[f],f=w[f];else D[R++]=D[0];else if(G===256){C=9,m=258,R=0;continue}else{this.eof=!0,delete this.lzwState;break}if(U&&(w[m]=E,x[m]=x[E]+1,y[m]=D[0],m++,C=m+h&m+h-1?C:Math.min(Math.log(m+h)/.6931471805599453+1,12)|0),E=G,L+=R,i>>i&(1<0){var u=this.stream.getBytes(l);i.set(u,a),a+=l}}else{l=257-l;var f=t[1];i=this.ensureBuffer(a+l+1);for(var d=0;di.size())throw new ls(t,0,i.size());i.remove(t)}else{if(t!==0)throw new ls(t,0,0);this.setKids([])}},e.prototype.normalizedEntries=function(){var t=this.Kids();return t||(t=this.dict.context.obj([this.ref]),this.dict.set(P.of("Kids"),t)),{Kids:t}},e.fromDict=function(t,i){return new e(t,i)},e})(Dv),nf=(function(r){ye(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.Opt=function(){return this.dict.lookupMaybe(P.of("Opt"),Tt,Ye,kt)},e.prototype.setOpt=function(t){this.dict.set(P.of("Opt"),this.dict.context.obj(t))},e.prototype.getExportValues=function(){var t=this.Opt();if(t){if(t instanceof Tt||t instanceof Ye)return[t];for(var i=[],a=0,l=t.size();ai.size())throw new ls(t,0,i.size());i.remove(t)}},e.prototype.normalizeExportValues=function(){for(var t,i,a,l,u=(t=this.getExportValues())!==null&&t!==void 0?t:[],f=[],d=this.getWidgets(),h=0,m=d.length;h1){if(!this.hasFlag(Et.MultiSelect))throw new by;this.dict.set(P.of("V"),this.dict.context.obj(t))}this.updateSelectedIndices(t)},e.prototype.valuesAreValid=function(t){for(var i=this.getOptions(),a=function(d,h){var m=t[d].decodeText();if(!i.find(function(y){return m===(y.display||y.value).decodeText()}))return{value:!1}},l=0,u=t.length;l1){for(var i=new Array(t.length),a=this.getOptions(),l=function(d,h){var m=t[d].decodeText();i[d]=a.findIndex(function(y){return m===(y.display||y.value).decodeText()})},u=0,f=t.length;u0){var f=u.lookup(0,Tt,Ye),d=u.lookupMaybe(1,Tt,Ye);i.push({value:f,display:d||f})}}return i}return[]},e})(wo),ks=(function(r){ye(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.fromDict=function(t,i){return new e(t,i)},e.create=function(t){var i=t.obj({FT:"Ch",Ff:Et.Combo,Kids:[]}),a=t.register(i);return new e(i,a)},e})(Ov),cs=(function(r){ye(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.addField=function(t){var i=this.normalizedEntries().Kids;i==null||i.push(t)},e.prototype.normalizedEntries=function(){var t=this.Kids();return t||(t=this.dict.context.obj([]),this.dict.set(P.of("Kids"),t)),{Kids:t}},e.fromDict=function(t,i){return new e(t,i)},e.create=function(t){var i=t.obj({}),a=t.register(i);return new e(i,a)},e})(Dv),of=(function(r){ye(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.fromDict=function(t,i){return new e(t,i)},e})(wo),Cs=(function(r){ye(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.MaxLen=function(){var t=this.dict.lookup(P.of("MaxLen"));if(t instanceof Je)return t},e.prototype.Q=function(){var t=this.dict.lookup(P.of("Q"));if(t instanceof Je)return t},e.prototype.setMaxLength=function(t){this.dict.set(P.of("MaxLen"),Je.of(t))},e.prototype.removeMaxLength=function(){this.dict.delete(P.of("MaxLen"))},e.prototype.getMaxLength=function(){var t;return(t=this.MaxLen())===null||t===void 0?void 0:t.asNumber()},e.prototype.setQuadding=function(t){this.dict.set(P.of("Q"),Je.of(t))},e.prototype.getQuadding=function(){var t;return(t=this.Q())===null||t===void 0?void 0:t.asNumber()},e.prototype.setValue=function(t){this.dict.set(P.of("V"),t)},e.prototype.removeValue=function(){this.dict.delete(P.of("V"))},e.prototype.getValue=function(){var t=this.V();if(t instanceof Tt||t instanceof Ye)return t},e.fromDict=function(t,i){return new e(t,i)},e.create=function(t){var i=t.obj({FT:"Tx",Kids:[]}),a=t.register(i);return new e(i,a)},e})(wo),Fs=(function(r){ye(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.fromDict=function(t,i){return new e(t,i)},e.create=function(t){var i=t.obj({FT:"Btn",Ff:en.PushButton,Kids:[]}),a=t.register(i);return new e(i,a)},e})(nf),Ps=(function(r){ye(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.setValue=function(t){var i=this.getOnValues();if(!i.includes(t)&&t!==P.of("Off"))throw new _c;this.dict.set(P.of("V"),t);for(var a=this.getWidgets(),l=0,u=a.length;ll)throw new F0(i,l);for(var u=i,f=0,d=a.size();fu)return m.insertLeafNode(t,u)||h;u-=m.Count().asNumber()}m instanceof Bn&&(u-=1)}if(u===0){this.insertLeafKid(a.size(),t);return}throw new P0(i,"insertLeafNode")},e.prototype.removeLeafNode=function(t,i){i===void 0&&(i=!0);var a=this.Kids(),l=this.Count().asNumber();if(t>=l)throw new F0(t,l);for(var u=t,f=0,d=a.size();fu){m.removeLeafNode(u,i),i&&m.Kids().size()===0&&a.remove(f);return}else u-=m.Count().asNumber();if(m instanceof Bn)if(u===0){this.removeKid(f);return}else u-=1}throw new P0(t,"removeLeafNode")},e.prototype.ascend=function(t){t(this);var i=this.Parent();i&&i.ascend(t)},e.prototype.traverse=function(t){for(var i=this.Kids(),a=0,l=i.size();aNumber.MAX_SAFE_INTEGER)if(this.capNumbers){var a="Parsed number that is too large for some PDF readers: "+e+", using Number.MAX_SAFE_INTEGER instead.";return console.warn(a),Number.MAX_SAFE_INTEGER}else{var a="Parsed number that is too large for some PDF readers: "+e+", not capping.";console.warn(a)}return i},r.prototype.skipWhitespace=function(){for(;!this.bytes.done()&&Un[this.bytes.peek()];)this.bytes.next()},r.prototype.skipLine=function(){for(;!this.bytes.done();){var e=this.bytes.peek();if(e===U0||e===L0)return;this.bytes.next()}},r.prototype.skipComment=function(){if(this.bytes.peek()!==T.Percent)return!1;for(;!this.bytes.done();){var e=this.bytes.peek();if(e===U0||e===L0)return!0;this.bytes.next()}return!0},r.prototype.skipWhitespaceAndComments=function(){for(this.skipWhitespace();this.skipComment();)this.skipWhitespace()},r.prototype.matchKeyword=function(e){for(var t=this.bytes.offset(),i=0,a=e.length;i=this.length},r.prototype.offset=function(){return this.idx},r.prototype.slice=function(e,t){return this.bytes.slice(e,t)},r.prototype.position=function(){return{line:this.line,column:this.column,offset:this.idx}},r.of=function(e){return new r(e)},r.fromPDFRawStream=function(e){return r.of(Tv(e).decode())},r})(),x1=T.Space,ua=T.CarriageReturn,ca=T.Newline,fa=[T.s,T.t,T.r,T.e,T.a,T.m],Xl=[T.e,T.n,T.d,T.s,T.t,T.r,T.e,T.a,T.m],At={header:[T.Percent,T.P,T.D,T.F,T.Dash],eof:[T.Percent,T.Percent,T.E,T.O,T.F],obj:[T.o,T.b,T.j],endobj:[T.e,T.n,T.d,T.o,T.b,T.j],xref:[T.x,T.r,T.e,T.f],trailer:[T.t,T.r,T.a,T.i,T.l,T.e,T.r],startxref:[T.s,T.t,T.a,T.r,T.t,T.x,T.r,T.e,T.f],true:[T.t,T.r,T.u,T.e],false:[T.f,T.a,T.l,T.s,T.e],null:[T.n,T.u,T.l,T.l],stream:fa,streamEOF1:mt(fa,[x1,ua,ca]),streamEOF2:mt(fa,[ua,ca]),streamEOF3:mt(fa,[ua]),streamEOF4:mt(fa,[ca]),endstream:Xl,EOF1endstream:mt([ua,ca],Xl),EOF2endstream:mt([ua],Xl),EOF3endstream:mt([ca],Xl)},Mv=(function(r){ye(e,r);function e(t,i,a){a===void 0&&(a=!1);var l=r.call(this,t,a)||this;return l.context=i,l}return e.prototype.parseObject=function(){if(this.skipWhitespaceAndComments(),this.matchKeyword(At.true))return Ca.True;if(this.matchKeyword(At.false))return Ca.False;if(this.matchKeyword(At.null))return jr;var t=this.bytes.peek();if(t===T.LessThan&&this.bytes.peekAhead(1)===T.LessThan)return this.parseDictOrStream();if(t===T.LessThan)return this.parseHexString();if(t===T.LeftParen)return this.parseString();if(t===T.ForwardSlash)return this.parseName();if(t===T.LeftSquareBracket)return this.parseArray();if(sf[t])return this.parseNumberOrRef();throw new Py(this.bytes.position(),t)},e.prototype.parseNumberOrRef=function(){var t=this.parseRawNumber();this.skipWhitespaceAndComments();var i=this.bytes.offset();if(Sr[this.bytes.peek()]){var a=this.parseRawNumber();if(this.skipWhitespaceAndComments(),this.bytes.peek()===T.R)return this.bytes.assertNext(T.R),Rt.of(t,a)}return this.bytes.moveTo(i),Je.of(t)},e.prototype.parseHexString=function(){var t="";for(this.bytes.assertNext(T.LessThan);!this.bytes.done()&&this.bytes.peek()!==T.GreaterThan;)t+=Mn(this.bytes.next());return this.bytes.assertNext(T.GreaterThan),Ye.of(t)},e.prototype.parseString=function(){for(var t=0,i=!1,a="";!this.bytes.done();){var l=this.bytes.next();if(a+=Mn(l),i||(l===T.LeftParen&&(t+=1),l===T.RightParen&&(t-=1)),l===T.BackSlash?i=!i:i&&(i=!1),t===0)return Tt.of(a.substring(1,a.length-1))}throw new Ry(this.bytes.position())},e.prototype.parseName=function(){this.bytes.assertNext(T.ForwardSlash);for(var t="";!this.bytes.done();){var i=this.bytes.peek();if(Un[i]||ln[i])break;t+=Mn(i),this.bytes.next()}return P.of(t)},e.prototype.parseArray=function(){this.bytes.assertNext(T.LeftSquareBracket),this.skipWhitespaceAndComments();for(var t=kt.withContext(this.context);this.bytes.peek()!==T.RightSquareBracket;){var i=this.parseObject();t.push(i),this.skipWhitespaceAndComments()}return this.bytes.assertNext(T.RightSquareBracket),t},e.prototype.parseDict=function(){this.bytes.assertNext(T.LessThan),this.bytes.assertNext(T.LessThan),this.skipWhitespaceAndComments();for(var t=new Map;!this.bytes.done()&&this.bytes.peek()!==T.GreaterThan&&this.bytes.peekAhead(1)!==T.GreaterThan;){var i=this.parseName(),a=this.parseObject();t.set(i,a),this.skipWhitespaceAndComments()}this.skipWhitespaceAndComments(),this.bytes.assertNext(T.GreaterThan),this.bytes.assertNext(T.GreaterThan);var l=t.get(P.of("Type"));return l===P.of("Catalog")?zv.fromMapWithContext(t,this.context):l===P.of("Pages")?jv.fromMapWithContext(t,this.context):l===P.of("Page")?Bn.fromMapWithContext(t,this.context):ot.fromMapWithContext(t,this.context)},e.prototype.parseDictOrStream=function(){var t=this.bytes.position(),i=this.parseDict();if(this.skipWhitespaceAndComments(),!this.matchKeyword(At.streamEOF1)&&!this.matchKeyword(At.streamEOF2)&&!this.matchKeyword(At.streamEOF3)&&!this.matchKeyword(At.streamEOF4)&&!this.matchKeyword(At.stream))return i;var a=this.bytes.offset(),l,u=i.get(P.of("Length"));u instanceof Je?(l=a+u.asNumber(),this.bytes.moveTo(l),this.skipWhitespaceAndComments(),this.matchKeyword(At.endstream)||(this.bytes.moveTo(a),l=this.findEndOfStreamFallback(t))):l=this.findEndOfStreamFallback(t);var f=this.bytes.slice(a,l);return Fa.of(i,f)},e.prototype.findEndOfStreamFallback=function(t){for(var i=1,a=this.bytes.offset();!this.bytes.done()&&(a=this.bytes.offset(),this.matchKeyword(At.stream)?i+=1:this.matchKeyword(At.EOF1endstream)||this.matchKeyword(At.EOF2endstream)||this.matchKeyword(At.EOF3endstream)||this.matchKeyword(At.endstream)?i-=1:this.bytes.next(),i!==0););if(i!==0)throw new Ty(t);return a},e.forBytes=function(t,i,a){return new e(Rs.of(t),i,a)},e.forByteStream=function(t,i,a){return a===void 0&&(a=!1),new e(t,i,a)},e})(y1),w1=(function(r){ye(e,r);function e(t,i){var a=r.call(this,Rs.fromPDFRawStream(t),t.dict.context)||this,l=t.dict;return a.alreadyParsed=!1,a.shouldWaitForTick=i||(function(){return!1}),a.firstOffset=l.lookup(P.of("First"),Je).asNumber(),a.objectCount=l.lookup(P.of("N"),Je).asNumber(),a}return e.prototype.parseIntoContext=function(){return at(this,void 0,void 0,function(){var t,i,a,l,u,f,d,h;return lt(this,function(m){switch(m.label){case 0:if(this.alreadyParsed)throw new Jc("PDFObjectStreamParser","parseIntoContext");this.alreadyParsed=!0,t=this.parseOffsetsAndObjectNumbers(),i=0,a=t.length,m.label=1;case 1:return i=T.Space&&i<=T.Tilde;if(a&&(this.matchKeyword(At.xref)||this.matchKeyword(At.trailer)||this.matchKeyword(At.startxref)||this.matchIndirectObjectHeader())){this.bytes.moveTo(t);break}this.bytes.next()}},e.prototype.skipBinaryHeaderComment=function(){this.skipWhitespaceAndComments();try{var t=this.bytes.offset();this.parseIndirectObjectHeader(),this.bytes.moveTo(t)}catch{this.bytes.next(),this.skipWhitespaceAndComments()}},e.forBytesWithOptions=function(t,i,a,l){return new e(t,i,a,l)},e})(Mv),Cn=function(r){return 1<0&&(i[i.length]=+a),t[t.length]={cmd:e,args:i},i=[],a="",l=!1),e=h;else if([" ",","].includes(h)||h==="-"&&a.length>0&&a[a.length-1]!=="e"||h==="."&&l){if(a.length===0)continue;i.length===u?(t[t.length]={cmd:e,args:i},i=[+a],e==="M"&&(e="L"),e==="m"&&(e="l")):i[i.length]=+a,l=h===".",a=["-","."].includes(h)?h:""}else a+=h,h==="."&&(l=!0)}return a.length>0&&(i.length===u?(t[t.length]={cmd:e,args:i},i=[+a],e==="M"&&(e="L"),e==="m"&&(e="l")):i[i.length]=+a),t[t.length]={cmd:e,args:i},t},j1=function(r){qe=Ke=vt=pt=va=pa=0;for(var e=[],t=0;t1&&(x=Math.sqrt(x),t*=x,i*=x);var w=y/t,C=m/t,E=-m/i,D=y/i,R=w*f+C*d,L=E*f+D*d,N=w*r+C*e,H=E*r+D*e,G=(N-R)*(N-R)+(H-L)*(H-L),U=1/G-.25;U<0&&(U=0);var B=Math.sqrt(U);l===a&&(B=-B);var _=.5*(R+N)-B*(H-L),ee=.5*(L+H)+B*(N-R),te=Math.atan2(L-ee,R-_),oe=Math.atan2(H-ee,N-_),de=oe-te;de<0&&l===1?de+=2*Math.PI:de>0&&l===0&&(de-=2*Math.PI);for(var Y=Math.ceil(Math.abs(de/(Math.PI*.5+.001))),ke=[],xe=0;xer.length)return a-1;var D=e.heightAtSize(a),R=D+D*.2,L=R*l;if(L>Math.abs(t.height))return a-1;a+=1}return a},nx=function(r,e,t,i){for(var a=t.width/i,l=t.height,u=ep,f=vm(r);ua*.75;if(y)return u-1}var x=e.heightAtSize(u,{descender:!1});if(x>l)return u-1;u+=1}return u},ix=function(r){for(var e=r.length;e>0;e--)if(/\s/.test(r[e]))return e},ox=function(r,e,t,i){for(var a,l=r.length;l>0;){var u=r.substring(0,l),f=t.encodeText(u),d=t.widthOfTextAtSize(u,i);if(dx&&(x=B+G),C+f>w&&(w=C+f),h.push({text:N,encoded:H,width:G,height:f,x:B,y:C}),R=U==null?void 0:U.trim()}return{fontSize:i,lineHeight:d,lines:h,bounds:{x:m,y,width:x-m,height:w-y}}},ax=function(r,e){var t=e.fontSize,i=e.font,a=e.bounds,l=e.cellCount,u=tv(Ra(r));if(u.length>l)throw new ex(u.length,l);(t===void 0||t===0)&&(t=nx(u,i,a,l));for(var f=a.width/l,d=i.heightAtSize(t,{descender:!1}),h=a.y+(a.height/2-d/2),m=[],y=a.x,x=a.y,w=a.x+a.width,C=a.y+a.height,E=0,D=0;Ew&&(w=B+G),h+d>C&&(C=h+d),m.push({text:u,encoded:H,width:G,height:d,x:B,y:h}),E+=1,D+=N}return{fontSize:t,cells:m,bounds:{x:y,y:x,width:w-y,height:C-x}}},gs=function(r,e){var t=e.alignment,i=e.fontSize,a=e.font,l=e.bounds,u=tv(Ra(r));(i===void 0||i===0)&&(i=rp([u],a,l));var f=a.encodeText(u),d=a.widthOfTextAtSize(u,i),h=a.heightAtSize(i,{descender:!1}),m=t===or.Left?l.x:t===or.Center?l.x+l.width/2-d/2:t===or.Right?l.x+l.width-d:l.x,y=l.y+(l.height/2-h/2);return{fontSize:i,line:{text:u,encoded:f,width:d,height:h,x:m,y},bounds:{x:m,y,width:d,height:h}}},bo=function(r){return"normal"in r?r:{normal:r}},lx=/\/([^\0\t\n\f\r\ ]+)[\0\t\n\f\r\ ]+(\d*\.\d+|\d+)[\0\t\n\f\r\ ]+Tf/,vi=function(r){var e,t,i=(e=r.getDefaultAppearance())!==null&&e!==void 0?e:"",a=(t=Zc(i,lx).match)!==null&&t!==void 0?t:[],l=Number(a[2]);return isFinite(l)?l:void 0},sx=/(\d*\.\d+|\d+)[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]+(g|rg|k)/,on=function(r){var e,t=(e=r.getDefaultAppearance())!==null&&e!==void 0?e:"",i=Zc(t,sx).match,a=i??[],l=a[1],u=a[2],f=a[3],d=a[4],h=a[5];if(h==="g"&&l)return Yv(Number(l));if(h==="rg"&&l&&u&&f)return Dt(Number(l),Number(u),Number(f));if(h==="k"&&l&&u&&f&&d)return Qv(Number(l),Number(u),Number(f),Number(d))},an=function(r,e,t,i){var a;i===void 0&&(i=0);var l=[Ii(e).toString(),df((a=t==null?void 0:t.name)!==null&&a!==void 0?a:"dummy__noop",i).toString()].join(` +`);r.setDefaultAppearance(l)},ux=function(r,e){var t,i,a,l=on(e),u=on(r.acroField),f=e.getRectangle(),d=e.getAppearanceCharacteristics(),h=e.getBorderStyle(),m=(t=h==null?void 0:h.getWidth())!==null&&t!==void 0?t:0,y=Ln(d==null?void 0:d.getRotation()),x=ji(f,y),w=x.width,C=x.height,E=yi(tt(tt({},f),{rotation:y})),D=Dt(0,0,0),R=(i=Pr(d==null?void 0:d.getBorderColor()))!==null&&i!==void 0?i:D,L=Pr(d==null?void 0:d.getBackgroundColor()),N=Pr(d==null?void 0:d.getBackgroundColor(),.8),H=(a=l??u)!==null&&a!==void 0?a:D;an(l?e:r.acroField,H);var G={x:0+m/2,y:0+m/2,width:w-m,height:C-m,thickness:1.5,borderWidth:m,borderColor:R,markColor:H};return{normal:{on:mt(E,Ql(tt(tt({},G),{color:L,filled:!0}))),off:mt(E,Ql(tt(tt({},G),{color:L,filled:!1})))},down:{on:mt(E,Ql(tt(tt({},G),{color:N,filled:!0}))),off:mt(E,Ql(tt(tt({},G),{color:N,filled:!1})))}}},cx=function(r,e){var t,i,a,l=on(e),u=on(r.acroField),f=e.getRectangle(),d=e.getAppearanceCharacteristics(),h=e.getBorderStyle(),m=(t=h==null?void 0:h.getWidth())!==null&&t!==void 0?t:0,y=Ln(d==null?void 0:d.getRotation()),x=ji(f,y),w=x.width,C=x.height,E=yi(tt(tt({},f),{rotation:y})),D=Dt(0,0,0),R=(i=Pr(d==null?void 0:d.getBorderColor()))!==null&&i!==void 0?i:D,L=Pr(d==null?void 0:d.getBackgroundColor()),N=Pr(d==null?void 0:d.getBackgroundColor(),.8),H=(a=l??u)!==null&&a!==void 0?a:D;an(l?e:r.acroField,H);var G={x:w/2,y:C/2,width:w-m,height:C-m,borderWidth:m,borderColor:R,dotColor:H};return{normal:{on:mt(E,Jl(tt(tt({},G),{color:L,filled:!0}))),off:mt(E,Jl(tt(tt({},G),{color:L,filled:!1})))},down:{on:mt(E,Jl(tt(tt({},G),{color:N,filled:!0}))),off:mt(E,Jl(tt(tt({},G),{color:N,filled:!1})))}}},fx=function(r,e,t){var i,a,l,u,f,d=on(e),h=on(r.acroField),m=vi(e),y=vi(r.acroField),x=e.getRectangle(),w=e.getAppearanceCharacteristics(),C=e.getBorderStyle(),E=w==null?void 0:w.getCaptions(),D=(i=E==null?void 0:E.normal)!==null&&i!==void 0?i:"",R=(l=(a=E==null?void 0:E.down)!==null&&a!==void 0?a:D)!==null&&l!==void 0?l:"",L=(u=C==null?void 0:C.getWidth())!==null&&u!==void 0?u:0,N=Ln(w==null?void 0:w.getRotation()),H=ji(x,N),G=H.width,U=H.height,B=yi(tt(tt({},x),{rotation:N})),_=Dt(0,0,0),ee=Pr(w==null?void 0:w.getBorderColor()),te=Pr(w==null?void 0:w.getBackgroundColor()),oe=Pr(w==null?void 0:w.getBackgroundColor(),.8),de={x:L,y:L,width:G-L*2,height:U-L*2},Y=gs(D,{alignment:or.Center,fontSize:m??y,font:t,bounds:de}),ke=gs(R,{alignment:or.Center,fontSize:m??y,font:t,bounds:de}),xe=Math.min(Y.fontSize,ke.fontSize),he=(f=d??h)!==null&&f!==void 0?f:_;an(d||m!==void 0?e:r.acroField,he,t,xe);var ae={x:0+L/2,y:0+L/2,width:G-L,height:U-L,borderWidth:L,borderColor:ee,textColor:he,font:t.name,fontSize:xe};return{normal:mt(B,X0(tt(tt({},ae),{color:te,textLines:[Y.line]}))),down:mt(B,X0(tt(tt({},ae),{color:oe,textLines:[ke.line]})))}},dx=function(r,e,t){var i,a,l,u,f=on(e),d=on(r.acroField),h=vi(e),m=vi(r.acroField),y=e.getRectangle(),x=e.getAppearanceCharacteristics(),w=e.getBorderStyle(),C=(i=r.getText())!==null&&i!==void 0?i:"",E=(a=w==null?void 0:w.getWidth())!==null&&a!==void 0?a:0,D=Ln(x==null?void 0:x.getRotation()),R=ji(y,D),L=R.width,N=R.height,H=yi(tt(tt({},y),{rotation:D})),G=Dt(0,0,0),U=Pr(x==null?void 0:x.getBorderColor()),B=Pr(x==null?void 0:x.getBackgroundColor()),_,ee,te=r.isCombed()?0:1,oe={x:E+te,y:E+te,width:L-(E+te)*2,height:N-(E+te)*2};if(r.isMultiline()){var de=np(C,{alignment:r.getAlignment(),fontSize:h??m,font:t,bounds:oe});_=de.lines,ee=de.fontSize}else if(r.isCombed()){var de=ax(C,{fontSize:h??m,font:t,bounds:oe,cellCount:(l=r.getMaxLength())!==null&&l!==void 0?l:0});_=de.cells,ee=de.fontSize}else{var de=gs(C,{alignment:r.getAlignment(),fontSize:h??m,font:t,bounds:oe});_=[de.line],ee=de.fontSize}var Y=(u=f??d)!==null&&u!==void 0?u:G;an(f||h!==void 0?e:r.acroField,Y,t,ee);var ke={x:0+E/2,y:0+E/2,width:L-E,height:N-E,borderWidth:E??0,borderColor:U,textColor:Y,font:t.name,fontSize:ee,color:B,textLines:_,padding:te};return mt(H,_v(ke))},hx=function(r,e,t){var i,a,l,u=on(e),f=on(r.acroField),d=vi(e),h=vi(r.acroField),m=e.getRectangle(),y=e.getAppearanceCharacteristics(),x=e.getBorderStyle(),w=(i=r.getSelected()[0])!==null&&i!==void 0?i:"",C=(a=x==null?void 0:x.getWidth())!==null&&a!==void 0?a:0,E=Ln(y==null?void 0:y.getRotation()),D=ji(m,E),R=D.width,L=D.height,N=yi(tt(tt({},m),{rotation:E})),H=Dt(0,0,0),G=Pr(y==null?void 0:y.getBorderColor()),U=Pr(y==null?void 0:y.getBackgroundColor()),B=1,_={x:C+B,y:C+B,width:R-(C+B)*2,height:L-(C+B)*2},ee=gs(w,{alignment:or.Left,fontSize:d??h,font:t,bounds:_}),te=ee.line,oe=ee.fontSize,de=(l=u??f)!==null&&l!==void 0?l:H;an(u||d!==void 0?e:r.acroField,de,t,oe);var Y={x:0+C/2,y:0+C/2,width:R-C,height:L-C,borderWidth:C??0,borderColor:G,textColor:de,font:t.name,fontSize:oe,color:U,textLines:[te],padding:B};return mt(N,_v(Y))},vx=function(r,e,t){var i,a,l=on(e),u=on(r.acroField),f=vi(e),d=vi(r.acroField),h=e.getRectangle(),m=e.getAppearanceCharacteristics(),y=e.getBorderStyle(),x=(i=y==null?void 0:y.getWidth())!==null&&i!==void 0?i:0,w=Ln(m==null?void 0:m.getRotation()),C=ji(h,w),E=C.width,D=C.height,R=yi(tt(tt({},h),{rotation:w})),L=Dt(0,0,0),N=Pr(m==null?void 0:m.getBorderColor()),H=Pr(m==null?void 0:m.getBackgroundColor()),G=r.getOptions(),U=r.getSelected();r.isSorted()&&G.sort();for(var B="",_=0,ee=G.length;_1||a.length===1&&i)&&this.enableMultiselect();for(var f=new Array(a.length),d=0,h=a.length;d1||a.length===1&&i)&&this.enableMultiselect();for(var u=new Array(a.length),f=0,d=a.length;fi)throw new tx(t.length,i,this.getName());this.markAsDirty(),this.disableRichFormatting(),t?this.acroField.setValue(Ye.fromText(t)):this.acroField.removeValue()},e.prototype.getAlignment=function(){var t=this.acroField.getQuadding();return t===0?or.Left:t===1?or.Center:t===2?or.Right:or.Left},e.prototype.setAlignment=function(t){ui(t,"alignment",or),this.markAsDirty(),this.acroField.setQuadding(t)},e.prototype.getMaxLength=function(){return this.acroField.getMaxLength()},e.prototype.setMaxLength=function(t){if(gn(t,"maxLength",0,Number.MAX_SAFE_INTEGER),this.markAsDirty(),t===void 0)this.acroField.removeMaxLength();else{var i=this.getText();if(i&&i.length>t)throw new rx(i.length,t,this.getName());this.acroField.setMaxLength(t)}},e.prototype.removeMaxLength=function(){this.markAsDirty(),this.acroField.removeMaxLength()},e.prototype.setImage=function(t){for(var i=this.getAlignment(),a=i===or.Center?fi.Center:i===or.Right?fi.Right:fi.Left,l=this.acroField.getWidgets(),u=0,f=l.length;u{const e=op[r]||{};let t=1;const i=[];return["Performance","Competence","Connaissance"].forEach(a=>{(e[a]||[]).forEach(l=>{i.push({id:`${r}-${a}-${t++}`,label:l,checked:!1,level:"ec",bucket:a})})}),i},kx=()=>{const[r,e]=wt.useState("CP1"),[t,i]=wt.useState(()=>_0("CP1")),[a,l]=wt.useState(""),[u,f]=wt.useState(""),[d,h]=wt.useState(""),[m,y]=wt.useState(""),[x,w]=wt.useState("neutre"),[C,E]=wt.useState(!1),[D,R]=wt.useState("mistral-small-latest"),[L,N]=wt.useState(""),[H,G]=wt.useState([]),[U,B]=wt.useState(!1),[_,ee]=wt.useState(null),[te,oe]=wt.useState(!1),de=wt.useRef(null);wt.useEffect(()=>{i(_0(r))},[r]);const Y=wt.useMemo(()=>{const le=["Performance","Competence","Connaissance"];return t.some(Pe=>Pe.bucket==="Unassigned")?["Unassigned",...le]:le},[t]),ke=wt.useMemo(()=>t.some(le=>le.checked),[t]),xe=wt.useCallback((le,Pe="info",ge=!1)=>{const We=Date.now();G(it=>[...it,{id:We,message:le,type:Pe,withProgress:ge}]),ge||setTimeout(()=>{G(it=>it.filter(ht=>ht.id!==We))},Pe==="info"?3e3:5e3)},[]),he=wt.useCallback(()=>{G(le=>le.filter(Pe=>!Pe.withProgress))},[]),ae=wt.useCallback((le,Pe)=>{i(ge=>ge.map(We=>We.id===le?{...We,...Pe}:We))},[]),re=wt.useCallback(le=>{i(Pe=>Pe.map(ge=>({...ge,checked:le})))},[]),pe=wt.useCallback(()=>{const le=d.trim();le.length<3||(i(Pe=>[...Pe,{id:`custom-${Date.now()}`,label:le,checked:!1,level:"ec",bucket:"Unassigned",source:"Personnalisé"}]),h(""))},[d]),we=wt.useCallback(le=>{i(Pe=>Pe.filter(ge=>ge.id!==le))},[]),j=wt.useCallback(le=>{de.current=le},[]),J=wt.useCallback(()=>{de.current=null,ee(null)},[]),Ne=wt.useCallback((le,Pe)=>{Pe.preventDefault(),_!==le&&ee(le)},[_]),ze=wt.useCallback((le,Pe)=>{Pe.preventDefault(),ee(null);const ge=de.current;ge&&(i(We=>We.map(it=>it.id===ge?{...it,bucket:le}:it)),de.current=null)},[]),Ve=wt.useCallback(()=>{const le=t.length,Pe=t.filter(je=>je.checked),ge={na:Pe.filter(je=>je.level==="na").length,ec:Pe.filter(je=>je.level==="ec").length,ac:Pe.filter(je=>je.level==="ac").length,ma:Pe.filter(je=>je.level==="ma").length},We=ge.ac+ge.ma,it=le?Math.round(We/le*100):0,ht=["Performance","Competence","Connaissance"];let be=`## BILAN D'ÉVALUATION DES COMPÉTENCES +`;be+=`================================================== -`,(a||u)&&(Ce+=`Apprenant : ${(a+" "+u).trim()} +`,(a||u)&&(be+=`Apprenant : ${(a+" "+u).trim()} -`),Ce+=`### SYNTHÈSE GLOBALE : -`,Ce+=`- Non acquis : ${se.na} -`,Ce+=`- En cours d'acquisition : ${se.ec} -`,Ce+=`- Acquis : ${se.ac} -`,Ce+=`- Maîtrisé : ${se.ma} -`,Ce+=`- Total validés (Acquis + Maîtrisé) : ${Me} / ${ne} (${dt}%) +`),be+=`### SYNTHÈSE GLOBALE : +`,be+=`- Non acquis : ${ge.na} +`,be+=`- En cours d'acquisition : ${ge.ec} +`,be+=`- Acquis : ${ge.ac} +`,be+=`- Maîtrisé : ${ge.ma} +`,be+=`- Total validés (Acquis + Maîtrisé) : ${We} / ${le} (${it}%) -`;const ut=wt.map(Ie=>{const Ct=t.filter(Dt=>Dt.bucket===Ie);if(!Ct.length)return null;const Je=Ct.filter(Dt=>Dt.checked&&(Dt.level==="ac"||Dt.level==="ma")).length,qt=Math.round(Je/Ct.length*100);return{label:_l[Ie],ok:Je,total:Ct.length,pct:qt}}).filter(Boolean);ut.length&&(Ce+=`### DÉTAIL PAR CATÉGORIE (taux de validation / total) : -`,ut.forEach(Ie=>{Ce+=`- ${Ie.label} : ${Ie.pct}% (${Ie.ok}/${Ie.total}) -`}),Ce+=` -`);const qe=je.filter(Ie=>Ie.level==="ac"||Ie.level==="ma");Ce+=`### COMPÉTENCES VALIDÉES : -`,qe.length?Y0.forEach(Ie=>{const Ct=qe.filter(Je=>Je.bucket===Ie);Ct.length&&(Ce+=`• ${_l[Ie]} : -`,Ct.forEach(Je=>{Ce+=` - ${Je.label} (${Q0[Je.level]}) -`}))}):Ce+=`Aucune compétence validée pour l'instant. -`,Ce+=` -`;const jt=je.filter(Ie=>Ie.level==="na"||Ie.level==="ec");jt.length&&(Ce+=`### COMPÉTENCES À RENFORCER : -`,Y0.forEach(Ie=>{const Ct=jt.filter(Je=>Je.bucket===Ie);Ct.length&&(Ce+=`• ${_l[Ie]} : -`,Ct.forEach(Je=>{Ce+=` - ${Je.label} — ${Q0[Je.level]} -`}))}),Ce+=` -`),Ce+=`## RECOMMANDATIONS : -`,se.ma>se.ac&&se.ma>se.ec&&se.ma>se.na&&(Ce+=`- Proposer des projets plus complexes pour entretenir la motivation. -`,Ce+=`- Donner plus d'autonomie et de responsabilités. -`),se.ac>=se.ma&&se.ac>=se.ec&&(Ce+=`- Varier les exercices pour transformer les acquis en maîtrise. -`,Ce+=`- Introduire progressivement des notions avancées. -`),se.ec>se.ac&&se.ec>se.ma&&(Ce+=`- Renforcer la pratique guidée pour consolider les acquis fragiles. -`,Ce+=`- Planifier des révisions régulières sur les notions encore instables. -`),se.na>0&&(Ce+=`- Revoir en priorité les notions non acquises avec un accompagnement rapproché. -`,Ce+=`- Travailler avec des exercices simples et progressifs pour poser les bases. -`),Me===0&&(Ce+=`- Mettre en place un plan de formation renforcé avec objectifs courts et progressifs. -`,Ce+=`- Prévoir un suivi rapproché et des feedbacks fréquents. -`),Ce+=` -`,Ce+=`### INFORMATIONS COMPLÉMENTAIRES : -`,Ce+=`- Date d'évaluation : ${new Date().toLocaleDateString("fr-FR")} -`,Ce+=`- Nombre total de critères : ${ne} -`,Ce+=`- Sélectionnés : ${je.length} | Validés (Acquis/Maîtrisé) : ${Me} | À renforcer : ${jt.length} -`,m.trim()&&(Ce+=` +`;const Ge=ht.map(je=>{const Ct=t.filter(Pt=>Pt.bucket===je);if(!Ct.length)return null;const ft=Ct.filter(Pt=>Pt.checked&&(Pt.level==="ac"||Pt.level==="ma")).length,It=Math.round(ft/Ct.length*100);return{label:_l[je],ok:ft,total:Ct.length,pct:It}}).filter(Boolean);Ge.length&&(be+=`### DÉTAIL PAR CATÉGORIE (taux de validation / total) : +`,Ge.forEach(je=>{be+=`- ${je.label} : ${je.pct}% (${je.ok}/${je.total}) +`}),be+=` +`);const xt=Pe.filter(je=>je.level==="ac"||je.level==="ma");be+=`### COMPÉTENCES VALIDÉES : +`,xt.length?Y0.forEach(je=>{const Ct=xt.filter(ft=>ft.bucket===je);Ct.length&&(be+=`• ${_l[je]} : +`,Ct.forEach(ft=>{be+=` - ${ft.label} (${Q0[ft.level]}) +`}))}):be+=`Aucune compétence validée pour l'instant. +`,be+=` +`;const Gt=Pe.filter(je=>je.level==="na"||je.level==="ec");Gt.length&&(be+=`### COMPÉTENCES À RENFORCER : +`,Y0.forEach(je=>{const Ct=Gt.filter(ft=>ft.bucket===je);Ct.length&&(be+=`• ${_l[je]} : +`,Ct.forEach(ft=>{be+=` - ${ft.label} — ${Q0[ft.level]} +`}))}),be+=` +`),be+=`## RECOMMANDATIONS : +`,ge.ma>ge.ac&&ge.ma>ge.ec&&ge.ma>ge.na&&(be+=`- Proposer des projets plus complexes pour entretenir la motivation. +`,be+=`- Donner plus d'autonomie et de responsabilités. +`),ge.ac>=ge.ma&&ge.ac>=ge.ec&&(be+=`- Varier les exercices pour transformer les acquis en maîtrise. +`,be+=`- Introduire progressivement des notions avancées. +`),ge.ec>ge.ac&&ge.ec>ge.ma&&(be+=`- Renforcer la pratique guidée pour consolider les acquis fragiles. +`,be+=`- Planifier des révisions régulières sur les notions encore instables. +`),ge.na>0&&(be+=`- Revoir en priorité les notions non acquises avec un accompagnement rapproché. +`,be+=`- Travailler avec des exercices simples et progressifs pour poser les bases. +`),We===0&&(be+=`- Mettre en place un plan de formation renforcé avec objectifs courts et progressifs. +`,be+=`- Prévoir un suivi rapproché et des feedbacks fréquents. +`),be+=` +`,be+=`### INFORMATIONS COMPLÉMENTAIRES : +`,be+=`- Date d'évaluation : ${new Date().toLocaleDateString("fr-FR")} +`,be+=`- Nombre total de critères : ${le} +`,be+=`- Sélectionnés : ${Pe.length} | Validés (Acquis/Maîtrisé) : ${We} | À renforcer : ${Gt.length} +`,m.trim()&&(be+=` NOTE FORMATEUR : ${m.trim()} -`),H(Ce),xe("Observation générée.","success")},[m,a,t,u,xe]),We=xt.useCallback(ne=>{H(je=>C?`${ne} +`),N(be),xe("Observation générée.","success")},[m,a,t,u,xe]),Ae=wt.useCallback(le=>{N(Pe=>C?`${le} -${je||""}`.trim():`${je||""}${je?` +${Pe||""}`.trim():`${Pe||""}${Pe?` -`:""}${ne}`.trim())},[C]),De=xt.useCallback(()=>{const ne=t.filter(Ce=>Ce.checked),je=(Ce,ut)=>Ce.filter(qe=>qe.bucket===ut).map(qe=>qe.label),se=ne.filter(Ce=>Ce.level==="ac"),Me=ne.filter(Ce=>Ce.level==="ma"),dt=ne.filter(Ce=>Ce.level==="ec"),wt=ne.filter(Ce=>Ce.level==="na");return{prenom:a.trim(),nom:u.trim(),tone:x,counts:{total:t.length,selected:ne.length,acquis:se.length,maitrise:Me.length,inProgress:dt.length,notAcquired:wt.length},performance:{acquis:je(se,"Performance"),maitrise:je(Me,"Performance"),improve:je([...wt,...dt],"Performance")},competence:{acquis:je(se,"Competence"),maitrise:je(Me,"Competence"),improve:je([...wt,...dt],"Competence")},connaissance:{acquis:je(se,"Connaissance"),maitrise:je(Me,"Connaissance"),improve:je([...wt,...dt],"Connaissance")}}},[x,a,t,u]),Ge=xt.useCallback(async()=>{var Ce,ut,qe,jt,Ie,Ct;if(!D.trim()){xe("Renseigne ta clé OpenAI (champ sk-...).","error");return}const ne=De();if(!ne.counts.selected){xe("Sélectionne quelques critères avant d'utiliser l'IA.","error");return}const je=q.trim(),se=m.trim();re(!0),xe("Génération du résumé via OpenAI…","info",!0);const Me=async Je=>{const qt=await fetch("https://api.openai.com/v1/chat/completions",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${D.trim()}`},body:JSON.stringify({model:Je,temperature:.6,messages:[{role:"system",content:` -Tu es ingénieur pédagogique et formateur en développement web. -À partir des données (critères et niveaux), du bilan automatique affiché et des notes éventuelles, rédige une synthèse finale d'environ 8 à 10 phrases. -Contraintes : valoriser les réussites, évoquer les difficultés, reformuler les notes formateur, varier le vocabulaire et les connecteurs, adopter un ton professionnel bienveillant. - `},{role:"user",content:`Données JSON : ${JSON.stringify(ne)} +`:""}${le}`.trim())},[C]),He=wt.useCallback(()=>{const le=t.filter(be=>be.checked),Pe=(be,Ge)=>be.filter(xt=>xt.bucket===Ge).map(xt=>xt.label),ge=le.filter(be=>be.level==="ac"),We=le.filter(be=>be.level==="ma"),it=le.filter(be=>be.level==="ec"),ht=le.filter(be=>be.level==="na");return{prenom:a.trim(),nom:u.trim(),tone:x,counts:{total:t.length,selected:le.length,acquis:ge.length,maitrise:We.length,inProgress:it.length,notAcquired:ht.length},performance:{acquis:Pe(ge,"Performance"),maitrise:Pe(We,"Performance"),improve:Pe([...ht,...it],"Performance")},competence:{acquis:Pe(ge,"Competence"),maitrise:Pe(We,"Competence"),improve:Pe([...ht,...it],"Competence")},connaissance:{acquis:Pe(ge,"Connaissance"),maitrise:Pe(We,"Connaissance"),improve:Pe([...ht,...it],"Connaissance")}}},[x,a,t,u]),Ce=wt.useCallback(async()=>{var be,Ge,xt,Gt,je,Ct;const le=He();if(!le.counts.selected){xe("Sélectionne quelques critères avant d'utiliser l'IA.","error");return}const Pe=L.trim(),ge=m.trim();B(!0),xe("Génération du résumé via Mistral…","info",!0);const We=async ft=>{const It=await fetch("https://api.mistral.ai/v1/chat/completions",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${bx}`},body:JSON.stringify({model:ft,temperature:.6,messages:[{role:"system",content:`Tu es ingénieur pédagogique spécialisé dans la formation CDUI (Titre Professionnel Concepteur Développeur d'Interfaces Utilisateur, niveau 6). Tu maîtrises parfaitement les référentiels de compétences du titre, les CP1 à CP9, et les exigences de France Compétences. +À partir des données de l'évaluation (critères et niveaux d'acquisition), du bilan automatique et des notes du formateur, rédige une synthèse pédagogique finale de 8 à 10 phrases. +Contraintes : valoriser les réussites de l'apprenant, évoquer les axes de progression avec bienveillance, reformuler et enrichir les notes du formateur, varier le vocabulaire et les connecteurs, adopter un ton professionnel et encourageant, en lien avec les attendus du titre CDUI.`},{role:"user",content:`Données JSON : ${JSON.stringify(le)} Observation affichée : -${je} +${Pe} Notes formateur : -${se}`}]})});if(!qt.ok){const Dt=await qt.text();throw new Error(`HTTP ${qt.status} — ${Dt}`)}return qt.json()},dt=new Set,wt=[L,...J0.filter(Je=>Je!==L)];try{let Je="",qt=L;for(const Dt of wt)if(!dt.has(Dt)){dt.add(Dt);try{const Mt=await Me(Dt);if(Je=((qe=(ut=(Ce=Mt==null?void 0:Mt.choices)==null?void 0:Ce[0])==null?void 0:ut.message)==null?void 0:qe.content)||((Ct=(Ie=(jt=Mt==null?void 0:Mt.choices)==null?void 0:jt[0])==null?void 0:Ie.delta)==null?void 0:Ct.content)||"",qt=Dt,Je)break}catch(Mt){if(dt.size===wt.length)throw Mt}}if(!Je)throw new Error("Réponse vide du modèle.");We(`## RESUME FORMATEUR +${ge}`}]})});if(!It.ok){const Pt=await It.text();throw new Error(`HTTP ${It.status} — ${Pt}`)}return It.json()},it=new Set,ht=[D,...J0.filter(ft=>ft!==D)];try{let ft="",It=D;for(const Pt of ht)if(!it.has(Pt)){it.add(Pt);try{const Qt=await We(Pt);if(ft=((xt=(Ge=(be=Qt==null?void 0:Qt.choices)==null?void 0:be[0])==null?void 0:Ge.message)==null?void 0:xt.content)||((Ct=(je=(Gt=Qt==null?void 0:Qt.choices)==null?void 0:Gt[0])==null?void 0:je.delta)==null?void 0:Ct.content)||"",It=Pt,ft)break}catch(Qt){if(it.size===ht.length)throw Qt}}if(!ft)throw new Error("Réponse vide du modèle.");Ae(`## RÉSUMÉ IA (CDUI) ---------------------------- -${Je.trim()}`),xe(`Résumé OpenAI inséré (modèle : ${qt}).`,"success")}catch(Je){xe(`Erreur OpenAI : ${Je.message||Je}`,"error")}finally{U(Je=>Je&&{...Je,withProgress:!1}),re(!1)}},[m,De,We,q,D,L,xe]),ke=xt.useCallback(async()=>{var je;const ne=q.trim();if(ne)try{xe("Préparation du PDF…","info",!0);const se=await pi.create(),Me={w:595.28,h:841.89};let dt=se.addPage([Me.w,Me.h]);const wt=await se.embedFont(xo.TimesRoman),Ce=await se.embedFont(xo.TimesRomanBold),ut=11,qe=40,jt=Me.w-qe*2;let Ie=Me.h-130;const Ct=await fetch(Z0).then(ee=>ee.arrayBuffer()),Je=await se.embedPng(Ct),qt=Je.scale(.15),Dt=(ee,Ue)=>{var k;ee.drawImage(Je,{x:40,y:Me.h-80,width:qt.width,height:qt.height});const p=((k=zc[r])==null?void 0:k.h1)||"",V="Bilan d'évaluation"+(p?" – "+p:""),G=wt.widthOfTextAtSize(V,16);ee.drawText(V,{x:(Me.w-G)/2,y:Me.h-110,size:16,font:wt}),ee.drawText(`Page ${Ue}`,{x:Me.w-160,y:20,size:10,font:wt}),ee.drawText(new Date().toLocaleDateString("fr-FR"),{x:40,y:20,size:10,font:wt})},Mt=ee=>{const Ue=ee.split(/\s+/),p=[];let V="";for(const G of Ue){const k=V?`${V} ${G}`:G;(V.includes("**")?Ce:wt).widthOfTextAtSize(k.replace(/\*\*/g,""),ut)>jt?(V&&p.push(V),V=G):V=k}return V&&p.push(V),p},Pr=(ee=>{const Ue=ee.split(` -`),p=[];for(const V of Ue)/^###\s+/.test(V)?p.push({type:"h3",text:V.replace(/^###\s+/,"")}):/^##\s+/.test(V)?p.push({type:"h2",text:V.replace(/^##\s+/,"")}):/^#\s+/.test(V)?p.push({type:"h1",text:V.replace(/^#\s+/,"")}):V.trim()===""?p.push({type:"br"}):p.push({type:"p",text:V});return p})(ne);let At=1;Dt(dt,At),Ie-=40;for(const ee of Pr){if(Iese&&{...se,withProgress:!1})}},[r,a,u,q,xe]),rt=zc[r]||{h1:"",h2:""};return Fe.jsxs("div",{className:"bilan-wrapper",children:[Fe.jsx("img",{src:Z0,alt:"Logo watermark",className:"logo-bg"}),Fe.jsxs("div",{className:"bilan-container",children:[Fe.jsxs("div",{className:"header",children:[Fe.jsxs("div",{className:"controls controls-select",children:[Fe.jsx("label",{htmlFor:"cpSelect",children:Fe.jsx("strong",{children:"Choisir le CP :"})}),Fe.jsx("select",{id:"cpSelect",value:r,onChange:ne=>e(ne.target.value),children:Object.keys(op).map(ne=>Fe.jsx("option",{value:ne,children:ne},ne))})]}),Fe.jsxs("div",{children:[Fe.jsx("h1",{children:rt.h1}),Fe.jsx("h2",{children:rt.h2})]})]}),Fe.jsxs("div",{className:"controls identity",children:[Fe.jsx("input",{id:"prenom",placeholder:"Prénom",value:a,onChange:ne=>l(ne.target.value)}),Fe.jsx("input",{id:"nom",placeholder:"Nom",value:u,onChange:ne=>f(ne.target.value)})]}),Fe.jsxs("div",{className:"controls actions",children:[Fe.jsx("button",{type:"button",onClick:()=>le(!0),children:"Tout sélectionner"}),Fe.jsx("button",{type:"button",onClick:()=>le(!1),children:"Tout désélectionner"}),Fe.jsx("input",{id:"newCriterion",placeholder:"Ajouter un critère…",value:d,onChange:ne=>h(ne.target.value)}),Fe.jsx("button",{type:"button",onClick:ae,children:"Ajouter"})]}),Fe.jsx("div",{className:"competences-grid",children:Y.map(ne=>{const je=t.filter(se=>se.bucket===ne);return Fe.jsxs("div",{className:`competence-card bucket ${te===ne?"dragover":""}`,children:[Fe.jsxs("h4",{children:[_l[ne]," ",Fe.jsxs("span",{className:"badge",children:["(",je.length,")"]})]}),Fe.jsx("div",{className:"bucket-list",onDragOver:se=>J(ne,se),onDragLeave:()=>te===ne&&oe(null),onDrop:se=>Oe(ne,se),children:je.map(se=>Fe.jsxs("div",{className:"competence-item",draggable:!0,onDragStart:()=>we(se.id),onDragEnd:j,children:[Fe.jsx("input",{type:"checkbox",className:"competence-checkbox sel",checked:se.checked,onChange:Me=>he(se.id,{checked:Me.target.checked})}),Fe.jsx("label",{className:"competence-label",children:Fe.jsx("div",{children:se.label})}),Fe.jsxs("div",{className:"level-group",role:"radiogroup","aria-label":"Niveau",children:[Fe.jsx("span",{className:"level-title",children:"Niveau :"}),Sx.map(Me=>Fe.jsxs("span",{className:"level-pill",children:[Fe.jsx("input",{type:"radio",id:`lvl-${se.id}-${Me.key}`,name:`lvl-${se.id}`,value:Me.key,checked:se.level===Me.key,onChange:()=>he(se.id,{level:Me.key})}),Fe.jsxs("label",{htmlFor:`lvl-${se.id}-${Me.key}`,children:[Fe.jsx("span",{className:"short",children:Me.short}),Fe.jsx("span",{className:"long",children:Me.label})]})]},Me.key))]}),Fe.jsx("button",{type:"button",className:"remove-field-btn",title:"Supprimer",onClick:()=>ge(se.id),children:"×"})]},se.id))})]},ne)})}),Fe.jsxs("div",{className:"ai",children:[Fe.jsx("strong",{children:"Résumé"}),Fe.jsxs("div",{className:"row",children:[Fe.jsxs("div",{children:[Fe.jsx("label",{htmlFor:"aiNotes",children:"Notes formateur"}),Fe.jsx("textarea",{id:"aiNotes",value:m,onChange:ne=>y(ne.target.value)})]}),Fe.jsxs("div",{children:[Fe.jsx("label",{htmlFor:"aiTone",children:"Tonalité"}),Fe.jsxs("select",{id:"aiTone",value:x,onChange:ne=>w(ne.target.value),children:[Fe.jsx("option",{value:"neutre",children:"Neutre"}),Fe.jsx("option",{value:"valorisant",children:"Valorisant"}),Fe.jsx("option",{value:"exigeant",children:"Exigeant"})]}),Fe.jsxs("label",{className:"checkbox-inline",children:[Fe.jsx("input",{id:"aiPrepend",type:"checkbox",checked:C,onChange:ne=>E(ne.target.checked)})," ","Insérer en tête"]})]})]}),Fe.jsxs("div",{className:"row",children:[Fe.jsxs("div",{children:[Fe.jsx("label",{htmlFor:"openaiKey",children:"Clé API OpenAI"}),Fe.jsx("input",{id:"openaiKey",type:"password",placeholder:"sk-...",value:D,onChange:ne=>R(ne.target.value)})]}),Fe.jsxs("div",{children:[Fe.jsx("label",{htmlFor:"openaiModel",children:"Modèle"}),Fe.jsx("select",{id:"openaiModel",value:L,onChange:ne=>z(ne.target.value),children:J0.map(ne=>Fe.jsx("option",{value:ne,children:ne},ne))})]})]}),Fe.jsxs("div",{className:"controls ai-actions",children:[Fe.jsx("button",{type:"button",onClick:Ae,children:"Résumé..."}),Fe.jsx("button",{type:"button",onClick:Ge,disabled:_,children:"Générer l'observation"}),_&&Fe.jsxs("div",{className:"ai-loader","aria-live":"polite",children:[Fe.jsx("span",{className:"spinner"}),Fe.jsx("span",{children:"Génération en cours…"})]}),be&&Fe.jsx("button",{type:"button",onClick:ke,children:"Exporter PDF"})]})]}),M&&Fe.jsx("div",{className:`status ${M.type}`,children:M.withProgress?Fe.jsxs(Fe.Fragment,{children:[Fe.jsx("div",{children:M.message}),Fe.jsx("div",{className:"progress",children:Fe.jsx("div",{className:"progress-bar"})})]}):M.message}),Fe.jsx("textarea",{id:"observation",className:"observation-textarea",placeholder:"Observation générée ici…",value:q,onChange:ne=>H(ne.target.value)})]})]})};function kx(){return Fe.jsx(bx,{})}om.createRoot(document.getElementById("root")).render(Fe.jsx(xt.StrictMode,{children:Fe.jsx(kx,{})})); +${ft.trim()}`),xe(`Résumé Mistral inséré (modèle : ${It}).`,"success")}catch(ft){xe(`Erreur Mistral : ${ft.message||ft}`,"error")}finally{he(),B(!1)}},[m,He,he,Ae,D,L,xe]),nt=wt.useCallback(async()=>{var Pe;const le=L.trim();if(!le){xe("Génère d'abord un bilan avant d'exporter le PDF.","error");return}try{xe("Préparation du PDF…","info",!0);const ge=await pi.create(),We={w:595.28,h:841.89};let it=ge.addPage([We.w,We.h]);const ht=await ge.embedFont(xo.TimesRoman),be=await ge.embedFont(xo.TimesRomanBold),Ge=11,xt=40,Gt=We.w-xt*2;let je=We.h-130;const Ct=await fetch(Z0).then(Te=>Te.arrayBuffer()),ft=await ge.embedPng(Ct),It=ft.scale(.15),Pt=(Te,p)=>{var A;Te.drawImage(ft,{x:40,y:We.h-80,width:It.width,height:It.height});const q=((A=zc[r])==null?void 0:A.h1)||"",V="Bilan d'évaluation"+(q?" – "+q:""),k=ht.widthOfTextAtSize(V,16);Te.drawText(V,{x:(We.w-k)/2,y:We.h-110,size:16,font:ht}),Te.drawText(`Page ${p}`,{x:We.w-160,y:20,size:10,font:ht}),Te.drawText(new Date().toLocaleDateString("fr-FR"),{x:40,y:20,size:10,font:ht})},Qt=Te=>{const p=Te.split(/\s+/),q=[];let V="";for(const k of p){const A=V?`${V} ${k}`:k;(V.includes("**")?be:ht).widthOfTextAtSize(A.replace(/\*\*/g,""),Ge)>Gt?(V&&q.push(V),V=k):V=A}return V&&q.push(V),q},Ut=(Te=>{const p=Te.split(` +`),q=[];for(const V of p)/^###\s+/.test(V)?q.push({type:"h3",text:V.replace(/^###\s+/,"")}):/^##\s+/.test(V)?q.push({type:"h2",text:V.replace(/^##\s+/,"")}):/^#\s+/.test(V)?q.push({type:"h1",text:V.replace(/^#\s+/,"")}):V.trim()===""?q.push({type:"br"}):q.push({type:"p",text:V});return q})(le);let $t=1;Pt(it,$t),je-=40;for(const Te of Ut){if(jee(le.target.value),children:Object.keys(op).map(le=>Fe.jsx("option",{value:le,children:le},le))})]}),Fe.jsxs("div",{className:"topbar-center",children:[Fe.jsx("span",{className:"topbar-title",children:St.h1}),Fe.jsx("span",{className:"topbar-subtitle",children:St.h2})]}),Fe.jsxs("div",{className:"topbar-right",children:[Fe.jsx("input",{className:"topbar-input",placeholder:"Prénom",value:a,onChange:le=>l(le.target.value)}),Fe.jsx("input",{className:"topbar-input",placeholder:"Nom",value:u,onChange:le=>f(le.target.value)}),Fe.jsxs("div",{className:"topbar-actions",children:[Fe.jsx("button",{type:"button",className:"btn-topbar-secondary",onClick:Ve,children:"📝 Générer"}),Fe.jsx("button",{type:"button",className:"btn-topbar-primary",onClick:Ce,disabled:U,children:"✨ Résumer avec l'IA"}),ke&&Fe.jsx("button",{type:"button",className:"btn-topbar-success",onClick:nt,children:"📄 PDF"})]})]})]}),Fe.jsxs("main",{className:"app-main",children:[Fe.jsxs("div",{className:"criteria-toolbar",children:[Fe.jsxs("div",{className:"criteria-toolbar-left",children:[Fe.jsx("button",{type:"button",className:"btn-text",onClick:()=>re(!0),children:"Tout sélectionner"}),Fe.jsx("span",{className:"toolbar-sep",children:"·"}),Fe.jsx("button",{type:"button",className:"btn-text",onClick:()=>re(!1),children:"Tout désélectionner"})]}),Fe.jsxs("div",{className:"criteria-toolbar-right",children:[Fe.jsx("input",{className:"toolbar-add-input",placeholder:"Ajouter un critère…",value:d,onChange:le=>h(le.target.value),onKeyDown:le=>le.key==="Enter"&&pe()}),Fe.jsx("button",{type:"button",className:"btn-toolbar-add",onClick:pe,title:"Ajouter",children:"+"})]})]}),Fe.jsx("div",{className:"competences-grid",children:Y.map(le=>{const Pe=t.filter(ge=>ge.bucket===le);return Fe.jsxs("div",{className:`competence-card bucket ${_===le?"dragover":""}`,children:[Fe.jsxs("h4",{children:[_l[le]," ",Fe.jsxs("span",{className:"badge",children:["(",Pe.length,")"]})]}),Fe.jsx("div",{className:"bucket-list",onDragOver:ge=>Ne(le,ge),onDragLeave:()=>_===le&&ee(null),onDrop:ge=>ze(le,ge),children:Pe.map(ge=>Fe.jsxs("div",{className:"competence-item",draggable:!0,onDragStart:()=>j(ge.id),onDragEnd:J,children:[Fe.jsx("input",{id:`check-${ge.id}`,type:"checkbox",className:"competence-checkbox sel",checked:ge.checked,onChange:We=>ae(ge.id,{checked:We.target.checked})}),Fe.jsx("label",{className:"competence-label",htmlFor:`check-${ge.id}`,children:Fe.jsx("div",{children:ge.label})}),Fe.jsx("div",{className:"level-group",role:"radiogroup","aria-label":"Niveau",children:Sx.map(We=>Fe.jsxs("span",{className:"level-pill",children:[Fe.jsx("input",{type:"radio",id:`lvl-${ge.id}-${We.key}`,name:`lvl-${ge.id}`,value:We.key,checked:ge.level===We.key,onChange:()=>ae(ge.id,{level:We.key})}),Fe.jsxs("label",{htmlFor:`lvl-${ge.id}-${We.key}`,children:[Fe.jsx("span",{className:"short",children:We.short}),Fe.jsx("span",{className:"long",children:We.label})]})]},We.key))}),Fe.jsx("button",{type:"button",className:"remove-field-btn",title:"Supprimer",onClick:()=>we(ge.id),children:"×"})]},ge.id))})]},le)})}),Fe.jsx("div",{className:"section-divider",children:Fe.jsx("span",{children:"Synthèse & Export"})}),Fe.jsx("div",{className:"evaluation-summary-section",children:Fe.jsxs("div",{className:"summary-grid",children:[Fe.jsxs("div",{className:"summary-inputs-panel",children:[Fe.jsxs("div",{className:"input-group",children:[Fe.jsx("label",{htmlFor:"aiNotes",children:"Notes du formateur"}),Fe.jsx("textarea",{id:"aiNotes",placeholder:"Saisissez des commentaires sur le comportement, le travail, etc.",value:m,onChange:le=>y(le.target.value)})]}),Fe.jsxs("div",{className:"row-options",children:[Fe.jsxs("div",{className:"input-group",children:[Fe.jsx("label",{htmlFor:"aiTone",children:"Tonalité de l'IA"}),Fe.jsxs("select",{id:"aiTone",value:x,onChange:le=>w(le.target.value),children:[Fe.jsx("option",{value:"neutre",children:"Neutre 😐"}),Fe.jsx("option",{value:"valorisant",children:"Valorisant 🌟"}),Fe.jsx("option",{value:"exigeant",children:"Exigeant 🎯"})]})]}),Fe.jsx("div",{className:"input-group-checkbox",children:Fe.jsxs("label",{className:"checkbox-label",children:[Fe.jsx("input",{id:"aiPrepend",type:"checkbox",checked:C,onChange:le=>E(le.target.checked)}),Fe.jsx("span",{children:"Insérer en tête du bilan"})]})})]}),Fe.jsxs("div",{className:"api-config-section",children:[Fe.jsx("button",{type:"button",className:"api-toggle-btn",onClick:()=>oe(!te),children:te?"▲ Masquer les paramètres IA":"⚙️ Paramètres Mistral IA"}),te&&Fe.jsxs("div",{className:"api-fields-grid",children:[Fe.jsxs("div",{className:"input-group",children:[Fe.jsx("label",{htmlFor:"mistralModel",children:"Modèle Mistral"}),Fe.jsx("select",{id:"mistralModel",value:D,onChange:le=>R(le.target.value),children:J0.map(le=>Fe.jsx("option",{value:le,children:le},le))})]}),Fe.jsxs("div",{className:"input-group",children:[Fe.jsx("label",{children:"Clé API"}),Fe.jsx("input",{type:"text",readOnly:!0,value:"••••••••••••••••",style:{color:"var(--text-success, #16a34a)",cursor:"default"}})]})]})]})]}),Fe.jsxs("div",{className:"summary-output-panel",children:[Fe.jsx("label",{htmlFor:"observation",children:"Aperçu du bilan final (Markdown)"}),Fe.jsx("textarea",{id:"observation",className:"observation-textarea",placeholder:"Le bilan d'évaluation généré apparaîtra ici. Vous pouvez également le modifier manuellement.",value:L,onChange:le=>N(le.target.value)})]})]})})]}),Fe.jsx("div",{className:"toast-container",children:H.map(le=>Fe.jsx("div",{className:`toast toast-${le.type}`,children:le.withProgress?Fe.jsxs(Fe.Fragment,{children:[Fe.jsx("span",{children:le.message}),Fe.jsx("div",{className:"toast-progress",children:Fe.jsx("div",{className:"toast-progress-bar"})})]}):Fe.jsx("span",{children:le.message})},le.id))})]})};function Cx(){return Fe.jsx(kx,{})}om.createRoot(document.getElementById("root")).render(Fe.jsx(wt.StrictMode,{children:Fe.jsx(Cx,{})})); diff --git a/dist/assets/index-DijV1x30.css b/dist/assets/index-DijV1x30.css deleted file mode 100644 index 9139732..0000000 --- a/dist/assets/index-DijV1x30.css +++ /dev/null @@ -1 +0,0 @@ -@import"https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap";:root{--font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;--font-mono: "JetBrains Mono", monospace;--bg-main: #f8fafc;--bg-card: #ffffff;--text-primary: #0f172a;--text-secondary: #475569;--text-muted: #64748b;--color-indigo-50: #f5f3ff;--color-indigo-100: #e0e7ff;--color-indigo-500: #625fff;--color-indigo-600: #4f46e5;--color-indigo-700: #4338ca;--border-slate-200: #e2e8f0;--border-slate-300: #cbd5e1;--radius-md: 8px;--radius-lg: 12px;--radius-xl: 16px;--radius-2xl: 24px;--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, .05);--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .05), 0 2px 4px -2px rgba(0, 0, 0, .05);--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .08), 0 4px 6px -4px rgba(0, 0, 0, .08);--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);--transition: all .2s cubic-bezier(.4, 0, .2, 1)}.bilan-wrapper{font-family:var(--font-sans);min-height:100vh;padding:3rem 1.5rem;background-color:var(--bg-main);background-image:radial-gradient(at 0% 0%,rgba(98,95,255,.03) 0px,transparent 50%),radial-gradient(at 100% 0%,rgba(139,92,246,.03) 0px,transparent 50%);display:flex;justify-content:center;align-items:flex-start;position:relative;overflow-x:hidden;color:var(--text-primary);-webkit-font-smoothing:antialiased}.logo-bg{position:absolute;width:70%;max-width:800px;opacity:.02;top:10%;left:50%;transform:translate(-50%);pointer-events:none;filter:grayscale(1)}.bilan-container{position:relative;width:100%;max-width:1200px;background:var(--bg-card);border-radius:var(--radius-2xl);padding:40px;box-shadow:var(--shadow-xl);border:1px solid var(--border-slate-200);z-index:1}.header{margin-bottom:35px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:16px;border-bottom:1px solid var(--border-slate-200);padding-bottom:30px}.back-btn{align-self:flex-start;border:1px solid var(--border-slate-300);border-radius:999px;padding:8px 18px;font-weight:600;font-size:13px;cursor:pointer;color:var(--text-secondary);background:#fff;box-shadow:var(--shadow-sm);transition:var(--transition)}.back-btn:hover{transform:translateY(-2px);background:#f8fafc;color:var(--text-primary);box-shadow:var(--shadow-md)}.header h1{margin:0;font-size:36px;font-weight:800;letter-spacing:-.025em;background:linear-gradient(135deg,var(--color-indigo-500) 0%,#8b5cf6 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.header h2{margin:8px 0 0;color:var(--text-secondary);font-size:18px;font-weight:500;max-width:700px;line-height:1.5}.controls{background:#f8fafc;border-radius:var(--radius-xl);padding:20px;margin:20px 0;display:flex;align-items:center;flex-wrap:wrap;gap:16px;justify-content:center;border:1px solid var(--border-slate-200)}.controls.controls-select{margin:0 0 10px;background:transparent;border:none;padding:0}.controls.controls-select label{font-size:15px;color:var(--text-primary);font-weight:600}.controls input,.controls select,.bilan-container select,.ai input,.ai select,.ai textarea{padding:11px 16px;border-radius:var(--radius-lg);border:1px solid var(--border-slate-300);background:#fff;color:var(--text-primary);font-size:14px;font-weight:500;outline:none;transition:var(--transition);box-shadow:var(--shadow-sm)}.controls input::placeholder,.ai input::placeholder,.ai textarea::placeholder,.bilan-container textarea::placeholder{color:var(--text-muted);font-weight:400}.controls input:focus,.controls select:focus,.bilan-container select:focus,.ai input:focus,.ai select:focus,.ai textarea:focus,.bilan-container textarea:focus{border-color:var(--color-indigo-500);box-shadow:0 0 0 4px #625fff1f,var(--shadow-sm);background:#fff}.controls.identity input{flex:1;min-width:200px}.controls.actions input{flex:2;min-width:250px}.bilan-container button,.ai-actions button{border:1px solid var(--border-slate-300);border-radius:var(--radius-lg);padding:11px 20px;font-size:14px;font-weight:600;cursor:pointer;color:var(--text-secondary);background:#fff;box-shadow:var(--shadow-sm);transition:var(--transition)}.bilan-container button:hover,.ai-actions button:hover{background:#f8fafc;color:var(--text-primary);border-color:var(--border-slate-300);transform:translateY(-1px);box-shadow:var(--shadow-md)}.controls.actions button:last-of-type,.ai-actions button:nth-of-type(2),.ai-actions button:last-of-type{background:var(--color-indigo-500);border-color:var(--color-indigo-500);color:#fff}.controls.actions button:last-of-type:hover,.ai-actions button:nth-of-type(2):hover,.ai-actions button:last-of-type:hover{background:var(--color-indigo-600);border-color:var(--color-indigo-600);color:#fff;box-shadow:0 4px 12px #625fff40}.bilan-container button:disabled,.ai-actions button:disabled{opacity:.5;cursor:not-allowed;transform:none!important;box-shadow:var(--shadow-sm)!important;background:#f1f5f9!important;border-color:var(--border-slate-200)!important;color:var(--text-muted)!important}.competences-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:24px;margin-top:25px}.competence-card{background:#fff;border-radius:var(--radius-xl);padding:24px;border:1px solid var(--border-slate-200);box-shadow:var(--shadow-md);min-height:200px;display:flex;flex-direction:column}.competence-card h4{display:flex;justify-content:space-between;align-items:center;margin:0 0 18px;font-size:16px;font-weight:700;color:var(--text-primary)}.badge{background:var(--color-indigo-50);color:var(--color-indigo-500);border-radius:999px;padding:3px 10px;font-size:12px;font-weight:600;border:1px solid rgba(98,95,255,.15)}.competence-card:nth-of-type(1){border-top:4px solid #10b981}.competence-card:nth-of-type(2){border-top:4px solid #3b82f6}.competence-card:nth-of-type(3){border-top:4px solid #8b5cf6}.bucket-list{display:flex;flex-direction:column;gap:16px;min-height:120px;flex-grow:1}.bucket.dragover{border-color:var(--color-indigo-500);background:var(--color-indigo-50);border-style:dashed}.competence-item{border:1px solid var(--border-slate-200);padding:16px;border-radius:var(--radius-lg);cursor:grab;position:relative;background:#f8fafc;transition:var(--transition);display:flex;flex-direction:column;gap:12px}.competence-item:hover{background:#fff;border-color:var(--color-indigo-500);transform:translateY(-2px);box-shadow:var(--shadow-md)}.competence-item.dragging{opacity:.5;transform:scale(.98);background:var(--color-indigo-50);border-color:var(--color-indigo-500);border-style:dashed;box-shadow:var(--shadow-lg)}.competence-item .competence-label{font-weight:600;color:var(--text-primary);font-size:14px;padding-right:25px;cursor:pointer;display:flex;align-items:flex-start;gap:10px;line-height:1.4}.remove-field-btn{background:#ef4444;color:#fff;border:0!important;border-radius:50%!important;width:22px!important;height:22px!important;padding:0!important;font-size:14px!important;cursor:pointer;display:flex!important;align-items:center!important;justify-content:center!important;position:absolute;top:12px;right:12px;opacity:0;transform:scale(.8);transition:var(--transition);box-shadow:none!important}.competence-item:hover .remove-field-btn{opacity:1;transform:scale(1)}.remove-field-btn:hover{background:#dc2626!important;transform:scale(1.1)!important}.competence-checkbox,#aiPrepend{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:20px;height:20px;border-radius:6px;border:1px solid var(--border-slate-300);background:#fff;cursor:pointer;position:relative;transition:var(--transition);flex-shrink:0;margin-top:1px}.competence-checkbox:hover{background:#f8fafc;border-color:var(--color-indigo-500)}.competence-checkbox:checked{background:linear-gradient(135deg,#10b981,#059669);border-color:#059669;box-shadow:0 0 0 3px #10b98126}.competence-checkbox:checked:after{content:"✔";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:11px;font-weight:700;color:#fff}.bilan-container select{appearance:none;-webkit-appearance:none;-moz-appearance:none;padding-right:40px;background-image:url("data:image/svg+xml;charset=UTF-8,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7L10 12L15 7' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:16px;cursor:pointer}.bilan-container select option{background:#fff;color:var(--text-primary)}#openaiKey{background:#fff;padding-left:16px}.bilan-container textarea{width:100%;min-height:120px;padding:14px;border-radius:var(--radius-lg);border:1px solid var(--border-slate-300);background:#fff;color:var(--text-primary);resize:vertical;transition:var(--transition);font-family:var(--font-sans)}#observation,.observation-textarea{min-height:220px;font-size:14px;line-height:1.6;margin-top:25px;width:100%;font-family:var(--font-mono);background:#f8fafc;border-color:var(--border-slate-200);color:var(--text-secondary)}.level-group{margin-top:8px;display:flex;flex-wrap:wrap;gap:6px;align-items:center;border-top:1px solid var(--border-slate-200);padding-top:12px}.level-title{font-size:12px;font-weight:600;color:var(--text-secondary);margin-right:4px}.level-pill{position:relative;overflow:hidden;border-radius:999px;transition:var(--transition)}.level-pill input{position:absolute;opacity:0;pointer-events:none}.level-pill label{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:999px;border:1px solid var(--border-slate-300);background:#fff;color:var(--text-secondary);font-size:11px;font-weight:600;cursor:pointer;-webkit-user-select:none;user-select:none;transition:var(--transition);max-width:38px;overflow:hidden}.level-pill label .short,.level-pill label .long{transition:opacity .2s ease,transform .2s ease}.level-pill label .long{opacity:0;white-space:nowrap;transform:translate(8px);display:none}.level-pill label:hover{max-width:180px;padding-right:14px;background:#f1f5f9;color:var(--text-primary);border-color:var(--text-muted)}.level-pill label:hover .long{display:inline-block;opacity:1;transform:translate(0)}.level-pill label:hover .short{display:none;opacity:0}.level-pill input[value=na]:checked+label{max-width:180px;padding-right:14px;border-color:#fca5a5;background:#fee2e2;color:#991b1b;box-shadow:0 0 0 3px #ef44441f}.level-pill input[value=ec]:checked+label{max-width:180px;padding-right:14px;border-color:#fde68a;background:#fef3c7;color:#92400e;box-shadow:0 0 0 3px #f59e0b1f}.level-pill input[value=ac]:checked+label{max-width:180px;padding-right:14px;border-color:#a7f3d0;background:#dcfce7;color:#166534;box-shadow:0 0 0 3px #22c55e1f}.level-pill input[value=ma]:checked+label{max-width:180px;padding-right:14px;border-color:#c7d2ff;background:#e0e7ff;color:#3730a3;box-shadow:0 0 0 3px #625fff1f}.level-pill input:checked+label .long{display:inline-block;opacity:1;transform:translate(0)}.level-pill input:checked+label .short{display:none;opacity:0}.ai{margin-top:35px;background:#f8fafc;border-radius:var(--radius-xl);padding:30px;border:1px solid var(--border-slate-200);color:var(--text-primary);display:flex;flex-direction:column;gap:20px;box-shadow:var(--shadow-sm)}.ai strong{font-size:22px;font-weight:800;text-align:center;margin-bottom:5px;background:linear-gradient(135deg,var(--color-indigo-500) 0%,#8b5cf6 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;display:block}.ai .row{display:grid;grid-template-columns:2fr 1fr;gap:24px}.ai label{display:block;margin-bottom:8px;font-size:14px;font-weight:600;color:var(--text-secondary)}.ai-actions,.ai .controls{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:10px;background:transparent;border:none;padding:0}#aiPrepend{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:18px;height:18px;border-radius:4px;border:1px solid var(--border-slate-300);background:#fff;cursor:pointer;position:relative;transition:var(--transition);vertical-align:middle;margin-right:6px}#aiPrepend:checked{background:var(--color-indigo-500);border-color:var(--color-indigo-500)}#aiPrepend:checked:after{content:"✔";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:10px;font-weight:700;color:#fff}.checkbox-inline{display:flex;align-items:center;font-size:13px;font-weight:600;color:var(--text-secondary);margin-top:15px;cursor:pointer}.status{margin:20px auto;max-width:100%;padding:12px 20px;border-radius:var(--radius-lg);font-weight:600;font-size:14px;text-align:center;border:1px solid var(--border-slate-200);background:#fff;color:var(--text-primary);box-shadow:var(--shadow-sm);display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center}.status.info{border-left:4px solid var(--color-indigo-500);background:var(--color-indigo-50);color:var(--color-indigo-700)}.status.success{border-left:4px solid #10b981;background:#dcfce7;color:#15803d}.status.error{border-left:4px solid #ef4444;background:#fee2e2;color:#b91c1c}.status .progress{width:100%;max-width:300px;height:6px;background:var(--border-slate-200);border-radius:999px;overflow:hidden}.status .progress-bar{width:100%;height:100%;background:linear-gradient(90deg,var(--color-indigo-500),#8b5cf6);animation:progress-stripes 1.5s linear infinite}.ai-loader{display:inline-flex;align-items:center;gap:10px;padding:10px 18px;border-radius:var(--radius-lg);background:var(--color-indigo-50);border:1px solid rgba(98,95,255,.15);color:var(--color-indigo-600);font-size:14px;font-weight:600}.spinner{width:16px;height:16px;border-radius:50%;border:2px solid rgba(98,95,255,.2);border-top-color:var(--color-indigo-500);animation:spin .8s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes progress-stripes{0%{transform:translate(-100%)}to{transform:translate(100%)}}@media(max-width:768px){.bilan-wrapper{padding:1.5rem 1rem}.bilan-container{padding:24px}.controls{flex-direction:column;align-items:stretch}.controls input,.controls select{width:100%}.ai .row{grid-template-columns:1fr;gap:16px}.competences-grid{grid-template-columns:1fr}} diff --git a/dist/assets/index-hUIr4MzD.css b/dist/assets/index-hUIr4MzD.css new file mode 100644 index 0000000..af127a3 --- /dev/null +++ b/dist/assets/index-hUIr4MzD.css @@ -0,0 +1 @@ +@import"https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap";:root{--font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;--font-mono: "JetBrains Mono", monospace;--bg-main: #f8fafc;--bg-card: rgba(255, 255, 255, .85);--text-primary: #0f172a;--text-secondary: #334155;--text-muted: #64748b;--color-indigo-50: #f5f3ff;--color-indigo-100: #e0e7ff;--color-indigo-500: #625fff;--color-indigo-600: #4f46e5;--color-indigo-700: #4338ca;--border-light: rgba(255, 255, 255, .6);--border-slate-200: rgba(226, 232, 240, .8);--border-slate-300: #cbd5e1;--radius-sm: 8px;--radius-md: 12px;--radius-lg: 16px;--radius-xl: 24px;--shadow-flat: 0 1px 2px 0 rgba(0, 0, 0, .05);--shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, .04), 0 1px 1px 0 rgba(0, 0, 0, .02);--shadow-card: 0 4px 20px -2px rgba(98, 95, 255, .03), 0 2px 6px -1px rgba(0, 0, 0, .02);--shadow-card-hover: 0 20px 25px -5px rgba(98, 95, 255, .08), 0 10px 10px -5px rgba(0, 0, 0, .04);--shadow-container: 0 30px 60px -15px rgba(15, 23, 42, .08), inset 0 1px 0 rgba(255, 255, 255, .6);--transition: all .25s cubic-bezier(.4, 0, .2, 1)}.app-shell{min-height:100vh;background-color:#f8fafc;background-image:radial-gradient(circle at 10% 20%,rgba(98,95,255,.06) 0%,transparent 40%),radial-gradient(circle at 90% 80%,rgba(139,92,246,.04) 0%,transparent 45%);font-family:var(--font-sans);color:var(--text-primary);-webkit-font-smoothing:antialiased}.app-topbar{position:sticky;top:0;z-index:100;height:64px;background:#fffffff7;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid var(--border-slate-200);box-shadow:0 1px 8px #0000000a;display:flex;align-items:center;justify-content:space-between;padding:0 24px;gap:16px}.topbar-left{display:flex;align-items:center;gap:12px;flex-shrink:0}.topbar-logo{height:28px;width:auto;display:block}.topbar-divider{width:1px;height:24px;background:var(--border-slate-200)}.cp-select{-moz-appearance:none;appearance:none;-webkit-appearance:none;background:var(--color-indigo-50);color:var(--color-indigo-600);border:1px solid rgba(98,95,255,.2);border-radius:999px;padding:6px 28px 6px 12px;font-size:13px;font-weight:700;font-family:var(--font-sans);cursor:pointer;outline:none;background-image:url("data:image/svg+xml;charset=UTF-8,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7L10 12L15 7' stroke='%234f46e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 8px center;background-size:14px;transition:var(--transition)}.cp-select:hover{background-color:var(--color-indigo-100);border-color:var(--color-indigo-500)}.topbar-center{display:flex;flex-direction:column;align-items:center;gap:1px;flex:1;min-width:0}.topbar-title{font-size:15px;font-weight:800;color:var(--text-primary);letter-spacing:-.02em;white-space:nowrap}.topbar-subtitle{font-size:11px;font-weight:500;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.topbar-right{display:flex;align-items:center;gap:8px;flex-shrink:0}.topbar-input{width:110px;height:36px;padding:0 12px;border-radius:var(--radius-md);border:1px solid var(--border-slate-200);background:#f8fafc;color:var(--text-primary);font-size:13px;font-weight:500;font-family:var(--font-sans);outline:none;transition:var(--transition)}.topbar-input::placeholder{color:var(--text-muted);font-weight:400}.topbar-input:focus{border-color:var(--color-indigo-500);background:#fff;box-shadow:0 0 0 3px #625fff1a}.topbar-actions{display:flex;align-items:center;gap:8px;padding-left:12px;border-left:1px solid var(--border-slate-200);margin-left:4px}.btn-topbar-secondary{height:36px;padding:0 14px;border-radius:var(--radius-md);border:1px solid var(--border-slate-300);background:#fff;color:var(--text-secondary);font-size:13px;font-weight:700;font-family:var(--font-sans);cursor:pointer;transition:var(--transition);white-space:nowrap;box-shadow:var(--shadow-flat)}.btn-topbar-secondary:hover{border-color:var(--color-indigo-500);color:var(--color-indigo-600);box-shadow:0 2px 8px #625fff1a}.btn-topbar-primary{height:36px;padding:0 14px;border-radius:var(--radius-md);border:none;background:linear-gradient(135deg,#6d28d9,#a855f7,#db2777);color:#fff;font-size:13px;font-weight:800;font-family:var(--font-sans);cursor:pointer;transition:var(--transition);white-space:nowrap;box-shadow:0 4px 14px #a855f74d}.btn-topbar-primary:hover:not(:disabled){background:linear-gradient(135deg,#7c3aed,#c084fc,#ec4899);box-shadow:0 6px 20px #a855f773;transform:translateY(-1px)}.btn-topbar-primary:disabled{opacity:.5;cursor:not-allowed;transform:none}.btn-topbar-success{height:36px;padding:0 14px;border-radius:var(--radius-md);border:none;background:linear-gradient(135deg,#10b981,#059669);color:#fff;font-size:13px;font-weight:700;font-family:var(--font-sans);cursor:pointer;transition:var(--transition);white-space:nowrap;box-shadow:0 4px 14px #10b98133}.btn-topbar-success:hover{background:linear-gradient(135deg,#059669,#047857);box-shadow:0 6px 18px #10b98159;transform:translateY(-1px)}.app-main{max-width:1240px;margin:0 auto;padding:32px 24px 64px}.criteria-toolbar{display:flex;align-items:center;justify-content:space-between;height:44px;padding:0 4px;margin-bottom:20px;gap:16px}.criteria-toolbar-left{display:flex;align-items:center;gap:6px}.btn-text{background:none;border:none;padding:4px 8px;font-size:12.5px;font-weight:600;color:var(--text-muted);cursor:pointer;font-family:var(--font-sans);transition:var(--transition);border-radius:var(--radius-sm);box-shadow:none}.btn-text:hover{color:var(--color-indigo-600);background:var(--color-indigo-50);transform:none;box-shadow:none}.toolbar-sep{color:var(--border-slate-300);font-size:14px;-webkit-user-select:none;user-select:none}.criteria-toolbar-right{display:flex;align-items:center;gap:8px}.toolbar-add-input{height:34px;width:240px;padding:0 12px;border-radius:var(--radius-sm);border:1px solid var(--border-slate-200);background:#fff;color:var(--text-primary);font-size:13px;font-family:var(--font-sans);outline:none;transition:var(--transition);box-shadow:var(--shadow-flat)}.toolbar-add-input::placeholder{color:var(--text-muted)}.toolbar-add-input:focus{border-color:var(--color-indigo-500);box-shadow:0 0 0 3px #625fff1a}.btn-toolbar-add{height:34px;width:34px;border-radius:var(--radius-sm);border:1px solid var(--border-slate-300);background:#fff;color:var(--text-secondary);font-size:20px;font-weight:300;font-family:var(--font-sans);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:var(--transition);box-shadow:var(--shadow-flat);line-height:1;padding:0}.btn-toolbar-add:hover{background:var(--color-indigo-50);border-color:var(--color-indigo-500);color:var(--color-indigo-600);transform:none;box-shadow:var(--shadow-flat)}.section-divider{display:flex;align-items:center;gap:16px;margin:48px 0 32px;color:var(--text-muted);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}.section-divider:before,.section-divider:after{content:"";flex:1;height:1px;background:var(--border-slate-200)}.competences-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:24px;margin-top:24px}.competence-card{background:#f8fafc73;border-radius:var(--radius-lg);padding:24px;border:1px solid var(--border-slate-200);box-shadow:var(--shadow-premium);min-height:200px;display:flex;flex-direction:column;gap:16px;overflow:hidden}.competence-card h4{display:flex;justify-content:space-between;align-items:center;margin:0 -24px;padding:12px 24px;font-size:12px;font-weight:800;color:var(--text-primary);text-transform:uppercase;letter-spacing:.06em;border-radius:var(--radius-lg) var(--radius-lg) 0 0;background:#f8fafccc;border-bottom:1px solid var(--border-slate-200)}.badge{background:var(--color-indigo-100);color:var(--color-indigo-600);border-radius:999px;padding:2px 8px;font-size:11px;font-weight:700;border:1px solid rgba(98,95,255,.15)}.competence-card:nth-of-type(1){border-top:4px solid #10b981;box-shadow:var(--shadow-premium),0 -2px 10px #10b9810d}.competence-card:nth-of-type(2){border-top:4px solid #3b82f6;box-shadow:var(--shadow-premium),0 -2px 10px #3b52f60d}.competence-card:nth-of-type(3){border-top:4px solid #8b5cf6;box-shadow:var(--shadow-premium),0 -2px 10px #8b5cf60d}.bucket-list{display:flex;flex-direction:column;gap:12px;min-height:120px;flex-grow:1}.bucket.dragover{border-color:var(--color-indigo-500);background:#625fff0d;border-style:dashed}.competence-item{border:1px solid var(--border-slate-200);padding:10px 12px;border-radius:var(--radius-md);cursor:grab;background:#fff;transition:var(--transition);display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px 10px;box-shadow:var(--shadow-card);position:relative}.competence-item:hover{background:#fff;border-color:var(--color-indigo-500);transform:translateY(-3px);box-shadow:var(--shadow-card-hover)}.competence-item.dragging{opacity:.45;transform:scale(.97);background:var(--color-indigo-50);border-color:var(--color-indigo-500);border-style:dashed;box-shadow:var(--shadow-card-hover)}.competence-item .competence-label{flex:1;min-width:0;font-weight:600;color:var(--text-primary);font-size:13px;cursor:pointer;line-height:1.4;padding-right:0;order:2}.remove-field-btn{background:#fee2e2;color:#ef4444;border:0!important;border-radius:50%!important;width:20px!important;height:20px!important;padding:0!important;font-size:12px!important;cursor:pointer;display:flex!important;align-items:center!important;justify-content:center!important;flex-shrink:0;opacity:0;transform:scale(.8);transition:var(--transition);box-shadow:none!important;position:static;order:3}.competence-item:hover .remove-field-btn{opacity:1;transform:scale(1)}.remove-field-btn:hover{background:#ef4444!important;color:#fff}.competence-checkbox{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:18px;height:18px;border-radius:5px;border:1px solid var(--border-slate-300);background:#fff;cursor:pointer;position:relative;transition:var(--transition);flex-shrink:0;margin-top:1px;order:1}.competence-checkbox:hover{background:var(--color-indigo-50);border-color:var(--color-indigo-500)}.competence-checkbox:checked{background:linear-gradient(135deg,#10b981,#059669);border-color:#059669;box-shadow:0 0 0 3px #10b98126}.competence-checkbox:checked:after{content:"✔";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:10px;font-weight:700;color:#fff}#openaiKey{background:#fff;padding-left:12px}#observation,.observation-textarea{min-height:220px;font-size:13.5px;line-height:1.6;width:100%;font-family:var(--font-mono);background:#f8fafcb3;border:1px solid var(--border-slate-200);border-radius:var(--radius-md);color:var(--text-secondary)}.level-group{display:flex;flex-wrap:wrap;gap:4px;align-items:center;flex-basis:100%;order:4;margin-left:28px;border-top:none;padding-top:0;margin-top:0}.level-title{font-size:11px;font-weight:700;color:var(--text-muted);margin-right:4px;text-transform:uppercase;letter-spacing:.05em}.level-pill{position:relative;overflow:hidden;border-radius:999px;transition:var(--transition)}.level-pill input{position:absolute;opacity:0;pointer-events:none}.level-pill label{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border-radius:999px;border:1px solid var(--border-slate-300);background:#fff;color:var(--text-secondary);font-size:10px;font-weight:700;cursor:pointer;-webkit-user-select:none;user-select:none;transition:var(--transition);max-width:32px;overflow:hidden}.level-pill label .short,.level-pill label .long{transition:opacity .2s ease,transform .2s ease}.level-pill label .long{opacity:0;white-space:nowrap;transform:translate(8px);display:none}.level-pill label:hover{max-width:180px;padding-right:12px;background:#f1f5f9;color:var(--text-primary);border-color:var(--text-muted)}.level-pill label:hover .long{display:inline-block;opacity:1;transform:translate(0)}.level-pill label:hover .short{display:none;opacity:0}.level-pill input[value=na]:checked+label{max-width:180px;padding-right:12px;border-color:#fca5a5;background:#fee2e2;color:#991b1b;box-shadow:0 0 8px #ef444426}.level-pill input[value=ec]:checked+label{max-width:180px;padding-right:12px;border-color:#fde68a;background:#fef3c7;color:#92400e;box-shadow:0 0 8px #f59e0b26}.level-pill input[value=ac]:checked+label{max-width:180px;padding-right:12px;border-color:#a7f3d0;background:#dcfce7;color:#166534;box-shadow:0 0 8px #22c55e26}.level-pill input[value=ma]:checked+label{max-width:180px;padding-right:12px;border-color:#c7d2ff;background:#e0e7ff;color:#3730a3;box-shadow:0 0 8px #625fff33}.level-pill input:checked+label .long{display:inline-block;opacity:1;transform:translate(0)}.level-pill input:checked+label .short{display:none;opacity:0}.evaluation-summary-section{margin-top:40px;padding-top:0;text-align:left}.summary-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:32px;align-items:stretch}.summary-inputs-panel{display:flex;flex-direction:column;gap:20px;background:#f8fafc73;border:1px solid var(--border-slate-200);border-radius:var(--radius-lg);padding:24px;box-shadow:var(--shadow-premium);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.summary-output-panel{display:flex;flex-direction:column;gap:12px;background:#fff;border:1px solid var(--border-slate-200);border-radius:var(--radius-lg);padding:24px;box-shadow:var(--shadow-premium)}.input-group{display:flex;flex-direction:column;gap:8px}.input-group label,.summary-output-panel label{font-size:11px;font-weight:700;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.05em}.summary-inputs-panel textarea,.summary-inputs-panel select,.summary-inputs-panel input[type=text],.summary-inputs-panel input[type=password]{width:100%;padding:10px 14px;border-radius:var(--radius-md);border:1px solid var(--border-slate-300);background:#fff;color:var(--text-primary);font-size:13.5px;font-weight:500;font-family:var(--font-sans);outline:none;transition:var(--transition);box-shadow:var(--shadow-flat);resize:vertical;box-sizing:border-box}.summary-inputs-panel textarea:focus,.summary-inputs-panel select:focus,.summary-inputs-panel input[type=text]:focus,.summary-inputs-panel input[type=password]:focus{border-color:var(--color-indigo-500);box-shadow:0 0 0 3px #625fff1a}.summary-inputs-panel textarea::placeholder,.summary-inputs-panel input::placeholder{color:var(--text-muted);font-weight:400}.summary-inputs-panel select{-moz-appearance:none;appearance:none;-webkit-appearance:none;padding-right:36px;background-image:url("data:image/svg+xml;charset=UTF-8,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7L10 12L15 7' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:14px;cursor:pointer;resize:none}.summary-inputs-panel textarea{min-height:100px}.row-options{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.row-options .input-group{flex:1;min-width:140px}.input-group-checkbox{display:flex;align-items:center;margin-top:22px}.checkbox-label{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:var(--text-secondary);cursor:pointer;-webkit-user-select:none;user-select:none}.checkbox-label input{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:16px;height:16px;border-radius:4px;border:1px solid var(--border-slate-300);background:#fff;cursor:pointer;position:relative;transition:var(--transition);margin:0}.checkbox-label input:checked{background:var(--color-indigo-500);border-color:var(--color-indigo-500)}.checkbox-label input:checked:after{content:"✔";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:9px;font-weight:700;color:#fff}.api-config-section{border-top:1px dashed var(--border-slate-200);padding-top:16px;margin-top:4px;text-align:left}.api-toggle-btn{background:transparent!important;border:none!important;font-size:12.5px!important;font-weight:700!important;color:var(--color-indigo-500)!important;cursor:pointer;padding:0!important;box-shadow:none!important;transition:var(--transition);text-decoration:none}.api-toggle-btn:hover{color:var(--color-indigo-700)!important;text-decoration:underline}.api-fields-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:14px}.summary-output-panel textarea{flex-grow:1;width:100%;min-height:380px;font-family:var(--font-mono)!important;font-size:13px!important;line-height:1.6!important;background:#f8fafc!important;border:1px solid var(--border-slate-200)!important;border-radius:var(--radius-md)!important;color:var(--text-secondary)!important;padding:16px!important;resize:none!important;outline:none!important;box-shadow:inset 0 2px 4px #00000005!important;box-sizing:border-box!important}.summary-output-panel textarea:focus{border-color:var(--color-indigo-500)!important;background:#fff!important;box-shadow:0 0 0 3px #625fff1f,inset 0 2px 4px #00000005!important}.spinner{width:14px;height:14px;border-radius:50%;border:2px solid rgba(98,95,255,.2);border-top-color:var(--color-indigo-500);animation:spin .8s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes progress-stripes{0%{transform:translate(-100%)}to{transform:translate(100%)}}.toast-container{position:fixed;bottom:24px;right:24px;z-index:1000;display:flex;flex-direction:column;gap:8px;max-width:360px;pointer-events:none}.toast{padding:12px 16px;border-radius:var(--radius-md);font-size:13.5px;font-weight:700;font-family:var(--font-sans);box-shadow:0 4px 20px #0000001f,0 1px 4px #0000000f;display:flex;flex-direction:column;gap:8px;animation:toast-in .2s cubic-bezier(.4,0,.2,1)}.toast-info{background:var(--color-indigo-50);border-left:3px solid var(--color-indigo-500);color:var(--color-indigo-700)}.toast-success{background:#dcfce7;border-left:3px solid #10b981;color:#15803d}.toast-error{background:#fee2e2;border-left:3px solid #ef4444;color:#b91c1c}.toast-progress{width:100%;height:3px;background:#00000014;border-radius:999px;overflow:hidden}.toast-progress-bar{width:100%;height:100%;background:currentColor;opacity:.6;animation:progress-stripes 1.5s linear infinite}@keyframes toast-in{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@media(max-width:768px){.app-topbar{height:auto;flex-direction:column;align-items:flex-start;padding:12px 16px;gap:10px}.topbar-center{align-items:flex-start}.topbar-right{flex-wrap:wrap;gap:8px}.topbar-input{width:90px}.topbar-actions{border-left:none;padding-left:0;margin-left:0;flex-wrap:wrap}.app-main{padding:16px 16px 48px}.criteria-toolbar{flex-direction:column;align-items:flex-start;height:auto;padding:8px 0;gap:8px}.toolbar-add-input,.criteria-toolbar-right{width:100%}.summary-grid{grid-template-columns:1fr;gap:24px}.competences-grid{grid-template-columns:1fr}.competence-item{flex-wrap:wrap}.level-group{flex-wrap:wrap;margin-left:28px}.toast-container{bottom:12px;right:12px;left:12px;max-width:none}} diff --git a/dist/index.html b/dist/index.html index 27b9937..ce4125b 100644 --- a/dist/index.html +++ b/dist/index.html @@ -4,8 +4,8 @@ Bilans de compétences - - + +
diff --git a/src/components/Bilan.jsx b/src/components/Bilan.jsx index aab8ee2..830ca3d 100644 --- a/src/components/Bilan.jsx +++ b/src/components/Bilan.jsx @@ -30,7 +30,8 @@ const LEVEL_LABEL = { ac: "Acquis", ma: "Maîtrisé", }; -const FALLBACK_MODELS = ["gpt-4o-mini", "gpt-4o", "gpt-4.1", "gpt-3.5-turbo"]; +const MISTRAL_API_KEY = import.meta.env.VITE_MISTRAL_API_KEY || ""; +const FALLBACK_MODELS = ["mistral-small-latest", "mistral-medium-latest", "mistral-large-latest"]; const titles = { CP1: { h1: "Bilan-CP1", h2: "Réaliser des illustrations" }, @@ -318,8 +319,7 @@ const Bilan = () => { const [aiNotes, setAiNotes] = useState(""); const [aiTone, setAiTone] = useState("neutre"); const [aiPrepend, setAiPrepend] = useState(false); - const [openaiKey, setOpenaiKey] = useState(""); - const [openaiModel, setOpenaiModel] = useState("gpt-4o-mini"); + const [mistralModel, setMistralModel] = useState("mistral-small-latest"); const [observation, setObservation] = useState(""); const [toasts, setToasts] = useState([]); const [isAiLoading, setIsAiLoading] = useState(false); @@ -585,9 +585,9 @@ const Bilan = () => { }; }, [aiTone, firstName, items, lastName]); - const generateAISummaryOpenAI = useCallback(async () => { - if (!openaiKey.trim()) { - showStatus("Renseigne ta clé OpenAI (champ sk-...).", "error"); + const generateAISummaryMistral = useCallback(async () => { + if (!MISTRAL_API_KEY) { + showStatus("Clé Mistral introuvable. Vérifie ton fichier .env.local (VITE_MISTRAL_API_KEY).", "error"); return; } @@ -601,14 +601,14 @@ const Bilan = () => { const notesFormateur = aiNotes.trim(); setIsAiLoading(true); - showStatus("Génération du résumé via OpenAI…", "info", true); + showStatus("Génération du résumé via Mistral…", "info", true); - const callOpenAI = async (model) => { - const response = await fetch("https://api.openai.com/v1/chat/completions", { + const callMistral = async (model) => { + const response = await fetch("https://api.mistral.ai/v1/chat/completions", { method: "POST", headers: { "Content-Type": "application/json", - Authorization: `Bearer ${openaiKey.trim()}`, + Authorization: `Bearer ${MISTRAL_API_KEY}`, }, body: JSON.stringify({ model, @@ -616,11 +616,9 @@ const Bilan = () => { messages: [ { role: "system", - content: ` -Tu es ingénieur pédagogique et formateur en développement web. -À partir des données (critères et niveaux), du bilan automatique affiché et des notes éventuelles, rédige une synthèse finale d'environ 8 à 10 phrases. -Contraintes : valoriser les réussites, évoquer les difficultés, reformuler les notes formateur, varier le vocabulaire et les connecteurs, adopter un ton professionnel bienveillant. - `, + content: `Tu es ingénieur pédagogique spécialisé dans la formation CDUI (Titre Professionnel Concepteur Développeur d'Interfaces Utilisateur, niveau 6). Tu maîtrises parfaitement les référentiels de compétences du titre, les CP1 à CP9, et les exigences de France Compétences. +À partir des données de l'évaluation (critères et niveaux d'acquisition), du bilan automatique et des notes du formateur, rédige une synthèse pédagogique finale de 8 à 10 phrases. +Contraintes : valoriser les réussites de l'apprenant, évoquer les axes de progression avec bienveillance, reformuler et enrichir les notes du formateur, varier le vocabulaire et les connecteurs, adopter un ton professionnel et encourageant, en lien avec les attendus du titre CDUI.`, }, { role: "user", @@ -644,18 +642,18 @@ ${notesFormateur}`, const tried = new Set(); const attemptOrder = [ - openaiModel, - ...FALLBACK_MODELS.filter((model) => model !== openaiModel), + mistralModel, + ...FALLBACK_MODELS.filter((model) => model !== mistralModel), ]; try { let content = ""; - let usedModel = openaiModel; + let usedModel = mistralModel; for (const model of attemptOrder) { if (tried.has(model)) continue; tried.add(model); try { - const data = await callOpenAI(model); + const data = await callMistral(model); content = data?.choices?.[0]?.message?.content || data?.choices?.[0]?.delta?.content || @@ -674,11 +672,11 @@ ${notesFormateur}`, } insertAISummaryIntoObservation( - `## RESUME FORMATEUR\n----------------------------\n${content.trim()}` + `## RÉSUMÉ IA (CDUI)\n----------------------------\n${content.trim()}` ); - showStatus(`Résumé OpenAI inséré (modèle : ${usedModel}).`, "success"); + showStatus(`Résumé Mistral inséré (modèle : ${usedModel}).`, "success"); } catch (error) { - showStatus(`Erreur OpenAI : ${error.message || error}`, "error"); + showStatus(`Erreur Mistral : ${error.message || error}`, "error"); } finally { dismissProgressToasts(); setIsAiLoading(false); @@ -688,9 +686,8 @@ ${notesFormateur}`, buildPayloadForAI, dismissProgressToasts, insertAISummaryIntoObservation, + mistralModel, observation, - openaiKey, - openaiModel, showStatus, ]); @@ -963,7 +960,7 @@ ${notesFormateur}`, - + {showApiConfig && (
- - setOpenaiKey(event.target.value)} - /> -
-
- +
+
+ + +
)}