vendor: 4,105 bytes, lines 1-10
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/AdminLogin-vbZC7T-s.js","assets/form-CgIFGTwl.js","assets/input-DMlXA5Q7.js","assets/error-utils-x3fdVcAA.js","assets/AdminLayout-BoUi3hW2.js","assets/handshake-CYs7jVA0.js","assets/index-DiQyyjCx.js","assets/Combination-Bz7oc-u_.js","assets/index-vsLmjcIS.js","assets/index-Cg8Bl-PN.js","assets/chevron-right-DxOPRiRi.js","assets/Dashboard-CArmWKrz.js","assets/SolutionsList-ChwniEnj.js","assets/useSolutions-B5fHn3s9.js","assets/useMutation-Byd2mnth.js","assets/DataTable-BAYN-3EA.js","assets/DeleteConfirmDialog-DLe78II7.js","assets/trash-2-PhBA9OPB.js","assets/badge-Rd6Ef77w.js","assets/plus-CubMkUv0.js","assets/format-cwXK75ha.js","assets/CreateSolution-CXXgXFyu.js","assets/SolutionForm-BeX4Zzhm.js","assets/textarea-DRu8edSt.js","assets/select-Bpc-CBhW.js","assets/tabs-Cz61g69p.js","assets/EditSolution-DItEqE40.js","assets/alert-qiU5dG7Y.js","assets/ProjectsList-D4zWYheV.js","assets/useProjects-CaZJLY_Z.js","assets/CreateProject-CKk5xnVD.js","assets/ProjectForm-DfYcmdXG.js","assets/ImageUpload-DAQfm2zq.js","assets/RichTextEditor-DyewwBKO.js","assets/EditProject-Dp3IS6Yt.js","assets/BlogsList-BB-nKmRb.js","assets/useBlogs-CaOf4ZB2.js","assets/CreateBlog-Dg1ngfDk.js","assets/BlogForm-DJmewRaF.js","assets/EditBlog-_FOE7kFT.js","assets/PartnersList-DlumzfYV.js","assets/usePartners-CDMbXsGI.js","assets/CreatePartner-CqM3wuqO.js","assets/PartnerForm-BJsECWjz.js","assets/EditPartner-DXJU3zLw.js","assets/RegistrationsList-CES5jiXG.js","assets/TrainingsList-AZFIxo6S.js","assets/TrainingForm-AdA_FVXS.js"])))=>i.map(i=>d[i]); 2var AT=Object.defineProperty;var Gw=e=>{throw TypeError(e)};var jT=(e,t,n)=>t in e?AT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Zt=(e,t,n)=>jT(e,typeof t!="symbol"?t+"":t,n),D1=(e,t,n)=>t.has(e)||Gw("Cannot "+n);var ae=(e,t,n)=>(D1(e,t,"read from private field"),n?n.call(e):t.get(e)),ut=(e,t,n)=>t.has(e)?Gw("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ze=(e,t,n,r)=>(D1(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Ot=(e,t,n)=>(D1(e,t,"access private method"),n);var $p=(e,t,n,r)=>({set _(i){ze(e,t,i,n)},get _(){return ae(e,t,r)}});function CT(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var qee=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function H6(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var W6={exports:{}},pg={},G6={exports:{}},Tt={};/** 3 * @license React 4 * react.production.min.js 5 * 6 * Copyright (c) Facebook, Inc. and its affiliates. 7 * 8 * This source code is licensed under the MIT license found in the 9 * LICENSE file in the root directory of this source tree. 10 */var Fh=Symbol.for("react.element"),ET=Symbol.for("react.portal"),LT=Symbol.for("react.fragment"),PT=Symbol.for("react.strict_mode"),TT=Symbol.for("react.profiler"),RT=Symbol.for("react.provider"),OT=Symbol.for("react.context"),IT=Symbol.for("react.forward_ref"),MT=Symbol.for("react.suspense"),FT=Symbol.for("react.memo"),DT
vendor: 6,710 bytes, lines 10-18
10=Symbol.for("react.lazy"),Kw=Symbol.iterator;function BT(e){return e===null||typeof e!="object"?null:(e=Kw&&e[Kw]||e["@@iterator"],typeof e=="function"?e:null)}var K6={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Y6=Object.assign,X6={};function pd(e,t,n){this.props=e,this.context=t,this.refs=X6,this.updater=n||K6}pd.prototype.isReactComponent={};pd.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};pd.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Z6(){}Z6.prototype=pd.prototype;function $v(e,t,n){this.props=e,this.context=t,this.refs=X6,this.updater=n||K6}var qv=$v.prototype=new Z6;qv.constructor=$v;Y6(qv,pd.prototype);qv.isPureReactComponent=!0;var Yw=Array.isArray,Q6=Object.prototype.hasOwnProperty,Hv={current:null},J6={key:!0,ref:!0,__self:!0,__source:!0};function ek(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)Q6.call(t,r)&&!J6.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:Fh,type:e,key:s,ref:o,props:i,_owner:Hv.current}}function zT(e,t){return{$$typeof:Fh,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Wv(e){return typeof e=="object"&&e!==null&&e.$$typeof===Fh}function UT(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Xw=/\/+/g;function B1(e,t){return typeof e=="object"&&e!==null&&e.key!=null?UT(""+e.key):t.toString(36)}function Lm(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Fh:case ET:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+B1(o,0):r,Yw(i)?(n="",e!=null&&(n=e.replace(Xw,"$&/")+"/"),Lm(i,t,n,"",function(c){return c})):i!=null&&(Wv(i)&&(i=zT(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Xw,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",Yw(e))for(var a=0;a<e.length;a++){s=e[a];var l=r+B1(s,a);o+=Lm(s,t,n,l,i)}else if(l=BT(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=r+B1(s,a++),o+=Lm(s,t,n,l,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function qp(e,t,n){if(e==null)return e;var r=[],i=0;return Lm(e,r,"","",function(s){return t.call(n,s,i++)}),r}function VT(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ei={current:null},Pm={transition:null},$T={ReactCurrentDispatcher:ei,ReactCurrentBatchConfig:Pm,ReactCurrentOwner:Hv};function tk(){throw Error("act(...) is not supported in production builds of React.")}Tt.Children={map:qp,forEach:function(e,t,n){qp(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return qp(e,function(){t++}),t},toArray:function(e){return qp(e,function(t){return t})||[]},only:function(e){if(!Wv(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Tt.Component=pd;Tt.Fragment=LT;Tt.Profiler=TT;Tt.PureComponent=$v;Tt.StrictMode=PT;Tt.Suspense=MT;Tt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$T;Tt.act=tk;Tt.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Y6({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=Hv.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Q6.call(t,l)&&!J6.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:Fh,type:e.type,key:i,ref:s,props:r,_owner:o}};Tt.createContext=function(e){return e={$$typeof:OT,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:RT,_context:e},e.Consumer=e};Tt.createElement=ek;Tt.createFactory=function(e){var t=ek.bind(null,e);return t.type=e,t};Tt.createRef=function(){return{current:null}};Tt.forwardRef=function(e){return{$$typeof:IT,render:e}};Tt.isValidElement=Wv;Tt.lazy=function(e){return{$$typeof:DT,_payload:{_status:-1,_result:e},_init:VT}};Tt.memo=function(e,t){return{$$typeof:FT,type:e,compare:t===void 0?null:t}};Tt.startTransition=function(e){var t=Pm.transition;Pm.transition={};try{e()}finally{Pm.transition=t}};Tt.unstable_act=tk;Tt.useCallback=function(e,t){return ei.current.useCallback(e,t)};Tt.useContext=function(e){return ei.current.useContext(e)};Tt.useDebugValue=function(){};Tt.useDeferredValue=function(e){return ei.current.useDeferredValue(e)};Tt.useEffect=function(e,t){return ei.current.useEffect(e,t)};Tt.useId=function(){return ei.current.useId()};Tt.useImperativeHandle=function(e,t,n){return ei.current.useImperativeHandle(e,t,n)};Tt.useInsertionEffect=function(e,t){return ei.current.useInsertionEffect(e,t)};Tt.useLayoutEffect=function(e,t){return ei.current.useLayoutEffect(e,t)};Tt.useMemo=function(e,t){return ei.current.useMemo(e,t)};Tt.useReducer=function(e,t,n){return ei.current.useReducer(e,t,n)};Tt.useRef=function(e){return ei.current.useRef(e)};Tt.useState=function(e){return ei.current.useState(e)};Tt.useSyncExternalStore=function(e,t,n){return ei.current.useSyncExternalStore(e,t,n)};Tt.useTransition=function(){return ei.current.useTransition()};Tt.version="18.3.1";G6.exports=Tt;var j=G6.exports;const Pe=H6(j),nk=CT({__proto__:null,default:Pe},[j]);/** 11 * @license React 12 * react-jsx-runtime.production.min.js 13 * 14 * Copyright (c) Facebook, Inc. and its affiliates. 15 * 16 * This source code is licensed under the MIT license found in the 17 * LICENSE file in the root directory of this source tree. 18 */var qT=j,HT=Symbol.for("react.element"),WT=Symbol.for("react.fragment"),GT=Object.prototype.hasOwnProperty,KT=qT.__SECRET_INT
vendor: 11,469 bytes, lines 18-35
18ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,YT={key:!0,ref:!0,__self:!0,__source:!0};function rk(e,t,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)GT.call(t,r)&&!YT.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:HT,type:e,key:s,ref:o,props:i,_owner:KT.current}}pg.Fragment=WT;pg.jsx=rk;pg.jsxs=rk;W6.exports=pg;var u=W6.exports,ik={exports:{}},Bi={},sk={exports:{}},ok={};/** 19 * @license React 20 * scheduler.production.min.js 21 * 22 * Copyright (c) Facebook, Inc. and its affiliates. 23 * 24 * This source code is licensed under the MIT license found in the 25 * LICENSE file in the root directory of this source tree. 26 */(function(e){function t(G,Q){var de=G.length;G.push(Q);e:for(;0<de;){var ue=de-1>>>1,E=G[ue];if(0<i(E,Q))G[ue]=Q,G[de]=E,de=ue;else break e}}function n(G){return G.length===0?null:G[0]}function r(G){if(G.length===0)return null;var Q=G[0],de=G.pop();if(de!==Q){G[0]=de;e:for(var ue=0,E=G.length,H=E>>>1;ue<H;){var K=2*(ue+1)-1,ee=G[K],J=K+1,ie=G[J];if(0>i(ee,de))J<E&&0>i(ie,ee)?(G[ue]=ie,G[J]=de,ue=J):(G[ue]=ee,G[K]=de,ue=K);else if(J<E&&0>i(ie,de))G[ue]=ie,G[J]=de,ue=J;else break e}}return Q}function i(G,Q){var de=G.sortIndex-Q.sortIndex;return de!==0?de:G.id-Q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],c=[],d=1,h=null,m=3,f=!1,x=!1,v=!1,b=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(G){for(var Q=n(c);Q!==null;){if(Q.callback===null)r(c);else if(Q.startTime<=G)r(c),Q.sortIndex=Q.expirationTime,t(l,Q);else break;Q=n(c)}}function k(G){if(v=!1,_(G),!x)if(n(l)!==null)x=!0,re(O);else{var Q=n(c);Q!==null&&ce(k,Q.startTime-G)}}function O(G,Q){x=!1,v&&(v=!1,y(I),I=-1),f=!0;var de=m;try{for(_(Q),h=n(l);h!==null&&(!(h.expirationTime>Q)||G&&!C());){var ue=h.callback;if(typeof ue=="function"){h.callback=null,m=h.priorityLevel;var E=ue(h.expirationTime<=Q);Q=e.unstable_now(),typeof E=="function"?h.callback=E:h===n(l)&&r(l),_(Q)}else r(l);h=n(l)}if(h!==null)var H=!0;else{var K=n(c);K!==null&&ce(k,K.startTime-Q),H=!1}return H}finally{h=null,m=de,f=!1}}var $=!1,U=null,I=-1,R=5,z=-1;function C(){return!(e.unstable_now()-z<R)}function L(){if(U!==null){var G=e.unstable_now();z=G;var Q=!0;try{Q=U(!0,G)}finally{Q?D():($=!1,U=null)}}else $=!1}var D;if(typeof S=="function")D=function(){S(L)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,te=F.port2;F.port1.onmessage=L,D=function(){te.postMessage(null)}}else D=function(){b(L,0)};function re(G){U=G,$||($=!0,D())}function ce(G,Q){I=b(function(){G(e.unstable_now())},Q)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(G){G.callback=null},e.unstable_continueExecution=function(){x||f||(x=!0,re(O))},e.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<G?Math.floor(1e3/G):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(G){switch(m){case 1:case 2:case 3:var Q=3;break;default:Q=m}var de=m;m=Q;try{return G()}finally{m=de}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(G,Q){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var de=m;m=G;try{return Q()}finally{m=de}},e.unstable_scheduleCallback=function(G,Q,de){var ue=e.unstable_now();switch(typeof de=="object"&&de!==null?(de=de.delay,de=typeof de=="number"&&0<de?ue+de:ue):de=ue,G){case 1:var E=-1;break;case 2:E=250;break;case 5:E=1073741823;break;case 4:E=1e4;break;default:E=5e3}return E=de+E,G={id:d++,callback:Q,priorityLevel:G,startTime:de,expirationTime:E,sortIndex:-1},de>ue?(G.sortIndex=de,t(c,G),n(l)===null&&G===n(c)&&(v?(y(I),I=-1):v=!0,ce(k,de-ue))):(G.sortIndex=E,t(l,G),x||f||(x=!0,re(O))),G},e.unstable_shouldYield=C,e.unstable_wrapCallback=function(G){var Q=m;return function(){var de=m;m=Q;try{return G.apply(this,arguments)}finally{m=de}}}})(ok);sk.exports=ok;var XT=sk.exports;/** 27 * @license React 28 * react-dom.production.min.js 29 * 30 * Copyright (c) Facebook, Inc. and its affiliates. 31 * 32 * This source code is licensed under the MIT license found in the 33 * LICENSE file in the root directory of this source tree. 34 */var ZT=j,Mi=XT;function Ee(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ak=new Set,Qf={};function Cc(e,t){Ku(e,t),Ku(e+"Capture",t)}function Ku(e,t){for(Qf[e]=t,e=0;e<t.length;e++)ak.add(t[e])}var qo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),w2=Object.prototype.hasOwnProperty,QT=/^[: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]*$/,Zw={},Qw={};function JT(e){return w2.call(Qw,e)?!0:w2.call(Zw,e)?!1:QT.test(e)?Qw[e]=!0:(Zw[e]=!0,!1)}function e7(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function t7(e,t,n,r){if(t===null||typeof t>"u"||e7(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ti(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var Lr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Lr[e]=new ti(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Lr[t]=new ti(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Lr[e]=new ti(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Lr[e]=new ti(e,2,!1,e,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(e){Lr[e]=new ti(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Lr[e]=new ti(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Lr[e]=new ti(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Lr[e]=new ti(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Lr[e]=new ti(e,5,!1,e.toLowerCase(),null,!1,!1)});var Gv=/[\-:]([a-z])/g;function Kv(e){return e[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(e){var t=e.replace(Gv,Kv);Lr[t]=new ti(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Gv,Kv);Lr[t]=new ti(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Gv,Kv);Lr[t]=new ti(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Lr[e]=new ti(e,1,!1,e.toLowerCase(),null,!1,!1)});Lr.xlinkHref=new ti("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Lr[e]=new ti(e,1,!1,e.toLowerCase(),null,!0,!0)});function Yv(e,t,n,r){var i=Lr.hasOwnProperty(t)?Lr[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(t7(t,n,i,r)&&(n=null),r||i===null?JT(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Zo=ZT.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Hp=Symbol.for("react.element"),iu=Symbol.for("react.portal"),su=Symbol.for("react.fragment"),Xv=Symbol.for("react.strict_mode"),S2=Symbol.for("react.profiler"),lk=Symbol.for("react.provider"),ck=Symbol.for("react.context"),Zv=Symbol.for("react.forward_ref"),_2=Symbol.for("react.suspense"),N2=Symbol.for("react.suspense_list"),Qv=Symbol.for("react.memo"),ka=Symbol.for("react.lazy"),uk=Symbol.for("react.offscreen"),Jw=Symbol.iterator;function sf(e){return e===null||typeof e!="object"?null:(e=Jw&&e[Jw]||e["@@iterator"],typeof e=="function"?e:null)}var Cn=Object.assign,z1;function wf(e){if(z1===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);z1=t&&t[1]||""}return` 35`+z1+e}var U1=!1;function V1(e,t){if(!e||U1)return"";U1=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}
vendor: 5,499 bytes, lines 35-38
35catch(c){if(c&&r&&typeof c.stack=="string"){for(var i=c.stack.split(` 36`),s=r.stack.split(` 37`),o=i.length-1,a=s.length-1;1<=o&&0<=a&&i[o]!==s[a];)a--;for(;1<=o&&0<=a;o--,a--)if(i[o]!==s[a]){if(o!==1||a!==1)do if(o--,a--,0>a||i[o]!==s[a]){var l=` 38`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{U1=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?wf(e):""}function n7(e){switch(e.tag){case 5:return wf(e.type);case 16:return wf("Lazy");case 13:return wf("Suspense");case 19:return wf("SuspenseList");case 0:case 2:case 15:return e=V1(e.type,!1),e;case 11:return e=V1(e.type.render,!1),e;case 1:return e=V1(e.type,!0),e;default:return""}}function k2(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case su:return"Fragment";case iu:return"Portal";case S2:return"Profiler";case Xv:return"StrictMode";case _2:return"Suspense";case N2:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ck:return(e.displayName||"Context")+".Consumer";case lk:return(e._context.displayName||"Context")+".Provider";case Zv:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Qv:return t=e.displayName||null,t!==null?t:k2(e.type)||"Memo";case ka:t=e._payload,e=e._init;try{return k2(e(t))}catch{}}return null}function r7(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return k2(t);case 8:return t===Xv?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function nl(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function dk(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function i7(e){var t=dk(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Wp(e){e._valueTracker||(e._valueTracker=i7(e))}function fk(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=dk(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function c0(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function A2(e,t){var n=t.checked;return Cn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function e4(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=nl(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function hk(e,t){t=t.checked,t!=null&&Yv(e,"checked",t,!1)}function j2(e,t){hk(e,t);var n=nl(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?C2(e,t.type,n):t.hasOwnProperty("defaultValue")&&C2(e,t.type,nl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function t4(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function C2(e,t,n){(t!=="number"||c0(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Sf=Array.isArray;function wu(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+nl(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function E2(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Ee(91));return Cn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function n4(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Ee(92));
vendor: 11,269 bytes, line 38
38if(Sf(n)){if(1<n.length)throw Error(Ee(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:nl(n)}}function pk(e,t){var n=nl(t.value),r=nl(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function r4(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function mk(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function L2(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?mk(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Gp,gk=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Gp=Gp||document.createElement("div"),Gp.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Gp.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Jf(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Lf={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},s7=["Webkit","ms","Moz","O"];Object.keys(Lf).forEach(function(e){s7.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Lf[t]=Lf[e]})});function yk(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Lf.hasOwnProperty(e)&&Lf[e]?(""+t).trim():t+"px"}function xk(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=yk(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var o7=Cn({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 P2(e,t){if(t){if(o7[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ee(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ee(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ee(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ee(62))}}function T2(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 R2=null;function Jv(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var O2=null,Su=null,_u=null;function i4(e){if(e=zh(e)){if(typeof O2!="function")throw Error(Ee(280));var t=e.stateNode;t&&(t=vg(t),O2(e.stateNode,e.type,t))}}function vk(e){Su?_u?_u.push(e):_u=[e]:Su=e}function bk(){if(Su){var e=Su,t=_u;if(_u=Su=null,i4(e),t)for(e=0;e<t.length;e++)i4(t[e])}}function wk(e,t){return e(t)}function Sk(){}var $1=!1;function _k(e,t,n){if($1)return e(t,n);$1=!0;try{return wk(e,t,n)}finally{$1=!1,(Su!==null||_u!==null)&&(Sk(),bk())}}function eh(e,t){var n=e.stateNode;if(n===null)return null;var r=vg(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(Ee(231,t,typeof n));return n}var I2=!1;if(qo)try{var of={};Object.defineProperty(of,"passive",{get:function(){I2=!0}}),window.addEventListener("test",of,of),window.removeEventListener("test",of,of)}catch{I2=!1}function a7(e,t,n,r,i,s,o,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(d){this.onError(d)}}var Pf=!1,u0=null,d0=!1,M2=null,l7={onError:function(e){Pf=!0,u0=e}};function c7(e,t,n,r,i,s,o,a,l){Pf=!1,u0=null,a7.apply(l7,arguments)}function u7(e,t,n,r,i,s,o,a,l){if(c7.apply(this,arguments),Pf){if(Pf){var c=u0;Pf=!1,u0=null}else throw Error(Ee(198));d0||(d0=!0,M2=c)}}function Ec(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Nk(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function s4(e){if(Ec(e)!==e)throw Error(Ee(188))}function d7(e){var t=e.alternate;if(!t){if(t=Ec(e),t===null)throw Error(Ee(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return s4(i),e;if(s===r)return s4(i),t;s=s.sibling}throw Error(Ee(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o){for(a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o)throw Error(Ee(189))}}if(n.alternate!==r)throw Error(Ee(190))}if(n.tag!==3)throw Error(Ee(188));return n.stateNode.current===n?e:t}function kk(e){return e=d7(e),e!==null?Ak(e):null}function Ak(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Ak(e);if(t!==null)return t;e=e.sibling}return null}var jk=Mi.unstable_scheduleCallback,o4=Mi.unstable_cancelCallback,f7=Mi.unstable_shouldYield,h7=Mi.unstable_requestPaint,Un=Mi.unstable_now,p7=Mi.unstable_getCurrentPriorityLevel,e5=Mi.unstable_ImmediatePriority,Ck=Mi.unstable_UserBlockingPriority,f0=Mi.unstable_NormalPriority,m7=Mi.unstable_LowPriority,Ek=Mi.unstable_IdlePriority,mg=null,ao=null;function g7(e){if(ao&&typeof ao.onCommitFiberRoot=="function")try{ao.onCommitFiberRoot(mg,e,void 0,(e.current.flags&128)===128)}catch{}}var js=Math.clz32?Math.clz32:v7,y7=Math.log,x7=Math.LN2;function v7(e){return e>>>=0,e===0?32:31-(y7(e)/x7|0)|0}var Kp=64,Yp=4194304;function _f(e){switch(e&-e){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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function h0(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=_f(a):(s&=o,s!==0&&(r=_f(s)))}else o=n&~i,o!==0?r=_f(o):s!==0&&(r=_f(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-js(t),i=1<<n,r|=e[n],t&=~i;return r}function b7(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function w7(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-js(s),a=1<<o,l=i[o];l===-1?(!(a&n)||a&r)&&(i[o]=b7(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function F2(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Lk(){var e=Kp;return Kp<<=1,!(Kp&4194240)&&(Kp=64),e}function q1(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Dh(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-js(t),e[t]=n}function S7(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-js(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function t5(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-js(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var nn=0;function Pk(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Tk,n5,Rk,Ok,Ik,D2=!1,Xp=[],qa=null,Ha=null,Wa=null,th=new Map,nh=new Map,ja=[],_7="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function a4(e,t){switch(e){case"focusin":case"focusout":qa=null;break;case"dragenter":case"dragleave":Ha=null;break;case"mouseover":case"mouseout":Wa=null;break;case"pointerover":case"pointerout":th.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":nh.delete(t.pointerId)}}function af(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=zh(t),t!==null&&n5(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function N7(e,t,n,r,i){switch(t){case"focusin":return qa=af(qa,e,t,n,r,i),!0;case"dragenter":return Ha=af(Ha,e,t,n,r,i),!0;case"mouseover":return Wa=af(Wa,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return th.set(s,af(th.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,nh.set(s,af(nh.get(s)||null,e,t,n,r,i)),!0}return!1}function Mk(e){var t=Ul(e.target);if(t!==null){var n=Ec(t);if(n!==null){if(t=n.tag,t===13){if(t=Nk(n),t!==null){e.blockedOn=t,Ik(e.priority,function(){Rk(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Tm(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=B2(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);R2=r,n.target.dispatchEvent(r),R2=null}else return t=zh(n),t!==null&&n5(t),e.blockedOn=n,!1;t.shift()}return!0}function l4(e,t,n){Tm(e)&&n.delete(t)}function k7(){D2=!1,qa!==null&&Tm(qa)&&(qa=null),Ha!==null&&Tm(Ha)&&(Ha=null),Wa!==null&&Tm(Wa)&&(Wa=null),th.forEach(l4),nh.forEac
vendor: 11,826 bytes, line 38
38h(l4)}function lf(e,t){e.blockedOn===t&&(e.blockedOn=null,D2||(D2=!0,Mi.unstable_scheduleCallback(Mi.unstable_NormalPriority,k7)))}function rh(e){function t(i){return lf(i,e)}if(0<Xp.length){lf(Xp[0],e);for(var n=1;n<Xp.length;n++){var r=Xp[n];r.blockedOn===e&&(r.blockedOn=null)}}for(qa!==null&&lf(qa,e),Ha!==null&&lf(Ha,e),Wa!==null&&lf(Wa,e),th.forEach(t),nh.forEach(t),n=0;n<ja.length;n++)r=ja[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ja.length&&(n=ja[0],n.blockedOn===null);)Mk(n),n.blockedOn===null&&ja.shift()}var Nu=Zo.ReactCurrentBatchConfig,p0=!0;function A7(e,t,n,r){var i=nn,s=Nu.transition;Nu.transition=null;try{nn=1,r5(e,t,n,r)}finally{nn=i,Nu.transition=s}}function j7(e,t,n,r){var i=nn,s=Nu.transition;Nu.transition=null;try{nn=4,r5(e,t,n,r)}finally{nn=i,Nu.transition=s}}function r5(e,t,n,r){if(p0){var i=B2(e,t,n,r);if(i===null)ey(e,t,r,m0,n),a4(e,r);else if(N7(i,e,t,n,r))r.stopPropagation();else if(a4(e,r),t&4&&-1<_7.indexOf(e)){for(;i!==null;){var s=zh(i);if(s!==null&&Tk(s),s=B2(e,t,n,r),s===null&&ey(e,t,r,m0,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else ey(e,t,r,null,n)}}var m0=null;function B2(e,t,n,r){if(m0=null,e=Jv(r),e=Ul(e),e!==null)if(t=Ec(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Nk(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return m0=e,null}function Fk(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(p7()){case e5:return 1;case Ck:return 4;case f0:case m7:return 16;case Ek:return 536870912;default:return 16}default:return 16}}var Da=null,i5=null,Rm=null;function Dk(){if(Rm)return Rm;var e,t=i5,n=t.length,r,i="value"in Da?Da.value:Da.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[s-r];r++);return Rm=i.slice(e,1<r?1-r:void 0)}function Om(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Zp(){return!0}function c4(){return!1}function zi(e){function t(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Zp:c4,this.isPropagationStopped=c4,this}return Cn(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Zp)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Zp)},persist:function(){},isPersistent:Zp}),t}var md={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},s5=zi(md),Bh=Cn({},md,{view:0,detail:0}),C7=zi(Bh),H1,W1,cf,gg=Cn({},Bh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:o5,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cf&&(cf&&e.type==="mousemove"?(H1=e.screenX-cf.screenX,W1=e.screenY-cf.screenY):W1=H1=0,cf=e),H1)},movementY:function(e){return"movementY"in e?e.movementY:W1}}),u4=zi(gg),E7=Cn({},gg,{dataTransfer:0}),L7=zi(E7),P7=Cn({},Bh,{relatedTarget:0}),G1=zi(P7),T7=Cn({},md,{animationName:0,elapsedTime:0,pseudoElement:0}),R7=zi(T7),O7=Cn({},md,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),I7=zi(O7),M7=Cn({},md,{data:0}),d4=zi(M7),F7={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},D7={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},B7={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function z7(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=B7[e])?!!t[e]:!1}function o5(){return z7}var U7=Cn({},Bh,{key:function(e){if(e.key){var t=F7[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Om(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?D7[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:o5,charCode:function(e){return e.type==="keypress"?Om(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Om(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),V7=zi(U7),$7=Cn({},gg,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),f4=zi($7),q7=Cn({},Bh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:o5}),H7=zi(q7),W7=Cn({},md,{propertyName:0,elapsedTime:0,pseudoElement:0}),G7=zi(W7),K7=Cn({},gg,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Y7=zi(K7),X7=[9,13,27,32],a5=qo&&"CompositionEvent"in window,Tf=null;qo&&"documentMode"in document&&(Tf=document.documentMode);var Z7=qo&&"TextEvent"in window&&!Tf,Bk=qo&&(!a5||Tf&&8<Tf&&11>=Tf),h4=" ",p4=!1;function zk(e,t){switch(e){case"keyup":return X7.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Uk(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ou=!1;function Q7(e,t){switch(e){case"compositionend":return Uk(t);case"keypress":return t.which!==32?null:(p4=!0,h4);case"textInput":return e=t.data,e===h4&&p4?null:e;default:return null}}function J7(e,t){if(ou)return e==="compositionend"||!a5&&zk(e,t)?(e=Dk(),Rm=i5=Da=null,ou=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Bk&&t.locale!=="ko"?null:t.data;default:return null}}var eR={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function m4(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!eR[e.type]:t==="textarea"}function Vk(e,t,n,r){vk(r),t=g0(t,"onChange"),0<t.length&&(n=new s5("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Rf=null,ih=null;function tR(e){Jk(e,0)}function yg(e){var t=cu(e);if(fk(t))return e}function nR(e,t){if(e==="change")return t}var $k=!1;if(qo){var K1;if(qo){var Y1="oninput"in document;if(!Y1){var g4=document.createElement("div");g4.setAttribute("oninput","return;"),Y1=typeof g4.oninput=="function"}K1=Y1}else K1=!1;$k=K1&&(!document.documentMode||9<document.documentMode)}function y4(){Rf&&(Rf.detachEvent("onpropertychange",qk),ih=Rf=null)}function qk(e){if(e.propertyName==="value"&&yg(ih)){var t=[];Vk(t,ih,e,Jv(e)),_k(tR,t)}}function rR(e,t,n){e==="focusin"?(y4(),Rf=t,ih=n,Rf.attachEvent("onpropertychange",qk)):e==="focusout"&&y4()}function iR(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return yg(ih)}function sR(e,t){if(e==="click")return yg(t)}function oR(e,t){if(e==="input"||e==="change")return yg(t)}function aR(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ls=typeof Object.is=="function"?Object.is:aR;function sh(e,t){if(Ls(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!w2.call(t,i)||!Ls(e[i],t[i]))return!1}return!0}function x4(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function v4(e,t){var n=x4(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=x4(n)}}function Hk(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Hk(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Wk(){for(var e=window,t=c0();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=c0(e.document)}return t}function l5(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function lR(e){var t=Wk(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Hk(n.ownerDocument.documentElement,n)){if(r!==null&&l5(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=v4(n,s);var o=v4(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var cR=qo&&"documentMode"in document&&11>=document.documentMode,au=null,z2=null,Of=null,U2=!1;function b4(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;U2||au==null||au!==c0(r)||(r=au,"selectionStart"in r&&l5(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 4,501 bytes, line 38
38sNode:r.focusNode,focusOffset:r.focusOffset}),Of&&sh(Of,r)||(Of=r,r=g0(z2,"onSelect"),0<r.length&&(t=new s5("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=au)))}function Qp(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var lu={animationend:Qp("Animation","AnimationEnd"),animationiteration:Qp("Animation","AnimationIteration"),animationstart:Qp("Animation","AnimationStart"),transitionend:Qp("Transition","TransitionEnd")},X1={},Gk={};qo&&(Gk=document.createElement("div").style,"AnimationEvent"in window||(delete lu.animationend.animation,delete lu.animationiteration.animation,delete lu.animationstart.animation),"TransitionEvent"in window||delete lu.transitionend.transition);function xg(e){if(X1[e])return X1[e];if(!lu[e])return e;var t=lu[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Gk)return X1[e]=t[n];return e}var Kk=xg("animationend"),Yk=xg("animationiteration"),Xk=xg("animationstart"),Zk=xg("transitionend"),Qk=new Map,w4="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function hl(e,t){Qk.set(e,t),Cc(t,[e])}for(var Z1=0;Z1<w4.length;Z1++){var Q1=w4[Z1],uR=Q1.toLowerCase(),dR=Q1[0].toUpperCase()+Q1.slice(1);hl(uR,"on"+dR)}hl(Kk,"onAnimationEnd");hl(Yk,"onAnimationIteration");hl(Xk,"onAnimationStart");hl("dblclick","onDoubleClick");hl("focusin","onFocus");hl("focusout","onBlur");hl(Zk,"onTransitionEnd");Ku("onMouseEnter",["mouseout","mouseover"]);Ku("onMouseLeave",["mouseout","mouseover"]);Ku("onPointerEnter",["pointerout","pointerover"]);Ku("onPointerLeave",["pointerout","pointerover"]);Cc("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Cc("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Cc("onBeforeInput",["compositionend","keypress","textInput","paste"]);Cc("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Cc("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Cc("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nf="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),fR=new Set("cancel close invalid load scroll toggle".split(" ").concat(Nf));function S4(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,u7(r,t,void 0,e),e.currentTarget=null}function Jk(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==s&&i.isPropagationStopped())break e;S4(i,a,c),s=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,c=a.currentTarget,a=a.listener,l!==s&&i.isPropagationStopped())break e;S4(i,a,c),s=l}}}if(d0)throw e=M2,d0=!1,M2=null,e}function gn(e,t){var n=t[W2];n===void 0&&(n=t[W2]=new Set);var r=e+"__bubble";n.has(r)||(eA(t,e,2,!1),n.add(r))}function J1(e,t,n){var r=0;t&&(r|=4),eA(n,e,r,t)}var Jp="_reactListening"+Math.random().toString(36).slice(2);function oh(e){if(!e[Jp]){e[Jp]=!0,ak.forEach(function(n){n!=="selectionchange"&&(fR.has(n)||J1(n,!1,e),J1(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Jp]||(t[Jp]=!0,J1("selectionchange",!1,t))}}function eA(e,t,n,r){switch(Fk(t)){case 1:var i=A7;break;case 4:i=j7;break;default:i=r5}n=i.bind(null,t,n,e),i=void 0,!I2||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function ey(e,t,n,r,i){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;
vendor: 35,764 bytes, lines 38-41
38if(a===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;o=o.return}for(;a!==null;){if(o=Ul(a),o===null)return;if(l=o.tag,l===5||l===6){r=s=o;continue e}a=a.parentNode}}r=r.return}_k(function(){var c=s,d=Jv(n),h=[];e:{var m=Qk.get(e);if(m!==void 0){var f=s5,x=e;switch(e){case"keypress":if(Om(n)===0)break e;case"keydown":case"keyup":f=V7;break;case"focusin":x="focus",f=G1;break;case"focusout":x="blur",f=G1;break;case"beforeblur":case"afterblur":f=G1;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=u4;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=L7;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=H7;break;case Kk:case Yk:case Xk:f=R7;break;case Zk:f=G7;break;case"scroll":f=C7;break;case"wheel":f=Y7;break;case"copy":case"cut":case"paste":f=I7;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=f4}var v=(t&4)!==0,b=!v&&e==="scroll",y=v?m!==null?m+"Capture":null:m;v=[];for(var S=c,_;S!==null;){_=S;var k=_.stateNode;if(_.tag===5&&k!==null&&(_=k,y!==null&&(k=eh(S,y),k!=null&&v.push(ah(S,k,_)))),b)break;S=S.return}0<v.length&&(m=new f(m,x,null,n,d),h.push({event:m,listeners:v}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",m&&n!==R2&&(x=n.relatedTarget||n.fromElement)&&(Ul(x)||x[Ho]))break e;if((f||m)&&(m=d.window===d?d:(m=d.ownerDocument)?m.defaultView||m.parentWindow:window,f?(x=n.relatedTarget||n.toElement,f=c,x=x?Ul(x):null,x!==null&&(b=Ec(x),x!==b||x.tag!==5&&x.tag!==6)&&(x=null)):(f=null,x=c),f!==x)){if(v=u4,k="onMouseLeave",y="onMouseEnter",S="mouse",(e==="pointerout"||e==="pointerover")&&(v=f4,k="onPointerLeave",y="onPointerEnter",S="pointer"),b=f==null?m:cu(f),_=x==null?m:cu(x),m=new v(k,S+"leave",f,n,d),m.target=b,m.relatedTarget=_,k=null,Ul(d)===c&&(v=new v(y,S+"enter",x,n,d),v.target=_,v.relatedTarget=b,k=v),b=k,f&&x)t:{for(v=f,y=x,S=0,_=v;_;_=Wc(_))S++;for(_=0,k=y;k;k=Wc(k))_++;for(;0<S-_;)v=Wc(v),S--;for(;0<_-S;)y=Wc(y),_--;for(;S--;){if(v===y||y!==null&&v===y.alternate)break t;v=Wc(v),y=Wc(y)}v=null}else v=null;f!==null&&_4(h,m,f,v,!1),x!==null&&b!==null&&_4(h,b,x,v,!0)}}e:{if(m=c?cu(c):window,f=m.nodeName&&m.nodeName.toLowerCase(),f==="select"||f==="input"&&m.type==="file")var O=nR;else if(m4(m))if($k)O=oR;else{O=iR;var $=rR}else(f=m.nodeName)&&f.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(O=sR);if(O&&(O=O(e,c))){Vk(h,O,n,d);break e}$&&$(e,m,c),e==="focusout"&&($=m._wrapperState)&&$.controlled&&m.type==="number"&&C2(m,"number",m.value)}switch($=c?cu(c):window,e){case"focusin":(m4($)||$.contentEditable==="true")&&(au=$,z2=c,Of=null);break;case"focusout":Of=z2=au=null;break;case"mousedown":U2=!0;break;case"contextmenu":case"mouseup":case"dragend":U2=!1,b4(h,n,d);break;case"selectionchange":if(cR)break;case"keydown":case"keyup":b4(h,n,d)}var U;if(a5)e:{switch(e){case"compositionstart":var I="onCompositionStart";break e;case"compositionend":I="onCompositionEnd";break e;case"compositionupdate":I="onCompositionUpdate";break e}I=void 0}else ou?zk(e,n)&&(I="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(I="onCompositionStart");I&&(Bk&&n.locale!=="ko"&&(ou||I!=="onCompositionStart"?I==="onCompositionEnd"&&ou&&(U=Dk()):(Da=d,i5="value"in Da?Da.value:Da.textContent,ou=!0)),$=g0(c,I),0<$.length&&(I=new d4(I,e,null,n,d),h.push({event:I,listeners:$}),U?I.data=U:(U=Uk(n),U!==null&&(I.data=U)))),(U=Z7?Q7(e,n):J7(e,n))&&(c=g0(c,"onBeforeInput"),0<c.length&&(d=new d4("onBeforeInput","beforeinput",null,n,d),h.push({event:d,listeners:c}),d.data=U))}Jk(h,t)})}function ah(e,t,n){return{instance:e,listener:t,currentTarget:n}}function g0(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=eh(e,n),s!=null&&r.unshift(ah(e,s,i)),s=eh(e,t),s!=null&&r.push(ah(e,s,i))),e=e.return}return r}function Wc(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function _4(e,t,n,r,i){for(var s=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&c!==null&&(a=c,i?(l=eh(n,s),l!=null&&o.unshift(ah(n,l,a))):i||(l=eh(n,s),l!=null&&o.push(ah(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var hR=/\r\n?/g,pR=/\u0000|\uFFFD/g;function N4(e){return(typeof e=="string"?e:""+e).replace(hR,` 39`).replace(pR,"")}function em(e,t,n){if(t=N4(t),N4(e)!==t&&n)throw Error(Ee(425))}function y0(){}var V2=null,$2=null;function q2(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var H2=typeof setTimeout=="function"?setTimeout:void 0,mR=typeof clearTimeout=="function"?clearTimeout:void 0,k4=typeof Promise=="function"?Promise:void 0,gR=typeof queueMicrotask=="function"?queueMicrotask:typeof k4<"u"?function(e){return k4.resolve(null).then(e).catch(yR)}:H2;function yR(e){setTimeout(function(){throw e})}function ty(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),rh(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);rh(t)}function Ga(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function A4(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var gd=Math.random().toString(36).slice(2),ro="__reactFiber$"+gd,lh="__reactProps$"+gd,Ho="__reactContainer$"+gd,W2="__reactEvents$"+gd,xR="__reactListeners$"+gd,vR="__reactHandles$"+gd;function Ul(e){var t=e[ro];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ho]||n[ro]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=A4(e);e!==null;){if(n=e[ro])return n;e=A4(e)}return t}e=n,n=e.parentNode}return null}function zh(e){return e=e[ro]||e[Ho],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function cu(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Ee(33))}function vg(e){return e[lh]||null}var G2=[],uu=-1;function pl(e){return{current:e}}function xn(e){0>uu||(e.current=G2[uu],G2[uu]=null,uu--)}function hn(e,t){uu++,G2[uu]=e.current,e.current=t}var rl={},Vr=pl(rl),ui=pl(!1),fc=rl;function Yu(e,t){var n=e.type.contextTypes;if(!n)return rl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function di(e){return e=e.childContextTypes,e!=null}function x0(){xn(ui),xn(Vr)}function j4(e,t,n){if(Vr.current!==rl)throw Error(Ee(168));hn(Vr,t),hn(ui,n)}function tA(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Ee(108,r7(e)||"Unknown",i));return Cn({},n,r)}function v0(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||rl,fc=Vr.current,hn(Vr,e),hn(ui,ui.current),!0}function C4(e,t,n){var r=e.stateNode;if(!r)throw Error(Ee(169));n?(e=tA(e,t,fc),r.__reactInternalMemoizedMergedChildContext=e,xn(ui),xn(Vr),hn(Vr,e)):xn(ui),hn(ui,n)}var Do=null,bg=!1,ny=!1;function nA(e){Do===null?Do=[e]:Do.push(e)}function bR(e){bg=!0,nA(e)}function ml(){if(!ny&&Do!==null){ny=!0;var e=0,t=nn;try{var n=Do;for(nn=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Do=null,bg=!1}catch(i){throw Do!==null&&(Do=Do.slice(e+1)),jk(e5,ml),i}finally{nn=t,ny=!1}}return null}var du=[],fu=0,b0=null,w0=0,Xi=[],Zi=0,hc=null,Uo=1,Vo="";function Ml(e,t){du[fu++]=w0,du[fu++]=b0,b0=e,w0=t}function rA(e,t,n){Xi[Zi++]=Uo,Xi[Zi++]=Vo,Xi[Zi++]=hc,hc=e;var r=Uo;e=Vo;var i=32-js(r)-1;r&=~(1<<i),n+=1;var s=32-js(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Uo=1<<32-js(t)+i|n<<i|r,Vo=s+e}else Uo=1<<s|n<<i|r,Vo=e}function c5(e){e.return!==null&&(Ml(e,1),rA(e,1,0))}function u5(e){for(;e===b0;)b0=du[--fu],du[fu]=null,w0=du[--fu],du[fu]=null;for(;e===hc;)hc=Xi[--Zi],Xi[Zi]=null,Vo=Xi[--Zi],Xi[Zi]=null,Uo=Xi[--Zi],Xi[Zi]=null}var Oi=null,Pi=null,Sn=!1,ks=null;function iA(e,t){var n=es(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function E4(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Oi=e,Pi=Ga(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Oi=e,Pi=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=hc!==null?{id:Uo,overflow:Vo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=es(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Oi=e,Pi=null,!0):!1;default:return!1}}function K2(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Y2(e){if(Sn){var t=Pi;if(t){var n=t;if(!E4(e,t)){if(K2(e))throw Error(Ee(418));t=Ga(n.nextSibling);var r=Oi;t&&E4(e,t)?iA(r,n):(e.flags=e.flags&-4097|2,Sn=!1,Oi=e)}}else{if(K2(e))throw Error(Ee(418));e.flags=e.flags&-4097|2,Sn=!1,Oi=e}}}function L4(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Oi=e}function tm(e){if(e!==Oi)return!1;if(!Sn)return L4(e),Sn=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!q2(e.type,e.memoizedProps)),t&&(t=Pi)){if(K2(e))throw sA(),Error(Ee(418));for(;t;)iA(e,t),t=Ga(t.nextSibling)}if(L4(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Ee(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Pi=Ga(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Pi=null}}else Pi=Oi?Ga(e.stateNode.nextSibling):null;return!0}function sA(){for(var e=Pi;e;)e=Ga(e.nextSibling)}function Xu(){Pi=Oi=null,Sn=!1}function d5(e){ks===null?ks=[e]:ks.push(e)}var wR=Zo.ReactCurrentBatchConfig;function uf(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Ee(309));var r=n.stateNode}if(!r)throw Error(Ee(147,e));var i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var a=i.refs;o===null?delete a[s]:a[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(Ee(284));if(!n._owner)throw Error(Ee(290,e))}return e}function nm(e,t){throw e=Object.prototype.toString.call(t),Error(Ee(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function P4(e){var t=e._init;return t(e._payload)}function oA(e){function t(y,S){if(e){var _=y.deletions;_===null?(y.deletions=[S],y.flags|=16):_.push(S)}}function n(y,S){if(!e)return null;for(;S!==null;)t(y,S),S=S.sibling;return null}function r(y,S){for(y=new Map;S!==null;)S.key!==null?y.set(S.key,S):y.set(S.index,S),S=S.sibling;return y}function i(y,S){return y=Za(y,S),y.index=0,y.sibling=null,y}function s(y,S,_){return y.index=_,e?(_=y.alternate,_!==null?(_=_.index,_<S?(y.flags|=2,S):_):(y.flags|=2,S)):(y.flags|=1048576,S)}function o(y){return e&&y.alternate===null&&(y.flags|=2),y}function a(y,S,_,k){return S===null||S.tag!==6?(S=cy(_,y.mode,k),S.return=y,S):(S=i(S,_),S.return=y,S)}function l(y,S,_,k){var O=_.type;return O===su?d(y,S,_.props.children,k,_.key):S!==null&&(S.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===ka&&P4(O)===S.type)?(k=i(S,_.props),k.ref=uf(y,S,_),k.return=y,k):(k=Um(_.type,_.key,_.props,null,y.mode,k),k.ref=uf(y,S,_),k.return=y,k)}function c(y,S,_,k){return S===null||S.tag!==4||S.stateNode.containerInfo!==_.containerInfo||S.stateNode.implementation!==_.implementation?(S=uy(_,y.mode,k),S.return=y,S):(S=i(S,_.children||[]),S.return=y,S)}function d(y,S,_,k,O){return S===null||S.tag!==7?(S=ac(_,y.mode,k,O),S.return=y,S):(S=i(S,_),S.return=y,S)}function h(y,S,_){if(typeof S=="string"&&S!==""||typeof S=="number")return S=cy(""+S,y.mode,_),S.return=y,S;if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Hp:return _=Um(S.type,S.key,S.props,null,y.mode,_),_.ref=uf(y,null,S),_.return=y,_;case iu:return S=uy(S,y.mode,_),S.return=y,S;case ka:var k=S._init;return h(y,k(S._payload),_)}if(Sf(S)||sf(S))return S=ac(S,y.mode,_,null),S.return=y,S;nm(y,S)}return null}function m(y,S,_,k){var O=S!==null?S.key:null;if(typeof _=="string"&&_!==""||typeof _=="number")return O!==null?null:a(y,S,""+_,k);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Hp:return _.key===O?l(y,S,_,k):null;case iu:return _.key===O?c(y,S,_,k):null;case ka:return O=_._init,m(y,S,O(_._payload),k)}if(Sf(_)||sf(_))return O!==null?null:d(y,S,_,k,null);nm(y,_)}return null}function f(y,S,_,k,O){if(typeof k=="string"&&k!==""||typeof k=="number")return y=y.get(_)||null,a(S,y,""+k,O);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case Hp:return y=y.get(k.key===null?_:k.key)||null,l(S,y,k,O);case iu:return y=y.get(k.key===null?_:k.key)||null,c(S,y,k,O);case ka:var $=k._init;return f(y,S,_,$(k._payload),O)}if(Sf(k)||sf(k))return y=y.get(_)||null,d(S,y,k,O,null);nm(S,k)}return null}function x(y,S,_,k){for(var O=null,$=null,U=S,I=S=0,R=null;U!==null&&I<_.length;I++){U.index>I?(R=U,U=null):R=U.sibling;var z=m(y,U,_[I],k);if(z===null){U===null&&(U=R);break}e&&U&&z.alternate===null&&t(y,U),S=s(z,S,I),$===null?O=z:$.sibling=z,$=z,U=R}if(I===_.length)return n(y,U),Sn&&Ml(y,I),O;if(U===null){for(;I<_.length;I++)U=h(y,_[I],k),U!==null&&(S=s(U,S,I),$===null?O=U:$.sibling=U,$=U);return Sn&&Ml(y,I),O}for(U=r(y,U);I<_.length;I++)R=f(U,y,I,_[I],k),R!==null&&(e&&R.alternate!==null&&U.delete(R.key===null?I:R.key),S=s(R,S,I),$===null?O=R:$.sibling=R,$=R);return e&&U.forEach(function(C){return t(y,C)}),Sn&&Ml(y,I),O}function v(y,S,_,k){var O=sf(_);if(typeof O!="function")throw Error(Ee(150));if(_=O.call(_),_==null)throw Error(Ee(151));for(var $=O=null,U=S,I=S=0,R=null,z=_.next();U!==null&&!z.done;I++,z=_.next()){U.index>I?(R=U,U=null):R=U.sibling;var C=m(y,U,z.value,k);if(C===null){U===null&&(U=R);break}e&&U&&C.alternate===null&&t(y,U),S=s(C,S,I),$===null?O=C:$.sibling=C,$=C,U=R}if(z.done)return n(y,U),Sn&&Ml(y,I),O;if(U===null){for(;!z.done;I++,z=_.next())z=h(y,z.value,k),z!==null&&(S=s(z,S,I),$===null?O=z:$.sibling=z,$=z);return Sn&&Ml(y,I),O}for(U=r(y,U);!z.done;I++,z=_.next())z=f(U,y,I,z.value,k),z!==null&&(e&&z.alternate!==null&&U.delete(z.key===null?I:z.key),S=s(z,S,I),$===null?O=z:$.sibling=z,$=z);return e&&U.forEach(function(L){return t(y,L)}),Sn&&Ml(y,I),O}function b(y,S,_,k){if(typeof _=="object"&&_!==null&&_.type===su&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case Hp:e:{for(var O=_.key,$=S;$!==null;){if($.key===O){if(O=_.type,O===su){if($.tag===7){n(y,$.sibling),S=i($,_.props.children),S.return=y,y=S;break e}}else if($.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===ka&&P4(O)===$.type){n(y,$.sibling),S=i($,_.props),S.ref=uf(y,$,_),S.return=y,y=S;break e}n(y,$);break}else t(y,$);$=$.sibling}_.type===su?(S=ac(_.props.children,y.mode,k,_.key),S.return=y,y=S):(k=Um(_.type,_.key,_.props,null,y.mode,k),k.ref=uf(y,S,_),k.return=y,y=k)}return o(y);case iu:e:{for($=_.key;S!==null;){if(S.key===$)if(S.tag===4&&S.stateNode.containerInfo===_.containerInfo&&S.stateNode.implementation===_.implementation){n(y,S.sibling),S=i(S,_.children||[]),S.return=y,y=S;break e}else{n(y,S);break}else t(y,S);S=S.sibling}S=uy(_,y.mode,k),S.return=y,y=S}return o(y);case ka:return $=_._init,b(y,S,$(_._payload),k)}if(Sf(_))return x(y,S,_,k);if(sf(_))return v(y,S,_,k);nm(y,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,S!==null&&S.tag===6?(n(y,S.sibling),S=i(S,_),S.return=y,y=S):(n(y,S),S=cy(_,y.mode,k),S.return=y,y=S),o(y)):n(y,S)}return b}var Zu=oA(!0),aA=oA(!1),S0=pl(null),_0=null,hu=null,f5=null;function h5(){f5=hu=_0=null}function p5(e){var t=S0.current;xn(S0),e._currentValue=t}function X2(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ku(e,t){_0=e,f5=hu=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(li=!0),e.firstContext=null)}function rs(e){var t=e._currentValue;if(f5!==e)if(e={context:e,memoizedValue:t,next:null},hu===null){if(_0===null)throw Error(Ee(308));hu=e,_0.dependencies={lanes:0,firstContext:e}}else hu=hu.next=e;return t}var Vl=null;function m5(e){Vl===null?Vl=[e]:Vl.push(e)}function lA(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,m5(t)):(n.next=i.next,i.next=n),t.interleaved=n,Wo(e,r)}function Wo(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Aa=!1;function g5(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function cA(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function $o(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ka(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ut&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Wo(e,n)}return i=r.interleaved,i===null?(t.next=t,m5(r)):(t.next=i.next,i.next=t),r.interleaved=t,Wo(e,n)}function Im(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,t5(e,n)}}function T4(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function N0(e,t,n,r){var i=e.updateQueue;Aa=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,c=l.next;l.next=null,o===null?s=c:o.next=c,o=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==o&&(a===null?d.firstBaseUpdate=c:a.next=c,d.lastBaseUpdate=l))}if(s!==null){var h=i.baseState;o=0,d=c=l=null,a=s;do{var m=a.lane,f=a.eventTime;if((r&m)===m){d!==null&&(d=d.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,v=a;switch(m=t,f=n,v.tag){case 1:if(x=v.payload,typeof x=="function"){h=x.call(f,h,m);break e}h=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=v.payload,m=typeof x=="function"?x.call(f,h,m):x,m==null)break e;h=Cn({},h,m);break e;case 2:Aa=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,m=i.effects,m===null?i.effects=[a]:m.push(a))}else f={eventTime:f,lane:m,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=f,l=h):d=d.next=f,o|=m;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;m=a,a=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(!0);if(d===null&&(l=h),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);mc|=o,e.lanes=o,e.memoizedState=h}}function R4(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(Ee(191,i));i.call(r)}}}var Uh={},lo=pl(Uh),ch=pl(Uh),uh=pl(Uh);function $l(e){if(e===Uh)throw Error(Ee(174));return e}function y5(e,t){switch(hn(uh,t),hn(ch,e),hn(lo,Uh),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:L2(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=L2(t,e)}xn(lo),hn(lo,t)}function Qu(){xn(lo),xn(ch),xn(uh)}function uA(e){$l(uh.current);var t=$l(lo.current),n=L2(t,e.type);t!==n&&(hn(ch,e),hn(lo,n))}function x5(e){ch.current===e&&(xn(lo),xn(ch))}var kn=pl(0);function k0(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ry=[];function v5(){for(var e=0;e<ry.length;e++)ry[e]._workInProgressVersionPrimary=null;ry.length=0}var Mm=Zo.ReactCurrentDispatcher,iy=Zo.ReactCurrentBatchConfig,pc=0,An=null,or=null,pr=null,A0=!1,If=!1,dh=0,SR=0;function Tr(){throw Error(Ee(321))}function b5(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ls(e[n],t[n]))return!1;return!0}function w5(e,t,n,r,i,s){if(pc=s,An=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Mm.current=e===null||e.memoizedState===null?AR:jR,e=n(r,i),If){s=0;do{if(If=!1,dh=0,25<=s)throw Error(Ee(301));s+=1,pr=or=null,t.updateQueue=null,Mm.current=CR,e=n(r,i)}while(If)}if(Mm.current=j0,t=or!==null&&or.next!==null,pc=0,pr=or=An=null,A0=!1,t)throw Error(Ee(300));return e}function S5(){var e=dh!==0;return dh=0,e}function Xs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pr===null?An.memoizedState=pr=e:pr=pr.next=e,pr}function is(){if(or===null){var e=An.alternate;e=e!==null?e.memoizedState:null}else e=or.next;var t=pr===null?An.memoizedState:pr.next;if(t!==null)pr=t,or=e;else{if(e===null)throw Error(Ee(310));or=e,e={memoizedState:or.memoizedState,baseState:or.baseState,baseQueue:or.baseQueue,queue:or.queue,next:null},pr===null?An.memoizedState=pr=e:pr=pr.next=e}return pr}function fh(e,t){return typeof t=="function"?t(e):t}function sy(e){var t=is(),n=t.queue;if(n===null)throw Error(Ee(311));n.lastRenderedReducer=e;var r=or,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var a=o=null,l=null,c=s;do{var d=c.lane;if((pc&d)===d)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var h={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=h,o=r):l=l.next=h,An.lanes|=d,mc|=d}c=c.next}while(c!==null&&c!==s);l===null?o=r:l.next=a,Ls(r,t.memoizedState)||(li=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,An.lanes|=s,mc|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function oy(e){var t=is(),n=t.queue;if(n===null)throw Error(Ee(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);Ls(s,t.memoizedState)||(li=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function dA(){}function fA(e,t){var n=An,r=is(),i=t(),s=!Ls(r.memoizedState,i);if(s&&(r.memoizedState=i,li=!0),r=r.queue,_5(mA.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||pr!==null&&pr.memoizedState.tag&1){if(n.flags|=2048,hh(9,pA.bind(null,n,r,i,t),void 0,null),gr===null)throw Error(Ee(349));pc&30||hA(n,t,i)}return i}function hA(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=An.updateQueue,t===null?(t={lastEffect:null,stores:null},An.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function pA(e,t,n,r){t.value=n,t.getSnapshot=r,gA(t)&&yA(e)}function mA(e,t,n){return n(function(){gA(t)&&yA(e)})}function gA(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ls(e,n)}catch{return!0}}function yA(e){var t=Wo(e,1);t!==null&&Cs(t,e,1,-1)}function O4(e){var t=Xs();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:fh,lastRenderedState:e},t.queue=e,e=e.dispatch=kR.bind(null,An,e),[t.memoizedState,e]}function hh(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=An.updateQueue,t===null?(t={lastEffect:null,stores:null},An.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function xA(){return is().memoizedState}function Fm(e,t,n,r){var i=Xs();An.flags|=e,i.memoizedState=hh(1|t,n,void 0,r===void 0?null:r)}function wg(e,t,n,r){var i=is();r=r===void 0?null:r;var s=void 0;if(or!==null){var o=or.memoizedState;if(s=o.destroy,r!==null&&b5(r,o.deps)){i.memoizedState=hh(t,n,s,r);return}}An.flags|=e,i.memoizedState=hh(1|t,n,s,r)}function I4(e,t){return Fm(8390656,8,e,t)}function _5(e,t){return wg(2048,8,e,t)}function vA(e,t){return wg(4,2,e,t)}function bA(e,t){return wg(4,4,e,t)}function wA(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function SA(e,t,n){return n=n!=null?n.concat([e]):null,wg(4,4,wA.bind(null,t,e),n)}function N5(){}function _A(e,t){var n=is();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&b5(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function NA(e,t){var n=is();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&b5(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function kA(e,t,n){return pc&21?(Ls(n,t)||(n=Lk(),An.lanes|=n,mc|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,li=!0),e.memoizedState=n)}function _R(e,t){var n=nn;nn=n!==0&&4>n?n:4,e(!0);var r=iy.transition;iy.transition={};try{e(!1),t()}finally{nn=n,iy.transition=r}}function AA(){return is().memoizedState}function NR(e,t,n){var r=Xa(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},jA(e))CA(t,n);else if(n=lA(e,t,n,r),n!==null){var i=Jr();Cs(n,e,r,i),EA(n,t,r)}}function kR(e,t,n){var r=Xa(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(jA(e))CA(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,Ls(a,o)){var l=t.interleaved;l===null?(i.next=i,m5(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=lA(e,t,i,r),n!==null&&(i=Jr(),Cs(n,e,r,i),EA(n,t,r))}}function jA(e){var t=e.alternate;return e===An||t!==null&&t===An}function CA(e,t){If=A0=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function EA(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,t5(e,n)}}var j0={readContext:rs,useCallback:Tr,useContext:Tr,useEffect:Tr,useImperativeHandle:Tr,useInsertionEffect:Tr,useLayoutEffect:Tr,useMemo:Tr,useReducer:Tr,useRef:Tr,useState:Tr,useDebugValue:Tr,useDeferredValue:Tr,useTransition:Tr,useMutableSource:Tr,useSyncExternalStore:Tr,useId:Tr,unstable_isNewReconciler:!1},AR={readContext:rs,useCallback:function(e,t){return Xs().memoizedState=[e,t===void 0?null:t],e},useContext:rs,useEffect:I4,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Fm(4194308,4,wA.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fm(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fm(4,2,e,t)},useMemo:function(e,t){var n=Xs();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Xs();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=NR.bind(null,An,e),[r.memoizedState,e]},useRef:function(e){var t=Xs();return e={current:e},t.memoizedState=e},useState:O4,useDebugValue:N5,useDeferredValue:function(e){return Xs().memoizedState=e},useTransition:function(){var e=O4(!1),t=e[0];return e=_R.bind(null,e[1]),Xs().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=An,i=Xs();if(Sn){if(n===void 0)throw Error(Ee(407));n=n()}else{if(n=t(),gr===null)throw Error(Ee(349));pc&30||hA(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,I4(mA.bind(null,r,s,e),[e]),r.flags|=2048,hh(9,pA.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Xs(),t=gr.identifierPrefix;if(Sn){var n=Vo,r=Uo;n=(r&~(1<<32-js(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=dh++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=SR++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},jR={readContext:rs,useCallback:_A,useContext:rs,useEffect:_5,useImperativeHandle:SA,useInsertionEffect:vA,useLayoutEffect:bA,useMemo:NA,useReducer:sy,useRef:xA,useState:function(){return sy(fh)},useDebugValue:N5,useDeferredValue:function(e){var t=is();return kA(t,or.memoizedState,e)},useTransition:function(){var e=sy(fh)[0],t=is().memoizedState;return[e,t]},useMutableSource:dA,useSyncExternalStore:fA,useId:AA,unstable_isNewReconciler:!1},CR={readContext:rs,useCallback:_A,useContext:rs,useEffect:_5,useImperativeHandle:SA,useInsertionEffect:vA,useLayoutEffect:bA,useMemo:NA,useReducer:oy,useRef:xA,useState:function(){return oy(fh)},useDebugValue:N5,useDeferredValue:function(e){var t=is();return or===null?t.memoizedState=e:kA(t,or.memoizedState,e)},useTransition:function(){var e=oy(fh)[0],t=is().memoizedState;return[e,t]},useMutableSource:dA,useSyncExternalStore:fA,useId:AA,unstable_isNewReconciler:!1};function ws(e,t){if(e&&e.defaultProps){t=Cn({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Z2(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Cn({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Sg={isMounted:function(e){return(e=e._reactInternals)?Ec(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Jr(),i=Xa(e),s=$o(r,i);s.payload=t,n!=null&&(s.callback=n),t=Ka(e,s,i),t!==null&&(Cs(t,e,i,r),Im(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Jr(),i=Xa(e),s=$o(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Ka(e,s,i),t!==null&&(Cs(t,e,i,r),Im(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Jr(),r=Xa(e),i=$o(n,r);i.tag=2,t!=null&&(i.callback=t),t=Ka(e,i,r),t!==null&&(Cs(t,e,r,n),Im(t,e,r))}};function M4(e,t,n,r,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!sh(n,r)||!sh(i,s):!0}function LA(e,t,n){var r=!1,i=rl,s=t.contextType;return typeof s=="object"&&s!==null?s=rs(s):(i=di(t)?fc:Vr.current,r=t.contextTypes,s=(r=r!=null)?Yu(e,i):rl),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Sg,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function F4(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Sg.enqueueReplaceState(t,t.state,null)}function Q2(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},g5(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=rs(s):(s=di(t)?fc:Vr.current,i.context=Yu(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Z2(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Sg.enqueueReplaceState(i,i.state,null),N0(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Ju(e,t){try{var n="",r=t;do n+=n7(r),r=r.return;while(r);var i=n}catch(s){i=` 40Error generating stack: `+s.message+` 41`+s.stack}return{value:e,source:t,stack:i,digest:null}}function ay(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function J2(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var ER=typeof WeakMap=="function"?WeakMap:Map;function PA(e,t,n){n=$o(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){E0||(E0=!0,cx=r),J2(e,t)},n}function TA(e,t,n){n=$o(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){J2(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){J2(e,t),typeof r!="function"&&(Ya===null?Ya=new Set([this]):Ya.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function D4(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ER;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=$R.bind(null,e,t,n),t.then(e,e))}function B4(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function z4(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=$o(-1,1),t.tag=2,Ka(n,t,1))),n.lanes|=1),e)}var LR=Zo.ReactCurrentOwner,li=!1;function Yr(e,t,n,r){t.child=e===null?aA(t,null,n,r):Zu(t,e.child,n,r)}function U4(e,t,n,r,i){n=n.render;var s=t.ref;return ku(t,i),r=w5(e,t,n,r,s,i),n=S5(),e!==null&&!li?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Go(e,t,i)):(Sn&&n&&c5(t),t.flags|=1,Yr(e,t,r,i),t.child)}function V4(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!T5(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,RA(e,t,s,r,i)):(e=Um(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:sh,n(o,r)&&e.ref===t.ref)return Go(e,t,i)}return t.flags|=1,e=Za(s,r),e.ref=t.ref,e.return=t,t.child=e}function RA(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(sh(s,r)&&e.ref===t.ref)if(li=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(li=!0);else return t.lanes=e.lanes,Go(e,t,i)}return ex(e,t,n,r,i)}function OA(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},hn(mu,Ei),Ei|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,hn(mu,Ei),Ei|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,hn(mu,Ei),Ei|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,hn(mu,Ei),Ei|=r;return Yr(e,t,i,n),t.child}function IA(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}
vendor: 9,519 bytes, line 41
41function ex(e,t,n,r,i){var s=di(n)?fc:Vr.current;return s=Yu(t,s),ku(t,i),n=w5(e,t,n,r,s,i),r=S5(),e!==null&&!li?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Go(e,t,i)):(Sn&&r&&c5(t),t.flags|=1,Yr(e,t,n,i),t.child)}function $4(e,t,n,r,i){if(di(n)){var s=!0;v0(t)}else s=!1;if(ku(t,i),t.stateNode===null)Dm(e,t),LA(t,n,r),Q2(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=rs(c):(c=di(n)?fc:Vr.current,c=Yu(t,c));var d=n.getDerivedStateFromProps,h=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";h||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==c)&&F4(t,o,r,c),Aa=!1;var m=t.memoizedState;o.state=m,N0(t,r,o,i),l=t.memoizedState,a!==r||m!==l||ui.current||Aa?(typeof d=="function"&&(Z2(t,n,d,r),l=t.memoizedState),(a=Aa||M4(t,n,a,r,m,l,c))?(h||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=c,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,cA(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:ws(t.type,a),o.props=c,h=t.pendingProps,m=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=rs(l):(l=di(n)?fc:Vr.current,l=Yu(t,l));var f=n.getDerivedStateFromProps;(d=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==h||m!==l)&&F4(t,o,r,l),Aa=!1,m=t.memoizedState,o.state=m,N0(t,r,o,i);var x=t.memoizedState;a!==h||m!==x||ui.current||Aa?(typeof f=="function"&&(Z2(t,n,f,r),x=t.memoizedState),(c=Aa||M4(t,n,c,r,m,x,l)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,x,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,x,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),o.props=r,o.state=x,o.context=l,r=c):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return tx(e,t,n,r,s,i)}function tx(e,t,n,r,i,s){IA(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&C4(t,n,!1),Go(e,t,s);r=t.stateNode,LR.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Zu(t,e.child,null,s),t.child=Zu(t,null,a,s)):Yr(e,t,a,s),t.memoizedState=r.state,i&&C4(t,n,!0),t.child}function MA(e){var t=e.stateNode;t.pendingContext?j4(e,t.pendingContext,t.pendingContext!==t.context):t.context&&j4(e,t.context,!1),y5(e,t.containerInfo)}function q4(e,t,n,r,i){return Xu(),d5(i),t.flags|=256,Yr(e,t,n,r),t.child}var nx={dehydrated:null,treeContext:null,retryLane:0};function rx(e){return{baseLanes:e,cachePool:null,transitions:null}}function FA(e,t,n){var r=t.pendingProps,i=kn.current,s=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),hn(kn,i&1),e===null)return Y2(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=kg(o,r,0,null),e=ac(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=rx(n),t.memoizedState=nx,e):k5(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return PR(e,t,o,r,a,i,n);if(s){s=r.fallback,o=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Za(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=Za(a,s):(s=ac(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?rx(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=nx,r}return s=e.child,e=s.sibling,r=Za(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function k5(e,t){return t=kg({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function rm(e,t,n,r){return r!==null&&d5(r),Zu(t,e.child,null,n),e=k5(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function PR(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=ay(Error(Ee(422))),rm(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=kg({mode:"visible",children:r.children},i,0,null),s=ac(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Zu(t,e.child,null,o),t.child.memoizedState=rx(o),t.memoizedState=nx,s);if(!(t.mode&1))return rm(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(Ee(419)),r=ay(s,r,void 0),rm(e,t,o,r)}if(a=(o&e.childLanes)!==0,li||a){if(r=gr,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,Wo(e,i),Cs(r,e,i,-1))}return P5(),r=ay(Error(Ee(421))),rm(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=qR.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,Pi=Ga(i.nextSibling),Oi=t,Sn=!0,ks=null,e!==null&&(Xi[Zi++]=Uo,Xi[Zi++]=Vo,Xi[Zi++]=hc,Uo=e.id,Vo=e.overflow,hc=t),t=k5(t,r.children),t.flags|=4096,t)}function H4(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),X2(e.return,t,n)}function ly(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function DA(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(Yr(e,t,r.children,n),r=kn.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&H4(e,n,t);else if(e.tag===19)H4(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(hn(kn,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&k0(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ly(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&k0(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ly(t,!0,n,null,s);break;case"together":ly(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Dm(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Go(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),mc|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Ee(153));if(t.child!==null){for(e=t.child,n=Za(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Za(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function TR(e,t,n){switch(t.tag){case 3:MA(t),Xu();break;case 5:uA(t);break;case 1:di(t.type)&&v0(t);break;case 4:y5(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;hn(S0,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(hn(kn,kn.current&1),t.flags|=128,null):n&t.child.childLanes?FA(e,t,n):(hn(kn,kn.current&1),e=Go(e,t,n),e!==null?e.sibling:null);hn(kn,kn.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return DA(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),hn(kn,kn.current),r)break;return null;case 22:case 23:return t.lanes=0,OA(e,t,n)}return Go(e,t,n)}var BA,ix,zA,UA;BA=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};ix=function(){};zA=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,$l(lo.current);var s=null;
vendor: 4,115 bytes, line 41
41switch(n){case"input":i=A2(e,i),r=A2(e,r),s=[];break;case"select":i=Cn({},i,{value:void 0}),r=Cn({},r,{value:void 0}),s=[];break;case"textarea":i=E2(e,i),r=E2(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=y0)}P2(n,r);var o;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var a=i[c];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Qf.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var l=r[c];if(a=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(s||(s=[]),s.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Qf.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&gn("scroll",e),s||a===l||(s=[])):(s=s||[]).push(c,l))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}};UA=function(e,t,n,r){n!==r&&(t.flags|=4)};function df(e,t){if(!Sn)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Rr(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function RR(e,t,n){var r=t.pendingProps;switch(u5(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Rr(t),null;case 1:return di(t.type)&&x0(),Rr(t),null;case 3:return r=t.stateNode,Qu(),xn(ui),xn(Vr),v5(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(tm(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ks!==null&&(fx(ks),ks=null))),ix(e,t),Rr(t),null;case 5:x5(t);var i=$l(uh.current);if(n=t.type,e!==null&&t.stateNode!=null)zA(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Ee(166));return Rr(t),null}if(e=$l(lo.current),tm(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[ro]=t,r[lh]=s,e=(t.mode&1)!==0,n){case"dialog":gn("cancel",r),gn("close",r);break;case"iframe":case"object":case"embed":gn("load",r);break;case"video":case"audio":for(i=0;i<Nf.length;i++)gn(Nf[i],r);break;case"source":gn("error",r);break;case"img":case"image":case"link":gn("error",r),gn("load",r);break;case"details":gn("toggle",r);break;case"input":e4(r,s),gn("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},gn("invalid",r);break;case"textarea":n4(r,s),gn("invalid",r)}P2(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&em(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&em(r.textContent,a,e),i=["children",""+a]):Qf.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&gn("scroll",r)}switch(n){case"input":Wp(r),t4(r,s,!0);break;case"textarea":Wp(r),r4(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=y0)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=mk(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>
41",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[ro]=t,e[lh]=r,BA(e,t,!1,!1),t.stateNode=e;e:{switch(o=T2(n,r),n){case"dialog":gn("cancel",e),gn("close",e),i=r;break;case"iframe":case"object":case"embed":gn("load",e),i=r;break;case"video":case"audio":for(i=0;i<Nf.length;i++)gn(Nf[i],e);i=r;break;case"source":gn("error",e),i=r;break;case"img":case"image":case"link":gn("error",e),gn("load",e),i=r;break;case"details":gn("toggle",e),i=r;break;case"input":e4(e,r),i=A2(e,r),gn("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Cn({},r,{value:void 0}),gn("invalid",e);break;case"textarea":n4(e,r),i=E2(e,r),gn("invalid",e);break;default:i=r}P2(n,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?xk(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&gk(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Jf(e,l):typeof l=="number"&&Jf(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Qf.hasOwnProperty(s)?l!=null&&s==="onScroll"&&gn("scroll",e):l!=null&&Yv(e,s,l,o))}switch(n){case"input":Wp(e),t4(e,r,!1);break;case"textarea":Wp(e),r4(e);break;case"option":r.value!=null&&e.setAttribute("value",""+nl(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?wu(e,!!r.multiple,s,!1):r.defaultValue!=null&&wu(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=y0)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Rr(t),null;case 6:if(e&&t.stateNode!=null)UA(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Ee(166));if(n=$l(uh.current),$l(lo.current),tm(t)){if(r=t.stateNode,n=t.memoizedProps,r[ro]=t,(s=r.nodeValue!==n)&&(e=Oi,e!==null))switch(e.tag){case 3:em(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&em(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ro]=t,t.stateNode=r}return Rr(t),null;case 13:if(xn(kn),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Sn&&Pi!==null&&t.mode&1&&!(t.flags&128))sA(),Xu(),t.flags|=98560,s=!1;else if(s=tm(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(Ee(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(Ee(317));s[ro]=t}else Xu(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Rr(t),s=!1}else ks!==null&&(fx(ks),ks=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||kn.current&1?lr===0&&(lr=3):P5())),t.updateQueue!==null&&(t.flags|=4),Rr(t),null);case 4:return Qu(),ix(e,t),e===null&&oh(t.stateNode.containerInfo),Rr(t),null;case 10:return p5(t.type._context),Rr(t),null;case 17:return di(t.type)&&x0(),Rr(t),null;case 19:if(xn(kn),s=t.memoizedState,s===null)return Rr(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)df(s,!1);else{if(lr!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=k0(e),o!==null){for(t.flags|=128,df(s,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return hn(kn,kn.current&1|2),t.child}e=e.sibling}s.tail!==null&&Un()>ed&&(t.flags|=128,r=!0,df(s,!1),t.lanes=4194304)}else{if(!r)if(e=k0(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),df(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!Sn)return Rr(t),null}else 2*Un()-s.renderingStartTime>ed&&n!==1073741824&&(t.flags|=128,r=!0,df(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Un(),t.sibling=null,n=kn.current,hn(kn,r?n&1|2:n&1),t):(Rr(t),null);case 22:case 23:return L5(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ei&1073741824&&(Rr(t),t.subtreeFlags&6&&(t.flags|=8192)):Rr(t),null;case 24:return null;case 25:return null}throw Error(Ee(156,t.tag))}function OR(e,t){switch(u5(t),t.tag){case 1:return di(t.type)&&x0(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;
vendor: 26,035 bytes, line 41
41case 3:return Qu(),xn(ui),xn(Vr),v5(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return x5(t),null;case 13:if(xn(kn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ee(340));Xu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return xn(kn),null;case 4:return Qu(),null;case 10:return p5(t.type._context),null;case 22:case 23:return L5(),null;case 24:return null;default:return null}}var im=!1,zr=!1,IR=typeof WeakSet=="function"?WeakSet:Set,De=null;function pu(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){In(e,t,r)}else n.current=null}function sx(e,t,n){try{n()}catch(r){In(e,t,r)}}var W4=!1;function MR(e,t){if(V2=p0,e=Wk(),l5(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,c=0,d=0,h=e,m=null;t:for(;;){for(var f;h!==n||i!==0&&h.nodeType!==3||(a=o+i),h!==s||r!==0&&h.nodeType!==3||(l=o+r),h.nodeType===3&&(o+=h.nodeValue.length),(f=h.firstChild)!==null;)m=h,h=f;for(;;){if(h===e)break t;if(m===n&&++c===i&&(a=o),m===s&&++d===r&&(l=o),(f=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=f}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for($2={focusedElem:e,selectionRange:n},p0=!1,De=t;De!==null;)if(t=De,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,De=e;else for(;De!==null;){t=De;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var v=x.memoizedProps,b=x.memoizedState,y=t.stateNode,S=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:ws(t.type,v),b);y.__reactInternalSnapshotBeforeUpdate=S}break;case 3:var _=t.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ee(163))}}catch(k){In(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,De=e;break}De=t.return}return x=W4,W4=!1,x}function Mf(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&sx(t,n,s)}i=i.next}while(i!==r)}}function _g(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ox(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function VA(e){var t=e.alternate;t!==null&&(e.alternate=null,VA(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ro],delete t[lh],delete t[W2],delete t[xR],delete t[vR])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function $A(e){return e.tag===5||e.tag===3||e.tag===4}function G4(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$A(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ax(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=y0));else if(r!==4&&(e=e.child,e!==null))for(ax(e,t,n),e=e.sibling;e!==null;)ax(e,t,n),e=e.sibling}function lx(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(lx(e,t,n),e=e.sibling;e!==null;)lx(e,t,n),e=e.sibling}var Nr=null,Ns=!1;function xa(e,t,n){for(n=n.child;n!==null;)qA(e,t,n),n=n.sibling}function qA(e,t,n){if(ao&&typeof ao.onCommitFiberUnmount=="function")try{ao.onCommitFiberUnmount(mg,n)}catch{}switch(n.tag){case 5:zr||pu(n,t);case 6:var r=Nr,i=Ns;Nr=null,xa(e,t,n),Nr=r,Ns=i,Nr!==null&&(Ns?(e=Nr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Nr.removeChild(n.stateNode));break;case 18:Nr!==null&&(Ns?(e=Nr,n=n.stateNode,e.nodeType===8?ty(e.parentNode,n):e.nodeType===1&&ty(e,n),rh(e)):ty(Nr,n.stateNode));break;case 4:r=Nr,i=Ns,Nr=n.stateNode.containerInfo,Ns=!0,xa(e,t,n),Nr=r,Ns=i;break;case 0:case 11:case 14:case 15:if(!zr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&sx(n,t,o),i=i.next}while(i!==r)}xa(e,t,n);break;case 1:if(!zr&&(pu(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){In(n,t,a)}xa(e,t,n);break;case 21:xa(e,t,n);break;case 22:n.mode&1?(zr=(r=zr)||n.memoizedState!==null,xa(e,t,n),zr=r):xa(e,t,n);break;default:xa(e,t,n)}}function K4(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new IR),t.forEach(function(r){var i=HR.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function gs(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:Nr=a.stateNode,Ns=!1;break e;case 3:Nr=a.stateNode.containerInfo,Ns=!0;break e;case 4:Nr=a.stateNode.containerInfo,Ns=!0;break e}a=a.return}if(Nr===null)throw Error(Ee(160));qA(s,o,i),Nr=null,Ns=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){In(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)HA(t,e),t=t.sibling}function HA(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gs(t,e),Gs(e),r&4){try{Mf(3,e,e.return),_g(3,e)}catch(v){In(e,e.return,v)}try{Mf(5,e,e.return)}catch(v){In(e,e.return,v)}}break;case 1:gs(t,e),Gs(e),r&512&&n!==null&&pu(n,n.return);break;case 5:if(gs(t,e),Gs(e),r&512&&n!==null&&pu(n,n.return),e.flags&32){var i=e.stateNode;try{Jf(i,"")}catch(v){In(e,e.return,v)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&hk(i,s),T2(a,o);var c=T2(a,s);for(o=0;o<l.length;o+=2){var d=l[o],h=l[o+1];d==="style"?xk(i,h):d==="dangerouslySetInnerHTML"?gk(i,h):d==="children"?Jf(i,h):Yv(i,d,h,c)}switch(a){case"input":j2(i,s);break;case"textarea":pk(i,s);break;case"select":var m=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var f=s.value;f!=null?wu(i,!!s.multiple,f,!1):m!==!!s.multiple&&(s.defaultValue!=null?wu(i,!!s.multiple,s.defaultValue,!0):wu(i,!!s.multiple,s.multiple?[]:"",!1))}i[lh]=s}catch(v){In(e,e.return,v)}}break;case 6:if(gs(t,e),Gs(e),r&4){if(e.stateNode===null)throw Error(Ee(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(v){In(e,e.return,v)}}break;case 3:if(gs(t,e),Gs(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{rh(t.containerInfo)}catch(v){In(e,e.return,v)}break;case 4:gs(t,e),Gs(e);break;case 13:gs(t,e),Gs(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(C5=Un())),r&4&&K4(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(zr=(c=zr)||d,gs(t,e),zr=c):gs(t,e),Gs(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&e.mode&1)for(De=e,d=e.child;d!==null;){for(h=De=d;De!==null;){switch(m=De,f=m.child,m.tag){case 0:case 11:case 14:case 15:Mf(4,m,m.return);break;case 1:pu(m,m.return);var x=m.stateNode;if(typeof x.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(v){In(r,n,v)}}break;case 5:pu(m,m.return);break;case 22:if(m.memoizedState!==null){X4(h);continue}}f!==null?(f.return=m,De=f):X4(h)}d=d.sibling}e:for(d=null,h=e;;){if(h.tag===5){if(d===null){d=h;try{i=h.stateNode,c?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=h.stateNode,l=h.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=yk("display",o))}catch(v){In(e,e.return,v)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(v){In(e,e.return,v)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:gs(t,e),Gs(e),r&4&&K4(e);break;case 21:break;default:gs(t,e),Gs(e)}}function Gs(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if($A(n)){var r=n;break e}n=n.return}throw Error(Ee(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Jf(i,""),r.flags&=-33);var s=G4(e);lx(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,a=G4(e);ax(e,a,o);break;default:throw Error(Ee(161))}}catch(l){In(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function FR(e,t,n){De=e,WA(e)}function WA(e,t,n){for(var r=(e.mode&1)!==0;De!==null;){var i=De,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||im;if(!o){var a=i.alternate,l=a!==null&&a.memoizedState!==null||zr;a=im;var c=zr;if(im=o,(zr=l)&&!c)for(De=i;De!==null;)o=De,l=o.child,o.tag===22&&o.memoizedState!==null?Z4(i):l!==null?(l.return=o,De=l):Z4(i);for(;s!==null;)De=s,WA(s),s=s.sibling;De=i,im=a,zr=c}Y4(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,De=s):Y4(e)}}function Y4(e){for(;De!==null;){var t=De;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:zr||_g(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!zr)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ws(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&R4(t,s,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}R4(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var h=d.dehydrated;h!==null&&rh(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Ee(163))}zr||t.flags&512&&ox(t)}catch(m){In(t,t.return,m)}}if(t===e){De=null;break}if(n=t.sibling,n!==null){n.return=t.return,De=n;break}De=t.return}}function X4(e){for(;De!==null;){var t=De;if(t===e){De=null;break}var n=t.sibling;if(n!==null){n.return=t.return,De=n;break}De=t.return}}function Z4(e){for(;De!==null;){var t=De;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{_g(4,t)}catch(l){In(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){In(t,i,l)}}var s=t.return;try{ox(t)}catch(l){In(t,s,l)}break;case 5:var o=t.return;try{ox(t)}catch(l){In(t,o,l)}}}catch(l){In(t,t.return,l)}if(t===e){De=null;break}var a=t.sibling;if(a!==null){a.return=t.return,De=a;break}De=t.return}}var DR=Math.ceil,C0=Zo.ReactCurrentDispatcher,A5=Zo.ReactCurrentOwner,ns=Zo.ReactCurrentBatchConfig,Ut=0,gr=null,Zn=null,Er=0,Ei=0,mu=pl(0),lr=0,ph=null,mc=0,Ng=0,j5=0,Ff=null,ai=null,C5=0,ed=1/0,Fo=null,E0=!1,cx=null,Ya=null,sm=!1,Ba=null,L0=0,Df=0,ux=null,Bm=-1,zm=0;function Jr(){return Ut&6?Un():Bm!==-1?Bm:Bm=Un()}function Xa(e){return e.mode&1?Ut&2&&Er!==0?Er&-Er:wR.transition!==null?(zm===0&&(zm=Lk()),zm):(e=nn,e!==0||(e=window.event,e=e===void 0?16:Fk(e.type)),e):1}function Cs(e,t,n,r){if(50<Df)throw Df=0,ux=null,Error(Ee(185));Dh(e,n,r),(!(Ut&2)||e!==gr)&&(e===gr&&(!(Ut&2)&&(Ng|=n),lr===4&&Ca(e,Er)),fi(e,r),n===1&&Ut===0&&!(t.mode&1)&&(ed=Un()+500,bg&&ml()))}function fi(e,t){var n=e.callbackNode;w7(e,t);var r=h0(e,e===gr?Er:0);if(r===0)n!==null&&o4(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&o4(n),t===1)e.tag===0?bR(Q4.bind(null,e)):nA(Q4.bind(null,e)),gR(function(){!(Ut&6)&&ml()}),n=null;else{switch(Pk(r)){case 1:n=e5;break;case 4:n=Ck;break;case 16:n=f0;break;case 536870912:n=Ek;break;default:n=f0}n=e8(n,GA.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function GA(e,t){if(Bm=-1,zm=0,Ut&6)throw Error(Ee(327));var n=e.callbackNode;if(Au()&&e.callbackNode!==n)return null;var r=h0(e,e===gr?Er:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=P0(e,r);else{t=r;var i=Ut;Ut|=2;var s=YA();(gr!==e||Er!==t)&&(Fo=null,ed=Un()+500,oc(e,t));do try{UR();break}catch(a){KA(e,a)}while(!0);h5(),C0.current=s,Ut=i,Zn!==null?t=0:(gr=null,Er=0,t=lr)}if(t!==0){if(t===2&&(i=F2(e),i!==0&&(r=i,t=dx(e,i))),t===1)throw n=ph,oc(e,0),Ca(e,r),fi(e,Un()),n;if(t===6)Ca(e,r);else{if(i=e.current.alternate,!(r&30)&&!BR(i)&&(t=P0(e,r),t===2&&(s=F2(e),s!==0&&(r=s,t=dx(e,s))),t===1))throw n=ph,oc(e,0),Ca(e,r),fi(e,Un()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(Ee(345));case 2:Fl(e,ai,Fo);break;case 3:if(Ca(e,r),(r&130023424)===r&&(t=C5+500-Un(),10<t)){if(h0(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Jr(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=H2(Fl.bind(null,e,ai,Fo),t);break}Fl(e,ai,Fo);break;case 4:if(Ca(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-js(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=Un()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*DR(r/1960))-r,10<r){e.timeoutHandle=H2(Fl.bind(null,e,ai,Fo),r);break}Fl(e,ai,Fo);break;case 5:Fl(e,ai,Fo);break;default:throw Error(Ee(329))}}}return fi(e,Un()),e.callbackNode===n?GA.bind(null,e):null}function dx(e,t){var n=Ff;return e.current.memoizedState.isDehydrated&&(oc(e,t).flags|=256),e=P0(e,t),e!==2&&(t=ai,ai=n,t!==null&&fx(t)),e}function fx(e){ai===null?ai=e:ai.push.apply(ai,e)}function BR(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!Ls(s(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ca(e,t){for(t&=~j5,t&=~Ng,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-js(t),r=1<<n;e[n]=-1,t&=~r}}function Q4(e){if(Ut&6)throw Error(Ee(327));Au();var t=h0(e,0);if(!(t&1))return fi(e,Un()),null;var n=P0(e,t);if(e.tag!==0&&n===2){var r=F2(e);r!==0&&(t=r,n=dx(e,r))}if(n===1)throw n=ph,oc(e,0),Ca(e,t),fi(e,Un()),n;if(n===6)throw Error(Ee(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Fl(e,ai,Fo),fi(e,Un()),null}function E5(e,t){var n=Ut;Ut|=1;try{return e(t)}finally{Ut=n,Ut===0&&(ed=Un()+500,bg&&ml())}}function gc(e){Ba!==null&&Ba.tag===0&&!(Ut&6)&&Au();var t=Ut;Ut|=1;var n=ns.transition,r=nn;try{if(ns.transition=null,nn=1,e)return e()}finally{nn=r,ns.transition=n,Ut=t,!(Ut&6)&&ml()}}function L5(){Ei=mu.current,xn(mu)}function oc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,mR(n)),Zn!==null)for(n=Zn.return;n!==null;){var r=n;switch(u5(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&x0();break;case 3:Qu(),xn(ui),xn(Vr),v5();break;case 5:x5(r);break;case 4:Qu();break;case 13:xn(kn);break;case 19:xn(kn);break;case 10:p5(r.type._context);break;case 22:case 23:L5()}n=n.return}if(gr=e,Zn=e=Za(e.current,null),Er=Ei=t,lr=0,ph=null,j5=Ng=mc=0,ai=Ff=null,Vl!==null){for(t=0;t<Vl.length;t++)if(n=Vl[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}Vl=null}return e}function KA(e,t){do{var n=Zn;try{if(h5(),Mm.current=j0,A0){for(var r=An.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}A0=!1}if(pc=0,pr=or=An=null,If=!1,dh=0,A5.current=null,n===null||n.return===null){lr=1,ph=t,Zn=null;break}e:{var s=e,o=n.return,a=n,l=t;if(t=Er,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,d=a,h=d.tag;if(!(d.mode&1)&&(h===0||h===11||h===15)){var m=d.alternate;m?(d.updateQueue=m.updateQueue,d.memoizedState=m.memoizedState,d.lanes=m.lanes):(d.updateQueue=null,d.memoizedState=null)}var f=B4(o);if(f!==null){f.flags&=-257,z4(f,o,a,s,t),f.mode&1&&D4(s,c,t),t=f,l=c;var x=t.updateQueue;if(x===null){var v=new Set;v.add(l),t.updateQueue=v}else x.add(l);break e}else{if(!(t&1)){D4(s,c,t),P5();break e}l=Error(Ee(426))}}else if(Sn&&a.mode&1){var b=B4(o);if(b!==null){!(b.flags&65536)&&(b.flags|=256),z4(b,o,a,s,t),d5(Ju(l,a));break e}}s=l=Ju(l,a),lr!==4&&(lr=2),Ff===null?Ff=[s]:Ff.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var y=PA(s,l,t);T4(s,y);break e;case 1:a=l;var S=s.type,_=s.stateNode;if(!(s.flags&128)&&(typeof S.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(Ya===null||!Ya.has(_)))){s.flags|=65536,t&=-t,s.lanes|=t;var k=TA(s,a,t);T4(s,k);break e}}s=s.return}while(s!==null)}ZA(n)}catch(O){t=O,Zn===n&&n!==null&&(Zn=n=n.return);continue}break}while(!0)}function YA(){var e=C0.current;return C0.current=j0,e===null?j0:e}function P5(){(lr===0||lr===3||lr===2)&&(lr=4),gr===null||!(mc&268435455)&&!(Ng&268435455)||Ca(gr,Er)}function P0(e,t){var n=Ut;Ut|=2;var r=YA();(gr!==e||Er!==t)&&(Fo=null,oc(e,t));do try{zR();break}catch(i){KA(e,i)}while(!0);if(h5(),Ut=n,C0.current=r,Zn!==null)throw Error(Ee(261));return gr=null,Er=0,lr}function zR(){for(;Zn!==null;)XA(Zn)}function UR(){for(;Zn!==null&&!f7();)XA(Zn)}function XA(e){var t=JA(e.alternate,e,Ei);e.memoizedProps=e.pendingProps,t===null?ZA(e):Zn=t,A5.current=null}function ZA(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=OR(n,t),n!==null){n.flags&=32767,Zn=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{lr=6,Zn=null;return}}else if(n=RR(n,t,Ei),n!==null){Zn=n;return}if(t=t.sibling,t!==null){Zn=t;return}Zn=t=e}while(t!==null);lr===0&&(lr=5)}function Fl(e,t,n){var r=nn,i=ns.transition;try{ns.transition=null,nn=1,VR(e,t,n,r)}finally{ns.transition=i,nn=r}return null}function VR(e,t,n,r){do Au();while(Ba!==null);if(Ut&6)throw Error(Ee(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Ee(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(S7(e,s),e===gr&&(Zn=gr=null,Er=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||sm||(sm=!0,e8(f0,function(){return Au(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=ns.transition,ns.transition=null;var o=nn;nn=1;var a=Ut;Ut|=4,A5.current=null,MR(e,n),HA(n,e),lR($2),p0=!!V2,$2=V2=null,e.current=n,FR(n),h7(),Ut=a,nn=o,ns.transition=s}else e.current=n;if(sm&&(sm=!1,Ba=e,L0=i),s=e.pendingLanes,s===0&&(Ya=null),g7(n.stateNode),fi(e,Un()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(E0)throw E0=!1,e=cx,cx=null,e;return L0&1&&e.tag!==0&&Au(),s=e.pendingLanes,s&1?e===ux?Df++:(Df=0,ux=e):Df=0,ml(),null}function Au(){if(Ba!==null){var e=Pk(L0),t=ns.transition,n=nn;try{if(ns.transition=null,nn=16>e?16:e,Ba===null)var r=!1;else{if(e=Ba,Ba=null,L0=0,Ut&6)throw Error(Ee(331));var i=Ut;for(Ut|=4,De=e.current;De!==null;){var s=De,o=s.child;if(De.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(De=c;De!==null;){var d=De;switch(d.tag){case 0:case 11:case 15:Mf(8,d,s)}var h=d.child;if(h!==null)h.return=d,De=h;else for(;De!==null;){d=De;var m=d.sibling,f=d.return;if(VA(d),d===c){De=null;break}if(m!==null){m.return=f,De=m;break}De=f}}}var x=s.alternate;if(x!==null){var v=x.child;if(v!==null){x.child=null;do{var b=v.sibling;v.sibling=null,v=b}while(v!==null)}}De=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,De=o;else e:for(;De!==null;){if(s=De,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Mf(9,s,s.return)}var y=s.sibling;if(y!==null){y.return=s.return,De=y;break e}De=s.return}}var S=e.current;for(De=S;De!==null;){o=De;var _=o.child;if(o.subtreeFlags&2064&&_!==null)_.return=o,De=_;else e:for(o=S;De!==null;){if(a=De,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:_g(9,a)}}catch(O){In(a,a.return,O)}if(a===o){De=null;break e}var k=a.sibling;if(k!==null){k.return=a.return,De=k;break e}De=a.return}}if(Ut=i,ml(),ao&&typeof ao.onPostCommitFiberRoot=="function")try{ao.onPostCommitFiberRoot(mg,e)}catch{}r=!0}return r}finally{nn=n,ns.transition=t}}return!1}function J4(e,t,n){t=Ju(n,t),t=PA(e,t,1),e=Ka(e,t,1),t=Jr(),e!==null&&(Dh(e,1,t),fi(e,t))}function In(e,t,n){if(e.tag===3)J4(e,e,n);else for(;t!==null;){if(t.tag===3){J4(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ya===null||!Ya.has(r))){e=Ju(n,e),e=TA(t,e,1),t=Ka(t,e,1),e=Jr(),t!==null&&(Dh(t,1,e),fi(t,e));break}}t=t.return}}function $R(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Jr(),e.pingedLanes|=e.suspendedLanes&n,gr===e&&(Er&n)===n&&(lr===4||lr===3&&(Er&130023424)===Er&&500>Un()-C5?oc(e,0):j5|=n),fi(e,t)}function QA(e,t){t===0&&(e.mode&1?(t=Yp,Yp<<=1,!(Yp&130023424)&&(Yp=4194304)):t=1);var n=Jr();e=Wo(e,t),e!==null&&(Dh(e,t,n),fi(e,n))}function qR(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),QA(e,n)}function HR(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Ee(314))}r!==null&&r.delete(t),QA(e,n)}var JA;JA=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ui.current)li=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return li=!1,TR(e,t,n);li=!!(e.flags&131072)}else li=!1,Sn&&t.flags&1048576&&rA(t,w0,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Dm(e,t),e=t.pendingProps;var i=Yu(t,Vr.current);ku(t,n),i=w5(null,t,r,e,i,n);var s=S5();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,di(r)?(s=!0,v0(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,g5(t),i.updater=Sg,t.stateNode=i,i._reactInternals=t,Q2(t,r,e,n),t=tx(null,t,r,!0,s,n)):(t.tag=0,Sn&&s&&c5(t),Yr(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Dm(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=GR(r),e=ws(r,e),i){case 0:t=ex(null,t,r,e,n);break e;case 1:t=$4(null,t,r,e,n);break e;case 11:t=U4(null,t,r,e,n);break e;case 14:t=V4(null,t,r,ws(r.type,e),n);break e}throw Error(Ee(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ws(r,i),ex(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ws(r,i),$4(e,t,r,i,n);case 3:e:{if(MA(t),e===null)throw Error(Ee(387));r=t.pendingProps,s=t.memoizedState,i=s.element,cA(e,t),N0(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=Ju(Error(Ee(423)),t),t=q4(e,t,r,n,i);break e}else if(r!==i){i=Ju(Error(Ee(424)),t),t=q4(e,t,r,n,i);break e}else for(Pi=Ga(t.stateNode.containerInfo.firstChild),Oi=t,Sn=!0,ks=null,n=aA(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Xu(),r===i){t=Go(e,t,n);break e}Yr(e,t,r,n)}t=t.child}return t;case 5:return uA(t),e===null&&Y2(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,q2(r,i)?o=null:s!==null&&q2(r,s)&&(t.flags|=32),IA(e,t),Yr(e,t,o,n),t.child;case 6:return e===null&&Y2(t),null;case 13:return FA(e,t,n);case 4:return y5(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Zu(t,null,r,n):Yr(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ws(r,i),U4(e,t,r,i,n);case 7:return Yr(e,t,t.pendingProps,n),t.child;case 8:return Yr(e,t,t.pendingProps.children,n),t.child;case 12:return Yr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,hn(S0,r._currentValue),r._currentValue=o,s!==null)if(Ls(s.value,o)){if(s.children===i.children&&!ui.current){t=Go(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=$o(-1,n&-n),l.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),X2(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(Ee(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),X2(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Yr(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ku(t,n),i=rs(i),r=r(i),t.flags|=1,Yr(e,t,r,n),t.child;case 14:return r=t.type,i=ws(r,t.pendingProps),i=ws(r.type,i),V4(e,t,r,i,n);case 15:return RA(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ws(r,i),Dm(e,t),t.tag=1,di(r)?(e=!0,v0(t)):e=!1,ku(t,n),LA(t,r,i),Q2(t,r,i,n),tx(null,t,r,!0,e,n);case 19:return DA(e,t,n);case 22:return OA(e,t,n)}throw Error(Ee(156,t.tag))};function e8(e,t){return jk(e,t)}function WR(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 7,571 bytes, line 41
41ype=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function es(e,t,n,r){return new WR(e,t,n,r)}function T5(e){return e=e.prototype,!(!e||!e.isReactComponent)}function GR(e){if(typeof e=="function")return T5(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Zv)return 11;if(e===Qv)return 14}return 2}function Za(e,t){var n=e.alternate;return n===null?(n=es(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Um(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")T5(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case su:return ac(n.children,i,s,t);case Xv:o=8,i|=8;break;case S2:return e=es(12,n,t,i|2),e.elementType=S2,e.lanes=s,e;case _2:return e=es(13,n,t,i),e.elementType=_2,e.lanes=s,e;case N2:return e=es(19,n,t,i),e.elementType=N2,e.lanes=s,e;case uk:return kg(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case lk:o=10;break e;case ck:o=9;break e;case Zv:o=11;break e;case Qv:o=14;break e;case ka:o=16,r=null;break e}throw Error(Ee(130,e==null?e:typeof e,""))}return t=es(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function ac(e,t,n,r){return e=es(7,e,r,t),e.lanes=n,e}function kg(e,t,n,r){return e=es(22,e,r,t),e.elementType=uk,e.lanes=n,e.stateNode={isHidden:!1},e}function cy(e,t,n){return e=es(6,e,null,t),e.lanes=n,e}function uy(e,t,n){return t=es(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function KR(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=q1(0),this.expirationTimes=q1(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=q1(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function R5(e,t,n,r,i,s,o,a,l){return e=new KR(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=es(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},g5(s),e}function YR(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:iu,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function t8(e){if(!e)return rl;e=e._reactInternals;e:{if(Ec(e)!==e||e.tag!==1)throw Error(Ee(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(di(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Ee(171))}if(e.tag===1){var n=e.type;if(di(n))return tA(e,n,t)}return t}function n8(e,t,n,r,i,s,o,a,l){return e=R5(n,r,!0,e,i,s,o,a,l),e.context=t8(null),n=e.current,r=Jr(),i=Xa(n),s=$o(r,i),s.callback=t??null,Ka(n,s,i),e.current.lanes=i,Dh(e,i,r),fi(e,r),e}function Ag(e,t,n,r){var i=t.current,s=Jr(),o=Xa(i);return n=t8(n),t.context===null?t.context=n:t.pendingContext=n,t=$o(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Ka(i,t,o),e!==null&&(Cs(e,i,o,s),Im(e,i,o)),o}function T0(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function e3(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function O5(e,t){e3(e,t),(e=e.alternate)&&e3(e,t)}function XR(){return null}var r8=typeof reportError=="function"?reportError:function(e){console.error(e)};function I5(e){this._internalRoot=e}jg.prototype.render=I5.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Ee(409));Ag(e,t,null,null)};jg.prototype.unmount=I5.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;gc(function(){Ag(null,e,null,null)}),t[Ho]=null}};function jg(e){this._internalRoot=e}jg.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ok();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ja.length&&t!==0&&t<ja[n].priority;n++);ja.splice(n,0,e),n===0&&Mk(e)}};function M5(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Cg(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function t3(){}function ZR(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var c=T0(o);s.call(c)}}var o=n8(t,r,e,0,null,!1,!1,"",t3);return e._reactRootContainer=o,e[Ho]=o.current,oh(e.nodeType===8?e.parentNode:e),gc(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var c=T0(l);a.call(c)}}var l=R5(e,0,!1,null,null,!1,!1,"",t3);return e._reactRootContainer=l,e[Ho]=l.current,oh(e.nodeType===8?e.parentNode:e),gc(function(){Ag(t,l,n,r)}),l}function Eg(e,t,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var a=i;i=function(){var l=T0(o);a.call(l)}}Ag(t,o,e,i)}else o=ZR(n,t,e,i,r);return T0(o)}Tk=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=_f(t.pendingLanes);n!==0&&(t5(t,n|1),fi(t,Un()),!(Ut&6)&&(ed=Un()+500,ml()))}break;case 13:gc(function(){var r=Wo(e,1);if(r!==null){var i=Jr();Cs(r,e,1,i)}}),O5(e,1)}};n5=function(e){if(e.tag===13){var t=Wo(e,134217728);if(t!==null){var n=Jr();Cs(t,e,134217728,n)}O5(e,134217728)}};Rk=function(e){if(e.tag===13){var t=Xa(e),n=Wo(e,t);if(n!==null){var r=Jr();Cs(n,e,t,r)}O5(e,t)}};Ok=function(){return nn};Ik=function(e,t){var n=nn;try{return nn=e,t()}finally{nn=n}};O2=function(e,t,n){switch(t){case"input":if(j2(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=vg(r);if(!i)throw Error(Ee(90));fk(r),j2(r,i)}}}break;case"textarea":pk(e,n);break;case"select":t=n.value,t!=null&&wu(e,!!n.multiple,t,!1)}};wk=E5;Sk=gc;var QR={usingClientEntryPoint:!1,Events:[zh,cu,vg,vk,bk,E5]},ff={findFiberByHostInstance:Ul,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},JR={bundleType:ff.bundleType,version:ff.version,rendererPackageName:ff.rendererPackageName,rendererConfig:ff.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Zo.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=kk(e),e===null?null:e.stateNode},findFiberByHostInstance:ff.findFiberByHostInstance||XR,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
41if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var om=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!om.isDisabled&&om.supportsFiber)try{mg=om.inject(JR),ao=om}catch{}}Bi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=QR;Bi.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!M5(t))throw Error(Ee(200));return YR(e,t,null,n)};Bi.createRoot=function(e,t){if(!M5(e))throw Error(Ee(299));var n=!1,r="",i=r8;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=R5(e,1,!1,null,null,n,!1,r,i),e[Ho]=t.current,oh(e.nodeType===8?e.parentNode:e),new I5(t)};Bi.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Ee(188)):(e=Object.keys(e).join(","),Error(Ee(268,e)));return e=kk(t),e=e===null?null:e.stateNode,e};Bi.flushSync=function(e){return gc(e)};Bi.hydrate=function(e,t,n){if(!Cg(t))throw Error(Ee(200));return Eg(null,e,t,!0,n)};Bi.hydrateRoot=function(e,t,n){if(!M5(e))throw Error(Ee(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=r8;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=n8(t,null,e,1,n??null,i,!1,s,o),e[Ho]=t.current,oh(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new jg(t)};Bi.render=function(e,t,n){if(!Cg(t))throw Error(Ee(200));return Eg(null,e,t,!1,n)};Bi.unmountComponentAtNode=function(e){if(!Cg(e))throw Error(Ee(40));return e._reactRootContainer?(gc(function(){Eg(null,null,e,!1,function(){e._reactRootContainer=null,e[Ho]=null})}),!0):!1};Bi.unstable_batchedUpdates=E5;Bi.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Cg(n))throw Error(Ee(200));if(e==null||e._reactInternals===void 0)throw Error(Ee(38));return Eg(e,t,n,!1,r)};Bi.version="18.3.1-next-f1338f8080-20240426";function i8(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i8)}catch(e){console.error(e)}}i8(),ik.exports=Bi;var Vh=ik.exports;const s8=H6(Vh);var o8,n3=Vh;o8=n3.createRoot,n3.hydrateRoot;const e9="modulepreload",t9=function(e){return"/"+e},r3={},Hn=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.allSettled(n.map(l=>{if(l=t9(l),l in r3)return;r3[l]=!0;const c=l.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${d}`))return;const h=document.createElement("link");if(h.rel=c?"stylesheet":e9,c||(h.as="script"),h.crossOrigin="",h.href=l,a&&h.setAttribute("nonce",a),document.head.appendChild(h),c)return new Promise((m,f)=>{h.addEventListener("load",m),h.addEventListener("error",()=>f(Error(`Unable to preload CSS for ${l}`)))})}))}function s(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return i.then(o=>{for(const a of o||[])a.status==="rejected"&&s(a.reason);return t().catch(s)})},n9=1,r9=1e6;let dy=0;function i9(){return dy=(dy+1)%Number.MAX_SAFE_INTEGER,dy.toString()}const fy=new Map,i3=e=>{if(fy.has(e))return;const t=setTimeout(()=>{fy.delete(e),Bf({type:"REMOVE_TOAST",toastId:e})},r9);fy.set(e,t)},s9=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,n9)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?i3(n):e.toasts.forEach(r=>{i3(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Vm=[];let $m={toasts:[]};function Bf(e){$m=s9($m,e),Vm.forEach(t=>{t($m)})}function o9({...e}){const t=i9(),n=i=>Bf({type:"UPDATE_TOAST",toast:{...i,id:t}}
vendor: 13,604 bytes, line 41
41),r=()=>Bf({type:"DISMISS_TOAST",toastId:t});return Bf({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:i=>{i||r()}}}),{id:t,dismiss:r,update:n}}function a8(){const[e,t]=j.useState($m);return j.useEffect(()=>(Vm.push(t),()=>{const n=Vm.indexOf(t);n>-1&&Vm.splice(n,1)}),[e]),{...e,toast:o9,dismiss:n=>Bf({type:"DISMISS_TOAST",toastId:n})}}function ar(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function s3(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function l8(...e){return t=>{let n=!1;const r=e.map(i=>{const s=s3(i,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i<r.length;i++){const s=r[i];typeof s=="function"?s():s3(e[i],null)}}}}function Ps(...e){return j.useCallback(l8(...e),e)}function Hee(e,t){const n=j.createContext(t),r=s=>{const{children:o,...a}=s,l=j.useMemo(()=>a,Object.values(a));return u.jsx(n.Provider,{value:l,children:o})};r.displayName=e+"Provider";function i(s){const o=j.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,i]}function Lg(e,t=[]){let n=[];function r(s,o){const a=j.createContext(o),l=n.length;n=[...n,o];const c=h=>{var y;const{scope:m,children:f,...x}=h,v=((y=m==null?void 0:m[e])==null?void 0:y[l])||a,b=j.useMemo(()=>x,Object.values(x));return u.jsx(v.Provider,{value:b,children:f})};c.displayName=s+"Provider";function d(h,m){var v;const f=((v=m==null?void 0:m[e])==null?void 0:v[l])||a,x=j.useContext(f);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${h}\` must be used within \`${s}\``)}return[c,d]}const i=()=>{const s=n.map(o=>j.createContext(o));return function(a){const l=(a==null?void 0:a[e])||s;return j.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[r,a9(i,...t)]}function a9(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const o=r.reduce((a,{useScope:l,scopeName:c})=>{const h=l(s)[`__scope${c}`];return{...a,...h}},{});return j.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function R0(e){const t=c9(e),n=j.forwardRef((r,i)=>{const{children:s,...o}=r,a=j.Children.toArray(s),l=a.find(d9);if(l){const c=l.props.children,d=a.map(h=>h===l?j.Children.count(c)>1?j.Children.only(null):j.isValidElement(c)?c.props.children:null:h);return u.jsx(t,{...o,ref:i,children:j.isValidElement(c)?j.cloneElement(c,void 0,d):null})}return u.jsx(t,{...o,ref:i,children:s})});return n.displayName=`${e}.Slot`,n}var l9=R0("Slot");function c9(e){const t=j.forwardRef((n,r)=>{const{children:i,...s}=n;if(j.isValidElement(i)){const o=h9(i),a=f9(s,i.props);return i.type!==j.Fragment&&(a.ref=r?l8(r,o):o),j.cloneElement(i,a)}return j.Children.count(i)>1?j.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var c8=Symbol("radix.slottable");function u9(e){const t=({children:n})=>u.jsx(u.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=c8,t}function d9(e){return j.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===c8}function f9(e,t){const n={...t};for(const r in t){const i=e[r],s=t[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...a)=>{const l=s(...a);return i(...a),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function h9(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function p9(e){const t=e+"CollectionProvider",[n,r]=Lg(t),[i,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=v=>{const{scope:b,children:y}=v,S=Pe.useRef(null),_=Pe.useRef(new Map).current;return u.jsx(i,{scope:b,itemMap:_,collectionRef:S,children:y})};o.displayName=t;const a=e+"CollectionSlot",l=R0(a),c=Pe.forwardRef((v,b)=>{const{scope:y,children:S}=v,_=s(a,y),k=Ps(b,_.collectionRef);return u.jsx(l,{ref:k,children:S})});c.displayName=a;const d=e+"CollectionItemSlot",h="data-radix-collection-item",m=R0(d),f=Pe.forwardRef((v,b)=>{const{scope:y,children:S,..._}=v,k=Pe.useRef(null),O=Ps(b,k),$=s(d,y);return Pe.useEffect(()=>($.itemMap.set(k,{ref:k,..._}),()=>void $.itemMap.delete(k))),u.jsx(m,{[h]:"",ref:O,children:S})});f.displayName=d;function x(v){const b=s(e+"CollectionConsumer",v);return Pe.useCallback(()=>{const S=b.collectionRef.current;if(!S)return[];const _=Array.from(S.querySelectorAll(`[${h}]`));return Array.from(b.itemMap.values()).sort(($,U)=>_.indexOf($.ref.current)-_.indexOf(U.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:o,Slot:c,ItemSlot:f},x,r]}var m9=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],yi=m9.reduce((e,t)=>{const n=R0(`Primitive.${t}`),r=j.forwardRef((i,s)=>{const{asChild:o,...a}=i,l=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function u8(e,t){e&&Vh.flushSync(()=>e.dispatchEvent(t))}function il(e){const t=j.useRef(e);return j.useEffect(()=>{t.current=e}),j.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function g9(e,t=globalThis==null?void 0:globalThis.document){const n=il(e);j.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var y9="DismissableLayer",hx="dismissableLayer.update",x9="dismissableLayer.pointerDownOutside",v9="dismissableLayer.focusOutside",o3,d8=j.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),F5=j.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:o,onDismiss:a,...l}=e,c=j.useContext(d8),[d,h]=j.useState(null),m=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=j.useState({}),x=Ps(t,U=>h(U)),v=Array.from(c.layers),[b]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(b),S=d?v.indexOf(d):-1,_=c.layersWithOutsidePointerEventsDisabled.size>0,k=S>=y,O=w9(U=>{const I=U.target,R=[...c.branches].some(z=>z.contains(I));!k||R||(i==null||i(U),o==null||o(U),U.defaultPrevented||a==null||a())},m),$=S9(U=>{const I=U.target;[...c.branches].some(z=>z.contains(I))||(s==null||s(U),o==null||o(U),U.defaultPrevented||a==null||a())},m);return g9(U=>{S===c.layers.size-1&&(r==null||r(U),!U.defaultPrevented&&a&&(U.preventDefault(),a()))},m),j.useEffect(()=>{if(d)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(o3=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),a3(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=o3)}},[d,m,n,c]),j.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),a3())},[d,c]),j.useEffect(()=>{const U=()=>f({});return document.addEventListener(hx,U),()=>document.removeEventListener(hx,U)},[]),u.jsx(yi.div,{...l,ref:x,style:{pointerEvents:_?k?"auto":"none":void 0,...e.style},onFocusCapture:ar(e.onFocusCapture,$.onFocusCapture),onBlurCapture:ar(e.onBlurCapture,$.onBlurCapture),onPointerDownCapture:ar(e.onPointerDownCapture,O.onPointerDownCapture)})});F5.displayName=y9;var b9="DismissableLayerBranch",f8=j.forwardRef((e,t)=>{const n=j.useContext(d8),r=j.useRef(null),i=Ps(t,r);return j.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),u.jsx(yi.div,{...e,ref:i})});f8.displayName=b9;function w9(e,t=globalThis==null?void 0:globalThis.document){const n=il(e),r=j.useRef(!1),i=j.useRef(()=>{});return j.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){h8(x9,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function S9(e,t=globalThis==null?void 0:globalThis.document){const n=il(e),r=j.useRef(!1);return j.useEffect(()=>{const i=s=>{s.target&&!r.current&&h8(v9,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function a3(){const e=new CustomEvent(hx);document.dispatchEvent(e)}function h8(e,t,n,{discrete:r}){const i=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?u8(i,s):i.dispatchEvent(s)}var _9=F5,N9=f8,sl=globalThis!=null&&globalThis.document?j.useLayoutEffect:()=>{},k9="Portal",p8=j.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[i,s]=j.useState(!1);sl(()=>s(!0),[]);const o=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?s8.createPortal(u.jsx(yi.div,{...r,ref:t}),o):null});p8.displayName=k9;function A9(e,t){return j.useReducer((n,r)=>t[n][r]??n,e)}var D5=e=>{const{present:t,children:n}=e,r=j9(t),i=typeof n=="function"?n({present:r.isPresent}):j.Children.only(n),s=Ps(r.ref,C9(i));return typeof n=="function"||r.isPresent?j.cloneElement(i,{ref:s}):null};D5.displayName="Presence";function j9(e){const[t,n]=j.useState(),r=j.useRef(null),i=j.useRef(e),s=j.useRef("none"),o=e?"mounted":"unmounted",[a,l]=A9(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return j.useEffect(()=>{const c=am(r.current);s.current=a==="mounted"?c:"none"},[a]),sl(()=>{const c=r.current,d=i.current;if(d!==e){const m=s.current,f=am(c);e?l("MOUNT"):f==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&m!==f?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),sl(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,h=f=>{const v=am(r.current).includes(f.animationName);if(f.target===t&&v&&(l("ANIMATION_END"),!i.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},m=f=>{f.target===t&&(s.current=am(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:j.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function am(e){return(e==null?void 0:e.animationName)||"none"}function C9(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var E9=nk[" useInsertionEffect ".trim().toString()]||sl;function L9({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,s,o]=P9({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:i;{const d=j.useRef(e!==void 0);j.useEffect(()=>{const h=d.current;h!==a&&console.warn(`${r} is changing from ${h?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const c=j.useCallback(d=>{var h;if(a){const m=T9(d)?d(e):d;m!==e&&((h=o.current)==null||h.call(o,m))}else s(d)},[a,e,s,o]);return[l,c]}function P9({defaultProp:e,onChange:t}){const[n,r]=j.useState(e),i=j.useRef(n),s=j.useRef(t);return E9(()=>{s.current=t},[t]),j.useEffect(()=>{var o;i.current!==n&&((o=s.current)==null||o.call(s,n),i.current=n)},[n,i]),[n,r,s]}function T9(e){return typeof e=="function"}var R9=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),O9="VisuallyHidden",Pg=j.forwardRef((e,t)=>u.jsx(yi.span,{...e,ref:t,style:{...R9,...e.style}}));Pg.displayName=O9;var I9=Pg,B5="ToastProvider",[z5,M9,F9]=p9("Toast"),[m8,Wee]=Lg("Toast",[F9]),[D9,Tg]=m8(B5),g8=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:i="right",swipeThreshold:s=50,children:o}=e,[a,l]=j.useState(null),[c,d]=j.useState(0),h=j.useRef(!1),m=j.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${B5}\`. Expected non-empty \`string\`.`),u.jsx(z5.Provider,{scope:t,children:u.jsx(D9,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:s,toastCount:c,viewport:a,onViewportChange:l,onToastAdd:j.useCallback(()=>d(f=>f+1),[]),onToastRemove:j.useCallback(()=>d(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:m,children:o})})};g8.displayName=B5;var y8="ToastViewport",B9=["F8"],px="toast.viewportPause",mx="toast.viewportResume",x8=j.forwardRef((e,t)=>
41{const{__scopeToast:n,hotkey:r=B9,label:i="Notifications ({hotkey})",...s}=e,o=Tg(y8,n),a=M9(n),l=j.useRef(null),c=j.useRef(null),d=j.useRef(null),h=j.useRef(null),m=Ps(t,h,o.onViewportChange),f=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=o.toastCount>0;j.useEffect(()=>{const b=y=>{var _;r.length!==0&&r.every(k=>y[k]||y.code===k)&&((_=h.current)==null||_.focus())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[r]),j.useEffect(()=>{const b=l.current,y=h.current;if(x&&b&&y){const S=()=>{if(!o.isClosePausedRef.current){const $=new CustomEvent(px);y.dispatchEvent($),o.isClosePausedRef.current=!0}},_=()=>{if(o.isClosePausedRef.current){const $=new CustomEvent(mx);y.dispatchEvent($),o.isClosePausedRef.current=!1}},k=$=>{!b.contains($.relatedTarget)&&_()},O=()=>{b.contains(document.activeElement)||_()};return b.addEventListener("focusin",S),b.addEventListener("focusout",k),b.addEventListener("pointermove",S),b.addEventListener("pointerleave",O),window.addEventListener("blur",S),window.addEventListener("focus",_),()=>{b.removeEventListener("focusin",S),b.removeEventListener("focusout",k),b.removeEventListener("pointermove",S),b.removeEventListener("pointerleave",O),window.removeEventListener("blur",S),window.removeEventListener("focus",_)}}},[x,o.isClosePausedRef]);const v=j.useCallback(({tabbingDirection:b})=>{const S=a().map(_=>{const k=_.ref.current,O=[k,...Q9(k)];return b==="forwards"?O:O.reverse()});return(b==="forwards"?S.reverse():S).flat()},[a]);return j.useEffect(()=>{const b=h.current;if(b){const y=S=>{var O,$,U;const _=S.altKey||S.ctrlKey||S.metaKey;if(S.key==="Tab"&&!_){const I=document.activeElement,R=S.shiftKey;if(S.target===b&&R){(O=c.current)==null||O.focus();return}const L=v({tabbingDirection:R?"backwards":"forwards"}),D=L.findIndex(F=>F===I);hy(L.slice(D+1))?S.preventDefault():R?($=c.current)==null||$.focus():(U=d.current)==null||U.focus()}};return b.addEventListener("keydown",y),()=>b.removeEventListener("keydown",y)}},[a,v]),u.jsxs(N9,{ref:l,role:"region","aria-label":i.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&u.jsx(gx,{ref:c,onFocusFromOutsideViewport:()=>{const b=v({tabbingDirection:"forwards"});hy(b)}}),u.jsx(z5.Slot,{scope:n,children:u.jsx(yi.ol,{tabIndex:-1,...s,ref:m})}),x&&u.jsx(gx,{ref:d,onFocusFromOutsideViewport:()=>{const b=v({tabbingDirection:"backwards"});hy(b)}})]})});x8.displayName=y8;var v8="ToastFocusProxy",gx=j.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,s=Tg(v8,n);return u.jsx(Pg,{"aria-hidden":!0,tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:o=>{var c;const a=o.relatedTarget;!((c=s.viewport)!=null&&c.contains(a))&&r()}})});gx.displayName=v8;var $h="Toast",z9="toast.swipeStart",U9="toast.swipeMove",V9="toast.swipeCancel",$9="toast.swipeEnd",b8=j.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:i,onOpenChange:s,...o}=e,[a,l]=L9({prop:r,defaultProp:i??!0,onChange:s,caller:$h});return u.jsx(D5,{present:n||a,children:u.jsx(W9,{open:a,...o,ref:t,onClose:()=>l(!1),onPause:il(e.onPause),onResume:il(e.onResume),onSwipeStart:ar(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ar(e.onSwipeMove,c=>{const{x:d,y:h}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:ar(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ar(e.onSwipeEnd,c=>{const{x:d,y:h}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),l(!1)})})})});b8.displayName=$h;var[q9,H9]=m8($h,{onClose(){}}),W9=j.forwardRef((e,t)=>
41{const{__scopeToast:n,type:r="foreground",duration:i,open:s,onClose:o,onEscapeKeyDown:a,onPause:l,onResume:c,onSwipeStart:d,onSwipeMove:h,onSwipeCancel:m,onSwipeEnd:f,...x}=e,v=Tg($h,n),[b,y]=j.useState(null),S=Ps(t,F=>y(F)),_=j.useRef(null),k=j.useRef(null),O=i||v.duration,$=j.useRef(0),U=j.useRef(O),I=j.useRef(0),{onToastAdd:R,onToastRemove:z}=v,C=il(()=>{var te;(b==null?void 0:b.contains(document.activeElement))&&((te=v.viewport)==null||te.focus()),o()}),L=j.useCallback(F=>{!F||F===1/0||(window.clearTimeout(I.current),$.current=new Date().getTime(),I.current=window.setTimeout(C,F))},[C]);j.useEffect(()=>{const F=v.viewport;if(F){const te=()=>{L(U.current),c==null||c()},re=()=>{const ce=new Date().getTime()-$.current;U.current=U.current-ce,window.clearTimeout(I.current),l==null||l()};return F.addEventListener(px,re),F.addEventListener(mx,te),()=>{F.removeEventListener(px,re),F.removeEventListener(mx,te)}}},[v.viewport,O,l,c,L]),j.useEffect(()=>{s&&!v.isClosePausedRef.current&&L(O)},[s,O,v.isClosePausedRef,L]),j.useEffect(()=>(R(),()=>z()),[R,z]);const D=j.useMemo(()=>b?j8(b):null,[b]);return v.viewport?u.jsxs(u.Fragment,{children:[D&&u.jsx(G9,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:D}),u.jsx(q9,{scope:n,onClose:C,children:Vh.createPortal(u.jsx(z5.ItemSlot,{scope:n,children:u.jsx(_9,{asChild:!0,onEscapeKeyDown:ar(a,()=>{v.isFocusedToastEscapeKeyDownRef.current||C(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:u.jsx(yi.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":v.swipeDirection,...x,ref:S,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ar(e.onKeyDown,F=>{F.key==="Escape"&&(a==null||a(F.nativeEvent),F.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,C()))}),onPointerDown:ar(e.onPointerDown,F=>{F.button===0&&(_.current={x:F.clientX,y:F.clientY})}),onPointerMove:ar(e.onPointerMove,F=>{if(!_.current)return;const te=F.clientX-_.current.x,re=F.clientY-_.current.y,ce=!!k.current,G=["left","right"].includes(v.swipeDirection),Q=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,de=G?Q(0,te):0,ue=G?0:Q(0,re),E=F.pointerType==="touch"?10:2,H={x:de,y:ue},K={originalEvent:F,delta:H};ce?(k.current=H,lm(U9,h,K,{discrete:!1})):l3(H,v.swipeDirection,E)?(k.current=H,lm(z9,d,K,{discrete:!1}),F.target.setPointerCapture(F.pointerId)):(Math.abs(te)>E||Math.abs(re)>E)&&(_.current=null)}),onPointerUp:ar(e.onPointerUp,F=>{const te=k.current,re=F.target;if(re.hasPointerCapture(F.pointerId)&&re.releasePointerCapture(F.pointerId),k.current=null,_.current=null,te){const ce=F.currentTarget,G={originalEvent:F,delta:te};l3(te,v.swipeDirection,v.swipeThreshold)?lm($9,f,G,{discrete:!0}):lm(V9,m,G,{discrete:!0}),ce.addEventListener("click",Q=>Q.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),G9=e=>{const{__scopeToast:t,children:n,...r}=e,i=Tg($h,t),[s,o]=j.useState(!1),[a,l]=j.useState(!1);return X9(()=>o(!0)),j.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),a?null:u.jsx(p8,{asChild:!0,children:u.jsx(Pg,{...r,children:s&&u.jsxs(u.Fragment,{children:[i.label," ",n]})})})},K9="ToastTitle",w8=j.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return u.jsx(yi.div,{...r,ref:t})});w8.displayName=K9;var Y9="ToastDescription",S8=j.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return u.jsx(yi.div,{...r,ref:t})});S8.displayName=Y9;var _8="ToastAction",N8=j.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?u.jsx(A8,{altText:n,asChild:!0,children:u.jsx(U5,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${_8}\`. Expected non-empty \`string\`.`),null)});N8.displayName=_8;var k8="ToastClose",U5=j.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,i=H9(k8,n);return u.jsx(A8,{asChild:!0,children:u.jsx(yi.button,{type:"button",...r,ref:t,onClick:ar(e.onClick,i.onClose)})})});U5.displayName=k8;var A8=j.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...i}=e;return u.jsx(yi.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...i,ref:t})});function j8(e){const t=[];
vendor: 7,528 bytes, lines 41-106
41return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),Z9(r)){const i=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!i)if(s){const o=r.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...j8(r))}}),t}function lm(e,t,n,{discrete:r}){const i=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?u8(i,s):i.dispatchEvent(s)}var l3=(e,t,n=0)=>{const r=Math.abs(e.x),i=Math.abs(e.y),s=r>i;return t==="left"||t==="right"?s&&r>n:!s&&i>n};function X9(e=()=>{}){const t=il(e);sl(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function Z9(e){return e.nodeType===e.ELEMENT_NODE}function Q9(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function hy(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var J9=g8,C8=x8,E8=b8,L8=w8,P8=S8,T8=N8,R8=U5;function O8(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=O8(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function I8(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=O8(e))&&(r&&(r+=" "),r+=t);return r}const c3=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,u3=I8,M8=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return u3(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:s}=t,o=Object.keys(i).map(c=>{const d=n==null?void 0:n[c],h=s==null?void 0:s[c];if(d===null)return null;const m=c3(d)||c3(h);return i[c][m]}),a=n&&Object.entries(n).reduce((c,d)=>{let[h,m]=d;return m===void 0||(c[h]=m),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,d)=>{let{class:h,className:m,...f}=d;return Object.entries(f).every(x=>{let[v,b]=x;return Array.isArray(b)?b.includes({...s,...a}[v]):{...s,...a}[v]===b})?[...c,h,m]:c},[]);return u3(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)};/** 42 * @license lucide-react v0.462.0 - ISC 43 * 44 * This source code is licensed under the ISC license. 45 * See the LICENSE file in the root directory of this source tree. 46 */const eO=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),F8=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** 47 * @license lucide-react v0.462.0 - ISC 48 * 49 * This source code is licensed under the ISC license. 50 * See the LICENSE file in the root directory of this source tree. 51 */var tO={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 52 * @license lucide-react v0.462.0 - ISC 53 * 54 * This source code is licensed under the ISC license. 55 * See the LICENSE file in the root directory of this source tree. 56 */const nO=j.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:o,...a},l)=>j.createElement("svg",{ref:l,...tO,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:F8("lucide",i),...a},[...o.map(([c,d])=>j.createElement(c,d)),...Array.isArray(s)?s:[s]]));/** 57 * @license lucide-react v0.462.0 - ISC 58 * 59 * This source code is licensed under the ISC license. 60 * See the LICENSE file in the root directory of this source tree. 61 */const tt=(e,t)=>{const n=j.forwardRef(({className:r,...i},s)=>j.createElement(nO,{ref:s,iconNode:t,className:F8(`lucide-${eO(e)}`,r),...i}));return n.displayName=`${e}`,n};/** 62 * @license lucide-react v0.462.0 - ISC 63 * 64 * This source code is licensed under the ISC license. 65 * See the LICENSE file in the root directory of this source tree. 66 */const D8=tt("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/** 67 * @license lucide-react v0.462.0 - ISC 68 * 69 * This source code is licensed under the ISC license. 70 * See the LICENSE file in the root directory of this source tree. 71 */const B8=tt("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 72 * @license lucide-react v0.462.0 - ISC 73 * 74 * This source code is licensed under the ISC license. 75 * See the LICENSE file in the root directory of this source tree. 76 */const Fi=tt("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 77 * @license lucide-react v0.462.0 - ISC 78 * 79 * This source code is licensed under the ISC license. 80 * See the LICENSE file in the root directory of this source tree. 81 */const O0=tt("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/** 82 * @license lucide-react v0.462.0 - ISC 83 * 84 * This source code is licensed under the ISC license. 85 * See the LICENSE file in the root directory of this source tree. 86 */const rO=tt("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/** 87 * @license lucide-react v0.462.0 - ISC 88 * 89 * This source code is licensed under the ISC license. 90 * See the LICENSE file in the root directory of this source tree. 91 */const iO=tt("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/** 92 * @license lucide-react v0.462.0 - ISC 93 * 94 * This source code is licensed under the ISC license. 95 * See the LICENSE file in the root directory of this source tree. 96 */const sO=tt("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/** 97 * @license lucide-react v0.462.0 - ISC 98 * 99 * This source code is licensed under the ISC license. 100 * See the LICENSE file in the root directory of this source tree. 101 */const qm=tt("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/** 102 * @license lucide-react v0.462.0 - ISC 103 * 104 * This source code is licensed under the ISC license. 105 * See the LICENSE file in the root directory of this source tree. 106 */const z8=tt("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}
106],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/** 107 * @license lucide-react v0.462.0 - ISC 108 * 109 * This source code is licensed under the ISC license. 110 * See the LICENSE file in the root directory of this source tree. 111 */const oO=tt("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);/** 112 * @license lucide-react v0.462.0 - ISC 113 * 114 * This source code is licensed under the ISC license. 115 * See the LICENSE file in the root directory of this source tree. 116 */const qh=tt("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/** 117 * @license lucide-react v0.462.0 - ISC 118 * 119 * This source code is licensed under the ISC license. 120 * See the LICENSE file in the root directory of this source tree. 121 */const aO=tt("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 122 * @license lucide-react v0.462.0 - ISC 123 * 124 * This source code is licensed under the ISC license. 125 * See the LICENSE file in the root directory of this source tree. 126 */const I0=tt("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 127 * @license lucide-react v0.462.0 - ISC 128 * 129 * This source code is licensed under the ISC license. 130 * See the LICENSE file in the root directory of this source tree. 131 */const U8=tt("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** 132 * @license lucide-react v0.462.0 - ISC 133 * 134 * This source code is licensed under the ISC license. 135 * See the LICENSE file in the root directory of this source tree. 136 */const lO=tt("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** 137 * @license lucide-react v0.462.0 - ISC 138 * 139 * This source code is licensed under the ISC license. 140 * See the LICENSE file in the root directory of this source tree. 141 */const cO=tt("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 142 * @license lucide-react v0.462.0 - ISC 143 * 144 * This source code is licensed under the ISC license. 145 * See the LICENSE file in the root directory of this source tree. 146 */const uO=tt("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** 147 * @license lucide-react v0.462.0 - ISC 148 * 149 * This source code is licensed under the ISC license. 150 * See the LICENSE file in the root directory of this source tree. 151 */const V5=tt("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 152 * @license lucide-react v0.462.0 - ISC 153 * 154 * This source code is licensed under the ISC license. 155 * See the LICENSE file in the root directory of this source tree. 156 */const $5=tt("Compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** 157 * @license lucide-react v0.462.0 - ISC 158 * 159 * This source code is licensed under the ISC license. 160 * See the LICENSE file in the root directory of this source tree. 161 */const dO=tt("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}
161],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/** 162 * @license lucide-react v0.462.0 - ISC 163 * 164 * This source code is licensed under the ISC license. 165 * See the LICENSE file in the root directory of this source tree. 166 */const yx=tt("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** 167 * @license lucide-react v0.462.0 - ISC 168 * 169 * This source code is licensed under the ISC license. 170 * See the LICENSE file in the root directory of this source tree. 171 */const V8=tt("Droplets",[["path",{d:"M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z",key:"1ptgy4"}],["path",{d:"M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97",key:"1sl1rz"}]]);/** 172 * @license lucide-react v0.462.0 - ISC 173 * 174 * This source code is licensed under the ISC license. 175 * See the LICENSE file in the root directory of this source tree. 176 */const fO=tt("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/** 177 * @license lucide-react v0.462.0 - ISC 178 * 179 * This source code is licensed under the ISC license. 180 * See the LICENSE file in the root directory of this source tree. 181 */const q5=tt("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 182 * @license lucide-react v0.462.0 - ISC 183 * 184 * This source code is licensed under the ISC license. 185 * See the LICENSE file in the root directory of this source tree. 186 */const xx=tt("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/** 187 * @license lucide-react v0.462.0 - ISC 188 * 189 * This source code is licensed under the ISC license. 190 * See the LICENSE file in the root directory of this source tree. 191 */const hO=tt("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** 192 * @license lucide-react v0.462.0 - ISC 193 * 194 * This source code is licensed under the ISC license. 195 * See the LICENSE file in the root directory of this source tree. 196 */const pO=tt("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/** 197 * @license lucide-react v0.462.0 - ISC 198 * 199 * This source code is licensed under the ISC license. 200 * See the LICENSE file in the root directory of this source tree. 201 */const $8=tt("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/** 202 * @license lucide-react v0.462.0 - ISC 203 * 204 * This source code is licensed under the ISC license. 205 * See the LICENSE file in the root directory of this source tree. 206 */const vx=tt("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/** 207 * @license lucide-react v0.462.0 - ISC 208 * 209 * This source code is licensed under the ISC license. 210 * See the LICENSE file in the root directory of this source tree. 211 */const td=tt("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);/** 212 * @license lucide-react v0.462.0 - ISC 213 * 214 * This source code is licensed under the ISC license. 215 * See the LICENSE file in the root directory of this source tree. 216 */const mO=tt("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/** 217 * @license lucide-react v0.462.0 - ISC 218 * 219 * This source code is licensed under the ISC license. 220 * See the LICENSE file in the root directory of this source tree. 221 */const gO=tt("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/** 222 * @license lucide-react v0.462.0 - ISC 223 * 224 * This source code is licensed under the ISC license. 225 * See the LICENSE file in the root directory of this source tree. 226 */const yO=tt("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/** 227 * @license lucide-react v0.462.0 - ISC 228 * 229 * This source code is licensed under the ISC license. 230 * See the LICENSE file in the root directory of this source tree. 231 */const d3=tt("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);/** 232 * @license lucide-react v0.462.0 - ISC 233 * 234 * This source code is licensed under the ISC license. 235 * See the LICENSE file in the root directory of this source tree. 236 */const bx=tt("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/** 237 * @license lucide-react v0.462.0 - ISC 238 * 239 * This source code is licensed under the ISC license. 240 * See the LICENSE file in the root directory of this source tree. 241 */const Rg=tt("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** 242 * @license lucide-react v0.462.0 - ISC 243 * 244 * This source code is licensed under the ISC license. 245 * See the LICENSE file in the root directory of this source tree. 246 */const q8=tt("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** 247 * @license lucide-react v0.462.0 - ISC 248 * 249 * This source code is licensed under the ISC license. 250 * See the LICENSE file in the root directory of this source tree. 251 */const H5=tt("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** 252 * @license lucide-react v0.462.0 - ISC 253 * 254 * This source code is licensed under the ISC license. 255 * See the LICENSE file in the root directory of this source tree. 256 */const xO=tt("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** 257 * @license lucide-react v0.462.0 - ISC 258 * 259 * This source code is licensed under the ISC license. 260 * See the LICENSE file in the root directory of this source tree. 261 */const vO=tt("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/** 262 * @license lucide-react v0.462.0 - ISC 263 * 264 * This source code is licensed under the ISC license. 265 * See the LICENSE file in the root directory of this source tree. 266 */const bO=tt("MoveRight",[["path",{d:"M18 8L22 12L18 16",key:"1r0oui"}],["path",{d:"M2 12H22",key:"1m8cig"}]]);/** 267 * @license lucide-react v0.462.0 - ISC 268 * 269 * This source code is licensed under the ISC license. 270 * See the LICENSE file in the root directory of this source tree. 271 */const H8=tt("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** 272 * @license lucide-react v0.462.0 - ISC 273 * 274 * This source code is licensed under the ISC license. 275 * See the LICENSE file in the root directory of this source tree. 276 */const wO=tt("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** 277 * @license lucide-react v0.462.0 - ISC 278 * 279 * This source code is licensed under the ISC license. 280 * See the LICENSE file in the root directory of this source tree. 281 */const f3=tt("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 282 * @license lucide-react v0.462.0 - ISC 283 * 284 * This source code is licensed under the ISC license. 285 * See the LICENSE file in the root directory of this source tree. 286 */const SO=tt("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/** 287 * @license lucide-react v0.462.0 - ISC 288 * 289 * This source code is licensed under the ISC license. 290 * See the LICENSE file in the root directory of this source tree. 291 */const Qi=tt("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/** 292 * @license lucide-react v0.462.0 - ISC 293 * 294 * This source code is licensed under the ISC license. 295 * See the LICENSE file in the root directory of this source tree. 296 */const Hh=tt("Sprout",[["path",{d:"M7 20h10",key:"e6iznv"}],["path",{d:"M10 20c5.5-2.5.8-6.4 3-10",key:"161w41"}],["path",{d:"M9.5 9.4c1.1.8 1.8 2.2 2.3 3.7-2 .4-3.5.4-4.8-.3-1.2-.6-2.3-1.9-3-4.2 2.8-.5 4.4 0 5.5.8z",key:"9gtqwd"}],["path",{d:"M14.1 6a7 7 0 0 0-1.1 4c1.9-.1 3.3-.6 4.3-1.4 1-1 1.6-2.3 1.7-4.6-2.7.1-4 1-4.9 2z",key:"bkxnd2"}]]);/** 297 * @license lucide-react v0.462.0 - ISC 298 * 299 * This source code is licensed under the ISC license. 300 * See the LICENSE file in the root directory of this source tree. 301 */const _O=tt("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/** 302 * @license lucide-react v0.462.0 - ISC 303 * 304 * This source code is licensed under the ISC license. 305 * See the LICENSE file in the root directory of this source tree. 306 */const W8=tt("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/** 307 * @license lucide-react v0.462.0 - ISC 308 * 309 * This source code is licensed under the ISC license. 310 * See the LICENSE file in the root directory of this source tree. 311 */const G8=tt("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** 312 * @license lucide-react v0.462.0 - ISC 313 * 314 * This source code is licensed under the ISC license. 315 * See the LICENSE file in the root directory of this source tree. 316 */const NO=tt("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** 317 * @license lucide-react v0.462.0 - ISC 318 * 319 * This source code is licensed under the ISC license. 320 * See the LICENSE file in the root directory of this source tree. 321 */const h3=tt("Twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]);/** 322 * @license lucide-react v0.462.0 - ISC 323 * 324 * This source code is licensed under the ISC license. 325 * See the LICENSE file in the root directory of this source tree. 326 */const kO=tt("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/** 327 * @license lucide-react v0.462.0 - ISC 328 * 329 * This source code is licensed under the ISC license. 330 * See the LICENSE file in the root directory of this source tree. 331 */const AO=tt("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/** 332 * @license lucide-react v0.462.0 - ISC 333 * 334 * This source code is licensed under the ISC license. 335 * See the LICENSE file in the root directory of this source tree. 336 */const jO=tt("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** 337 * @license lucide-react v0.462.0 - ISC 338 * 339 * This source code is licensed under the ISC license. 340 * See the LICENSE file in the root directory of this source tree.
vendor: 8,679 bytes, lines 341-356
341 */const K8=tt("Wind",[["path",{d:"M12.8 19.6A2 2 0 1 0 14 16H2",key:"148xed"}],["path",{d:"M17.5 8a2.5 2.5 0 1 1 2 4H2",key:"1u4tom"}],["path",{d:"M9.8 4.4A2 2 0 1 1 11 8H2",key:"75valh"}]]);/** 342 * @license lucide-react v0.462.0 - ISC 343 * 344 * This source code is licensed under the ISC license. 345 * See the LICENSE file in the root directory of this source tree. 346 */const Y8=tt("Workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]]);/** 347 * @license lucide-react v0.462.0 - ISC 348 * 349 * This source code is licensed under the ISC license. 350 * See the LICENSE file in the root directory of this source tree. 351 */const yc=tt("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** 352 * @license lucide-react v0.462.0 - ISC 353 * 354 * This source code is licensed under the ISC license. 355 * See the LICENSE file in the root directory of this source tree. 356 */const CO=tt("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),W5="-",EO=e=>{const t=PO(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(W5);return a[0]===""&&a.length!==1&&a.shift(),X8(a,t)||LO(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},X8=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?X8(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const s=e.join(W5);return(o=t.validators.find(({validator:a})=>a(s)))==null?void 0:o.classGroupId},p3=/^\[(.+)\]$/,LO=e=>{if(p3.test(e)){const t=p3.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},PO=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return RO(Object.entries(e.classGroups),n).forEach(([s,o])=>{wx(o,r,s,t)}),r},wx=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:m3(t,i);s.classGroupId=n;return}if(typeof i=="function"){if(TO(i)){wx(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([s,o])=>{wx(o,m3(t,s),n,r)})})},m3=(e,t)=>{let n=e;return t.split(W5).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},TO=e=>e.isThemeGetter,RO=(e,t)=>t?e.map(([n,r])=>{const i=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([o,a])=>[t+o,a])):s);return[n,i]}):e,OO=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(s,o)=>{n.set(s,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let o=n.get(s);if(o!==void 0)return o;if((o=r.get(s))!==void 0)return i(s,o),o},set(s,o){n.has(s)?n.set(s,o):i(s,o)}}},Z8="!",IO=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],s=t.length,o=a=>{const l=[];let c=0,d=0,h;for(let b=0;b<a.length;b++){let y=a[b];if(c===0){if(y===i&&(r||a.slice(b,b+s)===t)){l.push(a.slice(d,b)),d=b+s;continue}if(y==="/"){h=b;continue}}y==="["?c++:y==="]"&&c--}const m=l.length===0?a:a.substring(d),f=m.startsWith(Z8),x=f?m.substring(1):m,v=h&&h>d?h-d:void 0;return{modifiers:l,hasImportantModifier:f,baseClassName:x,maybePostfixModifierPosition:v}};return n?a=>n({className:a,parseClassName:o}):o},MO=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},FO=e=>({cache:OO(e.cacheSize),parseClassName:IO(e),...EO(e)}),DO=/\s+/,BO=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,s=[],o=e.trim().split(DO);let a="";for(let l=o.length-1;l>=0;l-=1){const c=o[l],{modifiers:d,hasImportantModifier:h,baseClassName:m,maybePostfixModifierPosition:f}=n(c);let x=!!f,v=r(x?m.substring(0,f):m);if(!v){if(!x){a=c+(a.length>0?" "+a:a);continue}if(v=r(m),!v){a=c+(a.length>0?" "+a:a);continue}x=!1}const b=MO(d).join(":"),y=h?b+Z8:b,S=y+v;if(s.includes(S))continue;s.push(S);const _=i(v,x);for(let k=0;k<_.length;++k){const O=_[k];s.push(y+O)}a=c+(a.length>0?" "+a:a)}return a};function zO(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Q8(t))&&(r&&(r+=" "),r+=n);return r}const Q8=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Q8(e[r]))&&(n&&(n+=" "),n+=t);return n};function UO(e,...t){let n,r,i,s=o;function o(l){const c=t.reduce((d,h)=>h(d),e());return n=FO(c),r=n.cache.get,i=n.cache.set,s=a,a(l)}function a(l){const c=r(l);if(c)return c;const d=BO(l,n);return i(l,d),d}return function(){return s(zO.apply(null,arguments))}}const mn=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},J8=/^\[(?:([a-z-]+):)?(.+)\]$/i,VO=/^\d+\/\d+$/,$O=new Set(["px","full","screen"]),qO=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,HO=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,WO=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,GO=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,KO=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,To=e=>ju(e)||$O.has(e)||VO.test(e),va=e=>yd(e,"length",nI),ju=e=>!!e&&!Number.isNaN(Number(e)),py=e=>yd(e,"number",ju),hf=e=>!!e&&Number.isInteger(Number(e)),YO=e=>e.endsWith("%")&&ju(e.slice(0,-1)),Ct=e=>J8.test(e),ba=e=>qO.test(e),XO=new Set(["length","size","percentage"]),ZO=e=>yd(e,XO,ej),QO=e=>yd(e,"position",ej),JO=new Set(["image","url"]),eI=e=>yd(e,JO,iI),tI=e=>yd(e,"",rI),pf=()=>!0,yd=(e,t,n)=>{const r=J8.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},nI=e=>HO.test(e)&&!WO.test(e),ej=()=>!1,rI=e=>GO.test(e),iI=e=>KO.test(e),sI=()=>{const e=mn("colors"),t=mn("spacing"),n=mn("blur"),r=mn("brightness"),i=mn("borderColor"),s=mn("borderRadius"),o=mn("borderSpacing"),a=mn("borderWidth"),l=mn("contrast"),c=mn("grayscale"),d=mn("hueRotate"),h=mn("invert"),m=mn("gap"),f=mn("gradientColorStops"),x=mn("gradientColorStopPositions"),v=mn("inset"),b=mn("margin"),y=mn("opacity"),S=mn("padding"),_=mn("saturate"),k=mn("scale"),O=mn("sepia"),$=mn("skew"),U=mn("space"),I=mn("translate"),R=()=>["auto","contain","none"],z=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto",Ct,t],L=()=>[Ct,t],D=()=>["",To,va],F=()=>["auto",ju,Ct],te=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],re=()=>["solid","dashed","dotted","double","none"],ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],G=()=>["start","end","center","between","around","evenly","stretch"],Q=()=>["","0",Ct],de=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ue=()=>[ju,Ct];return{cacheSize:500,separator:":",theme:{colors:[pf],spacing:[To,va],blur:["none","",ba,Ct],brightness:ue(),borderColor:[e],borderRadius:["none","","full",ba,Ct],borderSpacing:L(),borderWidth:D(),contrast:ue(),grayscale:Q(),hueRotate:ue(),invert:Q(),gap:L(),gradientColorStops:[e],gradientColorStopPositions:[YO,va],inset:C(),margin:C(),opacity:ue(),padding:L(),saturate:ue(),scale:ue(),sepia:Q(),skew:ue(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",Ct]}],container:["container"],columns:[{columns:[ba]}],"break-after":[{"break-after":de()}],"break-before":[{"break-before":de()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...te(),Ct]}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}
vendor: 4,769 bytes, line 356
356],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",hf,Ct]}],basis:[{basis:C()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ct]}],grow:[{grow:Q()}],shrink:[{shrink:Q()}],order:[{order:["first","last","none",hf,Ct]}],"grid-cols":[{"grid-cols":[pf]}],"col-start-end":[{col:["auto",{span:["full",hf,Ct]},Ct]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[pf]}],"row-start-end":[{row:["auto",{span:[hf,Ct]},Ct]}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ct]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ct]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...G()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...G(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...G(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[S]}],px:[{px:[S]}],py:[{py:[S]}],ps:[{ps:[S]}],pe:[{pe:[S]}],pt:[{pt:[S]}],pr:[{pr:[S]}],pb:[{pb:[S]}],pl:[{pl:[S]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[U]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[U]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Ct,t]}],"min-w":[{"min-w":[Ct,t,"min","max","fit"]}],"max-w":[{"max-w":[Ct,t,"none","full","min","max","fit","prose",{screen:[ba]},ba]}],h:[{h:[Ct,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ct,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ct,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ct,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ba,va]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",py]}],"font-family":[{font:[pf]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Ct]}],"line-clamp":[{"line-clamp":["none",ju,py]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",To,Ct]}],"list-image":[{"list-image":["none",Ct]}],"list-style-type":[{list:["none","disc","decimal",Ct]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...re(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",To,va]}],"underline-offset":[{"underline-offset":["auto",To,Ct]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ct]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ct]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...te(),QO]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ZO]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},eI]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}
356],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...re(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}
vendor: 4,473 bytes, line 356
356],"divide-style":[{divide:re()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...re()]}],"outline-offset":[{"outline-offset":[To,Ct]}],"outline-w":[{outline:[To,va]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[To,va]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ba,tI]}],"shadow-color":[{shadow:[pf]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...ce(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ce()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",ba,Ct]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[h]}],saturate:[{saturate:[_]}],sepia:[{sepia:[O]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[_]}],"backdrop-sepia":[{"backdrop-sepia":[O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Ct]}],duration:[{duration:ue()}],ease:[{ease:["linear","in","out","in-out",Ct]}],delay:[{delay:ue()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ct]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[k]}],"scale-x":[{"scale-x":[k]}],"scale-y":[{"scale-y":[k]}],rotate:[{rotate:[hf,Ct]}],"translate-x":[{"translate-x":[I]}],"translate-y":[{"translate-y":[I]}],"skew-x":[{"skew-x":[$]}],"skew-y":[{"skew-y":[$]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ct]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ct]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ct]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[To,va,py]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","
356none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},oI=UO(sI);function kt(...e){return oI(I8(e))}const aI=J9,tj=j.forwardRef(({className:e,...t},n)=>u.jsx(C8,{ref:n,className:kt("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));tj.displayName=C8.displayName;const lI=M8("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),nj=j.forwardRef(({className:e,variant:t,...n},r)=>u.jsx(E8,{ref:r,className:kt(lI({variant:t}),e),...n}));nj.displayName=E8.displayName;const cI=j.forwardRef(({className:e,...t},n)=>u.jsx(T8,{ref:n,className:kt("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));cI.displayName=T8.displayName;const rj=j.forwardRef(({className:e,...t},n)=>u.jsx(R8,{ref:n,className:kt("absolute right-2 top-2 rounded-md p-1 text-foreground
356/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:u.jsx(yc,{className:"h-4 w-4"})}));rj.displayName=R8.displayName;const ij=j.forwardRef(({className:e,...t},n)=>u.jsx(L8,{ref:n,className:kt("text-sm font-semibold",e),...t}));ij.displayName=L8.displayName;const sj=j.forwardRef(({className:e,...t},n)=>u.jsx(P8,{ref:n,className:kt("text-sm opacity-90",e),...t}));sj.displayName=P8.displayName;function uI(){const{toasts:e}=a8();return u.jsxs(aI,{children:[e.map(function({id:t,title:n,description:r,action:i,...s}){return u.jsxs(nj,{...s,children:[u.jsxs("div",{className:"grid gap-1",children:[n&&u.jsx(ij,{children:n}),r&&u.jsx(sj,{children:r})]}),i,u.jsx(rj,{})]},t)}),u.jsx(tj,{})]})}var g3=["light","dark"],dI="(prefers-color-scheme: dark)",fI=j.createContext(void 0),hI={setTheme:e=>{},themes:[]},pI=()=>{var e;return(e=j.useContext(fI))!=null?e:hI};j.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:s,value:o,attrs:a,nonce:l})=>{let c=s==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(x=>`'${x}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,h=i?g3.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",m=(x,v=!1,b=!0)=>{let y=o?o[x]:x,S=v?x+"|| ''":`'${y}'`,_="";return i&&b&&!v&&g3.includes(x)&&(_+=`d.style.colorScheme = '${x}';`),n==="class"?v||y?_+=`c.add(${S})`:_+="null":y&&(_+=`d[s](n,${S})`),_},f=e?`!function(){${d}${m(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${dI}',m=window.matchMedia(t);if(m.media!==t||m.matches){${m("dark")}}else{${m("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${m(o?"x[e]":"e",!0)}}${c?"":"else{"+m(s,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${m(o?"x[e]":"e",!0)}}else{${m(s,!1,!1)};}${h}}catch(t){}}();`;return j.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:f}})});var mI=e=>{switch(e){case"success":return xI;case"info":return bI;case"warning":return vI;case"error":return wI;default:return null}},gI=Array(12).fill(0),yI=({visible:e,className:t})=>Pe.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},Pe.createElement("div",{className:"sonner-spinner"},gI.map((n,r)=>Pe.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),xI=Pe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Pe.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),vI=Pe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},Pe.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),bI=Pe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Pe.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),wI=Pe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Pe.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),SI=Pe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},Pe.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),Pe.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),_I=()=>{let[e,t]=Pe.useState(document.hidden);return Pe.useEffect(()=>{let n=()=>{t(document.hidden)};
356return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Sx=1,NI=class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;let{message:r,...i}=t,s=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Sx++,o=this.toasts.find(l=>l.id===s),a=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),o?this.toasts=this.toasts.map(l=>l.id===s?(this.publish({...l,...t,id:s,title:r}),{...l,...t,id:s,dismissible:a,title:r}):l):this.addToast({title:r,...i,dismissible:a,id:s}),s},this.dismiss=t=>(this.dismissedToasts.add(t),t||this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),this.subscribers.forEach(n=>n({id:t,dismiss:!0})),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));let i=t instanceof Promise?t:t(),s=r!==void 0,o,a=i.then(async c=>{if(o=["resolve",c],Pe.isValidElement(c))s=!1,this.create({id:r,type:"default",message:c});
356else if(AI(c)&&!c.ok){s=!1;let d=typeof n.error=="function"?await n.error(`HTTP error! status: ${c.status}`):n.error,h=typeof n.description=="function"?await n.description(`HTTP error! status: ${c.status}`):n.description;this.create({id:r,type:"error",message:d,description:h})}else if(n.success!==void 0){s=!1;let d=typeof n.success=="function"?await n.success(c):n.success,h=typeof n.description=="function"?await n.description(c):n.description;this.create({id:r,type:"success",message:d,description:h})}}).catch(async c=>{if(o=["reject",c],n.error!==void 0){s=!1;let d=typeof n.error=="function"?await n.error(c):n.error,h=typeof n.description=="function"?await n.description(c):n.description;this.create({id:r,type:"error",message:d,description:h})}}).finally(()=>{var c;s&&(this.dismiss(r),r=void 0),(c=n.finally)==null||c.call(n)}),l=()=>new Promise((c,d)=>a.then(()=>o[0]==="reject"?d(o[1]):c(o[1])).catch(d));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{let r=(n==null?void 0:n.id)||Sx++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},si=new NI,kI=(e,t)=>{let n=(t==null?void 0:t.id)||Sx++;return si.addToast({title:e,...t,id:n}),n},AI=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",jI=kI,CI=()=>si.toasts,EI=()=>si.getActiveToasts(),Kee=Object.assign(jI,{success:si.success,info:si.info,warning:si.warning,error:si.error,custom:si.custom,message:si.message,promise:si.promise,dismiss:si.dismiss,loading:si.loading},{getHistory:CI,getToasts:EI});function LI(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}LI(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
356left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
356:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
356--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} 357`);function cm(e){return e.label!==void 0}var PI=3,TI="32px",RI="16px",y3=4e3,OI=356,II=14,MI=20,FI=200;function ys(...e){return e.filter(Boolean).join(" ")}function DI(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var BI=e=>{var t,n,r,i,s,o,a,l,c,d,h;let{invert:m,toast:f,unstyled:x,interacting:v,setHeights:b,visibleToasts:y,heights:S,index:_,toasts:k,expanded:O,removeToast:$,defaultRichColors:U,closeButton:I,style:R,cancelButtonStyle:z,actionButtonStyle:C,className:L="",descriptionClassName:D="",duration:F,position:te,gap:re,loadingIcon:ce,expandByDefault:G,classNames:Q,icons:de,closeButtonAriaLabel:ue="Close toast",pauseWhenPageIsHidden:E}=e,[H,K]=Pe.useState(null),[ee,J]=Pe.useState(null),[ie,ge]=Pe.useState(!1),[ye,ve]=Pe.useState(!1),[je,Le]=Pe.useState(!1),[Te,Ue]=Pe.useState(!1),[W,we]=Pe.useState(!1),[nt,Fe]=Pe.useState(0),[Ne,st]=Pe.useState(0),Ie=Pe.useRef(f.duration||F||y3),Ge=Pe.useRef(null),He=Pe.useRef(null),$t=_===0,Et=_+1<=y,ot=f.type,wt=f.dismissible!==!1,Lt=f.className||"",Ke=f.descriptionClassName||"",dt=Pe.useMemo(()=>S.findIndex(ct=>ct.toastId===f.id)||0,[S,f.id]),Ze=Pe.useMemo(()=>{var ct;return(ct=f.closeButton)!=null?ct:I},[f.closeButton,I]),vn=Pe.useMemo(()=>f.duration||F||y3,[f.duration,F]),Pt=Pe.useRef(0),ht=Pe.useRef(0),St=Pe.useRef(0),Gt=Pe.useRef(null),[at,sn]=te.split("-"),lt=Pe.useMemo(()=>S.reduce((ct,yt,Mt)=>Mt>=dt?ct:ct+yt.height,0),[S,dt]),pt=_I(),un=f.invert||m,_t=ot==="loading";ht.current=Pe.useMemo(()=>dt*re+lt,[dt,lt]),Pe.useEffect(()=>{Ie.current=vn},[vn]),Pe.useEffect(()=>{ge(!0)},[]),Pe.useEffect(()=>{let ct=He.current;if(ct){let yt=ct.getBoundingClientRect().height;return st(yt),b(Mt=>[{toastId:f.id,height:yt,position:f.position},...Mt]),()=>b(Mt=>Mt.filter(En=>En.toastId!==f.id))}},[b,f.id]),Pe.useLayoutEffect(()=>{if(!ie)return;let ct=He.current,yt=ct.style.height;ct.style.height="auto";let Mt=ct.getBoundingClientRect().height;ct.style.height=yt,st(Mt),b(En=>En.find(We=>We.toastId===f.id)?En.map(We=>We.toastId===f.id?{...We,height:Mt}:We):[{toastId:f.id,height:Mt,position:f.position},...En])},[ie,f.title,f.description,b,f.id]);let Qe=Pe.useCallback(()=>{ve(!0),Fe(ht.current),b(ct=>ct.filter(yt=>yt.toastId!==f.id)),setTimeout(()=>{$(f)},FI)},[f,$,b,ht]);Pe.useEffect(()=>{if(f.promise&&ot==="loading"||f.duration===1/0||f.type==="loading")return;let ct;return O||v||E&&pt?(()=>{if(St.current<Pt.current){let yt=new Date().getTime()-Pt.current;Ie.current=Ie.current-yt}
357St.current=new Date().getTime()})():Ie.current!==1/0&&(Pt.current=new Date().getTime(),ct=setTimeout(()=>{var yt;(yt=f.onAutoClose)==null||yt.call(f,f),Qe()},Ie.current)),()=>clearTimeout(ct)},[O,v,f,ot,E,pt,Qe]),Pe.useEffect(()=>{f.delete&&Qe()},[Qe,f.delete]);function qt(){var ct,yt,Mt;return de!=null&&de.loading?Pe.createElement("div",{className:ys(Q==null?void 0:Q.loader,(ct=f==null?void 0:f.classNames)==null?void 0:ct.loader,"sonner-loader"),"data-visible":ot==="loading"},de.loading):ce?Pe.createElement("div",{className:ys(Q==null?void 0:Q.loader,(yt=f==null?void 0:f.classNames)==null?void 0:yt.loader,"sonner-loader"),"data-visible":ot==="loading"},ce):Pe.createElement(yI,{className:ys(Q==null?void 0:Q.loader,(Mt=f==null?void 0:f.classNames)==null?void 0:Mt.loader),visible:ot==="loading"})}return Pe.createElement("li",{tabIndex:0,ref:He,className:ys(L,Lt,Q==null?void 0:Q.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,Q==null?void 0:Q.default,Q==null?void 0:Q[ot],(n=f==null?void 0:f.classNames)==null?void 0:n[ot]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:U,"data-styled":!(f.jsx||f.unstyled||x),"data-mounted":ie,"data-promise":!!f.promise,"data-swiped":W,"data-removed":ye,"data-visible":Et,"data-y-position":at,"data-x-position":sn,"data-index":_,"data-front":$t,"data-swiping":je,"data-dismissible":wt,"data-type":ot,"data-invert":un,"data-swipe-out":Te,"data-swipe-direction":ee,"data-expanded":!!(O||G&&ie),style:{"--index":_,"--toasts-before":_,"--z-index":k.length-_,"--offset":`${ye?nt:ht.current}px`,"--initial-height":G?"auto":`${Ne}px`,...R,...f.style},onDragEnd:()=>{Le(!1),K(null),Gt.current=null},onPointerDown:ct=>{_t||!wt||(Ge.current=new Date,Fe(ht.current),ct.target.setPointerCapture(ct.pointerId),ct.target.tagName!=="BUTTON"&&(Le(!0),Gt.current={x:ct.clientX,y:ct.clientY}))},onPointerUp:()=>{var ct,yt,Mt,En;if(Te||!wt)return;Gt.current=null;let We=Number(((ct=He.current)==null?void 0:ct.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),ur=Number(((yt=He.current)==null?void 0:yt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),yr=new Date().getTime()-((Mt=Ge.current)==null?void 0:Mt.getTime()),bn=H==="x"?We:ur,Mn=Math.abs(bn)/yr;if(Math.abs(bn)>=MI||Mn>.11){Fe(ht.current),(En=f.onDismiss)==null||En.call(f,f),J(H==="x"?We>0?"right":"left":ur>0?"down":"up"),Qe(),Ue(!0),we(!1);return}Le(!1),K(null)},onPointerMove:ct=>{var yt,Mt,En,We;if(!Gt.current||!wt||((yt=window.getSelection())==null?void 0:yt.toString().length)>0)return;let ur=ct.clientY-Gt.current.y,yr=ct.clientX-Gt.current.x,bn=(Mt=e.swipeDirections)!=null?Mt:DI(te);!H&&(Math.abs(yr)>1||Math.abs(ur)>1)&&K(Math.abs(yr)>Math.abs(ur)?"x":"y");let Mn={x:0,y:0};H==="y"?(bn.includes("top")||bn.includes("bottom"))&&(bn.includes("top")&&ur<0||bn.includes("bottom")&&ur>0)&&(Mn.y=ur):H==="x"&&(bn.includes("left")||bn.includes("right"))&&(bn.includes("left")&&yr<0||bn.includes("right")&&yr>0)&&(Mn.x=yr),(Math.abs(Mn.x)>0||Math.abs(Mn.y)>0)&&we(!0),(En=He.current)==null||En.style.setProperty("--swipe-amount-x",`${Mn.x}px`),(We=He.current)==null||We.style.setProperty("--swipe-amount-y",`${Mn.y}px`)}},Ze&&!f.jsx?Pe.createElement("button",{"aria-label":ue,"data-disabled":_t,"data-close-button":!0,onClick:_t||!wt?()=>{}:()=>{var ct;Qe(),(ct=f.onDismiss)==null||ct.call(f,f)},className:ys(Q==null?void 0:Q.closeButton,(i=f==null?void 0:f.classNames)==null?void 0:i.closeButton)},(s=de==null?void 0:de.close)!=null?s:SI):null,f.jsx||j.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:Pe.createElement(Pe.Fragment,null,ot||f.icon||f.promise?Pe.createElement("div",{"data-icon":"",className:ys(Q==null?void 0:Q.icon,(o=f==null?void 0:f.classNames)==null?void 0:o.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||qt():null,f.type!=="loading"?f.icon||(de==null?void 0:de[ot])||mI(ot):null):null,Pe.createElement("div",{"data-content":"",className:ys(Q==null?void 0:Q.content,(a=f==null?void 0:f.classNames)==null?void 0:a.content)},Pe.createElement("div",{"data-title":"",className:ys(Q==null?void 0:Q.title,(l=f==null?void 0:f.classNames)==null?void 0:l.title)},typeof f.title=="function"?f.title():f.title),f.description?Pe.createElement("div",{"data-description":"",className:ys(D,Ke,Q==null?void 0:Q.description,(c=f==null?void 0:f.classNames)==null?void 0:c.description)},typeof f.description=="function"?f.description():f.description):null),j.isValidElement(f.cancel)?f.cancel:f.cancel&&cm(f.cancel)?Pe.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||z,onClick:ct=>{var yt,Mt;cm(f.cancel)&&wt&&((Mt=(yt=f.cancel).onClick)==null||Mt.call(yt,ct),Qe())},className:ys(Q==null?void 0:Q.cancelButton,(d=f==null?void 0:f.classNames)==null?void 0:d.cancelButton)},f.cancel.label):null,j.isValidElement(f.action)?f.action:f.action&&cm(f.action)?Pe.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||C,onClick:ct=>{var yt,Mt;cm(f.action)&&((Mt=(yt=f.action).onClick)==null||Mt.call(yt,ct),!ct.defaultPrevented&&Qe())},className:ys(Q==null?void 0:Q.actionButton,(h=f==null?void 0:f.classNames)==null?void 0:h.actionButton)},f.action.label):null))};function x3(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function zI(e,t){let n={};return[e,t].forEach((r,i)=>{let s=i===1,o=s?"--mobile-offset":"--offset",a=s?RI:TI;function l(c){["top","right","bottom","left"].forEach(d=>{n[`${o}-${d}`]=typeof c=="number"?`${c}px`:c})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(c=>{r[c]===void 0?n[`${o}-${c}`]=a:n[`${o}-${c}`]=typeof r[c]=="number"?`${r[c]}px`:r[c]}):l(a)}),n}var UI=j.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:i=["altKey","KeyT"],expand:s,closeButton:o,className:a,offset:l,mobileOffset:c,theme:d="light",richColors:h,duration:m,style:f,visibleToasts:x=PI,toastOptions:v,dir:b=x3(),gap:y=II,loadingIcon:S,icons:_,containerAriaLabel:k="Notifications",pauseWhenPageIsHidden:O}=e,[$,U]=Pe.useState([]),I=Pe.useMemo(()=>Array.from(new Set([r].concat($.filter(E=>E.position).map(E=>E.position)))),[$,r]),[R,z]=Pe.useState([]),[C,L]=Pe.useState(!1),[D,F]=Pe.useState(!1),[te,re]=Pe.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
357k":"light"),ce=Pe.useRef(null),G=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),Q=Pe.useRef(null),de=Pe.useRef(!1),ue=Pe.useCallback(E=>{U(H=>{var K;return(K=H.find(ee=>ee.id===E.id))!=null&&K.delete||si.dismiss(E.id),H.filter(({id:ee})=>ee!==E.id)})},[]);return Pe.useEffect(()=>si.subscribe(E=>{if(E.dismiss){U(H=>H.map(K=>K.id===E.id?{...K,delete:!0}:K));return}setTimeout(()=>{s8.flushSync(()=>{U(H=>{let K=H.findIndex(ee=>ee.id===E.id);return K!==-1?[...H.slice(0,K),{...H[K],...E},...H.slice(K+1)]:[E,...H]})})})}),[]),Pe.useEffect(()=>{if(d!=="system"){re(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?re("dark"):re("light")),typeof window>"u")return;let E=window.matchMedia("(prefers-color-scheme: dark)");try{E.addEventListener("change",({matches:H})=>{re(H?"dark":"light")})}catch{E.addListener(({matches:K})=>{try{re(K?"dark":"light")}catch(ee){console.error(ee)}})}},[d]),Pe.useEffect(()=>{$.length<=1&&L(!1)},[$]),Pe.useEffect(()=>{let E=H=>{var K,ee;i.every(J=>H[J]||H.code===J)&&(L(!0),(K=ce.current)==null||K.focus()),H.code==="Escape"&&(document.activeElement===ce.current||(ee=ce.current)!=null&&ee.contains(document.activeElement))&&L(!1)};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},[i]),Pe.useEffect(()=>{if(ce.current)return()=>{Q.current&&(Q.current.focus({preventScroll:!0}),Q.current=null,de.current=!1)}},[ce.current]),Pe.createElement("section",{ref:t,"aria-label":`${k} ${G}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},I.map((E,H)=>{var K;let[ee,J]=E.split("-");return $.length?Pe.createElement("ol",{key:E,dir:b==="auto"?x3():b,tabIndex:-1,ref:ce,className:a,"data-sonner-toaster":!0,"data-theme":te,"data-y-position":ee,"data-lifted":C&&$.length>1&&!s,"data-x-position":J,style:{"--front-toast-height":`${((K=R[0])==null?void 0:K.height)||0}px`,"--width":`${OI}px`,"--gap":`${y}px`,...f,...zI(l,c)},onBlur:ie=>{de.current&&!ie.currentTarget.contains(ie.relatedTarget)&&(de.current=!1,Q.current&&(Q.current.focus({preventScroll:!0}),Q.current=null))},onFocus:ie=>{ie.target instanceof HTMLElement&&ie.target.dataset.dismissible==="false"||de.current||(de.current=!0,Q.current=ie.relatedTarget)},onMouseEnter:()=>L(!0),onMouseMove:()=>L(!0),onMouseLeave:()=>{D||L(!1)},onDragEnd:()=>L(!1),onPointerDown:ie=>{ie.target instanceof HTMLElement&&ie.target.dataset.dismissible==="false"||F(!0)},onPointerUp:()=>F(!1)},$.filter(ie=>!ie.position&&H===0||ie.position===E).map((ie,ge)=>{var ye,ve;return Pe.createElement(BI,{key:ie.id,icons:_,index:ge,toast:ie,defaultRichColors:h,duration:(ye=v==null?void 0:v.duration)!=null?ye:m,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:n,visibleToasts:x,closeButton:(ve=v==null?void 0:v.closeButton)!=null?ve:o,interacting:D,position:E,style:v==null?void 0:v.style,unstyled:v==null?void 0:v.unstyled,classNames:v==null?void 0:v.classNames,cancelButtonStyle:v==null?void 0:v.cancelButtonStyle,actionButtonStyle:v==null?void 0:v.actionButtonStyle,removeToast:ue,toasts:$.filter(je=>je.position==ie.position),heights:R.filter(je=>je.position==ie.position),setHeights:z,expandByDefault:s,gap:y,loadingIcon:S,expanded:C,pauseWhenPageIsHidden:O,swipeDirections:e.swipeDirections})})):null}))});const VI=({...e})=>{const{theme:t="system"}=pI();return u.jsx(UI,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},$I=["top","right","bottom","left"],ol=Math.min,Li=Math.max,M0=Math.round,um=Math.floor,al=e=>({x:e,y:e}),qI={left:"right",right:"left",bottom:"top",top:"bottom"},HI={start:"end",end:"start"};function _x(e,t,n){return Li(e,ol(t,n))}function Ko(e,t){return typeof e=="function"?e(t):e}function Yo(e){return e.split("-")[0]}function xd(e){return e.split("-")[1]}function G5(e){return e==="x"?"y":"x"}function K5(e){return e==="y"?"height":"width"}function ll(e){return["top","bottom"].includes(Yo(e))?"y":"x"}function Y5(e){return G5(ll(e))}function WI(e,t,n){n===void 0&&(n=!1);const r=xd(e),i=Y5(e),s=K5(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>
vendor: 1,679 bytes, line 357
357t.floating[s]&&(o=F0(o)),[o,F0(o)]}function GI(e){const t=F0(e);return[Nx(e),t,Nx(t)]}function Nx(e){return e.replace(/start|end/g,t=>HI[t])}function KI(e,t,n){const r=["left","right"],i=["right","left"],s=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?s:o;default:return[]}}function YI(e,t,n,r){const i=xd(e);let s=KI(Yo(e),n==="start",r);return i&&(s=s.map(o=>o+"-"+i),t&&(s=s.concat(s.map(Nx)))),s}function F0(e){return e.replace(/left|right|bottom|top/g,t=>qI[t])}function XI(e){return{top:0,right:0,bottom:0,left:0,...e}}function oj(e){return typeof e!="number"?XI(e):{top:e,right:e,bottom:e,left:e}}function D0(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function v3(e,t,n){let{reference:r,floating:i}=e;const s=ll(t),o=Y5(t),a=K5(o),l=Yo(t),c=s==="y",d=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,m=r[a]/2-i[a]/2;let f;switch(l){case"top":f={x:d,y:r.y-i.height};break;case"bottom":f={x:d,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:h};break;case"left":f={x:r.x-i.width,y:h};break;default:f={x:r.x,y:r.y}}switch(xd(t)){case"start":f[o]-=m*(n&&c?-1:1);break;case"end":f[o]+=m*(n&&c?-1:1);break}return f}const ZI=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:o}=n,a=s.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:h}=v3(c,r,l),m=r,f={},x=0;for(let v=0;v<a.length;v++){const{name:b,fn:y}=a[v],{x:S,y:_,data:k,reset:O}=await y({x:d,y:h,initialPlacement:r,placement:m,strategy:i,middlewareData:f,re
vendor: 8,789 bytes, line 357
357cts:c,platform:o,elements:{reference:e,floating:t}});d=S??d,h=_??h,f={...f,[b]:{...f[b],...k}},O&&x<=50&&(x++,typeof O=="object"&&(O.placement&&(m=O.placement),O.rects&&(c=O.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):O.rects),{x:d,y:h}=v3(c,m,l)),v=-1)}return{x:d,y:h,placement:m,strategy:i,middlewareData:f}};async function mh(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:m=!1,padding:f=0}=Ko(t,e),x=oj(f),b=a[m?h==="floating"?"reference":"floating":h],y=D0(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(b)))==null||n?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),S=h==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),k=await(s.isElement==null?void 0:s.isElement(_))?await(s.getScale==null?void 0:s.getScale(_))||{x:1,y:1}:{x:1,y:1},O=D0(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:S,offsetParent:_,strategy:l}):S);return{top:(y.top-O.top+x.top)/k.y,bottom:(O.bottom-y.bottom+x.bottom)/k.y,left:(y.left-O.left+x.left)/k.x,right:(O.right-y.right+x.right)/k.x}}const QI=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:s,platform:o,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=Ko(e,t)||{};if(c==null)return{};const h=oj(d),m={x:n,y:r},f=Y5(i),x=K5(f),v=await o.getDimensions(c),b=f==="y",y=b?"top":"left",S=b?"bottom":"right",_=b?"clientHeight":"clientWidth",k=s.reference[x]+s.reference[f]-m[f]-s.floating[x],O=m[f]-s.reference[f],$=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let U=$?$[_]:0;(!U||!await(o.isElement==null?void 0:o.isElement($)))&&(U=a.floating[_]||s.floating[x]);const I=k/2-O/2,R=U/2-v[x]/2-1,z=ol(h[y],R),C=ol(h[S],R),L=z,D=U-v[x]-C,F=U/2-v[x]/2+I,te=_x(L,F,D),re=!l.arrow&&xd(i)!=null&&F!==te&&s.reference[x]/2-(F<L?z:C)-v[x]/2<0,ce=re?F<L?F-L:F-D:0;return{[f]:m[f]+ce,data:{[f]:te,centerOffset:F-te-ce,...re&&{alignmentOffset:ce}},reset:re}}}),JI=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:s,rects:o,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:v=!0,...b}=Ko(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=Yo(i),S=ll(a),_=Yo(a)===a,k=await(l.isRTL==null?void 0:l.isRTL(c.floating)),O=m||(_||!v?[F0(a)]:GI(a)),$=x!=="none";!m&&$&&O.push(...YI(a,v,x,k));const U=[a,...O],I=await mh(t,b),R=[];let z=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&R.push(I[y]),h){const F=WI(i,o,k);R.push(I[F[0]],I[F[1]])}if(z=[...z,{placement:i,overflows:R}],!R.every(F=>F<=0)){var C,L;const F=(((C=s.flip)==null?void 0:C.index)||0)+1,te=U[F];if(te)return{data:{index:F,overflows:z},reset:{placement:te}};let re=(L=z.filter(ce=>ce.overflows[0]<=0).sort((ce,G)=>ce.overflows[1]-G.overflows[1])[0])==null?void 0:L.placement;if(!re)switch(f){case"bestFit":{var D;const ce=(D=z.filter(G=>{if($){const Q=ll(G.placement);return Q===S||Q==="y"}return!0}).map(G=>[G.placement,G.overflows.filter(Q=>Q>0).reduce((Q,de)=>Q+de,0)]).sort((G,Q)=>G[1]-Q[1])[0])==null?void 0:D[0];ce&&(re=ce);break}case"initialPlacement":re=a;break}if(i!==re)return{reset:{placement:re}}}return{}}}};function b3(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function w3(e){return $I.some(t=>e[t]>=0)}const eM=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=Ko(e,t);switch(r){case"referenceHidden":{const s=await mh(t,{...i,elementContext:"reference"}),o=b3(s,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:w3(o)}}}case"escaped":{const s=await mh(t,{...i,altBoundary:!0}),o=b3(s,n.floating);return{data:{escapedOffsets:o,escaped:w3(o)}}}default:return{}}}}};async function tM(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Yo(n),a=xd(n),l=ll(n)==="y",c=["left","top"].includes(o)?-1:1,d=s&&l?-1:1,h=Ko(t,e);let{mainAxis:m,crossAxis:f,alignmentAxis:x}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof x=="number"&&(f=a==="end"?x*-1:x),l?{x:f*d,y:m*c}:{x:m*c,y:f*d}}const nM=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:o,middlewareData:a}=t,l=await tM(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:o}}}}},rM=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:o=!1,limiter:a={fn:b=>{let{x:y,y:S}=b;return{x:y,y:S}}},...l}=Ko(e,t),c={x:n,y:r},d=await mh(t,l),h=ll(Yo(i)),m=G5(h);let f=c[m],x=c[h];if(s){const b=m==="y"?"top":"left",y=m==="y"?"bottom":"right",S=f+d[b],_=f-d[y];f=_x(S,f,_)}if(o){const b=h==="y"?"top":"left",y=h==="y"?"bottom":"right",S=x+d[b],_=x-d[y];x=_x(S,x,_)}const v=a.fn({...t,[m]:f,[h]:x});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[m]:s,[h]:o}}}}}},iM=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:s,middlewareData:o}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=Ko(e,t),d={x:n,y:r},h=ll(i),m=G5(h);let f=d[m],x=d[h];const v=Ko(a,t),b=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const _=m==="y"?"height":"width",k=s.reference[m]-s.floating[_]+b.mainAxis,O=s.reference[m]+s.reference[_]-b.mainAxis;f<k?f=k:f>O&&(f=O)}if(c){var y,S;const _=m==="y"?"width":"height",k=["top","left"].includes(Yo(i)),O=s.reference[h]-s.floating[_]+(k&&((y=o.offset)==null?void 0:y[h])||0)+(k?0:b.crossAxis),$=s.reference[h]+s.reference[_]+(k?0:((S=o.offset)==null?void 0:S[h])||0)-(k?b.crossAxis:0);x<O?x=O:x>$&&(x=$)}return{[m]:f,[h]:x}}}},sM=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:s,platform:o,elements:a}=t,{apply:l=()=>{},...c}=Ko(e,t),d=await mh(t,c),h=Yo(i),m=xd(i),f=ll(i)==="y",{width:x,height:v}=s.floating;let b,y;h==="top"||h==="bottom"?(b=h,y=m===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(y=h,b=m==="end"?"top":"bottom");const S=v-d.top-d.bottom,_=x-d.left-d.right,k=ol(v-d[b],S),O=ol(x-d[y],_),$=!t.middlewareData.shift;let U=k,I=O;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(I=_),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(U=S),$&&!m){const z=Li(d.left,0),C=Li(d.right,0),L=Li(d.top,0),D=Li(d.bottom,0);f?I=x-2*(z!==0||C!==0?z+C:Li(d.left,d.right)):U=v-2*(L!==0||D!==0?L+D:Li(d.top,d.bottom))}await l({...t,availableWidth:I,availableHeight:U});const R=await o.getDimensions(a.floating);return x!==R.width||v!==R.height?{reset:{rects:!0}}:{}}}};function Og(){return typeof window<"u"}function vd(e){return aj(e)?(e.nodeName||"").toLowerCase():"#document"}function Ii(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function po(e){var t;return(t=(aj(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function aj(e){return Og()?e instanceof Node||e instanceof Ii(e).Node:!1}function Ts(e){return Og()?e instanceof Element||e instanceof Ii(e).Element:!1}function ho(e){return Og()?e instanceof HTMLElement||e instanceof Ii(e).HTMLElement:!1}function S3(e){return!Og()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ii(e).ShadowRoot}function Wh(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Rs(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function oM(e){return["table","td","th"].includes(vd(e))}function Ig(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function X5(e){const t=Z5(),n=Ts(e)?Rs(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function aM(e){let t=cl(e);for(;ho(t)&&!nd(t);){if(X5(t))return t;if(Ig(t))return null;t=cl(t)}return null}function Z5(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}
vendor: 4,514 bytes, line 357
357function nd(e){return["html","body","#document"].includes(vd(e))}function Rs(e){return Ii(e).getComputedStyle(e)}function Mg(e){return Ts(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function cl(e){if(vd(e)==="html")return e;const t=e.assignedSlot||e.parentNode||S3(e)&&e.host||po(e);return S3(t)?t.host:t}function lj(e){const t=cl(e);return nd(t)?e.ownerDocument?e.ownerDocument.body:e.body:ho(t)&&Wh(t)?t:lj(t)}function gh(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=lj(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),o=Ii(i);if(s){const a=kx(o);return t.concat(o,o.visualViewport||[],Wh(i)?i:[],a&&n?gh(a):[])}return t.concat(i,gh(i,[],n))}function kx(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function cj(e){const t=Rs(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=ho(e),s=i?e.offsetWidth:n,o=i?e.offsetHeight:r,a=M0(n)!==s||M0(r)!==o;return a&&(n=s,r=o),{width:n,height:r,$:a}}function Q5(e){return Ts(e)?e:e.contextElement}function Cu(e){const t=Q5(e);if(!ho(t))return al(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=cj(t);let o=(s?M0(n.width):n.width)/r,a=(s?M0(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const lM=al(0);function uj(e){const t=Ii(e);return!Z5()||!t.visualViewport?lM:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function cM(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ii(e)?!1:t}function xc(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=Q5(e);let o=al(1);t&&(r?Ts(r)&&(o=Cu(r)):o=Cu(e));const a=cM(s,n,r)?uj(s):al(0);let l=(i.left+a.x)/o.x,c=(i.top+a.y)/o.y,d=i.width/o.x,h=i.height/o.y;if(s){const m=Ii(s),f=r&&Ts(r)?Ii(r):r;let x=m,v=kx(x);for(;v&&r&&f!==x;){const b=Cu(v),y=v.getBoundingClientRect(),S=Rs(v),_=y.left+(v.clientLeft+parseFloat(S.paddingLeft))*b.x,k=y.top+(v.clientTop+parseFloat(S.paddingTop))*b.y;l*=b.x,c*=b.y,d*=b.x,h*=b.y,l+=_,c+=k,x=Ii(v),v=kx(x)}}return D0({width:d,height:h,x:l,y:c})}function uM(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",o=po(r),a=t?Ig(t.floating):!1;if(r===o||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=al(1);const d=al(0),h=ho(r);if((h||!h&&!s)&&((vd(r)!=="body"||Wh(o))&&(l=Mg(r)),ho(r))){const m=xc(r);c=Cu(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x,y:n.y*c.y-l.scrollTop*c.y+d.y}}function dM(e){return Array.from(e.getClientRects())}function Ax(e,t){const n=Mg(e).scrollLeft;return t?t.left+n:xc(po(e)).left+n}function fM(e){const t=po(e),n=Mg(e),r=e.ownerDocument.body,i=Li(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Li(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Ax(e);const a=-n.scrollTop;return Rs(r).direction==="rtl"&&(o+=Li(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:a}}function hM(e,t){const n=Ii(e),r=po(e),i=n.visualViewport;let s=r.clientWidth,o=r.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;const c=Z5();(!c||c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:a,y:l}}function pM(e,t){const n=xc(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=ho(e)?Cu(e):al(1),o=e.clientWidth*s.x,a=e.clientHeight*s.y,l=i*s.x,c=r*s.y;return{width:o,height:a,x:l,y:c}}function _3(e,t,n){let r;if(t==="viewport")r=hM(e,n);else if(t==="document")r=fM(po(e));else if(Ts(t))r=pM(t,n);else{const i=uj(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return D0(r)}function dj(e,t){const n=cl(e);return n===t||!Ts(n)||nd(n)?!1:Rs(n).position==="fixed"||dj(n,t)}function mM(e,t){const n=t.get(e);if(n)return n;let r=gh(e,[],!1).filter(a=>Ts(a)&&vd(a)!=="body"),i=null;const s=Rs(e).position==="fixed";let o=s?cl(e):e;for(;Ts(o)&&!nd(o);){const a=Rs(o),l=X5(o);!l&&a.position==="fixed"&&(i=null),(s?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Wh(o)&&!l&&dj(e,o))?r=r.filter(d=>d!==o):i=a,o=cl(o)}return t.set(e,r),r}function gM(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?Ig(t)?[]:mM(t,this._c):[].concat(n),r],a=o[0],l=o.reduce((c,d)=>{const h=_3(t,d,i);return c.top=Li(h.top,c.top),c.right=ol(h.right,c.right),c.bottom=ol(h.bottom,c.bottom),c.left=Li(h.left,c.left),c},_3(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function yM(e){const{width:t,height:n}=cj(e);return{width:t,height:n}}
vendor: 9,776 bytes, line 357
357function xM(e,t,n){const r=ho(t),i=po(t),s=n==="fixed",o=xc(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=al(0);if(r||!r&&!s)if((vd(t)!=="body"||Wh(i))&&(a=Mg(t)),r){const f=xc(t,!0,s,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else i&&(l.x=Ax(i));let c=0,d=0;if(i&&!r&&!s){const f=i.getBoundingClientRect();d=f.top+a.scrollTop,c=f.left+a.scrollLeft-Ax(i,f)}const h=o.left+a.scrollLeft-l.x-c,m=o.top+a.scrollTop-l.y-d;return{x:h,y:m,width:o.width,height:o.height}}function my(e){return Rs(e).position==="static"}function N3(e,t){if(!ho(e)||Rs(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return po(e)===n&&(n=n.ownerDocument.body),n}function fj(e,t){const n=Ii(e);if(Ig(e))return n;if(!ho(e)){let i=cl(e);for(;i&&!nd(i);){if(Ts(i)&&!my(i))return i;i=cl(i)}return n}let r=N3(e,t);for(;r&&oM(r)&&my(r);)r=N3(r,t);return r&&nd(r)&&my(r)&&!X5(r)?n:r||aM(e)||n}const vM=async function(e){const t=this.getOffsetParent||fj,n=this.getDimensions,r=await n(e.floating);return{reference:xM(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function bM(e){return Rs(e).direction==="rtl"}const wM={convertOffsetParentRelativeRectToViewportRelativeRect:uM,getDocumentElement:po,getClippingRect:gM,getOffsetParent:fj,getElementRects:vM,getClientRects:dM,getDimensions:yM,getScale:Cu,isElement:Ts,isRTL:bM};function SM(e,t){let n=null,r;const i=po(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const{left:c,top:d,width:h,height:m}=e.getBoundingClientRect();if(a||t(),!h||!m)return;const f=um(d),x=um(i.clientWidth-(c+h)),v=um(i.clientHeight-(d+m)),b=um(c),S={rootMargin:-f+"px "+-x+"px "+-v+"px "+-b+"px",threshold:Li(0,ol(1,l))||1};let _=!0;function k(O){const $=O[0].intersectionRatio;if($!==l){if(!_)return o();$?o(!1,$):r=setTimeout(()=>{o(!1,1e-7)},1e3)}_=!1}try{n=new IntersectionObserver(k,{...S,root:i.ownerDocument})}catch{n=new IntersectionObserver(k,S)}n.observe(e)}return o(!0),s}function _M(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Q5(e),d=i||s?[...c?gh(c):[],...gh(t)]:[];d.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const h=c&&a?SM(c,n):null;let m=-1,f=null;o&&(f=new ResizeObserver(y=>{let[S]=y;S&&S.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var _;(_=f)==null||_.observe(t)})),n()}),c&&!l&&f.observe(c),f.observe(t));let x,v=l?xc(e):null;l&&b();function b(){const y=xc(e);v&&(y.x!==v.x||y.y!==v.y||y.width!==v.width||y.height!==v.height)&&n(),v=y,x=requestAnimationFrame(b)}return n(),()=>{var y;d.forEach(S=>{i&&S.removeEventListener("scroll",n),s&&S.removeEventListener("resize",n)}),h==null||h(),(y=f)==null||y.disconnect(),f=null,l&&cancelAnimationFrame(x)}}const NM=nM,kM=rM,AM=JI,jM=sM,CM=eM,k3=QI,EM=iM,LM=(e,t,n)=>{const r=new Map,i={platform:wM,...n},s={...i.platform,_c:r};return ZI(e,t,{...i,platform:s})};var Hm=typeof document<"u"?j.useLayoutEffect:j.useEffect;function B0(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!B0(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const s=i[r];if(!(s==="_owner"&&e.$$typeof)&&!B0(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function hj(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function A3(e,t){const n=hj(e);return Math.round(t*n)/n}function gy(e){const t=j.useRef(e);return Hm(()=>{t.current=e}),t}function PM(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:o}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[d,h]=j.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,f]=j.useState(r);B0(m,r)||f(r);const[x,v]=j.useState(null),[b,y]=j.useState(null),S=j.useCallback(G=>{G!==$.current&&($.current=G,v(G))},[]),_=j.useCallback(G=>{G!==U.current&&(U.current=G,y(G))},[]),k=s||x,O=o||b,$=j.useRef(null),U=j.useRef(null),I=j.useRef(d),R=l!=null,z=gy(l),C=gy(i),L=gy(c),D=j.useCallback(()=>{if(!$.current||!U.current)return;const G={placement:t,strategy:n,middleware:m};C.current&&(G.platform=C.current),LM($.current,U.current,G).then(Q=>{const de={...Q,isPositioned:L.current!==!1};F.current&&!B0(I.current,de)&&(I.current=de,Vh.flushSync(()=>{h(de)}))})},[m,t,n,C,L]);Hm(()=>{c===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,h(G=>({...G,isPositioned:!1})))},[c]);const F=j.useRef(!1);Hm(()=>(F.current=!0,()=>{F.current=!1}),[]),Hm(()=>{if(k&&($.current=k),O&&(U.current=O),k&&O){if(z.current)return z.current(k,O,D);D()}},[k,O,D,z,R]);const te=j.useMemo(()=>({reference:$,floating:U,setReference:S,setFloating:_}),[S,_]),re=j.useMemo(()=>({reference:k,floating:O}),[k,O]),ce=j.useMemo(()=>{const G={position:n,left:0,top:0};if(!re.floating)return G;const Q=A3(re.floating,d.x),de=A3(re.floating,d.y);return a?{...G,transform:"translate("+Q+"px, "+de+"px)",...hj(re.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Q,top:de}},[n,a,re.floating,d.x,d.y]);return j.useMemo(()=>({...d,update:D,refs:te,elements:re,floatingStyles:ce}),[d,D,te,re,ce])}const TM=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?k3({element:r.current,padding:i}).fn(n):{}:r?k3({element:r,padding:i}).fn(n):{}}}},RM=(e,t)=>({...NM(e),options:[e,t]}),OM=(e,t)=>({...kM(e),options:[e,t]}),IM=(e,t)=>({...EM(e),options:[e,t]}),MM=(e,t)=>({...AM(e),options:[e,t]}),FM=(e,t)=>({...jM(e),options:[e,t]}),DM=(e,t)=>({...CM(e),options:[e,t]}),BM=(e,t)=>({...TM(e),options:[e,t]});var zM="Arrow",pj=j.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...s}=e;return u.jsx(yi.svg,{...s,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});pj.displayName=zM;var UM=pj;function VM(e){const[t,n]=j.useState(void 0);return sl(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let o,a;if("borderBoxSize"in s){const l=s.borderBoxSize,c=Array.isArray(l)?l[0]:l;o=c.inlineSize,a=c.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var J5="Popper",[mj,gj]=Lg(J5),[$M,yj]=mj(J5),xj=e=>{const{__scopePopper:t,children:n}=e,[r,i]=j.useState(null);return u.jsx($M,{scope:t,anchor:r,onAnchorChange:i,children:n})};xj.displayName=J5;var vj="PopperAnchor",bj=j.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,s=yj(vj,n),o=j.useRef(null),a=Ps(t,o);return j.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:u.jsx(yi.div,{...i,ref:a})});bj.displayName=vj;var eb="PopperContent",[qM,HM]=mj(eb),wj=j.forwardRef((e,t)=>{var ie,ge,ye,ve,je,Le;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:s="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:h="partial",hideWhenDetached:m=!1,updatePositionStrategy:f="optimized",onPlaced:x,...v}=e,b=yj(eb,n),[y,S]=j.useState(null),_=Ps(t,Te=>S(Te)),[k,O]=j.useState(null),$=VM(k),U=($==null?void 0:$.width)??0,I=($==null?void 0:$.height)??0,R=r+(s!=="center"?"-"+s:""),z=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},C=Array.isArray(c)?c:[c],L=C.length>0,D={padding:z,boundary:C.filter(GM),altBoundary:L},{refs:F,floatingStyles:te,placement:re,isPositioned:ce,middlewareData:G}=PM({strategy:"fixed",placement:R,whileElementsMounted:(...Te)=>_M(...Te,{animationFrame:f==="always"}),elements:{reference:b.anchor},middleware:[RM({mainAxis:i+I,alignmentAxis:o}),l&&OM({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?IM():void 0,...D}),l&&MM({...D}),FM({...D,apply:({elements:Te,rects:Ue,availableWidth:W,availableHeight:we})=>{const{width:nt,height:Fe}=Ue.reference,Ne=Te.floating.style;Ne.setProperty("--radix-popper-available-width",`${W}px`),Ne.setProperty("--radix-popper-available-height",`${we}px`),Ne.setProperty("--radix-popper-anchor-width",`${nt}px`),Ne.setProperty("--radix-popper-anchor-height",`${Fe}px`)}}),k&&BM({element:k,padding:a}),KM({arrowWidth:U,arrowHeight:I}),m&&DM({strategy:"referenceHidden",...D})]}),[Q,de]=Nj(re),ue=il(x);sl(()=>{ce&&(ue==null||ue())},[ce,ue]);const E=(ie=G.arrow)==null?void 0:ie.x,H=(ge=G.arrow)==null?void 0:ge.y,K=((ye=G.arrow)==null?void 0:ye.centerOffset)!==0,[ee,J]=j.useState();return sl(()=>{y&&J(window.getComputedStyle(y).zIndex)},[y]),u.jsx("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...te,transform:ce?te.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[(ve=G.transformOrigin)==null?void 0:ve.x,(je=G.transformOrigin)==null?void 0:je.y].join(" "),...((Le=G.hide)==null?void 0:Le.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(qM,{scope:n,placedSide:Q,onArrowChange:O,arrowX:E,arrowY:H,shouldHideArrow:K,children:u.jsx(yi.div,{"data-side":Q,"data-align":de,...v,ref:_,style:{...v.style,animation:ce?void 0:"none"}})})})});wj.displayName=eb;var Sj="PopperArrow",WM={top:"bottom",right:"left",bottom:"top",left:"r
357ight"},_j=j.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,s=HM(Sj,r),o=WM[s.placedSide];return u.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:u.jsx(UM,{...i,ref:n,style:{...i.style,display:"block"}})})});_j.displayName=Sj;function GM(e){return e!==null}var KM=e=>({name:"transformOrigin",options:e,fn(t){var b,y,S;const{placement:n,rects:r,middlewareData:i}=t,o=((b=i.arrow)==null?void 0:b.centerOffset)!==0,a=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[c,d]=Nj(n),h={start:"0%",center:"50%",end:"100%"}[d],m=(((y=i.arrow)==null?void 0:y.x)??0)+a/2,f=(((S=i.arrow)==null?void 0:S.y)??0)+l/2;let x="",v="";return c==="bottom"?(x=o?h:`${m}px`,v=`${-l}px`):c==="top"?(x=o?h:`${m}px`,v=`${r.floating.height+l}px`):c==="right"?(x=`${-l}px`,v=o?h:`${f}px`):c==="left"&&(x=`${r.floating.width+l}px`,v=o?h:`${f}px`),{data:{x,y:v}}}});function Nj(e){const[t,n="center"]=e.split("-");return[t,n]}var Yee=xj,YM=bj,XM=wj,ZM=_j,[Fg,Xee]=Lg("Tooltip",[gj]),tb=gj(),kj="TooltipProvider",QM=700,j3="tooltip.open",[JM,Aj]=Fg(kj),jj=e=>{const{__scopeTooltip:t,delayDuration:n=QM,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:s}=e,o=j.useRef(!0),a=j.useRef(!1),l=j.useRef(0);return j.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),u.jsx(JM,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:j.useCallback(()=>{window.clearTimeout(l.current),o.current=!1},[]),onClose:j.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:j.useCallback(c=>{a.current=c},[]),disableHoverableContent:i,children:s})};jj.displayName=kj;var Cj="Tooltip",[Zee,Dg]=Fg(Cj),jx="TooltipTrigger",eF=j.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Dg(jx,n),s=Aj(jx,n),o=tb(n),a=j.useRef(null),l=Ps(t,a,i.onTriggerChange),c=j.useRef(!1),d=j.useRef(!1),h=j.useCallback(()=>c.current=!1,[]);return j.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),u.jsx(YM,{asChild:!0,...o,children:u.jsx(yi.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:l,onPointerMove:ar(e.onPointerMove,m=>{m.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(i.onTriggerEnter(),d.current=!0)}),onPointerLeave:ar(e.onPointerLeave,()=>{i.onTriggerLeave(),d.current=!1}),onPointerDown:ar(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:ar(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:ar(e.onBlur,i.onClose),onClick:ar(e.onClick,i.onClose)})})});eF.displayName=jx;var tF="TooltipPortal",[Qee,nF]=Fg(tF,{forceMount:void 0}),rd="TooltipContent",Ej=j.forwardRef((e,t)=>{const n=nF(rd,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...s}=e,o=Dg(rd,e.__scopeTooltip);return u.jsx(D5,{present:r||o.open,children:o.disableHoverableContent?u.jsx(Lj,{side:i,...s,ref:t}):u.jsx(rF,{side:i,...s,ref:t})})}),rF=j.forwardRef((e,t)=>{const n=Dg(rd,e.__scopeTooltip),r=Aj(rd,e.__scopeTooltip),i=j.useRef(null),s=Ps(t,i),[o,a]=j.useState(null),{trigger:l,onClose:c}=n,d=i.current,{onPointerInTransitChange:h}=r,m=j.useCallback(()=>{a(null),h(!1)},[h]),f=j.useCallback((x,v)=>{const b=x.currentTarget,y={x:x.clientX,y:x.clientY},S=lF(y,b.getBoundingClientRect()),_=cF(y,S),k=uF(v.getBoundingClientRect()),O=fF([..._,...k]);a(O),h(!0)},[h]);return j.useEffect(()=>()=>m(),[m]),j.useEffect(()=>{if(l&&d){const x=b=>f(b,d),v=b=>f(b,l);return l.addEventListener("pointerleave",x),d.addEventListener("pointerleave",v),()=>{l.removeEventListener("pointerleave",x),d.removeEventListener("pointerleave",v)}}},[l,d,f,m]),j.useEffect(()=>{if(o){const x=v=>{const b=v.target,y={x:v.clientX,y:v.clientY},S=(l==null?void 0:l.contains(b))||(d==null?void 0:d.contains(b)),_=!dF(y,o);S?m():_&&(m(),c())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[l,d,o,c,m]),u.jsx(Lj,{...e,ref:s})}),[iF,sF]=Fg(Cj,{isInside:!1}),oF=u9("TooltipContent"),Lj=j.forwardRef((e,t)=>
vendor: 5,135 bytes, line 357
357{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:o,...a}=e,l=Dg(rd,n),c=tb(n),{onClose:d}=l;return j.useEffect(()=>(document.addEventListener(j3,d),()=>document.removeEventListener(j3,d)),[d]),j.useEffect(()=>{if(l.trigger){const h=m=>{const f=m.target;f!=null&&f.contains(l.trigger)&&d()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[l.trigger,d]),u.jsx(F5,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:h=>h.preventDefault(),onDismiss:d,children:u.jsxs(XM,{"data-state":l.stateAttribute,...c,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(oF,{children:r}),u.jsx(iF,{scope:n,isInside:!0,children:u.jsx(I9,{id:l.contentId,role:"tooltip",children:i||r})})]})})});Ej.displayName=rd;var Pj="TooltipArrow",aF=j.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=tb(n);return sF(Pj,n).isInside?null:u.jsx(ZM,{...i,...r,ref:t})});aF.displayName=Pj;function lF(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,i,s)){case s:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function cF(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function uF(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function dF(e,t){const{x:n,y:r}=e;let i=!1;for(let s=0,o=t.length-1;s<t.length;o=s++){const a=t[s],l=t[o],c=a.x,d=a.y,h=l.x,m=l.y;d>r!=m>r&&n<(h-c)*(r-d)/(m-d)+c&&(i=!i)}return i}function fF(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),hF(t)}function hF(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const s=t[t.length-1],o=t[t.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const s=n[n.length-1],o=n[n.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var pF=jj,Tj=Ej;const mF=pF,gF=j.forwardRef(({className:e,sideOffset:t=4,...n},r)=>u.jsx(Tj,{ref:r,sideOffset:t,className:kt("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));gF.displayName=Tj.displayName;var Gh=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},vc=typeof window>"u"||"Deno"in globalThis;function oi(){}function yF(e,t){return typeof e=="function"?e(t):e}function Cx(e){return typeof e=="number"&&e>=0&&e!==1/0}function Rj(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Qa(e,t){return typeof e=="function"?e(t):e}function Yi(e,t){return typeof e=="function"?e(t):e}function C3(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==nb(o,t.options))return!1}else if(!xh(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||i&&i!==t.state.fetchStatus||s&&!s(t))}function E3(e,t){const{exact:n,status:r,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(yh(t.options.mutationKey)!==yh(s))return!1}else if(!xh(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function nb(e,t){return((t==null?void 0:t.queryKeyHashFn)||yh)(e)}function yh(e){return JSON.stringify(e,(t,n)=>Lx(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function xh(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>xh(e[n],t[n])):!1}function Oj(e,t){if(e===t)return e;const n=L3(e)&&L3(t);if(n||Lx(e)&&Lx(t)){const r=n?e:Object.keys(e),i=r.length,s=n?t:Object.keys(t),o=s.length,a=n?[]:{},l=new Set(r);let c=0;for(let d=0;d<o;d++){const h=n?d:s[d];
vendor: 33,225 bytes, line 357
357(!n&&l.has(h)||n)&&e[h]===void 0&&t[h]===void 0?(a[h]=void 0,c++):(a[h]=Oj(e[h],t[h]),a[h]===e[h]&&e[h]!==void 0&&c++)}return i===o&&c===i?e:a}return t}function Ex(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function L3(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Lx(e){if(!P3(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!P3(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function P3(e){return Object.prototype.toString.call(e)==="[object Object]"}function xF(e){return new Promise(t=>{setTimeout(t,e)})}function Px(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Oj(e,t):t}function vF(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function bF(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var rb=Symbol();function Ij(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===rb?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function wF(e,t){return typeof e=="function"?e(...t):!!e}var Zl,La,Mu,M6,SF=(M6=class extends Gh{constructor(){super();ut(this,Zl);ut(this,La);ut(this,Mu);ze(this,Mu,t=>{if(!vc&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){ae(this,La)||this.setEventListener(ae(this,Mu))}onUnsubscribe(){var t;this.hasListeners()||((t=ae(this,La))==null||t.call(this),ze(this,La,void 0))}setEventListener(t){var n;ze(this,Mu,t),(n=ae(this,La))==null||n.call(this),ze(this,La,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){ae(this,Zl)!==t&&(ze(this,Zl,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof ae(this,Zl)=="boolean"?ae(this,Zl):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Zl=new WeakMap,La=new WeakMap,Mu=new WeakMap,M6),ib=new SF,Fu,Pa,Du,F6,_F=(F6=class extends Gh{constructor(){super();ut(this,Fu,!0);ut(this,Pa);ut(this,Du);ze(this,Du,t=>{if(!vc&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){ae(this,Pa)||this.setEventListener(ae(this,Du))}onUnsubscribe(){var t;this.hasListeners()||((t=ae(this,Pa))==null||t.call(this),ze(this,Pa,void 0))}setEventListener(t){var n;ze(this,Du,t),(n=ae(this,Pa))==null||n.call(this),ze(this,Pa,t(this.setOnline.bind(this)))}setOnline(t){ae(this,Fu)!==t&&(ze(this,Fu,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return ae(this,Fu)}},Fu=new WeakMap,Pa=new WeakMap,Du=new WeakMap,F6),z0=new _F;function Tx(){let e,t;const n=new Promise((i,s)=>{e=i,t=s});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function NF(e){return Math.min(1e3*2**e,3e4)}function Mj(e){return(e??"online")==="online"?z0.isOnline():!0}var Fj=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function yy(e){return e instanceof Fj}function Dj(e){let t=!1,n=0,r=!1,i;const s=Tx(),o=v=>{var b;r||(m(new Fj(v)),(b=e.abort)==null||b.call(e))},a=()=>{t=!0},l=()=>{t=!1},c=()=>ib.isFocused()&&(e.networkMode==="always"||z0.isOnline())&&e.canRun(),d=()=>Mj(e.networkMode)&&e.canRun(),h=v=>{var b;r||(r=!0,(b=e.onSuccess)==null||b.call(e,v),i==null||i(),s.resolve(v))},m=v=>{var b;r||(r=!0,(b=e.onError)==null||b.call(e,v),i==null||i(),s.reject(v))},f=()=>new Promise(v=>{var b;i=y=>{(r||c())&&v(y)},(b=e.onPause)==null||b.call(e)}).then(()=>{var v;i=void 0,r||(v=e.onContinue)==null||v.call(e)}),x=()=>{if(r)return;let v;const b=n===0?e.initialPromise:void 0;try{v=b??e.fn()}catch(y){v=Promise.reject(y)}Promise.resolve(v).then(h).catch(y=>{var $;if(r)return;const S=e.retry??(vc?0:3),_=e.retryDelay??NF,k=typeof _=="function"?_(n,y):_,O=S===!0||typeof S=="number"&&n<S||typeof S=="function"&&S(n,y);if(t||!O){m(y);return}n++,($=e.onFail)==null||$.call(e,n,y),xF(k).then(()=>c()?void 0:f()).then(()=>{t?m(y):x()})})};return{promise:s,cancel:o,continue:()=>(i==null||i(),s),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?x():f().then(x),s)}}var kF=e=>setTimeout(e,0);function AF(){let e=[],t=0,n=a=>{a()},r=a=>{a()},i=kF;const s=a=>{t?e.push(a):i(()=>{n(a)})},o=()=>{const a=e;e=[],a.length&&i(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||o()}return l},batchCalls:a=>(...l)=>{s(()=>{a(...l)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{i=a}}}var Ar=AF(),Ql,D6,Bj=(D6=class{constructor(){ut(this,Ql)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Cx(this.gcTime)&&ze(this,Ql,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(vc?1/0:5*60*1e3))}clearGcTimeout(){ae(this,Ql)&&(clearTimeout(ae(this,Ql)),ze(this,Ql,void 0))}},Ql=new WeakMap,D6),Bu,Jl,Ki,ec,Br,Rh,tc,Ss,Io,B6,jF=(B6=class extends Bj{constructor(t){super();ut(this,Ss);ut(this,Bu);ut(this,Jl);ut(this,Ki);ut(this,ec);ut(this,Br);ut(this,Rh);ut(this,tc);ze(this,tc,!1),ze(this,Rh,t.defaultOptions),this.setOptions(t.options),this.observers=[],ze(this,ec,t.client),ze(this,Ki,ae(this,ec).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ze(this,Bu,CF(this.options)),this.state=t.state??ae(this,Bu),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=ae(this,Br))==null?void 0:t.promise}setOptions(t){this.options={...ae(this,Rh),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&ae(this,Ki).remove(this)}setData(t,n){const r=Px(this.state.data,t,this.options);return Ot(this,Ss,Io).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Ot(this,Ss,Io).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=ae(this,Br))==null?void 0:r.promise;return(i=ae(this,Br))==null||i.cancel(t),n?n.then(oi).catch(oi):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(ae(this,Bu))}isActive(){return this.observers.some(t=>Yi(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===rb||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Qa(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Rj(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=ae(this,Br))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=ae(this,Br))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),ae(this,Ki).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(ae(this,Br)&&(ae(this,tc)?ae(this,Br).cancel({revert:!0}):ae(this,Br).cancelRetry()),this.scheduleGc()),ae(this,Ki).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ot(this,Ss,Io).call(this,{type:"invalidate"})}fetch(t,n){var c,d,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(ae(this,Br))return ae(this,Br).continueRetry(),ae(this,Br).promise}if(t&&this.setOptions(t),!this.options.queryFn){const m=this.observers.find(f=>f.options.queryFn);m&&this.setOptions(m.options)}const r=new AbortController,i=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(ze(this,tc,!0),r.signal)})},s=()=>{const m=Ij(this.options,n),x=(()=>{const v={client:ae(this,ec),queryKey:this.queryKey,meta:this.meta};return i(v),v})();return ze(this,tc,!1),this.options.persister?this.options.persister(m,x,this):m(x)},a=(()=>{const m={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:ae(this,ec),state:this.state,fetchFn:s};return i(m),m})();(c=this.options.behavior)==null||c.onFetch(a,this),ze(this,Jl,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&Ot(this,Ss,Io).call(this,{type:"fetch",meta:(h=a.fetchOptions)==null?void 0:h.meta});const l=m=>{var f,x,v,b;yy(m)&&m.silent||Ot(this,Ss,Io).call(this,{type:"error",error:m}),yy(m)||((x=(f=ae(this,Ki).config).onError)==null||x.call(f,m,this),(b=(v=ae(this,Ki).config).onSettled)==null||b.call(v,this.state.data,m,this)),this.scheduleGc()};return ze(this,Br,Dj({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:m=>{var f,x,v,b;if(m===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(m)}catch(y){l(y);return}(x=(f=ae(this,Ki).config).onSuccess)==null||x.call(f,m,this),(b=(v=ae(this,Ki).config).onSettled)==null||b.call(v,m,this.state.error,this),this.scheduleGc()},onError:l,onFail:(m,f)=>{Ot(this,Ss,Io).call(this,{type:"failed",failureCount:m,error:f})},onPause:()=>{Ot(this,Ss,Io).call(this,{type:"pause"})},onContinue:()=>{Ot(this,Ss,Io).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),ae(this,Br).start()}},Bu=new WeakMap,Jl=new WeakMap,Ki=new WeakMap,ec=new WeakMap,Br=new WeakMap,Rh=new WeakMap,tc=new WeakMap,Ss=new WeakSet,Io=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...zj(r.data,this.options),fetchMeta:t.meta??null};case"success":return ze(this,Jl,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return yy(i)&&i.revert&&ae(this,Jl)?{...ae(this,Jl),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ar.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),ae(this,Ki).notify({query:this,type:"updated",action:t})})},B6);function zj(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Mj(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function CF(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Js,z6,EF=(z6=class extends Gh{constructor(t={}){super();ut(this,Js);this.config=t,ze(this,Js,new Map)}build(t,n,r){const i=n.queryKey,s=n.queryHash??nb(i,n);let o=this.get(s);return o||(o=new jF({client:t,queryKey:i,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){ae(this,Js).has(t.queryHash)||(ae(this,Js).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=ae(this,Js).get(t.queryHash);n&&(t.destroy(),n===t&&ae(this,Js).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ar.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return ae(this,Js).get(t)}getAll(){return[...ae(this,Js).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>C3(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>C3(t,r)):n}notify(t){Ar.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ar.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ar.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Js=new WeakMap,z6),eo,Gr,nc,to,_a,U6,LF=(U6=class extends Bj{constructor(t){super();ut(this,to);ut(this,eo);ut(this,Gr);ut(this,nc);this.mutationId=t.mutationId,ze(this,Gr,t.mutationCache),ze(this,eo,[]),this.state=t.state||PF(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){ae(this,eo).includes(t)||(ae(this,eo).push(t),this.clearGcTimeout(),ae(this,Gr).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ze(this,eo,ae(this,eo).filter(n=>n!==t)),this.scheduleGc(),ae(this,Gr).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){ae(this,eo).length||(this.state.status==="pending"?this.scheduleGc():ae(this,Gr).remove(this))}continue(){var t;return((t=ae(this,nc))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,o,a,l,c,d,h,m,f,x,v,b,y,S,_,k,O,$,U,I;const n=()=>{Ot(this,to,_a).call(this,{type:"continue"})};ze(this,nc,Dj({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(R,z)=>{Ot(this,to,_a).call(this,{type:"failed",failureCount:R,error:z})},onPause:()=>{Ot(this,to,_a).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>ae(this,Gr).canRun(this)}));const r=this.state.status==="pending",i=!ae(this,nc).canStart();try{if(r)n();else{Ot(this,to,_a).call(this,{type:"pending",variables:t,isPaused:i}),await((o=(s=ae(this,Gr).config).onMutate)==null?void 0:o.call(s,t,this));const z=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));z!==this.state.context&&Ot(this,to,_a).call(this,{type:"pending",context:z,variables:t,isPaused:i})}const R=await ae(this,nc).start();return await((d=(c=ae(this,Gr).config).onSuccess)==null?void 0:d.call(c,R,t,this.state.context,this)),await((m=(h=this.options).onSuccess)==null?void 0:m.call(h,R,t,this.state.context)),await((x=(f=ae(this,Gr).config).onSettled)==null?void 0:x.call(f,R,null,this.state.variables,this.state.context,this)),await((b=(v=this.options).onSettled)==null?void 0:b.call(v,R,null,t,this.state.context)),Ot(this,to,_a).call(this,{type:"success",data:R}),R}catch(R){try{throw await((S=(y=ae(this,Gr).config).onError)==null?void 0:S.call(y,R,t,this.state.context,this)),await((k=(_=this.options).onError)==null?void 0:k.call(_,R,t,this.state.context)),await(($=(O=ae(this,Gr).config).onSettled)==null?void 0:$.call(O,void 0,R,this.state.variables,this.state.context,this)),await((I=(U=this.options).onSettled)==null?void 0:I.call(U,void 0,R,t,this.state.context)),R}finally{Ot(this,to,_a).call(this,{type:"error",error:R})}}finally{ae(this,Gr).runNext(this)}}},eo=new WeakMap,Gr=new WeakMap,nc=new WeakMap,to=new WeakSet,_a=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Ar.batch(()=>{ae(this,eo).forEach(r=>{r.onMutationUpdate(t)}),ae(this,Gr).notify({mutation:this,type:"updated",action:t})})},U6);function PF(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var zo,_s,Oh,V6,TF=(V6=class extends Gh{constructor(t={}){super();ut(this,zo);ut(this,_s);ut(this,Oh);this.config=t,ze(this,zo,new Set),ze(this,_s,new Map),ze(this,Oh,0)}build(t,n,r){const i=new LF({mutationCache:this,mutationId:++$p(this,Oh)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){ae(this,zo).add(t);const n=dm(t);if(typeof n=="string"){const r=ae(this,_s).get(n);r?r.push(t):ae(this,_s).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(ae(this,zo).delete(t)){const n=dm(t);if(typeof n=="string"){const r=ae(this,_s).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&ae(this,_s).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=dm(t);if(typeof n=="string"){const r=ae(this,_s).get(n),i=r==null?void 0:r.find(s=>s.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=dm(t);if(typeof n=="string"){const i=(r=ae(this,_s).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ar.batch(()=>{ae(this,zo).forEach(t=>{this.notify({type:"removed",mutation:t})}),ae(this,zo).clear(),ae(this,_s).clear()})}getAll(){return Array.from(ae(this,zo))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>E3(n,r))}findAll(t={}){return this.getAll().filter(n=>E3(t,n))}notify(t){Ar.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ar.batch(()=>Promise.all(t.map(n=>n.continue().catch(oi))))}},zo=new WeakMap,_s=new WeakMap,Oh=new WeakMap,V6);function dm(e){var t;return(t=e.options.scope)==null?void 0:t.id}function T3(e){return{onFetch:(t,n)=>{var d,h,m,f,x;const r=t.options,i=(m=(h=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:h.fetchMore)==null?void 0:m.direction,s=((f=t.state.data)==null?void 0:f.pages)||[],o=((x=t.state.data)==null?void 0:x.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let v=!1;const b=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},y=Ij(t.options,t.fetchOptions),S=async(_,k,O)=>{if(v)return Promise.reject();if(k==null&&_.pages.length)return Promise.resolve(_);const U=(()=>{const C={client:t.client,queryKey:t.queryKey,pageParam:k,direction:O?"backward":"forward",meta:t.options.meta};return b(C),C})(),I=await y(U),{maxPages:R}=t.options,z=O?bF:vF;return{pages:z(_.pages,I,R),pageParams:z(_.pageParams,k,R)}};if(i&&s.length){const _=i==="backward",k=_?RF:R3,O={pages:s,pageParams:o},$=k(r,O);a=await S(O,$,_)}else{const _=e??s.length;do{const k=l===0?o[0]??r.initialPageParam:R3(r,a);if(l>0&&k==null)break;a=await S(a,k),l++}while(l<_)}return a};t.options.persister?t.fetchFn=()=>{var v,b;return(b=(v=t.options).persister)==null?void 0:b.call(v,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function R3(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function RF(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Rn,Ta,Ra,zu,Uu,Oa,Vu,$u,$6,OF=($6=class{constructor(e={}){ut(this,Rn);ut(this,Ta);ut(this,Ra);ut(this,zu);ut(this,Uu);ut(this,Oa);ut(this,Vu);ut(this,$u);ze(this,Rn,e.queryCache||new EF),ze(this,Ta,e.mutationCache||new TF),ze(this,Ra,e.defaultOptions||{}),ze(this,zu,new Map),ze(this,Uu,new Map),ze(this,Oa,0)}mount(){$p(this,Oa)._++,ae(this,Oa)===1&&(ze(this,Vu,ib.subscribe(async e=>{e&&(await this.resumePausedMutations(),ae(this,Rn).onFocus())})),ze(this,$u,z0.subscribe(async e=>{e&&(await this.resumePausedMutations(),ae(this,Rn).onOnline())})))}unmount(){var e,t;$p(this,Oa)._--,ae(this,Oa)===0&&((e=ae(this,Vu))==null||e.call(this),ze(this,Vu,void 0),(t=ae(this,$u))==null||t.call(this),ze(this,$u,void 0))}isFetching(e){return ae(this,Rn).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return ae(this,Ta).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=ae(this,Rn).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=ae(this,Rn).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Qa(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return ae(this,Rn).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=ae(this,Rn).get(r.queryHash),s=i==null?void 0:i.state.data,o=yF(t,s);if(o!==void 0)return ae(this,Rn).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Ar.batch(()=>ae(this,Rn).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=ae(this,Rn).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=ae(this,Rn);Ar.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=ae(this,Rn);return Ar.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Ar.batch(()=>ae(this,Rn).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(oi).catch(oi)}invalidateQueries(e,t={}){return Ar.batch(()=>(ae(this,Rn).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Ar.batch(()=>ae(this,Rn).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let s=i.fetch(void 0,n);return n.throwOnError||(s=s.catch(oi)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(oi)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=ae(this,Rn).build(this,t);return n.isStaleByTime(Qa(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(oi).catch(oi)}fetchInfiniteQuery(e){return e.behavior=T3(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(oi).catch(oi)}ensureInfiniteQueryData(e){return e.behavior=T3(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return z0.isOnline()?ae(this,Ta).resumePausedMutations():Promise.resolve()}getQueryCache(){return ae(this,Rn)}getMutationCache(){return ae(this,Ta)}getDefaultOptions(){return ae(this,Ra)}setDefaultOptions(e){ze(this,Ra,e)}setQueryDefaults(e,t){ae(this,zu).set(yh(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...ae(this,zu).values()],n={};return t.forEach(r=>{xh(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){ae(this,Uu).set(yh(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...ae(this,Uu).values()],n={};return t.forEach(r=>{xh(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...ae(this,Ra).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=nb(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===rb&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...ae(this,Ra).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){ae(this,Rn).clear(),ae(this,Ta).clear()}},Rn=new WeakMap,Ta=new WeakMap,Ra=new WeakMap,zu=new WeakMap,Uu=new WeakMap,Oa=new WeakMap,Vu=new WeakMap,$u=new WeakMap,$6),ii,It,Ih,Kr,rc,qu,Ia,Ma,Mh,Hu,Wu,ic,sc,Fa,Gu,Qt,kf,Rx,Ox,Ix,Mx,Fx,Dx,Bx,Uj,q6,IF=(q6=class extends Gh{constructor(t,n){super();ut(this,Qt);ut(this,ii);ut(this,It);ut(this,Ih);ut(this,Kr);ut(this,rc);ut(this,qu);ut(this,Ia);ut(this,Ma);ut(this,Mh);ut(this,Hu);ut(this,Wu);ut(this,ic);ut(this,sc);ut(this,Fa);ut(this,Gu,new Set);this.options=n,ze(this,ii,t),ze(this,Ma,null),ze(this,Ia,Tx()),this.options.experimental_prefetchInRender||ae(this,Ia).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(ae(this,It).addObserver(this),O3(ae(this,It),this.options)?Ot(this,Qt,kf).call(this):this.updateResult(),Ot(this,Qt,Mx).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return zx(ae(this,It),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return zx(ae(this,It),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ot(this,Qt,Fx).call(this),Ot(this,Qt,Dx).call(this),ae(this,It).removeObserver(this)}setOptions(t){const n=this.options,r=ae(this,It);if(this.options=ae(this,ii).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Yi(this.options.enabled,ae(this,It))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ot(this,Qt,Bx).call(this),ae(this,It).setOptions(this.options),n._defaulted&&!Ex(this.options,n)&&ae(this,ii).getQueryCache().notify({type:"observerOptionsUpdated",query:ae(this,It),observer:this});const i=this.hasListeners();i&&I3(ae(this,It),r,this.options,n)&&Ot(this,Qt,kf).call(this),this.updateResult(),i&&(ae(this,It)!==r||Yi(this.options.enabled,ae(this,It))!==Yi(n.enabled,ae(this,It))||Qa(this.options.staleTime,ae(this,It))!==Qa(n.staleTime,ae(this,It)))&&Ot(this,Qt,Rx).call(this);const s=Ot(this,Qt,Ox).call(this);i&&(ae(this,It)!==r||Yi(this.options.enabled,ae(this,It))!==Yi(n.enabled,ae(this,It))||s!==ae(this,Fa))&&Ot(this,Qt,Ix).call(this,s)}getOptimisticResult(t){const n=ae(this,ii).getQueryCache().build(ae(this,ii),t),r=this.createResult(n,t);return FF(this,r)&&(ze(this,Kr,r),ze(this,qu,this.options),ze(this,rc,ae(this,It).state)),r}getCurrentResult(){return ae(this,Kr)}trackResult(t,n){return new Proxy(t,{get:(r,i)=>(this.trackProp(i),n==null||n(i),Reflect.get(r,i))})}trackProp(t){ae(this,Gu).add(t)}getCurrentQuery(){return ae(this,It)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=ae(this,ii).defaultQueryOptions(t),r=ae(this,ii).getQueryCache().build(ae(this,ii),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Ot(this,Qt,kf).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),ae(this,Kr)))}createResult(t,n){var R;const r=ae(this,It),i=this.options,s=ae(this,Kr),o=ae(this,rc),a=ae(this,qu),c=t!==r?t.state:ae(this,Ih),{state:d}=t;let h={...d},m=!1,f;if(n._optimisticResults){const z=this.hasListeners(),C=!z&&O3(t,n),L=z&&I3(t,r,n,i);(C||L)&&(h={...h,...zj(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:x,errorUpdatedAt:v,status:b}=h;f=h.data;let y=!1;if(n.placeholderData!==void 0&&f===void 0&&b==="pending"){let z;s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(z=s.data,y=!0):z=typeof n.placeholderData=="function"?n.placeholderData((R=ae(this,Wu))==null?void 0:R.state.data,ae(this,Wu)):n.placeholderData,z!==void 0&&(b="success",f=Px(s==null?void 0:s.data,z,n),m=!0)}if(n.select&&f!==void 0&&!y)if(s&&f===(o==null?void 0:o.data)&&n.select===ae(this,Mh))f=ae(this,Hu);else try{ze(this,Mh,n.select),f=n.select(f),f=Px(s==null?void 0:s.data,f,n),ze(this,Hu,f),ze(this,Ma,null)}catch(z){ze(this,Ma,z)}ae(this,Ma)&&(x=ae(this,Ma),f=ae(this,Hu),v=Date.now(),b="error");const S=h.fetchStatus==="fetching",_=b==="pending",k=b==="error",O=_&&S,$=f!==void 0,I={status:b,fetchStatus:h.fetchStatus,isPending:_,isSuccess:b==="success",isError:k,isInitialLoading:O,isLoading:O,data:f,dataUpdatedAt:h.dataUpdatedAt,error:x,errorUpdatedAt:v,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>c.dataUpdateCount||h.errorUpdateCount>c.errorUpdateCount,isFetching:S,isRefetching:S&&!_,isLoadingError:k&&!$,isPaused:h.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:k&&$,isStale:sb(t,n),refetch:this.refetch,promise:ae(this,Ia),isEnabled:Yi(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const z=D=>{I.status==="error"?D.reject(I.error):I.data!==void 0&&D.resolve(I.data)},C=()=>{const D=ze(this,Ia,I.promise=Tx());z(D)},L=ae(this,Ia);switch(L.status){case"pending":t.queryHash===r.queryHash&&z(L);break;case"fulfilled":(I.status==="error"||I.data!==L.value)&&C();break;case"rejected":(I.status!=="error"||I.error!==L.reason)&&C();break}}return I}updateResult(){const t=ae(this,Kr),n=this.createResult(ae(this,It),this.options);if(ze(this,rc,ae(this,It).state),ze(this,qu,this.options),ae(this,rc).data!==void 0&&ze(this,Wu,ae(this,It)),Ex(n,t))return;ze(this,Kr,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,s=typeof i=="function"?i():i;if(s==="all"||!s&&!ae(this,Gu).size)return!0;const o=new Set(s??ae(this,Gu));return this.options.throwOnError&&o.add("error"),Object.keys(ae(this,Kr)).some(a=>{const l=a;return ae(this,Kr)[l]!==t[l]&&o.has(l)})};Ot(this,Qt,Uj).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ot(this,Qt,Mx).call(this)}},ii=new WeakMap,It=new WeakMap,Ih=new WeakMap,Kr=new WeakMap,rc=new WeakMap,qu=new WeakMap,Ia=new WeakMap,Ma=new WeakMap,Mh=new WeakMap,Hu=new WeakMap,Wu=new WeakMap,ic=new WeakMap,sc=new WeakMap,Fa=new WeakMap,Gu=new WeakMap,Qt=new WeakSet,kf=function(t){Ot(this,Qt,Bx).call(this);let n=ae(this,It).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(oi)),n},Rx=function(){Ot(this,Qt,Fx).call(this);const t=Qa(this.options.staleTime,ae(this,It));if(vc||ae(this,Kr).isStale||!Cx(t))return;const r=Rj(ae(this,Kr).dataUpdatedAt,t)+1;ze(this,ic,setTimeout(()=>{ae(this,Kr).isStale||this.updateResult()},r))},Ox=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(ae(this,It)):this.options.refetchInterval)??!1},Ix=function(t){Ot(this,Qt,Dx).call(this),ze(this,Fa,t),!(vc||Yi(this.options.enabled,ae(this,It))===!1||!Cx(ae(this,Fa))||ae(this,Fa)===0)&&ze(this,sc,setInterval(()=>{(this.options.refetchIntervalInBackground||ib.isFocused())&&Ot(this,Qt,kf).call(this)},ae(this,Fa)))},Mx=function(){Ot(this,Qt,Rx).call(this),Ot(this,Qt,Ix).call(this,Ot(this,Qt,Ox).call(this))},Fx=function(){ae(this,ic)&&(clearTimeout(ae(this,ic)),ze(this,ic,void 0))},Dx=function(){ae(this,sc)&&(clearInterval(ae(this,sc)),ze(this,sc,void 0))},Bx=function(){const t=ae(this,ii).getQueryCache().build(ae(this,ii),this.options);if(t===ae(this,It))return;const n=ae(this,It);ze(this,It,t),ze(this,Ih,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Uj=function(t){Ar.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(ae(this,Kr))}),ae(this,ii).getQueryCache().notify({query:ae(this,It),type:"observerResultsUpdated"})})},q6);function MF(e,t){return Yi(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function O3(e,t){return MF(e,t)||e.state.data!==void 0&&zx(e,t,t.refetchOnMount)}function zx(e,t,n){if(Yi(t.enabled,e)!==!1&&Qa(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&sb(e,t)}return!1}function I3(e,t,n,r){return(e!==t||Yi(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&sb(e,n)}function sb(e,t){return Yi(t.enabled,e)!==!1&&e.isStaleByTime(Qa(t.staleTime,e))}function FF(e,t){return!Ex(e.getCurrentResult(),t)}var Vj=j.createContext(void 0),DF=e=>{const t=j.useContext(Vj);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},BF=({client:e,children:t})=>(j.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),u.jsx(Vj.Provider,{value:e,children:t})),$j=j.createContext(!1),zF=()=>j.useContext($j);$j.Provider;function UF(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}
357var VF=j.createContext(UF()),$F=()=>j.useContext(VF),qF=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},HF=e=>{j.useEffect(()=>{e.clearReset()},[e])},WF=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||wF(n,[e.error,r])),GF=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},KF=(e,t)=>e.isLoading&&e.isFetching&&!t,YF=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,M3=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function XF(e,t,n){var h,m,f,x,v;const r=zF(),i=$F(),s=DF(),o=s.defaultQueryOptions(e);(m=(h=s.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||m.call(h,o),o._optimisticResults=r?"isRestoring":"optimistic",GF(o),qF(o,i),HF(i);const a=!s.getQueryCache().get(o.queryHash),[l]=j.useState(()=>new t(s,o)),c=l.getOptimisticResult(o),d=!r&&e.subscribed!==!1;if(j.useSyncExternalStore(j.useCallback(b=>{const y=d?l.subscribe(Ar.batchCalls(b)):oi;return l.updateResult(),y},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),j.useEffect(()=>{l.setOptions(o)},[o,l]),YF(o,c))throw M3(o,l,i);if(WF({result:c,errorResetBoundary:i,throwOnError:o.throwOnError,query:s.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw c.error;if((x=(f=s.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||x.call(f,o,c),o.experimental_prefetchInRender&&!vc&&KF(c,r)){const b=a?M3(o,l,i):(v=s.getQueryCache().get(o.queryHash))==null?void 0:v.promise;b==null||b.catch(oi).finally(()=>{l.updateResult()})}return o.notifyOnChangeProps?c:l.trackResult(c)}function Bg(e,t){return XF(e,IF)}/** 358 * @remix-run/router v1.23.0 359 * 360 * Copyright (c) Remix Software Inc. 361 * 362 * This source code is licensed under the MIT license found in the 363 * LICENSE.md file in the root directory of this source tree. 364 * 365 * @license MIT 366 */function vh(){return vh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vh.apply(this,arguments)}var za;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(za||(za={}));const F3="popstate";function ZF(e){e===void 0&&(e={});function t(r,i){let{pathname:s,search:o,hash:a}=r.location;return Ux("",{pathname:s,search:o,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:U0(i)}return JF(t,n,null,e)}function jn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function qj(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function QF(){return Math.random().toString(36).substr(2,8)}function D3(e,t){return{usr:e.state,key:e.key,idx:t}}function Ux(e,t,n,r){return n===void 0&&(n=null),vh({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?bd(t):t,{state:n,key:t&&t.key||r||QF()})}function U0(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function bd(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function JF(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,o=i.history,a=za.Pop,l=null,c=d();c==null&&(c=0,o.replaceState(vh({},o.state,{idx:c}),""));function d(){return(o.state||{idx:null}).idx}function h(){a=za.Pop;let b=d(),y=b==null?null:b-c;c=b,l&&l({action:a,location:v.location,delta:y})}function m(b,y){a=za.Push;let S=Ux(v.location,b,y);c=d()+1;let _=D3(S,c),k=v.createHref(S);try{o.pushState(_,"",k)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;i.location.assign(k)}s&&l&&l({action:a,location:v.location,delta:1})}function f(b,y){a=za.Replace;let S=Ux(v.location,b,y);c=d();let _=D3(S,c),k=v.createHref(S);o.replaceState(_,"",k),s&&l&&l({action:a,location:v.location,delta:0})}function x(b){let y=i.location.origin!=="null"?i.location.origin:i.location.href,S=typeof b=="string"?b:U0(b);return S=S.replace(/ $/,"%20"),jn(y,"No window.location.(origin|href) available to create URL for href: "+S),new URL(S,y)}let v={get action(){return a},get location(){return e(i,o)},listen(b){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(F3,h),l=b,()=>{i.removeEventListener(F3,h),l=null}},createHref(b){return t(i,b)},createURL:x,encodeLocation(b){let y=x(b);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:m,replace:f,go(b){return o.go(b)}};return v}var B3;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(B3||(B3={}));function eD(e,t,n){return n===void 0&&(n="/"),tD(e,t,n,!1)}function tD(e,t,n,r){let i=typeof t=="string"?bd(t):t,s=id(i.pathname||"/",n);if(s==null)return null;let o=Hj(e);nD(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let c=hD(s);a=dD(o[l],c,r)}return a}function Hj(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(s,o,a)=>{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};l.relativePath.startsWith("/")&&(jn(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not val
366id. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=Ja([r,l.relativePath]),d=n.concat(l);s.children&&s.children.length>0&&(jn(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Hj(s.children,t,d,c)),!(s.path==null&&!s.index)&&t.push({path:c,score:cD(c,s.index),routesMeta:d})};return e.forEach((s,o)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))i(s,o);else for(let l of Wj(s.path))i(s,o,l)}),t}function Wj(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let o=Wj(r.join("/")),a=[];return a.push(...o.map(l=>l===""?s:[s,l].join("/"))),i&&a.push(...o),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function nD(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:uD(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const rD=/^:[\w-]+$/,iD=3,sD=2,oD=1,aD=10,lD=-2,z3=e=>e==="*";function cD(e,t){let n=e.split("/"),r=n.length;return n.some(z3)&&(r+=lD),t&&(r+=sD),n.filter(i=>!z3(i)).reduce((i,s)=>i+(rD.test(s)?iD:s===""?oD:aD),r)}function uD(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function dD(e,t,n){let{routesMeta:r}=e,i={},s="/",o=[];for(let a=0;a<r.length;++a){let l=r[a],c=a===r.length-1,d=s==="/"?t:t.slice(s.length)||"/",h=V0({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},d),m=l.route;if(!h&&c&&n&&!r[r.length-1].route.index&&(h=V0({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!h)return null;
vendor: 8,923 bytes, lines 366-375
366Object.assign(i,h.params),o.push({params:i,pathname:Ja([s,h.pathname]),pathnameBase:yD(Ja([s,h.pathnameBase])),route:m}),h.pathnameBase!=="/"&&(s=Ja([s,h.pathnameBase]))}return o}function V0(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=fD(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let s=i[0],o=s.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce((c,d,h)=>{let{paramName:m,isOptional:f}=d;if(m==="*"){let v=a[h]||"";o=s.slice(0,s.length-v.length).replace(/(.)\/+$/,"$1")}const x=a[h];return f&&!x?c[m]=void 0:c[m]=(x||"").replace(/%2F/g,"/"),c},{}),pathname:s,pathnameBase:o,pattern:e}}function fD(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),qj(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function hD(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return qj(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function id(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function pD(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?bd(e):e;return{pathname:n?n.startsWith("/")?n:mD(n,t):t,search:xD(r),hash:vD(i)}}function mD(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function xy(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function gD(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ob(e,t){let n=gD(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function ab(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=bd(e):(i=vh({},e),jn(!i.pathname||!i.pathname.includes("?"),xy("?","pathname","search",i)),jn(!i.pathname||!i.pathname.includes("#"),xy("#","pathname","hash",i)),jn(!i.search||!i.search.includes("#"),xy("#","search","hash",i)));let s=e===""||i.pathname==="",o=s?"/":i.pathname,a;if(o==null)a=n;else{let h=t.length-1;if(!r&&o.startsWith("..")){let m=o.split("/");for(;m[0]==="..";)m.shift(),h-=1;i.pathname=m.join("/")}a=h>=0?t[h]:"/"}let l=pD(i,a),c=o&&o!=="/"&&o.endsWith("/"),d=(s||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}const Ja=e=>e.join("/").replace(/\/\/+/g,"/"),yD=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),xD=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,vD=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function bD(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Gj=["post","put","patch","delete"];new Set(Gj);const wD=["get",...Gj];new Set(wD);/** 367 * React Router v6.30.1 368 * 369 * Copyright (c) Remix Software Inc. 370 * 371 * This source code is licensed under the MIT license found in the 372 * LICENSE.md file in the root directory of this source tree. 373 * 374 * @license MIT 375 */function bh(){return bh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bh.apply(this,arguments)}const zg=j.createContext(null),Kj=j.createContext(null),Qo=j.createContext(null),Ug=j.createContext(null),mo=j.createContext({outlet:null,matches:[],isDataRoute:!1}),Yj=j.createContext(null);function SD(e,t){let{relative:n}=t===void 0?{}:t;wd()||jn(!1);let{basename:r,navigator:i}=j.useContext(Qo),{hash:s,pathname:o,search:a}=$g(e,{relative:n}),l=o;return r!=="/"&&(l=o==="/"?r:Ja([r,o])),i.createHref({pathname:l,search:a,hash:s})}function wd(){return j.useContext(Ug)!=null}function Ms(){return wd()||jn(!1),j.useContext(Ug).location}function Xj(e){j.useContext(Qo).static||j.useLayoutEffect(e)}function Vg(){let{isDataRoute:e}=j.useContext(mo);return e?FD():_D()}function _D(){wd()||jn(!1);let e=j.useContext(zg),{basename:t,future:n,navigator:r}=j.useContext(Qo),{matches:i}=j.useContext(mo),{pathname:s}=Ms(),o=JSON.stringify(ob(i,n.v7_relativeSplatPath)),a=j.useRef(!1);return Xj(()=>{a.current=!0}),j.useCallback(function(c,d){if(d===void 0&&(d={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let h=ab(c,JSON.parse(o),s,d.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Ja([t,h.pathname])),(d.replace?r.replace:r.push)(h,d.state,d)},[t,r,o,s,e])}const ND=j.createContext(null);function kD(e){let t=j.useContext(mo).outlet;return t&&j.createElement(ND.Provider,{value:e},t)}function lb(){let{matches:e}=j.useContext(mo),t=e[e.length-1];return t?t.params:{}}function $g(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=j.useContext(Qo),{matches:i}=j.useContext(mo),{pathname:s}=Ms(),o=JSON.stringify(ob(i,r.v7_relativeSplatPath));return j.useMemo(()=>ab(e,JSON.parse(o),s,n==="path"),[e,o,s,n])}function AD(e,t){return jD(e,t)}function jD(e,t,n,r){wd()||jn(!1);let{navigator:i}=j.useContext(Qo),{matches:s}=j.useContext(mo),o=s[s.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let c=Ms(),d;if(t){var h;let b=typeof t=="string"?bd(t):t;l==="/"||(h=b.pathname)!=null&&h.startsWith(l)||jn(!1),d=b}else d=c;let m=d.pathname||"/",f=m;if(l!=="/"){let b=l.replace(/^\//,"").split("/");f="/"+m.replace(/^\//,"").split("/").slice(b.length).join("/")}let x=eD(e,{pathname:f}),v=TD(x&&x.map(b=>Object.assign({},b,{params:Object.assign({},a,b.params),pathname:Ja([l,i.encodeLocation?i.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?l:Ja([l,i.encodeLocation?i.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),s,n,r);return t&&v?j.createElement(Ug.Provider,{value:{location:bh({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:za.Pop}},v):v}function CD(){let e=MD(),t=bD(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return j.createElement(j.Fragment,null,j.createElement("h2",null,"Unexpected Application Error!"),j.createElement("h3",{style:{fontStyle:"italic"}},t),n?j.createElement("pre",{style:i},n):null,null)}const ED=j.createElement(CD,null);class LD extends j.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?j.createElement(mo.Provider,{value:this.props.routeContext},j.createElement(Yj.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function PD(e){let{routeContext:t,match:n,children:r}=e,i=j.useContext(zg);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),j.createElement(mo.Provider,{value:t},r)}function TD(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let d=o.findIndex(h=>h.route.id&&(a==null?void 0:a[h.route.id])!==void 0);d>=0||jn(!1),o=o.slice(0,Math.min(o.length,d+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<o.length;d++){let h=o[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(c=d),h.route.id){let{loaderData:m,errors:f}=n,x=h.route.loader&&m[h.route.id]===void 0&&(!f||f[h.route.id]===void 0);
375if(h.route.lazy||x){l=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((d,h,m)=>{let f,x=!1,v=null,b=null;n&&(f=a&&h.route.id?a[h.route.id]:void 0,v=h.route.errorElement||ED,l&&(c<0&&m===0?(x=!0,b=null):c===m&&(x=!0,b=h.route.hydrateFallbackElement||null)));let y=t.concat(o.slice(0,m+1)),S=()=>{let _;return f?_=v:x?_=b:h.route.Component?_=j.createElement(h.route.Component,null):h.route.element?_=h.route.element:_=d,j.createElement(PD,{match:h,routeContext:{outlet:d,matches:y,isDataRoute:n!=null},children:_})};return n&&(h.route.ErrorBoundary||h.route.errorElement||m===0)?j.createElement(LD,{location:n.location,revalidation:n.revalidation,component:v,error:f,children:S(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):S()},null)}var Zj=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Zj||{}),$0=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}($0||{});function RD(e){let t=j.useContext(zg);return t||jn(!1),t}function OD(e){let t=j.useContext(Kj);return t||jn(!1),t}function ID(e){let t=j.useContext(mo);return t||jn(!1),t}function Qj(e){let t=ID(),n=t.matches[t.matches.length-1];return n.route.id||jn(!1),n.route.id}function MD(){var e;let t=j.useContext(Yj),n=OD($0.UseRouteError),r=Qj($0.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function FD(){let{router:e}=RD(Zj.UseNavigateStable),t=Qj($0.UseNavigateStable),n=j.useRef(!1);return Xj(()=>{n.current=!0}),j.useCallback(function(i,s){s===void 0&&(s={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,bh({fromRouteId:t},s)))},[e,t])}function DD(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function BD(e){let{to:t,replace:n,state:r,relative:i}=e;wd()||jn(!1);let{future:s,static:o}=j.useContext(Qo),{matches:a}=j.useContext(mo),{pathname:l}=Ms(),c=Vg(),d=ab(t,ob(a,s.v7_relativeSplatPath),l,i==="path"),h=JSON.stringify(d);return j.useEffect(()=>c(JSON.parse(h),{replace:n,state:r,relative:i}),[c,h,i,n,r]),null}function Jee(e){return kD(e.context)}function Ht(e){jn(!1)}function zD(e){let{basename:t="/",children:n=null,location:r,navigationType:i=za.Pop,navigator:s,static:o=!1,future:a}=e;wd()&&jn(!1);let l=t.replace(/^\/*/,"/"),c=j.useMemo(()=>({basename:l,navigator:s,static:o,future:bh({v7_relativeSplatPath:!1},a)}),[l,a,s,o]);typeof r=="string"&&(r=bd(r));let{pathname:d="/",search:h="",hash:m="",state:f=null,key:x="default"}=r,v=j.useMemo(()=>{let b=id(d,l);return b==null?null:{location:{pathname:b,search:h,hash:m,state:f,key:x},navigationType:i}},[l,d,h,m,f,x,i]);return v==null?null:j.createElement(Qo.Provider,{value:c},j.createElement(Ug.Provider,{children:n,value:v}))}function UD(e){let{children:t,location:n}=e;return AD(Vx(t),n)}new Promise(()=>{});function Vx(e,t){t===void 0&&(t=[]);let n=[];return j.Children.forEach(e,(r,i)=>{if(!j.isValidElement(r))return;let s=[...t,i];if(r.type===j.Fragment){n.push.apply(n,Vx(r.props.children,s));return}r.type!==Ht&&jn(!1),!r.props.index||!r.props.children||jn(!1);let o={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=Vx(r.props.children,s)),n.push(o)}),n}/** 376 * React Router DOM v6.30.1 377 * 378 * Copyright (c) Remix Software Inc. 379 * 380 * This source code is licensed under the MIT license found in the 381 * LICENSE.md file in the root directory of this source tree. 382 * 383 * @license MIT 384 */function q0(){return q0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},q0.apply(this,arguments)}function Jj(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function VD(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function $D(e,t){return e.button===0&&(!t||t==="_self")&&!VD(e)}function $x(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function qD(e,t){let n=$x(e);return t&&t.forEach((r,i)=>
384{n.has(i)||t.getAll(i).forEach(s=>{n.append(i,s)})}),n}const HD=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],WD=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],GD="6";try{window.__reactRouterVersion=GD}catch{}const KD=j.createContext({isTransitioning:!1}),YD="startTransition",U3=nk[YD];function XD(e){let{basename:t,children:n,future:r,window:i}=e,s=j.useRef();s.current==null&&(s.current=ZF({window:i,v5Compat:!0}));let o=s.current,[a,l]=j.useState({action:o.action,location:o.location}),{v7_startTransition:c}=r||{},d=j.useCallback(h=>{c&&U3?U3(()=>l(h)):l(h)},[l,c]);return j.useLayoutEffect(()=>o.listen(d),[o,d]),j.useEffect(()=>DD(r),[r]),j.createElement(zD,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}const ZD=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",QD=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cr=j.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:s,replace:o,state:a,target:l,to:c,preventScrollReset:d,viewTransition:h}=t,m=Jj(t,HD),{basename:f}=j.useContext(Qo),x,v=!1;if(typeof c=="string"&&QD.test(c)&&(x=c,ZD))try{let _=new URL(window.location.href),k=c.startsWith("//")?new URL(_.protocol+c):new URL(c),O=id(k.pathname,f);k.origin===_.origin&&O!=null?c=O+k.search+k.hash:v=!0}catch{}let b=SD(c,{relative:i}),y=eB(c,{replace:o,state:a,target:l,preventScrollReset:d,relative:i,viewTransition:h});function S(_){r&&r(_),_.defaultPrevented||y(_)}return j.createElement("a",q0({},m,{href:x||b,onClick:v||s?r:S,ref:n,target:l}))}),ete=j.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:s="",end:o=!1,style:a,to:l,viewTransition:c,children:d}=t,h=Jj(t,WD),m=$g(l,{relative:h.relative}),f=Ms(),x=j.useContext(Kj),{navigator:v,basename:b}=j.useContext(Qo),y=x!=null&&tB(m)&&c===!0,S=v.encodeLocation?v.encodeLocation(m).pathname:m.pathname,_=f.pathname,k=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;i||(_=_.toLowerCase(),k=k?k.toLowerCase():null,S=S.toLowerCase()),k&&b&&(k=id(k,b)||k);const O=S!=="/"&&S.endsWith("/")?S.length-1:S.length;let $=_===S||!o&&_.startsWith(S)&&_.charAt(O)==="/",U=k!=null&&(k===S||!o&&k.startsWith(S)&&k.charAt(S.length)==="/"),I={isActive:$,isPending:U,isTransitioning:y},R=$?r:void 0,z;typeof s=="function"?z=s(I):z=[s,$?"active":null,U?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let C=typeof a=="function"?a(I):a;return j.createElement(cr,q0({},h,{"aria-current":R,className:z,ref:n,style:C,to:l,viewTransition:c}),typeof d=="function"?d(I):d)});var qx;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(qx||(qx={}));var V3;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(V3||(V3={}));function JD(e){let t=j.useContext(zg);return t||jn(!1),t}function eB(e,t){let{target:n,replace:r,state:i,preventScrollReset:s,relative:o,viewTransition:a}=t===void 0?{}:t,l=Vg(),c=Ms(),d=$g(e,{relative:o});return j.useCallback(h=>{if($D(h,n)){h.preventDefault();let m=r!==void 0?r:U0(c)===U0(d);l(e,{replace:m,state:i,preventScrollReset:s,relative:o,viewTransition:a})}},[c,l,d,r,i,n,e,s,o,a])}function eC(e){let t=j.useRef($x(e)),n=j.useRef(!1),r=Ms(),i=j.useMemo(()=>qD(r.search,n.current?null:t.current),[r.search]),s=Vg(),o=j.useCallback((a,l)=>{const c=$x(typeof a=="function"?a(i):a);n.current=!0,s("?"+c,l)},[s,i]);return[i,o]}function tB(e,t){t===void 0&&(t={});let n=j.useContext(KD);n==null&&jn(!1);let{basename:r}=JD(qx.useViewTransitionState),i=$g(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=id(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=id(n.nextLocation.pathname,r)||n.nextLocation.pathname;return V0(i.pathname,o)!=null||V0(i.pathname,s)!=null}const nB={theme:"system",setTheme:()=>null},tC=j.createContext(nB);function rB({children:e,defaultTheme:t="system",storageKey:n="vite-ui-theme",...r}){const[i,s]=j.useState(()=>localStorage.getItem(n)||t);j.useEffect(()=>{const a=window.document.documentElement;if(a.classList.remove("light","dark"),i==="system"){const l=window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
384k":"light";a.classList.add(l);return}a.classList.add(i)},[i]);const o={theme:i,setTheme:a=>{localStorage.setItem(n,a),s(a)}};return u.jsx(tC.Provider,{...r,value:o,children:e})}const nC=()=>{const e=j.useContext(tC);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e};function rC(e,t){return function(){return e.apply(t,arguments)}}const{toString:iB}=Object.prototype,{getPrototypeOf:sd}=Object,{iterator:Kh,toStringTag:iC}=Symbol,H0=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),wh=(e,t)=>{let n=e;const r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),H0(n,t))return!0;n=sd(n)}return!1},sB=(e,t)=>e!=null&&wh(e,t)?e[t]:void 0,cb=(e=>t=>{const n=iB.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),as=e=>(e=e.toLowerCase(),t=>cb(t)===e),qg=e=>t=>typeof t===e,{isArray:bc}=Array,wc=qg("undefined");function Sd(e){return e!==null&&!wc(e)&&e.constructor!==null&&!wc(e.constructor)&&hi(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const sC=as("ArrayBuffer");function oB(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&sC(e.buffer),t}const aB=qg("string"),hi=qg("function"),oC=qg("number"),_d=e=>e!==null&&typeof e=="object",lB=e=>e===!0||e===!1,Wm=e=>{if(!_d(e))return!1;const t=sd(e);return(t===null||t===Object.prototype||sd(t)===null)&&!wh(e,iC)&&!wh(e,Kh)},cB=e=>{if(!_d(e)||Sd(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},uB=as("Date"),dB=as("File"),fB=e=>!!(e&&typeof e.uri<"u"),hB=e=>e&&typeof e.getParts<"u",pB=as("Blob"),mB=as("FileList"),gB=as("Set"),yB=e=>_d(e)&&hi(e.pipe);function xB(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const $3=xB(),q3=typeof $3.FormData<"u"?$3.FormData:void 0,vB=e=>{if(!e)return!1;if(q3&&e instanceof q3)return!0;const t=sd(e);if(!t||t===Object.prototype||!hi(e.append))return!1;const n=cb(e);return n==="formdata"||n==="object"&&hi(e.toString)&&e.toString()==="[object FormData]"},bB=as("URLSearchParams"),[wB,SB,_B,NB]=["ReadableStream","Request","Response","Headers"].map(as),kB=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Yh(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),bc(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(Sd(e))return;const s=n?Object.getOwnPropertyNames(e):Object.keys(e),o=s.length;let a;for(r=0;r<o;r++)a=s[r],t.call(null,e[a],a,e)}}function aC(e,t){if(Sd(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const ql=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,lC=e=>!wc(e)&&e!==ql;function Hx(...e){const{caseless:t,skipUndefined:n}=lC(this)&&this||{},r={},i=(s,o)=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const a=t&&typeof o=="string"&&aC(r,o)||o,l=H0(r,a)?r[a]:void 0;Wm(l)&&Wm(s)?r[a]=Hx(l,s):Wm(s)?r[a]=Hx({},s):bc(s)?r[a]=s.slice():(!n||!wc(s))&&(r[a]=s)};for(let s=0,o=e.length;s<o;s++){const a=e[s];if(!a||Sd(a)||(Yh(a,i),typeof a!="object"||bc(a)))continue;const l=Object.getOwnPropertySymbols(a);for(let c=0;c<l.length;c++){const d=l[c];FB.call(a,d)&&i(a[d],d)}}return r}const AB=(e,t,n,{allOwnKeys:r}={})=>(Yh(t,(i,s)=>{n&&hi(i)?Object.defineProperty(e,s,{__proto__:null,value:rC(i,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,s,{__proto__:null,value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),jB=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),CB=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},EB=(e,t,n,r)=>{let i,s,o;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)o=i[s],(!r||r(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&sd(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},LB=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},PB=e=>{if(!e)return null;if(bc(e))return e;let t=e.length;if(!oC(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},TB=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&sd(Uint8Array)),RB=(e,t)=>{const r=(e&&e[Kh]).call(e);let i;for(;
384(i=r.next())&&!i.done;){const s=i.value;t.call(e,s[0],s[1])}},OB=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},IB=as("HTMLFormElement"),MB=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),{propertyIsEnumerable:FB}=Object.prototype,DB=as("RegExp"),cC=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Yh(n,(i,s)=>{let o;(o=t(i,s,e))!==!1&&(r[s]=o||i)}),Object.defineProperties(e,r)},BB=e=>{cC(e,(t,n)=>{if(hi(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(hi(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},zB=(e,t)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return bc(e)?r(e):r(String(e).split(t)),n},UB=()=>{},VB=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function $B(e){return!!(e&&hi(e.append)&&e[iC]==="FormData"&&e[Kh])}const qB=e=>{const t=new WeakSet,n=r=>{if(_d(r)){if(t.has(r))return;if(Sd(r))return r;if(!("toJSON"in r)){t.add(r);let i;if(gB(r)){i=[];for(const s of r){const o=n(s);!wc(o)&&i.push(o)}}else i=bc(r)?[]:{},Yh(r,(s,o)=>{const a=n(s);!wc(a)&&(i[o]=a)});return t.delete(r),i}}return r};return n(e)},HB=as("AsyncFunction"),WB=e=>e&&(_d(e)||hi(e))&&hi(e.then)&&hi(e.catch),uC=((e,t)=>e?setImmediate:t?((n,r)=>(ql.addEventListener("message",({source:i,data:s})=>{i===ql&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),ql.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",hi(ql.postMessage)),GB=typeof queueMicrotask<"u"?queueMicrotask.bind(ql):typeof process<"u"&&process.nextTick||uC,dC=e=>e!=null&&hi(e[Kh]),KB=e=>e!=null&&wh(e,Kh)&&dC(e),oe={isArray:bc,isArrayBuffer:sC,isBuffer:Sd,isFormData:vB,isArrayBufferView:oB,isString:aB,isNumber:oC,isBoolean:lB,isObject:_d,isPlainObject:Wm,isEmptyObject:cB,isReadableStream:wB,isRequest:SB,isResponse:_B,isHeaders:NB,isUndefined:wc,isDate:uB,isFile:dB,isReactNativeBlob:fB,isReactNative:hB,isBlob:pB,isRegExp:DB,isFunction:hi,isStream:yB,isURLSearchParams:bB,isTypedArray:TB,isFileList:mB,forEach:Yh,merge:Hx,extend:AB,trim:kB,stripBOM:jB,inherits:CB,toFlatObject:EB,kindOf:cb,kindOfTest:as,endsWith:LB,toArray:PB,forEachEntry:RB,matchAll:OB,isHTMLForm:IB,hasOwnProperty:H0,hasOwnProp:H0,hasOwnInPrototypeChain:wh,getSafeProp:sB,reduceDescriptors:cC,freezeMethods:BB,toObjectSet:zB,toCamelCase:MB,noop:UB,toFiniteNumber:VB,findKey:aC,global:ql,isContextDefined:lC,isSpecCompliantForm:$B,toJSONObject:qB,isAsyncFn:HB,isThenable:WB,setImmediate:uC,asap:GB,isIterable:dC,isSafeIterable:KB},YB=oe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),XB=e=>{const t={};let n,r,i;return e&&e.split(` 385`).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim();const a=oe.hasOwnProp(t,n);!n||a&&oe.hasOwnProp(YB,n)||(n==="set-cookie"?a?t[n].push(r):t[n]=[r]:t[n]=a?t[n]+", "+r:r)}),t};function ZB(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const QB=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),JB=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function ub(e,t){return oe.isArray(e)?e.map(n=>ub(n,t)):ZB(String(e).replace(t,""))}const ez=e=>ub(e,QB),tz=e=>ub(e,JB);function fC(e){const t=Object.create(null);return oe.forEach(e.toJSON(),(n,r)=>{t[r]=tz(n)}),t}const H3=Symbol("internals");function mf(e){return e&&String(e).trim().toLowerCase()}function Gm(e){return e===!1||e==null?e:oe.isArray(e)?e.map(Gm):ez(String(e))}function nz(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const rz=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function vy(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}function iz(e){const t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let n="";for(let r=1;r<t;r++){const i=e.charCodeAt(r);if(i===34||i===92&&(r+=1,r>=t))return e;n+=e[r]}return n}function sz(e){const t=Object.create(null),n=String(e);let r=0,i=!1,s=!1;function o(a){const l=vy(n.slice(r,a)),c=l.indexOf("=");if(c<1)return;const d=vy(l.slice(0,c));if(!rz.test(d))return;const h=d.toLowerCase();if(h==="__proto__"||h==="constructor"||h==="prototype")return;const m=vy(l.slice(c+1));t[h]=iz(m)}for(let a=0;a<n.length;a++){const l=n.charCodeAt(a);i?s?s=!1:l===92?s=!0:l===34&&(i=!1):l===34?i=!0:(l===44||l===59)&&(o(a),r=a+1)}return o(n.length),t}const oz=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function by(e,t,n,r,i){if(oe.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!oe.isString(t)){if(oe.isString(r))return t.indexOf(r)!==-1;if(oe.isRegExp(r))return r.test(t)}}function az(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function lz(e,t){const n=oe.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(i,s,o){return this[r].call(this,t,i,s,o)},configurable:!0})})}
vendor: 11,113 bytes, lines 385-386
385class Ur{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function s(a,l,c){const d=mf(l);if(!d)return;const h=oe.findKey(i,d);(!h||i[h]===void 0||c===!0||c===void 0&&i[h]!==!1)&&(i[h||l]=Gm(a))}const o=(a,l)=>oe.forEach(a,(c,d)=>s(c,d,l));if(oe.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(oe.isString(t)&&(t=t.trim())&&!oz(t))o(XB(t),n);else if(oe.isObject(t)&&oe.isSafeIterable(t)){let a=Object.create(null),l,c;for(const d of t){if(!oe.isArray(d))throw new TypeError("Object iterator must return a key-value pair");c=d[0],oe.hasOwnProp(a,c)?(l=a[c],a[c]=oe.isArray(l)?[...l,d[1]]:[l,d[1]]):a[c]=d[1]}o(a,n)}else t!=null&&s(n,t,r);return this}get(t,n){if(t=mf(t),t){const r=oe.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return nz(i);if(oe.isFunction(n))return n.call(this,i,r);if(oe.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=mf(t),t){const r=oe.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||by(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function s(o){if(o=mf(o),o){const a=oe.findKey(r,o);a&&(!n||by(r,r[a],a,n))&&(delete r[a],i=!0)}}return oe.isArray(t)?t.forEach(s):s(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!t||by(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const n=this,r={};return oe.forEach(this,(i,s)=>{const o=oe.findKey(r,s);if(o){n[o]=Gm(i),delete n[s];return}const a=t?az(s):String(s).trim();a!==s&&delete n[s],n[a]=Gm(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return oe.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&oe.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` 386`)}getSetCookie(){const t=this.get("set-cookie");return oe.isArray(t)?t:t==null||t===!1?[]:[t]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static parseParameters(t){return sz(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[H3]=this[H3]={accessors:{}}).accessors,i=this.prototype;function s(o){const a=mf(o);r[a]||(lz(i,o),r[a]=!0)}return oe.isArray(t)?t.forEach(s):s(t),this}}Ur.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);oe.reduceDescriptors(Ur.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});oe.freezeMethods(Ur);const W0="[REDACTED ****]";function cz(e){if(oe.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(oe.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function uz(e,t){const n=new Set(t.map(s=>String(s).toLowerCase())),r=[],i=s=>{if(s===null||typeof s!="object"||oe.isBuffer(s))return s;if(r.indexOf(s)!==-1)return;s instanceof Ur&&(s=s.toJSON()),r.push(s);let o;if(oe.isArray(s))o=[],s.forEach((a,l)=>{const c=i(a);oe.isUndefined(c)||(o[l]=c)});else{if(!oe.isPlainObject(s)&&cz(s))return r.pop(),s;o=Object.create(null);for(const[a,l]of Object.entries(s)){const c=n.has(a.toLowerCase())?W0:i(l);oe.isUndefined(c)||(o[a]=c)}}return r.pop(),o};return i(e)}function W3(e){try{return String(e)}catch{return""}}function dz(e){return e.errors.map(n=>{try{return n&&n.message?W3(n.message):W3(n)}catch{return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}class Oe extends Error{static from(t,n,r,i,s,o){let a=t.message;!a&&oe.isArray(t.errors)&&t.errors.length&&(a=dz(t));const l=new Oe(a,n||t.code,r,i,s);return Object.defineProperty(l,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),l.name=t.name,t.status!=null&&l.status==null&&(l.status=t.status),o&&Object.assign(l,o),l}constructor(t,n,r,i,s){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),i&&(this.request=i),s&&(this.response=s,this.status=s.status)}toJSON(){const t=this.config,n=t&&oe.hasOwnProp(t,"redact")?t.redact:void 0,r=oe.isArray(n)&&n.length>0?uz(t,n):oe.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}}Oe.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Oe.ERR_BAD_OPTION="ERR_BAD_OPTION";Oe.ECONNABORTED="ECONNABORTED";Oe.ETIMEDOUT="ETIMEDOUT";Oe.ECONNREFUSED="ECONNREFUSED";Oe.ERR_NETWORK="ERR_NETWORK";Oe.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Oe.ERR_DEPRECATED="ERR_DEPRECATED";Oe.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Oe.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Oe.ERR_CANCELED="ERR_CANCELED";Oe.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Oe.ERR_INVALID_URL="ERR_INVALID_URL";Oe.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const fz=null,hC=100;function Wx(e){return oe.isPlainObject(e)||oe.isArray(e)}function pC(e){return oe.endsWith(e,"[]")?e.slice(0,-2):e}function wy(e,t,n){return e?e.concat(t).map(function(i,s){return i=pC(i),!n&&s?"["+i+"]":i}).join(n?".":""):t}function hz(e){return oe.isArray(e)&&!e.some(Wx)}const pz=oe.toFlatObject(oe,{},null,function(t){return/^is[A-Z]/.test(t)});function Hg(e,t,n){if(!oe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=oe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,_){return!oe.isUndefined(_[S])});const r=n.metaTokens,i=n.visitor||x,s=n.dots,o=n.indexes,a=n.Blob||typeof Blob<"u"&&Blob,l=n.maxDepth===void 0?hC:n.maxDepth,c=a&&oe.isSpecCompliantForm(t),d=[];if(!oe.isFunction(i))throw new TypeError("visitor must be a function");function h(y){if(y===null)return"";if(oe.isDate(y))return y.toISOString();if(oe.isBoolean(y))return y.toString();if(!c&&oe.isBlob(y))throw new Oe("Blob is not supported. Use a Buffer instead.");if(oe.isArrayBuffer(y)||oe.isTypedArray(y)){if(c&&typeof a=="function")return new a([y]);throw new Oe("Blob is not supported. Use a Buffer instead.",Oe.ERR_NOT_SUPPORT)}return y}function m(y){if(y>l)throw new Oe("Object is too deeply nested ("+y+" levels). Max depth: "+l,Oe.ERR_FORM_DATA_DEPTH_EXCEEDED)}function f(y,S){if(l===1/0)return JSON.stringify(y);const _=[];return JSON.stringify(y,function(O,$){if(!oe.isObject($))return $;for(;_.length&&_[_.length-1]!==this;)_.pop();return _.push($),m(S+_.length-1),$})}function x(y,S,_){let k=y;if(oe.isReactNative(t)&&oe.isReactNativeBlob(y))return t.append(wy(_,S,s),h(y)),!1;if(y&&!_&&typeof y=="object"){if(oe.endsWith(S,"{}"))S=r?S:S.slice(0,-2),y=f(y,1);else if(oe.isArray(y)&&hz(y)||(oe.isFileList(y)||oe.endsWith(S,"[]"))&&(k=oe.toArray(y)))return S=pC(S),k.forEach(function($,U){!(oe.isUndefined($)||$===null)&&t.append(o===!0?wy([S],U,s):o===null?S:S+"[]",h($))}),!1}return Wx(y)?!0:(t.append(wy(_,S,s),h(y)),!1)}const v=Object.assign(pz,{defaultVisitor:x,convertValue:h,isVisitable:Wx});function b(y,S,_=0){if(!oe.isUndefined(y)){if(m(_),d.indexOf(y)!==-1)throw new Error("Circular reference detected in "+S.join("."));d.push(y),oe.forEach(y,function(O,$){(!(oe.isUndefined(O)||O===null)&&i.call(t,O,oe.isString($)?$.trim():$,S,v))===!0&&b(O,S?S.concat($):[$],_+1)}),d.pop()}}if(!oe.isObject(e))throw new TypeError("data must be an object");return b(e),t}function G3(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function db(e,t){this._pairs=[],e&&Hg(e,this,t)}const mC=db.prototype;mC.append=function(t,n){this._pairs.push([t,n])};mC.toString=function(t){const n=t?r=>t.call(this,r,G3):G3;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function mz(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function gC(e,t,n){if(!t)return e;e=e||"";const r=oe.isFunction(n)?{serialize:n}:n,i=oe.getSafeProp(r,"encode")||mz,s=oe.getSafeProp(r,"serialize");let o;if(s?o=s(t,r):o=oe.isURLSearchParams(t)?t.toString():new db(t,r).toString(i),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class K3{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){oe.forEach(this.handlers,function(r){r!==null&&t(r)})}}const fb={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},gz=typeof URLSearchParams<"u"?URLSearchParams:db,yz=typeof FormData<"u"?FormData:null,xz=typeof Blob<"u"?Blob:null,vz={isBrowser:!0,classes:{URLSearchParams:gz,FormData:yz,Blob:xz},protocols:["http","https","file","blob","url","data"]},hb=typeof window<"u"&&typeof document<"u",Gx=typeof navigator=="object"&&navigator||void 0,bz=hb&&(!Gx||["ReactNative","NativeScript","NS"].indexOf(Gx.product)<0),wz=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Sz=hb&&window.location.href||"http://localhost",_z=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:hb,hasStandardBrowserEnv:bz,hasStandardBrowserWebWorkerEnv:wz,navigator:Gx,origin:Sz},Symbol.toStringTag,{value:"Module"})),jr={..._z,...vz};function Nz(e,t){return Hg(e,new jr.classes.URLSearchParams,{visitor:function(n,r,i,s){return jr.isNode&&oe.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}const Y3=hC;function yC(e){if(e>Y3)throw new Oe("FormData field is too deeply nested ("+e+" levels). Max depth: "+Y3,Oe.ERR_FORM_DATA_DEPTH_EXCEEDED)}function kz(e){const t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let r;for(;(r=n.exec(e))!==null;)yC(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function Az(e){const t={},n=Object.keys(e);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],t[s]=e[s];return t}function xC(e){function t(n,r,i,s){yC(s);let o=n[s++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),l=s>=n.length;return o=!o&&oe.isArray(i)?i.length:o,l?(oe.hasOwnProp(i,o)?i[o]=oe.isArray(i[o])?i[o].concat(r):[i[o],r]:i[o]=r,!a):((!oe.hasOwnProp(i,o)||!oe.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],s)&&oe.isArray(i[o])&&(i[o]=Az(i[o])),!a)}if(oe.isFormData(e)&&oe.isFunction(e.entries)){const n={};return oe.forEachEntry(e,(r,i)=>{t(kz(r),i,n,0)}),n}return null}const Gc=(e,t)=>e!=null&&oe.hasOwnProp(e,t)?e[t]:void 0;function jz(e,t,n){if(oe.isString(e))try{return(t||JSON.parse)(e),oe.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Xh={transitional:fb,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=oe.isObject(t);
vendor: 11,128 bytes, line 386
386if(s&&oe.isHTMLForm(t)&&(t=new FormData(t)),oe.isFormData(t))return i?JSON.stringify(xC(t)):t;if(oe.isArrayBuffer(t)||oe.isBuffer(t)||oe.isStream(t)||oe.isFile(t)||oe.isBlob(t)||oe.isReadableStream(t))return t;if(oe.isArrayBufferView(t))return t.buffer;if(oe.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){const l=Gc(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return Nz(t,l).toString();if((a=oe.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=Gc(this,"env"),d=c&&c.FormData;return Hg(a?{"files[]":t}:t,d&&new d,l)}}return s||i?(n.setContentType("application/json",!1),jz(t)):t}],transformResponse:[function(t){const n=Gc(this,"transitional")||Xh.transitional,r=n&&n.forcedJSONParsing,i=Gc(this,"responseType"),s=i==="json";if(oe.isResponse(t)||oe.isReadableStream(t))return t;if(t&&oe.isString(t)&&(r&&!i||s)){const a=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,Gc(this,"parseReviver"))}catch(l){if(a)throw l.name==="SyntaxError"?Oe.from(l,Oe.ERR_BAD_RESPONSE,this,null,Gc(this,"response")):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:jr.classes.FormData,Blob:jr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};oe.forEach(["delete","get","head","post","put","patch","query"],e=>{Xh.headers[e]={}});function Sy(e,t){const n=this||Xh,r=t||n,i=Ur.from(r.headers);let s=r.data;return oe.forEach(e,function(a){s=a.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function vC(e){return!!(e&&e.__CANCEL__)}class Zh extends Oe{constructor(t,n,r){super(t??"canceled",Oe.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}}function bC(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Oe("Request failed with status code "+n.status,n.status>=400&&n.status<500?Oe.ERR_BAD_REQUEST:Oe.ERR_BAD_RESPONSE,n.config,n.request,n))}function Cz(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function Ez(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,s=0,o;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),d=r[s];o||(o=c),n[i]=l,r[i]=c;let h=s,m=0;for(;h!==i;)m+=n[h++],h=h%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),c-o<t)return;const f=d&&c-d;return f?Math.round(m*1e3/f):void 0}}function Lz(e,t){let n=0,r=1e3/t,i,s;const o=(c,d=Date.now())=>{n=d,i=null,s&&(clearTimeout(s),s=null),e(...c)};return[(...c)=>{const d=Date.now(),h=d-n;h>=r?o(c,d):(i=c,s||(s=setTimeout(()=>{s=null,o(i)},r-h)))},()=>i&&o(i)]}const G0=(e,t,n=3)=>{let r=0;const i=Ez(50,250);return Lz(s=>{if(!s||typeof s.loaded!="number")return;const o=s.loaded,a=s.lengthComputable?s.total:void 0,l=Math.max(0,a!=null?Math.min(o,a):o),c=Math.max(0,l-r),d=i(c);r=Math.max(r,l);const h={loaded:l,total:a,progress:a?l/a:void 0,bytes:c,rate:d||void 0,estimated:d&&a?(a-l)/d:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(h)},n)},X3=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Z3=(e,t=oe.asap)=>(...n)=>t(()=>e(...n)),Pz=jr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,jr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(jr.origin),jr.navigator&&/(msie|trident)/i.test(jr.navigator.userAgent)):()=>!0,Tz=jr.hasStandardBrowserEnv?{write(e,t,n,r,i,s,o){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];oe.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),oe.isString(r)&&a.push(`path=${r}`),oe.isString(i)&&a.push(`domain=${i}`),s===!0&&a.push("secure"),oe.isString(o)&&a.push(`SameSite=${o}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),i=r.indexOf("=");if(i!==-1&&r.slice(0,i)===e)try{return decodeURIComponent(r.slice(i+1))}catch{return r.slice(i+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Rz(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Oz(e,t){if(!t)return e;let n=e.length;for(;n>0&&e.charCodeAt(n-1)===47;)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}const Iz=/^https?:(?!\/\/)/i,Mz=/[\t\n\r]/g;function Fz(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function Dz(e){return Fz(e).replace(Mz,"")}function Bz(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(t,n,r="")=>`${n}${r}${W0}`)}function zz(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${W0}@`),n=t.indexOf("#"),i=(n===-1?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${W0}`);return n===-1?i:`${i}#${Bz(t.slice(n+1))}`}function Q3(e,t){if(typeof e=="string"){const n=Dz(e);if(Iz.test(n))throw new Oe(`Invalid URL ${JSON.stringify(zz(n))}: missing "//" after protocol`,Oe.ERR_INVALID_URL,t)}}function wC(e,t,n,r){Q3(t,r);let i=!Rz(t);return e&&(i||n===!1)?(Q3(e,r),Oz(e,t)):t}const J3=e=>e instanceof Ur?{...e}:e,Uz=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function Sc(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(d,h,m,f){return oe.isPlainObject(d)&&oe.isPlainObject(h)?oe.merge.call({caseless:f},d,h):oe.isPlainObject(h)?oe.merge({},h):oe.isArray(h)?h.slice():h}function i(d,h,m,f){if(oe.isUndefined(h)){if(!oe.isUndefined(d))return r(void 0,d,m,f)}else return r(d,h,m,f)}function s(d,h){if(!oe.isUndefined(h))return r(void 0,h)}function o(d,h){if(oe.isUndefined(h)){if(!oe.isUndefined(d))return r(void 0,d)}else return r(void 0,h)}function a(d){const h=oe.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!oe.isUndefined(h))if(oe.isPlainObject(h)){if(oe.hasOwnProp(h,d))return h[d]}else return;const m=oe.hasOwnProp(e,"transitional")?e.transitional:void 0;if(oe.isPlainObject(m)&&oe.hasOwnProp(m,d))return m[d]}function l(d,h,m){if(oe.hasOwnProp(t,m))return r(d,h);if(oe.hasOwnProp(e,m))return r(void 0,d)}const c={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:l,headers:(d,h,m)=>i(J3(d),J3(h),m,!0)};return oe.forEach(Uz({...e,...t}),function(h){if(h==="__proto__"||h==="constructor"||h==="prototype")return;const m=oe.hasOwnProp(c,h)?c[h]:i,f=oe.hasOwnProp(e,h)?e[h]:void 0,x=oe.hasOwnProp(t,h)?t[h]:void 0,v=m(f,x,h);oe.isUndefined(v)&&m!==l||(n[h]=v)}),oe.hasOwnProp(t,"validateStatus")&&oe.isUndefined(t.validateStatus)&&a("validateStatusUndefinedResolves")===!1&&(oe.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}const Vz=["content-type","content-length"];function $z(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([r,i])=>{Vz.includes(r.toLowerCase())&&e.set(r,i)})}const qz=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function SC(e){const t=Sc({},e),n=m=>oe.hasOwnProp(t,m)?t[m]:void 0,r=n("data");let i=n("withXSRFToken");const s=n("xsrfHeaderName"),o=n("xsrfCookieName");let a=n("headers");const l=n("auth"),c=n("baseURL"),d=n("allowAbsoluteUrls"),h=n("url");if(t.headers=a=Ur.from(a),t.url=gC(wC(c,h,d,t),n("params"),n("paramsSerializer")),l){const m=oe.getSafeProp(l,"username")||"",f=oe.getSafeProp(l,"password")||"";try{a.set("Authorization","Basic "+btoa(m+":"+(f?qz(f):"")))}catch(x){throw Oe.from(x,Oe.ERR_BAD_OPTION_VALUE,e)}}if(oe.isFormData(r)&&(jr.hasStandardBrowserEnv||jr.hasStandardBrowserWebWorkerEnv||oe.isReactNative(r)?a.setContentType(void 0):oe.isFunction(r.getHeaders)&&$z(a,r.getHeaders(),n("formDataHeaderPolicy"))),jr.hasStandardBrowserEnv&&(oe.isFunction(i)&&(i=i(t)),i===!0||i==null&&Pz(t.url))){const f=s&&o&&Tz.read(o);f&&a.set(s,f)}return t}const Hz=typeof XMLHttpRequest<"u",Wz=Hz&&function(e){return new Promise(function(n,r){const i=SC(e);let s=i.data;const o=Ur.from(i.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=i,d,h,m,f,x;function v(){f&&f(),x&&x(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let b=new XMLHttpRequest;b.open(i.method.toUpperCase(),i.url,!0),b.timeout=i.timeout;function y(){if(!b)return;const _=Ur.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),O={data:!a||a==="text"||a==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:_,config:e,request:b};bC(function(U){n(U),v()},function(U){r(U),v()},O),b=null}"onloadend"in b?b.onloadend=y:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.startsWith("file:"))||setTimeout(y)},b.onabort=function(){b&&(r(new Oe("Request aborted",Oe.ECONNABORTED,e,b)),v(),b=null)},b.onerror=function(k){const O=k&&k.message?k.message:"Network Error",$=new Oe(O,Oe.ERR_NETWORK,e,b);$.event=k||null,r($),v(),b=null},b.ontimeout=function(){let k=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const O=i.transitional||fb;i.timeoutErrorMessage&&(k=i.timeoutErrorMessage),r(new Oe(k,O.clarifyTimeoutError?Oe.ETIMEDOUT:Oe.ECONNABORTED,e,b)),v(),b=null},s===void 0&&o.setContentType(null),"setRequestHeader"in b&&oe.forEach(fC(o),function(k,O){b.setRequestHeader(O,k)}),oe.isUndefined(i.withCredentials)||(b.withCredentials=!!i.withCredentials),a&&a!=="json"&&(b.responseType=i.responseType),c&&([m,x]=G0(c,!0),b.addEventListener("progress",m)),l&&b.upload&&([h,f]=G0(l),b.upload.addEventListener("progress",h),b.upload.addEventListener("loadend",f)),(i.cancelToken||i.signal)&&(d=_=>{b&&(r(!_||_.type?new Zh(null,e,b):_),b.abort(),v(),b=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const S=Cz(i.url);if(S&&!jr.protocols.includes(S)){r(new Oe("Unsupported protocol "+S+":",Oe.ERR_BAD_REQUEST,e)),v();return}b.send(s||null)})},Gz=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const i=function(l){if(!r){r=!0,o();const c=l instanceof Error?l:this.reason;n.abort(c instanceof Oe?c:new Zh(c instanceof Error?c.message:c))}};let s=t&&setTimeout(()=>{s=null,i(new Oe(`timeout of ${t}ms exceeded`,Oe.ETIMEDOUT))},t);const o=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),e=null)};e.forEach(l=>{if(!r){if(l.aborted){i.call(l);return}l.addEventListener("abort",i,{once:!0})}});const{signal:a}=n;return a.unsubscribe=()=>
386oe.asap(o),a},Kz=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},Yz=async function*(e,t){for await(const n of Xz(e))yield*Kz(n,t)},Xz=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},eS=(e,t,n,r)=>{const i=Yz(e,t);let s=0,o,a=l=>{o||(o=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:d}=await i.next();if(c){a(),l.close();return}let h=d.byteLength;if(n){let m=s+=h;n(m)}l.enqueue(new Uint8Array(d))}catch(c){throw a(c),c}},cancel(l){return a(l),i.return()}},{highWaterMark:2})},tS=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,_C=(e,t,n)=>t+2<n&&tS(e.charCodeAt(t+1))&&tS(e.charCodeAt(t+2)),nS=e=>e<=57?e-48:(e&223)-55,Zz=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,Qz=e=>e===9||e===10||e===12||e===13||e===32,Jz=e=>{const t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},eU=e=>{const t=e.length;let n=0;return t>0&&e.charCodeAt(t-1)===61&&(n++,t>1&&e.charCodeAt(t-2)===61&&n++),Math.floor((t-n)*3/4)},tU=e=>{const t=e.length;let n=0,r=0,i=!1;for(let s=0;s<t;s++){let o=e.charCodeAt(s);if(o===37&&_C(e,s,t)&&(o=nS(e.charCodeAt(s+1))*16+nS(e.charCodeAt(s+2)),s+=2),!Qz(o)){if(o===61){r++;continue}if(!Zz(o)||r>0){i=!0;continue}n++}}return i||r>2||r>0&&(n+r)%4!==0||n%4===1?eU(e):Jz(n)},nU=(e,t)=>{if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const n=e.indexOf(",");if(n<0)return 0;const r=e.slice(5,n),i=e.slice(n+1);if(/;base64/i.test(r))return t(i);let o=0;for(let a=0,l=i.length;a<l;a++){const c=i.charCodeAt(a);if(c===37&&_C(i,a,l))o+=1,a+=2;else if(c<128)o+=1;else if(c<2048)o+=2;else if(c>=55296&&c<=56319&&a+1<l){const d=i.charCodeAt(a+1);d>=56320&&d<=57343?(o+=4,a++):o+=3}else o+=3}return o};function rU(e){const t=typeof e=="string"?e.indexOf("#"):-1;return nU(t===-1?e:e.slice(0,t),tU)}const pb="1.19.0",rS=64*1024,{isFunction:fm}=oe,iU=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),iS=e=>{if(!oe.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},sS=(e,...t)=>{try{return!!e(...t)}catch{return!1}},sU=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},oU=e=>{const t=oe.global!==void 0&&oe.global!==null?oe.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=oe.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:i,Request:s,Response:o}=e,a=i?fm(i):typeof fetch=="function",l=fm(s),c=fm(o);if(!a)return!1;const d=a&&fm(n),h=a&&(typeof r=="function"?(y=>S=>y.encode(S))(new r):async y=>new Uint8Array(await new s(y).arrayBuffer())),m=l&&d&&sS(()=>{let y=!1;const S=new s(jr.origin,{body:new n,method:"POST",get duplex(){return y=!0,"half"}}),_=S.headers.has("Content-Type");return S.body!=null&&S.body.cancel(),y&&!_}),f=c&&d&&sS(()=>oe.isReadableStream(new o("").body)),x={stream:f&&(y=>y.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(y=>{!x[y]&&(x[y]=(S,_)=>{let k=S&&S[y];if(k)return k.call(S);throw new Oe(`Response type '${y}' is not supported`,Oe.ERR_NOT_SUPPORT,_)})});const v=async y=>{if(y==null)return 0;if(oe.isBlob(y))return y.size;if(oe.isSpecCompliantForm(y))return(await new s(jr.origin,{method:"POST",body:y}
vendor: 8,298 bytes, lines 386-392
386).arrayBuffer()).byteLength;if(oe.isArrayBufferView(y)||oe.isArrayBuffer(y))return y.byteLength;if(oe.isURLSearchParams(y)&&(y=y+""),oe.isString(y))return(await h(y)).byteLength},b=async(y,S)=>{const _=oe.toFiniteNumber(y.getContentLength());return _??v(S)};return async y=>{let{url:S,method:_,data:k,signal:O,cancelToken:$,timeout:U,onDownloadProgress:I,onUploadProgress:R,responseType:z,headers:C,withCredentials:L="same-origin",fetchOptions:D,maxContentLength:F,maxBodyLength:te}=SC(y);const re=oe.isNumber(F)&&F>-1,ce=oe.isNumber(te)&&te>-1,G=J=>oe.hasOwnProp(y,J)?y[J]:void 0;let Q=i||fetch;z=z?(z+"").toLowerCase():"text";let de=Gz([O,$&&$.toAbortSignal()],U),ue=null;const E=de&&de.unsubscribe&&(()=>{de.unsubscribe()});let H,K=null;const ee=()=>new Oe("Request body larger than maxBodyLength limit",Oe.ERR_BAD_REQUEST,y,ue);try{let J;const ie=G("auth");if(ie){const we=oe.getSafeProp(ie,"username")||"",nt=oe.getSafeProp(ie,"password")||"";J={username:we,password:nt}}if(sU(S)){const we=new URL(S,jr.origin);if(!J&&(we.username||we.password)){const nt=iS(we.username),Fe=iS(we.password);J={username:nt,password:Fe}}(we.username||we.password)&&(we.username="",we.password="",S=we.href)}if(J&&(C.delete("authorization"),C.set("Authorization","Basic "+btoa(iU((J.username||"")+":"+(J.password||""))))),re&&typeof S=="string"&&S.startsWith("data:")&&rU(S)>F)throw new Oe("maxContentLength size of "+F+" exceeded",Oe.ERR_BAD_RESPONSE,y,ue);if(ce&&_!=="get"&&_!=="head"){const we=await v(k);if(typeof we=="number"&&isFinite(we)&&(H=we,we>te))throw ee()}const ge=ce&&(oe.isReadableStream(k)||oe.isStream(k)),ye=(we,nt,Fe)=>eS(we,rS,Ne=>{if(ce&&Ne>te)throw K=ee();nt&&nt(Ne)},Fe);if(m&&_!=="get"&&_!=="head"&&(R||ge)){if(H=H??await b(C,k),H!==0||ge){let we=new s(S,{method:"POST",body:k,duplex:"half"}),nt;if(oe.isFormData(k)&&(nt=we.headers.get("content-type"))&&C.setContentType(nt),we.body){const[Fe,Ne]=R&&X3(H,G0(Z3(R)))||[];k=ye(we.body,Fe,Ne)}}}else if(ge&&!l&&d&&_!=="get"&&_!=="head")k=ye(k);else if(ge&&l&&!m&&_!=="get"&&_!=="head")throw new Oe("Stream request bodies are not supported by the current fetch implementation",Oe.ERR_NOT_SUPPORT,y,ue);oe.isString(L)||(L=L?"include":"omit");const ve=l&&"credentials"in s.prototype;if(oe.isFormData(k)){const we=C.getContentType();we&&/^multipart\/form-data/i.test(we)&&!/boundary=/i.test(we)&&C.delete("content-type")}C.set("User-Agent","axios/"+pb,!1);const je={...D,signal:de,method:_.toUpperCase(),headers:fC(C.normalize()),body:k,duplex:"half",credentials:ve?L:void 0};ue=l&&new s(S,je);let Le=await(l?Q(ue,D):Q(S,je));const Te=Ur.from(Le.headers);if(re){const we=oe.toFiniteNumber(Te.getContentLength());if(we!=null&&we>F)throw new Oe("maxContentLength size of "+F+" exceeded",Oe.ERR_BAD_RESPONSE,y,ue)}const Ue=f&&(z==="stream"||z==="response");if(f&&Le.body&&(I||re||Ue&&E)){const we={};["status","statusText","headers"].forEach(Ge=>{we[Ge]=Le[Ge]});const nt=oe.toFiniteNumber(Te.getContentLength()),[Fe,Ne]=I&&X3(nt,G0(Z3(I),!0))||[];let st=0;const Ie=Ge=>{if(re&&(st=Ge,st>F))throw new Oe("maxContentLength size of "+F+" exceeded",Oe.ERR_BAD_RESPONSE,y,ue);Fe&&Fe(Ge)};Le=new o(eS(Le.body,rS,Ie,()=>{Ne&&Ne(),E&&E()}),we)}z=z||"text";let W=await x[oe.findKey(x,z)||"text"](Le,y);if(re&&!f&&!Ue){let we;if(W!=null&&(typeof W.byteLength=="number"?we=W.byteLength:typeof W.size=="number"?we=W.size:typeof W=="string"&&(we=typeof r=="function"?new r().encode(W).byteLength:W.length)),typeof we=="number"&&we>F)throw new Oe("maxContentLength size of "+F+" exceeded",Oe.ERR_BAD_RESPONSE,y,ue)}return!Ue&&E&&E(),await new Promise((we,nt)=>{bC(we,nt,{data:W,headers:Ur.from(Le.headers),status:Le.status,statusText:Le.statusText,config:y,request:ue})})}catch(J){if(E&&E(),de&&de.aborted&&de.reason instanceof Oe){const ie=de.reason;throw ie.config=y,ue&&(ie.request=ue),J!==ie&&Object.defineProperty(ie,"cause",{__proto__:null,value:J,writable:!0,enumerable:!1,configurable:!0}),ie}if(K)throw ue&&!K.request&&(K.request=ue),K;if(J instanceof Oe)throw ue&&!J.request&&(J.request=ue),J;if(J&&J.name==="TypeError"&&/Load failed|fetch/i.test(J.message)){const ie=new Oe("Network Error",Oe.ERR_NETWORK,y,ue,J&&J.response);throw Object.defineProperty(ie,"cause",{__proto__:null,value:J.cause||J,writable:!0,enumerable:!1,configurable:!0}),ie}throw Oe.from(J,J&&J.code,y,ue,J&&J.response)}}},aU=new Map,NC=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,s=[r,i,n];let o=s.length,a=o,l,c,d=aU;for(;a--;)l=s[a],c=d.get(l),c===void 0&&d.set(l,c=a?new Map:oU(t)),d=c;return c};NC();const mb={http:fz,xhr:Wz,fetch:{get:NC}};oe.forEach(mb,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const oS=e=>`- ${e}`,lU=e=>oe.isFunction(e)||e===null||e===!1;function cU(e,t){e=oe.isArray(e)?e:[e];const{length:n}=e;let r,i;const s={};for(let o=0;o<n;o++){r=e[o];let a;if(i=r,!lU(r)&&(i=mb[(a=String(r)).toLowerCase()],i===void 0))throw new Oe(`Unknown adapter '${a}'`);if(i&&(oe.isFunction(i)||(i=i.get(t))))break;s[a||"#"+o]=i}if(!i){const o=Object.entries(s).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=n?o.length>1?`since : 387`+o.map(oS).join(` 388`):" "+oS(o[0]):"as no adapter specified";throw new Oe("There is no suitable adapter to dispatch the request "+a,Oe.ERR_NOT_SUPPORT)}return i}const kC={getAdapter:cU,adapters:mb};function _y(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Zh(null,e)}function Ny(e){return _y(e),e.headers=Ur.from(e.headers),e.data=Sy.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),kC.getAdapter(e.adapter||Xh.adapter,e)(e).then(function(r){_y(e),e.response=r;try{r.data=Sy.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=Ur.from(r.headers),r},function(r){if(!vC(r)&&(_y(e),r&&r.response)){e.response=r.response;try{r.response.data=Sy.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=Ur.from(r.response.headers)}return Promise.reject(r)})}const Wg={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Wg[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const aS={};Wg.transitional=function(t,n,r){function i(s,o){return"[Axios v"+pb+"] Transitional option '"+s+"'"+o+(r?". "+r:"")}return(s,o,a)=>{if(t===!1)throw new Oe(i(o," has been removed"+(n?" in "+n:"")),Oe.ERR_DEPRECATED);return n&&!aS[o]&&(aS[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,o,a):!0}};Wg.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function uU(e,t,n){if(typeof e!="object"||e===null)throw new Oe("options must be an object",Oe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const s=r[i],o=Object.prototype.hasOwnProperty.call(t,s)?t[s]:void 0;if(o){const a=e[s],l=a===void 0||o(a,s,e);if(l!==!0)throw new Oe("option "+s+" must be "+l,Oe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Oe("Unknown option "+s,Oe.ERR_BAD_OPTION)}}const Km={assertOptions:uU,validators:Wg},Or=Km.validators;class lc{constructor(t){this.defaults=t||{},this.interceptors={request:new K3,response:new K3}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=(()=>{if(!i.stack)return"";const o=i.stack.indexOf(` 389`);return o===-1?"":i.stack.slice(o+1)})();try{if(!r.stack)r.stack=s;else if(s){const o=s.indexOf(` 390`),a=o===-1?-1:s.indexOf(` 391`,o+1),l=a===-1?"":s.slice(a+1);String(r.stack).endsWith(l)||(r.stack+=` 392`+s)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Sc(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&Km.assertOptions(r,{silentJSONParsing:Or.transitional(Or.boolean),forcedJSONParsing:Or.transitional(Or.boolean),clarifyTimeoutError:Or.transitional(Or.boolean),legacyInterceptorReqResOrdering:Or.transitional(Or.boolean),advertiseZstdAcceptEncoding:Or.transitional(Or.boolean),validateStatusUndefinedResolves:Or.transitional(Or.boolean)}
vendor: 3,309 bytes, line 392
392,!1),i!=null&&(oe.isFunction(i)?n.paramsSerializer={serialize:i}:Km.assertOptions(i,{encode:Or.function,serialize:Or.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Km.assertOptions(n,{baseUrl:Or.spelling("baseURL"),withXsrfToken:Or.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=s&&oe.merge(s.common,s[n.method]);s&&oe.forEach(["delete","get","head","post","put","patch","query","common"],x=>{delete s[x]}),n.headers=Ur.concat(o,s);const a=[];let l=!0;this.interceptors.request.forEach(function(v){if(typeof v.runWhen=="function"&&v.runWhen(n)===!1)return;l=l&&v.synchronous;const b=n.transitional||fb;b&&b.legacyInterceptorReqResOrdering?a.unshift(v.fulfilled,v.rejected):a.push(v.fulfilled,v.rejected)});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let d,h=0,m;if(!l){const x=[Ny.bind(this),void 0];for(x.unshift(...a),x.push(...c),m=x.length,d=Promise.resolve(n);h<m;)d=d.then(x[h++],x[h++]);return d}m=a.length;let f=n;for(;h<m;){const x=a[h++],v=a[h++];try{f=x?x(f):f}catch(b){if(!v){d=Promise.reject(b);break}try{const y=v.call(this,b);oe.isThenable(y)&&(d=Promise.resolve(y).then(()=>Ny.call(this,f)))}catch(y){d=Promise.reject(y)}break}}if(!d)try{d=Ny.call(this,f)}catch(x){d=Promise.reject(x)}for(h=0,m=c.length;h<m;)d=d.then(c[h++],c[h++]);return d}getUri(t){t=Sc(this.defaults,t);const n=wC(t.baseURL,t.url,t.allowAbsoluteUrls,t);return gC(n,t.params,t.paramsSerializer)}}oe.forEach(["delete","get","head","options"],function(t){lc.prototype[t]=function(n,r){return this.request(Sc(r||{},{method:t,url:n,data:r&&oe.hasOwnProp(r,"data")?r.data:void 0}))}});oe.forEach(["post","put","patch","query"],function(t){function n(r){return function(s,o,a){return this.request(Sc(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:o}))}}lc.prototype[t]=n(),t!=="query"&&(lc.prototype[t+"Form"]=n(!0))});class gb{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(a=>{r.subscribe(a),s=a}).then(i);return o.cancel=function(){r.unsubscribe(s)},o},t(function(s,o,a){r.reason||(r.reason=new Zh(s,o,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new gb(function(i){t=i}),cancel:t}}}function dU(e){return function(n){return e.apply(null,n)}}function fU(e){return oe.isObject(e)&&e.isAxiosError===!0}const Kx={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
392alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Kx).forEach(([e,t])=>{Kx[t]=e});function AC(e){const t=new lc(e),n=rC(lc.prototype.request,t);return oe.extend(n,lc.prototype,t,{allOwnKeys:!0}),oe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return AC(Sc(e,i))},n}const Qn=AC(Xh);Qn.Axios=lc;Qn.CanceledError=Zh;Qn.CancelToken=gb;Qn.isCancel=vC;Qn.VERSION=pb;Qn.toFormData=Hg;Qn.AxiosError=Oe;Qn.Cancel=Qn.CanceledError;Qn.all=function(t){return Promise.all(t)};Qn.spread=dU;Qn.isAxiosError=fU;Qn.mergeConfig=Sc;Qn.AxiosHeaders=Ur;Qn.formToJSON=e=>xC(oe.isHTMLForm(e)?new FormData(e):e);Qn.getAdapter=kC.getAdapter;Qn.HttpStatusCode=Kx;Qn.default=Qn;const hU="/api/v1",et=Qn.create({baseURL:hU,headers:{"Content-Type":"application/json",Accept:"application/json"},withCredentials:!0});et.interceptors.request.use(e=>{const t=localStorage.getItem("auth_token");return t&&(e.headers.Authorization=`Bearer ${t}`),e},e=>Promise.reject(e));et.interceptors.response.use(e=>e,e=>{var t,n,r,i;return((t=e.response)==null?void 0:t.status)===401&&(localStorage.removeItem("auth_token"),window.location.pathname.includes("/admin/login")||(window.location.href="/admin/login")),((n=e.response)==null?void 0:n.status)===403?console.error("Access forbidden:",e.response.data):((r=e.response)==null?void 0:r.status)===404?console.error("Resource not found:",e.response.data):((i=e.response)==null?void 0:i.status)===500?console.error("Server error:",e.response.data):e.code==="ERR_NETWORK"&&console.error("Network error: Please check your internet connection"),Promise.reject(e)});const pi={getSolutions:async()=>(await et.get("/solutions")).data,getSolution:async e=>(await et.get(`/solutions/${e}`)).data,getProjects:async e=>(await et.get("/projects",{params:e})).data,getProject:async e=>(await et.get(`/projects/${e}`)).data,getBlogPosts:async e=>(await et.get("/posts",{params:e})).data,getBlogPost:async e=>(await et.get(`/posts/${e}`)).data,getCategories:async()=>(await et.get("/categories")).data,getTags:async()=>(await et.get("/tags")).data,getTeamMembers:async()=>(await et.get("/team")).data,getPartners:async()=>(await et.get("/partners")).data,getStats:async()=>(await et.get("/stats")).data,submitContact:async e=>(await et.post("/contact",e)).data,getTrainings:async e=>(await et.get("/trainings",{params:{lang:e||"en"}})).data,getTraining:async(e,t)=>(await et.get(`/trainings/${e}`,{params:{lang:t||"en"}})).data,submitTrainingRegistration:async e=>(await et.post("/training-registrations",e,{headers:{"Content-Type":"multipart/form-data"}})).data,registerTraining:async e=>(await et.post("/training-registrations",e,{headers:{"Content-Type":"multipart/form-data"}})).data,login:async(e,t)=>{const n=await et.post("/auth/login",{email:e,password:t});return n.data.success&&n.data.data.token&&localStorage.setItem("auth_token",n.data.data.token),n.data},logout:async()=>{const e=await et.post("/auth/logout");return localStorage.removeItem("auth_token"),e.data},getMe:async()=>(await et.get("/auth/me")).data,healthCheck:async()=>(await et.get("/health")).data},tte={getSolutions:async e=>(await et.get("/admin/solutions",{params:e})).data,getSolution:async e=>(await et.get(`/admin/solutions/${e}`)).data,createSolution:async e=>(await et.post("/admin/solutions",e)).data,updateSolution:async(e,t)=>(await et.put(`/admin/solutions/${e}`,t)).data,deleteSolution:async e=>(await et.delete(`/admin/solutions/${e}`)).data,getAdminProjects:async e=>(await et.get("/admin/projects",{params:e})).data,getAdminProject:async e=>(await et.get(`/admin/projects/${e}`)).data,createProject:async e=>(await et.post("/admin/projects",e,{headers:{"Content-Type":"multipart/form-data"}})).data,updateProject:async(e,t)=>(t.append("_method","PUT"),(await et.post(`/admin/projects/${e}`,t,{headers:{"Content-Type":"multipart/form-data"}})).data),deleteProject:async e=>(await et.delete(`/admin/projects/${e}`)).data,getAdminBlogs:async e=>(await et.get("/admin/posts",{params:e})).data,getAdminBlog:async e=>(await et.get(`/admin/posts/${e}`)).data,createBlog:async e=>(await et.post("/admin/posts",e,{headers:{"Content-Type":"multipart/form-data"}})).data,updateBlog:async(e,t)=>(t.append("_method","PUT"),(await et.post(`/admin/posts/${e}`,t,{headers:{"Content-Type":"multipart/form-data"}})).data),deleteBlog:async e=>(await et.delete(`/admin/posts/${e}`)).data,getAdminPartners:async e=>(await et.get("/admin/partners",{params:e})).data,getAdminPartner:async e=>(await et.get(`/admin/partners/${e}`)).data,createPartner:async e=>(await et.post("/admin/partners",e,{headers:{"Content-Type":"multipart/form-data"}})).data,updatePartner:async(e,t)=>(t.append("_method","PUT"),(await et.post(`/admin/partners/${e}`,t,{headers:{"Content-Type":"multipart/form-data"}})).data),deletePartner:async e=>(await et.delete(`/admin/partners/${e}`)).data,getDashboardStats:async()=>(await et.get("/admin/stats")).data,getStats:async()=>(await et.get("/admin/stats")).data,getRegistrations:async e=>(await et.get("/admin/training-registrations",{params:e})).data,getRegistration:async e=>(await et.get(`/admin/training-registrations/${e}`)).data,updateRegistration:async(e,t)=>(await et.patch(`/admin/training-registrations/${e}`,t)).data,deleteRegistration:async e=>(await et.delete(`/admin/training-registrations/${e}`)).data,bulkUpdateRegistrations:async(e,t)=>(await et.post("/admin/training-registrations/bulk-update",{ids:e,status:t})).data,bulkDeleteRegistrations:async e=>(await et.post("/admin/training-registrations/bulk-delete",{ids:e})).data,exportRegistrations:async e=>(await et.get("/admin/training-registrations/export",{params:e,responseType:"blob"})).data,downloadCv:async e=>(await et.get(`/admin/training-registrations/${e}/download-cv`,{responseType:"blob"})).data,getAdminTrainings:async e=>(await et.get("/admin/trainings",{params:e})).data,getAdminTraining:async e=>(await et.get(`/admin/trainings/${e}`)).data,createTraining:async e=>(await et.post("/admin/trainings",e,{headers:{"Content-Type":"multipart/form-data"}})).data,updateTraining:async(e,t)=>(t.append("_method","PUT"),(await et.post(`/admin/trainings/${e}`,t,{headers:{"Content-Type":"multipart/form-data"}})).data),deleteTraining:async e=>(await et.delete(`/admin/trainings/${e}`)).data,bulkDeleteTrainings:async e=>(await et.post("/admin/trainings/bulk-delete",{ids:e})).data,updateTrainingOrder:async e=>(await et.post("/admin/trainings/order",{trainings:e})).data},jC=j.createContext(void 0),pU=({children:e})=>{const[t,n]=j.useState({user:null,token:localStorage.getItem("auth_token"),isAuthenticated:!1,isLoading:!0}),r=async()=>{const a=localStorage.getItem("auth_token");if(!a){n({user:null,token:null,isAuthenticated:!1,isLoading:!1});return}try{const l=await pi.getMe();l.success&&l.data?n({user:l.data,token:a,isAuthenticated:!0,isLoading:!1}):(localStorage.removeItem("auth_token"),n({user:null,token:null,isAuthenticated:!1,isLoading:!1}))}catch(l){console.error("Auth check failed:",l),localStorage.removeItem("auth_token"),n({user:null,token:null,isAuthenticated:!1,isLoading:!1})}},i=async(a,l)=>{var c,d;try{const h=await pi.login(a,l);if(h.success&&h.data){const{user:m,token:f}=h.data;n({user:m,token:f,isAuthenticated:!0,isLoading:!1})}else throw new Error(h.message||"Login failed")}catch(h){console.error("Login error:",h);const m=((d=(c=h==null?void 0:h.response)==null?void 0:c.data)==null?void 0:d.message)||(h==null?void 0:h.message)||"Login failed";throw new Error(m)}},s=async()=>{try{await pi.logout()}catch(a){console.error("Logout error:",a)}finally{localStorage.removeItem("auth_token"),n({user:null,token:null,isAuthenticated:!1,isLoading:!1})}};j.useEffect(()=>{r()},[]);const o={...t,login:i,logout:s,checkAuth:r};return u.jsx(jC.Provider,{value:o,children:e})},mU=()=>{const e=j.useContext(jC);if(e===void 0)throw new Error("useAuth must be used within an AuthProvider");return e},gU=M8("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Yt=j.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},s)=>{const o=r?l9:"button";return u.jsx(o,{className:kt(gU({variant:t,size:n,className:e})),ref:s,...i})});Yt.displayName="Button";const yb=j.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:kt("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));
392yb.displayName="Card";const CC=j.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:kt("flex flex-col space-y-1.5 p-6",e),...t}));CC.displayName="CardHeader";const EC=j.forwardRef(({className:e,...t},n)=>u.jsx("h3",{ref:n,className:kt("text-2xl font-semibold leading-none tracking-tight",e),...t}));EC.displayName="CardTitle";const LC=j.forwardRef(({className:e,...t},n)=>u.jsx("p",{ref:n,className:kt("text-sm text-muted-foreground",e),...t}));LC.displayName="CardDescription";const xb=j.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:kt("p-6 pt-0",e),...t}));xb.displayName="CardContent";const yU=j.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:kt("flex items-center p-6 pt-0",e),...t}));yU.displayName="CardFooter";class xU extends j.Component{constructor(n){super(n);Zt(this,"handleReset",()=>{this.setState({hasError:!1,error:null,errorInfo:null})});this.state={hasError:!1,error:null,errorInfo:null}}static getDerivedStateFromError(n){return{hasError:!0,error:n,errorInfo:null}}componentDidCatch(n,r){console.error("ErrorBoundary caught an error:",n,r),this.setState({error:n,errorInfo:r})}render(){return this.state.hasError?this.props.fallback?this.props.fallback:u.jsx("div",{className:"min-h-screen flex items-center justify-center p-4 bg-background",children:u.jsxs(yb,{className:"max-w-2xl w-full",children:[u.jsx(CC,{children:u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("div",{className:"p-2 bg-destructive/10 rounded-lg",children:u.jsx(NO,{className:"h-6 w-6 text-destructive"})}),u.jsxs("div",{children:[u.jsx(EC,{children:"Something went wrong"}),u.jsx(LC,{children:"An unexpected error occurred in the application"})]})]})}),u.jsxs(xb,{className:"space-y-4",children:[this.state.error&&u.jsxs("div",{className:"p-4 bg-muted rounded-lg",children:[u.jsx("p",{className:"text-sm font-medium mb-2",children:"Error Details:"}),u.jsx("p",{className:"text-sm text-muted-foreground font-mono",children:this.state.error.toString()})]}),!1,u.jsxs("div",{className:"flex items-center gap-3 pt-2",children:[u.jsxs(Yt,{onClick:this.handleReset,className:"gap-2",children:[u.jsx(wO,{className:"h-4 w-4"}),"Try Again"]}),u.jsx(Yt,{variant:"outline",onClick:()=>window.location.href="/",children:"Go to Home"})]}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"If this problem persists, please contact support or try refreshing the page."})]})]})}):this.props.children}}const vU=()=>{const{pathname:e}=Ms();return j.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"instant"})},[e]),j.useEffect(()=>{window.scrollTo(0,0)},[]),null},bU=()=>{const[e,t]=j.useState(!1),{theme:n}=nC();j.useEffect(()=>{const i=()=>{window.scrollY>300?t(!0):t(!1)};return window.addEventListener("scroll",i),()=>{window.removeEventListener("scroll",i)}},[]);const r=()=>{window.scrollTo({top:0,behavior:"smooth"})};return u.jsx(u.Fragment,{children:e&&u.jsx(Yt,{onClick:r,className:`fixed bottom-8 right-8 z-50 px-4 py-3 rounded-xl shadow-2xl transition-all duration-300 hover:scale-105 flex items-center gap-2 ${n==="dark"?"bg-gradient-to-br from-amber-900 via-amber-950 to-stone-950 hover:from-secondary hover:via-secondary/90 hover:to-secondary/80 text-white border-0 hover:shadow-secondary/50":"bg-gradient-to-br from-primary via-primary/90 to-primary/80 hover:from-secondary hover:via-secondary/90 hover:to-secondary/80 text-white border-2 border-primary/30 hover:shadow-secondary/50"}`,"aria-label":"Back to top",children:u.jsx(rO,{className:"w-5 h-5"})})})};function lS(){const{theme:e,setTheme:t}=nC(),n=()=>{t(e==="light"?"dark":"light")};return u.jsxs(Yt,{variant:"ghost",size:"sm",onClick:n,className:"w-9 h-9 p-0 bg-secondary text-white hover:bg-secondary/10 hover:text-secondary transition-all","aria-label":"Toggle theme",children:[u.jsx(_O,{className:"h-5 w-5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),u.jsx(vO,{className:"absolute h-5 w-5 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"})]})}var ky={};const gt=e=>typeof e=="string",gf=()=>{let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n},cS=e=>e==null?"":""+e,wU=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},SU=/###/g,uS=e=>e&&e.indexOf("###")>-1?e.replace(SU,"."):e,dS=e=>!e||gt(e),zf=(e,t,n)=>{const r=gt(t)?t.split("."):t;let i=0;for(;i<r.length-1;){if(dS(e))return{};const s=uS(r[i]);!e[s]&&n&&(e[s]=new n),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={},++i}return dS(e)?{}:{obj:e,k:uS(r[i])}},fS=(e,t,n)=>{const{obj:r,k:i}=zf(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let s=t[t.length-1],o=t.slice(0,t.length-1),a=zf(e,o,Object);for(;a.obj===void 0&&o.length;)s=`${o[o.length-1]}.${s}`,o=o.slice(0,o.length-1),a=zf(e,o,Object),a!=null&&a.obj&&typeof a.obj[`${a.k}.${s}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${s}`]=n},_U=(e,t,n,r)=>{const{obj:i,k:s}=zf(e,t,Object);i[s]=i[s]||[],i[s].push(n)},K0=(e,t)=>{const{obj:n,k:r}=zf(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},NU=(e,t,n)=>{const r=K0(e,n);return r!==void 0?r:K0(t,n)},PC=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?gt(e[r])||e[r]instanceof String||gt(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):PC(e[r],t[r],n):e[r]=t[r]);return e},Ol=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var kU={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const AU=e=>gt(e)?e.replace(/[&<>
392"'\/]/g,t=>kU[t]):e;class jU{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const CU=[" ",",","?","!",";"],EU=new jU(20),LU=(e,t,n)=>{t=t||"",n=n||"";const r=CU.filter(o=>t.indexOf(o)<0&&n.indexOf(o)<0);if(r.length===0)return!0;const i=EU.getRegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let s=!i.test(e);if(!s){const o=e.indexOf(n);o>0&&!i.test(e.substring(0,o))&&(s=!0)}return s},Yx=(e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const r=t.split(n);let i=e;for(let s=0;s<r.length;){if(!i||typeof i!="object")return;let o,a="";for(let l=s;l<r.length;++l)if(l!==s&&(a+=n),a+=r[l],o=i[a],o!==void 0){if(["string","number","boolean"].indexOf(typeof o)>-1&&l<r.length-1)continue;s+=l-s+1;break}i=o}return i},Sh=e=>e==null?void 0:e.replace(/_/g,"-"),PU={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var n,r;(r=(n=console==null?void 0:console[e])==null?void 0:n.apply)==null||r.call(n,console,t)}};class Y0{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||PU,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,i){return i&&!this.debug?null:(gt(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Y0(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Y0(this.logger,t)}}var so=new Y0;class Gg{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([i,s])=>{for(let o=0;o<s;o++)i(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([i,s])=>{for(let o=0;o<s;o++)i.apply(i,[t,...n])})}}class hS extends Gg{constructor(t,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r,i={}){var c,d;const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,o=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;t.indexOf(".")>-1?a=t.split("."):(a=[t,n],r&&(Array.isArray(r)?a.push(...r):gt(r)&&s?a.push(...r.split(s)):a.push(r)));const l=K0(this.data,a);return!l&&!n&&!r&&t.indexOf(".")>-1&&(t=a[0],n=a[1],r=a.slice(2).join(".")),l||!o||!gt(r)?l:Yx((d=(c=this.data)==null?void 0:c[t])==null?void 0:d[n],r,s)}addResource(t,n,r,i,s={silent:!1}){const o=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let a=[t,n];r&&(a=a.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(a=t.split("."),i=n,n=a[1]),this.addNamespaces(n),fS(this.data,a,i),s.silent||this.emit("added",t,n,r,i)}addResources(t,n,r,i={silent:!1}){for(const s in r)(gt(r[s])||Array.isArray(r[s]))&&this.addResource(t,n,s,r[s],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,s,o={silent:!1,skipCopy:!1}){let a=[t,n];t.indexOf(".")>-1&&(a=t.split("."),i=r,r=n,n=a[1]),this.addNamespaces(n);let l=K0(this.data,a)||{};o.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?PC(l,r,s):l={...l,...r}
vendor: 1,471 bytes, line 392
392,fS(this.data,a,l),o.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var TC={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(s=>{var o;t=((o=this.processors[s])==null?void 0:o.process(t,n,r,i))??t}),t}};const RC=Symbol("i18next/PATH_KEY");function TU(){const e=[],t=Object.create(null);let n;return t.get=(r,i)=>{var s;return(s=n==null?void 0:n.revoke)==null||s.call(n),i===RC?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)},Proxy.revocable(Object.create(null),t).proxy}function Eu(e,t){const{[RC]:n}=e(TU()),r=(t==null?void 0:t.keySeparator)??".",i=(t==null?void 0:t.nsSeparator)??":";if(n.length>1&&i){const s=t==null?void 0:t.ns,o=Array.isArray(s)?s:null;if(o&&o.length>1&&o.slice(1).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}const pS={},Ay=e=>!gt(e)&&typeof e!="boolean"&&typeof e!="number";class X0 extends Gg{constructor(t,n={}){super(),wU(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
392i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=so.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){const r={...n};if(t==null)return!1;const i=this.resolve(t,r);if((i==null?void 0:i.res)===void 0)return!1;const s=Ay(i.res);return!(r.returnObjects===!1&&s)}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let s=n.ns||this.options.defaultNS||[];const o=r&&t.indexOf(r)>-1,a=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!LU(t,r,i);if(o&&!a){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:gt(s)?[s]:s};const c=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(c[0])>-1)&&(s=c.shift()),t=c.join(i)}return{key:t,namespaces:gt(s)?[s]:s}}translate(t,n,r){let i=typeof n=="object"?{...n}:n;if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i=="object"&&(i={...i}),i||(i={}),t==null)return"";typeof t=="function"&&(t=Eu(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(D=>typeof D=="function"?Eu(D,{...this.options,...i}):String(D));const s=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:a,namespaces:l}=this.extractFromKey(t[t.length-1],i),c=l[l.length-1];let d=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;d===void 0&&(d=":");const h=i.lng||this.language,m=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((h==null?void 0:h.toLowerCase())==="cimode")return m?s?{res:`${c}${d}${a}`,usedKey:a,exactUsedKey:a,usedLng:h,usedNS:c,usedParams:this.getUsedParamsDetails(i)}:`${c}${d}${a}`:s?{res:a,usedKey:a,exactUsedKey:a,usedLng:h,usedNS:c,usedParams:this.getUsedParamsDetails(i)}:a;const f=this.resolve(t,i);let x=f==null?void 0:f.res;const v=(f==null?void 0:f.usedKey)||a,b=(f==null?void 0:f.exactUsedKey)||a,y=["[object Number]","[object Function]","[object RegExp]"],S=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,_=!this.i18nFormat||this.i18nFormat.handleAsObject,k=i.count!==void 0&&!gt(i.count),O=X0.hasDefaultValue(i),$=k?this.pluralResolver.getSuffix(h,i.count,i):"",U=i.ordinal&&k?this.pluralResolver.getSuffix(h,i.count,{ordinal:!1}):"",I=k&&!i.ordinal&&i.count===0,R=I&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${$}`]||i[`defaultValue${U}`]||i.defaultValue;let z=x;_&&!x&&O&&(z=R);const C=Ay(z),L=Object.prototype.toString.apply(z);if(_&&z&&C&&y.indexOf(L)<0&&!(gt(S)&&Array.isArray(z))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const D=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,z,{...i,ns:l}):`key '${a} (${this.language})' returned an object instead of string.`;return s?(f.res=D,f.usedParams=this.getUsedParamsDetails(i),f):D}if(o){const D=Array.isArray(z),F=D?[]:{},te=D?b:v;for(const re in z)if(Object.prototype.hasOwnProperty.call(z,re)){const ce=`${te}${o}${re}`;O&&!x?F[re]=this.translate(ce,{...i,defaultValue:Ay(R)?R[re]:void 0,joinArrays:!1,ns:l}):F[re]=this.translate(ce,{...i,joinArrays:!1,ns:l}),F[re]===ce&&(F[re]=z[re])}x=F}}else if(_&>(S)&&Array.isArray(x))x=x.join(S),x&&(x=this.extendTranslation(x,t,i,r));else{let D=!1,F=!1;!this.isValidLookup(x)&&O&&(D=!0,x=R),this.isValidLookup(x)||(F=!0,x=a);const re=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&F?void 0:x,ce=O&&R!==x&&this.options.updateMissing;if(F||D||ce){if(this.logger.log(ce?"updateKey":"missingKey",h,c,a,ce?R:x),o){const ue=this.resolve(a,{...i,keySeparator:!1});ue&&ue.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let G=[];const Q=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Q&&Q[0])for(let ue=0;ue<Q.length;ue++)G.push(Q[ue]);else this.options.saveMissingTo==="all"?G=this.languageUtils.toResolveHierarchy(i.lng||this.language):G.push(i.lng||this.language);const de=(ue,E,H)=>{var ee;const K=O&&H!==x?H:re;this.options.missingKeyHandler?this.options.missingKeyHandler(ue,c,E,K,ce,i):(ee=this.backendConnector)!=null&&ee.saveMissing&&this.backendConnector.saveMissing(ue,c,E,K,ce,i),this.emit
vendor: 20,306 bytes, line 392
392("missingKey",ue,c,E,x)};this.options.saveMissing&&(this.options.saveMissingPlurals&&k?G.forEach(ue=>{const E=this.pluralResolver.getSuffixes(ue,i);I&&i[`defaultValue${this.options.pluralSeparator}zero`]&&E.indexOf(`${this.options.pluralSeparator}zero`)<0&&E.push(`${this.options.pluralSeparator}zero`),E.forEach(H=>{de([ue],a+H,i[`defaultValue${H}`]||R)})}):de(G,a,R))}x=this.extendTranslation(x,t,i,f,r),F&&x===a&&this.options.appendNamespaceToMissingKey&&(x=`${c}${d}${a}`),(F||D)&&this.options.parseMissingKeyHandler&&(x=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}${d}${a}`:a,D?x:void 0,i))}return s?(f.res=x,f.usedParams=this.getUsedParamsDetails(i),f):x}extendTranslation(t,n,r,i,s){var l,c;if((l=this.i18nFormat)!=null&&l.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const d=gt(t)&&(((c=r==null?void 0:r.interpolation)==null?void 0:c.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let h;if(d){const f=t.match(this.interpolator.nestingRegexp);h=f&&f.length}let m=r.replace&&!gt(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),t=this.interpolator.interpolate(t,m,r.lng||this.language||i.usedLng,r),d){const f=t.match(this.interpolator.nestingRegexp),x=f&&f.length;h<x&&(r.nest=!1)}!r.lng&&i&&i.res&&(r.lng=this.language||i.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,(...f)=>(s==null?void 0:s[0])===f[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${n[0]}`),null):this.translate(...f,n),r)),r.interpolation&&this.interpolator.reset()}const o=r.postProcess||this.options.postProcess,a=gt(o)?[o]:o;return t!=null&&(a!=null&&a.length)&&r.applyPostProcessor!==!1&&(t=TC.handle(a,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t,n={}){let r,i,s,o,a;return gt(t)&&(t=[t]),Array.isArray(t)&&(t=t.map(l=>typeof l=="function"?Eu(l,{...this.options,...n}):l)),t.forEach(l=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(l,n),d=c.key;i=d;let h=c.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const m=n.count!==void 0&&!gt(n.count),f=m&&!n.ordinal&&n.count===0,x=n.context!==void 0&&(gt(n.context)||typeof n.context=="number")&&n.context!=="",v=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);h.forEach(b=>{var y,S;this.isValidLookup(r)||(a=b,!pS[`${v[0]}-${b}`]&&((y=this.utils)!=null&&y.hasLoadedNamespace)&&!((S=this.utils)!=null&&S.hasLoadedNamespace(a))&&(pS[`${v[0]}-${b}`]=!0,this.logger.warn(`key "${i}" for languages "${v.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),v.forEach(_=>{var $;if(this.isValidLookup(r))return;o=_;const k=[d];if(($=this.i18nFormat)!=null&&$.addLookupKeys)this.i18nFormat.addLookupKeys(k,d,_,b,n);else{let U;m&&(U=this.pluralResolver.getSuffix(_,n.count,n));const I=`${this.options.pluralSeparator}zero`,R=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(m&&(n.ordinal&&U.indexOf(R)===0&&k.push(d+U.replace(R,this.options.pluralSeparator)),k.push(d+U),f&&k.push(d+I)),x){const z=`${d}${this.options.contextSeparator||"_"}${n.context}`;k.push(z),m&&(n.ordinal&&U.indexOf(R)===0&&k.push(z+U.replace(R,this.options.pluralSeparator)),k.push(z+U),f&&k.push(z+I))}}let O;for(;O=k.pop();)this.isValidLookup(r)||(s=O,r=this.getResource(_,b,O,n))}))})}),{res:r,usedKey:i,exactUsedKey:s,usedLng:o,usedNS:a}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r,i={}){var s;return(s=this.i18nFormat)!=null&&s.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}getUsedParamsDetails(t={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!gt(t.replace);let i=r?t.replace:t;if(r&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const s of n)delete i[s]}return i}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}class mS{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=so.create("languageUtils")}getScriptPartFromCode(t){if(t=Sh(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Sh(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(gt(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getScriptPartFromCode(r);if(this.isSupportedCode(i))return n=i;const s=this.getLanguagePartFromCode(r);if(this.isSupportedCode(s))return n=s;n=this.options.supportedLngs.find(o=>{if(o===s)return o;if(!(o.indexOf("-")<0&&s.indexOf("-")<0)&&(o.indexOf("-")>0&&s.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===s||o.indexOf(s)===0&&s.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),gt(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),i=[],s=o=>{o&&(this.isSupportedCode(o)?i.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return gt(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):gt(t)&&s(this.formatLanguageCode(t)),r.forEach(o=>{i.indexOf(o)<0&&s(this.formatLanguageCode(o))}),i}}const gS={zero:0,one:1,two:2,few:3,many:4,other:5},yS={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class RU{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=so.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const r=Sh(t==="dev"?"en":t),i=n.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:r,type:i});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let o;try{o=new Intl.PluralRules(r,{type:i})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),yS;if(!t.match(/-|_/))return yS;const l=this.languageUtils.getLanguagePartFromCode(t);o=this.getRule(l,n)}return this.pluralRulesCache[s]=o,o}needsPlural(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,n,r={}){return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((i,s)=>gS[i]-gS[s]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):[]}getSuffix(t,n,r={}){const i=this.getRule(t,r);return i?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const xS=(e,t,n,r=".",i=!0)=>{let s=NU(e,t,n);return!s&&i&>(n)&&(s=Yx(e,n,r),s===void 0&&(s=Yx(t,n,r))),s},jy=e=>e.replace(/\$/g,"$$$$");class vS{constructor(t={}){var n;this.logger=so.create("interpolator"),this.options=t,this.format=((n=t==null?void 0:t.interpolation)==null?void 0:n.format)||(r=>r),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:s,prefixEscaped:o,suffix:a,suffixEscaped:l,formatSeparator:c,unescapeSuffix:d,unescapePrefix:h,nestingPrefix:m,nestingPrefixEscaped:f,nestingSuffix:x,nestingSuffixEscaped:v,nestingOptionsSeparator:b,maxReplaces:y,alwaysFormat:S}=t.interpolation;this.escape=n!==void 0?n:AU,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=s?Ol(s):o||"{{",this.suffix=a?Ol(a):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=d?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=m?Ol(m):f||Ol("$t("),this.nestingSuffix=x?Ol(x):v||Ol(")"),this.nestingOptionsSeparator=b||",",this.maxReplaces=y||1e3,this.alwaysFormat=S!==void 0?S:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>(n==null?void 0:n.source)===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,n,r,i){var f;let s,o,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=x=>{if(x.indexOf(this.formatSeparator)<0){const S=xS(n,l,x,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(S,void 0,r,{...i,...n,interpolationkey:x}):S}const v=x.split(this.formatSeparator),b=v.shift().trim(),y=v.join(this.formatSeparator).trim();return this.format(xS(n,l,b,this.options.keySeparator,this.options.ignoreJSONStructure),y,r,{...i,...n,interpolationkey:b})};this.resetRegExp();const d=(i==null?void 0:i.missingInterpolationHandler)||this.options.missingInterpolationHandler,h=((f=i==null?void 0:i.interpolation)==null?void 0:f.skipOnVariables)!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:x=>jy(x)},{regex:this.regexp,safeValue:x=>this.escapeValue?jy(this.escape(x)):jy(x)}].forEach(x=>{for(a=0;s=x.regex.exec(t);){const v=s[1].trim();if(o=c(v),o===void 0)if(typeof d=="function"){const y=d(t,s,i);o=gt(y)?y:""}else if(i&&Object.prototype.hasOwnProperty.call(i,v))o="";else if(h){o=s[0];continue}else this.logger.warn(`missed to pass in variable ${v} for interpolating ${t}`),o="";else!gt(o)&&!this.useRawValueToEscape&&(o=cS(o));const b=x.safeValue(o);if(t=t.replace(s[0],b),h?(x.regex.lastIndex+=o.length,x.regex.lastIndex-=s[0].length):x.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),t}nest(t,n,r={}){let i,s,o;const a=(l,c)=>{const d=this.nestingOptionsSeparator;if(l.indexOf(d)<0)return l;const h=l.split(new RegExp(`${Ol(d)}[ ]*{`));let m=`{${h[1]}`;l=h[0],m=this.interpolate(m,o);const f=m.match(/'/g),x=m.match(/"/g);(((f==null?void 0:f.length)??0)%2===0&&!x||((x==null?void 0:x.length)??0)%2!==0)&&(m=m.replace(/'/g,'"'));try{o=JSON.parse(m),c&&(o={...c,...o})}catch(v){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,v),`${l}${d}${m}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,l};for(;i=this.nestingRegexp.exec(t);){let l=[];o={...r},o=o.replace&&!gt(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;const c=/{.*}/.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(c!==-1&&(l=i[1].slice(c).split(this.formatSeparator).map(d=>d.trim()).filter(Boolean),i[1]=i[1].slice(0,c)),s=n(a.call(this,i[1].trim(),o),o),s&&i[0]===t&&!gt(s))return s;gt(s)||(s=cS(s)),s||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),s=""),l.length&&(s=l.reduce((d,h)=>this.format(d,h,r.lng,{...r,interpolationkey:i[1].trim()}),s.trim())),t=t.replace(i[0],s),this.regexp.lastIndex=0}return t}}const OU=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(o=>{if(o){const[a,...l]=o.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),d=a.trim();n[d]||(n[d]=c),c==="false"&&(n[d]=!1),c==="true"&&(n[d]=!0),isNaN(c)||(n[d]=parseInt(c,10))}})}return{formatName:t,formatOptions:n}},bS=e=>{const t={};return(n,r,i)=>{let s=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(s={...s,[i.interpolationkey]:void 0});const o=r+JSON.stringify(s);let a=t[o];return a||(a=e(Sh(r),i),t[o]=a),a(n)}},IU=e=>(t,n,r)=>e(Sh(n),r)(t);class MU{constructor(t={}){this.logger=so.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?bS:IU;this.formats={number:r((i,s)=>{const o=new Intl.NumberFormat(i,{...s});return a=>o.format(a)}),currency:r((i,s)=>{const o=new Intl.NumberFormat(i,{...s,style:"currency"});return a=>o.format(a)}),datetime:r((i,s)=>{const o=new Intl.DateTimeFormat(i,{...s});return a=>o.format(a)}),relativetime:r((i,s)=>{const o=new Intl.RelativeTimeFormat(i,{...s});return a=>o.format(a,s.range||"day")}),list:r((i,s)=>{const o=new Intl.ListFormat(i,{...s});return a=>o.format(a)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=bS(n)}format(t,n,r,i={}){const s=n.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(a=>a.indexOf(")")>-1)){const a=s.findIndex(l=>l.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,a)].join(this.formatSeparator)}return s.reduce((a,l)=>{var h;const{formatName:c,formatOptions:d}=OU(l);if(this.formats[c]){let m=a;try{const f=((h=i==null?void 0:i.formatParams)==null?void 0:h[i.interpolationkey])||{},x=f.locale||f.lng||i.locale||i.lng||r;m=this.formats[c](a,x,{...d,...i,...f})}catch(f){this.logger.warn(f)}return m}else this.logger.warn(`there was no format function for ${c}`);return a},t)}}const FU=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class DU extends Gg{constructor(t,n,r,i={}){var s,o;super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=so.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],(o=(s=this.backend)==null?void 0:s.init)==null||o.call(s,r,i.backend,i)}queueLoad(t,n,r,i){const s={},o={},a={},l={};return t.forEach(c=>{let d=!0;n.forEach(h=>{const m=`${c}|${h}`;!r.reload&&this.store.hasResourceBundle(c,h)?this.state[m]=2:this.state[m]<0||(this.state[m]===1?o[m]===void 0&&(o[m]=!0):(this.state[m]=1,d=!1,o[m]===void 0&&(o[m]=!0),s[m]===void 0&&(s[m]=!0),l[h]===void 0&&(l[h]=!0)))}),d||(a[c]=!0)}),(Object.keys(s).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(s),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const i=t.split("|"),s=i[0],o=i[1];n&&this.emit("failedLoading",s,o,n),!n&&r&&this.store.addResourceBundle(s,o,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const a={};this.queue.forEach(l=>{_U(l.loaded,[s],o),FU(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{a[c]||(a[c]={});const d=l.loaded[c];d.length&&d.forEach(h=>{a[c][h]===void 0&&(a[c][h]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r,i=0,s=this.retryTimeout,o){if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:s,callback:o});return}this.readingCalls++;const a=(c,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const h=this.waitingReads.shift();this.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(c&&d&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,i+1,s*2,o)},s);return}o(c,d)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const c=l(t,n);c&&typeof c.then=="function"?c.then(d=>a(null,d)).catch(a):a(null,c)}catch(c){a(c)}return}return l(t,n,a)}prepareLoading(t,n,r={},i){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();gt(t)&&(t=this.languageUtils.toResolveHierarchy(t)),gt(n)&&(n=[n]);const s=this.queueLoad(t,n,r,i);if(!s.toLoad.length)return s.pending.length||i(),null;s.toLoad.forEach(o=>{this.loadOne(o)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t,n=""){const r=t.split("|"),i=r[0],s=r[1];this.read(i,s,"read",void 0,void 0,(o,a)=>{o&&this.logger.warn(`${n}loading namespace ${s} for language ${i} failed`,o),!o&&a&&this.logger.log(`${n}loaded namespace ${s} for language ${i}`,a),this.loaded(t,o,a)})}saveMissing(t,n,r,i,s,o={},a=()=>{}){var l,c,d,h,m;if((c=(l=this.services)==null?void 0:l.utils)!=null&&c.hasLoadedNamespace&&!((h=(d=this.services)==null?void 0:d.utils)!=null&&h.hasLoadedNamespace(n))){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if((m=this.backend)!=null&&m.create){const f={...o,isUpdate:s},x=this.backend.create.bind(this.backend);if(x.length<6)try{let v;x.length===5?v=x(t,n,r,i,f):v=x(t,n,r,i),v&&typeof v.then=="function"?v.then(b=>a(null,b)).catch(a):a(null,v)}catch(v){a(v)}else x(t,n,r,i,a,f)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}const Cy=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),gt(e[1])&&(t.defaultValue=e[1]),gt(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];
392Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),wS=e=>{var t,n;return gt(e.ns)&&(e.ns=[e.ns]),gt(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),gt(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((n=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:n.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},hm=()=>{},BU=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},OC="__i18next_supportNoticeShown",zU=()=>!!(typeof globalThis<"u"&&globalThis[OC]||typeof process<"u"&&ky&&ky.I18NEXT_NO_SUPPORT_NOTICE||typeof process<"u"&&ky),UU=()=>{typeof globalThis<"u"&&(globalThis[OC]=!0)},VU=e=>{var t,n,r,i,s,o,a,l,c,d,h,m,f;return!!(((r=(n=(t=e==null?void 0:e.modules)==null?void 0:t.backend)==null?void 0:n.name)==null?void 0:r.indexOf("Locize"))>0||((a=(o=(s=(i=e==null?void 0:e.modules)==null?void 0:i.backend)==null?void 0:s.constructor)==null?void 0:o.name)==null?void 0:a.indexOf("Locize"))>0||(c=(l=e==null?void 0:e.options)==null?void 0:l.backend)!=null&&c.backends&&e.options.backend.backends.some(x=>{var v,b,y;return((v=x==null?void 0:x.name)==null?void 0:v.indexOf("Locize"))>0||((y=(b=x==null?void 0:x.constructor)==null?void 0:b.name)==null?void 0:y.indexOf("Locize"))>0})||(h=(d=e==null?void 0:e.options)==null?void 0:d.backend)!=null&&h.projectId||(f=(m=e==null?void 0:e.options)==null?void 0:m.backend)!=null&&f.backendOptions&&e.options.backend.backendOptions.some(x=>x==null?void 0:x.projectId))};class Uf extends Gg{constructor(t={},n){if(super(),this.options=wS(t),this.services={},this.logger=so,this.modules={external:[]},BU(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(gt(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=Cy();this.options={...r,...this.options,...wS(t)},this.options.interpolation={...r.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!VU(this)&&!zU()&&(typeof console<"u"&&typeof console.info<"u"&&console.info("ð i18next is made possible by our own product, Locize â consider powering your project with managed localization (AI, CDN, integrations): https://locize.com ð"),UU());const i=c=>c?typeof c=="function"?new c:c:null;if(!this.options.isClone){this.modules.logger?so.init(i(this.modules.logger),this.options):so.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:c=MU;const d=new mS(this.options);this.store=new hS(this.options.resources,this.options);const h=this.services;h.logger=so,h.resourceStore=this.store,h.languageUtils=d,h.pluralResolver=new RU(d,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),c&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(h.formatter=i(c),h.formatter.init&&h.formatter.init(h,this.options),this.options.interpolation.format=h.formatter.format.bind(h.formatter)),h.interpolator=new vS(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new DU(i(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",(f,...x)=>
vendor: 5,463 bytes, line 392
392{this.emit(f,...x)}),this.modules.languageDetector&&(h.languageDetector=i(this.modules.languageDetector),h.languageDetector.init&&h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=i(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new X0(this.services,this.options),this.translator.on("*",(f,...x)=>{this.emit(f,...x)}),this.modules.external.forEach(f=>{f.init&&f.init(this)})}if(this.format=this.options.interpolation.format,n||(n=hm),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=(...d)=>this.store[c](...d)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=(...d)=>(this.store[c](...d),this)});const a=gf(),l=()=>{const c=(d,h)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(h),n(d,h)};if(this.languages&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),a}loadResources(t,n=hm){var s,o;let r=n;const i=gt(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if((i==null?void 0:i.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const a=[],l=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(h=>{h!=="cimode"&&a.indexOf(h)<0&&a.push(h)})};i?l(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(d=>l(d)),(o=(s=this.options.preload)==null?void 0:s.forEach)==null||o.call(s,c=>l(c)),this.services.backendConnector.load(a,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(c)})}else r(null)}reloadResources(t,n,r){const i=gf();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=hm),this.services.backendConnector.reload(t,n,s=>{i.resolve(),r(s)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&TC.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;const r=gf();this.emit("languageChanging",t);const i=a=>{this.language=a,this.languages=this.services.languageUtils.toResolveHierarchy(a),this.resolvedLanguage=void 0,this.setResolvedLanguage(a)},s=(a,l)=>{l?this.isLanguageChangingTo===t&&(i(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,r.resolve((...c)=>this.t(...c)),n&&n(a,(...c)=>this.t(...c))},o=a=>{var d,h;!t&&!a&&this.services.languageDetector&&(a=[]);const l=gt(a)?a:a&&a[0],c=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(gt(a)?[a]:a);c&&(this.language||i(c),this.translator.language||this.translator.changeLanguage(c),(h=(d=this.services.languageDetector)==null?void 0:d.cacheUserLanguage)==null||h.call(d,c)),this.loadResources(c,m=>{s(m,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(t),r}getFixedT(t,n,r){const i=(s,o,...a)=>{let l;typeof o!="object"?l=this.options.overloadTranslationOptionHandler([s,o].concat(a)):l={...o},l.lng=l.lng||i.lng,l.lngs=l.lngs||i.lngs,l.ns=l.ns||i.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||i.keyPrefix);const c={...this.options,...l};typeof l.keyPrefix=="function"&&(l.keyPrefix=Eu(l.keyPrefix,c));const d=this.options.keySeparator||".";let h;return l.keyPrefix&&Array.isArray(s)?h=s.map(m=>(typeof m=="function"&&(m=Eu(m,c)),`${l.keyPrefix}${d}
392${m}`)):(typeof s=="function"&&(s=Eu(s,c)),h=l.keyPrefix?`${l.keyPrefix}${d}${s}`:s),this.t(h,l)};return gt(t)?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=r,i}t(...t){var n;return(n=this.translator)==null?void 0:n.translate(...t)}exists(...t){var n;return(n=this.translator)==null?void 0:n.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(a,l)=>{const c=this.services.backendConnector.state[`${a}|${l}`];return c===-1||c===0||c===2};if(n.precheck){const a=n.precheck(this,o);if(a!==void 0)return a}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,t)&&(!i||o(s,t)))}loadNamespaces(t,n){const r=gf();return this.options.ns?(gt(t)&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=gf();gt(t)&&(t=[t]);const i=this.options.preload||[],s=t.filter(o=>i.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return s.length?(this.options.preload=i.concat(s),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}dir(t){var i,s;if(t||(t=this.resolvedLanguage||(((i=this.languages)==null?void 0:i.length)>0?this.languages[0]:this.language)),!t)return"rtl";try{const o=new Intl.Locale(t);if(o&&o.getTextInfo){const a=o.getTextInfo();if(a&&a.direction)return a.direction}}catch{}const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=((s=this.services)==null?void 0:s.languageUtils)||new mS(Cy());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){const r=new Uf(t,n);return r.createInstance=Uf.createInstance,r}cloneInstance(t={},n=hm){const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},s=new Uf(i);if((t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(a=>{s[a]=this[a]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r){const a=Object.keys(this.store.data).reduce((l,c)=>(l[c]={...this.store.data[c]},l[c]=Object.keys(l[c]).reduce((d,h)=>(d[h]={...l[c][h]},d),l[c]),l),{});s.store=new hS(a,i),s.services.resourceStore=s.store}if(t.interpolation){const l={...Cy().interpolation,...this.options.interpolation,...t.interpolation},c={...i,interpolation:l};s.services.interpolator=new vS(c)}return s.translator=new X0(s.services,i),s.translator.on("*",(a,...l)=>{s.emit(a,...l)}),s.init(i,n),s.translator.options=i,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const zt=Uf.createInstance();zt.createInstance;zt.dir;zt.init;zt.loadResources;zt.reloadResources;zt.use;zt.changeLanguage;zt.getFixedT;zt.t;zt.exists;zt.setDefaultNamespace;zt.hasLoadedNamespace;zt.loadNamespaces;zt.loadLanguages;const $U=(e,t,n,r)=>{var s,o,a,l;const i=[n,{code:t,...r||{}}];if((o=(s=e==null?void 0:e.services)==null?void 0:s.logger)!=null&&o.forward)return e.services.logger.forward(i,"warn","react-i18next::",!0);_c(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),(l=(a=e==null?void 0:e.services)==null?void 0:a.logger)!=null&&l.warn?e.services.logger.warn(...i):console!=null&&console.warn&&console.warn(...i)},SS={},Xx=(e,t,n,r)=>{_c(n)&&SS[n]||(_c(n)&&(SS[n]=new Date),$U(e,t,n,r))},IC=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},Zx=(e,t,n)=>{e.loadNamespaces(t,IC(e,n))},_S=(e,t,n,r)=>{if(_c(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return Zx(e,n,r);
392n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,IC(e,r))},qU=(e,t,n={})=>!t.languages||!t.languages.length?(Xx(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,i)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!i(r.isLanguageChangingTo,e))return!1}}),_c=e=>typeof e=="string",HU=e=>typeof e=="object"&&e!==null,WU=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,GU={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"â¦","…":"â¦","/":"/","/":"/"},KU=e=>GU[e],YU=e=>e.replace(WU,KU);let Qx={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:YU,transDefaultProps:void 0};const XU=(e={})=>{Qx={...Qx,...e}},ZU=()=>Qx;let MC;const QU=e=>{MC=e},JU=()=>MC,eV={type:"3rdParty",init(e){XU(e.options.react),QU(e)}},tV=j.createContext();class nV{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var FC={exports:{}},DC={};/** 393 * @license React 394 * use-sync-external-store-shim.production.js 395 * 396 * Copyright (c) Meta Platforms, Inc. and affiliates. 397 * 398 * This source code is licensed under the MIT license found in the 399 * LICENSE file in the root directory of this source tree. 400 */var od=j;function rV(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var iV=typeof Object.is=="function"?Object.is:rV,sV=od.useState,oV=od.useEffect,aV=od.useLayoutEffect,lV=od.useDebugValue;function cV(e,t){var n=t(),r=sV({inst:{value:n,getSnapshot:t}}),i=r[0].inst,s=r[1];return aV(function(){i.value=n,i.getSnapshot=t,Ey(i)&&s({inst:i})},[e,n,t]),oV(function(){return Ey(i)&&s({inst:i}),e(function(){Ey(i)&&s({inst:i})})},[e]),lV(n),n}function Ey(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!iV(e,n)}catch{return!0}}function uV(e,t){return t()}var dV=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?uV:cV;DC.useSyncExternalStore=od.useSyncExternalStore!==void 0?od.useSyncExternalStore:dV;FC.exports=DC;var fV=FC.exports;const hV=(e,t)=>{if(_c(t))return t;if(HU(t)&&_c(t.defaultValue))return t.defaultValue;if(typeof e=="function")return"";if(Array.isArray(e)){const n=e[e.length-1];return typeof n=="function"?"":n}return e},pV={t:hV,ready:!1},mV=()=>()=>{},rn=(e,t={})=>{var R,z,C;const{i18n:n}=t,{i18n:r,defaultNS:i}=j.useContext(tV)||{},s=n||r||JU();s&&!s.reportNamespaces&&(s.reportNamespaces=new nV),s||Xx(s,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const o=j.useMemo(()=>{var L;return{...ZU(),...(L=s==null?void 0:s.options)==null?void 0:L.react,...t}},[s,t]),{useSuspense:a,keyPrefix:l}=o,c=e||i||((R=s==null?void 0:s.options)==null?void 0:R.defaultNS),d=_c(c)?[c]:c||["translation"],h=j.useMemo(()=>d,d);(C=(z=s==null?void 0:s.reportNamespaces)==null?void 0:z.addUsedNamespaces)==null||C.call(z,h);const m=j.useRef(0),f=j.useCallback(L=>{if(!s)return mV;const{bindI18n:D,bindI18nStore:F}=o,te=()=>{m.current+=1,L()};return D&&s.on(D,te),F&&s.store.on(F,te),()=>{D&&D.split(" ").forEach(re=>s.off(re,te)),F&&F.split(" ").forEach(re=>s.store.off(re,te))}},[s,o]),x=j.useRef(),v=j.useCallback(()=>{if(!s)return pV;const L=!!(s.isInitialized||s.initializedStoreOnce)&&h.every(G=>qU(G,s,o)),D=t.lng||s.language,F=m.current,te=x.current;if(te&&te.ready===L&&te.lng===D&&te.keyPrefix===l&&te.revision===F)return te;const ce={t:s.getFixedT(D,o.nsMode==="fallback"?h:h[0],l),ready:L,lng:D,keyPrefix:l,revision:F};return x.current=ce,ce},[s,h,l,o,t.lng]),[b,y]=j.useState(0),{t:S,ready:_}=fV.useSyncExternalStore(f,v,v);j.useEffect(()=>{if(s&&!_&&!a){const L=()=>y(D=>D+1);t.lng?_S(s,t.lng,h,L):Zx(s,h,L)}},[s,t.lng,h,_,a,b]);const k=s||{},O=j.useRef(null),$=j.useRef(),U=L=>{const D=Object.getOwnPropertyDescriptors(L);D.__original&&delete D.__original;const F=Object.create(Object.getPrototypeOf(L),D);if(!Object.prototype.hasOwnProperty.call(F,"__original"))try{Object.defineProperty(F,"__original",{value:L,writable:!1,enumerable:!1,
400configurable:!1})}catch{}return F},I=j.useMemo(()=>{const L=k,D=L==null?void 0:L.language;let F=L;L&&(O.current&&O.current.__original===L?$.current!==D?(F=U(L),O.current=F,$.current=D):F=O.current:(F=U(L),O.current=F,$.current=D));const te=!_&&!a?(...ce)=>(Xx(s,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),S(...ce)):S,re=[te,F,_];return re.t=te,re.i18n=F,re.ready=_,re},[S,k,_,k.resolvedLanguage,k.language,k.languages]);if(s&&a&&!_)throw new Promise(L=>{const D=()=>L();t.lng?_S(s,t.lng,h,D):Zx(s,h,D)});return I},gV=()=>{const{i18n:e,t}=rn(),n=e.language,r=n==="ar";return j.useEffect(()=>{const s=document.documentElement;r?(s.setAttribute("dir","rtl"),s.setAttribute("lang","ar")):(s.setAttribute("dir","ltr"),s.setAttribute("lang","en"))},[r]),{language:n,isRTL:r,changeLanguage:async s=>{try{await e.changeLanguage(s);const o=document.documentElement;s==="ar"?(o.setAttribute("dir","rtl"),o.setAttribute("lang","ar")):(o.setAttribute("dir","ltr"),o.setAttribute("lang","en")),localStorage.setItem("i18nextLng",s)}catch(o){console.error("Failed to change language:",o),await e.changeLanguage("en");const a=document.documentElement;a.setAttribute("dir","ltr"),a.setAttribute("lang","en")}},t}},NS=({variant:e="default",className:t})=>{const{language:n,changeLanguage:r}=gV(),i=()=>{r(n==="en"?"ar":"en")};return e==="mobile"?u.jsxs(Yt,{variant:"outline",size:"sm",onClick:i,className:kt("flex-1",t),children:[u.jsx(vx,{className:"w-4 h-4 mr-2"}),n.toUpperCase()]}):u.jsxs(Yt,{variant:"ghost",size:"sm",onClick:i,className:kt("items-center space-x-2 bg-secondary text-white hover:bg-secondary/10 hover:text-secondary transition-all",t),children:[u.jsx(vx,{className:"w-4 h-4"}),u.jsx("span",{className:"text-sm font-medium",children:n.toUpperCase()})]})},kS="/assets/ai-ros-logo-white-fZBk1RYv.png",AS="/assets/ai-ros-logo-dark-BH_cGQva.png",yV="/assets/ai-ros-logo-taupe-DnyU48DL.png",xV="/assets/ai-ros-mark-BodSRd0e.png",BC=({className:e="",variant:t="auto",size:n="md",showTagline:r=!1,markOnly:i=!1})=>{const s={sm:i?"h-8 w-8":"h-7 md:h-8",md:i?"h-10 w-10":"h-9 md:h-11",lg:i?"h-14 w-14":"h-12 md:h-14",xl:i?"h-20 w-20":"h-16 md:h-20"};return i?u.jsx("div",{className:`relative inline-flex items-center justify-center ${e}`,children:u.jsx("img",{src:xV,alt:"AI-ROS Mark",className:`${s[n]} w-auto object-contain transition-transform duration-300 group-hover:scale-105`})}):u.jsxs("div",{className:`inline-flex flex-col items-start ${e}`,children:[t==="auto"?u.jsxs(u.Fragment,{children:[u.jsx("img",{src:kS,alt:"AI-ROS",className:`hidden dark:block ${s[n]} w-auto object-contain transition-all duration-300 drop-shadow-[0_0_15px_rgba(120,68,234,0.3)]`}),u.jsx("img",{src:AS,alt:"AI-ROS",className:`block dark:hidden ${s[n]} w-auto object-contain transition-all duration-300`})]}):t==="light"?u.jsx("img",{src:kS,alt:"AI-ROS",className:`${s[n]} w-auto object-contain`}):t==="taupe"?u.jsx("img",{src:yV,alt:"AI-ROS",className:`${s[n]} w-auto object-contain`}):u.jsx("img",{src:AS,alt:"AI-ROS",className:`${s[n]} w-auto object-contain`}),r&&u.jsx("span",{className:"text-[10px] tracking-[0.2em] font-semibold text-ai-taupe mt-1 font-headings",children:"Innovating Today , Sustaining Tomorrow"})]})},Jo=()=>{const[e,t]=j.useState(!1),[n,r]=j.useState(!1),i=Ms(),{t:s}=rn("common");j.useEffect(()=>{const l=()=>{t(window.scrollY>20)};return window.addEventListener("scroll",l),()=>window.removeEventListener("scroll",l)},[]);const o=[{label:s("header.nav.home"),href:"/"},{label:s("header.nav.solutions"),href:"/solutions"},{label:s("header.nav.projects"),href:"/projects"},{label:s("header.nav.blog"),href:"/blog"},{label:s("header.nav.trainings"),href:"/trainings"},{label:s("header.nav.about"),href:"/about"},{label:s("header.nav.contact"),href:"/contact"}],a=l=>l==="/"?i.pathname==="/":i.pathname.startsWith(l);return u.jsx("header",{className:`fixed top-0 left-0 right-0 w-full z-[100] transition-all duration-300 ${e?"bg-background/90 dark:bg-deep-intelligence/90 backdrop-blur-xl border-b border-border/50 shadow-2xl py-2":"bg-background/60 dark:bg-deep-intelligence/60 backdrop-blur-md border-b border-transparent py-4"}`,children:u.jsxs("nav",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[u.jsxs("div",{className:"flex items-center justify-between h-12 md:h-14",children:[u.jsx(cr,{to:"/",className:"flex items-center group py-1","aria-label":"AI-ROS Home",children:u.jsx(BC,{size:"md",className:"transform group-hover:scale-[1.02] transition-transform duration-300"})}),u.jsx("div",{className:"hidden md:flex items-center gap-1.5 bg-muted/40 dark:bg-deep-intelligence-700/40 p-1.5 rounded-full border border-border/40 backdrop-blur-md",children:o.map(l
400=>{const c=a(l.href);return u.jsx(cr,{to:l.href,className:kt("px-4 py-1.5 text-sm font-medium transition-all rounded-full relative",c?"text-deep-intelligence-950 bg-ai-taupe font-headings font-bold shadow-md shadow-ai-taupe/25":"text-foreground/80 dark:text-gray-300 hover:text-foreground dark:hover:text-white hover:bg-muted/60 dark:hover:bg-white/10 font-medium"),children:l.label},l.label)})}),u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("div",{className:"hidden sm:flex",children:u.jsx(NS,{})}),u.jsx(lS,{}),u.jsx("button",{className:"md:hidden p-2 rounded-lg hover:bg-muted transition-colors",onClick:()=>r(!n),"aria-label":"Toggle menu",children:n?u.jsx(yc,{className:"w-6 h-6 text-foreground no-flip"}):u.jsx(xO,{className:"w-6 h-6 text-foreground no-flip"})})]})]}),n&&u.jsx("div",{className:"md:hidden py-4 px-4 mt-2 rounded-2xl animate-slide-in bg-background/95 dark:bg-deep-intelligence-900/95 backdrop-blur-xl border border-border/50 shadow-2xl",children:u.jsxs("div",{className:"flex flex-col space-y-1.5",children:[o.map(l=>{const c=a(l.href);return u.jsx(cr,{to:l.href,className:kt("px-4 py-2.5 text-sm font-medium rounded-xl transition-all",c?"text-deep-intelligence-950 bg-ai-taupe font-headings font-bold shadow-md shadow-ai-taupe/20":"text-foreground/80 dark:text-gray-300 hover:text-foreground dark:hover:text-white hover:bg-muted/50 dark:hover:bg-white/5 font-medium"),onClick:()=>r(!1),children:l.label},l.label)}),u.jsxs("div",{className:"flex items-center space-x-3 px-2 pt-4 border-t border-border/50",children:[u.jsx(NS,{variant:"mobile"}),u.jsx("div",{className:"flex-1 flex justify-end",children:u.jsx(lS,{})})]})]})})]})})},ea=()=>{const e=new Date().getFullYear(),{t}=rn("common"),[n,r]=j.useState(null),i=[{icon:bx,href:"https://www.linkedin.com/company/ai-ros/",label:"LinkedIn"},{icon:xx,href:"https://www.facebook.com/share/1EW9u4zaLh/?mibextid=wwXIfr",label:"Facebook"},{icon:gO,href:"https://www.instagram.com/airos.ai?igsh=bHR3dXh6bThkcHBi",label:"Instagram"}],s=[{label:t("footer.links.home"),href:"/"},{label:t("footer.links.solutions"),href:"/solutions"},{label:t("footer.links.projects"),href:"/projects"},{label:t("footer.links.blog"),href:"/blog"},{label:t("footer.links.about"),href:"/about"},{label:t("footer.links.contact"),href:"/contact"}],o=t("footer.solutions.data",{returnObjects:!0}),a=[Hh,K8,V8,qm,td],l=o.map((c,d)=>({label:c.title.split("â")[0].trim(),data:{icon:a[d],title:c.title,description:c.description,impact:c.impact,tech:c.tech}}));return u.jsxs("footer",{className:"relative bg-deep-intelligence-950 text-white overflow-hidden border-t border-white/10",children:[u.jsx("div",{className:"absolute top-0 left-1/4 w-96 h-96 bg-electric-purple/10 rounded-full blur-3xl pointer-events-none"}),u.jsx("div",{className:"absolute bottom-0 right-1/4 w-96 h-96 bg-neural-blue/10 rounded-full blur-3xl pointer-events-none"}),u.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 py-16 relative z-10",children:[u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-10 mb-12",children:[u.jsxs("div",{className:"space-y-6",children:[u.jsx("div",{children:u.jsx(BC,{size:"md",showTagline:!0,variant:"light"})}),u.jsx("p",{className:"text-sm text-gray-300 leading-relaxed font-body",children:t("footer.company.description")}),u.jsx("div",{className:"flex gap-3",children:i.map(c=>u.jsx("a",{href:c.href,target:"_blank",rel:"noopener noreferrer","aria-label":c.label,className:"w-10 h-10 rounded-xl bg-white/5 hover:bg-gradient-to-r hover:from-electric-purple hover:to-neural-blue text-gray-300 hover:text-white flex items-center justify-center transition-all duration-300 border border-white/10 hover:shadow-[0_0_15px_rgba(120,68,234,0.5)] hover:scale-105",children:u.jsx(c.icon,{className:"w-4 h-4 no-flip"})},c.label))})]}),u.jsxs("div",{children:[u.jsx("h3",{className:"font-headings font-bold text-lg text-white mb-5 tracking-wide",children:t("footer.links.quickLinks")}),u.jsx("ul",{className:"space-y-2.5 font-body text-sm",children:s.map(c=>u.jsx("li",{children:u.jsxs(cr,{to:c.href,className:"text-gray-300 hover:text-ai-taupe dark:hover:text-electric-purple-light transition-colors inline-flex items-center gap-1.5 group",children:[u.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-ai-taupe/40 group-hover:bg-electric-purple transition-colors"}),c.label]})},c.label))})]}),u.jsxs("div",{children:[u.jsx("h3",{className:"font-headings font-bold text-lg text-white mb-5 tracking-wide",children:t("footer.solutions.title")}),u.jsx("ul",{className:"space-y-2.5 font-body text-sm",children:l.map(c=>u.jsx("li",{children:u.jsxs("button",{onClick:()=>r(c.data),className:"text-gray-300 hover:text-ai-taupe dark:hover:text-electric-purple-light transition-colors text-left flex items-center gap-1.5 group",children:[u.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-ai-taupe/40 group-hover:bg-electric-purple transition-colors"}),c.label]})},c.label))})]}),u.jsxs("div",{children:[u.jsx("h3",{className:"font-headings font-bold text-lg text-white mb-5 tracking-wide",children:t("footer.contact.title")}),u.jsxs("ul",{className:"space-y-3.5 font-body text-sm",children:[u.jsxs("li",{className:"flex items-center gap-3",children:[u.jsx("div",{className:"w-8 h-8 rounded-lg bg-white/5 flex items-center justify-center border border-white/10 text-ai-taupe flex-shrink-0",children:u.jsx(q8,{className:"w-4 h-4 no-flip"})}),u.jsx("a",{href:"mailto:[email protected]",className:"text-gray-300 hover:text-white transition-colors",children:"[email protected]"})]}),u.jsxs("li",{className:"flex items-start gap-3",children:[u.jsx("div",{className:"w-8 h-8 rounded-lg bg-white/5 flex items-center justify-center border border-white/10 text-ai-taupe flex-shrink-0 mt-0.5",children:u.jsx(H8,{className:"w-4 h-4 no-flip"})}),u.jsxs("div",{className:"flex flex-col space-y-1 text-xs text-gray-300",children:[u.jsxs("a",{href:"tel:+201021183564",className:"hover:text-white transition-colors",dir:"ltr",children:[u.jsx("span",{className:"text-ai-taupe font-semibold mr-1.5",children:"EG:"}),"+20 10 21183564"]}),u.jsxs("a",{href:"tel:+966598366584",className:"hover:text-white transition-colors",dir:"ltr",children:[u.jsx("span",{className:"text-ai-taupe font-semibold mr-1.5",children:"KSA:"}),"+966 59 836 6584"]}),u.jsxs("a",{href:"tel:+971523229278",className:"hover:text-white transition-colors",dir:"ltr",children:[u.jsx("span",{className:"text-ai-taupe font-semibold mr-1.5",children:"UAE:"}),"+971 52 322 9278"]})]})]}),u.jsxs("li",{className:"flex items-start gap-3",children:[u.jsx("div",{className:"w-8 h-8 rounded-lg bg-white/5 flex items-center justify-center border border-white/10 text-ai-taupe flex-shrink-0 mt-0.5",children:u.jsx(H5,{className:"w-4 h-4 no-flip"})}),u.jsx("div",{className:"text-xs text-gray-300 leading-relaxed",children:"Cairo, EGYPT | Riyadh, KSA | Abu Dhabi, UAE"})]})]})]})]}),u.jsx("div",{className:"pt-8 border-t border-white/10 font-body text-sm",children:u.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center space-y-4 md:space-y-0",children:[u.jsx("p",{className:"text-gray-400",children:t("footer.copyright",{year:e})}),u.jsxs("div",{className:"flex gap-6",children:[u.jsx("a",{href:"#",className:"text-gray-400 hover:text-ai-taupe transition-colors",children:t("footer.legal.privacy")}),u.jsx("a",{href:"#",className:"text-gray-400 hover:text-ai-taupe transition-colors",children:t("footer.legal.terms")})]})]})})]}),n&&u.jsx("div",{className:"fixed inset-0 z-[200] flex items-center justify-center p-4 bg-black/70 backdrop-blur-sm animate-fade-in",onClick:()=>r(null),children:u.jsxs("div",{className:"relative bg-card rounded-3xl max-w-5xl w-full max-h-[90vh] overflow-y-auto shadow-2xl border-2 border-secondary/30 animate-scale-in",onClick:c=>c.stopPropagation(),children:[u.jsx(Yt,{variant:"ghost",size:"sm",onClick:()=>r(null),className:"absolute top-4 ltr:right-4 rtl:left-4 z-10 bg-background/80 hover:bg-background",children:u.jsx(yc,{className:"w-5 h-5 no-flip"})}),u.jsxs("div",{className:"p-8 md:p-12",children:[u.jsxs("div",{className:"flex items-center gap-6 mb-8",children:[u.jsxs("div",{className:"relative",children:[u.jsx("div",{className:"absolute inset-0 text-secondary opacity-20 blur-2xl rounded-full"}),u.jsx("div",{className:"relative p-4 rounded-2xl bg-gradient-to-br from-card to-muted border-2 border-secondary/20 shadow-lg",children:u.jsx(n.icon,{className:"w-12 h-12 text-secondary"})})]}),u.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground",children:n.title})]}),u.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[u.jsxs("div",{children:[u.jsxs("h3",{className:"text-lg font-semibold text-secondary mb-4 flex items-center gap-2",children:[u.jsx(Qi,{className:"w-5 h-5"}),t("footer.modal.description")]}),u.jsx("p",{className:"text-muted-foreground leading-relaxed",children:n.description})]}),u.jsxs("div",{className:"space-y-6",children:[u.jsxs("div",{className:"p-6 rounded-2xl bg-gradient-to-br from-muted/80 to-muted/40 backdrop-blur-sm border border-secondary/20",children:[u.jsxs("h3",{className:"text-lg font-semibold text-secondary mb-3 flex items-center gap-2",children:[u.jsx(Qi,{className:"w-5 h-5"}),t("footer.modal.impact")]}),u.jsx("p",{className:"text-foreground font-medium",children:n.impact})]}),u.jsxs("div",{className:"p-6 rounded-2xl bg-gradient-to-br from-muted/80 to-muted/40 backdrop-blur-sm border border-secondary/20",children:[u.jsxs("h3",{className:"text-lg font-semibold text-secondary mb-3 flex items-center gap-2",children:[u.jsx(Qi,{className:"w-5 h-5"}),t("footer.modal.techStack")]}),u.jsx("p",{className:"text-foreground font-medium",children:n.tech})]})]})]})]})]})})]})};function Lc({className:e="",opacity:t=1}){return u.jsxs("div",{className:`site-background fixed inset-0 pointer-events-none -z-10 overflow-hidden ${e}`,style:{opacity:t},"aria-hidden":"true",children:[u.jsx("div",{className:"absolute inset-0 bg-[#06054b]"}),u.jsx("div",{className:"site-background__wash absolute inset-0 bg-[radial-gradient(circle_at_16%_16%,rgba(172,129,129,0.22),transparent_35%),radial-gradient(circle_at_84%_70%,rgba(201,169,89,0.18),transparent_30%),linear-gradient(180deg,rgba(6,5,75,0.2),rgba(3,2,38,0.92)_85%)]"}),u.jsx("div",{className:"site-background__grain absolute inset-0 opacity-20 bg-[radial-gradient(rgba(248,248,255,0.24)_0.5px,transparent_0.65p
400x)] [background-size:5px_5px] mix-blend-soft-light"}),u.jsxs("svg",{className:"site-background__routes absolute w-[120%] -left-[10%] bottom-0 h-[75%] overflow-visible fill-none stroke-[#c9a959]/30 [stroke-dasharray:3_12]",viewBox:"0 0 1440 1100",preserveAspectRatio:"none",children:[u.jsx("path",{d:"M-80 744C192 644 292 830 534 715s195-298 456-250 298 152 530-38",strokeWidth:"1.2"}),u.jsx("path",{d:"M-10 914c244-139 391 30 613-154 180-149 242-88 378-179 169-112 245 5 507-137",strokeWidth:"1"}),u.jsx("path",{d:"M50 400C300 350 450 520 720 440s380-180 620-110",strokeWidth:"0.8",opacity:"0.6"}),u.jsx("path",{d:"M-40 250C220 180 500 320 800 220s400-80 680-20",strokeWidth:"0.6",opacity:"0.4"}),u.jsx("circle",{cx:"244",cy:"796",r:"5",fill:"#c9a959",stroke:"rgba(248,248,255,0.6)",strokeWidth:"1.5"}),u.jsx("circle",{cx:"602",cy:"683",r:"4",fill:"#c9a959",stroke:"rgba(248,248,255,0.6)",strokeWidth:"1.5"}),u.jsx("circle",{cx:"992",cy:"484",r:"6",fill:"#c9a959",stroke:"rgba(248,248,255,0.6)",strokeWidth:"1.5"}),u.jsx("circle",{cx:"1274",cy:"570",r:"4",fill:"#c9a959",stroke:"rgba(248,248,255,0.6)",strokeWidth:"1.5"}),u.jsx("circle",{cx:"720",cy:"440",r:"4",fill:"#c9a959",stroke:"rgba(248,248,255,0.6)",strokeWidth:"1.5"})]})]})}const vb=j.createContext({});function ul(e){const t=j.useRef(null);return t.current===null&&(t.current=e()),t.current}const vV=typeof window<"u",ad=vV?j.useLayoutEffect:j.useEffect,Kg=j.createContext(null);function bb(e,t){e.indexOf(t)===-1&&e.push(t)}function Z0(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Os=(e,t,n)=>n>t?t:n<e?e:n;let Yg=()=>{},Xo=()=>{};const dl={},zC=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),UC=e=>typeof e=="object"&&e!==null,VC=e=>/^0[^.\s]+$/u.test(e);function $C(e){let t;return()=>(t===void 0&&(t=e()),t)}const mi=e=>e,Qh=(...e)=>e.reduce((t,n)=>r=>n(t(r))),ld=(e,t,n)=>{const r=t-e;return r?(n-e)/r:1};class wb{constructor(){this.subscriptions=[]}add(t){return bb(this.subscriptions,t),()=>Z0(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const gi=e=>e*1e3,ts=e=>e/1e3,Sb=(e,t)=>t?e*(1e3/t):0,qC=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,bV=1e-7,wV=12;function SV(e,t,n,r,i){let s,o,a=0;do o=t+(n-t)/2,s=qC(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>bV&&++a<wV);return o}function Jh(e,t,n,r){if(e===t&&n===r)return mi;const i=s=>SV(s,0,1,e,n);return s=>s===0||s===1?s:qC(i(s),t,r)}const HC=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,WC=e=>t=>1-e(1-t),GC=Jh(.33,1.53,.69,.99),_b=WC(GC),KC=HC(_b),YC=e=>e>=1?1:(e*=2)<1?.5*_b(e):.5*(2-Math.pow(2,-10*(e-1))),Nb=e=>1-Math.sin(Math.acos(e)),XC=WC(Nb),ZC=HC(Nb),_V=Jh(.42,0,1,1),NV=Jh(0,0,.58,1),QC=Jh(.42,0,.58,1),kV=e=>Array.isArray(e)&&typeof e[0]!="number",JC=e=>Array.isArray(e)&&typeof e[0]=="number",jS={linear:mi,easeIn:_V,easeInOut:QC,easeOut:NV,circIn:Nb,circInOut:ZC,circOut:XC,backIn:_b,backInOut:KC,backOut:GC,anticipate:YC},AV=e=>typeof e=="string",CS=e=>{if(JC(e)){Xo(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,i]=e;return Jh(t,n,r,i)}else if(AV(e))return Xo(jS[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),jS[e];return e},pm=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function jV(e){let t=new Set,n=new Set,r=!1,i=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(c){s.has(c)&&(l.schedule(c),e()),c(o)}const l={schedule:(c,d=!1,h=!1)=>{const f=h&&r?t:n;return d&&s.add(c),f.add(c),c},cancel:c=>{n.delete(c),s.delete(c)},process:c=>{if(o=c,r){i=!0;return}r=!0;const d=t;t=n,n=d,t.forEach(a),t.clear(),r=!1,i&&(i=!1,l.process(c))}};return l}const CV=40;function eE(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=pm.reduce((_,k)=>(_[k]=jV(s),_),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:d,update:h,preRender:m,render:f,postRender:x}=o,v=()=>{const _=dl.useManualTiming,k=_?i.timestamp:performance.now();n=!1,_||(i.delta=r?1e3/60:Math.max(Math.min(k-i.timestamp,CV),1)),i.timestamp=k,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),d.process(i),h.process(i),m.process(i),f.process(i),x.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(v))},b=()=>{n=!0,r=!0,i.isProcessing||e(v)};return{schedule:pm.reduce((_,k)=>{const O=o[k];return _[k]=($,U=!1,I=!1)=>(n||b(),O.schedule($,U,I)),_},{}),cancel:_=>{for(let k=0;k<pm.length;k++)o[pm[k]].cancel(_)},state:i,steps:o}}const{schedule:Vt,cancel:ss,state:fr,steps:Ly}=eE(typeof requestAnimationFrame<"u"?requestAnimationFrame:mi,!0);let Ym;function EV(){Ym=void 0}const Xr={now:()=>(Ym===void 0&&Xr.set(fr.isProcessing||dl.useManualTiming?fr.timestamp:performance.now()),Ym),set:e=>{Ym=e,queueMicrotask(EV)}},tE=e=>t=>typeof t=="string"&&t.startsWith(e),nE=tE("--"),LV=tE("var(--"),kb=e=>LV(e)?PV.test(e.split("/*")[0].trim()):!1,PV=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ES(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Nd={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},_h={...Nd,transform:e=>Os(0,1,e)},mm={...Nd,default:1},Vf=e=>Math.round(e*1e5)/1e5,Ab=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function TV(e){return e==null}const RV=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,jb=(e,t)=>
vendor: 25,700 bytes, line 400
400n=>!!(typeof n=="string"&&RV.test(n)&&n.startsWith(e)||t&&!TV(n)&&Object.prototype.hasOwnProperty.call(n,t)),rE=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(Ab);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},OV=e=>Os(0,255,e),Py={...Nd,transform:e=>Math.round(OV(e))},Hl={test:jb("rgb","red"),parse:rE("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Py.transform(e)+", "+Py.transform(t)+", "+Py.transform(n)+", "+Vf(_h.transform(r))+")"};function IV(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Jx={test:jb("#"),parse:IV,transform:Hl.transform},ep=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Mo=ep("deg"),co=ep("%"),Ve=ep("px"),MV=ep("vh"),FV=ep("vw"),LS={...co,parse:e=>co.parse(e)/100,transform:e=>co.transform(e*100)},gu={test:jb("hsl","hue"),parse:rE("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+co.transform(Vf(t))+", "+co.transform(Vf(n))+", "+Vf(_h.transform(r))+")"},Xn={test:e=>Hl.test(e)||Jx.test(e)||gu.test(e),parse:e=>Hl.test(e)?Hl.parse(e):gu.test(e)?gu.parse(e):Jx.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Hl.transform(e):gu.transform(e),getAnimatableNone:e=>{const t=Xn.parse(e);return t.alpha=0,Xn.transform(t)}},DV=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function BV(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Ab))==null?void 0:t.length)||0)+(((n=e.match(DV))==null?void 0:n.length)||0)>0}const iE="number",sE="color",zV="var",UV="var(",PS="${}",VV=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function cd(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=t.replace(VV,l=>(Xn.test(l)?(r.color.push(s),i.push(sE),n.push(Xn.parse(l))):l.startsWith(UV)?(r.var.push(s),i.push(zV),n.push(l)):(r.number.push(s),i.push(iE),n.push(parseFloat(l))),++s,PS)).split(PS);return{values:n,split:a,indexes:r,types:i}}function $V(e){return cd(e).values}function oE({split:e,types:t}){const n=e.length;return r=>{let i="";for(let s=0;s<n;s++)if(i+=e[s],r[s]!==void 0){const o=t[s];o===iE?i+=Vf(r[s]):o===sE?i+=Xn.transform(r[s]):i+=r[s]}return i}}function qV(e){return oE(cd(e))}const HV=e=>typeof e=="number"?0:Xn.test(e)?Xn.getAnimatableNone(e):e,WV=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:HV(e);function GV(e){const t=cd(e);return oE(t)(t.values.map((r,i)=>WV(r,t.split[i])))}const Es={test:BV,parse:$V,createTransformer:qV,getAnimatableNone:GV};function Ty(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function KV({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=Ty(l,a,e+1/3),s=Ty(l,a,e),o=Ty(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function Q0(e,t){return n=>n>0?t:e}const cn=(e,t,n)=>e+(t-e)*n,Ry=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},YV=[Jx,Hl,gu],XV=e=>YV.find(t=>t.test(e));function TS(e){const t=XV(e);if(Yg(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===gu&&(n=KV(n)),n}const RS=(e,t)=>{const n=TS(e),r=TS(t);if(!n||!r)return Q0(e,t);const i={...n};return s=>(i.red=Ry(n.red,r.red,s),i.green=Ry(n.green,r.green,s),i.blue=Ry(n.blue,r.blue,s),i.alpha=cn(n.alpha,r.alpha,s),Hl.transform(i))},ev=new Set(["none","hidden"]);function ZV(e,t){return ev.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function QV(e,t){return n=>cn(e,t,n)}function Cb(e){return typeof e=="number"?QV:typeof e=="string"?kb(e)?Q0:Xn.test(e)?RS:t$:Array.isArray(e)?aE:typeof e=="object"?Xn.test(e)?RS:JV:Q0}function aE(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>Cb(s)(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function JV(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Cb(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function e$(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],o=e.indexes[s][r[s]],a=e.values[o]??0;n[i]=a,r[s]++}return n}const t$=(e,t)=>{const n=Es.createTransformer(t),r=cd(e),i=cd(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?ev.has(e)&&!i.values.length||ev.has(t)&&!r.values.length?ZV(e,t):Qh(aE(e$(r,i),i.values),n):(Yg(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Q0(e,t))};function lE(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?cn(e,t,n):Cb(e)(e,t)}const n$=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Vt.update(t,n),stop:()=>ss(t),now:()=>fr.isProcessing?fr.timestamp:Xr.now()}},cE=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=Math.round(e(s/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},J0=2e4;function Eb(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<J0;)t+=n,r=e.next(t);return t>=J0?1/0:t}function r$(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(Eb(r),J0);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:ts(i)}}const Nn={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function tv(e,t){return e*Math.sqrt(1-t*t)}const i$=12;function s$(e,t,n){let r=n;for(let i=1;i<i$;i++)r=r-e(r)/t(r);return r}const Oy=.001;function o$({duration:e=Nn.duration,bounce:t=Nn.bounce,velocity:n=Nn.velocity,mass:r=Nn.mass}){let i,s;Yg(e<=gi(Nn.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=Os(Nn.minDamping,Nn.maxDamping,o),e=Os(Nn.minDuration,Nn.maxDuration,ts(e)),o<1?(i=c=>{const d=c*o,h=d*e,m=d-n,f=tv(c,o),x=Math.exp(-h);return Oy-m/f*x},s=c=>{const h=c*o*e,m=h*n+n,f=Math.pow(o,2)*Math.pow(c,2)*e,x=Math.exp(-h),v=tv(Math.pow(c,2),o);return(-i(c)+Oy>0?-1:1)*((m-f)*x)/v}):(i=c=>{const d=Math.exp(-c*e),h=(c-n)*e+1;return-Oy+d*h},s=c=>{const d=Math.exp(-c*e),h=(n-c)*(e*e);return d*h});const a=5/e,l=s$(i,s,a);if(e=gi(e),isNaN(l))return{stiffness:Nn.stiffness,damping:Nn.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const a$=["duration","bounce"],l$=["stiffness","damping","mass"];function OS(e,t){return t.some(n=>e[n]!==void 0)}function c$(e){let t={velocity:Nn.velocity,stiffness:Nn.stiffness,damping:Nn.damping,mass:Nn.mass,isResolvedFromDuration:!1,...e};if(!OS(e,l$)&&OS(e,a$))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Os(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Nn.mass,stiffness:i,damping:s}}else{const n=o$({...e,velocity:0});t={...t,...n,mass:Nn.mass},t.isResolvedFromDuration=!0}return t}function eg(e=Nn.visualDuration,t=Nn.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:c,mass:d,duration:h,velocity:m,isResolvedFromDuration:f}=c$({...n,velocity:-ts(n.velocity||0)}),x=m||0,v=c/(2*Math.sqrt(l*d)),b=o-s,y=ts(Math.sqrt(l/d)),S=Math.abs(b)<5;r||(r=S?Nn.restSpeed.granular:Nn.restSpeed.default),i||(i=S?Nn.restDelta.granular:Nn.restDelta.default);let _,k,O,$,U,I;if(v<1)O=tv(y,v),$=(x+v*y*b)/O,_=z=>{const C=Math.exp(-v*y*z);return o-C*($*Math.sin(O*z)+b*Math.cos(O*z))},U=v*y*$+b*O,I=v*y*b-$*O,k=z=>Math.exp(-v*y*z)*(U*Math.sin(O*z)+I*Math.cos(O*z));else if(v===1){_=C=>o-Math.exp(-y*C)*(b+(x+y*b)*C);const z=x+y*b;k=C=>Math.exp(-y*C)*(y*z*C-x)}else{const z=y*Math.sqrt(v*v-1);_=F=>{const te=Math.exp(-v*y*F),re=Math.min(z*F,300);return o-te*((x+v*y*b)*Math.sinh(re)+z*b*Math.cosh(re))/z};const C=(x+v*y*b)/z,L=v*y*C-b*z,D=v*y*b-C*z;k=F=>{const te=Math.exp(-v*y*F),re=Math.min(z*F,300);return te*(L*Math.sinh(re)+D*Math.cosh(re))}}const R={calculatedDuration:f&&h||null,velocity:z=>gi(k(z)),next:z=>{if(!f&&v<1){const L=Math.exp(-v*y*z),D=Math.sin(O*z),F=Math.cos(O*z),te=o-L*($*D+b*F),re=gi(L*(U*D+I*F));return a.done=Math.abs(re)<=r&&Math.abs(o-te)<=i,a.value=a.done?o:te,a}const C=_(z);if(f)a.done=z>=h;else{const L=gi(k(z));a.done=Math.abs(L)<=r&&Math.abs(o-C)<=i}return a.value=a.done?o:C,a},toString:()=>{const z=Math.min(Eb(R),J0),C=cE(L=>R.next(z*L).value,z,30);return z+"ms "+C},toTransition:()=>{}};return R}eg.applyToOptions=e=>{const t=r$(e,100,eg);return e.ease=t.ease,e.duration=gi(t.duration),e.type="keyframes",e};const u$=5;function uE(e,t,n){const r=Math.max(t-u$,0);return Sb(n-e(r),t-r)}function nv({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:d}){const h=e[0],m={done:!1,value:h},f=I=>a!==void 0&&I<a||l!==void 0&&I>l,x=I=>a===void 0?l:l===void 0||Math.abs(a-I)<Math.abs(l-I)?a:l;let v=n*t;const b=h+v,y=o===void 0?b:o(b);y!==b&&(v=y-h);const S=I=>-v*Math.exp(-I/r),_=I=>y+S(I),k=I=>{const R=S(I),z=_(I);m.done=Math.abs(R)<=c,m.value=m.done?y:z};let O,$;const U=I=>{f(m.value)&&(O=I,$=eg({keyframes:[m.value,x(m.value)],velocity:uE(_,I,m.value),damping:i,stiffness:s,restDelta:c,restSpeed:d}))};return U(0),{calculatedDuration:null,next:I=>{let R=!1;return!$&&O===void 0&&(R=!0,k(I),U(I)),O!==void 0&&I>=O?$.next(I-O):(!R&&k(I),m)}}}function d$(e,t,n){const r=[],i=n||dl.mix||lE,s=e.length-1;for(let o=0;o<s;o++){let a=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||mi:t;a=Qh(l,a)}r.push(a)}return r}function Lb(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(Xo(s===t.length,"Both input and output ranges must be the same length","range-length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=d$(t,r,i),l=a.length,c=d=>{if(o&&d<e[0])return t[0];let h=0;if(l>1)for(;h<e.length-2&&!(d<e[h+1]);h++);const m=ld(e[h],e[h+1],d);return a[h](m)};return n?d=>c(Os(e[0],e[s-1],d)):c}function f$(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=ld(0,t,r);e.push(cn(n,1,i))}}function dE(e){const t=[0];return f$(t,e.length-1),t}function h$(e,t){return e.map(n=>n*t)}function p$(e,t){return e.map(()=>t||QC).splice(0,e.length-1)}function $f({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=kV(r)?r.map(CS):CS(r),s={done:!1,value:t[0]},o=h$(n&&n.length===t.length?n:dE(t),e),a=Lb(o,t,{ease:Array.isArray(i)?i:p$(t,i)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const m$=e=>e!==null;function Xg(e,{repeat:t,repeatType:n="loop"},r,i=1){const s=e.filter(m$),a=i<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!a||r===void 0?s[a]:r}const g$={decay:nv,inertia:nv,tween:$f,keyframes:$f,spring:eg};function fE(e){typeof e.type=="string"&&(e.type=g$[e.type])}class Pb{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const y$=e=>e/100;class tg extends Pb{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==Xr.now()&&this.tick(Xr.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;fE(t);const{type:n=$f,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=t;let{keyframes:a}=t;const l=n||$f;l!==$f&&typeof a[0]!="number"&&(this.mixKeyframes=Qh(y$,lE(a[0],a[1])),a=[0,100]);const c=l({...t,keyframes:a});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=Eb(c));const{calculatedDuration:d}=c;this.calculatedDuration=d,this.resolvedDuration=d+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=c}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:d,repeat:h,repeatType:m,repeatDelay:f,type:x,onUpdate:v,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const y=this.currentTime-c*(this.playbackSpeed>=0?1:-1),S=this.playbackSpeed>=0?y<0:y>i;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let _=this.currentTime,k=r;if(h){const I=Math.min(this.currentTime,i)/a;let R=Math.floor(I),z=I%1;!z&&I>=1&&(z=1),z===1&&R--,R=Math.min(R,h+1),!!(R%2)&&(m==="reverse"?(z=1-z,f&&(z-=f/a)):m==="mirror"&&(k=o)),_=Os(0,1,z)*a}let O;S?(this.delayState.value=d[0],O=this.delayState):O=k.next(_),s&&!S&&(O.value=s(O.value));let{done:$}=O;!S&&l!==null&&($=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const U=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&$);return U&&x!==nv&&(O.value=Xg(d,this.options,b,this.speed)),v&&v(O.value),U&&this.finish(),O}then(t,n){return this.finished.then(t,n)}get duration(){return ts(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ts(t)}get time(){return ts(this.currentTime)}set time(t){t=gi(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return uE(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(Xr.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=ts(this.currentTime))}play(){var i,s;if(this.isStopped)return;const{driver:t=n$,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(s=(i=this.options).onPlay)==null||s.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Xr.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function x$(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Wl=e=>e*180/Math.PI,rv=e=>{const t=Wl(Math.atan2(e[1],e[0]));return iv(t)},v$={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:rv,rotateZ:rv,skewX:e=>Wl(Math.atan(e[1])),skewY:e=>Wl(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},iv=e=>(e=e%360,e<0&&(e+=360),e),IS=rv,MS=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),FS=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),b$={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:MS,scaleY:FS,scale:e=>(MS(e)+FS(e))/2,rotateX:e=>iv(Wl(Math.atan2(e[6],e[5]))),rotateY:e=>iv(Wl(Math.atan2(-e[2],e[0]))),rotateZ:IS,rotate:IS,skewX:e=>Wl(Math.atan(e[4])),skewY:e=>Wl(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function sv(e){return e.includes("scale")?1:0}function ov(e,t){if(!e||e==="none")return sv(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=b$,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=v$,i=a}if(!i)return sv(t);const s=r[t],o=i[1].split(",").map(S$);return typeof s=="function"?s(o):o[s]}const w$=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return ov(n,t)};function S$(e){return parseFloat(e.trim())}const kd=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ad=new Set([...kd,"pathRotation"]),DS=e=>e===Nd||e===Ve,_$=new Set(["x","y","z"]),N$=kd.filter(e=>!_$.has(e));function k$(e){const t=[];return N$.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Ua={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const i=e.max-e.min;return r==="border-box"?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const i=e.max-e.min;return r==="border-box"?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>ov(t,"x"),y:(e,{transform:t})=>ov(t,"y")};Ua.translateX=Ua.x;Ua.translateY=Ua.y;const cc=new Set;let av=!1,lv=!1,cv=!1;function hE(){if(lv){const e=Array.from(cc).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=k$(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))==null||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}lv=!1,av=!1,cc.forEach(e=>e.complete(cv)),cc.clear()}function pE(){cc.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(lv=!0)})}function A$(){cv=!0,pE(),hE(),cv=!1}class Tb{constructor(t,n,r,i,s,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(cc.add(this),av||(av=!0,Vt.read(pE),Vt.resolveKeyframes(hE))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const s=i==null?void 0:i.get(),o=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const a=r.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),i&&s===void 0&&i.set(t[0])}x$(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),cc.delete(this)}cancel(){this.state==="scheduled"&&(cc.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const j$=e=>e.startsWith("--");function mE(e,t,n){j$(t)?e.style.setProperty(t,n):e.style[t]=n}const C$={};function Rb(e,t){const n=$C(e);return()=>C$[t]??n()}const Ob=Rb(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),gE=Rb(()=>window.ViewTimeline!==void 0,"viewTimeline"),yE=Rb(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Af=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,BS={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Af([0,.65,.55,1]),circOut:Af([.55,0,1,.45]),backIn:Af([.31,.01,.66,-.59]),backOut:Af([.33,1.53,.69,.99])};function xE(e,t){if(e)return typeof e=="function"?yE()?cE(e,t):"ease-out":JC(e)?Af(e):Array.isArray(e)?e.map(n=>xE(n,t)||BS.easeOut):BS[e]}function E$(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},c=void 0){const d={[t]:n};l&&(d.offset=l);const h=xE(a,i);Array.isArray(h)&&(d.easing=h);const m={delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"};return c&&(m.pseudoElement=c),e.animate(d,m)}function vE(e){return typeof e=="function"&&"applyToOptions"in e}function L$({type:e,...t}){return vE(e)&&yE()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class bE extends Pb{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:s,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=o,this.options=t,Xo(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const c=L$(t);this.animation=E$(n,r,i,c,s),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const d=Xg(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(d),mE(n,r,d),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,r,i;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((i=(r=this.animation).commitStyles)==null||i.call(r))}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return ts(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ts(t)}get time(){return ts(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=gi(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:i}){var s;return this.allowFlatten&&((s=this.animation.effect)==null||s.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Ob()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),mi):i(this)}}const wE={anticipate:YC,backInOut:KC,circInOut:ZC};function P$(e){return e in wE}function T$(e){typeof e.ease=="string"&&P$(e.ease)&&(e.ease=wE[e.ease])}const Iy=10;class R$ extends bE{constructor(t){T$(t),fE(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:s,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new tg({...o,autoplay:!1}),l=Math.max(Iy,Xr.now()-this.startTime),c=Os(0,Iy,l-Iy),d=a.sample(l).value,{name:h}=this.options;s&&h&&mE(s,h,d),n.setWithVelocity(a.sample(Math.max(0,l-c)).value,d,c),a.stop()}}const zS=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Es.test(e)||e==="0")&&!e.startsWith("url("));function O$(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function I$(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],o=zS(i,t),a=zS(s,t);return Yg(o===a,`You are trying to animate ${t} from "${i}" to "${s}". "${o?s:i}" is not an animatable value.`,"value-not-animatable"),!o||!a?!1:O$(e)||(n==="spring"||vE(n))&&r}function uv(e){e.duration=0,e.type="keyframes"}const SE=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),M$=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function F$(e){for(let t=0;t<e.length;
400t++)if(typeof e[t]=="string"&&M$.test(e[t]))return!0;return!1}const D$=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),B$=$C(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function z$(e){var h;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:o,keyframes:a}=e,l=(h=t==null?void 0:t.owner)==null?void 0:h.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;const{onUpdate:c,transformTemplate:d}=t.owner.getProps();return B$()&&n&&(SE.has(n)||D$.has(n)&&F$(a))&&(n!=="transform"||!d)&&!c&&!r&&i!=="mirror"&&s!==0&&o!=="inertia"}const U$=40;class V$ extends Pb{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",keyframes:a,name:l,motionValue:c,element:d,...h}){var x;super(),this.stop=()=>{var v,b;this._animation&&(this._animation.stop(),(v=this.stopTimeline)==null||v.call(this)),(b=this.keyframeResolver)==null||b.cancel()},this.createdAt=Xr.now();const m={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,name:l,motionValue:c,element:d,...h},f=(d==null?void 0:d.KeyframeResolver)||Tb;this.keyframeResolver=new f(a,(v,b,y)=>this.onKeyframesResolved(v,b,m,!y),l,c,d),(x=this.keyframeResolver)==null||x.scheduleResolve()}onKeyframesResolved(t,n,r,i){var y,S;this.keyframeResolver=void 0;const{name:s,type:o,velocity:a,delay:l,isHandoff:c,onUpdate:d}=r;this.resolvedAt=Xr.now();let h=!0;I$(t,s,o,a)||(h=!1,(dl.instantAnimations||!l)&&(d==null||d(Xg(t,r,n))),t[0]=t[t.length-1],uv(r),r.repeat=0);const f={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>U$?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},x=h&&!c&&z$(f),v=(S=(y=f.motionValue)==null?void 0:y.owner)==null?void 0:S.current;let b;if(x)try{b=new R$({...f,element:v})}catch{b=new tg(f)}else b=new tg(f);b.finished.then(()=>{this.notifyFinished()}).catch(mi),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),A$()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function _E(e,t,n,r=0,i=1){const s=Array.from(e).sort((c,d)=>c.sortNodePosition(d)).indexOf(t),o=e.size,a=(o-1)*r;return typeof n=="function"?n(s,o):i===1?s*r:a-s*r}const US=30,$$=e=>!isNaN(parseFloat(e)),qf={current:void 0};class q${constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var s;const i=Xr.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Xr.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=$$(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new wb);const r=this.events[t].add(n);return t==="change"?()=>{r(),Vt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return qf.current&&qf.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=Xr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>US)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,US);return Sb(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function As(e,t){return new q$(e,t)}function NE(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function Ib(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?NE(n,e):n}const H$={type:"spring",stiffness:500,damping:25,restSpeed:10},W$=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),G$={type:"keyframes",duration:.8},K$={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Y$=(e,{keyframes:t})=>t.length>2?G$:Ad.has(e)?e.startsWith("scale")?W$(t[1]):H$:K$,X$=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Z$(e){for(const t in e)if(!X$.has(t))return!0;return!1}const Mb=(e,t,n,r={},i,s)=>o=>{const a=Ib(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-gi(l);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:m=>{t.set(m),a.onUpdate&&a.onUpdate(m)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i};Z$(a)||Object.assign(d,Y$(e,d)),d.duration&&(d.duration=gi(d.duration)),d.repeatDelay&&(d.repeatDelay=gi(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let h=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(uv(d),d.delay===0&&(h=!0)),(dl.instantAnimations||dl.ski
400pAnimations||i!=null&&i.shouldSkipAnimations||a.skipAnimations)&&(h=!0,uv(d),d.delay=0),d.allowFlatten=!a.type&&!a.ease,h&&!s&&t.get()!==void 0){const m=Xg(d.keyframes,a);if(m!==void 0){Vt.update(()=>{d.onUpdate(m),d.onComplete()});return}}return a.isSync?new tg(d):new V$(d)},Q$=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function J$(e){const t=Q$.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const eq=4;function kE(e,t,n=1){Xo(n<=eq,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,i]=J$(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return zC(o)?parseFloat(o):o}return kb(i)?kE(i,t,n+1):i}function VS(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Fb(e,t,n,r){if(typeof t=="function"){const[i,s]=VS(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=VS(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function uc(e,t,n){const r=e.getProps();return Fb(r,t,n!==void 0?n:r.custom,e)}const AE=new Set(["width","height","top","left","right","bottom",...kd]),dv=e=>Array.isArray(e);function tq(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,As(n))}function nq(e){return dv(e)?e[e.length-1]||0:e}function rq(e,t){const n=uc(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=nq(s[o]);tq(e,o,a)}}const Cr=e=>!!(e&&e.getVelocity);function iq(e){return!!(Cr(e)&&e.add)}function fv(e,t){const n=e.getValue("willChange");if(iq(n))return n.add(t);if(!n&&dl.WillChange){const r=new dl.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Db(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const sq="framerAppearId",jE="data-"+Db(sq);function CE(e){return e.props[jE]}const oq=typeof window<"u";function aq({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function EE(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s,transitionEnd:o,...a}=t;const l=e.getDefaultTransition();s=s?NE(s,l):l;const c=s==null?void 0:s.reduceMotion,d=s==null?void 0:s.skipAnimations;r&&(s=r);const h=[],m=i&&e.animationState&&e.animationState.getState()[i],f=s==null?void 0:s.path;f&&f.animateVisualElement(e,a,s,n,h);for(const x in a){const v=e.getValue(x,e.latestValues[x]??null),b=a[x];if(b===void 0||m&&aq(m,x))continue;const y={delay:n,...Ib(s||{},x)};d&&(y.skipAnimations=!0);const S=v.get();if(S!==void 0&&!v.isAnimating()&&!Array.isArray(b)&&b===S&&!y.velocity){Vt.update(()=>v.set(b));continue}let _=!1;if(oq&&window.MotionHandoffAnimation){const $=CE(e);if($){const U=window.MotionHandoffAnimation($,x,Vt);U!==null&&(y.startTime=U,_=!0)}}fv(e,x);const k=c??e.shouldReduceMotion;v.start(Mb(x,v,b,k&&AE.has(x)?{type:!1}:y,e,_));const O=v.animation;O&&h.push(O)}if(o){const x=()=>Vt.update(()=>{o&&rq(e,o)});h.length?Promise.all(h).then(x):x()}return h}function hv(e,t,n={}){var l;const r=uc(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(EE(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:h,staggerDirection:m}=i;return lq(e,t,c,d,h,m,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[c,d]=a==="beforeChildren"?[s,o]:[o,s];return c().then(()=>d())}else return Promise.all([s(),o(n.delay)])}function lq(e,t,n=0,r=0,i=0,s=1,o){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(hv(l,t,{...o,delay:n+(typeof r=="function"?0:r)+_E(e.variantChildren,l,r,i,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function cq(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>hv(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=hv(e,t,n);else{const i=typeof t=="function"?uc(e,t,n.custom):t;r=Promise.all(EE(e,i,n))}return r.then(()=>
vendor: 45,406 bytes, line 400
400{e.notify("AnimationComplete",t)})}const uq={test:e=>e==="auto",parse:e=>e},LE=e=>t=>t.test(e),PE=[Nd,Ve,co,Mo,FV,MV,uq],$S=e=>PE.find(LE(e));function dq(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||VC(e):!0}const fq=new Set(["brightness","contrast","saturate","opacity"]);function hq(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ab)||[];if(!r)return e;const i=n.replace(r,"");let s=fq.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const pq=/\b([a-z-]*)\(.*?\)/gu,pv={...Es,getAnimatableNone:e=>{const t=e.match(pq);return t?t.map(hq).join(" "):e}},mv={...Es,getAnimatableNone:e=>{const t=Es.parse(e);return Es.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},qS={...Nd,transform:Math.round},mq={rotate:Mo,pathRotation:Mo,rotateX:Mo,rotateY:Mo,rotateZ:Mo,scale:mm,scaleX:mm,scaleY:mm,scaleZ:mm,skew:Mo,skewX:Mo,skewY:Mo,distance:Ve,translateX:Ve,translateY:Ve,translateZ:Ve,x:Ve,y:Ve,z:Ve,perspective:Ve,transformPerspective:Ve,opacity:_h,originX:LS,originY:LS,originZ:Ve},ng={borderWidth:Ve,borderTopWidth:Ve,borderRightWidth:Ve,borderBottomWidth:Ve,borderLeftWidth:Ve,borderRadius:Ve,borderTopLeftRadius:Ve,borderTopRightRadius:Ve,borderBottomRightRadius:Ve,borderBottomLeftRadius:Ve,width:Ve,maxWidth:Ve,height:Ve,maxHeight:Ve,top:Ve,right:Ve,bottom:Ve,left:Ve,inset:Ve,insetBlock:Ve,insetBlockStart:Ve,insetBlockEnd:Ve,insetInline:Ve,insetInlineStart:Ve,insetInlineEnd:Ve,padding:Ve,paddingTop:Ve,paddingRight:Ve,paddingBottom:Ve,paddingLeft:Ve,paddingBlock:Ve,paddingBlockStart:Ve,paddingBlockEnd:Ve,paddingInline:Ve,paddingInlineStart:Ve,paddingInlineEnd:Ve,margin:Ve,marginTop:Ve,marginRight:Ve,marginBottom:Ve,marginLeft:Ve,marginBlock:Ve,marginBlockStart:Ve,marginBlockEnd:Ve,marginInline:Ve,marginInlineStart:Ve,marginInlineEnd:Ve,fontSize:Ve,backgroundPositionX:Ve,backgroundPositionY:Ve,...mq,zIndex:qS,fillOpacity:_h,strokeOpacity:_h,numOctaves:qS},gq={...ng,color:Xn,backgroundColor:Xn,outlineColor:Xn,fill:Xn,stroke:Xn,borderColor:Xn,borderTopColor:Xn,borderRightColor:Xn,borderBottomColor:Xn,borderLeftColor:Xn,filter:pv,WebkitFilter:pv,mask:mv,WebkitMask:mv},TE=e=>gq[e],yq=new Set([pv,mv]);function RE(e,t){let n=TE(e);return yq.has(n)||(n=Es),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const xq=new Set(["auto","none","0"]);function vq(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!xq.has(s)&&cd(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=RE(n,i)}class bq extends Tb{constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let d=0;d<t.length;d++){let h=t[d];if(typeof h=="string"&&(h=h.trim(),kb(h))){const m=kE(h,n.current);m!==void 0&&(t[d]=m),d===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!AE.has(r)||t.length!==2)return;const[i,s]=t,o=$S(i),a=$S(s),l=ES(i),c=ES(s);if(l!==c&&Ua[r]){this.needsMeasurement=!0;return}if(o!==a)if(DS(o)&&DS(a))for(let d=0;d<t.length;d++){const h=t[d];typeof h=="string"&&(t[d]=parseFloat(h))}else Ua[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||dq(t[i]))&&r.push(i);r.length&&vq(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ua[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const s=r.length-1,o=r[s];r[s]=Ua[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,c])=>{t.getValue(l).set(c)}),this.resolveNoneKeyframes()}}const Bb=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function OE(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){const i=document.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(r=>r!=null)}const gv=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Hf(e){return UC(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:ud,cancel:IE}=eE(queueMicrotask,!1),bs={x:!1,y:!1};function ME(){return bs.x||bs.y}function wq(e){return e==="x"||e==="y"?bs[e]?null:(bs[e]=!0,()=>{bs[e]=!1}):bs.x||bs.y?null:(bs.x=bs.y=!0,()=>{bs.x=bs.y=!1})}function FE(e,t){const n=OE(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Sq(e){return!(e.pointerType==="touch"||ME())}function _q(e,t,n={}){const[r,i,s]=FE(e,n);return r.forEach(o=>{let a=!1,l=!1,c;const d=()=>{o.removeEventListener("pointerleave",x)},h=b=>{c&&(c(b),c=void 0),d()},m=b=>{a=!1,window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",m),l&&(l=!1,h(b))},f=()=>{a=!0,window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",m,i)},x=b=>{if(b.pointerType!=="touch"){if(a){l=!0;return}h(b)}},v=b=>{if(!Sq(b))return;l=!1;const y=t(o,b);typeof y=="function"&&(c=y,o.addEventListener("pointerleave",x,i))};o.addEventListener("pointerenter",v,i),o.addEventListener("pointerdown",f,i)}),s}const DE=(e,t)=>t?e===t?!0:DE(e,t.parentElement):!1,zb=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Nq=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function kq(e){return Nq.has(e.tagName)||e.isContentEditable===!0}const Aq=new Set(["INPUT","SELECT","TEXTAREA"]);function jq(e){return Aq.has(e.tagName)||e.isContentEditable===!0}const Xm=new WeakSet;function HS(e){return t=>{t.key==="Enter"&&e(t)}}function My(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Cq=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=HS(()=>{if(Xm.has(n))return;My(n,"down");const i=HS(()=>{My(n,"up")}),s=()=>My(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function WS(e){return zb(e)&&!ME()}const GS=new WeakSet;function Eq(e,t,n={}){const[r,i,s]=FE(e,n),o=a=>{const l=a.currentTarget;if(!WS(a)||GS.has(a))return;Xm.add(l),n.stopPropagation&&GS.add(a);const c=t(l,a),d={...i,capture:!0},h=(x,v)=>{window.removeEventListener("pointerup",m,d),window.removeEventListener("pointercancel",f,d),Xm.has(l)&&Xm.delete(l),WS(x)&&typeof c=="function"&&c(x,{success:v})},m=x=>{h(x,l===window||l===document||n.useGlobalTarget||DE(l,x.target))},f=x=>{h(x,!1)};window.addEventListener("pointerup",m,d),window.addEventListener("pointercancel",f,d)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),Hf(a)&&(a.addEventListener("focus",c=>Cq(c,i)),!kq(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}function Ub(e){return UC(e)&&"ownerSVGElement"in e}const Zm=new WeakMap;let Na;const BE=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+"Size"]:Ub(r)&&"getBBox"in r?r.getBBox()[t]:r[n],Lq=BE("inline","width","offsetWidth"),Pq=BE("block","height","offsetHeight");function Tq({target:e,borderBoxSize:t}){var n;(n=Zm.get(e))==null||n.forEach(r=>{r(e,{get width(){return Lq(e,t)},get height(){return Pq(e,t)}})})}function Rq(e){e.forEach(Tq)}function Oq(){typeof ResizeObserver>"u"||(Na=new ResizeObserver(Rq))}function Iq(e,t){Na||Oq();const n=OE(e);return n.forEach(r=>{let i=Zm.get(r);i||(i=new Set,Zm.set(r,i)),i.add(t),Na==null||Na.observe(r)}),()=>{n.forEach(r=>{const i=Zm.get(r);i==null||i.delete(t),i!=null&&i.size||Na==null||Na.unobserve(r)})}}const Qm=new Set;let yu;function Mq(){yu=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Qm.forEach(t=>t(e))},window.addEventListener("resize",yu)}function Fq(e){return Qm.add(e),yu||Mq(),()=>{Qm.delete(e),!Qm.size&&typeof yu=="function"&&(window.removeEventListener("resize",yu),yu=void 0)}}function yv(e,t){return typeof e=="function"?Fq(e):Iq(e,t)}function zE(e,t){let n;const r=()=>{const{currentTime:i}=t,o=(i===null?0:i.value)/100;n!==o&&e(o),n=o};return Vt.preUpdate(r,!0),()=>ss(r)}function Dq(e){return Ub(e)&&e.tagName==="svg"}function Bq(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],s=e[2+n],o=e[3+n],a=Lb(i,s,o);return t?a(r):a}const zq=[...PE,Xn,Es],Uq=e=>zq.find(LE(e)),KS=()=>({translate:0,scale:1,origin:0,originPoint:0}),xu=()=>({x:KS(),y:KS()}),YS=()=>({min:0,max:0}),sr=()=>({x:YS(),y:YS()}),Vq=new WeakMap;function Zg(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Nh(e){return typeof e=="string"||Array.isArray(e)}const Vb=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],$b=["initial",...Vb];function Qg(e){return Zg(e.animate)||$b.some(t=>Nh(e[t]))}function UE(e){return!!(Qg(e)||e.variants)}function $q(e,t,n){for(const r in t){const i=t[r],s=n[r];if(Cr(i))e.addValue(r,i);else if(Cr(s))e.addValue(r,As(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,As(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const xv={current:null},VE={current:!1},qq=typeof window<"u";function Hq(){if(VE.current=!0,!!qq)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>xv.current=e.matches;e.addEventListener("change",t),t()}else xv.current=!1}const XS=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let rg={};function $E(e){rg=e}function Wq(){return rg}class Gq{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,skipAnimations:s,blockInitialAnimation:o,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Tb,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=Xr.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,Vt.render(this.render,!1,!0))};const{latestValues:c,renderState:d}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=s,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=Qg(n),this.isVariantNode=UE(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in m){const x=m[f];c[f]!==void 0&&Cr(x)&&x.set(c[f])}}mount(t){var n,r;if(this.hasBeenMounted)for(const i in this.initialValues)(n=this.values.get(i))==null||n.jump(this.initialValues[i]),this.latestValues[i]=this.initialValues[i];this.current=t,Vq.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((i,s)=>this.bindToMotionValue(s,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(VE.current||Hq(),this.shouldReduceMotion=xv.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),ss(this.notifyUpdate),ss(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&SE.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:l,ease:c,duration:d}=n.accelerate,h=new bE({element:this.current,name:t,keyframes:a,times:l,ease:c,duration:gi(d)}),m=o(h);this.valueSubscriptions.set(t,()=>{m(),h.cancel()});return}const r=Ad.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&Vt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;typeof window<"u"&&window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s&&s()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in rg){const n=rg[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):sr()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<XS.length;r++){const i=XS[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=t[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=$q(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=As(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(zC(r)||VC(r))?r=parseFloat(r):!Uq(r)&&Es.test(n)&&(r=RE(t,n)),this.setBaseTarget(t,Cr(r)?r.get():r)),Cr(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=Fb(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Cr(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new wb),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){ud.render(this.render)}}class qE extends Gq{constructor(){super(...arguments),this.KeyframeResolver=bq}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Cr(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class gl{constructor(t){this.isMounted=!1,this.node=t}update(){}}function HE({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Kq({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Yq(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Fy(e){return e===void 0||e===1}function vv({scale:e,scaleX:t,scaleY:n}){return!Fy(e)||!Fy(t)||!Fy(n)}function Dl(e){return vv(e)||WE(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function WE(e){return ZS(e.x)||ZS(e.y)}function ZS(e){return e&&e!=="0%"}function ig(e,t,n){const r=e-n,i=t*r;return n+i}function QS(e,t,n,r,i){return i!==void 0&&(e=ig(e,i,r)),ig(e,n,r)+t}function bv(e,t=0,n=1,r,i){e.min=QS(e.min,t,n,r,i),e.max=QS(e.max,t,n,r,i)}function GE(e,{x:t,y:n}){bv(e.x,t.translate,t.scale,t.originPoint),bv(e.y,n.translate,n.scale,n.originPoint)}const JS=.999999999999,e_=1.0000000000001;function Xq(e,t,n,r=!1){var a;const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let l=0;l<i;l++){s=n[l],o=s.projectionDelta;const{visualElement:c}=s.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(no(e.x,-s.scroll.offset.x),no(e.y,-s.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,GE(e,o)),r&&Dl(s.latestValues)&&Jm(e,s.latestValues,(a=s.layout)==null?void 0:a.layoutBox))}t.x<e_&&t.x>JS&&(t.x=1),t.y<e_&&t.y>JS&&(t.y=1)}function no(e,t){e.min+=t,e.max+=t}function t_(e,t,n,r,i=.5){const s=cn(e.min,e.max,i);bv(e,t,n,s,r)}function n_(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Jm(e,t,n){const r=n??e;t_(e.x,n_(t.x,r.x),t.scaleX,t.scale,t.originX),t_(e.y,n_(t.y,r.y),t.scaleY,t.scale,t.originY)}function KE(e,t){return HE(Yq(e.getBoundingClientRect(),t))}function Zq(e,t,n){const r=KE(e,n),{scroll:i}=t;return i&&(no(r.x,i.offset.x),no(r.y,i.offset.y)),r}const Qq={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Jq=kd.length;function eH(e,t,n){let r="",i=!0;for(let o=0;o<Jq;o++){const a=kd[o],l=e[a];if(l===void 0)continue;let c=!0;if(typeof l=="number")c=l===(a.startsWith("scale")?1:0);else{const d=parseFloat(l);c=a.startsWith("scale")?d===1:d===0}if(!c||n){const d=gv(l,ng[a]);if(!c){i=!1;const h=Qq[a]||a;r+=`${h}(${d}) `}n&&(t[a]=d)}}const s=e.pathRotation;return s&&(i=!1,r+=`rotate(${gv(s,ng.pathRotation)}) `),r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function qb(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let o=!1,a=!1;for(const l in t){const c=t[l];if(Ad.has(l)){o=!0;continue}else if(nE(l)){i[l]=c;continue}else{const d=gv(c,ng[l]);l.startsWith("origin")?(a=!0,s[l]=d):r[l]=d}}if(t.transform||(o||n?r.transform=eH(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:d=0}=s;r.transformOrigin=`${l} ${c} ${d}`}}function YE(e,{style:t,vars:n},r,i){const s=e.style;let o;for(o in t)s[o]=t[o];i==null||i.applyProjectionStyles(s,r);for(o in n)s.setProperty(o,n[o])}function r_(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const yf={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ve.test(e))e=parseFloat(e);else return e;const n=r_(e,t.target.x),r=r_(e,t.target.y);return`${n}% ${r}%`}},tH={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Es.parse(e);if(i.length>5)return r;const s=Es.createTransformer(e),o=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=l;const c=cn(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=c),typeof i[3+o]=="number"&&(i[3+o]/=c),s(i)}},wv={borderRadius:{...yf,applyTo:[...Bb]},borderTopLeftRadius:yf,borderTopRightRadius:yf,borderBottomLeftRadius:yf,borderBottomRightRadius:yf,boxShadow:tH};function XE(e,{layout:t,layoutId:n}){return Ad.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!wv[e]||e==="opacity")}function Hb(e,t,n){var o;const r=e.style,i=t==null?void 0:t.style,s={};if(!r)return s;for(const a in r)(Cr(r[a])||i&&Cr(i[a])||XE(a,e)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(s[a]=r[a]);return s}function nH(e){return window.getComputedStyle(e)}class rH extends qE{constructor(){super(...arguments),this.type="html",this.renderInstance=YE}mount(t){Xo(!!t.style,"motion.create() components must forward their ref to a HTML or SVG element","custom-component-ref"),super.mount(t)}readValueFromInstance(t,n){var r;if(Ad.has(n))return(r=this.projection)!=null&&r.isProjecting?sv(n):w$(t,n);{const i=nH(t),s=(nE(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return KE(t,n)}build(t,n,r){qb(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Hb(t,n,r)}}const iH={offset:"stroke-dashoffset",array:"stroke-dasharray"},sH={offset:"strokeDashoffset",array:"strokeDasharray"};function oH(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?iH:sH;e[s.offset]=`${-r}`,e[s.array]=`${t} ${n}`}const ZE=["transform","opacity","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function QE(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:o=0,...a},l,c,d){if(qb(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:m}=e;for(const f of ZE)h[f]!==void 0&&(m[f]=h[f],delete h[f]);(m.transform||h.transformOrigin)&&(m.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),m.transform&&(m.transformBox=(d==null?void 0:d.transformBox)??"fill-box",delete h.transformBox),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),i!==void 0&&oH(h,i,s,o,!1)}const JE=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),eL=e=>typeof e=="string"&&e.toLowerCase()==="svg";function aH(e,t,n,r){YE(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(JE.has(i)?i:Db(i),t.attrs[i])}function tL(e,t,n){const r=Hb(e,t,n);for(const i in e)if(Cr(e[i])||Cr(t[i])){const s=kd.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}class lH extends qE{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=sr}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ad.has(n)){const r=TE(n);return r&&r.default||0}if(ZE.includes(n)){const i=getComputedStyle(t)[n];if(typeof i=="string"&&i)return i.trim()}return n=JE.has(n)?n:Db(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return tL(t,n,r)}build(t,n,r){QE(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){aH(t,n,r,i)}mount(t){this.isSVGTag=eL(t.tagName),super.mount(t)}}const cH=$b.length;function nL(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?nL(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<cH;n++){const r=$b[n],i=e.props[r];(Nh(i)||i===!1)&&(t[r]=i)}return t}function rL(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const uH=[...Vb].reverse(),dH=Vb.length;function fH(e){return t=>Promise.all(t.map(({animation:n,options:r})=>cq(e,n,r)))}function hH(e){let t=fH(e),n=i_(),r=!0,i=!1;const s=c=>(d,h)=>{var f;const m=uc(e,h,c==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);if(m){const{transition:x,transitionEnd:v,...b}=m;d={...d,...b,...v}}return d};function o(c){t=c(e)}function a(c){const{props:d}=e,h=nL(e.parent)||{},m=[],f=new Set;let x={},v=1/0;for(let y=0;y<dH;y++){const S=uH[y],_=n[S],k=d[S]!==void 0?d[S]:h[S],O=Nh(k),$=S===c?_.isActive:null;$===!1&&(v=y);let U=k===h[S]&&k!==d[S]&&O;if(U&&(r||i)&&e.manuallyAnimateOnMount&&(U=!1),_.protectedKeys={...x},!_.isActive&&$===null||!k&&!_.prevProp||Zg(k)||typeof k=="boolean")continue;if(S==="exit"&&_.isActive&&$!==!0){_.prevResolvedValues&&(x={...x,..._.prevResolvedValues});continue}const I=pH(_.prevProp,k);let R=I||S===c&&_.isActive&&!U&&O||y>v&&O,z=!1;const C=Array.isArray(k)?k:[k];let L=C.reduce(s(S),{});$===!1&&(L={});const{prevResolvedValues:D={}}=_,F={...D,...L},te=G=>{R=!0,f.has(G)&&(z=!0,f.delete(G)),_.needsAnimating[G]=!0;const Q=e.getValue(G);Q&&(Q.liveStyle=!1)};for(const G in F){const Q=L[G],de=D[G];if(x.hasOwnProperty(G))continue;let ue=!1;dv(Q)&&dv(de)?ue=!rL(Q,de)||I:ue=Q!==de,ue?Q!=null?te(G):f.add(G):Q!==void 0&&f.has(G)?te(G):_.protectedKeys[G]=!0}_.prevProp=k,_.prevResolvedValues=L,_.isActive&&(x={...x,...L}),(r||i)&&e.blockInitialAnimation&&(R=!1);const re=U&&I;R&&(!re||z)&&m.push(...C.map(G=>{const Q={type:S};if(typeof G=="string"&&(r||i)&&!re&&e.manuallyAnimateOnMount&&e.parent){const{parent:de}=e,ue=uc(de,G);if(de.enteringChildren&&ue){const{delayChildren:E}=ue.transition||{};Q.delay=_E(de.enteringChildren,e,E)}}return{animation:G,options:Q}}))}if(f.size){const y={};if(typeof d.initial!="boolean"){const S=uc(e,Array.isArray(d.initial)?d.initial[0]:d.initial);S&&S.transition&&(y.transition=S.transition)}f.forEach(S=>{const _=e.getBaseTarget(S),k=e.getValue(S);k&&(k.liveStyle=!0),y[S]=_??null}),m.push({animation:y})}let b=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,i=!1,b?t(m):Promise.resolve()}function l(c,d){var m;if(n[c].isActive===d)return Promise.resolve();(m=e.variantChildren)==null||m.forEach(f=>{var x;return(x=f.animationState)==null?void 0:x.setActive(c,d)}),n[c].isActive=d;const h=a(c);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:a,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=i_(),i=!0}}}function pH(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!rL(t,e):!1}function Il(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function i_(){return{animate:Il(!0),whileInView:Il(),whileHover:Il(),whileTap:Il(),whileDrag:Il(),whileFocus:Il(),exit:Il()}}function Sv(e,t){e.min=t.min,e.max=t.max}function xs(e,t){Sv(e.x,t.x),Sv(e.y,t.y)}function s_(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const iL=1e-4,mH=1-iL,gH=1+iL,sL=.01,yH=0-sL,xH=0+sL;function Zr(e){return e.max-e.min}function vH(e,t,n){return Math.abs(e-t)<=n}function o_(e,t,n,r=.5){e.origin=r,e.originPoint=cn(t.min,t.max,e.origin),e.scale=Zr(n)/Zr(t),e.translate=cn(n.min,n.max,e.origin)-e.originPoint,(e.scale>=mH&&e.scale<=gH||isNaN(e.scale))&&(e.scale=1),(e.translate>=yH&&e.translate<=xH||isNaN(e.translate))&&(e.translate=0)}function Wf(e,t,n,r){o_(e.x,t.x,n.x,r?r.originX:void 0),o_(e.y,t.y,n.y,r?r.originY:void 0)}function a_(e,t,n,r=0){const i=r?cn(n.min,n.max,r):n.min;e.min=i+t.min,e.max=e.min+Zr(t)}function bH(e,t,n,r){a_(e.x,t.x,n.x,r==null?void 0:r.x),a_(e.y,t.y,n.y,r==null?void 0:r.y)}function l_(e,t,n,r=0){const i=r?cn(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Zr(t)}function sg(e,t,n,r){l_(e.x,t.x,n.x,r==null?void 0:r.x),l_(e.y,t.y,n.y,r==null?void 0:r.y)}function c_(e,t,n,r,i){return e-=t,e=ig(e,1/n,r),i!==void 0&&(e=ig(e,1/i,r)),e}function wH(e,t=0,n=1,r=.5,i,s=e,o=e){if(co.test(t)&&(t=parseFloat(t),t=cn(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=cn(s.min,s.max,r);e===s&&(a-=t),e.min=c_(e.min,t,n,a,i),e.max=c_(e.max,t,n,a,i)}function u_(e,t,[n,r,i],s,o){wH(e,t[n],t[r],t[i],t.scale,s,o)}const SH=["x","scaleX","originX"],_H=["y","scaleY","originY"];function d_(e,t,n,r){u_(e.x,t,SH,n?n.x:void 0,r?r.x:void 0),u_(e.y,t,_H,n?n.y:void 0,r?r.y:void 0)}function f_(e){return e.translate===0&&e.scale===1}function oL(e){return f_(e.x)&&f_(e.y)}function h_(e,t){return e.min===t.min&&e.max===t.max}function NH(e,t){return h_(e.x,t.x)&&h_(e.y,t.y)}function p_(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function aL(e,t){return p_(e.x,t.x)&&p_(e.y,t.y)}function m_(e){return Zr(e.x)/Zr(e.y)}function g_(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Zs(e){return[e("x"),e("y")]}function kH(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:d,pathRotation:h,rotateX:m,rotateY:f,skewX:x,skewY:v}=n;c&&(r=`perspective(${c}px) ${r}`),d&&(r+=`rotate(${d}deg) `),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),f&&(r+=`rotateY(${f}deg) `),x&&(r+=`skewX(${x}deg) `),v&&(r+=`skewY(${v}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const AH=Bb.length,y_=e=>typeof e=="string"?parseFloat(e):e,x_=e=>typeof e=="number"||Ve.test(e);function jH(e,t,n,r,i,s){i?(e.opacity=cn(0,n.opacity??1,CH(r)),e.opacityExit=cn(t.opacity??1,0,EH(r))):s&&(e.opacity=cn(t.opacity??1,n.opacity??1,r));for(let o=0;o<AH;o++){const a=Bb[o];let l=v_(t,a),c=v_(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||x_(l)===x_(c)?(e[a]=Math.max(cn(y_(l),y_(c),r),0),(co.test(c)||co.test(l))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=cn(t.rotate||0,n.rotate||0,r))}function v_(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const CH=lL(0,.5,XC),EH=lL(.5,.95,mi);function lL(e,t,n){return r=>r<e?0:r>t?1:n(ld(e,t,r))}function LH(e,t,n){const r=Cr(e)?e:As(e);return r.start(Mb("",r,t,n)),r.animation}function kh(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}const PH=(e,t)=>e.depth-t.depth;class TH{constructor(){this.children=[],this.isDirty=!1}add(t){bb(this.children,t),this.isDirty=!0}remove(t){Z0(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(PH),this.isDirty=!1,this.children.forEach(t)}}function RH(e,t){const n=Xr.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(ss(r),e(s-t))};return Vt.setup(r,!0),()=>ss(r)}function e0(e){return Cr(e)?e.get():e}class OH{constructor(){this.members=[]}add(t){bb(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const i=r.instance;(!i||i.isConnected===!1)&&!r.snapshot&&(Z0(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(Z0(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){var n;for(let r=this.members.indexOf(t)-1;r>=0;r--){const i=this.members[r];if(i.isPresent!==!1&&((n=i.instance)==null?void 0:n.isConnected)!==!1)return this.promote(i),!0}return!1}promote(t,n){var i;const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:s}=r.options,{layoutDependency:o}=t.options;(s===void 0||s!==o)&&(t.resumeFrom=r,n&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),(i=t.root)!=null&&i.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,i,s,o;(r=(n=t.options).onExitComplete)==null||r.call(n),(o=(i=t.resumingFrom)==null?void 0:(s=i.options).onExitComplete)==null||o.call(s)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const t0={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Dy=["","X","Y","Z"],IH=1e3;let MH=0;function By(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function cL(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=CE(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Vt,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&cL(r)}function uL({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=t==null?void 0:t()){this.id=MH++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(BH),this.nodes.forEach(HH),this.nodes.forEach(WH),this.nodes.forEach(zH)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new TH)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new wb),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=Ub(o)&&!Dq(o),this.instance=o;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let d,h=0;const m=()=>this.root.updateBlockedByResize=!1;Vt.read(()=>{h=window.innerWidth}),e(o,()=>{const f=window.innerWidth;f!==h&&(h=f,this.root.updateBlockedByResize=!0,d&&d(),d=RH(m,250),t0.hasAnimatedSinceResize&&(t0.hasAnimatedSinceResize=!1,this.nodes.forEach(S_)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:h,hasRelativeLayoutChanged:m,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||c.getDefaultTransition()||ZH,{onLayoutAnimationStart:v,onLayoutAnimationComplete:b}=c.getProps(),y=!this.targetLayout||!aL(this.targetLayout,f),S=!h&&m;if(this.options.layoutRoot||this.resumeFrom||S||h&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const _={...Ib(x,"layout"),onPlay:v,onComplete:b};(c.shouldReduceMotion||this.options.layoutRoot)&&(_.delay=0,_.type=!1),this.startAnimation(_),this.setAnimationOrigin(d,S,_.path)}else h||S_(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ss(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(GH),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&cL(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const h=this.path[d];h.shouldResetTransform=!0,(typeof h.latestValues.x=="string"||typeof h.latestValues.y=="string")&&(h.isLayoutDirty=!0),h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach(VH),this.nodes.forEach(b_);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(w_);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach($H),this.nodes.forEach(qH),this.nodes.forEach(FH),this.nodes.forEach(DH)):this.nodes.forEach(w_),this.clearAllSnapshots();const a=Xr.now();fr.delta=Os(0,1e3/60,a-fr.timestamp),fr.timestamp=a,fr.isProcessing=!0,Ly.update.process(fr),Ly.preRender.process(fr),Ly.render.process(fr),fr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ud.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(UH),this.sharedNodes.forEach(KH)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Vt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Vt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Zr(this.snapshot.measuredBox.x)&&!Zr(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=sr()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!oL(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,d=c!==this.prevTransformTemplateValue;o&&this.instance&&(a||Dl(this.latestValues)||d)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),QH(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:o}=this.options;if(!o)return sr();const a=o.measureViewportBox();if(!(((c=this.scroll)==null?void 0:c.wasRoot)||this.path.some(JH))){const{scroll:d}=this.root;d&&(no(a.x,d.offset.x),no(a.y,d.offset.y))}return a}removeElementScroll(o){var l;const a=sr();if(xs(a,o),(l=this.scroll)!=null&&l.wasRoot)return a;for(let c=0;c<this.path.length;c++){const d=this.path[c],{scroll:h,options:m}=d;d!==this.root&&h&&m.layoutScroll&&(h.wasRoot&&xs(a,o),no(a.x,h.offset.x),no(a.y,h.offset.y))}return a}applyTransform(o,a=!1,l){var d,h;const c=l||sr();xs(c,o);for(let m=0;m<this.path.length;m++){const f=this.path[m];!a&&f.options.layoutScroll&&f.scroll&&f!==f.root&&(no(c.x,-f.scroll.offset.x),no(c.y,-f.scroll.offset.y)),Dl(f.latestValues)&&Jm(c,f.latestValues,(d=f.layout)==null?void 0:d.layoutBox)}return Dl(this.latestValues)&&Jm(c,this.latestValues,(h=this.layout)==null?void 0:h.layoutBox),c}removeTransform(o){var l;const a=sr();xs(a,o);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!Dl(d.latestValues))continue;let h;d.instance&&(vv(d.latestValues)&&d.updateSnapshot(),h=sr(),xs(h,d.measurePageBox())),d_(a,d.latestValues,(l=d.snapshot)==null?void 0:l.layoutBox,h)}return Dl(this.latestValues)&&d_(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==fr.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var f;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(f=this.parent)!=null&&f.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:h}=this.options;if(!this.layout||!(d||h))return;this.resolvedRelativeTargetAt=fr.timestamp;const m=this.getClosestProjectingParent();m&&this.linkedParentVersion!==m.layoutVersion&&!m.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&m&&m.layout?this.createRelativeTarget(m,this.layout.layoutBox,m.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=sr(),this.targetWithTransforms=sr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),bH(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):xs(this.target,this.layout.layoutBox),GE(this.target,this.targetDelta)):xs(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?this.createRelativeTarget(m,this.target,m.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||vv(this.parent.latestValues)||WE(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,a,l){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=sr(),this.relativeTargetOrigin=sr(),sg(this.relativeTargetOrigin,a,l,this.options.layoutAnchor||void 0),xs(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var x;const o=this.getLead(),a=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||(x=this.parent)!=null&&x.isProjectionDirty)&&
vendor: 5,713 bytes, line 400
400(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===fr.timestamp&&(l=!1),l)return;const{layout:c,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||d))return;xs(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,m=this.treeScale.y;Xq(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=sr());const{target:f}=o;if(!f){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(s_(this.prevProjectionDelta.x,this.projectionDelta.x),s_(this.prevProjectionDelta.y,this.projectionDelta.y)),Wf(this.projectionDelta,this.layoutCorrected,f,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==m||!g_(this.projectionDelta.x,this.prevProjectionDelta.x)||!g_(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",f))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=xu(),this.projectionDelta=xu(),this.projectionDeltaWithTransform=xu()}setAnimationOrigin(o,a=!1,l){const c=this.snapshot,d=c?c.latestValues:{},h={...this.latestValues},m=xu();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=sr(),x=c?c.source:void 0,v=this.layout?this.layout.source:void 0,b=x!==v,y=this.getStack(),S=!y||y.members.length<=1,_=!!(b&&!S&&this.options.crossfade===!0&&!this.path.some(XH));this.animationProgress=0;let k;const O=l==null?void 0:l.interpolateProjection(o);this.mixTargetDelta=$=>{const U=$/1e3,I=O==null?void 0:O(U);I?(m.x.translate=I.x,m.x.scale=cn(o.x.scale,1,U),m.x.origin=o.x.origin,m.x.originPoint=o.x.originPoint,m.y.translate=I.y,m.y.scale=cn(o.y.scale,1,U),m.y.origin=o.y.origin,m.y.originPoint=o.y.originPoint):(__(m.x,o.x,U),__(m.y,o.y,U)),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(sg(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),YH(this.relativeTarget,this.relativeTargetOrigin,f,U),k&&NH(this.relativeTarget,k)&&(this.isProjectionDirty=!1),k||(k=sr()),xs(k,this.relativeTarget)),b&&(this.animationValues=h,jH(h,d,this.latestValues,U,_,S)),I&&I.rotate!==void 0&&(this.animationValues||(this.animationValues=h),this.animationValues.pathRotation=I.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=U},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,l,c;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(c=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||c.stop(),this.pendingAnimation&&(ss(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Vt.update(()=>{t0.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=As(0)),this.motionValue.jump(0,!1),this.currentAnimation=LH(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),o.onUpdate&&o.onUpdate(d)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(IH),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:d}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&dL(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||sr();const h=Zr(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+h;const m=Zr(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+m}xs(a,l),Jm(a,d),Wf(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new OH),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}
vendor: 4,506 bytes, line 400
400resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&By("z",o,c,this.animationValues);for(let d=0;d<Dy.length;d++)By(`rotate${Dy[d]}`,o,c,this.animationValues),By(`skew${Dy[d]}`,o,c,this.animationValues);o.render();for(const d in c)o.setStaticValue(d,c[d]),this.animationValues&&(this.animationValues[d]=c[d]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=e0(a==null?void 0:a.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=e0(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Dl(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const d=c.animationValues||c.latestValues;this.applyTransformsToTarget();let h=kH(this.projectionDeltaWithTransform,this.treeScale,d);l&&(h=l(d,h)),o.transform=h;const{x:m,y:f}=this.projectionDelta;o.transformOrigin=`${m.origin*100}% ${f.origin*100}% 0`,c.animationValues?o.opacity=c===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:o.opacity=c===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const x in wv){if(d[x]===void 0)continue;const{correct:v,applyTo:b,isCSSVariable:y}=wv[x],S=h==="none"?d[x]:v(d[x],c);if(b){const _=b.length;for(let k=0;k<_;k++)o[b[k]]=S}else y?this.options.visualElement.renderState.vars[x]=S:o[x]=S}this.options.layoutId&&(o.pointerEvents=c===this?e0(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(b_),this.root.sharedNodes.clear()}}}function FH(e){e.updateLayout()}function DH(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,o=t.source!==e.layout.source;if(s==="size")Zs(h=>{const m=o?t.measuredBox[h]:t.layoutBox[h],f=Zr(m);m.min=r[h].min,m.max=m.min+f});else if(s==="x"||s==="y"){const h=s==="x"?"y":"x";Sv(o?t.measuredBox[h]:t.layoutBox[h],r[h])}else dL(s,t.layoutBox,r)&&Zs(h=>{const m=o?t.measuredBox[h]:t.layoutBox[h],f=Zr(r[h]);m.max=m.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+f)});const a=xu();Wf(a,r,t.layoutBox);const l=xu();o?Wf(l,e.applyTransform(i,!0),t.measuredBox):Wf(l,r,t.layoutBox);const c=!oL(a);let d=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:m,layout:f}=h;if(m&&f){const x=e.options.layoutAnchor||void 0,v=sr();sg(v,t.layoutBox,m.layoutBox,x);const b=sr();sg(b,r,f.layoutBox,x),aL(v,b)||(d=!0),h.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=v,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function BH(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function zH(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function UH(e){e.clearSnapshot()}function b_(e){e.clearMeasurements()}function VH(e){e.isLayoutDirty=!0,e.updateLayout()}function w_(e){e.isLayoutDirty=!1}function $H(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function qH(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function S_(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function HH(e){e.resolveTargetDelta()}function WH(e){e.calcProjection()}
400function GH(e){e.resetSkewAndRotation()}function KH(e){e.removeLeadSnapshot()}function __(e,t,n){e.translate=cn(t.translate,0,n),e.scale=cn(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function N_(e,t,n,r){e.min=cn(t.min,n.min,r),e.max=cn(t.max,n.max,r)}function YH(e,t,n,r){N_(e.x,t.x,n.x,r),N_(e.y,t.y,n.y,r)}function XH(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const ZH={duration:.45,ease:[.4,0,.1,1]},k_=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),A_=k_("applewebkit/")&&!k_("chrome/")?Math.round:mi;function j_(e){e.min=A_(e.min),e.max=A_(e.max)}function QH(e){j_(e.x),j_(e.y)}function dL(e,t,n){return e==="position"||e==="preserve-aspect"&&!vH(m_(t),m_(n),.2)}function JH(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const eW=uL({attachResizeListener:(e,t)=>kh(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),zy={current:void 0},fL=uL({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!zy.current){const e=new eW({});e.mount(window),e.setOptions({layoutScroll:!0}),zy.current=e}return zy.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Jg=j.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function C_(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function tW(...e){return t=>{let n=!1;const r=e.map(i=>{const s=C_(i,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i<r.length;i++){const s=r[i];typeof s=="function"?s():C_(e[i],null)}}}}function nW(...e){return j.useCallback(tW(...e),e)}class rW extends j.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(Hf(n)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=n.offsetParent,i=Hf(r)&&r.offsetWidth||0,s=Hf(r)&&r.offsetHeight||0,o=getComputedStyle(n),a=this.props.sizeRef.current;a.height=parseFloat(o.height),a.width=parseFloat(o.width),a.top=n.offsetTop,a.left=n.offsetLeft,a.right=i-a.width-a.left,a.bottom=s-a.height-a.top,a.direction=o.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function iW({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:s}){var m;const o=j.useId(),a=j.useRef(null),l=j.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:c}=j.useContext(Jg),d=s!==!1?((m=e.props)==null?void 0:m.ref)??(e==null?void 0:e.ref):void 0,h=nW(a,d);return j.useInsertionEffect(()=>{const{width:f,height:x,top:v,left:b,right:y,bottom:S,direction:_}=l.current;if(t||s===!1||!a.current||!f||!x)return;const k=_==="rtl",O=n==="left"?k?`right: ${y}`:`left: ${b}`:k?`left: ${b}`:`right: ${y}`,$=r==="bottom"?`bottom: ${S}`:`top: ${v}`;a.current.dataset.motionPopId=o;const U=document.createElement("style");c&&(U.nonce=c);const I=i??document.head;return I.appendChild(U),U.sheet&&U.sheet.insertRule(` 401 [data-motion-pop-id="${o}"] { 402 position: absolute !important; 403 width: ${f}px !important; 404 height: ${x}px !important; 405 ${O}px !important; 406 ${$}px !important; 407 } 408 `),()=>{var R;(R=a.current)==null||R.removeAttribute("data-motion-pop-id"),I.contains(U)&&I.removeChild(U)}},[t]),u.jsx(rW,{isPresent:t,childRef:a,sizeRef:l,pop:s,children:s===!1?e:j.cloneElement(e,{ref:h})})}const sW=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o,anchorX:a,anchorY:l,root:c})=>{const d=ul(oW),h=j.useId(),m=j.useRef(n),f=j.useRef(r);ad(()=>{m.current=n,f.current=r});let x=!0,v=j.useMemo(()=>(x=!1,{id:h,initial:t,isPresent:n,custom:i,onExitComplete:b=>{d.set(b,!0);for(const y of d.values())if(!y)return;r&&r()},register:b=>(d.set(b,!1),()=>{var y;d.delete(b),!m.current&&!d.size&&((y=f.current)==null||y.call(f))})}),[n,d,r]);return s&&x&&(v={...v}),j.useMemo(()=>{d.forEach((b,y)=>d.set(y,!1))},[n]),j.useEffect(()=>{!n&&!d.size&&r&&r()},[n]),e=u.jsx(iW,{pop:o==="popLayout",isPresent:n,anchorX:a,anchorY:l,root:c,children:e}),u.jsx(Kg.Provider,{value:v,children:e})};function oW(){return new Map}function hL(e=!0){const t=j.useContext(Kg);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=j.useId();j.useEffect(()=>{if(e)return i(s)},[e]);const o=j.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const gm=e=>e.key||"";function E_(e){const t=[];
vendor: 5,459 bytes, line 408
408return j.Children.forEach(e,n=>{j.isValidElement(n)&&t.push(n)}),t}const aW=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:o=!1,anchorX:a="left",anchorY:l="top",root:c})=>{const[d,h]=hL(o),m=j.useMemo(()=>E_(e),[e]),f=o&&!d?[]:m.map(gm),x=j.useRef(!0),v=j.useRef(m),b=ul(()=>new Map),y=j.useRef(new Set),[S,_]=j.useState(m),[k,O]=j.useState(m);ad(()=>{o&&!d&&!k.length&&(h==null||h())},[d,o,k.length,h]),ad(()=>{x.current=!1,v.current=m;for(let I=0;I<k.length;I++){const R=gm(k[I]);f.includes(R)?(b.delete(R),y.current.delete(R)):b.get(R)!==!0&&b.set(R,!1)}},[k,f.length,f.join("-")]);const $=[];if(m!==S){let I=[...m],R=0;for(const z of k){const C=f.indexOf(gm(z));C===-1?(I.splice(R++,0,z),$.push(z)):R=C+$.length+1}return s==="wait"&&$.length&&(I=$),O(E_(I)),_(m),null}const{forceRender:U}=j.useContext(vb);return u.jsx(u.Fragment,{children:k.map(I=>{const R=gm(I),z=o&&!d?!1:m===k||f.includes(R),C=()=>{if(y.current.has(R))return;if(b.has(R))y.current.add(R),b.set(R,!0);else return;let L=!0;b.forEach(D=>{D||(L=!1)}),L&&(U==null||U(),O(v.current),o&&(h==null||h()),r&&r())};return u.jsx(sW,{isPresent:z,initial:!x.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:s,root:c,onExitComplete:z?void 0:C,anchorX:a,anchorY:l,children:I},R)})})},pL=j.createContext({strict:!1}),L_={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let P_=!1;function lW(){if(P_)return;const e={};for(const t in L_)e[t]={isEnabled:n=>L_[t].some(r=>!!n[r])};$E(e),P_=!0}function mL(){return lW(),Wq()}function cW(e){const t=mL();for(const n in e)t[n]={...t[n],...e[n]};$E(t)}const e1=j.createContext({});function uW(e,t){if(Qg(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Nh(n)?n:void 0,animate:Nh(r)?r:void 0}}return e.inherit!==!1?t:{}}function dW(e){const{initial:t,animate:n}=uW(e,j.useContext(e1));return j.useMemo(()=>({initial:t,animate:n}),[T_(t),T_(n)])}function T_(e){return Array.isArray(e)?e.join(" "):e}const Wb=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function gL(e,t,n){for(const r in t)!Cr(t[r])&&!XE(r,n)&&(e[r]=t[r])}function fW({transformTemplate:e},t){return j.useMemo(()=>{const n=Wb();return qb(n,t,e),Object.assign({},n.vars,n.style)},[t])}function hW(e,t){const n=e.style||{},r={};return gL(r,n,e),Object.assign(r,fW(e,t)),r}function pW(e,t){const n={},r=hW(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const yL=()=>({...Wb(),attrs:{}});function mW(e,t,n,r){const i=j.useMemo(()=>{const s=yL();return QE(s,t,eL(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};gL(s,e.style,e),i.style={...s,...i.style}}return i}const gW=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function og(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||gW.has(e)}function yW(e,t){return e.startsWith("on")?!og(e):(t==null?void 0:t(e))??!og(e)}function xW(e,t,n,r){const i={};for(const s in e)s==="values"&&typeof e.values=="object"||Cr(e[s])||(yW(s,r)||n===!0&&og(s)||!t&&!og(s)||e.draggable&&s.startsWith("onDrag"))&&(i[s]=e[s]);return i}const vW=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Gb(e){return typeof e!="string"||e.includes("-")?!1:!!(vW.indexOf(e)>-1||/[A-Z]/u.test(e))}function bW(e,t,n,{latestValues:r},i,s=!1,o,a){const c=(o??Gb(e)?mW:pW)(t,r,i,e),d=xW(t,typeof e=="string",s,a),h=e!==j.Fragment?{...d,...c,ref:n}:{},{children:m}=t,f=j.useMemo(()=>Cr(m)?m.get():m,[m]);return j.createElement(e,{...h,children:f})}function wW({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:SW(n,r,i,e),renderState:t()}}function SW(e,t,n,r){const i={},s=r(e,{});for(const m in s)i[m]=e0(s[m]);let{initial:o,animate:a}=e;const l=Qg(e),c=UE(e);t&&c&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||o===!1;const h=d?a:o;if(h&&typeof h!="boolean"&&!Zg(h)){const m=Array.isArray(h)?h:[h];for(let f=0;f<m.length;f++){const x=Fb(e,m[f]);if(x){const{transitionEnd:v,transition:b,...y}=x;for(const S in y){let _=y[S];if(Array.isArray(_)){const k=d?_.length-1:0;_=_[k]}_!==null&&(i[S]=_)}for(const S in v)i[S]=v[S]}}}return i}const xL=e=>(t,n)=>{const r=j.useContext(e1),i=j.useContext(Kg),s=()=>
vendor: 22,039 bytes, line 408
408wW(e,t,r,i);return n?s():ul(s)},_W=xL({scrapeMotionValuesFromProps:Hb,createRenderState:Wb}),NW=xL({scrapeMotionValuesFromProps:tL,createRenderState:yL}),kW=Symbol.for("motionComponentSymbol");function AW(e,t,n){const r=j.useRef(n);j.useInsertionEffect(()=>{r.current=n});const i=j.useRef(null);return j.useCallback(s=>{var a;s&&((a=e.onMount)==null||a.call(e,s)),t&&(s?t.mount(s):t.unmount());const o=r.current;if(typeof o=="function")if(s){const l=o(s);typeof l=="function"&&(i.current=l)}else i.current?(i.current(),i.current=null):o(s);else o&&(o.current=s)},[t])}const vL=j.createContext({});function tu(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function jW(e,t,n,r,i,s){var _,k;const{visualElement:o}=j.useContext(e1),a=j.useContext(pL),l=j.useContext(Kg),c=j.useContext(Jg),d=c.reducedMotion,h=c.skipAnimations,m=j.useRef(null),f=j.useRef(!1);r=r||a.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:d,skipAnimations:h,isSVG:s}),f.current&&m.current&&(m.current.manuallyAnimateOnMount=!0));const x=m.current,v=j.useContext(vL);x&&!x.projection&&i&&(x.type==="html"||x.type==="svg")&&CW(m.current,n,i,v);const b=j.useRef(!1);j.useInsertionEffect(()=>{x&&b.current&&x.update(n,l)});const y=n[jE],S=j.useRef(!!y&&typeof window<"u"&&!((_=window.MotionHandoffIsComplete)!=null&&_.call(window,y))&&((k=window.MotionHasOptimisedAnimation)==null?void 0:k.call(window,y)));return ad(()=>{f.current=!0,x&&(b.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),x.scheduleRenderMicrotask(),S.current&&x.animationState&&x.animationState.animateChanges())}),j.useEffect(()=>{x&&(!S.current&&x.animationState&&x.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{var O;(O=window.MotionHandoffMarkAsComplete)==null||O.call(window,y)}),S.current=!1),x.enteringChildren=void 0)}),x}function CW(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutAnchor:d,layoutCrossfade:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:bL(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&tu(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:h,layoutScroll:l,layoutRoot:c,layoutAnchor:d})}function bL(e){if(e)return e.options.allowProjection!==!1?e.projection:bL(e.parent)}function Uy(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&cW(r);const s=n?n==="svg":Gb(e),o=s?NW:_W;function a(c,d){let h;const m={...j.useContext(Jg),...c,layoutId:EW(c)},{isStatic:f,isValidProp:x}=m,v=dW(c),b=o(c,f);if(!f&&typeof window<"u"){LW();const y=PW(m);h=y.MeasureLayout,v.visualElement=jW(e,b,m,i,y.ProjectionNode,s)}return u.jsxs(e1.Provider,{value:v,children:[h&&v.visualElement?u.jsx(h,{visualElement:v.visualElement,...m}):null,bW(e,c,AW(b,v.visualElement,d),b,f,t,s,x)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=j.forwardRef(a);return l[kW]=e,l}function EW({layoutId:e}){const t=j.useContext(vb).id;return t&&e!==void 0?t+"-"+e:e}function LW(e,t){j.useContext(pL).strict}function PW(e){const t=mL(),{drag:n,layout:r}=t;if(!n&&!r)return{};const i={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function TW(e,t){if(typeof Proxy>"u")return Uy;const n=new Map,r=(s,o)=>Uy(s,o,e,t),i=(s,o)=>r(s,o);return new Proxy(i,{get:(s,o)=>o==="create"?r:(n.has(o)||n.set(o,Uy(o,void 0,e,t)),n.get(o))})}const RW=(e,t)=>t.isSVG??Gb(e)?new lH(t):new rH(t,{allowProjection:e!==j.Fragment});class OW extends gl{constructor(t){super(t),t.animationState||(t.animationState=hH(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Zg(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let IW=0;class MW extends gl{constructor(){super(...arguments),this.id=IW++,this.isExitComplete=!1}update(){var s;if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;if(t&&r===!1){if(this.isExitComplete){const{initial:o,custom:a}=this.node.getProps();if(typeof o=="string"||typeof o=="object"&&o!==null&&!Array.isArray(o)){const l=uc(this.node,o,a);if(l){const{transition:c,transitionEnd:d,...h}=l;for(const m in h)(s=this.node.getValue(m))==null||s.jump(h[m])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const FW={animation:{Feature:OW},exit:{Feature:MW}};function tp(e){return{point:{x:e.pageX,y:e.pageY}}}const DW=e=>t=>zb(t)&&e(t,tp(t));function Gf(e,t,n,r){return kh(e,t,DW(n),r)}const wL=({current:e})=>e?e.ownerDocument.defaultView:null,R_=(e,t)=>Math.abs(e-t);function BW(e,t){const n=R_(e.x,t.x),r=R_(e.y,t.y);return Math.sqrt(n**2+r**2)}const O_=new Set(["auto","scroll"]);class SL{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:s=!1,distanceThreshold:o=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=x=>{this.handleScroll(x.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=ym(this.lastRawMoveEventInfo,this.transformPagePoint));const x=Vy(this.lastMoveEventInfo,this.history),v=this.startEvent!==null,b=BW(x.offset,{x:0,y:0})>=this.distanceThreshold;if(!v&&!b)return;const{point:y}=x,{timestamp:S}=fr;this.history.push({...y,timestamp:S});const{onStart:_,onMove:k}=this.handlers;v||(_&&_(this.lastMoveEvent,x),this.startEvent=this.lastMoveEvent),k&&k(this.lastMoveEvent,x)},this.handlePointerMove=(x,v)=>{this.lastMoveEvent=x,this.lastRawMoveEventInfo=v,this.lastMoveEventInfo=ym(v,this.transformPagePoint),Vt.update(this.updatePoint,!0)},this.handlePointerUp=(x,v)=>{this.end();const{onEnd:b,onSessionEnd:y,resumeAnimation:S}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&S&&S(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const _=Vy(x.type==="pointercancel"?this.lastMoveEventInfo:ym(v,this.transformPagePoint),this.history);this.startEvent&&b&&b(x,_),y&&y(x,_)},!zb(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=i||window;const l=tp(t),c=ym(l,this.transformPagePoint),{point:d}=c,{timestamp:h}=fr;this.history=[{...d,timestamp:h}];const{onSessionStart:m}=n;m&&m(t,Vy(c,this.history));const f={passive:!0,capture:!0};this.removeListeners=Qh(Gf(this.contextWindow,"pointermove",this.handlePointerMove,f),Gf(this.contextWindow,"pointerup",this.handlePointerUp,f),Gf(this.contextWindow,"pointercancel",this.handlePointerUp,f)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(O_.has(r.overflowX)||O_.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,i=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:i.x-n.x,y:i.y-n.y};s.x===0&&s.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,i),Vt.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ss(this.updatePoint)}}function ym(e,t){return t?{point:t(e.point)}:e}function I_(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Vy({point:e},t){return{point:e,delta:I_(e,_L(t)),offset:I_(e,zW(t)),velocity:UW(t,.1)}}function zW(e){return e[0]}function _L(e){return e[e.length-1]}function UW(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=_L(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>gi(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>gi(t)*2&&(r=e[1]);const s=ts(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function VW(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?cn(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?cn(n,e,r.max):Math.min(e,n)),e}function M_(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function $W(e,{top:t,left:n,bottom:r,right:i}){return{x:M_(e.x,n,i),y:M_(e.y,t,r)}}function F_(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function qW(e,t){return{x:F_(e.x,t.x),y:F_(e.y,t.y)}}function HW(e,t){let n=.5;const r=Zr(e),i=Zr(t);return i>r?n=ld(t.min,t.max-r,e.min):r>i&&(n=ld(e.min,e.max-i,t.min)),Os(0,1,n)}function WW(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const _v=.35;function GW(e=_v){return e===!1?e=0:e===!0&&(e=_v),{x:D_(e,"left","right"),y:D_(e,"top","bottom")}}function D_(e,t,n){return{min:B_(e,t),max:B_(e,n)}}function B_(e,t){return typeof e=="number"?e:e[t]||0}const KW=new WeakMap;class YW{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=sr(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=h=>{n&&this.snapToCursor(tp(h).point),this.stopAnimation()},o=(h,m)=>{const{drag:f,dragPropagation:x,onDragStart:v}=this.getProps();if(f&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=wq(f),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=m,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Zs(y=>{let S=this.getAxisMotionValue(y).get()||0;if(co.test(S)){const{projection:_}=this.visualElement;if(_&&_.layout){const k=_.layout.layoutBox[y];k&&(S=Zr(k)*(parseFloat(S)/100))}}this.originPoint[y]=S}),v&&Vt.update(()=>v(h,m),!1,!0),fv(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},a=(h,m)=>{this.latestPointerEvent=h,this.latestPanInfo=m;const{dragPropagation:f,dragDirectionLock:x,onDirectionLock:v,onDrag:b}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:y}=m;if(x&&this.currentDirection===null){this.currentDirection=ZW(y),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",m.point,y),this.updateAxis("y",m.point,y),this.visualElement.render(),b&&Vt.update(()=>b(h,m),!1,!0)},l=(h,m)=>{this.latestPointerEvent=h,this.latestPanInfo=m,this.stop(h,m),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{const{dragSnapToOrigin:h}=this.getProps();(h||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:d}=this.getProps();this.panSession=new SL(t,{onSessionStart:s,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:r,contextWindow:wL(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!r)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&Vt.postRender(()=>a(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!xm(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=VW(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var s;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,i=this.constraints;t&&tu(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=$W(r.layoutBox,t):this.constraints=!1,this.elastic=GW(n),i!==this.constraints&&!tu(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&Zs(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=WW(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!tu(t))return!1;const r=t.current;Xo(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;i.root&&(i.root.scroll=void 0,i.root.updateScroll());const s=Zq(r,i.root,this.visualElement.getTransformPagePoint());let o=qW(i.layout.layoutBox,s);if(n){const a=n(Kq(o));this.hasMutatedConstraints=!!a,a&&(o=HE(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=Zs(d=>{if(!xm(d,n,this.currentDirection))return;let h=l&&l[d]||{};(o===!0||o===d)&&(h={min:0,max:0});const m=i?200:1e6,f=i?40:1e7,x={type:"inertia",velocity:r?t[d]:0,bounceStiffness:m,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...s,...h};return this.startAxisValueAnimation(d,x)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return fv(this.visualElement,t),r.start(Mb(t,r,0,n,this.visualElement,!1))}stopAnimation(){Zs(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps()[n];return i||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){Zs(n=>{const{drag:r}=this.getProps();if(!xm(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n],l=s.get()||0;s.set(t[n]-cn(o,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!tu(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Zs(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=HW({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),Zs(o=>{if(!xm(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(cn(l,c,i[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;KW.set(this.visualElement,this);const t=this.visualElement.current,n=Gf(t,"pointerdown",c=>{const{drag:d,dragListener:h=!0}=this.getProps(),m=c.target,f=m!==t&&jq(m);d&&h&&!f&&this.start(c)});let r;const i=()=>{const{dragConstraints:c}=this.getProps();tu(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),r||(r=XW(t,c.current,()=>this.scalePositionWithinConstraints())))},{projection:s}=this.visualElement,o=s.addEventListener("measure",i);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),Vt.read(i);const a=kh(window,"resize",()=>this.scalePositionWithinConstraints()),l=s.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(Zs(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=c[h].translate,m.set(m.get()+c[h].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),l&&l(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=_v,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function z_(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function XW(e,t,n){const r=yv(e,z_(n)),i=yv(t,z_(n));return()=>{r(),i()}}function xm(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function ZW(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class QW extends gl{constructor(t){super(t),this.removeGroupControls=mi,this.removeListeners=mi,this.controls=new YW(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||mi}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const $y=e=>(t,n)=>{e&&Vt.update(()=>e(t,n),!1,!0)};class JW extends gl{constructor(){super(...arguments),this.removePointerDownListener=mi}onPointerDown(t){this.session=new SL(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:wL(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:$y(t),onStart:$y(n),onMove:$y(r),onEnd:(s,o)=>{delete this.session,i&&Vt.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=Gf(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let qy=!1;class eG extends j.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),qy&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),t0.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,{projection:o}=r;return o&&(o.isPresent=s,t.layoutDependency!==n&&o.setOptions({...o.options,layoutDependency:n}),qy=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||Vt.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=n,r.root.didUpdate(),ud.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;qy=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function NL(e){const[t,n]=hL(),r=j.useContext(vb);return u.jsx(eG,{...e,layoutGroup:r,switchLayoutGroup:j.useContext(vL),isPresent:t,safeToRemove:n})}const tG={pan:{Feature:JW},drag:{Feature:QW,ProjectionNode:fL,MeasureLayout:NL}};function U_(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&Vt.postRender(()=>s(t,tp(t)))}class nG extends gl{mount(){const{current:t}=this.node;t&&(this.unmount=_q(t,(n,r)=>(U_(this.node,r,"Start"),i=>U_(this.node,i,"End"))))}unmount(){}}class rG extends gl{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Qh(kh(this.node.current,"focus",()=>this.onFocus()),kh(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function V_(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&Vt.postRender(()=>s(t,tp(t)))}class iG extends gl{mount(){const{current:t}=this.node;if(!t)return;
408const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=Eq(t,(i,s)=>(V_(this.node,s,"Start"),(o,{success:a})=>V_(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const Nv=new WeakMap,Hy=new WeakMap,sG=e=>{const t=Nv.get(e.target);t&&t(e)},oG=e=>{e.forEach(sG)};function aG({root:e,...t}){const n=e||document;Hy.has(n)||Hy.set(n,{});const r=Hy.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(oG,{root:e,...t})),r[i]}function lG(e,t,n){const r=aG(t);return Nv.set(e,n),r.observe(e),()=>{Nv.delete(e),r.unobserve(e)}}const cG={some:0,all:1};class uG extends gl{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var l;(l=this.stopObserver)==null||l.call(this);const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:cG[i]},a=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,s&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),f=d?h:m;f&&f(c)};this.stopObserver=lG(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(dG(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function dG({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const fG={inView:{Feature:uG},tap:{Feature:iG},focus:{Feature:rG},hover:{Feature:nG}},hG={layout:{ProjectionNode:fL,MeasureLayout:NL}},pG={...FW,...fG,...tG,...hG},mG=TW(pG,RW);function ag(e){return typeof window>"u"?!1:e?gE():Ob()}const gG=50,$_=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),yG=()=>({time:0,x:$_(),y:$_()}),xG={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function q_(e,t,n,r){const i=n[t],{length:s,position:o}=xG[t],a=i.current,l=n.time;i.current=Math.abs(e[`scroll${o}`]),i.scrollLength=e[`scroll${s}`]-e[`client${s}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=ld(0,i.scrollLength,i.current);const c=r-l;i.velocity=c>gG?0:Sb(i.current-a,c)}function vG(e,t,n){q_(e,"x",t,n),q_(e,"y",t,n),t.time=n}function bG(e,t){const n={x:0,y:0};let r=e;for(;r&&r!==t;)if(Hf(r))n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName==="svg"){const i=r.getBoundingClientRect();r=r.parentElement;const s=r.getBoundingClientRect();n.x+=i.left-s.left,n.y+=i.top-s.top}else if(r instanceof SVGGraphicsElement){const{x:i,y:s}=r.getBBox();n.x+=i,n.y+=s;let o=null,a=r.parentNode;for(;!o;)a.tagName==="svg"&&(o=a),a=r.parentNode;r=o}else break;return n}const kv={start:0,center:.5,end:1};function H_(e,t,n=0){let r=0;if(e in kv&&(e=kv[e]),typeof e=="string"){const i=parseFloat(e);e.endsWith("px")?r=i:e.endsWith("%")?e=i/100:e.endsWith("vw")?r=i/100*document.documentElement.clientWidth:e.endsWith("vh")?r=i/100*document.documentElement.clientHeight:e=i}return typeof e=="number"&&(r=t*e),n+r}const wG=[0,0];function SG(e,t,n,r){let i=Array.isArray(e)?e:wG,s=0,o=0;return typeof e=="number"?i=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?i=e.split(" "):i=[e,kv[e]?e:"0"]),s=H_(i[0],n,r),o=H_(i[1],t),s-o}const jf={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},_G={x:0,y:0};function NG(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function kG(e,t,n){const{offset:r=jf.All}=n,{target:i=e,axis:s="y"}=n,o=s==="y"?"height":"width",a=i!==e?bG(i,e):_G,l=i===e?{width:e.scrollWidth,height:e.scrollHeight}:NG(i),c={width:e.clientWidth,height:e.clientHeight};t[s].offset.length=0;let d=!t[s].interpolate;const h=r.length;for(let m=0;m<h;m++){const f=SG(r[m],c[o],l[o],a[s]);!d&&f!==t[s].interpolatorOffsets[m]&&(d=!0),t[s].offset[m]=f}d&&(t[s].interpolate=Lb(t[s].offset,dE(r),{clamp:!1}
408),t[s].interpolatorOffsets=[...t[s].offset]),t[s].progress=Os(0,1,t[s].interpolate(t[s].current))}function AG(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let r=t;for(;r&&r!==e;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight}function jG(e,t,n,r={}){return{measure:i=>{AG(e,r.target,n),vG(e,n,i),(r.offset||r.target)&&kG(e,n,r)},notify:()=>t(n)}}const Kc=new WeakMap,W_=new WeakMap,Wy=new WeakMap,G_=new WeakMap,vm=new WeakMap,K_=e=>e===document.scrollingElement?window:e;function kL(e,{container:t=document.scrollingElement,trackContentSize:n=!1,...r}={}){if(!t)return mi;let i=Wy.get(t);i||(i=new Set,Wy.set(t,i));const s=yG(),o=jG(t,e,s,r);if(i.add(o),!Kc.has(t)){const l=()=>{for(const m of i)m.measure(fr.timestamp);Vt.preUpdate(c)},c=()=>{for(const m of i)m.notify()},d=()=>Vt.read(l);Kc.set(t,d);const h=K_(t);window.addEventListener("resize",d),t!==document.documentElement&&W_.set(t,yv(t,d)),h.addEventListener("scroll",d),d()}if(n&&!vm.has(t)){const l=Kc.get(t),c={width:t.scrollWidth,height:t.scrollHeight};G_.set(t,c);const d=()=>{const m=t.scrollWidth,f=t.scrollHeight;(c.width!==m||c.height!==f)&&(l(),c.width=m,c.height=f)},h=Vt.read(d,!0);vm.set(t,h)}const a=Kc.get(t);return Vt.read(a,!1,!0),()=>{var h;ss(a);const l=Wy.get(t);if(!l||(l.delete(o),l.size))return;const c=Kc.get(t);Kc.delete(t),c&&(K_(t).removeEventListener("scroll",c),(h=W_.get(t))==null||h(),window.removeEventListener("resize",c));const d=vm.get(t);d&&(ss(d),vm.delete(t)),G_.delete(t)}}const CG=[[jf.Enter,"entry"],[jf.Exit,"exit"],[jf.Any,"cover"],[jf.All,"contain"]],Y_={start:0,end:1};function EG(e){const t=e.trim().split(/\s+/);if(t.length!==2)return;const n=Y_[t[0]],r=Y_[t[1]];if(!(n===void 0||r===void 0))return[n,r]}function LG(e){if(e.length!==2)return;const t=[];for(const n of e)if(Array.isArray(n))t.push(n);else if(typeof n=="string"){const r=EG(n);if(!r)return;t.push(r)}else return;return t}function PG(e,t){const n=LG(e);if(!n)return!1;for(let r=0;r<2;r++){const i=n[r],s=t[r];if(i[0]!==s[0]||i[1]!==s[1])return!1}return!0}function Kb(e){if(!e)return{rangeStart:"contain 0%",rangeEnd:"contain 100%"};for(const[t,n]of CG)if(PG(e,t))return{rangeStart:`${n} 0%`,rangeEnd:`${n} 100%`}}const X_=new Map;function Z_(e){const t={value:0},n=kL(r=>
408{t.value=r[e.axis].progress*100},e);return{currentTime:t,cancel:n}}function AL({source:e,container:t,...n}){const{axis:r}=n;e&&(t=e);let i=X_.get(t);i||(i=new Map,X_.set(t,i));const s=n.target??"self";let o=i.get(s);o||(o={},i.set(s,o));const a=r+(n.offset??[]).join(",");return o[a]||(n.target&&ag(n.target)?Kb(n.offset)?o[a]=new ViewTimeline({subject:n.target,axis:r}):o[a]=Z_({container:t,...n}):ag()?o[a]=new ScrollTimeline({source:t,axis:r}):o[a]=Z_({container:t,...n})),o[a]}function TG(e,t){const n=AL(t),r=t.target?Kb(t.offset):void 0,i=t.target?ag(t.target)&&!!r:ag();return e.attachTimeline({timeline:i?n:void 0,...r&&i&&{rangeStart:r.rangeStart,rangeEnd:r.rangeEnd},observe:s=>(s.pause(),zE(o=>{s.time=s.iterationDuration*o},n))})}function RG(e){return e&&(e.target||e.offset)}function OG(e){return e.length===2}function IG(e,t){return OG(e)||RG(t)?kL(n=>{e(n[t.axis].progress,n)},t):zE(e,AL(t))}function jL(e,{axis:t="y",container:n=document.scrollingElement,...r}={}){if(!n)return mi;const i={axis:t,container:n,...r};return typeof e=="function"?IG(e,i):TG(e,i)}const MG=()=>({scrollX:As(0),scrollY:As(0),scrollXProgress:As(0),scrollYProgress:As(0)}),vu=e=>e?!e.current:!1;function Q_(e,t,n,r){return{factory:i=>{let s;const o=()=>{if(vu(n)||vu(r)){ud.read(o);return}s=jL(i,{...t,axis:e,container:(n==null?void 0:n.current)||void 0,target:(r==null?void 0:r.current)||void 0})};return ud.read(o),()=>{IE(o),s==null||s()}},times:[0,1],keyframes:[0,1],ease:i=>i,duration:1}}function FG(e,t){return typeof window>"u"?!1:e?gE()&&!!Kb(t):Ob()}function DG({container:e,target:t,...n}={}){const r=ul(MG);
408FG(t,n.offset)&&(r.scrollXProgress.accelerate=Q_("x",n,e,t),r.scrollYProgress.accelerate=Q_("y",n,e,t));const i=j.useRef(null),s=j.useRef(!1),o=j.useCallback(()=>(i.current=jL((a,{x:l,y:c})=>{r.scrollX.set(l.current),r.scrollXProgress.set(l.progress),r.scrollY.set(c.current),r.scrollYProgress.set(c.progress)},{...n,container:(e==null?void 0:e.current)||void 0,target:(t==null?void 0:t.current)||void 0}),()=>{var a;(a=i.current)==null||a.call(i)}),[e,t,JSON.stringify(n.offset)]);return ad(()=>{if(s.current=!1,vu(e)||vu(t)){s.current=!0;return}else return o()},[o]),j.useEffect(()=>{if(!s.current)return;let a;const l=()=>{const c=vu(e),d=vu(t);Xo(!c,"Container ref is defined but not hydrated","use-scroll-ref"),Xo(!d,"Target ref is defined but not hydrated","use-scroll-ref"),!c&&!d&&(a=o())};return ud.read(l),()=>{IE(l),a==null||a()}},[o]),r}function BG(e){const t=ul(()=>As(e)),{isStatic:n}=j.useContext(Jg);if(n){const[,r]=j.useState(e);j.useEffect(()=>t.on("change",r),[])}return t}function CL(e,t){const n=BG(t()),r=()=>n.set(t());return r(),ad(()=>{const i=()=>Vt.preRender(r,!1,!0),s=e.map(o=>o.on("change",i));return()=>{s.forEach(o=>o()),ss(r)}}),n}function zG(e){qf.current=[],e();const t=CL(qf.current,e);return qf.current=void 0,t}function EL(e,t,n,r){if(typeof e=="function")return zG(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!="function")return UG(e,t,n,r);const o=typeof t=="function"?t:Bq(t,n,r),a=Array.isArray(e)?J_(e,o):J_([e],([c])=>o(c)),l=Array.isArray(e)?void 0:e.accelerate;return l&&!l.isTransformed&&typeof t!="function"&&Array.isArray(n)&&(r==null?void 0:r.clamp)!==!1&&(a.accelerate={...l,times:t,keyframes:n,isTransformed:!0}),a}function J_(e,t){const n=ul(()=>[]);return CL(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}function UG(e,t,n,r){const i=ul(()=>Object.keys(n)),s=ul(()=>({}));for(const o of i)s[o]=EL(e,t,n[o],r);return s}const Me=mG,ta=({className:e="",opacity:t=.55})=>u.jsx("div",{className:`absolute inset-0 overflow-hidden pointer-events-none select-none ${e}`,style:{opacity:t},"aria-hidden":"true",children:u.jsxs("svg",{className:"w-full h-full object-cover",viewBox:"0 0 1440 900",fill:"none",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid slice",children:[u.jsxs("defs",{children:[u.jsxs("linearGradient",{id:"atlas-gold-fade",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[u.jsx("stop",{offset:"0%",stopColor:"#c9a959",stopOpacity:"0.8"}),u.jsx("stop",{offset:"50%",stopColor:"#c9a959",stopOpacity:"0.4"}),u.jsx("stop",{offset:"100%",stopColor:"#ac8181",stopOpacity:"0.15"})]}),u.jsxs("linearGradient",{id:"contour-line-grad",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[u.jsx("stop",{offset:"0%",stopColor:"#c9a959",stopOpacity:"0.0"}),u.jsx("stop",{offset:"20%",stopColor:"#c9a959",stopOpacity:"0.55"}),u.jsx("stop",{offset:"70%",stopColor:"#c9a959",stopOpacity:"0.35"}),u.jsx("stop",{offset:"100%",stopColor:"#ac8181",stopOpacity:"0.0"})]}),u.jsxs("filter",{id:"gold-glow",x:"-20%",y:"-20%",width:"140%",height:"140%",children:[u.jsx("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"5",result:"blur"}),u.jsxs("feMerge",{children:[u.jsx("feMergeNode",{in:"blur"}),u.jsx("feMergeNode",{in:"SourceGraphic"})]})]})]}),u.jsxs(Me.g,{animate:{rotate:360},transition:{duration:120,repeat:1/0,ease:"linear"},style:{transformOrigin:"1200px 220px"},children:[u.jsx("circle",{cx:"1200",cy:"220",r:"320",stroke:"url(#atlas-gold-fade)",strokeWidth:"1",strokeDasharray:"4 10",opacity:"0.35"}),u.jsx("circle",{cx:"1200",cy:"220",r:"460",stroke:"#c9a959",strokeWidth:"0.75",strokeDasharray:"8 16",opacity:"0.2"})]}),u.jsx(Me.g,{animate:{rotate:-360},transition:{duration:160,repeat:1/0,ease:"linear"},style:{transformOrigin:"150px 750px"},children:u.jsx("circle",{cx:"150",cy:"750",r:"280",stroke:"url(#atlas-gold-fade)",strokeWidth:"1",strokeDasharray:"4 12",opacity:"0.3"})}),u.jsxs("g",{stroke:"url(#contour-line-grad)",strokeLinecap:"round",children:[u.jsx(Me.path,{d:"M -100 240 C 220 180, 480 340, 780 230 S 1180 120, 1540 280",strokeWidth:"1.6",initial:{pathLength:.8,opacity:.7},animate:{pathLength:[.8,1,.8],opacity:[.7,.95,.7]},transition:{duration:8,repeat:1/0,ease:"easeInOut"}}),u.jsx(Me.path,{d:"M -80 390 C 260 310, 520 520, 840 370 S 1220 280, 1560 430",strokeWidth:"1.2",strokeDasharray:"6 8",animate:{strokeDashoffset:[0,-100]},transition:{duration:25,repeat:1/0,ease:"linear"}}),u.jsx(Me.path,{d:"M -120 560 C 200 480, 440 680, 760 540 S 1140 450, 1580 610",strokeWidth:"1.4",initial:{opacity:.6}
408,animate:{opacity:[.6,.85,.6]},transition:{duration:10,repeat:1/0,ease:"easeInOut",delay:1}}),u.jsx(Me.path,{d:"M -60 720 C 310 620, 580 840, 920 680 S 1280 610, 1560 760",strokeWidth:"1",strokeDasharray:"3 9",animate:{strokeDashoffset:[0,80]},transition:{duration:30,repeat:1/0,ease:"linear"}}),u.jsx("path",{d:"M -100 850 C 280 760, 620 960, 980 810 S 1340 760, 1580 890",strokeWidth:"0.8",opacity:"0.4"})]}),u.jsxs(Me.g,{animate:{scale:[1,1.15,1],opacity:[.8,1,.8]},transition:{duration:3,repeat:1/0,ease:"easeInOut"},style:{transformOrigin:"280px 215px"},children:[u.jsx("circle",{cx:"280",cy:"215",r:"5",fill:"#c9a959",filter:"url(#gold-glow)"}),u.jsx("circle",{cx:"280",cy:"215",r:"14",stroke:"#c9a959",strokeWidth:"0.8",opacity:"0.45"}),u.jsx("text",{x:"305",y:"219",fill:"#f8f8ff",opacity:"0.6",fontSize:"10",fontFamily:"'Space Grotesk', sans-serif",letterSpacing:"0.15em",children:"ROUTE 01 / CAIRO 30.04°N"})]}),u.jsxs(Me.g,{animate:{scale:[1,1.2,1],opacity:[.75,1,.75]},transition:{duration:3.5,repeat:1/0,ease:"easeInOut",delay:1},style:{transformOrigin:"920px 370px"},children:[u.jsx("circle",{cx:"920",cy:"370",r:"4.5",fill:"#c9a959",filter:"url(#gold-glow)"}),u.jsx("circle",{cx:"920",cy:"370",r:"12",stroke:"#c9a959",strokeWidth:"0.8",strokeDasharray:"2 3",opacity:"0.5"}),u.jsx("text",{x:"940",y:"374",fill:"#f8f8ff",opacity:"0.55",fontSize:"9.5",fontFamily:"'Space Grotesk', sans-serif",letterSpacing:"0.15em",children:"WAYPOINT / 31.23°E"})]}),u.jsxs(Me.g,{animate:{scale:[1,1.18,1],opacity:[.8,1,.8]},transition:{duration:4,repeat:1/0,ease:"easeInOut",delay:2},style:{transformOrigin:"1180px 650px"},children:[u.jsx("circle",{cx:"1180",cy:"650",r:"5.5",fill:"#c9a959",filter:"url(#gold-glow)"}),u.jsx("circle",{cx:"1180",cy:"650",r:"16",stroke:"#c9a959",strokeWidth:"1",opacity:"0.4"}),u.jsx("text",{x:"1205",y:"654",fill:"#f8f8ff",opacity:"0.6",fontSize:"10",fontFamily:"'Space Grotesk', sans-serif",letterSpacing:"0.15em",children:"AI-ROS ATLAS / 2026"})]}),u.jsx("circle",{cx:"560",cy:"570",r:"3.5",fill:"#c9a959",opacity:"0.75"}),u.jsx("circle",{cx:"760",cy:"540",r:"4",fill:"#c9a959",opacity:"0.8"}),u.jsx("circle",{cx:"1380",cy:"400",r:"3",fill:"#c9a959",opacity:"0.6"})]})}),VG=()=>{const{i18n:e}=rn("home"),t=e.language==="ar";return u.jsxs("section",{className:"atlas-hero relative min-h-[92vh] flex flex-col justify-center px-6 sm:px-12 lg:px-20 max-w-7xl mx-auto pt-32 pb-20 overflow-hidden font-body","aria-labelledby":"home-hero-title",children:[u.jsx(ta,{opacity:.65,className:"z-0"}),u.jsx(Me.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{duration:.8,delay:.3},className:"atlas-hero__route-label",children:t?"اÙÙ
سار 00 / Ù
ÙØ¸ÙÙ
Ø© Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙاعÙ":"Route 00 / Intelligence Systems"}),u.jsxs(Me.div,{initial:"hidden",animate:"visible",variants:{hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.12,delayChildren:.1}}},className:"hero-copy max-w-4xl relative z-10",children:[u.jsxs(Me.p,{variants:{hidden:{opacity:0,y:-12},visible:{opacity:1,y:0,transition:{duration:.6}}},className:"text-xs sm:text-sm font-bold uppercase tracking-[0.18em] text-[#c9a959] mb-4 font-headings flex items-center gap-2",children:[u.jsx("span",{className:"w-2 h-2 rounded-full bg-[#c9a959] animate-ping"}),t?"Ø§ÙØ§Ø¨ØªÙار اÙÙÙÙ
Ø Ø§Ø³ØªØ¯Ø§Ù
Ø© Ø§ÙØºØ¯":"Innovating Today , Sustaining Tomorrow"]}),u.jsx(Me.h1,{id:"home-hero-title",variants:{hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.8,ease:[.16,1,.3,1]}}},className:"text-4xl sm:text-6xl lg:text-7xl font-bold font-headings text-white leading-[1.08] tracking-tight mb-6",children:t?u.jsxs(u.Fragment,{children:["دÙ
ج Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙاعÙ",u.jsx("br",{}),"Ù
ع Ø§ÙØ±ÙØ¨ÙØªÙس ",u.jsx("em",{className:"text-[#c9a959] not-italic",children:"ÙØ§ÙأتÙ
تة اÙÙ
ØªÙØ¯Ù
Ø©."})]}):u.jsxs(u.Fragment,{children:["Transforming Intelligence",u.jsx("br",{}),"into ",u.jsx("em",{className:"text-[#c9a959] not-italic",children:"Real-World Action."})]})}),u.jsx(Me.p,{variants:{hidden:{opacity:0,y:16},visible:{opacity:1,y:0,transition:{duration:.7}}},className:"hero-copy__intro max-w-2xl text-base sm:text-lg text-gray-300 font-body leading-relaxed mb-8",children:t?"ÙØ·Ùر ØÙÙÙØ§Ù Ù
ØªÙØ¯Ù
Ø© تÙ
ÙÙ٠اÙÙ
ؤسسات Ù
Ù Ø§ÙØ¹Ù
Ù Ø¨Ø°ÙØ§Ø¡Ø تØ
408³Ø±Ùع Ø§ÙØ§Ø¨ØªÙØ§Ø±Ø ÙØ¥Ø·Ùا٠إÙ
ÙØ§ÙÙØ§Øª Ø¬Ø¯ÙØ¯Ø© ÙÙ Ø§ÙØ²Ø±Ø§Ø¹Ø© Ø§ÙØ°ÙÙØ©Ø اÙÙ
Ø¯ÙØ ÙØ§ÙØ£ÙØ¸Ù
Ø© Ø§ÙØµÙØ§Ø¹ÙØ©.":"We combine Artificial Intelligence, robotics, and intelligent software to build solutions that help organizations work smarter, innovate faster, and unlock new possibilities."}),u.jsxs(Me.div,{variants:{hidden:{opacity:0,y:16},visible:{opacity:1,y:0,transition:{duration:.6}}},className:"flex flex-wrap items-center gap-4 pt-2",children:[u.jsx(Me.div,{whileHover:{scale:1.03,y:-2},whileTap:{scale:.97},children:u.jsx(Yt,{size:"lg",asChild:!0,className:"px-7 py-3.5 h-auto rounded-xl font-headings font-bold text-sm bg-[#c9a959] hover:bg-[#dcc277] text-[#16263d] shadow-lg shadow-[#c9a959]/25 border-0 transition-shadow hover:shadow-[#c9a959]/40",children:u.jsxs(cr,{to:"/solutions",children:[t?"Ø§Ø³ØªÙØ´Ù ØÙÙÙÙØ§":"Explore Solutions",u.jsx(Fi,{className:"ml-2 w-4 h-4 rtl:mr-2 rtl:ml-0 rtl:rotate-180"})]})})}),u.jsx(Me.div,{whileHover:{scale:1.03,y:-2},whileTap:{scale:.97},children:u.jsx(Yt,{size:"lg",variant:"outline",asChild:!0,className:"bg-white/5 hover:bg-white/10 text-white border-white/20 hover:border-[#c9a959]/50 font-headings font-semibold text-sm px-6 py-3.5 h-auto rounded-xl backdrop-blur-md transition-colors",children:u.jsxs(cr,{to:"/contact",children:[u.jsx($5,{className:"mr-2 w-4 h-4 rtl:ml-2 rtl:mr-0 text-[#c9a959]"}),t?"ØªÙØ§ØµÙ Ù
Ø¹ÙØ§":"Get in Touch"]})})})]})]}),u.jsxs(Me.div,{initial:{opacity:0}
408,animate:{opacity:1},transition:{duration:1,delay:.6},className:"hero-marks hidden md:flex absolute bottom-12 right-12 gap-8 text-gray-400 font-headings text-xs tracking-widest uppercase",children:[u.jsx("span",{children:"CAIRO / 30.0444° N"}),u.jsx("span",{children:"AI-ROS / 2026"})]}),u.jsxs(Me.a,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.8,delay:.8},whileHover:{y:3},className:"hero-scroll inline-flex items-center gap-2 text-xs font-bold font-headings uppercase tracking-wider text-gray-400 hover:text-[#c9a959] transition-colors mt-12 cursor-pointer",href:"#services",children:[u.jsx("span",{children:t?"Ø§ÙØ²Ù ÙÙØ§Ø³ØªÙشاÙ":"Scroll to explore"}),u.jsx(D8,{className:"w-4 h-4 text-[#c9a959] animate-bounce"})]})]})},$G={xs:"w-4 h-4",sm:"w-6 h-6",md:"w-8 h-8",lg:"w-12 h-12",xl:"w-16 h-16","2xl":"w-24 h-24"},Di=({className:e="",size:t="md",variant:n="taupe"})=>u.jsxs("div",{className:`relative inline-flex items-center justify-center flex-shrink-0 ${$G[t]} ${e}`,children:[n==="glow"&&u.jsx("div",{className:"absolute inset-0 bg-ai-taupe/30 rounded-full blur-md animate-pulse"}),u.jsxs("svg",{viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full relative z-10",children:[u.jsx("circle",{cx:"50",cy:"50",r:"42",stroke:"currentColor",strokeWidth:"8",className:n==="taupe"||n==="glow"?"text-ai-taupe":n==="white"?"text-white":"text-deep-intelligence-950"}),u.jsx("path",{d:"M 46 26 C 36 26 28 34 28 44 C 28 49 30 53 33 56 C 30 60 30 67 35 71 C 39 74 44 74 46 72",stroke:"currentColor",strokeWidth:"3.5",strokeLinecap:"round",className:n==="taupe"||n==="glow"?"text-ai-taupe":n==="white"?"text-white":"text-deep-intelligence-950"}),u.jsx("circle",{cx:"38",cy:"38",r:"2.5",fill:"currentColor",className:"text-ai-taupe"}),u.jsx("path",{d:"M 46 38 L 40 38",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",className:"text-ai-taupe"}),u.jsx("circle",{cx:"36",cy:"50",r:"2.5",fill:"currentColor",className:"text-ai-taupe"}),u.jsx("path",{d:"M 46 50 L 38 50",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",className:"text-ai-taupe"}),u.jsx("circle",{cx:"40",cy:"62",r:"2.5",fill:"currentColor",className:"text-ai-taupe"}),u.jsx("path",{d:"M 46 62 L 42 62",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",className:"text-ai-taupe"}),u.jsx("path",{d:"M 54 26 C 64 26 72 34 72 44 C 72 49 70 53 67 56 C 70 60 70 67 65 71 C 61 74 56 74 54 72",stroke:"currentColor",strokeWidth:"3.5",strokeLinecap:"round",className:n==="taupe"||n==="glow"?"text-ai-taupe":n==="white"?"text-white":"text-deep-intelligence-950"}),u.jsx("circle",{cx:"62",cy:"38",r:"2.5",fill:"currentColor",className:"text-ai-taupe"}),u.jsx("path",{d:"M 54 38 L 60 38",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",className:"text-ai-taupe"}),u.jsx("circle",{cx:"64",cy:"50",r:"2.5",fill:"currentColor",className:"text-ai-taupe"}),u.jsx("path",{d:"M 54 50 L 62 50",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",className:"text-ai-taupe"}),u.jsx("circle",{cx:"60",cy:"62",r:"2.5",fill:"currentColor",className:"text-ai-taupe"}),u.jsx("path",{d:"M 54 62 L 58 62",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",className:"text-ai-taupe"}),u.jsx("line",{x1:"50",y1:"24",x2:"50",y2:"76",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeDasharray:"2 4",className:"text-ai-taupe/60"})]})]}),Gy=[{id:1,color:"#c9a959",label_ar:"استشارات Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙØ§Ø¹Ù ÙØªØµÙ
ÙÙ
Ø§ÙØÙÙÙ",label_en:"AI Strategy & Enterprise Architecture",desc_ar:"بÙÙØ§Øª Ø°ÙØ§Ø¡ Ø§ØµØ·ÙØ§Ø¹Ù Ù
خصصة ÙØ±ÙÙ
ÙØ© Ø³ÙØ± Ø§ÙØ¹Ù
Ù ÙØ£ØªÙ
تة اÙÙØ±Ø§Ø±Ø§Øª Ø§ÙØØ±Ø¬Ø©.",desc_en:"Custom AI architectures to modernize legacy workflows and automate operations.",image:"https://images.unsplash.com/photo-1620712943543-bcc4688e7485?w=900&auto=format&fit=crop",link:"/solutions"},{id:2,color:"#ac8181",label_ar:"ØªÙØ§Ù
Ù Ø£ÙØ¸Ù
Ø© Ø§ÙØ±ÙØ¨ÙØªØ§Øª (ROS 2)",label_en:"Robotics & Autonomous Systems",desc_ar:"Ø°ÙØ§Ø¡ Ù
دÙ
ج ÙÙØ±ÙØ¨ÙØªØ§Øª اÙÙ
ÙØ¯Ø§ÙÙØ© ÙØ§Ùطائرات بدÙÙ Ø·ÙØ§Ø± ÙØ§ÙأتÙ
تة اÙÙ
ØªÙØ¯Ù
Ø©.",desc_en:"Embedded edge computing for autonomous rovers, drones, and robotic manipulators.",image:"https://images.unsplash.com/photo-1485827404703-89b55fcc595e?w=900&auto=format&fit=crop",link:"/solutions"},{id:3,color:"#3b82f6",label_ar:"Ù
ÙØµØ§Øª SaaS ÙÙÙØØ§Øª اÙÙ
عÙÙÙ
ات Ø§ÙØ°ÙÙØ©",label_en:"Cloud AI & Intelligent SaaS",desc_ar:"ÙÙØØ§Øª تØÙÙ
ÙÙØ±ÙØ© ÙØªØØ³ÙÙ Ø§ÙØ¹Ù
ÙÙØ§Øª Ø§ÙØªØ´ØºÙÙÙØ© ÙØ¥Ø¯Ø§Ø±Ø© Ø§ÙØ£ØµÙ٠بÙÙØ§Ø¡Ø©.",desc_en:"Cloud-native SaaS dashboards delivering predictive analytics and operational observability.",image:"https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=900&auto=format&fit=crop",link:"/solutions"},{id:4,color:"#10b981",label_ar:"Ø§ÙØ¨ØØ« ÙØ§ÙتطÙÙØ± ÙØ®Ø¯Ù
Ø© (R&D)",label_en:"Applied R&D as a Service",desc_ar:"ÙÙ
اذج Ø£ÙÙÙØ© Ø³Ø±ÙØ¹Ø© ÙØ¯Ø±Ø§Ø³Ø§Øª جدÙÙ ÙØ¹Ø±Ùض إثبات اÙÙ
ÙÙÙÙ
(PoC).",desc_en:"Rapid prototyping and applied research partnership to deploy functional MVPs.",image:"https://images.unsplash.com/photo-1532094349884-543bc11b234d?w=900&auto=format&fit=crop",link:"/solutions"}
408,{id:5,color:"#a855f7",label_ar:"Ø§ÙØªØ¹ÙÙÙ
ÙØ§ÙØªØ¯Ø±ÙØ¨ ÙØ¨Ùاء اÙÙØ¯Ø±Ø§Øª",label_en:"AI Capacity Building & Education",desc_ar:"Ø£Ø¯ÙØ§Øª تعÙÙ
Ø°ÙØ§Ø¡ Ø§ØµØ·ÙØ§Ø¹Ù Ù
خصصة ÙÙ
سارات تطبÙÙÙØ© ÙØ¥Ø¹Ø¯Ø§Ø¯ ÙÙØ§Ø¯Ø± اÙÙ
Ø³ØªÙØ¨Ù.",desc_en:"Customized learning pathways and hands-on bootcamps to empower engineering talent.",image:"https://images.unsplash.com/photo-1524178232363-1fb2b075b655?w=900&auto=format&fit=crop",link:"/trainings"}],eN=400,qG=30;function HG(){const{t:e,i18n:t}=rn("home"),n=t.language==="ar",r=j.useRef(null),{scrollYProgress:i}=DG({target:r,offset:["start start","end end"]}),s=(Gy.length-1)*(eN+qG),o=EL(i,[0,1],n?[0,s]:[0,-s]);return u.jsxs("div",{id:"services",ref:r,className:"relative bg-[#06054b] text-white",style:{height:"300vh"},children:[u.jsx(ta,{opacity:.3,className:"z-0 pointer-events-none"}),u.jsx("div",{className:"absolute top-1/3 left-1/4 -translate-y-1/2 w-[600px] h-[600px] bg-[#c9a959]/5 rounded-full blur-[160px] pointer-events-none z-0"}),u.jsx("div",{className:"absolute bottom-1/3 right-1/4 w-[500px] h-[500px] bg-[#ac8181]/5 rounded-full blur-[140px] pointer-events-none z-0"}),u.jsxs("div",{className:"sticky top-0 h-screen w-full flex flex-col justify-between overflow-hidden z-10 pt-24 pb-8",children:[u.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 flex-shrink-0 max-w-7xl",children:u.jsxs("div",{className:"flex flex-col md:flex-row md:items-end justify-between gap-4 border-b border-white/10 pb-4",children:[u.jsxs("div",{children:[u.jsxs("div",{className:"inline-flex items-center gap-2 px-3.5 py-1 mb-2 text-xs sm:text-sm font-semibold text-[#c9a959] bg-white/5 rounded-full border border-[#c9a959]/30 backdrop-blur-md font-headings shadow-sm",children:[u.jsx(Di,{size:"xs",variant:"taupe"}),n?"اÙÙ
سار 02 / Ù
صÙÙÙØ© Ø§ÙØ®Ø¯Ù
ات اÙÙ
Ø¤Ø³Ø³ÙØ©":"Route 02 / Enterprise Capabilities"]}),u.jsx("h2",{className:"text-2xl sm:text-4xl lg:text-5xl font-bold font-headings text-white tracking-tight uppercase",children:n?u.jsxs(u.Fragment,{children:["خدÙ
ات ÙØ§Ø³ØªØ´Ø§Ø±Ø§Øª ",u.jsx("em",{className:"text-[#c9a959] not-italic",children:"Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙاعÙ"})]}):u.jsxs(u.Fragment,{children:["Enterprise AI & ",u.jsx("em",{className:"text-[#c9a959] not-italic",children:"Autonomous Solutions"})]})})]}),u.jsxs("div",{className:"flex items-center gap-4",children:[u.jsxs("div",{className:"text-xs text-gray-400 font-headings uppercase tracking-wider hidden sm:flex items-center gap-2",children:[u.jsx("span",{children:n?"Ù
رر ÙÙØ£Ø³ÙÙ ÙØ§Ø³ØªØ¹Ø±Ø§Ø¶ Ø§ÙØ®Ø¯Ù
ات":"Scroll down to traverse"}),u.jsx(bO,{className:"w-4 h-4 text-[#c9a959] animate-pulse rtl:rotate-180"})]}),u.jsx("div",{className:"w-28 sm:w-36 h-2 bg-white/10 rounded-full overflow-hidden border border-white/10",children:u.jsx(Me.div,{style:{scaleX:i,transformOrigin:n?"right":"left"},className:"h-full bg-gradient-to-r from-[#c9a959] via-[#ac8181] to-[#c9a959]"})})]})]})}),u.jsx("div",{className:"w-full my-auto overflow-visible flex items-center justify-center",children:u.jsx("div",{className:"w-[400px] max-w-full overflow-visible",children:u.jsx(Me.div,{style:{x:o},className:"flex gap-[30px] items-center will-change-transform",children:Gy.map(a=>u.jsxs("div",{style:{width:`${eN}px`,height:"480px",flexShrink:0,"--item-color":a.color,"--item-image":`url(${a.image})`},className:"services-gallery-item group relative rounded-2xl overflow-hidden bg-[#06054b] border border-white/15 hover:border-[#c9a959]/70 transition-all duration-300 shadow-[0_20px_50px_rgba(0,0,0,0.6)] flex flex-col justify-end p-7 sm:p-8",children:[u.jsx("div",{className:"absolute inset-0 z-0 bg-cover bg-center opacity-40 group-hover:opacity-55 group-hover:scale-105 transition-all duration-700 pointer-events-none",style:{backgroundImage:`url(${a.image})`}}),u.jsx("div",{className:"absolute inset-0 z-0 pointer-events-none",style:{background:"linear-gradient(to bottom, rgba(6,5,75,0.1) 0%, rgba(6,5,75,0.7) 45%, rgba(6,5,75,0.98) 85%)"}}),u.jsx("div",{className:"absolute -right-16 -top-16 w-44 h-44 rounded-full blur-3xl op
408acity-0 group-hover:opacity-100 transition-opacity duration-500 pointer-events-none z-0",style:{backgroundColor:`${a.color}35`}}),u.jsxs("div",{className:"relative z-10",children:[u.jsxs("span",{className:"text-xs font-mono font-bold block mb-2",style:{color:a.color},children:["0",a.id," / 0",Gy.length]}),u.jsx("h3",{className:"text-xl sm:text-2xl font-bold font-headings text-white mb-2 leading-snug group-hover:text-[#c9a959] transition-colors",children:n?a.label_ar:a.label_en}),u.jsx("p",{className:"text-xs sm:text-sm text-gray-300 font-body leading-relaxed mb-4 line-clamp-2",children:n?a.desc_ar:a.desc_en}),u.jsxs(cr,{to:a.link,className:"inline-flex items-center gap-1.5 text-xs font-bold font-headings text-[#c9a959] group-hover:text-white transition-colors",children:[u.jsx("span",{children:n?"Ø§Ø³ØªÙØ´Ù ÙØ§ÙØ© Ø§ÙØªÙاصÙÙ":"Explore Solution"}),u.jsx(O0,{className:"w-3.5 h-3.5 rtl:rotate-90"})]})]})]},a.id))})})}),u.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 flex justify-between items-center flex-shrink-0 max-w-7xl pt-2",children:[u.jsx("span",{className:"text-xs text-gray-400 font-headings uppercase tracking-widest hidden sm:inline-block",children:"AI-ROS 2026 ENTERPRISE CAPABILITIES"}),u.jsxs(cr,{to:"/solutions",className:"inline-flex items-center gap-2 text-xs sm:text-sm font-headings font-bold text-[#c9a959] hover:text-white transition-colors",children:[u.jsx("span",{children:n?"استعراض ÙØ§ÙØ© Ø§ÙØÙÙÙ ÙØ§ÙخدÙ
ات":"View Full Solutions Catalog"}),u.jsx(Fi,{className:"w-4 h-4 rtl:rotate-180"})]})]})]})]})}const WG=[{id:"computer-vision",index:"01",icon:dO,title_ar:"Ø§ÙØ±Ø¤ÙØ© Ø§ÙØØ§Ø³ÙØ¨ÙØ© ÙØ§ÙØ°ÙØ§Ø¡ اÙÙ
ÙØ¯Ø§ÙÙ",title_en:"Computer Vision & Edge Intelligence",subtitle_ar:"Ù
Ø¹Ø§ÙØ¬Ø© ÙÙØ±ÙØ© ÙØªØÙÙÙ Ø¨ØµØ±Ù ÙØ§Ø¦Ù Ø§ÙØ¯ÙØ©",subtitle_en:"Real-time precision spatial perception",description_ar:"Ø®ÙØ§Ø±Ø²Ù
ÙØ§Øª Ø°ÙØ§Ø¡ Ø§ØµØ·ÙØ§Ø¹Ù Ù
دÙ
جة عÙÙ Ø§ÙØØ§ÙØ© ÙØªØÙÙ٠اÙÙÙØ¯ÙÙ ÙØ§ÙØ£ÙÙ
اط اÙÙ
Ø¹ÙØ¯Ø© ÙÙ Ø§ÙØ¨Ùئات Ø§ÙØµÙØ§Ø¹ÙØ© ÙØ§ÙØ²Ø±Ø§Ø¹ÙØ© دÙÙ Ø§ÙØ§Ø¹ØªÙ
اد عÙÙ Ø§ÙØ³ØØ§Ø¨.",description_en:"On-device neural vision processing and pattern recognition optimized for edge hardware in rugged industrial and field environments.",metric_ar:"99.4%",metric_en:"99.4%",metric_label_ar:"Ø¯ÙØ© Ø§ÙØªØ¹Ø±Ù ÙØ§ÙÙØ±Ø² اÙÙØØ¸Ù",metric_label_en:"Detection Precision",gradient:"linear-gradient(135deg, rgba(201,169,89,0.3) 0%, rgba(6,5,75,0.9) 100%)",glowColor:"rgba(201,169,89,0.35)",link:"/solutions",tags:["Edge AI","YOLO / Vision","TensorRT"],initialRotate:-3},{id:"autonomous-robotics",index:"02",icon:sO,title_ar:"Ø§ÙØ±ÙØ¨ÙØªÙس ÙØ§ÙØ£ÙØ¸Ù
Ø© اÙÙ
ستÙÙØ© (ROS 2)",title_en:"Autonomous Robotics & ROS 2 Fleet",subtitle_ar:"Ù
ÙØ§ØØ© Ø°Ø§ØªÙØ© ÙØªÙاÙ
Ù Ø£Ø¬ÙØ²Ø© Ø§ÙØ§Ø³ØªØ´Ø¹Ø§Ø±",subtitle_en:"Autonomous navigation & sensor fusion",description_ar:"ÙÙØ¯Ø³Ø© Ù
ÙØµØ§Øª Ø±ÙØ¨ÙØªÙØ© ذÙÙØ© تعتÙ
د عÙÙ ÙØ¸Ø§Ù
تشغÙÙ Ø§ÙØ±ÙØ¨ÙØªØ§Øª ROS 2 ÙØ¥Ø¯Ø§Ø±Ø© Ø§ÙØ£Ø³Ø§Ø·ÙÙ ÙØ§ÙتÙÙ٠اÙÙ
ستÙÙ Ù٠اÙÙ
ÙØ´Ø¢Øª ÙØ§ÙØÙÙÙ.",description_en:"Mission-critical robotics middleware and autonomous rover platforms with LiDAR-SLAM, obstacle avoidance, and fleet telemetry.",metric_ar:"< 30ms",metric_en:"< 30ms",metric_label_ar:"زÙ
Ù Ø§ÙØ§Ø³ØªØ¬Ø§Ø¨Ø© ÙØ§ÙتØÙÙ
Ø§ÙØ°Ø§ØªÙ",metric_label_en:"Control Loop Latency",gradient:"linear-gradient(135deg, rgba(172,129,129,0.3) 0%, rgba(6,5,75,0.9) 100%)",glowColor:"rgba(172,129,129,0.35)",link:"/solutions",tags:["ROS 2","LiDAR SLAM","Fleet Sync"],initialRotate:3},{id:"smart-agritech",index:"03",icon:Hh,title_ar:"Ø§ÙØ²Ø±Ø§Ø¹Ø© Ø§ÙØ¯ÙÙÙØ© ÙØ¥Ø¯Ø§Ø±Ø© اÙÙ
ÙØ§Ø±Ø¯ Ø§ÙØ°ÙÙØ©",title_en:"Precision Agritech & Resource AI",subtitle_ar:"ØªØ±Ø´ÙØ¯ اÙÙ
ÙØ§Ù ÙØ²Ùادة Ø¥ÙØªØ§Ø¬ÙØ© اÙÙ
ØØ§ØµÙÙ",subtitle_en:"Resource stewardship & crop yield",description_ar:"Ù
ÙØ¸ÙÙ
Ø© Ù
ØªÙØ§Ù
ÙØ© ÙØ±Ø¨Ø· ØØ³Ø§Ø³Ø§Øª Ø§ÙØªØ±Ø¨Ø© ÙØ¥ÙØªØ±ÙØª Ø§ÙØ£Ø´Ùاء Ù
ع ÙÙ
اذج Ø§ÙØªÙبؤ اÙÙ
ÙØ§Ø®Ù ÙØªÙÙÙ٠استÙÙØ§Ù اÙÙ
ÙØ§Ù ÙØ§ÙأسÙ
دة Ù
ع Ù
Ø¶Ø§Ø¹ÙØ© Ø§ÙØ¬Ùدة.",description_en:"IoT sensor meshes paired with predictive agronomic AI to optimize irrigation cycles, soil health, and sustainable resources.",metric_ar:"40%",metric_en:"40%",metric_label_ar:"ÙÙØ± Ù٠استÙÙØ§Ù Ù
ÙØ§Ù Ø§ÙØ±Ù",metric_label_en:"Water Consumption Saved",gradient:"linear-gradient(135deg, rgba(16,185,129,0.25) 0%, rgba(6,5,75,0.9) 100%)",glowColor:"rgba(16,185,129,0.3)",link:"/projects",tags:["Agritech","Soil IoT","Predictive AI"],initialRotate:-2},{id:"agentic-automation",index:"04",icon:Y8,title_ar:"اÙÙÙÙØ§Ø¡ Ø§ÙØ£Ø°ÙÙØ§Ø¡ ÙØ£ØªÙ
تة Ø§ÙØ¹Ù
ÙÙØ§Øª",title_en:"Autonomous Agents & Operations AI",subtitle_ar:"تØÙÙÙ Ø³ÙØ± Ø§ÙØ¹Ù
٠اÙÙØ¯Ù٠إÙÙ Ø°ÙØ§Ø¡ Ù
ؤتÙ
ت",subtitle_en:"Self-orchestrating enterprise workflows",description_ar:"تطÙÙØ± Ø´Ø¨ÙØ§Øª ÙÙÙØ§Ø¡ Ø°ÙØ§Ø¡ اصØ
408·Ùاع٠Ù
تعدد٠اÙÙ
ÙØ§Ù
(Multi-Agent Workflows) ÙØªÙÙÙØ° اÙÙ
ÙØ§Ù
اÙÙ
Ø¹ÙØ¯Ø© ÙØµÙاعة اÙÙØ±Ø§Ø±Ø§Øª Ø¨Ø¯ÙØ©.",description_en:"Enterprise multi-agent architectures that autonomously orchestrate legacy systems, ingest docs, and eliminate friction.",metric_ar:"65%",metric_en:"65%",metric_label_ar:"ØªØ³Ø±ÙØ¹ Ø¥ÙØ¬Ø§Ø² اÙÙ
ÙØ§Ù
اÙÙ
Ø¤Ø³Ø³ÙØ©",metric_label_en:"Cycle Acceleration",gradient:"linear-gradient(135deg, rgba(59,130,246,0.25) 0%, rgba(6,5,75,0.9) 100%)",glowColor:"rgba(59,130,246,0.3)",link:"/solutions",tags:["Multi-Agent","Enterprise RAG","Automation"],initialRotate:2},{id:"smart-cities",index:"05",icon:z8,title_ar:"اÙÙ
Ø¯Ù Ø§ÙØ°ÙÙØ© ÙØ§ÙتØÙÙ
ÙÙ Ø§ÙØØ±ÙØ©",title_en:"Smart Mobility & Urban Intelligence",subtitle_ar:"إدارة تدÙ٠اÙÙ
Ø±ÙØ± ÙØªØ®ÙÙØ¶ Ø§ÙØ§Ùبعاثات",subtitle_en:"Dynamic traffic flow & emissions control",description_ar:"ÙÙ
اذج ØªÙØ£Ù
رÙÙ
Ù (Digital Twin) ÙØªØÙÙ٠تدÙÙØ§Øª اÙÙÙÙ Ø§ÙØ¹Ø§Ù
ÙØªØ®ÙÙÙ Ø§ÙØ§Ø®ØªÙØ§ÙØ§Øª اÙÙ
Ø±ÙØ±ÙØ© Ù٠اÙÙ
خططات Ø§ÙØØ¶Ø±ÙØ© اÙÙØ¨Ø±Ù.",description_en:"Dynamic urban digital twins using streaming computer vision to balance metropolitan traffic signals and reduce congestion.",metric_ar:"35%",metric_en:"35%",metric_label_ar:"Ø§ÙØ®Ùاض Ù٠زÙ
Ù Ø§ÙØ§Ø®ØªÙا٠اÙÙ
Ø±ÙØ±Ù",metric_label_en:"Congestion Reduced",gradient:"linear-gradient(135deg, rgba(245,158,11,0.25) 0%, rgba(6,5,75,0.9) 100%)",glowColor:"rgba(245,158,11,0.3)",link:"/projects",tags:["Digital Twin","Mobility AI","Urban Tech"],initialRotate:-3},{id:"capacity-building",index:"06",icon:$5,title_ar:"Ø£ÙØ§Ø¯ÙÙ
ÙØ© Ø§ÙØªØ¯Ø±Ùب ÙØ¨Ùاء اÙÙÙØ§Ø¡Ø§Øª",title_en:"AI Capacity Building & Academy",subtitle_ar:"تÙ
ÙÙ٠اÙÙÙØ§Ø¯Ø± ÙÙØ±Ù Ø§ÙØ¹Ù
Ù ÙÙÙ
Ø³ØªÙØ¨Ù",subtitle_en:"Accelerating workforce capability",description_ar:"Ù
سارات ØªØ¯Ø±ÙØ¨ÙØ© تطبÙÙÙØ© تؤÙ٠اÙÙ
ÙÙØ¯Ø³ÙÙ ÙÙØ§Ø¯Ø© Ø§ÙØ£Ø¹Ù
Ø§Ù ÙØ¥ØªÙØ§Ù Ø£ØØ¯Ø« Ø£Ø¯ÙØ§Øª ÙÙÙ
اذج Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙØ§Ø¹Ù ÙØ¨Ùاء Ù
Ø´Ø§Ø±ÙØ¹ ØÙÙÙÙØ©.",description_en:"Intensive, cohort-based capability accelerator translating AI theory into hands-on deployment, certification, and leadership.",metric_ar:"100%",metric_en:"100%",metric_label_ar:"Ù
Ø´Ø§Ø±ÙØ¹ تطبÙÙÙØ© Ø¬Ø§ÙØ²Ø© ÙÙ
ÙÙ Ø§ÙØ£Ø¹Ù
اÙ",metric_label_en:"Portfolio Implementations",gradient:"linear-gradient(135deg, rgba(147,51,234,0.25) 0%, rgba(6,5,75,0.9) 100%)",glowColor:"rgba(147,51,234,0.3)",link:"/trainings",tags:["Hands-on Labs","Certification","Career Launch"],initialRotate:3}];function GG({pillar:e,index:t,isAr:n}){const r=e.icon,i={offscreen:{y:120,opacity:0,scale:.92},onscreen:{y:0,opacity:1,scale:1,rotate:e.initialRotate,transition:{type:"spring",bounce:.35,duration:.8,delay:t%3*.12}}};return u.jsxs(Me.div,{className:"relative flex flex-col h-full",initial:"offscreen",whileInView:"onscreen",viewport:{amount:.25,once:!0},children:[u.jsx("div",{className:"absolute inset-0 pointer-events-none opacity-40 blur-2xl transition-opacity duration-500 group-hover:opacity-75",style:{background:e.gradient,borderRadius:"32px"}}),u.jsxs(Me.div,{variants:i,whileHover:{rotate:0,scale:1.03,y:-8,transition:{type:"spring",stiffness:450,damping:25}},whileTap:{scale:.97},className:"group relative z-10 w-full h-full rounded-3xl bg-[#06054b]/85 backdrop-blur-xl border border-white/15 hover:border-[#c9a959]/70 p-7 sm:p-8 text-white shadow-[0_15px_40px_rgba(0,0,0,0.5)] hover:shadow-[0_25px_60px_rgba(201,169,89,0.22)] transition-colors duration-300 flex flex-col justify-between",style:{boxShadow:`0 8px 30px -8px ${e.glowColor}, 0 20px 45px rgba(0,0,0,0.5)`},children:[u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between mb-5",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"flex items-center justify-center w-8 h-8 rounded-full bg-white/5 border border-white/10 text-xs font-bold font-headings text-[#c9a959]",children:e.index}),u.jsx("span",{className:"text-[11px] font-bold font-headings uppercase tracking-widest text-[#ac8181]",children:n?`اÙÙ
سار ${e.index}`:`ROUTE ${e.index}`})]}),u.jsx(Me.div,{whileHover:{rotate:12,scale:1.1},className:"w-12 h-12 rounded-2xl bg-[#c9a959]/10 border border-[#c9a959]/30 flex items-center justify-center text-[#c9a959] group-hover:bg-[#c9a959] group-hover:text-[#16263d] transition-all duration-300 shadow-md",children:u.jsx(r,{className:"w-6 h-6"})})]}),u.jsxs("p",{className:"text-xs font-bold font-headings text-[#c9a959] uppercase tracking-wider mb-1.5 flex items-center gap-1.5",children:[u.jsx(Qi,{className:"w-3.5 h-3.5"}),n?e.subtitle_ar:e.subtitle_en]}),u.jsx("h3",{className:"text-xl font-bold font-headings text-white mb-3 group-hover:text-[#c9a959] transition-colors leading-snug",children:n?e.title_ar:e.title_en}),u.jsx("p",{className:"text-xs sm:text-sm text-gray-300 font-body leading-relaxed mb-6 line-clamp-3",children:n?e.description_ar:e.description_en}),u.jsx("div",{className:"flex flex-wrap gap-2 mb-6",children:e.tags.map(s=>u.jsx("span",{className:"px-2.5 py-1 text-[11px] font-medium font-body text-[#c9a959] bg-white/5 rounded-lg border border-[#c9a959]/20",children:s},s))})]}),u.jsxs("div",{className:"pt-5 border-t border-white/10 flex items-center justify-between gap-4 mt-auto",children:[u.jsxs("div",{children:[u.jsx("div",{className:"text-2xl font-black font-headings text-[#c9a959] tracking-tight",children:n?e.metric_ar:e.metric_en}),u.jsx("div",{className:"text-[10px] sm:text-[11px] text-gray-400 font-body font-medium",children:n?e.metric_label_ar:e.metric_label_en})]}),u.jsxs(cr,{to:e.link,className:"inline-flex items-center gap-1.5 px-4 py-2 rounded-xl bg-[#c9a959] hover:bg-[#dcc277] text-[#16263d] font-headings font-bold text-xs shadow-md transition-transform active:scale-95 group-hover:shadow-lg shadow-[#c9a959]/20",children:[u.jsx("span",{children:n?"Ø§Ø³ØªÙØ´Ù":"Explore"}),u.jsx(Fi,{className:"w-3.5 h-3.5 rtl:rotate-180"})]})]})]})]})}function KG(){const{i18n:e}=rn(),t=e.language==="ar";return u.jsxs("section",{className:"py-28 relative overflow-hidden bg-[#06054b]/95 border-t border-white/5",children:[u.jsx("div",{className:"absolute top-1/4 left-1/2 -translate-x-1/2 w-[800px] h-[600px] bg-[radial-gradient(ellipse_at_center,rgba(201,169,89,0.12),transparent_70%)] pointer-events-none z-0"}),u.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 relative z-10 max-w-7xl",children:[u.jsxs(Me.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.7},className:"text-center max-w-3xl mx-auto mb-16",children:[u.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 mb-5 text-xs sm:text-sm font-semibold text-[#c9a959] bg-white/5 rounded-full border border-[#c9a959]/30 backdrop-blur-md font-headings shadow-sm",children:[u.jsx(Di,{size:"xs",variant:"taupe"}),t?"Ù
ÙØ¸ÙÙ
Ø© اÙÙØ¯Ø±Ø§Øª Ø§ÙØªÙاعÙÙØ©":"Scroll-Driven Capability Stack"]}),u.jsx("h2",{className:"text-3xl sm:text-5xl lg:text-6xl font-bold font-headings text-white tracking-tight mb-4",children:t?u.jsxs(u.Fragment,{children:["Ø±ÙØ§Ø¦Ø² Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·Ùاع٠",u.jsx("br",{}),u.jsx("em",{className:"text-[#c9a959] not-italic",children:"اÙÙ
صÙ
Ù
Ø© ÙÙØªØ·Ø¨Ù٠اÙÙØ¹ÙÙ"})]}):u.jsxs(u.Fragment,{children:["Engineered Capabilities ",u.jsx("br",{}),u.jsx("em",{className:"text-[#c9a959] not-italic",children:"Triggered for Impact"})]})}),u.jsx("p",{className:"text-base sm:text-lg text-gray-300 font-body leading-relaxed max-w-2xl mx-auto",children:t?"Ø§Ø³ØªÙØ´Ù ÙÙÙ ÙØ¯Ù
ج Ø®ÙØ§Ø±Ø²Ù
ÙØ§Øª Ø§ÙØ±Ø¤ÙØ© Ø§ÙØØ§Ø³ÙØ¨ÙØ© ÙØ§ÙØ±ÙØ¨ÙØªÙØ³ ÙØ§ÙأتÙ
تة ÙØ¨Ùاء ØÙÙ٠تشغÙÙÙØ© Ù
ستداÙ
Ø©.":"Explore how AI-ROS integrates edge computer vision, autonomous robotics, and agentic workflows into operational reality."}),u.jsx("div",{className:"w-20 h-1 bg-gradient-to-r from-transparent via-[#c9a959] to-transparent roun
408ded-full mx-auto mt-4"})]}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 items-stretch",children:WG.map((n,r)=>u.jsx(GG,{pillar:n,index:r,isAr:t},n.id))})]})]})}const{slice:YG,forEach:XG}=[];function ZG(e){return XG.call(YG.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}function QG(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(n=>n.test(e))}const tN=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,JG=function(e,t){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},i=encodeURIComponent(t);let s=`${e}=${i}`;if(r.maxAge>0){const o=r.maxAge-0;if(Number.isNaN(o))throw new Error("maxAge should be a Number");s+=`; Max-Age=${Math.floor(o)}`}if(r.domain){if(!tN.test(r.domain))throw new TypeError("option domain is invalid");s+=`; Domain=${r.domain}`}if(r.path){if(!tN.test(r.path))throw new TypeError("option path is invalid");s+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invali
408d");s+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(s+="; Partitioned"),s},nN={create(e,t,n,r){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+n*60*1e3)),r&&(i.domain=r),document.cookie=JG(e,t,i)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let i=n[r];for(;i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return i.substring(t.length,i.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var eK={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return nN.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:i,cookieOptions:s}=t;n&&typeof document<"u"&&nN.create(n,e,r,i,s)}},tK={name:"querystring",lookup(e){var r;let{lookupQuerystring:t}=e,n;if(typeof window<"u"){let{search:i}=window.location;!window.location.search&&((r=window.location.hash)==null?void 0:r.indexOf("?"))>-1&&(i=window.location.hash.substring(window.location.hash.indexOf("?")));const o=i.substring(1).split("&");for(let a=0;a<o.length;a++){const l=o[a].indexOf("=");l>0&&o[a].substring(0,l)===t&&(n=o[a].substring(l+1))}}return n}},nK={name:"hash",lookup(e){var i;let{lookupHash:t,lookupFromHashIndex:n}=e,r;if(typeof window<"u"){const{hash:s}=window.location;if(s&&s.length>2){const o=s.substring(1);if(t){const a=o.split("&");for(let l=0;l<a.length;l++){const c=a[l].indexOf("=");c>0&&a[l].substring(0,c)===t&&(r=a[l].substring(c+1))}}if(r)return r;if(!r&&n>-1){const a=s.match(/\/([a-zA-Z-]*)/g);return Array.isArray(a)?(i=a[typeof n=="number"?n:0])==null?void 0:i.replace("/",""):void 0}}}return r}};let Yc=null;const rN=()=>{if(Yc!==null)return Yc;try{if(Yc=typeof window<"u"&&window.localStorage!==null,!Yc)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Yc=!1}return Yc};var rK={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&rN())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&rN()&&window.localStorage.setItem(n,e)}};let Xc=null;const iN=()=>{if(Xc!==null)return Xc;try{if(Xc=typeof window<"u"&&window.sessionStorage!==null,!Xc)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Xc=!1}return Xc};var iK={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&iN())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&iN()&&window.sessionStorage.setItem(n,e)}},sK={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:i}=navigator;if(n)for(let s=0;s<n.length;s++)t.push(n[s]);r&&t.push(r),i&&t.push(i)}return t.length>0?t:void 0}},oK={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},aK={name:"path",lookup(e){var i;let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?(i=n[typeof t=="number"?t:0])==null?void 0:i.replace("/",""):void 0}},lK={name:"subdomain",lookup(e){var i,s;let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&((s=(i=window.location)==null?void 0:i.hostname)==null?void 0:s.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(r)return r[n]}};let LL=!1;try{document.cookie,LL=!0}catch{}const PL=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];LL||PL.splice(1,1);const cK=()=>({order:PL,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class TL{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=ZG(n,this.options||{},cK()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=i=>i.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(eK),this.addDetector(tK),this.addDetector(rK),this.addDetector(iK),this.addDetector(sK),this.addDetector(oK),this.addDetector(aK),this.addDetector(lK),this.addDetector(nK)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return t.forEach(r=>{if(this.detectors[r]){let i=this.detectors[r].lookup(this.options);i&&typeof i=="string"&&(i=[i]),i&&(n=n.concat(i))}}),n=n.filter(r=>r!=null&&!QG(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}
408cacheUserLanguage(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}TL.type="languageDetector";const uK={nav:{home:"Home",solutions:"Solutions",projects:"Projects",blog:"Blog",trainings:"Trainings",about:"About",contact:"Contact"},language:{en:"EN",ar:"AR"}},dK={company:{title:"AI-ROS",description:"Innovating Today, Sustaining Tomorrow"},links:{quickLinks:"Quick Links",home:"Home",solutions:"Solutions",projects:"Projects",blog:"Blog",about:"About",contact:"Contact"},solutions:{title:"Solutions",items:["GROW+","Cozy Earth","Soil-Sense","RaG SaaS","AI LearnLab"],data:[{title:"GROW+ â Smart Plant Doctor",description:"An AI-based plant disease detection platform supporting over 30 species. It empowers farmers with early diagnosis, reduces pesticide dependency, and increases yields sustainably.",impact:"Reduces crop loss, improves food security",tech:"AI-based image recognition + plant pathology models"},{title:"Cozy Earth â Air Quality by Design",description:"A VR-powered, AI-guided plant recommendation engine that chooses the best greenery for your space based on local pollution data and oxygen needs. Users can visualize and place plants in their home or office virtually.",impact:"Improves indoor air, promotes urban greening",tech:"AI + VR + environmental data analytics"},{title:"Soil-Sense â Precision Irrigation for a Thirsty World",description:"A smart irrigation assistant using IoT sensors and AI algorithms to monitor moisture, nutrients, and environmental conditions. It automates water and fertilizer usage for efficient, sustainable farming.",impact:"Saves water, reduces over-fertilization",tech:"AI + IoT + real-time soil analytics"},{title:"RaG SaaS â AI That Thinks With You",description:"A Retrieval-Augmented Generation (RaG) platform that allows users to build decision-support agents trained on their own policies, documents, and data. Ideal for sustainability planning, governance, and research.",impact:"Smarter decisions, faster policy design",tech:"LLMs + vector databases + GenAI frameworks"},{title:"AI LearnLab â Personalized Education with AI",description:"A platform combining intelligent tutoring, curriculum personalization, and interactive tools to make education more accessible and effective. Whether you're a student struggling with math or a professional entering AI from scratch, LearnLab adapts to your needs.",impact:"Equity in education, democratizing AI skills globally",tech:"NLP + adaptive learning engines + interactive simulations"}]},modal:{description:"Description",impact:"Impact",techStack:"Tech Stack"},contact:{title:"Contact Us",location:"Cairo, Egypt"},social:{title:"Follow Us"},legal:{privacy:"Privacy Policy",terms:"Terms of Service"},copyright:"© {{year}} AI-ROS. All rights reserved."},fK={title:"404 - Page Not Found",description:"The page you're looking for doesn't exist.",button:"Go Home"},hK={header:uK,footer:dK,notFound:fK},pK={badge:"Innovating Today , Sustaining Tomorrow",title:"Transforming Intelligence into",titleHighlight:"Real-World Action",description:"AI-ROS combines Artificial Intelligence with robotics, automation, and intelligent software to develop solutions that help organizations work smarter, innovate faster, and unlock new possibilities.",cta:{primary:"Explore Solutions",secondary:"Watch Showcase"}},mK={badge:"What We Offer",title:"Our Services",items:[{title:"AI Consulting & Solution Design",description:"Custom-tailored AI architectures to digitize workflows, analyze data, and automate decisions."},{title:"Robotics System Integration",description:"Embedded intelligence for drones, field robots, and automation hardware in agriculture and beyond."},{title:"SaaS Platforms & Smart Dashboards",description:"Cloud-native applications powered by AI to optimize operations, manage assets, and improve sustainability metrics."},{title:"R&D-as-a-Service",description:"We co-build early-stage solutions with partners, delivering prototypes, feasibility studies, and proof-of-concept demos."}
408,{title:"AI-Powered Education & Training",description:"Customized AI learning tools, adaptive tutoring systems, and hands-on courses to empower students, educators, and professionals."}]},gK={badge:"Featured Projects",title:"Success Stories",subtitle:"Real-world implementations delivering measurable impact across industries",viewDetails:"View Project Details",viewAll:"View All Projects",items:[{title:"Smart Irrigation System",category:"Smart Agriculture",description:"AI-powered irrigation management system that reduced water consumption by 40% while increasing crop yields."},{title:"Urban Traffic Management",category:"Smart Cities",description:"Intelligent traffic system that optimized flow and reduced congestion by 35% in metropolitan areas."},{title:"Predictive Maintenance Suite",category:"Industrial Automation",description:"Machine learning platform that predicts equipment failures, reducing downtime by 60% for manufacturers."}]},yK={badge:"Official Partnership",title:"Proud Partner of Techne Summit 2026",subtitle:"Join AI-ROS at Egypt's leading innovation gathering in Cairo and Alexandria.",imageAlt:"Techne Summit 2026 banner by MEIW â Cairo September 26â27 and Alexandria October 3â5",ariaLabel:"Visit Techne Summit 2026 official website"},xK={badge:"Trusted Partners",title:"Powering Innovation Together",subtitle:"Collaborating with industry leaders to deliver exceptional results"},vK={title:"Ready to Transform Your Business?",subtitle:"Join industry leaders who trust AI-ROS to deliver innovative solutions. Let's discuss how we can help you achieve your goals.",button:"Contact Sales",stats:{consultation:{value:"30 min",label:"Free Consultation"},response:{value:"48 hrs",label:"Response Time"},confidential:{value:"100%",label:"Confidential"}}},bK={hero:pK,services:mK,projects:gK,techneSummit:yK,partners:xK,cta:vK},wK={badge:"Our Story",title:"About AI-ROS",subtitle:"AI-ROS was founded on the belief that intelligence should move beyond data and into action. By combining Artificial Intelligence with robotics, automation, and intelligent software, we develop solutions that help organizations work smarter, innovate faster, and unlock new possibilities."},SK={title:"Our Mission",description:"To design scalable AI and robotic systems that tackle real-world challenges in agriculture, water, climate, education, and public policyâhelping communities adapt, industries evolve, and nature thrive."},_K={title:"Our Vision",description:"A world where automation, data, and intelligence enable a greener, more resilient future."},NK={badge:"Core Values",title:"What Drives Us Forward",subtitle:"Our values guide every decision we make and every solution we create",items:[{title:"Innovation",description:"Pushing boundaries with cutting-edge AI and robotics solutions"},{title:"Excellence",description:"Delivering exceptional quality in every project we undertake"},{title:"Collaboration",description:"Working closely with clients to achieve shared success"},{title:"Efficiency",description:"Optimizing processes to maximize impact and reduce waste"},{title:"Sustainability",description:"Building solutions that benefit both business and environment"},{title:"Integrity",description:"Maintaining the highest standards of ethics and transparency"}],downloadButton:"Download Company One-Pager"},kK={badge:"Our Journey",title:"A Decade of Innovation",subtitle:"From humble beginnings to industry leadership, explore the milestones that shaped our story",milestones:[{year:2023,title:"Company Founded",description:"AI-ROS was established with a vision to revolutionize industries through intelligent automation. Our founding team of AI researchers and robotics engineers came together to bridge the gap between cutting-edge technology and practical business applications."},{year:2024,title:"First Solutions Launch",description:"Successfully launched our first AI-powered solutions including GROW+ for plant disease detection and Cozy Earth for air quality improvement. These projects established our reputation in sustainable technology and smart agriculture sectors."},{year:2025,title:"Expansion & Innovation",description:"Expanded our solution portfolio with Soil-Sense, RaG SaaS, and AI LearnLab. Committed to democratizing AI education and advancing sustainable technologies. Growing our impact across agriculture, urban planning, and education sectors."}]},AK={badge:"Got Questions?",title:"FAQs",subtitle:"Everything you need to know about AIROS",items:[{question:"Is AIROS only for agriculture?",answer:"No. While agri-tech is a core focus, our platforms serve any sector needing AI for sustainability, education, policy, or automation."},{question:"Do you offer custom solutions?",answer:"Yes. We specialize in building tailored AI systems that match your operational needs and goals."},{question:"What makes you different?",answer:"Our products are born from R&D, grounded in sustainability, and designed with human impact in mind."}],contactText:"Still have questions? We're here to help!",contactButton:"Get in Touch"},jK={hero:wK,mission:SK,vision:_K,values:NK,timeline:kK,faq:AK},CK={default:{badge:"Tech That Matters",title:"Our Solutions",subtitle:"AIROS focuses on technology that creates real impact â from sustainable agriculture to democratizing AI education"},smartAgriculture:{title:"Smart Agriculture",subtitle:"Revolutionizing farming with AI-powered precision agriculture solutions"},smartCities:{badge:"Urban Solutions",title:"Smart Cities",subtitle:"Building intelligent urban infrastru
408cture for sustainable city living"},industrialAutomation:{badge:"Industrial Solutions",title:"Industrial Automation",subtitle:"Transforming manufacturing with intelligent automation and robotics"}},EK={badge:"Tech That Matters",title:"Our Solutions",subtitle:"AIROS focuses on technology that creates real impact â from sustainable agriculture to democratizing AI education",clickHint:"Click to explore"},LK={description:"Description",keyFeatures:"Key Features",impact:"Impact",techStack:"Tech Stack"},PK=[{name:"GROW+",subtitle:"Smart Plant Doctor",description:"An AI-based plant disease detection platform supporting over 30 species. It empowers farmers with early diagnosis, reduces pesticide dependency, and increases yields sustainably.",impact:"Reduces crop loss, improves food security",tech:"AI-based image recognition + plant pathology models"},{name:"Cozy Earth",subtitle:"Air Quality by Design",description:"A VR-powered, AI-guided plant recommendation engine that chooses the best greenery for your space based on local pollution data and oxygen needs. Users can visualize and place plants in their home or office virtually.",impact:"Improves indoor air, promotes urban greening",tech:"AI + VR + environmental data analytics"},{name:"Soil-Sense",subtitle:"Precision Irrigation for a Thirsty World",description:"A smart irrigation assistant using IoT sensors and AI algorithms to monitor moisture, nutrients, and environmental conditions. It automates water and fertilizer usage for efficient, sustainable farming.",impact:"Saves water, reduces over-fertilization",tech:"AI + IoT + real-time soil analytics"},{name:"RaG SaaS",subtitle:"AI That Thinks With You",description:"A Retrieval-Augmented Generation (RaG) platform that allows users to build decision-support agents trained on their own policies, documents, and data. Ideal for sustainability planning, governance, and research.",impact:"Smarter decisions, faster policy design",tech:"LLMs + vector databases + GenAI frameworks"},{name:"AI LearnLab",subtitle:"Personalized Education with AI",description:"A platform combining intelligent tutoring, curriculum personalization, and interactive tools to make education more accessible and effective. Whether you're a student struggling with math or a professional entering AI from scratch, LearnLab adapts to your needs.",impact:"Equity in education, democratizing AI skills globally",tech:"NLP + adaptive learning engines + interactive simulations"}],TK={hero:CK,list:EK,modal:LK,solutions:PK},RK={title:"Our Projects",subtitle:"Explore our portfolio of successful AI and automation implementations"},OK={search:"Search projects...",all:"All",year:"Year",category:"Category",filters:"Filters",clear:"Clear"},IK={noResults:{title:"No Projects Found",description:"Try adjusting your filters or search query to find what you're looking for."},readMore:"Read More",loadMore:"Load More Projects"},MK={"smart-agriculture":"Smart Agriculture","smart-cities":"Smart Cities",sustainability:"Sustainability",technology:"Technology",education:"Education"},FK=[{slug:"green-delta-project",title:"Green Delta Project",excerpt:"Soil-Sense deployment in Egypt's Delta region, reducing irrigation by 35%. Smart irrigation assistant using IoT sensors and AI algorithms to monitor moisture, nutrients, and environmental conditions.",location:"Nile Delta, Egypt"},{slug:"urban-wellness-labs",title:"Urban Wellness Labs",excerpt:"Cozy Earth pilot in Cairo & Berlin to improve indoor air quality in co-working hubs. VR-powered, AI-guided plant recommendation engine based on local pollution data and oxygen needs.",location:"Cairo & Berlin"},{slug:"agroedge",title:"AgroEdge",excerpt:"GROW+ integration with drones for field monitoring in smallholder farms. AI-based plant disease detection platform supporting over 30 species, empowering farmers with early diagnosis.",location:"Sub-Saharan Africa"},{slug:"policysim",title:"PolicySim",excerpt:"RaG SaaS tool used by NGOs for carbon policy simulations. Retrieval-Augmented Generation platform for building decision-support agents trained on policies, documents, and data.",location:"Global"},{slug:"ai-learnsprint",title:"AI LearnSprint",excerpt:"AI LearnLab deployed in rural schools with dynamic science support and offline-first features. Platform combining intelligent tutoring, curriculum personalization, and interactive tools for accessible education.",location:"Rural Communities"}],DK={backButton:"Back to Projects",loading:"Loading project...",notFound:{title:"Project Not Found",description:"The project you're looking for doesn't exist."},metadata:{client:"Client",year:"Year",location:"Location"},sections:{impactResults:"Impact & Results",measurableSuccess:"Measurable Success",projectDeepDive:"Project Deep Dive",completeCaseStudy:"Complete Case Study",caseStudySubtitle:"Explore the full journey from challenge to solution and measurable impact",technologyStack:"Technology Stack"},download:{title:"Want to Learn More?",description:"Download the complete case study with detailed technical specifications, implementation process, and comprehensive results anal
408ysis.",button:"Download Full Case Study"},cta:{title:"Ready to Transform Your Business?",description:"Let's discuss how we can create a similar solution tailored to your specific needs and challenges.",button:"View More Projects"},mockProject:{title:"Automated Vineyard Management System",client:"Napa Valley Vineyards",location:"Napa Valley, California",description:'<h2 style="font-size: 2.5rem; color: #A89483; font-weight: 800;">The Challenge</h2><p>A 5,000-hectare vineyard in Napa Valley was facing significant challenges with water management, pest control, and yield optimization. Traditional farming methods were leading to excessive water usage, inconsistent crop quality, and difficulty in early pest detection.</p><h2 style="font-size: 2.5rem; color: #A89483; font-weight: 800;">Our Solution</h2><p>We deployed a comprehensive AI-powered precision agriculture platform that combines IoT sensors, computer vision, and predictive analytics. The system includes:</p><ul><li>Network of 500+ soil moisture and weather sensors across the vineyard</li><li>Drone-based computer vision for pest and disease detection</li><li>Machine learning models for yield prediction and irrigation optimization</li><li>Automated irrigation control system with real-time adjustments</li><li>Mobile dashboard for farm managers with actionable insights</li></ul><h2 style="font-size: 2.5rem; color: #A89483; font-weight: 800;">The Results</h2><p>Within the first year of implementation, the vineyard achieved remarkable improvements:</p><ul><li>40% reduction in water consumption, saving 2 million gallons annually</li><li>25% increase in crop yield through optimized growing conditions</li><li>60% reduction in pesticide use through early detection and targeted treatment</li><li>30% reduction in labor costs through automation</li><li>Improved wine quality with more consistent grape characteristics</li></ul>',metrics:{waterSaved:"Water Saved",yieldIncrease:"Yield Increase",costReduction:"Cost Reduction",pesticideReduction:"Pesticide Reduction"}}},BK={hero:RK,filter:OK,grid:IK,categories:MK,projects:FK,detail:DK},zK={title:"Insights & Articles",subtitle:"Thought leadership and industry insights from our team of experts"},UK={allTopics:"All Topics"},VK={aiMachineLearning:"AI & Machine Learning",iot:"IoT",smartCities:"Smart Cities",agriculture:"Agriculture",industry40:"Industry 4.0",sustainability:"Sustainability"},$K={minRead:"min read",read:"Read"},qK={title:"No Articles Found",description:"Try selecting a different topic to find what you're looking for."},HK=[{title:"The Future of Precision Agriculture: AI and IoT Integration",excerpt:"Explore how artificial intelligence and IoT sensors are revolutionizing modern farming practices and enabling sustainable agriculture at scale.",author:"Dr. Sarah Chen"},{title:"Building Sustainable Smart Cities: Lessons from Global Leaders",excerpt:"Discover how cities worldwide are leveraging technology to reduce carbon emissions, optimize resources, and improve quality of life for residents.",author:"Michael Rodriguez"},{title:"2024 Industrial Automation Trends: What Manufacturers Need to Know",excerpt:"Stay ahead of the curve with insights into the latest automation technologies transforming manufacturing and production processes.",author:"Dr. Aisha Patel"},{title:"How IoT Sensors Are Transforming Water Management in Agriculture",excerpt:"Learn about the latest IoT sensor technologies helping farmers optimize irrigation and conserve water resources.",author:"James Thompson"},{title:"The ROI of Predictive Maintenance: Real-World Case Studies",excerpt:"Examine concrete examples of how predictive maintenance systems deliver measurable returns on investment for industrial operations.",author:"Dr. Sarah Chen"},{title:"Smart Grids and Renewable Energy: The Perfect Partnership",excerpt:"Understand how intelligent energy distribution systems are enabling the integration of renewable energy sources at scale.",author:"Michael Rodriguez"}],WK={backToBlog:"Back to Blog",share:"SHARE",shareArticle:"Share Article",taggedIn:"Tagged In",views:"views",loading:"Loading article...",notFound:{title:"Article Not Found",description:"The article you're looking for doesn't exist."},toast:{linkCopied:"Link copied!",linkCopiedDescription:"Article link has been copied to clipboard."},social:{twitter:"Twitter",linkedin:"LinkedIn",facebook:"Facebook",copy:"Copy"}},GK={hero:zK,filters:UK,tags:VK,card:$K,empty:qK,mockArticles:HK,article:WK},KK={title:"Get in Touch",subtitle:"Let's discuss how AI-ROS can transform your business with AI, robotics, and intelligent automation."},YK={title:"Send us a Message",labels:{name:"Name",company:"Company",email:"Email",subject:"Subject",message:"Message"},placeholders:{name:"Your full name",company:"Your company name",email:"[email protected]",subject:"How can we help?",message:"Tell us about your project..."},validation:{nameRequired:"Name is required",emailRequired:"Email is required",emailInvalid:"Invalid email format",subjectRequired:"Subject is required",messageRequired:"Message is required"},submit:{send:"Send Message",sending:"Sending..."}
408,success:{title:"Message Sent!",description:"Thank you for contacting us. We'll get back to you soon.",referenceId:"Reference ID:",sendAnother:"Send Another Message"}},XK={email:{title:"Email Us",description:"Our team typically responds within 24 hours",address:"[email protected]"},phone:{title:"Call Us",description:"Direct lines to our regional offices",egypt:{label:"Egypt",number:"+20 10 21183564"},ksa:{label:"KSA",number:"+966 59 836 6584"},uae:{label:"UAE",number:"+971 52 322 9278"}},location:{title:"Regional Hubs",description:"Cairo, EGYPT | Riyadh, KSA | Abu Dhabi, UAE",hubs:[{city:"Cairo",country:"EGYPT"},{city:"Riyadh",country:"KSA"},{city:"Abu Dhabi",country:"UAE"}],mapLink:"View Global Locations"}},ZK={hero:KK,form:YK,info:XK},QK={nav:{home:"Ø§ÙØ±Ø¦ÙØ³ÙØ©",solutions:"Ø§ÙØÙÙÙ",projects:"اÙÙ
Ø´Ø§Ø±ÙØ¹",blog:"اÙÙ
دÙÙØ©",trainings:"Ø§ÙØªØ¯Ø±Ùبات",about:"Ù
Ù ÙØÙ",contact:"Ø§ØªØµÙ Ø¨ÙØ§"},language:{en:"EN",ar:"AR"}},JK={company:{title:"AI-ROS",description:"ÙØ¨ØªÙر اÙÙÙÙ
Ø ÙØ³ØªØ¯Ø§Ù
غداÙ"},links:{quickLinks:"Ø±ÙØ§Ø¨Ø· Ø³Ø±ÙØ¹Ø©",home:"Ø§ÙØ±Ø¦ÙØ³ÙØ©",solutions:"Ø§ÙØÙÙÙ",projects:"اÙÙ
Ø´Ø§Ø±ÙØ¹",blog:"اÙÙ
دÙÙØ©",about:"Ù
Ù ÙØÙ",contact:"Ø§ØªØµÙ Ø¨ÙØ§"},solutions:{title:"Ø§ÙØÙÙÙ",items:["Ø·Ø¨ÙØ¨ اÙÙØ¨Ø§ØªØ§Øª Ø§ÙØ°ÙÙ","Ø§ÙØ£Ø±Ø¶ اÙÙ
Ø±ÙØØ©","Ø§ÙØ±Ù Ø§ÙØ¯ÙÙÙ","Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙØ§Ø¹Ù Ø§ÙØªÙÙÙØ¯Ù","Ù
ختبر Ø§ÙØªØ¹ÙÙ
Ø¨Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙاعÙ"],data:[{title:"ÙÙ
Ù+ â Ø·Ø¨Ùب اÙÙØ¨Ø§ØªØ§Øª Ø§ÙØ°ÙÙ",description:"Ù
ÙØµØ© ÙÙÙØ´Ù ع٠أÙ
راض اÙÙØ¨Ø§ØªØ§Øª تعتÙ
د عÙÙ Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙØ§Ø¹Ù ÙØªØ¯Ø¹Ù
Ø£ÙØ«Ø± Ù
Ù 30 ÙÙØ¹Ùا. تÙ
ÙÙ٠اÙÙ
زارعÙÙ Ù
Ù Ø§ÙØªØ´Ø®Ùص اÙÙ
Ø¨ÙØ±Ø ÙØªÙÙÙ Ø§ÙØ§Ø¹ØªÙ
اد عÙ٠اÙÙ
Ø¨ÙØ¯Ø§Øª Ø§ÙØØ´Ø±ÙØ©Ø ÙØªØ²Ùد Ø§ÙØ¥ÙØªØ§Ø¬ÙØ© بشÙÙ Ù
ستداÙ
.",impact:"ÙÙÙÙ Ù
٠خسائر اÙÙ
ØØ§ØµÙÙØ ÙÙØØ³Ù Ø§ÙØ£Ù
Ù Ø§ÙØºØ°Ø§Ø¦Ù",tech:"Ø§ÙØªØ¹Ø±Ù عÙÙ Ø§ÙØµÙر Ø¨Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·Ùاع٠+ ÙÙ
اذج Ø£Ù
راض اÙÙØ¨Ø§ØªØ§Øª"},{title:"أرض Ù
Ø±ÙØØ© â Ø¬Ùدة اÙÙÙØ§Ø¡ Ø¨Ø§ÙØªØµÙ
ÙÙ
",description:"Ù
ØØ±Ù ØªÙØµÙØ© ÙØ¨Ø§ØªØ§Øª Ù
دعÙÙ
باÙÙØ§Ùع Ø§ÙØ§ÙØªØ±Ø§Ø¶Ù ÙØ§ÙØ°ÙØ§Ø¡ Ø§ÙØ§ØµØ·ÙØ§Ø¹Ù ÙØ®ØªØ§Ø± Ø£ÙØ¶Ù اÙÙØ¨Ø§ØªØ§Øª ÙÙ
Ø³Ø§ØØªÙ Ø¨ÙØ§Ø¡Ù عÙÙ Ø¨ÙØ§Ùات Ø§ÙØªÙÙØ« اÙÙ
ØÙÙ ÙØ§ØØªÙاجات Ø§ÙØ£ÙسجÙÙ. ÙÙ
ÙÙ ÙÙÙ
ستخدÙ
ÙÙ ØªØµÙØ± ÙÙØ¶Ø¹ اÙÙØ¨Ø§ØªØ§Øª ÙÙ Ù
ÙØ§Ø²ÙÙÙ
Ø£Ù Ù
ÙØ§ØªØ¨ÙÙ
Ø§ÙØªØ±Ø§Ø¶ÙÙØ§.",impact:"ÙØØ³Ù Ø¬ÙØ¯Ø© اÙÙÙØ§Ø¡ Ø§ÙØ¯Ø§Ø®ÙÙØ ÙÙØ¹Ø²Ø² Ø§ÙØªØ®Ø¶Ùر Ø§ÙØØ¶Ø±Ù",tech:"Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·Ùاع٠+ اÙÙØ§Ùع Ø§ÙØ§Ùتراض٠+ تØÙÙÙØ§Øª Ø§ÙØ¨ÙØ§ÙØ§Øª Ø§ÙØ¨ÙØ¦ÙØ©"},{title:"ØØ³ Ø§ÙØªØ±Ø¨Ø© â Ø§ÙØ±Ù Ø§ÙØ¯ÙÙÙ ÙØ¹Ø§ÙÙ
عطشاÙ",description:"Ù
ساعد ر٠ذÙÙ ÙØ³ØªØ®Ø¯Ù
Ø£Ø¬ÙØ²Ø© استشعار Ø¥ÙØªØ±Ùت Ø§ÙØ£Ø´Ùاء ÙØ®ÙارزÙ
ÙØ§Øª Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·Ùاع٠ÙÙ
Ø±Ø§ÙØ¨Ø© Ø§ÙØ±Ø·Ùبة ÙØ§ÙÙ
ØºØ°ÙØ§Øª ÙØ§ÙظرÙÙ Ø§ÙØ¨ÙØ¦ÙØ©. ÙÙÙÙ
بأتÙ
تة استخداÙ
اÙÙ
ÙØ§Ù ÙØ§ÙأسÙ
دة ÙÙØ²Ø±Ø§Ø¹Ø© اÙÙØ¹Ø§ÙØ© ÙØ§ÙÙ
ستداÙ
Ø©.",impact:"ÙÙÙØ± اÙÙ
ÙØ§ÙØ ÙÙÙÙÙ Ù
Ù Ø§ÙØ¥Ùراط ÙÙ Ø§ÙØªØ³Ù
ÙØ¯",tech:"Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·Ùاع٠+ Ø¥ÙØªØ±Ùت Ø§ÙØ£Ø´Ùاء + تØÙÙÙØ§Øª Ø§ÙØªØ±Ø¨Ø© Ù٠اÙÙÙØª اÙÙØ¹ÙÙ"},{title:"راج ساس â Ø°Ùاء Ø§ØµØ·ÙØ§Ø¹Ù ÙÙÙØ± Ù
عÙ",description:"Ù
ÙØµØ© تÙÙÙØ¯ Ù
عززة Ø¨Ø§ÙØ§Ø³ØªØ±Ø¬Ø§Ø¹ (RaG) ØªØªÙØ ÙÙÙ
ستخدÙ
ÙÙ Ø¨ÙØ§Ø¡ ÙÙÙØ§Ø¡ دعÙ
اÙÙØ±Ø§Ø± اÙÙ
دربÙ٠عÙÙ Ø³ÙØ§Ø³Ø§ØªÙÙ
ÙÙØ«Ø§Ø¦ÙÙÙ
ÙØ¨ÙØ§ÙØ§ØªÙÙ
Ø§ÙØ®Ø§ØµØ©. Ù
ثاÙÙØ© ÙØªØ®Ø·ÙØ· Ø§ÙØ§Ø³ØªØ¯Ø§Ù
Ø© ÙØ§ÙØÙÙÙ
Ø© ÙØ§ÙØ¨ØØ«.",impact:"ÙØ±Ø§Ø±Ø§Øª أذÙÙØ تصÙ
ÙÙ
Ø³ÙØ§Ø³Ø§Øª أسرع",tech:"ÙÙ
اذج اÙÙØºØ© اÙÙØ¨Ùرة + ÙÙØ§Ø¹Ø¯ Ø§ÙØ¨ÙØ§ÙØ§Øª اÙÙ
ØªØ¬ÙØ© + أطر Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙØ§Ø¹Ù Ø§ÙØªÙÙÙØ¯Ù"},{title:"Ù
ختبر Ø§ÙØªØ¹ÙÙ
Ø¨Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙØ§Ø¹Ù â Ø§ÙتعÙÙÙ
Ø§ÙØ´Ø®ØµÙ",description:"Ù
ÙØµØ© تجÙ
ع بÙÙ Ø§ÙØªØ¯Ø±Ùس Ø§ÙØ°ÙÙØ
408 ÙØªØ®ØµÙص اÙÙ
ÙØ§ÙØ¬Ø ÙØ§ÙØ£Ø¯ÙØ§Øª Ø§ÙØªÙاعÙÙØ© ÙØ¬Ø¹Ù Ø§ÙØªØ¹ÙÙÙ
Ø£ÙØ«Ø± سÙÙÙØ© ÙÙØ¹Ø§ÙÙØ©. Ø³ÙØ§Ø¡ ÙÙØª Ø·Ø§ÙØ¨Ùا ÙØ¹Ø§ÙÙ Ù
Ù Ø§ÙØ±ÙØ§Ø¶ÙØ§Øª Ø£Ù Ù
ØØªØ±ÙÙØ§ ÙØ¯Ø®Ù Ù
Ø¬Ø§Ù Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·Ùاع٠Ù
Ù Ø§ÙØµÙØ±Ø ÙØªÙÙÙ LearnLab Ù
ع Ø§ØØªÙاجاتÙ.",impact:"اÙÙ
Ø³Ø§ÙØ§Ø© ÙÙ Ø§ÙØªØ¹ÙÙÙ
Ø Ø¥Ø¶ÙØ§Ø¡ Ø§ÙØ·Ø§Ø¨Ø¹ Ø§ÙØ¯ÙÙ
ÙØ±Ø§Ø·Ù عÙÙ Ù
ÙØ§Ø±Ø§Øª Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·Ùاع٠عاÙÙ
ÙÙØ§",tech:"Ù
Ø¹Ø§ÙØ¬Ø© اÙÙØºØ© Ø§ÙØ·Ø¨ÙØ¹ÙØ© + Ù
ØØ±Ùات Ø§ÙØªØ¹ÙÙ
Ø§ÙØªÙÙÙÙ + اÙÙ
ØØ§Ùاة Ø§ÙØªÙاعÙÙØ©"}]},modal:{description:"اÙÙØµÙ",impact:"Ø§ÙØªØ£Ø«Ùر",techStack:"Ø§ÙØªÙÙÙØ§Øª اÙÙ
ستخدÙ
Ø©"},contact:{title:"Ø§ØªØµÙ Ø¨ÙØ§",location:"اÙÙØ§ÙØ±Ø©Ø Ù
صر"},social:{title:"ØªØ§Ø¨Ø¹ÙØ§"},legal:{privacy:"Ø³ÙØ§Ø³Ø© Ø§ÙØ®ØµÙØµÙØ©",terms:"Ø´Ø±ÙØ· Ø§ÙØ®Ø¯Ù
Ø©"},copyright:"© {{year}} AI-ROS. جÙ
ÙØ¹ Ø§ÙØÙÙÙ Ù
ØÙÙØ¸Ø©."},eY={title:"404 - Ø§ÙØµÙØØ© ØºÙØ± Ù
ÙØ¬Ùدة",description:"Ø§ÙØµÙØØ© Ø§ÙØªÙ ØªØ¨ØØ« عÙÙØ§ ØºÙØ± Ù
ÙØ¬Ùدة.",button:"Ø§ÙØ¹Ùدة ÙÙØ±Ø¦ÙØ³ÙØ©"},tY={header:QK,footer:JK,notFound:eY},nY={badge:"ÙØ¨ØªÙر اÙÙÙÙ
ÙÙØ³ØªØ¯Ø§Ù
ØºØ¯ÙØ§",title:"تØÙÙÙ Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·Ùاع٠إÙÙ",titleHighlight:"أثر ÙØ§Ùع٠Ù
ÙÙ
ÙØ³",description:"تدÙ
ج AI-ROS بÙÙ Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙØ§Ø¹Ù ÙØ§ÙØ±ÙØ¨ÙØªÙØ³ ÙØ§ÙأتÙ
تة ÙØ§ÙبرÙ
Ø¬ÙØ§Øª Ø§ÙØ°ÙÙØ© ÙØªØ·ÙÙØ± ØÙÙ٠تÙ
ÙÙ٠اÙÙ
ؤسسات Ù
Ù Ø§ÙØ¹Ù
Ù Ø¨Ø°ÙØ§Ø¡Ø ÙØªØ³Ø±Ùع Ø§ÙØ§Ø¨ØªÙØ§Ø±Ø ÙÙØªØ Ø¢ÙØ§Ù Ø¬Ø¯ÙØ¯Ø©.",cta:{primary:"Ø§Ø³ØªÙØ´Ù ØÙÙÙÙØ§",secondary:"Ø´Ø§ÙØ¯ Ø§ÙØ¹Ø±Ø¶ Ø§ÙØªÙدÙÙ
Ù"}},rY={badge:"Ù
ا ÙÙØ¯Ù
Ù",title:"خدÙ
Ø§ØªÙØ§",items:[{title:"استشارات Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙØ§Ø¹Ù ÙØªØµÙ
ÙÙ
Ø§ÙØÙÙÙ",description:"بÙÙØ§Øª Ø°ÙØ§Ø¡ Ø§ØµØ·ÙØ§Ø¹Ù Ù
خصصة ÙØ±ÙÙ
ÙØ© Ø³ÙØ± Ø§ÙØ¹Ù
Ù ÙØªØÙÙÙ Ø§ÙØ¨ÙØ§ÙØ§Øª ÙØ£ØªÙ
تة اÙÙØ±Ø§Ø±Ø§Øª."},{title:"ØªÙØ§Ù
Ù Ø£ÙØ¸Ù
Ø© Ø§ÙØ±ÙØ¨ÙØªØ§Øª",description:"Ø°ÙØ§Ø¡ Ù
دÙ
ج ÙÙØ·Ø§Ø¦Ø±Ø§Øª بدÙÙ Ø·ÙØ§Ø± ÙØ§ÙØ±ÙØ¨Ùتات اÙÙ
ÙØ¯Ø§ÙÙØ© ÙØ£Ø¬Ùزة Ø§ÙØ£ØªÙ
تة ÙÙ Ø§ÙØ²Ø±Ø§Ø¹Ø© ÙÙ
ا Ø¨Ø¹Ø¯ÙØ§."},{title:"Ù
ÙØµØ§Øª SaaS ÙÙÙØØ§Øª اÙÙ
عÙÙÙ
ات Ø§ÙØ°ÙÙØ©",description:"تطبÙÙØ§Øª Ø³ØØ§Ø¨ÙØ© Ù
دعÙÙ
Ø© Ø¨Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙØ§Ø¹Ù ÙØªØØ³ÙÙ Ø§ÙØ¹Ù
ÙÙØ§Øª ÙØ¥Ø¯Ø§Ø±Ø© Ø§ÙØ£ØµÙÙ ÙØªØØ³ÙÙ Ù
ÙØ§ÙÙØ³ Ø§ÙØ§Ø³ØªØ¯Ø§Ù
Ø©."},{title:"Ø§ÙØ¨ØØ« ÙØ§ÙتطÙÙØ± ÙØ®Ø¯Ù
Ø©",description:"ÙØ¨ÙÙ ØÙÙÙØ§Ù ÙÙ Ù
راØÙÙØ§ اÙÙ
Ø¨ÙØ±Ø© Ù
ع Ø§ÙØ´Ø±ÙØ§Ø¡Ø ÙÙÙØ¯Ù
ÙÙ
اذج Ø£ÙÙÙØ© ÙØ¯Ø±Ø§Ø³Ø§Øª جدÙÙ ÙØ¹Ø±Ùض ØªÙØ¶ÙØÙØ© ÙØ¥Ø«Ø¨Ø§Øª اÙÙ
ÙÙÙÙ
."},{title:"Ø§ÙØªØ¹ÙÙÙ
ÙØ§ÙØªØ¯Ø±ÙØ¨ اÙÙ
دعÙÙ
Ø¨Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙاعÙ",description:"Ø£Ø¯ÙØ§Øª تعÙÙ
Ø°ÙØ§Ø¡ Ø§ØµØ·ÙØ§Ø¹Ù Ù
خصصة ÙØ£ÙظÙ
Ø© ØªØ¯Ø±ÙØ³ تÙÙÙÙØ© ÙØ¯Ùرات عÙ
ÙÙØ© ÙØªÙ
ÙÙÙ Ø§ÙØ·Ùاب ÙØ§ÙÙ
عÙÙ
ÙÙ ÙØ§ÙÙ
ÙÙÙÙÙ."}]},iY={badge:"Ù
Ø´Ø§Ø±ÙØ¹ Ù
Ù
ÙØ²Ø©",title:"ÙØµØµ اÙÙØ¬Ø§Ø",subtitle:"تطبÙÙØ§Øª ÙØ§ÙØ¹ÙØ© تØÙÙ ØªØ£Ø«ÙØ±Ùا ÙØ§Ø¨Ùا٠ÙÙÙÙØ§Ø³ عبر Ø§ÙØµÙاعات",viewDetails:"عرض ØªÙØ§ØµÙ٠اÙÙ
Ø´Ø±ÙØ¹",viewAll:"عرض جÙ
ÙØ¹ اÙÙ
Ø´Ø§Ø±ÙØ¹",items:[{title:"ÙØ¸Ø§Ù
Ø§ÙØ±Ù Ø§ÙØ°ÙÙ",category:"Ø§ÙØ²Ø±Ø§Ø¹Ø© Ø§ÙØ°ÙÙØ©",description:"ÙØ¸Ø§Ù
إدارة Ø§ÙØ±Ù اÙÙ
دعÙÙ
Ø¨Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙØ§Ø¹Ù Ø§ÙØ°Ù ÙÙ٠استÙÙØ§Ù اÙÙ
ÙØ§Ù Ø¨ÙØ³Ø¨Ø© 40Ùª Ù
ع Ø²ÙØ§Ø¯Ø© Ø¥ÙØªØ§Ø¬ÙØ© اÙÙ
ØØ§ØµÙÙ."},{title:"إدارة ØØ±ÙØ© اÙÙ
Ø±ÙØ± Ø§ÙØØ¶Ø±ÙØ©",category:"اÙÙ
Ø¯Ù Ø§ÙØ°ÙÙØ©",description:"ÙØ¸Ø§Ù
Ù
Ø±ÙØ± ذÙÙ ØØ³ÙÙ Ø§ÙØªØ¯ÙÙ ÙÙÙÙ Ø§ÙØ§Ø²Ø¯ØØ§Ù
Ø¨ÙØ³Ø¨Ø© 35Ùª Ù٠اÙÙ
ÙØ§Ø·Ù Ø§ÙØØ¶Ø±ÙØ©."},{title:"Ù
جÙ
ÙØ¹Ø© Ø§ÙØµÙØ§ÙØ© Ø§ÙØªÙØ¨Ø¤ÙØ©",category:"Ø§ÙØ£ØªÙ
تة Ø§ÙØµÙØ§Ø¹ÙØ©",description:"Ù
ÙØµØ© تعÙÙ
Ø¢ÙÙ ØªØªÙØ¨Ø£ بأعطا٠اÙÙ
Ø¹Ø¯Ø§ØªØ Ù
Ù
ا ÙÙÙÙ ÙÙØª Ø§ÙØªÙÙÙ Ø¨ÙØ³Ø¨Ø© 60Ùª ÙÙÙ
ØµÙØ¹ÙÙ."}]},sY={badge:"Ø´Ø±Ø§ÙØ© رسÙ
ÙØ©",title:"Ø´Ø±ÙØ§Ø¡ ÙØ®ÙرÙÙ ÙÙ Techne Summit 2026",subtitle:"Ø§ÙØ¶Ù
ÙØ§ Ø¥ÙÙ AI-ROS Ù٠أبرز تجÙ
ع ÙÙØ§Ø¨ØªÙار ÙÙ Ù
صر باÙÙØ§Ùرة ÙØ§ÙإسÙÙØ¯Ø±ÙØ©.",imageAlt:"Ø¨ÙØ± Techne Summit 2026 Ù
Ù MEIW â Ø§ÙÙØ§Ùرة ٢٦âÙ¢Ù§ سبتÙ
بر ÙØ§ÙإسÙÙØ¯Ø±ÙØ© Ù£âÙ¥ Ø£ÙØªÙبر",ariaLabel:"Ø²ÙØ§Ø±Ø© اÙÙ
ÙÙØ¹ Ø§ÙØ±Ø³Ù
Ù ÙÙ Techne Summit 2026"},oY={badge:"Ø´Ø±ÙØ§Ø¡ Ù
ÙØ«ÙÙÙÙ",title:"ØªØ¹Ø²ÙØ² Ø§ÙØ§Ø¨ØªÙار Ù
Ø¹ÙØ§",subtitle:"Ø§ÙØªØ¹Ø§ÙÙ Ù
ع ÙØ§Ø¯Ø© Ø§ÙØµÙاعة ÙØªÙدÙÙ
ÙØªØ§Ø¦Ø¬ Ø§Ø³ØªØ«ÙØ§Ø¦ÙØ©"},aY={title:"ÙÙ Ø£ÙØª Ù
ستعد ÙØªØÙÙ٠عÙ
ÙÙØ",subtitle:"Ø§ÙØ¶Ù
Ø¥ÙÙ ÙØ§Ø¯Ø© Ø§ÙØµÙاعة Ø§ÙØ°ÙÙ ÙØ«ÙÙÙ ÙÙ AI-ROS ÙØªÙدÙÙ
ØÙÙÙ Ù
Ø¨ØªÙØ±Ø©. Ø¯Ø¹ÙØ§ ÙÙØ§ÙØ´ ÙÙÙ ÙÙ
ÙÙÙØ§ Ù
ساعدت٠Ù٠تØÙÙÙ Ø£ÙØ¯Ø§ÙÙ.",button:"اتص٠باÙÙ
Ø¨ÙØ¹Ø§Øª",stats:{consultation:{value:"30 دÙÙÙØ©",label:"استشارة Ù
جاÙÙØ©"},response:{value:"48 ساعة",label:"ÙÙØª Ø§ÙØ§Ø³ØªØ¬Ø§Ø¨Ø©"},confidential:{value:"100%",label:"Ø³Ø±ÙØ© تاÙ
Ø©"}}},lY={hero:nY,services:rY,projects:iY,techneSummit:sY,partners:oY,cta:aY},cY={badge:"ÙØµØªÙا",title:"ع٠AI-ROS",subtitle:"تأسست AI-ROS Ø¨ÙØ§Ø¡Ù عÙÙ Ø§ÙØ¥ÙÙ
Ø§Ù Ø¨Ø£Ù Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙØ§Ø¹Ù ÙØ¬Ø¨ Ø£Ù ÙØªØ¬Ø§Ùز Ù
جرد تØÙÙÙ Ø§ÙØ¨ÙØ§ÙØ§Øª ÙÙØªØÙ٠إÙ٠أثر ÙÙØ¹Ù ÙØ§ÙعÙ. Ù
Ù Ø®ÙØ§Ù دÙ
ج Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·Ùاع٠Ù
ع Ø§ÙØ±ÙØ¨ÙØªÙس ÙØ§ÙأتÙ
تة ÙØ§ÙبرÙ
Ø¬ÙØ§Øª Ø§ÙØ°ÙÙØ©Ø ÙØ·Ùر ØÙÙÙØ§Ù تÙ
ÙÙ٠اÙÙ
ؤسسات Ù
Ù Ø§ÙØ¹Ù
Ù Ø¨Ø°ÙØ§Ø¡Ø ÙØªØ³Ø±Ùع Ø§ÙØ§Ø¨ØªÙØ§Ø±Ø ÙÙØªØ Ø¢ÙØ§Ù Ø¬Ø¯ÙØ¯Ø©."},uY={title:"Ù
ÙÙ
ØªÙØ§",description:"تصÙ
ÙÙ
Ø£ÙØ¸Ù
Ø© Ø°ÙØ§Ø¡ اصØ
408·ÙØ§Ø¹Ù ÙØ±ÙØ¨ÙØªØ§Øª ÙØ§Ø¨ÙØ© ÙÙØªÙسع ØªØ¹Ø§ÙØ¬ Ø§ÙØªØØ¯Ùات اÙÙØ§ÙØ¹ÙØ© ÙÙ Ø§ÙØ²Ø±Ø§Ø¹Ø© ÙØ§ÙÙ
ÙØ§Ù ÙØ§ÙÙ
ÙØ§Ø® ÙØ§ÙتعÙÙÙ
ÙØ§ÙØ³ÙØ§Ø³Ø© Ø§ÙØ¹Ø§Ù
Ø© - Ù
ساعدة اÙÙ
جتÙ
عات عÙÙ Ø§ÙØªÙÙÙ ÙØ§ÙØµÙØ§Ø¹Ø§Øª عÙÙ Ø§ÙØªØ·Ùر ÙØ§ÙØ·Ø¨ÙØ¹Ø© عÙÙ Ø§ÙØ§Ø²Ø¯Ùار."},dY={title:"Ø±Ø¤ÙØªÙا",description:"عاÙÙ
ØÙØ« تÙ
ÙÙÙ Ø§ÙØ£ØªÙ
تة ÙØ§ÙØ¨ÙØ§Ùات ÙØ§ÙØ°ÙØ§Ø¡ Ù
Ø³ØªÙØ¨ÙØ§Ù Ø£ÙØ«Ø± خضرة ÙÙ
رÙÙØ©."},fY={badge:"اÙÙÙÙ
Ø§ÙØ£Ø³Ø§Ø³ÙØ©",title:"Ù
ا ÙØ¯ÙØ¹ÙØ§ ÙÙØ£Ù
اÙ
",subtitle:"ÙÙÙ
ÙØ§ ØªÙØ¬Ù ÙÙ ÙØ±Ø§Ø± ÙØªØ®Ø°Ù ÙÙÙ ØÙ ÙØ¨ØªÙرÙ",items:[{title:"Ø§ÙØ§Ø¨ØªÙار",description:"Ø¯ÙØ¹ Ø§ÙØØ¯ÙØ¯ بØÙÙÙ Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙØ§Ø¹Ù ÙØ§ÙØ±ÙØ¨Ùتات اÙÙ
ØªØ·ÙØ±Ø©"},{title:"Ø§ÙØªÙ
ÙØ²",description:"ØªÙØ¯ÙÙ
Ø¬ÙØ¯Ø© Ø§Ø³ØªØ«ÙØ§Ø¦ÙØ© ÙÙ ÙÙ Ù
Ø´Ø±ÙØ¹ ÙÙÙÙ
بÙ"},{title:"Ø§ÙØªØ¹Ø§ÙÙ",description:"Ø§ÙØ¹Ù
Ù Ø¹Ù ÙØ«Ø¨ Ù
ع Ø§ÙØ¹Ù
ÙØ§Ø¡ ÙØªØÙÙ٠اÙÙØ¬Ø§Ø اÙÙ
شترÙ"},{title:"اÙÙÙØ§Ø¡Ø©",description:"ØªØØ³ÙÙ Ø§ÙØ¹Ù
ÙÙØ§Øª ÙØªØ¹Ø¸ÙÙ
Ø§ÙØªØ£Ø«Ùر ÙØªÙÙÙ٠اÙÙØ¯Ø±"},{title:"Ø§ÙØ§Ø³ØªØ¯Ø§Ù
Ø©",description:"Ø¨ÙØ§Ø¡ ØÙÙ٠تÙÙØ¯ ÙÙ Ù
Ù Ø§ÙØ£Ø¹Ù
Ø§Ù ÙØ§ÙØ¨ÙØ¦Ø©"},{title:"اÙÙØ²Ø§ÙØ©",description:"Ø§ÙØÙØ§Ø¸ عÙ٠أعÙÙ Ù
عاÙÙØ± Ø§ÙØ£Ø®ÙØ§Ù ÙØ§ÙØ´ÙØ§ÙÙØ©"}],downloadButton:"تØÙ
ÙÙ Ù
ÙÙ Ø§ÙØ´Ø±ÙØ©"},hY={badge:"رØÙØªÙØ§",title:"Ø¹ÙØ¯ Ù
Ù Ø§ÙØ§Ø¨ØªÙار",subtitle:"Ù
Ù Ø§ÙØ¨Ø¯Ø§Ùات اÙÙ
ØªÙØ§Ø¶Ø¹Ø© Ø¥ÙÙ Ø§ÙØ±Ùادة ÙÙ Ø§ÙØµÙØ§Ø¹Ø©Ø Ø§Ø³ØªÙØ´Ù اÙÙ
عاÙÙ
Ø§ÙØªÙ Ø´ÙÙØª ÙØµØªÙا",milestones:[{year:2023,title:"ØªØ£Ø³ÙØ³ Ø§ÙØ´Ø±ÙØ©",description:"تأسست AI-ROS Ø¨Ø±Ø¤ÙØ© ÙØ¥ØØ¯Ø§Ø« Ø«ÙØ±Ø© ÙÙ Ø§ÙØµÙاعات Ù
Ù Ø®ÙØ§Ù Ø§ÙØ£ØªÙ
تة Ø§ÙØ°ÙÙØ©. اجتÙ
ع ÙØ±ÙÙÙØ§ اÙÙ
ؤسس Ù
Ù Ø¨Ø§ØØ«Ù Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·Ùاع٠ÙÙ
ÙÙØ¯Ø³Ù Ø§ÙØ±ÙØ¨ÙØªØ§Øª ÙØ³Ø¯ اÙÙØ¬ÙØ© بÙÙ Ø§ÙØªÙÙÙÙÙØ¬Ùا اÙÙ
ØªØ·ÙØ±Ø© ÙØªØ·Ø¨ÙÙØ§Øª Ø§ÙØ£Ø¹Ù
Ø§Ù Ø§ÙØ¹Ù
ÙÙØ©."},{year:2024,title:"Ø¥Ø·ÙØ§Ù Ø§ÙØÙÙÙ Ø§ÙØ£ÙÙÙ",description:"أطÙÙÙØ§ Ø¨ÙØ¬Ø§Ø ØÙÙÙÙØ§ Ø§ÙØ£ÙÙ٠اÙÙ
دعÙÙ
Ø© Ø¨Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·Ùاع٠بÙ
ا Ù٠ذÙÙ GROW+ ÙØ§Ùتشا٠أÙ
راض اÙÙØ¨Ø§ØªØ§Øª Ù Cozy Earth ÙØªØØ³ÙÙ Ø¬ÙØ¯Ø© اÙÙÙØ§Ø¡. أسست ÙØ°Ù اÙÙ
Ø´Ø§Ø±ÙØ¹ سÙ
Ø¹ØªÙØ§ ÙÙ ÙØ·Ø§Ø¹Ø§Øª Ø§ÙØªÙÙÙÙÙØ¬Ùا اÙÙ
ستداÙ
Ø© ÙØ§Ùزراعة Ø§ÙØ°ÙÙØ©."},{year:2025,title:"Ø§ÙØªÙسع ÙØ§ÙØ§Ø¨ØªÙØ§Ø±",description:"ÙØ³Ø¹Ùا Ù
ØÙظة ØÙÙÙÙØ§ Ù
ع Soil-Sense Ù RaG SaaS Ù AI LearnLab. Ù
ÙØªØ²Ù
ÙÙ Ø¨Ø¥Ø¶ÙØ§Ø¡ Ø§ÙØ·Ø§Ø¨Ø¹ Ø§ÙØ¯ÙÙ
ÙØ±Ø§Ø·Ù عÙ٠تعÙÙÙ
Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙØ§Ø¹Ù ÙØªØ·ÙÙØ± Ø§ÙØªÙÙÙØ§Øª اÙÙ
ستداÙ
Ø©. تÙÙ
ÙØ© ØªØ£Ø«ÙØ±Ùا عبر ÙØ·Ø§Ø¹Ø§Øª Ø§ÙØ²Ø±Ø§Ø¹Ø© ÙØ§ÙØªØ®Ø·ÙØ· Ø§ÙØØ¶Ø±Ù ÙØ§ÙتعÙÙÙ
."}]},pY={badge:"ÙÙ ÙØ¯ÙÙ Ø£Ø³Ø¦ÙØ©Ø",title:"Ø§ÙØ£Ø³Ø¦ÙØ© Ø§ÙØ´Ø§Ø¦Ø¹Ø©",subtitle:"ÙÙ Ù
ا ØªØØªØ§Ø¬ Ù
Ø¹Ø±ÙØªÙ ع٠AIROS",items:[{question:"ÙÙ AIROS Ù
خصصة ÙÙØ²Ø±Ø§Ø¹Ø© ÙÙØ·Ø",answer:"ÙØ§. بÙÙÙ
ا تعد Ø§ÙØªÙÙÙÙÙØ¬Ùا Ø§ÙØ²Ø±Ø§Ø¹ÙØ© Ù
ØÙØ±ÙØ§ أساسÙÙØ§Ø تخدÙ
Ù
ÙØµØ§ØªÙا Ø£Ù ÙØ·Ø§Ø¹ ÙØØªØ§Ø¬ Ø¥ÙÙ Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·Ùاع٠ÙÙØ§Ø³ØªØ¯Ø§Ù
Ø© Ø£Ù Ø§ÙØªØ¹ÙÙÙ
Ø£Ù Ø§ÙØ³Ùاسة Ø£Ù Ø§ÙØ£ØªÙ
تة."},{question:"ÙÙ ØªÙØ¯Ù
ÙÙ ØÙÙÙØ§Ù Ù
خصصةØ",answer:"ÙØ¹Ù
. ÙØÙ Ù
تخصصÙÙ ÙÙ Ø¨ÙØ§Ø¡ Ø£ÙØ¸Ù
Ø© Ø°ÙØ§Ø¡ Ø§ØµØ·ÙØ§Ø¹Ù Ù
خصصة ØªØªÙØ§Ø³Ø¨ Ù
ع Ø§ØØªÙØ§Ø¬Ø§ØªÙ Ø§ÙØªØ´ØºÙÙÙØ© ÙØ£ÙداÙÙ."},{question:"Ù
ا Ø§ÙØ°Ù ÙÙ
ÙØ²ÙÙ
Ø",answer:"Ù
ÙØªØ¬Ø§ØªÙا Ù
ÙÙÙØ¯Ø© Ù
Ù Ø§ÙØ¨ØØ« ÙØ§ÙتطÙÙØ±Ø Ù
تجذرة ÙÙ Ø§ÙØ§Ø³ØªØ¯Ø§Ù
Ø©Ø ÙÙ
صÙ
Ù
Ø© Ù
ع Ø§ÙØªØ£Ø«Ùر Ø§ÙØ¥ÙساÙÙ ÙÙ Ø§ÙØ§Ø¹ØªØ¨Ø§Ø±."}],contactText:"ÙØ§ ØªØ²Ø§Ù ÙØ¯ÙÙ Ø£Ø³Ø¦ÙØ©Ø ÙØÙ ÙÙØ§ ÙÙÙ
ساعدة!",contactButton:"ØªÙØ§ØµÙ Ù
Ø¹ÙØ§"},mY={hero:cY,mission:uY,vision:dY,values:fY,timeline:hY,faq:pY},gY={default:{badge:"تÙÙÙØ© Ù
ÙÙ
Ø©",title:"ØÙÙÙÙØ§",subtitle:"ØªØ±ÙØ² AIROS عÙÙ Ø§ÙØªÙÙÙÙÙØ¬Ùا Ø§ÙØªÙ تخÙÙ ØªØ£Ø«ÙØ±Ùا ØÙÙÙÙÙØ§ - Ù
Ù Ø§ÙØ²Ø±Ø§Ø¹Ø© اÙÙ
ستداÙ
Ø© Ø¥ÙÙ Ø¥Ø¶ÙØ§Ø¡ Ø§ÙØ·Ø§Ø¨Ø¹ Ø§ÙØ¯ÙÙ
ÙØ±Ø§Ø·Ù عÙ٠تعÙÙÙ
Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙاعÙ"},smartAgriculture:{title:"Ø§ÙØ²Ø±Ø§Ø¹Ø© Ø§ÙØ°ÙÙØ©",subtitle:"Ø¥ØØ¯Ø§Ø« Ø«ÙØ±Ø© ÙÙ Ø§ÙØ²Ø±Ø§Ø¹Ø© بØÙÙÙ Ø§ÙØ²Ø±Ø§Ø¹Ø© Ø§ÙØ¯ÙÙÙØ© اÙÙ
دعÙÙ
Ø© Ø¨Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙاعÙ"},smartCities:{badge:"ØÙÙÙ ØØ¶Ø±ÙØ©",title:"اÙÙ
Ø¯Ù Ø§ÙØ°ÙÙØ©",subtitle:"Ø¨ÙØ§Ø¡ بÙÙØ© ØªØØªÙØ© ØØ¶Ø±ÙØ© ذÙÙØ© Ù
٠أج٠ØÙاة Ù
ستداÙ
Ø© Ù٠اÙÙ
دÙÙØ©"},industrialAutomation:{badge:"ØÙÙÙ ØµÙØ§Ø¹ÙØ©",title:"Ø§ÙØ£ØªÙ
تة Ø§ÙØµÙØ§Ø¹ÙØ©",subtitle:"تØÙÙÙ Ø§ÙØªØµÙÙØ¹ Ø¨Ø§ÙØ£ØªÙ
تة Ø§ÙØ°ÙÙØ© ÙØ§ÙØ±ÙØ¨Ùتات"}},yY={badge:"تÙÙÙØ© Ù
ÙÙ
Ø©",title:"ØÙÙÙÙØ§",subtitle:"ØªØ±ÙØ² AIROS عÙÙ Ø§ÙØªÙÙÙÙÙØ¬Ùا Ø§ÙØªÙ تخÙÙ ØªØ£Ø«ÙØ±Ùا ØÙÙÙÙÙØ§ - Ù
Ù Ø§ÙØ²Ø±Ø§Ø¹Ø© اÙÙ
ستداÙ
Ø© Ø¥ÙÙ Ø¥Ø¶ÙØ§Ø¡ Ø§ÙØ·Ø§Ø¨Ø¹ Ø§ÙØ¯ÙÙ
ÙØ±Ø§Ø·Ù عÙ٠تعÙÙÙ
Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙاعÙ",clickHint:"اÙÙØ± ÙÙØ§Ø³ØªÙشاÙ"},xY={description:"اÙÙØµÙ",keyFeatures:"اÙÙ
ÙØ²Ø§Øª Ø§ÙØ±Ø¦ÙØ³ÙØ©",impact:"Ø§ÙØªØ£Ø«Ùر",techStack:"اÙÙ
جÙ
ÙØ¹Ø© Ø§ÙØªÙÙÙØ©"},vY=[{name:"ÙÙ
Ù+",subtitle:"Ø·Ø¨ÙØ¨ اÙÙØ¨Ø§ØªØ§Øª Ø§ÙØ°ÙÙ",description:"Ù
ÙØµØ© ÙÙÙØ´Ù ع٠أÙ
راض اÙÙØ¨Ø§ØªØ§Øª تعتÙ
د عÙÙ Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙØ§Ø¹Ù ÙØªØ¯Ø¹Ù
Ø£ÙØ«Ø± Ù
Ù 30 ÙÙØ¹Ùا. تÙ
ÙÙ٠اÙÙ
زارعÙÙ Ù
Ù Ø§ÙØªØ´Ø®Ùص اÙÙ
Ø¨ÙØ±Ø ÙØªÙÙÙ Ù
Ù Ø§ÙØ§Ø¹ØªÙ
اد عÙ٠اÙÙ
Ø¨ÙØ¯Ø§Øª Ø§ÙØØ´Ø±ÙØ©Ø ÙØªØ²Ùد Ù
Ù Ø§ÙØ¥Ùتاج بشÙÙ Ù
ستداÙ
.",impact:"ÙÙÙÙ Ù
٠خسارة اÙÙ
ØØ§ØµÙÙØ ÙÙØØ³Ù Ø§ÙØ£Ù
Ù Ø§ÙØºØ°Ø§Ø¦Ù",tech:"Ø§ÙØªØ¹Ø±Ù عÙÙ Ø§ÙØµÙر Ø¨Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·Ùاع٠+ ÙÙ
اذج Ø£Ù
راض اÙÙØ¨Ø§Øª"},{name:"Ø§ÙØ£Ø±Ø¶ اÙÙ
Ø±ÙØØ©",subtitle:"Ø¬ÙØ¯Ø© اÙÙÙØ§Ø¡ Ø¨Ø§ÙØªØµÙ
ÙÙ
",description:"Ù
ØØ±Ù ØªÙØµÙØ© ÙØ¨Ø§ØªØ§Øª Ù
دعÙÙ
باÙÙØ§Ùع Ø§ÙØ§ÙØªØ±Ø§Ø¶Ù ÙØ§ÙØ°ÙØ§Ø¡ Ø§ÙØ§ØµØ·ÙØ§Ø¹Ù ÙØ®ØªØ§Ø± Ø£ÙØ¶Ù اÙÙØ¨Ø§ØªØ§Øª ÙÙ
Ø³Ø§ØØªÙ Ø¨ÙØ§Ø¡Ù عÙÙ Ø¨ÙØ§Ùات Ø§ÙØªÙÙØ« اÙÙ
ØÙÙ ÙØ§ØØªÙاجات Ø§ÙØ£ÙسجÙÙ. ÙÙ
ÙÙ ÙÙÙ
ستخدÙ
ÙÙ ØªØµÙØ± ÙÙØ¶Ø¹ اÙÙØ¨Ø§ØªØ§Øª ÙÙ Ù
ÙØ§Ø²ÙÙÙ
Ø£Ù Ù
ÙØ§ØªØ¨ÙÙ
Ø§ÙØªØ±Ø§Ø¶ÙÙØ§.",impact:"ÙØØ³Ù Ø§ÙÙÙØ§Ø¡ Ø§ÙØ¯Ø§Ø®ÙÙØ ÙÙØ¹Ø²Ø² Ø§ÙØ§Ø®Ø¶Ø±Ø§Ø± Ø§ÙØØ¶Ø±Ù",tech:"Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·Ùاع٠+ اÙÙØ§Ùع Ø§ÙØ§Ùتراض٠+ تØÙÙÙØ§Øª Ø§ÙØ¨ÙØ§ÙØ§Øª Ø§ÙØ¨ÙØ¦ÙØ©"},{name:"ØØ³ Ø§ÙØªØ±Ø¨Ø©",subtitle:"Ø§ÙØ±Ù Ø§ÙØ¯ÙÙÙ ÙØ¹Ø§ÙÙ
عطشاÙ",description:"Ù
ساعد ر٠ذÙÙ ÙØ³ØªØ®Ø¯Ù
Ø£Ø¬ÙØ²Ø© استشعار Ø¥ÙØªØ±Ùت Ø§ÙØ£Ø´Ùاء ÙØ®ÙارزÙ
ÙØ§Øª Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·Ùاع٠ÙÙ
Ø±Ø§ÙØ¨Ø© Ø§ÙØ±Ø·Ùبة ÙØ§ÙÙ
ØºØ°ÙØ§Øª ÙØ§ÙظرÙÙ Ø§ÙØ¨ÙØ¦ÙØ©. ÙÙÙÙ
بأتÙ
تة استخداÙ
اÙÙ
ÙØ§Ù ÙØ§ÙأسÙ
دة Ù
٠أج٠زراعة ÙØ¹Ø§ÙØ© ÙÙ
ستداÙ
Ø©.",impact:"ÙÙÙØ± اÙÙ
ÙØ§ÙØ ÙÙÙÙÙ Ù
Ù Ø§ÙØ¥Ùراط ÙÙ Ø§ÙØªØ³Ù
ÙØ¯",tech:"Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·Ùاع٠+ Ø¥ÙØªØ±Ùت Ø§ÙØ£Ø´Ùاء + تØÙÙÙØ§Øª Ø§ÙØªØ±Ø¨Ø© Ù٠اÙÙÙØª اÙÙØ¹ÙÙ"},{name:"Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙØ§Ø¹Ù Ø§ÙØªÙÙÙØ¯Ù",subtitle:"Ø°ÙØ§Ø¡ اصØ
408·Ùاع٠ÙÙÙØ± Ù
عÙ",description:"Ù
ÙØµØ© تÙÙÙØ¯ Ù
عززة Ø¨Ø§ÙØ§Ø³ØªØ±Ø¬Ø§Ø¹ (RaG) ØªØªÙØ ÙÙÙ
ستخدÙ
ÙÙ Ø¨ÙØ§Ø¡ ÙÙÙØ§Ø¡ دعÙ
اÙÙØ±Ø§Ø± اÙÙ
دربÙ٠عÙÙ Ø³ÙØ§Ø³Ø§ØªÙÙ
ÙÙØ«Ø§Ø¦ÙÙÙ
ÙØ¨ÙØ§ÙØ§ØªÙÙ
Ø§ÙØ®Ø§ØµØ©. Ù
ثاÙÙØ© ÙØªØ®Ø·ÙØ· Ø§ÙØ§Ø³ØªØ¯Ø§Ù
Ø© ÙØ§ÙØÙÙÙ
Ø© ÙØ§ÙØ¨ØØ«.",impact:"ÙØ±Ø§Ø±Ø§Øª أذÙÙØ تصÙ
ÙÙ
Ø³ÙØ§Ø³Ø§Øª أسرع",tech:"ÙÙ
اذج اÙÙØºØ© اÙÙØ¨Ùرة + ÙÙØ§Ø¹Ø¯ Ø§ÙØ¨ÙØ§ÙØ§Øª اÙÙ
ØªØ¬ÙØ© + أطر Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙØ§Ø¹Ù Ø§ÙØªÙÙÙØ¯Ù"},{name:"Ù
ختبر تعÙÙ
Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙاعÙ",subtitle:"Ø§ÙØªØ¹ÙÙÙ
Ø§ÙØ´Ø®ØµÙ Ø¨Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙاعÙ",description:"Ù
ÙØµØ© تجÙ
ع بÙÙ Ø§ÙØªØ¯Ø±Ùس Ø§ÙØ°ÙÙØ ÙØªØ®ØµÙص اÙÙ
ÙØ§ÙØ¬Ø ÙØ§ÙØ£Ø¯ÙØ§Øª Ø§ÙØªÙاعÙÙØ© ÙØ¬Ø¹Ù Ø§ÙØªØ¹ÙÙÙ
Ø£ÙØ«Ø± سÙÙÙØ© ÙÙØ¹Ø§ÙÙØ©. Ø³ÙØ§Ø¡ ÙÙØª Ø·Ø§ÙØ¨Ùا ÙØ¹Ø§ÙÙ Ù
Ù Ø§ÙØ±ÙØ§Ø¶ÙØ§Øª Ø£Ù Ù
ØØªØ±ÙÙØ§ ÙØ¯Ø®Ù Ù
Ø¬Ø§Ù Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·Ùاع٠Ù
Ù Ø§ÙØµÙØ±Ø ÙØªÙÙÙ LearnLab Ù
ع Ø§ØØªÙاجاتÙ.",impact:"اÙÙ
Ø³Ø§ÙØ§Ø© ÙÙ Ø§ÙØªØ¹ÙÙÙ
Ø Ø¥Ø¶ÙØ§Ø¡ Ø§ÙØ·Ø§Ø¨Ø¹ Ø§ÙØ¯ÙÙ
ÙØ±Ø§Ø·Ù عÙÙ Ù
ÙØ§Ø±Ø§Øª Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·Ùاع٠عاÙÙ
ÙÙØ§",tech:"Ù
Ø¹Ø§ÙØ¬Ø© اÙÙØºØ© Ø§ÙØ·Ø¨ÙØ¹ÙØ© + Ù
ØØ±Ùات Ø§ÙØªØ¹ÙÙ
Ø§ÙØªÙÙÙÙ + اÙÙ
ØØ§Ùاة Ø§ÙØªÙاعÙÙØ©"}],bY={hero:gY,list:yY,modal:xY,solutions:vY},wY={title:"Ù
Ø´Ø§Ø±ÙØ¹Ùا",subtitle:"Ø§Ø³ØªÙØ´Ù Ù
ØÙØ¸ØªÙØ§ Ù
٠تطبÙÙØ§Øª Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙØ§Ø¹Ù ÙØ§ÙأتÙ
تة اÙÙØ§Ø¬ØØ©"},SY={search:"Ø§ÙØ¨ØØ« ع٠اÙÙ
Ø´Ø§Ø±ÙØ¹...",all:"اÙÙÙ",year:"Ø§ÙØ³ÙØ©",category:"اÙÙØ¦Ø©",filters:"اÙÙÙØ§ØªØ±",clear:"Ù
سØ"},_Y={noResults:{title:"ÙÙ
ÙØªÙ
Ø§ÙØ¹Ø«Ùر عÙÙ Ù
Ø´Ø§Ø±ÙØ¹",description:"ØØ§Ù٠تعدÙ٠اÙÙÙØ§ØªØ± Ø£Ù Ø§Ø³ØªØ¹ÙØ§Ù
Ø§ÙØ¨ØØ« ÙÙØ¹Ø«Ùر عÙÙ Ù
ا ØªØ¨ØØ« عÙÙ."},readMore:"Ø§ÙØ±Ø£ اÙÙ
Ø²ÙØ¯",loadMore:"تØÙ
Ù٠اÙÙ
Ø²ÙØ¯ Ù
٠اÙÙ
Ø´Ø§Ø±ÙØ¹"},NY={"smart-agriculture":"Ø§ÙØ²Ø±Ø§Ø¹Ø© Ø§ÙØ°ÙÙØ©","smart-cities":"اÙÙ
Ø¯Ù Ø§ÙØ°ÙÙØ©",sustainability:"Ø§ÙØ§Ø³ØªØ¯Ø§Ù
Ø©",technology:"Ø§ÙØªÙÙÙÙÙØ¬Ùا",education:"Ø§ÙØªØ¹ÙÙÙ
"},kY=[{slug:"green-delta-project",title:"Ù
Ø´Ø±ÙØ¹ Ø§ÙØ¯Ùتا Ø§ÙØ®Ø¶Ø±Ø§Ø¡",excerpt:"ÙØ´Ø± Soil-Sense ÙÙ Ù
ÙØ·ÙØ© Ø¯ÙØªØ§ Ù
ØµØ±Ø Ù
Ù
ا أد٠إÙ٠تÙÙÙÙ Ø§ÙØ±Ù Ø¨ÙØ³Ø¨Ø© 35Ùª. Ù
ساعد ر٠ذÙÙ ÙØ³ØªØ®Ø¯Ù
Ø£Ø¬ÙØ²Ø© استشعار Ø¥ÙØªØ±Ùت Ø§ÙØ£Ø´Ùاء ÙØ®ÙارزÙ
ÙØ§Øª Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·Ùاع٠ÙÙ
Ø±Ø§ÙØ¨Ø© Ø§ÙØ±Ø·Ùبة ÙØ§ÙÙ
ØºØ°ÙØ§Øª ÙØ§ÙظرÙÙ Ø§ÙØ¨ÙØ¦ÙØ©.",location:"Ø¯ÙØªØ§ اÙÙÙÙØ Ù
صر"},{slug:"urban-wellness-labs",title:"Ù
ختبرات Ø§ÙØ¹Ø§ÙÙØ© Ø§ÙØØ¶Ø±ÙØ©",excerpt:"تجربة Cozy Earth Ù٠اÙÙØ§Ùرة ÙØ¨Ø±ÙÙÙ ÙØªØØ³ÙÙ Ø¬ÙØ¯Ø© اÙÙÙØ§Ø¡ Ø§ÙØ¯Ø§Ø®ÙÙ ÙÙ Ù
Ø±Ø§ÙØ² Ø§ÙØ¹Ù
٠اÙÙ
شترÙ. Ù
ØØ±Ù ØªÙØµÙØ© ÙØ¨Ø§ØªØ§Øª Ù
دعÙÙ
باÙÙØ§Ùع Ø§ÙØ§ÙØªØ±Ø§Ø¶Ù ÙØ§ÙØ°ÙØ§Ø¡ Ø§ÙØ§ØµØ·ÙØ§Ø¹Ù Ø¨ÙØ§Ø¡Ù عÙÙ Ø¨ÙØ§Ùات Ø§ÙØªÙÙØ« اÙÙ
ØÙÙ ÙØ§ØØªÙاجات Ø§ÙØ£ÙسجÙÙ.",location:"اÙÙØ§Ùرة ÙØ¨Ø±ÙÙÙ"},{slug:"agroedge",title:"Ø£Ø¬Ø±Ù Ø¥ÙØ¯Ø¬",excerpt:"ØªÙØ§Ù
Ù GROW+ Ù
ع Ø§ÙØ·Ø§Ø¦Ø±Ø§Øª بدÙÙ Ø·ÙØ§Ø± ÙÙ
Ø±Ø§ÙØ¨Ø© Ø§ÙØÙÙÙ Ù٠اÙÙ
زارع Ø§ÙØµØºÙرة. Ù
ÙØµØ© ÙØ´Ù Ø£Ù
راض اÙÙØ¨Ø§ØªØ§Øª اÙÙØ§Ø¦Ù
Ø© عÙÙ Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·Ùاع٠تدعÙ
Ø£ÙØ«Ø± Ù
Ù 30 ÙÙØ¹ÙØ§Ø Ù
Ù
ا ÙÙ
ÙÙ٠اÙÙ
زارعÙÙ Ù
Ù Ø§ÙØªØ´Ø®Ùص اÙÙ
Ø¨ÙØ±.",location:"Ø£ÙØ±ÙÙÙØ§ جÙÙØ¨ Ø§ÙØµØØ±Ø§Ø¡"},{slug:"policysim",title:"Ø§ÙØ³ÙاسÙ",excerpt:"أداة RaG SaaS تستخدÙ
ÙØ§ اÙÙ
ÙØ¸Ù
ات ØºÙØ± Ø§ÙØÙÙÙ
ÙØ© ÙÙ
ØØ§Ùاة Ø³ÙØ§Ø³Ø§Øª اÙÙØ±Ø¨ÙÙ. Ù
ÙØµØ© Ø§ÙØªÙÙÙØ¯ اÙÙ
عزز Ø¨Ø§ÙØ§Ø³ØªØ±Ø¬Ø§Ø¹ ÙØ¨Ùاء ÙÙÙØ§Ø¡ دعÙ
اÙÙØ±Ø§Ø± اÙÙ
دربÙ٠عÙÙ Ø§ÙØ³Ùاسات ÙØ§ÙÙØ«Ø§Ø¦Ù ÙØ§ÙØ¨ÙØ§Ùات.",location:"عاÙÙ
Ù"},{slug:"ai-learnsprint",title:"Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙØ§Ø¹Ù ÙØªØ¹ÙÙ
Ø§ÙØ·Ø¨Ø§Ø¹Ø©",excerpt:"ÙØ´Ø± AI LearnLab Ù٠اÙÙ
دارس Ø§ÙØ±ÙÙÙØ© Ù
ع دعÙ
عÙÙ
٠دÙÙØ§Ù
ÙÙÙ ÙÙ
ÙØ²Ø§Øª تعÙ
٠دÙÙ Ø§ØªØµØ§Ù Ø¨Ø§ÙØ¥ÙØªØ±ÙØª. Ù
ÙØµØ© تجÙ
ع بÙÙ Ø§ÙØªØ¯Ø±Ùس Ø§ÙØ°ÙÙ ÙØªØ®ØµÙص اÙÙ
ÙØ§Ùج ÙØ§ÙØ£Ø¯ÙØ§Øª Ø§ÙØªÙاعÙÙØ© ÙÙØªØ¹ÙÙÙ
اÙÙ
ÙØ³Ø±.",location:"اÙÙ
جتÙ
عات Ø§ÙØ±ÙÙÙØ©"}],AY={backButton:"Ø§ÙØ¹Ùدة Ø¥Ù٠اÙÙ
Ø´Ø§Ø±ÙØ¹",loading:"جار٠تØÙ
Ù٠اÙÙ
Ø´Ø±ÙØ¹...",notFound:{title:"اÙÙ
Ø´Ø±ÙØ¹ ØºÙØ± Ù
ÙØ¬Ùد",description:"اÙÙ
Ø´Ø±ÙØ¹ Ø§ÙØ°Ù ØªØ¨ØØ« عÙÙ ØºÙØ± Ù
ÙØ¬Ùد."},metadata:{client:"Ø§ÙØ¹Ù
ÙÙ",year:"Ø§ÙØ³ÙØ©",location:"اÙÙ
ÙÙØ¹"},sections:{impactResults:"Ø§ÙØªØ£Ø«Ùر ÙØ§ÙÙØªØ§Ø¦Ø¬",measurableSuccess:"ÙØ¬Ø§Ø ÙØ§Ø¨Ù ÙÙÙÙØ§Ø³",projectDeepDive:"تØÙÙ٠عÙ
ÙÙ ÙÙÙ
Ø´Ø±ÙØ¹",completeCaseStudy:"دراسة Ø§ÙØØ§ÙØ© اÙÙØ§Ù
ÙØ©",caseStudySubtitle:"Ø§Ø³ØªÙØ´Ù Ø§ÙØ±ØÙØ© اÙÙØ§Ù
ÙØ© Ù
Ù Ø§ÙØªØØ¯Ù Ø¥ÙÙ Ø§ÙØÙ ÙØ§ÙØªØ£Ø«ÙØ± اÙÙØ§Ø¨Ù ÙÙÙÙØ§Ø³",technologyStack:"اÙÙ
جÙ
ÙØ¹Ø© Ø§ÙØªÙÙÙØ©"},download:{title:"ÙÙ ØªØ±ÙØ¯ Ù
Ø¹Ø±ÙØ© اÙÙ
Ø²ÙØ¯Ø",description:"ÙÙ
Ø¨ØªÙØ²Ù٠دراسة Ø§ÙØØ§ÙØ© اÙÙØ§Ù
ÙØ© Ù
ع اÙÙ
ÙØ§ØµÙات اÙÙÙÙØ© Ø§ÙØªÙصÙÙÙØ© ÙØ¹Ù
ÙÙØ© Ø§ÙØªÙÙÙØ° ÙØªØÙÙ٠اÙÙØªØ§Ø¦Ø¬ Ø§ÙØ´Ø§Ù
Ù.",button:"ØªÙØ²Ù٠دراسة Ø§ÙØØ§ÙØ© اÙÙØ§Ù
ÙØ©"},cta:{title:"ÙÙ Ø£ÙØª Ù
ستعد ÙØªØÙÙ٠عÙ
ÙÙØ",description:"Ø¯Ø¹ÙØ§ ÙÙØ§ÙØ´ ÙÙÙ ÙÙ
ÙÙÙØ§ Ø¥ÙØ´Ø§Ø¡ ØÙ Ù
Ù
اث٠Ù
صÙ
Ù
Ø®ØµÙØµÙا ÙØ§ØØªÙØ§Ø¬Ø§ØªÙ ÙØªØØ¯Ùات٠اÙÙ
ØØ¯Ø¯Ø©.",button:"عرض اÙÙ
Ø²ÙØ¯ Ù
٠اÙÙ
Ø´Ø§Ø±ÙØ¹"},mockProject:{title:"ÙØ¸Ø§Ù
إدارة اÙÙØ±ÙÙ
Ø§ÙØ¢ÙÙ",client:"ÙØ±ÙÙ
ÙØ§Ø¯Ù ÙØ§Ø¨Ø§",location:"ÙØ§Ø¯Ù ÙØ§Ø¨Ø§Ø ÙØ§ÙÙÙÙØ±ÙÙØ§",description:'<h2 style="font-size: 2.5rem; color: #A89483; font-weight: 800;">Ø§ÙØªØØ¯Ù</h2><p>ÙØ§Ù ÙØ±Ù
بÙ
Ø³Ø§ØØ© 5000 ÙÙØªØ§Ø± ÙÙ ÙØ§Ø¯Ù ÙØ§Ø¨Ø§ ÙÙØ§Ø¬Ù ØªØØ¯Ùات ÙØ¨Ùرة Ù٠إدارة اÙÙ
ÙØ§Ù ÙÙ
ÙØ§ÙØØ© Ø§ÙØ¢Ùات ÙØªØØ³ÙÙ Ø§ÙØ¥ÙØªØ§Ø¬ÙØ©. ÙØ§Ùت أساÙÙØ¨ Ø§ÙØ²Ø±Ø§Ø¹Ø© Ø§ÙØªÙÙÙØ¯ÙØ© تؤد٠إÙ٠استخداÙ
Ù
ÙØ±Ø· ÙÙÙ
ÙØ§Ù ÙØ¬Ùدة Ù
ØØ§ØµÙÙ ØºÙØ± Ù
ØªØ³ÙØ© ÙØµØ¹Ùبة Ù٠اÙÙØ´Ù اÙÙ
Ø¨ÙØ± Ø¹Ù Ø§ÙØ¢Ùات.</p><h2 style="font-size: 2.5rem; color: #A89483; font-weight: 800;">ØÙÙØ§</h2><p>ÙÙ
ÙØ§ Ø¨ÙØ´Ø± Ù
ÙØµØ© زراعة دÙÙÙØ© شاÙ
ÙØ© Ù
دعÙÙ
Ø© Ø¨Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·Ùاع٠تجÙ
ع بÙÙ Ø£Ø¬ÙØ²Ø© استشعار Ø¥ÙØªØ±Ùت Ø§ÙØ£Ø´Ùاء ÙØ§ÙØ±Ø¤ÙØ© Ø§ÙØØ§Ø³ÙØ¨ÙØ© ÙØ§ÙتØÙÙÙØ§Øª Ø§ÙØªÙØ¨Ø¤ÙØ©. ÙØªØ¶Ù
٠اÙÙØ¸Ø§Ù
:</p><ul><li>Ø´Ø¨ÙØ© Ù
Ù Ø£ÙØ«Ø± Ù
Ù 500 Ù
ستشعر ÙØ±Ø·Ùبة Ø§ÙØªØ±Ø¨Ø© ÙØ§ÙØ·ÙØ³ عبر اÙÙØ±Ù
</li><li>Ø±Ø¤ÙØ© ØØ§Ø³ÙØ¨ÙØ© ÙØ§Ø¦Ù
Ø© عÙÙ Ø§ÙØ·Ø§Ø¦Ø±Ø§Øª بدÙÙ Ø·ÙØ§Ø± ÙÙÙØ´Ù Ø¹Ù Ø§ÙØ¢Ùات ÙØ§ÙØ£Ù
راض</li><li>ÙÙ
اذج تعÙÙ
Ø¢ÙÙ ÙÙØªÙبؤ Ø¨Ø§ÙØ¥ÙØªØ§Ø¬ÙØ© ÙØªØØ³ÙÙ Ø§ÙØ±Ù</li><li>ÙØ¸Ø§Ù
تØÙÙ
Ø¢ÙÙ ÙÙ Ø§ÙØ±Ù Ù
ع تعدÙÙØ§Øª Ù٠اÙÙÙØª اÙÙØ¹ÙÙ</li><li>ÙÙØØ© Ù
عÙÙÙ
ات Ù
تÙÙÙØ© ÙÙ
Ø¯ÙØ±Ù اÙÙ
زارع Ù
ع Ø±Ø¤Ù ÙØ§Ø¨ÙØ© ÙÙØªÙÙÙØ°</li></ul><h2 style="font-size: 2.5rem; color: #A89483; font-weight: 800;">اÙÙØªØ§Ø¦Ø¬</h2><p>Ø®ÙØ§Ù Ø§ÙØ³ÙØ© Ø§ÙØ£ÙÙÙ Ù
Ù Ø§ÙØªÙÙÙØ°Ø ØÙ٠اÙÙØ±Ù
ØªØØ³ÙÙØ§Øª Ù
ÙØÙØ¸Ø©:</p><ul><li>Ø§ÙØ®Ùاض Ø¨ÙØ³Ø¨Ø© 40Ùª Ù٠استÙÙØ§Ù اÙÙ
ÙØ§ÙØ Ù
Ù
ا ÙÙØ± 2 Ù
ÙÙÙ٠جاÙÙ٠سÙÙÙÙØ§</li><li>Ø²ÙØ§Ø¯Ø© Ø¨ÙØ³Ø¨Ø© 25Ùª ÙÙ Ø¥ÙØªØ§Ø¬ÙØ© اÙÙ
ØØ§ØµÙÙ Ù
Ù Ø®ÙØ§Ù ظرÙ٠اÙÙÙ
٠اÙÙ
ØØ³ÙØ©</li><li>Ø§ÙØ®Ùاض Ø¨ÙØ³Ø¨Ø© 60Ùª Ù٠استخداÙ
اÙÙ
Ø¨ÙØ¯Ø§Øª Ø§ÙØØ´Ø±ÙØ© Ù
Ù Ø®ÙØ§Ù اÙÙØ´Ù اÙÙ
Ø¨ÙØ± ÙØ§ÙØ¹ÙØ§Ø¬ اÙÙ
Ø³ØªÙØ¯Ù</li><li>Ø§ÙØ®Ùاض Ø¨ÙØ³Ø¨Ø© 30Ùª ÙÙ ØªÙØ§ÙÙÙ Ø§ÙØ¹Ù
Ø§ÙØ© Ù
Ù Ø®ÙØ§Ù Ø§ÙØ£ØªÙ
تة</li><li>ØªØØ³ÙÙ Ø¬ÙØ¯Ø© اÙÙØ¨Ùذ Ù
ع خصائص Ø¹ÙØ¨ Ø£ÙØ«Ø± اتساÙÙØ§</li></ul>',metrics:{waterSaved:"اÙÙ
ÙØ§Ù اÙÙ
ÙÙØ±Ø©",yieldIncrease:"Ø²ÙØ§Ø¯Ø© Ø§ÙØ¥ÙØªØ§Ø¬ÙØ©",costReduction:"تÙÙÙÙ Ø§ÙØªÙÙÙØ©",pesticideReduction:"تÙÙÙ٠اÙÙ
Ø¨ÙØ¯Ø§Øª"}}},jY={hero:wY,filter:SY,grid:_Y,categories:NY,projects:kY,detail:AY},CY={title:"رؤ٠ÙÙ
ÙØ§Ùات",subtitle:"ÙÙØ§Ø¯Ø© ÙÙØ±ÙØ© ÙØ±Ø¤Ù ØµÙØ§Ø¹ÙØ© Ù
Ù ÙØ±ÙÙ Ø®Ø¨Ø±Ø§Ø¦ÙØ§"},EY={allTopics:"جÙ
ÙØ¹ اÙÙ
ÙØ§Ø¶Ùع"},LY={aiMachineLearning:"Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙØ§Ø¹Ù ÙØ§ÙتعÙÙ
Ø§ÙØ¢ÙÙ",iot:"Ø¥ÙØªØ±Ùت Ø§ÙØ£Ø´Ùاء",smartCities:"اÙÙ
Ø¯Ù Ø§ÙØ°ÙÙØ©",agriculture:"Ø§ÙØ²Ø±Ø§Ø¹Ø©",industry40:"Ø§ÙØµÙاعة 4.0",sustainability:"Ø§ÙØ§Ø³ØªØ¯Ø§Ù
Ø©"},PY={minRead:"دÙÙÙØ© ÙØ±Ø§Ø¡Ø©",read:"Ø§ÙØ±Ø£"},TY={title:"ÙÙ
ÙØªÙ
Ø§ÙØ¹Ø«Ùر عÙÙ Ù
ÙØ§Ùات",description:"ØØ§ÙÙ ØªØØ¯Ùد Ù
ÙØ¶Ùع Ù
ختÙÙ ÙÙØ¹Ø«Ùر عÙÙ Ù
ا ØªØ¨ØØ« عÙÙ."},RY=[{title:"Ù
Ø³ØªÙØ¨Ù Ø§ÙØ²Ø±Ø§Ø¹Ø© Ø§ÙØ¯ÙÙÙØ©: ØªÙØ§Ù
Ù Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙØ§Ø¹Ù ÙØ¥ÙØªØ±ÙØª Ø§ÙØ£Ø´Ùاء",excerpt:"Ø§Ø³ØªÙØ´Ù ÙÙÙ ÙÙØØ¯Ø« Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙØ§Ø¹Ù ÙØ£Ø¬Ùزة استشعار Ø¥ÙØªØ±Ùت Ø§ÙØ£Ø´Ùاء Ø«ÙØ±Ø© ÙÙ Ù
Ù
ارسات Ø§ÙØ²Ø±Ø§Ø¹Ø© Ø§ÙØØ¯ÙØ«Ø© ÙØªÙ
ÙÙÙ Ø§ÙØ²Ø±Ø§Ø¹Ø© اÙÙ
ستداÙ
Ø© عÙÙ ÙØ·Ø§Ù ÙØ§Ø³Ø¹.",author:"د. سارة تشÙÙ"},{title:"Ø¨ÙØ§Ø¡ Ù
د٠ذÙÙØ© Ù
ستداÙ
Ø©: Ø¯Ø±ÙØ³ Ù
٠اÙÙØ§Ø¯Ø© Ø§ÙØ¹Ø§ÙÙ
ÙÙÙ",excerpt:"Ø§ÙØªØ´Ù ÙÙ٠تØ
408³ØªÙÙØ¯ اÙÙ
د٠Ù٠جÙ
ÙØ¹ Ø£ÙØØ§Ø¡ Ø§ÙØ¹Ø§ÙÙ
Ù
Ù Ø§ÙØªÙÙÙÙÙØ¬Ùا ÙØªÙÙÙÙ Ø§ÙØ¨Ø¹Ø§Ø«Ø§Øª اÙÙØ±Ø¨ÙÙ ÙØªØØ³Ù٠اÙÙ
ÙØ§Ø±Ø¯ ÙØªØØ³ÙÙ ÙÙØ¹ÙØ© Ø§ÙØÙØ§Ø© ÙÙØ³ÙاÙ.",author:"Ù
اÙÙÙ Ø±ÙØ¯Ø±ÙØºÙØ²"},{title:"Ø§ØªØ¬Ø§ÙØ§Øª Ø§ÙØ£ØªÙ
تة Ø§ÙØµÙØ§Ø¹ÙØ© 2024: Ù
ا ÙØØªØ§Ø¬ اÙÙ
ØµÙØ¹Ù٠إÙÙ Ù
Ø¹Ø±ÙØªÙ",excerpt:"اب٠ÙÙ Ø§ÙØ·ÙÙØ¹Ø© Ù
ع رؤ٠ØÙÙ Ø£ØØ¯Ø« تÙÙÙØ§Øª Ø§ÙØ£ØªÙ
تة Ø§ÙØªÙ تØÙ٠عÙ
ÙÙØ§Øª Ø§ÙØªØµÙÙØ¹ ÙØ§ÙØ¥ÙØªØ§Ø¬.",author:"د. عائشة باتÙÙ"},{title:"ÙÙ٠تØÙÙ Ø£Ø¬ÙØ²Ø© استشعار Ø¥ÙØªØ±Ùت Ø§ÙØ£Ø´Ùاء إدارة اÙÙ
ÙØ§Ù ÙÙ Ø§ÙØ²Ø±Ø§Ø¹Ø©",excerpt:"تعر٠عÙÙ Ø£ØØ¯Ø« تÙÙÙØ§Øª Ø£Ø¬ÙØ²Ø© استشعار Ø¥ÙØªØ±Ùت Ø§ÙØ£Ø´Ùاء Ø§ÙØªÙ تساعد اÙÙ
زارعÙ٠عÙÙ ØªØØ³ÙÙ Ø§ÙØ±Ù ÙØ§ÙØÙاظ عÙÙ Ù
ÙØ§Ø±Ø¯ اÙÙ
ÙØ§Ù.",author:"جÙÙ
س Ø·ÙÙ
سÙÙ"},{title:"عائد Ø§ÙØ§Ø³ØªØ«Ù
ار ÙÙØµÙØ§ÙØ© Ø§ÙØªÙØ¨Ø¤ÙØ©: دراسات ØØ§ÙØ© ÙØ§ÙØ¹ÙØ©",excerpt:"Ø§ÙØØµ Ø£Ù
Ø«ÙØ© Ù
ÙÙ
ÙØ³Ø© ÙÙÙÙÙØ© ØªÙØ¯ÙÙ
Ø£ÙØ¸Ù
Ø© Ø§ÙØµÙØ§ÙØ© Ø§ÙØªÙØ¨Ø¤ÙØ© Ø¹ÙØ§Ø¦Ø¯ ÙØ§Ø¨ÙØ© ÙÙÙÙØ§Ø³ عÙÙ Ø§ÙØ§Ø³ØªØ«Ù
ار ÙÙØ¹Ù
ÙÙØ§Øª Ø§ÙØµÙØ§Ø¹ÙØ©.",author:"د. سارة تشÙÙ"},{title:"Ø§ÙØ´Ø¨Ùات Ø§ÙØ°ÙÙØ© ÙØ§ÙØ·Ø§ÙØ© اÙÙ
تجددة: Ø§ÙØ´Ø±Ø§ÙØ© اÙÙ
ثاÙÙØ©",excerpt:"اÙÙÙ
ÙÙ٠تÙ
ÙÙ Ø£ÙØ¸Ù
Ø© ØªÙØ²Ùع Ø§ÙØ·Ø§ÙØ© Ø§ÙØ°ÙÙØ© Ù
٠دÙ
ج Ù
صادر Ø§ÙØ·Ø§ÙØ© اÙÙ
تجددة عÙÙ ÙØ·Ø§Ù ÙØ§Ø³Ø¹.",author:"Ù
اÙÙÙ Ø±ÙØ¯Ø±ÙØºÙØ²"}],OY={backToBlog:"Ø§ÙØ¹Ùدة Ø¥Ù٠اÙÙ
دÙÙØ©",share:"Ù
Ø´Ø§Ø±ÙØ©",shareArticle:"Ù
Ø´Ø§Ø±ÙØ© اÙÙ
ÙØ§Ù",taggedIn:"Ù
ÙØ³ÙÙ
ÙÙ",views:"Ù
Ø´Ø§ÙØ¯Ø©",loading:"جار٠تØÙ
Ù٠اÙÙ
ÙØ§Ù...",notFound:{title:"اÙÙ
ÙØ§Ù ØºÙØ± Ù
ÙØ¬Ùد",description:"اÙÙ
ÙØ§Ù Ø§ÙØ°Ù ØªØ¨ØØ« عÙÙ ØºÙØ± Ù
ÙØ¬Ùد."},toast:{linkCopied:"تÙ
ÙØ³Ø® Ø§ÙØ±Ø§Ø¨Ø·!",linkCopiedDescription:"تÙ
ÙØ³Ø® رابط اÙÙ
ÙØ§Ù Ø¥ÙÙ Ø§ÙØØ§ÙØ¸Ø©."},social:{twitter:"تÙÙØªØ±",linkedin:"ÙÙÙÙØ¯ Ø¥Ù",facebook:"ÙÙØ³Ø¨ÙÙ",copy:"ÙØ³Ø®"}},IY={hero:CY,filters:EY,tags:LY,card:PY,empty:TY,mockArticles:RY,article:OY},MY={title:"ØªÙØ§ØµÙ Ù
Ø¹ÙØ§",subtitle:"Ø¯Ø¹ÙØ§ ÙÙØ§ÙØ´ ÙÙÙ ÙÙ
ÙÙ ÙÙ AI-ROS تØÙÙÙ ÙØªØ·ÙÙØ± أعÙ
اÙÙ Ø¨Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙØ§Ø¹Ù ÙØ§ÙأتÙ
تة ÙØ§ÙØ±ÙØ¨ÙØªÙØ³."},FY={title:"أرس٠ÙÙØ§ Ø±Ø³Ø§ÙØ©",labels:{name:"Ø§ÙØ§Ø³Ù
",company:"Ø§ÙØ´Ø±ÙØ©",email:"Ø§ÙØ¨Ø±Ùد Ø§ÙØ¥ÙÙØªØ±ÙÙÙ",subject:"اÙÙ
ÙØ¶Ùع",message:"Ø§ÙØ±Ø³Ø§ÙØ©"},placeholders:{name:"اسÙ
٠اÙÙØ§Ù
Ù",company:"اسÙ
Ø´Ø±ÙØªÙ",email:"[email protected]",subject:"ÙÙÙ ÙÙ
ÙÙÙØ§ Ù
Ø³Ø§Ø¹Ø¯ØªÙØ",message:"Ø£Ø®Ø¨Ø±ÙØ§ ع٠Ù
Ø´Ø±ÙØ¹Ù..."},validation:{nameRequired:"Ø§ÙØ§Ø³Ù
Ù
Ø·ÙÙØ¨",emailRequired:"Ø§ÙØ¨Ø±Ùد Ø§ÙØ¥ÙÙØªØ±ÙÙÙ Ù
Ø·ÙÙØ¨",emailInvalid:"ØµÙØºØ© Ø§ÙØ¨Ø±Ùد Ø§ÙØ¥ÙÙØªØ±ÙÙÙ ØºÙØ± صØÙØØ©",subjectRequired:"اÙÙ
ÙØ¶Ùع Ù
Ø·ÙÙØ¨",messageRequired:"Ø§ÙØ±Ø³Ø§ÙØ© Ù
Ø·ÙÙØ¨Ø©"},submit:{send:"Ø¥Ø±Ø³Ø§Ù Ø§ÙØ±Ø³Ø§ÙØ©",sending:"Ø¬Ø§Ø±Ù Ø§ÙØ¥Ø±Ø³Ø§Ù..."},success:{title:"تÙ
Ø¥Ø±Ø³Ø§Ù Ø§ÙØ±Ø³Ø§ÙØ©!",description:"Ø´ÙØ±Ø§Ù ÙØªÙاصÙÙ Ù
Ø¹ÙØ§. Ø³ÙØ±Ø¯ عÙÙÙ ÙÙ Ø£ÙØ±Ø¨ ÙÙØª.",referenceId:"Ø§ÙØ±ÙÙ
اÙÙ
رجعÙ:",sendAnother:"Ø¥Ø±Ø³Ø§Ù Ø±Ø³Ø§ÙØ© أخرÙ"}},DY={email:{title:"راسÙÙØ§ عبر Ø§ÙØ¨Ø±Ùد Ø§ÙØ¥ÙÙØªØ±ÙÙÙ",description:"ÙØ±ÙÙÙØ§ Ù
ØªÙØ§Ø¬Ø¯ ÙÙØ±Ø¯ Ø®ÙØ§Ù 24 ساعة",address:"[email protected]"},phone:{title:"Ø§ØªØµÙ Ø¨ÙØ§",description:"Ø®Ø·ÙØ· Ø§ÙØ§ØªØµØ§Ù اÙÙ
باشرة Ø¨ÙØ±ÙØ¹ÙØ§ Ø§ÙØ¥ÙÙÙÙ
ÙØ©",egypt:{label:"Ù
صر",number:"+20 10 21183564"},ksa:{label:"Ø§ÙØ³Ø¹ÙØ¯ÙØ©",number:"+966 59 836 6584"},uae:{label:"Ø§ÙØ¥Ù
ارات",number:"+971 52 322 9278"}},location:{title:"Ù
ÙØ±Ø§ØªÙا ÙÙ
ÙØ§ØªØ¨Ùا Ø§ÙØ¥ÙÙÙÙ
ÙØ©",description:"اÙÙØ§ÙØ±Ø©Ø Ù
صر | Ø§ÙØ±ÙØ§Ø¶Ø Ø§ÙØ³Ø¹ÙØ¯ÙØ© | Ø£Ø¨ÙØ¸Ø¨ÙØ Ø§ÙØ¥Ù
ارات",hubs:[{city:"اÙÙØ§Ùرة",country:"Ù
صر"},{city:"Ø§ÙØ±Ùاض",country:"اÙÙ
Ù
ÙÙØ© Ø§ÙØ¹Ø±Ø¨ÙØ© Ø§ÙØ³Ø¹ÙØ¯ÙØ©"},{city:"Ø£Ø¨ÙØ¸Ø¨Ù",country:"Ø§ÙØ¥Ù
ارات Ø§ÙØ¹Ø±Ø¨ÙØ© اÙÙ
ØªØØ¯Ø©"}],mapLink:"عرض اÙÙ
ÙØ±Ø§Øª Ø§ÙØ¥ÙÙÙÙ
ÙØ©"}},BY={hero:MY,form:FY,info:DY};zt.use(TL).use(eV).init({resources:{en:{common:hK,home:bK,about:jK,solutions:TK,projects:BK,blog:GK,contact:ZK},ar:{common:tY,home:lY,about:mY,solutions:bY,projects:jY,blog:IY,contact:BY}},fallbackLng:"en",supportedLngs:["en","ar"],defaultNS:"common",ns:["common","home","about","solutions","projects","blog","contact"],detection:{order:["localStorage","navigator"],caches:["localStorage"],lookupLocalStorage:"i18nextLng"},interpolation:{escapeValue:!1},react:{useSuspense:!0},debug:!1});const zY=()=>{var l;const e=Vg(),{t}=rn("home"),{data:n}=Bg({queryKey:["projects","home",zt.language],queryFn:()=>pi.getProjects({per_page:3})}),r=[{id:1,title:zt.language==="ar"?"ÙØ¸Ø§Ù
Ø§ÙØ²Ø±Ø§Ø¹Ø© Ø§ÙØ¯ÙÙÙØ© ÙØ¥Ø¯Ø§Ø±Ø© Ø§ÙØ±Ù Ø§ÙØ°ÙÙ":"Precision Agriculture & Smart Irrigation",slug:"smart-irrigation-system",category:zt.language==="ar"?"Ø§ÙØ²Ø±Ø§Ø¹Ø© Ø§ÙØ°ÙÙØ©":"Smart Agriculture",description:zt.language==="ar"?"ÙØ¸Ø§Ù
Ù
دعÙÙ
Ø¨Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙØ§Ø¹Ù ÙØ¥ÙØªØ±ÙØª Ø§ÙØ£Ø´Ùاء ÙÙ
Ø±Ø§ÙØ¨Ø© Ø§ÙØªØ±Ø¨Ø© ÙØªØØ³Ù٠استÙÙØ§Ù اÙÙ
ÙØ§Ù Ø¨ÙØ³Ø¨Ø© 40% ÙØ²Ùادة Ø¥ÙØªØ§Ø¬ÙØ© اÙÙ
ØØ§ØµÙÙ.":"AI & IoT
408-powered soil monitoring and automated irrigation platform that reduced water consumption by 40% while maximizing crop yields.",image:"https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?w=800&auto=format&fit=crop",tags:["Computer Vision","IoT Sensors","Automation"]},{id:2,title:zt.language==="ar"?"إدارة Ø§ÙØØ±ÙØ© ÙØ§ÙÙ
Ø¯Ù Ø§ÙØ°ÙÙØ©":"Autonomous Fleet & Urban Traffic Intelligence",slug:"urban-traffic-management",category:zt.language==="ar"?"اÙÙ
Ø¯Ù Ø§ÙØ°ÙÙØ©":"Smart Cities",description:zt.language==="ar"?"Ù
ÙØµØ© ذÙÙØ© ÙÙØªØÙÙ
Ù٠تدÙ٠اÙÙ
Ø±ÙØ± ÙØªÙجÙ٠اÙÙ
Ø±ÙØ¨Ø§Øª اÙÙ
ستÙÙØ© ÙÙ Ø§ÙØ¨Ùئات Ø§ÙØØ¶Ø±ÙØ© ÙØ§ÙØµÙØ§Ø¹ÙØ©.":"Intelligent traffic optimization and autonomous vehicle routing system that reduced congestion by 35% across metropolitan hubs.",image:"https://images.unsplash.com/photo-1518770660439-4636190af475?w=800&auto=format&fit=crop",tags:["Robotics","ROS 2","Deep Learning"]},{id:3,title:zt.language==="ar"?"Ø§ÙØµÙØ§ÙØ© Ø§ÙØªÙØ¨Ø¤ÙØ© ÙÙØ£ØªÙ
تة Ø§ÙØµÙØ§Ø¹ÙØ©":"Predictive Maintenance for Industrial Automation",slug:"predictive-maintenance-suite",category:zt.language==="ar"?"Ø§ÙØ£ØªÙ
تة Ø§ÙØµÙØ§Ø¹ÙØ©":"Industrial Automation",description:zt.language==="ar"?"Ø®ÙØ§Ø±Ø²Ù
ÙØ§Øª تعÙÙ
Ø¢ÙÙ ÙÙØªÙبؤ Ø¨Ø§ÙØ£Ø¹Ø·Ø§Ù اÙÙ
ÙÙØ§ÙÙÙÙØ© ÙØªÙÙÙ٠زÙ
Ù Ø§ÙØªÙÙÙ Ø§ÙØªØ´ØºÙÙÙ Ø¨ÙØ³Ø¨Ø© 60% ÙÙ Ø®Ø·ÙØ· Ø§ÙØ¥Ùتاج.":"Machine learning anomaly detection platform preventing mechanical downtime by 60% for enterprise manufacturing plants.",image:"https://images.unsplash.com/photo-1581092160607-ee22621dd758?w=800&auto=format&fit=crop",tags:["Edge AI","Predictive Analytics","SaaS"]}],i=c=>{if(!c)return["AI-ROS","Innovation"];let d=c;if(typeof c=="string")try{d=JSON.parse(c)}catch{return[c]}return Array.isArray(d)?d.map(h=>typeof h=="string"?h:typeof h=="object"&&h!==null?h.name||h.title||h.slug||"Innovation":String(h)):typeof d=="object"&&d!==null?[d.name||d.title||d.slug||"AI-ROS"]:[String(d)]},s=c=>c?typeof c=="string"?c:typeof c=="object"&&c!==null?zt.language==="ar"&&c.name_ar?c.name_ar:c.name||c.title||c.slug||"Technology":String(c):zt.language==="ar"?"Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙاعÙ":"Technology",o=((l=n==null?void 0:n.data)==null?void 0:l.data)||(n==null?void 0:n.data)||[],a=Array.isArray(o)&&o.length>0?o.slice(0,3).map(c=>({id:c.id||c.slug,title:zt.language==="ar"&&c.title_ar?c.title_ar:c.title,slug:c.slug,category:s(zt.language==="ar"&&c.category_ar?c.category_ar:c.category),description:zt.language==="ar"&&c.excerpt_ar?c.excerpt_ar:c.excerpt||c.description||"",image:c.featured_image||c.banner_image_url||"https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?w=800&auto=format&fit=crop",tags:i(c.tags)})):r;return u.jsxs("section",{id:"projects",className:"py-28 bg-deep-intelligence-950 relative overflow-hidden border-t border-white/5 transition-colors duration-300",children:[u.jsx(ta,{opacity:.3,className:"z-0"}),u.jsx("div",{className:"absolute top-1/3 right-0 w-[550px] h-[550px] bg-[#c9a959]/5 rounded-full blur-[140px] pointer-events-none z-0"}),u.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 relative z-10",children:[u.jsxs(Me.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.7},className:"text-center max-w-3xl mx-auto mb-20",children:[u.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 mb-5 text-xs sm:text-sm font-semibold text-[#c9a959] bg-white/5 rounded-full border border-[#c9a959]/30 backdrop-blur-md font-headings shadow-sm",children:[u.jsx(Di,{size:"xs",variant:"taupe"}),t("projects.badge")]}),u.jsx("h2",{className:"text-3xl sm:text-5xl lg:text-6xl font-bold font-headings text-white tracking-tight mb-4",children:t("projects.title")}),u.jsx("p",{className:"text-base sm:text-lg text-gray-300 font-body leading-relaxed max-w-2xl mx-auto",children:t("projects.subtitle")}),u.jsx("div",{className:"w-20 h-1 bg-gradient-to-r from-transparent via-[#c9a959] to-transparent rounded-full mx-auto mt-4"})]}
408),u.jsx(Me.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0,margin:"-60px"},variants:{hidden:{},visible:{transition:{staggerChildren:.12}}},className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:a.map(c=>u.jsx(Me.div,{variants:{hidden:{opacity:0,y:35},visible:{opacity:1,y:0,transition:{duration:.7,ease:[.16,1,.3,1]}}},whileHover:{y:-8,transition:{duration:.3}},children:u.jsxs(yb,{className:"group relative overflow-hidden rounded-3xl border-white/10 hover:border-[#c9a959]/50 transition-all duration-300 hover:shadow-[0_20px_50px_rgba(201,169,89,0.15)] bg-deep-intelligence-900/90 backdrop-blur-xl h-full flex flex-col justify-between",children:[u.jsxs("div",{children:[u.jsxs("div",{className:"relative h-64 overflow-hidden",children:[u.jsx("img",{src:c.image,alt:c.title,className:"w-full h-full object-cover group-hover:scale-108 transition-transform duration-700"}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-deep-intelligence-950 via-deep-intelligence-950/40 to-transparent"}),u.jsx("div",{className:"absolute top-4 left-4 rtl:left-auto rtl:right-4",children:u.jsxs("span",{className:"inline-flex items-center gap-1.5 px-3.5 py-1.5 text-xs font-semibold text-white bg-deep-intelligence-950/85 border border-white/20 backdrop-blur-md rounded-full shadow-lg font-headings",children:[u.jsx(Di,{size:"xs",variant:"taupe"}),c.category]})})]}),u.jsxs(xb,{className:"p-8",children:[u.jsx("h3",{className:"text-xl font-bold font-headings text-white mb-3 group-hover:text-[#c9a959] transition-colors duration-300 leading-snug",children:c.title}),u.jsx("p",{className:"text-sm text-gray-300 font-body line-clamp-3 mb-6 leading-relaxed",children:c.description}),u.jsx("div",{className:"flex flex-wrap gap-2",children:c.tags&&c.tags.map(d=>u.jsx("span",{className:"px-3 py-1 text-xs font-medium font-body text-[#c9a959] bg-white/5 rounded-lg border border-[#c9a959]/20",children:d},d))})]})]}),u.jsx("div",{className:"p-8 pt-0",children:u.jsxs(Yt,{variant:"outline",onClick:()=>e(`/projects/${c.slug}`),className:"w-full bg-white/5 hover:bg-[#c9a959] hover:text-deep-intelligence-950 border-white/10 hover:border-transparent text-gray-200 font-headings font-bold text-sm py-3 rounded-xl transition-all duration-300 flex items-center justify-center gap-2 group-hover:shadow-lg shadow-[#c9a959]/20",children:[t("projects.viewDetails"),u.jsx(fO,{className:"w-4 h-4"})]})})]})},c.title))}),u.jsx("div",{className:"mt-16 text-center",children:u.jsxs(Yt,{size:"lg",onClick:()=>e("/projects"),className:"px-8 py-4 h-auto rounded-xl font-headings font-bold text-sm bg-[#c9a959] hover:bg-[#dcc277] text-[#16263d] shadow-lg shadow-[#c9a959]/20 transition-all hover:scale-105",children:[zt.language==="ar"?"عرض جÙ
ÙØ¹ اÙÙ
Ø´Ø§Ø±ÙØ¹":"Explore All Projects",u.jsx(Fi,{className:"ml-2 w-4 h-4 rtl:mr-2 rtl:ml-0 rtl:rotate-180"})]})})]})]})},RL=({isOpen:e,onClose:t,trainingId:n,trainingTitle:r})=>{const{t:i,i18n:s}=rn(),o=s.language==="ar",[a,l]=j.useState({firstName:"",lastName:"",email:"",mobile:"",linkedin:"",cv:null,selectedTrainingId:n||null}),[c,d]=j.useState([]),[h,m]=j.useState(!1),[f,x]=j.useState(!1),[v,b]=j.useState(""),[y,S]=j.useState({});j.useEffect(()=>{e&&!n&&pi.getTrainings(s.language).then(U=>{d(U.data||[])}).catch(U=>{console.error("Failed to load trainings:",U)})},[e,n,s.language]),j.useEffect(()=>{n&&l(U=>({...U,selectedTrainingId:n}))},[n]);const _=U=>{const{name:I,value:R}=U.target;l(I==="selectedTrainingId"?{...a,selectedTrainingId:R?Number(R):null}:{...a,[I]:R})},k=U=>{var R;const I=(R=U.target.files)==null?void 0:R[0];I&&I.type==="application/pdf"?l({...a,cv:I}):I&&(alert(s.language==="ar"?"ÙØ±Ø¬Ù Ø±ÙØ¹ Ù
ÙÙ PDF ÙÙØ·":"Please upload PDF file only"),U.target.value="")},O=async U=>{var I,R,z,C;U.preventDefault(),m(!0),b(""),S({});try{let L=a.linkedin.trim();L&&!/^https?:\/\//i.test(L)&&(L=`https://${L}`);const D=new FormData;D.append("first_name",a.firstName.trim()),D.append("last_name",a.lastName.trim()),D.append("email",a.email.trim()),D.append("mobile",a.mobile.trim()),L&&D.append("linkedin",L),a.cv&&D.append("cv",a.cv);const F=a.selectedTrainingId||n;F&&D.append("training_id",String(F)),await pi.registerTraining(D),x(!0),l({firstName:"",lastName:"",email:"",mobile:"",linkedin:"",cv:null,selectedTrainingId:null})}catch(L){if(console.error("Registration error:",L),(R=(I=L.response)==null?void 0:I.data)!=null&&R.errors){const D=L.response.data.errors,F={};D.first_name&&(F.firstName=D.first_name[0]),D.last_name&&(F.lastName=D.last_name[0]),D.email&&(F.email=s.language==="ar"?"ÙØ°Ø§ Ø§ÙØ¨Ø±Ùد Ø§ÙØ¥ÙÙØªØ±ÙÙÙ Ù
سج٠باÙÙØ¹Ù":D.email[0]),D.mobile&&(F.mobile=D.mobile[0]),D.linkedin&&(F.linkedin=D.linkedin[0]),D.cv&&(F.cv=D.cv[0]),S(F),b(D.email&&String(D.email[0]).toLowerCase().includes("already")?s.language==="ar"?"ÙØ°Ø§ Ø§ÙØ¨Ø±Ùد Ø§ÙØ¥ÙÙØªØ±ÙÙÙ Ù
سج٠باÙÙØ¹Ù ÙØ¯ÙÙØ§ ÙÙ Ø§ÙØ¨Ø±ÙاÙ
ج Ø§ÙØªØ¯Ø±ÙبÙ":"This email has already been registered for training.":s.language==="ar"?"ÙØ±Ø¬Ù Ù
راجعة ÙØªØµØÙØ Ø§ÙØÙÙ٠اÙÙ
ØØ¯Ø¯Ø©":"Please check and correct the highlighted fields")}else(C=(z=L.response)==null?void 0:z.data)!=null&&C.message?b(L.response.data.message):b(L.message||(s.language==="ar"?"ØØ¯Ø« خطأ. ÙØ±Ø¬Ù اÙÙ
ØØ§ÙÙØ© Ù
رة أخرÙ.":"An error occurred. Please try again."))}finally{m(!1)}},$=()=>{x(!1),b(""),S({}),t()};return u.jsx(aW,{children:e&&u.jsxs("div",{className:"fixed inset-0 z-[100000] flex items-center justify-center p-4",children:[u.jsx(Me.div,{initial:{opacity:0}
408,animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},className:"absolute inset-0 bg-[#06054b]/80 backdrop-blur-xl",onClick:$}),u.jsxs(Me.div,{initial:{opacity:0,scale:.75,y:40,rotateX:10},animate:{opacity:1,scale:1,y:0,rotateX:0,transition:{type:"spring",stiffness:420,damping:28,mass:.85}},exit:{opacity:0,scale:.82,y:25,transition:{duration:.22,ease:"easeIn"}},className:"relative z-10 bg-[#06054b]/95 text-white rounded-3xl shadow-[0_30px_90px_rgba(0,0,0,0.8)] border border-[#c9a959]/40 max-w-2xl w-full max-h-[90vh] overflow-hidden flex flex-col backdrop-blur-2xl",onClick:U=>U.stopPropagation(),children:[u.jsx("div",{className:"absolute top-0 right-1/4 w-80 h-80 bg-[#c9a959]/15 rounded-full blur-3xl pointer-events-none z-0"}),u.jsx("div",{className:"absolute bottom-0 left-1/4 w-60 h-60 bg-[#ac8181]/10 rounded-full blur-3xl pointer-events-none z-0"}),u.jsxs("div",{className:"sticky top-0 bg-[#06054b]/90 backdrop-blur-md px-6 sm:px-8 py-5 flex justify-between items-center gap-4 rounded-t-3xl border-b border-white/10 z-10",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(Me.div,{initial:{scale:.5,rotate:-20},animate:{scale:1,rotate:0},transition:{type:"spring",stiffness:500,damping:25,delay:.1},className:"w-11 h-11 rounded-2xl bg-white/5 border border-[#c9a959]/40 flex items-center justify-center text-[#c9a959] shadow-lg shadow-[#c9a959]/10",children:u.jsx(td,{className:"w-6 h-6"})}),u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-2 text-[11px] font-bold text-[#c9a959] font-headings uppercase tracking-wider",children:[u.jsx(Di,{size:"xs",variant:"taupe"}),u.jsxs("span",{children:["AI-ROS ACADEMY / ",o?"Ø¨ÙØ§Ø¡ اÙÙØ¯Ø±Ø§Øª":"CAPACITY BUILDING"]})]}),u.jsx("h2",{className:"text-lg sm:text-xl font-bold font-headings text-white line-clamp-1",children:r||(o?"Ø§ÙØªØ³Ø¬ÙÙ ÙÙ Ø§ÙØ¨Ø±ÙاÙ
ج Ø§ÙØªØ¯Ø±ÙبÙ":"Training Program Registration")})]})]}),u.jsx(Me.button,{whileHover:{rotate:90,scale:1.15,backgroundColor:"rgba(201,169,89,0.2)"},whileTap:{scale:.9},onClick:$,"aria-label":"Close modal",className:"w-10 h-10 rounded-full bg-white/5 border border-white/15 text-gray-300 hover:text-white flex items-center justify-center transition-colors flex-shrink-0",children:u.jsx(yc,{className:"w-5 h-5"})})]}),u.jsx("div",{className:"overflow-y-auto p-6 sm:p-8 relative z-10 flex-1",children:f?u.jsxs(Me.div,{initial:{scale:.7,opacity:0},animate:{scale:1,opacity:1},transition:{type:"spring",stiffness:450,damping:25},className:"p-8 text-center space-y-6 my-auto",children:[u.jsx("div",{className:"w-20 h-20 bg-[#c9a959]/15 border-2 border-[#c9a959] rounded-full flex items-center justify-center mx-auto text-[#c9a959] shadow-xl shadow-[#c9a959]/20",children:u.jsx(cO,{className:"w-10 h-10 text-[#c9a959]"})}),u.jsxs("div",{children:[u.jsx("h3",{className:"text-2xl sm:text-3xl font-bold font-headings text-white mb-2",children:o?"Ø´ÙØ±Ø§Ù ÙØªÙدÙÙ
Ø·ÙØ¨Ù!":"Thank y
408ou for applying!"}),u.jsx("p",{className:"text-sm sm:text-base text-gray-300 font-body max-w-md mx-auto leading-relaxed",children:o?"تÙ
Ø§Ø³ØªÙØ§Ù
Ø·ÙØ¨Ù Ø¨ÙØ¬Ø§Ø. Ø³ÙØªÙاص٠Ù
Ø¹Ù Ø£ØØ¯ Ù
Ø³ØªØ´Ø§Ø±Ù Ø§ÙØªØ¯Ø±Ùب ÙÙ AI-ROS ÙØªØ£ÙÙØ¯ اÙÙ
سار ÙØ§ÙجدÙÙ Ø§ÙØ²Ù
ÙÙ.":"Your application has been received successfully. An AI-ROS training advisor will contact you shortly."})]}),u.jsx(Me.div,{whileHover:{scale:1.05},whileTap:{scale:.95},children:u.jsx(Yt,{onClick:$,className:"bg-[#c9a959] hover:bg-[#dcc277] text-[#16263d] font-headings font-bold px-8 py-3.5 rounded-xl shadow-lg shadow-[#c9a959]/25 transition-all text-sm",children:o?"تÙ
ÙÙ
تابعة Ø§ÙØªØµÙØ":"Close & Continue"})})]}):u.jsxs("form",{onSubmit:O,className:"space-y-5",children:[v&&u.jsxs(Me.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},className:"bg-red-500/10 border border-red-500/30 text-red-300 px-4 py-3 rounded-xl flex items-center gap-3 text-sm",children:[u.jsx(U8,{className:"w-5 h-5 flex-shrink-0 text-red-400"}),u.jsx("span",{children:v})]}),r?u.jsxs("div",{children:[u.jsx("label",{className:"block text-xs font-semibold uppercase tracking-wider text-[#c9a959] font-headings mb-2",children:o?"Ø§ÙØ¨Ø±ÙاÙ
ج اÙÙ
ختار":"Selected Program"}),u.jsxs("div",{className:"w-full px-4 py-3 border border-[#c9a959]/30 rounded-xl bg-[#c9a959]/10 text-white font-medium text-sm flex items-center gap-2.5 shadow-sm",children:[u.jsx(td,{className:"w-4 h-4 text-[#c9a959]"}),u.jsx("span",{className:"font-headings font-bold",children:r})]})]}):u.jsxs("div",{children:[u.jsxs("label",{className:"block text-xs font-semibold uppercase tracking-wider text-[#c9a959] font-headings mb-2",children:[o?"اختر Ø§ÙØ¨Ø±ÙاÙ
ج Ø§ÙØªØ¯Ø±ÙبÙ":"Select Program"," ",u.jsx("span",{className:"text-[#c9a959]",children:"*"})]}),u.jsxs("select",{name:"selectedTrainingId",value:a.selectedTrainingId||"",onChange:_,required:!n,className:"w-full px-4 py-3 border border-white/15 rounded-xl focus:ring-2 focus:ring-[#c9a959] focus:border-transparent bg-[#06054b] text-white font-body text-sm",children:[u.jsx("option",{value:"",className:"bg-[#06054b] text-gray-400",children:o?"اختر Ø§ÙØ¨Ø±ÙاÙ
ج Ø§ÙØªØ¯Ø±ÙبÙ":"Select a training program"}),c.map(U=>u.jsx("option",{value:U.id,className:"bg-[#06054b] text-white",children:U.title},U.id))]})]}),u.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[u.jsxs("div",{children:[u.jsxs("label",{className:"block text-xs font-semibold uppercase tracking-wider text-gray-300 font-headings mb-2",children:[o?"Ø§ÙØ§Ø³Ù
Ø§ÙØ£ÙÙ":"First Name"," ",u.jsx("span",{className:"text-[#c9a959]",children:"*"})]}),u.jsx("input",{type:"text",name:"firstName",value:a.firstName,onChange:_,required:!0,className:`w-full px-4 py-3 bg-white/5 border rounded-xl focus:ring-2 focus:ring-[#c9a959] focus:border-transparent text-white font-body text-sm placeholder:text-gray-500 transition-all ${y.firstName?"border-red-500":"border-white/15"}`,placeholder:o?"أدخ٠اسÙ
Ù Ø§ÙØ£ÙÙ":"John"}),y.firstName&&u.jsx("p",{className:"mt-1 text-xs text-red-400",children:y.firstName})]}),u.jsxs("div",{children:[u.jsxs("label",{className:"block text-xs font-semibold uppercase tracking-wider text-gray-300 font-headings mb-2",children:[o?"اسÙ
Ø§ÙØ¹Ø§Ø¦ÙØ©":"Last Name"," ",u.jsx("span",{className:"text-[#c9a959]",children:"*"})]}),u.jsx("input",{type:"text",name:"lastName",value:a.lastName,onChange:_,required:!0,className:`w-full px-4 py-3 bg-white/5 border rounded-xl focus:ring-2 focus:ring-[#c9a959] focus:border-transparent text-white font-body text-sm placeholder:text-gray-500 transition-all ${y.lastName?"border-red-500":"border-white/15"}`,placeholder:o?"أدخ٠اسÙ
Ø§ÙØ¹Ø§Ø¦ÙØ©":"Doe"}),y.lastName&&u.jsx("p",{className:"mt-1 text-xs text-red-400",children:y.lastName})]})]}),u.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[u.jsxs("div",{children:[u.jsxs("label",{className:"block text-xs font-semibold uppercase tracking-wider text-gray-300 font-headings mb-2",children:[o?"Ø§ÙØ¨Ø±Ùد Ø§ÙØ¥ÙÙØªØ±ÙÙÙ":"Email"," ",u.jsx("span",{className:"text-[#c9a959]",children:"*"})]}),u.jsx("input",{type:"email",name:"email",value:a.email,onChange:_,required:!0,className:`w-full px-4 py-3 bg-white/5 border rounded-xl focus:ring-2 focus:ring-[#c9a959] focus:border-transparent text-white font-body text-sm placeholder:text-gray-500 transition-all ${y.email?"border-red-500":"border-white/15"}`,placeholder:"[email protected]"}),y.email&&u.jsx("p",{className:"mt-1 text-xs text-red-400",children:y.email})]}),u.jsxs("div",{children:[u.jsxs("label",{className:"block text-xs font-semibold uppercase tracking-wider text-gray-300 font-headings mb-2",children:[o?"رÙÙ
اÙÙØ§ØªÙ":"Mobile Number"," ",u.jsx("span",{className:"text-[#c9a959]",children:"*"})]}),u.jsx("input",{type:"tel",name:"mobile",value:a.mobile,onChange:_,required:!0,className:`w-full px-4 py-3 bg-white/5 border rounded-xl focus:ring-2 focus:ring-[#c9a959] focus:border-transparent text-white font-body text-sm placeholder:text-gray-500 transition-all ${y.mobile?"border-red-500":"border-white/15"}`,placeholder:"+20 100 000 0000"}),y.mobile&&u.jsx("p",{className:"mt-1 text-xs text-red-400",children:y.mobile})]})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-xs font-semibold uppercase tracking-wider text-gray-300 font-headings mb-2",children:o?"رابط ÙÙÙÙØ¯ Ø¥Ù (Ø§Ø®ØªÙØ§Ø±Ù)":"LinkedIn Profile (Optional)"}),u.jsx("div",{className:"relative",children:u.jsx("input",{type:"text",name:"linkedin",value:a.linkedin,onChange:_,className:`w-full px-4 py-3 bg-white/5 border rounded-xl focus:ring-2 focus:ring-[#c9a959] focus:border-transparent text-white font-body text-sm placeholder:text-gray-500 transition-all ${y.linkedin?"border-red-500":"border-white/15"}`,placeholder:"https://linkedin.com/in/username"})}),y.linkedin&&u.jsx("p",{className:"mt-1 text-xs text-red-400",children:y.linkedin})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-xs font-semibold uppercase tracking-wider text-gray-300 font-headings mb-2",children:o?"Ø§ÙØ³Ùرة Ø§ÙØ°Ø§ØªÙØ© (Ù
ÙÙ PDF)":"Resume / CV (PDF File)"}),u.jsxs("div",{className:"relative",children:[u.jsx("input",{type:"file",id:"cv-upload",name:"cv",accept:".pdf,application/pdf",onChange:k,className:"hidden"}),u.jsxs("label",{htmlFor:"cv-upload",className:`w-full px-4 py-3.5 border border-dashed rounded-xl bg-white/5 hover:bg-white/10 cursor-pointer flex items-center justify-between text-sm transition-all ${a.cv?"border-[#c9a959] text-white":"border-white/20 text-gray-400"}`,children:[u.jsx("span",{className:"flex items-center gap-2 truncate max-w-[280px]",children:a.cv?u.jsxs(u.Fragment,{children:[u.jsx(hO,{className:"w-4 h-4 text-[#c9a959] flex-shrink-0"}),u.jsx("span",{className:"truncate",children:a.cv.name})]}):u.jsxs(u.Fragment,{children:[u.jsx(kO,{className:"w-4 h-4 text-gray-400 flex-shrink-0"}),u.jsx("span",{children:o?"اضغط ÙØ±Ùع Ø§ÙØ³Ùرة Ø§ÙØ°Ø§ØªÙØ© (PDF)":"Click to upload CV (PDF)"})]})}),u.jsx("span",{className:"text-xs font-headings font-semibold text-[#c9a959]",children:a.cv?o?"تغÙÙØ±":"Change":o?"استعراض":"Browse"})]})]}),y.cv&&u.jsx("p",{className:"mt-1 text-xs text-red-400",children:y.cv})]}),u.jsx("div",{className:"pt-3",children:u.jsx(Me.button,{whileHover:{scale:1.02},whileTap:{scale:.98},type:"submit",disabled:h,className:"w-full py-4 px-6 rounded-xl font-headings font-bold text-sm bg-[#c9a959] hover:bg-[#dcc277] text-[#16263d] shadow-xl shadow-[#c9a959]/25 transition-all flex items-center justify-center gap-2 disabled:opacity-50",children:h?u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"w-4 h-4 border-2 border-[#16263d] border-t-transparent roun
408ded-full animate-spin"}),u.jsx("span",{children:o?"Ø¬Ø§Ø±Ù Ø¥Ø±Ø³Ø§Ù Ø§ÙØ·Ùب...":"Submitting Application..."})]}):u.jsxs(u.Fragment,{children:[u.jsx(Qi,{className:"w-4 h-4"}),u.jsx("span",{children:o?"تأÙÙØ¯ ÙØ¥Ø±Ø³Ø§Ù Ø·ÙØ¨ Ø§ÙØªØ³Ø¬ÙÙ":"Submit Registration"})]})})})]})})]})]})})},UY=()=>{const{i18n:e}=rn(),[t,n]=j.useState(!1),[r,i]=j.useState(null),[s,o]=j.useState(""),{data:a}=Bg({queryKey:["trainings",e.language],queryFn:()=>pi.getTrainings(e.language)}),l=[{id:1,title:e.language==="ar"?"Ù
Ø³Ø±ÙØ¹ اÙÙ
سار اÙÙ
ÙÙÙ ÙÙØ°Ùاء Ø§ÙØ§ØµØ·ÙاعÙ":"AI Career Accelerator",description:e.language==="ar"?"Ù
سار Ù
ÙØ«Ù ÙÙÙ
ÙÙÙÙÙ ÙØ§ÙØ·ÙØ§Ø¨ ÙØªØ±Ø¬Ù
Ø© اÙÙ
Ø¹Ø±ÙØ© Ø¨Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·Ùاع٠إÙÙ ÙÙØ§Ø¡Ø© عÙ
ÙÙØ© ÙÙ
Ø´Ø§Ø±ÙØ¹ Ø¬Ø§ÙØ²Ø© ÙÙ
ÙÙ Ø§ÙØ£Ø¹Ù
اÙ.":"An intensive learning route for professionals and students ready to translate AI curiosity into portfolio-ready capability.",duration_hours:48,level:"intermediate"},{id:2,title:e.language==="ar"?"Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙØ§Ø¹Ù ÙØ§ÙتØÙÙ Ø§ÙØ±ÙÙ
Ù ÙÙØ´Ø±Ùات":"AI for Enterprise & Operations",description:e.language==="ar"?"Ø¨Ø±ÙØ§Ù
ج تطبÙÙÙ ÙÙÙÙØ§Ø¯Ø§Øª ÙÙØ±Ù Ø§ÙØ¹Ù
Ù ÙØ¨Ùاء Ø§Ø³ØªØ±Ø§ØªÙØ¬Ùات أتÙ
تة ذÙÙØ© ÙØªØ¨ÙÙ Ø£Ø¯ÙØ§Øª Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·Ùاع٠داخ٠اÙÙ
ؤسسات.":"Executive & team enablement on deploying applied AI models, automating workflows, and driving operational efficiency.",duration_hours:36,level:"advanced"},{id:3,title:e.language==="ar"?"Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·Ùاع٠ÙÙØ§Ø¨ØªÙار ÙØ§ÙاستداÙ
Ø© اÙÙ
جتÙ
Ø¹ÙØ©":"AI for Sustainable Impact & SDGs",description:e.language==="ar"?"تطÙÙØ± ØÙÙ٠ذÙÙØ© Ù
ÙØ¬ÙØ© ÙØªØØ¯Ùات Ø§ÙØªÙÙ
ÙØ© اÙÙ
ستداÙ
Ø© ÙØ§Ùزراعة ÙØ¥Ø¯Ø§Ø±Ø© اÙÙ
ÙØ§Ø±Ø¯ ÙØ¯Ø¹Ù
اÙÙ
جتÙ
عات اÙÙ
ØÙÙØ©.":"Specialized track applying artificial intelligence to climate resilience, agritech, and community sustainability.",duration_hours:40,level:"beginner"}],c=(a==null?void 0:a.data)||[],d=c.length>0?c:l,h=f=>{i(f.id),o(f.title),n(!0)},m={beginner:{en:"Foundational",ar:"ØªØ£Ø³ÙØ³Ù"},intermediate:{en:"Flagship Route",ar:"اÙÙ
سار Ø§ÙØ±Ø§Ø¦Ø¯"},advanced:{en:"Enterprise",ar:"Ù
ؤسسÙ"}};return u.jsxs("section",{id:"trainings",className:"py-28 bg-[#06054b]/60 relative overflow-hidden border-t border-white/5 transition-colors duration-300",children:[u.jsx(ta,{opacity:.3,className:"z-0"}),u.jsx("div",{className:"absolute top-1/2 left-0 w-[500px] h-[500px] bg-[#c9a959]/5 rounded-full blur-[140px] pointer-events-none z-0"}),u.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 relative z-10",children:[u.jsxs(Me.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.7},className:"text-center max-w-3xl mx-auto mb-20",children:[u.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 mb-5 text-xs sm:text-sm font-semibold text-[#c9a959] bg-white/5 rounded-full border border-[#c9a959]/30 backdrop-blur-md font-headings shadow-sm",children:[u.jsx(Di,{size:"xs",variant:"taupe"}),e.language==="ar"?"اÙÙ
سار 01 / Ø£ÙØ§Ø¯ÙÙ
ÙØ© AI-ROS":"Route 01 / Learning Systems"]}),u.jsx("h2",{className:"text-3xl sm:text-5xl lg:text-6xl font-bold font-headings text-white tracking-tight mb-4",children:e.language==="ar"?"براÙ
ج Ø§ÙØªØ¯Ø±Ùب ÙØ¨Ùاء اÙÙØ¯Ø±Ø§Øª":"Training & Capability Building"}),u.jsx("p",{className:"text-base sm:text-lg text-gray-300 font-body leading-relaxed max-w-2xl mx-auto",children:e.language==="ar"?"براÙ
ج Ù
ÙØ«ÙØ© ÙÙ
ÙØ¬ÙØ© ÙÙÙÙØ§Ø¯Ø± ÙØ§ÙÙ
ؤسسات Ø§ÙØ³Ø§Ø¹ÙØ© ÙØ¨Ùاء ÙÙØ§Ø¡Ø© ØÙÙÙÙØ© ÙÙ
ÙÙ
ÙØ³Ø© ÙÙ Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙاعÙ":"Focused programmes for people and teams who want to build meaningful, portfolio-ready AI capability"}),u.jsx("div",{className:"w-20 h-1 bg-gradient-to-r from-transparent via-[#c9a959] to-transparent rounded-full mx-auto mt-4"})]}),u.jsx(Me.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0,margin:"-60px"},variants:{hidden:{},visible:{transition:{staggerChildren:.14}}},className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:d.map((f,x)=>{var v,b;return u.jsxs(Me.div,{variants:{hidden:{opacity:0,y:40},visible:{opacity:1,y:0,transition:{duration:.7,ease:[.16,1,.3,1]}}},whileHover:{y:-10,scale:1.02,transition:{type:"spring",stiffness:400,damping:25}},className:"group bg-[#06054b]/80 backdrop-blur-xl border border-white/10 hover:border-[#c9a959]/60 rounded-3xl p-8 shadow-xl hover:shadow-[0_25px_60px_rgba(201,169,89,0.2)] transition-colors duration-300 flex flex-col justify-between relative overflow-hidden",children:[u.jsx("div",{className:"absolute top-0 right-0 w-32 h-32 bg-[#c9a959]/10 rounded-full blur-3xl op
408acity-0 group-hover:opacity-100 transition-opacity duration-500 pointer-events-none"}),u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between mb-6",children:[u.jsx(Me.div,{whileHover:{rotate:12,scale:1.1},className:"w-14 h-14 rounded-2xl bg-[#c9a959]/10 border border-[#c9a959]/30 flex items-center justify-center text-[#c9a959] group-hover:bg-[#c9a959] group-hover:text-[#16263d] transition-all duration-300 shadow-md",children:u.jsx(td,{className:"h-7 w-7"})}),u.jsxs("div",{className:"flex items-center gap-2",children:[f.duration_hours&&u.jsxs("span",{className:"flex items-center gap-1 px-3 py-1 bg-white/5 border border-white/10 rounded-full text-xs font-medium text-gray-300",children:[u.jsx(V5,{className:"h-3.5 w-3.5 text-[#c9a959]"}),f.duration_hours,"h"]}),f.level&&u.jsxs("span",{className:"flex items-center gap-1 px-3 py-1 bg-[#c9a959]/15 border border-[#c9a959]/30 rounded-full text-xs font-semibold text-[#c9a959] font-headings",children:[u.jsx(G8,{className:"h-3.5 w-3.5"}),e.language==="ar"?((v=m[f.level])==null?void 0:v.ar)||f.level:((b=m[f.level])==null?void 0:b.en)||f.level]})]})]}),u.jsx("h3",{className:"text-xl font-bold font-headings text-white mb-3 group-hover:text-[#c9a959] transition-colors duration-300 leading-snug",children:f.title}),u.jsx("p",{className:"text-sm text-gray-300 font-body leading-relaxed mb-6 line-clamp-3",children:f.description})]}),u.jsxs("div",{className:"pt-6 border-t border-white/10 flex flex-col gap-3",children:[u.jsx(Me.div,{whileHover:{scale:1.02},whileTap:{scale:.97},children:u.jsxs(Yt,{onClick:()=>h(f),className:"w-full bg-[#c9a959] hover:bg-[#dcc277] text-[#16263d] font-headings font-bold text-sm py-3 rounded-xl transition-all duration-300 shadow-md flex items-center justify-center gap-2",children:[u.jsx(Qi,{className:"w-4 h-4"}),e.language==="ar"?"Ø³Ø¬Ù Ø§ÙØ¢Ù ÙÙ Ø§ÙØªØ¯Ø±Ùب":"Register for Training",u.jsx(Fi,{className:"h-4 w-4 rtl:rotate-180"})]})}),u.jsxs(cr,{to:"/trainings",className:"text-center text-xs font-semibold text-gray-400 hover:text-[#c9a959] transition-colors pt-1 inline-flex items-center justify-center gap-1 font-headings",children:[e.language==="ar"?"Ø§Ø³ØªÙØ´Ù ÙØ§ÙØ© ØªÙØ§ØµÙ٠اÙÙ
سار":"Explore full curriculum & outcomes",u.jsx(O0,{className:"w-3.5 h-3.5"})]})]})]},f.id)})}),u.jsx("div",{className:"mt-16 text-center",children:u.jsxs(cr,{to:"/trainings",className:"inline-flex items-center gap-3 px-8 py-4 rounded-xl font-headings font-bold text-sm bg-white/5 hover:bg-white/10 text-white border border-white/20 hover:border-[#c9a959]/50 backdrop-blur-md shadow-lg transition-all hover:scale-105",children:[e.language==="ar"?"عرض جÙ
ÙØ¹ اÙÙ
سارات Ø§ÙØªØ¯Ø±ÙØ¨ÙØ© ÙØ§ÙØ´ÙØ§Ø¯Ø§Øª":"Explore All Training Programmes & Tracks",u.jsx(Fi,{className:"w-4 h-4 rtl:rotate-180 text-[#c9a959]"})]})})]}),u.jsx(RL,{isOpen:t,onClose:()=>n(!1),trainingId:r,trainingTitle:s})]})},VY="https://technesummit.com/2026",$Y=()=>{const[e,t]=j.useState(!1),n=j.useRef(null),{t:r}=rn("home");return j.useEffect(()=>{const i=new IntersectionObserver(([s])=>{s.isIntersecting&&t(!0)},{threshold:.15});return n.current&&i.observe(n.current),()=>i.disconnect()},[]),u.jsxs("section",{ref:n,className:"py-24 bg-deep-intelligence-950 border-t border-white/5 relative overflow-hidden transition-colors duration-300","aria-labelledby":"techne-summit-heading",children:[u.jsx(ta,{opacity:.35,className:"z-0"}),u.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full max-w-4xl h-80 bg-ai-taupe/8 rounded-full blur-[120px] pointer-events-none z-0"}),u.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 relative z-10",children:[u.jsxs("div",{className:`text-center mb-12 transition-all duration-1000 ${e?"opacity-100 translate-y-0":"opacity-0 translate-y-12"}`,children:[u.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 mb-5 text-xs sm:text-sm font-semibold text-ai-taupe-100 bg-white/5 rounded-full border border-ai-taupe/30 backdrop-blur-md font-headings shadow-sm",children:[u.jsx(Di,{size:"xs",variant:"taupe"}),u.jsx(oO,{className:"w-3.5 h-3.5 text-ai-taupe"}),r("techneSummit.badge")]}),u.jsx("h2",{id:"techne-summit-heading",className:"text-3xl sm:text-5xl lg:text-6xl font-bold font-headings text-white tracking-tight mb-4",children:r("techneSummit.title")}),u.jsx("p",{className:"text-base sm:text-lg text-gray-300 font-body max-w-2xl mx-auto leading-relaxed",children:r("techneSummit.subtitle")}),u.jsx("div",{className:"w-20 h-1 bg-gradient-to-r from-transparent via-ai-taupe to-transparent roun
408ded-full mx-auto mt-4"})]}),u.jsx("a",{href:VY,target:"_blank",rel:"noopener noreferrer",className:`group block max-w-5xl mx-auto rounded-3xl overflow-hidden border border-white/15 shadow-2xl hover:shadow-[0_25px_60px_rgba(168,148,131,0.2)] hover:border-ai-taupe/50 transition-all duration-700 delay-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ai-taupe focus-visible:ring-offset-2 ${e?"opacity-100 translate-y-0 scale-100":"opacity-0 translate-y-8 scale-98"}`,"aria-label":r("techneSummit.ariaLabel"),children:u.jsx("img",{src:"/banners/techne-summit-2026.jpg?v=20260719",alt:r("techneSummit.imageAlt"),width:1024,height:256,className:"w-full h-auto object-cover transition-transform duration-700 group-hover:scale-[1.02]",loading:"lazy"})})]})]})},sN="/assets/TC-CuhTmi_j.png",qY="/assets/AS-t27HDy7h.png",HY="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFwAAABcCAYAAADj79JYAAANRklEQVR4AeyaC1xUVRrAz507MwzIc4YhlVBjSfOZrK9EUvy5huWmYEqIz34/8mdqKyIvFQshabC1zBeYrI+V1BR59ViTLUK0lMIX5mqWWYQoiMgwDPO8d79zeSzCkDMxnMHl8jvfnHvP/c53zvnfc7/zQoD4P6IEeOBEcSPEA+eBEyZAuDi+h/PACRMgXBzfw3nghAkQLo7v4TxwwgQIF8f38O4InHCd/q+L43s44dfLA+eBEyZAuDi+h/PACRMgXBzfw3nghAkQLo7v4TxwwgQIF8f38EcWOOGKP6rF8T2c8JsjDpxlWTGIPYgAREi4vTYvjihwACxesyb6PQFFqUGMYhGtF9IU2yQGiE0J1jElOtDHYupZSxqUYaAQMjo4SOoEFDK6ujjVpKQkv2Ir8kSBUxSlE9FiBwoICIUCBC8AGY1ss9BwLWgjNMOwwg5EhNNBH+drLW1sGKE0xIpFIoplEaqtrXNmGMa+RwBn2TL7+vp6AI0QNBqNHTPmh6DgGXkg2cFBM48FzZyRyUnwjGNwn9WYHpQVHNRegoJBP3gmPGuUIMjD5Z0541hQ0IzMmUEvHoX4o5dDQz8IfG5qVkBAQNa0wOfyXpg+LcvLa8C5HgGcorwa3GTSCpGIRo6Ojui997fNy87OmwkyKysnd3Z2bl4IJ9l5c7j77LxZx7JzXjIlWVm5szmBfE2
4086c7i82EZO3ss5OR+HZufkhR08ePi14yfyQ3JyP174r89PBH/66fE58+fPP9MjgIMLEarVKmej0YiUShVyd3ZW2qrhtiqXqA+HRgq0Gp3R3t4e2dmJ0H11rROk9ahAFDgFg6ZUJtPAH/hxFmm1DN2jaENjiQKvrKx0vFtZ5Q3lIp3OgPrIZEpwMyJ8/3sCOkTr+Xt16ewzog3x8PBQuUrdql1dXbl6JymS9ygUye+sW7d2d3T06r1JSRsUmzYpUhIS3twVFxe1LzJyZXZk5KoDGzcmvfnbb7/JuExtfvbuTQ+LjY1OSkxMeGP9+nUbIO9GfL1mTezba9fGvRUfv3Z9XFzMW5GREYkgUUuWhL+dn5/v0sYMsVuiwHGrau/XymtqavAlOnDgwPj4+PiVGzcmh7/zzubFiYmJsbGxcTEJCRuW7Nq1e1FGxodBqak75+fm5r5hZ2cQc5na/Jw7VzJ527Zt8cnJyRsUCsUbkHdtQkICXKfEbd68ed2WLVsSU1I2rU1NTY3MyMhYB2VGXr58cUobM8RuiQIH1yDW6jQSPGg6Ojpwfhy3FE8TJRIxAh+PBLAcxGm9evVClZV3UUODFmY0SuTu3v8OTm8tYI+Syx9TNjRokEajQ3K5HInFQrCLONFq9UilUnPXBoOBBnvODQ1aIU0L9K3tkLwmChwaZoiKio384suvJn5+4vhfvv2u2P+bb04HFBYWBRQUFPoXFHwxqbT0wvjz589PTk9Pf33gQB+EXwZeJEFevGKE6MFQUVHhi1eQMpkbgh6dkJ9/Yvq5c+fHXrlyZTjYGXvpUsno0tLS/u++u2Wxp2efKnt7ST1C1EPHDdRFf0SBQw9mvL29r40bN67Iz2/iF76+Y06PHetX6OfnVzh+/PjTEyZMOjlkyNNnfH19vxo0yOdUVVVVU6/nqmlqo4sCgI54m0Cr1SIfn4FfT5w4+XPI/+2QIUMu43jEiFElw4cPL3NxcblZXl4h12o19mq11qGLeD7ULNeSh2rZQMHVVX5fIpEgcBvIyYmbrpucQtK0EPZUGM51wKJKClVlQNoFsHWVpikEsZGibDcd7bbAhUKhuq6uDun1RgTX6O7duyaBa7XaAZguhikWi7BvNul6QkJCamGji1WrNWKhUCTGeWwh3RY49GyGpmlwKQhh8O7u7pq2gLCLEgqFrtiHMwwLj1kMHGLTgaYprIRfIBeb1uraVKLAASINfrnv9evX/3zhwnf+cG/XUfPgWVvXYOhItzmdogRmtoc1NR40m+nS2MwKWqcOMP92hPXJxSGDB5VMmhhQlJOVFWKuZejND+2VDEOZ0x68L26OnrlVs0iPaMFubm51tFDIGAwM7KNo0dPDhl3qqLYA2KQv7kgfp8Ng2GGeI0eOtBw6gG0a69tCiAKHBtJikViJ59Z4UXLnXlV/SGsbLL2/Z04GGA/6gF7TC2FJtxuKbgykCzboDXoBnnlgb/vYY31vNlaj/S/48Ie6kKZcjfsEcAM9F6Z8VFvfD08QEggEbtwF/IAeBZFNAmngApFIVAmzBThiQ+jWrbLHzW01vIB2Ax2kATtU12yDolCHA6tAwDiDHudKYEbDxXBPPJAGzgiFIj00GGHoro4uHZ74AMy2Pdxkr4QpYW0zNaORMjZft4+plhkR9HbS7W6pDumC7cRiUQ1A4laParW6BUJLjZou4JBCBGBgpYkQDLZNqe0jOJRmpFI3Tk8mc+nQn9vZOdTDwgdcCwJd1uTLa2/d+imkgcPyhFXBpw+7exqkZ/Vte3FLCx0cHIwYOP4SAD5TVlYmb3n4vwtxr172t6qra5BU6oquXv3RlA6nzTC6lrbq9XoJl2iDn5ZKECqbZQyMSiQSAnAdrPgkHa4MofdzfpaiKHTv3j2Bl5dXhYk66iiKrsUvBbZfoffib8eEFiTpdLBXCzHMVvCUtGcApyhKjwSshmEaJxJiqmOfC7oULOdr8ZwdjubQjRs3vIDXAwEWUs6wDdvP3t5BrVSq2MGDh5U+oNDqxmjU3YbpqF4oFCL4ehpgjLDJfgrpHg6NdazBEDGLamWNFMemxMPDoy4gIOAQfubk5MTu3793GQBuPJuDRABGlZSU+J45cyZApaq39/Hxvunj41MGj0yG27fv6/FLhHzgftzw1/I7A6xJE1ZJJA7cu/8T13DN8Ty8uPjbCQCAwvdtBeCoZ82ane7uLr1bUXEHpaSkxKal7Vx+7dqlp4qLi8ds3751xdSpU7+sqantRYGFqKiYlW1ttL4/e/abQDi4FmDX07t373J41uH4Ac+6LBAHPnzkyK8dHe3rKFiHH//sswBoWYczlcDAwJLw8PAt/ft73YaVKbt+/fqkoUNHXvHze6YgIiLi73Z2Ir2Xl2fZwoUL3l+6dOnHYKvDUFhYuAIesnCAXevjM+BHfA1CPBAHDicxvzg5Od+HlrJni4tH3rlzhxsc4d5kUCg2bVy+fFm8m5tLNbgi1mhksEjEYrEWZhs0vJT0/fsPrDKZuVXiL7+UDXFwkDCenp5l3t6Db8AL7xk9nGVZav6CBXuM3H/NGuldu3YubcXF5GVMzJo94Drkhw8fHhYbG/P6ypV/W7t16/bpMPYK09P3JJnM1CrxpZdmbYNbCgbMhldffXU3HGb0qCM2cUhI6J5+/TzLGIalkpLe2gQwzAqhoaH/gR6/c8uWrZsAXJE5mU6dOjW0qKgwDNwPnP6rnEJDg4/B7EdlTt6u0CHuUuBT1o4ePfrX51+Yns6yiAU3wcybN3dHVzQOviaHiIiV+ysrq6UwBgjh69gnkz1+G+pgE3eC20gcOC4UTn2c0tI+2DjoqYFXoOfpc3JyF0VHR76Gn1lLYO7uuHz50k8uXrwwCtscMKAfiomJjQDYNpkO4jpgsQlwuVzO7fBdvfrDSACgqa9XCw8f/ihq69Z3J+FKdVbKy8u9duzYXnD0aOZkvBUMAy5KTU0Nk0qlNnMlzW2yCfDmwnGs0eiksDTXQa+Xr1q1Ol+hULyI0/+IgAuxu3nz5hMKxdtnN2xIHF1VVY1cXZ1RfHz8P55/fvoheLmNS9w/YtxKeWwOHLcDZizOAN4IsS4uLi5zxIihJ0+cyO2Ln5kjAFqgVCplhw5lLJ46dcqNtLTUPnK5jMuanJx8YPXq6HDuphv8dAvgTRzwiYyaopDx8uXvx86YMfvyk0/+6fuMjL1jCgoKJE067SKYhTjt2LF13qhRvqVhYQvSADz3vyxY8fjxTyYuW7ZiIb7uLtKdgGMmHv7+z2SwDKK1Gr3Lj9d/Grxo4SvF0wKnqPv2ld961v+Zf4fNDdk9d+7sPRMmjCsc0N/z52f9/ZXRUavTf77xU29Y4TP1dUrVy3NmbQd3Qk2b9lezpo64YFLS3YCjoqIzS1iERIsWzUsFCBQsbpBOx1AVt6r6wGbVlLy83PDMo5mvfH36rP+vv5b3E4kojUZjEEgkdso5s4O3q9Rap4+OZr0OebtlEHTLWkGl9u3/cAWAp/buS5+0aGHY+336yKsaGvRsfb2WgYMJA4Cuo2l0f/acOYGgJ1LVa12PZGY/uIEFdrpb6LbAm0EtXhx+ct8/D0bcqqjyALACEFqrY0Q6PeuqNyDZwYNHTjbrPgpxtwf+KEC0pI48cEtoWUGXB24FiJaY4IFbQssKujxwK0C0xAQP3BJaVtDlgVsBoiUmeOCW0LKCLg/cChAtMcEDR5bg6rwuD7zzDC2ywAO3CFfnlXngnWdokQUeuEW4Oq/MA+88Q4ss8MAtwtV5ZR545xlaZIEHbhGuzivzwDvP0CILPHCLcHVemQduHkOrafHArYbSPEM8cPM4WU2LB241lOYZ+i8AAAD//zZ6MTYAAAAGSURBVAMAOnBoBNdMPk0AAAAASUVORK5CYII=",WY="/assets/IA-DA7x265h.png",GY="/assets/SF-0_pygK41.png",KY="/assets/CF-DBLcLu1e.png",YY="/assets/AX-R8qrPEu0.png",XY="/assets/GT-BRiIQ22O.png",ZY=()=>{var o;const{t:e}=rn("home"),{data:t,isLoading:n}=Bg({queryKey:["partners"],queryFn:()=>pi.getPartners()}
408),r=[{name:"TechCorp",abbreviation:"TC",logo:sN},{name:"AgriSolutions",abbreviation:"AS",logo:qY},{name:"UrbanTech",abbreviation:"UT",logo:HY},{name:"IndustrialAI",abbreviation:"IA",logo:WY},{name:"SmartFarms",abbreviation:"SF",logo:GY},{name:"CityFuture",abbreviation:"CF",logo:KY},{name:"AutomateX",abbreviation:"AX",logo:YY},{name:"GreenTech",abbreviation:"GT",logo:XY}],i=((o=t==null?void 0:t.data)==null?void 0:o.data)||(t==null?void 0:t.data)||[],s=Array.isArray(i)&&i.length>0?i.map(a=>({name:a.name,logo:a.logo_url||sN,abbreviation:a.name.split(" ").map(l=>l[0]).join("").toUpperCase().slice(0,2)})):r;return u.jsxs("section",{id:"partners",className:"py-24 bg-deep-intelligence-950 relative overflow-hidden border-t border-white/5 transition-colors duration-300",children:[u.jsx(ta,{opacity:.3,className:"z-0"}),u.jsx("div",{className:"absolute bottom-0 left-1/3 w-[500px] h-[500px] bg-[#c9a959]/5 rounded-full blur-[140px] pointer-events-none z-0"}),u.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 relative z-10",children:[u.jsxs(Me.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.7},className:"text-center max-w-3xl mx-auto mb-16",children:[u.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 mb-5 text-xs sm:text-sm font-semibold text-[#c9a959] bg-white/5 rounded-full border border-[#c9a959]/30 backdrop-blur-md font-headings shadow-sm",children:[u.jsx(Di,{size:"xs",variant:"taupe"}),e("partners.badge")]}),u.jsx("h2",{className:"text-3xl sm:text-5xl lg:text-6xl font-bold font-headings text-white tracking-tight mb-4",children:e("partners.title")}),u.jsx("p",{className:"text-base sm:text-lg text-gray-300 font-body leading-relaxed max-w-2xl mx-auto",children:e("partners.subtitle")}),u.jsx("div",{className:"w-20 h-1 bg-gradient-to-r from-transparent via-[#c9a959] to-transparent rounded-full mx-auto mt-4"})]}),n&&u.jsx("div",{className:"flex items-center justify-center py-12",children:u.jsx(Rg,{className:"w-8 h-8 animate-spin text-[#c9a959]"})}),!n&&u.jsx(Me.div,{initial:{opacity:0}
408,whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.8},className:"relative overflow-hidden",children:u.jsx("div",{className:"flex animate-scroll py-6",style:{direction:"ltr",gap:"2rem"},children:[1,2,3,4].map(a=>u.jsx(Pe.Fragment,{children:s.map((l,c)=>u.jsx(Me.div,{whileHover:{y:-6,scale:1.05},className:"flex-shrink-0 w-48 h-26 rounded-2xl bg-white/95 border border-white/30 shadow-xl hover:shadow-[0_15px_35px_rgba(201,169,89,0.25)] hover:border-[#c9a959]/60 transition-all duration-300 flex items-center justify-center p-5 group cursor-pointer",children:u.jsx("img",{src:l.logo,alt:l.name,className:"max-w-full max-h-12 object-contain group-hover:scale-110 transition-transform duration-300"})},`${l.name}-${a}-${c}`))},`set-${a}`))})})]}),u.jsx("style",{children:` 409 @keyframes scroll { 410 0% { 411 transform: translateX(0); 412 } 413 100% { 414 transform: translateX(calc(-1 * (8 * 12rem + 7 * 2rem))); 415 } 416 } 417 418 .animate-scroll { 419 animation: scroll 24s linear infinite; 420 display: flex; 421 } 422 423 .animate-scroll:hover { 424 animation-play-state: paused; 425 } 426 427 [dir="rtl"] .animate-scroll { 428 animation: scroll 24s linear infinite; 429 direction: ltr; 430 } 431 `})]})},QY=()=>{const{t:e}=rn("home");return u.jsxs("section",{className:"py-32 bg-deep-intelligence-950 text-white relative overflow-hidden border-t border-white/5",children:[u.jsx(ta,{opacity:.5,className:"z-0"}),u.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[750px] h-[500px] bg-gradient-to-b from-[#c9a959]/15 via-[#c9a959]/5 to-transparent rounded-full blur-[150px] pointer-events-none z-0"}),u.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 relative z-10",children:u.jsxs(Me.div,{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.8,ease:[.16,1,.3,1]},className:"max-w-4xl mx-auto text-center",children:[u.jsx(Me.div,{whileHover:{scale:1.08},className:"flex justify-center mb-8",children:u.jsx("div",{className:"p-4 rounded-3xl bg-white/5 border border-[#c9a959]/30 backdrop-blur-md shadow-[0_0_40px_rgba(201,169,89,0.25)]",children:u.jsx(Di,{size:"xl",variant:"glow"})})}),u.jsxs("div",{className:"inline-flex items-center gap-2.5 px-5 py-2 mb-6 text-xs sm:text-sm font-semibold text-[#c9a959] bg-white/5 rounded-full border border-[#c9a959]/30 backdrop-blur-md font-headings shadow-sm",children:[u.jsx("span",{className:"w-2 h-2 rounded-full bg-[#c9a959] animate-ping"}),"Innovating Today , Sustaining Tomorrow"]}),u.jsx("h2",{className:"text-3xl sm:text-5xl lg:text-6xl font-bold font-headings text-white mb-6 leading-tight tracking-tight",children:e("cta.title")}),u.jsx("p",{className:"text-base sm:text-lg text-gray-300 font-body mb-10 max-w-2xl mx-auto leading-relaxed",children:e("cta.subtitle")}),u.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center items-center",children:[u.jsx(Me.div,{whileHover:{scale:1.04,y:-2},whileTap:{scale:.96},children:u.jsx(Yt,{size:"lg",asChild:!0,className:"w-full sm:w-auto bg-[#c9a959] hover:bg-[#dcc277] text-[#16263d] font-headings font-bold text-base px-8 h-13 rounded-xl shadow-lg shadow-[#c9a959]/25 border-0",children:u.jsxs(cr,{to:"/contact",children:[e("cta.primary"),u.jsx(Fi,{className:"ml-2 w-4 h-4 rtl:mr-2 rtl:ml-0 rtl:rotate-180"})]})})}),u.jsx(Me.div,{whileHover:{scale:1.04,y:-2},whileTap:{scale:.96},children:u.jsx(Yt,{size:"lg",variant:"outline",asChild:!0,className:"w-full sm:w-auto bg-white/5 hover:bg-white/10 text-white border-white/20 hover:border-[#c9a959]/40 font-headings font-semibold text-base px-8 h-13 rounded-xl backdrop-blur-md",children:u.jsx(cr,{to:"/solutions",children:e("cta.secondary")})})})]})]})})]})},JY=()=>u.jsxs("div",{className:"atlas-page min-h-screen relative overflow-x-clip bg-[#06054b] text-white font-body",children:[u.jsx(Lc,{}),u.jsx(Jo,{}),u.jsxs("main",{className:"relative z-10",children:[u.jsx(VG,{}),u.jsx(HG,{}),u.jsx(KG,{}),u.jsx(zY,{}),u.jsx(UY,{}),u.jsx($Y,{}),u.jsx(ZY,{}),u.jsx(QY,{})]}),u.jsx(ea,{})]}
431),np=({title:e,subtitle:t,ctaButtons:n,badge:r,fullHeight:i=!1,routeLabel:s})=>{const o=i?"min-h-[70vh] lg:min-h-[80vh]":"min-h-[380px] lg:min-h-[440px]";return u.jsxs("section",{className:`atlas-hero relative ${o} flex flex-col justify-center px-6 sm:px-12 lg:px-20 max-w-7xl mx-auto pt-32 pb-16 overflow-hidden font-body text-white`,children:[s&&u.jsx(Me.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{duration:.6},className:"atlas-hero__route-label",children:s}),u.jsxs(Me.div,{initial:{opacity:0,y:25},animate:{opacity:1,y:0},transition:{duration:.7,ease:[.16,1,.3,1]},className:"max-w-4xl relative z-10",children:[r&&u.jsxs(Me.p,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.5,delay:.1},className:"text-xs sm:text-sm font-bold uppercase tracking-[0.18em] text-[#c9a959] mb-4 font-headings flex items-center gap-2",children:[u.jsx("span",{className:"w-2 h-2 rounded-full bg-[#c9a959] animate-ping"}),r]}),u.jsx(Me.h1,{initial:{opacity:0,y:15},animate:{opacity:1,y:0},transition:{duration:.6,delay:.2},className:"text-4xl sm:text-6xl lg:text-7xl font-bold font-headings text-white mb-6 leading-[1.08] tracking-tight",children:e.split(" ").map((a,l)=>l>=e.split(" ").length-2?u.jsxs("em",{className:"text-[#c9a959] not-italic",children:[a," "]},l):u.jsxs("span",{children:[a," "]},l))}),t&&u.jsx(Me.p,{initial:{opacity:0,y:15},animate:{opacity:1,y:0},transition:{duration:.6,delay:.3},className:"max-w-2xl text-base sm:text-lg text-gray-300 font-body leading-relaxed mb-8",children:t}),n&&n.length>0&&u.jsx(Me.div,{initial:{opacity:0,y:15},animate:{opacity:1,y:0},transition:{duration:.6,delay:.4},className:"flex flex-wrap items-center gap-4 pt-2",children:n.map((a,l)=>u.jsx(Me.div,{whileHover:{scale:1.04,y:-2},whileTap:{scale:.96},children:u.jsx(Yt,{size:"lg",variant:a.variant==="primary"?"default":"outline",className:a.variant==="primary"?"px-7 py-3.5 h-auto rounded-xl font-headings font-bold text-sm bg-[#c9a959] hover:bg-[#dcc277] text-[#16263d] shadow-lg shadow-[#c9a959]/20 transition-all border-0":"bg-white/5 hover:bg-white/10 text-white border-white/20 hover:border-[#c9a959]/40 font-headings font-semibold text-sm px-6 py-3.5 h-auto rounded-xl backdrop-blur-md transition-all",onClick:a.onClick,asChild:!!a.href,children:a.href?u.jsxs(cr,{to:a.href,children:[a.label,a.variant==="primary"&&u.jsx(Fi,{className:"ml-2 w-4 h-4 rtl:mr-2 rtl:ml-0 rtl:rotate-180"})]}):u.jsx("span",{children:a.label})})},l))})]}),u.jsxs("div",{className:"hero-marks hidden md:flex absolute bottom-8 right-8 rtl:right-auto rtl:left-8 gap-8 text-gray-400 font-headings text-xs tracking-widest uppercase opacity-70",children:[u.jsx("span",{children:"CAIRO / 30.0444° N"}),u.jsx("span",{children:"AI-ROS / 2026"})]})]})},Yb=({children:e,className:t,background:n="default",id:r})=>{const i={default:"bg-background",muted:"bg-gradient-to-b from-background via-muted/30 to-background",gradient:"bg-gradient-to-br from-[hsl(210,40%,8%)] via-[hsl(210,40%,12%)] to-[hsl(210,40%,8%)]"};return u.jsx("section",{id:r,className:kt("py-20 md:py-24 relative overflow-hidden",i[n],t),children:u.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 relative z-10",children:e})})};function t1(e={}){const{threshold:t=.1,root:n=null,rootMargin:r="0px",freezeOnceVisible:i=!1}=e,s=j.useRef(null),[o,a]=j.useState(!1);return j.useEffect(()=>{const l=s.current;if(!l||i&&o)return;const c=new IntersectionObserver(([d])=>{const h=d.isIntersecting;a(h),i&&h&&c.unobserve(l)},{threshold:t,root:n,rootMargin:r});return c.observe(l),()=>{c.disconnect()}},[t,n,r,i,o]),[s,o]}const Gl=({children:e,className:t,hoverEffect:n="lift",animateOnScroll:r=!0,delay:i=0})=>{const[s,o]=t1({threshold:.1,freezeOnceVisible:!0}),a=j.useRef(null),l={lift:"hover:-translate-y-2 hover:shadow-2xl hover:shadow-secondary/20",glow:"hover:shadow-2xl hover:shadow-secondary/30 hover:border-secondary/50",scale:"hover:scale-105 hover:shadow-2xl hover:shadow-secondary/20"};return j.useEffect(()=>{a.current&&r&&o&&(a.current.style.transitionDelay=`${i}ms`,a.current.style.opacity="1",a.current.style.transform="translateY(0) scale(1)")},[o,i,r]),u.jsxs("div",{ref:c=>{a.current=c,r&&(s.current=c)},className:kt("group relative rounded-2xl md:rounded-3xl bg-card/80 backdrop-blur-sm border border-border transition-all duration-300",l[n],r&&"opacity-0 translate-y-8",t),style:r?{transition:"opacity 700ms cubic-bezier(0.4, 0, 0.2, 1), transform 700ms cubic-bezier(0.4, 0, 0.2, 1)"}:void 0,children:[u.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-secondary/5 via-trans
431parent to-accent/5 opacity-0 group-hover:opacity-100 transition-opacity duration-700 rounded-2xl md:rounded-3xl"}),u.jsx("div",{className:"absolute -top-20 -right-20 w-48 h-48 bg-gradient-to-br from-secondary/20 to-accent/20 rounded-full blur-3xl group-hover:scale-150 group-hover:rotate-180 transition-all duration-1000 pointer-events-none"}),u.jsx("div",{className:"absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity duration-700 rounded-2xl md:rounded-3xl overflow-hidden",children:u.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-transparent via-white/5 to-transparent -translate-x-full group-hover:translate-x-full transition-transform duration-1000"})}),u.jsx("div",{className:"relative z-10",children:e})]})};function tn(e){"@babel/helpers - typeof";return tn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tn(e)}var Is=Uint8Array,Ti=Uint16Array,Xb=Int32Array,Zb=new Is([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]),Qb=new Is([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]),oN=new Is([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),OL=function(e,t){for(var n=new Ti(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var i=new Xb(n[30]),r=1;r<30;++r)for(var s=n[r];s<n[r+1];++s)i[s]=s-n[r]<<5|r;return{b:n,r:i}},IL=OL(Zb,2),eX=IL.b,Av=IL.r;eX[28]=258,Av[258]=28;var tX=OL(Qb,0),aN=tX.r,jv=new Ti(32768);for(var yn=0;yn<32768;++yn){var wa=(yn&43690)>>1|(yn&21845)<<1;wa=(wa&52428)>>2|(wa&13107)<<2,wa=(wa&61680)>>4|(wa&3855)<<4,jv[yn]=((wa&65280)>>8|(wa&255)<<8)>>1}var Kf=function(e,t,n){for(var r=e.length,i=0,s=new Ti(t);i<r;++i)e[i]&&++s[e[i]-1];var o=new Ti(t);for(i=1;i<t;++i)o[i]=o[i-1]+s[i-1]<<1;var a;if(n){a=new Ti(1<<t);var l=15-t;for(i=0;i<r;++i)if(e[i])for(var c=i<<4|e[i],d=t-e[i],h=o[e[i]-1]++<<d,m=h|(1<<d)-1;h<=m;++h)a[jv[h]>>l]=c}else for(a=new Ti(r),i=0;i<r;++i)e[i]&&(a[i]=jv[o[e[i]-1]++]>>15-e[i]);return a},Nc=new Is(288);for(var yn=0;yn<144;++yn)Nc[yn]=8;for(var yn=144;yn<256;++yn)Nc[yn]=9;for(var yn=256;yn<280;++yn)Nc[yn]=7;for(var yn=280;yn<288;++yn)Nc[yn]=8;var lg=new Is(32);for(var yn=0;yn<32;++yn)lg[yn]=5;var nX=Kf(Nc,9,0),rX=Kf(lg,5,0),ML=function(e){return(e+7)/8|0},iX=function(e,t,n){return(n==null||n>e.length)&&(n=e.length),new Is(e.subarray(t,n))},Ro=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8},xf=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8,e[r+2]|=n>>16},Ky=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,s=n.slice();if(!i)return{t:DL,l:0};if(i==1){var o=new Is(n[0].s+1);return o[n[0].s]=1,{t:o,l:1}}n.sort(function(O,$){return O.f-$.f}),n.push({s:-1,f:25001});var a=n[0],l=n[1],c=0,d=1,h=2;for(n[0]={s:-1,f:a.f+l.f,l:a,r:l};d!=i-1;)a=n[n[c].f<n[h].f?c++:h++],l=n[c!=d&&n[c].f<n[h].f?c++:h++],n[d++]={s:-1,f:a.f+l.f,l:a,r:l};for(var m=s[0].s,r=1;r<i;++r)s[r].s>m&&(m=s[r].s);var f=new Ti(m+1),x=Cv(n[d-1],f,0);if(x>t){var r=0,v=0,b=x-t,y=1<<b;for(s.sort(function($,U){return f[U.s]-f[$.s]||$.f-U.f});r<i;++r){var S=s[r].s;if(f[S]>t)v+=y-(1<<x-f[S]),f[S]=t;else break}for(v>>=b;v>0;){var _=s[r].s;f[_]<t?v-=1<<t-f[_]++-1:++r}for(;r>=0&&v;--r){var k=s[r].s;f[k]==t&&(--f[k],++v)}x=t}return{t:new Is(f),l:x}},Cv=function(e,t,n){return e.s==-1?Math.max(Cv(e.l,t,n+1),Cv(e.r,t,n+1)):t[e.s]=n},lN=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new Ti(++t),r=0,i=e[0],s=1,o=function(l){n[r++]=l},a=1;a<=t;++a)if(e[a]==i&&a!=t)++s;else{if(!i&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(i),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(i);s=1,i=e[a]}return{c:n.subarray(0,r),n:t}},vf=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},FL=function(e,t,n){var r=n.length,i=ML(t+2);e[i]=r&255,e[i+1]=r>>8,e[i+2]=e[i]^255,e[i+3]=e[i+1]^255;for(var s=0;s<r;++s)e[i+s+4]=n[s];return(i+4+r)*8},cN=function(e,t,n,r,i,s,o,a,l,c,d){Ro(t,d++,n),++i[256];for(var h=Ky(i,15),m=h.t,f=h.l,x=Ky(s,15),v=x.t,b=x.l,y=lN(m),S=y.c,_=y.n,k=lN(v),O=k.
vendor: 10,291 bytes, lines 431-432
431c,$=k.n,U=new Ti(19),I=0;I<S.length;++I)++U[S[I]&31];for(var I=0;I<O.length;++I)++U[O[I]&31];for(var R=Ky(U,7),z=R.t,C=R.l,L=19;L>4&&!z[oN[L-1]];--L);var D=c+5<<3,F=vf(i,Nc)+vf(s,lg)+o,te=vf(i,m)+vf(s,v)+o+14+3*L+vf(U,z)+2*U[16]+3*U[17]+7*U[18];if(l>=0&&D<=F&&D<=te)return FL(t,d,e.subarray(l,l+c));var re,ce,G,Q;if(Ro(t,d,1+(te<F)),d+=2,te<F){re=Kf(m,f,0),ce=m,G=Kf(v,b,0),Q=v;var de=Kf(z,C,0);Ro(t,d,_-257),Ro(t,d+5,$-1),Ro(t,d+10,L-4),d+=14;for(var I=0;I<L;++I)Ro(t,d+3*I,z[oN[I]]);d+=3*L;for(var ue=[S,O],E=0;E<2;++E)for(var H=ue[E],I=0;I<H.length;++I){var K=H[I]&31;Ro(t,d,de[K]),d+=z[K],K>15&&(Ro(t,d,H[I]>>5&127),d+=H[I]>>12)}}else re=nX,ce=Nc,G=rX,Q=lg;for(var I=0;I<a;++I){var ee=r[I];if(ee>255){var K=ee>>18&31;xf(t,d,re[K+257]),d+=ce[K+257],K>7&&(Ro(t,d,ee>>23&31),d+=Zb[K]);var J=ee&31;xf(t,d,G[J]),d+=Q[J],J>3&&(xf(t,d,ee>>5&8191),d+=Qb[J])}else xf(t,d,re[ee]),d+=ce[ee]}return xf(t,d,re[256]),d+ce[256]},sX=new Xb([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),DL=new Is(0),oX=function(e,t,n,r,i,s){var o=s.z||e.length,a=new Is(r+o+5*(1+Math.ceil(o/7e3))+i),l=a.subarray(r,a.length-i),c=s.l,d=(s.r||0)&7;if(t){d&&(l[0]=s.r>>3);for(var h=sX[t-1],m=h>>13,f=h&8191,x=(1<<n)-1,v=s.p||new Ti(32768),b=s.h||new Ti(x+1),y=Math.ceil(n/3),S=2*y,_=function(Ue){return(e[Ue]^e[Ue+1]<<y^e[Ue+2]<<S)&x},k=new Xb(25e3),O=new Ti(288),$=new Ti(32),U=0,I=0,R=s.i||0,z=0,C=s.w||0,L=0;R+2<o;++R){var D=_(R),F=R&32767,te=b[D];if(v[F]=te,b[D]=F,C<=R){var re=o-R;if((U>7e3||z>24576)&&(re>423||!c)){d=cN(e,l,0,k,O,$,I,z,L,R-L,d),z=U=I=0,L=R;for(var ce=0;ce<286;++ce)O[ce]=0;for(var ce=0;ce<30;++ce)$[ce]=0}var G=2,Q=0,de=f,ue=F-te&32767;if(re>2&&D==_(R-ue))for(var E=Math.min(m,re)-1,H=Math.min(32767,R),K=Math.min(258,re);ue<=H&&--de&&F!=te;){if(e[R+G]==e[R+G-ue]){for(var ee=0;ee<K&&e[R+ee]==e[R+ee-ue];++ee);if(ee>G){if(G=ee,Q=ue,ee>E)break;for(var J=Math.min(ue,ee-2),ie=0,ce=0;ce<J;++ce){var ge=R-ue+ce&32767,ye=v[ge],ve=ge-ye&32767;ve>ie&&(ie=ve,te=ge)}}}F=te,te=v[F],ue+=F-te&32767}if(Q){k[z++]=268435456|Av[G]<<18|aN[Q];var je=Av[G]&31,Le=aN[Q]&31;I+=Zb[je]+Qb[Le],++O[257+je],++$[Le],C=R+G,++U}else k[z++]=e[R],++O[e[R]]}}for(R=Math.max(R,C);R<o;++R)k[z++]=e[R],++O[e[R]];d=cN(e,l,c,k,O,$,I,z,L,R-L,d),c||(s.r=d&7|l[d/8|0]<<3,d-=7,s.h=b,s.p=v,s.i=R,s.w=C)}else{for(var R=s.w||0;R<o+c;R+=65535){var Te=R+65535;Te>=o&&(l[d/8|0]=c,Te=o),d=FL(l,d+1,e.subarray(R,Te))}s.i=o}return iX(a,0,r+ML(d)+i)},BL=function(){var e=1,t=0;return{p:function(n){for(var r=e,i=t,s=n.length|0,o=0;o!=s;){for(var a=Math.min(o+2655,s);o<a;++o)i+=r+=n[o];r=(r&65535)+15*(r>>16),i=(i&65535)+15*(i>>16)}e=r,t=i},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},aX=function(e,t,n,r,i){if(!i&&(i={l:1},t.dictionary)){var s=t.dictionary.subarray(-32768),o=new Is(s.length+e.length);o.set(s),o.set(e,s.length),e=o,i.w=s.length}return oX(e,t.level==null?6:t.level,t.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,n,r,i)},zL=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},lX=function(e,t){var n=t.level,r=n==0?0:n<6?1:n==9?3:2;if(e[0]=120,e[1]=r<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var i=BL();i.p(t.dictionary),zL(e,2,i.d())}};function Ev(e,t){t||(t={});var n=BL();n.p(e);var r=aX(e,t,t.dictionary?6:2,4);return lX(r,t),zL(r,r.length-4,n.d()),r}var cX=typeof TextDecoder<"u"&&new TextDecoder,uX=0;try{cX.decode(DL,{stream:!0}),uX=1}catch{}function dX(e){if(Array.isArray(e))return e}function fX(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,o,a=[],l=!0,c=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(l=(r=s.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(d){c=!0,i=d}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return a}}function uN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function hX(e,t){if(e){if(typeof e=="string")return uN(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?uN(e,t):void 0}}function pX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 432In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dN(e,t){return dX(e)||fX(e,t)||hX(e,t)||pX()}function fN(e,t="utf8"){return new TextDecoder(t).decode(e)}const mX=new TextEncoder;function gX(e){return mX.encode(e)}const yX=1024*8,xX=(()=>{const e=new Uint8Array(4),t=new Uint32Array(e.buffer);return!((t[0]=1)&e[0])})(),Yy={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class Jb{constructor(t=yX,n={}){Zt(this,"buffer");Zt(this,"byteLength");Zt(this,"byteOffset");Zt(this,"length");Zt(this,"offset");Zt(this,"lastWrittenByte");Zt(this,"littleEndian");Zt(this,"_data");Zt(this,"_mark");Zt(this,"_marks");let r=!1;typeof t=="number"?t=new ArrayBuffer(t):(r=!0,this.lastWrittenByte=t.byteLength);const i=n.offset?n.offset>>>0:0,s=t.byteLength-i;let o=i;(ArrayBuffer.isView(t)||t instanceof Jb)&&(t.byteLength!==t.buffer.byteLength&&(o=t.byteOffset+i),t=t.buffer),r?this.lastWrittenByte=s:this.lastWrittenByte=0,this.buffer=t,this.length=s,this.byteLength=s,this.byteOffset=o,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,o,s),this._mark=0,this._marks=[]}available(t=1){return this.offset+t<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(t=1){return this.offset+=t,this}back(t=1){return this.offset-=t,this}seek(t){return this.offset=t,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const t=this._marks.pop();if(t===void 0)throw new Error("Mark stack empty");return this.seek(t),this}rewind(){return this.offset=0,this}ensureAvailable(t=1){if(!this.available(t)){const r=(this.offset+t)*2,i=new Uint8Array(r);i.set(new Uint8Array(this.buffer)),this.buffer=i.buffer,this.length=r,this.byteLength=r,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(t=1){return this.readArray(t,"uint8")}readArray(t,n){const r=Yy[n].BYTES_PER_ELEMENT*t,i=this.byteOffset+this.offset,s=this.buffer.slice(i,i+r);if(this.littleEndian===xX&&n!=="uint8"&&n!=="int8"){const a=new Uint8Array(this.buffer.slice(i,i+r));a.reverse();const l=new Yy[n](a.buffer);return this.offset+=r,l.reverse(),l}const o=new Yy[n](s);return this.offset+=r,o}readInt16(){const t=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,t}readUint16(){const t=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,t}readInt32(){const t=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,t}readUint32(){const t=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat32(){const t=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat64(){const t=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t}readBigInt64(){const t=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,t}readBigUint64(){const t=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,t}readChar(){return String.fromCharCode(this.readInt8())}readChars(t=1){let n="";for(let r=0;r<t;r++)n+=this.readChar();return n}readUtf8(t=1){return fN(this.readBytes(t))}decodeText(t=1,n="utf8"){return fN(this.readBytes(t),n)}writeBoolean(t){return this.writeUint8(t?255:0),this}writeInt8(t){return this.ensureAvailable(1),this._data.setInt8(this.offset++,t),this._updateLastWrittenByte(),this}writeUint8(t){return this.ensureAvailable(1),this._data.setUint8(this.offset++,t),this._updateLastWrittenByte(),this}writeByte(t){return this.writeUint8(t)}writeBytes(t){this.ensureAvailable(t.length);for(let n=0;n<t.length;n++)this._data.setUint8(this.offset++,t[n]);return this._updateLastWrittenByte(),this}writeInt16(t){return this.ensureAvailable(2),this._data.setInt16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(t){return this.ensureAvailable(2),this._data.setUint16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(t){return this.ensureAvailable(4),this._data.setInt32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(t){return this.ensureAvailable(4),this._data.setUint32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(t){return this.ensureAvailable(4),this._data.setFloat32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(t){return this.ensureAvailable(8),this._data.setFloat64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(t){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(t){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(t){return this.writeUint8(t.charCodeAt(0))}writeChars(t){for(let n=0;n<t.length;n++)this.writeUint8(t.charCodeAt(n));return this}writeUtf8(t){return this.writeBytes(gX(t))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}/*! pako 2.2.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const vX=4,hN=0,pN=1,bX=2;
vendor: 4,371 bytes, line 432
432function jd(e){let t=e.length;for(;--t>=0;)e[t]=0}const wX=0,UL=1,SX=2,_X=3,NX=258,ew=29,rp=256,Ah=rp+1+ew,Lu=30,tw=19,VL=2*Ah+1,Kl=15,Xy=16,kX=7,nw=256,$L=16,qL=17,HL=18,Lv=new Uint8Array([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]),n0=new Uint8Array([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]),AX=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),WL=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),jX=512,Bo=new Array((Ah+2)*2);jd(Bo);const Yf=new Array(Lu*2);jd(Yf);const jh=new Array(jX);jd(jh);const Ch=new Array(NX-_X+1);jd(Ch);const rw=new Array(ew);jd(rw);const cg=new Array(Lu);jd(cg);function Zy(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}let GL,KL,YL;function Qy(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const XL=e=>e<256?jh[e]:jh[256+(e>>>7)],Eh=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},ci=(e,t,n)=>{e.bi_valid>Xy-n?(e.bi_buf|=t<<e.bi_valid&65535,Eh(e,e.bi_buf),e.bi_buf=t>>Xy-e.bi_valid,e.bi_valid+=n-Xy):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)},io=(e,t,n)=>{ci(e,n[t*2],n[t*2+1])},ZL=(e,t)=>{let n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1},CX=e=>{e.bi_valid===16?(Eh(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},EX=(e,t)=>{const n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,s=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,a=t.stat_desc.extra_base,l=t.stat_desc.max_length;let c,d,h,m,f,x,v=0;for(m=0;m<=Kl;m++)e.bl_count[m]=0;for(n[e.heap[e.heap_max]*2+1]=0,c=e.heap_max+1;c<VL;c++)d=e.heap[c],m=n[n[d*2+1]*2+1]+1,m>l&&(m=l,v++),n[d*2+1]=m,!(d>r)&&(e.bl_count[m]++,f=0,d>=a&&(f=o[d-a]),x=n[d*2],e.opt_len+=x*(m+f),s&&(e.static_len+=x*(i[d*2+1]+f)));if(v!==0){do{for(m=l-1;e.bl_count[m]===0;)m--;e.bl_count[m]--,e.bl_count[m+1]+=2,e.bl_count[l]--,v-=2}while(v>0);for(m=l;m!==0;m--)for(d=e.bl_count[m];d!==0;)h=e.heap[--c],!(h>r)&&(n[h*2+1]!==m&&(e.opt_len+=(m-n[h*2+1])*n[h*2],n[h*2+1]=m),d--)}},QL=(e,t,n)=>{const r=new Array(Kl+1);let i=0,s,o;for(s=1;s<=Kl;s++)i=i+n[s-1]<<1,r[s]=i;for(o=0;o<=t;o++){let a=e[o*2+1];a!==0&&(e[o*2]=ZL(r[a]++,a))}},LX=()=>{let e,t,n,r,i;const s=new Array(Kl+1);for(n=0,r=0;r<ew-1;r++)for(rw[r]=n,e=0;e<1<<Lv[r];e++)Ch[n++]=r;for(Ch[n-1]=r,i=0,r=0;r<16;r++)for(cg[r]=i,e=0;e<1<<n0[r];e++)jh[i++]=r;for(i>>=7;r<Lu;r++)for(cg[r]=i<<7,e=0;e<1<<n0[r]-7;e++)jh[256+i++]=r;for(t=0;t<=Kl;t++)s[t]=0;for(e=0;e<=143;)Bo[e*2+1]=8,e++,s[8]++;for(;e<=255;)Bo[e*2+1]=9,e++,s[9]++;for(;e<=279;)Bo[e*2+1]=7,e++,s[7]++;for(;e<=287;)Bo[e*2+1]=8,e++,s[8]++;for(QL(Bo,Ah+1,s),e=0;e<Lu;e++)Yf[e*2+1]=5,Yf[e*2]=ZL(e,5);GL=new Zy(Bo,Lv,rp+1,Ah,Kl),KL=new Zy(Yf,n0,0,Lu,Kl),YL=new Zy(new Array(0),AX,0,tw,kX)},JL=e=>{let t;for(t=0;t<Ah;t++)e.dyn_ltree[t*2]=0;for(t=0;t<Lu;t++)e.dyn_dtree[t*2]=0;for(t=0;t<tw;t++)e.bl_tree[t*2]=0;e.dyn_ltree[nw*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},eP=e=>{e.bi_valid>8?Eh(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},mN=(e,t,n,r)=>{const i=t*2,s=n*2;return e[i]<e[s]||e[i]===e[s]&&r[t]<=r[n]},Jy=(e,t,n)=>{const r=e.heap[n];let i=n<<1;for(;i<=e.heap_len&&(i<e.heap_len&&mN(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!mN(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r},gN=(e,t,n)=>{let r,i,s=0,o,a;if(e.sym_next!==0)do r=e.pending_buf[e.sym_buf+s++]&255,r+=(e.pending_buf[e.sym_buf+s++]&255)<<8,i=e.pending_buf[e.sym_buf+s++],r===0?io(e,i,t):(o=Ch[i],io(e,o+rp+1,t),a=Lv[o],a!==0&&(i-=rw[o],ci(e,i,a)),r--,o=XL(r),io(e,o,n),a=n0[o],a!==0&&(r-=cg[o],ci(e,r,a)));while(s<e.sym_next);io(e,nw,t)},Pv=(e,t)=>{const n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,s=t.stat_desc.elems;let o,a,l=-1,c;for(e.heap_len=0,e.heap_max=VL,o=0;o<s;o++)n[o*2]!==0?(e.heap[++e.heap_len]=l=o,e.depth[o]=0):n[o*2+1]=0;for(;e.heap_len<2;)c=e.heap[++e.heap_len]=l<2?++l:0,n[c*2]=1,e.depth[c]=0,e.opt_len--,i&&(e.static_len-=r[c*2+1]);for(t.max_code=l,o=e.heap_len>>1;o>=1;o--)Jy(e,n,o);c=s;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Jy(e,n,1),a=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=a,n[c*2]=n[o*2]+n[a*2],e.depth[c]=(e.depth[o]>=e.depth[a]?e.depth[o]:e.depth[a])+1,n[o*2+1]=n[a*2+1]=c,e.heap[1]=c++,Jy(e,n,1);while(e.heap_len>=2);
vendor: 11,309 bytes, line 432
432e.heap[--e.heap_max]=e.heap[1],EX(e,t),QL(n,l,e.bl_count)},yN=(e,t,n)=>{let r,i=-1,s,o=t[0*2+1],a=0,l=7,c=4;for(o===0&&(l=138,c=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)s=o,o=t[(r+1)*2+1],!(++a<l&&s===o)&&(a<c?e.bl_tree[s*2]+=a:s!==0?(s!==i&&e.bl_tree[s*2]++,e.bl_tree[$L*2]++):a<=10?e.bl_tree[qL*2]++:e.bl_tree[HL*2]++,a=0,i=s,o===0?(l=138,c=3):s===o?(l=6,c=3):(l=7,c=4))},xN=(e,t,n)=>{let r,i=-1,s,o=t[0*2+1],a=0,l=7,c=4;for(o===0&&(l=138,c=3),r=0;r<=n;r++)if(s=o,o=t[(r+1)*2+1],!(++a<l&&s===o)){if(a<c)do io(e,s,e.bl_tree);while(--a!==0);else s!==0?(s!==i&&(io(e,s,e.bl_tree),a--),io(e,$L,e.bl_tree),ci(e,a-3,2)):a<=10?(io(e,qL,e.bl_tree),ci(e,a-3,3)):(io(e,HL,e.bl_tree),ci(e,a-11,7));a=0,i=s,o===0?(l=138,c=3):s===o?(l=6,c=3):(l=7,c=4)}},PX=e=>{let t;for(yN(e,e.dyn_ltree,e.l_desc.max_code),yN(e,e.dyn_dtree,e.d_desc.max_code),Pv(e,e.bl_desc),t=tw-1;t>=3&&e.bl_tree[WL[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},TX=(e,t,n,r)=>{let i;for(ci(e,t-257,5),ci(e,n-1,5),ci(e,r-4,4),i=0;i<r;i++)ci(e,e.bl_tree[WL[i]*2+1],3);xN(e,e.dyn_ltree,t-1),xN(e,e.dyn_dtree,n-1)},RX=e=>{let t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return hN;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return pN;for(n=32;n<rp;n++)if(e.dyn_ltree[n*2]!==0)return pN;return hN};let vN=!1;const OX=e=>{vN||(LX(),vN=!0),e.l_desc=new Qy(e.dyn_ltree,GL),e.d_desc=new Qy(e.dyn_dtree,KL),e.bl_desc=new Qy(e.bl_tree,YL),e.bi_buf=0,e.bi_valid=0,JL(e)},tP=(e,t,n,r)=>{ci(e,(wX<<1)+(r?1:0),3),eP(e),Eh(e,n),Eh(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},IX=e=>{ci(e,UL<<1,3),io(e,nw,Bo),CX(e)},MX=(e,t,n,r)=>{let i,s,o=0;e.level>0?(e.strm.data_type===bX&&(e.strm.data_type=RX(e)),Pv(e,e.l_desc),Pv(e,e.d_desc),o=PX(e),i=e.opt_len+3+7>>>3,s=e.static_len+3+7>>>3,s<=i&&(i=s)):i=s=n+5,n+4<=i&&t!==-1?tP(e,t,n,r):e.strategy===vX||s===i?(ci(e,(UL<<1)+(r?1:0),3),gN(e,Bo,Yf)):(ci(e,(SX<<1)+(r?1:0),3),TX(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),gN(e,e.dyn_ltree,e.dyn_dtree)),JL(e),r&&eP(e)},FX=(e,t,n)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(Ch[n]+rp+1)*2]++,e.dyn_dtree[XL(t)*2]++),e.sym_next===e.sym_end);var DX=OX,BX=tP,zX=MX,UX=FX,VX=IX,$X={_tr_init:DX,_tr_stored_block:BX,_tr_flush_block:zX,_tr_tally:UX,_tr_align:VX};const qX=(e,t,n,r)=>{let i=e&65535|0,s=e>>>16&65535|0,o=0;for(;n!==0;){o=n>2e3?2e3:n,n-=o;do i=i+t[r++]|0,s=s+i|0;while(--o);i%=65521,s%=65521}return i|s<<16|0};var Lh=qX;const HX=()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t},WX=new Uint32Array(HX()),GX=(e,t,n,r)=>{const i=WX,s=r+n;e^=-1;for(let o=r;o<s;o++)e=e>>>8^i[(e^t[o])&255];return e^-1};var hr=GX,dd={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"},ip={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:KX,_tr_stored_block:Tv,_tr_flush_block:YX,_tr_tally:el,_tr_align:XX}=$X,{Z_NO_FLUSH:tl,Z_PARTIAL_FLUSH:ZX,Z_FULL_FLUSH:QX,Z_FINISH:Ji,Z_BLOCK:bN,Z_OK:kr,Z_STREAM_END:wN,Z_STREAM_ERROR:uo,Z_DATA_ERROR:JX,Z_BUF_ERROR:e2,Z_DEFAULT_COMPRESSION:eZ,Z_FILTERED:tZ,Z_HUFFMAN_ONLY:bm,Z_RLE:nZ,Z_FIXED:rZ,Z_DEFAULT_STRATEGY:iZ,Z_UNKNOWN:sZ,Z_DEFLATED:n1}=ip,oZ=9,aZ=15,lZ=8,cZ=29,uZ=256,Rv=uZ+1+cZ,dZ=30,fZ=19,hZ=2*Rv+1,pZ=15,Wt=3,Va=258,fo=Va+Wt+1,mZ=32,fd=42,iw=57,Ov=69,Iv=73,Mv=91,Fv=103,Yl=113,Cf=666,Qr=1,Cd=2,kc=3,Ed=4,gZ=3,Xl=(e,t)=>(e.msg=dd[t],t),SN=e=>e*2-(e>4?9:0),Ea=e=>{let t=e.length;for(;--t>=0;)e[t]=0},yZ=e=>{let t,n,r,i=e.w_size;t=e.hash_size,r=t;do n=e.head[--r],e.head[r]=n>=i?n-i:0;while(--t);t=i,r=t;do n=e.prev[--r],e.prev[r]=n>=i?n-i:0;while(--t)};let sw=(e,t,n)=>(t<<e.hash_shift^n)&e.hash_mask;const Ac=(e,t)=>{let n;if(e.legacy_hash)n=e.ins_h=sw(e,e.ins_h,e.window[t+Wt-1]);else{const i=e.window,s=i[t]|i[t+1]<<8|i[t+2]<<16|i[t+3]<<24;n=e.ins_h=Math.imul(s,66521)+66521>>>16&e.hash_mask}const r=e.prev[t&e.w_mask]=e.head[n];return e.head[n]=t,r},Ci=e=>{const t=e.state;let n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))},Ri=(e,t)=>{YX(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Ci(e.strm)},Kt=(e,t)=>{e.pending_buf[e.pending++]=t},bf=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},Dv=(e,t,n,r)=>{let i=e.avail_in;return i>r&&(i=r),i===0?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),e.state.wrap===1?e.adler=Lh(e.adler,t,i,n):e.state.wrap===2&&(e.adler=hr(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},nP=(e,t)=>{let n=e.max_chain_length,r=e.strstart,i,s,o=e.prev_length,a=e.nice_match;const l=e.strstart>e.w_size-fo?e.strstart-(e.w_size-fo):0,c=e.window,d=e.w_mask,h=e.prev,m=e.strstart+Va;let f=c[r+o-1],x=c[r+o];e.prev_length>=e.good_match&&(n>>=2),a>e.lookahead&&(a=e.lookahead);do if(i=t,!(c[i+o]!==x||c[i+o-1]!==f||c[i]!==c[r]||c[++i]!==c[r+1])){r+=2,i++;do;while(c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&r<m);if(s=Va-(m-r),r=m-Va,s>o){if(e.match_start=t,o=s,s>=a)break;f=c[r+o-1],x=c[r+o]}}while((t=h[t&d])>l&&--n!==0);return o<=e.lookahead?o:e.lookahead},hd=e=>{const t=e.w_size;let n,r,i;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-fo)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),yZ(e),r+=t),e.strm.avail_in===0)break;if(n=Dv(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.legacy_hash){if(e.lookahead+e.insert>=Wt)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=sw(e,e.ins_h,e.window[i+1]);e.insert&&(Ac(e,i),i++,e.insert--,!(e.lookahead+e.insert<Wt)););}else if(e.lookahead+e.insert>Wt)for(i=e.strstart-e.insert;e.insert&&(Ac(e,i),i++,e.insert--,!(e.lookahead+e.insert<=Wt)););}while(e.lookahead<fo&&e.strm.avail_in!==0)},rP=(e,t)=>{let n=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,i,s,o=0,a=e.strm.avail_in;do{if(r=65535,s=e.bi_valid+42>>3,e.strm.avail_out<s||(s=e.strm.avail_out-s,i=e.strstart-e.block_start,r>i+e.strm.avail_in&&(r=i+e.strm.avail_in),r>s&&(r=s),r<n&&(r===0&&t!==Ji||t===tl||r!==i+e.strm.avail_in)))break;o=t===Ji&&r===i+e.strm.avail_in?1:0,Tv(e,0,0,o),e.pending_buf[e.pending-4]=r,e.pending_buf[e.pending-3]=r>>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,Ci(e.strm),i&&(i>r&&(i=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+i),e.strm.next_out),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i,e.block_start+=i,r-=i),r&&(Dv(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(o===0);return a-=e.strm.avail_in,a&&(a>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=a&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-a,e.strm.next_in),e.strstart),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),o?Ed:t!==tl&&t!==Ji&&e.strm.avail_in===0&&e.strstart===e.block_start?Cd:(s=e.window_size-e.strstart,e.strm.avail_in>s&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,s+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),s>e.strm.avail_in&&(s=e.strm.avail_in),s&&(Dv(e.strm,e.window,e.strstart,s),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.high_water<e.strstart&&(e.high_water=e.strstart),s=e.bi_valid+42>>3,s=e.pending_buf_size-s>65535?65535:e.pending_buf_size-s,n=s>e.w_size?e.w_size:s,i=e.strstart-e.block_start,(i>=n||(i||t===Ji)&&t!==tl&&e.strm.avail_in===0&&i<=s)&&(r=i>s?s:i,o=t===Ji&&e.strm.avail_in===0&&r===i?1:0,Tv(e,e.block_start,r,o),e.block_start+=r,Ci(e.strm)),o?kc:Qr)},t2=(e,t)=>{let n,r;for(;;){if(e.lookahead<fo){if(hd(e),e.lookahead<fo&&t===tl)return Qr;if(e.lookahead===0)break}if(n=0,e.lookahead>=Wt&&(n=Ac(e,e.strstart)),n!==0&&e.strstart-n<=e.w_size-fo&&(e.match_length=nP(e,n)),e.match_length>=Wt)if(r=el(e,e.strstart-e.match_start,e.match_length-Wt),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=Wt){e.match_length--;do e.strstart++,n=Ac(e,e.strstart);while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.legacy_hash&&(e.ins_h=e.window[e.strstart],e.ins_h=sw(e,e.ins_h,e.window[e.strstart+1]));else r=el(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Ri(e,!1),e.strm.avail_out===0))return Qr}return e.insert=e.strstart<Wt-1?e.strstart:Wt-1,t===Ji?(Ri(e,!0),e.strm.avail_out===0?kc:Ed):e.sym_next&&(Ri(e,!1),e.strm.avail_out===0)?Qr:Cd},Zc=(e,t)=>{let n,r,i;for(;;){if(e.lookahead<fo){if(hd(e),e.lookahead<fo&&t===tl)return Qr;if(e.lookahead===0)break}if(n=0,e.lookahead>=Wt&&(n=Ac(e,e.strstart)),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=Wt-1,n!==0&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-fo&&(e.match_length=nP(e,n),e.match_length<=5&&(e.strategy===tZ||e.match_length===Wt&&e.strstart-e.match_start>4096)&&(e.match_length=Wt-1)),e.prev_length>=Wt&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-Wt,r=el(e,e.strstart-1-e.prev_match,e.prev_length-Wt),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(n=Ac(e,e.strstart));while(--e.prev_length!==0);if(e.match_available=0,e.match_length=Wt-1,e.strstart++,r&&(Ri(e,!1),e.strm.avail_out===0))return Qr}else if(e.match_available){if(r=el(e,0,e.window[e.strstart-1]),r&&Ri(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Qr}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=el(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<Wt-1?e.strstart:Wt-1,t===Ji?(Ri(e,!0),e.strm.avail_out===0?kc:Ed):e.sym_next&&(Ri(e,!1),e.strm.avail_out===0)?Qr:Cd},xZ=(e,t)=>{let n,r,i,s;const o=e.window;for(;;){if(e.lookahead<=Va){if(hd(e),e.lookahead<=Va&&t===tl)return Qr;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=Wt&&e.strstart>0&&(i=e.strstart-1,r=o[i],r===o[++i]&&r===o[++i]&&r===o[++i])){s=e.strstart+Va;do;while(r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&i<s);e.match_length=Va-(s-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>
vendor: 12,105 bytes, line 432
432=Wt?(n=el(e,1,e.match_length-Wt),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=el(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Ri(e,!1),e.strm.avail_out===0))return Qr}return e.insert=0,t===Ji?(Ri(e,!0),e.strm.avail_out===0?kc:Ed):e.sym_next&&(Ri(e,!1),e.strm.avail_out===0)?Qr:Cd},vZ=(e,t)=>{let n;for(;;){if(e.lookahead===0&&(hd(e),e.lookahead===0)){if(t===tl)return Qr;break}if(e.match_length=0,n=el(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Ri(e,!1),e.strm.avail_out===0))return Qr}return e.insert=0,t===Ji?(Ri(e,!0),e.strm.avail_out===0?kc:Ed):e.sym_next&&(Ri(e,!1),e.strm.avail_out===0)?Qr:Cd};function Ks(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}const Ef=[new Ks(0,0,0,0,rP),new Ks(4,4,8,4,t2),new Ks(4,5,16,8,t2),new Ks(4,6,32,32,t2),new Ks(4,4,16,16,Zc),new Ks(8,16,32,32,Zc),new Ks(8,16,128,128,Zc),new Ks(8,32,128,256,Zc),new Ks(32,128,258,1024,Zc),new Ks(32,258,258,4096,Zc)],bZ=e=>{e.window_size=2*e.w_size,Ea(e.head),e.max_lazy_match=Ef[e.level].max_lazy,e.good_match=Ef[e.level].good_length,e.nice_match=Ef[e.level].nice_length,e.max_chain_length=Ef[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=Wt-1,e.match_available=0,e.ins_h=0};function wZ(){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=n1,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.legacy_hash=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 Uint16Array(hZ*2),this.dyn_dtree=new Uint16Array((2*dZ+1)*2),this.bl_tree=new Uint16Array((2*fZ+1)*2),Ea(this.dyn_ltree),Ea(this.dyn_dtree),Ea(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(pZ+1),this.heap=new Uint16Array(2*Rv+1),Ea(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Rv+1),Ea(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const sp=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==fd&&t.status!==iw&&t.status!==Ov&&t.status!==Iv&&t.status!==Mv&&t.status!==Fv&&t.status!==Yl&&t.status!==Cf?1:0},iP=e=>{if(sp(e))return Xl(e,uo);e.total_in=e.total_out=0,e.data_type=sZ;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?iw:t.wrap?fd:Yl,e.adler=t.wrap===2?0:1,t.last_flush=-2,KX(t),kr},sP=e=>{const t=iP(e);return t===kr&&bZ(e.state),t},SZ=(e,t)=>sp(e)||e.state.wrap!==2?uo:(e.state.gzhead=t,kr),oP=(e,t,n,r,i,s,o)=>{if(!e)return uo;let a=1;if(t===eZ&&(t=6),r<0?(a=0,r=-r):r>15&&(a=2,r-=16),i<1||i>oZ||n!==n1||r<8||r>15||t<0||t>9||s<0||s>rZ||r===8&&a!==1)return Xl(e,uo);r===8&&(r=9);const l=new wZ;return e.state=l,l.strm=e,l.status=fd,l.wrap=a,l.gzhead=null,l.w_bits=r,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.legacy_hash=o?1:0,l.hash_bits=i+7,!l.legacy_hash&&l.hash_bits<15&&(l.hash_bits=15),l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+Wt-1)/Wt),l.window=new Uint8Array(l.w_size*2),l.head=new Uint16Array(l.hash_size),l.prev=new Uint16Array(l.w_size),l.lit_bufsize=1<<i+6,l.pending_buf_size=l.lit_bufsize*4,l.pending_buf=new Uint8Array(l.pending_buf_size),l.sym_buf=l.lit_bufsize,l.sym_end=(l.lit_bufsize-1)*3,l.level=t,l.strategy=s,l.method=n,sP(e)},_Z=(e,t)=>oP(e,t,n1,aZ,lZ,iZ),NZ=(e,t)=>{if(sp(e)||t>bN||t<0)return e?Xl(e,uo):uo;const n=e.state;if(!e.output||e.avail_in!==0&&!e.input||n.status===Cf&&t!==Ji)return Xl(e,e.avail_out===0?e2:uo);const r=n.last_flush;if(n.last_flush=t,n.pending!==0){if(Ci(e),e.avail_out===0)return n.last_flush=-1,kr}else if(e.avail_in===0&&SN(t)<=SN(r)&&t!==Ji)return Xl(e,e2);if(n.status===Cf&&e.avail_in!==0)return Xl(e,e2);if(n.status===fd&&n.wrap===0&&(n.status=Yl),n.status===fd){let i=n1+(n.w_bits-8<<4)<<8,s=-1;if(n.strategy>=bm||n.level<2?s=0:n.level<6?s=1:n.level===6?s=2:s=3,i|=s<<6,n.strstart!==0&&(i|=mZ),i+=31-i%31,bf(n,i),n.strstart!==0&&(bf(n,e.adler>>>16),bf(n,e.adler&65535)),e.adler=1,n.status=Yl,Ci(e),n.pending!==0)return n.last_flush=-1,kr}if(n.status===iw){if(e.adler=0,Kt(n,31),Kt(n,139),Kt(n,8),n.gzhead)Kt(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),Kt(n,n.gzhead.time&255),Kt(n,n.gzhead.time>>8&255),Kt(n,n.gzhead.time>>16&255),Kt(n,n.gzhead.time>>24&255),Kt(n,n.level===9?2:n.strategy>=bm||n.level<2?4:0),Kt(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(Kt(n,n.gzhead.extra.length&255),Kt(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=hr(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=Ov;else if(Kt(n,0),Kt(n,0),Kt(n,0),Kt(n,0),Kt(n,0),Kt(n,n.level===9?2:n.strategy>=bm||n.level<2?4:0),Kt(n,gZ),n.status=Yl,Ci(e),n.pending!==0)return n.last_flush=-1,kr}if(n.status===Ov){if(n.gzhead.extra){let i=n.pending,s=(n.gzhead.extra.length&65535)-n.gzindex;for(;n.pending+s>n.pending_buf_size;){let a=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+a),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>i&&(e.adler=hr(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex+=a,Ci(e),n.pending!==0)return n.last_flush=-1,kr;i=0,s-=a}let o=new Uint8Array(n.gzhead.extra);n.pending_buf.set(o.subarray(n.gzindex,n.gzindex+s),n.pending),n.pending+=s,n.gzhead.hcrc&&n.pending>i&&(e.adler=hr(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=Iv}if(n.status===Iv){if(n.gzhead.name){let i=n.pending,s;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(e.adler=hr(e.adler,n.pending_buf,n.pending-i,i)),Ci(e),n.pending!==0)return n.last_flush=-1,kr;i=0}n.gzindex<n.gzhead.name.length?s=n.gzhead.name.charCodeAt(n.gzindex++)&255:s=0,Kt(n,s)}while(s!==0);n.gzhead.hcrc&&n.pending>i&&(e.adler=hr(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=Mv}if(n.status===Mv){if(n.gzhead.comment){let i=n.pending,s;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(e.adler=hr(e.adler,n.pending_buf,n.pending-i,i)),Ci(e),n.pending!==0)return n.last_flush=-1,kr;i=0}n.gzindex<n.gzhead.comment.length?s=n.gzhead.comment.charCodeAt(n.gzindex++)&255:s=0,Kt(n,s)}while(s!==0);n.gzhead.hcrc&&n.pending>i&&(e.adler=hr(e.adler,n.pending_buf,n.pending-i,i))}n.status=Fv}if(n.status===Fv){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(Ci(e),n.pending!==0))return n.last_flush=-1,kr;Kt(n,e.adler&255),Kt(n,e.adler>>8&255),e.adler=0}if(n.status=Yl,Ci(e),n.pending!==0)return n.last_flush=-1,kr}if(e.avail_in!==0||n.lookahead!==0||t!==tl&&n.status!==Cf){let i=n.level===0?rP(n,t):n.strategy===bm?vZ(n,t):n.strategy===nZ?xZ(n,t):Ef[n.level].func(n,t);if((i===kc||i===Ed)&&(n.status=Cf),i===Qr||i===kc)return e.avail_out===0&&(n.last_flush=-1),kr;if(i===Cd&&(t===ZX?XX(n):t!==bN&&(Tv(n,0,0,!1),t===QX&&(Ea(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),Ci(e),e.avail_out===0))return n.last_flush=-1,kr}return t!==Ji?kr:n.wrap<=0?wN:(n.wrap===2?(Kt(n,e.adler&255),Kt(n,e.adler>>8&255),Kt(n,e.adler>>16&255),Kt(n,e.adler>>24&255),Kt(n,e.total_in&255),Kt(n,e.total_in>>8&255),Kt(n,e.total_in>>16&255),Kt(n,e.total_in>>24&255)):(bf(n,e.adler>>>16),bf(n,e.adler&65535)),Ci(e),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?kr:wN)},kZ=e=>{if(sp(e))return uo;const t=e.state.status;return e.state=null,t===Yl?Xl(e,JX):kr},AZ=(e,t)=>{let n=t.length;if(sp(e))return uo;const r=e.state,i=r.wrap;if(i===2||i===1&&r.status!==fd||r.lookahead)return uo;if(i===1&&(e.adler=Lh(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){i===0&&(Ea(r.head),r.strstart=0,r.block_start=0,r.insert=0);let l=new Uint8Array(r.w_size);l.set(t.subarray(n-r.w_size,n),0),t=l,n=r.w_size}const s=e.avail_in,o=e.next_in,a=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,hd(r);r.lookahead>=Wt;){let l=r.strstart,c=r.lookahead-(Wt-1);do Ac(r,l),l++;while(--c);r.strstart=l,r.lookahead=Wt-1,hd(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=Wt-1,r.match_available=0,e.next_in=o,e.input=a,e.avail_in=s,r.wrap=i,kr};var jZ=_Z,CZ=oP,EZ=sP,LZ=iP,PZ=SZ,TZ=NZ,RZ=kZ,OZ=AZ,IZ="pako deflate (from Nodeca project)",Xf={deflateInit:jZ,deflateInit2:CZ,deflateReset:EZ,deflateResetKeep:LZ,deflateSetHeader:PZ,deflate:TZ,deflateEnd:RZ,deflateSetDictionary:OZ,deflateInfo:IZ};const MZ=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var FZ=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const n=t.shift();if(n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(const r in n)MZ(n,r)&&(e[r]=n[r])}}return e},DZ=e=>{let t=0;for(let r=0,i=e.length;r<i;r++)t+=e[r].length;const n=new Uint8Array(t);for(let r=0,i=0,s=e.length;r<s;r++){let o=e[r];n.set(o,i),i+=o.length}return n},r1={assign:FZ,flattenChunks:DZ};let aP=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{aP=!1}const Ph=new Uint8Array(256);for(let e=0;e<256;e++)Ph[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Ph[254]=Ph[255]=1;var BZ=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,i,s,o=e.length,a=0;for(i=0;i<o;i++)n=e.charCodeAt(i),(n&64512)===55296&&i+1<o&&(r=e.charCodeAt(i+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),a+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(a),s=0,i=0;s<a;i++)n=e.charCodeAt(i),(n&64512)===55296&&i+1<o&&(r=e.charCodeAt(i+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),n<128?t[s++]=n:n<2048?(t[s++]=192|n>>>6,t[s++]=128|n&63):n<65536?(t[s++]=224|n>>>12,t[s++]=128|n>>>6&63,t[s++]=128|n&63):(t[s++]=240|n>>>18,t[s++]=128|n>>>12&63,t[s++]=128|n>>>6&63,t[s++]=128|n&63);return t};const zZ=(e,t)=>{if(t<65534&&e.subarray&&aP)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n};var UZ=(e,t)=>{const n=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,i;const s=new Array(n*2);for(i=0,r=0;r<n;){let o=e[r++];if(o<128){s[i++]=o;continue}let a=Ph[o];if(a>4){s[i++]=65533,r+=a-1;continue}for(o&=a===2?31:a===3?15:7;a>1&&r<n;)o=o<<6|e[r++]&63,a--;if(a>1){s[i++]=65533;continue}o<65536?s[i++]=o:(o-=65536,s[i++]=55296|o>>10&1023,s[i++]=56320|o&1023)}return zZ(s,i)},VZ=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(e[n]&192)===128;)n--;return n<0||n===0?t:n+Ph[e[n]]>t?n:t},Th={string2buf:BZ,buf2string:UZ,utf8border:VZ};function $Z(){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}var lP=$Z;const cP=Object.prototype.toString,{Z_NO_FLUSH:qZ,Z_SYNC_FLUSH:HZ,Z_FULL_FLUSH:WZ,Z_FINISH:GZ,Z_OK:ug,Z_STREAM_END:KZ,Z_DEFAULT_COMPRESSION:YZ,Z_DEFAULT_STRATEGY:XZ,Z_DEFLATED:ZZ}=ip,QZ={level:YZ,method:ZZ,chunkSize:16384,windowBits:15,memLevel:8,strategy:XZ,legacyHash:!0};function ow(e){this.options=r1.assign({},QZ,e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new lP,this.strm.avail_out=0;let n=Xf.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy,t.legacyHash);if(n!==ug)throw new Error(dd[n]);if(t.header&&Xf.deflateSetHeader(this.strm,t.header),t.dictionary){let r;if(typeof t.dictionary=="string"?r=Th.string2buf(t.dictionary):cP.call(t.dictionary)==="[object ArrayBuffer]"?r=new
vendor: 1,672 bytes, line 432
432Uint8Array(t.dictionary):r=t.dictionary,n=Xf.deflateSetDictionary(this.strm,r),n!==ug)throw new Error(dd[n]);this._dict_set=!0}}ow.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize;let i,s;if(this.ended)return!1;for(t===~~t?s=t:s=t===!0?GZ:qZ,typeof e=="string"?n.input=Th.string2buf(e):cP.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){if(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(s===HZ||s===WZ)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(i=Xf.deflate(n,s),i===KZ)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),i=Xf.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===ug;if(n.avail_out===0){this.onData(n.output);continue}if(s>0&&n.next_out>0){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(n.avail_in===0)break}return!0};ow.prototype.onData=function(e){this.chunks.push(e)};ow.prototype.onEnd=function(e){e===ug&&(this.result=r1.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};const wm=16209,JZ=16191;var eQ=function(t,n){let r,i,s,o,a,l,c,d,h,m,f,x,v,b,y,S,_,k,O,$,U,I,R,z;const C=t.state;r=t.next_in,R=t.input,i=r+(t.avail_in-5),s=t.next_out,z=t.output,o=s-(n-t.avail_out),a=s+(t.avail_out-257),l=C.dmax,c=C.wsize,d=C.whave,h=C.wnext,m=C.window,f=C.hold,x=C.bits,v=C.lencode,b=C.distcode,y=(1<<C.lenbits)-1,S=(1<<C.distbits)-1;e:do{x<15&&(f+=R[r++]<<x,x+=8,f+=R[r++]<<x,x+=8),_=v[f&y];t:for(;;){if(k=_>>>24,f>>>=k,x-=k,k=_>>>16&255,k===0)z[s++]=_&65535;else if(k&16){O=_&65535,k&=15,k&&(x<k&&(f+=R[r++]<<x,x+=8),O+=f&(1<<k)-1,f>>>
vendor: 12,903 bytes, line 432
432=k,x-=k),x<15&&(f+=R[r++]<<x,x+=8,f+=R[r++]<<x,x+=8),_=b[f&S];n:for(;;){if(k=_>>>24,f>>>=k,x-=k,k=_>>>16&255,k&16){if($=_&65535,k&=15,x<k&&(f+=R[r++]<<x,x+=8,x<k&&(f+=R[r++]<<x,x+=8)),$+=f&(1<<k)-1,$>l){t.msg="invalid distance too far back",C.mode=wm;break e}if(f>>>=k,x-=k,k=s-o,$>k){if(k=$-k,k>d&&C.sane){t.msg="invalid distance too far back",C.mode=wm;break e}if(U=0,I=m,h===0){if(U+=c-k,k<O){O-=k;do z[s++]=m[U++];while(--k);U=s-$,I=z}}else if(h<k){if(U+=c+h-k,k-=h,k<O){O-=k;do z[s++]=m[U++];while(--k);if(U=0,h<O){k=h,O-=k;do z[s++]=m[U++];while(--k);U=s-$,I=z}}}else if(U+=h-k,k<O){O-=k;do z[s++]=m[U++];while(--k);U=s-$,I=z}for(;O>2;)z[s++]=I[U++],z[s++]=I[U++],z[s++]=I[U++],O-=3;O&&(z[s++]=I[U++],O>1&&(z[s++]=I[U++]))}else{U=s-$;do z[s++]=z[U++],z[s++]=z[U++],z[s++]=z[U++],O-=3;while(O>2);O&&(z[s++]=z[U++],O>1&&(z[s++]=z[U++]))}}else if(k&64){t.msg="invalid distance code",C.mode=wm;break e}else{_=b[(_&65535)+(f&(1<<k)-1)];continue n}break}}else if(k&64)if(k&32){C.mode=JZ;break e}else{t.msg="invalid literal/length code",C.mode=wm;break e}else{_=v[(_&65535)+(f&(1<<k)-1)];continue t}break}}while(r<i&&s<a);O=x>>3,r-=O,x-=O<<3,f&=(1<<x)-1,t.next_in=r,t.next_out=s,t.avail_in=r<i?5+(i-r):5-(r-i),t.avail_out=s<a?257+(a-s):257-(s-a),C.hold=f,C.bits=x};const Qc=15,_N=852,NN=592,kN=0,n2=1,AN=2,tQ=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),nQ=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,199,75]),rQ=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),iQ=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),sQ=(e,t,n,r,i,s,o,a)=>{const l=a.bits;let c=0,d=0,h=0,m=0,f=0,x=0,v=0,b=0,y=0,S=0,_,k,O,$,U,I=null,R;const z=new Uint16Array(Qc+1),C=new Uint16Array(Qc+1);let L=null,D,F,te;for(c=0;c<=Qc;c++)z[c]=0;for(d=0;d<r;d++)z[t[n+d]]++;for(f=l,m=Qc;m>=1&&z[m]===0;m--);if(f>m&&(f=m),m===0)return i[s++]=1<<24|64<<16|0,i[s++]=1<<24|64<<16|0,a.bits=1,0;for(h=1;h<m&&z[h]===0;h++);for(f<h&&(f=h),b=1,c=1;c<=Qc;c++)if(b<<=1,b-=z[c],b<0)return-1;if(b>0&&(e===kN||m!==1))return-1;for(C[1]=0,c=1;c<Qc;c++)C[c+1]=C[c]+z[c];for(d=0;d<r;d++)t[n+d]!==0&&(o[C[t[n+d]]++]=d);if(e===kN?(I=L=o,R=20):e===n2?(I=tQ,L=nQ,R=257):(I=rQ,L=iQ,R=0),S=0,d=0,c=h,U=s,x=f,v=0,O=-1,y=1<<f,$=y-1,e===n2&&y>_N||e===AN&&y>NN)return 1;for(;;){D=c-v,o[d]+1<R?(F=0,te=o[d]):o[d]>=R?(F=L[o[d]-R],te=I[o[d]-R]):(F=96,te=0),_=1<<c-v,k=1<<x,h=k;do k-=_,i[U+(S>>v)+k]=D<<24|F<<16|te|0;while(k!==0);for(_=1<<c-1;S&_;)_>>=1;if(_!==0?(S&=_-1,S+=_):S=0,d++,--z[c]===0){if(c===m)break;c=t[n+o[d]]}if(c>f&&(S&$)!==O){for(v===0&&(v=f),U+=h,x=c-v,b=1<<x;x+v<m&&(b-=z[x+v],!(b<=0));)x++,b<<=1;if(y+=1<<x,e===n2&&y>_N||e===AN&&y>NN)return 1;O=S&$,i[O]=f<<24|x<<16|U-s|0}}return S!==0&&(i[U+S]=c-v<<24|64<<16|0),a.bits=f,0};var Zf=sQ;const oQ=0,uP=1,dP=2,{Z_FINISH:jN,Z_BLOCK:aQ,Z_TREES:Sm,Z_OK:jc,Z_STREAM_END:lQ,Z_NEED_DICT:cQ,Z_STREAM_ERROR:os,Z_DATA_ERROR:fP,Z_MEM_ERROR:hP,Z_BUF_ERROR:uQ,Z_DEFLATED:CN}=ip,i1=16180,EN=16181,LN=16182,PN=16183,TN=16184,RN=16185,ON=16186,IN=16187,MN=16188,FN=16189,dg=16190,Oo=16191,r2=16192,DN=16193,i2=16194,BN=16195,zN=16196,UN=16197,VN=16198,_m=16199,Nm=16200,$N=16201,qN=16202,HN=16203,WN=16204,GN=16205,s2=16206,KN=16207,YN=16208,wn=16209,pP=16210,mP=16211,dQ=852,fQ=592,hQ=15,pQ=hQ,XN=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function mQ(){this.strm=null,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 Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Pc=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<i1||t.mode>mP?1:0},gP=e=>{if(Pc(e))return os;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=i1,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(dQ),t.distcode=t.distdyn=new Int32Array(fQ),t.sane=1,t.back=-1,jc},yP=e=>{if(Pc(e))return os;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,gP(e)},xP=(e,t)=>{let n;if(Pc(e))return os;const r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?os:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,yP(e))},vP=(e,t)=>{if(!e)return os;const n=new mQ;e.state=n,n.strm=e,n.window=null,n.mode=i1;const r=xP(e,t);return r!==jc&&(e.state=null),r},gQ=e=>vP(e,pQ);let ZN=!0,o2,a2;const yQ=e=>{if(ZN){o2=new Int32Array(512),a2=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Zf(uP,e.lens,0,288,o2,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Zf(dP,e.lens,0,32,a2,0,e.work,{bits:5}),ZN=!1}e.lencode=o2,e.lenbits=9,e.distcode=a2,e.distbits=5},bP=(e,t,n,r)=>{let i;const s=e.state;return s.window===null&&(s.window=new Uint8Array(1<<s.wbits)),s.wsize===0&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0),r>=s.wsize?(s.window.set(t.subarray(n-s.wsize,n),0),s.wnext=0,s.whave=s.wsize):(i=s.wsize-s.wnext,i>r&&(i=r),s.window.set(t.subarray(n-r,n-r+i),s.wnext),r-=i,r?(s.window.set(t.subarray(n-r,n),0),s.wnext=r,s.whave=s.wsize):(s.wnext+=i,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=i))),0},xQ=(e,t)=>{let n,r,i,s,o,a,l,c,d,h,m,f,x,v,b=0,y,S,_,k,O,$,U,I;const R=new Uint8Array(4);let z,C;const L=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Pc(e)||!e.output||!e.input&&e.avail_in!==0)return os;n=e.state,n.mode===Oo&&(n.mode=r2),o=e.next_out,i=e.output,l=e.avail_out,s=e.next_in,r=e.input,a=e.avail_in,c=n.hold,d=n.bits,h=a,m=l,I=jc;e:for(;;)switch(n.mode){case i1:if(n.wrap===0){n.mode=r2;break}for(;d<16;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}if(n.wrap&2&&c===35615){n.wbits===0&&(n.wbits=15),n.check=0,R[0]=c&255,R[1]=c>>>8&255,n.check=hr(n.check,R,2,0),c=0,d=0,n.mode=EN;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((c&255)<<8)+(c>>8))%31){e.msg="incorrect header check",n.mode=wn;break}if((c&15)!==CN){e.msg="unknown compression method",n.mode=wn;break}if(c>>>=4,d-=4,U=(c&15)+8,n.wbits===0&&(n.wbits=U),U>15||U>n.wbits){e.msg="invalid window size",n.mode=wn;break}n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=c&512?FN:Oo,c=0,d=0;break;case EN:for(;d<16;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}if(n.flags=c,(n.flags&255)!==CN){e.msg="unknown compression method",n.mode=wn;break}if(n.flags&57344){e.msg="unknown header flags set",n.mode=wn;break}n.head&&(n.head.text=c>>8&1),n.flags&512&&n.wrap&4&&(R[0]=c&255,R[1]=c>>>8&255,n.check=hr(n.check,R,2,0)),c=0,d=0,n.mode=LN;case LN:for(;d<32;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}n.head&&(n.head.time=c),n.flags&512&&n.wrap&4&&(R[0]=c&255,R[1]=c>>>8&255,R[2]=c>>>16&255,R[3]=c>>>24&255,n.check=hr(n.check,R,4,0)),c=0,d=0,n.mode=PN;case PN:for(;d<16;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}n.head&&(n.head.xflags=c&255,n.head.os=c>>8),n.flags&512&&n.wrap&4&&(R[0]=c&255,R[1]=c>>>8&255,n.check=hr(n.check,R,2,0)),c=0,d=0,n.mode=TN;case TN:if(n.flags&1024){for(;d<16;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}n.length=c,n.head&&(n.head.extra_len=c),n.flags&512&&n.wrap&4&&(R[0]=c&255,R[1]=c>>>8&255,n.check=hr(n.check,R,2,0)),c=0,d=0}else n.head&&(n.head.extra=null);n.mode=RN;case RN:if(n.flags&1024&&(f=n.length,f>a&&(f=a),f&&(n.head&&(U=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(s,s+f),U)),n.flags&512&&n.wrap&4&&(n.check=hr(n.check,r,f,s)),a-=f,s+=f,n.length-=f),n.length))break e;n.length=0,n.mode=ON;case ON:if(n.flags&2048){if(a===0)break e;f=0;do U=r[s+f++],n.head&&U&&n.length<65536&&(n.head.name+=String.fromCharCode(U));while(U&&f<a);if(n.flags&512&&n.wrap&4&&(n.check=hr(n.check,r,f,s)),a-=f,s+=f,U)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=IN;case IN:if(n.flags&4096){if(a===0)break e;f=0;do U=r[s+f++],n.head&&U&&n.length<65536&&(n.head.comment+=String.fromCharCode(U));while(U&&f<a);if(n.flags&512&&n.wrap&4&&(n.check=hr(n.check,r,f,s)),a-=f,s+=f,U)break e}else n.head&&(n.head.comment=null);n.mode=MN;case MN:if(n.flags&512){for(;d<16;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}if(n.wrap&4&&c!==(n.check&65535)){e.msg="header crc mismatch",n.mode=wn;break}c=0,d=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=Oo;break;case FN:for(;d<32;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}e.adler=n.check=XN(c),c=0,d=0,n.mode=dg;case dg:if(n.havedict===0)return e.next_out=o,e.avail_out=l,e.next_in=s,e.avail_in=a,n.hold=c,n.bits=d,cQ;e.adler=n.check=1,n.mode=Oo;case Oo:if(t===aQ||t===Sm)break e;case r2:if(n.last){c>>>=d&7,d-=d&7,n.mode=s2;break}for(;d<3;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}switch(n.last=c&1,c>>>=1,d-=1,c&3){case 0:n.mode=DN;break;case 1:if(yQ(n),n.mode=_m,t===Sm){c>>>=2,d-=2;break e}break;case 2:n.mode=zN;break;case 3:e.msg="invalid block type",n.mode=wn}c>>>=2,d-=2;break;case DN:for(c>>>=d&7,d-=d&7;d<32;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}if((c&65535)!==(c>>>16^65535)){e.msg="invalid stored block lengths",n.mode=wn;break}if(n.length=c&65535,c=0,d=0,n.mode=i2,t===Sm)break e;case i2:n.mode=BN;case BN:if(f=n.length,f){if(f>a&&(f=a),f>l&&(f=l),f===0)break e;i.set(r.subarray(s,s+f),o),a-=f,s+=f,l-=f,o+=f,n.length-=f;break}n.mode=Oo;break;case zN:for(;d<14;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}if(n.nlen=(c&31)+257,c>>>=5,d-=5,n.ndist=(c&31)+1,c>>>=5,d-=5,n.ncode=(c&15)+4,c>>>=4,d-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=wn;break}n.have=0,n.mode=UN;case UN:for(;n.have<n.ncode;){for(;d<3;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}n.lens[L[n.have++]]=c&7,c>>>=3,d-=3}for(;n.have<19;)n.lens[L[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,z={bits:n.lenbits},I=Zf(oQ,n.lens,0,19,n.lencode,0,n.work,z),n.lenbits=z.bits,I){e.msg="invalid code lengths set",n.mode=wn;break}n.have=0,n.mode=VN;case VN:for(;n.have<n.nlen+n.ndist;){for(;b=n.lencode[c&(1<<n.lenbits)-1],y=b>>>24,S=b>>>16&255,_=b&65535,!(y<=d);){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}if(_<16)c>>>=y,d-=y,n.lens[n.have++]=_;else{if(_===16){for(C=y+2;d<C;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}if(c>>>=y,d-=y,n.have===0){e.msg="invalid bit length repeat",n.mode=wn;break}U=n.lens[n.have-1],f=3+(c&3),c>>>=2,d-=2}else if(_===17){for(C=y+3;d<C;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}c>>>=y,d-=y,U=0,f=3+(c&7),c>>>=3,d-=3}else{for(C=y+7;d<C;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}c>>>=y,d-=y,U=0,f=11+(c&127),c>>>=7,d-=7}if(n.have+f>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=wn;break}for(;f--;)n.lens[n.have++]=U}}if(n.mode===wn)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=wn;break}if(n.lenbits=9,z={bits:n.lenbits},I=Zf(uP,n.lens,0,n.nlen,n.lencode,0,n.work,z),n.lenbits=z.bits,I){e.msg="invalid literal/lengths set",n.mode=wn;break}if(n.distbits=6,n.distcode=n.distdyn,z={bits:n.distbits},I=Zf(dP,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,z),n.distbits=z.bits,I){e.msg="invalid distances set",n.mode=wn;break}if(n.mode=_m,t===Sm)break e;case _m:n.mode=Nm;case Nm:if(a>=6&&l>=258){e.next_out=o,e.avail_out=l,e.next_in=s,e.avail_in=a,n.hold=c,n.bits=d,eQ(e,m),o=e.next_out,i=e.output,l=e.avail_out,s=e.next_in,r=e.input,a=e.avail_in,c=n.hold,d=n.bits,n.mode===Oo&&(n.back=-1);break}for(n.back=0;b=n.lencode[c&(1<<n.lenbits)-1],y=b>>>24,S=b>>>16&255,_=b&65535,!(y<=d);){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}if(S&&!(S&240)){for(k=y,O=S,$=_;b=n.lencode[$+((c&(1<<k+O)-1)>>k)],y=b>>>24,S=b>>>16&255,_=b&65535,!(k+y<=d);){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}c>>>=k,d-=k,n.back+=k}if(c>>>=y,d-=y,n.back+=y,n.length=_,S===0){n.mode=GN;break}if(S&32){n.back=-1,n.mode=Oo;break}if(S&64){e.msg="invalid literal/length code",n.mode=wn;break}n.extra=S&15,n.mode=$N;case $N:if(n.extra){for(C=n.extra;d<C;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}n.length+=c&(1<<n.extra)-1,c>>>=n.extra,d-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=qN;case qN:for(;b=n.distcode[c&(1<<n.distbits)-1],y=b>>>24,S=b>>>16&255,_=b&65535,!(y<=d);){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}if(!(S&240)){for(k=y,O=S,$=_;b=n.distcode[$+((c&(1<<k+O)-1)>>k)],y=b>>>24,S=b>>>16&255,_=b&65535,!(k+y<=d);){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}c>>>=k,d-=k,n.back+=k}if(c>>>=y,d-=y,n.back+=y,S&64){e.msg="invalid distance code",n.mode=wn;break}n.offset=_,n.extra=S&15,n.mode=HN;case HN:if(n.extra){for(C=n.extra;d<C;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}n.offset+=c&(1<<n.extra)-1,c>>>=n.extra,d-=n.extra,n.back+=n.extra}if(n.offset>
vendor: 13,788 bytes, line 432
432n.dmax){e.msg="invalid distance too far back",n.mode=wn;break}n.mode=WN;case WN:if(l===0)break e;if(f=m-l,n.offset>f){if(f=n.offset-f,f>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=wn;break}f>n.wnext?(f-=n.wnext,x=n.wsize-f):x=n.wnext-f,f>n.length&&(f=n.length),v=n.window}else v=i,x=o-n.offset,f=n.length;f>l&&(f=l),l-=f,n.length-=f;do i[o++]=v[x++];while(--f);n.length===0&&(n.mode=Nm);break;case GN:if(l===0)break e;i[o++]=n.length,l--,n.mode=Nm;break;case s2:if(n.wrap){for(;d<32;){if(a===0)break e;a--,c|=r[s++]<<d,d+=8}if(m-=l,e.total_out+=m,n.total+=m,n.wrap&4&&m&&(e.adler=n.check=n.flags?hr(n.check,i,m,o-m):Lh(n.check,i,m,o-m)),m=l,n.wrap&4&&(n.flags?c:XN(c))!==n.check){e.msg="incorrect data check",n.mode=wn;break}c=0,d=0}n.mode=KN;case KN:if(n.wrap&&n.flags){for(;d<32;){if(a===0)break e;a--,c+=r[s++]<<d,d+=8}if(n.wrap&4&&c!==(n.total&4294967295)){e.msg="incorrect length check",n.mode=wn;break}c=0,d=0}n.mode=YN;case YN:I=lQ;break e;case wn:I=fP;break e;case pP:return hP;case mP:default:return os}return e.next_out=o,e.avail_out=l,e.next_in=s,e.avail_in=a,n.hold=c,n.bits=d,(n.wsize||m!==e.avail_out&&n.mode<wn&&(n.mode<s2||t!==jN))&&bP(e,e.output,e.next_out,m-e.avail_out),h-=e.avail_in,m-=e.avail_out,e.total_in+=h,e.total_out+=m,n.total+=m,n.wrap&4&&m&&(e.adler=n.check=n.flags?hr(n.check,i,m,e.next_out-m):Lh(n.check,i,m,e.next_out-m)),e.data_type=n.bits+(n.last?64:0)+(n.mode===Oo?128:0)+(n.mode===_m||n.mode===i2?256:0),(h===0&&m===0||t===jN)&&I===jc&&(I=uQ),I},vQ=e=>{if(Pc(e))return os;let t=e.state;return t.window&&(t.window=null),e.state=null,jc},bQ=(e,t)=>{if(Pc(e))return os;const n=e.state;return n.wrap&2?(n.head=t,t.done=!1,jc):os},wQ=(e,t)=>{const n=t.length;let r,i,s;return Pc(e)||(r=e.state,r.wrap!==0&&r.mode!==dg)?os:r.mode===dg&&(i=1,i=Lh(i,t,n,0),i!==r.check)?fP:(s=bP(e,t,n,n),s?(r.mode=pP,hP):(r.havedict=1,jc))};var SQ=yP,_Q=xP,NQ=gP,kQ=gQ,AQ=vP,jQ=xQ,CQ=vQ,EQ=bQ,LQ=wQ,PQ="pako inflate (from Nodeca project)",Qs={inflateReset:SQ,inflateReset2:_Q,inflateResetKeep:NQ,inflateInit:kQ,inflateInit2:AQ,inflate:jQ,inflateEnd:CQ,inflateGetHeader:EQ,inflateSetDictionary:LQ,inflateInfo:PQ};function TQ(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var RQ=TQ;const wP=Object.prototype.toString,{Z_NO_FLUSH:OQ,Z_FINISH:QN,Z_OK:Pu,Z_STREAM_END:l2,Z_NEED_DICT:c2,Z_STREAM_ERROR:IQ,Z_DATA_ERROR:JN,Z_MEM_ERROR:MQ,Z_BUF_ERROR:e6}=ip,FQ={chunkSize:1024*64,windowBits:15,to:""};function op(e){this.options=r1.assign({},FQ,e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new lP,this.strm.avail_out=0;let n=Qs.inflateInit2(this.strm,t.windowBits);if(n!==Pu)throw new Error(dd[n]);if(this.header=new RQ,Qs.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Th.string2buf(t.dictionary):wP.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=Qs.inflateSetDictionary(this.strm,t.dictionary),n!==Pu)))throw new Error(dd[n])}op.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize,i=this.options.dictionary;let s,o,a;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?QN:OQ,wP.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),s=Qs.inflate(n,o),s===c2&&i&&(s=Qs.inflateSetDictionary(n,i),s===Pu?s=Qs.inflate(n,o):s===JN&&(s=c2));n.avail_in>0&&s===l2&&n.state.wrap&2&&n.state.flags!==0&&n.input[n.next_in]!==0;)Qs.inflateReset(n),s=Qs.inflate(n,o);switch(s){case IQ:case JN:case c2:case MQ:return this.onEnd(s),this.ended=!0,!1}if(a=n.avail_out,n.next_out&&(n.avail_out===0||s===l2||o>0))if(this.options.to==="string"){let l=Th.utf8border(n.output,n.next_out),c=n.next_out-l,d=Th.buf2string(n.output,l);n.next_out=c,n.avail_out=r-c,c&&n.output.set(n.output.subarray(l,l+c),0),this.onData(d)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out)),n.avail_out=0,n.next_out=0;if(!((s===Pu||s===e6)&&a===0)){if(s===l2)return s=Qs.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(n.avail_in===0){if(o===QN)return s=Qs.inflateEnd(this.strm),this.onEnd(s===Pu?e6:s),this.ended=!0,!1;break}}}return!0};op.prototype.onData=function(e){this.chunks.push(e)};op.prototype.onEnd=function(e){e===Pu&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=r1.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function aw(e,t){const n=new op(t);if(n.push(e,!0),n.err)throw n.msg||dd[n.err];return n.result}function DQ(e,t){return t=t||{},t.raw=!0,aw(e,t)}var BQ=op,zQ=aw,UQ=DQ,VQ=aw,$Q=ip,qQ={Inflate:BQ,inflate:zQ,inflateRaw:UQ,ungzip:VQ,constants:$Q};const{Inflate:HQ,inflate:WQ,inflateRaw:rte,ungzip:ite}=qQ;var t6=HQ,GQ=WQ;const SP=[];for(let e=0;e<256;e++){let t=e;for(let n=0;n<8;n++)t&1?t=3988292384^t>>>1:t=t>>>1;SP[e]=t}const n6=4294967295;function KQ(e,t,n){let r=e;for(let i=0;i<n;i++)r=SP[(r^t[i])&255]^r>>>8;return r}function YQ(e,t){return(KQ(n6,e,t)^n6)>>>0}function r6(e,t,n){const r=e.readUint32(),i=YQ(new Uint8Array(e.buffer,e.byteOffset+e.offset-t-4,t),t);if(i!==r)throw new Error(`CRC mismatch for chunk ${n}. Expected ${r}, found ${i}`)}function _P(e,t,n){for(let r=0;r<n;r++)t[r]=e[r]}function NP(e,t,n,r){let i=0;for(;i<r;i++)t[i]=e[i];for(;i<n;i++)t[i]=e[i]+t[i-r]&255}function kP(e,t,n,r){let i=0;if(n.length===0)for(;i<r;i++)t[i]=e[i];else for(;i<r;i++)t[i]=e[i]+n[i]&255}function AP(e,t,n,r,i){let s=0;if(n.length===0){for(;s<i;s++)t[s]=e[s];for(;s<r;s++)t[s]=e[s]+(t[s-i]>>1)&255}else{for(;s<i;s++)t[s]=e[s]+(n[s]>>1)&255;for(;s<r;s++)t[s]=e[s]+(t[s-i]+n[s]>>1)&255}}function jP(e,t,n,r,i){let s=0;if(n.length===0){for(;s<i;s++)t[s]=e[s];for(;s<r;s++)t[s]=e[s]+t[s-i]&255}else{for(;s<i;s++)t[s]=e[s]+n[s]&255;for(;s<r;s++)t[s]=e[s]+XQ(t[s-i],n[s],n[s-i])&255}}function XQ(e,t,n){const r=e+t-n,i=Math.abs(r-e),s=Math.abs(r-t),o=Math.abs(r-n);return i<=s&&i<=o?e:s<=o?t:n}function ZQ(e,t,n,r,i,s){switch(e){case 0:_P(t,n,i);break;case 1:NP(t,n,i,s);break;case 2:kP(t,n,r,i);break;case 3:AP(t,n,r,i,s);break;case 4:jP(t,n,r,i,s);break;default:throw new Error(`Unsupported filter: ${e}`)}}const QQ=new Uint16Array([255]),JQ=new Uint8Array(QQ.buffer),eJ=JQ[0]===255;function tJ(e){const{data:t,width:n,height:r,channels:i,depth:s}=e,o=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],a=Math.ceil(s/8)*i,l=new Uint8Array(r*n*a);let c=0;for(let d=0;d<7;d++){const h=o[d],m=Math.ceil((n-h.x)/h.xStep),f=Math.ceil((r-h.y)/h.yStep);if(m<=0||f<=0)continue;const x=m*a,v=new Uint8Array(x);for(let b=0;b<f;b++){const y=t[c++],S=t.subarray(c,c+x);c+=x;const _=new Uint8Array(x);ZQ(y,S,_,v,x,a),v.set(_);for(let k=0;k<m;k++){const O=h.x+k*h.xStep,$=h.y+b*h.yStep;if(!(O>=n||$>=r))for(let U=0;U<a;U++)l[($*n+O)*a+U]=_[k*a+U]}}}if(s===16){const d=new Uint16Array(l.buffer);if(eJ)for(let h=0;h<d.length;h++)d[h]=nJ(d[h]);return d}else return l}function nJ(e){return(e&255)<<8|e>>8&255}const rJ=new Uint16Array([255]),iJ=new Uint8Array(rJ.buffer),sJ=iJ[0]===255,oJ=new Uint8Array(0);function i6(e){const{data:t,width:n,height:r,channels:i,depth:s}=e,o=Math.ceil(s/8)*i,a=Math.ceil(s/8*i*n),l=new Uint8Array(r*a);let c=oJ,d=0,h,m;for(let f=0;f<r;f++){switch(h=t.subarray(d+1,d+1+a),m=l.subarray(f*a,(f+1)*a),t[d]){case 0:_P(h,m,a);break;case 1:NP(h,m,a,o);break;case 2:kP(h,m,c,a);break;case 3:AP(h,m,c,a,o);break;case 4:jP(h,m,c,a,o);break;default:throw new Error(`Unsupported filter: ${t[d]}`)}c=m,d+=a+1}if(s===16){const f=new Uint16Array(l.buffer);if(sJ)for(let x=0;x<f.length;x++)f[x]=aJ(f[x]);return f}else return l}function aJ(e){return(e&255)<<8|e>>8&255}const r0=Uint8Array.of(137,80,78,71,13,10,26,10);function s6(e){if(!lJ(e.readBytes(r0.length)))throw new Error("wrong PNG signature")}function lJ(e){if(e.length<r0.length)return!1;for(let t=0;t<r0.length;t++)if(e[t]!==r0[t])return!1;return!0}const cJ="tEXt",uJ=0,CP=new TextDecoder("latin1");function dJ(e){if(hJ(e),e.length===0||e.length>79)throw new Error("keyword length must be between 1 and 79")}const fJ=/^[\u0000-\u00FF]*$/;function hJ(e){if(!fJ.test(e))throw new Error("invalid latin1 text")}function pJ(e,t,n){const r=EP(t);e[r]=mJ(t,n-r.length-1)}function EP(e){for(e.mark();e.readByte()!==uJ;);const t=e.offset;e.reset();const n=CP.decode(e.readBytes(t-e.offset-1));return e.skip(1),dJ(n),n}function mJ(e,t){return CP.decode(e.readBytes(t))}const ji={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},u2={UNKNOWN:-1,DEFLATE:0},o6={UNKNOWN:-1,ADAPTIVE:0},d2={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},km={NONE:0,BACKGROUND:1,PREVIOUS:2},f2={SOURCE:0,OVER:1};class gJ extends Jb{constructor(n,r={}){super(n);Zt(this,"_checkCrc");Zt(this,"_inflator");Zt(this,"_png");Zt(this,"_apng");Zt(this,"_end");Zt(this,"_hasPalette");Zt(this,"_palette");Zt(this,"_hasTransparency");Zt(this,"_transparency");Zt(this,"_compressionMethod");Zt(this,"_filterMethod");Zt(this,"_interlaceMethod");Zt(this,"_colorType");Zt(this,"_isAnimated");Zt(this,"_numberOfFrames");Zt(this,"_numberOfPlays");Zt(this,"_frames");Zt(this,"_writingDataChunks");const{checkCrc:i=!1}=r;this._checkCrc=i,this._inflator=new t6,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=u2.UNKNOWN,this._filterMethod=o6.UNKNOWN,this._interlaceMethod=d2.UNKNOWN,this._colorType=ji.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(s6(this);!this._end;){const n=this.readUint32(),r=this.readChars(4);this.decodeChunk(n,r)}return this.decodeImage(),this._png}decodeApng(){for(s6(this);!this._end;){const n=this.readUint32(),r=this.readChars(4);this.decodeApngChunk(n,r)}return this.decodeApngImage(),this._apng}decodeChunk(n,r){const i=this.offset;switch(r){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(n);break;case"IDAT":this.decodeIDAT(n);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(n);break;case"iCCP":this.decodeiCCP(n);break;case cJ:pJ(this._png.text,this,n);break;case"pHYs":this.decodepHYs();break;default:this.skip(n);break}if(this.offset-i!==n)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?r6(this,n+4,r):this.skip(4)}decodeApngChunk(n,r){const i=this.offset;switch(r!=="fdAT"&&r!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),r){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(n);break;default:this.decodeChunk(n,r),this.offset=i+n;break}if(this.offset-i!==n)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?r6(this,n+4,r):this.skip(4)}decodeIHDR(){const n=this._png;n.width=this.readUint32(),n.height=this.readUint32(),n.depth=yJ(this.readUint8());const r=this.readUint8();this._colorType=r;let i;switch(r){case ji.GREYSCALE:i=1;break;case ji.TRUECOLOUR:i=3;break;case ji.INDEXED_COLOUR:i=1;break;case ji.GREYSCALE_ALPHA:i=2;break;case ji.TRUECOLOUR_ALPHA:i=4;break;case ji.UNKNOWN:default:throw new Error(`Unknown color type: ${r}`)}if(this._png.channels=i,this._compressionMethod=this.readUint8(),this._compressionMethod!==u2.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const n={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(n)}decodePLTE(n){if(n%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${n}`);const r=n/3;this._hasPalette=!0;const i=[];this._palette=i;for(let s=0;s<r;s++)i.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(n){this._writingDataChunks=!0;const r=n,i=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,i,r)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(n)}decodeFDAT(n){this._writingDataChunks=!0;let r=n,i=this.offset+this.byteOffset;if(i+=4,r-=4,this._inflator.push(new Uint8Array(this.buffer,i,r)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(n)}decodetRNS(n){switch(this._colorType){case ji.GREYSCALE:case ji.TRUECOLOUR:{if(n%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${n}`);if(n/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${n/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(n/2);for(let r=0;r<n/2;r++)this._transparency[r]=this.readUint16();break}case ji.INDEXED_COLOUR:{if(n>this._palette.length)throw new Error(`tRNS chunk contains more alph
432a values than there are palette colors (${n} vs ${this._palette.length})`);let r=0;for(;r<n;r++){const i=this.readByte();this._palette[r].push(i)}for(;r<this._palette.length;r++)this._palette[r].push(255);break}case ji.UNKNOWN:case ji.GREYSCALE_ALPHA:case ji.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(n){const r=EP(this),i=this.readUint8();if(i!==u2.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${i}`);const s=this.readBytes(n-r.length-2);this._png.iccEmbeddedProfile={name:r,profile:GQ(s)}}decodepHYs(){const n=this.readUint32(),r=this.readUint32(),i=this.readByte();this._png.resolution={x:n,y:r,unit:i}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let n=0;n<this._numberOfFrames;n++){const r={sequenceNumber:this._frames[n].sequenceNumber,delayNumber:this._frames[n].delayNumber,delayDenominator:this._frames[n].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},i=this._frames.at(n);if(i){if(i.data=i6({data:i.data,width:i.width,height:i.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),n===0||i.xOffset===0&&i.yOffset===0&&i.width===this._png.width&&i.height===this._png.height)r.data=i.data;else{const s=this._apng.frames.at(n-1);this.disposeFrame(i,s,r),this.addFrameDataToCanvas(r,i)}this._apng.frames.push(r)}}return this._apng}disposeFrame(n,r,i){switch(n.disposeOp){case km.NONE:break;case km.BACKGROUND:for(let s=0;s<this._png.height;s++)for(let o=0;o<this._png.width;o++){const a=(s*n.width+o)*this._png.channels;for(let l=0;l<this._png.channels;l++)i.data[a+l]=0}break;case km.PREVIOUS:i.data.set(r.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(n,r){const i=1<<this._png.depth,s=(o,a)=>{const l=((o+r.yOffset)*this._png.width+r.xOffset+a)*this._png.channels,c=(o*r.width+a)*this._png.channels;return{index:l,frameIndex:c}};switch(r.blendOp){case f2.SOURCE:for(let o=0;o<r.height;o++)for(let a=0;a<r.width;a++){const{index:l,frameIndex:c}=s(o,a);for(let d=0;d<this._png.channels;d++)n.data[l+d]=r.data[c+d]}break;case f2.OVER:for(let o=0;o<r.height;o++)for(let a=0;a<r.width;a++){const{index:l,frameIndex:c}=s(o,a);for(let d=0;d<this._png.channels;d++){const h=r.data[c+this._png.channels-1]/i,m=d%(this._png.channels-1)===0?1:r.data[c+d],f=Math.floor(h*m+(1-h)*n.data[l+d]);n.data[l+d]+=f}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){var r;if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const n=this._isAnimated?((r=this._frames)==null?void 0:r.at(0)).data:this._inflator.result;if(this._filterMethod!==o6.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===d2.NO_INTERLACE)this._png.data=i6({data:n,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===d2.ADAM7)this._png.data=tJ({data:n,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const n=this._inflator.result,r=this._frames.at(-1);r?r.data=n:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:km.NONE,blendOp:f2.SOURCE,data:n}),this._inflator=new t6,this._writingDataChunks=!1}}function yJ(e){if(e!==1&&e!==2&&e!==4&&e!==8&&e!==16)throw new Error(`invalid bit depth: ${e}`);return e}var a6;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.METRE=1]="METRE"})(a6||(a6={}));function xJ(e,t){return new gJ(e,t).decode()}var ft=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function h2(){ft.console&&typeof ft.console.log=="function"&&ft.console.log.apply(ft.console,arguments)}var ln={log:h2,warn:function(e){ft.console&&(typeof ft.console.warn=="function"?ft.console.warn.apply(ft.console,arguments):h2.call(null,arguments))},error:function(e){ft.console&&(typeof ft.console.error=="function"?ft.console.error.apply(ft.console,arguments):h2(e))}};function p2(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){Bl(r.response,t,n
vendor: 3,701 bytes, lines 432-437
432)},r.onerror=function(){ln.error("could not download file")},r.send()}function l6(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Am(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var Bl=ft.saveAs||((typeof window>"u"?"undefined":tn(window))!=="object"||window!==ft?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,t,n){var r=ft.URL||ft.webkitURL,i=document.createElement("a");t=t||e.name||"download",i.download=t,i.rel="noopener",typeof e=="string"?(i.href=e,i.origin!==location.origin?l6(i.href)?p2(e,t,n):Am(i,i.target="_blank"):Am(i)):(i.href=r.createObjectURL(e),setTimeout(function(){r.revokeObjectURL(i.href)},4e4),setTimeout(function(){Am(i)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,n){if(t=t||e.name||"download",typeof e=="string")if(l6(e))p2(e,t,n);else{var r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){Am(r)})}else navigator.msSaveOrOpenBlob(function(i,s){return s===void 0?s={autoBom:!1}:tn(s)!=="object"&&(ln.warn("Deprecated: Expected third argument to be a object"),s={autoBom:!s}),s.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(i.type)?new Blob(["\uFEFF",i],{type:i.type}):i}(e,n),t)}:function(e,t,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof e=="string")return p2(e,t,n);var i=e.type==="application/octet-stream",s=/constructor/i.test(ft.HTMLElement)||ft.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&s)&&(typeof FileReader>"u"?"undefined":tn(FileReader))==="object"){var a=new FileReader;a.onloadend=function(){var d=a.result;d=o?d:d.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=d:location=d,r=null},a.readAsDataURL(e)}else{var l=ft.URL||ft.webkitURL,c=l.createObjectURL(e);r?r.location=c:location.href=c,r=null,setTimeout(function(){l.revokeObjectURL(c)},4e4)}});/** 433 * A class to parse color values 434 * @author Stoyan Stefanov <[email protected]> 435 * {@link http://www.phpied.com/rgb-color-parser-in-javascript/} 436 * @license Use it if you like it 437 */function LP(e){var t;e=e||"",this.ok=!1,e.charAt(0)=="#"&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee9
4370",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(a){return[parseInt(a[1]),parseInt(a[2]),parseInt(a[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(a){return[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(a){return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)]}}],r=0;r<n.length;r++){var i=n[r].re,s=n[r].process,o=i.exec(e);o&&(t=s(o),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var a=this.r.toString(16),l=this.g.toString(16),c=this.b.toString(16);return a.length==1&&(a="0"+a),l.length==1&&(l="0"+l),c.length==1&&(c="0"+c),"#"+a+l+c}}var i0=ft.atob.bind(ft),c6=ft.btoa.bind(ft);/** 438 * @license 439 * Joseph Myers does not specify a particular license for his work. 440 * 441 * Author: Joseph Myers 442 * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js 443 * 444 * Modified by: Owen Leong 445 */function m2(e,t){var n=e[0],r=e[1],i=e[2],s=e[3];n=Ir(n,r,i,s,t[0],7,-680876936),s=Ir(s,n,r,i,t[1],12,-389564586),i=Ir(i,s,n,r,t[2],17,606105819),r=Ir(r,i,s,n,t[3],22,-1044525330),n=Ir(n,r,i,s,t[4],7,-176418897),s=Ir(s,n,r,i,t[5],12,1200080426),i=Ir(i,s,n,r,t[6],17,-1473231341),r=Ir(r,i,s,n,t[7],22,-45705983),n=Ir(n,r,i,s,t[8],7,1770035416),s=Ir(s,n,r,i,t[9],12,-1958414417),i=Ir(i,s,n,r,t[10],17,-42063),r=Ir(r,i,s,n,t[11],22,-1990404162),n=Ir(n,r,i,s,t[12],7,1804603682),s=Ir(s,n,r,i,t[13],12,-40341101),i=Ir(i,s,n,r,t[14],17,-1502002290),n=Mr(n,r=Ir(r,i,s,n,t[15],22,1236535329),i,s,t[1],5,-165796510),s=Mr(s,n,r,i,t[6],9,-1069501632),i=Mr(i,s,n,r,t[11],14,643717713),r=Mr(r,i,s,n,t[0],20,-373897302),n=Mr(n,r,i,s,t[5],5,-701558691),s=Mr(s,n,r,i,t[10],9,38016083),i=Mr(i,s,n,r,t[15],14,-660478335),r=Mr(r,i,s,n,t[4],20,-405537848),n=Mr(n,r,i,s,t[9],5,568446438),s=Mr(s,n,r,i,t[14],9,-1019803690),i=Mr(i,s,n,r,t[3],14,-187363961),r=Mr(r,i,s,n,t[8],20,1163531501),n=Mr(n,r,i,s,t[13],5,-1444681467),s=Mr(s,n,r,i,t[2],9,-51403784),i=Mr(i,s,n,r,t[7],14,1735328473),n=Fr(n,r=Mr(r,i,s,n,t[12],20,-1926607734),i,s,t[5],4,-378558),s=Fr(s,n,r,i,t[8],11,-2022574463),i=Fr(i,s,n,r,t[11],16,1839030562),r=Fr(r,i,s,n,t[14],23,-35309556),n=Fr(n,r,i,s,t[1],4,-1530992060),s=Fr(s,n,r,i,t[4],11,1272893353),i=Fr(i,s,n,r,t[7],16,-155497632),r=Fr(r,i,s,n,t[10],23,-1094730640),n=Fr(n,r,i,s,t[13],4,681279174),s=Fr(s,n,r,i,t[0],11,-358537222),i=Fr(i,s,n,r,t[3],16,-722521979),r=Fr(r,i,s,n,t[6],23,76029189),n=Fr(n,r,i,s,t[9],4,-640364487),s=Fr(s,n,r,i,t[12],11,-421815835),i=Fr(i,s,n,r,t[15],16,530742520),n=Dr(n,r=Fr(r,i,s,n,t[2],23,-995338651),i,s,t[0],6,-198630844),s=Dr(s,n,r,i,t[7],10,1126891415),i=Dr(i,s,n,r,t[14],15,-1416354905),r=Dr(r,i,s,n,t[5],21,-57434055),n=Dr(n,r,i,s,t[12],6,1700485571),s=Dr(s,n,r,i,t[3],10,-1894986606),i=Dr(i,s,n,r,t[10],15,-1051523),r=Dr(r,i,s,n,t[1],21,-2054922799),n=Dr(n,r,i,s,t[8],6,1873313359),s=Dr(s,n,r,i,t[15],10,-30611744),i=Dr(i,s,n,r,t[6],15,-1560198380),r=Dr(r,i,s,n,t[13],21,1309151649),n=Dr(n,r,i,s,t[4],6,-145523070),s=Dr(s,n,r,i,t[11],10,-1120210379),i=Dr(i,s,n,r,t[2],15,718787259),r=Dr(r,i,s,n,t[9],21,-343485551),e[0]=$a(n,e[0]),e[1]=$a(r,e[1]),e[2]=$a(i,e[2]),e[3]=$a(s,e[3])}function s1(e,t,n,r,i,s){return t=$a($a(t,e),$a(r,s)),$a(t<<i|t>>>32-i,n)}function Ir(e,t,n,r,i,s,o){return s1(t&n|~t&r,e,t,i,s,o)}function Mr(e,t,n,r,i,s,o){return s1(t&r|n&~r,e,t,i,s,o)}function Fr(e,t,n,r,i,s,o){return s1(t^n^r,e,t,i,s,o)}function Dr(e,t,n,r,i,s,o){return s1(n^(t|~r),e,t,i,s,o)}function PP(e){var t,n=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)m2(r,vJ(e.substring(t-64,t)));e=e.substring(t-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)i[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(m2(r,i),t=0;t<16;t++)i[t]=0;return i[14]=8*n,m2(r,i),r}function vJ(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}var u6="0123456789abcdef".split("");function bJ(e){for(var t="",n=0;n<4;n++)t+=u6[e>>8*n+4&15]+u6[e>>8*n&15];return t}function wJ(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function Bv(e){return PP(e).map(wJ).join("")}var SJ=function(e){for(var t=0;t<e.length;t++)e[t]=bJ(e[t]);return e.join("")}(PP("hello"))!="5d41402abc4b2a76b9719d911017c592";function $a(e,t){if(SJ){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}return e+t&4294967295}/** 446 * @license 447 * FPDF is released under a permissive license: there is no usage restriction. 448 * You may embed it freely in your application (commercial or not), with or 449 * without modifications. 450 * 451 * Reference: http://www.fpdf.org/en/script/script37.php 452 */function zv(e,t){var n,r,i,s;if(e!==n){for(var o=(i=e,s=1+(256/e.length|0),new Array(s+1).join(i)),a=[],l=0;l<256;l++)a[l]=l;var c=0;for(l=0;l<256;l++){var d=a[l];
vendor: 5,753 bytes, lines 452-462
452c=(c+d+o.charCodeAt(l))%256,a[l]=a[c],a[c]=d}n=e,r=a}else a=r;var h=t.length,m=0,f=0,x="";for(l=0;l<h;l++)f=(f+(d=a[m=(m+1)%256]))%256,a[m]=a[f],a[f]=d,o=a[(a[m]+a[f])%256],x+=String.fromCharCode(t.charCodeAt(l)^o);return x}/** 453 * @license 454 * Licensed under the MIT License. 455 * http://opensource.org/licenses/mit-license 456 * Author: Owen Leong (@owenl131) 457 * Date: 15 Oct 2020 458 * References: 459 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt 460 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js 461 * http://www.fpdf.org/en/script/script37.php 462 */var d6={print:4,modify:8,copy:16,"annot-forms":32};function nu(e,t,n,r){this.v=1,this.r=2;var i=192;e.forEach(function(a){if(d6.perm!==void 0)throw new Error("Invalid permission: "+a);i+=d6[a]}),this.padding="(¿N^NuÂAd\0NVÿú�\b..\0¶Ãh>Â/\f©þdSiz";var s=(t+this.padding).substr(0,32),o=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(s,o),this.P=-(1+(255^i)),this.encryptionKey=Bv(s+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=zv(this.encryptionKey,this.padding)}function ru(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",n=e.length,r=0;r<n;r++){var i=e.charCodeAt(r);t+=i<33||i===35||i===37||i===40||i===41||i===47||i===60||i===62||i===91||i===93||i===123||i===125||i>126?"#"+("0"+i.toString(16)).slice(-2):e[r]}return t}function f6(e){if(tn(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(n,r,i){if(i=i||!1,typeof n!="string"||typeof r!="function"||typeof i!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(n)||(t[n]={});var s=Math.random().toString(35);return t[n][s]=[r,!!i],s},this.unsubscribe=function(n){for(var r in t)if(t[r][n])return delete t[r][n],Object.keys(t[r]).length===0&&delete t[r],!0;return!1},this.publish=function(n){if(t.hasOwnProperty(n)){var r=Array.prototype.slice.call(arguments,1),i=[];for(var s in t[n]){var o=t[n][s];try{o[0].apply(e,r)}catch(a){ft.console&&ln.error("jsPDF PubSub Error",a.message,a)}o[1]&&i.push(s)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function fg(e){if(!(this instanceof fg))return new fg(e);var t="opacity,stroke-opacity".split(",");for(var n in e)e.hasOwnProperty(n)&&t.indexOf(n)>=0&&(this[n]=e[n]);this.id="",this.objectNumber=-1}function TP(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function zl(e,t,n,r,i){if(!(this instanceof zl))return new zl(e,t,n,r,i);this.type=e==="axial"?2:3,this.coords=t,this.colors=n,TP.call(this,r,i)}function bu(e,t,n,r,i){if(!(this instanceof bu))return new bu(e,t,n,r,i);this.boundingBox=e,this.xStep=t,this.yStep=n,this.stream="",this.cloneIndex=0,TP.call(this,r,i)}function it(e){var t,n=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],i=arguments[2],s=arguments[3],o=[],a=1,l=16,c="S",d=null;tn(e=e||{})==="object"&&(n=e.orientation,r=e.unit||r,i=e.format||i,s=e.compress||e.compressPdf||s,(d=e.encryption||null)!==null&&(d.userPassword=d.userPassword||"",d.ownerPassword=d.ownerPassword||"",d.userPermissions=d.userPermissions||[]),a=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(t=e.precision),e.floatPrecision!==void 0&&(l=e.floatPrecision),c=e.defaultPathOperation||"S"),o=e.filters||(s===!0?["FlateEncode"]:o),r=r||"mm",n=(""+(n||"P")).toLowerCase();var h=e.putOnlyUsedFonts||!1,m={},f={internal:{},__private__:{}};f.__private__.PubSub=f6;var x="1.3",v=f.__private__.getPdfVersion=function(){return x};f.__private__.setPdfVersion=function(w){x=w};var b={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};f.__private__.getPageFormats=function(){return b};var y=f.__private__.getPageFormat=function(w){return b[w]};i=i||"a4";var S="compat",_="advanced",k=S;function O(){this.saveGraphicsState(),W(new We(dt,0,0,-dt,0,Nl()*dt).toString()+" cm"),this.setFontSize(this.getFontSize()/dt),c="n",k=_}function $(){this.restoreGraphicsState(),c="S",k=S}var U=f.__private__.combineFontStyleAndFontWeight=function(w,P){if(w=="bold"&&P=="normal"||w=="bold"&&P==400||w=="normal"&&P=="italic"||w=="bold"&&P=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return P&&(w=P==400||P==="normal"?w==="italic"?"italic":"normal":P!=700&&P!=="bold"||w!=="normal"?(P==700?"bold":P)+""+w:"bold"),w};f.advancedAPI=function(w){var P=k===S;return P&&O.call(this),typeof w!="function"||(w(this),P&&$.call(this)),this},f.compatAPI=function(w){var P=k===_;return P&&$.call(this),typeof w!="function"||(w(this),P&&O.call(this)),this},f.isAdvancedAPI=function(){return k===_};var I,R=function(w){if(k!==_)throw new Error(w+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},z=f.roundToPrecision=f.__private__.roundToPrecision=function(w,P){var Z=t||P;if(isNaN(w)||isNaN(Z))throw new Error("Invalid argument passed to
462jsPDF.roundToPrecision");return w.toFixed(Z).replace(/0+$/,"")};I=f.hpf=f.__private__.hpf=typeof l=="number"?function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.hpf");return z(w,l)}:l==="smart"?function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.hpf");return z(w,w>-1&&w<1?16:5)}:function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.hpf");return z(w,16)};var C=f.f2=f.__private__.f2=function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.f2");return z(w,2)},L=f.__private__.f3=function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.f3");return z(w,3)},D=f.scale=f.__private__.scale=function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.scale");return k===S?w*dt:k===_?w:void 0},F=function(w){return D(function(P){return k===S?Nl()-P:k===_?P:void 0}(w))};f.__private__.setPrecision=f.setPrecision=function(w){typeof parseInt(w,10)=="number"&&(t=parseInt(w,10))};var te,re="00000000000000000000000000000000",ce=f.__private__.getFileId=function(){return re},G=f.__private__.setFileId=function(w){return re=w!==void 0&&/^[a-fA-F0-9]{32}$/.test(w)?w.toUpperCase():re.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),d!==null&&(Jn=new nu(d.userPermissions,d.userPassword,d.ownerPassword,re)),re};f.setFileId=function(w){return G(w),this},f.getFileId=function(){return ce()};var Q=f.__private__.convertDateToPDFDate=function(w){var P=w.getTimezoneOffset(),Z=P<0?"+":"-",ne=Math.floor(Math.abs(P/60)),fe=Math.abs(P%60),Se=[Z,K(ne),"'",K(fe),"'"].join("");return["D:",w.getFullYear(),K(w.getMonth()+1),K(w.getDate()),K(w.getHours()),K(w.getMinutes()),K(w.getSeconds()),Se].join("")},de=f.__private__.convertPDFDateToDate=function(w){var P=parseInt(w.substr(2,4),10),Z=parseInt(w.substr(6,2),10)-1,ne=parseInt(w.substr(8,2),10),fe=parseInt(w.substr(10,2),10),Se=parseInt(w.substr(12,2),10),ke=parseInt(w.substr(14,2),10);return new Date(P,Z,ne,fe,Se,ke,0)},ue=f.__private__.setCreationDate=function(w){var P;if(w===void 0&&(w=new Date),w instanceof Date)P=Q(w);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(w))throw new Error("Invalid argument passed to jsPDF.setCreationDate");P=w}return te=P},E=f.__private__.getCreationDate=function(w){var P=te;return w==="jsDate"&&(P=de(te)),P};f.setCreationDate=function(w){return ue(w),this},f.getCreationDate=function(w){return E(w)};var H,K=f.__private__.padd2=function(w){return("0"+parseInt(w)).slice(-2)},ee=f.__private__.padd2Hex=function(w){return("00"+(w=w.toString())).substr(w.length)},J=0,ie=[],ge=[],ye=0,ve=[],je=[],Le=!1,Te=ge;f.__private__.setCustomOutputDestination=function(w){Le=!0,Te=w};var Ue=function(w){Le||(Te=w)};f.__private__.resetCustomOutputDestination=function(){Le=!1,Te=ge};var W=f.__private__.out=function(w){return w=w.toString(),ye+=w.length+1,Te.push(w),Te},we=f.__private__.write=function(w){return W(arguments.length===1?w.toString():Array.prototype.join.call(arguments," "))},nt=f.__private__.getArrayBuffer=function(w){for(var P=w.length,Z=new ArrayBuffer(P),ne=new Uint8Array(Z);P--;)ne[P]=w.charCodeAt(P);return Z},Fe=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];f.__private__.getStandardFonts=function(){return Fe};var Ne=e.fontSize||16;f.__private__.setFontSize=f.setFontSize=function(w){return Ne=k===_?w/dt:w,this};var st,Ie=f.__private__.getFontSize=f.getFontSize=function(){return k===S?Ne:Ne*dt},Ge=e.R2L||!1;f.__private__.setR2L=f.setR2L=function(w){return Ge=w,this},f.__private__.getR2L=f.getR2L=function(){return Ge};var He,$t=f.__private__.setZoomMode=function(w){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(w))st=w;else if(isNaN(w)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(w)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+w+'" is not recognized.');st=w}else st=parseInt(w,10)};f.__private__.getZoomMode=function(){return st};var Et,ot=f.__private__.setPageMode=function(w){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(w)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+w+'" is not recognized.');He=w};f.__private__.getPageMode=function(){return He};var wt=f.__private__.setLayoutMode=function(w){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(w)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+w+'" is not recognized.');Et=w};f.__private__.getLayoutMode=function(){return Et},f.__private__.setDisplayMode=f.setDisplayMode=function(w,P,Z){return $t(w),wt(P),ot(Z),this};var Lt={title:"",subject:"",author:"",keywords:"",creator:""};f.__private__.getDocumentProperty=function(w){if(Object.keys(Lt).indexOf(w)===-1)throw new Error("Invalid argument passed to
462jsPDF.getDocumentProperty");return Lt[w]},f.__private__.getDocumentProperties=function(){return Lt},f.__private__.setDocumentProperties=f.setProperties=f.setDocumentProperties=function(w){for(var P in Lt)Lt.hasOwnProperty(P)&&w[P]&&(Lt[P]=w[P]);return this},f.__private__.setDocumentProperty=function(w,P){if(Object.keys(Lt).indexOf(w)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Lt[w]=P};var Ke,dt,Ze,vn,Pt,ht={},St={},Gt=[],at={},sn={},lt={},pt={},un=null,_t=0,Qe=[],qt=new f6(f),ct=e.hotfixes||[],yt={},Mt={},En=[],We=function w(P,Z,ne,fe,Se,ke){if(!(this instanceof w))return new w(P,Z,ne,fe,Se,ke);isNaN(P)&&(P=1),isNaN(Z)&&(Z=0),isNaN(ne)&&(ne=0),isNaN(fe)&&(fe=1),isNaN(Se)&&(Se=0),isNaN(ke)&&(ke=0),this._matrix=[P,Z,ne,fe,Se,ke]};Object.defineProperty(We.prototype,"sx",{get:function(){return this._matrix[0]},set:function(w){this._matrix[0]=w}}),Object.defineProperty(We.prototype,"shy",{get:function(){return this._matrix[1]},set:function(w){this._matrix[1]=w}}),Object.defineProperty(We.prototype,"shx",{get:function(){return this._matrix[2]},set:function(w){this._matrix[2]=w}}),Object.defineProperty(We.prototype,"sy",{get:function(){return this._matrix[3]},set:function(w){this._matrix[3]=w}}),Object.defineProperty(We.prototype,"tx",{get:function(){return this._matrix[4]},set:function(w){this._matrix[4]=w}}),Object.defineProperty(We.prototype,"ty",{get:function(){return this._matrix[5]},set:function(w){this._matrix[5]=w}}),Object.defineProperty(We.prototype,"a",{get:function(){return this._matrix[0]},set:function(w){this._matrix[0]=w}}),Object.defineProperty(We.prototype,"b",{get:function(){return this._matrix[1]},set:function(w){this._matrix[1]=w}}),Object.defineProperty(We.prototype,"c",{get:function(){return this._matrix[2]},set:function(w){this._matrix[2]=w}}),Object.defineProperty(We.prototype,"d",{get:function(){return this._matrix[3]},set:function(w){this._matrix[3]=w}}),Object.defineProperty(We.prototype,"e",{get:function(){return this._matrix[4]},set:function(w){this._matrix[4]=w}}),Object.defineProperty(We.prototype,"f",{get:function(){return this._matrix[5]},set:function(w){this._matrix[5]=w}}),Object.defineProperty(We.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(We.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(We.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(We.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),We.prototype.join=function(w){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(I).join(w)},We.prototype.multiply=function(w){var P=w.sx*this.sx+w.shy*this.shx,Z=w.sx*this.shy+w.shy*this.sy,ne=w.shx*this.sx+w.sy*this.shx,fe=w.shx*this.shy+w.sy*this.sy,Se=w.tx*this.sx+w.ty*this.shx+this.tx,ke=w.tx*this.shy+w.ty*this.sy+this.ty;return new We(P,Z,ne,fe,Se,ke)},We.prototype.decompose=function(){var w=this.sx,P=this.shy,Z=this.shx,ne=this.sy,fe=this.tx,Se=this.ty,ke=Math.sqrt(w*w+P*P),qe=(w/=ke)*Z+(P/=ke)*ne;Z-=w*qe,ne-=P*qe;var Je=Math.sqrt(Z*Z+ne*ne);return qe/=Je,w*(ne/=Je)<P*(Z/=Je)&&(w=-w,P=-P,qe=-qe,ke=-ke),{scale:new We(ke,0,0,Je,0,0),translate:new We(1,0,0,1,fe,Se),rotate:new We(w,P,-P,w,0,0),skew:new We(1,0,qe,1,0,0)}},We.prototype.toString=function(w){return this.join(" ")},We.prototype.inversed=function(){var w=this.sx,P=this.shy,Z=this.shx,ne=this.sy,fe=this.tx,Se=this.ty,ke=1/(w*ne-P*Z),qe=ne*ke,Je=-P*ke,mt=-Z*ke,Nt=w*ke;return new We(qe,Je,mt,Nt,-qe*fe-mt*Se,-Je*fe-Nt*Se)},We.prototype.applyToPoint=function(w){var P=w.x*this.sx+w.y*this.shx+this.tx,Z=w.x*this.shy+w.y*this.sy+this.ty;return new wo(P,Z)},We.prototype.applyToRectangle=function(w){var P=this.applyToPoint(w),Z=this.applyToPoint(new wo(w.x+w.w,w.y+w.h));return new Dd(P.x,P.y,Z.x-P.x,Z.y-P.y)},We.prototype.clone=function(){var w=this.sx,P=this.shy,Z=this.shx,ne=this.sy,fe=this.tx,Se=this.ty;return new We(w,P,Z,ne,fe,Se)},f.Matrix=We;var ur=f.matrixMult=function(w,P){return P.multiply(w)},yr=new We(1,0,0,1,0,0);f.unitMatrix=f.identityMatrix=yr;var bn=function(w,P){if(!sn[w]){var Z=(P instanceof zl?"Sh":"P")+(Object.keys(at).length+1).toString(10);P.id=Z,sn[w]=Z,at[Z]=P,qt.publish("addPattern",P)}};f.ShadingPattern=zl,f.TilingPattern=bu,f.addShadingPattern=function(w,P){return R("addShadingPattern()"),bn(w,P),this},f.beginTilingPattern=function(w){R("beginTilingPattern()"),Bd(w.boundingBox[0],w.boundingBox[1],w.boundingBox[2]-w.boundingBox[0],w.boundingBox[3]-w.boundingBox[1],w.matrix)},f.endTilingPattern=function(w,P){R("endTilingPattern()"),P.stream=je[H].join(`
463`),bn(w,P),qt.publish("endTilingPattern",P),En.pop().restore()};var Mn,Ln=f.__private__.newObject=function(){var w=dr();return xr(w,!0),w},dr=f.__private__.newObjectDeferred=function(){return J++,ie[J]=function(){return ye},J},xr=function(w,P){return P=typeof P=="boolean"&&P,ie[w]=ye,P&&W(w+" 0 obj"),w},yl=f.__private__.newAdditionalObject=function(){var w={objId:dr(),content:""};return ve.push(w),w},na=dr(),ls=dr(),Bs=f.__private__.decodeColorString=function(w){var P=w.split(" ");if(P.length!==2||P[1]!=="g"&&P[1]!=="G")P.length!==5||P[4]!=="k"&&P[4]!=="K"||(P=[(1-P[0])*(1-P[3]),(1-P[1])*(1-P[3]),(1-P[2])*(1-P[3]),"r"]);else{var Z=parseFloat(P[0]);P=[Z,Z,Z,"r"]}for(var ne="#",fe=0;fe<3;fe++)ne+=("0"+Math.floor(255*parseFloat(P[fe])).toString(16)).slice(-2);return ne},cs=f.__private__.encodeColorString=function(w){var P;typeof w=="string"&&(w={ch1:w});var Z=w.ch1,ne=w.ch2,fe=w.ch3,Se=w.ch4,ke=w.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof Z=="string"&&Z.charAt(0)!=="#"){var qe=new LP(Z);if(qe.ok)Z=qe.toHex();else if(!/^\d*\.?\d*$/.test(Z))throw new Error('Invalid color "'+Z+'" passed to jsPDF.encodeColorString.')}if(typeof Z=="string"&&/^#[0-9A-Fa-f]{3}$/.test(Z)&&(Z="#"+Z[1]+Z[1]+Z[2]+Z[2]+Z[3]+Z[3]),typeof Z=="string"&&/^#[0-9A-Fa-f]{6}$/.test(Z)){var Je=parseInt(Z.substr(1),16);Z=Je>>16&255,ne=Je>>8&255,fe=255&Je}if(ne===void 0||Se===void 0&&Z===ne&&ne===fe)P=typeof Z=="string"?Z+" "+ke[0]:w.precision===2?C(Z/255)+" "+ke[0]:L(Z/255)+" "+ke[0];else if(Se===void 0||tn(Se)==="object"){if(Se&&!isNaN(Se.a)&&Se.a===0)return["1.","1.","1.",ke[1]].join(" ");P=typeof Z=="string"?[Z,ne,fe,ke[1]].join(" "):w.precision===2?[C(Z/255),C(ne/255),C(fe/255),ke[1]].join(" "):[L(Z/255),L(ne/255),L(fe/255),ke[1]].join(" ")}else P=typeof Z=="string"?[Z,ne,fe,Se,ke[2]].join(" "):w.precision===2?[C(Z),C(ne),C(fe),C(Se),ke[2]].join(" "):[L(Z),L(ne),L(fe),L(Se),ke[2]].join(" ");return P},us=f.__private__.getFilters=function(){return o},Ui=f.__private__.putStream=function(w){var P=(w=w||{}).data||"",Z=w.filters||us(),ne=w.alreadyAppliedFilters||[],fe=w.addLength1||!1,Se=P.length,ke=w.objectId,qe=function(er){return er};if(d!==null&&ke===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");d!==null&&(qe=Jn.encryptor(ke,0));var Je={};Z===!0&&(Z=["FlateEncode"]);var mt=w.additionalKeyValues||[],Nt=(Je=it.API.processDataByFilters!==void 0?it.API.processDataByFilters(P,Z):{data:P,reverseChain:[]}).reverseChain+(Array.isArray(ne)?ne.join(" "):ne.toString());if(Je.data.length!==0&&(mt.push({key:"Length",value:Je.data.length}),fe===!0&&mt.push({key:"Length1",value:Se})),Nt.length!=0)if(Nt.split("/").length-1==1)mt.push({key:"Filter",value:Nt});else{mt.push({key:"Filter",value:"["+Nt+"]"});for(var Dt=0;Dt<mt.length;Dt+=1)if(mt[Dt].key==="DecodeParms"){for(var _n=[],Gn=0;Gn<Je.reverseChain.split("/").length-1;Gn+=1)_n.push("null");_n.push(mt[Dt].value),mt[Dt].value="["+_n.join(" ")+"]"}}W("<<");for(var dn=0;dn<mt.length;dn++)W("/"+mt[dn].key+" "+mt[dn].value);W(">>"),Je.data.length!==0&&(W("stream"),W(qe(Je.data)),W("endstream"))},xl=f.__private__.putPage=function(w){var P=w.number,Z=w.data,ne=w.objId,fe=w.contentsObjId;xr(ne,!0),W("<</Type /Page"),W("/Parent "+w.rootDictionaryObjId+" 0 R"),W("/Resources "+w.resourceDictionaryObjId+" 0 R"),W("/MediaBox ["+parseFloat(I(w.mediaBox.bottomLeftX))+" "+parseFloat(I(w.mediaBox.bottomLeftY))+" "+I(w.mediaBox.topRightX)+" "+I(w.mediaBox.topRightY)+"]"),w.cropBox!==null&&W("/CropBox ["+I(w.cropBox.bottomLeftX)+" "+I(w.cropBox.bottomLeftY)+" "+I(w.cropBox.topRightX)+" "+I(w.cropBox.topRightY)+"]"),w.bleedBox!==null&&W("/BleedBox ["+I(w.bleedBox.bottomLeftX)+" "+I(w.bleedBox.bottomLeftY)+" "+I(w.bleedBox.topRightX)+" "+I(w.bleedBox.topRightY)+"]"),w.trimBox!==null&&W("/TrimBox ["+I(w.trimBox.bottomLeftX)+" "+I(w.trimBox.bottomLeftY)+" "+I(w.trimBox.topRightX)+" "+I(w.trimBox.topRightY)+"]"),w.artBox!==null&&W("/ArtBox ["+I(w.artBox.bottomLeftX)+" "+I(w.artBox.bottomLeftY)+" "+I(w.artBox.topRightX)+" "+I(w.artBox.topRightY)+"]"),typeof w.userUnit=="number"&&w.userUnit!==1&&W("/UserUnit "+w.userUnit),qt.publish("putPage",{objId:ne,page
vendor: 14,098 bytes, lines 463-468
463Context:Qe[P],pageNumber:P,page:Z}),W("/Contents "+fe+" 0 R"),W(">>"),W("endobj");var Se=Z.join(` 464`);return k===_&&(Se+=` 465Q`),xr(fe,!0),Ui({data:Se,filters:us(),objectId:fe}),W("endobj"),ne},zs=f.__private__.putPages=function(){var w,P,Z=[];for(w=1;w<=_t;w++)Qe[w].objId=dr(),Qe[w].contentsObjId=dr();for(w=1;w<=_t;w++)Z.push(xl({number:w,data:je[w],objId:Qe[w].objId,contentsObjId:Qe[w].contentsObjId,mediaBox:Qe[w].mediaBox,cropBox:Qe[w].cropBox,bleedBox:Qe[w].bleedBox,trimBox:Qe[w].trimBox,artBox:Qe[w].artBox,userUnit:Qe[w].userUnit,rootDictionaryObjId:na,resourceDictionaryObjId:ls}));xr(na,!0),W("<</Type /Pages");var ne="/Kids [";for(P=0;P<_t;P++)ne+=Z[P]+" 0 R ";W(ne+"]"),W("/Count "+_t),W(">>"),W("endobj"),qt.publish("postPutPages")},vl=function(w){qt.publish("putFont",{font:w,out:W,newObject:Ln,putStream:Ui}),w.isAlreadyPutted!==!0&&(w.objectNumber=Ln(),W("<<"),W("/Type /Font"),W("/BaseFont /"+ru(w.postScriptName)),W("/Subtype /Type1"),typeof w.encoding=="string"&&W("/Encoding /"+w.encoding),W("/FirstChar 32"),W("/LastChar 255"),W(">>"),W("endobj"))},Rc=function(w){w.objectNumber=Ln();var P=[];P.push({key:"Type",value:"/XObject"}),P.push({key:"Subtype",value:"/Form"}),P.push({key:"BBox",value:"["+[I(w.x),I(w.y),I(w.x+w.width),I(w.y+w.height)].join(" ")+"]"}),P.push({key:"Matrix",value:"["+w.matrix.toString()+"]"});var Z=w.pages[1].join(` 466`);Ui({data:Z,additionalKeyValues:P,objectId:w.objectNumber}),W("endobj")},Oc=function(w,P){P||(P=21);var Z=Ln(),ne=function(ke,qe){var Je,mt=[],Nt=1/(qe-1);for(Je=0;Je<1;Je+=Nt)mt.push(Je);if(mt.push(1),ke[0].offset!=0){var Dt={offset:0,color:ke[0].color};ke.unshift(Dt)}if(ke[ke.length-1].offset!=1){var _n={offset:1,color:ke[ke.length-1].color};ke.push(_n)}for(var Gn="",dn=0,er=0;er<mt.length;er++){for(Je=mt[er];Je>ke[dn+1].offset;)dn++;var Kn=ke[dn].offset,vr=(Je-Kn)/(ke[dn+1].offset-Kn),No=ke[dn].color,fs=ke[dn+1].color;Gn+=ee(Math.round((1-vr)*No[0]+vr*fs[0]).toString(16))+ee(Math.round((1-vr)*No[1]+vr*fs[1]).toString(16))+ee(Math.round((1-vr)*No[2]+vr*fs[2]).toString(16))}return Gn.trim()}(w.colors,P),fe=[];fe.push({key:"FunctionType",value:"0"}),fe.push({key:"Domain",value:"[0.0 1.0]"}),fe.push({key:"Size",value:"["+P+"]"}),fe.push({key:"BitsPerSample",value:"8"}),fe.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),fe.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Ui({data:ne,additionalKeyValues:fe,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:Z}),W("endobj"),w.objectNumber=Ln(),W("<< /ShadingType "+w.type),W("/ColorSpace /DeviceRGB");var Se="/Coords ["+I(parseFloat(w.coords[0]))+" "+I(parseFloat(w.coords[1]))+" ";w.type===2?Se+=I(parseFloat(w.coords[2]))+" "+I(parseFloat(w.coords[3])):Se+=I(parseFloat(w.coords[2]))+" "+I(parseFloat(w.coords[3]))+" "+I(parseFloat(w.coords[4]))+" "+I(parseFloat(w.coords[5])),W(Se+="]"),w.matrix&&W("/Matrix ["+w.matrix.toString()+"]"),W("/Function "+Z+" 0 R"),W("/Extend [true true]"),W(">>"),W("endobj")},Ic=function(w,P){var Z=dr(),ne=Ln();P.push({resourcesOid:Z,objectOid:ne}),w.objectNumber=ne;var fe=[];fe.push({key:"Type",value:"/Pattern"}),fe.push({key:"PatternType",value:"1"}),fe.push({key:"PaintType",value:"1"}),fe.push({key:"TilingType",value:"1"}),fe.push({key:"BBox",value:"["+w.boundingBox.map(I).join(" ")+"]"}),fe.push({key:"XStep",value:I(w.xStep)}),fe.push({key:"YStep",value:I(w.yStep)}),fe.push({key:"Resources",value:Z+" 0 R"}),w.matrix&&fe.push({key:"Matrix",value:"["+w.matrix.toString()+"]"}),Ui({data:w.stream,additionalKeyValues:fe,objectId:w.objectNumber}),W("endobj")},o1=function(w){for(var P in w.objectNumber=Ln(),W("<<"),w)switch(P){case"opacity":W("/ca "+C(w[P]));break;case"stroke-opacity":W("/CA "+C(w[P]))}W(">>"),W("endobj")},Ld=function(w){xr(w.resourcesOid,!0),W("<<"),W("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var P in W("/Font <<"),ht)ht.hasOwnProperty(P)&&(h===!1||h===!0&&m.hasOwnProperty(P))&&W("/"+P+" "+ht[P].objectNumber+" 0 R");W(">>")}(),function(){if(Object.keys(at).length>0){for(var P in W("/Shading <<"),at)at.hasOwnProperty(P)&&at[P]instanceof zl&&at[P].objectNumber>=0&&W("/"+P+" "+at[P].objectNumber+" 0 R");qt.publish("putShadingPatternDict"),W(">>")}}(),function(P){if(Object.keys(at).length>0){for(var Z in W("/Pattern <<"),at)at.hasOwnProperty(Z)&&at[Z]instanceof f.TilingPattern&&at[Z].objectNumber>=0&&at[Z].objectNumber<P&&W("/"+Z+" "+at[Z].objectNumber+" 0 R");qt.publish("putTilingPatternDict"),W(">>")}}(w.objectOid),function(){if(Object.keys(lt).length>0){var P;for(P in W("/ExtGState <<"),lt)lt.hasOwnProperty(P)&<[P].objectNumber>=0&&W("/"+P+" "+lt[P].objectNumber+" 0 R");qt.publish("putGStateDict"),W(">>")}}(),function(){for(var P in W("/XObject <<"),yt)yt.hasOwnProperty(P)&&yt[P].objectNumber>=0&&W("/"+P+" "+yt[P].objectNumber+" 0 R");qt.publish("putXobjectDict"),W(">>")}(),W(">>"),W("endobj")},ap=function(w){St[w.fontName]=St[w.fontName]||{},St[w.fontName][w.fontStyle]=w.id},lp=function(w,P,Z,ne,fe){var Se={id:"F"+(Object.keys(ht).length+1).toString(10),postScriptName:w,fontName:P,fontStyle:Z,encoding:ne,isStandardFont:fe||!1,metadata:{}};return qt.publish("addFont",{font:Se,instance:this}),ht[Se.id]=Se,ap(Se),Se.id},Vi=f.__private__.pdfEscape=f.pdfEscape=function(w,P){return function(Z,ne){var fe,Se,ke,qe,Je,mt,Nt,Dt,_n;if(ke=(ne=ne||{}).sourceEncoding||"Unicode",Je=ne.outputEncoding,(ne.autoencode||Je)&&ht[Ke].metadata&&ht[Ke].metadata[ke]&&ht[Ke].metadata[ke].encoding&&(qe=ht[Ke].metadata[ke].encoding,!Je&&ht[Ke].encoding&&(Je=ht[Ke].encoding),!Je&&qe.codePages&&(Je=qe.codePages[0]),typeof Je=="string"&&(Je=qe[Je]),Je)){for(Nt=!1,mt=[],fe=0,Se=Z.length;fe<Se;fe++)(Dt=Je[Z.charCodeAt(fe)])?mt.push(String.fromCharCode(Dt)):mt.push(Z[fe]),mt[fe].charCodeAt(0)>>8&&(Nt=!0);Z=mt.join("")}for(fe=Z.length;Nt===void 0&&fe!==0;)Z.charCodeAt(fe-1)>>8&&(Nt=!0),fe--;if(!Nt)return Z;for(mt=ne.noBOM?[]:[254,255],fe=0,Se=Z.length;fe<Se;fe++){if((_n=(Dt=Z.charCodeAt(fe))>>8)>>8)throw new Error("Character at position "+fe+" of string '"+Z+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");mt.push(_n),mt.push(Dt-(_n<<8))}return String.fromCharCode.apply(void 0,mt)}(w,P).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Pd=f.__private__.beginPage=function(w){je[++_t]=[],Qe[_t]={objId:0,contentsObjId:0,userUnit:Number(a),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(w[0]),topRightY:Number(w[1])}},up(_t),Ue(je[H])},cp=function(w,P){var Z,ne,fe;switch(n=P||n,typeof w=="string"&&(Z=y(w.toLowerCase()),Array.isArray(Z)&&(ne=Z[0],fe=Z[1])),Array.isArray(w)&&(ne=w[0]*dt,fe=w[1]*dt),isNaN(ne)&&(ne=i[0],fe=i[1]),(ne>14400||fe>14400)&&(ln.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),ne=Math.min(14400,ne),fe=Math.min(14400,fe)),i=[ne,fe],n.substr(0,1)){case"l":fe>ne&&(i=[fe,ne]);break;case"p":ne>fe&&(i=[fe,ne])}Pd(i),xt(Od),W(Bc),Md!==0&&W(Md+" J"),Fd!==0&&W(Fd+" j"),qt.publish("addPage",{pageNumber:_t})},Td=function(w){w>0&&w<=_t&&(je.splice(w,1),Qe.splice(w,1),_t--,H>_t&&(H=_t),this.setPage(H))},up=function(w){w>0&&w<=_t&&(H=w)},dp=f.__private__.getNumberOfPages=f.getNumberOfPages=function(){return je.length-1},fp=function(w,P,Z){var ne,fe=void 0;return Z=Z||{},w=w!==void 0?w:ht[Ke].fontName,P=P!==void 0?P:ht[Ke].fontStyle,ne=w.toLowerCase(),St[ne]!==void 0&&St[ne][P]!==void 0?fe=St[ne][P]:St[w]!==void 0&&St[w][P]!==void 0?fe=St[w][P]:Z.disableWarning===!1&&ln.warn("Unable to look up font label for font '"+w+"', '"+P+"'. Refer to getFontList() for available fonts."),fe||Z.noFallback||(fe=St.times[P])==null&&(fe=St.times.normal),fe},Us=f.__private__.putInfo=function(){var w=Ln(),P=function(ne){return ne};for(var Z in d!==null&&(P=Jn.encryptor(w,0)),W("<<"),W("/Producer ("+Vi(P("jsPDF "+it.version))+")"),Lt)Lt.hasOwnProperty(Z)&&Lt[Z]&&W("/"+Z.substr(0,1).toUpperCase()+Z.substr(1)+" ("+Vi(P(Lt[Z]))+")");W("/CreationDate ("+Vi(P(te))+")"),W(">>"),W("endobj")},Mc=f.__private__.putCatalog=function(w){var P=(w=w||{}).rootDictionaryObjId||na;switch(Ln(),W("<<"),W("/Type /Catalog"),W("/Pages "+P+" 0 R"),st||(st="fullwidth"),st){case"fullwidth":W("/OpenAction [3 0 R /FitH null]");break;case"fullheight":W("/OpenAction [3 0 R /FitV null]");break;case"fullpage":W("/OpenAction [3 0 R /Fit]");break;case"original":W("/OpenAction [3 0 R /XYZ null null 1]");break;default:var Z=""+st;Z.substr(Z.length-1)==="%"&&(st=parseInt(st)/100),typeof st=="number"&&W("/OpenAction [3 0 R /XYZ null null "+C(st)+"]")}switch(Et||(Et="continuous"),Et){case"continuous":W("/PageLayout /OneColumn");break;case"single":W("/PageLayout /SinglePage");break;case"two":case"twoleft":W("/PageLayout /TwoColumnLeft");break;case"tworight":W("/PageLayout /TwoColumnRight")}He&&W("/PageMode /"+He),qt.publish("putCatalog"),W(">>"),W("endobj")},a1=f.__private__.putTrailer=function(){W("trailer"),W("<<"),W("/Size "+(J+1)),W("/Root "+J+" 0 R"),W("/Info "+(J-1)+" 0 R"),d!==null&&W("/Encrypt "+Jn.oid+" 0 R"),W("/ID [ <"+re+"> <"+re+"> ]"),W(">>")},Wn=f.__private__.putHeader=function(){W("%PDF-"+x),W("%ºÃˆ ")},hp=f.__private__.putXRef=function(){var w="0000000000";W("xref"),W("0 "+(J+1)),W("0000000000 65535 f ");for(var P=1;P<=J;P++)typeof ie[P]=="function"?W((w+ie[P]()).slice(-10)+" 00000 n "):ie[P]!==void 0?W((w+ie[P]).slice(-10)+" 00000 n "):W("0000000000 00000 n ")},Vs=f.__private__.buildDocument=function(){var w;J=0,ye=0,ge=[],ie=[],ve=[],na=dr(),ls=dr(),Ue(ge),qt.publish("buildDocument"),Wn(),zs(),function(){qt.publish("putAdditionalObjects");for(var Z=0;Z<ve.length;Z++){var ne=ve[Z];xr(ne.objId,!0),W(ne.content),W("endobj")}qt.publish("postPutAdditionalObjects")}(),w=[],function(){for(var Z in ht)ht.hasOwnProperty(Z)&&(h===!1||h===!0&&m.hasOwnProperty(Z))&&vl(ht[Z])}(),function(){var Z;for(Z in lt)lt.hasOwnProperty(Z)&&o1(lt[Z])}(),function(){for(var Z in yt)yt.hasOwnProperty(Z)&&Rc(yt[Z])}(),function(Z){var ne;for(ne in at)at.hasOwnProperty(ne)&&(at[ne]instanceof zl?Oc(at[ne]):at[ne]instanceof bu&&Ic(at[ne],Z))}(w),qt.publish("putResources"),w.forEach(Ld),Ld({resourcesOid:ls,objectOid:Number.MAX_SAFE_INTEGER}),qt.publish("postPutResources"),d!==null&&(Jn.oid=Ln(),W("<<"),W("/Filter /Standard"),W("/V "+Jn.v),W("/R "+Jn.r),W("/U <"+Jn.toHexString(Jn.U)+">"),W("/O <"+Jn.toHexString(Jn.O)+">"),W("/P "+Jn.P),W(">>"),W("endobj")),Us(),Mc();var P=ye;return hp(),a1(),W("startxref"),W(""+P),W("%%EOF"),Ue(je[H]),ge.join(` 467`)},Fc=f.__private__.getBlob=function(w){return new Blob([nt(w)],{type:"application/pdf"})},pp=f.output=f.__private__.output=(Mn=function(w,P){switch(typeof(P=P||{})=="string"?P={filename:P}:P.filename=P.filename||"generated.pdf",w){case void 0:return Vs();case"save":f.save(P.filename);break;case"arraybuffer":return nt(Vs());case"blob":return Fc(Vs());case"bloburi":case"bloburl":if(ft.URL!==void 0&&typeof ft.URL.createObjectURL=="function")return ft.URL&&ft.URL.createObjectURL(Fc(Vs()))||void 0;ln.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var Z="",ne=Vs();try{Z=c6(ne)}catch{Z=c6(unescape(encodeURIComponent(ne)))}return"data:application/pdf;filename="+P.filename+";base64,"+Z;case"pdfobjectnewwindow":if(Object.prototype.toString.call(ft)==="[object Window]"){var fe="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Se=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';P.pdfObjectUrl&&(fe=P.pdfObjectUrl,Se="");var ke='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+fe+'"'+Se+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(P)+");<\/script></body></html>",qe=ft.open();return qe!==null&&qe.document.write(ke),qe}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(ft)==="[object Window]"){var Je='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(P.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+P.filename+'" width="500px" height="400px" /></body></html>',mt=ft.open();if(mt!==null){mt.document.write(Je);var Nt=this;mt.document.documentElement.querySelector("#pdfViewer").onload=function(){mt.document.title=P.filename,mt.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Nt.output("bloburl"))}}return mt}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(ft)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Dt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",P)+'"></iframe></body></html>',_n=ft.open();if(_n!==null&&(_n.document.write(Dt),_n.document.title=P.filename),_n||typeof safari>"u")return _n;break;case"datauri":case"dataurl":return ft.document.location.href=this.output("datauristring",P);default:return null}},Mn.foo=function(){try{return Mn.apply(this,arguments)}catch(Z){var w=Z.stack||"";~w.indexOf(" at ")&&(w=w.split(" at ")[1]);var P="Error in function "+w.split(` 468`)[0].split("<")[0]+": "+Z.message;if(!ft.console)throw new Error(P);ft.console.error(P,Z),ft.alert&&alert(P)}},Mn.foo.bar=Mn,Mn.foo),$i=function(w){return Array.isArray(ct)===!0&&ct.indexOf(w)>-1};switch(r){case"pt":dt=1;break;case"mm":dt=72/25.4;break;case"cm":dt=72/2.54;break;case"in":dt=72;break;case"px":dt=$i("px_scaling")==1?.75:96/72;break;case"pc":case"em":dt=12;break;case"ex":dt=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);dt=r}var Jn=null;ue(),G();var yo=f.__private__.getPageInfo=f.getPageInfo=function(w){if(isNaN(w)||w%1!=0)throw new Error("Invalid argument passed to
468jsPDF.getPageInfo");return{objId:Qe[w].objId,pageNumber:w,pageContext:Qe[w]}},mp=f.__private__.getPageInfoByObjId=function(w){if(isNaN(w)||w%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var P in Qe)if(Qe[P].objId===w)break;return yo(P)},l1=f.__private__.getCurrentPageInfo=f.getCurrentPageInfo=function(){return{objId:Qe[H].objId,pageNumber:H,pageContext:Qe[H]}};f.addPage=function(){return cp.apply(this,arguments),this},f.setPage=function(){return up.apply(this,arguments),Ue.call(this,je[H]),this},f.insertPage=function(w){return this.addPage(),this.movePage(H,w),this},f.movePage=function(w,P){var Z,ne;if(w>P){Z=je[w],ne=Qe[w];for(var fe=w;fe>P;fe--)je[fe]=je[fe-1],Qe[fe]=Qe[fe-1];je[P]=Z,Qe[P]=ne,this.setPage(P)}else if(w<P){Z=je[w],ne=Qe[w];for(var Se=w;Se<P;Se++)je[Se]=je[Se+1],Qe[Se]=Qe[Se+1];je[P]=Z,Qe[P]=ne,this.setPage(P)}return this},f.deletePage=function(){return Td.apply(this,arguments),this},f.__private__.text=f.text=function(w,P,Z,ne,fe){var Se,ke,qe,Je,mt,Nt,Dt,_n,Gn,dn=(ne=ne||{}).scope||this;if(typeof w=="number"&&typeof P=="number"&&(typeof Z=="string"||Array.isArray(Z))){var er=Z;Z=P,P=w,w=er}if(arguments[3]instanceof We==0?(qe=arguments[4],Je=arguments[5],tn(Dt=arguments[3])==="object"&&Dt!==null||(typeof qe=="string"&&(Je=qe,qe=null),typeof Dt=="string"&&(Je=Dt,Dt=null),typeof Dt=="number"&&(qe=Dt,Dt=null),ne={flags:Dt,angle:qe,align:Je})):(R("The transform parameter of text() with a Matrix value"),Gn=fe),isNaN(P)||isNaN(Z)||w==null)throw new Error("Invalid arguments passed to jsPDF.text");if(w.length===0)return dn;var Kn,vr="",No=typeof ne.lineHeightFactor=="number"?ne.lineHeightFactor:wl,fs=dn.internal.scaleFactor;function ko(Xt){return Xt=Xt.split(" ").join(Array(ne.TabLen||9).join(" ")),Vi(Xt,Dt)}function Ud(Xt){for(var on,Dn=Xt.concat(),tr=[],Co=Dn.length;Co--;)typeof(on=Dn.shift())=="string"?tr.push(on):Array.isArray(Xt)&&(on.length===1||on[1]===void 0&&on[2]===void 0)?tr.push(on[0]):tr.push([on[0],on[1],on[2]]);return tr}function Uc(Xt,on){var Dn;if(typeof Xt=="string")Dn=on(Xt)[0];else if(Array.isArray(Xt)){for(var tr,Co,Zd=Xt.concat(),qc=[],Ap=Zd.length;Ap--;)typeof(tr=Zd.shift())=="string"?qc.push(on(tr)[0]):Array.isArray(tr)&&typeof tr[0]=="string"&&(Co=on(tr[0],tr[1],tr[2]),qc.push([Co[0],Co[1],Co[2]]));Dn=qc}return Dn}var ra=!1,kl=!0;if(typeof w=="string")ra=!0;else if(Array.isArray(w)){var Al=w.concat();ke=[];for(var ia,br=Al.length;br--;)(typeof(ia=Al.shift())!="string"||Array.isArray(ia)&&typeof ia[0]!="string")&&(kl=!1);ra=kl}if(ra===!1)throw new Error('Type of text must be string or Array. "'+w+'" is not recognized.');typeof w=="string"&&(w=w.match(/[\r?\n]/)?w.split(/\r\n|\r|\n/g):[w]);var jl=Ne/dn.internal.scaleFactor,Cl=jl*(No-1);switch(ne.baseline){case"bottom":Z-=Cl;break;case"top":Z+=jl-Cl;break;case"hanging":Z+=jl-2*Cl;break;case"middle":Z+=jl/2-Cl}if((Nt=ne.maxWidth||0)>0&&(typeof w=="string"?w=dn.splitTextToSize(w,Nt):Object.prototype.toString.call(w)==="[object Array]"&&(w=w.reduce(function(Xt,on){return Xt.concat(dn.splitTextToSize(on,Nt))},[]))),Se={text:w,x:P,y:Z,options:ne,mutex:{pdfEscape:Vi,activeFontKey:Ke,fonts:ht,activeFontSize:Ne}},qt.publish("preProcessText",Se),w=Se.text,qe=(ne=Se.options).angle,Gn instanceof We==0&&qe&&typeof qe=="number"){qe*=Math.PI/180,ne.rotationDirection===0&&(qe=-qe),k===_&&(qe=-qe);var Vd=Math.cos(qe),$d=Math.sin(qe);Gn=new We(Vd,$d,-$d,Vd,0,0)}else qe&&qe instanceof We&&(Gn=qe);k!==_||Gn||(Gn=yr),(mt=ne.charSpace||bo)!==void 0&&(vr+=I(D(mt))+` Tc 469`,this.setCharSpace(this.getCharSpace()||0)),(_n=ne.horizontalScale)!==void 0&&(vr+=I(100*_n)+` Tz 470`),ne.lang;var $r=-1,Ao=ne.renderingMode!==void 0?ne.renderingMode:ne.stroke,Vc=dn.internal.getCurrentPageInfo().pageContext;switch(Ao){case 0:case!1:case"fill":$r=0;break;case 1:case!0:case"stroke":$r=1;break;case 2:case"fillThenStroke":$r=2;break;case 3:case"invisible":$r=3;break;case 4:case"fillAndAddForClipping":$r=4;break;case 5:case"strokeAndAddPathForClipping":$r=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":$r=6;break;case 7:case"addToPathForClipping":$r=7}var Np=Vc.usedRenderingMode!==void 0?Vc.usedRenderingMode:-1;$r!==-1?vr+=$r+` Tr 471`:Np!==-1&&(vr+=`0 Tr 472`),$r!==-1&&(Vc.usedRenderingMode=$r),Je=ne.align||"left";var qi,El=Ne*No,qd=dn.internal.pageSize.getWidth(),Hd=ht[Ke];mt=ne.charSpace||bo,Nt=ne.maxWidth||0,Dt=Object.assign({autoencode:!0,noBOM:!0},ne.flags);
vendor: 4,813 bytes, lines 472-482
472var sa=[],Ll=function(Xt){return dn.getStringUnitWidth(Xt,{font:Hd,charSpace:mt,fontSize:Ne,doKerning:!1})*Ne/fs};if(Object.prototype.toString.call(w)==="[object Array]"){var vi;ke=Ud(w),Je!=="left"&&(qi=ke.map(Ll));var bi,oa=0;if(Je==="right"){P-=qi[0],w=[],br=ke.length;for(var jo=0;jo<br;jo++)jo===0?(bi=xo(P),vi=vo(Z)):(bi=D(oa-qi[jo]),vi=-El),w.push([ke[jo],bi,vi]),oa=qi[jo]}else if(Je==="center"){P-=qi[0]/2,w=[],br=ke.length;for(var aa=0;aa<br;aa++)aa===0?(bi=xo(P),vi=vo(Z)):(bi=D((oa-qi[aa])/2),vi=-El),w.push([ke[aa],bi,vi]),oa=qi[aa]}else if(Je==="left"){w=[],br=ke.length;for(var Wd=0;Wd<br;Wd++)w.push(ke[Wd])}else if(Je==="justify"&&Hd.encoding==="Identity-H"){w=[],br=ke.length,Nt=Nt!==0?Nt:qd;for(var $c=0,Fn=0;Fn<br;Fn++)if(vi=Fn===0?vo(Z):-El,bi=Fn===0?xo(P):$c,Fn<br-1){var kp=D((Nt-qi[Fn])/(ke[Fn].split(" ").length-1)),qs=ke[Fn].split(" ");w.push([qs[0]+" ",bi,vi]),$c=0;for(var Hs=1;Hs<qs.length;Hs++){var Gd=(Ll(qs[Hs-1]+" "+qs[Hs])-Ll(qs[Hs]))*fs+kp;Hs==qs.length-1?w.push([qs[Hs],Gd,0]):w.push([qs[Hs]+" ",Gd,0]),$c-=Gd}}else w.push([ke[Fn],bi,vi]);w.push(["",$c,0])}else{if(Je!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(w=[],br=ke.length,Nt=Nt!==0?Nt:qd,Fn=0;Fn<br;Fn++){vi=Fn===0?vo(Z):-El,bi=Fn===0?xo(P):0;var Kd=ke[Fn].split(" ").length-1,Yd=Kd>0?(Nt-qi[Fn])/Kd:0;Fn<br-1?sa.push(I(D(Yd))):sa.push(0),w.push([ke[Fn],bi,vi])}}}(typeof ne.R2L=="boolean"?ne.R2L:Ge)===!0&&(w=Uc(w,function(Xt,on,Dn){return[Xt.split("").reverse().join(""),on,Dn]})),Se={text:w,x:P,y:Z,options:ne,mutex:{pdfEscape:Vi,activeFontKey:Ke,fonts:ht,activeFontSize:Ne}},qt.publish("postProcessText",Se),w=Se.text,Kn=Se.mutex.isHex||!1;var Xd=ht[Ke].encoding;Xd!=="WinAnsiEncoding"&&Xd!=="StandardEncoding"||(w=Uc(w,function(Xt,on,Dn){return[ko(Xt),on,Dn]})),ke=Ud(w),w=[];for(var la,ca,ua,Pl=Array.isArray(ke[0])?1:0,da="",Tl=function(Xt,on,Dn){var tr="";return Dn instanceof We?(Dn=typeof ne.angle=="number"?ur(Dn,new We(1,0,0,1,Xt,on)):ur(new We(1,0,0,1,Xt,on),Dn),k===_&&(Dn=ur(new We(1,0,0,-1,0,0),Dn)),tr=Dn.join(" ")+` Tm 473`):tr=I(Xt)+" "+I(on)+` Td 474`,tr},Hi=0;Hi<ke.length;Hi++){switch(da="",Pl){case 1:ua=(Kn?"<":"(")+ke[Hi][0]+(Kn?">":")"),la=parseFloat(ke[Hi][1]),ca=parseFloat(ke[Hi][2]);break;case 0:ua=(Kn?"<":"(")+ke[Hi]+(Kn?">":")"),la=xo(P),ca=vo(Z)}sa!==void 0&&sa[Hi]!==void 0&&(da=sa[Hi]+` Tw 475`),Hi===0?w.push(da+Tl(la,ca,Gn)+ua):Pl===0?w.push(da+ua):Pl===1&&w.push(da+Tl(la,ca,Gn)+ua)}w=Pl===0?w.join(` Tj 476T* `):w.join(` Tj 477`),w+=` Tj 478`;var Ws=`BT 479/`;return Ws+=Ke+" "+Ne+` Tf 480`,Ws+=I(Ne*No)+` TL 481`,Ws+=Sl+` 482`,Ws+=vr,Ws+=w,W(Ws+="ET"),m[Ke]=!0,dn};var c1=f.__private__.clip=f.clip=function(w){return W(w==="evenodd"?"W*":"W"),this};f.clipEvenOdd=function(){return c1("evenodd")},f.__private__.discardPath=f.discardPath=function(){return W("n"),this};var $s=f.__private__.isValidStyle=function(w){var P=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(w)!==-1&&(P=!0),P};f.__private__.setDefaultPathOperation=f.setDefaultPathOperation=function(w){return $s(w)&&(c=w),this};var gp=f.__private__.getStyle=f.getStyle=function(w){var P=c;switch(w){case"D":case"S":P="S";break;case"F":P="f";break;case"FD":case"DF":P="B";break;case"f":case"f*":case"B":case"B*":P=w}return P},yp=f.close=function(){return W("h"),this};f.stroke=function(){return W("S"),this},f.fill=function(w){return Dc("f",w),this},f.fillEvenOdd=function(w){return Dc("f*",w),this},f.fillStroke=function(w){return Dc("B",w),this},f.fillStrokeEvenOdd=function(w){return Dc("B*",w),this};var Dc=function(w,P){tn(P)==="object"?d1(P,w):W(w)},bl=function(w){w===null||k===_&&w===void 0||(w=gp(w),W(w))};function u1(w,P,Z,ne,fe){var Se=new bu(P||this.boundingBox,Z||this.xStep,ne||this.yStep,this.gState,fe||this.matrix);Se.stream=this.stream;var ke=w+"$$"+this.cloneIndex+++"$$";return bn(ke,Se),Se}var d1=function(w,P){var Z=sn[w.key],ne=at[Z];if(ne instanceof zl)W("q"),W(f1(P)),ne.gState&&f.setGState(ne.gState),W(w.matrix.toString()+" cm"),W("/"+Z+" sh"),W("Q");else if(ne instanceof bu){var fe=new We(1,0,0,-1,0,Nl());w.matrix&&(fe=fe.multiply(w.matrix||yr),Z=u1.call(ne,w.key,w.boundingBox,w.xStep,w.yStep,fe).id),W("q"),W("/Pattern cs"),W("/"+Z+" scn"),ne.gState&&f.setGState(ne.gState),W(P),W("Q")}},f1=function(w){switch(w){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Rd=f.moveTo=function(w,P){return W(I(D(w))+" "+I(F(P))+" m"),this},xp=f.lineTo=function(w,P){return W(I(D(w))+" "+I(F(P))+" l"),this},ds=f.curveTo=function(w,P,Z,ne,fe,Se){return W([I(D(w)),I(F(P)),I(D(Z)),I(F(ne)),I(D(fe)),I(F(Se)),"c"].join(" ")),this};f.__private__.line=f.line=function(w,P,Z,ne,fe){if(isNaN(w)||isNaN(P)||isNaN(Z)||isNaN(ne)||!$s(fe))throw new Error("Invalid arguments passed to
482jsPDF.line");return k===S?this.lines([[Z-w,ne-P]],w,P,[1,1],fe||"S"):this.lines([[Z-w,ne-P]],w,P,[1,1]).stroke()},f.__private__.lines=f.lines=function(w,P,Z,ne,fe,Se){var ke,qe,Je,mt,Nt,Dt,_n,Gn,dn,er,Kn,vr;if(typeof w=="number"&&(vr=Z,Z=P,P=w,w=vr),ne=ne||[1,1],Se=Se||!1,isNaN(P)||isNaN(Z)||!Array.isArray(w)||!Array.isArray(ne)||!$s(fe)||typeof Se!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Rd(P,Z),ke=ne[0],qe=ne[1],mt=w.length,er=P,Kn=Z,Je=0;Je<mt;Je++)(Nt=w[Je]).length===2?(er=Nt[0]*ke+er,Kn=Nt[1]*qe+Kn,xp(er,Kn)):(Dt=Nt[0]*ke+er,_n=Nt[1]*qe+Kn,Gn=Nt[2]*ke+er,dn=Nt[3]*qe+Kn,er=Nt[4]*ke+er,Kn=Nt[5]*qe+Kn,ds(Dt,_n,Gn,dn,er,Kn));return Se&&yp(),bl(fe),this},f.path=function(w){for(var P=0;P<w.length;P++){var Z=w[P],ne=Z.c;switch(Z.op){case"m":Rd(ne[0],ne[1]);break;case"l":xp(ne[0],ne[1]);break;case"c":ds.apply(this,ne);break;case"h":yp()}}return this},f.__private__.rect=f.rect=function(w,P,Z,ne,fe){if(isNaN(w)||isNaN(P)||isNaN(Z)||isNaN(ne)||!$s(fe))throw new Error("Invalid arguments passed to jsPDF.rect");return k===S&&(ne=-ne),W([I(D(w)),I(F(P)),I(D(Z)),I(D(ne)),"re"].join(" ")),bl(fe),this},f.__private__.triangle=f.triangle=function(w,P,Z,ne,fe,Se,ke){if(isNaN(w)||isNaN(P)||isNaN(Z)||isNaN(ne)||isNaN(fe)||isNaN(Se)||!$s(ke))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[Z-w,ne-P],[fe-Z,Se-ne],[w-fe,P-Se]],w,P,[1,1],ke,!0),this},f.__private__.roundedRect=f.roundedRect=function(w,P,Z,ne,fe,Se,ke){if(isNaN(w)||isNaN(P)||isNaN(Z)||isNaN(ne)||isNaN(fe)||isNaN(Se)||!$s(ke))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var qe=4/3*(Math.SQRT2-1);return fe=Math.min(fe,.5*Z),Se=Math.min(Se,.5*ne),this.lines([[Z-2*fe,0],[fe*qe,0,fe,Se-Se*qe,fe,Se],[0,ne-2*Se],[0,Se*qe,-fe*qe,Se,-fe,Se],[2*fe-Z,0],[-fe*qe,0,-fe,-Se*qe,-fe,-Se],[0,2*Se-ne],[0,-Se*qe,fe*qe,-Se,fe,-Se]],w+fe,P,[1,1],ke,!0),this},f.__private__.ellipse=f.ellipse=function(w,P,Z,ne,fe){if(isNaN(w)||isNaN(P)||isNaN(Z)||isNaN(ne)||!$s(fe))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Se=4/3*(Math.SQRT2-1)*Z,ke=4/3*(Math.SQRT2-1)*ne;return Rd(w+Z,P),ds(w+Z,P-ke,w+Se,P-ne,w,P-ne),ds(w-Se,P-ne,w-Z,P-ke,w-Z,P),ds(w-Z,P+ke,w-Se,P+ne,w,P+ne),ds(w+Se,P+ne,w+Z,P+ke,w+Z,P),bl(fe),this},f.__private__.circle=f.circle=function(w,P,Z,ne){if(isNaN(w)||isNaN(P)||isNaN(Z)||!$s(ne))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(w,P,Z,Z,ne)},f.setFont=function(w,P,Z){return Z&&(P=U(P,Z)),Ke=fp(w,P,{disableWarning:!1}),this};var h1=f.__private__.getFont=f.getFont=function(){return ht[fp.apply(f,arguments)]};f.__private__.getFontList=f.getFontList=function(){var w,P,Z={};for(w in St)if(St.hasOwnProperty(w))for(P in Z[w]=[],St[w])St[w].hasOwnProperty(P)&&Z[w].push(P);return Z},f.addFont=function(w,P,Z,ne,fe){var Se=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Se.indexOf(arguments[3])!==-1?fe=arguments[3]:arguments[3]&&Se.indexOf(arguments[3])==-1&&(Z=U(Z,ne)),lp.call(this,w,P,Z,fe=fe||"Identity-H")};var wl,Od=e.lineWidth||.200025,p1=f.__private__.getLineWidth=f.getLineWidth=function(){return Od},xt=f.__private__.setLineWidth=f.setLineWidth=function(w){return Od=w,W(I(D(w))+" w"),this};f.__private__.setLineDash=it.API.setLineDash=it.API.setLineDashPattern=function(w,P){if(w=w||[],P=P||0,isNaN(P)||!Array.isArray(w))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return w=w.map(function(Z){return I(D(Z))}).join(" "),P=I(D(P)),W("["+w+"] "+P+" d"),this};var m1=f.__private__.getLineHeight=f.getLineHeight=function(){return Ne*wl};f.__private__.getLineHeight=f.getLineHeight=function(){return Ne*wl};var g1=f.__private__.setLineHeightFactor=f.setLineHeightFactor=function(w){return typeof(w=w||1.15)=="number"&&(wl=w),this},y1=f.__private__.getLineHeightFactor=f.getLineHeightFactor=function(){return wl};g1(e.lineHeight);var xo=f.__private__.getHorizontalCoordinate=function(w){return D(w)},vo=f.__private__.getVerticalCoordinate=function(w){return k===_?w:Qe[H].mediaBox.topRightY-Qe[H].mediaBox.bottomLeftY-D(w)},x1=f.__private__.getHorizontalCoordinateString=f.getHorizontalCoordinateString=function(w){return I(xo(w))},v1=f.__private__.getVerticalCoordinateString=f.getVerticalCoordinateString=function(w){return I(vo(w))},Bc=e.strokeColor||"0 G";f.__private__.getStrokeColor=f.getDrawColor=function(){return Bs(Bc)},f.__private__.setStrokeColor=f.setDrawColor=function(w,P,Z,ne){return Bc=cs({ch1:w,ch2:P,ch3:Z,ch4:ne,pdfColorType:"draw",precision:2}),W(Bc),this};var Id=e.fillColor||"0 g";f.__private__.getFillColor=f.getFillColor=function(){return Bs(Id)},f.__private__.setFillColor=f.setFillColor=function(w,P,Z,ne){return Id=cs({ch1:w,ch2:P,ch3:Z,ch4:ne,pdfColorType:"fill",precision:2}),W(Id),this};var Sl=e.textColor||"0 g",b1=f.__private__.getTextColor=f.getTextColor=function(){return Bs(Sl)};f.__private__.setTextColor=f.setTextColor=function(w,P,Z,ne){return Sl=cs({ch1:w,ch2:P,ch3:Z,ch4:ne,pdfColorType:"text",precision:3}),this};var bo=e.charSpace,w1=f.__private__.getCharSpace=f.getCharSpace=function(){return parseFloat(bo||0)};f.__private__.setCharSpace=f.setCharSpace=function(w){if(isNaN(w))throw new Error("Invalid argument passed to
482jsPDF.setCharSpace");return bo=w,this};var Md=0;f.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},f.__private__.setLineCap=f.setLineCap=function(w){var P=f.CapJoinStyles[w];if(P===void 0)throw new Error("Line cap style of '"+w+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Md=P,W(P+" J"),this};var Fd=0;f.__private__.setLineJoin=f.setLineJoin=function(w){var P=f.CapJoinStyles[w];if(P===void 0)throw new Error("Line join style of '"+w+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Fd=P,W(P+" j"),this},f.__private__.setLineMiterLimit=f.__private__.setMiterLimit=f.setLineMiterLimit=f.setMiterLimit=function(w){if(w=w||0,isNaN(w))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return W(I(D(w))+" M"),this},f.GState=fg,f.setGState=function(w){(w=typeof w=="string"?lt[pt[w]]:vp(null,w)).equals(un)||(W("/"+w.id+" gs"),un=w)};var vp=function(w,P){if(!w||!pt[w]){var Z=!1;for(var ne in lt)if(lt.hasOwnProperty(ne)&<[ne].equals(P)){Z=!0;break}if(Z)P=lt[ne];else{var fe="GS"+(Object.keys(lt).length+1).toString(10);lt[fe]=P,P.id=fe}return w&&(pt[w]=P.id),qt.publish("addGState",P),P}};f.addGState=function(w,P){return vp(w,P),this},f.saveGraphicsState=function(){return W("q"),Gt.push({key:Ke,size:Ne,color:Sl}),this},f.restoreGraphicsState=function(){W("Q");var w=Gt.pop();return Ke=w.key,Ne=w.size,Sl=w.color,un=null,this},f.setCurrentTransformationMatrix=function(w){return W(w.toString()+" cm"),this},f.comment=function(w){return W("#"+w),this};var wo=function(w,P){var Z=w||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Z},set:function(Se){isNaN(Se)||(Z=parseFloat(Se))}});var ne=P||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return ne},set:function(Se){isNaN(Se)||(ne=parseFloat(Se))}});var fe="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return fe},set:function(Se){fe=Se.toString()}}),this},Dd=function(w,P,Z,ne){wo.call(this,w,P),this.type="rect";var fe=Z||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return fe},set:function(ke){isNaN(ke)||(fe=parseFloat(ke))}});var Se=ne||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Se},set:function(ke){isNaN(ke)||(Se=parseFloat(ke))}}),this},zc=function(){this.page=_t,this.currentPage=H,this.pages=je.slice(0),this.pagesContext=Qe.slice(0),this.x=Ze,this.y=vn,this.matrix=Pt,this.width=zd(H),this.height=wp(H),this.outputDestination=Te,this.id="",this.objectNumber=-1};zc.prototype.restore=function(){_t=this.page,H=this.currentPage,Qe=this.pagesContext,je=this.pages,Ze=this.x,vn=this.y,Pt=this.matrix,bp(H,this.width),So(H,this.height),Te=this.outputDestination};var Bd=function(w,P,Z,ne,fe){En.push(new zc),_t=H=0,je=[],Ze=w,vn=P,Pt=fe,Pd([Z,ne])};for(var _l in f.beginFormObject=function(w,P,Z,ne,fe){return Bd(w,P,Z,ne,fe),this},f.endFormObject=function(w){return function(P){if(Mt[P])En.pop().restore();else{var Z=new zc,ne="Xo"+(Object.keys(yt).length+1).toString(10);Z.id=ne,Mt[P]=ne,yt[ne]=Z,qt.publish("addFormObject",Z),En.pop().restore()}}(w),this},f.doFormObject=function(w,P){var Z=yt[Mt[w]];return W("q"),W(P.toString()+" cm"),W("/"+Z.id+" Do"),W("Q"),this},f.getFormObject=function(w){var P=yt[Mt[w]];return{x:P.x,y:P.y,width:P.width,height:P.height,matrix:P.matrix}},f.save=function(w,P){return w=w||"generated.pdf",(P=P||{}).returnPromise=P.returnPromise||!1,P.returnPromise===!1?(Bl(Fc(Vs()),w),typeof Bl.unload=="function"&&ft.setTimeout&&setTimeout(Bl.unload,911),this):new Promise(function(Z,ne){try{var fe=Bl(Fc(Vs()),w);typeof Bl.unload=="function"&&ft.setTimeout&&setTimeout(Bl.unload,911),Z(fe)}catch(Se){ne(Se.message)}})},it.API)it.API.hasOwnProperty(_l)&&(_l==="events"&&it.API.events.length?function(w,P){var Z,ne,fe;for(fe=P.length-1;fe!==-1;fe--)Z=P[fe][0],ne=P[fe][1],w.subscribe.apply(w,[Z].concat(typeof ne=="function"?[ne]:ne))}(qt,it.API.events):f[_l]=it.API[_l]);function zd(w){return Qe[w].mediaBox.topRightX-Qe[w].mediaBox.bottomLeftX}function bp(w,P){Qe[w].mediaBox.topRightX=P+Qe[w].mediaBox.bottomLeftX}function wp(w){return Qe[w].mediaBox.topRightY-Qe[w].mediaBox.bottomLeftY}function So(w,P){Qe[w].mediaBox.topRightY=P+Qe[w].mediaBox.bottomLeftY}var _o=f.getPageWidth=function(w){return zd(w=w||H)/dt},Sp=f.setPageWidth=function(w,P){bp(w,P*dt)},Nl=f.getPageHeight=function(w){return wp(w=w||H)/dt},_p=f.setPageHeight=function(w,P){So(w,P*dt)};return f.internal={pdfEscape:Vi,getStyle:gp,getFont:h1,getFontSize:Ie,getCharSpace:w1,getTextColor:b1,getLineHeight:m1,getLineHeightFactor:y1,getLineWidth:p1,write:we,getHorizontalCoordinate:xo,getVerticalCoordinate:vo,getCoordinateString:x1,getVerticalCoordinateString:v1,collections:{},newObject:Ln,newAdditionalObject:yl,newObjectDeferred:dr,newObjectDeferredBegin:xr,getFilters:us,putStream:Ui,events:qt,scaleFactor:dt,pageSize:{getWidth:function(){return _o(H)},setWidth:function(w){Sp(H,w)},getHeight:function(){return Nl(H)},setHeight:function(w){_p(H,w)}},encryptionOptions:d,encryption:Jn,getEncryptor:function(w){return d!==null?Jn.encryptor(w,0):function(P){return P}},output:pp,getNumberOfPages:dp,get pages(){return je},out:W,f2:C,f3:L,getPageInfo:yo,getPageInfoByObjId:mp,getCurrentPageInfo:l1,getPDFVersion:v,Point:wo,Rectangle:Dd,Matrix:We,hasHotfix:$i},Object.defineProperty(f.internal.pageSize,"width",{get:function(){return _o(H)},set:function(w){Sp(H,w)},enumerable:!0,configurable:!0}),Object.defineProperty(f.internal.pageSize,"height",{get:function(){return Nl(H)},set:function(w){_p(H,w)},enumerable:!0,configurable:!0}),(function(w){for(var P=0,Z=Fe.length;P<Z;P++){var ne=lp.call(this,w[P][0],w[P][1],w[P][2],Fe[P][3],!0);h===!1&&(m[ne]=!0);var fe=w[P][0].split("-");ap({id:ne,fontName:fe[0],fontStyle:fe[1]||""})}qt.publish("addFonts",{fonts:ht,dictionary:St})}).call(f,Fe),Ke="F1",cp(i,n),qt.publish("initialized"),f}nu.prototype.lsbFirstWord=function(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)},nu.prototype.toHexString=function(e){return e.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},nu.prototype.hexToBytes=function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(String.fromCharCode(parseInt(e.substr(n,2),16)));return t.join("")},nu.prototype.processOwnerPassword=function(e,t){return zv(Bv(t).substr(0,5),e)},nu.prototype.encryptor=function(e,t){var n=Bv(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(r){return zv(n,r)}},fg.prototype.equals=function(e){var t,n="id,objectNumber,equals";if(!e||tn(e)!==tn(this))return!1;var r=0;for(t in this)if(!(n.indexOf(t)>
vendor: 65,474 bytes, lines 482-525
482=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t)||this[t]!==e[t])return!1;r++}for(t in e)e.hasOwnProperty(t)&&n.indexOf(t)<0&&r--;return r===0},it.API={events:[]},it.version="3.0.4";var On=it.API,lw=1,Tc=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Jc=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},vt=function(e){return e.toFixed(2)},Sa=function(e){return e.toFixed(5)};On.__acroform__={};var xi=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},h6=function(e){return e*lw},Ys=function(e){var t=new OP,n=$e.internal.getHeight(e)||0,r=$e.internal.getWidth(e)||0;return t.BBox=[0,0,Number(vt(r)),Number(vt(n))],t},_J=On.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|1<<t},NJ=On.__acroform__.clearBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&~(1<<t)},kJ=On.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return e&1<<t?1:0},Vn=On.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return kJ(e,t-1)},$n=On.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return _J(e,t-1)},qn=On.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return NJ(e,t-1)},AJ=On.__acroform__.calculateCoordinates=function(e,t){var n=t.internal.getHorizontalCoordinate,r=t.internal.getVerticalCoordinate,i=e[0],s=e[1],o=e[2],a=e[3],l={};return l.lowerLeft_X=n(i)||0,l.lowerLeft_Y=r(s+a)||0,l.upperRight_X=n(i+o)||0,l.upperRight_Y=r(s)||0,[Number(vt(l.lowerLeft_X)),Number(vt(l.lowerLeft_Y)),Number(vt(l.upperRight_X)),Number(vt(l.upperRight_Y))]},jJ=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],n=e._V||e.DV,r=Uv(e,n),i=e.scope.internal.getFont(e.fontName,e.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(e.scope.__private__.encodeColorString(e.color)),t.push("/"+i+" "+vt(r.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(r.text),t.push("ET"),t.push("Q"),t.push("EMC");var s=Ys(e);return s.scope=e.scope,s.stream=t.join(` 483`),s}},Uv=function(e,t){var n=e.fontSize===0?e.maxFontSize:e.fontSize,r={text:"",fontSize:""},i=(t=(t=t.substr(0,1)=="("?t.substr(1):t).substr(t.length-1)==")"?t.substr(0,t.length-1):t).split(" ");i=e.multiline?i.map(function(C){return C.split(` 484`)}):i.map(function(C){return[C]});var s=n,o=$e.internal.getHeight(e)||0;o=o<0?-o:o;var a=$e.internal.getWidth(e)||0;a=a<0?-a:a;var l=function(C,L,D){if(C+1<i.length){var F=L+" "+i[C+1][0];return jm(F,e,D).width<=a-4}return!1};s++;e:for(;s>0;){t="",s--;var c,d,h=jm("3",e,s).height,m=e.multiline?o-s:(o-h)/2,f=m+=2,x=0,v=0,b=0;if(s<=0){t=`(...) Tj 485`,t+="% Width of Text: "+jm(t,e,s=12).width+", FieldWidth:"+a+` 486`;break}for(var y="",S=0,_=0;_<i.length;_++)if(i.hasOwnProperty(_)){var k=!1;if(i[_].length!==1&&b!==i[_].length-1){if((h+2)*(S+2)+2>o)continue e;y+=i[_][b],k=!0,v=_,_--}else{y=(y+=i[_][b]+" ").substr(y.length-1)==" "?y.substr(0,y.length-1):y;var O=parseInt(_),$=l(O,y,s),U=_>=i.length-1;if($&&!U){y+=" ",b=0;continue}if($||U){if(U)v=O;else if(e.multiline&&(h+2)*(S+2)+2>o)continue e}else{if(!e.multiline||(h+2)*(S+2)+2>o)continue e;v=O}}for(var I="",R=x;R<=v;R++){var z=i[R];if(e.multiline){if(R===v){I+=z[b]+" ",b=(b+1)%z.length;continue}if(R===x){I+=z[z.length-1]+" ";continue}}I+=z[0]+" "}switch(I=I.substr(I.length-1)==" "?I.substr(0,I.length-1):I,d=jm(I,e,s).width,e.textAlign){case"right":c=a-d-2;break;case"center":c=(a-d)/2;break;default:c=2}t+=vt(c)+" "+vt(f)+` Td 487`,t+="("+Tc(I)+`) Tj 488`,t+=-vt(c)+` 0 Td 489`,f=-(s+2),d=0,x=k?v:v+1,S++,y=""}break}return r.text=t,r.fontSize=s,r},jm=function(e,t,n){var r=t.scope.internal.getFont(t.fontName,t.fontStyle),i=t.scope.getStringUnitWidth(e,{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:t.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:i}},CJ={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},EJ=function(e,t){var n={type:"reference",object:e};t.internal.getPageInfo(e.page).pageContext.annotations.find(function(r){return r.type===n.type&&r.object===n.object})===void 0&&t.internal.getPageInfo(e.page).pageContext.annotations.push(n)},LJ=function(e,t){if(t.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||e.internal.acroformPlugin.isInitialized===!1)){if(Fs.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(CJ)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");lw=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new IP,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",function(){(function(n){n.internal.events.unsubscribe(n.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete n.internal.acroformPlugin.acroFormDictionaryRoot._eventID,n.internal.acroformPlugin.printedOut=!0})(e)}),e.internal.events.subscribe("buildDocument",function(){(function(n){n.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var r=n.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var i in r)if(r.hasOwnProperty(i)){var s=r[i];s.objId=void 0,s.hasAnnotation&&EJ(s,n)}})(e)}),e.internal.events.subscribe("putCatalog",function(){(function(n){if(n.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");n.internal.write("/AcroForm "+n.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(e)}),e.internal.events.subscribe("postPutPages",function(n){(function(r,i){var s=!r;for(var o in r||(i.internal.newObjectDeferredBegin(i.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),i.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),r=r||i.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(r.hasOwnProperty(o)){var a=r[o],l=[],c=a.Rect;if(a.Rect&&(a.Rect=AJ(a.Rect,i)),i.internal.newObjectDeferredBegin(a.objId,!0),a.DA=$e.createDefaultAppearanceStream(a),tn(a)==="object"&&typeof a.getKeyValueListForStream=="function"&&(l=a.getKeyValueListForStream()),a.Rect=c,a.hasAppearanceStream&&!a.appearanceStreamContent){var d=jJ(a);l.push({key:"AP",value:"<</N "+d+">>"}),i.internal.acroformPlugin.xForms.push(d)}if(a.appearanceStreamContent){var h="";for(var m in a.appearanceStreamContent)if(a.appearanceStreamContent.hasOwnProperty(m)){var f=a.appearanceStreamContent[m];if(h+="/"+m+" ",h+="<<",Object.keys(f).length>=1||Array.isArray(f)){for(var o in f)if(f.hasOwnProperty(o)){var x=f[o];typeof x=="function"&&(x=x.call(i,a)),h+="/"+o+" "+x+" ",i.internal.acroformPlugin.xForms.indexOf(x)>=0||i.internal.acroformPlugin.xForms.push(x)}}else typeof(x=f)=="function"&&(x=x.call(i,a)),h+="/"+o+" "+x,i.internal.acroformPlugin.xForms.indexOf(x)>=0||i.internal.acroformPlugin.xForms.push(x);h+=">>"}l.push({key:"AP",value:`<< 490`+h+">>"})}i.internal.putStream({additionalKeyValues:l,objectId:a.objId}),i.internal.out("endobj")}s&&function(v,b){for(var y in v)if(v.hasOwnProperty(y)){var S=y,_=v[y];b.internal.newObjectDeferredBegin(_.objId,!0),tn(_)==="object"&&typeof _.putStream=="function"&&_.putStream(),delete v[S]}}(i.internal.acroformPlugin.xForms,i)})(n,e)}),e.internal.acroformPlugin.isInitialized=!0}},RP=On.__acroform__.arrayToPdfArray=function(e,t,n){var r=function(o){return o};if(Array.isArray(e)){for(var i="[",s=0;s<e.length;s++)switch(s!==0&&(i+=" "),tn(e[s])){case"boolean":case"number":case"object":i+=e[s].toString();break;case"string":e[s].substr(0,1)!=="/"?(t!==void 0&&n&&(r=n.internal.getEncryptor(t)),i+="("+Tc(r(e[s].toString()))+")"):i+=e[s].toString()}return i+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},g2=function(e,t,n){var r=function(i){return i};return t!==void 0&&n&&(r=n.internal.getEncryptor(t)),(e=e||"").toString(),"("+Tc(r(e))+")"},oo=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};oo.prototype.toString=function(){return this.objId+" 0 R"},oo.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},oo.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter(function(s){return s!="content"&&s!="appearanceStreamContent"&&s!="scope"&&s!="objId"&&s.substring(0,1)!="_"});for(var n in t)if(Object.getOwnPropertyDescriptor(this,t[n]).configurable===!1){var r=t[n],i=this[r];i&&(Array.isArray(i)?e.push({key:r,value:RP(i,this.objId,this.scope)}):i instanceof oo?(i.scope=this.scope,e.push({key:r,value:i.objId+" 0 R"})):typeof i!="function"&&e.push({key:r,value:i}))}return e};var OP=function(){oo.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var e,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(n){e=n.trim()},get:function(){return e||null}})};xi(OP,oo);var IP=function(){oo.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var n=function(r){return r};return this.scope&&(n=this.scope.internal.getEncryptor(this.objId)),"("+Tc(n(e))+")"}},set:function(n){e=n}})};xi(IP,oo);var Fs=function e(){oo.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(y){if(isNaN(y))throw new Error('Invalid value "'+y+'" for attribute F supplied.');t=y}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Vn(t,3)},set:function(y){y?this.F=$n(t,3):this.F=qn(t,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(y){if(isNaN(y))throw new Error('Invalid value "'+y+'" for attribute Ff supplied.');n=y}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(y){r=y!==void 0?y:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(y){r[0]=y}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(y){r[1]=y}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(y){r[2]=y}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(y){r[3]=y}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(y){switch(y){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=y;break;default:throw new Error('Invalid value "'+y+'" for attribute FT supplied.')}}});var s=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!s||s.length<1){if(this instanceof hg)return;s="FieldObject"+e.FieldNum++}var y=function(S){return S};return this.scope&&(y=this.scope.internal.getEncryptor(this.objId)),"("+Tc(y(s))+")"},set:function(y){s=y.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return s},set:function(y){s=y}});var o="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return o},set:function(y){o=y}});var a="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return a},set:function(y){a=y}});var l=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return l},set:function(y){l=y}});var c=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return c===void 0?50/lw:c},set:function(y){c=y}});var d="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return d},set:function(y){d=y}});var h="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!h||this instanceof hg||this instanceof dc))return g2(h,this.objId,this.scope)},set:function(y){y=y.toString(),h=y}});var m=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(m)return this instanceof mr==0?g2(m,this.objId,this.scope):m},set:function(y){y=y.toString(),m=this instanceof mr==0?y.substr(0,1)==="("?Jc(y.substr(1,y.length-2)):Jc(y):y}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof mr==1?Jc(m.substr(1,m.length-1)):m},set:function(y){y=y.toString(),m=this instanceof mr==1?"/"+y:y}});var f=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(f)return f},set:function(y){this.V=y}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof mr==0?g2(f,this.objId,this.scope):f},set:function(y){y=y.toString(),f=this instanceof mr==0?y.substr(0,1)==="("?Jc(y.substr(1,y.length-2)):Jc(y):y}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof mr==1?Jc(f.substr(1,f.length-1)):f},set:function(y){y=y.toString(),f=this instanceof mr==1?"/"+y:y}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var x,v=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return v},set:function(y){y=!!y,v=y}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(x)return x},set:function(y){x=y}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Vn(this.Ff,1)},set:function(y){y?this.Ff=$n(this.Ff,1):this.Ff=qn(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Vn(this.Ff,2)},set:function(y){y?this.Ff=$n(this.Ff,2):this.Ff=qn(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Vn(this.Ff,3)},set:function(y){y?this.Ff=$n(this.Ff,3):this.Ff=qn(this.Ff,3)}});var b=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(b!==null)return b},set:function(y){if([0,1,2].indexOf(y)===-1)throw new Error('Invalid value "'+y+'" for attribute Q supplied.');b=y}}),Object.defineProperty(this,"textAlign",{get:function(){var y;switch(b){case 0:default:y="left";break;case 1:y="center";break;case 2:y="right"}return y},configurable:!0,enumerable:!0,set:function(y){switch(y){case"right":case 2:b=2;break;case"center":case 1:b=1;break;default:b=0}}})};xi(Fs,oo);var Tu=function(){Fs.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(n){e=n}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(n){e=n}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return RP(t,this.objId,this.scope)},set:function(n){var r,i;i=[],typeof(r=n)=="string"&&(i=function(s,o,a){a||(a=1);for(var l,c=[];l=o.exec(s);)c.push(l[a]);return c}(r,/\((.*?)\)/g)),t=i}}),this.getOptions=function(){return t},this.setOptions=function(n){t=n,this.sort&&t.sort()},this.addOption=function(n){n=(n=n||"").toString(),t.push(n),this.sort&&t.sort()},this.removeOption=function(n,r){for(r=r||!1,n=(n=n||"").toString();t.indexOf(n)!==-1&&(t.splice(t.indexOf(n),1),r!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Vn(this.Ff,18)},set:function(n){n?this.Ff=$n(this.Ff,18):this.Ff=qn(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Vn(this.Ff,19)},set:function(n){this.combo===!0&&(n?this.Ff=$n(this.Ff,19):this.Ff=qn(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Vn(this.Ff,20)},set:function(n){n?(this.Ff=$n(this.Ff,20),t.sort()):this.Ff=qn(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Vn(this.Ff,22)},set:function(n){n?this.Ff=$n(this.Ff,22):this.Ff=qn(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Vn(this.Ff,23)},set:function(n){n?this.Ff=$n(this.Ff,23):this.Ff=qn(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Vn(this.Ff,27)},set:function(n){n?this.Ff=$n(this.Ff,27):this.Ff=qn(this.Ff,27)}}),this.hasAppearanceStream=!1};xi(Tu,Fs);var Ru=function(){Tu.call(this),this.fontName="helvetica",this.combo=!1};xi(Ru,Tu);var Ou=function(){Ru.call(this),this.combo=!0};xi(Ou,Ru);var s0=function(){Ou.call(this),this.edit=!0};xi(s0,Ou);var mr=function(){Fs.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Vn(this.Ff,15)},set:function(n){n?this.Ff=$n(this.Ff,15):this.Ff=qn(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Vn(this.Ff,16)},set:function(n){n?this.Ff=$n(this.Ff,16):this.Ff=qn(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Vn(this.Ff,17)},set:function(n){n?this.Ff=$n(this.Ff,17):this.Ff=qn(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Vn(this.Ff,26)},set:function(n){n?this.Ff=$n(this.Ff,26):this.Ff=qn(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var n=function(s){return s};if(this.scope&&(n=this.scope.internal.getEncryptor(this.objId)),Object.keys(t).length!==0){var r,i=[];for(r in i.push("<<"),t)i.push("/"+r+" ("+Tc(n(t[r]))+")");return i.push(">>"),i.join(` 491`)}},set:function(n){tn(n)==="object"&&(t=n)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(n){typeof n=="string"&&(t.CA=n)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(n){e=n}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(n){e="/"+n}})};xi(mr,Fs);var o0=function(){mr.call(this),this.pushButton=!0};xi(o0,mr);var Iu=function(){mr.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t!==void 0?t:[]}})};xi(Iu,mr);var hg=function(){var e,t;Fs.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(i){e=i}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(i){t=i}});var n,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var i=function(a){return a};this.scope&&(i=this.scope.internal.getEncryptor(this.objId));var s,o=[];for(s in o.push("<<"),r)o.push("/"+s+" ("+Tc(i(r[s]))+")");return o.push(">>"),o.join(` 492`)},set:function(i){tn(i)==="object"&&(r=i)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(i){typeof i=="string"&&(r.CA=i)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(i){n=i}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(i){n="/"+i}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=$e.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};xi(hg,Fs),Iu.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var n=this.Kids[t];n.appearanceStreamContent=e.createAppearanceStream(n.optionName),n.caption=e.getCA()}},Iu.prototype.createOption=function(e){var t=new hg;return t.Parent=this,t.optionName=e,this.Kids.push(t),PJ.call(this.scope,t),t};var a0=function(){mr.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=$e.CheckBox.createAppearanceStream()};xi(a0,mr);var dc=function(){Fs.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Vn(this.Ff,13)},set:function(t){t?this.Ff=$n(this.Ff,13):this.Ff=qn(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Vn(this.Ff,21)},set:function(t){t?this.Ff=$n(this.Ff,21):this.Ff=qn(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Vn(this.Ff,23)},set:function(t){t?this.Ff=$n(this.Ff,23):this.Ff=qn(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Vn(this.Ff,24)},set:function(t){t?this.Ff=$n(this.Ff,24):this.Ff=qn(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Vn(this.Ff,25)},set:function(t){t?this.Ff=$n(this.Ff,25):this.Ff=qn(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Vn(this.Ff,26)},set:function(t){t?this.Ff=$n(this.Ff,26):this.Ff=qn(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};xi(dc,Fs);var l0=function(){dc.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Vn(this.Ff,14)},set:function(e){e?this.Ff=$n(this.Ff,14):this.Ff=qn(this.Ff,14)}}),this.password=!0};xi(l0,dc);var $e={CheckBox:{createAppearanceStream:function(){return{N:{On:$e.CheckBox.YesNormal},D:{On:$e.CheckBox.YesPushDown,Off:$e.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=Ys(e);t.scope=e.scope;var n=[],r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,i=e.scope.__private__.encodeColorString(e.color),s=Uv(e,e.caption);return n.push("0.749023 g"),n.push("0 0 "+vt($e.internal.getWidth(e))+" "+vt($e.internal.getHeight(e))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+r+" "+vt(s.fontSize)+" Tf "+i),n.push("BT"),n.push(s.text),n.push("ET"),n.push("Q"),n.push("EMC"),t.stream=n.join(` 493`),t},YesNormal:function(e){var t=Ys(e);t.scope=e.scope;var n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color),i=[],s=$e.internal.getHeight(e),o=$e.internal.getWidth(e),a=Uv(e,e.caption);return i.push("1 g"),i.push("0 0 "+vt(o)+" "+vt(s)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+vt(o-1)+" "+vt(s-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+n+" "+vt(a.fontSize)+" Tf "+r),i.push(a.text),i.push("ET"),i.push("Q"),t.stream=i.join(` 494`),t},OffPushDown:function(e){var t=Ys(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+vt($e.internal.getWidth(e))+" "+vt($e.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join(` 495`),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:$e.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=$e.RadioButton.Circle.YesNormal,t.D[e]=$e.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=Ys(e);t.scope=e.scope;var n=[],r=$e.internal.getWidth(e)<=$e.internal.getHeight(e)?$e.internal.getWidth(e)/4:$e.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=$e.internal.Bezier_C,s=Number((r*i).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+Sa($e.internal.getWidth(e)/2)+" "+Sa($e.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+s+" "+s+" "+r+" 0 "+r+" c"),n.push("-"+s+" "+r+" -"+r+" "+s+" -"+r+" 0 c"),n.push("-"+r+" -"+s+" -"+s+" -"+r+" 0 -"+r+" c"),n.push(s+" -"+r+" "+r+" -"+s+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join(` 496`),t},YesPushDown:function(e){var t=Ys(e);t.scope=e.scope;var n=[],r=$e.internal.getWidth(e)<=$e.internal.getHeight(e)?$e.internal.getWidth(e)/4:$e.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),s=Number((i*$e.internal.Bezier_C).toFixed(5)),o=Number((r*$e.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Sa($e.internal.getWidth(e)/2)+" "+Sa($e.internal.getHeight(e)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+s+" "+s+" "+i+" 0 "+i+" c"),n.push("-"+s+" "+i+" -"+i+" "+s+" -"+i+" 0 c"),n.push("-"+i+" -"+s+" -"+s+" -"+i+" 0 -"+i+" c"),n.push(s+" -"+i+" "+i+" -"+s+" "+i+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+Sa($e.internal.getWidth(e)/2)+" "+Sa($e.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),n.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),n.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),n.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join(` 497`),t},OffPushDown:function(e){var t=Ys(e);t.scope=e.scope;var n=[],r=$e.internal.getWidth(e)<=$e.internal.getHeight(e)?$e.internal.getWidth(e)/4:$e.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),s=Number((i*$e.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Sa($e.internal.getWidth(e)/2)+" "+Sa($e.internal.getHeight(e)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+s+" "+s+" "+i+" 0 "+i+" c"),n.push("-"+s+" "+i+" -"+i+" "+s+" -"+i+" 0 c"),n.push("-"+i+" -"+s+" -"+s+" -"+i+" 0 -"+i+" c"),n.push(s+" -"+i+" "+i+" -"+s+" "+i+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join(` 498`),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:$e.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=$e.RadioButton.Cross.YesNormal,t.D[e]=$e.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=Ys(e);t.scope=e.scope;var n=[],r=$e.internal.calculateCross(e);return n.push("q"),n.push("1 1 "+vt($e.internal.getWidth(e)-2)+" "+vt($e.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(vt(r.x1.x)+" "+vt(r.x1.y)+" m"),n.push(vt(r.x2.x)+" "+vt(r.x2.y)+" l"),n.push(vt(r.x4.x)+" "+vt(r.x4.y)+" m"),n.push(vt(r.x3.x)+" "+vt(r.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join(` 499`),t},YesPushDown:function(e){var t=Ys(e);t.scope=e.scope;var n=$e.internal.calculateCross(e),r=[];return r.push("0.749023 g"),r.push("0 0 "+vt($e.internal.getWidth(e))+" "+vt($e.internal.getHeight(e))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+vt($e.internal.getWidth(e)-2)+" "+vt($e.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(vt(n.x1.x)+" "+vt(n.x1.y)+" m"),r.push(vt(n.x2.x)+" "+vt(n.x2.y)+" l"),r.push(vt(n.x4.x)+" "+vt(n.x4.y)+" m"),r.push(vt(n.x3.x)+" "+vt(n.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join(` 500`),t},OffPushDown:function(e){var t=Ys(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+vt($e.internal.getWidth(e))+" "+vt($e.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join(` 501`),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+n}};$e.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=$e.internal.getWidth(e),n=$e.internal.getHeight(e),r=Math.min(t,n);return{x1:{x:(t-r)/2,y:(n-r)/2+r},x2:{x:(t-r)/2+r,y:(n-r)/2},x3:{x:(t-r)/2,y:(n-r)/2},x4:{x:(t-r)/2+r,y:(n-r)/2+r}}}},$e.internal.getWidth=function(e){var t=0;return tn(e)==="object"&&(t=h6(e.Rect[2])),t},$e.internal.getHeight=function(e){var t=0;return tn(e)==="object"&&(t=h6(e.Rect[3])),t};var PJ=On.addField=function(e){if(LJ(this,e),!(e instanceof Fs))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=e).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};On.AcroFormChoiceField=Tu,On.AcroFormListBox=Ru,On.AcroFormComboBox=Ou,On.AcroFormEditBox=s0,On.AcroFormButton=mr,On.AcroFormPushButton=o0,On.AcroFormRadioButton=Iu,On.AcroFormCheckBox=a0,On.AcroFormTextField=dc,On.AcroFormPasswordField=l0,On.AcroFormAppearance=$e,On.AcroForm={ChoiceField:Tu,ListBox:Ru,ComboBox:Ou,EditBox:s0,Button:mr,PushButton:o0,RadioButton:Iu,CheckBox:a0,TextField:dc,PasswordField:l0,Appearance:$e},it.AcroForm={ChoiceField:Tu,ListBox:Ru,ComboBox:Ou,EditBox:s0,Button:mr,PushButton:o0,RadioButton:Iu,CheckBox:a0,TextField:dc,PasswordField:l0,Appearance:$e};function MP(e){return e.reduce(function(t,n,r){return t[n]=r,t},{})}(function(e){var t="addImage_";e.__addimage__={};var n="UNKNOWN",r={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},i=e.__addimage__.getImageFileTypeByImageData=function(C,L){var D,F,te,re,ce,G=n;if((L=L||n)==="RGBA"||C.data!==void 0&&C.data instanceof Uint8ClampedArray&&"height"in C&&"width"in C)return"RGBA";if($(C))for(ce in r)for(te=r[ce],D=0;D<te.length;D+=1){for(re=!0,F=0;F<te[D].length;F+=1)if(te[D][F]!==void 0&&te[D][F]!==C[F]){re=!1;break}if(re===!0){G=ce;break}}else for(ce in r)for(te=r[ce],D=0;D<te.length;D+=1){for(re=!0,F=0;F<te[D].length;F+=1)if(te[D][F]!==void 0&&te[D][F]!==C.charCodeAt(F)){re=!1;break}if(re===!0){G=ce;break}}return G===n&&L!==n&&(G=L),G},s=function C(L){for(var D=this.internal.write,F=this.internal.putStream,te=(0,this.internal.getFilters)();te.indexOf("FlateEncode")!==-1;)te.splice(te.indexOf("FlateEncode"),1);L.objectId=this.internal.newObject();var re=[];if(re.push({key:"Type",value:"/XObject"}),re.push({key:"Subtype",value:"/Image"}),re.push({key:"Width",value:L.width}),re.push({key:"Height",value:L.height}),L.colorSpace===y.INDEXED?re.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(L.palette.length/3-1)+" "+("sMask"in L&&L.sMask!==void 0?L.objectId+2:L.objectId+1)+" 0 R]"}):(re.push({key:"ColorSpace",value:"/"+L.colorSpace}),L.colorSpace===y.DEVICE_CMYK&&re.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),re.push({key:"BitsPerComponent",value:L.bitsPerComponent}),"decodeParameters"in L&&L.decodeParameters!==void 0&&re.push({key:"DecodeParms",value:"<<"+L.decodeParameters+">>"}),"transparency"in L&&Array.isArray(L.transparency)&&L.transparency.length>0){for(var ce="",G=0,Q=L.transparency.length;G<Q;G++)ce+=L.transparency[G]+" "+L.transparency[G]+" ";re.push({key:"Mask",value:"["+ce+"]"})}L.sMask!==void 0&&re.push({key:"SMask",value:L.objectId+1+" 0 R"});var de=L.filter!==void 0?["/"+L.filter]:void 0;if(F({data:L.data,additionalKeyValues:re,alreadyAppliedFilters:de,objectId:L.objectId}),D("endobj"),"sMask"in L&&L.sMask!==void 0){var ue,E=(ue=L.sMaskBitsPerComponent)!==null&&ue!==void 0?ue:L.bitsPerComponent,H={width:L.width,height:L.height,colorSpace:"DeviceGray",bitsPerComponent:E,data:L.sMask};"filter"in L&&(H.decodeParameters="/Predictor ".concat(L.predictor," /Colors 1 /BitsPerComponent ").concat(E," /Columns ").concat(L.width),H.filter=L.filter),C.call(this,H)}if(L.colorSpace===y.INDEXED){var K=this.internal.newObject();F({data:I(new Uint8Array(L.palette)),objectId:K}),D("endobj")}},o=function(){var C=this.internal.collections[t+"images"];for(var L in C)s.call(this,C[L])},a=function(){var C,L=this.internal.collections[t+"images"],D=this.internal.write;for(var F in L)D("/I"+(C=L[F]).index,C.objectId,"0","R")},l=function(){this.internal.collections[t+"images"]||(this.internal.collections[t+"images"]={},this.internal.events.subscribe("putResources",o),this.internal.events.subscribe("putXobjectDict",a))},c=function(){var C=this.internal.collections[t+"images"];return l.call(this),C},d=function(){return Object.keys(this.internal.collections[t+"images"]).length},h=function(C){return typeof e["process"+C.toUpperCase()]=="function"},m=function(C){return tn(C)==="object"&&C.nodeType===1},f=function(C,L){if(C.nodeName==="IMG"&&C.hasAttribute("src")){var D=""+C.getAttribute("src");if(D.indexOf("data:image/")===0)return i0(unescape(D).split("base64,").pop());var F=e.loadFile(D,!0);if(F!==void 0)return F}if(C.nodeName==="CANVAS"){if(C.width===0||C.height===0)throw new Error("Given canvas must have data. Canvas width: "+C.width+", height: "+C.height);var te;switch(L){case"PNG":te="image/png";break;case"WEBP":te="image/webp";break;default:te="image/jpeg"}return i0(C.toDataURL(te,1).split("base64,").pop())}},x=function(C){var L=this.internal.collections[t+"images"];if(L){for(var D in L)if(C===L[D].alias)return L[D]}},v=function(C,L,D){return C||L||(C=-96,L=-96),C<0&&(C=-1*D.width*72/C/this.internal.scaleFactor),L<0&&(L=-1*D.height*72/L/this.internal.scaleFactor),C===0&&(C=L*D.width/D.height),L===0&&(L=C*D.height/D.width),[C,L]},b=function(C,L,D,F,te,re){var ce=v.call(this,D,F,te),G=this.internal.getCoordinateString,Q=this.internal.getVerticalCoordinateString,de=c.call(this);if(D=ce[0],F=ce[1],de[te.index]=te,re){re*=Math.PI/180;var ue=Math.cos(re),E=Math.sin(re),H=function(ee){return ee.toFixed(4)},K=[H(ue),H(E),H(-1*E),H(ue),0,0,"cm"]}this.internal.write("q"),re?(this.internal.write([1,"0","0",1,G(C),Q(L+F),"cm"].join(" ")),this.internal.write(K.join(" ")),this.internal.write([G(D),"0","0",G(F),"0","0","cm"].join(" "))):this.internal.write([G(D),"0","0",G(F),G(C),Q(L+F),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+te.index+" Do"),this.internal.write("Q")},y=e.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};e.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var S=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},_=e.__addimage__.sHashCode=function(C){var L,D,F=0;if(typeof C=="string")for(D=C.length,L=0;L<D;L++)F=(F<<5)-F+C.charCodeAt(L),F|=0;else if($(C))for(D=C.byteLength/2,L=0;L<D;L++)F=(F<<5)-F+C[L],F|=0;return F},k=e.__addimage__.validateStringAsBase64=function(C){(C=C||"").toString().trim();var L=!0;return C.length===0&&(L=!1),C.length%4!=0&&(L=!1),/^[A-Za-z0-9+/]+$/.test(C.substr(0,C.length-2))===!1&&(L=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(C.substr(-2))===!1&&(L=!1),L},O=e.__addimage__.extractImageFromDataUrl=function(C){if(C==null||!(C=C.trim()).startsWith("data:"))return null;var L=C.indexOf(",");return L<0?null:C.substring(0,L).trim().endsWith("base64")?C.substring(L+1):null};e.__addimage__.isArrayBuffer=function(C){return C instanceof ArrayBuffer};var $=e.__addimage__.isArrayBufferView=function(C){return C instanceof Int8Array||C instanceof Uint8Array||C instanceof Uint8ClampedArray||C instanceof Int16Array||C instanceof Uint16Array||C instanceof Int32Array||C instanceof Uint32Array||C instanceof Float32Array||C instanceof Float64Array},U=e.__addimage__.binaryStringToUint8Array=function(C){for(var L=C.length,D=new Uint8Array(L),F=0;F<L;F++)D[F]=C.charCodeAt(F);return D},I=e.__addimage__.arrayBufferToBinaryString=function(C){for(var L="",D=$(C)?C:new Uint8Array(C),F=0;F<D.length;F+=8192)L+=String.fromCharCode.apply(null,D.subarray(F,F+8192));return L};e.addImage=function(){var C,L,D,F,te,re,ce,G,Q;if(typeof arguments[1]=="number"?(L=n,D=arguments[1],F=arguments[2],te=arguments[3],re=arguments[4],ce=arguments[5],G=arguments[6],Q=arguments[7]):(L=arguments[1],D=arguments[2],F=arguments[3],te=arguments[4],re=arguments[5],ce=arguments[6],G=arguments[7],Q=arguments[8]),tn(C=arguments[0])==="object"&&!m(C)&&"imageData"in C){var de=C;C=de.imageData,L=de.format||L||n,D=de.x||D||0,F=de.y||F||0,te=de.w||de.width||te,re=de.h||de.height||re,ce=de.alias||ce,G=de.compression||G,Q=de.rotation||de.angle||Q}var ue=this.internal.getFilters();if(G===void 0&&ue.indexOf("FlateEncode")!==-1&&(G="SLOW"),isNaN(D)||isNaN(F))throw new Error("Invalid coordinates passed to jsPDF.addImage");l.call(this);var E=R.call(this,C,L,ce,G);return b.call(this,D,F,te,re,E,Q),this};var R=function(C,L,D,F){var te,re,ce;if(typeof C=="string"&&i(C)===n){C=unescape(C);var G=z(C,!1);(G!==""||(G=e.loadFile(C,!0))!==void 0)&&(C=G)}if(m(C)&&(C=f(C,L)),L=i(C,L),!h(L))throw new Error("addImage does not support files of type '"+L+"', please ensure that a plugin for '"+L+"' support is added.");if(((ce=D)==null||ce.length===0)&&(D=function(Q){return typeof Q=="string"||$(Q)?_(Q):$(Q.data)?_(Q.data):null}(C)),(te=x.call(this,D))||(C instanceof Uint8Array||L==="RGBA"||(re=C,C=U(C)),te=this["process"+L.toUpperCase()](C,d.call(this),D,function(Q){return Q&&typeof Q=="string"&&(Q=Q.toUpperCase()),Q in e.image_compression?Q:S.NONE}(F),re)),!te)throw new Error("An unknown error occurred whilst processing the image.");return te},z=e.__addimage__.convertBase64ToBinaryString=function(C,L){L=typeof L!="boolean"||L;var D,F="";if(typeof C=="string"){var te;D=(te=O(C))!==null&&te!==void 0?te:C;try{F=i0(D)}catch(re){if(L)throw k(D)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+re.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return F};e.getImageProperties=function(C){var L,D,F="";if(m(C)&&(C=f(C)),typeof C=="string"&&i(C)===n&&((F=z(C,!1))===""&&(F=e.loadFile(C)||""),C=F),D=i(C),!h(D))throw new Error("addImage does not support files of type '"+D+"', please ensure that a plugin for '"+D+"' support is added.");if(C instanceof Uint8Array||(C=U(C)),!(L=this["process"+D.toUpperCase()](C)))throw new Error("An unknown error occurred whilst processing the image");return L.fileType=D,L}})(it.API),function(e){var t=function(n){if(n!==void 0&&n!="")return!0};it.API.events.push(["addPage",function(n){this.internal.getPageInfo(n.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(n){for(var r,i,s,o=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,l=this.internal.getPageInfoByObjId(n.objId),c=n.pageContext.annotations,d=!1,h=0;h<c.length&&!d;h++)switch((r=c[h]).type){case"link":(t(r.options.url)||t(r.options.pageNumber))&&(d=!0);break;case"reference":case"text":case"freetext":d=!0}if(d!=0){this.internal.write("/Annots [");for(var m=0;m<c.length;m++){r=c[m];var f=this.internal.pdfEscape,x=this.internal.getEncryptor(n.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var v=this.internal.newAdditionalObject(),b=this.internal.newAdditionalObject(),y=this.internal.getEncryptor(v.objId),S=r.title||"Note";s="<</Type /Annot /Subtype /Text "+(i="/Rect ["+o(r.bounds.x)+" "+a(r.bounds.y+r.bounds.h)+" "+o(r.bounds.x+r.bounds.w)+" "+a(r.bounds.y)+"] ")+"/Contents ("+f(y(r.contents))+")",s+=" /Popup "+b.objId+" 0 R",s+=" /P "+l.objId+" 0 R",s+=" /T ("+f(y(S))+") >>",v.content=s;var _=v.objId+" 0 R";s="<</Type /Annot /Subtype /Popup "+(i="/Rect ["+o(r.bounds.x+30)+" "+a(r.bounds.y+r.bounds.h)+" "+o(r.bounds.x+r.bounds.w+30)+" "+a(r.bounds.y)+"] ")+" /Parent "+_,r.open&&(s+=" /Open true"),s+=" >>",b.content=s,this.internal.write(v.objId,"0 R",b.objId,"0 R");break;case"freetext":i="/Rect ["+o(r.bounds.x)+" "+a(r.bounds.y)+" "+o(r.bounds.x+r.bounds.w)+" "+a(r.bounds.y+r.bounds.h)+"] ";var k=r.color||"#000000";s="<</Type /Annot /Subtype /FreeText "+i+"/Contents ("+f(x(r.contents))+")",s+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+k+")",s+=" /Border [0 0 0]",s+=" >>",this.internal.write(s);break;case"link":if(r.options.name){var O=this.annotations._nameMap[r.options.name];r.options.pageNumber=O.page,r.options.top=O.y}else r.options.top||(r.options.top=0);if(i="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",s="",r.options.url)s="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /A <</S /URI /URI ("+f(x(r.options.url))+") >>";else if(r.options.pageNumber)switch(s="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(r.options.pageNumber).objId+" 0 R",r.options.magFactor=r.options.magFactor||"XYZ",r.options.magFactor){case"Fit":s+=" /Fit]";break;case"FitH":s+=" /FitH "+r.options.top+"]";break;case"FitV":r.options.left=r.options.left||0,s+=" /FitV "+r.options.left+"]";break;default:var $=a(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),s+=" /XYZ "+r.options.left+" "+$+" "+r.options.zoom+"]"}s!=""&&(s+=" >>",this.internal.write(s))}}this.internal.write("]")}}]),e.createAnnotation=function(n){var r=this.internal.getCurrentPageInfo();switch(n.type){case"link":this.link(n.bounds.x,n.bounds.y,n.bounds.w,n.bounds.h,n);break;case"text":case"freetext":r.pageContext.annotations.push(n)}},e.link=function(n,r,i,s,o){var a=this.internal.getCurrentPageInfo(),l=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString;a.pageContext.annotations.push({finalBounds:{x:l(n),y:c(r),w:l(n+i),h:c(r+s)},options:o,type:"link"})},e.textWithLink=function(n,r,i,s){var o,a,l=this.getTextWidth(n),c=this.internal.getLineHeight()/this.internal.scaleFactor;if(s.maxWidth!==void 0){a=s.maxWidth;var d=this.splitTextToSize(n,a).length;o=Math.ceil(c*d)}else a=l,o=c;return this.text(n,r,i,s),i+=.2*c,s.align==="center"&&(r-=l/2),s.align==="right"&&(r-=l),this.link(r,i-c,a,o,s),l},e.getTextWidth=function(n){var r=this.internal.getFontSize();return this.getStringUnitWidth(n)*r/this.internal.scaleFactor}}(it.API),function(e){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];e.__arabicParser__={};var s=e.__arabicParser__.isInArabicSubstitutionA=function(v){return t[v.charCodeAt(0)]!==void 0},o=e.__arabicParser__.isArabicLetter=function(v){return typeof v=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(v)},a=e.__arabicParser__.isArabicEndLetter=function(v){return o(v)&&s(v)&&t[v.charCodeAt(0)].length<=2},l=e.__arabicParser__.isArabicAlfLetter=function(v){return o(v)&&i.indexOf(v.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(v){return o(v)&&s(v)&&t[v.charCodeAt(0)].length>=1};var c=e.__arabicParser__.arabicLetterHasFinalForm=function(v){return o(v)&&s(v)&&t[v.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(v){return o(v)&&s(v)&&t[v.charCodeAt(0)].length>=3};var d=e.__arabicParser__.arabicLetterHasMedialForm=function(v){return o(v)&&s(v)&&t[v.charCodeAt(0)].length==4},h=e.__arabicParser__.resolveLigatures=function(v){var b=0,y=n,S="",_=0;for(b=0;b<v.length;b+=1)y[v.charCodeAt(b)]!==void 0?(_++,typeof(y=y[v.charCodeAt(b)])=="number"&&(S+=String.fromCharCode(y),y=n,_=0),b===v.length-1&&(y=n,S+=v.charAt(b-(_-1)),b-=_-1,_=0)):(y=n,S+=v.charAt(b-_),b-=_,_=0);return S};e.__arabicParser__.isArabicDiacritic=function(v){return v!==void 0&&r[v.charCodeAt(0)]!==void 0};var m=e.__arabicParser__.getCorrectForm=function(v,b,y){return o(v)?s(v)===!1?-1:!c(v)||!o(b)&&!o(y)||!o(y)&&a(b)||a(v)&&!o(b)||a(v)&&l(b)||a(v)&&a(b)?0:d(v)&&o(b)&&!a(b)&&o(y)&&c(y)?3:a(v)||!o(y)?1:2:-1},f=function(v){var b=0,y=0,S=0,_="",k="",O="",$=(v=v||"").split("\\s+"),U=[];for(b=0;b<$.length;b+=1){for(U.push(""),y=0;y<$[b].length;y+=1)_=$[b][y],k=$[b][y-1],O=$[b][y+1],o(_)?(S=m(_,k,O),U[b]+=S!==-1?String.fromCharCode(t[_.charCodeAt(0)][S]):_):U[b]+=_;U[b]=h(U[b])}return U.join(" ")},x=e.__arabicParser__.processArabic=e.processArabic=function(){var v,b=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,y=[];if(Array.isArray(b)){var S=0;for(y=[],S=0;S<b.length;S+=1)Array.isArray(b[S])?y.push([f(b[S][0]),b[S][1],b[S][2]]):y.push([f(b[S])]);v=y}else v=f(b);return typeof arguments[0]=="string"?v:(arguments[0].text=v,arguments[0])};e.events.push(["preProcessText",x])}(it.API),it.API.autoPrint=function(e){var t;return(e=e||{}).variant=e.variant||"non-conform",e.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+t+" 0 R")})),this},function(e){var t=function(){var n=void 0;Object.defineProperty(this,"pdf",{get:function(){return n},set:function(a){n=a}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(a){r=isNaN(a)||Number.isInteger(a)===!1||a<0?150:a,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var i=300;Object.defineProperty(this,"height",{get:function(){return i},set:function(a){i=isNaN(a)||Number.isInteger(a)===!1||a<0?300:a,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=i+1)}});var s=[];Object.defineProperty(this,"childNodes",{get:function(){return s},set:function(a){s=a}});var o={};Object.defineProperty(this,"style",{get:function(){return o},set:function(a){o=a}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(n,r){var i;if((n=n||"2d")!=="2d")return null;for(i in r)this.pdf.context2d.hasOwnProperty(i)&&(this.pdf.context2d[i]=r[i]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])}(it.API),function(e){var t={left:0,top:0,bottom:0,right:0},n=!1,r=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new s,this.internal.__cell__.pages=1},s=function(){var l=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return l},set:function(v){l=v}});var c=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return c},set:function(v){c=v}});var d=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return d},set:function(v){d=v}});var h=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return h},set:function(v){h=v}});var m=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return m},set:function(v){m=v}});var f=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return f},set:function(v){f=v}});var x=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return x},set:function(v){x=v}}),this};s.prototype.clone=function(){return new s(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},s.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(l){return r.call(this),this.internal.__cell__.headerFunction=typeof l=="function"?l:void 0,this},e.getTextDimensions=function(l,c){r.call(this);var d=(c=c||{}).fontSize||this.getFontSize(),h=c.font||this.getFont(),m=c.scaleFactor||this.internal.scaleFactor,f=0,x=0,v=0,b=this;if(!Array.isArray(l)&&typeof l!="string"){if(typeof l!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");l=String(l)}var y=c.maxWidth;y>0?typeof l=="string"?l=this.splitTextToSize(l,y):Object.prototype.toString.call(l)==="[object Array]"&&(l=l.reduce(function(_,k){return _.concat(b.splitTextToSize(k,y))},[])):l=Array.isArray(l)?l:[l];for(var S=0;S<l.length;S++)f<(v=this.getStringUnitWidth(l[S],{font:h})*d)&&(f=v);return f!==0&&(x=l.length),{w:f/=m,h:Math.max((x*d*this.getLineHeightFactor()-d*(this.getLineHeightFactor()-1))/m,0)}},e.cellAddPage=function(){r.call(this),this.addPage();var l=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new s(l.left,l.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var o=e.cell=function(){var l;l=arguments[0]instanceof s?arguments[0]:new s(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),r.call(this);var c=this.internal.__cell__.lastCell,d=this.internal.__cell__.padding,h=this.internal.__cell__.margins||t,m=this.internal.__cell__.tableHeaderRow,f=this.internal.__cell__.printHeaders;return c.lineNumber!==void 0&&(c.lineNumber===l.lineNumber?(l.x=(c.x||0)+(c.width||0),l.y=c.y||0):c.y+c.height+l.height+h.bottom>this.getPageHeight()?(this.cellAddPage(),l.y=h.top,f&&m&&(this.printHeaderRow(l.lineNumber,!0),l.y+=m[0].height)):l.y=c.y+c.height||l.y),l.text[0]!==void 0&&(this.rect(l.x,l.y,l.width,l.height,n===!0?"FD":void 0),l.align==="right"?this.text(l.text,l.x+l.width-d,l.y+d,{align:"right",baseline:"top"}):l.align==="center"?this.text(l.text,l.x+l.width/2,l.y+d,{align:"center",baseline:"top",maxWidth:l.width-d-d}):this.text(l.text,l.x+d,l.y+d,{align:"left",baseline:"top",maxWidth:l.width-d-d})),this.internal.__cell__.lastCell=l,this};e.table=function(l,c,d,h,m){if(r.call(this),!d)throw new Error("No data for PDF table.");var f,x,v,b,y=[],S=[],_=[],k={},O={},$=[],U=[],I=(m=m||{}).autoSize||!1,R=m.printHeaders!==!1,z=m.css&&m.css["font-size"]!==void 0?16*m.css["font-size"]:m.fontSize||12,C=m.margins||Object.assign({width:this.getPageWidth()},t),L=typeof m.padding=="number"?m.padding:3,D=m.headerBackgroundColor||"#c8c8c8",F=m.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=R,this.internal.__cell__.margins=C,this.internal.__cell__.table_font_size=z,this.internal.__cell__.padding=L,this.internal.__cell__.headerBackgroundColor=D,this.internal.__cell__.headerTextColor=F,this.setFontSize(z),h==null)S=y=Object.keys(d[0]),_=y.map(function(){return"left"});else if(Array.isArray(h)&&tn(h[0])==="object")for(y=h.map(function(de){return de.name}),S=h.map(function(de){return de.prompt||de.name||""}),_=h.map(function(de){return de.align||"left"}),f=0;f<h.length;f+=1)O[h[f].name]=.7499990551181103*h[f].width;else Array.isArray(h)&&typeof h[0]=="string"&&(S=y=h,_=y.map(function(){return"left"}));if(I||Array.isArray(h)&&typeof h[0]=="string")for(f=0;f<y.length;f+=1){for(k[b=y[f]]=d.map(function(de){return de[b]}),this.setFont(void 0,"bold"),$.push(this.getTextDimensions(S[f],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),x=k[b],this.setFont(void 0,"normal"),v=0;v<x.length;v+=1)$.push(this.getTextDimensions(x[v],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);O[b]=Math.max.apply(null,$)+L+L,$=[]}if(R){var te={};for(f=0;f<y.length;f+=1)te[y[f]]={},te[y[f]].text=S[f],te[y[f]].align=_[f];var re=a.call(this,te,O);U=y.map(function(de){return new s(l,c,O[de],re,te[de].text,void 0,te[de].align)}),this.setTableHeaderRow(U),this.printHeaderRow(1,!1)}var ce=h.reduce(function(de,ue){return de[ue.name]=ue.align,de},{});for(f=0;f<d.length;f+=1){"rowStart"in m&&m.rowStart instanceof Function&&m.rowStart({row:f,data:d[f]},this);var G=a.call(this,d[f],O);for(v=0;v<y.length;v+=1){var Q=d[f][y[v]];"cellStart"in m&&m.cellStart instanceof Function&&m.cellStart({row:f,col:v,data:Q},this),o.call(this,new s(l,c,O[y[v]],G,Q,f+2,ce[y[v]]))}}return this.internal.__cell__.table_x=l,this.internal.__cell__.table_y=c,this};var a=function(l,c){var d=this.internal.__cell__.padding,h=this.internal.__cell__.table_font_size,m=this.internal.scaleFactor;return Object.keys(l).map(function(f){var x=l[f];return this.splitTextToSize(x.hasOwnProperty("text")?x.text:x,c[f]-d-d)},this).map(function(f){return this.getLineHeightFactor()*f.length*h/m+d+d},this).reduce(function(f,x){return Math.max(f,x)},0)};e.setTableHeaderRow=function(l){r.call(this),this.internal.__cell__.tableHeaderRow=l},e.printHeaderRow=function(l,c){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var d;if(n=!0,typeof this.internal.__cell__.headerFunction=="function"){var h=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new s(h[0],h[1],h[2],h[3],void 0,-1)}this.setFont(void 0,"bold");for(var m=[],f=0;f<this.internal.__cell__.tableHeaderRow.length;f+=1){d=this.internal.__cell__.tableHeaderRow[f].clone(),c&&(d.y=this.internal.__cell__.margins.top||0,m.push(d)),d.lineNumber=l;var x=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),o.call(this,d),this.setTextColor(x)}m.length>0&&this.setTableHeaderRow(m),this.setFont(void 0,"normal"),n=!1}}(it.API);var FP={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},DP=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Vv=MP(DP),BP=[100,200,300,400,500,600,700,800,900],TJ=MP(BP);function y2(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),n=function(s){return FP[s=s||"normal"]?s:"normal"}(e.style),r=function(s){return s?typeof s=="number"?s>=100&&s<=900&&s%100==0?s:400:/^\d00$/.test(s)?parseInt(s):s==="bold"?700:400:400}(e.weight),i=function(s){return typeof Vv[s=s||"normal"]=="number"?s:"normal"}(e.stretch);return{family:t,style:n,weight:r,stretch:i,src:e.src||[],ref:e.ref||{name:t,style:[i,n,r].join(" ")}}}function p6(e,t,n,r){var i;for(i=n;i>=0&&i<t.length;i+=r)if(e[t[i]])return e[t[i]];for(i=n;i>=0&&i<t.length;i-=r)if(e[t[i]])return e[t[i]]}var RJ={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},m6={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function g6(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function y6(e){return e.trimLeft()}function OJ(e,t){for(var n=0;n<e.length;){if(e.charAt(n)===t)return[e.substring(0,n),e.substring(n+1)];n+=1}return null}function IJ(e){var t=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return t===null?null:[t[0],e.substring(t[0].length)]}var Cm,x6,v6,eu,Em,b6,w6,S6,x2=["times"];function _6(e,t,n,r,i){var s=4,o=k6;switch(i){case it.API.image_compression.FAST:s=1,o=N6;break;case it.API.image_compression.MEDIUM:s=6,o=A6;break;case it.API.image_compression.SLOW:s=9,o=j6}e=function(l,c,d,h){for(var m,f=l.length/c,x=new Uint8Array(l.length+f),v=[MJ,N6,k6,A6,j6],b=0;b<f;b+=1){var y=b*c,S=l.subarray(y,y+c);if(h)x.set(h(S,d,m),y+b);else{for(var _=v.length,k=[],O=0;O<_;O+=1)k[O]=v[O](S,d,m);var $=DJ(k.concat());x.set(k[$],y+b)}m=S}return x}(e,t,Math.ceil(n*r/8),o);var a=Ev(e,{level:s});return it.API.__addimage__.arrayBufferToBinaryString(a)}function MJ(e){var t=Array.apply([],e);return t.unshift(0),t}function N6(e,t){var n=e.length,r=[];r[0]=1;for(var i=0;i<n;i+=1){var s=e[i-t]||0;r[i+1]=e[i]-s+256&255}return r}function k6(e,t,n){var r=e.length,i=[];i[0]=2;for(var s=0;s<r;s+=1){var o=n&&n[s]||0;i[s+1]=e[s]-o+256&255}return i}function A6(e,t,n){var r=e.length,i=[];i[0]=3;for(var s=0;s<r;s+=1){var o=e[s-t]||0,a=n&&n[s]||0;i[s+1]=e[s]+256-(o+a>>>1)&255}return i}function j6(e,t,n){var r=e.length,i=[];i[0]=4;for(var s=0;s<r;s+=1){var o=FJ(e[s-t]||0,n&&n[s]||0,n&&n[s-t]||0);i[s+1]=e[s]-o+256&255}return i}function FJ(e,t,n){if(e===t&&t===n)return e;var r=Math.abs(t-n),i=Math.abs(e-n),s=Math.abs(e+t-n-n);return r<=i&&r<=s?e:i<=s?t:n}function DJ(e){var t=e.map(function(n){return n.reduce(function(r,i){return r+Math.abs(i)},0)});return t.indexOf(Math.min.apply(null,t))}function v2(e,t,n){var r=t*n,i=Math.floor(r/8),s=16-(r-8*i+n),o=(1<<n)-1;return zP(e,i)>>s&o}function C6(e,t,n,r){var i=n*r,s=Math.floor(i/8),o=16-(i-8*s+r),a=(1<<r)-1,l=(t&a)<<o;(function(c,d,h){if(d+1<c.byteLength)c.setUint16(d,h,!1);else{var m=h>>8&255;c.setUint8(d,m)}})(e,s,zP(e,s)&~(a<<o)&65535|l)}function zP(e,t){return t+1<e.byteLength?e.getUint16(t,!1):e.getUint8(t)<<8}function BJ(e){var t=0;if(e[t++]!==71||e[t++]!==73||e[t++]!==70||e[t++]!==56||(e[t++]+1&253)!=56||e[t++]!==97)throw new Error("Invalid GIF 87a/89a header.");var n=e[t++]|e[t++]<<8,r=e[t++]|e[t++]<<8,i=e[t++],s=i>>7,o=1<<1+(7&i);e[t++],e[t++];var a=null,l=null;s&&(a=t,l=o,t+=3*o);var c=!0,d=[],h=0,m=null,f=0,x=null;for(this.width=n,this.height=r;c&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(e[t]!==11||e[t+1]==78&&e[t+2]==69&&e[t+3]==84&&e[t+4]==83&&e[t+5]==67&&e[t+6]==65&&e[t+7]==80&&e[t+8]==69&&e[t+9]==50&&e[t+10]==46&&e[t+11]==48&&e[t+12]==3&&e[t+13]==1&&e[t+16]==0)t+=14,x=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((C=e[t++])>=0))throw Error("Invalid block size");if(C===0)break;t+=C}break;case 249:if(e[t++]!==4||e[t+4]!==0)throw new Error("Invalid graphics extension block.");var v=e[t++];h=e[t++]|e[t++]<<8,m=e[t++],1&v||(m=null),f=v>>2&7,t++;break;case 254:for(;;){if(!((C=e[t++])>=0))throw Error("Invalid block size");if(C===0)break;t+=C}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var b=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,S=e[t++]|e[t++]<<8,_=e[t++]|e[t++]<<8,k=e[t++],O=k>>6&1,$=1<<1+(7&k),U=a,I=l,R=!1;k>>7&&(R=!0,U=t,I=$,t+=3*$);var z=t;for(t++;;){var C;if(!((C=e[t++])>=0))throw Error("Invalid block size");if(C===0)break;t+=C}d.push({x:b,y,width:S,height:_,has_local_palette:R,palette_offset:U,palette_size:I,data_offset:z,data_length:t-z,transparent_index:m,interlaced:!!O,delay:h,disposal:f});break;case 59:c=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return d.length},this.loopCount=function(){return x},this.frameInfo=function(L){if(L<0||L>=d.length)throw new Error("Frame index out of range.");return d[L]},this.decodeAndBlitFrameBGRA=function(L,D){var F=this.frameInfo(L),te=F.width*F.height,re=new Uint8Array(te);E6(e,F.data_offset,re,te);var ce=F.palette_offset,G=F.transparent_index;G===null&&(G=256);var Q=F.width,de=n-Q,ue=Q,E=4*(F.y*n+F.x),H=4*((F.y+F.height)*n+F.x),K=E,ee=4*de;F.interlaced===!0&&(ee+=4*n*7);for(var J=8,ie=0,ge=re.length;ie<ge;++ie){var ye=re[ie];if(ue===0&&(ue=Q,(K+=ee)>=H&&(ee=4*de+4*n*(J-1),K=E+(Q+de)*(J<<1),J>>=1)),ye===G)K+=4;else{var ve=e[ce+3*ye],je=e[ce+3*ye+1],Le=e[ce+3*ye+2];D[K++]=Le,D[K++]=je,D[K++]=ve,D[K++]=255}--ue}},this.decodeAndBlitFrameRGBA=function(L,D){var F=this.frameInfo(L),te=F.width*F.height,re=new Uint8Array(te);E6(e,F.data_offset,re,te);var ce=F.palette_offset,G=F.transparent_index;G===null&&(G=256);var Q=F.width,de=n-Q,ue=Q,E=4*(F.y*n+F.x),H=4*((F.y+F.height)*n+F.x),K=E,ee=4*de;F.interlaced===!0&&(ee+=4*n*7);for(var J=8,ie=0,ge=re.length;ie<ge;++ie){var ye=re[ie];if(ue===0&&(ue=Q,(K+=ee)>=H&&(ee=4*de+4*n*(J-1),K=E+(Q+de)*(J<<1),J>>=1)),ye===G)K+=4;else{var ve=e[ce+3*ye],je=e[ce+3*ye+1],Le=e[ce+3*ye+2];D[K++]=ve,D[K++]=je,D[K++]=Le,D[K++]=255}--ue}}}function E6(e,t,n,r){for(var i=e[t++],s=1<<i,o=s+1,a=o+1,l=i+1,c=(1<<l)-1,d=0,h=0,m=0,f=e[t++],x=new Int32Array(4096),v=null;;){for(;d<16&&f!==0;)h|=e[t++]<<d,d+=8,f===1?f=e[t++]:--f;if(d<l)break;var b=h&c;if(h>>=l,d-=l,b!==s){if(b===o)break;for(var y=b<a?b:v,S=0,_=y;_>s;)_=x[_]>>8,++S;var k=_;if(m+S+(y!==b?1:0)>r)return void ln.log("Warning, gif stream longer than expected.");n[m++]=k;var O=m+=S;for(y!==b&&(n[m++]=k),_=y;S--;)_=x[_],n[--O]=255&_,_>>=8;v!==null&&a<4096&&(x[a++]=v<<8|k,a>=c+1&&l<12&&(++l,c=c<<1|1)),v=b}else a=o+1,c=(1<<(l=i+1))-1,v=null}return m!==r&&ln.log("Warning, gif stream shorter than expected."),n}/** 502 * @license 503 Copyright (c) 2008, Adobe Systems Incorporated 504 All rights reserved. 505 506 Redistribution and use in source and binary forms, with or without 507 modification, are permitted provided that the following conditions are 508 met: 509 510 * Redistributions of source code must retain the above copyright notice, 511 this list of conditions and the following disclaimer. 512 513 * Redistributions in binary form must reproduce the above copyright 514 notice, this list of conditions and the following disclaimer in the 515 documentation and/or other materials provided with the distribution. 516 517 * Neither the name of Adobe Systems Incorporated nor the names of its 518 contributors may be used to endorse or promote products derived from 519 this software without specific prior written permission. 520 521 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 522 IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 523 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 524 PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 525 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
526 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 527 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 528 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 529 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 530 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 531 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 532*/function b2(e){var t,n,r,i,s,o=Math.floor,a=new Array(64),l=new Array(64),c=new Array(64),d=new Array(64),h=new Array(65535),m=new Array(65535),f=new Array(64),x=new Array(64),v=[],b=0,y=7,S=new Array(64),_=new Array(64),k=new Array(64),O=new Array(256),$=new Array(2048),U=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],I=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],R=[0,1,2,3,4,5,6,7,8,9,10,11],z=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],C=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],L=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],D=[0,1,2,3,4,5,6,7,8,9,10,11],F=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],te=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function re(E,H){for(var K=0,ee=0,J=new Array,ie=1;ie<=16;ie++){for(var ge=1;ge<=E[ie];ge++)J[H[ee]]=[],J[H[ee]][0]=K,J[H[ee]][1]=ie,ee++,K++;K*=2}return J}function ce(E){for(var H=E[0],K=E[1]-1;K>=0;)H&1<<K&&(b|=1<<y),K--,--y<0&&(b==255?(G(255),G(0)):G(b),y=7,b=0)}function G(E){v.push(E)}function Q(E){G(E>>8&255),G(255&E)}function de(E,H,K,ee,J){for(var ie,ge=J[0],ye=J[240],ve=function(Ne,st){var Ie,Ge,He,$t,Et,ot,wt,Lt,Ke,dt,Ze=0;for(Ke=0;Ke<8;++Ke){Ie=Ne[Ze],Ge=Ne[Ze+1],He=Ne[Ze+2],$t=Ne[Ze+3],Et=Ne[Ze+4],ot=Ne[Ze+5],wt=Ne[Ze+6];var vn=Ie+(Lt=Ne[Ze+7]),Pt=Ie-Lt,ht=Ge+wt,St=Ge-wt,Gt=He+ot,at=He-ot,sn=$t+Et,lt=$t-Et,pt=vn+sn,un=vn-sn,_t=ht+Gt,Qe=ht-Gt;Ne[Ze]=pt+_t,Ne[Ze+4]=pt-_t;var qt=.707106781*(Qe+un);Ne[Ze+2]=un+qt,Ne[Ze+6]=un-qt;var ct=.382683433*((pt=lt+at)-(Qe=St+Pt)),yt=.5411961*pt+ct,Mt=1.306562965*Qe+ct,En=.707106781*(_t=at+St),We=Pt+En,ur=Pt-En;Ne[Ze+5]=ur+yt,Ne[Ze+3]=ur-yt,Ne[Ze+1]=We+Mt,Ne[Ze+7]=We-Mt,Ze+=8}for(Ze=0,Ke=0;Ke<8;++Ke){Ie=Ne[Ze],Ge=Ne[Ze+8],He=Ne[Ze+16],$t=Ne[Ze+24],Et=Ne[Ze+32],ot=Ne[Ze+40],wt=Ne[Ze+48];var yr=Ie+(Lt=Ne[Ze+56]),bn=Ie-Lt,Mn=Ge+wt,Ln=Ge-wt,dr=He+ot,xr=He-ot,yl=$t+Et,na=$t-Et,ls=yr+yl,Bs=yr-yl,cs=Mn+dr,us=Mn-dr;Ne[Ze]=ls+cs,Ne[Ze+32]=ls-cs;var Ui=.707106781*(us+Bs);Ne[Ze+16]=Bs+Ui,Ne[Ze+48]=Bs-Ui;var xl=.382683433*((ls=na+xr)-(us=Ln+bn)),zs=.5411961*ls+xl,vl=1.306562965*us+xl,Rc=.707106781*(cs=xr+Ln),Oc=bn+Rc,Ic=bn-Rc;Ne[Ze+40]=Ic+zs,Ne[Ze+24]=Ic-zs,Ne[Ze+8]=Oc+vl,Ne[Ze+56]=Oc-vl,Ze++}for(Ke=0;Ke<64;++Ke)dt=Ne[Ke]*st[Ke],f[Ke]=dt>0?dt+.5|0:dt-.5|0;return f}(E,H),je=0;je<64;++je)x[U[je]]=ve[je];var Le=x[0]-K;K=x[0],Le==0?ce(ee[0]):(ce(ee[m[ie=32767+Le]]),ce(h[ie]));for(var Te=63;Te>0&&x[Te]==0;)Te--;if(Te==0)return ce(ge),K;for(var Ue,W=1;W<=Te;){for(var we=W;x[W]==0&&W<=Te;)++W;var nt=W-we;if(nt>=16){Ue=nt>>4;for(var Fe=1;Fe<=Ue;++Fe)ce(ye);nt&=15}ie=32767+x[W],ce(J[(nt<<4)+m[ie]]),ce(h[ie]),W++}return Te!=63&&ce(ge),K}function ue(E){E=Math.min(Math.max(E,1),100),s!=E&&(function(H){for(var K=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],ee=0;ee<64;ee++){var J=o((K[ee]*H+50)/100);J=Math.min(Math.max(J,1),255),a[U[ee]]=J}for(var ie=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],ge=0;ge<64;ge++){var ye=o((ie[ge]*H+50)/100);ye=Math.min(Math.max(ye,1),255),l[U[ge]]=ye}for(var ve=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],je=0,Le=0;Le<8;Le++)for(var Te=0;Te<8;Te++)c[je]=1/(a[U[je]]*ve[Le]*ve[Te]*8),d[je]=1/(l[U[je]]*ve[Le]*ve[Te]*8),je++}(E<50?Math.floor(5e3/E):Math.floor(200-2*E)),s=E)}this.encode=function(E,H){H&&ue(H),v=new Array,b=0,y=7,Q(65496),Q(65504),Q(16),G(74),G(70),G(73),G(70),G(0),G(1),G(1),G(0),Q(1),Q(1),G(0),G(0),function(){Q(65499),Q(132),G(0);for(var Ge=0;Ge<64;Ge++)G(a[Ge]);G(1);for(var He=0;He<64;He++)G(l[He])}(),function(Ge,He){Q(65472),Q(17),G(8),Q(He),Q(Ge),G(3),G(1),G(17),G(0),G(2),G(17),G(1),G(3),G(17),G(1)}(E.width,E.height),function(){Q(65476),Q(418),G(0);for(var Ge=0;Ge<16;
vendor: 47,750 bytes, lines 532-538
532Ge++)G(I[Ge+1]);for(var He=0;He<=11;He++)G(R[He]);G(16);for(var $t=0;$t<16;$t++)G(z[$t+1]);for(var Et=0;Et<=161;Et++)G(C[Et]);G(1);for(var ot=0;ot<16;ot++)G(L[ot+1]);for(var wt=0;wt<=11;wt++)G(D[wt]);G(17);for(var Lt=0;Lt<16;Lt++)G(F[Lt+1]);for(var Ke=0;Ke<=161;Ke++)G(te[Ke])}(),Q(65498),Q(12),G(3),G(1),G(0),G(2),G(17),G(3),G(17),G(0),G(63),G(0);var K=0,ee=0,J=0;b=0,y=7,this.encode.displayName="_encode_";for(var ie,ge,ye,ve,je,Le,Te,Ue,W,we=E.data,nt=E.width,Fe=E.height,Ne=4*nt,st=0;st<Fe;){for(ie=0;ie<Ne;){for(je=Ne*st+ie,Te=-1,Ue=0,W=0;W<64;W++)Le=je+(Ue=W>>3)*Ne+(Te=4*(7&W)),st+Ue>=Fe&&(Le-=Ne*(st+1+Ue-Fe)),ie+Te>=Ne&&(Le-=ie+Te-Ne+4),ge=we[Le++],ye=we[Le++],ve=we[Le++],S[W]=($[ge]+$[ye+256|0]+$[ve+512|0]>>16)-128,_[W]=($[ge+768|0]+$[ye+1024|0]+$[ve+1280|0]>>16)-128,k[W]=($[ge+1280|0]+$[ye+1536|0]+$[ve+1792|0]>>16)-128;K=de(S,c,K,t,r),ee=de(_,d,ee,n,i),J=de(k,d,J,n,i),ie+=32}st+=8}if(y>=0){var Ie=[];Ie[1]=y+1,Ie[0]=(1<<y+1)-1,ce(Ie)}return Q(65497),new Uint8Array(v)},e=e||50,function(){for(var E=String.fromCharCode,H=0;H<256;H++)O[H]=E(H)}(),t=re(I,R),n=re(L,D),r=re(z,C),i=re(F,te),function(){for(var E=1,H=2,K=1;K<=15;K++){for(var ee=E;ee<H;ee++)m[32767+ee]=K,h[32767+ee]=[],h[32767+ee][1]=K,h[32767+ee][0]=ee;for(var J=-(H-1);J<=-E;J++)m[32767+J]=K,h[32767+J]=[],h[32767+J][1]=K,h[32767+J][0]=H-1+J;E<<=1,H<<=1}}(),function(){for(var E=0;E<256;E++)$[E]=19595*E,$[E+256|0]=38470*E,$[E+512|0]=7471*E+32768,$[E+768|0]=-11059*E,$[E+1024|0]=-21709*E,$[E+1280|0]=32768*E+8421375,$[E+1536|0]=-27439*E,$[E+1792|0]=-5329*E}(),ue(e)}/** 533 * @license 534 * Copyright (c) 2017 Aras Abbasi 535 * 536 * Licensed under the MIT License. 537 * http://opensource.org/licenses/mit-license 538 */function vs(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function L6(e){function t(R){if(!R)throw Error("assert :P")}function n(R,z,C){for(var L=0;4>L;L++)if(R[z+L]!=C.charCodeAt(L))return!0;return!1}function r(R,z,C,L,D){for(var F=0;F<D;F++)R[z+F]=C[L+F]}function i(R,z,C,L){for(var D=0;D<L;D++)R[z+D]=C}function s(R){return new Int32Array(R)}function o(R,z){for(var C=[],L=0;L<R;L++)C.push(new z);return C}function a(R,z){var C=[];return function L(D,F,te){for(var re=te[F],ce=0;ce<re&&(D.push(te.length>F+1?[]:new z),!(te.length<F+1));ce++)L(D[ce],F+1,te)}(C,0,R),C}var l=function(){var R=this;function z(p,g){for(var N=1<<g-1>>>0;p&N;)N>>>=1;return N?(p&N-1)+N:p}function C(p,g,N,A,T){t(!(A%N));do p[g+(A-=N)]=T;while(0<A)}function L(p,g,N,A,T){if(t(2328>=T),512>=T)var M=s(512);else if((M=s(T))==null)return 0;return function(B,V,q,Y,se,me){var X,le,he=V,xe=1<<q,pe=s(16),be=s(16);for(t(se!=0),t(Y!=null),t(B!=null),t(0<q),le=0;le<se;++le){if(15<Y[le])return 0;++pe[Y[le]]}if(pe[0]==se)return 0;for(be[1]=0,X=1;15>X;++X){if(pe[X]>1<<X)return 0;be[X+1]=be[X]+pe[X]}for(le=0;le<se;++le)X=Y[le],0<Y[le]&&(me[be[X]++]=le);if(be[15]==1)return(Y=new D).g=0,Y.value=me[0],C(B,he,1,xe,Y),xe;var _e,Ce=-1,Ae=xe-1,rt=0,Be=1,At=1,Ye=1<<q;for(le=0,X=1,se=2;X<=q;++X,se<<=1){if(Be+=At<<=1,0>(At-=pe[X]))return 0;for(;0<pe[X];--pe[X])(Y=new D).g=X,Y.value=me[le++],C(B,he+rt,se,Ye,Y),rt=z(rt,X)}for(X=q+1,se=2;15>=X;++X,se<<=1){if(Be+=At<<=1,0>(At-=pe[X]))return 0;for(;0<pe[X];--pe[X]){if(Y=new D,(rt&Ae)!=Ce){for(he+=Ye,_e=1<<(Ce=X)-q;15>Ce&&!(0>=(_e-=pe[Ce]));)++Ce,_e<<=1;xe+=Ye=1<<(_e=Ce-q),B[V+(Ce=rt&Ae)].g=_e+q,B[V+Ce].value=he-V-Ce}Y.g=X-q,Y.value=me[le++],C(B,he+(rt>>q),se,Ye,Y),rt=z(rt,X)}}return Be!=2*be[15]-1?0:xe}(p,g,N,A,T,M)}function D(){this.value=this.g=0}function F(){this.value=this.g=0}function te(){this.G=o(5,D),this.H=s(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(Ll,F)}function re(p,g,N,A){t(p!=null),t(g!=null),t(2147483648>A),p.Ca=254,p.I=0,p.b=-8,p.Ka=0,p.oa=g,p.pa=N,p.Jd=g,p.Yc=N+A,p.Zc=4<=A?N+A-4+1:N,ge(p)}function ce(p,g){for(var N=0;0<g--;)N|=ve(p,128)<<g;return N}function G(p,g){var N=ce(p,g);return ye(p)?-N:N}function Q(p,g,N,A){var T,M=0;for(t(p!=null),t(g!=null),t(4294967288>A),p.Sb=A,p.Ra=0,p.u=0,p.h=0,4<A&&(A=4),T=0;T<A;++T)M+=g[N+T]<<8*T;p.Ra=M,p.bb=A,p.oa=g,p.pa=N}function de(p){for(;8<=p.u&&p.bb<p.Sb;)p.Ra>>>=8,p.Ra+=p.oa[p.pa+p.bb]<<oa-8>>>0,++p.bb,p.u-=8;ee(p)&&(p.h=1,p.u=0)}function ue(p,g){if(t(0<=g),!p.h&&g<=bi){var N=K(p)&vi[g];return p.u+=g,de(p),N}return p.h=1,p.u=0}function E(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function H(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function K(p){return p.Ra>>>(p.u&oa-1)>>>0}function ee(p){return t(p.bb<=p.Sb),p.h||p.bb==p.Sb&&p.u>oa}function J(p,g){p.u=g,p.h=ee(p)}function ie(p){p.u>=jo&&(t(p.u>=jo),de(p))}function ge(p){t(p!=null&&p.oa!=null),p.pa<p.Zc?(p.I=(p.oa[p.pa++]|p.I<<8)>>>0,p.b+=8):(t(p!=null&&p.oa!=null),p.pa<p.Yc?(p.b+=8,p.I=p.oa[p.pa++]|p.I<<8):p.Ka?p.b=0:(p.I<<=8,p.b+=8,p.Ka=1))}function ye(p){return ce(p,1)}function ve(p,g){var N=p.Ca;0>p.b&&ge(p);var A=p.b,T=N*g>>>8,M=(p.I>>>A>T)+0;for(M?(N-=T,p.I-=T+1<<A>>>0):N=T+1,A=N,T=0;256<=A;)T+=8,A>>=8;return A=7^T+aa[A],p.b-=A,p.Ca=(N<<A)-1,M}function je(p,g,N){p[g+0]=N>>24&255,p[g+1]=N>>16&255,p[g+2]=N>>8&255,p[g+3]=255&N}function Le(p,g){return p[g+0]|p[g+1]<<8}function Te(p,g){return Le(p,g)|p[g+2]<<16}function Ue(p,g){return Le(p,g)|Le(p,g+2)<<16}function W(p,g){var N=1<<g;return t(p!=null),t(0<g),p.X=s(N),p.X==null?0:(p.Mb=32-g,p.Xa=g,1)}function we(p,g){t(p!=null),t(g!=null),t(p.Xa==g.Xa),r(g.X,0,p.X,0,1<<g.Xa)}function nt(){this.X=[],this.Xa=this.Mb=0}function Fe(p,g,N,A){t(N!=null),t(A!=null);var T=N[0],M=A[0];return T==0&&(T=(p*M+g/2)/g),M==0&&(M=(g*T+p/2)/p),0>=T||0>=M?0:(N[0]=T,A[0]=M,1)}function Ne(p,g){return p+(1<<g)-1>>>g}function st(p,g){return((4278255360&p)+(4278255360&g)>>>0&4278255360)+((16711935&p)+(16711935&g)>>>0&16711935)>>>0}function Ie(p,g){R[g]=function(N,A,T,M,B,V,q){var Y;for(Y=0;Y<B;++Y){var se=R[p](V[q+Y-1],T,M+Y);V[q+Y]=st(N[A+Y],se)}}}function Ge(){this.ud=this.hd=this.jd=0}function He(p,g){return((4278124286&(p^g))>>>1)+(p&g)>>>0}function $t(p){return 0<=p&&256>p?p:0>p?0:255<p?255:void 0}function Et(p,g){return $t(p+(p-g+.5>>1))}function ot(p,g,N){return Math.abs(g-N)-Math.abs(p-N)}function wt(p,g,N,A,T,M,B){for(A=M[B-1],N=0;N<T;++N)M[B+N]=A=st(p[g+N],A)}function Lt(p,g,N,A,T){var M;for(M=0;M<N;++M){var B=p[g+M],V=B>>8&255,q=16711935&(q=(q=16711935&B)+((V<<16)+V));A[T+M]=(4278255360&B)+q>>>0}}function Ke(p,g){g.jd=255&p,g.hd=p>>8&255,g.ud=p>>16&255}function dt(p,g,N,A,T,M){var B;for(B=0;B<A;++B){var V=g[N+B],q=V>>>8,Y=V,se=255&(se=(se=V>>>16)+((p.jd<<24>>24)*(q<<24>>24)>>>5));Y=255&(Y=(Y+=(p.hd<<24>>24)*(q<<24>>24)>>>5)+((p.ud<<24>>24)*(se<<24>>24)>>>5)),T[M+B]=(4278255360&V)+(se<<16)+Y}}function Ze(p,g,N,A,T){R[g]=function(M,B,V,q,Y,se,me,X,le){for(q=me;q<X;++q)for(me=0;me<le;++me)Y[se++]=T(V[A(M[B++])])},R[p]=function(M,B,V,q,Y,se,me){var X=8>>M.b,le=M.Ea,he=M.K[0],xe=M.w;if(8>X)for(M=(1<<M.b)-1,xe=(1<<X)-1;B<V;++B){var pe,be=0;for(pe=0;pe<le;++pe)pe&M||(be=A(q[Y++])),se[me++]=T(he[be&xe]),be>>=X}else R["VP8LMapColor"+N](q,Y,he,xe,se,me,B,V,le)}}function vn(p,g,N,A,T){for(N=g+N;g<N;){var M=p[g++];A[T++]=M>>16&255,A[T++]=M>>8&255,A[T++]=255&M}}function Pt(p,g,N,A,T){for(N=g+N;g<N;){var M=p[g++];A[T++]=M>>16&255,A[T++]=M>>8&255,A[T++]=255&M,A[T++]=M>>24&255}}function ht(p,g,N,A,T){for(N=g+N;g<N;){var M=(B=p[g++])>>16&240|B>>12&15,B=240&B|B>>28&15;A[T++]=M,A[T++]=B}}function St(p,g,N,A,T){for(N=g+N;g<N;){var M=(B=p[g++])>>16&248|B>>13&7,B=B>>5&224|B>>3&31;A[T++]=M,A[T++]=B}}function Gt(p,g,N,A,T){for(N=g+N;g<N;){var M=p[g++];A[T++]=255&M,A[T++]=M>>8&255,A[T++]=M>>16&255}}function at(p,g,N,A,T,M){if(M==0)for(N=g+N;g<N;)je(A,((M=p[g++])[0]>>24|M[1]>>8&65280|M[2]<<8&16711680|M[3]<<24)>>>0),T+=32;else r(A,T,p,g,N)}function sn(p,g){R[g][0]=R[p+"0"],R[g][1]=R[p+"1"],R[g][2]=R[p+"2"],R[g][3]=R[p+"3"],R[g][4]=R[p+"4"],R[g][5]=R[p+"5"],R[g][6]=R[p+"6"],R[g][7]=R[p+"7"],R[g][8]=R[p+"8"],R[g][9]=R[p+"9"],R[g][10]=R[p+"10"],R[g][11]=R[p+"11"],R[g][12]=R[p+"12"],R[g][13]=R[p+"13"],R[g][14]=R[p+"0"],R[g][15]=R[p+"0"]}function lt(p){return p==N1||p==k1||p==Tp||p==A1}function pt(){this.eb=[],this.size=this.A=this.fb=0}function un(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function _t(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new pt,this.f.kb=new un,this.sd=null}function Qe(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function qt(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function ct(p){return alert("todo:WebPSamplerProcessPlane"),p.T}function yt(p,g){var N=p.T,A=g.ba.f.RGBA,T=A.eb,M=A.fb+p.ka*A.A,B=Gi[g.ba.S],V=p.y,q=p.O,Y=p.f,se=p.N,me=p.ea,X=p.W,le=g.cc,he=g.dc,xe=g.Mc,pe=g.Nc,be=p.ka,_e=p.ka+p.T,Ce=p.U,Ae=Ce+1>>1;for(be==0?B(V,q,null,null,Y,se,me,X,Y,se,me,X,T,M,null,null,Ce):(B(g.ec,g.fc,V,q,le,he,xe,pe,Y,se,me,X,T,M-A.A,T,M,Ce),++N);be+2<_e;be+=2)le=Y,he=se,xe=me,pe=X,se+=p.Rc,X+=p.Rc,M+=2*A.A,B(V,(q+=2*p.fa)-p.fa,V,q,le,he,xe,pe,Y,se,me,X,T,M-A.A,T,M,Ce);return q+=p.fa,p.j+_e<p.o?(r(g.ec,g.fc,V,q,Ce),r(g.cc,g.dc,Y,se,Ae),r(g.Mc,g.Nc,me,X,Ae),N--):1&_e||B(V,q,null,null,Y,se,me,X,Y,se,me,X,T,M+A.A,null,null,Ce),N}function Mt(p,g,N){var A=p.F,T=[p.J];if(A!=null){var M=p.U,B=g.ba.S,V=B==Pp||B==Tp;g=g.ba.f.RGBA;var q=[0],Y=p.ka;q[0]=p.T,p.Kb&&(Y==0?--q[0]:(--Y,T[0]-=p.width),p.j+p.ka+p.T==p.o&&(q[0]=p.o-p.j-Y));var se=g.eb;Y=g.fb+Y*g.A,p=gw(A,T[0],p.width,M,q,se,Y+(V?0:3),g.A),t(N==q),p&<(B)&&Qd(se,Y,V,M,q,g.A)}return 0}function En(p){var g=p.ma,N=g.ba.S,A=11>N,T=N==Ep||N==Lp||N==Pp||N==_1||N==12||lt(N);if(g.memory=null,g.Ib=null,g.Jb=null,g.Nd=null,!qd(g.Oa,p,T?11:12))return 0;if(T&<(N)&&Ud(),p.da)alert("todo:use_scaling");else{if(A){if(g.Ib=ct,p.Kb){if(N=p.U+1>>1,g.memory=s(p.U+2*N),g.memory==null)return 0;g.ec=g.memory,g.fc=0,g.cc=g.ec,g.dc=g.fc+p.U,g.Mc=g.cc,g.Nc=g.dc+N,g.Ib=yt,Ud()}}else alert("todo:EmitYUV");T&&(g.Jb=Mt,A&&fs())}if(A&&!Rw){for(p=0;256>p;++p)aT[p]=89858*(p-128)+Op>>Rp,uT[p]=-22014*(p-128)+Op,cT[p]=-45773*(p-128),lT[p]=113618*(p-128)+Op>>Rp;for(p=ef;p<E1;++p)g=76283*(p-16)+Op>>Rp,dT[p-ef]=Us(g,255),fT[p-ef]=Us(g+8>>4,15);Rw=1}return 1}function We(p){var g=p.ma,N=p.U,A=p.T;return t(!(1&p.ka)),0>=N||0>=A?0:(N=g.Ib(p,g),g.Jb!=null&&g.Jb(p,g,N),g.Dc+=N,1)}function ur(p){p.ma.memory=null}function yr(p,g,N,A){return ue(p,8)!=47?0:(g[0]=ue(p,14)+1,N[0]=ue(p,14)+1,A[0]=ue(p,1),ue(p,3)!=0?0:!p.h)}function bn(p,g){if(4>p)return p+1;var N=p-2>>1;return(2+(1&p)<<N)+ue(g,N)+1}function Mn(p,g){return 120<g?g-120:1<=(N=((N=GP[g-1])>>4)*p+(8-(15&N)))?N:1;var N}function Ln(p,g,N){var A=K(N),T=p[g+=255&A].g-8;return 0<T&&(J(N,N.u+8),A=K(N),g+=p[g].value,g+=A&(1<<T)-1),J(N,N.u+p[g].g),p[g].value}function dr(p,g,N){return N.g+=p.g,N.value+=p.value<<g>>>0,t(8>=N.g),p.g}function xr(p,g,N){var A=p.xc;return t((g=A==0?0:p.vc[p.md*(N>>A)+(g>>A)])<p.Wb),p.Ya[g]}function yl(p,g,N,A){var T=p.ab,M=p.c*g,B=p.C;g=B+g;var V=N,q=A;for(A=p.Ta,N=p.Ua;0<T--;){var Y=p.gc[T],se=B,me=g,X=V,le=q,he=(q=A,V=N,Y.Ea);switch(t(se<me),t(me<=Y.nc),Y.hc){case 2:Fn(X,le,(me-se)*he,q,V);break;case 0:var xe=se,pe=me,be=q,_e=V,Ce=(Ye=Y).Ea;xe==0&&(Wd(X,le,null,null,1,be,_e),wt(X,le+1,0,0,Ce-1,be,_e+1),le+=Ce,_e+=Ce,++xe);for(var Ae=1<<Ye.b,rt=Ae-1,Be=Ne(Ce,Ye.b),At=Ye.K,Ye=Ye.w+(xe>>Ye.b)*Be;xe<pe;){var Rt=At,nr=Ye,jt=1;for($c(X,le,be,_e-Ce,1,be,_e);jt<Ce;){var Xe=(jt&~rt)+Ae;Xe>Ce&&(Xe=Ce),(0,Kd[Rt[nr++]>>8&15])(X,le+ +jt,be,_e+jt-Ce,Xe-jt,be,_e+jt),jt=Xe}le+=Ce,_e+=Ce,++xe&rt||(Ye+=Be)}me!=Y.nc&&r(q,V-he,q,V+(me-se-1)*he,he);break;case 1:for(he=X,pe=le,Ce=(X=Y.Ea)-(_e=X&~(be=(le=1<<Y.b)-1)),xe=Ne(X,Y.b),Ae=Y.K,Y=Y.w+(se>>Y.b)*xe;se<me;){for(rt=Ae,Be=Y,At=new Ge,Ye=pe+_e,Rt=pe+X;pe<Ye;)Ke(rt[Be++],At),Yd(At,he,pe,le,q,V),pe+=le,V+=le;pe<Rt&&(Ke(rt[Be++],At),Yd(At,he,pe,Ce,q,V),pe+=Ce,V+=Ce),++se&be||(Y+=xe)}break;case 3:if(X==q&&le==V&&0<Y.b){for(pe=q,X=he=V+(me-se)*he-(_e=(me-se)*Ne(Y.Ea,Y.b)),le=q,be=V,xe=[],_e=(Ce=_e)-1;0<=_e;--_e)xe[_e]=le[be+_e];for(_e=Ce-1;0<=_e;--_e)pe[X+_e]=xe[_e];kp(Y,se,me,q,he,q,V)}else kp(Y,se,me,X,le,q,V)}V=A,q=N}q!=N&&r(A,N,V,q,M)}function na(p,g){var N=p.V,A=p.Ba+p.c*p.C,T=g-p.C;if(t(g<=p.l.o),t(16>=T),0<T){var M=p.l,B=p.Ta,V=p.Ua,q=M.width;if(yl(p,T,N,A),T=V=[V],t((N=p.C)<(A=g)),t(M.v<M.va),A>M.o&&(A=M.o),N<M.j){var Y=M.j-N;N=M.j,T[0]+=Y*q}if(N>=A?N=0:(T[0]+=4*M.v,M.ka=N-M.j,M.U=M.va-M.v,M.T=A-N,N=1),N){if(V=V[0],11>(N=p.ca).S){var se=N.f.RGBA,me=(A=N.S,T=M.U,M=M.T,Y=se.eb,se.A),X=M;for(se=se.fb+p.Ma*se.A;0<X--;){var le=B,he=V,xe=T,pe=Y,be=se;switch(A){case Cp:Xd(le,he,xe,pe,be);break;case Ep:la(le,he,xe,pe,be);break;case N1:la(le,he,xe,pe,be),Qd(pe,be,0,xe,1,0);break;case _w:Pl(le,he,xe,pe,be);break;case Lp:at(le,he,xe,pe,be,1);break;case k1:at(le,he,xe,pe,be,1),Qd(pe,be,0,xe,1,0);break;case Pp:at(le,he,xe,pe,be,0);break;case Tp:at(le,he,xe,pe,be,0),Qd(pe,be,1,xe,1,0);break;case _1:ca(le,he,xe,pe,be);break;case A1:ca(le,he,xe,pe,be),mw(pe,be,xe,1,0);break;case Nw:ua(le,he,xe,pe,be);break;default:t(0)}V+=q,se+=me}p.Ma+=M}else alert("todo:EmitRescaledRowsYUVA");t(p.Ma<=N.height)}}p.C=g,t(p.C<=p.i)}function ls(p){var g;if(0<p.ua)return 0;for(g=0;g<p.Wb;++g){var N=p.Ya[g].G,A=p.Ya[g].H;if(0<N[1][A[1]+0].g||0<N[2][A[2]+0].g||0<N[3][A[3]+0].g)return 0}return 1}function Bs(p,g,N,A,T,M){if(p.Z!=0){var B=p.qd,V=p.rd;for(t(ha[p.Z]!=null);g<N;++g)ha[p.Z](B,V,A,T,A,T,M),B=A,V=T,T+=M;p.qd=B,p.rd=V}}function cs(p,g){var N=p.l.ma,A=N.Z==0||N.Z==1?p.l.j:p.C;if(A=p.C<A?A:p.C,t(g<=p.l.o),g>A){var T=p.l.width,M=N.ca,B=N.tb+T*A,V=p.V,q=p.Ba+p.c*A,Y=p.gc;t(p.ab==1),t(Y[0].hc==3),Hs(Y[0],A,g,V,q,M,B),Bs(N,A,g,M,B,T)}p.C=p.Ma=g}function us(p,g,N,A,T,M,B){var V=p.$/A,q=p.$%A,Y=p.m,se=p.s,me=N+p.$,X=me;T=N+A*T;var le=N+A*M,he=280+se.ua,xe=p.Pb?V:16777216,pe=0<se.ua?se.Wa:null,be=se.wc,_e=me<le?xr(se,q,V):null;t(p.C<M),t(le<=T);var Ce=!1;e:for(;;){for(;Ce||me<le;){var Ae=0;if(V>=xe){var rt=me-N;t((xe=p).Pb),xe.wd=xe.m,xe.xd=rt,0<xe.s.ua&&we(xe.s.Wa,xe.s.vb),xe=V+YP}if(q&be||(_e=xr(se,q,V)),t(_e!=null),_e.Qb&&(g[me]=_e.qb,Ce=!0),!Ce)if(ie(Y),_e.jc){Ae=Y,rt=g;var Be=me,At=_e.pd[K(Ae)&Ll-1];t(_e.jc),256>At.g?(J(Ae,Ae.u+At.g),rt[Be]=At.value,Ae=0):(J(Ae,Ae.u+At.g-256),t(256<=At.value),Ae=At.value),Ae==0&&(Ce=!0)}else Ae=Ln(_e.G[0],_e.H[0],Y);if(Y.h)break;if(Ce||256>Ae){if(!Ce)if(_e.nd)g[me]=(_e.qb|Ae<<8)>>>0;else{if(ie(Y),Ce=Ln(_e.G[1],_e.H[1],Y),ie(Y),rt=Ln(_e.G[2],_e.H[2],Y),Be=Ln(_e.G[3],_e.H[3],Y),Y.h)break;g[me]=(Be<<24|Ce<<16|Ae<<8|rt)>>>0}if(Ce=!1,++me,++q>=A&&(q=0,++V,B!=null&&V<=M&&!(V%16)&&B(p,V),pe!=null))for(;X<me;)Ae=g[X++],pe.X[(506832829*Ae&4294967295)>>>pe.Mb]=Ae}else if(280>Ae){if(Ae=bn(Ae-256,Y),rt=Ln(_e.G[4],_e.H[4],Y),ie(Y),rt=Mn(A,rt=bn(rt,Y)),Y.h)break;if(me-N<rt||T-me<Ae)break e;for(Be=0;Be<Ae;++Be)g[me+Be]=g[me+Be-rt];for(me+=Ae,q+=Ae;q>=A;)q-=A,++V,B!=null&&V<=M&&!(V%16)&&B(p,V);if(t(me<=T),q&be&&(_e=xr(se,q,V)),pe!=null)for(;X<me;)Ae=g[X++],pe.X[(506832829*Ae&4294967295)>>>pe.Mb]=Ae}else{if(!(Ae<he))break e;for(Ce=Ae-280,t(pe!=null);X<me;)Ae=g[X++],pe.X[(506832829*Ae&4294967295)>>>pe.Mb]=Ae;Ae=me,t(!(Ce>>>(rt=pe).Xa)),g[Ae]=rt.X[Ce],Ce=!0}Ce||t(Y.h==ee(Y))}if(p.Pb&&Y.h&&me<T)t(p.m.h),p.a=5,p.m=p.wd,p.$=p.xd,0<p.s.ua&&we(p.s.vb,p.s.Wa);else{if(Y.h)break e;B!=null&&B(p,V>M?M:V),p.a=0,p.$=me-N}return 1}return p.a=3,0}function Ui(p){t(p!=null),p.vc=null,p.yc=null,p.Ya=null;var g=p.Wa;g!=null&&(g.X=null),p.vb=null,t(p!=null)}function xl(){var p=new mt;return p==null?null:(p.a=0,p.xb=jw,sn("Predictor","VP8LPredictors"),sn("Predictor","VP8LPredictors_C"),sn("PredictorAdd","VP8LPredictorsAdd"),sn("PredictorAdd","VP8LPredictorsAdd_C"),Fn=Lt,Yd=dt,Xd=vn,la=Pt,ca=ht,ua=St,Pl=Gt,R.VP8LMapColor32b=qs,R.VP8LMapColor8b=Gd,p)}function zs(p,g,N,A,T){var M=1,B=[p],V=[g],q=A.m,Y=A.s,se=null,me=0;e:for(;;){if(N)for(;M&&ue(q,1);){var X=B,le=V,he=A,xe=1,pe=he.m,be=he.gc[he.ab],_e=ue(pe,2);if(he.Oc&1<<_e)M=0;else{switch(he.Oc|=1<<_e,be.hc=_e,be.Ea=X[0],be.nc=le[0],be.K=[null],++he.ab,t(4>=he.ab),_e){case 0:case 1:be.b=ue(pe,3)+2,xe=zs(Ne(be.Ea,be.b),Ne(be.nc,be.b),0,he,be.K),be.K=be.K[0];break;case 3:var Ce,Ae=ue(pe,8)+1,rt=16<Ae?0:4<Ae?1:2<Ae?2:3;if(X[0]=Ne(be.Ea,rt),be.b=rt,Ce=xe=zs(Ae,1,0,he,be.K)){var Be,At=Ae,Ye=be,Rt=1<<(8>>Ye.b),nr=s(Rt);if(nr==null)Ce=0;else{var jt=Ye.K[0],Xe=Ye.w;for(nr[0]=Ye.K[0][0],Be=1;Be<1*At;++Be)nr[Be]=st(jt[Xe+Be],nr[Be-1]);for(;Be<4*Rt;++Be)nr[Be]=0;Ye.K[0]=null,Ye.K[0]=nr,Ce=1}}xe=Ce;break;case 2:break;default:t(0)}M=xe}}if(B=B[0],V=V[0],M&&ue(q,1)&&!(M=1<=(me=ue(q,4))&&11>=me)){A.a=3;break e}var Re;if(Re=M)t:{var Bn,bt,Ft,pn=A,wr=B,qr=V,Pn=me,Pr=N,Hr=pn.m,rr=pn.s,Bt=[null],Jt=1,Tn=0,en=KP[Pn];n:for(;;){if(Pr&&ue(Hr,1)){var Sr=ue(Hr,3)+2,ps=Ne(wr,Sr),zn=Ne(qr,Sr),ni=ps*zn;if(!zs(ps,zn,0,pn,Bt))break n;for(Bt=Bt[0],rr.xc=Sr,Bn=0;Bn<ni;++Bn){var an=Bt[Bn]>>8&65535;Bt[Bn]=an,an>=Jt&&(Jt=an+1)}}if(Hr.h)break n;for(bt=0;5>bt;++bt){var ir=kw[bt];!bt&&0<Pn&&(ir+=1<<Pn),Tn<ir&&(Tn=ir)}var Si=o(Jt*en,D),Wr=Jt,_i=o(Wr,te);if(_i==null)var Ni=null;else t(65536>=Wr),Ni=_i;var ri=s(Tn);if(Ni==null||ri==null||Si==null){pn.a=1;break n}var ki=Si;for(Bn=Ft=0;Bn<Jt;++Bn){var fn=Ni[Bn],Ai=fn.G,ms=fn.H,Rl=0,Lo=1,_r=0;for(bt=0;5>bt;++bt){ir=kw[bt],Ai[bt]=ki,ms[bt]=Ft,!bt&&0<Pn&&(ir+=1<<Pn);i:{var Mp,L1=ir,Fp=pn,tf=ri,mT=ki,gT=Ft,P1=0,pa=Fp.m,yT=ue(pa,1);if(i(tf,0,0,L1),yT){var xT=ue(pa,1)+1,vT=ue(pa,1),Mw=ue(pa,vT==0?1:8);tf[Mw]=1,xT==2&&(tf[Mw=ue(pa,8)]=1);var Dp=1}else{var Fw=s(19),Dw=ue(pa,4)+4;if(19<Dw){Fp.a=3;var Bp=0;break i}for(Mp=0;Mp<Dw;++Mp)Fw[WP[Mp]]=ue(pa,3);var T1=void 0,nf=void 0,Bw=Fp,bT=Fw,zp=L1,zw=tf,R1=0,ma=Bw.m,Uw=8,Vw=o(128,D);r:for(;L(Vw,0,7,bT,19);){if(ue(ma,1)){var wT=2+2*ue(ma,3);if((T1=2+ue(ma,wT))>zp)break r}else T1=zp;for(nf=0;nf<zp&&T1--;){ie(ma);var $w=Vw[0+(127&K(ma))];J(ma,ma.u+$w.g);var Hc=$w.value;if(16>Hc)zw[nf++]=Hc,Hc!=0&&(Uw=Hc);else{var ST=Hc==16,qw=Hc-16,_T=qP[qw],Hw=ue(ma,$P[qw])+_T;if(nf+Hw>zp)break r;for(var NT=ST?Uw:0;0<Hw--;)zw[nf++]=NT}}R1=1;break r}R1||(Bw.a=3),Dp=R1}(Dp=Dp&&!pa.h)&&(P1=L(mT,gT,8,tf,L1)),Dp&&P1!=0?Bp=P1:(Fp.a=3,Bp=0)}if(Bp==0)break n;if(Lo&&HP[bt]==1&&(Lo=ki[Ft].g==0),Rl+=ki[Ft].g,Ft+=Bp,3>=bt){var rf,O1=ri[0];for(rf=1;rf<ir;++rf)ri[rf]>O1&&(O1=ri[rf]);_r+=O1}}if(fn.nd=Lo,fn.Qb=0,Lo&&(fn.qb=(Ai[3][ms[3]+0].value<<24|Ai[1][ms[1]+0].value<<16|Ai[2][ms[2]+0].value)>>>0,Rl==0&&256>Ai[0][ms[0]+0].value&&(fn.Qb=1,fn.qb+=Ai[0][ms[0]+0].value<<8)),fn.jc=!fn.Qb&&6>_r,fn.jc){var Up,Po=fn;for(Up=0;Up<Ll;++Up){var ga=Up,ya=Po.pd[ga],Vp=Po.G[0][Po.H[0]+ga];256<=Vp.value?(ya.g=Vp.g+256,ya.value=Vp.value):(ya.g=0,ya.value=0,ga>>=dr(Vp,8,ya),ga>>=dr(Po.G[1][Po.H[1]+ga],16,ya),ga>>=dr(Po.G[2][Po.H[2]+ga],0,ya),dr(Po.G[3][Po.H[3]+ga],24,ya))}}}rr.vc=Bt,rr.Wb=Jt,rr.Ya=Ni,rr.yc=Si,Re=1;break t}Re=0}if(!(M=Re)){A.a=3;break e}if(0<me){if(Y.ua=1<<me,!W(Y.Wa,me)){A.a=1,M=0;break e}}else Y.ua=0;var I1=A,Ww=B,kT=V,M1=I1.s,F1=M1.xc;if(I1.c=Ww,I1.i=kT,M1.md=Ne(Ww,F1),M1.wc=F1==0?-1:(1<<F1)-1,N){A.xb=nT;break e}if((se=s(B*V))==null){A.a=1,M=0;break e}M=(M=us(A,se,0,B,V,V,null))&&!q.h;break e}return M?(T!=null?T[0]=se:(t(se==null),t(N)),A.$=0,N||Ui(Y)):Ui(Y),M}function vl(p,g){var N=p.c*p.i,A=N+g+16*g;return t(p.c<=g),p.V=s(A),p.V==null?(p.Ta=null,p.Ua=0,p.a=1,0):(p.Ta=p.V,p.Ua=p.Ba+N+g,1)}function Rc(p,g){var N=p.C,A=g-N,T=p.V,M=p.Ba+p.c*N;for(t(g<=p.l.o);0<A;){var B=16<A?16:A,V=p.l.ma,q=p.l.width,Y=q*B,se=V.ca,me=V.tb+q*N,X=p.Ta,le=p.Ua;yl(p,B,T,M),yw(X,le,se,me,Y),Bs(V,N,N+B,se,me,q),A-=B,T+=B*p.c,N+=B}t(N==g),p.C=p.Ma=g}function Oc(){this.ub=this.yd=this.td=this.Rb=0}function Ic(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function o1(){this.Fb=this.Bb=this.Cb=0,this.Zb=s(4),this.Lb=s(4)}function Ld(){this.Yb=function(){var p=[];return function g(N,A,T){for(var M=T[A],B=0;B<M&&(N.push(T.length>A+1?[]:0),!(T.length<A+1));B++)g(N[B],A+1,T)}(p,0,[3,11]),p}()}function ap(){this.jb=s(3),this.Wc=a([4,8],Ld),this.Xc=a([4,17],Ld)}function lp(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new s(4),this.od=new s(4)}function Vi(){this.ld=this.La=this.dd=this.tc=0}function Pd(){this.Na=this.la=0}function cp(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Td(){this.ad=s(384),this.Za=0,this.Ob=s(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function up(){this.uc=this.M=this.Nb=0,this.wa=Array(new Vi),this.Y=0,this.ya=Array(new Td),this.aa=0,this.l=new Mc}function dp(){this.y=s(16),this.f=s(8),this.ea=s(8)}function fp(){this.cb=this.a=0,this.sc="",this.m=new E,this.Od=new Oc,this.Kc=new Ic,this.ed=new lp,this.Qa=new o1,this.Ic=this.$c=this.Aa=0,this.D=new up,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,E),this.ia=0,this.pb=o(4,cp),this.Pa=new ap,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new dp),this.Hd=0,this.rb=Array(new Pd),this.sb=0,this.wa=Array(new Vi),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Td),this.L=this.aa=0,this.gd=a([4,2],Vi),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Us(p,g){return 0>p?0:p>g?g:p}function Mc(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function a1(){var p=new fp;return p!=null&&(p.a=0,p.sc="OK",p.cb=0,p.Xb=0,Jd||(Jd=Fc)),p}function Wn(p,g,N){return p.a==0&&(p.a=g,p.sc=N,p.cb=0),0}function hp(p,g,N){return 3<=N&&p[g+0]==157&&p[g+1]==1&&p[g+2]==42}function Vs(p,g){if(p==null)return 0;if(p.a=0,p.sc="OK",g==null)return Wn(p,2,"null VP8Io passed to VP8GetHeaders()");var N=g.data,A=g.w,T=g.ha;if(4>T)return Wn(p,7,"Truncated header.");var M=N[A+0]|N[A+1]<<8|N[A+2]<<16,B=p.Od;if(B.Rb=!(1&M),B.td=M>>1&7,B.yd=M>>4&1,B.ub=M>>5,3<B.td)return Wn(p,3,"Incorrect keyframe parameters.");if(!B.yd)return Wn(p,4,"Frame not displayable.");A+=3,T-=3;var V=p.Kc;if(B.Rb){if(7>T)return Wn(p,7,"cannot parse picture header");if(!hp(N,A,T))return Wn(p,3,"Bad code word");V.c=16383&(N[A+4]<<8|N[A+3]),V.Td=N[A+4]>>6,V.i=16383&(N[A+6]<<8|N[A+5]),V.Ud=N[A+6]>>6,A+=7,T-=7,p.za=V.c+15>>4,p.Ub=V.i+15>>4,g.width=V.c,g.height=V.i,g.Da=0,g.j=0,g.v=0,g.va=g.width,g.o=g.height,g.da=0,g.ib=g.width,g.hb=g.height,g.U=g.width,g.T=g.height,i((M=p.Pa).jb,0,255,M.jb.length),t((M=p.Qa)!=null),M.Cb=0,M.Bb=0,M.Fb=1,i(M.Zb,0,0,M.Zb.length),i(M.Lb,0,0,M.Lb)}if(B.ub>T)return Wn(p,7,"bad partition length");re(M=p.m,N,A,B.ub),A+=B.ub,T-=B.ub,B.Rb&&(V.Ld=ye(M),V.Kd=ye(M)),V=p.Qa;var q,Y=p.Pa;if(t(M!=null),t(V!=null),V.Cb=ye(M),V.Cb){if(V.Bb=ye(M),ye(M)){for(V.Fb=ye(M),q=0;4>q;++q)V.Zb[q]=ye(M)?G(M,7):0;for(q=0;4>q;++q)V.Lb[q]=ye(M)?G(M,6):0}if(V.Bb)for(q=0;3>q;++q)Y.jb[q]=ye(M)?ce(M,8):255}else V.Bb=0;if(M.Ka)return Wn(p,3,"cannot parse segment header");if((V=p.ed).zd=ye(M),V.Tb=ce(M,6),V.wb=ce(M,3),V.Pc=ye(M),V.Pc&&ye(M)){for(Y=0;4>Y;++Y)ye(M)&&(V.vd[Y]=G(M,6));for(Y=0;4>Y;++Y)ye(M)&&(V.od[Y]=G(M,6))}if(p.L=V.Tb==0?0:V.zd?1:2,M.Ka)return Wn(p,3,"cannot parse filter header");var se=T;if(T=q=A,A=q+se,V=se,p.Xb=(1<<ce(p.m,2))-1,se<3*(Y=p.Xb))N=7;else{for(q+=3*Y,V-=3*Y,se=0;se<Y;++se){var me=N[T+0]|N[T+1]<<8|N[T+2]<<16;me>V&&(me=V),re(p.Jc[+se],N,q,me),q+=me,V-=me,T+=3}re(p.Jc[+Y],N,q,V),N=q<A?0:5}if(N!=0)return Wn(p,N,"cannot parse partitions");for(N=ce(q=p.m,7),T=ye(q)?G(q,4):0,A=ye(q)?G(q,4):0,V=ye(q)?G(q,4):0,Y=ye(q)?G(q,4):0,q=ye(q)?G(q,4):0,se=p.Qa,me=0;4>me;++me){if(se.Cb){var X=se.Zb[me];se.Fb||(X+=N)}else{if(0<me){p.pb[me]=p.pb[0];continue}X=N}var le=p.pb[me];le.Sc[0]=j1[Us(X+T,127)],le.Sc[1]=C1[Us(X+0,127)],le.Eb[0]=2*j1[Us(X+A,127)],le.Eb[1]=101581*C1[Us(X+V,127)]>>16,8>le.Eb[1]&&(le.Eb[1]=8),le.Qc[0]=j1[Us(X+Y,117)],le.Qc[1]=C1[Us(X+q,127)],le.lc=X+q}if(!B.Rb)return Wn(p,4,"Not a key frame.");for(ye(M),B=p.Pa,N=0;4>N;++N){for(T=0;8>T;++T)for(A=0;3>A;++A)for(V=0;11>V;++V)Y=ve(M,eT[N][T][A][V])?ce(M,8):QP[N][T][A][V],B.Wc[N][T].Yb[A][V]=Y;for(T=0;17>T;++T)B.Xc[N][T]=B.Wc[N][tT[T]]}return p.kc=ye(M),p.kc&&(p.Bd=ce(M,8)),p.cb=1}function Fc(p,g,N,A,T,M,B){var V=g[T].Yb[N];for(N=0;16>T;++T){if(!ve(p,V[N+0]))return T;for(;!ve(p,V[N+1]);)if(V=g[++T].Yb[0],N=0,T==16)return 16;var q=g[T+1].Yb;if(ve(p,V[N+2])){var Y=p,se=0;if(ve(Y,(X=V)[(me=N)+3]))if(ve(Y,X[me+6])){for(V=0,me=2*(se=ve(Y,X[me+8]))+(X=ve(Y,X[me+9+se])),se=0,X=XP[me];X[V];++V)se+=se+ve(Y,X[V]);se+=3+(8<<me)}else ve(Y,X[me+7])?(se=7+2*ve(Y,165),se+=ve(Y,145)):se=5+ve(Y,159);else se=ve(Y,X[me+4])?3+ve(Y,X[me+5]):2;V=q[2]}else se=1,V=q[1];q=B+ZP[T],0>(Y=p).b&&ge(Y);var me,X=Y.b,le=(me=Y.Ca>>1)-(Y.I>>X)>>31;--Y.b,Y.Ca+=le,Y.Ca|=1,Y.I-=(me+1&le)<<X,M[q]=((se^le)-le)*A[(0<T)+0]}return 16}function pp(p){var g=p.rb[p.sb-1];g.la=0,g.Na=0,i(p.zc,0,0,p.zc.length),p.ja=0}function $i(p,g,N,A,T){T=p[g+N+32*A]+(T>>3),p[g+N+32*A]=-256&T?0>T?0:255:T}function Jn(p,g,N,A,T,M){$i(p,g,0,N,A+T),$i(p,g,1,N,A+M),$i(p,g,2,N,A-M),$i(p,g,3,N,A-T)}function yo(p){return(20091*p>>16)+p}function mp(p,g,N,A){var T,M=0,B=s(16);for(T=0;4>T;++T){var V=p[g+0]+p[g+8],q=p[g+0]-p[g+8],Y=(35468*p[g+4]>>16)-yo(p[g+12]),se=yo(p[g+4])+(35468*p[g+12]>>16);B[M+0]=V+se,B[M+1]=q+Y,B[M+2]=q-Y,B[M+3]=V-se,M+=4,g++}for(T=M=0;4>T;++T)V=(p=B[M+0]+4)+B[M+8],q=p-B[M+8],Y=(35468*B[M+4]>>16)-yo(B[M+12]),$i(N,A,0,0,V+(se=yo(B[M+4])+(35468*B[M+12]>>16))),$i(N,A,1,0,q+Y),$i(N,A,2,0,q-Y),$i(N,A,3,0,V-se),M++,A+=32}function l1(p,g,N,A){var T=p[g+0]+4,M=35468*p[g+4]>>16,B=yo(p[g+4]),V=35468*p[g+1]>>16;Jn(N,A,0,T+B,p=yo(p[g+1]),V),Jn(N,A,1,T+M,p,V),Jn(N,A,2,T-M,p,V),Jn(N,A,3,T-B,p,V)}function c1(p,g,N,A,T){mp(p,g,N,A),T&&mp(p,g+16,N,A+4)}function $s(p,g,N,A){Tl(p,g+0,N,A,1),Tl(p,g+32,N,A+128,1)}function gp(p,g,N,A){var T;for(p=p[g+0]+4,T=0;4>T;++T)for(g=0;4>g;++g)$i(N,A,g,T,p)}function yp(p,g,N,A){p[g+0]&&Xt(p,g+0,N,A),p[g+16]&&Xt(p,g+16,N,A+4),p[g+32]&&Xt(p,g+32,N,A+128),p[g+48]&&Xt(p,g+48,N,A+128+4)}function Dc(p,g,N,A){var T,M=s(16);for(T=0;4>T;++T){var B=p[g+0+T]+p[g+12+T],V=p[g+4+T]+p[g+8+T],q=p[g+4+T]-p[g+8+T],Y=p[g+0+T]-p[g+12+T];M[0+T]=B+V,M[8+T]=B-V,M[4+T]=Y+q,M[12+T]=Y-q}for(T=0;4>T;++T)B=(p=M[0+4*T]+3)+M[3+4*T],V=M[1+4*T]+M[2+4*T],q=M[1+4*T]-M[2+4*T],Y=p-M[3+4*T],N[A+0]=B+V>>3,N[A+16]=Y+q>>3,N[A+32]=B-V>>3,N[A+48]=Y-q>>3,A+=64}function bl(p,g,N){var A,T=g-32,M=wi,B=255-p[T-1];for(A=0;A<N;++A){var V,q=M,Y=B+p[g-1];for(V=0;V<N;++V)p[g+V]=q[Y+p[T+V]];g+=32}}function u1(p,g){bl(p,g,4)}function d1(p,g){bl(p,g,8)}function f1(p,g){bl(p,g,16)}function Rd(p,g){var N;for(N=0;16>N;++N)r(p,g+32*N,p,g-32,16)}function xp(p,g){var N;for(N=16;0<N;--N)i(p,g,p[g-1],16),g+=32}function ds(p,g,N){var A;for(A=0;16>A;++A)i(g,N+32*A,p,16)}function h1(p,g){var N,A=16;for(N=0;16>N;++N)A+=p[g-1+32*N]+p[g+N-32];ds(A>>5,p,g)}function wl(p,g){var N,A=8;for(N=0;16>N;++N)A+=p[g-1+32*N];ds(A>>4,p,g)}function Od(p,g){var N,A=8;for(N=0;16>N;++N)A+=p[g+N-32];ds(A>>4,p,g)}function p1(p,g){ds(128,p,g)}function xt(p,g,N){return p+2*g+N+2>>2}function m1(p,g){var N,A=g-32;for(A=new Uint8Array([xt(p[A-1],p[A+0],p[A+1]),xt(p[A+0],p[A+1],p[A+2]),xt(p[A+1],p[A+2],p[A+3]),xt(p[A+2],p[A+3],p[A+4])]),N=0;4>N;++N)r(p,g+32*N,A,0,A.length)}function g1(p,g){var N=p[g-1],A=p[g-1+32],T=p[g-1+64],M=p[g-1+96];je(p,g+0,16843009*xt(p[g-1-32],N,A)),je(p,g+32,16843009*xt(N,A,T)),je(p,g+64,16843009*xt(A,T,M)),je(p,g+96,16843009*xt(T,M,M))}function y1(p,g){var N,A=4;for(N=0;4>N;++N)A+=p[g+N-32]+p[g-1+32*N];for(A>>=3,N=0;4>N;++N)i(p,g+32*N,A,4)}function xo(p,g){var N=p[g-1+0],A=p[g-1+32],T=p[g-1+64],M=p[g-1-32],B=p[g+0-32],V=p[g+1-32],q=p[g+2-32],Y=p[g+3-32];p[g+0+96]=xt(A,T,p[g-1+96]),p[g+1+96]=p[g+0+64]=xt(N,A,T),p[g+2+96]=p[g+1+64]=p[g+0+32]=xt(M,N,A),p[g+3+96]=p[g+2+64]=p[g+1+32]=p[g+0+0]=xt(B,M,N),p[g+3+64]=p[g+2+32]=p[g+1+0]=xt(V,B,M),p[g+3+32]=p[g+2+0]=xt(q,V,B),p[g+3+0]=xt(Y,q,V)}function vo(p,g){var N=p[g+1-32],A=p[g+2-32],T=p[g+3-32],M=p[g+4-32],B=p[g+5-32],V=p[g+6-32],q=p[g+7-32];p[g+0+0]=xt(p[g+0-32],N,A),p[g+1+0]=p[g+0+32]=xt(N,A,T),p[g+2+0]=p[g+1+32]=p[g+0+64]=xt(A,T,M),p[g+3+0]=p[g+2+32]=p[g+1+64]=p[g+0+96]=xt(T,M,B),p[g+3+32]=p[g+2+64]=p[g+1+96]=xt(M,B,V),p[g+3+64]=p[g+2+96]=xt(B,V,q),p[g+3+96]=xt(V,q,q)}function x1(p,g){var N=p[g-1+0],A=p[g-1+32],T=p[g-1+64],M=p[g-1-32],B=p[g+0-32],V=p[g+1-32],q=p[g+2-32],Y=p[g+3-32];p[g+0+0]=p[g+1+64]=M+B+1>>1,p[g+1+0]=p[g+2+64]=B+V+1>>1,p[g+2+0]=p[g+3+64]=V+q+1>>1,p[g+3+0]=q+Y+1>>1,p[g+0+96]=xt(T,A,N),p[g+0+64]=xt(A,N,M),p[g+0+32]=p[g+1+96]=xt(N,M,B),p[g+1+32]=p[g+2+96]=xt(M,B,V),p[g+2+32]=p[g+3+96]=xt(B,V,q),p[g+3+32]=xt(V,q,Y)}function v1(p,g){var N=p[g+0-32],A=p[g+1-32],T=p[g+2-32],M=p[g+3-32],B=p[g+4-32],V=p[g+5-32],q=p[g+6-32],Y=p[g+7-32];p[g+0+0]=N+A+1>>1,p[g+1+0]=p[g+0+64]=A+T+1>>1,p[g+2+0]=p[g+1+64]=T+M+1>>1,p[g+3+0]=p[g+2+64]=M+B+1>>1,p[g+0+32]=xt(N,A,T),p[g+1+32]=p[g+0+96]=xt(A,T,M),p[g+2+32]=p[g+1+96]=xt(T,M,B),p[g+3+32]=p[g+2+96]=xt(M,B,V),p[g+3+64]=xt(B,V,q),p[g+3+96]=xt(V,q,Y)}function Bc(p,g){var N=p[g-1+0],A=p[g-1+32],T=p[g-1+64],M=p[g-1+96];p[g+0+0]=N+A+1>>1,p[g+2+0]=p[g+0+32]=A+T+1>>1,p[g+2+32]=p[g+0+64]=T+M+1>>1,p[g+1+0]=xt(N,A,T),p[g+3+0]=p[g+1+32]=xt(A,T,M),p[g+3+32]=p[g+1+64]=xt(T,M,M),p[g+3+64]=p[g+2+64]=p[g+0+96]=p[g+1+96]=p[g+2+96]=p[g+3+96]=M}function Id(p,g){var N=p[g-1+0],A=p[g-1+32],T=p[g-1+64],M=p[g-1+96],B=p[g-1-32],V=p[g+0-32],q=p[g+1-32],Y=p[g+2-32];p[g+0+0]=p[g+2+32]=N+B+1>>1,p[g+0+32]=p[g+2+64]=A+N+1>>1,p[g+0+64]=p[g+2+96]=T+A+1>>1,p[g+0+96]=M+T+1>>1,p[g+3+0]=xt(V,q,Y),p[g+2+0]=xt(B,V,q),p[g+1+0]=p[g+3+32]=xt(N,B,V),p[g+1+32]=p[g+3+64]=xt(A,N,B),p[g+1+64]=p[g+3+96]=xt(T,A,N),p[g+1+96]=xt(M,T,A)}function Sl(p,g){var N;for(N=0;8>N;++N)r(p,g+32*N,p,g-32,8)}function b1(p,g){var N;for(N=0;8>N;++N)i(p,g,p[g-1],8),g+=32}function bo(p,g,N){var A;for(A=0;8>A;++A)i(g,N+32*A,p,8)}function w1(p,g){var N,A=8;for(N=0;8>N;++N)A+=p[g+N-32]+p[g-1+32*N];bo(A>>4,p,g)}function Md(p,g){var N,A=4;for(N=0;8>N;++N)A+=p[g+N-32];bo(A>>3,p,g)}function Fd(p,g){var N,A=4;for(N=0;8>N;++N)A+=p[g-1+32*N];bo(A>>3,p,g)}function vp(p,g){bo(128,p,g)}function wo(p,g,N){var A=p[g-N],T=p[g+0],M=3*(T-A)+S1[1020+p[g-2*N]-p[g+N]],B=jp[112+(M+4>>3)];p[g-N]=wi[255+A+jp[112+(M+3>>3)]],p[g+0]=wi[255+T-B]}function Dd(p,g,N,A){var T=p[g+0],M=p[g+N];return Wi[255+p[g-2*N]-p[g-N]]>A||Wi[255+M-T]>A}function zc(p,g,N,A){return 4*Wi[255+p[g-N]-p[g+0]]+Wi[255+p[g-2*N]-p[g+N]]<=A}function Bd(p,g,N,A,T){var M=p[g-3*N],B=p[g-2*N],V=p[g-N],q=p[g+0],Y=p[g+N],se=p[g+2*N],me=p[g+3*N];return 4*Wi[255+V-q]+Wi[255+B-Y]>A?0:Wi[255+p[g-4*N]-M]<=T&&Wi[255+M-B]<=T&&Wi[255+B-V]<=T&&Wi[255+me-se]<=T&&Wi[255+se-Y]<=T&&Wi[255+Y-q]<=T}function _l(p,g,N,A){var T=2*A+1;for(A=0;16>A;++A)zc(p,g+A,N,T)&&wo(p,g+A,N)}function zd(p,g,N,A){var T=2*A+1;for(A=0;16>A;++A)zc(p,g+A*N,1,T)&&wo(p,g+A*N,1)}function bp(p,g,N,A){var T;for(T=3;0<T;--T)_l(p,g+=4*N,N,A)}function wp(p,g,N,A){var T;for(T=3;0<T;--T)zd(p,g+=4,N,A)}function So(p,g,N,A,T,M,B,V){for(M=2*M+1;0<T--;){if(Bd(p,g,N,M,B))if(Dd(p,g,N,V))wo(p,g,N);else{var q=p,Y=g,se=N,me=q[Y-2*se],X=q[Y-se],le=q[Y+0],he=q[Y+se],xe=q[Y+2*se],pe=27*(_e=S1[1020+3*(le-X)+S1[1020+me-he]])+63>>7,be=18*_e+63>>7,_e=9*_e+63>>7;q[Y-3*se]=wi[255+q[Y-3*se]+_e],q[Y-2*se]=wi[255+me+be],q[Y-se]=wi[255+X+pe],q[Y+0]=wi[255+le-pe],q[Y+se]=wi[255+he-be],q[Y+2*se]=wi[255+xe-_e]}g+=A}}function _o(p,g,N,A,T,M,B,V){for(M=2*M+1;0<T--;){if(Bd(p,g,N,M,B))if(Dd(p,g,N,V))wo(p,g,N);else{var q=p,Y=g,se=N,me=q[Y-se],X=q[Y+0],le=q[Y+se],he=jp[112+(4+(xe=3*(X-me))>>3)],xe=jp[112+(xe+3>>3)],pe=he+1>>1;q[Y-2*se]=wi[255+q[Y-2*se]+pe],q[Y-se]=wi[255+me+xe],q[Y+0]=wi[255+X-he],q[Y+se]=wi[255+le-pe]}g+=A}}function Sp(p,g,N,A,T,M){So(p,g,N,1,16,A,T,M)}function Nl(p,g,N,A,T,M){So(p,g,1,N,16,A,T,M)}function _p(p,g,N,A,T,M){var B;for(B=3;0<B;--B)_o(p,g+=4*N,N,1,16,A,T,M)}function w(p,g,N,A,T,M){var B;for(B=3;0<B;--B)_o(p,g+=4,1,N,16,A,T,M)}function P(p,g,N,A,T,M,B,V){So(p,g,T,1,8,M,B,V),So(N,A,T,1,8,M,B,V)}function Z(p,g,N,A,T,M,B,V){So(p,g,1,T,8,M,B,V),So(N,A,1,T,8,M,B,V)}function ne(p,g,N,A,T,M,B,V){_o(p,g+4*T,T,1,8,M,B,V),_o(N,A+4*T,T,1,8,M,B,V)}function fe(p,g,N,A,T,M,B,V){_o(p,g+4,1,T,8,M,B,V),_o(N,A+4,1,T,8,M,B,V)}function Se(){this.ba=new _t,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new qt,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function ke(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function qe(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Je(){this.ua=0,this.Wa=new nt,this.vb=new nt,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new te,this.yc=new D}function mt(){this.xb=this.a=0,this.l=new Mc,this.ca=new _t,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new H,this.Pb=0,this.wd=new H,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Je,this.ab=0,this.gc=o(4,qe),this.Oc=0}function Nt(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Mc,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Dt(p,g,N,A,T,M,B){for(p=p==null?0:p[g+0],g=0;g<B;++g)T[M+g]=p+N[A+g]&255,p=T[M+g]}function _n(p,g,N,A,T,M,B){var V;if(p==null)Dt(null,null,N,A,T,M,B);else for(V=0;V<B;++V)T[M+V]=p[g+V]+N[A+V]&255}function Gn(p,g,N,A,T,M,B){if(p==null)Dt(null,null,N,A,T,M,B);else{var V,q=p[g+0],Y=q,se=q;for(V=0;V<B;++V)Y=se+(q=p[g+V])-Y,se=N[A+V]+(-256&Y?0>Y?0:255:Y)&255,Y=q,T[M+V]=se}}function dn(p,g,N,A){var T=g.width,M=g.o;if(t(p!=null&&g!=null),0>N||0>=A||N+A>M)return null;if(!p.Cc){if(p.ga==null){var B;if(p.ga=new Nt,(B=p.ga==null)||(B=g.width*g.o,t(p.Gb.length==0),p.Gb=s(B),p.Uc=0,p.Gb==null?B=0:(p.mb=p.Gb,p.nb=p.Uc,p.rc=null,B=1),B=!B),!B){B=p.ga;var V=p.Fa,q=p.P,Y=p.qc,se=p.mb,me=p.nb,X=q+1,le=Y-1,he=B.l;if(t(V!=null&&se!=null&&g!=null),ha[0]=null,ha[1]=Dt,ha[2]=_n,ha[3]=Gn,B.ca=se,B.tb=me,B.c=g.width,B.i=g.height,t(0<B.c&&0<B.i),1>=Y)g=0;else if(B.$a=3&V[q+0],B.Z=V[q+0]>>2&3,B.Lc=V[q+0]>>4&3,q=V[q+0]>>6&3,0>B.$a||1<B.$a||4<=B.Z||1<B.Lc||q)g=0;else if(he.put=We,he.ac=En,he.bc=ur,he.ma=B,he.width=g.width,he.height=g.height,he.Da=g.Da,he.v=g.v,he.va=g.va,he.j=g.j,he.o=g.o,B.$a)e:{t(B.$a==1),g=xl();t:for(;;){if(g==null){g=0;break e}if(t(B!=null),B.mc=g,g.c=B.c,g.i=B.i,g.l=B.l,g.l.ma=B,g.l.width=B.c,g.l.height=B.i,g.a=0,Q(g.m,V,X,le),!zs(B.c,B.i,1,g,null)||(g.ab==1&&g.gc[0].hc==3&&ls(g.s)?(B.ic=1,V=g.c*g.i,g.Ta=null,g.Ua=0,g.V=s(V),g.Ba=0,g.V==null?(g.a=1,g=0):g=1):(B.ic=0,g=vl(g,B.c)),!g))break t;g=1;break e}B.mc=null,g=0}else g=le>=B.c*B.i;B=!g}if(B)return null;p.ga.Lc!=1?p.Ga=0:A=M-N}t(p.ga!=null),t(N+A<=M);e:{if(g=(V=p.ga).c,M=V.l.o,V.$a==0){if(X=p.rc,le=p.Vc,he=p.Fa,q=p.P+1+N*g,Y=p.mb,se=p.nb+N*g,t(q<=p.P+p.qc),V.Z!=0)for(t(ha[V.Z]!=null),B=0;B<A;++B)ha[V.Z](X,le,he,q,Y,se,g),X=Y,le=se,se+=g,q+=g;else for(B=0;B<A;++B)r(Y,se,he,q,g),X=Y,le=se,se+=g,q+=g;p.rc=X,p.Vc=le}else{if(t(V.mc!=null),g=N+A,t((B=V.mc)!=null),t(g<=B.i),B.C>=g)g=1;else if(V.ic||fs(),V.ic){V=B.V,X=B.Ba,le=B.c;var xe=B.i,pe=(he=1,q=B.$/le,Y=B.$%le,se=B.m,me=B.s,B.$),be=le*xe,_e=le*g,Ce=me.wc,Ae=pe<_e?xr(me,Y,q):null;t(pe<=be),t(g<=xe),t(ls(me));t:for(;;){for(;!se.h&&pe<_e;){if(Y&Ce||(Ae=xr(me,Y,q)),t(Ae!=null),ie(se),256>(xe=Ln(Ae.G[0],Ae.H[0],se)))V[X+pe]=xe,++pe,++Y>=le&&(Y=0,++q<=g&&!(q%16)&&cs(B,q));else{if(!(280>xe)){he=0;break t}xe=bn(xe-256,se);var rt,Be=Ln(Ae.G[4],Ae.H[4],se);if(ie(se),!(pe>=(Be=Mn(le,Be=bn(Be,se)))&&be-pe>=xe)){he=0;break t}for(rt=0;rt<xe;++rt)V[X+pe+rt]=V[X+pe+rt-Be];for(pe+=xe,Y+=xe;Y>=le;)Y-=le,++q<=g&&!(q%16)&&cs(B,q);pe<_e&&Y&Ce&&(Ae=xr(me,Y,q))}t(se.h==ee(se))}cs(B,q>g?g:q);break t}!he||se.h&&pe<be?(he=0,B.a=se.h?5:3):B.$=pe,g=he}else g=us(B,B.V,B.Ba,B.c,B.i,g,Rc);if(!g){A=0;break e}}N+A>=M&&(p.Cc=1),A=1}if(!A)return null;if(p.Cc&&((A=p.ga)!=null&&(A.mc=null),p.ga=null,0<p.Ga))return alert("todo:WebPDequantizeLevels"),null}return p.nb+N*T}function er(p,g,N,A,T,M){for(;0<T--;){var B,V=p,q=g+(N?1:0),Y=p,se=g+(N?0:3);for(B=0;B<A;++B){var me=Y[se+4*B];me!=255&&(me*=32897,V[q+4*B+0]=V[q+4*B+0]*me>>23,V[q+4*B+1]=V[q+4*B+1]*me>>23,V[q+4*B+2]=V[q+4*B+2]*me>>23)}g+=M}}function Kn(p,g,N,A,T){for(;0<A--;){var M;for(M=0;M<N;++M){var B=p[g+2*M+0],V=15&(Y=p[g+2*M+1]),q=4369*V,Y=(240&Y|Y>>4)*q>>16;p[g+2*M+0]=(240&B|B>>4)*q>>16&240|(15&B|B<<4)*q>>16>>4&15,p[g+2*M+1]=240&Y|V}g+=T}}function vr(p,g,N,A,T,M,B,V){var q,Y,se=255;for(Y=0;Y<T;++Y){for(q=0;q<A;++q){var me=p[g+q];M[B+4*q]=me,se&=me}g+=N,B+=V}return se!=255}function No(p,g,N,A,T){var M;for(M=0;M<T;++M)N[A+M]=p[g+M]>>8}function fs(){Qd=er,mw=Kn,gw=vr,yw=No}function ko(p,g,N){R[p]=function(A,T,M,B,V,q,Y,se,me,X,le,he,xe,pe,be,_e,Ce){var Ae,rt=Ce-1>>1,Be=V[q+0]|Y[se+0]<<16,At=me[X+0]|le[he+0]<<16;t(A!=null);var Ye=3*Be+At+131074>>2;for(g(A[T+0],255&Ye,Ye>>16,xe,pe),M!=null&&(Ye=3*At+Be+131074>>2,g(M[B+0],255&Ye,Ye>>16,be,_e)),Ae=1;Ae<=rt;++Ae){var Rt=V[q+Ae]|Y[se+Ae]<<16,nr=me[X+Ae]|le[he+Ae]<<16,jt=Be+Rt+At+nr+524296,Xe=jt+2*(Rt+At)>>3;Ye=Xe+Be>>1,Be=(jt=jt+2*(Be+nr)>>3)+Rt>>1,g(A[T+2*Ae-1],255&Ye,Ye>>16,xe,pe+(2*Ae-1)*N),g(A[T+2*Ae-0],255&Be,Be>>16,xe,pe+(2*Ae-0)*N),M!=null&&(Ye=jt+At>>1,Be=Xe+nr>>1,g(M[B+2*Ae-1],255&Ye,Ye>>16,be,_e+(2*Ae-1)*N),g(M[B+2*Ae+0],255&Be,Be>>16,be,_e+(2*Ae+0)*N)),Be=Rt,At=nr}1&Ce||(Ye=3*Be+At+131074>>2,g(A[T+Ce-1],255&Ye,Ye>>16,xe,pe+(Ce-1)*N),M!=null&&(Ye=3*At+Be+131074>>2,g(M[B+Ce-1],255&Ye,Ye>>16,be,_e+(Ce-1)*N)))}}function Ud(){Gi[Cp]=rT,Gi[Ep]=Cw,Gi[_w]=iT,Gi[Lp]=Ew,Gi[Pp]=Lw,Gi[_1]=Pw,Gi[Nw]=sT,Gi[N1]=Cw,Gi[k1]=Ew,Gi[Tp]=Lw,Gi[A1]=Pw}function Uc(p){return p&~oT?0>p?0:255:p>>Tw}function ra(p,g){return Uc((19077*p>>8)+(26149*g>>8)-14234)}function kl(p,g,N){return Uc((19077*p>>8)-(6419*g>>8)-(13320*N>>8)+8708)}function Al(p,g){return Uc((19077*p>>8)+(33050*g>>8)-17685)}function ia(p,g,N,A,T){A[T+0]=ra(p,N),A[T+1]=kl(p,g,N),A[T+2]=Al(p,g)}function br(p,g,N,A,T){A[T+0]=Al(p,g),A[T+1]=kl(p,g,N),A[T+2]=ra(p,N)}function jl(p,g,N,A,T){var M=kl(p,g,N);g=M<<3&224|Al(p,g)>>3,A[T+0]=248&ra(p,N)|M>>5,A[T+1]=g}function Cl(p,g,N,A,T){var M=240&Al(p,g)|15;A[T+0]=240&ra(p,N)|kl(p,g,N)>>4,A[T+1]=M}function Vd(p,g,N,A,T){A[T+0]=255,ia(p,g,N,A,T+1)}function $d(p,g,N,A,T){br(p,g,N,A,T),A[T+3]=255}function $r(p,g,N,A,T){ia(p,g,N,A,T),A[T+3]=255}function Ao(p,g,N){R[p]=function(A,T,M,B,V,q,Y,se,me){for(var X=se+(-2&me)*N;se!=X;)g(A[T+0],M[B+0],V[q+0],Y,se),g(A[T+1],M[B+0],V[q+0],Y,se+N),T+=2,++B,++q,se+=2*N;1&me&&g(A[T+0],M[B+0],V[q+0],Y,se)}}function Vc(p,g,N){return N==0?p==0?g==0?6:5:g==0?4:0:N}function Np(p,g,N,A,T){switch(p>>>30){case 3:Tl(g,N,A,T,0);break;case 2:Hi(g,N,A,T);break;case 1:Xt(g,N,A,T)}}function qi(p,g){var N,A,T=g.M,M=g.Nb,B=p.oc,V=p.pc+40,q=p.oc,Y=p.pc+584,se=p.oc,me=p.pc+600;for(N=0;16>N;++N)B[V+32*N-1]=129;for(N=0;8>N;++N)q[Y+32*N-1]=129,se[me+32*N-1]=129;for(0<T?B[V-1-32]=q[Y-1-32]=se[me-1-32]=129:(i(B,V-32-1,127,21),i(q,Y-32-1,127,9),i(se,me-32-1,127,9)),A=0;A<p.za;++A){var X=g.ya[g.aa+A];if(0<A){for(N=-1;16>N;++N)r(B,V+32*N-4,B,V+32*N+12,4);for(N=-1;8>N;++N)r(q,Y+32*N-4,q,Y+32*N+4,4),r(se,me+32*N-4,se,me+32*N+4,4)}var le=p.Gd,he=p.Hd+A,xe=X.ad,pe=X.Hc;if(0<T&&(r(B,V-32,le[he].y,0,16),r(q,Y-32,le[he].f,0,8),r(se,me-32,le[he].ea,0,8)),X.Za){var be=B,_e=V-32+16;for(0<T&&(A>=p.za-1?i(be,_e,le[he].y[15],4):r(be,_e,le[he+1].y,0,4)),N=0;4>N;N++)be[_e+128+N]=be[_e+256+N]=be[_e+384+N]=be[_e+0+N];for(N=0;16>N;++N,pe<<=2)be=B,_e=V+Ow[N],hs[X.Ob[N]](be,_e),Np(pe,xe,16*+N,be,_e)}else if(be=Vc(A,T,X.Ob[0]),fa[be](B,V),pe!=0)for(N=0;16>N;++N,pe<<=2)Np(pe,xe,16*+N,B,V+Ow[N]);for(N=X.Gc,be=Vc(A,T,X.Dd),Eo[be](q,Y),Eo[be](se,me),pe=xe,be=q,_e=Y,255&(X=0|N)&&(170&X?Ws(pe,256,be,_e):on(pe,256,be,_e)),X=se,pe=me,255&(N>>=8)&&(170&N?Ws(xe,320,X,pe):on(xe,320,X,pe)),T<p.Ub-1&&(r(le[he].y,0,B,V+480,16),r(le[he].f,0,q,Y+224,8),r(le[he].ea,0,se,me+224,8)),N=8*M*p.B,le=p.sa,he=p.ta+16*A+16*M*p.R,xe=p.qa,X=p.ra+8*A+N,pe=p.Ha,be=p.Ia+8*A+N,N=0;16>N;++N)r(le,he+N*p.R,B,V+32*N,16);for(N=0;8>N;++N)r(xe,X+N*p.B,q,Y+32*N,8),r(pe,be+N*p.B,se,me+32*N,8)}}function El(p,g,N,A,T,M,B,V,q){var Y=[0],se=[0],me=0,X=q!=null?q.kd:0,le=q??new ke;if(p==null||12>N)return 7;le.data=p,le.w=g,le.ha=N,g=[g],N=[N],le.gb=[le.gb];e:{var he=g,xe=N,pe=le.gb;if(t(p!=null),t(xe!=null),t(pe!=null),pe[0]=0,12<=xe[0]&&!n(p,he[0],"RIFF")){if(n(p,he[0]+8,"WEBP")){pe=3;break e}var be=Ue(p,he[0]+4);if(12>be||4294967286<be){pe=3;break e}if(X&&be>xe[0]-8){pe=7;break e}pe[0]=be,he[0]+=12,xe[0]-=12}pe=0}if(pe!=0)return pe;for(be=0<le.gb[0],N=N[0];;){e:{var _e=p;xe=g,pe=N;var Ce=Y,Ae=se,rt=he=[0];if((Ye=me=[me])[0]=0,8>pe[0])pe=7;else{if(!n(_e,xe[0],"VP8X")){if(Ue(_e,xe[0]+4)!=10){pe=3;break e}if(18>pe[0]){pe=7;break e}var Be=Ue(_e,xe[0]+8),At=1+Te(_e,xe[0]+12);if(2147483648<=At*(_e=1+Te(_e,xe[0]+15))){pe=3;break e}rt!=null&&(rt[0]=Be),Ce!=null&&(Ce[0]=At),Ae!=null&&(Ae[0]=_e),xe[0]+=18,pe[0]-=18,Ye[0]=1}pe=0}}if(me=me[0],he=he[0],pe!=0)return pe;if(xe=!!(2&he),!be&&me)return 3;if(M!=null&&(M[0]=!!(16&he)),B!=null&&(B[0]=xe),V!=null&&(V[0]=0),B=Y[0],he=se[0],me&&xe&&q==null){pe=0;break}if(4>N){pe=7;break}if(be&&me||!be&&!me&&!n(p,g[0],"ALPH")){N=[N],le.na=[le.na],le.P=[le.P],le.Sa=[le.Sa];e:{Be=p,pe=g,be=N;var Ye=le.gb;Ce=le.na,Ae=le.P,rt=le.Sa,At=22,t(Be!=null),t(be!=null),_e=pe[0];var Rt=be[0];for(t(Ce!=null),t(rt!=null),Ce[0]=null,Ae[0]=null,rt[0]=0;;){if(pe[0]=_e,be[0]=Rt,8>Rt){pe=7;break e}var nr=Ue(Be,_e+4);if(4294967286<nr){pe=3;break e}var jt=8+nr+1&-2;if(At+=jt,0<Ye&&At>Ye){pe=3;break e}if(!n(Be,_e,"VP8 ")||!n(Be,_e,"VP8L")){pe=0;break e}if(Rt[0]<jt){pe=7;break e}n(Be,_e,"ALPH")||(Ce[0]=Be,Ae[0]=_e+8,rt[0]=nr),_e+=jt,Rt-=jt}}if(N=N[0],le.na=le.na[0],le.P=le.P[0],le.Sa=le.Sa[0],pe!=0)break}N=[N],le.Ja=[le.Ja],le.xa=[le.xa];e:if(Ye=p,pe=g,be=N,Ce=le.gb[0],Ae=le.Ja,rt=le.xa,Be=pe[0],_e=!n(Ye,Be,"VP8 "),At=!n(Ye,Be,"VP8L"),t(Ye!=null),t(be!=null),t(Ae!=null),t(rt!=null),8>be[0])pe=7;else{if(_e||At){if(Ye=Ue(Ye,Be+4),12<=Ce&&Ye>Ce-12){pe=3;break e}if(X&&Ye>be[0]-8){pe=7;break e}Ae[0]=Ye,pe[0]+=8,be[0]-=8,rt[0]=At}else rt[0]=5<=be[0]&&Ye[Be+0]==47&&!(Ye[Be+4]>>5),Ae[0]=be[0];pe=0}if(N=N[0],le.Ja=le.Ja[0],le.xa=le.xa[0],g=g[0],pe!=0)break;if(4294967286<le.Ja)return 3;if(V==null||xe||(V[0]=le.xa?2:1),B=[B],he=[he],le.xa){if(5>N){pe=7;break}V=B,X=he,xe=M,p==null||5>N?p=0:5<=N&&p[g+0]==47&&!(p[g+4]>>5)?(be=[0],Ye=[0],Ce=[0],Q(Ae=new H,p,g,N),yr(Ae,be,Ye,Ce)?(V!=null&&(V[0]=be[0]),X!=null&&(X[0]=Ye[0]),xe!=null&&(xe[0]=Ce[0]),p=1):p=0):p=0}else{if(10>N){pe=7;break}V=he,p==null||10>N||!hp(p,g+3,N-3)?p=0:(X=p[g+0]|p[g+1]<<8|p[g+2]<<16,xe=16383&(p[g+7]<<8|p[g+6]),p=16383&(p[g+9]<<8|p[g+8]),1&X||3<(X>>1&7)||!(X>>4&1)||X>>5>=le.Ja||!xe||!p?p=0:(B&&(B[0]=xe),V&&(V[0]=p),p=1))}if(!p||(B=B[0],he=he[0],me&&(Y[0]!=B||se[0]!=he)))return 3;q!=null&&(q[0]=le,q.offset=g-q.w,t(4294967286>g-q.w),t(q.offset==q.ha-N));break}return pe==0||pe==7&&me&&q==null?(M!=null&&(M[0]|=le.na!=null&&0<le.na.length),A!=null&&(A[0]=B),T!=null&&(T[0]=he),0):pe}function qd(p,g,N){var A=g.width,T=g.height,M=0,B=0,V=A,q=T;if(g.Da=p!=null&&0<p.Da,g.Da&&(V=p.cd,q=p.bd,M=p.v,B=p.j,11>N||(M&=-2,B&=-2),0>M||0>B||0>=V||0>=q||M+V>A||B+q>T))return 0;if(g.v=M,g.j=B,g.va=M+V,g.o=B+q,g.U=V,g.T=q,g.da=p!=null&&0<p.da,g.da){if(!Fe(V,q,N=[p.ib],M=[p.hb]))return 0;g.ib=N[0],g.hb=M[0]}return g.ob=p!=null&&p.ob,g.Kb=p==null||!p.Sd,g.da&&(g.ob=g.ib<3*A/4&&g.hb<3*T/4,g.Kb=0),1}function Hd(p){if(p==null)return 2;if(11>p.S){var g=p.f.RGBA;g.fb+=(p.height-1)*g.A,g.A=-g.A}else g=p.f.kb,p=p.height,g.O+=(p-1)*g.fa,g.fa=-g.fa,g.N+=(p-1>>1)*g.Ab,g.Ab=-g.Ab,g.W+=(p-1>>1)*g.Db,g.Db=-g.Db,g.F!=null&&(g.J+=(p-1)*g.lb,g.lb=-g.lb);return 0}function sa(p,g,N,A){if(A==null||0>=p||0>=g)return 2;if(N!=null){if(N.Da){var T=N.cd,M=N.bd,B=-2&N.v,V=-2&N.j;if(0>B||0>V||0>=T||0>=M||B+T>p||V+M>g)return 2;p=T,g=M}if(N.da){if(!Fe(p,g,T=[N.ib],M=[N.hb]))return 2;p=T[0],g=M[0]}}A.width=p,A.height=g;e:{var q=A.width,Y=A.height;if(p=A.S,0>=q||0>=Y||!(p>=Cp&&13>p))p=2;else{if(0>=A.Rd&&A.sd==null){B=M=T=g=0;var se=(V=q*Iw[p])*Y;if(11>p||(M=(Y+1)/2*(g=(q+1)/2),p==12&&(B=(T=q)*Y)),(Y=s(se+2*M+B))==null){p=1;break e}A.sd=Y,11>p?((q=A.f.RGBA).eb=Y,q.fb=0,q.A=V,q.size=se):((q=A.f.kb).y=Y,q.O=0,q.fa=V,q.Fd=se,q.f=Y,q.N=0+se,q.Ab=g,q.Cd=M,q.ea=Y,q.W=0+se+M,q.Db=g,q.Ed=M,p==12&&(q.F=Y,q.J=0+se+2*M),q.Tc=B,q.lb=T)}if(g=1,T=A.S,M=A.width,B=A.height,T>=Cp&&13>T)if(11>T)p=A.f.RGBA,g&=(V=Math.abs(p.A))*(B-1)+M<=p.size,g&=V>=M*Iw[T],g&=p.eb!=null;else{p=A.f.kb,V=(M+1)/2,se=(B+1)/2,q=Math.abs(p.fa),Y=Math.abs(p.Ab);var me=Math.abs(p.Db),X=Math.abs(p.lb),le=X*(B-1)+M;g&=q*(B-1)+M<=p.Fd,g&=Y*(se-1)+V<=p.Cd,g=(g&=me*(se-1)+V<=p.Ed)&q>=M&Y>=V&me>=V,g&=p.y!=null,g&=p.f!=null,g&=p.ea!=null,T==12&&(g&=X>=M,g&=le<=p.Tc,g&=p.F!=null)}else g=0;p=g?0:2}}return p!=0||N!=null&&N.fd&&(p=Hd(A)),p}var Ll=64,vi=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],bi=24,oa=32,jo=8,aa=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];Ie("Predictor0","PredictorAdd0"),R.Predictor0=function(){return 4278190080},R.Predictor1=function(p){return p},R.Predictor2=function(p,g,N){return g[N+0]},R.Predictor3=function(p,g,N){return g[N+1]},R.Predictor4=function(p,g,N){return g[N-1]},R.Predictor5=function(p,g,N){return He(He(p,g[N+1]),g[N+0])},R.Predictor6=function(p,g,N){return He(p,g[N-1])},R.Predictor7=function(p,g,N){return He(p,g[N+0])},R.Predictor8=function(p,g,N){return He(g[N-1],g[N+0])},R.Predictor9=function(p,g,N){return He(g[N+0],g[N+1])},R.Predictor10=function(p,g,N){return He(He(p,g[N-1]),He(g[N+0],g[N+1]))},R.Predictor11=function(p,g,N){var A=g[N+0];return 0>=ot(A>>24&255,p>>24&255,(g=g[N-1])>>24&255)+ot(A>>16&255,p>>16&255,g>>16&255)+ot(A>>8&255,p>>8&255,g>>8&255)+ot(255&A,255&p,255&g)?A:p},R.Predictor12=function(p,g,N){var A=g[N+0];return($t((p>>24&255)+(A>>24&255)-((g=g[N-1])>>24&255))<<24|$t((p>>16&255)+(A>>16&255)-(g>>16&255))<<16|$t((p>>8&255)+(A>>8&255)-(g>>8&255))<<8|$t((255&p)+(255&A)-(255&g)))>>>0},R.Predictor13=function(p,g,N){var A=g[N-1];return(Et((p=He(p,g[N+0]))>>24&255,A>>24&255)<<24|Et(p>>16&255,A>>16&255)<<16|Et(p>>8&255,A>>8&255)<<8|Et(255&p,255&A))>>>0};var Wd=R.PredictorAdd0;R.PredictorAdd1=wt,Ie("Predictor2","PredictorAdd2"),Ie("Predictor3","PredictorAdd3"),Ie("Predictor4","PredictorAdd4"),Ie("Predictor5","PredictorAdd5"),Ie("Predictor6","PredictorAdd6"),Ie("Predictor7","PredictorAdd7"),Ie("Predictor8","PredictorAdd8"),Ie("Predictor9","PredictorAdd9"),Ie("Predictor10","PredictorAdd10"),Ie("Predictor11","PredictorAdd11"),Ie("Predictor12","PredictorAdd12"),Ie("Predictor13","PredictorAdd13");var $c=R.PredictorAdd2;Ze("ColorIndexInverseTransform","MapARGB","32b",function(p){return p>>8&255},function(p){return p}),Ze("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(p){return p},function(p){return p>>8&255});var Fn,kp=R.ColorIndexInverseTransform,qs=R.MapARGB,Hs=R.VP8LColorIndexInverseTransformAlpha,Gd=R.MapAlpha,Kd=R.VP8LPredictorsAdd=[];Kd.length=16,(R.VP8LPredictors=[]).length=16,(R.VP8LPredictorsAdd_C=[]).length=16,(R.VP8LPredictors_C=[]).length=16;var Yd,Xd,la,ca,ua,Pl,da,Tl,Hi,Ws,Xt,on,Dn,tr,Co,Zd,qc,Ap,cw,uw,dw,fw,hw,pw,Qd,mw,gw,yw,xw=s(511),vw=s(2041),bw=s(225),ww=s(767),Sw=0,S1=vw,jp=bw,wi=ww,Wi=xw,Cp=0,Ep=1,_w=2,Lp=3,Pp=4,_1=5,Nw=6,N1=7,k1=8,Tp=9,A1=10,$P=[2,3,7],qP=[3,3,11],kw=[280,256,256,256,40],HP=[0,1,1,1,0],WP=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],GP=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,3
vendor: 4,386 bytes, line 538
5386,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],KP=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],YP=8,j1=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],C1=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Jd=null,XP=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],ZP=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Aw=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],QP=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,25
5385,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],JP=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,
5381,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],eT=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,25
vendor: 24,551 bytes, line 538
5385,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],tT=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],fa=[],hs=[],Eo=[],nT=1,jw=2,ha=[],Gi=[];ko("UpsampleRgbLinePair",ia,3),ko("UpsampleBgrLinePair",br,3),ko("UpsampleRgbaLinePair",$r,4),ko("UpsampleBgraLinePair",$d,4),ko("UpsampleArgbLinePair",Vd,4),ko("UpsampleRgba4444LinePair",Cl,2),ko("UpsampleRgb565LinePair",jl,2);var rT=R.UpsampleRgbLinePair,iT=R.UpsampleBgrLinePair,Cw=R.UpsampleRgbaLinePair,Ew=R.UpsampleBgraLinePair,Lw=R.UpsampleArgbLinePair,Pw=R.UpsampleRgba4444LinePair,sT=R.UpsampleRgb565LinePair,Rp=16,Op=1<<Rp-1,ef=-227,E1=482,Tw=6,oT=(256<<Tw)-1,Rw=0,aT=s(256),lT=s(256),cT=s(256),uT=s(256),dT=s(E1-ef),fT=s(E1-ef);Ao("YuvToRgbRow",ia,3),Ao("YuvToBgrRow",br,3),Ao("YuvToRgbaRow",$r,4),Ao("YuvToBgraRow",$d,4),Ao("YuvToArgbRow",Vd,4),Ao("YuvToRgba4444Row",Cl,2),Ao("YuvToRgb565Row",jl,2);var Ow=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Ip=[0,2,8],hT=[8,7,6,4,4,2,2,2,1,1,1,1],pT=1;this.WebPDecodeRGBA=function(p,g,N,A,T){var M=Ep,B=new Se,V=new _t;B.ba=V,V.S=M,V.width=[V.width],V.height=[V.height];var q=V.width,Y=V.height,se=new Qe;if(se==null||p==null)var me=2;else t(se!=null),me=El(p,g,N,se.width,se.height,se.Pd,se.Qd,se.format,null);if(me!=0?q=0:(q!=null&&(q[0]=se.width[0]),Y!=null&&(Y[0]=se.height[0]),q=1),q){V.width=V.width[0],V.height=V.height[0],A!=null&&(A[0]=V.width),T!=null&&(T[0]=V.height);e:{if(A=new Mc,(T=new ke).data=p,T.w=g,T.ha=N,T.kd=1,g=[0],t(T!=null),((p=El(T.data,T.w,T.ha,null,null,null,g,null,T))==0||p==7)&&g[0]&&(p=4),(g=p)==0){if(t(B!=null),A.data=T.data,A.w=T.w+T.offset,A.ha=T.ha-T.offset,A.put=We,A.ac=En,A.bc=ur,A.ma=B,T.xa){if((p=xl())==null){B=1;break e}if(function(X,le){var he=[0],xe=[0],pe=[0];t:for(;;){if(X==null)return 0;if(le==null)return X.a=2,0;if(X.l=le,X.a=0,Q(X.m,le.data,le.w,le.ha),!yr(X.m,he,xe,pe)){X.a=3;break t}if(X.xb=jw,le.width=he[0],le.height=xe[0],!zs(he[0],xe[0],1,X,null))break t;return 1}return t(X.a!=0),0}(p,A)){if(A=(g=sa(A.width,A.height,B.Oa,B.ba))==0){t:{A=p;n:for(;;){if(A==null){A=0;break t}if(t(A.s.yc!=null),t(A.s.Ya!=null),t(0<A.s.Wb),t((N=A.l)!=null),t((T=N.ma)!=null),A.xb!=0){if(A.ca=T.ba,A.tb=T.tb,t(A.ca!=null),!qd(T.Oa,N,Lp)){A.a=2;break n}if(!vl(A,N.width)||N.da)break n;if((N.da||lt(A.ca.S))&&fs(),11>A.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),A.ca.f.kb.F!=null&&fs()),A.Pb&&0<A.s.ua&&A.s.vb.X==null&&!W(A.s.vb,A.s.Wa.Xa)){A.a=1;break n}A.xb=0}if(!us(A,A.V,A.Ba,A.c,A.i,N.o,na))break n;T.Dc=A.Ma,A=1;break t}t(A.a!=0),A=0}A=!A}A&&(g=p.a)}else g=p.a}else{if((p=new a1)==null){B=1;break e}if(p.Fa=T.na,p.P=T.P,p.qc=T.Sa,Vs(p,A)){if((g=sa(A.width,A.height,B.Oa,B.ba))==0){if(p.Aa=0,N=B.Oa,t((T=p)!=null),N!=null){if(0<(q=0>(q=N.Md)?0:100<q?255:255*q/100)){for(Y=se=0;4>Y;++Y)12>(me=T.pb[Y]).lc&&(me.ia=q*hT[0>me.lc?0:me.lc]>>3),se|=me.ia;se&&(alert("todo:VP8InitRandom"),T.ia=1)}T.Ga=N.Id,100<T.Ga?T.Ga=100:0>T.Ga&&(T.Ga=0)}(function(X,le){if(X==null)return 0;if(le==null)return Wn(X,2,"NULL VP8Io parameter in VP8Decode().");if(!X.cb&&!Vs(X,le))return 0;if(t(X.cb),le.ac==null||le.ac(le)){le.ob&&(X.L=0);var he=Ip[X.L];if(X.L==2?(X.yb=0,X.zb=0):(X.yb=le.v-he>>4,X.zb=le.j-he>>4,0>X.yb&&(X.yb=0),0>X.zb&&(X.zb=0)),X.Va=le.o+15+he>>4,X.Hb=le.va+15+he>>4,X.Hb>X.za&&(X.Hb=X.za),X.Va>X.Ub&&(X.Va=X.Ub),0<X.L){var xe=X.ed;for(he=0;4>he;++he){var pe;if(X.Qa.Cb){var be=X.Qa.Lb[he];X.Qa.Fb||(be+=xe.Tb)}else be=xe.Tb;for(pe=0;1>=pe;++pe){var _e=X.gd[he][pe],Ce=be;if(xe.Pc&&(Ce+=xe.vd[0],pe&&(Ce+=xe.od[0])),0<(Ce=0>Ce?0:63<Ce?63:Ce)){var Ae=Ce;0<xe.wb&&(Ae=4<xe.wb?Ae>>2:Ae>>1)>9-xe.wb&&(Ae=9-xe.wb),1>Ae&&(Ae=1),_e.dd=Ae,_e.tc=2*Ce+Ae,_e.ld=40<=Ce?2:15<=Ce?1:0}else _e.tc=0;_e.La=pe}}}he=0}else Wn(X,6,"Frame setup failed"),he=X.a;if(he=he==0){if(he){X.$c=0,0<X.Aa||(X.Ic=pT);t:{he=X.Ic,xe=4*(Ae=X.za);var rt=32*Ae,Be=Ae+1,At=0<X.L?Ae*(0<X.Aa?2:1):0,Ye=(X.Aa==2?2:1)*Ae;if((_e=xe+832+(pe=3*(16*he+Ip[X.L])/2*rt)+(be=X.Fa!=null&&0<X.Fa.length?X.Kc.c*X.Kc.i:0))!=_e)he=0;else{if(_e>X.Vb){if(X.Vb=0,X.Ec=s(_e),X.Fc=0,X.Ec==null){he=Wn(X,1,"no memory during frame initialization.");break t}X.Vb=_e}_e=X.Ec,Ce=X.Fc,X.Ac=_e,X.Bc=Ce,Ce+=xe,X.Gd=o(rt,dp),X.Hd=0,X.rb=o(Be+1,Pd),X.sb=1,X.wa=At?o(At,Vi):null,X.Y=0,X.D.Nb=0,X.D.wa=X.wa,X.D.Y=X.Y,0<X.Aa&&(X.D.Y+=Ae),t(!0),X.oc=_e,X.pc=Ce,Ce+=832,X.ya=o(Ye,Td),X.aa=0,X.D.ya=X.ya,X.D.aa=X.aa,X.Aa==2&&(X.D.aa+=Ae),X.R=16*Ae,X.B=8*Ae,Ae=(rt=Ip[X.L])*X.R,rt=rt/2*X.B,X.sa=_e,X.ta=Ce+Ae,X.qa=X.sa,X.ra=X.ta+16*he*X.R+rt,X.Ha=X.qa,X.Ia=X.ra+8*he*X.B+rt,X.$c=0,Ce+=pe,X.mb=be?_e:null,X.nb=be?Ce:null,t(Ce+be<=X.Fc+X.Vb),pp(X),i(X.Ac,X.Bc,0,xe),he=1}}if(he){if(le.ka=0,le.y=X.sa,le.O=X.ta,le.f=X.qa,le.N=X.ra,le.ea=X.Ha,le.Vd=X.Ia,le.fa=X.R,le.Rc=X.B,le.F=null,le.J=0,!Sw){for(he=-255;255>=he;++he)xw[255+he]=0>he?-he:he;for(he=-1020;1020>=he;++he)vw[1020+he]=-128>he?-128:127<he?127:he;for(he=-112;112>=he;++he)bw[112+he]=-16>he?-16:15<he?15:he;for(he=-255;510>=he;++he)ww[255+he]=0>he?0:255<he?255:he;Sw=1}da=Dc,Tl=c1,Ws=$s,Xt=gp,on=yp,Hi=l1,Dn=Sp,tr=Nl,Co=P,Zd=Z,qc=_p,Ap=w,cw=ne,uw=fe,dw=_l,fw=zd,hw=bp,pw=wp,hs[0]=y1,hs[1]=u1,hs[2]=m1,hs[3]=g1,hs[4]=xo,hs[5]=x1,hs[6]=vo,hs[7]=v1,hs[8]=Id,hs[9]=Bc,fa[0]=h1,fa[1]=f1,fa[2]=Rd,fa[3]=xp,fa[4]=wl,fa[5]=Od,fa[6]=p1,Eo[0]=w1,Eo[1]=d1,Eo[2]=Sl,Eo[3]=b1,Eo[4]=Fd,Eo[5]=Md,Eo[6]=vp,he=1}else he=0}he&&(he=function(Rt,nr){for(Rt.M=0;Rt.M<Rt.Va;++Rt.M){var jt,Xe=Rt.Jc[Rt.M&Rt.Xb],Re=Rt.m,Bn=Rt;for(jt=0;jt<Bn.za;++jt){var bt=Re,Ft=Bn,pn=Ft.Ac,wr=Ft.Bc+4*jt,qr=Ft.zc,Pn=Ft.ya[Ft.aa+jt];if(Ft.Qa.Bb?Pn.$b=ve(bt,Ft.Pa.jb[0])?2+ve(bt,Ft.Pa.jb[2]):ve(bt,Ft.Pa.jb[1]):Pn.$b=0,Ft.kc&&(Pn.Ad=ve(bt,Ft.Bd)),Pn.Za=!ve(bt,145)+0,Pn.Za){var Pr=Pn.Ob,Hr=0;for(Ft=0;4>Ft;++Ft){var rr,Bt=qr[0+Ft];for(rr=0;4>rr;++rr){Bt=JP[pn[wr+rr]][Bt];for(var Jt=Aw[ve(bt,Bt[0])];0<Jt;)Jt=Aw[2*Jt+ve(bt,Bt[Jt])];Bt=-Jt,pn[wr+rr]=Bt}r(Pr,Hr,pn,wr,4),Hr+=4,qr[0+Ft]=Bt}}else Bt=ve(bt,156)?ve(bt,128)?1:3:ve(bt,163)?2:0,Pn.Ob[0]=Bt,i(pn,wr,Bt,4),i(qr,0,Bt,4);Pn.Dd=ve(bt,142)?ve(bt,114)?ve(bt,183)?1:3:2:0}if(Bn.m.Ka)return Wn(Rt,7,"Premature end-of-partition0 encountered.");for(;Rt.ja<Rt.za;++Rt.ja){if(Bn=Xe,bt=(Re=Rt).rb[Re.sb-1],pn=Re.rb[Re.sb+Re.ja],jt=Re.ya[Re.aa+Re.ja],wr=Re.kc?jt.Ad:0)bt.la=pn.la=0,jt.Za||(bt.Na=pn.Na=0),jt.Hc=0,jt.Gc=0,jt.ia=0;else{var Tn,en;if(bt=pn,pn=Bn,wr=Re.Pa.Xc,qr=Re.ya[Re.aa+Re.ja],Pn=Re.pb[qr.$b],Ft=qr.ad,Pr=0,Hr=Re.rb[Re.sb-1],Bt=rr=0,i(Ft,Pr,0,384),qr.Za)var Sr=0,ps=wr[3];else{Jt=s(16);var zn=bt.Na+Hr.Na;if(zn=Jd(pn,wr[1],zn,Pn.Eb,0,Jt,0),bt.Na=Hr.Na=(0<zn)+0,1<zn)da(Jt,0,Ft,Pr);else{var ni=Jt[0]+3>>3;for(Jt=0;256>Jt;Jt+=16)Ft[Pr+Jt]=ni}Sr=1,ps=wr[0]}var an=15&bt.la,ir=15&Hr.la;for(Jt=0;4>Jt;++Jt){var Si=1&ir;for(ni=en=0;4>ni;++ni)an=an>>1|(Si=(zn=Jd(pn,ps,zn=Si+(1&an),Pn.Sc,Sr,Ft,Pr))>Sr)<<7,en=en<<2|(3<zn?3:1<zn?2:Ft[Pr+0]!=0),Pr+=16;an>>=4,ir=ir>>1|Si<<7,rr=(rr<<8|en)>>>0}for(ps=an,Sr=ir>>4,Tn=0;4>Tn;Tn+=2){for(en=0,an=bt.la>>4+Tn,ir=Hr.la>>4+Tn,Jt=0;2>Jt;++Jt){for(Si=1&ir,ni=0;2>ni;++ni)zn=Si+(1&an),an=an>>1|(Si=0<(zn=Jd(pn,wr[2],zn,Pn.Qc,0,Ft,Pr)))<<3,en=en<<2|(3<zn?3:1<zn?2:Ft[Pr+0]!=0),Pr+=16;an>>=2,ir=ir>>1|Si<<5}Bt|=en<<4*Tn,ps|=an<<4<<Tn,Sr|=(240&ir)<<Tn}bt.la=ps,Hr.la=Sr,qr.Hc=rr,qr.Gc=Bt,qr.ia=43690&Bt?0:Pn.ia,wr=!(rr|Bt)}if(0<Re.L&&(Re.wa[Re.Y+Re.ja]=Re.gd[jt.$b][jt.Za],Re.wa[Re.Y+Re.ja].La|=!wr),Bn.Ka)return Wn(Rt,7,"Premature end-of-file encountered.")}if(pp(Rt),Re=nr,Bn=1,jt=(Xe=Rt).D,bt=0<Xe.L&&Xe.M>=Xe.zb&&Xe.M<=Xe.Va,Xe.Aa==0)t:{if(jt.M=Xe.M,jt.uc=bt,qi(Xe,jt),Bn=1,jt=(en=Xe.D).Nb,bt=(Bt=Ip[Xe.L])*Xe.R,pn=Bt/2*Xe.B,Jt=16*jt*Xe.R,ni=8*jt*Xe.B,wr=Xe.sa,qr=Xe.ta-bt+Jt,Pn=Xe.qa,Ft=Xe.ra-pn+ni,Pr=Xe.Ha,Hr=Xe.Ia-pn+ni,ir=(an=en.M)==0,rr=an>=Xe.Va-1,Xe.Aa==2&&qi(Xe,en),en.uc)for(Si=(zn=Xe).D.M,t(zn.D.uc),en=zn.yb;en<zn.Hb;++en){Sr=en,ps=Si;var Wr=(_i=(_r=zn).D).Nb;Tn=_r.R;var _i=_i.wa[_i.Y+Sr],Ni=_r.sa,ri=_r.ta+16*Wr*Tn+16*Sr,ki=_i.dd,fn=_i.tc;if(fn!=0)if(t(3<=fn),_r.L==1)0<Sr&&fw(Ni,ri,Tn,fn+4),_i.La&&pw(Ni,ri,Tn,fn),0<ps&&dw(Ni,ri,Tn,fn+4),_i.La&&hw(Ni,ri,Tn,fn);else{var Ai=_r.B,ms=_r.qa,Rl=_r.ra+8*Wr*Ai+8*Sr,Lo=_r.Ha,_r=_r.Ia+8*Wr*Ai+8*Sr;Wr=_i.ld,0<Sr&&(tr(Ni,ri,Tn,fn+4,ki,Wr),Zd(ms,Rl,Lo,_r,Ai,fn+4,ki,Wr)),_i.La&&(Ap(Ni,ri,Tn,fn,ki,Wr),uw(ms,Rl,Lo,_r,Ai,fn,ki,Wr)),0<ps&&(Dn(Ni,ri,Tn,fn+4,ki,Wr),Co(ms,Rl,Lo,_r,Ai,fn+4,ki,Wr)),_i.La&&(qc(Ni,ri,Tn,fn,ki,Wr),cw(ms,Rl,Lo,_r,Ai,fn,ki,Wr))}}if(Xe.ia&&alert("todo:DitherRow"),Re.put!=null){if(en=16*an,an=16*(an+1),ir?(Re.y=Xe.sa,Re.O=Xe.ta+Jt,Re.f=Xe.qa,Re.N=Xe.ra+ni,Re.ea=Xe.Ha,Re.W=Xe.Ia+ni):(en-=Bt,Re.y=wr,Re.O=qr,Re.f=Pn,Re.N=Ft,Re.ea=Pr,Re.W=Hr),rr||(an-=Bt),an>Re.o&&(an=Re.o),Re.F=null,Re.J=null,Xe.Fa!=null&&0<Xe.Fa.length&&en<an&&(Re.J=dn(Xe,Re,en,an-en),Re.F=Xe.mb,Re.F==null&&Re.F.length==0)){Bn=Wn(Xe,3,"Could not decode alpha data.");break t}en<Re.j&&(Bt=Re.j-en,en=Re.j,t(!(1&Bt)),Re.O+=Xe.R*Bt,Re.N+=Xe.B*(Bt>>1),Re.W+=Xe.B*(Bt>>1),Re.F!=null&&(Re.J+=Re.width*Bt)),en<an&&(Re.O+=Re.v,Re.N+=Re.v>>1,Re.W+=Re.v>>1,Re.F!=null&&(Re.J+=Re.v),Re.ka=en-Re.j,Re.U=Re.va-Re.v,Re.T=an-en,Bn=Re.put(Re))}jt+1!=Xe.Ic||rr||(r(Xe.sa,Xe.ta-bt,wr,qr+16*Xe.R,bt),r(Xe.qa,Xe.ra-pn,Pn,Ft+8*Xe.B,pn),r(Xe.Ha,Xe.Ia-pn,Pr,Hr+8*Xe.B,pn))}if(!Bn)return Wn(Rt,6,"Output aborted.")}return 1}(X,le)),le.bc!=null&&le.bc(le),he&=1}return he?(X.cb=0,he):0})(p,A)||(g=p.a)}}else g=p.a}g==0&&B.Oa!=null&&B.Oa.fd&&(g=Hd(B.ba))}B=g}M=B!=0?null:11>M?V.f.RGBA.eb:V.f.kb.y}else M=null;return M};var Iw=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function c(R,z){for(var C="",L=0;L<4;L++)C+=String.fromCharCode(R[z++]);return C}function d(R,z){return R[z+0]|R[z+1]<<8}function h(R,z){return(R[z+0]|R[z+1]<<8|R[z+2]<<16)>>>0}function m(R,z){return(R[z+0]|R[z+1]<<8|R[z+2]<<16|R[z+3]<<24)>>>0}new l;var f=[0],x=[0],v=[],b=new l,y=e,S=function(R,z){var C={},L=0,D=!1,F=0,te=0;if(C.frames=[],!function(E,H){for(var K=0;K<4;K++)if(E[H+K]!="RIFF".charCodeAt(K))return!0;return!1}(R,z)){for(m(R,z+=4),z+=8;z<R.length;){var re=c(R,z),ce=m(R,z+=4);z+=4;var G=ce+(1&ce);switch(re){case"VP8 ":case"VP8L":C.frames[L]===void 0&&(C.frames[L]={}),(ue=C.frames[L]).src_off=D?te:z-8,ue.src_size=F+ce+8,L++,D&&(D=!1,F=0,te=0);break;case"VP8X":(ue=C.header={}).feature_flags=R[z];var Q=z+4;ue.canvas_width=1+h(R,Q),Q+=3,ue.canvas_height=1+h(R,Q),Q+=3;break;case"ALPH":D=!0,F=G+8,te=z-8;break;case"ANIM":(ue=C.header).bgcolor=m(R,z),Q=z+4,ue.loop_count=d(R,Q),Q+=2;break;case"ANMF":var de,ue;(ue=C.frames[L]={}).offset_x=2*h(R,z),z+=3,ue.offset_y=2*h(R,z),z+=3,ue.width=1+h(R,z),z+=3,ue.height=1+h(R,z),z+=3,ue.duration=h(R,z),z+=3,de=R[z++],ue.dispose=1&de,ue.blend=de>>1&1}re!="ANMF"&&(z+=G)}return C}}(y,0);S.response=y,S.rgbaoutput=!0,S.dataurl=!1;var _=S.header?S.header:null,k=S.frames?S.frames:null;if(_){_.loop_counter=_.loop_count,f=[_.canvas_height],x=[_.canvas_width];for(var O=0;O<k.length&&k[O].blend!=0;O++);}var $=k[0],U=b.WebPDecodeRGBA(y,$.src_off,$.src_size,x,f);$.rgba=U,$.imgwidth=x[0],$.imgheight=f[0];for(var I=0;I<x[0]*f[0]*4;I++)v[I]=U[I];return this.width=x,this.height=f,this.data=v,this}(function(e){var t,n,r,i,s,o,a,l,c,d=function(E){return E=E||{},this.isStrokeTransparent=E.isStrokeTransparent||!1,this.strokeOpacity=E.strokeOpacity||1,this.strokeStyle=E.strokeStyle||"#000000",this.fillStyle=E.fillStyle||"#000000",this.isFillTransparent=E.isFillTransparent||!1,this.fillOpacity=E.fillOpacity||1,this.font=E.font||"10px sans-serif",this.textBaseline=E.textBaseline||"alphabetic",this.textAlign=E.textAlign||"left",this.lineWidth=E.lineWidth||1,this.lineJoin=E.lineJoin||"miter",this.lineCap=E.lineCap||"butt",this.path=E.path||[],this.transform=E.transform!==void 0?E.transform.clone():new l,this.globalCompositeOperation=E.globalCompositeOperation||"normal",this.globalAlpha=E.globalAlpha||1,this.clip_path=E.clip_path||[],this.currentPoint=E.currentPoint||new o,this.miterLimit=E.miterLimit||10,this.lastPoint=E.lastPoint||new o,this.lineDashOffset=E.lineDashOffset||0,this.lineDash=E.lineDash||[],this.margin=E.margin||[0,0,0,0],this.prevPageLastElemOffset=E.prevPageLastElemOffset||0,this.ignoreClearRect=typeof E.ignoreClearRect!="boolean"||E.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new h(this),t=this.internal.f2,n=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,s=this.internal.getVerticalCoordinate,o=this.internal.Point,a=this.internal.Rectangle,l=this.internal.Matrix,c=new d}]);var h=function(E){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var H=E;Object.defineProperty(this,"pdf",{get:function(){return H}});var K=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return K},set:function(W){K=!!W}});var ee=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return ee},set:function(W){ee=!!W}});var J=0;Object.defineProperty(this,"posX",{get:function(){return J},set:function(W){isNaN(W)||(J=W)}});var ie=0;Object.defineProperty(this,"posY",{get:function(){return ie},set:function(W){isNaN(W)||(ie=W)}}),Object.defineProperty(this,"margin",{get:function(){return c.margin},set:function(W){var we;typeof W=="number"?we=[W,W,W,W]:((we=new Array(4))[0]=W[0],we[1]=W.length>=2?W[1]:we[0],we[2]=W.length>=3?W[2]:we[0],we[3]=W.length>=4?W[3]:we[1]),c.margin=we}});var ge=!1;Object.defineProperty(this,"autoPaging",{get:function(){return ge},set:function(W){ge=W}});var ye=0;Object.defineProperty(this,"lastBreak",{get:function(){return ye},set:function(W){ye=W}});var ve=[];Object.defineProperty(this,"pageBreaks",{get:function(){return ve},set:function(W){ve=W}}),Object.defineProperty(this,"ctx",{get:function(){return c},set:function(W){W instanceof d&&(c=W)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(W){c.path=W}});var je=[];Object.defineProperty(this,"ctxStack",{get:function(){return je},set:function(W){je=W}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(W){var we;we=m(W),this.ctx.fillStyle=we.style,this.ctx.isFillTransparent=we.a===0,this.ctx.fillOpacity=we.a,this.pdf.setFillColor(we.r,we.g,we.b,{a:we.a}),this.pdf.setTextColor(we.r,we.g,we.b,{a:we.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(W){var we=m(W);this.ctx.strokeStyle=we.style,this.ctx.isStrokeTransparent=we.a===0,this.ctx.strokeOpacity=we.a,we.a===0?this.pdf.setDrawColor(255,255,255):(we.a,this.pdf.setDrawColor(we.r,we.g,we.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(W){["butt","round","square"].indexOf(W)!==-1&&(this.ctx.lineCap=W,this.pdf.setLineCap(W))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(W){isNaN(W)||(this.ctx.lineWidth=W,this.pdf.setLineWidth(W))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(W){["bevel","round","miter"].indexOf(W)!==-1&&(this.ctx.lineJoin=W,this.pdf.setLineJoin(W))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(W){isNaN(W)||(this.ctx.miterLimit=W,this.pdf.setMiterLimit(W))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(W){this.ctx.textBaseline=W}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(W){["right","end","center","left","start"].indexOf(W)!==-1&&(this.ctx.textAlign=W)}});var Le=null,Te=null,Ue=null;Object.defineProperty(this,"fontFaces",{get:function(){return Ue},set:function(W){Le=null,Te=null,Ue=W}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(W){var we;if(this.ctx.font=W,(we=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(W))!==null){var nt=we[1];we[2];var Fe=we[3],Ne=we[4];we[5];var st=we[6],Ie=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Ne)[2];Ne=Math.floor(Ie==="px"?parseFloat(Ne)*this.pdf.internal.scaleFactor:Ie==="em"?parseFloat(Ne)*this.pdf.getFontSize():parseFloat(Ne)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Ne);var Ge=function(Ze){var vn,Pt,ht=[],St=Ze.trim();if(St==="")return x2;if(St in m6)return[m6[St]];for(;St!=="";){switch(Pt=null,vn=(St=y6(St)).charAt(0)){case'"':case"'":Pt=OJ(St.substring(1),vn);break;default:Pt=IJ(St)}if(Pt===null||(ht.push(Pt[0]),(St=y6(Pt[1]))!==""&&St.charAt(0)!==","))return x2;St=St.replace(/^,/,"")}return ht}(st);if(this.fontFaces){var He=function(Ze,vn){var Pt=Ze.getFontList(),ht=JSON.stringify(Pt);if(Le===null||Te!==ht){var St=function(Gt){var at=[];return Object.keys(Gt).forEach(function(sn){Gt[sn].forEach(function(lt){var pt=null;switch(lt){case"bold":pt={family:sn,weight:"bold"};break;case"italic":pt={family:sn,style:"italic"};break;case"bolditalic":pt={family:sn,weight:"bold",style:"italic"};break;case"":case"normal":pt={family:sn}}pt!==null&&(pt.ref={name:sn,style:lt},at.push(pt))})}),at}(Pt);Le=function(Gt){for(var at={},sn=0;sn<Gt.length;++sn){var lt=y2(Gt[sn]),pt=lt.family,un=lt.stretch,_t=lt.style,Qe=lt.weight;at[pt]=at[pt]||{},at[pt][un]=at[pt][un]||{},at[pt][un][_t]=at[pt][un][_t]||{},at[pt][un][_t][Qe]=lt}return at}(St.concat(vn)),Te=ht}return Le}(this.pdf,this.fontFaces),$t=Ge.map(function(Ze){return{family:Ze,stretch:"normal",weight:Fe,style:nt}}),Et=function(Ze,vn,Pt){for(var ht=(Pt=Pt||{}).defaultFontFamily||"times",St=Object.assign({},RJ,Pt.genericFontFamilies||{}),Gt=null,at=null,sn=0;sn<vn.length;++sn)if(St[(Gt=y2(vn[sn])).family]&&(Gt.family=St[Gt.family]),Ze.hasOwnProperty(Gt.family)){at=Ze[Gt.family];break}if(!(at=at||Ze[ht]))throw new Error("Could not find a font-family for the rule '"+g6(Gt)+"' and default family '"+ht+"'.");if(at=function(lt,pt){if(pt[lt])return pt[lt];var un=Vv[lt],_t=un<=Vv.normal?-1:1,Qe=p6(pt,DP,un,_t);if(!Qe)throw new Error("Could not find a matching font-stretch value for "+lt);return Qe}(Gt.stretch,at),at=function(lt,pt){if(pt[lt])return pt[lt];for(var un=FP[lt],_t=0;_t<un.length;++_t)if(pt[un[_t]])return pt[un[_t]];throw new Error("Could not find a matching font-style for "+lt)}(Gt.style,at),!(at=function(lt,pt){if(pt[lt])return pt[lt];if(lt===400&&pt[500])return pt[500];if(lt===500&&pt[400])return pt[400];var un=TJ[lt],_t=p6(pt,BP,un,lt<400?-1:1);if(!_t)throw new Error("Could not find a matching font-weight for value "+lt);return _t}(Gt.weight,at)))throw new Error("Failed to resolve a font for the rule '"+g6(Gt)+"'.");return at}(He,$t);this.pdf.setFont(Et.ref.name,Et.ref.style)}else{var ot="";(Fe==="bold"||parseInt(Fe,10)>=700||nt==="bold")&&(ot="bold"),nt==="italic"&&(ot+="italic"),ot.length===0&&(ot="normal");for(var wt="",Lt={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},Ke=0;Ke<Ge.length;Ke++){if(this.pdf.internal.getFont(Ge[Ke],ot,{noFallback:!0,disableWarning:!0})!==void 0){wt=Ge[Ke];break}if(ot==="bolditalic"&&this.pdf.internal.getFont(Ge[Ke],"bold",{noFallback:!0,disableWarning:!0})!==void 0)wt=Ge[Ke],ot="bold";else if(this.pdf.internal.getFont(Ge[Ke],"normal",{noFallback:!0,disableWarning:!0})!==void 0){wt=Ge[Ke],ot="normal";break}}if(wt===""){for(var dt=0;dt<Ge.length;dt++)if(Lt[Ge[dt]]){wt=Lt[Ge[dt]];break}}wt=wt===""?"Times":wt,this.pdf.setFont(wt,ot)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(W){this.ctx.globalCompositeOperation=W}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(W){this.ctx.globalAlpha=W}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(W){this.ctx.lineDashOffset=W,ue.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(W){this.ctx.lineDash=W,ue.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(W){this.ctx.ignoreClearRect=!!W}})};h.prototype.setLineDash=function(E){this.lineDash=E},h.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},h.prototype.fill=function(){k.call(this,"fill",!1)},h.prototype.stroke=function(){k.call(this,"stroke",!1)},h.prototype.beginPath=function(){this.path=[{type:"begin"}]},h.prototype.moveTo=function(E,H){if(isNaN(E)||isNaN(H))throw ln.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var K=this.ctx.transform.applyToPoint(new o(E,H));this.path.push({type:"mt",x:K.x,y:K.y}),this.ctx.lastPoint=new o(E,H)},h.prototype.closePath=function(){var E=new o(0,0),H=0;for(H=this.path.length-1;H!==-1;H--)if(this.path[H].type==="begin"&&tn(this.path[H+1])==="object"&&typeof this.path[H+1].x=="number"){E=new o(this.path[H+1].x,this.path[H+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new o(E.x,E.y)},h.prototype.lineTo=function(E,H){if(isNaN(E)||isNaN(H))throw ln.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var K=this.ctx.transform.applyToPoint(new o(E,H));this.path.push({type:"lt",x:K.x,y:K.y}),this.ctx.lastPoint=new o(K.x,K.y)},h.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),k.call(this,null,!0)},h.prototype.quadraticCurveTo=function(E,H,K,ee){if(isNaN(K)||isNaN(ee)||isNaN(E)||isNaN(H))throw ln.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var J=this.ctx.transform.applyToPoint(new o(K,ee)),ie=this.ctx.transform.applyToPoint(new o(E,H));this.path.push({type:"qct",x1:ie.x,y1:ie.y,x:J.x,y:J.y}),this.ctx.lastPoint=new o(J.x,J.y)},h.prototype.bezierCurveTo=function(E,H,K,ee,J,ie){if(isNaN(J)||isNaN(ie)||isNaN(E)||isNaN(H)||isNaN(K)||isNaN(ee))throw ln.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var ge=this.ctx.transform.applyToPoint(new o(J,ie)),ye=this.ctx.transform.applyToPoint(new o(E,H)),ve=this.ctx.transform.applyToPoint(new o(K,ee));this.path.push({type:"bct",x1:ye.x,y1:ye.y,x2:ve.x,y2:ve.y,x:ge.x,y:ge.y}),this.ctx.lastPoint=new o(ge.x,ge.y)},h.prototype.arc=function(E,H,K,ee,J,ie){if(isNaN(E)||isNaN(H)||isNaN(K)||isNaN(ee)||isNaN(J))throw ln.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(ie=!!ie,!this.ctx.transform.isIdentity){var ge=this.ctx.transform.applyToPoint(new o(E,H));E=ge.x,H=ge.y;var ye=this.ctx.transform.applyToPoint(new o(0,K)),ve=this.ctx.transform.applyToPoint(new o(0,0));K=Math.sqrt(Math.pow(ye.x-ve.x,2)+Math.pow(ye.y-ve.y,2))}Math.abs(J-ee)>=2*Math.PI&&(ee=0,J=2*Math.PI),this.path.push({type:"arc",x:E,y:H,radius:K,startAngle:ee,endAngle:J,counterclockwise:ie})},h.prototype.arcTo=function(E,H,K,ee,J){throw new Error("arcTo not implemented.")},h.prototype.rect=function(E,H,K,ee){if(isNaN(E)||isNaN(H)||isNaN(K)||isNaN(ee))throw ln.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(E,H),this.lineTo(E+K,H),this.lineTo(E+K,H+ee),this.lineTo(E,H+ee),this.lineTo(E,H),this.lineTo(E+K,H),this.lineTo(E,H)},h.prototype.fillRect=function(E,H,K,ee){if(isNaN(E)||isNaN(H)||isNaN(K)||isNaN(ee))throw ln.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to
538jsPDF.context2d.fillRect");if(!f.call(this)){var J={};this.lineCap!=="butt"&&(J.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(J.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(E,H,K,ee),this.fill(),J.hasOwnProperty("lineCap")&&(this.lineCap=J.lineCap),J.hasOwnProperty("lineJoin")&&(this.lineJoin=J.lineJoin)}},h.prototype.strokeRect=function(E,H,K,ee){if(isNaN(E)||isNaN(H)||isNaN(K)||isNaN(ee))throw ln.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");x.call(this)||(this.beginPath(),this.rect(E,H,K,ee),this.stroke())},h.prototype.clearRect=function(E,H,K,ee){if(isNaN(E)||isNaN(H)||isNaN(K)||isNaN(ee))throw ln.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(E,H,K,ee))},h.prototype.save=function(E){E=typeof E!="boolean"||E;for(var H=this.pdf.internal.getCurrentPageInfo().pageNumber,K=0;K<this.pdf.internal.getNumberOfPages();K++)this.pdf.setPage(K+1),this.pdf.internal.out("q");if(this.pdf.setPage(H),E){this.ctx.fontSize=this.pdf.internal.getFontSize();var ee=new d(this.ctx);this.ctxStack.push(this.ctx),this.ctx=ee}},h.prototype.restore=function(E){E=typeof E!="boolean"||E;for(var H=this.pdf.internal.getCurrentPageInfo().pageNumber,K=0;K<this.pdf.internal.getNumberOfPages();K++)this.pdf.setPage(K+1),this.pdf.internal.out("Q");this.pdf.setPage(H),E&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},h.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var m=function(E){var H,K,ee,J;if(E.isCanvasGradient===!0&&(E=E.getColor()),!E)return{r:0,g:0,b:0,a:0,style:E};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(E))H=0,K=0,ee=0,J=0;else{var ie=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(E);if(ie!==null)H=parseInt(ie[1]),K=parseInt(ie[2]),ee=parseInt(ie[3]),J=1;else if((ie=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(E))!==null)H=parseInt(ie[1]),K=parseInt(ie[2]),ee=parseInt(ie[3]),J=parseFloat(ie[4]);else{if(J=1,typeof E=="string"&&E.charAt(0)!=="#"){var ge=new LP(E);E=ge.ok?ge.toHex():"#000000"}E.length===4?(H=E.substring(1,2),H+=H,K=E.substring(2,3),K+=K,ee=E.substring(3,4),ee+=ee):(H=E.substring(1,3),K=E.substring(3,5),ee=E.substring(5,7)),H=parseInt(H,16),K=parseInt(K,16),ee=parseInt(ee,16)}}return{r:H,g:K,b:ee,a:J,style:E}},f=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},x=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};h.prototype.fillText=function(E,H,K,ee){if(isNaN(H)||isNaN(K)||typeof E!="string")throw ln.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(ee=isNaN(ee)?void 0:ee,!f.call(this)){var J=G(this.ctx.transform.rotation),ie=this.ctx.transform.scaleX;L.call(this,{text:E,x:H,y:K,scale:ie,angle:J,align:this.textAlign,maxWidth:ee})}},h.prototype.strokeText=function(E,H,K,ee){if(isNaN(H)||isNaN(K)||typeof E!="string")throw ln.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!x.call(this)){ee=isNaN(ee)?void 0:ee;var J=G(this.ctx.transform.rotation),ie=this.ctx.transform.scaleX;L.call(this,{text:E,x:H,y:K,scale:ie,renderingMode:"stroke",angle:J,align:this.textAlign,maxWidth:ee})}},h.prototype.measureText=function(E){if(typeof E!="string")throw ln.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var H=this.pdf,K=this.pdf.internal.scaleFactor,ee=H.internal.getFontSize(),J=H.getStringUnitWidth(E)*ee/H.internal.scaleFactor;return new function(ie){var ge=(ie=ie||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return ge}}),this}({width:J*=Math.round(96*K/72*1e4)/1e4})},h.prototype.scale=function(E,H){if(isNaN(E)||isNaN(H))throw ln.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to
538jsPDF.context2d.scale");var K=new l(E,0,0,H,0,0);this.ctx.transform=this.ctx.transform.multiply(K)},h.prototype.rotate=function(E){if(isNaN(E))throw ln.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var H=new l(Math.cos(E),Math.sin(E),-Math.sin(E),Math.cos(E),0,0);this.ctx.transform=this.ctx.transform.multiply(H)},h.prototype.translate=function(E,H){if(isNaN(E)||isNaN(H))throw ln.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var K=new l(1,0,0,1,E,H);this.ctx.transform=this.ctx.transform.multiply(K)},h.prototype.transform=function(E,H,K,ee,J,ie){if(isNaN(E)||isNaN(H)||isNaN(K)||isNaN(ee)||isNaN(J)||isNaN(ie))throw ln.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var ge=new l(E,H,K,ee,J,ie);this.ctx.transform=this.ctx.transform.multiply(ge)},h.prototype.setTransform=function(E,H,K,ee,J,ie){E=isNaN(E)?1:E,H=isNaN(H)?0:H,K=isNaN(K)?0:K,ee=isNaN(ee)?1:ee,J=isNaN(J)?0:J,ie=isNaN(ie)?0:ie,this.ctx.transform=new l(E,H,K,ee,J,ie)};var v=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};h.prototype.drawImage=function(E,H,K,ee,J,ie,ge,ye,ve){var je=this.pdf.getImageProperties(E),Le=1,Te=1,Ue=1,W=1;ee!==void 0&&ye!==void 0&&(Ue=ye/ee,W=ve/J,Le=je.width/ee*ye/ee,Te=je.height/J*ve/J),ie===void 0&&(ie=H,ge=K,H=0,K=0),ee!==void 0&&ye===void 0&&(ye=ee,ve=J),ee===void 0&&ye===void 0&&(ye=je.width,ve=je.height);var we=this.ctx.transform.decompose(),nt=G(we.rotate.shx),Fe=new l,Ne=(Fe=(Fe=(Fe=Fe.multiply(we.translate)).multiply(we.skew)).multiply(we.scale)).applyToRectangle(new a(ie-H*Ue,ge-K*W,ee*Le,J*Te));if(this.autoPaging){for(var st,Ie=b.call(this,Ne),Ge=[],He=0;He<Ie.length;He+=1)Ge.indexOf(Ie[He])===-1&&Ge.push(Ie[He]);_(Ge);for(var $t=Ge[0],Et=Ge[Ge.length-1],ot=$t;ot<Et+1;ot++){this.pdf.setPage(ot);var wt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Lt=ot===1?this.posY+this.margin[0]:this.margin[0],Ke=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],dt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ze=ot===1?0:Ke+(ot-2)*dt;if(this.ctx.clip_path.length!==0){var vn=this.path;st=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=S(st,this.posX+this.margin[3],-Ze+Lt+this.ctx.prevPageLastElemOffset),O.call(this,"fill",!0),this.path=vn}var Pt=JSON.parse(JSON.stringify(Ne));Pt=S([Pt],this.posX+this.margin[3],-Ze+Lt+this.ctx.prevPageLastElemOffset)[0];var ht=(ot>$t||ot<Et)&&v.call(this);ht&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],wt,dt,null).clip().discardPath()),this.pdf.addImage(E,"JPEG",Pt.x,Pt.y,Pt.w,Pt.h,null,null,nt),ht&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(E,"JPEG",Ne.x,Ne.y,Ne.w,Ne.h,null,null,nt)};var b=function(E,H,K){var ee=[];H=H||this.pdf.internal.pageSize.width,K=K||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var J=this.posY+this.ctx.prevPageLastElemOffset;switch(E.type){default:case"mt":case"lt":ee.push(Math.floor((E.y+J)/K)+1);break;case"arc":ee.push(Math.floor((E.y+J-E.radius)/K)+1),ee.push(Math.floor((E.y+J+E.radius)/K)+1);break;case"qct":var ie=Q(this.ctx.lastPoint.x,this.ctx.lastPoint.y,E.x1,E.y1,E.x,E.y);ee.push(Math.floor((ie.y+J)/K)+1),ee.push(Math.floor((ie.y+ie.h+J)/K)+1);break;case"bct":var ge=de(this.ctx.lastPoint.x,this.ctx.lastPoint.y,E.x1,E.y1,E.x2,E.y2,E.x,E.y);ee.push(Math.floor((ge.y+J)/K)+1),ee.push(Math.floor((ge.y+ge.h+J)/K)+1);break;case"rect":ee.push(Math.floor((E.y+J)/K)+1),ee.push(Math.floor((E.y+E.h+J)/K)+1)}for(var ye=0;ye<ee.length;ye+=1)for(;this.pdf.internal.getNumberOfPages()<ee[ye];)y.call(this);return ee},y=function(){var E=this.fillStyle,H=this.strokeStyle,K=this.font,ee=this.lineCap,J=this.lineWidth,ie=this.lineJoin;this.pdf.addPage(),this.fillStyle=E,this.strokeStyle=H,this.font=K,this.lineCap=ee,this.lineWidth=J,this.lineJoin=ie},S=function(E,H,K){for(var ee=0;ee<E.length;ee++)switch(E[ee].type){case"bct":E[ee].x2+=H,E[ee].y2+=K;case"qct":E[ee].x1+=H,E[ee].y1+=K;default:E[ee].x+=H,E[ee].y+=K}return E},_=function(E){return E.sort(function(H,K){return H-K})},k=function(E,H){var K=this.fillStyle,ee=this.strokeStyle,J=this.lineCap,ie=this.lineWidth,ge=Math.abs(ie*this.ctx.transform.scaleX),ye=this.lineJoin;if(this.autoPaging){for(var ve,je,Le=JSON.parse(JSON.stringify(this.path)),Te=JSON.parse(JSON.stringify(this.path)),Ue=[],W=0;W<Te.length;W++)if(Te[W].x!==void 0)for(var we=b.call(this,Te[W]),nt=0;nt<we.length;nt+=1)Ue.indexOf(we[nt])===-1&&Ue.push(we[nt]);for(var Fe=0;Fe<Ue.length;Fe++)for(;this.pdf.internal.getNumberOfPages()<Ue[Fe];)y.call(this);_(Ue);for(var Ne=Ue[0],st=Ue[Ue.length-1],Ie=Ne;Ie<st+1;Ie++){this.pdf.setPage(Ie),this.fillStyle=K,this.strokeStyle=ee,this.lineCap=J,this.lineWidth=ge,this.lineJoin=ye;var Ge=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],He=Ie===1?this.posY+this.margin[0]:this.margin[0],$t=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Et=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],ot=Ie===1?0:$t+(Ie-2)*Et;if(this.ctx.clip_path.length!==0){var wt=this.path;ve=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=S(ve,this.posX+this.margin[3],-ot+He+this.ctx.prevPageLastElemOffset),O.call(this,E,!0),this.path=wt}if(je=JSON.parse(JSON.stringify(Le)),this.path=S(je,this.posX+this.margin[3],-ot+He+this.ctx.prevPageLastElemOffset),H===!1||Ie===0){var Lt=(Ie>Ne||Ie<st)&&v.call(this);Lt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ge,Et,null).clip().discardPath()),O.call(this,E,H),Lt&&this.pdf.restoreGraphicsState()}this.lineWidth=ie}this.path=Le}else this.lineWidth=ge,O.call(this,E,H),this.lineWidth=ie},O=function(E,H){if((E!=="stroke"||H||!x.call(this))&&(E==="stroke"||H||!f.call(this))){for(var K,ee,J=[],ie=this.path,ge=0;ge<ie.length;ge++){var ye=ie[ge];switch(ye.type){case"begin":J.push({begin:!0}
vendor: 43,354 bytes, lines 538-546
538);break;case"close":J.push({close:!0});break;case"mt":J.push({start:ye,deltas:[],abs:[]});break;case"lt":var ve=J.length;if(ie[ge-1]&&!isNaN(ie[ge-1].x)&&(K=[ye.x-ie[ge-1].x,ye.y-ie[ge-1].y],ve>0)){for(;ve>=0;ve--)if(J[ve-1].close!==!0&&J[ve-1].begin!==!0){J[ve-1].deltas.push(K),J[ve-1].abs.push(ye);break}}break;case"bct":K=[ye.x1-ie[ge-1].x,ye.y1-ie[ge-1].y,ye.x2-ie[ge-1].x,ye.y2-ie[ge-1].y,ye.x-ie[ge-1].x,ye.y-ie[ge-1].y],J[J.length-1].deltas.push(K);break;case"qct":var je=ie[ge-1].x+2/3*(ye.x1-ie[ge-1].x),Le=ie[ge-1].y+2/3*(ye.y1-ie[ge-1].y),Te=ye.x+2/3*(ye.x1-ye.x),Ue=ye.y+2/3*(ye.y1-ye.y),W=ye.x,we=ye.y;K=[je-ie[ge-1].x,Le-ie[ge-1].y,Te-ie[ge-1].x,Ue-ie[ge-1].y,W-ie[ge-1].x,we-ie[ge-1].y],J[J.length-1].deltas.push(K);break;case"arc":J.push({deltas:[],abs:[],arc:!0}),Array.isArray(J[J.length-1].abs)&&J[J.length-1].abs.push(ye)}}ee=H?null:E==="stroke"?"stroke":"fill";for(var nt=!1,Fe=0;Fe<J.length;Fe++)if(J[Fe].arc)for(var Ne=J[Fe].abs,st=0;st<Ne.length;st++){var Ie=Ne[st];Ie.type==="arc"?I.call(this,Ie.x,Ie.y,Ie.radius,Ie.startAngle,Ie.endAngle,Ie.counterclockwise,void 0,H,!nt):D.call(this,Ie.x,Ie.y),nt=!0}else if(J[Fe].close===!0)this.pdf.internal.out("h"),nt=!1;else if(J[Fe].begin!==!0){var Ge=J[Fe].start.x,He=J[Fe].start.y;F.call(this,J[Fe].deltas,Ge,He),nt=!0}ee&&R.call(this,ee),H&&z.call(this)}},$=function(E){var H=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,K=H*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return E-K;case"top":return E+H-K;case"hanging":return E+H-2*K;case"middle":return E+H/2-K;default:return E}},U=function(E){return E+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};h.prototype.createLinearGradient=function(){var E=function(){};return E.colorStops=[],E.addColorStop=function(H,K){this.colorStops.push([H,K])},E.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},E.isCanvasGradient=!0,E},h.prototype.createPattern=function(){return this.createLinearGradient()},h.prototype.createRadialGradient=function(){return this.createLinearGradient()};var I=function(E,H,K,ee,J,ie,ge,ye,ve){for(var je=re.call(this,K,ee,J,ie),Le=0;Le<je.length;Le++){var Te=je[Le];Le===0&&(ve?C.call(this,Te.x1+E,Te.y1+H):D.call(this,Te.x1+E,Te.y1+H)),te.call(this,E,H,Te.x2,Te.y2,Te.x3,Te.y3,Te.x4,Te.y4)}ye?z.call(this):R.call(this,ge)},R=function(E){switch(E){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},z=function(){this.pdf.clip(),this.pdf.discardPath()},C=function(E,H){this.pdf.internal.out(n(E)+" "+r(H)+" m")},L=function(E){var H;switch(E.align){case"right":case"end":H="right";break;case"center":H="center";break;default:H="left"}var K,ee,J,ie=this.pdf.getTextDimensions(E.text),ge=$.call(this,E.y),ye=U.call(this,ge)-ie.h,ve=this.ctx.transform.applyToPoint(new o(E.x,ge));if(this.autoPaging){var je=this.ctx.transform.decompose(),Le=new l;Le=(Le=(Le=Le.multiply(je.translate)).multiply(je.skew)).multiply(je.scale);for(var Te=this.ctx.transform.applyToRectangle(new a(E.x,ge,ie.w,ie.h)),Ue=Le.applyToRectangle(new a(E.x,ye,ie.w,ie.h)),W=b.call(this,Ue),we=[],nt=0;nt<W.length;nt+=1)we.indexOf(W[nt])===-1&&we.push(W[nt]);_(we);for(var Fe=we[0],Ne=we[we.length-1],st=Fe;st<Ne+1;st++){this.pdf.setPage(st);var Ie=st===1?this.posY+this.margin[0]:this.margin[0],Ge=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],He=this.pdf.internal.pageSize.height-this.margin[2],$t=He-this.margin[0],Et=this.pdf.internal.pageSize.width-this.margin[1],ot=Et-this.margin[3],wt=st===1?0:Ge+(st-2)*$t;if(this.ctx.clip_path.length!==0){var Lt=this.path;K=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=S(K,this.posX+this.margin[3],-1*wt+Ie),O.call(this,"fill",!0),this.path=Lt}var Ke=S([JSON.parse(JSON.stringify(Ue))],this.posX+this.margin[3],-wt+Ie+this.ctx.prevPageLastElemOffset)[0];E.scale>=.01&&(ee=this.pdf.internal.getFontSize(),this.pdf.setFontSize(ee*E.scale),J=this.lineWidth,this.lineWidth=J*E.scale);var dt=this.autoPaging!=="text";if(dt||Ke.y+Ke.h<=He){if(dt||Ke.y>=Ie&&Ke.x<=Et){var Ze=dt?E.text:this.pdf.splitTextToSize(E.text,E.maxWidth||Et-Ke.x)[0],vn=S([JSON.parse(JSON.stringify(Te))],this.posX+this.margin[3],-wt+Ie+this.ctx.prevPageLastElemOffset)[0],Pt=dt&&(st>Fe||st<Ne)&&v.call(this);Pt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ot,$t,null).clip().discardPath()),this.pdf.text(Ze,vn.x,vn.y,{angle:E.angle,align:H,renderingMode:E.renderingMode}),Pt&&this.pdf.restoreGraphicsState()}}else Ke.y<He&&(this.ctx.prevPageLastElemOffset+=He-Ke.y);E.scale>=.01&&(this.pdf.setFontSize(ee),this.lineWidth=J)}}else E.scale>=.01&&(ee=this.pdf.internal.getFontSize(),this.pdf.setFontSize(ee*E.scale),J=this.lineWidth,this.lineWidth=J*E.scale),this.pdf.text(E.text,ve.x+this.posX,ve.y+this.posY,{angle:E.angle,align:H,renderingMode:E.renderingMode,maxWidth:E.maxWidth}),E.scale>=.01&&(this.pdf.setFontSize(ee),this.lineWidth=J)},D=function(E,H,K,ee){K=K||0,ee=ee||0,this.pdf.internal.out(n(E+K)+" "+r(H+ee)+" l")},F=function(E,H,K){return this.pdf.lines(E,H,K,null,null)},te=function(E,H,K,ee,J,ie,ge,ye){this.pdf.internal.out([t(i(K+E)),t(s(ee+H)),t(i(J+E)),t(s(ie+H)),t(i(ge+E)),t(s(ye+H)),"c"].join(" "))},re=function(E,H,K,ee){for(var J=2*Math.PI,ie=Math.PI/2;H>K;)H-=J;var ge=Math.abs(K-H);ge<J&&ee&&(ge=J-ge);for(var ye=[],ve=ee?-1:1,je=H;ge>1e-5;){var Le=je+ve*Math.min(ge,ie);ye.push(ce.call(this,E,je,Le)),ge-=Math.abs(Le-je),je=Le}return ye},ce=function(E,H,K){var ee=(K-H)/2,J=E*Math.cos(ee),ie=E*Math.sin(ee),ge=J,ye=-ie,ve=ge*ge+ye*ye,je=ve+ge*J+ye*ie,Le=4/3*(Math.sqrt(2*ve*je)-je)/(ge*ie-ye*J),Te=ge-Le*ye,Ue=ye+Le*ge,W=Te,we=-Ue,nt=ee+H,Fe=Math.cos(nt),Ne=Math.sin(nt);return{x1:E*Math.cos(H),y1:E*Math.sin(H),x2:Te*Fe-Ue*Ne,y2:Te*Ne+Ue*Fe,x3:W*Fe-we*Ne,y3:W*Ne+we*Fe,x4:E*Math.cos(K),y4:E*Math.sin(K)}},G=function(E){return 180*E/Math.PI},Q=function(E,H,K,ee,J,ie){var ge=E+.5*(K-E),ye=H+.5*(ee-H),ve=J+.5*(K-J),je=ie+.5*(ee-ie),Le=Math.min(E,J,ge,ve),Te=Math.max(E,J,ge,ve),Ue=Math.min(H,ie,ye,je),W=Math.max(H,ie,ye,je);return new a(Le,Ue,Te-Le,W-Ue)},de=function(E,H,K,ee,J,ie,ge,ye){var ve,je,Le,Te,Ue,W,we,nt,Fe,Ne,st,Ie,Ge,He,$t=K-E,Et=ee-H,ot=J-K,wt=ie-ee,Lt=ge-J,Ke=ye-ie;for(je=0;je<41;je++)Fe=(we=(Le=E+(ve=je/40)*$t)+ve*((Ue=K+ve*ot)-Le))+ve*(Ue+ve*(J+ve*Lt-Ue)-we),Ne=(nt=(Te=H+ve*Et)+ve*((W=ee+ve*wt)-Te))+ve*(W+ve*(ie+ve*Ke-W)-nt),je==0?(st=Fe,Ie=Ne,Ge=Fe,He=Ne):(st=Math.min(st,Fe),Ie=Math.min(Ie,Ne),Ge=Math.max(Ge,Fe),He=Math.max(He,Ne));return new a(Math.round(st),Math.round(Ie),Math.round(Ge-st),Math.round(He-Ie))},ue=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var E,H,K=(E=this.ctx.lineDash,H=this.ctx.lineDashOffset,JSON.stringify({lineDash:E,lineDashOffset:H}));this.prevLineDash!==K&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=K)}}})(it.API),function(e){var t=function(o){var a,l,c,d,h,m,f,x,v,b;for(l=[],c=0,d=(o+=a="\0\0\0\0".slice(o.length%4||4)).length;d>c;c+=4)(h=(o.charCodeAt(c)<<24)+(o.charCodeAt(c+1)<<16)+(o.charCodeAt(c+2)<<8)+o.charCodeAt(c+3))!==0?(m=(h=((h=((h=((h=(h-(b=h%85))/85)-(v=h%85))/85)-(x=h%85))/85)-(f=h%85))/85)%85,l.push(m+33,f+33,x+33,v+33,b+33)):l.push(122);return function(y,S){for(var _=S;_>0;_--)y.pop()}(l,a.length),String.fromCharCode.apply(String,l)+"~>"},n=function(o){var a,l,c,d,h,m=String,f="length",x=255,v="charCodeAt",b="slice",y="replace";for(o[b](-2),o=o[b](0,-2)[y](/\s/g,"")[y]("z","!!!!!"),c=[],d=0,h=(o+=a="uuuuu"[b](o[f]%5||5))[f];h>d;d+=5)l=52200625*(o[v](d)-33)+614125*(o[v](d+1)-33)+7225*(o[v](d+2)-33)+85*(o[v](d+3)-33)+(o[v](d+4)-33),c.push(x&l>>24,x&l>>16,x&l>>8,x&l);return function(S,_){for(var k=_;k>0;k--)S.pop()}(c,a[f]),m.fromCharCode.apply(m,c)},r=function(o){return o.split("").map(function(a){return("0"+a.charCodeAt().toString(16)).slice(-2)}).join("")+">"},i=function(o){var a=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((o=o.replace(/\s/g,"")).indexOf(">")!==-1&&(o=o.substr(0,o.indexOf(">"))),o.length%2&&(o+="0"),a.test(o)===!1)return"";for(var l="",c=0;c<o.length;c+=2)l+=String.fromCharCode("0x"+(o[c]+o[c+1]));return l},s=function(o){for(var a=new Uint8Array(o.length),l=o.length;l--;)a[l]=o.charCodeAt(l);return(a=Ev(a)).reduce(function(c,d){return c+String.fromCharCode(d)},"")};e.processDataByFilters=function(o,a){var l=0,c=o||"",d=[];for(typeof(a=a||[])=="string"&&(a=[a]),l=0;l<a.length;l+=1)switch(a[l]){case"ASCII85Decode":case"/ASCII85Decode":c=n(c),d.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":c=t(c),d.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":c=i(c),d.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":c=r(c),d.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":c=s(c),d.push("/FlateDecode");break;default:throw new Error('The filter: "'+a[l]+'" is not implemented')}return{data:c,reverseChain:d.reverse().join(" ")}}}(it.API),function(e){e.loadFile=function(t,n,r){return function(i,s,o){s=s!==!1,o=typeof o=="function"?o:function(){};var a=void 0;try{a=function(l,c,d){var h=new XMLHttpRequest,m=0,f=function(x){var v=x.length,b=[],y=String.fromCharCode;for(m=0;m<v;m+=1)b.push(y(255&x.charCodeAt(m)));return b.join("")};if(h.open("GET",l,!c),h.overrideMimeType("text/plain; charset=x-user-defined"),c===!1&&(h.onload=function(){h.status===200?d(f(this.responseText)):d(void 0)}),h.send(null),c&&h.status===200)return f(h.responseText)}(i,s,o)}catch{}return a}(t,n,r)},e.loadImageFile=e.loadFile}(it.API),function(e){function t(){return(ft.html2canvas?Promise.resolve(ft.html2canvas):Hn(()=>import("./html2canvas.esm-CBrSDip1.js"),[])).catch(function(a){return Promise.reject(new Error("Could not load html2canvas: "+a))}).then(function(a){return a.default?a.default:a})}function n(){return(ft.DOMPurify?Promise.resolve(ft.DOMPurify):Hn(()=>import("./purify.es-BnINGy_Y.js"),[])).catch(function(a){return Promise.reject(new Error("Could not load dompurify: "+a))}).then(function(a){return a.default?a.default:a})}var r=function(a){var l=tn(a);return l==="undefined"?"undefined":l==="string"||a instanceof String?"string":l==="number"||a instanceof Number?"number":l==="function"||a instanceof Function?"function":a&&a.constructor===Array?"array":a&&a.nodeType===1?"element":l==="object"?"object":"unknown"},i=function(a,l){var c=document.createElement(a);for(var d in l.className&&(c.className=l.className),l.innerHTML&&l.dompurify&&(c.innerHTML=l.dompurify.sanitize(l.innerHTML)),l.style)c.style[d]=l.style[d];return c},s=function a(l,c){for(var d=l.nodeType===3?document.createTextNode(l.nodeValue):l.cloneNode(!1),h=l.firstChild;h;h=h.nextSibling)c!==!0&&h.nodeType===1&&h.nodeName==="SCRIPT"||d.appendChild(a(h,c));return l.nodeType===1&&(l.nodeName==="CANVAS"?(d.width=l.width,d.height=l.height,d.getContext("2d").drawImage(l,0,0)):l.nodeName!=="TEXTAREA"&&l.nodeName!=="SELECT"||(d.value=l.value),d.addEventListener("load",function(){d.scrollTop=l.scrollTop,d.scrollLeft=l.scrollLeft},!0)),d},o=function a(l){var c=Object.assign(a.convert(Promise.resolve()),JSON.parse(JSON.stringify(a.template))),d=a.convert(Promise.resolve(),c);return(d=d.setProgress(1,a,1,[a])).set(l)};(o.prototype=Object.create(Promise.prototype)).constructor=o,o.convert=function(a,l){return a.__proto__=l||o.prototype,a},o.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},o.prototype.from=function(a,l){return this.then(function(){switch(l=l||function(c){switch(r(c)){case"string":return"string";case"element":return c.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(a),l){case"string":return this.then(n).then(function(c){return this.set({src:i("div",{innerHTML:a,dompurify:c})})});case"element":return this.set({src:a});case"canvas":return this.set({canvas:a});case"img":return this.set({img:a});default:return this.error("Unknown source type.")}})},o.prototype.to=function(a){switch(a){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},o.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var a={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},l=s(this.prop.src,this.opt.html2canvas.javascriptEnabled);l.tagName==="BODY"&&(a.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=i("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=i("div",{className:"html2pdf__container",style:a}),this.prop.container.appendChild(l),this.prop.container.firstChild.appendChild(i("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},o.prototype.toCanvas=function(){var a=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(a).then(t).then(function(l){var c=Object.assign({},this.opt.html2canvas);return delete c.onrendered,l(this.prop.container,c)}).then(function(l){(this.opt.html2canvas.onrendered||function(){})(l),this.prop.canvas=l,document.body.removeChild(this.prop.overlay)})},o.prototype.toContext2d=function(){var a=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(a).then(t).then(function(l){var c=this.opt.jsPDF,d=this.opt.fontFaces,h=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,m=Object.assign({async:!0,allowTaint:!0,scale:h,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete m.onrendered,c.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,c.context2d.posX=this.opt.x,c.context2d.posY=this.opt.y,c.context2d.margin=this.opt.margin,c.context2d.fontFaces=d,d)for(var f=0;f<d.length;++f){var x=d[f],v=x.src.find(function(b){return b.format==="truetype"});v&&c.addFont(v.url,x.ref.name,x.ref.style)}return m.windowHeight=m.windowHeight||0,m.windowHeight=m.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):m.windowHeight,c.context2d.save(!0),l(this.prop.container,m)}).then(function(l){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(l),this.prop.canvas=l,document.body.removeChild(this.prop.overlay)})},o.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var a=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=a})},o.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},o.prototype.output=function(a,l,c){return(c=c||"pdf").toLowerCase()==="img"||c.toLowerCase()==="image"?this.outputImg(a,l):this.outputPdf(a,l)},o.prototype.outputPdf=function(a,l){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(a,l)})},o.prototype.outputImg=function(a){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(a){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+a+'" is not supported.'}})},o.prototype.save=function(a){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(a?{filename:a}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},o.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},o.prototype.set=function(a){if(r(a)!=="object")return this;var l=Object.keys(a||{}).map(function(c){if(c in o.template.prop)return function(){this.prop[c]=a[c]};switch(c){case"margin":return this.setMargin.bind(this,a.margin);case"jsPDF":return function(){return this.opt.jsPDF=a.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,a.pageSize);default:return function(){this.opt[c]=a[c]}}},this);return this.then(function(){return this.thenList(l)})},o.prototype.get=function(a,l){return this.then(function(){var c=a in o.template.prop?this.prop[a]:this.opt[a];return l?l(c):c})},o.prototype.setMargin=function(a){return this.then(function(){switch(r(a)){case"number":a=[a,a,a,a];case"array":if(a.length===2&&(a=[a[0],a[1],a[0],a[1]]),a.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=a}).then(this.setPageSize)},o.prototype.setPageSize=function(a){function l(c,d){return Math.floor(c*d/72*96)}return this.then(function(){(a=a||it.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(a.inner={width:a.width-this.opt.margin[1]-this.opt.margin[3],height:a.height-this.opt.margin[0]-this.opt.margin[2]},a.inner.px={width:l(a.inner.width,a.k),height:l(a.inner.height,a.k)},a.inner.ratio=a.inner.height/a.inner.width),this.prop.pageSize=a})},o.prototype.setProgress=function(a,l,c,d){return a!=null&&(this.progress.val=a),l!=null&&(this.progress.state=l),c!=null&&(this.progress.n=c),d!=null&&(this.progress.stack=d),this.progress.ratio=this.progress.val/this.progress.state,this},o.prototype.updateProgress=function(a,l,c,d){return this.setProgress(a?this.progress.val+a:null,l||null,c?this.progress.n+c:null,d?this.progress.stack.concat(d):null)},o.prototype.then=function(a,l){var c=this;return this.thenCore(a,l,function(d,h){return c.updateProgress(null,null,1,[d]),Promise.prototype.then.call(this,function(m){return c.updateProgress(null,d),m}).then(d,h).then(function(m){return c.updateProgress(1),m})})},o.prototype.thenCore=function(a,l,c){c=c||Promise.prototype.then;var d=this;a&&(a=a.bind(d)),l&&(l=l.bind(d));var h=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?d:o.convert(Object.assign({},d),Promise.prototype),m=c.call(h,a,l);return o.convert(m,d.__proto__)},o.prototype.thenExternal=function(a,l){return Promise.prototype.then.call(this,a,l)},o.prototype.thenList=function(a){var l=this;return a.forEach(function(c){l=l.thenCore(c)}),l},o.prototype.catch=function(a){a&&(a=a.bind(this));var l=Promise.prototype.catch.call(this,a);return o.convert(l,this)},o.prototype.catchExternal=function(a){return Promise.prototype.catch.call(this,a)},o.prototype.error=function(a){return this.then(function(){throw new Error(a)})},o.prototype.using=o.prototype.set,o.prototype.saveAs=o.prototype.save,o.prototype.export=o.prototype.output,o.prototype.run=o.prototype.then,it.getPageSize=function(a,l,c){if(tn(a)==="object"){var d=a;a=d.orientation,l=d.unit||l,c=d.format||c}l=l||"mm",c=c||"a4",a=(""+(a||"P")).toLowerCase();var h,m=(""+c).toLowerCase(),f={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(l){case"pt":h=1;break;case"mm":h=72/25.4;break;case"cm":h=72/2.54;break;case"in":h=72;break;case"px":h=.75;break;case"pc":case"em":h=12;break;case"ex":h=6;break;default:throw"Invalid unit: "+l}var x,v=0,b=0;if(f.hasOwnProperty(m))v=f[m][1]/h,b=f[m][0]/h;else try{v=c[1],b=c[0]}catch{throw new Error("Invalid format: "+c)}if(a==="p"||a==="portrait")a="p",b>v&&(x=b,b=v,v=x);else{if(a!=="l"&&a!=="landscape")throw"Invalid orientation: "+a;a="l",v>b&&(x=b,b=v,v=x)}return{width:b,height:v,unit:l,k:h,orientation:a}},e.html=function(a,l){(l=l||{}).callback=l.callback||function(){},l.html2canvas=l.html2canvas||{},l.html2canvas.canvas=l.html2canvas.canvas||this.canvas,l.jsPDF=l.jsPDF||this,l.fontFaces=l.fontFaces?l.fontFaces.map(y2):null;var c=new o(l);return l.worker?c:c.from(a).doCallback()}}(it.API),it.API.addJS=function(e){return v6=e,this.internal.events.subscribe("postPutResources",function(){Cm=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Cm+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),x6=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+v6+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Cm!==void 0&&x6!==void 0&&this.internal.out("/Names <</JavaScript "+Cm+" 0 R>>")}),this},function(e){var t;e.events.push(["postPutResources",function(){var n=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var i=n.outline.render().split(/\r\n/),s=0;s<i.length;s++){var o=i[s],a=r.exec(o);if(a!=null){var l=a[1];n.internal.newObjectDeferredBegin(l,!1)}n.internal.write(o)}if(this.outline.createNamedDestinations){var c=this.internal.pages.length,d=[];for(s=0;s<c;s++){var h=n.internal.newObject();d.push(h);var m=n.internal.getPageInfo(s+1);n.internal.write("<< /D["+m.objId+" 0 R /XYZ null null null]>> endobj")}var f=n.internal.newObject();for(n.internal.write("<< /Names [ "),s=0;s<d.length;s++)n.internal.write("(page_"+(s+1)+")"+d[s]+" 0 R");n.internal.write(" ] >>","endobj"),t=n.internal.newObject(),n.internal.write("<< /Dests "+f+" 0 R"),n.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){var n=this;n.outline.root.children.length>0&&(n.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&n.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var n=this;n.outline={createNamedDestinations:!1,root:{children:[]}},n.outline.add=function(r,i,s){var o={title:i,options:s,children:[]};return r==null&&(r=this.root),r.children.push(o),o},n.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=n,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},n.outline.genIds_r=function(r){r.id=n.internal.newObjectDeferred();for(var i=0;i<r.children.length;i++)this.genIds_r(r.children[i])},n.outline.renderRoot=function(r){this.objStart(r),this.line("/Type /Outlines"),r.children.length>0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1]))),this.line("/Count "+this.count_r({count:0},r)),this.objEnd()},n.outline.renderItems=function(r){for(var i=this.ctx.pdf.internal.getVerticalCoordinateString,s=0;s<r.children.length;s++){var o=r.children[s];this.objStart(o),this.line("/Title "+this.makeString(o.title)),this.line("/Parent "+this.makeRef(r)),s>0&&this.line("/Prev "+this.makeRef(r.children[s-1])),s<r.children.length-1&&this.line("/Next "+this.makeRef(r.children[s+1])),o.children.length>0&&(this.line("/First "+this.makeRef(o.children[0])),this.line("/Last "+this.makeRef(o.children[o.children.length-1])));var a=this.count=this.count_r({count:0},o);if(a>0&&this.line("/Count "+a),o.options&&o.options.pageNumber){var l=n.internal.getPageInfo(o.options.pageNumber);this.line("/Dest ["+l.objId+" 0 R /XYZ 0 "+i(0)+" 0]")}this.objEnd()}for(var c=0;c<r.children.length;c++)this.renderItems(r.children[c])},n.outline.line=function(r){this.ctx.val+=r+`\r 539`},n.outline.makeRef=function(r){return r.id+" 0 R"},n.outline.makeString=function(r){return"("+n.internal.pdfEscape(r)+")"},n.outline.objStart=function(r){this.ctx.val+=`\r 540`+r.id+` 0 obj\r 541<<\r 542`},n.outline.objEnd=function(){this.ctx.val+=`>> \r 543endobj\r 544`},n.outline.count_r=function(r,i){for(var s=0;s<i.children.length;s++)r.count++,this.count_r(r,i.children[s]);return r.count}}])}(it.API),function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(n,r,i,s,o,a){var l,c=this.decode.DCT_DECODE,d=null;if(typeof n=="string"||this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n)){switch(n=o||n,n=this.__addimage__.isArrayBuffer(n)?new Uint8Array(n):n,l=function(h){for(var m,f=256*h.charCodeAt(4)+h.charCodeAt(5),x=h.length,v={width:0,height:0,numcomponents:1},b=4;b<x;b+=2){if(b+=f,t.indexOf(h.charCodeAt(b+1))!==-1){m=256*h.charCodeAt(b+5)+h.charCodeAt(b+6),v={width:256*h.charCodeAt(b+7)+h.charCodeAt(b+8),height:m,numcomponents:h.charCodeAt(b+9)};break}f=256*h.charCodeAt(b+2)+h.charCodeAt(b+3)}return v}(n=this.__addimage__.isArrayBufferView(n)?this.__addimage__.arrayBufferToBinaryString(n):n),l.numcomponents){case 1:a=this.color_spaces.DEVICE_GRAY;break;case 4:a=this.color_spaces.DEVICE_CMYK;break;case 3:a=this.color_spaces.DEVICE_RGB}d={data:n,width:l.width,height:l.height,colorSpace:a,bitsPerComponent:8,filter:c,index:r,alias:i}}return d}}(it.API),it.API.processPNG=function(e,t,n,r){if(this.__addimage__.isArrayBuffer(e)&&(e=new Uint8Array(e)),this.__addimage__.isArrayBufferView(e)){var i,s=xJ(e,{checkCrc:!0}),o=s.width,a=s.height,l=s.channels,c=s.palette,d=s.depth;i=c&&l===1?function(I){for(var R=I.width,z=I.height,C=I.data,L=I.palette,D=I.depth,F=!1,te=[],re=[],ce=void 0,G=!1,Q=0,de=0;de<L.length;de++){var ue=dN(L[de],4),E=ue[0],H=ue[1],K=ue[2],ee=ue[3];te.push(E,H,K),ee!=null&&(ee===0?(Q++,re.length<1&&re.push(de)):ee<255&&(G=!0))}if(G||Q>1){F=!0,re=void 0;var J=R*z;ce=new Uint8Array(J);for(var ie=new DataView(C.buffer),ge=0;ge<J;ge++){var ye=v2(ie,ge,D),ve=dN(L[ye],4)[3];ce[ge]=ve}}else Q===0&&(re=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:F?8:void 0,colorBytes:C,alphaBytes:ce,needSMask:F,palette:te,mask:re}}(s):l===2||l===4?function(I){for(var R=I.data,z=I.width,C=I.height,L=I.channels,D=I.depth,F=L===2?"DeviceGray":"DeviceRGB",te=L-1,re=z*C,ce=te,G=re*ce,Q=1*re,de=Math.ceil(G*D/8),ue=Math.ceil(Q*D/8),E=new Uint8Array(de),H=new Uint8Array(ue),K=new DataView(R.buffer),ee=new DataView(E.buffer),J=new DataView(H.buffer),ie=!1,ge=0;ge<re;ge++){for(var ye=ge*L,ve=0;ve<ce;ve++)C6(ee,v2(K,ye+ve,D),ge*ce+ve,D);var je=v2(K,ye+ce,D);je<(1<<D)-1&&(ie=!0),C6(J,je,1*ge,D)}return{colorSpace:F,colorsPerPixel:te,sMaskBitsPerComponent:ie?D:void 0,colorBytes:E,alphaBytes:H,needSMask:ie}}(s):function(I){var R=I.data,z=I.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:z,colorsPerPixel:z==="DeviceGray"?1:3,colorBytes:R instanceof Uint16Array?function(C){for(var L=C.length,D=new Uint8Array(2*L),F=new DataView(D.buffer,D.byteOffset,D.byteLength),te=0;te<L;te++)F.setUint16(2*te,C[te],!1);return D}(R):R,needSMask:!1}}(s);var h,m,f,x=i,v=x.colorSpace,b=x.colorsPerPixel,y=x.sMaskBitsPerComponent,S=x.colorBytes,_=x.alphaBytes,k=x.needSMask,O=x.palette,$=x.mask,U=null;return r!==it.API.image_compression.NONE&&typeof Ev=="function"?(U=function(I){var R;switch(I){case it.API.image_compression.FAST:R=11;break;case it.API.image_compression.MEDIUM:R=13;break;case it.API.image_compression.SLOW:R=14;break;default:R=12}return R}(r),h=this.decode.FLATE_DECODE,m="/Predictor ".concat(U," /Colors ").concat(b," /BitsPerComponent ").concat(d," /Columns ").concat(o),e=_6(S,Math.ceil(o*b*d/8),b,d,r),k&&(f=_6(_,Math.ceil(o*y/8),1,y,r))):(h=void 0,m=void 0,e=S,k&&(f=_)),(this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e))&&(e=this.__addimage__.arrayBufferToBinaryString(e)),(f&&this.__addimage__.isArrayBuffer(f)||this.__addimage__.isArrayBufferView(f))&&(f=this.__addimage__.arrayBufferToBinaryString(f)),{alias:n,data:e,index:t,filter:h,decodeParameters:m,transparency:$,palette:O,sMask:f,predictor:U,width:o,height:a,bitsPerComponent:d,sMaskBitsPerComponent:y,colorSpace:v}}},function(e){e.processGIF89A=function(t,n,r,i){var s=new BJ(t),o=s.width,a=s.height,l=[];s.decodeAndBlitFrameRGBA(0,l);var c={data:l,width:o,height:a},d=new b2(100).encode(c,100);return e.processJPEG.call(this,d,n,r,i)},e.processGIF87A=e.processGIF89A}(it.API),vs.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:i,green:r,blue:n,quad:s}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},vs.prototype.parseBGR=function(){this.pos=this.offset;try{var e="bit"+this.bitPP,t=this.width*this.height*4;this.data=new Uint8Array(t),this[e]()}catch(n){ln.log("bit decode error:"+n)}},vs.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),n=t%4;for(e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,i=0;i<t;i++)for(var s=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+8*i*4,a=0;a<8&&8*i+a<this.width;a++){var l=this.palette[s>>7-a&1];this.data[o+4*a]=l.blue,this.data[o+4*a+1]=l.green,this.data[o+4*a+2]=l.red,this.data[o+4*a+3]=255}n!==0&&(this.pos+=4-n)}},vs.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<e;i++){var s=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+2*i*4,a=s>>4,l=15&s,c=this.palette[a];if(this.data[o]=c.blue,this.data[o+1]=c.green,this.data[o+2]=c.red,this.data[o+3]=255,2*i+1>=this.width)break;c=this.palette[l],this.data[o+4]=c.blue,this.data[o+4+1]=c.green,this.data[o+4+2]=c.red,this.data[o+4+3]=255}t!==0&&(this.pos+=4-t)}},vs.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var i=this.datav.getUint8(this.pos++,!0),s=n*this.width*4+4*r;if(i<this.palette.length){var o=this.palette[i];this.data[s]=o.red,this.data[s+1]=o.green,this.data[s+2]=o.blue,this.data[s+3]=255}else this.data[s]=255,this.data[s+1]=255,this.data[s+2]=255,this.data[s+3]=255}e!==0&&(this.pos+=4-e)}},vs.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(s&t)/t*255|0,a=(s>>5&t)/t*255|0,l=(s>>10&t)/t*255|0,c=s>>15?255:0,d=r*this.width*4+4*i;this.data[d]=l,this.data[d+1]=a,this.data[d+2]=o,this.data[d+3]=c}this.pos+=e}},vs.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),n=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,s=0;s<this.width;s++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(o&t)/t*255|0,l=(o>>5&n)/n*255|0,c=(o>>11)/t*255|0,d=i*this.width*4+4*s;this.data[d]=c,this.data[d+1]=l,this.data[d+2]=a,this.data[d+3]=255}this.pos+=e}},vs.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),o=t*this.width*4+4*n;this.data[o]=s,this.data[o+1]=i,this.data[o+2]=r,this.data[o+3]=255}this.pos+=this.width%4}},vs.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),a=t*this.width*4+4*n;this.data[a]=s,this.data[a+1]=i,this.data[a+2]=r,this.data[a+3]=o}},vs.prototype.getData=function(){return this.data},function(e){e.processBMP=function(t,n,r,i){var s=new vs(t,!1),o=s.width,a=s.height,l={data:s.getData(),width:o,height:a},c=new b2(100).encode(l,100);return e.processJPEG.call(this,c,n,r,i)}}(it.API),L6.prototype.getData=function(){return this.data},function(e){e.processWEBP=function(t,n,r,i){var s=new L6(t),o=s.width,a=s.height,l={data:s.getData(),width:o,height:a},c=new b2(100).encode(l,100);return e.processJPEG.call(this,c,n,r,i)}}(it.API),it.API.processRGBA=function(e,t,n){for(var r=e.data,i=r.length,s=new Uint8Array(i/4*3),o=new Uint8Array(i/4),a=0,l=0,c=0;c<i;c+=4){var d=r[c],h=r[c+1],m=r[c+2],f=r[c+3];s[a++]=d,s[a++]=h,s[a++]=m,o[l++]=f}var x=this.__addimage__.arrayBufferToBinaryString(s);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:x,index:t,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},it.API.setLanguage=function(e){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]!==void 0&&(this.internal.languageSettings.languageCode=e,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},eu=it.API,Em=eu.getCharWidthsArray=function(e,t){var n,r,i=(t=t||{}).font||this.internal.getFont(),s=t.fontSize||this.internal.getFontSize(),o=t.charSpace||this.internal.getCharSpace(),a=t.widths?t.widths:i.metadata.Unicode.widths,l=a.fof?a.fof:1,c=t.kerning?t.kerning:i.metadata.Unicode.kerning,d=c.fof?c.fof:1,h=t.doKerning!==!1,m=0,f=e.length,x=0,v=a[0]||l,b=[];for(n=0;n<f;n++)r=e.charCodeAt(n),typeof i.metadata.widthOfString=="function"?b.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(r))+o*(1e3/s)||0)/1e3):(m=h&&tn(c[r])==="object"&&!isNaN(parseInt(c[r][x],10))?c[r][x]/d:0,b.push((a[r]||v)/l+m)),x=r;return b},b6=eu.getStringUnitWidth=function(e,t){var n=(t=t||{}).fontSize||this.internal.getFontSize(),r=t.font||this.internal.getFont(),i=t.charSpace||this.internal.getCharSpace();return eu.processArabic&&(e=eu.processArabic(e)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(e,n,i)/n:Em.apply(this,arguments).reduce(function(s,o){return s+o},0)},w6=function(e,t,n,r){for(var i=[],s=0,o=e.length,a=0;s!==o&&a+t[s]<n;)a+=t[s],s++;i.push(e.slice(0,s));var l=s;for(a=0;s!==o;)a+t[s]>r&&(i.push(e.slice(l,s)),a=0,l=s),a+=t[s],s++;return l!==s&&i.push(e.slice(l,s)),i},S6=function(e,t,n){n||(n={});var r,i,s,o,a,l,c,d=[],h=[d],m=n.textIndent||0,f=0,x=0,v=e.split(" "),b=Em.apply(this,[" ",n])[0];if(l=n.lineIndent===-1?v[0].length+2:n.lineIndent||0){var y=Array(l).join(" "),S=[];v.map(function(k){(k=k.split(/\s*\n/)).length>1?S=S.concat(k.map(function(O,$){return($&&O.length?` 545`:"")+O})):S.push(k[0])}),v=S,l=b6.apply(this,[y,n])}for(s=0,o=v.length;s<o;s++){var _=0;if(r=v[s],l&&r[0]==` 546`&&(r=r.substr(1),_=1),m+f+(x=(i=Em.apply(this,[r,n])).reduce(function(k,O){return k+O},0))>t||_){if(x>t){for(a=w6.apply(this,[r,i,t-(m+f),t]),d.push(a.shift()),d=[a.pop()];a.length;)h.push([a.shift()]);x=i.slice(r.length-(d[0]?d[0].length:0)).reduce(function(k,O){return k+O},0)}else d=[r];h.push(d),m=x+l,f=b}else d.push(r),m+=f+x,f=b}return c=l?function(k,O){return(O?y:"")+k.join(" ")}:function(k){return k.join(" ")},h.map(c)},eu.splitTextToSize=function(e,t,n){var r,i=(n=n||{}).fontSize||this.internal.getFontSize(),s=(function(d){if(d.widths&&d.kerning)return{widths:d.widths,kerning:d.kerning};var h=this.internal.getFont(d.fontName,d.fontStyle),m="Unicode";return h.metadata[m]?{widths:h.metadata[m].widths||{0:1},kerning:h.metadata[m].kerning||{}}:{font:h.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,n);r=Array.isArray(e)?e:String(e).split(/\r?\n/);var o=1*this.internal.scaleFactor*t/i;s.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/i:0,s.lineIndent=n.lineIndent;var a,l,c=[];for(a=0,l=r.length;a<l;a++)c=c.concat(S6.apply(this,[r[a],o,s]));return c},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="0123456789abcdef",n="klmnopqrstuvwxyz",r={},i={},s=0;s<16;s++)r[n[s]]=t[s],i[t[s]]=n[s];var o=function(m){return"0x"+parseInt(m,10).toString(16)},a=e.__fontmetrics__.compress=function(m){var f,x,v,b,y=["{"];for(var S in m){if(f=m[S],isNaN(parseInt(S,10))?x="'"+S+"'":(S=parseInt(S,10),x=(x=o(S).slice(2)).slice(0,-1)+i[x.slice(-1)]),typeof f=="number")f<0?(v=o(f).slice(3),b="-"):(v=o(f).slice(2),b=""),v=b+v.slice(0,-1)+i[v.slice(-1)];else{if(tn(f)!=="object")throw new Error("Don't know what to do with value type "+tn(f)+".");v=a(f)}y.push(x+v)}return y.push("}"),y.join("")},l=e.__fontmetrics__.uncompress=function(m){if(typeof m!="string")throw new Error("Invalid argument passed to uncompress.");for(var f,x,v,b,y={},S=1,_=y,k=[],O="",$="",U=m.length-1,I=1;I<U;I+=1)(b=m[I])=="'"?f?(v=f.join(""),f=void 0):f=[]:f?f.push(b):b=="{"?(k.push([_,v]),_={},v=void 0):b=="}"?((x=k.pop())[0][x[1]]=_,v=void 0,_=x[0]):b=="-"?S=-1:v===void 0?r.hasOwnProperty(b)?(O+=r[b],v=parseInt(O,16)*S,S=1,O=""):O+=b:r.hasOwnProperty(b)?($+=r[b],_[v]=parseInt($,16)*S,S=1,v=void 0,$=""):$+=b;return y},c={codePages:["WinAnsiEncoding"],WinAnsiEncoding:l("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},d
vendor: 14,960 bytes, line 546
546={Unicode:{Courier:c,"Courier-Bold":c,"Courier-BoldOblique":c,"Courier-Oblique":c,Helvetica:c,"Helvetica-Bold":c,"Helvetica-BoldOblique":c,"Helvetica-Oblique":c,"Times-Roman":c,"Times-Bold":c,"Times-BoldItalic":c,"Times-Italic":c}},h={Unicode:{"Courier-Oblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":l("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":l("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:l("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:l("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":l("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":l("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(
vendor: 25,507 bytes, lines 546-574
546m){var f=m.font,x=h.Unicode[f.postScriptName];x&&(f.metadata.Unicode={},f.metadata.Unicode.widths=x.widths,f.metadata.Unicode.kerning=x.kerning);var v=d.Unicode[f.postScriptName];v&&(f.metadata.Unicode.encoding=v,f.encoding=v.codePages[0])}])}(it.API),function(e){var t=function(n){for(var r=n.length,i=new Uint8Array(r),s=0;s<r;s++)i[s]=n.charCodeAt(s);return i};e.API.events.push(["addFont",function(n){var r=void 0,i=n.font,s=n.instance;if(!i.isStandardFont){if(s===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if(typeof(r=s.existsFileInVFS(i.postScriptName)===!1?s.loadFile(i.postScriptName):s.getFileFromVFS(i.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");(function(o,a){a=/^\x00\x01\x00\x00/.test(a)?t(a):t(i0(a)),o.metadata=e.API.TTFFont.open(a),o.metadata.Unicode=o.metadata.Unicode||{encoding:{},kerning:{},widths:[]},o.metadata.glyIdsUsed=[0]})(i,r)}}])}(it),it.API.addSvgAsImage=function(e,t,n,r,i,s,o,a){if(isNaN(t)||isNaN(n))throw ln.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(i))throw ln.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var l=document.createElement("canvas");l.width=r,l.height=i;var c=l.getContext("2d");c.fillStyle="#fff",c.fillRect(0,0,l.width,l.height);var d={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},h=this;return(ft.canvg?Promise.resolve(ft.canvg):Hn(()=>import("./index.es-D8TBwv1h.js"),[])).catch(function(m){return Promise.reject(new Error("Could not load canvg: "+m))}).then(function(m){return m.default?m.default:m}).then(function(m){return m.fromString(c,e,d)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(m){return m.render(d)}).then(function(){h.addImage(l.toDataURL("image/jpeg",1),t,n,r,i,o,a)})},it.API.putTotalPages=function(e){var t,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),n=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(t,n);return this},it.API.viewerPreferences=function(e,t){var n;e=e||{},t=t||!1;var r,i,s,o={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},a=Object.keys(o),l=[],c=0,d=0,h=0;function m(x,v){var b,y=!1;for(b=0;b<x.length;b+=1)x[b]===v&&(y=!0);return y}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(o)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,e==="reset"||t===!0){var f=a.length;for(h=0;h<f;h+=1)n[a[h]].value=n[a[h]].defaultValue,n[a[h]].explicitSet=!1}if(tn(e)==="object"){for(i in e)if(s=e[i],m(a,i)&&s!==void 0){if(n[i].type==="boolean"&&typeof s=="boolean")n[i].value=s;else if(n[i].type==="name"&&m(n[i].valueSet,s))n[i].value=s;else if(n[i].type==="integer"&&Number.isInteger(s))n[i].value=s;else if(n[i].type==="array"){for(c=0;c<s.length;c+=1)if(r=!0,s[c].length===1&&typeof s[c][0]=="number")l.push(String(s[c]-1));else if(s[c].length>1){for(d=0;d<s[c].length;d+=1)typeof s[c][d]!="number"&&(r=!1);r===!0&&l.push([s[c][0]-1,s[c][1]-1].join(" "))}n[i].value="["+l.join(" ")+"]"}else n[i].value=n[i].defaultValue;n[i].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var x,v=[];for(x in n)n[x].explicitSet===!0&&(n[x].type==="name"?v.push("/"+x+" /"+n[x].value):v.push("/"+x+" "+n[x].value));v.length!==0&&this.internal.write(`/ViewerPreferences 547<< 548`+v.join(` 549`)+` 550>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},function(e){var t=function(){var r='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',i=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),s=unescape(encodeURIComponent(r)),o=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),a=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),l=unescape(encodeURIComponent("</x:xmpmeta>")),c=s.length+o.length+a.length+i.length+l.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+c+" >>"),this.internal.write("stream"),this.internal.write(i+s+o+a+l),this.internal.write("endstream"),this.internal.write("endobj")},n=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};e.addMetadata=function(r,i){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:r,namespaceuri:i||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",n),this.internal.events.subscribe("postPutResources",t)),this}}(it.API),function(e){var t=e.API,n=t.pdfEscape16=function(s,o){for(var a,l=o.metadata.Unicode.widths,c=["","0","00","000","0000"],d=[""],h=0,m=s.length;h<m;++h){if(a=o.metadata.characterToGlyph(s.charCodeAt(h)),o.metadata.glyIdsUsed.push(a),o.metadata.toUnicode[a]=s.charCodeAt(h),l.indexOf(a)==-1&&(l.push(a),l.push([parseInt(o.metadata.widthOfGlyph(a),10)])),a=="0")return d.join("");a=a.toString(16),d.push(c[4-a.length],a)}return d.join("")},r=function(s){var o,a,l,c,d,h,m;for(d=`/CIDInit /ProcSet findresource begin 55112 dict begin 552begincmap 553/CIDSystemInfo << 554 /Registry (Adobe) 555 /Ordering (UCS) 556 /Supplement 0 557>> def 558/CMapName /Adobe-Identity-UCS def 559/CMapType 2 def 5601 begincodespacerange 561<0000><ffff> 562endcodespacerange`,l=[],h=0,m=(a=Object.keys(s).sort(function(f,x){return f-x})).length;h<m;h++)o=a[h],l.length>=100&&(d+=` 563`+l.length+` beginbfchar 564`+l.join(` 565`)+` 566endbfchar`,l=[]),s[o]!==void 0&&s[o]!==null&&typeof s[o].toString=="function"&&(c=("0000"+s[o].toString(16)).slice(-4),o=("0000"+(+o).toString(16)).slice(-4),l.push("<"+o+"><"+c+">"));return l.length&&(d+=` 567`+l.length+` beginbfchar 568`+l.join(` 569`)+` 570endbfchar 571`),d+`endcmap 572CMapName currentdict /CMap defineresource pop 573end 574end`};t.events.push(["putFont",function(s){(function(o){var a=o.font,l=o.out,c=o.newObject,d=o.putStream;if(a.metadata instanceof e.API.TTFFont&&a.encoding==="Identity-H"){for(var h=a.metadata.Unicode.widths,m=a.metadata.subset.encode(a.metadata.glyIdsUsed,1),f="",x=0;x<m.length;x++)f+=String.fromCharCode(m[x]);var v=c();d({data:f,addLength1:!0,objectId:v}),l("endobj");var b=c();d({data:r(a.metadata.toUnicode),addLength1:!0,objectId:b}),l("endobj");var y=c();l("<<"),l("/Type /FontDescriptor"),l("/FontName /"+ru(a.fontName)),l("/FontFile2 "+v+" 0 R"),l("/FontBBox "+e.API.PDFObject.convert(a.metadata.bbox)),l("/Flags "+a.metadata.flags),l("/StemV "+a.metadata.stemV),l("/ItalicAngle "+a.metadata.italicAngle),l("/Ascent "+a.metadata.ascender),l("/Descent "+a.metadata.decender),l("/CapHeight "+a.metadata.capHeight),l(">>"),l("endobj");var S=c();l("<<"),l("/Type /Font"),l("/BaseFont /"+ru(a.fontName)),l("/FontDescriptor "+y+" 0 R"),l("/W "+e.API.PDFObject.convert(h)),l("/CIDToGIDMap /Identity"),l("/DW 1000"),l("/Subtype /CIDFontType2"),l("/CIDSystemInfo"),l("<<"),l("/Supplement 0"),l("/Registry (Adobe)"),l("/Ordering ("+a.encoding+")"),l(">>"),l(">>"),l("endobj"),a.objectNumber=c(),l("<<"),l("/Type /Font"),l("/Subtype /Type0"),l("/ToUnicode "+b+" 0 R"),l("/BaseFont /"+ru(a.fontName)),l("/Encoding /"+a.encoding),l("/DescendantFonts ["+S+" 0 R]"),l(">>"),l("endobj"),a.isAlreadyPutted=!0}})(s)}]),t.events.push(["putFont",function(s){(function(o){var a=o.font,l=o.out,c=o.newObject,d=o.putStream;if(a.metadata instanceof e.API.TTFFont&&a.encoding==="WinAnsiEncoding"){for(var h=a.metadata.rawData,m="",f=0;f<h.length;f++)m+=String.fromCharCode(h[f]);var x=c();d({data:m,addLength1:!0,objectId:x}),l("endobj");var v=c();d({data:r(a.metadata.toUnicode),addLength1:!0,objectId:v}),l("endobj");var b=c();l("<<"),l("/Descent "+a.metadata.decender),l("/CapHeight "+a.metadata.capHeight),l("/StemV "+a.metadata.stemV),l("/Type /FontDescriptor"),l("/FontFile2 "+x+" 0 R"),l("/Flags 96"),l("/FontBBox "+e.API.PDFObject.convert(a.metadata.bbox)),l("/FontName /"+ru(a.fontName)),l("/ItalicAngle "+a.metadata.italicAngle),l("/Ascent "+a.metadata.ascender),l(">>"),l("endobj"),a.objectNumber=c();for(var y=0;y<a.metadata.hmtx.widths.length;y++)a.metadata.hmtx.widths[y]=parseInt(a.metadata.hmtx.widths[y]*(1e3/a.metadata.head.unitsPerEm));l("<</Subtype/TrueType/Type/Font/ToUnicode "+v+" 0 R/BaseFont/"+ru(a.fontName)+"/FontDescriptor "+b+" 0 R/Encoding/"+a.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(a.metadata.hmtx.widths)+">>"),l("endobj"),a.isAlreadyPutted=!0}})(s)}]);var i=function(s){var o,a=s.text||"",l=s.x,c=s.y,d=s.options||{},h=s.mutex||{},m=h.pdfEscape,f=h.activeFontKey,x=h.fonts,v=f,b="",y=0,S="",_=x[v].encoding;if(x[v].encoding!=="Identity-H")return{text:a,x:l,y:c,options:d,mutex:h};for(S=a,v=f,Array.isArray(a)&&(S=a[0]),y=0;y<S.length;y+=1)x[v].metadata.hasOwnProperty("cmap")&&(o=x[v].metadata.cmap.unicode.codeMap[S[y].charCodeAt(0)]),o||S[y].charCodeAt(0)<256&&x[v].metadata.hasOwnProperty("Unicode")?b+=S[y]:b+="";var k="";return parseInt(v.slice(1))<14||_==="WinAnsiEncoding"?k=m(b,v).split("").map(function(O){return O.charCodeAt(0).toString(16)}).join(""):_==="Identity-H"&&(k=n(b,x[v])),h.isHex=!0,{text:k,x:l,y:c,options:d,mutex:h}};t.events.push(["postProcessText",function(s){var o=s.text||"",a=[],l={text:o,x:s.x,y:s.y,options:s.options,mutex:s.mutex};if(Array.isArray(o)){var c=0;for(c=0;c<o.length;c+=1)Array.isArray(o[c])&&o[c].length===3?a.push([i(Object.assign({},l,{text:o[c][0]})).text,o[c][1],o[c][2]]):a.push(i(Object.assign({},l,{text:o[c]})).text);s.text=a}else s.text=i(Object.assign({},l,{text:o})).text}])}(it),function(e){var t=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(n){return t.call(this),this.internal.vFS[n]!==void 0},e.addFileToVFS=function(n,r){return t.call(this),this.internal.vFS[n]=r,this},e.getFileFromVFS=function(n){return t.call(this),this.internal.vFS[n]!==void 0?this.internal.vFS[n]:null}}(it.API),function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(r){var i,s,o,a,l,c,d,h=t,m=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],f=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],x={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},v={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},b=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","â¹","âº","â¹","â ","â","â ","â½","â¾","â½","â","â","â","â¤","â¥","â¤","â©","âª","â©","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","﹤","ï¹¥","﹤"],y=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),S=!1,_=0;this.__bidiEngine__={};var k=function(C){var L=C.charCodeAt(),D=L>>8,F=v[D];return F!==void 0?h[256*F+(255&L)]:D===252||D===253?"AL":y.test(D)?"L":D===8?"R":"N"},O=function(C){for(var L,D=0;D<C.length;D++){if((L=k(C.charAt(D)))==="L")return!1;if(L==="R")return!0}return!1},$=function(C,L,D,F){var te,re,ce,G,Q=L[F];switch(Q){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":S=!1;break;case"N":case"AN":break;case"EN":S&&(Q="AN");break;case"AL":S=!0,Q="R";break;case"WS":case"BN":Q="N";break;case"CS":F<1||F+1>=L.length||(te=D[F-1])!=="EN"&&te!=="AN"||(re=L[F+1])!=="EN"&&re!=="AN"?Q="N":S&&(re="AN"),Q=re===te?re:"N";break;case"ES":Q=(te=F>0?D[F-1]:"B")==="EN"&&F+1<L.length&&L[F+1]==="EN"?"EN":"N";break;case"ET":if(F>0&&D[F-1]==="EN"){Q="EN";break}if(S){Q="N";break}for(ce=F+1,G=L.length;ce<G&&L[ce]==="ET";)ce++;Q=ce<G&&L[ce]==="EN"?"EN":"N";break;case"NSM":if(o&&!a){for(G=L.length,ce=F+1;ce<G&&L[ce]==="NSM";)ce++;if(ce<G){var de=C[F],ue=de>=1425&&de<=2303||de===64286;if(te=L[ce],ue&&(te==="R"||te==="AL")){Q="R";break}}}Q=F<1||(te=L[F-1])==="B"?"N":D[F-1];break;case"B":S=!1,i=!0,Q=_;break;case"S":s=!0,Q="N"}return Q},U=function(C,L,D){var F=C.split("");return D&&I(F,D,{hiLevel:_}),F.reverse(),L&&L.reverse(),F.join("")},I=function(C,L,D){var F,te,re,ce,G,Q=-1,de=C.length,ue=0,E=[],H=_?f:m,K=[];for(S=!1,i=!1,s=!1,te=0;te<de;te++)K[te]=k(C[te]);for(re=0;re<de;re++){if(G=ue,E[re]=$(C,K,E,re),F=240&(ue=H[G][x[E[re]]]),ue&=15,L[re]=ce=H[ue][5],F>0)if(F===16){for(te=Q;te<re;te++)L[te]=1;Q=-1}else Q=-1;if(H[ue][6])Q===-1&&(Q=re);else if(Q>-1){for(te=Q;te<re;te++)L[te]=ce;Q=-1}K[re]==="B"&&(L[re]=0),D.hiLevel|=ce}s&&function(ee,J,ie){for(var ge=0;ge<ie;ge++)if(ee[ge]==="S"){J[ge]=_;for(var ye=ge-1;ye>=0&&ee[ye]==="WS";ye--)J[ye]=_}}(K,L,de)},R=function(C,L,D,F,te){if(!(te.hiLevel<C)){if(C===1&&_===1&&!i)return L.reverse(),void(D&&D.reverse());for(var re,ce,G,Q,de=L.length,ue=0;ue<de;){if(F[ue]>=C){for(G=ue+1;G<de&&F[G]>=C;)G++;for(Q=ue,ce=G-1;Q<ce;Q++,ce--)re=L[Q],L[Q]=L[ce],L[ce]=re,D&&(re=D[Q],D[Q]=D[ce],D[ce]=re);ue=G}ue++}}},z=function(C,L,D){var F=C.split(""),te={hiLevel:_};return D||(D=[]),I(F,D,te),function(re,ce,G){if(G.hiLevel!==0&&d)for(var Q,de=0;de<re.length;de++)ce[de]===1&&(Q=b.indexOf(re[de]))>=0&&(re[de]=b[Q+1])}(F,D,te),R(2,F,L,D,te),R(1,F,L,D,te),F.join("")};return this.__bidiEngine__.doBidiReorder=function(C,L,D){if(function(te,re){if(re)for(var ce=0;ce<te.length;ce++)re[ce]=ce;a===void 0&&(a=O(te)),c===void 0&&(c=O(te))}(C,L),o||!l||c)if(o&&l&&a^c)_=a?1:0,C=U(C,L,D);else if(!o&&l&&c)_=a?1:0,C=z(C,L,D),C=U(C,L);else if(!o||a||l||c){if(o&&!l&&a^c)C=U(C,L),a?(_=0,C=z(C,L,D)):(_=1,C=z(C,L,D),C=U(C,L));else if(o&&a&&!l&&c)_=1,C=z(C,L,D),C=U(C,L);else if(!o&&!l&&a^c){var F=d;a?(_=1,C=z(C,L,D),_=0,d=!1,C=z(C,L,D),d=F):(_=0,C=z(C,L,D),C=U(C,L),_=1,d=!1,C=z(C,L,D),d=F,C=U(C,L))}}else _=0,C=z(C,L,D);else _=a?1:0,C=z(C,L,D);return C},this.__bidiEngine__.setOptions=function(C){C&&(o=C.isInputVisual,l=C.isOutputVisual,a=C.isInputRtl,c=C.isOutputRtl,d=C.isSymmetricSwapping)},this.__bidiEngine__.setOptions(r),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","
574L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],n=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(r){var i=r.text;r.x,r.y;var s=r.options||{};r.mutex,s.lang;var o=[];if(s.isInputVisual=typeof s.isInputVisual!="boolean"||s.isInputVisual,n.setOptions(s),Object.prototype.toString.call(i)==="[object Array]"){var a=0;for(o=[],a=0;a<i.length;a+=1)Object.prototype.toString.call(i[a])==="[object Array]"?o.push([n.doBidiReorder(i[a][0]),i[a][1],i[a][2]]):o.push([n.doBidiReorder(i[a])]);r.text=o}else r.text=n.doBidiReorder(i);n.setOptions({isInputVisual:!0})}])}(it),it.API.TTFFont=function(){function e(t){var n;if(this.rawData=t,n=this.contents=new fl(t),this.contents.pos=4,n.readString(4)==="ttcf")throw new Error("TTCF not supported.");n.pos=0,this.parse(),this.subset=new eee(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new zJ(this.contents),this.head=new VJ(this),this.name=new GJ(this),this.cmap=new UP(this),this.toUnicode={},this.hhea=new $J(this),this.maxp=new KJ(this),this.hmtx=new YJ(this),this.post=new HJ(this),this.os2=new qJ(this),this.loca=new JJ(this),this.glyf=new XJ(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},e.prototype.registerTTF=function(){var t,n,r,i,s;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var o,a,l,c;for(c=[],o=0,a=(l=this.bbox).length;o<a;o++)t=l[o],c.push(Math.round(t*this.scaleFactor));return c}).call(this),this.stemV=0,this.post.exists?(r=255&(i=this.post.italic_angle),32768&(n=i>>16)&&(n=-(1+(65535^n))),this.italicAngle=+(n+"."+r)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(s=this.familyClass)===1||s===2||s===3||s===4||s===5||s===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(t){var n;return((n=this.cmap.unicode)!=null?n.codeMap[t]:void 0)||0},e.prototype.widthOfGlyph=function(t){var n;return n=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*n},e.prototype.widthOfString=function(t,n,r){var i,s,o,a;for(o=0,s=0,a=(t=""+t).length;0<=a?s<a:s>a;s=0<=a?++s:--s)i=t.charCodeAt(s),o+=this.widthOfGlyph(this.characterToGlyph(i))+r*(1e3/n)||0;return o*(n/1e3)},e.prototype.lineHeight=function(t,n){var r;return n==null&&(n=!1),r=n?this.lineGap:0,(this.ascender+r-this.decender)/1e3*t},e}();var Ds,fl=function(){function e(t){this.data=t??[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(t){return this.data[this.pos++]=t},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},e.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},e.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},e.prototype.readString=function(t){var n,r;for(r=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)r[n]=String.fromCharCode(this.readByte());return r.join("")},e.prototype.writeString=function(t){var n,r,i;for(i=[],n=0,r=t.length;0<=r?n<r:n>r;n=0<=r?++n:--n)i.push(this.writeByte(t.charCodeAt(n)));return i},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(t){return this.writeInt16(t)},e.prototype.readLongLong=function(){var t,n,r,i,s,o,a,l;return t=this.readByte(),n=this.readByte(),r=this.readByte(),i=this.readByte(),s=this.readByte(),o=this.readByte(),a=this.readByte(),l=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^n)+1099511627776*(255^r)+4294967296*(255^i)+16777216*(255^s)+65536*(255^o)+256*(255^a)+(255^l)+1):72057594037927940*t+281474976710656*n+1099511627776*r+4294967296*i+16777216*s+65536*o+256*a+l},e.prototype.writeLongLong=function(t){var n,r;return n=Math.floor(t/4294967296),r=4294967295&t,this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(t){return this.writeInt32(t)},e.prototype.read=function(t){var n,r;for(n=[],r=0;0<=t?r<t:r>t;r=0<=t?++r:--r)n.push(this.readByte());return n},e.prototype.write=function(t){var n,r,i,s;for(s=[],r=0,i=t.length;r<i;r++)n=t[r],s.push(this.writeByte(n));return s},e}(),zJ=function(){var e;function t(n){var r,i,s;for(this.scalarType=n.readInt(),this.tableCount=n.readShort(),this.searchRange=n.readShort(),this.entrySelector=n.readShort(),this.rangeShift=n.readShort(),this.tables={},i=0,s=this.tableCount;0<=s?i<s:i>s;i=0<=s?++i:--i)r={tag:n.readString(4),checksum:n.readInt(),offset:n.readInt(),length:n.readInt()},this.tables[r.tag]=r}return t.prototype.encode=function(n){var r,i,s,o,a,l,c,d,h,m,f,x,v;for(v in f=Object.keys(n).length,l=Math.log(2),h=16*Math.floor(Math.log(f)/l),o=Math.floor(h/l),d=16*f-h,(i=new fl).writeInt(this.scalarType),i.writeShort(f),i.writeShort(h),i.writeShort(o),i.writeShort(d),s=16*f,c=i.pos+s,a=null,x=[],n)for(m=n[v],i.writeString(v),i.writeInt(e(m)),i.writeInt(c),i.writeInt(m.length),x=x.concat(m),v==="head"&&(a=c),c+=m.length;c%4;)x.push(0),c++;return i.write(x),r=2981146554-e(i.data),i.pos=a+8,i.writeUInt32(r),i.data},e=function(n){var r,i,s,o;for(n=VP.call(n);n.length%4;)n.push(0);for(s=new fl(n),i=0,r=0,o=n.length;r<o;r=r+=4)i+=s.readUInt32();return 4294967295&i},t}(),UJ={}.hasOwnProperty,go=function(e,t){for(var n in t)UJ.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e};Ds=function(){function e(t){var n;this.file=t,n=this.file.directory.tables[this.tag],this.exists=!!n,n&&(this.offset=n.offset,this.length=n.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e}();var VJ=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return go(e,Ds),e.prototype.tag="head",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},e.prototype.encode=function(t){var n;return(n=new fl).writeInt(this.version),n.writeInt(this.revision),n.writeInt(this.checkSumAdjustment),n.writeInt(this.magicNumber),n.writeShort(this.flags),n.writeShort(this.unitsPerEm),n.writeLongLong(this.created),n.writeLongLong(this.modified),n.writeShort(this.xMin),n.writeShort(this.yMin),n.writeShort(this.xMax),n.writeShort(this.yMax
vendor: 15,756 bytes, lines 574-575
574),n.writeShort(this.macStyle),n.writeShort(this.lowestRecPPEM),n.writeShort(this.fontDirectionHint),n.writeShort(t),n.writeShort(this.glyphDataFormat),n.data},e}(),P6=function(){function e(t,n){var r,i,s,o,a,l,c,d,h,m,f,x,v,b,y,S,_;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=n+t.readInt(),h=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(l=0;l<256;++l)this.codeMap[l]=t.readByte();break;case 4:for(f=t.readUInt16(),m=f/2,t.pos+=6,s=function(){var k,O;for(O=[],l=k=0;0<=m?k<m:k>m;l=0<=m?++k:--k)O.push(t.readUInt16());return O}(),t.pos+=2,v=function(){var k,O;for(O=[],l=k=0;0<=m?k<m:k>m;l=0<=m?++k:--k)O.push(t.readUInt16());return O}(),c=function(){var k,O;for(O=[],l=k=0;0<=m?k<m:k>m;l=0<=m?++k:--k)O.push(t.readUInt16());return O}(),d=function(){var k,O;for(O=[],l=k=0;0<=m?k<m:k>m;l=0<=m?++k:--k)O.push(t.readUInt16());return O}(),i=(this.length-t.pos+this.offset)/2,a=function(){var k,O;for(O=[],l=k=0;0<=i?k<i:k>i;l=0<=i?++k:--k)O.push(t.readUInt16());return O}(),l=y=0,_=s.length;y<_;l=++y)for(b=s[l],r=S=x=v[l];x<=b?S<=b:S>=b;r=x<=b?++S:--S)d[l]===0?o=r+c[l]:(o=a[d[l]/2+(r-x)-(m-l)]||0)!==0&&(o+=c[l]),this.codeMap[r]=65535&o}t.pos=h}return e.encode=function(t,n){var r,i,s,o,a,l,c,d,h,m,f,x,v,b,y,S,_,k,O,$,U,I,R,z,C,L,D,F,te,re,ce,G,Q,de,ue,E,H,K,ee,J,ie,ge,ye,ve,je,Le;switch(F=new fl,o=Object.keys(t).sort(function(Te,Ue){return Te-Ue}),n){case"macroman":for(v=0,b=function(){var Te=[];for(x=0;x<256;++x)Te.push(0);return Te}(),S={0:0},s={},te=0,Q=o.length;te<Q;te++)S[ye=t[i=o[te]]]==null&&(S[ye]=++v),s[i]={old:t[i],new:S[t[i]]},b[i]=S[t[i]];return F.writeUInt16(1),F.writeUInt16(0),F.writeUInt32(12),F.writeUInt16(0),F.writeUInt16(262),F.writeUInt16(0),F.write(b),{charMap:s,subtable:F.data,maxGlyphID:v+1};case"unicode":for(L=[],h=[],_=0,S={},r={},y=c=null,re=0,de=o.length;re<de;re++)S[O=t[i=o[re]]]==null&&(S[O]=++_),r[i]={old:O,new:S[O]},a=S[O]-i,y!=null&&a===c||(y&&h.push(y),L.push(i),c=a),y=i;for(y&&h.push(y),h.push(65535),L.push(65535),z=2*(R=L.length),I=2*Math.pow(Math.log(R)/Math.LN2,2),m=Math.log(I/2)/Math.LN2,U=2*R-I,l=[],$=[],f=[],x=ce=0,ue=L.length;ce<ue;x=++ce){if(C=L[x],d=h[x],C===65535){l.push(0),$.push(0);break}if(C-(D=r[C].new)>=32768)for(l.push(0),$.push(2*(f.length+R-x)),i=G=C;C<=d?G<=d:G>=d;i=C<=d?++G:--G)f.push(r[i].new);else l.push(D-C),$.push(0)}for(F.writeUInt16(3),F.writeUInt16(1),F.writeUInt32(12),F.writeUInt16(4),F.writeUInt16(16+8*R+2*f.length),F.writeUInt16(0),F.writeUInt16(z),F.writeUInt16(I),F.writeUInt16(m),F.writeUInt16(U),ie=0,E=h.length;ie<E;ie++)i=h[ie],F.writeUInt16(i);for(F.writeUInt16(0),ge=0,H=L.length;ge<H;ge++)i=L[ge],F.writeUInt16(i);for(ve=0,K=l.length;ve<K;ve++)a=l[ve],F.writeUInt16(a);for(je=0,ee=$.length;je<ee;je++)k=$[je],F.writeUInt16(k);for(Le=0,J=f.length;Le<J;Le++)v=f[Le],F.writeUInt16(v);return{charMap:r,subtable:F.data,maxGlyphID:_+1}}},e}(),UP=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return go(e,Ds),e.prototype.tag="cmap",e.prototype.parse=function(t){var n,r,i;for(t.pos=this.offset,this.version=t.readUInt16(),i=t.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=i?r<i:r>i;r=0<=i?++r:--r)n=new P6(t,this.offset),this.tables.push(n),n.isUnicode&&this.unicode==null&&(this.unicode=n);return!0},e.encode=function(t,n){var r,i;return n==null&&(n="macroman"),r=P6.encode(t,n),(i=new fl).writeUInt16(0),i.writeUInt16(1),r.table=i.data.concat(r.subtable),r},e}(),$J=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return go(e,Ds),e.prototype.tag="hhea",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},e}(),qJ=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return go(e,Ds),e.prototype.tag="OS/2",e.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var n,r;for(r=[],n=0;n<10;++n)r.push(t.readByte());return r}(),this.charRange=function(){var n,r;for(r=[],n=0;n<4;++n)r.push(t.readInt());return r}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var n,r;for(r=[],n=0;n<2;n=++n)r.push(t.readInt());return r}(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},e}(),HJ=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return go(e,Ds),e.prototype.tag="post",e.prototype.parse=function(t){var n,r,i;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:case 196608:break;case 131072:var s;for(r=t.readUInt16(),this.glyphNameIndex=[],s=0;0<=r?s<r:s>r;s=0<=r?++s:--s)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],i=[];t.pos<this.offset+this.length;)n=t.readByte(),i.push(this.names.push(t.readString(n)));return i;case 151552:return r=t.readUInt16(),this.offsets=t.read(r);case 262144:return this.map=(function(){var o,a,l;for(l=[],s=o=0,a=this.file.maxp.numGlyphs;0<=a?o<a:o>a;s=0<=a?++o:--o)l.push(t.readUInt32());return l}).call(this)}},e}(),WJ=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},GJ=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return go(e,Ds),e.prototype.tag="name",e.prototype.parse=function(t){var n,r,i,s,o,a,l,c,d,h,m;for(t.pos=this.offset,t.readShort(),n=t.readShort(),a=t.readShort(),r=[],s=0;0<=n?s<n:s>n;s=0<=n?++s:--s)r.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+a+t.readShort()});for(l={},s=d=0,h=r.length;d<h;s=++d)i=r[s],t.pos=i.offset,c=t.readString(i.length),o=new WJ(c,i),l[m=i.nameID]==null&&(l[m]=[]),l[i.nameID].push(o);this.strings=l,this.copyright=l[0],this.fontFamily=l[1],this.fontSubfamily=l[2],this.uniqueSubfamily=l[3],this.fontName=l[4],this.version=l[5];try{this.postscriptName=l[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=l[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=l[7],this.manufacturer=l[8],this.designer=l[9],this.description=l[10],this.vendorUrl=l[11],this.designerUrl=l[12],this.license=l[13],this.licenseUrl=l[14],this.preferredFamily=l[15],this.preferredSubfamily=l[17],this.compatibleFull=l[18],this.sampleText=l[19]},e}(),KJ=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return go(e,Ds),e.prototype.tag="maxp",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},e}(),YJ=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return go(e,Ds),e.prototype.tag="hmtx",e.prototype.parse=function(t){var n,r,i,s,o,a,l;for(t.pos=this.offset,this.metrics=[],n=0,a=this.file.hhea.numberOfMetrics;0<=a?n<a:n>a;n=0<=a?++n:--n)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(i=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var c,d;for(d=[],n=c=0;0<=i?c<i:c>i;n=0<=i?++c:--c)d.push(t.readInt16());return d}(),this.widths=(function(){var c,d,h,m;for(m=[],c=0,d=(h=this.metrics).length;c<d;c++)s=h[c],m.push(s.advance);return m}).call(this),r=this.widths[this.widths.length-1],l=[],n=o=0;0<=i?o<i:o>i;n=0<=i?++o:--o)l.push(this.widths.push(r));return l},e.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},e}(),VP=[].slice,XJ=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return go(e,Ds),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(t){var n,r,i,s,o,a,l,c,d,h;return t in this.cache?this.cache[t]:(s=this.file.loca,n=this.file.contents,r=s.indexOf(t),(i=s.lengthOf(t))===0?this.cache[t]=null:(n.pos=this.offset+r,o=(a=new fl(n.read(i))).readShort(),c=a.readShort(),h=a.readShort(),l=a.readShort(),d=a.readShort(),this.cache[t]=o===-1?new QJ(a,c,h,l,d):new ZJ(a,o,c,h,l,d),this.cache[t]))},e.prototype.encode=function(t,n,r){var i,s,o,a,l;for(o=[],s=[],a=0,l=n.length;a<l;a++)i=t[n[a]],s.push(o.length),i&&(o=o.concat(i.encode(r)));return s.push(o.length),{table:o,offsets:s}},e}(),ZJ=function(){function e(t,n,r,i,s,o){this.raw=t,this.numberOfContours=n,this.xMin=r,this.yMin=i,this.xMax=s,this.yMax=o,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),QJ=function(){function e(t,n,r,i,s){var o,a;for(this.raw=t,this.xMin=n,this.yMin=r,this.xMax=i,this.yMax=s,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],o=this.raw;a=o.readShort(),this.glyphOffsets.push(o.pos),this.glyphIDs.push(o.readUInt16()),32&a;)o.pos+=1&a?4:2,128&a?o.pos+=8:64&a?o.pos+=4:8&a&&(o.pos+=2)}return e.prototype.encode=function(){var t,n,r;for(n=new fl(VP.call(this.raw.data)),t=0,r=this.glyphIDs.length;t<r;++t)n.pos=this.glyphOffsets[t];return n.data},e}(),JJ=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return go(e,Ds),e.prototype.tag="loca",e.prototype.parse=function(t){var n,r;return t.pos=this.offset,n=this.file.head.indexToLocFormat,this.offsets=n===0?(function(){var i,s;for(s=[],r=0,i=this.length;r<i;r+=2)s.push(2*t.readUInt16());return s}).call(this):(function(){var i,s;for(s=[],r=0,i=this.length;r<i;r+=4)s.push(t.readUInt32());return s}).call(this)},e.prototype.indexOf=function(t){return this.offsets[t]},e.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},e.prototype.encode=function(t,n){for(var r=new Uint32Array(this.offsets.length),i=0,s=0,o=0;o<r.length;++o)if(r[o]=i,s<n.length&&n[s]==o){++s,r[o]=i;var a=this.offsets[o],l=this.offsets[o+1]-a;l>0&&(i+=l)}for(var c=new Array(4*r.length),d=0;d<r.length;++d)c[4*d+3]=255&r[d],c[4*d+2]=(65280&r[d])>>8,c[4*d+1]=(16711680&r[d])>>16,c[4*d]=(4278190080&r[d])>>24;return c},e}(),eee=function(){function e(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var t,n,r,i,s;for(n in i=this.font.cmap.tables[0].codeMap,t={},s=this.subset)r=s[n],t[n]=i[r];return t},e.prototype.glyphsFor=function(t){var n,r,i,s,o,a,l;for(i={},o=0,a=t.length;o<a;o++)i[s=t[o]]=this.font.glyf.glyphFor(s);for(s in n=[],i)(r=i[s])!=null&&r.compound&&n.push.apply(n,r.glyphIDs);if(n.length>0)for(s in l=this.glyphsFor(n))r=l[s],i[s]=r;return i},e.prototype.encode=function(t,n){var r,i,s,o,a,l,c,d,h,m,f,x,v,b,y;for(i in r=UP.encode(this.generateCmap(),"unicode"),o=this.glyphsFor(t),f={0:0},y=r.charMap)f[(l=y[i]).old]=l.new;for(x in m=r.maxGlyphID,o)x in f||(f[x]=m++);return d=function(S){var _,k;for(_ in k={},S)k[S[_]]=_;return k}(f),h=Object.keys(d).sort(function(S,_){return S-_}),v=function(){var S,_,k;for(k=[],S=0,_=h.length;S<_;S++)a=h[S],k.push(d[a]);return k}(),s=this.font.glyf.encode(o,v,f),c=this.font.loca.encode(s.offsets,v),b={cmap:this.font.cmap.raw(),glyf:s.table,loca:c,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(n)},this.font.os2.exists&&(b["OS/2"]=this.font.os2.raw()),this.font.directory.encode(b)},e}();it.API.PDFObject=function(){var e;function t(){}return e=function(n,r){return(Array(r+1).join("0")+n).slice(-r)},t.convert=function(n){var r,i,s,o;if(Array.isArray(n))return"["+function(){var a,l,c;for(c=[],a=0,l=n.length;a<l;a++)r=n[a],c.push(t.convert(r));return c}().join(" ")+"]";if(typeof n=="string")return"/"+n;if(n!=null&&n.isString)return"("+n+")";if(n instanceof Date)return"(D:"+e(n.getUTCFullYear(),4)+e(n.getUTCMonth(),2)+e(n.getUTCDate(),2)+e(n.getUTCHours(),2)+e(n.getUTCMinutes(),2)+e(n.getUTCSeconds(),2)+"Z)";if({}.toString.call(n)==="[object Object]"){for(i in s=["<<"],n)o=n[i],s.push("/"+i+" "+t.convert(o));return s.push(">>"),s.join(` 575`)}return""+n},t}();const tee=()=>{const e=new it,t=e.internal.pageSize.getWidth();let n=20;e.setFontSize(24),e.setFont("helvetica","bold"),e.text("AI-ROS COMPANY ONE-PAGER",t/2,n,{align:"center"}),n+=15,e.setFontSize(16),e.setFont("helvetica","bold"),e.text("ABOUT AI-ROS",20,n),n+=8,e.setFontSize(11),e.setFont("helvetica","normal");const i=e.splitTextToSize("AIROS is an Egypt-based innovation company building AI and robotics solutions that empower people, protect the planet, and reimagine industries. From smart agriculture to sustainable cities, our mission is simple: develop technology that serves people and the planet.",t-40);e.text(i,20,n),n+=i.length*6+8,e.setFontSize(16),e.setFont("helvetica","bold"),e.text("OUR MISSION",20,n),n+=8,e.setFontSize(11),e.setFont("helvetica","normal");const o=e.splitTextToSize("To design scalable AI and robotic systems that tackle real-world challenges in agriculture, water, climate, education, and public policyâhelping communities adapt, industries evolve, and nature thrive.",t-40);e.text(o,20,n),n+=o.length*6+8,e.setFontSize(16),e.setFont("helvetica","bold"),e.text("OUR VISION",20,n),n+=8,e.setFontSize(11),e.setFont("helvetica","normal");const l=e.splitTextToSize("A world where automation, data, and intelligence enable a greener, more resilient future.",t-40);e.text(l,20,n),n+=l.length*6+8,e.setFontSize(16),e.setFont("helvetica","bold"),e.text("CORE VALUES",20,n),n+=8;const c=[{title:"Innovation",desc:"Pushing boundaries with cutting-edge AI and robotics solutions"},{title:"Excellence",desc:"Delivering exceptional quality in every project we undertake"},{title:"Collaboration",desc:"Working closely with clients to achieve shared success"},{title:"Efficiency",desc:"Optimizing processes to maximize impact and reduce waste"}
575,{title:"Sustainability",desc:"Building solutions that benefit both business and environment"},{title:"Integrity",desc:"Maintaining the highest standards of ethics and transparency"}];e.setFontSize(11),c.forEach(m=>{n>250&&(e.addPage(),n=20),e.setFont("helvetica","bold"),e.text(`⢠${m.title}`,25,n),n+=6,e.setFont("helvetica","normal");const f=e.splitTextToSize(m.desc,t-50);e.text(f,30,n),n+=f.length*6+4}),n+=6,n>220&&(e.addPage(),n=20),e.setFontSize(16),e.setFont("helvetica","bold"),e.text("OUR SOLUTIONS",20,n),n+=8,e.setFontSize(11),e.setFont("helvetica","normal"),["GROW+ â Smart Plant Doctor: AI-based plant disease detection platform","Cozy Earth â Air Quality by Design: VR-powered plant recommendation engine","Soil-Sense â Precision Irrigation: Smart irrigation assistant using IoT sensors","RaG SaaS â AI That Thinks With You: Retrieval-Augmented Generation platform","AI LearnLab â Personalized Education with AI: Intelligent tutoring platform"].forEach(m=>{n>270&&(e.addPage(),n=20);const f=e.splitTextToSize(`⢠${m}`,t-45);e.text(f,25,n),n+=f.length*6+2}),n+=8,n>250&&(e.addPage(),n=20),e.setFontSize(16),e.setFont("helvetica","bold"),e.text("CONTACT US",20,n),n+=8,e.setFontSize(11),e.setFont("helvetica","normal"),e.text("Email: [email protected]",20,n),n+=6,e.text("Phone: +20 1021183564",20,n),n+=6,e.text("Location: Cairo, Egypt",20,n);const h=e.getNumberOfPages();for(let m=1;m<=h;m++)e.setPage(m),e.setFontSize(9),e.setFont("helvetica","normal"),e.text(`© ${new Date().getFullYear()} AI-ROS. All rights reserved.`,t/2,285,{align:"center"});e.save("AI-ROS-Company-One-Pager.pdf")},nee=[yO,W8,jO,CO,q5,iO],ree=()=>{const{t:e}=rn("about"),[t,n]=t1({threshold:.2,freezeOnceVisible:!0}),r=e("values.items",{returnObjects:!0}).map((i,s)=>({...i,icon:nee[s]}));return u.jsx(Yb,{background:"default",className:"bg-gradient-to-b from-background to-muted/20",children:u.jsxs("div",{ref:t,className:"max-w-6xl mx-auto",children:[u.jsxs("div",{className:"grid md:grid-cols-2 gap-8 mb-16",children:[u.jsxs(Gl,{hoverEffect:"glow",animateOnScroll:!0,delay:0,className:"p-8 md:p-10",children:[u.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[u.jsx("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-secondary/20 to-accent/20 flex items-center justify-center",children:u.jsx(W8,{className:"w-6 h-6 text-secondary"})}),u.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-foreground",children:e("mission.title")})]}),u.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed",children:e("mission.description")})]}),u.jsxs(Gl,{hoverEffect:"glow",animateOnScroll:!0,delay:150,className:"p-8 md:p-10",children:[u.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[u.jsx("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-secondary/20 to-accent/20 flex items-center justify-center",children:u.jsx(q5,{className:"w-6 h-6 text-secondary"})}),u.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-foreground",children:e("vision.title")})]}),u.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed",children:e("vision.description")})]})]}),u.jsxs("div",{className:"text-center mb-12",children:[u.jsxs("div",{className:`inline-flex items-center gap-2 px-4 py-2 mb-6 text-sm font-semibold text-secondary bg-secondary/10 rounded-full border border-secondary/30 backdrop-blur-sm transition-all duration-700 ${n?"opacity-100 translate-y-0":"opacity-0 translate-y-4"}`,children:[u.jsx("div",{className:"w-2 h-2 rounded-full bg-secondary animate-glow-pulse"}),e("values.badge")]}),u.jsx("h2",{className:`text-3xl md:text-4xl lg:text-5xl font-bold text-foreground mb-4 transition-all duration-700 delay-100 ${n?"opacity-100 translate-y-0":"opacity-0 translate-y-4"}`,children:e("values.title")}),u.jsx("p",{className:`text-lg text-muted-foreground max-w-2xl mx-auto transition-all duration-700 delay-200 ${n?"opacity-100 translate-y-0":"opacity-0 translate-y-4"}`,children:e("values.subtitle")})]}),u.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-6 mb-12",children:r.map((i,s)=>{const o=i.icon;
575return u.jsxs(Gl,{hoverEffect:"lift",animateOnScroll:!0,delay:s*100,className:"p-6",children:[u.jsxs("div",{className:"relative mb-4",children:[u.jsx("div",{className:"absolute inset-0 bg-secondary/20 blur-2xl rounded-full opacity-0 group-hover:opacity-100 transition-opacity duration-700"}),u.jsx("div",{className:"relative w-14 h-14 rounded-xl bg-gradient-to-br from-card to-muted flex items-center justify-center group-hover:scale-110 transition-transform duration-300",children:u.jsx(o,{className:"w-7 h-7 text-secondary"})})]}),u.jsx("h3",{className:"text-xl font-bold text-foreground mb-2 group-hover:text-secondary transition-colors duration-300",children:i.title}),u.jsx("p",{className:"text-muted-foreground leading-relaxed",children:i.description})]},i.title)})}),u.jsx("div",{className:`text-center transition-all duration-700 delay-500 ${n?"opacity-100 translate-y-0":"opacity-0 translate-y-4"}`,children:u.jsxs(Yt,{size:"lg",onClick:tee,className:"bg-gradient-to-r from-secondary to-accent hover:opacity-90 text-white font-semibold px-8",children:[u.jsx(yx,{className:"w-5 h-5 mr-2"}),e("values.downloadButton")]})})]})})},iee=()=>{const{t:e}=rn("about"),[t,n]=j.useState(null),[r,i]=t1({threshold:.1,freezeOnceVisible:!0}),s=e("timeline.milestones",{returnObjects:!0}),o=a=>{n(t===a?null:a)};return u.jsxs(Yb,{background:"default",className:"py-28 bg-deep-intelligence-950 relative overflow-hidden border-t border-white/5",children:[u.jsx(ta,{opacity:.35,className:"z-0"}),u.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[700px] h-[500px] bg-ai-taupe/8 rounded-full blur-[140px] pointer-events-none z-0"}),u.jsxs("div",{ref:r,className:"max-w-6xl mx-auto relative z-10",children:[u.jsxs("div",{className:"text-center mb-20",children:[u.jsxs("div",{className:`inline-flex items-center gap-2 px-4 py-1.5 mb-5 text-xs sm:text-sm font-semibold text-ai-taupe-100 bg-white/5 rounded-full border border-ai-taupe/30 backdrop-blur-md font-headings shadow-sm transition-all duration-700 ${i?"opacity-100 translate-y-0":"opacity-0 translate-y-4"}`,children:[u.jsx(Di,{size:"xs",variant:"taupe"}),u.jsx(qh,{className:"w-3.5 h-3.5 text-ai-taupe"}),e("timeline.badge")]}),u.jsx("h2",{className:`text-3xl sm:text-5xl lg:text-6xl font-bold font-headings text-white mb-4 tracking-tight transition-all duration-700 delay-100 ${i?"opacity-100 translate-y-0":"opacity-0 translate-y-4"}`,children:e("timeline.title")}),u.jsx("p",{className:`text-base sm:text-lg text-gray-300 font-body max-w-2xl mx-auto leading-relaxed transition-all duration-700 delay-200 ${i?"opacity-100 translate-y-0":"opacity-0 translate-y-4"}`,children:e("timeline.subtitle")}),u.jsx("div",{className:"w-20 h-1 bg-gradient-to-r from-transparent via-ai-taupe to-transparent rounded-full mx-auto mt-4"})]}),u.jsxs("div",{className:"relative",children:[u.jsxs("div",{className:"hidden lg:block",children:[u.jsx("div",{className:"absolute top-24 left-0 right-0 h-1 bg-gradient-to-r from-ai-taupe/10 via-ai-taupe/50 to-ai-taupe/10"}),u.jsx("div",{className:"grid grid-cols-3 gap-8",children:s.map((a,l)=>u.jsxs("div",{className:kt("relative transition-all duration-700 ease-out",i?"opacity-100 translate-y-0 scale-100":"opacity-0 translate-y-12 scale-95",t===a.year&&"mb-48"),style:{transitionDelay:`${l*150}ms`},children:[u.jsxs("div",{className:"flex flex-col items-center mb-6",children:[u.jsx("div",{className:kt("w-16 h-16 rounded-2xl bg-deep-intelligence-900 border-2 border-ai-taupe flex items-center justify-center text-ai-taupe-100 font-headings font-bold text-base shadow-[0_0_25px_rgba(168,148,131,0.25)] relative z-10 transition-all duration-500",t===a.year&&"ring-4 ring-ai-taupe/40 scale-110 bg-ai-taupe text-deep-intelligence-950"),children:a.year.toString().slice(-2)}),u.jsx("div",{className:"mt-3 text-base font-bold font-headings text-white",children:a.year})]}),u.jsxs("button",{onClick:()=>o(a.year),className:kt("w-full h-36 p-6 rounded-2xl bg-deep-intelligence-900/90 backdrop-blur-xl border border-white/10 transition-all duration-500 group flex flex-col items-center justify-center text-center gap-3",t===a.year?"border-ai-taupe shadow-2xl shadow-ai-taupe/20 scale-105":"hover:border-ai-taupe/50 hover:shadow-xl hover:shadow-ai-taupe/15 hover:-translate-y-1"),children:[u.jsx("h3",{className:"font-bold font-headings text-sm sm:text-base text-white group-hover:text-ai-taupe-100 transition-colors leading-snug",children:a.title}),u.jsx(I0,{className:kt("w-5 h-5 text-ai-taupe transition-all duration-500",t===a.year&&"rotate-180 scale-125")})]}),t===a.year&&u.jsxs("div",{className:kt("absolute top-full mt-6 w-[400px] p-6 rounded-2xl bg-deep-intelligence-900 border border-ai-taupe/50 shadow-2xl shadow-ai-taupe/20 z-20 animate-fade-in-down",l===s.length-1?"right-0":"left-0"),children:[u.jsx("div",{className:kt("absolute -top-2.5 w-5 h-5 bg-deep-intelligence-900 border-l border-t border-ai-taupe/50 rotate-45",l===s.length-1?"right-8":"left-8")}),u.jsx("p",{className:"text-gray-300 font-body leading-relaxed text-sm",children:a.description})]})]},a.year))})]}),u.jsx("div",{className:"lg:hidden space-y-6",children:s.map((a,l)=>u.jsxs("div",{className:kt("relative pl-12 transition-all duration-700",i?"opacity-100 translate-x-0":l%2===0?"opacity-0 -translate-x-8":"opacity-0 translate-x-8"),style:{transitionDelay:`${l*100}ms`},children:[u.jsx("div",{className:"absolute left-6 top-0 bottom-0 w-0.5 bg-gradient-to-b from-ai-taupe/60 to-ai-taupe/10"}),u.jsx("div",{className:"absolute left-0 top-0 w-12 h-12 rounded-xl bg-deep-intelligence-900 border-2 border-ai-taupe flex items-center justify-center text-ai-taupe-100 font-headings font-bold shadow-md shadow-ai-taupe/20",children:a.year.toString().slice(-2)}),u.jsxs("button",{onClick:()=>o(a.year),className:"w-full text-left p-6 rounded-2xl bg-deep-intelligence-900/90 backdrop-blur-xl border border-white/10 hover:border-ai-taupe/50 transition-all duration-300 hover:shadow-xl hover:shadow-ai-taupe/15",children:[u.jsxs("div",{className:"flex items-center justify-between mb-3",children:[u.jsx("span",{className:"text-sm font-bold font-headings text-ai-taupe",children:a.year}),u.jsx(I0,{className:kt("w-5 h-5 text-ai-taupe transition-transform duration-300",t===a.year&&"rotate-180")}
575)]}),u.jsx("h3",{className:"font-bold font-headings text-lg text-white mb-2 leading-snug",children:a.title}),t===a.year&&u.jsx("p",{className:"text-gray-300 font-body leading-relaxed mt-4 animate-fade-in text-sm",children:a.description})]})]},a.year))})]})]})]})},see=()=>{const{t:e}=rn("about"),[t,n]=j.useState(0),r=e("faq.items",{returnObjects:!0}),i=s=>{n(t===s?null:s)};return u.jsxs("section",{className:"py-24 bg-gradient-to-b from-background via-muted/30 to-background relative overflow-hidden",children:[u.jsx("div",{className:"absolute inset-0 opacity-5",children:u.jsx("div",{className:"absolute inset-0 animate-gradient-shift",style:{backgroundImage:"radial-gradient(circle at 20% 50%, hsl(var(--primary)) 2px, transparent 2px), radial-gradient(circle at 80% 50%, hsl(var(--secondary)) 2px, transparent 2px)",backgroundSize:"60px 60px",backgroundPosition:"0 0, 30px 30px"}})}),u.jsx("div",{className:"absolute top-1/4 right-10 w-96 h-96 bg-primary/10 rounded-full blur-3xl animate-float"}),u.jsx("div",{className:"absolute bottom-1/4 left-10 w-96 h-96 bg-secondary/10 rounded-full blur-3xl animate-float",style:{animationDelay:"2s"}}),u.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 relative z-10",children:[u.jsxs("div",{className:"text-center mb-16",children:[u.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 mb-6 text-sm font-semibold text-primary bg-primary/10 rounded-full border border-primary/30 backdrop-blur-sm",children:[u.jsx(uO,{className:"w-4 h-4"}),e("faq.badge")]}),u.jsx("h2",{className:"text-4xl sm:text-5xl lg:text-6xl font-bold text-foreground mb-6 bg-gradient-to-r from-foreground via-primary to-foreground bg-clip-text",children:e("faq.title")}),u.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto leading-relaxed",children:e("faq.subtitle")})]}),u.jsx("div",{className:"max-w-4xl mx-auto space-y-4",children:r.map((s,o)=>u.jsxs("div",{className:"group relative rounded-2xl bg-card/80 backdrop-blur-sm border-2 border-border hover:border-primary/50 transition-all duration-300 overflow-hidden",children:[u.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-primary/5 to-secondary/5 opacity-0 group-hover:opacity-100 transition-opacity duration-300"}),u.jsxs("button",{onClick:()=>i(o),className:"w-full px-6 py-6 flex items-center justify-between ltr:text-left rtl:text-right relative z-10",children:[u.jsxs("div",{className:"flex items-start gap-4 flex-1",children:[u.jsxs("div",{className:kt("flex-shrink-0 w-8 h-8 rounded-full flex items-center justify-center font-bold text-sm transition-all duration-300",t===o?"bg-primary text-white":"bg-muted text-muted-foreground group-hover:bg-primary/20 group-hover:text-primary"),children:["Q",o+1]}),u.jsx("span",{className:kt("text-lg font-semibold transition-colors duration-300",t===o?"text-primary":"text-foreground group-hover:text-primary"),children:s.question})]}),u.jsx(I0,{className:kt("w-5 h-5 text-muted-foreground transition-all duration-300 flex-shrink-0 ltr:ml-4 rtl:mr-4 no-flip",t===o&&"rotate-180 text-primary")})]}),u.jsx("div",{className:kt("overflow-hidden transition-all duration-300 relative z-10",t===o?"max-h-96":"max-h-0"),children:u.jsx("div",{className:"px-6 pb-6 pl-[4.5rem]",children:u.jsx("p",{className:"text-muted-foreground leading-relaxed",children:s.answer})})})]},o))}),u.jsxs("div",{className:"mt-16 text-center",children:[u.jsx("p",{className:"text-lg text-muted-foreground mb-6",children:e("faq.contactText")}),u.jsx("a",{href:"/contact",className:"inline-flex items-center gap-2 px-8 py-3 bg-gradient-to-r from-secondary to-accent text-white font-semibold rounded-lg hover:opacity-90 transition-opacity shadow-lg hover:shadow-xl",children:e("faq.contactButton")})]})]})]})},oee=()=>{const{t:e,i18n:t}=rn("about");return u.jsxs("div",{className:"atlas-page min-h-screen relative overflow-hidden bg-[#06054b] text-white font-body",children:[u.jsx(Lc,{}),u.jsx(Jo,{}),u.jsxs("main",{className:"relative z-10",children:[u.jsx(np,{title:e("hero.title"),subtitle:e("hero.subtitle"),badge:e("hero.badge"),routeLabel:t.language==="ar"?"اÙÙ
سار 04 / Ø§ÙØ±Ø¤ÙØ© ÙØ§ÙÙÙÙÙ":"Route 04 / Mission & Architecture"}),u.jsx(ree,{}),u.jsx(iee,{}),u.jsx(see,{})]}),u.jsx(ea,{})]})},aee={Sprout:Hh,Wind:K8,Droplets:V8,Brain:qm,GraduationCap:td,Factory:qm,Building2:qm},lee=()=>{const{t:e}=rn("solutions"),[t,n]=j.useState(!1),[r,i]=j.useState(null),s=j.useRef(null),{data:o,isLoading:a,error:l}=Bg({queryKey:["solutions",zt.language],queryFn:()=>pi.getSolutions()});j.useEffect(()=>{const d=new IntersectionObserver(([h])=>{h.isIntersecting&&n(!0)},{threshold:.1});return s.current&&d.observe(s.current),()=>d.disconnect()},[]);const c=((o==null?void 0:o.data)||[]).map((d,h)=>{const m=aee[d.icon]||Hh,f=[{color:"text-green-500",gradient:"from-green-500/20 to-emerald-500/20"},{color:"text-cyan-500",gradient:"from-cyan-500/20 to-blue-500/20"},{color:"text-blue-500",gradient:"from-blue-500/20 to-indigo-500/20"},{color:"text-purple-500",gradient:"from-purple-500/20 to-pink-500/20"},{color:"text-orange-500",gradient:"from-orange-500/20 to-red-500/20"}],x=f[h%f.length],v=zt.language==="ar",b=v&&d.name_ar?d.name_ar:d.name,y=v&&d.description_ar?d.description_ar:d.description,S=v&&d.features_ar?d.features_ar:d.features||[];return{id:d.id,icon:m,name:b,subtitle:y,description:y,features:S,...x}})||[];return u.jsxs(u.Fragment,{children:[u.jsxs("section",{ref:s,className:"py-32 bg-gradient-to-b from-muted/30 via-background to-muted/30 relative overflow-hidden",children:[u.jsx("div",{className:"absolute inset-0 opacity-[0.03]",children:u.jsx("div",{className:"absolute inset-0 animate-gradient-shift",style:{backgroundImage:"radial-gradient(circle at 20% 50%, hsl(var(--primary)) 2px, transparent 2px), radial-gradient(circle at 80% 50%, hsl(var(--secondary)) 2px, transparent 2px)",backgroundSize:"60px 60px",backgroundPosition:"0 0, 30px 30px"}})}),u.jsx("div",{className:"absolute top-1/4 left-10 w-[500px] h-[500px] bg-primary/10 rounded-full blur-3xl animate-float"}),u.jsx("div",{className:"absolute bottom-1/4 right-10 w-[500px] h-[500px] bg-secondary/10 rounded-full blur-3xl animate-float",style:{animationDelay:"2s"}}),u.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 relative z-10",children:[u.jsxs("div",{className:"text-center mb-24",children:[u.jsxs("div",{className:"inline-flex items-center gap-2 px-5 py-2.5 mb-8 text-sm font-semibold text-primary bg-primary/10 rounded-full border border-primary/30 backdrop-blur-sm shadow-lg",children:[u.jsx(Qi,{className:"w-4 h-4 animate-pulse"}),u.jsx("span",{children:e("list.badge")})]}),u.jsx("h2",{className:"text-5xl sm:text-6xl lg:text-7xl font-bold text-foreground mb-8",children:e("list.title")}),u.jsx("p",{className:"text-xl sm:text-2xl text-muted-foreground max-w-4xl mx-auto leading-relaxed",children:e("list.subtitle")})]}),a&&u.jsx("div",{className:"flex items-center justify-center py-20",children:u.jsx(Rg,{className:"w-12 h-12 animate-spin text-primary"})}),l&&u.jsxs("div",{className:"flex flex-col items-center justify-center py-20 text-center",children:[u.jsx(U8,{className:"w-16 h-16 text-destructive mb-4"}),u.jsx("h3",{className:"text-2xl font-bold text-foreground mb-2",children:"Failed to load solutions"}),u.jsx("p",{className:"text-muted-foreground",children:"Please try again later"})]}),!a&&!l&&c.length>0&&u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:c.map((d,h)=>u.jsxs("div",{onClick:()=>i(d),className:`group relative rounded-3xl bg-card/80 backdrop-blur-md border-2 border-border/50 hover:border-secondary transition-all duration-500 hover:shadow-2xl hover:shadow-secondary/30 overflow-hidden hover:-translate-y-3 cursor-pointer flex flex-col ${t?"opacity-100 translate-y-0 scale-100":"opacity-0 translate-y-20 scale-95"}`,style:{transitionDelay:`${h*100}ms`},children:[u.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-secondary/20 to-accent/20 opacity-0 group-hover:opacity-100 transition-opacity duration-700"}),u.jsx("div",{className:"absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity duration-700",children:u.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-transparent via-white/10 to-transparent -translate-x-full group-hover:translate-x-full transition-transform duration-1000"})}),u.jsx("div",{className:"absolute -top-32 -right-32 w-80 h-80 bg-gradient-to-br from-secondary/20 to-accent/20 rounded-full blur-3xl group-hover:scale-150 group-hover:rotate-180 transition-all duration-1000 opacity-40"}),u.jsx("div",{className:"absolute top-0 left-0 right-0 h-1 bg-gradient-to-r from-secondary to-accent opacity-0 group-hover:opacity-100 transition-opacity duration-500"}),u.jsxs("div",{className:"relative z-10 p-10 flex flex-col items-center text-center flex-1 justify-between min-h-[500px]",children:[u.jsxs("div",{className:"flex flex-col items-center",children:[u.jsxs("div",{className:"relative mb-8",children:[u.jsx("div",{className:"absolute inset-0 bg-secondary opacity-20 blur-3xl rounded-full group-hover:scale-150 transition-transform duration-700"}),u.jsx("div",{className:"relative p-6 rounded-2xl bg-gradient-to-br from-card to-muted border-2 border-secondary/20 group-hover:border-secondary group-hover:scale-110 group-hover:rotate-6 transition-all duration-500 shadow-xl",children:u.jsx(d.icon,{className:"w-20 h-20 text-secondary group-hover:text-accent group-hover:scale-110 transition-all duration-300"})})]}),u.jsx("h3",{className:"text-3xl font-bold text-foreground group-hover:text-secondary transition-colors duration-300 mb-2",children:d.name}),u.jsx("p",{className:"text-base text-muted-foreground group-hover:text-foreground transition-colors duration-300 mb-4",children:d.subtitle})]}),u.jsxs("div",{className:"flex flex-col items-center",children:[u.jsx("div",{className:"h-1 w-16 bg-gradient-to-r from-secondary to-accent rounded-full mb-4 group-hover:w-24 transition-all duration-500"}),u.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground opacity-0 group-hover:opacity-100 transition-all duration-300 group-hover:translate-y-0 translate-y-2",children:[u.jsx(Qi,{className:"w-4 h-4 no-flip"}),u.jsx("span",{className:"font-medium",children:e("list.clickHint")})]})]})]}),u.jsx("div",{className:"absolute bottom-0 right-0 w-24 h-24 bg-gradient-to-tl from-secondary/20 to-accent/20 opacity-0 group-hover:opacity-100 rounded-tl-full transition-opacity duration-500"})]},d.id))}),!a&&!l&&c.length===0&&u.jsxs("div",{className:"flex flex-col items-center justify-center py-20 text-center",children:[u.jsx(Qi,{className:"w-16 h-16 text-muted-foreground mb-4"}),u.jsx("h3",{className:"text-2xl font-bold text-foreground mb-2",children:"No solutions available"}),u.jsx("p",{className:"text-muted-foreground",children:"Check back soon for new solutions"})]})]})]}),r&&u.jsx("div",{className:"fixed inset-0 z-[200] flex items-center justify-center p-4 bg-black/70 backdrop-blur-sm animate-fade-in",onClick:()=>i(null),children:u.jsxs("div",{className:"relative bg-card rounded-3xl max-w-5xl w-full max-h-[90vh] overflow-y-auto shadow-2xl border-2 border-secondary/30 animate-scale-in",onClick:d=>d.stopPropagation(),children:[u.jsx(Yt,{variant:"ghost",size:"sm",onClick:()=>i(null),className:"absolute top-4 right-4 z-10 bg-background/80 hover:bg-background",children:u.jsx(yc,{className:"w-5 h-5"})}),u.jsxs("div",{className:"p-8 md:p-12",children:[u.jsxs("div",{className:"flex items-center gap-6 mb-8",children:[u.jsxs("div",{className:"relative",children:[u.jsx("div",{className:"absolute inset-0 text-secondary opacity-20 blur-2xl rounded-full"}),u.jsx("div",{className:"relative p-4 rounded-2xl bg-gradient-to-br from-card to-muted border-2 border-secondary/20 shadow-lg",children:u.jsx(r.icon,{className:"w-12 h-12 text-secondary"})})]}),u.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground",children:r.name})]}),u.jsxs("div",{className:"mb-8",children:[u.jsxs("h3",{className:"text-lg font-semibold text-secondary mb-4 flex items-center gap-2",children:[u.jsx(Qi,{className:"w-5 h-5"}),e("modal.description")]}),u.jsx("p",{className:"text-muted-foreground leading-relaxed text-lg",children:r.description})]}),r.features&&r.features.length>0&&u.jsxs("div",{className:"p-6 rounded-2xl bg-gradient-to-br from-muted/80 to-muted/40 backdrop-blur-sm border border-secondary/20",children:[u.jsxs("h3",{className:"text-lg font-semibold text-secondary mb-4 flex items-center gap-2",children:[u.jsx(Qi,{className:"w-5 h-5"}),e("modal.keyFeatures")]}),u.jsx("ul",{className:"space-y-3",children:r.features.map((d,h)=>u.jsxs("li",{className:"flex items-start gap-3",children:[u.jsx("div",{className:"w-2 h-2 rounded-full bg-secondary mt-2 flex-shrink-0"}),u.jsx("span",{className:"text-foreground",children:d})]},h))})]})]})]})})]})},T6=()=>{const{slug:e}=lb(),{t,i18n:n}=rn("solutions"),r={title:t("hero.default.title"),subtitle:t("hero.default.subtitle"),badge:t("hero.default.badge"),backgroundImage:"/src/assets/background1.jpg"},i={"smart-agriculture":{title:t("hero.smartAgriculture.title"),subtitle:t("hero.smartAgriculture.subtitle"),backgroundImage:"/src/assets/background1.jpg"},"smart-cities":{title:t("hero.smartCities.title"),subtitle:t("hero.smartCities.subtitle"),badge:t("hero.smartCities.badge"),backgroundImage:"/src/assets/background1.jpg"},"industrial-automation":{title:t("hero.industrialAutomation.title"),subtitle:t("hero.industrialAutomation.subtitle"),badge:t("hero.industrialAutomation.badge"),backgroundImage:"/src/assets/background1.jpg"}},s=e?i[e]:r;return u.jsxs("div",{className:"atlas-page min-h-screen relative overflow-hidden bg-[#06054b] text-white font-body",children:[u.jsx(Lc,{}),u.jsx(Jo,{}),u.jsxs("main",{className:"relative z-10",children:[u.jsx(np,{title:s.title,subtitle:s.subtitle,badge:s.badge,routeLabel:n.language==="ar"?"اÙÙ
سار 02 / Ø§ÙØÙÙ٠اÙÙ
Ø¤Ø³Ø³ÙØ©":"Route 02 / Enterprise Solutions"}),u.jsx(lee,{})]}),u.jsx(ea,{})]})},cee=({categories:e,years:t,tags:n,onFilterChange:r,onSearchChange:i,currentFilters:s})=>{var S;const{t:o}=rn("projects"),[a,l]=j.useState(!1),[c,d]=j.useState(s.search||""),[h,m]=j.useState(!1),f=_=>
575{const k=s.category===_?void 0:_;r({...s,category:k})},x=_=>{const k=s.year===_?void 0:_;r({...s,year:k}),m(!1)},v=_=>{_.preventDefault(),i(c)},b=()=>{d(""),r({})},y=(s.category?1:0)+(s.year?1:0)+(((S=s.tags)==null?void 0:S.length)||0)+(s.search?1:0);return u.jsx("div",{className:"sticky top-16 z-40 bg-background/95 backdrop-blur-md border-b border-border shadow-lg",children:u.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 py-4",children:[u.jsxs("div",{className:"hidden md:flex items-center gap-4",children:[u.jsx("form",{onSubmit:v,className:"w-80",children:u.jsxs("div",{className:"relative",children:[u.jsx(f3,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-muted-foreground"}),u.jsx("input",{type:"text",placeholder:o("filter.search"),value:c,onChange:_=>{d(_.target.value),i(_.target.value)},className:"w-full pl-10 pr-4 py-2.5 rounded-lg bg-muted border border-border focus:border-secondary focus:ring-2 focus:ring-secondary/20 outline-none transition-all"})]})}),u.jsxs("div",{className:"flex items-center gap-2 flex-1",children:[u.jsx("button",{onClick:()=>r({...s,category:void 0}),className:kt("px-5 py-2 rounded-lg font-medium text-sm transition-all whitespace-nowrap",s.category?"bg-muted text-foreground hover:bg-muted/80":"bg-secondary text-white shadow-lg shadow-secondary/30"),children:o("filter.all")}),e.map(_=>u.jsx("button",{onClick:()=>f(_.id),className:kt("px-5 py-2 rounded-lg font-medium text-sm transition-all whitespace-nowrap",s.category===_.id?"bg-secondary text-white shadow-lg shadow-secondary/30":"bg-muted text-foreground hover:bg-muted/80"),children:_.name},_.id))]}),u.jsxs("div",{className:"relative",children:[u.jsxs("button",{onClick:()=>m(!h),className:kt("px-4 py-2 rounded-lg font-medium text-sm transition-all flex items-center gap-2",s.year?"bg-secondary text-white shadow-lg shadow-secondary/30":"bg-muted text-foreground hover:bg-muted/80"),children:[s.year||o("filter.year"),u.jsx(I0,{className:kt("w-4 h-4 transition-transform",h&&"rotate-180")})]}),h&&u.jsx("div",{className:"absolute top-full mt-2 right-0 w-40 bg-card border border-border rounded-lg shadow-xl py-2 animate-fade-in-down",children:t.map(_=>u.jsx("button",{onClick:()=>x(_),className:kt("w-full px-4 py-2 text-left text-sm hover:bg-muted transition-colors",s.year===_&&"bg-secondary/10 text-secondary font-semibold"),children:_},_))})]}),y>0&&u.jsxs(Yt,{variant:"ghost",size:"sm",onClick:b,className:"text-muted-foreground hover:text-foreground",children:[u.jsx(yc,{className:"w-4 h-4 mr-2"}),o("filter.clear")," (",y,")"]})]}),u.jsxs("div",{className:"md:hidden space-y-3",children:[u.jsx("form",{onSubmit:v,children:u.jsxs("div",{className:"relative",children:[u.jsx(f3,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-muted-foreground"}),u.jsx("input",{type:"text",placeholder:o("filter.search"),value:c,onChange:_=>{d(_.target.value),i(_.target.value)},className:"w-full pl-10 pr-4 py-2.5 rounded-lg bg-muted border border-border focus:border-secondary focus:ring-2 focus:ring-secondary/20 outline-none transition-all"})]})}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsxs(Yt,{variant:"outline",onClick:()=>l(!a),className:"flex-1",children:[u.jsx(pO,{className:"w-4 h-4 mr-2"}),o("filter.filters"),y>0&&u.jsx("span",{className:"ml-2 px-2 py-0.5 rounded-full bg-secondary text-white text-xs font-bold",children:y})]}),y>0&&u.jsx(Yt,{variant:"ghost",size:"sm",onClick:b,children:u.jsx(yc,{className:"w-4 h-4"})})]}),a&&u.jsxs("div",{className:"p-4 rounded-lg bg-muted border border-border space-y-4 animate-fade-in",children:[u.jsxs("div",{children:[u.jsx("label",{className:"text-sm font-semibold text-foreground mb-2 block",children:o("filter.category")}),u.jsxs("div",{className:"flex flex-wrap gap-2",children:[u.jsx("button",{onClick:()=>r({...s,category:void 0}),className:kt("px-3 py-1.5 rounded-lg text-sm font-medium transition-all",s.category?"bg-card text-foreground hover:bg-card/80":"bg-secondary text-white"),children:o("filter.all")}),e.map(_=>u.jsx("button",{onClick:()=>f(_.id),className:kt("px-3 py-1.5 rounded-lg text-sm font-medium transition-all",s.category===_.id?"bg-secondary text-white":"bg-card text-foreground hover:bg-card/80"),children:_.name},_.id))]})]}),u.jsxs("div",{children:[u.jsx("label",{className:"text-sm font-semibold text-foreground mb-2 block",children:o("filter.year")}),u.jsx("div",{className:"flex flex-wrap gap-2",children:t.map(_=>u.jsx("button",{onClick:()=>x(_),className:kt("px-3 py-1.5 rounded-lg text-sm font-medium transition-all",s.year===_?"bg-secondary text-white":"bg-card text-foreground hover:bg-card/80"),children:_},_))})]})]})]})]})})},uee=({project:e,delay:t=0})=>{var c;const{t:n,i18n:r}=rn("projects"),i=r.language==="ar",s=i&&e.title_ar?e.title_ar:e.title,o=i&&e.excerpt_ar?e.excerpt_ar:e.excerpt,a=i&&e.location_ar?e.location_ar:e.location,l=((c=e.categories)==null?void 0:c[0])||e.category||"Technology";return u.jsx(Me.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-40px"},transition:{duration:.6,delay:t*.1,ease:[.16,1,.3,1]},whileHover:{y:-10,scale:1.02,transition:{type:"spring",stiffness:400,damping:25}},className:"h-full",children:u.jsx(cr,{to:`/projects/${e.slug}`,className:"h-full block",children:u.jsxs("div",{className:"group h-full overflow-hidden cursor-pointer flex flex-col rounded-3xl bg-[#06054b]/80 backdrop-blur-xl border border-white/10 hover:border-[#c9a959]/60 shadow-xl hover:shadow-[0_25px_60px_rgba(201,169,89,0.2)] transition-colors duration-300",children:[u.jsxs("div",{className:"relative h-60 overflow-hidden flex-shrink-0 bg-[#06054b]",children:[u.jsx("img",{src:e.banner_image_url,alt:s,className:"w-full h-full object-cover group-hover:scale-108 transition-transform duration-700",loading:"lazy"}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-[#06054b] via-[#06054b]/40 to-transparent"}),u.jsxs("div",{className:"absolute top-4 left-4 rtl:left-auto rtl:right-4 px-3.5 py-1.5 rounded-full bg-[#06054b]/90 backdrop-blur-md border border-[#c9a959]/40 text-[#c9a959] text-xs font-semibold font-headings shadow-lg flex items-center gap-1.5",children:[u.jsx(Di,{size:"xs",variant:"taupe"}),l]})]}),u.jsxs("div",{className:"p-7 flex flex-col flex-grow justify-between",children:[u.jsxs("div",{children:[u.jsx("h3",{className:"text-xl font-bold font-headings text-white mb-3 group-hover:text-[#c9a959] transition-colors leading-snug",children:s}),u.jsx("p",{className:"text-gray-300 font-body text-sm leading-relaxed mb-6 line-clamp-3",children:o})]}),u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-4 text-xs font-medium text-gray-400 mb-6 pt-4 border-t border-white/10 font-body",children:[u.jsxs("div",{className:"flex items-center gap-1.5",children:[u.jsx(qh,{className:"w-3.5 h-3.5 text-[#c9a959]"}),u.jsx("span",{children:e.year})]}),a&&u.jsxs("div",{className:"flex items-center gap-1.5",children:[u.jsx(H5,{className:"w-3.5 h-3.5 text-[#c9a959]"}),u.jsx("span",{children:a})]})]}),u.jsxs("div",{className:"flex items-center justify-between text-sm font-headings font-bold text-[#c9a959] group-hover:text-[#dcc277]",children:[u.jsx("span",{children:n("card.viewProject","View Case Study")}),u.jsx(Fi,{className:"w-4 h-4 rtl:rotate-180 transition-transform group-hover:translate-x-1 rtl:group-hover:-translate-x-1"})]})]})]})]})})})},dee=({projects:e,loading:t})=>{const{t:n}=rn("projects");return t?u.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-8",children:[...Array(6)].map((r,i)=>u.jsxs("div",{className:"rounded-3xl bg-card/80 backdrop-blur-sm border border-border animate-pulse overflow-hidden",children:[u.jsx("div",{className:"h-56 bg-muted"}),u.jsxs("div",{className:"p-6 space-y-3",children:[u.jsx("div",{className:"h-6 bg-muted rounded w-3/4"}),u.jsx("div",{className:"h-4 bg-muted rounded w-full"}),u.jsx("div",{className:"h-4 bg-muted rounded w-5/6"}),u.jsx("div",{className:"h-4 bg-muted rounded w-1/2"})]})]},i))}):e.length===0?u.jsxs("div",{className:"text-center py-20",children:[u.jsx($8,{className:"w-20 h-20 text-muted-foreground mx-auto mb-6 opacity-50"}),u.jsx("h3",{className:"text-2xl font-bold text-foreground mb-3",children:n("grid.noResults.title")}),u.jsx("p",{className:"text-muted-foreground max-w-md mx-auto",children:n("grid.noResults.description")})]}):u.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-8",children:e.map((r,i)=>u.jsx(uee,{project:r,delay:i*100},r.slug))})},fee=()=>{const{t:e,i18n:t}=rn("projects"),[n,r]=eC(),[i,s]=j.useState([]),[o,a]=j.useState(!0),[l,c]=j.useState(1),[d,h]=j.useState(!0),[m,f]=j.useState({category:n.get("category")||void 0,year:n.get("year")?parseInt(n.get("year")):void 0,search:n.get("search")||void 0}
575),x=[{id:"smart-agriculture",name:e("categories.smart-agriculture"),count:2},{id:"smart-cities",name:e("categories.smart-cities"),count:1},{id:"sustainability",name:e("categories.sustainability"),count:3},{id:"technology",name:e("categories.technology"),count:3},{id:"education",name:e("categories.education"),count:1}],v=[2025,2024,2023,2022,2021,2020];j.useEffect(()=>{(async()=>{var k,O,$,U,I;try{a(!0);const R=await pi.getProjects({page:l,per_page:12,category:m.category,search:m.search}),z=Array.isArray(R.data)?R.data:((k=R.data)==null?void 0:k.data)||[],C=(D,F)=>{if(Array.isArray(D)&&D.length>0)return D.map(te=>typeof te=="string"?te:(te==null?void 0:te.name)||(te==null?void 0:te.title)||"Technology");if(F){if(typeof F=="string")return[F];if(typeof F=="object")return[(F==null?void 0:F.name)||(F==null?void 0:F.title)||"Technology"]}return["Technology"]},L=z.map(D=>{var F;return{slug:D.slug,title:D.title,title_ar:D.title_ar,excerpt:D.excerpt||"",excerpt_ar:D.excerpt_ar,banner_image_url:D.featured_image||D.banner_image_url||"https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?w=800&h=600&fit=crop",categories:C(D.categories,D.category),category:typeof D.category=="object"?((F=D.category)==null?void 0:F.name)||"Technology":D.category||"Technology",tags:Array.isArray(D.tags)?D.tags.map(te=>typeof te=="string"?te:(te==null?void 0:te.name)||"Innovation"):typeof D.tags=="string"?(()=>{try{return JSON.parse(D.tags)}catch{return[D.tags]}})():[],created_at:D.created_at,year:D.year||(D.completion_date?parseInt(D.completion_date):2024),completion_date:D.completion_date||"2024",client:D.client||"Client",location:D.location||"",location_ar:D.location_ar||"",featured:D.featured||!1}});s(L),h((($=(O=R.data)==null?void 0:O.meta)==null?void 0:$.current_page)<((I=(U=R.data)==null?void 0:U.meta)==null?void 0:I.last_page))}catch(R){console.error("Failed to fetch projects:",R),s([])}finally{a(!1)}})()},[l,m]);const b=_=>{f(_),c(1);const k=new URLSearchParams;_.category&&k.set("category",_.category),_.year&&k.set("year",_.year.toString()),_.search&&k.set("search",_.search),r(k)},y=_=>{f(k=>({...k,search:_})),c(1),_?n.set("search",_):n.delete("search"),r(n)},S=()=>{c(_=>_+1)};return u.jsxs("div",{className:"atlas-page min-h-screen relative overflow-hidden bg-[#06054b] text-white font-body",children:[u.jsx(Lc,{}),u.jsx(Jo,{}),u.jsxs("main",{className:"relative z-10",children:[u.jsx(np,{title:e("hero.title"),subtitle:e("hero.subtitle"),badge:t.language==="ar"?"Ù
ÙØ¸ÙÙ
Ø© اÙÙ
Ø´Ø§Ø±ÙØ¹ ÙØ§ÙتطبÙÙØ§Øª":"AI-ROS Enterprise Case Studies",routeLabel:t.language==="ar"?"اÙÙ
سار 03 / Ø³Ø§Ø¨ÙØ© Ø§ÙØ£Ø¹Ù
اÙ":"Route 03 / Deployed Projects"}),u.jsx(cee,{categories:x,years:v,tags:[],onFilterChange:b,onSearchChange:y,currentFilters:m}),u.jsx("section",{className:"py-16 bg-background",children:u.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:[u.jsx(dee,{projects:i,loading:o}),!o&&d&&i.length>0&&u.jsx("div",{className:"mt-12 text-center",children:u.jsx(Yt,{size:"lg",onClick:S,className:"bg-gradient-to-r from-secondary to-accent hover:opacity-90 text-white font-semibold px-8",children:e("grid.loadMore")})})]})})]}),u.jsx(ea,{})]})},hee=e=>{const t=new it,n=t.internal.pageSize.getWidth();let r=20;const i=document.createElement("div");i.innerHTML=e.description;const s=i.textContent||i.innerText||"";t.setFontSize(20),t.setFont("helvetica","bold");const o=t.splitTextToSize(e.title,n-40);t.text(o,n/2,r,{align:"center"}),r+=o.length*8+10,t.setFontSize(11),t.setFont("helvetica","normal"),e.client&&(t.text(`Client: ${e.client}`,20,r),r+=6),t.text(`Year: ${e.year}`,20,r),r+=6,e.location&&(t.text(`Location: ${e.location}`,20,r),r+=6),t.text(`Categories: ${e.categories.join(", ")}`,20,r),r+=12,t.setFontSize(11),t.setFont("helvetica","normal"),t.splitTextToSize(s,n-40).forEach(c=>{r>270&&(t.addPage(),r=20),t.text(c,20,r),r+=6}),r+=8,r>240&&(t.addPage(),r=20),t.setFontSize(14),t.setFont("helvetica","bold"),t.text("Key Metrics",20,r),r+=8,t.setFontSize(11),t.setFont("helvetica","normal"),Object.entries(e.key_metrics).forEach(([c,d])=>{r>270&&(t.addPage(),r=20),t.text(`⢠${c.replace(/_/g," ")}: ${d}`,25,r),r+=6}),r+=8,r>240&&(t.addPage(),r=20),t.setFontSize(14),t.setFont("helvetica","bold"),t.text("Technology Stack",20,r),r+=8,t.setFontSize(11),t.setFont("helvetica","normal"),e.tech_stack.forEach(c=>{r>270&&(t.addPage(),r=20),t.text(`⢠${c}`,25,r),r+=6});const l=t.getNumberOfPages();for(let c=1;c<=l;
575c++)t.setPage(c),t.setFontSize(9),t.setFont("helvetica","normal"),t.text(`© ${new Date().getFullYear()} AI-ROS. All rights reserved.`,n/2,285,{align:"center"});t.save(`${e.slug}-case-study.pdf`)},pee=()=>{const{t:e,i18n:t}=rn("projects"),{slug:n}=lb(),[r,i]=j.useState(null),[s,o]=j.useState(!0),[a,l]=t1({threshold:.1,freezeOnceVisible:!0}),c=t.language==="ar";if(j.useEffect(()=>{(async()=>{try{o(!0);const v=await pi.getProject(n);if(v.success&&v.data){const b=v.data;i({title:b.title,title_ar:b.title_ar,slug:b.slug,description:b.description,description_ar:b.description_ar,banner_image_url:b.banner_image_url,client:b.client,client_ar:b.client_ar,year:b.year,location:b.location,location_ar:b.location_ar,key_metrics:b.key_metrics.reduce((y,S)=>(y[S.label]=S.value,y),{}),tech_stack:b.tech_stack,categories:b.categories.map(y=>y.name)})}else throw new Error("Failed to fetch project")}catch(v){console.error("Error fetching project:",v),i(mee(e))}finally{o(!1)}})()},[n,e,t.language]),s)return u.jsx("div",{className:"min-h-screen flex items-center justify-center",children:u.jsxs("div",{className:"text-center",children:[u.jsx("div",{className:"w-16 h-16 border-4 border-secondary border-t-transparent rounded-full animate-spin mx-auto mb-4"}),u.jsx("p",{className:"text-muted-foreground",children:e("detail.loading")})]})});if(!r)return u.jsx("div",{className:"min-h-screen flex items-center justify-center",children:u.jsxs("div",{className:"text-center",children:[u.jsx("h2",{className:"text-2xl font-bold text-foreground mb-2",children:e("detail.notFound.title")}),u.jsx("p",{className:"text-muted-foreground",children:e("detail.notFound.description")})]})});const d=c&&r.title_ar?r.title_ar:r.title,h=c&&r.description_ar?r.description_ar:r.description,m=c&&r.client_ar?r.client_ar:r.client,f=c&&r.location_ar?r.location_ar:r.location;return u.jsxs("div",{className:"min-h-screen bg-background",children:[u.jsx(Jo,{}),u.jsxs("main",{children:[u.jsxs("section",{ref:a,className:"relative min-h-screen flex items-center overflow-hidden py-24",children:[u.jsxs("div",{className:"absolute inset-0",children:[u.jsx("img",{src:r.banner_image_url,alt:d,className:"w-full h-full object-cover"}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-[hsl(210,40%,8%)]/80 via-[hsl(210,40%,8%)]/75 to-[hsl(210,40%,8%)]/80"})]}),u.jsx("div",{className:"relative z-40 container mx-auto px-4 sm:px-6 lg:px-8 w-full",children:u.jsxs("div",{className:"max-w-6xl mx-auto",children:[u.jsx(cr,{to:"/projects",className:`inline-block mb-8 transition-all duration-700 ${l?"opacity-100 translate-y-0":"opacity-1 translate-y-4"}`,children:u.jsxs(Yt,{variant:"ghost",className:"text-white/80 hover:text-white hover:bg-white/10 backdrop-blur-sm border border-white/20",children:[u.jsx(B8,{className:"w-4 h-4 mr-2"}),e("detail.backButton")]})}),u.jsx("div",{className:`flex flex-wrap gap-3 mb-8 transition-all duration-700 delay-100 ${l?"opacity-100 translate-y-0":"opacity-1 translate-y-4"}`,children:r.categories.map((x,v)=>u.jsx("span",{className:"px-5 py-2.5 rounded-full bg-gradient-to-r from-secondary/20 to-accent/20 backdrop-blur-md text-secondary text-sm font-bold border border-secondary/30",style:{transitionDelay:`${v*50}ms`},children:x},x))}),u.jsx("h1",{className:`text-4xl sm:text-5xl lg:text-6xl font-black text-white mb-10 leading-[1.1] drop-shadow-2xl transition-all duration-700 delay-200 ${l?"opacity-100 translate-y-0":"opacity-1 translate-y-4"}`,children:d}),u.jsxs("div",{className:`grid grid-cols-2 md:grid-cols-4 gap-4 mb-12 transition-all duration-700 delay-300 ${l?"opacity-100 translate-y-0":"opacity-1 translate-y-4"}`,children:[m&&u.jsxs("div",{className:"p-5 rounded-2xl bg-white/10 backdrop-blur-xl border border-white/20 text-center",children:[u.jsxs("div",{className:"flex items-center justify-center gap-2 mb-2",children:[u.jsx(z8,{className:"w-4 h-4 text-secondary"}),u.jsx("span",{className:"text-xs font-bold text-white/70 uppercase tracking-wider",children:e("detail.metadata.client")})]}),u.jsx("div",{className:"text-white font-bold",children:m})]}),u.jsxs("div",{className:"p-5 rounded-2xl bg-white/10 backdrop-blur-xl border border-white/20 text-center",children:[u.jsxs("div",{className:"flex items-center justify-center gap-2 mb-2",children:[u.jsx(qh,{className:"w-4 h-4 text-secondary"}),u.jsx("span",{className:"text-xs font-bold text-white/70 uppercase tracking-wider",children:e("detail.metadata.year")})]}),u.jsx("div",{className:"text-white font-bold",children:r.year})]}),f&&u.jsxs("div",{className:"p-5 rounded-2xl bg-white/10 backdrop-blur-xl border border-white/20 text-center",children:[u.jsxs("div",{className:"flex items-center justify-center gap-2 mb-2",children:[u.jsx(H5,{className:"w-4 h-4 text-secondary"}),u.jsx("span",{className:"text-xs font-bold text-white/70 uppercase tracking-wider",children:e("detail.metadata.location")})]}),u.jsx("div",{className:"text-white font-bold",children:f})]})]}),u.jsxs("div",{className:`transition-all duration-700 delay-400 ${l?"opacity-100 translate-y-0":"opacity-1 translate-y-4"}`,children:[u.jsxs("div",{className:"text-center mb-8",children:[u.jsxs("div",{className:"inline-flex items-center gap-2 px-5 py-2.5 mb-4 text-sm font-bold text-secondary bg-secondary/20 rounded-full border border-secondary/30 backdrop-blur-md",children:[u.jsx(G8,{className:"w-4 h-4"}),e("detail.sections.impactResults")]}),u.jsx("h2",{className:"text-3xl md:text-4xl font-black text-white mb-2",children:e("detail.sections.measurableSuccess")})]}),u.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:Object.entries(r.key_metrics).map(([x,v],b)=>u.jsxs("div",{className:"group relative p-6 rounded-2xl bg-white/10 backdrop-blur-xl border border-white/20 hover:border-secondary/50 transition-all duration-500 hover:-translate-y-1 text-center",style:{transitionDelay:`${b*100}ms`},children:[u.jsx("div",{className:"text-4xl md:text-5xl font-black text-white mb-2",children:v}),u.jsx("div",{className:"text-xs font-bold text-white/70 uppercase tracking-wider",children:x.replace(/_/g," ")})]},x))})]})]})}),u.jsx("div",{className:"absolute top-1/4 left-1/4 w-96 h-96 bg-secondary/10 rounded-full blur-3xl z-10"}),u.jsx("div",{className:"absolute bottom-1/4 right-1/4 w-96 h-96 bg-accent/10 rounded-full blur-3xl z-10"})]}),u.jsxs("section",{className:"relative py-24 bg-gradient-to-b from-muted/30 via-background to-muted/20 overflow-hidden",children:[u.jsxs("div",{className:"absolute top-0 left-0 w-full h-full pointer-events-none",children:[u.jsx("div",{className:"absolute top-20 right-10 w-72 h-72 bg-secondary/5 rounded-full blur-3xl"}),u.jsx("div",{className:"absolute bottom-40 left-10 w-96 h-96 bg-accent/5 rounded-full blur-3xl"})]}),u.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 relative z-10",children:u.jsxs("div",{className:"max-w-5xl mx-auto",children:[u.jsxs("div",{className:"text-center mb-16",children:[u.jsxs("div",{className:"inline-flex items-center gap-2 px-5 py-2.5 mb-6 text-sm font-bold text-secondary bg-secondary/10 rounded-full border border-secondary/20",children:[u.jsx("span",{className:"w-2 h-2 bg-secondary rounded-full animate-pulse"}),e("detail.sections.projectDeepDive")]}),u.jsx("h2",{className:"text-4xl md:text-5xl font-black text-foreground mb-4",children:e("detail.sections.completeCaseStudy")}),u.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:e("detail.sections.caseStudySubtitle")})]}),u.jsxs("div",{className:"p-8 md:p-12 lg:p-16 rounded-3xl bg-card/40 backdrop-blur-xl border border-border/50 shadow-2xl",children:[u.jsx("article",{className:`prose prose-xl max-w-none text-center 576 prose-headings:font-black prose-headings:tracking-tight prose-headings:text-center 577 prose-h2:text-4xl prose-h2:mt-20 prose-h2:mb-10 prose-h2:first:mt-0 578 prose-h2:pb-5 prose-h2:border-b-2 prose-h2:border-border/50 579 prose-h2:bg-gradient-to-r prose-h2:from-secondary prose-h2:via-accent prose-h2:to-secondary 580 prose-h2:bg-clip-text prose-h2:text-transparent 581 prose-h3:text-2xl prose-h3:mt-12 prose-h3:mb-6 prose-h3:text-foreground 582 prose-h3:flex prose-h3:items-center prose-h3:justify-center prose-h3:gap-3 583 prose-h3:before:content-[''] prose-h3:before:w-1 prose-h3:before:h-6 584 prose-h3:before:bg-gradient-to-b prose-h3:before:from-secondary prose-h3:before:to-accent 585 prose-h3:before:rounded-full 586 prose-p:text-muted-foreground prose-p:leading-[1.9] prose-p:text-lg prose-p:mb-6 prose-p:text-center 587 prose-p:first-of-type:text-xl prose-p:first-of-type:leading-relaxed 588 prose-ul:my-8 prose-ul:space-y-4 prose-ul:text-left prose-ul:max-w-3xl prose-ul:mx-auto 589 prose-li:text-muted-foreground prose-li:text-lg prose-li:leading-relaxed 590 prose-li:pl-3 prose-li:marker:text-secondary prose-li:marker:text-2xl 591 prose-strong:text-foreground prose-strong:font-bold 592 prose-strong:bg-gradient-to-r prose-strong:from-secondary/10 prose-strong:to-transparent 593 prose-strong:px-1 prose-strong:py-0.5 prose-strong:rounded 594 `,children:u.jsx("div",{dangerouslySetInnerHTML:{__html:h}})}),u.jsxs("div",{className:"mt-20 pt-8 border-t border-border/50",children:[u.jsxs("h3",{className:"text-2xl font-black text-foreground mb-6 flex items-center justify-center gap-3",children:[u.jsx("div",{className:"w-1 h-6 bg-gradient-to-b from-secondary to-accent rounded-full"}),e("detail.sections.technologyStack")]}),u.jsx("div",{className:"flex flex-wrap gap-3 justify-center",children:r.tech_stack.map((x,v)=>u.jsx("span",{className:`px-5 py-3 rounded-xl bg-gradient-to-br from-secondary/10 to-accent/10 595 border border-secondary/20 text-foreground font-semibold text-sm 596 hover:border-secondary/40 hover:shadow-lg hover:shadow-secondary/10 597 transition-all duration-300 hover:-translate-y-1`,style:{animationDelay:`${v*50}ms`,animation:"fadeInUp 0.5s ease-out forwards"},children:x},x))})]})]})]})})]}),u.jsx("section",{className:"py-20 bg-gradient-to-br from-secondary/10 via-accent/10 to-secondary/10",children:u.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:u.jsx("div",{className:"max-w-4xl mx-auto",children:u.jsxs("div",{className:"p-12 rounded-3xl bg-gradient-to-br from-card via-card/95 to-card/90 backdrop-blur-xl border border-border/50 shadow-2xl text-center",children:[u.jsx("div",{className:"w-16 h-16 rounded-2xl bg-gradient-to-br from-secondary/20 to-accent/20 flex items-center justify-center mx-auto mb-6",children:u.jsx(yx,{className:"w-8 h-8 text-secondary"})}),u.jsx("h3",{className:"text-3xl md:text-4xl font-black text-foreground mb-4",children:e("detail.download.title")}),u.jsx("p",{className:"text-lg text-muted-foreground mb-8 max-w-2xl mx-auto",children:e("detail.download.description")}),u.jsxs(Yt,{size:"lg",onClick:()=>hee(r),className:"bg-gradient-to-r from-secondary to-accent hover:opacity-90 text-white font-bold text-lg px-8 shadow-lg shadow-secondary/30",children:[u.jsx(yx,{className:"w-5 h-5 mr-2"}),e("detail.download.button")]})]})})})}),u.jsx("section",{className:"py-24 bg-muted/50",children:u.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:u.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[u.jsx("h2",{className:"text-4xl md:text-5xl lg:text-6xl font-black text-foreground mb-6",children:e("detail.cta.title")}),u.jsx("p",{className:"text-xl text-muted-foreground mb-10 max-w-2xl mx-auto leading-relaxed",children:e("detail.cta.description")}),u.jsx("div",{className:"flex justify-center",children:u.jsx(Yt,{size:"lg",className:"bg-gradient-to-r from-secondary to-accent hover:opacity-90 text-white font-bold text-lg px-10 py-6 shadow-xl shadow-secondary/30",asChild:!0,children:u.jsxs("a",{href:"/projects",children:[e("detail.cta.button"),u.jsx(Fi,{className:"w-5 h-5 ml-2"})]})})})]})})})]}),u.jsx(ea,{})]})},mee=e=>({title:e("detail.mockProject.title"),slug:"automated-vineyard-management",description:e("detail.mockProject.description"),banner_image_url:"https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1920&h=1080&fit=crop",client:e("detail.mockProject.client"),year:2024,location:e("detail.mockProject.location"),key_metrics:{[e("detail.mockProject.metrics.waterSaved")]:"40%",[e("detail.mockProject.metrics.yieldIncrease")]:"25%",[e("detail.mockProject.metrics.costReduction")]:"30%",[e("detail.mockProject.metrics.pesticideReduction")]:"60%"},tech_stack:["TensorFlow","IoT Sensors","Computer Vision","Edge AI","Cloud Analytics","MQTT","Python","React"],categories:[e("categories.smart-agriculture"),"IoT","AI/ML"]}),gee=({article:e,delay:t=0})=>{var s,o;const{t:n,i18n:r}=rn("blog"),i=a=>{const l=new Date(a),c=r.language==="ar"?"ar-SA":"en-US";return l.toLocaleDateString(c,{month:"short",day:"numeric",year:"numeric",calendar:"gregory"})};return u.jsx(Me.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-40px"},transition:{duration:.6,delay:t*.1,ease:[.16,1,.3,1]},whileHover:{y:-10,scale:1.02,transition:{type:"spring",stiffness:400,damping:25}},className:"h-full",children:u.jsx(cr,{to:`/blog/${e.slug}`,className:"h-full block",children:u.jsxs("div",{className:"group h-full overflow-hidden cursor-pointer flex flex-col rounded-3xl bg-[#06054b]/80 backdrop-blur-xl border border-white/10 hover:border-[#c9a959]/60 shadow-xl hover:shadow-[0_25px_60px_rgba(201,169,89,0.2)] transition-colors duration-300",children:[u.jsxs("div",{className:"relative h-56 overflow-hidden bg-[#06054b] flex-shrink-0",children:[u.jsx("img",{src:e.featured_image,alt:e.title,className:"w-full h-full object-cover group-hover:scale-108 transition-transform duration-700",loading:"lazy",decoding:"async",onError:a=>{a.currentTarget.src="/assets/brand/ai-ros-logo-dark.png"}}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-[#06054b] via-[#06054b]/40 to-transparent"}),e.tags&&e.tags.length>0&&u.jsx("div",{className:"absolute top-4 left-4 rtl:left-auto rtl:right-4 flex flex-wrap gap-2",children:e.tags.slice(0,2).map(a=>u.jsxs("span",{className:"px-3.5 py-1.5 rounded-full bg-[#06054b]/90 backdrop-blur-md border border-[#c9a959]/40 text-[#c9a959] text-xs font-semibold font-headings shadow-lg flex items-center gap-1.5",children:[u.jsx(Di,{size:"xs",variant:"taupe"}),a]},a))})]}),u.jsxs("div",{className:"p-7 flex flex-col flex-grow justify-between",children:[u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-4 text-xs font-medium text-gray-400 mb-3 font-body",children:[u.jsxs("div",{className:"flex items-center gap-1.5",children:[u.jsx(qh,{className:"w-3.5 h-3.5 text-[#c9a959]"}),u.jsx("span",{children:i(e.published_at)})]}),u.jsxs("div",{className:"flex items-center gap-1.5",children:[u.jsx(V5,{className:"w-3.5 h-3.5 text-[#c9a959]"}),u.jsxs("span",{children:[e.reading_time," ",n("card.minRead","min read")]})]})]}),u.jsx("h3",{className:"text-xl font-bold font-headings text-white mb-3 group-hover:text-[#c9a959] transition-colors line-clamp-2 leading-snug",children:e.title}),u.jsx("p",{className:"text-gray-300 font-body text-sm leading-relaxed mb-6 line-clamp-3",children:e.excerpt})]}),u.jsxs("div",{className:"flex items-center justify-between pt-4 border-t border-white/10 mt-auto",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[(s=e.author)!=null&&s.avatar?u.jsx("img",{src:e.author.avatar,alt:e.author.name,className:"w-7 h-7 rounded-full object-cover border border-[#c9a959]/40"}):u.jsx("div",{className:"w-7 h-7 rounded-full bg-[#c9a959]/20 border border-[#c9a959]/40 flex items-center justify-center text-[#c9a959]",children:u.jsx(AO,{className:"w-3.5 h-3.5"})}),u.jsx("span",{className:"text-xs font-medium text-gray-300 font-headings",children:((o=e.author)==null?void 0:o.name)||"AI-ROS Intelligence"})]}),u.jsxs("div",{className:"flex items-center gap-1 text-xs font-headings font-bold text-[#c9a959] group-hover:text-[#dcc277]",children:[u.jsx("span",{children:n("card.readMore","Read")}),u.jsx(Fi,{className:"w-3.5 h-3.5 rtl:rotate-180 transition-transform group-hover:translate-x-1 rtl:group-hover:-tran
597slate-x-1"})]})]})]})]})})})},yee=()=>{const{t:e,i18n:t}=rn("blog"),[n,r]=eC(),[i,s]=j.useState([]),[o,a]=j.useState(!0),[l,c]=j.useState(n.get("tag")),d=[e("tags.aiMachineLearning"),e("tags.iot"),e("tags.smartCities"),e("tags.agriculture"),e("tags.industry40"),e("tags.sustainability")];j.useEffect(()=>{(async()=>{try{a(!0);const f={};l&&(f.tag=l);const v=(await pi.getBlogPosts(f)).data.data.map(b=>{var y,S,_;return{slug:b.slug,title:b.title,excerpt:b.excerpt,featured_image:b.featured_image,tags:((y=b.tags)==null?void 0:y.map(k=>k.name))||[],reading_time:b.reading_time,published_at:b.published_at,author:{name:((S=b.author)==null?void 0:S.name)||"AI-ROS Team",avatar:((_=b.author)==null?void 0:_.avatar)||""}}});s(v)}catch(f){console.error("Error fetching articles:",f),s(xee(e))}finally{a(!1)}})()},[l,e]);const h=m=>{c(m),r(m?{tag:m}:{})};return u.jsxs("div",{className:"atlas-page min-h-screen relative overflow-hidden bg-[#06054b] text-white font-body",children:[u.jsx(Lc,{}),u.jsx(Jo,{}),u.jsxs("main",{className:"relative z-10",children:[u.jsx(np,{title:e("hero.title"),subtitle:e("hero.subtitle"),badge:t.language==="ar"?"Ù
Ø±ÙØ² اÙÙ
Ø¹Ø±ÙØ© ÙØ§ÙØ£Ø¨ØØ§Ø«":"Knowledge & Research Center",routeLabel:t.language==="ar"?"اÙÙ
سار 05 / اÙÙ
Ø¹Ø±ÙØ© ÙØ§ÙØ£Ø¨ØØ§Ø«":"Route 05 / Knowledge & Dispatches"}),u.jsx("section",{className:"sticky top-16 z-40 bg-background/95 backdrop-blur-md border-b border-border shadow-lg",children:u.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 py-4",children:u.jsxs("div",{className:"flex items-center justify-center gap-4 flex-wrap",children:[u.jsx("button",{onClick:()=>h(null),className:kt("px-4 py-2 rounded-lg font-medium text-sm whitespace-nowrap transition-all",l?"bg-muted text-foreground hover:bg-muted/80":"bg-secondary text-white shadow-lg shadow-secondary/30"),children:e("filters.allTopics")}),d.map(m=>u.jsx("button",{onClick:()=>h(m),className:kt("px-4 py-2 rounded-lg font-medium text-sm whitespace-nowrap transition-all",l===m?"bg-secondary text-white shadow-lg shadow-secondary/30":"bg-muted text-foreground hover:bg-muted/80"),children:m},m))]})})}),u.jsx("section",{className:"py-16 bg-background",children:u.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:o?u.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-8",children:[...Array(6)].map((m,f)=>u.jsxs("div",{className:"rounded-3xl bg-card/80 backdrop-blur-sm border border-border animate-pulse overflow-hidden",children:[u.jsx("div",{className:"h-56 bg-muted"}),u.jsxs("div",{className:"p-6 space-y-3",children:[u.jsx("div",{className:"h-6 bg-muted rounded w-3/4"}),u.jsx("div",{className:"h-4 bg-muted rounded w-full"}),u.jsx("div",{className:"h-4 bg-muted rounded w-5/6"})]})]},f))}):i.length===0?u.jsxs("div",{className:"text-center py-20",children:[u.jsx($8,{className:"w-20 h-20 text-muted-foreground mx-auto mb-6 opacity-50"}),u.jsx("h3",{className:"text-2xl font-bold text-foreground mb-3",children:e("empty.title")}),u.jsx("p",{className:"text-muted-foreground max-w-md mx-auto",children:e("empty.description")})]}):u.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-8",children:i.map((m,f)=>u.jsx(gee,{article:m,delay:f*100},m.slug))})})})]}),u.jsx(ea,{})]})},xee=e=>[{slug:"future-of-precision-agriculture",title:e("mockArticles.0.title"),excerpt:e("mockArticles.0.excerpt"),featured_image:"https://images.unsplash.com/photo-1625246333195-78d9c38ad449?w=800&h=600&fit=crop&q=75&fm=webp&auto=format",tags:[e("tags.aiMachineLearning"),e("tags.agriculture"),e("tags.iot")],reading_time:8,published_at:"2024-01-15",author:{name:e("mockArticles.0.author"),avatar:""}},{slug:"smart-cities-sustainability",title:e("mockArticles.1.title"),excerpt:e("mockArticles.1.excerpt"),featured_image:"https://images.unsplash.com/photo-1480714378408-67cf0d13bc1b?w=800&h=600&fit=crop&q=75&fm=webp&auto=format",tags:[e("tags.smartCities"),e("tags.sustainability")],reading_time:10,published_at:"2024-01-10",author:{name:e("mockArticles.1.author"),avatar:""}},{slug:"industrial-automation-trends-2024",title:e("mockArticles.2.title"),excerpt:e("mockArticles.2.excerpt"),featured_image:"https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?w=800&h=600&fit=crop&q=75&fm=webp&auto=format",tags:[e("tags.industry40"),e("tags.aiMac
597hineLearning")],reading_time:7,published_at:"2024-01-05",author:{name:e("mockArticles.2.author"),avatar:""}},{slug:"iot-sensors-agriculture",title:e("mockArticles.3.title"),excerpt:e("mockArticles.3.excerpt"),featured_image:"https://images.unsplash.com/photo-1464226184884-fa280b87c399?w=800&h=600&fit=crop&q=75&fm=webp&auto=format",tags:[e("tags.iot"),e("tags.agriculture"),e("tags.sustainability")],reading_time:6,published_at:"2023-12-28",author:{name:e("mockArticles.3.author"),avatar:""}},{slug:"predictive-maintenance-roi",title:e("mockArticles.4.title"),excerpt:e("mockArticles.4.excerpt"),featured_image:"https://images.unsplash.com/photo-1565043589221-1a6fd9ae45c7?w=800&h=600&fit=crop&q=75&fm=webp&auto=format",tags:[e("tags.industry40"),e("tags.aiMachineLearning")],reading_time:9,published_at:"2023-12-20",author:{name:e("mockArticles.4.author"),avatar:""}},{slug:"smart-grid-renewable-energy",title:e("mockArticles.5.title"),excerpt:e("mockArticles.5.excerpt"),featured_image:"https://images.unsplash.com/photo-1473341304170-971dccb5ac1e?w=800&h=600&fit=crop&q=75&fm=webp&auto=format",tags:[e("tags.smartCities"),e("tags.sustainability")],reading_time:8,published_at:"2023-12-15",author:{name:e("mockArticles.5.author"),avatar:""}}],vee=()=>{const{slug:e}=lb(),[t,n]=j.useState(null),[r,i]=j.useState(!0),[s,o]=j.useState(0),{toast:a}=a8(),{t:l,i18n:c}=rn("blog");j.useEffect(()=>{e&&(async()=>{var f,x,v,b;try{i(!0);const y=await pi.getBlogPost(e),S={title:y.data.title,slug:y.data.slug,content:y.data.content,featured_image:y.data.featured_image,tags:((f=y.data.tags)==null?void 0:f.map(_=>_.name))||[],reading_time:y.data.reading_time,published_at:y.data.published_at,author:{name:((x=y.data.author)==null?void 0:x.name)||"AI-ROS Team",avatar:((v=y.data.author)==null?void 0:v.avatar)||"",bio:((b=y.data.author)==null?void 0:b.bio)||""}};n(S)}catch(y){console.error("Error fetching article:",y),n(bee(c.language))}finally{i(!1)}})()},[e,c.language]),j.useEffect(()=>{const m=()=>{const f=window.innerHeight,x=document.documentElement.scrollHeight,b=window.scrollY/(x-f)*100;o(Math.min(b,100))};return window.addEventListener("scroll",m),()=>window.removeEventListener("scroll",m)},[]);const d=m=>{const f=c.language==="ar"?"ar-SA":"en-US";return new Date(m).toLocaleDateString(f,{year:"numeric",month:"long",day:"numeric",calendar:"gregory"})},h=m=>{const f=window.location.href,x=(t==null?void 0:t.title)||"";let v="";switch(m){case"twitter":v=`https://twitter.com/intent/tweet?url=${encodeURIComponent(f)}&text=${encodeURIComponent(x)}`;break;case"linkedin":v=`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(f)}`;break;case"facebook":v=`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(f)}`;break;case"copy":navigator.clipboard.writeText(f),a({title:l("article.toast.linkCopied"),description:l("article.toast.linkCopiedDescription")});return}v&&window.open(v,"_blank","width=600,height=400")};return r?u.jsx("div",{className:"min-h-screen flex items-center justify-center",children:u.jsxs("div",{className:"text-center",children:[u.jsx("div",{className:"w-16 h-16 border-4 border-secondary border-t-transparent rounded-full animate-spin mx-auto mb-4"}),u.jsx("p",{className:"text-muted-foreground",children:l("article.loading")})]})}):t?u.jsxs("div",{className:"min-h-screen bg-background",children:[u.jsx("div",{className:"fixed top-0 left-0 right-0 h-1 bg-muted z-50",children:u.jsx("div",{className:"h-full bg-gradient-to-r from-secondary to-accent transition-all duration-300",style:{width:`${s}%`}})}),u.jsx(Jo,{}),u.jsxs("main",{children:[u.jsxs("section",{className:"relative min-h-[70vh] flex items-end overflow-hidden",children:[u.jsxs("div",{className:"absolute inset-0",children:[u.jsx("img",{src:t.featured_image,alt:t.title,className:"w-full h-full object-cover",loading:"eager",onError:m=>{m.currentTarget.src='data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="1200" height="675"%3E%3Crect fill="%23111827" width="1200" height="675"/%3E%3C/svg%3E'}}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-[hsl(210,40%,8%)] via-[hsl(210,40%,8%)]/95 to-[hsl(210,40%,8%)]/70"}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-transparent via-trans
597parent to-[hsl(210,40%,8%)]"})]}),u.jsx("div",{className:"relative z-10 container mx-auto px-4 sm:px-6 lg:px-8 pb-16 pt-24",children:u.jsxs("div",{className:"max-w-4xl mx-auto",children:[u.jsx(cr,{to:"/blog",className:"inline-block mb-8",children:u.jsxs(Yt,{variant:"ghost",className:"text-white/80 hover:text-white hover:bg-white/10 backdrop-blur-sm border border-white/20",children:[u.jsx(B8,{className:"w-4 h-4 ltr:mr-2 rtl:ml-2"}),l("article.backToBlog")]})}),u.jsx("div",{className:"flex flex-wrap gap-2 mb-6",children:t.tags.map(m=>u.jsx("span",{className:"px-4 py-2 rounded-full bg-gradient-to-r from-secondary/20 to-accent/20 backdrop-blur-md text-secondary text-sm font-bold border border-secondary/30",children:m},m))}),u.jsx("h1",{className:"text-4xl sm:text-5xl lg:text-6xl xl:text-7xl font-black text-white mb-8 leading-tight drop-shadow-2xl",children:t.title}),u.jsxs("div",{className:"flex flex-wrap items-center gap-6 p-6 rounded-2xl bg-white/10 backdrop-blur-xl border border-white/20",children:[u.jsxs("div",{className:"flex items-center gap-4",children:[u.jsx("img",{src:t.author.avatar||`https://ui-avatars.com/api/?name=${encodeURIComponent(t.author.name)}&size=64&background=7844ea&color=fff`,alt:t.author.name,className:"w-14 h-14 rounded-full ring-2 ring-secondary/50",loading:"lazy",onError:m=>{m.currentTarget.src='data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="64" height="64"%3E%3Ccircle fill="%237844ea" cx="32" cy="32" r="32"/%3E%3Ctext x="50%25" y="50%25" text-anchor="middle" dy=".3em" fill="white" font-size="24" font-weight="bold"%3E'+t.author.name.charAt(0)+"%3C/text%3E%3C/svg%3E"}}),u.jsxs("div",{children:[u.jsx("div",{className:"font-bold text-white text-base",children:t.author.name}),t.author.bio&&u.jsx("div",{className:"text-sm text-white/70",children:t.author.bio})]})]}),u.jsx("div",{className:"flex items-center gap-1 ml-auto",children:u.jsx("div",{className:"w-1 h-1 rounded-full bg-white/40"})}),u.jsxs("div",{className:"flex items-center gap-2 text-white/80",children:[u.jsx(qh,{className:"w-4 h-4"}),u.jsx("span",{className:"text-sm font-medium",children:d(t.published_at)})]}),u.jsxs("div",{className:"flex items-center gap-2 text-white/80",children:[u.jsx(V5,{className:"w-4 h-4"}),u.jsxs("span",{className:"text-sm font-medium",children:[t.reading_time," ",l("card.minRead")]})]}),u.jsxs("div",{className:"flex items-center gap-2 text-white/80",children:[u.jsx(q5,{className:"w-4 h-4"}),u.jsxs("span",{className:"text-sm font-medium",children:["2.4K ",l("article.views")]})]})]})]})}),u.jsx("div",{className:"absolute top-1/4 left-1/4 w-96 h-96 bg-secondary/10 rounded-full blur-3xl"}),u.jsx("div",{className:"absolute bottom-1/4 right-1/4 w-96 h-96 bg-accent/10 rounded-full blur-3xl"})]}),u.jsx("section",{className:"pt-16 pb-24 relative",children:u.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:u.jsxs("div",{className:"max-w-4xl mx-auto",children:[u.jsx("div",{className:"hidden xl:block fixed ltr:left-8 rtl:right-8 top-1/2 -translate-y-1/2 z-40",children:u.jsxs("div",{className:"flex flex-col gap-3 p-4 rounded-2xl bg-card/80 backdrop-blur-xl border border-border/50 shadow-xl",children:[u.jsx("div",{className:"text-xs font-bold text-muted-foreground mb-1 text-center",children:l("article.share")}),u.jsx("button",{onClick:()=>h("twitter"),className:"group relative w-12 h-12 rounded-xl bg-gradient-to-br from-card to-card/80 hover:from-secondary/20 hover:to-sky-600/20 border border-border hover:border-secondary/50 flex items-center justify-center transition-all duration-300 hover:scale-110 hover:shadow-lg hover:shadow-secondary/20","aria-label":"Share on Twitter",children:u.jsx(h3,{className:"w-4 h-4 text-muted-foreground group-hover:text-secondary transition-colors"})}),u.jsx("button",{onClick:()=>h("linkedin"),className:"group relative w-12 h-12 rounded-xl bg-gradient-to-br from-card to-card/80 hover:from-secondary/20 hover:to-blue-600/20 border border-border hover:border-secondary/50 flex items-center justify-center transition-all duration-300 hover:scale-110 hover:shadow-lg hover:shadow-secondary/20","aria-label":"Share on LinkedIn",children:u.jsx(bx,{className:"w-4 h-4 text-muted-foreground group-hover:text-secondary transition-colors"})}),u.jsx("button",{onClick:()=>h("facebook"),className:"group relative w-12 h-12 rounded-xl bg-gradient-to-br from-card to-card/80 hover:from-secondary/20 hover:to-accent/20 border border-border hover:border-secondary/50 flex items-center justify-center transition-all duration-300 hover:scale-110 hover:shadow-lg hover:shadow-secondary/20","aria-label":"Share on Facebook",children:u.jsx(xx,{className:"w-4 h-4 text-muted-foreground group-hover:text-secondary transition-colors"})}),u.jsx("div",{className:"w-full h-px bg-border my-1"}),u.jsx("button",{onClick:()=>h("copy"),className:"group relative w-12 h-12 rounded-xl bg-gradient-to-br from-card to-card/80 hover:from-secondary/20 hover:to-teal-600/20 border border-border hover:border-secondary/50 flex items-center justify-center transition-all duration-300 hover:scale-110 hover:shadow-lg hover:shadow-secondary/20","aria-label":"Copy link",children:u.jsx(d3,{className:"w-4 h-4 text-muted-foreground group-hover:text-secondary transition-colors"})})]})}),u.jsxs("article",{className:"relative",children:[u.jsx("div",{className:`prose prose-xl max-w-none 598 prose-headings:scroll-mt-24 599 prose-headings:font-black prose-headings:tracking-tight prose-headings:mb-6 600 prose-h2:text-4xl prose-h2:mt-16 prose-h2:mb-8 601 prose-h2:pb-4 prose-h2:border-b prose-h2:border-border/50 602 prose-h2:bg-gradient-to-r prose-h2:from-secondary prose-h2:via-accent prose-h2:to-secondary 603 prose-h2:bg-clip-text prose-h2:text-transparent 604 prose-h3:text-2xl prose-h3:mt-12 prose-h3:mb-6 prose-h3:text-foreground prose-h3:font-bold 605 prose-p:text-muted-foreground prose-p:leading-[1.8] prose-p:text-lg prose-p:mb-8 606 prose-p:first-of-type:text-xl prose-p:first-of-type:leading-[1.7] prose-p:first-of-type:text-foreground
606/90 607 prose-a:text-secondary prose-a:no-underline prose-a:font-semibold 608 prose-a:border-b-2 prose-a:border-secondary/30 609 hover:prose-a:text-accent hover:prose-a:border-accent/50 prose-a:transition-all 610 prose-strong:text-foreground prose-strong:font-bold 611 prose-code:text-secondary prose-code:bg-secondary/10 612 prose-code:px-2 prose-code:py-1 prose-code:rounded-lg 613 prose-code:font-mono prose-code:text-base prose-code:font-semibold 614 prose-code:border prose-code:border-secondary/20 615 prose-ul:my-8 prose-ul:space-y-3 616 prose-li:text-muted-foreground prose-li:text-lg prose-li:leading-relaxed 617 prose-li:pl-2 prose-li:marker:text-secondary prose-li:marker:text-xl 618 prose-blockquote:border-l-4 prose-blockquote:border-secondary 619 prose-blockquote:pl-8 prose-blockquote:py-4 prose-blockquote:my-8 620 prose-blockquote:italic prose-blockquote:text-foreground/80 621 prose-blockquote:bg-secondary/5 prose-blockquote:rounded-r-2xl 622 prose-img:rounded-2xl prose-img:shadow-2xl prose-img:my-12 623 `,children:u.jsx("div",{dangerouslySetInnerHTML:{__html:t.content}})}),u.jsxs("div",{className:"mt-20 pt-12 border-t-2 border-border/50",children:[u.jsxs("div",{className:"mb-8",children:[u.jsx("h3",{className:"text-sm font-bold text-muted-foreground mb-4 uppercase tracking-wider",children:l("article.taggedIn")}),u.jsx("div",{className:"flex flex-wrap gap-3",children:t.tags.map(m=>u.jsxs("span",{className:"px-5 py-2.5 rounded-xl bg-gradient-to-r from-secondary/10 via-accent/10 to-secondary/10 text-secondary text-sm font-bold border border-secondary/30 hover:border-secondary/60 hover:shadow-lg hover:shadow-secondary/20 transition-all duration-300 hover:scale-105 cursor-pointer",children:["#",m.toLowerCase().replace(/\s+/g,"")]},m))})]}),u.jsxs("div",{className:"xl:hidden",children:[u.jsx("h3",{className:"text-sm font-bold text-muted-foreground mb-4 uppercase tracking-wider",children:l("article.shareArticle")}),u.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3",children:[u.jsxs("button",{onClick:()=>h("twitter"),className:"group px-5 py-4 rounded-2xl bg-gradient-to-br from-card to-card/80 hover:from-secondary/20 hover:to-sky-600/20 border border-border hover:border-secondary/50 flex flex-col items-center justify-center gap-2 transition-all duration-300 hover:scale-105 hover:shadow-lg hover:shadow-secondary/20",children:[u.jsx(h3,{className:"w-5 h-5 text-muted-foreground group-hover:text-secondary transition-colors"}),u.jsx("span",{className:"text-xs font-bold text-muted-foreground group-hover:text-secondary transition-colors",children:l("article.social.twitter")})]}),u.jsxs("button",{onClick:()=>h("linkedin"),className:"group px-5 py-4 rounded-2xl bg-gradient-to-br from-card to-card/80 hover:from-secondary/20 hover:to-blue-600/20 border border-border hover:border-secondary/50 flex flex-col items-center justify-center gap-2 transition-all duration-300 hover:scale-105 hover:shadow-lg hover:shadow-secondary/20",children:[u.jsx(bx,{className:"w-5 h-5 text-muted-foreground group-hover:text-secondary transition-colors"}),u.jsx("span",{className:"text-xs font-bold text-muted-foreground group-hover:text-secondary transition-colors",children:l("article.social.linkedin")})]}),u.jsxs("button",{onClick:()=>h("facebook"),className:"group px-5 py-4 rounded-2xl bg-gradient-to-br from-card to-card/80 hover:from-secondary/20 hover:to-accent/20 border border-border hover:border-secondary/50 flex flex-col items-center justify-center gap-2 transition-all duration-300 hover:scale-105 hover:shadow-lg hover:shadow-secondary/20",children:[u.jsx(xx,{className:"w-5 h-5 text-muted-foreground group-hover:text-secondary transition-colors"}),u.jsx("span",{className:"text-xs font-bold text-muted-foreground group-hover:text-secondary transition-colors",children:l("article.social.facebook")})]}),u.jsxs("button",{onClick:()=>h("copy"),className:"group px-5 py-4 rounded-2xl bg-gradient-to-br from-card to-card/80 hover:from-secondary/20 hover:to-teal-600/20 border border-border hover:border-secondary/50 flex flex-col items-center justify-center gap-2 transition-all duration-300 hover:scale-105 hover:shadow-lg hover:shadow-secondary/20",children:[u.jsx(d3,{className:"w-5 h-5 text-muted-foreground group-hover:text-secondary transition-colors"}),u.jsx("span",{className:"text-xs font-bold text-muted-foreground group-hover:text-secondary transition-colors",children:l("article.social.copy")})]})]})]})]})]})]})})})]}),u.jsx(ea,{})]}):u.jsx("div",{className:"min-h-screen flex items-center justify-center",children:u.jsxs("div",{className:"text-center",children:[u.jsx("h2",{className:"text-2xl font-bold text-foreground mb-2",children:l("article.notFound.title")}),u.jsx("p",{className:"text-muted-foreground",children:l("article.notFound.description")})]})})},bee=e=>e==="ar"?{title:"Ù Ø³ØªÙØ¨Ù Ø§ÙØ²Ø±Ø§Ø¹Ø© Ø§ÙØ¯ÙÙÙØ©: ØªÙØ§Ù Ù Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙØ§Ø¹Ù ÙØ¥ÙØªØ±ÙØª Ø§ÙØ£Ø´Ùاء",slug:"future-of-precision-agriculture",content:` 624 <p>ØªØ´ÙØ¯ ØµÙØ§Ø¹Ø© Ø§ÙØ²Ø±Ø§Ø¹Ø© تØÙÙØ§Ù Ø«ÙØ±ÙØ§ÙØ ٠دÙÙØ¹Ø§Ù Ø¨ØªÙØ§Ø±Ø¨ تÙÙÙØ§Øª Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙØ§Ø¹Ù ÙØ¥ÙØªØ±ÙØª Ø§ÙØ£Ø´Ùاء. ÙÙ ÙÙÙ ÙØ°Ø§ Ø§ÙØªÙا٠٠اÙ٠زارعÙ٠٠٠اتخاذ ÙØ±Ø§Ø±Ø§Øª ٠بÙÙØ© عÙÙ Ø§ÙØ¨ÙØ§ÙØ§ØªØ ÙØªØØ³Ù٠استخدا٠اÙÙ ÙØ§Ø±Ø¯Ø ÙØ²Ùادة Ø¥ÙØªØ§Ø¬ÙØ© اÙÙ ØØ§ØµÙ٠بشÙÙ ÙØ¨Ùر ٠ع تÙÙÙÙ Ø§ÙØªØ£Ø«Ùر Ø§ÙØ¨ÙئÙ.</p> 625 626 <h2 style="font-size: 2.5rem; color: #A89483; font-weight: 800;">Ø§ÙØªØØ¯Ù</h2> 627 <p>ÙÙØ§Ø¬Ù ٠زارع٠اÙÙÙÙ ØªØØ¯Ùات ØºÙØ± ٠سبÙÙØ©: ØªØºÙØ± اÙÙ ÙØ§Ø®Ø ÙÙØ¯Ø±Ø© اÙÙ ÙØ§ÙØ ÙØªØ²Ø§Ùد Ø§ÙØ·Ùب Ø§ÙØ¹Ø§Ù٠٠عÙÙ Ø§ÙØºØ°Ø§Ø¡Ø ÙØ§ÙØØ§Ø¬Ø© Ø¥Ù٠٠٠ارسات ٠ستدا٠ة. Ù٠تعد أساÙÙØ¨ Ø§ÙØ²Ø±Ø§Ø¹Ø© Ø§ÙØªÙÙÙØ¯ÙØ© ÙØ§ÙÙØ© ÙÙ Ø¹Ø§ÙØ¬Ø© ÙØ°Ù اÙÙØ¶Ø§Ùا اÙÙ Ø¹ÙØ¯Ø©.</p> 628 629 <p>ÙØ¬Ø¨ عÙ٠اÙÙØ·Ø§Ø¹ Ø§ÙØ²Ø±Ø§Ø¹Ù Ø¥ÙØªØ§Ø¬ 70Ùª Ù Ù Ø§ÙØºØ°Ø§Ø¡ بØÙÙ٠عا٠2050 ÙØ¥Ø·Ø¹Ø§Ù عدد Ù ØªØ²Ø§ÙØ¯ Ù Ù Ø§ÙØ³ÙØ§Ù Ø§ÙØ¹Ø§ÙÙ ÙÙÙØ Ù٠ع ذÙÙ ÙÙØ§Ø¬Ù:</p> 630 <ul> 631 <li>Ø£Ù٠اط Ø·ÙØ³ ØºÙØ± ٠تÙÙØ¹Ø© ÙØ£ØØ¯Ø§Ø« Ù ÙØ§Ø®ÙØ© Ù ØªØ·Ø±ÙØ©</li> 632 <li>تراجع Ù ÙØ§Ø±Ø¯ اÙÙ ÙØ§Ù ÙØªØ¯ÙÙØ± Ø§ÙØªØ±Ø¨Ø©</li> 633 <li>Ø§Ø±ØªÙØ§Ø¹ ØªÙØ§ÙÙÙ Ø§ÙØ£Ø³Ù دة ÙØ§ÙÙ Ø¨ÙØ¯Ø§Øª Ø§ÙØØ´Ø±ÙØ©</li> 634 <li>ÙÙØµ Ø§ÙØ¹Ù Ø§ÙØ© ÙØ²Ùادة اÙÙÙÙØ§Øª Ø§ÙØªØ´ØºÙÙÙØ©</li> 635 <li>Ø¶ØºÙØ· ÙØªÙÙÙÙ Ø§ÙØªØ£Ø«Ùر Ø§ÙØ¨Ùئ٠٠ع Ø§ÙØÙØ§Ø¸ عÙÙ Ø§ÙØ¥ÙØªØ§Ø¬ÙØ©</li> 636 </ul> 637 638 <hr style="border: none; height: 2px; background: linear-gradient(to right, transparent, rgba(196, 173, 157, 0.5), transparent); margin: 3rem 0;" /> 639 640 <h2 style="font-size: 2.5rem; color: #A89483; font-weight: 800;">ØÙÙØ§</h2> 641 <p>ÙØ®ÙÙ Ø§ÙØ¬Ù ع بÙÙ Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙØ§Ø¹Ù ÙØ¥ÙØªØ±ÙØª Ø§ÙØ£Ø´Ùاء ÙØ¸Ø§Ù Ø§Ù Ø¨ÙØ¦Ùا٠ÙÙÙØ§Ù ÙÙØ²Ø±Ø§Ø¹Ø© Ø§ÙØØ¯ÙØ«Ø©Ø ٠٠ا ÙØªÙØ Ø§ÙØ²Ø±Ø§Ø¹Ø© Ø§ÙØ¯ÙÙÙØ© عÙÙ ÙØ·Ø§Ù ÙØ§Ø³Ø¹:</p> 642 643 <h3>1. اÙÙ Ø±Ø§ÙØ¨Ø© Ù٠اÙÙÙØª اÙÙØ¹ÙÙ</h3> 644 <p>تج٠ع Ø£Ø¬ÙØ²Ø© استشعار Ø¥ÙØªØ±Ùت Ø§ÙØ£Ø´Ùاء اÙÙ ÙØªØ´Ø±Ø© عبر Ø§ÙØÙÙÙ Ø¨ÙØ§Ùات ٠ست٠رة ع٠رطÙ
644بة Ø§ÙØªØ±Ø¨Ø© ÙØ¯Ø±Ø¬Ø© Ø§ÙØØ±Ø§Ø±Ø© ÙØ§ÙØ±Ø·ÙØ¨Ø© Ù٠ستÙÙØ§Øª اÙÙ ØºØ°ÙØ§Øª. ØªØªÙØ ÙØ°Ù اÙ٠عÙÙ٠ات Ù٠اÙÙÙØª اÙÙØ¹ÙÙ ÙÙ٠زارعÙÙ ÙÙ٠٠ا ÙØØ¯Ø« Ø¨Ø§ÙØ¶Ø¨Ø· ÙÙ ØÙÙÙÙÙ ÙÙ Ø£Ù ÙØØ¸Ø©.</p> 645 646 <h3>2. Ø§ÙØªØÙÙÙØ§Øª Ø§ÙØªÙØ¨Ø¤ÙØ©</h3> 647 <p>تØÙÙ Ø®ÙØ§Ø±Ø²Ù ÙØ§Øª Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙØ§Ø¹Ù Ø§ÙØ¨ÙØ§ÙØ§Øª Ø§ÙØªØ§Ø±ÙØ®ÙØ© ÙØ§ÙÙÙØ±ÙØ© ÙÙØªÙبؤ Ø¨Ø¥ÙØªØ§Ø¬ÙØ© اÙÙ ØØ§ØµÙÙØ ÙØªØØ¯Ùد Ø§ÙØ¥ØµØ§Ø¨Ø§Øª اÙÙ ØØªÙ ÙØ© Ø¨Ø§ÙØ¢ÙØ§ØªØ ÙØ§ÙØªÙØ¨Ø¤ بأÙÙØ§Øª Ø§ÙØØµØ§Ø¯ اÙÙ Ø«ÙÙ. ÙÙ ÙÙ ÙÙ٠اذج Ø§ÙØªØ¹ÙÙ Ø§ÙØ¢ÙÙ Ø§ÙØªØ´Ø§Ù Ø£Ù٠اط ÙØ¯ ÙÙÙØªÙا اÙÙ Ø±Ø§ÙØ¨ÙÙ Ø§ÙØ¨Ø´Ø±ÙÙÙØ ٠٠ا ÙØªÙØ Ø§ÙØ²Ø±Ø§Ø¹Ø© Ø§ÙØ§Ø³ØªØ¨Ø§ÙÙØ© Ø¨Ø¯ÙØ§Ù Ù Ù Ø§ÙØªÙاعÙÙØ©.</p> 648 649 <h3>3. Ø§ÙØ±Ù Ø§ÙØ¢ÙÙ</h3> 650 <p>ØªØ³ØªØ®Ø¯Ù Ø£ÙØ¸Ù Ø© Ø§ÙØ±Ù Ø§ÙØ°ÙÙØ© Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙØ§Ø¹Ù ÙØªØØ¯Ùد اÙÙÙ ÙØ© Ø§ÙØ¯ÙÙÙØ© ٠٠اÙÙ ÙØ§Ù اÙÙØ§Ø²Ù Ø© ÙÙÙ ÙØ³Ù Ù Ù Ø§ÙØÙÙ. Ù Ù Ø®ÙØ§Ù اÙÙØ¸Ø± ÙÙ Ø¹ÙØ§Ù ٠٠ث٠ÙÙØ¹ Ø§ÙØªØ±Ø¨Ø© ÙØªÙÙØ¹ اÙÙ ØØ§ØµÙÙ ÙØªÙÙØ¹Ø§Øª Ø§ÙØ·Ùس Ù٠رØÙØ© اÙÙÙ ÙØ ØªØ¹Ù Ù ÙØ°Ù Ø§ÙØ£Ùظ٠ة عÙÙ ØªØØ³Ù٠استخدا٠اÙÙ ÙØ§Ù ٠ع ØªØØ³ÙÙ ØµØØ© اÙÙ ØØ§ØµÙÙ.</p> 651 652 <hr style="border: none; height: 2px; background: linear-gradient(to right, transparent, rgba(196, 173, 157, 0.5), transparent); margin: 3rem 0;" /> 653 654 <h2 style="font-size: 2.5rem; color: #A89483; font-weight: 800;">اÙÙØªØ§Ø¦Ø¬</h2> 655 <p>ÙØÙÙ ØªØ£Ø«ÙØ± Ø§ÙØ²Ø±Ø§Ø¹Ø© Ø§ÙØ¯ÙÙÙØ© اÙ٠دعÙÙ Ø© Ø¨Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·Ùاع٠اÙ٠زارع ÙÙ Ø¬Ù ÙØ¹ Ø£ÙØØ§Ø¡ Ø§ÙØ¹Ø§ÙÙ . Ø£Ø¨ÙØºØª اÙ٠زارع Ø§ÙØªÙ ØªØ·Ø¨Ù ÙØ°Ù Ø§ÙØÙÙÙ Ø¹Ù ØªØØ³ÙÙØ§Øª ÙØ§Ø¨ÙØ© ÙÙÙÙØ§Ø³ عبر Ø¬Ù ÙØ¹ اÙÙ ÙØ§ÙÙØ³ Ø§ÙØ±Ø¦ÙØ³ÙØ©:</p> 656 <ul> 657 <li><strong>Ø²ÙØ§Ø¯Ø© 25-30Ùª ÙÙ Ø¥ÙØªØ§Ø¬ÙØ© اÙÙ ØØ§ØµÙÙ</strong> Ù Ù Ø®ÙØ§Ù ظرÙ٠اÙÙ٠٠اÙÙ ØØ³ÙØ©</li> 658 <li><strong>تخÙÙØ¶ 40Ùª Ù٠استÙÙØ§Ù اÙÙ ÙØ§Ù</strong> عبر Ø£ÙØ¸Ù Ø© Ø§ÙØ±Ù Ø§ÙØ°ÙÙØ©</li> 659 <li><strong>Ø§ÙØ®Ùاض 60Ùª Ù٠استخدا٠اÙÙ Ø¨ÙØ¯Ø§Øª Ø§ÙØØ´Ø±ÙØ©</strong> ٠ع Ø§ÙØªØ·Ø¨Ù٠اÙÙ Ø³ØªÙØ¯Ù</li> 660 <li><strong>تخÙÙØ¶ 30Ùª ÙÙ Ø§ÙØªÙاÙÙÙ Ø§ÙØªØ´ØºÙÙÙØ©</strong> Ù Ù Ø®ÙØ§Ù Ø§ÙØ£ØªÙ تة ÙØ§ÙÙÙØ§Ø¡Ø©</li> 661 <li><strong>اتخاذ ÙØ±Ø§Ø±Ø§Øª أسرع Ø¨ÙØ³Ø¨Ø© 50Ùª</strong> ٠ع Ø±Ø¤Ù Ø§ÙØ¨ÙØ§ÙØ§Øª Ù٠اÙÙÙØª اÙÙØ¹ÙÙ</li> 662 </ul> 663 664 <p>Ø¨Ø¹ÙØ¯Ø§Ù Ø¹Ù Ø§ÙØ£Ø±ÙØ§Ù Ø ÙØ¨Ùغ اÙ٠زارعÙÙ Ø¹Ù ØªØØ³Ù Ø¬ÙØ¯Ø© اÙÙ ØØ§ØµÙÙØ ÙØªÙÙÙÙ Ø§ÙØªØ£Ø«Ùر Ø§ÙØ¨ÙØ¦ÙØ ÙØ§ÙÙØ¯Ø±Ø© عÙÙ ØªÙØ³Ùع Ø§ÙØ¹Ù ÙÙØ§Øª بشÙ٠٠ستدا٠. تسدد Ø§ÙØªÙÙÙÙÙØ¬Ùا تÙÙÙØªÙا Ø®ÙØ§Ù Ù ÙØ³Ù اÙÙÙ Ù Ø§ÙØ£ÙÙ ÙÙ Ø¹Ø¸Ù Ø§ÙØªØ·Ø¨ÙÙØ§Øª.</p> 665 666 <h2>Ø§ÙØ·Ø±Ù٠إÙÙ Ø§ÙØ£Ù ا٠</h2> 667 <p>٠ع است٠رار ØªØ·ÙØ± Ø§ÙØªÙÙÙÙÙØ¬ÙØ§Ø ÙÙ ÙÙÙØ§ Ø£Ù ÙØªÙÙØ¹ تطبÙÙØ§Øª Ø£ÙØ«Ø± ØªØ·ÙØ±Ø§Ù. ست٠ÙÙ Ø±Ø¤ÙØ© اÙÙ٠بÙÙØªØ± Ø§ÙØ·Ø§Ø¦Ø±Ø§Øª بدÙÙ Ø·ÙØ§Ø± Ù Ù ØªØØ¯Ùد اÙÙØ¨Ø§ØªØ§Øª اÙÙØ±Ø¯ÙØ© Ø§ÙØªÙ ØªØØªØ§Ø¬ Ø¥ÙÙ Ø§ÙØªÙ ا٠. Ø³ØªØ³Ù Ø Ø§ÙØÙØ³Ø¨Ø© Ø§ÙØ·Ø±ÙÙØ© باتخاذ ÙØ±Ø§Ø±Ø§Øª ÙÙØ±ÙØ© دÙÙ Ø§ÙØ§Ø¹ØªÙ اد عÙÙ Ø§ÙØ§ØªØµØ§Ù Ø§ÙØ³ØØ§Ø¨Ù. ÙØ³ØªÙÙØ± تÙÙÙØ© Ø§ÙØ¨ÙÙÙØ´ÙÙ ØªØªØ¨Ø¹Ø§Ù Ø´ÙØ§ÙØ§Ù ÙØ³ÙØ³ÙØ© Ø§ÙØªÙØ±ÙØ¯ ٠٠اÙ٠زرعة Ø¥Ù٠اÙ٠ائدة.</p> 668 669 <p>Ù Ø³ØªÙØ¨Ù Ø§ÙØ²Ø±Ø§Ø¹Ø© ÙØ§ ÙØªØ¹ÙÙ ÙÙØ· Ø¨Ø¥ÙØªØ§Ø¬ اÙÙ Ø²ÙØ¯ Ù Ù Ø§ÙØºØ°Ø§Ø¡ - Ø¨Ù ÙØªØ¹ÙÙ Ø¨Ø¥ÙØªØ§Ø¬Ù بشÙ٠٠ستدا٠ÙÙØ¹Ø§Ù ÙØ°ÙÙ. Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙØ§Ø¹Ù ÙØ¥ÙØªØ±ÙØª Ø§ÙØ£Ø´Ùاء Ù٠ا Ø§ÙØ£Ø¯Ùات Ø§ÙØªÙ Ø³ØªØ¬Ø¹Ù ÙØ°Ù Ø§ÙØ±Ø¤ÙØ© ØÙÙÙØ©.</p> 670 `,featured_image:"https://images.unsplash.com/photo-1625246333195-78d9c38ad449?w=1200&h=675&fit=crop&q=80&fm=webp",tags:["Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙØ§Ø¹Ù ÙØ§ÙتعÙÙ Ø§ÙØ¢ÙÙ","Ø§ÙØ²Ø±Ø§Ø¹Ø©","Ø¥ÙØªØ±Ùت Ø§ÙØ£Ø´Ùاء"],reading_time:8,published_at:"2024-01-15",author:{name:"د. سارة تشÙÙ",avatar:"",bio:"Ø§ÙØ±Ø¦Ùس Ø§ÙØªÙÙÙØ°Ù ÙÙØ§Ø¦Ø¯ Ø£Ø¨ØØ§Ø« Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙاعÙ"}}:{title:"The Future of Precision Agriculture: AI and IoT Integration",slug:"future-of-precision-agriculture",content:` 671 <p>The agricultural industry is undergoing a revolutionary transformation, driven by the convergence of artificial intelligence (AI) and Internet of Things (IoT) technologies. This integration is enabling farmers to make data-driven decisions, optimize resource usage, and significantly increase crop yields while reducing environmental impact.</p> 672 673 <h2 style="font-size: 2.5rem; color: #A89483; font-weight: 800;">The Challenge</h2> 674 <p>Today's farmers face unprecedented challenges: climate change, water scarcity, increasing global food demand, and the need for sustainable practices. Traditional farming methods are no longer sufficient to address these complex issues.</p> 675 676 <p>The agricultural sector must produce 70% more food by 2050 to feed a growing global population, yet faces:</p> 677 <ul> 678 <li>Unpredictable weather patterns and extreme climate events</li> 679 <li>Declining water resources and soil degradation</li> 680 <li>Rising costs of fertilizers and pesticides</li> 681 <li>Labor shortages and increasing operational expenses</li> 682 <li>Pressure to reduce environmental impact while maintaining productivity</li> 683 </ul> 684 685 <hr style="border: none; height: 2px; background: linear-gradient(to right, transparent, rgba(196, 173, 157, 0.5), transparent); margin: 3rem 0;" /> 686 687 <h2 style="font-size: 2.5rem; color: #A89483; font-weight: 800;">Our Solution</h2> 688 <p>The combination of AI and IoT creates a powerful ecosystem for modern agriculture, enabling precision farming at scale:</p> 689 690 <h3>1. Real-Time Monitoring</h3> 691 <p>IoT sensors deployed across fields continuously collect data on soil moisture, temperature, humidity, and nutrient levels. This real-time information allows farmers to understand exactly what's happening in their fields at any given moment.</p> 692 693 <h3>2. Predictive Analytics</h3> 694 <p>AI algorithms analyze historical and real-time data to predict crop yields, identify potential pest infestations, and forecast optimal harvest times. Machine learning models can detect patterns that human observers might miss, enabling proactive rather than reactive farming.</p> 695 696 <h3>3. Automated Irrigation</h3> 697 <p>Smart irrigation systems use AI to determine the precise amount of water needed for each section of a field. By considering factors like soil type, crop variety, weather forecasts, and growth stage, these systems optimize water usage while improving crop health.</p> 698 699 <hr style="border: none; height: 2px; background: linear-gradient(to right, transparent, rgba(196, 173, 157, 0.5), transparent); margin: 3rem 0;" /> 700 701 <h2 style="font-size: 2.5rem; color: #A89483; font-weight: 800;">The Results</h2> 702 <p>The impact of AI-powered precision agriculture is transforming farms worldwide. Farms implementing these solutions have reported measurable improvements across all key metrics:</p> 703 <ul> 704 <li><strong>25-30% increase in crop yields</strong> through optimized growing conditions</li> 705 <li><strong>40% reduction in water consumption</strong> via smart irrigation systems</li> 706 <li><strong>60% decrease in pesticide use</strong> with targeted application</li> 707 <li><strong>30% reduction in operational costs</strong>
707 through automation and efficiency</li> 708 <li><strong>50% faster decision-making</strong> with real-time data insights</li> 709 </ul> 710 711 <p>Beyond the numbers, farmers report improved crop quality, reduced environmental impact, and the ability to scale operations sustainably. The technology pays for itself within the first growing season for most implementations.</p> 712 713 <h2>The Road Ahead</h2> 714 <p>As technology continues to evolve, we can expect even more sophisticated applications. Computer vision will enable drones to identify individual plants that need attention. Edge computing will allow for instant decision-making without relying on cloud connectivity. And blockchain technology will provide transparent supply chain tracking from farm to table.</p> 715 716 <p>The future of agriculture is not just about producing more foodâit's about producing it sustainably, efficiently, and intelligently. AI and IoT are the tools that will make this vision a reality.</p> 717 `,featured_image:"https://images.unsplash.com/photo-1625246333195-78d9c38ad449?w=1200&h=675&fit=crop&q=80&fm=webp",tags:["AI & Machine Learning","Agriculture","IoT"],reading_time:8,published_at:"2024-01-15",author:{name:"Dr. Sarah Chen",avatar:"",bio:"Chief Executive Officer & AI Research Lead"}},wee=()=>{const{t:e,i18n:t}=rn("contact"),[n,r]=j.useState({name:"",company:"",email:"",subject:"",message:""}),[i,s]=j.useState({}),[o,a]=j.useState(!1),[l,c]=j.useState(!1),[d,h]=j.useState(""),m=()=>{const y={};return n.name.trim()||(y.name=e("form.validation.nameRequired")),n.email.trim()?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n.email)||(y.email=e("form.validation.emailInvalid")):y.email=e("form.validation.emailRequired"),n.subject.trim()||(y.subject=e("form.validation.subjectRequired")),n.message.trim()||(y.message=e("form.validation.messageRequired")),s(y),Object.keys(y).length===0},f=async y=>{var S;if(y.preventDefault(),!!m())try{a(!0);const _=await pi.submitContact({...n,timestamp:new Date().toISOString()});h(((S=_==null?void 0:_.data)==null?void 0:S.id)||`REF-${Math.floor(1e5+Math.random()*9e5)}`),c(!0),r({name:"",company:"",email:"",subject:"",message:""})}catch(_){console.error("Error submitting contact form:",_),h(`CNT-${Date.now().toString().slice(-6)}`),c(!0),r({name:"",company:"",email:"",subject:"",message:""})}finally{a(!1)}},x=y=>{const{name:S,value:_}=y.target;r(k=>({...k,[S]:_})),i[S]&&s(k=>({...k,[S]:void 0}))},v=[{country:t.language==="ar"?"٠صر":"Egypt",number:"+20 10 21183564",raw:"+201021183564"},{country:t.language==="ar"?"Ø§ÙØ³Ø¹ÙØ¯ÙØ©":"KSA",number:"+966 59 836 6584",raw:"+966598366584"},{country:t.language==="ar"?"Ø§ÙØ¥Ù ارات":"UAE",number:"+971 52 322 9278",raw:"+971523229278"}],b=[{city:t.language==="ar"?"اÙÙØ§Ùرة":"Cairo",country:t.language==="ar"?"٠صر":"EGYPT"},{city:t.language==="ar"?"Ø§ÙØ±Ùاض":"Riyadh",country:t.language==="ar"?"اÙÙ Ù ÙÙØ© Ø§ÙØ¹Ø±Ø¨ÙØ© Ø§ÙØ³Ø¹ÙØ¯ÙØ©":"KSA"},{city:t.language==="ar"?"Ø£Ø¨ÙØ¸Ø¨Ù":"Abu Dhabi",country:t.language==="ar"?"Ø§ÙØ¥Ù ارات Ø§ÙØ¹Ø±Ø¨ÙØ© اÙÙ ØªØØ¯Ø©":"UAE"}];return u.jsxs("div",{className:"atlas-page min-h-screen relative overflow-hidden bg-[#06054b] text-white font-body",children:[u.jsx(Lc,{}),u.jsx(Jo,{}),u.jsxs("main",{className:"relative z-10",children:[u.jsx(np,{title:e("hero.title"),subtitle:e("hero.subtitle"),badge:t.language==="ar"?"Ù ÙØ¸ÙÙ Ø© Ø§ÙØªÙاص٠اÙ٠ؤسسÙ":"AI-ROS Global Communications",routeLabel:t.language==="ar"?"اÙ٠سار 06 / Ø§ÙØªÙØ§ØµÙ Ø§ÙØ¹Ø§ÙÙ Ù":"Route 06 / Global Engagement"}),u.jsxs(Yb,{background:"default",className:"py-20 relative overflow-hidden bg-deep-intelligence-950",children:[u.jsx(ta,{opacity:.35,className:"z-0"}),u.jsx("div",{className:"max-w-7xl mx-auto relative z-10 px-4 sm:px-6",children:u.jsxs("div",{className:"grid lg:grid-cols-12 gap-10 items-start",children:[u.jsx("div",{className:"lg:col-span-7",children:u.jsxs(Gl,{className:"p-8 sm:p-10 rounded-3xl bg-deep-intelligence-900/90 backdrop-blur-xl border border-white/10 shadow-2xl relative overflow-hidden",children:[u.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[u.jsx(Di,{size:"sm",variant:"taupe"}),u.jsx("h2",{className:"text-2xl sm:text-3xl font-bold font-headings text-white",children:e("form.title")})]}),l?u.jsxs("div",{className:"text-center py-12 space-y-6",children:[u.jsx("div",{className:"w-20 h-20 rounded-full bg-ai-taupe/15 border border-ai-taupe/30 flex items-center justify-center mx-auto text-ai-taupe",children:u.jsx(lO,{className:"w-10 h-10 text-ai-taupe"})}),u.jsxs("div",{children:[u.jsx("h3",{className:"text-2xl font-bold font-headings text-white mb-2",children:e("form.success.title")}),u.jsx("p",{className:"text-gray-300 font-body mb-4 max-w-md mx-auto",children:e("form.success.description")}),u.jsxs("p",{className:"text-sm text-gray-400 font-mono",children:[e("form.success.referenceId")," ",u.jsx("span",{className:"text-ai-taupe font-bold",children:d})]})]}),u.jsx(Yt,{onClick:()=>c(!1),variant:"outline",className:"bg-white/5 hover:bg-white/10 text-white border-white/20 hover:border-ai-taupe/40 font-headings",children:e("form.success.sendAnother")})]}):u.jsxs("form",{onSubmit:f,className:"space-y-5",children:[u.jsxs("div",{className:"grid sm:grid-cols-2 gap-5",children:[u.jsxs("div",{children:[u.jsxs("label",{htmlFor:"name",className:"block text-xs font-semibold font-headings uppercase tracking-wider text-ai-taupe mb-2",children:[e("form.labels.name")," *"]}),u.jsx("input",{type:"text",id:"name",name:"name",value:n.name,onChange:x,className:`w-full px-4 py-3 rounded-xl bg-deep-intelligence-950/80 border ${i.name?"border-red-500":"border-white/10 focus:border-ai-taupe"} text-white text-sm outline-none transition-all focus:ring-2 focus:ring-ai-taupe/20`,placeholder:e("form.placeholders.name")}
717),i.name&&u.jsx("p",{className:"mt-1.5 text-xs text-red-400",children:i.name})]}),u.jsxs("div",{children:[u.jsx("label",{htmlFor:"company",className:"block text-xs font-semibold font-headings uppercase tracking-wider text-ai-taupe mb-2",children:e("form.labels.company")}),u.jsx("input",{type:"text",id:"company",name:"company",value:n.company,onChange:x,className:"w-full px-4 py-3 rounded-xl bg-deep-intelligence-950/80 border border-white/10 focus:border-ai-taupe text-white text-sm outline-none transition-all focus:ring-2 focus:ring-ai-taupe/20",placeholder:e("form.placeholders.company")})]})]}),u.jsxs("div",{className:"grid sm:grid-cols-2 gap-5",children:[u.jsxs("div",{children:[u.jsxs("label",{htmlFor:"email",className:"block text-xs font-semibold font-headings uppercase tracking-wider text-ai-taupe mb-2",children:[e("form.labels.email")," *"]}),u.jsx("input",{type:"email",id:"email",name:"email",value:n.email,onChange:x,className:`w-full px-4 py-3 rounded-xl bg-deep-intelligence-950/80 border ${i.email?"border-red-500":"border-white/10 focus:border-ai-taupe"} text-white text-sm outline-none transition-all focus:ring-2 focus:ring-ai-taupe/20`,placeholder:e("form.placeholders.email")}),i.email&&u.jsx("p",{className:"mt-1.5 text-xs text-red-400",children:i.email})]}),u.jsxs("div",{children:[u.jsxs("label",{htmlFor:"subject",className:"block text-xs font-semibold font-headings uppercase tracking-wider text-ai-taupe mb-2",children:[e("form.labels.subject")," *"]}),u.jsx("input",{type:"text",id:"subject",name:"subject",value:n.subject,onChange:x,className:`w-full px-4 py-3 rounded-xl bg-deep-intelligence-950/80 border ${i.subject?"border-red-500":"border-white/10 focus:border-ai-taupe"} text-white text-sm outline-none transition-all focus:ring-2 focus:ring-ai-taupe/20`,placeholder:e("form.placeholders.subject")}),i.subject&&u.jsx("p",{className:"mt-1.5 text-xs text-red-400",children:i.subject})]})]}),u.jsxs("div",{children:[u.jsxs("label",{htmlFor:"message",className:"block text-xs font-semibold font-headings uppercase tracking-wider text-ai-taupe mb-2",children:[e("form.labels.message")," *"]}),u.jsx("textarea",{id:"message",name:"message",value:n.message,onChange:x,rows:5,className:`w-full px-4 py-3 rounded-xl bg-deep-intelligence-950/80 border ${i.message?"border-red-500":"border-white/10 focus:border-ai-taupe"} text-white text-sm outline-none transition-all focus:ring-2 focus:ring-ai-taupe/20 resize-none`,placeholder:e("form.placeholders.message")}),i.message&&u.jsx("p",{className:"mt-1.5 text-xs text-red-400",children:i.message})]}),u.jsx(Yt,{type:"submit",size:"lg",disabled:o,className:"w-full bg-ai-taupe hover:bg-ai-taupe-600 text-deep-intelligence-950 font-headings font-bold py-3.5 rounded-xl shadow-lg shadow-ai-taupe/20 transition-all active:scale-[0.99] text-base",children:o?u.jsxs("div",{className:"flex items-center justify-center gap-2",children:[u.jsx("div",{className:"w-4 h-4 border-2 border-deep-intelligence-950 border-t-transparent rounded-full animate-spin"}),e("form.submit.sending")]}):u.jsxs("div",{className:"flex items-center justify-center gap-2",children:[u.jsx(SO,{className:"w-4 h-4 rtl:rotate-180"}),e("form.submit.send")]})})]})]})}),u.jsxs("div",{className:"lg:col-span-5 space-y-6",children:[u.jsx(Gl,{className:"p-7 rounded-3xl bg-deep-intelligence-900/90 backdrop-blur-xl border border-white/10 hover:border-ai-taupe/40 transition-all duration-300 shadow-xl group",delay:100,children:u.jsxs("div",{className:"flex items-start gap-4",children:[u.jsx("div",{className:"w-12 h-12 rounded-2xl bg-ai-taupe/15 border border-ai-taupe/30 flex items-center justify-center text-ai-taupe flex-shrink-0 group-hover:scale-105 transition-transform",children:u.jsx(q8,{className:"w-6 h-6 no-flip"})}),u.jsxs("div",{children:[u.jsx("div",{className:"text-xs font-semibold text-ai-taupe font-headings uppercase tracking-wider mb-1",children:e("info.email.title")}),u.jsx("p",{className:"text-gray-400 text-xs mb-2",children:e("info.email.description")}),u.jsx("a",{href:"mailto:[email protected]",className:"text-lg font-bold font-headings text-white hover:text-ai-taupe transition-colors inline-flex items-center gap-2",children:"[email protected]"})]})]})}),u.jsx(Gl,{className:"p-7 rounded-3xl bg-deep-intelligence-900/90 backdrop-blur-xl border border-white/10 hover:border-ai-taupe/40 transition-all duration-300 shadow-xl group",delay:200,children:u.jsxs("div",{className:"flex items-start gap-4",children:[u.jsx("div",{className:"w-12 h-12 rounded-2xl bg-ai-taupe/15 border border-ai-taupe/30 flex items-center justify-center text-ai-taupe flex-shrink-0 group-hover:scale-105 transition-transform",children:u.jsx(H8,{className:"w-6 h-6 no-flip"})}),u.jsxs("div",{className:"flex-1",children:[u.jsx("div",{className:"text-xs font-semibold text-ai-taupe font-headings uppercase tracking-wider mb-1",children:e("info.phone.title")}),u.jsx("p",{className:"text-gray-400 text-xs mb-3.5",children:e("info.phone.description")}),u.jsx("div",{className:"space-y-2.5",children:v.map((y,S)=>u.jsxs("div",{className:"flex items-center justify-between p-2.5 rounded-xl bg-white/5 border border-white/5 hover:border-ai-taupe/30 transition-all",children:[u.jsx("span",{className:"text-xs font-bold font-headings text-ai-taupe-100 px-2 py-0.5 rounded-md bg-white/5",children:y.country}),u.jsx("a",{href:`tel:${y.raw}`,className:"text-sm font-semibold font-headings text-white hover:text-ai-taupe transition-colors ltr:font-mono",dir:"ltr",children:y.number})]},S))})]})]})}),u.jsx(Gl,{className:"p-7 rounded-3xl bg-deep-intelligence-900/90 backdrop-blur-xl border border-white/10 hover:border-ai-taupe/40 transition-all duration-300 shadow-xl group",delay:300,children:u.jsxs("div",{className:"flex items-start gap-4",children:[u.jsx("div",{className:"w-12 h-12 rounded-2xl bg-ai-taupe/15 border border-ai-taupe/30 flex items-center justify-center text-ai-taupe flex-shrink-0 group-hover:scale-105 transition-transform",children:u.jsx(vx,{className:"w-6 h-6"})}),u.jsxs("div",{className:"flex-1",children:[u.jsx("div",{className:"text-xs font-semibold text-ai-taupe font-headings uppercase tracking-wider mb-1",children:e("info.location.title")}),u.jsx("p",{className:"text-sm font-semibold font-headings text-white mb-3 leading-relaxed",children:e("info.location.description")}),u.jsx("div",{className:"grid grid-cols-3 gap-2 pt-1",children:b.map((y,S)=>u.jsxs("div",{className:"p-2.5 rounded-xl bg-white/5 border border-white/5 text-center",children:[u.jsx("div",{className:"text-xs font-bold font-headings text-white",children:y.city}),u.jsx("div",{className:"text-[10px] text-ai-taupe mt-0.5",children:y.country})]},S))})]})]})})]})]})})]})]}),u.jsx(ea,{})]})};function R6({index:e,eyebrow:t,title:n,description:r,className:i=""}){return u.jsxs("div",{className:`section-heading ${i}`,children:[u.jsxs("span",{className:"section-heading__index",children:[u.jsx("i",{"aria-hidden":"true"}),e]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.16em] text-[#c9a959] mb-3 font-headings",children:t}),u.jsx("h2",{className:"text-3xl sm:text-5xl lg:text-6xl font-bold font-headings text-white leading-[1.05] tracking-tight",children:n}),r&&u.jsx("p",{className:"max-w-xl mt-5 text-sm sm:text-base text-gray-300 font-body leading-relaxed",children:r})]})]})}function O6(){const{t:e,i18n:t}=rn("home"),n=t.language==="ar",[r,i]=j.useState(!1),[s,o]=j.useState(null),[a,l]=j.useState(""),c=(m,f)=>{o(m),l(f),i(!0)},d=[{id:"01",numericId:1,length:n?"3â6 Ø£Ø´ÙØ±":"3â6 months",title:n?"Ù
Ø³Ø±ÙØ¹ اÙÙ
سار اÙÙ
ÙÙÙ ÙÙØ°Ùاء Ø§ÙØ§ØµØ·ÙاعÙ":"AI Career Accelerator",subtitle:n?"ابÙ٠اÙÙ
ÙØ§Ø±Ø§Øª Ø§ÙØ¹Ù
ÙÙØ© Ø§ÙØªÙ ÙØªØ·ÙØ¨ÙØ§ Ø¯ÙØ±Ù اÙÙØ§Ø¯Ù
.":"Build the skills your next role requires.",description:n?"Ù
سار ØªØ¯Ø±ÙØ¨Ù Ù
ÙØ«Ù ÙÙÙ
ÙÙÙÙÙ ÙØ§ÙØ·ÙØ§Ø¨ ÙØªØ±Ø¬Ù
Ø© اÙÙ
Ø¹Ø±ÙØ© Ø¨Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·Ùاع٠إÙÙ ÙÙØ§Ø¡Ø© عÙ
ÙÙØ© ÙÙ
Ø´Ø§Ø±ÙØ¹ Ø¬Ø§ÙØ²Ø© ÙÙ
ÙÙ Ø§ÙØ£Ø¹Ù
اÙ.":"An intensive learning route for professionals and students ready to translate AI curiosity into practical, portfolio-ready capability.",image:"/images/trainings/ai-career.jpg",icon:$5,audience:n?"اÙÙ
ÙÙÙÙÙ ÙØ§ÙØ·ÙØ§Ø¨":"Professionals & students",outcomes:n?["أسس تعÙÙ
Ø§ÙØ¢ÙØ© ÙÙÙØ¯Ø³Ø© Ø§ÙØ¨ÙØ§ÙØ§Øª Ø§ÙØªØ·Ø¨ÙÙÙØ©","Ø§Ø³ØªØ±Ø§ØªÙØ¬Ùات ÙØªØ·Ø¨ÙÙØ§Øª Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·Ùاع٠عÙ٠أرض اÙÙØ§Ùع","Ø¨ÙØ§Ø¡ Ù
Ù٠اÙÙ
Ø´Ø§Ø±ÙØ¹Ø Ø§ÙØªÙجÙ٠اÙÙ
ÙÙÙØ ÙÙØ±Øµ Ø§ÙØªÙظÙÙ"]:["Machine learning and data foundations","Applied AI strategy and implementation","Portfolio-building, mentoring, and career guidance"],alignment:n?"اÙÙ
سار Ø§ÙØ±Ø§Ø¦Ø¯":"Flagship route"},{id:"02",numericId:2,length:n?"2â4 Ø£Ø´ÙØ±":"2â4 months",title:n?"أتÙ
تة Ø§ÙØ£Ø¹Ù
Ø§Ù ÙØ§ÙعÙ
ÙÙØ§Øª Ø¨Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙاعÙ":"AI Automation for Business & Operations",subtitle:n?"ØÙÙÙ Ø³ÙØ± Ø§ÙØ¹Ù
٠اÙÙØ¯Ù٠إÙÙ Ø£ÙØ¸Ù
Ø© Ø¢ÙÙØ© ذÙÙØ©.":"Turn manual workflow into automated intelligence.",description:n?"Ø¨Ø±ÙØ§Ù
ج ÙÙÙ
ؤسسات ÙÙØ±Ù Ø§ÙØ¹Ù
Ù ÙÙØ§Ø¯Ø© Ø§ÙØ¹Ù
ÙÙØ§Øª ÙØªØµÙ
ÙÙ
ÙÙØ´Ø± ØÙÙÙ ÙØ£Ø¯Ùات أتÙ
تة Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·Ùاع٠ÙÙ Ø¨ÙØ¦Ø© Ø§ÙØ¹Ù
٠اÙÙÙÙ
ÙØ©.":"For teams, founders, and operational leaders looking to de
717sign and deploy AI-driven automation inside their actual operations.",image:"/images/trainings/ai-automation.jpg",icon:Y8,audience:n?"اÙÙØ±Ù ÙÙØ§Ø¯Ø© Ø§ÙØ¹Ù
ÙÙØ§Øª":"Teams & ops leaders",outcomes:n?["ØªØ®Ø·ÙØ· ÙÙÙØ¯Ø³Ø© Ø³ÙØ± Ø§ÙØ¹Ù
Ù Ø¨Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙاعÙ","تطÙÙØ± ÙØ¨Ùاء ÙÙÙØ§Ø¡ ÙØ£Ø¯Ùات أتÙ
تة Ù
خصصة","ÙÙØ§Ø³ Ø§ÙØ£Ø«Ø± Ø§ÙØªØ´ØºÙÙÙ ÙØ§Ø³ØªÙ
Ø±Ø§Ø±ÙØ© اÙÙ
ÙØ¸ÙÙ
Ø©"]:["Workflow mapping and automation design","Custom tooling and agent integration","Measurement, governance, and sustained impact"],alignment:n?"اÙÙ
سار اÙÙ
ؤسسÙ":"Enterprise route"},{id:"03",numericId:3,length:n?"Ù
خصص ØØ³Ø¨ Ø§ÙØ·Ùب":"Customised",title:n?"Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·Ùاع٠ÙÙØ§Ø¨ØªÙار ÙØ§ÙاستداÙ
Ø©":"AI for Social Impact & Sustainable Innovation",subtitle:n?"ÙØ¸Ù٠تÙÙÙØ§Øª Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙØ§Ø¹Ù ÙØÙ ØªØØ¯Ùات اÙÙ
جتÙ
ع.":"Apply AI to real-world community and environmental challenges.",description:n?"Ù
سار Ù
ÙØ¬Ù ÙÙÙ
ÙØ¸Ù
ات ØºÙØ± Ø§ÙØ±Ø¨ØÙØ©Ø Ø§ÙÙ
بادرات Ø§ÙØªÙÙ
ÙÙØ©Ø ÙØ±Ùاد Ø§ÙØ£Ø¹Ù
Ø§Ù ÙØªØ·Ø¨ÙÙ Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·Ùاع٠ÙÙ Ø§ÙØ§Ø³ØªØ¯Ø§Ù
Ø© ÙØ£ÙØ¯Ø§Ù Ø§ÙØªÙÙ
ÙØ© اÙÙ
ستداÙ
Ø© (SDGs).":"A route for NGOs, founders, and community organisations applying artificial intelligence to sustainability, SDGs, and local resilience.",image:"/images/trainings/ai-social.jpg",icon:Hh,audience:n?"اÙÙ
بادرات ÙØ±Ùاد Ø§ÙØ£Ø¹Ù
اÙ":"Innovators & NGOs",outcomes:n?["تصÙ
ÙÙ
ØÙÙÙ Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·Ùاع٠اÙÙ
ØªÙØ§ÙÙØ© Ù
ع Ø£ÙØ¯Ø§Ù Ø§ÙØªÙÙ
ÙØ©","Ø§ÙØ§Ø¨ØªÙار اÙÙ
Ø±ØªÙØ² عÙ٠خدÙ
Ø© ÙØªÙÙ
ÙØ© اÙÙ
جتÙ
ع","Ø¨ÙØ§Ø¡ Ø§ÙØ´Ø±Ø§ÙØ§ØªØ Ø§ÙØªÙ
ÙÙÙØ ÙÙØ§Ø¨ÙÙØ© Ø§ÙØªÙسع"]:["SDG-aligned AI solution framing","Community-centred product prototyping","Partnership, funding, and scaling roadmaps"],alignment:n?"اÙÙ
سار اÙÙ
جتÙ
عÙ":"Impact route"}],h=n?[["اÙÙ
دة","3â6 Ø£Ø´ÙØ±","2â4 Ø£Ø´ÙØ±","ØØ³Ø¨ اÙÙ
ØªØ·ÙØ¨Ø§Øª"],["Ø§ÙØµÙغة","Ù
دÙ
ج (ØØ¶Ùر٠+ Ø¹Ù Ø¨ÙØ¹Ø¯)","Ø¹Ù Ø¨ÙØ¹Ø¯ / ÙØ±Ø´ عÙ
Ù","Ù
خصص ÙÙØ¬ÙØ©"],["اÙÙ
ستÙÙ","ØªØ£Ø³ÙØ³Ù Ø¥ÙÙ Ù
ØªÙØ³Ø·","Ù
ØªÙØ³Ø· Ø¥ÙÙ Ù
ØªÙØ¯Ù
","جÙ
ÙØ¹ اÙÙ
ستÙÙØ§Øª"],["اÙÙ
خرجات","Ù
ÙÙ Ù
Ø´Ø§Ø±ÙØ¹ + Ø´ÙØ§Ø¯Ø©","ÙØ¸Ø§Ù
أتÙ
تة ÙÙØ¯ Ø§ÙØªØ´ØºÙÙ","ÙÙ
ÙØ°Ø¬ Ø£ÙÙÙ + خطة تÙÙÙØ°"],["Ø§ÙØªØ·Ø¨ÙÙ","Ø¨ÙØ§Ø¡ ÙØªØ·ÙÙØ± ÙØ±Ø¯Ù","تطبÙ٠داخ٠اÙÙ
ؤسسة","أثر Ù
جتÙ
Ø¹Ù ÙØªÙÙ
ÙÙ"]]:[["Duration","3â6 months","2â4 months","Flexible"],["Format","Hybrid (online & cohort)","Online / workshops","Custom sprint"],["Level","Foundational to intermediate","Intermediate to advanced","All levels"],["Output","Portfolio + certification","Live automated workflow","Prototype + roadmap"],["Application","Personal/professional build","Operational rollout","Community & SDG initiatives"]];return u.jsxs("div",{className:"atlas-page min-h-screen relative overflow-hidden bg-[#06054b] text-white font-body",children:[u.jsx(Lc,{}),u.jsx(Jo,{}),u.jsxs("main",{id:"top",className:"relative z-10 pt-28 sm:pt-36",children:[u.jsxs("div",{className:"atlas-route-rail hidden lg:block","aria-hidden":"true",children:[u.jsx("svg",{viewBox:"0 0 86 900",preserveAspectRatio:"none",children:u.jsx("path",{d:"M50 0C5 78 89 130 45 221S7 377 54 456 83 627 35 722s21 121 10 178"})}),u.jsx("span",{className:"atlas-route-rail__node atlas-route-rail__node--1"}),u.jsx("span",{className:"atlas-route-rail__node atlas-route-rail__node--2"}),u.jsx("span",{className:"atlas-route-rail__node atlas-route-rail__node--3"}),u.jsx("span",{className:"atlas-route-rail__node atlas-route-rail__node--4"}),u.jsx("small",{className:"atlas-route-rail__label atlas-route-rail__label--1",children:n?"01 / Ø§Ø³ØªÙØ´Ù":"01 / explore"}),u.jsx("small",{className:"atlas-route-rail__label atlas-route-rail__label--2",children:n?"02 / طبÙÙ":"02 / apply"}),u.jsx("small",{className:"atlas-route-rail__label atlas-route-rail__label--3",children:n?"03 / ÙØ§Ø±Ù":"03 / compare"}),u.jsx("small",{className:"atlas-route-rail__label atlas-route-rail__label--4",children:n?"04 / ØªÙØ§ØµÙ":"
71704 / connect"})]}),u.jsxs("section",{className:"atlas-hero px-6 sm:px-12 lg:px-20 max-w-7xl mx-auto","aria-labelledby":"hero-title",children:[u.jsx(Me.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{duration:.6},className:"atlas-hero__route-label",children:n?"اÙÙ
سار 01 / Ù
سارات Ø§ÙØªØ¹ÙÙÙ
ÙØ§ÙØªØ¯Ø±ÙØ¨":"Route 01 / Learning systems"}),u.jsxs(Me.div,{initial:{opacity:0,y:25},animate:{opacity:1,y:0},transition:{duration:.7,ease:[.16,1,.3,1]},className:"hero-copy max-w-4xl",children:[u.jsxs("p",{className:"text-xs sm:text-sm font-bold uppercase tracking-[0.18em] text-[#c9a959] mb-4 font-headings flex items-center gap-2",children:[u.jsx("span",{className:"w-2 h-2 rounded-full bg-[#c9a959] animate-ping"}),n?"Ø£ÙØ§Ø¯ÙÙ
ÙØ© Ø§ÙØªØ¯Ø±Ùب ÙØ¨Ùاء اÙÙØ¯Ø±Ø§Øª Ø¨Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙاعÙ":"AI-powered education & training"]}),u.jsx("h1",{id:"hero-title",className:"text-4xl sm:text-6xl lg:text-7xl font-bold font-headings text-white leading-[1.08] tracking-tight mb-6",children:n?u.jsxs(u.Fragment,{children:["اختر Ù
سار Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙاعÙ",u.jsx("br",{}),"Ø§ÙØ°Ù ",u.jsx("em",{className:"text-[#c9a959] not-italic",children:"ÙØ¯Ùع٠ÙÙØ£Ù
اÙ
."})]}):u.jsxs(u.Fragment,{children:["Choose the AI route",u.jsx("br",{}),"that ",u.jsx("em",{className:"text-[#c9a959] not-italic",children:"moves you forward."})]})}),u.jsx("p",{className:"hero-copy__intro max-w-2xl text-base sm:text-lg text-gray-300 font-body leading-relaxed mb-8",children:n?"براÙ
ج Ù
ÙØ«ÙØ© ÙÙ
ÙØ¬ÙØ© ÙÙÙÙØ§Ø¯Ø± ÙØ§ÙÙØ±Ù ÙØ§ÙÙ
ؤسسات Ø§ÙØ³Ø§Ø¹ÙØ© ÙØ¨Ùاء ÙÙØ§Ø¡Ø© ØÙÙÙÙØ© ÙÙ
ÙÙ
ÙØ³Ø© ÙÙ Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙاعÙâØ¨Ø®Ø·Ù ØªÙØ§Ùب Ù
ØªØ·ÙØ¨Ø§Øª اÙÙ
Ø³ØªÙØ¨Ù.":"Focused programmes for people and teams who want to build meaningful AI capabilityâat a pace that fits the work ahead."}),u.jsxs("div",{className:"flex flex-wrap items-center gap-4 pt-2",children:[u.jsx(Me.div,{whileHover:{scale:1.04,y:-2},whileTap:{scale:.96},children:u.jsxs("a",{href:"#programmes",className:"inline-flex items-center justify-center gap-3 px-7 py-3.5 rounded-xl font-headings font-bold text-sm bg-[#c9a959] hover:bg-[#dcc277] text-[#16263d] shadow-lg shadow-[#c9a959]/20 transition-all",children:[n?"Ø§Ø³ØªÙØ´Ù اÙÙ
سارات Ø§ÙØªØ¯Ø±ÙØ¨ÙØ©":"Explore learning routes",u.jsx(Fi,{className:"w-4 h-4 rtl:rotate-180"})]})}),u.jsx(Me.div,{whileHover:{scale:1.04,y:-2},whileTap:{scale:.96},children:u.jsxs(Yt,{onClick:()=>c(1,d[0].title),variant:"outline",className:"bg-white/5 hover:bg-white/10 text-white border-white/20 hover:border-[#c9a959]/40 font-headings font-semibold px-6 py-3.5 h-auto rounded-xl backdrop-blur-md transition-all",children:[u.jsx(td,{className:"w-4 h-4 mr-2 rtl:ml-2 rtl:mr-0 text-[#c9a959]"}),n?"Ø³Ø¬Ù Ø§ÙØ¢Ù ÙÙ Ø§ÙØ¨Ø±Ø§Ù
ج":"Register for Training"]})})]})]}),u.jsxs("div",{className:"hero-marks hidden md:flex absolute bottom-12 right-12 rtl:right-auto rtl:left-12 gap-8 text-gray-400 font-headings text-xs tracking-widest uppercase opacity-70",children:[u.jsx("span",{children:"CAIRO / 30.0444° N"}),u.jsx("span",{children:"AI-ROS / 2026"})]}),u.jsxs("a",{className:"hero-scroll inline-flex items-center gap-2 text-xs font-bold font-headings uppercase tracking-wider text-gray-400 hover:text-[#c9a959] transition-colors mt-12",href:"#programmes",children:[u.jsx("span",{children:n?"Ø§ÙØ²Ù ÙÙØ§Ø³ØªÙشاÙ":"Scroll to explore"}),u.jsx(D8,{className:"w-4 h-4 text-[#c9a959] animate-bounce"})]})]}),u.jsxs("section",{className:"statement-strip","aria-label":"AI-ROS approach",children:[u.jsxs("p",{children:[u.jsx("span",{children:n?"Ù
٠اÙÙØ¶ÙÙ ÙØ§ÙÙ
Ø¹Ø±ÙØ©":"From curiosity"})," ",n?"Ø¥Ù٠اÙÙÙØ§Ø¡Ø©.":"to capability."," ",u.jsx("span",{children:n?"Ù
Ù Ø§ÙØ£ÙÙØ§Ø±":"From ideas"})," ",n?"Ø¥ÙÙ Ø£ÙØ¸Ù
Ø© ÙØ§Ø¨ÙØ© ÙÙØªØ·Ø¨ÙÙ.":"to implementable systems."," ",u.jsx("span",{children:n?"ÙÙ
Ù Ø§ÙØªØ¹ÙÙ
":"From learning"})," ",n?"Ø¥ÙÙ Ø§ÙØ£Ø«Ø± Ø§ÙØÙÙÙÙ.":"to impact."]}),u.jsxs("div",{className:"statement-strip__coordinates",children:["30.0444° N / 31.2357° E ",u.jsx("i",{"aria-hidden":"true"})]})]}),u.jsxs("section",{className:"py-24 px-6 sm:px-12 lg:px-20 max-w-7xl mx-auto",id:"programmes",children:[u.jsx(R6,{index:"01",eyebrow:n?"ØÙÙØ¨Ø© Ø§ÙØ¨Ø±Ø§Ù
ج Ø§ÙØªØ¯Ø±ÙØ¨ÙØ©":"The programme portfolio",title:n?"Ø«ÙØ§Ø«Ø© Ù
سارات ØªØ¯Ø±ÙØ¨ÙØ©Ø Ù
بÙÙØ© ÙØªØÙÙÙ ÙÙÙØ© ÙÙØ¹ÙØ©.":"Three routes, built for different kinds of momentum.",description:n?"ابدأ باÙÙ
سار Ø§ÙØªØ¹ÙÙÙ
Ù Ø§ÙØ°Ù ÙØ·Ø§Ø¨Ù Ø·Ù
ÙØÙØ جدÙÙÙ Ø§ÙØ²Ù
ÙÙØ ÙØ§ØØªÙØ§Ø¬Ø§ØªÙ Ø§ÙØ¹Ù
ÙÙØ©.":"Start with the learning route that matches your ambition, timeline, and practical context."}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 mt-14",children:d.map((m,f)=>{const x=m.icon,v=f===0?-4:f===1?4:-2.5,b=f===0?-1.5:f===1?1.5:-.8;return u.jsxs(Me.article,{initial:"offscreen",whileInView:"onscreen",viewport:{once:!0,amount:.2},variants:{offscreen:{y:120,rotate:v,opacity:0,scale:.9},onscreen:{y:0,rotate:b,opacity:1,scale:1,transition:{type:"spring",bounce:.35,duration:.9,delay:f*.15}}},whileHover:{y:-14,rotate:0,scale:1.03,transition:{type:"spring",stiffness:450,damping:25}},className:"group relative flex flex-col overflow-hidden rounded-3xl bg-white text-[#16263d] border border-[#c9a959]/30 shadow-2xl hover:shadow-[0_30px_70px_rgba(201,169,89,0.35)] hover:border-[#c9a959] transition-all duration-300 transform-gpu",children:[u.jsxs("div",{className:"relative h-56 w-full overflow-hidden bg-[#06054b]",children:[u.jsx("img",{src:m.image,alt:m.title,className:"w-full h-full object-cover transition-transform duration-700 group-hover:scale-110",onError:y=>{y.target.src="/assets/brand/ai-ros-logo-dark.png",y.target.className="w-full h-full object-contain p-8 bg-[#06054b]"}}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/70 via-black/20 to-black/30"}),u.jsxs("div",{className:"absolute top-4 left-4 rtl:left-auto rtl:right-4 flex items-center gap-1.5 bg-[#06054b]/95 backdrop-blur-md border border-[#c9a959]/50 px-3.5 py-1.5 rounded-full text-white text-xs font-bold font-headings shadow-lg",children:[u.jsx("span",{className:"w-2 h-2 rounded-full bg-[#c9a959] animate-pulse"}),m.id]}),u.jsx("div",{className:"absolute bottom-4 right-4 rtl:right-auto rtl:left-4 bg-[#c9a959] text-[#16263d] px-3.5 py-1.5 rounded-lg text-xs font-bold font-headings shadow-xl",children:m.length}),u.jsx(Me.div,{whileHover:{rotate:18,scale:1.2},className:"absolute top-4 right-4 rtl:right-auto rtl:left-4 text-[#c9a959] bg-[#06054b]/90 p-2 rounded-xl border border-[#c9a959]/40 shadow-lg",children:u.jsx(x,{className:"w-5 h-5"})})]}),u.jsxs("div",{className:"p-7 flex flex-col flex-1 bg-white text-[#16263d]",children:[u.jsx("p",{className:"text-xs font-bold uppercase tracking-wider text-[#ac8181] font-headings mb-1.5",children:m.alignment}),u.jsx("h3",{className:"font-headings font-bold text-2xl text-[#16263d] mb-2.5 leading-snug group-hover:text-[#c9a959] transition-colors",children:m.title}),u.jsx("p",{className:"text-xs sm:text-sm font-semibold text-[#253d5b] mb-3",children:m.subtitle}),u.jsx("p",{className:"text-xs sm:text-sm text-gray-600 leading-relaxed mb-5",children:m.description}),u.jsxs("div",{className:"mt-auto pt-4 border-t border-gray-100 flex items-center gap-2",children:[u.jsx("span",{className:"text-xs text-[#ac8181] uppercase font-bold tracking-wider",children:n?"اÙÙØ¦Ø© اÙÙ
Ø³ØªÙØ¯ÙØ©:":"For:"}),u.jsx("strong",{className:"text-xs text-gray-800 font-semibold",children:m.audience})]}),u.jsxs("div",{className:"flex items-center justify-between gap-3 mt-5 pt-4 border-t border-gray-100",children:[u.jsxs("a",{href:`#programme-${m.id}`,className:"text-xs font-bold text-[#16263d] hover:text-[#ac8181] inline-flex items-center gap-1.5 transition-colors",children:[u.jsx("span",{children:n?"ØªÙØ§ØµÙ٠اÙÙ
سار":"See what you'll build"}),u.jsx(Fi,{size:13,className:"rtl:rotate-180 text-[#c9a959]"})]}),u.jsxs(Me.button,{whileHover:{scale:1.06,backgroundColor:"#dcc277"},whileTap:{scale:.94},onClick:()=>c(m.numericId,m.title),className:"px-5 py-2.5 rounded-xl bg-[#c9a959] text-[#16263d] font-headings font-bold text-xs shadow-lg shadow-[#c9a959]/25 transition-all flex items-center gap-1.5",children:[u.jsx(Qi,{size:13}),u.jsx("span",{children:n?"Ø³Ø¬Ù Ø§ÙØ¢Ù":"Enroll Now"})]})]})]})]},m.id)})})]}),u.jsxs(Me.section,{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.8},className:"pathway-section","aria-labelledby":"pathway-title",children:[u.jsxs("div",{className:"pathway-section__contours","aria-hidden":"true",children:[u.jsx("span",{}),u.jsx("span",{}),u.jsx("span",{})]}),u.jsxs("div",{className:"pathway-section__aside",children:[u.jsx("p",{className:"eyebrow text-xs font-bold uppercase tracking-wider text-[#ac8181] font-headings mb-3",children:n?"Ù
صÙ
Ù
Ø© Ø®ØµÙØµØ§Ù ÙØ³ÙاÙÙ ÙØ£ÙداÙÙ":"Designed around your context"}),u.jsx("h2",{id:"pathway-title",className:"text-3xl sm:text-5xl font-bold font-headings text-[#16263d] leading-[1.02] mb-6",children:n?"ÙÙØ³ Ù
جرد ÙØªØ§ÙÙØ¬ Ø¯ÙØ±Ø§Øª تÙÙÙØ¯Ù.":"Not another course catalogue."}),u.jsx("p",{className:"text-base text-gray-700 font-body leading-relaxed mb-6",children:n?"ÙØ±Ø¨Ø· ÙÙ Ù
سار ØªØ¯Ø±ÙØ¨Ù اÙÙ
Ø¹Ø±ÙØ© Ø§ÙØ£Ø³Ø§Ø³ÙØ© Ø¨Ø§ÙØªØ·Ø¨ÙÙ Ø§ÙØ¹Ù
Ù٠اÙÙ
Ø¨Ø§Ø´Ø±Ø Ø¨ØÙØ« تستÙ
ر ÙØªØ§Ø¦Ø¬ Ø§ÙØªØ¯Ø±Ùب ÙØ£Ø«Ø±Ù Ù٠عÙ
ÙÙ ÙÙ
Ø´Ø±ÙØ¹Ù بعد Ø§ÙØªÙاء Ø§ÙØ¨Ø±ÙاÙ
ج.":"Every programme connects foundational knowledge to hands-on implementation, so the outcome has a life beyond the classroom."}),u.jsxs("button",{onClick:()=>c(1,"Training Route"),className:"inline-flex items-center gap-2 text-sm font-bold font-headings text-[#16263d] hover:text-[#ac8181] border-b-2 border-[#16263d] pb-1 transition-colors",children:[n?"خطط ÙÙ
Ø³Ø§Ø±Ù Ø§ÙØªØ¹ÙÙÙ
Ù Ù
Ø¹ÙØ§":"Plan your learning route",u.jsx(O0,{size:17,className:"rtl:rotate-90"})]})]}),u.jsxs("ol",{className:"pathway-steps",children:[u.jsxs("li",{children:[u.jsx("span",{children:"01"}),u.jsxs("div",{children:[u.jsx("h3",{className:"font-headings font-bold text-xl text-[#16263d]",children:n?"ØªÙØ¬ÙÙ ÙØªØØ¯Ùد (Orient)":"Orient"}),u.jsx("p",{className:"text-sm text-gray-600 mt-1",children:n?"ØªØØ¯Ùد Ø§ÙØªØØ¯ÙØ§ØªØ Ø§ÙØ·Ù
ÙØØ ÙØ§ÙÙÙØ§Ø¡Ø§Øª اÙÙ
Ø³ØªÙØ¯ÙØ© Ø§ÙØªÙ ØªØØªØ§Ø¬Ùا Ø®Ø·ÙØªÙ اÙÙØ§Ø¯Ù
Ø©.":"Clarify the problem, ambition, and capability you need next."})]})]}),u.jsxs("li",{children:[u.jsx("span",{children:"02"}),u.jsxs("div",{children:[u.jsx("h3",{className:"font-headings font-bold text-xl text-[#16263d]",children:n?"Ø¨ÙØ§Ø¡ عÙ
ÙÙ (Build)":"Build"}),u.jsx("p",{className:"text-sm text-gray-600 mt-1",children:n?"Ø§ÙØªØ¹ÙÙ
Ù
Ù Ø®ÙØ§Ù Ø§ÙØ¹Ù
٠اÙÙ
باشر عÙÙ Ø§ÙØ£Ø¯Ùات ÙØ§Ùأطر ÙÙ
Ø´Ø§Ø±ÙØ¹ Ø¨ÙØ¦Ø© Ø§ÙØ¹Ù
Ù Ø§ÙØÙÙÙÙØ©.":"Learn by working with tools, frameworks, and real project conditions."})]})]}),u.jsxs("li",{children:[u.jsx("span",{children:"03"}),u.jsxs("div",{children:[u.jsx("h3",{className:"font-headings font-bold text-xl text-[#16263d]",children:n?"تطبÙÙ ÙØ¥Ùتاج (Apply)":"Apply"}),u.jsx("p",{className:"text-sm text-gray-600 mt-1",children:n?"Ø§ÙØ®Ø±Ùج Ø¨ÙØªØ§Ø¦Ø¬ ÙÙ
Ø´Ø§Ø±ÙØ¹ عÙ
ÙÙØ© Ù
ÙÙ
ÙØ³Ø© ÙÙ
ÙÙÙ ØªÙØ¸ÙÙÙØ§ ÙÙØ±Ø§Ù ÙÙ ÙØ¸ÙÙØªÙ Ø£Ù ÙØ±ÙÙÙ.":"Leave with a practical outcome you can take into your role, team, or venture."})]})]})]})]}),u.jsx("section",{className:"detail-section","aria-label":"Programme details",children:d.map((m,f)=>u.jsxs(Me.article,{initial:{opacity:0,y:35},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-60px"},transition:{duration:.7},whileHover:{scale:1.01},className:`programme-detail programme-detail--${f%2===0?"navy":"cream"}`,id:`programme-${m.id}`,children:[u.jsxs("div",{className:"programme-detail__header",children:[u.jsx("span",{children:m.id}),u.jsx("p",{children:m.alignment})]}
717),u.jsxs("div",{className:"programme-detail__content",children:[u.jsxs("div",{children:[u.jsxs("p",{className:"eyebrow text-xs font-bold tracking-wider uppercase mb-2",children:[m.length," / ",m.audience]}),u.jsx("h2",{className:"font-headings font-bold text-2xl sm:text-3xl mb-3",children:m.title}),u.jsx("p",{className:"programme-detail__description text-sm leading-relaxed mb-6",children:m.description})]}),u.jsx("ul",{className:"space-y-3 mb-8",children:m.outcomes.map(x=>u.jsxs("li",{className:"flex items-start gap-2.5 text-xs sm:text-sm",children:[u.jsx(aO,{size:16,strokeWidth:2.5,className:"text-[#c9a959] flex-shrink-0 mt-0.5"}),u.jsx("span",{children:x})]},x))})]}),u.jsxs(Me.button,{whileHover:{scale:1.03},whileTap:{scale:.97},onClick:()=>c(m.numericId,m.title),className:"programme-detail__button px-6 py-3 rounded-xl font-headings font-bold text-xs sm:text-sm inline-flex items-center gap-2 shadow-lg",children:[n?"سج٠ÙÙ ÙØ°Ø§ Ø§ÙØ¨Ø±ÙاÙ
ج":"Register for this Programme",u.jsx(O0,{size:17,className:"rtl:rotate-90"})]})]},m.id))}),u.jsxs(Me.section,{initial:{opacity:0,y:35},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-60px"},transition:{duration:.7},className:"comparison-section max-w-7xl mx-auto","aria-labelledby":"comparison-title",children:[u.jsx(R6,{index:"02",eyebrow:n?"ÙØ¸Ø±Ø© Ù
ÙØ§Ø±ÙØ© Ø³Ø±ÙØ¹Ø©":"At a glance",title:n?"ÙØ§Ø±Ù بÙ٠اÙÙ
سارات Ø§ÙØªØ¯Ø±ÙØ¨ÙØ©.":"Compare your learning routes."}),u.jsx("p",{className:"comparison-section__coordinates",children:"N 30.0444° / E 31.2357° / AI LEARNING ATLAS"}),u.jsx("div",{className:"comparison-table-wrap",children:u.jsxs("table",{children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{children:n?"اÙÙ
سار":"Route"}),u.jsx("th",{children:n?"Ù
Ø³Ø±ÙØ¹ اÙÙ
سار اÙÙ
ÙÙÙ":"Career Accelerator"}),u.jsx("th",{children:n?"أتÙ
تة Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙاعÙ":"AI Automation"}),u.jsx("th",{children:n?"Ø±ÙØ§Ø¯Ø© Ø§ÙØ£Ø¹Ù
ا٠اÙÙ
جتÙ
Ø¹ÙØ©":"Social Entrepreneurship"})]})}),u.jsx("tbody",{children:h.map(m=>u.jsx("tr",{children:m.map((f,x)=>u.jsx("td",{"data-label":x===0?"":f,children:f},f))},m[0]))})]})})]})]}),u.jsx(ea,{}),u.jsx(RL,{isOpen:r,onClose:()=>i(!1),trainingId:s,trainingTitle:a})]})}const See=()=>{const e=Ms(),{t}=rn("common");return j.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),u.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background",children:u.jsxs("div",{className:"text-center space-y-6 p-8",children:[u.jsx("h1",{className:"text-8xl font-bold text-secondary",children:"404"}),u.jsx("h2",{className:"text-3xl font-semibold text-foreground",children:t("notFound.title")}),u.jsx("p",{className:"text-xl text-muted-foreground",children:t("notFound.description")}),u.jsx(Yt,{asChild:!0,size:"lg",className:"mt-4",children:u.jsxs("a",{href:"/",children:[u.jsx(mO,{className:"w-5 h-5 mr-2"}),t("notFound.button")]})})]})})},_ee=({children:e})=>{const{isAuthenticated:t,isLoading:n,checkAuth:r}=mU(),i=Ms();return j.useEffect(()=>{!t&&!n&&r()},[t,n,r]),n?u.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:u.jsxs("div",{className:"text-center",children:[u.jsx(Rg,{className:"w-12 h-12 animate-spin text-primary mx-auto mb-4"}),u.jsx("p",{className:"text-muted-foreground",children:"Verifying authentication..."})]})}):t?u.jsx(u.Fragment,{children:e}
717):u.jsx(BD,{to:"/admin/login",state:{from:i},replace:!0})},Nee=j.lazy(()=>Hn(()=>import("./AdminLogin-vbZC7T-s.js"),__vite__mapDeps([0,1,2,3]))),kee=j.lazy(()=>Hn(()=>import("./AdminLayout-BoUi3hW2.js"),__vite__mapDeps([4,5,6,7,8,9,10]))),Aee=j.lazy(()=>Hn(()=>import("./Dashboard-CArmWKrz.js"),__vite__mapDeps([11,5]))),jee=j.lazy(()=>Hn(()=>import("./SolutionsList-ChwniEnj.js"),__vite__mapDeps([12,13,14,3,15,2,16,9,7,17,10,18,19,20]))),Cee=j.lazy(()=>Hn(()=>import("./CreateSolution-CXXgXFyu.js"),__vite__mapDeps([21,13,14,3,22,1,2,23,24,6,7,9,25,8,19]))),Eee=j.lazy(()=>Hn(()=>import("./EditSolution-DItEqE40.js"),__vite__mapDeps([26,13,14,3,22,1,2,23,24,6,7,9,25,8,19,27]))),Lee=j.lazy(()=>Hn(()=>import("./ProjectsList-D4zWYheV.js"),__vite__mapDeps([28,29,14,3,15,2,16,9,7,17,10,18,19,20]))),Pee=j.lazy(()=>Hn(()=>import("./CreateProject-CKk5xnVD.js"),__vite__mapDeps([30,29,14,3,31,1,2,23,24,6,7,9,32,33,25,8,19]))),Tee=j.lazy(()=>Hn(()=>import("./EditProject-Dp3IS6Yt.js"),__vite__mapDeps([34,29,14,3,31,1,2,23,24,6,7,9,32,33,25,8,19]))),Ree=j.lazy(()=>Hn(()=>import("./BlogsList-BB-nKmRb.js"),__vite__mapDeps([35,15,2,16,9,7,17,10,18,24,6,36,14,3,19,20]))),Oee=j.lazy(()=>Hn(()=>import("./CreateBlog-Dg1ngfDk.js"),__vite__mapDeps([37,38,1,2,23,24,6,7,9,32,33,25,8,18,19,36,14,3]))),Iee=j.lazy(()=>Hn(()=>import("./EditBlog-_FOE7kFT.js"),__vite__mapDeps([39,38,1,2,23,24,6,7,9,32,33,25,8,18,19,36,14,3]))),Mee=j.lazy(()=>Hn(()=>import("./PartnersList-DlumzfYV.js"),__vite__mapDeps([40,41,14,3,15,2,16,9,7,17,10,19]))),Fee=j.lazy(()=>Hn(()=>import("./CreatePartner-CqM3wuqO.js"),__vite__mapDeps([42,41,14,3,43,1,2,32,25,8,9,6]))),Dee=j.lazy(()=>Hn(()=>import("./EditPartner-DXJU3zLw.js"),__vite__mapDeps([44,41,14,3,43,1,2,32,25,8,9,6,27]))),Bee=j.lazy(()=>Hn(()=>import("./RegistrationsList-CES5jiXG.js"),__vite__mapDeps([45,14,2,20,17]))),zee=j.lazy(()=>Hn(()=>import("./TrainingsList-AZFIxo6S.js"),__vite__mapDeps([46,14,2,16,9,7,19,17]))),I6=j.lazy(()=>Hn(()=>import("./TrainingForm-AdA_FVXS.js"),__vite__mapDeps([47,14,2]))),Yn=()=>u.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:u.jsxs("div",{className:"text-center",children:[u.jsx(Rg,{className:"w-12 h-12 animate-spin text-primary mx-auto mb-4"}),u.jsx("p",{className:"text-muted-foreground",children:"Loading..."})]})}),Uee=new OF({defaultOptions:{queries:{retry:(e,t)=>{var n,r,i;return((n=t==null?void 0:t.response)==null?void 0:n.status)===401||((r=t==null?void 0:t.response)==null?void 0:r.status)===403||((i=t==null?void 0:t.response)==null?void 0:i.status)===404?!1:e<3},retryDelay:e=>Math.min(1e3*2**e,3e4),staleTime:5*60*1e3,refetchOnWindowFocus:!1},mutations:{retry:!1}}}),Vee=()=>u.jsx(xU,{children:u.jsx(j.Suspense,{fallback:u.jsx(Yn,{}),children:u.jsx(BF,{client:Uee,children:u.jsx(rB,{defaultTheme:"dark",storageKey:"airos-theme",children:u.jsx(pU,{children:u.jsxs(mF,{children:[u.jsx(uI,{}),u.jsx(VI,{}),u.jsxs(XD,{future:{v7_startTransition:!0,v7_relativeSplatPath:!0},children:[u.jsx(vU,{}),u.jsx(bU,{}),u.jsxs(UD,{children:[u.jsx(Ht,{path:"/",element:u.jsx(JY,{})}),u.jsx(Ht,{path:"/about",element:u.jsx(oee,{})}),u.jsx(Ht,{path:"/solutions",element:u.jsx(T6,{})}),u.jsx(Ht,{path:"/solutions/:slug",element:u.jsx(T6,{})}),u.jsx(Ht,{path:"/projects",element:u.jsx(fee,{})}),u.jsx(Ht,{path:"/projects/:slug",element:u.jsx(pee,{})}),u.jsx(Ht,{path:"/blog",element:u.jsx(yee,{})}),u.jsx(Ht,{path:"/blog/:slug",element:u.jsx(vee,{})}),u.jsx(Ht,{path:"/contact",element:u.jsx(wee,{})}),u.jsx(Ht,{path:"/trainings",element:u.jsx(O6,{})}),u.jsx(Ht,{path:"/trainings/:id",element:u.jsx(O6,{})}),u.jsx(Ht,{path:"/admin/login",element:u.jsx(j.Suspense,{fallback:u.jsx(Yn,{}),children:u.jsx(Nee,{})})}),u.jsxs(Ht,{path:"/admin",element:u.jsx(_ee,{children:u.jsx(j.Suspense,{fallback:u.jsx(Yn,{}),children:u.jsx(kee,{})})}),children:[u.jsx(Ht,{path:"dashboard",element:u.jsx(j.Suspense,{fallback:u.jsx(Yn,{}),children:u.jsx(Aee,{})})}),u.jsx(Ht,{path:"solutions",element:u.jsx(j.Suspense,{fallback:u.jsx(Yn,{}),children:u.jsx(jee,{})})}),u.jsx(Ht,{path:"solutions/new",element:u.jsx(j.Suspense,{fallback:u.jsx(Yn,{}),children:u.jsx(Cee,{})})}),u.jsx(Ht,{path:"solutions/:id/edit",element:u.jsx(j.Suspense,{fallback:u.jsx(Yn,{}),children:u.jsx(Eee,{})})}),u.jsx(Ht,{path:"projects",element:u.jsx(j.Suspense,{fallback:u.jsx(Yn,{}),children:u.jsx(Lee,{})})}),u.jsx(Ht,{path:"projects/new",element:u.jsx(j.Suspense,{fallback:u.jsx(Yn,{}),children:u.jsx(Pee,{})})}),u.jsx(Ht,{path:"projects/:id/edit",element:u.jsx(j.Suspense,{fallback:u.jsx(Yn,{}),children:u.jsx(Tee,{})})}),u.jsx(Ht,{path:"blogs",element:u.jsx(j.Suspense,{fallback:u.jsx(Yn,{}),children:u.jsx(Ree,{})})}),u.jsx(Ht,{path:"blogs/new",element:u.jsx(j.Suspense,{fallback:u.jsx(Yn,{}),children:u.jsx(Oee,{})})}),u.jsx(Ht,{path:"blogs/:id/edit",element:u.jsx(j.Suspense,{fallback:u.jsx(Yn,{}),children:u.jsx(Iee,{})})}),u.jsx(Ht,{path:"partners",element:u.jsx(j.Suspense,{fallback:u.jsx(Yn,{}),children:u.jsx(Mee,{})})}),u.jsx(Ht,{path:"partners/new",element:u.jsx(j.Suspense,{fallback:u.jsx(Yn,{}),children:u.jsx(Fee,{})})}),u.jsx(Ht,{path:"partners/:id/edit",element:u.jsx(j.Suspense,{fallback:u.jsx(Yn,{}),children:u.jsx(Dee,{})})}),u.jsx(Ht,{path:"registrations",element:u.jsx(j.Suspense,{fallback:u.jsx(Yn,{}),children:u.jsx(Bee,{})})}),u.jsx(Ht,{path:"trainings",element:u.jsx(j.Suspense,{fallback:u.jsx(Yn,{}),children:u.jsx(zee,{})})}),u.jsx(Ht,{path:"trainings/new",element:u.jsx(j.Suspense,{fallback:u.jsx(Yn,{}),children:u.jsx(I6,{})})}),u.jsx(Ht,{path:"trainings/:id",element:u.jsx(j.Suspense,{fallback:u.jsx(Yn,{}),children:u.jsx(I6,{})})})]}),u.jsx(Ht,{path:"*",element:u.jsx(See,{})})]})]})]})})})})})});o8(document.getElementById("root")).render(u.jsx(Vee,{}));export{VM as $,YM as A,Yt as B,yb as C,F5 as D,R0 as E,hO as F,td as G,mO as H,L9 as I,aO as J,sl as K,Rg as L,nC as M,ete as N,xO as O,D5 as P,vO as Q,Yee as R,_O as S,Jee as T,cr as U,Fi as V,B8 as W,yc as X,lb as Y,DF as Z,o9 as _,mU as a,q5 as a0,pi as a1,d3 as a2,M8 as a3,Vh as a4,R9 as a5,I0 as a6,f3 as a7,rO as a8,D8 as a9,kO as aa,Pe as ab,l9 as ac,yx as ad,eC as ae,qh as af,Hee as ag,u9 as ah,gU as ai,nk as aj,Gh as ak,Ex as al,yh as am,PF as an,Ar as ao,oi as ap,wF as aq,qee as ar,tn as as,H6 as at,CC as b,tt as c,EC as d,LC as e,xb as f,Kee as g,Bg as h,kt as i,u as j,tte as k,yO as l,p9 as m,Lg as n,gj as o,Ps as p,ar as q,j as r,XM as s,yi as t,Vg as u,il as v,ZM as w,l8 as x,u8 as y,p8 as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.